@orfium/ictinus 5.5.0 → 5.5.1
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/codemods/avatarCodemod.d.ts +2 -1
- package/dist/codemods/buttonCodemod.d.ts +2 -1
- package/dist/codemods/checkboxCodemod.d.ts +2 -1
- package/dist/codemods/chipCodemode.d.ts +2 -1
- package/dist/codemods/drawerCodemod.d.ts +2 -1
- package/dist/codemods/filterCodemod.d.ts +2 -1
- package/dist/codemods/iconButtonCodemod.d.ts +2 -1
- package/dist/codemods/iconCodemod.d.ts +2 -1
- package/dist/codemods/loaderCodemod.d.ts +2 -1
- package/dist/codemods/menuCodemod.d.ts +2 -1
- package/dist/codemods/notificationsCodemod.d.ts +2 -1
- package/dist/codemods/paginationCodemod.d.ts +2 -1
- package/dist/codemods/radioCodemod.d.ts +2 -1
- package/dist/codemods/radioGroupCodemod.d.ts +2 -1
- package/dist/codemods/searchCodemod.d.ts +2 -1
- package/dist/codemods/selectCodemod.d.ts +2 -1
- package/dist/codemods/switchCodemod.d.ts +2 -1
- package/dist/codemods/tableCodemod.d.ts +2 -1
- package/dist/codemods/textareaCodemod.d.ts +2 -1
- package/dist/codemods/textfieldCodemod.d.ts +2 -1
- package/dist/codemods/tooltipCodemod.d.ts +2 -1
- package/dist/codemods/unchangedIconsCodemod.d.ts +2 -1
- package/dist/{index.mjs → index.js} +5739 -5690
- package/dist/index.umd.cjs +147 -0
- package/dist/src/components/Avatar/Avatar.d.ts +5 -0
- package/dist/src/components/Avatar/Avatar.stories.d.ts +61 -0
- package/dist/src/components/Avatar/Avatar.style.d.ts +9 -0
- package/dist/src/components/Avatar/Avatar.tokens.d.ts +8 -0
- package/dist/src/components/Avatar/Avatar.types.d.ts +22 -0
- package/dist/src/components/Avatar/AvatarStack/AvatarStack.d.ts +6 -0
- package/dist/src/components/Avatar/AvatarStack/AvatarStack.style.d.ts +11 -0
- package/dist/src/components/Avatar/AvatarStack/AvatarStack.types.d.ts +10 -0
- package/dist/src/components/Avatar/AvatarStack/index.d.ts +2 -0
- package/dist/src/components/Avatar/AvatarStack/utils.d.ts +7 -0
- package/dist/src/components/Avatar/AvatarStack.stories.d.ts +20 -0
- package/dist/src/components/Avatar/constants.d.ts +4 -0
- package/dist/src/components/Avatar/index.d.ts +3 -0
- package/dist/src/components/Box/Box.d.ts +6 -0
- package/dist/src/components/Box/Box.stories.d.ts +27 -0
- package/dist/src/components/Box/Box.style.d.ts +5 -0
- package/dist/src/components/Box/Box.test.d.ts +1 -0
- package/dist/src/components/Box/Box.types.d.ts +145 -0
- package/dist/src/components/Box/Box.utilities.d.ts +19 -0
- package/dist/src/components/Box/index.d.ts +3 -0
- package/dist/src/components/Breadcrumb/BackToItem/BackToItem.d.ts +6 -0
- package/dist/src/components/Breadcrumb/BackToItem/BackToItem.style.d.ts +4 -0
- package/dist/src/components/Breadcrumb/BackToItem/index.d.ts +1 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +7 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts +31 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.style.d.ts +4 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.types.d.ts +13 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +10 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.d.ts +6 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem/index.d.ts +1 -0
- package/dist/src/components/Breadcrumb/index.d.ts +2 -0
- package/dist/src/components/Button/Button.d.ts +40 -0
- package/dist/src/components/Button/Button.stories.d.ts +102 -0
- package/dist/src/components/Button/Button.style.d.ts +8 -0
- package/dist/src/components/Button/Button.tokens.d.ts +6 -0
- package/dist/src/components/Button/Button.types.d.ts +4 -0
- package/dist/src/components/Button/ButtonLoader/ButtonLoader.d.ts +6 -0
- package/dist/src/components/Button/ButtonLoader/ButtonLoader.style.d.ts +6 -0
- package/dist/src/components/Button/ButtonLoader/index.d.ts +2 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/ButtonBase/ButtonBase.d.ts +57 -0
- package/dist/src/components/ButtonBase/ButtonBase.style.d.ts +13 -0
- package/dist/src/components/ButtonBase/constants.d.ts +7 -0
- package/dist/src/components/ButtonBase/index.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +14 -0
- package/dist/src/components/Card/Card.stories.d.ts +24 -0
- package/dist/src/components/Card/Card.style.d.ts +5 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/Chart/BarChart/BarChart.d.ts +26 -0
- package/dist/src/components/Chart/BarChart/components/CustomLabel/CustomLabel.d.ts +9 -0
- package/dist/src/components/Chart/BarChart/components/CustomLabel/index.d.ts +1 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.d.ts +8 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.d.ts +6 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltip/index.d.ts +1 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.d.ts +6 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.d.ts +39 -0
- package/dist/src/components/Chart/BarChart/components/CustomTooltipContent/index.d.ts +1 -0
- package/dist/src/components/Chart/BarChart/index.d.ts +1 -0
- package/dist/src/components/Chart/BarChart/utils.d.ts +11 -0
- package/dist/src/components/Chart/Chart.stories.d.ts +55 -0
- package/dist/src/components/Chart/DonutChart/DonutChart.d.ts +17 -0
- package/dist/src/components/Chart/DonutChart/components/CustomLabel/CustomLabel.d.ts +9 -0
- package/dist/src/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.d.ts +5 -0
- package/dist/src/components/Chart/DonutChart/components/CustomLabel/index.d.ts +1 -0
- package/dist/src/components/Chart/DonutChart/index.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/LineChart.d.ts +17 -0
- package/dist/src/components/Chart/LineChart/LineChart.test.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.d.ts +6 -0
- package/dist/src/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.d.ts +32 -0
- package/dist/src/components/Chart/LineChart/components/CustomTooltip/index.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/components/GradientLine/GradientLine.d.ts +8 -0
- package/dist/src/components/Chart/LineChart/components/GradientLine/index.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/index.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/mockedData.d.ts +11 -0
- package/dist/src/components/Chart/LineChart/story.utils.d.ts +1 -0
- package/dist/src/components/Chart/LineChart/utils.d.ts +14 -0
- package/dist/src/components/Chart/Wrapper.d.ts +8 -0
- package/dist/src/components/Controls/CheckBox/CheckBox.d.ts +32 -0
- package/dist/src/components/Controls/CheckBox/CheckBox.stories.d.ts +99 -0
- package/dist/src/components/Controls/CheckBox/CheckBox.style.d.ts +7 -0
- package/dist/src/components/Controls/CheckBox/CheckBox.test.d.ts +1 -0
- package/dist/src/components/Controls/CheckBox/index.d.ts +2 -0
- package/dist/src/components/Controls/ControlLabel/ControlLabel.d.ts +7 -0
- package/dist/src/components/Controls/ControlLabel/ControlLabel.style.d.ts +7 -0
- package/dist/src/components/Controls/ControlLabel/index.d.ts +1 -0
- package/dist/src/components/Controls/Controls.tokens.d.ts +6 -0
- package/dist/src/components/Controls/Controls.types.d.ts +12 -0
- package/dist/src/components/Controls/Radio/Radio.d.ts +23 -0
- package/dist/src/components/Controls/Radio/Radio.stories.d.ts +89 -0
- package/dist/src/components/Controls/Radio/Radio.style.d.ts +7 -0
- package/dist/src/components/Controls/Radio/Radio.test.d.ts +1 -0
- package/dist/src/components/Controls/Radio/components/RadioGroup/RadioGroup.d.ts +27 -0
- package/dist/src/components/Controls/Radio/components/RadioGroup/RadioGroupContext.d.ts +5 -0
- package/dist/src/components/Controls/Radio/components/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/Controls/Radio/index.d.ts +2 -0
- package/dist/src/components/Controls/Switch/Switch.d.ts +27 -0
- package/dist/src/components/Controls/Switch/Switch.stories.d.ts +90 -0
- package/dist/src/components/Controls/Switch/Switch.style.d.ts +5 -0
- package/dist/src/components/Controls/Switch/Switch.test.d.ts +1 -0
- package/dist/src/components/Controls/Switch/index.d.ts +2 -0
- package/dist/src/components/Controls/index.d.ts +4 -0
- package/dist/src/components/DatePicker/DatePickInput/DatePickInput.d.ts +40 -0
- package/dist/src/components/DatePicker/DatePickInput/DatePickInput.style.d.ts +4 -0
- package/dist/src/components/DatePicker/DatePickInput/index.d.ts +2 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +138 -0
- package/dist/src/components/DatePicker/DatePicker.style.d.ts +4 -0
- package/dist/src/components/DatePicker/DatePicker.test.d.ts +1 -0
- package/dist/src/components/DatePicker/DatePicker.tokens.d.ts +6 -0
- package/dist/src/components/DatePicker/DatePicker.types.d.ts +48 -0
- package/dist/src/components/DatePicker/Day/Day.d.ts +17 -0
- package/dist/src/components/DatePicker/Day/Day.style.d.ts +20 -0
- package/dist/src/components/DatePicker/Day/Day.test.d.ts +1 -0
- package/dist/src/components/DatePicker/Day/index.d.ts +2 -0
- package/dist/src/components/DatePicker/Month/Month.d.ts +15 -0
- package/dist/src/components/DatePicker/Month/Month.style.d.ts +6 -0
- package/dist/src/components/DatePicker/Month/Month.test.d.ts +1 -0
- package/dist/src/components/DatePicker/Month/Month.utils.d.ts +8 -0
- package/dist/src/components/DatePicker/Month/hooks/useMonthKeyboardNavigation.d.ts +14 -0
- package/dist/src/components/DatePicker/Month/index.d.ts +2 -0
- package/dist/src/components/DatePicker/OverlayComponent/OverlayComponent.d.ts +20 -0
- package/dist/src/components/DatePicker/OverlayComponent/OverlayComponent.style.d.ts +11 -0
- package/dist/src/components/DatePicker/OverlayComponent/OverlayComponent.test.d.ts +1 -0
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.d.ts +17 -0
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.d.ts +12 -0
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.test.d.ts +1 -0
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/index.d.ts +0 -0
- package/dist/src/components/DatePicker/OverlayComponent/index.d.ts +2 -0
- package/dist/src/components/DatePicker/OverlayComponent/utils.d.ts +5 -0
- package/dist/src/components/DatePicker/constants.d.ts +51 -0
- package/dist/src/components/DatePicker/index.d.ts +4 -0
- package/dist/src/components/DatePicker/play-utils.d.ts +3 -0
- package/dist/src/components/DatePicker/utils.d.ts +11 -0
- package/dist/src/components/Drawer/Drawer.d.ts +14 -0
- package/dist/src/components/Drawer/Drawer.stories.d.ts +91 -0
- package/dist/src/components/Drawer/Drawer.style.d.ts +23 -0
- package/dist/src/components/Drawer/Drawer.test.d.ts +1 -0
- package/dist/src/components/Drawer/Drawer.types.d.ts +19 -0
- package/dist/src/components/Drawer/DrawerContext.d.ts +28 -0
- package/dist/src/components/Drawer/components/DrawerContent/DrawerContent.d.ts +5 -0
- package/dist/src/components/Drawer/components/DrawerContent/DrawerContent.stories.d.ts +18 -0
- package/dist/src/components/Drawer/components/DrawerContent/hooks/useDrawerContentObserver.d.ts +6 -0
- package/dist/src/components/Drawer/components/DrawerContent/index.d.ts +1 -0
- package/dist/src/components/Drawer/components/DrawerFooter/DrawerFooter.d.ts +5 -0
- package/dist/src/components/Drawer/components/DrawerFooter/DrawerFooter.stories.d.ts +18 -0
- package/dist/src/components/Drawer/components/DrawerFooter/index.d.ts +1 -0
- package/dist/src/components/Drawer/components/DrawerHeader/DrawerHeader.d.ts +5 -0
- package/dist/src/components/Drawer/components/DrawerHeader/DrawerHeader.stories.d.ts +18 -0
- package/dist/src/components/Drawer/components/DrawerHeader/index.d.ts +1 -0
- package/dist/src/components/Drawer/components/index.d.ts +3 -0
- package/dist/src/components/Drawer/index.d.ts +5 -0
- package/dist/src/components/DropdownButton/DropdownButton.d.ts +42 -0
- package/dist/src/components/DropdownButton/DropdownButton.stories.d.ts +33 -0
- package/dist/src/components/DropdownButton/DropdownButton.style.d.ts +16 -0
- package/dist/src/components/DropdownButton/DropdownButton.test.d.ts +1 -0
- package/dist/src/components/DropdownButton/index.d.ts +1 -0
- package/dist/src/components/ExpandCollapse/ExpandCollapse.d.ts +4 -0
- package/dist/src/components/ExpandCollapse/ExpandCollapse.stories.d.ts +14 -0
- package/dist/src/components/ExpandCollapse/ExpandCollapse.style.d.ts +1 -0
- package/dist/src/components/ExpandCollapse/ExpandCollapse.types.d.ts +65 -0
- package/dist/src/components/ExpandCollapse/index.d.ts +3 -0
- package/dist/src/components/ExpandCollapse/useManageContentRef.d.ts +2 -0
- package/dist/src/components/ExpandCollapse/utils.d.ts +7 -0
- package/dist/src/components/Filter/Filter.d.ts +5 -0
- package/dist/src/components/Filter/Filter.stories.d.ts +114 -0
- package/dist/src/components/Filter/Filter.test.d.ts +1 -0
- package/dist/src/components/Filter/Filter.tokens.d.ts +6 -0
- package/dist/src/components/Filter/Filter.types.d.ts +66 -0
- package/dist/src/components/Filter/StatefulFilter.d.ts +5 -0
- package/dist/src/components/Filter/components/FilterButton/FilterButton.d.ts +23 -0
- package/dist/src/components/Filter/components/FilterButton/FilterButton.style.d.ts +6 -0
- package/dist/src/components/Filter/components/FilterButton/index.d.ts +1 -0
- package/dist/src/components/Filter/components/FilterMenu/FilterMenu.d.ts +12 -0
- package/dist/src/components/Filter/components/FilterMenu/FilterMenu.style.d.ts +3 -0
- package/dist/src/components/Filter/components/FilterMenu/components/FilterSearchField/FilterSearchField.d.ts +10 -0
- package/dist/src/components/Filter/components/FilterMenu/components/FilterSearchField/FilterSearchField.style.d.ts +2 -0
- package/dist/src/components/Filter/components/FilterMenu/components/FilterSearchField/index.d.ts +1 -0
- package/dist/src/components/Filter/components/FilterMenu/components/Options/Options.d.ts +9 -0
- package/dist/src/components/Filter/components/FilterMenu/components/Options/Options.style.d.ts +6 -0
- package/dist/src/components/Filter/components/FilterMenu/components/Options/index.d.ts +1 -0
- package/dist/src/components/Filter/components/FilterMenu/index.d.ts +1 -0
- package/dist/src/components/Filter/constants.d.ts +16 -0
- package/dist/src/components/Filter/hooks/index.d.ts +1 -0
- package/dist/src/components/Filter/hooks/useFilterWithSelectionUtils.d.ts +14 -0
- package/dist/src/components/Filter/index.d.ts +3 -0
- package/dist/src/components/Icon/Icon.d.ts +19 -0
- package/dist/src/components/Icon/Icon.stories.d.ts +53 -0
- package/dist/src/components/Icon/Icon.style.d.ts +7 -0
- package/dist/src/components/Icon/Icon.types.d.ts +9 -0
- package/dist/src/components/Icon/assets/iconSelector.d.ts +6 -0
- package/dist/src/components/Icon/constants.d.ts +38 -0
- package/dist/src/components/Icon/index.d.ts +3 -0
- package/dist/src/components/IconButton/IconButton.d.ts +23 -0
- package/dist/src/components/IconButton/IconButton.stories.d.ts +41 -0
- package/dist/src/components/IconButton/index.d.ts +2 -0
- package/dist/src/components/Label/Label.d.ts +18 -0
- package/dist/src/components/Label/Label.style.d.ts +6 -0
- package/dist/src/components/Label/index.d.ts +2 -0
- package/dist/src/components/Link/Link.d.ts +12 -0
- package/dist/src/components/Link/Link.stories.d.ts +82 -0
- package/dist/src/components/Link/Link.style.d.ts +5 -0
- package/dist/src/components/Link/Link.tokens.d.ts +6 -0
- package/dist/src/components/Link/Link.types.d.ts +21 -0
- package/dist/src/components/Link/constants.d.ts +4 -0
- package/dist/src/components/Link/index.d.ts +1 -0
- package/dist/src/components/List/List.d.ts +44 -0
- package/dist/src/components/List/List.style.d.ts +13 -0
- package/dist/src/components/List/List.tokens.d.ts +6 -0
- package/dist/src/components/List/ListItem.d.ts +15 -0
- package/dist/src/components/List/ListSection.d.ts +14 -0
- package/dist/src/components/List/Window.d.ts +20 -0
- package/dist/src/components/List/components/ListItemAction/ListItemAction.d.ts +5 -0
- package/dist/src/components/List/components/ListItemAction/ListItemAction.style.d.ts +3 -0
- package/dist/src/components/List/components/ListItemAction/index.d.ts +2 -0
- package/dist/src/components/List/components/ListItemText/ListItemText.d.ts +7 -0
- package/dist/src/components/List/components/ListItemText/ListItemText.style.d.ts +5 -0
- package/dist/src/components/List/components/ListItemText/index.d.ts +2 -0
- package/dist/src/components/List/components/ListItemWrapper/ListItemWrapper.d.ts +29 -0
- package/dist/src/components/List/components/ListItemWrapper/ListItemWrapper.style.d.ts +9 -0
- package/dist/src/components/List/components/ListItemWrapper/index.d.ts +2 -0
- package/dist/src/components/List/index.d.ts +7 -0
- package/dist/src/components/List/stories/List.stories.d.ts +36 -0
- package/dist/src/components/List/stories/ListItem.stories.d.ts +23 -0
- package/dist/src/components/List/stories/ListItemAction.stories.d.ts +18 -0
- package/dist/src/components/List/stories/ListItemText.stories.d.ts +24 -0
- package/dist/src/components/List/stories/ListSection.stories.d.ts +23 -0
- package/dist/src/components/List/types.d.ts +9 -0
- package/dist/src/components/List/utils.d.ts +6 -0
- package/dist/src/components/Menu/Menu.d.ts +26 -0
- package/dist/src/components/Menu/Menu.stories.d.ts +51 -0
- package/dist/src/components/Menu/Menu.style.d.ts +13 -0
- package/dist/src/components/Menu/MenuItemDivider.d.ts +8 -0
- package/dist/src/components/Menu/index.d.ts +4 -0
- package/dist/src/components/Modal/Modal.d.ts +18 -0
- package/dist/src/components/Modal/Modal.stories.d.ts +37 -0
- package/dist/src/components/Modal/Modal.style.d.ts +8 -0
- package/dist/src/components/Modal/Modal.test.d.ts +1 -0
- package/dist/src/components/Modal/ModalContent/ModalContent.d.ts +22 -0
- package/dist/src/components/Modal/ModalContent/ModalContent.style.d.ts +8 -0
- package/dist/src/components/Modal/ModalContent/index.d.ts +1 -0
- package/dist/src/components/Modal/index.d.ts +1 -0
- package/dist/src/components/MultiTextFieldBase/MultiTextFieldBase.d.ts +44 -0
- package/dist/src/components/MultiTextFieldBase/MultiTextFieldBase.style.d.ts +58 -0
- package/dist/src/components/MultiTextFieldBase/hooks.d.ts +19 -0
- package/dist/src/components/MultiTextFieldBase/index.d.ts +1 -0
- package/dist/src/components/Navigation/Directory/Directory.d.ts +6 -0
- package/dist/src/components/Navigation/Directory/Directory.style.d.ts +11 -0
- package/dist/src/components/Navigation/Directory/MenuItem/MenuItem.d.ts +12 -0
- package/dist/src/components/Navigation/Directory/index.d.ts +1 -0
- package/dist/src/components/Navigation/Navigation.d.ts +15 -0
- package/dist/src/components/Navigation/Navigation.stories.d.ts +24 -0
- package/dist/src/components/Navigation/Navigation.style.d.ts +4 -0
- package/dist/src/components/Navigation/Navigation.test.d.ts +1 -0
- package/dist/src/components/Navigation/index.d.ts +3 -0
- package/dist/src/components/Navigation/types.d.ts +13 -0
- package/dist/src/components/Notification/Banner/Banner.d.ts +21 -0
- package/dist/src/components/Notification/Banner/index.d.ts +2 -0
- package/dist/src/components/Notification/InlineNotification/InlineNotification.d.ts +19 -0
- package/dist/src/components/Notification/InlineNotification/index.d.ts +2 -0
- package/dist/src/components/Notification/Notification.d.ts +13 -0
- package/dist/src/components/Notification/Notification.stories.d.ts +102 -0
- package/dist/src/components/Notification/Notification.style.d.ts +11 -0
- package/dist/src/components/Notification/Notification.test.d.ts +1 -0
- package/dist/src/components/Notification/NotificationVisual/NotificationVisual.d.ts +13 -0
- package/dist/src/components/Notification/NotificationVisual/NotificationVisual.style.d.ts +5 -0
- package/dist/src/components/Notification/NotificationVisual/index.d.ts +2 -0
- package/dist/src/components/Notification/NotificationsContainer/NotificationsContainer.d.ts +10 -0
- package/dist/src/components/Notification/NotificationsContainer/NotificationsContainer.style.d.ts +4 -0
- package/dist/src/components/Notification/NotificationsContainer/index.d.ts +2 -0
- package/dist/src/components/Notification/Snackbar/Snackbar.d.ts +19 -0
- package/dist/src/components/Notification/Snackbar/Snackbar.style.d.ts +8 -0
- package/dist/src/components/Notification/Snackbar/index.d.ts +2 -0
- package/dist/src/components/Notification/subcomponents/CompactNotification/CompactNotification.d.ts +28 -0
- package/dist/src/components/Notification/subcomponents/CompactNotification/CompactNotification.style.d.ts +10 -0
- package/dist/src/components/Notification/subcomponents/CompactNotification/index.d.ts +2 -0
- package/dist/src/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.d.ts +7 -0
- package/dist/src/components/Notification/subcomponents/NotificationActionsArea/index.d.ts +1 -0
- package/dist/src/components/NumberField/NumberField.d.ts +36 -0
- package/dist/src/components/NumberField/NumberField.stories.d.ts +95 -0
- package/dist/src/components/NumberField/NumberField.style.d.ts +3 -0
- package/dist/src/components/NumberField/NumberField.test.d.ts +1 -0
- package/dist/src/components/NumberField/components/Stepper/Stepper.d.ts +8 -0
- package/dist/src/components/NumberField/components/Stepper/Stepper.style.d.ts +5 -0
- package/dist/src/components/NumberField/components/Stepper/index.d.ts +1 -0
- package/dist/src/components/NumberField/index.d.ts +2 -0
- package/dist/src/components/Pagination/Pagination.d.ts +16 -0
- package/dist/src/components/Pagination/Pagination.stories.d.ts +33 -0
- package/dist/src/components/Pagination/index.d.ts +2 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +9 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.stories.d.ts +90 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.tokens.d.ts +6 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.types.d.ts +12 -0
- package/dist/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.d.ts +5 -0
- package/dist/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.style.d.ts +7 -0
- package/dist/src/components/ProgressIndicator/components/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/ProgressIndicator/components/ProgressCircle/ProgressCircle.d.ts +5 -0
- package/dist/src/components/ProgressIndicator/components/ProgressCircle/ProgressCircle.style.d.ts +3 -0
- package/dist/src/components/ProgressIndicator/components/ProgressCircle/index.d.ts +1 -0
- package/dist/src/components/ProgressIndicator/index.d.ts +1 -0
- package/dist/src/components/Search/Search.d.ts +6 -0
- package/dist/src/components/Search/Search.stories.d.ts +51 -0
- package/dist/src/components/Search/Search.style.d.ts +1937 -0
- package/dist/src/components/Search/Search.test.d.ts +1 -0
- package/dist/src/components/Search/Search.tokens.d.ts +6 -0
- package/dist/src/components/Search/Search.types.d.ts +11 -0
- package/dist/src/components/Search/StatefulSearch.d.ts +5 -0
- package/dist/src/components/Search/constants.d.ts +5 -0
- package/dist/src/components/Search/index.d.ts +3 -0
- package/dist/src/components/Select/Select.d.ts +6 -0
- package/dist/src/components/Select/Select.stories.d.ts +123 -0
- package/dist/src/components/Select/Select.style.d.ts +5 -0
- package/dist/src/components/Select/Select.test.d.ts +1 -0
- package/dist/src/components/Select/StatefulSelect.d.ts +5 -0
- package/dist/src/components/Select/components/SelectMenu/SelectMenu.d.ts +27 -0
- package/dist/src/components/Select/components/SelectMenu/SelectMenu.style.d.ts +12 -0
- package/dist/src/components/Select/components/SelectMenu/index.d.ts +2 -0
- package/dist/src/components/Select/constants.d.ts +45 -0
- package/dist/src/components/Select/index.d.ts +4 -0
- package/dist/src/components/Select/storyUtils.d.ts +6 -0
- package/dist/src/components/Select/types.d.ts +66 -0
- package/dist/src/components/Slider/Slider.d.ts +22 -0
- package/dist/src/components/Slider/Slider.stories.d.ts +42 -0
- package/dist/src/components/Slider/Slider.style.d.ts +13 -0
- package/dist/src/components/Slider/components/SliderMark/SliderMark.d.ts +13 -0
- package/dist/src/components/Slider/components/SliderMark/SliderMark.style.d.ts +17 -0
- package/dist/src/components/Slider/components/SliderMark/index.d.ts +2 -0
- package/dist/src/components/Slider/components/SliderThumb/SliderThumb.d.ts +12 -0
- package/dist/src/components/Slider/components/SliderThumb/SliderThumb.style.d.ts +10 -0
- package/dist/src/components/Slider/components/SliderThumb/index.d.ts +2 -0
- package/dist/src/components/Slider/components/SliderTrack/SliderTrack.d.ts +12 -0
- package/dist/src/components/Slider/components/SliderTrack/SliderTrack.style.d.ts +10 -0
- package/dist/src/components/Slider/components/SliderTrack/index.d.ts +2 -0
- package/dist/src/components/Slider/index.d.ts +2 -0
- package/dist/src/components/Table/Table.d.ts +70 -0
- package/dist/src/components/Table/Table.stories.d.ts +48 -0
- package/dist/src/components/Table/Table.style.d.ts +6 -0
- package/dist/src/components/Table/Table.test.d.ts +1 -0
- package/dist/src/components/Table/TableRowContext.d.ts +21 -0
- package/dist/src/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.d.ts +10 -0
- package/dist/src/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.d.ts +5 -0
- package/dist/src/components/Table/components/ExtendedColumnItem/index.d.ts +2 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +14 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.d.ts +11 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +20 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.d.ts +4 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.d.ts +1 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.d.ts +13 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.d.ts +1 -0
- package/dist/src/components/Table/components/RenderRowOrNestedRow/index.d.ts +1 -0
- package/dist/src/components/Table/components/TableCell/TableCell.d.ts +19 -0
- package/dist/src/components/Table/components/TableCell/TableCell.style.d.ts +6 -0
- package/dist/src/components/Table/components/TableCell/index.d.ts +2 -0
- package/dist/src/components/Table/components/TableCell/utils.d.ts +3 -0
- package/dist/src/components/Table/components/TableRow/TableRow.d.ts +8 -0
- package/dist/src/components/Table/components/TableRow/index.d.ts +2 -0
- package/dist/src/components/Table/components/TableRowWrapper/TableRowWrapper.d.ts +21 -0
- package/dist/src/components/Table/components/TableRowWrapper/index.d.ts +2 -0
- package/dist/src/components/Table/index.d.ts +3 -0
- package/dist/src/components/Table/types.d.ts +18 -0
- package/dist/src/components/Table/utils/TableStoryComponents.d.ts +10 -0
- package/dist/src/components/Table/utils/index.d.ts +1 -0
- package/dist/src/components/Table/utils/utils.d.ts +6 -0
- package/dist/src/components/Tag/Tag.d.ts +11 -0
- package/dist/src/components/Tag/Tag.stories.d.ts +84 -0
- package/dist/src/components/Tag/Tag.style.d.ts +9 -0
- package/dist/src/components/Tag/Tag.test.d.ts +1 -0
- package/dist/src/components/Tag/Tag.tokens.d.ts +6 -0
- package/dist/src/components/Tag/Tag.types.d.ts +23 -0
- package/dist/src/components/Tag/constants.d.ts +4 -0
- package/dist/src/components/Tag/hooks/useGetTagUtils.d.ts +13 -0
- package/dist/src/components/Tag/index.d.ts +2 -0
- package/dist/src/components/TextArea/TextArea.d.ts +33 -0
- package/dist/src/components/TextArea/TextArea.stories.d.ts +77 -0
- package/dist/src/components/TextArea/TextArea.style.d.ts +11 -0
- package/dist/src/components/TextArea/index.d.ts +2 -0
- package/dist/src/components/TextField/TextField.d.ts +37 -0
- package/dist/src/components/TextField/TextField.stories.d.ts +99 -0
- package/dist/src/components/TextField/TextField.style.d.ts +8 -0
- package/dist/src/components/TextField/TextField.test.d.ts +1 -0
- package/dist/src/components/TextField/components/commons.d.ts +6 -0
- package/dist/src/components/TextField/index.d.ts +2 -0
- package/dist/src/components/TextInputBase/TextInputBase.d.ts +39 -0
- package/dist/src/components/TextInputBase/TextInputBase.style.d.ts +14 -0
- package/dist/src/components/TextInputBase/TextInputBase.tokens.d.ts +6 -0
- package/dist/src/components/TextInputBase/index.d.ts +2 -0
- package/dist/src/components/ThemeProvider/Test.d.ts +4 -0
- package/dist/src/components/ThemeProvider/ThemeProvider.d.ts +9 -0
- package/dist/src/components/ThemeProvider/ThemeProvider.stories.d.ts +14 -0
- package/dist/src/components/ThemeProvider/ThemeProvider.style.d.ts +5 -0
- package/dist/src/components/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/dist/src/components/ThemeProvider/index.d.ts +2 -0
- package/dist/src/components/Toast/Toast.d.ts +23 -0
- package/dist/src/components/Toast/Toast.style.d.ts +12 -0
- package/dist/src/components/Toast/Toast.test.d.ts +1 -0
- package/dist/src/components/Toast/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +76 -0
- package/dist/src/components/Tooltip/Tooltip.style.d.ts +5 -0
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +29 -0
- package/dist/src/components/Tooltip/index.d.ts +3 -0
- package/dist/src/components/Tooltip/utils.d.ts +3 -0
- package/dist/src/components/TopAppBar/TopAppBar.d.ts +5 -0
- package/dist/src/components/TopAppBar/TopAppBar.stories.d.ts +53 -0
- package/dist/src/components/TopAppBar/TopAppBar.style.d.ts +10 -0
- package/dist/src/components/TopAppBar/TopAppBar.test.d.ts +1 -0
- package/dist/src/components/TopAppBar/TopAppBar.types.d.ts +25 -0
- package/dist/src/components/TopAppBar/components/Logo/Logo.style.d.ts +9 -0
- package/dist/src/components/TopAppBar/components/Logo/Logo.wrapper.d.ts +7 -0
- package/dist/src/components/TopAppBar/components/Logo/index.d.ts +2 -0
- package/dist/src/components/TopAppBar/components/Search/Search.d.ts +13 -0
- package/dist/src/components/TopAppBar/components/Search/Search.style.d.ts +5 -0
- package/dist/src/components/TopAppBar/components/Search/index.d.ts +2 -0
- package/dist/src/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.d.ts +5 -0
- package/dist/src/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.d.ts +7 -0
- package/dist/src/components/TopAppBar/components/SidebarMenuIcon/index.d.ts +2 -0
- package/dist/src/components/TopAppBar/components/UserMenu/UserMenu.d.ts +13 -0
- package/dist/src/components/TopAppBar/components/UserMenu/UserMenu.style.d.ts +7 -0
- package/dist/src/components/TopAppBar/components/UserMenu/index.d.ts +2 -0
- package/dist/src/components/TopAppBar/components/index.d.ts +6 -0
- package/dist/src/components/TopAppBar/index.d.ts +3 -0
- package/dist/src/components/TruncatedContent/TruncatedContent.d.ts +12 -0
- package/dist/src/components/TruncatedContent/TruncatedContent.stories.d.ts +18 -0
- package/dist/src/components/TruncatedContent/TruncatedContent.style.d.ts +5 -0
- package/dist/src/components/TruncatedContent/TruncatedContent.test.d.ts +1 -0
- package/dist/src/components/TruncatedContent/index.d.ts +2 -0
- package/dist/src/components/Typography/Typography.config.styles.d.ts +19 -0
- package/dist/src/components/Typography/Typography.d.ts +29 -0
- package/dist/src/components/Typography/Typography.stories.d.ts +40 -0
- package/dist/src/components/Typography/Typography.style.d.ts +14 -0
- package/dist/src/components/Typography/index.d.ts +2 -0
- package/dist/src/components/Typography/utils.d.ts +4 -0
- package/dist/src/components/storyUtils/BarChartShowCase/BarChartShowCase.d.ts +5 -0
- package/dist/src/components/storyUtils/BarChartShowCase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/BreadcrumbShowcase/BreadcrumbShowcase.d.ts +8 -0
- package/dist/src/components/storyUtils/BreadcrumbShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/Breakpoints/Breakpoints.d.ts +2 -0
- package/dist/src/components/storyUtils/Breakpoints/index.d.ts +1 -0
- package/dist/src/components/storyUtils/ButtonShowcases/ButtonShowcase.d.ts +8 -0
- package/dist/src/components/storyUtils/ButtonShowcases/LoadingButtonShowcase.d.ts +4 -0
- package/dist/src/components/storyUtils/ButtonShowcases/index.d.ts +2 -0
- package/dist/src/components/storyUtils/CardShowcase/CardShowcase.d.ts +11 -0
- package/dist/src/components/storyUtils/CardShowcase/CardShowcase.style.d.ts +4 -0
- package/dist/src/components/storyUtils/CardShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/ColorUtility/ColorBox.d.ts +10 -0
- package/dist/src/components/storyUtils/ColorUtility/ColorUtility.d.ts +4 -0
- package/dist/src/components/storyUtils/ColorUtility/ColorUtility.style.d.ts +4 -0
- package/dist/src/components/storyUtils/ColorUtility/RangeInput.d.ts +8 -0
- package/dist/src/components/storyUtils/ColorUtility/index.d.ts +0 -0
- package/dist/src/components/storyUtils/ColorUtility/useColors.d.ts +17 -0
- package/dist/src/components/storyUtils/ColorUtility/utils.d.ts +2 -0
- package/dist/src/components/storyUtils/DonutChartShowCase/DonutChartShowCase.d.ts +8 -0
- package/dist/src/components/storyUtils/DonutChartShowCase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/EdgeCasesSelectShowcase.d.ts +4 -0
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/EdgeCasesSelectShowcase.style.d.ts +3 -0
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/IconographyShowcase/IconographyShowcase.d.ts +4 -0
- package/dist/src/components/storyUtils/IconographyShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/LabelConfigStoryComponents.d.ts +5 -0
- package/dist/src/components/storyUtils/ModalShowcase/ModalShowcase.d.ts +8 -0
- package/dist/src/components/storyUtils/ModalShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/NavigationShowcase/MenuItems.d.ts +3 -0
- package/dist/src/components/storyUtils/NavigationShowcase/NavigationShowcase.d.ts +7 -0
- package/dist/src/components/storyUtils/NavigationShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/NotificationShowcase/NotificationShowcase.d.ts +12 -0
- package/dist/src/components/storyUtils/NotificationShowcase/index.d.ts +2 -0
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.d.ts +2 -0
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.style.d.ts +18 -0
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.test.d.ts +1 -0
- package/dist/src/components/storyUtils/PaletteShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/PresentComponent/PresentComponent.d.ts +8 -0
- package/dist/src/components/storyUtils/PresentComponent/index.d.ts +1 -0
- package/dist/src/components/storyUtils/SelectShowcase/MultiSelectShowcase.d.ts +9 -0
- package/dist/src/components/storyUtils/SelectShowcase/MultiSelectShowcase.style.d.ts +5 -0
- package/dist/src/components/storyUtils/SelectShowcase/SelectShowcase.d.ts +11 -0
- package/dist/src/components/storyUtils/SelectShowcase/index.d.ts +2 -0
- package/dist/src/components/storyUtils/SliderShowcase/SliderShowcase.d.ts +10 -0
- package/dist/src/components/storyUtils/SliderShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/Stack/Stack.d.ts +10 -0
- package/dist/src/components/storyUtils/Stack/index.d.ts +1 -0
- package/dist/src/components/storyUtils/TableFilterShowcase/TableFilterShowcase.d.ts +4 -0
- package/dist/src/components/storyUtils/TableFilterShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/TextFieldShowcases/MultiTextFieldShowcase.d.ts +7 -0
- package/dist/src/components/storyUtils/TextFieldShowcases/TextFieldShowCase.d.ts +8 -0
- package/dist/src/components/storyUtils/TextFieldShowcases/index.d.ts +2 -0
- package/dist/src/components/storyUtils/ThemeWrapper/ThemeWrapper.d.ts +4 -0
- package/dist/src/components/storyUtils/ThemeWrapper/index.d.ts +1 -0
- package/dist/src/components/storyUtils/TooltipShowcase/TooltipShowcase.d.ts +6 -0
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/TooltipContent.d.ts +7 -0
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/TooltipContent.style.d.ts +5 -0
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/index.d.ts +1 -0
- package/dist/src/components/storyUtils/TooltipShowcase/index.d.ts +1 -0
- package/dist/src/components/storyUtils/TopAppBarShowcase.d.ts +20 -0
- package/dist/src/components/storyUtils/componentsForTypes.d.ts +12 -0
- package/dist/src/components/utils/ClickAwayListener/ClickAwayListener.d.ts +12 -0
- package/dist/src/components/utils/ClickAwayListener/index.d.ts +1 -0
- package/dist/src/components/utils/DropdownOptions/index.d.ts +9 -0
- package/dist/src/components/utils/PositionInScreen/PositionInScreen.d.ts +25 -0
- package/dist/src/components/utils/PositionInScreen/PositionInScreen.style.d.ts +11 -0
- package/dist/src/components/utils/PositionInScreen/hooks.d.ts +5 -0
- package/dist/src/components/utils/PositionInScreen/index.d.ts +1 -0
- package/dist/src/components/utils/PositionInScreen/utils.d.ts +1 -0
- package/dist/src/components/utils/handleSearch.d.ts +12 -0
- package/dist/src/hooks/__tests__/useSearchQueryParams.test.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/storyUtils/DemoUseSearchQueryParams.d.ts +7 -0
- package/dist/src/hooks/useBreakpoints.d.ts +4 -0
- package/dist/src/hooks/useBreakpoints.test.d.ts +1 -0
- package/dist/src/hooks/useCheck.d.ts +7 -0
- package/dist/src/hooks/useCombinedRefs.d.ts +3 -0
- package/dist/src/hooks/useElementSize.d.ts +10 -0
- package/dist/src/hooks/useEscape.d.ts +2 -0
- package/dist/src/hooks/useEventListener.d.ts +4 -0
- package/dist/src/hooks/useFieldUtils.d.ts +14 -0
- package/dist/src/hooks/useIsoMorphicLayoutEffect.d.ts +4 -0
- package/dist/src/hooks/useKeyboardEvents.d.ts +31 -0
- package/dist/src/hooks/useLoading.d.ts +8 -0
- package/dist/src/hooks/useLocationToGetCurrentMenuItem.d.ts +4 -0
- package/dist/src/hooks/usePagination.d.ts +15 -0
- package/dist/src/hooks/useSearchQueryParams.d.ts +2 -0
- package/dist/src/hooks/useSearchQueryParams.stories.d.ts +23 -0
- package/dist/src/hooks/useTheme.d.ts +2 -0
- package/dist/src/hooks/useThemeSwitch.d.ts +9 -0
- package/dist/src/hooks/useToggle.d.ts +2 -0
- package/dist/src/hooks/useTypeColorToColorMatch.d.ts +17 -0
- package/dist/src/index.d.ts +119 -0
- package/dist/src/storybook/Link/Link.d.ts +8 -0
- package/dist/src/storybook/Link/Link.style.d.ts +4 -0
- package/dist/src/storybook/Link/index.d.ts +2 -0
- package/dist/src/storybook/Note/Note.d.ts +4 -0
- package/dist/src/storybook/Note/Note.style.d.ts +4 -0
- package/dist/src/storybook/Note/index.d.ts +1 -0
- package/dist/src/storybook/Overview/Overview.d.ts +6 -0
- package/dist/src/storybook/Overview/Overview.style.d.ts +3 -0
- package/dist/src/storybook/Overview/index.d.ts +1 -0
- package/dist/src/storybook/Preview/Preview.d.ts +7 -0
- package/dist/src/storybook/Preview/Preview.style.d.ts +3 -0
- package/dist/src/storybook/Preview/index.d.ts +2 -0
- package/dist/src/storybook/SectionHeader/SectionHeader.d.ts +12 -0
- package/dist/src/storybook/SectionHeader/SectionHeader.style.d.ts +6 -0
- package/dist/src/storybook/SectionHeader/index.d.ts +2 -0
- package/dist/src/storybook/Showcases/BorderWidthShowcase/BorderWidthShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/BorderWidthShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/BoxShadowShowcase/BoxShadowShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/BoxShadowShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/LayoutShowcase/LayoutShowcase.d.ts +13 -0
- package/dist/src/storybook/Showcases/LayoutShowcase/LayoutShowcase.style.d.ts +13 -0
- package/dist/src/storybook/Showcases/LayoutShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/MinHeightShowcase/MinHeightShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/MinHeightShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/OpacityShowcase/OpacityShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/OpacityShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/OverviewShowcase/OverviewShowcase.d.ts +10 -0
- package/dist/src/storybook/Showcases/OverviewShowcase/OverviewShowcase.style.d.ts +3 -0
- package/dist/src/storybook/Showcases/OverviewShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/RadiusShowcase/RadiusShowcase.d.ts +5 -0
- package/dist/src/storybook/Showcases/RadiusShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/SizingShowcase/SizingShowcase.d.ts +5 -0
- package/dist/src/storybook/Showcases/SizingShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/SpacingSizingShowcase.d.ts +5 -0
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/SpacingSizingShowcase.style.d.ts +0 -0
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/StateShowcase/StateShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/StateShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/TagShowcase/TagShowcase.d.ts +9 -0
- package/dist/src/storybook/Showcases/TagShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/TextColorShowcase/TextColorShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/TextColorShowcase/TextColorShowcase.style.d.ts +5 -0
- package/dist/src/storybook/Showcases/TextColorShowcase/index.d.ts +1 -0
- package/dist/src/storybook/Showcases/TokenColorsShowcase/TokenColorsShowcase.d.ts +10 -0
- package/dist/src/storybook/Showcases/TokenColorsShowcase/TokenColorsShowcase.style.d.ts +7 -0
- package/dist/src/storybook/Showcases/TokenColorsShowcase/index.d.ts +2 -0
- package/dist/src/storybook/Showcases/TokenColorsShowcase/utils.d.ts +17 -0
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/TypographyTokensShowcase.d.ts +2 -0
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/TypographyTokensShowcase.style.d.ts +4 -0
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/index.d.ts +1 -0
- package/dist/src/storybook/SubsectionHeader/SubsectionHeader.d.ts +9 -0
- package/dist/src/storybook/SubsectionHeader/SubsectionHeader.style.d.ts +3 -0
- package/dist/src/storybook/SubsectionHeader/index.d.ts +1 -0
- package/dist/src/storybook/Tip/Tip.d.ts +7 -0
- package/dist/src/storybook/Tip/Tip.style.d.ts +5 -0
- package/dist/src/storybook/Tip/index.d.ts +2 -0
- package/dist/src/storybook/Typography/Typography.d.ts +9 -0
- package/dist/src/storybook/Typography/Typography.style.d.ts +4 -0
- package/dist/src/storybook/Typography/constants.d.ts +4 -0
- package/dist/src/storybook/Typography/index.d.ts +2 -0
- package/dist/src/storybook/UsageGuidelines/UsageGuidelines.d.ts +7 -0
- package/dist/src/storybook/UsageGuidelines/UsageGuidelines.style.d.ts +4 -0
- package/dist/src/storybook/UsageGuidelines/index.d.ts +1 -0
- package/dist/src/storybook/index.d.ts +8 -0
- package/dist/src/storybook/styles/OverviewCard.style.d.ts +4 -0
- package/dist/src/storybook.test.d.ts +1 -0
- package/dist/src/test/index.d.ts +1 -0
- package/dist/src/test/setup.d.ts +1 -0
- package/dist/src/test/utils.d.ts +7 -0
- package/dist/src/theme/dimension/borderRadius.d.ts +9 -0
- package/dist/src/theme/dimension/borderWidth.d.ts +9 -0
- package/dist/src/theme/dimension/index.d.ts +10 -0
- package/dist/src/theme/dimension/minHeight.d.ts +9 -0
- package/dist/src/theme/dimension/opacity.d.ts +9 -0
- package/dist/src/theme/dimension/sizing.d.ts +9 -0
- package/dist/src/theme/dimension/spacing.d.ts +9 -0
- package/dist/src/theme/dimension/state.d.ts +9 -0
- package/dist/src/theme/dimension/variables/borderRadius.d.ts +28 -0
- package/dist/src/theme/dimension/variables/borderWidth.d.ts +23 -0
- package/dist/src/theme/dimension/variables/minHeight.d.ts +20 -0
- package/dist/src/theme/dimension/variables/opacity.d.ts +18 -0
- package/dist/src/theme/dimension/variables/sizing.d.ts +30 -0
- package/dist/src/theme/dimension/variables/spacing.d.ts +43 -0
- package/dist/src/theme/dimension/variables/state.d.ts +25 -0
- package/dist/src/theme/functions.d.ts +9 -0
- package/dist/src/theme/globals/borderRadius.d.ts +8 -0
- package/dist/src/theme/globals/borderWidth.d.ts +8 -0
- package/dist/src/theme/globals/colors.d.ts +9 -0
- package/dist/src/theme/globals/constants/borderRadius.d.ts +43 -0
- package/dist/src/theme/globals/constants/borderWidth.d.ts +17 -0
- package/dist/src/theme/globals/constants/colors.d.ts +295 -0
- package/dist/src/theme/globals/constants/fontFamily.d.ts +12 -0
- package/dist/src/theme/globals/constants/fontSize.d.ts +44 -0
- package/dist/src/theme/globals/constants/fontWeight.d.ts +18 -0
- package/dist/src/theme/globals/constants/letterSpacing.d.ts +19 -0
- package/dist/src/theme/globals/constants/lineHeight.d.ts +48 -0
- package/dist/src/theme/globals/constants/opacity.d.ts +29 -0
- package/dist/src/theme/globals/constants/sizing.d.ts +95 -0
- package/dist/src/theme/globals/constants/spacing.d.ts +55 -0
- package/dist/src/theme/globals/constants/textCase.d.ts +11 -0
- package/dist/src/theme/globals/constants/textDecoration.d.ts +12 -0
- package/dist/src/theme/globals/elevation.d.ts +8 -0
- package/dist/src/theme/globals/index.d.ts +12 -0
- package/dist/src/theme/globals/oldColors.d.ts +2 -0
- package/dist/src/theme/globals/opacity.d.ts +8 -0
- package/dist/src/theme/globals/sizing.d.ts +8 -0
- package/dist/src/theme/globals/spacing.d.ts +8 -0
- package/dist/src/theme/globals/typography.d.ts +54 -0
- package/dist/src/theme/index.d.ts +5 -0
- package/dist/src/theme/overrides.d.ts +3 -0
- package/dist/src/theme/palette.config.d.ts +46 -0
- package/dist/src/theme/palette.d.ts +74 -0
- package/dist/src/theme/states/disabled.d.ts +12 -0
- package/dist/src/theme/states/focus.d.ts +17 -0
- package/dist/src/theme/states/hover.d.ts +16 -0
- package/dist/src/theme/states/index.d.ts +6 -0
- package/dist/src/theme/states/pressed.d.ts +16 -0
- package/dist/src/theme/states/statesConfig.d.ts +37 -0
- package/dist/src/theme/states/tests/states.test.d.ts +1 -0
- package/dist/src/theme/states/utils.d.ts +10 -0
- package/dist/src/theme/tests/utils.test.d.ts +1 -0
- package/dist/src/theme/tokens/components/variables/avatar.d.ts +103 -0
- package/dist/src/theme/tokens/components/variables/button.d.ts +27 -0
- package/dist/src/theme/tokens/components/variables/controls.d.ts +19 -0
- package/dist/src/theme/tokens/components/variables/datePicker.d.ts +18 -0
- package/dist/src/theme/tokens/components/variables/field.d.ts +93 -0
- package/dist/src/theme/tokens/components/variables/filter.d.ts +8 -0
- package/dist/src/theme/tokens/components/variables/link.d.ts +58 -0
- package/dist/src/theme/tokens/components/variables/listItem.d.ts +13 -0
- package/dist/src/theme/tokens/components/variables/progressIndicator.d.ts +15 -0
- package/dist/src/theme/tokens/components/variables/search.d.ts +10 -0
- package/dist/src/theme/tokens/components/variables/tag.d.ts +17 -0
- package/dist/src/theme/tokens/index.d.ts +10 -0
- package/dist/src/theme/tokens/semantic/boxShadow.d.ts +8 -0
- package/dist/src/theme/tokens/semantic/colors.d.ts +9 -0
- package/dist/src/theme/tokens/semantic/disabledState.d.ts +8 -0
- package/dist/src/theme/tokens/semantic/index.d.ts +8 -0
- package/dist/src/theme/tokens/semantic/state.d.ts +8 -0
- package/dist/src/theme/tokens/semantic/tests/constants.d.ts +22 -0
- package/dist/src/theme/tokens/semantic/tests/utils.test.d.ts +1 -0
- package/dist/src/theme/tokens/semantic/typography.d.ts +12 -0
- package/dist/src/theme/tokens/semantic/variables/boxShadow.d.ts +71 -0
- package/dist/src/theme/tokens/semantic/variables/colors.d.ts +308 -0
- package/dist/src/theme/tokens/semantic/variables/disabledState.d.ts +7 -0
- package/dist/src/theme/tokens/semantic/variables/state.d.ts +24 -0
- package/dist/src/theme/tokens/semantic/variables/typography.d.ts +359 -0
- package/dist/src/theme/tokens/utils/components.d.ts +13 -0
- package/dist/src/theme/tokens/utils/index.d.ts +4 -0
- package/dist/src/theme/tokens/utils/parsers.d.ts +21 -0
- package/dist/src/theme/tokens/utils/semantic.d.ts +11 -0
- package/dist/src/theme/tokens/utils/types.d.ts +49 -0
- package/dist/src/theme/types.d.ts +82 -0
- package/dist/src/theme/utils.d.ts +51 -0
- package/dist/src/utils/common.d.ts +22 -0
- package/dist/src/utils/date.d.ts +5 -0
- package/dist/src/utils/errors.d.ts +6 -0
- package/dist/src/utils/helpers.d.ts +20 -0
- package/dist/src/utils/storyshots.d.ts +18 -0
- package/dist/src/utils/tests/helpers.test.d.ts +1 -0
- package/dist/src/utils/tests/themeFunctions.test.d.ts +1 -0
- package/dist/src/utils/themeFunctions.d.ts +35 -0
- package/dist/src/utils/types.d.ts +11 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +21 -14
- package/dist/codemods/avatarCodemod.js +0 -45
- package/dist/codemods/avatarCodemod.js.map +0 -1
- package/dist/codemods/buttonCodemod.js +0 -32
- package/dist/codemods/buttonCodemod.js.map +0 -1
- package/dist/codemods/checkboxCodemod.js +0 -29
- package/dist/codemods/checkboxCodemod.js.map +0 -1
- package/dist/codemods/chipCodemode.js +0 -39
- package/dist/codemods/chipCodemode.js.map +0 -1
- package/dist/codemods/drawerCodemod.js +0 -61
- package/dist/codemods/drawerCodemod.js.map +0 -1
- package/dist/codemods/filterCodemod.js +0 -27
- package/dist/codemods/filterCodemod.js.map +0 -1
- package/dist/codemods/globalsCodemod.js +0 -130
- package/dist/codemods/globalsCodemod.js.map +0 -1
- package/dist/codemods/iconButtonCodemod.js +0 -28
- package/dist/codemods/iconButtonCodemod.js.map +0 -1
- package/dist/codemods/iconCodemod.js +0 -19
- package/dist/codemods/iconCodemod.js.map +0 -1
- package/dist/codemods/loaderCodemod.js +0 -42
- package/dist/codemods/loaderCodemod.js.map +0 -1
- package/dist/codemods/menuCodemod.js +0 -31
- package/dist/codemods/menuCodemod.js.map +0 -1
- package/dist/codemods/notificationsCodemod.js +0 -17
- package/dist/codemods/notificationsCodemod.js.map +0 -1
- package/dist/codemods/paginationCodemod.js +0 -32
- package/dist/codemods/paginationCodemod.js.map +0 -1
- package/dist/codemods/radioCodemod.js +0 -21
- package/dist/codemods/radioCodemod.js.map +0 -1
- package/dist/codemods/radioGroupCodemod.js +0 -18
- package/dist/codemods/radioGroupCodemod.js.map +0 -1
- package/dist/codemods/searchCodemod.js +0 -31
- package/dist/codemods/searchCodemod.js.map +0 -1
- package/dist/codemods/selectCodemod.js +0 -66
- package/dist/codemods/selectCodemod.js.map +0 -1
- package/dist/codemods/switchCodemod.js +0 -28
- package/dist/codemods/switchCodemod.js.map +0 -1
- package/dist/codemods/tableCodemod.js +0 -23
- package/dist/codemods/tableCodemod.js.map +0 -1
- package/dist/codemods/textareaCodemod.js +0 -44
- package/dist/codemods/textareaCodemod.js.map +0 -1
- package/dist/codemods/textfieldCodemod.js +0 -43
- package/dist/codemods/textfieldCodemod.js.map +0 -1
- package/dist/codemods/tooltipCodemod.js +0 -26
- package/dist/codemods/tooltipCodemod.js.map +0 -1
- package/dist/codemods/unchangedIconsCodemod.js +0 -56
- package/dist/codemods/unchangedIconsCodemod.js.map +0 -1
- package/dist/index.d.ts +0 -3479
- package/dist/index.umd.js +0 -147
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
declare const typography: {
|
|
2
|
+
readonly normal: {
|
|
3
|
+
readonly headline01: {
|
|
4
|
+
readonly value: {
|
|
5
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
6
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
7
|
+
readonly lineHeight: "{lineHeight.10}";
|
|
8
|
+
readonly fontSize: "{fontSize.10}";
|
|
9
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
10
|
+
};
|
|
11
|
+
readonly type: "typography";
|
|
12
|
+
readonly description: "Largest text on the screen, reserved for the page title. Can only appear once";
|
|
13
|
+
};
|
|
14
|
+
readonly headline02: {
|
|
15
|
+
readonly value: {
|
|
16
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
17
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
18
|
+
readonly lineHeight: "{lineHeight.9}";
|
|
19
|
+
readonly fontSize: "{fontSize.9}";
|
|
20
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
21
|
+
};
|
|
22
|
+
readonly type: "typography";
|
|
23
|
+
readonly description: "Headline variant 2, reserved for important copy that is not a title (e.g. section titles)";
|
|
24
|
+
};
|
|
25
|
+
readonly headline03: {
|
|
26
|
+
readonly value: {
|
|
27
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
28
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
29
|
+
readonly lineHeight: "{lineHeight.8}";
|
|
30
|
+
readonly fontSize: "{fontSize.8}";
|
|
31
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
32
|
+
};
|
|
33
|
+
readonly type: "typography";
|
|
34
|
+
readonly description: "Headline variant 3";
|
|
35
|
+
};
|
|
36
|
+
readonly headline04: {
|
|
37
|
+
readonly value: {
|
|
38
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
39
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
40
|
+
readonly lineHeight: "{lineHeight.7}";
|
|
41
|
+
readonly fontSize: "{fontSize.6}";
|
|
42
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
43
|
+
};
|
|
44
|
+
readonly type: "typography";
|
|
45
|
+
readonly description: "Headline variant 4";
|
|
46
|
+
};
|
|
47
|
+
readonly headline05: {
|
|
48
|
+
readonly value: {
|
|
49
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
50
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
51
|
+
readonly lineHeight: "{lineHeight.6}";
|
|
52
|
+
readonly fontSize: "{fontSize.5}";
|
|
53
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
54
|
+
};
|
|
55
|
+
readonly type: "typography";
|
|
56
|
+
readonly description: "Headline variant 5";
|
|
57
|
+
};
|
|
58
|
+
readonly title01: {
|
|
59
|
+
readonly value: {
|
|
60
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
61
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
62
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
63
|
+
readonly fontSize: "{fontSize.4}";
|
|
64
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
65
|
+
};
|
|
66
|
+
readonly type: "typography";
|
|
67
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Large variant";
|
|
68
|
+
};
|
|
69
|
+
readonly title02: {
|
|
70
|
+
readonly value: {
|
|
71
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
72
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
73
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
74
|
+
readonly fontSize: "{fontSize.3}";
|
|
75
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
76
|
+
};
|
|
77
|
+
readonly type: "typography";
|
|
78
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Medium variant";
|
|
79
|
+
};
|
|
80
|
+
readonly title03: {
|
|
81
|
+
readonly value: {
|
|
82
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
83
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
84
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
85
|
+
readonly fontSize: "{fontSize.2}";
|
|
86
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
87
|
+
};
|
|
88
|
+
readonly type: "typography";
|
|
89
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Small variant";
|
|
90
|
+
};
|
|
91
|
+
readonly label01: {
|
|
92
|
+
readonly value: {
|
|
93
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
94
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
95
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
96
|
+
readonly fontSize: "{fontSize.4}";
|
|
97
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
98
|
+
};
|
|
99
|
+
readonly type: "typography";
|
|
100
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Large variant";
|
|
101
|
+
};
|
|
102
|
+
readonly label02: {
|
|
103
|
+
readonly value: {
|
|
104
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
105
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
106
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
107
|
+
readonly fontSize: "{fontSize.3}";
|
|
108
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
109
|
+
};
|
|
110
|
+
readonly type: "typography";
|
|
111
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Medium variant";
|
|
112
|
+
};
|
|
113
|
+
readonly label03: {
|
|
114
|
+
readonly value: {
|
|
115
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
116
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
117
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
118
|
+
readonly fontSize: "{fontSize.2}";
|
|
119
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
120
|
+
};
|
|
121
|
+
readonly type: "typography";
|
|
122
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Small variant";
|
|
123
|
+
};
|
|
124
|
+
readonly label04: {
|
|
125
|
+
readonly value: {
|
|
126
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
127
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
128
|
+
readonly lineHeight: "{lineHeight.1}";
|
|
129
|
+
readonly fontSize: "{fontSize.1}";
|
|
130
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
131
|
+
};
|
|
132
|
+
readonly type: "typography";
|
|
133
|
+
readonly description: "Resrved for short to medium, medium emphasis text (less than titles) or text within components. Extra small variant";
|
|
134
|
+
};
|
|
135
|
+
readonly body01: {
|
|
136
|
+
readonly value: {
|
|
137
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
138
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
139
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
140
|
+
readonly fontSize: "{fontSize.4}";
|
|
141
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
142
|
+
};
|
|
143
|
+
readonly type: "typography";
|
|
144
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Large variant";
|
|
145
|
+
};
|
|
146
|
+
readonly body02: {
|
|
147
|
+
readonly value: {
|
|
148
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
149
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
150
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
151
|
+
readonly fontSize: "{fontSize.3}";
|
|
152
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
153
|
+
};
|
|
154
|
+
readonly type: "typography";
|
|
155
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Medium variant";
|
|
156
|
+
};
|
|
157
|
+
readonly body03: {
|
|
158
|
+
readonly value: {
|
|
159
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
160
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
161
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
162
|
+
readonly fontSize: "{fontSize.2}";
|
|
163
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
164
|
+
};
|
|
165
|
+
readonly type: "typography";
|
|
166
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Small variant";
|
|
167
|
+
};
|
|
168
|
+
readonly body04: {
|
|
169
|
+
readonly value: {
|
|
170
|
+
readonly fontFamily: "{fontFamily.roboto}";
|
|
171
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
172
|
+
readonly lineHeight: "{lineHeight.1}";
|
|
173
|
+
readonly fontSize: "{fontSize.1}";
|
|
174
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
175
|
+
};
|
|
176
|
+
readonly type: "typography";
|
|
177
|
+
readonly description: "Used for text within components. Extra small variant";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly mono: {
|
|
181
|
+
readonly headline01: {
|
|
182
|
+
readonly value: {
|
|
183
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
184
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
185
|
+
readonly lineHeight: "{lineHeight.10}";
|
|
186
|
+
readonly fontSize: "{fontSize.10}";
|
|
187
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
188
|
+
};
|
|
189
|
+
readonly type: "typography";
|
|
190
|
+
readonly description: "Largest text on the screen, reserved for the page title. Can only appear once";
|
|
191
|
+
};
|
|
192
|
+
readonly body04: {
|
|
193
|
+
readonly value: {
|
|
194
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
195
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
196
|
+
readonly lineHeight: "{lineHeight.1}";
|
|
197
|
+
readonly fontSize: "{fontSize.1}";
|
|
198
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
199
|
+
};
|
|
200
|
+
readonly type: "typography";
|
|
201
|
+
readonly description: "Used for text within components. Extra small variant";
|
|
202
|
+
};
|
|
203
|
+
readonly headline02: {
|
|
204
|
+
readonly value: {
|
|
205
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
206
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
207
|
+
readonly lineHeight: "{lineHeight.9}";
|
|
208
|
+
readonly fontSize: "{fontSize.9}";
|
|
209
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
210
|
+
};
|
|
211
|
+
readonly type: "typography";
|
|
212
|
+
readonly description: "Headline variant 2, reserved for important copy that is not a title (e.g. section titles)";
|
|
213
|
+
};
|
|
214
|
+
readonly headline03: {
|
|
215
|
+
readonly value: {
|
|
216
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
217
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
218
|
+
readonly lineHeight: "{lineHeight.8}";
|
|
219
|
+
readonly fontSize: "{fontSize.8}";
|
|
220
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
221
|
+
};
|
|
222
|
+
readonly type: "typography";
|
|
223
|
+
readonly description: "Headline variant 3";
|
|
224
|
+
};
|
|
225
|
+
readonly headline04: {
|
|
226
|
+
readonly value: {
|
|
227
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
228
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
229
|
+
readonly lineHeight: "{lineHeight.7}";
|
|
230
|
+
readonly fontSize: "{fontSize.6}";
|
|
231
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
232
|
+
};
|
|
233
|
+
readonly type: "typography";
|
|
234
|
+
readonly description: "Headline variant 4";
|
|
235
|
+
};
|
|
236
|
+
readonly headline05: {
|
|
237
|
+
readonly value: {
|
|
238
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
239
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
240
|
+
readonly lineHeight: "{lineHeight.6}";
|
|
241
|
+
readonly fontSize: "{fontSize.5}";
|
|
242
|
+
readonly letterSpacing: "{letterSpacing.0}";
|
|
243
|
+
};
|
|
244
|
+
readonly type: "typography";
|
|
245
|
+
readonly description: "Headline variant 5";
|
|
246
|
+
};
|
|
247
|
+
readonly title01: {
|
|
248
|
+
readonly value: {
|
|
249
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
250
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
251
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
252
|
+
readonly fontSize: "{fontSize.4}";
|
|
253
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
254
|
+
};
|
|
255
|
+
readonly type: "typography";
|
|
256
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Large variant";
|
|
257
|
+
};
|
|
258
|
+
readonly title02: {
|
|
259
|
+
readonly value: {
|
|
260
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
261
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
262
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
263
|
+
readonly fontSize: "{fontSize.3}";
|
|
264
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
265
|
+
};
|
|
266
|
+
readonly type: "typography";
|
|
267
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Medium variant";
|
|
268
|
+
};
|
|
269
|
+
readonly title03: {
|
|
270
|
+
readonly value: {
|
|
271
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
272
|
+
readonly fontWeight: "{fontWeight.bold}";
|
|
273
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
274
|
+
readonly fontSize: "{fontSize.2}";
|
|
275
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
276
|
+
};
|
|
277
|
+
readonly type: "typography";
|
|
278
|
+
readonly description: "Smaller than headline, reserved for short, medium emphasis text or text within components. Small variant";
|
|
279
|
+
};
|
|
280
|
+
readonly label01: {
|
|
281
|
+
readonly value: {
|
|
282
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
283
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
284
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
285
|
+
readonly fontSize: "{fontSize.4}";
|
|
286
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
287
|
+
};
|
|
288
|
+
readonly type: "typography";
|
|
289
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Large variant";
|
|
290
|
+
};
|
|
291
|
+
readonly label02: {
|
|
292
|
+
readonly value: {
|
|
293
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
294
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
295
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
296
|
+
readonly fontSize: "{fontSize.3}";
|
|
297
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
298
|
+
};
|
|
299
|
+
readonly type: "typography";
|
|
300
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Medium variant";
|
|
301
|
+
};
|
|
302
|
+
readonly label03: {
|
|
303
|
+
readonly value: {
|
|
304
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
305
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
306
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
307
|
+
readonly fontSize: "{fontSize.2}";
|
|
308
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
309
|
+
};
|
|
310
|
+
readonly type: "typography";
|
|
311
|
+
readonly description: "Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Small variant";
|
|
312
|
+
};
|
|
313
|
+
readonly label04: {
|
|
314
|
+
readonly value: {
|
|
315
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
316
|
+
readonly fontWeight: "{fontWeight.medium}";
|
|
317
|
+
readonly lineHeight: "{lineHeight.1}";
|
|
318
|
+
readonly fontSize: "{fontSize.1}";
|
|
319
|
+
readonly letterSpacing: "{letterSpacing.1}";
|
|
320
|
+
};
|
|
321
|
+
readonly type: "typography";
|
|
322
|
+
readonly description: "Resrved for short to medium, medium emphasis text (less than titles) or text within components. Extra small variant";
|
|
323
|
+
};
|
|
324
|
+
readonly body01: {
|
|
325
|
+
readonly value: {
|
|
326
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
327
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
328
|
+
readonly lineHeight: "{lineHeight.5}";
|
|
329
|
+
readonly fontSize: "{fontSize.4}";
|
|
330
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
331
|
+
};
|
|
332
|
+
readonly type: "typography";
|
|
333
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Large variant";
|
|
334
|
+
};
|
|
335
|
+
readonly body02: {
|
|
336
|
+
readonly value: {
|
|
337
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
338
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
339
|
+
readonly lineHeight: "{lineHeight.4}";
|
|
340
|
+
readonly fontSize: "{fontSize.3}";
|
|
341
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
342
|
+
};
|
|
343
|
+
readonly type: "typography";
|
|
344
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Medium variant";
|
|
345
|
+
};
|
|
346
|
+
readonly body03: {
|
|
347
|
+
readonly value: {
|
|
348
|
+
readonly fontFamily: "{fontFamily.robotoMono}";
|
|
349
|
+
readonly fontWeight: "{fontWeight.regular}";
|
|
350
|
+
readonly lineHeight: "{lineHeight.2}";
|
|
351
|
+
readonly fontSize: "{fontSize.2}";
|
|
352
|
+
readonly letterSpacing: "{letterSpacing.2}";
|
|
353
|
+
};
|
|
354
|
+
readonly type: "typography";
|
|
355
|
+
readonly description: "Used for longer text string of regular emphasis or text within components. Small variant";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
export default typography;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme } from 'theme';
|
|
2
|
+
import { Token, TokensObject } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Must be used on react components in order to fetch their component tokens
|
|
6
|
+
*
|
|
7
|
+
* @param object a variable from the tokens/components/variables directory
|
|
8
|
+
* @param theme
|
|
9
|
+
* @param path path of the requested token value. e.g: 'color.red.background' for avatar
|
|
10
|
+
* @param fn callback to normalize value
|
|
11
|
+
* @returns the parsed value of the requested path
|
|
12
|
+
*/
|
|
13
|
+
export declare const getComponentTokens: <T extends string>(object: TokensObject | Token, theme: Theme) => (path: T, fn?: (val: string) => unknown) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Theme } from '../../types';
|
|
2
|
+
import { Token, TokensObject } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const parseToken: (token: Token) => string;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param object a variable from the tokens/<theme_name>/variables directory
|
|
8
|
+
* @param path the object path to the composition
|
|
9
|
+
* @returns and object with:
|
|
10
|
+
* [key]: the key of the composition
|
|
11
|
+
* [value]: the value of the composition converted to css value
|
|
12
|
+
*/
|
|
13
|
+
export declare const parseCompositionToken: (object: TokensObject | Token) => (path: string) => any;
|
|
14
|
+
/**
|
|
15
|
+
* Parses component/token values, who point to GLOBAL or SEMANTIC(theme) tokens.
|
|
16
|
+
*
|
|
17
|
+
* @param path value of the comp-tier token, e.g.: {sem.palette.accents.red.base} of avatar comp
|
|
18
|
+
* @param fn callback to normalize values
|
|
19
|
+
* @returns the parsed value of the requested path
|
|
20
|
+
*/
|
|
21
|
+
export declare const parseComponentToken: (path: string, fn?: (val: string) => unknown) => (theme: Theme) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Token, TokensObject } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Used by themes like semantic in order to fetch all the variables defined in the `tokens/<theme_name>/variables`
|
|
5
|
+
* The returned value is usually used as inside .get of each variable like `textColor.get`
|
|
6
|
+
*
|
|
7
|
+
* @param object a variable from the tokens/<theme_name>/variables directory
|
|
8
|
+
* @param path path of the requested token value. e.g: 'systemic.tetiary.dark' for palette object
|
|
9
|
+
* @returns the parsed value of the requested path
|
|
10
|
+
*/
|
|
11
|
+
export declare const getTokensValue: (object: TokensObject | Token) => (path: string) => string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type Token = {
|
|
2
|
+
value: string;
|
|
3
|
+
type: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
export type TokensObject = {
|
|
7
|
+
[index: string]: string | TokensObject;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* This generic type to convert an object to a dot notation string deeply while ignoring `value` properties at the end
|
|
11
|
+
* Key paths of figma tokens objects usually used are declared in the following directories:
|
|
12
|
+
*
|
|
13
|
+
* src/theme/globals/constants/*
|
|
14
|
+
* src/theme/tokens/<theme>/variables/*
|
|
15
|
+
* src/theme/tokens/components/variables/*
|
|
16
|
+
*
|
|
17
|
+
* This is needed for all the getToken callbacks to make sure that
|
|
18
|
+
* all the requested paths return a Token (with value/type/description)
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```
|
|
22
|
+
* const avatar = {
|
|
23
|
+
* color: {
|
|
24
|
+
* red: {
|
|
25
|
+
* backgroundColor: {
|
|
26
|
+
* value: 'test'
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* },
|
|
30
|
+
* size: {
|
|
31
|
+
* 1: {
|
|
32
|
+
* value: 'test'
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
* } as const;
|
|
36
|
+
*
|
|
37
|
+
* type AvatarKeys = DotKeys<typeof avatar>;
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* the above produces
|
|
41
|
+
* ```
|
|
42
|
+
* type AvatarKeys = "color.red.backgroundColor" | "size.1"
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export type DotKeys<T> = T extends Record<string, unknown> ? {
|
|
46
|
+
[K in keyof T & string]: T[K] extends {
|
|
47
|
+
value: unknown;
|
|
48
|
+
} ? `${K}` : `${K}${DotKeys<T[K]> extends infer S ? (S extends string ? `.${S}` : '') : ''}`;
|
|
49
|
+
}[keyof T & string] | (keyof T extends number ? `${keyof T}` : never) : never;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { DimensionBorderRadius } from './dimension/borderRadius';
|
|
2
|
+
import { DimensionBorderWidth } from './dimension/borderWidth';
|
|
3
|
+
import { DimensionMinHeight } from './dimension/minHeight';
|
|
4
|
+
import { DimensionOpacity } from './dimension/opacity';
|
|
5
|
+
import { DimensionSizing } from './dimension/sizing';
|
|
6
|
+
import { DimensionSpacing } from './dimension/spacing';
|
|
7
|
+
import { DimensionState } from './dimension/state';
|
|
8
|
+
import { BorderRadius } from './globals/borderRadius';
|
|
9
|
+
import { BorderWidth } from './globals/borderWidth';
|
|
10
|
+
import { Colors } from './globals/colors';
|
|
11
|
+
import { Elevation } from './globals/elevation';
|
|
12
|
+
import { Opacity } from './globals/opacity';
|
|
13
|
+
import { Sizing } from './globals/sizing';
|
|
14
|
+
import { Spacing } from './globals/spacing';
|
|
15
|
+
import { Typography } from './globals/typography';
|
|
16
|
+
import { Overrides } from './overrides';
|
|
17
|
+
import { GetAAColor, GetAAColorFromSwatches, GetColor, Palette } from './palette';
|
|
18
|
+
import { PaletteConfig } from './palette.config';
|
|
19
|
+
import { SemanticBoxShadow } from './tokens/semantic/boxShadow';
|
|
20
|
+
import { SemanticColors } from './tokens/semantic/colors';
|
|
21
|
+
import { SemanticDisabledState } from './tokens/semantic/disabledState';
|
|
22
|
+
import { SemanticState } from './tokens/semantic/state';
|
|
23
|
+
import { SemanticTypography } from './tokens/semantic/typography';
|
|
24
|
+
|
|
25
|
+
export type TextColorTypes = 'primary' | 'secondary' | 'light';
|
|
26
|
+
export type ColorScheme = 'semantic' | 'dark';
|
|
27
|
+
export type ThemeConfig = {
|
|
28
|
+
palette: PaletteConfig;
|
|
29
|
+
typography: Typography;
|
|
30
|
+
spacing: Spacing;
|
|
31
|
+
elevation: Elevation;
|
|
32
|
+
overrides: Overrides;
|
|
33
|
+
};
|
|
34
|
+
export type SemanticTheme = {
|
|
35
|
+
colors: SemanticColors;
|
|
36
|
+
disabledState: SemanticDisabledState;
|
|
37
|
+
state: SemanticState;
|
|
38
|
+
typography: SemanticTypography;
|
|
39
|
+
boxShadow: SemanticBoxShadow;
|
|
40
|
+
};
|
|
41
|
+
export type Dimension = {
|
|
42
|
+
borderRadius: DimensionBorderRadius;
|
|
43
|
+
borderWidth: DimensionBorderWidth;
|
|
44
|
+
minHeight: DimensionMinHeight;
|
|
45
|
+
opacity: DimensionOpacity;
|
|
46
|
+
sizing: DimensionSizing;
|
|
47
|
+
spacing: DimensionSpacing;
|
|
48
|
+
state: DimensionState;
|
|
49
|
+
};
|
|
50
|
+
/** Will add more themes in the future (e.g.: DarkTheme) */
|
|
51
|
+
export type Tokens = SemanticTheme;
|
|
52
|
+
export type Theme = {
|
|
53
|
+
globals: {
|
|
54
|
+
colors: Colors;
|
|
55
|
+
oldColors: Palette;
|
|
56
|
+
typography: Typography;
|
|
57
|
+
spacing: Spacing;
|
|
58
|
+
elevation: Elevation;
|
|
59
|
+
borderRadius: BorderRadius;
|
|
60
|
+
borderWidth: BorderWidth;
|
|
61
|
+
opacity: Opacity;
|
|
62
|
+
sizing: Sizing;
|
|
63
|
+
};
|
|
64
|
+
dimension: Dimension;
|
|
65
|
+
tokens: Tokens;
|
|
66
|
+
colorScheme: ColorScheme;
|
|
67
|
+
overrides: Overrides;
|
|
68
|
+
utils: {
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated deprecated since v5.0.0. Use `theme.globals.colors.get('')` instead.
|
|
71
|
+
*/
|
|
72
|
+
getColor: GetColor;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated deprecated since v5.0.0. Use `theme.globals.colors.get('')` instead.
|
|
75
|
+
*/
|
|
76
|
+
getAAColorFromSwatches: GetAAColorFromSwatches;
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated deprecated since v5.0.0. Use `theme.globals.colors.get('')` instead.
|
|
79
|
+
*/
|
|
80
|
+
getAAColor: GetAAColor;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GeneratedColorShades, Palette } from './palette';
|
|
2
|
+
import { PaletteConfig } from './palette.config';
|
|
3
|
+
import { PropsValidationError } from '../utils/errors';
|
|
4
|
+
|
|
5
|
+
export declare const convertPointsToPixels: (pt: number) => number;
|
|
6
|
+
export declare const convertRemToPixels: (rem: any) => number;
|
|
7
|
+
export declare const colorShadesCreator: (base: string, per?: number, shadesCount?: number) => GeneratedColorShades;
|
|
8
|
+
/**
|
|
9
|
+
* Recursive function that iterates over the theme.
|
|
10
|
+
* If, upon iteration it finds an object then it goes one level depper
|
|
11
|
+
* if the value exists in the exclusion array, it returns the value as is (useful for white and black colors),
|
|
12
|
+
* otherwise,if it finds a non object value ,it runs the callback it was passed as a prop,
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @param obj {Object} Object The collection to iterate over.
|
|
16
|
+
* @param func {Function} callback to create colorShades.
|
|
17
|
+
* @returns {Record<string, unknown>>} Each level will have generatedColorShades and in whole it will return
|
|
18
|
+
* a complete palette.
|
|
19
|
+
*/
|
|
20
|
+
export declare const iterateObject: <T extends object>(obj: T, func: (value: string, name: string) => GeneratedColorShades | string) => Record<string, unknown>;
|
|
21
|
+
export declare const enhancePaletteWithShades: (obj: PaletteConfig) => Palette;
|
|
22
|
+
export declare const rem: (px: number | string) => string;
|
|
23
|
+
export declare const getColorErrors: {
|
|
24
|
+
condition: (endColor: string) => boolean;
|
|
25
|
+
error: PropsValidationError;
|
|
26
|
+
}[];
|
|
27
|
+
export type GetFigmaTokensValue<T extends string | number | symbol> = {
|
|
28
|
+
(figmaTokensObject: Record<T, Record<string, string>>, type: 'pixels'): (val: T) => string;
|
|
29
|
+
(figmaTokensObject: Record<T, Record<string, string>>, type: 'string'): (val: T) => string;
|
|
30
|
+
(figmaTokensObject: Record<T, Record<string, string>>, type: 'number'): (val: T) => number;
|
|
31
|
+
};
|
|
32
|
+
export declare enum FigmaTokenValueType {
|
|
33
|
+
Pixels = "pixels",
|
|
34
|
+
String = "string",
|
|
35
|
+
Number = "number",
|
|
36
|
+
BoxShadow = "boxShadow"
|
|
37
|
+
}
|
|
38
|
+
/** The type of the object inside the theme/constants folder */
|
|
39
|
+
export type FigmaTokensObject<T extends string | symbol> = Record<T, Record<string, string | Record<string, string>>>;
|
|
40
|
+
/**
|
|
41
|
+
* @param figmaTokensObject The parsed objects from Figma Tokens in the src/theme/constants/ dir
|
|
42
|
+
* @param type 'pixels' refers to all the string values that need to be converted to rem
|
|
43
|
+
* 'string' refers to all the string values that need no conversion (e.g. opacity, font-family etc)
|
|
44
|
+
* 'number' refers to all the string values that need to be converted to numbers (e.g. font-weight)
|
|
45
|
+
*/
|
|
46
|
+
export declare const getFigmaTokensValue: {
|
|
47
|
+
<T extends string | symbol>(figmaTokensObject: FigmaTokensObject<T>, type: FigmaTokenValueType.Number): (val: T) => number;
|
|
48
|
+
<T extends string | symbol>(figmaTokensObject: FigmaTokensObject<T>, type: FigmaTokenValueType.String): (val: T) => string;
|
|
49
|
+
<T extends string | symbol>(figmaTokensObject: FigmaTokensObject<T>, type: FigmaTokenValueType.Pixels): (val: T) => string;
|
|
50
|
+
<T extends string | symbol>(figmaTokensObject: FigmaTokensObject<T>, type: FigmaTokenValueType.BoxShadow): (val: T) => string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
type FunctionProps = {
|
|
4
|
+
children: () => React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const Function: ({ children }: FunctionProps) => React.ReactNode;
|
|
7
|
+
/** A type to turn any type optional properties to required */
|
|
8
|
+
export type RequiredProperties<T> = {
|
|
9
|
+
[K in keyof T]-?: T[K];
|
|
10
|
+
};
|
|
11
|
+
/** A generic type for native events */
|
|
12
|
+
export type EventProps = {
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
onBlur?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export type CommonButtonProps = Partial<Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'css' | 'onBlur' | 'onClick' | 'type' | 'disabled'>>;
|
|
17
|
+
export type DivProps = Partial<Omit<React.HTMLProps<HTMLDivElement>, 'color' | 'size' | 'css'>>;
|
|
18
|
+
export type FlexDirectionProperty = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
19
|
+
export type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
|
|
20
|
+
/** URL currently used for figma version 4.5 frozen */
|
|
21
|
+
export declare const FIGMA_URL = "https://www.figma.com/file/8kMPBNYHHXz2AtkzeeDmk5/Design-System-V5.0---Working-File";
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TestId } from 'utils/types';
|
|
2
|
+
|
|
3
|
+
/** A function that generates a unique key by making a value randomly based on time also */
|
|
4
|
+
export declare const generateUniqueKey: (elementType?: string) => string;
|
|
5
|
+
/** A function that generates a unique id using lodash's uniqueId util */
|
|
6
|
+
export declare const generateUniqueID: (prefix?: string) => string;
|
|
7
|
+
/** A function that takes two strings to generate a test data id by combining them if both exist */
|
|
8
|
+
export declare const generateTestDataId: (defaultId: TestId, customId?: TestId) => string;
|
|
9
|
+
/** A function that determines if the element passed is a function and a react element */
|
|
10
|
+
export declare function isComponentFunctionType(element: string | number | JSX.Element | Function): element is Function;
|
|
11
|
+
/** A function that retrieves the correct date format based on system's locale */
|
|
12
|
+
export declare const getLocaleFormat: (dateFormat: string | undefined) => string;
|
|
13
|
+
/**
|
|
14
|
+
* A function that takes an array of errors and the component props and throws an error
|
|
15
|
+
* if the condition is met
|
|
16
|
+
* */
|
|
17
|
+
export declare const errorHandler: <T>(errors: {
|
|
18
|
+
condition: (p: T) => boolean;
|
|
19
|
+
error: Error | ((p: T) => Error);
|
|
20
|
+
}[], props: T) => void[];
|