@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,13 +1,13 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { stepItemVariants as
|
|
3
|
-
import { StepItem as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { jsx as
|
|
6
|
-
var
|
|
7
|
-
const
|
|
1
|
+
import { t as l } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { stepItemVariants as b, stepListVariants as k, stepperVariants as C } from "./Stepper.variants.js";
|
|
3
|
+
import { StepItem as I } from "./components/StepItem/StepItem.js";
|
|
4
|
+
import { useMemo as L } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
var q = ({ className: u, classNames: i, clickable: f = !1, currentStep: a, fullWidth: n = !1, icons: p, orientation: v = "vertical", showConnector: h = !0, size: d = "sm", steps: m, theme: g, variant: z = "inline", onStepClick: V }) => {
|
|
7
|
+
const c = z ?? "inline", e = c === "horizontal" ? "horizontal" : v ?? "vertical", S = d ?? "sm", s = L(() => m.map((t, r) => t.status ? t : a !== void 0 ? r < a ? {
|
|
8
8
|
...t,
|
|
9
9
|
status: "completed"
|
|
10
|
-
} :
|
|
10
|
+
} : r === a ? {
|
|
11
11
|
...t,
|
|
12
12
|
status: "active"
|
|
13
13
|
} : {
|
|
@@ -16,33 +16,42 @@ var P = ({ className: u, classNames: r, clickable: c = !1, currentStep: a, icons
|
|
|
16
16
|
} : {
|
|
17
17
|
...t,
|
|
18
18
|
status: "pending"
|
|
19
|
-
}), [
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
className:
|
|
22
|
-
|
|
19
|
+
}), [m, a]);
|
|
20
|
+
return /* @__PURE__ */ o("nav", {
|
|
21
|
+
className: l(C({
|
|
22
|
+
orientation: e,
|
|
23
|
+
fullWidth: n
|
|
24
|
+
}), u, i?.root),
|
|
25
|
+
"data-theme": g,
|
|
23
26
|
"aria-label": "Progress steps",
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
className:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
children: /* @__PURE__ */ o("ol", {
|
|
28
|
+
className: l(k({
|
|
29
|
+
orientation: e,
|
|
30
|
+
fullWidth: n
|
|
31
|
+
}), i?.list),
|
|
32
|
+
children: s.map((t, r) => /* @__PURE__ */ o("li", {
|
|
33
|
+
className: l(b({
|
|
34
|
+
orientation: e,
|
|
35
|
+
fullWidth: n
|
|
36
|
+
}), i?.item),
|
|
37
|
+
children: /* @__PURE__ */ o(I, {
|
|
29
38
|
step: t,
|
|
30
|
-
index:
|
|
31
|
-
isLast:
|
|
32
|
-
orientation:
|
|
33
|
-
clickable:
|
|
34
|
-
onClick: () =>
|
|
35
|
-
size:
|
|
36
|
-
showConnector:
|
|
37
|
-
nextStepStatus:
|
|
38
|
-
variant:
|
|
39
|
-
classNames:
|
|
40
|
-
icons:
|
|
39
|
+
index: r,
|
|
40
|
+
isLast: r === s.length - 1,
|
|
41
|
+
orientation: e,
|
|
42
|
+
clickable: f ?? !1,
|
|
43
|
+
onClick: () => V?.(t, r),
|
|
44
|
+
size: S,
|
|
45
|
+
showConnector: h ?? !0,
|
|
46
|
+
nextStepStatus: s[r + 1]?.status,
|
|
47
|
+
variant: c,
|
|
48
|
+
classNames: i,
|
|
49
|
+
icons: p
|
|
41
50
|
})
|
|
42
51
|
}, t.id))
|
|
43
52
|
})
|
|
44
53
|
});
|
|
45
54
|
};
|
|
46
55
|
export {
|
|
47
|
-
|
|
56
|
+
q as Stepper
|
|
48
57
|
};
|
|
@@ -1,27 +1,63 @@
|
|
|
1
1
|
import { t } from "../../dist-B9GE4SXf.js";
|
|
2
2
|
var e = t(["flex"], {
|
|
3
|
-
variants: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
vertical: ["flex-col"],
|
|
6
|
+
horizontal: ["flex-row", "items-start"]
|
|
7
|
+
},
|
|
8
|
+
fullWidth: {
|
|
9
|
+
true: ["w-full"],
|
|
10
|
+
false: []
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
orientation: "vertical",
|
|
15
|
+
fullWidth: !1
|
|
16
|
+
}
|
|
8
17
|
}), r = t([
|
|
9
18
|
"flex",
|
|
10
19
|
"list-none",
|
|
11
20
|
"p-0",
|
|
12
21
|
"m-0"
|
|
13
22
|
], {
|
|
14
|
-
variants: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
variants: {
|
|
24
|
+
orientation: {
|
|
25
|
+
vertical: ["flex-col"],
|
|
26
|
+
horizontal: ["flex-row"]
|
|
27
|
+
},
|
|
28
|
+
fullWidth: {
|
|
29
|
+
true: ["w-full"],
|
|
30
|
+
false: []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
orientation: "vertical",
|
|
35
|
+
fullWidth: !1
|
|
36
|
+
}
|
|
19
37
|
}), i = t(["list-none"], {
|
|
20
|
-
variants: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
variants: {
|
|
39
|
+
orientation: {
|
|
40
|
+
vertical: [],
|
|
41
|
+
horizontal: []
|
|
42
|
+
},
|
|
43
|
+
fullWidth: {
|
|
44
|
+
true: [],
|
|
45
|
+
false: []
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
compoundVariants: [{
|
|
49
|
+
orientation: "horizontal",
|
|
50
|
+
fullWidth: !0,
|
|
51
|
+
class: [
|
|
52
|
+
"flex-1",
|
|
53
|
+
"min-w-0",
|
|
54
|
+
"last:flex-none"
|
|
55
|
+
]
|
|
56
|
+
}],
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
orientation: "vertical",
|
|
59
|
+
fullWidth: !1
|
|
60
|
+
}
|
|
25
61
|
}), n = t([
|
|
26
62
|
"flex",
|
|
27
63
|
"group",
|
|
@@ -59,7 +95,7 @@ var e = t(["flex"], {
|
|
|
59
95
|
variant: "inline",
|
|
60
96
|
clickable: !1
|
|
61
97
|
}
|
|
62
|
-
}),
|
|
98
|
+
}), l = t([
|
|
63
99
|
"flex",
|
|
64
100
|
"items-center",
|
|
65
101
|
"justify-center",
|
|
@@ -128,7 +164,7 @@ var e = t(["flex"], {
|
|
|
128
164
|
status: "pending",
|
|
129
165
|
size: "sm"
|
|
130
166
|
}
|
|
131
|
-
}),
|
|
167
|
+
}), s = t([
|
|
132
168
|
"flex",
|
|
133
169
|
"flex-col",
|
|
134
170
|
"gap-0.5"
|
|
@@ -308,9 +344,9 @@ var e = t(["flex"], {
|
|
|
308
344
|
export {
|
|
309
345
|
m as horizontalConnectorWrapperVariants,
|
|
310
346
|
c as stepConnectorVariants,
|
|
311
|
-
|
|
347
|
+
s as stepContentVariants,
|
|
312
348
|
d as stepDescriptionVariants,
|
|
313
|
-
|
|
349
|
+
l as stepIndicatorVariants,
|
|
314
350
|
i as stepItemVariants,
|
|
315
351
|
o as stepLabelVariants,
|
|
316
352
|
r as stepListVariants,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as f } from "../../../dist-
|
|
1
|
+
import { t as f } from "../../../dist-CK8FUUUn.js";
|
|
2
2
|
function b({ clickable: s, onClick: e, step: n }) {
|
|
3
3
|
const a = n.status ?? "pending", i = n.disabled || a === "active", c = !!(n.onClick || e), t = s && !i && c, r = typeof n.label == "string" ? "span" : f, l = () => {
|
|
4
4
|
t && (n.onClick ? n.onClick() : e && e());
|
|
@@ -1,28 +1,56 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { rootVariants as
|
|
4
|
-
import { Content as
|
|
5
|
-
import { List as
|
|
1
|
+
import { t as j } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { t as x } from "../../dist-C1a-68Kb.js";
|
|
3
|
+
import { rootVariants as F } from "./Tabs.variants.js";
|
|
4
|
+
import { Content as p } from "./components/Content.js";
|
|
5
|
+
import { List as h } from "./components/List.js";
|
|
6
6
|
import { Trigger as g } from "./components/Trigger.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
import { useEffect as L, useState as $ } from "react";
|
|
8
|
+
import { Fragment as y, jsx as m, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
var o = ({ children: v, className: C, defaultValue: c, items: r, listClassName: N, orientation: n, theme: T, value: u, onValueChange: b, ...V }) => {
|
|
10
|
+
const s = r?.at(0)?.value, [l, f] = $(c ?? s), t = !!r && u === void 0;
|
|
11
|
+
return L(() => {
|
|
12
|
+
t && (r.some((a) => a.value === l) || f(s));
|
|
13
|
+
}, [
|
|
14
|
+
s,
|
|
15
|
+
l,
|
|
16
|
+
t,
|
|
17
|
+
r
|
|
18
|
+
]), /* @__PURE__ */ d(x, {
|
|
19
|
+
...V,
|
|
20
|
+
value: t ? l : u,
|
|
21
|
+
defaultValue: t ? void 0 : c,
|
|
22
|
+
onValueChange: (a) => {
|
|
23
|
+
t && f(a), b?.(a);
|
|
24
|
+
},
|
|
25
|
+
"data-theme": T,
|
|
26
|
+
"data-orientation": n,
|
|
27
|
+
"aria-orientation": n,
|
|
28
|
+
className: j(F({
|
|
29
|
+
variant: n,
|
|
30
|
+
className: C
|
|
31
|
+
})),
|
|
32
|
+
children: [r ? /* @__PURE__ */ d(y, { children: [/* @__PURE__ */ m(h, {
|
|
33
|
+
orientation: n ?? "horizontal",
|
|
34
|
+
className: N,
|
|
35
|
+
children: r.map(({ label: a, triggerClassName: i, value: e }) => /* @__PURE__ */ m(g, {
|
|
36
|
+
tab: e,
|
|
37
|
+
label: a,
|
|
38
|
+
className: i
|
|
39
|
+
}, e))
|
|
40
|
+
}), r.map(({ content: a, contentClassName: i, value: e }) => /* @__PURE__ */ m(p, {
|
|
41
|
+
value: e,
|
|
42
|
+
className: i,
|
|
43
|
+
children: a
|
|
44
|
+
}, e))] }) : null, v]
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
o.displayName = "KonstructTabs";
|
|
48
|
+
o.Content = p;
|
|
49
|
+
o.List = h;
|
|
50
|
+
o.Trigger = g;
|
|
23
51
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
52
|
+
p as Content,
|
|
53
|
+
h as List,
|
|
54
|
+
o as Tabs,
|
|
27
55
|
g as Trigger
|
|
28
56
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { t
|
|
2
|
-
var r =
|
|
1
|
+
import { t } from "../../dist-B9GE4SXf.js";
|
|
2
|
+
var r = t([""], {
|
|
3
3
|
variants: { variant: {
|
|
4
4
|
horizontal: "",
|
|
5
5
|
vertical: "flex gap-6"
|
|
6
6
|
} },
|
|
7
7
|
defaultVariants: { variant: "horizontal" }
|
|
8
|
-
}), e =
|
|
8
|
+
}), e = t([""], {
|
|
9
9
|
variants: { variant: { default: "" } },
|
|
10
10
|
defaultVariants: { variant: "default" }
|
|
11
|
-
}), i =
|
|
11
|
+
}), i = t(["flex"], {
|
|
12
12
|
variants: { variant: {
|
|
13
13
|
default: "flex gap-6",
|
|
14
14
|
horizontal: "",
|
|
15
15
|
vertical: "flex-col min-w-33 h-full items-center"
|
|
16
16
|
} },
|
|
17
17
|
defaultVariants: { variant: "default" }
|
|
18
|
-
}),
|
|
18
|
+
}), f = t([
|
|
19
19
|
"cursor-pointer",
|
|
20
20
|
"h-[27px]",
|
|
21
21
|
"w-fit",
|
|
@@ -49,6 +49,15 @@ var r = a([""], {
|
|
|
49
49
|
"text-slate-500",
|
|
50
50
|
"font-semibold",
|
|
51
51
|
"dark:text-metal-400"
|
|
52
|
+
],
|
|
53
|
+
auto: [
|
|
54
|
+
"text-slate-500",
|
|
55
|
+
"font-semibold",
|
|
56
|
+
"dark:text-metal-400",
|
|
57
|
+
"group-data-[state=active]/tab:text-zinc-700",
|
|
58
|
+
"group-data-[state=active]/tab:after:scale-y-100",
|
|
59
|
+
"group-data-[state=active]/tab:hover:after:scale-y-140",
|
|
60
|
+
"dark:group-data-[state=active]/tab:text-metal-100"
|
|
52
61
|
]
|
|
53
62
|
} },
|
|
54
63
|
defaultVariants: { variant: "default" }
|
|
@@ -57,5 +66,5 @@ export {
|
|
|
57
66
|
e as contentVariants,
|
|
58
67
|
i as listVariants,
|
|
59
68
|
r as rootVariants,
|
|
60
|
-
|
|
69
|
+
f as triggerVariants
|
|
61
70
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as n } from "../../../utils-DnIJruo0.js";
|
|
2
|
+
import { n as r } from "../../../dist-C1a-68Kb.js";
|
|
3
3
|
import { contentVariants as m } from "../Tabs.variants.js";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
-
var e = ({ children: t, className:
|
|
6
|
-
...
|
|
7
|
-
className:
|
|
5
|
+
var e = ({ children: t, className: a, ...o }) => /* @__PURE__ */ s(r, {
|
|
6
|
+
...o,
|
|
7
|
+
className: n(m({
|
|
8
8
|
variant: "default",
|
|
9
|
-
className:
|
|
9
|
+
className: a
|
|
10
10
|
})),
|
|
11
11
|
children: t
|
|
12
12
|
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as a } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import { listVariants as
|
|
4
|
-
import { jsx as
|
|
5
|
-
var
|
|
6
|
-
className: a(
|
|
7
|
-
children: /* @__PURE__ */
|
|
8
|
-
className: a(
|
|
2
|
+
import { r as e } from "../../../dist-C1a-68Kb.js";
|
|
3
|
+
import { listVariants as r } from "../Tabs.variants.js";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
var l = ({ children: t, className: i, orientation: m, ...o }) => /* @__PURE__ */ s("div", {
|
|
6
|
+
className: a(r({ variant: "default" })),
|
|
7
|
+
children: /* @__PURE__ */ s(e, {
|
|
8
|
+
className: a(r({
|
|
9
9
|
variant: m,
|
|
10
10
|
className: i
|
|
11
11
|
})),
|
|
12
12
|
...o,
|
|
13
|
-
children:
|
|
13
|
+
children: t
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
l.displayName = "KonstructTabsList";
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
l as List
|
|
19
19
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { t as e } from "../../../utils-DnIJruo0.js";
|
|
2
2
|
import { Typography as m } from "../../Typography/Typography.js";
|
|
3
|
-
import { i as n } from "../../../dist-
|
|
3
|
+
import { i as n } from "../../../dist-C1a-68Kb.js";
|
|
4
4
|
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
5
|
-
import { jsx as
|
|
6
|
-
var s = ({ tab:
|
|
7
|
-
value:
|
|
8
|
-
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
var s = (r) => r === void 0 ? "auto" : r ? "active" : "inactive", g = ({ tab: r, label: t, isActive: i, className: o }) => /* @__PURE__ */ a(n, {
|
|
7
|
+
value: r,
|
|
8
|
+
className: "group/tab",
|
|
9
|
+
children: /* @__PURE__ */ a(m, {
|
|
9
10
|
variant: "body2",
|
|
10
11
|
component: "span",
|
|
11
12
|
className: e(p({
|
|
12
|
-
variant:
|
|
13
|
-
className:
|
|
13
|
+
variant: s(i),
|
|
14
|
+
className: o
|
|
14
15
|
})),
|
|
15
|
-
children:
|
|
16
|
+
children: t
|
|
16
17
|
})
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
+
g.displayName = "KonstructTabsTrigger";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
g as Trigger
|
|
21
22
|
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { n as te, t as x } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { LoaderIcon as re } from "../../assets/icons/components/Loader.js";
|
|
3
|
+
import { Badge as ae } from "../Badge/Badge.js";
|
|
4
|
+
import { Typography as w } from "../Typography/Typography.js";
|
|
5
|
+
import { forwardRef as ne, useId as le, useMemo as se, useRef as oe, useState as k } from "react";
|
|
6
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
var ie = ["Enter", ","], de = ne(({ className: K, commitOnBlur: M = !0, delimiters: S = ie, disabled: u = !1, error: h, errorClassName: $, helperText: I, helperTextClassName: O, id: U, isLoading: g = !1, isRequired: N = !1, label: b, labelAction: D, loadingText: v = "Loading suggestions", placeholder: q, suggestions: T = [], theme: H, value: r, onBlur: V, onChange: C, onFocus: _, ...G }, f) => {
|
|
8
|
+
const J = le(), o = U ?? J, E = `${o}-suggestions`, L = `${o}-error`, B = `${o}-helper-text`, F = oe(null), [l, R] = k(""), [j, i] = k(!1), [d, s] = k(-1), c = typeof h == "string" && h.length > 0, z = !c && !!I, P = te(c && L, z && B), n = se(() => {
|
|
9
|
+
const e = l.trim().toLowerCase();
|
|
10
|
+
return T.filter((t) => !r.includes(t) && t.toLowerCase().includes(e));
|
|
11
|
+
}, [
|
|
12
|
+
l,
|
|
13
|
+
T,
|
|
14
|
+
r
|
|
15
|
+
]), y = j && !u && (g || n.length > 0), Q = (e) => {
|
|
16
|
+
F.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
|
|
17
|
+
}, p = (e) => {
|
|
18
|
+
const t = e.trim();
|
|
19
|
+
t && !r.includes(t) && C([...r, t]), R(""), s(-1);
|
|
20
|
+
}, A = (e) => {
|
|
21
|
+
C(r.filter((t) => t !== e));
|
|
22
|
+
}, W = (e) => {
|
|
23
|
+
if (e.key === "ArrowDown" && n.length > 0) {
|
|
24
|
+
e.preventDefault(), i(!0), s((t) => (t + 1) % n.length);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (e.key === "ArrowUp" && n.length > 0) {
|
|
28
|
+
e.preventDefault(), s((t) => t <= 0 ? n.length - 1 : t - 1);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (e.key === "Escape") {
|
|
32
|
+
i(!1), s(-1);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (S.includes(e.key)) {
|
|
36
|
+
if (e.preventDefault(), j && d >= 0 && n[d]) {
|
|
37
|
+
p(n[d]);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
p(l);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
e.key === "Backspace" && l === "" && r.length > 0 && (e.preventDefault(), A(r[r.length - 1]));
|
|
44
|
+
}, X = (e) => {
|
|
45
|
+
R(e.target.value), i(!0), s(-1);
|
|
46
|
+
}, Y = (e) => {
|
|
47
|
+
i(!0), _?.(e);
|
|
48
|
+
}, Z = (e) => {
|
|
49
|
+
M && p(l), i(!1), s(-1), V?.(e);
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ m("div", {
|
|
52
|
+
className: "flex w-full flex-col gap-2",
|
|
53
|
+
"data-theme": H,
|
|
54
|
+
children: [
|
|
55
|
+
b || D ? /* @__PURE__ */ m("div", {
|
|
56
|
+
className: "flex items-center justify-between",
|
|
57
|
+
children: [b ? /* @__PURE__ */ m(w, {
|
|
58
|
+
component: "label",
|
|
59
|
+
variant: "labelLarge",
|
|
60
|
+
htmlFor: o,
|
|
61
|
+
className: "cursor-pointer text-slate-800 dark:text-metal-50",
|
|
62
|
+
children: [b, N ? /* @__PURE__ */ a("span", {
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
className: "ml-1 text-red-600 dark:text-red-500",
|
|
65
|
+
children: "*"
|
|
66
|
+
}) : null]
|
|
67
|
+
}) : null, D]
|
|
68
|
+
}) : null,
|
|
69
|
+
/* @__PURE__ */ m("div", {
|
|
70
|
+
role: "presentation",
|
|
71
|
+
className: x("relative flex min-h-10 w-full flex-wrap items-center gap-2 rounded border bg-white px-2.5 py-2 transition-all", "focus-within:border-transparent focus-within:ring-1", "dark:bg-metal-800", c ? "border-red-600 focus-within:ring-red-600 dark:border-red-500 dark:focus-within:ring-red-500" : "border-gray-200 focus-within:ring-aurora-500 dark:border-metal-700", u && "cursor-not-allowed bg-gray-100 dark:bg-metal-900", K),
|
|
72
|
+
onClick: () => {
|
|
73
|
+
F.current?.focus();
|
|
74
|
+
},
|
|
75
|
+
children: [
|
|
76
|
+
r.map((e) => /* @__PURE__ */ a(ae, {
|
|
77
|
+
label: e,
|
|
78
|
+
dismissible: !0,
|
|
79
|
+
onDismiss: () => {
|
|
80
|
+
u || A(e);
|
|
81
|
+
}
|
|
82
|
+
}, e)),
|
|
83
|
+
/* @__PURE__ */ a("input", {
|
|
84
|
+
...G,
|
|
85
|
+
ref: Q,
|
|
86
|
+
id: o,
|
|
87
|
+
type: "text",
|
|
88
|
+
role: "combobox",
|
|
89
|
+
value: l,
|
|
90
|
+
placeholder: r.length === 0 ? q : void 0,
|
|
91
|
+
disabled: u,
|
|
92
|
+
autoComplete: "off",
|
|
93
|
+
"aria-expanded": y,
|
|
94
|
+
"aria-controls": y ? E : void 0,
|
|
95
|
+
"aria-autocomplete": "list",
|
|
96
|
+
"aria-invalid": c || void 0,
|
|
97
|
+
"aria-describedby": P,
|
|
98
|
+
"aria-required": N || void 0,
|
|
99
|
+
className: "min-w-24 flex-1 bg-transparent text-sm text-slate-800 outline-none placeholder:text-slate-400 disabled:cursor-not-allowed dark:text-metal-50 dark:placeholder:text-metal-400",
|
|
100
|
+
onChange: X,
|
|
101
|
+
onKeyDown: W,
|
|
102
|
+
onFocus: Y,
|
|
103
|
+
onBlur: Z
|
|
104
|
+
}),
|
|
105
|
+
g ? /* @__PURE__ */ m("span", {
|
|
106
|
+
role: "status",
|
|
107
|
+
className: "flex items-center",
|
|
108
|
+
children: [/* @__PURE__ */ a(re, {
|
|
109
|
+
size: 16,
|
|
110
|
+
"aria-hidden": "true",
|
|
111
|
+
className: "animate-spin text-metal-400"
|
|
112
|
+
}), /* @__PURE__ */ a("span", {
|
|
113
|
+
className: "sr-only",
|
|
114
|
+
children: v
|
|
115
|
+
})]
|
|
116
|
+
}) : null,
|
|
117
|
+
y ? /* @__PURE__ */ a("div", {
|
|
118
|
+
id: E,
|
|
119
|
+
role: "listbox",
|
|
120
|
+
className: "absolute left-0 top-full z-10 mt-1 flex max-h-44 w-full flex-col overflow-y-auto rounded border border-gray-200 bg-white py-2 shadow-2xs animate-in fade-in-50 zoom-in-95 duration-200 dark:border-metal-700 dark:bg-metal-800",
|
|
121
|
+
children: g ? /* @__PURE__ */ a("span", {
|
|
122
|
+
className: "select-none px-6 py-1.5 text-sm text-slate-500 dark:text-metal-300",
|
|
123
|
+
children: v
|
|
124
|
+
}) : n.map((e, t) => /* @__PURE__ */ a("button", {
|
|
125
|
+
type: "button",
|
|
126
|
+
role: "option",
|
|
127
|
+
tabIndex: -1,
|
|
128
|
+
"aria-selected": t === d,
|
|
129
|
+
className: x("flex min-h-10 w-full cursor-pointer items-center px-6 py-1.5 text-left text-sm text-slate-800 transition-colors hover:bg-gray-50 dark:text-metal-50 dark:hover:bg-metal-700", t === d && "bg-gray-50 dark:bg-metal-700"),
|
|
130
|
+
onMouseDown: (ee) => {
|
|
131
|
+
ee.preventDefault();
|
|
132
|
+
},
|
|
133
|
+
onClick: () => {
|
|
134
|
+
p(e);
|
|
135
|
+
},
|
|
136
|
+
children: e
|
|
137
|
+
}, e))
|
|
138
|
+
}) : null
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
c ? /* @__PURE__ */ a(w, {
|
|
142
|
+
component: "span",
|
|
143
|
+
id: L,
|
|
144
|
+
className: x("text-xs tracking-normal text-red-700 dark:text-red-400", $),
|
|
145
|
+
children: h
|
|
146
|
+
}) : null,
|
|
147
|
+
z ? /* @__PURE__ */ a(w, {
|
|
148
|
+
component: "span",
|
|
149
|
+
id: B,
|
|
150
|
+
className: x("text-xs text-slate-600 dark:text-slate-200", O),
|
|
151
|
+
children: I
|
|
152
|
+
}) : null
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
de.displayName = "KonstructTagsInput";
|
|
157
|
+
export {
|
|
158
|
+
de as TagsInput
|
|
159
|
+
};
|
|
@@ -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
|
};
|