@stihl-design-system/components 1.0.0-RC.1 → 1.0.0-RC.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Klarna.svg +1 -0
- package/Mastercard.svg +2 -0
- package/Notification-additional-information.jpeg +0 -0
- package/Notification-confirm-error.jpg +0 -0
- package/Notification-confirm-warn.jpeg +0 -0
- package/Notification-overview.jpeg +0 -0
- package/Notification-success.jpeg +0 -0
- package/PayPal.svg +2 -0
- package/Placeholder.svg +1 -0
- package/README.md +1 -10
- package/Visa.svg +2 -0
- package/accordion.CEKQh-7i.js +10 -0
- package/accordion.d.ts +2 -0
- package/arialiveregions.BKpxxK7O.js +27 -0
- package/arialiveregions.d.ts +2 -0
- package/assets/Accordion.DMEFgtQm.css +1 -0
- package/assets/CheckboxGroup.Bz3_xkZU.css +1 -0
- package/assets/Chip.D10_7Q82.css +1 -0
- package/assets/CustomReactSelect.D5XKd9vg.css +1 -0
- package/assets/Dialog.B0pucIEI.css +1 -0
- package/assets/Drawer.CATBzfY7.css +1 -0
- package/assets/Fieldset.CwDhKRUL.css +1 -0
- package/assets/Icon.Duy_0R8w.css +1 -0
- package/assets/InputPassword.DOAAzj-O.css +1 -0
- package/assets/InputSearch.CxPYaQGZ.css +1 -0
- package/assets/InputStepper.CYYJUu0b.css +1 -0
- package/assets/Notification.mhVFeSGm.css +1 -0
- package/assets/Select.DZKpHV4G.css +1 -0
- package/assets/Textarea.Cp0b7oZp.css +1 -0
- package/assets/Toast.Cz6wYaBv.css +1 -0
- package/assets/arialiveregions.GsGx2USO.css +1 -0
- package/assets/asterisk.DlJ4YtSZ.css +1 -0
- package/assets/button.C9_ejpGG.css +1 -0
- package/assets/buttonround.DTCqRP-0.css +1 -0
- package/assets/checkbox.K4CVYK9g.css +1 -0
- package/assets/chipgroup.BMovtKTy.css +1 -0
- package/assets/flag.DX_lH1v7.css +1 -0
- package/assets/floatingactionbutton.Do-yEH6c.css +1 -0
- package/assets/heading.6bER-Eac.css +1 -0
- package/assets/input.Q5oKkmW2.css +1 -0
- package/assets/link.DhZqkLMP.css +1 -0
- package/assets/linkstandalone.Dwz-_O8q.css +1 -0
- package/assets/logo.pETQEsvZ.css +1 -0
- package/assets/optioncheckbox.C62HtIj5.css +1 -0
- package/assets/radio.-Xxx5wL4.css +1 -0
- package/assets/skiptocontent.CHcqLS7S.css +1 -0
- package/assets/spinner.D_Nnf1ZG.css +1 -0
- package/assets/switch.C1Ei0-z8.css +1 -0
- package/assets/systemfeedback.Sq0bAIyf.css +1 -0
- package/assets/text.DxKFcfY6.css +1 -0
- package/assets/title.f74Bosn-.css +1 -0
- package/asterisk.DDn-yX4P.js +8 -0
- package/asterisk.d.ts +1 -0
- package/button.C5opEJ6x.js +135 -0
- package/button.d.ts +1 -0
- package/buttonround.CUoqRyy0.js +118 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.DETR3e3X.js +112 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.BqD5IV51.js +8 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.B92ew-hk.js +10 -0
- package/chip.d.ts +2 -0
- package/chipgroup.BJrqEfvr.js +175 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/360.CfjUtgxq.js +10 -0
- package/chunks/Accordion.DFwFN8mX.js +125 -0
- package/chunks/AriaLiveRegions.utils.BGSZafnS.js +34 -0
- package/chunks/CheckboxGroup.M3jOjhNf.js +92 -0
- package/chunks/Chip.fMG8wi5K.js +142 -0
- package/chunks/CustomReactSelect.D3jv5-fa.js +3598 -0
- package/chunks/Dialog.Fwr6vLiK.js +148 -0
- package/chunks/Drawer.CKoYzQHd.js +154 -0
- package/chunks/Fieldset.C9K8BYmH.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.C7pNeWGx.js +143 -0
- package/{inputsearch.6e913fc6.js → chunks/InputSearch.B24rcIJ_.js} +70 -66
- package/chunks/InputStepper.CEW-bieQ.js +294 -0
- package/chunks/Notification.BXVN7_Fs.js +93 -0
- package/chunks/RadioGroup.D4UOflwr.js +137 -0
- package/chunks/Select.Ds86q4UC.js +194 -0
- package/chunks/Textarea.DcB8hKnO.js +198 -0
- package/chunks/Toast.DrzxdzVW.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/translate.isa3FHb8.js +11 -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.BeTnbG1m.js +47 -0
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +39 -0
- package/components/Accordion/Accordion.test.d.ts +1 -0
- package/components/Accordion/Accordion.utils.d.ts +14 -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 +32 -17
- package/components/ButtonRound/ButtonRound.d.ts +11 -4
- package/components/Checkbox/Checkbox.d.ts +20 -11
- package/components/CheckboxGroup/CheckboxGroup.d.ts +21 -15
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +2 -2
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +42 -0
- package/components/ChipGroup/ChipGroup.test.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +11 -6
- package/components/Combobox/Combobox.utils.d.ts +9 -3
- package/components/CustomReactSelect/CustomReactSelect.d.ts +38 -26
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +2 -14
- package/components/CustomReactSelect/OptionCheckbox.d.ts +1 -1
- package/components/Dialog/Dialog.d.ts +34 -0
- package/components/Dialog/Dialog.test.d.ts +1 -0
- package/components/Dialog/Dialog.utils.d.ts +11 -0
- package/components/Dialog/Dialog.utils.test.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +39 -0
- package/components/Drawer/Drawer.test.d.ts +1 -0
- package/components/Drawer/Drawer.utils.d.ts +13 -0
- package/components/Drawer/Drawer.utils.test.d.ts +1 -0
- package/components/Fieldset/Fieldset.d.ts +15 -10
- package/components/Fieldset/Fieldset.utils.d.ts +10 -3
- package/components/Flag/Flag.d.ts +23 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +6 -2
- package/components/Heading/Heading.d.ts +13 -7
- package/components/Heading/Heading.utils.d.ts +1 -1
- package/components/Icon/Icon.d.ts +14 -8
- package/components/Icon/Icon.utils.d.ts +3 -6
- package/components/Input/Input.d.ts +36 -23
- package/components/Input/Input.utils.d.ts +1 -1
- package/components/InputPassword/InputPassword.d.ts +34 -17
- package/components/InputPassword/InputPassword.utils.d.ts +1 -1
- package/components/InputSearch/InputSearch.d.ts +33 -18
- package/components/InputSearch/InputSearch.utils.d.ts +1 -1
- package/components/InputStepper/InputStepper.d.ts +46 -23
- package/components/InputStepper/InputStepper.utils.d.ts +1 -1
- package/components/Link/Link.d.ts +32 -20
- package/components/LinkStandalone/LinkStandalone.d.ts +7 -6
- package/components/Logo/Logo.d.ts +17 -9
- package/components/Logo/Logo.utils.d.ts +2 -1
- package/components/Notification/Notification.d.ts +35 -0
- package/components/Notification/Notification.test.d.ts +1 -0
- package/components/Notification/Notification.utils.d.ts +4 -0
- package/components/Radio/Radio.d.ts +30 -13
- package/components/RadioGroup/RadioGroup.d.ts +33 -24
- package/components/RadioGroup/RadioGroup.utils.d.ts +7 -5
- package/components/RadioGroup/RadioGroup.utils.test.d.ts +1 -0
- package/components/Select/Select.d.ts +25 -14
- package/components/Select/Select.utils.d.ts +3 -3
- package/components/SkipToContent/SkipToContent.d.ts +17 -0
- package/components/SkipToContent/SkipToContent.test.d.ts +1 -0
- package/components/Spinner/Spinner.d.ts +10 -6
- package/components/Switch/Switch.d.ts +22 -12
- package/components/SystemFeedback/SystemFeedback.d.ts +4 -4
- package/components/Text/Text.d.ts +16 -8
- package/components/Textarea/Textarea.d.ts +34 -17
- package/components/Textarea/Textarea.utils.d.ts +1 -1
- package/components/Title/Title.d.ts +13 -7
- package/components/Toast/Toast.d.ts +27 -0
- package/components/Toast/Toast.utils.d.ts +14 -0
- package/components/Toast/ToastManager.d.ts +9 -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.d.ts +1 -0
- package/customreactselect.lYJhIeyx.js +13 -0
- package/dialog.d.ts +2 -0
- package/dialog.lGwNQU91.js +9 -0
- package/drawer.DNi5m8wP.js +9 -0
- package/drawer.d.ts +2 -0
- package/fieldset.BqiAjeax.js +11 -0
- package/fieldset.d.ts +1 -0
- package/flag.XJHHSP38.js +43 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.CMpkTdhX.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/heading.CAkraI2D.js +50 -0
- package/heading.d.ts +1 -0
- package/icon.BoMgOmC1.js +8 -0
- package/icon.d.ts +1 -0
- package/index.d.ts +36 -0
- package/index.es.js +178 -46
- package/input.d.ts +1 -0
- package/input.v7qB7wPJ.js +239 -0
- package/inputpassword.CSjh1GU7.js +12 -0
- package/inputpassword.d.ts +1 -0
- package/inputsearch.DyznOWLK.js +13 -0
- package/inputsearch.d.ts +1 -0
- package/inputstepper.3BLb7s0P.js +13 -0
- package/inputstepper.d.ts +1 -0
- package/link.Clk5_BYp.js +116 -0
- package/link.d.ts +1 -0
- package/linkstandalone.BXERmqdN.js +80 -0
- package/linkstandalone.d.ts +1 -0
- package/{logo.e6576fe3.js → logo.CEO6OV7u.js} +31 -34
- package/logo.d.ts +1 -0
- package/notification.0kX1GMaB.js +9 -0
- package/notification.d.ts +2 -0
- package/optioncheckbox.BPN3f6l_.js +43 -0
- package/optioncheckbox.d.ts +1 -0
- package/package.json +64 -53
- 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 +896 -916
- package/partials/lib/partials.d.ts +1 -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.DTZNJzMU.js +115 -0
- package/radio.d.ts +1 -0
- package/radiogroup.SYkZm2DG.js +10 -0
- package/radiogroup.d.ts +1 -0
- package/select.CYbwR3RW.js +12 -0
- package/select.d.ts +1 -0
- package/skiptocontent.DUQWopO4.js +46 -0
- package/skiptocontent.d.ts +2 -0
- package/spinner.D-xrotcu.js +58 -0
- package/spinner.d.ts +1 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/scss/_index.scss +3 -0
- package/styles/scss/lib/_animation.scss +20 -5
- package/styles/scss/lib/_breakpoints.scss +0 -1
- package/styles/scss/lib/_container-query.scss +3 -3
- package/styles/scss/lib/_focus.scss +2 -1
- package/styles/scss/lib/_grid-extended.scss +2 -2
- package/styles/scss/lib/_grid-narrow.scss +2 -0
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +4 -2
- package/styles/scss/lib/_grid-sidebar.scss +35 -45
- package/styles/scss/lib/_grid.scss +15 -13
- package/styles/scss/lib/_heading.scss +61 -7
- package/styles/scss/lib/_helpers.scss +12 -0
- package/styles/scss/lib/_high-contrast.scss +24 -0
- package/styles/scss/lib/_link.scss +65 -91
- package/styles/scss/lib/_media-query.scss +3 -3
- package/styles/scss/lib/_shadow.scss +10 -0
- package/styles/scss/lib/_spacing-dynamic.scss +61 -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.CoNnIhM4.js +65 -0
- package/switch.d.ts +1 -0
- package/systemfeedback.ZzRUAVYX.js +25 -0
- package/systemfeedback.d.ts +1 -0
- package/text.d.ts +1 -0
- package/text.fMcHzVbH.js +57 -0
- package/textarea.DJc527nX.js +12 -0
- package/textarea.d.ts +1 -0
- package/title.LY1ylQsb.js +36 -0
- package/title.d.ts +1 -0
- package/toast.D48GFmp0.js +10 -0
- package/toast.d.ts +2 -0
- package/toastmanager.Dl8-Q3ED.js +119 -0
- package/toastmanager.d.ts +2 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +3 -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/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +1 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +25 -0
- package/utils/vitest.setup.d.ts +4 -0
- package/assets/Asterisk.288a3f48.css +0 -1
- package/assets/Button.c09c516e.css +0 -1
- package/assets/ButtonRound.fd628e54.css +0 -1
- package/assets/Checkbox.cde01607.css +0 -1
- package/assets/CustomReactSelect.cdb5f164.css +0 -1
- package/assets/Fieldset.729910fe.css +0 -1
- package/assets/FloatingActionButton.de295f5d.css +0 -1
- package/assets/Heading.50f5e903.css +0 -1
- package/assets/Icon.8890ee9a.css +0 -1
- package/assets/Input.92913cfe.css +0 -1
- package/assets/InputPassword.d7b9c937.css +0 -1
- package/assets/InputSearch.888f630a.css +0 -1
- package/assets/InputStepper.969db0d2.css +0 -1
- package/assets/Link.75834750.css +0 -1
- package/assets/LinkStandalone.19bdab0d.css +0 -1
- package/assets/Logo.09e48e82.css +0 -1
- package/assets/OptionCheckbox.c56568a3.css +0 -1
- package/assets/Radio.79d98dde.css +0 -1
- package/assets/RadioGroup.8b55ee38.css +0 -1
- package/assets/Select.b9c135c2.css +0 -1
- package/assets/Spinner.af45d460.css +0 -1
- package/assets/Switch.781e3de6.css +0 -1
- package/assets/SystemFeedback.c30264c0.css +0 -1
- package/assets/Text.ac70cc84.css +0 -1
- package/assets/Textarea.12046393.css +0 -1
- package/assets/Title.e9e5a7e6.css +0 -1
- package/asterisk.cb74ea72.js +0 -8
- package/button.87ad387c.js +0 -135
- package/buttonround.ecb24c29.js +0 -118
- package/checkbox.42617f46.js +0 -112
- package/checkboxgroup.fa110fdf.js +0 -78
- package/chunks/360.3f3132d9.js +0 -11
- package/chunks/CustomReactSelect.2e4e7ba0.js +0 -5015
- package/chunks/Link.module.15dedc23.js +0 -37
- package/chunks/RadioGroup.module.59ca486a.js +0 -11
- package/chunks/academic-cap.a6849ffc.js +0 -11
- package/chunks/alarm-clock.542230f3.js +0 -11
- package/chunks/arrow-clockwise.0496f663.js +0 -11
- package/chunks/arrow-counterclockwise.635a0130.js +0 -11
- package/chunks/arrow-down-line.0976611e.js +0 -11
- package/chunks/arrow-down.9780d975.js +0 -11
- package/chunks/arrow-edge.3288acdd.js +0 -11
- package/chunks/arrow-left.ace9c808.js +0 -11
- package/chunks/arrow-out.0499f39e.js +0 -11
- package/chunks/arrow-outline-left.efc33275.js +0 -11
- package/chunks/arrow-right.133feef2.js +0 -11
- package/chunks/arrow-up-arrow-down.b612e9b1.js +0 -11
- package/chunks/arrow-up.3be6430a.js +0 -11
- package/chunks/at.6279d12b.js +0 -11
- package/chunks/barcode-scanner.0a4a314d.js +0 -11
- package/chunks/battery.e1249ee1.js +0 -11
- package/chunks/bell.87fe4f0b.js +0 -11
- package/chunks/bin-open.be4290d8.js +0 -11
- package/chunks/bin.b36466f3.js +0 -11
- package/chunks/bluetooth.54b89b90.js +0 -11
- package/chunks/bookmark.4d5ce4c3.js +0 -11
- package/chunks/burger.1301d91e.js +0 -11
- package/chunks/calendar.ba39a664.js +0 -11
- package/chunks/camera.3bed4f3b.js +0 -11
- package/chunks/cart-check.9fb6abdb.js +0 -11
- package/chunks/cart-plus.fd5c4674.js +0 -11
- package/chunks/cart.7516d35c.js +0 -11
- package/chunks/catalog.bd0c7830.js +0 -11
- package/chunks/certificate.1639c28e.js +0 -11
- package/chunks/chain-link.45025ed0.js +0 -11
- package/chunks/chainsaw.56d43a9f.js +0 -11
- package/chunks/check.a08beeae.js +0 -11
- package/chunks/chevron-down.80b0dc85.js +0 -11
- package/chunks/chevron-left.f5feade0.js +0 -11
- package/chunks/chevron-line-left.17b172d1.js +0 -11
- package/chunks/chevron-line-right.7cd234b7.js +0 -11
- package/chunks/chevron-right.259bc1a3.js +0 -11
- package/chunks/chevron-up.d1335850.js +0 -11
- package/chunks/circle-check-colored.98e13ab9.js +0 -11
- package/chunks/circle-check-inverted.db29ab06.js +0 -11
- package/chunks/circle-info-colored.8da47e36.js +0 -11
- package/chunks/circle-info-inverted.0ed118fb.js +0 -11
- package/chunks/circle-pause.55300d1b.js +0 -11
- package/chunks/circle-stroke.203dd7aa.js +0 -11
- package/chunks/circle.33ec82eb.js +0 -11
- package/chunks/clock.3014a102.js +0 -11
- package/chunks/coffee-cup.98d6531f.js +0 -11
- package/chunks/compare.c76b221b.js +0 -11
- package/chunks/connected-box-mobile.9cd742dd.js +0 -11
- package/chunks/connected-box-stationary.191a3ed0.js +0 -11
- package/chunks/connected-box.fe21c39b.js +0 -11
- package/chunks/cross.fe709ee7.js +0 -11
- package/chunks/diamond-exclamationmark-colored.bf3ffccf.js +0 -11
- package/chunks/diamond-exclamationmark-inverted.b5648587.js +0 -11
- package/chunks/diamond.e962c289.js +0 -11
- package/chunks/diskette.04733444.js +0 -11
- package/chunks/distance.9e6b56ff.js +0 -11
- package/chunks/dots-connected.9869fae1.js +0 -11
- package/chunks/envelope-open.3c3fd714.js +0 -11
- package/chunks/envelope.5c9ff834.js +0 -11
- package/chunks/exclamationmark.92afe58f.js +0 -11
- package/chunks/exit.bde46887.js +0 -11
- package/chunks/eye-closed.0b517bb7.js +0 -11
- package/chunks/eye.8f4b311b.js +0 -11
- package/chunks/facebook.4a040606.js +0 -11
- package/chunks/filter.dee66683.js +0 -11
- package/chunks/finger-double-arrow.9cd4c623.js +0 -11
- package/chunks/flash.15646b5e.js +0 -11
- package/chunks/fullscreen.fdd976fe.js +0 -11
- package/chunks/gear.1f5f6fe9.js +0 -11
- package/chunks/globe.7f419498.js +0 -11
- package/chunks/grid.2c1cdc21.js +0 -11
- package/chunks/guidance.63bebf3e.js +0 -11
- package/chunks/haircross.0ac15319.js +0 -11
- package/chunks/hanger.edc848f4.js +0 -11
- package/chunks/headphones.a023699e.js +0 -11
- package/chunks/heart.d4440641.js +0 -11
- package/chunks/hexagon-arrow-clockwise.98e9b555.js +0 -11
- package/chunks/horizontal-ellipsis.84419429.js +0 -11
- package/chunks/house.70059642.js +0 -11
- package/chunks/imow.3374e620.js +0 -11
- package/chunks/info.1787448e.js +0 -11
- package/chunks/instagram.e12dd682.js +0 -11
- package/chunks/leave-fullscreen.def46043.js +0 -11
- package/chunks/lightbulb.b73d3ebf.js +0 -11
- package/chunks/linkedin.ce0c68cb.js +0 -11
- package/chunks/list-three-rows.ef44c7ef.js +0 -11
- package/chunks/list-two-rows.5ed8f1af.js +0 -11
- package/chunks/loading-spinner.8293421e.js +0 -11
- package/chunks/lock.3cbc8ced.js +0 -11
- package/chunks/magnifying-glass-minus.b0f906e5.js +0 -11
- package/chunks/magnifying-glass-plus.6ffc69c5.js +0 -11
- package/chunks/magnifying-glass.c297e41f.js +0 -11
- package/chunks/map.c96b1dcd.js +0 -11
- package/chunks/minus.7f6676e8.js +0 -11
- package/chunks/mobile.416ee5b0.js +0 -11
- package/chunks/nine-squares.34eeb0d4.js +0 -11
- package/chunks/note-check.aaf92ef9.js +0 -11
- package/chunks/note-plus.e7ab1b93.js +0 -11
- package/chunks/note.cc96375c.js +0 -11
- package/chunks/number-input.076fcf63.js +0 -11
- package/chunks/paperclip.e8831256.js +0 -11
- package/chunks/parcel.75534dbd.js +0 -11
- package/chunks/pause.901567cf.js +0 -11
- package/chunks/pdf.92c1781a.js +0 -11
- package/chunks/pen.ecbcb50d.js +0 -11
- package/chunks/percent.4b7fa587.js +0 -11
- package/chunks/petrol.41999bec.js +0 -11
- package/chunks/phone.3c23c041.js +0 -11
- package/chunks/pin-s.a5519070.js +0 -11
- package/chunks/pin.1137362d.js +0 -11
- package/chunks/pinterest.88763b51.js +0 -11
- package/chunks/placeholder.d6fdaf8f.js +0 -11
- package/chunks/play.dd0f1d8c.js +0 -11
- package/chunks/plug.00f114c4.js +0 -11
- package/chunks/plus.42721ebf.js +0 -11
- package/chunks/printer.5bb7ee0d.js +0 -11
- package/chunks/prohibition-sign.af5616b3.js +0 -11
- package/chunks/questionmark.db94a06d.js +0 -11
- package/chunks/security.2be491e3.js +0 -11
- package/chunks/share.ddae7aef.js +0 -11
- package/chunks/shirt.135d58c1.js +0 -11
- package/chunks/shop.f120426b.js +0 -11
- package/chunks/sound-off.c6f5ed43.js +0 -11
- package/chunks/sound-on.212c36bc.js +0 -11
- package/chunks/speechbubble.9428546e.js +0 -11
- package/chunks/speechbubbles.65cb946e.js +0 -11
- package/chunks/square.452f505f.js +0 -11
- package/chunks/star-half.1458bc5b.js +0 -11
- package/chunks/star.fab17456.js +0 -11
- package/chunks/tag.4d730d72.js +0 -11
- package/chunks/thumbs-down.cbf6e4ec.js +0 -11
- package/chunks/thumbs-up.435754e1.js +0 -11
- package/chunks/triangle-exclamationmark-colored.94025893.js +0 -11
- package/chunks/triangle-exclamationmark-inverted.bc4eed15.js +0 -11
- package/chunks/truck.a904d6d3.js +0 -11
- package/chunks/two-people-screen.3e509922.js +0 -11
- package/chunks/two-sheets.d1cfef0f.js +0 -11
- package/chunks/upload.7f1850a3.js +0 -11
- package/chunks/user.bf5b30a5.js +0 -11
- package/chunks/vertical-ellipsis.1cac00e5.js +0 -11
- package/chunks/wc.9d108bd0.js +0 -11
- package/chunks/wifi-1bar.b6fc33aa.js +0 -11
- package/chunks/wifi-2bars.27e9da59.js +0 -11
- package/chunks/wifi-off.e5daf3a9.js +0 -11
- package/chunks/wifi.40bb915d.js +0 -11
- package/chunks/wind-rose.27fa658a.js +0 -11
- package/chunks/wrench.69493ef3.js +0 -11
- package/chunks/x.d9da4202.js +0 -11
- package/chunks/xing.e17c1a24.js +0 -11
- package/chunks/youtube.dbf50787.js +0 -11
- package/combobox.d93091e0.js +0 -45
- package/customreactselect.7c77375a.js +0 -13
- package/fieldset.fdd84bda.js +0 -98
- package/floatingactionbutton.281b5465.js +0 -87
- package/heading.c02dcb70.js +0 -44
- package/icon.b4211784.js +0 -215
- package/input.064e0bbf.js +0 -230
- package/inputpassword.f76c2f62.js +0 -139
- package/inputstepper.2047ec77.js +0 -286
- package/link.5eb13d6e.js +0 -84
- package/linkstandalone.edfd6288.js +0 -80
- package/optioncheckbox.2369560b.js +0 -43
- package/radio.fd841ab0.js +0 -79
- package/radiogroup.e1c8ea3d.js +0 -100
- package/select.88d40c51.js +0 -188
- package/spinner.ee015469.js +0 -58
- package/switch.96fd1689.js +0 -65
- package/systemfeedback.8515a4e0.js +0 -25
- package/text.de8facb9.js +0 -57
- package/textarea.b8c40c8b.js +0 -189
- package/title.7be43d50.js +0 -36
- /package/chunks/{helpers.ea3ca41a.js → helpers.B1JT5ShS.js} +0 -0
- /package/chunks/{index.8021d3e0.js → index.CvOaL64Y.js} +0 -0
- /package/chunks/{useBreakpoint.6c1b06c2.js → useBreakpoint.5xBNDiCf.js} +0 -0
- /package/partials/{apple-icon.png → default-apple-icon.png} +0 -0
- /package/partials/{favicon.ico → default-favicon.ico} +0 -0
- /package/partials/{icon-192.png → default-icon-192.png} +0 -0
- /package/partials/{icon-512.png → default-icon-512.png} +0 -0
- /package/partials/{icon.svg → default-icon.svg} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Base mixin for text styles
|
|
2
2
|
@mixin base-text($fontFamily, $fontSize, $lineHeight) {
|
|
3
3
|
font-family: #{unquote(
|
|
4
|
-
$fontFamily +
|
|
4
|
+
$fontFamily +
|
|
5
|
+
', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif'
|
|
5
6
|
)};
|
|
6
7
|
font-style: normal;
|
|
7
8
|
font-variant: normal;
|
|
@@ -12,52 +13,98 @@
|
|
|
12
13
|
line-height: $lineHeight;
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
// Mixin for regular text
|
|
17
|
+
@mixin base-text-regular($fontFamily, $fontSize, $lineHeight) {
|
|
18
|
+
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
19
|
+
/* x-height 414 https://vertical-metrics.netlify.app/ */
|
|
20
|
+
font-size-adjust: 0.414;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Mixin for bold text
|
|
24
|
+
@mixin base-text-bold($fontFamily, $fontSize, $lineHeight) {
|
|
25
|
+
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
26
|
+
/* x-height 426 https://vertical-metrics.netlify.app/ */
|
|
27
|
+
font-size-adjust: 0.426;
|
|
28
|
+
}
|
|
29
|
+
|
|
15
30
|
// Mixins for specific text sizes
|
|
16
31
|
@mixin ds-text-large {
|
|
17
|
-
@include base-text(
|
|
32
|
+
@include base-text-regular(
|
|
33
|
+
'STIHL Contraface Digital Text Regular',
|
|
34
|
+
1.25rem,
|
|
35
|
+
1.6
|
|
36
|
+
);
|
|
18
37
|
}
|
|
19
38
|
|
|
20
39
|
@mixin ds-text-large-bold {
|
|
21
|
-
@include base-text('STIHL Contraface Digital Text Bold', 1.25rem, 1.6);
|
|
40
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 1.25rem, 1.6);
|
|
22
41
|
}
|
|
23
42
|
|
|
24
43
|
@mixin ds-text-medium {
|
|
25
|
-
@include base-text(
|
|
44
|
+
@include base-text-regular(
|
|
45
|
+
'STIHL Contraface Digital Text Regular',
|
|
46
|
+
1rem,
|
|
47
|
+
1.5
|
|
48
|
+
);
|
|
26
49
|
}
|
|
27
50
|
|
|
28
51
|
@mixin ds-text-medium-bold {
|
|
29
|
-
@include base-text('STIHL Contraface Digital Text Bold', 1rem, 1.5);
|
|
52
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 1rem, 1.5);
|
|
30
53
|
}
|
|
31
54
|
|
|
32
55
|
@mixin ds-text-small {
|
|
33
|
-
@include base-text(
|
|
56
|
+
@include base-text-regular(
|
|
57
|
+
'STIHL Contraface Digital Text Regular',
|
|
58
|
+
0.875rem,
|
|
59
|
+
1.14
|
|
60
|
+
);
|
|
34
61
|
}
|
|
35
62
|
|
|
36
63
|
@mixin ds-text-small-bold {
|
|
37
|
-
@include base-text('STIHL Contraface Digital Text Bold', 0.875rem, 1.14);
|
|
64
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 0.875rem, 1.14);
|
|
38
65
|
}
|
|
39
66
|
|
|
40
67
|
@mixin ds-text-x-small {
|
|
41
|
-
@include base-text(
|
|
68
|
+
@include base-text-regular(
|
|
69
|
+
'STIHL Contraface Digital Text Regular',
|
|
70
|
+
0.75rem,
|
|
71
|
+
1.33
|
|
72
|
+
);
|
|
42
73
|
}
|
|
43
74
|
|
|
44
75
|
@mixin ds-text-x-small-bold {
|
|
45
|
-
@include base-text('STIHL Contraface Digital Text Bold', 0.75rem, 1.33);
|
|
76
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 0.75rem, 1.33);
|
|
46
77
|
}
|
|
47
78
|
|
|
48
79
|
@mixin ds-text-xx-small {
|
|
49
|
-
@include base-text(
|
|
80
|
+
@include base-text-regular(
|
|
81
|
+
'STIHL Contraface Digital Text Regular',
|
|
82
|
+
0.625rem,
|
|
83
|
+
1.6
|
|
84
|
+
);
|
|
50
85
|
}
|
|
51
86
|
|
|
52
87
|
// Utility text styles
|
|
53
88
|
@mixin ds-utility-medium {
|
|
54
|
-
@include base-text(
|
|
89
|
+
@include base-text-regular(
|
|
90
|
+
'STIHL Contraface Digital Text Regular',
|
|
91
|
+
1rem,
|
|
92
|
+
1.25
|
|
93
|
+
);
|
|
55
94
|
}
|
|
56
95
|
|
|
57
96
|
@mixin ds-utility-medium-bold {
|
|
58
|
-
@include base-text('STIHL Contraface Digital Text Bold', 1rem, 1.25);
|
|
97
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 1rem, 1.25);
|
|
59
98
|
}
|
|
60
99
|
|
|
61
100
|
@mixin ds-utility-small {
|
|
62
|
-
@include base-text(
|
|
101
|
+
@include base-text-regular(
|
|
102
|
+
'STIHL Contraface Digital Text Regular',
|
|
103
|
+
0.875rem,
|
|
104
|
+
1.14
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin ds-utility-small-bold {
|
|
109
|
+
@include base-text-bold('STIHL Contraface Digital Text Bold', 0.875rem, 1.14);
|
|
63
110
|
}
|
|
@@ -70,13 +70,14 @@ $ds-theme-light-background-color-tertiary: $ds-color-core-grey-light;
|
|
|
70
70
|
$ds-theme-light-background-color-transparent-hover: $ds-color-core-black-opacity-10;
|
|
71
71
|
$ds-theme-light-background-color-transparent-pressed: $ds-color-core-black-opacity-10;
|
|
72
72
|
$ds-theme-light-border-color-feedback-error: $ds-color-core-red-base;
|
|
73
|
+
$ds-theme-light-border-color-feedback-info: $ds-color-core-grey-dark;
|
|
73
74
|
$ds-theme-light-border-color-feedback-success: $ds-color-core-green-base;
|
|
74
75
|
$ds-theme-light-border-color-feedback-warning: $ds-color-core-yellow-base;
|
|
75
76
|
$ds-theme-light-border-color-focus: $ds-color-core-grey-ultra-deep;
|
|
76
77
|
$ds-theme-light-border-color-primary-disabled: $ds-color-core-black-opacity-50;
|
|
77
78
|
$ds-theme-light-border-color-primary-inverse: $ds-color-core-white-base;
|
|
78
79
|
$ds-theme-light-border-color-primary: $ds-color-core-grey-ultra-deep;
|
|
79
|
-
$ds-theme-light-border-color-secondary-disabled: $ds-color-core-black-opacity-
|
|
80
|
+
$ds-theme-light-border-color-secondary-disabled: $ds-color-core-black-opacity-10;
|
|
80
81
|
$ds-theme-light-border-color-secondary: $ds-color-core-grey-base;
|
|
81
82
|
$ds-theme-light-border-color-tertiary: $ds-color-core-grey-mid;
|
|
82
83
|
$ds-theme-light-content-color-brand-disabled: $ds-color-core-black-opacity-50;
|
|
@@ -107,10 +108,10 @@ $ds-theme-dark-background-color-brand-disabled: $ds-color-core-grey-mid;
|
|
|
107
108
|
$ds-theme-dark-background-color-brand-hover: $ds-color-core-orange-dark;
|
|
108
109
|
$ds-theme-dark-background-color-brand-pressed: $ds-color-core-orange-dark;
|
|
109
110
|
$ds-theme-dark-background-color-brand: $ds-color-core-orange-base;
|
|
110
|
-
$ds-theme-dark-background-color-feedback-error: $ds-color-core-grey-
|
|
111
|
-
$ds-theme-dark-background-color-feedback-info: $ds-color-core-grey-
|
|
112
|
-
$ds-theme-dark-background-color-feedback-success: $ds-color-core-grey-
|
|
113
|
-
$ds-theme-dark-background-color-feedback-warning: $ds-color-core-grey-
|
|
111
|
+
$ds-theme-dark-background-color-feedback-error: $ds-color-core-grey-deep;
|
|
112
|
+
$ds-theme-dark-background-color-feedback-info: $ds-color-core-grey-deep;
|
|
113
|
+
$ds-theme-dark-background-color-feedback-success: $ds-color-core-grey-deep;
|
|
114
|
+
$ds-theme-dark-background-color-feedback-warning: $ds-color-core-grey-deep;
|
|
114
115
|
$ds-theme-dark-background-color-primary-disabled: $ds-color-core-black-base;
|
|
115
116
|
$ds-theme-dark-background-color-primary-hover: $ds-color-core-grey-deep;
|
|
116
117
|
$ds-theme-dark-background-color-primary-inverse-disabled: $ds-color-core-grey-mid;
|
|
@@ -122,18 +123,19 @@ $ds-theme-dark-background-color-primary: $ds-color-core-black-base;
|
|
|
122
123
|
$ds-theme-dark-background-color-secondary-disabled: $ds-color-core-grey-ultra-deep;
|
|
123
124
|
$ds-theme-dark-background-color-secondary-inverse: $ds-color-core-grey-light;
|
|
124
125
|
$ds-theme-dark-background-color-secondary: $ds-color-core-grey-ultra-deep;
|
|
125
|
-
$ds-theme-dark-background-color-sustainability: $ds-color-core-grey-
|
|
126
|
+
$ds-theme-dark-background-color-sustainability: $ds-color-core-grey-deep;
|
|
126
127
|
$ds-theme-dark-background-color-tertiary: $ds-color-core-grey-ultra-deep;
|
|
127
128
|
$ds-theme-dark-background-color-transparent-hover: $ds-color-core-white-opacity-15;
|
|
128
129
|
$ds-theme-dark-background-color-transparent-pressed: $ds-color-core-white-opacity-15;
|
|
129
130
|
$ds-theme-dark-border-color-feedback-error: $ds-color-core-red-base;
|
|
131
|
+
$ds-theme-dark-border-color-feedback-info: $ds-color-core-grey-dark;
|
|
130
132
|
$ds-theme-dark-border-color-feedback-success: $ds-color-core-green-base;
|
|
131
133
|
$ds-theme-dark-border-color-feedback-warning: $ds-color-core-yellow-base;
|
|
132
134
|
$ds-theme-dark-border-color-focus: $ds-color-core-white-base;
|
|
133
135
|
$ds-theme-dark-border-color-primary-disabled: $ds-color-core-white-opacity-50;
|
|
134
136
|
$ds-theme-dark-border-color-primary-inverse: $ds-color-core-grey-ultra-deep;
|
|
135
137
|
$ds-theme-dark-border-color-primary: $ds-color-core-grey-ultra-light;
|
|
136
|
-
$ds-theme-dark-border-color-secondary-disabled: $ds-color-core-white-opacity-
|
|
138
|
+
$ds-theme-dark-border-color-secondary-disabled: $ds-color-core-white-opacity-15;
|
|
137
139
|
$ds-theme-dark-border-color-secondary: $ds-color-core-grey-dark;
|
|
138
140
|
$ds-theme-dark-border-color-tertiary: $ds-color-core-grey-deep;
|
|
139
141
|
$ds-theme-dark-content-color-brand-disabled: $ds-color-core-white-opacity-50;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import '_animation.scss';
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* This mixin provides a concise way to set transitions with a default
|
|
@@ -7,20 +8,38 @@
|
|
|
7
8
|
* motion and adjusts the transition duration accordingly.
|
|
8
9
|
*
|
|
9
10
|
* Example Usage:
|
|
10
|
-
* @include transition(opacity, transform);
|
|
11
|
+
* @include ds-transition((opacity, transform), '250', 'ease-out');
|
|
12
|
+
* @include ds-transition(width, $easing-key: 'ease-out');
|
|
11
13
|
*/
|
|
12
|
-
@mixin transition($properties
|
|
14
|
+
@mixin ds-transition($properties, $duration-key: '100', $easing-key: 'linear') {
|
|
13
15
|
@if length($properties) == 0 or $properties == null {
|
|
14
|
-
@error "No properties provided for transition mixin.";
|
|
16
|
+
@error "[STIHL Design System] - [ds-transition()]: No properties provided for ds-transition() mixin.";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
$duration: map-get($ds-animation-durations, $duration-key);
|
|
20
|
+
$easing: map-get($ds-animation-easing-functions, $easing-key);
|
|
21
|
+
|
|
22
|
+
@if not map-has-key($ds-animation-durations, $duration-key) {
|
|
23
|
+
@error "[STIHL Design System] - [ds-transition()]: Duration key '#{$duration-key}' is not available in the ds-transition() mixin.";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@if not map-has-key($ds-animation-easing-functions, $easing-key) {
|
|
27
|
+
@error "[STIHL Design System] - [ds-transition()]: Easing key '#{$easing-key}' is not available in the ds-transition() mixin.";
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
$transition-values: ();
|
|
18
31
|
@each $prop in $properties {
|
|
19
|
-
$transition-values: append(
|
|
32
|
+
$transition-values: append(
|
|
33
|
+
$transition-values,
|
|
34
|
+
#{$prop} #{$duration} #{$easing},
|
|
35
|
+
comma
|
|
36
|
+
);
|
|
20
37
|
}
|
|
21
|
-
|
|
38
|
+
& {
|
|
39
|
+
transition: $transition-values;
|
|
22
40
|
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
transition-duration: 0ms;
|
|
43
|
+
}
|
|
25
44
|
}
|
|
26
45
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as b } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { D as y } from "./chunks/Icon.C2o2seDb.js";
|
|
6
|
+
import { DSSpinner as f } from "./spinner.D-xrotcu.js";
|
|
7
|
+
import './assets/switch.C1Ei0-z8.css';const x = "_root_10ymp_76", j = "_root--label-right_10ymp_116", k = "_root--stretched_10ymp_119", S = "_loader_10ymp_129", g = "_thumb_10ymp_187", w = "_root--checked_10ymp_202", o = {
|
|
8
|
+
root: x,
|
|
9
|
+
"root--label-right": "_root--label-right_10ymp_116",
|
|
10
|
+
rootLabelRight: j,
|
|
11
|
+
"root--stretched": "_root--stretched_10ymp_119",
|
|
12
|
+
rootStretched: k,
|
|
13
|
+
switch: "_switch_10ymp_124",
|
|
14
|
+
loader: S,
|
|
15
|
+
thumb: g,
|
|
16
|
+
"root--checked": "_root--checked_10ymp_202",
|
|
17
|
+
rootChecked: w
|
|
18
|
+
}, E = ({
|
|
19
|
+
children: h,
|
|
20
|
+
aria: i,
|
|
21
|
+
alignLabel: l = "left",
|
|
22
|
+
checked: e = !1,
|
|
23
|
+
className: m,
|
|
24
|
+
dataTrackingid: _,
|
|
25
|
+
disabled: s = !1,
|
|
26
|
+
loading: r = !1,
|
|
27
|
+
stretched: n = !1,
|
|
28
|
+
onClick: a,
|
|
29
|
+
...p
|
|
30
|
+
}) => {
|
|
31
|
+
const d = b(o.root, m, {
|
|
32
|
+
[o.rootChecked]: e === !0,
|
|
33
|
+
[o.rootStretched]: n === !0,
|
|
34
|
+
[o.rootLabelRight]: l === "right"
|
|
35
|
+
}), u = (c) => {
|
|
36
|
+
if (s || r) {
|
|
37
|
+
c.preventDefault();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
a && a(c);
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ t.jsxs(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
className: d,
|
|
46
|
+
"data-trackingid": _,
|
|
47
|
+
onClick: u,
|
|
48
|
+
...i,
|
|
49
|
+
...p,
|
|
50
|
+
type: "button",
|
|
51
|
+
role: "switch",
|
|
52
|
+
"aria-checked": e,
|
|
53
|
+
"aria-disabled": s || r,
|
|
54
|
+
"aria-busy": r,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ t.jsx("span", { children: h }),
|
|
57
|
+
!r && /* @__PURE__ */ t.jsx("span", { className: o.switch, children: /* @__PURE__ */ t.jsx("span", { className: o.thumb, children: /* @__PURE__ */ t.jsx(y, { name: "check", "aria-hidden": "true" }) }) }),
|
|
58
|
+
r && /* @__PURE__ */ t.jsx("span", { className: o.loader, children: /* @__PURE__ */ t.jsx(f, { aria: { "aria-label": "Loading state" } }) })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
E as DSSwitch
|
|
65
|
+
};
|
package/switch.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { D as n } from "./chunks/Icon.C2o2seDb.js";
|
|
5
|
+
import './assets/systemfeedback.Sq0bAIyf.css';const i = "_root_10tno_76", l = {
|
|
6
|
+
root: i
|
|
7
|
+
}, m = {
|
|
8
|
+
valid: "circle-check-colored",
|
|
9
|
+
invalid: "diamond-exclamationmark-colored",
|
|
10
|
+
warning: "triangle-exclamationmark-colored"
|
|
11
|
+
}, p = ({
|
|
12
|
+
className: e,
|
|
13
|
+
message: r,
|
|
14
|
+
type: s,
|
|
15
|
+
...t
|
|
16
|
+
}) => {
|
|
17
|
+
const a = c(l.root, e);
|
|
18
|
+
return /* @__PURE__ */ o.jsxs("div", { className: a, ...t, role: "alert", children: [
|
|
19
|
+
/* @__PURE__ */ o.jsx(n, { name: m[s], "aria-hidden": "true" }),
|
|
20
|
+
r
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
p as DSSystemFeedback
|
|
25
|
+
};
|
package/systemfeedback.d.ts
CHANGED
package/text.d.ts
CHANGED
package/text.fMcHzVbH.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as b } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as x } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import './assets/text.DxKFcfY6.css';const c = "_root_112bt_76", n = "_root--large_112bt_82", u = "_root--large-bold_112bt_94", S = "_root--medium_112bt_106", g = "_root--medium-bold_112bt_118", B = "_root--small_112bt_130", i = "_root--small-bold_112bt_142", X = "_root--x-small_112bt_154", k = "_root--x-small-bold_112bt_166", L = "_root--xx-small_112bt_178", M = "_root--theme-dark_112bt_275", o = {
|
|
5
|
+
root: c,
|
|
6
|
+
"root--large": "_root--large_112bt_82",
|
|
7
|
+
rootLarge: n,
|
|
8
|
+
"root--large-bold": "_root--large-bold_112bt_94",
|
|
9
|
+
rootLargeBold: u,
|
|
10
|
+
"root--medium": "_root--medium_112bt_106",
|
|
11
|
+
rootMedium: S,
|
|
12
|
+
"root--medium-bold": "_root--medium-bold_112bt_118",
|
|
13
|
+
rootMediumBold: g,
|
|
14
|
+
"root--small": "_root--small_112bt_130",
|
|
15
|
+
rootSmall: B,
|
|
16
|
+
"root--small-bold": "_root--small-bold_112bt_142",
|
|
17
|
+
rootSmallBold: i,
|
|
18
|
+
"root--x-small": "_root--x-small_112bt_154",
|
|
19
|
+
rootXSmall: X,
|
|
20
|
+
"root--x-small-bold": "_root--x-small-bold_112bt_166",
|
|
21
|
+
rootXSmallBold: k,
|
|
22
|
+
"root--xx-small": "_root--xx-small_112bt_178",
|
|
23
|
+
rootXxSmall: L,
|
|
24
|
+
"root--theme-dark": "_root--theme-dark_112bt_275",
|
|
25
|
+
rootThemeDark: M
|
|
26
|
+
}, h = ({
|
|
27
|
+
children: r,
|
|
28
|
+
className: m,
|
|
29
|
+
size: l = "medium",
|
|
30
|
+
tag: a = "p",
|
|
31
|
+
theme: _ = "light",
|
|
32
|
+
weight: t = "normal",
|
|
33
|
+
...d
|
|
34
|
+
}) => {
|
|
35
|
+
const s = a, e = x(o.root, m, {
|
|
36
|
+
// large
|
|
37
|
+
[o.rootLarge]: l === "large",
|
|
38
|
+
[o.rootLargeBold]: l === "large" && t === "bold",
|
|
39
|
+
// medium
|
|
40
|
+
[o.rootMedium]: l == "medium",
|
|
41
|
+
[o.rootMediumBold]: l === "medium" && t === "bold",
|
|
42
|
+
// small
|
|
43
|
+
[o.rootSmall]: l == "small",
|
|
44
|
+
[o.rootSmallBold]: l == "small" && t === "bold",
|
|
45
|
+
// x-small
|
|
46
|
+
[o.rootXSmall]: l == "x-small",
|
|
47
|
+
[o.rootXSmallBold]: l == "x-small" && t === "bold",
|
|
48
|
+
// xx-small
|
|
49
|
+
[o.rootXxSmall]: l == "xx-small",
|
|
50
|
+
// dark theme
|
|
51
|
+
[o.rootThemeDark]: _ === "dark"
|
|
52
|
+
});
|
|
53
|
+
return /* @__PURE__ */ b.jsx(s, { className: e, ...d, children: r });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
h as DSText
|
|
57
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import "./chunks/helpers.B1JT5ShS.js";
|
|
7
|
+
import "./asterisk.DDn-yX4P.js";
|
|
8
|
+
import "./systemfeedback.ZzRUAVYX.js";
|
|
9
|
+
import { D as x } from "./chunks/Textarea.DcB8hKnO.js";
|
|
10
|
+
export {
|
|
11
|
+
x as DSTextarea
|
|
12
|
+
};
|
package/textarea.d.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as g } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import './assets/title.f74Bosn-.css';const n = "_root_1lq13_76", h = "_root--x-large-uppercase_1lq13_79", m = "_root--large-uppercase_1lq13_96", d = "_root--theme-dark_1lq13_113", u = "_dash_1lq13_116", r = {
|
|
5
|
+
root: n,
|
|
6
|
+
"root--x-large-uppercase": "_root--x-large-uppercase_1lq13_79",
|
|
7
|
+
rootXLargeUppercase: h,
|
|
8
|
+
"root--large-uppercase": "_root--large-uppercase_1lq13_96",
|
|
9
|
+
rootLargeUppercase: m,
|
|
10
|
+
"root--theme-dark": "_root--theme-dark_1lq13_113",
|
|
11
|
+
rootThemeDark: d,
|
|
12
|
+
dash: u
|
|
13
|
+
}, q = ({
|
|
14
|
+
children: a,
|
|
15
|
+
className: t,
|
|
16
|
+
size: e = "x-large",
|
|
17
|
+
tag: s = "h1",
|
|
18
|
+
// Design suggested to set default tag to h1
|
|
19
|
+
theme: p = "light",
|
|
20
|
+
...c
|
|
21
|
+
}) => {
|
|
22
|
+
const l = s, _ = g(r.root, t, {
|
|
23
|
+
// sizes
|
|
24
|
+
[r.rootXLargeUppercase]: e === "x-large",
|
|
25
|
+
[r.rootLargeUppercase]: e === "large",
|
|
26
|
+
// dark theme
|
|
27
|
+
[r.rootThemeDark]: p === "dark"
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ o.jsxs(l, { className: _, ...c, children: [
|
|
30
|
+
a,
|
|
31
|
+
/* @__PURE__ */ o.jsx("span", { className: r.dash, "aria-hidden": "true", children: "ƒ" })
|
|
32
|
+
] });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
q as DSTitle
|
|
36
|
+
};
|
package/title.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./button.C5opEJ6x.js";
|
|
6
|
+
import "./chunks/Icon.C2o2seDb.js";
|
|
7
|
+
import { D as s } from "./chunks/Toast.DrzxdzVW.js";
|
|
8
|
+
export {
|
|
9
|
+
s as DSToast
|
|
10
|
+
};
|
package/toast.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as g } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { createContext as y, useContext as C, useState as S, useRef as O, useEffect as A, useMemo as j } from "react";
|
|
4
|
+
import { g as a } from "./chunks/helpers.B1JT5ShS.js";
|
|
5
|
+
import { b as E, g as w } from "./chunks/AriaLiveRegions.utils.BGSZafnS.js";
|
|
6
|
+
import { D as _, s as U } from "./chunks/Toast.DrzxdzVW.js";
|
|
7
|
+
import { h as q } from "./chunks/has-document.r9i9TxKV.js";
|
|
8
|
+
const Q = () => {
|
|
9
|
+
if (!E() || !w())
|
|
10
|
+
throw new Error(
|
|
11
|
+
a(
|
|
12
|
+
"DSToast",
|
|
13
|
+
'The DSAriaLiveRegions component has to be placed at the root of your application, as close to the "body" as possible, e.g. in your "App.tsx" or "layout.tsx".'
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
}, k = () => {
|
|
17
|
+
if (!q)
|
|
18
|
+
return;
|
|
19
|
+
if (document.querySelectorAll("[data-ds-toast]").length > 1)
|
|
20
|
+
throw new Error(
|
|
21
|
+
a(
|
|
22
|
+
"DSToast",
|
|
23
|
+
'The destructured "toast" element should only be used once in the DOM.'
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}, i = "data-ds-toast-timeout-id", D = "closing", B = 1e4, x = y(void 0), J = () => {
|
|
27
|
+
const n = C(x);
|
|
28
|
+
if (!n)
|
|
29
|
+
throw new Error(
|
|
30
|
+
a(
|
|
31
|
+
"DSToastProvider",
|
|
32
|
+
"useDSToast must be used within a <DSToastProvider />, which wraps around your root component."
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
return n;
|
|
36
|
+
}, K = ({
|
|
37
|
+
children: n
|
|
38
|
+
}) => {
|
|
39
|
+
const [u, c] = S([]), [s, l] = S(null), o = O(null);
|
|
40
|
+
A(() => {
|
|
41
|
+
!s && u.length > 0 && setTimeout(() => {
|
|
42
|
+
l(u[0]);
|
|
43
|
+
});
|
|
44
|
+
}, [u]), A(() => {
|
|
45
|
+
s && (L(s.message, s.variant), I());
|
|
46
|
+
}, [s]);
|
|
47
|
+
const m = () => {
|
|
48
|
+
var e;
|
|
49
|
+
return ((e = o.current) == null ? void 0 : e.getAttribute(i)) || null;
|
|
50
|
+
}, T = (e) => {
|
|
51
|
+
var t;
|
|
52
|
+
(t = o.current) == null || t.setAttribute(i, e);
|
|
53
|
+
}, p = () => {
|
|
54
|
+
var e;
|
|
55
|
+
return (e = o.current) == null ? void 0 : e.removeAttribute(i);
|
|
56
|
+
}, L = (e, t) => {
|
|
57
|
+
if (t === "warning") {
|
|
58
|
+
const r = E();
|
|
59
|
+
r && (r.innerText = e);
|
|
60
|
+
} else if (t === "success" || t === "info") {
|
|
61
|
+
const r = w();
|
|
62
|
+
r && (r.innerText = e);
|
|
63
|
+
}
|
|
64
|
+
}, d = (e, t) => {
|
|
65
|
+
Q();
|
|
66
|
+
const r = {
|
|
67
|
+
message: e,
|
|
68
|
+
hideIcon: t == null ? void 0 : t.hideIcon,
|
|
69
|
+
variant: (t == null ? void 0 : t.variant) || "info",
|
|
70
|
+
onClick: () => {
|
|
71
|
+
v();
|
|
72
|
+
},
|
|
73
|
+
onMouseEnter: M,
|
|
74
|
+
onMouseLeave: R
|
|
75
|
+
};
|
|
76
|
+
c((P) => [...P, r]);
|
|
77
|
+
}, M = () => {
|
|
78
|
+
f();
|
|
79
|
+
}, f = () => {
|
|
80
|
+
var t;
|
|
81
|
+
const e = m();
|
|
82
|
+
e && (clearTimeout(e), (t = o.current) == null || t.removeAttribute(i));
|
|
83
|
+
}, h = () => {
|
|
84
|
+
const e = setTimeout(() => {
|
|
85
|
+
v();
|
|
86
|
+
}, B);
|
|
87
|
+
T(String(e));
|
|
88
|
+
}, R = () => {
|
|
89
|
+
m() !== D && o.current && h();
|
|
90
|
+
}, I = () => {
|
|
91
|
+
var e;
|
|
92
|
+
k(), s && ((e = o.current) != null && e.showPopover) && (o.current.showPopover(), h());
|
|
93
|
+
}, v = () => {
|
|
94
|
+
f(), T(D), o.current && (o.current.addEventListener(
|
|
95
|
+
"animationend",
|
|
96
|
+
() => {
|
|
97
|
+
var e;
|
|
98
|
+
(e = o.current) != null && e.hidePopover && (o.current.hidePopover(), p(), o.current = null, c((t) => t.slice(1)), l(null));
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
once: !0
|
|
102
|
+
// removes event listener after being called once
|
|
103
|
+
}
|
|
104
|
+
), o.current.classList.add(U.rootClosing));
|
|
105
|
+
}, b = j(
|
|
106
|
+
() => ({
|
|
107
|
+
queueDSToastMessage: d
|
|
108
|
+
}),
|
|
109
|
+
[d]
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ g.jsxs(x.Provider, { value: b, children: [
|
|
112
|
+
s ? /* @__PURE__ */ g.jsx(_, { ...s, ref: o }) : null,
|
|
113
|
+
n
|
|
114
|
+
] });
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
K as DSToastProvider,
|
|
118
|
+
J as useDSToast
|
|
119
|
+
};
|
package/types/icon-types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ICON_NAMES: readonly ["360", "academic-cap", "alarm-clock", "arrow-clockwise", "arrow-counterclockwise", "arrow-down", "arrow-down-line", "arrow-edge", "arrow-left", "arrow-out", "arrow-outline-left", "arrow-right", "arrow-up", "arrow-up-arrow-down", "at", "barcode-scanner", "battery", "bell", "bin", "bin-open", "bluetooth", "bookmark", "burger", "calendar", "camera", "cart", "cart-check", "cart-plus", "catalog", "certificate", "chain-link", "chainsaw", "check", "chevron-down", "chevron-left", "chevron-line-left", "chevron-line-right", "chevron-right", "chevron-up", "circle", "circle-check-colored", "circle-check-inverted", "circle-info-colored", "circle-info-inverted", "circle-pause", "circle-stroke", "clock", "coffee-cup", "compare", "connected-box", "connected-box-mobile", "connected-box-stationary", "cross", "diamond", "diamond-exclamationmark-colored", "diamond-exclamationmark-inverted", "diskette", "distance", "dots-connected", "download-complete", "envelope", "envelope-open", "exclamationmark", "exit", "eye", "eye-closed", "facebook", "filter", "finger-double-arrow", "flash", "fullscreen", "gear", "globe", "grid", "guidance", "haircross", "hanger", "headphones", "heart", "hexagon-arrow-clockwise", "horizontal-ellipsis", "house", "imow", "info", "instagram", "leave-fullscreen", "lightbulb", "linkedin", "list-three-rows", "list-two-rows", "loading-spinner", "lock", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "map", "minus", "mobile", "nine-squares", "note", "note-check", "note-plus", "number-input", "paperclip", "parcel", "pause", "pdf", "pen", "percent", "petrol", "phone", "pin", "pin-s", "pinterest", "placeholder", "play", "plug", "plus", "printer", "prohibition-sign", "questionmark", "security", "share", "shirt", "shop", "sound-off", "sound-on", "speechbubble", "speechbubbles", "square", "star", "star-half", "tag", "thumbs-down", "thumbs-up", "triangle", "triangle-exclamationmark-colored", "triangle-exclamationmark-inverted", "truck", "two-people-screen", "two-sheets", "upload", "user", "vertical-ellipsis", "wc", "wifi", "wifi-1bar", "wifi-2bars", "wifi-off", "wind-rose", "wrench", "x", "xing", "youtube"];
|
|
1
|
+
export declare const ICON_NAMES: readonly ["360", "academic-cap", "alarm-clock", "arrow-clockwise", "arrow-counterclockwise", "arrow-down", "arrow-down-line", "arrow-edge", "arrow-left", "arrow-out", "arrow-outline-left", "arrow-right", "arrow-up", "arrow-up-arrow-down", "at", "barcode-scanner", "battery", "bell", "bin", "bin-open", "bluetooth", "bookmark", "burger", "calendar", "camera", "cart", "cart-check", "cart-plus", "catalog", "certificate", "chain-link", "chainsaw", "check", "chevron-down", "chevron-left", "chevron-line-left", "chevron-line-right", "chevron-right", "chevron-up", "circle", "circle-check-colored", "circle-check-inverted", "circle-info-colored", "circle-info-inverted", "circle-pause", "circle-stroke", "clock", "coffee-cup", "compare", "connected-box", "connected-box-mobile", "connected-box-stationary", "cross", "diamond", "diamond-exclamationmark-colored", "diamond-exclamationmark-inverted", "diskette", "distance", "dots-connected", "download-complete", "envelope", "envelope-open", "exclamationmark", "exit", "eye", "eye-closed", "facebook", "filter", "finger-double-arrow", "flash", "fullscreen", "gear", "globe", "grid", "guidance", "haircross", "hanger", "headphones", "heart", "hexagon-arrow-clockwise", "horizontal-ellipsis", "house", "imow", "info", "instagram", "leave-fullscreen", "lightbulb", "linkedin", "list-three-rows", "list-two-rows", "loading-spinner", "lock", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "map", "minus", "mobile", "nine-squares", "note", "note-check", "note-plus", "number-input", "paperclip", "parcel", "pause", "pdf", "pen", "percent", "petrol", "phone", "pin", "pin-s", "pinterest", "placeholder", "play", "plug", "plus", "printer", "prohibition-sign", "questionmark", "security", "share", "shirt", "shop", "sound-off", "sound-on", "speechbubble", "speechbubbles", "square", "star", "star-half", "tag", "thumbs-down", "thumbs-up", "triangle", "triangle-exclamationmark-colored", "triangle-exclamationmark-inverted", "truck", "two-people-screen", "two-sheets", "upload", "user", "vertical-ellipsis", "wc", "whatsapp", "wifi", "wifi-1bar", "wifi-2bars", "wifi-off", "wind-rose", "wrench", "x", "xing", "youtube"];
|
|
2
2
|
export type IconName = typeof ICON_NAMES[number];
|
package/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translates a given key using specified translations and dynamic replacements of placeholders like {0} or {1}.
|
|
3
|
+
* Unmatched placeholders in the translation are removed.
|
|
4
|
+
*
|
|
5
|
+
* @param key - The key identifying the text to be translated.
|
|
6
|
+
* @param translations - Object containing translation mappings.
|
|
7
|
+
* @param {string[]} [replacements=[]] - Optional array of replacement strings for placeholders in the translation.
|
|
8
|
+
* @returns {string} The translated string with placeholders replaced by corresponding values in replacements array or removed if no match is found.
|
|
9
|
+
*/
|
|
10
|
+
export declare const translate: <T extends Record<string, string>>(key: keyof T, translations: T, replacements?: string[]) => string;
|
|
11
|
+
export declare const translateWithTranslations: <T extends Record<string, string>>(translations: T) => (key: keyof T, replacements?: string[]) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/utils/useBreakpoint.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BreakpointCustomizable } from './breakpoint-customizable';
|
|
2
2
|
/**
|
|
3
3
|
* A React hook that consumes a `BreakpointCustomizable` property and returns the value
|
|
4
4
|
* corresponding to the current breakpoint. If the property is a primitive value, it is
|