@stihl-design-system/components 1.0.0-RC.47 → 1.0.0-RC.49
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.BQ7vavIt.js → accordion.D4XR2R7e.js} +2 -2
- package/{actionbutton.C7lqEmBx.js → actionbutton.C8hePX-D.js} +3 -3
- package/{actioncard.dgVHW0BC.js → actioncard.C-HzRqYB.js} +1 -1
- package/{actionlink.CL6v1mQA.js → actionlink.dccc5JQV.js} +3 -3
- package/{arialiveregions.DC1Gq9Lo.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.DeWHOXFn.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.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/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.CqjmRkfO.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/{SystemFeedback.DYi9QetY.css → SystemFeedback.DVMml_h9.css} +1 -1
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.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/numberindicator.CtbitPQ8.css +1 -0
- package/assets/progressindicator.BK8L7Bd4.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/skeleton.D9MOCUK4.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.BlB_7xue.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DajORKq7.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.EooIlFBI.js → button.qxcuzbnv.js} +2 -2
- package/buttonround.BO7_ewzA.js +101 -0
- package/{checkbox.NJj9qMnx.js → checkbox.C9kyIY9P.js} +4 -5
- package/{checkboxgroup.DELdyn0X.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/{chip.C4h8Hm9g.js → chip.5ktNLRYf.js} +3 -3
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/ActionCard.HYDpsdai.js +227 -0
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.BPvIKT6B.js → AriaLiveRegions.utils.xoETe2Ps.js} +14 -16
- package/chunks/{Breadcrumb.Ccm79ver.js → Breadcrumb.I2G-T0zc.js} +2 -2
- 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.oEQpO9iN.js → CustomReactSelect.DTAavYaz.js} +282 -277
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/{Drawer.CDe_g99S.js → Drawer.CjUZu6GW.js} +27 -28
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/{Flag.X9tB3Mfv.js → Flag.CbQYBzVC.js} +12 -13
- package/chunks/{Header.bLSdAY9-.js → Header.CvcGSuhX.js} +1 -1
- package/chunks/{Input.utils.CkmzxIrU.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.CkULfdaW.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.BPvA2tuc.js +200 -0
- package/chunks/{MegaMenu.DbunD_yW.js → MegaMenu.udXR1H3W.js} +1 -1
- package/chunks/{NavigationTabList.CyrKNAer.js → NavigationTabList.thzA1pU8.js} +1 -1
- package/chunks/{NavigationTabs.DVBe-Wt3.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.KBRikedB.js → Stepper.Ds_aIEF8.js} +68 -69
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.xXn4zpGp.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.NZfb7z3q.js → Toast.V_ZUAsf2.js} +1 -1
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CPsl2TC0.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/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.D7BJg-2s.js → customreactselect.L0zSh3Tg.js} +4 -4
- package/{dialog.BlprGigG.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.BoyrTFi1.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.D_e2-vo_.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.CabPo1pv.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/{flag.0vpitrQ-.js → flag.fX6LAgty.js} +3 -4
- package/{floatingactionbutton.BrdE1vi2.js → floatingactionbutton.BwCiybnc.js} +1 -1
- package/{header.C3AqYBtz.js → header.BCeCjYfG.js} +1 -1
- package/index.es.js +203 -204
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.0CCdkjg5.js +17 -0
- package/{inputnumber.Box5R2An.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.CBc8GNwI.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DxEPueLb.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.CCY-VFWN.js → linkcard.CrspFGLZ.js} +3 -3
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.C8OynEzk.js → megamenu.odVCUm4c.js} +2 -2
- package/{navigationtablist.iSQd5PX4.js → navigationtablist.n9DrtYe5.js} +2 -2
- package/{navigationtabs.FtkVv_qV.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.Cqg8HpJ8.js → notification._X8-8vOa.js} +2 -2
- package/numberindicator.DsK65Bj3.js +39 -0
- package/package.json +6 -1
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +72 -72
- package/{popover.DYiEGSnj.js → popover.BBaqL7y9.js} +3 -3
- package/product-card-example-8.webp +0 -0
- package/progressindicator.CAb_O3VK.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.wqgExwrG.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.Dqnsxq2M.js → scroller.CgWp2WXG.js} +10 -11
- package/{select.DkKuGI6O.js → select.DTZ6a6Ag.js} +5 -6
- package/skeleton.BmkcNeRD.js +148 -0
- package/{skiptocontent.CRQywi6J.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.BOjqQp9n.js → slider.BMGAihY0.js} +3 -3
- package/{step.C6zDRCBu.js → step.DCQ6CawJ.js} +1 -1
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.es.js +3 -1
- package/styles/js/lib/animation.d.ts +2 -0
- package/styles/scss/ds/index.scss +2 -0
- package/styles/scss/ds/lib/animation.scss +4 -0
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +65 -21
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +4 -2
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- 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/{switch.CuNNdrkD.js → switch.tM2XBag8.js} +2 -2
- package/{systemfeedback.Da0wX0Eb.js → systemfeedback.BPPOht_9.js} +1 -1
- package/{tablist.BjKwrLz9.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.-U2k6Oll.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.BWznY6Gg.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CBLuAdaa.js → textutility.BypzssPt.js} +2 -2
- package/{toast.D9XLSgJg.js → toast.s0Hfuh5i.js} +2 -2
- package/{toastmanager.V5E05qgI.js → toastmanager.CPIPn4Io.js} +19 -20
- package/{tooltip.a1aWHK00.js → tooltip.BFQG-7VR.js} +1 -1
- package/{topbar.BdGK62KJ.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/assets/Accordion.DPu2l_Kg.css +0 -1
- package/assets/ActionButton.DcQYatF1.css +0 -1
- package/assets/ActionCard.gRQVVFWz.css +0 -1
- package/assets/ActionLink.B62Aa8y9.css +0 -1
- package/assets/Button.BI6zz6Fw.css +0 -1
- package/assets/Checkbox.DknHnS9a.css +0 -1
- package/assets/Chip.CYhVB1Jh.css +0 -1
- package/assets/CustomReactSelect.lKMLwL7n.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.IRb7Vc1n.css +0 -1
- package/assets/Fieldset.C4Fx4-UV.css +0 -1
- package/assets/InputFile.ne7gwc_5.css +0 -1
- package/assets/InputNumber.BIdsQuFc.css +0 -1
- package/assets/InputPassword.YSKTDTA1.css +0 -1
- package/assets/InputSearch.C3qtDQcj.css +0 -1
- package/assets/LinkButton.CmEE7Od_.css +0 -1
- package/assets/LinkCard.pJtgJRIh.css +0 -1
- package/assets/Notification.BO0Mu9No.css +0 -1
- package/assets/Pagination.OLmfdASf.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.CDP-1_K9.css +0 -1
- package/assets/Slider.Cu7MgNph.css +0 -1
- package/assets/TextUtility.bwkCWEiV.css +0 -1
- package/assets/Textarea.Hsq68tg1.css +0 -1
- package/assets/buttonround.rmUb58WF.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.cP3O1JeJ.css +0 -1
- package/assets/input.BEBgyvkK.css +0 -1
- package/assets/numberindicator.DSpNPJcs.css +0 -1
- package/assets/progressindicator.Dxrigyne.css +0 -1
- package/assets/radio.DsHt-9om.css +0 -1
- package/assets/skeleton.BjozXDiQ.css +0 -1
- package/assets/switch.fwcMI6o7.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.Doa-APfR.css +0 -1
- package/assets/tooltip.DrSplliO.css +0 -1
- package/buttonround.BeQakrPs.js +0 -101
- package/chipgroup.BKjeuuM0.js +0 -213
- package/chunks/Accordion.8kTbiPxs.js +0 -173
- package/chunks/ActionButton.CBV1-_HP.js +0 -188
- package/chunks/ActionCard.Dbq2VqyZ.js +0 -227
- package/chunks/ActionLink.BXxDS1Gg.js +0 -161
- package/chunks/Button.COycNYUI.js +0 -160
- package/chunks/Checkbox.CMshaWIU.js +0 -88
- package/chunks/CheckboxGroup.D3D1spfJ.js +0 -79
- package/chunks/Chip.DCJYE513.js +0 -157
- package/chunks/Dialog.lJXxzgu2.js +0 -102
- package/chunks/Fieldset.DOjI3DlI.js +0 -91
- package/chunks/InputFile.DYXvF6vT.js +0 -260
- package/chunks/InputNumber.CkWpchPo.js +0 -240
- package/chunks/InputPassword.21E6XMr5.js +0 -121
- package/chunks/InputSearch.Dy3EKa9f.js +0 -149
- package/chunks/LinkButton.BCHTLFMJ.js +0 -150
- package/chunks/LinkCard.BYmTwsS5.js +0 -197
- package/chunks/Notification.BjyLiO2h.js +0 -91
- package/chunks/Pagination.CJikF9Cw.js +0 -247
- package/chunks/Popover.ByaoNwGK.js +0 -221
- package/chunks/RadioGroup.Bh2X6pT9.js +0 -130
- package/chunks/Select.KWb09VmF.js +0 -147
- package/chunks/Slider.CxnIy51F.js +0 -309
- package/chunks/SystemFeedback.4osheYxC.js +0 -38
- package/chunks/Text.utils.BZ4nTZVu.js +0 -11
- package/chunks/TextUtility.BPrxUX-x.js +0 -82
- package/chunks/Textarea.CAOqZMUi.js +0 -181
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.DfAt2xJa.js +0 -128
- package/filepreview.Defs34bv.js +0 -94
- package/input.ChMzyHej.js +0 -175
- package/inputfile.DZIUs1EC.js +0 -18
- package/inputsearch.DzzYb-C0.js +0 -15
- package/link.aU1f2Xzu.js +0 -81
- package/numberindicator.Q7g4J3Ry.js +0 -36
- package/pagination.DA4PMLOq.js +0 -14
- package/progressindicator.DpmERE8T.js +0 -53
- package/radio.KQ8CUM3_.js +0 -137
- package/skeleton.DUkBgXxO.js +0 -148
- package/stepper.DHl3_XU9.js +0 -16
- package/text.CnP3baHy.js +0 -72
|
@@ -1,18 +1,24 @@
|
|
|
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 *;
|
|
6
7
|
@use '../spacing-rem' as *;
|
|
8
|
+
@use '../radius' as *;
|
|
7
9
|
@use '../text' as *;
|
|
8
10
|
@use '../theme' as *;
|
|
9
11
|
@use '../transition' as *;
|
|
10
12
|
|
|
11
|
-
@mixin input-label-base($hasHint: false) {
|
|
13
|
+
@mixin input-label-base($hasHint: false, $theme: 'light') {
|
|
12
14
|
@include utility-medium;
|
|
13
15
|
display: block;
|
|
14
16
|
min-height: $spacing-24-rem;
|
|
15
17
|
|
|
18
|
+
@if $theme == 'dark' {
|
|
19
|
+
color: $theme-dark-content-color-primary;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
|
|
17
23
|
&:has(input) {
|
|
18
24
|
padding-block-start: $spacing-2;
|
|
@@ -68,14 +74,18 @@
|
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
@mixin input-hint-base() {
|
|
77
|
+
@mixin input-hint-base($theme: 'light') {
|
|
72
78
|
@include utility-small;
|
|
73
79
|
display: block;
|
|
74
80
|
max-width: 25.5rem;
|
|
75
81
|
margin-block-end: $spacing-8;
|
|
82
|
+
|
|
83
|
+
@if $theme == 'dark' {
|
|
84
|
+
color: $theme-dark-content-color-primary;
|
|
85
|
+
}
|
|
76
86
|
}
|
|
77
87
|
|
|
78
|
-
@mixin input-base($size) {
|
|
88
|
+
@mixin input-base($size, $theme: 'light') {
|
|
79
89
|
@if ($size == 'medium') {
|
|
80
90
|
|
|
81
91
|
@include utility-medium;
|
|
@@ -95,12 +105,16 @@
|
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
|
|
98
|
-
@include focus($offset: 0, $thickness: $spacing-1);
|
|
108
|
+
@include focus($theme: $theme, $offset: 0, $thickness: $spacing-1);
|
|
99
109
|
@include transition((background-color, color));
|
|
100
110
|
|
|
101
111
|
@include hover-media-query {
|
|
102
112
|
&:hover {
|
|
103
|
-
|
|
113
|
+
@if $theme == 'light' {
|
|
114
|
+
background: $theme-light-background-color-transparent-hover;
|
|
115
|
+
} @else {
|
|
116
|
+
background: $theme-dark-background-color-transparent-hover;
|
|
117
|
+
}
|
|
104
118
|
@include high-contrast-media-query {
|
|
105
119
|
border-color: Highlight;
|
|
106
120
|
}
|
|
@@ -109,31 +123,50 @@
|
|
|
109
123
|
|
|
110
124
|
& {
|
|
111
125
|
background: transparent;
|
|
112
|
-
border: $
|
|
113
|
-
border-radius: 0;
|
|
114
|
-
color: $theme-light-content-color-primary;
|
|
126
|
+
border-radius: $radius-none;
|
|
115
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
|
+
}
|
|
116
135
|
}
|
|
117
136
|
|
|
118
137
|
&[readonly] {
|
|
119
|
-
background-color: $theme-light-background-color-tertiary;
|
|
120
138
|
border-color: transparent;
|
|
121
|
-
|
|
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
|
+
}
|
|
122
146
|
|
|
123
|
-
@include focus($offset: 0, $thickness: $spacing-2);
|
|
147
|
+
@include focus($theme: $theme, $offset: 0, $thickness: $spacing-2);
|
|
124
148
|
}
|
|
125
149
|
|
|
126
150
|
&:disabled {
|
|
127
151
|
background-color: transparent;
|
|
128
|
-
border-color: $theme-light-border-color-primary-disabled;
|
|
129
|
-
color: $theme-light-content-color-primary-disabled;
|
|
130
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
|
+
}
|
|
131
160
|
}
|
|
132
161
|
|
|
133
162
|
&::-webkit-placeholder,
|
|
134
163
|
&::placeholder {
|
|
135
|
-
color: $theme-light-content-color-secondary;
|
|
136
164
|
opacity: 1;
|
|
165
|
+
@if $theme == 'light' {
|
|
166
|
+
color: $theme-light-content-color-secondary;
|
|
167
|
+
} @else {
|
|
168
|
+
color: $theme-dark-content-color-secondary;
|
|
169
|
+
}
|
|
137
170
|
}
|
|
138
171
|
|
|
139
172
|
|
|
@@ -185,13 +218,24 @@
|
|
|
185
218
|
}
|
|
186
219
|
}
|
|
187
220
|
|
|
188
|
-
@mixin input-invalid() {
|
|
189
|
-
|
|
190
|
-
|
|
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;
|
|
191
225
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
+
}
|
|
196
240
|
}
|
|
197
241
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
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 *;
|
|
7
9
|
@use '../spacing-rem' as *;
|
|
8
10
|
@use '../text' as *;
|
|
@@ -37,7 +39,7 @@ $link-button-size-medium: $spacing-48-rem;
|
|
|
37
39
|
display: inline-flex;
|
|
38
40
|
justify-content: center;
|
|
39
41
|
align-items: center;
|
|
40
|
-
border-width: $
|
|
42
|
+
border-width: $border-width-1;
|
|
41
43
|
border-style: solid;
|
|
42
44
|
border-color: transparent;
|
|
43
45
|
gap: $spacing-8;
|
|
@@ -150,7 +152,7 @@ $link-button-size-medium: $spacing-48-rem;
|
|
|
150
152
|
@include utility-large-bold;
|
|
151
153
|
color: $theme-light-content-color-primary;
|
|
152
154
|
|
|
153
|
-
border-radius: $
|
|
155
|
+
border-radius: $radius-xs;
|
|
154
156
|
|
|
155
157
|
min-height: $link-button-size-small;
|
|
156
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);
|
|
@@ -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
|
}
|
|
@@ -5,11 +5,11 @@ import { c as q } from "./chunks/index.DQOqod3i.js";
|
|
|
5
5
|
import { forwardRef as z } from "react";
|
|
6
6
|
import { D as A } from "./chunks/Icon.DYtaQgbw.js";
|
|
7
7
|
import { DSSpinner as B } from "./spinner.DtLnsqVV.js";
|
|
8
|
-
import './assets/switch.
|
|
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
9
|
root: F,
|
|
10
10
|
rootLabelRight: G,
|
|
11
11
|
rootStretched: H,
|
|
12
|
-
switch: "ds-
|
|
12
|
+
switch: "ds-switch_switch_1c6he_48",
|
|
13
13
|
loader: J,
|
|
14
14
|
thumb: K,
|
|
15
15
|
rootChecked: M
|
|
@@ -4,7 +4,7 @@ import "./chunks/index.cKLI89Eg.js";
|
|
|
4
4
|
import "./chunks/index.DQOqod3i.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "./chunks/Icon.DYtaQgbw.js";
|
|
7
|
-
import { D as s } from "./chunks/SystemFeedback.
|
|
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
|
};
|
package/text.BEO_ZfJq.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
3
|
+
import { d as $ } from "./chunks/index.cKLI89Eg.js";
|
|
4
|
+
import { c as P } from "./chunks/index.DQOqod3i.js";
|
|
5
|
+
import { useRef as R, useEffect as j } from "react";
|
|
6
|
+
import { i as M } from "./chunks/Text.utils.DzlY9pJS.js";
|
|
7
|
+
import { g as L } from "./chunks/helpers.CexwVao7.js";
|
|
8
|
+
import './assets/text.BwGsYzGM.css';const C = "ds-text_root_1skzv_6", O = "ds-text_root--large_1skzv_15", V = "ds-text_root--large-bold_1skzv_26", W = "ds-text_root--medium_1skzv_38", q = "ds-text_root--medium-bold_1skzv_49", A = "ds-text_root--small_1skzv_61", F = "ds-text_root--small-bold_1skzv_72", G = "ds-text_root--x-small_1skzv_84", H = "ds-text_root--x-small-bold_1skzv_95", I = "ds-text_root--xx-small_1skzv_107", J = "ds-text_root--theme-dark_1skzv_219", o = {
|
|
9
|
+
root: C,
|
|
10
|
+
rootLarge: O,
|
|
11
|
+
rootLargeBold: V,
|
|
12
|
+
rootMedium: W,
|
|
13
|
+
rootMediumBold: q,
|
|
14
|
+
rootSmall: A,
|
|
15
|
+
rootSmallBold: F,
|
|
16
|
+
rootXSmall: G,
|
|
17
|
+
rootXSmallBold: H,
|
|
18
|
+
rootXxSmall: I,
|
|
19
|
+
rootThemeDark: J
|
|
20
|
+
}, ot = (g) => {
|
|
21
|
+
const t = $.c(28);
|
|
22
|
+
let l, r, a, m, i, n, d;
|
|
23
|
+
t[0] !== g ? ({
|
|
24
|
+
children: l,
|
|
25
|
+
className: r,
|
|
26
|
+
size: m,
|
|
27
|
+
tag: i,
|
|
28
|
+
theme: n,
|
|
29
|
+
weight: d,
|
|
30
|
+
...a
|
|
31
|
+
} = g, t[0] = g, t[1] = l, t[2] = r, t[3] = a, t[4] = m, t[5] = i, t[6] = n, t[7] = d) : (l = t[1], r = t[2], a = t[3], m = t[4], i = t[5], n = t[6], d = t[7]);
|
|
32
|
+
const e = m === void 0 ? "medium" : m, s = i === void 0 ? "p" : i, N = n === void 0 ? "light" : n, c = d === void 0 ? "normal" : d, _ = R(null);
|
|
33
|
+
let x, h;
|
|
34
|
+
t[8] !== s ? (x = () => {
|
|
35
|
+
if (_.current && process.env.NODE_ENV !== "production")
|
|
36
|
+
t: switch (s) {
|
|
37
|
+
case "li": {
|
|
38
|
+
if (!M(_.current, "ul, ol"))
|
|
39
|
+
throw Error(L("DSText", `The DSText component with the tag "${s}" is not within a list element (ul, ol). This may cause issues with list semantics. Please ensure the DSText component is within a list element.`));
|
|
40
|
+
break t;
|
|
41
|
+
}
|
|
42
|
+
case "dt":
|
|
43
|
+
case "dd": {
|
|
44
|
+
if (!M(_.current, "dl"))
|
|
45
|
+
throw Error(L("DSText", `The DSText component with the tag "${s}" is not within a list element (dl). This may cause issues with list semantics. Please ensure the DSText component is within a list element.`));
|
|
46
|
+
break t;
|
|
47
|
+
}
|
|
48
|
+
default:
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}, h = [s], t[8] = s, t[9] = x, t[10] = h) : (x = t[9], h = t[10]), j(x, h);
|
|
52
|
+
const f = s, k = e === "large", v = e === "large" && c === "bold", p = e == "medium", T = e === "medium" && c === "bold", w = e == "small", z = e == "small" && c === "bold", B = e == "x-small", D = e == "x-small" && c === "bold", b = e == "xx-small", X = N === "dark";
|
|
53
|
+
let u;
|
|
54
|
+
t[11] !== r || t[12] !== T || t[13] !== w || t[14] !== z || t[15] !== B || t[16] !== D || t[17] !== b || t[18] !== X || t[19] !== k || t[20] !== v || t[21] !== p ? (u = P(o.root, r, {
|
|
55
|
+
[o.rootLarge]: k,
|
|
56
|
+
[o.rootLargeBold]: v,
|
|
57
|
+
[o.rootMedium]: p,
|
|
58
|
+
[o.rootMediumBold]: T,
|
|
59
|
+
[o.rootSmall]: w,
|
|
60
|
+
[o.rootSmallBold]: z,
|
|
61
|
+
[o.rootXSmall]: B,
|
|
62
|
+
[o.rootXSmallBold]: D,
|
|
63
|
+
[o.rootXxSmall]: b,
|
|
64
|
+
[o.rootThemeDark]: X
|
|
65
|
+
}), t[11] = r, t[12] = T, t[13] = w, t[14] = z, t[15] = B, t[16] = D, t[17] = b, t[18] = X, t[19] = k, t[20] = v, t[21] = p, t[22] = u) : u = t[22];
|
|
66
|
+
const E = u;
|
|
67
|
+
let S;
|
|
68
|
+
return t[23] !== f || t[24] !== l || t[25] !== a || t[26] !== E ? (S = /* @__PURE__ */ y(f, { className: E, ref: _, ...a, children: l }), t[23] = f, t[24] = l, t[25] = a, t[26] = E, t[27] = S) : S = t[27], S;
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
ot as DSText
|
|
72
|
+
};
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./chunks/index.DQOqod3i.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./chunks/helpers.CexwVao7.js";
|
|
6
5
|
import "./chunks/useBreakpoint.1txsny17.js";
|
|
7
|
-
import "./chunks/index.cKLI89Eg.js";
|
|
8
6
|
import "./asterisk.Dwtdwpkq.js";
|
|
9
|
-
import "./chunks/Popover.
|
|
10
|
-
import "./chunks/SystemFeedback.
|
|
11
|
-
import { D
|
|
7
|
+
import "./chunks/Popover.CxZZ_y1Z.js";
|
|
8
|
+
import "./chunks/SystemFeedback.DhWcYjnu.js";
|
|
9
|
+
import { D } from "./chunks/Textarea.vuJgvW6_.js";
|
|
10
|
+
import "./chunks/helpers.CexwVao7.js";
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
D as DSTextarea
|
|
14
13
|
};
|
|
@@ -3,9 +3,9 @@ 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/Text.utils.DzlY9pJS.js";
|
|
7
|
+
import { D as s } from "./chunks/TextUtility.BZLwqyic.js";
|
|
6
8
|
import "./chunks/helpers.CexwVao7.js";
|
|
7
|
-
import "./chunks/Text.utils.BZ4nTZVu.js";
|
|
8
|
-
import { D as s } from "./chunks/TextUtility.BPrxUX-x.js";
|
|
9
9
|
export {
|
|
10
10
|
s as DSTextUtility
|
|
11
11
|
};
|
|
@@ -3,9 +3,9 @@ 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/Button.
|
|
6
|
+
import "./chunks/Button.CCol--xy.js";
|
|
7
7
|
import "./chunks/Icon.DYtaQgbw.js";
|
|
8
|
-
import { D as a } from "./chunks/Toast.
|
|
8
|
+
import { D as a } from "./chunks/Toast.V_ZUAsf2.js";
|
|
9
9
|
export {
|
|
10
10
|
a as DSToast
|
|
11
11
|
};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as C, jsx as O } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as b, useState as h, useRef as L, useEffect as v, useMemo as _, useContext as y } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import { s as R, f as U } from "./chunks/AriaLiveRegions.utils.BPvIKT6B.js";
|
|
7
|
-
import { D as j, s as q } from "./chunks/Toast.NZfb7z3q.js";
|
|
4
|
+
import { s as R, f as U } from "./chunks/AriaLiveRegions.utils.xoETe2Ps.js";
|
|
5
|
+
import { D as j, s as q } from "./chunks/Toast.V_ZUAsf2.js";
|
|
8
6
|
import { h as Q } from "./chunks/has-window.ut_-aShB.js";
|
|
7
|
+
import { g } from "./chunks/helpers.CexwVao7.js";
|
|
9
8
|
const k = () => {
|
|
10
9
|
if (!Q)
|
|
11
10
|
return;
|
|
12
11
|
if (document.querySelectorAll("[data-ds-toast]").length > 1)
|
|
13
12
|
throw new Error(g("DSToast", 'The destructured "toast" element should only be used once in the DOM.'));
|
|
14
|
-
}, n = "data-ds-toast-timeout-id", S = "closing", B = 1e4, D = b(void 0),
|
|
13
|
+
}, n = "data-ds-toast-timeout-id", S = "closing", B = 1e4, D = b(void 0), H = () => {
|
|
15
14
|
const r = y(D);
|
|
16
15
|
if (!r)
|
|
17
16
|
throw new Error(g("DSToastProvider", "useDSToast must be used within a <DSToastProvider />, which wraps around your root component."));
|
|
18
17
|
return r;
|
|
19
|
-
},
|
|
18
|
+
}, J = ({
|
|
20
19
|
children: r
|
|
21
20
|
}) => {
|
|
22
|
-
const [u, a] = h([]), [o,
|
|
21
|
+
const [u, a] = h([]), [o, c] = h(null), e = L(null);
|
|
23
22
|
v(() => {
|
|
24
23
|
!o && u.length > 0 && setTimeout(() => {
|
|
25
|
-
|
|
24
|
+
c(u[0]);
|
|
26
25
|
});
|
|
27
26
|
}, [u]), v(() => {
|
|
28
|
-
o && (
|
|
27
|
+
o && (w(o.message, o.variant), I());
|
|
29
28
|
}, [o]);
|
|
30
|
-
const
|
|
29
|
+
const i = () => e.current?.getAttribute(n) || null, l = (t) => {
|
|
31
30
|
e.current?.setAttribute(n, t);
|
|
32
|
-
}, M = () => e.current?.removeAttribute(n),
|
|
31
|
+
}, M = () => e.current?.removeAttribute(n), w = (t, s) => {
|
|
33
32
|
s === "warning" ? R(t, "DSToast") : (s === "success" || s === "info") && U(t, "DSToast");
|
|
34
33
|
}, T = (t, s) => {
|
|
35
34
|
const P = {
|
|
@@ -40,27 +39,27 @@ const k = () => {
|
|
|
40
39
|
onClick: () => {
|
|
41
40
|
f();
|
|
42
41
|
},
|
|
43
|
-
onMouseEnter:
|
|
44
|
-
onMouseLeave:
|
|
42
|
+
onMouseEnter: A,
|
|
43
|
+
onMouseLeave: p
|
|
45
44
|
};
|
|
46
45
|
a((x) => [...x, P]);
|
|
47
|
-
},
|
|
46
|
+
}, A = () => {
|
|
48
47
|
m();
|
|
49
48
|
}, m = () => {
|
|
50
|
-
const t =
|
|
49
|
+
const t = i();
|
|
51
50
|
t && (clearTimeout(t), e.current?.removeAttribute(n));
|
|
52
51
|
}, d = () => {
|
|
53
52
|
const t = setTimeout(() => {
|
|
54
53
|
f();
|
|
55
54
|
}, B);
|
|
56
55
|
l(String(t));
|
|
57
|
-
},
|
|
58
|
-
|
|
56
|
+
}, p = () => {
|
|
57
|
+
i() !== S && e.current && d();
|
|
59
58
|
}, I = () => {
|
|
60
59
|
k(), o && e.current?.showPopover && (e.current.showPopover(), d());
|
|
61
60
|
}, f = () => {
|
|
62
61
|
m(), l(S), e.current && (e.current.addEventListener("animationend", () => {
|
|
63
|
-
e.current?.hidePopover && (e.current.hidePopover(), M(), e.current = null, a((t) => t.slice(1)),
|
|
62
|
+
e.current?.hidePopover && (e.current.hidePopover(), M(), e.current = null, a((t) => t.slice(1)), c(null));
|
|
64
63
|
}, {
|
|
65
64
|
once: !0
|
|
66
65
|
// removes event listener after being called once
|
|
@@ -74,6 +73,6 @@ const k = () => {
|
|
|
74
73
|
] });
|
|
75
74
|
};
|
|
76
75
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
J as DSToastProvider,
|
|
77
|
+
H as useDSToast
|
|
79
78
|
};
|