@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,5 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as D } from "../../utils-DnIJruo0.js";
|
|
3
|
+
import { useIsHydrated as L } from "../../hooks/useIsHydrated/useIsHydrated.js";
|
|
4
|
+
import { TOAST_TRANSITION as R } from "./constants/index.js";
|
|
5
|
+
import { useStackExpansion as b } from "./hooks/useStackExpansion/useStackExpansion.js";
|
|
6
|
+
import { useToastHeights as w } from "./hooks/useToastHeights/useToastHeights.js";
|
|
7
|
+
import { useToastSource as C } from "./hooks/useToastSource/useToastSource.js";
|
|
8
|
+
import { ToastCard as k } from "./components/ToastCard/ToastCard.js";
|
|
9
|
+
import { computeStackLayout as B } from "./utils/compute-stack-layout/compute-stack-layout.js";
|
|
10
|
+
import { useEffect as G } from "react";
|
|
11
|
+
import { createPortal as P } from "react-dom";
|
|
12
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
13
|
+
import { AnimatePresence as j, motion as z, useReducedMotion as F } from "motion/react";
|
|
14
|
+
var K = ({ autoWidth: l = !1, className: u, closeLabel: p = "Close toast", container: h, duration: n, hoverBehavior: g = "resume", isPortal: T = !0, label: S = "Notifications", limit: a, maxVisible: m = 3, theme: v, toasts: s, onDismiss: H }) => {
|
|
15
|
+
const c = F(), A = L(), { heights: E, setHeight: y, removeHeight: I } = w(), { expanded: _, regionHandlers: x } = b(), t = C({
|
|
16
|
+
toasts: s,
|
|
17
|
+
onDismiss: H
|
|
18
|
+
});
|
|
19
|
+
G(() => {
|
|
20
|
+
s || t.configure({
|
|
21
|
+
duration: n,
|
|
22
|
+
limit: a
|
|
23
|
+
});
|
|
24
|
+
}, [
|
|
25
|
+
s,
|
|
26
|
+
t.configure,
|
|
27
|
+
n,
|
|
28
|
+
a
|
|
29
|
+
]);
|
|
30
|
+
const e = t.toasts.slice().reverse(), d = _ && e.length > 0, { offsets: M, frontHeight: N, regionHeight: O } = B({
|
|
31
|
+
toasts: e,
|
|
32
|
+
heights: E,
|
|
33
|
+
expanded: d,
|
|
34
|
+
maxVisible: m
|
|
35
|
+
}), f = /* @__PURE__ */ r("section", {
|
|
36
|
+
"aria-label": S,
|
|
37
|
+
"data-theme": v,
|
|
38
|
+
className: D("fixed right-6 bottom-6 z-100 w-97.5 max-w-[calc(100vw-3rem)]", u),
|
|
39
|
+
style: { pointerEvents: e.length > 0 ? void 0 : "none" },
|
|
40
|
+
...x,
|
|
41
|
+
children: /* @__PURE__ */ r(z.ol, {
|
|
42
|
+
className: "relative m-0 list-none p-0",
|
|
43
|
+
animate: { height: O },
|
|
44
|
+
transition: c ? { duration: 0 } : R,
|
|
45
|
+
children: /* @__PURE__ */ r(j, { children: e.map((i, o) => /* @__PURE__ */ r(k, {
|
|
46
|
+
autoWidth: l,
|
|
47
|
+
closeLabel: p,
|
|
48
|
+
expanded: d,
|
|
49
|
+
frontHeight: N,
|
|
50
|
+
index: o,
|
|
51
|
+
offset: M[o] ?? 0,
|
|
52
|
+
reducedMotion: !!c,
|
|
53
|
+
restartOnLeave: g === "restart",
|
|
54
|
+
resumeDelay: (e.length - 1 - o) * 300,
|
|
55
|
+
toast: i,
|
|
56
|
+
total: e.length,
|
|
57
|
+
visible: o < m,
|
|
58
|
+
onDismiss: () => {
|
|
59
|
+
t.dismiss(i.id);
|
|
60
|
+
},
|
|
61
|
+
onExited: I,
|
|
62
|
+
onHeightChange: y
|
|
63
|
+
}, i.id)) })
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
return T ? A ? P(f, h ?? document.body) : null : f;
|
|
67
|
+
};
|
|
68
|
+
K.displayName = "KonstructToast";
|
|
3
69
|
export {
|
|
4
|
-
|
|
70
|
+
K as Toast
|
|
5
71
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as r } from "../../../../utils-DnIJruo0.js";
|
|
2
2
|
import { t as L } from "../../../../x-C8O1IsaM.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { Typography as h } from "../../../Typography/Typography.js";
|
|
4
|
+
import { COLLAPSED_SCALE_STEP as P, DEFAULT_TOAST_DURATION as D, TOAST_ENTER_TRANSITION as j, TOAST_EXIT_TRANSITION as B, TOAST_ICONS as F, TOAST_TRANSITION as U } from "../../constants/index.js";
|
|
5
|
+
import { useToastTimer as X } from "../../hooks/useToastTimer/useToastTimer.js";
|
|
6
|
+
import { toastCloseButtonVariants as k, toastDescriptionVariants as K, toastFrameVariants as q, toastIconVariants as G, toastTitleVariants as J, toastVariants as M } from "../../Toast.variants.js";
|
|
7
|
+
import { useEffect as Q, useRef as W } from "react";
|
|
8
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
import { motion as A, usePresence as Y } from "motion/react";
|
|
10
10
|
var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, offset: O, reducedMotion: S, restartOnLeave: v, resumeDelay: b, toast: _, total: w, visible: m, onDismiss: p, onExited: E, onHeightChange: d }) => {
|
|
11
|
-
const T =
|
|
12
|
-
|
|
11
|
+
const T = W(null), [C] = Y(), { description: o, duration: R = D, id: c, showCloseButton: V = !0, title: g, type: a = "info" } = _;
|
|
12
|
+
X({
|
|
13
13
|
duration: R,
|
|
14
14
|
paused: i,
|
|
15
15
|
restart: v,
|
|
16
16
|
resumeDelay: b,
|
|
17
17
|
onExpire: p
|
|
18
|
-
}),
|
|
18
|
+
}), Q(() => {
|
|
19
19
|
const e = T.current;
|
|
20
20
|
if (!e) return;
|
|
21
21
|
const N = () => {
|
|
@@ -27,13 +27,13 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
|
|
|
27
27
|
y.disconnect();
|
|
28
28
|
};
|
|
29
29
|
}, [c, d]);
|
|
30
|
-
const z =
|
|
31
|
-
...
|
|
32
|
-
x:
|
|
33
|
-
opacity:
|
|
30
|
+
const z = F[a], u = !i && n !== 0 && l !== 0, f = S ? { duration: 0 } : {
|
|
31
|
+
...U,
|
|
32
|
+
x: j,
|
|
33
|
+
opacity: B
|
|
34
34
|
};
|
|
35
|
-
return /* @__PURE__ */ t(
|
|
36
|
-
className: r("absolute right-0 bottom-0 origin-bottom will-change-transform", x ? "w-max max-w-[calc(100vw-3rem)]" : "max-w-full",
|
|
35
|
+
return /* @__PURE__ */ t(A.li, {
|
|
36
|
+
className: r("absolute right-0 bottom-0 origin-bottom will-change-transform", x ? "w-max max-w-[calc(100vw-3rem)]" : "max-w-full", q({ type: a })),
|
|
37
37
|
style: { zIndex: C ? w - n : 0 },
|
|
38
38
|
initial: {
|
|
39
39
|
x: "110%",
|
|
@@ -45,7 +45,7 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
|
|
|
45
45
|
x: 0,
|
|
46
46
|
opacity: m ? 1 : 0,
|
|
47
47
|
y: -O,
|
|
48
|
-
scale: i ? 1 : 1 - n *
|
|
48
|
+
scale: i ? 1 : 1 - n * P,
|
|
49
49
|
height: u ? l : "auto"
|
|
50
50
|
},
|
|
51
51
|
exit: { opacity: 0 },
|
|
@@ -54,27 +54,27 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
|
|
|
54
54
|
e === "exit" && E(c);
|
|
55
55
|
},
|
|
56
56
|
"aria-hidden": !m,
|
|
57
|
-
children: /* @__PURE__ */
|
|
57
|
+
children: /* @__PURE__ */ s("div", {
|
|
58
58
|
ref: T,
|
|
59
59
|
role: "status",
|
|
60
60
|
"aria-live": "polite",
|
|
61
61
|
"aria-atomic": "true",
|
|
62
|
-
className:
|
|
63
|
-
children: [/* @__PURE__ */
|
|
62
|
+
className: M(),
|
|
63
|
+
children: [/* @__PURE__ */ s("div", {
|
|
64
64
|
className: "flex items-center gap-8",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ s("div", {
|
|
66
66
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
67
67
|
children: [/* @__PURE__ */ t(z, {
|
|
68
|
-
size:
|
|
69
|
-
className: r(
|
|
70
|
-
}), /* @__PURE__ */ t(
|
|
71
|
-
variant:
|
|
72
|
-
className: r("min-w-0",
|
|
68
|
+
size: o ? 20 : 24,
|
|
69
|
+
className: r(G({ type: a }))
|
|
70
|
+
}), /* @__PURE__ */ t(h, {
|
|
71
|
+
variant: o ? "body2" : "body1",
|
|
72
|
+
className: r("min-w-0", J({ type: a })),
|
|
73
73
|
children: g
|
|
74
74
|
})]
|
|
75
|
-
}), V ? /* @__PURE__ */
|
|
75
|
+
}), V ? /* @__PURE__ */ s("button", {
|
|
76
76
|
type: "button",
|
|
77
|
-
className: r(
|
|
77
|
+
className: r(k({ type: a })),
|
|
78
78
|
onClick: p,
|
|
79
79
|
children: [/* @__PURE__ */ t(L, {
|
|
80
80
|
className: "size-5",
|
|
@@ -84,14 +84,14 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
|
|
|
84
84
|
children: I
|
|
85
85
|
})]
|
|
86
86
|
}) : null]
|
|
87
|
-
}),
|
|
87
|
+
}), o ? /* @__PURE__ */ t(A.div, {
|
|
88
88
|
className: "pl-7",
|
|
89
89
|
animate: { opacity: u ? 0 : 1 },
|
|
90
90
|
transition: f,
|
|
91
|
-
children: /* @__PURE__ */ t(
|
|
91
|
+
children: /* @__PURE__ */ t(h, {
|
|
92
92
|
variant: "body2",
|
|
93
|
-
className: r(
|
|
94
|
-
children:
|
|
93
|
+
className: r(K({ type: a })),
|
|
94
|
+
children: o
|
|
95
95
|
})
|
|
96
96
|
}) : null]
|
|
97
97
|
})
|
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
import { t
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children:
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { t } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { a as w, i as C, n as b, o as j, r as O, t as P } from "../../dist-vUCyiTQy.js";
|
|
3
|
+
import { useState as y } from "react";
|
|
4
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
var k = ({ content: o, children: i, asOverlay: r = !1, disabled: a = !1, overlayClassName: n, overlayLabel: p, wrapperClassName: m, side: d = "top", sideOffset: c = 4, bgClassName: f = "bg-slate-700", arrowClassName: h = "fill-slate-700", textClassName: g = "text-white", className: T, delayDuration: u = 0 }) => {
|
|
6
|
+
const [x, v] = y(!1), N = r ? /* @__PURE__ */ e("span", {
|
|
7
|
+
role: "img",
|
|
8
|
+
"aria-label": p ?? (typeof o == "string" ? o : void 0),
|
|
9
|
+
hidden: a,
|
|
10
|
+
className: t("absolute cursor-help", n ?? "inset-0")
|
|
11
|
+
}) : /* @__PURE__ */ e("span", { children: i }), l = /* @__PURE__ */ e(w, {
|
|
12
|
+
delayDuration: u,
|
|
13
|
+
children: /* @__PURE__ */ s(P, {
|
|
14
|
+
open: !a && x,
|
|
15
|
+
onOpenChange: v,
|
|
16
|
+
children: [/* @__PURE__ */ e(j, {
|
|
17
|
+
asChild: !0,
|
|
18
|
+
children: N
|
|
19
|
+
}), /* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(O, {
|
|
20
|
+
side: d,
|
|
21
|
+
sideOffset: c,
|
|
22
|
+
className: t("rounded px-2 py-1 text-xs shadow-md", "animate-in fade-in-0", f, g, T),
|
|
23
|
+
children: [o, /* @__PURE__ */ e(b, { className: h })]
|
|
24
|
+
}) })]
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
return r ? /* @__PURE__ */ s("div", {
|
|
28
|
+
className: t("relative", m),
|
|
29
|
+
children: [i, l]
|
|
30
|
+
}) : l;
|
|
31
|
+
};
|
|
16
32
|
export {
|
|
17
|
-
|
|
33
|
+
k as Tooltip
|
|
18
34
|
};
|
|
@@ -1,107 +1,38 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { Actions as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
d
|
|
20
|
-
].some(Boolean);
|
|
21
|
-
return /* @__PURE__ */ e(re, {
|
|
22
|
-
id: i,
|
|
23
|
-
columns: p,
|
|
24
|
-
data: v,
|
|
25
|
-
headerContent: A,
|
|
26
|
-
getRowId: y,
|
|
27
|
-
fetchData: z,
|
|
28
|
-
totalItems: u,
|
|
29
|
-
queryOptions: B,
|
|
30
|
-
isPaginationEnabled: r,
|
|
31
|
-
enableExpandedRow: O,
|
|
32
|
-
expandedState: Q,
|
|
33
|
-
onExpandedChange: L,
|
|
34
|
-
defaultExpanded: U,
|
|
35
|
-
classNameExpandedRow: X,
|
|
36
|
-
classNameExpandedCell: Y,
|
|
37
|
-
classNameExpandedContent: Z,
|
|
38
|
-
classNameExpandedHeader: _,
|
|
39
|
-
classNameActiveExpandedRow: $,
|
|
40
|
-
enableHoverRow: J,
|
|
41
|
-
classNameHoverRow: M,
|
|
42
|
-
renderExpandedRow: S,
|
|
43
|
-
keepExpandColumnVisible: D,
|
|
44
|
-
children: /* @__PURE__ */ o("section", {
|
|
45
|
-
className: l("kvt", "w-full min-w-fit", b),
|
|
46
|
-
children: [j && /* @__PURE__ */ e(ne, {
|
|
47
|
-
id: i,
|
|
48
|
-
actions: W,
|
|
49
|
-
filters: I,
|
|
50
|
-
multiSelectFilter: K,
|
|
51
|
-
placeholder: H,
|
|
52
|
-
showFilterInput: F,
|
|
53
|
-
showResetButton: q,
|
|
54
|
-
resetButtonClassName: C,
|
|
55
|
-
closeOnApply: G
|
|
56
|
-
}), /* @__PURE__ */ e("div", {
|
|
57
|
-
className: l("kvt-scroll", "w-full", s),
|
|
58
|
-
children: /* @__PURE__ */ o("div", {
|
|
59
|
-
className: "kvt-scroll-content w-full min-w-fit",
|
|
60
|
-
children: [/* @__PURE__ */ e(fe, {
|
|
61
|
-
showPagination: r,
|
|
62
|
-
classNameWrapperTable: h,
|
|
63
|
-
isLoading: a,
|
|
64
|
-
children: /* @__PURE__ */ o("table", {
|
|
65
|
-
className: l("kvt-table", "w-full border-collapse table-auto", "dark:border-separate dark:border-spacing-0", N),
|
|
66
|
-
"aria-label": f,
|
|
67
|
-
children: [/* @__PURE__ */ e(me, {
|
|
68
|
-
className: T,
|
|
69
|
-
classNameArrows: E,
|
|
70
|
-
classNameActiveArrows: w,
|
|
71
|
-
classNameHeaderContent: R
|
|
72
|
-
}), /* @__PURE__ */ e(se, {
|
|
73
|
-
isLoading: a,
|
|
74
|
-
showPagination: r,
|
|
75
|
-
emptyState: k,
|
|
76
|
-
errorState: x
|
|
77
|
-
})]
|
|
78
|
-
})
|
|
79
|
-
}), r && /* @__PURE__ */ e(ce, {
|
|
80
|
-
showTotalItems: n,
|
|
81
|
-
showDropdownPagination: m,
|
|
82
|
-
showDotPagination: c,
|
|
83
|
-
showFormPagination: d,
|
|
84
|
-
pageSizes: V,
|
|
85
|
-
isLoading: a,
|
|
86
|
-
isListPortal: !!s,
|
|
87
|
-
dropdownPaginationDirection: g
|
|
88
|
-
})]
|
|
89
|
-
})
|
|
90
|
-
})]
|
|
91
|
-
})
|
|
92
|
-
});
|
|
93
|
-
}, t = pe;
|
|
1
|
+
import { t as o } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { Actions as a } from "./components/Actions/Actions.js";
|
|
3
|
+
import { sendResetFiltersEvent as i } from "./events/filters/filters.js";
|
|
4
|
+
import { sendRefreshEvent as m } from "./events/refresh/refresh.js";
|
|
5
|
+
import { sendCollapseRowEvent as n, sendExpandRowEvent as s, sendToggleRowEvent as l } from "./events/row/row.js";
|
|
6
|
+
import { EmptyState as p } from "./components/EmptyState/EmptyState.js";
|
|
7
|
+
import { EmptyResults as f } from "./components/EmptyResults/EmptyResults.js";
|
|
8
|
+
import { ErrorState as u } from "./components/ErrorState/ErrorState.js";
|
|
9
|
+
import { TruncateText as d } from "./components/TruncateText/TruncateText.js";
|
|
10
|
+
import { Suspense as E, lazy as c } from "react";
|
|
11
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
12
|
+
var v = c(() => import("./components/VirtualizedTableContent/VirtualizedTableContent.js").then((e) => ({ default: e.VirtualizedTableContent }))), T = (e) => /* @__PURE__ */ r(E, {
|
|
13
|
+
fallback: /* @__PURE__ */ r("section", {
|
|
14
|
+
className: o("kvt", "w-full min-w-fit", e.className),
|
|
15
|
+
"aria-busy": "true"
|
|
16
|
+
}),
|
|
17
|
+
children: /* @__PURE__ */ r(v, { ...e })
|
|
18
|
+
}), t = T;
|
|
94
19
|
t.displayName = "KonstructVirtualizedTable";
|
|
95
|
-
t.TruncateText =
|
|
96
|
-
t.
|
|
20
|
+
t.TruncateText = d;
|
|
21
|
+
t.EmptyState = p;
|
|
22
|
+
t.EmptyResults = f;
|
|
23
|
+
t.ErrorState = u;
|
|
24
|
+
t.Actions = a;
|
|
97
25
|
t.Events = {
|
|
98
|
-
sendExpandRowEvent:
|
|
99
|
-
sendCollapseRowEvent:
|
|
100
|
-
sendToggleRowEvent:
|
|
101
|
-
sendResetFiltersEvent:
|
|
102
|
-
sendRefreshEvent:
|
|
26
|
+
sendExpandRowEvent: s,
|
|
27
|
+
sendCollapseRowEvent: n,
|
|
28
|
+
sendToggleRowEvent: l,
|
|
29
|
+
sendResetFiltersEvent: i,
|
|
30
|
+
sendRefreshEvent: m
|
|
103
31
|
};
|
|
104
32
|
export {
|
|
105
|
-
|
|
33
|
+
f as EmptyResults,
|
|
34
|
+
p as EmptyState,
|
|
35
|
+
u as ErrorState,
|
|
36
|
+
d as TruncateText,
|
|
106
37
|
t as VirtualizedTable
|
|
107
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
var e =
|
|
1
|
+
import { t as a } from "../../../../dist-B9GE4SXf.js";
|
|
2
|
+
var e = a([
|
|
3
3
|
"text-slate-400",
|
|
4
4
|
"group-hover:text-slate-800",
|
|
5
5
|
"group-hover:bg-aurora-50",
|
|
@@ -17,7 +17,7 @@ var e = r([
|
|
|
17
17
|
false: []
|
|
18
18
|
} },
|
|
19
19
|
defaultVariants: { isOpen: !1 }
|
|
20
|
-
}), t =
|
|
20
|
+
}), t = a([
|
|
21
21
|
"bg-white",
|
|
22
22
|
"py-2",
|
|
23
23
|
"rounded-lg",
|
|
@@ -26,7 +26,7 @@ var e = r([
|
|
|
26
26
|
"border-zinc-100",
|
|
27
27
|
"dark:bg-metal-800",
|
|
28
28
|
"dark:border-metal-700"
|
|
29
|
-
]), o =
|
|
29
|
+
]), o = a([
|
|
30
30
|
"w-full",
|
|
31
31
|
"text-slate-800",
|
|
32
32
|
"cursor-pointer",
|
|
@@ -45,7 +45,20 @@ var e = r([
|
|
|
45
45
|
"focus:no-underline",
|
|
46
46
|
"dark:hover:bg-metal-700",
|
|
47
47
|
"dark:focus:bg-metal-700"
|
|
48
|
-
]
|
|
48
|
+
], {
|
|
49
|
+
variants: { isDisabled: {
|
|
50
|
+
true: [
|
|
51
|
+
"cursor-not-allowed",
|
|
52
|
+
"text-slate-400",
|
|
53
|
+
"hover:bg-transparent",
|
|
54
|
+
"hover:text-slate-400",
|
|
55
|
+
"dark:text-metal-500",
|
|
56
|
+
"dark:hover:bg-transparent"
|
|
57
|
+
],
|
|
58
|
+
false: []
|
|
59
|
+
} },
|
|
60
|
+
defaultVariants: { isDisabled: !1 }
|
|
61
|
+
});
|
|
49
62
|
export {
|
|
50
63
|
o as actionsItemVariants,
|
|
51
64
|
t as actionsPanelVariants,
|
package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import { t as a } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import { Button as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { Button as I } from "../../../../../Button/Button.js";
|
|
3
|
+
import { Tooltip as V } from "../../../../../Tooltip/Tooltip.js";
|
|
4
|
+
import { actionsItemVariants as g, actionsPanelVariants as j } from "../../Actions.variants.js";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
var D = ({ actions: s, className: m, disabledReasonSide: c = "left", isMenu: l = !1, rowData: f, onSelect: p }) => /* @__PURE__ */ n("div", {
|
|
7
|
+
className: a(j(), m),
|
|
8
|
+
children: s.map(({ id: d, label: t, className: u, component: x = I, componentProps: v, disabled: N = !1, disabledReason: i, disabledReasonSide: h = c, onClick: k }, y) => {
|
|
9
|
+
const r = d ?? (typeof t == "string" ? t : `action-${y}`), e = N || !!i, o = /* @__PURE__ */ n(x, {
|
|
10
|
+
"aria-disabled": e || void 0,
|
|
11
|
+
className: a(g({ isDisabled: e }), u),
|
|
12
|
+
variant: "link",
|
|
13
|
+
onClick: () => {
|
|
14
|
+
e || (p?.(), k(f));
|
|
15
|
+
},
|
|
16
|
+
...l ? {
|
|
17
|
+
role: "menuitem",
|
|
18
|
+
tabIndex: -1
|
|
19
|
+
} : {},
|
|
20
|
+
...v,
|
|
21
|
+
children: t
|
|
22
|
+
}, r);
|
|
23
|
+
return i ? /* @__PURE__ */ n(V, {
|
|
24
|
+
side: h,
|
|
25
|
+
className: "z-50 max-w-40 text-center",
|
|
26
|
+
content: i,
|
|
27
|
+
children: o
|
|
28
|
+
}, r) : o;
|
|
29
|
+
})
|
|
20
30
|
});
|
|
21
31
|
export {
|
|
22
|
-
|
|
32
|
+
D as ActionsList
|
|
23
33
|
};
|
|
@@ -1,48 +1,81 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { ActionsList as
|
|
3
|
-
import { ActionsTrigger as
|
|
1
|
+
import { t as h } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { ActionsList as D } from "../ActionsList/ActionsList.js";
|
|
3
|
+
import { ActionsTrigger as H } from "../ActionsTrigger/ActionsTrigger.js";
|
|
4
4
|
import "./constants/index.js";
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { jsx as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
for (;
|
|
14
|
-
const { overflowY:
|
|
5
|
+
import { useEffect as M, useRef as j, useState as l } from "react";
|
|
6
|
+
import { jsx as a, jsxs as G } from "react/jsx-runtime";
|
|
7
|
+
var J = ({ actions: c, disabledReasonSide: w, openOnHover: r = !0, wrapperClassName: b, triggerButtonClassName: y, iconTriggerButtonClassName: E, wrapperActionsClassName: C, wrapperContentActionsClassName: I, ...S }) => {
|
|
8
|
+
const s = j(null), [p, A] = l(!1), [o, i] = l(!1), [N, u] = l(!1), d = () => {
|
|
9
|
+
const e = s.current;
|
|
10
|
+
if (!e) return;
|
|
11
|
+
const t = e.getBoundingClientRect(), R = c.length * 36 + 16;
|
|
12
|
+
let f = 0, m = window.innerHeight, n = e.parentElement;
|
|
13
|
+
for (; n; ) {
|
|
14
|
+
const { overflowY: B } = window.getComputedStyle(n);
|
|
15
15
|
if ([
|
|
16
16
|
"auto",
|
|
17
17
|
"scroll",
|
|
18
18
|
"hidden"
|
|
19
|
-
].includes(
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
].includes(B)) {
|
|
20
|
+
const v = n.getBoundingClientRect();
|
|
21
|
+
f = v.top, m = v.bottom;
|
|
22
22
|
break;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
n = n.parentElement;
|
|
25
|
+
}
|
|
26
|
+
const g = m - t.bottom, x = t.top - f;
|
|
27
|
+
A(g < R && x > g);
|
|
28
|
+
}, T = () => {
|
|
29
|
+
if (r) {
|
|
30
|
+
u(!0);
|
|
31
|
+
return;
|
|
25
32
|
}
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
i(!1);
|
|
34
|
+
}, k = () => {
|
|
35
|
+
r || (d(), i((e) => !e));
|
|
28
36
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
M(() => {
|
|
38
|
+
if (!o) return;
|
|
39
|
+
const e = new AbortController();
|
|
40
|
+
return document.addEventListener("mousedown", (t) => {
|
|
41
|
+
s.current?.contains(t.target) || i(!1);
|
|
42
|
+
}, { signal: e.signal }), document.addEventListener("keydown", (t) => {
|
|
43
|
+
t.key === "Escape" && i(!1);
|
|
44
|
+
}, { signal: e.signal }), () => {
|
|
45
|
+
e.abort();
|
|
46
|
+
};
|
|
47
|
+
}, [o]);
|
|
48
|
+
const L = r && !N;
|
|
49
|
+
return /* @__PURE__ */ G("div", {
|
|
50
|
+
ref: s,
|
|
51
|
+
className: h("relative group", b),
|
|
52
|
+
onMouseEnter: d,
|
|
53
|
+
onMouseLeave: () => {
|
|
54
|
+
u(!1);
|
|
55
|
+
},
|
|
56
|
+
children: [/* @__PURE__ */ a(H, {
|
|
57
|
+
className: y,
|
|
58
|
+
iconClassName: E,
|
|
59
|
+
isOpen: o,
|
|
60
|
+
onClick: k,
|
|
61
|
+
...r ? {} : { "aria-expanded": o }
|
|
62
|
+
}), /* @__PURE__ */ a("div", {
|
|
63
|
+
className: h("absolute", "right-0", "w-53.75", "z-10", p ? "bottom-full" : "top-full", p ? "pb-1" : "pt-1", "transition-[opacity,visibility]", "duration-150", o ? "visible opacity-100" : "invisible opacity-0 delay-150", L && [
|
|
64
|
+
"group-hover:visible",
|
|
65
|
+
"group-hover:opacity-100",
|
|
66
|
+
"group-hover:delay-0",
|
|
67
|
+
"group-hover:duration-75"
|
|
68
|
+
], C),
|
|
69
|
+
children: /* @__PURE__ */ a(D, {
|
|
70
|
+
actions: c,
|
|
71
|
+
disabledReasonSide: w,
|
|
72
|
+
className: I,
|
|
73
|
+
rowData: S.row.original,
|
|
74
|
+
onSelect: T
|
|
42
75
|
})
|
|
43
76
|
})]
|
|
44
77
|
});
|
|
45
78
|
};
|
|
46
79
|
export {
|
|
47
|
-
|
|
80
|
+
J as InlineActions
|
|
48
81
|
};
|