@stihl-design-system/components 1.0.0-RC.0 → 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 +10 -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 +60 -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/fonts/STIHLContrafaceDigitalDisplayTitling.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalDisplayTitling.woff2 +0 -0
- package/styles/fonts/STIHLContrafaceDigitalText-Bold.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalText-Bold.woff2 +0 -0
- package/styles/fonts/STIHLContrafaceDigitalText.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalText.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- 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 +69 -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.582f2067.css +0 -1
- package/assets/Button.684e8bda.css +0 -1
- package/assets/ButtonRound.ca8748cf.css +0 -1
- package/assets/Checkbox.84cf6398.css +0 -1
- package/assets/CustomReactSelect.d89ccccb.css +0 -1
- package/assets/Fieldset.5297efb8.css +0 -1
- package/assets/FloatingActionButton.de295f5d.css +0 -1
- package/assets/Heading.32278621.css +0 -1
- package/assets/Icon.8890ee9a.css +0 -1
- package/assets/Input.2c508b2f.css +0 -1
- package/assets/InputPassword.a534f047.css +0 -1
- package/assets/InputSearch.8f986307.css +0 -1
- package/assets/InputStepper.52fb45ca.css +0 -1
- package/assets/Link.03deeca0.css +0 -1
- package/assets/LinkStandalone.7e23a8ac.css +0 -1
- package/assets/Logo.09e48e82.css +0 -1
- package/assets/OptionCheckbox.9c20f6f1.css +0 -1
- package/assets/Radio.be8f06f5.css +0 -1
- package/assets/RadioGroup.8b55ee38.css +0 -1
- package/assets/Select.b2423b5f.css +0 -1
- package/assets/Spinner.af45d460.css +0 -1
- package/assets/Switch.f3ab20de.css +0 -1
- package/assets/SystemFeedback.f4421d60.css +0 -1
- package/assets/Text.4756effe.css +0 -1
- package/assets/Textarea.eecf04b3.css +0 -1
- package/assets/Title.60d50d3e.css +0 -1
- package/asterisk.91abccec.js +0 -8
- package/button.89b2675b.js +0 -135
- package/buttonround.c60c8034.js +0 -118
- package/checkbox.7d414047.js +0 -112
- package/checkboxgroup.e9e25471.js +0 -78
- package/chunks/360.3f3132d9.js +0 -11
- package/chunks/CustomReactSelect.9d0a378a.js +0 -5011
- package/chunks/Link.module.b8230547.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.f98a4472.js +0 -45
- package/customreactselect.a53f9932.js +0 -13
- package/fieldset.fb7b7e49.js +0 -98
- package/floatingactionbutton.281b5465.js +0 -87
- package/heading.cb7698f4.js +0 -44
- package/icon.b4211784.js +0 -215
- package/input.abb902e3.js +0 -228
- package/inputpassword.11c12c66.js +0 -139
- package/inputsearch.0c88e71a.js +0 -188
- package/inputstepper.b74dac4d.js +0 -284
- package/link.cd3720d1.js +0 -84
- package/linkstandalone.26b52de0.js +0 -80
- package/optioncheckbox.7195f001.js +0 -43
- package/radio.1b205d64.js +0 -79
- package/radiogroup.6a22fe96.js +0 -100
- package/select.2ff31eab.js +0 -188
- package/spinner.ee015469.js +0 -58
- package/styles/fonts/STIHLContrafaceDisplayTitling.woff +0 -0
- package/styles/fonts/STIHLContrafaceDisplayTitling.woff2 +0 -0
- package/styles/fonts/STIHLContrafaceText-Bold.woff +0 -0
- package/styles/fonts/STIHLContrafaceText-Bold.woff2 +0 -0
- package/styles/fonts/STIHLContrafaceText.woff +0 -0
- package/styles/fonts/STIHLContrafaceText.woff2 +0 -0
- package/switch.2f011fcc.js +0 -65
- package/systemfeedback.6bbd1505.js +0 -25
- package/text.8d80704f.js +0 -57
- package/textarea.e156b0ce.js +0 -189
- package/title.d855a8e4.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,32 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import { j as a } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as o } from "./chunks/index.
|
|
4
|
-
const
|
|
5
|
-
anchor:
|
|
6
|
-
svg:
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"svg-background": "_svg-
|
|
10
|
-
svgBackground: d,
|
|
11
|
-
"svg-background--dark": "_svg-background--dark_115us_99",
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as a } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as o } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import './assets/logo.pETQEsvZ.css';const d = "_anchor_q0uqp_76", e = "_svg_q0uqp_77", k = "_svg-background_q0uqp_117", u = "_svg-background--dark_q0uqp_120", x = "_svg-text_q0uqp_123", q = "_svg-text--dark_q0uqp_126", s = {
|
|
5
|
+
anchor: d,
|
|
6
|
+
svg: e,
|
|
7
|
+
"svg-background": "_svg-background_q0uqp_117",
|
|
8
|
+
svgBackground: k,
|
|
9
|
+
"svg-background--dark": "_svg-background--dark_q0uqp_120",
|
|
12
10
|
svgBackgroundDark: u,
|
|
13
|
-
"svg-text": "_svg-
|
|
11
|
+
"svg-text": "_svg-text_q0uqp_123",
|
|
14
12
|
svgText: x,
|
|
15
|
-
"svg-text--dark": "_svg-text--
|
|
16
|
-
svgTextDark:
|
|
17
|
-
},
|
|
13
|
+
"svg-text--dark": "_svg-text--dark_q0uqp_126",
|
|
14
|
+
svgTextDark: q
|
|
15
|
+
}, m = ({
|
|
18
16
|
aria: n,
|
|
19
|
-
className:
|
|
20
|
-
href:
|
|
21
|
-
target:
|
|
22
|
-
theme:
|
|
23
|
-
|
|
17
|
+
className: t,
|
|
18
|
+
href: g,
|
|
19
|
+
target: l = "_self",
|
|
20
|
+
theme: v = "light",
|
|
21
|
+
variant: _ = "standard",
|
|
22
|
+
...h
|
|
24
23
|
}) => {
|
|
25
|
-
const
|
|
24
|
+
const r = _ === "background" || v === "dark", c = /* @__PURE__ */ a.jsxs(
|
|
26
25
|
"svg",
|
|
27
26
|
{
|
|
28
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
-
className: o(s.svg, !
|
|
28
|
+
className: o(s.svg, !g && t),
|
|
30
29
|
viewBox: "0 0 408 179",
|
|
31
30
|
width: "100%",
|
|
32
31
|
height: "100%",
|
|
@@ -35,34 +34,32 @@ const v = "_anchor_115us_25", k = "_svg_115us_26", e = "_anchor--dark_115us_65",
|
|
|
35
34
|
/* @__PURE__ */ a.jsx(
|
|
36
35
|
"path",
|
|
37
36
|
{
|
|
38
|
-
className:
|
|
37
|
+
className: r ? s.svgBackgroundDark : s.svgBackground,
|
|
39
38
|
d: "M408 0H0v179h408V0Z"
|
|
40
39
|
}
|
|
41
40
|
),
|
|
42
41
|
/* @__PURE__ */ a.jsx(
|
|
43
42
|
"path",
|
|
44
43
|
{
|
|
45
|
-
className:
|
|
44
|
+
className: r ? s.svgTextDark : s.svgText,
|
|
46
45
|
d: "M195.459 56.314h-61.656l-4.936 16.193h20.668l-15.304 50.179h20.106l15.293-50.18h20.893l4.936-16.192ZM62.286 66.62l-5.353 17.558c-2.384 7.814 1.957 13.531 9.637 13.531h25.065a1.626 1.626 0 0 1 1.288.7 1.638 1.638 0 0 1 .207 1.454l-1.349 4.42a3.37 3.37 0 0 1-2.8 2.154H49.624l-4.993 16.249h50.816c5.622 0 10.39-2.605 12.842-10.645l5.094-16.677c2.406-7.894-2.081-13.532-9.086-13.532H79.108c-1.394 0-1.945-1.015-1.563-2.255l1.35-4.42a3.385 3.385 0 0 1 1.185-1.872 3.368 3.368 0 0 1 2.087-.733h36.253l4.937-16.193H75.251c-6.87-.045-11.155 4.364-12.965 10.261ZM320.571 106.493l15.304-50.18h-20.218l-20.23 66.373h63.017l4.936-16.193h-42.809ZM282.653 56.314l-7.771 25.484H250.83l7.77-25.484h-19.319l-20.23 66.372h19.308l7.736-25.372h24.053l-7.725 25.372h19.836l20.23-66.372h-19.836ZM205.917 56.314l-20.229 66.372h20.218l20.23-66.372h-20.219Z"
|
|
47
46
|
}
|
|
48
47
|
)
|
|
49
48
|
]
|
|
50
49
|
}
|
|
51
50
|
);
|
|
52
|
-
return
|
|
51
|
+
return g ? /* @__PURE__ */ a.jsx(
|
|
53
52
|
"a",
|
|
54
53
|
{
|
|
55
|
-
className: o(s.anchor,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
href: r,
|
|
59
|
-
target: h,
|
|
54
|
+
className: o(s.anchor, t),
|
|
55
|
+
href: g,
|
|
56
|
+
target: l,
|
|
60
57
|
...n,
|
|
61
|
-
...
|
|
62
|
-
children:
|
|
58
|
+
...h,
|
|
59
|
+
children: c
|
|
63
60
|
}
|
|
64
|
-
) :
|
|
61
|
+
) : c;
|
|
65
62
|
};
|
|
66
63
|
export {
|
|
67
|
-
|
|
64
|
+
m as DSLogo
|
|
68
65
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "./button.DH0h6uPs.js";
|
|
5
|
+
import "./chunks/Icon.C2o2seDb.js";
|
|
6
|
+
import { D as e } from "./chunks/Notification.BhwbaXqk.js";
|
|
7
|
+
export {
|
|
8
|
+
e as DSNotification
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Notification/Notification'
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as s } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { D as _ } from "./chunks/Icon.C2o2seDb.js";
|
|
5
|
+
import './assets/optioncheckbox.BJJAph5_.css';const l = "_root_oj6mx_151", i = "_root--disabled_oj6mx_172", k = "_checkbox_oj6mx_176", d = "_icon-check_oj6mx_192", n = "_checkbox--checked_oj6mx_213", r = "_checkbox--disabled_oj6mx_216", m = "_label_oj6mx_233", c = {
|
|
6
|
+
root: l,
|
|
7
|
+
"root--disabled": "_root--disabled_oj6mx_172",
|
|
8
|
+
rootDisabled: i,
|
|
9
|
+
checkbox: k,
|
|
10
|
+
"icon-check": "_icon-check_oj6mx_192",
|
|
11
|
+
iconCheck: d,
|
|
12
|
+
"checkbox--checked": "_checkbox--checked_oj6mx_213",
|
|
13
|
+
checkboxChecked: n,
|
|
14
|
+
"checkbox--disabled": "_checkbox--disabled_oj6mx_216",
|
|
15
|
+
checkboxDisabled: r,
|
|
16
|
+
label: m
|
|
17
|
+
}, D = ({
|
|
18
|
+
label: x,
|
|
19
|
+
checked: h,
|
|
20
|
+
className: a,
|
|
21
|
+
disabled: e
|
|
22
|
+
}) => {
|
|
23
|
+
const b = s(c.root, {
|
|
24
|
+
[c.rootDisabled]: e
|
|
25
|
+
}), t = s(c.checkbox, {
|
|
26
|
+
[c.checkboxDisabled]: e,
|
|
27
|
+
[c.checkboxChecked]: h
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ o.jsx("div", { className: a, children: /* @__PURE__ */ o.jsxs("div", { className: b, children: [
|
|
30
|
+
/* @__PURE__ */ o.jsx("span", { className: t, children: /* @__PURE__ */ o.jsx(
|
|
31
|
+
_,
|
|
32
|
+
{
|
|
33
|
+
name: "check",
|
|
34
|
+
className: c.iconCheck,
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
}
|
|
37
|
+
) }),
|
|
38
|
+
/* @__PURE__ */ o.jsx("span", { className: c.label, children: x })
|
|
39
|
+
] }) });
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
D as OptionCheckbox
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stihl-design-system/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-RC.
|
|
4
|
+
"version": "1.0.0-RC.10",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://main--63440bbb95889041542a5ba3.chromatic.com",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"stihl",
|
|
9
|
+
"design",
|
|
10
|
+
"system",
|
|
11
|
+
"web",
|
|
12
|
+
"component",
|
|
13
|
+
"library",
|
|
14
|
+
"react"
|
|
15
|
+
],
|
|
7
16
|
"publishConfig": {
|
|
8
17
|
"access": "public",
|
|
9
18
|
"@stihl-design-system:registry": "https://registry.npmjs.org"
|
|
@@ -40,7 +49,7 @@
|
|
|
40
49
|
"dev": "npm run storybook",
|
|
41
50
|
"prebuild": "npm run build:propsOverview",
|
|
42
51
|
"build": "npm run build:components && npm run build:storybook",
|
|
43
|
-
"build:components": "tsc && vite build && npm run build:copyUtilitiesBuild && npm run build:copyTypes && cp package.json ./dist",
|
|
52
|
+
"build:components": "tsc && vite build && npm run build:copyUtilitiesBuild && npm run build:copyTypes && cp package.json ./dist && npx vite-node scripts/cleanDistPackageJSON.ts",
|
|
44
53
|
"build:copyComponents": "npm run build:components && ../../copyDistToExampleApps.sh '../../'",
|
|
45
54
|
"build:copyTypes": "TARGET=./dist/types && rm -rf $TARGET && mkdir -p $TARGET && cp -r ./src/types/* $TARGET/",
|
|
46
55
|
"build:copyUtilitiesBuild": "npm run build:copyUtilitiesBuild:scss && npm run build:copyUtilitiesBuild:fonts && npm run build:copyUtilitiesBuild:partials",
|
|
@@ -48,10 +57,10 @@
|
|
|
48
57
|
"build:copyUtilitiesBuild:fonts": "TARGET=./dist/styles/fonts && rm -rf $TARGET && mkdir -p $TARGET && cp -r ../utilities/dist/fonts/* $TARGET/",
|
|
49
58
|
"build:copyUtilitiesBuild:partials": "TARGET=./dist/partials && rm -rf $TARGET && mkdir -p $TARGET && cp -r ../utilities/dist/partials/* $TARGET/",
|
|
50
59
|
"build:storybook": "storybook build",
|
|
51
|
-
"build:propsOverview": "
|
|
60
|
+
"build:propsOverview": "npx vite-node scripts/generatePropsOverview.ts",
|
|
52
61
|
"release": "cp package.json LICENSE.md README.md ./dist && cd dist && npm publish",
|
|
53
62
|
"preview": "vite preview",
|
|
54
|
-
"storybook": "storybook dev -p 6006",
|
|
63
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
55
64
|
"sync": "npm run build && anima-storybook sync",
|
|
56
65
|
"lint": "eslint -c .eslintrc.cjs './src/**/*.{ts,tsx}'",
|
|
57
66
|
"pretest:smoke": "npm run build:components && npm run build:propsOverview",
|
|
@@ -65,61 +74,67 @@
|
|
|
65
74
|
"test:vrt": "npx playwright test --config=playwright.config.vrt.ts"
|
|
66
75
|
},
|
|
67
76
|
"devDependencies": {
|
|
68
|
-
"@babel/core": "^7.
|
|
77
|
+
"@babel/core": "^7.24.9",
|
|
78
|
+
"@emotion/react": "^11.11.4",
|
|
79
|
+
"@emotion/styled": "^11.11.0",
|
|
69
80
|
"@juggle/resize-observer": "^3.4.0",
|
|
70
|
-
"@playwright/test": "^1.
|
|
81
|
+
"@playwright/test": "^1.46.0",
|
|
71
82
|
"@react-docgen/cli": "^2.0.3",
|
|
72
|
-
"@storybook/addon-a11y": "^8.
|
|
73
|
-
"@storybook/addon-actions": "^8.
|
|
74
|
-
"@storybook/addon-essentials": "^8.
|
|
75
|
-
"@storybook/addon-interactions": "^8.
|
|
76
|
-
"@storybook/addon-links": "^8.
|
|
77
|
-
"@storybook/blocks": "^8.
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
83
|
+
"@storybook/addon-a11y": "^8.2.4",
|
|
84
|
+
"@storybook/addon-actions": "^8.2.4",
|
|
85
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
86
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
87
|
+
"@storybook/addon-links": "^8.2.4",
|
|
88
|
+
"@storybook/blocks": "^8.2.4",
|
|
89
|
+
"@storybook/core-events": "^8.2.4",
|
|
90
|
+
"@storybook/manager-api": "^8.2.4",
|
|
91
|
+
"@storybook/preview-api": "^8.2.4",
|
|
92
|
+
"@storybook/react": "^8.2.4",
|
|
93
|
+
"@storybook/react-vite": "^8.2.4",
|
|
94
|
+
"@storybook/test": "^8.2.4",
|
|
95
|
+
"@storybook/test-runner": "^0.19.1",
|
|
96
|
+
"@storybook/theming": "^8.2.4",
|
|
97
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
98
|
+
"@testing-library/react": "^16.0.0",
|
|
99
|
+
"@types/node": "^20.14.10",
|
|
100
|
+
"@types/react": "^18.3.3",
|
|
101
|
+
"@types/react-dom": "^18.3.0",
|
|
102
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
104
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
105
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
91
106
|
"anima-storybook-cli": "^0.13.1",
|
|
92
|
-
"axe-playwright": "^
|
|
107
|
+
"axe-playwright": "^2.0.1",
|
|
93
108
|
"babel-loader": "^9.1.3",
|
|
94
|
-
"change-case": "^5.
|
|
95
|
-
"classnames": "^2.
|
|
109
|
+
"change-case": "^5.4.4",
|
|
110
|
+
"classnames": "^2.5.1",
|
|
96
111
|
"concurrently": "^8.2.2",
|
|
97
|
-
"eslint": "^8.
|
|
112
|
+
"eslint": "^8.57.0",
|
|
98
113
|
"eslint-plugin-react": "^7.33.2",
|
|
99
114
|
"eslint-plugin-storybook": "^0.8.0",
|
|
100
|
-
"globby": "^
|
|
115
|
+
"globby": "^14.0.2",
|
|
101
116
|
"http-server": "^14.1.1",
|
|
102
|
-
"jsdom": "^
|
|
103
|
-
"react": "^18.
|
|
117
|
+
"jsdom": "^24.1.0",
|
|
118
|
+
"react": "^18.3.1",
|
|
104
119
|
"react-docgen": "^7.0.3",
|
|
105
|
-
"react-dom": "^18.
|
|
106
|
-
"react-intersection-observer": "^9.
|
|
120
|
+
"react-dom": "^18.3.1",
|
|
121
|
+
"react-intersection-observer": "^9.13.0",
|
|
107
122
|
"react-syntax-highlighter": "^15.5.0",
|
|
108
|
-
"sass": "^1.
|
|
109
|
-
"storybook": "^8.
|
|
110
|
-
"typescript": "^5.
|
|
111
|
-
"vite": "^
|
|
112
|
-
"vite-plugin-dts": "^3.
|
|
123
|
+
"sass": "^1.77.8",
|
|
124
|
+
"storybook": "^8.2.4",
|
|
125
|
+
"typescript": "^5.4.5",
|
|
126
|
+
"vite": "^5.3.4",
|
|
127
|
+
"vite-plugin-dts": "^3.9.1",
|
|
113
128
|
"vite-plugin-eslint": "^1.8.1",
|
|
114
|
-
"vite-plugin-lib-inject-css": "^1.
|
|
115
|
-
"vite-plugin-svgr": "^
|
|
116
|
-
"vitest": "^0.
|
|
129
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
130
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
131
|
+
"vitest": "^2.0.3"
|
|
117
132
|
},
|
|
118
133
|
"peerDependencies": {
|
|
119
|
-
"classnames": "^2.
|
|
134
|
+
"classnames": "^2.5.1",
|
|
120
135
|
"react": ">=17.0.0 <19.0.0",
|
|
121
136
|
"react-dom": ">=17.0.0 <19.0.0",
|
|
122
|
-
"react-intersection-observer": "^9.
|
|
137
|
+
"react-intersection-observer": "^9.10.2",
|
|
123
138
|
"react-select": "^5.8.0"
|
|
124
139
|
}
|
|
125
140
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" fill="none"><g clip-path="url(#a)"><path fill="#fff" d="M0 0h512v512H0z"/><mask id="b" width="512" height="512" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M512 0H0v512h512V0Z"/></mask><g mask="url(#b)"><path fill="#F37A1F" d="M517-5H-5v522h522V-5Z"/></g><mask id="d" width="320" height="349" x="95" y="81" maskUnits="userSpaceOnUse" style="mask-type:luminance"><mask id="c" width="512" height="512" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M512 0H0v512h512V0Z"/></mask><g mask="url(#c)"><path fill="#fff" d="M366.8 304.04c-17.69 35.56-54.39 60.01-96.8 60.04-57.87.04-105.97-46.12-108.17-103.95-2.35-61.65 46.94-112.38 108.08-112.38 42.34 0 78.99 24.33 96.75 59.77l48.01-48.01C383.36 112.57 329.82 81.73 269.1 82c-96.25.44-174.4 80.08-173.09 176.33 1.28 94.95 78.65 171.51 173.9 171.51 60.49 0 113.77-30.89 144.93-77.76l-48.04-48.04Z"/></g></mask><g mask="url(#d)"><path fill="#fff" d="M419.85 77H91v357.84h328.85V77Z"/></g><mask id="f" width="133" height="173" x="224" y="169" maskUnits="userSpaceOnUse" style="mask-type:luminance"><mask id="e" width="512" height="512" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M512 0H0v512h512V0Z"/></mask><g mask="url(#e)"><path fill="#fff" d="M320.14 257.37c-.92-.92-.92-2.41 0-3.32l36.3-36.3c-9.38-21.21-26.31-38.31-47.39-47.92l-84.21 84.21c-.92.91-.92 2.4 0 3.32l84.5 84.5c21.05-9.67 37.93-26.83 47.23-48.07l-36.43-36.43"/></g></mask><g mask="url(#f)"><path fill="#fff" d="M361.56 164.84H219.14v182.04h142.42V164.84Z"/></g></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h512v512H0z"/></clipPath></defs></svg>
|
package/partials/copyAssets.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
const NEXT_WITH_APP_ROUTER_MODE = 'nextWithAppRouter';
|
|
3
|
+
export const NEXT_WITH_APP_ROUTER_MODE = 'nextWithAppRouter';
|
|
4
|
+
export const SUPPORTED_PRODUCTS = ['imow', 'mystihl', 'connected'];
|
|
4
5
|
|
|
5
6
|
const copyFile = (source, destination) => {
|
|
6
7
|
try {
|
|
@@ -11,7 +12,13 @@ const copyFile = (source, destination) => {
|
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
14
|
|
|
14
|
-
const copyAssets = (copyDirectory, mode) => {
|
|
15
|
+
export const copyAssets = (copyDirectory, mode, product) => {
|
|
16
|
+
if (product !== 'default' && !SUPPORTED_PRODUCTS.includes(product)) {
|
|
17
|
+
throw new Error(
|
|
18
|
+
`[STIHL Design System] - [Meta Icons]: You passed the product name "${product}" as an argument, which is not supported. Supported product name arguments are: [${SUPPORTED_PRODUCTS.join(', ')}]. Please check our Meta Icons Partial documentation: https://main--63440bbb95889041542a5ba3.chromatic.com/?path=/docs/utilities-partials-meta-icons--documentation`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
// Define the source and destination directories
|
|
16
23
|
const sourceDir = path.resolve(
|
|
17
24
|
'node_modules',
|
|
@@ -26,11 +33,11 @@ const copyAssets = (copyDirectory, mode) => {
|
|
|
26
33
|
|
|
27
34
|
// Array of file names to copy
|
|
28
35
|
const filesToCopy = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
`${product}-apple-icon.png`,
|
|
37
|
+
`${product}-favicon.ico`,
|
|
38
|
+
`${product}-icon-192.png`,
|
|
39
|
+
`${product}-icon-512.png`,
|
|
40
|
+
`${product}-icon.svg`,
|
|
34
41
|
mode === NEXT_WITH_APP_ROUTER_MODE
|
|
35
42
|
? 'manifest.json'
|
|
36
43
|
: 'manifest.webmanifest',
|
|
@@ -49,21 +56,23 @@ const copyAssets = (copyDirectory, mode) => {
|
|
|
49
56
|
let fileName = file;
|
|
50
57
|
// adjustments for next with app router
|
|
51
58
|
if (mode === NEXT_WITH_APP_ROUTER_MODE) {
|
|
52
|
-
if (file ===
|
|
59
|
+
if (file === `${product}-icon-192.png`) {
|
|
53
60
|
fileName = 'icon2.png';
|
|
54
|
-
} else if (file ===
|
|
61
|
+
} else if (file === `${product}-icon-512.png`) {
|
|
55
62
|
fileName = 'icon1.png';
|
|
56
63
|
} else if (file === 'manifest.json') {
|
|
57
64
|
fileName = 'manifest.webmanifest';
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
|
-
|
|
67
|
+
|
|
68
|
+
// remove product from final file name
|
|
69
|
+
const destFile = path.join(destDir, fileName.replace(`${product}-`, ''));
|
|
61
70
|
|
|
62
71
|
if (fs.existsSync(sourceFile)) {
|
|
63
72
|
copyFile(sourceFile, destFile);
|
|
64
73
|
console.log(`Copied ${file} to ${destDir}`);
|
|
65
74
|
} else {
|
|
66
|
-
|
|
75
|
+
throw Error(`Source file ${sourceFile} does not exist.`);
|
|
67
76
|
}
|
|
68
77
|
});
|
|
69
78
|
console.log('\x1b[32m%s\x1b[0m', 'SUCCESS - Copying Meta Icon Assets');
|
|
@@ -74,11 +83,14 @@ const args = process.argv;
|
|
|
74
83
|
// Extract directory argument
|
|
75
84
|
const dirArg = args.find((arg) => arg.startsWith('--dir='));
|
|
76
85
|
const copyDirectory = dirArg ? dirArg.replace('--dir=', '') : './';
|
|
86
|
+
// Extract product argument
|
|
87
|
+
const productArg = args.find((arg) => arg.startsWith('--product='));
|
|
88
|
+
const product = productArg ? productArg.replace('--product=', '') : 'default';
|
|
77
89
|
|
|
78
90
|
const modeArg = args.find((arg) => arg.startsWith('--mode='));
|
|
79
91
|
const mode = modeArg ? modeArg.replace('--mode=', '') : undefined;
|
|
80
92
|
try {
|
|
81
|
-
copyAssets(copyDirectory, mode);
|
|
82
|
-
} catch (
|
|
93
|
+
copyAssets(copyDirectory, mode, product);
|
|
94
|
+
} catch (error) {
|
|
83
95
|
console.error('ERROR - Copying Meta Icon Assets:', error);
|
|
84
96
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none"><path fill="#F37A1F" d="M0 0h32v32H0z"/><path fill="#fff" d="M19.122 16.501c-.224-.152-.489-.152-.753-.152h-2.636c-.52 0-.998.06-1.13.488-.092.305-.855 2.87-1.12 3.664-.04.122-.06.234-.06.326 0 .295.162.448.304.55.214.152.489.152.754.152h2.636c.519 0 .987-.061 1.12-.488.09-.316.864-2.87 1.129-3.664a.963.963 0 0 0 .05-.316c0-.295-.162-.458-.294-.56Zm-1.364 1.252-.733 2.382c-.05.132-.163.132-.234.132h-1.547c-.163 0-.193-.061-.163-.163l.743-2.381c.04-.143.153-.133.224-.133h1.557c.153 0 .183.061.153.163ZM24.475 19.433l-.03-3.084H23.04l-1.75 3.002-.02-3.002h-1.334l.01 5.18h1.608l1.588-2.84-.03 2.84h1.669l3.226-5.18h-1.71l-1.822 3.084ZM3.723 16.349l-.39 1.26h1.538l.389-1.26H3.723ZM2.125 21.529h1.537l.987-3.202H3.113l-.988 3.202ZM11.295 16.349l-1.903 3.043-.153-3.043H6.817l-1.639 5.18h1.486l1.221-3.888.214 3.888h1.364l2.504-3.888-1.211 3.888h1.486l1.598-5.18h-2.545ZM29.104 16.034a.76.76 0 0 0-.771.771.76.76 0 0 0 .77.772.76.76 0 0 0 .772-.772.76.76 0 0 0-.771-.77Zm0 1.433a.646.646 0 0 1-.651-.662c0-.369.277-.661.65-.661.374 0 .652.292.652.662 0 .369-.278.661-.651.661Z"/><path fill="#fff" d="M29.456 16.606c0-.16-.089-.247-.29-.247h-.342v.892h.11v-.396h.184l.251.396h.129l-.266-.396c.12-.02.224-.091.224-.249Zm-.377.156h-.145v-.31h.2c.109 0 .212.03.212.154 0 .151-.132.156-.267.156ZM7.753 13.047l1.615-2.578h2.163l-1.353 4.394H8.917l1.024-3.297-2.121 3.297H6.662l-.183-3.297-1.036 3.297H4.182l1.343-4.394h2.1l.128 2.578ZM14.589 10.469H16.1l-2.428 2.907-.455 1.487h-1.304l.463-1.506-.664-2.888h1.213l.323 1.664 1.34-1.664Z"/></svg>
|