@stihl-design-system/components 1.0.0-RC.1 → 1.0.0-RC.3
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/README.md +1 -1
- package/assets/CustomReactSelect.BdwXfLLO.css +1 -0
- package/assets/RadioGroup.Ur8Ro-XL.css +1 -0
- package/assets/asterisk.C-o6rbGQ.css +1 -0
- package/assets/button.DJvR-58w.css +1 -0
- package/assets/buttonround.BlfQkmMV.css +1 -0
- package/assets/checkbox.BsFEWfQe.css +1 -0
- package/assets/fieldset.xazpUXJX.css +1 -0
- package/assets/floatingactionbutton.D7ywURL3.css +1 -0
- package/assets/heading.CGFucb-C.css +1 -0
- package/assets/icon.CB-KQmw4.css +1 -0
- package/assets/input.BcP5kkZ2.css +1 -0
- package/assets/inputpassword.C3Uyj7oA.css +1 -0
- package/assets/inputsearch.tL3e9-Ob.css +1 -0
- package/assets/inputstepper.paPJix5A.css +1 -0
- package/assets/link.V7pJOW1p.css +1 -0
- package/assets/linkstandalone.D3RbBp23.css +1 -0
- package/assets/logo.BbHYgnWo.css +1 -0
- package/assets/optioncheckbox.C-K1FLhc.css +1 -0
- package/assets/radio.CSHQGdpr.css +1 -0
- package/assets/select.D2qBxaHP.css +1 -0
- package/assets/spinner.C5rBmKiF.css +1 -0
- package/assets/switch.sqve8ApJ.css +1 -0
- package/assets/{SystemFeedback.c30264c0.css → systemfeedback.WE3wClZ3.css} +1 -1
- package/assets/text.DDAveG7E.css +1 -0
- package/assets/textarea.BKbocznb.css +1 -0
- package/assets/title.CE0Dm7PI.css +1 -0
- package/asterisk.DU8THnoC.js +8 -0
- package/button.BUUGRxIp.js +135 -0
- package/buttonround.CKc-a-hd.js +118 -0
- package/{checkbox.42617f46.js → checkbox.C2Ga9yTK.js} +30 -30
- package/checkboxgroup.Cfxz9bk6.js +80 -0
- package/chunks/360.CfjUtgxq.js +10 -0
- package/chunks/{CustomReactSelect.2e4e7ba0.js → CustomReactSelect.uzWNynay.js} +797 -785
- package/chunks/{Input.utils.f8f3286f.js → Input.utils.Bly6ZzLI.js} +1 -1
- package/chunks/RadioGroup.module.bi3leRes.js +11 -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.DLY6BTL4.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/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.C-kxDJ4g.js} +263 -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.BXHAo4Wx.js +47 -0
- package/components/Asterisk/Asterisk.d.ts +0 -1
- package/components/Button/Button.d.ts +5 -4
- package/components/ButtonRound/ButtonRound.d.ts +3 -3
- package/components/Checkbox/Checkbox.d.ts +4 -3
- package/components/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +2 -1
- package/components/Combobox/Combobox.d.ts +3 -3
- package/components/Combobox/Combobox.utils.d.ts +4 -3
- package/components/CustomReactSelect/CustomReactSelect.d.ts +7 -7
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -2
- package/components/CustomReactSelect/OptionCheckbox.d.ts +2 -1
- package/components/Fieldset/Fieldset.d.ts +4 -3
- package/components/Fieldset/Fieldset.utils.d.ts +3 -2
- package/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/components/Heading/Heading.d.ts +4 -3
- package/components/Heading/Heading.utils.d.ts +1 -1
- package/components/Icon/Icon.d.ts +4 -3
- package/components/Icon/Icon.utils.d.ts +4 -6
- package/components/Input/Input.d.ts +5 -4
- package/components/Input/Input.utils.d.ts +2 -1
- package/components/InputPassword/InputPassword.d.ts +5 -4
- package/components/InputPassword/InputPassword.utils.d.ts +2 -1
- package/components/InputSearch/InputSearch.d.ts +5 -4
- package/components/InputSearch/InputSearch.utils.d.ts +2 -1
- package/components/InputStepper/InputStepper.d.ts +5 -4
- package/components/InputStepper/InputStepper.utils.d.ts +2 -1
- package/components/Link/Link.d.ts +4 -4
- package/components/LinkStandalone/LinkStandalone.d.ts +3 -3
- package/components/Logo/Logo.d.ts +7 -4
- package/components/Logo/Logo.utils.d.ts +3 -1
- package/components/Radio/Radio.d.ts +4 -3
- package/components/RadioGroup/RadioGroup.d.ts +6 -5
- package/components/RadioGroup/RadioGroup.utils.d.ts +3 -2
- package/components/Select/Select.d.ts +4 -3
- package/components/Select/Select.utils.d.ts +4 -3
- package/components/Spinner/Spinner.d.ts +4 -3
- package/components/Switch/Switch.d.ts +4 -3
- package/components/SystemFeedback/SystemFeedback.d.ts +3 -2
- package/components/Text/Text.d.ts +4 -3
- package/components/Textarea/Textarea.d.ts +4 -3
- package/components/Textarea/Textarea.utils.d.ts +2 -1
- package/components/Title/Title.d.ts +4 -3
- package/customreactselect.CipgVXTR.js +13 -0
- package/fieldset.DGcIKzDI.js +98 -0
- package/floatingactionbutton.DzHD39NY.js +87 -0
- package/heading.DqGbFfj2.js +50 -0
- package/icon.PX9_1kNB.js +215 -0
- package/index.es.js +23 -23
- package/input.o8OT6rxJ.js +236 -0
- package/inputpassword.-MXq8baU.js +139 -0
- package/{inputsearch.6e913fc6.js → inputsearch.CoYTSjox.js} +50 -50
- package/inputstepper.BBMQr6kM.js +290 -0
- package/link.BN6AZfhG.js +115 -0
- package/linkstandalone.4-fyRd08.js +79 -0
- package/{logo.e6576fe3.js → logo.C_oJ8isW.js} +31 -30
- package/optioncheckbox.-DRnW_ch.js +43 -0
- package/package.json +42 -42
- package/partials/index.js +938 -930
- package/partials/lib/partials.d.ts +2 -2
- package/radio.Bhu9OUY-.js +79 -0
- package/radiogroup.oILRMrX-.js +102 -0
- package/select.OGcreXnT.js +190 -0
- package/spinner.Diy_EeFY.js +58 -0
- package/styles/scss/_index.scss +1 -0
- package/styles/scss/lib/_focus.scss +2 -1
- package/styles/scss/lib/_grid-extended.scss +2 -2
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +2 -2
- package/styles/scss/lib/_grid-sidebar.scss +23 -40
- package/styles/scss/lib/_grid.scss +15 -13
- package/styles/scss/lib/_heading.scss +14 -1
- package/styles/scss/lib/_high-contrast.scss +24 -0
- package/styles/scss/lib/_link.scss +9 -9
- package/styles/scss/lib/_spacing.scss +12 -0
- package/styles/scss/lib/_text.scss +4 -0
- package/styles/scss/lib/_theme.scss +2 -2
- package/switch.BjoFKMQC.js +65 -0
- package/systemfeedback.C7iXO5A1.js +25 -0
- package/text.CPU8IUqY.js +57 -0
- package/textarea.kc_Sfbgr.js +193 -0
- package/title.icX0VDiO.js +36 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/render-documentation.d.ts +0 -1
- package/utils/useBreakpoint.d.ts +2 -1
- package/utils/vitest.setup.d.ts +1 -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/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/checkboxgroup.fa110fdf.js +0 -78
- package/chunks/360.3f3132d9.js +0 -11
- 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/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/input.064e0bbf.js
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import "./assets/Input.92913cfe.css";
|
|
2
|
-
import { j as i } from "./chunks/jsx-runtime.5c071667.js";
|
|
3
|
-
import { c as e } from "./chunks/index.8021d3e0.js";
|
|
4
|
-
import { useState as m, useRef as v, useLayoutEffect as D, useEffect as nt } from "react";
|
|
5
|
-
import { u as st } from "./chunks/useBreakpoint.6c1b06c2.js";
|
|
6
|
-
import { Asterisk as et } from "./asterisk.cb74ea72.js";
|
|
7
|
-
import { DSButton as T } from "./button.87ad387c.js";
|
|
8
|
-
import { DSIcon as lt } from "./icon.b4211784.js";
|
|
9
|
-
import { DSSystemFeedback as ot } from "./systemfeedback.8515a4e0.js";
|
|
10
|
-
import { v as ut, a as ct, M as dt, b as _t, s as rt, i as C, c as pt } from "./chunks/Input.utils.f8f3286f.js";
|
|
11
|
-
const ft = "_input_11iuy_73", mt = "_input--invalid_11iuy_183", yt = "_input--small_11iuy_190", ht = "_input--has-leading-icon_11iuy_236", bt = "_input--has-action-button_11iuy_239", xt = "_input--has-second-action-button_11iuy_242", gt = "_input--has-affix_11iuy_254", St = "_input--is-ready_11iuy_266", It = "_root_11iuy_273", Ht = "_hint_11iuy_281", kt = "_label_11iuy_281", vt = "_wrapper_11iuy_285", Ct = "_affix_11iuy_291", Lt = "_affix--small_11iuy_309", jt = "_affix--disabled_11iuy_321", At = "_prefix_11iuy_325", Rt = "_suffix_11iuy_331", Nt = "_leading-icon_11iuy_336", Bt = "_leading-icon--small_11iuy_341", wt = "_action-button_11iuy_345", Dt = "_label--hidden_11iuy_362", Tt = "_feedback_11iuy_389", t = {
|
|
12
|
-
input: ft,
|
|
13
|
-
"input--invalid": "_input--invalid_11iuy_183",
|
|
14
|
-
inputInvalid: mt,
|
|
15
|
-
"input--small": "_input--small_11iuy_190",
|
|
16
|
-
inputSmall: yt,
|
|
17
|
-
"input--has-leading-icon": "_input--has-leading-icon_11iuy_236",
|
|
18
|
-
inputHasLeadingIcon: ht,
|
|
19
|
-
"input--has-action-button": "_input--has-action-button_11iuy_239",
|
|
20
|
-
inputHasActionButton: bt,
|
|
21
|
-
"input--has-second-action-button": "_input--has-second-action-button_11iuy_242",
|
|
22
|
-
inputHasSecondActionButton: xt,
|
|
23
|
-
"input--has-affix": "_input--has-affix_11iuy_254",
|
|
24
|
-
inputHasAffix: gt,
|
|
25
|
-
"input--is-ready": "_input--is-ready_11iuy_266",
|
|
26
|
-
inputIsReady: St,
|
|
27
|
-
root: It,
|
|
28
|
-
hint: Ht,
|
|
29
|
-
label: kt,
|
|
30
|
-
wrapper: vt,
|
|
31
|
-
affix: Ct,
|
|
32
|
-
"affix--small": "_affix--small_11iuy_309",
|
|
33
|
-
affixSmall: Lt,
|
|
34
|
-
"affix--disabled": "_affix--disabled_11iuy_321",
|
|
35
|
-
affixDisabled: jt,
|
|
36
|
-
prefix: At,
|
|
37
|
-
suffix: Rt,
|
|
38
|
-
"leading-icon": "_leading-icon_11iuy_336",
|
|
39
|
-
leadingIcon: Nt,
|
|
40
|
-
"leading-icon--small": "_leading-icon--small_11iuy_341",
|
|
41
|
-
leadingIconSmall: Bt,
|
|
42
|
-
"action-button": "_action-button_11iuy_345",
|
|
43
|
-
actionButton: wt,
|
|
44
|
-
"label--hidden": "_label--hidden_11iuy_362",
|
|
45
|
-
labelHidden: Dt,
|
|
46
|
-
feedback: Tt
|
|
47
|
-
}, Ut = ({
|
|
48
|
-
id: c,
|
|
49
|
-
label: L,
|
|
50
|
-
actionButtonLabel: E,
|
|
51
|
-
actionButtonIconName: _,
|
|
52
|
-
actionButtonIconSource: y,
|
|
53
|
-
actionButtonOnClick: F,
|
|
54
|
-
className: P,
|
|
55
|
-
disabled: l = !1,
|
|
56
|
-
hint: h,
|
|
57
|
-
hideLabel: O = !1,
|
|
58
|
-
invalid: r = !1,
|
|
59
|
-
leadingIconName: p,
|
|
60
|
-
leadingIconSource: f,
|
|
61
|
-
prefix: n,
|
|
62
|
-
readonly: d = !1,
|
|
63
|
-
required: j = !1,
|
|
64
|
-
size: s = "medium",
|
|
65
|
-
suffix: a,
|
|
66
|
-
systemFeedback: b,
|
|
67
|
-
type: o = "text",
|
|
68
|
-
...$
|
|
69
|
-
}) => {
|
|
70
|
-
process.env.NODE_ENV !== "production" && (ut({
|
|
71
|
-
id: c,
|
|
72
|
-
label: L,
|
|
73
|
-
prefix: n,
|
|
74
|
-
suffix: a,
|
|
75
|
-
leadingIconName: p,
|
|
76
|
-
leadingIconSource: f,
|
|
77
|
-
actionButtonIconName: _,
|
|
78
|
-
actionButtonIconSource: y
|
|
79
|
-
}), ct(o));
|
|
80
|
-
const [W, X] = m(!1), [M, V] = m(!1), [x, G] = m(!1), [U, J] = m({}), g = v(null), K = n == null ? void 0 : n.substring(0, dt), S = v(null), Q = a == null ? void 0 : a.substring(0, _t), I = v(null), Y = st(O);
|
|
81
|
-
D(() => {
|
|
82
|
-
const u = s === "medium" ? 16 : 8, H = {};
|
|
83
|
-
if (S.current) {
|
|
84
|
-
const k = S.current.offsetWidth;
|
|
85
|
-
H.paddingLeft = u + k + "px";
|
|
86
|
-
}
|
|
87
|
-
if (I.current) {
|
|
88
|
-
const k = I.current.offsetWidth;
|
|
89
|
-
H.paddingRight = u + k + "px";
|
|
90
|
-
}
|
|
91
|
-
J(H), X(!0);
|
|
92
|
-
}, [n, a, s, M]), D(() => {
|
|
93
|
-
(async () => {
|
|
94
|
-
"fonts" in document && (await document.fonts.load(
|
|
95
|
-
'1em "STIHL Contraface Digital Text Regular"'
|
|
96
|
-
), V(!0));
|
|
97
|
-
})();
|
|
98
|
-
}, []), nt(() => {
|
|
99
|
-
const u = rt(
|
|
100
|
-
C(o),
|
|
101
|
-
pt(o)
|
|
102
|
-
);
|
|
103
|
-
G(u);
|
|
104
|
-
}, [o]);
|
|
105
|
-
const A = e(t.affix, {
|
|
106
|
-
[t.affixSmall]: s === "small",
|
|
107
|
-
[t.affixDisabled]: l
|
|
108
|
-
}), R = `${c}-label`, N = `${c}-feedback`, B = `${c}-hint`, Z = h ? ` ${B}` : "", q = e(t.root, P), z = e(t.input, {
|
|
109
|
-
// small input
|
|
110
|
-
[t.inputSmall]: s === "small",
|
|
111
|
-
// invalid state
|
|
112
|
-
[t.inputInvalid]: r,
|
|
113
|
-
// leading icon
|
|
114
|
-
[t.inputHasLeadingIcon]: p || f,
|
|
115
|
-
// prefix/suffix
|
|
116
|
-
[t.inputHasAffix]: n || a,
|
|
117
|
-
// action button
|
|
118
|
-
[t.inputHasActionButton]: _ || y || x,
|
|
119
|
-
[t.inputIsReady]: W
|
|
120
|
-
}), tt = e(t.label, {
|
|
121
|
-
// hide label only visually to keep them available for assistive technologies
|
|
122
|
-
[t.labelHidden]: Y
|
|
123
|
-
}), it = e(t.leadingIcon, {
|
|
124
|
-
[t.leadingIconSmall]: s === "small"
|
|
125
|
-
}), w = e(t.actionButton, {
|
|
126
|
-
[t.actionButtonSmall]: s === "small"
|
|
127
|
-
}), at = (u) => {
|
|
128
|
-
g.current && !l && !d && g.current.showPicker(), u.preventDefault();
|
|
129
|
-
};
|
|
130
|
-
return /* @__PURE__ */ i.jsxs("div", { className: q, children: [
|
|
131
|
-
/* @__PURE__ */ i.jsxs("label", { className: tt, id: R, htmlFor: c, children: [
|
|
132
|
-
L,
|
|
133
|
-
j && /* @__PURE__ */ i.jsx(et, {})
|
|
134
|
-
] }),
|
|
135
|
-
h && /* @__PURE__ */ i.jsx("div", { className: t.hint, id: B, children: h }),
|
|
136
|
-
r && b && /* @__PURE__ */ i.jsx(
|
|
137
|
-
ot,
|
|
138
|
-
{
|
|
139
|
-
className: t.feedback,
|
|
140
|
-
message: b,
|
|
141
|
-
type: "invalid",
|
|
142
|
-
id: N
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
/* @__PURE__ */ i.jsxs("div", { className: t.wrapper, children: [
|
|
146
|
-
n && /* @__PURE__ */ i.jsx(
|
|
147
|
-
"span",
|
|
148
|
-
{
|
|
149
|
-
className: e(A, t.prefix),
|
|
150
|
-
ref: S,
|
|
151
|
-
"aria-disabled": l,
|
|
152
|
-
children: K
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
!n && (p || f) && /* @__PURE__ */ i.jsx(
|
|
156
|
-
lt,
|
|
157
|
-
{
|
|
158
|
-
name: p,
|
|
159
|
-
theme: "light",
|
|
160
|
-
source: f,
|
|
161
|
-
className: it,
|
|
162
|
-
"aria-hidden": "true"
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
/* @__PURE__ */ i.jsx(
|
|
166
|
-
"input",
|
|
167
|
-
{
|
|
168
|
-
type: o,
|
|
169
|
-
className: z,
|
|
170
|
-
id: c,
|
|
171
|
-
ref: g,
|
|
172
|
-
...$,
|
|
173
|
-
style: U,
|
|
174
|
-
"aria-labelledby": `${R}${Z}`,
|
|
175
|
-
"aria-describedby": r && b ? N : void 0,
|
|
176
|
-
"aria-invalid": r,
|
|
177
|
-
"aria-disabled": d,
|
|
178
|
-
readOnly: d,
|
|
179
|
-
required: j,
|
|
180
|
-
disabled: l
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
a && /* @__PURE__ */ i.jsx(
|
|
184
|
-
"span",
|
|
185
|
-
{
|
|
186
|
-
className: e(A, t.suffix),
|
|
187
|
-
ref: I,
|
|
188
|
-
"aria-disabled": l,
|
|
189
|
-
children: Q
|
|
190
|
-
}
|
|
191
|
-
),
|
|
192
|
-
!a && !x && (_ || y) && /* @__PURE__ */ i.jsx(
|
|
193
|
-
T,
|
|
194
|
-
{
|
|
195
|
-
hideLabel: !0,
|
|
196
|
-
theme: "light",
|
|
197
|
-
iconName: _,
|
|
198
|
-
variant: "ghost",
|
|
199
|
-
className: w,
|
|
200
|
-
size: s,
|
|
201
|
-
onClick: F,
|
|
202
|
-
type: "button",
|
|
203
|
-
disabled: l || d,
|
|
204
|
-
children: E
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
!a && x && !d && !l && /* @__PURE__ */ i.jsxs(
|
|
208
|
-
T,
|
|
209
|
-
{
|
|
210
|
-
hideLabel: !0,
|
|
211
|
-
theme: "light",
|
|
212
|
-
iconName: C(o) ? "calendar" : "clock",
|
|
213
|
-
variant: "ghost",
|
|
214
|
-
className: w,
|
|
215
|
-
size: s,
|
|
216
|
-
onClick: at,
|
|
217
|
-
type: "button",
|
|
218
|
-
children: [
|
|
219
|
-
"Open ",
|
|
220
|
-
C(o) ? "date" : "time",
|
|
221
|
-
" picker"
|
|
222
|
-
]
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
] })
|
|
226
|
-
] });
|
|
227
|
-
};
|
|
228
|
-
export {
|
|
229
|
-
Ut as DSInput
|
|
230
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import "./assets/InputPassword.d7b9c937.css";
|
|
2
|
-
import { j as a } from "./chunks/jsx-runtime.5c071667.js";
|
|
3
|
-
import { c as o } from "./chunks/index.8021d3e0.js";
|
|
4
|
-
import { useState as D } from "react";
|
|
5
|
-
import { u as C } from "./chunks/useBreakpoint.6c1b06c2.js";
|
|
6
|
-
import { Asterisk as L } from "./asterisk.cb74ea72.js";
|
|
7
|
-
import { DSButton as $ } from "./button.87ad387c.js";
|
|
8
|
-
import { DSSystemFeedback as E } from "./systemfeedback.8515a4e0.js";
|
|
9
|
-
import { g as h } from "./chunks/helpers.ea3ca41a.js";
|
|
10
|
-
const q = "_input_1encj_73", R = "_input--invalid_1encj_183", V = "_input--small_1encj_190", O = "_input--has-leading-icon_1encj_236", F = "_input--has-action-button_1encj_239", M = "_input--has-second-action-button_1encj_242", T = "_input--has-affix_1encj_254", G = "_input--is-ready_1encj_266", J = "_root_1encj_273", K = "_hint_1encj_281", Q = "_label_1encj_281", U = "_wrapper_1encj_285", W = "_action-button_1encj_291", X = "_label--hidden_1encj_308", Y = "_feedback_1encj_335", n = {
|
|
11
|
-
input: q,
|
|
12
|
-
"input--invalid": "_input--invalid_1encj_183",
|
|
13
|
-
inputInvalid: R,
|
|
14
|
-
"input--small": "_input--small_1encj_190",
|
|
15
|
-
inputSmall: V,
|
|
16
|
-
"input--has-leading-icon": "_input--has-leading-icon_1encj_236",
|
|
17
|
-
inputHasLeadingIcon: O,
|
|
18
|
-
"input--has-action-button": "_input--has-action-button_1encj_239",
|
|
19
|
-
inputHasActionButton: F,
|
|
20
|
-
"input--has-second-action-button": "_input--has-second-action-button_1encj_242",
|
|
21
|
-
inputHasSecondActionButton: M,
|
|
22
|
-
"input--has-affix": "_input--has-affix_1encj_254",
|
|
23
|
-
inputHasAffix: T,
|
|
24
|
-
"input--is-ready": "_input--is-ready_1encj_266",
|
|
25
|
-
inputIsReady: G,
|
|
26
|
-
root: J,
|
|
27
|
-
hint: K,
|
|
28
|
-
label: Q,
|
|
29
|
-
wrapper: U,
|
|
30
|
-
"action-button": "_action-button_1encj_291",
|
|
31
|
-
actionButton: W,
|
|
32
|
-
"label--hidden": "_label--hidden_1encj_308",
|
|
33
|
-
labelHidden: X,
|
|
34
|
-
feedback: Y
|
|
35
|
-
}, Z = ({ id: t, label: e }) => {
|
|
36
|
-
if (!t)
|
|
37
|
-
throw new Error(
|
|
38
|
-
h(
|
|
39
|
-
"DSInputPassword",
|
|
40
|
-
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputPassword component.'
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
if (!e)
|
|
44
|
-
throw new Error(
|
|
45
|
-
h(
|
|
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
|
-
}, pn = ({
|
|
51
|
-
id: t,
|
|
52
|
-
label: e,
|
|
53
|
-
autocomplete: f = "new-password",
|
|
54
|
-
className: j,
|
|
55
|
-
disabled: u = !1,
|
|
56
|
-
hidePasswordText: w = "Hide password",
|
|
57
|
-
hint: i,
|
|
58
|
-
hideLabel: y = !1,
|
|
59
|
-
invalid: s = !1,
|
|
60
|
-
readonly: r = !1,
|
|
61
|
-
required: d = !1,
|
|
62
|
-
showPasswordText: S = "Show password",
|
|
63
|
-
size: c = "medium",
|
|
64
|
-
systemFeedback: l,
|
|
65
|
-
...x
|
|
66
|
-
}) => {
|
|
67
|
-
process.env.NODE_ENV !== "production" && Z({
|
|
68
|
-
id: t,
|
|
69
|
-
label: e
|
|
70
|
-
});
|
|
71
|
-
const [p, I] = D(!1), _ = `${t}-label`, m = `${t}-feedback`, b = `${t}-hint`, B = i ? ` ${b}` : "", H = C(y), g = o(n.root, j), v = o(n.input, {
|
|
72
|
-
// small input
|
|
73
|
-
[n.inputSmall]: c === "small",
|
|
74
|
-
// invalid state
|
|
75
|
-
[n.inputInvalid]: s,
|
|
76
|
-
// action button - input password always has an action button
|
|
77
|
-
[n.inputHasActionButton]: !0
|
|
78
|
-
}), P = o(n.label, {
|
|
79
|
-
// hide label only visually to keep them available for assistive technologies
|
|
80
|
-
[n.labelHidden]: H
|
|
81
|
-
}), N = o(n.actionButton, {
|
|
82
|
-
[n.actionButtonSmall]: c === "small"
|
|
83
|
-
}), k = () => {
|
|
84
|
-
I((A) => !A);
|
|
85
|
-
};
|
|
86
|
-
return /* @__PURE__ */ a.jsxs("div", { className: g, children: [
|
|
87
|
-
/* @__PURE__ */ a.jsxs("label", { className: P, id: _, htmlFor: t, children: [
|
|
88
|
-
e,
|
|
89
|
-
d && /* @__PURE__ */ a.jsx(L, {})
|
|
90
|
-
] }),
|
|
91
|
-
i && /* @__PURE__ */ a.jsx("div", { className: n.hint, id: b, children: i }),
|
|
92
|
-
s && l && /* @__PURE__ */ a.jsx(
|
|
93
|
-
E,
|
|
94
|
-
{
|
|
95
|
-
className: n.feedback,
|
|
96
|
-
message: l,
|
|
97
|
-
type: "invalid",
|
|
98
|
-
id: m
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
/* @__PURE__ */ a.jsxs("div", { className: n.wrapper, children: [
|
|
102
|
-
/* @__PURE__ */ a.jsx(
|
|
103
|
-
"input",
|
|
104
|
-
{
|
|
105
|
-
className: v,
|
|
106
|
-
id: t,
|
|
107
|
-
...x,
|
|
108
|
-
"aria-labelledby": `${_}${B}`,
|
|
109
|
-
"aria-describedby": s && l ? m : void 0,
|
|
110
|
-
"aria-invalid": s,
|
|
111
|
-
"aria-disabled": r,
|
|
112
|
-
readOnly: r,
|
|
113
|
-
required: d,
|
|
114
|
-
disabled: u,
|
|
115
|
-
autoComplete: f,
|
|
116
|
-
type: p ? "text" : "password"
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ a.jsx(
|
|
120
|
-
$,
|
|
121
|
-
{
|
|
122
|
-
hideLabel: !0,
|
|
123
|
-
theme: "light",
|
|
124
|
-
iconName: p ? "eye-closed" : "eye",
|
|
125
|
-
variant: "ghost",
|
|
126
|
-
className: N,
|
|
127
|
-
size: c,
|
|
128
|
-
onClick: k,
|
|
129
|
-
type: "button",
|
|
130
|
-
disabled: u,
|
|
131
|
-
children: p ? w : S
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
] })
|
|
135
|
-
] });
|
|
136
|
-
};
|
|
137
|
-
export {
|
|
138
|
-
pn as DSInputPassword
|
|
139
|
-
};
|
package/inputstepper.2047ec77.js
DELETED
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import "./assets/InputStepper.969db0d2.css";
|
|
2
|
-
import { j as e } from "./chunks/jsx-runtime.5c071667.js";
|
|
3
|
-
import { c } from "./chunks/index.8021d3e0.js";
|
|
4
|
-
import { useState as _, useRef as N, useEffect as D, useLayoutEffect as M } from "react";
|
|
5
|
-
import { u as hn } from "./chunks/useBreakpoint.6c1b06c2.js";
|
|
6
|
-
import { Asterisk as mn } from "./asterisk.cb74ea72.js";
|
|
7
|
-
import { DSButton as X } from "./button.87ad387c.js";
|
|
8
|
-
import { M as w, b as L } from "./chunks/Input.utils.f8f3286f.js";
|
|
9
|
-
import { DSSystemFeedback as bn } from "./systemfeedback.8515a4e0.js";
|
|
10
|
-
import { g as S } from "./chunks/helpers.ea3ca41a.js";
|
|
11
|
-
const kn = "_input_hnpik_73", xn = "_input--invalid_hnpik_184", Sn = "_input--small_hnpik_191", vn = "_input--has-leading-icon_hnpik_237", In = "_input--has-action-button_hnpik_240", yn = "_input--has-second-action-button_hnpik_243", gn = "_input--has-affix_hnpik_255", An = "_input--is-ready_hnpik_267", Bn = "_root_hnpik_274", Nn = "_hint_hnpik_282", Dn = "_label_hnpik_282", wn = "_wrapper_hnpik_286", Ln = "_affix_hnpik_292", Hn = "_affix--small_hnpik_310", jn = "_affix--disabled_hnpik_322", En = "_prefix_hnpik_326", Rn = "_suffix_hnpik_332", Cn = "_action-button_hnpik_337", $n = "_label--hidden_hnpik_354", Fn = "_feedback_hnpik_381", Vn = "_second-action-button_hnpik_395", Pn = "_value-announcer_hnpik_399", t = {
|
|
12
|
-
input: kn,
|
|
13
|
-
"input--invalid": "_input--invalid_hnpik_184",
|
|
14
|
-
inputInvalid: xn,
|
|
15
|
-
"input--small": "_input--small_hnpik_191",
|
|
16
|
-
inputSmall: Sn,
|
|
17
|
-
"input--has-leading-icon": "_input--has-leading-icon_hnpik_237",
|
|
18
|
-
inputHasLeadingIcon: vn,
|
|
19
|
-
"input--has-action-button": "_input--has-action-button_hnpik_240",
|
|
20
|
-
inputHasActionButton: In,
|
|
21
|
-
"input--has-second-action-button": "_input--has-second-action-button_hnpik_243",
|
|
22
|
-
inputHasSecondActionButton: yn,
|
|
23
|
-
"input--has-affix": "_input--has-affix_hnpik_255",
|
|
24
|
-
inputHasAffix: gn,
|
|
25
|
-
"input--is-ready": "_input--is-ready_hnpik_267",
|
|
26
|
-
inputIsReady: An,
|
|
27
|
-
root: Bn,
|
|
28
|
-
hint: Nn,
|
|
29
|
-
label: Dn,
|
|
30
|
-
wrapper: wn,
|
|
31
|
-
affix: Ln,
|
|
32
|
-
"affix--small": "_affix--small_hnpik_310",
|
|
33
|
-
affixSmall: Hn,
|
|
34
|
-
"affix--disabled": "_affix--disabled_hnpik_322",
|
|
35
|
-
affixDisabled: jn,
|
|
36
|
-
prefix: En,
|
|
37
|
-
suffix: Rn,
|
|
38
|
-
"action-button": "_action-button_hnpik_337",
|
|
39
|
-
actionButton: Cn,
|
|
40
|
-
"label--hidden": "_label--hidden_hnpik_354",
|
|
41
|
-
labelHidden: $n,
|
|
42
|
-
feedback: Fn,
|
|
43
|
-
"second-action-button": "_second-action-button_hnpik_395",
|
|
44
|
-
secondActionButton: Vn,
|
|
45
|
-
"value-announcer": "_value-announcer_hnpik_399",
|
|
46
|
-
valueAnnouncer: Pn
|
|
47
|
-
}, Tn = ({
|
|
48
|
-
id: a,
|
|
49
|
-
label: f,
|
|
50
|
-
prefix: h,
|
|
51
|
-
suffix: m
|
|
52
|
-
}) => {
|
|
53
|
-
if (!a)
|
|
54
|
-
throw new Error(
|
|
55
|
-
S(
|
|
56
|
-
"DSInputStepper",
|
|
57
|
-
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputStepper component.'
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
if (!f)
|
|
61
|
-
throw new Error(
|
|
62
|
-
S(
|
|
63
|
-
"DSInputStepper",
|
|
64
|
-
`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}.`
|
|
65
|
-
)
|
|
66
|
-
);
|
|
67
|
-
h && h.length > w && console.warn(
|
|
68
|
-
S(
|
|
69
|
-
"DSInputStepper",
|
|
70
|
-
`Prefix length must not exceed ${w} characters.`
|
|
71
|
-
)
|
|
72
|
-
), m && m.length > L && console.warn(
|
|
73
|
-
S(
|
|
74
|
-
"DSInputStepper",
|
|
75
|
-
`Suffix length must not exceed ${L} characters.`
|
|
76
|
-
)
|
|
77
|
-
);
|
|
78
|
-
}, Yn = ({
|
|
79
|
-
id: a,
|
|
80
|
-
label: f,
|
|
81
|
-
announcementText: h = "Value changed to",
|
|
82
|
-
className: m,
|
|
83
|
-
disabled: p = !1,
|
|
84
|
-
decreaseAmountButtonLabel: q = "Decrease",
|
|
85
|
-
hint: v,
|
|
86
|
-
hideLabel: G = !1,
|
|
87
|
-
invalid: b = !1,
|
|
88
|
-
increaseAmountButtonLabel: O = "Increase",
|
|
89
|
-
prefix: u,
|
|
90
|
-
max: H = 100,
|
|
91
|
-
min: j = 0,
|
|
92
|
-
readonly: k = !1,
|
|
93
|
-
required: E = !1,
|
|
94
|
-
size: s = "medium",
|
|
95
|
-
step: U = 1,
|
|
96
|
-
suffix: r,
|
|
97
|
-
systemFeedback: I,
|
|
98
|
-
value: x,
|
|
99
|
-
onChange: R,
|
|
100
|
-
...J
|
|
101
|
-
}) => {
|
|
102
|
-
process.env.NODE_ENV !== "production" && Tn({
|
|
103
|
-
id: a,
|
|
104
|
-
label: f,
|
|
105
|
-
prefix: u,
|
|
106
|
-
suffix: r
|
|
107
|
-
});
|
|
108
|
-
const [K, Q] = _(!1), [d, y] = _(x), [g, C] = _(""), [Y, Z] = _(!1), [z, nn] = _({}), i = N(null), tn = u == null ? void 0 : u.substring(0, w), A = N(null), en = r == null ? void 0 : r.substring(0, L), B = N(null), an = hn(G);
|
|
109
|
-
D(() => {
|
|
110
|
-
x && y(x);
|
|
111
|
-
}, [x]), D(() => {
|
|
112
|
-
if (g) {
|
|
113
|
-
const n = setTimeout(() => {
|
|
114
|
-
C("");
|
|
115
|
-
}, 3e3);
|
|
116
|
-
return () => clearTimeout(n);
|
|
117
|
-
}
|
|
118
|
-
}, [g]), D(() => {
|
|
119
|
-
var o;
|
|
120
|
-
const n = (l) => {
|
|
121
|
-
l.preventDefault();
|
|
122
|
-
};
|
|
123
|
-
return (o = i.current) == null || o.addEventListener("wheel", n, {
|
|
124
|
-
// The { passive: false } option is used to indicate that the event listener wants to cancel the event, allowing preventDefault to work as expected.
|
|
125
|
-
passive: !1
|
|
126
|
-
}), () => {
|
|
127
|
-
var l;
|
|
128
|
-
(l = i.current) == null || l.removeEventListener("wheel", n);
|
|
129
|
-
};
|
|
130
|
-
}, []), M(() => {
|
|
131
|
-
const n = s === "medium" ? 16 : 8, o = {};
|
|
132
|
-
if (A.current) {
|
|
133
|
-
const l = A.current.offsetWidth;
|
|
134
|
-
o.paddingLeft = n + l + "px";
|
|
135
|
-
}
|
|
136
|
-
if (B.current) {
|
|
137
|
-
const l = B.current.offsetWidth;
|
|
138
|
-
o.paddingRight = n + l + "px";
|
|
139
|
-
}
|
|
140
|
-
nn(o), Q(!0);
|
|
141
|
-
}, [u, r, s, Y]), M(() => {
|
|
142
|
-
(async () => {
|
|
143
|
-
"fonts" in document && (await document.fonts.load(
|
|
144
|
-
'1em "STIHL Contraface Digital Text Regular"'
|
|
145
|
-
), Z(!0));
|
|
146
|
-
})();
|
|
147
|
-
}, []);
|
|
148
|
-
const $ = c(t.affix, {
|
|
149
|
-
[t.affixSmall]: s === "small"
|
|
150
|
-
}), F = `${a}-label`, V = `${a}-feedback`, P = `${a}-hint`, T = `${a}-value-announcer`, sn = v ? ` ${P}` : "", on = c(t.root, m), ln = c(t.input, {
|
|
151
|
-
// small input
|
|
152
|
-
[t.inputSmall]: s === "small",
|
|
153
|
-
// invalid state
|
|
154
|
-
[t.inputInvalid]: b,
|
|
155
|
-
// prefix/suffix
|
|
156
|
-
[t.inputHasAffix]: u || r,
|
|
157
|
-
[t.inputIsReady]: K
|
|
158
|
-
}), cn = c(t.label, {
|
|
159
|
-
// hide label only visually to keep them available for assistive technologies
|
|
160
|
-
[t.labelHidden]: an
|
|
161
|
-
}), un = c(t.secondActionButton, {
|
|
162
|
-
[t.secondActionButtonSmall]: s === "small"
|
|
163
|
-
}), rn = c(t.actionButton, {
|
|
164
|
-
[t.actionButtonSmall]: s === "small"
|
|
165
|
-
}), pn = () => {
|
|
166
|
-
const n = [T];
|
|
167
|
-
return b && I && n.push(V), n.join(" ");
|
|
168
|
-
}, W = () => {
|
|
169
|
-
var n;
|
|
170
|
-
if (i.current) {
|
|
171
|
-
y(i.current.value);
|
|
172
|
-
const o = new Event("change", { bubbles: !0 });
|
|
173
|
-
(n = i.current) == null || n.dispatchEvent(o), C(`${h} ${i.current.value}`);
|
|
174
|
-
}
|
|
175
|
-
}, dn = () => {
|
|
176
|
-
var n;
|
|
177
|
-
(n = i.current) == null || n.stepDown(), W();
|
|
178
|
-
}, _n = () => {
|
|
179
|
-
var n;
|
|
180
|
-
(n = i.current) == null || n.stepUp(), W();
|
|
181
|
-
}, fn = (n) => {
|
|
182
|
-
y(n.target.value), R && R(n);
|
|
183
|
-
};
|
|
184
|
-
return /* @__PURE__ */ e.jsxs("div", { className: on, children: [
|
|
185
|
-
/* @__PURE__ */ e.jsxs("label", { className: cn, id: F, htmlFor: a, children: [
|
|
186
|
-
f,
|
|
187
|
-
E && /* @__PURE__ */ e.jsx(mn, {})
|
|
188
|
-
] }),
|
|
189
|
-
v && /* @__PURE__ */ e.jsx("div", { className: t.hint, id: P, children: v }),
|
|
190
|
-
/* @__PURE__ */ e.jsx(
|
|
191
|
-
"div",
|
|
192
|
-
{
|
|
193
|
-
"aria-live": "polite",
|
|
194
|
-
"aria-atomic": "true",
|
|
195
|
-
className: t.valueAnnouncer,
|
|
196
|
-
id: T,
|
|
197
|
-
children: g
|
|
198
|
-
}
|
|
199
|
-
),
|
|
200
|
-
b && I && /* @__PURE__ */ e.jsx(
|
|
201
|
-
bn,
|
|
202
|
-
{
|
|
203
|
-
className: t.feedback,
|
|
204
|
-
message: I,
|
|
205
|
-
type: "invalid",
|
|
206
|
-
id: V
|
|
207
|
-
}
|
|
208
|
-
),
|
|
209
|
-
/* @__PURE__ */ e.jsxs("div", { className: t.wrapper, children: [
|
|
210
|
-
u && /* @__PURE__ */ e.jsx(
|
|
211
|
-
"span",
|
|
212
|
-
{
|
|
213
|
-
className: c($, t.prefix),
|
|
214
|
-
ref: A,
|
|
215
|
-
"aria-disabled": p,
|
|
216
|
-
children: tn
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
/* @__PURE__ */ e.jsx(
|
|
220
|
-
"input",
|
|
221
|
-
{
|
|
222
|
-
className: ln,
|
|
223
|
-
id: a,
|
|
224
|
-
ref: i,
|
|
225
|
-
...J,
|
|
226
|
-
style: z,
|
|
227
|
-
"aria-labelledby": `${F}${sn}`,
|
|
228
|
-
"aria-describedby": pn(),
|
|
229
|
-
"aria-invalid": b,
|
|
230
|
-
"aria-disabled": k,
|
|
231
|
-
disabled: p,
|
|
232
|
-
min: j,
|
|
233
|
-
max: H,
|
|
234
|
-
readOnly: k,
|
|
235
|
-
required: E,
|
|
236
|
-
step: U,
|
|
237
|
-
type: "number",
|
|
238
|
-
value: d,
|
|
239
|
-
onChange: fn
|
|
240
|
-
}
|
|
241
|
-
),
|
|
242
|
-
r && /* @__PURE__ */ e.jsx(
|
|
243
|
-
"span",
|
|
244
|
-
{
|
|
245
|
-
className: c($, t.suffix),
|
|
246
|
-
ref: B,
|
|
247
|
-
"aria-disabled": p,
|
|
248
|
-
children: en
|
|
249
|
-
}
|
|
250
|
-
),
|
|
251
|
-
/* @__PURE__ */ e.jsx(
|
|
252
|
-
X,
|
|
253
|
-
{
|
|
254
|
-
hideLabel: !0,
|
|
255
|
-
theme: "light",
|
|
256
|
-
iconName: "minus",
|
|
257
|
-
variant: "filled",
|
|
258
|
-
className: un,
|
|
259
|
-
size: s,
|
|
260
|
-
onClick: dn,
|
|
261
|
-
disabled: p || k || !!d && Number(d) <= j,
|
|
262
|
-
type: "button",
|
|
263
|
-
children: q
|
|
264
|
-
}
|
|
265
|
-
),
|
|
266
|
-
/* @__PURE__ */ e.jsx(
|
|
267
|
-
X,
|
|
268
|
-
{
|
|
269
|
-
hideLabel: !0,
|
|
270
|
-
theme: "light",
|
|
271
|
-
iconName: "plus",
|
|
272
|
-
variant: "filled",
|
|
273
|
-
className: rn,
|
|
274
|
-
size: s,
|
|
275
|
-
onClick: _n,
|
|
276
|
-
disabled: p || k || !!d && Number(d) >= H,
|
|
277
|
-
type: "button",
|
|
278
|
-
children: O
|
|
279
|
-
}
|
|
280
|
-
)
|
|
281
|
-
] })
|
|
282
|
-
] });
|
|
283
|
-
};
|
|
284
|
-
export {
|
|
285
|
-
Yn as DSInputStepper
|
|
286
|
-
};
|