@equinor/eds-core-react 0.14.3 → 0.15.0-dev.20211116
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/core-react.cjs.js +7365 -17203
- package/dist/esm/components/Accordion/Accordion.js +27 -0
- package/dist/esm/components/Accordion/Accordion.tokens.js +112 -0
- package/dist/esm/components/Accordion/AccordionHeader.js +135 -0
- package/dist/esm/components/Accordion/AccordionHeaderTitle.js +28 -0
- package/dist/esm/components/Accordion/AccordionItem.js +46 -0
- package/dist/esm/components/Accordion/AccordionPanel.js +39 -0
- package/dist/esm/components/Accordion/index.js +17 -0
- package/dist/esm/components/Avatar/Avatar.js +38 -0
- package/dist/esm/components/Avatar/Avatar.tokens.js +13 -0
- package/dist/esm/components/Banner/Banner.js +49 -0
- package/dist/esm/components/Banner/Banner.tokens.js +86 -0
- package/dist/esm/components/Banner/BannerActions.js +34 -0
- package/dist/esm/components/Banner/BannerIcon.js +39 -0
- package/dist/esm/components/Banner/BannerMessage.js +23 -0
- package/dist/esm/components/Banner/index.js +14 -0
- package/dist/esm/components/Breadcrumbs/Breadcrumb.js +44 -0
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +86 -0
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.tokens.js +39 -0
- package/dist/esm/components/Breadcrumbs/index.js +8 -0
- package/dist/esm/components/Button/Button.js +98 -0
- package/dist/esm/components/Button/InnerFullWidth.js +22 -0
- package/dist/esm/components/Button/tokens/button.js +127 -0
- package/dist/esm/components/Button/tokens/contained.js +86 -0
- package/dist/esm/components/Button/tokens/ghost.js +84 -0
- package/dist/esm/components/Button/tokens/icon.js +123 -0
- package/dist/esm/components/Button/tokens/index.js +27 -0
- package/dist/esm/components/Button/tokens/outlined.js +111 -0
- package/dist/esm/components/Card/Card.js +39 -0
- package/dist/esm/components/Card/Card.tokens.js +54 -0
- package/dist/esm/components/Card/CardActions.js +28 -0
- package/dist/esm/components/Card/CardHeader.js +22 -0
- package/dist/esm/components/Card/CardHeaderTitle.js +18 -0
- package/dist/esm/components/Card/CardMedia.js +27 -0
- package/dist/esm/components/Card/index.js +17 -0
- package/dist/esm/components/Checkbox/Checkbox.js +40 -0
- package/dist/esm/components/Checkbox/Checkbox.tokens.js +91 -0
- package/dist/esm/components/Checkbox/Input.js +108 -0
- package/dist/esm/components/Chip/Chip.js +125 -0
- package/dist/esm/components/Chip/Chip.tokens.js +148 -0
- package/dist/esm/components/Chip/Icon.js +31 -0
- package/dist/esm/components/Dialog/Actions.js +22 -0
- package/dist/esm/components/Dialog/CustomContent.js +36 -0
- package/dist/esm/components/Dialog/Dialog.js +30 -0
- package/dist/esm/components/Dialog/Dialog.tokens.js +73 -0
- package/dist/esm/components/Dialog/Title.js +31 -0
- package/dist/esm/components/Dialog/index.js +14 -0
- package/dist/esm/components/Divider/Divider.js +32 -0
- package/dist/esm/components/Divider/Divider.tokens.js +59 -0
- package/dist/esm/components/EdsProvider/eds.context.js +33 -0
- package/dist/esm/components/Icon/Icon.js +98 -0
- package/dist/esm/components/Icon/index.js +7 -0
- package/dist/esm/components/Icon/library.js +19 -0
- package/dist/esm/components/Input/Input.js +55 -0
- package/dist/esm/components/Input/Input.tokens.js +172 -0
- package/dist/esm/components/Label/Label.js +35 -0
- package/dist/esm/components/Label/Label.tokens.js +30 -0
- package/dist/esm/components/List/List.js +28 -0
- package/dist/esm/components/List/List.tokens.js +12 -0
- package/dist/esm/components/List/ListItem.js +13 -0
- package/dist/esm/components/List/index.js +8 -0
- package/dist/esm/components/Menu/Menu.context.js +41 -0
- package/dist/esm/components/Menu/Menu.js +102 -0
- package/dist/esm/components/Menu/Menu.tokens.js +132 -0
- package/dist/esm/components/Menu/MenuItem.js +87 -0
- package/dist/esm/components/Menu/MenuList.js +95 -0
- package/dist/esm/components/Menu/MenuSection.js +28 -0
- package/dist/esm/components/Menu/index.js +11 -0
- package/dist/esm/components/Pagination/Pagination.js +148 -0
- package/dist/esm/components/Pagination/Pagination.tokens.js +40 -0
- package/dist/esm/components/Pagination/PaginationItem.js +28 -0
- package/dist/esm/components/Pagination/paginationControl.js +46 -0
- package/dist/esm/components/Paper/Paper.js +24 -0
- package/dist/esm/components/Paper/Paper.tokens.js +19 -0
- package/dist/esm/components/Popover/Popover.js +91 -0
- package/dist/esm/components/Popover/Popover.tokens.js +73 -0
- package/dist/esm/components/Popover/PopoverContent.js +18 -0
- package/dist/esm/components/Popover/PopoverTitle.js +26 -0
- package/dist/esm/components/Popover/index.js +11 -0
- package/dist/esm/components/Progress/Circular/CircularProgress.js +93 -0
- package/dist/esm/components/Progress/Circular/CircularProgress.tokens.js +42 -0
- package/dist/esm/components/Progress/Dots/DotProgress.js +54 -0
- package/dist/esm/components/Progress/Dots/DotProgress.tokens.js +30 -0
- package/dist/esm/components/Progress/Linear/LinearProgress.js +49 -0
- package/dist/esm/components/Progress/Linear/LinearProgress.tokens.js +24 -0
- package/dist/esm/components/Progress/Star/StarProgress.js +61 -0
- package/dist/esm/components/Progress/Star/StarProgress.tokens.js +16 -0
- package/dist/esm/components/Progress/index.js +17 -0
- package/dist/esm/components/Radio/Radio.js +120 -0
- package/dist/esm/components/Radio/Radio.tokens.js +91 -0
- package/dist/esm/components/Scrim/Scrim.js +59 -0
- package/dist/esm/components/Scrim/Scrim.tokens.js +18 -0
- package/dist/esm/components/Search/Search.js +176 -0
- package/dist/esm/components/Search/Search.tokens.js +96 -0
- package/dist/esm/components/Select/MultiSelect/MultiSelect.js +190 -0
- package/dist/esm/components/Select/NativeSelect/NativeSelect.js +59 -0
- package/dist/esm/components/Select/NativeSelect/NativeSelect.tokens.js +66 -0
- package/dist/esm/components/Select/Select.tokens.js +98 -0
- package/dist/esm/components/Select/SingleSelect/SingleSelect.js +135 -0
- package/dist/esm/components/Select/commonStyles.js +54 -0
- package/dist/esm/components/SideSheet/SideSheet.js +55 -0
- package/dist/esm/components/SideSheet/SideSheet.tokens.js +45 -0
- package/dist/esm/components/Slider/MinMax.js +24 -0
- package/dist/esm/components/Slider/Output.js +30 -0
- package/dist/esm/components/Slider/Slider.js +224 -0
- package/dist/esm/components/Slider/Slider.tokens.js +136 -0
- package/dist/esm/components/Slider/SliderInput.js +60 -0
- package/dist/esm/components/Snackbar/Snackbar.js +59 -0
- package/dist/esm/components/Snackbar/Snackbar.tokens.js +74 -0
- package/dist/esm/components/Snackbar/SnackbarAction.js +19 -0
- package/dist/esm/components/Snackbar/index.js +7 -0
- package/dist/esm/components/Switch/Switch.js +63 -0
- package/dist/esm/components/Switch/Switch.styles.js +34 -0
- package/dist/esm/components/Switch/Switch.tokens.js +168 -0
- package/dist/esm/components/Switch/SwitchDefault.js +57 -0
- package/dist/esm/components/Switch/SwitchSmall.js +54 -0
- package/dist/esm/components/Table/Body.js +23 -0
- package/dist/esm/components/Table/Caption.js +19 -0
- package/dist/esm/components/Table/Cell.js +29 -0
- package/dist/esm/components/Table/DataCell/DataCell.js +47 -0
- package/dist/esm/components/Table/DataCell/DataCell.tokens.js +151 -0
- package/dist/esm/components/Table/Head/Head.js +27 -0
- package/dist/esm/components/Table/Head/Head.tokens.js +30 -0
- package/dist/esm/components/Table/HeaderCell/HeaderCell.js +63 -0
- package/dist/esm/components/Table/HeaderCell/HeaderCell.tokens.js +118 -0
- package/dist/esm/components/Table/Inner.context.js +8 -0
- package/dist/esm/components/Table/Row/Row.js +33 -0
- package/dist/esm/components/Table/Row/Row.tokens.js +26 -0
- package/dist/esm/components/Table/Table.js +19 -0
- package/dist/esm/components/Table/index.js +20 -0
- package/dist/esm/components/TableOfContents/LinkItem.js +22 -0
- package/dist/esm/components/TableOfContents/TableOfContents.js +38 -0
- package/dist/esm/components/TableOfContents/TableOfContents.tokens.js +103 -0
- package/dist/esm/components/TableOfContents/index.js +8 -0
- package/dist/esm/components/Tabs/Tab.js +43 -0
- package/dist/esm/components/Tabs/TabList.js +89 -0
- package/dist/esm/components/Tabs/TabPanel.js +27 -0
- package/dist/esm/components/Tabs/TabPanels.js +23 -0
- package/dist/esm/components/Tabs/Tabs.context.js +13 -0
- package/dist/esm/components/Tabs/Tabs.js +58 -0
- package/dist/esm/components/Tabs/Tabs.tokens.js +127 -0
- package/dist/esm/components/Tabs/index.js +17 -0
- package/dist/esm/components/TextField/Field.js +137 -0
- package/dist/esm/components/TextField/HelperText/HelperText.js +80 -0
- package/dist/esm/components/TextField/HelperText/HelperText.token.js +49 -0
- package/dist/esm/components/TextField/Icon/Icon.js +59 -0
- package/dist/esm/components/TextField/Icon/Icon.tokens.js +46 -0
- package/dist/esm/components/TextField/TextField.context.js +35 -0
- package/dist/esm/components/TextField/TextField.js +74 -0
- package/dist/esm/components/TextField/TextField.tokens.js +124 -0
- package/dist/esm/components/Textarea/Textarea.js +90 -0
- package/dist/esm/components/Tooltip/Tooltip.js +113 -0
- package/dist/esm/components/Tooltip/Tooltip.tokens.js +63 -0
- package/dist/esm/components/TopBar/Actions.js +18 -0
- package/dist/esm/components/TopBar/CustomContent.js +18 -0
- package/dist/esm/components/TopBar/Header.js +18 -0
- package/dist/esm/components/TopBar/TopBar.js +28 -0
- package/dist/esm/components/TopBar/TopBar.tokens.js +32 -0
- package/dist/esm/components/TopBar/index.js +14 -0
- package/dist/esm/components/Typography/Typography.js +91 -0
- package/dist/esm/components/Typography/Typography.tokens.js +61 -0
- package/dist/esm/hooks/useAutoResize.js +39 -0
- package/dist/esm/hooks/useCombinedRefs.js +14 -0
- package/dist/esm/hooks/useGlobalKeyPress.js +34 -0
- package/dist/esm/hooks/useHideBodyScroll.js +12 -0
- package/dist/esm/hooks/useId.js +14 -0
- package/dist/esm/hooks/useMountedRef.js +12 -0
- package/dist/esm/hooks/useOutsideClick.js +18 -0
- package/dist/esm/hooks/usePopper.js +31 -0
- package/dist/esm/hooks/useToken.js +16 -0
- package/dist/esm/index.js +41 -0
- package/dist/esm/utils/joinHandlers.js +10 -0
- package/dist/esm/utils/setReactInputValue.js +18 -0
- package/dist/esm/utils/templates/borders.js +35 -0
- package/dist/esm/utils/templates/common.js +19 -0
- package/dist/esm/utils/templates/focus.js +35 -0
- package/dist/esm/utils/templates/index.js +59 -0
- package/dist/types/components/Accordion/Accordion.d.ts +4 -4
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +10 -10
- package/dist/types/components/Accordion/Accordion.types.d.ts +6 -6
- package/dist/types/components/Accordion/AccordionHeader.d.ts +35 -35
- package/dist/types/components/Accordion/AccordionHeaderTitle.d.ts +14 -14
- package/dist/types/components/Accordion/AccordionItem.d.ts +19 -19
- package/dist/types/components/Accordion/AccordionPanel.d.ts +18 -18
- package/dist/types/components/Accordion/index.d.ts +15 -15
- package/dist/types/components/Avatar/Avatar.d.ts +23 -23
- package/dist/types/components/Avatar/Avatar.tokens.d.ts +10 -10
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Banner/Banner.d.ts +7 -7
- package/dist/types/components/Banner/Banner.tokens.d.ts +9 -9
- package/dist/types/components/Banner/BannerActions.d.ts +11 -11
- package/dist/types/components/Banner/BannerIcon.d.ts +15 -15
- package/dist/types/components/Banner/BannerMessage.d.ts +10 -10
- package/dist/types/components/Banner/index.d.ts +12 -12
- package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +11 -11
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +11 -11
- package/dist/types/components/Breadcrumbs/Breadcrumbs.tokens.d.ts +2 -2
- package/dist/types/components/Breadcrumbs/index.d.ts +8 -8
- package/dist/types/components/Button/Button.d.ts +43 -43
- package/dist/types/components/Button/Button.types.d.ts +12 -12
- package/dist/types/components/Button/InnerFullWidth.d.ts +2 -2
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/tokens/button.d.ts +2 -2
- package/dist/types/components/Button/tokens/contained.d.ts +4 -4
- package/dist/types/components/Button/tokens/ghost.d.ts +4 -4
- package/dist/types/components/Button/tokens/icon.d.ts +4 -4
- package/dist/types/components/Button/tokens/index.d.ts +8 -8
- package/dist/types/components/Button/tokens/outlined.d.ts +4 -4
- package/dist/types/components/Card/Card.d.ts +9 -9
- package/dist/types/components/Card/Card.tokens.d.ts +6 -6
- package/dist/types/components/Card/CardActions.d.ts +13 -13
- package/dist/types/components/Card/CardHeader.d.ts +3 -3
- package/dist/types/components/Card/CardHeaderTitle.d.ts +3 -3
- package/dist/types/components/Card/CardMedia.d.ts +9 -9
- package/dist/types/components/Card/index.d.ts +14 -14
- package/dist/types/components/Checkbox/Checkbox.d.ts +15 -15
- package/dist/types/components/Checkbox/Checkbox.tokens.d.ts +4 -4
- package/dist/types/components/Checkbox/Input.d.ts +12 -12
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +17 -17
- package/dist/types/components/Chip/Chip.tokens.d.ts +8 -8
- package/dist/types/components/Chip/Icon.d.ts +6 -6
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/Combobox/Combobox.d.ts +55 -55
- package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -3
- package/dist/types/components/Combobox/index.d.ts +1 -1
- package/dist/types/components/Dialog/Actions.d.ts +3 -3
- package/dist/types/components/Dialog/CustomContent.d.ts +9 -9
- package/dist/types/components/Dialog/Dialog.d.ts +3 -3
- package/dist/types/components/Dialog/Dialog.tokens.d.ts +4 -4
- package/dist/types/components/Dialog/Title.d.ts +3 -3
- package/dist/types/components/Dialog/index.d.ts +12 -12
- package/dist/types/components/Divider/Divider.d.ts +17 -17
- package/dist/types/components/Divider/Divider.tokens.d.ts +12 -12
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/EdsProvider/eds.context.d.ts +15 -15
- package/dist/types/components/EdsProvider/index.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +20 -20
- package/dist/types/components/Icon/Icon.types.d.ts +11 -11
- package/dist/types/components/Icon/index.d.ts +5 -5
- package/dist/types/components/Icon/library.d.ts +8 -8
- package/dist/types/components/Input/Input.d.ts +26 -26
- package/dist/types/components/Input/Input.tokens.d.ts +12 -12
- package/dist/types/components/Input/index.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +11 -11
- package/dist/types/components/Label/Label.tokens.d.ts +4 -4
- package/dist/types/components/Label/index.d.ts +1 -1
- package/dist/types/components/List/List.d.ts +14 -14
- package/dist/types/components/List/List.tokens.d.ts +4 -4
- package/dist/types/components/List/ListItem.d.ts +4 -4
- package/dist/types/components/List/index.d.ts +8 -8
- package/dist/types/components/Menu/Menu.context.d.ts +15 -15
- package/dist/types/components/Menu/Menu.d.ts +27 -27
- package/dist/types/components/Menu/Menu.tokens.d.ts +4 -4
- package/dist/types/components/Menu/Menu.types.d.ts +1 -1
- package/dist/types/components/Menu/MenuItem.d.ts +21 -21
- package/dist/types/components/Menu/MenuList.d.ts +8 -8
- package/dist/types/components/Menu/MenuSection.d.ts +11 -11
- package/dist/types/components/Menu/index.d.ts +10 -10
- package/dist/types/components/Pagination/Pagination.d.ts +25 -25
- package/dist/types/components/Pagination/Pagination.tokens.d.ts +2 -2
- package/dist/types/components/Pagination/PaginationItem.d.ts +8 -8
- package/dist/types/components/Pagination/index.d.ts +1 -1
- package/dist/types/components/Pagination/paginationControl.d.ts +1 -1
- package/dist/types/components/Paper/Paper.d.ts +8 -8
- package/dist/types/components/Paper/Paper.tokens.d.ts +12 -12
- package/dist/types/components/Paper/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +22 -22
- package/dist/types/components/Popover/Popover.tokens.d.ts +4 -4
- package/dist/types/components/Popover/PopoverContent.d.ts +3 -3
- package/dist/types/components/Popover/PopoverTitle.d.ts +3 -3
- package/dist/types/components/Popover/index.d.ts +10 -10
- package/dist/types/components/Progress/Circular/CircularProgress.d.ts +16 -16
- package/dist/types/components/Progress/Circular/CircularProgress.tokens.d.ts +8 -8
- package/dist/types/components/Progress/Dots/DotProgress.d.ts +11 -11
- package/dist/types/components/Progress/Dots/DotProgress.tokens.d.ts +5 -5
- package/dist/types/components/Progress/Linear/LinearProgress.d.ts +18 -18
- package/dist/types/components/Progress/Linear/LinearProgress.tokens.d.ts +7 -7
- package/dist/types/components/Progress/Star/StarProgress.d.ts +14 -14
- package/dist/types/components/Progress/Star/StarProgress.tokens.d.ts +2 -2
- package/dist/types/components/Progress/index.d.ts +15 -15
- package/dist/types/components/Radio/Radio.d.ts +10 -10
- package/dist/types/components/Radio/Radio.tokens.d.ts +4 -4
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/Scrim/Scrim.d.ts +15 -15
- package/dist/types/components/Scrim/Scrim.tokens.d.ts +2 -2
- package/dist/types/components/Scrim/index.d.ts +1 -1
- package/dist/types/components/Search/Search.d.ts +3 -3
- package/dist/types/components/Search/Search.tokens.d.ts +4 -4
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Select/MultiSelect/MultiSelect.d.ts +48 -48
- package/dist/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/dist/types/components/Select/NativeSelect/NativeSelect.d.ts +29 -29
- package/dist/types/components/Select/NativeSelect/NativeSelect.tokens.d.ts +4 -4
- package/dist/types/components/Select/NativeSelect/index.d.ts +1 -1
- package/dist/types/components/Select/Select.tokens.d.ts +3 -3
- package/dist/types/components/Select/SingleSelect/SingleSelect.d.ts +48 -48
- package/dist/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/dist/types/components/Select/commonStyles.d.ts +32 -32
- package/dist/types/components/Select/index.d.ts +3 -3
- package/dist/types/components/SideSheet/SideSheet.d.ts +21 -21
- package/dist/types/components/SideSheet/SideSheet.tokens.d.ts +10 -10
- package/dist/types/components/SideSheet/index.d.ts +1 -1
- package/dist/types/components/Slider/MinMax.d.ts +5 -5
- package/dist/types/components/Slider/Output.d.ts +9 -9
- package/dist/types/components/Slider/Slider.d.ts +49 -49
- package/dist/types/components/Slider/Slider.tokens.d.ts +4 -4
- package/dist/types/components/Slider/SliderInput.d.ts +21 -21
- package/dist/types/components/Slider/index.d.ts +1 -1
- package/dist/types/components/Snackbar/Snackbar.d.ts +21 -21
- package/dist/types/components/Snackbar/Snackbar.tokens.d.ts +4 -4
- package/dist/types/components/Snackbar/SnackbarAction.d.ts +5 -5
- package/dist/types/components/Snackbar/index.d.ts +8 -8
- package/dist/types/components/Switch/Switch.d.ts +12 -12
- package/dist/types/components/Switch/Switch.styles.d.ts +5 -5
- package/dist/types/components/Switch/Switch.tokens.d.ts +3 -3
- package/dist/types/components/Switch/SwitchDefault.d.ts +6 -6
- package/dist/types/components/Switch/SwitchSmall.d.ts +6 -6
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Table/Body.d.ts +3 -3
- package/dist/types/components/Table/Caption.d.ts +4 -4
- package/dist/types/components/Table/Cell.d.ts +11 -11
- package/dist/types/components/Table/DataCell/DataCell.d.ts +8 -8
- package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +15 -15
- package/dist/types/components/Table/DataCell/index.d.ts +1 -1
- package/dist/types/components/Table/Head/Head.d.ts +9 -9
- package/dist/types/components/Table/Head/Head.tokens.d.ts +2 -2
- package/dist/types/components/Table/Head/index.d.ts +1 -1
- package/dist/types/components/Table/HeaderCell/HeaderCell.d.ts +5 -5
- package/dist/types/components/Table/HeaderCell/HeaderCell.tokens.d.ts +3 -3
- package/dist/types/components/Table/HeaderCell/index.d.ts +1 -1
- package/dist/types/components/Table/Inner.context.d.ts +7 -7
- package/dist/types/components/Table/Row/Row.d.ts +9 -9
- package/dist/types/components/Table/Row/Row.tokens.d.ts +2 -2
- package/dist/types/components/Table/Row/index.d.ts +1 -1
- package/dist/types/components/Table/Table.d.ts +3 -3
- package/dist/types/components/Table/Table.types.d.ts +2 -2
- package/dist/types/components/Table/index.d.ts +16 -16
- package/dist/types/components/TableOfContents/LinkItem.d.ts +3 -3
- package/dist/types/components/TableOfContents/TableOfContents.d.ts +14 -14
- package/dist/types/components/TableOfContents/TableOfContents.tokens.d.ts +4 -4
- package/dist/types/components/TableOfContents/index.d.ts +8 -8
- package/dist/types/components/Tabs/Tab.d.ts +13 -13
- package/dist/types/components/Tabs/TabList.d.ts +11 -11
- package/dist/types/components/Tabs/TabPanel.d.ts +10 -10
- package/dist/types/components/Tabs/TabPanels.d.ts +4 -4
- package/dist/types/components/Tabs/Tabs.context.d.ts +13 -13
- package/dist/types/components/Tabs/Tabs.d.ts +19 -19
- package/dist/types/components/Tabs/Tabs.tokens.d.ts +2 -2
- package/dist/types/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +14 -14
- package/dist/types/components/TextField/Field.d.ts +34 -34
- package/dist/types/components/TextField/HelperText/HelperText.d.ts +14 -14
- package/dist/types/components/TextField/HelperText/HelperText.token.d.ts +15 -15
- package/dist/types/components/TextField/HelperText/index.d.ts +1 -1
- package/dist/types/components/TextField/Icon/Icon.d.ts +13 -13
- package/dist/types/components/TextField/Icon/Icon.tokens.d.ts +14 -14
- package/dist/types/components/TextField/Icon/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.context.d.ts +17 -17
- package/dist/types/components/TextField/TextField.d.ts +37 -37
- package/dist/types/components/TextField/TextField.tokens.d.ts +10 -10
- package/dist/types/components/TextField/index.d.ts +1 -1
- package/dist/types/components/TextField/types.d.ts +6 -6
- package/dist/types/components/Textarea/Textarea.d.ts +30 -30
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +22 -22
- package/dist/types/components/Tooltip/Tooltip.tokens.d.ts +4 -4
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/TopBar/Actions.d.ts +3 -3
- package/dist/types/components/TopBar/CustomContent.d.ts +3 -3
- package/dist/types/components/TopBar/Header.d.ts +3 -3
- package/dist/types/components/TopBar/TopBar.d.ts +3 -3
- package/dist/types/components/TopBar/TopBar.tokens.d.ts +4 -4
- package/dist/types/components/TopBar/index.d.ts +12 -12
- package/dist/types/components/Typography/Typography.d.ts +15 -15
- package/dist/types/components/Typography/Typography.tokens.d.ts +453 -453
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +9 -9
- package/dist/types/hooks/useAutoResize.d.ts +1 -1
- package/dist/types/hooks/useCombinedRefs.d.ts +3 -3
- package/dist/types/hooks/useGlobalKeyPress.d.ts +10 -10
- package/dist/types/hooks/useHideBodyScroll.d.ts +1 -1
- package/dist/types/hooks/useId.d.ts +1 -1
- package/dist/types/hooks/useMountedRef.d.ts +1 -1
- package/dist/types/hooks/useOutsideClick.d.ts +1 -1
- package/dist/types/hooks/usePopper.d.ts +12 -12
- package/dist/types/hooks/useToken.d.ts +7 -7
- package/dist/types/index.d.ts +35 -35
- package/dist/types/utils/index.d.ts +4 -4
- package/dist/types/utils/joinHandlers.d.ts +3 -3
- package/dist/types/utils/setReactInputValue.d.ts +7 -7
- package/dist/types/utils/templates/borders.d.ts +2 -2
- package/dist/types/utils/templates/common.d.ts +9 -9
- package/dist/types/utils/templates/focus.d.ts +2 -2
- package/dist/types/utils/templates/index.d.ts +7 -7
- package/package.json +10 -15
- package/dist/core-react.esm.js +0 -18369
- package/dist/core-react.umd.js +0 -18441
- package/src/index.ts +0 -37
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { HTMLAttributes, MouseEvent, KeyboardEvent, FormEvent } from 'react';
|
|
2
|
-
export declare type SliderProps = {
|
|
3
|
-
/** Id for the elements that labels this slider */
|
|
4
|
-
ariaLabelledby: string;
|
|
5
|
-
/** Components value, range of numbers */
|
|
6
|
-
value: number[] | number;
|
|
7
|
-
/** Function to be called when value change */
|
|
8
|
-
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
9
|
-
/** Function to be called when value is committed by mouseup event */
|
|
10
|
-
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
11
|
-
/** Function for formatting the output, e.g. with dates */
|
|
12
|
-
outputFunction?: (text: number) => string | number;
|
|
13
|
-
/** Max value */
|
|
14
|
-
max?: number;
|
|
15
|
-
/** Min value */
|
|
16
|
-
min?: number;
|
|
17
|
-
/** Stepping interval */
|
|
18
|
-
step?: number;
|
|
19
|
-
/** Show the min and max dots or not */
|
|
20
|
-
minMaxDots?: boolean;
|
|
21
|
-
/** Show the min and max values or not */
|
|
22
|
-
minMaxValues?: boolean;
|
|
23
|
-
/** Disabled */
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
26
|
-
export declare const Slider: import("react").ForwardRefExoticComponent<{
|
|
27
|
-
/** Id for the elements that labels this slider */
|
|
28
|
-
ariaLabelledby: string;
|
|
29
|
-
/** Components value, range of numbers */
|
|
30
|
-
value: number[] | number;
|
|
31
|
-
/** Function to be called when value change */
|
|
32
|
-
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
33
|
-
/** Function to be called when value is committed by mouseup event */
|
|
34
|
-
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
35
|
-
/** Function for formatting the output, e.g. with dates */
|
|
36
|
-
outputFunction?: (text: number) => string | number;
|
|
37
|
-
/** Max value */
|
|
38
|
-
max?: number;
|
|
39
|
-
/** Min value */
|
|
40
|
-
min?: number;
|
|
41
|
-
/** Stepping interval */
|
|
42
|
-
step?: number;
|
|
43
|
-
/** Show the min and max dots or not */
|
|
44
|
-
minMaxDots?: boolean;
|
|
45
|
-
/** Show the min and max values or not */
|
|
46
|
-
minMaxValues?: boolean;
|
|
47
|
-
/** Disabled */
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { HTMLAttributes, MouseEvent, KeyboardEvent, FormEvent } from 'react';
|
|
2
|
+
export declare type SliderProps = {
|
|
3
|
+
/** Id for the elements that labels this slider */
|
|
4
|
+
ariaLabelledby: string;
|
|
5
|
+
/** Components value, range of numbers */
|
|
6
|
+
value: number[] | number;
|
|
7
|
+
/** Function to be called when value change */
|
|
8
|
+
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
9
|
+
/** Function to be called when value is committed by mouseup event */
|
|
10
|
+
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
11
|
+
/** Function for formatting the output, e.g. with dates */
|
|
12
|
+
outputFunction?: (text: number) => string | number;
|
|
13
|
+
/** Max value */
|
|
14
|
+
max?: number;
|
|
15
|
+
/** Min value */
|
|
16
|
+
min?: number;
|
|
17
|
+
/** Stepping interval */
|
|
18
|
+
step?: number;
|
|
19
|
+
/** Show the min and max dots or not */
|
|
20
|
+
minMaxDots?: boolean;
|
|
21
|
+
/** Show the min and max values or not */
|
|
22
|
+
minMaxValues?: boolean;
|
|
23
|
+
/** Disabled */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
26
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
/** Id for the elements that labels this slider */
|
|
28
|
+
ariaLabelledby: string;
|
|
29
|
+
/** Components value, range of numbers */
|
|
30
|
+
value: number[] | number;
|
|
31
|
+
/** Function to be called when value change */
|
|
32
|
+
onChange?: (event: FormEvent<HTMLDivElement>, newValue: number[] | number) => void;
|
|
33
|
+
/** Function to be called when value is committed by mouseup event */
|
|
34
|
+
onChangeCommitted?: (event: MouseEvent | KeyboardEvent, newValue: number[] | number) => void;
|
|
35
|
+
/** Function for formatting the output, e.g. with dates */
|
|
36
|
+
outputFunction?: (text: number) => string | number;
|
|
37
|
+
/** Max value */
|
|
38
|
+
max?: number;
|
|
39
|
+
/** Min value */
|
|
40
|
+
min?: number;
|
|
41
|
+
/** Stepping interval */
|
|
42
|
+
step?: number;
|
|
43
|
+
/** Show the min and max dots or not */
|
|
44
|
+
minMaxDots?: boolean;
|
|
45
|
+
/** Show the min and max values or not */
|
|
46
|
+
minMaxValues?: boolean;
|
|
47
|
+
/** Disabled */
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
declare type SliderToken = ComponentToken;
|
|
3
|
-
export declare const slider: SliderToken;
|
|
4
|
-
export {};
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
declare type SliderToken = ComponentToken;
|
|
3
|
+
export declare const slider: SliderToken;
|
|
4
|
+
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
export declare const SliderInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
/** Slider value */
|
|
4
|
-
value: number;
|
|
5
|
-
/** Change function , this is a controlled component */
|
|
6
|
-
onChange: (event: MouseEvent | KeyboardEvent) => void;
|
|
7
|
-
/** Mouse up handler */
|
|
8
|
-
onMouseUp: (event: MouseEvent) => void;
|
|
9
|
-
/** Key up handler */
|
|
10
|
-
onKeyUp: (event: KeyboardEvent) => void;
|
|
11
|
-
/** Min value */
|
|
12
|
-
min: number;
|
|
13
|
-
/** Max value */
|
|
14
|
-
max: number;
|
|
15
|
-
/** Id for the input element */
|
|
16
|
-
id: string;
|
|
17
|
-
/** Step value */
|
|
18
|
-
step: number;
|
|
19
|
-
/** Disabled */
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
} & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare const SliderInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** Slider value */
|
|
4
|
+
value: number;
|
|
5
|
+
/** Change function , this is a controlled component */
|
|
6
|
+
onChange: (event: MouseEvent | KeyboardEvent) => void;
|
|
7
|
+
/** Mouse up handler */
|
|
8
|
+
onMouseUp: (event: MouseEvent) => void;
|
|
9
|
+
/** Key up handler */
|
|
10
|
+
onKeyUp: (event: KeyboardEvent) => void;
|
|
11
|
+
/** Min value */
|
|
12
|
+
min: number;
|
|
13
|
+
/** Max value */
|
|
14
|
+
max: number;
|
|
15
|
+
/** Id for the input element */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Step value */
|
|
18
|
+
step: number;
|
|
19
|
+
/** Disabled */
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
} & InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Slider';
|
|
1
|
+
export * from './Slider';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type SnackbarProps = {
|
|
3
|
-
/** Controls the visibility of the snackbar */
|
|
4
|
-
open?: boolean;
|
|
5
|
-
/** How long will the message be visible in milliseconds */
|
|
6
|
-
autoHideDuration?: number;
|
|
7
|
-
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
/** Placement of the snackbar relative to the viewport */
|
|
10
|
-
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
11
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
12
|
-
export declare const Snackbar: import("react").ForwardRefExoticComponent<{
|
|
13
|
-
/** Controls the visibility of the snackbar */
|
|
14
|
-
open?: boolean;
|
|
15
|
-
/** How long will the message be visible in milliseconds */
|
|
16
|
-
autoHideDuration?: number;
|
|
17
|
-
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
18
|
-
onClose?: () => void;
|
|
19
|
-
/** Placement of the snackbar relative to the viewport */
|
|
20
|
-
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
21
|
-
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type SnackbarProps = {
|
|
3
|
+
/** Controls the visibility of the snackbar */
|
|
4
|
+
open?: boolean;
|
|
5
|
+
/** How long will the message be visible in milliseconds */
|
|
6
|
+
autoHideDuration?: number;
|
|
7
|
+
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
/** Placement of the snackbar relative to the viewport */
|
|
10
|
+
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
11
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare const Snackbar: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
/** Controls the visibility of the snackbar */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** How long will the message be visible in milliseconds */
|
|
16
|
+
autoHideDuration?: number;
|
|
17
|
+
/** Callback fired when the snackbar is closed by auto hide duration timeout */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
/** Placement of the snackbar relative to the viewport */
|
|
20
|
+
placement?: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
21
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
declare type Snackbar = ComponentToken;
|
|
3
|
-
export declare const snackbar: Snackbar;
|
|
4
|
-
export {};
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
declare type Snackbar = ComponentToken;
|
|
3
|
+
export declare const snackbar: Snackbar;
|
|
4
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type SnackbarActionProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const SnackbarAction: import("react").ForwardRefExoticComponent<SnackbarActionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type SnackbarActionProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare const SnackbarAction: import("react").ForwardRefExoticComponent<SnackbarActionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SnackbarAction, SnackbarActionProps } from './SnackbarAction';
|
|
2
|
-
import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar';
|
|
3
|
-
declare type SnackbarTypes = typeof BaseComponent & {
|
|
4
|
-
Action: typeof SnackbarAction;
|
|
5
|
-
};
|
|
6
|
-
declare const Snackbar: SnackbarTypes;
|
|
7
|
-
export { Snackbar };
|
|
8
|
-
export type { SnackbarProps, SnackbarActionProps };
|
|
1
|
+
import { SnackbarAction, SnackbarActionProps } from './SnackbarAction';
|
|
2
|
+
import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar';
|
|
3
|
+
declare type SnackbarTypes = typeof BaseComponent & {
|
|
4
|
+
Action: typeof SnackbarAction;
|
|
5
|
+
};
|
|
6
|
+
declare const Snackbar: SnackbarTypes;
|
|
7
|
+
export { Snackbar };
|
|
8
|
+
export type { SnackbarProps, SnackbarActionProps };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
-
export declare type SwitchProps = {
|
|
3
|
-
/** Label for the switch. Required to make it a11y compliant */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Switch size, use the small version with caution */
|
|
6
|
-
size?: 'default' | 'small';
|
|
7
|
-
/** If true, the switch will be disabled */
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
10
|
-
ref?: Ref<HTMLInputElement>;
|
|
11
|
-
};
|
|
12
|
-
export declare const Switch: import("react").ForwardRefExoticComponent<Pick<SwitchProps, "height" | "width" | "
|
|
1
|
+
import { Ref, InputHTMLAttributes } from 'react';
|
|
2
|
+
export declare type SwitchProps = {
|
|
3
|
+
/** Label for the switch. Required to make it a11y compliant */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Switch size, use the small version with caution */
|
|
6
|
+
size?: 'default' | 'small';
|
|
7
|
+
/** If true, the switch will be disabled */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
10
|
+
ref?: Ref<HTMLInputElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<Pick<SwitchProps, "color" | "height" | "width" | "type" | "style" | "disabled" | "readOnly" | "form" | "label" | "slot" | "title" | "pattern" | "children" | "hidden" | "size" | "multiple" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "max" | "min" | "crossOrigin" | "alt" | "src" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "maxLength" | "minLength" | "required" | "step"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const BaseInputWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const BaseInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
3
|
-
type: string;
|
|
4
|
-
}, "type">;
|
|
5
|
-
export declare const GridWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const BaseInputWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const BaseInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
|
3
|
+
type: string;
|
|
4
|
+
}, "type">;
|
|
5
|
+
export declare const GridWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
export declare type SwitchToken = ComponentToken;
|
|
3
|
-
export declare const comfortable: SwitchToken;
|
|
1
|
+
import { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type SwitchToken = ComponentToken;
|
|
3
|
+
export declare const comfortable: SwitchToken;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type SwitchDefaultProps = {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const SwitchDefault: import("react").ForwardRefExoticComponent<SwitchDefaultProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type SwitchDefaultProps = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const SwitchDefault: import("react").ForwardRefExoticComponent<SwitchDefaultProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type SwitchSmallProps = {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const SwitchSmall: import("react").ForwardRefExoticComponent<SwitchSmallProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type SwitchSmallProps = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const SwitchSmall: import("react").ForwardRefExoticComponent<SwitchSmallProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Switch';
|
|
1
|
+
export * from './Switch';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type BodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3
|
-
export declare const Body: import("react").ForwardRefExoticComponent<BodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type BodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
3
|
+
export declare const Body: import("react").ForwardRefExoticComponent<BodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import type { CSSObject } from 'styled-components';
|
|
3
|
-
export declare type CaptionProps = Pick<CSSObject, 'captionSide'> & HTMLAttributes<HTMLTableCaptionElement>;
|
|
4
|
-
export declare const Caption: import("react").ForwardRefExoticComponent<Pick<CSSObject, "captionSide"> & HTMLAttributes<HTMLTableCaptionElement> & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import type { CSSObject } from 'styled-components';
|
|
3
|
+
export declare type CaptionProps = Pick<CSSObject, 'captionSide'> & HTMLAttributes<HTMLTableCaptionElement>;
|
|
4
|
+
export declare const Caption: import("react").ForwardRefExoticComponent<Pick<CSSObject, "captionSide"> & HTMLAttributes<HTMLTableCaptionElement> & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
-
import { Variants, Colors } from './Table.types';
|
|
3
|
-
export declare type CellProps = {
|
|
4
|
-
/** Specifies which variant to use */
|
|
5
|
-
variant?: Variants;
|
|
6
|
-
/** Specifies cell background color */
|
|
7
|
-
color?: Colors;
|
|
8
|
-
/** Specifies cell sort direction */
|
|
9
|
-
sort?: React.AriaAttributes['aria-sort'];
|
|
10
|
-
} & (TdHTMLAttributes<HTMLTableDataCellElement> | ThHTMLAttributes<HTMLTableHeaderCellElement>);
|
|
11
|
-
export declare const Cell: import("react").ForwardRefExoticComponent<CellProps & import("react").RefAttributes<HTMLTableDataCellElement | HTMLTableHeaderCellElement>>;
|
|
1
|
+
import { TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
+
import { Variants, Colors } from './Table.types';
|
|
3
|
+
export declare type CellProps = {
|
|
4
|
+
/** Specifies which variant to use */
|
|
5
|
+
variant?: Variants;
|
|
6
|
+
/** Specifies cell background color */
|
|
7
|
+
color?: Colors;
|
|
8
|
+
/** Specifies cell sort direction */
|
|
9
|
+
sort?: React.AriaAttributes['aria-sort'];
|
|
10
|
+
} & (TdHTMLAttributes<HTMLTableDataCellElement> | ThHTMLAttributes<HTMLTableHeaderCellElement>);
|
|
11
|
+
export declare const Cell: import("react").ForwardRefExoticComponent<CellProps & import("react").RefAttributes<HTMLTableDataCellElement | HTMLTableHeaderCellElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TdHTMLAttributes } from 'react';
|
|
2
|
-
import { Variants, Colors } from '../Table.types';
|
|
3
|
-
export declare const TableDataCell: import("react").ForwardRefExoticComponent<{
|
|
4
|
-
/** Specifies which variant to use */
|
|
5
|
-
variant?: Variants;
|
|
6
|
-
/** Specifies cell background color */
|
|
7
|
-
color?: Colors;
|
|
8
|
-
} & TdHTMLAttributes<HTMLTableDataCellElement> & import("react").RefAttributes<HTMLTableDataCellElement>>;
|
|
1
|
+
import { TdHTMLAttributes } from 'react';
|
|
2
|
+
import { Variants, Colors } from '../Table.types';
|
|
3
|
+
export declare const TableDataCell: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
/** Specifies which variant to use */
|
|
5
|
+
variant?: Variants;
|
|
6
|
+
/** Specifies cell background color */
|
|
7
|
+
color?: Colors;
|
|
8
|
+
} & TdHTMLAttributes<HTMLTableDataCellElement> & import("react").RefAttributes<HTMLTableDataCellElement>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
import { Variants } from '../Table.types';
|
|
3
|
-
declare type Validation = {
|
|
4
|
-
error: Partial<ComponentToken>;
|
|
5
|
-
};
|
|
6
|
-
declare type VariantsType = {
|
|
7
|
-
numeric: Partial<ComponentToken>;
|
|
8
|
-
};
|
|
9
|
-
export declare type TableCellToken = ComponentToken & {
|
|
10
|
-
validation: Validation;
|
|
11
|
-
variants: VariantsType;
|
|
12
|
-
};
|
|
13
|
-
export declare const tableCell: TableCellToken;
|
|
14
|
-
export declare const applyVariant: (variant: Variants, token: TableCellToken) => TableCellToken;
|
|
15
|
-
export {};
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
import { Variants } from '../Table.types';
|
|
3
|
+
declare type Validation = {
|
|
4
|
+
error: Partial<ComponentToken>;
|
|
5
|
+
};
|
|
6
|
+
declare type VariantsType = {
|
|
7
|
+
numeric: Partial<ComponentToken>;
|
|
8
|
+
};
|
|
9
|
+
export declare type TableCellToken = ComponentToken & {
|
|
10
|
+
validation: Validation;
|
|
11
|
+
variants: VariantsType;
|
|
12
|
+
};
|
|
13
|
+
export declare const tableCell: TableCellToken;
|
|
14
|
+
export declare const applyVariant: (variant: Variants, token: TableCellToken) => TableCellToken;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DataCell';
|
|
1
|
+
export * from './DataCell';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type HeadProps = {
|
|
3
|
-
/** Header will stick to top when scrolling */
|
|
4
|
-
sticky?: boolean;
|
|
5
|
-
} & HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
-
export declare const Head: import("react").ForwardRefExoticComponent<{
|
|
7
|
-
/** Header will stick to top when scrolling */
|
|
8
|
-
sticky?: boolean;
|
|
9
|
-
} & HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type HeadProps = {
|
|
3
|
+
/** Header will stick to top when scrolling */
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
} & HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export declare const Head: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
/** Header will stick to top when scrolling */
|
|
8
|
+
sticky?: boolean;
|
|
9
|
+
} & HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
export declare const token: ComponentToken;
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare const token: ComponentToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Head';
|
|
1
|
+
export * from './Head';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ThHTMLAttributes } from 'react';
|
|
2
|
-
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
sort?: React.AriaAttributes['aria-sort'];
|
|
4
|
-
sticky?: boolean;
|
|
5
|
-
} & ThHTMLAttributes<HTMLTableHeaderCellElement> & import("react").RefAttributes<HTMLTableHeaderCellElement>>;
|
|
1
|
+
import { ThHTMLAttributes } from 'react';
|
|
2
|
+
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
sort?: React.AriaAttributes['aria-sort'];
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
} & ThHTMLAttributes<HTMLTableHeaderCellElement> & import("react").RefAttributes<HTMLTableHeaderCellElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
export declare type TableHeadToken = ComponentToken;
|
|
3
|
-
export declare const token: TableHeadToken;
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare type TableHeadToken = ComponentToken;
|
|
3
|
+
export declare const token: TableHeadToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './HeaderCell';
|
|
1
|
+
export * from './HeaderCell';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type State = {
|
|
3
|
-
variant: 'body' | 'head';
|
|
4
|
-
sticky?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const InnerContext: import("react").Context<State>;
|
|
7
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type State = {
|
|
3
|
+
variant: 'body' | 'head';
|
|
4
|
+
sticky?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const InnerContext: import("react").Context<State>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type RowProps = {
|
|
3
|
-
/** Hightlight row as active */
|
|
4
|
-
active?: boolean;
|
|
5
|
-
} & React.HTMLAttributes<HTMLTableRowElement>;
|
|
6
|
-
export declare const Row: import("react").ForwardRefExoticComponent<{
|
|
7
|
-
/** Hightlight row as active */
|
|
8
|
-
active?: boolean;
|
|
9
|
-
} & import("react").HTMLAttributes<HTMLTableRowElement> & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type RowProps = {
|
|
3
|
+
/** Hightlight row as active */
|
|
4
|
+
active?: boolean;
|
|
5
|
+
} & React.HTMLAttributes<HTMLTableRowElement>;
|
|
6
|
+
export declare const Row: import("react").ForwardRefExoticComponent<{
|
|
7
|
+
/** Hightlight row as active */
|
|
8
|
+
active?: boolean;
|
|
9
|
+
} & import("react").HTMLAttributes<HTMLTableRowElement> & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
-
export declare const token: ComponentToken;
|
|
1
|
+
import type { ComponentToken } from '@equinor/eds-tokens';
|
|
2
|
+
export declare const token: ComponentToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Row';
|
|
1
|
+
export * from './Row';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type TableProps = HTMLAttributes<HTMLTableElement>;
|
|
3
|
-
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type TableProps = HTMLAttributes<HTMLTableElement>;
|
|
3
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type Variants = 'text' | 'icon' | 'numeric' | 'input';
|
|
2
|
-
export declare type Colors = 'error';
|
|
1
|
+
export declare type Variants = 'text' | 'icon' | 'numeric' | 'input';
|
|
2
|
+
export declare type Colors = 'error';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Table as BaseTable, TableProps } from './Table';
|
|
2
|
-
import { Body, BodyProps } from './Body';
|
|
3
|
-
import { Cell, CellProps } from './Cell';
|
|
4
|
-
import { Head, HeadProps } from './Head';
|
|
5
|
-
import { Row, RowProps } from './Row';
|
|
6
|
-
import { Caption, CaptionProps } from './Caption';
|
|
7
|
-
declare type TableCompoundProps = typeof BaseTable & {
|
|
8
|
-
Body: typeof Body;
|
|
9
|
-
Cell: typeof Cell;
|
|
10
|
-
Head: typeof Head;
|
|
11
|
-
Row: typeof Row;
|
|
12
|
-
Caption: typeof Caption;
|
|
13
|
-
};
|
|
14
|
-
declare const Table: TableCompoundProps;
|
|
15
|
-
export { Table };
|
|
16
|
-
export type { TableProps, CellProps, BodyProps, RowProps, CaptionProps, HeadProps, };
|
|
1
|
+
import { Table as BaseTable, TableProps } from './Table';
|
|
2
|
+
import { Body, BodyProps } from './Body';
|
|
3
|
+
import { Cell, CellProps } from './Cell';
|
|
4
|
+
import { Head, HeadProps } from './Head';
|
|
5
|
+
import { Row, RowProps } from './Row';
|
|
6
|
+
import { Caption, CaptionProps } from './Caption';
|
|
7
|
+
declare type TableCompoundProps = typeof BaseTable & {
|
|
8
|
+
Body: typeof Body;
|
|
9
|
+
Cell: typeof Cell;
|
|
10
|
+
Head: typeof Head;
|
|
11
|
+
Row: typeof Row;
|
|
12
|
+
Caption: typeof Caption;
|
|
13
|
+
};
|
|
14
|
+
declare const Table: TableCompoundProps;
|
|
15
|
+
export { Table };
|
|
16
|
+
export type { TableProps, CellProps, BodyProps, RowProps, CaptionProps, HeadProps, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare type TableOfContentsLinkItemProps = HTMLAttributes<HTMLLIElement>;
|
|
3
|
-
export declare const LinkItem: import("react").ForwardRefExoticComponent<TableOfContentsLinkItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type TableOfContentsLinkItemProps = HTMLAttributes<HTMLLIElement>;
|
|
3
|
+
export declare const LinkItem: import("react").ForwardRefExoticComponent<TableOfContentsLinkItemProps & import("react").RefAttributes<HTMLLIElement>>;
|