@smudi/designsystem 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@smudi/assets/JetBrainsMono-Medium.woff2 +0 -0
- package/@smudi/assets/JetBrainsMono-OFL.txt +93 -0
- package/@smudi/assets/JetBrainsMono-Regular.woff2 +0 -0
- package/@smudi/assets/JetBrainsMono-SemiBold.woff2 +0 -0
- package/@smudi/components/actionbar/actionbar-button.js +52 -0
- package/@smudi/components/actionbar/actionbar-context.js +23 -0
- package/@smudi/components/actionbar/actionbar-divider.js +24 -0
- package/@smudi/components/actionbar/actionbar-host.js +102 -0
- package/@smudi/components/actionbar/actionbar.js +134 -0
- package/@smudi/components/actionbar/use-actionbar-button-count-warning.js +21 -0
- package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.js +38 -0
- package/@smudi/components/divider/divider.js +18 -4
- package/@smudi/components/file-upload/file-upload.js +6 -4
- package/@smudi/components/header/header-divider.js +13 -11
- package/@smudi/components/select/select.js +28 -13
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +9 -9
- package/@smudi/components/typography/heading/heading.js +10 -4
- package/@smudi/components/utils/is-dev-environment.js +8 -0
- package/@smudi/icons/generated/index.d.ts +64 -0
- package/@smudi/react.d.ts +1671 -0
- package/@smudi/react.js +133 -130
- package/@smudi/styles.css +1 -1
- package/README.md +7 -6
- package/package.json +42 -30
- package/@smudi/components/alert/alert.d.ts +0 -6
- package/@smudi/components/alert/alert.d.ts.map +0 -1
- package/@smudi/components/avatar/avatar.d.ts +0 -6
- package/@smudi/components/avatar/avatar.d.ts.map +0 -1
- package/@smudi/components/avatar-stack/avatar-stack.d.ts +0 -6
- package/@smudi/components/avatar-stack/avatar-stack.d.ts.map +0 -1
- package/@smudi/components/badge/badge.d.ts +0 -6
- package/@smudi/components/badge/badge.d.ts.map +0 -1
- package/@smudi/components/breadcrumbs/breadcrumbs.d.ts +0 -6
- package/@smudi/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
- package/@smudi/components/button/button.d.ts +0 -26
- package/@smudi/components/button/button.d.ts.map +0 -1
- package/@smudi/components/card/card-icon-block.d.ts +0 -24
- package/@smudi/components/card/card-icon-block.d.ts.map +0 -1
- package/@smudi/components/card/card.d.ts +0 -22
- package/@smudi/components/card/card.d.ts.map +0 -1
- package/@smudi/components/checkbox/checkbox.d.ts +0 -6
- package/@smudi/components/checkbox/checkbox.d.ts.map +0 -1
- package/@smudi/components/chip/chip.d.ts +0 -5
- package/@smudi/components/chip/chip.d.ts.map +0 -1
- package/@smudi/components/details/details.d.ts +0 -6
- package/@smudi/components/details/details.d.ts.map +0 -1
- package/@smudi/components/dialog/dialog-section.d.ts +0 -22
- package/@smudi/components/dialog/dialog-section.d.ts.map +0 -1
- package/@smudi/components/dialog/dialog.d.ts +0 -21
- package/@smudi/components/dialog/dialog.d.ts.map +0 -1
- package/@smudi/components/divider/divider.d.ts +0 -6
- package/@smudi/components/divider/divider.d.ts.map +0 -1
- package/@smudi/components/dropdown/dropdown-button.d.ts +0 -39
- package/@smudi/components/dropdown/dropdown-button.d.ts.map +0 -1
- package/@smudi/components/dropdown/dropdown-context.d.ts +0 -7
- package/@smudi/components/dropdown/dropdown-context.d.ts.map +0 -1
- package/@smudi/components/dropdown/dropdown-item.d.ts +0 -20
- package/@smudi/components/dropdown/dropdown-item.d.ts.map +0 -1
- package/@smudi/components/dropdown/dropdown-list.d.ts +0 -20
- package/@smudi/components/dropdown/dropdown-list.d.ts.map +0 -1
- package/@smudi/components/dropdown/dropdown.d.ts +0 -35
- package/@smudi/components/dropdown/dropdown.d.ts.map +0 -1
- package/@smudi/components/error-summary/error-summary.d.ts +0 -6
- package/@smudi/components/error-summary/error-summary.d.ts.map +0 -1
- package/@smudi/components/field/field.d.ts +0 -6
- package/@smudi/components/field/field.d.ts.map +0 -1
- package/@smudi/components/fieldset/fieldset.d.ts +0 -6
- package/@smudi/components/fieldset/fieldset.d.ts.map +0 -1
- package/@smudi/components/file-upload/file-upload.d.ts +0 -6
- package/@smudi/components/file-upload/file-upload.d.ts.map +0 -1
- package/@smudi/components/header/header-content.d.ts +0 -15
- package/@smudi/components/header/header-content.d.ts.map +0 -1
- package/@smudi/components/header/header-divider.d.ts +0 -18
- package/@smudi/components/header/header-divider.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/header-menu-button.d.ts +0 -13
- package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/header-menu-content.d.ts +0 -17
- package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/header-menu-group.d.ts +0 -14
- package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/header-menu-item.d.ts +0 -28
- package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/header-menu.d.ts +0 -20
- package/@smudi/components/header/header-menu/header-menu.d.ts.map +0 -1
- package/@smudi/components/header/header-menu/index.d.ts +0 -11
- package/@smudi/components/header/header-menu/index.d.ts.map +0 -1
- package/@smudi/components/header/header-search/header-search-button.d.ts +0 -26
- package/@smudi/components/header/header-search/header-search-button.d.ts.map +0 -1
- package/@smudi/components/header/header-search/header-search.d.ts +0 -35
- package/@smudi/components/header/header-search/header-search.d.ts.map +0 -1
- package/@smudi/components/header/header-search/index.d.ts +0 -5
- package/@smudi/components/header/header-search/index.d.ts.map +0 -1
- package/@smudi/components/header/header.d.ts +0 -97
- package/@smudi/components/header/header.d.ts.map +0 -1
- package/@smudi/components/header/index.d.ts +0 -36
- package/@smudi/components/header/index.d.ts.map +0 -1
- package/@smudi/components/input/input.d.ts +0 -6
- package/@smudi/components/input/input.d.ts.map +0 -1
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +0 -37
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +0 -1
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +0 -30
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +0 -1
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +0 -33
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +0 -1
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts +0 -2
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts.map +0 -1
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts +0 -2
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts.map +0 -1
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts +0 -2
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts.map +0 -1
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts +0 -2
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts.map +0 -1
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +0 -39
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +0 -1
- package/@smudi/components/layout-components/split-view/index.d.ts +0 -8
- package/@smudi/components/layout-components/split-view/index.d.ts.map +0 -1
- package/@smudi/components/layout-components/split-view/split-view-divider.d.ts +0 -8
- package/@smudi/components/layout-components/split-view/split-view-divider.d.ts.map +0 -1
- package/@smudi/components/layout-components/split-view/split-view-panel.d.ts +0 -23
- package/@smudi/components/layout-components/split-view/split-view-panel.d.ts.map +0 -1
- package/@smudi/components/layout-components/split-view/split-view.d.ts +0 -14
- package/@smudi/components/layout-components/split-view/split-view.d.ts.map +0 -1
- package/@smudi/components/layout-components/split-view/use-resize.d.ts +0 -34
- package/@smudi/components/layout-components/split-view/use-resize.d.ts.map +0 -1
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +0 -31
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +0 -1
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +0 -34
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts.map +0 -1
- package/@smudi/components/link/link.d.ts +0 -6
- package/@smudi/components/link/link.d.ts.map +0 -1
- package/@smudi/components/list/list.d.ts +0 -5
- package/@smudi/components/list/list.d.ts.map +0 -1
- package/@smudi/components/pagination/pagination.d.ts +0 -6
- package/@smudi/components/pagination/pagination.d.ts.map +0 -1
- package/@smudi/components/popover/popover.d.ts +0 -6
- package/@smudi/components/popover/popover.d.ts.map +0 -1
- package/@smudi/components/radio/radio.d.ts +0 -6
- package/@smudi/components/radio/radio.d.ts.map +0 -1
- package/@smudi/components/search/search.d.ts +0 -6
- package/@smudi/components/search/search.d.ts.map +0 -1
- package/@smudi/components/select/select.d.ts +0 -13
- package/@smudi/components/select/select.d.ts.map +0 -1
- package/@smudi/components/skeleton/skeleton.d.ts +0 -6
- package/@smudi/components/skeleton/skeleton.d.ts.map +0 -1
- package/@smudi/components/skip-link/skip-link.d.ts +0 -6
- package/@smudi/components/skip-link/skip-link.d.ts.map +0 -1
- package/@smudi/components/spinner/spinner.d.ts +0 -6
- package/@smudi/components/spinner/spinner.d.ts.map +0 -1
- package/@smudi/components/stepper/index.d.ts +0 -15
- package/@smudi/components/stepper/index.d.ts.map +0 -1
- package/@smudi/components/stepper/step/step-list.d.ts +0 -7
- package/@smudi/components/stepper/step/step-list.d.ts.map +0 -1
- package/@smudi/components/stepper/step/step.d.ts +0 -22
- package/@smudi/components/stepper/step/step.d.ts.map +0 -1
- package/@smudi/components/stepper/step-content/step-content-list.d.ts +0 -2
- package/@smudi/components/stepper/step-content/step-content-list.d.ts.map +0 -1
- package/@smudi/components/stepper/step-content/step-content.d.ts +0 -13
- package/@smudi/components/stepper/step-content/step-content.d.ts.map +0 -1
- package/@smudi/components/stepper/stepper-context.d.ts +0 -49
- package/@smudi/components/stepper/stepper-context.d.ts.map +0 -1
- package/@smudi/components/stepper/stepper.d.ts +0 -42
- package/@smudi/components/stepper/stepper.d.ts.map +0 -1
- package/@smudi/components/stepper/use-stepper-state.d.ts +0 -43
- package/@smudi/components/stepper/use-stepper-state.d.ts.map +0 -1
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts +0 -9
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts.map +0 -1
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +0 -8
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +0 -1
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +0 -54
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +0 -1
- package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +0 -31
- package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +0 -1
- package/@smudi/components/suggestion/suggestion.d.ts +0 -17
- package/@smudi/components/suggestion/suggestion.d.ts.map +0 -1
- package/@smudi/components/switch/switch.d.ts +0 -6
- package/@smudi/components/switch/switch.d.ts.map +0 -1
- package/@smudi/components/table/table.d.ts +0 -28
- package/@smudi/components/table/table.d.ts.map +0 -1
- package/@smudi/components/tabs/tabs-content.d.ts +0 -6
- package/@smudi/components/tabs/tabs-content.d.ts.map +0 -1
- package/@smudi/components/tabs/tabs-list.d.ts +0 -6
- package/@smudi/components/tabs/tabs-list.d.ts.map +0 -1
- package/@smudi/components/tabs/tabs-trigger.d.ts +0 -6
- package/@smudi/components/tabs/tabs-trigger.d.ts.map +0 -1
- package/@smudi/components/tabs/tabs.d.ts +0 -6
- package/@smudi/components/tabs/tabs.d.ts.map +0 -1
- package/@smudi/components/tag/tag.d.ts +0 -6
- package/@smudi/components/tag/tag.d.ts.map +0 -1
- package/@smudi/components/textarea/text-area.d.ts +0 -6
- package/@smudi/components/textarea/text-area.d.ts.map +0 -1
- package/@smudi/components/textfield/textfield.d.ts +0 -6
- package/@smudi/components/textfield/textfield.d.ts.map +0 -1
- package/@smudi/components/toast/toast.d.ts +0 -84
- package/@smudi/components/toast/toast.d.ts.map +0 -1
- package/@smudi/components/toggle-group/toggle-group.d.ts +0 -6
- package/@smudi/components/toggle-group/toggle-group.d.ts.map +0 -1
- package/@smudi/components/tooltip/tooltip.d.ts +0 -6
- package/@smudi/components/tooltip/tooltip.d.ts.map +0 -1
- package/@smudi/components/typography/heading/heading.d.ts +0 -6
- package/@smudi/components/typography/heading/heading.d.ts.map +0 -1
- package/@smudi/components/typography/paragraph/paragraph.d.ts +0 -6
- package/@smudi/components/typography/paragraph/paragraph.d.ts.map +0 -1
- package/@smudi/components/utils/apply-inert-outside.d.ts +0 -17
- package/@smudi/components/utils/apply-inert-outside.d.ts.map +0 -1
- package/@smudi/components/utils/class-names.d.ts +0 -2
- package/@smudi/components/utils/class-names.d.ts.map +0 -1
- package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts +0 -8
- package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts.map +0 -1
- package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts +0 -8
- package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts.map +0 -1
- package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts +0 -8
- package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts.map +0 -1
- package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts +0 -8
- package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts.map +0 -1
- package/@smudi/smudi/icons/generated/index.d.ts +0 -5
- package/@smudi/smudi/icons/generated/index.d.ts.map +0 -1
- package/@smudi/smudi/icons/metadata.d.ts +0 -32
- package/@smudi/smudi/icons/metadata.d.ts.map +0 -1
- package/@smudi/smudi/react.d.ts +0 -59
- package/@smudi/smudi/react.d.ts.map +0 -1
- package/@smudi/types/modular-scale.type.d.ts +0 -18
- package/@smudi/types/modular-scale.type.d.ts.map +0 -1
- package/@smudi/types/polymorphic-component.type.d.ts +0 -35
- package/@smudi/types/polymorphic-component.type.d.ts.map +0 -1
- package/@smudi/types/utils/coerce-string-to-number.d.ts +0 -4
- package/@smudi/types/utils/coerce-string-to-number.d.ts.map +0 -1
- package/@smudi/types/utils/exclude-strict.d.ts +0 -2
- package/@smudi/types/utils/exclude-strict.d.ts.map +0 -1
- package/@smudi/types/utils/omit-strict.d.ts +0 -2
- package/@smudi/types/utils/omit-strict.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Les dokumentasjon om Bruken av Smudi og komponentene i [Storybook.](https://smud
|
|
|
5
5
|
|
|
6
6
|
Designsystemet bygger på [Digdir sitt designsystem](https://designsystemet.no/no/) og gir en felles base av React-komponenter og stilark som kan brukes på tvers av applikasjoner.
|
|
7
7
|
Digdir sitt designsystem får du innebygget i Smudi-pakken, du trenger altså ikke laste ned dette selv.
|
|
8
|
-
|
|
8
|
+
[Aksel sitt ikon-bibliotek](https://aksel.nav.no/komponenter/ikoner) brukes av Smudi-komponentene og må installeres som en egen avhengighet.
|
|
9
9
|
|
|
10
10
|
## Hvorfor designsystem?
|
|
11
11
|
|
|
@@ -18,7 +18,8 @@ Vi er i tidlig fase av release av Smudi og vil gjerne ha dine tilbakemeldinger!
|
|
|
18
18
|
|
|
19
19
|
1. Pakken er tilgjengelig på npm: [@smudi/designsystem](https://www.npmjs.com/package/@smudi/designsystem?activeTab=readme)
|
|
20
20
|
- OBS - Legg merke til at pakken inkluderer Digdir sitt designsystem. Du trenger ikke laste ned dette selv.
|
|
21
|
-
2. Installer
|
|
21
|
+
2. Installer Smudi og Aksel med din pakkehåndterer, f.eks. `pnpm add @smudi/designsystem @navikt/aksel-icons`.
|
|
22
|
+
- Smudi krever React og React DOM 18.3.1 eller nyere (React 19 støttes). Bruker du TypeScript, trenger du også `@types/react` 18.3 eller nyere.
|
|
22
23
|
3. Legg inn CSS globalt, enten i din globale css-fil eller:
|
|
23
24
|
- I Next - Øverst i app/layout.tsx
|
|
24
25
|
- I React - Øverst i src/main.tsx
|
|
@@ -71,7 +72,7 @@ Vi er i tidlig fase av release av Smudi og vil gjerne ha dine tilbakemeldinger!
|
|
|
71
72
|
|
|
72
73
|
## Stack
|
|
73
74
|
|
|
74
|
-
- React 19.
|
|
75
|
+
- React 19.3.0 - for UI-komponenter (pakken støtter React 18.3.1 og nyere)
|
|
75
76
|
- Storybook 10.2.10 - for dokumentasjon og visuell testing
|
|
76
77
|
- Typescript 5 - for type-sikker utvikling
|
|
77
78
|
- pnpm 10 - for pakkehåndtering
|
|
@@ -93,9 +94,9 @@ Test gjerne pakken i en ekstern test-app og/eller be et annet team teste pakken
|
|
|
93
94
|
|
|
94
95
|
1. Vær i main-branch etter du er ferdig med å merge all ny funksjonalitet
|
|
95
96
|
2. pnpm build - bygg build-output mappen
|
|
96
|
-
3. pnpm pack -
|
|
97
|
-
4.
|
|
98
|
-
5. I package.json
|
|
97
|
+
3. pnpm pack - lager en npm-pakke som en .tgz-fil, for eksempel `smudi-designsystem-2.1.0.tgz`.
|
|
98
|
+
4. Legg .tgz-filen i prosjektet til en lokal test-app eller en konsument.
|
|
99
|
+
5. I `package.json`, pek avhengigheten til filen: `"@smudi/designsystem": "file:PATH-TIL-TGZ"`.
|
|
99
100
|
6. Importer komponenter o.l. som normalt fra "@smudi/designsystem"
|
|
100
101
|
|
|
101
102
|
## Publisering (prodsetting)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smudi/designsystem",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"packageManager": "pnpm@10.17.1",
|
|
7
7
|
"main": "./@smudi/react.js",
|
|
8
|
-
"types": "./@smudi/
|
|
8
|
+
"types": "./@smudi/react.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"@smudi"
|
|
11
11
|
],
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"types": "./@smudi/react.d.ts",
|
|
22
|
+
"import": "./@smudi/react.js"
|
|
23
23
|
},
|
|
24
24
|
"./styles.css": "./@smudi/styles.css",
|
|
25
25
|
"./icons": {
|
|
26
|
-
"types": "./@smudi/
|
|
26
|
+
"types": "./@smudi/icons/generated/index.d.ts",
|
|
27
27
|
"default": "./@smudi/icons/generated/index.js"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
"test:storybook": "vitest run --project storybook",
|
|
37
37
|
"test:storybook:watch": "vitest --project storybook --watch",
|
|
38
38
|
"test:all": "vitest run",
|
|
39
|
+
"test:verification": "playwright test --config test-apps/next-app/playwright.config.ts",
|
|
39
40
|
"build": "tsc --noEmit && vite build",
|
|
41
|
+
"typecheck:watch": "tsc --noEmit --watch",
|
|
42
|
+
"build:watch": "vite build --watch",
|
|
40
43
|
"storybook": "storybook dev -p 6006",
|
|
41
44
|
"prebuild-storybook": "pnpm run build",
|
|
42
45
|
"build-storybook": "storybook build",
|
|
@@ -44,38 +47,47 @@
|
|
|
44
47
|
"icons:generate": "svgr --config-file .svgrrc.json --out-dir ./smudi/icons/generated ./smudi/icons/svg"
|
|
45
48
|
},
|
|
46
49
|
"dependencies": {
|
|
47
|
-
"@digdir/designsystemet-react": "1.
|
|
48
|
-
"@digdir/designsystemet-types": "1.
|
|
50
|
+
"@digdir/designsystemet-react": "1.23.0",
|
|
51
|
+
"@digdir/designsystemet-types": "1.23.0"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
|
-
"@chromatic-com/storybook": "5.0
|
|
52
|
-
"@digdir/designsystemet-css": "1.
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@storybook/addon-
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/
|
|
54
|
+
"@chromatic-com/storybook": "5.4.0",
|
|
55
|
+
"@digdir/designsystemet-css": "1.23.0",
|
|
56
|
+
"@microsoft/api-extractor": "^7.58.12",
|
|
57
|
+
"@navikt/aksel-icons": "8.19.1",
|
|
58
|
+
"@storybook/addon-a11y": "10.6.2",
|
|
59
|
+
"@storybook/addon-docs": "10.6.2",
|
|
60
|
+
"@storybook/addon-vitest": "10.6.2",
|
|
61
|
+
"@storybook/react-vite": "10.6.2",
|
|
58
62
|
"@svgr/cli": "8.1.0",
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/react
|
|
61
|
-
"@types/
|
|
62
|
-
"@vitest/browser": "
|
|
63
|
-
"@vitest/
|
|
64
|
-
"@vitest/
|
|
65
|
-
"
|
|
63
|
+
"@types/node": "26.6.5",
|
|
64
|
+
"@types/react": "19.3.0",
|
|
65
|
+
"@types/react-dom": "19.3.0",
|
|
66
|
+
"@vitest/browser": "5.0.0",
|
|
67
|
+
"@vitest/browser-playwright": "5.0.0",
|
|
68
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
69
|
+
"@vitest/ui": "5.0.0",
|
|
66
70
|
"husky": "9.1.7",
|
|
67
|
-
"
|
|
71
|
+
"jsdom": "30.1.2",
|
|
72
|
+
"playwright": "1.64.0",
|
|
68
73
|
"prop-types": "15.8.1",
|
|
69
|
-
"react": "19.
|
|
70
|
-
"react-dom": "19.
|
|
71
|
-
"storybook": "10.2
|
|
72
|
-
"typescript": "
|
|
74
|
+
"react": "19.3.0",
|
|
75
|
+
"react-dom": "19.3.0",
|
|
76
|
+
"storybook": "10.6.2",
|
|
77
|
+
"typescript": "6.0.3",
|
|
73
78
|
"vite": "7.3.6",
|
|
74
|
-
"vite-plugin-dts": "
|
|
75
|
-
"vitest": "
|
|
79
|
+
"vite-plugin-dts": "5.1.2",
|
|
80
|
+
"vitest": "5.0.0"
|
|
76
81
|
},
|
|
77
82
|
"peerDependencies": {
|
|
78
|
-
"
|
|
79
|
-
"react
|
|
83
|
+
"@navikt/aksel-icons": "^8.16.2",
|
|
84
|
+
"@types/react": ">=18.3.0",
|
|
85
|
+
"react": ">=18.3.1 || ^19.0.0",
|
|
86
|
+
"react-dom": ">=18.3.1 || ^19.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"@types/react": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
80
92
|
}
|
|
81
93
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,EAChB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,QAAA,MAAM,cAAc,EAAE,KAAiB,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,MAAM,GAAG,OAAO,UAAU,CAAC;AAEhC,QAAA,MAAM,eAAe,EAAE,MAAmB,CAAC;AAI3C,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EXPERIMENTAL_AvatarStack as AvatarStackRoot, AvatarStackProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type AvatarStack = typeof AvatarStackRoot;
|
|
3
|
-
declare const AvatarStackComponent: AvatarStack;
|
|
4
|
-
export type { AvatarStackProps };
|
|
5
|
-
export { AvatarStackComponent as AvatarStack };
|
|
6
|
-
//# sourceMappingURL=avatar-stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-stack.d.ts","sourceRoot":"","sources":["../../../components/avatar-stack/avatar-stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,IAAI,eAAe,EAC3C,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,WAAW,GAAG,OAAO,eAAe,CAAC;AAE1C,QAAA,MAAM,oBAAoB,EAAE,WAA6B,CAAC;AAI1D,YAAY,EAAE,gBAAgB,EAAE,CAAC;AACjC,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,EAChB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,QAAA,MAAM,cAAc,EAAE,KAAiB,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Breadcrumbs as BreadcrumbsRoot, BreadcrumbsProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type Breadcrumbs = typeof BreadcrumbsRoot;
|
|
3
|
-
declare const BreadcrumbsComponent: Breadcrumbs;
|
|
4
|
-
export type { BreadcrumbsProps };
|
|
5
|
-
export { BreadcrumbsComponent as Breadcrumbs };
|
|
6
|
-
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../components/breadcrumbs/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,eAAe,EAC9B,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,WAAW,GAAG,OAAO,eAAe,CAAC;AAE1C,QAAA,MAAM,oBAAoB,EAAE,WAA6B,CAAC;AAI1D,YAAY,EAAE,gBAAgB,EAAE,CAAC;AACjC,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as DigdirButtonProps } from '@digdir/designsystemet-react';
|
|
2
|
-
interface ButtonProps extends Omit<DigdirButtonProps, "variant" | "data-size"> {
|
|
3
|
-
/**
|
|
4
|
-
* Size of the button. Extends Digdir's sizes with an additional `"xs"` option
|
|
5
|
-
* for more compact UIs.
|
|
6
|
-
*/
|
|
7
|
-
["data-size"]?: DigdirButtonProps["data-size"] | "xs";
|
|
8
|
-
/**
|
|
9
|
-
* Visual style of the button. Extends Digdir's variants with an additional
|
|
10
|
-
* `"secondary-tinted"` option, a secondary button on a tinted background meant for icons only.
|
|
11
|
-
*/
|
|
12
|
-
variant?: DigdirButtonProps["variant"] | "secondary-tinted";
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Button used to trigger an action. Wraps Digdir's `Button` with an extra
|
|
16
|
-
* `"xs"` size and a `"secondary-tinted"` variant.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <Button data-size="md">Click me</Button>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare const ButtonComponent: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
export type { ButtonProps };
|
|
25
|
-
export { ButtonComponent as Button };
|
|
26
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,iBAAiB,EACtC,MAAM,8BAA8B,CAAC;AAGtC,UAAU,WAAY,SAAQ,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,WAAW,CAAC;IAC5E;;;OAGG;IACH,CAAC,WAAW,CAAC,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IACtD;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,kBAAkB,CAAC;CAC7D;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,eAAe,uFA4BpB,CAAC;AAIF,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface CardIconBlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
-
children?: React.ReactNode;
|
|
3
|
-
/**
|
|
4
|
-
* Direction the icon and its content are stacked in.
|
|
5
|
-
* @default "vertical"
|
|
6
|
-
*/
|
|
7
|
-
orientation?: "vertical" | "horizontal";
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Block for showing an icon together with content (e.g. a heading and text)
|
|
11
|
-
* inside a `Card`.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <Card>
|
|
16
|
-
* <Card.IconBlock>
|
|
17
|
-
* <SomeIcon aria-hidden />
|
|
18
|
-
* <Heading level={3}>Title</Heading>
|
|
19
|
-
* </Card.IconBlock>
|
|
20
|
-
* </Card>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare const CardIconBlock: React.ForwardRefExoticComponent<CardIconBlockProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
//# sourceMappingURL=card-icon-block.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-icon-block.d.ts","sourceRoot":"","sources":["../../../components/card/card-icon-block.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,2FAgBzB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Card as CardRoot, CardProps } from '@digdir/designsystemet-react';
|
|
2
|
-
import { CardIconBlock, CardIconBlockProps } from './card-icon-block';
|
|
3
|
-
type Card = typeof CardRoot & {
|
|
4
|
-
IconBlock: typeof CardIconBlock;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Container used to group related content and actions. Wraps Digdir's
|
|
8
|
-
* `Card` and adds a `Card.IconBlock` subcomponent.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <Card>
|
|
13
|
-
* <Card.IconBlock>
|
|
14
|
-
* <Heading level={3}>Title</Heading>
|
|
15
|
-
* </Card.IconBlock>
|
|
16
|
-
* </Card>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
declare const CardComponent: Card;
|
|
20
|
-
export type { CardProps, CardIconBlockProps };
|
|
21
|
-
export { CardComponent as Card };
|
|
22
|
-
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,KAAK,IAAI,GAAG,OAAO,QAAQ,GAAG;IAC5B,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,aAAa,EAAe,IAAI,CAAC;AAIvC,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAC9C,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Checkbox as CheckboxRoot, CheckboxProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type Checkbox = typeof CheckboxRoot;
|
|
3
|
-
declare const CheckboxComponent: Checkbox;
|
|
4
|
-
export type { CheckboxProps };
|
|
5
|
-
export { CheckboxComponent as Checkbox };
|
|
6
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,QAAQ,GAAG,OAAO,YAAY,CAAC;AAEpC,QAAA,MAAM,iBAAiB,EAAE,QAAuB,CAAC;AAIjD,YAAY,EAAE,aAAa,EAAE,CAAC;AAC9B,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../components/chip/chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEhE,KAAK,IAAI,GAAG,OAAO,QAAQ,CAAC;AAE5B,QAAA,MAAM,aAAa,EAAE,IAAe,CAAC;AAOrC,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Details as DetailsRoot, DetailsProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type Details = typeof DetailsRoot;
|
|
3
|
-
declare const DetailsComponent: Details;
|
|
4
|
-
export type { DetailsProps };
|
|
5
|
-
export { DetailsComponent as Details };
|
|
6
|
-
//# sourceMappingURL=details.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../components/details/details.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,OAAO,GAAG,OAAO,WAAW,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,OAAqB,CAAC;AAI9C,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DialogSection component, used to separate content in a Dialog without a border at the bottom of the content.
|
|
3
|
-
* You can combine Dialog.Section with Dialog.Block. Use two Dialog.Block directly after eachother to get a horizontal line between the content.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* <Dialog>
|
|
7
|
-
* <Dialog.Section>
|
|
8
|
-
* Header
|
|
9
|
-
* </Dialog.Section>
|
|
10
|
-
* <Dialog.Section>
|
|
11
|
-
* Content
|
|
12
|
-
* </Dialog.Section>
|
|
13
|
-
* <Dialog.Section>
|
|
14
|
-
* Footer
|
|
15
|
-
* </Dialog.Section>
|
|
16
|
-
* </Dialog>
|
|
17
|
-
*/
|
|
18
|
-
export interface DialogSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
export declare const DialogSection: React.ForwardRefExoticComponent<DialogSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
//# sourceMappingURL=dialog-section.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-section.d.ts","sourceRoot":"","sources":["../../../components/dialog/dialog-section.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,2FAYzB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogRoot, DialogProps } from '@digdir/designsystemet-react';
|
|
2
|
-
import { DialogSection, DialogSectionProps } from './dialog-section';
|
|
3
|
-
type Dialog = typeof DialogRoot & {
|
|
4
|
-
Section: typeof DialogSection;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Modal dialog for content that requires the user's attention or a
|
|
8
|
-
* decision before they can continue. Wraps Digdir's `Dialog` and adds a
|
|
9
|
-
* `Dialog.Section` subcomponent.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <Dialog>
|
|
14
|
-
* <Dialog.Section>Content</Dialog.Section>
|
|
15
|
-
* </Dialog>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
declare const DialogComponent: Dialog;
|
|
19
|
-
export type { DialogProps, DialogSectionProps };
|
|
20
|
-
export { DialogComponent as Dialog };
|
|
21
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../components/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,UAAU,EACpB,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAErE,KAAK,MAAM,GAAG,OAAO,UAAU,GAAG;IAChC,OAAO,EAAE,OAAO,aAAa,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAiB,MAAM,CAAC;AAK7C,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AAChD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Divider as DividerRoot, DividerProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type Divider = typeof DividerRoot;
|
|
3
|
-
declare const DividerComponent: Divider;
|
|
4
|
-
export type { DividerProps };
|
|
5
|
-
export { DividerComponent as Divider };
|
|
6
|
-
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../components/divider/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,OAAO,GAAG,OAAO,WAAW,CAAC;AAElC,QAAA,MAAM,gBAAgB,EAAE,OAAqB,CAAC;AAI9C,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
import { DropdownButtonProps as DropdownButtonRootProps } from '@digdir/designsystemet-react';
|
|
3
|
-
export interface DropdownButtonClickEvent {
|
|
4
|
-
/** The original click event */
|
|
5
|
-
event: MouseEvent<HTMLButtonElement>;
|
|
6
|
-
/** Function to close the Dropdown */
|
|
7
|
-
close: () => void;
|
|
8
|
-
}
|
|
9
|
-
/** @expand */
|
|
10
|
-
export interface DropdownButtonProps extends Omit<DropdownButtonRootProps, "onClick" | "type"> {
|
|
11
|
-
/**
|
|
12
|
-
* When true, the Dropdown is not closed automatically on click. To close it
|
|
13
|
-
* you can use the close function from the onClick handler.
|
|
14
|
-
*/
|
|
15
|
-
preventAutoClose?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Custom click event that contains the original event and a
|
|
18
|
-
* close function that closes the Dropdown.
|
|
19
|
-
*
|
|
20
|
-
* {
|
|
21
|
-
* event: MouseEvent<HTMLButtonElement>;
|
|
22
|
-
* close: () => void;
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* @returns DropdownButtonClickEvent
|
|
26
|
-
*/
|
|
27
|
-
onClick?: (event: DropdownButtonClickEvent) => void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Button that triggers an action inside a Dropdown menu. Closes the Dropdown
|
|
31
|
-
* automatically after being clicked, unless `preventAutoClose` is set.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```tsx
|
|
35
|
-
* <Dropdown.Button onClick={({ close }) => close()}>Log out</Dropdown.Button>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
-
//# sourceMappingURL=dropdown-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAEL,KAAK,mBAAmB,IAAI,uBAAuB,EACpD,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,wBAAwB;IACvC,+BAA+B;IAC/B,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACrC,qCAAqC;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,cAAc;AACd,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,uBAAuB,EACvB,SAAS,GAAG,MAAM,CACnB;IACC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,+FAkBzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-context.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown-context.tsx"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,oCAA4C,CAAC;AAEzE,wBAAgB,WAAW,wBAO1B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DropdownItemProps as DropdownItemRootProps } from '@digdir/designsystemet-react';
|
|
2
|
-
/** @expand */
|
|
3
|
-
export interface DropdownItemProps extends DropdownItemRootProps {
|
|
4
|
-
/**
|
|
5
|
-
* Shows a divider below the item. Hidden if this is the last item.
|
|
6
|
-
*/
|
|
7
|
-
divider?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A single choice inside a `Dropdown.List`.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Dropdown.List>
|
|
15
|
-
* <Dropdown.Item>Item 1</Dropdown.Item>
|
|
16
|
-
* </Dropdown.List>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
20
|
-
//# sourceMappingURL=dropdown-item.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-item.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown-item.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,IAAI,qBAAqB,EAChD,MAAM,8BAA8B,CAAC;AAEtC,cAAc;AACd,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,yFAWxB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DropdownListProps as DropdownListRootProps } from '@digdir/designsystemet-react';
|
|
2
|
-
/** @expand */
|
|
3
|
-
export interface DropdownListProps extends DropdownListRootProps {
|
|
4
|
-
/**
|
|
5
|
-
* Shows a divider below the list. Hidden if this is the last item.
|
|
6
|
-
*/
|
|
7
|
-
divider?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A list of `Dropdown.Item`s shown inside a `Dropdown`.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Dropdown.List>
|
|
15
|
-
* <Dropdown.Item>Item 1</Dropdown.Item>
|
|
16
|
-
* </Dropdown.List>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare const DropdownList: React.ForwardRefExoticComponent<DropdownListProps & React.RefAttributes<HTMLUListElement>>;
|
|
20
|
-
//# sourceMappingURL=dropdown-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-list.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,IAAI,qBAAqB,EAChD,MAAM,8BAA8B,CAAC;AAGtC,cAAc;AACd,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,4FAWxB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Dropdown as DropdownRoot, DropdownProps as DropdownRootProps } from '@digdir/designsystemet-react';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
import { DropdownItem } from './dropdown-item';
|
|
4
|
-
import { DropdownButton } from './dropdown-button';
|
|
5
|
-
import { DropdownList } from './dropdown-list';
|
|
6
|
-
type ForwardedDropdown = ForwardRefExoticComponent<DropdownProps & RefAttributes<HTMLElement>>;
|
|
7
|
-
/** @expand */
|
|
8
|
-
type DropdownProps = Omit<DropdownRootProps, "open"> & {
|
|
9
|
-
/** Called with the latest open state whenever the Dropdown opens or closes. */
|
|
10
|
-
onOpenChange?: (open: boolean) => void;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* A menu that shows a list of choices on temporary overlay, triggered by a
|
|
14
|
-
* `Dropdown.Button`. Use `Dropdown.Item`/`Dropdown.List` to compose the menu
|
|
15
|
-
* content.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <Dropdown>
|
|
20
|
-
* <Dropdown.Button>Open menu</Dropdown.Button>
|
|
21
|
-
* <Dropdown.List>
|
|
22
|
-
* <Dropdown.Item>Item 1</Dropdown.Item>
|
|
23
|
-
* </Dropdown.List>
|
|
24
|
-
* </Dropdown>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
declare const DropdownMenu: ForwardedDropdown;
|
|
28
|
-
declare const Dropdown: typeof DropdownMenu & Omit<typeof DropdownRoot, "Item" | "Button"> & {
|
|
29
|
-
Item: typeof DropdownItem;
|
|
30
|
-
Button: typeof DropdownButton;
|
|
31
|
-
List: typeof DropdownList;
|
|
32
|
-
};
|
|
33
|
-
export type { DropdownProps };
|
|
34
|
-
export { Dropdown };
|
|
35
|
-
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,yBAAyB,EACzB,aAAa,EAGd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,KAAK,iBAAiB,GAAG,yBAAyB,CAChD,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAC3C,CAAC;AAEF,cAAc;AACd,KAAK,aAAa,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG;IACrD,+EAA+E;IAC/E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,YAAY,EAAE,iBAuCnB,CAAC;AAKF,QAAA,MAAM,QAAQ,EAKR,OAAO,YAAY,GACvB,IAAI,CAAC,OAAO,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG;IAC7C,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,IAAI,EAAE,OAAO,YAAY,CAAC;CAC3B,CAAC;AAIJ,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ErrorSummary as ErrorSummaryRoot, ErrorSummaryProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type ErrorSummary = typeof ErrorSummaryRoot;
|
|
3
|
-
declare const ErrorSummaryComponent: ErrorSummary;
|
|
4
|
-
export type { ErrorSummaryProps };
|
|
5
|
-
export { ErrorSummaryComponent as ErrorSummary };
|
|
6
|
-
//# sourceMappingURL=error-summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-summary.d.ts","sourceRoot":"","sources":["../../../components/error-summary/error-summary.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAChC,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,YAAY,GAAG,OAAO,gBAAgB,CAAC;AAE5C,QAAA,MAAM,qBAAqB,EAAE,YAA+B,CAAC;AAI7D,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAClC,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../components/field/field.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,KAAK,UAAU,EAChB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG,OAAO,SAAS,CAAC;AAE9B,QAAA,MAAM,cAAc,EAAE,KAAiB,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Fieldset as FieldsetRoot, FieldsetProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type Fieldset = typeof FieldsetRoot;
|
|
3
|
-
declare const FieldsetComponent: Fieldset;
|
|
4
|
-
export type { FieldsetProps };
|
|
5
|
-
export { FieldsetComponent as Fieldset };
|
|
6
|
-
//# sourceMappingURL=fieldset.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset.d.ts","sourceRoot":"","sources":["../../../components/fieldset/fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,QAAQ,GAAG,OAAO,YAAY,CAAC;AAEpC,QAAA,MAAM,iBAAiB,EAAE,QAAuB,CAAC;AAIjD,YAAY,EAAE,aAAa,EAAE,CAAC;AAC9B,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EXPERIMENTAL_FileUpload as FileUploadRoot, FileUploadProps } from '@digdir/designsystemet-react';
|
|
2
|
-
type FileUpload = typeof FileUploadRoot;
|
|
3
|
-
declare const FileUploadComponent: FileUpload;
|
|
4
|
-
export type { FileUploadProps };
|
|
5
|
-
export { FileUploadComponent as EXPERIMENTAL_FileUpload };
|
|
6
|
-
//# sourceMappingURL=file-upload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../components/file-upload/file-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,IAAI,cAAc,EACzC,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,UAAU,GAAG,OAAO,cAAc,CAAC;AAExC,QAAA,MAAM,mBAAmB,EAAE,UAA2B,CAAC;AAIvD,YAAY,EAAE,eAAe,EAAE,CAAC;AAChC,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export type HeaderContentProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
/**
|
|
4
|
-
* Container for a group of items inside a `Header` (e.g. navigation links,
|
|
5
|
-
* buttons), typically aligned together on one side of the header.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <Header.Content>
|
|
10
|
-
* <Button variant="tertiary">Home</Button>
|
|
11
|
-
* </Header.Content>
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare const HeaderContent: React.ForwardRefExoticComponent<HeaderContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
//# sourceMappingURL=header-content.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header-content.d.ts","sourceRoot":"","sources":["../../../components/header/header-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,2FAUzB,CAAC"}
|