@konstructio/ui 0.1.2-alpha.111 → 0.1.2-alpha.113
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/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +27 -27
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +180 -154
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-frCWQhFC.js +0 -76
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export declare const stepperVariants: (props?: ({
|
|
2
2
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3
|
+
fullWidth?: boolean | null | undefined;
|
|
3
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
5
|
export declare const stepListVariants: (props?: ({
|
|
5
6
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
+
fullWidth?: boolean | null | undefined;
|
|
6
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
9
|
export declare const stepItemVariants: (props?: ({
|
|
8
10
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
11
|
+
fullWidth?: boolean | null | undefined;
|
|
9
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
13
|
export declare const stepVariants: (props?: ({
|
|
11
14
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -13,25 +16,25 @@ export declare const stepVariants: (props?: ({
|
|
|
13
16
|
clickable?: boolean | null | undefined;
|
|
14
17
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
18
|
export declare const stepIndicatorVariants: (props?: ({
|
|
16
|
-
status?: "error" | "active" | "
|
|
19
|
+
status?: "error" | "active" | "pending" | "completed" | null | undefined;
|
|
17
20
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
21
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
19
22
|
export declare const stepContentVariants: (props?: ({
|
|
20
23
|
variant?: "inline" | "horizontal" | "stacked" | null | undefined;
|
|
21
24
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
22
25
|
export declare const stepLabelVariants: (props?: ({
|
|
23
|
-
status?: "error" | "active" | "
|
|
26
|
+
status?: "error" | "active" | "pending" | "completed" | null | undefined;
|
|
24
27
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
25
28
|
variant?: "inline" | "horizontal" | "stacked" | null | undefined;
|
|
26
29
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
27
30
|
export declare const stepDescriptionVariants: (props?: ({
|
|
28
|
-
status?: "error" | "active" | "
|
|
31
|
+
status?: "error" | "active" | "pending" | "completed" | null | undefined;
|
|
29
32
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
30
33
|
variant?: "inline" | "horizontal" | "stacked" | null | undefined;
|
|
31
34
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
32
35
|
export declare const stepConnectorVariants: (props?: ({
|
|
33
36
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
34
|
-
status?: "error" | "active" | "
|
|
37
|
+
status?: "error" | "active" | "pending" | "completed" | null | undefined;
|
|
35
38
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
36
39
|
variant?: "inline" | "horizontal" | "stacked" | null | undefined;
|
|
37
40
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -24,8 +24,15 @@ export interface Props extends VariantProps<typeof switchVariants> {
|
|
|
24
24
|
helperText?: string;
|
|
25
25
|
/** CSS classes for helper text */
|
|
26
26
|
helperTextClassName?: string;
|
|
27
|
+
/** Disable the switch and show a spinner while a change is pending */
|
|
28
|
+
isLoading?: boolean;
|
|
27
29
|
/** Label text displayed next to switch */
|
|
28
30
|
label?: string;
|
|
31
|
+
/** Label text for each state; overrides `label` visually and for assistive technology */
|
|
32
|
+
labels?: {
|
|
33
|
+
off: string;
|
|
34
|
+
on: string;
|
|
35
|
+
};
|
|
29
36
|
/** CSS classes for the label */
|
|
30
37
|
labelClassName?: string;
|
|
31
38
|
/** Additional CSS classes for the label wrapper */
|
|
@@ -4,27 +4,27 @@ import { Content, List, Trigger } from './components';
|
|
|
4
4
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
5
5
|
/**
|
|
6
6
|
* A tabs component built on Radix UI primitives.
|
|
7
|
-
* Supports horizontal and vertical orientations with List, Trigger, and Content sub-components
|
|
7
|
+
* Supports horizontal and vertical orientations with List, Trigger, and Content sub-components,
|
|
8
|
+
* or a declarative `items` list.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```tsx
|
|
11
12
|
* <Tabs defaultValue="overview">
|
|
12
13
|
* <Tabs.List orientation="horizontal">
|
|
13
|
-
* <Tabs.Trigger tab="overview" label="Overview"
|
|
14
|
-
* <Tabs.Trigger tab="settings" label="Settings"
|
|
15
|
-
* <Tabs.Trigger tab="billing" label="Billing" isActive={false} />
|
|
14
|
+
* <Tabs.Trigger tab="overview" label="Overview" />
|
|
15
|
+
* <Tabs.Trigger tab="settings" label="Settings" />
|
|
16
16
|
* </Tabs.List>
|
|
17
17
|
*
|
|
18
|
-
* <Tabs.Content value="overview">
|
|
19
|
-
*
|
|
20
|
-
* </Tabs.Content>
|
|
21
|
-
* <Tabs.Content value="settings">
|
|
22
|
-
* Settings content here
|
|
23
|
-
* </Tabs.Content>
|
|
24
|
-
* <Tabs.Content value="billing">
|
|
25
|
-
* Billing content here
|
|
26
|
-
* </Tabs.Content>
|
|
18
|
+
* <Tabs.Content value="overview">Overview content here</Tabs.Content>
|
|
19
|
+
* <Tabs.Content value="settings">Settings content here</Tabs.Content>
|
|
27
20
|
* </Tabs>
|
|
21
|
+
*
|
|
22
|
+
* <Tabs
|
|
23
|
+
* items={[
|
|
24
|
+
* { value: 'overview', label: 'Overview', content: <Overview /> },
|
|
25
|
+
* { value: 'settings', label: 'Settings', content: <Settings /> },
|
|
26
|
+
* ]}
|
|
27
|
+
* />
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
30
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tabs--docs Storybook}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { triggerVariants } from './Tabs.variants';
|
|
4
4
|
import { Theme } from '../../domain/theme';
|
|
5
5
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
@@ -18,7 +18,18 @@ import * as ReactTabs from '@radix-ui/react-tabs';
|
|
|
18
18
|
* </Tabs>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
+
export type TabItem = {
|
|
22
|
+
content: ReactNode;
|
|
23
|
+
contentClassName?: string;
|
|
24
|
+
label: string;
|
|
25
|
+
triggerClassName?: string;
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
21
28
|
export interface Props extends ReactTabs.TabsProps, PropsWithChildren {
|
|
29
|
+
/** Declarative tabs: renders the list, triggers and contents; falls back to the first item when the active one disappears */
|
|
30
|
+
items?: TabItem[];
|
|
31
|
+
/** Additional className for the generated Tabs.List when using `items` */
|
|
32
|
+
listClassName?: string;
|
|
22
33
|
/** Theme override for this component */
|
|
23
34
|
theme?: Theme;
|
|
24
35
|
}
|
|
@@ -32,8 +43,8 @@ export interface TriggerProps extends VariantProps<typeof triggerVariants>, Reac
|
|
|
32
43
|
tab: string;
|
|
33
44
|
/** Display label for the tab */
|
|
34
45
|
label: string;
|
|
35
|
-
/** Whether this tab is active */
|
|
36
|
-
isActive
|
|
46
|
+
/** Whether this tab is active; derived from the Tabs state when omitted */
|
|
47
|
+
isActive?: boolean;
|
|
37
48
|
}
|
|
38
49
|
/**
|
|
39
50
|
* Props for Tabs.List component.
|
|
@@ -8,5 +8,5 @@ export declare const listVariants: (props?: ({
|
|
|
8
8
|
variant?: "horizontal" | "vertical" | "default" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export declare const triggerVariants: (props?: ({
|
|
11
|
-
variant?: "default" | "active" | "inactive" | null | undefined;
|
|
11
|
+
variant?: "auto" | "default" | "active" | "inactive" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Props } from './TagsInput.types';
|
|
2
|
+
/**
|
|
3
|
+
* A free-text tags field. Typing a delimiter (Enter or comma) adds a tag,
|
|
4
|
+
* Backspace on an empty input removes the last one, and `suggestions` offers
|
|
5
|
+
* existing tags in a keyboard-navigable list. Mirrors the `Input` API for
|
|
6
|
+
* label, error and helper text.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <TagsInput
|
|
11
|
+
* label="Tags"
|
|
12
|
+
* value={tags}
|
|
13
|
+
* suggestions={existingTags}
|
|
14
|
+
* helperText="Press Enter or comma to add a tag"
|
|
15
|
+
* onChange={setTags}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const TagsInput: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export { TagsInput };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '../../domain/theme';
|
|
3
|
+
export interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
|
|
4
|
+
/** Additional CSS classes for the field container */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Commit the typed text as a tag when the input loses focus. Defaults to true */
|
|
7
|
+
commitOnBlur?: boolean;
|
|
8
|
+
/** Keys that commit the typed text as a tag. Defaults to Enter and comma */
|
|
9
|
+
delimiters?: string[];
|
|
10
|
+
/** Error message displayed below the field */
|
|
11
|
+
error?: string;
|
|
12
|
+
/** Additional CSS classes for the error message */
|
|
13
|
+
errorClassName?: string;
|
|
14
|
+
/** Helper text displayed below the field when there is no error */
|
|
15
|
+
helperText?: string;
|
|
16
|
+
/** Additional CSS classes for the helper text */
|
|
17
|
+
helperTextClassName?: string;
|
|
18
|
+
/** Show a spinner in the field and a loading row in the suggestions */
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
/** Show required indicator */
|
|
21
|
+
isRequired?: boolean;
|
|
22
|
+
/** Label displayed above the field */
|
|
23
|
+
label?: ReactNode;
|
|
24
|
+
/** Content displayed at the right end of the label row */
|
|
25
|
+
labelAction?: ReactNode;
|
|
26
|
+
/** Accessible name of the spinner and the loading row */
|
|
27
|
+
loadingText?: string;
|
|
28
|
+
/** Existing tags offered while typing; already selected ones are hidden */
|
|
29
|
+
suggestions?: string[];
|
|
30
|
+
/** Theme override for this component */
|
|
31
|
+
theme?: Theme;
|
|
32
|
+
/** Current tags */
|
|
33
|
+
value: string[];
|
|
34
|
+
/** Called with the new tags when one is added or removed */
|
|
35
|
+
onChange: (tags: string[]) => void;
|
|
36
|
+
}
|
|
37
|
+
export type TagsInputProps = Props;
|
|
@@ -30,6 +30,11 @@ export type ToastHeights = Record<string, number>;
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export type Props = {
|
|
33
|
+
/**
|
|
34
|
+
* Size each toast to its content, growing leftwards up to the viewport
|
|
35
|
+
* width, instead of the region's fixed width (default: false)
|
|
36
|
+
*/
|
|
37
|
+
autoWidth?: boolean;
|
|
33
38
|
/** Additional CSS classes for the fixed region */
|
|
34
39
|
className?: string;
|
|
35
40
|
/** Accessible name of every close button (default: 'Close toast') */
|
|
@@ -17,6 +17,10 @@ import { Props } from './Tooltip.types';
|
|
|
17
17
|
* <Tooltip content="Danger!" bgClassName="bg-red-500">
|
|
18
18
|
* <Button variant="danger">Delete</Button>
|
|
19
19
|
* </Tooltip>
|
|
20
|
+
*
|
|
21
|
+
* <Tooltip content="This name is taken" asOverlay overlayClassName="right-0 top-7 h-10 w-8">
|
|
22
|
+
* <Input label="Name" />
|
|
23
|
+
* </Tooltip>
|
|
20
24
|
* ```
|
|
21
25
|
*/
|
|
22
26
|
export declare const Tooltip: FC<Props>;
|
|
@@ -22,6 +22,16 @@ export interface Props {
|
|
|
22
22
|
content: ReactNode | string;
|
|
23
23
|
/** The trigger element */
|
|
24
24
|
children: ReactNode;
|
|
25
|
+
/** Render an invisible trigger over the children instead of wrapping them, for fields that cannot be wrapped or are disabled */
|
|
26
|
+
asOverlay?: boolean;
|
|
27
|
+
/** Keep the children as they are and never open the tooltip */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Position and size of the overlay trigger (defaults to `inset-0`) */
|
|
30
|
+
overlayClassName?: string;
|
|
31
|
+
/** Accessible name of the overlay trigger; defaults to `content` when it is a string */
|
|
32
|
+
overlayLabel?: string;
|
|
33
|
+
/** Additional className for the relative wrapper used in overlay mode */
|
|
34
|
+
wrapperClassName?: string;
|
|
25
35
|
/** Tooltip position relative to trigger */
|
|
26
36
|
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
27
37
|
/** Distance from trigger in px */
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { Props, RowData } from './VirtualizedTable.types';
|
|
3
|
-
import { TruncateText } from './components';
|
|
4
3
|
import { Props as ActionProps } from './components/Actions/Actions.types';
|
|
4
|
+
import { EmptyResults } from './components/EmptyResults/EmptyResults';
|
|
5
|
+
import { EmptyState } from './components/EmptyState/EmptyState';
|
|
6
|
+
import { ErrorState } from './components/ErrorState/ErrorState';
|
|
7
|
+
import { TruncateText } from './components/TruncateText/TruncateText';
|
|
5
8
|
type VirtualizedTableCompound = (<TData extends RowData>(props: Props<TData>) => JSX.Element) & {
|
|
6
9
|
TruncateText: typeof TruncateText;
|
|
10
|
+
EmptyState: typeof EmptyState;
|
|
11
|
+
EmptyResults: typeof EmptyResults;
|
|
12
|
+
ErrorState: typeof ErrorState;
|
|
7
13
|
Actions: <TData extends RowData>(props: ActionProps<TData>) => JSX.Element | null;
|
|
8
14
|
Events: {
|
|
9
15
|
sendExpandRowEvent: (tableId: string, rowId: string) => void;
|
|
@@ -15,4 +21,4 @@ type VirtualizedTableCompound = (<TData extends RowData>(props: Props<TData>) =>
|
|
|
15
21
|
displayName?: string;
|
|
16
22
|
};
|
|
17
23
|
declare const VirtualizedTable: VirtualizedTableCompound;
|
|
18
|
-
export { TruncateText, VirtualizedTable };
|
|
24
|
+
export { EmptyResults, EmptyState, ErrorState, TruncateText, VirtualizedTable };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
|
+
import { Props as TooltipProps } from '../../../Tooltip/Tooltip.types';
|
|
3
4
|
import { RowData } from '../../VirtualizedTable.types';
|
|
4
5
|
export type Action<TData> = {
|
|
5
6
|
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
disabledReason?: ReactNode;
|
|
9
|
+
disabledReasonSide?: TooltipProps['side'];
|
|
6
10
|
id?: string;
|
|
7
11
|
onClick: (rowData: TData) => void;
|
|
8
12
|
} & ({
|
|
@@ -16,8 +20,10 @@ export type Action<TData> = {
|
|
|
16
20
|
});
|
|
17
21
|
export type Props<TData extends RowData> = CellContext<TData, unknown> & {
|
|
18
22
|
actions: Action<TData>[];
|
|
23
|
+
disabledReasonSide?: TooltipProps['side'];
|
|
19
24
|
iconTriggerButtonClassName?: string;
|
|
20
25
|
isPortal?: boolean;
|
|
26
|
+
openOnHover?: boolean;
|
|
21
27
|
triggerButtonClassName?: string;
|
|
22
28
|
wrapperActionsClassName?: string;
|
|
23
29
|
wrapperClassName?: string;
|
|
@@ -2,4 +2,6 @@ export declare const actionsTriggerVariants: (props?: ({
|
|
|
2
2
|
isOpen?: boolean | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const actionsPanelVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
-
export declare const actionsItemVariants: (props?:
|
|
5
|
+
export declare const actionsItemVariants: (props?: ({
|
|
6
|
+
isDisabled?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../../../../VirtualizedTable.types';
|
|
2
2
|
import { Props } from './ActionsList.types';
|
|
3
|
-
export declare const ActionsList: <TData extends RowData>({ actions, className, isMenu, rowData, onSelect, }: Props<TData>) => import('react').JSX.Element;
|
|
3
|
+
export declare const ActionsList: <TData extends RowData>({ actions, className, disabledReasonSide, isMenu, rowData, onSelect, }: Props<TData>) => import('react').JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Props as TooltipProps } from '../../../../../Tooltip/Tooltip.types';
|
|
1
2
|
import { RowData } from '../../../../VirtualizedTable.types';
|
|
2
3
|
import { Action } from '../../Actions.types';
|
|
3
4
|
export type Props<TData extends RowData> = {
|
|
4
5
|
actions: Action<TData>[];
|
|
5
6
|
className?: string;
|
|
7
|
+
disabledReasonSide?: TooltipProps['side'];
|
|
6
8
|
isMenu?: boolean;
|
|
7
9
|
rowData: TData;
|
|
8
10
|
onSelect?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../../../../VirtualizedTable.types';
|
|
2
2
|
import { Props } from '../../Actions.types';
|
|
3
|
-
export declare const InlineActions: <TData extends RowData>({ actions, wrapperClassName, triggerButtonClassName, iconTriggerButtonClassName, wrapperActionsClassName, wrapperContentActionsClassName, ...delegated }: Omit<Props<TData>, "isPortal">) => import('react').JSX.Element;
|
|
3
|
+
export declare const InlineActions: <TData extends RowData>({ actions, disabledReasonSide, openOnHover, wrapperClassName, triggerButtonClassName, iconTriggerButtonClassName, wrapperActionsClassName, wrapperContentActionsClassName, ...delegated }: Omit<Props<TData>, "isPortal">) => import('react').JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RowData } from '../../../../VirtualizedTable.types';
|
|
2
2
|
import { Props } from '../../Actions.types';
|
|
3
|
-
export declare const PortalActions: <TData extends RowData>({ actions, wrapperClassName, triggerButtonClassName, iconTriggerButtonClassName, wrapperActionsClassName, wrapperContentActionsClassName, ...delegated }: Omit<Props<TData>, "isPortal">) => import('react').JSX.Element;
|
|
3
|
+
export declare const PortalActions: <TData extends RowData>({ actions, disabledReasonSide, openOnHover, wrapperClassName, triggerButtonClassName, iconTriggerButtonClassName, wrapperActionsClassName, wrapperContentActionsClassName, ...delegated }: Omit<Props<TData>, "isPortal">) => import('react').JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Params } from './use-actions-menu.types';
|
|
2
|
+
export declare const useActionsMenu: ({ openOnHover }: Params) => {
|
|
2
3
|
buttonRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
3
4
|
hasOpened: boolean;
|
|
4
5
|
isOpen: boolean;
|
|
@@ -12,4 +13,6 @@ export declare const useActionsMenu: () => {
|
|
|
12
13
|
handleTriggerClick: () => void;
|
|
13
14
|
handleTriggerKeyDown: (event: import('react').KeyboardEvent<HTMLDivElement>) => void;
|
|
14
15
|
handleTriggerPointerDown: (event: import('react').PointerEvent<HTMLElement>) => void;
|
|
16
|
+
handleButtonPointerLeave: () => void;
|
|
17
|
+
selectAndClose: () => void;
|
|
15
18
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PointerEvent } from 'react';
|
|
2
2
|
import { Params } from './use-menu-interactions.types';
|
|
3
|
-
export declare const useMenuInteractions: ({ isOpen, menuRef, triggerRef, setIsOpen, }: Params) => {
|
|
3
|
+
export declare const useMenuInteractions: ({ isOpen, menuRef, openOnHover, triggerRef, setIsOpen, }: Params) => {
|
|
4
4
|
closeMenu: () => void;
|
|
5
5
|
handlePointerEnter: (event: PointerEvent<HTMLElement>) => void;
|
|
6
6
|
handlePointerLeave: (event: PointerEvent<HTMLElement>) => void;
|
|
7
7
|
handleTriggerClick: () => void;
|
|
8
8
|
handleTriggerPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
9
|
+
handleButtonPointerLeave: () => void;
|
|
9
10
|
openMenu: () => void;
|
|
11
|
+
selectAndClose: () => void;
|
|
10
12
|
};
|
|
@@ -2,6 +2,7 @@ import { Dispatch, RefObject, SetStateAction } from 'react';
|
|
|
2
2
|
export type Params = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
menuRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
openOnHover: boolean;
|
|
5
6
|
triggerRef: RefObject<HTMLDivElement | null>;
|
|
6
7
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
8
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { RowData } from '../../VirtualizedTable.types';
|
|
1
2
|
import { Props } from './TruncateText.types';
|
|
2
|
-
export declare const TruncateText: <TData>({ getValue, value, textClassName, side, sideOffset, bgClassName, arrowClassName, className, delayDuration, }: Props<TData>) => import('react').JSX.Element;
|
|
3
|
+
export declare const TruncateText: <TData extends RowData = RowData>({ getValue, value, textClassName, variant, component, copyable, copyButtonProps, side, sideOffset, bgClassName, arrowClassName, className, delayDuration, }: Props<TData>) => import('react').JSX.Element;
|
package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
|
+
import { Props as CopyButtonProps } from '../../../CopyButton/CopyButton.types';
|
|
2
3
|
import { Props as TooltipProps } from '../../../Tooltip/Tooltip.types';
|
|
4
|
+
import { Props as TypographyProps } from '../../../Typography/Typography.types';
|
|
3
5
|
import { RowData } from '../../VirtualizedTable.types';
|
|
4
|
-
export type Props<TData extends RowData> = CellContext<TData, string
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
export type Props<TData extends RowData = RowData> = Partial<CellContext<TData, string>> & Partial<Omit<TooltipProps, 'content' | 'children' | 'textClassName'>> & {
|
|
7
|
+
component?: TypographyProps['component'];
|
|
8
|
+
copyable?: boolean;
|
|
9
|
+
copyButtonProps?: Partial<Omit<CopyButtonProps, 'text'>>;
|
|
7
10
|
textClassName?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
variant?: TypographyProps['variant'];
|
|
8
13
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { Props, RowData } from '../../VirtualizedTable.types';
|
|
3
|
+
export declare const VirtualizedTableContent: <TData extends RowData>({ id, ariaLabel, columns, data, totalItems, className, classNameHeaderActiveArrows, classNameHeaderArrows, classNameHeaderTable, classNameTable, classNameWrapperTable, isLoading, emptyState, errorState, headerContent, classNameHeaderContent, classNameScrollContainer, getRowId, fetchData, queryOptions, showPagination: showPaginationProp, showTotalItems, showDropdownPagination, showDotPagination, showFormPagination, pageSizes, dropdownPaginationDirection, showFilter, showFilterInput, filterSearchPlaceholder, filters, multiSelectFilter, filterActions, showResetButton, resetButtonClassName, closeOnApply, enableHoverRow, classNameHoverRow, enableExpandedRow, expandedState, defaultExpanded, classNameExpandedRow, classNameExpandedCell, classNameExpandedContent, classNameExpandedHeader, classNameActiveExpandedRow, onExpandedChange, renderExpandedRow, keepExpandColumnVisible, }: Props<TData>) => JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './Actions/Actions';
|
|
2
2
|
export * from './Body/Body';
|
|
3
|
+
export * from './EmptyResults/EmptyResults';
|
|
4
|
+
export * from './EmptyState/EmptyState';
|
|
5
|
+
export * from './ErrorState/ErrorState';
|
|
3
6
|
export * from './Filter/Filter';
|
|
4
7
|
export * from './Header/Header';
|
|
5
8
|
export * from './Pagination/Pagination';
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
export * from './Alert/Alert';
|
|
2
2
|
export * from './AlertDialog/AlertDialog';
|
|
3
3
|
export * from './Autocomplete/Autocomplete';
|
|
4
|
+
export * from './Avatar/Avatar';
|
|
5
|
+
export * from './AvatarGroup/AvatarGroup';
|
|
4
6
|
export * from './Badge/Badge';
|
|
7
|
+
export * from './BadgeGroup/BadgeGroup';
|
|
5
8
|
export * from './Breadcrumb/Breadcrumb';
|
|
6
9
|
export * from './Button/Button';
|
|
7
10
|
export * from './ButtonGroup/ButtonGroup';
|
|
8
11
|
export * from './Card/Card';
|
|
9
12
|
export * from './Checkbox/Checkbox';
|
|
13
|
+
export * from './CheckboxCard/CheckboxCard';
|
|
14
|
+
export * from './Collapse/Collapse';
|
|
10
15
|
export * from './CopyButton/CopyButton';
|
|
16
|
+
export * from './ConfirmDialog/ConfirmDialog';
|
|
11
17
|
export type { Props as CopyButtonProps } from './CopyButton/CopyButton.types';
|
|
12
18
|
export * from './Counter/Counter';
|
|
13
19
|
export * from './Datepicker/DatePicker';
|
|
@@ -22,6 +28,8 @@ export * from './Input/Input';
|
|
|
22
28
|
export * from './LineChart/LineChart';
|
|
23
29
|
export * from './Loading/Loading';
|
|
24
30
|
export * from './Modal/Modal';
|
|
31
|
+
export * from './OtpInput/OtpInput';
|
|
32
|
+
export * from './PasswordRules/PasswordRules';
|
|
25
33
|
export * from './MultiSelectDropdown/MultiSelectDropdown';
|
|
26
34
|
export * from './PhoneNumberInput/PhoneNumberInput';
|
|
27
35
|
export * from './PieChart/PieChart';
|
|
@@ -33,6 +41,7 @@ export * from './RadioGroup/RadioGroup';
|
|
|
33
41
|
export * from './Range/Range';
|
|
34
42
|
export * from './Select/Select';
|
|
35
43
|
export * from './Sidebar/Sidebar';
|
|
44
|
+
export * from './Skeleton/Skeleton';
|
|
36
45
|
export * from './Slider/Slider';
|
|
37
46
|
export * from './Spinner/Spinner';
|
|
38
47
|
export * from './Stepper/Stepper';
|
|
@@ -41,6 +50,7 @@ export * from './Table/Table';
|
|
|
41
50
|
export * from './Tabs/Tabs';
|
|
42
51
|
export * from './Tag/Tag';
|
|
43
52
|
export * from './TagSelect/TagSelect';
|
|
53
|
+
export * from './TagsInput/TagsInput';
|
|
44
54
|
export * from './TextArea/TextArea';
|
|
45
55
|
export * from './TimePicker/TimePicker';
|
|
46
56
|
export * from './Toast/Toast';
|