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