@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,18 @@
|
|
|
1
|
+
declare const DYNAMIC_ATTRIBUTES_LIST: {
|
|
2
|
+
elementType: string;
|
|
3
|
+
attributeName: string;
|
|
4
|
+
}[];
|
|
5
|
+
/**
|
|
6
|
+
* Changes the dynamic value of the attribute to static
|
|
7
|
+
* @param prop
|
|
8
|
+
* @param attributeConfig
|
|
9
|
+
*/
|
|
10
|
+
declare function changeAttributeValueToStatic(prop: any, attributeConfig: {
|
|
11
|
+
elementType: string;
|
|
12
|
+
attributeName: string;
|
|
13
|
+
}): void;
|
|
14
|
+
/**
|
|
15
|
+
* This is a recursive function that crawls all the nested props of the tree and spots the elements' attributes
|
|
16
|
+
* @param child
|
|
17
|
+
*/
|
|
18
|
+
declare const storyTreeCrawler: (child: any) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropsValidationError } from './errors';
|
|
2
|
+
import { Theme } from '../theme';
|
|
3
|
+
import { colorShades, flatColors, mainTypes } from '../theme/palette';
|
|
4
|
+
|
|
5
|
+
export type AcceptedColorComponentTypes = (typeof mainTypes)[number];
|
|
6
|
+
/**
|
|
7
|
+
** This util provide an easy way to return the hex color from a type based on our main types 'primary', 'light', 'secondary' etc
|
|
8
|
+
*/
|
|
9
|
+
export declare const getColorFromType: (type: AcceptedColorComponentTypes | string, theme: Theme, variant?: (typeof colorShades)[number]) => string;
|
|
10
|
+
export declare const backgroundPickerBasedOnType: (type: AcceptedColorComponentTypes) => (theme: Theme) => string;
|
|
11
|
+
export declare const colorPickerBasedOnType: (type: AcceptedColorComponentTypes) => (theme: Theme) => string;
|
|
12
|
+
export declare const fillPickerBasedOnType: (type: AcceptedColorComponentTypes | string, variant?: (typeof colorShades)[number]) => (theme: Theme) => string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of the calculateActualColorFromComponentProp that will be used for the components
|
|
15
|
+
* translation from string
|
|
16
|
+
* */
|
|
17
|
+
export type ColorShapeFromComponent = {
|
|
18
|
+
color: (typeof flatColors)[number];
|
|
19
|
+
shade: (typeof colorShades)[number];
|
|
20
|
+
};
|
|
21
|
+
type ErrorProp = {
|
|
22
|
+
color: string;
|
|
23
|
+
colorAfterSplit: string[];
|
|
24
|
+
};
|
|
25
|
+
export declare const errors: {
|
|
26
|
+
condition: ({ colorAfterSplit }: ErrorProp) => boolean;
|
|
27
|
+
error: ({ color }: ErrorProp) => PropsValidationError;
|
|
28
|
+
}[];
|
|
29
|
+
/**
|
|
30
|
+
* A utility to translate a color like red-500 to an object. This calculates on the color passed picked by our palette.
|
|
31
|
+
* So in case you run a red color for example `#d40000` this will return
|
|
32
|
+
* returns an object or undefined
|
|
33
|
+
* */
|
|
34
|
+
export declare const calculateActualColorFromComponentProp: (color: string) => ColorShapeFromComponent;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type DeepPartial<T> = T extends {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
} ? {
|
|
4
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
5
|
+
} : T;
|
|
6
|
+
export type ComponentSizes = 'compact' | 'normal';
|
|
7
|
+
export type TestId = string;
|
|
8
|
+
export type TestProps = {
|
|
9
|
+
dataTestId?: TestId;
|
|
10
|
+
dataTestPrefixId?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../src/index'
|
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "5.5.
|
|
4
|
-
"
|
|
3
|
+
"version": "5.5.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.umd.cjs",
|
|
5
6
|
"module": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/types/index.d.ts",
|
|
16
|
+
"default": "./dist/index.umd.cjs"
|
|
17
|
+
},
|
|
18
|
+
"default": "./dist/index.umd.cjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
7
21
|
"license": "MIT",
|
|
8
22
|
"bin": {
|
|
9
23
|
"ictinus-migrate-v5": "./bin/migrate.mjs"
|
|
@@ -19,8 +33,7 @@
|
|
|
19
33
|
"@emotion/jest": "^11.11.0",
|
|
20
34
|
"@emotion/react": "^11.11.1",
|
|
21
35
|
"@emotion/styled": "^11.11.0",
|
|
22
|
-
"@optimize-lodash/rollup-plugin": "^4.0.
|
|
23
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
36
|
+
"@optimize-lodash/rollup-plugin": "^4.0.4",
|
|
24
37
|
"@semantic-release/changelog": "^6.0.3",
|
|
25
38
|
"@semantic-release/git": "^10.0.1",
|
|
26
39
|
"@storybook/addon-a11y": "^7.6.11",
|
|
@@ -87,10 +100,6 @@
|
|
|
87
100
|
"react-router-dom": "^6.21.3",
|
|
88
101
|
"react-test-renderer": "^18.2.0",
|
|
89
102
|
"rimraf": "^3.0.2",
|
|
90
|
-
"rollup": "3.9.1",
|
|
91
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
92
|
-
"rollup-plugin-dts": "^5.1.1",
|
|
93
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
94
103
|
"semantic-release": "^22.0.12",
|
|
95
104
|
"storybook": "^7.6.11",
|
|
96
105
|
"storybook-addon-pseudo-states": "^2.1.2",
|
|
@@ -100,7 +109,7 @@
|
|
|
100
109
|
"typescript": "^5.0.2",
|
|
101
110
|
"url-loader": "^4.1.0",
|
|
102
111
|
"vite-plugin-dts": "^3.6.3",
|
|
103
|
-
"vite-plugin-svgr": "^4.
|
|
112
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
104
113
|
"vite-plugin-turbosnap": "^1.0.3",
|
|
105
114
|
"vite-tsconfig-paths": "^4.2.1",
|
|
106
115
|
"vitest": "^0.34.6"
|
|
@@ -122,8 +131,8 @@
|
|
|
122
131
|
"react-fast-compare": "^3.2.0",
|
|
123
132
|
"react-highlight-words": "^0.20.0",
|
|
124
133
|
"react-input-mask": "^2.0.4",
|
|
125
|
-
"react-media": "^2.0.0-rc.1",
|
|
126
134
|
"react-range": "^1.8.12",
|
|
135
|
+
"react-responsive": "^10.0.0",
|
|
127
136
|
"react-stately": "^3.28.0",
|
|
128
137
|
"react-textarea-autosize": "^8.5.3",
|
|
129
138
|
"react-window": "^1.8.6",
|
|
@@ -156,9 +165,7 @@
|
|
|
156
165
|
"prepare": "husky install",
|
|
157
166
|
"start": "storybook dev -p 6006",
|
|
158
167
|
"prebuild": "rimraf dist",
|
|
159
|
-
"build:
|
|
160
|
-
"build:codemods": "rollup -c --bundleConfigAsCjs",
|
|
161
|
-
"build:lib": "vite build && yarn build:rollOneBundleDTS && tsc --project tsconfig.codemods.json",
|
|
168
|
+
"build:lib": "yarn prebuild && vite build",
|
|
162
169
|
"build": "storybook build -o build/",
|
|
163
170
|
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
164
171
|
"test": "vitest --run",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Find all Avatar components
|
|
5
|
-
root.findJSXElements('Avatar').forEach((path) => {
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attr = attrPath.node.name;
|
|
10
|
-
// If the attribute is size, update it
|
|
11
|
-
if (attr.name === 'size') {
|
|
12
|
-
const sizeValue = attrPath.node.value.value;
|
|
13
|
-
switch (sizeValue) {
|
|
14
|
-
case 'xs':
|
|
15
|
-
attrPath.node.value.value = '1';
|
|
16
|
-
break;
|
|
17
|
-
case 'sm':
|
|
18
|
-
case 'md':
|
|
19
|
-
attrPath.node.value.value = '2';
|
|
20
|
-
break;
|
|
21
|
-
case 'lg':
|
|
22
|
-
attrPath.node.value.value = '4';
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
// If the attribute is color, update it
|
|
27
|
-
if (attr.name === 'color') {
|
|
28
|
-
const colorValue = attrPath.node.value.value;
|
|
29
|
-
attrPath.node.value.value = colorValue.split('-')[0];
|
|
30
|
-
}
|
|
31
|
-
// Update color property
|
|
32
|
-
const colorValue = attrPath.node.value.value;
|
|
33
|
-
if (!['blue', 'teal', 'purple', 'red', 'orange'].includes(colorValue)) {
|
|
34
|
-
attrPath.node.value.value = 'blue';
|
|
35
|
-
}
|
|
36
|
-
// If the attribute is iconName, update it
|
|
37
|
-
if (attr.name === 'iconName') {
|
|
38
|
-
attr.name = 'src';
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
return root.toSource();
|
|
43
|
-
};
|
|
44
|
-
export default transform;
|
|
45
|
-
//# sourceMappingURL=avatarCodemod.js.map
|
|
@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C,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACvD,CAAC;YAED,wBAAwB;YACxB,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;YAC7C,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBACtE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;YACrC,CAAC;YAED,0CAA0C;YAC1C,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBAC7B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YACpB,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Find all Button components
|
|
5
|
-
root.findJSXElements('Button').forEach((path) => {
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attr = attrPath.node.name;
|
|
10
|
-
// If the attribute is one of the deprecated ones, remove it
|
|
11
|
-
if (['color', 'transparent', 'filled'].includes(attr.name)) {
|
|
12
|
-
j(attrPath).remove();
|
|
13
|
-
}
|
|
14
|
-
// If the attribute is one of the ones that changed, update it
|
|
15
|
-
if (attr.name === 'loading')
|
|
16
|
-
attr.name = 'isLoading';
|
|
17
|
-
if (attr.name === 'disabled')
|
|
18
|
-
attr.name = 'isDisabled';
|
|
19
|
-
if (attr.name === 'type')
|
|
20
|
-
attr.name = 'htmlType';
|
|
21
|
-
if (attr.name === 'buttonType')
|
|
22
|
-
attr.name = 'type';
|
|
23
|
-
if (attr.name === 'iconLeft')
|
|
24
|
-
attr.name = 'iconLeftName';
|
|
25
|
-
if (attr.name === 'iconRight')
|
|
26
|
-
attr.name = 'iconRightName';
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return root.toSource();
|
|
30
|
-
};
|
|
31
|
-
export default transform;
|
|
32
|
-
//# sourceMappingURL=buttonCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buttonCodemod.js","sourceRoot":"","sources":["../../codemods/buttonCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,6BAA6B;IAC7B,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhC,4DAA4D;YAC5D,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3D,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;YAED,8DAA8D;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;gBAAE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;YACrD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YACvD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;gBAAE,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY;gBAAE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;YACnD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;YACzD,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW;gBAAE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC7D,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('CheckBox').forEach((path) => {
|
|
5
|
-
j(path)
|
|
6
|
-
.find(j.JSXAttribute)
|
|
7
|
-
.forEach((attrPath) => {
|
|
8
|
-
const attr = attrPath.node.name;
|
|
9
|
-
// Remove 'filled' attribute
|
|
10
|
-
if (attr.name === 'filled') {
|
|
11
|
-
j(attrPath).remove();
|
|
12
|
-
}
|
|
13
|
-
// Replace 'label' with 'labelConfig'
|
|
14
|
-
if (attr.name === 'label') {
|
|
15
|
-
attr.name = 'labelConfig';
|
|
16
|
-
attrPath.node.value = j.jsxExpressionContainer(j.objectExpression([
|
|
17
|
-
j.property('init', j.identifier('helpText'), attrPath.node.value.expression || j.stringLiteral('')),
|
|
18
|
-
]));
|
|
19
|
-
}
|
|
20
|
-
// Rename 'checked' to 'isSelected'
|
|
21
|
-
if (attr.name === 'checked') {
|
|
22
|
-
attr.name = 'isSelected';
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
return root.toSource({ quote: 'single' });
|
|
27
|
-
};
|
|
28
|
-
export default transform;
|
|
29
|
-
//# sourceMappingURL=checkboxCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkboxCodemod.js","sourceRoot":"","sources":["../../codemods/checkboxCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAChD,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhC,4BAA4B;YAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3B,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;YAED,qCAAqC;YACrC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBAC1B,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;gBAC1B,QAAQ,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,sBAAsB,CAC5C,CAAC,CAAC,gBAAgB,CAAC;oBACjB,CAAC,CAAC,QAAQ,CACR,MAAM,EACN,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EACxB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CACtD;iBACF,CAAC,CACH,CAAC;YACJ,CAAC;YAED,mCAAmC;YACnC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC5B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
const validColors = ['teal', 'red', 'purple', 'teal'];
|
|
5
|
-
const attributesToRemove = ['isChecked', 'badgeNumber', 'disabled', 'thumbnail'];
|
|
6
|
-
root.find(j.JSXElement, { openingElement: { name: { name: 'Chip' } } }).forEach((path) => {
|
|
7
|
-
path.node.openingElement.attributes.forEach((attribute) => {
|
|
8
|
-
if (!attribute.name || !attribute.name.name) {
|
|
9
|
-
// Skip if attribute name is missing
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const attributeName = attribute.name.name;
|
|
13
|
-
// Rename fill to color and adjust values
|
|
14
|
-
if (attributeName === 'fill') {
|
|
15
|
-
attribute.name.name = 'color';
|
|
16
|
-
// Check if the value is a string literal
|
|
17
|
-
if (attribute.value.type === 'StringLiteral') {
|
|
18
|
-
if (!validColors.includes(attribute.value.value)) {
|
|
19
|
-
attribute.value.value = 'blue';
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// Check if the value is within JSX expression container
|
|
23
|
-
else if (attribute.value.type === 'JSXExpressionContainer' &&
|
|
24
|
-
attribute.value.expression.type === 'StringLiteral') {
|
|
25
|
-
if (!validColors.includes(attribute.value.expression.value)) {
|
|
26
|
-
attribute.value.expression.value = 'blue';
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// Remove deprecated attributes
|
|
31
|
-
if (attributesToRemove.includes(attributeName)) {
|
|
32
|
-
j(attribute).remove();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
return root.toSource({ quote: 'single' });
|
|
37
|
-
};
|
|
38
|
-
export default transform;
|
|
39
|
-
//# sourceMappingURL=chipCodemode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chipCodemode.js","sourceRoot":"","sources":["../../codemods/chipCodemode.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,MAAM,kBAAkB,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;IAEjF,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACvF,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YACxD,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBAC5C,oCAAoC;gBACpC,OAAO;YACT,CAAC;YAED,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAE1C,yCAAyC;YACzC,IAAI,aAAa,KAAK,MAAM,EAAE,CAAC;gBAC7B,SAAS,CAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;gBAE9B,yCAAyC;gBACzC,IAAI,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;oBAC7C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;wBACjD,SAAS,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBACjC,CAAC;gBACH,CAAC;gBAED,wDAAwD;qBACnD,IACH,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAwB;oBACjD,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,eAAe,EACnD,CAAC;oBACD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC5D,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC;oBAC5C,CAAC;gBACH,CAAC;YACH,CAAC;YAED,+BAA+B;YAC/B,IAAI,kBAAkB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;gBAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;YACxB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Update import declarations from '@orfium/ictinus'
|
|
5
|
-
root
|
|
6
|
-
.find(j.ImportDeclaration)
|
|
7
|
-
.filter((path) => path.node.source.value.includes('@orfium/ictinus'))
|
|
8
|
-
.forEach((path) => {
|
|
9
|
-
path.node.specifiers.forEach((specifier) => {
|
|
10
|
-
if (specifier.imported && specifier.imported.name === 'MenuItem') {
|
|
11
|
-
specifier.imported.name = 'NavigationMenuItem';
|
|
12
|
-
}
|
|
13
|
-
if (specifier.local && specifier.local.name === 'MenuItem') {
|
|
14
|
-
specifier.local.name = 'NavigationMenuItem';
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
// Update function return types and other usages of MenuItem
|
|
19
|
-
root.find(j.Identifier, { name: 'MenuItem' }).forEach((path) => {
|
|
20
|
-
// Ensure the change is only made for identifiers related to '@orfium/ictinus' import
|
|
21
|
-
const parentPath = path.parentPath;
|
|
22
|
-
if (parentPath &&
|
|
23
|
-
parentPath.node.type === 'ImportSpecifier' &&
|
|
24
|
-
parentPath.parentPath.node.source.value.includes('@orfium/ictinus')) {
|
|
25
|
-
path.node.name = 'NavigationMenuItem';
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
// Rename Drawer to Navigation in import declarations
|
|
29
|
-
root
|
|
30
|
-
.find(j.ImportDeclaration)
|
|
31
|
-
.filter((path) => path.node.source.value === '@orfium/ictinus')
|
|
32
|
-
.forEach((path) => {
|
|
33
|
-
path.node.specifiers.forEach((specifier) => {
|
|
34
|
-
if (specifier.imported && specifier.imported.name === 'Drawer') {
|
|
35
|
-
specifier.imported.name = 'Navigation';
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
// Update Drawer to Navigation in JSX and rename expanded to isExpanded
|
|
40
|
-
root.find(j.JSXElement).forEach((path) => {
|
|
41
|
-
const openingElement = path.node.openingElement;
|
|
42
|
-
const closingElement = path.node.closingElement;
|
|
43
|
-
// Check for Drawer in opening element
|
|
44
|
-
if (openingElement.name.name === 'Drawer') {
|
|
45
|
-
openingElement.name.name = 'Navigation';
|
|
46
|
-
// Update closing element if it exists
|
|
47
|
-
if (closingElement && closingElement.name) {
|
|
48
|
-
closingElement.name.name = 'Navigation';
|
|
49
|
-
}
|
|
50
|
-
// Rename 'expanded' attribute to 'isExpanded'
|
|
51
|
-
openingElement.attributes.forEach((attribute) => {
|
|
52
|
-
if (attribute.name && attribute.name.name === 'expanded') {
|
|
53
|
-
attribute.name.name = 'isExpanded';
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return root.toSource({ quote: 'single' });
|
|
59
|
-
};
|
|
60
|
-
export default transform;
|
|
61
|
-
//# sourceMappingURL=drawerCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawerCodemod.js","sourceRoot":"","sources":["../../codemods/drawerCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,oDAAoD;IACpD,IAAI;SACD,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;SACzB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;SACpE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YACzC,IAAI,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBACjE,SAAS,CAAC,QAAQ,CAAC,IAAI,GAAG,oBAAoB,CAAC;YACjD,CAAC;YACD,IAAI,SAAS,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBAC3D,SAAS,CAAC,KAAK,CAAC,IAAI,GAAG,oBAAoB,CAAC;YAC9C,CAA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AI,CAAC,IAAI,CAAC,cAAc,CAAC;QAEhD,sCAAsC;QACtC,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC1C,cAAc,CAAC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YAExC,sCAAsC;YACtC,IAAI,cAAc,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC;gBAC1C,cAAc,CAAC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YAC1C,CAAC;YAED,8CAA8C;YAC9C,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;gBAC9C,IAAI,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;oBACzD,SAAS,CAAC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;gBACrC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Find all Button components
|
|
5
|
-
root.findJSXElements('Filter').forEach((path) => {
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attr = attrPath.node.name;
|
|
10
|
-
if (['styleType'].includes(attr.name)) {
|
|
11
|
-
j(attrPath).remove();
|
|
12
|
-
}
|
|
13
|
-
// If the attribute is one of the ones that changed, update it
|
|
14
|
-
if (attr.name === 'multi')
|
|
15
|
-
attr.name = 'isMulti';
|
|
16
|
-
if (attr.name === 'disabled')
|
|
17
|
-
attr.name = 'isDisabled';
|
|
18
|
-
if (attr.name === 'selectedItem')
|
|
19
|
-
attr.name = 'selectedFilter';
|
|
20
|
-
if (attr.name === 'onSelect')
|
|
21
|
-
attr.name = 'onChange';
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
return root.toSource();
|
|
25
|
-
};
|
|
26
|
-
export default transform;
|
|
27
|
-
//# sourceMappingURL=filterCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterCodemod.js","sourceRoot":"","sources":["../../codemods/filterCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,6BAA6B;IAC7B,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACtC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;YAED,8DAA8D;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;gBAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;YACjD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YACvD,IAAI,IAAI,CAAC,IAAI,KAAK,cAAc;gBAAE,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;YAC/D,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
const spacingReplaceMap = {
|
|
5
|
-
'theme.spacing.xsm': "theme.globals.spacing.get('3')",
|
|
6
|
-
'theme.spacing.sm': "theme.globals.spacing.get('4')",
|
|
7
|
-
'theme.spacing.md': "theme.globals.spacing.get('6')",
|
|
8
|
-
'theme.spacing.lg': "theme.globals.spacing.get('8')",
|
|
9
|
-
'theme.spacing.xl': "theme.globals.spacing.get('9')",
|
|
10
|
-
'props.theme.spacing.xsm': "props.theme.globals.spacing.get('3')",
|
|
11
|
-
'props.theme.spacing.sm': "props.theme.globals.spacing.get('4')",
|
|
12
|
-
'props.theme.spacing.md': "props.theme.globals.spacing.get('6')",
|
|
13
|
-
'props.theme.spacing.lg': "props.theme.globals.spacing.get('8')",
|
|
14
|
-
'props.theme.spacing.xl': "props.theme.globals.spacing.get('9')",
|
|
15
|
-
'theme.typography.weights.regular': "theme.globals.typography.fontWeight.get('regular')",
|
|
16
|
-
'theme.typography.weights.medium': "theme.globals.typography.fontWeight.get('medium')",
|
|
17
|
-
'theme.typography.weights.bold': "theme.globals.typography.fontWeight.get('bold')",
|
|
18
|
-
'props.theme.typography.weights.regular': "props.theme.globals.typography.fontWeight.get('regular')",
|
|
19
|
-
'props.theme.typography.weights.medium': "props.theme.globals.typography.fontWeight.get('medium')",
|
|
20
|
-
'props.theme.typography.weights.bold': "props.theme.globals.typography.fontWeight.get('bold')",
|
|
21
|
-
"theme.typography.fontSizes['10']": "theme.globals.typography.fontSize.get('1')",
|
|
22
|
-
"theme.typography.fontSizes['11']": "theme.globals.typography.fontSize.get('1')",
|
|
23
|
-
"theme.typography.fontSizes['12']": "theme.globals.typography.fontSize.get('2')",
|
|
24
|
-
"theme.typography.fontSizes['13']": "theme.globals.typography.fontSize.get('3')",
|
|
25
|
-
"theme.typography.fontSizes['14']": "theme.globals.typography.fontSize.get('3')",
|
|
26
|
-
"theme.typography.fontSizes['15']": "theme.globals.typography.fontSize.get('4')",
|
|
27
|
-
"theme.typography.fontSizes['16']": "theme.globals.typography.fontSize.get('4')",
|
|
28
|
-
"theme.typography.fontSizes['20']": "theme.globals.typography.fontSize.get('7')",
|
|
29
|
-
"theme.typography.fontSizes['22']": "theme.globals.typography.fontSize.get('7')",
|
|
30
|
-
"theme.typography.fontSizes['24']": "theme.globals.typography.fontSize.get('8')",
|
|
31
|
-
"theme.typography.fontSizes['28']": "theme.globals.typography.fontSize.get('9')",
|
|
32
|
-
"theme.typography.fontSizes['32']": "theme.globals.typography.fontSize.get('10')",
|
|
33
|
-
'theme.typography.fontSizes[10]': "theme.globals.typography.fontSize.get('1')",
|
|
34
|
-
'theme.typography.fontSizes[11]': "theme.globals.typography.fontSize.get('1')",
|
|
35
|
-
'theme.typography.fontSizes[12]': "theme.globals.typography.fontSize.get('2')",
|
|
36
|
-
'theme.typography.fontSizes[13]': "theme.globals.typography.fontSize.get('3')",
|
|
37
|
-
'theme.typography.fontSizes[14]': "theme.globals.typography.fontSize.get('3')",
|
|
38
|
-
'theme.typography.fontSizes[15]': "theme.globals.typography.fontSize.get('4')",
|
|
39
|
-
'theme.typography.fontSizes[16]': "theme.globals.typography.fontSize.get('4')",
|
|
40
|
-
'theme.typography.fontSizes[20]': "theme.globals.typography.fontSize.get('7')",
|
|
41
|
-
'theme.typography.fontSizes[22]': "theme.globals.typography.fontSize.get('7')",
|
|
42
|
-
'theme.typography.fontSizes[24]': "theme.globals.typography.fontSize.get('8')",
|
|
43
|
-
'theme.typography.fontSizes[28]': "theme.globals.typography.fontSize.get('9')",
|
|
44
|
-
'theme.typography.fontSizes[32]': "theme.globals.typography.fontSize.get('10')",
|
|
45
|
-
"props.theme.typography.fontSizes['10']": "props.theme.globals.typography.fontSize.get('1')",
|
|
46
|
-
"props.theme.typography.fontSizes['11']": "props.theme.globals.typography.fontSize.get('1')",
|
|
47
|
-
"props.theme.typography.fontSizes['12']": "props.theme.globals.typography.fontSize.get('2')",
|
|
48
|
-
"props.theme.typography.fontSizes['13']": "props.theme.globals.typography.fontSize.get('3')",
|
|
49
|
-
"props.theme.typography.fontSizes['14']": "props.theme.globals.typography.fontSize.get('3')",
|
|
50
|
-
"props.theme.typography.fontSizes['15']": "props.theme.globals.typography.fontSize.get('4')",
|
|
51
|
-
"props.theme.typography.fontSizes['16']": "props.theme.globals.typography.fontSize.get('4')",
|
|
52
|
-
"props.theme.typography.fontSizes['20']": "props.theme.globals.typography.fontSize.get('7')",
|
|
53
|
-
"props.theme.typography.fontSizes['22']": "props.theme.globals.typography.fontSize.get('7')",
|
|
54
|
-
"props.theme.typography.fontSizes['24']": "props.theme.globals.typography.fontSize.get('8')",
|
|
55
|
-
"props.theme.typography.fontSizes['28']": "props.theme.globals.typography.fontSize.get('9')",
|
|
56
|
-
"props.theme.typography.fontSizes['32']": "props.theme.globals.typography.fontSize.get('10')",
|
|
57
|
-
'props.theme.typography.fontSizes[10]': "props.theme.globals.typography.fontSize.get('1')",
|
|
58
|
-
'props.theme.typography.fontSizes[11]': "props.theme.globals.typography.fontSize.get('1')",
|
|
59
|
-
'props.theme.typography.fontSizes[12]': "props.theme.globals.typography.fontSize.get('2')",
|
|
60
|
-
'props.theme.typography.fontSizes[13]': "props.theme.globals.typography.fontSize.get('3')",
|
|
61
|
-
'props.theme.typography.fontSizes[14]': "props.theme.globals.typography.fontSize.get('3')",
|
|
62
|
-
'props.theme.typography.fontSizes[15]': "props.theme.globals.typography.fontSize.get('4')",
|
|
63
|
-
'props.theme.typography.fontSizes[16]': "props.theme.globals.typography.fontSize.get('4')",
|
|
64
|
-
'props.theme.typography.fontSizes[20]': "props.theme.globals.typography.fontSize.get('7')",
|
|
65
|
-
'props.theme.typography.fontSizes[22]': "props.theme.globals.typography.fontSize.get('7')",
|
|
66
|
-
'props.theme.typography.fontSizes[24]': "props.theme.globals.typography.fontSize.get('8')",
|
|
67
|
-
'props.theme.typography.fontSizes[28]': "props.theme.globals.typography.fontSize.get('9')",
|
|
68
|
-
'props.theme.typography.fontSizes[32]': "props.theme.globals.typography.fontSize.get('10')",
|
|
69
|
-
"theme.elevation['01']": "theme.globals.elevation['01']",
|
|
70
|
-
"theme.elevation['02']": "theme.globals.elevation['02']",
|
|
71
|
-
"theme.elevation['03']": "theme.globals.elevation['03']",
|
|
72
|
-
"props.theme.elevation['01']": "props.theme.globals.elevation['01']",
|
|
73
|
-
"props.theme.elevation['02']": "props.theme.globals.elevation['02']",
|
|
74
|
-
"props.theme.elevation['03']": "props.theme.globals.elevation['03']",
|
|
75
|
-
'theme.palette.white': 'theme.globals.oldColors.white',
|
|
76
|
-
'theme.palette.black': 'theme.globals.oldColors.black',
|
|
77
|
-
"theme.palette['white']": "theme.globals.oldColors['white']",
|
|
78
|
-
"theme.palette['black']": "theme.globals.oldColors['black']",
|
|
79
|
-
'theme.palette.primary[400]': 'theme.globals.oldColors.primary[400]',
|
|
80
|
-
'props.theme.palette.white': 'props.theme.globals.oldColors.white',
|
|
81
|
-
'props.theme.palette.black': 'props.theme.globals.oldColors.black',
|
|
82
|
-
"props.theme.palette['white']": "props.theme.globals.oldColors['white']",
|
|
83
|
-
"props.theme.palette['black']": "props.theme.globals.oldColors['black']",
|
|
84
|
-
'props.theme.palette.primary[400]': 'props.theme.globals.oldColors.primary[400]',
|
|
85
|
-
};
|
|
86
|
-
// Function to create a replacement expression from a string
|
|
87
|
-
const createReplacementExpression = (replacement) => {
|
|
88
|
-
const parts = replacement.split('.');
|
|
89
|
-
let expression = j.identifier(parts[0]);
|
|
90
|
-
for (let i = 1; i < parts.length; i++) {
|
|
91
|
-
const part = parts[i];
|
|
92
|
-
if (part.includes('(')) {
|
|
93
|
-
// Handle method calls like get('9')
|
|
94
|
-
const methodName = part.substring(0, part.indexOf('('));
|
|
95
|
-
const methodArgsStr = part.substring(part.indexOf('(') + 1, part.lastIndexOf(')'));
|
|
96
|
-
const args = methodArgsStr.split(',').map((arg) => {
|
|
97
|
-
// Remove the surrounding quotes
|
|
98
|
-
const trimmedArg = arg.trim().replace(/^['"]|['"]$/g, '');
|
|
99
|
-
return j.literal(trimmedArg);
|
|
100
|
-
});
|
|
101
|
-
expression = j.callExpression(j.memberExpression(expression, j.identifier(methodName)), args);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
expression = j.memberExpression(expression, j.identifier(part));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return expression;
|
|
108
|
-
};
|
|
109
|
-
// Replace member expressions
|
|
110
|
-
root.find(j.MemberExpression).forEach((path) => {
|
|
111
|
-
let sourceCode = j(path).toSource();
|
|
112
|
-
// Special handling for numeric index
|
|
113
|
-
if (path.node.property.type === 'Literal' && !isNaN(path.node.property.value)) {
|
|
114
|
-
sourceCode = `${j(path.node.object).toSource()}[${path.node.property.value}]`;
|
|
115
|
-
}
|
|
116
|
-
if (spacingReplaceMap[sourceCode]) {
|
|
117
|
-
const newExpression = createReplacementExpression(spacingReplaceMap[sourceCode]);
|
|
118
|
-
j(path).replaceWith(newExpression);
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
// Replace import paths
|
|
122
|
-
root.find(j.ImportDeclaration).forEach((path) => {
|
|
123
|
-
if (path.node.source.value.startsWith('@orfium/ictinus/')) {
|
|
124
|
-
path.node.source.value = '@orfium/ictinus';
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
return root.toSource();
|
|
128
|
-
};
|
|
129
|
-
export default transform;
|
|
130
|
-
//# sourceMappingURL=globalsCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalsC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kB,CAAC,EAAE,CAAC;YAC1D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,iBAAiB,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Find all IconButton components
|
|
5
|
-
root.findJSXElements('IconButton').forEach((path) => {
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attr = attrPath.node.name;
|
|
10
|
-
// If the attribute is one of the deprecated ones, remove it
|
|
11
|
-
if (['color', 'transparent', 'filled', 'iconSize'].includes(attr.name)) {
|
|
12
|
-
j(attrPath).remove();
|
|
13
|
-
}
|
|
14
|
-
// If the attribute is one of the ones that changed, update it
|
|
15
|
-
if (attr.name === 'loading')
|
|
16
|
-
attr.name = 'isLoading';
|
|
17
|
-
if (attr.name === 'disabled')
|
|
18
|
-
attr.name = 'isDisabled';
|
|
19
|
-
if (attr.name === 'buttonType')
|
|
20
|
-
attr.name = 'type';
|
|
21
|
-
if (attr.name === 'type')
|
|
22
|
-
attr.name = 'htmlType';
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
return root.toSource();
|
|
26
|
-
};
|
|
27
|
-
export default transform;
|
|
28
|
-
//# sourceMappingURL=iconButtonCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iconButtonCodemod.js","sourceRoot":"","sources":["../../codemods/iconButtonCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,iCAAiC;IACjC,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAClD,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhC,4DAA4D;YAC5D,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;YAED,8DAA8D;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;gBAAE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;YACrD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;YACvD,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY;gBAAE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;YACnD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;gBAAE,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACnD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Find all Icon components
|
|
5
|
-
root.findJSXElements('Icon').forEach((path) => {
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attr = attrPath.node.name;
|
|
10
|
-
// If the attribute is one of the deprecated ones, remove it
|
|
11
|
-
if (['variant'].includes(attr.name)) {
|
|
12
|
-
j(attrPath).remove();
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
return root.toSource();
|
|
17
|
-
};
|
|
18
|
-
export default transform;
|
|
19
|
-
//# sourceMappingURL=iconCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iconCodemod.js","sourceRoot":"","sources":["../../codemods/iconCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACzC,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,2BAA2B;IAC3B,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhC,4DAA4D;YAC5D,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|