@stihl-design-system/components 1.0.0-RC.47 → 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.BQ7vavIt.js → accordion.D4XR2R7e.js} +2 -2
- package/{actionbutton.C7lqEmBx.js → actionbutton.C8hePX-D.js} +3 -3
- package/{actioncard.dgVHW0BC.js → actioncard.kDxu01xm.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.viEoC26n.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/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.tyY_RVQ9.css +1 -0
- package/assets/radio.9hUUyg8R.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.Dbq2VqyZ.js → ActionCard.Bm-2ewfS.js} +44 -44
- 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.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.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.GrEwoM1u.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.DiZh3GcT.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.BtM3KnjT.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 +68 -68
- package/{popover.DYiEGSnj.js → popover.BBaqL7y9.js} +3 -3
- package/progressindicator.D9CfVD95.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.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
- 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/scss/ds/index.scss +2 -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/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/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/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/stepper.DHl3_XU9.js +0 -16
- package/text.CnP3baHy.js +0 -72
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as E } from "react/jsx-runtime";
|
|
3
|
+
import { c as r } from "./index.DQOqod3i.js";
|
|
4
|
+
import { useRef as g, useState as F, useEffect as b } from "react";
|
|
5
|
+
import { D as W } from "./Button.CCol--xy.js";
|
|
6
|
+
import { g as k } from "./helpers.CexwVao7.js";
|
|
7
|
+
import '../assets/Dialog.6AkQo8ew.css';const x = "ds-dialog_root_12p4q_5", R = "ds-dialog_content-wrapper_12p4q_184", y = "ds-dialog_content-wrapper--no-footer_12p4q_190", z = "ds-dialog_close-button_12p4q_198", L = "ds-dialog_header_12p4q_211", M = "ds-dialog_content_12p4q_184", j = "ds-dialog_footer_12p4q_213", H = "ds-dialog_header--scrollable_12p4q_234", I = "ds-dialog_header--close-button_12p4q_243", O = "ds-dialog_content--no-footer_12p4q_256", P = "ds-dialog_footer--scrollable_12p4q_291", o = {
|
|
8
|
+
root: x,
|
|
9
|
+
contentWrapper: R,
|
|
10
|
+
contentWrapperNoFooter: y,
|
|
11
|
+
closeButton: z,
|
|
12
|
+
header: L,
|
|
13
|
+
content: M,
|
|
14
|
+
footer: j,
|
|
15
|
+
headerScrollable: H,
|
|
16
|
+
headerCloseButton: I,
|
|
17
|
+
contentNoFooter: O,
|
|
18
|
+
footerScrollable: P
|
|
19
|
+
}, T = ({
|
|
20
|
+
tabIndex: s
|
|
21
|
+
}) => {
|
|
22
|
+
if (s || s === 0)
|
|
23
|
+
throw new Error(k("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
|
|
24
|
+
}, Q = ({
|
|
25
|
+
children: s,
|
|
26
|
+
className: m,
|
|
27
|
+
closeButtonProps: D,
|
|
28
|
+
disableBackdropClose: S = !1,
|
|
29
|
+
footer: c,
|
|
30
|
+
header: v,
|
|
31
|
+
hideCloseButton: a = !1,
|
|
32
|
+
isOpen: i = !1,
|
|
33
|
+
onClose: l,
|
|
34
|
+
...d
|
|
35
|
+
}) => {
|
|
36
|
+
if (process.env.NODE_ENV !== "production") {
|
|
37
|
+
const {
|
|
38
|
+
tabIndex: e
|
|
39
|
+
} = d;
|
|
40
|
+
T({
|
|
41
|
+
tabIndex: e
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
const {
|
|
45
|
+
label: N = "Close dialog",
|
|
46
|
+
...q
|
|
47
|
+
} = D || {}, t = g(null), p = g(null), [u, B] = F(!1);
|
|
48
|
+
b(() => {
|
|
49
|
+
const e = p.current;
|
|
50
|
+
if (e) {
|
|
51
|
+
const _ = () => {
|
|
52
|
+
B(e.scrollHeight > e.clientHeight);
|
|
53
|
+
};
|
|
54
|
+
_();
|
|
55
|
+
const h = new ResizeObserver(_);
|
|
56
|
+
return h.observe(e), () => {
|
|
57
|
+
h.disconnect();
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}, []), b(() => {
|
|
61
|
+
const e = t.current;
|
|
62
|
+
if (e)
|
|
63
|
+
return e.addEventListener("close", f), i ? e.showModal() : e.close(), () => {
|
|
64
|
+
e.removeEventListener("close", f);
|
|
65
|
+
};
|
|
66
|
+
}, [i, l]);
|
|
67
|
+
const f = () => {
|
|
68
|
+
l && l();
|
|
69
|
+
}, w = (e) => {
|
|
70
|
+
S || t.current && e.target === t.current && t.current.close();
|
|
71
|
+
}, C = () => {
|
|
72
|
+
t.current && t.current.close();
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ n("dialog", { ...d, ref: t, className: r(o.root, m), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
|
|
75
|
+
[o.contentWrapperNoFooter]: !c
|
|
76
|
+
}), children: [
|
|
77
|
+
!a && /* @__PURE__ */ n(W, { ...q, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: N }),
|
|
78
|
+
/* @__PURE__ */ n("header", { className: r(o.header, {
|
|
79
|
+
[o.headerCloseButton]: !a,
|
|
80
|
+
[o.headerScrollable]: u
|
|
81
|
+
}), children: v }),
|
|
82
|
+
/* @__PURE__ */ n(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
ref: p,
|
|
86
|
+
className: r(o.content, {
|
|
87
|
+
[o.contentNoFooter]: !c
|
|
88
|
+
}),
|
|
89
|
+
tabIndex: 0,
|
|
90
|
+
children: s
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
c && /* @__PURE__ */ n("footer", { className: r(o.footer, {
|
|
94
|
+
[o.footerScrollable]: u
|
|
95
|
+
}), children: c })
|
|
96
|
+
] }) });
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
Q as D,
|
|
100
|
+
T as v
|
|
101
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as o, jsxs as F } from "react/jsx-runtime";
|
|
3
3
|
import { c as n } from "./index.DQOqod3i.js";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { D as k } from "./Button.
|
|
4
|
+
import { useRef as w, useState as R, useEffect as m } from "react";
|
|
5
|
+
import { D as k } from "./Button.CCol--xy.js";
|
|
6
6
|
import { g as x } from "./helpers.CexwVao7.js";
|
|
7
|
-
import
|
|
8
|
-
import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O = "ds-drawer_root--end_1rvi9_68", y = "ds-drawer_content-wrapper_1rvi9_169", z = "ds-drawer_content-wrapper--no-footer_1rvi9_175", L = "ds-drawer_close-button_1rvi9_178", M = "ds-drawer_header_1rvi9_191", P = "ds-drawer_content_1rvi9_169", j = "ds-drawer_footer_1rvi9_193", H = "ds-drawer_header--scrollable_1rvi9_214", T = "ds-drawer_header--close-button_1rvi9_223", A = "ds-drawer_content--no-footer_1rvi9_265", V = "ds-drawer_footer--scrollable_1rvi9_272", r = {
|
|
7
|
+
import '../assets/Drawer.CDOlX809.css';const I = "ds-drawer_root_1dt5r_10", O = "ds-drawer_root--end_1dt5r_68", y = "ds-drawer_content-wrapper_1dt5r_187", z = "ds-drawer_content-wrapper--no-footer_1dt5r_193", L = "ds-drawer_close-button_1dt5r_196", M = "ds-drawer_header_1dt5r_209", P = "ds-drawer_content_1dt5r_187", j = "ds-drawer_footer_1dt5r_211", H = "ds-drawer_header--scrollable_1dt5r_232", T = "ds-drawer_header--close-button_1dt5r_241", A = "ds-drawer_content--no-footer_1dt5r_283", V = "ds-drawer_footer--scrollable_1dt5r_290", r = {
|
|
9
8
|
root: I,
|
|
10
9
|
rootEnd: O,
|
|
11
10
|
contentWrapper: y,
|
|
@@ -18,20 +17,20 @@ import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O =
|
|
|
18
17
|
headerCloseButton: T,
|
|
19
18
|
contentNoFooter: A,
|
|
20
19
|
footerScrollable: V
|
|
21
|
-
},
|
|
20
|
+
}, X = ["start", "end"], q = ({
|
|
22
21
|
tabIndex: s
|
|
23
22
|
}) => {
|
|
24
23
|
if (s || s === 0)
|
|
25
24
|
throw new Error(x("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
|
|
26
|
-
},
|
|
25
|
+
}, Y = ({
|
|
27
26
|
children: s,
|
|
28
|
-
className:
|
|
29
|
-
closeButtonProps:
|
|
30
|
-
disableBackdropClose:
|
|
27
|
+
className: b,
|
|
28
|
+
closeButtonProps: D,
|
|
29
|
+
disableBackdropClose: S = !1,
|
|
31
30
|
footer: c,
|
|
32
|
-
header:
|
|
31
|
+
header: N,
|
|
33
32
|
hideCloseButton: l = !1,
|
|
34
|
-
position:
|
|
33
|
+
position: v = "start",
|
|
35
34
|
isOpen: d = !1,
|
|
36
35
|
onClose: a,
|
|
37
36
|
...i
|
|
@@ -47,8 +46,8 @@ import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O =
|
|
|
47
46
|
const {
|
|
48
47
|
label: E = "Close modal",
|
|
49
48
|
...g
|
|
50
|
-
} =
|
|
51
|
-
|
|
49
|
+
} = D || {}, t = w(null), _ = w(null), [u, B] = R(!1);
|
|
50
|
+
m(() => {
|
|
52
51
|
const e = _.current;
|
|
53
52
|
if (e) {
|
|
54
53
|
const h = () => {
|
|
@@ -60,8 +59,8 @@ import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O =
|
|
|
60
59
|
p.disconnect();
|
|
61
60
|
};
|
|
62
61
|
}
|
|
63
|
-
}, []),
|
|
64
|
-
const e =
|
|
62
|
+
}, []), m(() => {
|
|
63
|
+
const e = t.current;
|
|
65
64
|
if (e)
|
|
66
65
|
return e.addEventListener("close", f), d ? e.showModal() : e.close(), () => {
|
|
67
66
|
e.removeEventListener("close", f);
|
|
@@ -70,21 +69,21 @@ import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O =
|
|
|
70
69
|
const f = () => {
|
|
71
70
|
a && a();
|
|
72
71
|
}, C = (e) => {
|
|
73
|
-
|
|
72
|
+
S || t.current && e.target === t.current && t.current.close();
|
|
74
73
|
}, W = () => {
|
|
75
|
-
|
|
74
|
+
t.current && t.current.close();
|
|
76
75
|
};
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
[r.rootEnd]:
|
|
79
|
-
}), onMouseDown: (e) => C(e), "aria-modal": "true", children: /* @__PURE__ */ F("div", { className: n(r.contentWrapper,
|
|
76
|
+
return /* @__PURE__ */ o("dialog", { ...i, ref: t, className: n(r.root, {
|
|
77
|
+
[r.rootEnd]: v === "end"
|
|
78
|
+
}), onMouseDown: (e) => C(e), "aria-modal": "true", children: /* @__PURE__ */ F("div", { className: n(r.contentWrapper, b, {
|
|
80
79
|
[r.contentWrapperNoFooter]: !c
|
|
81
80
|
}), children: [
|
|
82
|
-
!l && /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
81
|
+
!l && /* @__PURE__ */ o(k, { ...g, className: r.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => W(), children: E }),
|
|
82
|
+
/* @__PURE__ */ o("header", { className: n(r.header, {
|
|
84
83
|
[r.headerCloseButton]: !l,
|
|
85
84
|
[r.headerScrollable]: u
|
|
86
|
-
}), children:
|
|
87
|
-
/* @__PURE__ */
|
|
85
|
+
}), children: N }),
|
|
86
|
+
/* @__PURE__ */ o(
|
|
88
87
|
"div",
|
|
89
88
|
{
|
|
90
89
|
ref: _,
|
|
@@ -95,13 +94,13 @@ import '../assets/Drawer.IRb7Vc1n.css';const I = "ds-drawer_root_1rvi9_10", O =
|
|
|
95
94
|
children: s
|
|
96
95
|
}
|
|
97
96
|
),
|
|
98
|
-
c && /* @__PURE__ */
|
|
97
|
+
c && /* @__PURE__ */ o("footer", { className: n(r.footer, {
|
|
99
98
|
[r.footerScrollable]: u
|
|
100
99
|
}), children: c })
|
|
101
100
|
] }) });
|
|
102
101
|
};
|
|
103
102
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
X as D,
|
|
104
|
+
Y as a,
|
|
106
105
|
q as v
|
|
107
106
|
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as t, Fragment as H } from "react/jsx-runtime";
|
|
3
|
+
import { c as _ } from "./index.DQOqod3i.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { u as L } from "./useBreakpoint.1txsny17.js";
|
|
6
|
+
import { Asterisk as F } from "../asterisk.Dwtdwpkq.js";
|
|
7
|
+
import { DSHeading as M } from "../heading.BHSklXho.js";
|
|
8
|
+
import { D as x } from "./Popover.CxZZ_y1Z.js";
|
|
9
|
+
import { D as B } from "./SystemFeedback.DhWcYjnu.js";
|
|
10
|
+
import { g as u } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/Fieldset.BbLGXCWa.css';const E = "ds-fieldset_root_z6gah_1", T = "ds-fieldset_root--dark_z6gah_115", A = "ds-fieldset_child-wrapper_z6gah_220", I = "ds-fieldset_legend-wrapper_z6gah_227", U = "ds-fieldset_legend_z6gah_227", O = "ds-fieldset_legend--hidden_z6gah_238", V = "ds-fieldset_legend--utility--m_z6gah_253", $ = "ds-fieldset_description_z6gah_265", G = "ds-fieldset_description--small_z6gah_279", J = "ds-fieldset_system-feedback_z6gah_283", e = {
|
|
12
|
+
root: E,
|
|
13
|
+
rootDark: T,
|
|
14
|
+
childWrapper: A,
|
|
15
|
+
legendWrapper: I,
|
|
16
|
+
legend: U,
|
|
17
|
+
legendHidden: O,
|
|
18
|
+
legendUtilityM: V,
|
|
19
|
+
description: $,
|
|
20
|
+
descriptionSmall: G,
|
|
21
|
+
systemFeedback: J
|
|
22
|
+
}, K = ({
|
|
23
|
+
description: l,
|
|
24
|
+
hideLegend: c,
|
|
25
|
+
id: s,
|
|
26
|
+
legend: p,
|
|
27
|
+
popoverContent: i,
|
|
28
|
+
systemFeedback: g
|
|
29
|
+
}) => {
|
|
30
|
+
if (!s && (l || g))
|
|
31
|
+
throw new Error(u("DSFieldset", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'));
|
|
32
|
+
if (!p)
|
|
33
|
+
throw new Error(u("DSFieldset", "The legend prop is required. Please add the legend prop to the DSFieldset component."));
|
|
34
|
+
c && i && console.warn(u("DSFieldset", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".'));
|
|
35
|
+
}, de = (l) => {
|
|
36
|
+
const {
|
|
37
|
+
children: c,
|
|
38
|
+
legend: s,
|
|
39
|
+
className: p,
|
|
40
|
+
description: i,
|
|
41
|
+
disabled: g = !1,
|
|
42
|
+
hideLegend: D = !1,
|
|
43
|
+
id: m,
|
|
44
|
+
invalid: h = !1,
|
|
45
|
+
popoverContent: f,
|
|
46
|
+
popoverInfoButtonProps: z,
|
|
47
|
+
required: b = !1,
|
|
48
|
+
systemFeedback: d,
|
|
49
|
+
theme: o = "light",
|
|
50
|
+
...w
|
|
51
|
+
} = l, N = L(D);
|
|
52
|
+
process.env.NODE_ENV !== "production" && K({
|
|
53
|
+
description: i,
|
|
54
|
+
hideLegend: D,
|
|
55
|
+
id: m,
|
|
56
|
+
legend: s,
|
|
57
|
+
popoverContent: f,
|
|
58
|
+
systemFeedback: d
|
|
59
|
+
});
|
|
60
|
+
let r, v, y;
|
|
61
|
+
const n = typeof s == "object" && s !== void 0;
|
|
62
|
+
n && ({
|
|
63
|
+
headingSize: r,
|
|
64
|
+
headingTag: v,
|
|
65
|
+
headingText: y
|
|
66
|
+
} = s);
|
|
67
|
+
const S = `${m}-feedback`, k = `${m}-description`, P = [h && d && S, i && k].filter(Boolean).join(" ") || void 0, C = !n || r === "small" || r === "small-uppercase", W = _(e.root, p, {
|
|
68
|
+
[e.rootDark]: o === "dark"
|
|
69
|
+
}), j = _(e.legend, {
|
|
70
|
+
[e.legendHidden]: N,
|
|
71
|
+
[e.legendUtilityM]: !n
|
|
72
|
+
}), q = _(e.description, {
|
|
73
|
+
[e.descriptionSmall]: C
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ a("fieldset", { className: W, disabled: g, ...w, "aria-invalid": h, "aria-describedby": P, children: [
|
|
76
|
+
/* @__PURE__ */ a("legend", { className: j, children: [
|
|
77
|
+
/* @__PURE__ */ t("span", { className: e.legendWrapper, children: n ? /* @__PURE__ */ a(M, { tag: v, size: r, theme: o, children: [
|
|
78
|
+
y,
|
|
79
|
+
b && /* @__PURE__ */ t(F, {})
|
|
80
|
+
] }) : /* @__PURE__ */ a(H, { children: [
|
|
81
|
+
s,
|
|
82
|
+
b && /* @__PURE__ */ t(F, {})
|
|
83
|
+
] }) }),
|
|
84
|
+
f && /* @__PURE__ */ t(x, { placement: "top", defaultAnchorButtonProps: z, theme: o, children: f })
|
|
85
|
+
] }),
|
|
86
|
+
i && /* @__PURE__ */ t("span", { id: k, className: q, children: i }),
|
|
87
|
+
h && d && /* @__PURE__ */ t(B, { id: S, variant: "error", message: d, theme: o, className: e.systemFeedback }),
|
|
88
|
+
/* @__PURE__ */ t("div", { className: e.childWrapper, children: c })
|
|
89
|
+
] });
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
de as D,
|
|
93
|
+
K as v
|
|
94
|
+
};
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { jsxs as y, jsx as v } from "react/jsx-runtime";
|
|
3
3
|
import { d as L } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as S } from "./index.DQOqod3i.js";
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import { D } from "./Icon.DYtaQgbw.js";
|
|
5
|
+
import { D as w } from "./Icon.DYtaQgbw.js";
|
|
6
|
+
import { g as D } from "./helpers.CexwVao7.js";
|
|
8
7
|
import '../assets/Flag.qP1xbolI.css';const O = "ds-flag_root_1r5js_1", P = "ds-flag_root--color-status-info_1r5js_27", R = "ds-flag_root--color-status-warning_1r5js_30", b = "ds-flag_root--color-status-negative_1r5js_33", N = "ds-flag_root--color-status-positive_1r5js_36", A = "ds-flag_root--color-promo-highlight_1r5js_39", G = "ds-flag_root--color-promo-neutral_1r5js_42", E = "ds-flag_root--color-grey-light_1r5js_46", F = "ds-flag_root--color-yellow-light_1r5js_49", x = "ds-flag_root--color-red-light_1r5js_52", $ = "ds-flag_root--color-green-light_1r5js_55", T = "ds-flag_root--color-orange-base_1r5js_58", p = {
|
|
9
8
|
root: O,
|
|
10
9
|
"root--color-status-info": "ds-flag_root--color-status-info_1r5js_27",
|
|
@@ -29,13 +28,13 @@ import '../assets/Flag.qP1xbolI.css';const O = "ds-flag_root_1r5js_1", P = "ds-f
|
|
|
29
28
|
rootColorGreenLight: $,
|
|
30
29
|
"root--color-orange-base": "ds-flag_root--color-orange-base_1r5js_58",
|
|
31
30
|
rootColorOrangeBase: T
|
|
32
|
-
},
|
|
31
|
+
}, Y = ["status-info", "status-warning", "status-negative", "status-positive", "promo-highlight", "promo-neutral"], U = ["grey-light", "yellow-light", "red-light", "green-light", "orange-base"], j = {
|
|
33
32
|
"grey-light": "status-info",
|
|
34
33
|
"yellow-light": "status-warning",
|
|
35
34
|
"red-light": "status-negative",
|
|
36
35
|
"green-light": "status-positive",
|
|
37
36
|
"orange-base": "promo-highlight"
|
|
38
|
-
}, B = ["promo-neutral"],
|
|
37
|
+
}, B = ["promo-neutral"], q = (d) => {
|
|
39
38
|
const o = L.c(24);
|
|
40
39
|
let l, e, r, s, a, n;
|
|
41
40
|
o[0] !== d ? ({
|
|
@@ -47,7 +46,7 @@ import '../assets/Flag.qP1xbolI.css';const O = "ds-flag_root_1r5js_1", P = "ds-f
|
|
|
47
46
|
...a
|
|
48
47
|
} = d, o[0] = d, o[1] = l, o[2] = e, o[3] = r, o[4] = s, o[5] = a, o[6] = n) : (l = o[1], e = o[2], r = o[3], s = o[4], a = o[5], n = o[6]);
|
|
49
48
|
const t = n === void 0 ? "status-info" : n;
|
|
50
|
-
typeof t == "string" && t in j && console.warn(
|
|
49
|
+
typeof t == "string" && t in j && console.warn(D("DSFlag", `The color "${t}" is deprecated and will be removed in the next stable release. Please use "${j[t]}" instead.`));
|
|
51
50
|
const i = typeof t == "string" && p[`root--color-${t}`];
|
|
52
51
|
let c;
|
|
53
52
|
o[7] !== t || o[8] !== i ? (c = i ? {} : {
|
|
@@ -58,18 +57,18 @@ import '../assets/Flag.qP1xbolI.css';const O = "ds-flag_root_1r5js_1", P = "ds-f
|
|
|
58
57
|
o[10] !== e || o[11] !== i || o[12] !== u ? (_ = S(p.root, e, {
|
|
59
58
|
[u]: i
|
|
60
59
|
}), o[10] = e, o[11] = i, o[12] = u, o[13] = _) : _ = o[13];
|
|
61
|
-
const
|
|
60
|
+
const C = _, m = B.includes(t) ? "dark" : "light";
|
|
62
61
|
let g;
|
|
63
|
-
o[14] !== r || o[15] !== s || o[16] !==
|
|
62
|
+
o[14] !== r || o[15] !== s || o[16] !== m ? (g = (r || s) && /* @__PURE__ */ v(w, { name: r, theme: m, source: s, "aria-hidden": "true" }), o[14] = r, o[15] = s, o[16] = m, o[17] = g) : g = o[17];
|
|
64
63
|
let h;
|
|
65
|
-
return o[18] !== l || o[19] !== f || o[20] !== a || o[21] !==
|
|
64
|
+
return o[18] !== l || o[19] !== f || o[20] !== a || o[21] !== C || o[22] !== g ? (h = /* @__PURE__ */ y("span", { className: C, style: f, ...a, children: [
|
|
66
65
|
g,
|
|
67
66
|
l
|
|
68
|
-
] }), o[18] = l, o[19] = f, o[20] = a, o[21] =
|
|
67
|
+
] }), o[18] = l, o[19] = f, o[20] = a, o[21] = C, o[22] = g, o[23] = h) : h = o[23], h;
|
|
69
68
|
};
|
|
70
69
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
U as D,
|
|
71
|
+
Y as F,
|
|
73
72
|
j as a,
|
|
74
|
-
|
|
73
|
+
q as b
|
|
75
74
|
};
|
|
@@ -5,7 +5,7 @@ import { c as D } from "./index.DQOqod3i.js";
|
|
|
5
5
|
import { useState as T, useEffect as L, useContext as ie, createContext as Fe, useRef as I } from "react";
|
|
6
6
|
import { g as Y, c as O, p as pe } from "./helpers.CexwVao7.js";
|
|
7
7
|
import { u as Ne } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { DSLogo as Re } from "../logo.
|
|
8
|
+
import { DSLogo as Re } from "../logo.D6BTxbxv.js";
|
|
9
9
|
import { Logo100Years as Ce } from "../logo100years.C0IojOp9.js";
|
|
10
10
|
import '../assets/Header.CSPbSqR5.css';const ue = (i) => {
|
|
11
11
|
const e = P.c(7);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { g as
|
|
3
|
-
|
|
4
|
-
import "./index.cKLI89Eg.js";
|
|
5
|
-
const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], l = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], T = ({
|
|
2
|
+
import { g as n } from "./helpers.CexwVao7.js";
|
|
3
|
+
const r = 8, d = 5, w = ["medium", "small"], p = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], l = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], b = ({
|
|
6
4
|
hideLabel: e,
|
|
7
5
|
id: o,
|
|
8
6
|
label: a,
|
|
@@ -10,21 +8,21 @@ const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-loc
|
|
|
10
8
|
popoverContent: c,
|
|
11
9
|
suffix: i,
|
|
12
10
|
leadingIconName: m,
|
|
13
|
-
leadingIconSource:
|
|
14
|
-
actionButtonProps:
|
|
11
|
+
leadingIconSource: u,
|
|
12
|
+
actionButtonProps: t
|
|
15
13
|
}) => {
|
|
16
14
|
if (!o)
|
|
17
|
-
throw new Error(
|
|
15
|
+
throw new Error(n("DSInput", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInput component.'));
|
|
18
16
|
if (!a)
|
|
19
|
-
throw new Error(
|
|
20
|
-
if (
|
|
21
|
-
throw new Error(
|
|
22
|
-
if (
|
|
23
|
-
throw new Error(
|
|
24
|
-
s && s.length > r && console.warn(
|
|
25
|
-
},
|
|
26
|
-
if (!
|
|
27
|
-
throw new Error(
|
|
17
|
+
throw new Error(n("DSInput", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInput component. If you don't want to display a label, set hideLabel={true}.`));
|
|
18
|
+
if (t && !t.label)
|
|
19
|
+
throw new Error(n("DSInput", "The action button needs to have a label for a11y reasons. Please add a label to the actionButtonProps."));
|
|
20
|
+
if (t && !t?.iconName && !t?.iconSource)
|
|
21
|
+
throw new Error(n("DSInput", "The action button needs to have an iconName or iconSource. Please add an iconName or iconSource to the actionButtonProps."));
|
|
22
|
+
s && s.length > r && console.warn(n("DSInput", `Prefix length must not exceed ${r} characters.`)), i && i.length > d && console.warn(n("DSInput", `Suffix length must not exceed ${d} characters.`)), s && (m || u) && console.warn(n("DSInput", "Prefix and a leading Icon cannot be used at the same time.")), i && (t?.iconName || t?.iconSource) && console.warn(n("DSInput", "Suffix and an action button cannot be used at the same time.")), e && c && console.warn(n("DSInput", "Using a popover when hideLabel is set to true is not supported."));
|
|
23
|
+
}, I = (e, o) => {
|
|
24
|
+
if (!p.includes(e) && !l.includes(e))
|
|
25
|
+
throw new Error(n("DSInput", `The type "${e}" is not supported by the DSInput component.`));
|
|
28
26
|
if (o === "off" && e === "number")
|
|
29
27
|
return;
|
|
30
28
|
const a = {
|
|
@@ -42,18 +40,18 @@ const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-loc
|
|
|
42
40
|
week: "Type week is not recommended. Mobile safari does not support type week.",
|
|
43
41
|
hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
|
|
44
42
|
};
|
|
45
|
-
a[e] && console.warn(
|
|
46
|
-
}, h = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i),
|
|
43
|
+
a[e] && console.warn(n("DSInput", a[e]));
|
|
44
|
+
}, h = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), T = (e, o) => h() && (e || o), D = (e) => e === "date" || e === "datetime-local" || e === "month", f = (e) => e === "time";
|
|
47
45
|
export {
|
|
48
|
-
I,
|
|
46
|
+
w as I,
|
|
49
47
|
r as M,
|
|
50
|
-
|
|
48
|
+
p as S,
|
|
51
49
|
l as U,
|
|
52
50
|
d as a,
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
f as b,
|
|
52
|
+
I as c,
|
|
55
53
|
h,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
D as i,
|
|
55
|
+
T as s,
|
|
56
|
+
b as v
|
|
59
57
|
};
|