@fldr/ui 0.0.0-stage → 0.1.0
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/CHANGELOG.md +2366 -0
- package/LICENSE +21 -0
- package/README.md +488 -2
- package/ai/USAGE.md +216 -0
- package/ai/component-registry.json +8694 -0
- package/ai/component-registry.md +11933 -0
- package/ai/schemas.ts +1239 -0
- package/bin/kumo.js +36 -0
- package/dist/.build-complete +1 -0
- package/dist/ai/schemas.d.ts +3229 -0
- package/dist/ai/schemas.js +5963 -0
- package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
- package/dist/blocks-source/delete-resource/delete-resource.tsx +219 -0
- package/dist/blocks-source/page-header/page-header.tsx +99 -0
- package/dist/blocks-source/resource-list/resource-list.test.tsx +28 -0
- package/dist/blocks-source/resource-list/resource-list.tsx +66 -0
- package/dist/button-DzavLWXm.d.ts +227 -0
- package/dist/catalog.d.ts +380 -0
- package/dist/catalog.js +387 -0
- package/dist/chunks/AccordionPanelDataAttributes-mmrmkky28u1010l5.js +457 -0
- package/dist/chunks/AlertDialogTrigger-l1r1gbxcky1xq889.js +24 -0
- package/dist/chunks/AlertDialogTriggerDataAttributes-go49qon601catpgn.js +56 -0
- package/dist/chunks/AutocompleteItem-36ysm5nwbsd0snr6.js +70 -0
- package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
- package/dist/chunks/AutocompleteSeparator-bnqeqh7i983d92gx.js +12 -0
- package/dist/chunks/AvatarImageDataAttributes-jw70u384c83lhqfp.js +247 -0
- package/dist/chunks/ButtonDataAttributes-nceand1fi7lvnmkb.js +35 -0
- package/dist/chunks/CSPContext-iv67i0qqhihg8mur.js +11 -0
- package/dist/chunks/CSPProvider-finau3a8hnc9o2td.js +24 -0
- package/dist/chunks/CheckboxGroup-581mfftu99wvjb3a.js +190 -0
- package/dist/chunks/CheckboxGroupContext-jf1bt3znvqlhrql6.js +10 -0
- package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
- package/dist/chunks/CheckboxIndicator-i13dmhacfgqo328c.js +414 -0
- package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
- package/dist/chunks/CollapsiblePanel-md5suzmtnsyz1kab.js +178 -0
- package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
- package/dist/chunks/ComboboxClear-ioejwvtnmqanph88.js +294 -0
- package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
- package/dist/chunks/ComboboxEmpty-gkt1y5b81a4983v7.js +1950 -0
- package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
- package/dist/chunks/ComboboxPopup-n8cbgys9st446j1i.js +205 -0
- package/dist/chunks/CompositeItem-kepwg8jtvgap06o6.js +20 -0
- package/dist/chunks/CompositeList-gwuaf6d14s4da0j0.js +182 -0
- package/dist/chunks/CompositeListContext-bejvmlu39hsfjzgu.js +15 -0
- package/dist/chunks/CompositeRoot-dnlkb27uw4g5aocf.js +223 -0
- package/dist/chunks/CompositeRootContext-obm54j7y6s86qwhq.js +12 -0
- package/dist/chunks/ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js +237 -0
- package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
- package/dist/chunks/DialogCloseDataAttributes-12m7gwh3i6fd7d05.js +76 -0
- package/dist/chunks/DialogPopup-n6w7b389e7bs0472.js +133 -0
- package/dist/chunks/DialogRoot-hkkqj7vcjpkx8qk8.js +16 -0
- package/dist/chunks/DialogTrigger-kpugfkbfswqrus4u.js +142 -0
- package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
- package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
- package/dist/chunks/DirectionContext-kpby968j030psajn.js +10 -0
- package/dist/chunks/DirectionProvider-cg0pwzgdyg6r73r6.js +21 -0
- package/dist/chunks/DrawerViewport-mzqpwvqtylnad8ib.js +1532 -0
- package/dist/chunks/DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js +1072 -0
- package/dist/chunks/FieldControl-hjj2tcqruozadgdi.js +122 -0
- package/dist/chunks/FieldDescription-orix2gepowrp5ni4.js +122 -0
- package/dist/chunks/FieldItemContext-ohsf45im6xhpay40.js +10 -0
- package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
- package/dist/chunks/FieldLabel-fjc7tdis7rcbq8o4.js +353 -0
- package/dist/chunks/FieldsetLegend-gl9z9eezr0xg9zr7.js +61 -0
- package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
- package/dist/chunks/FieldsetRootContext-fphwizvcm55ydg94.js +12 -0
- package/dist/chunks/FloatingPortalLite-j7dsy7gokbxdoe1i.js +25 -0
- package/dist/chunks/FloatingRootStore-men6ufp3a2b296fh.js +840 -0
- package/dist/chunks/FloatingTree-kiyzavvaum442o1s.js +115 -0
- package/dist/chunks/Form-oz425k7r4abea8o4.js +113 -0
- package/dist/chunks/FormContext-jv19engyccpf6xcl.js +18 -0
- package/dist/chunks/Input-ozudotydd679ly63.js +20 -0
- package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
- package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
- package/dist/chunks/LabelableContext-dz4wz3lu3lgqusu7.js +135 -0
- package/dist/chunks/ListboxSeparator-skazx18vzzj7i9zp.js +21 -0
- package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
- package/dist/chunks/MenuSubmenuTrigger-hm5xbgik6aq95x35.js +1976 -0
- package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
- package/dist/chunks/MenuTrigger-dlfvicsaggss0o9m.js +265 -0
- package/dist/chunks/Menubar-ja5int05ihjj0ra4.js +116 -0
- package/dist/chunks/MenubarContext-ooz0h08i55c8oip5.js +12 -0
- package/dist/chunks/MeterLabel-cykbkvqys5263z05.js +148 -0
- package/dist/chunks/NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js +1654 -0
- package/dist/chunks/NullStore-my62xo2vfcfkerri.js +110 -0
- package/dist/chunks/NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js +1493 -0
- package/dist/chunks/OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js +683 -0
- package/dist/chunks/PopoverViewport-peh28i8q4hqfjy97.js +713 -0
- package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
- package/dist/chunks/PrehydrationScript-hs2je3mndbxuts7w.js +78 -0
- package/dist/chunks/PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js +914 -0
- package/dist/chunks/ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js +287 -0
- package/dist/chunks/RadioGroup-kioqngmmuo7a1lfa.js +163 -0
- package/dist/chunks/RadioGroupContext-dr6uihsj7oky0eol.js +10 -0
- package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
- package/dist/chunks/RadioIndicator-bhxqih8wzv7hyrec.js +299 -0
- package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
- package/dist/chunks/ScrollAreaThumb-hxig41yn4lrurd3o.js +928 -0
- package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
- package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
- package/dist/chunks/SelectSeparator-nnak70azojox8b2b.js +1632 -0
- package/dist/chunks/Separator-fhwve0tfny3tht3a.js +24 -0
- package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
- package/dist/chunks/SliderIndicator-h1o3qbrvr8x0t4t2.js +1171 -0
- package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
- package/dist/chunks/SwitchRoot-m4t2tq5zn5wibyxk.js +244 -0
- package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
- package/dist/chunks/TabsList-n5n93rxr4sy704u8.js +664 -0
- package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
- package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
- package/dist/chunks/ToggleDataAttributes-jl9ojyvwgrvefke6.js +103 -0
- package/dist/chunks/ToggleGroupContext-hg8zbkgqpscqhz83.js +10 -0
- package/dist/chunks/ToggleGroupDataAttributes-n1dwona1alvabstl.js +102 -0
- package/dist/chunks/ToolbarGroupContext-eawva8xkxb4osbxb.js +10 -0
- package/dist/chunks/ToolbarInput-kyxl1be0p3cyuayp.js +174 -0
- package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
- package/dist/chunks/ToolbarRootContext-difqbj720teyt8lu.js +12 -0
- package/dist/chunks/TooltipPopup-furysmeyb68uycbz.js +839 -0
- package/dist/chunks/TooltipProvider-hyans0ens4axh1y8.js +61 -0
- package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
- package/dist/chunks/adaptiveOriginMiddleware-m9tqzw58wya9sdds.js +51 -0
- package/dist/chunks/addEventListener-ku3x23446prmd1kz.js +13 -0
- package/dist/chunks/areArraysEqual-nnpg93s9g7aqcaoh.js +15 -0
- package/dist/chunks/autocomplete-gdd9aruremdgdvx7.js +152 -0
- package/dist/chunks/badge-gca8xfu79ne55d5k.js +165 -0
- package/dist/chunks/banner-mo1xl9ww734kgsqh.js +269 -0
- package/dist/chunks/bash-jpzh6zbf5237424t.js +3 -0
- package/dist/chunks/breadcrumbs-z1jo40oxlw8e4eh4.js +159 -0
- package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
- package/dist/chunks/button-hzvowfkbathmx8yg.js +274 -0
- package/dist/chunks/chart-dgh98nbzo2sux2bs.js +3985 -0
- package/dist/chunks/checkbox-eifiwbw34xwsikvf.js +211 -0
- package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
- package/dist/chunks/clipboard-text-oukrnke1s3kebk3y.js +209 -0
- package/dist/chunks/cloudflare-logo-d8mid9xr190h78cu.js +186 -0
- package/dist/chunks/code-nj2nu6qzxhz6qnkk.js +96 -0
- package/dist/chunks/collapsible-ic6813hc4yv5s5hv.js +185 -0
- package/dist/chunks/combobox-mzvobpvalz2gnpli.js +321 -0
- package/dist/chunks/command-palette-d45ueqbuxygu87ir.js +507 -0
- package/dist/chunks/composite-c11t1ok72s3cggjc.js +90 -0
- package/dist/chunks/constants-l10cgj6pyqg27jod.js +5 -0
- package/dist/chunks/core-n0de50o00ej2ecfe.js +7177 -0
- package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
- package/dist/chunks/createItems-n07tfwx89cdoar18.js +323 -0
- package/dist/chunks/createToastManager-cxjmn4jx3ejh85fs.js +1225 -0
- package/dist/chunks/css-j501gxq1am2gnikh.js +4 -0
- package/dist/chunks/date-picker-ija2bz17ai6ypnao.js +6865 -0
- package/dist/chunks/date-range-picker-oivlshld01jbel29.js +336 -0
- package/dist/chunks/dialog-g7wavhkdv2gplwq9.js +173 -0
- package/dist/chunks/diff-g2re0kj6fh27rgg5.js +4 -0
- package/dist/chunks/dropdown-m5a8nwer5hpvnkfk.js +384 -0
- package/dist/chunks/empty-e0onzpyokyl6h9bp.js +96 -0
- package/dist/chunks/engine-hzmefiqm63hu0c7i.js +10 -0
- package/dist/chunks/engine-javascript-e9xj8hhz9xfqhpnu.js +3118 -0
- package/dist/chunks/engine-oniguruma-ias56ildu01gf939.js +389 -0
- package/dist/chunks/error-lbnic2b20qr3mukp.js +6 -0
- package/dist/chunks/field-fowmq5smvp17pnqe.js +75 -0
- package/dist/chunks/flow-fak0fyldoaozd32s.js +10290 -0
- package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
- package/dist/chunks/getCssDimensions-gckwdrp86f73cv51.js +21 -0
- package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
- package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
- package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
- package/dist/chunks/getPseudoElementBounds-csuw8kwsoeyxd5tv.js +37 -0
- package/dist/chunks/github-light-hir7yctc38258pwt.js +5 -0
- package/dist/chunks/graphql-n9vlzkvcp2j19p7a.js +16 -0
- package/dist/chunks/grid-nwiczrab3r4w0zr2.js +118 -0
- package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +4 -0
- package/dist/chunks/html-nimj6ljkkifnc9ni.js +12 -0
- package/dist/chunks/index.parts-db9pzsm9rrs9tp0t.js +200 -0
- package/dist/chunks/index.parts-ggacwr0yakuemead.js +24 -0
- package/dist/chunks/index.parts-pcg3pmf3yyro841t.js +13 -0
- package/dist/chunks/inertValue-n09gkjvwwa1kddov.js +9 -0
- package/dist/chunks/inline-copy-text-izxpvnrtebcqlquf.js +104 -0
- package/dist/chunks/input-group-h9fepskc84e1h11n.js +457 -0
- package/dist/chunks/input-kfi46426y22ocoo4.js +85 -0
- package/dist/chunks/input-m2tfec2viezoz9hh.js +146 -0
- package/dist/chunks/isElementDisabled-dyqutxpzdfppbohx.js +7 -0
- package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
- package/dist/chunks/javascript-b6fq9bl50fdj6813.js +4 -0
- package/dist/chunks/json-h2g0z143t3cs13d7.js +4 -0
- package/dist/chunks/jsonc-jxlzvingck161eej.js +4 -0
- package/dist/chunks/jsx-jp7a33937sef92sn.js +4 -0
- package/dist/chunks/label-f18fnpbv85jddo4q.js +76 -0
- package/dist/chunks/layer-card-lsmeuqic9i1isv2b.js +74 -0
- package/dist/chunks/layer-dialog-ejtz9s7bbfhjk1md.js +414 -0
- package/dist/chunks/link-h84bkh8eem39p529.js +112 -0
- package/dist/chunks/link-provider-kbwllpbo24fvgioj.js +60 -0
- package/dist/chunks/loader-kv5nk8j8tsuesxqo.js +87 -0
- package/dist/chunks/locale-provider-j4ii538ntyok36r6.js +50 -0
- package/dist/chunks/markdown-eybeqjr58vfygtz1.js +4 -0
- package/dist/chunks/menubar-gzlyhmmc4i24prn1.js +106 -0
- package/dist/chunks/mergeCleanups-nw73c6jfwl5tyhw4.js +15 -0
- package/dist/chunks/meter-poh8jpe0qtq6mvee.js +35 -0
- package/dist/chunks/pagination-lmogkvvtu19mnr7f.js +296 -0
- package/dist/chunks/popover-nqrt3ykqv6sic8pz.js +206 -0
- package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
- package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
- package/dist/chunks/portal-provider-eveknxf26oudn7pp.js +63 -0
- package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +4 -0
- package/dist/chunks/radio-nf717i5ypsga9zdh.js +204 -0
- package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
- package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
- package/dist/chunks/resolveAriaLabelledBy-knaucrjrjwnk7tvs.js +10 -0
- package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
- package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
- package/dist/chunks/safePolygon-ep4133qogeu5vjf3.js +661 -0
- package/dist/chunks/safeReact-ek77ilng4ekk7mgz.js +18 -0
- package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
- package/dist/chunks/select-lnekz415wm4v6d6m.js +279 -0
- package/dist/chunks/sensitive-input-dvwlnntm7rdudwp0.js +252 -0
- package/dist/chunks/serializeValue-d1otz2i7h5tygrwf.js +13 -0
- package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +4 -0
- package/dist/chunks/sidebar-mhlgvpawixxoey2k.js +1466 -0
- package/dist/chunks/skeleton-line-kmhnp0lx3rxhioxa.js +74 -0
- package/dist/chunks/slider-e395gihi5cjd62ss.js +87 -0
- package/dist/chunks/sql-hqp2eekl7qhmxe92.js +4 -0
- package/dist/chunks/stringifyLocale-gbxouqj7ol627jxh.js +9 -0
- package/dist/chunks/styles-eb8bvypmayf578jf.js +35 -0
- package/dist/chunks/surface-jr8x5hy0gucjk5ig.js +30 -0
- package/dist/chunks/switch-nc8thi7ogd51m3gi.js +202 -0
- package/dist/chunks/table-ngl1b5yc8mcur662.js +238 -0
- package/dist/chunks/table-of-contents-gkjv9ck8etbz64ej.js +234 -0
- package/dist/chunks/tabs-o59bv7348nh2gppm.js +280 -0
- package/dist/chunks/tag-input-lbx9yzt33d4wu07o.js +156 -0
- package/dist/chunks/text-nqum95flcp07ac9s.js +126 -0
- package/dist/chunks/toast-ljpenshot856xqq4.js +341 -0
- package/dist/chunks/toml-oyqrgosuct25x413.js +4 -0
- package/dist/chunks/toolbar-kh6pc12ii7b6dv1x.js +141 -0
- package/dist/chunks/tooltip-bcymn9bfyz29fvji.js +92 -0
- package/dist/chunks/tsx-pem8x69upvmibv6l.js +4 -0
- package/dist/chunks/typescript-pe5y016phdwbgws7.js +4 -0
- package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
- package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
- package/dist/chunks/useAnchoredPopupScrollLock-msm8tzkewysnunut.js +31 -0
- package/dist/chunks/useAnimationFrame-k9lqdj9quln3sd85.js +87 -0
- package/dist/chunks/useAriaLabelledBy-j3j9jqlr9ukyk08s.js +36 -0
- package/dist/chunks/useBaseUiId-nk4k7nj9h1cy76ny.js +13 -0
- package/dist/chunks/useButton-lklvdzuhvj22bx07.js +186 -0
- package/dist/chunks/useClick-pcbkcc7r620v1smu.js +87 -0
- package/dist/chunks/useCollapsiblePanel-lrfsgx21ds36cwlp.js +415 -0
- package/dist/chunks/useCompositeItem-2juex3zh9gyrs8e9.js +31 -0
- package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
- package/dist/chunks/useControlled-i3srnkxy598s0au9.js +52 -0
- package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
- package/dist/chunks/useFloatingRootContext-k676b6m7f80bdapd.js +51 -0
- package/dist/chunks/useFocus-mn7a9t9v6fnlb4mf.js +124 -0
- package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
- package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
- package/dist/chunks/useLabel-me6zzfvkypo458pi.js +58 -0
- package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
- package/dist/chunks/useListNavigation-hpddbd0cc9pvt461.js +441 -0
- package/dist/chunks/useOnMount-gxggz1m0n869s6r0.js +12 -0
- package/dist/chunks/useOpenChangeComplete-edtabjwqmechsyv6.js +129 -0
- package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
- package/dist/chunks/usePopupViewport-l6w01iohvzloghy8.js +367 -0
- package/dist/chunks/usePositioner-mzvgnazldqvy44z2.js +580 -0
- package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
- package/dist/chunks/usePreviousValue-o6swt5tb7xhpdu4e.js +21 -0
- package/dist/chunks/useRegisterFieldControl-m1stc9l9y4cndf0k.js +40 -0
- package/dist/chunks/useRegisteredLabelId-b7u9ygya03448zzn.js +16 -0
- package/dist/chunks/useRender-h9ktka9xt4obdv6y.js +13 -0
- package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
- package/dist/chunks/useRenderElement-nkklxbq1rp7h2kw0.js +436 -0
- package/dist/chunks/useScrollLock-le7ajwlt7oh6fzxi.js +877 -0
- package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
- package/dist/chunks/useStableCallback-le5qgj6p9l04729n.js +38 -0
- package/dist/chunks/useSwipeDismiss-e8tfxzlp05p86mgb.js +697 -0
- package/dist/chunks/useTimeout-f0ayn2l2l9aop4l8.js +43 -0
- package/dist/chunks/useTransitionStatus-disysoblzgk34w14.js +74 -0
- package/dist/chunks/useTriggerFocusGuards-dyd3hb1m8en8ct50.js +40 -0
- package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
- package/dist/chunks/useTypeahead-kfdsw1ksl5bgvvzl.js +111 -0
- package/dist/chunks/useValueAsRef-dv0tmfr1xlpzdlru.js +27 -0
- package/dist/chunks/useValueChanged-fjssa2v6d4w8y332.js +15 -0
- package/dist/chunks/utils-o44zfmzz9z7uyj1v.js +18 -0
- package/dist/chunks/valueToPercent-djk2mqnihth2uvf6.js +7 -0
- package/dist/chunks/vendor-floating-ui-fqblx3wa0r71mjoo.js +1458 -0
- package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
- package/dist/chunks/vendor-utils-io8z5lsfxq8m2dcc.js +660 -0
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
- package/dist/chunks/visuallyHidden-kzzs9hbe93is3rci.js +25 -0
- package/dist/chunks/wasm-cpasy0o9lsjrm39j.js +8 -0
- package/dist/chunks/yaml-kzk5ddyekbyha04v.js +4 -0
- package/dist/code/server.d.ts +96 -0
- package/dist/code/server.js +151 -0
- package/dist/code.d.ts +82 -0
- package/dist/code.js +373 -0
- package/dist/command-line/cli.js +1705 -0
- package/dist/command-line/commands/add.js +282 -0
- package/dist/command-line/commands/ai.js +22 -0
- package/dist/command-line/commands/blocks.js +61 -0
- package/dist/command-line/commands/doc.js +167 -0
- package/dist/command-line/commands/init.js +95 -0
- package/dist/command-line/commands/ls.js +53 -0
- package/dist/command-line/commands/theme.js +850 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +3 -0
- package/dist/components/badge.d.ts +2 -0
- package/dist/components/badge.js +3 -0
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +3 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +3 -0
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.js +3 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +3 -0
- package/dist/components/chart.d.ts +2 -0
- package/dist/components/chart.js +3 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +3 -0
- package/dist/components/clipboard-text.d.ts +2 -0
- package/dist/components/clipboard-text.js +3 -0
- package/dist/components/cloudflare-logo.d.ts +2 -0
- package/dist/components/cloudflare-logo.js +3 -0
- package/dist/components/code.d.ts +2 -0
- package/dist/components/code.js +3 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +3 -0
- package/dist/components/combobox.d.ts +2 -0
- package/dist/components/combobox.js +3 -0
- package/dist/components/command-palette.d.ts +2 -0
- package/dist/components/command-palette.js +3 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +3 -0
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +3 -0
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +3 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +3 -0
- package/dist/components/empty.d.ts +2 -0
- package/dist/components/empty.js +3 -0
- package/dist/components/field.d.ts +2 -0
- package/dist/components/field.js +3 -0
- package/dist/components/flow.d.ts +2 -0
- package/dist/components/flow.js +3 -0
- package/dist/components/grid.d.ts +2 -0
- package/dist/components/grid.js +3 -0
- package/dist/components/inline-copy-text.d.ts +2 -0
- package/dist/components/inline-copy-text.js +3 -0
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.js +3 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.js +5 -0
- package/dist/components/label.d.ts +2 -0
- package/dist/components/label.js +3 -0
- package/dist/components/layer-card.d.ts +2 -0
- package/dist/components/layer-card.js +3 -0
- package/dist/components/layer-dialog.d.ts +2 -0
- package/dist/components/layer-dialog.js +3 -0
- package/dist/components/link.d.ts +67 -0
- package/dist/components/link.js +3 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +4 -0
- package/dist/components/menubar.d.ts +2 -0
- package/dist/components/menubar.js +3 -0
- package/dist/components/meter.d.ts +2 -0
- package/dist/components/meter.js +3 -0
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +3 -0
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +3 -0
- package/dist/components/radio.d.ts +2 -0
- package/dist/components/radio.js +3 -0
- package/dist/components/select.d.ts +2 -0
- package/dist/components/select.js +3 -0
- package/dist/components/sensitive-input.d.ts +2 -0
- package/dist/components/sensitive-input.js +3 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +3 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +3 -0
- package/dist/components/surface.d.ts +2 -0
- package/dist/components/surface.js +3 -0
- package/dist/components/switch.d.ts +2 -0
- package/dist/components/switch.js +3 -0
- package/dist/components/table-of-contents.d.ts +2 -0
- package/dist/components/table-of-contents.js +3 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +3 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +3 -0
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +3 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +3 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +4 -0
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +3 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +3 -0
- package/dist/config-BKj6nyHa.d.ts +620 -0
- package/dist/field-DIjlHM8W.d.ts +91 -0
- package/dist/index-2jvVmJ8P.d.ts +46 -0
- package/dist/index-5PpauI_2.d.ts +85 -0
- package/dist/index-AMEc1MEg.d.ts +180 -0
- package/dist/index-AUC5xRcO.d.ts +236 -0
- package/dist/index-B7epkoHc.d.ts +72 -0
- package/dist/index-B9-RdY6D.d.ts +75 -0
- package/dist/index-B9niVl3r.d.ts +140 -0
- package/dist/index-BD-gTiEv.d.ts +71 -0
- package/dist/index-BK1tZgmP.d.ts +426 -0
- package/dist/index-BVgXnR1V.d.ts +137 -0
- package/dist/index-BW1HVU7T.d.ts +119 -0
- package/dist/index-BWe6haHU.d.ts +64 -0
- package/dist/index-BkTAB4wj.d.ts +673 -0
- package/dist/index-Bwhwpw_j.d.ts +189 -0
- package/dist/index-BzE0aNpx.d.ts +143 -0
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/index-CE09bLNb.d.ts +72 -0
- package/dist/index-CJRe-8P-.d.ts +174 -0
- package/dist/index-CReGk3Dc.d.ts +91 -0
- package/dist/index-CU_lnxg7.d.ts +287 -0
- package/dist/index-CYoiniZ4.d.ts +135 -0
- package/dist/index-ClS-eFxE.d.ts +104 -0
- package/dist/index-CzIWigmH.d.ts +62 -0
- package/dist/index-CzTgKPh-.d.ts +105 -0
- package/dist/index-D2Gvly0i.d.ts +96 -0
- package/dist/index-DIV3riUd.d.ts +148 -0
- package/dist/index-DL1-uSuH.d.ts +1 -0
- package/dist/index-DYYiDxZs.d.ts +243 -0
- package/dist/index-DjSGDESy.d.ts +222 -0
- package/dist/index-Dmbgjww7.d.ts +157 -0
- package/dist/index-DwNMa4LN.d.ts +166 -0
- package/dist/index-Dx7hOWUc.d.ts +93 -0
- package/dist/index-DxOyYZaJ.d.ts +251 -0
- package/dist/index-NnHba-T1.d.ts +136 -0
- package/dist/index-RP_rt8vB.d.ts +140 -0
- package/dist/index-T1sSoiWG.d.ts +184 -0
- package/dist/index-aahL-0Zw.d.ts +60 -0
- package/dist/index-bBPKMepR.d.ts +73 -0
- package/dist/index-g-eFm1Bq.d.ts +877 -0
- package/dist/index-gYC6cQVO.d.ts +105 -0
- package/dist/index-lOWfpkxK.d.ts +118 -0
- package/dist/index-pjdgauIH.d.ts +170 -0
- package/dist/index-yK3Hayg_.d.ts +40 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +207 -0
- package/dist/input-BeWEb-jD.d.ts +122 -0
- package/dist/input-group-8gEtPiKw.d.ts +100 -0
- package/dist/layer-card-BNIn9pqy.d.ts +56 -0
- package/dist/link-provider-tz-NJp9x.d.ts +67 -0
- package/dist/locale-provider-CHMCQ0-J.d.ts +40 -0
- package/dist/panda.d.ts +25 -0
- package/dist/panda.js +32 -0
- package/dist/portal-provider-BAqPpq_a.d.ts +55 -0
- package/dist/primitives/accordion.d.ts +1 -0
- package/dist/primitives/accordion.js +3 -0
- package/dist/primitives/alert-dialog.d.ts +1 -0
- package/dist/primitives/alert-dialog.js +8 -0
- package/dist/primitives/autocomplete.d.ts +1 -0
- package/dist/primitives/autocomplete.js +6 -0
- package/dist/primitives/avatar.d.ts +1 -0
- package/dist/primitives/avatar.js +3 -0
- package/dist/primitives/button.d.ts +1 -0
- package/dist/primitives/button.js +3 -0
- package/dist/primitives/checkbox-group.d.ts +1 -0
- package/dist/primitives/checkbox-group.js +4 -0
- package/dist/primitives/checkbox.d.ts +1 -0
- package/dist/primitives/checkbox.js +4 -0
- package/dist/primitives/collapsible.d.ts +1 -0
- package/dist/primitives/collapsible.js +5 -0
- package/dist/primitives/combobox.d.ts +1 -0
- package/dist/primitives/combobox.js +6 -0
- package/dist/primitives/context-menu.d.ts +1 -0
- package/dist/primitives/context-menu.js +6 -0
- package/dist/primitives/csp-provider.d.ts +1 -0
- package/dist/primitives/csp-provider.js +3 -0
- package/dist/primitives/dialog.d.ts +1 -0
- package/dist/primitives/dialog.js +9 -0
- package/dist/primitives/direction-provider.d.ts +1 -0
- package/dist/primitives/direction-provider.js +4 -0
- package/dist/primitives/drawer.d.ts +1 -0
- package/dist/primitives/drawer.js +6 -0
- package/dist/primitives/field.d.ts +1 -0
- package/dist/primitives/field.js +4 -0
- package/dist/primitives/fieldset.d.ts +1 -0
- package/dist/primitives/fieldset.js +3 -0
- package/dist/primitives/form.d.ts +1 -0
- package/dist/primitives/form.js +3 -0
- package/dist/primitives/input.d.ts +1 -0
- package/dist/primitives/input.js +4 -0
- package/dist/primitives/menu.d.ts +1 -0
- package/dist/primitives/menu.js +6 -0
- package/dist/primitives/menubar.d.ts +1 -0
- package/dist/primitives/menubar.js +3 -0
- package/dist/primitives/meter.d.ts +1 -0
- package/dist/primitives/meter.js +3 -0
- package/dist/primitives/navigation-menu.d.ts +1 -0
- package/dist/primitives/navigation-menu.js +3 -0
- package/dist/primitives/number-field.d.ts +1 -0
- package/dist/primitives/number-field.js +3 -0
- package/dist/primitives/otp-field.d.ts +3 -0
- package/dist/primitives/otp-field.js +4 -0
- package/dist/primitives/popover.d.ts +1 -0
- package/dist/primitives/popover.js +3 -0
- package/dist/primitives/preview-card.d.ts +1 -0
- package/dist/primitives/preview-card.js +3 -0
- package/dist/primitives/progress.d.ts +1 -0
- package/dist/primitives/progress.js +3 -0
- package/dist/primitives/radio-group.d.ts +1 -0
- package/dist/primitives/radio-group.js +4 -0
- package/dist/primitives/radio.d.ts +1 -0
- package/dist/primitives/radio.js +4 -0
- package/dist/primitives/scroll-area.d.ts +1 -0
- package/dist/primitives/scroll-area.js +4 -0
- package/dist/primitives/select.d.ts +1 -0
- package/dist/primitives/select.js +5 -0
- package/dist/primitives/separator.d.ts +1 -0
- package/dist/primitives/separator.js +4 -0
- package/dist/primitives/slider.d.ts +1 -0
- package/dist/primitives/slider.js +4 -0
- package/dist/primitives/switch.d.ts +1 -0
- package/dist/primitives/switch.js +4 -0
- package/dist/primitives/tabs.d.ts +1 -0
- package/dist/primitives/tabs.js +4 -0
- package/dist/primitives/toast.d.ts +1 -0
- package/dist/primitives/toast.js +5 -0
- package/dist/primitives/toggle-group.d.ts +1 -0
- package/dist/primitives/toggle-group.js +3 -0
- package/dist/primitives/toggle.d.ts +1 -0
- package/dist/primitives/toggle.js +3 -0
- package/dist/primitives/toolbar.d.ts +1 -0
- package/dist/primitives/toolbar.js +3 -0
- package/dist/primitives/tooltip.d.ts +1 -0
- package/dist/primitives/tooltip.js +4 -0
- package/dist/primitives.d.ts +42 -0
- package/dist/primitives.js +71 -0
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +1 -0
- package/dist/scripts/theme-generator/config.d.ts +2 -0
- package/dist/scripts/theme-generator/config.js +487 -0
- package/dist/scripts/theme-generator/types.d.ts +2 -0
- package/dist/scripts/theme-generator/types.js +1 -0
- package/dist/styles/kumo-binding.css +490 -0
- package/dist/styles/kumo-standalone.css +2 -0
- package/dist/styles/kumo.css +153 -0
- package/dist/styles/theme-fedramp.css +31 -0
- package/dist/styles/theme-fldr.css +67 -0
- package/dist/styles/theme-kumo.css +464 -0
- package/dist/text-CRRU2g-u.d.ts +183 -0
- package/dist/theming.d.ts +185 -0
- package/dist/theming.js +241 -0
- package/dist/tooltip-D_vhi1PN.d.ts +105 -0
- package/dist/types-C6in2C8V.d.ts +135 -0
- package/dist/types-CdzJnnIl.d.ts +193 -0
- package/dist/types-Cl4HuOrB.d.ts +84 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +7 -0
- package/package.json +483 -3
- package/scripts/component-registry/cache.ts +123 -0
- package/scripts/component-registry/discovery.ts +560 -0
- package/scripts/component-registry/example-cleanup.ts +168 -0
- package/scripts/component-registry/index.test.ts +1075 -0
- package/scripts/component-registry/index.ts +1065 -0
- package/scripts/component-registry/markdown-generator.ts +222 -0
- package/scripts/component-registry/metadata.ts +1030 -0
- package/scripts/component-registry/props-filter.ts +312 -0
- package/scripts/component-registry/schema-generator.ts +333 -0
- package/scripts/component-registry/sub-components.ts +393 -0
- package/scripts/component-registry/types.ts +158 -0
- package/scripts/component-registry/utils.ts +280 -0
- package/scripts/component-registry/variant-parser.ts +262 -0
- package/scripts/css-build.ts +106 -0
- package/scripts/format-generated.ts +12 -0
- package/scripts/generate-globe-land-mask.mjs +80 -0
- package/scripts/generate-primitives.ts +196 -0
- package/scripts/publish-fldr.ts +78 -0
- package/scripts/theme-generator/config.ts +666 -0
- package/scripts/theme-generator/generate-css.test.ts +30 -0
- package/scripts/theme-generator/generate-css.ts +352 -0
- package/scripts/theme-generator/index.ts +165 -0
- package/scripts/theme-generator/migrate.ts +560 -0
- package/scripts/theme-generator/types.ts +92 -0
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
|
|
3
|
+
import { f as useMergedRefs, i as mergeProps, l as warn, n as useRenderElement } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
|
|
4
|
+
import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
|
|
5
|
+
import { $ as getTarget, E as matchesFocusVisible, Q as contains, X as activeElement, v as ownerDocument } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
|
|
6
|
+
import { E as isHTMLElement, T as isElement, w as getWindow } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
|
|
7
|
+
import { n as createGenericEventDetails, t as createChangeEventDetails } from "./createBaseUIEventDetails-nvee6bghv2reeqdb.js";
|
|
8
|
+
import { b as keyboard, c as drag, h as inputChange, j as trackPress, w as none } from "./reason-parts-hssx64rmlxyn6gw5.js";
|
|
9
|
+
import { t as addEventListener } from "./addEventListener-ku3x23446prmd1kz.js";
|
|
10
|
+
import { t as useValueAsRef } from "./useValueAsRef-dv0tmfr1xlpzdlru.js";
|
|
11
|
+
import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
|
|
12
|
+
import { n as useAnimationFrame } from "./useAnimationFrame-k9lqdj9quln3sd85.js";
|
|
13
|
+
import { t as visuallyHidden } from "./visuallyHidden-kzzs9hbe93is3rci.js";
|
|
14
|
+
import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
|
|
15
|
+
import { n as useDirection } from "./DirectionContext-kpby968j030psajn.js";
|
|
16
|
+
import { a as useFieldRootContext, c as fieldValidityMapping, n as useLabelableContext } from "./LabelableContext-dz4wz3lu3lgqusu7.js";
|
|
17
|
+
import { n as useFormContext } from "./FormContext-jv19engyccpf6xcl.js";
|
|
18
|
+
import { t as useLabelableId } from "./useLabelableId-bjeh6q3pgrqjb7er.js";
|
|
19
|
+
import { n as getControlById, r as useLabel, t as focusElementWithVisible } from "./useLabel-me6zzfvkypo458pi.js";
|
|
20
|
+
import { t as useSetFieldFocused } from "./useSetFieldFocused-fbvj7gcv67dqfkp0.js";
|
|
21
|
+
import { t as useRegisterFieldControl } from "./useRegisterFieldControl-m1stc9l9y4cndf0k.js";
|
|
22
|
+
import { t as useValueChanged } from "./useValueChanged-fjssa2v6d4w8y332.js";
|
|
23
|
+
import { t as useControlled } from "./useControlled-i3srnkxy598s0au9.js";
|
|
24
|
+
import { t as areArraysEqual } from "./areArraysEqual-nnpg93s9g7aqcaoh.js";
|
|
25
|
+
import { t as clamp } from "./clamp-rcpupxvhqrn8uuyf.js";
|
|
26
|
+
import { n as resolveAriaLabelledBy, t as getDefaultLabelId } from "./resolveAriaLabelledBy-knaucrjrjwnk7tvs.js";
|
|
27
|
+
import { t as CompositeList } from "./CompositeList-gwuaf6d14s4da0j0.js";
|
|
28
|
+
import { t as useCompositeListItem } from "./useCompositeListItem-ekwo2j2rjkggg7xj.js";
|
|
29
|
+
import { a as COMPOSITE_KEYS, c as PAGE_DOWN, i as ARROW_UP, l as PAGE_UP, n as ARROW_LEFT, o as HOME, r as ARROW_RIGHT, t as ARROW_DOWN } from "./composite-c11t1ok72s3cggjc.js";
|
|
30
|
+
import { t as formatNumber } from "./formatNumber-b4kjdsebslm2b3t0.js";
|
|
31
|
+
import { t as valueToPercent } from "./valueToPercent-djk2mqnihth2uvf6.js";
|
|
32
|
+
import { n as useIsHydrating, t as PrehydrationScript } from "./PrehydrationScript-hs2je3mndbxuts7w.js";
|
|
33
|
+
import { t as isTouchLikePointerType } from "./usePressAndHold-k9ynk78pgf677kpx.js";
|
|
34
|
+
import * as React$1 from "react";
|
|
35
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/asc.mjs
|
|
37
|
+
function asc(a, b) {
|
|
38
|
+
return a - b;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/getSliderValue.mjs
|
|
42
|
+
function getSliderValue(valueInput, index, min, max, range, values) {
|
|
43
|
+
const clamped = clamp(valueInput, min, max);
|
|
44
|
+
if (!range) return clamped;
|
|
45
|
+
const output = values.slice();
|
|
46
|
+
output[index] = clamp(clamped, values[index - 1] ?? -Infinity, values[index + 1] ?? Infinity);
|
|
47
|
+
return output.sort(asc);
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/validateMinimumDistance.mjs
|
|
51
|
+
function validateMinimumDistance(values, step, minStepsBetweenValues) {
|
|
52
|
+
if (!Array.isArray(values)) return true;
|
|
53
|
+
const minDistance = step * minStepsBetweenValues;
|
|
54
|
+
for (let i = 0; i < values.length - 1; i += 1) if (!(Math.abs(values[i] - values[i + 1]) >= minDistance)) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/root/stateAttributesMapping.mjs
|
|
59
|
+
const nullMapping = () => null;
|
|
60
|
+
const sliderStateAttributesMapping = {
|
|
61
|
+
activeThumbIndex: nullMapping,
|
|
62
|
+
max: nullMapping,
|
|
63
|
+
min: nullMapping,
|
|
64
|
+
minStepsBetweenValues: nullMapping,
|
|
65
|
+
step: nullMapping,
|
|
66
|
+
values: nullMapping,
|
|
67
|
+
...fieldValidityMapping
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/root/SliderRootContext.mjs
|
|
71
|
+
const SliderRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
72
|
+
SliderRootContext.displayName = "SliderRootContext";
|
|
73
|
+
function useSliderRootContext() {
|
|
74
|
+
const context = React$1.useContext(SliderRootContext);
|
|
75
|
+
if (context === void 0) throw new Error("Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>.");
|
|
76
|
+
return context;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/root/SliderRoot.mjs
|
|
80
|
+
function areValuesEqual(newValue, oldValue) {
|
|
81
|
+
return newValue === oldValue || Array.isArray(newValue) && Array.isArray(oldValue) && areArraysEqual(newValue, oldValue);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Groups all parts of the slider.
|
|
85
|
+
* Renders a `<div>` element.
|
|
86
|
+
*
|
|
87
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
88
|
+
*/
|
|
89
|
+
const SliderRoot = /*#__PURE__*/ React$1.forwardRef(function SliderRoot(componentProps, forwardedRef) {
|
|
90
|
+
const { "aria-labelledby": ariaLabelledByProp, className, defaultValue, disabled: disabledProp = false, id: idProp, format, largeStep = 10, locale, render, max = 100, min = 0, minStepsBetweenValues = 0, form, name: nameProp, onValueChange: onValueChangeProp, onValueCommitted: onValueCommittedProp, orientation = "horizontal", step = 1, thumbCollisionBehavior = "push", thumbAlignment = "center", value: valueProp, style, ...elementProps } = componentProps;
|
|
91
|
+
const id = useBaseUiId(idProp);
|
|
92
|
+
const defaultLabelId = getDefaultLabelId(id);
|
|
93
|
+
const onValueChange = useStableCallback(onValueChangeProp);
|
|
94
|
+
const onValueCommitted = useStableCallback(onValueCommittedProp);
|
|
95
|
+
const { clearErrors } = useFormContext();
|
|
96
|
+
const { state: fieldState, disabled: fieldDisabled, name: fieldName, setTouched, setDirty, validityData, validation } = useFieldRootContext();
|
|
97
|
+
const { labelId: fieldLabelId } = useLabelableContext();
|
|
98
|
+
const [labelId, setLabelId] = React$1.useState();
|
|
99
|
+
const ariaLabelledby = ariaLabelledByProp ?? resolveAriaLabelledBy(fieldLabelId, labelId);
|
|
100
|
+
const disabled = fieldDisabled || disabledProp;
|
|
101
|
+
const name = fieldName ?? nameProp;
|
|
102
|
+
const [valueUnwrapped, setValueUnwrapped] = useControlled({
|
|
103
|
+
controlled: valueProp,
|
|
104
|
+
default: defaultValue ?? min,
|
|
105
|
+
name: "Slider"
|
|
106
|
+
});
|
|
107
|
+
const sliderRef = React$1.useRef(null);
|
|
108
|
+
const controlRef = React$1.useRef(null);
|
|
109
|
+
const thumbRefs = React$1.useRef([]);
|
|
110
|
+
const pressedThumbCenterOffsetRef = React$1.useRef(null);
|
|
111
|
+
const pressedThumbIndexRef = React$1.useRef(-1);
|
|
112
|
+
const pressedValuesRef = React$1.useRef(null);
|
|
113
|
+
const lastChangeReasonRef = React$1.useRef(none);
|
|
114
|
+
const [active, setActiveState] = React$1.useState(-1);
|
|
115
|
+
const [lastUsedThumbIndex, setLastUsedThumbIndex] = React$1.useState(-1);
|
|
116
|
+
const [dragging, setDragging] = React$1.useState(false);
|
|
117
|
+
const [thumbMap, setThumbMap] = React$1.useState(() => /* @__PURE__ */ new Map());
|
|
118
|
+
const [indicatorPosition, setIndicatorPosition] = React$1.useState([void 0, void 0]);
|
|
119
|
+
const setActive = useStableCallback((value) => {
|
|
120
|
+
setActiveState(value);
|
|
121
|
+
if (value !== -1) setLastUsedThumbIndex(value);
|
|
122
|
+
});
|
|
123
|
+
const registerFieldControlRef = useStableCallback((element) => {
|
|
124
|
+
if (element) controlRef.current = element;
|
|
125
|
+
});
|
|
126
|
+
const range = Array.isArray(valueUnwrapped);
|
|
127
|
+
const values = React$1.useMemo(() => {
|
|
128
|
+
if (!range) return [clamp(valueUnwrapped, min, max)];
|
|
129
|
+
return valueUnwrapped.map((value) => clamp(value, min, max)).sort(asc);
|
|
130
|
+
}, [
|
|
131
|
+
max,
|
|
132
|
+
min,
|
|
133
|
+
range,
|
|
134
|
+
valueUnwrapped
|
|
135
|
+
]);
|
|
136
|
+
const fieldValue = range ? values : values[0];
|
|
137
|
+
useRegisterFieldControl(validation.inputRef, id, fieldValue, void 0, !disabled, nameProp);
|
|
138
|
+
useValueChanged(fieldValue, () => {
|
|
139
|
+
clearErrors(name);
|
|
140
|
+
validation.change(fieldValue);
|
|
141
|
+
const initialValue = validityData.initialValue;
|
|
142
|
+
let isDirty;
|
|
143
|
+
if (Array.isArray(fieldValue) && Array.isArray(initialValue)) isDirty = !areArraysEqual(fieldValue, initialValue);
|
|
144
|
+
else isDirty = fieldValue !== initialValue;
|
|
145
|
+
setDirty(isDirty);
|
|
146
|
+
});
|
|
147
|
+
const setValue = useStableCallback((newValue, details) => {
|
|
148
|
+
if (Number.isNaN(newValue) || areValuesEqual(newValue, valueUnwrapped)) return false;
|
|
149
|
+
const nativeEvent = details.event;
|
|
150
|
+
const EventConstructor = nativeEvent.constructor;
|
|
151
|
+
const clonedEvent = new EventConstructor(nativeEvent.type, nativeEvent);
|
|
152
|
+
Object.defineProperty(clonedEvent, "target", {
|
|
153
|
+
writable: true,
|
|
154
|
+
value: {
|
|
155
|
+
value: newValue,
|
|
156
|
+
name
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
details.event = clonedEvent;
|
|
160
|
+
onValueChange(newValue, details);
|
|
161
|
+
if (details.isCanceled) return false;
|
|
162
|
+
lastChangeReasonRef.current = details.reason;
|
|
163
|
+
setValueUnwrapped(newValue);
|
|
164
|
+
return true;
|
|
165
|
+
});
|
|
166
|
+
const handleInputChange = useStableCallback((valueInput, index, event) => {
|
|
167
|
+
const newValue = getSliderValue(valueInput, index, min, max, range, values);
|
|
168
|
+
if (validateMinimumDistance(newValue, step, minStepsBetweenValues)) {
|
|
169
|
+
const reason = "key" in event ? keyboard : inputChange;
|
|
170
|
+
const applied = setValue(newValue, createChangeEventDetails(reason, event.nativeEvent, void 0, { activeThumbIndex: index }));
|
|
171
|
+
setTouched(true);
|
|
172
|
+
if (applied) onValueCommitted(newValue, createGenericEventDetails(reason, event.nativeEvent));
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
if (min >= max) warn("Slider `max` must be greater than `min`.");
|
|
176
|
+
useIsoLayoutEffect(() => {
|
|
177
|
+
if (!disabled) return;
|
|
178
|
+
const activeEl = activeElement(ownerDocument(sliderRef.current));
|
|
179
|
+
if (contains(sliderRef.current, activeEl)) activeEl.blur();
|
|
180
|
+
if (active !== -1) setActive(-1);
|
|
181
|
+
}, [
|
|
182
|
+
active,
|
|
183
|
+
disabled,
|
|
184
|
+
setActive
|
|
185
|
+
]);
|
|
186
|
+
const state = React$1.useMemo(() => ({
|
|
187
|
+
...fieldState,
|
|
188
|
+
activeThumbIndex: active,
|
|
189
|
+
disabled,
|
|
190
|
+
dragging,
|
|
191
|
+
orientation,
|
|
192
|
+
max,
|
|
193
|
+
min,
|
|
194
|
+
minStepsBetweenValues,
|
|
195
|
+
step,
|
|
196
|
+
values
|
|
197
|
+
}), [
|
|
198
|
+
fieldState,
|
|
199
|
+
active,
|
|
200
|
+
disabled,
|
|
201
|
+
dragging,
|
|
202
|
+
max,
|
|
203
|
+
min,
|
|
204
|
+
minStepsBetweenValues,
|
|
205
|
+
orientation,
|
|
206
|
+
step,
|
|
207
|
+
values
|
|
208
|
+
]);
|
|
209
|
+
const contextValue = React$1.useMemo(() => ({
|
|
210
|
+
active,
|
|
211
|
+
controlRef,
|
|
212
|
+
disabled,
|
|
213
|
+
dragging,
|
|
214
|
+
validation,
|
|
215
|
+
format,
|
|
216
|
+
handleInputChange,
|
|
217
|
+
indicatorPosition,
|
|
218
|
+
inset: thumbAlignment !== "center",
|
|
219
|
+
isArrayValue: range,
|
|
220
|
+
labelId: ariaLabelledby,
|
|
221
|
+
rootLabelId: defaultLabelId,
|
|
222
|
+
largeStep,
|
|
223
|
+
lastUsedThumbIndex,
|
|
224
|
+
lastChangeReasonRef,
|
|
225
|
+
form,
|
|
226
|
+
locale,
|
|
227
|
+
max,
|
|
228
|
+
min,
|
|
229
|
+
minStepsBetweenValues,
|
|
230
|
+
name,
|
|
231
|
+
onValueCommitted,
|
|
232
|
+
orientation,
|
|
233
|
+
pressedThumbCenterOffsetRef,
|
|
234
|
+
pressedThumbIndexRef,
|
|
235
|
+
pressedValuesRef,
|
|
236
|
+
registerFieldControlRef,
|
|
237
|
+
renderBeforeHydration: thumbAlignment === "edge",
|
|
238
|
+
setActive,
|
|
239
|
+
setDragging,
|
|
240
|
+
setIndicatorPosition,
|
|
241
|
+
setLabelId,
|
|
242
|
+
setValue,
|
|
243
|
+
state,
|
|
244
|
+
step,
|
|
245
|
+
thumbCollisionBehavior,
|
|
246
|
+
thumbMap,
|
|
247
|
+
thumbRefs,
|
|
248
|
+
values
|
|
249
|
+
}), [
|
|
250
|
+
active,
|
|
251
|
+
ariaLabelledby,
|
|
252
|
+
defaultLabelId,
|
|
253
|
+
disabled,
|
|
254
|
+
dragging,
|
|
255
|
+
validation,
|
|
256
|
+
format,
|
|
257
|
+
handleInputChange,
|
|
258
|
+
indicatorPosition,
|
|
259
|
+
largeStep,
|
|
260
|
+
lastUsedThumbIndex,
|
|
261
|
+
form,
|
|
262
|
+
locale,
|
|
263
|
+
max,
|
|
264
|
+
min,
|
|
265
|
+
minStepsBetweenValues,
|
|
266
|
+
name,
|
|
267
|
+
onValueCommitted,
|
|
268
|
+
orientation,
|
|
269
|
+
range,
|
|
270
|
+
registerFieldControlRef,
|
|
271
|
+
setActive,
|
|
272
|
+
setValue,
|
|
273
|
+
state,
|
|
274
|
+
step,
|
|
275
|
+
thumbCollisionBehavior,
|
|
276
|
+
thumbAlignment,
|
|
277
|
+
thumbMap,
|
|
278
|
+
values
|
|
279
|
+
]);
|
|
280
|
+
const element = useRenderElement("div", componentProps, {
|
|
281
|
+
state,
|
|
282
|
+
ref: [forwardedRef, sliderRef],
|
|
283
|
+
props: [
|
|
284
|
+
{
|
|
285
|
+
"aria-labelledby": ariaLabelledby,
|
|
286
|
+
id,
|
|
287
|
+
role: "group"
|
|
288
|
+
},
|
|
289
|
+
elementProps,
|
|
290
|
+
(props) => validation.getValidationProps(disabled, props)
|
|
291
|
+
],
|
|
292
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
293
|
+
});
|
|
294
|
+
return /*#__PURE__*/ jsx(SliderRootContext.Provider, {
|
|
295
|
+
value: contextValue,
|
|
296
|
+
children: /*#__PURE__*/ jsx(CompositeList, {
|
|
297
|
+
elementsRef: thumbRefs,
|
|
298
|
+
onMapChange: setThumbMap,
|
|
299
|
+
children: element
|
|
300
|
+
})
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
SliderRoot.displayName = "SliderRoot";
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/label/SliderLabel.mjs
|
|
306
|
+
/**
|
|
307
|
+
* An accessible label that is automatically associated with the slider thumbs.
|
|
308
|
+
* Renders a `<div>` element.
|
|
309
|
+
*
|
|
310
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
311
|
+
*/
|
|
312
|
+
const SliderLabel = /*#__PURE__*/ React$1.forwardRef(function SliderLabel(componentProps, forwardedRef) {
|
|
313
|
+
const { render, className, style, ...elementProps } = componentProps;
|
|
314
|
+
const elementPropsWithoutId = elementProps;
|
|
315
|
+
delete elementPropsWithoutId.id;
|
|
316
|
+
const { state, setLabelId, controlRef, rootLabelId } = useSliderRootContext();
|
|
317
|
+
function focusControl(event, controlId) {
|
|
318
|
+
if (controlId) {
|
|
319
|
+
const controlElement = getControlById(event.currentTarget, controlId);
|
|
320
|
+
if (isHTMLElement(controlElement)) {
|
|
321
|
+
focusElementWithVisible(controlElement);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const fallbackInputs = controlRef.current?.querySelectorAll("input[type=\"range\"]");
|
|
326
|
+
const fallbackInput = fallbackInputs?.length === 1 ? fallbackInputs[0] : null;
|
|
327
|
+
if (isHTMLElement(fallbackInput)) focusElementWithVisible(fallbackInput);
|
|
328
|
+
}
|
|
329
|
+
const labelProps = useLabel({
|
|
330
|
+
id: rootLabelId,
|
|
331
|
+
setLabelId,
|
|
332
|
+
focusControl
|
|
333
|
+
});
|
|
334
|
+
return useRenderElement("div", componentProps, {
|
|
335
|
+
ref: forwardedRef,
|
|
336
|
+
state,
|
|
337
|
+
props: [labelProps, elementProps],
|
|
338
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
SliderLabel.displayName = "SliderLabel";
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/value/SliderValue.mjs
|
|
344
|
+
/**
|
|
345
|
+
* Displays the current value of the slider as text.
|
|
346
|
+
* Renders an `<output>` element.
|
|
347
|
+
*
|
|
348
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
349
|
+
*/
|
|
350
|
+
const SliderValue = /*#__PURE__*/ React$1.forwardRef(function SliderValue(componentProps, forwardedRef) {
|
|
351
|
+
const { "aria-live": ariaLive = "off", render, className, children, style, ...elementProps } = componentProps;
|
|
352
|
+
const { thumbMap, state, values, format, locale } = useSliderRootContext();
|
|
353
|
+
const outputFor = Array.from(thumbMap.values(), ({ inputId }) => inputId).join(" ").trim() || void 0;
|
|
354
|
+
const formattedValues = React$1.useMemo(() => values.map((v) => formatNumber(v, locale, format)), [
|
|
355
|
+
format,
|
|
356
|
+
locale,
|
|
357
|
+
values
|
|
358
|
+
]);
|
|
359
|
+
const defaultDisplayValue = formattedValues.join(" – ");
|
|
360
|
+
return useRenderElement("output", componentProps, {
|
|
361
|
+
state,
|
|
362
|
+
ref: forwardedRef,
|
|
363
|
+
props: [{
|
|
364
|
+
"aria-live": ariaLive,
|
|
365
|
+
children: typeof children === "function" ? children(formattedValues, values) : defaultDisplayValue,
|
|
366
|
+
htmlFor: outputFor
|
|
367
|
+
}, elementProps],
|
|
368
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
SliderValue.displayName = "SliderValue";
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/getMidpoint.mjs
|
|
374
|
+
function getMidpoint(element, vertical) {
|
|
375
|
+
const rect = element.getBoundingClientRect();
|
|
376
|
+
return vertical ? (rect.top + rect.bottom) / 2 : (rect.left + rect.right) / 2;
|
|
377
|
+
}
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/roundValueToStep.mjs
|
|
380
|
+
function getDecimalPrecision(num) {
|
|
381
|
+
if (num === 0) return 0;
|
|
382
|
+
if (Math.abs(num) < 1) {
|
|
383
|
+
const parts = num.toExponential().split("e-");
|
|
384
|
+
const matissaDecimalPart = parts[0].split(".")[1];
|
|
385
|
+
return (matissaDecimalPart ? matissaDecimalPart.length : 0) + parseInt(parts[1], 10);
|
|
386
|
+
}
|
|
387
|
+
const decimalPart = num.toString().split(".")[1];
|
|
388
|
+
return decimalPart ? decimalPart.length : 0;
|
|
389
|
+
}
|
|
390
|
+
function roundValueToStep(value, step, min) {
|
|
391
|
+
const nearest = Math.round((value - min) / step) * step + min;
|
|
392
|
+
return Number(nearest.toFixed(Math.max(getDecimalPrecision(step), getDecimalPrecision(min))));
|
|
393
|
+
}
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/getPushedThumbValues.mjs
|
|
396
|
+
/**
|
|
397
|
+
* Returns a new array of slider values where attempting to move the thumb at `index`
|
|
398
|
+
* beyond its neighbours "pushes" them while respecting `minStepsBetweenValues`.
|
|
399
|
+
*
|
|
400
|
+
* Positional arguments are deliberate: property names of an options object don't
|
|
401
|
+
* minify, so passing them positionally keeps this internal helper smaller in the bundle.
|
|
402
|
+
*/
|
|
403
|
+
function getPushedThumbValues(values, index, nextValue, min, max, step, minStepsBetweenValues, initialValues) {
|
|
404
|
+
const nextValues = values.slice();
|
|
405
|
+
const minValueDifference = step * minStepsBetweenValues;
|
|
406
|
+
const lastIndex = nextValues.length - 1;
|
|
407
|
+
const baseInitialValues = initialValues ?? values;
|
|
408
|
+
const indexMin = min + index * minValueDifference;
|
|
409
|
+
const indexMax = max - (lastIndex - index) * minValueDifference;
|
|
410
|
+
nextValues[index] = clamp(nextValue, indexMin, indexMax);
|
|
411
|
+
for (let i = index + 1; i <= lastIndex; i += 1) {
|
|
412
|
+
const minAllowed = nextValues[i - 1] + minValueDifference;
|
|
413
|
+
const maxAllowed = max - (lastIndex - i) * minValueDifference;
|
|
414
|
+
const initialValue = baseInitialValues[i];
|
|
415
|
+
let candidate = Math.max(nextValues[i], minAllowed);
|
|
416
|
+
if (initialValue < candidate) candidate = Math.max(initialValue, minAllowed);
|
|
417
|
+
nextValues[i] = clamp(candidate, minAllowed, maxAllowed);
|
|
418
|
+
}
|
|
419
|
+
for (let i = index - 1; i >= 0; i -= 1) {
|
|
420
|
+
const maxAllowed = nextValues[i + 1] - minValueDifference;
|
|
421
|
+
const minAllowed = min + i * minValueDifference;
|
|
422
|
+
const initialValue = baseInitialValues[i];
|
|
423
|
+
let candidate = Math.min(nextValues[i], maxAllowed);
|
|
424
|
+
if (initialValue > candidate) candidate = Math.min(initialValue, maxAllowed);
|
|
425
|
+
nextValues[i] = clamp(candidate, minAllowed, maxAllowed);
|
|
426
|
+
}
|
|
427
|
+
for (let i = 0; i <= lastIndex; i += 1) nextValues[i] = Number(nextValues[i].toFixed(12));
|
|
428
|
+
return nextValues;
|
|
429
|
+
}
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/utils/resolveThumbCollision.mjs
|
|
432
|
+
/**
|
|
433
|
+
* Positional arguments are deliberate: property names of an options object don't
|
|
434
|
+
* minify, so passing them positionally keeps this internal helper smaller in the bundle.
|
|
435
|
+
*/
|
|
436
|
+
function resolveThumbCollision(behavior, values, currentValues, initialValues, pressedIndex, nextValue, min, max, step, minStepsBetweenValues) {
|
|
437
|
+
const activeValues = currentValues ?? values;
|
|
438
|
+
const baselineValues = initialValues ?? values;
|
|
439
|
+
if (!(activeValues.length > 1)) return {
|
|
440
|
+
value: nextValue,
|
|
441
|
+
thumbIndex: 0,
|
|
442
|
+
didSwap: false
|
|
443
|
+
};
|
|
444
|
+
const minValueDifference = step * minStepsBetweenValues;
|
|
445
|
+
if (behavior === "push") return {
|
|
446
|
+
value: getPushedThumbValues(activeValues, pressedIndex, nextValue, min, max, step, minStepsBetweenValues),
|
|
447
|
+
thumbIndex: pressedIndex,
|
|
448
|
+
didSwap: false
|
|
449
|
+
};
|
|
450
|
+
const candidateValues = activeValues.slice();
|
|
451
|
+
const previousNeighbor = candidateValues[pressedIndex - 1];
|
|
452
|
+
const nextNeighbor = candidateValues[pressedIndex + 1];
|
|
453
|
+
const lowerBound = previousNeighbor != null ? previousNeighbor + minValueDifference : min;
|
|
454
|
+
const upperBound = nextNeighbor != null ? nextNeighbor - minValueDifference : max;
|
|
455
|
+
const pressedValueAfterClamp = Number(clamp(nextValue, lowerBound, upperBound).toFixed(12));
|
|
456
|
+
candidateValues[pressedIndex] = pressedValueAfterClamp;
|
|
457
|
+
switch (behavior) {
|
|
458
|
+
case "swap": {
|
|
459
|
+
const pressedInitialValue = activeValues[pressedIndex];
|
|
460
|
+
const epsilon = 1e-7;
|
|
461
|
+
const movingForward = nextValue > pressedInitialValue;
|
|
462
|
+
const movingBackward = nextValue < pressedInitialValue;
|
|
463
|
+
const shouldSwapForward = movingForward && nextNeighbor != null && nextValue >= nextNeighbor - epsilon;
|
|
464
|
+
const shouldSwapBackward = movingBackward && previousNeighbor != null && nextValue <= previousNeighbor + epsilon;
|
|
465
|
+
if (!shouldSwapForward && !shouldSwapBackward) return {
|
|
466
|
+
value: candidateValues,
|
|
467
|
+
thumbIndex: pressedIndex,
|
|
468
|
+
didSwap: false
|
|
469
|
+
};
|
|
470
|
+
const targetIndex = shouldSwapForward ? pressedIndex + 1 : pressedIndex - 1;
|
|
471
|
+
const initialValuesForPush = candidateValues.map((_, index) => {
|
|
472
|
+
if (index === pressedIndex) return pressedValueAfterClamp;
|
|
473
|
+
const baseline = baselineValues[index];
|
|
474
|
+
if (baseline != null) return baseline;
|
|
475
|
+
return activeValues[index];
|
|
476
|
+
});
|
|
477
|
+
let nextValueForTarget = nextValue;
|
|
478
|
+
if (shouldSwapForward) nextValueForTarget = Math.max(nextValue, candidateValues[targetIndex]);
|
|
479
|
+
else nextValueForTarget = Math.min(nextValue, candidateValues[targetIndex]);
|
|
480
|
+
const adjustedValues = getPushedThumbValues(candidateValues, targetIndex, nextValueForTarget, min, max, step, minStepsBetweenValues, initialValuesForPush);
|
|
481
|
+
const neighborIndex = shouldSwapForward ? targetIndex - 1 : targetIndex + 1;
|
|
482
|
+
const previousValue = adjustedValues[neighborIndex - 1];
|
|
483
|
+
const nextValueAfter = adjustedValues[neighborIndex + 1];
|
|
484
|
+
let neighborLowerBound = previousValue != null ? previousValue + minValueDifference : min;
|
|
485
|
+
neighborLowerBound = Math.max(neighborLowerBound, min + neighborIndex * minValueDifference);
|
|
486
|
+
let neighborUpperBound = nextValueAfter != null ? nextValueAfter - minValueDifference : max;
|
|
487
|
+
neighborUpperBound = Math.min(neighborUpperBound, max - (adjustedValues.length - 1 - neighborIndex) * minValueDifference);
|
|
488
|
+
const restoredValue = clamp(pressedValueAfterClamp, neighborLowerBound, neighborUpperBound);
|
|
489
|
+
adjustedValues[neighborIndex] = Number(restoredValue.toFixed(12));
|
|
490
|
+
return {
|
|
491
|
+
value: adjustedValues,
|
|
492
|
+
thumbIndex: targetIndex,
|
|
493
|
+
didSwap: true
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
default: return {
|
|
497
|
+
value: candidateValues,
|
|
498
|
+
thumbIndex: pressedIndex,
|
|
499
|
+
didSwap: false
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/control/SliderControl.mjs
|
|
505
|
+
const INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
|
|
506
|
+
function getControlOffset(styles, vertical) {
|
|
507
|
+
if (!styles) return {
|
|
508
|
+
start: 0,
|
|
509
|
+
end: 0
|
|
510
|
+
};
|
|
511
|
+
function parseSize(value) {
|
|
512
|
+
const parsed = value != null ? parseFloat(value) : 0;
|
|
513
|
+
return Number.isNaN(parsed) ? 0 : parsed;
|
|
514
|
+
}
|
|
515
|
+
const start = !vertical ? "InlineStart" : "Top";
|
|
516
|
+
const end = !vertical ? "InlineEnd" : "Bottom";
|
|
517
|
+
return {
|
|
518
|
+
start: parseSize(styles[`border${start}Width`]) + parseSize(styles[`padding${start}`]),
|
|
519
|
+
end: parseSize(styles[`border${end}Width`]) + parseSize(styles[`padding${end}`])
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
function getFingerCoords(event, touchIdRef) {
|
|
523
|
+
if (touchIdRef.current != null && event.changedTouches) {
|
|
524
|
+
const touchEvent = event;
|
|
525
|
+
for (let i = 0; i < touchEvent.changedTouches.length; i += 1) {
|
|
526
|
+
const touch = touchEvent.changedTouches[i];
|
|
527
|
+
if (touch.identifier === touchIdRef.current) return {
|
|
528
|
+
x: touch.clientX,
|
|
529
|
+
y: touch.clientY
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
return {
|
|
535
|
+
x: event.clientX,
|
|
536
|
+
y: event.clientY
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* The clickable, interactive part of the slider.
|
|
541
|
+
* Renders a `<div>` element.
|
|
542
|
+
*
|
|
543
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
544
|
+
*/
|
|
545
|
+
const SliderControl = /*#__PURE__*/ React$1.forwardRef(function SliderControl(componentProps, forwardedRef) {
|
|
546
|
+
const { render: renderProp, className, style, ...elementProps } = componentProps;
|
|
547
|
+
const { disabled, dragging, inset, isArrayValue, lastChangeReasonRef, max, min, minStepsBetweenValues, onValueCommitted, orientation, pressedThumbCenterOffsetRef, pressedThumbIndexRef, pressedValuesRef, registerFieldControlRef, renderBeforeHydration, setActive, setDragging, setValue, state, step, thumbCollisionBehavior, thumbRefs, values } = useSliderRootContext();
|
|
548
|
+
const direction = useDirection();
|
|
549
|
+
const range = values.length > 1;
|
|
550
|
+
const vertical = orientation === "vertical";
|
|
551
|
+
const controlRef = React$1.useRef(null);
|
|
552
|
+
const stylesRef = React$1.useRef(null);
|
|
553
|
+
const setStylesRef = useStableCallback((element) => {
|
|
554
|
+
if (element && stylesRef.current == null) stylesRef.current = getWindow(element).getComputedStyle(element);
|
|
555
|
+
});
|
|
556
|
+
const touchIdRef = React$1.useRef(null);
|
|
557
|
+
const moveCountRef = React$1.useRef(0);
|
|
558
|
+
const insetThumbOffsetRef = React$1.useRef(0);
|
|
559
|
+
const currentInteractionValueRef = React$1.useRef(null);
|
|
560
|
+
const pointerGestureRef = React$1.useRef(false);
|
|
561
|
+
const latestValuesRef = useValueAsRef(values);
|
|
562
|
+
function getThumbInput(el) {
|
|
563
|
+
return el?.querySelector("input[type=\"range\"]");
|
|
564
|
+
}
|
|
565
|
+
function updatePressedThumb(nextIndex) {
|
|
566
|
+
pressedThumbIndexRef.current = nextIndex;
|
|
567
|
+
if (!thumbRefs.current[nextIndex]) pressedThumbCenterOffsetRef.current = null;
|
|
568
|
+
}
|
|
569
|
+
function resetPressedThumb() {
|
|
570
|
+
pressedThumbIndexRef.current = -1;
|
|
571
|
+
pressedThumbCenterOffsetRef.current = null;
|
|
572
|
+
}
|
|
573
|
+
function isTargetDisabledThumb(target) {
|
|
574
|
+
if (!isElement(target)) return false;
|
|
575
|
+
return thumbRefs.current.some((thumbEl) => {
|
|
576
|
+
if (!isElement(thumbEl) || !contains(thumbEl, target)) return false;
|
|
577
|
+
return getThumbInput(thumbEl)?.disabled === true;
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
function getFingerState(fingerCoords) {
|
|
581
|
+
const control = controlRef.current;
|
|
582
|
+
const thumbIndex = pressedThumbIndexRef.current;
|
|
583
|
+
if (!control || thumbIndex < 0 || thumbIndex >= values.length) {
|
|
584
|
+
if (thumbIndex >= values.length) currentInteractionValueRef.current = null;
|
|
585
|
+
return null;
|
|
586
|
+
}
|
|
587
|
+
const { width, height, bottom, left, right } = control.getBoundingClientRect();
|
|
588
|
+
const controlOffset = getControlOffset(stylesRef.current, vertical);
|
|
589
|
+
const insetThumbOffset = insetThumbOffsetRef.current;
|
|
590
|
+
const controlSize = (vertical ? height : width) - controlOffset.start - controlOffset.end - insetThumbOffset * 2;
|
|
591
|
+
const thumbCenterOffset = pressedThumbCenterOffsetRef.current ?? 0;
|
|
592
|
+
const fingerX = fingerCoords.x - thumbCenterOffset;
|
|
593
|
+
const fingerY = fingerCoords.y - thumbCenterOffset;
|
|
594
|
+
const valueSize = vertical ? bottom - fingerY - controlOffset.end : (direction === "rtl" ? right - fingerX : fingerX - left) - controlOffset.start;
|
|
595
|
+
const valueRescaled = clamp((valueSize - insetThumbOffset) / controlSize, 0, 1);
|
|
596
|
+
let newValue = (max - min) * valueRescaled + min;
|
|
597
|
+
newValue = roundValueToStep(newValue, step, min);
|
|
598
|
+
newValue = clamp(newValue, min, max);
|
|
599
|
+
if (!range) return {
|
|
600
|
+
value: isArrayValue ? [newValue] : newValue,
|
|
601
|
+
thumbIndex,
|
|
602
|
+
didSwap: false
|
|
603
|
+
};
|
|
604
|
+
return resolveThumbCollision(thumbCollisionBehavior, values, latestValuesRef.current, pressedValuesRef.current, thumbIndex, newValue, min, max, step, minStepsBetweenValues);
|
|
605
|
+
}
|
|
606
|
+
function startPressing(fingerCoords) {
|
|
607
|
+
pressedValuesRef.current = range ? values.slice() : null;
|
|
608
|
+
currentInteractionValueRef.current = null;
|
|
609
|
+
latestValuesRef.current = values;
|
|
610
|
+
const pressedThumbIndex = pressedThumbIndexRef.current;
|
|
611
|
+
let closestThumbIndex = pressedThumbIndex;
|
|
612
|
+
if (pressedThumbIndex > -1 && pressedThumbIndex < values.length) {
|
|
613
|
+
if (values[pressedThumbIndex] === max) {
|
|
614
|
+
let candidateIndex = pressedThumbIndex;
|
|
615
|
+
while (candidateIndex > 0 && values[candidateIndex - 1] === max) candidateIndex -= 1;
|
|
616
|
+
closestThumbIndex = candidateIndex;
|
|
617
|
+
}
|
|
618
|
+
} else {
|
|
619
|
+
const axis = !vertical ? "x" : "y";
|
|
620
|
+
let minDistance;
|
|
621
|
+
closestThumbIndex = -1;
|
|
622
|
+
for (let i = 0; i < thumbRefs.current.length; i += 1) {
|
|
623
|
+
const thumbEl = thumbRefs.current[i];
|
|
624
|
+
if (isElement(thumbEl) && !getThumbInput(thumbEl)?.disabled) {
|
|
625
|
+
const midpoint = getMidpoint(thumbEl, vertical);
|
|
626
|
+
const distance = Math.abs(fingerCoords[axis] - midpoint);
|
|
627
|
+
if (minDistance === void 0 || distance <= minDistance) {
|
|
628
|
+
closestThumbIndex = i;
|
|
629
|
+
minDistance = distance;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
if (closestThumbIndex > -1 && closestThumbIndex !== pressedThumbIndex) updatePressedThumb(closestThumbIndex);
|
|
635
|
+
if (inset) {
|
|
636
|
+
const thumbEl = thumbRefs.current[closestThumbIndex];
|
|
637
|
+
if (isElement(thumbEl)) {
|
|
638
|
+
const thumbRect = thumbEl.getBoundingClientRect();
|
|
639
|
+
insetThumbOffsetRef.current = thumbRect[!vertical ? "width" : "height"] / 2;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function focusThumb(thumbIndex) {
|
|
644
|
+
const input = getThumbInput(thumbRefs.current?.[thumbIndex]);
|
|
645
|
+
if (!input) return;
|
|
646
|
+
input.focus({
|
|
647
|
+
preventScroll: true,
|
|
648
|
+
focusVisible: false
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
function setValueFromPointer(finger, reason, nativeEvent) {
|
|
652
|
+
const applied = setValue(finger.value, createChangeEventDetails(reason, nativeEvent, void 0, { activeThumbIndex: finger.thumbIndex }));
|
|
653
|
+
if (applied) {
|
|
654
|
+
currentInteractionValueRef.current = finger.value;
|
|
655
|
+
latestValuesRef.current = Array.isArray(finger.value) ? finger.value : [finger.value];
|
|
656
|
+
if (finger.didSwap) {
|
|
657
|
+
updatePressedThumb(finger.thumbIndex);
|
|
658
|
+
focusThumb(finger.thumbIndex);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return applied;
|
|
662
|
+
}
|
|
663
|
+
const handleTouchMove = useStableCallback((nativeEvent) => {
|
|
664
|
+
const fingerCoords = getFingerCoords(nativeEvent, touchIdRef);
|
|
665
|
+
if (fingerCoords == null) return;
|
|
666
|
+
moveCountRef.current += 1;
|
|
667
|
+
if (nativeEvent.type === "pointermove" && nativeEvent.buttons === 0) {
|
|
668
|
+
handleTouchEnd(nativeEvent);
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
const finger = getFingerState(fingerCoords);
|
|
672
|
+
if (finger == null) return;
|
|
673
|
+
if (validateMinimumDistance(finger.value, step, minStepsBetweenValues)) {
|
|
674
|
+
if (!dragging && moveCountRef.current > INTENTIONAL_DRAG_COUNT_THRESHOLD) setDragging(true);
|
|
675
|
+
setValueFromPointer(finger, drag, nativeEvent);
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
const handleTouchEnd = useStableCallback((nativeEvent) => {
|
|
679
|
+
if (getFingerCoords(nativeEvent, touchIdRef) == null) return;
|
|
680
|
+
setActive(-1);
|
|
681
|
+
setDragging(false);
|
|
682
|
+
pressedThumbCenterOffsetRef.current = null;
|
|
683
|
+
const interactionValue = currentInteractionValueRef.current;
|
|
684
|
+
if (Array.isArray(interactionValue) && interactionValue.length !== values.length) currentInteractionValueRef.current = null;
|
|
685
|
+
if (currentInteractionValueRef.current != null) {
|
|
686
|
+
const commitReason = lastChangeReasonRef.current;
|
|
687
|
+
onValueCommitted(currentInteractionValueRef.current, createGenericEventDetails(commitReason, nativeEvent));
|
|
688
|
+
}
|
|
689
|
+
if ("pointerType" in nativeEvent && controlRef.current?.hasPointerCapture(nativeEvent.pointerId)) controlRef.current?.releasePointerCapture(nativeEvent.pointerId);
|
|
690
|
+
pressedThumbIndexRef.current = -1;
|
|
691
|
+
stopListening();
|
|
692
|
+
});
|
|
693
|
+
const handlePointerCancel = useStableCallback((nativeEvent) => {
|
|
694
|
+
if (touchIdRef.current != null) return;
|
|
695
|
+
handleTouchEnd(nativeEvent);
|
|
696
|
+
});
|
|
697
|
+
const handleTouchStart = useStableCallback((nativeEvent) => {
|
|
698
|
+
const startedByPointer = pointerGestureRef.current;
|
|
699
|
+
pointerGestureRef.current = false;
|
|
700
|
+
if (disabled) return;
|
|
701
|
+
if (isTargetDisabledThumb(getTarget(nativeEvent))) {
|
|
702
|
+
resetPressedThumb();
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
const touch = nativeEvent.changedTouches[0];
|
|
706
|
+
if (touch == null) return;
|
|
707
|
+
touchIdRef.current = touch.identifier;
|
|
708
|
+
if (!startedByPointer) {
|
|
709
|
+
const fingerCoords = {
|
|
710
|
+
x: touch.clientX,
|
|
711
|
+
y: touch.clientY
|
|
712
|
+
};
|
|
713
|
+
startPressing(fingerCoords);
|
|
714
|
+
const finger = getFingerState(fingerCoords);
|
|
715
|
+
if (finger == null) return;
|
|
716
|
+
focusThumb(finger.thumbIndex);
|
|
717
|
+
setValueFromPointer(finger, trackPress, nativeEvent);
|
|
718
|
+
moveCountRef.current = 0;
|
|
719
|
+
}
|
|
720
|
+
const doc = ownerDocument(controlRef.current);
|
|
721
|
+
doc.addEventListener("touchmove", handleTouchMove, { passive: true });
|
|
722
|
+
doc.addEventListener("touchend", handleTouchEnd, { passive: true });
|
|
723
|
+
doc.addEventListener("touchcancel", handleTouchEnd, { passive: true });
|
|
724
|
+
});
|
|
725
|
+
const stopListening = useStableCallback(() => {
|
|
726
|
+
const doc = ownerDocument(controlRef.current);
|
|
727
|
+
doc.removeEventListener("pointermove", handleTouchMove);
|
|
728
|
+
doc.removeEventListener("pointerup", handleTouchEnd);
|
|
729
|
+
doc.removeEventListener("pointercancel", handlePointerCancel);
|
|
730
|
+
doc.removeEventListener("touchmove", handleTouchMove);
|
|
731
|
+
doc.removeEventListener("touchend", handleTouchEnd);
|
|
732
|
+
doc.removeEventListener("touchcancel", handleTouchEnd);
|
|
733
|
+
touchIdRef.current = null;
|
|
734
|
+
pressedValuesRef.current = null;
|
|
735
|
+
currentInteractionValueRef.current = null;
|
|
736
|
+
pointerGestureRef.current = false;
|
|
737
|
+
});
|
|
738
|
+
const focusFrame = useAnimationFrame();
|
|
739
|
+
React$1.useEffect(() => {
|
|
740
|
+
const control = controlRef.current;
|
|
741
|
+
if (!control) return () => stopListening();
|
|
742
|
+
const unsubscribeTouchStart = addEventListener(control, "touchstart", handleTouchStart, { passive: true });
|
|
743
|
+
return () => {
|
|
744
|
+
unsubscribeTouchStart();
|
|
745
|
+
focusFrame.cancel();
|
|
746
|
+
stopListening();
|
|
747
|
+
};
|
|
748
|
+
}, [
|
|
749
|
+
stopListening,
|
|
750
|
+
handleTouchStart,
|
|
751
|
+
controlRef,
|
|
752
|
+
focusFrame
|
|
753
|
+
]);
|
|
754
|
+
React$1.useEffect(() => {
|
|
755
|
+
if (disabled) stopListening();
|
|
756
|
+
}, [disabled, stopListening]);
|
|
757
|
+
return useRenderElement("div", componentProps, {
|
|
758
|
+
state,
|
|
759
|
+
ref: [
|
|
760
|
+
forwardedRef,
|
|
761
|
+
registerFieldControlRef,
|
|
762
|
+
controlRef,
|
|
763
|
+
setStylesRef
|
|
764
|
+
],
|
|
765
|
+
props: [{
|
|
766
|
+
["data-base-ui-slider-control"]: renderBeforeHydration ? "" : void 0,
|
|
767
|
+
onPointerDown(event) {
|
|
768
|
+
pointerGestureRef.current = false;
|
|
769
|
+
const control = controlRef.current;
|
|
770
|
+
const target = getTarget(event.nativeEvent);
|
|
771
|
+
if (!control || disabled || event.defaultPrevented || !isElement(target) || event.button !== 0) return;
|
|
772
|
+
if (isTargetDisabledThumb(target)) {
|
|
773
|
+
resetPressedThumb();
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
const fingerCoords = {
|
|
777
|
+
x: event.clientX,
|
|
778
|
+
y: event.clientY
|
|
779
|
+
};
|
|
780
|
+
startPressing(fingerCoords);
|
|
781
|
+
const finger = getFingerState(fingerCoords);
|
|
782
|
+
if (finger == null) return;
|
|
783
|
+
if (contains(thumbRefs.current[finger.thumbIndex], activeElement(ownerDocument(control)))) event.preventDefault();
|
|
784
|
+
else focusFrame.request(() => {
|
|
785
|
+
focusThumb(finger.thumbIndex);
|
|
786
|
+
});
|
|
787
|
+
setDragging(true);
|
|
788
|
+
if (!(pressedThumbCenterOffsetRef.current != null)) setValueFromPointer(finger, trackPress, event.nativeEvent);
|
|
789
|
+
if (event.nativeEvent.pointerId) control.setPointerCapture(event.nativeEvent.pointerId);
|
|
790
|
+
moveCountRef.current = 0;
|
|
791
|
+
pointerGestureRef.current = isTouchLikePointerType(event.pointerType);
|
|
792
|
+
const doc = ownerDocument(control);
|
|
793
|
+
doc.addEventListener("pointermove", handleTouchMove, { passive: true });
|
|
794
|
+
doc.addEventListener("pointerup", handleTouchEnd, { once: true });
|
|
795
|
+
doc.addEventListener("pointercancel", handlePointerCancel, { once: true });
|
|
796
|
+
}
|
|
797
|
+
}, elementProps],
|
|
798
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
SliderControl.displayName = "SliderControl";
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/track/SliderTrack.mjs
|
|
804
|
+
/**
|
|
805
|
+
* Contains the slider indicator and represents the entire range of the slider.
|
|
806
|
+
* Renders a `<div>` element.
|
|
807
|
+
*
|
|
808
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
809
|
+
*/
|
|
810
|
+
const SliderTrack = /*#__PURE__*/ React$1.forwardRef(function SliderTrack(componentProps, forwardedRef) {
|
|
811
|
+
const { render, className, style, ...elementProps } = componentProps;
|
|
812
|
+
const { state } = useSliderRootContext();
|
|
813
|
+
return useRenderElement("div", componentProps, {
|
|
814
|
+
state,
|
|
815
|
+
ref: forwardedRef,
|
|
816
|
+
props: [{ style: { position: "relative" } }, elementProps],
|
|
817
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
818
|
+
});
|
|
819
|
+
});
|
|
820
|
+
SliderTrack.displayName = "SliderTrack";
|
|
821
|
+
//#endregion
|
|
822
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/thumb/SliderThumbDataAttributes.mjs
|
|
823
|
+
var SliderThumbDataAttributes_exports = /* @__PURE__ */ __exportAll({
|
|
824
|
+
dirty: () => dirty,
|
|
825
|
+
disabled: () => disabled,
|
|
826
|
+
dragging: () => dragging,
|
|
827
|
+
focused: () => focused,
|
|
828
|
+
index: () => index,
|
|
829
|
+
invalid: () => invalid,
|
|
830
|
+
orientation: () => orientation,
|
|
831
|
+
touched: () => touched,
|
|
832
|
+
valid: () => valid
|
|
833
|
+
});
|
|
834
|
+
/**
|
|
835
|
+
* Indicates the index of the thumb in range sliders.
|
|
836
|
+
*/
|
|
837
|
+
const index = "data-index";
|
|
838
|
+
/**
|
|
839
|
+
* Present while the user is dragging.
|
|
840
|
+
*/
|
|
841
|
+
const dragging = "data-dragging";
|
|
842
|
+
/**
|
|
843
|
+
* Indicates the orientation of the slider.
|
|
844
|
+
* @type {'horizontal' | 'vertical'}
|
|
845
|
+
*/
|
|
846
|
+
const orientation = "data-orientation";
|
|
847
|
+
/**
|
|
848
|
+
* Present when the slider is disabled.
|
|
849
|
+
*/
|
|
850
|
+
const disabled = "data-disabled";
|
|
851
|
+
/**
|
|
852
|
+
* Present when the slider is in a valid state (when wrapped in Field.Root).
|
|
853
|
+
*/
|
|
854
|
+
const valid = "data-valid";
|
|
855
|
+
/**
|
|
856
|
+
* Present when the slider is in an invalid state (when wrapped in Field.Root).
|
|
857
|
+
*/
|
|
858
|
+
const invalid = "data-invalid";
|
|
859
|
+
/**
|
|
860
|
+
* Present when the slider has been touched (when wrapped in Field.Root).
|
|
861
|
+
*/
|
|
862
|
+
const touched = "data-touched";
|
|
863
|
+
/**
|
|
864
|
+
* Present when the slider's value has changed (when wrapped in Field.Root).
|
|
865
|
+
*/
|
|
866
|
+
const dirty = "data-dirty";
|
|
867
|
+
/**
|
|
868
|
+
* Present when the slider is focused (when wrapped in Field.Root).
|
|
869
|
+
*/
|
|
870
|
+
const focused = "data-focused";
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/thumb/SliderThumb.mjs
|
|
873
|
+
var _PrehydrationScript;
|
|
874
|
+
const ALL_KEYS = /* @__PURE__ */ new Set([
|
|
875
|
+
...COMPOSITE_KEYS,
|
|
876
|
+
PAGE_UP,
|
|
877
|
+
PAGE_DOWN
|
|
878
|
+
]);
|
|
879
|
+
function getDefaultAriaValueText(values, index, format, locale) {
|
|
880
|
+
if (index < 0) return;
|
|
881
|
+
if (values.length === 2) return `${formatNumber(values[index], locale, format)} ${index === 0 ? "start" : "end"} range`;
|
|
882
|
+
return format ? formatNumber(values[index], locale, format) : void 0;
|
|
883
|
+
}
|
|
884
|
+
function getNewValue(thumbValue, increment, direction, min, max) {
|
|
885
|
+
const value = thumbValue + increment * direction;
|
|
886
|
+
const roundedValue = Number(value.toFixed(Math.max(getDecimalPrecision(thumbValue), getDecimalPrecision(increment), getDecimalPrecision(min))));
|
|
887
|
+
return clamp(roundedValue, min, max);
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* The draggable part of the slider at the tip of the indicator.
|
|
891
|
+
* Renders a `<div>` element and a nested `<input type="range">`.
|
|
892
|
+
*
|
|
893
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
894
|
+
*/
|
|
895
|
+
const SliderThumb = /*#__PURE__*/ React$1.forwardRef(function SliderThumb(componentProps, forwardedRef) {
|
|
896
|
+
const { render, children: childrenProp, className, "aria-describedby": ariaDescribedByProp, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, "aria-valuetext": ariaValueTextProp, disabled: disabledProp = false, getAriaLabel: getAriaLabelProp, getAriaValueText: getAriaValueTextProp, id: idProp, index: indexProp, inputRef: inputRefProp, onBlur: onBlurProp, onFocus: onFocusProp, onKeyDown: onKeyDownProp, tabIndex: tabIndexProp, style, ...elementProps } = componentProps;
|
|
897
|
+
const id = useBaseUiId(idProp);
|
|
898
|
+
const { active: activeIndex, lastUsedThumbIndex, controlRef, disabled: contextDisabled, validation, format, handleInputChange, inset, isArrayValue, labelId, largeStep, locale, max, min, minStepsBetweenValues, form, name, orientation, pressedThumbCenterOffsetRef, pressedThumbIndexRef, renderBeforeHydration, setActive, setIndicatorPosition, state, step, thumbRefs, values: sliderValues } = useSliderRootContext();
|
|
899
|
+
const direction = useDirection();
|
|
900
|
+
const disabled = disabledProp || contextDisabled;
|
|
901
|
+
const range = sliderValues.length > 1;
|
|
902
|
+
const vertical = orientation === "vertical";
|
|
903
|
+
const rtl = direction === "rtl";
|
|
904
|
+
const { setTouched, validationMode } = useFieldRootContext();
|
|
905
|
+
const thumbRef = React$1.useRef(null);
|
|
906
|
+
const inputRef = React$1.useRef(null);
|
|
907
|
+
const setFocused = useSetFieldFocused(disabled, inputRef);
|
|
908
|
+
const restoringFocusVisibleRef = React$1.useRef(false);
|
|
909
|
+
const handleFocusProp = useStableCallback((event) => {
|
|
910
|
+
if (restoringFocusVisibleRef.current) return;
|
|
911
|
+
onFocusProp?.(event);
|
|
912
|
+
});
|
|
913
|
+
const handleBlurProp = useStableCallback((event) => {
|
|
914
|
+
if (restoringFocusVisibleRef.current) return;
|
|
915
|
+
onBlurProp?.(event);
|
|
916
|
+
});
|
|
917
|
+
const defaultInputId = useBaseUiId();
|
|
918
|
+
const labelableId = useLabelableId();
|
|
919
|
+
const inputId = range ? defaultInputId : labelableId;
|
|
920
|
+
const thumbMetadata = React$1.useMemo(() => ({ inputId }), [inputId]);
|
|
921
|
+
const { ref: listItemRef, index: compositeIndex } = useCompositeListItem({ metadata: thumbMetadata });
|
|
922
|
+
const index$1 = !range ? 0 : indexProp ?? compositeIndex;
|
|
923
|
+
const last = index$1 === sliderValues.length - 1;
|
|
924
|
+
const thumbValue = sliderValues[index$1];
|
|
925
|
+
const thumbValuePercent = valueToPercent(thumbValue, min, max);
|
|
926
|
+
const [positionPercent, setPositionPercent] = React$1.useState();
|
|
927
|
+
const isHydrating = useIsHydrating();
|
|
928
|
+
const safeLastUsedThumbIndex = lastUsedThumbIndex >= 0 && lastUsedThumbIndex < sliderValues.length ? lastUsedThumbIndex : -1;
|
|
929
|
+
const getInsetPosition = useStableCallback(() => {
|
|
930
|
+
const control = controlRef.current;
|
|
931
|
+
const thumb = thumbRef.current;
|
|
932
|
+
if (!control || !thumb) return;
|
|
933
|
+
const thumbRect = thumb.getBoundingClientRect();
|
|
934
|
+
const controlRect = control.getBoundingClientRect();
|
|
935
|
+
const side = vertical ? "height" : "width";
|
|
936
|
+
const controlSize = controlRect[side] - thumbRect[side];
|
|
937
|
+
const nextPositionPercent = (thumbRect[side] / 2 + controlSize * thumbValuePercent / 100) / controlRect[side] * 100;
|
|
938
|
+
const nextInsetPosition = Number.isFinite(nextPositionPercent) ? nextPositionPercent : void 0;
|
|
939
|
+
setPositionPercent(nextInsetPosition);
|
|
940
|
+
if (index$1 === 0) setIndicatorPosition((prevPosition) => [nextInsetPosition, prevPosition[1]]);
|
|
941
|
+
else if (last) setIndicatorPosition((prevPosition) => [prevPosition[0], nextInsetPosition]);
|
|
942
|
+
});
|
|
943
|
+
useIsoLayoutEffect(() => {
|
|
944
|
+
if (inset) queueMicrotask(getInsetPosition);
|
|
945
|
+
}, [getInsetPosition, inset]);
|
|
946
|
+
useIsoLayoutEffect(() => {
|
|
947
|
+
if (inset) getInsetPosition();
|
|
948
|
+
}, [
|
|
949
|
+
getInsetPosition,
|
|
950
|
+
inset,
|
|
951
|
+
thumbValuePercent
|
|
952
|
+
]);
|
|
953
|
+
useIsoLayoutEffect(() => {
|
|
954
|
+
if (!inset) return;
|
|
955
|
+
const control = controlRef.current;
|
|
956
|
+
const thumb = thumbRef.current;
|
|
957
|
+
if (!control || !thumb) return;
|
|
958
|
+
const ResizeObserverCtor = getWindow(control).ResizeObserver;
|
|
959
|
+
if (typeof ResizeObserverCtor !== "function") return;
|
|
960
|
+
const resizeObserver = new ResizeObserverCtor(getInsetPosition);
|
|
961
|
+
resizeObserver.observe(control);
|
|
962
|
+
resizeObserver.observe(thumb);
|
|
963
|
+
return () => {
|
|
964
|
+
resizeObserver.disconnect();
|
|
965
|
+
};
|
|
966
|
+
}, [
|
|
967
|
+
controlRef,
|
|
968
|
+
getInsetPosition,
|
|
969
|
+
inset
|
|
970
|
+
]);
|
|
971
|
+
const startEdge = vertical ? "bottom" : "insetInlineStart";
|
|
972
|
+
const crossOffsetProperty = vertical ? "left" : "top";
|
|
973
|
+
let zIndex;
|
|
974
|
+
if (range) {
|
|
975
|
+
if (activeIndex === index$1) zIndex = 2;
|
|
976
|
+
else if (safeLastUsedThumbIndex === index$1) zIndex = 1;
|
|
977
|
+
} else if (activeIndex === index$1) zIndex = 1;
|
|
978
|
+
let thumbStyle;
|
|
979
|
+
if (!inset && !Number.isFinite(thumbValuePercent)) thumbStyle = visuallyHidden;
|
|
980
|
+
else thumbStyle = {
|
|
981
|
+
position: "absolute",
|
|
982
|
+
[startEdge]: inset ? "var(--position)" : `${thumbValuePercent}%`,
|
|
983
|
+
[crossOffsetProperty]: "50%",
|
|
984
|
+
translate: `${(vertical || !rtl ? -1 : 1) * 50}% ${(vertical ? 1 : -1) * 50}%`,
|
|
985
|
+
zIndex,
|
|
986
|
+
...inset && {
|
|
987
|
+
["--position"]: `${positionPercent ?? 0}%`,
|
|
988
|
+
visibility: renderBeforeHydration && isHydrating || positionPercent === void 0 ? "hidden" : void 0
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
let cssWritingMode;
|
|
992
|
+
if (vertical) cssWritingMode = rtl ? "vertical-rl" : "vertical-lr";
|
|
993
|
+
const ariaLabel = typeof getAriaLabelProp === "function" ? getAriaLabelProp(index$1) : ariaLabelProp;
|
|
994
|
+
const inputProps = mergeProps({
|
|
995
|
+
"aria-label": ariaLabel,
|
|
996
|
+
"aria-labelledby": ariaLabelledByProp ?? (ariaLabel == null ? labelId : void 0),
|
|
997
|
+
"aria-describedby": ariaDescribedByProp,
|
|
998
|
+
"aria-orientation": orientation,
|
|
999
|
+
"aria-valuenow": thumbValue,
|
|
1000
|
+
"aria-valuetext": typeof getAriaValueTextProp === "function" ? getAriaValueTextProp(formatNumber(thumbValue, locale, format), thumbValue, index$1) : ariaValueTextProp ?? getDefaultAriaValueText(sliderValues, index$1, format, locale),
|
|
1001
|
+
disabled,
|
|
1002
|
+
form,
|
|
1003
|
+
id: inputId,
|
|
1004
|
+
max,
|
|
1005
|
+
min,
|
|
1006
|
+
name,
|
|
1007
|
+
onChange(event) {
|
|
1008
|
+
handleInputChange(event.currentTarget.valueAsNumber, index$1, event);
|
|
1009
|
+
},
|
|
1010
|
+
onFocus(event) {
|
|
1011
|
+
const isRestoringFocusVisible = restoringFocusVisibleRef.current;
|
|
1012
|
+
restoringFocusVisibleRef.current = false;
|
|
1013
|
+
setActive(index$1);
|
|
1014
|
+
setFocused(true);
|
|
1015
|
+
if (isRestoringFocusVisible) event.stopPropagation();
|
|
1016
|
+
},
|
|
1017
|
+
onBlur(event) {
|
|
1018
|
+
if (restoringFocusVisibleRef.current) {
|
|
1019
|
+
event.stopPropagation();
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
setActive(-1);
|
|
1023
|
+
if (thumbRefs.current.some((thumb) => contains(thumb, event.relatedTarget))) return;
|
|
1024
|
+
setTouched(true);
|
|
1025
|
+
setFocused(false);
|
|
1026
|
+
if (validationMode === "onBlur") validation.commit(getSliderValue(thumbValue, index$1, min, max, isArrayValue, sliderValues));
|
|
1027
|
+
},
|
|
1028
|
+
onKeyDown(event) {
|
|
1029
|
+
if (event.defaultPrevented) return;
|
|
1030
|
+
if (!ALL_KEYS.has(event.key)) return;
|
|
1031
|
+
if (COMPOSITE_KEYS.has(event.key)) event.stopPropagation();
|
|
1032
|
+
let newValue = null;
|
|
1033
|
+
let direction = 0;
|
|
1034
|
+
let increment = event.shiftKey ? largeStep : step;
|
|
1035
|
+
const roundedValue = roundValueToStep(thumbValue, step, min);
|
|
1036
|
+
switch (event.key) {
|
|
1037
|
+
case ARROW_UP:
|
|
1038
|
+
direction = 1;
|
|
1039
|
+
break;
|
|
1040
|
+
case ARROW_RIGHT:
|
|
1041
|
+
direction = rtl ? -1 : 1;
|
|
1042
|
+
break;
|
|
1043
|
+
case ARROW_DOWN:
|
|
1044
|
+
direction = -1;
|
|
1045
|
+
break;
|
|
1046
|
+
case ARROW_LEFT:
|
|
1047
|
+
direction = rtl ? 1 : -1;
|
|
1048
|
+
break;
|
|
1049
|
+
case PAGE_UP:
|
|
1050
|
+
increment = largeStep;
|
|
1051
|
+
direction = 1;
|
|
1052
|
+
break;
|
|
1053
|
+
case PAGE_DOWN:
|
|
1054
|
+
increment = largeStep;
|
|
1055
|
+
direction = -1;
|
|
1056
|
+
break;
|
|
1057
|
+
case "End":
|
|
1058
|
+
newValue = range && Number.isFinite(sliderValues[index$1 + 1]) ? sliderValues[index$1 + 1] - step * minStepsBetweenValues : max;
|
|
1059
|
+
break;
|
|
1060
|
+
case HOME: newValue = range && Number.isFinite(sliderValues[index$1 - 1]) ? sliderValues[index$1 - 1] + step * minStepsBetweenValues : min;
|
|
1061
|
+
}
|
|
1062
|
+
if (direction !== 0) newValue = getNewValue(roundedValue, increment, direction, min, max);
|
|
1063
|
+
if (newValue !== null) {
|
|
1064
|
+
const input = event.currentTarget;
|
|
1065
|
+
if (!matchesFocusVisible(input)) {
|
|
1066
|
+
restoringFocusVisibleRef.current = true;
|
|
1067
|
+
input.blur();
|
|
1068
|
+
input.focus({
|
|
1069
|
+
preventScroll: true,
|
|
1070
|
+
focusVisible: true
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
handleInputChange(newValue, index$1, event);
|
|
1074
|
+
event.preventDefault();
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
step,
|
|
1078
|
+
style: {
|
|
1079
|
+
...visuallyHidden,
|
|
1080
|
+
width: "100%",
|
|
1081
|
+
height: "100%",
|
|
1082
|
+
writingMode: cssWritingMode
|
|
1083
|
+
},
|
|
1084
|
+
tabIndex: tabIndexProp,
|
|
1085
|
+
type: "range",
|
|
1086
|
+
value: thumbValue ?? ""
|
|
1087
|
+
}, (props) => validation.getValidationProps(disabled, props), {
|
|
1088
|
+
onFocus: handleFocusProp,
|
|
1089
|
+
onBlur: handleBlurProp,
|
|
1090
|
+
onKeyDown: onKeyDownProp
|
|
1091
|
+
});
|
|
1092
|
+
const mergedInputRef = useMergedRefs(inputRef, validation.inputRef, inputRefProp);
|
|
1093
|
+
return useRenderElement("div", componentProps, {
|
|
1094
|
+
state,
|
|
1095
|
+
ref: [
|
|
1096
|
+
forwardedRef,
|
|
1097
|
+
listItemRef,
|
|
1098
|
+
thumbRef
|
|
1099
|
+
],
|
|
1100
|
+
props: [{
|
|
1101
|
+
[index]: index$1,
|
|
1102
|
+
children: /*#__PURE__*/ jsxs(React$1.Fragment, { children: [
|
|
1103
|
+
childrenProp,
|
|
1104
|
+
/*#__PURE__*/ jsx("input", {
|
|
1105
|
+
ref: mergedInputRef,
|
|
1106
|
+
...inputProps,
|
|
1107
|
+
suppressHydrationWarning: true
|
|
1108
|
+
}),
|
|
1109
|
+
inset && last && renderBeforeHydration && (_PrehydrationScript || (_PrehydrationScript = /*#__PURE__*/ jsx(PrehydrationScript, { script: "" })))
|
|
1110
|
+
] }),
|
|
1111
|
+
id,
|
|
1112
|
+
onPointerDown(event) {
|
|
1113
|
+
if (disabled) return;
|
|
1114
|
+
pressedThumbIndexRef.current = index$1;
|
|
1115
|
+
const midpoint = getMidpoint(event.currentTarget, vertical);
|
|
1116
|
+
pressedThumbCenterOffsetRef.current = (vertical ? event.clientY : event.clientX) - midpoint;
|
|
1117
|
+
},
|
|
1118
|
+
style: thumbStyle,
|
|
1119
|
+
suppressHydrationWarning: renderBeforeHydration || void 0
|
|
1120
|
+
}, elementProps],
|
|
1121
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
1124
|
+
SliderThumb.displayName = "SliderThumb";
|
|
1125
|
+
//#endregion
|
|
1126
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/slider/indicator/SliderIndicator.mjs
|
|
1127
|
+
function getIndicatorStyles(vertical, range, inset, start, end, forceHidden) {
|
|
1128
|
+
const styles = {
|
|
1129
|
+
visibility: forceHidden || inset && (start === void 0 || range && end === void 0) ? "hidden" : void 0,
|
|
1130
|
+
position: vertical ? "absolute" : "relative",
|
|
1131
|
+
[vertical ? "width" : "height"]: "inherit"
|
|
1132
|
+
};
|
|
1133
|
+
let startValue = `${start ?? 0}%`;
|
|
1134
|
+
let sizeValue = `${(end ?? 0) - (start ?? 0)}%`;
|
|
1135
|
+
if (inset) {
|
|
1136
|
+
styles["--start-position"] = startValue;
|
|
1137
|
+
startValue = "var(--start-position)";
|
|
1138
|
+
if (range) {
|
|
1139
|
+
styles["--relative-size"] = sizeValue;
|
|
1140
|
+
sizeValue = "var(--relative-size)";
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
styles[vertical ? "bottom" : "insetInlineStart"] = range ? startValue : 0;
|
|
1144
|
+
styles[vertical ? "height" : "width"] = range ? sizeValue : startValue;
|
|
1145
|
+
return styles;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Visualizes the current value of the slider.
|
|
1149
|
+
* Renders a `<div>` element.
|
|
1150
|
+
*
|
|
1151
|
+
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
1152
|
+
*/
|
|
1153
|
+
const SliderIndicator = /*#__PURE__*/ React$1.forwardRef(function SliderIndicator(componentProps, forwardedRef) {
|
|
1154
|
+
const { render, className, style: styleProp, ...elementProps } = componentProps;
|
|
1155
|
+
const { indicatorPosition, inset, max, min, orientation, renderBeforeHydration, state, values } = useSliderRootContext();
|
|
1156
|
+
const isHydrating = useIsHydrating();
|
|
1157
|
+
const style = getIndicatorStyles(orientation === "vertical", values.length > 1, inset, inset ? indicatorPosition[0] : valueToPercent(values[0], min, max), inset ? indicatorPosition[1] : valueToPercent(values[values.length - 1], min, max), inset && renderBeforeHydration && isHydrating);
|
|
1158
|
+
return useRenderElement("div", componentProps, {
|
|
1159
|
+
state,
|
|
1160
|
+
ref: forwardedRef,
|
|
1161
|
+
props: [{
|
|
1162
|
+
["data-base-ui-slider-indicator"]: renderBeforeHydration ? "" : void 0,
|
|
1163
|
+
style,
|
|
1164
|
+
suppressHydrationWarning: renderBeforeHydration || void 0
|
|
1165
|
+
}, elementProps],
|
|
1166
|
+
stateAttributesMapping: sliderStateAttributesMapping
|
|
1167
|
+
});
|
|
1168
|
+
});
|
|
1169
|
+
SliderIndicator.displayName = "SliderIndicator";
|
|
1170
|
+
//#endregion
|
|
1171
|
+
export { SliderControl as a, SliderRoot as c, SliderTrack as i, SliderThumb as n, SliderValue as o, SliderThumbDataAttributes_exports as r, SliderLabel as s, SliderIndicator as t };
|