@smudi/designsystem 2.1.0 → 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/header/header-divider.js +13 -11
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +9 -9
- 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 -131
- package/@smudi/styles.css +1 -1
- package/package.json +24 -21
- package/@smudi/components/actionbar/actionbar.d.ts +0 -71
- package/@smudi/components/actionbar/actionbar.d.ts.map +0 -1
- package/@smudi/components/actionbar/actionbar.types.d.ts +0 -11
- package/@smudi/components/actionbar/actionbar.types.d.ts.map +0 -1
- package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts +0 -9
- package/@smudi/components/actionbar/use-actionbar-button-count-warning.d.ts.map +0 -1
- package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts +0 -12
- package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts.map +0 -1
- 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 -8
- 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 -6
- 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 -9
- 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/components/utils/is-dev-environment.d.ts +0 -2
- package/@smudi/components/utils/is-dev-environment.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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smudi/designsystem",
|
|
3
|
-
"version": "2.
|
|
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
|
-
"types": "./@smudi/
|
|
21
|
+
"types": "./@smudi/react.d.ts",
|
|
22
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,6 +36,7 @@
|
|
|
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",
|
|
40
41
|
"typecheck:watch": "tsc --noEmit --watch",
|
|
41
42
|
"build:watch": "vite build --watch",
|
|
@@ -50,31 +51,33 @@
|
|
|
50
51
|
"@digdir/designsystemet-types": "1.23.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@chromatic-com/storybook": "5.
|
|
54
|
+
"@chromatic-com/storybook": "5.4.0",
|
|
54
55
|
"@digdir/designsystemet-css": "1.23.0",
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@storybook/addon-
|
|
58
|
-
"@storybook/addon-
|
|
59
|
-
"@storybook/
|
|
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",
|
|
60
62
|
"@svgr/cli": "8.1.0",
|
|
61
|
-
"@types/node": "26.6.
|
|
63
|
+
"@types/node": "26.6.5",
|
|
62
64
|
"@types/react": "19.3.0",
|
|
63
|
-
"@types/react-dom": "19.
|
|
64
|
-
"@vitest/browser": "
|
|
65
|
-
"@vitest/
|
|
66
|
-
"@vitest/
|
|
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",
|
|
67
70
|
"husky": "9.1.7",
|
|
68
|
-
"jsdom": "30.1.
|
|
69
|
-
"playwright": "1.
|
|
71
|
+
"jsdom": "30.1.2",
|
|
72
|
+
"playwright": "1.64.0",
|
|
70
73
|
"prop-types": "15.8.1",
|
|
71
74
|
"react": "19.3.0",
|
|
72
75
|
"react-dom": "19.3.0",
|
|
73
|
-
"storybook": "10.6.
|
|
74
|
-
"typescript": "
|
|
76
|
+
"storybook": "10.6.2",
|
|
77
|
+
"typescript": "6.0.3",
|
|
75
78
|
"vite": "7.3.6",
|
|
76
|
-
"vite-plugin-dts": "5.1.
|
|
77
|
-
"vitest": "
|
|
79
|
+
"vite-plugin-dts": "5.1.2",
|
|
80
|
+
"vitest": "5.0.0"
|
|
78
81
|
},
|
|
79
82
|
"peerDependencies": {
|
|
80
83
|
"@navikt/aksel-icons": "^8.16.2",
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, HTMLAttributes, MouseEvent, ReactNode, RefAttributes } from 'react';
|
|
2
|
-
import { ButtonProps } from '../button/button';
|
|
3
|
-
import { ActionbarColor, ActionbarId, ActionbarNonHoverBehavior, ActionbarSize, ActionbarVisibility } from './actionbar.types';
|
|
4
|
-
export type { ActionbarColor, ActionbarId, ActionbarNonHoverBehavior, ActionbarSize, ActionbarVisibility, } from './actionbar.types';
|
|
5
|
-
/** Payload emitted from `Actionbar.Button` click handlers. */
|
|
6
|
-
export interface ActionbarButtonClickEvent {
|
|
7
|
-
itemId: ActionbarId;
|
|
8
|
-
event: MouseEvent<HTMLButtonElement>;
|
|
9
|
-
}
|
|
10
|
-
export interface ActionbarHostProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
-
/** Application-specific identifier for the element owning this actionbar. */
|
|
12
|
-
itemId: ActionbarId;
|
|
13
|
-
/** Visibility behavior for hover/focus-capable and touch/coarse-pointer devices. */
|
|
14
|
-
visibility?: ActionbarVisibility;
|
|
15
|
-
/** Visibility behavior on devices that do not support hover. */
|
|
16
|
-
nonHoverBehavior?: ActionbarNonHoverBehavior;
|
|
17
|
-
/** Controls visibility state from outside (controlled mode). */
|
|
18
|
-
open?: boolean;
|
|
19
|
-
/** Initial visibility in uncontrolled mode. */
|
|
20
|
-
defaultOpen?: boolean;
|
|
21
|
-
/** Called whenever visibility changes, both controlled and uncontrolled. */
|
|
22
|
-
onOpenChange?: (open: boolean) => void;
|
|
23
|
-
/** Host content and its attached actionbar. */
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Wraps an element and controls visibility/interaction state for its Actionbar.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ActionbarHost: ForwardRefExoticComponent<ActionbarHostProps & RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export interface ActionbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "aria-label" | "data-color" | "data-size"> {
|
|
31
|
-
/** Accessible name for the toolbar. */
|
|
32
|
-
"aria-label": string;
|
|
33
|
-
/** Group-level color variant. */
|
|
34
|
-
"data-color"?: ActionbarColor;
|
|
35
|
-
/** Shared size for toolbar container and action buttons. */
|
|
36
|
-
"data-size"?: ActionbarSize;
|
|
37
|
-
}
|
|
38
|
-
type ForwardedActionbar = ForwardRefExoticComponent<ActionbarProps & RefAttributes<HTMLDivElement>>;
|
|
39
|
-
declare const ActionbarRoot: ForwardedActionbar;
|
|
40
|
-
export interface ActionbarButtonProps extends Omit<ButtonProps, "children" | "icon" | "onClick" | "data-color"> {
|
|
41
|
-
/** Click handler receiving both host id and native click event. */
|
|
42
|
-
onClick?: (event: ActionbarButtonClickEvent) => void;
|
|
43
|
-
/** Icon content for the icon-only action button. */
|
|
44
|
-
children: ReactNode;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Icon-only action button used inside `Actionbar`.
|
|
48
|
-
*/
|
|
49
|
-
export declare const ActionbarButton: ForwardRefExoticComponent<ActionbarButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
50
|
-
type ActionbarComponent = typeof ActionbarRoot & {
|
|
51
|
-
Host: typeof ActionbarHost;
|
|
52
|
-
Button: typeof ActionbarButton;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Toolbar component for compact, contextual actions.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* <Actionbar.Host itemId="entry-1" visibility="hover-focus">
|
|
60
|
-
* <Card>...</Card>
|
|
61
|
-
* <Actionbar aria-label="Handlinger" data-color="primary" data-size="md">
|
|
62
|
-
* <Actionbar.Button aria-label="Rediger">
|
|
63
|
-
* <PencilIcon aria-hidden />
|
|
64
|
-
* </Actionbar.Button>
|
|
65
|
-
* </Actionbar>
|
|
66
|
-
* </Actionbar.Host>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
declare const Actionbar: ActionbarComponent;
|
|
70
|
-
export { Actionbar };
|
|
71
|
-
//# sourceMappingURL=actionbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actionbar.d.ts","sourceRoot":"","sources":["../../../components/actionbar/actionbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAI3B,YAAY,EACV,cAAc,EACd,WAAW,EACX,yBAAyB,EACzB,aAAa,EACb,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,8DAA8D;AAC9D,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAiED,MAAM,WAAW,kBACf,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtC,6EAA6E;IAC7E,MAAM,EAAE,WAAW,CAAC;IACpB,oFAAoF;IACpF,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,gEAAgE;IAChE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,+CAA+C;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAID;;GAEG;AACH,eAAO,MAAM,aAAa,+EAqLzB,CAAC;AAIF,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;IACvF,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,KAAK,kBAAkB,GAAG,yBAAyB,CACjD,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC,CAC/C,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,kBAkJnB,CAAC;AAIH,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;IACzE,mEAAmE;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrD,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,oFAkE1B,CAAC;AAIH,KAAK,kBAAkB,GAAG,OAAO,aAAa,GAAG;IAC/C,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,MAAM,EAAE,OAAO,eAAe,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,SAAS,EAGT,kBAAkB,CAAC;AAEzB,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Identifier forwarded from host to button click handlers. */
|
|
2
|
-
export type ActionbarId = string | number;
|
|
3
|
-
/** Controls when the actionbar should be visible. */
|
|
4
|
-
export type ActionbarVisibility = "always" | "hover-focus";
|
|
5
|
-
/** Controls actionbar visibility on devices without hover support. */
|
|
6
|
-
export type ActionbarNonHoverBehavior = "show" | "hide";
|
|
7
|
-
/** Group-level color variant for all actions in the bar. */
|
|
8
|
-
export type ActionbarColor = "primary" | "neutral";
|
|
9
|
-
/** Size variant shared by actionbar and its buttons. */
|
|
10
|
-
export type ActionbarSize = "sm" | "md" | "lg";
|
|
11
|
-
//# sourceMappingURL=actionbar.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actionbar.types.d.ts","sourceRoot":"","sources":["../../../components/actionbar/actionbar.types.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C,qDAAqD;AACrD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE3D,sEAAsE;AACtE,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD,4DAA4D;AAC5D,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,SAAS,CAAC;AAEd,wDAAwD;AACxD,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
interface UseActionbarButtonCountWarningParams {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
rootRef: RefObject<HTMLDivElement | null>;
|
|
5
|
-
}
|
|
6
|
-
/** Warns in development when an Actionbar has an unusual number of buttons. */
|
|
7
|
-
export declare function useActionbarButtonCountWarning({ children, rootRef, }: UseActionbarButtonCountWarningParams): void;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=use-actionbar-button-count-warning.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-actionbar-button-count-warning.d.ts","sourceRoot":"","sources":["../../../components/actionbar/use-actionbar-button-count-warning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM1E,UAAU,oCAAoC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAC3C;AAED,+EAA+E;AAC/E,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,OAAO,GACR,EAAE,oCAAoC,QA6BtC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { ActionbarVisibility } from './actionbar.types';
|
|
3
|
-
interface UseActionbarMissingFocusableContentWarningParams {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
hostRef: RefObject<HTMLDivElement | null>;
|
|
6
|
-
supportsHoverReveal: boolean;
|
|
7
|
-
visibility: ActionbarVisibility;
|
|
8
|
-
}
|
|
9
|
-
/** Throws in development when hover-focus mode has no focusable host content. */
|
|
10
|
-
export declare function useActionbarMissingFocusableContentWarning({ children, hostRef, supportsHoverReveal, visibility, }: UseActionbarMissingFocusableContentWarningParams): void;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=use-actionbar-missing-focusable-content-warning.d.ts.map
|
package/@smudi/components/actionbar/use-actionbar-missing-focusable-content-warning.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-actionbar-missing-focusable-content-warning.d.ts","sourceRoot":"","sources":["../../../components/actionbar/use-actionbar-missing-focusable-content-warning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAwC7D,UAAU,gDAAgD;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,mBAAmB,EAAE,OAAO,CAAC;IAC7B,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,iFAAiF;AACjF,wBAAgB,0CAA0C,CAAC,EACzD,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,UAAU,GACX,EAAE,gDAAgD,QAwBlD"}
|
|
@@ -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
|