@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
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as v, jsxs as bt } from "react/jsx-runtime";
|
|
3
|
+
import { d as Lt } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as R } from "./index.DL9mof6u.js";
|
|
5
|
+
import { forwardRef as Et, useState as Ae, useRef as _t, useEffect as yt } from "react";
|
|
6
|
+
import { h as Rt } from "./has-window.ut_-aShB.js";
|
|
7
|
+
import { u as Ct } from "./useBreakpoint.BzR_yaIv.js";
|
|
8
|
+
import { u as kt } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import { Asterisk as Ft } from "../asterisk.B2ih8VwF.js";
|
|
10
|
+
import { D as It } from "./Button.DCZgBNmA.js";
|
|
11
|
+
import { M as ht, a as xt } from "./Input.utils.Dkw7gRrr.js";
|
|
12
|
+
import { D as Pt } from "./SystemFeedback.CjlARKki.js";
|
|
13
|
+
import { g as Ke } from "./helpers.CexwVao7.js";
|
|
14
|
+
import '../assets/InputNumber.BoiCIR1f.css';const $t = "ds-input-number_input_1yj2k_1", Vt = "ds-input-number_input--small_1yj2k_9", Ht = "ds-input-number_input--invalid_1yj2k_121", Tt = "ds-input-number_input--has-affix_1yj2k_197", qt = "ds-input-number_input--is-ready_1yj2k_211", Wt = "ds-input-number_root_1yj2k_222", Mt = "ds-input-number_hint_1yj2k_222", Xt = "ds-input-number_label_1yj2k_222", zt = "ds-input-number_wrapper_1yj2k_226", Gt = "ds-input-number_affix_1yj2k_232", Ot = "ds-input-number_affix--small_1yj2k_253", Ut = "ds-input-number_prefix_1yj2k_266", Jt = "ds-input-number_suffix_1yj2k_272", Kt = "ds-input-number_affix--disabled_1yj2k_278", Qt = "ds-input-number_affix--readonly_1yj2k_289", Yt = "ds-input-number_action-button_1yj2k_325", Zt = "ds-input-number_label--hidden_1yj2k_343", en = "ds-input-number_label--disabled_1yj2k_356", tn = "ds-input-number_feedback_1yj2k_376", nn = "ds-input-number_second-action-button_1yj2k_389", sn = "ds-input-number_value-announcer_1yj2k_393", t = {
|
|
15
|
+
input: $t,
|
|
16
|
+
inputSmall: Vt,
|
|
17
|
+
inputInvalid: Ht,
|
|
18
|
+
inputHasAffix: Tt,
|
|
19
|
+
inputIsReady: qt,
|
|
20
|
+
root: Wt,
|
|
21
|
+
hint: Mt,
|
|
22
|
+
label: Xt,
|
|
23
|
+
wrapper: zt,
|
|
24
|
+
affix: Gt,
|
|
25
|
+
affixSmall: Ot,
|
|
26
|
+
prefix: Ut,
|
|
27
|
+
suffix: Jt,
|
|
28
|
+
affixDisabled: Kt,
|
|
29
|
+
affixReadonly: Qt,
|
|
30
|
+
actionButton: Yt,
|
|
31
|
+
labelHidden: Zt,
|
|
32
|
+
labelDisabled: en,
|
|
33
|
+
feedback: tn,
|
|
34
|
+
secondActionButton: nn,
|
|
35
|
+
valueAnnouncer: sn
|
|
36
|
+
}, Nt = (f) => f != null && f !== "", ln = ({
|
|
37
|
+
id: f,
|
|
38
|
+
label: k,
|
|
39
|
+
prefix: e,
|
|
40
|
+
suffix: m
|
|
41
|
+
}) => {
|
|
42
|
+
if (!f)
|
|
43
|
+
throw new Error(Ke("DSInputNumber", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputNumber component.'));
|
|
44
|
+
if (!k)
|
|
45
|
+
throw new Error(Ke("DSInputNumber", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputNumber component. If you don't want to display a label, set hideLabel={true}.`));
|
|
46
|
+
e && e.length > ht && console.warn(Ke("DSInputNumber", `Prefix length must not exceed ${ht} characters.`)), m && m.length > xt && console.warn(Ke("DSInputNumber", `Suffix length must not exceed ${xt} characters.`));
|
|
47
|
+
}, an = Et((f, k) => {
|
|
48
|
+
const e = Lt.c(201);
|
|
49
|
+
let m, F, p, l, P, b, _, a, I, o, d, ae, oe, re, ue, ce, de, fe, me, pe, be, N;
|
|
50
|
+
e[0] !== f ? ({
|
|
51
|
+
id: l,
|
|
52
|
+
label: b,
|
|
53
|
+
announcementText: ae,
|
|
54
|
+
className: m,
|
|
55
|
+
disabled: re,
|
|
56
|
+
decreaseAmountButtonProps: F,
|
|
57
|
+
hint: p,
|
|
58
|
+
hideLabel: ue,
|
|
59
|
+
invalid: ce,
|
|
60
|
+
increaseAmountButtonProps: P,
|
|
61
|
+
prefix: a,
|
|
62
|
+
max: de,
|
|
63
|
+
min: fe,
|
|
64
|
+
readonly: me,
|
|
65
|
+
required: pe,
|
|
66
|
+
size: be,
|
|
67
|
+
step: oe,
|
|
68
|
+
suffix: o,
|
|
69
|
+
systemFeedback: d,
|
|
70
|
+
value: N,
|
|
71
|
+
onChange: _,
|
|
72
|
+
...I
|
|
73
|
+
} = f, e[0] = f, e[1] = m, e[2] = F, e[3] = p, e[4] = l, e[5] = P, e[6] = b, e[7] = _, e[8] = a, e[9] = I, e[10] = o, e[11] = d, e[12] = ae, e[13] = oe, e[14] = re, e[15] = ue, e[16] = ce, e[17] = de, e[18] = fe, e[19] = me, e[20] = pe, e[21] = be, e[22] = N) : (m = e[1], F = e[2], p = e[3], l = e[4], P = e[5], b = e[6], _ = e[7], a = e[8], I = e[9], o = e[10], d = e[11], ae = e[12], oe = e[13], re = e[14], ue = e[15], ce = e[16], de = e[17], fe = e[18], me = e[19], pe = e[20], be = e[21], N = e[22]);
|
|
74
|
+
const _e = ae === void 0 ? "Value changed to" : ae, s = re === void 0 ? !1 : re, At = ue === void 0 ? !1 : ue, r = ce === void 0 ? !1 : ce, A = de === void 0 ? 100 : de, S = fe === void 0 ? 0 : fe, u = me === void 0 ? !1 : me, D = pe === void 0 ? !1 : pe, n = be === void 0 ? "medium" : be, ye = oe === void 0 ? 1 : oe;
|
|
75
|
+
process.env.NODE_ENV !== "production" && ln({
|
|
76
|
+
id: l,
|
|
77
|
+
label: b,
|
|
78
|
+
prefix: a,
|
|
79
|
+
suffix: o
|
|
80
|
+
});
|
|
81
|
+
let $;
|
|
82
|
+
e[23] !== F ? ($ = F || {}, e[23] = F, e[24] = $) : $ = e[24];
|
|
83
|
+
let V, H, he;
|
|
84
|
+
e[25] !== $ ? ({
|
|
85
|
+
label: he,
|
|
86
|
+
tooltip: V,
|
|
87
|
+
...H
|
|
88
|
+
} = $, e[25] = $, e[26] = V, e[27] = H, e[28] = he) : (V = e[26], H = e[27], he = e[28]);
|
|
89
|
+
const Qe = he === void 0 ? "Decrease" : he;
|
|
90
|
+
let T;
|
|
91
|
+
e[29] !== P ? (T = P || {}, e[29] = P, e[30] = T) : T = e[30];
|
|
92
|
+
let q, W, xe;
|
|
93
|
+
e[31] !== T ? ({
|
|
94
|
+
label: xe,
|
|
95
|
+
tooltip: q,
|
|
96
|
+
...W
|
|
97
|
+
} = T, e[31] = T, e[32] = q, e[33] = W, e[34] = xe) : (q = e[32], W = e[33], xe = e[34]);
|
|
98
|
+
const Ye = xe === void 0 ? "Increase" : xe, [ve, St] = Ae(!1), [c, Ze] = Ae(N), [y, vt] = Ae(""), [et, Dt] = Ae(!1);
|
|
99
|
+
let Se;
|
|
100
|
+
e[35] === Symbol.for("react.memo_cache_sentinel") ? (Se = {}, e[35] = Se) : Se = e[35];
|
|
101
|
+
const [ke, gt] = Ae(Se), h = _t(null);
|
|
102
|
+
let De;
|
|
103
|
+
e[36] !== k ? (De = (i) => {
|
|
104
|
+
h.current = i, typeof k == "function" ? k(i) : k && (k.current = i);
|
|
105
|
+
}, e[36] = k, e[37] = De) : De = e[37];
|
|
106
|
+
const Ie = De;
|
|
107
|
+
let ge;
|
|
108
|
+
e[38] !== a ? (ge = a?.substring(0, ht), e[38] = a, e[39] = ge) : ge = e[39];
|
|
109
|
+
const tt = ge, nt = _t(null);
|
|
110
|
+
let je;
|
|
111
|
+
e[40] !== o ? (je = o?.substring(0, xt), e[40] = o, e[41] = je) : je = e[41];
|
|
112
|
+
const st = je, lt = _t(null), Ne = Ct(At);
|
|
113
|
+
let Be, we;
|
|
114
|
+
e[42] !== N ? (Be = () => {
|
|
115
|
+
Ze(N);
|
|
116
|
+
}, we = [N], e[42] = N, e[43] = Be, e[44] = we) : (Be = e[43], we = e[44]), yt(Be, we);
|
|
117
|
+
let Le, Ee;
|
|
118
|
+
e[45] !== y ? (Le = () => {
|
|
119
|
+
if (y) {
|
|
120
|
+
const i = setTimeout(() => {
|
|
121
|
+
vt("");
|
|
122
|
+
}, 3e3);
|
|
123
|
+
return () => clearTimeout(i);
|
|
124
|
+
}
|
|
125
|
+
}, Ee = [y], e[45] = y, e[46] = Le, e[47] = Ee) : (Le = e[46], Ee = e[47]), yt(Le, Ee);
|
|
126
|
+
let Re, Ce;
|
|
127
|
+
e[48] === Symbol.for("react.memo_cache_sentinel") ? (Re = () => {
|
|
128
|
+
const i = on;
|
|
129
|
+
return h.current?.addEventListener("wheel", i, {
|
|
130
|
+
passive: !1
|
|
131
|
+
}), () => {
|
|
132
|
+
h.current?.removeEventListener("wheel", i);
|
|
133
|
+
};
|
|
134
|
+
}, Ce = [], e[48] = Re, e[49] = Ce) : (Re = e[48], Ce = e[49]), yt(Re, Ce);
|
|
135
|
+
let Fe;
|
|
136
|
+
e[50] !== n ? (Fe = () => {
|
|
137
|
+
const i = n === "medium" ? 16 : 8, L = {};
|
|
138
|
+
if (nt.current) {
|
|
139
|
+
const E = nt.current.offsetWidth;
|
|
140
|
+
L.paddingInlineStart = i + E + "px";
|
|
141
|
+
}
|
|
142
|
+
if (lt.current) {
|
|
143
|
+
const E = lt.current.offsetWidth;
|
|
144
|
+
L.paddingInlineEnd = i + E + "px";
|
|
145
|
+
}
|
|
146
|
+
gt(L), St(!0);
|
|
147
|
+
}, e[50] = n, e[51] = Fe) : Fe = e[51];
|
|
148
|
+
let Pe;
|
|
149
|
+
e[52] !== et || e[53] !== a || e[54] !== n || e[55] !== o ? (Pe = [a, o, n, et], e[52] = et, e[53] = a, e[54] = n, e[55] = o, e[56] = Pe) : Pe = e[56], kt(Fe, Pe);
|
|
150
|
+
let $e, Ve;
|
|
151
|
+
e[57] === Symbol.for("react.memo_cache_sentinel") ? ($e = () => {
|
|
152
|
+
Rt && (async () => {
|
|
153
|
+
"fonts" in document && (await document.fonts.load('1em "STIHL Contraface Digital Text Regular"'), Dt(!0));
|
|
154
|
+
})();
|
|
155
|
+
}, Ve = [], e[57] = $e, e[58] = Ve) : ($e = e[57], Ve = e[58]), kt($e, Ve);
|
|
156
|
+
const it = n === "small";
|
|
157
|
+
let M, X, z, G, x, O, U, g, J, K, j, B, w;
|
|
158
|
+
if (e[59] !== _e || e[60] !== m || e[61] !== s || e[62] !== tt || e[63] !== st || e[64] !== Ie || e[65] !== Ne || e[66] !== p || e[67] !== l || e[68] !== ke || e[69] !== c || e[70] !== r || e[71] !== ve || e[72] !== b || e[73] !== A || e[74] !== S || e[75] !== _ || e[76] !== a || e[77] !== u || e[78] !== D || e[79] !== I || e[80] !== n || e[81] !== ye || e[82] !== o || e[83] !== d || e[84] !== it || e[85] !== y) {
|
|
159
|
+
const i = R(t.affix, {
|
|
160
|
+
[t.affixSmall]: it,
|
|
161
|
+
[t.affixDisabled]: s,
|
|
162
|
+
[t.affixReadonly]: u
|
|
163
|
+
}), L = `${l}-label`;
|
|
164
|
+
x = `${l}-feedback`;
|
|
165
|
+
const E = `${l}-hint`, se = `${l}-value-announcer`, jt = p ? ` ${E}` : "";
|
|
166
|
+
let Te;
|
|
167
|
+
e[99] !== m ? (Te = R(t.root, m), e[99] = m, e[100] = Te) : Te = e[100];
|
|
168
|
+
const Bt = Te, at = n === "small", ot = a || o;
|
|
169
|
+
let qe;
|
|
170
|
+
e[101] !== r || e[102] !== ve || e[103] !== at || e[104] !== ot ? (qe = R(t.input, {
|
|
171
|
+
[t.inputSmall]: at,
|
|
172
|
+
[t.inputInvalid]: r,
|
|
173
|
+
[t.inputHasAffix]: ot,
|
|
174
|
+
[t.inputIsReady]: ve
|
|
175
|
+
}), e[101] = r, e[102] = ve, e[103] = at, e[104] = ot, e[105] = qe) : qe = e[105];
|
|
176
|
+
const rt = qe;
|
|
177
|
+
let We;
|
|
178
|
+
e[106] !== s || e[107] !== Ne ? (We = R(t.label, {
|
|
179
|
+
[t.labelHidden]: Ne,
|
|
180
|
+
[t.labelDisabled]: s
|
|
181
|
+
}), e[106] = s, e[107] = Ne, e[108] = We) : We = e[108];
|
|
182
|
+
const ut = We, ct = n === "small";
|
|
183
|
+
let Me;
|
|
184
|
+
e[109] !== ct ? (Me = R(t.secondActionButton, {
|
|
185
|
+
[t.secondActionButtonSmall]: ct
|
|
186
|
+
}), e[109] = ct, e[110] = Me) : Me = e[110], M = Me;
|
|
187
|
+
const dt = n === "small";
|
|
188
|
+
let Xe;
|
|
189
|
+
e[111] !== dt ? (Xe = R(t.actionButton, {
|
|
190
|
+
[t.actionButtonSmall]: dt
|
|
191
|
+
}), e[111] = dt, e[112] = Xe) : Xe = e[112], G = Xe;
|
|
192
|
+
let ze;
|
|
193
|
+
e[113] !== r || e[114] !== d || e[115] !== x || e[116] !== se ? (ze = () => {
|
|
194
|
+
const C = [se];
|
|
195
|
+
return r && d && C.push(x), C.join(" ");
|
|
196
|
+
}, e[113] = r, e[114] = d, e[115] = x, e[116] = se, e[117] = ze) : ze = e[117];
|
|
197
|
+
const wt = ze;
|
|
198
|
+
let Ge;
|
|
199
|
+
e[118] !== _e ? (Ge = () => {
|
|
200
|
+
if (h.current) {
|
|
201
|
+
Ze(h.current.value);
|
|
202
|
+
const C = new Event("change", {
|
|
203
|
+
bubbles: !0
|
|
204
|
+
});
|
|
205
|
+
h.current?.dispatchEvent(C), vt(`${_e} ${h.current.value}`);
|
|
206
|
+
}
|
|
207
|
+
}, e[118] = _e, e[119] = Ge) : Ge = e[119];
|
|
208
|
+
const le = Ge;
|
|
209
|
+
let Oe;
|
|
210
|
+
e[120] !== le ? (Oe = () => {
|
|
211
|
+
h.current?.stepDown(), le();
|
|
212
|
+
}, e[120] = le, e[121] = Oe) : Oe = e[121], X = Oe;
|
|
213
|
+
let Ue;
|
|
214
|
+
e[122] !== le ? (Ue = () => {
|
|
215
|
+
h.current?.stepUp(), le();
|
|
216
|
+
}, e[122] = le, e[123] = Ue) : Ue = e[123], z = Ue;
|
|
217
|
+
let Je;
|
|
218
|
+
e[124] !== _ ? (Je = (C) => {
|
|
219
|
+
Ze(C.target.value), _ && _(C);
|
|
220
|
+
}, e[124] = _, e[125] = Je) : Je = e[125];
|
|
221
|
+
const ft = Je;
|
|
222
|
+
K = Bt;
|
|
223
|
+
let ie;
|
|
224
|
+
e[126] !== D ? (ie = D && /* @__PURE__ */ v(Ft, {}), e[126] = D, e[127] = ie) : ie = e[127], e[128] !== l || e[129] !== L || e[130] !== b || e[131] !== ut || e[132] !== ie ? (j = /* @__PURE__ */ bt("label", { className: ut, id: L, htmlFor: l, children: [
|
|
225
|
+
b,
|
|
226
|
+
ie
|
|
227
|
+
] }), e[128] = l, e[129] = L, e[130] = b, e[131] = ut, e[132] = ie, e[133] = j) : j = e[133], e[134] !== p || e[135] !== E ? (B = p && /* @__PURE__ */ v("div", { className: t.hint, id: E, children: p }), e[134] = p, e[135] = E, e[136] = B) : B = e[136], e[137] !== y || e[138] !== se ? (w = /* @__PURE__ */ v("div", { "aria-live": "polite", "aria-atomic": "true", className: t.valueAnnouncer, id: se, children: y }), e[137] = y, e[138] = se, e[139] = w) : w = e[139], O = t.wrapper, U = a && /* @__PURE__ */ v("span", { className: R(i, t.prefix), ref: nt, "aria-disabled": s, children: tt });
|
|
228
|
+
const mt = `${L}${jt}`, pt = wt();
|
|
229
|
+
e[140] !== s || e[141] !== Ie || e[142] !== ft || e[143] !== l || e[144] !== rt || e[145] !== ke || e[146] !== c || e[147] !== r || e[148] !== A || e[149] !== S || e[150] !== u || e[151] !== D || e[152] !== I || e[153] !== ye || e[154] !== mt || e[155] !== pt ? (g = /* @__PURE__ */ v("input", { className: rt, id: l, ...I, style: ke, ref: Ie, "aria-labelledby": mt, "aria-describedby": pt, "aria-invalid": r, "aria-disabled": u, disabled: s, min: S, max: A, readOnly: u, required: D, step: ye, type: "number", value: c, onChange: ft }), e[140] = s, e[141] = Ie, e[142] = ft, e[143] = l, e[144] = rt, e[145] = ke, e[146] = c, e[147] = r, e[148] = A, e[149] = S, e[150] = u, e[151] = D, e[152] = I, e[153] = ye, e[154] = mt, e[155] = pt, e[156] = g) : g = e[156], J = o && /* @__PURE__ */ v("span", { className: R(i, t.suffix), ref: lt, "aria-disabled": s, children: st }), e[59] = _e, e[60] = m, e[61] = s, e[62] = tt, e[63] = st, e[64] = Ie, e[65] = Ne, e[66] = p, e[67] = l, e[68] = ke, e[69] = c, e[70] = r, e[71] = ve, e[72] = b, e[73] = A, e[74] = S, e[75] = _, e[76] = a, e[77] = u, e[78] = D, e[79] = I, e[80] = n, e[81] = ye, e[82] = o, e[83] = d, e[84] = it, e[85] = y, e[86] = M, e[87] = X, e[88] = z, e[89] = G, e[90] = x, e[91] = O, e[92] = U, e[93] = g, e[94] = J, e[95] = K, e[96] = j, e[97] = B, e[98] = w;
|
|
230
|
+
} else
|
|
231
|
+
M = e[86], X = e[87], z = e[88], G = e[89], x = e[90], O = e[91], U = e[92], g = e[93], J = e[94], K = e[95], j = e[96], B = e[97], w = e[98];
|
|
232
|
+
let Q;
|
|
233
|
+
e[157] !== s || e[158] !== c || e[159] !== S || e[160] !== u ? (Q = s || u || Nt(c) && Number(c) <= Number(S), e[157] = s, e[158] = c, e[159] = S, e[160] = u, e[161] = Q) : Q = e[161];
|
|
234
|
+
let Y;
|
|
235
|
+
e[162] !== M || e[163] !== Qe || e[164] !== V || e[165] !== X || e[166] !== H || e[167] !== n || e[168] !== Q ? (Y = /* @__PURE__ */ v(It, { ...H, hideLabel: !0, theme: "light", iconName: "minus", variant: "filled", className: M, size: n, onClick: X, tooltip: V, disabled: Q, type: "button", children: Qe }), e[162] = M, e[163] = Qe, e[164] = V, e[165] = X, e[166] = H, e[167] = n, e[168] = Q, e[169] = Y) : Y = e[169];
|
|
236
|
+
let Z;
|
|
237
|
+
e[170] !== s || e[171] !== c || e[172] !== A || e[173] !== u ? (Z = s || u || Nt(c) && Number(c) >= Number(A), e[170] = s, e[171] = c, e[172] = A, e[173] = u, e[174] = Z) : Z = e[174];
|
|
238
|
+
let ee;
|
|
239
|
+
e[175] !== z || e[176] !== Ye || e[177] !== q || e[178] !== G || e[179] !== W || e[180] !== n || e[181] !== Z ? (ee = /* @__PURE__ */ v(It, { ...W, hideLabel: !0, theme: "light", iconName: "plus", variant: "filled", tooltip: q, className: G, size: n, onClick: z, disabled: Z, type: "button", children: Ye }), e[175] = z, e[176] = Ye, e[177] = q, e[178] = G, e[179] = W, e[180] = n, e[181] = Z, e[182] = ee) : ee = e[182];
|
|
240
|
+
let te;
|
|
241
|
+
e[183] !== O || e[184] !== U || e[185] !== g || e[186] !== J || e[187] !== Y || e[188] !== ee ? (te = /* @__PURE__ */ bt("div", { className: O, children: [
|
|
242
|
+
U,
|
|
243
|
+
g,
|
|
244
|
+
J,
|
|
245
|
+
Y,
|
|
246
|
+
ee
|
|
247
|
+
] }), e[183] = O, e[184] = U, e[185] = g, e[186] = J, e[187] = Y, e[188] = ee, e[189] = te) : te = e[189];
|
|
248
|
+
let ne;
|
|
249
|
+
e[190] !== r || e[191] !== d || e[192] !== x ? (ne = r && d && /* @__PURE__ */ v(Pt, { className: t.feedback, message: d, variant: "error", id: x }), e[190] = r, e[191] = d, e[192] = x, e[193] = ne) : ne = e[193];
|
|
250
|
+
let He;
|
|
251
|
+
return e[194] !== K || e[195] !== j || e[196] !== B || e[197] !== w || e[198] !== te || e[199] !== ne ? (He = /* @__PURE__ */ bt("div", { className: K, children: [
|
|
252
|
+
j,
|
|
253
|
+
B,
|
|
254
|
+
w,
|
|
255
|
+
te,
|
|
256
|
+
ne
|
|
257
|
+
] }), e[194] = K, e[195] = j, e[196] = B, e[197] = w, e[198] = te, e[199] = ne, e[200] = He) : He = e[200], He;
|
|
258
|
+
});
|
|
259
|
+
an.displayName = "DSInputNumber";
|
|
260
|
+
function on(f) {
|
|
261
|
+
f.preventDefault();
|
|
262
|
+
}
|
|
263
|
+
export {
|
|
264
|
+
an as D,
|
|
265
|
+
Nt as i,
|
|
266
|
+
ln as v
|
|
267
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as q, jsxs as rt } from "react/jsx-runtime";
|
|
3
|
-
import { d as ht } from "./index.
|
|
4
|
-
import { c as J } from "./index.
|
|
3
|
+
import { d as ht } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as J } from "./index.DL9mof6u.js";
|
|
5
5
|
import { forwardRef as vt, useState as yt, useRef as Pt } from "react";
|
|
6
|
-
import { u as St } from "./useBreakpoint.
|
|
7
|
-
import { Asterisk as Dt } from "../asterisk.
|
|
8
|
-
import { D as Bt } from "./Button.
|
|
9
|
-
import { D as It } from "./SystemFeedback.
|
|
10
|
-
import { g as ct } from "./helpers.
|
|
11
|
-
import '../assets/InputPassword.
|
|
6
|
+
import { u as St } from "./useBreakpoint.BzR_yaIv.js";
|
|
7
|
+
import { Asterisk as Dt } from "../asterisk.B2ih8VwF.js";
|
|
8
|
+
import { D as Bt } from "./Button.DCZgBNmA.js";
|
|
9
|
+
import { D as It } from "./SystemFeedback.CjlARKki.js";
|
|
10
|
+
import { g as ct } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/InputPassword.Dk3_vNLV.css';const gt = "ds-input-password_input_22l92_1", kt = "ds-input-password_input--small_22l92_9", Nt = "ds-input-password_input--invalid_22l92_121", xt = "ds-input-password_input--has-action-button_22l92_182", Ct = "ds-input-password_root_22l92_218", Ht = "ds-input-password_hint_22l92_218", Lt = "ds-input-password_label_22l92_218", $t = "ds-input-password_wrapper_22l92_222", qt = "ds-input-password_action-button_22l92_228", At = "ds-input-password_label--hidden_22l92_246", Tt = "ds-input-password_label--disabled_22l92_259", Et = "ds-input-password_feedback_22l92_279", s = {
|
|
12
12
|
input: gt,
|
|
13
13
|
inputSmall: kt,
|
|
14
14
|
inputInvalid: Nt,
|
|
@@ -23,15 +23,15 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
23
23
|
feedback: Et
|
|
24
24
|
}, Vt = ({
|
|
25
25
|
id: d,
|
|
26
|
-
label:
|
|
26
|
+
label: i
|
|
27
27
|
}) => {
|
|
28
28
|
if (!d)
|
|
29
29
|
throw new Error(ct("DSInputPassword", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'));
|
|
30
|
-
if (!
|
|
30
|
+
if (!i)
|
|
31
31
|
throw new Error(ct("DSInputPassword", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`));
|
|
32
|
-
}, Ft = vt((d,
|
|
32
|
+
}, Ft = vt((d, i) => {
|
|
33
33
|
const t = ht.c(82);
|
|
34
|
-
let c, n, e, r, p,
|
|
34
|
+
let c, n, e, r, p, l, B, I, g, k, N, x, C, u;
|
|
35
35
|
t[0] !== d ? ({
|
|
36
36
|
id: e,
|
|
37
37
|
label: r,
|
|
@@ -45,10 +45,10 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
45
45
|
required: x,
|
|
46
46
|
togglePasswordVisibilityButtonProps: u,
|
|
47
47
|
size: C,
|
|
48
|
-
systemFeedback:
|
|
48
|
+
systemFeedback: l,
|
|
49
49
|
...p
|
|
50
|
-
} = d, t[0] = d, t[1] = c, t[2] = n, t[3] = e, t[4] = r, t[5] = p, t[6] =
|
|
51
|
-
const K = B === void 0 ? "new-password" : B,
|
|
50
|
+
} = d, t[0] = d, t[1] = c, t[2] = n, t[3] = e, t[4] = r, t[5] = p, t[6] = l, t[7] = B, t[8] = I, t[9] = g, t[10] = k, t[11] = N, t[12] = x, t[13] = C, t[14] = u) : (c = t[1], n = t[2], e = t[3], r = t[4], p = t[5], l = t[6], B = t[7], I = t[8], g = t[9], k = t[10], N = t[11], x = t[12], C = t[13], u = t[14]);
|
|
51
|
+
const K = B === void 0 ? "new-password" : B, a = I === void 0 ? !1 : I, pt = g === void 0 ? !1 : g, o = k === void 0 ? !1 : k, A = N === void 0 ? !1 : N, b = x === void 0 ? !1 : x, H = C === void 0 ? "medium" : C;
|
|
52
52
|
process.env.NODE_ENV !== "production" && Vt({
|
|
53
53
|
id: e,
|
|
54
54
|
label: r
|
|
@@ -63,7 +63,7 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
63
63
|
} = f, t[17] = f, t[18] = m, t[19] = L, t[20] = $) : (m = t[18], L = t[19], $ = t[20]);
|
|
64
64
|
const ut = $ === void 0 ? "Hide password" : $, bt = L === void 0 ? "Show password" : L, [Q, ft] = yt(!1), T = `${e}-label`, w = `${e}-feedback`, E = `${e}-hint`, mt = n ? ` ${E}` : "";
|
|
65
65
|
let V;
|
|
66
|
-
t[21] !== o || t[22] !==
|
|
66
|
+
t[21] !== o || t[22] !== l || t[23] !== w ? (V = [o && l && w].filter(Boolean).join(" ") || void 0, t[21] = o, t[22] = l, t[23] = w, t[24] = V) : V = t[24];
|
|
67
67
|
const U = V, W = St(pt);
|
|
68
68
|
let F;
|
|
69
69
|
t[25] !== c ? (F = J(s.root, c), t[25] = c, t[26] = F) : F = t[26];
|
|
@@ -76,10 +76,10 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
76
76
|
}), t[27] = o, t[28] = Y, t[29] = R) : R = t[29];
|
|
77
77
|
const Z = R;
|
|
78
78
|
let j;
|
|
79
|
-
t[30] !==
|
|
79
|
+
t[30] !== a || t[31] !== W ? (j = J(s.label, {
|
|
80
80
|
[s.labelHidden]: W,
|
|
81
|
-
[s.labelDisabled]:
|
|
82
|
-
}), t[30] =
|
|
81
|
+
[s.labelDisabled]: a
|
|
82
|
+
}), t[30] = a, t[31] = W, t[32] = j) : j = t[32];
|
|
83
83
|
const tt = j, et = H === "small";
|
|
84
84
|
let z;
|
|
85
85
|
t[33] !== et ? (z = J(s.actionButton, {
|
|
@@ -87,9 +87,9 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
87
87
|
}), t[33] = et, t[34] = z) : z = t[34];
|
|
88
88
|
const st = z, wt = Pt(null);
|
|
89
89
|
let O;
|
|
90
|
-
t[35] !==
|
|
91
|
-
wt.current = dt, typeof
|
|
92
|
-
}, t[35] =
|
|
90
|
+
t[35] !== i ? (O = (dt) => {
|
|
91
|
+
wt.current = dt, typeof i == "function" ? i(dt) : i && (i.current = dt);
|
|
92
|
+
}, t[35] = i, t[36] = O) : O = t[36];
|
|
93
93
|
const ot = O;
|
|
94
94
|
let M;
|
|
95
95
|
t[37] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
@@ -105,26 +105,26 @@ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_inpu
|
|
|
105
105
|
] }), t[40] = e, t[41] = T, t[42] = r, t[43] = tt, t[44] = _, t[45] = h) : h = t[45];
|
|
106
106
|
let v;
|
|
107
107
|
t[46] !== n || t[47] !== E ? (v = n && /* @__PURE__ */ q("div", { className: s.hint, id: E, children: n }), t[46] = n, t[47] = E, t[48] = v) : v = t[48];
|
|
108
|
+
const lt = `${T}${mt}`, at = Q ? "text" : "password";
|
|
108
109
|
let y;
|
|
109
|
-
t[49] !==
|
|
110
|
-
const
|
|
110
|
+
t[49] !== U || t[50] !== K || t[51] !== a || t[52] !== ot || t[53] !== e || t[54] !== Z || t[55] !== o || t[56] !== A || t[57] !== b || t[58] !== p || t[59] !== lt || t[60] !== at ? (y = /* @__PURE__ */ q("input", { className: Z, id: e, ...p, ref: ot, "aria-labelledby": lt, "aria-describedby": U, "aria-invalid": o, "aria-disabled": A, readOnly: A, required: b, disabled: a, autoComplete: K, type: at }), t[49] = U, t[50] = K, t[51] = a, t[52] = ot, t[53] = e, t[54] = Z, t[55] = o, t[56] = A, t[57] = b, t[58] = p, t[59] = lt, t[60] = at, t[61] = y) : y = t[61];
|
|
111
|
+
const it = Q ? "eye-closed" : "eye", nt = Q ? ut : bt;
|
|
111
112
|
let P;
|
|
112
|
-
t[
|
|
113
|
-
const lt = Q ? "eye-closed" : "eye", nt = Q ? ut : bt;
|
|
113
|
+
t[62] !== st || t[63] !== a || t[64] !== m || t[65] !== H || t[66] !== it || t[67] !== nt ? (P = /* @__PURE__ */ q(Bt, { ...m, hideLabel: !0, theme: "light", iconName: it, variant: "ghost", className: st, size: H, onClick: _t, type: "button", disabled: a, children: nt }), t[62] = st, t[63] = a, t[64] = m, t[65] = H, t[66] = it, t[67] = nt, t[68] = P) : P = t[68];
|
|
114
114
|
let S;
|
|
115
|
-
t[
|
|
115
|
+
t[69] !== y || t[70] !== P ? (S = /* @__PURE__ */ rt("div", { className: s.wrapper, children: [
|
|
116
|
+
y,
|
|
117
|
+
P
|
|
118
|
+
] }), t[69] = y, t[70] = P, t[71] = S) : S = t[71];
|
|
116
119
|
let D;
|
|
117
|
-
t[73] !==
|
|
118
|
-
P,
|
|
119
|
-
S
|
|
120
|
-
] }), t[73] = P, t[74] = S, t[75] = D) : D = t[75];
|
|
120
|
+
t[72] !== o || t[73] !== l || t[74] !== w ? (D = o && l && /* @__PURE__ */ q(It, { className: s.feedback, message: l, variant: "error", id: w }), t[72] = o, t[73] = l, t[74] = w, t[75] = D) : D = t[75];
|
|
121
121
|
let G;
|
|
122
|
-
return t[76] !== X || t[77] !== h || t[78] !== v || t[79] !==
|
|
122
|
+
return t[76] !== X || t[77] !== h || t[78] !== v || t[79] !== S || t[80] !== D ? (G = /* @__PURE__ */ rt("div", { className: X, children: [
|
|
123
123
|
h,
|
|
124
124
|
v,
|
|
125
|
-
|
|
125
|
+
S,
|
|
126
126
|
D
|
|
127
|
-
] }), t[76] = X, t[77] = h, t[78] = v, t[79] =
|
|
127
|
+
] }), t[76] = X, t[77] = h, t[78] = v, t[79] = S, t[80] = D, t[81] = G) : G = t[81], G;
|
|
128
128
|
});
|
|
129
129
|
Ft.displayName = "DSInputPassword";
|
|
130
130
|
function Rt(d) {
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as L, jsxs as gt } from "react/jsx-runtime";
|
|
3
|
+
import { d as Pt } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as R } from "./index.DL9mof6u.js";
|
|
5
|
+
import { forwardRef as Vt, useState as Ot, useRef as wt, useEffect as Et } from "react";
|
|
6
|
+
import { g as qt, a as $t } from "./helpers.CexwVao7.js";
|
|
7
|
+
import { u as jt } from "./useBreakpoint.BzR_yaIv.js";
|
|
8
|
+
import { Asterisk as xt } from "../asterisk.B2ih8VwF.js";
|
|
9
|
+
import { D as kt } from "./Button.DCZgBNmA.js";
|
|
10
|
+
import { D as Ft } from "./SystemFeedback.CjlARKki.js";
|
|
11
|
+
import '../assets/InputSearch.C1_4cVCi.css';const Rt = "ds-input-search_input_142qf_1", Tt = "ds-input-search_input--small_142qf_9", zt = "ds-input-search_input--invalid_142qf_121", Mt = "ds-input-search_input--has-action-button_142qf_182", Wt = "ds-input-search_input--has-second-action-button_142qf_185", Gt = "ds-input-search_root_142qf_218", Jt = "ds-input-search_hint_142qf_218", Kt = "ds-input-search_label_142qf_218", Qt = "ds-input-search_wrapper_142qf_222", Ut = "ds-input-search_action-button_142qf_228", Xt = "ds-input-search_second-action-button_142qf_232", Yt = "ds-input-search_label--hidden_142qf_250", Zt = "ds-input-search_label--disabled_142qf_263", te = "ds-input-search_feedback_142qf_283", s = {
|
|
12
|
+
input: Rt,
|
|
13
|
+
inputSmall: Tt,
|
|
14
|
+
inputInvalid: zt,
|
|
15
|
+
inputHasActionButton: Mt,
|
|
16
|
+
inputHasSecondActionButton: Wt,
|
|
17
|
+
root: Gt,
|
|
18
|
+
hint: Jt,
|
|
19
|
+
label: Kt,
|
|
20
|
+
wrapper: Qt,
|
|
21
|
+
actionButton: Ut,
|
|
22
|
+
secondActionButton: Xt,
|
|
23
|
+
labelHidden: Yt,
|
|
24
|
+
labelDisabled: Zt,
|
|
25
|
+
feedback: te
|
|
26
|
+
}, ee = ({
|
|
27
|
+
id: a,
|
|
28
|
+
label: i
|
|
29
|
+
}) => {
|
|
30
|
+
if (!a)
|
|
31
|
+
throw new Error(qt("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
|
|
32
|
+
if (!i)
|
|
33
|
+
throw new Error(qt("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
|
|
34
|
+
}, se = (a) => !!$t(a, "form"), ne = Vt((a, i) => {
|
|
35
|
+
const t = Pt.c(103);
|
|
36
|
+
let c, d, e, h, b, m, _, o, H, P, V, O, $, j, x, p;
|
|
37
|
+
t[0] !== a ? ({
|
|
38
|
+
id: e,
|
|
39
|
+
label: h,
|
|
40
|
+
className: c,
|
|
41
|
+
clearButtonLabel: H,
|
|
42
|
+
disabled: P,
|
|
43
|
+
hint: d,
|
|
44
|
+
hideLabel: V,
|
|
45
|
+
invalid: O,
|
|
46
|
+
readonly: $,
|
|
47
|
+
required: j,
|
|
48
|
+
size: x,
|
|
49
|
+
systemFeedback: o,
|
|
50
|
+
value: p,
|
|
51
|
+
submitButtonProps: _,
|
|
52
|
+
onChange: b,
|
|
53
|
+
...m
|
|
54
|
+
} = a, t[0] = a, t[1] = c, t[2] = d, t[3] = e, t[4] = h, t[5] = b, t[6] = m, t[7] = _, t[8] = o, t[9] = H, t[10] = P, t[11] = V, t[12] = O, t[13] = $, t[14] = j, t[15] = x, t[16] = p) : (c = t[1], d = t[2], e = t[3], h = t[4], b = t[5], m = t[6], _ = t[7], o = t[8], H = t[9], P = t[10], V = t[11], O = t[12], $ = t[13], j = t[14], x = t[15], p = t[16]);
|
|
55
|
+
const lt = H === void 0 ? "Clear search field" : H, l = P === void 0 ? !1 : P, At = V === void 0 ? !1 : V, n = O === void 0 ? !1 : O, r = $ === void 0 ? !1 : $, v = j === void 0 ? !1 : j, u = x === void 0 ? "medium" : x;
|
|
56
|
+
process.env.NODE_ENV !== "production" && ee({
|
|
57
|
+
id: e,
|
|
58
|
+
label: h
|
|
59
|
+
});
|
|
60
|
+
let S;
|
|
61
|
+
t[17] !== _ ? (S = _ || {}, t[17] = _, t[18] = S) : S = t[18];
|
|
62
|
+
let y, B, F;
|
|
63
|
+
t[19] !== S ? ({
|
|
64
|
+
label: F,
|
|
65
|
+
onClick: y,
|
|
66
|
+
...B
|
|
67
|
+
} = S, t[19] = S, t[20] = y, t[21] = B, t[22] = F) : (y = t[20], B = t[21], F = t[22]);
|
|
68
|
+
const ot = F === void 0 ? "Search" : F, [D, Nt] = Ot(p), ct = wt(null), T = wt(null);
|
|
69
|
+
let z;
|
|
70
|
+
t[23] !== i ? (z = (f) => {
|
|
71
|
+
T.current = f, typeof i == "function" ? i(f) : i && (i.current = f);
|
|
72
|
+
}, t[23] = i, t[24] = z) : z = t[24];
|
|
73
|
+
const rt = z, ut = jt(At);
|
|
74
|
+
let M, W;
|
|
75
|
+
t[25] !== p ? (M = () => {
|
|
76
|
+
Nt(p);
|
|
77
|
+
}, W = [p], t[25] = p, t[26] = M, t[27] = W) : (M = t[26], W = t[27]), Et(M, W);
|
|
78
|
+
let G;
|
|
79
|
+
t[28] !== e ? (G = () => {
|
|
80
|
+
ct.current && !se(ct.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(qt("DSInputSearch", `The DSInputSearch component with the id "${e}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
|
|
81
|
+
}, t[28] = e, t[29] = G) : G = t[29];
|
|
82
|
+
let J;
|
|
83
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (J = [], t[30] = J) : J = t[30], Et(G, J);
|
|
84
|
+
const K = `${e}-label`, I = `${e}-feedback`, Q = `${e}-hint`, Ct = d ? ` ${Q}` : "";
|
|
85
|
+
let U;
|
|
86
|
+
t[31] !== n || t[32] !== o || t[33] !== I ? (U = [n && o && I].filter(Boolean).join(" ") || void 0, t[31] = n, t[32] = o, t[33] = I, t[34] = U) : U = t[34];
|
|
87
|
+
const dt = U, X = D !== "" && D !== void 0 && D !== null;
|
|
88
|
+
let Y;
|
|
89
|
+
t[35] !== c ? (Y = R(s.root, c), t[35] = c, t[36] = Y) : Y = t[36];
|
|
90
|
+
const pt = Y, ft = u === "small", ht = X && !r && !l;
|
|
91
|
+
let Z;
|
|
92
|
+
t[37] !== n || t[38] !== ft || t[39] !== ht ? (Z = R(s.input, {
|
|
93
|
+
[s.inputSmall]: ft,
|
|
94
|
+
[s.inputInvalid]: n,
|
|
95
|
+
[s.inputHasActionButton]: !0,
|
|
96
|
+
[s.inputHasSecondActionButton]: ht
|
|
97
|
+
}), t[37] = n, t[38] = ft, t[39] = ht, t[40] = Z) : Z = t[40];
|
|
98
|
+
const bt = Z;
|
|
99
|
+
let tt;
|
|
100
|
+
t[41] !== l || t[42] !== ut ? (tt = R(s.label, {
|
|
101
|
+
[s.labelHidden]: ut,
|
|
102
|
+
[s.labelDisabled]: l
|
|
103
|
+
}), t[41] = l, t[42] = ut, t[43] = tt) : tt = t[43];
|
|
104
|
+
const mt = tt, _t = u === "small";
|
|
105
|
+
let et;
|
|
106
|
+
t[44] !== _t ? (et = R(s.actionButton, {
|
|
107
|
+
[s.actionButtonSmall]: _t
|
|
108
|
+
}), t[44] = _t, t[45] = et) : et = t[45];
|
|
109
|
+
const vt = et, St = u === "small";
|
|
110
|
+
let st;
|
|
111
|
+
t[46] !== St ? (st = R(s.secondActionButton, {
|
|
112
|
+
[s.secondActionButtonSmall]: St
|
|
113
|
+
}), t[46] = St, t[47] = st) : st = t[47];
|
|
114
|
+
const yt = st, Lt = ae;
|
|
115
|
+
let nt;
|
|
116
|
+
t[48] === Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
|
|
117
|
+
if (!T.current)
|
|
118
|
+
return;
|
|
119
|
+
Lt(T.current, "");
|
|
120
|
+
const f = new Event("change", {
|
|
121
|
+
bubbles: !0
|
|
122
|
+
});
|
|
123
|
+
T.current?.dispatchEvent(f);
|
|
124
|
+
}, t[48] = nt) : nt = t[48];
|
|
125
|
+
const Ht = nt;
|
|
126
|
+
let at;
|
|
127
|
+
t[49] !== b ? (at = (f) => {
|
|
128
|
+
Nt(f.target.value), b && b(f);
|
|
129
|
+
}, t[49] = b, t[50] = at) : at = t[50];
|
|
130
|
+
const Bt = at;
|
|
131
|
+
let g;
|
|
132
|
+
t[51] !== v ? (g = v && /* @__PURE__ */ L(xt, {}), t[51] = v, t[52] = g) : g = t[52];
|
|
133
|
+
let q;
|
|
134
|
+
t[53] !== e || t[54] !== K || t[55] !== h || t[56] !== mt || t[57] !== g ? (q = /* @__PURE__ */ gt("label", { className: mt, id: K, htmlFor: e, children: [
|
|
135
|
+
h,
|
|
136
|
+
g
|
|
137
|
+
] }), t[53] = e, t[54] = K, t[55] = h, t[56] = mt, t[57] = g, t[58] = q) : q = t[58];
|
|
138
|
+
let N;
|
|
139
|
+
t[59] !== d || t[60] !== Q ? (N = d && /* @__PURE__ */ L("div", { className: s.hint, id: Q, children: d }), t[59] = d, t[60] = Q, t[61] = N) : N = t[61];
|
|
140
|
+
const Dt = `${K}${Ct}`;
|
|
141
|
+
let w;
|
|
142
|
+
t[62] !== dt || t[63] !== l || t[64] !== rt || t[65] !== Bt || t[66] !== e || t[67] !== bt || t[68] !== D || t[69] !== n || t[70] !== r || t[71] !== v || t[72] !== m || t[73] !== Dt ? (w = /* @__PURE__ */ L("input", { className: bt, id: e, ...m, ref: rt, "aria-labelledby": Dt, "aria-describedby": dt, "aria-invalid": n, "aria-disabled": r, readOnly: r, required: v, disabled: l, type: "search", value: D, onChange: Bt }), t[62] = dt, t[63] = l, t[64] = rt, t[65] = Bt, t[66] = e, t[67] = bt, t[68] = D, t[69] = n, t[70] = r, t[71] = v, t[72] = m, t[73] = Dt, t[74] = w) : w = t[74];
|
|
143
|
+
let E;
|
|
144
|
+
t[75] !== yt || t[76] !== lt || t[77] !== l || t[78] !== X || t[79] !== r || t[80] !== u ? (E = X && !r && !l && /* @__PURE__ */ L(kt, { hideLabel: !0, theme: "light", iconName: "cross", className: yt, variant: "ghost", size: u, onClick: Ht, type: "button", tabIndex: -1, children: lt }), t[75] = yt, t[76] = lt, t[77] = l, t[78] = X, t[79] = r, t[80] = u, t[81] = E) : E = t[81];
|
|
145
|
+
const It = l || r;
|
|
146
|
+
let k;
|
|
147
|
+
t[82] !== y || t[83] !== B || t[84] !== u || t[85] !== vt || t[86] !== ot || t[87] !== It ? (k = /* @__PURE__ */ L(kt, { ...B, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: vt, variant: "ghost", size: u, onClick: y, type: "submit", disabled: It, children: ot }), t[82] = y, t[83] = B, t[84] = u, t[85] = vt, t[86] = ot, t[87] = It, t[88] = k) : k = t[88];
|
|
148
|
+
let A;
|
|
149
|
+
t[89] !== w || t[90] !== E || t[91] !== k ? (A = /* @__PURE__ */ gt("div", { className: s.wrapper, children: [
|
|
150
|
+
w,
|
|
151
|
+
E,
|
|
152
|
+
k
|
|
153
|
+
] }), t[89] = w, t[90] = E, t[91] = k, t[92] = A) : A = t[92];
|
|
154
|
+
let C;
|
|
155
|
+
t[93] !== n || t[94] !== o || t[95] !== I ? (C = n && o && /* @__PURE__ */ L(Ft, { className: s.feedback, message: o, variant: "error", id: I }), t[93] = n, t[94] = o, t[95] = I, t[96] = C) : C = t[96];
|
|
156
|
+
let it;
|
|
157
|
+
return t[97] !== pt || t[98] !== q || t[99] !== N || t[100] !== A || t[101] !== C ? (it = /* @__PURE__ */ gt("div", { className: pt, ref: ct, children: [
|
|
158
|
+
q,
|
|
159
|
+
N,
|
|
160
|
+
A,
|
|
161
|
+
C
|
|
162
|
+
] }), t[97] = pt, t[98] = q, t[99] = N, t[100] = A, t[101] = C, t[102] = it) : it = t[102], it;
|
|
163
|
+
});
|
|
164
|
+
ne.displayName = "DSInputSearch";
|
|
165
|
+
function ae(a, i) {
|
|
166
|
+
const t = Object.getPrototypeOf(a), c = Object.getOwnPropertyDescriptor(t, "value");
|
|
167
|
+
c?.set ? c.set.call(a, i) : a.value = i;
|
|
168
|
+
}
|
|
169
|
+
export {
|
|
170
|
+
ne as D,
|
|
171
|
+
se as i,
|
|
172
|
+
ee as v
|
|
173
|
+
};
|