@stihl-design-system/components 1.0.0-RC.1 → 1.0.0-RC.10
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/Klarna.svg +1 -0
- package/Mastercard.svg +2 -0
- package/Notification-additional-information.jpeg +0 -0
- package/Notification-confirm-error.jpg +0 -0
- package/Notification-confirm-warn.jpeg +0 -0
- package/Notification-overview.jpeg +0 -0
- package/Notification-success.jpeg +0 -0
- package/PayPal.svg +2 -0
- package/Placeholder.svg +1 -0
- package/README.md +1 -1
- package/Visa.svg +2 -0
- package/accordion.B3UkxlAZ.js +10 -0
- package/accordion.d.ts +1 -0
- package/arialiveregions.BK4T7Vhk.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.lFv7Q_RG.css +1 -0
- package/assets/CustomReactSelect.CMkn-EGK.css +1 -0
- package/assets/Dialog.fiQvxJg_.css +1 -0
- package/assets/Drawer.BqBgbSuP.css +1 -0
- package/assets/Fieldset.qHYeUFZt.css +1 -0
- package/assets/Icon.Duy_0R8w.css +1 -0
- package/assets/InputPassword.Cf394z47.css +1 -0
- package/assets/InputSearch.eCRQoxjN.css +1 -0
- package/assets/InputStepper.B80KulYE.css +1 -0
- package/assets/Notification.DK6agBGS.css +1 -0
- package/assets/RadioGroup.Bz3_xkZU.css +1 -0
- package/assets/Select.BptsMxz4.css +1 -0
- package/assets/Textarea.CIIVh03G.css +1 -0
- package/assets/Toast.Dsvs1zdM.css +1 -0
- package/assets/arialiveregions.GsGx2USO.css +1 -0
- package/assets/asterisk.DlJ4YtSZ.css +1 -0
- package/assets/button.B1O7Yw3Q.css +1 -0
- package/assets/buttonround.DlH_ipDo.css +1 -0
- package/assets/checkbox.K4CVYK9g.css +1 -0
- package/assets/floatingactionbutton.DRYentYC.css +1 -0
- package/assets/heading.6bER-Eac.css +1 -0
- package/assets/input.C0MrSbQu.css +1 -0
- package/assets/link.vtTST2ki.css +1 -0
- package/assets/linkstandalone.BtAcziZ7.css +1 -0
- package/assets/logo.pETQEsvZ.css +1 -0
- package/assets/optioncheckbox.BJJAph5_.css +1 -0
- package/assets/radio.9kpIO3HC.css +1 -0
- package/assets/skiptocontent.CHcqLS7S.css +1 -0
- package/assets/spinner.D_Nnf1ZG.css +1 -0
- package/assets/switch.2DQF2zH-.css +1 -0
- package/assets/systemfeedback.Sq0bAIyf.css +1 -0
- package/assets/text.Dhb_l50R.css +1 -0
- package/assets/title.f74Bosn-.css +1 -0
- package/asterisk.DDn-yX4P.js +8 -0
- package/button.DH0h6uPs.js +135 -0
- package/buttonround.0mw4zzlU.js +118 -0
- package/checkbox.DETR3e3X.js +112 -0
- package/checkboxgroup.CZqrlF-x.js +9 -0
- package/chunks/360.CfjUtgxq.js +10 -0
- package/chunks/Accordion.pI3JyHJL.js +125 -0
- package/chunks/AriaLiveRegions.utils.D2ni4Yrf.js +34 -0
- package/chunks/CheckboxGroup.4J_gZ_XJ.js +87 -0
- package/chunks/CustomReactSelect.ChAtL6fu.js +3591 -0
- package/chunks/Dialog.Z5ESJQMi.js +148 -0
- package/chunks/Drawer.BdowMqE0.js +154 -0
- package/chunks/Fieldset.COGbZwry.js +99 -0
- package/chunks/Icon.C2o2seDb.js +223 -0
- package/chunks/{Input.utils.f8f3286f.js → Input.utils.ChV6RJsh.js} +24 -17
- package/chunks/InputPassword.Dgo95-PU.js +140 -0
- package/chunks/InputSearch.BFof0pBn.js +189 -0
- package/chunks/InputStepper.4IqLa5tX.js +291 -0
- package/chunks/Notification.BhwbaXqk.js +93 -0
- package/chunks/RadioGroup.C5jbCJM4.js +132 -0
- package/chunks/RadioGroup.module.BBZwHDjW.js +11 -0
- package/chunks/Select.fXeQJXtz.js +191 -0
- package/chunks/Textarea.Bewrp0Za.js +195 -0
- package/chunks/Toast.DA_CQ9J-.js +89 -0
- package/chunks/academic-cap.OBigTQQS.js +10 -0
- package/chunks/alarm-clock.CpK-AEZG.js +10 -0
- package/chunks/arrow-clockwise.BefOjGPg.js +10 -0
- package/chunks/arrow-counterclockwise.C7Ov32BZ.js +10 -0
- package/chunks/arrow-down-line.RDD2pRZY.js +10 -0
- package/chunks/arrow-down.XpokLh98.js +10 -0
- package/chunks/arrow-edge.CPA93M81.js +10 -0
- package/chunks/arrow-left.C8NG5I2X.js +10 -0
- package/chunks/arrow-out.CsHHHYN9.js +10 -0
- package/chunks/arrow-outline-left.Bhw_LzfV.js +10 -0
- package/chunks/arrow-right.HNwAz18h.js +10 -0
- package/chunks/arrow-up-arrow-down.BVyuVJP5.js +10 -0
- package/chunks/arrow-up.Ca1GnLaY.js +10 -0
- package/chunks/at.BNfdp4M0.js +10 -0
- package/chunks/barcode-scanner.D0olxB_m.js +10 -0
- package/chunks/battery.YCg9lYqC.js +10 -0
- package/chunks/bell.DbPxCAUM.js +10 -0
- package/chunks/bin-open.DsjIBW00.js +10 -0
- package/chunks/bin.ktpYUJmK.js +10 -0
- package/chunks/bluetooth.dW5tTwby.js +10 -0
- package/chunks/bookmark.B7Mbr-d6.js +10 -0
- package/chunks/burger.DLP81BXa.js +10 -0
- package/chunks/calendar.Cig7yG7m.js +10 -0
- package/chunks/camera.BoCB0Emp.js +10 -0
- package/chunks/cart-check.CYH0vTB8.js +10 -0
- package/chunks/cart-plus.DzXXFMZj.js +10 -0
- package/chunks/cart.CoEwMABr.js +10 -0
- package/chunks/catalog.CwV-J6Kb.js +10 -0
- package/chunks/certificate.Crs4RohK.js +10 -0
- package/chunks/chain-link.BMV2WV6k.js +10 -0
- package/chunks/chainsaw.CI1EYF7a.js +10 -0
- package/chunks/check.CuZKWgYj.js +10 -0
- package/chunks/chevron-down.5UkGOwK_.js +10 -0
- package/chunks/chevron-left.DRFQ-efY.js +10 -0
- package/chunks/chevron-line-left.SQvDJQ1t.js +10 -0
- package/chunks/chevron-line-right.CYQ3b2cQ.js +10 -0
- package/chunks/chevron-right.B_Ew9QUt.js +10 -0
- package/chunks/chevron-up.DqETUWqG.js +10 -0
- package/chunks/circle-check-colored.Bye_GwLy.js +10 -0
- package/chunks/circle-check-inverted.Cc2cUmWT.js +10 -0
- package/chunks/circle-info-colored.D2pp54gf.js +10 -0
- package/chunks/circle-info-inverted.D8Z0vTmu.js +10 -0
- package/chunks/circle-pause.DaRfXOff.js +10 -0
- package/chunks/circle-stroke.CWu_o3Gx.js +10 -0
- package/chunks/circle.471EUzv6.js +10 -0
- package/chunks/clock.Bw5ICIVH.js +10 -0
- package/chunks/coffee-cup.DIijzKx_.js +10 -0
- package/chunks/compare.BgktBbYD.js +10 -0
- package/chunks/connected-box-mobile.DboMCVxp.js +10 -0
- package/chunks/connected-box-stationary.CAPCPQ1d.js +10 -0
- package/chunks/connected-box.DVqJw-ws.js +10 -0
- package/chunks/cross.rEw3TuHs.js +10 -0
- package/chunks/diamond-exclamationmark-colored.WNKYwZ8q.js +10 -0
- package/chunks/diamond-exclamationmark-inverted.DzAIb8Nt.js +10 -0
- package/chunks/diamond.CXZHFpPC.js +10 -0
- package/chunks/diskette._0C2VZ9v.js +10 -0
- package/chunks/distance.FA6pTjcW.js +10 -0
- package/chunks/dots-connected.ZMYjHeNS.js +10 -0
- package/chunks/{download-complete.0b84a7cc.js → download-complete.CZVpzrvY.js} +3 -4
- package/chunks/envelope-open.CA4cE5lk.js +10 -0
- package/chunks/envelope.re-RxZVw.js +10 -0
- package/chunks/exclamationmark.DEbIGqGC.js +10 -0
- package/chunks/exit.Cgb8AB-k.js +10 -0
- package/chunks/eye-closed.CvqozUwK.js +10 -0
- package/chunks/eye.CRQMKZs4.js +10 -0
- package/chunks/{triangle.bff84ddf.js → facebook.CVcxa0rV.js} +2 -3
- package/chunks/filter.DrPSKpaG.js +10 -0
- package/chunks/finger-double-arrow.DDUZoPh8.js +10 -0
- package/chunks/flash.CgJJ1bUx.js +10 -0
- package/chunks/fullscreen.Be2rBj1i.js +10 -0
- package/chunks/gear.DEltGVSA.js +10 -0
- package/chunks/globe.DG6uw6fi.js +10 -0
- package/chunks/grid.DH1impeF.js +10 -0
- package/chunks/guidance.BBYB3JpW.js +10 -0
- package/chunks/haircross.D-whkit9.js +10 -0
- package/chunks/hanger.Bo8qtNo5.js +10 -0
- package/chunks/has-document.r9i9TxKV.js +5 -0
- package/chunks/headphones.DjWXOuJJ.js +10 -0
- package/chunks/heart.D-BnHMb-.js +10 -0
- package/chunks/hexagon-arrow-clockwise.D0eeDQQx.js +10 -0
- package/chunks/horizontal-ellipsis.ChdN6RnG.js +10 -0
- package/chunks/house.BohpDQ3q.js +10 -0
- package/chunks/imow.Dh1oMqcW.js +10 -0
- package/chunks/info.BZVg9FLA.js +10 -0
- package/chunks/instagram.CIlKb7xj.js +10 -0
- package/chunks/{jsx-runtime.5c071667.js → jsx-runtime.C115EyI4.js} +259 -256
- package/chunks/leave-fullscreen.BC5iwDur.js +10 -0
- package/chunks/lightbulb.DQ7TiRsr.js +10 -0
- package/chunks/linkedin.br5zvxco.js +10 -0
- package/chunks/list-three-rows.Cso4ybs8.js +10 -0
- package/chunks/list-two-rows.DOsZEv0-.js +10 -0
- package/chunks/loading-spinner.BukfMaU6.js +10 -0
- package/chunks/lock.Dw_GOpTn.js +10 -0
- package/chunks/magnifying-glass-minus.BYztw2P1.js +10 -0
- package/chunks/magnifying-glass-plus.BTgviDVh.js +10 -0
- package/chunks/magnifying-glass.C8DfRaIO.js +10 -0
- package/chunks/map.CXgG1iGz.js +10 -0
- package/chunks/minus.BkhCuIH4.js +10 -0
- package/chunks/mobile.C1Kj9VnC.js +10 -0
- package/chunks/nine-squares.DVsNAOzz.js +10 -0
- package/chunks/note-check.CM_kmt0M.js +10 -0
- package/chunks/note-plus.Bkn78EyA.js +10 -0
- package/chunks/note.CE0ACLn8.js +10 -0
- package/chunks/number-input.BLhoh5mh.js +10 -0
- package/chunks/paperclip.BMerX4rj.js +10 -0
- package/chunks/parcel.Ve9GL_EG.js +10 -0
- package/chunks/pause.B91Ejn-O.js +10 -0
- package/chunks/pdf.9kZbElrZ.js +10 -0
- package/chunks/pen.CvKw2PvE.js +10 -0
- package/chunks/percent.BlB6rG-B.js +10 -0
- package/chunks/petrol.Du6qAgp0.js +10 -0
- package/chunks/phone.DzdXfmNC.js +10 -0
- package/chunks/pin-s.DXgYuN9C.js +10 -0
- package/chunks/pin.DZfZr4El.js +10 -0
- package/chunks/pinterest.sUPAub_q.js +10 -0
- package/chunks/placeholder.Dbb0hT5R.js +10 -0
- package/chunks/play.BDiY2JrT.js +10 -0
- package/chunks/plug.DZozve4C.js +10 -0
- package/chunks/plus.zdu17kAe.js +10 -0
- package/chunks/printer.CaFaWfeS.js +10 -0
- package/chunks/prohibition-sign.DUFn0QiV.js +10 -0
- package/chunks/questionmark.QyDxanQy.js +10 -0
- package/chunks/security.DkLw5ym4.js +10 -0
- package/chunks/share.C3wwEl8n.js +10 -0
- package/chunks/shirt.BC8W-yCI.js +10 -0
- package/chunks/shop.DdPV35mK.js +10 -0
- package/chunks/sound-off.D4kGcehG.js +10 -0
- package/chunks/sound-on.Cynkb0_t.js +10 -0
- package/chunks/speechbubble.87vuoKUp.js +10 -0
- package/chunks/speechbubbles.CSFhpNJn.js +10 -0
- package/chunks/square.D6PgEi_r.js +10 -0
- package/chunks/star-half.DZTtM5Bw.js +10 -0
- package/chunks/star.BkjednvI.js +10 -0
- package/chunks/tag.yO7uMsHj.js +10 -0
- package/chunks/thumbs-down.DeBD6wnK.js +10 -0
- package/chunks/thumbs-up.D-44gexH.js +10 -0
- package/chunks/triangle-exclamationmark-colored.CbVC3Gzi.js +10 -0
- package/chunks/triangle-exclamationmark-inverted.BiGoK7TV.js +10 -0
- package/chunks/triangle.ibv6NDnt.js +10 -0
- package/chunks/truck.xIk5wW6T.js +10 -0
- package/chunks/two-people-screen.BBLouaW4.js +10 -0
- package/chunks/two-sheets.DWFmuL7N.js +10 -0
- package/chunks/upload.ZImTAIgx.js +10 -0
- package/chunks/user.BMARueuy.js +10 -0
- package/chunks/vertical-ellipsis.Bc9eBsDF.js +10 -0
- package/chunks/wc.gmKE1r5l.js +10 -0
- package/chunks/whatsapp.CPpu-7Nn.js +10 -0
- package/chunks/wifi-1bar.BcEP-r8w.js +10 -0
- package/chunks/wifi-2bars.jDOd4Q3q.js +10 -0
- package/chunks/wifi-off.D9xPqVWn.js +10 -0
- package/chunks/wifi.CuQykF6X.js +10 -0
- package/chunks/wind-rose.C-XcKdy-.js +10 -0
- package/chunks/wrench.DMFV2S9u.js +10 -0
- package/chunks/x.BqbpXd7O.js +10 -0
- package/chunks/xing.CiKYLbPq.js +10 -0
- package/chunks/youtube.DrImaRSP.js +10 -0
- package/combobox.JL1Dsn3E.js +47 -0
- package/components/Accordion/Accordion.d.ts +40 -0
- package/components/Accordion/Accordion.test.d.ts +1 -0
- package/components/Accordion/Accordion.utils.d.ts +15 -0
- package/components/Accordion/Acordion.utils.test.d.ts +1 -0
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +4 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +5 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.test.d.ts +1 -0
- package/components/Asterisk/Asterisk.d.ts +0 -1
- package/components/Button/Button.d.ts +33 -17
- package/components/ButtonRound/ButtonRound.d.ts +12 -4
- package/components/Checkbox/Checkbox.d.ts +21 -11
- package/components/CheckboxGroup/CheckboxGroup.d.ts +19 -12
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +3 -2
- package/components/Combobox/Combobox.d.ts +12 -6
- package/components/Combobox/Combobox.utils.d.ts +4 -3
- package/components/CustomReactSelect/CustomReactSelect.d.ts +39 -26
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -2
- package/components/CustomReactSelect/OptionCheckbox.d.ts +2 -1
- package/components/Dialog/Dialog.d.ts +35 -0
- package/components/Dialog/Dialog.test.d.ts +1 -0
- package/components/Dialog/Dialog.utils.d.ts +12 -0
- package/components/Dialog/Dialog.utils.test.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +40 -0
- package/components/Drawer/Drawer.test.d.ts +1 -0
- package/components/Drawer/Drawer.utils.d.ts +14 -0
- package/components/Drawer/Drawer.utils.test.d.ts +1 -0
- package/components/Fieldset/Fieldset.d.ts +16 -10
- package/components/Fieldset/Fieldset.utils.d.ts +4 -3
- package/components/FloatingActionButton/FloatingActionButton.d.ts +7 -2
- package/components/Heading/Heading.d.ts +14 -7
- package/components/Heading/Heading.utils.d.ts +1 -1
- package/components/Icon/Icon.d.ts +15 -8
- package/components/Icon/Icon.utils.d.ts +4 -6
- package/components/Input/Input.d.ts +37 -23
- package/components/Input/Input.utils.d.ts +2 -1
- package/components/InputPassword/InputPassword.d.ts +35 -17
- package/components/InputPassword/InputPassword.utils.d.ts +2 -1
- package/components/InputSearch/InputSearch.d.ts +34 -18
- package/components/InputSearch/InputSearch.utils.d.ts +2 -1
- package/components/InputStepper/InputStepper.d.ts +47 -23
- package/components/InputStepper/InputStepper.utils.d.ts +2 -1
- package/components/Link/Link.d.ts +33 -20
- package/components/LinkStandalone/LinkStandalone.d.ts +8 -6
- package/components/Logo/Logo.d.ts +17 -8
- package/components/Logo/Logo.utils.d.ts +3 -1
- package/components/Notification/Notification.d.ts +36 -0
- package/components/Notification/Notification.test.d.ts +1 -0
- package/components/Notification/Notification.utils.d.ts +5 -0
- package/components/Radio/Radio.d.ts +31 -13
- package/components/RadioGroup/RadioGroup.d.ts +31 -21
- package/components/RadioGroup/RadioGroup.utils.d.ts +8 -5
- package/components/RadioGroup/RadioGroup.utils.test.d.ts +1 -0
- package/components/Select/Select.d.ts +26 -14
- package/components/Select/Select.utils.d.ts +4 -3
- package/components/SkipToContent/SkipToContent.d.ts +18 -0
- package/components/SkipToContent/SkipToContent.test.d.ts +1 -0
- package/components/Spinner/Spinner.d.ts +11 -6
- package/components/Switch/Switch.d.ts +23 -12
- package/components/SystemFeedback/SystemFeedback.d.ts +5 -4
- package/components/Text/Text.d.ts +17 -8
- package/components/Textarea/Textarea.d.ts +35 -17
- package/components/Textarea/Textarea.utils.d.ts +2 -1
- package/components/Title/Title.d.ts +14 -7
- package/components/Toast/Toast.d.ts +28 -0
- package/components/Toast/Toast.utils.d.ts +15 -0
- package/components/Toast/ToastManager.d.ts +10 -0
- package/components/Toast/ToastManager.test.d.ts +1 -0
- package/components/Toast/ToastManager.utils.d.ts +2 -0
- package/components/Toast/ToastManager.utils.test.d.ts +1 -0
- package/customreactselect.Dg8Kgq3e.js +13 -0
- package/dialog.D3bJ0rsW.js +9 -0
- package/dialog.d.ts +1 -0
- package/drawer.CNPF1-Kc.js +9 -0
- package/drawer.d.ts +1 -0
- package/fieldset.CTshPWYX.js +11 -0
- package/floatingactionbutton.CCIj9Fjr.js +87 -0
- package/heading.CAkraI2D.js +50 -0
- package/icon.BoMgOmC1.js +8 -0
- package/index.d.ts +32 -0
- package/index.es.js +158 -46
- package/input.CTgeAYdu.js +236 -0
- package/inputpassword.nsYu6YeB.js +12 -0
- package/inputsearch.ZGIrDrcv.js +13 -0
- package/inputstepper.BvY36hA1.js +13 -0
- package/link.DAZNwQ0a.js +116 -0
- package/linkstandalone.C9X3er7g.js +80 -0
- package/{logo.e6576fe3.js → logo.CEO6OV7u.js} +31 -34
- package/notification.BAS13UQ6.js +9 -0
- package/notification.d.ts +1 -0
- package/optioncheckbox.DZWwtx6f.js +43 -0
- package/package.json +51 -45
- package/partials/connected-apple-icon.png +0 -0
- package/partials/connected-favicon.ico +0 -0
- package/partials/connected-icon-192.png +0 -0
- package/partials/connected-icon-512.png +0 -0
- package/partials/connected-icon.svg +1 -0
- package/partials/copyAssets.js +25 -13
- package/partials/imow-apple-icon.png +0 -0
- package/partials/imow-favicon.ico +0 -0
- package/partials/imow-icon-192.png +0 -0
- package/partials/imow-icon-512.png +0 -0
- package/partials/imow-icon.svg +1 -0
- package/partials/index.js +914 -934
- package/partials/lib/partials.d.ts +2 -2
- package/partials/mystihl-apple-icon.png +0 -0
- package/partials/mystihl-favicon.ico +0 -0
- package/partials/mystihl-icon-192.png +0 -0
- package/partials/mystihl-icon-512.png +0 -0
- package/partials/mystihl-icon.svg +1 -0
- package/radio.CWGJtmKl.js +115 -0
- package/radiogroup.BhffFqN3.js +11 -0
- package/select.C4OZMB-V.js +12 -0
- package/skiptocontent.C4yQfWr2.js +46 -0
- package/skiptocontent.d.ts +1 -0
- package/spinner.D-xrotcu.js +58 -0
- package/styles/scss/_index.scss +2 -0
- package/styles/scss/lib/_animation.scss +20 -5
- package/styles/scss/lib/_container-query.scss +3 -3
- package/styles/scss/lib/_focus.scss +2 -1
- package/styles/scss/lib/_grid-extended.scss +2 -2
- package/styles/scss/lib/_grid-narrow.scss +2 -0
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +4 -2
- package/styles/scss/lib/_grid-sidebar.scss +35 -45
- package/styles/scss/lib/_grid.scss +15 -13
- package/styles/scss/lib/_heading.scss +61 -7
- package/styles/scss/lib/_helpers.scss +12 -0
- package/styles/scss/lib/_high-contrast.scss +24 -0
- package/styles/scss/lib/_link.scss +62 -91
- package/styles/scss/lib/_media-query.scss +3 -3
- package/styles/scss/lib/_shadow.scss +10 -0
- package/styles/scss/lib/_spacing.scss +14 -0
- package/styles/scss/lib/_text.scss +60 -13
- package/styles/scss/lib/_theme.scss +9 -7
- package/styles/scss/lib/_transition.scss +26 -7
- package/switch.CmpNUC7s.js +65 -0
- package/systemfeedback.ZzRUAVYX.js +25 -0
- package/text.rgDKQBrU.js +57 -0
- package/textarea.CtQtGqn5.js +12 -0
- package/title.LY1ylQsb.js +36 -0
- package/toast.DVd9dLs2.js +10 -0
- package/toast.d.ts +1 -0
- package/toastmanager.Dh0gzFkM.js +119 -0
- package/toastmanager.d.ts +1 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/remove-spaces.d.ts +6 -0
- package/utils/remove-spaces.test.d.ts +1 -0
- package/utils/render-documentation.d.ts +0 -1
- package/utils/render-in-iframe.d.ts +15 -0
- package/utils/useBreakpoint.d.ts +2 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +26 -0
- package/utils/vitest.setup.d.ts +5 -0
- package/assets/Asterisk.288a3f48.css +0 -1
- package/assets/Button.c09c516e.css +0 -1
- package/assets/ButtonRound.fd628e54.css +0 -1
- package/assets/Checkbox.cde01607.css +0 -1
- package/assets/CustomReactSelect.cdb5f164.css +0 -1
- package/assets/Fieldset.729910fe.css +0 -1
- package/assets/FloatingActionButton.de295f5d.css +0 -1
- package/assets/Heading.50f5e903.css +0 -1
- package/assets/Icon.8890ee9a.css +0 -1
- package/assets/Input.92913cfe.css +0 -1
- package/assets/InputPassword.d7b9c937.css +0 -1
- package/assets/InputSearch.888f630a.css +0 -1
- package/assets/InputStepper.969db0d2.css +0 -1
- package/assets/Link.75834750.css +0 -1
- package/assets/LinkStandalone.19bdab0d.css +0 -1
- package/assets/Logo.09e48e82.css +0 -1
- package/assets/OptionCheckbox.c56568a3.css +0 -1
- package/assets/Radio.79d98dde.css +0 -1
- package/assets/RadioGroup.8b55ee38.css +0 -1
- package/assets/Select.b9c135c2.css +0 -1
- package/assets/Spinner.af45d460.css +0 -1
- package/assets/Switch.781e3de6.css +0 -1
- package/assets/SystemFeedback.c30264c0.css +0 -1
- package/assets/Text.ac70cc84.css +0 -1
- package/assets/Textarea.12046393.css +0 -1
- package/assets/Title.e9e5a7e6.css +0 -1
- package/asterisk.cb74ea72.js +0 -8
- package/button.87ad387c.js +0 -135
- package/buttonround.ecb24c29.js +0 -118
- package/checkbox.42617f46.js +0 -112
- package/checkboxgroup.fa110fdf.js +0 -78
- package/chunks/360.3f3132d9.js +0 -11
- package/chunks/CustomReactSelect.2e4e7ba0.js +0 -5015
- package/chunks/Link.module.15dedc23.js +0 -37
- package/chunks/RadioGroup.module.59ca486a.js +0 -11
- package/chunks/academic-cap.a6849ffc.js +0 -11
- package/chunks/alarm-clock.542230f3.js +0 -11
- package/chunks/arrow-clockwise.0496f663.js +0 -11
- package/chunks/arrow-counterclockwise.635a0130.js +0 -11
- package/chunks/arrow-down-line.0976611e.js +0 -11
- package/chunks/arrow-down.9780d975.js +0 -11
- package/chunks/arrow-edge.3288acdd.js +0 -11
- package/chunks/arrow-left.ace9c808.js +0 -11
- package/chunks/arrow-out.0499f39e.js +0 -11
- package/chunks/arrow-outline-left.efc33275.js +0 -11
- package/chunks/arrow-right.133feef2.js +0 -11
- package/chunks/arrow-up-arrow-down.b612e9b1.js +0 -11
- package/chunks/arrow-up.3be6430a.js +0 -11
- package/chunks/at.6279d12b.js +0 -11
- package/chunks/barcode-scanner.0a4a314d.js +0 -11
- package/chunks/battery.e1249ee1.js +0 -11
- package/chunks/bell.87fe4f0b.js +0 -11
- package/chunks/bin-open.be4290d8.js +0 -11
- package/chunks/bin.b36466f3.js +0 -11
- package/chunks/bluetooth.54b89b90.js +0 -11
- package/chunks/bookmark.4d5ce4c3.js +0 -11
- package/chunks/burger.1301d91e.js +0 -11
- package/chunks/calendar.ba39a664.js +0 -11
- package/chunks/camera.3bed4f3b.js +0 -11
- package/chunks/cart-check.9fb6abdb.js +0 -11
- package/chunks/cart-plus.fd5c4674.js +0 -11
- package/chunks/cart.7516d35c.js +0 -11
- package/chunks/catalog.bd0c7830.js +0 -11
- package/chunks/certificate.1639c28e.js +0 -11
- package/chunks/chain-link.45025ed0.js +0 -11
- package/chunks/chainsaw.56d43a9f.js +0 -11
- package/chunks/check.a08beeae.js +0 -11
- package/chunks/chevron-down.80b0dc85.js +0 -11
- package/chunks/chevron-left.f5feade0.js +0 -11
- package/chunks/chevron-line-left.17b172d1.js +0 -11
- package/chunks/chevron-line-right.7cd234b7.js +0 -11
- package/chunks/chevron-right.259bc1a3.js +0 -11
- package/chunks/chevron-up.d1335850.js +0 -11
- package/chunks/circle-check-colored.98e13ab9.js +0 -11
- package/chunks/circle-check-inverted.db29ab06.js +0 -11
- package/chunks/circle-info-colored.8da47e36.js +0 -11
- package/chunks/circle-info-inverted.0ed118fb.js +0 -11
- package/chunks/circle-pause.55300d1b.js +0 -11
- package/chunks/circle-stroke.203dd7aa.js +0 -11
- package/chunks/circle.33ec82eb.js +0 -11
- package/chunks/clock.3014a102.js +0 -11
- package/chunks/coffee-cup.98d6531f.js +0 -11
- package/chunks/compare.c76b221b.js +0 -11
- package/chunks/connected-box-mobile.9cd742dd.js +0 -11
- package/chunks/connected-box-stationary.191a3ed0.js +0 -11
- package/chunks/connected-box.fe21c39b.js +0 -11
- package/chunks/cross.fe709ee7.js +0 -11
- package/chunks/diamond-exclamationmark-colored.bf3ffccf.js +0 -11
- package/chunks/diamond-exclamationmark-inverted.b5648587.js +0 -11
- package/chunks/diamond.e962c289.js +0 -11
- package/chunks/diskette.04733444.js +0 -11
- package/chunks/distance.9e6b56ff.js +0 -11
- package/chunks/dots-connected.9869fae1.js +0 -11
- package/chunks/envelope-open.3c3fd714.js +0 -11
- package/chunks/envelope.5c9ff834.js +0 -11
- package/chunks/exclamationmark.92afe58f.js +0 -11
- package/chunks/exit.bde46887.js +0 -11
- package/chunks/eye-closed.0b517bb7.js +0 -11
- package/chunks/eye.8f4b311b.js +0 -11
- package/chunks/facebook.4a040606.js +0 -11
- package/chunks/filter.dee66683.js +0 -11
- package/chunks/finger-double-arrow.9cd4c623.js +0 -11
- package/chunks/flash.15646b5e.js +0 -11
- package/chunks/fullscreen.fdd976fe.js +0 -11
- package/chunks/gear.1f5f6fe9.js +0 -11
- package/chunks/globe.7f419498.js +0 -11
- package/chunks/grid.2c1cdc21.js +0 -11
- package/chunks/guidance.63bebf3e.js +0 -11
- package/chunks/haircross.0ac15319.js +0 -11
- package/chunks/hanger.edc848f4.js +0 -11
- package/chunks/headphones.a023699e.js +0 -11
- package/chunks/heart.d4440641.js +0 -11
- package/chunks/hexagon-arrow-clockwise.98e9b555.js +0 -11
- package/chunks/horizontal-ellipsis.84419429.js +0 -11
- package/chunks/house.70059642.js +0 -11
- package/chunks/imow.3374e620.js +0 -11
- package/chunks/info.1787448e.js +0 -11
- package/chunks/instagram.e12dd682.js +0 -11
- package/chunks/leave-fullscreen.def46043.js +0 -11
- package/chunks/lightbulb.b73d3ebf.js +0 -11
- package/chunks/linkedin.ce0c68cb.js +0 -11
- package/chunks/list-three-rows.ef44c7ef.js +0 -11
- package/chunks/list-two-rows.5ed8f1af.js +0 -11
- package/chunks/loading-spinner.8293421e.js +0 -11
- package/chunks/lock.3cbc8ced.js +0 -11
- package/chunks/magnifying-glass-minus.b0f906e5.js +0 -11
- package/chunks/magnifying-glass-plus.6ffc69c5.js +0 -11
- package/chunks/magnifying-glass.c297e41f.js +0 -11
- package/chunks/map.c96b1dcd.js +0 -11
- package/chunks/minus.7f6676e8.js +0 -11
- package/chunks/mobile.416ee5b0.js +0 -11
- package/chunks/nine-squares.34eeb0d4.js +0 -11
- package/chunks/note-check.aaf92ef9.js +0 -11
- package/chunks/note-plus.e7ab1b93.js +0 -11
- package/chunks/note.cc96375c.js +0 -11
- package/chunks/number-input.076fcf63.js +0 -11
- package/chunks/paperclip.e8831256.js +0 -11
- package/chunks/parcel.75534dbd.js +0 -11
- package/chunks/pause.901567cf.js +0 -11
- package/chunks/pdf.92c1781a.js +0 -11
- package/chunks/pen.ecbcb50d.js +0 -11
- package/chunks/percent.4b7fa587.js +0 -11
- package/chunks/petrol.41999bec.js +0 -11
- package/chunks/phone.3c23c041.js +0 -11
- package/chunks/pin-s.a5519070.js +0 -11
- package/chunks/pin.1137362d.js +0 -11
- package/chunks/pinterest.88763b51.js +0 -11
- package/chunks/placeholder.d6fdaf8f.js +0 -11
- package/chunks/play.dd0f1d8c.js +0 -11
- package/chunks/plug.00f114c4.js +0 -11
- package/chunks/plus.42721ebf.js +0 -11
- package/chunks/printer.5bb7ee0d.js +0 -11
- package/chunks/prohibition-sign.af5616b3.js +0 -11
- package/chunks/questionmark.db94a06d.js +0 -11
- package/chunks/security.2be491e3.js +0 -11
- package/chunks/share.ddae7aef.js +0 -11
- package/chunks/shirt.135d58c1.js +0 -11
- package/chunks/shop.f120426b.js +0 -11
- package/chunks/sound-off.c6f5ed43.js +0 -11
- package/chunks/sound-on.212c36bc.js +0 -11
- package/chunks/speechbubble.9428546e.js +0 -11
- package/chunks/speechbubbles.65cb946e.js +0 -11
- package/chunks/square.452f505f.js +0 -11
- package/chunks/star-half.1458bc5b.js +0 -11
- package/chunks/star.fab17456.js +0 -11
- package/chunks/tag.4d730d72.js +0 -11
- package/chunks/thumbs-down.cbf6e4ec.js +0 -11
- package/chunks/thumbs-up.435754e1.js +0 -11
- package/chunks/triangle-exclamationmark-colored.94025893.js +0 -11
- package/chunks/triangle-exclamationmark-inverted.bc4eed15.js +0 -11
- package/chunks/truck.a904d6d3.js +0 -11
- package/chunks/two-people-screen.3e509922.js +0 -11
- package/chunks/two-sheets.d1cfef0f.js +0 -11
- package/chunks/upload.7f1850a3.js +0 -11
- package/chunks/user.bf5b30a5.js +0 -11
- package/chunks/vertical-ellipsis.1cac00e5.js +0 -11
- package/chunks/wc.9d108bd0.js +0 -11
- package/chunks/wifi-1bar.b6fc33aa.js +0 -11
- package/chunks/wifi-2bars.27e9da59.js +0 -11
- package/chunks/wifi-off.e5daf3a9.js +0 -11
- package/chunks/wifi.40bb915d.js +0 -11
- package/chunks/wind-rose.27fa658a.js +0 -11
- package/chunks/wrench.69493ef3.js +0 -11
- package/chunks/x.d9da4202.js +0 -11
- package/chunks/xing.e17c1a24.js +0 -11
- package/chunks/youtube.dbf50787.js +0 -11
- package/combobox.d93091e0.js +0 -45
- package/customreactselect.7c77375a.js +0 -13
- package/fieldset.fdd84bda.js +0 -98
- package/floatingactionbutton.281b5465.js +0 -87
- package/heading.c02dcb70.js +0 -44
- package/icon.b4211784.js +0 -215
- package/input.064e0bbf.js +0 -230
- package/inputpassword.f76c2f62.js +0 -139
- package/inputsearch.6e913fc6.js +0 -188
- package/inputstepper.2047ec77.js +0 -286
- package/link.5eb13d6e.js +0 -84
- package/linkstandalone.edfd6288.js +0 -80
- package/optioncheckbox.2369560b.js +0 -43
- package/radio.fd841ab0.js +0 -79
- package/radiogroup.e1c8ea3d.js +0 -100
- package/select.88d40c51.js +0 -188
- package/spinner.ee015469.js +0 -58
- package/switch.96fd1689.js +0 -65
- package/systemfeedback.8515a4e0.js +0 -25
- package/text.de8facb9.js +0 -57
- package/textarea.b8c40c8b.js +0 -189
- package/title.7be43d50.js +0 -36
- /package/chunks/{helpers.ea3ca41a.js → helpers.B1JT5ShS.js} +0 -0
- /package/chunks/{index.8021d3e0.js → index.CvOaL64Y.js} +0 -0
- /package/chunks/{useBreakpoint.6c1b06c2.js → useBreakpoint.5xBNDiCf.js} +0 -0
- /package/partials/{apple-icon.png → default-apple-icon.png} +0 -0
- /package/partials/{favicon.ico → default-favicon.ico} +0 -0
- /package/partials/{icon-192.png → default-icon-192.png} +0 -0
- /package/partials/{icon-512.png → default-icon-512.png} +0 -0
- /package/partials/{icon.svg → default-icon.svg} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
2
|
+
import { useLayoutEffect as p, useEffect as u } from "react";
|
|
3
|
+
import { h } from "./useBreakpoint.5xBNDiCf.js";
|
|
4
|
+
import { g as t } from "./helpers.B1JT5ShS.js";
|
|
5
|
+
import { h as l } from "./has-document.r9i9TxKV.js";
|
|
6
|
+
const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
5
7
|
"color",
|
|
6
8
|
"date",
|
|
7
9
|
"datetime-local",
|
|
@@ -14,7 +16,7 @@ const p = typeof document < "u", a = 8, i = 5, u = [
|
|
|
14
16
|
"text",
|
|
15
17
|
"time",
|
|
16
18
|
"url"
|
|
17
|
-
],
|
|
19
|
+
], w = [
|
|
18
20
|
"week",
|
|
19
21
|
"hidden",
|
|
20
22
|
"button",
|
|
@@ -26,15 +28,15 @@ const p = typeof document < "u", a = 8, i = 5, u = [
|
|
|
26
28
|
"submit",
|
|
27
29
|
"image",
|
|
28
30
|
"datetime"
|
|
29
|
-
],
|
|
31
|
+
], P = ({
|
|
30
32
|
id: e,
|
|
31
33
|
label: n,
|
|
32
34
|
prefix: o,
|
|
33
35
|
suffix: s,
|
|
34
36
|
leadingIconName: r,
|
|
35
37
|
leadingIconSource: d,
|
|
36
|
-
actionButtonIconName:
|
|
37
|
-
actionButtonIconSource:
|
|
38
|
+
actionButtonIconName: m,
|
|
39
|
+
actionButtonIconSource: c
|
|
38
40
|
}) => {
|
|
39
41
|
if (!e)
|
|
40
42
|
throw new Error(
|
|
@@ -65,14 +67,14 @@ const p = typeof document < "u", a = 8, i = 5, u = [
|
|
|
65
67
|
"DSInput",
|
|
66
68
|
"Prefix and a leading Icon cannot be used at the same time."
|
|
67
69
|
)
|
|
68
|
-
), s && (
|
|
70
|
+
), s && (m || c) && console.warn(
|
|
69
71
|
t(
|
|
70
72
|
"DSInput",
|
|
71
73
|
"Suffix and an action button cannot be used at the same time."
|
|
72
74
|
)
|
|
73
75
|
);
|
|
74
|
-
},
|
|
75
|
-
if (!
|
|
76
|
+
}, g = (e) => {
|
|
77
|
+
if (!S.includes(e) && !w.includes(e))
|
|
76
78
|
throw new Error(
|
|
77
79
|
t(
|
|
78
80
|
"DSInput",
|
|
@@ -94,13 +96,18 @@ const p = typeof document < "u", a = 8, i = 5, u = [
|
|
|
94
96
|
hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
|
|
95
97
|
};
|
|
96
98
|
n[e] && console.warn(t("DSInput", n[e]));
|
|
97
|
-
},
|
|
99
|
+
}, I = () => l && "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), E = (e, n) => I() && (e || n), k = (e) => e === "date" || e === "datetime-local" || e === "month", x = (e) => e === "time";
|
|
98
100
|
export {
|
|
101
|
+
U as I,
|
|
99
102
|
a as M,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
I as
|
|
103
|
+
S,
|
|
104
|
+
w as U,
|
|
105
|
+
i as a,
|
|
106
|
+
g as b,
|
|
107
|
+
x as c,
|
|
108
|
+
I as h,
|
|
109
|
+
k as i,
|
|
110
|
+
E as s,
|
|
111
|
+
f as u,
|
|
112
|
+
P as v
|
|
106
113
|
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as a } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as i } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { useState as A } from "react";
|
|
5
|
+
import { u as D } from "./useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import { Asterisk as C } from "../asterisk.DDn-yX4P.js";
|
|
7
|
+
import { DSButton as L } from "../button.DH0h6uPs.js";
|
|
8
|
+
import { DSSystemFeedback as $ } from "../systemfeedback.ZzRUAVYX.js";
|
|
9
|
+
import { g as x } from "./helpers.B1JT5ShS.js";
|
|
10
|
+
import '../assets/InputPassword.Cf394z47.css';const E = "_input_1pqhx_226", R = "_input--invalid_1pqhx_338", V = "_input--small_1pqhx_345", O = "_input--has-leading-icon_1pqhx_399", F = "_input--has-action-button_1pqhx_402", M = "_input--has-second-action-button_1pqhx_405", T = "_input--has-affix_1pqhx_417", G = "_input--is-ready_1pqhx_431", J = "_root_1pqhx_438", K = "_hint_1pqhx_446", Q = "_label_1pqhx_446", U = "_wrapper_1pqhx_450", W = "_action-button_1pqhx_456", X = "_label--hidden_1pqhx_475", Y = "_feedback_1pqhx_504", t = {
|
|
11
|
+
input: E,
|
|
12
|
+
"input--invalid": "_input--invalid_1pqhx_338",
|
|
13
|
+
inputInvalid: R,
|
|
14
|
+
"input--small": "_input--small_1pqhx_345",
|
|
15
|
+
inputSmall: V,
|
|
16
|
+
"input--has-leading-icon": "_input--has-leading-icon_1pqhx_399",
|
|
17
|
+
inputHasLeadingIcon: O,
|
|
18
|
+
"input--has-action-button": "_input--has-action-button_1pqhx_402",
|
|
19
|
+
inputHasActionButton: F,
|
|
20
|
+
"input--has-second-action-button": "_input--has-second-action-button_1pqhx_405",
|
|
21
|
+
inputHasSecondActionButton: M,
|
|
22
|
+
"input--has-affix": "_input--has-affix_1pqhx_417",
|
|
23
|
+
inputHasAffix: T,
|
|
24
|
+
"input--is-ready": "_input--is-ready_1pqhx_431",
|
|
25
|
+
inputIsReady: G,
|
|
26
|
+
root: J,
|
|
27
|
+
hint: K,
|
|
28
|
+
label: Q,
|
|
29
|
+
wrapper: U,
|
|
30
|
+
"action-button": "_action-button_1pqhx_456",
|
|
31
|
+
actionButton: W,
|
|
32
|
+
"label--hidden": "_label--hidden_1pqhx_475",
|
|
33
|
+
labelHidden: X,
|
|
34
|
+
feedback: Y
|
|
35
|
+
}, Z = ({ id: n, label: s }) => {
|
|
36
|
+
if (!n)
|
|
37
|
+
throw new Error(
|
|
38
|
+
x(
|
|
39
|
+
"DSInputPassword",
|
|
40
|
+
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputPassword component.'
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
if (!s)
|
|
44
|
+
throw new Error(
|
|
45
|
+
x(
|
|
46
|
+
"DSInputPassword",
|
|
47
|
+
`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}.`
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
}, pt = ({
|
|
51
|
+
id: n,
|
|
52
|
+
label: s,
|
|
53
|
+
autocomplete: b = "new-password",
|
|
54
|
+
className: f,
|
|
55
|
+
disabled: c = !1,
|
|
56
|
+
hidePasswordText: q = "Hide password",
|
|
57
|
+
hint: e,
|
|
58
|
+
hideLabel: w = !1,
|
|
59
|
+
invalid: o = !1,
|
|
60
|
+
readonly: r = !1,
|
|
61
|
+
required: d = !1,
|
|
62
|
+
showPasswordText: y = "Show password",
|
|
63
|
+
size: p = "medium",
|
|
64
|
+
systemFeedback: l,
|
|
65
|
+
...S
|
|
66
|
+
}) => {
|
|
67
|
+
process.env.NODE_ENV !== "production" && Z({
|
|
68
|
+
id: n,
|
|
69
|
+
label: s
|
|
70
|
+
});
|
|
71
|
+
const [u, I] = A(!1), _ = `${n}-label`, h = `${n}-feedback`, m = `${n}-hint`, v = e ? ` ${m}` : "", B = D(w), H = i(t.root, f), g = i(t.input, {
|
|
72
|
+
// small input
|
|
73
|
+
[t.inputSmall]: p === "small",
|
|
74
|
+
// invalid state
|
|
75
|
+
[t.inputInvalid]: o,
|
|
76
|
+
// action button - input password always has an action button
|
|
77
|
+
[t.inputHasActionButton]: !0
|
|
78
|
+
}), P = i(t.label, {
|
|
79
|
+
// hide label only visually to keep them available for assistive technologies
|
|
80
|
+
[t.labelHidden]: B
|
|
81
|
+
}), N = i(t.actionButton, {
|
|
82
|
+
[t.actionButtonSmall]: p === "small"
|
|
83
|
+
}), j = () => {
|
|
84
|
+
I((k) => !k);
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ a.jsxs("div", { className: H, children: [
|
|
87
|
+
/* @__PURE__ */ a.jsxs("label", { className: P, id: _, htmlFor: n, children: [
|
|
88
|
+
s,
|
|
89
|
+
d && /* @__PURE__ */ a.jsx(C, {})
|
|
90
|
+
] }),
|
|
91
|
+
e && /* @__PURE__ */ a.jsx("div", { className: t.hint, id: m, children: e }),
|
|
92
|
+
o && l && /* @__PURE__ */ a.jsx(
|
|
93
|
+
$,
|
|
94
|
+
{
|
|
95
|
+
className: t.feedback,
|
|
96
|
+
message: l,
|
|
97
|
+
type: "invalid",
|
|
98
|
+
id: h
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ a.jsxs("div", { className: t.wrapper, children: [
|
|
102
|
+
/* @__PURE__ */ a.jsx(
|
|
103
|
+
"input",
|
|
104
|
+
{
|
|
105
|
+
className: g,
|
|
106
|
+
id: n,
|
|
107
|
+
...S,
|
|
108
|
+
"aria-labelledby": `${_}${v}`,
|
|
109
|
+
"aria-describedby": o && l ? h : void 0,
|
|
110
|
+
"aria-invalid": o,
|
|
111
|
+
"aria-disabled": r,
|
|
112
|
+
readOnly: r,
|
|
113
|
+
required: d,
|
|
114
|
+
disabled: c,
|
|
115
|
+
autoComplete: b,
|
|
116
|
+
type: u ? "text" : "password"
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ a.jsx(
|
|
120
|
+
L,
|
|
121
|
+
{
|
|
122
|
+
hideLabel: !0,
|
|
123
|
+
theme: "light",
|
|
124
|
+
iconName: u ? "eye-closed" : "eye",
|
|
125
|
+
variant: "ghost",
|
|
126
|
+
className: N,
|
|
127
|
+
size: p,
|
|
128
|
+
onClick: j,
|
|
129
|
+
type: "button",
|
|
130
|
+
disabled: c,
|
|
131
|
+
children: u ? q : y
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] })
|
|
135
|
+
] });
|
|
136
|
+
};
|
|
137
|
+
export {
|
|
138
|
+
pt as D,
|
|
139
|
+
Z as v
|
|
140
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { useState as G, useRef as N, useEffect as w } from "react";
|
|
5
|
+
import { g as S, a as J } from "./helpers.B1JT5ShS.js";
|
|
6
|
+
import { u as K } from "./useBreakpoint.5xBNDiCf.js";
|
|
7
|
+
import { Asterisk as Q } from "../asterisk.DDn-yX4P.js";
|
|
8
|
+
import { DSButton as D } from "../button.DH0h6uPs.js";
|
|
9
|
+
import { DSSystemFeedback as U } from "../systemfeedback.ZzRUAVYX.js";
|
|
10
|
+
import '../assets/InputSearch.eCRQoxjN.css';const X = "_input_8z3ht_226", Y = "_input--invalid_8z3ht_338", Z = "_input--small_8z3ht_345", tt = "_input--has-leading-icon_8z3ht_399", nt = "_input--has-action-button_8z3ht_402", et = "_input--has-second-action-button_8z3ht_405", at = "_input--has-affix_8z3ht_417", st = "_input--is-ready_8z3ht_431", ot = "_root_8z3ht_438", it = "_hint_8z3ht_446", ct = "_label_8z3ht_446", ut = "_wrapper_8z3ht_450", lt = "_action-button_8z3ht_456", rt = "_second-action-button_8z3ht_460", pt = "_label--hidden_8z3ht_479", ht = "_feedback_8z3ht_508", t = {
|
|
11
|
+
input: X,
|
|
12
|
+
"input--invalid": "_input--invalid_8z3ht_338",
|
|
13
|
+
inputInvalid: Y,
|
|
14
|
+
"input--small": "_input--small_8z3ht_345",
|
|
15
|
+
inputSmall: Z,
|
|
16
|
+
"input--has-leading-icon": "_input--has-leading-icon_8z3ht_399",
|
|
17
|
+
inputHasLeadingIcon: tt,
|
|
18
|
+
"input--has-action-button": "_input--has-action-button_8z3ht_402",
|
|
19
|
+
inputHasActionButton: nt,
|
|
20
|
+
"input--has-second-action-button": "_input--has-second-action-button_8z3ht_405",
|
|
21
|
+
inputHasSecondActionButton: et,
|
|
22
|
+
"input--has-affix": "_input--has-affix_8z3ht_417",
|
|
23
|
+
inputHasAffix: at,
|
|
24
|
+
"input--is-ready": "_input--is-ready_8z3ht_431",
|
|
25
|
+
inputIsReady: st,
|
|
26
|
+
root: ot,
|
|
27
|
+
hint: it,
|
|
28
|
+
label: ct,
|
|
29
|
+
wrapper: ut,
|
|
30
|
+
"action-button": "_action-button_8z3ht_456",
|
|
31
|
+
actionButton: lt,
|
|
32
|
+
"second-action-button": "_second-action-button_8z3ht_460",
|
|
33
|
+
secondActionButton: rt,
|
|
34
|
+
"label--hidden": "_label--hidden_8z3ht_479",
|
|
35
|
+
labelHidden: pt,
|
|
36
|
+
feedback: ht
|
|
37
|
+
}, _t = ({ id: n, label: u }) => {
|
|
38
|
+
if (!n)
|
|
39
|
+
throw new Error(
|
|
40
|
+
S(
|
|
41
|
+
"DSInputSearch",
|
|
42
|
+
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputSearch component.'
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
if (!u)
|
|
46
|
+
throw new Error(
|
|
47
|
+
S(
|
|
48
|
+
"DSInputSearch",
|
|
49
|
+
`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}.`
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
}, dt = (n) => !!J(n, "form"), Bt = ({
|
|
53
|
+
id: n,
|
|
54
|
+
label: u,
|
|
55
|
+
className: A,
|
|
56
|
+
clearButtonLabel: H = "Clear search field",
|
|
57
|
+
disabled: l = !1,
|
|
58
|
+
hint: d,
|
|
59
|
+
hideLabel: E = !1,
|
|
60
|
+
invalid: r = !1,
|
|
61
|
+
readonly: s = !1,
|
|
62
|
+
required: I = !1,
|
|
63
|
+
size: o = "medium",
|
|
64
|
+
submitButtonLabel: j = "Search",
|
|
65
|
+
systemFeedback: m,
|
|
66
|
+
value: b,
|
|
67
|
+
submitButtonOnClick: C,
|
|
68
|
+
onChange: g,
|
|
69
|
+
...k
|
|
70
|
+
}) => {
|
|
71
|
+
process.env.NODE_ENV !== "production" && _t({
|
|
72
|
+
id: n,
|
|
73
|
+
label: u
|
|
74
|
+
});
|
|
75
|
+
const [p, v] = G(b), f = N(null), h = N(null), L = K(E);
|
|
76
|
+
w(() => {
|
|
77
|
+
v(b);
|
|
78
|
+
}, [b]), w(() => {
|
|
79
|
+
f.current && !dt(f.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(
|
|
80
|
+
S(
|
|
81
|
+
"DSInputSearch",
|
|
82
|
+
`The DSInputSearch component with the id "${n}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
}, []);
|
|
86
|
+
const z = `${n}-label`, B = `${n}-feedback`, y = `${n}-hint`, V = d ? ` ${y}` : "", x = p !== "" && p !== void 0 && p !== null, O = c(t.root, A), P = c(t.input, {
|
|
87
|
+
// small input
|
|
88
|
+
[t.inputSmall]: o === "small",
|
|
89
|
+
// invalid state
|
|
90
|
+
[t.inputInvalid]: r,
|
|
91
|
+
// action button - input password always has an action button
|
|
92
|
+
[t.inputHasActionButton]: !0,
|
|
93
|
+
// action second action button
|
|
94
|
+
[t.inputHasSecondActionButton]: x && !s && !l
|
|
95
|
+
}), $ = c(t.label, {
|
|
96
|
+
// hide label only visually to keep them available for assistive technologies
|
|
97
|
+
[t.labelHidden]: L
|
|
98
|
+
}), R = c(t.actionButton, {
|
|
99
|
+
[t.actionButtonSmall]: o === "small"
|
|
100
|
+
}), q = c(t.secondActionButton, {
|
|
101
|
+
[t.secondActionButtonSmall]: o === "small"
|
|
102
|
+
}), T = (a, i) => {
|
|
103
|
+
const W = Object.getPrototypeOf(a), _ = Object.getOwnPropertyDescriptor(
|
|
104
|
+
W,
|
|
105
|
+
"value"
|
|
106
|
+
);
|
|
107
|
+
_ != null && _.set ? _.set.call(a, i) : a.value = i;
|
|
108
|
+
}, F = () => {
|
|
109
|
+
var i;
|
|
110
|
+
if (!h.current) return;
|
|
111
|
+
T(h.current, "");
|
|
112
|
+
const a = new Event("change", { bubbles: !0 });
|
|
113
|
+
(i = h.current) == null || i.dispatchEvent(a);
|
|
114
|
+
}, M = (a) => {
|
|
115
|
+
v(a.target.value), g && g(a);
|
|
116
|
+
};
|
|
117
|
+
return /* @__PURE__ */ e.jsxs("div", { className: O, ref: f, children: [
|
|
118
|
+
/* @__PURE__ */ e.jsxs("label", { className: $, id: z, htmlFor: n, children: [
|
|
119
|
+
u,
|
|
120
|
+
I && /* @__PURE__ */ e.jsx(Q, {})
|
|
121
|
+
] }),
|
|
122
|
+
d && /* @__PURE__ */ e.jsx("div", { className: t.hint, id: y, children: d }),
|
|
123
|
+
r && m && /* @__PURE__ */ e.jsx(
|
|
124
|
+
U,
|
|
125
|
+
{
|
|
126
|
+
className: t.feedback,
|
|
127
|
+
message: m,
|
|
128
|
+
type: "invalid",
|
|
129
|
+
id: B
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
/* @__PURE__ */ e.jsxs("div", { className: t.wrapper, children: [
|
|
133
|
+
/* @__PURE__ */ e.jsx(
|
|
134
|
+
"input",
|
|
135
|
+
{
|
|
136
|
+
className: P,
|
|
137
|
+
id: n,
|
|
138
|
+
ref: h,
|
|
139
|
+
...k,
|
|
140
|
+
"aria-labelledby": `${z}${V}`,
|
|
141
|
+
"aria-describedby": r && m ? B : void 0,
|
|
142
|
+
"aria-invalid": r,
|
|
143
|
+
"aria-disabled": s,
|
|
144
|
+
readOnly: s,
|
|
145
|
+
required: I,
|
|
146
|
+
disabled: l,
|
|
147
|
+
type: "search",
|
|
148
|
+
value: p,
|
|
149
|
+
onChange: M
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
x && !s && !l && /* @__PURE__ */ e.jsx(
|
|
153
|
+
D,
|
|
154
|
+
{
|
|
155
|
+
hideLabel: !0,
|
|
156
|
+
theme: "light",
|
|
157
|
+
iconName: "cross",
|
|
158
|
+
className: q,
|
|
159
|
+
variant: "ghost",
|
|
160
|
+
size: o,
|
|
161
|
+
onClick: F,
|
|
162
|
+
type: "button",
|
|
163
|
+
tabIndex: -1,
|
|
164
|
+
children: H
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ e.jsx(
|
|
168
|
+
D,
|
|
169
|
+
{
|
|
170
|
+
hideLabel: !0,
|
|
171
|
+
theme: "light",
|
|
172
|
+
iconName: "magnifying-glass",
|
|
173
|
+
className: R,
|
|
174
|
+
variant: "ghost",
|
|
175
|
+
size: o,
|
|
176
|
+
onClick: C,
|
|
177
|
+
type: "submit",
|
|
178
|
+
disabled: l || s,
|
|
179
|
+
children: j
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
] })
|
|
183
|
+
] });
|
|
184
|
+
};
|
|
185
|
+
export {
|
|
186
|
+
Bt as D,
|
|
187
|
+
dt as i,
|
|
188
|
+
_t as v
|
|
189
|
+
};
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { useState as f, useRef as N, useEffect as w } from "react";
|
|
5
|
+
import { u as ft } from "./useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import { M as E, a as H, u as M } from "./Input.utils.ChV6RJsh.js";
|
|
7
|
+
import { Asterisk as mt } from "../asterisk.DDn-yX4P.js";
|
|
8
|
+
import { DSButton as X } from "../button.DH0h6uPs.js";
|
|
9
|
+
import { DSSystemFeedback as gt } from "../systemfeedback.ZzRUAVYX.js";
|
|
10
|
+
import { g as S } from "./helpers.B1JT5ShS.js";
|
|
11
|
+
import '../assets/InputStepper.B80KulYE.css';const ht = "_input_td0g0_226", bt = "_input--invalid_td0g0_338", xt = "_input--small_td0g0_345", St = "_input--has-leading-icon_td0g0_399", yt = "_input--has-action-button_td0g0_402", It = "_input--has-second-action-button_td0g0_405", vt = "_input--has-affix_td0g0_417", At = "_input--is-ready_td0g0_431", Bt = "_root_td0g0_441", Dt = "_hint_td0g0_449", Nt = "_label_td0g0_449", wt = "_wrapper_td0g0_453", Et = "_affix_td0g0_459", Ht = "_affix--small_td0g0_481", Lt = "_affix--disabled_td0g0_495", jt = "_prefix_td0g0_498", Rt = "_affix--readonly_td0g0_501", kt = "_suffix_td0g0_511", Ct = "_action-button_td0g0_518", $t = "_label--hidden_td0g0_537", Ft = "_feedback_td0g0_566", Vt = "_second-action-button_td0g0_580", Pt = "_value-announcer_td0g0_584", n = {
|
|
12
|
+
input: ht,
|
|
13
|
+
"input--invalid": "_input--invalid_td0g0_338",
|
|
14
|
+
inputInvalid: bt,
|
|
15
|
+
"input--small": "_input--small_td0g0_345",
|
|
16
|
+
inputSmall: xt,
|
|
17
|
+
"input--has-leading-icon": "_input--has-leading-icon_td0g0_399",
|
|
18
|
+
inputHasLeadingIcon: St,
|
|
19
|
+
"input--has-action-button": "_input--has-action-button_td0g0_402",
|
|
20
|
+
inputHasActionButton: yt,
|
|
21
|
+
"input--has-second-action-button": "_input--has-second-action-button_td0g0_405",
|
|
22
|
+
inputHasSecondActionButton: It,
|
|
23
|
+
"input--has-affix": "_input--has-affix_td0g0_417",
|
|
24
|
+
inputHasAffix: vt,
|
|
25
|
+
"input--is-ready": "_input--is-ready_td0g0_431",
|
|
26
|
+
inputIsReady: At,
|
|
27
|
+
root: Bt,
|
|
28
|
+
hint: Dt,
|
|
29
|
+
label: Nt,
|
|
30
|
+
wrapper: wt,
|
|
31
|
+
affix: Et,
|
|
32
|
+
"affix--small": "_affix--small_td0g0_481",
|
|
33
|
+
affixSmall: Ht,
|
|
34
|
+
"affix--disabled": "_affix--disabled_td0g0_495",
|
|
35
|
+
affixDisabled: Lt,
|
|
36
|
+
prefix: jt,
|
|
37
|
+
"affix--readonly": "_affix--readonly_td0g0_501",
|
|
38
|
+
affixReadonly: Rt,
|
|
39
|
+
suffix: kt,
|
|
40
|
+
"action-button": "_action-button_td0g0_518",
|
|
41
|
+
actionButton: Ct,
|
|
42
|
+
"label--hidden": "_label--hidden_td0g0_537",
|
|
43
|
+
labelHidden: $t,
|
|
44
|
+
feedback: Ft,
|
|
45
|
+
"second-action-button": "_second-action-button_td0g0_580",
|
|
46
|
+
secondActionButton: Vt,
|
|
47
|
+
"value-announcer": "_value-announcer_td0g0_584",
|
|
48
|
+
valueAnnouncer: Pt
|
|
49
|
+
}, Tt = ({
|
|
50
|
+
id: a,
|
|
51
|
+
label: m,
|
|
52
|
+
prefix: g,
|
|
53
|
+
suffix: h
|
|
54
|
+
}) => {
|
|
55
|
+
if (!a)
|
|
56
|
+
throw new Error(
|
|
57
|
+
S(
|
|
58
|
+
"DSInputStepper",
|
|
59
|
+
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputStepper component.'
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
if (!m)
|
|
63
|
+
throw new Error(
|
|
64
|
+
S(
|
|
65
|
+
"DSInputStepper",
|
|
66
|
+
`A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputStepper component. If you don't want to display a label, set hideLabel={true}.`
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
g && g.length > E && console.warn(
|
|
70
|
+
S(
|
|
71
|
+
"DSInputStepper",
|
|
72
|
+
`Prefix length must not exceed ${E} characters.`
|
|
73
|
+
)
|
|
74
|
+
), h && h.length > H && console.warn(
|
|
75
|
+
S(
|
|
76
|
+
"DSInputStepper",
|
|
77
|
+
`Suffix length must not exceed ${H} characters.`
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
}, Qt = ({
|
|
81
|
+
id: a,
|
|
82
|
+
label: m,
|
|
83
|
+
announcementText: g = "Value changed to",
|
|
84
|
+
className: h,
|
|
85
|
+
disabled: r = !1,
|
|
86
|
+
decreaseAmountButtonLabel: q = "Decrease",
|
|
87
|
+
hint: y,
|
|
88
|
+
hideLabel: G = !1,
|
|
89
|
+
invalid: b = !1,
|
|
90
|
+
increaseAmountButtonLabel: O = "Increase",
|
|
91
|
+
prefix: u,
|
|
92
|
+
max: L = 100,
|
|
93
|
+
min: j = 0,
|
|
94
|
+
readonly: p = !1,
|
|
95
|
+
required: R = !1,
|
|
96
|
+
size: o = "medium",
|
|
97
|
+
step: U = 1,
|
|
98
|
+
suffix: d,
|
|
99
|
+
systemFeedback: I,
|
|
100
|
+
value: x,
|
|
101
|
+
onChange: k,
|
|
102
|
+
...J
|
|
103
|
+
}) => {
|
|
104
|
+
process.env.NODE_ENV !== "production" && Tt({
|
|
105
|
+
id: a,
|
|
106
|
+
label: m,
|
|
107
|
+
prefix: u,
|
|
108
|
+
suffix: d
|
|
109
|
+
});
|
|
110
|
+
const [K, Q] = f(!1), [_, v] = f(x), [A, C] = f(""), [Y, Z] = f(!1), [z, tt] = f({}), s = N(null), nt = u == null ? void 0 : u.substring(0, E), B = N(null), et = d == null ? void 0 : d.substring(0, H), D = N(null), at = ft(G);
|
|
111
|
+
w(() => {
|
|
112
|
+
x && v(x);
|
|
113
|
+
}, [x]), w(() => {
|
|
114
|
+
if (A) {
|
|
115
|
+
const t = setTimeout(() => {
|
|
116
|
+
C("");
|
|
117
|
+
}, 3e3);
|
|
118
|
+
return () => clearTimeout(t);
|
|
119
|
+
}
|
|
120
|
+
}, [A]), w(() => {
|
|
121
|
+
var i;
|
|
122
|
+
const t = (l) => {
|
|
123
|
+
l.preventDefault();
|
|
124
|
+
};
|
|
125
|
+
return (i = s.current) == null || i.addEventListener("wheel", t, {
|
|
126
|
+
// The { passive: false } option is used to indicate that the event listener wants to cancel the event, allowing preventDefault to work as expected.
|
|
127
|
+
passive: !1
|
|
128
|
+
}), () => {
|
|
129
|
+
var l;
|
|
130
|
+
(l = s.current) == null || l.removeEventListener("wheel", t);
|
|
131
|
+
};
|
|
132
|
+
}, []), M(() => {
|
|
133
|
+
const t = o === "medium" ? 16 : 8, i = {};
|
|
134
|
+
if (B.current) {
|
|
135
|
+
const l = B.current.offsetWidth;
|
|
136
|
+
i.paddingInlineStart = t + l + "px";
|
|
137
|
+
}
|
|
138
|
+
if (D.current) {
|
|
139
|
+
const l = D.current.offsetWidth;
|
|
140
|
+
i.paddingInlineEnd = t + l + "px";
|
|
141
|
+
}
|
|
142
|
+
tt(i), Q(!0);
|
|
143
|
+
}, [u, d, o, Y]), M(() => {
|
|
144
|
+
(async () => {
|
|
145
|
+
"fonts" in document && (await document.fonts.load(
|
|
146
|
+
'1em "STIHL Contraface Digital Text Regular"'
|
|
147
|
+
), Z(!0));
|
|
148
|
+
})();
|
|
149
|
+
}, []);
|
|
150
|
+
const $ = c(n.affix, {
|
|
151
|
+
[n.affixSmall]: o === "small",
|
|
152
|
+
[n.affixDisabled]: r,
|
|
153
|
+
[n.affixReadonly]: p
|
|
154
|
+
}), F = `${a}-label`, V = `${a}-feedback`, P = `${a}-hint`, T = `${a}-value-announcer`, st = y ? ` ${P}` : "", ot = c(n.root, h), it = c(n.input, {
|
|
155
|
+
// small input
|
|
156
|
+
[n.inputSmall]: o === "small",
|
|
157
|
+
// invalid state
|
|
158
|
+
[n.inputInvalid]: b,
|
|
159
|
+
// prefix/suffix
|
|
160
|
+
[n.inputHasAffix]: u || d,
|
|
161
|
+
[n.inputIsReady]: K
|
|
162
|
+
}), lt = c(n.label, {
|
|
163
|
+
// hide label only visually to keep them available for assistive technologies
|
|
164
|
+
[n.labelHidden]: at
|
|
165
|
+
}), ct = c(n.secondActionButton, {
|
|
166
|
+
[n.secondActionButtonSmall]: o === "small"
|
|
167
|
+
}), ut = c(n.actionButton, {
|
|
168
|
+
[n.actionButtonSmall]: o === "small"
|
|
169
|
+
}), dt = () => {
|
|
170
|
+
const t = [T];
|
|
171
|
+
return b && I && t.push(V), t.join(" ");
|
|
172
|
+
}, W = () => {
|
|
173
|
+
var t;
|
|
174
|
+
if (s.current) {
|
|
175
|
+
v(s.current.value);
|
|
176
|
+
const i = new Event("change", { bubbles: !0 });
|
|
177
|
+
(t = s.current) == null || t.dispatchEvent(i), C(`${g} ${s.current.value}`);
|
|
178
|
+
}
|
|
179
|
+
}, rt = () => {
|
|
180
|
+
var t;
|
|
181
|
+
(t = s.current) == null || t.stepDown(), W();
|
|
182
|
+
}, pt = () => {
|
|
183
|
+
var t;
|
|
184
|
+
(t = s.current) == null || t.stepUp(), W();
|
|
185
|
+
}, _t = (t) => {
|
|
186
|
+
v(t.target.value), k && k(t);
|
|
187
|
+
};
|
|
188
|
+
return /* @__PURE__ */ e.jsxs("div", { className: ot, children: [
|
|
189
|
+
/* @__PURE__ */ e.jsxs("label", { className: lt, id: F, htmlFor: a, children: [
|
|
190
|
+
m,
|
|
191
|
+
R && /* @__PURE__ */ e.jsx(mt, {})
|
|
192
|
+
] }),
|
|
193
|
+
y && /* @__PURE__ */ e.jsx("div", { className: n.hint, id: P, children: y }),
|
|
194
|
+
/* @__PURE__ */ e.jsx(
|
|
195
|
+
"div",
|
|
196
|
+
{
|
|
197
|
+
"aria-live": "polite",
|
|
198
|
+
"aria-atomic": "true",
|
|
199
|
+
className: n.valueAnnouncer,
|
|
200
|
+
id: T,
|
|
201
|
+
children: A
|
|
202
|
+
}
|
|
203
|
+
),
|
|
204
|
+
b && I && /* @__PURE__ */ e.jsx(
|
|
205
|
+
gt,
|
|
206
|
+
{
|
|
207
|
+
className: n.feedback,
|
|
208
|
+
message: I,
|
|
209
|
+
type: "invalid",
|
|
210
|
+
id: V
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
/* @__PURE__ */ e.jsxs("div", { className: n.wrapper, children: [
|
|
214
|
+
u && /* @__PURE__ */ e.jsx(
|
|
215
|
+
"span",
|
|
216
|
+
{
|
|
217
|
+
className: c($, n.prefix),
|
|
218
|
+
ref: B,
|
|
219
|
+
"aria-disabled": r,
|
|
220
|
+
children: nt
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ e.jsx(
|
|
224
|
+
"input",
|
|
225
|
+
{
|
|
226
|
+
className: it,
|
|
227
|
+
id: a,
|
|
228
|
+
ref: s,
|
|
229
|
+
...J,
|
|
230
|
+
style: z,
|
|
231
|
+
"aria-labelledby": `${F}${st}`,
|
|
232
|
+
"aria-describedby": dt(),
|
|
233
|
+
"aria-invalid": b,
|
|
234
|
+
"aria-disabled": p,
|
|
235
|
+
disabled: r,
|
|
236
|
+
min: j,
|
|
237
|
+
max: L,
|
|
238
|
+
readOnly: p,
|
|
239
|
+
required: R,
|
|
240
|
+
step: U,
|
|
241
|
+
type: "number",
|
|
242
|
+
value: _,
|
|
243
|
+
onChange: _t
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
d && /* @__PURE__ */ e.jsx(
|
|
247
|
+
"span",
|
|
248
|
+
{
|
|
249
|
+
className: c($, n.suffix),
|
|
250
|
+
ref: D,
|
|
251
|
+
"aria-disabled": r,
|
|
252
|
+
children: et
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ e.jsx(
|
|
256
|
+
X,
|
|
257
|
+
{
|
|
258
|
+
hideLabel: !0,
|
|
259
|
+
theme: "light",
|
|
260
|
+
iconName: "minus",
|
|
261
|
+
variant: "filled",
|
|
262
|
+
className: ct,
|
|
263
|
+
size: o,
|
|
264
|
+
onClick: rt,
|
|
265
|
+
disabled: r || p || !!_ && Number(_) <= j,
|
|
266
|
+
type: "button",
|
|
267
|
+
children: q
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ e.jsx(
|
|
271
|
+
X,
|
|
272
|
+
{
|
|
273
|
+
hideLabel: !0,
|
|
274
|
+
theme: "light",
|
|
275
|
+
iconName: "plus",
|
|
276
|
+
variant: "filled",
|
|
277
|
+
className: ut,
|
|
278
|
+
size: o,
|
|
279
|
+
onClick: pt,
|
|
280
|
+
disabled: r || p || !!_ && Number(_) >= L,
|
|
281
|
+
type: "button",
|
|
282
|
+
children: O
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
] })
|
|
286
|
+
] });
|
|
287
|
+
};
|
|
288
|
+
export {
|
|
289
|
+
Qt as D,
|
|
290
|
+
Tt as v
|
|
291
|
+
};
|