@stihl-design-system/components 1.0.0-RC.31 → 1.0.0-RC.34
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/accordion.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Popover.CXyUaXiO.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.j9YpudOS.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/buttonround.CMlmEDaN.js +96 -0
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/ActionButton.DOYsEHPr.js +180 -0
- package/chunks/ActionLink.DbyciN3Y.js +153 -0
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/Button.DCZgBNmA.js +142 -0
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/Chip.D6pubCZV.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Dg3wC_VH.js} +484 -473
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/Icon.CDLyB7Pv.js +229 -0
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.DC2POUc1.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/LinkButton.BZgIGgc8.js +132 -0
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.CR0zYHeZ.js} +70 -71
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +10 -12
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/Header/Header.d.ts +4 -5
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +10 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.nunJKxkv.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.D_iN8iD6.js → flag.CE32qHPa.js} +3 -3
- package/floatingactionbutton.Bsnncudt.js +87 -0
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +217 -204
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/link.f8MMZo-w.js +81 -0
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/logo100years.B4d_DIiB.js +24 -0
- package/logo100years.d.ts +2 -0
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.D97W3zeW.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -51
- package/partials/index.js +58 -52
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent._F-d8y5b.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.Dht6FspZ.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.B37S4vfP.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/tooltip.d.ts +2 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.DkwtJy--.js +0 -12
- package/actionbutton.u1qp8oGC.js +0 -11
- package/actionlink.C7HzeIVa.js +0 -11
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.Dth4qZN_.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BS-S3zUI.js +0 -11
- package/button.CPilCCUI.js +0 -12
- package/buttonround.C426mO4d.js +0 -81
- package/checkbox.BtlUvs0z.js +0 -12
- package/checkboxgroup.C5NgyyQF.js +0 -9
- package/chip.tVIG1ysH.js +0 -11
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/Accordion.C5V5IcM-.js +0 -170
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Checkbox.DxV7-F5W.js +0 -88
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Dialog.B_2pKRnd.js +0 -135
- package/chunks/Drawer.HFlBTcqN.js +0 -140
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputFile.DvOatDzg.js +0 -220
- package/chunks/InputSearch.B0aCuPRZ.js +0 -174
- package/chunks/InputStepper.D_1YqlWl.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/NavigationTabList.dYFYTmWv.js +0 -57
- package/chunks/Notification.DIdIhGTQ.js +0 -92
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Tabs.CkVL8Jw8.js +0 -83
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/Toast.DHo4pLH3.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.Bk2ycofh.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -12
- package/customreactselect.Hnch9LGg.js +0 -14
- package/dialog.7sWoqGwL.js +0 -10
- package/drawer.DsF4KIPn.js +0 -10
- package/fieldset.DUFUMcT-.js +0 -11
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/header.QpNjE3N-.js +0 -12
- package/icon.vMQcEBnH.js +0 -9
- package/input.BKHOY118.js +0 -203
- package/inputfile.DK8759wV.js +0 -17
- package/inputpassword.rV_ZZw5F.js +0 -13
- package/inputsearch.CmhakTpa.js +0 -14
- package/inputstepper.Y-YzUHhF.js +0 -16
- package/inputstepper.d.ts +0 -2
- package/link.D_FjTyoZ.js +0 -66
- package/linkbutton.D2C4vykc.js +0 -11
- package/megamenu.CdHrEeoh.js +0 -12
- package/navigationtablist.CVjh1k-b.js +0 -9
- package/navigationtabs.BGfi9AG2.js +0 -9
- package/notification.Dn-FZWEL.js +0 -10
- package/popover.DXxm1oWI.js +0 -11
- package/radiogroup.J8WpEEo8.js +0 -11
- package/scroller.BiRLQg__.js +0 -123
- package/select.DIzGPVx3.js +0 -13
- package/slider.DuJK0RdB.js +0 -11
- package/systemfeedback.C_2PhwKe.js +0 -10
- package/tablist.g_Nwu6GA.js +0 -256
- package/tabs.oh9-wHPp.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.dQ12-oYB.js +0 -13
- package/toast.sMNbfKxi.js +0 -11
- package/toastmanager.CVamaS5T.js +0 -116
- package/topbar.Dhy_TL0U.js +0 -11
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as de, jsx as M } from "react/jsx-runtime";
|
|
3
|
-
import { d as ee } from "./index.
|
|
4
|
-
import { c as L } from "./index.
|
|
3
|
+
import { d as ee } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as L } from "./index.DL9mof6u.js";
|
|
5
5
|
import * as X from "react";
|
|
6
|
-
import { useState as ue, useCallback as T, useLayoutEffect as Dt, useRef as Q, useMemo as
|
|
6
|
+
import { useState as ue, useCallback as T, useLayoutEffect as Dt, useRef as Q, useMemo as oe, createContext as Ot, useContext as Tt, Component as wt, Fragment as Re, useEffect as lt, forwardRef as rt } from "react";
|
|
7
7
|
import { jsx as f, css as st, keyframes as Jt } from "@emotion/react";
|
|
8
8
|
import { createPortal as Lt } from "react-dom";
|
|
9
|
-
import { a as Yt } from "./floating-ui.dom.
|
|
9
|
+
import { a as Yt } from "./floating-ui.dom.BT8pKtCQ.js";
|
|
10
10
|
import { t as zt } from "./translate.nuU7uChI.js";
|
|
11
|
-
import { g as pe, r as kt } from "./helpers.
|
|
12
|
-
import { u as jt } from "./useBreakpoint.
|
|
13
|
-
import { Asterisk as Ut } from "../asterisk.
|
|
14
|
-
import { D as be } from "./Icon.
|
|
15
|
-
import { D as Qt } from "./SystemFeedback.
|
|
16
|
-
import { OptionCheckbox as _t } from "../optioncheckbox.
|
|
17
|
-
import '../assets/CustomReactSelect.
|
|
11
|
+
import { g as pe, r as kt } from "./helpers.CexwVao7.js";
|
|
12
|
+
import { u as jt } from "./useBreakpoint.BzR_yaIv.js";
|
|
13
|
+
import { Asterisk as Ut } from "../asterisk.B2ih8VwF.js";
|
|
14
|
+
import { D as be } from "./Icon.CDLyB7Pv.js";
|
|
15
|
+
import { D as Qt } from "./SystemFeedback.CjlARKki.js";
|
|
16
|
+
import { OptionCheckbox as _t } from "../optioncheckbox.nBVwGv6c.js";
|
|
17
|
+
import '../assets/CustomReactSelect.E_jJFVew.css';const Qo = ({
|
|
18
18
|
id: n,
|
|
19
19
|
label: e,
|
|
20
20
|
options: i
|
|
@@ -27,7 +27,7 @@ import '../assets/CustomReactSelect.D0b1Hg1T.css';const Uo = ({
|
|
|
27
27
|
if (i.length === 0)
|
|
28
28
|
throw new Error(pe("DSCombobox", "The options array must not be empty."));
|
|
29
29
|
} else throw new Error(pe("DSCombobox", kt("options", "DSCombobox")));
|
|
30
|
-
},
|
|
30
|
+
}, _o = ["medium", "small"], $t = {
|
|
31
31
|
placeholder: "",
|
|
32
32
|
navigationGuidance: "Use Up and Down to choose options",
|
|
33
33
|
selectGuidance: "press Enter to select the currently focused option",
|
|
@@ -91,27 +91,27 @@ import '../assets/CustomReactSelect.D0b1Hg1T.css';const Uo = ({
|
|
|
91
91
|
en: $t,
|
|
92
92
|
de: Kt
|
|
93
93
|
};
|
|
94
|
-
function
|
|
94
|
+
function ae(n) {
|
|
95
95
|
"@babel/helpers - typeof";
|
|
96
|
-
return
|
|
96
|
+
return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
97
97
|
return typeof e;
|
|
98
98
|
} : function(e) {
|
|
99
99
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
100
|
-
},
|
|
100
|
+
}, ae(n);
|
|
101
101
|
}
|
|
102
102
|
function qt(n, e) {
|
|
103
|
-
if (
|
|
103
|
+
if (ae(n) != "object" || !n) return n;
|
|
104
104
|
var i = n[Symbol.toPrimitive];
|
|
105
105
|
if (i !== void 0) {
|
|
106
106
|
var u = i.call(n, e);
|
|
107
|
-
if (
|
|
107
|
+
if (ae(u) != "object") return u;
|
|
108
108
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
109
109
|
}
|
|
110
110
|
return (e === "string" ? String : Number)(n);
|
|
111
111
|
}
|
|
112
112
|
function ct(n) {
|
|
113
113
|
var e = qt(n, "string");
|
|
114
|
-
return
|
|
114
|
+
return ae(e) == "symbol" ? e : e + "";
|
|
115
115
|
}
|
|
116
116
|
function ce(n, e, i) {
|
|
117
117
|
return (e = ct(e)) in n ? Object.defineProperty(n, e, {
|
|
@@ -205,24 +205,24 @@ function te(n, e) {
|
|
|
205
205
|
}
|
|
206
206
|
var on = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
207
207
|
function an(n) {
|
|
208
|
-
var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, l = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, r = n.onChange, c = n.onInputChange, d = n.onMenuClose, b = n.onMenuOpen, p = n.value,
|
|
209
|
-
typeof r == "function" && r(w,
|
|
210
|
-
}, [r]),
|
|
211
|
-
var
|
|
212
|
-
typeof c == "function" && (
|
|
213
|
-
}, [c]),
|
|
214
|
-
typeof b == "function" && b(),
|
|
208
|
+
var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, l = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, r = n.onChange, c = n.onInputChange, d = n.onMenuClose, b = n.onMenuOpen, p = n.value, m = te(n, on), v = ue(s !== void 0 ? s : i), g = q(v, 2), I = g[0], V = g[1], x = ue(o !== void 0 ? o : t), y = q(x, 2), B = y[0], S = y[1], F = ue(p !== void 0 ? p : l), A = q(F, 2), R = A[0], D = A[1], O = T(function(w, U) {
|
|
209
|
+
typeof r == "function" && r(w, U), D(w);
|
|
210
|
+
}, [r]), P = T(function(w, U) {
|
|
211
|
+
var E;
|
|
212
|
+
typeof c == "function" && (E = c(w, U)), V(E !== void 0 ? E : w);
|
|
213
|
+
}, [c]), Y = T(function() {
|
|
214
|
+
typeof b == "function" && b(), S(!0);
|
|
215
215
|
}, [b]), k = T(function() {
|
|
216
|
-
typeof d == "function" && d(),
|
|
217
|
-
}, [d]), N = s !== void 0 ? s : I,
|
|
218
|
-
return C(C({},
|
|
216
|
+
typeof d == "function" && d(), S(!1);
|
|
217
|
+
}, [d]), N = s !== void 0 ? s : I, Z = o !== void 0 ? o : B, z = p !== void 0 ? p : R;
|
|
218
|
+
return C(C({}, m), {}, {
|
|
219
219
|
inputValue: N,
|
|
220
|
-
menuIsOpen:
|
|
220
|
+
menuIsOpen: Z,
|
|
221
221
|
onChange: O,
|
|
222
|
-
onInputChange:
|
|
222
|
+
onInputChange: P,
|
|
223
223
|
onMenuClose: k,
|
|
224
|
-
onMenuOpen:
|
|
225
|
-
value:
|
|
224
|
+
onMenuOpen: Y,
|
|
225
|
+
value: z
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
function h() {
|
|
@@ -285,7 +285,7 @@ function cn(n) {
|
|
|
285
285
|
return n;
|
|
286
286
|
}
|
|
287
287
|
function dn(n, e) {
|
|
288
|
-
if (e && (
|
|
288
|
+
if (e && (ae(e) == "object" || typeof e == "function")) return e;
|
|
289
289
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
290
290
|
return cn(n);
|
|
291
291
|
}
|
|
@@ -339,12 +339,12 @@ function Cn(n, e) {
|
|
|
339
339
|
}).join(" ");
|
|
340
340
|
}
|
|
341
341
|
var Ye = function(e) {
|
|
342
|
-
return Fn(e) ? e.filter(Boolean) :
|
|
342
|
+
return Fn(e) ? e.filter(Boolean) : ae(e) === "object" && e !== null ? [e] : [];
|
|
343
343
|
}, gt = function(e) {
|
|
344
344
|
e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
|
|
345
345
|
var i = te(e, vn);
|
|
346
346
|
return C({}, i);
|
|
347
|
-
},
|
|
347
|
+
}, W = function(e, i, u) {
|
|
348
348
|
var t = e.cx, a = e.getStyles, l = e.getClassNames, s = e.className;
|
|
349
349
|
return {
|
|
350
350
|
css: a(i, e),
|
|
@@ -450,57 +450,57 @@ function Wn(n) {
|
|
|
450
450
|
maxHeight: e
|
|
451
451
|
};
|
|
452
452
|
if (!i || !i.offsetParent) return r;
|
|
453
|
-
var c = o.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), p = b.bottom,
|
|
453
|
+
var c = o.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), p = b.bottom, m = b.height, v = b.top, g = i.offsetParent.getBoundingClientRect(), I = g.top, V = l ? window.innerHeight : hn(o), x = pt(o), y = parseInt(getComputedStyle(i).marginBottom, 10), B = parseInt(getComputedStyle(i).marginTop, 10), S = I - B, F = V - v, A = S + x, R = d - x - v, D = p - V + x + y, O = x + v - B, P = 160;
|
|
454
454
|
switch (t) {
|
|
455
455
|
case "auto":
|
|
456
456
|
case "bottom":
|
|
457
|
-
if (
|
|
457
|
+
if (F >= m)
|
|
458
458
|
return {
|
|
459
459
|
placement: "bottom",
|
|
460
460
|
maxHeight: e
|
|
461
461
|
};
|
|
462
|
-
if (R >=
|
|
463
|
-
return a && Ie(o,
|
|
462
|
+
if (R >= m && !l)
|
|
463
|
+
return a && Ie(o, D, P), {
|
|
464
464
|
placement: "bottom",
|
|
465
465
|
maxHeight: e
|
|
466
466
|
};
|
|
467
|
-
if (!l && R >= u || l &&
|
|
468
|
-
a && Ie(o,
|
|
469
|
-
var
|
|
467
|
+
if (!l && R >= u || l && F >= u) {
|
|
468
|
+
a && Ie(o, D, P);
|
|
469
|
+
var Y = l ? F - y : R - y;
|
|
470
470
|
return {
|
|
471
471
|
placement: "bottom",
|
|
472
|
-
maxHeight:
|
|
472
|
+
maxHeight: Y
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
if (t === "auto" || l) {
|
|
476
|
-
var k = e, N = l ?
|
|
476
|
+
var k = e, N = l ? S : A;
|
|
477
477
|
return N >= u && (k = Math.min(N - y - s, e)), {
|
|
478
478
|
placement: "top",
|
|
479
479
|
maxHeight: k
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
if (t === "bottom")
|
|
483
|
-
return a && Ae(o,
|
|
483
|
+
return a && Ae(o, D), {
|
|
484
484
|
placement: "bottom",
|
|
485
485
|
maxHeight: e
|
|
486
486
|
};
|
|
487
487
|
break;
|
|
488
488
|
case "top":
|
|
489
|
-
if (
|
|
489
|
+
if (S >= m)
|
|
490
490
|
return {
|
|
491
491
|
placement: "top",
|
|
492
492
|
maxHeight: e
|
|
493
493
|
};
|
|
494
|
-
if (A >=
|
|
495
|
-
return a && Ie(o, O,
|
|
494
|
+
if (A >= m && !l)
|
|
495
|
+
return a && Ie(o, O, P), {
|
|
496
496
|
placement: "top",
|
|
497
497
|
maxHeight: e
|
|
498
498
|
};
|
|
499
|
-
if (!l && A >= u || l &&
|
|
500
|
-
var
|
|
501
|
-
return (!l && A >= u || l &&
|
|
499
|
+
if (!l && A >= u || l && S >= u) {
|
|
500
|
+
var Z = e;
|
|
501
|
+
return (!l && A >= u || l && S >= u) && (Z = l ? S - B : A - B), a && Ie(o, O, P), {
|
|
502
502
|
placement: "top",
|
|
503
|
-
maxHeight:
|
|
503
|
+
maxHeight: Z
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
return {
|
|
@@ -533,31 +533,31 @@ var mt = function(e) {
|
|
|
533
533
|
marginTop: s.menuGutter
|
|
534
534
|
});
|
|
535
535
|
}, vt = /* @__PURE__ */ Ot(null), Nn = function(e) {
|
|
536
|
-
var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, l = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, r = Tt(vt) || {}, c = r.setPortalPlacement, d = Q(null), b = ue(t), p = q(b, 2),
|
|
536
|
+
var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, l = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, r = Tt(vt) || {}, c = r.setPortalPlacement, d = Q(null), b = ue(t), p = q(b, 2), m = p[0], v = p[1], g = ue(null), I = q(g, 2), V = I[0], x = I[1], y = o.spacing.controlHeight;
|
|
537
537
|
return Pe(function() {
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
540
|
-
var
|
|
538
|
+
var B = d.current;
|
|
539
|
+
if (B) {
|
|
540
|
+
var S = l === "fixed", F = s && !S, A = Wn({
|
|
541
541
|
maxHeight: t,
|
|
542
|
-
menuEl:
|
|
542
|
+
menuEl: B,
|
|
543
543
|
minHeight: u,
|
|
544
544
|
placement: a,
|
|
545
|
-
shouldScroll:
|
|
546
|
-
isFixedPosition:
|
|
545
|
+
shouldScroll: F,
|
|
546
|
+
isFixedPosition: S,
|
|
547
547
|
controlHeight: y
|
|
548
548
|
});
|
|
549
|
-
|
|
549
|
+
v(A.maxHeight), x(A.placement), c?.(A.placement);
|
|
550
550
|
}
|
|
551
551
|
}, [t, a, l, s, u, c, y]), i({
|
|
552
552
|
ref: d,
|
|
553
553
|
placerProps: C(C({}, e), {}, {
|
|
554
|
-
placement:
|
|
555
|
-
maxHeight:
|
|
554
|
+
placement: V || mt(a),
|
|
555
|
+
maxHeight: m
|
|
556
556
|
})
|
|
557
557
|
});
|
|
558
558
|
}, Mn = function(e) {
|
|
559
559
|
var i = e.children, u = e.innerRef, t = e.innerProps;
|
|
560
|
-
return f("div", h({},
|
|
560
|
+
return f("div", h({}, W(e, "menu", {
|
|
561
561
|
menu: !0
|
|
562
562
|
}), {
|
|
563
563
|
ref: u
|
|
@@ -576,7 +576,7 @@ var mt = function(e) {
|
|
|
576
576
|
});
|
|
577
577
|
}, On = function(e) {
|
|
578
578
|
var i = e.children, u = e.innerProps, t = e.innerRef, a = e.isMulti;
|
|
579
|
-
return f("div", h({},
|
|
579
|
+
return f("div", h({}, W(e, "menuList", {
|
|
580
580
|
"menu-list": !0,
|
|
581
581
|
"menu-list--is-multi": a
|
|
582
582
|
}), {
|
|
@@ -592,7 +592,7 @@ var mt = function(e) {
|
|
|
592
592
|
});
|
|
593
593
|
}, Tn = ft, wn = ft, Jn = function(e) {
|
|
594
594
|
var i = e.children, u = i === void 0 ? "No options" : i, t = e.innerProps, a = te(e, Xn);
|
|
595
|
-
return f("div", h({},
|
|
595
|
+
return f("div", h({}, W(C(C({}, a), {}, {
|
|
596
596
|
children: u,
|
|
597
597
|
innerProps: t
|
|
598
598
|
}), "noOptionsMessage", {
|
|
@@ -601,7 +601,7 @@ var mt = function(e) {
|
|
|
601
601
|
}), t), u);
|
|
602
602
|
}, Ln = function(e) {
|
|
603
603
|
var i = e.children, u = i === void 0 ? "Loading..." : i, t = e.innerProps, a = te(e, Rn);
|
|
604
|
-
return f("div", h({},
|
|
604
|
+
return f("div", h({}, W(C(C({}, a), {}, {
|
|
605
605
|
children: u,
|
|
606
606
|
innerProps: t
|
|
607
607
|
}), "loadingMessage", {
|
|
@@ -618,37 +618,37 @@ var mt = function(e) {
|
|
|
618
618
|
zIndex: 1
|
|
619
619
|
};
|
|
620
620
|
}, zn = function(e) {
|
|
621
|
-
var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, l = e.menuPlacement, s = e.menuPosition, o = Q(null), r = Q(null), c = ue(mt(l)), d = q(c, 2), b = d[0], p = d[1],
|
|
621
|
+
var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, l = e.menuPlacement, s = e.menuPosition, o = Q(null), r = Q(null), c = ue(mt(l)), d = q(c, 2), b = d[0], p = d[1], m = oe(function() {
|
|
622
622
|
return {
|
|
623
623
|
setPortalPlacement: p
|
|
624
624
|
};
|
|
625
|
-
}, []),
|
|
625
|
+
}, []), v = ue(null), g = q(v, 2), I = g[0], V = g[1], x = T(function() {
|
|
626
626
|
if (t) {
|
|
627
|
-
var
|
|
628
|
-
(R !==
|
|
627
|
+
var F = xn(t), A = s === "fixed" ? 0 : window.pageYOffset, R = F[b] + A;
|
|
628
|
+
(R !== I?.offset || F.left !== I?.rect.left || F.width !== I?.rect.width) && V({
|
|
629
629
|
offset: R,
|
|
630
|
-
rect:
|
|
630
|
+
rect: F
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
|
-
}, [t, s, b, I
|
|
633
|
+
}, [t, s, b, I?.offset, I?.rect.left, I?.rect.width]);
|
|
634
634
|
Pe(function() {
|
|
635
|
-
|
|
636
|
-
}, [
|
|
635
|
+
x();
|
|
636
|
+
}, [x]);
|
|
637
637
|
var y = T(function() {
|
|
638
|
-
typeof r.current == "function" && (r.current(), r.current = null), t && o.current && (r.current = Yt(t, o.current,
|
|
638
|
+
typeof r.current == "function" && (r.current(), r.current = null), t && o.current && (r.current = Yt(t, o.current, x, {
|
|
639
639
|
elementResize: "ResizeObserver" in window
|
|
640
640
|
}));
|
|
641
|
-
}, [t,
|
|
641
|
+
}, [t, x]);
|
|
642
642
|
Pe(function() {
|
|
643
643
|
y();
|
|
644
644
|
}, [y]);
|
|
645
|
-
var
|
|
646
|
-
o.current =
|
|
645
|
+
var B = T(function(F) {
|
|
646
|
+
o.current = F, y();
|
|
647
647
|
}, [y]);
|
|
648
648
|
if (!i && s !== "fixed" || !I) return null;
|
|
649
|
-
var
|
|
650
|
-
ref:
|
|
651
|
-
},
|
|
649
|
+
var S = f("div", h({
|
|
650
|
+
ref: B
|
|
651
|
+
}, W(C(C({}, e), {}, {
|
|
652
652
|
offset: I.offset,
|
|
653
653
|
position: s,
|
|
654
654
|
rect: I.rect
|
|
@@ -656,8 +656,8 @@ var mt = function(e) {
|
|
|
656
656
|
"menu-portal": !0
|
|
657
657
|
}), a), u);
|
|
658
658
|
return f(vt.Provider, {
|
|
659
|
-
value:
|
|
660
|
-
}, i ? /* @__PURE__ */ Lt(
|
|
659
|
+
value: m
|
|
660
|
+
}, i ? /* @__PURE__ */ Lt(S, i) : S);
|
|
661
661
|
}, kn = function(e) {
|
|
662
662
|
var i = e.isDisabled, u = e.isRtl;
|
|
663
663
|
return {
|
|
@@ -669,7 +669,7 @@ var mt = function(e) {
|
|
|
669
669
|
};
|
|
670
670
|
}, jn = function(e) {
|
|
671
671
|
var i = e.children, u = e.innerProps, t = e.isDisabled, a = e.isRtl;
|
|
672
|
-
return f("div", h({},
|
|
672
|
+
return f("div", h({}, W(e, "container", {
|
|
673
673
|
"--is-disabled": t,
|
|
674
674
|
"--is-rtl": a
|
|
675
675
|
}), u), i);
|
|
@@ -688,7 +688,7 @@ var mt = function(e) {
|
|
|
688
688
|
});
|
|
689
689
|
}, Qn = function(e) {
|
|
690
690
|
var i = e.children, u = e.innerProps, t = e.isMulti, a = e.hasValue;
|
|
691
|
-
return f("div", h({},
|
|
691
|
+
return f("div", h({}, W(e, "valueContainer", {
|
|
692
692
|
"value-container": !0,
|
|
693
693
|
"value-container--is-multi": t,
|
|
694
694
|
"value-container--has-value": a
|
|
@@ -702,7 +702,7 @@ var mt = function(e) {
|
|
|
702
702
|
};
|
|
703
703
|
}, $n = function(e) {
|
|
704
704
|
var i = e.children, u = e.innerProps;
|
|
705
|
-
return f("div", h({},
|
|
705
|
+
return f("div", h({}, W(e, "indicatorsContainer", {
|
|
706
706
|
indicators: !0
|
|
707
707
|
}), u), i);
|
|
708
708
|
}, je, Kn = ["size"], qn = ["innerProps", "isRtl", "size"];
|
|
@@ -754,13 +754,13 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
754
754
|
});
|
|
755
755
|
}, ni = At, ii = function(e) {
|
|
756
756
|
var i = e.children, u = e.innerProps;
|
|
757
|
-
return f("div", h({},
|
|
757
|
+
return f("div", h({}, W(e, "dropdownIndicator", {
|
|
758
758
|
indicator: !0,
|
|
759
759
|
"dropdown-indicator": !0
|
|
760
760
|
}), u), i || f(ht, null));
|
|
761
761
|
}, ui = At, oi = function(e) {
|
|
762
762
|
var i = e.children, u = e.innerProps;
|
|
763
|
-
return f("div", h({},
|
|
763
|
+
return f("div", h({}, W(e, "clearIndicator", {
|
|
764
764
|
indicator: !0,
|
|
765
765
|
"clear-indicator": !0
|
|
766
766
|
}), u), i || f(He, null));
|
|
@@ -777,7 +777,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
777
777
|
});
|
|
778
778
|
}, li = function(e) {
|
|
779
779
|
var i = e.innerProps;
|
|
780
|
-
return f("span", h({}, i,
|
|
780
|
+
return f("span", h({}, i, W(e, "indicatorSeparator", {
|
|
781
781
|
"indicator-separator": !0
|
|
782
782
|
})));
|
|
783
783
|
}, ri = Jt(je || (je = mn([`
|
|
@@ -815,7 +815,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
815
815
|
});
|
|
816
816
|
}, ci = function(e) {
|
|
817
817
|
var i = e.innerProps, u = e.isRtl, t = e.size, a = t === void 0 ? 4 : t, l = te(e, qn);
|
|
818
|
-
return f("div", h({},
|
|
818
|
+
return f("div", h({}, W(C(C({}, l), {}, {
|
|
819
819
|
innerProps: i,
|
|
820
820
|
isRtl: u,
|
|
821
821
|
size: a
|
|
@@ -860,7 +860,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
860
860
|
var i = e.children, u = e.isDisabled, t = e.isFocused, a = e.innerRef, l = e.innerProps, s = e.menuIsOpen;
|
|
861
861
|
return f("div", h({
|
|
862
862
|
ref: a
|
|
863
|
-
},
|
|
863
|
+
}, W(e, "control", {
|
|
864
864
|
control: !0,
|
|
865
865
|
"control--is-disabled": u,
|
|
866
866
|
"control--is-focused": t,
|
|
@@ -876,7 +876,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
876
876
|
};
|
|
877
877
|
}, mi = function(e) {
|
|
878
878
|
var i = e.children, u = e.cx, t = e.getStyles, a = e.getClassNames, l = e.Heading, s = e.headingProps, o = e.innerProps, r = e.label, c = e.theme, d = e.selectProps;
|
|
879
|
-
return f("div", h({},
|
|
879
|
+
return f("div", h({}, W(e, "group", {
|
|
880
880
|
group: !0
|
|
881
881
|
}), o), f(l, h({}, s, {
|
|
882
882
|
selectProps: d,
|
|
@@ -904,7 +904,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
904
904
|
var i = gt(e);
|
|
905
905
|
i.data;
|
|
906
906
|
var u = te(i, pi);
|
|
907
|
-
return f("div", h({},
|
|
907
|
+
return f("div", h({}, W(e, "groupHeading", {
|
|
908
908
|
"group-heading": !0
|
|
909
909
|
}), u));
|
|
910
910
|
}, Ci = mi, hi = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Ai = function(e, i) {
|
|
@@ -948,7 +948,7 @@ var ti = process.env.NODE_ENV === "production" ? {
|
|
|
948
948
|
}, Gt);
|
|
949
949
|
}, yi = function(e) {
|
|
950
950
|
var i = e.cx, u = e.value, t = gt(e), a = t.innerRef, l = t.isDisabled, s = t.isHidden, o = t.inputClassName, r = te(t, hi);
|
|
951
|
-
return f("div", h({},
|
|
951
|
+
return f("div", h({}, W(e, "input", {
|
|
952
952
|
"input-container": !0
|
|
953
953
|
}), {
|
|
954
954
|
"data-value": u || ""
|
|
@@ -1015,20 +1015,20 @@ var Wi = function(e) {
|
|
|
1015
1015
|
var i = e.children, u = e.components, t = e.data, a = e.innerProps, l = e.isDisabled, s = e.removeProps, o = e.selectProps, r = u.Container, c = u.Label, d = u.Remove;
|
|
1016
1016
|
return f(r, {
|
|
1017
1017
|
data: t,
|
|
1018
|
-
innerProps: C(C({},
|
|
1018
|
+
innerProps: C(C({}, W(e, "multiValue", {
|
|
1019
1019
|
"multi-value": !0,
|
|
1020
1020
|
"multi-value--is-disabled": l
|
|
1021
1021
|
})), a),
|
|
1022
1022
|
selectProps: o
|
|
1023
1023
|
}, f(c, {
|
|
1024
1024
|
data: t,
|
|
1025
|
-
innerProps: C({},
|
|
1025
|
+
innerProps: C({}, W(e, "multiValueLabel", {
|
|
1026
1026
|
"multi-value__label": !0
|
|
1027
1027
|
})),
|
|
1028
1028
|
selectProps: o
|
|
1029
1029
|
}, i), f(d, {
|
|
1030
1030
|
data: t,
|
|
1031
|
-
innerProps: C(C({},
|
|
1031
|
+
innerProps: C(C({}, W(e, "multiValueRemove", {
|
|
1032
1032
|
"multi-value__remove": !0
|
|
1033
1033
|
})), {}, {
|
|
1034
1034
|
"aria-label": "Remove ".concat(i || "option")
|
|
@@ -1056,7 +1056,7 @@ var Wi = function(e) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
}, Ni = function(e) {
|
|
1058
1058
|
var i = e.children, u = e.isDisabled, t = e.isFocused, a = e.isSelected, l = e.innerRef, s = e.innerProps;
|
|
1059
|
-
return f("div", h({},
|
|
1059
|
+
return f("div", h({}, W(e, "option", {
|
|
1060
1060
|
option: !0,
|
|
1061
1061
|
"option--is-disabled": u,
|
|
1062
1062
|
"option--is-focused": t,
|
|
@@ -1077,7 +1077,7 @@ var Wi = function(e) {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
}, Di = function(e) {
|
|
1079
1079
|
var i = e.children, u = e.innerProps;
|
|
1080
|
-
return f("div", h({},
|
|
1080
|
+
return f("div", h({}, W(e, "placeholder", {
|
|
1081
1081
|
placeholder: !0
|
|
1082
1082
|
}), u), i);
|
|
1083
1083
|
}, Oi = Di, Ti = function(e, i) {
|
|
@@ -1096,7 +1096,7 @@ var Wi = function(e) {
|
|
|
1096
1096
|
});
|
|
1097
1097
|
}, wi = function(e) {
|
|
1098
1098
|
var i = e.children, u = e.isDisabled, t = e.innerProps;
|
|
1099
|
-
return f("div", h({},
|
|
1099
|
+
return f("div", h({}, W(e, "singleValue", {
|
|
1100
1100
|
"single-value": !0,
|
|
1101
1101
|
"single-value--is-disabled": u
|
|
1102
1102
|
}), t), i);
|
|
@@ -1208,8 +1208,8 @@ var Ui = process.env.NODE_ENV === "production" ? {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
},
|
|
1210
1210
|
onFocus: function(e) {
|
|
1211
|
-
var i = e.context, u = e.focused, t = e.options, a = e.label, l = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, r = e.isSelected, c = e.isAppleDevice, d = function(
|
|
1212
|
-
return
|
|
1211
|
+
var i = e.context, u = e.focused, t = e.options, a = e.label, l = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, r = e.isSelected, c = e.isAppleDevice, d = function(v, g) {
|
|
1212
|
+
return v && v.length ? "".concat(v.indexOf(g) + 1, " of ").concat(v.length) : "";
|
|
1213
1213
|
};
|
|
1214
1214
|
if (i === "value" && s)
|
|
1215
1215
|
return "value ".concat(l, " focused, ").concat(d(s, u), ".");
|
|
@@ -1224,83 +1224,83 @@ var Ui = process.env.NODE_ENV === "production" ? {
|
|
|
1224
1224
|
return "".concat(u).concat(i ? " for search term " + i : "", ".");
|
|
1225
1225
|
}
|
|
1226
1226
|
}, $i = function(e) {
|
|
1227
|
-
var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, l = e.isFocused, s = e.selectValue, o = e.selectProps, r = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, b = o.getOptionLabel, p = o.inputValue,
|
|
1227
|
+
var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, l = e.isFocused, s = e.selectValue, o = e.selectProps, r = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, b = o.getOptionLabel, p = o.inputValue, m = o.isMulti, v = o.isOptionDisabled, g = o.isSearchable, I = o.menuIsOpen, V = o.options, x = o.screenReaderStatus, y = o.tabSelectsValue, B = o.isLoading, S = o["aria-label"], F = o["aria-live"], A = oe(function() {
|
|
1228
1228
|
return C(C({}, _i), d || {});
|
|
1229
|
-
}, [d]), R =
|
|
1229
|
+
}, [d]), R = oe(function() {
|
|
1230
1230
|
var N = "";
|
|
1231
1231
|
if (i && A.onChange) {
|
|
1232
|
-
var
|
|
1232
|
+
var Z = i.option, z = i.options, w = i.removedValue, U = i.removedValues, E = i.value, le = function(K) {
|
|
1233
1233
|
return Array.isArray(K) ? null : K;
|
|
1234
|
-
},
|
|
1234
|
+
}, H = w || Z || le(E), J = H ? b(H) : "", $ = z || U || void 0, ne = $ ? $.map(b) : [], j = C({
|
|
1235
1235
|
// multiSelected items are usually items that have already been selected
|
|
1236
1236
|
// or set by the user as a default value so we assume they are not disabled
|
|
1237
|
-
isDisabled:
|
|
1237
|
+
isDisabled: H && v(H, s),
|
|
1238
1238
|
label: J,
|
|
1239
1239
|
labels: ne
|
|
1240
1240
|
}, i);
|
|
1241
1241
|
N = A.onChange(j);
|
|
1242
1242
|
}
|
|
1243
1243
|
return N;
|
|
1244
|
-
}, [i, A,
|
|
1245
|
-
var N = "",
|
|
1246
|
-
if (
|
|
1244
|
+
}, [i, A, v, s, b]), D = oe(function() {
|
|
1245
|
+
var N = "", Z = u || t, z = !!(u && s && s.includes(u));
|
|
1246
|
+
if (Z && A.onFocus) {
|
|
1247
1247
|
var w = {
|
|
1248
|
-
focused:
|
|
1249
|
-
label: b(
|
|
1250
|
-
isDisabled:
|
|
1251
|
-
isSelected:
|
|
1248
|
+
focused: Z,
|
|
1249
|
+
label: b(Z),
|
|
1250
|
+
isDisabled: v(Z, s),
|
|
1251
|
+
isSelected: z,
|
|
1252
1252
|
options: a,
|
|
1253
|
-
context:
|
|
1253
|
+
context: Z === u ? "menu" : "value",
|
|
1254
1254
|
selectValue: s,
|
|
1255
1255
|
isAppleDevice: c
|
|
1256
1256
|
};
|
|
1257
1257
|
N = A.onFocus(w);
|
|
1258
1258
|
}
|
|
1259
1259
|
return N;
|
|
1260
|
-
}, [u, t, b,
|
|
1260
|
+
}, [u, t, b, v, A, a, s, c]), O = oe(function() {
|
|
1261
1261
|
var N = "";
|
|
1262
|
-
if (I &&
|
|
1263
|
-
var
|
|
1262
|
+
if (I && V.length && !B && A.onFilter) {
|
|
1263
|
+
var Z = x({
|
|
1264
1264
|
count: a.length
|
|
1265
1265
|
});
|
|
1266
1266
|
N = A.onFilter({
|
|
1267
1267
|
inputValue: p,
|
|
1268
|
-
resultsMessage:
|
|
1268
|
+
resultsMessage: Z
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
return N;
|
|
1272
|
-
}, [a, p, I, A,
|
|
1272
|
+
}, [a, p, I, A, V, x, B]), P = i?.action === "initial-input-focus", Y = oe(function() {
|
|
1273
1273
|
var N = "";
|
|
1274
1274
|
if (A.guidance) {
|
|
1275
|
-
var
|
|
1275
|
+
var Z = t ? "value" : I ? "menu" : "input";
|
|
1276
1276
|
N = A.guidance({
|
|
1277
|
-
"aria-label":
|
|
1278
|
-
context:
|
|
1279
|
-
isDisabled: u &&
|
|
1280
|
-
isMulti:
|
|
1277
|
+
"aria-label": S,
|
|
1278
|
+
context: Z,
|
|
1279
|
+
isDisabled: u && v(u, s),
|
|
1280
|
+
isMulti: m,
|
|
1281
1281
|
isSearchable: g,
|
|
1282
1282
|
tabSelectsValue: y,
|
|
1283
|
-
isInitialFocus:
|
|
1283
|
+
isInitialFocus: P
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
1286
|
return N;
|
|
1287
|
-
}, [
|
|
1287
|
+
}, [S, u, t, m, v, g, I, A, s, y, P]), k = f(Re, null, f("span", {
|
|
1288
1288
|
id: "aria-selection"
|
|
1289
1289
|
}, R), f("span", {
|
|
1290
1290
|
id: "aria-focused"
|
|
1291
|
-
},
|
|
1291
|
+
}, D), f("span", {
|
|
1292
1292
|
id: "aria-results"
|
|
1293
1293
|
}, O), f("span", {
|
|
1294
1294
|
id: "aria-guidance"
|
|
1295
|
-
},
|
|
1295
|
+
}, Y));
|
|
1296
1296
|
return f(Re, null, f(Qe, {
|
|
1297
1297
|
id: r
|
|
1298
|
-
},
|
|
1299
|
-
"aria-live":
|
|
1298
|
+
}, P && k), f(Qe, {
|
|
1299
|
+
"aria-live": F,
|
|
1300
1300
|
"aria-atomic": "false",
|
|
1301
1301
|
"aria-relevant": "additions text",
|
|
1302
1302
|
role: "log"
|
|
1303
|
-
}, l && !
|
|
1303
|
+
}, l && !P && k));
|
|
1304
1304
|
}, Ki = $i, Ne = [{
|
|
1305
1305
|
base: "A",
|
|
1306
1306
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -1614,8 +1614,8 @@ var ou = function(e) {
|
|
|
1614
1614
|
function au(n) {
|
|
1615
1615
|
var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, l = Q(!1), s = Q(!1), o = Q(0), r = Q(null), c = T(function(g, I) {
|
|
1616
1616
|
if (r.current !== null) {
|
|
1617
|
-
var
|
|
1618
|
-
A > I && l.current && (u && u(g), l.current = !1),
|
|
1617
|
+
var V = r.current, x = V.scrollTop, y = V.scrollHeight, B = V.clientHeight, S = r.current, F = I > 0, A = y - B - x, R = !1;
|
|
1618
|
+
A > I && l.current && (u && u(g), l.current = !1), F && s.current && (a && a(g), s.current = !1), F && I > A ? (i && !l.current && i(g), S.scrollTop = y, R = !0, l.current = !0) : !F && -I > x && (t && !s.current && t(g), S.scrollTop = 0, R = !0, s.current = !0), R && ou(g);
|
|
1619
1619
|
}
|
|
1620
1620
|
}, [i, u, t, a]), d = T(function(g) {
|
|
1621
1621
|
c(g, g.deltaY);
|
|
@@ -1624,24 +1624,24 @@ function au(n) {
|
|
|
1624
1624
|
}, []), p = T(function(g) {
|
|
1625
1625
|
var I = o.current - g.changedTouches[0].clientY;
|
|
1626
1626
|
c(g, I);
|
|
1627
|
-
}, [c]),
|
|
1627
|
+
}, [c]), m = T(function(g) {
|
|
1628
1628
|
if (g) {
|
|
1629
1629
|
var I = Bn ? {
|
|
1630
1630
|
passive: !1
|
|
1631
1631
|
} : !1;
|
|
1632
1632
|
g.addEventListener("wheel", d, I), g.addEventListener("touchstart", b, I), g.addEventListener("touchmove", p, I);
|
|
1633
1633
|
}
|
|
1634
|
-
}, [p, b, d]),
|
|
1634
|
+
}, [p, b, d]), v = T(function(g) {
|
|
1635
1635
|
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", p, !1));
|
|
1636
1636
|
}, [p, b, d]);
|
|
1637
1637
|
return lt(function() {
|
|
1638
1638
|
if (e) {
|
|
1639
1639
|
var g = r.current;
|
|
1640
|
-
return
|
|
1641
|
-
|
|
1640
|
+
return m(g), function() {
|
|
1641
|
+
v(g);
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
}, [e,
|
|
1644
|
+
}, [e, m, v]), function(g) {
|
|
1645
1645
|
r.current = g;
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
@@ -1673,14 +1673,14 @@ function lu(n) {
|
|
|
1673
1673
|
var e = n.isEnabled, i = n.accountForScrollbars, u = i === void 0 ? !0 : i, t = Q({}), a = Q(null), l = T(function(o) {
|
|
1674
1674
|
if (it) {
|
|
1675
1675
|
var r = document.body, c = r && r.style;
|
|
1676
|
-
if (u && $e.forEach(function(
|
|
1677
|
-
var
|
|
1678
|
-
t.current[
|
|
1676
|
+
if (u && $e.forEach(function(m) {
|
|
1677
|
+
var v = c && c[m];
|
|
1678
|
+
t.current[m] = v;
|
|
1679
1679
|
}), u && se < 1) {
|
|
1680
1680
|
var d = parseInt(t.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, p = window.innerWidth - b + d || 0;
|
|
1681
|
-
Object.keys(Ke).forEach(function(
|
|
1682
|
-
var
|
|
1683
|
-
c && (c[
|
|
1681
|
+
Object.keys(Ke).forEach(function(m) {
|
|
1682
|
+
var v = Ke[m];
|
|
1683
|
+
c && (c[m] = v);
|
|
1684
1684
|
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
1685
1685
|
}
|
|
1686
1686
|
r && nt() && (r.addEventListener("touchmove", qe, re), o && (o.addEventListener("touchstart", tt, re), o.addEventListener("touchmove", et, re))), se += 1;
|
|
@@ -1992,7 +1992,7 @@ function Wt(n, e, i) {
|
|
|
1992
1992
|
var Zt = function(e) {
|
|
1993
1993
|
var i = e.hideSelectedOptions, u = e.isMulti;
|
|
1994
1994
|
return i === void 0 ? u : i;
|
|
1995
|
-
}, Pu = 1, Pt = /* @__PURE__ */ function(n) {
|
|
1995
|
+
}, Pu = 1, Pt = /* @__PURE__ */ (function(n) {
|
|
1996
1996
|
sn(i, n);
|
|
1997
1997
|
var e = bn(i);
|
|
1998
1998
|
function i(u) {
|
|
@@ -2024,10 +2024,10 @@ var Zt = function(e) {
|
|
|
2024
2024
|
var c = t.props, d = c.onChange, b = c.name;
|
|
2025
2025
|
r.name = b, t.ariaOnChange(o, r), d(o, r);
|
|
2026
2026
|
}, t.setValue = function(o, r, c) {
|
|
2027
|
-
var d = t.props, b = d.closeMenuOnSelect, p = d.isMulti,
|
|
2027
|
+
var d = t.props, b = d.closeMenuOnSelect, p = d.isMulti, m = d.inputValue;
|
|
2028
2028
|
t.onInputChange("", {
|
|
2029
2029
|
action: "set-value",
|
|
2030
|
-
prevInputValue:
|
|
2030
|
+
prevInputValue: m
|
|
2031
2031
|
}), b && (t.setState({
|
|
2032
2032
|
inputIsHiddenAfterUpdate: !p
|
|
2033
2033
|
}), t.onMenuClose()), t.setState({
|
|
@@ -2037,13 +2037,13 @@ var Zt = function(e) {
|
|
|
2037
2037
|
option: c
|
|
2038
2038
|
});
|
|
2039
2039
|
}, t.selectOption = function(o) {
|
|
2040
|
-
var r = t.props, c = r.blurInputOnSelect, d = r.isMulti, b = r.name, p = t.state.selectValue,
|
|
2041
|
-
if (
|
|
2040
|
+
var r = t.props, c = r.blurInputOnSelect, d = r.isMulti, b = r.name, p = t.state.selectValue, m = d && t.isOptionSelected(o, p), v = t.isOptionDisabled(o, p);
|
|
2041
|
+
if (m) {
|
|
2042
2042
|
var g = t.getOptionValue(o);
|
|
2043
2043
|
t.setValue(p.filter(function(I) {
|
|
2044
2044
|
return t.getOptionValue(I) !== g;
|
|
2045
2045
|
}), "deselect-option", o);
|
|
2046
|
-
} else if (!
|
|
2046
|
+
} else if (!v)
|
|
2047
2047
|
d ? t.setValue([].concat(Me(p), [o]), "select-option", o) : t.setValue(o, "select-option");
|
|
2048
2048
|
else {
|
|
2049
2049
|
t.ariaOnChange(o, {
|
|
@@ -2055,8 +2055,8 @@ var Zt = function(e) {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
c && t.blurInput();
|
|
2057
2057
|
}, t.removeValue = function(o) {
|
|
2058
|
-
var r = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), b = c.filter(function(
|
|
2059
|
-
return t.getOptionValue(
|
|
2058
|
+
var r = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), b = c.filter(function(m) {
|
|
2059
|
+
return t.getOptionValue(m) !== d;
|
|
2060
2060
|
}), p = ve(r, b, b[0] || null);
|
|
2061
2061
|
t.onChange(p, {
|
|
2062
2062
|
action: "remove-value",
|
|
@@ -2196,8 +2196,8 @@ var Zt = function(e) {
|
|
|
2196
2196
|
}, t.onValueInputFocus = function(o) {
|
|
2197
2197
|
o.preventDefault(), o.stopPropagation(), t.focus();
|
|
2198
2198
|
}, t.onKeyDown = function(o) {
|
|
2199
|
-
var r = t.props, c = r.isMulti, d = r.backspaceRemovesValue, b = r.escapeClearsValue, p = r.inputValue,
|
|
2200
|
-
if (!
|
|
2199
|
+
var r = t.props, c = r.isMulti, d = r.backspaceRemovesValue, b = r.escapeClearsValue, p = r.inputValue, m = r.isClearable, v = r.isDisabled, g = r.menuIsOpen, I = r.onKeyDown, V = r.tabSelectsValue, x = r.openMenuOnFocus, y = t.state, B = y.focusedOption, S = y.focusedValue, F = y.selectValue;
|
|
2200
|
+
if (!v && !(typeof I == "function" && (I(o), o.defaultPrevented))) {
|
|
2201
2201
|
switch (t.blockOptionHover = !0, o.key) {
|
|
2202
2202
|
case "ArrowLeft":
|
|
2203
2203
|
if (!c || p) return;
|
|
@@ -2210,26 +2210,26 @@ var Zt = function(e) {
|
|
|
2210
2210
|
case "Delete":
|
|
2211
2211
|
case "Backspace":
|
|
2212
2212
|
if (p) return;
|
|
2213
|
-
if (
|
|
2214
|
-
t.removeValue(
|
|
2213
|
+
if (S)
|
|
2214
|
+
t.removeValue(S);
|
|
2215
2215
|
else {
|
|
2216
2216
|
if (!d) return;
|
|
2217
|
-
c ? t.popValue() :
|
|
2217
|
+
c ? t.popValue() : m && t.clearValue();
|
|
2218
2218
|
}
|
|
2219
2219
|
break;
|
|
2220
2220
|
case "Tab":
|
|
2221
|
-
if (t.isComposing || o.shiftKey || !g || !
|
|
2221
|
+
if (t.isComposing || o.shiftKey || !g || !V || !B || // don't capture the event if the menu opens on focus and the focused
|
|
2222
2222
|
// option is already selected; it breaks the flow of navigation
|
|
2223
|
-
|
|
2223
|
+
x && t.isOptionSelected(B, F))
|
|
2224
2224
|
return;
|
|
2225
|
-
t.selectOption(
|
|
2225
|
+
t.selectOption(B);
|
|
2226
2226
|
break;
|
|
2227
2227
|
case "Enter":
|
|
2228
2228
|
if (o.keyCode === 229)
|
|
2229
2229
|
break;
|
|
2230
2230
|
if (g) {
|
|
2231
|
-
if (!
|
|
2232
|
-
t.selectOption(
|
|
2231
|
+
if (!B || t.isComposing) return;
|
|
2232
|
+
t.selectOption(B);
|
|
2233
2233
|
break;
|
|
2234
2234
|
}
|
|
2235
2235
|
return;
|
|
@@ -2239,7 +2239,7 @@ var Zt = function(e) {
|
|
|
2239
2239
|
}), t.onInputChange("", {
|
|
2240
2240
|
action: "menu-close",
|
|
2241
2241
|
prevInputValue: p
|
|
2242
|
-
}), t.onMenuClose()) :
|
|
2242
|
+
}), t.onMenuClose()) : m && b && t.clearValue();
|
|
2243
2243
|
break;
|
|
2244
2244
|
case " ":
|
|
2245
2245
|
if (p)
|
|
@@ -2248,8 +2248,8 @@ var Zt = function(e) {
|
|
|
2248
2248
|
t.openMenu("first");
|
|
2249
2249
|
break;
|
|
2250
2250
|
}
|
|
2251
|
-
if (!
|
|
2252
|
-
t.selectOption(
|
|
2251
|
+
if (!B) return;
|
|
2252
|
+
t.selectOption(B);
|
|
2253
2253
|
break;
|
|
2254
2254
|
case "ArrowUp":
|
|
2255
2255
|
g ? t.focusOption("up") : t.openMenu("last");
|
|
@@ -2413,17 +2413,17 @@ var Zt = function(e) {
|
|
|
2413
2413
|
}, {
|
|
2414
2414
|
key: "getCommonProps",
|
|
2415
2415
|
value: function() {
|
|
2416
|
-
var t = this.clearValue, a = this.cx, l = this.getStyles, s = this.getClassNames, o = this.getValue, r = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, p = d.isRtl,
|
|
2416
|
+
var t = this.clearValue, a = this.cx, l = this.getStyles, s = this.getClassNames, o = this.getValue, r = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, p = d.isRtl, m = d.options, v = this.hasValue();
|
|
2417
2417
|
return {
|
|
2418
2418
|
clearValue: t,
|
|
2419
2419
|
cx: a,
|
|
2420
2420
|
getStyles: l,
|
|
2421
2421
|
getClassNames: s,
|
|
2422
2422
|
getValue: o,
|
|
2423
|
-
hasValue:
|
|
2423
|
+
hasValue: v,
|
|
2424
2424
|
isMulti: b,
|
|
2425
2425
|
isRtl: p,
|
|
2426
|
-
options:
|
|
2426
|
+
options: m,
|
|
2427
2427
|
selectOption: r,
|
|
2428
2428
|
selectProps: d,
|
|
2429
2429
|
setValue: c,
|
|
@@ -2520,7 +2520,7 @@ var Zt = function(e) {
|
|
|
2520
2520
|
// Renderers
|
|
2521
2521
|
// ==============================
|
|
2522
2522
|
function() {
|
|
2523
|
-
var t = this.props, a = t.isDisabled, l = t.isSearchable, s = t.inputId, o = t.inputValue, r = t.tabIndex, c = t.form, d = t.menuIsOpen, b = t.required, p = this.getComponents(),
|
|
2523
|
+
var t = this.props, a = t.isDisabled, l = t.isSearchable, s = t.inputId, o = t.inputValue, r = t.tabIndex, c = t.form, d = t.menuIsOpen, b = t.required, p = this.getComponents(), m = p.Input, v = this.state, g = v.inputIsHidden, I = v.ariaSelection, V = this.commonProps, x = s || this.getElementId("input"), y = C(C(C({
|
|
2524
2524
|
"aria-autocomplete": "list",
|
|
2525
2525
|
"aria-expanded": d,
|
|
2526
2526
|
"aria-haspopup": !0,
|
|
@@ -2535,16 +2535,16 @@ var Zt = function(e) {
|
|
|
2535
2535
|
"aria-controls": this.getElementId("listbox")
|
|
2536
2536
|
}), !l && {
|
|
2537
2537
|
"aria-readonly": !0
|
|
2538
|
-
}), this.hasValue() ?
|
|
2538
|
+
}), this.hasValue() ? I?.action === "initial-input-focus" && {
|
|
2539
2539
|
"aria-describedby": this.getElementId("live-region")
|
|
2540
2540
|
} : {
|
|
2541
2541
|
"aria-describedby": this.getElementId("placeholder")
|
|
2542
2542
|
});
|
|
2543
|
-
return l ? /* @__PURE__ */ X.createElement(
|
|
2543
|
+
return l ? /* @__PURE__ */ X.createElement(m, h({}, V, {
|
|
2544
2544
|
autoCapitalize: "none",
|
|
2545
2545
|
autoComplete: "off",
|
|
2546
2546
|
autoCorrect: "off",
|
|
2547
|
-
id:
|
|
2547
|
+
id: x,
|
|
2548
2548
|
innerRef: this.getInputRef,
|
|
2549
2549
|
isDisabled: a,
|
|
2550
2550
|
isHidden: g,
|
|
@@ -2557,7 +2557,7 @@ var Zt = function(e) {
|
|
|
2557
2557
|
type: "text",
|
|
2558
2558
|
value: o
|
|
2559
2559
|
}, y)) : /* @__PURE__ */ X.createElement(uu, h({
|
|
2560
|
-
id:
|
|
2560
|
+
id: x,
|
|
2561
2561
|
innerRef: this.getInputRef,
|
|
2562
2562
|
onBlur: this.onInputBlur,
|
|
2563
2563
|
onChange: he,
|
|
@@ -2573,27 +2573,27 @@ var Zt = function(e) {
|
|
|
2573
2573
|
}, {
|
|
2574
2574
|
key: "renderPlaceholderOrValue",
|
|
2575
2575
|
value: function() {
|
|
2576
|
-
var t = this, a = this.getComponents(), l = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, r = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, b = this.commonProps, p = this.props,
|
|
2577
|
-
if (!this.hasValue() || !
|
|
2576
|
+
var t = this, a = this.getComponents(), l = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, r = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, b = this.commonProps, p = this.props, m = p.controlShouldRenderValue, v = p.isDisabled, g = p.isMulti, I = p.inputValue, V = p.placeholder, x = this.state, y = x.selectValue, B = x.focusedValue, S = x.isFocused;
|
|
2577
|
+
if (!this.hasValue() || !m)
|
|
2578
2578
|
return I ? null : /* @__PURE__ */ X.createElement(d, h({}, b, {
|
|
2579
2579
|
key: "placeholder",
|
|
2580
|
-
isDisabled:
|
|
2581
|
-
isFocused:
|
|
2580
|
+
isDisabled: v,
|
|
2581
|
+
isFocused: S,
|
|
2582
2582
|
innerProps: {
|
|
2583
2583
|
id: this.getElementId("placeholder")
|
|
2584
2584
|
}
|
|
2585
|
-
}),
|
|
2585
|
+
}), V);
|
|
2586
2586
|
if (g)
|
|
2587
2587
|
return y.map(function(A, R) {
|
|
2588
|
-
var
|
|
2588
|
+
var D = A === B, O = "".concat(t.getOptionLabel(A), "-").concat(t.getOptionValue(A));
|
|
2589
2589
|
return /* @__PURE__ */ X.createElement(l, h({}, b, {
|
|
2590
2590
|
components: {
|
|
2591
2591
|
Container: s,
|
|
2592
2592
|
Label: o,
|
|
2593
2593
|
Remove: r
|
|
2594
2594
|
},
|
|
2595
|
-
isFocused:
|
|
2596
|
-
isDisabled:
|
|
2595
|
+
isFocused: D,
|
|
2596
|
+
isDisabled: v,
|
|
2597
2597
|
key: O,
|
|
2598
2598
|
index: R,
|
|
2599
2599
|
removeProps: {
|
|
@@ -2603,8 +2603,8 @@ var Zt = function(e) {
|
|
|
2603
2603
|
onTouchEnd: function() {
|
|
2604
2604
|
return t.removeValue(A);
|
|
2605
2605
|
},
|
|
2606
|
-
onMouseDown: function(
|
|
2607
|
-
|
|
2606
|
+
onMouseDown: function(Y) {
|
|
2607
|
+
Y.preventDefault();
|
|
2608
2608
|
}
|
|
2609
2609
|
},
|
|
2610
2610
|
data: A
|
|
@@ -2612,11 +2612,11 @@ var Zt = function(e) {
|
|
|
2612
2612
|
});
|
|
2613
2613
|
if (I)
|
|
2614
2614
|
return null;
|
|
2615
|
-
var
|
|
2615
|
+
var F = y[0];
|
|
2616
2616
|
return /* @__PURE__ */ X.createElement(c, h({}, b, {
|
|
2617
|
-
data:
|
|
2618
|
-
isDisabled:
|
|
2619
|
-
}), this.formatOptionLabel(
|
|
2617
|
+
data: F,
|
|
2618
|
+
isDisabled: v
|
|
2619
|
+
}), this.formatOptionLabel(F, "value"));
|
|
2620
2620
|
}
|
|
2621
2621
|
}, {
|
|
2622
2622
|
key: "renderClearIndicator",
|
|
@@ -2678,10 +2678,10 @@ var Zt = function(e) {
|
|
|
2678
2678
|
}, {
|
|
2679
2679
|
key: "renderMenu",
|
|
2680
2680
|
value: function() {
|
|
2681
|
-
var t = this, a = this.getComponents(), l = a.Group, s = a.GroupHeading, o = a.Menu, r = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, b = a.NoOptionsMessage, p = a.Option,
|
|
2682
|
-
if (!
|
|
2683
|
-
var
|
|
2684
|
-
var ne = J.type, j = J.data, ie = J.isDisabled, K = J.isSelected, ge = J.label, Nt = J.value, Oe =
|
|
2681
|
+
var t = this, a = this.getComponents(), l = a.Group, s = a.GroupHeading, o = a.Menu, r = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, b = a.NoOptionsMessage, p = a.Option, m = this.commonProps, v = this.state.focusedOption, g = this.props, I = g.captureMenuScroll, V = g.inputValue, x = g.isLoading, y = g.loadingMessage, B = g.minMenuHeight, S = g.maxMenuHeight, F = g.menuIsOpen, A = g.menuPlacement, R = g.menuPosition, D = g.menuPortalTarget, O = g.menuShouldBlockScroll, P = g.menuShouldScrollIntoView, Y = g.noOptionsMessage, k = g.onMenuScrollToTop, N = g.onMenuScrollToBottom;
|
|
2682
|
+
if (!F) return null;
|
|
2683
|
+
var Z = function(J, $) {
|
|
2684
|
+
var ne = J.type, j = J.data, ie = J.isDisabled, K = J.isSelected, ge = J.label, Nt = J.value, Oe = v === j, Te = ie ? void 0 : function() {
|
|
2685
2685
|
return t.onOptionHover(j);
|
|
2686
2686
|
}, Mt = ie ? void 0 : function() {
|
|
2687
2687
|
return t.selectOption(j);
|
|
@@ -2695,7 +2695,7 @@ var Zt = function(e) {
|
|
|
2695
2695
|
"aria-selected": t.state.isAppleDevice ? void 0 : K
|
|
2696
2696
|
// is not supported on Apple devices
|
|
2697
2697
|
};
|
|
2698
|
-
return /* @__PURE__ */ X.createElement(p, h({},
|
|
2698
|
+
return /* @__PURE__ */ X.createElement(p, h({}, m, {
|
|
2699
2699
|
innerProps: Ht,
|
|
2700
2700
|
data: j,
|
|
2701
2701
|
isDisabled: ie,
|
|
@@ -2707,55 +2707,55 @@ var Zt = function(e) {
|
|
|
2707
2707
|
isFocused: Oe,
|
|
2708
2708
|
innerRef: Oe ? t.getFocusedOptionRef : void 0
|
|
2709
2709
|
}), t.formatOptionLabel(J.data, "menu"));
|
|
2710
|
-
},
|
|
2710
|
+
}, z;
|
|
2711
2711
|
if (this.hasOptions())
|
|
2712
|
-
|
|
2713
|
-
if (
|
|
2714
|
-
var J =
|
|
2715
|
-
return /* @__PURE__ */ X.createElement(l, h({},
|
|
2712
|
+
z = this.getCategorizedOptions().map(function(H) {
|
|
2713
|
+
if (H.type === "group") {
|
|
2714
|
+
var J = H.data, $ = H.options, ne = H.index, j = "".concat(t.getElementId("group"), "-").concat(ne), ie = "".concat(j, "-heading");
|
|
2715
|
+
return /* @__PURE__ */ X.createElement(l, h({}, m, {
|
|
2716
2716
|
key: j,
|
|
2717
2717
|
data: J,
|
|
2718
2718
|
options: $,
|
|
2719
2719
|
Heading: s,
|
|
2720
2720
|
headingProps: {
|
|
2721
2721
|
id: ie,
|
|
2722
|
-
data:
|
|
2722
|
+
data: H.data
|
|
2723
2723
|
},
|
|
2724
|
-
label: t.formatGroupLabel(
|
|
2725
|
-
}),
|
|
2726
|
-
return
|
|
2724
|
+
label: t.formatGroupLabel(H.data)
|
|
2725
|
+
}), H.options.map(function(K) {
|
|
2726
|
+
return Z(K, "".concat(ne, "-").concat(K.index));
|
|
2727
2727
|
}));
|
|
2728
|
-
} else if (
|
|
2729
|
-
return
|
|
2728
|
+
} else if (H.type === "option")
|
|
2729
|
+
return Z(H, "".concat(H.index));
|
|
2730
2730
|
});
|
|
2731
|
-
else if (
|
|
2731
|
+
else if (x) {
|
|
2732
2732
|
var w = y({
|
|
2733
|
-
inputValue:
|
|
2733
|
+
inputValue: V
|
|
2734
2734
|
});
|
|
2735
2735
|
if (w === null) return null;
|
|
2736
|
-
|
|
2736
|
+
z = /* @__PURE__ */ X.createElement(d, m, w);
|
|
2737
2737
|
} else {
|
|
2738
|
-
var
|
|
2739
|
-
inputValue:
|
|
2738
|
+
var U = Y({
|
|
2739
|
+
inputValue: V
|
|
2740
2740
|
});
|
|
2741
|
-
if (
|
|
2742
|
-
|
|
2741
|
+
if (U === null) return null;
|
|
2742
|
+
z = /* @__PURE__ */ X.createElement(b, m, U);
|
|
2743
2743
|
}
|
|
2744
|
-
var
|
|
2745
|
-
minMenuHeight:
|
|
2746
|
-
maxMenuHeight:
|
|
2744
|
+
var E = {
|
|
2745
|
+
minMenuHeight: B,
|
|
2746
|
+
maxMenuHeight: S,
|
|
2747
2747
|
menuPlacement: A,
|
|
2748
2748
|
menuPosition: R,
|
|
2749
|
-
menuShouldScrollIntoView:
|
|
2750
|
-
},
|
|
2751
|
-
var J =
|
|
2752
|
-
return /* @__PURE__ */ X.createElement(o, h({},
|
|
2749
|
+
menuShouldScrollIntoView: P
|
|
2750
|
+
}, le = /* @__PURE__ */ X.createElement(Nn, h({}, m, E), function(H) {
|
|
2751
|
+
var J = H.ref, $ = H.placerProps, ne = $.placement, j = $.maxHeight;
|
|
2752
|
+
return /* @__PURE__ */ X.createElement(o, h({}, m, E, {
|
|
2753
2753
|
innerRef: J,
|
|
2754
2754
|
innerProps: {
|
|
2755
2755
|
onMouseDown: t.onMenuMouseDown,
|
|
2756
2756
|
onMouseMove: t.onMenuMouseMove
|
|
2757
2757
|
},
|
|
2758
|
-
isLoading:
|
|
2758
|
+
isLoading: x,
|
|
2759
2759
|
placement: ne
|
|
2760
2760
|
}), /* @__PURE__ */ X.createElement(du, {
|
|
2761
2761
|
captureEnabled: I,
|
|
@@ -2763,27 +2763,27 @@ var Zt = function(e) {
|
|
|
2763
2763
|
onBottomArrive: N,
|
|
2764
2764
|
lockEnabled: O
|
|
2765
2765
|
}, function(ie) {
|
|
2766
|
-
return /* @__PURE__ */ X.createElement(r, h({},
|
|
2766
|
+
return /* @__PURE__ */ X.createElement(r, h({}, m, {
|
|
2767
2767
|
innerRef: function(ge) {
|
|
2768
2768
|
t.getMenuListRef(ge), ie(ge);
|
|
2769
2769
|
},
|
|
2770
2770
|
innerProps: {
|
|
2771
2771
|
role: "listbox",
|
|
2772
|
-
"aria-multiselectable":
|
|
2772
|
+
"aria-multiselectable": m.isMulti,
|
|
2773
2773
|
id: t.getElementId("listbox")
|
|
2774
2774
|
},
|
|
2775
|
-
isLoading:
|
|
2775
|
+
isLoading: x,
|
|
2776
2776
|
maxHeight: j,
|
|
2777
|
-
focusedOption:
|
|
2778
|
-
}),
|
|
2777
|
+
focusedOption: v
|
|
2778
|
+
}), z);
|
|
2779
2779
|
}));
|
|
2780
2780
|
});
|
|
2781
|
-
return
|
|
2782
|
-
appendTo:
|
|
2781
|
+
return D || R === "fixed" ? /* @__PURE__ */ X.createElement(c, h({}, m, {
|
|
2782
|
+
appendTo: D,
|
|
2783
2783
|
controlElement: this.controlRef,
|
|
2784
2784
|
menuPlacement: A,
|
|
2785
2785
|
menuPosition: R
|
|
2786
|
-
}),
|
|
2786
|
+
}), le) : le;
|
|
2787
2787
|
}
|
|
2788
2788
|
}, {
|
|
2789
2789
|
key: "renderFormField",
|
|
@@ -2797,8 +2797,8 @@ var Zt = function(e) {
|
|
|
2797
2797
|
if (!(!r || s))
|
|
2798
2798
|
if (o)
|
|
2799
2799
|
if (l) {
|
|
2800
|
-
var b = d.map(function(
|
|
2801
|
-
return t.getOptionValue(
|
|
2800
|
+
var b = d.map(function(v) {
|
|
2801
|
+
return t.getOptionValue(v);
|
|
2802
2802
|
}).join(l);
|
|
2803
2803
|
return /* @__PURE__ */ X.createElement("input", {
|
|
2804
2804
|
name: r,
|
|
@@ -2806,12 +2806,12 @@ var Zt = function(e) {
|
|
|
2806
2806
|
value: b
|
|
2807
2807
|
});
|
|
2808
2808
|
} else {
|
|
2809
|
-
var p = d.length > 0 ? d.map(function(
|
|
2809
|
+
var p = d.length > 0 ? d.map(function(v, g) {
|
|
2810
2810
|
return /* @__PURE__ */ X.createElement("input", {
|
|
2811
2811
|
key: "i-".concat(g),
|
|
2812
2812
|
name: r,
|
|
2813
2813
|
type: "hidden",
|
|
2814
|
-
value: t.getOptionValue(
|
|
2814
|
+
value: t.getOptionValue(v)
|
|
2815
2815
|
});
|
|
2816
2816
|
}) : /* @__PURE__ */ X.createElement("input", {
|
|
2817
2817
|
name: r,
|
|
@@ -2821,11 +2821,11 @@ var Zt = function(e) {
|
|
|
2821
2821
|
return /* @__PURE__ */ X.createElement("div", null, p);
|
|
2822
2822
|
}
|
|
2823
2823
|
else {
|
|
2824
|
-
var
|
|
2824
|
+
var m = d[0] ? this.getOptionValue(d[0]) : "";
|
|
2825
2825
|
return /* @__PURE__ */ X.createElement("input", {
|
|
2826
2826
|
name: r,
|
|
2827
2827
|
type: "hidden",
|
|
2828
|
-
value:
|
|
2828
|
+
value: m
|
|
2829
2829
|
});
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
@@ -2847,61 +2847,61 @@ var Zt = function(e) {
|
|
|
2847
2847
|
}, {
|
|
2848
2848
|
key: "render",
|
|
2849
2849
|
value: function() {
|
|
2850
|
-
var t = this.getComponents(), a = t.Control, l = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, r = this.props, c = r.className, d = r.id, b = r.isDisabled, p = r.menuIsOpen,
|
|
2851
|
-
return /* @__PURE__ */ X.createElement(s, h({},
|
|
2850
|
+
var t = this.getComponents(), a = t.Control, l = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, r = this.props, c = r.className, d = r.id, b = r.isDisabled, p = r.menuIsOpen, m = this.state.isFocused, v = this.commonProps = this.getCommonProps();
|
|
2851
|
+
return /* @__PURE__ */ X.createElement(s, h({}, v, {
|
|
2852
2852
|
className: c,
|
|
2853
2853
|
innerProps: {
|
|
2854
2854
|
id: d,
|
|
2855
2855
|
onKeyDown: this.onKeyDown
|
|
2856
2856
|
},
|
|
2857
2857
|
isDisabled: b,
|
|
2858
|
-
isFocused:
|
|
2859
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ X.createElement(a, h({},
|
|
2858
|
+
isFocused: m
|
|
2859
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ X.createElement(a, h({}, v, {
|
|
2860
2860
|
innerRef: this.getControlRef,
|
|
2861
2861
|
innerProps: {
|
|
2862
2862
|
onMouseDown: this.onControlMouseDown,
|
|
2863
2863
|
onTouchEnd: this.onControlTouchEnd
|
|
2864
2864
|
},
|
|
2865
2865
|
isDisabled: b,
|
|
2866
|
-
isFocused:
|
|
2866
|
+
isFocused: m,
|
|
2867
2867
|
menuIsOpen: p
|
|
2868
|
-
}), /* @__PURE__ */ X.createElement(o, h({},
|
|
2868
|
+
}), /* @__PURE__ */ X.createElement(o, h({}, v, {
|
|
2869
2869
|
isDisabled: b
|
|
2870
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ X.createElement(l, h({},
|
|
2870
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ X.createElement(l, h({}, v, {
|
|
2871
2871
|
isDisabled: b
|
|
2872
2872
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
2873
2873
|
}
|
|
2874
2874
|
}], [{
|
|
2875
2875
|
key: "getDerivedStateFromProps",
|
|
2876
2876
|
value: function(t, a) {
|
|
2877
|
-
var l = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, r = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, b = a.instancePrefix, p = t.options,
|
|
2878
|
-
if (l && (
|
|
2879
|
-
var y =
|
|
2880
|
-
|
|
2881
|
-
selectValue:
|
|
2882
|
-
focusedOption:
|
|
2877
|
+
var l = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, r = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, b = a.instancePrefix, p = t.options, m = t.value, v = t.menuIsOpen, g = t.inputValue, I = t.isMulti, V = Ye(m), x = {};
|
|
2878
|
+
if (l && (m !== l.value || p !== l.options || v !== l.menuIsOpen || g !== l.inputValue)) {
|
|
2879
|
+
var y = v ? Ru(t, V) : [], B = v ? ot(fe(t, V), "".concat(b, "-option")) : [], S = s ? Wu(a, V) : null, F = Zu(a, y), A = Xe(B, F);
|
|
2880
|
+
x = {
|
|
2881
|
+
selectValue: V,
|
|
2882
|
+
focusedOption: F,
|
|
2883
2883
|
focusedOptionId: A,
|
|
2884
|
-
focusableOptionsWithIds:
|
|
2885
|
-
focusedValue:
|
|
2884
|
+
focusableOptionsWithIds: B,
|
|
2885
|
+
focusedValue: S,
|
|
2886
2886
|
clearFocusValueOnUpdate: !1
|
|
2887
2887
|
};
|
|
2888
2888
|
}
|
|
2889
2889
|
var R = o != null && t !== l ? {
|
|
2890
2890
|
inputIsHidden: o,
|
|
2891
2891
|
inputIsHiddenAfterUpdate: void 0
|
|
2892
|
-
} : {},
|
|
2893
|
-
return c && !O && (
|
|
2894
|
-
value: ve(I,
|
|
2895
|
-
options:
|
|
2892
|
+
} : {}, D = r, O = c && d;
|
|
2893
|
+
return c && !O && (D = {
|
|
2894
|
+
value: ve(I, V, V[0] || null),
|
|
2895
|
+
options: V,
|
|
2896
2896
|
action: "initial-input-focus"
|
|
2897
|
-
}, O = !d),
|
|
2897
|
+
}, O = !d), r?.action === "initial-input-focus" && (D = null), C(C(C({}, x), R), {}, {
|
|
2898
2898
|
prevProps: t,
|
|
2899
|
-
ariaSelection:
|
|
2899
|
+
ariaSelection: D,
|
|
2900
2900
|
prevWasFocused: O
|
|
2901
2901
|
});
|
|
2902
2902
|
}
|
|
2903
2903
|
}]), i;
|
|
2904
|
-
}(wt);
|
|
2904
|
+
})(wt);
|
|
2905
2905
|
Pt.defaultProps = Xu;
|
|
2906
2906
|
var Nu = /* @__PURE__ */ rt(function(n, e) {
|
|
2907
2907
|
var i = an(n);
|
|
@@ -2963,7 +2963,7 @@ const Hu = (n) => {
|
|
|
2963
2963
|
isDisabled: o,
|
|
2964
2964
|
isSelected: r,
|
|
2965
2965
|
isAppleDevice: c
|
|
2966
|
-
} = i, d = (b, p) => b
|
|
2966
|
+
} = i, d = (b, p) => b?.length ? `${b.indexOf(p) + 1} ${e("of")} ${b.length}.` : "";
|
|
2967
2967
|
if (u === "value" && s)
|
|
2968
2968
|
return `${e("focusValue", [l])}, ${d(s, t)}`;
|
|
2969
2969
|
if (u === "menu" && c) {
|
|
@@ -2983,7 +2983,7 @@ const Hu = (n) => {
|
|
|
2983
2983
|
return `${s} ${o},${r}`;
|
|
2984
2984
|
}
|
|
2985
2985
|
};
|
|
2986
|
-
}, Du = "ds-
|
|
2986
|
+
}, Du = "ds-combobox_root_196k7_1", Ou = "ds-combobox_hint_196k7_1", Tu = "ds-combobox_label_196k7_1", wu = "ds-combobox_label--hidden_196k7_29", Ju = "ds-combobox_label--disabled_196k7_42", Lu = "ds-combobox_feedback_196k7_62", Yu = "ds-combobox_select_196k7_66", zu = "ds-combobox_select--small_196k7_74", ku = "ds-combobox_select--invalid_196k7_186", ju = "ds-combobox_select--disabled_196k7_286", Uu = "ds-combobox_select--focused_196k7_297", Qu = "ds-combobox_select--hovered_196k7_314", _u = "ds-combobox_placeholder_196k7_324", $u = "ds-combobox_menu-list_196k7_333", Ku = "ds-combobox_group-heading_196k7_343", qu = "ds-combobox_option_196k7_365", eo = "ds-combobox_option--small_196k7_381", to = "ds-combobox_option--grouped_196k7_396", no = "ds-combobox_option--single_196k7_399", io = "ds-combobox_option--disabled_196k7_402", uo = "ds-combobox_option--focus-hover_196k7_410", oo = "ds-combobox_option--text_196k7_422", ao = "ds-combobox_option--check-icon_196k7_425", lo = "ds-combobox_option--check-icon--disabled_196k7_435", ro = "ds-combobox_single-option_196k7_444", so = "ds-combobox_multi-option_196k7_450", co = "ds-combobox_single-value_196k7_454", bo = "ds-combobox_single-value--text_196k7_458", go = "ds-combobox_leading-icon_196k7_465", po = "ds-combobox_leading-icon--small_196k7_476", Io = "ds-combobox_leading-icon--selected_196k7_476", mo = "ds-combobox_leading-icon--disabled_196k7_479", vo = "ds-combobox_indicator_196k7_488", fo = "ds-combobox_clear_196k7_489", Co = "ds-combobox_indicator--small_196k7_495", ho = "ds-combobox_clear--small_196k7_496", Ao = "ds-combobox_indicator--icon_196k7_500", Go = "ds-combobox_clear--icon_196k7_501", xo = "ds-combobox_indicator--icon--small_196k7_508", yo = "ds-combobox_clear--icon--small_196k7_509", G = {
|
|
2987
2987
|
root: Du,
|
|
2988
2988
|
hint: Ou,
|
|
2989
2989
|
label: Tu,
|
|
@@ -3001,104 +3001,106 @@ const Hu = (n) => {
|
|
|
3001
3001
|
groupHeading: Ku,
|
|
3002
3002
|
option: qu,
|
|
3003
3003
|
optionSmall: eo,
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3004
|
+
optionGrouped: to,
|
|
3005
|
+
optionSingle: no,
|
|
3006
|
+
optionDisabled: io,
|
|
3007
|
+
optionFocusHover: uo,
|
|
3008
|
+
optionText: oo,
|
|
3009
|
+
optionCheckIcon: ao,
|
|
3010
|
+
optionCheckIconDisabled: lo,
|
|
3011
|
+
singleOption: ro,
|
|
3012
|
+
multiOption: so,
|
|
3013
|
+
singleValue: co,
|
|
3014
|
+
singleValueText: bo,
|
|
3015
|
+
leadingIcon: go,
|
|
3016
|
+
leadingIconSmall: po,
|
|
3017
|
+
leadingIconSelected: Io,
|
|
3018
|
+
leadingIconDisabled: mo,
|
|
3019
|
+
indicator: vo,
|
|
3020
|
+
clear: fo,
|
|
3021
|
+
indicatorSmall: Co,
|
|
3022
|
+
clearSmall: ho,
|
|
3023
|
+
indicatorIcon: Ao,
|
|
3024
|
+
clearIcon: Go,
|
|
3025
|
+
indicatorIconSmall: xo,
|
|
3026
|
+
clearIconSmall: yo
|
|
3027
|
+
}, Vo = rt(({
|
|
3027
3028
|
id: n,
|
|
3028
3029
|
label: e,
|
|
3029
3030
|
options: i,
|
|
3030
3031
|
className: u,
|
|
3031
3032
|
disabled: t = !1,
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3033
|
+
filterOption: a,
|
|
3034
|
+
hint: l,
|
|
3035
|
+
hideLabel: s = !1,
|
|
3036
|
+
invalid: o = !1,
|
|
3037
|
+
isMulti: r = !1,
|
|
3038
|
+
lang: c = "en",
|
|
3039
|
+
required: d = !1,
|
|
3040
|
+
size: b = "medium",
|
|
3041
|
+
systemFeedback: p,
|
|
3042
|
+
translations: m,
|
|
3041
3043
|
value: v,
|
|
3042
|
-
onValueChange:
|
|
3043
|
-
onInputChange:
|
|
3044
|
-
...
|
|
3044
|
+
onValueChange: g,
|
|
3045
|
+
onInputChange: I,
|
|
3046
|
+
...V
|
|
3045
3047
|
}, x) => {
|
|
3046
|
-
const [
|
|
3047
|
-
|
|
3048
|
-
},
|
|
3048
|
+
const [y, B] = ue(!1), S = oe(() => i, [JSON.stringify(i)]), F = Q(null), A = (E) => {
|
|
3049
|
+
E && (F.current = E, typeof x == "function" ? x(E.inputRef) : x && (x.current = E.inputRef));
|
|
3050
|
+
}, R = m ? m.placeholder : ye[c].placeholder, D = jt(s), O = `${n}-label`, P = `${n}-feedback`, Y = `${n}-hint`, k = l ? ` ${Y}` : "", N = () => m ? m.filterNoOptions : ye[c].filterNoOptions, Z = L(G.root, u), z = L(G.label, {
|
|
3049
3051
|
// hide label only visually to keep them available for assistive technologies
|
|
3050
|
-
[G.labelHidden]:
|
|
3052
|
+
[G.labelHidden]: D,
|
|
3051
3053
|
[G.labelDisabled]: t
|
|
3052
|
-
}),
|
|
3053
|
-
[G.selectSmall]:
|
|
3054
|
-
[G.selectFocused]:
|
|
3055
|
-
[G.selectHovered]:
|
|
3054
|
+
}), w = (E) => L(G.select, {
|
|
3055
|
+
[G.selectSmall]: b === "small",
|
|
3056
|
+
[G.selectFocused]: E.isFocused,
|
|
3057
|
+
[G.selectHovered]: y,
|
|
3056
3058
|
[G.selectDisabled]: t,
|
|
3057
|
-
[G.selectInvalid]:
|
|
3058
|
-
}),
|
|
3059
|
-
[G.placeholder]: !
|
|
3059
|
+
[G.selectInvalid]: o
|
|
3060
|
+
}), U = (E) => L({
|
|
3061
|
+
[G.placeholder]: !E.isDisabled
|
|
3060
3062
|
});
|
|
3061
|
-
return /* @__PURE__ */ de("div", { className:
|
|
3062
|
-
/* @__PURE__ */ de("label", { className:
|
|
3063
|
+
return /* @__PURE__ */ de("div", { className: Z, children: [
|
|
3064
|
+
/* @__PURE__ */ de("label", { className: z, id: O, htmlFor: n, onMouseEnter: () => !t && B(!0), onMouseLeave: () => !t && B(!1), children: [
|
|
3063
3065
|
e,
|
|
3064
|
-
|
|
3066
|
+
d && /* @__PURE__ */ M(Ut, {})
|
|
3065
3067
|
] }),
|
|
3066
|
-
|
|
3067
|
-
s && b && /* @__PURE__ */ M(Qt, { className: G.feedback, message: b, variant: "error", id: O }),
|
|
3068
|
+
l && /* @__PURE__ */ M("div", { className: G.hint, id: Y, children: l }),
|
|
3068
3069
|
/* @__PURE__ */ M(
|
|
3069
3070
|
Mu,
|
|
3070
3071
|
{
|
|
3071
|
-
...
|
|
3072
|
-
"aria-errormessage":
|
|
3072
|
+
...V,
|
|
3073
|
+
"aria-errormessage": o && p ? P : void 0,
|
|
3073
3074
|
"aria-label": e,
|
|
3074
|
-
"aria-labelledby": `${
|
|
3075
|
-
"aria-invalid":
|
|
3076
|
-
ariaLiveMessages: Hu(
|
|
3075
|
+
"aria-labelledby": `${O}${k}`,
|
|
3076
|
+
"aria-invalid": o,
|
|
3077
|
+
ariaLiveMessages: Hu(m || ye[c]),
|
|
3077
3078
|
inputId: n,
|
|
3078
3079
|
classNames: {
|
|
3079
|
-
control:
|
|
3080
|
-
placeholder:
|
|
3080
|
+
control: w,
|
|
3081
|
+
placeholder: U
|
|
3081
3082
|
},
|
|
3082
|
-
closeMenuOnSelect: !
|
|
3083
|
+
closeMenuOnSelect: !r,
|
|
3084
|
+
filterOption: a,
|
|
3083
3085
|
hideSelectedOptions: !1,
|
|
3084
3086
|
instanceId: n,
|
|
3085
3087
|
isDisabled: t,
|
|
3086
|
-
isMulti:
|
|
3088
|
+
isMulti: r,
|
|
3087
3089
|
isSearchable: !0,
|
|
3088
|
-
noOptionsMessage:
|
|
3089
|
-
options:
|
|
3090
|
-
placeholder:
|
|
3091
|
-
required:
|
|
3090
|
+
noOptionsMessage: N,
|
|
3091
|
+
options: S,
|
|
3092
|
+
placeholder: R,
|
|
3093
|
+
required: d,
|
|
3092
3094
|
unstyled: !0,
|
|
3093
|
-
ref:
|
|
3095
|
+
ref: A,
|
|
3094
3096
|
styles: {
|
|
3095
|
-
container: (
|
|
3096
|
-
...
|
|
3097
|
+
container: (E) => ({
|
|
3098
|
+
...E,
|
|
3097
3099
|
// needed for cursor: not-allowed to work on disabled DSCombobox
|
|
3098
3100
|
pointerEvents: "initial"
|
|
3099
3101
|
}),
|
|
3100
|
-
control: (
|
|
3101
|
-
...
|
|
3102
|
+
control: (E) => ({
|
|
3103
|
+
...E,
|
|
3102
3104
|
outline: "initial",
|
|
3103
3105
|
// we do not want to have paddingInlineEnd on the control, but rather on the valueContainer, so we remove it here
|
|
3104
3106
|
paddingInlineEnd: 0,
|
|
@@ -3109,123 +3111,129 @@ const Hu = (n) => {
|
|
|
3109
3111
|
cursor: "text"
|
|
3110
3112
|
}),
|
|
3111
3113
|
// increase the z-index
|
|
3112
|
-
menu: (
|
|
3113
|
-
...
|
|
3114
|
+
menu: (E) => ({
|
|
3115
|
+
...E,
|
|
3114
3116
|
zIndex: 99
|
|
3115
3117
|
}),
|
|
3116
3118
|
// needed for Values to not be squished like "A.., B..." but rather cut off "Apple, Bana"
|
|
3117
|
-
multiValue: (
|
|
3118
|
-
...
|
|
3119
|
+
multiValue: (E) => ({
|
|
3120
|
+
...E,
|
|
3119
3121
|
minWidth: "max-content"
|
|
3120
3122
|
}),
|
|
3121
|
-
noOptionsMessage: (
|
|
3122
|
-
...
|
|
3123
|
+
noOptionsMessage: (E) => ({
|
|
3124
|
+
...E,
|
|
3123
3125
|
// remove default text align center
|
|
3124
3126
|
textAlign: void 0
|
|
3125
3127
|
}),
|
|
3126
|
-
option: (
|
|
3127
|
-
...
|
|
3128
|
+
option: (E) => ({
|
|
3129
|
+
...E,
|
|
3128
3130
|
display: "flex",
|
|
3129
3131
|
// remove fontSize, so that we can change if based on size
|
|
3130
3132
|
fontSize: void 0
|
|
3131
3133
|
}),
|
|
3132
|
-
valueContainer: (
|
|
3133
|
-
...
|
|
3134
|
+
valueContainer: (E) => ({
|
|
3135
|
+
...E,
|
|
3134
3136
|
flexWrap: "nowrap",
|
|
3135
|
-
paddingInlineEnd:
|
|
3137
|
+
paddingInlineEnd: b === "small" ? "7px" : "15px"
|
|
3136
3138
|
// reduced by one pixel to counteract Figma inner border
|
|
3137
3139
|
})
|
|
3138
3140
|
},
|
|
3139
3141
|
components: {
|
|
3140
|
-
ClearIndicator:
|
|
3141
|
-
DropdownIndicator:
|
|
3142
|
-
GroupHeading:
|
|
3142
|
+
ClearIndicator: Bo,
|
|
3143
|
+
DropdownIndicator: Eo,
|
|
3144
|
+
GroupHeading: Fo,
|
|
3143
3145
|
// separator between clear all icon and chevron down
|
|
3144
3146
|
IndicatorSeparator: () => null,
|
|
3145
|
-
Input:
|
|
3146
|
-
MenuList:
|
|
3147
|
-
MultiValueContainer:
|
|
3147
|
+
Input: So,
|
|
3148
|
+
MenuList: Xo,
|
|
3149
|
+
MultiValueContainer: Ro,
|
|
3148
3150
|
// remove button for each selected value
|
|
3149
3151
|
MultiValueRemove: () => null,
|
|
3150
|
-
NoOptionsMessage:
|
|
3151
|
-
Option:
|
|
3152
|
-
SingleValue:
|
|
3152
|
+
NoOptionsMessage: Wo,
|
|
3153
|
+
Option: Zo,
|
|
3154
|
+
SingleValue: Po
|
|
3153
3155
|
},
|
|
3154
|
-
invalid:
|
|
3155
|
-
systemFeedback:
|
|
3156
|
-
systemFeedbackId:
|
|
3157
|
-
isSmall:
|
|
3156
|
+
invalid: o,
|
|
3157
|
+
systemFeedback: p,
|
|
3158
|
+
systemFeedbackId: P,
|
|
3159
|
+
isSmall: b === "small",
|
|
3158
3160
|
value: v,
|
|
3159
|
-
onChange: (
|
|
3160
|
-
action:
|
|
3161
|
+
onChange: (E, {
|
|
3162
|
+
action: le
|
|
3161
3163
|
}) => {
|
|
3162
|
-
|
|
3163
|
-
U === "clear" && !I.openMenuOnClick && !I.openMenuOnFocus && !o && ((oe = E.current) == null || oe.blur(), (W = E.current) == null || W.focus()), m && m(B);
|
|
3164
|
+
le === "clear" && !V.openMenuOnClick && !V.openMenuOnFocus && !r && (F.current?.blur(), F.current?.focus()), g && g(E);
|
|
3164
3165
|
},
|
|
3165
|
-
onInputChange: (
|
|
3166
|
-
|
|
3166
|
+
onInputChange: (E) => {
|
|
3167
|
+
I && I(E);
|
|
3167
3168
|
}
|
|
3168
3169
|
}
|
|
3169
|
-
)
|
|
3170
|
+
),
|
|
3171
|
+
o && p && /* @__PURE__ */ M(Qt, { className: G.feedback, message: p, variant: "error", id: P })
|
|
3170
3172
|
] });
|
|
3171
3173
|
});
|
|
3172
|
-
|
|
3173
|
-
const
|
|
3174
|
-
const e = ee.c(
|
|
3175
|
-
let i;
|
|
3176
|
-
e[0] !== n
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3174
|
+
Vo.displayName = "CustomReactSelect";
|
|
3175
|
+
const Bo = (n) => {
|
|
3176
|
+
const e = ee.c(10);
|
|
3177
|
+
let i, u, t;
|
|
3178
|
+
if (e[0] !== n) {
|
|
3179
|
+
({
|
|
3180
|
+
...u
|
|
3181
|
+
} = n);
|
|
3182
|
+
const {
|
|
3183
|
+
isSmall: o
|
|
3184
|
+
} = u.selectProps;
|
|
3185
|
+
i = L(G.clear, {
|
|
3186
|
+
[G.clearSmall]: o
|
|
3187
|
+
}), t = L(G.clearIcon, {
|
|
3188
|
+
[G.clearIconSmall]: o
|
|
3189
|
+
}), e[0] = n, e[1] = i, e[2] = u, e[3] = t;
|
|
3190
|
+
} else
|
|
3191
|
+
i = e[1], u = e[2], t = e[3];
|
|
3186
3192
|
const a = t;
|
|
3187
3193
|
let l;
|
|
3188
|
-
e[4] !==
|
|
3189
|
-
[G.clearIconSmall]: u
|
|
3190
|
-
}), e[4] = u, e[5] = l) : l = e[5];
|
|
3191
|
-
const s = l;
|
|
3192
|
-
let o;
|
|
3193
|
-
e[6] !== s ? (o = /* @__PURE__ */ M(be, { name: "cross", className: s, "aria-hidden": "true" }), e[6] = s, e[7] = o) : o = e[7];
|
|
3194
|
-
let r;
|
|
3195
|
-
return e[8] !== a || e[9] !== i || e[10] !== o ? (r = /* @__PURE__ */ M(_.ClearIndicator, { ...i, className: a, children: o }), e[8] = a, e[9] = i, e[10] = o, e[11] = r) : r = e[11], r;
|
|
3196
|
-
}, Bo = (n) => {
|
|
3197
|
-
const e = ee.c(12);
|
|
3198
|
-
let i;
|
|
3199
|
-
e[0] !== n ? ({
|
|
3200
|
-
...i
|
|
3201
|
-
} = n, e[0] = n, e[1] = i) : i = e[1];
|
|
3202
|
-
const {
|
|
3203
|
-
isSmall: u,
|
|
3204
|
-
openMenuOnClick: t,
|
|
3205
|
-
openMenuOnFocus: a,
|
|
3206
|
-
isDisabled: l
|
|
3207
|
-
} = i.selectProps;
|
|
3208
|
-
if (!t || !a || l)
|
|
3209
|
-
return null;
|
|
3194
|
+
e[4] !== a ? (l = /* @__PURE__ */ M(be, { name: "cross", className: a, "aria-hidden": "true" }), e[4] = a, e[5] = l) : l = e[5];
|
|
3210
3195
|
let s;
|
|
3211
|
-
e[
|
|
3212
|
-
[G.indicatorSmall]: u
|
|
3213
|
-
}), e[2] = u, e[3] = s) : s = e[3];
|
|
3214
|
-
const o = s;
|
|
3215
|
-
let r;
|
|
3216
|
-
e[4] !== u ? (r = L(G.indicatorIcon, {
|
|
3217
|
-
[G.indicatorIconSmall]: u
|
|
3218
|
-
}), e[4] = u, e[5] = r) : r = e[5];
|
|
3219
|
-
const c = r;
|
|
3220
|
-
let d;
|
|
3221
|
-
e[6] !== c ? (d = /* @__PURE__ */ M(be, { name: "chevron-down", className: c, "aria-hidden": "true" }), e[6] = c, e[7] = d) : d = e[7];
|
|
3222
|
-
let b;
|
|
3223
|
-
return e[8] !== o || e[9] !== i || e[10] !== d ? (b = /* @__PURE__ */ M(_.DropdownIndicator, { ...i, className: o, children: d }), e[8] = o, e[9] = i, e[10] = d, e[11] = b) : b = e[11], b;
|
|
3196
|
+
return e[6] !== i || e[7] !== u || e[8] !== l ? (s = /* @__PURE__ */ M(_.ClearIndicator, { ...u, className: i, children: l }), e[6] = i, e[7] = u, e[8] = l, e[9] = s) : s = e[9], s;
|
|
3224
3197
|
}, Eo = (n) => {
|
|
3198
|
+
const e = ee.c(11);
|
|
3199
|
+
let i, u, t, a;
|
|
3200
|
+
if (e[0] !== n) {
|
|
3201
|
+
a = Symbol.for("react.early_return_sentinel");
|
|
3202
|
+
e: {
|
|
3203
|
+
({
|
|
3204
|
+
...u
|
|
3205
|
+
} = n);
|
|
3206
|
+
const {
|
|
3207
|
+
isSmall: r,
|
|
3208
|
+
openMenuOnClick: c,
|
|
3209
|
+
openMenuOnFocus: d,
|
|
3210
|
+
isDisabled: b
|
|
3211
|
+
} = u.selectProps;
|
|
3212
|
+
if (!c || !d || b) {
|
|
3213
|
+
a = null;
|
|
3214
|
+
break e;
|
|
3215
|
+
}
|
|
3216
|
+
i = L(G.indicator, {
|
|
3217
|
+
[G.indicatorSmall]: r
|
|
3218
|
+
}), t = L(G.indicatorIcon, {
|
|
3219
|
+
[G.indicatorIconSmall]: r
|
|
3220
|
+
});
|
|
3221
|
+
}
|
|
3222
|
+
e[0] = n, e[1] = i, e[2] = u, e[3] = t, e[4] = a;
|
|
3223
|
+
} else
|
|
3224
|
+
i = e[1], u = e[2], t = e[3], a = e[4];
|
|
3225
|
+
if (a !== Symbol.for("react.early_return_sentinel"))
|
|
3226
|
+
return a;
|
|
3227
|
+
const l = t;
|
|
3228
|
+
let s;
|
|
3229
|
+
e[5] !== l ? (s = /* @__PURE__ */ M(be, { name: "chevron-down", className: l, "aria-hidden": "true" }), e[5] = l, e[6] = s) : s = e[6];
|
|
3230
|
+
let o;
|
|
3231
|
+
return e[7] !== i || e[8] !== u || e[9] !== s ? (o = /* @__PURE__ */ M(_.DropdownIndicator, { ...u, className: i, children: s }), e[7] = i, e[8] = u, e[9] = s, e[10] = o) : o = e[10], o;
|
|
3232
|
+
}, Fo = (n) => {
|
|
3225
3233
|
const e = ee.c(2);
|
|
3226
3234
|
let i;
|
|
3227
3235
|
return e[0] !== n ? (i = /* @__PURE__ */ M(_.GroupHeading, { ...n, className: G.groupHeading, children: n.children }), e[0] = n, e[1] = i) : i = e[1], i;
|
|
3228
|
-
},
|
|
3236
|
+
}, So = (n) => {
|
|
3229
3237
|
const e = ee.c(3), {
|
|
3230
3238
|
invalid: i,
|
|
3231
3239
|
systemFeedback: u,
|
|
@@ -3233,11 +3241,11 @@ const Vo = (n) => {
|
|
|
3233
3241
|
} = n.selectProps, a = i && u ? t : n["aria-describedby"];
|
|
3234
3242
|
let l;
|
|
3235
3243
|
return e[0] !== n || e[1] !== a ? (l = /* @__PURE__ */ M(_.Input, { ...n, "aria-describedby": a, autoComplete: n.selectProps.autoComplete }), e[0] = n, e[1] = a, e[2] = l) : l = e[2], l;
|
|
3236
|
-
},
|
|
3244
|
+
}, Xo = (n) => {
|
|
3237
3245
|
const e = ee.c(2);
|
|
3238
3246
|
let i;
|
|
3239
3247
|
return e[0] !== n ? (i = /* @__PURE__ */ M(_.MenuList, { ...n, className: G.menuList, children: n.children }), e[0] = n, e[1] = i) : i = e[1], i;
|
|
3240
|
-
},
|
|
3248
|
+
}, Ro = (n) => {
|
|
3241
3249
|
const e = ee.c(3);
|
|
3242
3250
|
let i = !1;
|
|
3243
3251
|
if (n.selectProps.value && Array.isArray(n.selectProps.value)) {
|
|
@@ -3250,69 +3258,72 @@ const Vo = (n) => {
|
|
|
3250
3258
|
n.children,
|
|
3251
3259
|
u
|
|
3252
3260
|
] }), e[0] = n, e[1] = u, e[2] = t) : t = e[2], t;
|
|
3253
|
-
}, Ro = (n) => {
|
|
3254
|
-
const e = ee.c(10);
|
|
3255
|
-
let i;
|
|
3256
|
-
e[0] !== n ? ({
|
|
3257
|
-
...i
|
|
3258
|
-
} = n, e[0] = n, e[1] = i) : i = e[1];
|
|
3259
|
-
const {
|
|
3260
|
-
isSmall: u
|
|
3261
|
-
} = i.selectProps;
|
|
3262
|
-
let t;
|
|
3263
|
-
e[2] !== u ? (t = L(G.option, {
|
|
3264
|
-
[G.optionSmall]: u
|
|
3265
|
-
}), e[2] = u, e[3] = t) : t = e[3];
|
|
3266
|
-
const a = t;
|
|
3267
|
-
let l;
|
|
3268
|
-
e[4] !== i.children ? (l = /* @__PURE__ */ M("span", { role: "option", children: i.children }), e[4] = i.children, e[5] = l) : l = e[5];
|
|
3269
|
-
let s;
|
|
3270
|
-
return e[6] !== a || e[7] !== i || e[8] !== l ? (s = /* @__PURE__ */ M(_.NoOptionsMessage, { ...i, className: a, children: l }), e[6] = a, e[7] = i, e[8] = l, e[9] = s) : s = e[9], s;
|
|
3271
3261
|
}, Wo = (n) => {
|
|
3272
|
-
const e = ee.c(
|
|
3273
|
-
let i;
|
|
3274
|
-
e[0] !== n
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
[G.optionSingle]: c,
|
|
3292
|
-
[G.optionDisabled]: s,
|
|
3293
|
-
[G.optionFocusHover]: o
|
|
3294
|
-
}), e[2] = s, e[3] = o, e[4] = t, e[5] = c, e[6] = d) : d = e[6];
|
|
3295
|
-
const b = d;
|
|
3296
|
-
let p;
|
|
3297
|
-
e[7] !== s || e[8] !== t ? (p = L(G.leadingIcon, {
|
|
3298
|
-
[G.leadingIconSmall]: t,
|
|
3299
|
-
[G.leadingIconDisabled]: s
|
|
3300
|
-
}), e[7] = s, e[8] = t, e[9] = p) : p = e[9];
|
|
3301
|
-
const v = p;
|
|
3302
|
-
let m;
|
|
3303
|
-
e[10] !== s ? (m = L(G.optionCheckIcon, {
|
|
3304
|
-
[G.optionCheckIconDisabled]: s
|
|
3305
|
-
}), e[10] = s, e[11] = m) : m = e[11];
|
|
3306
|
-
const g = m;
|
|
3307
|
-
let I;
|
|
3308
|
-
e[12] !== g || e[13] !== l || e[14] !== s || e[15] !== u || e[16] !== r || e[17] !== v || e[18] !== a ? (I = u ? /* @__PURE__ */ M(_t, { label: l, checked: r, disabled: s, className: G.multiOption }) : /* @__PURE__ */ de("div", { className: G.singleOption, children: [
|
|
3309
|
-
a && /* @__PURE__ */ M(be, { name: a, className: v, "aria-hidden": "true" }),
|
|
3310
|
-
/* @__PURE__ */ M("span", { className: G.optionText, children: l }),
|
|
3311
|
-
r && /* @__PURE__ */ M(be, { name: "check", className: g, "aria-hidden": "true" })
|
|
3312
|
-
] }), e[12] = g, e[13] = l, e[14] = s, e[15] = u, e[16] = r, e[17] = v, e[18] = a, e[19] = I) : I = e[19];
|
|
3313
|
-
let x;
|
|
3314
|
-
return e[20] !== b || e[21] !== i || e[22] !== I ? (x = /* @__PURE__ */ M(_.Option, { ...i, className: b, children: I }), e[20] = b, e[21] = i, e[22] = I, e[23] = x) : x = e[23], x;
|
|
3262
|
+
const e = ee.c(9);
|
|
3263
|
+
let i, u;
|
|
3264
|
+
if (e[0] !== n) {
|
|
3265
|
+
({
|
|
3266
|
+
...i
|
|
3267
|
+
} = n);
|
|
3268
|
+
const {
|
|
3269
|
+
isSmall: s
|
|
3270
|
+
} = i.selectProps;
|
|
3271
|
+
u = L(G.option, {
|
|
3272
|
+
[G.optionSmall]: s
|
|
3273
|
+
}), e[0] = n, e[1] = i, e[2] = u;
|
|
3274
|
+
} else
|
|
3275
|
+
i = e[1], u = e[2];
|
|
3276
|
+
const t = u;
|
|
3277
|
+
let a;
|
|
3278
|
+
e[3] !== i.children ? (a = /* @__PURE__ */ M("span", { role: "option", children: i.children }), e[3] = i.children, e[4] = a) : a = e[4];
|
|
3279
|
+
let l;
|
|
3280
|
+
return e[5] !== t || e[6] !== i || e[7] !== a ? (l = /* @__PURE__ */ M(_.NoOptionsMessage, { ...i, className: t, children: a }), e[5] = t, e[6] = i, e[7] = a, e[8] = l) : l = e[8], l;
|
|
3315
3281
|
}, Zo = (n) => {
|
|
3282
|
+
const e = ee.c(22);
|
|
3283
|
+
let i, u, t, a, l, s, o, r, c;
|
|
3284
|
+
if (e[0] !== n) {
|
|
3285
|
+
({
|
|
3286
|
+
...r
|
|
3287
|
+
} = n);
|
|
3288
|
+
const {
|
|
3289
|
+
isMulti: m,
|
|
3290
|
+
isSmall: v
|
|
3291
|
+
} = r.selectProps;
|
|
3292
|
+
t = m, {
|
|
3293
|
+
leadingIconName: s
|
|
3294
|
+
} = r.data;
|
|
3295
|
+
const {
|
|
3296
|
+
children: g,
|
|
3297
|
+
isDisabled: I,
|
|
3298
|
+
isFocused: V,
|
|
3299
|
+
isSelected: x
|
|
3300
|
+
} = r;
|
|
3301
|
+
i = g, u = I, a = x;
|
|
3302
|
+
const y = r.selectProps.options.some((B) => "options" in B && B.options.includes(r.data));
|
|
3303
|
+
o = L(G.option, {
|
|
3304
|
+
[G.optionSmall]: v,
|
|
3305
|
+
[G.optionSingle]: !t && a,
|
|
3306
|
+
[G.optionDisabled]: u,
|
|
3307
|
+
[G.optionFocusHover]: V,
|
|
3308
|
+
[G.optionGrouped]: y
|
|
3309
|
+
}), l = L(G.leadingIcon, {
|
|
3310
|
+
[G.leadingIconSmall]: v,
|
|
3311
|
+
[G.leadingIconDisabled]: u
|
|
3312
|
+
}), c = L(G.optionCheckIcon, {
|
|
3313
|
+
[G.optionCheckIconDisabled]: u
|
|
3314
|
+
}), e[0] = n, e[1] = i, e[2] = u, e[3] = t, e[4] = a, e[5] = l, e[6] = s, e[7] = o, e[8] = r, e[9] = c;
|
|
3315
|
+
} else
|
|
3316
|
+
i = e[1], u = e[2], t = e[3], a = e[4], l = e[5], s = e[6], o = e[7], r = e[8], c = e[9];
|
|
3317
|
+
const d = c;
|
|
3318
|
+
let b;
|
|
3319
|
+
e[10] !== d || e[11] !== i || e[12] !== u || e[13] !== t || e[14] !== a || e[15] !== l || e[16] !== s ? (b = t ? /* @__PURE__ */ M(_t, { label: i, checked: a, disabled: u, className: G.multiOption }) : /* @__PURE__ */ de("div", { className: G.singleOption, children: [
|
|
3320
|
+
s && /* @__PURE__ */ M(be, { name: s, className: l, "aria-hidden": "true" }),
|
|
3321
|
+
/* @__PURE__ */ M("span", { className: G.optionText, children: i }),
|
|
3322
|
+
a && /* @__PURE__ */ M(be, { name: "check", className: d, "aria-hidden": "true" })
|
|
3323
|
+
] }), e[10] = d, e[11] = i, e[12] = u, e[13] = t, e[14] = a, e[15] = l, e[16] = s, e[17] = b) : b = e[17];
|
|
3324
|
+
let p;
|
|
3325
|
+
return e[18] !== o || e[19] !== r || e[20] !== b ? (p = /* @__PURE__ */ M(_.Option, { ...r, className: o, children: b }), e[18] = o, e[19] = r, e[20] = b, e[21] = p) : p = e[21], p;
|
|
3326
|
+
}, Po = (n) => {
|
|
3316
3327
|
const e = ee.c(11), {
|
|
3317
3328
|
children: i,
|
|
3318
3329
|
isDisabled: u
|
|
@@ -3335,10 +3346,10 @@ const Vo = (n) => {
|
|
|
3335
3346
|
] }), e[7] = n, e[8] = s, e[9] = o, e[10] = r) : r = e[10], r;
|
|
3336
3347
|
};
|
|
3337
3348
|
export {
|
|
3338
|
-
|
|
3349
|
+
_o as C,
|
|
3339
3350
|
$t as D,
|
|
3340
3351
|
Kt as a,
|
|
3341
3352
|
ye as b,
|
|
3342
|
-
|
|
3343
|
-
|
|
3353
|
+
Vo as c,
|
|
3354
|
+
Qo as v
|
|
3344
3355
|
};
|