Compare commits

...
Author SHA1 Message Date
github-actions[bot]andgithub-actions[bot] 029d3c7719 Version Packages (#1955)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-03 16:00:48 +02:00
Ken 7019898c09 🐛 Timeline håndterte ikke startDate/endDate-endringer riktig (#1953) 2023-05-03 15:50:55 +02:00
27 changed files with 88 additions and 34 deletions

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# @navikt/aksel-icons
## 2.9.5
## 2.9.4
## 2.9.3
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-icons",
"version": "2.9.4",
"version": "2.9.5",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/ikoner",
"repository": {
+7
View File
@@ -1,5 +1,12 @@
# @navikt/aksel
## 2.9.5
### Patch Changes
- Updated dependencies []:
- @navikt/ds-css@2.9.5
## 2.9.4
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel",
"version": "2.9.4",
"version": "2.9.5",
"description": "Aksel command line interface. Handles css-imports, codemods and more",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -29,7 +29,7 @@
},
"homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
"dependencies": {
"@navikt/ds-css": "2.9.4",
"@navikt/ds-css": "2.9.5",
"axios": "1.3.6",
"chalk": "4.1.0",
"clipboardy": "^2.3.0",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-codemod
## 2.9.5
## 2.9.4
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-codemod",
"version": "2.9.4",
"version": "2.9.5",
"description": "Aksel codemods for NAVs designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
+2 -2
View File
@@ -40,8 +40,8 @@
"build-pict": "svgr --silent --index-template index-template.js --out-dir src/pictograms pictograms"
},
"dependencies": {
"@navikt/ds-icons": "^2.9.4",
"@navikt/ds-react": "^2.9.4",
"@navikt/ds-icons": "^2.9.5",
"@navikt/ds-react": "^2.9.5",
"clsx": "^1.1.1"
},
"devDependencies": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-css
## 2.9.5
## 2.9.4
## 2.9.3
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css",
"version": "2.9.4",
"version": "2.9.5",
"description": "CSS for NAV Designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -27,7 +27,7 @@
"css:get-version": "node config/get-version.js"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.9.4",
"@navikt/ds-tokens": "^2.9.5",
"cssnano": "6.0.0",
"fast-glob": "3.2.11",
"lodash": "4.17.21",
+8
View File
@@ -1,5 +1,13 @@
# @navikt/ds-react
## 2.9.5
### Patch Changes
- Updated dependencies []:
- @navikt/aksel-icons@2.9.5
- @navikt/ds-icons@2.9.5
## 2.9.4
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react",
"version": "2.9.4",
"version": "2.9.5",
"description": "Aksel react-components for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -38,8 +38,8 @@
},
"dependencies": {
"@floating-ui/react": "0.17.0",
"@navikt/aksel-icons": "^2.9.4",
"@navikt/ds-icons": "^2.9.4",
"@navikt/aksel-icons": "^2.9.5",
"@navikt/ds-icons": "^2.9.5",
"@radix-ui/react-tabs": "1.0.0",
"@radix-ui/react-toggle-group": "1.0.0",
"clsx": "^1.2.1",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tailwind
## 2.9.5
## 2.9.4
## 2.9.3
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tailwind",
"version": "2.9.4",
"version": "2.9.5",
"description": "Tailwind config based on @navikt/ds-tokens",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -22,7 +22,7 @@
"directory": "@navikt/core/tailwind"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.9.4",
"@navikt/ds-tokens": "^2.9.5",
"@types/jest": "^29.0.0",
"color": "4.2.3",
"jest": "^29.0.0",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tokens
## 2.9.5
## 2.9.4
## 2.9.3
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tokens",
"version": "2.9.4",
"version": "2.9.5",
"description": "Design-tokens for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-icons
## 2.9.5
## 2.9.4
## 2.9.3
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-icons",
"version": "2.9.4",
"version": "2.9.5",
"description": "Aksel icons for NAV",
"author": "Aksel | NAV designsystem team",
"repository": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-css-internal
## 2.9.5
## 2.9.4
## 2.9.3
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css-internal",
"version": "2.9.4",
"version": "2.9.5",
"description": "CSS for NAV internal Designsystem-components",
"author": "Aksel | NAV designsystem team",
"keywords": [
+12
View File
@@ -1,5 +1,17 @@
# @navikt/ds-react-internal
## 2.9.5
### Patch Changes
- [#1953](https://github.com/navikt/aksel/pull/1953) [`7019898c0`](https://github.com/navikt/aksel/commit/7019898c0948cf18e788800c5b2d1d547958cde9) Thanks [@KenAJoh](https://github.com/KenAJoh)! - :bug: Timeline håndterte ikke startDate/endDate-endringer riktig
- All bruk av `<button>` i Timeline har nå `type="button"`
- Updated dependencies []:
- @navikt/ds-react@2.9.5
- @navikt/ds-icons@2.9.5
## 2.9.4
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react-internal",
"version": "2.9.4",
"version": "2.9.5",
"description": "Aksel react components for internal UIs in NAV",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -36,8 +36,8 @@
"watch": "tsc --watch -p tsconfig.esm.json"
},
"dependencies": {
"@navikt/ds-icons": "^2.9.4",
"@navikt/ds-react": "^2.9.4",
"@navikt/ds-icons": "^2.9.5",
"@navikt/ds-react": "^2.9.5",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.1"
},
@@ -44,6 +44,7 @@ export const Pin = forwardRef<HTMLButtonElement, TimelinePinProps>(
onClick={() => setOpen(!open)}
aria-label={`pin:${format(date, "dd.MM.yyyy")}`}
aria-expanded={open}
type="button"
/>
</div>
{children && (
@@ -19,11 +19,13 @@ export interface TimelineProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Decides startingpoint in timeline.
* Defaults to earliest date among the timeline periods.
* @note Using this disables use of ZoomButtons. You will need to control zooming yourself.
*/
startDate?: Date;
/**
* Decides end-date for timeline.
* Defaults to the latest date among the timeline periods.
* @note Using this disables use of ZoomButtons. You will need to control zooming yourself.
*/
endDate?: Date;
/**
@@ -97,12 +99,20 @@ export const Timeline = forwardRef<HTMLDivElement, TimelineProps>(
const initialEndDate = endOfDay(useLatestDate({ endDate, rows }));
const processedRows = useTimelineRows(
rowsRaw,
start,
endInclusive,
startDate ?? start,
endDate ?? endInclusive,
direction
);
const handleZoomChange = (zoomStart: Date) => {
if (startDate || endDate) {
if (process.env.NODE_ENV !== "production") {
console.warn(
"Zooming is not supported when startDate or endDate is set"
);
}
return;
}
if (direction === "left") {
if (isSameDay(zoomStart, start)) {
setStart(initialStartDate);
@@ -153,8 +163,8 @@ export const Timeline = forwardRef<HTMLDivElement, TimelineProps>(
return (
<TimelineContext.Provider
value={{
startDate: start,
endDate: endInclusive,
startDate: startDate ?? start,
endDate: endDate ?? endInclusive,
direction: direction,
setStart: (d) => handleZoomChange(d),
setEndInclusive: (d) => setEndInclusive(d),
@@ -45,6 +45,7 @@ const ClickablePeriod = React.memo(
<>
<button
{...restProps}
type="button"
ref={(r) => {
firstFocus && addFocusable(r, index);
mergedRef(r);
@@ -56,6 +56,7 @@ export const ZoomButton: ZoomButtonType = forwardRef(
return (
<Detail as="li">
<button
type="button"
aria-label={
!currentZoom
? `Zoom tidslinjen ${format(
+9 -9
View File
@@ -15,15 +15,15 @@
"website"
],
"dependencies": {
"@navikt/aksel-icons": "^2.9.4",
"@navikt/ds-codemod": "^2.9.4",
"@navikt/ds-css": "^2.9.4",
"@navikt/ds-css-internal": "^2.9.4",
"@navikt/ds-icons": "^2.9.4",
"@navikt/ds-react": "^2.9.4",
"@navikt/ds-react-internal": "^2.9.4",
"@navikt/ds-tailwind": "^2.9.4",
"@navikt/ds-tokens": "^2.9.4"
"@navikt/aksel-icons": "^2.9.5",
"@navikt/ds-codemod": "^2.9.5",
"@navikt/ds-css": "^2.9.5",
"@navikt/ds-css-internal": "^2.9.5",
"@navikt/ds-icons": "^2.9.5",
"@navikt/ds-react": "^2.9.5",
"@navikt/ds-react-internal": "^2.9.5",
"@navikt/ds-tailwind": "^2.9.5",
"@navikt/ds-tokens": "^2.9.5"
},
"devDependencies": {
"prettier-plugin-tailwindcss": "^0.2.3"
+2 -2
View File
@@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@navikt/ds-css": "2.9.4",
"@navikt/ds-react": "2.9.4",
"@navikt/ds-css": "2.9.5",
"@navikt/ds-react": "2.9.5",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},