@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{accordion.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
- package/actionbutton.C8hePX-D.js +12 -0
- package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
- package/actionlink.dccc5JQV.js +12 -0
- package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.viEoC26n.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.css +1 -0
- package/assets/Breadcrumb.BJ6sa2am.css +1 -0
- package/assets/Button.Bi1KUKMv.css +1 -0
- package/assets/Checkbox.C6RWhy0V.css +1 -0
- package/assets/Chip.DfamkUPw.css +1 -0
- package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
- package/assets/Dialog.6AkQo8ew.css +1 -0
- package/assets/Drawer.CDOlX809.css +1 -0
- package/assets/Fieldset.BbLGXCWa.css +1 -0
- package/assets/Flag.qP1xbolI.css +1 -0
- package/assets/Header.CSPbSqR5.css +1 -0
- package/assets/InputFile.CDtghZtl.css +1 -0
- package/assets/InputNumber.BNpO9p7n.css +1 -0
- package/assets/InputPassword.BgZo-RUc.css +1 -0
- package/assets/InputSearch.BROFFTK9.css +1 -0
- package/assets/LinkButton.IKIlFnpH.css +1 -0
- package/assets/LinkCard.pJtgJRIh.css +1 -0
- package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
- package/assets/Notification.2B81JHOp.css +1 -0
- package/assets/Pagination.DH71DZ0j.css +1 -0
- package/assets/Popover.58Tb0dOt.css +1 -0
- package/assets/Select.CfTN3CJo.css +1 -0
- package/assets/Slider.B4kzL60S.css +1 -0
- package/assets/Stepper.BCpjMiOX.css +1 -0
- package/assets/SystemFeedback.DVMml_h9.css +1 -0
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.css +1 -0
- package/assets/Toast.ChXfv24m.css +1 -0
- package/assets/buttonround.syTU1QSI.css +1 -0
- package/assets/chipgroup.DtCnsmS7.css +1 -0
- package/assets/filelist.B-Ru0GP_.css +1 -0
- package/assets/input.Dy8VS73e.css +1 -0
- package/assets/link.EZrauC8s.css +1 -0
- package/assets/numberindicator.CtbitPQ8.css +1 -0
- package/assets/optioncheckbox.BwkbIDOt.css +1 -0
- package/assets/progressindicator.tyY_RVQ9.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/step.DOAmuuEQ.css +1 -0
- package/assets/switch.8v7Wp1Fj.css +1 -0
- package/assets/tabpane.DDaeSDQb.css +1 -0
- package/assets/text.BwGsYzGM.css +1 -0
- package/assets/tooltip.C_BL2kou.css +1 -0
- package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
- package/buttonround.BO7_ewzA.js +101 -0
- package/checkbox.C9kyIY9P.js +11 -0
- package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/chip.5ktNLRYf.js +12 -0
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
- package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
- package/chunks/Button.CCol--xy.js +165 -0
- package/chunks/Checkbox.BxOGR1bR.js +96 -0
- package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
- package/chunks/Chip.DffaXMkV.js +148 -0
- package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/Drawer.CjUZu6GW.js +106 -0
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/Flag.CbQYBzVC.js +74 -0
- package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
- package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
- package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.y71Cd5J9.js +260 -0
- package/chunks/InputNumber.Fn2YbF_s.js +250 -0
- package/chunks/InputPassword.DtT9yrlx.js +129 -0
- package/chunks/InputSearch.BoAfGqoH.js +157 -0
- package/chunks/LinkButton.BxG7fx1O.js +150 -0
- package/chunks/LinkCard.DM-5WrSt.js +200 -0
- package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
- package/chunks/NavigationTabList.thzA1pU8.js +68 -0
- package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
- package/chunks/Notification.C_o7Ge6Q.js +91 -0
- package/chunks/Pagination.BrOMUJMi.js +272 -0
- package/chunks/Popover.CxZZ_y1Z.js +230 -0
- package/chunks/RadioGroup.CO91_5hA.js +136 -0
- package/chunks/Select.EzoMdk1u.js +157 -0
- package/chunks/Slider.CX38t4Sk.js +330 -0
- package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
- package/chunks/Text.utils.DzlY9pJS.js +9 -0
- package/chunks/TextUtility.BZLwqyic.js +82 -0
- package/chunks/Textarea.vuJgvW6_.js +192 -0
- package/chunks/Toast.V_ZUAsf2.js +76 -0
- package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
- package/components/Accordion/Accordion.d.ts +5 -0
- package/components/ActionButton/ActionButton.d.ts +5 -1
- package/components/ActionLink/ActionLink.d.ts +1 -1
- package/components/Button/Button.utils.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +8 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/components/ChipGroup/Chip.d.ts +2 -0
- package/components/ChipGroup/ChipGroup.d.ts +12 -2
- package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
- package/components/Combobox/Combobox.utils.d.ts +66 -9
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
- package/components/Fieldset/Fieldset.d.ts +9 -2
- package/components/Flag/Flag.d.ts +3 -3
- package/components/Flag/Flag.utils.d.ts +7 -2
- package/components/Input/Input.d.ts +8 -1
- package/components/InputFile/FileList/FileList.d.ts +4 -2
- package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
- package/components/InputFile/InputFile.d.ts +12 -2
- package/components/InputFile/InputFile.utils.d.ts +41 -23
- package/components/InputNumber/InputNumber.d.ts +8 -1
- package/components/InputPassword/InputPassword.d.ts +8 -1
- package/components/InputSearch/InputSearch.d.ts +8 -1
- package/components/LinkCard/LinkCard.d.ts +10 -4
- package/components/LinkCard/LinkCard.utils.d.ts +2 -2
- package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
- package/components/Pagination/Pagination.d.ts +10 -3
- package/components/Pagination/Pagination.utils.d.ts +22 -9
- package/components/Popover/Popover.d.ts +9 -1
- package/components/Popover/Popover.utils.d.ts +3 -2
- package/components/Radio/Radio.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.d.ts +8 -0
- package/components/Select/Select.d.ts +8 -1
- package/components/Slider/Slider.d.ts +8 -1
- package/components/Stepper/Step.d.ts +1 -1
- package/components/Stepper/Step.utils.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +4 -1
- package/components/Stepper/Stepper.utils.d.ts +9 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
- package/components/Textarea/Textarea.d.ts +8 -1
- package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
- package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.GrEwoM1u.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/flag.fX6LAgty.js +10 -0
- package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
- package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
- package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
- package/index.es.js +231 -230
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.DiZh3GcT.js +17 -0
- package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
- package/navigationtablist.n9DrtYe5.js +10 -0
- package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
- package/numberindicator.DsK65Bj3.js +39 -0
- package/optioncheckbox.tlMEoyT0.js +48 -0
- package/package.json +38 -33
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +91 -91
- package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
- package/progressindicator.D9CfVD95.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
- package/select.DTZ6a6Ag.js +13 -0
- package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
- package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
- package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
- package/step.DCQ6CawJ.js +82 -0
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.d.ts +1 -0
- package/styles/js/index.es.js +24 -4
- package/styles/js/lib/spacing-rem.d.ts +21 -0
- package/styles/js/lib/spacing.d.ts +0 -1
- package/styles/scss/ds/index.scss +4 -1
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
- package/styles/scss/ds/lib/grid-narrow.scss +1 -0
- package/styles/scss/ds/lib/input.scss +12 -7
- package/styles/scss/ds/lib/link.scss +2 -2
- package/styles/scss/ds/lib/radius.scss +5 -0
- package/styles/scss/ds/lib/spacing-rem.scss +19 -0
- package/styles/scss/ds/lib/spacing.scss +0 -1
- package/switch.tM2XBag8.js +66 -0
- package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
- package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
- package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
- package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
- package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
- package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/actionbutton.D6qmbuAA.js +0 -12
- package/actionlink.fWwe7J0H.js +0 -12
- package/assets/Accordion.Cr1dbVTH.css +0 -1
- package/assets/ActionButton.BLOWs6IZ.css +0 -1
- package/assets/ActionCard.BG8w8xUC.css +0 -1
- package/assets/ActionLink.BJDUVdT7.css +0 -1
- package/assets/Breadcrumb.BavNNzAA.css +0 -1
- package/assets/Button.C-UYIggc.css +0 -1
- package/assets/Checkbox.ZAPIO2N8.css +0 -1
- package/assets/Chip.D3vV0wyV.css +0 -1
- package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.BU-fi5Hk.css +0 -1
- package/assets/Fieldset.DCmr1Yir.css +0 -1
- package/assets/Header.BNYL2Y78.css +0 -1
- package/assets/InputFile.BUMCNCrj.css +0 -1
- package/assets/InputNumber.Bmz8cNKg.css +0 -1
- package/assets/InputPassword.CutbykTm.css +0 -1
- package/assets/InputSearch.Sr9jVpKt.css +0 -1
- package/assets/LinkButton.CxJvjEY5.css +0 -1
- package/assets/LinkCard.DkQoQJxx.css +0 -1
- package/assets/NavigationTabList.DYjNT2Di.css +0 -1
- package/assets/Notification.DBGpHzov.css +0 -1
- package/assets/Pagination.DZ1yCAMR.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.BZYb_HAG.css +0 -1
- package/assets/Slider.vnSU0ya0.css +0 -1
- package/assets/Stepper.tXJl15yL.css +0 -1
- package/assets/SystemFeedback.PKzqnXUe.css +0 -1
- package/assets/TextUtility.CEBJaKBG.css +0 -1
- package/assets/Textarea.BIgA9_fl.css +0 -1
- package/assets/Toast.CGl8z6mX.css +0 -1
- package/assets/buttonround.CMrJRIeW.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.CHVupL8T.css +0 -1
- package/assets/flag.CyCIPu_J.css +0 -1
- package/assets/input.BEOus9jX.css +0 -1
- package/assets/link.Dcsio57m.css +0 -1
- package/assets/numberindicator.BYIPwkAK.css +0 -1
- package/assets/optioncheckbox.6zYgifUk.css +0 -1
- package/assets/progressindicator.Cbbzo5-b.css +0 -1
- package/assets/radio.l9OTraQU.css +0 -1
- package/assets/step.Ch508u7I.css +0 -1
- package/assets/switch.DYamtd9O.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.BA1eUihR.css +0 -1
- package/assets/tooltip.BPcysHGE.css +0 -1
- package/buttonround.DZCu35Zw.js +0 -101
- package/checkbox.RYvu23i4.js +0 -12
- package/chip.CtZK5gH7.js +0 -12
- package/chipgroup.C-UJt9Nb.js +0 -213
- package/chunks/Accordion.Tz7cWkk5.js +0 -173
- package/chunks/ActionButton.Dqay6Dxt.js +0 -188
- package/chunks/ActionLink.BgWqWSKi.js +0 -161
- package/chunks/Button.Dauhc5op.js +0 -160
- package/chunks/Checkbox.C5Jgtwho.js +0 -88
- package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
- package/chunks/Chip.DXS_ZMGD.js +0 -157
- package/chunks/Dialog.mP1tZEbW.js +0 -102
- package/chunks/Drawer.D6IG0DRe.js +0 -107
- package/chunks/Fieldset.DxhNhprT.js +0 -91
- package/chunks/InputFile.BSGunqyW.js +0 -260
- package/chunks/InputNumber.BsBAdxWr.js +0 -240
- package/chunks/InputPassword.hZYiAKYC.js +0 -121
- package/chunks/InputSearch.Dp3x5RE4.js +0 -149
- package/chunks/LinkButton.DHcfHamd.js +0 -150
- package/chunks/LinkCard.DV-V9qHd.js +0 -197
- package/chunks/NavigationTabList.BIApwNzg.js +0 -68
- package/chunks/Notification.DeedcinQ.js +0 -91
- package/chunks/Pagination.DhD8i5AV.js +0 -247
- package/chunks/Popover.Cyf3CbLl.js +0 -221
- package/chunks/RadioGroup.D3omhLuC.js +0 -130
- package/chunks/Select.DOeJaqzM.js +0 -147
- package/chunks/Slider.d3gCkWL_.js +0 -309
- package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
- package/chunks/Text.utils.D_iOyOSH.js +0 -11
- package/chunks/TextUtility.Wbd4oQXI.js +0 -82
- package/chunks/Textarea.DhRMfiWu.js +0 -181
- package/chunks/Toast.KMEq0p-E.js +0 -76
- package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.BaYCDtxD.js +0 -128
- package/filepreview.BCslhbM5.js +0 -94
- package/flag.DyZLEgAw.js +0 -50
- package/input.DNdSFW5k.js +0 -175
- package/inputfile.CTXJ_ZSi.js +0 -18
- package/inputsearch.JLM0fNPt.js +0 -15
- package/link.CArLlIsR.js +0 -81
- package/navigationtablist.BerRIzu-.js +0 -10
- package/numberindicator.ZGVRSmqf.js +0 -36
- package/optioncheckbox.BQo8riVL.js +0 -48
- package/pagination.Dm1WnFhY.js +0 -14
- package/progressindicator.1JRFwf-H.js +0 -53
- package/radio.DxdVKoxe.js +0 -137
- package/select.DVuQMz7l.js +0 -14
- package/step.CDNmsF4m.js +0 -82
- package/stepper.D0kSuiYh.js +0 -16
- package/switch.pN105F5-.js +0 -66
- package/text.D_e3JBvf.js +0 -72
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@forward 'lib/animation';
|
|
2
|
+
@forward 'lib/border-width';
|
|
2
3
|
@forward 'lib/breakpoints';
|
|
3
4
|
@forward 'lib/container-query';
|
|
4
5
|
@forward 'lib/grid';
|
|
@@ -12,9 +13,11 @@
|
|
|
12
13
|
@forward 'lib/link';
|
|
13
14
|
@forward 'lib/link-button';
|
|
14
15
|
@forward 'lib/media-query';
|
|
16
|
+
@forward 'lib/radius';
|
|
15
17
|
@forward 'lib/shadow';
|
|
16
|
-
@forward 'lib/spacing';
|
|
17
18
|
@forward 'lib/spacing-dynamic';
|
|
19
|
+
@forward 'lib/spacing-rem';
|
|
20
|
+
@forward 'lib/spacing';
|
|
18
21
|
@forward 'lib/text';
|
|
19
22
|
@forward 'lib/theme';
|
|
20
23
|
@forward 'lib/transition';
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
@use '../border-width' as *;
|
|
1
2
|
@use '_focus' as *;
|
|
2
3
|
@use '_helpers' as *;
|
|
3
4
|
@use '_high-contrast' as *;
|
|
4
5
|
@use '_hover' as *;
|
|
5
6
|
@use '../spacing' as *;
|
|
7
|
+
@use '../spacing-rem' as *;
|
|
8
|
+
@use '../radius' as *;
|
|
6
9
|
@use '../text' as *;
|
|
7
10
|
@use '../theme' as *;
|
|
8
11
|
@use '../transition' as *;
|
|
9
12
|
|
|
10
|
-
@mixin input-label-base($hasHint: false) {
|
|
13
|
+
@mixin input-label-base($hasHint: false, $theme: 'light') {
|
|
11
14
|
@include utility-medium;
|
|
12
15
|
display: block;
|
|
13
|
-
min-height:
|
|
16
|
+
min-height: $spacing-24-rem;
|
|
17
|
+
|
|
18
|
+
@if $theme == 'dark' {
|
|
19
|
+
color: $theme-dark-content-color-primary;
|
|
20
|
+
}
|
|
14
21
|
|
|
15
22
|
|
|
16
23
|
&:has(input) {
|
|
@@ -67,39 +74,47 @@
|
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
@mixin input-hint-base() {
|
|
77
|
+
@mixin input-hint-base($theme: 'light') {
|
|
71
78
|
@include utility-small;
|
|
72
79
|
display: block;
|
|
73
80
|
max-width: 25.5rem;
|
|
74
81
|
margin-block-end: $spacing-8;
|
|
82
|
+
|
|
83
|
+
@if $theme == 'dark' {
|
|
84
|
+
color: $theme-dark-content-color-primary;
|
|
85
|
+
}
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
@mixin input-base($size) {
|
|
88
|
+
@mixin input-base($size, $theme: 'light') {
|
|
78
89
|
@if ($size == 'medium') {
|
|
79
90
|
|
|
80
91
|
@include utility-medium;
|
|
81
92
|
|
|
82
93
|
padding-inline-start: adjust-spacing-for-border-1($spacing-16);
|
|
83
94
|
padding-inline-end: adjust-spacing-for-border-1($spacing-16);
|
|
84
|
-
min-height:
|
|
85
|
-
height:
|
|
95
|
+
min-height: $spacing-48-rem;
|
|
96
|
+
height: $spacing-48-rem;
|
|
86
97
|
} @else if($size == 'small') {
|
|
87
98
|
@include utility-small;
|
|
88
99
|
|
|
89
100
|
padding-inline-start: adjust-spacing-for-border-1($spacing-8);
|
|
90
101
|
padding-inline-end: adjust-spacing-for-border-1($spacing-8);
|
|
91
102
|
|
|
92
|
-
min-height:
|
|
93
|
-
height:
|
|
103
|
+
min-height: $spacing-32-rem;
|
|
104
|
+
height: $spacing-32-rem;
|
|
94
105
|
}
|
|
95
106
|
|
|
96
107
|
|
|
97
|
-
@include focus($offset: 0, $thickness: $spacing-1);
|
|
108
|
+
@include focus($theme: $theme, $offset: 0, $thickness: $spacing-1);
|
|
98
109
|
@include transition((background-color, color));
|
|
99
110
|
|
|
100
111
|
@include hover-media-query {
|
|
101
112
|
&:hover {
|
|
102
|
-
|
|
113
|
+
@if $theme == 'light' {
|
|
114
|
+
background: $theme-light-background-color-transparent-hover;
|
|
115
|
+
} @else {
|
|
116
|
+
background: $theme-dark-background-color-transparent-hover;
|
|
117
|
+
}
|
|
103
118
|
@include high-contrast-media-query {
|
|
104
119
|
border-color: Highlight;
|
|
105
120
|
}
|
|
@@ -108,31 +123,50 @@
|
|
|
108
123
|
|
|
109
124
|
& {
|
|
110
125
|
background: transparent;
|
|
111
|
-
border: $
|
|
112
|
-
border-radius: 0;
|
|
113
|
-
color: $theme-light-content-color-primary;
|
|
126
|
+
border-radius: $radius-none;
|
|
114
127
|
width: 100%;
|
|
128
|
+
@if $theme == 'light' {
|
|
129
|
+
border: $border-width-1 solid $theme-light-border-color-primary;
|
|
130
|
+
color: $theme-light-content-color-primary;
|
|
131
|
+
} @else {
|
|
132
|
+
border: $border-width-1 solid $theme-dark-border-color-primary;
|
|
133
|
+
color: $theme-dark-content-color-primary;
|
|
134
|
+
}
|
|
115
135
|
}
|
|
116
136
|
|
|
117
137
|
&[readonly] {
|
|
118
|
-
background-color: $theme-light-background-color-tertiary;
|
|
119
138
|
border-color: transparent;
|
|
120
|
-
|
|
139
|
+
@if $theme == 'light' {
|
|
140
|
+
background-color: $theme-light-background-color-tertiary;
|
|
141
|
+
color: $theme-light-content-color-primary;
|
|
142
|
+
} @else {
|
|
143
|
+
background-color: $theme-dark-background-color-tertiary;
|
|
144
|
+
color: $theme-dark-content-color-primary;
|
|
145
|
+
}
|
|
121
146
|
|
|
122
|
-
@include focus($offset: 0, $thickness: $spacing-2);
|
|
147
|
+
@include focus($theme: $theme, $offset: 0, $thickness: $spacing-2);
|
|
123
148
|
}
|
|
124
149
|
|
|
125
150
|
&:disabled {
|
|
126
151
|
background-color: transparent;
|
|
127
|
-
border-color: $theme-light-border-color-primary-disabled;
|
|
128
|
-
color: $theme-light-content-color-primary-disabled;
|
|
129
152
|
cursor: not-allowed;
|
|
153
|
+
@if $theme == 'light' {
|
|
154
|
+
border-color: $theme-light-border-color-primary-disabled;
|
|
155
|
+
color: $theme-light-content-color-primary-disabled;
|
|
156
|
+
} @else {
|
|
157
|
+
border-color: $theme-dark-border-color-primary-disabled;
|
|
158
|
+
color: $theme-dark-content-color-primary-disabled;
|
|
159
|
+
}
|
|
130
160
|
}
|
|
131
161
|
|
|
132
162
|
&::-webkit-placeholder,
|
|
133
163
|
&::placeholder {
|
|
134
|
-
color: $theme-light-content-color-secondary;
|
|
135
164
|
opacity: 1;
|
|
165
|
+
@if $theme == 'light' {
|
|
166
|
+
color: $theme-light-content-color-secondary;
|
|
167
|
+
} @else {
|
|
168
|
+
color: $theme-dark-content-color-secondary;
|
|
169
|
+
}
|
|
136
170
|
}
|
|
137
171
|
|
|
138
172
|
|
|
@@ -184,13 +218,24 @@
|
|
|
184
218
|
}
|
|
185
219
|
}
|
|
186
220
|
|
|
187
|
-
@mixin input-invalid() {
|
|
188
|
-
|
|
189
|
-
|
|
221
|
+
@mixin input-invalid($theme: 'light') {
|
|
222
|
+
@if $theme == 'light' {
|
|
223
|
+
border-color: $theme-light-border-color-feedback-error;
|
|
224
|
+
outline-color: $theme-light-border-color-feedback-error;
|
|
190
225
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
226
|
+
&:active,
|
|
227
|
+
&:focus,
|
|
228
|
+
&:focus-visible {
|
|
229
|
+
border-color: $theme-light-border-color-primary;
|
|
230
|
+
}
|
|
231
|
+
} @else {
|
|
232
|
+
border-color: $theme-dark-border-color-feedback-error;
|
|
233
|
+
outline-color: $theme-dark-border-color-feedback-error;
|
|
234
|
+
|
|
235
|
+
&:active,
|
|
236
|
+
&:focus,
|
|
237
|
+
&:focus-visible {
|
|
238
|
+
border-color: $theme-dark-border-color-primary;
|
|
239
|
+
}
|
|
195
240
|
}
|
|
196
241
|
}
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
@use '_helpers' as *;
|
|
3
3
|
@use '_high-contrast' as *;
|
|
4
4
|
@use '_hover' as *;
|
|
5
|
+
@use '../border-width' as *;
|
|
5
6
|
@use '../media-query' as *;
|
|
7
|
+
@use '../radius' as *;
|
|
6
8
|
@use '../spacing' as *;
|
|
9
|
+
@use '../spacing-rem' as *;
|
|
7
10
|
@use '../text' as *;
|
|
8
11
|
@use '../theme' as *;
|
|
9
12
|
@use '../transition' as *;
|
|
10
13
|
|
|
11
|
-
$link-button-size-small:
|
|
12
|
-
$link-button-size-medium:
|
|
14
|
+
$link-button-size-small: $spacing-32-rem;
|
|
15
|
+
$link-button-size-medium: $spacing-48-rem;
|
|
13
16
|
|
|
14
17
|
|
|
15
18
|
|
|
@@ -36,7 +39,7 @@ $link-button-size-medium: px-to-rem($spacing-48);
|
|
|
36
39
|
display: inline-flex;
|
|
37
40
|
justify-content: center;
|
|
38
41
|
align-items: center;
|
|
39
|
-
border-width: $
|
|
42
|
+
border-width: $border-width-1;
|
|
40
43
|
border-style: solid;
|
|
41
44
|
border-color: transparent;
|
|
42
45
|
gap: $spacing-8;
|
|
@@ -149,7 +152,7 @@ $link-button-size-medium: px-to-rem($spacing-48);
|
|
|
149
152
|
@include utility-large-bold;
|
|
150
153
|
color: $theme-light-content-color-primary;
|
|
151
154
|
|
|
152
|
-
border-radius: $
|
|
155
|
+
border-radius: $radius-xs;
|
|
153
156
|
|
|
154
157
|
min-height: $link-button-size-small;
|
|
155
158
|
min-width: $link-button-size-small;
|
|
@@ -37,9 +37,8 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
&[href^=
|
|
41
|
-
&[href^=
|
|
42
|
-
{
|
|
40
|
+
&[href^='http://']::after,
|
|
41
|
+
&[href^='https://']::after {
|
|
43
42
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{urlEncodeHexColor($content-color)}' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath fill-rule='evenodd' d='M9 2V0h7v7h-2V3.4L8.1 9.3 6.7 7.9 12.6 2H9Zm5 8h-2v4H2V4h4V2H0v14h14v-6Z' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -47,6 +46,27 @@
|
|
|
47
46
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{urlEncodeHexColor($content-color)}' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath d='M14.4 9.6 8 16 1.6 9.6 3 8.2l4 4V0h2v12.2l4-4 1.4 1.4Z'/%3E%3C/svg%3E");
|
|
48
47
|
}
|
|
49
48
|
|
|
49
|
+
@include high-contrast-media-query {
|
|
50
|
+
&[href^='http://']::after,
|
|
51
|
+
&[href^='https://']::after {
|
|
52
|
+
forced-color-adjust: none;
|
|
53
|
+
content: '';
|
|
54
|
+
background-color: LinkText;
|
|
55
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='100%25' height='100%25'%3E%3Cpath fill-rule='evenodd' d='M9 2V0h7v7h-2V3.4L8.1 9.3 6.7 7.9 12.6 2H9Zm5 8h-2v4H2V4h4V2H0v14h14v-6Z' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
56
|
+
mask-size: contain;
|
|
57
|
+
mask-repeat: no-repeat;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[href^='#']::after {
|
|
61
|
+
forced-color-adjust: none;
|
|
62
|
+
content: '';
|
|
63
|
+
background-color: LinkText;
|
|
64
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='100%25' height='100%25'%3E%3Cpath d='M14.4 9.6 8 16 1.6 9.6 3 8.2l4 4V0h2v12.2l4-4 1.4 1.4Z'/%3E%3C/svg%3E");
|
|
65
|
+
mask-size: contain;
|
|
66
|
+
mask-repeat: no-repeat;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
50
70
|
|
|
51
71
|
|
|
52
72
|
@include focus($theme, $offset: 0);
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
font-variant: normal;
|
|
11
11
|
hyphens: manual;
|
|
12
12
|
overflow-wrap: break-word;
|
|
13
|
-
font-weight: normal;
|
|
14
13
|
font-size: $fontSize;
|
|
15
14
|
line-height: $lineHeight;
|
|
16
15
|
}
|
|
@@ -20,6 +19,7 @@
|
|
|
20
19
|
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
21
20
|
|
|
22
21
|
font-size-adjust: 0.414;
|
|
22
|
+
font-weight: normal;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
@@ -27,4 +27,6 @@
|
|
|
27
27
|
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
28
28
|
|
|
29
29
|
font-size-adjust: 0.426;
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
font-synthesis-weight: none;
|
|
30
32
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
@use './ds-internal/_input' as *;
|
|
2
2
|
|
|
3
|
-
@mixin input-label(
|
|
3
|
+
@mixin input-label(
|
|
4
|
+
$hasHint: false,
|
|
5
|
+
$isDisabled: false,
|
|
6
|
+
$isRequired: false,
|
|
7
|
+
$theme: 'light'
|
|
8
|
+
) {
|
|
4
9
|
@if (not $isDisabled and not $isRequired) {
|
|
5
|
-
@include input-label-base($hasHint);
|
|
10
|
+
@include input-label-base($hasHint, $theme);
|
|
6
11
|
}
|
|
7
12
|
@if $isDisabled {
|
|
8
13
|
@include input-label-disabled();
|
|
@@ -13,14 +18,14 @@
|
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
@mixin input-hint() {
|
|
17
|
-
@include input-hint-base();
|
|
21
|
+
@mixin input-hint($theme: 'light') {
|
|
22
|
+
@include input-hint-base($theme);
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
@mixin input($size: 'medium', $isInvalid: false) {
|
|
25
|
+
@mixin input($size: 'medium', $isInvalid: false, $theme: 'light') {
|
|
21
26
|
@if (not $isInvalid) {
|
|
22
|
-
@include input-base($size);
|
|
27
|
+
@include input-base($size, $theme);
|
|
23
28
|
} @else {
|
|
24
|
-
@include input-invalid();
|
|
29
|
+
@include input-invalid($theme);
|
|
25
30
|
}
|
|
26
31
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$spacing-0-rem: 0rem;
|
|
2
|
+
$spacing-1-rem: 0.0625rem;
|
|
3
|
+
$spacing-2-rem: 0.125rem;
|
|
4
|
+
$spacing-4-rem: 0.25rem;
|
|
5
|
+
$spacing-6-rem: 0.375rem;
|
|
6
|
+
$spacing-8-rem: 0.5rem;
|
|
7
|
+
$spacing-12-rem: 0.75rem;
|
|
8
|
+
$spacing-16-rem: 1rem;
|
|
9
|
+
$spacing-20-rem: 1.25rem;
|
|
10
|
+
$spacing-24-rem: 1.5rem;
|
|
11
|
+
$spacing-32-rem: 2rem;
|
|
12
|
+
$spacing-40-rem: 2.5rem;
|
|
13
|
+
$spacing-48-rem: 3rem;
|
|
14
|
+
$spacing-56-rem: 3.5rem;
|
|
15
|
+
$spacing-64-rem: 4rem;
|
|
16
|
+
$spacing-80-rem: 5rem;
|
|
17
|
+
$spacing-96-rem: 6rem;
|
|
18
|
+
$spacing-128-rem: 8rem;
|
|
19
|
+
$spacing-160-rem: 10rem;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as O, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { d as $ } from "./chunks/index.cKLI89Eg.js";
|
|
4
|
+
import { c as q } from "./chunks/index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as z } from "react";
|
|
6
|
+
import { D as A } from "./chunks/Icon.DYtaQgbw.js";
|
|
7
|
+
import { DSSpinner as B } from "./spinner.DtLnsqVV.js";
|
|
8
|
+
import './assets/switch.8v7Wp1Fj.css';const F = "ds-switch_root_1c6he_1", G = "ds-switch_root--label-right_1c6he_40", H = "ds-switch_root--stretched_1c6he_43", J = "ds-switch_loader_1c6he_53", K = "ds-switch_thumb_1c6he_111", M = "ds-switch_root--checked_1c6he_126", o = {
|
|
9
|
+
root: F,
|
|
10
|
+
rootLabelRight: G,
|
|
11
|
+
rootStretched: H,
|
|
12
|
+
switch: "ds-switch_switch_1c6he_48",
|
|
13
|
+
loader: J,
|
|
14
|
+
thumb: K,
|
|
15
|
+
rootChecked: M
|
|
16
|
+
}, P = z((C, N) => {
|
|
17
|
+
const t = $.c(38);
|
|
18
|
+
let c, l, i, s, r, m, f, _, b, p;
|
|
19
|
+
t[0] !== C ? ({
|
|
20
|
+
children: l,
|
|
21
|
+
aria: c,
|
|
22
|
+
alignLabel: m,
|
|
23
|
+
checked: f,
|
|
24
|
+
className: i,
|
|
25
|
+
disabled: _,
|
|
26
|
+
loading: b,
|
|
27
|
+
stretched: p,
|
|
28
|
+
onClick: s,
|
|
29
|
+
...r
|
|
30
|
+
} = C, t[0] = C, t[1] = c, t[2] = l, t[3] = i, t[4] = s, t[5] = r, t[6] = m, t[7] = f, t[8] = _, t[9] = b, t[10] = p) : (c = t[1], l = t[2], i = t[3], s = t[4], r = t[5], m = t[6], f = t[7], _ = t[8], b = t[9], p = t[10]);
|
|
31
|
+
const E = m === void 0 ? "left" : m, u = f === void 0 ? !1 : f, w = _ === void 0 ? !1 : _, e = b === void 0 ? !1 : b, I = p === void 0 ? !1 : p, D = u === !0, L = I === !0, v = E === "right";
|
|
32
|
+
let k;
|
|
33
|
+
t[11] !== i || t[12] !== D || t[13] !== L || t[14] !== v ? (k = q(o.root, i, {
|
|
34
|
+
[o.rootChecked]: D,
|
|
35
|
+
[o.rootStretched]: L,
|
|
36
|
+
[o.rootLabelRight]: v
|
|
37
|
+
}), t[11] = i, t[12] = D, t[13] = L, t[14] = v, t[15] = k) : k = t[15];
|
|
38
|
+
const x = k;
|
|
39
|
+
let g;
|
|
40
|
+
t[16] !== w || t[17] !== e || t[18] !== s ? (g = (j) => {
|
|
41
|
+
if (w || e) {
|
|
42
|
+
j.preventDefault();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
s && s(j);
|
|
46
|
+
}, t[16] = w, t[17] = e, t[18] = s, t[19] = g) : g = t[19];
|
|
47
|
+
const y = g, R = w || e;
|
|
48
|
+
let a;
|
|
49
|
+
t[20] !== l ? (a = /* @__PURE__ */ n("span", { children: l }), t[20] = l, t[21] = a) : a = t[21];
|
|
50
|
+
let d;
|
|
51
|
+
t[22] !== e ? (d = !e && /* @__PURE__ */ n("span", { className: o.switch, children: /* @__PURE__ */ n("span", { className: o.thumb, children: /* @__PURE__ */ n(A, { name: "check", "aria-hidden": "true" }) }) }), t[22] = e, t[23] = d) : d = t[23];
|
|
52
|
+
let h;
|
|
53
|
+
t[24] !== e ? (h = e && /* @__PURE__ */ n("span", { className: o.loader, children: /* @__PURE__ */ n(B, { aria: {
|
|
54
|
+
"aria-label": "Loading state"
|
|
55
|
+
} }) }), t[24] = e, t[25] = h) : h = t[25];
|
|
56
|
+
let S;
|
|
57
|
+
return t[26] !== c || t[27] !== u || t[28] !== y || t[29] !== e || t[30] !== N || t[31] !== r || t[32] !== x || t[33] !== R || t[34] !== a || t[35] !== d || t[36] !== h ? (S = /* @__PURE__ */ O("button", { className: x, onClick: y, ...c, ...r, type: "button", role: "switch", "aria-checked": u, "aria-disabled": R, "aria-busy": e, ref: N, children: [
|
|
58
|
+
a,
|
|
59
|
+
d,
|
|
60
|
+
h
|
|
61
|
+
] }), t[26] = c, t[27] = u, t[28] = y, t[29] = e, t[30] = N, t[31] = r, t[32] = x, t[33] = R, t[34] = a, t[35] = d, t[36] = h, t[37] = S) : S = t[37], S;
|
|
62
|
+
});
|
|
63
|
+
P.displayName = "DSSwitch";
|
|
64
|
+
export {
|
|
65
|
+
P as DSSwitch
|
|
66
|
+
};
|
|
@@ -3,8 +3,8 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "./chunks/index.cKLI89Eg.js";
|
|
4
4
|
import "./chunks/index.DQOqod3i.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./chunks/Icon.
|
|
7
|
-
import { D as s } from "./chunks/SystemFeedback.
|
|
6
|
+
import "./chunks/Icon.DYtaQgbw.js";
|
|
7
|
+
import { D as s } from "./chunks/SystemFeedback.DhWcYjnu.js";
|
|
8
8
|
export {
|
|
9
9
|
s as DSSystemFeedback
|
|
10
10
|
};
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
import { jsxs as k, jsx as p } from "react/jsx-runtime";
|
|
3
3
|
import { c as D } from "./chunks/index.DQOqod3i.js";
|
|
4
4
|
import { useState as E, useRef as g, useEffect as ot } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./chunks/
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const b = 48, Lt = ({
|
|
5
|
+
import { D as X } from "./chunks/Button.CCol--xy.js";
|
|
6
|
+
import { D as nt } from "./chunks/Icon.DYtaQgbw.js";
|
|
7
|
+
import { NumberIndicator as st } from "./numberindicator.DsK65Bj3.js";
|
|
8
|
+
import { g as ct, a as j } from "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
9
|
+
import { s as c, N as it } from "./chunks/NavigationTabList.thzA1pU8.js";
|
|
10
|
+
import { u as C } from "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
11
|
+
import { g as at } from "./chunks/helpers.CexwVao7.js";
|
|
12
|
+
import { g as h, i as W } from "./chunks/is-animation-disabled.B-V_68K-.js";
|
|
13
|
+
import { h as lt } from "./chunks/has-window.ut_-aShB.js";
|
|
14
|
+
const b = 48, Dt = ({
|
|
16
15
|
aria: q,
|
|
17
16
|
id: L,
|
|
18
17
|
selectedTabIndex: n,
|
|
@@ -28,12 +27,12 @@ const b = 48, Lt = ({
|
|
|
28
27
|
const [A, u] = E(Q), [U, V] = E(!1), [Y, Z] = E(!1), d = g([]), v = g(null), s = g(null), i = g(null), w = g(!1), H = g(n), N = () => {
|
|
29
28
|
P(), x();
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
C(() => {
|
|
32
31
|
const e = new ResizeObserver(N);
|
|
33
32
|
return s.current && e.observe(s.current), () => {
|
|
34
33
|
e.disconnect();
|
|
35
34
|
};
|
|
36
|
-
}, []),
|
|
35
|
+
}, []), C(() => {
|
|
37
36
|
const e = [
|
|
38
37
|
"18px 'STIHL Contraface Digital Text Regular'",
|
|
39
38
|
// utility large - Tab
|
|
@@ -45,7 +44,7 @@ const b = 48, Lt = ({
|
|
|
45
44
|
Promise.all(e.map((o) => document.fonts.load(o))).then(() => {
|
|
46
45
|
S(n), R("next", n, "instant"), P(), w.current = !0;
|
|
47
46
|
}).catch((o) => {
|
|
48
|
-
throw new Error(
|
|
47
|
+
throw new Error(at("DSTabs", `The component requires the fonts to be loaded: ${o}`));
|
|
49
48
|
});
|
|
50
49
|
const t = () => {
|
|
51
50
|
!w.current || !i.current || (r.matches ? i.current.style.transitionDuration = "0s" : i.current.style.transitionDuration = "");
|
|
@@ -53,7 +52,7 @@ const b = 48, Lt = ({
|
|
|
53
52
|
return r.addEventListener("change", t), s.current?.addEventListener("scroll", N), () => {
|
|
54
53
|
r.removeEventListener("change", t), s.current?.removeEventListener("scroll", N);
|
|
55
54
|
};
|
|
56
|
-
}, [l, I]),
|
|
55
|
+
}, [l, I]), C(() => {
|
|
57
56
|
if (w.current && (S(n), T)) {
|
|
58
57
|
const e = M(n);
|
|
59
58
|
u(n), R(e, n);
|
|
@@ -75,7 +74,7 @@ const b = 48, Lt = ({
|
|
|
75
74
|
V(t.left < e.left), Z(t.right > e.right + 4);
|
|
76
75
|
}
|
|
77
76
|
}, O = (e = 0) => {
|
|
78
|
-
|
|
77
|
+
lt && i.current && !W() && setTimeout(() => {
|
|
79
78
|
i.current && (i.current.style.transitionDuration = "250ms");
|
|
80
79
|
}, e);
|
|
81
80
|
}, x = () => {
|
|
@@ -145,14 +144,14 @@ const b = 48, Lt = ({
|
|
|
145
144
|
}
|
|
146
145
|
f.scrollTo({
|
|
147
146
|
left: B,
|
|
148
|
-
behavior:
|
|
147
|
+
behavior: W() ? "instant" : r
|
|
149
148
|
});
|
|
150
149
|
}
|
|
151
150
|
}, $ = (e) => {
|
|
152
151
|
const t = et(e);
|
|
153
152
|
s.current?.scrollTo({
|
|
154
153
|
left: t,
|
|
155
|
-
behavior:
|
|
154
|
+
behavior: W() ? "instant" : "smooth"
|
|
156
155
|
});
|
|
157
156
|
}, et = (e) => {
|
|
158
157
|
if (!v.current || !s.current)
|
|
@@ -167,7 +166,7 @@ const b = 48, Lt = ({
|
|
|
167
166
|
}), rt = T ? "nav" : "div";
|
|
168
167
|
return /* @__PURE__ */ k("div", { className: D(c.tabsWrapper, G), ...J, children: [
|
|
169
168
|
/* @__PURE__ */ k(rt, { className: c.scrollWrapper, ref: s, ...q, children: [
|
|
170
|
-
T ? /* @__PURE__ */ p(
|
|
169
|
+
T ? /* @__PURE__ */ p(it, { tabs: l, tabRefs: d, scrollerRef: v, handleNavigationKeydown: tt, scrollerClass: K, selectedTabIndex: n, setSelectedTab: y }) : /* @__PURE__ */ p("div", { role: "tablist", className: K, ref: v, children: l.map(({
|
|
171
170
|
id: e,
|
|
172
171
|
label: t,
|
|
173
172
|
iconName: r,
|
|
@@ -179,7 +178,7 @@ const b = 48, Lt = ({
|
|
|
179
178
|
id: j(L, e),
|
|
180
179
|
role: "tab",
|
|
181
180
|
"aria-selected": n === a,
|
|
182
|
-
"aria-controls":
|
|
181
|
+
"aria-controls": ct(L, e, a),
|
|
183
182
|
tabIndex: n === a ? 0 : -1,
|
|
184
183
|
className: c.tab,
|
|
185
184
|
ref: (m) => {
|
|
@@ -189,9 +188,9 @@ const b = 48, Lt = ({
|
|
|
189
188
|
onKeyDown: (m) => _(m, a),
|
|
190
189
|
type: "button",
|
|
191
190
|
children: [
|
|
192
|
-
r && /* @__PURE__ */ p(
|
|
191
|
+
r && /* @__PURE__ */ p(nt, { name: r, "aria-hidden": "true" }),
|
|
193
192
|
t,
|
|
194
|
-
o && /* @__PURE__ */ p(
|
|
193
|
+
o && /* @__PURE__ */ p(st, { "aria-label": f, label: o })
|
|
195
194
|
]
|
|
196
195
|
},
|
|
197
196
|
j(L, e)
|
|
@@ -207,5 +206,5 @@ const b = 48, Lt = ({
|
|
|
207
206
|
] });
|
|
208
207
|
};
|
|
209
208
|
export {
|
|
210
|
-
|
|
209
|
+
Dt as TabList
|
|
211
210
|
};
|
|
@@ -4,7 +4,7 @@ import { d as T } from "./chunks/index.cKLI89Eg.js";
|
|
|
4
4
|
import { c as g } from "./chunks/index.DQOqod3i.js";
|
|
5
5
|
import { useRef as y, useState as F, useEffect as N } from "react";
|
|
6
6
|
import { c as P, g as v, a as R } from "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
7
|
-
import './assets/tabpane.
|
|
7
|
+
import './assets/tabpane.DDaeSDQb.css';const S = "ds-tabs_tabpane_1cps1_1", j = {
|
|
8
8
|
tabpane: S
|
|
9
9
|
}, k = (x) => {
|
|
10
10
|
const e = T.c(19), {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./chunks/index.cKLI89Eg.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./tablist.
|
|
6
|
-
import "./tabpane.
|
|
5
|
+
import "./tablist.BAm0_UIG.js";
|
|
6
|
+
import "./tabpane.B9rZghU6.js";
|
|
7
7
|
import "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
8
|
-
import { D as a } from "./chunks/Tabs.
|
|
8
|
+
import { D as a } from "./chunks/Tabs.BHVlgp7L.js";
|
|
9
9
|
export {
|
|
10
10
|
a as DSTabs
|
|
11
11
|
};
|