@smudi/designsystem 1.4.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/InterVariable.woff2 +0 -0
- package/@smudi/assets/UDI-red-logo.svg.js +4 -0
- package/@smudi/components/alert/alert.d.ts +6 -0
- package/@smudi/components/alert/alert.d.ts.map +1 -0
- package/@smudi/components/alert/alert.js +6 -0
- package/@smudi/components/avatar/avatar.d.ts +6 -0
- package/@smudi/components/avatar/avatar.d.ts.map +1 -0
- package/@smudi/components/avatar/avatar.js +6 -0
- package/@smudi/components/avatar-stack/avatar-stack.d.ts +6 -0
- package/@smudi/components/avatar-stack/avatar-stack.d.ts.map +1 -0
- package/@smudi/components/avatar-stack/avatar-stack.js +6 -0
- package/@smudi/components/badge/badge.d.ts +6 -0
- package/@smudi/components/badge/badge.d.ts.map +1 -0
- package/@smudi/components/badge/badge.js +6 -0
- package/@smudi/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/@smudi/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/@smudi/components/breadcrumbs/breadcrumbs.js +6 -0
- package/@smudi/components/button/button.d.ts +8 -0
- package/@smudi/components/button/button.d.ts.map +1 -0
- package/@smudi/components/button/button.js +25 -0
- package/@smudi/components/card/card-icon-block.d.ts +6 -0
- package/@smudi/components/card/card-icon-block.d.ts.map +1 -0
- package/@smudi/components/card/card-icon-block.js +21 -0
- package/@smudi/components/card/card.d.ts +9 -0
- package/@smudi/components/card/card.d.ts.map +1 -0
- package/@smudi/components/card/card.js +8 -0
- package/@smudi/components/checkbox/checkbox.d.ts +6 -0
- package/@smudi/components/checkbox/checkbox.d.ts.map +1 -0
- package/@smudi/components/checkbox/checkbox.js +6 -0
- package/@smudi/components/chip/chip.d.ts +5 -0
- package/@smudi/components/chip/chip.d.ts.map +1 -0
- package/@smudi/components/chip/chip.js +9 -0
- package/@smudi/components/details/details.d.ts +6 -0
- package/@smudi/components/details/details.d.ts.map +1 -0
- package/@smudi/components/details/details.js +6 -0
- package/@smudi/components/dialog/dialog-section.d.ts +22 -0
- package/@smudi/components/dialog/dialog-section.d.ts.map +1 -0
- package/@smudi/components/dialog/dialog-section.js +20 -0
- package/@smudi/components/dialog/dialog.d.ts +9 -0
- package/@smudi/components/dialog/dialog.d.ts.map +1 -0
- package/@smudi/components/dialog/dialog.js +8 -0
- package/@smudi/components/divider/divider.d.ts +6 -0
- package/@smudi/components/divider/divider.d.ts.map +1 -0
- package/@smudi/components/divider/divider.js +6 -0
- package/@smudi/components/dropdown/dropdown-button.d.ts +30 -0
- package/@smudi/components/dropdown/dropdown-button.d.ts.map +1 -0
- package/@smudi/components/dropdown/dropdown-button.js +15 -0
- package/@smudi/components/dropdown/dropdown-context.d.ts +7 -0
- package/@smudi/components/dropdown/dropdown-context.d.ts.map +1 -0
- package/@smudi/components/dropdown/dropdown-context.js +12 -0
- package/@smudi/components/dropdown/dropdown-item.d.ts +10 -0
- package/@smudi/components/dropdown/dropdown-item.d.ts.map +1 -0
- package/@smudi/components/dropdown/dropdown-item.js +13 -0
- package/@smudi/components/dropdown/dropdown-list.d.ts +10 -0
- package/@smudi/components/dropdown/dropdown-list.d.ts.map +1 -0
- package/@smudi/components/dropdown/dropdown-list.js +13 -0
- package/@smudi/components/dropdown/dropdown.d.ts +20 -0
- package/@smudi/components/dropdown/dropdown.d.ts.map +1 -0
- package/@smudi/components/dropdown/dropdown.js +42 -0
- package/@smudi/components/error-summary/error-summary.d.ts +6 -0
- package/@smudi/components/error-summary/error-summary.d.ts.map +1 -0
- package/@smudi/components/error-summary/error-summary.js +6 -0
- package/@smudi/components/field/field.d.ts +6 -0
- package/@smudi/components/field/field.d.ts.map +1 -0
- package/@smudi/components/field/field.js +6 -0
- package/@smudi/components/fieldset/fieldset.d.ts +6 -0
- package/@smudi/components/fieldset/fieldset.d.ts.map +1 -0
- package/@smudi/components/fieldset/fieldset.js +6 -0
- package/@smudi/components/header/header-content.d.ts +4 -0
- package/@smudi/components/header/header-content.d.ts.map +1 -0
- package/@smudi/components/header/header-content.js +19 -0
- package/@smudi/components/header/header-divider.d.ts +4 -0
- package/@smudi/components/header/header-divider.d.ts.map +1 -0
- package/@smudi/components/header/header-divider.js +23 -0
- package/@smudi/components/header/header-menu/header-menu-button.d.ts +4 -0
- package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +1 -0
- package/@smudi/components/header/header-menu/header-menu-button.js +39 -0
- package/@smudi/components/header/header-menu/header-menu-content.d.ts +4 -0
- package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +1 -0
- package/@smudi/components/header/header-menu/header-menu-content.js +17 -0
- package/@smudi/components/header/header-menu/header-menu-group.d.ts +4 -0
- package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +1 -0
- package/@smudi/components/header/header-menu/header-menu-group.js +19 -0
- package/@smudi/components/header/header-menu/header-menu-item.d.ts +12 -0
- package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +1 -0
- package/@smudi/components/header/header-menu/header-menu-item.js +23 -0
- package/@smudi/components/header/header-menu/header-menu.d.ts +5 -0
- package/@smudi/components/header/header-menu/header-menu.d.ts.map +1 -0
- package/@smudi/components/header/header-menu/header-menu.js +69 -0
- package/@smudi/components/header/header-menu/index.d.ts +11 -0
- package/@smudi/components/header/header-menu/index.d.ts.map +1 -0
- package/@smudi/components/header/header-search/header-search-button.d.ts +9 -0
- package/@smudi/components/header/header-search/header-search-button.d.ts.map +1 -0
- package/@smudi/components/header/header-search/header-search-button.js +44 -0
- package/@smudi/components/header/header-search/header-search.d.ts +17 -0
- package/@smudi/components/header/header-search/header-search.d.ts.map +1 -0
- package/@smudi/components/header/header-search/header-search.js +69 -0
- package/@smudi/components/header/header-search/index.d.ts +5 -0
- package/@smudi/components/header/header-search/index.d.ts.map +1 -0
- package/@smudi/components/header/header.d.ts +55 -0
- package/@smudi/components/header/header.d.ts.map +1 -0
- package/@smudi/components/header/header.js +97 -0
- package/@smudi/components/header/index.d.ts +36 -0
- package/@smudi/components/header/index.d.ts.map +1 -0
- package/@smudi/components/header/index.js +34 -0
- package/@smudi/components/input/input.d.ts +6 -0
- package/@smudi/components/input/input.d.ts.map +1 -0
- package/@smudi/components/input/input.js +6 -0
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts +37 -0
- package/@smudi/components/layout-components/box-layouts/box-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/box-layouts/box-layout.js +70 -0
- package/@smudi/components/layout-components/box-layouts/box-layout.module.css.js +6 -0
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts +30 -0
- package/@smudi/components/layout-components/center-layouts/center-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/center-layouts/center-layout.js +31 -0
- package/@smudi/components/layout-components/center-layouts/center-layout.module.css.js +7 -0
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts +33 -0
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.js +35 -0
- package/@smudi/components/layout-components/cluster-layouts/cluster-layout.module.css.js +6 -0
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts +2 -0
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-align-css.d.ts.map +1 -0
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts +2 -0
- package/@smudi/components/layout-components/cluster-layouts/constants/cluster-justify-css.d.ts.map +1 -0
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts +2 -0
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-align.type.d.ts.map +1 -0
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts +2 -0
- package/@smudi/components/layout-components/cluster-layouts/types/cluster-justify.type.d.ts.map +1 -0
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts +39 -0
- package/@smudi/components/layout-components/grid-layouts/grid-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/grid-layouts/grid-layout.js +40 -0
- package/@smudi/components/layout-components/grid-layouts/grid-layout.module.css.js +6 -0
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts +31 -0
- package/@smudi/components/layout-components/stack-layouts/stack-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/stack-layouts/stack-layout.js +46 -0
- package/@smudi/components/layout-components/stack-layouts/stack-layout.module.css.js +6 -0
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts +34 -0
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.d.ts.map +1 -0
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.js +41 -0
- package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.module.css.js +6 -0
- package/@smudi/components/link/link.d.ts +6 -0
- package/@smudi/components/link/link.d.ts.map +1 -0
- package/@smudi/components/link/link.js +6 -0
- package/@smudi/components/list/list.d.ts +5 -0
- package/@smudi/components/list/list.d.ts.map +1 -0
- package/@smudi/components/list/list.js +5 -0
- package/@smudi/components/pagination/pagination.d.ts +6 -0
- package/@smudi/components/pagination/pagination.d.ts.map +1 -0
- package/@smudi/components/pagination/pagination.js +6 -0
- package/@smudi/components/popover/popover.d.ts +6 -0
- package/@smudi/components/popover/popover.d.ts.map +1 -0
- package/@smudi/components/popover/popover.js +6 -0
- package/@smudi/components/radio/radio.d.ts +6 -0
- package/@smudi/components/radio/radio.d.ts.map +1 -0
- package/@smudi/components/radio/radio.js +6 -0
- package/@smudi/components/search/search.d.ts +6 -0
- package/@smudi/components/search/search.d.ts.map +1 -0
- package/@smudi/components/search/search.js +6 -0
- package/@smudi/components/select/select.d.ts +6 -0
- package/@smudi/components/select/select.d.ts.map +1 -0
- package/@smudi/components/select/select.js +9 -0
- package/@smudi/components/skeleton/skeleton.d.ts +6 -0
- package/@smudi/components/skeleton/skeleton.d.ts.map +1 -0
- package/@smudi/components/skeleton/skeleton.js +6 -0
- package/@smudi/components/skip-link/skip-link.d.ts +6 -0
- package/@smudi/components/skip-link/skip-link.d.ts.map +1 -0
- package/@smudi/components/skip-link/skip-link.js +6 -0
- package/@smudi/components/spinner/spinner.d.ts +6 -0
- package/@smudi/components/spinner/spinner.d.ts.map +1 -0
- package/@smudi/components/spinner/spinner.js +6 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts +9 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.d.ts.map +1 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.js +14 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +4 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +1 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.js +33 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +37 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +1 -0
- package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +102 -0
- package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +21 -0
- package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +1 -0
- package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.js +126 -0
- package/@smudi/components/suggestion/suggestion.d.ts +16 -0
- package/@smudi/components/suggestion/suggestion.d.ts.map +1 -0
- package/@smudi/components/suggestion/suggestion.js +13 -0
- package/@smudi/components/switch/switch.d.ts +6 -0
- package/@smudi/components/switch/switch.d.ts.map +1 -0
- package/@smudi/components/table/table.d.ts +6 -0
- package/@smudi/components/table/table.d.ts.map +1 -0
- package/@smudi/components/table/table.js +6 -0
- package/@smudi/components/tabs/tabs-content.d.ts +6 -0
- package/@smudi/components/tabs/tabs-content.d.ts.map +1 -0
- package/@smudi/components/tabs/tabs-content.js +6 -0
- package/@smudi/components/tabs/tabs-list.d.ts +6 -0
- package/@smudi/components/tabs/tabs-list.d.ts.map +1 -0
- package/@smudi/components/tabs/tabs-list.js +6 -0
- package/@smudi/components/tabs/tabs-trigger.d.ts +6 -0
- package/@smudi/components/tabs/tabs-trigger.d.ts.map +1 -0
- package/@smudi/components/tabs/tabs-trigger.js +6 -0
- package/@smudi/components/tabs/tabs.d.ts +6 -0
- package/@smudi/components/tabs/tabs.d.ts.map +1 -0
- package/@smudi/components/tabs/tabs.js +6 -0
- package/@smudi/components/tag/tag.d.ts +6 -0
- package/@smudi/components/tag/tag.d.ts.map +1 -0
- package/@smudi/components/tag/tag.js +6 -0
- package/@smudi/components/textarea/text-area.d.ts +6 -0
- package/@smudi/components/textarea/text-area.d.ts.map +1 -0
- package/@smudi/components/textarea/text-area.js +6 -0
- package/@smudi/components/textfield/textfield.d.ts +6 -0
- package/@smudi/components/textfield/textfield.d.ts.map +1 -0
- package/@smudi/components/textfield/textfield.js +6 -0
- package/@smudi/components/toast/toast.d.ts +39 -0
- package/@smudi/components/toast/toast.d.ts.map +1 -0
- package/@smudi/components/toast/toast.js +285 -0
- package/@smudi/components/toggle-group/toggle-group.d.ts +6 -0
- package/@smudi/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/@smudi/components/toggle-group/toggle-group.js +7 -0
- package/@smudi/components/tooltip/tooltip.d.ts +6 -0
- package/@smudi/components/tooltip/tooltip.d.ts.map +1 -0
- package/@smudi/components/tooltip/tooltip.js +6 -0
- package/@smudi/components/typography/heading/heading.d.ts +6 -0
- package/@smudi/components/typography/heading/heading.d.ts.map +1 -0
- package/@smudi/components/typography/heading/heading.js +6 -0
- package/@smudi/components/typography/paragraph/paragraph.d.ts +6 -0
- package/@smudi/components/typography/paragraph/paragraph.d.ts.map +1 -0
- package/@smudi/components/typography/paragraph/paragraph.js +6 -0
- package/@smudi/components/utils/apply-inert-outside.d.ts +17 -0
- package/@smudi/components/utils/apply-inert-outside.d.ts.map +1 -0
- package/@smudi/components/utils/apply-inert-outside.js +12 -0
- package/@smudi/components/utils/class-names.d.ts +2 -0
- package/@smudi/components/utils/class-names.d.ts.map +1 -0
- package/@smudi/components/utils/class-names.js +6 -0
- package/@smudi/icons/generated/SmudiBiometryIcon.js +32 -0
- package/@smudi/icons/generated/SmudiFingerprintIcon.js +62 -0
- package/@smudi/icons/generated/SmudiFlagIcon.js +30 -0
- package/@smudi/icons/generated/SmudiScanIcon.js +30 -0
- package/@smudi/react.js +198 -0
- package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts +8 -0
- package/@smudi/smudi/icons/generated/SmudiBiometryIcon.d.ts.map +1 -0
- package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts +8 -0
- package/@smudi/smudi/icons/generated/SmudiFingerprintIcon.d.ts.map +1 -0
- package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts +8 -0
- package/@smudi/smudi/icons/generated/SmudiFlagIcon.d.ts.map +1 -0
- package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts +8 -0
- package/@smudi/smudi/icons/generated/SmudiScanIcon.d.ts.map +1 -0
- package/@smudi/smudi/icons/generated/index.d.ts +5 -0
- package/@smudi/smudi/icons/generated/index.d.ts.map +1 -0
- package/@smudi/smudi/icons/metadata.d.ts +32 -0
- package/@smudi/smudi/icons/metadata.d.ts.map +1 -0
- package/@smudi/smudi/react.d.ts +55 -0
- package/@smudi/smudi/react.d.ts.map +1 -0
- package/@smudi/styles.css +1 -0
- package/@smudi/types/modular-scale.type.d.ts +18 -0
- package/@smudi/types/modular-scale.type.d.ts.map +1 -0
- package/@smudi/types/polymorphic-component.type.d.ts +35 -0
- package/@smudi/types/polymorphic-component.type.d.ts.map +1 -0
- package/@smudi/types/utils/coerce-string-to-number.d.ts +4 -0
- package/@smudi/types/utils/coerce-string-to-number.d.ts.map +1 -0
- package/@smudi/types/utils/exclude-strict.d.ts +2 -0
- package/@smudi/types/utils/exclude-strict.d.ts.map +1 -0
- package/@smudi/types/utils/omit-strict.d.ts +2 -0
- package/@smudi/types/utils/omit-strict.d.ts.map +1 -0
- package/@smudi/utils/append-class-name.js +10 -0
- package/@smudi/utils/combine-refs.js +10 -0
- package/README.md +83 -0
- package/package.json +80 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EXPERIMENTAL_Suggestion as o } from "@digdir/designsystemet-react";
|
|
2
|
+
import { SmudiSuggestion as i } from "./smudi-suggestion/smudi-suggestion.js";
|
|
3
|
+
import { SmudiSuggestionList as t } from "./smudi-suggestion/smudi-suggestion-list.js";
|
|
4
|
+
import { SuggestionNoChips as s } from "./suggestion-no-chips/suggestion-no-chips.js";
|
|
5
|
+
const p = Object.assign(i, {
|
|
6
|
+
displayName: "Suggestion",
|
|
7
|
+
...o,
|
|
8
|
+
NoChips: s,
|
|
9
|
+
List: t
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
p as Suggestion
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../components/switch/switch.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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../components/table/table.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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TabsPanel as TabsContentRoot, TabsPanelProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type TabsContent = typeof TabsContentRoot;
|
|
3
|
+
declare const TabsContentComponent: TabsContent;
|
|
4
|
+
export type { TabsPanelProps as TabsContentProps };
|
|
5
|
+
export { TabsContentComponent as TabsContent };
|
|
6
|
+
//# sourceMappingURL=tabs-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-content.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs-content.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,WAAW,GAAG,OAAO,eAAe,CAAC;AAE1C,QAAA,MAAM,oBAAoB,EAAE,WAA6B,CAAC;AAI1D,YAAY,EAAE,cAAc,IAAI,gBAAgB,EAAE,CAAC;AACnD,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TabsList as TabsListRoot, TabsListProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type TabsList = typeof TabsListRoot;
|
|
3
|
+
declare const TabsListComponent: TabsList;
|
|
4
|
+
export type { TabsListProps };
|
|
5
|
+
export { TabsListComponent as TabsList };
|
|
6
|
+
//# sourceMappingURL=tabs-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-list.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs-list.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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TabsTab as TabsTriggerRoot, TabsTabProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type TabsTrigger = typeof TabsTriggerRoot;
|
|
3
|
+
declare const TabsTriggerComponent: TabsTrigger;
|
|
4
|
+
export type { TabsTabProps as TabsTriggerProps };
|
|
5
|
+
export { TabsTriggerComponent as TabsTrigger };
|
|
6
|
+
//# sourceMappingURL=tabs-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-trigger.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,WAAW,GAAG,OAAO,eAAe,CAAC;AAE1C,QAAA,MAAM,oBAAoB,EAAE,WAA6B,CAAC;AAI1D,YAAY,EAAE,YAAY,IAAI,gBAAgB,EAAE,CAAC;AACjD,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEhF,KAAK,IAAI,GAAG,OAAO,QAAQ,CAAC;AAE5B,QAAA,MAAM,aAAa,EAAE,IAAe,CAAC;AAIrC,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../components/tag/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7E,KAAK,GAAG,GAAG,OAAO,OAAO,CAAC;AAE1B,QAAA,MAAM,YAAY,EAAE,GAAa,CAAC;AAIlC,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,OAAO,EAAE,YAAY,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Textarea as TextAreaRoot, TextareaProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type TextArea = typeof TextAreaRoot;
|
|
3
|
+
declare const TextAreaComponent: TextArea;
|
|
4
|
+
export type { TextareaProps };
|
|
5
|
+
export { TextAreaComponent as TextArea };
|
|
6
|
+
//# sourceMappingURL=text-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../components/textarea/text-area.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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Textfield as TextfieldRoot, TextfieldProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type Textfield = typeof TextfieldRoot;
|
|
3
|
+
declare const TextfieldComponent: Textfield;
|
|
4
|
+
export type { TextfieldProps };
|
|
5
|
+
export { TextfieldComponent as Textfield };
|
|
6
|
+
//# sourceMappingURL=textfield.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../components/textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,aAAa,EAC1B,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,SAAS,GAAG,OAAO,aAAa,CAAC;AAEtC,QAAA,MAAM,kBAAkB,EAAE,SAAyB,CAAC;AAIpD,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ToastColor = "neutral" | "success" | "danger" | "info" | "warning";
|
|
3
|
+
type ToastSize = "sm" | "md" | "lg";
|
|
4
|
+
export type ToastOptions = {
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: ToastColor;
|
|
7
|
+
"data-size"?: ToastSize;
|
|
8
|
+
width?: string;
|
|
9
|
+
minWidth?: string;
|
|
10
|
+
maxWidth?: string;
|
|
11
|
+
duration?: number | false;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ToastHandle = {
|
|
16
|
+
id: string;
|
|
17
|
+
close: () => void;
|
|
18
|
+
};
|
|
19
|
+
type ToastPromiseOptions = ToastOptions & {
|
|
20
|
+
loading: ReactNode;
|
|
21
|
+
success: ReactNode;
|
|
22
|
+
error: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
type ToastFunction = ((content: ReactNode, options?: ToastOptions) => ToastHandle) & {
|
|
25
|
+
dismiss: (id: string) => void;
|
|
26
|
+
success: (content: ReactNode, options?: ToastOptions) => ToastHandle;
|
|
27
|
+
danger: (content: ReactNode, options?: ToastOptions) => ToastHandle;
|
|
28
|
+
info: (content: ReactNode, options?: ToastOptions) => ToastHandle;
|
|
29
|
+
warning: (content: ReactNode, options?: ToastOptions) => ToastHandle;
|
|
30
|
+
neutral: (content: ReactNode, options?: ToastOptions) => ToastHandle;
|
|
31
|
+
promise: <T>(action: () => Promise<T>, options: ToastPromiseOptions) => Promise<T>;
|
|
32
|
+
};
|
|
33
|
+
export declare const toast: ToastFunction;
|
|
34
|
+
type ToastProviderProps = {
|
|
35
|
+
children?: ReactNode;
|
|
36
|
+
};
|
|
37
|
+
export declare function ToastProvider({ children }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../components/toast/toast.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAIf,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AACxE,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAiBF,KAAK,mBAAmB,GAAG,YAAY,GAAG;IACxC,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAoBF,KAAK,aAAa,GAAG,CAAC,CACpB,OAAO,EAAE,SAAS,EAClB,OAAO,CAAC,EAAE,YAAY,KACnB,WAAW,CAAC,GAAG;IAClB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IACrE,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IACpE,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IAClE,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IACrE,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,WAAW,CAAC;IACrE,OAAO,EAAE,CAAC,CAAC,EACT,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB,CAAC;AAiJF,eAAO,MAAM,KAAK,eAOjB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAgIF,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAuN7D"}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { jsxs as F, jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import { XMarkIcon as I } from "@navikt/aksel-icons";
|
|
3
|
+
import { useRef as C, useState as j, useEffect as $ } from "react";
|
|
4
|
+
import { Alert as G } from "../alert/alert.js";
|
|
5
|
+
import { Button as V } from "../button/button.js";
|
|
6
|
+
const X = 5e3, H = 300, K = 280, L = "info", Z = "md", M = "Lukk toast", q = "[smudi] Ingen ToastProvider er montert. Monter ToastProvider i app-roten.";
|
|
7
|
+
let g = null;
|
|
8
|
+
const h = [], p = /* @__PURE__ */ new Map();
|
|
9
|
+
let b = 0, O = 0, E = !1, S = null;
|
|
10
|
+
function J() {
|
|
11
|
+
return b += 1, `smudi-toast-${b}`;
|
|
12
|
+
}
|
|
13
|
+
function Q() {
|
|
14
|
+
return O += 1, `smudi-toast-provider-${O}`;
|
|
15
|
+
}
|
|
16
|
+
function N(t) {
|
|
17
|
+
return t?.id ?? J();
|
|
18
|
+
}
|
|
19
|
+
function _() {
|
|
20
|
+
return h[h.length - 1] ?? null;
|
|
21
|
+
}
|
|
22
|
+
function W(t) {
|
|
23
|
+
return t ? h.find((n) => n.id === t)?.api ?? null : null;
|
|
24
|
+
}
|
|
25
|
+
function U() {
|
|
26
|
+
const t = W(S);
|
|
27
|
+
return t || (g ?? _()?.api ?? null);
|
|
28
|
+
}
|
|
29
|
+
function Y(t) {
|
|
30
|
+
p.forEach((e, n) => {
|
|
31
|
+
e === t && p.delete(n);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function tt(t) {
|
|
35
|
+
S = t, g = W(t) ?? g;
|
|
36
|
+
}
|
|
37
|
+
function et(t, e = {}) {
|
|
38
|
+
const n = N(e), a = U();
|
|
39
|
+
return a ? (p.set(n, a), a.show(t, { ...e, id: n })) : (typeof console < "u" && !E && (console.warn(q), E = !0), {
|
|
40
|
+
id: n,
|
|
41
|
+
close: () => g?.dismiss(n)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function rt(t, e) {
|
|
45
|
+
function n(o, u = {}) {
|
|
46
|
+
const c = N(u);
|
|
47
|
+
return t(o, { ...u, id: c });
|
|
48
|
+
}
|
|
49
|
+
const a = (o) => (u, c = {}) => n(u, { ...c, color: o });
|
|
50
|
+
return Object.assign(n, {
|
|
51
|
+
dismiss(o) {
|
|
52
|
+
e(o);
|
|
53
|
+
},
|
|
54
|
+
success: a("success"),
|
|
55
|
+
danger: a("danger"),
|
|
56
|
+
info: a("info"),
|
|
57
|
+
warning: a("warning"),
|
|
58
|
+
neutral: a("neutral"),
|
|
59
|
+
async promise(o, u) {
|
|
60
|
+
const { loading: c, success: v, error: l, ...d } = u, A = n(c, {
|
|
61
|
+
...d,
|
|
62
|
+
busy: !0,
|
|
63
|
+
color: d.color ?? L
|
|
64
|
+
});
|
|
65
|
+
try {
|
|
66
|
+
const f = await o();
|
|
67
|
+
return n(v, {
|
|
68
|
+
...d,
|
|
69
|
+
busy: !1,
|
|
70
|
+
color: "success",
|
|
71
|
+
id: A.id
|
|
72
|
+
}), f;
|
|
73
|
+
} catch (f) {
|
|
74
|
+
throw n(l, {
|
|
75
|
+
...d,
|
|
76
|
+
busy: !1,
|
|
77
|
+
color: "danger",
|
|
78
|
+
id: A.id
|
|
79
|
+
}), f;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
const wt = rt(
|
|
85
|
+
(t, e) => et(t, e),
|
|
86
|
+
(t) => {
|
|
87
|
+
const e = p.get(t) ?? U();
|
|
88
|
+
p.delete(t), e?.dismiss(t);
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
function nt(t, e, n) {
|
|
92
|
+
return {
|
|
93
|
+
id: n,
|
|
94
|
+
className: e.className,
|
|
95
|
+
content: t,
|
|
96
|
+
color: e.color ?? L,
|
|
97
|
+
size: e["data-size"] ?? Z,
|
|
98
|
+
width: e.width,
|
|
99
|
+
minWidth: e.minWidth,
|
|
100
|
+
maxWidth: e.maxWidth,
|
|
101
|
+
duration: e.duration ?? X,
|
|
102
|
+
busy: e.busy ?? !1,
|
|
103
|
+
closing: !1,
|
|
104
|
+
shifting: !1
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function D(t, e) {
|
|
108
|
+
const n = e.get(t);
|
|
109
|
+
n && (clearTimeout(n), e.delete(t));
|
|
110
|
+
}
|
|
111
|
+
function it(t, e) {
|
|
112
|
+
return t.map(
|
|
113
|
+
(n) => n.id === e ? { ...n, closing: !0 } : n
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
function ot(t, e) {
|
|
117
|
+
return t.filter((n) => n.id !== e);
|
|
118
|
+
}
|
|
119
|
+
function st(t, e) {
|
|
120
|
+
return [
|
|
121
|
+
e,
|
|
122
|
+
...t.map((n) => n.closing ? n : { ...n, shifting: !0 })
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
function at(t, e) {
|
|
126
|
+
return t.map((n) => n.id === e.id ? e : n);
|
|
127
|
+
}
|
|
128
|
+
function ut(t) {
|
|
129
|
+
return t.map(
|
|
130
|
+
(e) => e.shifting ? { ...e, shifting: !1 } : e
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function ct(t, e) {
|
|
134
|
+
h.push({ id: t, api: e }), g = e, S = t, E = !1;
|
|
135
|
+
}
|
|
136
|
+
function lt(t, e) {
|
|
137
|
+
const n = h.findIndex(
|
|
138
|
+
(o) => o.id === t
|
|
139
|
+
);
|
|
140
|
+
n !== -1 && h.splice(n, 1), Y(e);
|
|
141
|
+
const a = _();
|
|
142
|
+
g = a?.api ?? null, S === t && (S = a?.id ?? null);
|
|
143
|
+
}
|
|
144
|
+
function dt(t) {
|
|
145
|
+
t.forEach((e) => clearTimeout(e)), t.clear();
|
|
146
|
+
}
|
|
147
|
+
function ft(t) {
|
|
148
|
+
t.forEach((e) => {
|
|
149
|
+
e.timeout && clearTimeout(e.timeout);
|
|
150
|
+
}), t.clear();
|
|
151
|
+
}
|
|
152
|
+
function mt(t, e) {
|
|
153
|
+
return /* @__PURE__ */ F("div", { className: "smudi-toast-content-with-close", children: [
|
|
154
|
+
/* @__PURE__ */ T("div", { children: t.content }),
|
|
155
|
+
!t.busy && /* @__PURE__ */ T(
|
|
156
|
+
V,
|
|
157
|
+
{
|
|
158
|
+
"aria-label": M,
|
|
159
|
+
className: "smudi-toast-close-button",
|
|
160
|
+
"data-size": "sm",
|
|
161
|
+
icon: !0,
|
|
162
|
+
onClick: () => e(t.id),
|
|
163
|
+
title: M,
|
|
164
|
+
variant: "tertiary",
|
|
165
|
+
children: /* @__PURE__ */ T(I, { "aria-hidden": !0 })
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
] });
|
|
169
|
+
}
|
|
170
|
+
function xt({ children: t }) {
|
|
171
|
+
const e = C(Q()), [n, a] = j([]), o = C(/* @__PURE__ */ new Map()), u = C(/* @__PURE__ */ new Map()), c = C(null), v = C(null), l = (r) => {
|
|
172
|
+
const i = o.current.get(r);
|
|
173
|
+
i && (i.timeout && clearTimeout(i.timeout), o.current.delete(r));
|
|
174
|
+
}, d = (r, i) => {
|
|
175
|
+
l(r);
|
|
176
|
+
const s = {
|
|
177
|
+
remaining: i,
|
|
178
|
+
startedAt: Date.now(),
|
|
179
|
+
timeout: null
|
|
180
|
+
};
|
|
181
|
+
s.timeout = setTimeout(() => {
|
|
182
|
+
m(r);
|
|
183
|
+
}, i), o.current.set(r, s);
|
|
184
|
+
}, A = (r) => {
|
|
185
|
+
const i = o.current.get(r);
|
|
186
|
+
!i || !i.timeout || (clearTimeout(i.timeout), i.remaining = Math.max(
|
|
187
|
+
0,
|
|
188
|
+
i.remaining - (Date.now() - i.startedAt)
|
|
189
|
+
), i.timeout = null, o.current.set(r, i));
|
|
190
|
+
}, f = (r) => {
|
|
191
|
+
const i = o.current.get(r);
|
|
192
|
+
if (!(!i || i.timeout)) {
|
|
193
|
+
if (i.remaining <= 0) {
|
|
194
|
+
m(r);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
i.startedAt = Date.now(), i.timeout = setTimeout(() => {
|
|
198
|
+
m(r);
|
|
199
|
+
}, i.remaining), o.current.set(r, i);
|
|
200
|
+
}
|
|
201
|
+
}, k = (r, i) => {
|
|
202
|
+
const s = i.relatedTarget;
|
|
203
|
+
s && i.currentTarget.contains(s) || f(r);
|
|
204
|
+
}, m = (r) => {
|
|
205
|
+
l(r), D(r, u.current), p.delete(r), a((s) => it(s, r));
|
|
206
|
+
const i = setTimeout(() => {
|
|
207
|
+
a((s) => ot(s, r)), u.current.delete(r);
|
|
208
|
+
}, H);
|
|
209
|
+
u.current.set(r, i);
|
|
210
|
+
}, B = () => {
|
|
211
|
+
c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
212
|
+
a((r) => ut(r));
|
|
213
|
+
}, K);
|
|
214
|
+
};
|
|
215
|
+
v.current || (v.current = {
|
|
216
|
+
show(r, i = {}) {
|
|
217
|
+
const s = N(i), x = nt(r, i, s);
|
|
218
|
+
return D(s, u.current), a((y) => y.findIndex(
|
|
219
|
+
(z) => z.id === s
|
|
220
|
+
) === -1 ? (B(), st(y, x)) : at(y, x)), x.busy ? l(s) : x.duration !== !1 ? d(s, x.duration) : l(s), {
|
|
221
|
+
id: s,
|
|
222
|
+
close: () => m(s)
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
dismiss: m
|
|
226
|
+
});
|
|
227
|
+
const P = v.current, w = e.current, R = () => {
|
|
228
|
+
tt(w);
|
|
229
|
+
};
|
|
230
|
+
return $(() => (ct(w, P), () => {
|
|
231
|
+
lt(w, P), c.current && clearTimeout(c.current), ft(o.current), dt(u.current);
|
|
232
|
+
}), [w, P]), /* @__PURE__ */ F(
|
|
233
|
+
"div",
|
|
234
|
+
{
|
|
235
|
+
"data-smudi-toast-provider-id": w,
|
|
236
|
+
onFocusCapture: R,
|
|
237
|
+
onMouseDownCapture: R,
|
|
238
|
+
style: { display: "contents" },
|
|
239
|
+
children: [
|
|
240
|
+
t,
|
|
241
|
+
/* @__PURE__ */ T(
|
|
242
|
+
"div",
|
|
243
|
+
{
|
|
244
|
+
"aria-atomic": "false",
|
|
245
|
+
"aria-live": "polite",
|
|
246
|
+
className: "smudi-toast-viewport",
|
|
247
|
+
role: "status",
|
|
248
|
+
children: n.map((r) => /* @__PURE__ */ T(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: "smudi-toast-item",
|
|
252
|
+
"data-shifting": r.shifting ? "true" : void 0,
|
|
253
|
+
onBlurCapture: (i) => k(r.id, i),
|
|
254
|
+
onFocusCapture: () => A(r.id),
|
|
255
|
+
onMouseEnter: () => A(r.id),
|
|
256
|
+
onMouseLeave: () => f(r.id),
|
|
257
|
+
children: /* @__PURE__ */ T(
|
|
258
|
+
G,
|
|
259
|
+
{
|
|
260
|
+
"aria-busy": r.busy || void 0,
|
|
261
|
+
className: `smudi-toast ${r.className ?? ""}`.trim(),
|
|
262
|
+
"data-closing": r.closing ? "true" : void 0,
|
|
263
|
+
"data-color": r.color,
|
|
264
|
+
"data-size": r.size,
|
|
265
|
+
style: {
|
|
266
|
+
"--smudi-toast-width": r.width,
|
|
267
|
+
"--smudi-toast-min-width": r.minWidth,
|
|
268
|
+
"--smudi-toast-max-width": r.maxWidth
|
|
269
|
+
},
|
|
270
|
+
children: mt(r, m)
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
},
|
|
274
|
+
r.id
|
|
275
|
+
))
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
export {
|
|
283
|
+
xt as ToastProvider,
|
|
284
|
+
wt as toast
|
|
285
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ToggleGroup as ToggleGroupRoot, ToggleGroupProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type ToggleGroup = typeof ToggleGroupRoot;
|
|
3
|
+
declare const ToggleGroupComponent: ToggleGroup;
|
|
4
|
+
export type { ToggleGroupProps };
|
|
5
|
+
export { ToggleGroupComponent as ToggleGroup };
|
|
6
|
+
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../components/toggle-group/toggle-group.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;AAK1D,YAAY,EAAE,gBAAgB,EAAE,CAAC;AACjC,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tooltip as TooltipRoot, TooltipProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type Tooltip = typeof TooltipRoot;
|
|
3
|
+
declare const TooltipComponent: Tooltip;
|
|
4
|
+
export type { TooltipProps };
|
|
5
|
+
export { TooltipComponent as Tooltip };
|
|
6
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../components/tooltip/tooltip.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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Heading as HeadingRoot, HeadingProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type Heading = typeof HeadingRoot;
|
|
3
|
+
declare const HeadingComponent: Heading;
|
|
4
|
+
export type { HeadingProps };
|
|
5
|
+
export { HeadingComponent as Heading };
|
|
6
|
+
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../components/typography/heading/heading.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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Paragraph as ParagraphRoot, ParagraphProps } from '@digdir/designsystemet-react';
|
|
2
|
+
type Paragraph = typeof ParagraphRoot;
|
|
3
|
+
declare const ParagraphComponent: Paragraph;
|
|
4
|
+
export type { ParagraphProps };
|
|
5
|
+
export { ParagraphComponent as Paragraph };
|
|
6
|
+
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../components/typography/paragraph/paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,aAAa,EAC1B,KAAK,cAAc,EACpB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,SAAS,GAAG,OAAO,aAAa,CAAC;AAEtC,QAAA,MAAM,kBAAkB,EAAE,SAAyB,CAAC;AAIpD,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes everything outside `element` inert, up to `document.body`, so
|
|
3
|
+
* keyboard focus and assistive tech can't reach page content that sits
|
|
4
|
+
* visually behind a full-screen overlay (e.g. a menu or search panel
|
|
5
|
+
* opened from the header).
|
|
6
|
+
*
|
|
7
|
+
* Pass `exclude` to keep a specific element (and its descendants) out of the
|
|
8
|
+
* inert subtree even if it happens to be a sibling of `element` - e.g. the
|
|
9
|
+
* trigger button that opened the overlay, which must stay focusable so it
|
|
10
|
+
* can be used to close it again.
|
|
11
|
+
*
|
|
12
|
+
* Call the returned function to restore the page to its previous state.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyInertOutside(element: Element, options?: {
|
|
15
|
+
exclude?: Element | null;
|
|
16
|
+
}): () => void;
|
|
17
|
+
//# sourceMappingURL=apply-inert-outside.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-inert-outside.d.ts","sourceRoot":"","sources":["../../../components/utils/apply-inert-outside.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,GACrC,MAAM,IAAI,CA0BZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function i(r, l) {
|
|
2
|
+
const o = [], t = l?.exclude ?? null;
|
|
3
|
+
for (let e = r; e && e !== document.body; e = e.parentElement)
|
|
4
|
+
for (const n of e.parentElement?.children ?? [])
|
|
5
|
+
n !== e && n instanceof HTMLElement && !n.inert && n !== t && !(t && n.contains(t)) && (n.inert = !0, o.push(n));
|
|
6
|
+
return () => {
|
|
7
|
+
for (const e of o) e.inert = !1;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as applyInertOutside
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-names.d.ts","sourceRoot":"","sources":["../../../components/utils/class-names.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CACxB,GAAG,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,UAGpD"}
|