@juspay/blend-design-system 0.0.37-beta.4 → 0.0.37-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AccordionV2/accordionV2.dark.tokens.d.ts +1 -1
- package/dist/components/AccordionV2/accordionV2.light.tokens.d.ts +1 -1
- package/dist/components/AccordionV2/accordionV2.tokens.d.ts +2 -67
- package/dist/components/AccordionV2/accordionV2.tokens.types.d.ts +67 -0
- package/dist/components/AlertV2/alertV2.dark.tokens.d.ts +1 -1
- package/dist/components/AlertV2/alertV2.light.tokens.d.ts +1 -1
- package/dist/components/AlertV2/alertV2.tokens.d.ts +2 -84
- package/dist/components/AlertV2/alertV2.tokens.types.d.ts +84 -0
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/AvatarGroup/types.d.ts +1 -1
- package/dist/components/AvatarV2/avatarV2.dark.tokens.d.ts +1 -1
- package/dist/components/AvatarV2/avatarV2.light.tokens.d.ts +1 -1
- package/dist/components/AvatarV2/avatarV2.tokens.d.ts +2 -67
- package/dist/components/AvatarV2/avatarV2.tokens.types.d.ts +67 -0
- package/dist/components/Badge/badge.dark.tokens.d.ts +1 -1
- package/dist/components/Badge/badge.light.tokens.d.ts +1 -1
- package/dist/components/Badge/badge.tokens.d.ts +2 -52
- package/dist/components/Badge/badge.tokens.types.d.ts +52 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -5
- package/dist/components/Breadcrumb/types.d.ts +7 -1
- package/dist/components/BreadcrumbV2/BreadcrumbV2.d.ts +13 -1
- package/dist/components/BreadcrumbV2/breadcrumbV2.dark.tokens.d.ts +1 -1
- package/dist/components/BreadcrumbV2/breadcrumbV2.light.tokens.d.ts +1 -1
- package/dist/components/BreadcrumbV2/breadcrumbV2.tokens.d.ts +2 -28
- package/dist/components/BreadcrumbV2/breadcrumbV2.tokens.types.d.ts +28 -0
- package/dist/components/BreadcrumbV2/breadcrumbV2.types.d.ts +0 -11
- package/dist/components/ButtonGroup/types.d.ts +1 -1
- package/dist/components/ButtonV2/buttonV2.dark.tokens.d.ts +1 -1
- package/dist/components/ButtonV2/buttonV2.light.tokens.d.ts +1 -1
- package/dist/components/ButtonV2/buttonV2.tokens.d.ts +2 -64
- package/dist/components/ButtonV2/buttonV2.tokens.types.d.ts +64 -0
- package/dist/components/Card/types.d.ts +1 -1
- package/dist/components/Charts/ChartUtils.d.ts +2 -0
- package/dist/components/Charts/types.d.ts +4 -4
- package/dist/components/ChartsV2/chartV2.dark.tokens.d.ts +1 -1
- package/dist/components/ChartsV2/chartV2.light.tokens.d.ts +1 -1
- package/dist/components/ChartsV2/chartV2.tokens.d.ts +2 -99
- package/dist/components/ChartsV2/chartV2.tokens.types.d.ts +99 -0
- package/dist/components/ChartsV2/chartV2.types.d.ts +2 -2
- package/dist/components/ChatInput/AttachmentFile.d.ts +2 -1
- package/dist/components/ChatInput/ChatInput.d.ts +5 -5
- package/dist/components/ChatInput/MobileChatInput.d.ts +2 -1
- package/dist/components/ChatInput/getDocIcon.d.ts +3 -0
- package/dist/components/CodeEditorV2/codeEditorV2.dark.tokens.d.ts +1 -1
- package/dist/components/CodeEditorV2/codeEditorV2.light.token.d.ts +1 -1
- package/dist/components/CodeEditorV2/codeEditorV2.tokens.d.ts +2 -91
- package/dist/components/CodeEditorV2/codeEditorV2.tokens.types.d.ts +95 -0
- package/dist/components/CodeEditorV2/codeEditorV2.types.d.ts +2 -6
- package/dist/components/DateRangePicker/types.d.ts +1 -1
- package/dist/components/DateRangePicker/utils.d.ts +2 -0
- package/dist/components/Directory/Directory.d.ts +1 -1
- package/dist/components/Directory/types.d.ts +1 -1
- package/dist/components/Directory/utils.d.ts +2 -0
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2.tokens.d.ts +2 -121
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2.tokens.types.d.ts +121 -0
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2Mobile.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2Mobile.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2Mobile.tokens.d.ts +2 -56
- package/dist/components/InputsV2/ChatInputV2/ChatInputV2Mobile.tokens.types.d.ts +56 -0
- package/dist/components/InputsV2/ChatInputV2/MobileChatInputV2.d.ts +1 -1
- package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.tokens.d.ts +2 -71
- package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.tokens.types.d.ts +71 -0
- package/dist/components/InputsV2/NumberInputV2/NumberInputV2.d.ts +1 -1
- package/dist/components/InputsV2/NumberInputV2/NumberInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/NumberInputV2/NumberInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/NumberInputV2/numberInputV2.tokens.d.ts +2 -132
- package/dist/components/InputsV2/NumberInputV2/numberInputV2.tokens.types.d.ts +132 -0
- package/dist/components/InputsV2/OTPInputV2/OTPInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/OTPInputV2/OTPInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/OTPInputV2/OTPInputV2.tokens.d.ts +2 -31
- package/dist/components/InputsV2/OTPInputV2/OTPInputV2.tokens.types.d.ts +31 -0
- package/dist/components/InputsV2/SearchInputV2/SearchInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/SearchInputV2/SearchInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/SearchInputV2/SearchInputV2.tokens.d.ts +2 -89
- package/dist/components/InputsV2/SearchInputV2/SearchInputV2.tokens.types.d.ts +89 -0
- package/dist/components/InputsV2/TextAreaV2/TextAreaV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/TextAreaV2/TextAreaV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/TextAreaV2/TextAreaV2.tokens.d.ts +2 -60
- package/dist/components/InputsV2/TextAreaV2/TextAreaV2.tokens.types.d.ts +60 -0
- package/dist/components/InputsV2/TextInputV2/TextInputV2.dark.tokens.d.ts +1 -1
- package/dist/components/InputsV2/TextInputV2/TextInputV2.light.tokens.d.ts +1 -1
- package/dist/components/InputsV2/TextInputV2/TextInputV2.tokens.d.ts +2 -133
- package/dist/components/InputsV2/TextInputV2/TextInputV2.tokens.types.d.ts +133 -0
- package/dist/components/KeyValuePairV2/keyValuePairV2.dark.tokens.d.ts +1 -1
- package/dist/components/KeyValuePairV2/keyValuePairV2.light.tokens.d.ts +1 -1
- package/dist/components/KeyValuePairV2/keyValuePairV2.tokens.d.ts +2 -25
- package/dist/components/KeyValuePairV2/keyValuePairV2.tokens.types.d.ts +25 -0
- package/dist/components/Menu/types.d.ts +1 -1
- package/dist/components/MenuV2/menuV2.dark.tokens.d.ts +1 -1
- package/dist/components/MenuV2/menuV2.light.tokens.d.ts +1 -1
- package/dist/components/MenuV2/menuV2.tokens.d.ts +2 -88
- package/dist/components/MenuV2/menuV2.tokens.types.d.ts +89 -0
- package/dist/components/Modal/types.d.ts +2 -2
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/MultiSelectV2/multiSelectV2.dark.tokens.d.ts +1 -1
- package/dist/components/MultiSelectV2/multiSelectV2.light.tokens.d.ts +1 -1
- package/dist/components/MultiSelectV2/multiSelectV2.tokens.d.ts +2 -213
- package/dist/components/MultiSelectV2/multiSelectV2.tokens.types.d.ts +213 -0
- package/dist/components/Popover/types.d.ts +2 -2
- package/dist/components/PopoverV2/popoverV2.dark.tokens.d.ts +1 -1
- package/dist/components/PopoverV2/popoverV2.light.tokens.d.ts +1 -1
- package/dist/components/PopoverV2/popoverV2.token.d.ts +2 -69
- package/dist/components/PopoverV2/popoverV2.tokens.types.d.ts +70 -0
- package/dist/components/PopoverV2/popoverV2.types.d.ts +2 -2
- package/dist/components/ProgressBarV2/progressBarV2.dark.tokens.d.ts +1 -1
- package/dist/components/ProgressBarV2/progressBarV2.light.tokens.d.ts +1 -1
- package/dist/components/ProgressBarV2/progressBarV2.tokens.d.ts +2 -60
- package/dist/components/ProgressBarV2/progressBarV2.tokens.types.d.ts +76 -0
- package/dist/components/ProgressBarV2/progressBarV2.types.d.ts +2 -18
- package/dist/components/Radio/StyledRadio.d.ts +0 -1
- package/dist/components/SelectV2/selectV2.shared.types.d.ts +1 -1
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.dark.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.light.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.tokens.d.ts +2 -91
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.tokens.types.d.ts +95 -0
- package/dist/components/SelectorV2/CheckboxV2/checkboxV2.types.d.ts +2 -6
- package/dist/components/SelectorV2/RadioV2/radioV2.dark.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/RadioV2/radioV2.light.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/RadioV2/radioV2.tokens.d.ts +2 -80
- package/dist/components/SelectorV2/RadioV2/radioV2.tokens.types.d.ts +80 -0
- package/dist/components/SelectorV2/RadioV2/radioV2.types.d.ts +2 -2
- package/dist/components/SelectorV2/SwitchV2/switchV2.dark.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/SwitchV2/switchV2.light.tokens.d.ts +1 -1
- package/dist/components/SelectorV2/SwitchV2/switchV2.tokens.d.ts +2 -74
- package/dist/components/SelectorV2/SwitchV2/switchV2.tokens.types.d.ts +74 -0
- package/dist/components/SelectorV2/SwitchV2/switchV2.types.d.ts +2 -2
- package/dist/components/Sidebar/SidebarContent.d.ts +1 -1
- package/dist/components/Sidebar/types.d.ts +4 -16
- package/dist/components/Sidebar/utils.d.ts +1 -1
- package/dist/components/SidebarV2/SidebarV2MobileNavigation/mobile.dark.tokens.d.ts +1 -1
- package/dist/components/SidebarV2/SidebarV2MobileNavigation/mobile.light.tokens.d.ts +1 -1
- package/dist/components/SidebarV2/SidebarV2MobileNavigation/mobile.tokens.d.ts +2 -84
- package/dist/components/SidebarV2/SidebarV2MobileNavigation/mobile.tokens.types.d.ts +84 -0
- package/dist/components/SidebarV2/SidebarV2MobileNavigation/types.d.ts +1 -1
- package/dist/components/SidebarV2/SidebarV2Panel.d.ts +1 -1
- package/dist/components/SidebarV2/index.d.ts +1 -1
- package/dist/components/SidebarV2/sidebarV2.dark.tokens.d.ts +1 -1
- package/dist/components/SidebarV2/sidebarV2.light.tokens.d.ts +1 -1
- package/dist/components/SidebarV2/sidebarV2.tokens.d.ts +2 -103
- package/dist/components/SidebarV2/sidebarV2.tokens.types.d.ts +103 -0
- package/dist/components/SidebarV2/types.d.ts +3 -0
- package/dist/components/SingleSelect/types.d.ts +1 -1
- package/dist/components/SingleSelectV2/singleSelectV2.dark.tokens.d.ts +1 -1
- package/dist/components/SingleSelectV2/singleSelectV2.light.tokens.d.ts +1 -1
- package/dist/components/SingleSelectV2/singleSelectV2.tokens.d.ts +2 -159
- package/dist/components/SingleSelectV2/singleSelectV2.tokens.types.d.ts +159 -0
- package/dist/components/SingleSelectV2/singleSelectV2.types.d.ts +1 -1
- package/dist/components/SnackbarV2/snackbarV2.dark.tokens.d.ts +1 -1
- package/dist/components/SnackbarV2/snackbarV2.light.tokens.d.ts +1 -1
- package/dist/components/SnackbarV2/snackbarV2.tokens.d.ts +2 -64
- package/dist/components/SnackbarV2/snackbarV2.tokens.types.d.ts +64 -0
- package/dist/components/SplitTag/types.d.ts +1 -1
- package/dist/components/StatCard/types.d.ts +2 -2
- package/dist/components/StatCardV2/StatCardV2.d.ts +1 -0
- package/dist/components/StatCardV2/StatCardV2Change.d.ts +1 -1
- package/dist/components/StatCardV2/StatCardV2Title.d.ts +1 -1
- package/dist/components/StatCardV2/StatCardV2Value.d.ts +4 -1
- package/dist/components/StatCardV2/statcardV2.dark.tokens.d.ts +1 -1
- package/dist/components/StatCardV2/statcardV2.light.tokens.d.ts +1 -1
- package/dist/components/StatCardV2/statcardV2.tokens.d.ts +2 -78
- package/dist/components/StatCardV2/statcardV2.tokens.types.d.ts +86 -0
- package/dist/components/StatCardV2/statcardV2.types.d.ts +8 -13
- package/dist/components/Stepper/types.d.ts +2 -0
- package/dist/components/StepperV2/stepperV2.dark.tokens.d.ts +1 -1
- package/dist/components/StepperV2/stepperV2.light.tokens.d.ts +1 -1
- package/dist/components/StepperV2/stepperV2.tokens.d.ts +2 -96
- package/dist/components/StepperV2/stepperV2.tokens.types.d.ts +96 -0
- package/dist/components/TabsV2/tabsV2.dark.tokens.d.ts +1 -1
- package/dist/components/TabsV2/tabsV2.light.tokens.d.ts +1 -1
- package/dist/components/TabsV2/tabsV2.tokens.d.ts +2 -94
- package/dist/components/TabsV2/tabsV2.tokens.types.d.ts +94 -0
- package/dist/components/TagV2/tagV2.dark.tokens.d.ts +1 -1
- package/dist/components/TagV2/tagV2.light.tokens.d.ts +1 -1
- package/dist/components/TagV2/tagV2.tokens.d.ts +2 -58
- package/dist/components/TagV2/tagV2.tokens.types.d.ts +58 -0
- package/dist/components/Tags/tag.dark.tokens.d.ts +1 -1
- package/dist/components/Tags/tag.light.tokens.d.ts +1 -1
- package/dist/components/Tags/tag.tokens.d.ts +2 -56
- package/dist/components/Tags/tag.tokens.types.d.ts +56 -0
- package/dist/components/Timeline/timeline.dark.token.d.ts +1 -6
- package/dist/components/Timeline/timeline.light.token.d.ts +1 -6
- package/dist/components/Timeline/timeline.token.d.ts +2 -129
- package/dist/components/Timeline/timeline.tokens.types.d.ts +129 -0
- package/dist/components/TooltipV2/tooltipV2.dark.tokens.d.ts +1 -1
- package/dist/components/TooltipV2/tooltipV2.light.tokens.d.ts +1 -1
- package/dist/components/TooltipV2/tooltipV2.tokens.d.ts +2 -34
- package/dist/components/TooltipV2/tooltipV2.tokens.types.d.ts +34 -0
- package/dist/components/Topbar/types.d.ts +2 -10
- package/dist/components/TopbarV2/topbarV2.dark.tokens.d.ts +1 -1
- package/dist/components/TopbarV2/topbarV2.light.tokens.d.ts +1 -1
- package/dist/components/TopbarV2/topbarV2.tokens.d.ts +2 -80
- package/dist/components/TopbarV2/topbarV2.tokens.types.d.ts +80 -0
- package/dist/components/shared/layoutTypes.d.ts +39 -0
- package/dist/context/useComponentToken.d.ts +3 -3
- package/dist/main.js +29729 -29194
- package/dist/{node-C2uf3sNA.js → node-CJ_Tft0g.js} +86 -88
- package/dist/node.js +1 -1
- package/dist/tokens.js +17 -16
- package/lib/components/AccordionV2/accordionV2.dark.tokens.ts +1 -1
- package/lib/components/AccordionV2/accordionV2.light.tokens.ts +1 -1
- package/lib/components/AccordionV2/accordionV2.tokens.ts +6 -73
- package/lib/components/AccordionV2/accordionV2.tokens.types.ts +74 -0
- package/lib/components/AlertV2/alertV2.dark.tokens.ts +1 -1
- package/lib/components/AlertV2/alertV2.light.tokens.ts +1 -1
- package/lib/components/AlertV2/alertV2.tokens.ts +5 -78
- package/lib/components/AlertV2/alertV2.tokens.types.ts +79 -0
- package/lib/components/Avatar/Avatar.tsx +6 -1
- package/lib/components/Avatar/types.ts +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.tsx +1 -1
- package/lib/components/AvatarGroup/types.ts +1 -1
- package/lib/components/AvatarV2/AvatarV2.tsx +10 -1
- package/lib/components/AvatarV2/avatarV2.dark.tokens.ts +1 -1
- package/lib/components/AvatarV2/avatarV2.light.tokens.ts +1 -1
- package/lib/components/AvatarV2/avatarV2.tokens.ts +5 -70
- package/lib/components/AvatarV2/avatarV2.tokens.types.ts +71 -0
- package/lib/components/Badge/badge.dark.tokens.ts +1 -1
- package/lib/components/Badge/badge.light.tokens.ts +1 -1
- package/lib/components/Badge/badge.tokens.ts +5 -55
- package/lib/components/Badge/badge.tokens.types.ts +56 -0
- package/lib/components/Breadcrumb/Breadcrumb.tsx +9 -8
- package/lib/components/Breadcrumb/types.ts +13 -1
- package/lib/components/BreadcrumbV2/BreadcrumbV2.tsx +13 -1
- package/lib/components/BreadcrumbV2/breadcrumbV2.dark.tokens.ts +1 -1
- package/lib/components/BreadcrumbV2/breadcrumbV2.light.tokens.ts +1 -1
- package/lib/components/BreadcrumbV2/breadcrumbV2.tokens.ts +6 -31
- package/lib/components/BreadcrumbV2/breadcrumbV2.tokens.types.ts +32 -0
- package/lib/components/BreadcrumbV2/breadcrumbV2.types.ts +0 -14
- package/lib/components/Button/ButtonBase.tsx +1 -1
- package/lib/components/ButtonGroup/types.ts +1 -1
- package/lib/components/ButtonV2/buttonV2.dark.tokens.ts +1 -1
- package/lib/components/ButtonV2/buttonV2.light.tokens.ts +1 -1
- package/lib/components/ButtonV2/buttonV2.tokens.ts +5 -71
- package/lib/components/ButtonV2/buttonV2.tokens.types.ts +72 -0
- package/lib/components/Card/CardComponents.tsx +52 -17
- package/lib/components/Card/types.ts +1 -1
- package/lib/components/Charts/ChartUtils.tsx +7 -0
- package/lib/components/Charts/Charts.tsx +4 -2
- package/lib/components/Charts/CoreChart.tsx +4 -2
- package/lib/components/Charts/renderChart.tsx +6 -2
- package/lib/components/Charts/types.tsx +4 -4
- package/lib/components/ChartsV2/ChartV2.tsx +1 -1
- package/lib/components/ChartsV2/chartV2.dark.tokens.ts +1 -1
- package/lib/components/ChartsV2/chartV2.light.tokens.ts +1 -1
- package/lib/components/ChartsV2/chartV2.tokens.ts +5 -101
- package/lib/components/ChartsV2/chartV2.tokens.types.ts +102 -0
- package/lib/components/ChartsV2/chartV2.types.ts +2 -2
- package/lib/components/ChatInput/AttachmentFile.tsx +6 -15
- package/lib/components/ChatInput/ChatInput.tsx +3 -34
- package/lib/components/ChatInput/MobileChatInput.tsx +2 -1
- package/lib/components/ChatInput/getDocIcon.tsx +36 -0
- package/lib/components/ChatInput/utils.ts +1 -1
- package/lib/components/Checkbox/Checkbox.tsx +29 -7
- package/lib/components/CodeBlock/CodeBlock.tsx +47 -1
- package/lib/components/CodeBlock/codeBlock.token.ts +5 -5
- package/lib/components/CodeEditor/CodeEditor.tsx +26 -4
- package/lib/components/CodeEditor/MonacoEditorWrapper.tsx +13 -1
- package/lib/components/CodeEditorV2/codeEditorV2.dark.tokens.ts +3 -2
- package/lib/components/CodeEditorV2/codeEditorV2.light.token.ts +3 -2
- package/lib/components/CodeEditorV2/codeEditorV2.tokens.ts +5 -83
- package/lib/components/CodeEditorV2/codeEditorV2.tokens.types.ts +89 -0
- package/lib/components/CodeEditorV2/codeEditorV2.types.ts +5 -6
- package/lib/components/DataTable/DataTable.tsx +9 -0
- package/lib/components/DataTable/DataTableHeader/index.tsx +2 -1
- package/lib/components/DataTable/PivotTableModal/PivotPreviewPanel.tsx +1 -0
- package/lib/components/DataTable/PivotTableModal/index.tsx +1 -0
- package/lib/components/DataTable/TableBody/BulkActionBar.tsx +1 -1
- package/lib/components/DataTable/TableBody/index.tsx +4 -10
- package/lib/components/DataTable/TableHeader/FilterComponents.tsx +4 -0
- package/lib/components/DateRangePicker/DateRangePicker.tsx +36 -18
- package/lib/components/DateRangePicker/components/ActionButtons.tsx +2 -1
- package/lib/components/DateRangePicker/types.ts +5 -5
- package/lib/components/DateRangePicker/utils.ts +5 -0
- package/lib/components/Directory/Directory.tsx +3 -2
- package/lib/components/Directory/NavItem.tsx +1 -0
- package/lib/components/Directory/Section.tsx +1 -0
- package/lib/components/Directory/types.ts +1 -1
- package/lib/components/Directory/utils.ts +6 -0
- package/lib/components/Drawer/components/DrawerBase.tsx +16 -0
- package/lib/components/Drawer/components/NestedSelectDrawer.tsx +13 -1
- package/lib/components/Drawer/components/SelectDrawer.tsx +9 -1
- package/lib/components/Inputs/OTPInput/OTPInput.tsx +5 -3
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2.tokens.ts +5 -116
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2.tokens.types.ts +117 -0
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2Mobile.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2Mobile.light.tokens.ts +1 -1
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2Mobile.tokens.ts +5 -46
- package/lib/components/InputsV2/ChatInputV2/ChatInputV2Mobile.tokens.types.ts +47 -0
- package/lib/components/InputsV2/MultiValueInputV2/MultiValueInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/MultiValueInputV2/MultiValueInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/MultiValueInputV2/MultiValueInputV2.tokens.ts +5 -67
- package/lib/components/InputsV2/MultiValueInputV2/MultiValueInputV2.tokens.types.ts +68 -0
- package/lib/components/InputsV2/NumberInputV2/NumberInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/NumberInputV2/NumberInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/NumberInputV2/NumberInputV2.tsx +1 -1
- package/lib/components/InputsV2/NumberInputV2/numberInputV2.tokens.ts +7 -118
- package/lib/components/InputsV2/NumberInputV2/numberInputV2.tokens.types.ts +120 -0
- package/lib/components/InputsV2/OTPInputV2/OTPInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/OTPInputV2/OTPInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/OTPInputV2/OTPInputV2.tokens.ts +5 -32
- package/lib/components/InputsV2/OTPInputV2/OTPInputV2.tokens.types.ts +36 -0
- package/lib/components/InputsV2/SearchInputV2/SearchInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/SearchInputV2/SearchInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/SearchInputV2/SearchInputV2.tokens.ts +5 -90
- package/lib/components/InputsV2/SearchInputV2/SearchInputV2.tokens.types.ts +92 -0
- package/lib/components/InputsV2/TextAreaV2/TextAreaV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/TextAreaV2/TextAreaV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/TextAreaV2/TextAreaV2.tokens.ts +5 -61
- package/lib/components/InputsV2/TextAreaV2/TextAreaV2.tokens.types.ts +62 -0
- package/lib/components/InputsV2/TextInputV2/TextInputV2.dark.tokens.ts +1 -1
- package/lib/components/InputsV2/TextInputV2/TextInputV2.light.tokens.ts +1 -1
- package/lib/components/InputsV2/TextInputV2/TextInputV2.tokens.ts +5 -134
- package/lib/components/InputsV2/TextInputV2/TextInputV2.tokens.types.ts +135 -0
- package/lib/components/KeyValuePairV2/keyValuePairV2.dark.tokens.ts +1 -1
- package/lib/components/KeyValuePairV2/keyValuePairV2.light.tokens.ts +1 -1
- package/lib/components/KeyValuePairV2/keyValuePairV2.tokens.ts +5 -26
- package/lib/components/KeyValuePairV2/keyValuePairV2.tokens.types.ts +27 -0
- package/lib/components/Menu/Menu.tsx +9 -1
- package/lib/components/Menu/MenuItem.tsx +1 -0
- package/lib/components/Menu/SubMenu.tsx +1 -0
- package/lib/components/Menu/types.tsx +1 -1
- package/lib/components/MenuV2/menuV2.dark.tokens.ts +1 -1
- package/lib/components/MenuV2/menuV2.light.tokens.ts +1 -1
- package/lib/components/MenuV2/menuV2.tokens.ts +5 -109
- package/lib/components/MenuV2/menuV2.tokens.types.ts +110 -0
- package/lib/components/Modal/types.ts +2 -2
- package/lib/components/Modal/useModal.ts +7 -0
- package/lib/components/MultiSelect/MobileMultiSelect.tsx +2 -1
- package/lib/components/MultiSelect/MultiSelectMenuItem.tsx +1 -0
- package/lib/components/MultiSelect/MultiSelectSubMenu.tsx +1 -0
- package/lib/components/MultiSelect/types.ts +1 -1
- package/lib/components/MultiSelectV2/MultiSelectV2MenuItem.tsx +1 -0
- package/lib/components/MultiSelectV2/MultiSelectV2Skeleton.tsx +2 -1
- package/lib/components/MultiSelectV2/MultiSelectV2SubMenu.tsx +1 -0
- package/lib/components/MultiSelectV2/multiSelectV2.dark.tokens.ts +1 -1
- package/lib/components/MultiSelectV2/multiSelectV2.light.tokens.ts +1 -1
- package/lib/components/MultiSelectV2/multiSelectV2.tokens.ts +8 -237
- package/lib/components/MultiSelectV2/multiSelectV2.tokens.types.ts +237 -0
- package/lib/components/Popover/types.ts +2 -2
- package/lib/components/PopoverV2/popoverV2.dark.tokens.tsx +1 -1
- package/lib/components/PopoverV2/popoverV2.light.tokens.tsx +1 -1
- package/lib/components/PopoverV2/popoverV2.token.ts +5 -69
- package/lib/components/PopoverV2/popoverV2.tokens.types.ts +72 -0
- package/lib/components/PopoverV2/popoverV2.types.ts +2 -2
- package/lib/components/ProgressBarV2/progressBarV2.dark.tokens.ts +1 -1
- package/lib/components/ProgressBarV2/progressBarV2.light.tokens.ts +1 -1
- package/lib/components/ProgressBarV2/progressBarV2.tokens.ts +5 -64
- package/lib/components/ProgressBarV2/progressBarV2.tokens.types.ts +81 -0
- package/lib/components/ProgressBarV2/progressBarV2.types.ts +13 -20
- package/lib/components/Radio/Radio.tsx +12 -5
- package/lib/components/Radio/StyledRadio.tsx +33 -17
- package/lib/components/SelectV2/selectV2.shared.types.ts +1 -1
- package/lib/components/SelectorV2/CheckboxV2/checkboxV2.dark.tokens.ts +1 -1
- package/lib/components/SelectorV2/CheckboxV2/checkboxV2.light.tokens.ts +1 -1
- package/lib/components/SelectorV2/CheckboxV2/checkboxV2.tokens.ts +5 -81
- package/lib/components/SelectorV2/CheckboxV2/checkboxV2.tokens.types.ts +87 -0
- package/lib/components/SelectorV2/CheckboxV2/checkboxV2.types.ts +3 -6
- package/lib/components/SelectorV2/RadioV2/radioV2.dark.tokens.ts +1 -1
- package/lib/components/SelectorV2/RadioV2/radioV2.light.tokens.ts +1 -1
- package/lib/components/SelectorV2/RadioV2/radioV2.tokens.ts +5 -73
- package/lib/components/SelectorV2/RadioV2/radioV2.tokens.types.ts +78 -0
- package/lib/components/SelectorV2/RadioV2/radioV2.types.ts +2 -2
- package/lib/components/SelectorV2/SwitchV2/switchV2.dark.tokens.ts +1 -1
- package/lib/components/SelectorV2/SwitchV2/switchV2.light.tokens.ts +1 -1
- package/lib/components/SelectorV2/SwitchV2/switchV2.tokens.ts +5 -63
- package/lib/components/SelectorV2/SwitchV2/switchV2.tokens.types.ts +68 -0
- package/lib/components/SelectorV2/SwitchV2/switchV2.types.ts +5 -2
- package/lib/components/Sidebar/Sidebar.tsx +12 -2
- package/lib/components/Sidebar/SidebarContent.tsx +6 -2
- package/lib/components/Sidebar/SidebarHeader.tsx +2 -12
- package/lib/components/Sidebar/TenantPanel.tsx +52 -34
- package/lib/components/Sidebar/types.ts +14 -17
- package/lib/components/Sidebar/utils.ts +1 -1
- package/lib/components/SidebarV2/SecondarySidebar.tsx +86 -44
- package/lib/components/SidebarV2/SidebarV2MobileNavigation/mobile.dark.tokens.ts +2 -2
- package/lib/components/SidebarV2/SidebarV2MobileNavigation/mobile.light.tokens.ts +2 -2
- package/lib/components/SidebarV2/SidebarV2MobileNavigation/mobile.tokens.ts +6 -84
- package/lib/components/SidebarV2/SidebarV2MobileNavigation/mobile.tokens.types.ts +85 -0
- package/lib/components/SidebarV2/SidebarV2MobileNavigation/types.ts +1 -1
- package/lib/components/SidebarV2/SidebarV2Panel.tsx +4 -2
- package/lib/components/SidebarV2/index.ts +1 -0
- package/lib/components/SidebarV2/sidebarV2.dark.tokens.ts +1 -1
- package/lib/components/SidebarV2/sidebarV2.light.tokens.ts +1 -1
- package/lib/components/SidebarV2/sidebarV2.tokens.ts +6 -105
- package/lib/components/SidebarV2/sidebarV2.tokens.types.ts +106 -0
- package/lib/components/SidebarV2/types.ts +4 -0
- package/lib/components/SingleSelect/SingleSelectMenu.tsx +1 -1
- package/lib/components/SingleSelect/types.ts +1 -1
- package/lib/components/SingleSelectV2/singleSelectV2.dark.tokens.ts +1 -1
- package/lib/components/SingleSelectV2/singleSelectV2.light.tokens.ts +1 -1
- package/lib/components/SingleSelectV2/singleSelectV2.tokens.ts +9 -188
- package/lib/components/SingleSelectV2/singleSelectV2.tokens.types.ts +188 -0
- package/lib/components/SingleSelectV2/singleSelectV2.types.ts +1 -1
- package/lib/components/SnackbarV2/snackbarV2.dark.tokens.ts +1 -1
- package/lib/components/SnackbarV2/snackbarV2.light.tokens.ts +1 -1
- package/lib/components/SnackbarV2/snackbarV2.tokens.ts +6 -66
- package/lib/components/SnackbarV2/snackbarV2.tokens.types.ts +66 -0
- package/lib/components/SplitTag/types.ts +1 -1
- package/lib/components/StatCard/StatCard.tsx +274 -203
- package/lib/components/StatCard/statcard.tokens.ts +1 -1
- package/lib/components/StatCard/types.ts +2 -2
- package/lib/components/StatCardV2/StatCardV2.tsx +5 -0
- package/lib/components/StatCardV2/StatCardV2Change.tsx +10 -1
- package/lib/components/StatCardV2/StatCardV2NoData.tsx +1 -0
- package/lib/components/StatCardV2/StatCardV2Skeleton.tsx +2 -1
- package/lib/components/StatCardV2/StatCardV2Title.tsx +185 -55
- package/lib/components/StatCardV2/StatCardV2Value.tsx +77 -9
- package/lib/components/StatCardV2/statcardV2.dark.tokens.ts +1 -1
- package/lib/components/StatCardV2/statcardV2.light.tokens.ts +1 -1
- package/lib/components/StatCardV2/statcardV2.tokens.ts +5 -79
- package/lib/components/StatCardV2/statcardV2.tokens.types.ts +90 -0
- package/lib/components/StatCardV2/statcardV2.types.ts +13 -15
- package/lib/components/Stepper/VerticalStepper.tsx +209 -171
- package/lib/components/Stepper/types.ts +2 -0
- package/lib/components/StepperV2/Stepper/Steps.tsx +15 -1
- package/lib/components/StepperV2/stepperV2.dark.tokens.ts +1 -1
- package/lib/components/StepperV2/stepperV2.light.tokens.ts +1 -1
- package/lib/components/StepperV2/stepperV2.tokens.ts +5 -100
- package/lib/components/StepperV2/stepperV2.tokens.types.ts +101 -0
- package/lib/components/TabsV2/tabsV2.dark.tokens.ts +1 -1
- package/lib/components/TabsV2/tabsV2.light.tokens.ts +1 -1
- package/lib/components/TabsV2/tabsV2.tokens.ts +5 -95
- package/lib/components/TabsV2/tabsV2.tokens.types.ts +96 -0
- package/lib/components/TagV2/tagV2.dark.tokens.ts +1 -1
- package/lib/components/TagV2/tagV2.light.tokens.ts +1 -1
- package/lib/components/TagV2/tagV2.tokens.ts +5 -69
- package/lib/components/TagV2/tagV2.tokens.types.ts +70 -0
- package/lib/components/Tags/tag.dark.tokens.ts +1 -1
- package/lib/components/Tags/tag.light.tokens.ts +1 -1
- package/lib/components/Tags/tag.tokens.ts +2 -69
- package/lib/components/Tags/tag.tokens.types.ts +70 -0
- package/lib/components/Text/Text.tsx +1 -0
- package/lib/components/Timeline/timeline.dark.token.ts +4 -6
- package/lib/components/Timeline/timeline.light.token.ts +4 -6
- package/lib/components/Timeline/timeline.token.ts +6 -137
- package/lib/components/Timeline/timeline.tokens.types.ts +138 -0
- package/lib/components/TooltipV2/tooltipV2.dark.tokens.ts +1 -1
- package/lib/components/TooltipV2/tooltipV2.light.tokens.ts +1 -1
- package/lib/components/TooltipV2/tooltipV2.tokens.ts +5 -46
- package/lib/components/TooltipV2/tooltipV2.tokens.types.ts +47 -0
- package/lib/components/Topbar/types.ts +5 -11
- package/lib/components/TopbarV2/topbarV2.dark.tokens.ts +1 -1
- package/lib/components/TopbarV2/topbarV2.light.tokens.ts +1 -1
- package/lib/components/TopbarV2/topbarV2.tokens.ts +6 -69
- package/lib/components/TopbarV2/topbarV2.tokens.types.ts +70 -0
- package/lib/components/Upload/Upload.tsx +6 -0
- package/lib/components/Upload/components/FileListDisplay.tsx +161 -16
- package/lib/components/Upload/utils.ts +10 -2
- package/lib/components/shared/layoutTypes.ts +44 -0
- package/lib/context/ThemeProvider.tsx +19 -8
- package/lib/context/useComponentToken.ts +3 -3
- package/lib/hooks/useDebounce.ts +9 -1
- package/lib/hooks/useTruncationDetection.ts +33 -8
- package/package.json +5 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { CSSObject } from 'styled-components'
|
|
2
|
+
import type { BreakpointType } from '../../breakpoints/breakPoints'
|
|
3
|
+
import type { SelectV2ItemStates } from '../SelectV2/selectV2.tokenStates'
|
|
4
|
+
import { MenuV2ItemActionType, MenuV2ItemVariant } from './menuV2.types'
|
|
5
|
+
|
|
6
|
+
type StateToken<T> = Record<SelectV2ItemStates, T>
|
|
7
|
+
|
|
8
|
+
type MenuV2VariantToken<T> = {
|
|
9
|
+
[MenuV2ItemVariant.DEFAULT]: T
|
|
10
|
+
[MenuV2ItemVariant.ACTION]: {
|
|
11
|
+
[MenuV2ItemActionType.PRIMARY]: T
|
|
12
|
+
[MenuV2ItemActionType.DANGER]: T
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type MenuV2TokensType = {
|
|
17
|
+
backgroundColor: CSSObject['backgroundColor']
|
|
18
|
+
border: CSSObject['border']
|
|
19
|
+
borderRadius: CSSObject['borderRadius']
|
|
20
|
+
boxShadow: CSSObject['boxShadow']
|
|
21
|
+
zIndex: CSSObject['zIndex']
|
|
22
|
+
|
|
23
|
+
minWidth: CSSObject['minWidth']
|
|
24
|
+
maxWidth: CSSObject['maxWidth']
|
|
25
|
+
|
|
26
|
+
paddingTop: CSSObject['paddingTop']
|
|
27
|
+
paddingRight: CSSObject['paddingRight']
|
|
28
|
+
paddingBottom: CSSObject['paddingBottom']
|
|
29
|
+
paddingLeft: CSSObject['paddingLeft']
|
|
30
|
+
|
|
31
|
+
searchIcon: {
|
|
32
|
+
width: CSSObject['width']
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
group: {
|
|
36
|
+
label: {
|
|
37
|
+
fontSize: CSSObject['fontSize']
|
|
38
|
+
fontWeight: CSSObject['fontWeight']
|
|
39
|
+
lineHeight: CSSObject['lineHeight']
|
|
40
|
+
color: CSSObject['color']
|
|
41
|
+
|
|
42
|
+
paddingTop: CSSObject['paddingTop']
|
|
43
|
+
paddingRight: CSSObject['paddingRight']
|
|
44
|
+
paddingBottom: CSSObject['paddingBottom']
|
|
45
|
+
paddingLeft: CSSObject['paddingLeft']
|
|
46
|
+
|
|
47
|
+
marginTop: CSSObject['marginTop']
|
|
48
|
+
marginRight: CSSObject['marginRight']
|
|
49
|
+
marginBottom: CSSObject['marginBottom']
|
|
50
|
+
marginLeft: CSSObject['marginLeft']
|
|
51
|
+
}
|
|
52
|
+
item: {
|
|
53
|
+
paddingTop: CSSObject['paddingTop']
|
|
54
|
+
paddingRight: CSSObject['paddingRight']
|
|
55
|
+
paddingBottom: CSSObject['paddingBottom']
|
|
56
|
+
paddingLeft: CSSObject['paddingLeft']
|
|
57
|
+
|
|
58
|
+
marginTop: CSSObject['marginTop']
|
|
59
|
+
marginRight: CSSObject['marginRight']
|
|
60
|
+
marginBottom: CSSObject['marginBottom']
|
|
61
|
+
marginLeft: CSSObject['marginLeft']
|
|
62
|
+
|
|
63
|
+
gap: CSSObject['gap']
|
|
64
|
+
borderRadius: CSSObject['borderRadius']
|
|
65
|
+
|
|
66
|
+
backgroundColor: MenuV2VariantToken<
|
|
67
|
+
StateToken<CSSObject['backgroundColor']>
|
|
68
|
+
>
|
|
69
|
+
|
|
70
|
+
text: {
|
|
71
|
+
fontSize: CSSObject['fontSize']
|
|
72
|
+
fontWeight: CSSObject['fontWeight']
|
|
73
|
+
lineHeight: CSSObject['lineHeight']
|
|
74
|
+
|
|
75
|
+
color: MenuV2VariantToken<StateToken<CSSObject['color']>>
|
|
76
|
+
|
|
77
|
+
subText: {
|
|
78
|
+
fontSize: CSSObject['fontSize']
|
|
79
|
+
fontWeight: CSSObject['fontWeight']
|
|
80
|
+
lineHeight: CSSObject['lineHeight']
|
|
81
|
+
|
|
82
|
+
color: MenuV2VariantToken<StateToken<CSSObject['color']>>
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
leftSlot: {
|
|
86
|
+
maxWidth: CSSObject['maxWidth']
|
|
87
|
+
maxHeight: CSSObject['maxHeight']
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
rightChevron: {
|
|
91
|
+
color: CSSObject['color']
|
|
92
|
+
width: CSSObject['width']
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
separator: {
|
|
98
|
+
color: CSSObject['color']
|
|
99
|
+
height: CSSObject['height']
|
|
100
|
+
|
|
101
|
+
marginTop: CSSObject['marginTop']
|
|
102
|
+
marginRight: CSSObject['marginRight']
|
|
103
|
+
marginBottom: CSSObject['marginBottom']
|
|
104
|
+
marginLeft: CSSObject['marginLeft']
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type ResponsiveMenuV2TokensType = {
|
|
109
|
+
[key in keyof BreakpointType]: MenuV2TokensType
|
|
110
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
|
-
import type { ButtonProps } from '../Button'
|
|
3
|
-
import { SkeletonVariant } from '../Skeleton'
|
|
2
|
+
import type { ButtonProps } from '../Button/types'
|
|
3
|
+
import type { SkeletonVariant } from '../Skeleton/types'
|
|
4
4
|
|
|
5
5
|
type ModalButtonAction = Omit<ButtonProps, 'buttonGroupPosition'>
|
|
6
6
|
|
|
@@ -22,6 +22,12 @@ export const useModal = (isOpen: boolean, onClose: () => void) => {
|
|
|
22
22
|
const container = getPortalContainer()
|
|
23
23
|
setPortalContainer(container)
|
|
24
24
|
|
|
25
|
+
document.body.style.setProperty(
|
|
26
|
+
'pointer-events',
|
|
27
|
+
'auto',
|
|
28
|
+
'important'
|
|
29
|
+
)
|
|
30
|
+
|
|
25
31
|
let animationFrame2: number | null = null
|
|
26
32
|
const animationFrame1 = requestAnimationFrame(() => {
|
|
27
33
|
animationFrame2 = requestAnimationFrame(() => {
|
|
@@ -44,6 +50,7 @@ export const useModal = (isOpen: boolean, onClose: () => void) => {
|
|
|
44
50
|
cancelAnimationFrame(animationFrame2)
|
|
45
51
|
}
|
|
46
52
|
document.removeEventListener('keydown', handleEscapeKey)
|
|
53
|
+
document.body.style.removeProperty('pointer-events')
|
|
47
54
|
}
|
|
48
55
|
} else {
|
|
49
56
|
// Start exit animation
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
} from '../Drawer'
|
|
12
12
|
import Block from '../Primitives/Block/Block'
|
|
13
13
|
import Text from '../Text/Text'
|
|
14
|
-
import
|
|
14
|
+
import MultiSelectTrigger from './MultiSelectTrigger'
|
|
15
|
+
import type { SkeletonVariant } from '../Skeleton/types'
|
|
15
16
|
import { FOUNDATION_THEME } from '../../tokens'
|
|
16
17
|
import InputLabels from '../Inputs/utils/InputLabels/InputLabels'
|
|
17
18
|
import InputFooter from '../Inputs/utils/InputFooter/InputFooter'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type MultiSelectMenuItemType } from './types'
|
|
2
|
+
// eslint-disable-next-line import-x/no-cycle -- intentional recursion: MenuItem renders SubMenu which renders MenuItem
|
|
2
3
|
import MultiSelectSubMenu from './MultiSelectSubMenu'
|
|
3
4
|
import SelectItem, { SelectItemType } from '../Select/SelectItem'
|
|
4
5
|
|
|
@@ -3,6 +3,7 @@ import { FOUNDATION_THEME } from '../../tokens'
|
|
|
3
3
|
import Block from '../Primitives/Block/Block'
|
|
4
4
|
import { type MultiSelectMenuItemType } from './types'
|
|
5
5
|
import * as RadixMenu from '@radix-ui/react-dropdown-menu'
|
|
6
|
+
// eslint-disable-next-line import-x/no-cycle -- intentional recursion: SubMenu renders MenuItem which renders SubMenu
|
|
6
7
|
import MultiSelectMenuItem from './MultiSelectMenuItem'
|
|
7
8
|
import { type MultiSelectTokensType } from './multiSelect.tokens'
|
|
8
9
|
import { useResponsiveTokens } from '../../hooks/useResponsiveTokens'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectItemV2 } from '../SelectV2'
|
|
2
2
|
import type { MultiSelectV2ItemType } from './multiSelectV2.types'
|
|
3
|
+
// eslint-disable-next-line import-x/no-cycle -- intentional recursion: MenuItem renders SubMenu which renders MenuItem
|
|
3
4
|
import MultiSelectV2SubMenu from './MultiSelectV2SubMenu'
|
|
4
5
|
import { useResponsiveTokens } from '../../hooks/useResponsiveTokens'
|
|
5
6
|
import type { MultiSelectV2TokensType } from './multiSelectV2.tokens'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react'
|
|
2
2
|
import Block from '../Primitives/Block/Block'
|
|
3
|
-
import { Skeleton
|
|
3
|
+
import { Skeleton } from '../Skeleton'
|
|
4
|
+
import type { SkeletonVariant } from '../Skeleton/types'
|
|
4
5
|
import type { MultiSelectV2TokensType } from './multiSelectV2.tokens'
|
|
5
6
|
import type { SelectV2SkeletonProps } from '../SelectV2/selectV2.shared.types'
|
|
6
7
|
|
|
@@ -6,6 +6,7 @@ import PrimitiveText from '../Primitives/PrimitiveText/PrimitiveText'
|
|
|
6
6
|
import { useResponsiveTokens } from '../../hooks/useResponsiveTokens'
|
|
7
7
|
import type { MultiSelectV2TokensType } from './multiSelectV2.tokens'
|
|
8
8
|
import type { MultiSelectV2ItemType } from './multiSelectV2.types'
|
|
9
|
+
// eslint-disable-next-line import-x/no-cycle -- intentional recursion: SubMenu renders MenuItem which renders SubMenu
|
|
9
10
|
import MultiSelectV2MenuItem from './MultiSelectV2MenuItem'
|
|
10
11
|
|
|
11
12
|
const MenuItemSlot = ({ slot }: { slot: ReactNode }) => (
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MultiSelectV2Size,
|
|
5
5
|
MultiSelectV2Variant,
|
|
6
6
|
} from './multiSelectV2.types'
|
|
7
|
-
import type { ResponsiveMultiSelectV2Tokens } from './multiSelectV2.tokens'
|
|
7
|
+
import type { ResponsiveMultiSelectV2Tokens } from './multiSelectV2.tokens.types'
|
|
8
8
|
|
|
9
9
|
export const getMultiSelectV2DarkTokens = (
|
|
10
10
|
foundationToken: FoundationTokenType
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MultiSelectV2Size,
|
|
5
5
|
MultiSelectV2Variant,
|
|
6
6
|
} from './multiSelectV2.types'
|
|
7
|
-
import type { ResponsiveMultiSelectV2Tokens } from './multiSelectV2.tokens'
|
|
7
|
+
import type { ResponsiveMultiSelectV2Tokens } from './multiSelectV2.tokens.types'
|
|
8
8
|
|
|
9
9
|
export const getMultiSelectV2LightTokens = (
|
|
10
10
|
foundationToken: FoundationTokenType
|
|
@@ -1,244 +1,15 @@
|
|
|
1
|
-
import type { CSSObject } from 'styled-components'
|
|
2
1
|
import type { FoundationTokenType } from '../../tokens/theme.token'
|
|
3
|
-
import { BreakpointType } from '../../breakpoints/breakPoints'
|
|
4
|
-
import {
|
|
5
|
-
MultiSelectV2Size,
|
|
6
|
-
MultiSelectV2SelectionTagType,
|
|
7
|
-
MultiSelectV2Variant,
|
|
8
|
-
} from './multiSelectV2.types'
|
|
9
2
|
import { Theme } from '../../context/theme.enum'
|
|
10
3
|
import { getMultiSelectV2LightTokens } from './multiSelectV2.light.tokens'
|
|
11
4
|
import { getMultiSelectV2DarkTokens } from './multiSelectV2.dark.tokens'
|
|
12
|
-
import type {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type SizeToken<T> = Record<MultiSelectV2Size, T>
|
|
21
|
-
type SelectionTagTypeToken<T> = Record<MultiSelectV2SelectionTagType, T>
|
|
22
|
-
|
|
23
|
-
export type MultiSelectV2TriggerStates = SelectV2TriggerStates
|
|
24
|
-
|
|
25
|
-
export type MultiSelectV2ItemStates = SelectV2ItemStates
|
|
26
|
-
|
|
27
|
-
export type MultiSelectV2TokensType = {
|
|
28
|
-
gap: CSSObject['gap']
|
|
29
|
-
|
|
30
|
-
label: {
|
|
31
|
-
fontSize: CSSObject['fontSize']
|
|
32
|
-
fontWeight: CSSObject['fontWeight']
|
|
33
|
-
color: StateToken<CSSObject['color']>
|
|
34
|
-
}
|
|
35
|
-
subLabel: {
|
|
36
|
-
fontSize: CSSObject['fontSize']
|
|
37
|
-
fontWeight: CSSObject['fontWeight']
|
|
38
|
-
color: StateToken<CSSObject['color']>
|
|
39
|
-
}
|
|
40
|
-
hintText: {
|
|
41
|
-
fontSize: CSSObject['fontSize']
|
|
42
|
-
fontWeight: CSSObject['fontWeight']
|
|
43
|
-
color: StateToken<CSSObject['color']>
|
|
44
|
-
}
|
|
45
|
-
errorMessage: {
|
|
46
|
-
fontSize: CSSObject['fontSize']
|
|
47
|
-
fontWeight: CSSObject['fontWeight']
|
|
48
|
-
color: CSSObject['color']
|
|
49
|
-
}
|
|
50
|
-
required: {
|
|
51
|
-
color: CSSObject['color']
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
trigger: {
|
|
55
|
-
height: SizeToken<VariantToken<CSSObject['height']>>
|
|
56
|
-
padding: SizeToken<
|
|
57
|
-
VariantToken<{
|
|
58
|
-
top: CSSObject['paddingTop']
|
|
59
|
-
right: CSSObject['paddingRight']
|
|
60
|
-
bottom: CSSObject['paddingBottom']
|
|
61
|
-
left: CSSObject['paddingLeft']
|
|
62
|
-
}>
|
|
63
|
-
>
|
|
64
|
-
borderRadius: SizeToken<VariantToken<CSSObject['borderRadius']>>
|
|
65
|
-
boxShadow: VariantToken<CSSObject['boxShadow']>
|
|
66
|
-
backgroundColor: VariantToken<
|
|
67
|
-
TriggerStateToken<CSSObject['backgroundColor']>
|
|
68
|
-
>
|
|
69
|
-
outline: VariantToken<TriggerStateToken<CSSObject['outline']>>
|
|
70
|
-
slot: {
|
|
71
|
-
gap: CSSObject['gap']
|
|
72
|
-
width: CSSObject['width']
|
|
73
|
-
}
|
|
74
|
-
selectionTag: VariantToken<
|
|
75
|
-
SelectionTagTypeToken<{
|
|
76
|
-
color: CSSObject['color']
|
|
77
|
-
backgroundColor: CSSObject['backgroundColor']
|
|
78
|
-
fontWeight: CSSObject['fontWeight']
|
|
79
|
-
paddingTop: CSSObject['paddingTop']
|
|
80
|
-
paddingRight: CSSObject['paddingRight']
|
|
81
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
82
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
83
|
-
}>
|
|
84
|
-
> & {
|
|
85
|
-
marginLeft: CSSObject['margin']
|
|
86
|
-
borderRadius: CSSObject['borderRadius']
|
|
87
|
-
}
|
|
88
|
-
chevron: {
|
|
89
|
-
gap: CSSObject['gap']
|
|
90
|
-
width: CSSObject['width']
|
|
91
|
-
height: CSSObject['height']
|
|
92
|
-
iconSize?: number
|
|
93
|
-
}
|
|
94
|
-
clearButton?: {
|
|
95
|
-
backgroundColor: TriggerStateToken<CSSObject['backgroundColor']>
|
|
96
|
-
outline: TriggerStateToken<CSSObject['outline']>
|
|
97
|
-
color: CSSObject['color']
|
|
98
|
-
width?: CSSObject['width']
|
|
99
|
-
}
|
|
100
|
-
floatingLabel: {
|
|
101
|
-
paddingTop: CSSObject['paddingTop']
|
|
102
|
-
paddingRight: CSSObject['paddingRight']
|
|
103
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
104
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
105
|
-
}
|
|
106
|
-
placeholder: {
|
|
107
|
-
color: CSSObject['color']
|
|
108
|
-
fontSize: CSSObject['fontSize']
|
|
109
|
-
fontWeight: CSSObject['fontWeight']
|
|
110
|
-
}
|
|
111
|
-
selectedValue: {
|
|
112
|
-
color: CSSObject['color']
|
|
113
|
-
fontSize: CSSObject['fontSize']
|
|
114
|
-
fontWeight: CSSObject['fontWeight']
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
menu: {
|
|
119
|
-
backgroundColor: CSSObject['backgroundColor']
|
|
120
|
-
border: CSSObject['border']
|
|
121
|
-
borderRadius: CSSObject['borderRadius']
|
|
122
|
-
padding: SizeToken<
|
|
123
|
-
VariantToken<{
|
|
124
|
-
top: CSSObject['paddingTop']
|
|
125
|
-
right: CSSObject['paddingRight']
|
|
126
|
-
bottom: CSSObject['paddingBottom']
|
|
127
|
-
left: CSSObject['paddingLeft']
|
|
128
|
-
}>
|
|
129
|
-
>
|
|
130
|
-
minWidth: CSSObject['minWidth']
|
|
131
|
-
scroll: {
|
|
132
|
-
height: CSSObject['height']
|
|
133
|
-
maxHeight: CSSObject['maxHeight']
|
|
134
|
-
}
|
|
135
|
-
header: {
|
|
136
|
-
backgroundColor: CSSObject['backgroundColor']
|
|
137
|
-
borderBottom: CSSObject['borderBottom']
|
|
138
|
-
selectAllRowPaddingLeft: CSSObject['paddingLeft']
|
|
139
|
-
selectAllRowPaddingRight: CSSObject['paddingRight']
|
|
140
|
-
}
|
|
141
|
-
selectAll: {
|
|
142
|
-
paddingTop: CSSObject['paddingTop']
|
|
143
|
-
paddingRight: CSSObject['paddingRight']
|
|
144
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
145
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
146
|
-
borderRadius: CSSObject['borderRadius']
|
|
147
|
-
}
|
|
148
|
-
list: {
|
|
149
|
-
paddingTop: CSSObject['paddingTop']
|
|
150
|
-
paddingRight: CSSObject['paddingRight']
|
|
151
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
152
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
153
|
-
}
|
|
154
|
-
actions: {
|
|
155
|
-
paddingTop: CSSObject['paddingTop']
|
|
156
|
-
paddingRight: CSSObject['paddingRight']
|
|
157
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
158
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
159
|
-
gap: CSSObject['gap']
|
|
160
|
-
backgroundColor: CSSObject['backgroundColor']
|
|
161
|
-
borderTop: CSSObject['borderTop']
|
|
162
|
-
}
|
|
163
|
-
item: {
|
|
164
|
-
paddingTop: CSSObject['paddingTop']
|
|
165
|
-
paddingRight: CSSObject['paddingRight']
|
|
166
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
167
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
168
|
-
margin: CSSObject['margin']
|
|
169
|
-
borderRadius: CSSObject['borderRadius']
|
|
170
|
-
gap: CSSObject['gap']
|
|
171
|
-
backgroundColor: StateToken<CSSObject['backgroundColor']>
|
|
172
|
-
optionsLabel: {
|
|
173
|
-
fontSize: CSSObject['fontSize']
|
|
174
|
-
fontWeight: CSSObject['fontWeight']
|
|
175
|
-
color: StateToken<CSSObject['color']>
|
|
176
|
-
paddingTop: CSSObject['paddingTop']
|
|
177
|
-
paddingRight: CSSObject['paddingRight']
|
|
178
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
179
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
180
|
-
}
|
|
181
|
-
option: {
|
|
182
|
-
fontSize: CSSObject['fontSize']
|
|
183
|
-
fontWeight: CSSObject['fontWeight']
|
|
184
|
-
color: StateToken<CSSObject['color']>
|
|
185
|
-
}
|
|
186
|
-
description: {
|
|
187
|
-
fontSize: CSSObject['fontSize']
|
|
188
|
-
fontWeight: CSSObject['fontWeight']
|
|
189
|
-
color: StateToken<CSSObject['color']>
|
|
190
|
-
}
|
|
191
|
-
seperator: {
|
|
192
|
-
color: CSSObject['color']
|
|
193
|
-
height: CSSObject['height']
|
|
194
|
-
margin: CSSObject['margin']
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
subMenu: {
|
|
200
|
-
trigger: {
|
|
201
|
-
paddingTop: CSSObject['paddingTop']
|
|
202
|
-
paddingRight: CSSObject['paddingRight']
|
|
203
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
204
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
205
|
-
margin: CSSObject['margin']
|
|
206
|
-
borderRadius: CSSObject['borderRadius']
|
|
207
|
-
}
|
|
208
|
-
content: {
|
|
209
|
-
borderRadius: CSSObject['borderRadius']
|
|
210
|
-
paddingTop: CSSObject['paddingTop']
|
|
211
|
-
paddingRight: CSSObject['paddingRight']
|
|
212
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
213
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
drawer: {
|
|
218
|
-
header: {
|
|
219
|
-
paddingTop: CSSObject['paddingTop']
|
|
220
|
-
paddingRight: CSSObject['paddingRight']
|
|
221
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
222
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
223
|
-
borderBottom: CSSObject['borderBottom']
|
|
224
|
-
}
|
|
225
|
-
search: {
|
|
226
|
-
paddingTop: CSSObject['paddingTop']
|
|
227
|
-
paddingRight: CSSObject['paddingRight']
|
|
228
|
-
paddingBottom: CSSObject['paddingBottom']
|
|
229
|
-
paddingLeft: CSSObject['paddingLeft']
|
|
230
|
-
marginTop: CSSObject['margin']
|
|
231
|
-
marginBottom: CSSObject['margin']
|
|
232
|
-
}
|
|
233
|
-
content: {
|
|
234
|
-
gap: CSSObject['gap']
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export type ResponsiveMultiSelectV2Tokens = {
|
|
240
|
-
[key in keyof BreakpointType]: MultiSelectV2TokensType
|
|
241
|
-
}
|
|
5
|
+
import type { ResponsiveMultiSelectV2Tokens } from './multiSelectV2.tokens.types'
|
|
6
|
+
|
|
7
|
+
export type {
|
|
8
|
+
MultiSelectV2TriggerStates,
|
|
9
|
+
MultiSelectV2ItemStates,
|
|
10
|
+
MultiSelectV2TokensType,
|
|
11
|
+
ResponsiveMultiSelectV2Tokens,
|
|
12
|
+
} from './multiSelectV2.tokens.types'
|
|
242
13
|
|
|
243
14
|
export const getMultiSelectV2Tokens = (
|
|
244
15
|
foundationToken: FoundationTokenType,
|