@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.114
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/Breadcrumb-CpXRb08J.js +93 -0
- 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/Breadcrumb.js +1 -1
- 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/Radio/Radio.js +16 -16
- package/dist/components/Radio/Radio.variants.js +4 -1
- 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 +32 -32
- 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 +181 -155
- 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/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/Breadcrumb-CHi5-wVa.js +0 -81
- 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-CRPLONv9.js +0 -77
- 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,46 +1,48 @@
|
|
|
1
1
|
import { t as n } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import { ActionsList as
|
|
3
|
-
import { ActionsTrigger as
|
|
4
|
-
import { useActionsMenu as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { jsx as o, jsxs as
|
|
7
|
-
var
|
|
8
|
-
const { buttonRef:
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
ref:
|
|
11
|
-
className: n("group inline-flex",
|
|
12
|
-
onPointerEnter:
|
|
13
|
-
onPointerLeave:
|
|
14
|
-
onKeyDown:
|
|
15
|
-
children: [/* @__PURE__ */ o(
|
|
16
|
-
ref:
|
|
2
|
+
import { ActionsList as N } from "../ActionsList/ActionsList.js";
|
|
3
|
+
import { ActionsTrigger as C } from "../ActionsTrigger/ActionsTrigger.js";
|
|
4
|
+
import { useActionsMenu as K } from "./hooks/use-actions-menu/use-actions-menu.js";
|
|
5
|
+
import { createPortal as T } from "react-dom";
|
|
6
|
+
import { jsx as o, jsxs as E } from "react/jsx-runtime";
|
|
7
|
+
var z = ({ actions: s, disabledReasonSide: l, openOnHover: d = !0, wrapperClassName: m, triggerButtonClassName: c, iconTriggerButtonClassName: u, wrapperActionsClassName: f, wrapperContentActionsClassName: p, ...g }) => {
|
|
8
|
+
const { buttonRef: h, hasOpened: r, isOpen: e, menuId: i, menuRef: P, triggerRef: v, handleMenuKeyDown: w, handlePointerEnter: t, handlePointerLeave: a, handleTriggerClick: D, handleTriggerKeyDown: x, handleTriggerPointerDown: L, handleButtonPointerLeave: y, selectAndClose: A } = K({ openOnHover: d });
|
|
9
|
+
return /* @__PURE__ */ E("div", {
|
|
10
|
+
ref: v,
|
|
11
|
+
className: n("group inline-flex", m),
|
|
12
|
+
onPointerEnter: t,
|
|
13
|
+
onPointerLeave: a,
|
|
14
|
+
onKeyDown: x,
|
|
15
|
+
children: [/* @__PURE__ */ o(C, {
|
|
16
|
+
ref: h,
|
|
17
17
|
"aria-haspopup": "menu",
|
|
18
18
|
"aria-expanded": e,
|
|
19
19
|
"aria-controls": r ? i : void 0,
|
|
20
|
-
className:
|
|
21
|
-
iconClassName:
|
|
20
|
+
className: c,
|
|
21
|
+
iconClassName: u,
|
|
22
22
|
isOpen: e,
|
|
23
|
-
onClick:
|
|
24
|
-
onPointerDown:
|
|
25
|
-
|
|
23
|
+
onClick: D,
|
|
24
|
+
onPointerDown: L,
|
|
25
|
+
onPointerLeave: y
|
|
26
|
+
}), r && T(/* @__PURE__ */ o("div", {
|
|
26
27
|
id: i,
|
|
27
|
-
ref:
|
|
28
|
+
ref: P,
|
|
28
29
|
role: "menu",
|
|
29
30
|
hidden: !e,
|
|
30
|
-
className: n("fixed z-50 w-53.75",
|
|
31
|
-
onPointerEnter:
|
|
32
|
-
onPointerLeave:
|
|
31
|
+
className: n("fixed z-50 w-53.75", f),
|
|
32
|
+
onPointerEnter: t,
|
|
33
|
+
onPointerLeave: a,
|
|
33
34
|
onKeyDown: w,
|
|
34
|
-
children: /* @__PURE__ */ o(
|
|
35
|
+
children: /* @__PURE__ */ o(N, {
|
|
35
36
|
actions: s,
|
|
36
|
-
|
|
37
|
+
disabledReasonSide: l,
|
|
38
|
+
className: n("animate-in fade-in-0", p),
|
|
37
39
|
isMenu: !0,
|
|
38
|
-
rowData:
|
|
39
|
-
onSelect:
|
|
40
|
+
rowData: g.row.original,
|
|
41
|
+
onSelect: A
|
|
40
42
|
})
|
|
41
43
|
}), document.body)]
|
|
42
44
|
});
|
|
43
45
|
};
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
z as PortalActions
|
|
46
48
|
};
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { useMenuInteractions as
|
|
2
|
-
import { useMenuKeyboardNavigation as
|
|
3
|
-
import { useRowHighlight as
|
|
4
|
-
import { useCallback as
|
|
5
|
-
var
|
|
6
|
-
const [e,
|
|
7
|
-
|
|
8
|
-
}, []), { closeMenu: r, handlePointerEnter:
|
|
1
|
+
import { useMenuInteractions as P } from "../use-menu-interactions/use-menu-interactions.js";
|
|
2
|
+
import { useMenuKeyboardNavigation as b } from "../use-menu-keyboard-navigation/use-menu-keyboard-navigation.js";
|
|
3
|
+
import { useRowHighlight as y } from "../use-row-highlight/use-row-highlight.js";
|
|
4
|
+
import { useCallback as C, useId as D, useRef as o, useState as u } from "react";
|
|
5
|
+
var H = ({ openOnHover: a }) => {
|
|
6
|
+
const [e, l] = u(!1), [i, c] = u(!1), n = o(null), s = o(null), t = o(null), d = D(), g = C((w) => {
|
|
7
|
+
c(!0), l(w);
|
|
8
|
+
}, []), { closeMenu: r, handlePointerEnter: p, handlePointerLeave: f, handleTriggerClick: h, handleTriggerPointerDown: m, handleButtonPointerLeave: M, openMenu: I, selectAndClose: O } = P({
|
|
9
9
|
isOpen: e,
|
|
10
10
|
menuRef: t,
|
|
11
|
+
openOnHover: a,
|
|
11
12
|
triggerRef: n,
|
|
12
|
-
setIsOpen:
|
|
13
|
-
}), { handleMenuKeyDown:
|
|
13
|
+
setIsOpen: g
|
|
14
|
+
}), { handleMenuKeyDown: R, handleTriggerKeyDown: v } = b({
|
|
14
15
|
buttonRef: s,
|
|
15
16
|
isOpen: e,
|
|
16
17
|
menuRef: t,
|
|
17
18
|
closeMenu: r,
|
|
18
|
-
openMenu:
|
|
19
|
+
openMenu: I
|
|
19
20
|
});
|
|
20
|
-
return
|
|
21
|
+
return y({
|
|
21
22
|
isOpen: e,
|
|
22
23
|
triggerRef: n
|
|
23
24
|
}), {
|
|
24
25
|
buttonRef: s,
|
|
25
26
|
hasOpened: i,
|
|
26
27
|
isOpen: e,
|
|
27
|
-
menuId:
|
|
28
|
+
menuId: d,
|
|
28
29
|
menuRef: t,
|
|
29
30
|
triggerRef: n,
|
|
30
31
|
closeMenu: r,
|
|
31
|
-
handleMenuKeyDown:
|
|
32
|
-
handlePointerEnter:
|
|
33
|
-
handlePointerLeave:
|
|
34
|
-
handleTriggerClick:
|
|
35
|
-
handleTriggerKeyDown:
|
|
36
|
-
handleTriggerPointerDown: m
|
|
32
|
+
handleMenuKeyDown: R,
|
|
33
|
+
handlePointerEnter: p,
|
|
34
|
+
handlePointerLeave: f,
|
|
35
|
+
handleTriggerClick: h,
|
|
36
|
+
handleTriggerKeyDown: v,
|
|
37
|
+
handleTriggerPointerDown: m,
|
|
38
|
+
handleButtonPointerLeave: M,
|
|
39
|
+
selectAndClose: O
|
|
37
40
|
};
|
|
38
41
|
};
|
|
39
42
|
export {
|
|
40
|
-
|
|
43
|
+
H as useActionsMenu
|
|
41
44
|
};
|
|
@@ -1,72 +1,78 @@
|
|
|
1
1
|
import "../../constants/index.js";
|
|
2
|
-
import { useCallback as r, useEffect as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
clearTimeout(
|
|
6
|
-
}, [n]),
|
|
7
|
-
clearTimeout(
|
|
8
|
-
}, [n]),
|
|
9
|
-
|
|
2
|
+
import { useCallback as r, useEffect as y, useLayoutEffect as b, useRef as T } from "react";
|
|
3
|
+
var _ = ({ isOpen: l, menuRef: d, openOnHover: c, triggerRef: f, setIsOpen: n }) => {
|
|
4
|
+
const u = T(void 0), g = T(null), h = T(!1), m = r(() => {
|
|
5
|
+
clearTimeout(u.current), n(!0);
|
|
6
|
+
}, [n]), o = r(() => {
|
|
7
|
+
clearTimeout(u.current), n(!1);
|
|
8
|
+
}, [n]), p = r(() => {
|
|
9
|
+
h.current = !0, o();
|
|
10
|
+
}, [o]), w = r(() => {
|
|
11
|
+
clearTimeout(u.current), u.current = setTimeout(() => {
|
|
10
12
|
n(!1);
|
|
11
13
|
}, 100);
|
|
12
|
-
}, [n]),
|
|
13
|
-
t.pointerType
|
|
14
|
-
}, [
|
|
15
|
-
t.pointerType
|
|
16
|
-
}, [
|
|
17
|
-
|
|
18
|
-
}, []),
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
}, [n]), L = r((t) => {
|
|
15
|
+
!c || h.current || t.pointerType === "touch" || m();
|
|
16
|
+
}, [m, c]), M = r((t) => {
|
|
17
|
+
!c || t.pointerType === "touch" || w();
|
|
18
|
+
}, [c, w]), v = r(() => {
|
|
19
|
+
h.current = !1;
|
|
20
|
+
}, []), C = r((t) => {
|
|
21
|
+
g.current = t.pointerType;
|
|
22
|
+
}, []), P = r(() => {
|
|
23
|
+
const t = g.current;
|
|
24
|
+
if (g.current = null, h.current = !1, clearTimeout(u.current), c && t && t !== "touch") {
|
|
21
25
|
n(!0);
|
|
22
26
|
return;
|
|
23
27
|
}
|
|
24
28
|
n((e) => !e);
|
|
25
|
-
}, [n]);
|
|
26
|
-
|
|
27
|
-
clearTimeout(
|
|
29
|
+
}, [c, n]);
|
|
30
|
+
y(() => () => {
|
|
31
|
+
clearTimeout(u.current);
|
|
28
32
|
}, []);
|
|
29
|
-
const
|
|
30
|
-
const t =
|
|
33
|
+
const s = r(() => {
|
|
34
|
+
const t = f.current, e = d.current;
|
|
31
35
|
if (!t || !e) return;
|
|
32
|
-
const
|
|
33
|
-
e.style.top = `${Math.round(Math.max(a, 4))}px`, e.style.left = `${Math.round(Math.max(
|
|
34
|
-
}, [
|
|
35
|
-
return
|
|
36
|
-
l &&
|
|
37
|
-
}, [l,
|
|
36
|
+
const i = t.getBoundingClientRect(), a = i.bottom + 4 + e.offsetHeight <= window.innerHeight ? i.bottom + 4 : i.top - 4 - e.offsetHeight;
|
|
37
|
+
e.style.top = `${Math.round(Math.max(a, 4))}px`, e.style.left = `${Math.round(Math.max(i.right - e.offsetWidth, 4))}px`;
|
|
38
|
+
}, [d, f]);
|
|
39
|
+
return b(() => {
|
|
40
|
+
l && s();
|
|
41
|
+
}, [l, s]), y(() => {
|
|
38
42
|
if (!l) return;
|
|
39
43
|
const t = new AbortController(), e = (a) => {
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
a.key === "Escape" &&
|
|
44
|
+
const E = a.target;
|
|
45
|
+
f.current?.contains(E) || d.current?.contains(E) || o();
|
|
46
|
+
}, i = (a) => {
|
|
47
|
+
a.key === "Escape" && o();
|
|
44
48
|
};
|
|
45
|
-
return document.addEventListener("mousedown", e, { signal: t.signal }), document.addEventListener("keydown",
|
|
49
|
+
return document.addEventListener("mousedown", e, { signal: t.signal }), document.addEventListener("keydown", i, { signal: t.signal }), document.addEventListener("scroll", s, {
|
|
46
50
|
signal: t.signal,
|
|
47
51
|
capture: !0,
|
|
48
52
|
passive: !0
|
|
49
|
-
}), window.addEventListener("resize",
|
|
53
|
+
}), window.addEventListener("resize", s, {
|
|
50
54
|
signal: t.signal,
|
|
51
55
|
passive: !0
|
|
52
|
-
}), window.addEventListener("blur",
|
|
56
|
+
}), window.addEventListener("blur", o, { signal: t.signal }), () => {
|
|
53
57
|
t.abort();
|
|
54
58
|
};
|
|
55
59
|
}, [
|
|
56
60
|
l,
|
|
57
|
-
s,
|
|
58
61
|
d,
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
f,
|
|
63
|
+
o,
|
|
64
|
+
s
|
|
61
65
|
]), {
|
|
62
|
-
closeMenu:
|
|
63
|
-
handlePointerEnter:
|
|
64
|
-
handlePointerLeave:
|
|
65
|
-
handleTriggerClick:
|
|
66
|
-
handleTriggerPointerDown:
|
|
67
|
-
|
|
66
|
+
closeMenu: o,
|
|
67
|
+
handlePointerEnter: L,
|
|
68
|
+
handlePointerLeave: M,
|
|
69
|
+
handleTriggerClick: P,
|
|
70
|
+
handleTriggerPointerDown: C,
|
|
71
|
+
handleButtonPointerLeave: v,
|
|
72
|
+
openMenu: m,
|
|
73
|
+
selectAndClose: p
|
|
68
74
|
};
|
|
69
75
|
};
|
|
70
76
|
export {
|
|
71
|
-
|
|
77
|
+
_ as useMenuInteractions
|
|
72
78
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t } from "../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useTableContext as I } from "../../contexts/table.hook.js";
|
|
3
|
+
import { isPaginationBarVisible as T } from "../../utils/pagination.js";
|
|
4
|
+
import { n as q } from "../../../../table.provider-CW1fpZcF.js";
|
|
5
5
|
import { Skeleton as G } from "../Skeleton/Skeleton.js";
|
|
6
6
|
import { ExpandableRow as J } from "../ExpandableRow/ExpandableRow.js";
|
|
7
7
|
import { Fragment as K } from "react";
|
|
8
8
|
import { jsx as e, jsxs as Q } from "react/jsx-runtime";
|
|
9
9
|
var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) => {
|
|
10
|
-
const { table: m, pageSize: E, totalItems: R = -1 / 0, tableLoading: C, tableError: c, enableExpandedRow: D, classNameExpandedRow: _, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: u, classNameHoverRow: B, classNameActiveExpandedRow: V, renderExpandedRow: f, isBorderOnAdjacentCell: L, isExpandColumnVisible: A } =
|
|
10
|
+
const { table: m, pageSize: E, totalItems: R = -1 / 0, tableLoading: C, tableError: c, enableExpandedRow: D, classNameExpandedRow: _, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: u, classNameHoverRow: B, classNameActiveExpandedRow: V, renderExpandedRow: f, isBorderOnAdjacentCell: L, isExpandColumnVisible: A } = I();
|
|
11
11
|
if (v || C) return /* @__PURE__ */ e(G, {
|
|
12
12
|
numberOfRows: E,
|
|
13
13
|
table: m
|
|
14
14
|
});
|
|
15
|
-
const r = m.getRowModel().rows ?? [], d = N &&
|
|
15
|
+
const r = m.getRowModel().rows ?? [], d = N && T(R), x = r.length === 0 && !!c && !!a, h = r.length > 0 ? null : c && a ? typeof a == "function" ? a(c) : a : y ?? null;
|
|
16
16
|
if (h) {
|
|
17
17
|
const l = m.getVisibleLeafColumns().length;
|
|
18
18
|
return /* @__PURE__ */ e("tbody", {
|
|
@@ -53,7 +53,7 @@ var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) =>
|
|
|
53
53
|
}),
|
|
54
54
|
"data-expanded": n ? !0 : void 0,
|
|
55
55
|
...o.columnDef.meta?.attributes ?? {},
|
|
56
|
-
children:
|
|
56
|
+
children: q(o.columnDef.cell, O())
|
|
57
57
|
}, M);
|
|
58
58
|
})
|
|
59
59
|
}), H && /* @__PURE__ */ e(J, {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as o } from "../../../../utils-DnIJruo0.js";
|
|
2
2
|
import { t as u } from "../../../../chevron-up-B8hiVgxZ.js";
|
|
3
3
|
import { Typography as c } from "../../../Typography/Typography.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { listVariants as
|
|
6
|
-
import { listItemVariants as
|
|
7
|
-
import { selectVariants as
|
|
8
|
-
import { DEFAULT_PAGE_SIZES as
|
|
9
|
-
import { useTableContext as
|
|
10
|
-
import { useState as
|
|
4
|
+
import { a as v, i as b, r as w, t as P } from "../../../../dist-CQSCPpFc.js";
|
|
5
|
+
import { listVariants as S } from "../../../Select/components/List/List.variants.js";
|
|
6
|
+
import { listItemVariants as k } from "../../../Select/components/ListItem/ListItem.variants.js";
|
|
7
|
+
import { selectVariants as N } from "../../../Select/Select.variants.js";
|
|
8
|
+
import { DEFAULT_PAGE_SIZES as C } from "../../constants/pagination.js";
|
|
9
|
+
import { useTableContext as y } from "../../contexts/table.hook.js";
|
|
10
|
+
import { useState as z } from "react";
|
|
11
11
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
12
|
-
var _ = ({ pageSizes: d =
|
|
13
|
-
const { pageSize: i, onPageSize: g, handlePage: h } =
|
|
14
|
-
g(Number(t)), h(0),
|
|
15
|
-
},
|
|
12
|
+
var _ = ({ pageSizes: d = C, isListPortal: f = !1, direction: s = "auto" }) => {
|
|
13
|
+
const { pageSize: i, onPageSize: g, handlePage: h } = y(), [l, n] = z(!1), p = (t) => {
|
|
14
|
+
g(Number(t)), h(0), n(!1);
|
|
15
|
+
}, m = /* @__PURE__ */ e(w, {
|
|
16
16
|
asChild: !0,
|
|
17
17
|
side: s === "up" ? "top" : "bottom",
|
|
18
18
|
avoidCollisions: s === "auto",
|
|
@@ -24,19 +24,19 @@ var _ = ({ pageSizes: d = y, isListPortal: f = !1, direction: s = "auto" }) => {
|
|
|
24
24
|
children: /* @__PURE__ */ e("ul", {
|
|
25
25
|
role: "listbox",
|
|
26
26
|
"aria-label": "Rows per page",
|
|
27
|
-
className: o(
|
|
27
|
+
className: o(S(), "kvt-page-size-list", "static top-auto mt-0 z-50 w-(--radix-popover-trigger-width)"),
|
|
28
28
|
children: d.map((t) => {
|
|
29
29
|
const a = String(t);
|
|
30
30
|
return /* @__PURE__ */ e("li", {
|
|
31
31
|
role: "option",
|
|
32
32
|
"aria-selected": a === String(i),
|
|
33
33
|
tabIndex: 0,
|
|
34
|
-
className: o(
|
|
34
|
+
className: o(k(), "dark:bg-metal-800"),
|
|
35
35
|
onClick: () => {
|
|
36
|
-
|
|
36
|
+
p(a);
|
|
37
37
|
},
|
|
38
38
|
onKeyDown: (x) => {
|
|
39
|
-
x.key === "Enter" &&
|
|
39
|
+
x.key === "Enter" && p(a);
|
|
40
40
|
},
|
|
41
41
|
children: /* @__PURE__ */ e(c, {
|
|
42
42
|
variant: "body2",
|
|
@@ -49,21 +49,21 @@ var _ = ({ pageSizes: d = y, isListPortal: f = !1, direction: s = "auto" }) => {
|
|
|
49
49
|
});
|
|
50
50
|
return /* @__PURE__ */ r("div", {
|
|
51
51
|
className: "kvt-page-size flex items-center gap-2 dark:text-metal-300",
|
|
52
|
-
children: [/* @__PURE__ */ e("span", { children: "Show" }), /* @__PURE__ */ r(
|
|
53
|
-
open:
|
|
54
|
-
onOpenChange:
|
|
55
|
-
children: [/* @__PURE__ */ r(
|
|
52
|
+
children: [/* @__PURE__ */ e("span", { children: "Show" }), /* @__PURE__ */ r(P, {
|
|
53
|
+
open: l,
|
|
54
|
+
onOpenChange: n,
|
|
55
|
+
children: [/* @__PURE__ */ r(v, {
|
|
56
56
|
"aria-label": "Rows per page",
|
|
57
|
-
className: o(
|
|
57
|
+
className: o(N(), "w-22 bg-white"),
|
|
58
58
|
children: [/* @__PURE__ */ e(c, {
|
|
59
59
|
variant: "body2",
|
|
60
60
|
className: "flex-1 text-left text-sm text-metal-800 dark:text-metal-50",
|
|
61
61
|
children: i
|
|
62
62
|
}), /* @__PURE__ */ e(u, {
|
|
63
|
-
"data-state":
|
|
63
|
+
"data-state": l ? "open" : "closed",
|
|
64
64
|
className: "w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none"
|
|
65
65
|
})]
|
|
66
|
-
}), f ? /* @__PURE__ */ e(
|
|
66
|
+
}), f ? /* @__PURE__ */ e(b, { children: m }) : m]
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
69
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Button as n } from "../../../Button/Button.js";
|
|
2
|
+
import { useTableContext as l } from "../../contexts/table.hook.js";
|
|
3
|
+
import { sendResetFiltersEvent as p } from "../../events/filters/filters.js";
|
|
4
|
+
import { EmptyState as c } from "../EmptyState/EmptyState.js";
|
|
5
|
+
import { Fragment as d, jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
var f = ({ className: r, description: s = "Filters may be too restrictive.", image: o, resetLabel: a = "Reset filters", title: i = "No results", onResetFilters: t }) => {
|
|
7
|
+
const { tableId: m } = l();
|
|
8
|
+
return /* @__PURE__ */ e(c, {
|
|
9
|
+
className: r,
|
|
10
|
+
image: o,
|
|
11
|
+
title: i,
|
|
12
|
+
description: /* @__PURE__ */ u(d, { children: [s, /* @__PURE__ */ e(n, {
|
|
13
|
+
variant: "link",
|
|
14
|
+
appearance: "compact",
|
|
15
|
+
className: "p-0",
|
|
16
|
+
onClick: () => {
|
|
17
|
+
if (t) {
|
|
18
|
+
t();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
p(m);
|
|
22
|
+
},
|
|
23
|
+
children: a
|
|
24
|
+
})] })
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
f.displayName = "KonstructVirtualizedTableEmptyResults";
|
|
28
|
+
export {
|
|
29
|
+
f as EmptyResults
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as c } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { Typography as l } from "../../../Typography/Typography.js";
|
|
3
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
var n = ({ action: t, className: s, description: a, image: r, title: m }) => /* @__PURE__ */ i("div", {
|
|
5
|
+
className: c("flex flex-col items-center gap-4 px-4 py-20 text-center", s),
|
|
6
|
+
children: [
|
|
7
|
+
r && /* @__PURE__ */ e("div", {
|
|
8
|
+
className: "flex items-center justify-center",
|
|
9
|
+
children: r
|
|
10
|
+
}),
|
|
11
|
+
/* @__PURE__ */ e(l, {
|
|
12
|
+
variant: "subtitle3",
|
|
13
|
+
component: "h2",
|
|
14
|
+
className: "text-slate-800 dark:text-metal-50",
|
|
15
|
+
children: m
|
|
16
|
+
}),
|
|
17
|
+
a && /* @__PURE__ */ e(l, {
|
|
18
|
+
variant: "body2",
|
|
19
|
+
component: "p",
|
|
20
|
+
className: "flex flex-wrap items-center justify-center gap-1 text-slate-500 dark:text-metal-300",
|
|
21
|
+
children: a
|
|
22
|
+
}),
|
|
23
|
+
t && /* @__PURE__ */ e("div", {
|
|
24
|
+
className: "pt-2",
|
|
25
|
+
children: t
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
n.displayName = "KonstructVirtualizedTableEmptyState";
|
|
30
|
+
export {
|
|
31
|
+
n as EmptyState
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AlertOutlineIcon as s } from "../../../../assets/icons/components/AlertOutline.js";
|
|
2
|
+
import { Button as l } from "../../../Button/Button.js";
|
|
3
|
+
import { useTableContext as d } from "../../contexts/table.hook.js";
|
|
4
|
+
import { sendRefreshEvent as p } from "../../events/refresh/refresh.js";
|
|
5
|
+
import { EmptyState as c } from "../EmptyState/EmptyState.js";
|
|
6
|
+
import { Fragment as f, jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
7
|
+
var u = ({ className: t, description: a, icon: o = /* @__PURE__ */ e(s, {
|
|
8
|
+
size: 40,
|
|
9
|
+
className: "text-red-600 dark:text-red-400",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
}), retryLabel: n = "Refresh", title: i = "Something went wrong", onRetry: r }) => {
|
|
12
|
+
const { tableId: m } = d();
|
|
13
|
+
return /* @__PURE__ */ e(c, {
|
|
14
|
+
className: t,
|
|
15
|
+
image: o,
|
|
16
|
+
title: i,
|
|
17
|
+
description: /* @__PURE__ */ h(f, { children: [a, /* @__PURE__ */ e(l, {
|
|
18
|
+
variant: "link",
|
|
19
|
+
appearance: "compact",
|
|
20
|
+
className: "p-0",
|
|
21
|
+
onClick: () => {
|
|
22
|
+
if (r) {
|
|
23
|
+
r();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
p(m);
|
|
27
|
+
},
|
|
28
|
+
children: n
|
|
29
|
+
})] })
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
u.displayName = "KonstructVirtualizedTableErrorState";
|
|
33
|
+
export {
|
|
34
|
+
u as ErrorState
|
|
35
|
+
};
|
|
@@ -4,14 +4,14 @@ import { t as G } from "../../../../utils-DnIJruo0.js";
|
|
|
4
4
|
import { Button as H } from "../../../Button/Button.js";
|
|
5
5
|
import { resetEvent as J } from "../../../Filter/events/index.js";
|
|
6
6
|
import { Filter as a } from "../../../Filter/Filter.js";
|
|
7
|
-
import { t as K } from "../../../../debounce-
|
|
7
|
+
import { t as K } from "../../../../debounce-dMRJxNsT.js";
|
|
8
8
|
import { useTableContext as Q } from "../../contexts/table.hook.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { t as U } from "../../../../events.types-BG1Uh8i6.js";
|
|
10
|
+
import { getTableId as W } from "../../utils/get-table-id.js";
|
|
11
11
|
import { useEffect as X, useMemo as Y, useRef as Z } from "react";
|
|
12
12
|
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
13
13
|
var f = /* @__PURE__ */ V(K(), 1), ie = ({ id: F, actions: b, filters: v, multiSelectFilter: S, placeholder: R, showFilterInput: D = !0, showResetButton: w = !0, resetButtonClassName: T, closeOnApply: k = !0 }) => {
|
|
14
|
-
const l = Z(null), m =
|
|
14
|
+
const l = Z(null), m = W(F), { termOfSearch: x, multiselectSelected: M, dateFilters: E, dateRangeFilters: _, timeFilters: j, onChangeTermOfSearch: c, onSelectMultiselect: A, onSelectDateFilter: I, onSelectDateRangeFilter: d, onSelectTimeFilter: O } = Q(), B = [...v ?? S?.map((e) => ({
|
|
15
15
|
...e,
|
|
16
16
|
type: "badgeMultiSelect"
|
|
17
17
|
})) ?? [], ...b ?? []], h = (e, t) => {
|
|
@@ -21,7 +21,7 @@ var f = /* @__PURE__ */ V(K(), 1), ie = ({ id: F, actions: b, filters: v, multiS
|
|
|
21
21
|
};
|
|
22
22
|
X(() => {
|
|
23
23
|
const e = new AbortController();
|
|
24
|
-
return document.addEventListener(
|
|
24
|
+
return document.addEventListener(U.RESET_FILTERS, (t) => {
|
|
25
25
|
const { detail: o } = t;
|
|
26
26
|
o.tableId === m && (c(""), l.current && (l.current.value = ""), J(m));
|
|
27
27
|
}, { signal: e.signal }), () => e.abort();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t } from "../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useTableContext as g } from "../../contexts/table.hook.js";
|
|
3
|
+
import { n as k } from "../../../../table.provider-CW1fpZcF.js";
|
|
4
4
|
import u from "../../assets/chevron-up.js";
|
|
5
5
|
import C from "../../assets/chevron-down.js";
|
|
6
6
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
var D = ({ className: c, classNameArrows: i, classNameActiveArrows: l, classNameHeaderContent: m }) => {
|
|
8
|
-
const { table: s, headerContent: d, onSorting: n } =
|
|
8
|
+
const { table: s, headerContent: d, onSorting: n } = g(), p = (a) => {
|
|
9
9
|
n([{
|
|
10
10
|
id: a.id,
|
|
11
11
|
desc: !1
|
|
@@ -32,7 +32,7 @@ var D = ({ className: c, classNameArrows: i, classNameActiveArrows: l, className
|
|
|
32
32
|
className: t("kvt-header-cell", "px-4", "py-3", "text-left", "text-xs", !d && "first:rounded-tl-lg", !d && "last:rounded-tr-lg", "border-transparent", "dark:border-t", "dark:border-metal-700", "dark:first:border-l", "dark:last:border-r", e.columnDef.meta?.headerClassName),
|
|
33
33
|
children: /* @__PURE__ */ o("span", {
|
|
34
34
|
className: "flex items-center gap-2 w-full",
|
|
35
|
-
children: [
|
|
35
|
+
children: [k(e.columnDef.header, f()), e.getCanSort() && /* @__PURE__ */ o("div", {
|
|
36
36
|
className: t("flex flex-col text-slate-400 justify-center items-center gap-1", i),
|
|
37
37
|
role: "presentation",
|
|
38
38
|
children: [/* @__PURE__ */ r(u, {
|
|
@@ -1,43 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Typography as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return a(() => {
|
|
14
|
-
const e = new AbortController(), s = (0, L.default)(t, 300);
|
|
15
|
-
return window.addEventListener("resize", s, { signal: e.signal }), () => {
|
|
16
|
-
e.abort(), s.cancel();
|
|
1
|
+
import { t as g } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { Tooltip as j } from "../../../Tooltip/Tooltip.js";
|
|
3
|
+
import { Typography as E } from "../../../Typography/Typography.js";
|
|
4
|
+
import { CopyButton as L } from "../../../CopyButton/CopyButton.js";
|
|
5
|
+
import { useEffect as W, useState as l } from "react";
|
|
6
|
+
import { jsx as r, jsxs as z } from "react/jsx-runtime";
|
|
7
|
+
var q = ({ getValue: a, value: m, textClassName: f, variant: u, component: p = "p", copyable: d = !1, copyButtonProps: h, side: x = "bottom", sideOffset: T, bgClassName: b, arrowClassName: v, className: w, delayDuration: y = 0 }) => {
|
|
8
|
+
const [e, C] = l(null), [n, N] = l(!1), t = m ?? a?.().toLocaleLowerCase() ?? "";
|
|
9
|
+
W(() => {
|
|
10
|
+
if (!e) return;
|
|
11
|
+
const c = () => {
|
|
12
|
+
N(e.scrollWidth > e.clientWidth);
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
children:
|
|
39
|
-
});
|
|
14
|
+
c();
|
|
15
|
+
const i = new ResizeObserver(c);
|
|
16
|
+
return i.observe(e), () => {
|
|
17
|
+
i.disconnect();
|
|
18
|
+
};
|
|
19
|
+
}, [e, t]);
|
|
20
|
+
const o = /* @__PURE__ */ r(E, {
|
|
21
|
+
ref: C,
|
|
22
|
+
variant: u,
|
|
23
|
+
component: p,
|
|
24
|
+
className: g("w-full truncate", n && "cursor-pointer", f),
|
|
25
|
+
children: t
|
|
26
|
+
}), s = n ? /* @__PURE__ */ r(j, {
|
|
27
|
+
content: t,
|
|
28
|
+
side: x,
|
|
29
|
+
sideOffset: T,
|
|
30
|
+
bgClassName: b,
|
|
31
|
+
arrowClassName: v,
|
|
32
|
+
className: w,
|
|
33
|
+
delayDuration: y,
|
|
34
|
+
children: o
|
|
35
|
+
}) : o;
|
|
36
|
+
return d ? /* @__PURE__ */ z("div", {
|
|
37
|
+
className: "flex min-w-0 items-center gap-2",
|
|
38
|
+
children: [/* @__PURE__ */ r("span", {
|
|
39
|
+
className: "min-w-0 flex-1",
|
|
40
|
+
children: s
|
|
41
|
+
}), /* @__PURE__ */ r(L, {
|
|
42
|
+
text: t,
|
|
43
|
+
label: t,
|
|
44
|
+
...h
|
|
45
|
+
})]
|
|
46
|
+
}) : s;
|
|
40
47
|
};
|
|
41
48
|
export {
|
|
42
|
-
|
|
49
|
+
q as TruncateText
|
|
43
50
|
};
|