@koide-labs/ui 0.0.0 → 0.0.2
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/README.md +53 -3
- package/{src/-types.ts → dist/-types.d.ts} +1 -6
- package/dist/-types.js +1 -0
- package/dist/-utils.d.ts +19 -0
- package/dist/-utils.js +33 -0
- package/dist/Button-DrPFFzo7.js +31 -0
- package/dist/CompositeRoot-CVk5a-pR.js +233 -0
- package/dist/DirectionContext-C2o_MF_i.js +9 -0
- package/dist/FieldItemContext-DAvk99to.js +11 -0
- package/dist/FloatingPortal-tWyuKRSN.js +435 -0
- package/dist/FloatingPortalLite-DVyq6YhV.js +28 -0
- package/dist/InternalBackdrop-jYAiOJ8v.js +574 -0
- package/dist/LabelableContext-BMvjVwor.js +169 -0
- package/dist/ToolbarRootContext-CvvL0Tk1.js +9 -0
- package/dist/clamp-D0KDAQIz.js +6 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/accordion/index.d.ts +12 -0
- package/dist/components/accordion/index.js +699 -0
- package/dist/components/alert-dialog/index.d.ts +26 -0
- package/dist/components/alert-dialog/index.js +136 -0
- package/dist/components/anchor/index.d.ts +8 -0
- package/dist/components/anchor/index.js +38 -0
- package/dist/components/avatar/index.d.ts +21 -0
- package/dist/components/avatar/index.js +161 -0
- package/dist/components/badge/index.d.ts +16 -0
- package/dist/components/badge/index.js +40 -0
- package/dist/components/button/index.d.ts +24 -0
- package/dist/components/button/index.js +47 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +269 -0
- package/dist/components/code/index.d.ts +9 -0
- package/dist/components/code/index.js +10 -0
- package/dist/components/collapse/index.d.ts +11 -0
- package/dist/components/collapse/index.js +41 -0
- package/dist/components/command/index.d.ts +14 -0
- package/dist/components/command/index.js +1695 -0
- package/dist/components/context-menu/index.d.ts +42 -0
- package/dist/components/context-menu/index.js +1444 -0
- package/dist/components/dialog/index.d.ts +48 -0
- package/dist/components/dialog/index.js +138 -0
- package/dist/components/heading/index.d.ts +44 -0
- package/dist/components/heading/index.js +56 -0
- package/dist/components/icon/icon-names.d.ts +1 -0
- package/dist/components/icon/icon-names.js +1 -0
- package/dist/components/icon/index.d.ts +24 -0
- package/dist/components/icon/index.js +43 -0
- package/dist/components/icon-button/index.d.ts +12 -0
- package/dist/components/icon-button/index.js +45 -0
- package/dist/components/inline-code/index.d.ts +6 -0
- package/dist/components/inline-code/index.js +22 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.js +119 -0
- package/dist/components/meter/index.d.ts +18 -0
- package/dist/components/meter/index.js +165 -0
- package/dist/components/multiline-input/index.d.ts +6 -0
- package/dist/components/multiline-input/index.js +100 -0
- package/dist/components/number-input/index.d.ts +10 -0
- package/dist/components/number-input/index.js +1169 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.js +29 -0
- package/dist/components/pill/index.d.ts +13 -0
- package/dist/components/pill/index.js +38 -0
- package/dist/components/popover/index.d.ts +21 -0
- package/dist/components/popover/index.js +636 -0
- package/dist/components/preview-card/index.d.ts +17 -0
- package/dist/components/preview-card/index.js +402 -0
- package/dist/components/radio/index.d.ts +13 -0
- package/dist/components/radio/index.js +404 -0
- package/dist/components/search-bar/index.d.ts +12 -0
- package/dist/components/search-bar/index.js +48 -0
- package/dist/components/select/index.d.ts +16 -0
- package/dist/components/select/index.js +1263 -0
- package/dist/components/separator/index.d.ts +7 -0
- package/dist/components/separator/index.js +6 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/index.js +902 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.js +13 -0
- package/dist/components/stacked-avatars/index.d.ts +14 -0
- package/dist/components/stacked-avatars/index.js +92 -0
- package/dist/components/status-banner/index.d.ts +17 -0
- package/dist/components/status-banner/index.js +69 -0
- package/dist/components/surface/index.d.ts +27 -0
- package/dist/components/surface/index.js +41 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/index.js +196 -0
- package/dist/components/tabs/index.d.ts +18 -0
- package/dist/components/tabs/index.js +509 -0
- package/dist/components/text/index.d.ts +26 -0
- package/dist/components/text/index.js +51 -0
- package/dist/components/theme-provider/index.d.ts +2 -0
- package/dist/components/theme-provider/index.js +6 -0
- package/dist/components/theme-provider/theme-context.d.ts +9 -0
- package/dist/components/theme-provider/theme-context.js +13 -0
- package/dist/components/theme-provider/theme-provider.d.ts +17 -0
- package/dist/components/theme-provider/theme-provider.js +30 -0
- package/dist/components/timestamp/index.d.ts +23 -0
- package/dist/components/timestamp/index.js +1392 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.js +7 -0
- package/dist/components/toast/toast.d.ts +2 -0
- package/dist/components/toast/toast.js +878 -0
- package/dist/components/toast/use-toast-manager.d.ts +27 -0
- package/dist/components/toast/use-toast-manager.js +4 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +712 -0
- package/dist/components/tooltip/tooltip-arrow.d.ts +3 -0
- package/dist/components/tooltip/tooltip-arrow.js +6 -0
- package/dist/components/view/index.d.ts +30 -0
- package/dist/components/view/index.js +84 -0
- package/dist/components/visually-hidden/index.d.ts +1 -0
- package/dist/components/visually-hidden/index.js +4 -0
- package/dist/composite-Bx7Szd_T.js +208 -0
- package/dist/composite-C9L5QmZL.js +66 -0
- package/dist/createBaseUIEventDetails-D8M2Yl-a.js +59 -0
- package/dist/detectBrowser-I-s3yzIE.js +43 -0
- package/dist/dialog.css +1 -0
- package/dist/dialog.module-BeF-6XAo.js +415 -0
- package/dist/element-CZEOj04G.js +80 -0
- package/dist/event-CKoGyQEJ.js +30 -0
- package/dist/floating-ui.utils-C7pRWMZ_.js +128 -0
- package/dist/floating-ui.utils.dom-C7FS5id0.js +135 -0
- package/dist/formatErrorMessage-BqPuTBN-.js +7 -0
- package/dist/formatNumber-1UNwjeqf.js +25 -0
- package/dist/getDisabledMountTransitionStyles-YfHPge6T.js +1510 -0
- package/dist/index-BX1XbbRk.js +1206 -0
- package/dist/index-CeuccO-T.js +109 -0
- package/dist/index-DN9Bn1qm.js +29 -0
- package/dist/index-FMoPxlJ2.js +52 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +108 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index18.css +1 -0
- package/dist/index19.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index20.css +1 -0
- package/dist/index21.css +1 -0
- package/dist/index22.css +1 -0
- package/dist/index23.css +1 -0
- package/dist/index24.css +1 -0
- package/dist/index25.css +1 -0
- package/dist/index26.css +1 -0
- package/dist/index27.css +1 -0
- package/dist/index28.css +1 -0
- package/dist/index29.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index30.css +1 -0
- package/dist/index31.css +1 -0
- package/dist/index32.css +1 -0
- package/dist/index33.css +1 -0
- package/dist/index34.css +1 -0
- package/dist/index35.css +1 -0
- package/dist/index36.css +1 -0
- package/dist/index37.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/inertValue-BCYGsdmf.js +7 -0
- package/dist/input.css +1 -0
- package/dist/input.module-DDQY_Ij6.js +7 -0
- package/dist/integrations/react-markdown/index.d.ts +5 -0
- package/dist/integrations/react-markdown/index.js +6895 -0
- package/dist/integrations/remix/index.d.ts +9 -0
- package/{src/integrations/remix.ts → dist/integrations/remix/index.js} +7 -4
- package/dist/integrations/tailwind.css +1 -0
- package/dist/integrations/twemoij/index.d.ts +3 -0
- package/dist/integrations/twemoij/index.js +18 -0
- package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
- package/dist/owner-rKN292Q9.js +6 -0
- package/dist/safePolygon-DWy1dGKJ.js +308 -0
- package/dist/styles/core.css +1 -0
- package/dist/styles/tokens.d.ts +400 -0
- package/{src/styles/tokens.ts → dist/styles/tokens.js} +54 -96
- package/dist/toast.css +1 -0
- package/dist/tooltip-arrow-C1qXdi5T.js +24 -0
- package/dist/tooltip-arrow.css +1 -0
- package/dist/transitions.css +1 -0
- package/dist/transitions.module-CWX8e5cx.js +1343 -0
- package/dist/use-toast-manager-Dq-44AuW.js +37 -0
- package/dist/useAnimationFrame-451ugS_6.js +68 -0
- package/dist/useBaseUiId-B7WyxtIE.js +7 -0
- package/dist/useButton-DfIwsdb8.js +127 -0
- package/dist/useCompositeListItem-OkcAim_1.js +148 -0
- package/dist/useControlled-Du4sJyMj.js +31 -0
- package/dist/useHoverReferenceInteraction-SfOBPoXM.js +264 -0
- package/dist/useId-C5kyn6tA.js +22 -0
- package/dist/useIsoLayoutEffect-CIDbvm3Q.js +6 -0
- package/dist/useLabelableId-Ci_jDvmv.js +29 -0
- package/dist/useOnMount-VRW6CK2u.js +8 -0
- package/dist/useOpenChangeComplete-Dse9kY9E.js +61 -0
- package/dist/usePopupAutoResize-CNR6Ekmx.js +85 -0
- package/dist/useRender-CLx7dR_1.js +7 -0
- package/dist/useRenderElement-DwToLA61.js +244 -0
- package/dist/useRole-oDBdbuwQ.js +77 -0
- package/dist/useStableCallback-CkTrVkNX.js +29 -0
- package/dist/useSyncedFloatingRootContext-Dorsv-jf.js +167 -0
- package/dist/useTimeout-CflX-kz3.js +32 -0
- package/dist/useTransitionStatus-CUfcuGAV.js +42 -0
- package/dist/useTypeahead-D85V2IUx.js +333 -0
- package/dist/useValueAsRef-HURLzret.js +19 -0
- package/dist/useValueChanged-DL757-yD.js +14 -0
- package/dist/valueToPercent-DaP9qN4u.js +6 -0
- package/dist/view.css +1 -0
- package/dist/view.module-DfDLgJE0.js +6 -0
- package/dist/visuallyHidden-CpJ-mhai.js +16 -0
- package/dist/warn-CKtX8MLJ.js +11 -0
- package/package.json +18 -2
- package/.husky/pre-commit +0 -1
- package/.storybook/main.ts +0 -25
- package/.storybook/preview-head.html +0 -6
- package/.storybook/preview.tsx +0 -48
- package/.storybook/vitest.setup.ts +0 -8
- package/eslint.config.mjs +0 -29
- package/lint-staged.config.js +0 -15
- package/pnpm-workspace.yaml +0 -2
- package/postcss.config.mjs +0 -7
- package/prettier.config.mjs +0 -24
- package/scripts/build-icon-types.ts +0 -38
- package/src/-utils.tsx +0 -64
- package/src/components/accordion/accordion.module.css +0 -44
- package/src/components/accordion/accordion.stories.tsx +0 -36
- package/src/components/accordion/index.tsx +0 -67
- package/src/components/alert-dialog/alert-dialog.module.css +0 -5
- package/src/components/alert-dialog/alert-dialog.stories.tsx +0 -53
- package/src/components/alert-dialog/index.tsx +0 -138
- package/src/components/anchor/anchor.module.css +0 -18
- package/src/components/anchor/anchor.stories.tsx +0 -28
- package/src/components/anchor/index.tsx +0 -45
- package/src/components/avatar/avatar.module.css +0 -56
- package/src/components/avatar/avatar.stories.tsx +0 -61
- package/src/components/avatar/index.tsx +0 -82
- package/src/components/badge/badge.module.css +0 -35
- package/src/components/badge/badge.stories.tsx +0 -60
- package/src/components/badge/index.tsx +0 -71
- package/src/components/button/button.module.css +0 -42
- package/src/components/button/button.stories.tsx +0 -108
- package/src/components/button/index.tsx +0 -63
- package/src/components/checkbox/checkbox.module.css +0 -36
- package/src/components/checkbox/checkbox.stories.tsx +0 -21
- package/src/components/checkbox/index.tsx +0 -41
- package/src/components/code/code.module.css +0 -20
- package/src/components/code/code.stories.tsx +0 -42
- package/src/components/code/index.tsx +0 -73
- package/src/components/collapse/collapse.module.css +0 -27
- package/src/components/collapse/collapse.stories.tsx +0 -27
- package/src/components/collapse/index.tsx +0 -59
- package/src/components/command/command.module.css +0 -95
- package/src/components/command/command.stories.tsx +0 -38
- package/src/components/command/index.tsx +0 -108
- package/src/components/context-menu/context-menu.module.css +0 -36
- package/src/components/context-menu/context-menu.stories.tsx +0 -99
- package/src/components/context-menu/index.tsx +0 -242
- package/src/components/dialog/dialog.module.css +0 -71
- package/src/components/dialog/dialog.stories.tsx +0 -29
- package/src/components/dialog/index.tsx +0 -148
- package/src/components/heading/heading.module.css +0 -3
- package/src/components/heading/heading.stories.tsx +0 -52
- package/src/components/heading/index.tsx +0 -112
- package/src/components/icon/icon-names.ts +0 -3189
- package/src/components/icon/icon.module.css +0 -36
- package/src/components/icon/icon.stories.tsx +0 -40
- package/src/components/icon/index.tsx +0 -60
- package/src/components/icon-button/icon-button.module.css +0 -33
- package/src/components/icon-button/icon-button.stories.tsx +0 -59
- package/src/components/icon-button/index.tsx +0 -48
- package/src/components/inline-code/index.tsx +0 -29
- package/src/components/inline-code/inline-code.module.css +0 -13
- package/src/components/inline-code/inline-code.stories.tsx +0 -31
- package/src/components/input/index.tsx +0 -22
- package/src/components/input/input.module.css +0 -23
- package/src/components/input/input.stories.tsx +0 -52
- package/src/components/meter/index.tsx +0 -55
- package/src/components/meter/meter.module.css +0 -23
- package/src/components/meter/meter.stories.tsx +0 -31
- package/src/components/multiline-input/index.tsx +0 -58
- package/src/components/multiline-input/multiline-input.stories.tsx +0 -26
- package/src/components/number-input/index.tsx +0 -74
- package/src/components/number-input/number-input.module.css +0 -41
- package/src/components/number-input/number-input.stories.tsx +0 -24
- package/src/components/password-input/index.tsx +0 -24
- package/src/components/password-input/password-input.module.css +0 -10
- package/src/components/password-input/password-input.stories.tsx +0 -24
- package/src/components/pill/index.tsx +0 -45
- package/src/components/pill/pill.module.css +0 -22
- package/src/components/pill/pill.stories.tsx +0 -83
- package/src/components/popover/index.tsx +0 -94
- package/src/components/popover/popover.module.css +0 -8
- package/src/components/popover/popover.stories.tsx +0 -53
- package/src/components/preview-card/index.tsx +0 -68
- package/src/components/preview-card/preview-card.module.css +0 -5
- package/src/components/preview-card/preview-card.stories.tsx +0 -58
- package/src/components/radio/index.tsx +0 -67
- package/src/components/radio/radio-group.module.css +0 -5
- package/src/components/radio/radio.module.css +0 -36
- package/src/components/radio/radio.stories.tsx +0 -27
- package/src/components/search-bar/index.tsx +0 -60
- package/src/components/search-bar/search-bar.module.css +0 -29
- package/src/components/search-bar/search-bar.stories.tsx +0 -37
- package/src/components/select/index.tsx +0 -132
- package/src/components/select/select.module.css +0 -63
- package/src/components/select/select.stories.tsx +0 -49
- package/src/components/separator/index.tsx +0 -28
- package/src/components/separator/separator.module.css +0 -24
- package/src/components/separator/separator.stories.tsx +0 -40
- package/src/components/slider/index.tsx +0 -28
- package/src/components/slider/slider.module.css +0 -52
- package/src/components/slider/slider.stories.tsx +0 -53
- package/src/components/spinner/index.tsx +0 -14
- package/src/components/spinner/spinner.module.css +0 -13
- package/src/components/spinner/spinner.stories.tsx +0 -17
- package/src/components/stacked-avatars/index.tsx +0 -88
- package/src/components/stacked-avatars/stacked-avatars.module.css +0 -79
- package/src/components/stacked-avatars/stacked-avatars.stories.tsx +0 -48
- package/src/components/status-banner/index.tsx +0 -96
- package/src/components/status-banner/status-banner.module.css +0 -52
- package/src/components/status-banner/status-banner.stories.tsx +0 -44
- package/src/components/surface/index.tsx +0 -83
- package/src/components/surface/surface.module.css +0 -35
- package/src/components/surface/surface.stories.tsx +0 -84
- package/src/components/switch/index.tsx +0 -23
- package/src/components/switch/switch.module.css +0 -45
- package/src/components/switch/switch.stories.tsx +0 -48
- package/src/components/tabs/index.tsx +0 -126
- package/src/components/tabs/tabs.module.css +0 -134
- package/src/components/tabs/tabs.stories.tsx +0 -88
- package/src/components/text/index.tsx +0 -69
- package/src/components/text/text.module.css +0 -76
- package/src/components/text/text.stories.tsx +0 -107
- package/src/components/theme-provider/index.ts +0 -2
- package/src/components/theme-provider/theme-context.tsx +0 -18
- package/src/components/theme-provider/theme-provider.stories.tsx +0 -47
- package/src/components/theme-provider/theme-provider.tsx +0 -77
- package/src/components/timestamp/index.tsx +0 -131
- package/src/components/timestamp/timestamp.module.css +0 -8
- package/src/components/timestamp/timestamp.stories.tsx +0 -37
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast.module.css +0 -163
- package/src/components/toast/toast.stories.tsx +0 -53
- package/src/components/toast/toast.tsx +0 -104
- package/src/components/toast/use-toast-manager.ts +0 -63
- package/src/components/tooltip/index.tsx +0 -61
- package/src/components/tooltip/tooltip-arrow.tsx +0 -17
- package/src/components/tooltip/tooltip.module.css +0 -44
- package/src/components/tooltip/tooltip.stories.tsx +0 -76
- package/src/components/view/index.tsx +0 -137
- package/src/components/view/view.module.css +0 -11
- package/src/components/view/view.stories.tsx +0 -131
- package/src/components/view/view_colorway.module.css +0 -280
- package/src/components/view/view_interactive.module.css +0 -127
- package/src/components/view/view_loading.module.css +0 -58
- package/src/components/visually-hidden/index.ts +0 -1
- package/src/index.ts +0 -49
- package/src/integrations/react-markdown/index.tsx +0 -134
- package/src/integrations/react-markdown/react-markdown.module.css +0 -62
- package/src/integrations/react-markdown/react-markdown.stories.tsx +0 -31
- package/src/integrations/tailwind.css +0 -173
- package/src/integrations/twemoij/index.tsx +0 -13
- package/src/integrations/twemoij/twemoji.module.css +0 -7
- package/src/integrations/twemoij/twemoji.stories.tsx +0 -40
- package/src/stories/components/all-variants.tsx +0 -40
- package/src/stories/data.ts +0 -72
- package/src/stories/utils.ts +0 -20
- package/src/styles/core.css +0 -153
- package/src/styles/themes/dark.css +0 -86
- package/src/styles/themes/light.css +0 -86
- package/src/styles/transitions.module.css +0 -31
- package/stylelint.config.mjs +0 -29
- package/tsconfig.app.json +0 -35
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -103
- package/vitest.shims.d.ts +0 -1
|
@@ -0,0 +1,902 @@
|
|
|
1
|
+
import { jsx as be, jsxs as Je } from "react/jsx-runtime";
|
|
2
|
+
import { c as Ct } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { View as Pt } from "../view/index.js";
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { o as Ne } from "../../owner-rKN292Q9.js";
|
|
6
|
+
import { u as _t } from "../../useControlled-Du4sJyMj.js";
|
|
7
|
+
import { u as z } from "../../useStableCallback-CkTrVkNX.js";
|
|
8
|
+
import { u as Qe } from "../../useValueAsRef-HURLzret.js";
|
|
9
|
+
import { u as ze } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
10
|
+
import { w as Nt } from "../../warn-CKtX8MLJ.js";
|
|
11
|
+
import { c as we, h as Ze, n as wt, k as Et, p as Vt, r as At, u as Ye } from "../../createBaseUIEventDetails-D8M2Yl-a.js";
|
|
12
|
+
import { u as Tt } from "../../useValueChanged-DL757-yD.js";
|
|
13
|
+
import { u as We } from "../../useBaseUiId-B7WyxtIE.js";
|
|
14
|
+
import { u as Ee, m as Mt, c as Ot } from "../../useRenderElement-DwToLA61.js";
|
|
15
|
+
import { c as ue } from "../../clamp-D0KDAQIz.js";
|
|
16
|
+
import { C as Ft, u as Bt } from "../../useCompositeListItem-OkcAim_1.js";
|
|
17
|
+
import { c as Dt, a as et, u as Lt, b as kt } from "../../LabelableContext-BMvjVwor.js";
|
|
18
|
+
import { f as $t } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
19
|
+
import { h as tt, f as Ht } from "../../element-CZEOj04G.js";
|
|
20
|
+
import { a as Ue } from "../../floating-ui.utils.dom-C7FS5id0.js";
|
|
21
|
+
import { u as Ut } from "../../useAnimationFrame-451ugS_6.js";
|
|
22
|
+
import { u as nt } from "../../DirectionContext-C2o_MF_i.js";
|
|
23
|
+
import { u as rt } from "../../useOnMount-VRW6CK2u.js";
|
|
24
|
+
import { v as qe } from "../../valueToPercent-DaP9qN4u.js";
|
|
25
|
+
import { v as Ge } from "../../visuallyHidden-CpJ-mhai.js";
|
|
26
|
+
import { f as De } from "../../formatNumber-1UNwjeqf.js";
|
|
27
|
+
import { C as zt, H as ot, E as it, d as st, b as at, c as ut, e as lt } from "../../composite-C9L5QmZL.js";
|
|
28
|
+
import { u as Wt } from "../../useLabelableId-Ci_jDvmv.js";
|
|
29
|
+
import '../../index32.css';function ct(e, t, r = (i, o) => i === o) {
|
|
30
|
+
return e.length === t.length && e.every((i, o) => r(i, t[o]));
|
|
31
|
+
}
|
|
32
|
+
function dt(e, t) {
|
|
33
|
+
return e - t;
|
|
34
|
+
}
|
|
35
|
+
function qt(e, t, r) {
|
|
36
|
+
const i = e.slice();
|
|
37
|
+
return i[t] = r, i.sort(dt);
|
|
38
|
+
}
|
|
39
|
+
function ft(e, t, r, i, o, l) {
|
|
40
|
+
let u = e;
|
|
41
|
+
return u = ue(u, r, i), o && (u = qt(
|
|
42
|
+
l,
|
|
43
|
+
t,
|
|
44
|
+
// Bound the new value to the thumb's neighbours.
|
|
45
|
+
ue(u, l[t - 1] || -1 / 0, l[t + 1] || 1 / 0)
|
|
46
|
+
)), u;
|
|
47
|
+
}
|
|
48
|
+
function mt(e, t, r) {
|
|
49
|
+
if (!Array.isArray(e))
|
|
50
|
+
return !0;
|
|
51
|
+
const i = e.reduce((o, l, u, g) => (u === g.length - 1 || o.push(Math.abs(l - g[u + 1])), o), []);
|
|
52
|
+
return Math.min(...i) >= t * r;
|
|
53
|
+
}
|
|
54
|
+
const Ve = {
|
|
55
|
+
activeThumbIndex: () => null,
|
|
56
|
+
max: () => null,
|
|
57
|
+
min: () => null,
|
|
58
|
+
minStepsBetweenValues: () => null,
|
|
59
|
+
step: () => null,
|
|
60
|
+
values: () => null
|
|
61
|
+
}, Ke = /* @__PURE__ */ a.createContext(void 0);
|
|
62
|
+
process.env.NODE_ENV !== "production" && (Ke.displayName = "SliderRootContext");
|
|
63
|
+
function Le() {
|
|
64
|
+
const e = a.useContext(Ke);
|
|
65
|
+
if (e === void 0)
|
|
66
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>." : $t(62));
|
|
67
|
+
return e;
|
|
68
|
+
}
|
|
69
|
+
function Kt(e) {
|
|
70
|
+
return "key" in e ? Et : Vt;
|
|
71
|
+
}
|
|
72
|
+
function jt(e, t) {
|
|
73
|
+
return typeof e == "number" && typeof t == "number" ? e === t : Array.isArray(e) && Array.isArray(t) ? ct(e, t) : !1;
|
|
74
|
+
}
|
|
75
|
+
const pt = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
76
|
+
const {
|
|
77
|
+
"aria-labelledby": i,
|
|
78
|
+
className: o,
|
|
79
|
+
defaultValue: l,
|
|
80
|
+
disabled: u = !1,
|
|
81
|
+
id: g,
|
|
82
|
+
format: p,
|
|
83
|
+
largeStep: w = 10,
|
|
84
|
+
locale: h,
|
|
85
|
+
render: W,
|
|
86
|
+
max: E = 100,
|
|
87
|
+
min: m = 0,
|
|
88
|
+
minStepsBetweenValues: s = 0,
|
|
89
|
+
name: V,
|
|
90
|
+
onValueChange: x,
|
|
91
|
+
onValueCommitted: P,
|
|
92
|
+
orientation: y = "horizontal",
|
|
93
|
+
step: M = 1,
|
|
94
|
+
thumbCollisionBehavior: te = "push",
|
|
95
|
+
thumbAlignment: ne = "center",
|
|
96
|
+
value: re,
|
|
97
|
+
...Re
|
|
98
|
+
} = t, le = We(g), q = z(x), ce = z(P), {
|
|
99
|
+
clearErrors: H
|
|
100
|
+
} = Dt(), {
|
|
101
|
+
state: U,
|
|
102
|
+
disabled: K,
|
|
103
|
+
name: S,
|
|
104
|
+
setTouched: j,
|
|
105
|
+
setDirty: A,
|
|
106
|
+
validityData: R,
|
|
107
|
+
shouldValidateOnChange: _,
|
|
108
|
+
validation: B
|
|
109
|
+
} = et(), {
|
|
110
|
+
labelId: oe
|
|
111
|
+
} = Lt(), X = i ?? oe, Y = K || u, de = S ?? V, [C, Ie] = _t({
|
|
112
|
+
controlled: re,
|
|
113
|
+
default: l ?? m,
|
|
114
|
+
name: "Slider"
|
|
115
|
+
}), ie = a.useRef(null), he = a.useRef(null), O = a.useRef([]), F = a.useRef(null), fe = a.useRef(null), ye = a.useRef(-1), D = a.useRef(null), L = a.useRef(null), se = a.useRef("none"), n = Qe(p), [f, c] = a.useState(-1), [b, d] = a.useState(-1), [$, me] = a.useState(!1), [J, ge] = a.useState(() => /* @__PURE__ */ new Map()), [Pe, Se] = a.useState([void 0, void 0]), I = z((v) => {
|
|
116
|
+
c(v), v !== -1 && d(v);
|
|
117
|
+
});
|
|
118
|
+
kt({
|
|
119
|
+
id: le,
|
|
120
|
+
commit: B.commit,
|
|
121
|
+
value: C,
|
|
122
|
+
controlRef: he,
|
|
123
|
+
name: de,
|
|
124
|
+
getValue: () => C
|
|
125
|
+
}), Tt(C, () => {
|
|
126
|
+
H(de), _() ? B.commit(C) : B.commit(C, !0);
|
|
127
|
+
const v = R.initialValue;
|
|
128
|
+
let pe;
|
|
129
|
+
Array.isArray(C) && Array.isArray(v) ? pe = !ct(C, v) : pe = C !== v, A(pe);
|
|
130
|
+
});
|
|
131
|
+
const xe = z((v) => {
|
|
132
|
+
v && (he.current = v);
|
|
133
|
+
}), Q = Array.isArray(C), Z = a.useMemo(() => Q ? C.slice().sort(dt) : [ue(C, m, E)], [E, m, Q, C]), G = z((v, pe) => {
|
|
134
|
+
if (Number.isNaN(v) || jt(v, C))
|
|
135
|
+
return;
|
|
136
|
+
const ae = pe ?? we(wt, void 0, void 0, {
|
|
137
|
+
activeThumbIndex: -1
|
|
138
|
+
});
|
|
139
|
+
se.current = ae.reason;
|
|
140
|
+
const ve = new event.constructor(event.type, event);
|
|
141
|
+
Object.defineProperty(ve, "target", {
|
|
142
|
+
writable: !0,
|
|
143
|
+
value: {
|
|
144
|
+
value: v,
|
|
145
|
+
name: de
|
|
146
|
+
}
|
|
147
|
+
}), ae.event = ve, L.current = v, q(v, ae), !ae.isCanceled && Ie(v);
|
|
148
|
+
}), Ce = z((v, pe, ae) => {
|
|
149
|
+
const ve = ft(v, pe, m, E, Q, Z);
|
|
150
|
+
if (mt(ve, M, s)) {
|
|
151
|
+
const Te = Kt(ae);
|
|
152
|
+
G(ve, we(Te, ae.nativeEvent, void 0, {
|
|
153
|
+
activeThumbIndex: pe
|
|
154
|
+
})), j(!0);
|
|
155
|
+
const je = L.current ?? ve;
|
|
156
|
+
ce(je, Ze(Te, ae.nativeEvent));
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
process.env.NODE_ENV !== "production" && m >= E && Nt("Slider `max` must be greater than `min`."), ze(() => {
|
|
160
|
+
const v = tt(Ne(ie.current));
|
|
161
|
+
Y && v && ie.current?.contains(v) && v.blur();
|
|
162
|
+
}, [Y]), Y && f !== -1 && I(-1);
|
|
163
|
+
const ee = a.useMemo(() => ({
|
|
164
|
+
...U,
|
|
165
|
+
activeThumbIndex: f,
|
|
166
|
+
disabled: Y,
|
|
167
|
+
dragging: $,
|
|
168
|
+
orientation: y,
|
|
169
|
+
max: E,
|
|
170
|
+
min: m,
|
|
171
|
+
minStepsBetweenValues: s,
|
|
172
|
+
step: M,
|
|
173
|
+
values: Z
|
|
174
|
+
}), [U, f, Y, $, E, m, s, y, M, Z]), ke = a.useMemo(() => ({
|
|
175
|
+
active: f,
|
|
176
|
+
controlRef: he,
|
|
177
|
+
disabled: Y,
|
|
178
|
+
dragging: $,
|
|
179
|
+
validation: B,
|
|
180
|
+
formatOptionsRef: n,
|
|
181
|
+
handleInputChange: Ce,
|
|
182
|
+
indicatorPosition: Pe,
|
|
183
|
+
inset: ne !== "center",
|
|
184
|
+
labelId: X,
|
|
185
|
+
largeStep: w,
|
|
186
|
+
lastUsedThumbIndex: b,
|
|
187
|
+
lastChangedValueRef: L,
|
|
188
|
+
lastChangeReasonRef: se,
|
|
189
|
+
locale: h,
|
|
190
|
+
max: E,
|
|
191
|
+
min: m,
|
|
192
|
+
minStepsBetweenValues: s,
|
|
193
|
+
name: de,
|
|
194
|
+
onValueCommitted: ce,
|
|
195
|
+
orientation: y,
|
|
196
|
+
pressedInputRef: F,
|
|
197
|
+
pressedThumbCenterOffsetRef: fe,
|
|
198
|
+
pressedThumbIndexRef: ye,
|
|
199
|
+
pressedValuesRef: D,
|
|
200
|
+
registerFieldControlRef: xe,
|
|
201
|
+
renderBeforeHydration: ne === "edge",
|
|
202
|
+
setActive: I,
|
|
203
|
+
setDragging: me,
|
|
204
|
+
setIndicatorPosition: Se,
|
|
205
|
+
setValue: G,
|
|
206
|
+
state: ee,
|
|
207
|
+
step: M,
|
|
208
|
+
thumbCollisionBehavior: te,
|
|
209
|
+
thumbMap: J,
|
|
210
|
+
thumbRefs: O,
|
|
211
|
+
values: Z
|
|
212
|
+
}), [f, he, X, Y, $, B, n, Ce, Pe, w, b, L, se, h, E, m, s, de, ce, y, F, fe, ye, D, xe, I, me, Se, G, ee, M, te, ne, J, O, Z]), Ae = Ee("div", t, {
|
|
213
|
+
state: ee,
|
|
214
|
+
ref: [r, ie],
|
|
215
|
+
props: [{
|
|
216
|
+
"aria-labelledby": X,
|
|
217
|
+
id: le,
|
|
218
|
+
role: "group"
|
|
219
|
+
}, B.getValidationProps, Re],
|
|
220
|
+
stateAttributesMapping: Ve
|
|
221
|
+
});
|
|
222
|
+
return /* @__PURE__ */ be(Ke.Provider, {
|
|
223
|
+
value: ke,
|
|
224
|
+
children: /* @__PURE__ */ be(Ft, {
|
|
225
|
+
elementsRef: O,
|
|
226
|
+
onMapChange: ge,
|
|
227
|
+
children: Ae
|
|
228
|
+
})
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
process.env.NODE_ENV !== "production" && (pt.displayName = "SliderRoot");
|
|
232
|
+
function ht(e) {
|
|
233
|
+
const t = e.getBoundingClientRect();
|
|
234
|
+
return {
|
|
235
|
+
x: (t.left + t.right) / 2,
|
|
236
|
+
y: (t.top + t.bottom) / 2
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function Yt(e) {
|
|
240
|
+
if (Math.abs(e) < 1) {
|
|
241
|
+
const r = e.toExponential().split("e-"), i = r[0].split(".")[1];
|
|
242
|
+
return (i ? i.length : 0) + parseInt(r[1], 10);
|
|
243
|
+
}
|
|
244
|
+
const t = e.toString().split(".")[1];
|
|
245
|
+
return t ? t.length : 0;
|
|
246
|
+
}
|
|
247
|
+
function gt(e, t, r) {
|
|
248
|
+
const i = Math.round((e - r) / t) * t + r;
|
|
249
|
+
return Number(i.toFixed(Yt(t)));
|
|
250
|
+
}
|
|
251
|
+
function Xe({
|
|
252
|
+
values: e,
|
|
253
|
+
index: t,
|
|
254
|
+
nextValue: r,
|
|
255
|
+
min: i,
|
|
256
|
+
max: o,
|
|
257
|
+
step: l,
|
|
258
|
+
minStepsBetweenValues: u,
|
|
259
|
+
initialValues: g
|
|
260
|
+
}) {
|
|
261
|
+
if (e.length === 0)
|
|
262
|
+
return [];
|
|
263
|
+
const p = e.slice(), w = l * u, h = p.length - 1, W = g ?? e, E = i + t * w, m = o - (h - t) * w;
|
|
264
|
+
p[t] = ue(r, E, m);
|
|
265
|
+
for (let s = t + 1; s <= h; s += 1) {
|
|
266
|
+
const V = p[s - 1] + w, x = o - (h - s) * w, P = W[s] ?? p[s];
|
|
267
|
+
let y = Math.max(p[s], V);
|
|
268
|
+
P < y && (y = Math.max(P, V)), p[s] = ue(y, V, x);
|
|
269
|
+
}
|
|
270
|
+
for (let s = t - 1; s >= 0; s -= 1) {
|
|
271
|
+
const V = p[s + 1] - w, x = i + s * w, P = W[s] ?? p[s];
|
|
272
|
+
let y = Math.min(p[s], V);
|
|
273
|
+
P > y && (y = Math.min(P, V)), p[s] = ue(y, x, V);
|
|
274
|
+
}
|
|
275
|
+
for (let s = 0; s <= h; s += 1)
|
|
276
|
+
p[s] = Number(p[s].toFixed(12));
|
|
277
|
+
return p;
|
|
278
|
+
}
|
|
279
|
+
function Gt({
|
|
280
|
+
behavior: e,
|
|
281
|
+
values: t,
|
|
282
|
+
currentValues: r,
|
|
283
|
+
initialValues: i,
|
|
284
|
+
pressedIndex: o,
|
|
285
|
+
nextValue: l,
|
|
286
|
+
min: u,
|
|
287
|
+
max: g,
|
|
288
|
+
step: p,
|
|
289
|
+
minStepsBetweenValues: w
|
|
290
|
+
}) {
|
|
291
|
+
const h = r ?? t, W = i ?? t;
|
|
292
|
+
if (!(h.length > 1))
|
|
293
|
+
return {
|
|
294
|
+
value: l,
|
|
295
|
+
thumbIndex: 0,
|
|
296
|
+
didSwap: !1
|
|
297
|
+
};
|
|
298
|
+
const m = p * w;
|
|
299
|
+
switch (e) {
|
|
300
|
+
case "swap": {
|
|
301
|
+
const s = h[o], V = 1e-7, x = h.slice(), P = x[o - 1], y = x[o + 1], M = P != null ? P + m : u, te = y != null ? y - m : g, ne = ue(l, M, te), re = Number(ne.toFixed(12));
|
|
302
|
+
x[o] = re;
|
|
303
|
+
const Re = l > s, le = l < s, q = Re && y != null && l >= y - V, ce = le && P != null && l <= P + V;
|
|
304
|
+
if (!q && !ce)
|
|
305
|
+
return {
|
|
306
|
+
value: x,
|
|
307
|
+
thumbIndex: o,
|
|
308
|
+
didSwap: !1
|
|
309
|
+
};
|
|
310
|
+
const H = q ? o + 1 : o - 1, U = x.map((A, R) => {
|
|
311
|
+
if (R === o)
|
|
312
|
+
return re;
|
|
313
|
+
const _ = W[R];
|
|
314
|
+
return _ ?? h[R];
|
|
315
|
+
});
|
|
316
|
+
let K = l;
|
|
317
|
+
q ? K = Math.max(l, x[H]) : K = Math.min(l, x[H]);
|
|
318
|
+
const S = Xe({
|
|
319
|
+
values: x,
|
|
320
|
+
index: H,
|
|
321
|
+
nextValue: K,
|
|
322
|
+
min: u,
|
|
323
|
+
max: g,
|
|
324
|
+
step: p,
|
|
325
|
+
minStepsBetweenValues: w,
|
|
326
|
+
initialValues: U
|
|
327
|
+
}), j = q ? H - 1 : H + 1;
|
|
328
|
+
if (j >= 0 && j < S.length) {
|
|
329
|
+
const A = S[j - 1], R = S[j + 1];
|
|
330
|
+
let _ = A != null ? A + m : u;
|
|
331
|
+
_ = Math.max(_, u + j * m);
|
|
332
|
+
let B = R != null ? R - m : g;
|
|
333
|
+
B = Math.min(B, g - (S.length - 1 - j) * m);
|
|
334
|
+
const oe = ue(re, _, B);
|
|
335
|
+
S[j] = Number(oe.toFixed(12));
|
|
336
|
+
}
|
|
337
|
+
return {
|
|
338
|
+
value: S,
|
|
339
|
+
thumbIndex: H,
|
|
340
|
+
didSwap: !0
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
case "push":
|
|
344
|
+
return {
|
|
345
|
+
value: Xe({
|
|
346
|
+
values: h,
|
|
347
|
+
index: o,
|
|
348
|
+
nextValue: l,
|
|
349
|
+
min: u,
|
|
350
|
+
max: g,
|
|
351
|
+
step: p,
|
|
352
|
+
minStepsBetweenValues: w
|
|
353
|
+
}),
|
|
354
|
+
thumbIndex: o,
|
|
355
|
+
didSwap: !1
|
|
356
|
+
};
|
|
357
|
+
default: {
|
|
358
|
+
const s = h.slice(), V = s[o - 1], x = s[o + 1], P = V != null ? V + m : u, y = x != null ? x - m : g, M = ue(l, P, y);
|
|
359
|
+
return s[o] = Number(M.toFixed(12)), {
|
|
360
|
+
value: s,
|
|
361
|
+
thumbIndex: o,
|
|
362
|
+
didSwap: !1
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
const Xt = 2;
|
|
368
|
+
function Jt(e, t) {
|
|
369
|
+
if (!e)
|
|
370
|
+
return {
|
|
371
|
+
start: 0,
|
|
372
|
+
end: 0
|
|
373
|
+
};
|
|
374
|
+
function r(l) {
|
|
375
|
+
const u = l != null ? parseFloat(l) : 0;
|
|
376
|
+
return Number.isNaN(u) ? 0 : u;
|
|
377
|
+
}
|
|
378
|
+
const i = t ? "Top" : "InlineStart", o = t ? "Bottom" : "InlineEnd";
|
|
379
|
+
return {
|
|
380
|
+
start: r(e[`border${i}Width`]) + r(e[`padding${i}`]),
|
|
381
|
+
end: r(e[`border${o}Width`]) + r(e[`padding${o}`])
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function Fe(e, t) {
|
|
385
|
+
if (t.current != null && e.changedTouches) {
|
|
386
|
+
const r = e;
|
|
387
|
+
for (let i = 0; i < r.changedTouches.length; i += 1) {
|
|
388
|
+
const o = r.changedTouches[i];
|
|
389
|
+
if (o.identifier === t.current)
|
|
390
|
+
return {
|
|
391
|
+
x: o.clientX,
|
|
392
|
+
y: o.clientY
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
return null;
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
x: e.clientX,
|
|
399
|
+
y: e.clientY
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
const bt = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
403
|
+
const {
|
|
404
|
+
render: i,
|
|
405
|
+
className: o,
|
|
406
|
+
...l
|
|
407
|
+
} = t, {
|
|
408
|
+
disabled: u,
|
|
409
|
+
dragging: g,
|
|
410
|
+
validation: p,
|
|
411
|
+
inset: w,
|
|
412
|
+
lastChangedValueRef: h,
|
|
413
|
+
lastChangeReasonRef: W,
|
|
414
|
+
max: E,
|
|
415
|
+
min: m,
|
|
416
|
+
minStepsBetweenValues: s,
|
|
417
|
+
onValueCommitted: V,
|
|
418
|
+
orientation: x,
|
|
419
|
+
pressedInputRef: P,
|
|
420
|
+
pressedThumbCenterOffsetRef: y,
|
|
421
|
+
pressedThumbIndexRef: M,
|
|
422
|
+
pressedValuesRef: te,
|
|
423
|
+
registerFieldControlRef: ne,
|
|
424
|
+
renderBeforeHydration: re,
|
|
425
|
+
setActive: Re,
|
|
426
|
+
setDragging: le,
|
|
427
|
+
setValue: q,
|
|
428
|
+
state: ce,
|
|
429
|
+
step: H,
|
|
430
|
+
thumbCollisionBehavior: U,
|
|
431
|
+
thumbRefs: K,
|
|
432
|
+
values: S
|
|
433
|
+
} = Le(), j = nt(), A = S.length > 1, R = x === "vertical", _ = a.useRef(null), B = a.useRef(null), oe = z((n) => {
|
|
434
|
+
n && B.current == null && B.current == null && (B.current = getComputedStyle(n));
|
|
435
|
+
}), X = a.useRef(null), Y = a.useRef(0), de = a.useRef(0), C = Qe(S), Ie = z((n) => {
|
|
436
|
+
M.current !== n && (M.current = n);
|
|
437
|
+
const f = K.current[n];
|
|
438
|
+
if (!f) {
|
|
439
|
+
y.current = null, P.current = null;
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
P.current = f.querySelector('input[type="range"]');
|
|
443
|
+
}), ie = z((n) => {
|
|
444
|
+
const f = _.current;
|
|
445
|
+
if (!f)
|
|
446
|
+
return null;
|
|
447
|
+
const {
|
|
448
|
+
width: c,
|
|
449
|
+
height: b,
|
|
450
|
+
bottom: d,
|
|
451
|
+
left: $,
|
|
452
|
+
right: me
|
|
453
|
+
} = f.getBoundingClientRect(), J = Jt(B.current, R), ge = de.current, Pe = (R ? b : c) - J.start - J.end - ge * 2, Se = y.current ?? 0, I = n.x - Se, xe = n.y - Se, Q = R ? d - xe - J.end : (j === "rtl" ? me - I : I - $) - J.start, Z = ue((Q - ge) / Pe, 0, 1);
|
|
454
|
+
let G = (E - m) * Z + m;
|
|
455
|
+
if (G = gt(G, H, m), G = ue(G, m, E), !A)
|
|
456
|
+
return {
|
|
457
|
+
value: G,
|
|
458
|
+
thumbIndex: 0,
|
|
459
|
+
didSwap: !1
|
|
460
|
+
};
|
|
461
|
+
const Ce = M.current;
|
|
462
|
+
if (Ce < 0)
|
|
463
|
+
return null;
|
|
464
|
+
const ee = Gt({
|
|
465
|
+
behavior: U,
|
|
466
|
+
values: S,
|
|
467
|
+
currentValues: C.current ?? S,
|
|
468
|
+
initialValues: te.current,
|
|
469
|
+
pressedIndex: Ce,
|
|
470
|
+
nextValue: G,
|
|
471
|
+
min: m,
|
|
472
|
+
max: E,
|
|
473
|
+
step: H,
|
|
474
|
+
minStepsBetweenValues: s
|
|
475
|
+
});
|
|
476
|
+
return U === "swap" && ee.didSwap ? Ie(ee.thumbIndex) : M.current = ee.thumbIndex, ee;
|
|
477
|
+
}), he = z((n) => {
|
|
478
|
+
te.current = A ? S.slice() : null, C.current = S;
|
|
479
|
+
const f = M.current;
|
|
480
|
+
let c = f;
|
|
481
|
+
if (f > -1 && f < S.length) {
|
|
482
|
+
if (S[f] === E) {
|
|
483
|
+
let b = f;
|
|
484
|
+
for (; b > 0 && S[b - 1] === E; )
|
|
485
|
+
b -= 1;
|
|
486
|
+
c = b;
|
|
487
|
+
}
|
|
488
|
+
} else {
|
|
489
|
+
const b = R ? "y" : "x";
|
|
490
|
+
let d;
|
|
491
|
+
c = -1;
|
|
492
|
+
for (let $ = 0; $ < K.current.length; $ += 1) {
|
|
493
|
+
const me = K.current[$];
|
|
494
|
+
if (Ue(me)) {
|
|
495
|
+
const J = ht(me), ge = Math.abs(n[b] - J[b]);
|
|
496
|
+
(d === void 0 || ge <= d) && (c = $, d = ge);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
if (c > -1 && c !== f && Ie(c), w) {
|
|
501
|
+
const b = K.current[c];
|
|
502
|
+
if (Ue(b)) {
|
|
503
|
+
const d = b.getBoundingClientRect(), $ = R ? "height" : "width";
|
|
504
|
+
de.current = d[$] / 2;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}), O = z((n) => {
|
|
508
|
+
K.current?.[n]?.querySelector('input[type="range"]')?.focus({
|
|
509
|
+
preventScroll: !0
|
|
510
|
+
});
|
|
511
|
+
}), F = z((n) => {
|
|
512
|
+
const f = Fe(n, X);
|
|
513
|
+
if (f == null)
|
|
514
|
+
return;
|
|
515
|
+
if (Y.current += 1, n.type === "pointermove" && n.buttons === 0) {
|
|
516
|
+
fe(n);
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
const c = ie(f);
|
|
520
|
+
c != null && mt(c.value, H, s) && (!g && Y.current > Xt && le(!0), q(c.value, we(At, n, void 0, {
|
|
521
|
+
activeThumbIndex: c.thumbIndex
|
|
522
|
+
})), C.current = Array.isArray(c.value) ? c.value : [c.value], c.didSwap && O(c.thumbIndex));
|
|
523
|
+
});
|
|
524
|
+
function fe(n) {
|
|
525
|
+
Re(-1), le(!1), P.current = null, y.current = null, M.current = -1;
|
|
526
|
+
const f = Fe(n, X), c = f != null ? ie(f) : null;
|
|
527
|
+
if (c != null) {
|
|
528
|
+
const b = W.current;
|
|
529
|
+
p.commit(h.current ?? c.value), V(h.current ?? c.value, Ze(b, n));
|
|
530
|
+
}
|
|
531
|
+
"pointerType" in n && _.current?.hasPointerCapture(n.pointerId) && _.current?.releasePointerCapture(n.pointerId), X.current = null, te.current = null, D();
|
|
532
|
+
}
|
|
533
|
+
const ye = z((n) => {
|
|
534
|
+
if (u)
|
|
535
|
+
return;
|
|
536
|
+
const f = n.changedTouches[0];
|
|
537
|
+
f != null && (X.current = f.identifier);
|
|
538
|
+
const c = Fe(n, X);
|
|
539
|
+
if (c != null) {
|
|
540
|
+
he(c);
|
|
541
|
+
const d = ie(c);
|
|
542
|
+
if (d == null)
|
|
543
|
+
return;
|
|
544
|
+
O(d.thumbIndex), q(d.value, we(Ye, n, void 0, {
|
|
545
|
+
activeThumbIndex: d.thumbIndex
|
|
546
|
+
})), C.current = Array.isArray(d.value) ? d.value : [d.value], d.didSwap && O(d.thumbIndex);
|
|
547
|
+
}
|
|
548
|
+
Y.current = 0;
|
|
549
|
+
const b = Ne(_.current);
|
|
550
|
+
b.addEventListener("touchmove", F, {
|
|
551
|
+
passive: !0
|
|
552
|
+
}), b.addEventListener("touchend", fe, {
|
|
553
|
+
passive: !0
|
|
554
|
+
});
|
|
555
|
+
}), D = z(() => {
|
|
556
|
+
const n = Ne(_.current);
|
|
557
|
+
n.removeEventListener("pointermove", F), n.removeEventListener("pointerup", fe), n.removeEventListener("touchmove", F), n.removeEventListener("touchend", fe), te.current = null;
|
|
558
|
+
}), L = Ut();
|
|
559
|
+
return a.useEffect(() => {
|
|
560
|
+
const n = _.current;
|
|
561
|
+
return n ? (n.addEventListener("touchstart", ye, {
|
|
562
|
+
passive: !0
|
|
563
|
+
}), () => {
|
|
564
|
+
n.removeEventListener("touchstart", ye), L.cancel(), D();
|
|
565
|
+
}) : () => D();
|
|
566
|
+
}, [D, ye, _, L]), a.useEffect(() => {
|
|
567
|
+
u && D();
|
|
568
|
+
}, [u, D]), Ee("div", t, {
|
|
569
|
+
state: ce,
|
|
570
|
+
ref: [r, ne, _, oe],
|
|
571
|
+
props: [{
|
|
572
|
+
"data-base-ui-slider-control": re ? "" : void 0,
|
|
573
|
+
onPointerDown(n) {
|
|
574
|
+
const f = _.current;
|
|
575
|
+
if (!f || u || n.defaultPrevented || !Ue(n.target) || // Only handle left clicks
|
|
576
|
+
n.button !== 0)
|
|
577
|
+
return;
|
|
578
|
+
const c = Fe(n, X);
|
|
579
|
+
if (c != null) {
|
|
580
|
+
he(c);
|
|
581
|
+
const d = ie(c);
|
|
582
|
+
if (d == null)
|
|
583
|
+
return;
|
|
584
|
+
Ht(K.current[d.thumbIndex], tt(Ne(f))) ? n.preventDefault() : L.request(() => {
|
|
585
|
+
O(d.thumbIndex);
|
|
586
|
+
}), le(!0), y.current != null || (q(d.value, we(Ye, n.nativeEvent, void 0, {
|
|
587
|
+
activeThumbIndex: d.thumbIndex
|
|
588
|
+
})), C.current = Array.isArray(d.value) ? d.value : [d.value], d.didSwap && O(d.thumbIndex));
|
|
589
|
+
}
|
|
590
|
+
n.nativeEvent.pointerId && f.setPointerCapture(n.nativeEvent.pointerId), Y.current = 0;
|
|
591
|
+
const b = Ne(_.current);
|
|
592
|
+
b.addEventListener("pointermove", F, {
|
|
593
|
+
passive: !0
|
|
594
|
+
}), b.addEventListener("pointerup", fe, {
|
|
595
|
+
once: !0
|
|
596
|
+
});
|
|
597
|
+
},
|
|
598
|
+
tabIndex: -1
|
|
599
|
+
}, l],
|
|
600
|
+
stateAttributesMapping: Ve
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
process.env.NODE_ENV !== "production" && (bt.displayName = "SliderControl");
|
|
604
|
+
const yt = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
605
|
+
const {
|
|
606
|
+
render: i,
|
|
607
|
+
className: o,
|
|
608
|
+
...l
|
|
609
|
+
} = t, {
|
|
610
|
+
state: u
|
|
611
|
+
} = Le();
|
|
612
|
+
return Ee("div", t, {
|
|
613
|
+
state: u,
|
|
614
|
+
ref: r,
|
|
615
|
+
props: [{
|
|
616
|
+
style: {
|
|
617
|
+
position: "relative"
|
|
618
|
+
}
|
|
619
|
+
}, l],
|
|
620
|
+
stateAttributesMapping: Ve
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
process.env.NODE_ENV !== "production" && (yt.displayName = "SliderTrack");
|
|
624
|
+
let Qt = /* @__PURE__ */ (function(e) {
|
|
625
|
+
return e.index = "data-index", e.dragging = "data-dragging", e.orientation = "data-orientation", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.focused = "data-focused", e;
|
|
626
|
+
})({});
|
|
627
|
+
const Zt = '!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();', vt = "PageUp", Rt = "PageDown", en = /* @__PURE__ */ new Set([lt, at, st, ut, ot, it, vt, Rt]);
|
|
628
|
+
function tn(e, t, r, i) {
|
|
629
|
+
if (!(t < 0))
|
|
630
|
+
return e.length === 2 ? t === 0 ? `${De(e[t], i, r)} start range` : `${De(e[t], i, r)} end range` : r ? De(e[t], i, r) : void 0;
|
|
631
|
+
}
|
|
632
|
+
function _e(e, t, r, i, o) {
|
|
633
|
+
return r === 1 ? Math.min(e + t, o) : Math.max(e - t, i);
|
|
634
|
+
}
|
|
635
|
+
const It = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
636
|
+
const {
|
|
637
|
+
render: i,
|
|
638
|
+
children: o,
|
|
639
|
+
className: l,
|
|
640
|
+
"aria-describedby": u,
|
|
641
|
+
"aria-label": g,
|
|
642
|
+
"aria-labelledby": p,
|
|
643
|
+
disabled: w = !1,
|
|
644
|
+
getAriaLabel: h,
|
|
645
|
+
getAriaValueText: W,
|
|
646
|
+
id: E,
|
|
647
|
+
index: m,
|
|
648
|
+
inputRef: s,
|
|
649
|
+
onBlur: V,
|
|
650
|
+
onFocus: x,
|
|
651
|
+
onKeyDown: P,
|
|
652
|
+
tabIndex: y,
|
|
653
|
+
...M
|
|
654
|
+
} = t, te = We(E), {
|
|
655
|
+
active: ne,
|
|
656
|
+
lastUsedThumbIndex: re,
|
|
657
|
+
controlRef: Re,
|
|
658
|
+
disabled: le,
|
|
659
|
+
validation: q,
|
|
660
|
+
formatOptionsRef: ce,
|
|
661
|
+
handleInputChange: H,
|
|
662
|
+
inset: U,
|
|
663
|
+
labelId: K,
|
|
664
|
+
largeStep: S,
|
|
665
|
+
locale: j,
|
|
666
|
+
max: A,
|
|
667
|
+
min: R,
|
|
668
|
+
minStepsBetweenValues: _,
|
|
669
|
+
name: B,
|
|
670
|
+
orientation: oe,
|
|
671
|
+
pressedInputRef: X,
|
|
672
|
+
pressedThumbCenterOffsetRef: Y,
|
|
673
|
+
pressedThumbIndexRef: de,
|
|
674
|
+
renderBeforeHydration: C,
|
|
675
|
+
setActive: Ie,
|
|
676
|
+
setIndicatorPosition: ie,
|
|
677
|
+
state: he,
|
|
678
|
+
step: O,
|
|
679
|
+
values: F
|
|
680
|
+
} = Le(), fe = nt(), ye = w || le, D = F.length > 1, L = oe === "vertical", se = fe === "rtl", {
|
|
681
|
+
setTouched: n,
|
|
682
|
+
setFocused: f,
|
|
683
|
+
validationMode: c
|
|
684
|
+
} = et(), b = a.useRef(null), d = a.useRef(null), $ = We(), me = Wt(), J = D ? $ : me, ge = a.useMemo(() => ({
|
|
685
|
+
inputId: J
|
|
686
|
+
}), [J]), {
|
|
687
|
+
ref: Pe,
|
|
688
|
+
index: Se
|
|
689
|
+
} = Bt({
|
|
690
|
+
metadata: ge
|
|
691
|
+
}), I = D ? m ?? Se : 0, xe = I === F.length - 1, Q = F[I], Z = qe(Q, R, A), [G, Ce] = a.useState(!1), [ee, ke] = a.useState();
|
|
692
|
+
rt(() => Ce(!0));
|
|
693
|
+
const Ae = re >= 0 && re < F.length ? re : -1, v = z(() => {
|
|
694
|
+
const N = Re.current, T = b.current;
|
|
695
|
+
if (!N || !T)
|
|
696
|
+
return;
|
|
697
|
+
const k = T.getBoundingClientRect(), Me = N.getBoundingClientRect(), Oe = L ? "height" : "width", xt = Me[Oe] - k[Oe], $e = (k[Oe] / 2 + xt * Z / 100) / Me[Oe] * 100;
|
|
698
|
+
ke($e), I === 0 ? ie((He) => [$e, He[1]]) : xe && ie((He) => [He[0], $e]);
|
|
699
|
+
});
|
|
700
|
+
ze(() => {
|
|
701
|
+
U && queueMicrotask(v);
|
|
702
|
+
}, [v, U]), ze(() => {
|
|
703
|
+
U && v();
|
|
704
|
+
}, [v, U, Z]);
|
|
705
|
+
const pe = a.useCallback(() => {
|
|
706
|
+
const N = L ? "bottom" : "insetInlineStart", T = L ? "left" : "top";
|
|
707
|
+
let k;
|
|
708
|
+
return D ? ne === I ? k = 2 : Ae === I && (k = 1) : ne === I && (k = 1), U ? {
|
|
709
|
+
"--position": `${ee}%`,
|
|
710
|
+
visibility: C && !G || ee === void 0 ? "hidden" : void 0,
|
|
711
|
+
position: "absolute",
|
|
712
|
+
[N]: "var(--position)",
|
|
713
|
+
[T]: "50%",
|
|
714
|
+
translate: `${(L || !se ? -1 : 1) * 50}% ${(L ? 1 : -1) * 50}%`,
|
|
715
|
+
zIndex: k
|
|
716
|
+
} : Number.isFinite(Z) ? {
|
|
717
|
+
position: "absolute",
|
|
718
|
+
[N]: `${Z}%`,
|
|
719
|
+
[T]: "50%",
|
|
720
|
+
translate: `${(L || !se ? -1 : 1) * 50}% ${(L ? 1 : -1) * 50}%`,
|
|
721
|
+
zIndex: k
|
|
722
|
+
} : Ge;
|
|
723
|
+
}, [ne, I, U, G, ee, D, C, se, Ae, Z, L]);
|
|
724
|
+
let ae;
|
|
725
|
+
oe === "vertical" && (ae = se ? "vertical-rl" : "vertical-lr");
|
|
726
|
+
const ve = Mt({
|
|
727
|
+
"aria-label": typeof h == "function" ? h(I) : g,
|
|
728
|
+
"aria-labelledby": p ?? K,
|
|
729
|
+
"aria-describedby": u,
|
|
730
|
+
"aria-orientation": oe,
|
|
731
|
+
"aria-valuenow": Q,
|
|
732
|
+
"aria-valuetext": typeof W == "function" ? W(De(Q, j, ce.current ?? void 0), Q, I) : tn(F, I, ce.current ?? void 0, j),
|
|
733
|
+
disabled: ye,
|
|
734
|
+
id: J,
|
|
735
|
+
max: A,
|
|
736
|
+
min: R,
|
|
737
|
+
name: B,
|
|
738
|
+
onChange(N) {
|
|
739
|
+
H(N.target.valueAsNumber, I, N);
|
|
740
|
+
},
|
|
741
|
+
onFocus() {
|
|
742
|
+
Ie(I), f(!0);
|
|
743
|
+
},
|
|
744
|
+
onBlur() {
|
|
745
|
+
b.current && (Ie(-1), n(!0), f(!1), c === "onBlur" && q.commit(ft(Q, I, R, A, D, F)));
|
|
746
|
+
},
|
|
747
|
+
onKeyDown(N) {
|
|
748
|
+
if (!en.has(N.key))
|
|
749
|
+
return;
|
|
750
|
+
zt.has(N.key) && N.stopPropagation();
|
|
751
|
+
let T = null;
|
|
752
|
+
const k = gt(Q, O, R);
|
|
753
|
+
switch (N.key) {
|
|
754
|
+
case lt:
|
|
755
|
+
T = _e(k, N.shiftKey ? S : O, 1, R, A);
|
|
756
|
+
break;
|
|
757
|
+
case ut:
|
|
758
|
+
T = _e(k, N.shiftKey ? S : O, se ? -1 : 1, R, A);
|
|
759
|
+
break;
|
|
760
|
+
case at:
|
|
761
|
+
T = _e(k, N.shiftKey ? S : O, -1, R, A);
|
|
762
|
+
break;
|
|
763
|
+
case st:
|
|
764
|
+
T = _e(k, N.shiftKey ? S : O, se ? 1 : -1, R, A);
|
|
765
|
+
break;
|
|
766
|
+
case vt:
|
|
767
|
+
T = _e(k, S, 1, R, A);
|
|
768
|
+
break;
|
|
769
|
+
case Rt:
|
|
770
|
+
T = _e(k, S, -1, R, A);
|
|
771
|
+
break;
|
|
772
|
+
case it:
|
|
773
|
+
T = A, D && (T = Number.isFinite(F[I + 1]) ? F[I + 1] - O * _ : A);
|
|
774
|
+
break;
|
|
775
|
+
case ot:
|
|
776
|
+
T = R, D && (T = Number.isFinite(F[I - 1]) ? F[I - 1] + O * _ : R);
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
T !== null && (H(T, I, N), N.preventDefault());
|
|
780
|
+
},
|
|
781
|
+
step: O,
|
|
782
|
+
style: {
|
|
783
|
+
...Ge,
|
|
784
|
+
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
785
|
+
width: "100%",
|
|
786
|
+
height: "100%",
|
|
787
|
+
writingMode: ae
|
|
788
|
+
},
|
|
789
|
+
tabIndex: y ?? void 0,
|
|
790
|
+
type: "range",
|
|
791
|
+
value: Q ?? ""
|
|
792
|
+
}, q.getInputValidationProps), Te = Ot(d, q.inputRef, s);
|
|
793
|
+
return Ee("div", t, {
|
|
794
|
+
state: he,
|
|
795
|
+
ref: [r, Pe, b],
|
|
796
|
+
props: [{
|
|
797
|
+
[Qt.index]: I,
|
|
798
|
+
children: /* @__PURE__ */ Je(a.Fragment, {
|
|
799
|
+
children: [o, /* @__PURE__ */ be("input", {
|
|
800
|
+
ref: Te,
|
|
801
|
+
...ve
|
|
802
|
+
}), U && !G && C && // this must be rendered with the last thumb to ensure all
|
|
803
|
+
// preceding thumbs are already rendered in the DOM
|
|
804
|
+
xe && /* @__PURE__ */ be("script", {
|
|
805
|
+
// eslint-disable-next-line react/no-danger
|
|
806
|
+
dangerouslySetInnerHTML: {
|
|
807
|
+
__html: Zt
|
|
808
|
+
},
|
|
809
|
+
suppressHydrationWarning: !0
|
|
810
|
+
})]
|
|
811
|
+
}),
|
|
812
|
+
id: te,
|
|
813
|
+
onBlur: V,
|
|
814
|
+
onFocus: x,
|
|
815
|
+
onPointerDown(N) {
|
|
816
|
+
if (de.current = I, b.current != null) {
|
|
817
|
+
const T = oe === "horizontal" ? "x" : "y", k = ht(b.current), Me = (oe === "horizontal" ? N.clientX : N.clientY) - k[T];
|
|
818
|
+
Y.current = Me;
|
|
819
|
+
}
|
|
820
|
+
d.current != null && X.current !== d.current && (X.current = d.current);
|
|
821
|
+
},
|
|
822
|
+
style: pe(),
|
|
823
|
+
suppressHydrationWarning: C || void 0,
|
|
824
|
+
tabIndex: -1
|
|
825
|
+
}, M],
|
|
826
|
+
stateAttributesMapping: Ve
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
process.env.NODE_ENV !== "production" && (It.displayName = "SliderThumb");
|
|
830
|
+
function nn(e, t, r, i, o, l) {
|
|
831
|
+
const u = r === void 0 || t && i === void 0 ? "hidden" : void 0, g = e ? "bottom" : "insetInlineStart", p = e ? "height" : "width", h = {
|
|
832
|
+
visibility: o && !l ? "hidden" : u,
|
|
833
|
+
position: e ? "absolute" : "relative",
|
|
834
|
+
[e ? "width" : "height"]: "inherit"
|
|
835
|
+
};
|
|
836
|
+
return h["--start-position"] = `${r ?? 0}%`, t ? (h["--relative-size"] = `${(i ?? 0) - (r ?? 0)}%`, h[g] = "var(--start-position)", h[p] = "var(--relative-size)", h) : (h[g] = 0, h[p] = "var(--start-position)", h);
|
|
837
|
+
}
|
|
838
|
+
function rn(e, t, r, i) {
|
|
839
|
+
const o = e ? "bottom" : "insetInlineStart", l = e ? "height" : "width", g = {
|
|
840
|
+
position: e ? "absolute" : "relative",
|
|
841
|
+
[e ? "width" : "height"]: "inherit"
|
|
842
|
+
};
|
|
843
|
+
if (!t)
|
|
844
|
+
return g[o] = 0, g[l] = `${r}%`, g;
|
|
845
|
+
const p = i - r;
|
|
846
|
+
return g[o] = `${r}%`, g[l] = `${p}%`, g;
|
|
847
|
+
}
|
|
848
|
+
const St = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
849
|
+
const {
|
|
850
|
+
render: i,
|
|
851
|
+
className: o,
|
|
852
|
+
...l
|
|
853
|
+
} = t, {
|
|
854
|
+
indicatorPosition: u,
|
|
855
|
+
inset: g,
|
|
856
|
+
max: p,
|
|
857
|
+
min: w,
|
|
858
|
+
orientation: h,
|
|
859
|
+
renderBeforeHydration: W,
|
|
860
|
+
state: E,
|
|
861
|
+
values: m
|
|
862
|
+
} = Le(), [s, V] = a.useState(!1);
|
|
863
|
+
rt(() => V(!0));
|
|
864
|
+
const x = h === "vertical", P = m.length > 1, y = g ? nn(x, P, u[0], u[1], W, s) : rn(x, P, qe(m[0], w, p), qe(m[m.length - 1], w, p));
|
|
865
|
+
return Ee("div", t, {
|
|
866
|
+
state: E,
|
|
867
|
+
ref: r,
|
|
868
|
+
props: [{
|
|
869
|
+
"data-base-ui-slider-indicator": W ? "" : void 0,
|
|
870
|
+
style: y,
|
|
871
|
+
suppressHydrationWarning: W || void 0
|
|
872
|
+
}, l],
|
|
873
|
+
stateAttributesMapping: Ve
|
|
874
|
+
});
|
|
875
|
+
});
|
|
876
|
+
process.env.NODE_ENV !== "production" && (St.displayName = "SliderIndicator");
|
|
877
|
+
const on = "_slider__control_15j4n_1", sn = "_slider__track_15j4n_8", an = "_slider__indicator_15j4n_16", un = "_slider__thumb_15j4n_27", Be = {
|
|
878
|
+
slider__control: on,
|
|
879
|
+
slider__track: sn,
|
|
880
|
+
slider__indicator: an,
|
|
881
|
+
slider__thumb: un
|
|
882
|
+
};
|
|
883
|
+
function Dn({
|
|
884
|
+
color: e = "primary",
|
|
885
|
+
...t
|
|
886
|
+
}) {
|
|
887
|
+
return /* @__PURE__ */ be(pt, { ...t, children: /* @__PURE__ */ be(bt, { className: Be.slider__control, children: /* @__PURE__ */ Je(
|
|
888
|
+
Pt,
|
|
889
|
+
{
|
|
890
|
+
render: /* @__PURE__ */ be(yt, {}),
|
|
891
|
+
color: e,
|
|
892
|
+
className: Be.slider__track,
|
|
893
|
+
children: [
|
|
894
|
+
/* @__PURE__ */ be(St, { className: Be.slider__indicator }),
|
|
895
|
+
/* @__PURE__ */ be(It, { className: Ct(Be.slider__thumb) })
|
|
896
|
+
]
|
|
897
|
+
}
|
|
898
|
+
) }) });
|
|
899
|
+
}
|
|
900
|
+
export {
|
|
901
|
+
Dn as Slider
|
|
902
|
+
};
|