@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
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='80'%20height='43'%20viewBox='0%200%2080%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M26.3952%2029.56C26.3952%2036.28%2020.9452%2041.73%2014.2252%2041.73C7.50518%2041.73%202.05518%2036.28%202.05518%2029.56V2.03998H9.21518V34.26H19.2352V2.03998H26.3952V29.56ZM60.7652%2014.22C60.7652%207.49998%2055.3152%202.04998%2048.5952%202.04998H36.4252V41.46H48.5952C55.3152%2041.46%2060.7652%2036.01%2060.7652%2029.29V14.22ZM53.6052%2034.26H43.5852V9.19998H53.6052V34.26Z'%20fill='%23C8373C'/%3e%3cpath%20d='M77.9552%202.03998H70.7852V41.45H77.9552V2.03998Z'%20fill='%23C8373C'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps as DigdirButtonProps } from '@digdir/designsystemet-react';
|
|
2
|
+
interface ButtonProps extends Omit<DigdirButtonProps, "variant"> {
|
|
3
|
+
variant?: DigdirButtonProps["variant"] | "secondary-tinted";
|
|
4
|
+
}
|
|
5
|
+
declare const ButtonComponent: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export type { ButtonProps };
|
|
7
|
+
export { ButtonComponent as Button };
|
|
8
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAAC;IAC9D,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,kBAAkB,CAAC;CAC7D;AAED,QAAA,MAAM,eAAe,uFAsBpB,CAAC;AAIF,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Button as d } from "@digdir/designsystemet-react";
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
const u = m(
|
|
5
|
+
function({ variant: o, className: n, ...e }, r) {
|
|
6
|
+
const t = o === "secondary-tinted", s = t ? "secondary" : o, i = [
|
|
7
|
+
n,
|
|
8
|
+
"smudi-button",
|
|
9
|
+
t ? "smudi-button--secondary-tinted" : void 0
|
|
10
|
+
].filter(Boolean).join(" ");
|
|
11
|
+
return /* @__PURE__ */ a(
|
|
12
|
+
d,
|
|
13
|
+
{
|
|
14
|
+
...e,
|
|
15
|
+
ref: r,
|
|
16
|
+
variant: s,
|
|
17
|
+
className: i || void 0
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
u.displayName = "Button";
|
|
23
|
+
export {
|
|
24
|
+
u as Button
|
|
25
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CardIconBlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
orientation?: "vertical" | "horizontal";
|
|
4
|
+
}
|
|
5
|
+
export declare const CardIconBlock: React.ForwardRefExoticComponent<CardIconBlockProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//# sourceMappingURL=card-icon-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;AAED,eAAO,MAAM,aAAa,2FAgBzB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { classNames as d } from "../utils/class-names.js";
|
|
4
|
+
const m = n(
|
|
5
|
+
function({ children: o, className: r, orientation: a = "vertical", ...c }, t) {
|
|
6
|
+
return /* @__PURE__ */ i(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: d("ds-card__icon-block", r),
|
|
10
|
+
"data-orientation": a,
|
|
11
|
+
ref: t,
|
|
12
|
+
...c,
|
|
13
|
+
children: o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
m.displayName = "Card.IconBlock";
|
|
19
|
+
export {
|
|
20
|
+
m as CardIconBlock
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
declare const CardComponent: Card;
|
|
7
|
+
export type { CardProps, CardIconBlockProps };
|
|
8
|
+
export { CardComponent as Card };
|
|
9
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,QAAA,MAAM,aAAa,EAAe,IAAI,CAAC;AAIvC,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAC9C,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { classNames as s } from "../utils/class-names.js";
|
|
4
|
+
const m = e(
|
|
5
|
+
function({ children: o, className: i, ...a }, r) {
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: s("ds-dialog__section", i),
|
|
10
|
+
ref: r,
|
|
11
|
+
...a,
|
|
12
|
+
children: o
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
m.displayName = "Dialog.Section";
|
|
18
|
+
export {
|
|
19
|
+
m as DialogSection
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
declare const DialogComponent: Dialog;
|
|
7
|
+
export type { DialogProps, DialogSectionProps };
|
|
8
|
+
export { DialogComponent as Dialog };
|
|
9
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,QAAA,MAAM,eAAe,EAAiB,MAAM,CAAC;AAK7C,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;AAChD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { DropdownButtonProps as DropdownButtonRootProps } from '@digdir/designsystemet-react';
|
|
3
|
+
export interface DropdownButtonClickEvent {
|
|
4
|
+
/** Det originale click-eventet */
|
|
5
|
+
event: MouseEvent<HTMLButtonElement>;
|
|
6
|
+
/** Funksjon for å lukke Dropdown */
|
|
7
|
+
close: () => void;
|
|
8
|
+
}
|
|
9
|
+
/** @expand */
|
|
10
|
+
export interface DropdownButtonProps extends Omit<DropdownButtonRootProps, "onClick" | "type"> {
|
|
11
|
+
/**
|
|
12
|
+
* Når den er true, lukkes ikke Dropdown automatisk ved klikk. For å lukke den
|
|
13
|
+
* kan du bruke close-funksjonen fra onClick-handleren.
|
|
14
|
+
*/
|
|
15
|
+
preventAutoClose?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Egendefinert click-event som inneholder originalt event og en
|
|
18
|
+
* close-funksjon som lukker Dropdown.
|
|
19
|
+
*
|
|
20
|
+
* {
|
|
21
|
+
* event: MouseEvent<HTMLButtonElement>;
|
|
22
|
+
* close: () => void;
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* @returns DropdownButtonClickEvent
|
|
26
|
+
*/
|
|
27
|
+
onClick?: (event: DropdownButtonClickEvent) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
//# sourceMappingURL=dropdown-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,kCAAkC;IAClC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACrC,oCAAoC;IACpC,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,eAAO,MAAM,cAAc,+FAkBzB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { useDropdown as s } from "./dropdown-context.js";
|
|
4
|
+
import { DropdownButton as u } from "@digdir/designsystemet-react";
|
|
5
|
+
const a = e(({ preventAutoClose: r = !1, children: t, onClick: n, ...p }, f) => {
|
|
6
|
+
const { close: o } = s();
|
|
7
|
+
function i(m) {
|
|
8
|
+
n?.({ event: m, close: o }), r || o();
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ d(u, { ...p, ref: f, onClick: i, children: t });
|
|
11
|
+
});
|
|
12
|
+
a.displayName = "Dropdown.Button";
|
|
13
|
+
export {
|
|
14
|
+
a as DropdownButton
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createContext as t, useContext as n } from "react";
|
|
2
|
+
const r = t(null);
|
|
3
|
+
function u() {
|
|
4
|
+
const o = n(r);
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new Error("useDropdown must be used within Dropdown");
|
|
7
|
+
return o;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
r as DropdownContext,
|
|
11
|
+
u as useDropdown
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownItemProps as DropdownItemRootProps } from '@digdir/designsystemet-react';
|
|
2
|
+
/** @expand */
|
|
3
|
+
export interface DropdownItemProps extends DropdownItemRootProps {
|
|
4
|
+
/**
|
|
5
|
+
* Viser en skillelinje under elementet. Skjules hvis dette elementet er det siste.
|
|
6
|
+
*/
|
|
7
|
+
divider?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
//# sourceMappingURL=dropdown-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,eAAO,MAAM,YAAY,yFAWxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { DropdownItem as p } from "@digdir/designsystemet-react";
|
|
4
|
+
const a = i(
|
|
5
|
+
({ children: o, divider: r, className: s, ...d }, m) => {
|
|
6
|
+
const e = `${r ? "smudi-dropdown-divider" : ""} ${s ?? ""}`.trim();
|
|
7
|
+
return /* @__PURE__ */ t(p, { ...d, ref: m, className: e, children: o });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
a.displayName = "Dropdown.Item";
|
|
11
|
+
export {
|
|
12
|
+
a as DropdownItem
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownListProps as DropdownListRootProps } from '@digdir/designsystemet-react';
|
|
2
|
+
/** @expand */
|
|
3
|
+
export interface DropdownListProps extends DropdownListRootProps {
|
|
4
|
+
/**
|
|
5
|
+
* Viser en skillelinje under listen. Skjules hvis dette elementet er det siste.
|
|
6
|
+
*/
|
|
7
|
+
divider?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const DropdownList: React.ForwardRefExoticComponent<DropdownListProps & React.RefAttributes<HTMLUListElement>>;
|
|
10
|
+
//# sourceMappingURL=dropdown-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,eAAO,MAAM,YAAY,4FAWxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { DropdownList as p } from "@digdir/designsystemet-react";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
const e = a(
|
|
5
|
+
({ children: o, divider: r, className: s, ...i }, d) => {
|
|
6
|
+
const t = `${r ? "smudi-dropdown-divider" : ""} ${s ?? ""}`.trim();
|
|
7
|
+
return /* @__PURE__ */ m(p, { ...i, ref: d, className: t, children: o });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
e.displayName = "Dropdown.List";
|
|
11
|
+
export {
|
|
12
|
+
e as DropdownList
|
|
13
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
/** Gir siste åpningstilstand */
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const DropdownMenu: ForwardedDropdown;
|
|
13
|
+
declare const Dropdown: typeof DropdownMenu & Omit<typeof DropdownRoot, "Item" | "Button"> & {
|
|
14
|
+
Item: typeof DropdownItem;
|
|
15
|
+
Button: typeof DropdownButton;
|
|
16
|
+
List: typeof DropdownList;
|
|
17
|
+
};
|
|
18
|
+
export type { DropdownProps };
|
|
19
|
+
export { Dropdown };
|
|
20
|
+
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,gCAAgC;IAChC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Dropdown as p } from "@digdir/designsystemet-react";
|
|
3
|
+
import { forwardRef as l, useRef as D, useState as O } from "react";
|
|
4
|
+
import { DropdownItem as v } from "./dropdown-item.js";
|
|
5
|
+
import { DropdownButton as I } from "./dropdown-button.js";
|
|
6
|
+
import { DropdownContext as R } from "./dropdown-context.js";
|
|
7
|
+
import { combineRefs as h } from "../../utils/combine-refs.js";
|
|
8
|
+
import { DropdownList as x } from "./dropdown-list.js";
|
|
9
|
+
const B = l(
|
|
10
|
+
({ children: s, onOpen: i, onClose: m, onOpenChange: f, ...d }, u) => {
|
|
11
|
+
const o = D(null), [c, a] = O(!1);
|
|
12
|
+
function r() {
|
|
13
|
+
o.current.hidePopover(), m?.(), t(!1);
|
|
14
|
+
}
|
|
15
|
+
function w() {
|
|
16
|
+
o.current.showPopover(), i?.(), t(!0);
|
|
17
|
+
}
|
|
18
|
+
function t(e) {
|
|
19
|
+
a(e), f?.(e);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
|
+
p,
|
|
23
|
+
{
|
|
24
|
+
...d,
|
|
25
|
+
onClose: r,
|
|
26
|
+
onOpen: w,
|
|
27
|
+
open: c,
|
|
28
|
+
ref: h(o, u),
|
|
29
|
+
children: /* @__PURE__ */ n(R.Provider, { value: { close: r }, children: s })
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
), { $$typeof: N, render: k, Item: q, Button: z, List: A, ...L } = p, P = Object.assign(B, {
|
|
34
|
+
...L,
|
|
35
|
+
Item: v,
|
|
36
|
+
Button: I,
|
|
37
|
+
List: x
|
|
38
|
+
});
|
|
39
|
+
P.displayName = "Dropdown";
|
|
40
|
+
export {
|
|
41
|
+
P as Dropdown
|
|
42
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|