@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
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Rename Loader to ProgressIndicator in import declarations
|
|
5
|
-
root
|
|
6
|
-
.find(j.ImportDeclaration)
|
|
7
|
-
.filter((path) => path.node.source.value === '@orfium/ictinus')
|
|
8
|
-
.forEach((path) => {
|
|
9
|
-
path.node.specifiers.forEach((specifier) => {
|
|
10
|
-
if (specifier.imported && specifier.imported.name === 'Loader') {
|
|
11
|
-
specifier.imported.name = 'ProgressIndicator';
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
// Update Loader to ProgressIndicator in JSX, handle type changes, and remove color
|
|
16
|
-
root.find(j.JSXElement).forEach((path) => {
|
|
17
|
-
const openingElement = path.node.openingElement;
|
|
18
|
-
// Check for Loader in opening element
|
|
19
|
-
if (openingElement.name.name === 'Loader') {
|
|
20
|
-
openingElement.name.name = 'ProgressIndicator';
|
|
21
|
-
openingElement.attributes.forEach((attribute) => {
|
|
22
|
-
if (attribute.name && attribute.name.name === 'type') {
|
|
23
|
-
// Convert type based on the old values
|
|
24
|
-
const typeValue = attribute.value.value;
|
|
25
|
-
if (typeValue === 'dots' || typeValue === 'indeterminate') {
|
|
26
|
-
attribute.value.value = 'linear';
|
|
27
|
-
}
|
|
28
|
-
else if (typeValue === 'spinner') {
|
|
29
|
-
attribute.value.value = 'circular';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
else if (attribute.name && attribute.name.name === 'color') {
|
|
33
|
-
// Remove color attribute
|
|
34
|
-
j(attribute).remove();
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
return root.toSource({ quote: 'single' });
|
|
40
|
-
};
|
|
41
|
-
export default transform;
|
|
42
|
-
//# sourceMappingURL=loaderCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loaderCodemod.js","sourceRoot":"","sources":["../../codemods/loaderCodemod.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,4DAA4D;IAC5D,IAAI;SACD,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;SACzB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,iBAAiB,CAAC;SAC9D,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,QAAQ,EAAE,CAAC;gBAC/D,SAAS,CAAC,QAAQ,CAAC,IAAI,GAAG,mBAAmB,CAAC;YAChD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEL,mFAAmF;IACnF,IAAI,CAAC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const root = j(file.source);
|
|
4
|
-
root.findJSXElements('Menu').forEach((path) => {
|
|
5
|
-
// Remove unwanted attributes and rename onSelect to onAction
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attrName = attrPath.node.name.name;
|
|
10
|
-
if (['color', 'buttonText', 'items'].includes(attrName)) {
|
|
11
|
-
j(attrPath).remove();
|
|
12
|
-
}
|
|
13
|
-
if (attrName === 'onSelect') {
|
|
14
|
-
attrPath.node.name.name = 'onAction';
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
// Insert a static ListItem for testing
|
|
18
|
-
const staticListItem = j.jsxElement(j.jsxOpeningElement(j.jsxIdentifier('ListItem'), [], true), j.jsxClosingElement(j.jsxIdentifier('ListItem')), [j.jsxText('Static Item')]);
|
|
19
|
-
// Ensure that children array exists
|
|
20
|
-
if (!path.node.children) {
|
|
21
|
-
path.node.children = [];
|
|
22
|
-
}
|
|
23
|
-
// Append static ListItem as a child
|
|
24
|
-
path.node.children.push(staticListItem);
|
|
25
|
-
// Log for debugging
|
|
26
|
-
console.log('Updated Menu Component:', path.node);
|
|
27
|
-
});
|
|
28
|
-
return root.toSource({ quote: 'single' });
|
|
29
|
-
};
|
|
30
|
-
export default transform;
|
|
31
|
-
//# sourceMappingURL=menuCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menuCodemod.js","sourceRoot":"","sources":["../../codemods/menuCodemod.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,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,6DAA6D;Q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C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('InlineNotification').forEach((path) => {
|
|
5
|
-
j(path)
|
|
6
|
-
.find(j.JSXAttribute)
|
|
7
|
-
.forEach((attrPath) => {
|
|
8
|
-
const attr = attrPath.node.name;
|
|
9
|
-
// If the attribute is one of the ones that changed, update it
|
|
10
|
-
if (attr.name === 'withIcon')
|
|
11
|
-
attr.name = 'hasIcon';
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
return root.toSource();
|
|
15
|
-
};
|
|
16
|
-
export default transform;
|
|
17
|
-
//# sourceMappingURL=notificationsCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationsCodemod.js","sourceRoot":"","sources":["../../codemods/notificationsCodemod.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,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1D,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,8DAA8D;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtD,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
|
-
// Update Pagination props in JSX
|
|
5
|
-
root.find(j.JSXElement).forEach((path) => {
|
|
6
|
-
const openingElement = path.node.openingElement;
|
|
7
|
-
// Check for Pagination in opening element
|
|
8
|
-
if (openingElement.name.name === 'Pagination') {
|
|
9
|
-
openingElement.attributes.forEach((attribute) => {
|
|
10
|
-
if (attribute.name && attribute.name.name === 'nextPageDisabled') {
|
|
11
|
-
attribute.name.name = 'isNextPageDisabled';
|
|
12
|
-
}
|
|
13
|
-
else if (attribute.name && attribute.name.name === 'prevPageDisabled') {
|
|
14
|
-
attribute.name.name = 'isPrevPageDisabled';
|
|
15
|
-
}
|
|
16
|
-
else if (attribute.name && attribute.name.name === 'hideEnhancedPaginationButtons') {
|
|
17
|
-
attribute.name.name = 'isEnhancedPaginationVisible';
|
|
18
|
-
// Invert the boolean value
|
|
19
|
-
if (attribute.value.type === 'JSXExpressionContainer') {
|
|
20
|
-
attribute.value = j.jsxExpressionContainer(j.logicalExpression('!', attribute.value.expression));
|
|
21
|
-
}
|
|
22
|
-
else if (attribute.value.type === 'BooleanLiteral') {
|
|
23
|
-
attribute.value = j.booleanLiteral(!attribute.value.value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return root.toSource({ quote: 'single' });
|
|
30
|
-
};
|
|
31
|
-
export default transform;
|
|
32
|
-
//# sourceMappingURL=paginationCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginationCodemod.js","sourceRoot":"","sources":["../../codemods/paginationCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc,CAAC,IAAI,EAAE,GAAG,EA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B,EAAE,CAAC;wBACrD,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBAC7D,CAAC;gBACH,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,21 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('Radio').forEach((path) => {
|
|
5
|
-
j(path)
|
|
6
|
-
.find(j.JSXAttribute)
|
|
7
|
-
.forEach((attrPath) => {
|
|
8
|
-
const attr = attrPath.node.name;
|
|
9
|
-
// Remove deprecated attributes 'filled', 'name', 'required'
|
|
10
|
-
if (['filled', 'name', 'required'].includes(attr.name)) {
|
|
11
|
-
j(attrPath).remove();
|
|
12
|
-
}
|
|
13
|
-
// Note: Handling of 'checked', 'onChange', and 'disabled'
|
|
14
|
-
// properties are omitted as they require context-specific transformations
|
|
15
|
-
// related to the parent 'RadioGroup' component.
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
return root.toSource({ quote: 'single' });
|
|
19
|
-
};
|
|
20
|
-
export default transform;
|
|
21
|
-
//# sourceMappingURL=radioCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radioCodemod.js","sourceRoot":"","sources":["../../codemods/radioCodemod.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,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7C,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,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,CAAC;YAED,0DAA0D;YAC1D,0EAA0E;YAC1E,gDAAgD;QAClD,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,18 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('RadioGroup').forEach((path) => {
|
|
5
|
-
j(path)
|
|
6
|
-
.find(j.JSXAttribute)
|
|
7
|
-
.forEach((attrPath) => {
|
|
8
|
-
const attr = attrPath.node.name;
|
|
9
|
-
// Remove deprecated attributes 'defaultValue', 'name'
|
|
10
|
-
if (['defaultValue', 'name'].includes(attr.name)) {
|
|
11
|
-
j(attrPath).remove();
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return root.toSource({ quote: 'single' });
|
|
16
|
-
};
|
|
17
|
-
export default transform;
|
|
18
|
-
//# sourceMappingURL=radioGroupCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radioGroupCodemod.js","sourceRoot":"","sources":["../../codemods/radioGroupCodemod.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,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,sDAAsD;YACtD,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACjD,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,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,31 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
// Rename SearchField to Search in import declarations
|
|
5
|
-
root
|
|
6
|
-
.find(j.ImportDeclaration)
|
|
7
|
-
.filter((path) => path.node.source.value === '@orfium/ictinus')
|
|
8
|
-
.forEach((path) => {
|
|
9
|
-
path.node.specifiers.forEach((specifier) => {
|
|
10
|
-
if (specifier.imported && specifier.imported.name === 'SearchField') {
|
|
11
|
-
specifier.imported.name = 'Search';
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
// Update Drawer to Navigation in JSX and rename expanded to isExpanded
|
|
16
|
-
root.find(j.JSXElement).forEach((path) => {
|
|
17
|
-
const openingElement = path.node.openingElement;
|
|
18
|
-
const closingElement = path.node.closingElement;
|
|
19
|
-
// Check for Drawer in opening element
|
|
20
|
-
if (openingElement.name.name === 'SearchField') {
|
|
21
|
-
openingElement.name.name = 'Search';
|
|
22
|
-
// Update closing element if it exists
|
|
23
|
-
if (closingElement && closingElement.name) {
|
|
24
|
-
closingElement.name.name = 'Search';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return root.toSource({ quote: 'single' });
|
|
29
|
-
};
|
|
30
|
-
export default transform;
|
|
31
|
-
//# sourceMappingURL=searchCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchCodemod.js","sourceRoot":"","sources":["../../codemods/searchCodemod.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,sDAAsD;IACtD,IAAI;SACD,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;SACzB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,iBAAiB,CAAC;SAC9D,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,aAAa,EAAE,CAAC;gBACpE,SAAS,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC;YACrC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEL,uEAAuE;IACvE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAChD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;QAEhD,sCAAsC;QACtC,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;YAC/C,cAAc,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;YAEpC,sCAAsC;YACtC,IAAI,cAAc,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC;gBAC1C,cAAc,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;YACtC,CAAC;QACH,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,66 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('Select').forEach((path) => {
|
|
5
|
-
let hintMsgValue = null;
|
|
6
|
-
let statusValue = null;
|
|
7
|
-
// Process attributes
|
|
8
|
-
j(path)
|
|
9
|
-
.find(j.JSXAttribute)
|
|
10
|
-
.forEach((attrPath) => {
|
|
11
|
-
const attrName = attrPath.node.name.name;
|
|
12
|
-
// Remove deprecated attributes
|
|
13
|
-
if ([
|
|
14
|
-
'defaultValue',
|
|
15
|
-
'rightIcon',
|
|
16
|
-
'leftIcon',
|
|
17
|
-
'locked',
|
|
18
|
-
'lean',
|
|
19
|
-
'styleType',
|
|
20
|
-
'dark',
|
|
21
|
-
'status',
|
|
22
|
-
'hasMinWidthCompat',
|
|
23
|
-
'onClearAllValues',
|
|
24
|
-
'multiValues',
|
|
25
|
-
'hintMsg',
|
|
26
|
-
].includes(attrName)) {
|
|
27
|
-
if (attrName === 'status') {
|
|
28
|
-
statusValue = attrPath.node.value;
|
|
29
|
-
}
|
|
30
|
-
if (attrName === 'hintMsg') {
|
|
31
|
-
hintMsgValue = attrPath.node.value;
|
|
32
|
-
}
|
|
33
|
-
j(attrPath).remove();
|
|
34
|
-
}
|
|
35
|
-
// Rename attributes
|
|
36
|
-
const renameMap = {
|
|
37
|
-
highlightSearch: 'hasHighlightSearch',
|
|
38
|
-
multi: 'isMulti',
|
|
39
|
-
disabled: 'isDisabled',
|
|
40
|
-
creatable: 'isCreatable',
|
|
41
|
-
handleSelectedOption: 'onChange',
|
|
42
|
-
selectedOptions: 'selectedOption', // Renaming for both singular and plural cases
|
|
43
|
-
};
|
|
44
|
-
if (attrName in renameMap) {
|
|
45
|
-
attrPath.node.name.name = renameMap[attrName];
|
|
46
|
-
}
|
|
47
|
-
// TODO: Handle 'onOptionDelete', 'multiValuesHandler', 'onMultiValueCreate', 'maxMultiValues'
|
|
48
|
-
// These require more specific information on how to transform
|
|
49
|
-
});
|
|
50
|
-
// Transform hintMsg into an object
|
|
51
|
-
if (hintMsgValue || statusValue) {
|
|
52
|
-
const hintAttribute = j.jsxAttribute(j.jsxIdentifier('status'), j.jsxExpressionContainer(j.objectExpression([
|
|
53
|
-
j.objectProperty(j.identifier('type'), statusValue.value === 'hint' || statusValue.value === 'success'
|
|
54
|
-
? j.literal('normal')
|
|
55
|
-
: statusValue || j.literal(null)),
|
|
56
|
-
j.objectProperty(j.identifier('hintMessage'), hintMsgValue || j.literal(null)),
|
|
57
|
-
])));
|
|
58
|
-
// Add transformed hintMsg as 'hint' attribute
|
|
59
|
-
path.node.openingElement.attributes.push(hintAttribute);
|
|
60
|
-
}
|
|
61
|
-
// TODO: Handle 'onClear' replacement for 'onClearAllValues'
|
|
62
|
-
});
|
|
63
|
-
return root.toSource({ quote: 'single' });
|
|
64
|
-
};
|
|
65
|
-
export default transform;
|
|
66
|
-
//# sourceMappingURL=selectCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectCodemod.js","sourceRoot":"","sources":["../../codemods/selectCodemod.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,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,IAAI,YAAY,GAAG,IAAI,CAAC;QACxB,IAAI,WAAW,GAAG,IAAI,CAAC;QAEvB,qBAAqB;QACrB,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAEzC,+BAA+B;YAC/B,IACE;gBACE,cAAc;gBACd,WAAW;gBACX,UAAU;gBACV,QAAQ;gBACR,MAAM;gBACN,WAAW;gBACX,MAAM;gBACN,QAAQ;gBACR,mBAAmB;gBACnB,kBAAkB;gBAClB,aAAa;gBACb,SAAS;aACV,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACpB,CAAC;gBACD,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;oBAC1B,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;gBACpC,CAAC;gBACD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;oBAC3B,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC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1D,CAAC;QAED,4DAA4D;IAC9D,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('Switch').forEach((path) => {
|
|
5
|
-
let labelPlacementValue = null;
|
|
6
|
-
// Process attributes
|
|
7
|
-
j(path)
|
|
8
|
-
.find(j.JSXAttribute)
|
|
9
|
-
.forEach((attrPath) => {
|
|
10
|
-
const attrName = attrPath.node.name.name;
|
|
11
|
-
// Handle labelPlacement
|
|
12
|
-
if (attrName === 'labelPlacement') {
|
|
13
|
-
labelPlacementValue = attrPath.node.value;
|
|
14
|
-
attrPath.node.name.name = 'labelConfig';
|
|
15
|
-
attrPath.node.value = j.jsxExpressionContainer(j.objectExpression([
|
|
16
|
-
j.objectProperty(j.identifier('placement'), labelPlacementValue.expression || labelPlacementValue),
|
|
17
|
-
]));
|
|
18
|
-
}
|
|
19
|
-
// Rename checked to isSelected
|
|
20
|
-
if (attrName === 'checked') {
|
|
21
|
-
attrPath.node.name.name = 'isSelected';
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
return root.toSource({ quote: 'single' });
|
|
26
|
-
};
|
|
27
|
-
export default transform;
|
|
28
|
-
//# sourceMappingURL=switchCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switchCodemod.js","sourceRoot":"","sources":["../../codemods/switchCodemod.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,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SXElements('Table').forEach((path) => {
|
|
5
|
-
j(path)
|
|
6
|
-
.find(j.JSXAttribute)
|
|
7
|
-
.forEach((attrPath) => {
|
|
8
|
-
const attr = attrPath.node.name;
|
|
9
|
-
// If the attribute is one of the ones that changed, update it
|
|
10
|
-
if (attr.name === 'padded')
|
|
11
|
-
attr.name = 'isPadded';
|
|
12
|
-
if (attr.name === 'fixedHeader')
|
|
13
|
-
attr.name = 'hasFixedHeader';
|
|
14
|
-
if (attr.name === 'fixedCTA')
|
|
15
|
-
attr.name = 'hasFixedCTA';
|
|
16
|
-
if (attr.name === 'initialExpanded')
|
|
17
|
-
attr.name = 'isInitiallyExpanded';
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
return root.toSource();
|
|
21
|
-
};
|
|
22
|
-
export default transform;
|
|
23
|
-
//# sourceMappingURL=tableCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableCodemod.js","sourceRoot":"","sources":["../../codemods/tableCodemod.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,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7C,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,8DAA8D;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;gBAAE,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;YACnD,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa;gBAAE,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;YAC9D,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU;gBAAE,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;YACxD,IAAI,IAAI,CAAC,IAAI,KAAK,iBAAiB;gBAAE,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QACzE,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('TextArea').forEach((path) => {
|
|
5
|
-
let hintMsgValue = null;
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attrName = attrPath.node.name.name;
|
|
10
|
-
// Remove deprecated attributes and store hintMsg value
|
|
11
|
-
if (attrName === 'hintMsg') {
|
|
12
|
-
hintMsgValue = attrPath.node.value.expression || attrPath.node.value;
|
|
13
|
-
j(attrPath).remove();
|
|
14
|
-
}
|
|
15
|
-
else if (['styleType', 'status'].includes(attrName)) {
|
|
16
|
-
j(attrPath).remove();
|
|
17
|
-
}
|
|
18
|
-
// Rename attributes
|
|
19
|
-
const renameMap = {
|
|
20
|
-
required: 'isRequired',
|
|
21
|
-
disabled: 'isDisabled',
|
|
22
|
-
resizeEnabled: 'isResizeEnabled',
|
|
23
|
-
};
|
|
24
|
-
if (attrName in renameMap) {
|
|
25
|
-
attrPath.node.name.name = renameMap[attrName];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
// Transform hintMsg
|
|
29
|
-
if (hintMsgValue) {
|
|
30
|
-
const hintAttribute = j.jsxAttribute(j.jsxIdentifier('hint'), j.jsxExpressionContainer(j.objectExpression([
|
|
31
|
-
// Assuming default type as "normal"
|
|
32
|
-
j.objectProperty(j.identifier('type'), j.literal('normal')),
|
|
33
|
-
j.objectProperty(j.identifier('hintMessage'), hintMsgValue),
|
|
34
|
-
// Add 'id' if needed
|
|
35
|
-
// j.objectProperty(j.identifier('id'), j.literal('some-id')),
|
|
36
|
-
])));
|
|
37
|
-
// Add transformed hintMsg as 'hint' attribute
|
|
38
|
-
path.node.openingElement.attributes.push(hintAttribute);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return root.toSource({ quote: 'single' });
|
|
42
|
-
};
|
|
43
|
-
export default transform;
|
|
44
|
-
//# sourceMappingURL=textareaCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textareaCodemod.js","sourceRoot":"","sources":["../../codemods/textareaCodemod.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,IAAI,YAAY,GAAG,IAAI,CAAC;QAExB,CAAC,CAAC,IAAI,CAAC;aACJ,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;aACpB,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAEzC,uDAAuD;YACvD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;gBACrE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EA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
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.findJSXElements('TextField').forEach((path) => {
|
|
5
|
-
let statusValue = null;
|
|
6
|
-
j(path)
|
|
7
|
-
.find(j.JSXAttribute)
|
|
8
|
-
.forEach((attrPath) => {
|
|
9
|
-
const attrName = attrPath.node.name.name;
|
|
10
|
-
// Store status value for later use
|
|
11
|
-
if (attrName === 'status') {
|
|
12
|
-
statusValue = attrPath.node.value.expression || attrPath.node.value;
|
|
13
|
-
j(attrPath).remove();
|
|
14
|
-
}
|
|
15
|
-
// Remove deprecated attributes
|
|
16
|
-
if (['rightIcon', 'leftIcon', 'locked', 'lean', 'styleType'].includes(attrName)) {
|
|
17
|
-
j(attrPath).remove();
|
|
18
|
-
}
|
|
19
|
-
// Rename attributes
|
|
20
|
-
const renameMap = {
|
|
21
|
-
multi: 'isMulti',
|
|
22
|
-
disabled: 'isDisabled',
|
|
23
|
-
readOnly: 'isReadOnly',
|
|
24
|
-
required: 'isRequired',
|
|
25
|
-
};
|
|
26
|
-
if (attrName in renameMap) {
|
|
27
|
-
attrPath.node.name.name = renameMap[attrName];
|
|
28
|
-
}
|
|
29
|
-
// Transform hintMsg
|
|
30
|
-
if (attrName === 'hintMsg') {
|
|
31
|
-
const hintMsgValue = attrPath.node.value.expression || attrPath.node.value;
|
|
32
|
-
attrPath.node.name.name = 'status';
|
|
33
|
-
attrPath.node.value = j.jsxExpressionContainer(j.objectExpression([
|
|
34
|
-
j.objectProperty(j.identifier('type'), statusValue || j.literal(null)),
|
|
35
|
-
j.objectProperty(j.identifier('hintMessage'), hintMsgValue),
|
|
36
|
-
]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
return root.toSource({ quote: 'single' });
|
|
41
|
-
};
|
|
42
|
-
export default transform;
|
|
43
|
-
//# sourceMappingURL=textfieldCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
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AAC,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;YAChD,CAAC;YAED,oBAAoB;YACpB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC3E,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;gBACnC,QAAQ,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,sBAAsB,CAC5C,CAAC,CAAC,gBAAgB,CAAC;oBACjB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACtE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC;iBAC5D,CAAC,CACH,CAAC;YACJ,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,26 +0,0 @@
|
|
|
1
|
-
const transform = (file, api) => {
|
|
2
|
-
const j = api.jscodeshift;
|
|
3
|
-
const root = j(file.source);
|
|
4
|
-
root.find(j.JSXElement, { openingElement: { name: { name: 'Tooltip' } } }).forEach((path) => {
|
|
5
|
-
const attributesToRemove = ['size', 'isTransparent'];
|
|
6
|
-
path.node.openingElement.attributes = path.node.openingElement.attributes.filter((attribute) => {
|
|
7
|
-
if (!attribute.name || !attribute.name.name) {
|
|
8
|
-
// Skip if attribute name is missing
|
|
9
|
-
return true;
|
|
10
|
-
}
|
|
11
|
-
const attributeName = attribute.name.name;
|
|
12
|
-
// Rename attributes
|
|
13
|
-
if (attributeName === 'interactive') {
|
|
14
|
-
attribute.name.name = 'isInteractive';
|
|
15
|
-
}
|
|
16
|
-
else if (attributeName === 'delay') {
|
|
17
|
-
attribute.name.name = 'delayIn';
|
|
18
|
-
}
|
|
19
|
-
// Remove deprecated attributes
|
|
20
|
-
return !attributesToRemove.includes(attributeName);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
return root.toSource({ quote: 'single' });
|
|
24
|
-
};
|
|
25
|
-
export default transform;
|
|
26
|
-
//# sourceMappingURL=tooltipCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipCodemod.js","sourceRoot":"","sources":["../../codemods/tooltipCodemod.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,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1F,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAErD,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAC9E,CAAC,SAAS,EAAE,EAAE;YACZ,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBAC5C,oCAAoC;gBACpC,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAE1C,oBAAoB;YACpB,IAAI,aAAa,KAAK,aAAa,EAAE,CAAC;gBACpC,SAAS,CAAC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;YACxC,CAAC;iBAAM,IAAI,aAAa,KAAK,OAAO,EAAE,CAAC;gBACrC,SAAS,CAAC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;YAClC,CAAC;YAED,+BAA+B;YAC/B,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACrD,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
const iconReplaceMap = {
|
|
2
|
-
chevronLargeRight: 'chevronRight',
|
|
3
|
-
chevronSmallRight: 'chevronRight',
|
|
4
|
-
arrowDown: 'chevronDown',
|
|
5
|
-
arrowRight: 'chevronRight',
|
|
6
|
-
dotsVertical: 'moreOptions',
|
|
7
|
-
restart: 'redo',
|
|
8
|
-
alert: 'warning',
|
|
9
|
-
auto: 'settings',
|
|
10
|
-
calendarFilled: 'calendar',
|
|
11
|
-
conflicts: 'conflict',
|
|
12
|
-
digitalUse: 'digital',
|
|
13
|
-
earnings2: 'earnings',
|
|
14
|
-
entity: 'entities',
|
|
15
|
-
externalLinkV2: 'link',
|
|
16
|
-
fatArrowLeft: 'arrowLeft',
|
|
17
|
-
fatArrowRight: 'arrowRight',
|
|
18
|
-
globalItem: 'review',
|
|
19
|
-
infoFilled: 'info',
|
|
20
|
-
licence: 'license',
|
|
21
|
-
musicNote: 'asset',
|
|
22
|
-
triangleWarning: 'warning',
|
|
23
|
-
view: 'eye',
|
|
24
|
-
};
|
|
25
|
-
const transform = (file, api) => {
|
|
26
|
-
const j = api.jscodeshift;
|
|
27
|
-
const root = j(file.source);
|
|
28
|
-
const updateIconName = (attribute) => {
|
|
29
|
-
if (attribute && attribute.name && attribute.name.name === 'name') {
|
|
30
|
-
if (attribute.value.type === 'JSXExpressionContainer') {
|
|
31
|
-
const expression = attribute.value.expression;
|
|
32
|
-
// Check for both string literals and expressions
|
|
33
|
-
if (expression.type === 'StringLiteral' && iconReplaceMap[expression.value]) {
|
|
34
|
-
attribute.value.expression = j.stringLiteral(iconReplaceMap[expression.value]);
|
|
35
|
-
}
|
|
36
|
-
else if (expression.type === 'Literal' && iconReplaceMap[expression.value]) {
|
|
37
|
-
attribute.value.expression = j.literal(iconReplaceMap[expression.value]);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else if (attribute.value.type === 'StringLiteral' &&
|
|
41
|
-
iconReplaceMap[attribute.value.value]) {
|
|
42
|
-
attribute.value = j.stringLiteral(iconReplaceMap[attribute.value.value]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
root
|
|
47
|
-
.find(j.JSXElement, {
|
|
48
|
-
openingElement: { name: { name: (n) => ['Icon', 'IconButton'].includes(n) } },
|
|
49
|
-
})
|
|
50
|
-
.forEach((path) => {
|
|
51
|
-
path.node.openingElement.attributes.forEach(updateIconName);
|
|
52
|
-
});
|
|
53
|
-
return root.toSource({ quote: 'single' });
|
|
54
|
-
};
|
|
55
|
-
export default transform;
|
|
56
|
-
//# sourceMappingURL=unchangedIconsCodemod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unchangedIconsCodemod.js","sourceRoot":"","sources":["../../codemods/unchangedIconsCodemod.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAAG;IACrB,iBAAiB,EAAE,cAAc;IACjC,iBAAiB,EAAE,cAAc;IACjC,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,cAAc;IAC1B,YAAY,EAAE,aAAa;IAC3B,OAAO,EAAE,MAAM;IACf,KAAK,EAAE,SAA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