Compare commits

..
Author SHA1 Message Date
Ken 5b12778c96 🐛 CheckmarkIcon fix 2023-05-04 14:11:51 +02:00
github-actions[bot]andgithub-actions[bot] 3edb149b01 Version Packages (#1957)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 10:34:54 +02:00
Ken 8c85590099 🐛 CheckMarkCircle var ikke riktig alignet (#1956) 2023-05-04 10:31:38 +02:00
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
33 changed files with 176 additions and 40 deletions

No files matched your search

+14
View File
@@ -1,5 +1,19 @@
# @navikt/aksel-icons
## 2.9.7
### Patch Changes
- :bug: CheckmarkIcon
## 2.9.6
### Patch Changes
- [#1956](https://github.com/navikt/aksel/pull/1956) [`8c8559009`](https://github.com/navikt/aksel/commit/8c8559009982911bc4402913656ba4cc6a223dd1) Thanks [@KenAJoh](https://github.com/KenAJoh)! - :bug: Fikset CheckmarkCircleIcon
## 2.9.5
## 2.9.4
## 2.9.3
@@ -15,5 +15,5 @@ keywords:
- fullføring
- validering
variant: Stroke
updated_at: 08.03.2023
updated_at: 04.05.2023
created_at: 07.03.2023
@@ -1,3 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM16.5725 9.48447C16.8401 9.16827 16.8007 8.69503 16.4845 8.42748C16.1683 8.15992 15.695 8.19935 15.4275 8.51556L10.454 14.3933L8.03033 11.9697C7.73744 11.6768 7.26256 11.6768 6.96967 11.9697C6.67678 12.2626 6.67678 12.7375 6.96967 13.0303L9.96967 16.0303C10.118 16.1787 10.3216 16.2581 10.5312 16.2494C10.7407 16.2407 10.9371 16.1446 11.0725 15.9845L16.5725 9.48447Z" fill="#262626"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75ZM16.9536 9.27485C17.2434 8.93229 17.2007 8.41962 16.8582 8.12977C16.5156 7.83991 16.0029 7.88263 15.7131 8.22519L10.3251 14.5928L7.69952 11.9672C7.38222 11.6499 6.86778 11.6499 6.55048 11.9672C6.23317 12.2845 6.23317 12.7989 6.55048 13.1162L9.80048 16.3662C9.96114 16.5269 10.1817 16.6129 10.4088 16.6035C10.6358 16.594 10.8485 16.49 10.9953 16.3165L16.9536 9.27485Z" fill="#262626"/>
</svg>

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 689 B

@@ -15,5 +15,5 @@ keywords:
- fullføring
- validering
variant: Fill
updated_at: 08.03.2023
updated_at: 04.05.2023
created_at: 07.03.2023
+1 -1
View File
@@ -9,5 +9,5 @@ keywords:
- vise/skjule
- bytte
variant: Stroke
updated_at: 08.03.2023
updated_at: 02.05.2023
created_at: 07.03.2023
+1 -1
View File
@@ -20,5 +20,5 @@ keywords:
- ansvar
- paragraf
variant: Stroke
updated_at: 08.03.2023
updated_at: 03.05.2023
created_at: 07.03.2023
+1 -1
View File
@@ -6,5 +6,5 @@ keywords:
- legg til
- more
variant: Stroke
updated_at: 08.03.2023
updated_at: 03.05.2023
created_at: 07.03.2023
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-icons",
"version": "2.9.4",
"version": "2.9.7",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/ikoner",
"repository": {
+21
View File
@@ -1,5 +1,26 @@
# @navikt/aksel
## 2.9.7
### Patch Changes
- Updated dependencies []:
- @navikt/ds-css@2.9.7
## 2.9.6
### Patch Changes
- Updated dependencies []:
- @navikt/ds-css@2.9.6
## 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.7",
"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.7",
"axios": "1.3.6",
"chalk": "4.1.0",
"clipboardy": "^2.3.0",
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-codemod
## 2.9.7
## 2.9.6
## 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.7",
"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.7",
"@navikt/ds-react": "^2.9.7",
"clsx": "^1.1.1"
},
"devDependencies": {
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-css
## 2.9.7
## 2.9.6
## 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.7",
"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.7",
"cssnano": "6.0.0",
"fast-glob": "3.2.11",
"lodash": "4.17.21",
+24
View File
@@ -1,5 +1,29 @@
# @navikt/ds-react
## 2.9.7
### Patch Changes
- Updated dependencies []:
- @navikt/aksel-icons@2.9.7
- @navikt/ds-icons@2.9.7
## 2.9.6
### Patch Changes
- Updated dependencies [[`8c8559009`](https://github.com/navikt/aksel/commit/8c8559009982911bc4402913656ba4cc6a223dd1)]:
- @navikt/aksel-icons@2.9.6
- @navikt/ds-icons@2.9.6
## 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.7",
"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.7",
"@navikt/ds-icons": "^2.9.7",
"@radix-ui/react-tabs": "1.0.0",
"@radix-ui/react-toggle-group": "1.0.0",
"clsx": "^1.2.1",
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-tailwind
## 2.9.7
## 2.9.6
## 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.7",
"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.7",
"@types/jest": "^29.0.0",
"color": "4.2.3",
"jest": "^29.0.0",
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-tokens
## 2.9.7
## 2.9.6
## 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.7",
"description": "Design-tokens for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-icons
## 2.9.7
## 2.9.6
## 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.7",
"description": "Aksel icons for NAV",
"author": "Aksel | NAV designsystem team",
"repository": {
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-css-internal
## 2.9.7
## 2.9.6
## 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.7",
"description": "CSS for NAV internal Designsystem-components",
"author": "Aksel | NAV designsystem team",
"keywords": [
+28
View File
@@ -1,5 +1,33 @@
# @navikt/ds-react-internal
## 2.9.7
### Patch Changes
- Updated dependencies []:
- @navikt/ds-react@2.9.7
- @navikt/ds-icons@2.9.7
## 2.9.6
### Patch Changes
- Updated dependencies []:
- @navikt/ds-react@2.9.6
- @navikt/ds-icons@2.9.6
## 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.7",
"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.7",
"@navikt/ds-react": "^2.9.7",
"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.7",
"@navikt/ds-codemod": "^2.9.7",
"@navikt/ds-css": "^2.9.7",
"@navikt/ds-css-internal": "^2.9.7",
"@navikt/ds-icons": "^2.9.7",
"@navikt/ds-react": "^2.9.7",
"@navikt/ds-react-internal": "^2.9.7",
"@navikt/ds-tailwind": "^2.9.7",
"@navikt/ds-tokens": "^2.9.7"
},
"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.7",
"@navikt/ds-react": "2.9.7",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},