@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,188 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as q, jsx as d, Fragment as Tt } from "react/jsx-runtime";
|
|
3
|
-
import { d as jt } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as P } from "./index.DQOqod3i.js";
|
|
5
|
-
import { forwardRef as St } from "react";
|
|
6
|
-
import { D as gt } from "./Icon.DYtaQgbw.js";
|
|
7
|
-
import { NumberIndicator as wt } from "../numberindicator.Q7g4J3Ry.js";
|
|
8
|
-
import { Tooltip as kt } from "../tooltip.a1aWHK00.js";
|
|
9
|
-
import { g as f } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/ActionButton.DcQYatF1.css';const Pt = "ds-action-button_root_1ckji_1", Ct = "ds-action-button_root--indent-level-1_1ckji_75", Dt = "ds-action-button_root--active_1ckji_78", Ot = "ds-action-button_root--active--with-marker_1ckji_81", Bt = "ds-action-button_root--icon--top_1ckji_84", Lt = "ds-action-button_root--stretched_1ckji_110", Et = "ds-action-button_active-marker_1ckji_115", xt = "ds-action-button_active-marker--with-indent_1ckji_127", Mt = "ds-action-button_icon-wrapper_1ckji_131", Ut = "ds-action-button_icon-wrapper--x-large_1ckji_134", zt = "ds-action-button_icon-wrapper--with-number-indicator_1ckji_137", Rt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_1ckji_145", Vt = "ds-action-button_label_1ckji_149", yt = "ds-action-button_label--bold_1ckji_160", Ht = "ds-action-button_label--active_1ckji_172", Xt = "ds-action-button_label--icon-top_1ckji_184", Ft = "ds-action-button_number-indicator_1ckji_207", Gt = "ds-action-button_label-wrapper_1ckji_211", Zt = "ds-action-button_label-wrapper--icon-top_1ckji_216", $t = "ds-action-button_chevron_1ckji_220", qt = "ds-action-button_chevron--icon-position-top_1ckji_235", Jt = "ds-action-button_chevron--up_1ckji_241", Kt = "ds-action-button_chevron--right_1ckji_252", Qt = "ds-action-button_chevron--left_1ckji_263", o = {
|
|
11
|
-
root: Pt,
|
|
12
|
-
rootIndentLevel1: Ct,
|
|
13
|
-
rootActive: Dt,
|
|
14
|
-
rootActiveWithMarker: Ot,
|
|
15
|
-
rootIconTop: Bt,
|
|
16
|
-
rootStretched: Lt,
|
|
17
|
-
activeMarker: Et,
|
|
18
|
-
activeMarkerWithIndent: xt,
|
|
19
|
-
iconWrapper: Mt,
|
|
20
|
-
iconWrapperXLarge: Ut,
|
|
21
|
-
iconWrapperWithNumberIndicator: zt,
|
|
22
|
-
iconWrapperWithNumberIndicatorWithValue: Rt,
|
|
23
|
-
label: Vt,
|
|
24
|
-
labelBold: yt,
|
|
25
|
-
labelActive: Ht,
|
|
26
|
-
labelIconTop: Xt,
|
|
27
|
-
numberIndicator: Ft,
|
|
28
|
-
labelWrapper: Gt,
|
|
29
|
-
labelWrapperIconTop: Zt,
|
|
30
|
-
chevron: $t,
|
|
31
|
-
chevronIconPositionTop: qt,
|
|
32
|
-
chevronUp: Jt,
|
|
33
|
-
chevronRight: Kt,
|
|
34
|
-
chevronLeft: Qt
|
|
35
|
-
}, lo = ["left", "top"], po = ["large", "x-large"], ho = [0, 1], bo = ["normal", "bold"], _o = ["up", "down", "right", "left"], Yt = ({
|
|
36
|
-
iconName: m,
|
|
37
|
-
iconSize: I,
|
|
38
|
-
iconSource: t,
|
|
39
|
-
iconPosition: h,
|
|
40
|
-
indentLevel: a,
|
|
41
|
-
stretched: b,
|
|
42
|
-
weight: _,
|
|
43
|
-
numberIndicatorValue: c,
|
|
44
|
-
numberIndicatorAriaLabel: r
|
|
45
|
-
}) => {
|
|
46
|
-
if (m && !t && I === "x-large" && console.warn(f("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), h === "top") {
|
|
47
|
-
if (!m && !t)
|
|
48
|
-
throw new Error(f("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
49
|
-
I === "x-large" && console.warn(f("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), _ === "bold" && console.warn(f("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), a === 1 && console.warn(f("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), b && console.warn(f("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
50
|
-
}
|
|
51
|
-
(c || c === "") && !r && console.warn(f("DSActionButton", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
|
|
52
|
-
}, to = St((m, I) => {
|
|
53
|
-
const t = jt.c(96);
|
|
54
|
-
let h, a, b, _, c, r, s, n, v, N, C, D, O, B, L, E, x, u;
|
|
55
|
-
t[0] !== m ? ({
|
|
56
|
-
children: b,
|
|
57
|
-
aria: h,
|
|
58
|
-
chevronDirection: a,
|
|
59
|
-
className: _,
|
|
60
|
-
disabled: C,
|
|
61
|
-
iconName: c,
|
|
62
|
-
iconPosition: D,
|
|
63
|
-
iconSize: O,
|
|
64
|
-
iconSource: r,
|
|
65
|
-
indentLevel: B,
|
|
66
|
-
isActive: L,
|
|
67
|
-
numberIndicatorValue: n,
|
|
68
|
-
numberIndicatorAriaLabel: s,
|
|
69
|
-
stretched: E,
|
|
70
|
-
weight: x,
|
|
71
|
-
tooltip: u,
|
|
72
|
-
onClick: v,
|
|
73
|
-
...N
|
|
74
|
-
} = m, t[0] = m, t[1] = h, t[2] = a, t[3] = b, t[4] = _, t[5] = c, t[6] = r, t[7] = s, t[8] = n, t[9] = v, t[10] = N, t[11] = C, t[12] = D, t[13] = O, t[14] = B, t[15] = L, t[16] = E, t[17] = x, t[18] = u) : (h = t[1], a = t[2], b = t[3], _ = t[4], c = t[5], r = t[6], s = t[7], n = t[8], v = t[9], N = t[10], C = t[11], D = t[12], O = t[13], B = t[14], L = t[15], E = t[16], x = t[17], u = t[18]);
|
|
75
|
-
const i = C === void 0 ? !1 : C, e = D === void 0 ? "left" : D, M = O === void 0 ? "large" : O, J = B === void 0 ? 0 : B, k = L === void 0 ? !1 : L, Wt = E === void 0 ? !1 : E, At = x === void 0 ? "normal" : x;
|
|
76
|
-
process.env.NODE_ENV !== "production" && Yt({
|
|
77
|
-
iconName: c,
|
|
78
|
-
iconSize: M,
|
|
79
|
-
iconSource: r,
|
|
80
|
-
iconPosition: e,
|
|
81
|
-
indentLevel: J,
|
|
82
|
-
numberIndicatorValue: n,
|
|
83
|
-
numberIndicatorAriaLabel: s,
|
|
84
|
-
stretched: Wt,
|
|
85
|
-
weight: At
|
|
86
|
-
});
|
|
87
|
-
let U;
|
|
88
|
-
t[19] !== n ? (U = n?.trim(), t[19] = n, t[20] = U) : U = t[20];
|
|
89
|
-
const l = U === "", K = e === "top", Q = J === 1, Y = k && !i, tt = k && !i && e === "left", ot = Wt === !0 && e === "left";
|
|
90
|
-
let z;
|
|
91
|
-
t[21] !== _ || t[22] !== Q || t[23] !== Y || t[24] !== tt || t[25] !== ot || t[26] !== K ? (z = P(o.root, _, {
|
|
92
|
-
[o.rootIconTop]: K,
|
|
93
|
-
[o.rootIndentLevel1]: Q,
|
|
94
|
-
[o.rootActive]: Y,
|
|
95
|
-
[o.rootActiveWithMarker]: tt,
|
|
96
|
-
[o.rootStretched]: ot
|
|
97
|
-
}), t[21] = _, t[22] = Q, t[23] = Y, t[24] = tt, t[25] = ot, t[26] = K, t[27] = z) : z = t[27];
|
|
98
|
-
const et = z, nt = J === 1;
|
|
99
|
-
let R;
|
|
100
|
-
t[28] !== nt ? (R = P(o.activeMarker, {
|
|
101
|
-
[o.activeMarkerWithIndent]: nt
|
|
102
|
-
}), t[28] = nt, t[29] = R) : R = t[29];
|
|
103
|
-
const it = R, ct = k && !i, rt = At === "bold", at = e === "top";
|
|
104
|
-
let V;
|
|
105
|
-
t[30] !== ct || t[31] !== rt || t[32] !== at ? (V = P(o.label, {
|
|
106
|
-
[o.labelActive]: ct,
|
|
107
|
-
[o.labelBold]: rt,
|
|
108
|
-
[o.labelIconTop]: at
|
|
109
|
-
}), t[30] = ct, t[31] = rt, t[32] = at, t[33] = V) : V = t[33];
|
|
110
|
-
const st = V, lt = e === "top";
|
|
111
|
-
let y;
|
|
112
|
-
t[34] !== lt ? (y = P(o.labelWrapper, {
|
|
113
|
-
[o.labelWrapperIconTop]: lt
|
|
114
|
-
}), t[34] = lt, t[35] = y) : y = t[35];
|
|
115
|
-
const pt = y, dt = e === "top", ht = a === "up", bt = a === "right", _t = a === "left";
|
|
116
|
-
let H;
|
|
117
|
-
t[36] !== dt || t[37] !== ht || t[38] !== bt || t[39] !== _t ? (H = P(o.chevron, {
|
|
118
|
-
[o.chevronIconPositionTop]: dt,
|
|
119
|
-
[o.chevronUp]: ht,
|
|
120
|
-
[o.chevronRight]: bt,
|
|
121
|
-
[o.chevronLeft]: _t
|
|
122
|
-
}), t[36] = dt, t[37] = ht, t[38] = bt, t[39] = _t, t[40] = H) : H = t[40];
|
|
123
|
-
const vt = H, ut = M === "x-large", ft = (c || r) && (n || l), mt = (c || r) && !l;
|
|
124
|
-
let X;
|
|
125
|
-
t[41] !== ut || t[42] !== ft || t[43] !== mt ? (X = P(o.iconWrapper, {
|
|
126
|
-
[o.iconWrapperXLarge]: ut,
|
|
127
|
-
[o.iconWrapperWithNumberIndicator]: ft,
|
|
128
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: mt
|
|
129
|
-
}), t[41] = ut, t[42] = ft, t[43] = mt, t[44] = X) : X = t[44];
|
|
130
|
-
const It = X;
|
|
131
|
-
let F;
|
|
132
|
-
t[45] !== i || t[46] !== v ? (F = (p) => {
|
|
133
|
-
if (i) {
|
|
134
|
-
p.preventDefault();
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
v && v(p);
|
|
138
|
-
}, t[45] = i, t[46] = v, t[47] = F) : F = t[47];
|
|
139
|
-
const Nt = F;
|
|
140
|
-
let W;
|
|
141
|
-
t[48] !== it || t[49] !== e || t[50] !== k ? (W = k && e === "left" && /* @__PURE__ */ d("div", { className: it }), t[48] = it, t[49] = e, t[50] = k, t[51] = W) : W = t[51];
|
|
142
|
-
let A;
|
|
143
|
-
t[52] !== i || t[53] !== c || t[54] !== e || t[55] !== M || t[56] !== r || t[57] !== It || t[58] !== l || t[59] !== s || t[60] !== n ? (A = (c || r) && /* @__PURE__ */ d(Tt, { children: /* @__PURE__ */ q("span", { className: It, children: [
|
|
144
|
-
/* @__PURE__ */ d(gt, { name: c, theme: "light", source: r, "aria-hidden": "true", size: c || e === "top" ? "large" : M }),
|
|
145
|
-
!i && (e === "left" && l || e === "top" && (n || l)) && /* @__PURE__ */ d(wt, { variant: "highlight", "aria-label": s, label: n })
|
|
146
|
-
] }) }), t[52] = i, t[53] = c, t[54] = e, t[55] = M, t[56] = r, t[57] = It, t[58] = l, t[59] = s, t[60] = n, t[61] = A) : A = t[61];
|
|
147
|
-
let g;
|
|
148
|
-
t[62] !== b || t[63] !== st ? (g = /* @__PURE__ */ d("span", { className: st, children: b }), t[62] = b, t[63] = st, t[64] = g) : g = t[64];
|
|
149
|
-
let w;
|
|
150
|
-
t[65] !== vt || t[66] !== a ? (w = a && /* @__PURE__ */ d(gt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: vt }), t[65] = vt, t[66] = a, t[67] = w) : w = t[67];
|
|
151
|
-
let T;
|
|
152
|
-
t[68] !== pt || t[69] !== g || t[70] !== w ? (T = /* @__PURE__ */ q("div", { className: pt, children: [
|
|
153
|
-
g,
|
|
154
|
-
w
|
|
155
|
-
] }), t[68] = pt, t[69] = g, t[70] = w, t[71] = T) : T = t[71];
|
|
156
|
-
let j;
|
|
157
|
-
t[72] !== i || t[73] !== e || t[74] !== l || t[75] !== s || t[76] !== n ? (j = e === "left" && !i && n && !l && /* @__PURE__ */ d(wt, { variant: "default", "aria-label": s, label: n, className: o.numberIndicator }), t[72] = i, t[73] = e, t[74] = l, t[75] = s, t[76] = n, t[77] = j) : j = t[77];
|
|
158
|
-
let G;
|
|
159
|
-
t[78] !== h || t[79] !== i || t[80] !== Nt || t[81] !== I || t[82] !== N || t[83] !== et || t[84] !== W || t[85] !== A || t[86] !== T || t[87] !== j ? (G = /* @__PURE__ */ q("button", { className: et, type: "button", onClick: Nt, ...h, ...N, "aria-disabled": i, ref: I, children: [
|
|
160
|
-
W,
|
|
161
|
-
A,
|
|
162
|
-
T,
|
|
163
|
-
j
|
|
164
|
-
] }), t[78] = h, t[79] = i, t[80] = Nt, t[81] = I, t[82] = N, t[83] = et, t[84] = W, t[85] = A, t[86] = T, t[87] = j, t[88] = G) : G = t[88];
|
|
165
|
-
const Z = G;
|
|
166
|
-
if (u) {
|
|
167
|
-
let p;
|
|
168
|
-
t[89] !== Z ? (p = /* @__PURE__ */ d(kt.Anchor, { children: Z }), t[89] = Z, t[90] = p) : p = t[90];
|
|
169
|
-
let S;
|
|
170
|
-
t[91] !== u ? (S = /* @__PURE__ */ d(kt.Content, { children: u }), t[91] = u, t[92] = S) : S = t[92];
|
|
171
|
-
let $;
|
|
172
|
-
return t[93] !== p || t[94] !== S ? ($ = /* @__PURE__ */ q(kt, { placement: "top", tooltipOffset: 6, children: [
|
|
173
|
-
p,
|
|
174
|
-
S
|
|
175
|
-
] }), t[93] = p, t[94] = S, t[95] = $) : $ = t[95], $;
|
|
176
|
-
}
|
|
177
|
-
return Z;
|
|
178
|
-
});
|
|
179
|
-
to.displayName = "DSActionButton";
|
|
180
|
-
export {
|
|
181
|
-
_o as A,
|
|
182
|
-
to as D,
|
|
183
|
-
lo as a,
|
|
184
|
-
po as b,
|
|
185
|
-
ho as c,
|
|
186
|
-
bo as d,
|
|
187
|
-
Yt as v
|
|
188
|
-
};
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as K, Fragment as oe, jsx as C } from "react/jsx-runtime";
|
|
3
|
-
import { d as D } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as v } from "./index.DQOqod3i.js";
|
|
5
|
-
import le, { isValidElement as te, useRef as re, useEffect as ne, cloneElement as se } from "react";
|
|
6
|
-
import { g as ee } from "./helpers.CexwVao7.js";
|
|
7
|
-
import '../assets/ActionCard.gRQVVFWz.css';const ie = "ds-action-card_root_yc724_1", ce = "ds-action-card_root--elevated_yc724_24", de = "ds-action-card_root--clickable_yc724_27", me = "ds-action-card_primary-action_yc724_36", pe = "ds-action-card_media-wrapper_yc724_50", ye = "ds-action-card_header_yc724_50", fe = "ds-action-card_footer_yc724_50", _e = "ds-action-card_supplementary_yc724_50", ue = "ds-action-card_root--horizontal_yc724_63", he = "ds-action-card_content_yc724_82", Ne = "ds-action-card_content--padding-small_yc724_87", be = "ds-action-card_root--horizontal-has-supplementary_yc724_95", ge = "ds-action-card_root--padding-small_yc724_98", Se = "ds-action-card_primary-action-label_yc724_178", d = {
|
|
8
|
-
root: ie,
|
|
9
|
-
rootElevated: ce,
|
|
10
|
-
rootClickable: de,
|
|
11
|
-
primaryAction: me,
|
|
12
|
-
mediaWrapper: pe,
|
|
13
|
-
header: ye,
|
|
14
|
-
footer: fe,
|
|
15
|
-
supplementary: _e,
|
|
16
|
-
rootHorizontal: ue,
|
|
17
|
-
content: he,
|
|
18
|
-
contentPaddingSmall: Ne,
|
|
19
|
-
rootHorizontalHasSupplementary: be,
|
|
20
|
-
rootPaddingSmall: ge,
|
|
21
|
-
primaryActionLabel: Se
|
|
22
|
-
}, Ce = ({
|
|
23
|
-
aria: i,
|
|
24
|
-
cardElement: e
|
|
25
|
-
}) => {
|
|
26
|
-
const t = i?.["aria-labelledby"], a = i?.["aria-label"];
|
|
27
|
-
if (e) {
|
|
28
|
-
if (!t && !a)
|
|
29
|
-
throw new Error(ee("DSActionCard", "The 'aria' prop is required and must include either 'aria-labelledby' or 'aria-label'."));
|
|
30
|
-
if (t && !e.querySelector("#" + t))
|
|
31
|
-
throw new Error(ee("DSActionCard", `The provided 'aria-labelledby' value '${t}' does not match any element ID within the card.`));
|
|
32
|
-
}
|
|
33
|
-
}, P = (i, e) => {
|
|
34
|
-
const t = [];
|
|
35
|
-
return le.Children.forEach(i, (a) => {
|
|
36
|
-
if (!te(a))
|
|
37
|
-
return;
|
|
38
|
-
const l = a.type, o = e, r = o.displayName || o.name, m = l.displayName || l.name;
|
|
39
|
-
(a.type === e || m === r) && t.push(a);
|
|
40
|
-
}), t;
|
|
41
|
-
}, E = (i) => {
|
|
42
|
-
const e = D.c(47);
|
|
43
|
-
let t, a, l, o, r, m, c, p;
|
|
44
|
-
e[0] !== i ? ({
|
|
45
|
-
aria: t,
|
|
46
|
-
className: l,
|
|
47
|
-
classNameContentWrapper: o,
|
|
48
|
-
children: a,
|
|
49
|
-
orientation: m,
|
|
50
|
-
padding: c,
|
|
51
|
-
variant: p,
|
|
52
|
-
...r
|
|
53
|
-
} = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m, e[7] = c, e[8] = p) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6], c = e[7], p = e[8]);
|
|
54
|
-
const h = m === void 0 ? "vertical" : m, y = c === void 0 ? "medium" : c, b = p === void 0 ? "outlined" : p, N = re(null);
|
|
55
|
-
let f;
|
|
56
|
-
e[9] !== a ? (f = P(a, Q), e[9] = a, e[10] = f) : f = e[10];
|
|
57
|
-
const g = f;
|
|
58
|
-
let _;
|
|
59
|
-
e[11] !== a ? (_ = P(a, U), e[11] = a, e[12] = _) : _ = e[12];
|
|
60
|
-
const u = _;
|
|
61
|
-
let n;
|
|
62
|
-
e[13] !== a ? (n = P(a, Y), e[13] = a, e[14] = n) : n = e[14];
|
|
63
|
-
const s = n;
|
|
64
|
-
let S;
|
|
65
|
-
e[15] !== a ? (S = P(a, X), e[15] = a, e[16] = S) : S = e[16];
|
|
66
|
-
const H = S;
|
|
67
|
-
let z;
|
|
68
|
-
e[17] !== a ? (z = P(a, Z), e[17] = a, e[18] = z) : z = e[18];
|
|
69
|
-
const k = z, F = k.length > 0, M = h === "horizontal", W = y === "small", R = h === "horizontal" && s.length > 0, j = b === "elevated";
|
|
70
|
-
let L;
|
|
71
|
-
e[19] !== l || e[20] !== F || e[21] !== W || e[22] !== R || e[23] !== j || e[24] !== M ? (L = v(d.root, l, {
|
|
72
|
-
[d.rootHorizontal]: M,
|
|
73
|
-
[d.rootPaddingSmall]: W,
|
|
74
|
-
[d.rootHorizontalHasSupplementary]: R,
|
|
75
|
-
[d.rootClickable]: F,
|
|
76
|
-
[d.rootElevated]: j
|
|
77
|
-
}), e[19] = l, e[20] = F, e[21] = W, e[22] = R, e[23] = j, e[24] = M, e[25] = L) : L = e[25];
|
|
78
|
-
const q = L, O = y === "small";
|
|
79
|
-
let w;
|
|
80
|
-
e[26] !== o || e[27] !== O ? (w = v(d.content, o, {
|
|
81
|
-
[d.contentPaddingSmall]: O
|
|
82
|
-
}), e[26] = o, e[27] = O, e[28] = w) : w = e[28];
|
|
83
|
-
const V = w;
|
|
84
|
-
let $;
|
|
85
|
-
e[29] !== t ? ($ = () => {
|
|
86
|
-
const ae = N.current;
|
|
87
|
-
process.env.NODE_ENV !== "production" && Ce({
|
|
88
|
-
aria: t,
|
|
89
|
-
cardElement: ae
|
|
90
|
-
});
|
|
91
|
-
}, e[29] = t, e[30] = $) : $ = e[30];
|
|
92
|
-
const B = t?.["aria-labelledby"], I = t?.["aria-label"];
|
|
93
|
-
let T;
|
|
94
|
-
e[31] !== B || e[32] !== I ? (T = [B, I], e[31] = B, e[32] = I, e[33] = T) : T = e[33], ne($, T);
|
|
95
|
-
const G = t?.["aria-labelledby"], J = t?.["aria-label"];
|
|
96
|
-
let A;
|
|
97
|
-
e[34] !== V || e[35] !== u || e[36] !== g ? (A = /* @__PURE__ */ K("div", { className: V, children: [
|
|
98
|
-
g,
|
|
99
|
-
u
|
|
100
|
-
] }), e[34] = V, e[35] = u, e[36] = g, e[37] = A) : A = e[37];
|
|
101
|
-
let x;
|
|
102
|
-
return e[38] !== H || e[39] !== k || e[40] !== r || e[41] !== q || e[42] !== s || e[43] !== G || e[44] !== J || e[45] !== A ? (x = /* @__PURE__ */ K("article", { ...r, "aria-labelledby": G, "aria-label": J, ref: N, className: q, children: [
|
|
103
|
-
k,
|
|
104
|
-
A,
|
|
105
|
-
s,
|
|
106
|
-
H
|
|
107
|
-
] }), e[38] = H, e[39] = k, e[40] = r, e[41] = q, e[42] = s, e[43] = G, e[44] = J, e[45] = A, e[46] = x) : x = e[46], x;
|
|
108
|
-
}, Q = (i) => {
|
|
109
|
-
const e = D.c(5), {
|
|
110
|
-
children: t,
|
|
111
|
-
className: a
|
|
112
|
-
} = i;
|
|
113
|
-
let l;
|
|
114
|
-
e[0] !== a ? (l = v(d.header, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
115
|
-
const o = l;
|
|
116
|
-
let r;
|
|
117
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("header", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
118
|
-
};
|
|
119
|
-
Q.displayName = "DSActionCard.Header";
|
|
120
|
-
const U = (i) => {
|
|
121
|
-
const e = D.c(5), {
|
|
122
|
-
children: t,
|
|
123
|
-
className: a
|
|
124
|
-
} = i;
|
|
125
|
-
let l;
|
|
126
|
-
e[0] !== a ? (l = v(d.footer, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
127
|
-
const o = l;
|
|
128
|
-
let r;
|
|
129
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("footer", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
130
|
-
};
|
|
131
|
-
U.displayName = "DSActionCard.Footer";
|
|
132
|
-
const X = (i) => {
|
|
133
|
-
const e = D.c(5), {
|
|
134
|
-
children: t,
|
|
135
|
-
className: a
|
|
136
|
-
} = i;
|
|
137
|
-
let l;
|
|
138
|
-
e[0] !== a ? (l = v(d.mediaWrapper, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
139
|
-
const o = l;
|
|
140
|
-
let r;
|
|
141
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
142
|
-
};
|
|
143
|
-
X.displayName = "DSActionCard.Media";
|
|
144
|
-
const Y = (i) => {
|
|
145
|
-
const e = D.c(5), {
|
|
146
|
-
children: t,
|
|
147
|
-
className: a
|
|
148
|
-
} = i;
|
|
149
|
-
let l;
|
|
150
|
-
e[0] !== a ? (l = v(d.supplementary, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
151
|
-
const o = l;
|
|
152
|
-
let r;
|
|
153
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
154
|
-
};
|
|
155
|
-
Y.displayName = "DSActionCard.Supplementary";
|
|
156
|
-
const Z = (i) => {
|
|
157
|
-
const e = D.c(56);
|
|
158
|
-
let t, a, l, o, r, m;
|
|
159
|
-
e[0] !== i ? ({
|
|
160
|
-
children: t,
|
|
161
|
-
className: a,
|
|
162
|
-
href: l,
|
|
163
|
-
linkComponent: o,
|
|
164
|
-
onClick: r,
|
|
165
|
-
...m
|
|
166
|
-
} = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6]);
|
|
167
|
-
let c, p, h, y, b, N, f, g, _, u;
|
|
168
|
-
if (e[7] !== t || e[8] !== a || e[9] !== o || e[10] !== m) {
|
|
169
|
-
g = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
170
|
-
e: {
|
|
171
|
-
y = v(d.primaryAction, a) || void 0;
|
|
172
|
-
const n = m;
|
|
173
|
-
if (e[21] !== n ? ({
|
|
174
|
-
download: p,
|
|
175
|
-
hrefLang: h,
|
|
176
|
-
ping: b,
|
|
177
|
-
referrerPolicy: N,
|
|
178
|
-
rel: f,
|
|
179
|
-
target: _,
|
|
180
|
-
type: u,
|
|
181
|
-
...c
|
|
182
|
-
} = n, e[21] = n, e[22] = c, e[23] = p, e[24] = h, e[25] = b, e[26] = N, e[27] = f, e[28] = _, e[29] = u) : (c = e[22], p = e[23], h = e[24], b = e[25], N = e[26], f = e[27], _ = e[28], u = e[29]), o && te(o)) {
|
|
183
|
-
let s;
|
|
184
|
-
e[30] !== t ? (s = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[30] = t, e[31] = s) : s = e[31];
|
|
185
|
-
let S;
|
|
186
|
-
e[32] !== o.props.children || e[33] !== s ? (S = /* @__PURE__ */ K(oe, { children: [
|
|
187
|
-
s,
|
|
188
|
-
o.props.children
|
|
189
|
-
] }), e[32] = o.props.children, e[33] = s, e[34] = S) : S = e[34], g = se(o, {
|
|
190
|
-
...o.props,
|
|
191
|
-
className: v(y, o.props.className),
|
|
192
|
-
children: S
|
|
193
|
-
});
|
|
194
|
-
break e;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
e[7] = t, e[8] = a, e[9] = o, e[10] = m, e[11] = c, e[12] = p, e[13] = h, e[14] = y, e[15] = b, e[16] = N, e[17] = f, e[18] = g, e[19] = _, e[20] = u;
|
|
198
|
-
} else
|
|
199
|
-
c = e[11], p = e[12], h = e[13], y = e[14], b = e[15], N = e[16], f = e[17], g = e[18], _ = e[19], u = e[20];
|
|
200
|
-
if (g !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
201
|
-
return g;
|
|
202
|
-
if (l) {
|
|
203
|
-
let n;
|
|
204
|
-
e[35] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[35] = t, e[36] = n) : n = e[36];
|
|
205
|
-
let s;
|
|
206
|
-
return e[37] !== c || e[38] !== p || e[39] !== l || e[40] !== h || e[41] !== y || e[42] !== b || e[43] !== N || e[44] !== f || e[45] !== n || e[46] !== _ || e[47] !== u ? (s = /* @__PURE__ */ C("a", { href: l, className: y, download: p, hrefLang: h, ping: b, referrerPolicy: N, rel: f, target: _, type: u, ...c, children: n }), e[37] = c, e[38] = p, e[39] = l, e[40] = h, e[41] = y, e[42] = b, e[43] = N, e[44] = f, e[45] = n, e[46] = _, e[47] = u, e[48] = s) : s = e[48], s;
|
|
207
|
-
}
|
|
208
|
-
if (r) {
|
|
209
|
-
let n;
|
|
210
|
-
e[49] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[49] = t, e[50] = n) : n = e[50];
|
|
211
|
-
let s;
|
|
212
|
-
return e[51] !== c || e[52] !== y || e[53] !== r || e[54] !== n ? (s = /* @__PURE__ */ C("button", { type: "button", className: y, onClick: r, ...c, children: n }), e[51] = c, e[52] = y, e[53] = r, e[54] = n, e[55] = s) : s = e[55], s;
|
|
213
|
-
}
|
|
214
|
-
return null;
|
|
215
|
-
};
|
|
216
|
-
Z.displayName = "DSActionCard.PrimaryAction";
|
|
217
|
-
E.Header = Q;
|
|
218
|
-
E.Footer = U;
|
|
219
|
-
E.Media = X;
|
|
220
|
-
E.PrimaryAction = Z;
|
|
221
|
-
E.Supplementary = Y;
|
|
222
|
-
E.displayName = "DSActionCard";
|
|
223
|
-
export {
|
|
224
|
-
E as D,
|
|
225
|
-
P as g,
|
|
226
|
-
Ce as v
|
|
227
|
-
};
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as pt, jsx as f, Fragment as mt } from "react/jsx-runtime";
|
|
3
|
-
import { d as vt } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as R } from "./index.DQOqod3i.js";
|
|
5
|
-
import { forwardRef as bt } from "react";
|
|
6
|
-
import { D as kt } from "./Icon.DYtaQgbw.js";
|
|
7
|
-
import { NumberIndicator as ft } from "../numberindicator.Q7g4J3Ry.js";
|
|
8
|
-
import { Tooltip as dt } from "../tooltip.a1aWHK00.js";
|
|
9
|
-
import { g as v } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/ActionLink.B62Aa8y9.css';const It = "ds-action-link_root_oi5cc_1", Nt = "ds-action-link_root--indent-level-1_oi5cc_75", ut = "ds-action-link_root--active_oi5cc_78", At = "ds-action-link_root--active--with-marker_oi5cc_81", wt = "ds-action-link_root--icon--top_oi5cc_84", gt = "ds-action-link_root--stretched_oi5cc_110", Wt = "ds-action-link_active-marker_oi5cc_115", Lt = "ds-action-link_active-marker--with-indent_oi5cc_127", St = "ds-action-link_icon-wrapper_oi5cc_131", Pt = "ds-action-link_icon-wrapper--x-large_oi5cc_134", Dt = "ds-action-link_icon-wrapper--with-number-indicator_oi5cc_137", Tt = "ds-action-link_icon-wrapper--with-number-indicator--with-value_oi5cc_145", xt = "ds-action-link_label_oi5cc_149", Ct = "ds-action-link_label--bold_oi5cc_160", Mt = "ds-action-link_label--active_oi5cc_172", Et = "ds-action-link_label--icon-top_oi5cc_184", Ot = "ds-action-link_number-indicator_oi5cc_207", o = {
|
|
11
|
-
root: It,
|
|
12
|
-
rootIndentLevel1: Nt,
|
|
13
|
-
rootActive: ut,
|
|
14
|
-
rootActiveWithMarker: At,
|
|
15
|
-
rootIconTop: wt,
|
|
16
|
-
rootStretched: gt,
|
|
17
|
-
activeMarker: Wt,
|
|
18
|
-
activeMarkerWithIndent: Lt,
|
|
19
|
-
iconWrapper: St,
|
|
20
|
-
iconWrapperXLarge: Pt,
|
|
21
|
-
iconWrapperWithNumberIndicator: Dt,
|
|
22
|
-
iconWrapperWithNumberIndicatorWithValue: Tt,
|
|
23
|
-
label: xt,
|
|
24
|
-
labelBold: Ct,
|
|
25
|
-
labelActive: Mt,
|
|
26
|
-
labelIconTop: Et,
|
|
27
|
-
numberIndicator: Ot
|
|
28
|
-
}, Rt = ["left", "top"], Zt = ["large", "x-large"], $t = [0, 1], qt = ["normal", "bold"], zt = ({
|
|
29
|
-
iconName: b,
|
|
30
|
-
iconSize: k,
|
|
31
|
-
iconSource: t,
|
|
32
|
-
iconPosition: s,
|
|
33
|
-
indentLevel: p,
|
|
34
|
-
stretched: d,
|
|
35
|
-
weight: h,
|
|
36
|
-
numberIndicatorValue: c,
|
|
37
|
-
numberIndicatorAriaLabel: n
|
|
38
|
-
}) => {
|
|
39
|
-
if (b && !t && k === "x-large" && console.warn(v("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), s === "top") {
|
|
40
|
-
if (!b && !t)
|
|
41
|
-
throw new Error(v("DSActionLink", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
42
|
-
k === "x-large" && console.warn(v("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), h === "bold" && console.warn(v("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), p === 1 && console.warn(v("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), d && console.warn(v("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
43
|
-
}
|
|
44
|
-
(c || c === "") && !n && console.warn(v("DSActionLink", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
|
|
45
|
-
}, Vt = bt((b, k) => {
|
|
46
|
-
const t = vt.c(86);
|
|
47
|
-
let s, p, d, h, c, n, r, a, i, I, N, u, T, x, C, M, E, O, z, m;
|
|
48
|
-
t[0] !== b ? ({
|
|
49
|
-
children: p,
|
|
50
|
-
aria: s,
|
|
51
|
-
className: d,
|
|
52
|
-
download: h,
|
|
53
|
-
href: c,
|
|
54
|
-
iconName: n,
|
|
55
|
-
iconPosition: T,
|
|
56
|
-
iconSize: x,
|
|
57
|
-
iconSource: r,
|
|
58
|
-
indentLevel: C,
|
|
59
|
-
isActive: M,
|
|
60
|
-
numberIndicatorValue: i,
|
|
61
|
-
numberIndicatorAriaLabel: a,
|
|
62
|
-
referrerPolicy: I,
|
|
63
|
-
rel: N,
|
|
64
|
-
stretched: E,
|
|
65
|
-
target: O,
|
|
66
|
-
tooltip: m,
|
|
67
|
-
weight: z,
|
|
68
|
-
...u
|
|
69
|
-
} = b, t[0] = b, t[1] = s, t[2] = p, t[3] = d, t[4] = h, t[5] = c, t[6] = n, t[7] = r, t[8] = a, t[9] = i, t[10] = I, t[11] = N, t[12] = u, t[13] = T, t[14] = x, t[15] = C, t[16] = M, t[17] = E, t[18] = O, t[19] = z, t[20] = m) : (s = t[1], p = t[2], d = t[3], h = t[4], c = t[5], n = t[6], r = t[7], a = t[8], i = t[9], I = t[10], N = t[11], u = t[12], T = t[13], x = t[14], C = t[15], M = t[16], E = t[17], O = t[18], z = t[19], m = t[20]);
|
|
70
|
-
const e = T === void 0 ? "left" : T, V = x === void 0 ? "large" : x, Z = C === void 0 ? 0 : C, _ = M === void 0 ? !1 : M, ht = E === void 0 ? !1 : E, $ = O === void 0 ? "_self" : O, _t = z === void 0 ? "normal" : z;
|
|
71
|
-
process.env.NODE_ENV !== "production" && zt({
|
|
72
|
-
iconName: n,
|
|
73
|
-
iconSize: V,
|
|
74
|
-
iconSource: r,
|
|
75
|
-
iconPosition: e,
|
|
76
|
-
indentLevel: Z,
|
|
77
|
-
numberIndicatorValue: i,
|
|
78
|
-
numberIndicatorAriaLabel: a,
|
|
79
|
-
stretched: ht,
|
|
80
|
-
weight: _t
|
|
81
|
-
});
|
|
82
|
-
let y;
|
|
83
|
-
t[21] !== i ? (y = i?.trim(), t[21] = i, t[22] = y) : y = t[22];
|
|
84
|
-
const l = y === "", q = e === "top", J = Z === 1, Q = _ && e === "left", U = ht === !0 && e === "left";
|
|
85
|
-
let K;
|
|
86
|
-
t[23] !== d || t[24] !== _ || t[25] !== J || t[26] !== Q || t[27] !== U || t[28] !== q ? (K = R(o.root, d, {
|
|
87
|
-
[o.rootIconTop]: q,
|
|
88
|
-
[o.rootIndentLevel1]: J,
|
|
89
|
-
[o.rootActive]: _,
|
|
90
|
-
[o.rootActiveWithMarker]: Q,
|
|
91
|
-
[o.rootStretched]: U
|
|
92
|
-
}), t[23] = d, t[24] = _, t[25] = J, t[26] = Q, t[27] = U, t[28] = q, t[29] = K) : K = t[29];
|
|
93
|
-
const Y = K, tt = Z === 1;
|
|
94
|
-
let B;
|
|
95
|
-
t[30] !== tt ? (B = R(o.activeMarker, {
|
|
96
|
-
[o.activeMarkerWithIndent]: tt
|
|
97
|
-
}), t[30] = tt, t[31] = B) : B = t[31];
|
|
98
|
-
const et = B, ot = _ && e === "left", it = _t === "bold", nt = e === "top";
|
|
99
|
-
let X;
|
|
100
|
-
t[32] !== ot || t[33] !== it || t[34] !== nt ? (X = R(o.label, {
|
|
101
|
-
[o.labelActive]: ot,
|
|
102
|
-
[o.labelBold]: it,
|
|
103
|
-
[o.labelIconTop]: nt
|
|
104
|
-
}), t[32] = ot, t[33] = it, t[34] = nt, t[35] = X) : X = t[35];
|
|
105
|
-
const ct = X, rt = V === "x-large", at = (n || r) && (i || l), lt = (n || r) && !l;
|
|
106
|
-
let j;
|
|
107
|
-
t[36] !== rt || t[37] !== at || t[38] !== lt ? (j = R(o.iconWrapper, {
|
|
108
|
-
[o.iconWrapperXLarge]: rt,
|
|
109
|
-
[o.iconWrapperWithNumberIndicator]: at,
|
|
110
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: lt
|
|
111
|
-
}), t[36] = rt, t[37] = at, t[38] = lt, t[39] = j) : j = t[39];
|
|
112
|
-
const st = j, A = c === void 0 ? "span" : "a";
|
|
113
|
-
let w;
|
|
114
|
-
t[40] !== A || t[41] !== h || t[42] !== c || t[43] !== I || t[44] !== N || t[45] !== $ ? (w = A === "a" && {
|
|
115
|
-
href: c,
|
|
116
|
-
target: $,
|
|
117
|
-
rel: N,
|
|
118
|
-
referrerPolicy: I,
|
|
119
|
-
download: h
|
|
120
|
-
}, t[40] = A, t[41] = h, t[42] = c, t[43] = I, t[44] = N, t[45] = $, t[46] = w) : w = t[46];
|
|
121
|
-
let g;
|
|
122
|
-
t[47] !== et || t[48] !== e || t[49] !== _ ? (g = _ && e === "left" && /* @__PURE__ */ f("div", { className: et }), t[47] = et, t[48] = e, t[49] = _, t[50] = g) : g = t[50];
|
|
123
|
-
let W;
|
|
124
|
-
t[51] !== n || t[52] !== e || t[53] !== V || t[54] !== r || t[55] !== st || t[56] !== l || t[57] !== a || t[58] !== i ? (W = (n || r) && /* @__PURE__ */ f(mt, { children: /* @__PURE__ */ pt("span", { className: st, children: [
|
|
125
|
-
/* @__PURE__ */ f(kt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : V }),
|
|
126
|
-
(e === "left" && l || e === "top" && (i || l)) && /* @__PURE__ */ f(ft, { variant: "highlight", "aria-label": a, label: i })
|
|
127
|
-
] }) }), t[51] = n, t[52] = e, t[53] = V, t[54] = r, t[55] = st, t[56] = l, t[57] = a, t[58] = i, t[59] = W) : W = t[59];
|
|
128
|
-
let L;
|
|
129
|
-
t[60] !== p || t[61] !== ct ? (L = /* @__PURE__ */ f("span", { className: ct, children: p }), t[60] = p, t[61] = ct, t[62] = L) : L = t[62];
|
|
130
|
-
let S;
|
|
131
|
-
t[63] !== e || t[64] !== l || t[65] !== a || t[66] !== i ? (S = e === "left" && i && !l && /* @__PURE__ */ f(ft, { variant: "default", "aria-label": a, label: i, className: o.numberIndicator }), t[63] = e, t[64] = l, t[65] = a, t[66] = i, t[67] = S) : S = t[67];
|
|
132
|
-
let H;
|
|
133
|
-
t[68] !== A || t[69] !== s || t[70] !== k || t[71] !== u || t[72] !== Y || t[73] !== w || t[74] !== g || t[75] !== W || t[76] !== L || t[77] !== S ? (H = /* @__PURE__ */ pt(A, { className: Y, ...w, ...s, ...u, ref: k, children: [
|
|
134
|
-
g,
|
|
135
|
-
W,
|
|
136
|
-
L,
|
|
137
|
-
S
|
|
138
|
-
] }), t[68] = A, t[69] = s, t[70] = k, t[71] = u, t[72] = Y, t[73] = w, t[74] = g, t[75] = W, t[76] = L, t[77] = S, t[78] = H) : H = t[78];
|
|
139
|
-
const F = H;
|
|
140
|
-
if (m) {
|
|
141
|
-
let P;
|
|
142
|
-
t[79] !== F ? (P = /* @__PURE__ */ f(dt.Anchor, { children: F }), t[79] = F, t[80] = P) : P = t[80];
|
|
143
|
-
let D;
|
|
144
|
-
t[81] !== m ? (D = /* @__PURE__ */ f(dt.Content, { children: m }), t[81] = m, t[82] = D) : D = t[82];
|
|
145
|
-
let G;
|
|
146
|
-
return t[83] !== P || t[84] !== D ? (G = /* @__PURE__ */ pt(dt, { placement: "top", tooltipOffset: 6, children: [
|
|
147
|
-
P,
|
|
148
|
-
D
|
|
149
|
-
] }), t[83] = P, t[84] = D, t[85] = G) : G = t[85], G;
|
|
150
|
-
}
|
|
151
|
-
return F;
|
|
152
|
-
});
|
|
153
|
-
Vt.displayName = "DSActionLink";
|
|
154
|
-
export {
|
|
155
|
-
Rt as A,
|
|
156
|
-
Vt as D,
|
|
157
|
-
Zt as a,
|
|
158
|
-
$t as b,
|
|
159
|
-
qt as c,
|
|
160
|
-
zt as v
|
|
161
|
-
};
|