@norges-domstoler/dds-components 4.0.2 → 4.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/dist/_virtual/_rollupPluginBabelHelpers.js +101 -0
- package/dist/assets/svg/bullets/jordskifterett_bullet1.svg.js +4 -0
- package/dist/assets/svg/bullets/lagmannsrett_bullet2.svg.js +4 -0
- package/dist/assets/svg/bullets/tingrett_bullet3.svg.js +4 -0
- package/dist/assets/svg/calendar_today.svg.js +4 -0
- package/dist/{index.css → bundle.css} +0 -0
- package/dist/{index.es.css → cjs/bundle.css} +0 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.d.ts +3 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +10 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +23 -0
- package/dist/cjs/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/cjs/components/Button/Button.d.ts +20 -0
- package/dist/cjs/components/Button/Button.stories.d.ts +63 -0
- package/dist/cjs/components/Button/Button.styles.d.ts +24 -0
- package/dist/cjs/components/Button/Button.tokens.d.ts +203 -0
- package/dist/cjs/components/Button/Button.types.d.ts +32 -0
- package/dist/cjs/components/Button/index.d.ts +2 -0
- package/dist/cjs/components/Card/Card.d.ts +23 -0
- package/dist/cjs/components/Card/Card.stories.d.ts +11 -0
- package/dist/cjs/components/Card/Card.tokens.d.ts +26 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +14 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +23 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.tokens.d.ts +4 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +22 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +17 -0
- package/dist/cjs/components/Card/index.d.ts +4 -0
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +19 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +58 -0
- package/dist/cjs/components/Checkbox/Checkbox.styles.d.ts +9 -0
- package/dist/cjs/components/Checkbox/Checkbox.tokens.d.ts +65 -0
- package/dist/cjs/components/Checkbox/Checkbox.types.d.ts +16 -0
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +18 -0
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +46 -0
- package/dist/cjs/components/Checkbox/CheckboxGroup.tokens.d.ts +19 -0
- package/dist/cjs/components/Checkbox/CheckboxGroupContext.d.ts +9 -0
- package/dist/cjs/components/Checkbox/index.d.ts +3 -0
- package/dist/cjs/components/Chip/Chip.d.ts +16 -0
- package/dist/cjs/components/Chip/Chip.stories.d.ts +20 -0
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +12 -0
- package/dist/cjs/components/Chip/ChipGroup.d.ts +3 -0
- package/dist/cjs/components/Chip/ChipGroup.stories.d.ts +8 -0
- package/dist/cjs/components/Chip/index.d.ts +2 -0
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +10 -0
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +55 -0
- package/dist/cjs/components/Datepicker/Datepicker.tokens.d.ts +9 -0
- package/dist/cjs/components/Datepicker/index.d.ts +1 -0
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +15 -0
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +18 -0
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +16 -0
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.tokens.d.ts +7 -0
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +15 -0
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.tokens.d.ts +4 -0
- package/dist/cjs/components/DescriptionList/DescriptionListTerm.d.ts +3 -0
- package/dist/cjs/components/DescriptionList/DescriptionListTerm.tokens.d.ts +13 -0
- package/dist/cjs/components/DescriptionList/index.d.ts +4 -0
- package/dist/cjs/components/Divider/Divider.d.ts +13 -0
- package/dist/cjs/components/Divider/Divider.stories.d.ts +15 -0
- package/dist/cjs/components/Divider/Divider.tokens.d.ts +8 -0
- package/dist/cjs/components/Divider/index.d.ts +1 -0
- package/dist/cjs/components/Drawer/Drawer.d.ts +50 -0
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +24 -0
- package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +17 -0
- package/dist/cjs/components/Drawer/DrawerGroup.d.ts +13 -0
- package/dist/cjs/components/Drawer/index.d.ts +2 -0
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +27 -0
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +31 -0
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +53 -0
- package/dist/cjs/components/GlobalMessage/index.d.ts +1 -0
- package/dist/cjs/components/IconWrapper/IconWrapper.d.ts +19 -0
- package/dist/cjs/components/IconWrapper/IconWrapper.stories.d.ts +22 -0
- package/dist/cjs/components/IconWrapper/index.d.ts +1 -0
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +17 -0
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +21 -0
- package/dist/cjs/components/InputMessage/InputMessage.tokens.d.ts +14 -0
- package/dist/cjs/components/InputMessage/index.d.ts +1 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +3 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +40 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +30 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +40 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +35 -0
- package/dist/cjs/components/InternalHeader/InternalHeaderListItem.d.ts +3 -0
- package/dist/cjs/components/InternalHeader/NavigationItem.d.ts +14 -0
- package/dist/cjs/components/InternalHeader/index.d.ts +2 -0
- package/dist/cjs/components/List/List.d.ts +21 -0
- package/dist/cjs/components/List/List.stories.d.ts +18 -0
- package/dist/cjs/components/List/List.tokens.d.ts +16 -0
- package/dist/cjs/components/List/ListItem.d.ts +3 -0
- package/dist/cjs/components/List/ListItem.tokens.d.ts +5 -0
- package/dist/cjs/components/List/index.d.ts +2 -0
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +37 -0
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +39 -0
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +100 -0
- package/dist/cjs/components/LocalMessage/index.d.ts +1 -0
- package/dist/cjs/components/Modal/Modal.d.ts +30 -0
- package/dist/cjs/components/Modal/Modal.stories.d.ts +28 -0
- package/dist/cjs/components/Modal/Modal.tokens.d.ts +19 -0
- package/dist/cjs/components/Modal/ModalActions.d.ts +3 -0
- package/dist/cjs/components/Modal/ModalBody.d.ts +14 -0
- package/dist/cjs/components/Modal/index.d.ts +3 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +23 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +26 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +22 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +36 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenuGroup.d.ts +14 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +24 -0
- package/dist/cjs/components/OverflowMenu/index.d.ts +3 -0
- package/dist/cjs/components/Pagination/Pagination.d.ts +52 -0
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +48 -0
- package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +15 -0
- package/dist/cjs/components/Pagination/index.d.ts +1 -0
- package/dist/cjs/components/Pagination/paginationGenerator.d.ts +1 -0
- package/dist/cjs/components/Popover/Popover.d.ts +56 -0
- package/dist/cjs/components/Popover/Popover.stories.d.ts +54 -0
- package/dist/cjs/components/Popover/Popover.tokens.d.ts +15 -0
- package/dist/cjs/components/Popover/PopoverGroup.d.ts +14 -0
- package/dist/cjs/components/Popover/index.d.ts +2 -0
- package/dist/cjs/components/RadioButton/RadioButton.d.ts +16 -0
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +50 -0
- package/dist/cjs/components/RadioButton/RadioButton.styles.d.ts +9 -0
- package/dist/cjs/components/RadioButton/RadioButton.tokens.d.ts +43 -0
- package/dist/cjs/components/RadioButton/RadioButton.types.d.ts +12 -0
- package/dist/cjs/components/RadioButton/RadioButtonGroup.d.ts +29 -0
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +47 -0
- package/dist/cjs/components/RadioButton/RadioButtonGroup.tokens.d.ts +19 -0
- package/dist/cjs/components/RadioButton/RadioButtonGroupContext.d.ts +13 -0
- package/dist/cjs/components/RadioButton/index.d.ts +3 -0
- package/dist/cjs/components/Search/Search.d.ts +21 -0
- package/dist/cjs/components/Search/Search.stories.d.ts +29 -0
- package/dist/cjs/components/Search/Search.tokens.d.ts +25 -0
- package/dist/cjs/components/Search/index.d.ts +1 -0
- package/dist/cjs/components/Select/MultiSelect.stories.d.ts +74 -0
- package/dist/cjs/components/Select/Select.d.ts +32 -0
- package/dist/cjs/components/Select/Select.stories.d.ts +69 -0
- package/dist/cjs/components/Select/Select.styles.d.ts +19 -0
- package/dist/cjs/components/Select/Select.tokens.d.ts +144 -0
- package/dist/cjs/components/Select/index.d.ts +1 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +21 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +33 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +19 -0
- package/dist/cjs/components/SkipToContent/index.d.ts +1 -0
- package/dist/cjs/components/Spinner/Spinner.d.ts +11 -0
- package/dist/cjs/components/Spinner/Spinner.stories.d.ts +21 -0
- package/dist/cjs/components/Spinner/Spinner.tokens.d.ts +6 -0
- package/dist/cjs/components/Spinner/index.d.ts +1 -0
- package/dist/cjs/components/Table/Body.d.ts +3 -0
- package/dist/cjs/components/Table/Cell.d.ts +10 -0
- package/dist/cjs/components/Table/Cell.tokens.d.ts +31 -0
- package/dist/cjs/components/Table/Foot.d.ts +3 -0
- package/dist/cjs/components/Table/Head.d.ts +3 -0
- package/dist/cjs/components/Table/Row.d.ts +23 -0
- package/dist/cjs/components/Table/Row.tokens.d.ts +32 -0
- package/dist/cjs/components/Table/SortCell.d.ts +19 -0
- package/dist/cjs/components/Table/Table.d.ts +14 -0
- package/dist/cjs/components/Table/Table.stories.d.ts +28 -0
- package/dist/cjs/components/Table/TableWrapper.d.ts +3 -0
- package/dist/cjs/components/Table/index.d.ts +8 -0
- package/dist/cjs/components/Table/tableData.d.ts +17 -0
- package/dist/cjs/components/Tabs/Tab.d.ts +37 -0
- package/dist/cjs/components/Tabs/TabList.d.ts +3 -0
- package/dist/cjs/components/Tabs/TabPanel.d.ts +14 -0
- package/dist/cjs/components/Tabs/TabPanels.d.ts +3 -0
- package/dist/cjs/components/Tabs/Tabs.context.d.ts +17 -0
- package/dist/cjs/components/Tabs/Tabs.d.ts +27 -0
- package/dist/cjs/components/Tabs/Tabs.stories.d.ts +10 -0
- package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +38 -0
- package/dist/cjs/components/Tabs/index.d.ts +5 -0
- package/dist/cjs/components/Tag/Tag.d.ts +17 -0
- package/dist/cjs/components/Tag/Tag.stories.d.ts +19 -0
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +26 -0
- package/dist/cjs/components/Tag/index.d.ts +1 -0
- package/dist/cjs/components/TextInput/CharCounter.d.ts +8 -0
- package/dist/cjs/components/TextInput/CharCounter.tokens.d.ts +4 -0
- package/dist/cjs/components/TextInput/TextInput.d.ts +10 -0
- package/dist/cjs/components/TextInput/TextInput.stories.d.ts +69 -0
- package/dist/cjs/components/TextInput/TextInput.styles.d.ts +10 -0
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +54 -0
- package/dist/cjs/components/TextInput/TextInput.types.d.ts +8 -0
- package/dist/cjs/components/TextInput/index.d.ts +2 -0
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +18 -0
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +14 -0
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +22 -0
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +13 -0
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.stories.d.ts +9 -0
- package/dist/cjs/components/ToggleButton/index.d.ts +2 -0
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +32 -0
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +35 -0
- package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +8 -0
- package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +14 -0
- package/dist/cjs/components/Tooltip/index.d.ts +1 -0
- package/dist/cjs/components/Typography/Body.stories.d.ts +11 -0
- package/dist/cjs/components/Typography/Examples.stories.d.ts +8 -0
- package/dist/cjs/components/Typography/Typography.d.ts +48 -0
- package/dist/cjs/components/Typography/Typography.stories.d.ts +63 -0
- package/dist/cjs/components/Typography/Typography.tokens.d.ts +230 -0
- package/dist/cjs/components/Typography/Typography.types.d.ts +13 -0
- package/dist/cjs/components/Typography/index.d.ts +2 -0
- package/dist/cjs/helpers/Backdrop/Backdrop.d.ts +5 -0
- package/dist/cjs/helpers/Backdrop/Backdrop.utils.d.ts +2 -0
- package/dist/cjs/helpers/Backdrop/index.d.ts +2 -0
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +9 -0
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +7 -0
- package/dist/cjs/helpers/Chevron/index.d.ts +1 -0
- package/dist/cjs/helpers/Input/Input.styles.d.ts +15 -0
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +78 -0
- package/dist/cjs/helpers/Input/Input.types.d.ts +20 -0
- package/dist/cjs/helpers/Input/index.d.ts +3 -0
- package/dist/cjs/helpers/Paper/Paper.d.ts +1 -0
- package/dist/cjs/helpers/Paper/Paper.tokens.d.ts +4 -0
- package/dist/cjs/helpers/Paper/index.d.ts +1 -0
- package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +2 -0
- package/dist/cjs/helpers/RequiredMarker/index.d.ts +1 -0
- package/dist/cjs/helpers/index.d.ts +5 -0
- package/dist/cjs/helpers/styling/danger.d.ts +4 -0
- package/dist/cjs/helpers/styling/focus.d.ts +9 -0
- package/dist/cjs/helpers/styling/focusVisible.d.ts +37 -0
- package/dist/cjs/helpers/styling/hideInput.d.ts +7 -0
- package/dist/cjs/helpers/styling/hover.d.ts +14 -0
- package/dist/cjs/helpers/styling/index.d.ts +8 -0
- package/dist/cjs/helpers/styling/removeButtonStyling.d.ts +9 -0
- package/dist/cjs/helpers/styling/removeListStyling.d.ts +5 -0
- package/dist/cjs/helpers/styling/scrollbarStyling.d.ts +3 -0
- package/dist/cjs/helpers/styling/visibilityTransition.d.ts +1 -0
- package/dist/cjs/hooks/index.d.ts +9 -0
- package/dist/cjs/hooks/useCombinedRefs.d.ts +2 -0
- package/dist/cjs/hooks/useFloatPosition.d.ts +25 -0
- package/dist/cjs/hooks/useFocusTrap.d.ts +2 -0
- package/dist/cjs/hooks/useId.d.ts +1 -0
- package/dist/cjs/hooks/useMountTransition.d.ts +1 -0
- package/dist/cjs/hooks/useOnClickOutside.d.ts +1 -0
- package/dist/cjs/hooks/useOnKeyDown.d.ts +1 -0
- package/dist/cjs/hooks/useRoveFocus.d.ts +3 -0
- package/dist/cjs/hooks/useScreenSize.d.ts +8 -0
- package/dist/cjs/index.d.ts +34 -0
- package/dist/cjs/index.js +7987 -0
- package/dist/cjs/types/BaseComponentProps.d.ts +58 -0
- package/dist/cjs/types/Direction.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/utils.d.ts +8 -0
- package/dist/cjs/utils/color.d.ts +6 -0
- package/dist/cjs/utils/combineHandlers.d.ts +1 -0
- package/dist/cjs/utils/getScrollbarSize.d.ts +1 -0
- package/dist/cjs/utils/idGenerator.d.ts +3 -0
- package/dist/cjs/utils/index.d.ts +5 -0
- package/dist/cjs/utils/text.d.ts +2 -0
- package/dist/components/Breadcrumbs/Breadcrumb.js +34 -0
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +22 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +62 -0
- package/dist/components/Button/Button.js +90 -0
- package/dist/components/Button/Button.styles.js +56 -0
- package/dist/components/Button/Button.tokens.js +463 -0
- package/dist/components/Card/Card.js +54 -0
- package/dist/components/Card/Card.tokens.js +60 -0
- package/dist/components/Card/CardAccordion/CardAccordion.js +63 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +73 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.tokens.js +12 -0
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +65 -0
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.js +38 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -2
- package/dist/components/Checkbox/Checkbox.js +68 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +6 -2
- package/dist/components/Checkbox/Checkbox.styles.js +45 -0
- package/dist/components/Checkbox/Checkbox.tokens.js +129 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js +87 -0
- package/dist/components/Checkbox/CheckboxGroup.tokens.js +32 -0
- package/dist/components/Checkbox/CheckboxGroupContext.js +8 -0
- package/dist/components/Chip/Chip.js +57 -0
- package/dist/components/Chip/Chip.tokens.js +39 -0
- package/dist/components/Chip/ChipGroup.js +29 -0
- package/dist/components/Datepicker/Datepicker.js +91 -0
- package/dist/components/Datepicker/Datepicker.tokens.js +25 -0
- package/dist/components/DescriptionList/DescriptionList.js +34 -0
- package/dist/components/DescriptionList/DescriptionListDesc.js +36 -0
- package/dist/components/DescriptionList/DescriptionListDesc.tokens.js +19 -0
- package/dist/components/DescriptionList/DescriptionListGroup.js +33 -0
- package/dist/components/DescriptionList/DescriptionListGroup.tokens.js +11 -0
- package/dist/components/DescriptionList/DescriptionListTerm.js +22 -0
- package/dist/components/DescriptionList/DescriptionListTerm.tokens.js +27 -0
- package/dist/components/Divider/Divider.js +31 -0
- package/dist/components/Divider/Divider.tokens.js +20 -0
- package/dist/components/Drawer/Drawer.js +121 -0
- package/dist/components/Drawer/Drawer.tokens.js +34 -0
- package/dist/components/Drawer/DrawerGroup.js +61 -0
- package/dist/components/GlobalMessage/GlobalMessage.js +85 -0
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +83 -0
- package/dist/components/IconWrapper/IconWrapper.js +42 -0
- package/dist/components/InputMessage/InputMessage.js +46 -0
- package/dist/components/InputMessage/InputMessage.tokens.js +30 -0
- package/dist/components/InternalHeader/InternalHeader.js +122 -0
- package/dist/components/InternalHeader/InternalHeader.styles.js +49 -0
- package/dist/components/InternalHeader/InternalHeader.tokens.js +93 -0
- package/dist/components/InternalHeader/InternalHeaderListItem.js +22 -0
- package/dist/components/InternalHeader/NavigationItem.js +30 -0
- package/dist/components/List/List.js +48 -0
- package/dist/components/List/List.tokens.js +37 -0
- package/dist/components/List/ListItem.js +22 -0
- package/dist/components/List/ListItem.tokens.js +12 -0
- package/dist/components/LocalMessage/LocalMessage.js +124 -0
- package/dist/components/LocalMessage/LocalMessage.tokens.js +151 -0
- package/dist/components/Modal/Modal.js +122 -0
- package/dist/components/Modal/Modal.tokens.js +45 -0
- package/dist/components/Modal/ModalActions.js +23 -0
- package/dist/components/Modal/ModalBody.js +35 -0
- package/dist/components/OverflowMenu/OverflowMenu.js +164 -0
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +55 -0
- package/dist/components/OverflowMenu/OverflowMenuGroup.js +64 -0
- package/dist/components/OverflowMenu/OverflowMenuItem.js +116 -0
- package/dist/components/Pagination/Pagination.js +250 -0
- package/dist/components/Pagination/Pagination.tokens.js +23 -0
- package/dist/components/Pagination/paginationGenerator.js +42 -0
- package/dist/components/Popover/Popover.js +104 -0
- package/dist/components/Popover/Popover.tokens.js +38 -0
- package/dist/components/Popover/PopoverGroup.js +85 -0
- package/dist/components/RadioButton/RadioButton.js +90 -0
- package/dist/components/RadioButton/RadioButton.styles.js +34 -0
- package/dist/components/RadioButton/RadioButton.tokens.js +97 -0
- package/dist/components/RadioButton/RadioButtonGroup.js +108 -0
- package/dist/components/RadioButton/RadioButtonGroup.tokens.js +32 -0
- package/dist/components/RadioButton/RadioButtonGroupContext.js +8 -0
- package/dist/components/Search/Search.js +93 -0
- package/dist/components/Search/Search.tokens.js +55 -0
- package/dist/components/Select/Select.js +154 -0
- package/dist/components/Select/Select.styles.js +149 -0
- package/dist/components/Select/Select.tokens.js +311 -0
- package/dist/components/SkipToContent/SkipToContent.js +49 -0
- package/dist/components/SkipToContent/SkipToContent.tokens.js +40 -0
- package/dist/components/Spinner/Spinner.js +80 -0
- package/dist/components/Spinner/Spinner.tokens.js +13 -0
- package/dist/components/Table/Body.js +22 -0
- package/dist/components/Table/Cell.js +75 -0
- package/dist/components/Table/Cell.tokens.js +55 -0
- package/dist/components/Table/Foot.js +22 -0
- package/dist/components/Table/Head.js +22 -0
- package/dist/components/Table/Row.js +43 -0
- package/dist/components/Table/Row.tokens.js +68 -0
- package/dist/components/Table/SortCell.js +60 -0
- package/dist/components/Table/Table.js +34 -0
- package/dist/components/Table/TableWrapper.js +61 -0
- package/dist/components/Tabs/Tab.js +102 -0
- package/dist/components/Tabs/TabList.js +86 -0
- package/dist/components/Tabs/TabPanel.js +36 -0
- package/dist/components/Tabs/TabPanels.js +33 -0
- package/dist/components/Tabs/Tabs.context.js +22 -0
- package/dist/components/Tabs/Tabs.js +77 -0
- package/dist/components/Tabs/Tabs.tokens.js +96 -0
- package/dist/components/Tag/Tag.js +41 -0
- package/dist/components/Tag/Tag.tokens.js +54 -0
- package/dist/components/TextInput/CharCounter.js +37 -0
- package/dist/components/TextInput/CharCounter.tokens.js +11 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -0
- package/dist/components/TextInput/TextInput.js +139 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +1 -0
- package/dist/components/TextInput/TextInput.styles.js +34 -0
- package/dist/components/TextInput/TextInput.tokens.js +50 -0
- package/dist/components/TextInput/TextInput.types.d.ts +2 -0
- package/dist/components/ToggleButton/ToggleButton.js +56 -0
- package/dist/components/ToggleButton/ToggleButton.tokens.js +53 -0
- package/dist/components/ToggleButton/ToggleButtonGroup.js +57 -0
- package/dist/components/Tooltip/Tooltip.js +117 -0
- package/dist/components/Tooltip/Tooltip.styles.js +26 -0
- package/dist/components/Tooltip/Tooltip.tokens.js +31 -0
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/Typography/Typography.js +172 -0
- package/dist/components/Typography/Typography.stories.d.ts +5 -0
- package/dist/components/Typography/Typography.tokens.js +495 -0
- package/dist/components/Typography/Typography.types.d.ts +1 -0
- package/dist/helpers/Backdrop/Backdrop.js +13 -0
- package/dist/helpers/Backdrop/Backdrop.utils.js +16 -0
- package/dist/helpers/Chevron/AnimatedChevronUpDown.js +33 -0
- package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.js +29 -0
- package/dist/helpers/Input/Input.styles.js +39 -0
- package/dist/helpers/Input/Input.tokens.js +99 -0
- package/dist/helpers/Paper/Paper.js +10 -0
- package/dist/helpers/Paper/Paper.tokens.js +17 -0
- package/dist/helpers/RequiredMarker/RequiredMarker.js +15 -0
- package/dist/helpers/styling/danger.js +9 -0
- package/dist/helpers/styling/focus.js +15 -0
- package/dist/helpers/styling/focusVisible.js +43 -0
- package/dist/helpers/styling/hideInput.js +9 -0
- package/dist/helpers/styling/hover.js +20 -0
- package/dist/helpers/styling/removeButtonStyling.js +11 -0
- package/dist/helpers/styling/removeListStyling.js +7 -0
- package/dist/helpers/styling/scrollbarStyling.js +8 -0
- package/dist/helpers/styling/visibilityTransition.js +7 -0
- package/dist/hooks/useCombinedRefs.js +16 -0
- package/dist/hooks/useFloatPosition.d.ts +2 -2
- package/dist/hooks/useFloatPosition.js +100 -0
- package/dist/hooks/useFocusTrap.js +37 -0
- package/dist/hooks/useId.js +15 -0
- package/dist/hooks/useMountTransition.js +24 -0
- package/dist/hooks/useOnClickOutside.js +29 -0
- package/dist/hooks/useOnKeyDown.js +20 -0
- package/dist/hooks/useRoveFocus.js +40 -0
- package/dist/index.js +60 -33989
- package/dist/types/BaseComponentProps.js +72 -0
- package/dist/utils/color.js +9 -0
- package/dist/utils/combineHandlers.js +10 -0
- package/dist/utils/idGenerator.d.ts +1 -1
- package/dist/utils/idGenerator.js +19 -0
- package/dist/utils/text.js +5 -0
- package/package.json +18 -12
- package/dist/index.es.js +0 -33899
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
export declare const textColors: {
|
|
3
|
+
interactive: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
danger: string;
|
|
6
|
+
success: string;
|
|
7
|
+
warning: string;
|
|
8
|
+
onLight: string;
|
|
9
|
+
onDark: string;
|
|
10
|
+
gray1: string;
|
|
11
|
+
gray2: string;
|
|
12
|
+
gray3: string;
|
|
13
|
+
gray4: string;
|
|
14
|
+
gray5: string;
|
|
15
|
+
gray6: string;
|
|
16
|
+
gray7: string;
|
|
17
|
+
gray8: string;
|
|
18
|
+
gray9: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const textColorsArray: string[];
|
|
21
|
+
export declare const typographyTokens: {
|
|
22
|
+
selection: {
|
|
23
|
+
base: CSSObject;
|
|
24
|
+
};
|
|
25
|
+
typographyType: {
|
|
26
|
+
a: {
|
|
27
|
+
base: CSSObject;
|
|
28
|
+
hover: {
|
|
29
|
+
base: CSSObject;
|
|
30
|
+
};
|
|
31
|
+
margins: {
|
|
32
|
+
base: CSSObject;
|
|
33
|
+
};
|
|
34
|
+
focus: {
|
|
35
|
+
base: CSSObject;
|
|
36
|
+
};
|
|
37
|
+
bold: {
|
|
38
|
+
base: CSSObject;
|
|
39
|
+
};
|
|
40
|
+
icon: {
|
|
41
|
+
marginLeft: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
headingSans01: {
|
|
45
|
+
base: CSSObject;
|
|
46
|
+
margins: {
|
|
47
|
+
base: CSSObject;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
headingSans02: {
|
|
51
|
+
base: CSSObject;
|
|
52
|
+
margins: {
|
|
53
|
+
base: CSSObject;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
headingSans03: {
|
|
57
|
+
base: CSSObject;
|
|
58
|
+
margins: {
|
|
59
|
+
base: CSSObject;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
headingSans04: {
|
|
63
|
+
base: CSSObject;
|
|
64
|
+
margins: {
|
|
65
|
+
base: CSSObject;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
headingSans05: {
|
|
69
|
+
base: CSSObject;
|
|
70
|
+
margins: {
|
|
71
|
+
base: CSSObject;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
headingSans06: {
|
|
75
|
+
base: CSSObject;
|
|
76
|
+
margins: {
|
|
77
|
+
base: CSSObject;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
headingSans07: {
|
|
81
|
+
base: CSSObject;
|
|
82
|
+
margins: {
|
|
83
|
+
base: CSSObject;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
headingSans08: {
|
|
87
|
+
base: CSSObject;
|
|
88
|
+
margins: {
|
|
89
|
+
base: CSSObject;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
bodySans01: {
|
|
93
|
+
base: CSSObject;
|
|
94
|
+
margins: {
|
|
95
|
+
base: CSSObject;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
bodySans02: {
|
|
99
|
+
base: CSSObject;
|
|
100
|
+
margins: {
|
|
101
|
+
base: CSSObject;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
bodySans03: {
|
|
105
|
+
base: CSSObject;
|
|
106
|
+
margins: {
|
|
107
|
+
base: CSSObject;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
bodySans04: {
|
|
111
|
+
base: CSSObject;
|
|
112
|
+
margins: {
|
|
113
|
+
base: CSSObject;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
bodySerif01: {
|
|
117
|
+
base: CSSObject;
|
|
118
|
+
margins: {
|
|
119
|
+
base: CSSObject;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
bodySerif02: {
|
|
123
|
+
base: CSSObject;
|
|
124
|
+
margins: {
|
|
125
|
+
base: CSSObject;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
bodySerif03: {
|
|
129
|
+
base: CSSObject;
|
|
130
|
+
margins: {
|
|
131
|
+
base: CSSObject;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
bodySerif04: {
|
|
135
|
+
base: CSSObject;
|
|
136
|
+
margins: {
|
|
137
|
+
base: CSSObject;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
leadSans01: {
|
|
141
|
+
base: CSSObject;
|
|
142
|
+
margins: {
|
|
143
|
+
base: CSSObject;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
leadSans02: {
|
|
147
|
+
base: CSSObject;
|
|
148
|
+
margins: {
|
|
149
|
+
base: CSSObject;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
leadSans03: {
|
|
153
|
+
base: CSSObject;
|
|
154
|
+
margins: {
|
|
155
|
+
base: CSSObject;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
leadSans04: {
|
|
159
|
+
base: CSSObject;
|
|
160
|
+
margins: {
|
|
161
|
+
base: CSSObject;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
leadSans05: {
|
|
165
|
+
base: CSSObject;
|
|
166
|
+
margins: {
|
|
167
|
+
base: CSSObject;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
supportingStyleLabel01: {
|
|
171
|
+
base: CSSObject;
|
|
172
|
+
margins: {
|
|
173
|
+
base: CSSObject;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
supportingStyleHelperText01: {
|
|
177
|
+
base: CSSObject;
|
|
178
|
+
margins: {
|
|
179
|
+
base: CSSObject;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
supportingStyleInputText01: {
|
|
183
|
+
base: CSSObject;
|
|
184
|
+
margins: {
|
|
185
|
+
base: CSSObject;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
supportingStyleInputText02: {
|
|
189
|
+
base: CSSObject;
|
|
190
|
+
margins: {
|
|
191
|
+
base: CSSObject;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
supportingStyleInputText03: {
|
|
195
|
+
base: CSSObject;
|
|
196
|
+
margins: {
|
|
197
|
+
base: CSSObject;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
supportingStylePlaceholderText01: {
|
|
201
|
+
base: CSSObject;
|
|
202
|
+
margins: {
|
|
203
|
+
base: CSSObject;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
supportingStyleTiny01: {
|
|
207
|
+
base: CSSObject;
|
|
208
|
+
margins: {
|
|
209
|
+
base: CSSObject;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
supportingStyleTiny02: {
|
|
213
|
+
base: CSSObject;
|
|
214
|
+
margins: {
|
|
215
|
+
base: CSSObject;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
style: {
|
|
220
|
+
bold: {
|
|
221
|
+
base: CSSObject;
|
|
222
|
+
};
|
|
223
|
+
italic: {
|
|
224
|
+
base: CSSObject;
|
|
225
|
+
};
|
|
226
|
+
underline: {
|
|
227
|
+
base: CSSObject;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type TypographyBodySansType = 'bodySans01' | 'bodySans02' | 'bodySans03' | 'bodySans04';
|
|
2
|
+
declare type TypographyBodySerifType = 'bodySerif01' | 'bodySerif02' | 'bodySerif03' | 'bodySerif04';
|
|
3
|
+
export declare type TypographyBodyType = TypographyBodySansType | TypographyBodySerifType;
|
|
4
|
+
declare type TypographyHeadingType = 'headingSans01' | 'headingSans02' | 'headingSans03' | 'headingSans04' | 'headingSans05' | 'headingSans06' | 'headingSans07' | 'headingSans08';
|
|
5
|
+
declare type TypographyLeadType = 'leadSans01' | 'leadSans02' | 'leadSans03' | 'leadSans04' | 'leadSans05';
|
|
6
|
+
declare type TypographySupportingType = 'supportingStyleInputText01' | 'supportingStyleInputText02' | 'supportingStyleInputText03' | 'supportingStyleHelperText01' | 'supportingStylePlaceholderText01' | 'supportingStyleTiny01' | 'supportingStyleTiny02';
|
|
7
|
+
export declare type AnchorTypographyType = 'a';
|
|
8
|
+
export declare type LabelTypographyType = 'supportingStyleLabel01';
|
|
9
|
+
export declare type OtherTypographyType = TypographyHeadingType | TypographyBodyType | TypographyLeadType | TypographySupportingType;
|
|
10
|
+
export declare type TypographyType = AnchorTypographyType | LabelTypographyType | OtherTypographyType;
|
|
11
|
+
export declare type TextColor = 'interactive' | 'primary' | 'danger' | 'warning' | 'success' | 'onLight' | 'onDark' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'gray9';
|
|
12
|
+
export declare type InlineElement = 'a' | 'abbr' | 'audio' | 'b' | 'bdi' | 'bdo' | 'big' | 'br' | 'button' | 'canvas' | 'cite' | 'code' | 'data' | 'datalist' | 'del' | 'dfn' | 'em' | 'embed' | 'i' | 'iframe' | 'img' | 'input' | 'ins' | 'kbd' | 'label' | 'map' | 'mark' | 'meter' | 'noscript' | 'object' | 'output' | 'picture' | 'progress' | 'q' | 'ruby' | 's' | 'samp' | 'script' | 'select' | 'slot' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'svg' | 'template' | 'textarea' | 'time' | 'u' | 'var' | 'video' | 'wbr';
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
declare type SvgChevronProps = {
|
|
4
|
+
isUp?: boolean;
|
|
5
|
+
height?: Property.Height<string>;
|
|
6
|
+
width?: Property.Width<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare const AnimatedChevronUpDown: ({ isUp, height, width }: SvgChevronProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare type StyledSvgChevronProps = {
|
|
2
|
+
isUp?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const SvgChevron: import("styled-components").StyledComponent<"svg", any, StyledSvgChevronProps, never>;
|
|
5
|
+
export declare const SvgChevronlGroup: import("styled-components").StyledComponent<"g", any, StyledSvgChevronProps, never>;
|
|
6
|
+
export declare const SvgChevronlLeft: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;
|
|
7
|
+
export declare const SvgChevronlRight: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AnimatedChevronUpDown';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledLabelProps } from '.';
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
5
|
+
export declare const StatefulInput: import("styled-components").StyledComponent<"input", any, Pick<import("./Input.types").InputProps, "disabled" | "readOnly"> & {
|
|
6
|
+
hasErrorMessage: boolean;
|
|
7
|
+
hasLabel: import("./Input.types").LabelPresence;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../components/Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, any, StyledLabelProps, never>;
|
|
10
|
+
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
declare type OuterInputContainerProps = {
|
|
12
|
+
width?: Property.Width<string>;
|
|
13
|
+
};
|
|
14
|
+
export declare const OuterInputContainer: import("styled-components").StyledComponent<"div", any, OuterInputContainerProps, never>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
export declare const inputTokens: {
|
|
3
|
+
baseInput: {
|
|
4
|
+
base: CSSObject;
|
|
5
|
+
focus: {
|
|
6
|
+
base: CSSObject;
|
|
7
|
+
};
|
|
8
|
+
hover: {
|
|
9
|
+
base: CSSObject;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
general: {
|
|
13
|
+
input: {
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
borderWidth: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
font: {
|
|
19
|
+
lineHeight: any;
|
|
20
|
+
fontSize: string;
|
|
21
|
+
letterSpacing: any;
|
|
22
|
+
fontFamily: any;
|
|
23
|
+
fontWeight: any;
|
|
24
|
+
fontStyle: any;
|
|
25
|
+
};
|
|
26
|
+
hover: {
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
borderWidth: string;
|
|
30
|
+
};
|
|
31
|
+
focus: {
|
|
32
|
+
borderColor: string;
|
|
33
|
+
borderWidth: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
hover: {
|
|
38
|
+
textColor: string;
|
|
39
|
+
};
|
|
40
|
+
focus: {
|
|
41
|
+
textColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
hasLabel: {
|
|
46
|
+
base: CSSObject;
|
|
47
|
+
};
|
|
48
|
+
noLabel: {
|
|
49
|
+
base: CSSObject;
|
|
50
|
+
};
|
|
51
|
+
readOnly: {
|
|
52
|
+
base: CSSObject;
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
base: CSSObject;
|
|
56
|
+
};
|
|
57
|
+
error: {
|
|
58
|
+
base: CSSObject;
|
|
59
|
+
hover: {
|
|
60
|
+
base: CSSObject;
|
|
61
|
+
};
|
|
62
|
+
focus: {
|
|
63
|
+
base: CSSObject;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
label: {
|
|
67
|
+
base: CSSObject;
|
|
68
|
+
hover: {
|
|
69
|
+
base: CSSObject;
|
|
70
|
+
};
|
|
71
|
+
focus: {
|
|
72
|
+
base: CSSObject;
|
|
73
|
+
};
|
|
74
|
+
disabled: {
|
|
75
|
+
base: CSSObject;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
export declare type InputProps = {
|
|
4
|
+
/**Ledetekst for input. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/**Bredde for inputfeltet. */
|
|
7
|
+
width?: Property.Width<string>;
|
|
8
|
+
/**Hjelpetekst. */
|
|
9
|
+
tip?: string;
|
|
10
|
+
/**Feilmelding. Setter også error state. */
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
13
|
+
export declare type LabelPresence = 'hasLabel' | 'noLabel';
|
|
14
|
+
export declare type StyledInputProps = Pick<InputProps, 'readOnly' | 'disabled'> & {
|
|
15
|
+
hasErrorMessage: boolean;
|
|
16
|
+
hasLabel: LabelPresence;
|
|
17
|
+
};
|
|
18
|
+
export declare type StyledLabelProps = {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Paper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RequiredMarker';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const outlineOffset = "2px";
|
|
2
|
+
export declare const focusVisible: {
|
|
3
|
+
outline: string;
|
|
4
|
+
outlineOffset: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const focusVisibleOnDark: {
|
|
7
|
+
outline: string;
|
|
8
|
+
outlineOffset: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const focusVisibleTransitionValue = "outline-offset 0.2s";
|
|
11
|
+
export declare const focusVisibleLink: {
|
|
12
|
+
outline: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
textDecoration: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const focusVisibleLinkOnDark: {
|
|
18
|
+
outline: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
textDecoration: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const focusVisibleLinkTransitionValue = "background-color 0.2s, text-decoration 0.2s, color 0.2s";
|
|
24
|
+
export declare const focusVisibleWithBorder: {
|
|
25
|
+
outline: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
boxShadow: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const focusVisibleThickWithBorderOnDark: {
|
|
30
|
+
outline: string;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
boxShadow: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const focusVisibleInset: {
|
|
35
|
+
outline: string;
|
|
36
|
+
boxShadow: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const hoverWithBorder: {
|
|
2
|
+
borderColor: string;
|
|
3
|
+
boxShadow: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const hoverInputfield: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
boxShadow: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const hoverDangerInputfield: {
|
|
11
|
+
borderColor: string;
|
|
12
|
+
boxShadow: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const visibilityTransition: (open: boolean) => import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './useCombinedRefs';
|
|
2
|
+
export * from './useOnClickOutside';
|
|
3
|
+
export * from './useOnKeyDown';
|
|
4
|
+
export * from './useFloatPosition';
|
|
5
|
+
export * from './useRoveFocus';
|
|
6
|
+
export * from './useFocusTrap';
|
|
7
|
+
export * from './useMountTransition';
|
|
8
|
+
export * from './useId';
|
|
9
|
+
export * from './useScreenSize';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Strategy } from '@floating-ui/react-dom';
|
|
3
|
+
export declare type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
+
export declare const useFloatPosition: (arrowRef: HTMLElement | null, placement?: Placement, offset?: number) => {
|
|
5
|
+
reference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
6
|
+
floating: (node: HTMLElement | null) => void;
|
|
7
|
+
refs: {
|
|
8
|
+
reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
9
|
+
floating: import("react").MutableRefObject<HTMLElement | null>;
|
|
10
|
+
};
|
|
11
|
+
styles: {
|
|
12
|
+
floating: {
|
|
13
|
+
position: Strategy;
|
|
14
|
+
top: string | number;
|
|
15
|
+
left: string | number;
|
|
16
|
+
};
|
|
17
|
+
arrow: {
|
|
18
|
+
[x: string]: string | number;
|
|
19
|
+
position: Strategy;
|
|
20
|
+
top: string | number;
|
|
21
|
+
left: string | number;
|
|
22
|
+
transform: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useId(prefix: string, suffix?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMountTransition: (isMounted: boolean, unmountDelay: number) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useOnClickOutside(element: HTMLElement | null | (HTMLElement | null)[], handler: (event: MouseEvent | TouchEvent) => void): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useOnKeyDown: (key: string | string[], handler: (event: KeyboardEvent) => void) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import 'focus-visible';
|
|
2
|
+
import './styles/fontStyles.css';
|
|
3
|
+
import './styles/selection.css';
|
|
4
|
+
export * from './components/RadioButton';
|
|
5
|
+
export * from './components/Checkbox';
|
|
6
|
+
export * from './components/Button';
|
|
7
|
+
export * from './components/TextInput';
|
|
8
|
+
export * from './components/Select';
|
|
9
|
+
export * from './components/GlobalMessage';
|
|
10
|
+
export * from './components/LocalMessage';
|
|
11
|
+
export * from './components/Search';
|
|
12
|
+
export * from './components/Typography';
|
|
13
|
+
export * from './components/Table';
|
|
14
|
+
export * from './components/Breadcrumbs';
|
|
15
|
+
export * from './components/IconWrapper';
|
|
16
|
+
export * from './components/Pagination';
|
|
17
|
+
export * from './components/Divider';
|
|
18
|
+
export * from './components/List';
|
|
19
|
+
export * from './components/DescriptionList';
|
|
20
|
+
export * from './components/Spinner';
|
|
21
|
+
export * from './components/Card';
|
|
22
|
+
export * from './components/InternalHeader';
|
|
23
|
+
export * from './components/Datepicker';
|
|
24
|
+
export * from './components/SkipToContent';
|
|
25
|
+
export * from './components/Tooltip';
|
|
26
|
+
export * from './components/Modal';
|
|
27
|
+
export * from './components/Drawer';
|
|
28
|
+
export * from './components/OverflowMenu';
|
|
29
|
+
export * from './components/Popover';
|
|
30
|
+
export * from './components/InputMessage';
|
|
31
|
+
export * from './components/ToggleButton';
|
|
32
|
+
export * from './components/Tabs';
|
|
33
|
+
export * from './components/Tag';
|
|
34
|
+
export * from './components/Chip';
|