@gv-tech/ui-web 2.29.1 → 2.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-Bd0-CZQn.js +1 -0
- package/dist/{accordion-D5QXSsCK.mjs → accordion-Cf6DNbLH.mjs} +47 -51
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +1 -2
- package/dist/{alert-dialog-B-a0Wa1M.mjs → alert-dialog-BxFH0Lwn.mjs} +43 -45
- package/dist/alert-dialog-C6vNmGBL.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +1 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/{aspect-ratio-s7Ji1MSr.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
- package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +1 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +3 -4
- package/dist/{avatar-d8Di248f.mjs → avatar-B5PWwGhY.mjs} +50 -52
- package/dist/avatar-CFhYRM52.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +1 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -6
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +3 -4
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +3 -4
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +4 -5
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +3 -4
- package/dist/calendar-D5qgt2o2.js +1 -0
- package/dist/{calendar-UW8h9dfh.mjs → calendar-DIqXNjOR.mjs} +687 -840
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel-D-xEqRCX.js +1 -0
- package/dist/{carousel-DG9xGJns.mjs → carousel-DPjWmM_A.mjs} +13 -15
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/{checkbox-Dq8VHKDH.mjs → checkbox-DEPm1BBc.mjs} +36 -38
- package/dist/checkbox-DI9Hn_e_.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +1 -2
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
- package/dist/{chunk-HBS6WEDP-aK8IuEX9.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +2 -3
- package/dist/{combobox-b4OmCNw1.mjs → combobox-C4y8AbZX.mjs} +348 -591
- package/dist/combobox-boXp-mix.js +3 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +1 -2
- package/dist/command-BnW6UIVk.js +1 -0
- package/dist/{command-5hobOyGG.mjs → command-Cbsp7PBx.mjs} +121 -124
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +1 -2
- package/dist/context-menu-CwsdFpx1.js +1 -0
- package/dist/{context-menu-DzzU-_v8.mjs → context-menu-FNgV55ZV.mjs} +117 -119
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +1 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +3 -4
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +2 -3
- package/dist/{dist-Bb5W_J2F.mjs → dist-7YyzJonC.mjs} +4 -4
- package/dist/{dist-BPL7gUpg.mjs → dist-AlmToDtO.mjs} +2 -3
- package/dist/{dist-BB78QQyQ.mjs → dist-B76UOZbx.mjs} +1 -2
- package/dist/{dist-BEbV0Hal.mjs → dist-B7Ph9-T6.mjs} +2 -3
- package/dist/dist-B7jnFMko.js +1 -0
- package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
- package/dist/dist-BQkDLAY7.js +1 -0
- package/dist/dist-Bal96K8t.js +1 -0
- package/dist/dist-Blgp9lfa.js +1 -0
- package/dist/{dist-CpKLY_uZ.mjs → dist-BnlI08Je.mjs} +4 -4
- package/dist/{dist-BexAB6yo.mjs → dist-Bu-uFV1C.mjs} +33 -34
- package/dist/{dist-OqDzLHTa.mjs → dist-C2BHd5i1.mjs} +31 -31
- package/dist/{dist-Dq-h6VAy.mjs → dist-C516Vwxy.mjs} +4 -6
- package/dist/dist-CBlqVBTk.js +1 -0
- package/dist/dist-CDcZ8WMF.js +1 -0
- package/dist/{dist-E8ieJTBC.mjs → dist-CDksSmTD.mjs} +5 -6
- package/dist/dist-CF-qVmmV.js +1 -0
- package/dist/dist-CIgGRTmJ.js +1 -0
- package/dist/dist-CJqVmdrU.js +1 -0
- package/dist/{dist-CPAF050o.mjs → dist-COqM3IM6.mjs} +3 -4
- package/dist/{dist-s7ibhASj.mjs → dist-CbWpCWog.mjs} +12 -13
- package/dist/{dist-DI1vapnL.mjs → dist-CcGLWbPa.mjs} +3 -4
- package/dist/{dist-Dt6m-kwU.mjs → dist-Cn4F8XlY.mjs} +50 -51
- package/dist/dist-CoTs6T03.js +1 -0
- package/dist/dist-Co_xSt6d.js +1 -0
- package/dist/{dist-UkWa-Arh.mjs → dist-Cu0GG-3j.mjs} +2 -3
- package/dist/{dist-Bvfb4y_L.mjs → dist-DKI-XYwI.mjs} +3 -5
- package/dist/{dist-DatgTWLz.mjs → dist-DQeXXRYL.mjs} +81 -82
- package/dist/dist-DW2ltK5-.js +1 -0
- package/dist/dist-DWcKY_sJ.js +1 -0
- package/dist/dist-DdAeWIwf.js +1 -0
- package/dist/dist-DhubV_gU.mjs +4 -0
- package/dist/dist-DmY7elIQ.js +1 -0
- package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
- package/dist/dist-DuQlxGyN.js +1 -0
- package/dist/dist-KFF7QKuL.js +1 -0
- package/dist/dist-RXrZgzkO.js +1 -0
- package/dist/dist-R_G5UQRm.js +1 -0
- package/dist/{dist-BbI6NHqR.mjs → dist-dwRwxUPt.mjs} +1 -2
- package/dist/dist-fzmUl3YX.mjs +553 -0
- package/dist/{dist-vu20fMUK.mjs → dist-hBsne-A2.mjs} +22 -23
- package/dist/{dist-B057I8ju.mjs → dist-ljiGYyay.mjs} +2 -3
- package/dist/dist-pqMcQ1Nk.js +1 -0
- package/dist/dist-zmnQp5Xf.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu-ChuqZeix.js +1 -0
- package/dist/{dropdown-menu-BqAhn64y.mjs → dropdown-menu-DU7KNoXP.mjs} +75 -77
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +1 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/{es2015-DbsmTzuc.mjs → es2015-BooeZGhO.mjs} +94 -111
- package/dist/es2015-Dggv0vx3.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +4 -5
- package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
- package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +19 -20
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card-BeqCs_2R.js +1 -0
- package/dist/{hover-card-DMsxpR9G.mjs → hover-card-w8PmCyw2.mjs} +62 -64
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +2 -3
- package/dist/{input-otp-D49Y9VcH.mjs → input-otp-Bn_Uy1mR.mjs} +6 -17
- package/dist/input-otp-CTRB_0Xp.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +1 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +4 -5
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/{label-DsSICLPc.mjs → label-Da0kELfR.mjs} +4 -6
- package/dist/label-JMa1tFfC.js +1 -0
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +1 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +3 -4
- package/dist/{menubar-DZqEj6S1.mjs → menubar-B7sRxpE4.mjs} +179 -181
- package/dist/menubar-Bd-QKMcw.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +1 -2
- package/dist/{message-scroller-CS4t7Ypn.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
- package/dist/message-scroller-BJb4Mh_I.js +1 -0
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +1 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/{navigation-menu-RO6thDOF.mjs → navigation-menu-B-RwfscB.mjs} +161 -159
- package/dist/navigation-menu-kPwxYZCR.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +1 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +2 -3
- package/dist/popover-Cq5cTNtC.js +1 -0
- package/dist/{popover-DSBkc70V.mjs → popover-T6Ra737i.mjs} +79 -81
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +1 -2
- package/dist/{progress-CQ4nQ85t.mjs → progress-e9YzxvRo.mjs} +11 -13
- package/dist/progress-iUSEI7J9.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +1 -2
- package/dist/{questionnaire-CVED7G7R.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
- package/dist/questionnaire-CcymIPae.js +1 -0
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +1 -2
- package/dist/{radio-group-TRiAhMZB.mjs → radio-group-BKpiDcIb.mjs} +58 -60
- package/dist/radio-group-DPEzCmxe.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-ByF0NmN9.mjs +2153 -0
- package/dist/resizable-oL3v42zT.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -2
- package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/{scroll-area-D6MiNHnJ.mjs → scroll-area-BzNeOQ6C.mjs} +109 -105
- package/dist/scroll-area-s4_ZJK59.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +1 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/{select-BFJUmjvX.mjs → select-B_nRxX2Y.mjs} +280 -279
- package/dist/select-j5_dph9S.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +1 -2
- package/dist/separator-Bn-3XUSJ.js +1 -0
- package/dist/{separator-2kr96SyF.mjs → separator-CCcMNS78.mjs} +4 -6
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +1 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +3 -4
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-C2ax_A0G.mjs} +47 -49
- package/dist/sidebar-Cnem2n5A.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +1 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/{slider-CdTCoQu1.mjs → slider-B2PUTc7W.mjs} +103 -104
- package/dist/slider-wZuXwuib.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +1 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch-CD675xU7.js +1 -0
- package/dist/{switch-zUBdj7jK.mjs → switch-ikzIzrme.mjs} +29 -31
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +1 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/{tabs-DaE9pEbo.mjs → tabs-DCm5zOYB.mjs} +45 -47
- package/dist/tabs-fcahDQDp.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +1 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-DKh8WFLT.js → theme-toggle-BGTJsIA-.js} +1 -1
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-BSMwXb8o.mjs} +13 -15
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast-C31v9P1K.js +1 -0
- package/dist/{toast-D0Yb-K84.mjs → toast-vU5ISM03.mjs} +181 -181
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +1 -2
- package/dist/toaster-CaJyOCyC.js +1 -0
- package/dist/{toaster-gT2b7mfE.mjs → toaster-D2BV6jez.mjs} +3 -5
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -2
- package/dist/toggle-CSZdCCwX.js +1 -0
- package/dist/{toggle-BAeKd2N0.mjs → toggle-Cv9YYwLI.mjs} +8 -9
- package/dist/toggle-group-RT8wyBwK.js +1 -0
- package/dist/{toggle-group-CEKhUozD.mjs → toggle-group-qvjasXS-.mjs} +44 -45
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +1 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +1 -2
- package/dist/{tooltip-R_nK_Qh5.mjs → tooltip-7ERoN5mV.mjs} +97 -101
- package/dist/tooltip-CC9_spXT.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +1 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as o } from "./dist-
|
|
7
|
-
import {
|
|
8
|
-
import { t as c } from "./dist-
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { t as w } from "./dist-
|
|
1
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
+
import { t } from "./dist-BOiFyvyS.mjs";
|
|
3
|
+
import { t as n } from "./dist-B76UOZbx.mjs";
|
|
4
|
+
import { t as r } from "./dist-C2BHd5i1.mjs";
|
|
5
|
+
import { a as i, n as a } from "./dist-C516Vwxy.mjs";
|
|
6
|
+
import { t as o } from "./dist-COqM3IM6.mjs";
|
|
7
|
+
import { n as s } from "./dist-dwRwxUPt.mjs";
|
|
8
|
+
import { t as c } from "./dist-CbWpCWog.mjs";
|
|
9
|
+
import { n as l, r as u, t as d } from "./es2015-BooeZGhO.mjs";
|
|
10
|
+
import { t as f } from "./dist-CDksSmTD.mjs";
|
|
11
|
+
import { t as p } from "./dist-Cu0GG-3j.mjs";
|
|
12
|
+
import { a as m, i as h, n as g, t as _ } from "./dist-Cn4F8XlY.mjs";
|
|
13
|
+
import { t as v } from "./dist-CcGLWbPa.mjs";
|
|
14
|
+
import { t as y } from "./dist-BnlI08Je.mjs";
|
|
15
|
+
import { t as b } from "./dist-B7Ph9-T6.mjs";
|
|
16
|
+
import { t as x } from "./dist-AlmToDtO.mjs";
|
|
17
|
+
import { t as S } from "./dist-DKI-XYwI.mjs";
|
|
18
|
+
import { t as C } from "./dist-DhubV_gU.mjs";
|
|
19
|
+
import { t as w } from "./dist-ljiGYyay.mjs";
|
|
20
20
|
import { CheckIcon as T, ChevronDownIcon as E, ChevronUpIcon as D } from "lucide-react";
|
|
21
21
|
import * as O from "react";
|
|
22
22
|
import * as k from "react-dom";
|
|
23
23
|
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
24
|
-
|
|
24
|
+
// ../../node_modules/.bun/@radix-ui+react-select@2.4.1+2b23df507bdda662/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
25
25
|
var N = Object.defineProperty, P = (e, t) => N(e, "name", {
|
|
26
26
|
value: t,
|
|
27
27
|
configurable: !0
|
|
@@ -36,17 +36,17 @@ var N = Object.defineProperty, P = (e, t) => N(e, "name", {
|
|
|
36
36
|
"Enter",
|
|
37
37
|
"ArrowUp",
|
|
38
38
|
"ArrowDown"
|
|
39
|
-
], ne = [" ", "Enter"], I = "Select", [L, R, re] =
|
|
39
|
+
], ne = [" ", "Enter"], I = "Select", [L, R, re] = r(I), [z, B] = o(I, [re, m]), V = m(), [H, U] = z(I), [W, G] = z(I);
|
|
40
40
|
function K(e) {
|
|
41
|
-
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue:
|
|
41
|
+
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: m, required: h, form: g, internal_do_not_use_render: v } = e, y = V(t), [b, x] = O.useState(null), [C, w] = O.useState(null), [T, E] = O.useState(!1), D = s(u), [k, A] = S({
|
|
42
42
|
prop: r,
|
|
43
43
|
defaultProp: i ?? !1,
|
|
44
44
|
onChange: a,
|
|
45
45
|
caller: I
|
|
46
|
-
}), [M, N] =
|
|
46
|
+
}), [M, N] = S({
|
|
47
47
|
prop: o,
|
|
48
|
-
defaultProp:
|
|
49
|
-
onChange:
|
|
48
|
+
defaultProp: c,
|
|
49
|
+
onChange: l,
|
|
50
50
|
caller: I
|
|
51
51
|
}), ee = O.useRef(null), F = O.useRef(!1), [te, ne] = O.useState(null), R = /* @__PURE__ */ P((e) => {
|
|
52
52
|
ne({
|
|
@@ -55,17 +55,17 @@ function K(e) {
|
|
|
55
55
|
}), N(e);
|
|
56
56
|
}, "handleUserSelect"), re = O.useRef(M);
|
|
57
57
|
O.useEffect(() => {
|
|
58
|
-
let e =
|
|
58
|
+
let e = g ? b?.ownerDocument.getElementById(g) : b?.form;
|
|
59
59
|
if (e instanceof HTMLFormElement) {
|
|
60
60
|
let t = /* @__PURE__ */ P(() => N(re.current), "reset");
|
|
61
61
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
62
62
|
}
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
g,
|
|
65
65
|
b,
|
|
66
66
|
N
|
|
67
67
|
]);
|
|
68
|
-
let z = b
|
|
68
|
+
let z = !b || !!g || !!b.closest("form"), [B, U] = O.useState(/* @__PURE__ */ new Set()), G = p(), K = Array.from(B).map((e) => e.props.value).join(";"), ie = O.useCallback((e) => {
|
|
69
69
|
U((t) => new Set(t).add(e));
|
|
70
70
|
}, []), q = O.useCallback((e) => {
|
|
71
71
|
U((t) => {
|
|
@@ -73,10 +73,10 @@ function K(e) {
|
|
|
73
73
|
return n.delete(e), n;
|
|
74
74
|
});
|
|
75
75
|
}, []), J = {
|
|
76
|
-
required:
|
|
76
|
+
required: h,
|
|
77
77
|
trigger: b,
|
|
78
78
|
onTriggerChange: x,
|
|
79
|
-
valueNode:
|
|
79
|
+
valueNode: C,
|
|
80
80
|
onValueNodeChange: w,
|
|
81
81
|
valueNodeHasChildren: T,
|
|
82
82
|
onValueNodeHasChildrenChange: E,
|
|
@@ -90,15 +90,15 @@ function K(e) {
|
|
|
90
90
|
onOpenChange: A,
|
|
91
91
|
dir: D,
|
|
92
92
|
triggerPointerDownPosRef: ee,
|
|
93
|
-
disabled:
|
|
94
|
-
name:
|
|
95
|
-
autoComplete:
|
|
96
|
-
form:
|
|
93
|
+
disabled: m,
|
|
94
|
+
name: d,
|
|
95
|
+
autoComplete: f,
|
|
96
|
+
form: g,
|
|
97
97
|
nativeOptions: B,
|
|
98
98
|
nativeSelectKey: K,
|
|
99
99
|
isFormControl: z
|
|
100
100
|
};
|
|
101
|
-
return /* @__PURE__ */ j(
|
|
101
|
+
return /* @__PURE__ */ j(_, {
|
|
102
102
|
...y,
|
|
103
103
|
children: /* @__PURE__ */ j(H, {
|
|
104
104
|
scope: t,
|
|
@@ -123,90 +123,90 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
123
123
|
...r,
|
|
124
124
|
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ M(A, { children: [n, e ? /* @__PURE__ */ j(Ve, { __scopeSelect: t }) : null] })
|
|
125
125
|
});
|
|
126
|
-
}, "Select"), q = "SelectTrigger", J = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
127
|
-
let { __scopeSelect:
|
|
128
|
-
let t =
|
|
129
|
-
n !== void 0 &&
|
|
126
|
+
}, "Select"), q = "SelectTrigger", J = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
127
|
+
let { __scopeSelect: r, disabled: a = !1, ...o } = e, s = V(r), c = U(q, r), l = c.disabled || a, u = i(t, c.onTriggerChange), d = R(r), f = O.useRef("touch"), [p, m, h] = Ue((e) => {
|
|
128
|
+
let t = d().filter((e) => !e.disabled), n = We(t, e, t.find((e) => e.value === c.value));
|
|
129
|
+
n !== void 0 && c.onUserSelect(n.value);
|
|
130
130
|
}), _ = /* @__PURE__ */ P((e) => {
|
|
131
|
-
|
|
131
|
+
l || (c.onOpenChange(!0), h()), e && (c.triggerPointerDownPosRef.current = {
|
|
132
132
|
x: Math.round(e.pageX),
|
|
133
133
|
y: Math.round(e.pageY)
|
|
134
134
|
});
|
|
135
135
|
}, "handleOpen");
|
|
136
|
-
return /* @__PURE__ */ j(
|
|
136
|
+
return /* @__PURE__ */ j(g, {
|
|
137
137
|
asChild: !0,
|
|
138
138
|
...s,
|
|
139
|
-
children: /* @__PURE__ */ j(
|
|
139
|
+
children: /* @__PURE__ */ j(b.button, {
|
|
140
140
|
type: "button",
|
|
141
141
|
role: "combobox",
|
|
142
|
-
"aria-controls":
|
|
143
|
-
"aria-expanded":
|
|
144
|
-
"aria-required":
|
|
142
|
+
"aria-controls": c.open ? c.contentId : void 0,
|
|
143
|
+
"aria-expanded": c.open,
|
|
144
|
+
"aria-required": c.required,
|
|
145
145
|
"aria-autocomplete": "none",
|
|
146
|
-
dir:
|
|
147
|
-
"data-state":
|
|
148
|
-
disabled:
|
|
149
|
-
"data-disabled":
|
|
150
|
-
"data-placeholder": $(
|
|
146
|
+
dir: c.dir,
|
|
147
|
+
"data-state": c.open ? "open" : "closed",
|
|
148
|
+
disabled: l,
|
|
149
|
+
"data-disabled": l ? "" : void 0,
|
|
150
|
+
"data-placeholder": $(c.value) ? "" : void 0,
|
|
151
151
|
...o,
|
|
152
|
-
ref:
|
|
153
|
-
onClick:
|
|
154
|
-
e.currentTarget.focus(),
|
|
152
|
+
ref: u,
|
|
153
|
+
onClick: n(o.onClick, (e) => {
|
|
154
|
+
e.currentTarget.focus(), f.current !== "mouse" && _(e);
|
|
155
155
|
}),
|
|
156
|
-
onPointerDown:
|
|
157
|
-
|
|
156
|
+
onPointerDown: n(o.onPointerDown, (e) => {
|
|
157
|
+
f.current = e.pointerType;
|
|
158
158
|
let t = e.target;
|
|
159
159
|
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (_(e), e.preventDefault());
|
|
160
160
|
}),
|
|
161
|
-
onKeyDown:
|
|
162
|
-
let t =
|
|
163
|
-
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (
|
|
161
|
+
onKeyDown: n(o.onKeyDown, (e) => {
|
|
162
|
+
let t = p.current !== "";
|
|
163
|
+
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), m(e.key)), t && e.key === " " || te.includes(e.key) && (_(), e.preventDefault());
|
|
164
164
|
})
|
|
165
165
|
})
|
|
166
166
|
});
|
|
167
|
-
}, "SelectTrigger")), ae = "SelectValue", oe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
168
|
-
let { __scopeSelect:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
let
|
|
173
|
-
return /* @__PURE__ */ j(
|
|
174
|
-
...
|
|
175
|
-
asChild:
|
|
176
|
-
ref:
|
|
167
|
+
}, "SelectTrigger")), ae = "SelectValue", oe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
168
|
+
let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = U(ae, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
|
|
169
|
+
C(() => {
|
|
170
|
+
u(d);
|
|
171
|
+
}, [u, d]);
|
|
172
|
+
let p = $(l.value);
|
|
173
|
+
return /* @__PURE__ */ j(b.span, {
|
|
174
|
+
...c,
|
|
175
|
+
asChild: !p && c.asChild,
|
|
176
|
+
ref: f,
|
|
177
177
|
style: { pointerEvents: "none" },
|
|
178
|
-
children: /* @__PURE__ */ j(O.Fragment, { children:
|
|
178
|
+
children: /* @__PURE__ */ j(O.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
|
|
179
179
|
});
|
|
180
180
|
}, "SelectValue")), se = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
181
|
-
let { __scopeSelect: n, children:
|
|
182
|
-
return /* @__PURE__ */ j(
|
|
181
|
+
let { __scopeSelect: n, children: r, ...i } = e;
|
|
182
|
+
return /* @__PURE__ */ j(b.span, {
|
|
183
183
|
"aria-hidden": !0,
|
|
184
|
-
...
|
|
184
|
+
...i,
|
|
185
185
|
ref: t,
|
|
186
|
-
children:
|
|
186
|
+
children: r || "▼"
|
|
187
187
|
});
|
|
188
188
|
}, "SelectIcon")), [ce, le] = z("SelectPortal", { forceMount: void 0 }), ue = /* @__PURE__ */ P((e) => {
|
|
189
189
|
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
190
190
|
return /* @__PURE__ */ j(ce, {
|
|
191
191
|
scope: e.__scopeSelect,
|
|
192
192
|
forceMount: n,
|
|
193
|
-
children: /* @__PURE__ */ j(
|
|
193
|
+
children: /* @__PURE__ */ j(v, {
|
|
194
194
|
asChild: !0,
|
|
195
195
|
...r
|
|
196
196
|
})
|
|
197
197
|
});
|
|
198
198
|
}, "SelectPortal"), Y = "SelectContent", de = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
199
|
-
let n = le(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = U(Y, e.__scopeSelect), [
|
|
200
|
-
return
|
|
201
|
-
|
|
202
|
-
}, []), /* @__PURE__ */ j(
|
|
199
|
+
let n = le(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = U(Y, e.__scopeSelect), [o, s] = O.useState();
|
|
200
|
+
return C(() => {
|
|
201
|
+
s(new DocumentFragment());
|
|
202
|
+
}, []), /* @__PURE__ */ j(y, {
|
|
203
203
|
present: r || a.open,
|
|
204
204
|
children: ({ present: e }) => e ? /* @__PURE__ */ j(he, {
|
|
205
205
|
...i,
|
|
206
206
|
ref: t
|
|
207
207
|
}) : /* @__PURE__ */ j(fe, {
|
|
208
208
|
...i,
|
|
209
|
-
fragment:
|
|
209
|
+
fragment: o
|
|
210
210
|
})
|
|
211
211
|
});
|
|
212
212
|
}, "SelectContent")), fe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
@@ -221,11 +221,11 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
221
221
|
})
|
|
222
222
|
})
|
|
223
223
|
}), i) : null;
|
|
224
|
-
}, "SelectContentFragment")), X = 10, [pe, Z] = z(Y), me =
|
|
225
|
-
let { __scopeSelect: r } = e, { position:
|
|
224
|
+
}, "SelectContentFragment")), X = 10, [pe, Z] = z(Y), me = a("SelectContent.RemoveScroll"), he = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
225
|
+
let { __scopeSelect: r } = e, { position: a = ee.ItemAligned, onCloseAutoFocus: o, onEscapeKeyDown: s, onPointerDownOutside: p, side: m, sideOffset: h, align: g, alignOffset: _, arrowPadding: v, collisionBoundary: y, collisionPadding: b, sticky: x, hideWhenDetached: S, avoidCollisions: C, ...w } = e, T = U(Y, r), [E, D] = O.useState(null), [k, A] = O.useState(null), M = i(t, D), [N, F] = O.useState(null), [te, ne] = O.useState(null), I = R(r), [L, re] = O.useState(!1), z = O.useRef(!1), B = O.useRef(!1), V = O.useRef(!1);
|
|
226
226
|
O.useEffect(() => {
|
|
227
|
-
if (E) return
|
|
228
|
-
}, [E]),
|
|
227
|
+
if (E) return d(E);
|
|
228
|
+
}, [E]), u();
|
|
229
229
|
let H = O.useCallback((e) => {
|
|
230
230
|
let [t, ...n] = I().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
231
231
|
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && k && (k.scrollTop = 0), n === r && k && (k.scrollTop = k.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
@@ -282,13 +282,13 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
282
282
|
r && (V.current = !0);
|
|
283
283
|
let i = !z.current && !n;
|
|
284
284
|
(T.value !== void 0 && T.value === t || i || r) && ne(e);
|
|
285
|
-
}, [T.value]), se =
|
|
286
|
-
side:
|
|
287
|
-
sideOffset:
|
|
288
|
-
align:
|
|
289
|
-
alignOffset:
|
|
290
|
-
arrowPadding:
|
|
291
|
-
collisionBoundary:
|
|
285
|
+
}, [T.value]), se = a === ee.Popper ? _e : ge, ce = se === _e ? {
|
|
286
|
+
side: m,
|
|
287
|
+
sideOffset: h,
|
|
288
|
+
align: g,
|
|
289
|
+
alignOffset: _,
|
|
290
|
+
arrowPadding: v,
|
|
291
|
+
collisionBoundary: y,
|
|
292
292
|
collisionPadding: b,
|
|
293
293
|
sticky: x,
|
|
294
294
|
hideWhenDetached: S,
|
|
@@ -305,26 +305,26 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
305
305
|
itemTextRefCallback: oe,
|
|
306
306
|
focusSelectedItem: W,
|
|
307
307
|
selectedItemText: te,
|
|
308
|
-
position:
|
|
308
|
+
position: a,
|
|
309
309
|
isPositioned: L,
|
|
310
310
|
searchRef: ie,
|
|
311
|
-
children: /* @__PURE__ */ j(
|
|
311
|
+
children: /* @__PURE__ */ j(l, {
|
|
312
312
|
as: me,
|
|
313
313
|
allowPinchZoom: !0,
|
|
314
|
-
children: /* @__PURE__ */ j(
|
|
314
|
+
children: /* @__PURE__ */ j(f, {
|
|
315
315
|
asChild: !0,
|
|
316
316
|
trapped: T.open,
|
|
317
317
|
onMountAutoFocus: (e) => {
|
|
318
318
|
e.preventDefault();
|
|
319
319
|
},
|
|
320
|
-
onUnmountAutoFocus:
|
|
320
|
+
onUnmountAutoFocus: n(o, (e) => {
|
|
321
321
|
T.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
322
322
|
}),
|
|
323
|
-
children: /* @__PURE__ */ j(
|
|
323
|
+
children: /* @__PURE__ */ j(c, {
|
|
324
324
|
asChild: !0,
|
|
325
325
|
disableOutsidePointerEvents: !0,
|
|
326
|
-
onEscapeKeyDown:
|
|
327
|
-
onPointerDownOutside:
|
|
326
|
+
onEscapeKeyDown: s,
|
|
327
|
+
onPointerDownOutside: p,
|
|
328
328
|
onFocusOutside: (e) => e.preventDefault(),
|
|
329
329
|
onDismiss: () => T.onOpenChange(!1),
|
|
330
330
|
children: /* @__PURE__ */ j(se, {
|
|
@@ -343,7 +343,7 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
343
343
|
outline: "none",
|
|
344
344
|
...w.style
|
|
345
345
|
},
|
|
346
|
-
onKeyDown:
|
|
346
|
+
onKeyDown: n(w.onKeyDown, (e) => {
|
|
347
347
|
let t = e.ctrlKey || e.altKey || e.metaKey;
|
|
348
348
|
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && q(e.key), [
|
|
349
349
|
"ArrowUp",
|
|
@@ -365,76 +365,78 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
365
365
|
})
|
|
366
366
|
});
|
|
367
367
|
}, "SelectContentImpl")), ge = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, n) {
|
|
368
|
-
let { __scopeSelect:
|
|
369
|
-
if (
|
|
370
|
-
let e =
|
|
371
|
-
if (
|
|
372
|
-
let
|
|
373
|
-
|
|
368
|
+
let { __scopeSelect: r, onPlaced: a, ...o } = e, s = U(Y, r), c = Z(Y, r), [l, u] = O.useState(null), [d, f] = O.useState(null), p = i(n, f), m = R(r), h = O.useRef(!1), g = O.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: x } = c, S = O.useCallback(() => {
|
|
369
|
+
if (s.trigger && s.valueNode && l && d && _ && v && y) {
|
|
370
|
+
let e = s.trigger.getBoundingClientRect(), n = d.getBoundingClientRect(), r = s.valueNode.getBoundingClientRect(), i = y.getBoundingClientRect();
|
|
371
|
+
if (s.dir !== F.RTL) {
|
|
372
|
+
let a = i.left - n.left, o = r.left - a, s = e.left - o, c = e.width + s, u = Math.max(c, n.width), d = window.innerWidth - X, f = t(o, [X, Math.max(X, d - u)]);
|
|
373
|
+
l.style.minWidth = c + "px", l.style.left = f + "px";
|
|
374
374
|
} else {
|
|
375
|
-
let
|
|
376
|
-
|
|
375
|
+
let a = n.right - i.right, o = window.innerWidth - r.right - a, s = window.innerWidth - e.right - o, c = e.width + s, u = Math.max(c, n.width), d = window.innerWidth - X, f = t(o, [X, Math.max(X, d - u)]);
|
|
376
|
+
l.style.minWidth = c + "px", l.style.right = f + "px";
|
|
377
377
|
}
|
|
378
|
-
let
|
|
378
|
+
let o = m(), c = window.innerHeight - X * 2, u = _.scrollHeight, f = window.getComputedStyle(d), p = parseInt(f.borderTopWidth, 10), g = parseInt(f.paddingTop, 10), b = parseInt(f.borderBottomWidth, 10), x = parseInt(f.paddingBottom, 10), S = p + g + u + x + b, C = Math.min(v.offsetHeight * 5, S), w = window.getComputedStyle(_), T = parseInt(w.paddingTop, 10), E = parseInt(w.paddingBottom, 10), D = e.top + e.height / 2 - X, O = c - D, k = v.offsetHeight / 2, A = v.offsetTop + k, j = p + g + A, M = S - j;
|
|
379
379
|
if (j <= D) {
|
|
380
|
-
let e =
|
|
381
|
-
|
|
382
|
-
let t =
|
|
383
|
-
|
|
380
|
+
let e = o.length > 0 && v === o[o.length - 1].ref.current;
|
|
381
|
+
l.style.bottom = "0px";
|
|
382
|
+
let t = d.clientHeight - _.offsetTop - _.offsetHeight, n = j + Math.max(O, k + (e ? E : 0) + t + b);
|
|
383
|
+
l.style.height = n + "px";
|
|
384
384
|
} else {
|
|
385
|
-
let e =
|
|
386
|
-
|
|
387
|
-
let t = Math.max(D,
|
|
388
|
-
|
|
385
|
+
let e = o.length > 0 && v === o[0].ref.current;
|
|
386
|
+
l.style.top = "0px";
|
|
387
|
+
let t = Math.max(D, p + _.offsetTop + (e ? T : 0) + k) + M;
|
|
388
|
+
l.style.height = t + "px", _.scrollTop = j - D + _.offsetTop;
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
l.style.margin = `${X}px 0`, l.style.minHeight = C + "px", l.style.maxHeight = c + "px", a?.(), requestAnimationFrame(() => h.current = !0);
|
|
391
391
|
}
|
|
392
392
|
}, [
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
m,
|
|
394
|
+
s.trigger,
|
|
395
|
+
s.valueNode,
|
|
396
|
+
l,
|
|
397
|
+
d,
|
|
398
|
+
_,
|
|
398
399
|
v,
|
|
399
400
|
y,
|
|
400
|
-
|
|
401
|
-
c.dir,
|
|
401
|
+
s.dir,
|
|
402
402
|
a
|
|
403
403
|
]);
|
|
404
|
-
|
|
405
|
-
let [
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
}, [
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
404
|
+
C(() => S(), [S]);
|
|
405
|
+
let [w, T] = O.useState();
|
|
406
|
+
C(() => {
|
|
407
|
+
d && T(window.getComputedStyle(d).zIndex);
|
|
408
|
+
}, [d]);
|
|
409
|
+
let E = O.useCallback((e) => {
|
|
410
|
+
e && g.current === !0 && (S(), x?.(), g.current = !1);
|
|
411
|
+
}, [S, x]);
|
|
412
|
+
return /* @__PURE__ */ j(ve, {
|
|
413
|
+
scope: r,
|
|
414
|
+
contentWrapper: l,
|
|
415
|
+
shouldExpandOnScrollRef: h,
|
|
416
|
+
onScrollButtonChange: E,
|
|
415
417
|
children: /* @__PURE__ */ j("div", {
|
|
416
|
-
ref:
|
|
418
|
+
ref: u,
|
|
417
419
|
style: {
|
|
418
420
|
display: "flex",
|
|
419
421
|
flexDirection: "column",
|
|
420
422
|
position: "fixed",
|
|
421
|
-
zIndex:
|
|
423
|
+
zIndex: w
|
|
422
424
|
},
|
|
423
|
-
children: /* @__PURE__ */ j(
|
|
424
|
-
...
|
|
425
|
-
ref:
|
|
425
|
+
children: /* @__PURE__ */ j(b.div, {
|
|
426
|
+
...o,
|
|
427
|
+
ref: p,
|
|
426
428
|
style: {
|
|
427
429
|
boxSizing: "border-box",
|
|
428
430
|
maxHeight: "100%",
|
|
429
|
-
...
|
|
431
|
+
...o.style
|
|
430
432
|
}
|
|
431
433
|
})
|
|
432
434
|
})
|
|
433
435
|
});
|
|
434
436
|
}, "SelectItemAlignedPosition")), _e = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
435
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e;
|
|
436
|
-
return /* @__PURE__ */ j(
|
|
437
|
-
...
|
|
437
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e, o = V(n);
|
|
438
|
+
return /* @__PURE__ */ j(h, {
|
|
439
|
+
...o,
|
|
438
440
|
...a,
|
|
439
441
|
ref: t,
|
|
440
442
|
align: r,
|
|
@@ -449,28 +451,28 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
449
451
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
450
452
|
}
|
|
451
453
|
});
|
|
452
|
-
}, "SelectPopperPosition")), [ve, ye] = z(Y, {}), be = "SelectViewport", xe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
453
|
-
let { __scopeSelect:
|
|
454
|
+
}, "SelectPopperPosition")), [ve, ye] = z(Y, {}), be = "SelectViewport", xe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
455
|
+
let { __scopeSelect: r, nonce: a, ...o } = e, s = Z(be, r), c = ye(be, r), l = i(t, s.onViewportChange), u = O.useRef(0);
|
|
454
456
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("style", {
|
|
455
457
|
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
456
458
|
nonce: a
|
|
457
459
|
}), /* @__PURE__ */ j(L.Slot, {
|
|
458
|
-
scope:
|
|
459
|
-
children: /* @__PURE__ */ j(
|
|
460
|
+
scope: r,
|
|
461
|
+
children: /* @__PURE__ */ j(b.div, {
|
|
460
462
|
"data-radix-select-viewport": "",
|
|
461
463
|
role: "presentation",
|
|
462
464
|
...o,
|
|
463
|
-
ref:
|
|
465
|
+
ref: l,
|
|
464
466
|
style: {
|
|
465
467
|
position: "relative",
|
|
466
468
|
flex: 1,
|
|
467
469
|
overflow: "hidden auto",
|
|
468
470
|
...o.style
|
|
469
471
|
},
|
|
470
|
-
onScroll:
|
|
471
|
-
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } =
|
|
472
|
+
onScroll: n(o.onScroll, (e) => {
|
|
473
|
+
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = c;
|
|
472
474
|
if (r?.current && n) {
|
|
473
|
-
let e = Math.abs(
|
|
475
|
+
let e = Math.abs(u.current - t.scrollTop);
|
|
474
476
|
if (e > 0) {
|
|
475
477
|
let r = window.innerHeight - X * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
476
478
|
if (o < r) {
|
|
@@ -479,154 +481,155 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
479
481
|
}
|
|
480
482
|
}
|
|
481
483
|
}
|
|
482
|
-
|
|
484
|
+
u.current = t.scrollTop;
|
|
483
485
|
})
|
|
484
486
|
})
|
|
485
487
|
})] });
|
|
486
488
|
}, "SelectViewport")), [Se, Ce] = z("SelectGroup"), we = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
487
|
-
let { __scopeSelect: n, ...
|
|
489
|
+
let { __scopeSelect: n, ...r } = e, i = p();
|
|
488
490
|
return /* @__PURE__ */ j(Se, {
|
|
489
491
|
scope: n,
|
|
490
|
-
id:
|
|
491
|
-
children: /* @__PURE__ */ j(
|
|
492
|
+
id: i,
|
|
493
|
+
children: /* @__PURE__ */ j(b.div, {
|
|
492
494
|
role: "group",
|
|
493
|
-
"aria-labelledby":
|
|
494
|
-
...
|
|
495
|
+
"aria-labelledby": i,
|
|
496
|
+
...r,
|
|
495
497
|
ref: t
|
|
496
498
|
})
|
|
497
499
|
});
|
|
498
500
|
}, "SelectGroup")), Te = "SelectLabel", Ee = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
499
|
-
let { __scopeSelect: n, ...
|
|
500
|
-
return /* @__PURE__ */ j(
|
|
501
|
-
id:
|
|
502
|
-
...
|
|
501
|
+
let { __scopeSelect: n, ...r } = e, i = Ce(Te, n);
|
|
502
|
+
return /* @__PURE__ */ j(b.div, {
|
|
503
|
+
id: i.id,
|
|
504
|
+
...r,
|
|
503
505
|
ref: t
|
|
504
506
|
});
|
|
505
|
-
}, "SelectLabel")), De = "SelectItem", [Oe, ke] = z(De), Ae = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
506
|
-
let { __scopeSelect:
|
|
507
|
-
function
|
|
508
|
-
|
|
507
|
+
}, "SelectLabel")), De = "SelectItem", [Oe, ke] = z(De), Ae = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
508
|
+
let { __scopeSelect: r, value: a, disabled: o = !1, textValue: s, ...c } = e, l = U(De, r), u = Z(De, r), d = l.value === a, [f, m] = O.useState(s ?? ""), [h, g] = O.useState(!1), _ = x((e) => u.itemRefCallback?.(e, a, o)), v = i(t, _), y = p(), S = O.useRef("touch");
|
|
509
|
+
function C(e) {
|
|
510
|
+
l.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), l.onUserSelect(a), l.onOpenChange(!1);
|
|
509
511
|
}
|
|
510
|
-
return P(
|
|
511
|
-
scope:
|
|
512
|
+
return P(C, "handleSelect"), /* @__PURE__ */ j(Oe, {
|
|
513
|
+
scope: r,
|
|
512
514
|
value: a,
|
|
513
515
|
disabled: o,
|
|
514
|
-
textId:
|
|
515
|
-
isSelected:
|
|
516
|
+
textId: y,
|
|
517
|
+
isSelected: d,
|
|
516
518
|
onItemTextChange: O.useCallback((e) => {
|
|
517
|
-
|
|
519
|
+
m((t) => t || (e?.textContent ?? "").trim());
|
|
518
520
|
}, []),
|
|
519
521
|
children: /* @__PURE__ */ j(L.ItemSlot, {
|
|
520
|
-
scope:
|
|
522
|
+
scope: r,
|
|
521
523
|
value: a,
|
|
522
524
|
disabled: o,
|
|
523
|
-
textValue:
|
|
524
|
-
children: /* @__PURE__ */ j(
|
|
525
|
+
textValue: f,
|
|
526
|
+
children: /* @__PURE__ */ j(b.div, {
|
|
525
527
|
role: "option",
|
|
526
|
-
"aria-labelledby":
|
|
527
|
-
"data-highlighted":
|
|
528
|
-
"aria-selected":
|
|
529
|
-
"data-state":
|
|
528
|
+
"aria-labelledby": y,
|
|
529
|
+
"data-highlighted": h ? "" : void 0,
|
|
530
|
+
"aria-selected": d && h,
|
|
531
|
+
"data-state": d ? "checked" : "unchecked",
|
|
530
532
|
"aria-disabled": o || void 0,
|
|
531
533
|
"data-disabled": o ? "" : void 0,
|
|
532
534
|
tabIndex: o ? void 0 : -1,
|
|
533
|
-
...
|
|
534
|
-
ref:
|
|
535
|
-
onFocus: c
|
|
536
|
-
onBlur: c
|
|
537
|
-
onClick: c
|
|
538
|
-
o ||
|
|
535
|
+
...c,
|
|
536
|
+
ref: v,
|
|
537
|
+
onFocus: n(c.onFocus, () => g(!0)),
|
|
538
|
+
onBlur: n(c.onBlur, () => g(!1)),
|
|
539
|
+
onClick: n(c.onClick, (e) => {
|
|
540
|
+
o || S.current !== "mouse" && C(e);
|
|
539
541
|
}),
|
|
540
|
-
onPointerUp: c
|
|
541
|
-
o ||
|
|
542
|
+
onPointerUp: n(c.onPointerUp, (e) => {
|
|
543
|
+
o || S.current === "mouse" && C(e);
|
|
542
544
|
}),
|
|
543
|
-
onPointerDown: c
|
|
544
|
-
|
|
545
|
+
onPointerDown: n(c.onPointerDown, (e) => {
|
|
546
|
+
S.current = e.pointerType;
|
|
545
547
|
}),
|
|
546
|
-
onPointerMove: c
|
|
547
|
-
|
|
548
|
+
onPointerMove: n(c.onPointerMove, (e) => {
|
|
549
|
+
S.current = e.pointerType, o ? u.onItemLeave?.() : S.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
|
|
548
550
|
}),
|
|
549
|
-
onPointerLeave: c
|
|
550
|
-
e.currentTarget === document.activeElement &&
|
|
551
|
+
onPointerLeave: n(c.onPointerLeave, (e) => {
|
|
552
|
+
e.currentTarget === document.activeElement && u.onItemLeave?.();
|
|
551
553
|
}),
|
|
552
|
-
onKeyDown: c
|
|
553
|
-
o || e.target !== e.currentTarget ||
|
|
554
|
+
onKeyDown: n(c.onKeyDown, (e) => {
|
|
555
|
+
o || e.target !== e.currentTarget || (u.searchRef?.current === "" || e.key !== " ") && (ne.includes(e.key) && C(e), e.key === " " && e.preventDefault());
|
|
554
556
|
})
|
|
555
557
|
})
|
|
556
558
|
})
|
|
557
559
|
});
|
|
558
|
-
}, "SelectItem")), Q = "SelectItemText", je = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
559
|
-
let { __scopeSelect:
|
|
560
|
-
value:
|
|
561
|
-
disabled:
|
|
562
|
-
children:
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
]), { onNativeOptionAdd:
|
|
568
|
-
return
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
]), /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(
|
|
573
|
-
id:
|
|
574
|
-
...
|
|
575
|
-
ref:
|
|
576
|
-
}),
|
|
560
|
+
}, "SelectItem")), Q = "SelectItemText", je = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
561
|
+
let { __scopeSelect: n, className: r, style: a, ...o } = e, s = U(Q, n), c = Z(Q, n), l = ke(Q, n), u = G(Q, n), [d, f] = O.useState(null), p = x((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = i(t, f, l.onItemTextChange, p), h = d?.textContent, g = O.useMemo(() => /* @__PURE__ */ j("option", {
|
|
562
|
+
value: l.value,
|
|
563
|
+
disabled: l.disabled,
|
|
564
|
+
children: h
|
|
565
|
+
}, l.value), [
|
|
566
|
+
l.disabled,
|
|
567
|
+
l.value,
|
|
568
|
+
h
|
|
569
|
+
]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
|
|
570
|
+
return C(() => (_(g), () => v(g)), [
|
|
571
|
+
_,
|
|
572
|
+
v,
|
|
573
|
+
g
|
|
574
|
+
]), /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(b.span, {
|
|
575
|
+
id: l.textId,
|
|
576
|
+
...o,
|
|
577
|
+
ref: m
|
|
578
|
+
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !$(s.value) ? k.createPortal(o.children, s.valueNode) : null] });
|
|
577
579
|
}, "SelectItemText")), Me = "SelectItemIndicator", Ne = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
578
|
-
let { __scopeSelect: n, ...
|
|
579
|
-
return ke(Me, n).isSelected ? /* @__PURE__ */ j(
|
|
580
|
+
let { __scopeSelect: n, ...r } = e;
|
|
581
|
+
return ke(Me, n).isSelected ? /* @__PURE__ */ j(b.span, {
|
|
580
582
|
"aria-hidden": !0,
|
|
581
|
-
...
|
|
583
|
+
...r,
|
|
582
584
|
ref: t
|
|
583
585
|
}) : null;
|
|
584
|
-
}, "SelectItemIndicator")), Pe = "SelectScrollUpButton", Fe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
585
|
-
let
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
586
|
+
}, "SelectItemIndicator")), Pe = "SelectScrollUpButton", Fe = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
587
|
+
let n = Z(Pe, e.__scopeSelect), r = ye(Pe, e.__scopeSelect), [a, o] = O.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
588
|
+
return C(() => {
|
|
589
|
+
if (n.viewport && n.isPositioned) {
|
|
588
590
|
let e = function() {
|
|
589
|
-
|
|
591
|
+
let e = t.scrollTop > 0;
|
|
592
|
+
o(e);
|
|
590
593
|
};
|
|
591
594
|
P(e, "handleScroll");
|
|
592
|
-
let t =
|
|
595
|
+
let t = n.viewport;
|
|
593
596
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
594
597
|
}
|
|
595
|
-
}, [
|
|
598
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ j(Re, {
|
|
596
599
|
...e,
|
|
597
|
-
ref:
|
|
600
|
+
ref: s,
|
|
598
601
|
onAutoScroll: () => {
|
|
599
|
-
let { viewport: e, selectedItem: t } =
|
|
602
|
+
let { viewport: e, selectedItem: t } = n;
|
|
600
603
|
e && t && (e.scrollTop -= t.offsetHeight);
|
|
601
604
|
}
|
|
602
605
|
}) : null;
|
|
603
|
-
}, "SelectScrollUpButton")), Ie = "SelectScrollDownButton", Le = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e,
|
|
604
|
-
let
|
|
605
|
-
return
|
|
606
|
-
if (
|
|
606
|
+
}, "SelectScrollUpButton")), Ie = "SelectScrollDownButton", Le = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
607
|
+
let n = Z(Ie, e.__scopeSelect), r = ye(Ie, e.__scopeSelect), [a, o] = O.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
608
|
+
return C(() => {
|
|
609
|
+
if (n.viewport && n.isPositioned) {
|
|
607
610
|
let e = function() {
|
|
608
|
-
let e = t.scrollHeight - t.clientHeight;
|
|
609
|
-
|
|
611
|
+
let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
|
|
612
|
+
o(n);
|
|
610
613
|
};
|
|
611
614
|
P(e, "handleScroll");
|
|
612
|
-
let t =
|
|
615
|
+
let t = n.viewport;
|
|
613
616
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
614
617
|
}
|
|
615
|
-
}, [
|
|
618
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ j(Re, {
|
|
616
619
|
...e,
|
|
617
|
-
ref:
|
|
620
|
+
ref: s,
|
|
618
621
|
onAutoScroll: () => {
|
|
619
|
-
let { viewport: e, selectedItem: t } =
|
|
622
|
+
let { viewport: e, selectedItem: t } = n;
|
|
620
623
|
e && t && (e.scrollTop += t.offsetHeight);
|
|
621
624
|
}
|
|
622
625
|
}) : null;
|
|
623
626
|
}, "SelectScrollDownButton")), Re = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
624
|
-
let { __scopeSelect:
|
|
625
|
-
|
|
627
|
+
let { __scopeSelect: r, onAutoScroll: i, ...a } = e, o = Z("SelectScrollButton", r), s = O.useRef(null), c = R(r), l = O.useCallback(() => {
|
|
628
|
+
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
626
629
|
}, []);
|
|
627
|
-
return O.useEffect(() => () =>
|
|
628
|
-
|
|
629
|
-
}, [
|
|
630
|
+
return O.useEffect(() => () => l(), [l]), C(() => {
|
|
631
|
+
c().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
632
|
+
}, [c]), /* @__PURE__ */ j(b.div, {
|
|
630
633
|
"aria-hidden": !0,
|
|
631
634
|
...a,
|
|
632
635
|
ref: t,
|
|
@@ -634,67 +637,67 @@ var ie = /* @__PURE__ */ P((e) => {
|
|
|
634
637
|
flexShrink: 0,
|
|
635
638
|
...a.style
|
|
636
639
|
},
|
|
637
|
-
onPointerDown:
|
|
638
|
-
|
|
640
|
+
onPointerDown: n(a.onPointerDown, () => {
|
|
641
|
+
s.current === null && (s.current = window.setInterval(i, 50));
|
|
639
642
|
}),
|
|
640
|
-
onPointerMove:
|
|
641
|
-
|
|
643
|
+
onPointerMove: n(a.onPointerMove, () => {
|
|
644
|
+
o.onItemLeave?.(), s.current === null && (s.current = window.setInterval(i, 50));
|
|
642
645
|
}),
|
|
643
|
-
onPointerLeave:
|
|
644
|
-
|
|
646
|
+
onPointerLeave: n(a.onPointerLeave, () => {
|
|
647
|
+
l();
|
|
645
648
|
})
|
|
646
649
|
});
|
|
647
650
|
}, "SelectScrollButtonImpl")), ze = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function(e, t) {
|
|
648
|
-
let { __scopeSelect: n, ...
|
|
649
|
-
return /* @__PURE__ */ j(
|
|
651
|
+
let { __scopeSelect: n, ...r } = e;
|
|
652
|
+
return /* @__PURE__ */ j(b.div, {
|
|
650
653
|
"aria-hidden": !0,
|
|
651
|
-
...
|
|
654
|
+
...r,
|
|
652
655
|
ref: t
|
|
653
656
|
});
|
|
654
|
-
}, "SelectSeparator")), Be = "SelectBubbleInput", Ve = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function({ __scopeSelect: e, ...
|
|
655
|
-
let
|
|
657
|
+
}, "SelectSeparator")), Be = "SelectBubbleInput", Ve = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ P(function({ __scopeSelect: e, ...t }, n) {
|
|
658
|
+
let r = U(Be, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: d, userSelection: f } = r, { nativeOptions: p, nativeSelectKey: m } = r, h = O.useRef(null), g = i(n, h), _ = a ?? "", v = O.useRef(_), y = O.useRef(f), x = O.useRef(!1), S = Array.from(p).some((e) => (e.props.value ?? "") === "");
|
|
656
659
|
return O.useEffect(() => {
|
|
657
|
-
let e =
|
|
660
|
+
let e = h.current;
|
|
658
661
|
if (!e) return;
|
|
659
|
-
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r =
|
|
660
|
-
|
|
661
|
-
let i =
|
|
662
|
-
|
|
662
|
+
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = f !== null && f !== y.current;
|
|
663
|
+
y.current = f;
|
|
664
|
+
let i = v.current !== _;
|
|
665
|
+
v.current = _;
|
|
663
666
|
let a = r && i;
|
|
664
|
-
if (r && !i &&
|
|
665
|
-
|
|
667
|
+
if (r && !i && f.value !== _ && !f.hasConsumerStoppedPropagation && n) {
|
|
668
|
+
x.current = !0;
|
|
666
669
|
try {
|
|
667
|
-
n.call(e,
|
|
670
|
+
n.call(e, f.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
668
671
|
} finally {
|
|
669
|
-
|
|
672
|
+
x.current = !1, n.call(e, _);
|
|
670
673
|
}
|
|
671
674
|
return;
|
|
672
675
|
}
|
|
673
|
-
let o = a && !
|
|
676
|
+
let o = a && !f.hasConsumerStoppedPropagation;
|
|
674
677
|
if (i && n) {
|
|
675
678
|
let t = new Event("change", { bubbles: o });
|
|
676
|
-
n.call(e,
|
|
679
|
+
n.call(e, _), e.dispatchEvent(t);
|
|
677
680
|
}
|
|
678
|
-
}, [
|
|
681
|
+
}, [_, f]), /* @__PURE__ */ M(b.select, {
|
|
679
682
|
"aria-hidden": !0,
|
|
680
|
-
required:
|
|
683
|
+
required: s,
|
|
681
684
|
tabIndex: -1,
|
|
682
|
-
name:
|
|
683
|
-
autoComplete:
|
|
684
|
-
disabled:
|
|
685
|
-
form:
|
|
685
|
+
name: l,
|
|
686
|
+
autoComplete: u,
|
|
687
|
+
disabled: c,
|
|
688
|
+
form: d,
|
|
686
689
|
onChange: (e) => {
|
|
687
|
-
|
|
690
|
+
x.current || o(e.target.value);
|
|
688
691
|
},
|
|
689
|
-
...
|
|
692
|
+
...t,
|
|
690
693
|
style: {
|
|
691
|
-
...
|
|
692
|
-
...
|
|
694
|
+
...w,
|
|
695
|
+
...t.style
|
|
693
696
|
},
|
|
694
|
-
ref:
|
|
695
|
-
defaultValue:
|
|
696
|
-
children: [$(
|
|
697
|
-
},
|
|
697
|
+
ref: g,
|
|
698
|
+
defaultValue: _,
|
|
699
|
+
children: [$(a) && !S ? /* @__PURE__ */ j("option", { value: "" }) : null, Array.from(p)]
|
|
700
|
+
}, m);
|
|
698
701
|
}, "SelectBubbleInput"));
|
|
699
702
|
function He(e) {
|
|
700
703
|
return typeof e == "function";
|
|
@@ -705,7 +708,7 @@ function $(e) {
|
|
|
705
708
|
}
|
|
706
709
|
P($, "shouldShowPlaceholder");
|
|
707
710
|
function Ue(e) {
|
|
708
|
-
let t =
|
|
711
|
+
let t = x(e), n = O.useRef(""), r = O.useRef(0), i = O.useCallback((e) => {
|
|
709
712
|
let i = n.current + e;
|
|
710
713
|
t(i);
|
|
711
714
|
function a(e) {
|
|
@@ -733,8 +736,7 @@ function Ge(e, t) {
|
|
|
733
736
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
734
737
|
}
|
|
735
738
|
P(Ge, "wrapArray");
|
|
736
|
-
|
|
737
|
-
//#region src/select.tsx
|
|
739
|
+
// src/select.tsx
|
|
738
740
|
function Ke({ ...e }) {
|
|
739
741
|
return /* @__PURE__ */ j(ie, {
|
|
740
742
|
"data-slot": "select",
|
|
@@ -826,5 +828,4 @@ function tt({ className: t, ...n }) {
|
|
|
826
828
|
children: /* @__PURE__ */ j(E, {})
|
|
827
829
|
});
|
|
828
830
|
}
|
|
829
|
-
//#endregion
|
|
830
831
|
export { Ze as a, $e as c, Qe as i, Ye as l, Xe as n, tt as o, qe as r, et as s, Ke as t, Je as u };
|