@orfium/ictinus 5.39.2 → 5.39.4
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/.eslintrc.json +127 -0
- package/.turbo/turbo-build.log +75 -0
- package/CHANGELOG.md +7 -0
- package/codemods/avatarCodemod.ts +53 -0
- package/codemods/buttonCodemod.ts +52 -0
- package/codemods/checkboxCodemod.ts +42 -0
- package/codemods/chipCodemode.ts +45 -0
- package/codemods/drawerCodemod.ts +73 -0
- package/codemods/filterCodemod.ts +29 -0
- package/codemods/globalsCodemod.ts +145 -0
- package/codemods/iconButtonCodemod.ts +54 -0
- package/codemods/iconCodemod.ts +24 -0
- package/codemods/loaderCodemod.ts +47 -0
- package/codemods/menuCodemod.ts +43 -0
- package/codemods/notificationsCodemod.ts +21 -0
- package/codemods/paginationCodemod.ts +36 -0
- package/codemods/radioCodemod.ts +27 -0
- package/codemods/radioGroupCodemod.ts +23 -0
- package/codemods/searchCodemod.ts +38 -0
- package/codemods/selectCodemod.ts +88 -0
- package/codemods/switchCodemod.ts +40 -0
- package/codemods/tableCodemod.ts +24 -0
- package/codemods/textareaCodemod.ts +58 -0
- package/codemods/textfieldCodemod.ts +55 -0
- package/codemods/tooltipCodemod.ts +35 -0
- package/codemods/unchangedIconsCodemod.ts +62 -0
- package/dist/index.cjs +70 -83
- package/dist/index.js +19352 -22870
- package/dist/src/components/Avatar/Avatar.d.ts +2 -2
- package/dist/src/components/Avatar/Avatar.types.d.ts +2 -2
- package/dist/src/components/Avatar/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/src/components/Avatar/AvatarStack/AvatarStack.types.d.ts +4 -2
- package/dist/src/components/Controls/ControlLabel/ControlHelpText.d.ts +1 -0
- package/dist/src/components/Controls/ControlLabel/ControlLabelText.d.ts +1 -0
- package/dist/src/components/Controls/index.d.ts +1 -0
- package/dist/src/components/Filter/Filter.types.d.ts +1 -1
- package/dist/src/components/Filter/components/FilterButton/FilterButton.d.ts +4 -4
- package/dist/src/components/Icon/index.d.ts +2 -0
- package/dist/src/components/InlineAlert/index.d.ts +1 -1
- package/dist/src/components/Link/Link.tokens.d.ts +1 -1
- package/dist/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/src/components/Search/Search.style.d.ts +9 -9
- package/dist/src/components/Slider/Slider.d.ts +2 -2
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/TableV4/TableRowContext.d.ts +1 -1
- package/dist/src/components/TableV4/TableV4.d.ts +1 -65
- package/dist/src/components/TableV4/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +1 -1
- package/dist/src/components/TableV4/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +1 -1
- package/dist/src/components/TableV4/components/TableRowWrapper/TableRowWrapper.d.ts +1 -1
- package/dist/src/components/TableV4/index.d.ts +2 -2
- package/dist/src/components/TableV4/types.d.ts +64 -0
- package/dist/src/components/TableV4/utils/TableStoryComponents.d.ts +1 -2
- package/dist/src/components/TextField/index.d.ts +1 -1
- package/dist/src/components/Toast/index.d.ts +1 -0
- package/dist/src/components/Typography/index.d.ts +3 -1
- package/dist/src/css/sprinkles.css.d.ts +2 -2
- package/dist/src/index.d.ts +191 -2
- package/dist/src/test/utils.d.ts +2 -1
- package/dist/src/theme/index.d.ts +2 -1
- package/dist/src/theme/palette.config.d.ts +4 -4
- package/dist/src/theme/palette.d.ts +6 -0
- package/dist/src/utils/common.d.ts +12 -2
- package/dist/src/utils/types.d.ts +2 -2
- package/dist/src/vanilla/Box/Box.d.ts +1 -1
- package/package.json +13 -60
- package/postcss.config.mjs +13 -0
- package/src/components/Avatar/Avatar.style.ts +57 -0
- package/src/components/Avatar/Avatar.tokens.ts +19 -0
- package/src/components/Avatar/Avatar.tsx +38 -0
- package/src/components/Avatar/Avatar.types.ts +24 -0
- package/src/components/Avatar/AvatarStack/AvatarStack.style.ts +27 -0
- package/src/components/Avatar/AvatarStack/AvatarStack.tsx +49 -0
- package/src/components/Avatar/AvatarStack/AvatarStack.types.ts +12 -0
- package/src/components/Avatar/AvatarStack/index.ts +2 -0
- package/src/components/Avatar/AvatarStack/utils.ts +10 -0
- package/src/components/Avatar/assets/user-avatar.svg +4 -0
- package/src/components/Avatar/constants.ts +31 -0
- package/src/components/Avatar/index.ts +3 -0
- package/src/components/Box/Box.style.ts +3 -0
- package/src/components/Box/Box.test.ts +98 -0
- package/src/components/Box/Box.tsx +52 -0
- package/src/components/Box/Box.types.ts +339 -0
- package/src/components/Box/Box.utilities.ts +160 -0
- package/src/components/Box/index.ts +3 -0
- package/src/components/Breadcrumb/BackToItem/BackToItem.style.ts +15 -0
- package/src/components/Breadcrumb/BackToItem/BackToItem.tsx +28 -0
- package/src/components/Breadcrumb/BackToItem/index.ts +1 -0
- package/src/components/Breadcrumb/Breadcrumb.style.ts +18 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +79 -0
- package/src/components/Breadcrumb/Breadcrumb.types.ts +16 -0
- package/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.ts +28 -0
- package/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.tsx +33 -0
- package/src/components/Breadcrumb/BreadcrumbItem/index.ts +1 -0
- package/src/components/Breadcrumb/index.ts +3 -0
- package/src/components/Broadcast/Broadcast.style.ts +137 -0
- package/src/components/Broadcast/Broadcast.tsx +92 -0
- package/src/components/Broadcast/Broadcast.types.ts +43 -0
- package/src/components/Broadcast/index.ts +1 -0
- package/src/components/Broadcast/tests/Broadcast.test.tsx +70 -0
- package/src/components/Button/Button.style.ts +10 -0
- package/src/components/Button/Button.tokens.ts +11 -0
- package/src/components/Button/Button.tsx +72 -0
- package/src/components/Button/Button.types.ts +5 -0
- package/src/components/Button/ButtonLoader/ButtonLoader.style.ts +52 -0
- package/src/components/Button/ButtonLoader/ButtonLoader.tsx +20 -0
- package/src/components/Button/ButtonLoader/index.ts +2 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/ButtonBase/ButtonBase.style.ts +95 -0
- package/src/components/ButtonBase/ButtonBase.tsx +101 -0
- package/src/components/ButtonBase/constants.ts +37 -0
- package/src/components/ButtonBase/index.ts +2 -0
- package/src/components/Card/Card.style.ts +21 -0
- package/src/components/Card/Card.tsx +25 -0
- package/src/components/Card/index.ts +2 -0
- package/src/components/Chart/BarChart/BarChart.tsx +156 -0
- package/src/components/Chart/BarChart/components/CustomLabel/CustomLabel.tsx +35 -0
- package/src/components/Chart/BarChart/components/CustomLabel/index.ts +1 -0
- package/src/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.ts +45 -0
- package/src/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.tsx +47 -0
- package/src/components/Chart/BarChart/components/CustomTooltip/index.ts +1 -0
- package/src/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.ts +46 -0
- package/src/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.tsx +31 -0
- package/src/components/Chart/BarChart/components/CustomTooltipContent/index.ts +1 -0
- package/src/components/Chart/BarChart/index.ts +1 -0
- package/src/components/Chart/BarChart/utils.ts +69 -0
- package/src/components/Chart/DonutChart/DonutChart.tsx +50 -0
- package/src/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.ts +20 -0
- package/src/components/Chart/DonutChart/components/CustomLabel/CustomLabel.tsx +44 -0
- package/src/components/Chart/DonutChart/components/CustomLabel/index.ts +1 -0
- package/src/components/Chart/DonutChart/index.ts +1 -0
- package/src/components/Chart/LineChart/LineChart.test.ts +33 -0
- package/src/components/Chart/LineChart/LineChart.tsx +103 -0
- package/src/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.ts +41 -0
- package/src/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.tsx +32 -0
- package/src/components/Chart/LineChart/components/CustomTooltip/index.ts +1 -0
- package/src/components/Chart/LineChart/components/GradientLine/GradientLine.tsx +17 -0
- package/src/components/Chart/LineChart/components/GradientLine/index.ts +1 -0
- package/src/components/Chart/LineChart/index.ts +1 -0
- package/src/components/Chart/LineChart/mockedData.ts +43 -0
- package/src/components/Chart/LineChart/story.utils.ts +13 -0
- package/src/components/Chart/LineChart/utils.ts +33 -0
- package/src/components/Chart/Wrapper.tsx +31 -0
- package/src/components/Controls/CheckBox/CheckBox.style.ts +83 -0
- package/src/components/Controls/CheckBox/CheckBox.test.tsx +85 -0
- package/src/components/Controls/CheckBox/CheckBox.tsx +99 -0
- package/src/components/Controls/CheckBox/__snapshots__/CheckBox.stories.storyshot +2410 -0
- package/src/components/Controls/CheckBox/__snapshots__/CheckBox.test.tsx.snap +163 -0
- package/src/components/Controls/CheckBox/index.ts +2 -0
- package/src/components/Controls/ControlLabel/ControlHelpText.tsx +16 -0
- package/src/components/Controls/ControlLabel/ControlLabel.style.ts +39 -0
- package/src/components/Controls/ControlLabel/ControlLabelText.tsx +18 -0
- package/src/components/Controls/ControlLabel/index.ts +2 -0
- package/src/components/Controls/Controls.tokens.ts +11 -0
- package/src/components/Controls/Controls.types.ts +12 -0
- package/src/components/Controls/Radio/Radio.style.ts +95 -0
- package/src/components/Controls/Radio/Radio.test.tsx +62 -0
- package/src/components/Controls/Radio/Radio.tsx +73 -0
- package/src/components/Controls/Radio/__snapshots__/Radio.stories.storyshot +2659 -0
- package/src/components/Controls/Radio/__snapshots__/Radio.test.tsx.snap +122 -0
- package/src/components/Controls/Radio/components/RadioGroup/RadioGroup.tsx +42 -0
- package/src/components/Controls/Radio/components/RadioGroup/RadioGroupContext.ts +6 -0
- package/src/components/Controls/Radio/components/RadioGroup/index.ts +2 -0
- package/src/components/Controls/Radio/index.ts +2 -0
- package/src/components/Controls/Switch/Switch.style.ts +84 -0
- package/src/components/Controls/Switch/Switch.test.tsx +53 -0
- package/src/components/Controls/Switch/Switch.tsx +84 -0
- package/src/components/Controls/Switch/__snapshots__/Switch.test.tsx.snap +141 -0
- package/src/components/Controls/Switch/index.ts +2 -0
- package/src/components/Controls/index.ts +5 -0
- package/src/components/DatePicker/DatePickInput/DatePickInput.style.ts +25 -0
- package/src/components/DatePicker/DatePickInput/DatePickInput.tsx +170 -0
- package/src/components/DatePicker/DatePickInput/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.style.ts +17 -0
- package/src/components/DatePicker/DatePicker.test.tsx +319 -0
- package/src/components/DatePicker/DatePicker.tokens.ts +13 -0
- package/src/components/DatePicker/DatePicker.tsx +231 -0
- package/src/components/DatePicker/DatePicker.types.ts +57 -0
- package/src/components/DatePicker/Day/Day.style.ts +122 -0
- package/src/components/DatePicker/Day/Day.test.tsx +98 -0
- package/src/components/DatePicker/Day/Day.tsx +100 -0
- package/src/components/DatePicker/Day/__snapshots__/Day.test.tsx.snap +320 -0
- package/src/components/DatePicker/Day/index.ts +2 -0
- package/src/components/DatePicker/Month/Month.style.ts +39 -0
- package/src/components/DatePicker/Month/Month.test.tsx +96 -0
- package/src/components/DatePicker/Month/Month.tsx +154 -0
- package/src/components/DatePicker/Month/Month.utils.ts +107 -0
- package/src/components/DatePicker/Month/__snapshots__/Month.test.tsx.snap +803 -0
- package/src/components/DatePicker/Month/hooks/useMonthKeyboardNavigation.ts +84 -0
- package/src/components/DatePicker/Month/index.ts +2 -0
- package/src/components/DatePicker/OverlayComponent/OverlayComponent.style.ts +85 -0
- package/src/components/DatePicker/OverlayComponent/OverlayComponent.test.tsx +110 -0
- package/src/components/DatePicker/OverlayComponent/OverlayComponent.tsx +118 -0
- package/src/components/DatePicker/OverlayComponent/__snapshots__/OverlayComponent.test.tsx.snap +3256 -0
- package/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.ts +60 -0
- package/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.test.tsx +52 -0
- package/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.tsx +154 -0
- package/src/components/DatePicker/OverlayComponent/components/MonthWrapper/__snapshots__/MonthWrapper.test.tsx.snap +1136 -0
- package/src/components/DatePicker/OverlayComponent/index.ts +2 -0
- package/src/components/DatePicker/OverlayComponent/utils.ts +15 -0
- package/src/components/DatePicker/constants.ts +69 -0
- package/src/components/DatePicker/index.ts +4 -0
- package/src/components/DatePicker/utils.ts +47 -0
- package/src/components/Drawer/Drawer.style.ts +195 -0
- package/src/components/Drawer/Drawer.test.tsx +126 -0
- package/src/components/Drawer/Drawer.tsx +80 -0
- package/src/components/Drawer/Drawer.types.ts +20 -0
- package/src/components/Drawer/DrawerContext.tsx +103 -0
- package/src/components/Drawer/components/DrawerContent/DrawerContent.tsx +26 -0
- package/src/components/Drawer/components/DrawerContent/hooks/useDrawerContentObserver.ts +52 -0
- package/src/components/Drawer/components/DrawerContent/index.ts +1 -0
- package/src/components/Drawer/components/DrawerFooter/DrawerFooter.tsx +20 -0
- package/src/components/Drawer/components/DrawerFooter/index.ts +1 -0
- package/src/components/Drawer/components/DrawerHeader/DrawerHeader.tsx +22 -0
- package/src/components/Drawer/components/DrawerHeader/index.ts +1 -0
- package/src/components/Drawer/components/index.ts +3 -0
- package/src/components/Drawer/index.ts +5 -0
- package/src/components/DropdownButton/DropdownButton.style.ts +84 -0
- package/src/components/DropdownButton/DropdownButton.test.tsx +56 -0
- package/src/components/DropdownButton/DropdownButton.tsx +159 -0
- package/src/components/DropdownButton/index.ts +1 -0
- package/src/components/ExpandCollapse/ExpandCollapse.style.ts +9 -0
- package/src/components/ExpandCollapse/ExpandCollapse.tsx +56 -0
- package/src/components/ExpandCollapse/ExpandCollapse.types.ts +68 -0
- package/src/components/ExpandCollapse/index.ts +3 -0
- package/src/components/ExpandCollapse/useManageContentRef.ts +45 -0
- package/src/components/ExpandCollapse/utils.ts +21 -0
- package/src/components/Filter/Filter.test.tsx +217 -0
- package/src/components/Filter/Filter.tokens.ts +11 -0
- package/src/components/Filter/Filter.tsx +162 -0
- package/src/components/Filter/Filter.types.ts +77 -0
- package/src/components/Filter/StatefulFilter.tsx +37 -0
- package/src/components/Filter/components/FilterButton/FilterButton.style.ts +75 -0
- package/src/components/Filter/components/FilterButton/FilterButton.tsx +105 -0
- package/src/components/Filter/components/FilterButton/index.ts +1 -0
- package/src/components/Filter/components/FilterMenu/FilterMenu.style.ts +19 -0
- package/src/components/Filter/components/FilterMenu/FilterMenu.tsx +78 -0
- package/src/components/Filter/components/FilterMenu/components/FilterSearchField/FilterSearchField.style.ts +30 -0
- package/src/components/Filter/components/FilterMenu/components/FilterSearchField/FilterSearchField.tsx +103 -0
- package/src/components/Filter/components/FilterMenu/components/FilterSearchField/index.ts +1 -0
- package/src/components/Filter/components/FilterMenu/components/Options/Options.style.ts +37 -0
- package/src/components/Filter/components/FilterMenu/components/Options/Options.tsx +94 -0
- package/src/components/Filter/components/FilterMenu/components/Options/index.ts +1 -0
- package/src/components/Filter/components/FilterMenu/index.ts +1 -0
- package/src/components/Filter/constants.ts +39 -0
- package/src/components/Filter/hooks/index.ts +1 -0
- package/src/components/Filter/hooks/useFilterWithSelectionUtils.ts +122 -0
- package/src/components/Filter/index.ts +3 -0
- package/src/components/Icon/Icon.style.ts +52 -0
- package/src/components/Icon/Icon.tsx +64 -0
- package/src/components/Icon/Icon.types.ts +169 -0
- package/src/components/Icon/assets/audioControls/forward.svg +3 -0
- package/src/components/Icon/assets/audioControls/next.svg +3 -0
- package/src/components/Icon/assets/audioControls/pause.svg +3 -0
- package/src/components/Icon/assets/audioControls/play.svg +3 -0
- package/src/components/Icon/assets/audioControls/previous.svg +3 -0
- package/src/components/Icon/assets/audioControls/resume.svg +4 -0
- package/src/components/Icon/assets/audioControls/rewind.svg +3 -0
- package/src/components/Icon/assets/audioControls/stop.svg +3 -0
- package/src/components/Icon/assets/basicActions/check.svg +3 -0
- package/src/components/Icon/assets/basicActions/close.svg +3 -0
- package/src/components/Icon/assets/basicActions/columnChooser.svg +3 -0
- package/src/components/Icon/assets/basicActions/convert.svg +3 -0
- package/src/components/Icon/assets/basicActions/copy.svg +3 -0
- package/src/components/Icon/assets/basicActions/delete.svg +3 -0
- package/src/components/Icon/assets/basicActions/download.svg +3 -0
- package/src/components/Icon/assets/basicActions/edit.svg +3 -0
- package/src/components/Icon/assets/basicActions/login.svg +3 -0
- package/src/components/Icon/assets/basicActions/logout.svg +3 -0
- package/src/components/Icon/assets/basicActions/mediaFile.svg +3 -0
- package/src/components/Icon/assets/basicActions/minus.svg +3 -0
- package/src/components/Icon/assets/basicActions/plus.svg +3 -0
- package/src/components/Icon/assets/basicActions/redo.svg +3 -0
- package/src/components/Icon/assets/basicActions/refresh.svg +3 -0
- package/src/components/Icon/assets/basicActions/restore.svg +4 -0
- package/src/components/Icon/assets/basicActions/review.svg +3 -0
- package/src/components/Icon/assets/basicActions/search.svg +3 -0
- package/src/components/Icon/assets/basicActions/share.svg +3 -0
- package/src/components/Icon/assets/basicActions/sort.svg +4 -0
- package/src/components/Icon/assets/basicActions/sortAscending.svg +5 -0
- package/src/components/Icon/assets/basicActions/sortDescending.svg +5 -0
- package/src/components/Icon/assets/basicActions/thumbsDown.svg +3 -0
- package/src/components/Icon/assets/basicActions/thumbsUp.svg +3 -0
- package/src/components/Icon/assets/basicActions/undo.svg +3 -0
- package/src/components/Icon/assets/basicActions/update.svg +4 -0
- package/src/components/Icon/assets/basicActions/upload.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/analytics.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/dashboard.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/dataset.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/earnings.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/income.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/insight.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/invoice.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/trendingDown.svg +3 -0
- package/src/components/Icon/assets/dataAndFinance/trendingUp.svg +3 -0
- package/src/components/Icon/assets/generic/calendar.svg +3 -0
- package/src/components/Icon/assets/generic/chat.svg +3 -0
- package/src/components/Icon/assets/generic/delivery.svg +3 -0
- package/src/components/Icon/assets/generic/details.svg +3 -0
- package/src/components/Icon/assets/generic/externalLink.svg +3 -0
- package/src/components/Icon/assets/generic/file.svg +3 -0
- package/src/components/Icon/assets/generic/filter.svg +3 -0
- package/src/components/Icon/assets/generic/issue.svg +3 -0
- package/src/components/Icon/assets/generic/keyword.svg +3 -0
- package/src/components/Icon/assets/generic/language.svg +3 -0
- package/src/components/Icon/assets/generic/legal.svg +3 -0
- package/src/components/Icon/assets/generic/location.svg +3 -0
- package/src/components/Icon/assets/generic/mail.svg +3 -0
- package/src/components/Icon/assets/generic/manual.svg +3 -0
- package/src/components/Icon/assets/generic/moreOptions.svg +5 -0
- package/src/components/Icon/assets/generic/notification.svg +3 -0
- package/src/components/Icon/assets/generic/policy.svg +3 -0
- package/src/components/Icon/assets/generic/report.svg +3 -0
- package/src/components/Icon/assets/generic/search filled.svg +3 -0
- package/src/components/Icon/assets/generic/settings.svg +3 -0
- package/src/components/Icon/assets/generic/tag.svg +3 -0
- package/src/components/Icon/assets/iconSelector.ts +311 -0
- package/src/components/Icon/assets/musicBusiness/album.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/artist.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/asset.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/broadcast.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/catalog.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/channel.svg +5 -0
- package/src/components/Icon/assets/musicBusiness/cinema.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/claim.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/composition.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/concert.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/conflict.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/cueSheet.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/digital.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/distribution.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/license.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/playcount.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/publicPerformance.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/publisher.svg +4 -0
- package/src/components/Icon/assets/musicBusiness/radio.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/recordLabel.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/recording.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/television.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/usage.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/work.svg +3 -0
- package/src/components/Icon/assets/musicBusiness/writer.svg +5 -0
- package/src/components/Icon/assets/musicBusiness/youTube.svg +3 -0
- package/src/components/Icon/assets/navigation/apps.svg +3 -0
- package/src/components/Icon/assets/navigation/arrowDown.svg +3 -0
- package/src/components/Icon/assets/navigation/arrowLeft.svg +3 -0
- package/src/components/Icon/assets/navigation/arrowRight.svg +3 -0
- package/src/components/Icon/assets/navigation/arrowUp.svg +3 -0
- package/src/components/Icon/assets/navigation/chevronDown.svg +3 -0
- package/src/components/Icon/assets/navigation/chevronLeft.svg +3 -0
- package/src/components/Icon/assets/navigation/chevronRight.svg +3 -0
- package/src/components/Icon/assets/navigation/chevronUp.svg +3 -0
- package/src/components/Icon/assets/navigation/menu.svg +3 -0
- package/src/components/Icon/assets/navigation/pageFirst.svg +3 -0
- package/src/components/Icon/assets/navigation/pageLast.svg +3 -0
- package/src/components/Icon/assets/navigation/triangleDown.svg +3 -0
- package/src/components/Icon/assets/navigation/triangleLeft.svg +3 -0
- package/src/components/Icon/assets/navigation/triangleRight.svg +3 -0
- package/src/components/Icon/assets/navigation/triangleUp.svg +3 -0
- package/src/components/Icon/assets/toggledActions/audio.svg +3 -0
- package/src/components/Icon/assets/toggledActions/audioOff.svg +6 -0
- package/src/components/Icon/assets/toggledActions/bookmark.svg +3 -0
- package/src/components/Icon/assets/toggledActions/bookmarkOff.svg +3 -0
- package/src/components/Icon/assets/toggledActions/eye.svg +3 -0
- package/src/components/Icon/assets/toggledActions/eyeOff.svg +3 -0
- package/src/components/Icon/assets/toggledActions/favorite.svg +3 -0
- package/src/components/Icon/assets/toggledActions/favoriteOff.svg +3 -0
- package/src/components/Icon/assets/toggledActions/flag.svg +3 -0
- package/src/components/Icon/assets/toggledActions/flagOff.svg +3 -0
- package/src/components/Icon/assets/toggledActions/freeze.svg +3 -0
- package/src/components/Icon/assets/toggledActions/image.svg +3 -0
- package/src/components/Icon/assets/toggledActions/imageOff.svg +4 -0
- package/src/components/Icon/assets/toggledActions/link.svg +3 -0
- package/src/components/Icon/assets/toggledActions/lock.svg +3 -0
- package/src/components/Icon/assets/toggledActions/pair.svg +3 -0
- package/src/components/Icon/assets/toggledActions/unfreeze.svg +4 -0
- package/src/components/Icon/assets/toggledActions/unlink.svg +3 -0
- package/src/components/Icon/assets/toggledActions/unlock.svg +3 -0
- package/src/components/Icon/assets/toggledActions/unpair.svg +3 -0
- package/src/components/Icon/assets/toggledActions/video.svg +3 -0
- package/src/components/Icon/assets/toggledActions/videoOff.svg +4 -0
- package/src/components/Icon/assets/usersAndStatus/account.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/entities.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/error.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/help.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/informational.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/organization.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/pending.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/role.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/statusIndicator.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/success.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/unverified.svg +4 -0
- package/src/components/Icon/assets/usersAndStatus/user.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/users.svg +6 -0
- package/src/components/Icon/assets/usersAndStatus/verified.svg +3 -0
- package/src/components/Icon/assets/usersAndStatus/warning.svg +3 -0
- package/src/components/Icon/constants.ts +199 -0
- package/src/components/Icon/index.ts +5 -0
- package/src/components/IconButton/IconButton.tsx +50 -0
- package/src/components/IconButton/index.ts +2 -0
- package/src/components/InlineAlert/InlineAlert.style.ts +124 -0
- package/src/components/InlineAlert/InlineAlert.tsx +92 -0
- package/src/components/InlineAlert/InlineAlert.types.ts +48 -0
- package/src/components/InlineAlert/index.ts +2 -0
- package/src/components/InlineAlert/tests/InlineAlert.test.tsx +65 -0
- package/src/components/Label/Label.style.ts +44 -0
- package/src/components/Label/Label.tsx +36 -0
- package/src/components/Label/index.ts +2 -0
- package/src/components/Link/Link.style.ts +72 -0
- package/src/components/Link/Link.tokens.ts +11 -0
- package/src/components/Link/Link.tsx +57 -0
- package/src/components/Link/Link.types.ts +23 -0
- package/src/components/Link/constants.ts +9 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/List/List.style.ts +51 -0
- package/src/components/List/List.tokens.ts +11 -0
- package/src/components/List/List.tsx +168 -0
- package/src/components/List/ListItem.tsx +28 -0
- package/src/components/List/ListSection.tsx +22 -0
- package/src/components/List/Window.tsx +87 -0
- package/src/components/List/components/ListItemAction/ListItemAction.style.ts +10 -0
- package/src/components/List/components/ListItemAction/ListItemAction.tsx +12 -0
- package/src/components/List/components/ListItemAction/index.ts +2 -0
- package/src/components/List/components/ListItemText/ListItemText.style.ts +43 -0
- package/src/components/List/components/ListItemText/ListItemText.tsx +19 -0
- package/src/components/List/components/ListItemText/index.ts +2 -0
- package/src/components/List/components/ListItemWrapper/ListItemWrapper.style.ts +67 -0
- package/src/components/List/components/ListItemWrapper/ListItemWrapper.tsx +49 -0
- package/src/components/List/components/ListItemWrapper/README.md +1 -0
- package/src/components/List/components/ListItemWrapper/index.ts +2 -0
- package/src/components/List/index.ts +7 -0
- package/src/components/List/types.ts +13 -0
- package/src/components/List/utils.tsx +13 -0
- package/src/components/Menu/Menu.style.ts +85 -0
- package/src/components/Menu/Menu.tsx +86 -0
- package/src/components/Menu/MenuItemDivider.tsx +33 -0
- package/src/components/Menu/index.ts +4 -0
- package/src/components/Modal/Modal.style.ts +47 -0
- package/src/components/Modal/Modal.test.tsx +94 -0
- package/src/components/Modal/Modal.tsx +88 -0
- package/src/components/Modal/ModalContent/ModalContent.style.ts +49 -0
- package/src/components/Modal/ModalContent/ModalContent.tsx +78 -0
- package/src/components/Modal/ModalContent/index.ts +1 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/MultiTextFieldBase/MultiTextFieldBase.style.ts +130 -0
- package/src/components/MultiTextFieldBase/MultiTextFieldBase.tsx +186 -0
- package/src/components/MultiTextFieldBase/hooks.tsx +98 -0
- package/src/components/MultiTextFieldBase/index.ts +1 -0
- package/src/components/Navigation/Directory/Directory.style.ts +142 -0
- package/src/components/Navigation/Directory/Directory.tsx +36 -0
- package/src/components/Navigation/Directory/MenuItem/MenuItem.tsx +125 -0
- package/src/components/Navigation/Directory/index.ts +1 -0
- package/src/components/Navigation/Navigation.style.ts +23 -0
- package/src/components/Navigation/Navigation.test.tsx +53 -0
- package/src/components/Navigation/Navigation.tsx +37 -0
- package/src/components/Navigation/index.ts +3 -0
- package/src/components/Navigation/types.ts +17 -0
- package/src/components/Notification/Banner/Banner.tsx +63 -0
- package/src/components/Notification/Banner/index.tsx +2 -0
- package/src/components/Notification/InlineNotification/InlineNotification.tsx +59 -0
- package/src/components/Notification/InlineNotification/index.tsx +2 -0
- package/src/components/Notification/Notification.style.ts +78 -0
- package/src/components/Notification/Notification.test.tsx +292 -0
- package/src/components/Notification/Notification.tsx +16 -0
- package/src/components/Notification/NotificationVisual/NotificationVisual.style.tsx +23 -0
- package/src/components/Notification/NotificationVisual/NotificationVisual.tsx +58 -0
- package/src/components/Notification/NotificationVisual/index.tsx +2 -0
- package/src/components/Notification/NotificationsContainer/NotificationsContainer.style.tsx +56 -0
- package/src/components/Notification/NotificationsContainer/NotificationsContainer.tsx +31 -0
- package/src/components/Notification/NotificationsContainer/index.ts +2 -0
- package/src/components/Notification/Snackbar/Snackbar.style.ts +68 -0
- package/src/components/Notification/Snackbar/Snackbar.tsx +103 -0
- package/src/components/Notification/Snackbar/index.tsx +2 -0
- package/src/components/Notification/subcomponents/CompactNotification/CompactNotification.style.ts +62 -0
- package/src/components/Notification/subcomponents/CompactNotification/CompactNotification.tsx +127 -0
- package/src/components/Notification/subcomponents/CompactNotification/index.tsx +2 -0
- package/src/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.tsx +43 -0
- package/src/components/Notification/subcomponents/NotificationActionsArea/index.ts +1 -0
- package/src/components/NumberField/NumberField.style.ts +10 -0
- package/src/components/NumberField/NumberField.test.tsx +83 -0
- package/src/components/NumberField/NumberField.tsx +135 -0
- package/src/components/NumberField/components/Stepper/Stepper.style.ts +39 -0
- package/src/components/NumberField/components/Stepper/Stepper.tsx +51 -0
- package/src/components/NumberField/components/Stepper/index.ts +1 -0
- package/src/components/NumberField/index.ts +2 -0
- package/src/components/Pagination/Pagination.tsx +89 -0
- package/src/components/Pagination/index.ts +2 -0
- package/src/components/ProgressIndicator/ProgressIndicator.tokens.ts +11 -0
- package/src/components/ProgressIndicator/ProgressIndicator.tsx +25 -0
- package/src/components/ProgressIndicator/ProgressIndicator.types.ts +12 -0
- package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.stories.storyshot +883 -0
- package/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.style.ts +86 -0
- package/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.tsx +37 -0
- package/src/components/ProgressIndicator/components/ProgressBar/index.ts +1 -0
- package/src/components/ProgressIndicator/components/ProgressCircle/ProgressCircle.style.ts +24 -0
- package/src/components/ProgressIndicator/components/ProgressCircle/ProgressCircle.tsx +66 -0
- package/src/components/ProgressIndicator/components/ProgressCircle/index.ts +1 -0
- package/src/components/ProgressIndicator/index.ts +1 -0
- package/src/components/Search/Search.style.ts +113 -0
- package/src/components/Search/Search.test.tsx +86 -0
- package/src/components/Search/Search.tokens.ts +11 -0
- package/src/components/Search/Search.tsx +92 -0
- package/src/components/Search/Search.types.ts +32 -0
- package/src/components/Search/StatefulSearch.tsx +66 -0
- package/src/components/Search/constants.ts +10 -0
- package/src/components/Search/index.ts +3 -0
- package/src/components/Select/Select.style.ts +27 -0
- package/src/components/Select/Select.test.tsx +412 -0
- package/src/components/Select/Select.tsx +418 -0
- package/src/components/Select/StatefulSelect.tsx +36 -0
- package/src/components/Select/components/SelectMenu/SelectMenu.style.tsx +58 -0
- package/src/components/Select/components/SelectMenu/SelectMenu.tsx +121 -0
- package/src/components/Select/components/SelectMenu/index.ts +2 -0
- package/src/components/Select/constants.ts +58 -0
- package/src/components/Select/index.ts +4 -0
- package/src/components/Select/storyUtils.ts +48 -0
- package/src/components/Select/types.ts +74 -0
- package/src/components/Slider/Slider.style.tsx +23 -0
- package/src/components/Slider/Slider.tsx +208 -0
- package/src/components/Slider/components/SliderMark/SliderMark.style.tsx +74 -0
- package/src/components/Slider/components/SliderMark/SliderMark.tsx +56 -0
- package/src/components/Slider/components/SliderMark/index.ts +2 -0
- package/src/components/Slider/components/SliderThumb/SliderThumb.style.tsx +43 -0
- package/src/components/Slider/components/SliderThumb/SliderThumb.tsx +36 -0
- package/src/components/Slider/components/SliderThumb/index.ts +2 -0
- package/src/components/Slider/components/SliderTrack/SliderTrack.style.tsx +14 -0
- package/src/components/Slider/components/SliderTrack/SliderTrack.tsx +64 -0
- package/src/components/Slider/components/SliderTrack/index.ts +2 -0
- package/src/components/Slider/index.ts +2 -0
- package/src/components/TabStepper/TabStepper.tsx +44 -0
- package/src/components/TabStepper/components/TabStep/TabStep.style.ts +28 -0
- package/src/components/TabStepper/components/TabStep/TabStep.tsx +77 -0
- package/src/components/TabStepper/components/TabStep/index.ts +1 -0
- package/src/components/TabStepper/components/TabStepList/TabStepList.style.ts +127 -0
- package/src/components/TabStepper/components/TabStepList/TabStepList.tsx +19 -0
- package/src/components/TabStepper/components/TabStepList/index.ts +1 -0
- package/src/components/TabStepper/components/index.ts +2 -0
- package/src/components/TabStepper/constants.tsx +46 -0
- package/src/components/TabStepper/index.ts +3 -0
- package/src/components/TabStepper/types.ts +48 -0
- package/src/components/TabStepper/utils/TabStepperStoryComponents.tsx +7 -0
- package/src/components/Table/Table.style.ts +33 -0
- package/src/components/Table/Table.tsx +162 -0
- package/src/components/Table/components/OptimizedTableRow.tsx +121 -0
- package/src/components/Table/components/TBody/TBody.style.ts +22 -0
- package/src/components/Table/components/TBody/TBody.tsx +25 -0
- package/src/components/Table/components/TBody/index.ts +1 -0
- package/src/components/Table/components/TD/TD.style.ts +62 -0
- package/src/components/Table/components/TD/TD.tsx +64 -0
- package/src/components/Table/components/TD/index.ts +1 -0
- package/src/components/Table/components/TH/TH.style.ts +86 -0
- package/src/components/Table/components/TH/TH.tsx +120 -0
- package/src/components/Table/components/TH/components/SortingButton/SortingButton.style.ts +17 -0
- package/src/components/Table/components/TH/components/SortingButton/SortingButton.tsx +48 -0
- package/src/components/Table/components/TH/components/SortingButton/index.ts +1 -0
- package/src/components/Table/components/TH/components/THOptions/THOptions.style.ts +9 -0
- package/src/components/Table/components/TH/components/THOptions/THOptions.tsx +106 -0
- package/src/components/Table/components/TH/components/THOptions/components/SortingOption.tsx +42 -0
- package/src/components/Table/components/TH/components/THOptions/components/index.ts +1 -0
- package/src/components/Table/components/TH/components/THOptions/index.ts +1 -0
- package/src/components/Table/components/TH/components/index.ts +1 -0
- package/src/components/Table/components/TH/index.ts +1 -0
- package/src/components/Table/components/THead/THead.style.ts +41 -0
- package/src/components/Table/components/THead/THead.tsx +18 -0
- package/src/components/Table/components/THead/index.ts +1 -0
- package/src/components/Table/components/TPagination/TPagination.style.ts +68 -0
- package/src/components/Table/components/TPagination/TPagination.tsx +113 -0
- package/src/components/Table/components/TPagination/index.ts +1 -0
- package/src/components/Table/components/TR/TR.style.ts +32 -0
- package/src/components/Table/components/TR/TR.tsx +39 -0
- package/src/components/Table/components/TR/index.ts +1 -0
- package/src/components/Table/components/TTitle/TTitle.style.ts +39 -0
- package/src/components/Table/components/TTitle/TTitle.tsx +82 -0
- package/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.style.ts +9 -0
- package/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.tsx +152 -0
- package/src/components/Table/components/TTitle/components/ColumnChooser/index.ts +1 -0
- package/src/components/Table/components/TTitle/components/utils.ts +9 -0
- package/src/components/Table/components/TTitle/index.ts +1 -0
- package/src/components/Table/components/index.ts +7 -0
- package/src/components/Table/constants.tsx +350 -0
- package/src/components/Table/hooks/index.ts +1 -0
- package/src/components/Table/hooks/useTable.tsx +242 -0
- package/src/components/Table/index.ts +7 -0
- package/src/components/Table/types.ts +151 -0
- package/src/components/Table/utils/TableStoryComponents.tsx +21 -0
- package/src/components/TableV4/TableRowContext.ts +37 -0
- package/src/components/TableV4/TableV4.style.ts +41 -0
- package/src/components/TableV4/TableV4.test.tsx +233 -0
- package/src/components/TableV4/TableV4.tsx +294 -0
- package/src/components/TableV4/components/ExtendedColumnItem/ExtendedColumnItem.style.tsx +21 -0
- package/src/components/TableV4/components/ExtendedColumnItem/ExtendedColumnItem.tsx +101 -0
- package/src/components/TableV4/components/ExtendedColumnItem/index.ts +2 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.ts +33 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/RenderRowOrNestedRow.tsx +178 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.ts +13 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.tsx +71 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/components/ContentCell/index.ts +1 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.tsx +69 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.ts +1 -0
- package/src/components/TableV4/components/RenderRowOrNestedRow/index.ts +1 -0
- package/src/components/TableV4/components/TableCell/TableCell.style.tsx +27 -0
- package/src/components/TableV4/components/TableCell/TableCell.tsx +90 -0
- package/src/components/TableV4/components/TableCell/index.ts +2 -0
- package/src/components/TableV4/components/TableCell/utils.tsx +27 -0
- package/src/components/TableV4/components/TableRow/TableRow.tsx +48 -0
- package/src/components/TableV4/components/TableRow/index.ts +2 -0
- package/src/components/TableV4/components/TableRowWrapper/TableRowWrapper.tsx +75 -0
- package/src/components/TableV4/components/TableRowWrapper/index.ts +2 -0
- package/src/components/TableV4/index.ts +3 -0
- package/src/components/TableV4/types.ts +93 -0
- package/src/components/TableV4/utils/TableStoryComponents.tsx +12 -0
- package/src/components/TableV4/utils/index.ts +1 -0
- package/src/components/TableV4/utils/utils.ts +12 -0
- package/src/components/Tabs/Tabs.style.ts +27 -0
- package/src/components/Tabs/Tabs.test.tsx +80 -0
- package/src/components/Tabs/Tabs.tsx +54 -0
- package/src/components/Tabs/components/Tab/Tab.style.ts +13 -0
- package/src/components/Tabs/components/Tab/Tab.tsx +19 -0
- package/src/components/Tabs/components/Tab/index.ts +1 -0
- package/src/components/Tabs/components/TabList/TabList.style.ts +86 -0
- package/src/components/Tabs/components/TabList/TabList.tsx +19 -0
- package/src/components/Tabs/components/TabList/index.ts +1 -0
- package/src/components/Tabs/components/TabPanel/TabPanel.tsx +18 -0
- package/src/components/Tabs/components/TabPanel/index.ts +1 -0
- package/src/components/Tabs/components/TabsContainer/TabsContainer.style.ts +12 -0
- package/src/components/Tabs/components/TabsContainer/TabsContainer.tsx +25 -0
- package/src/components/Tabs/components/TabsContainer/index.ts +1 -0
- package/src/components/Tabs/components/index.ts +4 -0
- package/src/components/Tabs/constants.tsx +54 -0
- package/src/components/Tabs/index.ts +3 -0
- package/src/components/Tabs/types.ts +74 -0
- package/src/components/Tabs/utils/TabsStoryComponents.tsx +7 -0
- package/src/components/Tag/Tag.style.ts +105 -0
- package/src/components/Tag/Tag.test.tsx +95 -0
- package/src/components/Tag/Tag.tokens.ts +11 -0
- package/src/components/Tag/Tag.tsx +51 -0
- package/src/components/Tag/Tag.types.ts +26 -0
- package/src/components/Tag/__snapshots__/Tag.stories.storyshot +2293 -0
- package/src/components/Tag/constants.ts +36 -0
- package/src/components/Tag/hooks/useGetTagUtils.tsx +96 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/TextArea/TextArea.style.ts +56 -0
- package/src/components/TextArea/TextArea.tsx +118 -0
- package/src/components/TextArea/index.ts +2 -0
- package/src/components/TextField/TextField.style.ts +32 -0
- package/src/components/TextField/TextField.test.tsx +146 -0
- package/src/components/TextField/TextField.tsx +156 -0
- package/src/components/TextField/components/commons.tsx +13 -0
- package/src/components/TextField/index.ts +2 -0
- package/src/components/TextInputBase/TextInputBase.style.ts +225 -0
- package/src/components/TextInputBase/TextInputBase.tokens.ts +11 -0
- package/src/components/TextInputBase/TextInputBase.tsx +96 -0
- package/src/components/TextInputBase/index.ts +2 -0
- package/src/components/ThemeProvider/Test.tsx +14 -0
- package/src/components/ThemeProvider/ThemeProvider.style.ts +61 -0
- package/src/components/ThemeProvider/ThemeProvider.test.tsx +46 -0
- package/src/components/ThemeProvider/ThemeProvider.tsx +48 -0
- package/src/components/ThemeProvider/index.ts +2 -0
- package/src/components/Toast/Toast.style.ts +127 -0
- package/src/components/Toast/Toast.test.tsx +110 -0
- package/src/components/Toast/Toast.tsx +170 -0
- package/src/components/Toast/Toast.types.ts +51 -0
- package/src/components/Toast/index.ts +2 -0
- package/src/components/ToastV4/ToastV4.style.ts +103 -0
- package/src/components/ToastV4/ToastV4.test.tsx +67 -0
- package/src/components/ToastV4/ToastV4.tsx +126 -0
- package/src/components/ToastV4/index.tsx +2 -0
- package/src/components/Tooltip/Tooltip.style.ts +50 -0
- package/src/components/Tooltip/Tooltip.tsx +49 -0
- package/src/components/Tooltip/Tooltip.types.ts +34 -0
- package/src/components/Tooltip/index.ts +3 -0
- package/src/components/Tooltip/utils.ts +11 -0
- package/src/components/TopAppBar/TopAppBar.style.ts +55 -0
- package/src/components/TopAppBar/TopAppBar.test.tsx +60 -0
- package/src/components/TopAppBar/TopAppBar.tsx +48 -0
- package/src/components/TopAppBar/TopAppBar.types.ts +26 -0
- package/src/components/TopAppBar/__snapshots__/TopAppBar.test.tsx.snap +845 -0
- package/src/components/TopAppBar/components/Logo/Logo.style.ts +29 -0
- package/src/components/TopAppBar/components/Logo/Logo.wrapper.tsx +20 -0
- package/src/components/TopAppBar/components/Logo/index.ts +2 -0
- package/src/components/TopAppBar/components/Search/Search.style.ts +71 -0
- package/src/components/TopAppBar/components/Search/Search.tsx +55 -0
- package/src/components/TopAppBar/components/Search/index.ts +2 -0
- package/src/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.ts +13 -0
- package/src/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.tsx +21 -0
- package/src/components/TopAppBar/components/SidebarMenuIcon/index.ts +2 -0
- package/src/components/TopAppBar/components/UserMenu/UserMenu.style.ts +12 -0
- package/src/components/TopAppBar/components/UserMenu/UserMenu.tsx +59 -0
- package/src/components/TopAppBar/components/UserMenu/index.ts +2 -0
- package/src/components/TopAppBar/components/index.ts +6 -0
- package/src/components/TopAppBar/index.ts +3 -0
- package/src/components/TruncatedContent/TruncatedContent.style.tsx +7 -0
- package/src/components/TruncatedContent/TruncatedContent.test.tsx +58 -0
- package/src/components/TruncatedContent/TruncatedContent.tsx +75 -0
- package/src/components/TruncatedContent/index.ts +2 -0
- package/src/components/Typography/Typography.config.styles.ts +87 -0
- package/src/components/Typography/Typography.style.ts +78 -0
- package/src/components/Typography/Typography.tsx +103 -0
- package/src/components/Typography/index.ts +4 -0
- package/src/components/Typography/utils.ts +13 -0
- package/src/components/utils/ClickAwayListener/ClickAwayListener.tsx +45 -0
- package/src/components/utils/ClickAwayListener/index.tsx +1 -0
- package/src/components/utils/DropdownOptions/index.tsx +33 -0
- package/src/components/utils/Overlay/Overlay.tsx +196 -0
- package/src/components/utils/Overlay/index.ts +1 -0
- package/src/components/utils/PositionInScreen/PositionInScreen.tsx +58 -0
- package/src/components/utils/PositionInScreen/hooks.ts +151 -0
- package/src/components/utils/PositionInScreen/index.tsx +1 -0
- package/src/components/utils/Slots.tsx +109 -0
- package/src/components/utils/handleSearch.ts +36 -0
- package/src/components/utils/tests/Slots.test.tsx +94 -0
- package/src/components/utils/useDOMRef.ts +49 -0
- package/src/css/atoms.ts +5 -0
- package/src/css/global.css.ts +174 -0
- package/src/css/index.ts +3 -0
- package/src/css/layerStyle.css.ts +18 -0
- package/src/css/layers.css.ts +16 -0
- package/src/css/sprinkles.css.ts +300 -0
- package/src/css/tokens.ts +145 -0
- package/src/css/vars.css.ts +158 -0
- package/src/hooks/__tests__/useSearchQueryParams.test.ts +29 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/storyUtils/DemoUseSearchQueryParams.tsx +30 -0
- package/src/hooks/useBreakpoints.test.ts +39 -0
- package/src/hooks/useBreakpoints.tsx +47 -0
- package/src/hooks/useCheck.ts +25 -0
- package/src/hooks/useCombinedRefs.ts +23 -0
- package/src/hooks/useElementSize.ts +47 -0
- package/src/hooks/useEscape.ts +18 -0
- package/src/hooks/useEventListener.ts +43 -0
- package/src/hooks/useFieldUtils.tsx +59 -0
- package/src/hooks/useIsoMorphicLayoutEffect.ts +5 -0
- package/src/hooks/useKeyboardEvents.ts +78 -0
- package/src/hooks/useLoading.ts +29 -0
- package/src/hooks/useLocationToGetCurrentMenuItem.ts +30 -0
- package/src/hooks/useOverlayStack.ts +92 -0
- package/src/hooks/usePagination.ts +62 -0
- package/src/hooks/useSearchQueryParams.ts +16 -0
- package/src/hooks/useTheme.ts +7 -0
- package/src/hooks/useThemeSwitch.tsx +32 -0
- package/src/hooks/useToggle.ts +16 -0
- package/src/hooks/useTypeColorToColorMatch.tsx +103 -0
- package/src/index.ts +290 -0
- package/src/test/index.ts +1 -0
- package/src/test/setup.ts +51 -0
- package/src/test/utils.tsx +26 -0
- package/src/theme/dimension/borderRadius.ts +16 -0
- package/src/theme/dimension/borderWidth.ts +16 -0
- package/src/theme/dimension/index.ts +19 -0
- package/src/theme/dimension/minHeight.ts +16 -0
- package/src/theme/dimension/opacity.ts +16 -0
- package/src/theme/dimension/sizing.ts +16 -0
- package/src/theme/dimension/spacing.ts +16 -0
- package/src/theme/dimension/state.ts +16 -0
- package/src/theme/dimension/variables/borderRadius.ts +29 -0
- package/src/theme/dimension/variables/borderWidth.ts +24 -0
- package/src/theme/dimension/variables/minHeight.ts +21 -0
- package/src/theme/dimension/variables/opacity.ts +19 -0
- package/src/theme/dimension/variables/sizing.ts +31 -0
- package/src/theme/dimension/variables/spacing.ts +44 -0
- package/src/theme/dimension/variables/state.ts +26 -0
- package/src/theme/emotion.d.ts +7 -0
- package/src/theme/functions.ts +77 -0
- package/src/theme/globals/borderRadius.ts +14 -0
- package/src/theme/globals/borderWidth.ts +14 -0
- package/src/theme/globals/colors.ts +15 -0
- package/src/theme/globals/constants/README.md +3 -0
- package/src/theme/globals/constants/borderRadius.ts +44 -0
- package/src/theme/globals/constants/borderWidth.ts +18 -0
- package/src/theme/globals/constants/colors.ts +296 -0
- package/src/theme/globals/constants/fontFamily.ts +13 -0
- package/src/theme/globals/constants/fontSize.ts +45 -0
- package/src/theme/globals/constants/fontWeight.ts +19 -0
- package/src/theme/globals/constants/letterSpacing.ts +20 -0
- package/src/theme/globals/constants/lineHeight.ts +49 -0
- package/src/theme/globals/constants/opacity.ts +30 -0
- package/src/theme/globals/constants/sizing.ts +96 -0
- package/src/theme/globals/constants/spacing.ts +56 -0
- package/src/theme/globals/constants/textCase.ts +12 -0
- package/src/theme/globals/constants/textDecoration.ts +13 -0
- package/src/theme/globals/elevation.ts +15 -0
- package/src/theme/globals/index.ts +23 -0
- package/src/theme/globals/oldColors.ts +6 -0
- package/src/theme/globals/opacity.ts +14 -0
- package/src/theme/globals/sizing.ts +14 -0
- package/src/theme/globals/spacing.ts +14 -0
- package/src/theme/globals/typography.ts +111 -0
- package/src/theme/index.ts +46 -0
- package/src/theme/overrides.ts +5 -0
- package/src/theme/palette.config.ts +135 -0
- package/src/theme/palette.ts +191 -0
- package/src/theme/states/disabled.ts +27 -0
- package/src/theme/states/focus.ts +36 -0
- package/src/theme/states/hover.ts +32 -0
- package/src/theme/states/index.ts +6 -0
- package/src/theme/states/pressed.ts +32 -0
- package/src/theme/states/statesConfig.ts +102 -0
- package/src/theme/states/tests/states.test.ts +124 -0
- package/src/theme/states/utils.ts +27 -0
- package/src/theme/tests/const.js +21 -0
- package/src/theme/tests/utils.test.ts +50 -0
- package/src/theme/tokens/components/variables/avatar.ts +104 -0
- package/src/theme/tokens/components/variables/button.ts +28 -0
- package/src/theme/tokens/components/variables/controls.ts +20 -0
- package/src/theme/tokens/components/variables/datePicker.ts +19 -0
- package/src/theme/tokens/components/variables/field.ts +94 -0
- package/src/theme/tokens/components/variables/filter.ts +9 -0
- package/src/theme/tokens/components/variables/link.ts +59 -0
- package/src/theme/tokens/components/variables/listItem.ts +14 -0
- package/src/theme/tokens/components/variables/progressIndicator.ts +16 -0
- package/src/theme/tokens/components/variables/search.ts +11 -0
- package/src/theme/tokens/components/variables/tag.ts +18 -0
- package/src/theme/tokens/index.ts +7 -0
- package/src/theme/tokens/semantic/boxShadow.ts +14 -0
- package/src/theme/tokens/semantic/colors.ts +15 -0
- package/src/theme/tokens/semantic/disabledState.ts +13 -0
- package/src/theme/tokens/semantic/index.ts +15 -0
- package/src/theme/tokens/semantic/state.ts +13 -0
- package/src/theme/tokens/semantic/tests/constants.ts +23 -0
- package/src/theme/tokens/semantic/tests/utils.test.ts +27 -0
- package/src/theme/tokens/semantic/typography.ts +28 -0
- package/src/theme/tokens/semantic/variables/README.md +3 -0
- package/src/theme/tokens/semantic/variables/boxShadow.ts +72 -0
- package/src/theme/tokens/semantic/variables/colors.ts +309 -0
- package/src/theme/tokens/semantic/variables/disabledState.ts +8 -0
- package/src/theme/tokens/semantic/variables/state.ts +25 -0
- package/src/theme/tokens/semantic/variables/typography.ts +382 -0
- package/src/theme/tokens/utils/components.ts +32 -0
- package/src/theme/tokens/utils/index.ts +4 -0
- package/src/theme/tokens/utils/parsers.ts +122 -0
- package/src/theme/tokens/utils/semantic.ts +23 -0
- package/src/theme/tokens/utils/types.ts +55 -0
- package/src/theme/types.ts +87 -0
- package/src/theme/utils.ts +161 -0
- package/src/tokens/borderRadius.ts +12 -0
- package/src/tokens/borderWidth.ts +5 -0
- package/src/tokens/color.ts +82 -0
- package/src/tokens/fontFamily.ts +4 -0
- package/src/tokens/fontSize.ts +12 -0
- package/src/tokens/fontWeight.ts +5 -0
- package/src/tokens/letterSpacing.ts +6 -0
- package/src/tokens/lineHeight.ts +13 -0
- package/src/tokens/sizing.ts +27 -0
- package/src/tokens/spacing.ts +17 -0
- package/src/types.d.ts +21 -0
- package/src/utils/common.ts +142 -0
- package/src/utils/date.ts +20 -0
- package/src/utils/errors.ts +13 -0
- package/src/utils/helpers.ts +51 -0
- package/src/utils/storyshots.ts +37 -0
- package/src/utils/tests/helpers.test.ts +21 -0
- package/src/utils/tests/themeFunctions.test.ts +63 -0
- package/src/utils/themeFunctions.ts +106 -0
- package/src/utils/types.ts +12 -0
- package/src/vanilla/Box/Box.tsx +44 -0
- package/src/vanilla/Box/index.ts +1 -0
- package/src/vanilla/ThemeProvider/ThemeProvider.tsx +89 -0
- package/src/vanilla/ThemeProvider/index.ts +1 -0
- package/src/vanilla/index.ts +2 -0
- package/src/vite-env.d.ts +5 -0
- package/tsconfig.codemods.json +4 -0
- package/tsconfig.json +36 -0
- package/tsconfig.node.json +15 -0
- package/vite.codemods.config.ts +40 -0
- package/vite.config.ts +100 -0
- package/vite.vars.config.ts +22 -0
- package/README.md +0 -95
- package/dist/codemods/assets/header.png +0 -0
- package/dist/codemods/assets/header.svg +0 -417
- package/dist/src/components/Avatar/Avatar.stories.d.ts +0 -60
- package/dist/src/components/Avatar/AvatarStack.stories.d.ts +0 -19
- package/dist/src/components/Box/Box.stories.d.ts +0 -26
- package/dist/src/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -31
- package/dist/src/components/Broadcast/Broadcast.stories.d.ts +0 -15
- package/dist/src/components/Button/Button.stories.d.ts +0 -101
- package/dist/src/components/Card/Card.stories.d.ts +0 -23
- package/dist/src/components/Chart/Chart.stories.d.ts +0 -55
- package/dist/src/components/Controls/CheckBox/CheckBox.stories.d.ts +0 -98
- package/dist/src/components/Controls/Radio/Radio.stories.d.ts +0 -88
- package/dist/src/components/Controls/Switch/Switch.stories.d.ts +0 -89
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +0 -137
- package/dist/src/components/DatePicker/play-utils.d.ts +0 -3
- package/dist/src/components/Drawer/Drawer.stories.d.ts +0 -96
- package/dist/src/components/Drawer/components/DrawerContent/DrawerContent.stories.d.ts +0 -18
- package/dist/src/components/Drawer/components/DrawerFooter/DrawerFooter.stories.d.ts +0 -18
- package/dist/src/components/Drawer/components/DrawerHeader/DrawerHeader.stories.d.ts +0 -18
- package/dist/src/components/DropdownButton/DropdownButton.stories.d.ts +0 -32
- package/dist/src/components/ExpandCollapse/ExpandCollapse.stories.d.ts +0 -14
- package/dist/src/components/Filter/Filter.stories.d.ts +0 -119
- package/dist/src/components/Icon/Icon.stories.d.ts +0 -52
- package/dist/src/components/IconButton/IconButton.stories.d.ts +0 -40
- package/dist/src/components/InlineAlert/InlineAlert.stories.d.ts +0 -15
- package/dist/src/components/Link/Link.stories.d.ts +0 -81
- package/dist/src/components/List/stories/List.stories.d.ts +0 -35
- package/dist/src/components/List/stories/ListItem.stories.d.ts +0 -23
- package/dist/src/components/List/stories/ListItemAction.stories.d.ts +0 -18
- package/dist/src/components/List/stories/ListItemText.stories.d.ts +0 -23
- package/dist/src/components/List/stories/ListSection.stories.d.ts +0 -23
- package/dist/src/components/Menu/Menu.stories.d.ts +0 -59
- package/dist/src/components/Modal/Modal.stories.d.ts +0 -63
- package/dist/src/components/Navigation/Navigation.stories.d.ts +0 -23
- package/dist/src/components/Notification/Notification.stories.d.ts +0 -101
- package/dist/src/components/NumberField/NumberField.stories.d.ts +0 -112
- package/dist/src/components/Pagination/Pagination.stories.d.ts +0 -33
- package/dist/src/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -89
- package/dist/src/components/Search/Search.stories.d.ts +0 -60
- package/dist/src/components/Select/Select.stories.d.ts +0 -128
- package/dist/src/components/Slider/Slider.stories.d.ts +0 -41
- package/dist/src/components/TabStepper/TabStepper.stories.d.ts +0 -21
- package/dist/src/components/TabStepper/components/TabStep/TabStep.stories.d.ts +0 -17
- package/dist/src/components/TabStepper/components/TabStepList/TabStepList.stories.d.ts +0 -16
- package/dist/src/components/Table/components/TBody/TBody.stories.d.ts +0 -16
- package/dist/src/components/Table/components/TD/TD.stories.d.ts +0 -22
- package/dist/src/components/Table/components/TH/TH.stories.d.ts +0 -25
- package/dist/src/components/Table/components/THead/THead.stories.d.ts +0 -13
- package/dist/src/components/Table/components/TR/TR.stories.d.ts +0 -13
- package/dist/src/components/Table/components/TTitle/TTitle.stories.d.ts +0 -16
- package/dist/src/components/Table/docs/Basics/Basics.stories.d.ts +0 -14
- package/dist/src/components/Table/docs/Columns/Columns.stories.d.ts +0 -62
- package/dist/src/components/Table/docs/Header/Header.stories.d.ts +0 -22
- package/dist/src/components/Table/docs/Pagination/Pagination.stories.d.ts +0 -29
- package/dist/src/components/Table/docs/RowsAndCells/RowsAndCells.stories.d.ts +0 -73
- package/dist/src/components/Table/docs/Showcase/Showcase.stories.d.ts +0 -92
- package/dist/src/components/Table/hooks/useTable.stories.d.ts +0 -13
- package/dist/src/components/TableV4/TableV4.stories.d.ts +0 -47
- package/dist/src/components/Tabs/Tabs.stories.d.ts +0 -71
- package/dist/src/components/Tabs/components/Tab/Tab.stories.d.ts +0 -13
- package/dist/src/components/Tabs/components/TabList/TabList.stories.d.ts +0 -16
- package/dist/src/components/Tabs/components/TabPanel/TabPanel.stories.d.ts +0 -13
- package/dist/src/components/Tabs/components/TabsContainer/TabsContainer.stories.d.ts +0 -19
- package/dist/src/components/Tag/Tag.stories.d.ts +0 -83
- package/dist/src/components/TextArea/TextArea.stories.d.ts +0 -76
- package/dist/src/components/TextField/TextField.stories.d.ts +0 -98
- package/dist/src/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -14
- package/dist/src/components/Toast/Toast.stories.d.ts +0 -27
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +0 -75
- package/dist/src/components/TopAppBar/TopAppBar.stories.d.ts +0 -52
- package/dist/src/components/TruncatedContent/TruncatedContent.stories.d.ts +0 -18
- package/dist/src/components/Typography/Typography.stories.d.ts +0 -39
- package/dist/src/components/storyUtils/BarChartShowCase/BarChartShowCase.d.ts +0 -5
- package/dist/src/components/storyUtils/BarChartShowCase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/BreadcrumbShowcase/BreadcrumbShowcase.d.ts +0 -7
- package/dist/src/components/storyUtils/BreadcrumbShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/Breakpoints/Breakpoints.d.ts +0 -2
- package/dist/src/components/storyUtils/Breakpoints/index.d.ts +0 -1
- package/dist/src/components/storyUtils/ButtonShowcases/ButtonShowcase.d.ts +0 -7
- package/dist/src/components/storyUtils/ButtonShowcases/LoadingButtonShowcase.d.ts +0 -3
- package/dist/src/components/storyUtils/ButtonShowcases/index.d.ts +0 -2
- package/dist/src/components/storyUtils/CardShowcase/CardShowcase.d.ts +0 -10
- package/dist/src/components/storyUtils/CardShowcase/CardShowcase.style.d.ts +0 -3
- package/dist/src/components/storyUtils/CardShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/ColorUtility/ColorBox.d.ts +0 -9
- package/dist/src/components/storyUtils/ColorUtility/ColorUtility.d.ts +0 -4
- package/dist/src/components/storyUtils/ColorUtility/ColorUtility.style.d.ts +0 -4
- package/dist/src/components/storyUtils/ColorUtility/RangeInput.d.ts +0 -7
- package/dist/src/components/storyUtils/ColorUtility/useColors.d.ts +0 -16
- package/dist/src/components/storyUtils/ColorUtility/utils.d.ts +0 -2
- package/dist/src/components/storyUtils/DonutChartShowCase/DonutChartShowCase.d.ts +0 -7
- package/dist/src/components/storyUtils/DonutChartShowCase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/EdgeCasesSelectShowcase.d.ts +0 -3
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/EdgeCasesSelectShowcase.style.d.ts +0 -2
- package/dist/src/components/storyUtils/EdgeCasesSelectShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/IconographyShowcase/IconographyShowcase.d.ts +0 -3
- package/dist/src/components/storyUtils/IconographyShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/LabelConfigStoryComponents.d.ts +0 -4
- package/dist/src/components/storyUtils/ModalShowcase/ModalShowcase.d.ts +0 -7
- package/dist/src/components/storyUtils/ModalShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/NavigationShowcase/MenuItems.d.ts +0 -2
- package/dist/src/components/storyUtils/NavigationShowcase/NavigationShowcase.d.ts +0 -6
- package/dist/src/components/storyUtils/NavigationShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/NotificationShowcase/NotificationShowcase.d.ts +0 -11
- package/dist/src/components/storyUtils/NotificationShowcase/index.d.ts +0 -2
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.d.ts +0 -2
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.style.d.ts +0 -17
- package/dist/src/components/storyUtils/PaletteShowcase/PaletteShowcase.test.d.ts +0 -1
- package/dist/src/components/storyUtils/PaletteShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/PresentComponent/PresentComponent.d.ts +0 -8
- package/dist/src/components/storyUtils/PresentComponent/index.d.ts +0 -1
- package/dist/src/components/storyUtils/SelectShowcase/MultiSelectShowcase.d.ts +0 -8
- package/dist/src/components/storyUtils/SelectShowcase/MultiSelectShowcase.style.d.ts +0 -4
- package/dist/src/components/storyUtils/SelectShowcase/SelectShowcase.d.ts +0 -10
- package/dist/src/components/storyUtils/SelectShowcase/index.d.ts +0 -2
- package/dist/src/components/storyUtils/SliderShowcase/SliderShowcase.d.ts +0 -11
- package/dist/src/components/storyUtils/SliderShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/Stack/Stack.d.ts +0 -9
- package/dist/src/components/storyUtils/Stack/index.d.ts +0 -1
- package/dist/src/components/storyUtils/TableFilterShowcase/TableFilterShowcase.d.ts +0 -3
- package/dist/src/components/storyUtils/TableFilterShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/TextFieldShowcases/MultiTextFieldShowcase.d.ts +0 -6
- package/dist/src/components/storyUtils/TextFieldShowcases/TextFieldShowCase.d.ts +0 -7
- package/dist/src/components/storyUtils/TextFieldShowcases/index.d.ts +0 -2
- package/dist/src/components/storyUtils/ThemeWrapper/ThemeWrapper.d.ts +0 -3
- package/dist/src/components/storyUtils/ThemeWrapper/index.d.ts +0 -1
- package/dist/src/components/storyUtils/TooltipShowcase/TooltipShowcase.d.ts +0 -5
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/TooltipContent.d.ts +0 -6
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/TooltipContent.style.d.ts +0 -4
- package/dist/src/components/storyUtils/TooltipShowcase/components/TooltipContent/index.d.ts +0 -1
- package/dist/src/components/storyUtils/TooltipShowcase/index.d.ts +0 -1
- package/dist/src/components/storyUtils/TopAppBarShowcase.d.ts +0 -19
- package/dist/src/components/storyUtils/componentsForTypes.d.ts +0 -11
- package/dist/src/hooks/useSearchQueryParams.stories.d.ts +0 -23
- package/dist/src/storybook/Alert/Alert.d.ts +0 -12
- package/dist/src/storybook/Alert/index.d.ts +0 -1
- package/dist/src/storybook/Link/Link.d.ts +0 -7
- package/dist/src/storybook/Link/Link.style.d.ts +0 -3
- package/dist/src/storybook/Link/index.d.ts +0 -2
- package/dist/src/storybook/Note/Note.d.ts +0 -3
- package/dist/src/storybook/Note/Note.style.d.ts +0 -3
- package/dist/src/storybook/Note/index.d.ts +0 -1
- package/dist/src/storybook/Overview/Overview.d.ts +0 -5
- package/dist/src/storybook/Overview/Overview.style.d.ts +0 -2
- package/dist/src/storybook/Overview/index.d.ts +0 -1
- package/dist/src/storybook/Preview/Preview.d.ts +0 -6
- package/dist/src/storybook/Preview/Preview.style.d.ts +0 -2
- package/dist/src/storybook/Preview/index.d.ts +0 -2
- package/dist/src/storybook/SectionHeader/SectionHeader.d.ts +0 -11
- package/dist/src/storybook/SectionHeader/SectionHeader.style.d.ts +0 -5
- package/dist/src/storybook/SectionHeader/index.d.ts +0 -2
- package/dist/src/storybook/Showcases/BorderWidthShowcase/BorderWidthShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/BorderWidthShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/BoxShadowShowcase/BoxShadowShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/BoxShadowShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/LayoutShowcase/LayoutShowcase.d.ts +0 -12
- package/dist/src/storybook/Showcases/LayoutShowcase/LayoutShowcase.style.d.ts +0 -12
- package/dist/src/storybook/Showcases/LayoutShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/MinHeightShowcase/MinHeightShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/MinHeightShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/OpacityShowcase/OpacityShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/OpacityShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/OverviewShowcase/OverviewShowcase.d.ts +0 -9
- package/dist/src/storybook/Showcases/OverviewShowcase/OverviewShowcase.style.d.ts +0 -2
- package/dist/src/storybook/Showcases/OverviewShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/RadiusShowcase/RadiusShowcase.d.ts +0 -5
- package/dist/src/storybook/Showcases/RadiusShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/SizingShowcase/SizingShowcase.d.ts +0 -5
- package/dist/src/storybook/Showcases/SizingShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/SpacingSizingShowcase.d.ts +0 -5
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/SpacingSizingShowcase.style.d.ts +0 -0
- package/dist/src/storybook/Showcases/SpacingSizingShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/StateShowcase/StateShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/StateShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/TagShowcase/TagShowcase.d.ts +0 -8
- package/dist/src/storybook/Showcases/TagShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/TextColorShowcase/TextColorShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/TextColorShowcase/TextColorShowcase.style.d.ts +0 -4
- package/dist/src/storybook/Showcases/TextColorShowcase/index.d.ts +0 -1
- package/dist/src/storybook/Showcases/TokenColorsShowcase/TokenColorsShowcase.d.ts +0 -9
- package/dist/src/storybook/Showcases/TokenColorsShowcase/TokenColorsShowcase.style.d.ts +0 -6
- package/dist/src/storybook/Showcases/TokenColorsShowcase/index.d.ts +0 -2
- package/dist/src/storybook/Showcases/TokenColorsShowcase/utils.d.ts +0 -17
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/TypographyTokensShowcase.d.ts +0 -2
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/TypographyTokensShowcase.style.d.ts +0 -3
- package/dist/src/storybook/Showcases/TypographyTokensShowcase/index.d.ts +0 -1
- package/dist/src/storybook/SubsectionHeader/SubsectionHeader.d.ts +0 -8
- package/dist/src/storybook/SubsectionHeader/SubsectionHeader.style.d.ts +0 -2
- package/dist/src/storybook/SubsectionHeader/index.d.ts +0 -1
- package/dist/src/storybook/Tip/Tip.d.ts +0 -6
- package/dist/src/storybook/Tip/Tip.style.d.ts +0 -4
- package/dist/src/storybook/Tip/index.d.ts +0 -2
- package/dist/src/storybook/Typography/Typography.d.ts +0 -8
- package/dist/src/storybook/Typography/Typography.style.d.ts +0 -3
- package/dist/src/storybook/Typography/constants.d.ts +0 -4
- package/dist/src/storybook/Typography/index.d.ts +0 -2
- package/dist/src/storybook/UsageGuidelines/UsageGuidelines.d.ts +0 -6
- package/dist/src/storybook/UsageGuidelines/UsageGuidelines.style.d.ts +0 -3
- package/dist/src/storybook/UsageGuidelines/index.d.ts +0 -1
- package/dist/src/storybook/index.d.ts +0 -8
- package/dist/src/storybook/styles/OverviewCard.style.d.ts +0 -3
- package/dist/src/storybook.test.d.ts +0 -1
- package/dist/src/vanilla/Box/Box.stories.d.ts +0 -6
- package/dist/src/vanilla/ThemeProvider/ThemeProvider.stories.d.ts +0 -6
- /package/dist/{ictinus.css → styles.css} +0 -0
- /package/{dist/src/components/storyUtils/ColorUtility/index.d.ts → src/components/DatePicker/OverlayComponent/components/MonthWrapper/index.ts} +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"eslint:recommended",
|
|
4
|
+
"prettier",
|
|
5
|
+
"plugin:@typescript-eslint/recommended",
|
|
6
|
+
"plugin:react-hooks/recommended",
|
|
7
|
+
"plugin:react/recommended",
|
|
8
|
+
"plugin:import/typescript"
|
|
9
|
+
],
|
|
10
|
+
"plugins": ["react", "@emotion", "@typescript-eslint", "import", "unused-imports"],
|
|
11
|
+
"env": {
|
|
12
|
+
"node": true,
|
|
13
|
+
"browser": true,
|
|
14
|
+
"jasmine": true,
|
|
15
|
+
"jest": true,
|
|
16
|
+
"es6": true
|
|
17
|
+
},
|
|
18
|
+
"rules": {
|
|
19
|
+
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
|
|
20
|
+
"unused-imports/no-unused-imports": "error",
|
|
21
|
+
"unused-imports/no-unused-vars": [
|
|
22
|
+
"warn",
|
|
23
|
+
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
|
|
24
|
+
],
|
|
25
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
26
|
+
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
|
|
27
|
+
/* React rules */
|
|
28
|
+
"react/no-direct-mutation-state": "error",
|
|
29
|
+
"react/no-unused-prop-types": "warn",
|
|
30
|
+
"react/self-closing-comp": [
|
|
31
|
+
"warn",
|
|
32
|
+
{
|
|
33
|
+
"component": true,
|
|
34
|
+
"html": true
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"react/prop-types": "off",
|
|
38
|
+
"react/button-has-type": "warn",
|
|
39
|
+
|
|
40
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
41
|
+
"react/no-array-index-key": "warn",
|
|
42
|
+
"react/no-render-return-value": 0,
|
|
43
|
+
/* JSX rules */
|
|
44
|
+
"react/jsx-key": "error",
|
|
45
|
+
"react/jsx-curly-brace-presence": ["error", "never"],
|
|
46
|
+
// Since we are using React 17+ we no longer need these
|
|
47
|
+
"react/jsx-uses-react": "off",
|
|
48
|
+
"react/react-in-jsx-scope": "off",
|
|
49
|
+
"react/no-children-prop": "off",
|
|
50
|
+
|
|
51
|
+
"react-hooks/rules-of-hooks": "error",
|
|
52
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
53
|
+
/* eslint basic rules */
|
|
54
|
+
"padding-line-between-statements": [
|
|
55
|
+
"error",
|
|
56
|
+
{
|
|
57
|
+
"blankLine": "always",
|
|
58
|
+
"prev": "function",
|
|
59
|
+
"next": "*"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"blankLine": "always",
|
|
63
|
+
"prev": "*",
|
|
64
|
+
"next": "function"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"blankLine": "always",
|
|
68
|
+
"prev": "*",
|
|
69
|
+
"next": "return"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
// Disable this in favour of @typescript-eslint/no-unused-expressions
|
|
73
|
+
// so that function calls with optional chaining do not throw warnings
|
|
74
|
+
// https://github.com/facebook/create-react-app/issues/8107#issuecomment-565365982
|
|
75
|
+
// "no-unused-expressions": "warn",
|
|
76
|
+
"no-debugger": "warn",
|
|
77
|
+
"no-console": "warn",
|
|
78
|
+
/* Typescript rules */
|
|
79
|
+
"@typescript-eslint/naming-convention": [
|
|
80
|
+
"warn",
|
|
81
|
+
{
|
|
82
|
+
"selector": ["variable", "parameter", "property"],
|
|
83
|
+
"types": ["boolean"],
|
|
84
|
+
"format": ["PascalCase"], // As per documentation, prefix is trimmed before checking for format , so we need pascal case for values like `isBoolean` https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md#format-options
|
|
85
|
+
"prefix": ["is", "has"]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"@typescript-eslint/no-unused-expressions": "warn",
|
|
89
|
+
"@typescript-eslint/no-unused-vars": [
|
|
90
|
+
"warn",
|
|
91
|
+
{
|
|
92
|
+
"args": "all",
|
|
93
|
+
"argsIgnorePattern": "^__",
|
|
94
|
+
"varsIgnorePattern": "^__|React"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"@typescript-eslint/ban-ts-ignore": 0,
|
|
98
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
99
|
+
"@typescript-eslint/camelcase": 0,
|
|
100
|
+
"@typescript-eslint/prefer-interface": 0,
|
|
101
|
+
"@typescript-eslint/no-inferrable-types": 0,
|
|
102
|
+
"@typescript-eslint/explicit-member-accessibility": 0,
|
|
103
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
104
|
+
"@typescript-eslint/ban-ts-comment": "warn"
|
|
105
|
+
},
|
|
106
|
+
"settings": {
|
|
107
|
+
"react": {
|
|
108
|
+
"pragma": "React",
|
|
109
|
+
"version": "detect"
|
|
110
|
+
},
|
|
111
|
+
"import/resolver": {
|
|
112
|
+
"typescript": {
|
|
113
|
+
"project": "./tsconfig.json"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"parser": "@typescript-eslint/parser",
|
|
118
|
+
"ignorePatterns": ["rollup.config.js"],
|
|
119
|
+
"parserOptions": {
|
|
120
|
+
"ecmaFeatures": {
|
|
121
|
+
"jsx": true
|
|
122
|
+
},
|
|
123
|
+
"ecmaVersion": 2022,
|
|
124
|
+
"sourceType": "module",
|
|
125
|
+
"project": ["./tsconfig.json", "./tsconfig.node.json"]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
|
|
2
|
+
> @orfium/ictinus@5.39.4 build /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
3
|
+
> pnpm build:main && pnpm build:vars && pnpm build:codemods
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @orfium/ictinus@5.39.4 build:main /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
7
|
+
> vite build
|
|
8
|
+
|
|
9
|
+
production /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
10
|
+
[36mvite v7.1.3 [32mbuilding for production...[36m[39m
|
|
11
|
+
production /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
12
|
+
transforming...
|
|
13
|
+
[32m✓[39m 1127 modules transformed.
|
|
14
|
+
rendering chunks...
|
|
15
|
+
|
|
16
|
+
[vite:dts] Start generate declaration files...
|
|
17
|
+
computing gzip size...
|
|
18
|
+
[2mdist/[22m[35mstyles.css [39m[1m[2m161.60 kB[22m[1m[22m[2m │ gzip: 18.15 kB[22m
|
|
19
|
+
[2mdist/[22m[36mvanilla/index.js [39m[1m[2m104.37 kB[22m[1m[22m[2m │ gzip: 15.40 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m887.47 kB[39m[22m[2m │ gzip: 217.68 kB[22m
|
|
21
|
+
[vite:dts] Declaration files built in 12366ms.
|
|
22
|
+
|
|
23
|
+
[2mdist/[22m[35mstyles.css [39m[1m[2m161.60 kB[22m[1m[22m[2m │ gzip: 18.15 kB[22m
|
|
24
|
+
[2mdist/[22m[36mvanilla/index.cjs [39m[1m[2m 90.85 kB[22m[1m[22m[2m │ gzip: 15.03 kB[22m
|
|
25
|
+
[2mdist/[22m[36mindex.cjs [39m[1m[33m701.13 kB[39m[22m[2m │ gzip: 199.71 kB[22m
|
|
26
|
+
[32m✓ built in 18.19s[39m
|
|
27
|
+
|
|
28
|
+
> @orfium/ictinus@5.39.4 build:vars /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
29
|
+
> vite build --config vite.vars.config.ts
|
|
30
|
+
|
|
31
|
+
[36mvite v7.1.3 [32mbuilding for production...[36m[39m
|
|
32
|
+
transforming...
|
|
33
|
+
[32m✓[39m 3 modules transformed.
|
|
34
|
+
rendering chunks...
|
|
35
|
+
computing gzip size...
|
|
36
|
+
[2mdist/vars/[22m[35mvars.css [39m[1m[2m14.57 kB[22m[1m[22m[2m │ gzip: 2.11 kB[22m
|
|
37
|
+
[2mdist/vars/[22m[36mvars.js [39m[1m[2m 9.41 kB[22m[1m[22m[2m │ gzip: 1.41 kB[22m
|
|
38
|
+
[32m✓ built in 399ms[39m
|
|
39
|
+
|
|
40
|
+
> @orfium/ictinus@5.39.4 build:codemods /home/runner/work/orfium-ictinus/orfium-ictinus/packages/ictinus
|
|
41
|
+
> vite build --config vite.codemods.config.ts
|
|
42
|
+
|
|
43
|
+
[36mvite v7.1.3 [32mbuilding for production...[36m[39m
|
|
44
|
+
transforming...
|
|
45
|
+
[32m✓[39m 23 modules transformed.
|
|
46
|
+
rendering chunks...
|
|
47
|
+
|
|
48
|
+
[vite:dts] Start generate declaration files...
|
|
49
|
+
computing gzip size...
|
|
50
|
+
[2mdist/codemods/[22m[36miconCodemod.cjs [39m[1m[2m0.25 kB[22m[1m[22m[2m │ gzip: 0.20 kB[22m
|
|
51
|
+
[2mdist/codemods/[22m[36mnotificationsCodemod.cjs [39m[1m[2m0.26 kB[22m[1m[22m[2m │ gzip: 0.21 kB[22m
|
|
52
|
+
[2mdist/codemods/[22m[36mradioCodemod.cjs [39m[1m[2m0.28 kB[22m[1m[22m[2m │ gzip: 0.23 kB[22m
|
|
53
|
+
[2mdist/codemods/[22m[36mradioGroupCodemod.cjs [39m[1m[2m0.28 kB[22m[1m[22m[2m │ gzip: 0.23 kB[22m
|
|
54
|
+
[2mdist/codemods/[22m[36mtableCodemod.cjs [39m[1m[2m0.40 kB[22m[1m[22m[2m │ gzip: 0.25 kB[22m
|
|
55
|
+
[2mdist/codemods/[22m[36mfilterCodemod.cjs [39m[1m[2m0.42 kB[22m[1m[22m[2m │ gzip: 0.27 kB[22m
|
|
56
|
+
[2mdist/codemods/[22m[36mtooltipCodemod.cjs [39m[1m[2m0.47 kB[22m[1m[22m[2m │ gzip: 0.29 kB[22m
|
|
57
|
+
[2mdist/codemods/[22m[36mswitchCodemod.cjs [39m[1m[2m0.48 kB[22m[1m[22m[2m │ gzip: 0.31 kB[22m
|
|
58
|
+
[2mdist/codemods/[22m[36mcheckboxCodemod.cjs [39m[1m[2m0.49 kB[22m[1m[22m[2m │ gzip: 0.33 kB[22m
|
|
59
|
+
[2mdist/codemods/[22m[36msearchCodemod.cjs [39m[1m[2m0.49 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
|
|
60
|
+
[2mdist/codemods/[22m[36mmenuCodemod.cjs [39m[1m[2m0.59 kB[22m[1m[22m[2m │ gzip: 0.37 kB[22m
|
|
61
|
+
[2mdist/codemods/[22m[36mavatarCodemod.cjs [39m[1m[2m0.60 kB[22m[1m[22m[2m │ gzip: 0.33 kB[22m
|
|
62
|
+
[2mdist/codemods/[22m[36mchipCodemode.cjs [39m[1m[2m0.61 kB[22m[1m[22m[2m │ gzip: 0.33 kB[22m
|
|
63
|
+
[2mdist/codemods/[22m[36mloaderCodemod.cjs [39m[1m[2m0.68 kB[22m[1m[22m[2m │ gzip: 0.37 kB[22m
|
|
64
|
+
[2mdist/codemods/[22m[36mpaginationCodemod.cjs [39m[1m[2m0.68 kB[22m[1m[22m[2m │ gzip: 0.35 kB[22m
|
|
65
|
+
[2mdist/codemods/[22m[36mtextareaCodemod.cjs [39m[1m[2m0.73 kB[22m[1m[22m[2m │ gzip: 0.43 kB[22m
|
|
66
|
+
[2mdist/codemods/[22m[36mtextfieldCodemod.cjs [39m[1m[2m0.77 kB[22m[1m[22m[2m │ gzip: 0.44 kB[22m
|
|
67
|
+
[2mdist/codemods/[22m[36miconButtonCodemod.cjs [39m[1m[2m0.98 kB[22m[1m[22m[2m │ gzip: 0.41 kB[22m
|
|
68
|
+
[2mdist/codemods/[22m[36mbuttonCodemod.cjs [39m[1m[2m0.98 kB[22m[1m[22m[2m │ gzip: 0.41 kB[22m
|
|
69
|
+
[2mdist/codemods/[22m[36mselectCodemod.cjs [39m[1m[2m1.02 kB[22m[1m[22m[2m │ gzip: 0.57 kB[22m
|
|
70
|
+
[2mdist/codemods/[22m[36mdrawerCodemod.cjs [39m[1m[2m1.07 kB[22m[1m[22m[2m │ gzip: 0.42 kB[22m
|
|
71
|
+
[2mdist/codemods/[22m[36munchangedIconsCodemod.cjs [39m[1m[2m1.12 kB[22m[1m[22m[2m │ gzip: 0.56 kB[22m
|
|
72
|
+
[2mdist/codemods/[22m[36mglobalsCodemod.cjs [39m[1m[2m7.12 kB[22m[1m[22m[2m │ gzip: 1.12 kB[22m
|
|
73
|
+
[vite:dts] Declaration files built in 975ms.
|
|
74
|
+
|
|
75
|
+
[32m✓ built in 1.15s[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
// Find all Avatar components
|
|
8
|
+
root.findJSXElements('Avatar').forEach((path) => {
|
|
9
|
+
j(path)
|
|
10
|
+
.find(j.JSXAttribute)
|
|
11
|
+
.forEach((attrPath) => {
|
|
12
|
+
const attr = attrPath.node.name;
|
|
13
|
+
|
|
14
|
+
// If the attribute is size, update it
|
|
15
|
+
if (attr.name === 'size') {
|
|
16
|
+
const sizeValue = attrPath.node.value.value;
|
|
17
|
+
switch (sizeValue) {
|
|
18
|
+
case 'xs':
|
|
19
|
+
attrPath.node.value.value = '1';
|
|
20
|
+
break;
|
|
21
|
+
case 'sm':
|
|
22
|
+
case 'md':
|
|
23
|
+
attrPath.node.value.value = '2';
|
|
24
|
+
break;
|
|
25
|
+
case 'lg':
|
|
26
|
+
attrPath.node.value.value = '4';
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// If the attribute is color, update it
|
|
32
|
+
if (attr.name === 'color') {
|
|
33
|
+
const colorValue = attrPath.node.value.value;
|
|
34
|
+
attrPath.node.value.value = colorValue.split('-')[0];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Update color property
|
|
38
|
+
const colorValue = attrPath.node.value.value;
|
|
39
|
+
if (!['blue', 'teal', 'purple', 'red', 'orange'].includes(colorValue)) {
|
|
40
|
+
attrPath.node.value.value = 'blue';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// If the attribute is iconName, update it
|
|
44
|
+
if (attr.name === 'iconName') {
|
|
45
|
+
attr.name = 'src';
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
return root.toSource();
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default transform;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
// Find all Button components
|
|
8
|
+
root.findJSXElements('Button').forEach((path) => {
|
|
9
|
+
j(path)
|
|
10
|
+
.find(j.JSXAttribute)
|
|
11
|
+
.forEach((attrPath) => {
|
|
12
|
+
const attr = attrPath.node.name;
|
|
13
|
+
|
|
14
|
+
// If the attribute is one of the deprecated ones, remove it
|
|
15
|
+
if (['color', 'transparent', 'filled'].includes(attr.name)) {
|
|
16
|
+
j(attrPath).remove();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// If the attribute is one of the ones that changed, update it
|
|
20
|
+
if (attr.name === 'size') {
|
|
21
|
+
const sizeValue = attrPath.node.value.value;
|
|
22
|
+
if (sizeValue === 'sm' && attrPath.node.value.type === 'StringLiteral') {
|
|
23
|
+
attrPath.node.value.value = 'compact';
|
|
24
|
+
} else if (
|
|
25
|
+
attrPath.node.value.type === 'JSXExpressionContainer' &&
|
|
26
|
+
attrPath.node.value.expression.value === 'sm'
|
|
27
|
+
) {
|
|
28
|
+
attrPath.node.value.expression.value = 'compact';
|
|
29
|
+
} else if (attrPath.node.value.type === 'StringLiteral') {
|
|
30
|
+
attrPath.node.value.value = 'normal';
|
|
31
|
+
} else if (attrPath.node.value.type === 'JSXExpressionContainer') {
|
|
32
|
+
attrPath.node.value.expression.value = 'normal';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (attr.name === 'type') {
|
|
36
|
+
const sizeValue = attrPath.node.value.value;
|
|
37
|
+
if (sizeValue === 'link' && attrPath.node.value.type === 'Literal') {
|
|
38
|
+
attrPath.node.value.value = 'tertiary';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (attr.name === 'loading') attr.name = 'isLoading';
|
|
42
|
+
if (attr.name === 'disabled') attr.name = 'isDisabled';
|
|
43
|
+
if (attr.name === 'buttonType') attr.name = 'htmlType';
|
|
44
|
+
if (attr.name === 'iconLeft') attr.name = 'iconLeftName';
|
|
45
|
+
if (attr.name === 'iconRight') attr.name = 'iconRightName';
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return root.toSource();
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default transform;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
root.findJSXElements('CheckBox').forEach((path) => {
|
|
8
|
+
j(path)
|
|
9
|
+
.find(j.JSXAttribute)
|
|
10
|
+
.forEach((attrPath) => {
|
|
11
|
+
const attr = attrPath.node.name;
|
|
12
|
+
|
|
13
|
+
// Remove 'filled' attribute
|
|
14
|
+
if (attr.name === 'filled') {
|
|
15
|
+
j(attrPath).remove();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Replace 'label' with 'labelConfig'
|
|
19
|
+
if (attr.name === 'label') {
|
|
20
|
+
attr.name = 'labelConfig';
|
|
21
|
+
attrPath.node.value = j.jsxExpressionContainer(
|
|
22
|
+
j.objectExpression([
|
|
23
|
+
j.property(
|
|
24
|
+
'init',
|
|
25
|
+
j.identifier('helpText'),
|
|
26
|
+
attrPath.node.value.expression || j.stringLiteral('')
|
|
27
|
+
),
|
|
28
|
+
])
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Rename 'checked' to 'isSelected'
|
|
33
|
+
if (attr.name === 'checked') {
|
|
34
|
+
attr.name = 'isSelected';
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
return root.toSource({ quote: 'single' });
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default transform;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
root
|
|
8
|
+
.find(j.ImportDeclaration)
|
|
9
|
+
.filter((path) => path.node.source.value === '@orfium/ictinus')
|
|
10
|
+
.forEach((path) => {
|
|
11
|
+
path.node.specifiers.forEach((specifier) => {
|
|
12
|
+
if (specifier.imported && specifier.imported.name === 'Chip') {
|
|
13
|
+
specifier.imported.name = 'Tag';
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
root.find(j.JSXElement).forEach((path) => {
|
|
19
|
+
const openingElement = path.node.openingElement;
|
|
20
|
+
const closingElement = path.node.closingElement;
|
|
21
|
+
|
|
22
|
+
if (openingElement.name.name === 'Chip') {
|
|
23
|
+
openingElement.name.name = 'Tag';
|
|
24
|
+
|
|
25
|
+
if (closingElement && closingElement.name) {
|
|
26
|
+
closingElement.name.name = 'Tag';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Rename 'fill' attribute to 'color'
|
|
30
|
+
openingElement.attributes.forEach((attribute) => {
|
|
31
|
+
if (attribute.name && attribute.name.name === 'fill') {
|
|
32
|
+
const colorValue = attribute.value.value;
|
|
33
|
+
if (colorValue === 'neutralWhite') {
|
|
34
|
+
attribute.value.value = 'neutral';
|
|
35
|
+
}
|
|
36
|
+
attribute.name.name = 'color';
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
return root.toSource({ quote: 'single' });
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default transform;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
// Update import declarations from '@orfium/ictinus'
|
|
8
|
+
root
|
|
9
|
+
.find(j.ImportDeclaration)
|
|
10
|
+
.filter((path) => path.node.source.value.includes('@orfium/ictinus'))
|
|
11
|
+
.forEach((path) => {
|
|
12
|
+
path.node.specifiers.forEach((specifier) => {
|
|
13
|
+
if (specifier.imported && specifier.imported.name === 'MenuItem') {
|
|
14
|
+
specifier.imported.name = 'NavigationMenuItem';
|
|
15
|
+
}
|
|
16
|
+
if (specifier.local && specifier.local.name === 'MenuItem') {
|
|
17
|
+
specifier.local.name = 'NavigationMenuItem';
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Update function return types and other usages of MenuItem
|
|
23
|
+
root.find(j.Identifier, { name: 'MenuItem' }).forEach((path) => {
|
|
24
|
+
// Ensure the change is only made for identifiers related to '@orfium/ictinus' import
|
|
25
|
+
const parentPath = path.parentPath;
|
|
26
|
+
if (
|
|
27
|
+
parentPath &&
|
|
28
|
+
parentPath.node.type === 'ImportSpecifier' &&
|
|
29
|
+
parentPath.parentPath.node.source.value.includes('@orfium/ictinus')
|
|
30
|
+
) {
|
|
31
|
+
path.node.name = 'NavigationMenuItem';
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// Rename Drawer to Navigation in import declarations
|
|
36
|
+
root
|
|
37
|
+
.find(j.ImportDeclaration)
|
|
38
|
+
.filter((path) => path.node.source.value === '@orfium/ictinus')
|
|
39
|
+
.forEach((path) => {
|
|
40
|
+
path.node.specifiers.forEach((specifier) => {
|
|
41
|
+
if (specifier.imported && specifier.imported.name === 'Drawer') {
|
|
42
|
+
specifier.imported.name = 'Navigation';
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Update Drawer to Navigation in JSX and rename expanded to isExpanded
|
|
48
|
+
root.find(j.JSXElement).forEach((path) => {
|
|
49
|
+
const openingElement = path.node.openingElement;
|
|
50
|
+
const closingElement = path.node.closingElement;
|
|
51
|
+
|
|
52
|
+
// Check for Drawer in opening element
|
|
53
|
+
if (openingElement.name.name === 'Drawer') {
|
|
54
|
+
openingElement.name.name = 'Navigation';
|
|
55
|
+
|
|
56
|
+
// Update closing element if it exists
|
|
57
|
+
if (closingElement && closingElement.name) {
|
|
58
|
+
closingElement.name.name = 'Navigation';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Rename 'expanded' attribute to 'isExpanded'
|
|
62
|
+
openingElement.attributes.forEach((attribute) => {
|
|
63
|
+
if (attribute.name && attribute.name.name === 'expanded') {
|
|
64
|
+
attribute.name.name = 'isExpanded';
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
return root.toSource({ quote: 'single' });
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default transform;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Transform } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
const transform: Transform = (file, api) => {
|
|
4
|
+
const j = api.jscodeshift;
|
|
5
|
+
const root = j(file.source);
|
|
6
|
+
|
|
7
|
+
// Find all Button components
|
|
8
|
+
root.findJSXElements('Filter').forEach((path) => {
|
|
9
|
+
j(path)
|
|
10
|
+
.find(j.JSXAttribute)
|
|
11
|
+
.forEach((attrPath) => {
|
|
12
|
+
const attr = attrPath.node.name;
|
|
13
|
+
|
|
14
|
+
if (['styleType'].includes(attr.name)) {
|
|
15
|
+
j(attrPath).remove();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// If the attribute is one of the ones that changed, update it
|
|
19
|
+
if (attr.name === 'multi') attr.name = 'isMulti';
|
|
20
|
+
if (attr.name === 'disabled') attr.name = 'isDisabled';
|
|
21
|
+
if (attr.name === 'selectedItem') attr.name = 'selectedFilter';
|
|
22
|
+
if (attr.name === 'onSelect') attr.name = 'onChange';
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return root.toSource();
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default transform;
|
|
@@ -0,0 +1,145 @@
|
|
|
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':
|
|
19
|
+
"props.theme.globals.typography.fontWeight.get('regular')",
|
|
20
|
+
'props.theme.typography.weights.medium':
|
|
21
|
+
"props.theme.globals.typography.fontWeight.get('medium')",
|
|
22
|
+
'props.theme.typography.weights.bold': "props.theme.globals.typography.fontWeight.get('bold')",
|
|
23
|
+
"theme.typography.fontSizes['10']": "theme.globals.typography.fontSize.get('1')",
|
|
24
|
+
"theme.typography.fontSizes['11']": "theme.globals.typography.fontSize.get('1')",
|
|
25
|
+
"theme.typography.fontSizes['12']": "theme.globals.typography.fontSize.get('2')",
|
|
26
|
+
"theme.typography.fontSizes['13']": "theme.globals.typography.fontSize.get('3')",
|
|
27
|
+
"theme.typography.fontSizes['14']": "theme.globals.typography.fontSize.get('3')",
|
|
28
|
+
"theme.typography.fontSizes['15']": "theme.globals.typography.fontSize.get('4')",
|
|
29
|
+
"theme.typography.fontSizes['16']": "theme.globals.typography.fontSize.get('4')",
|
|
30
|
+
"theme.typography.fontSizes['20']": "theme.globals.typography.fontSize.get('7')",
|
|
31
|
+
"theme.typography.fontSizes['22']": "theme.globals.typography.fontSize.get('7')",
|
|
32
|
+
"theme.typography.fontSizes['24']": "theme.globals.typography.fontSize.get('8')",
|
|
33
|
+
"theme.typography.fontSizes['28']": "theme.globals.typography.fontSize.get('9')",
|
|
34
|
+
"theme.typography.fontSizes['32']": "theme.globals.typography.fontSize.get('10')",
|
|
35
|
+
'theme.typography.fontSizes[10]': "theme.globals.typography.fontSize.get('1')",
|
|
36
|
+
'theme.typography.fontSizes[11]': "theme.globals.typography.fontSize.get('1')",
|
|
37
|
+
'theme.typography.fontSizes[12]': "theme.globals.typography.fontSize.get('2')",
|
|
38
|
+
'theme.typography.fontSizes[13]': "theme.globals.typography.fontSize.get('3')",
|
|
39
|
+
'theme.typography.fontSizes[14]': "theme.globals.typography.fontSize.get('3')",
|
|
40
|
+
'theme.typography.fontSizes[15]': "theme.globals.typography.fontSize.get('4')",
|
|
41
|
+
'theme.typography.fontSizes[16]': "theme.globals.typography.fontSize.get('4')",
|
|
42
|
+
'theme.typography.fontSizes[20]': "theme.globals.typography.fontSize.get('7')",
|
|
43
|
+
'theme.typography.fontSizes[22]': "theme.globals.typography.fontSize.get('7')",
|
|
44
|
+
'theme.typography.fontSizes[24]': "theme.globals.typography.fontSize.get('8')",
|
|
45
|
+
'theme.typography.fontSizes[28]': "theme.globals.typography.fontSize.get('9')",
|
|
46
|
+
'theme.typography.fontSizes[32]': "theme.globals.typography.fontSize.get('10')",
|
|
47
|
+
|
|
48
|
+
"props.theme.typography.fontSizes['10']": "props.theme.globals.typography.fontSize.get('1')",
|
|
49
|
+
"props.theme.typography.fontSizes['11']": "props.theme.globals.typography.fontSize.get('1')",
|
|
50
|
+
"props.theme.typography.fontSizes['12']": "props.theme.globals.typography.fontSize.get('2')",
|
|
51
|
+
"props.theme.typography.fontSizes['13']": "props.theme.globals.typography.fontSize.get('3')",
|
|
52
|
+
"props.theme.typography.fontSizes['14']": "props.theme.globals.typography.fontSize.get('3')",
|
|
53
|
+
"props.theme.typography.fontSizes['15']": "props.theme.globals.typography.fontSize.get('4')",
|
|
54
|
+
"props.theme.typography.fontSizes['16']": "props.theme.globals.typography.fontSize.get('4')",
|
|
55
|
+
"props.theme.typography.fontSizes['20']": "props.theme.globals.typography.fontSize.get('7')",
|
|
56
|
+
"props.theme.typography.fontSizes['22']": "props.theme.globals.typography.fontSize.get('7')",
|
|
57
|
+
"props.theme.typography.fontSizes['24']": "props.theme.globals.typography.fontSize.get('8')",
|
|
58
|
+
"props.theme.typography.fontSizes['28']": "props.theme.globals.typography.fontSize.get('9')",
|
|
59
|
+
"props.theme.typography.fontSizes['32']": "props.theme.globals.typography.fontSize.get('10')",
|
|
60
|
+
'props.theme.typography.fontSizes[10]': "props.theme.globals.typography.fontSize.get('1')",
|
|
61
|
+
'props.theme.typography.fontSizes[11]': "props.theme.globals.typography.fontSize.get('1')",
|
|
62
|
+
'props.theme.typography.fontSizes[12]': "props.theme.globals.typography.fontSize.get('2')",
|
|
63
|
+
'props.theme.typography.fontSizes[13]': "props.theme.globals.typography.fontSize.get('3')",
|
|
64
|
+
'props.theme.typography.fontSizes[14]': "props.theme.globals.typography.fontSize.get('3')",
|
|
65
|
+
'props.theme.typography.fontSizes[15]': "props.theme.globals.typography.fontSize.get('4')",
|
|
66
|
+
'props.theme.typography.fontSizes[16]': "props.theme.globals.typography.fontSize.get('4')",
|
|
67
|
+
'props.theme.typography.fontSizes[20]': "props.theme.globals.typography.fontSize.get('7')",
|
|
68
|
+
'props.theme.typography.fontSizes[22]': "props.theme.globals.typography.fontSize.get('7')",
|
|
69
|
+
'props.theme.typography.fontSizes[24]': "props.theme.globals.typography.fontSize.get('8')",
|
|
70
|
+
'props.theme.typography.fontSizes[28]': "props.theme.globals.typography.fontSize.get('9')",
|
|
71
|
+
'props.theme.typography.fontSizes[32]': "props.theme.globals.typography.fontSize.get('10')",
|
|
72
|
+
|
|
73
|
+
"theme.elevation['01']": "theme.globals.elevation['01']",
|
|
74
|
+
"theme.elevation['02']": "theme.globals.elevation['02']",
|
|
75
|
+
"theme.elevation['03']": "theme.globals.elevation['03']",
|
|
76
|
+
"props.theme.elevation['01']": "props.theme.globals.elevation['01']",
|
|
77
|
+
"props.theme.elevation['02']": "props.theme.globals.elevation['02']",
|
|
78
|
+
"props.theme.elevation['03']": "props.theme.globals.elevation['03']",
|
|
79
|
+
|
|
80
|
+
'theme.palette.white': 'theme.globals.oldColors.white',
|
|
81
|
+
'theme.palette.black': 'theme.globals.oldColors.black',
|
|
82
|
+
"theme.palette['white']": "theme.globals.oldColors['white']",
|
|
83
|
+
"theme.palette['black']": "theme.globals.oldColors['black']",
|
|
84
|
+
'theme.palette.primary[400]': 'theme.globals.oldColors.primary[400]',
|
|
85
|
+
'props.theme.palette.white': 'props.theme.globals.oldColors.white',
|
|
86
|
+
'props.theme.palette.black': 'props.theme.globals.oldColors.black',
|
|
87
|
+
"props.theme.palette['white']": "props.theme.globals.oldColors['white']",
|
|
88
|
+
"props.theme.palette['black']": "props.theme.globals.oldColors['black']",
|
|
89
|
+
'props.theme.palette.primary[400]': 'props.theme.globals.oldColors.primary[400]',
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Function to create a replacement expression from a string
|
|
93
|
+
const createReplacementExpression = (replacement) => {
|
|
94
|
+
const parts = replacement.split('.');
|
|
95
|
+
let expression = j.identifier(parts[0]);
|
|
96
|
+
|
|
97
|
+
for (let i = 1; i < parts.length; i++) {
|
|
98
|
+
const part = parts[i];
|
|
99
|
+
if (part.includes('(')) {
|
|
100
|
+
// Handle method calls like get('9')
|
|
101
|
+
const methodName = part.substring(0, part.indexOf('('));
|
|
102
|
+
const methodArgsStr = part.substring(part.indexOf('(') + 1, part.lastIndexOf(')'));
|
|
103
|
+
const args = methodArgsStr.split(',').map((arg) => {
|
|
104
|
+
// Remove the surrounding quotes
|
|
105
|
+
const trimmedArg = arg.trim().replace(/^['"]|['"]$/g, '');
|
|
106
|
+
|
|
107
|
+
return j.literal(trimmedArg);
|
|
108
|
+
});
|
|
109
|
+
expression = j.callExpression(
|
|
110
|
+
j.memberExpression(expression, j.identifier(methodName)),
|
|
111
|
+
args
|
|
112
|
+
);
|
|
113
|
+
} else {
|
|
114
|
+
expression = j.memberExpression(expression, j.identifier(part));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return expression;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// Replace member expressions
|
|
122
|
+
root.find(j.MemberExpression).forEach((path) => {
|
|
123
|
+
let sourceCode = j(path).toSource();
|
|
124
|
+
|
|
125
|
+
// Special handling for numeric index
|
|
126
|
+
if (path.node.property.type === 'Literal' && !isNaN(path.node.property.value)) {
|
|
127
|
+
sourceCode = `${j(path.node.object).toSource()}[${path.node.property.value}]`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (spacingReplaceMap[sourceCode]) {
|
|
131
|
+
const newExpression = createReplacementExpression(spacingReplaceMap[sourceCode]);
|
|
132
|
+
j(path).replaceWith(newExpression);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// Replace import paths
|
|
137
|
+
root.find(j.ImportDeclaration).forEach((path) => {
|
|
138
|
+
if (path.node.source.value.startsWith('@orfium/ictinus/')) {
|
|
139
|
+
path.node.source.value = '@orfium/ictinus';
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
return root.toSource();
|
|
144
|
+
};
|
|
145
|
+
export default transform;
|