@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
package/dist/dist-CNui_Egg.js
DELETED
|
@@ -1,451 +0,0 @@
|
|
|
1
|
-
import { a as D } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { t as B } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { i as Pe, r as T, t as Re } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import { t as _e } from "./dist-pWlMx4Fi.js";
|
|
5
|
-
import { n as xe, t as Ee } from "./dist-DZ_SU77k.js";
|
|
6
|
-
import * as u from "react";
|
|
7
|
-
import { Fragment as ye, jsx as h, jsxs as Ce } from "react/jsx-runtime";
|
|
8
|
-
var Me = Object.defineProperty, Te = (t, e) => Me(t, "name", {
|
|
9
|
-
value: e,
|
|
10
|
-
configurable: !0
|
|
11
|
-
});
|
|
12
|
-
function j(t, [e, r]) {
|
|
13
|
-
return Math.min(r, Math.max(e, t));
|
|
14
|
-
}
|
|
15
|
-
Te(j, "clamp");
|
|
16
|
-
var De = Object.defineProperty, Ve = (t, e) => De(t, "name", {
|
|
17
|
-
value: e,
|
|
18
|
-
configurable: !0
|
|
19
|
-
});
|
|
20
|
-
function ne(t) {
|
|
21
|
-
const e = u.useRef({
|
|
22
|
-
value: t,
|
|
23
|
-
previous: t
|
|
24
|
-
});
|
|
25
|
-
return u.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
26
|
-
}
|
|
27
|
-
Ve(ne, "usePrevious");
|
|
28
|
-
var Ie = Object.defineProperty, c = (t, e) => Ie(t, "name", {
|
|
29
|
-
value: e,
|
|
30
|
-
configurable: !0
|
|
31
|
-
}), re = ["PageUp", "PageDown"], oe = [
|
|
32
|
-
"ArrowUp",
|
|
33
|
-
"ArrowDown",
|
|
34
|
-
"ArrowLeft",
|
|
35
|
-
"ArrowRight"
|
|
36
|
-
], ie = {
|
|
37
|
-
"from-left": [
|
|
38
|
-
"Home",
|
|
39
|
-
"PageDown",
|
|
40
|
-
"ArrowDown",
|
|
41
|
-
"ArrowLeft"
|
|
42
|
-
],
|
|
43
|
-
"from-right": [
|
|
44
|
-
"Home",
|
|
45
|
-
"PageDown",
|
|
46
|
-
"ArrowDown",
|
|
47
|
-
"ArrowRight"
|
|
48
|
-
],
|
|
49
|
-
"from-bottom": [
|
|
50
|
-
"Home",
|
|
51
|
-
"PageDown",
|
|
52
|
-
"ArrowDown",
|
|
53
|
-
"ArrowLeft"
|
|
54
|
-
],
|
|
55
|
-
"from-top": [
|
|
56
|
-
"Home",
|
|
57
|
-
"PageDown",
|
|
58
|
-
"ArrowUp",
|
|
59
|
-
"ArrowLeft"
|
|
60
|
-
]
|
|
61
|
-
}, A = "Slider", [U, Be, Ae] = xe(A), [Y, qe] = Pe(A, [Ae]), [Ke, K] = Y(A), Je = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
62
|
-
const { name: o, min: i = 0, max: n = 100, step: l = 1, orientation: s = "horizontal", disabled: d = !1, minStepsBetweenThumbs: f = 0, defaultValue: S = [i], value: p, onValueChange: a = /* @__PURE__ */ c(() => {
|
|
63
|
-
}, "onValueChange"), onValueCommit: m = /* @__PURE__ */ c(() => {
|
|
64
|
-
}, "onValueCommit"), inverted: P = !1, form: g, ...v } = e, w = u.useRef(/* @__PURE__ */ new Set()), R = u.useRef(0), x = u.useRef(!1), E = s === "horizontal" ? Fe : Ne, [_, O] = u.useState(null), be = D(r, O), [y = [], k] = Re({
|
|
65
|
-
prop: p,
|
|
66
|
-
defaultProp: S,
|
|
67
|
-
onChange: /* @__PURE__ */ c((b) => {
|
|
68
|
-
[...w.current][R.current]?.focus({
|
|
69
|
-
preventScroll: !0,
|
|
70
|
-
focusVisible: x.current
|
|
71
|
-
}), x.current = !1, a(b);
|
|
72
|
-
}, "onChange")
|
|
73
|
-
}), W = u.useRef(y), we = u.useRef(y);
|
|
74
|
-
u.useEffect(() => {
|
|
75
|
-
const b = g ? _?.ownerDocument.getElementById(g) : _?.closest("form");
|
|
76
|
-
if (b instanceof HTMLFormElement) {
|
|
77
|
-
const M = /* @__PURE__ */ c(() => k(we.current), "reset");
|
|
78
|
-
return b.addEventListener("reset", M), () => b.removeEventListener("reset", M);
|
|
79
|
-
}
|
|
80
|
-
}, [
|
|
81
|
-
_,
|
|
82
|
-
g,
|
|
83
|
-
k
|
|
84
|
-
]);
|
|
85
|
-
function q(b) {
|
|
86
|
-
C(b, me(y, b));
|
|
87
|
-
}
|
|
88
|
-
c(q, "handleSlideStart");
|
|
89
|
-
function J(b) {
|
|
90
|
-
C(b, R.current);
|
|
91
|
-
}
|
|
92
|
-
c(J, "handleSlideMove");
|
|
93
|
-
function Q() {
|
|
94
|
-
String(y) !== String(W.current) && m(y);
|
|
95
|
-
}
|
|
96
|
-
c(Q, "handleSlideEnd");
|
|
97
|
-
function C(b, M, { commit: z } = { commit: !1 }) {
|
|
98
|
-
const F = X(l), L = I(Math.round((b - i) / l) * l + i, F), Z = j(L, [i, n]);
|
|
99
|
-
k((N = []) => {
|
|
100
|
-
const V = de(N, Z, M);
|
|
101
|
-
if (pe(V, f * l)) {
|
|
102
|
-
R.current = V.indexOf(Z);
|
|
103
|
-
const ee = String(V) !== String(N);
|
|
104
|
-
return ee && z && m(V), ee ? V : N;
|
|
105
|
-
} else return N;
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
return c(C, "updateValues"), /* @__PURE__ */ h(Ke, {
|
|
109
|
-
scope: e.__scopeSlider,
|
|
110
|
-
name: o,
|
|
111
|
-
disabled: d,
|
|
112
|
-
min: i,
|
|
113
|
-
max: n,
|
|
114
|
-
valueIndexToChangeRef: R,
|
|
115
|
-
thumbs: w.current,
|
|
116
|
-
values: y,
|
|
117
|
-
orientation: s,
|
|
118
|
-
form: g,
|
|
119
|
-
children: /* @__PURE__ */ h(U.Provider, {
|
|
120
|
-
scope: e.__scopeSlider,
|
|
121
|
-
children: /* @__PURE__ */ h(U.Slot, {
|
|
122
|
-
scope: e.__scopeSlider,
|
|
123
|
-
children: /* @__PURE__ */ h(E, {
|
|
124
|
-
"aria-disabled": d,
|
|
125
|
-
"data-disabled": d ? "" : void 0,
|
|
126
|
-
...v,
|
|
127
|
-
ref: be,
|
|
128
|
-
onPointerDown: T(v.onPointerDown, () => {
|
|
129
|
-
d || (W.current = y, x.current = !1);
|
|
130
|
-
}),
|
|
131
|
-
min: i,
|
|
132
|
-
max: n,
|
|
133
|
-
inverted: P,
|
|
134
|
-
onSlideStart: d ? void 0 : q,
|
|
135
|
-
onSlideMove: d ? void 0 : J,
|
|
136
|
-
onSlideEnd: d ? void 0 : Q,
|
|
137
|
-
onHomeKeyDown: () => {
|
|
138
|
-
d || (x.current = !0, C(i, 0, { commit: !0 }));
|
|
139
|
-
},
|
|
140
|
-
onEndKeyDown: () => {
|
|
141
|
-
d || (x.current = !0, C(n, y.length - 1, { commit: !0 }));
|
|
142
|
-
},
|
|
143
|
-
onStepKeyDown: ({ event: b, direction: M }) => {
|
|
144
|
-
if (!d) {
|
|
145
|
-
x.current = !0;
|
|
146
|
-
const z = re.includes(b.key) || b.shiftKey && oe.includes(b.key) ? 10 : 1, F = R.current, L = y[F];
|
|
147
|
-
C(ge(L, {
|
|
148
|
-
min: i,
|
|
149
|
-
step: l,
|
|
150
|
-
direction: M,
|
|
151
|
-
multiplier: z
|
|
152
|
-
}), F, { commit: !0 });
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
})
|
|
158
|
-
});
|
|
159
|
-
}, "Slider")), [ae, se] = Y(A, {
|
|
160
|
-
startEdge: "left",
|
|
161
|
-
endEdge: "right",
|
|
162
|
-
size: "width",
|
|
163
|
-
direction: 1
|
|
164
|
-
}), Fe = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
165
|
-
const { min: o, max: i, dir: n, inverted: l, onSlideStart: s, onSlideMove: d, onSlideEnd: f, onStepKeyDown: S, ...p } = e, [a, m] = u.useState(null), P = D(r, m), g = u.useRef(void 0), v = Ee(n), w = v === "ltr", R = w && !l || !w && l;
|
|
166
|
-
function x(E) {
|
|
167
|
-
const _ = g.current || a.getBoundingClientRect(), O = H([0, _.width], R ? [o, i] : [i, o]);
|
|
168
|
-
return g.current = _, O(E - _.left);
|
|
169
|
-
}
|
|
170
|
-
return c(x, "getValueFromPointer"), /* @__PURE__ */ h(ae, {
|
|
171
|
-
scope: e.__scopeSlider,
|
|
172
|
-
startEdge: R ? "left" : "right",
|
|
173
|
-
endEdge: R ? "right" : "left",
|
|
174
|
-
direction: R ? 1 : -1,
|
|
175
|
-
size: "width",
|
|
176
|
-
children: /* @__PURE__ */ h(le, {
|
|
177
|
-
dir: v,
|
|
178
|
-
"data-orientation": "horizontal",
|
|
179
|
-
...p,
|
|
180
|
-
ref: P,
|
|
181
|
-
style: {
|
|
182
|
-
...p.style,
|
|
183
|
-
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
184
|
-
},
|
|
185
|
-
onSlideStart: (E) => {
|
|
186
|
-
const _ = x(E.clientX);
|
|
187
|
-
s?.(_);
|
|
188
|
-
},
|
|
189
|
-
onSlideMove: (E) => {
|
|
190
|
-
const _ = x(E.clientX);
|
|
191
|
-
d?.(_);
|
|
192
|
-
},
|
|
193
|
-
onSlideEnd: () => {
|
|
194
|
-
g.current = void 0, f?.();
|
|
195
|
-
},
|
|
196
|
-
onStepKeyDown: (E) => {
|
|
197
|
-
const _ = ie[R ? "from-left" : "from-right"].includes(E.key);
|
|
198
|
-
S?.({
|
|
199
|
-
event: E,
|
|
200
|
-
direction: _ ? -1 : 1
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
})
|
|
204
|
-
});
|
|
205
|
-
}, "SliderHorizontal")), Ne = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
206
|
-
const { min: o, max: i, inverted: n, onSlideStart: l, onSlideMove: s, onSlideEnd: d, onStepKeyDown: f, ...S } = e, p = u.useRef(null), a = D(r, p), m = u.useRef(void 0), P = !n;
|
|
207
|
-
function g(v) {
|
|
208
|
-
const w = m.current || p.current.getBoundingClientRect(), R = H([0, w.height], P ? [i, o] : [o, i]);
|
|
209
|
-
return m.current = w, R(v - w.top);
|
|
210
|
-
}
|
|
211
|
-
return c(g, "getValueFromPointer"), /* @__PURE__ */ h(ae, {
|
|
212
|
-
scope: e.__scopeSlider,
|
|
213
|
-
startEdge: P ? "bottom" : "top",
|
|
214
|
-
endEdge: P ? "top" : "bottom",
|
|
215
|
-
size: "height",
|
|
216
|
-
direction: P ? 1 : -1,
|
|
217
|
-
children: /* @__PURE__ */ h(le, {
|
|
218
|
-
"data-orientation": "vertical",
|
|
219
|
-
...S,
|
|
220
|
-
ref: a,
|
|
221
|
-
style: {
|
|
222
|
-
...S.style,
|
|
223
|
-
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
224
|
-
},
|
|
225
|
-
onSlideStart: (v) => {
|
|
226
|
-
const w = g(v.clientY);
|
|
227
|
-
l?.(w);
|
|
228
|
-
},
|
|
229
|
-
onSlideMove: (v) => {
|
|
230
|
-
const w = g(v.clientY);
|
|
231
|
-
s?.(w);
|
|
232
|
-
},
|
|
233
|
-
onSlideEnd: () => {
|
|
234
|
-
m.current = void 0, d?.();
|
|
235
|
-
},
|
|
236
|
-
onStepKeyDown: (v) => {
|
|
237
|
-
const w = ie[P ? "from-bottom" : "from-top"].includes(v.key);
|
|
238
|
-
f?.({
|
|
239
|
-
event: v,
|
|
240
|
-
direction: w ? -1 : 1
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
})
|
|
244
|
-
});
|
|
245
|
-
}, "SliderVertical")), le = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
246
|
-
const { __scopeSlider: o, onSlideStart: i, onSlideMove: n, onSlideEnd: l, onHomeKeyDown: s, onEndKeyDown: d, onStepKeyDown: f, ...S } = e, p = K(A, o);
|
|
247
|
-
return /* @__PURE__ */ h(B.span, {
|
|
248
|
-
...S,
|
|
249
|
-
ref: r,
|
|
250
|
-
onKeyDown: T(e.onKeyDown, (a) => {
|
|
251
|
-
a.key === "Home" ? (s(a), a.preventDefault()) : a.key === "End" ? (d(a), a.preventDefault()) : re.concat(oe).includes(a.key) && (f(a), a.preventDefault());
|
|
252
|
-
}),
|
|
253
|
-
onPointerDown: T(e.onPointerDown, (a) => {
|
|
254
|
-
const m = a.target;
|
|
255
|
-
m.setPointerCapture(a.pointerId), a.preventDefault(), p.thumbs.has(m) ? m.focus({
|
|
256
|
-
preventScroll: !0,
|
|
257
|
-
focusVisible: !1
|
|
258
|
-
}) : i(a);
|
|
259
|
-
}),
|
|
260
|
-
onPointerMove: T(e.onPointerMove, (a) => {
|
|
261
|
-
a.target.hasPointerCapture(a.pointerId) && n(a);
|
|
262
|
-
}),
|
|
263
|
-
onPointerUp: T(e.onPointerUp, (a) => {
|
|
264
|
-
const m = a.target;
|
|
265
|
-
m.hasPointerCapture(a.pointerId) && (m.releasePointerCapture(a.pointerId), l(a));
|
|
266
|
-
})
|
|
267
|
-
});
|
|
268
|
-
}, "SliderImpl")), He = "SliderTrack", Qe = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
269
|
-
const { __scopeSlider: o, ...i } = e, n = K(He, o);
|
|
270
|
-
return /* @__PURE__ */ h(B.span, {
|
|
271
|
-
"data-disabled": n.disabled ? "" : void 0,
|
|
272
|
-
"data-orientation": n.orientation,
|
|
273
|
-
...i,
|
|
274
|
-
ref: r
|
|
275
|
-
});
|
|
276
|
-
}, "SliderTrack")), te = "SliderRange", Ze = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
277
|
-
const { __scopeSlider: o, ...i } = e, n = K(te, o), l = se(te, o), s = u.useRef(null), d = D(r, s), f = n.values.length, S = n.values.map((m) => G(m, n.min, n.max)), p = f > 1 ? Math.min(...S) : 0, a = 100 - Math.max(...S);
|
|
278
|
-
return /* @__PURE__ */ h(B.span, {
|
|
279
|
-
"data-orientation": n.orientation,
|
|
280
|
-
"data-disabled": n.disabled ? "" : void 0,
|
|
281
|
-
...i,
|
|
282
|
-
ref: d,
|
|
283
|
-
style: {
|
|
284
|
-
...e.style,
|
|
285
|
-
[l.startEdge]: p + "%",
|
|
286
|
-
[l.endEdge]: a + "%"
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
}, "SliderRange")), [Oe, ce] = Y("SliderThumb"), ke = "SliderThumbProvider";
|
|
290
|
-
function ue(t) {
|
|
291
|
-
const { __scopeSlider: e, name: r, children: o, internal_do_not_use_render: i } = t, n = K(ke, e), l = Be(e), [s, d] = u.useState(null), f = u.useMemo(() => s ? l().findIndex((v) => v.ref.current === s) : -1, [l, s]), S = _e(s), p = s ? !!n.form || !!s.closest("form") : !0, a = n.values[f], m = r ?? (n.name ? n.name + (n.values.length > 1 ? "[]" : "") : void 0), P = a === void 0 ? 0 : G(a, n.min, n.max);
|
|
292
|
-
u.useEffect(() => {
|
|
293
|
-
if (s)
|
|
294
|
-
return n.thumbs.add(s), () => {
|
|
295
|
-
n.thumbs.delete(s);
|
|
296
|
-
};
|
|
297
|
-
}, [s, n.thumbs]);
|
|
298
|
-
const g = {
|
|
299
|
-
value: a,
|
|
300
|
-
name: m,
|
|
301
|
-
form: n.form,
|
|
302
|
-
isFormControl: p,
|
|
303
|
-
index: f,
|
|
304
|
-
thumb: s,
|
|
305
|
-
onThumbChange: d,
|
|
306
|
-
percent: P,
|
|
307
|
-
size: S
|
|
308
|
-
};
|
|
309
|
-
return /* @__PURE__ */ h(Oe, {
|
|
310
|
-
scope: e,
|
|
311
|
-
...g,
|
|
312
|
-
children: ve(i) ? i(g) : o
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
c(ue, "SliderThumbProvider");
|
|
316
|
-
var $ = "SliderThumbTrigger", ze = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
317
|
-
const { __scopeSlider: o, ...i } = e, n = K($, o), l = se($, o), { index: s, value: d, percent: f, size: S, onThumbChange: p } = ce($, o), a = D(r, p), m = fe(s, n.values.length), P = S?.[l.size], g = P ? Se(P, f, l.direction) : 0;
|
|
318
|
-
return /* @__PURE__ */ h("span", {
|
|
319
|
-
style: {
|
|
320
|
-
transform: "var(--radix-slider-thumb-transform)",
|
|
321
|
-
position: "absolute",
|
|
322
|
-
[l.startEdge]: `calc(${f}% + ${g}px)`
|
|
323
|
-
},
|
|
324
|
-
children: /* @__PURE__ */ h(U.ItemSlot, {
|
|
325
|
-
scope: o,
|
|
326
|
-
children: /* @__PURE__ */ h(B.span, {
|
|
327
|
-
role: "slider",
|
|
328
|
-
"aria-label": e["aria-label"] || m,
|
|
329
|
-
"aria-valuemin": n.min,
|
|
330
|
-
"aria-valuenow": d,
|
|
331
|
-
"aria-valuemax": n.max,
|
|
332
|
-
"aria-orientation": n.orientation,
|
|
333
|
-
"data-orientation": n.orientation,
|
|
334
|
-
"data-disabled": n.disabled ? "" : void 0,
|
|
335
|
-
tabIndex: n.disabled ? void 0 : 0,
|
|
336
|
-
...i,
|
|
337
|
-
ref: a,
|
|
338
|
-
style: d === void 0 ? { display: "none" } : e.style,
|
|
339
|
-
onFocus: T(e.onFocus, () => {
|
|
340
|
-
n.valueIndexToChangeRef.current = s;
|
|
341
|
-
})
|
|
342
|
-
})
|
|
343
|
-
})
|
|
344
|
-
});
|
|
345
|
-
}, "SliderThumbTrigger")), et = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function(e, r) {
|
|
346
|
-
const { __scopeSlider: o, name: i, ...n } = e;
|
|
347
|
-
return /* @__PURE__ */ h(ue, {
|
|
348
|
-
__scopeSlider: o,
|
|
349
|
-
name: i,
|
|
350
|
-
internal_do_not_use_render: ({ index: l, isFormControl: s }) => /* @__PURE__ */ Ce(ye, { children: [/* @__PURE__ */ h(ze, {
|
|
351
|
-
...n,
|
|
352
|
-
ref: r,
|
|
353
|
-
__scopeSlider: o
|
|
354
|
-
}), s ? /* @__PURE__ */ h($e, { __scopeSlider: o }, l) : null] })
|
|
355
|
-
});
|
|
356
|
-
}, "SliderThumb")), Le = "SliderBubbleInput", $e = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ c(function({ __scopeSlider: e, ...r }, o) {
|
|
357
|
-
const { value: i, name: n, form: l } = ce(Le, e), s = u.useRef(null), d = D(s, o), f = ne(i);
|
|
358
|
-
return u.useEffect(() => {
|
|
359
|
-
const S = s.current;
|
|
360
|
-
if (!S) return;
|
|
361
|
-
const p = window.HTMLInputElement.prototype, a = Object.getOwnPropertyDescriptor(p, "value").set;
|
|
362
|
-
if (f !== i && a) {
|
|
363
|
-
const m = new Event("input", { bubbles: !0 });
|
|
364
|
-
a.call(S, i), S.dispatchEvent(m);
|
|
365
|
-
}
|
|
366
|
-
}, [f, i]), /* @__PURE__ */ h(B.input, {
|
|
367
|
-
style: { display: "none" },
|
|
368
|
-
name: n,
|
|
369
|
-
form: l,
|
|
370
|
-
...r,
|
|
371
|
-
ref: d,
|
|
372
|
-
defaultValue: i
|
|
373
|
-
});
|
|
374
|
-
}, "SliderBubbleInput"));
|
|
375
|
-
function de(t = [], e, r) {
|
|
376
|
-
const o = [...t];
|
|
377
|
-
return o[r] = e, o.sort((i, n) => i - n);
|
|
378
|
-
}
|
|
379
|
-
c(de, "getNextSortedValues");
|
|
380
|
-
function G(t, e, r) {
|
|
381
|
-
const o = 100 / (r - e) * (t - e);
|
|
382
|
-
return j(o, [0, 100]);
|
|
383
|
-
}
|
|
384
|
-
c(G, "convertValueToPercentage");
|
|
385
|
-
function fe(t, e) {
|
|
386
|
-
return e > 2 ? `Value ${t + 1} of ${e}` : e === 2 ? ["Minimum", "Maximum"][t] : void 0;
|
|
387
|
-
}
|
|
388
|
-
c(fe, "getLabel");
|
|
389
|
-
function me(t, e) {
|
|
390
|
-
if (t.length === 1) return 0;
|
|
391
|
-
const r = t.map((i) => Math.abs(i - e)), o = Math.min(...r);
|
|
392
|
-
return r.indexOf(o);
|
|
393
|
-
}
|
|
394
|
-
c(me, "getClosestValueIndex");
|
|
395
|
-
function Se(t, e, r) {
|
|
396
|
-
const o = t / 2;
|
|
397
|
-
return (o - H([0, 50], [0, o])(e) * r) * r;
|
|
398
|
-
}
|
|
399
|
-
c(Se, "getThumbInBoundsOffset");
|
|
400
|
-
function he(t) {
|
|
401
|
-
return t.slice(0, -1).map((e, r) => t[r + 1] - e);
|
|
402
|
-
}
|
|
403
|
-
c(he, "getStepsBetweenValues");
|
|
404
|
-
function pe(t, e) {
|
|
405
|
-
if (e > 0) {
|
|
406
|
-
const r = he(t);
|
|
407
|
-
return Math.min(...r) >= e;
|
|
408
|
-
}
|
|
409
|
-
return !0;
|
|
410
|
-
}
|
|
411
|
-
c(pe, "hasMinStepsBetweenValues");
|
|
412
|
-
function H(t, e) {
|
|
413
|
-
return (r) => {
|
|
414
|
-
if (t[0] === t[1] || e[0] === e[1]) return e[0];
|
|
415
|
-
const o = (e[1] - e[0]) / (t[1] - t[0]);
|
|
416
|
-
return e[0] + o * (r - t[0]);
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
c(H, "linearScale");
|
|
420
|
-
function X(t) {
|
|
421
|
-
if (!Number.isFinite(t)) return 0;
|
|
422
|
-
const e = t.toString();
|
|
423
|
-
if (e.includes("e")) {
|
|
424
|
-
const [o, i] = e.split("e"), n = o.split(".")[1] || "", l = Number(i);
|
|
425
|
-
return Math.max(0, n.length - l);
|
|
426
|
-
}
|
|
427
|
-
const r = e.split(".")[1];
|
|
428
|
-
return r ? r.length : 0;
|
|
429
|
-
}
|
|
430
|
-
c(X, "getDecimalCount");
|
|
431
|
-
function I(t, e) {
|
|
432
|
-
const r = Math.pow(10, e);
|
|
433
|
-
return Math.round(t * r) / r;
|
|
434
|
-
}
|
|
435
|
-
c(I, "roundValue");
|
|
436
|
-
function ge(t, { min: e, step: r, direction: o, multiplier: i }) {
|
|
437
|
-
const n = X(r), l = (t - e) / r, s = Math.round(l), d = I(s * r + e, n) === I(t, n);
|
|
438
|
-
let f;
|
|
439
|
-
return d ? f = s + i * o : o > 0 ? f = Math.ceil(l) : f = Math.floor(l), I(f * r + e, n);
|
|
440
|
-
}
|
|
441
|
-
c(ge, "getNextStepValue");
|
|
442
|
-
function ve(t) {
|
|
443
|
-
return typeof t == "function";
|
|
444
|
-
}
|
|
445
|
-
c(ve, "isFunction");
|
|
446
|
-
export {
|
|
447
|
-
Qe as i,
|
|
448
|
-
Ze as n,
|
|
449
|
-
et as r,
|
|
450
|
-
Je as t
|
|
451
|
-
};
|
package/dist/dist-CR3FMRzF.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { t as m } from "./dist-CCdbu9GU.js";
|
|
2
|
-
import { i as P, r as p, t as S } from "./dist-D-yS0HN8.js";
|
|
3
|
-
import { n as M } from "./dist-D70ZJkHf.js";
|
|
4
|
-
import { t as x } from "./dist-BUocnzkM.js";
|
|
5
|
-
import { t as y } from "./dist-DZ_SU77k.js";
|
|
6
|
-
import { n as E, r as R, t as F } from "./dist-Bi8Y5nEx.js";
|
|
7
|
-
import * as f from "react";
|
|
8
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
9
|
-
var w = Object.defineProperty, v = (i, e) => w(i, "name", {
|
|
10
|
-
value: e,
|
|
11
|
-
configurable: !0
|
|
12
|
-
}), C = "Tabs", [D, U] = P(C, [R]), A = R(), [V, I] = D(C), G = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
13
|
-
const { __scopeTabs: s, value: t, onValueChange: r, defaultValue: c, orientation: a = "horizontal", dir: u, activationMode: T = "automatic", ...g } = e, n = y(u), [o, b] = S({
|
|
14
|
-
prop: t,
|
|
15
|
-
onChange: r,
|
|
16
|
-
defaultProp: c ?? "",
|
|
17
|
-
caller: C
|
|
18
|
-
});
|
|
19
|
-
return /* @__PURE__ */ d(V, {
|
|
20
|
-
scope: s,
|
|
21
|
-
baseId: M(),
|
|
22
|
-
value: o,
|
|
23
|
-
onValueChange: b,
|
|
24
|
-
orientation: a,
|
|
25
|
-
dir: n,
|
|
26
|
-
activationMode: T,
|
|
27
|
-
children: /* @__PURE__ */ d(m.div, {
|
|
28
|
-
dir: n,
|
|
29
|
-
"data-orientation": a,
|
|
30
|
-
...g,
|
|
31
|
-
ref: l
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
}, "Tabs")), L = "TabsList", N = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
35
|
-
const { __scopeTabs: s, loop: t = !0, ...r } = e, c = I(L, s), a = A(s);
|
|
36
|
-
return /* @__PURE__ */ d(E, {
|
|
37
|
-
asChild: !0,
|
|
38
|
-
...a,
|
|
39
|
-
orientation: c.orientation,
|
|
40
|
-
dir: c.dir,
|
|
41
|
-
loop: t,
|
|
42
|
-
children: /* @__PURE__ */ d(m.div, {
|
|
43
|
-
role: "tablist",
|
|
44
|
-
"aria-orientation": c.orientation,
|
|
45
|
-
...r,
|
|
46
|
-
ref: l
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}, "TabsList")), $ = "TabsTrigger", k = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
50
|
-
const { __scopeTabs: s, value: t, disabled: r = !1, ...c } = e, a = I($, s), u = A(s), T = _(a.baseId, t), g = h(a.baseId, t), n = t === a.value;
|
|
51
|
-
return /* @__PURE__ */ d(F, {
|
|
52
|
-
asChild: !0,
|
|
53
|
-
...u,
|
|
54
|
-
focusable: !r,
|
|
55
|
-
active: n,
|
|
56
|
-
children: /* @__PURE__ */ d(m.button, {
|
|
57
|
-
type: "button",
|
|
58
|
-
role: "tab",
|
|
59
|
-
"aria-selected": n,
|
|
60
|
-
"aria-controls": g,
|
|
61
|
-
"data-state": n ? "active" : "inactive",
|
|
62
|
-
"data-disabled": r ? "" : void 0,
|
|
63
|
-
disabled: r,
|
|
64
|
-
id: T,
|
|
65
|
-
...c,
|
|
66
|
-
ref: l,
|
|
67
|
-
onMouseDown: p(e.onMouseDown, (o) => {
|
|
68
|
-
!r && o.button === 0 && o.ctrlKey === !1 ? a.onValueChange(t) : o.preventDefault();
|
|
69
|
-
}),
|
|
70
|
-
onKeyDown: p(e.onKeyDown, (o) => {
|
|
71
|
-
r || o.target !== o.currentTarget || [" ", "Enter"].includes(o.key) && a.onValueChange(t);
|
|
72
|
-
}),
|
|
73
|
-
onFocus: p(e.onFocus, () => {
|
|
74
|
-
const o = a.activationMode !== "manual";
|
|
75
|
-
!n && !r && o && a.onValueChange(t);
|
|
76
|
-
})
|
|
77
|
-
})
|
|
78
|
-
});
|
|
79
|
-
}, "TabsTrigger")), K = "TabsContent", j = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
80
|
-
const { __scopeTabs: s, value: t, forceMount: r, children: c, ...a } = e, u = I(K, s), T = _(u.baseId, t), g = h(u.baseId, t), n = t === u.value, o = f.useRef(n);
|
|
81
|
-
return f.useEffect(() => {
|
|
82
|
-
const b = requestAnimationFrame(() => o.current = !1);
|
|
83
|
-
return () => cancelAnimationFrame(b);
|
|
84
|
-
}, []), /* @__PURE__ */ d(x, {
|
|
85
|
-
present: r || n,
|
|
86
|
-
children: ({ present: b }) => /* @__PURE__ */ d(m.div, {
|
|
87
|
-
"data-state": n ? "active" : "inactive",
|
|
88
|
-
"data-orientation": u.orientation,
|
|
89
|
-
role: "tabpanel",
|
|
90
|
-
"aria-labelledby": T,
|
|
91
|
-
hidden: !b,
|
|
92
|
-
id: g,
|
|
93
|
-
tabIndex: 0,
|
|
94
|
-
...a,
|
|
95
|
-
ref: l,
|
|
96
|
-
style: {
|
|
97
|
-
...e.style,
|
|
98
|
-
animationDuration: o.current ? "0s" : void 0
|
|
99
|
-
},
|
|
100
|
-
children: b && c
|
|
101
|
-
})
|
|
102
|
-
});
|
|
103
|
-
}, "TabsContent"));
|
|
104
|
-
function _(i, e) {
|
|
105
|
-
return `${i}-trigger-${e}`;
|
|
106
|
-
}
|
|
107
|
-
v(_, "makeTriggerId");
|
|
108
|
-
function h(i, e) {
|
|
109
|
-
return `${i}-content-${e}`;
|
|
110
|
-
}
|
|
111
|
-
v(h, "makeContentId");
|
|
112
|
-
var W = G, X = N, Y = k, Z = j;
|
|
113
|
-
export {
|
|
114
|
-
Y as i,
|
|
115
|
-
X as n,
|
|
116
|
-
W as r,
|
|
117
|
-
Z as t
|
|
118
|
-
};
|