@commercetools/nimbus 0.0.0-canary-20250922155413 → 0.0.0-canary-20250924083846
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/chunks/Button-BtJHe9xY.cjs.js.map +1 -1
- package/dist/chunks/Button-CNBS3n5a.es.js.map +1 -1
- package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -1
- package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -1
- package/dist/chunks/{DatePicker-e_53Dtsm.cjs.js → DatePicker-BYhiEF2C.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-e_53Dtsm.cjs.js.map → DatePicker-BYhiEF2C.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-kvQcWFTq.es.js → DatePicker-C4UN4l9t.es.js} +2 -2
- package/dist/chunks/{DatePicker-kvQcWFTq.es.js.map → DatePicker-C4UN4l9t.es.js.map} +1 -1
- package/dist/chunks/{Dialog-K19USc7c.cjs.js → Dialog-32GmWneq.cjs.js} +2 -2
- package/dist/chunks/{Dialog-K19USc7c.cjs.js.map → Dialog-32GmWneq.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-BH-H4BEe.es.js → Dialog-CpUyTYgL.es.js} +4 -4
- package/dist/chunks/{Dialog-BH-H4BEe.es.js.map → Dialog-CpUyTYgL.es.js.map} +1 -1
- package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
- package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
- package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
- package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
- package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
- package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
- package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -1
- package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -1
- package/dist/chunks/{Header-zz3aj0c7.cjs.js → Header-C0mOQKWH.cjs.js} +2 -2
- package/dist/chunks/{Header-zz3aj0c7.cjs.js.map → Header-C0mOQKWH.cjs.js.map} +1 -1
- package/dist/chunks/{Header-Bi219Q1R.es.js → Header-CRiZqLJU.es.js} +3 -3
- package/dist/chunks/{Header-Bi219Q1R.es.js.map → Header-CRiZqLJU.es.js.map} +1 -1
- package/dist/chunks/Heading-BaW6t55l.cjs.js.map +1 -1
- package/dist/chunks/Heading-DEfy_f01.es.js.map +1 -1
- package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
- package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
- package/dist/chunks/Input-BiHwUBo4.es.js.map +1 -1
- package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -1
- package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
- package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
- package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
- package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
- package/dist/chunks/{ListBox-BHUS7cW2.cjs.js → ListBox-DW2g6DgQ.cjs.js} +2 -2
- package/dist/chunks/{ListBox-BHUS7cW2.cjs.js.map → ListBox-DW2g6DgQ.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-DKAR_w69.es.js → ListBox-Vxd1SXUB.es.js} +4 -4
- package/dist/chunks/{ListBox-DKAR_w69.es.js.map → ListBox-Vxd1SXUB.es.js.map} +1 -1
- package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -1
- package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -1
- package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js.map +1 -1
- package/dist/chunks/ProgressBar-DjaUQI7N.es.js.map +1 -1
- package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
- package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
- package/dist/chunks/{SelectionManager-BgUVI3vz.es.js → SelectionManager-BCXBpjO4.es.js} +2 -2
- package/dist/chunks/{SelectionManager-BgUVI3vz.es.js.map → SelectionManager-BCXBpjO4.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-CmUHDDN6.cjs.js → SelectionManager-CZSEfn4s.cjs.js} +2 -2
- package/dist/chunks/{SelectionManager-CmUHDDN6.cjs.js.map → SelectionManager-CZSEfn4s.cjs.js.map} +1 -1
- package/dist/chunks/Separator-DQ53Zxpp.cjs.js +18 -0
- package/dist/chunks/Separator-DQ53Zxpp.cjs.js.map +1 -0
- package/dist/chunks/{Separator-CuZ-VIh8.es.js → Separator-Qp4OCFiC.es.js} +275 -277
- package/dist/chunks/Separator-Qp4OCFiC.es.js.map +1 -0
- package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
- package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
- package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -1
- package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -1
- package/dist/chunks/ToggleButton-C3JL0pgD.es.js.map +1 -1
- package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js.map +1 -1
- package/dist/chunks/accordion-CSSdv9jZ.es.js.map +1 -1
- package/dist/chunks/accordion-xYvGyXy-.cjs.js.map +1 -1
- package/dist/chunks/checkbox-Bv0NXUyX.cjs.js.map +1 -1
- package/dist/chunks/checkbox-CdSHDZgM.es.js.map +1 -1
- package/dist/chunks/{combobox-Dmn2vxIz.es.js → combobox-C1LdL2D0.es.js} +228 -229
- package/dist/chunks/combobox-C1LdL2D0.es.js.map +1 -0
- package/dist/chunks/{combobox-C9pPDZQn.cjs.js → combobox-uCNxpE7-.cjs.js} +2 -2
- package/dist/chunks/combobox-uCNxpE7-.cjs.js.map +1 -0
- package/dist/chunks/{data-table-DIsDZ5JZ.cjs.js → data-table-BBgNLX1F.cjs.js} +2 -2
- package/dist/chunks/{data-table-DIsDZ5JZ.cjs.js.map → data-table-BBgNLX1F.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-CBr4TLyH.es.js → data-table-D3e1Jwo7.es.js} +4 -4
- package/dist/chunks/{data-table-CBr4TLyH.es.js.map → data-table-D3e1Jwo7.es.js.map} +1 -1
- package/dist/chunks/{date-picker-_7Gh_ROw.cjs.js → date-picker-Bb3NXrgg.cjs.js} +2 -2
- package/dist/chunks/{date-picker-_7Gh_ROw.cjs.js.map → date-picker-Bb3NXrgg.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-BVrTKhZ_.es.js → date-picker-Bic1MCyC.es.js} +3 -3
- package/dist/chunks/{date-picker-BVrTKhZ_.es.js.map → date-picker-Bic1MCyC.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-D7pPpSEj.cjs.js → date-range-picker-C8Qvuf85.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-D7pPpSEj.cjs.js.map → date-range-picker-C8Qvuf85.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-D55giMLZ.es.js → date-range-picker-D4jLAymc.es.js} +3 -3
- package/dist/chunks/{date-range-picker-D55giMLZ.es.js.map → date-range-picker-D4jLAymc.es.js.map} +1 -1
- package/dist/chunks/{form-field-DHvafAwV.cjs.js → form-field-D2DlhLF_.cjs.js} +2 -2
- package/dist/chunks/{form-field-DHvafAwV.cjs.js.map → form-field-D2DlhLF_.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DIUXRuTp.es.js → form-field-DY3B_1tq.es.js} +2 -2
- package/dist/chunks/{form-field-DIUXRuTp.es.js.map → form-field-DY3B_1tq.es.js.map} +1 -1
- package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
- package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
- package/dist/chunks/{menu-cYj3HcOe.cjs.js → menu-Bfk7xGk8.cjs.js} +2 -2
- package/dist/chunks/{menu-cYj3HcOe.cjs.js.map → menu-Bfk7xGk8.cjs.js.map} +1 -1
- package/dist/chunks/{menu-D5UbPSbm.es.js → menu-Dfwew0Go.es.js} +4 -4
- package/dist/chunks/{menu-D5UbPSbm.es.js.map → menu-Dfwew0Go.es.js.map} +1 -1
- package/dist/chunks/{money-input-CtG9FJDJ.es.js → money-input-B2X3PtKX.es.js} +2 -2
- package/dist/chunks/{money-input-CtG9FJDJ.es.js.map → money-input-B2X3PtKX.es.js.map} +1 -1
- package/dist/chunks/{money-input-DXpiO23i.cjs.js → money-input-BFhtaiLG.cjs.js} +2 -2
- package/dist/chunks/{money-input-DXpiO23i.cjs.js.map → money-input-BFhtaiLG.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BM1xkmu9.cjs.js → pagination-Dis-nnBy.cjs.js} +2 -2
- package/dist/chunks/{pagination-BM1xkmu9.cjs.js.map → pagination-Dis-nnBy.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-C5bOKHnF.es.js → pagination-ZXOMcPAB.es.js} +2 -2
- package/dist/chunks/{pagination-C5bOKHnF.es.js.map → pagination-ZXOMcPAB.es.js.map} +1 -1
- package/dist/chunks/radio-input-CBsoUt1S.es.js.map +1 -1
- package/dist/chunks/radio-input-D7oHngVQ.cjs.js.map +1 -1
- package/dist/chunks/{rich-text-input-CxWC-yrf.cjs.js → rich-text-input-3MgAtZuL.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-CxWC-yrf.cjs.js.map → rich-text-input-3MgAtZuL.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-YYPcexom.es.js → rich-text-input-C8bdPxGb.es.js} +3 -3
- package/dist/chunks/{rich-text-input-YYPcexom.es.js.map → rich-text-input-C8bdPxGb.es.js.map} +1 -1
- package/dist/chunks/{select-DA6mGi-n.cjs.js → select-C1SC1XAp.cjs.js} +2 -2
- package/dist/chunks/{select-DA6mGi-n.cjs.js.map → select-C1SC1XAp.cjs.js.map} +1 -1
- package/dist/chunks/{select-Bj9NNlBG.es.js → select-DpHmAHrs.es.js} +7 -7
- package/dist/chunks/{select-Bj9NNlBG.es.js.map → select-DpHmAHrs.es.js.map} +1 -1
- package/dist/chunks/{separator-CoMx0Mmv.cjs.js → separator-BGepaXda.cjs.js} +2 -2
- package/dist/chunks/{separator-CoMx0Mmv.cjs.js.map → separator-BGepaXda.cjs.js.map} +1 -1
- package/dist/chunks/{separator-BBcK9ROS.es.js → separator-BSLmXG3h.es.js} +2 -2
- package/dist/chunks/{separator-BBcK9ROS.es.js.map → separator-BSLmXG3h.es.js.map} +1 -1
- package/dist/chunks/{split-button-C5RRpvG-.es.js → split-button-BxfsI-af.es.js} +2 -2
- package/dist/chunks/{split-button-C5RRpvG-.es.js.map → split-button-BxfsI-af.es.js.map} +1 -1
- package/dist/chunks/{split-button-DS-OCnNN.cjs.js → split-button-D8Zq-S4o.cjs.js} +2 -2
- package/dist/chunks/{split-button-DS-OCnNN.cjs.js.map → split-button-D8Zq-S4o.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-BfVRqsqw.cjs.js → tag-group-3ESWulAU.cjs.js} +2 -2
- package/dist/chunks/{tag-group-BfVRqsqw.cjs.js.map → tag-group-3ESWulAU.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-Bs6sb_ky.es.js → tag-group-CnStbH_k.es.js} +5 -5
- package/dist/chunks/{tag-group-Bs6sb_ky.es.js.map → tag-group-CnStbH_k.es.js.map} +1 -1
- package/dist/chunks/toolbar-BZFjOgau.es.js.map +1 -1
- package/dist/chunks/toolbar-CRak3D0J.cjs.js.map +1 -1
- package/dist/chunks/tooltip-B1YdruCE.es.js.map +1 -1
- package/dist/chunks/tooltip-g8-hEdZp.cjs.js.map +1 -1
- package/dist/chunks/{useSingleSelectListState-C-E1yca1.cjs.js → useSingleSelectListState-BjYKH0pH.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-C-E1yca1.cjs.js.map → useSingleSelectListState-BjYKH0pH.cjs.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CdPCvWTv.es.js → useSingleSelectListState-BsnptkyP.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CdPCvWTv.es.js.map → useSingleSelectListState-BsnptkyP.es.js.map} +1 -1
- package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
- package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +13 -13
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +14 -14
- package/package.json +17 -17
- package/dist/chunks/Separator-CTkcgvBE.cjs.js +0 -18
- package/dist/chunks/Separator-CTkcgvBE.cjs.js.map +0 -1
- package/dist/chunks/Separator-CuZ-VIh8.es.js.map +0 -1
- package/dist/chunks/combobox-C9pPDZQn.cjs.js.map +0 -1
- package/dist/chunks/combobox-Dmn2vxIz.es.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSlotRecipeContext as Gn, useSlotRecipe as
|
|
1
|
+
import { jsx as a, jsxs as re, Fragment as Ve } from "react/jsx-runtime";
|
|
2
|
+
import { createSlotRecipeContext as Gn, useSlotRecipe as Nn } from "@chakra-ui/react/styled-system";
|
|
3
3
|
import { l as je } from "./index-CRta5Y1_.es.js";
|
|
4
|
-
import Y, { useEffect as ue, useRef as T, useMemo as ae, useCallback as O, useState as X, createContext as $e, forwardRef as
|
|
4
|
+
import Y, { useEffect as ue, useRef as T, useMemo as ae, useCallback as O, useState as X, createContext as $e, forwardRef as zn, useContext as Ue } from "react";
|
|
5
5
|
import { $ as qe } from "./Button-CNBS3n5a.es.js";
|
|
6
6
|
import { f as We, c as Se, e as De, d as Le, $ as fe, b as He, a as Je } from "./utils-BkdW_cdL.es.js";
|
|
7
7
|
import { $ as Ze } from "./FieldError-CXcEMuBf.es.js";
|
|
@@ -9,16 +9,16 @@ import { $ as Xe } from "./Form-CXcEMuBf.es.js";
|
|
|
9
9
|
import { a as Pe } from "./Group-Cfixd-fh.es.js";
|
|
10
10
|
import { a as xe, $ as Ye } from "./Input-BiHwUBo4.es.js";
|
|
11
11
|
import { $ as Ie } from "./Label-B2YyCdLl.es.js";
|
|
12
|
-
import { g as jn, h as Un, i as qn, a as Qe, b as Wn, c as Hn, e as Jn, d as Zn } from "./ListBox-
|
|
13
|
-
import { f as Xn, m as Yn, b as Qn, c as _n, $ as _e, g as eo, e as eu, a as ou } from "./Dialog-
|
|
12
|
+
import { g as jn, h as Un, i as qn, a as Qe, b as Wn, c as Hn, e as Jn, d as Zn } from "./ListBox-Vxd1SXUB.es.js";
|
|
13
|
+
import { f as Xn, m as Yn, b as Qn, c as _n, $ as _e, g as eo, e as eu, a as ou } from "./Dialog-CpUyTYgL.es.js";
|
|
14
14
|
import { $ as we } from "./Text-DOcU1ycg.es.js";
|
|
15
|
-
import { f as nu, g as uu } from "./Separator-
|
|
15
|
+
import { f as nu, g as uu } from "./Separator-Qp4OCFiC.es.js";
|
|
16
16
|
import { $ as oo } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
17
17
|
import { $ as tu, a as lu } from "./OverlayArrow-sJzRZNbO.es.js";
|
|
18
18
|
import { $ as no } from "./useFilter-DOfNzeZ9.es.js";
|
|
19
19
|
import { b as iu, $ as cu } from "./useFormValidation-4hZ1_a6w.es.js";
|
|
20
|
-
import { $ as ru, a as au, b as uo, r as Be, s as Me, t as su, u as du, v as Ge, w as pu, x as $u, q as to, h as bu } from "./SelectionManager-
|
|
21
|
-
import { $ as fu } from "./useSingleSelectListState-
|
|
20
|
+
import { $ as ru, a as au, b as uo, r as Be, s as Me, t as su, u as du, v as Ge, w as pu, x as $u, q as to, h as bu } from "./SelectionManager-BCXBpjO4.es.js";
|
|
21
|
+
import { $ as fu } from "./useSingleSelectListState-BsnptkyP.es.js";
|
|
22
22
|
import { $ as lo } from "./useControlledState-u436Wbp1.es.js";
|
|
23
23
|
import { $ as ve } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
24
24
|
import { $ as pe, e as mu, b as xu, d as be } from "./mergeProps-B_9syxhT.es.js";
|
|
@@ -27,7 +27,7 @@ import { $ as vu } from "./openLink-Ctl0AdAy.es.js";
|
|
|
27
27
|
import { a as Te } from "./useLabel-BBmkkrPP.es.js";
|
|
28
28
|
import { $ as yu } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
29
29
|
import { g as ye, f as Au, d as Eu } from "./platform-Z5fvtFmM.es.js";
|
|
30
|
-
import { a as Bu, c as gu } from "./Header-
|
|
30
|
+
import { a as Bu, c as gu } from "./Header-CRiZqLJU.es.js";
|
|
31
31
|
import { $ as co } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
32
32
|
import { $ as ro } from "./useTextField-BnL6tOdd.es.js";
|
|
33
33
|
import { e as ke } from "./extractStyleProps-DkXeCUuq.es.js";
|
|
@@ -41,7 +41,7 @@ import { $ as Su } from "./useEvent-YHhqZvpU.es.js";
|
|
|
41
41
|
import { b as Du } from "./useFocusVisible-CWDaG0ze.es.js";
|
|
42
42
|
import { a as Lu } from "./TextArea-BmpgvS0R.es.js";
|
|
43
43
|
import { $ as Pu } from "./Hidden-j3Lbt7xL.es.js";
|
|
44
|
-
import { T as Ae } from "./tag-group-
|
|
44
|
+
import { T as Ae } from "./tag-group-CnStbH_k.es.js";
|
|
45
45
|
import { $ as Iu } from "./usePress-DHhWHfMz.es.js";
|
|
46
46
|
import { $ as wu } from "./useFocusable-CrsD8ZcF.es.js";
|
|
47
47
|
const ku = /* @__PURE__ */ Y.forwardRef(({ children: e, ...o }, n) => {
|
|
@@ -599,8 +599,8 @@ Go = {
|
|
|
599
599
|
listboxLabel: "Предложения",
|
|
600
600
|
selectedAnnouncement: (e) => `${e.optionText}, выбрано`
|
|
601
601
|
};
|
|
602
|
-
var
|
|
603
|
-
|
|
602
|
+
var No = {};
|
|
603
|
+
No = {
|
|
604
604
|
buttonLabel: "Zobraziť návrhy",
|
|
605
605
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
606
606
|
one: () => `${o.number(e.optionCount)} možnosť`,
|
|
@@ -619,8 +619,8 @@ zo = {
|
|
|
619
619
|
listboxLabel: "Návrhy",
|
|
620
620
|
selectedAnnouncement: (e) => `${e.optionText}, vybraté`
|
|
621
621
|
};
|
|
622
|
-
var
|
|
623
|
-
|
|
622
|
+
var zo = {};
|
|
623
|
+
zo = {
|
|
624
624
|
buttonLabel: "Prikaži predloge",
|
|
625
625
|
countAnnouncement: (e, o) => `Na voljo je ${o.plural(e.optionCount, {
|
|
626
626
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -787,8 +787,8 @@ Zo = {
|
|
|
787
787
|
"pt-PT": Vo,
|
|
788
788
|
"ro-RO": Mo,
|
|
789
789
|
"ru-RU": Go,
|
|
790
|
-
"sk-SK":
|
|
791
|
-
"sl-SI":
|
|
790
|
+
"sk-SK": No,
|
|
791
|
+
"sl-SI": zo,
|
|
792
792
|
"sr-SP": jo,
|
|
793
793
|
"sv-SE": Uo,
|
|
794
794
|
"tr-TR": qo,
|
|
@@ -800,11 +800,11 @@ function Ku(e) {
|
|
|
800
800
|
return e && e.__esModule ? e.default : e;
|
|
801
801
|
}
|
|
802
802
|
function Ru(e, o) {
|
|
803
|
-
let { buttonRef: n, popoverRef: t, inputRef: u, listBoxRef: c, keyboardDelegate: $, layoutDelegate: r, shouldFocusWrap: l, isReadOnly: x, isDisabled:
|
|
803
|
+
let { buttonRef: n, popoverRef: t, inputRef: u, listBoxRef: c, keyboardDelegate: $, layoutDelegate: r, shouldFocusWrap: l, isReadOnly: x, isDisabled: y } = e, C = T(null);
|
|
804
804
|
n = n ?? C;
|
|
805
805
|
let B = co(Ku(Zo), "@react-aria/combobox"), { menuTriggerProps: m, menuProps: g } = Xn({
|
|
806
806
|
type: "listbox",
|
|
807
|
-
isDisabled:
|
|
807
|
+
isDisabled: y || x
|
|
808
808
|
}, o, n);
|
|
809
809
|
jn.set(o, {
|
|
810
810
|
id: g.id
|
|
@@ -829,7 +829,7 @@ function Ru(e, o) {
|
|
|
829
829
|
ref: u,
|
|
830
830
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
831
831
|
isVirtualized: !0
|
|
832
|
-
}),
|
|
832
|
+
}), k = vu(), G = (p) => {
|
|
833
833
|
if (!p.nativeEvent.isComposing)
|
|
834
834
|
switch (p.key) {
|
|
835
835
|
case "Enter":
|
|
@@ -838,7 +838,7 @@ function Ru(e, o) {
|
|
|
838
838
|
let E = c.current.querySelector(`[data-key="${CSS.escape(o.selectionManager.focusedKey.toString())}"]`);
|
|
839
839
|
if (p.key === "Enter" && E instanceof HTMLAnchorElement) {
|
|
840
840
|
let d = o.collection.getItem(o.selectionManager.focusedKey);
|
|
841
|
-
d &&
|
|
841
|
+
d && k.open(E, p, d.props.href, d.props.routerOptions);
|
|
842
842
|
}
|
|
843
843
|
o.close();
|
|
844
844
|
} else o.commit();
|
|
@@ -857,17 +857,17 @@ function Ru(e, o) {
|
|
|
857
857
|
o.selectionManager.setFocusedKey(null);
|
|
858
858
|
break;
|
|
859
859
|
}
|
|
860
|
-
},
|
|
860
|
+
}, L = (p) => {
|
|
861
861
|
var E;
|
|
862
862
|
let d = n?.current && n.current === p.relatedTarget, J = (E = t.current) === null || E === void 0 ? void 0 : E.contains(p.relatedTarget);
|
|
863
863
|
d || J || (e.onBlur && e.onBlur(p), o.setFocused(!1));
|
|
864
864
|
}, Q = (p) => {
|
|
865
865
|
o.isFocused || (e.onFocus && e.onFocus(p), o.setFocused(!0));
|
|
866
|
-
}, { isInvalid:
|
|
866
|
+
}, { isInvalid: N, validationErrors: q, validationDetails: z } = o.displayValidation, { labelProps: w, inputProps: oe, descriptionProps: V, errorMessageProps: j } = ro({
|
|
867
867
|
...e,
|
|
868
868
|
onChange: o.setInputValue,
|
|
869
869
|
onKeyDown: x ? e.onKeyDown : mu(o.isOpen && S.onKeyDown, G, e.onKeyDown),
|
|
870
|
-
onBlur:
|
|
870
|
+
onBlur: L,
|
|
871
871
|
value: o.inputValue,
|
|
872
872
|
defaultValue: o.defaultInputValue,
|
|
873
873
|
onFocus: Q,
|
|
@@ -888,12 +888,12 @@ function Ru(e, o) {
|
|
|
888
888
|
id: m.id,
|
|
889
889
|
"aria-label": B.format("buttonLabel"),
|
|
890
890
|
"aria-labelledby": e["aria-labelledby"] || w.id
|
|
891
|
-
}),
|
|
891
|
+
}), s = Te({
|
|
892
892
|
id: g.id,
|
|
893
893
|
"aria-label": B.format("listboxLabel"),
|
|
894
894
|
"aria-labelledby": e["aria-labelledby"] || w.id
|
|
895
895
|
}), v = T(0), M = (p) => {
|
|
896
|
-
if (
|
|
896
|
+
if (y || x) return;
|
|
897
897
|
if (p.timeStamp - v.current < 500) {
|
|
898
898
|
var E;
|
|
899
899
|
p.preventDefault(), (E = u.current) === null || E === void 0 || E.focus();
|
|
@@ -904,13 +904,13 @@ function Ru(e, o) {
|
|
|
904
904
|
var le;
|
|
905
905
|
p.preventDefault(), (le = u.current) === null || le === void 0 || le.focus(), o.toggle(null, "manual"), v.current = p.timeStamp;
|
|
906
906
|
}
|
|
907
|
-
},
|
|
908
|
-
var
|
|
909
|
-
let R = (
|
|
907
|
+
}, P = o.selectionManager.focusedKey != null && o.isOpen ? o.collection.getItem(o.selectionManager.focusedKey) : void 0;
|
|
908
|
+
var D;
|
|
909
|
+
let R = (D = P?.parentKey) !== null && D !== void 0 ? D : null;
|
|
910
910
|
var H;
|
|
911
911
|
let _ = (H = o.selectionManager.focusedKey) !== null && H !== void 0 ? H : null, ie = T(R), U = T(_);
|
|
912
912
|
ue(() => {
|
|
913
|
-
if (ye() &&
|
|
913
|
+
if (ye() && P != null && _ != null && _ !== U.current) {
|
|
914
914
|
let E = o.selectionManager.isSelected(_), d = R != null ? o.collection.getItem(R) : null, J = d?.["aria-label"] || (typeof d?.rendered == "string" ? d.rendered : "") || "";
|
|
915
915
|
var p;
|
|
916
916
|
let Z = B.format("focusAnnouncement", {
|
|
@@ -919,7 +919,7 @@ function Ru(e, o) {
|
|
|
919
919
|
groupCount: d ? [
|
|
920
920
|
...uo(d, o.collection)
|
|
921
921
|
].length : 0,
|
|
922
|
-
optionText:
|
|
922
|
+
optionText: P["aria-label"] || P.textValue || "",
|
|
923
923
|
isSelected: E
|
|
924
924
|
});
|
|
925
925
|
ve(Z);
|
|
@@ -956,9 +956,9 @@ function Ru(e, o) {
|
|
|
956
956
|
u,
|
|
957
957
|
t
|
|
958
958
|
]), yu(() => {
|
|
959
|
-
!
|
|
959
|
+
!P && u.current && ge(io(u.current)) === u.current && Be(u.current, null);
|
|
960
960
|
}, [
|
|
961
|
-
|
|
961
|
+
P
|
|
962
962
|
]), {
|
|
963
963
|
labelProps: w,
|
|
964
964
|
buttonProps: {
|
|
@@ -968,7 +968,7 @@ function Ru(e, o) {
|
|
|
968
968
|
preventFocusOnPress: !0,
|
|
969
969
|
onPress: W,
|
|
970
970
|
onPressStart: F,
|
|
971
|
-
isDisabled:
|
|
971
|
+
isDisabled: y || x
|
|
972
972
|
},
|
|
973
973
|
inputProps: pe(oe, {
|
|
974
974
|
role: "combobox",
|
|
@@ -976,14 +976,14 @@ function Ru(e, o) {
|
|
|
976
976
|
"aria-controls": o.isOpen ? g.id : void 0,
|
|
977
977
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
978
978
|
"aria-autocomplete": "list",
|
|
979
|
-
"aria-activedescendant":
|
|
979
|
+
"aria-activedescendant": P ? Un(o, P.key) : void 0,
|
|
980
980
|
onTouchEnd: M,
|
|
981
981
|
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
982
982
|
autoCorrect: "off",
|
|
983
983
|
// This disable's the macOS Safari spell check auto corrections.
|
|
984
984
|
spellCheck: "false"
|
|
985
985
|
}),
|
|
986
|
-
listBoxProps: pe(g,
|
|
986
|
+
listBoxProps: pe(g, s, {
|
|
987
987
|
autoFocus: o.focusStrategy || !0,
|
|
988
988
|
shouldUseVirtualFocus: !0,
|
|
989
989
|
shouldSelectOnPressUp: !0,
|
|
@@ -992,9 +992,9 @@ function Ru(e, o) {
|
|
|
992
992
|
}),
|
|
993
993
|
descriptionProps: V,
|
|
994
994
|
errorMessageProps: j,
|
|
995
|
-
isInvalid:
|
|
995
|
+
isInvalid: N,
|
|
996
996
|
validationErrors: q,
|
|
997
|
-
validationDetails:
|
|
997
|
+
validationDetails: z
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
1000
|
var Xo = {};
|
|
@@ -1174,20 +1174,20 @@ function Ou(e) {
|
|
|
1174
1174
|
return e && e.__esModule ? e.default : e;
|
|
1175
1175
|
}
|
|
1176
1176
|
function Vu(e, o) {
|
|
1177
|
-
let { inputRef: n, collectionRef: t, filter: u, disableAutoFocusFirst: c = !1, disableVirtualFocus: $ = !1 } = e, r = xu(), l = T(void 0), x = T(!1),
|
|
1177
|
+
let { inputRef: n, collectionRef: t, filter: u, disableAutoFocusFirst: c = !1, disableVirtualFocus: $ = !1 } = e, r = xu(), l = T(void 0), x = T(!1), y = T(null), C = T(null), m = !(Du() === "virtual" && (Au() || Eu())) && !$;
|
|
1178
1178
|
ue(() => () => clearTimeout(l.current), []);
|
|
1179
1179
|
let g = be((i) => {
|
|
1180
1180
|
!i.isTrusted && m && n.current && ge(io(n.current)) !== n.current && n.current.focus();
|
|
1181
|
-
let
|
|
1182
|
-
i.isTrusted || !
|
|
1183
|
-
o.setFocusedNodeId(
|
|
1184
|
-
}, 500)) : (
|
|
1181
|
+
let s = i.target;
|
|
1182
|
+
i.isTrusted || !s || y.current === s.id || (clearTimeout(l.current), s !== t.current ? x.current ? (y.current = s.id, l.current = setTimeout(() => {
|
|
1183
|
+
o.setFocusedNodeId(s.id);
|
|
1184
|
+
}, 500)) : (y.current = s.id, o.setFocusedNodeId(s.id)) : y.current && !document.getElementById(y.current) && (y.current = null, o.setFocusedNodeId(null)), x.current = !1);
|
|
1185
1185
|
}), f = O((i) => {
|
|
1186
|
-
var
|
|
1186
|
+
var s;
|
|
1187
1187
|
if (i != null) {
|
|
1188
1188
|
var v;
|
|
1189
1189
|
(v = C.current) === null || v === void 0 || v.removeEventListener("focusin", g), C.current = i, i.addEventListener("focusin", g);
|
|
1190
|
-
} else (
|
|
1190
|
+
} else (s = C.current) === null || s === void 0 || s.removeEventListener("focusin", g);
|
|
1191
1191
|
}, [
|
|
1192
1192
|
g
|
|
1193
1193
|
]), h = bo(ae(() => We(t, f), [
|
|
@@ -1203,8 +1203,8 @@ function Vu(e, o) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}));
|
|
1205
1205
|
}), S = be((i) => {
|
|
1206
|
-
var
|
|
1207
|
-
su(ge()),
|
|
1206
|
+
var s;
|
|
1207
|
+
su(ge()), y.current = null, o.setFocusedNodeId(null);
|
|
1208
1208
|
let v = new CustomEvent(du, {
|
|
1209
1209
|
cancelable: !0,
|
|
1210
1210
|
bubbles: !0,
|
|
@@ -1212,17 +1212,17 @@ function Vu(e, o) {
|
|
|
1212
1212
|
clearFocusKey: i
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
|
-
clearTimeout(l.current), x.current = !1, (
|
|
1216
|
-
}),
|
|
1215
|
+
clearTimeout(l.current), x.current = !1, (s = t.current) === null || s === void 0 || s.dispatchEvent(v);
|
|
1216
|
+
}), k = T("");
|
|
1217
1217
|
Su(n, "input", (i) => {
|
|
1218
|
-
let { inputType:
|
|
1219
|
-
|
|
1218
|
+
let { inputType: s } = i;
|
|
1219
|
+
k.current = s;
|
|
1220
1220
|
});
|
|
1221
1221
|
let G = (i) => {
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1224
|
-
if (
|
|
1225
|
-
let
|
|
1222
|
+
k.current === "insertText" && !c ? b() : k.current && (k.current.includes("insert") || k.current.includes("delete") || k.current.includes("history")) && (S(!0), $u(document) === n.current && Be(n.current, null)), o.setInputValue(i);
|
|
1223
|
+
}, L = T(null), Q = (i) => {
|
|
1224
|
+
if (L.current = i.target, i.nativeEvent.isComposing) return;
|
|
1225
|
+
let s = y.current;
|
|
1226
1226
|
switch (i.key) {
|
|
1227
1227
|
case "a":
|
|
1228
1228
|
if (pu(i)) return;
|
|
@@ -1242,24 +1242,24 @@ function Vu(e, o) {
|
|
|
1242
1242
|
case "ArrowUp":
|
|
1243
1243
|
case "ArrowDown": {
|
|
1244
1244
|
var v;
|
|
1245
|
-
if ((i.key === "Home" || i.key === "End") &&
|
|
1245
|
+
if ((i.key === "Home" || i.key === "End") && s == null && i.shiftKey) return;
|
|
1246
1246
|
i.preventDefault();
|
|
1247
|
-
let
|
|
1247
|
+
let D = new CustomEvent(Me, {
|
|
1248
1248
|
cancelable: !0,
|
|
1249
1249
|
bubbles: !0
|
|
1250
1250
|
});
|
|
1251
|
-
(v = t.current) === null || v === void 0 || v.dispatchEvent(
|
|
1251
|
+
(v = t.current) === null || v === void 0 || v.dispatchEvent(D);
|
|
1252
1252
|
break;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
i.isPropagationStopped() || i.stopPropagation();
|
|
1256
1256
|
let M = !0;
|
|
1257
1257
|
if (t.current !== null) {
|
|
1258
|
-
var
|
|
1259
|
-
if (
|
|
1258
|
+
var P;
|
|
1259
|
+
if (s == null) M = ((P = t.current) === null || P === void 0 ? void 0 : P.dispatchEvent(new KeyboardEvent(i.nativeEvent.type, i.nativeEvent))) || !1;
|
|
1260
1260
|
else {
|
|
1261
|
-
let
|
|
1262
|
-
M =
|
|
1261
|
+
let D = document.getElementById(s);
|
|
1262
|
+
D && (M = D?.dispatchEvent(new KeyboardEvent(i.nativeEvent.type, i.nativeEvent)) || !1);
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
if (M) switch (i.key) {
|
|
@@ -1268,48 +1268,47 @@ function Vu(e, o) {
|
|
|
1268
1268
|
S();
|
|
1269
1269
|
break;
|
|
1270
1270
|
case "Enter":
|
|
1271
|
-
if (
|
|
1272
|
-
let
|
|
1273
|
-
|
|
1271
|
+
if (s != null) {
|
|
1272
|
+
let D = document.getElementById(s);
|
|
1273
|
+
D?.click();
|
|
1274
1274
|
}
|
|
1275
1275
|
break;
|
|
1276
1276
|
}
|
|
1277
1277
|
else
|
|
1278
1278
|
i.preventDefault();
|
|
1279
|
-
},
|
|
1280
|
-
if (i.target ===
|
|
1281
|
-
var
|
|
1279
|
+
}, N = be((i) => {
|
|
1280
|
+
if (i.target === L.current) {
|
|
1281
|
+
var s;
|
|
1282
1282
|
i.stopImmediatePropagation();
|
|
1283
|
-
let v =
|
|
1284
|
-
if (v == null) (
|
|
1283
|
+
let v = y.current;
|
|
1284
|
+
if (v == null) (s = t.current) === null || s === void 0 || s.dispatchEvent(new KeyboardEvent(i.type, i));
|
|
1285
1285
|
else {
|
|
1286
1286
|
let M = document.getElementById(v);
|
|
1287
1287
|
M?.dispatchEvent(new KeyboardEvent(i.type, i));
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
});
|
|
1291
|
-
ue(() => (document.addEventListener("keyup",
|
|
1292
|
-
document.removeEventListener("keyup",
|
|
1291
|
+
ue(() => (document.addEventListener("keyup", N, !0), () => {
|
|
1292
|
+
document.removeEventListener("keyup", N, !0);
|
|
1293
1293
|
}), [
|
|
1294
|
-
|
|
1294
|
+
N
|
|
1295
1295
|
]);
|
|
1296
|
-
let q = co(Ou(Pn), "@react-aria/autocomplete"),
|
|
1296
|
+
let q = co(Ou(Pn), "@react-aria/autocomplete"), z = Te({
|
|
1297
1297
|
id: r,
|
|
1298
1298
|
"aria-label": q.format("collectionLabel")
|
|
1299
|
-
}), w = O((i,
|
|
1299
|
+
}), w = O((i, s) => u ? u(i, o.inputValue, s) : !0, [
|
|
1300
1300
|
o.inputValue,
|
|
1301
1301
|
u
|
|
1302
1302
|
]), oe = (i) => {
|
|
1303
1303
|
if (!i.isTrusted) return;
|
|
1304
|
-
let
|
|
1305
|
-
|
|
1304
|
+
let s = y.current ? document.getElementById(y.current) : null;
|
|
1305
|
+
s && Ge(s, i.relatedTarget);
|
|
1306
1306
|
}, V = (i) => {
|
|
1307
1307
|
if (!i.isTrusted) return;
|
|
1308
|
-
|
|
1309
|
-
if (a) {
|
|
1308
|
+
if (y.current ? document.getElementById(y.current) : null) {
|
|
1310
1309
|
let v = i.target;
|
|
1311
1310
|
queueMicrotask(() => {
|
|
1312
|
-
Ge(v,
|
|
1311
|
+
Ge(v, t.current), Be(t.current, v);
|
|
1313
1312
|
});
|
|
1314
1313
|
}
|
|
1315
1314
|
}, j = {
|
|
@@ -1337,7 +1336,7 @@ function Vu(e, o) {
|
|
|
1337
1336
|
autoComplete: "off"
|
|
1338
1337
|
}), {
|
|
1339
1338
|
inputProps: j,
|
|
1340
|
-
collectionProps: pe(
|
|
1339
|
+
collectionProps: pe(z, {
|
|
1341
1340
|
shouldUseVirtualFocus: m,
|
|
1342
1341
|
disallowTypeAhead: !0
|
|
1343
1342
|
}),
|
|
@@ -1356,11 +1355,11 @@ function Mu(e) {
|
|
|
1356
1355
|
setFocusedNodeId: $
|
|
1357
1356
|
};
|
|
1358
1357
|
}
|
|
1359
|
-
const Gu = /* @__PURE__ */ $e(null),
|
|
1360
|
-
function
|
|
1358
|
+
const Gu = /* @__PURE__ */ $e(null), Nu = /* @__PURE__ */ $e(null);
|
|
1359
|
+
function zu(e) {
|
|
1361
1360
|
let o = Se(Gu, e.slot);
|
|
1362
1361
|
e = pe(o, e);
|
|
1363
|
-
let { filter: n, disableAutoFocusFirst: t } = e, u = Mu(e), c = T(null), $ = T(null), { inputProps: r, collectionProps: l, collectionRef: x, filter:
|
|
1362
|
+
let { filter: n, disableAutoFocusFirst: t } = e, u = Mu(e), c = T(null), $ = T(null), { inputProps: r, collectionProps: l, collectionRef: x, filter: y } = Vu({
|
|
1364
1363
|
...De(e),
|
|
1365
1364
|
filter: n,
|
|
1366
1365
|
disableAutoFocusFirst: t,
|
|
@@ -1370,7 +1369,7 @@ function Nu(e) {
|
|
|
1370
1369
|
return /* @__PURE__ */ Y.createElement(Le, {
|
|
1371
1370
|
values: [
|
|
1372
1371
|
[
|
|
1373
|
-
|
|
1372
|
+
Nu,
|
|
1374
1373
|
u
|
|
1375
1374
|
],
|
|
1376
1375
|
[
|
|
@@ -1384,7 +1383,7 @@ function Nu(e) {
|
|
|
1384
1383
|
bu,
|
|
1385
1384
|
{
|
|
1386
1385
|
...l,
|
|
1387
|
-
filter:
|
|
1386
|
+
filter: y,
|
|
1388
1387
|
ref: x
|
|
1389
1388
|
}
|
|
1390
1389
|
]
|
|
@@ -1393,117 +1392,117 @@ function Nu(e) {
|
|
|
1393
1392
|
}
|
|
1394
1393
|
function ju(e) {
|
|
1395
1394
|
var o;
|
|
1396
|
-
let { defaultFilter: n, menuTrigger: t = "input", allowsEmptyCollection: u = !1, allowsCustomValue: c, shouldCloseOnBlur: $ = !0 } = e, [r, l] = X(!1), [x,
|
|
1397
|
-
e.onSelectionChange && e.onSelectionChange(
|
|
1395
|
+
let { defaultFilter: n, menuTrigger: t = "input", allowsEmptyCollection: u = !1, allowsCustomValue: c, shouldCloseOnBlur: $ = !0 } = e, [r, l] = X(!1), [x, y] = X(!1), [C, B] = X(null), m = (A) => {
|
|
1396
|
+
e.onSelectionChange && e.onSelectionChange(A), A === b && (H(), P());
|
|
1398
1397
|
};
|
|
1399
1398
|
var g;
|
|
1400
|
-
let { collection: f, selectionManager: h, selectedKey: b, setSelectedKey: S, selectedItem:
|
|
1399
|
+
let { collection: f, selectionManager: h, selectedKey: b, setSelectedKey: S, selectedItem: k, disabledKeys: G } = fu({
|
|
1401
1400
|
...e,
|
|
1402
1401
|
onSelectionChange: m,
|
|
1403
1402
|
items: (g = e.items) !== null && g !== void 0 ? g : e.defaultItems
|
|
1404
|
-
}), [
|
|
1403
|
+
}), [L, Q] = lo(e.inputValue, Ne(e.defaultInputValue, b, f) || "", e.onInputChange), [N] = X(b), [q] = X(L), z = f, w = ae(() => (
|
|
1405
1404
|
// No default filter if items are controlled.
|
|
1406
|
-
e.items != null || !n ? f : Uu(f,
|
|
1405
|
+
e.items != null || !n ? f : Uu(f, L, n)
|
|
1407
1406
|
), [
|
|
1408
1407
|
f,
|
|
1409
|
-
|
|
1408
|
+
L,
|
|
1410
1409
|
n,
|
|
1411
1410
|
e.items
|
|
1412
1411
|
]), [oe, V] = X(w), j = T("focus"), F = tu({
|
|
1413
1412
|
...e,
|
|
1414
|
-
onOpenChange: (
|
|
1415
|
-
e.onOpenChange && e.onOpenChange(
|
|
1413
|
+
onOpenChange: (A) => {
|
|
1414
|
+
e.onOpenChange && e.onOpenChange(A, A ? j.current : void 0), h.setFocused(A), A || h.setFocusedKey(null);
|
|
1416
1415
|
},
|
|
1417
1416
|
isOpen: void 0,
|
|
1418
1417
|
defaultOpen: void 0
|
|
1419
|
-
}), i = (
|
|
1420
|
-
let
|
|
1421
|
-
(u || w.size > 0 ||
|
|
1422
|
-
},
|
|
1423
|
-
let
|
|
1424
|
-
!(u || w.size > 0 ||
|
|
1418
|
+
}), i = (A = null, I) => {
|
|
1419
|
+
let K = I === "manual" || I === "focus" && t === "focus";
|
|
1420
|
+
(u || w.size > 0 || K && z.size > 0 || e.items) && (K && !F.isOpen && e.items === void 0 && l(!0), j.current = I, B(A), F.open());
|
|
1421
|
+
}, s = (A = null, I) => {
|
|
1422
|
+
let K = I === "manual" || I === "focus" && t === "focus";
|
|
1423
|
+
!(u || w.size > 0 || K && z.size > 0 || e.items) && !F.isOpen || (K && !F.isOpen && e.items === void 0 && l(!0), F.isOpen || (j.current = I), M(A));
|
|
1425
1424
|
}, v = O(() => {
|
|
1426
|
-
V(r ?
|
|
1425
|
+
V(r ? z : w);
|
|
1427
1426
|
}, [
|
|
1428
1427
|
r,
|
|
1429
|
-
|
|
1428
|
+
z,
|
|
1430
1429
|
w
|
|
1431
|
-
]), M = O((
|
|
1432
|
-
F.isOpen && v(), B(
|
|
1430
|
+
]), M = O((A = null) => {
|
|
1431
|
+
F.isOpen && v(), B(A), F.toggle();
|
|
1433
1432
|
}, [
|
|
1434
1433
|
F,
|
|
1435
1434
|
v
|
|
1436
|
-
]),
|
|
1435
|
+
]), P = O(() => {
|
|
1437
1436
|
F.isOpen && (v(), F.close());
|
|
1438
1437
|
}, [
|
|
1439
1438
|
F,
|
|
1440
1439
|
v
|
|
1441
|
-
]), [
|
|
1442
|
-
var
|
|
1443
|
-
let
|
|
1444
|
-
R(
|
|
1440
|
+
]), [D, R] = X(L), H = () => {
|
|
1441
|
+
var A, I;
|
|
1442
|
+
let K = b != null && (I = (A = f.getItem(b)) === null || A === void 0 ? void 0 : A.textValue) !== null && I !== void 0 ? I : "";
|
|
1443
|
+
R(K), Q(K);
|
|
1445
1444
|
};
|
|
1446
1445
|
var _, ie;
|
|
1447
1446
|
let U = T((ie = (_ = e.selectedKey) !== null && _ !== void 0 ? _ : e.defaultSelectedKey) !== null && ie !== void 0 ? ie : null);
|
|
1448
1447
|
var ne;
|
|
1449
1448
|
let ce = T(b != null && (ne = (o = f.getItem(b)) === null || o === void 0 ? void 0 : o.textValue) !== null && ne !== void 0 ? ne : "");
|
|
1450
1449
|
ue(() => {
|
|
1451
|
-
var
|
|
1452
|
-
x && (w.size > 0 || u) && !F.isOpen &&
|
|
1450
|
+
var A;
|
|
1451
|
+
x && (w.size > 0 || u) && !F.isOpen && L !== D && t !== "manual" && i(null, "input"), !r && !u && F.isOpen && w.size === 0 && P(), b != null && b !== U.current && P(), L !== D && (h.setFocusedKey(null), l(!1), L === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && S(null)), b !== U.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? H() : D !== L && R(L);
|
|
1453
1452
|
var I;
|
|
1454
|
-
let
|
|
1455
|
-
!x && b != null && e.inputValue === void 0 && b === U.current && ce.current !==
|
|
1453
|
+
let K = b != null && (I = (A = f.getItem(b)) === null || A === void 0 ? void 0 : A.textValue) !== null && I !== void 0 ? I : "";
|
|
1454
|
+
!x && b != null && e.inputValue === void 0 && b === U.current && ce.current !== K && (R(K), Q(K)), U.current = b, ce.current = K;
|
|
1456
1455
|
});
|
|
1457
1456
|
let se = cu({
|
|
1458
1457
|
...e,
|
|
1459
1458
|
value: ae(() => ({
|
|
1460
|
-
inputValue:
|
|
1459
|
+
inputValue: L,
|
|
1461
1460
|
selectedKey: b
|
|
1462
1461
|
}), [
|
|
1463
|
-
|
|
1462
|
+
L,
|
|
1464
1463
|
b
|
|
1465
1464
|
])
|
|
1466
1465
|
}), de = () => {
|
|
1467
1466
|
c && b == null ? p() : E();
|
|
1468
1467
|
}, p = () => {
|
|
1469
|
-
U.current = null, S(null),
|
|
1468
|
+
U.current = null, S(null), P();
|
|
1470
1469
|
}, E = () => {
|
|
1471
1470
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1472
|
-
var
|
|
1473
|
-
(
|
|
1474
|
-
var
|
|
1475
|
-
let Mn = b != null && (
|
|
1476
|
-
R(Mn),
|
|
1471
|
+
var A, I;
|
|
1472
|
+
(A = e.onSelectionChange) === null || A === void 0 || A.call(e, b);
|
|
1473
|
+
var K;
|
|
1474
|
+
let Mn = b != null && (K = (I = f.getItem(b)) === null || I === void 0 ? void 0 : I.textValue) !== null && K !== void 0 ? K : "";
|
|
1475
|
+
R(Mn), P();
|
|
1477
1476
|
} else
|
|
1478
|
-
H(),
|
|
1477
|
+
H(), P();
|
|
1479
1478
|
};
|
|
1480
1479
|
const d = () => {
|
|
1481
1480
|
if (c) {
|
|
1482
|
-
var
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1481
|
+
var A, I;
|
|
1482
|
+
const K = b != null && (I = (A = f.getItem(b)) === null || A === void 0 ? void 0 : A.textValue) !== null && I !== void 0 ? I : "";
|
|
1483
|
+
L === K ? E() : p();
|
|
1485
1484
|
} else
|
|
1486
1485
|
E();
|
|
1487
1486
|
};
|
|
1488
1487
|
let J = () => {
|
|
1489
1488
|
F.isOpen && h.focusedKey != null ? b === h.focusedKey ? E() : S(h.focusedKey) : d();
|
|
1490
|
-
}, Z = T(
|
|
1491
|
-
|
|
1492
|
-
}, le = ae(() => F.isOpen ? r ?
|
|
1489
|
+
}, Z = T(L), ee = (A) => {
|
|
1490
|
+
A ? (Z.current = L, t === "focus" && !e.isReadOnly && i(null, "focus")) : ($ && d(), L !== Z.current && se.commitValidation()), y(A);
|
|
1491
|
+
}, le = ae(() => F.isOpen ? r ? z : w : oe, [
|
|
1493
1492
|
F.isOpen,
|
|
1494
|
-
|
|
1493
|
+
z,
|
|
1495
1494
|
w,
|
|
1496
1495
|
r,
|
|
1497
1496
|
oe
|
|
1498
1497
|
]);
|
|
1499
1498
|
var Ce;
|
|
1500
|
-
let Oe = (Ce = e.defaultSelectedKey) !== null && Ce !== void 0 ? Ce :
|
|
1499
|
+
let Oe = (Ce = e.defaultSelectedKey) !== null && Ce !== void 0 ? Ce : N;
|
|
1501
1500
|
var he;
|
|
1502
1501
|
return {
|
|
1503
1502
|
...se,
|
|
1504
1503
|
...F,
|
|
1505
1504
|
focusStrategy: C,
|
|
1506
|
-
toggle:
|
|
1505
|
+
toggle: s,
|
|
1507
1506
|
open: i,
|
|
1508
1507
|
close: d,
|
|
1509
1508
|
selectionManager: h,
|
|
@@ -1513,10 +1512,10 @@ function ju(e) {
|
|
|
1513
1512
|
disabledKeys: G,
|
|
1514
1513
|
isFocused: x,
|
|
1515
1514
|
setFocused: ee,
|
|
1516
|
-
selectedItem:
|
|
1515
|
+
selectedItem: k,
|
|
1517
1516
|
collection: le,
|
|
1518
|
-
inputValue:
|
|
1519
|
-
defaultInputValue: (he =
|
|
1517
|
+
inputValue: L,
|
|
1518
|
+
defaultInputValue: (he = Ne(e.defaultInputValue, Oe, f)) !== null && he !== void 0 ? he : q,
|
|
1520
1519
|
setInputValue: Q,
|
|
1521
1520
|
commit: J,
|
|
1522
1521
|
revert: de
|
|
@@ -1543,14 +1542,14 @@ function In(e, o, n, t) {
|
|
|
1543
1542
|
});
|
|
1544
1543
|
return u;
|
|
1545
1544
|
}
|
|
1546
|
-
function
|
|
1545
|
+
function Ne(e, o, n) {
|
|
1547
1546
|
if (e == null) {
|
|
1548
1547
|
var t, u;
|
|
1549
1548
|
if (o != null) return (u = (t = n.getItem(o)) === null || t === void 0 ? void 0 : t.textValue) !== null && u !== void 0 ? u : "";
|
|
1550
1549
|
}
|
|
1551
1550
|
return e;
|
|
1552
1551
|
}
|
|
1553
|
-
const qu = /* @__PURE__ */ $e(null), Ke = /* @__PURE__ */ $e(null), Wu = /* @__PURE__ */
|
|
1552
|
+
const qu = /* @__PURE__ */ $e(null), Ke = /* @__PURE__ */ $e(null), Wu = /* @__PURE__ */ zn(function(o, n) {
|
|
1554
1553
|
[o, n] = fe(o, n, qu);
|
|
1555
1554
|
let { children: t, isDisabled: u = !1, isInvalid: c = !1, isRequired: $ = !1 } = o, r = ae(() => {
|
|
1556
1555
|
var l;
|
|
@@ -1592,17 +1591,17 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1592
1591
|
c && (u = "text");
|
|
1593
1592
|
let { validationBehavior: $ } = Se(Xe) || {};
|
|
1594
1593
|
var r, l;
|
|
1595
|
-
let x = (l = (r = e.validationBehavior) !== null && r !== void 0 ? r : $) !== null && l !== void 0 ? l : "native", { contains:
|
|
1594
|
+
let x = (l = (r = e.validationBehavior) !== null && r !== void 0 ? r : $) !== null && l !== void 0 ? l : "native", { contains: y } = no({
|
|
1596
1595
|
sensitivity: "base"
|
|
1597
1596
|
}), C = ju({
|
|
1598
|
-
defaultFilter: e.defaultFilter ||
|
|
1597
|
+
defaultFilter: e.defaultFilter || y,
|
|
1599
1598
|
...e,
|
|
1600
1599
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1601
1600
|
items: e.items,
|
|
1602
1601
|
children: void 0,
|
|
1603
1602
|
collection: o,
|
|
1604
1603
|
validationBehavior: x
|
|
1605
|
-
}), B = T(null), m = T(null), g = T(null), f = T(null), [h, b] = He(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: S, inputProps:
|
|
1604
|
+
}), B = T(null), m = T(null), g = T(null), f = T(null), [h, b] = He(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: S, inputProps: k, listBoxProps: G, labelProps: L, descriptionProps: Q, errorMessageProps: N, ...q } = Ru({
|
|
1606
1605
|
...De(e),
|
|
1607
1606
|
label: b,
|
|
1608
1607
|
inputRef: m,
|
|
@@ -1611,11 +1610,11 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1611
1610
|
popoverRef: f,
|
|
1612
1611
|
name: u === "text" ? t : void 0,
|
|
1613
1612
|
validationBehavior: x
|
|
1614
|
-
}, C), [
|
|
1613
|
+
}, C), [z, w] = X(null), oe = O(() => {
|
|
1615
1614
|
if (m.current) {
|
|
1616
1615
|
var i;
|
|
1617
|
-
let
|
|
1618
|
-
w(
|
|
1616
|
+
let s = (i = B.current) === null || i === void 0 ? void 0 : i.getBoundingClientRect(), v = m.current.getBoundingClientRect(), M = s ? Math.min(s.left, v.left) : v.left, P = s ? Math.max(s.right, v.right) : v.right;
|
|
1617
|
+
w(P - M + "px");
|
|
1619
1618
|
}
|
|
1620
1619
|
}, [
|
|
1621
1620
|
B,
|
|
@@ -1654,7 +1653,7 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1654
1653
|
[
|
|
1655
1654
|
Ie,
|
|
1656
1655
|
{
|
|
1657
|
-
...
|
|
1656
|
+
...L,
|
|
1658
1657
|
ref: h
|
|
1659
1658
|
}
|
|
1660
1659
|
],
|
|
@@ -1669,7 +1668,7 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1669
1668
|
[
|
|
1670
1669
|
xe,
|
|
1671
1670
|
{
|
|
1672
|
-
...
|
|
1671
|
+
...k,
|
|
1673
1672
|
ref: m
|
|
1674
1673
|
}
|
|
1675
1674
|
],
|
|
@@ -1687,7 +1686,7 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1687
1686
|
isNonModal: !0,
|
|
1688
1687
|
trigger: "ComboBox",
|
|
1689
1688
|
style: {
|
|
1690
|
-
"--trigger-width":
|
|
1689
|
+
"--trigger-width": z
|
|
1691
1690
|
},
|
|
1692
1691
|
clearContexts: Hu
|
|
1693
1692
|
}
|
|
@@ -1708,7 +1707,7 @@ function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
|
1708
1707
|
{
|
|
1709
1708
|
slots: {
|
|
1710
1709
|
description: Q,
|
|
1711
|
-
errorMessage:
|
|
1710
|
+
errorMessage: N
|
|
1712
1711
|
}
|
|
1713
1712
|
}
|
|
1714
1713
|
],
|
|
@@ -1747,9 +1746,9 @@ const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
|
1747
1746
|
var u, c;
|
|
1748
1747
|
let $ = (c = (u = o.validationBehavior) !== null && u !== void 0 ? u : t) !== null && c !== void 0 ? c : "native", r = T(null);
|
|
1749
1748
|
[o, r] = fe(o, r, to);
|
|
1750
|
-
let [l, x] = He(!o["aria-label"] && !o["aria-labelledby"]), [
|
|
1749
|
+
let [l, x] = He(!o["aria-label"] && !o["aria-labelledby"]), [y, C] = X("input"), { labelProps: B, inputProps: m, descriptionProps: g, errorMessageProps: f, ...h } = ro({
|
|
1751
1750
|
...De(o),
|
|
1752
|
-
inputElementType:
|
|
1751
|
+
inputElementType: y,
|
|
1753
1752
|
label: x,
|
|
1754
1753
|
validationBehavior: $
|
|
1755
1754
|
}, r), b = O((G) => {
|
|
@@ -1765,11 +1764,11 @@ const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
|
1765
1764
|
isRequired: o.isRequired || !1
|
|
1766
1765
|
},
|
|
1767
1766
|
defaultClassName: "react-aria-TextField"
|
|
1768
|
-
}),
|
|
1767
|
+
}), k = oo(o, {
|
|
1769
1768
|
global: !0
|
|
1770
1769
|
});
|
|
1771
|
-
return delete
|
|
1772
|
-
...
|
|
1770
|
+
return delete k.id, /* @__PURE__ */ Y.createElement("div", {
|
|
1771
|
+
...k,
|
|
1773
1772
|
...S,
|
|
1774
1773
|
ref: n,
|
|
1775
1774
|
slot: o.slot || void 0,
|
|
@@ -1833,7 +1832,7 @@ const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
|
1833
1832
|
onSubmitCustomValue: u,
|
|
1834
1833
|
onInputChange: c,
|
|
1835
1834
|
ref: $
|
|
1836
|
-
} = e, [r, l] = fe({}, $ || null, xe), x = Ue(Ke),
|
|
1835
|
+
} = e, [r, l] = fe({}, $ || null, xe), x = Ue(Ke), y = O(
|
|
1837
1836
|
// This method clears the input if the user has focused on a pre-populated combobox and starts typing
|
|
1838
1837
|
(C) => {
|
|
1839
1838
|
if (x?.selectedKey && l.current && // cursor is at the beginning of input...
|
|
@@ -1852,12 +1851,12 @@ const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
|
1852
1851
|
},
|
|
1853
1852
|
[n, c, t, u, x]
|
|
1854
1853
|
);
|
|
1855
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ a(wn, { asChild: !0, children: /* @__PURE__ */ a(
|
|
1856
1855
|
Ye,
|
|
1857
1856
|
{
|
|
1858
1857
|
ref: l,
|
|
1859
1858
|
...r,
|
|
1860
|
-
onKeyDown:
|
|
1859
|
+
onKeyDown: y,
|
|
1861
1860
|
placeholder: o
|
|
1862
1861
|
}
|
|
1863
1862
|
) });
|
|
@@ -1867,7 +1866,7 @@ const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
|
1867
1866
|
...n
|
|
1868
1867
|
}) => {
|
|
1869
1868
|
const [t, u] = ke(n);
|
|
1870
|
-
return /* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ a(nt, { ...t, asChild: !0, children: /* @__PURE__ */ a(Hn, { ref: o, ...u, children: e }) });
|
|
1871
1870
|
};
|
|
1872
1871
|
Re.displayName = "ComboBox.Options";
|
|
1873
1872
|
const rt = ({
|
|
@@ -1877,7 +1876,7 @@ const rt = ({
|
|
|
1877
1876
|
}) => {
|
|
1878
1877
|
const t = Ue(Ke);
|
|
1879
1878
|
return /* @__PURE__ */ re(kn, { children: [
|
|
1880
|
-
t?.selectedKey && /* @__PURE__ */
|
|
1879
|
+
t?.selectedKey && /* @__PURE__ */ a(
|
|
1881
1880
|
Fe,
|
|
1882
1881
|
{
|
|
1883
1882
|
pointerEvents: "all",
|
|
@@ -1890,19 +1889,19 @@ const rt = ({
|
|
|
1890
1889
|
_expanded: { bg: "transparent" },
|
|
1891
1890
|
onPress: () => t?.setSelectedKey(null),
|
|
1892
1891
|
my: "auto",
|
|
1893
|
-
children: /* @__PURE__ */
|
|
1892
|
+
children: /* @__PURE__ */ a(ao, {})
|
|
1894
1893
|
}
|
|
1895
1894
|
),
|
|
1896
|
-
n ? /* @__PURE__ */
|
|
1895
|
+
n ? /* @__PURE__ */ a($o, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ a(me, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ a(
|
|
1897
1896
|
me,
|
|
1898
1897
|
{
|
|
1899
1898
|
asChild: !0,
|
|
1900
1899
|
animation: "spin",
|
|
1901
1900
|
animationDuration: "slowest",
|
|
1902
1901
|
"data-testid": "nimbus-combobox-loading",
|
|
1903
|
-
children: /* @__PURE__ */
|
|
1902
|
+
children: /* @__PURE__ */ a(so, {})
|
|
1904
1903
|
}
|
|
1905
|
-
) }) }) : /* @__PURE__ */
|
|
1904
|
+
) }) }) : /* @__PURE__ */ a(
|
|
1906
1905
|
Fe,
|
|
1907
1906
|
{
|
|
1908
1907
|
size: "2xs",
|
|
@@ -1912,7 +1911,7 @@ const rt = ({
|
|
|
1912
1911
|
my: "auto",
|
|
1913
1912
|
isDisabled: e || o,
|
|
1914
1913
|
_expanded: { bg: "transparent" },
|
|
1915
|
-
children: /* @__PURE__ */
|
|
1914
|
+
children: /* @__PURE__ */ a(po, {})
|
|
1916
1915
|
}
|
|
1917
1916
|
)
|
|
1918
1917
|
] });
|
|
@@ -1932,7 +1931,7 @@ const rt = ({
|
|
|
1932
1931
|
return u.observe(n), () => {
|
|
1933
1932
|
u.disconnect();
|
|
1934
1933
|
};
|
|
1935
|
-
}, []), /* @__PURE__ */
|
|
1934
|
+
}, []), /* @__PURE__ */ a(_u, { ref: o, children: e });
|
|
1936
1935
|
}, at = ({
|
|
1937
1936
|
children: e,
|
|
1938
1937
|
inputValue: o,
|
|
@@ -1944,7 +1943,7 @@ const rt = ({
|
|
|
1944
1943
|
shouldFocusWrap: r = !0,
|
|
1945
1944
|
isLoading: l,
|
|
1946
1945
|
leadingElement: x,
|
|
1947
|
-
ref:
|
|
1946
|
+
ref: y,
|
|
1948
1947
|
...C
|
|
1949
1948
|
}) => {
|
|
1950
1949
|
if (c && (o === void 0 || !n))
|
|
@@ -1964,10 +1963,10 @@ const rt = ({
|
|
|
1964
1963
|
menuTrigger: "focus",
|
|
1965
1964
|
shouldFocusWrap: r,
|
|
1966
1965
|
...C,
|
|
1967
|
-
ref:
|
|
1966
|
+
ref: y,
|
|
1968
1967
|
children: [
|
|
1969
|
-
x && /* @__PURE__ */
|
|
1970
|
-
/* @__PURE__ */
|
|
1968
|
+
x && /* @__PURE__ */ a(Kn, { children: x }),
|
|
1969
|
+
/* @__PURE__ */ a(
|
|
1971
1970
|
ct,
|
|
1972
1971
|
{
|
|
1973
1972
|
ref: B,
|
|
@@ -1978,7 +1977,7 @@ const rt = ({
|
|
|
1978
1977
|
onInputChange: n
|
|
1979
1978
|
}
|
|
1980
1979
|
),
|
|
1981
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ a(
|
|
1982
1981
|
rt,
|
|
1983
1982
|
{
|
|
1984
1983
|
isLoading: l,
|
|
@@ -1986,12 +1985,12 @@ const rt = ({
|
|
|
1986
1985
|
isReadOnly: C.isReadOnly
|
|
1987
1986
|
}
|
|
1988
1987
|
),
|
|
1989
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ a(_e, { children: /* @__PURE__ */ a(Re, { renderEmptyState: $, children: e }) })
|
|
1990
1989
|
]
|
|
1991
1990
|
}
|
|
1992
1991
|
);
|
|
1993
1992
|
};
|
|
1994
|
-
function
|
|
1993
|
+
function ze(e) {
|
|
1995
1994
|
return e != null && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
1996
1995
|
}
|
|
1997
1996
|
function Ee(e, o, n) {
|
|
@@ -2019,18 +2018,18 @@ const st = (
|
|
|
2019
2018
|
isReadOnly: r,
|
|
2020
2019
|
size: l,
|
|
2021
2020
|
containerRef: x,
|
|
2022
|
-
ref:
|
|
2021
|
+
ref: y
|
|
2023
2022
|
}) => {
|
|
2024
2023
|
const C = ae(() => {
|
|
2025
2024
|
if (!o) return [];
|
|
2026
2025
|
const m = Array.from(e);
|
|
2027
2026
|
if (Array.isArray(o)) {
|
|
2028
2027
|
const f = o[0];
|
|
2029
|
-
if (f &&
|
|
2028
|
+
if (f && ze(f)) {
|
|
2030
2029
|
const b = [];
|
|
2031
2030
|
return o.forEach((S) => {
|
|
2032
|
-
|
|
2033
|
-
}), Ee(b?.[0], n, t), m.map((S) => b.find((
|
|
2031
|
+
ze(S) && b.push(...S.children);
|
|
2032
|
+
}), Ee(b?.[0], n, t), m.map((S) => b.find((k) => k[n] === S)).filter((S) => S !== void 0);
|
|
2034
2033
|
}
|
|
2035
2034
|
const h = o;
|
|
2036
2035
|
return Ee(h?.[0], n, t), m.map((b) => h.find((S) => S[n] === b)).filter((b) => b !== void 0);
|
|
@@ -2048,14 +2047,14 @@ const st = (
|
|
|
2048
2047
|
},
|
|
2049
2048
|
[$, r, e, c]
|
|
2050
2049
|
);
|
|
2051
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ a(eo, { children: /* @__PURE__ */ a(
|
|
2052
2051
|
wn,
|
|
2053
2052
|
{
|
|
2054
2053
|
asChild: !0,
|
|
2055
2054
|
alignItems: "space-between",
|
|
2056
2055
|
justifyContent: "center",
|
|
2057
|
-
ref:
|
|
2058
|
-
children: /* @__PURE__ */
|
|
2056
|
+
ref: y,
|
|
2057
|
+
children: /* @__PURE__ */ a(
|
|
2059
2058
|
Ae.Root,
|
|
2060
2059
|
{
|
|
2061
2060
|
size: l,
|
|
@@ -2064,14 +2063,14 @@ const st = (
|
|
|
2064
2063
|
selectionMode: "none",
|
|
2065
2064
|
disabledKeys: $ || r ? e : void 0,
|
|
2066
2065
|
"data-disabled": $,
|
|
2067
|
-
children: /* @__PURE__ */
|
|
2066
|
+
children: /* @__PURE__ */ a(
|
|
2068
2067
|
Ae.TagList,
|
|
2069
2068
|
{
|
|
2070
2069
|
items: C,
|
|
2071
2070
|
dependencies: [n],
|
|
2072
2071
|
maxW: "100%",
|
|
2073
2072
|
tabIndex: C.length === 0 || $ || r ? -1 : void 0,
|
|
2074
|
-
renderEmptyState: () => u && /* @__PURE__ */
|
|
2073
|
+
renderEmptyState: () => u && /* @__PURE__ */ a(
|
|
2075
2074
|
"div",
|
|
2076
2075
|
{
|
|
2077
2076
|
"data-placeholder": "true",
|
|
@@ -2083,7 +2082,7 @@ const st = (
|
|
|
2083
2082
|
children: u
|
|
2084
2083
|
}
|
|
2085
2084
|
),
|
|
2086
|
-
children: (m) => /* @__PURE__ */
|
|
2085
|
+
children: (m) => /* @__PURE__ */ a(Ae.Tag, { id: m[n], maxW: "100%", children: m[t] })
|
|
2087
2086
|
}
|
|
2088
2087
|
)
|
|
2089
2088
|
}
|
|
@@ -2104,7 +2103,7 @@ const st = (
|
|
|
2104
2103
|
o?.(/* @__PURE__ */ new Set()), n?.(""), t?.current && t.current.focus();
|
|
2105
2104
|
}, []);
|
|
2106
2105
|
return /* @__PURE__ */ re(kn, { children: [
|
|
2107
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ a(eo, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ a(
|
|
2108
2107
|
Fe,
|
|
2109
2108
|
{
|
|
2110
2109
|
pointerEvents: "all",
|
|
@@ -2116,10 +2115,10 @@ const st = (
|
|
|
2116
2115
|
isDisabled: u || c,
|
|
2117
2116
|
onPress: r,
|
|
2118
2117
|
my: "auto",
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2118
|
+
children: /* @__PURE__ */ a(ao, {})
|
|
2120
2119
|
}
|
|
2121
2120
|
) }),
|
|
2122
|
-
/* @__PURE__ */
|
|
2121
|
+
/* @__PURE__ */ a(
|
|
2123
2122
|
$o,
|
|
2124
2123
|
{
|
|
2125
2124
|
my: "auto",
|
|
@@ -2128,16 +2127,16 @@ const st = (
|
|
|
2128
2127
|
color: "neutral.11",
|
|
2129
2128
|
opacity: c || u ? "0.5" : void 0,
|
|
2130
2129
|
cursor: c || u ? "not-allowed" : void 0,
|
|
2131
|
-
children: /* @__PURE__ */
|
|
2130
|
+
children: /* @__PURE__ */ a(me, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: $ ? /* @__PURE__ */ a(
|
|
2132
2131
|
me,
|
|
2133
2132
|
{
|
|
2134
2133
|
asChild: !0,
|
|
2135
2134
|
animation: "spin",
|
|
2136
2135
|
animationDuration: "slowest",
|
|
2137
2136
|
"data-testid": "nimbus-combobox-loading",
|
|
2138
|
-
children: /* @__PURE__ */
|
|
2137
|
+
children: /* @__PURE__ */ a(so, {})
|
|
2139
2138
|
}
|
|
2140
|
-
) : /* @__PURE__ */
|
|
2139
|
+
) : /* @__PURE__ */ a(po, {}) })
|
|
2141
2140
|
}
|
|
2142
2141
|
)
|
|
2143
2142
|
] });
|
|
@@ -2158,7 +2157,7 @@ const $t = ({
|
|
|
2158
2157
|
onSelectionChange: r,
|
|
2159
2158
|
onOpenChange: l,
|
|
2160
2159
|
disabledKeys: x,
|
|
2161
|
-
items:
|
|
2160
|
+
items: y,
|
|
2162
2161
|
defaultItems: C,
|
|
2163
2162
|
itemId: B = "id",
|
|
2164
2163
|
itemValue: m = "name",
|
|
@@ -2167,17 +2166,17 @@ const $t = ({
|
|
|
2167
2166
|
isReadOnly: h,
|
|
2168
2167
|
isRequired: b,
|
|
2169
2168
|
isInvalid: S,
|
|
2170
|
-
className:
|
|
2169
|
+
className: k,
|
|
2171
2170
|
placeholder: G,
|
|
2172
|
-
size:
|
|
2171
|
+
size: L = "md",
|
|
2173
2172
|
allowsCustomValue: Q,
|
|
2174
|
-
onSubmitCustomValue:
|
|
2173
|
+
onSubmitCustomValue: N,
|
|
2175
2174
|
renderEmptyState: q,
|
|
2176
|
-
ref:
|
|
2175
|
+
ref: z,
|
|
2177
2176
|
leadingElement: w,
|
|
2178
2177
|
...oe
|
|
2179
2178
|
}) => {
|
|
2180
|
-
const [V, j] = X(!1), W = T(!1), [F, i] = X(),
|
|
2179
|
+
const [V, j] = X(!1), W = T(!1), [F, i] = X(), s = $ ?? F ?? c, v = r ?? i, [M, P] = X(""), D = n ?? M ?? t, R = u ?? P, H = y ?? C, _ = no({ sensitivity: "base" }), ie = (...d) => _.contains.apply(void 0, d), U = O(
|
|
2181
2180
|
(d) => {
|
|
2182
2181
|
if (f || h) {
|
|
2183
2182
|
V && j(!1);
|
|
@@ -2200,18 +2199,18 @@ const $t = ({
|
|
|
2200
2199
|
},
|
|
2201
2200
|
[V]
|
|
2202
2201
|
), ce = O(() => {
|
|
2203
|
-
if (
|
|
2204
|
-
const d = pt(
|
|
2202
|
+
if (s !== "all" && s instanceof Set) {
|
|
2203
|
+
const d = pt(s);
|
|
2205
2204
|
if (d != null) {
|
|
2206
|
-
const J = new Set(
|
|
2205
|
+
const J = new Set(s);
|
|
2207
2206
|
J.delete(d), v(J);
|
|
2208
2207
|
}
|
|
2209
2208
|
}
|
|
2210
|
-
}, [
|
|
2209
|
+
}, [s, v]), se = O((d) => {
|
|
2211
2210
|
(d.key === "ArrowDown" || d.key === "ArrowUp" || d.key === "Enter") && d.target === p.current && (d.preventDefault(), U(!0));
|
|
2212
2211
|
}, []), de = O(
|
|
2213
2212
|
(d) => {
|
|
2214
|
-
if (d.key === "Backspace" &&
|
|
2213
|
+
if (d.key === "Backspace" && D === "") {
|
|
2215
2214
|
ce();
|
|
2216
2215
|
return;
|
|
2217
2216
|
}
|
|
@@ -2219,35 +2218,35 @@ const $t = ({
|
|
|
2219
2218
|
U(!1), p.current && p.current.focus();
|
|
2220
2219
|
return;
|
|
2221
2220
|
}
|
|
2222
|
-
if (d.key === "Enter" &&
|
|
2221
|
+
if (d.key === "Enter" && D.trim() !== "" && Q && N)
|
|
2223
2222
|
if (d.stopPropagation(), H) {
|
|
2224
|
-
const J =
|
|
2223
|
+
const J = D.trim(), Z = Array.from(H).find((ee) => (typeof ee == "object" && ee !== null && m in ee ? String(ee[m]) : JSON.stringify(ee)).toLowerCase() === J.toLowerCase());
|
|
2225
2224
|
if (Z) {
|
|
2226
|
-
const ee = typeof Z == "object" && Z !== null && B in Z ? Z[B] : Z, le = new Set(
|
|
2225
|
+
const ee = typeof Z == "object" && Z !== null && B in Z ? Z[B] : Z, le = new Set(s);
|
|
2227
2226
|
le.add(ee), v(le), R("");
|
|
2228
2227
|
} else
|
|
2229
|
-
|
|
2228
|
+
N(D), R("");
|
|
2230
2229
|
} else
|
|
2231
|
-
|
|
2230
|
+
N(D), R("");
|
|
2232
2231
|
},
|
|
2233
2232
|
[
|
|
2234
|
-
|
|
2233
|
+
D,
|
|
2235
2234
|
ce,
|
|
2236
2235
|
Q,
|
|
2237
|
-
|
|
2236
|
+
N,
|
|
2238
2237
|
H,
|
|
2239
2238
|
m,
|
|
2240
2239
|
B,
|
|
2241
|
-
|
|
2240
|
+
s,
|
|
2242
2241
|
v,
|
|
2243
2242
|
R
|
|
2244
2243
|
]
|
|
2245
|
-
), p = T(null), E = Fu(
|
|
2244
|
+
), p = T(null), E = Fu(z, p);
|
|
2246
2245
|
return /* @__PURE__ */ re(eu, { isOpen: V, onOpenChange: U, children: [
|
|
2247
|
-
/* @__PURE__ */
|
|
2246
|
+
/* @__PURE__ */ a(ku, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ re(
|
|
2248
2247
|
"div",
|
|
2249
2248
|
{
|
|
2250
|
-
className:
|
|
2249
|
+
className: k,
|
|
2251
2250
|
tabIndex: f ? -1 : 0,
|
|
2252
2251
|
ref: E,
|
|
2253
2252
|
role: "combobox",
|
|
@@ -2265,26 +2264,26 @@ const $t = ({
|
|
|
2265
2264
|
"data-open": V,
|
|
2266
2265
|
...oe,
|
|
2267
2266
|
children: [
|
|
2268
|
-
w && /* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */
|
|
2267
|
+
w && /* @__PURE__ */ a(Kn, { children: w }),
|
|
2268
|
+
/* @__PURE__ */ a(
|
|
2270
2269
|
st,
|
|
2271
2270
|
{
|
|
2272
2271
|
items: H,
|
|
2273
|
-
selectedKeys:
|
|
2272
|
+
selectedKeys: s,
|
|
2274
2273
|
onSelectionChange: v,
|
|
2275
2274
|
itemId: B,
|
|
2276
2275
|
itemValue: m,
|
|
2277
2276
|
placeholder: G,
|
|
2278
|
-
size:
|
|
2277
|
+
size: L,
|
|
2279
2278
|
containerRef: p,
|
|
2280
2279
|
isDisabled: f,
|
|
2281
2280
|
isReadOnly: h
|
|
2282
2281
|
}
|
|
2283
2282
|
),
|
|
2284
|
-
/* @__PURE__ */
|
|
2283
|
+
/* @__PURE__ */ a(
|
|
2285
2284
|
dt,
|
|
2286
2285
|
{
|
|
2287
|
-
selectedKeys:
|
|
2286
|
+
selectedKeys: s,
|
|
2288
2287
|
onSelectionChange: v,
|
|
2289
2288
|
onInputChange: R,
|
|
2290
2289
|
containerRef: p,
|
|
@@ -2296,14 +2295,14 @@ const $t = ({
|
|
|
2296
2295
|
]
|
|
2297
2296
|
}
|
|
2298
2297
|
) }),
|
|
2299
|
-
/* @__PURE__ */
|
|
2300
|
-
|
|
2298
|
+
/* @__PURE__ */ a(et, { asChild: !0, children: /* @__PURE__ */ a(_e, { triggerRef: p, placement: "bottom start", children: /* @__PURE__ */ a(ou, { "aria-label": "combobox dialog", children: /* @__PURE__ */ re(
|
|
2299
|
+
zu,
|
|
2301
2300
|
{
|
|
2302
2301
|
filter: o ?? ie,
|
|
2303
|
-
inputValue:
|
|
2302
|
+
inputValue: D,
|
|
2304
2303
|
onInputChange: R,
|
|
2305
2304
|
children: [
|
|
2306
|
-
/* @__PURE__ */
|
|
2305
|
+
/* @__PURE__ */ a(ot, { asChild: !0, children: /* @__PURE__ */ a(
|
|
2307
2306
|
Xu,
|
|
2308
2307
|
{
|
|
2309
2308
|
autoFocus: !0,
|
|
@@ -2311,7 +2310,7 @@ const $t = ({
|
|
|
2311
2310
|
isReadOnly: h,
|
|
2312
2311
|
isRequired: b,
|
|
2313
2312
|
"aria-label": "filter combobox options",
|
|
2314
|
-
children: /* @__PURE__ */
|
|
2313
|
+
children: /* @__PURE__ */ a(
|
|
2315
2314
|
Ye,
|
|
2316
2315
|
{
|
|
2317
2316
|
onKeyDownCapture: de,
|
|
@@ -2320,13 +2319,13 @@ const $t = ({
|
|
|
2320
2319
|
)
|
|
2321
2320
|
}
|
|
2322
2321
|
) }),
|
|
2323
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ a(
|
|
2324
2323
|
Re,
|
|
2325
2324
|
{
|
|
2326
2325
|
items: H,
|
|
2327
2326
|
selectionMode: "multiple",
|
|
2328
2327
|
onSelectionChange: v,
|
|
2329
|
-
selectedKeys:
|
|
2328
|
+
selectedKeys: s,
|
|
2330
2329
|
shouldFocusWrap: !0,
|
|
2331
2330
|
disabledKeys: f ? "all" : x,
|
|
2332
2331
|
escapeKeyBehavior: "none",
|
|
@@ -2344,15 +2343,15 @@ const $t = ({
|
|
|
2344
2343
|
ref: o,
|
|
2345
2344
|
...n
|
|
2346
2345
|
}) => {
|
|
2347
|
-
const t =
|
|
2348
|
-
return /* @__PURE__ */
|
|
2346
|
+
const t = Nn({ recipe: je }), [u, c] = t.splitVariantProps(n), [$, r] = ke(c), l = "selectionMode" in n && n.selectionMode === "multiple" ? $t : at;
|
|
2347
|
+
return /* @__PURE__ */ a(
|
|
2349
2348
|
Qu,
|
|
2350
2349
|
{
|
|
2351
2350
|
asChild: !0,
|
|
2352
2351
|
selectionMode: n.selectionMode,
|
|
2353
2352
|
...u,
|
|
2354
2353
|
...$,
|
|
2355
|
-
children: /* @__PURE__ */
|
|
2354
|
+
children: /* @__PURE__ */ a(l, { ref: o, size: u.size, ...r, children: e })
|
|
2356
2355
|
}
|
|
2357
2356
|
);
|
|
2358
2357
|
};
|
|
@@ -2369,8 +2368,8 @@ const On = ({
|
|
|
2369
2368
|
'ComboBoxOptionGroup: When "items" is provided, "children" must be a function'
|
|
2370
2369
|
);
|
|
2371
2370
|
return /* @__PURE__ */ re(Jn, { ref: t, ...u, children: [
|
|
2372
|
-
/* @__PURE__ */
|
|
2373
|
-
n ? /* @__PURE__ */
|
|
2371
|
+
/* @__PURE__ */ a(ut, { asChild: !0, children: /* @__PURE__ */ a(gu, { children: o }) }),
|
|
2372
|
+
n ? /* @__PURE__ */ a(uu, { items: n, children: (c) => typeof e == "function" ? e(c) : null }) : e
|
|
2374
2373
|
] });
|
|
2375
2374
|
};
|
|
2376
2375
|
On.displayName = "ComboBox.OptionGroup";
|
|
@@ -2380,7 +2379,7 @@ const Vn = ({
|
|
|
2380
2379
|
...n
|
|
2381
2380
|
}) => {
|
|
2382
2381
|
const [t, u] = ke(n), c = typeof e == "string" ? e : void 0;
|
|
2383
|
-
return /* @__PURE__ */
|
|
2382
|
+
return /* @__PURE__ */ a(tt, { ...t, asChild: !0, children: /* @__PURE__ */ a(
|
|
2384
2383
|
Zn,
|
|
2385
2384
|
{
|
|
2386
2385
|
ref: o,
|
|
@@ -2392,9 +2391,9 @@ const Vn = ({
|
|
|
2392
2391
|
...$
|
|
2393
2392
|
}) : e;
|
|
2394
2393
|
return $.selectionMode === "multiple" ? /* @__PURE__ */ re(Ve, { children: [
|
|
2395
|
-
/* @__PURE__ */
|
|
2396
|
-
/* @__PURE__ */
|
|
2397
|
-
] }) : /* @__PURE__ */
|
|
2394
|
+
/* @__PURE__ */ a(lt, { children: /* @__PURE__ */ a("span", { "data-selected": $.isSelected, children: $.isSelected && /* @__PURE__ */ a(Tu, {}) }) }),
|
|
2395
|
+
/* @__PURE__ */ a(it, { children: r })
|
|
2396
|
+
] }) : /* @__PURE__ */ a(Ve, { children: r });
|
|
2398
2397
|
}
|
|
2399
2398
|
}
|
|
2400
2399
|
) });
|
|
@@ -2411,4 +2410,4 @@ export {
|
|
|
2411
2410
|
On as b,
|
|
2412
2411
|
Vn as c
|
|
2413
2412
|
};
|
|
2414
|
-
//# sourceMappingURL=combobox-
|
|
2413
|
+
//# sourceMappingURL=combobox-C1LdL2D0.es.js.map
|