@stihl-design-system/components 1.0.0-RC.39 → 1.0.0-RC.40
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.nt0Foequ.js +12 -0
- package/actionbutton.Ctea6drN.js +12 -0
- package/actionlink.VX1OMtm-.js +12 -0
- package/{arialiveregions.BUVY9NpY.js → arialiveregions.B0AV2JcV.js} +3 -3
- package/assets/Accordion.Cr1dbVTH.css +1 -0
- package/assets/ActionButton.BLOWs6IZ.css +1 -0
- package/assets/ActionLink.BJDUVdT7.css +1 -0
- package/assets/{Breadcrumb.BaYrwrYl.css → Breadcrumb.BavNNzAA.css} +1 -1
- package/assets/Button.C-UYIggc.css +1 -0
- package/assets/Checkbox.ZAPIO2N8.css +1 -0
- package/assets/Chip.D3vV0wyV.css +1 -0
- package/assets/CustomReactSelect.Ctze4SRN.css +1 -0
- package/assets/Dialog.DyiHUgTp.css +1 -0
- package/assets/Drawer.UugEajR2.css +1 -0
- package/assets/Fieldset.DmxbjOm1.css +1 -0
- package/assets/Header.BNYL2Y78.css +1 -0
- package/assets/{Icon.QeJ7TxZs.css → Icon.i2P_Jf3Q.css} +1 -1
- package/assets/InputFile.BUMCNCrj.css +1 -0
- package/assets/InputNumber.Bmz8cNKg.css +1 -0
- package/assets/InputPassword.CutbykTm.css +1 -0
- package/assets/InputSearch.Sr9jVpKt.css +1 -0
- package/assets/LinkButton.BEbmxP7h.css +1 -0
- package/assets/LinkCard.C6HtgbjH.css +1 -0
- package/assets/MegaMenu.Dw-oLSCX.css +1 -0
- package/assets/NavigationTabList.CzAiHz7G.css +1 -0
- package/assets/Notification.DBGpHzov.css +1 -0
- package/assets/Popover.mL5g23EK.css +1 -0
- package/assets/Select.BZYb_HAG.css +1 -0
- package/assets/Slider.vnSU0ya0.css +1 -0
- package/assets/TextUtility.CEBJaKBG.css +1 -0
- package/assets/Textarea.BIgA9_fl.css +1 -0
- package/assets/Toast.DgRXxA0s.css +1 -0
- package/assets/{banner.BLdW5VF4.css → banner.DFvdtgMp.css} +1 -1
- package/assets/buttonround.BTC-HthI.css +1 -0
- package/assets/{flag.C7i3MAAP.css → flag.CyCIPu_J.css} +1 -1
- package/assets/floatingactionbutton.CTbMRM9Q.css +1 -0
- package/assets/heading.mGwg9pVU.css +1 -0
- package/assets/input.BEOus9jX.css +1 -0
- package/assets/link.BemYqm4d.css +1 -0
- package/assets/logo.SVrBe1T8.css +1 -0
- package/assets/{numberindicator.O6XwvtL0.css → numberindicator.BYIPwkAK.css} +1 -1
- package/assets/optioncheckbox.6zYgifUk.css +1 -0
- package/assets/radio.l9OTraQU.css +1 -0
- package/assets/scroller.BGlPnnPD.css +1 -0
- package/assets/{spinner.Ctn_YYBG.css → spinner.C7QSv7jc.css} +1 -1
- package/assets/step.Ch508u7I.css +1 -0
- package/assets/switch.DYamtd9O.css +1 -0
- package/assets/tabpane.o34hshTz.css +1 -0
- package/assets/text.BA1eUihR.css +1 -0
- package/assets/title.N-QcA7Re.css +1 -0
- package/assets/{tooltip.Co1gWF_0.css → tooltip.BPcysHGE.css} +1 -1
- package/asterisk.Dwtdwpkq.js +13 -0
- package/{banner.AhUeW3HM.js → banner.S_c1UQJe.js} +5 -5
- package/breadcrumb.DiuuVblR.js +11 -0
- package/button.Z7Mmvwhv.js +12 -0
- package/{buttonround.9IS0tUqw.js → buttonround.Bqi8Ej-y.js} +6 -6
- package/checkbox.DtSSduSH.js +12 -0
- package/checkboxgroup.CSP1DOCW.js +9 -0
- package/chip.CyypeY5M.js +12 -0
- package/chipgroup.i5SOv6LA.js +199 -0
- package/chunks/Accordion.B-0pf8Fq.js +168 -0
- package/chunks/ActionButton.wdWh7E2b.js +182 -0
- package/chunks/ActionLink.DwUP-Kgm.js +155 -0
- package/chunks/{AriaLiveRegions.utils.CybNIBSa.js → AriaLiveRegions.utils.CLpOaVD9.js} +1 -1
- package/chunks/{Breadcrumb.C_Yaz_vw.js → Breadcrumb.nflDJoKs.js} +6 -6
- package/chunks/{Button.CQlIao-Z.js → Button.DpGeheky.js} +6 -6
- package/chunks/{Checkbox.D5X5T6Yg.js → Checkbox.B3NeB54s.js} +5 -5
- package/chunks/{CheckboxGroup.BIspWqeW.js → CheckboxGroup.BYZSvqF7.js} +4 -4
- package/chunks/{Chip.DIp5hdRH.js → Chip.SiGIIHR-.js} +42 -42
- package/chunks/{CustomReactSelect.DS9Ey-jr.js → CustomReactSelect.DBsnmMPl.js} +11 -11
- package/chunks/{Dialog.DMxHRrxo.js → Dialog.C-rcs_Up.js} +4 -4
- package/chunks/{Drawer.CatmvDHJ.js → Drawer.D0d557c5.js} +4 -4
- package/chunks/{Fieldset.Bk8W5h13.js → Fieldset.7WM7w62l.js} +7 -7
- package/chunks/Header.DyqOlV8L.js +402 -0
- package/chunks/{Icon.CDLyB7Pv.js → Icon.m6sMB6vl.js} +97 -94
- package/chunks/{Input.utils.CL1u4Ctq.js → Input.utils.D78E4MGO.js} +1 -1
- package/chunks/{InputFile.CjK3gEst.js → InputFile.DRGNdtY0.js} +10 -10
- package/chunks/{InputNumber.wfDjnz58.js → InputNumber.a44HnJ9B.js} +9 -11
- package/chunks/{InputPassword.Ctb0xbwg.js → InputPassword.B1E0Maub.js} +7 -7
- package/chunks/{InputSearch.C-r5ktR8.js → InputSearch.C7AvD7Eu.js} +7 -7
- package/chunks/{LinkButton.CWibqvhs.js → LinkButton.CMjq2FKc.js} +5 -5
- package/chunks/{LinkCard.SIrSjRNL.js → LinkCard.CJ5P0ews.js} +6 -6
- package/chunks/{MegaMenu.qttkjGbD.js → MegaMenu.CiSiMlE3.js} +9 -9
- package/chunks/{NavigationTabList.G_l0GiUa.js → NavigationTabList.C2f-lWex.js} +4 -4
- package/chunks/{NavigationTabs.SBNLx87A.js → NavigationTabs.D2QrnlL2.js} +2 -2
- package/chunks/{Notification.DYl1rcGu.js → Notification.COwLndR0.js} +5 -5
- package/chunks/{Popover.C9tT8xkE.js → Popover.C5wtha5l.js} +6 -6
- package/chunks/{RadioGroup.DupoApOX.js → RadioGroup.B-qTH31u.js} +4 -4
- package/chunks/{Select.BjBPN-6W.js → Select.DrDVi9lg.js} +7 -7
- package/chunks/{Slider.Bh2jhGKn.js → Slider.DGMrDfWv.js} +6 -6
- package/chunks/{Stepper.D1Yzw-gL.js → Stepper.DptsFh5n.js} +5 -5
- package/chunks/{SystemFeedback.CjlARKki.js → SystemFeedback.DFN6Y2cw.js} +3 -3
- package/chunks/{Tabs.BvG-OPWa.js → Tabs.2JTenRcr.js} +3 -3
- package/chunks/{Text.utils.B4MiHAK_.js → Text.utils.D_iOyOSH.js} +1 -1
- package/chunks/{TextUtility.C68m5upo.js → TextUtility.Wbd4oQXI.js} +4 -4
- package/chunks/{Textarea.DibBqiam.js → Textarea.ymNCbcvH.js} +6 -6
- package/chunks/{Toast.ldZRNpGM.js → Toast.RUzRjojQ.js} +14 -14
- package/chunks/{floating-ui.react.COTL3jH5.js → floating-ui.react.CP5A99-c.js} +1 -5
- package/chunks/{index.DL9mof6u.js → index.DQOqod3i.js} +0 -5
- package/chunks/{index.D-sRdssb.js → index.cKLI89Eg.js} +1 -13
- package/{combobox.Ds2prR5y.js → combobox.DzSEFo_5.js} +2 -2
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -7
- package/components/Header/Header.d.ts +3 -3
- package/customreactselect.D7YraWJ7.js +15 -0
- package/dialog.CBovd8em.js +9 -0
- package/drawer.D5F0KXI2.js +9 -0
- package/fieldset.DgbZ_K_l.js +12 -0
- package/{filelist.Bcu6TZRj.js → filelist.CDEBo3Pi.js} +5 -5
- package/{flag.CE32qHPa.js → flag.D-wrUioF.js} +4 -4
- package/{floatingactionbutton.B5hJ2At2.js → floatingactionbutton.CE-Rz0dx.js} +7 -7
- package/{header.A77yIAH3.js → header.BtGgmM59.js} +3 -3
- package/{heading.DHLpT4dc.js → heading.BHSklXho.js} +3 -3
- package/icon.ByLYRkPZ.js +9 -0
- package/index.es.js +52 -52
- package/{input.DL_M_Pg3.js → input.MZXe6rlg.js} +10 -12
- package/inputfile.BO4wDnzQ.js +18 -0
- package/inputnumber.DevQudIX.js +17 -0
- package/inputpassword.C-XYK-JP.js +13 -0
- package/inputsearch.CmJdxnzX.js +15 -0
- package/{link.BtZeNdii.js → link.R1lfD5aN.js} +6 -6
- package/linkbutton.Y-ET1tc9.js +12 -0
- package/linkcard.CayqoQNo.js +12 -0
- package/{logo.DprmD8HU.js → logo.D7LnRA1E.js} +3 -3
- package/{logo100years.DDzCrczW.js → logo100years.C0IojOp9.js} +2 -2
- package/megamenu.CUjk3_h2.js +12 -0
- package/navigationtablist.CKPpQrme.js +10 -0
- package/navigationtabs.VUAOwesQ.js +9 -0
- package/notification.u_LLz-O0.js +10 -0
- package/numberindicator.ZGVRSmqf.js +36 -0
- package/{optioncheckbox.nBVwGv6c.js → optioncheckbox.v8Plcgeg.js} +5 -5
- package/package.json +37 -37
- package/partials/index.js +88 -88
- package/popover.T7-imfkx.js +12 -0
- package/radio.DxdVKoxe.js +137 -0
- package/radiogroup.CAh4wto1.js +11 -0
- package/{scroller.B1LijjCF.js → scroller.DfhhZelk.js} +16 -16
- package/select.CSCc_-6d.js +14 -0
- package/{skiptocontent.CAQy194o.js → skiptocontent.C2HpZt5q.js} +3 -3
- package/slider.B2aQwfc2.js +12 -0
- package/{spinner.C9qCeq0R.js → spinner.CRVyui04.js} +5 -5
- package/{step.DaJFsafj.js → step.C-LC5sKQ.js} +6 -6
- package/{stepper.DcaZESJi.js → stepper.CRljfUF8.js} +6 -6
- package/styles/scss/ds/lib/ds-internal/_focus.scss +5 -5
- package/{switch.Bqdyzi2E.js → switch.DgKgzm-j.js} +5 -5
- package/systemfeedback.BKLsE5sY.js +10 -0
- package/{tablist.mX5nQWwH.js → tablist.hMHdX1V8.js} +23 -22
- package/{tabpane.C4nsUlwc.js → tabpane.7vMXUKFX.js} +4 -4
- package/tabs.t-gR7dGc.js +11 -0
- package/{text.CQdFtUUQ.js → text.D_e3JBvf.js} +4 -4
- package/textarea.CDXY-OVz.js +14 -0
- package/textutility.CNWCGYOy.js +11 -0
- package/{title.DuLPB-VK.js → title.kJ48FkPU.js} +4 -4
- package/toast.Bev-Rfuw.js +11 -0
- package/{toastmanager.BGIYNKkT.js → toastmanager.DII20_9k.js} +3 -3
- package/{tooltip.Cj3AvYgB.js → tooltip._lP4aMV2.js} +8 -8
- package/topbar.Z9NNkxKU.js +12 -0
- package/utils/index.d.ts +1 -0
- package/utils/useElementSize.d.ts +14 -0
- package/utils/useElementSize.test.d.ts +1 -0
- package/accordion.Dmqocj97.js +0 -12
- package/actionbutton.qf7Bc8JA.js +0 -12
- package/actionlink.Ke8jQtse.js +0 -12
- package/assets/Accordion.CzBGud45.css +0 -1
- package/assets/ActionButton.sn7jTqva.css +0 -1
- package/assets/ActionLink.D7fuY3NQ.css +0 -1
- package/assets/Button.CmeGVEAY.css +0 -1
- package/assets/Checkbox.CyOw3rXI.css +0 -1
- package/assets/Chip.dxIYIjj7.css +0 -1
- package/assets/CustomReactSelect.BihX36Uo.css +0 -1
- package/assets/Dialog.DJkn65Es.css +0 -1
- package/assets/Drawer.x3BCQvWE.css +0 -1
- package/assets/Fieldset.Oqu7pOBv.css +0 -1
- package/assets/Header.CNqtWTxB.css +0 -1
- package/assets/InputFile.D7Ihod7B.css +0 -1
- package/assets/InputNumber.z_UqRYdv.css +0 -1
- package/assets/InputPassword.DZENjxJ9.css +0 -1
- package/assets/InputSearch.GBH9Eh6F.css +0 -1
- package/assets/LinkButton.88j5ckLu.css +0 -1
- package/assets/LinkCard.Bi9QqIDA.css +0 -1
- package/assets/MegaMenu.D5EtjFeL.css +0 -1
- package/assets/NavigationTabList.CFlVhUzS.css +0 -1
- package/assets/Notification.CvohYEvT.css +0 -1
- package/assets/Popover.CXyUaXiO.css +0 -1
- package/assets/Select.CL0fqx7X.css +0 -1
- package/assets/Slider.DWLuIsNj.css +0 -1
- package/assets/TextUtility.BsMYk5lH.css +0 -1
- package/assets/Textarea.B1HOakic.css +0 -1
- package/assets/Toast.CGyKXb4V.css +0 -1
- package/assets/buttonround.DBpMesfr.css +0 -1
- package/assets/floatingactionbutton.l0nvFiJU.css +0 -1
- package/assets/heading.B-rdLVZD.css +0 -1
- package/assets/input.RPDR8qdT.css +0 -1
- package/assets/link.CeJUHbdf.css +0 -1
- package/assets/logo._GqPgimo.css +0 -1
- package/assets/optioncheckbox.DAffEKvY.css +0 -1
- package/assets/radio.BLd_UGcp.css +0 -1
- package/assets/scroller.Hszs1Yq4.css +0 -1
- package/assets/step.BeLporJO.css +0 -1
- package/assets/switch.B9B-n_3y.css +0 -1
- package/assets/tabpane.D1LTb432.css +0 -1
- package/assets/text.ZCpNYmwU.css +0 -1
- package/assets/title.B0tsgJ-n.css +0 -1
- package/asterisk.B2ih8VwF.js +0 -13
- package/breadcrumb.DpIAQk3r.js +0 -11
- package/button.CqNYOfSj.js +0 -12
- package/checkbox.XYQI-ubx.js +0 -12
- package/checkboxgroup.C66ZwglF.js +0 -9
- package/chip.B-pxhsdb.js +0 -12
- package/chipgroup.CY3pWyLO.js +0 -144
- package/chunks/Accordion.CYIfNOWr.js +0 -168
- package/chunks/ActionButton.CyMR7DqS.js +0 -180
- package/chunks/ActionLink.5wdpwrU9.js +0 -153
- package/chunks/Header.18sOO0Gf.js +0 -370
- package/customreactselect.CUmUV5IW.js +0 -15
- package/dialog.D5geKDtZ.js +0 -9
- package/drawer.ucjhpIF4.js +0 -9
- package/fieldset.Crx4Cb9a.js +0 -12
- package/icon.vzkPwgjZ.js +0 -9
- package/inputfile.iwsNHjrc.js +0 -18
- package/inputnumber.raC_7KIP.js +0 -17
- package/inputpassword.Brte78Sr.js +0 -13
- package/inputsearch.BP0EzFcF.js +0 -15
- package/linkbutton.In_ROT0Z.js +0 -12
- package/linkcard.CyNfW13i.js +0 -12
- package/megamenu.BurL9MfF.js +0 -12
- package/navigationtablist.CkkLyHrM.js +0 -10
- package/navigationtabs.EbmfKv1R.js +0 -9
- package/notification.tadg6lCc.js +0 -10
- package/numberindicator.BdnPMogE.js +0 -33
- package/popover.CXq7VoZt.js +0 -12
- package/radio.DYKHJbxF.js +0 -134
- package/radiogroup.D-t1_oGC.js +0 -11
- package/select.CZ0C3yJD.js +0 -14
- package/slider.B3u5du_Q.js +0 -12
- package/systemfeedback.O7tj1juR.js +0 -10
- package/tabs.DjWfks34.js +0 -11
- package/textarea.69r-5faY.js +0 -14
- package/textutility.DMKAWLsT.js +0 -11
- package/toast.FzO5KoiK.js +0 -11
- package/topbar.CAujTZAE.js +0 -12
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as m, jsxs as V } from "react/jsx-runtime";
|
|
3
|
-
import { d as ye } from "./index.D-sRdssb.js";
|
|
4
|
-
import { c as W } from "./index.DL9mof6u.js";
|
|
5
|
-
import { forwardRef as fe, useRef as Se, useState as ge, useImperativeHandle as Ce, useEffect as _e } from "react";
|
|
6
|
-
import { DSHeading as ve } from "../heading.DHLpT4dc.js";
|
|
7
|
-
import { D as We } from "./Icon.CDLyB7Pv.js";
|
|
8
|
-
import { NumberIndicator as qe } from "../numberindicator.BdnPMogE.js";
|
|
9
|
-
import { g as ie } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/Accordion.CzBGud45.css';const Oe = "ds-accordion_details_1qee7_1", Ne = "ds-accordion_summary_1qee7_119", we = "ds-accordion_summary--utility--m_1qee7_158", De = "ds-accordion_summary--flush_1qee7_187", xe = "ds-accordion_summary--small_1qee7_255", Ie = "ds-accordion_summary--x-small_1qee7_259", Ee = "ds-accordion_summary-content-wrapper_1qee7_264", Ae = "ds-accordion_summary-content-wrapper--flush_1qee7_270", Xe = "ds-accordion_summary-content-wrapper--chevron-left_1qee7_274", be = "ds-accordion_summary-content-wrapper--x-small_1qee7_278", Fe = "ds-accordion_heading-summary-wrapper_1qee7_282", Te = "ds-accordion_heading-summary_1qee7_282", Pe = "ds-accordion_heading-summary--x-small_1qee7_292", Re = "ds-accordion_hint_1qee7_296", Le = "ds-accordion_icon_1qee7_310", je = "ds-accordion_icon--open_1qee7_321", ze = "ds-accordion_icon--open-caret_1qee7_332", Me = "ds-accordion_content-wrapper_1qee7_344", He = "ds-accordion_content-wrapper--flush_1qee7_350", Ue = "ds-accordion_content-wrapper--small_1qee7_354", Ve = "ds-accordion_content-wrapper--x-small_1qee7_358", t = {
|
|
11
|
-
details: Oe,
|
|
12
|
-
summary: Ne,
|
|
13
|
-
summaryUtilityM: we,
|
|
14
|
-
summaryFlush: De,
|
|
15
|
-
summarySmall: xe,
|
|
16
|
-
summaryXSmall: Ie,
|
|
17
|
-
summaryContentWrapper: Ee,
|
|
18
|
-
summaryContentWrapperFlush: Ae,
|
|
19
|
-
summaryContentWrapperChevronLeft: Xe,
|
|
20
|
-
summaryContentWrapperXSmall: be,
|
|
21
|
-
headingSummaryWrapper: Fe,
|
|
22
|
-
headingSummary: Te,
|
|
23
|
-
headingSummaryXSmall: Pe,
|
|
24
|
-
hint: Re,
|
|
25
|
-
icon: Le,
|
|
26
|
-
iconOpen: je,
|
|
27
|
-
iconOpenCaret: ze,
|
|
28
|
-
contentWrapper: Me,
|
|
29
|
-
contentWrapperFlush: He,
|
|
30
|
-
contentWrapperSmall: Ue,
|
|
31
|
-
contentWrapperXSmall: Ve
|
|
32
|
-
}, tt = ["medium", "small", "x-small"], rt = ["chevron", "caret"], nt = ["left", "right"], Ze = ({
|
|
33
|
-
children: q,
|
|
34
|
-
hint: Z,
|
|
35
|
-
numberIndicatorValue: e,
|
|
36
|
-
summary: n
|
|
37
|
-
}) => {
|
|
38
|
-
if (!q)
|
|
39
|
-
throw new Error(ie("DSAccordion", "The component requires children to be set."));
|
|
40
|
-
if (!n)
|
|
41
|
-
throw new Error(ie("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
|
|
42
|
-
if (Z && (e || e === ""))
|
|
43
|
-
throw new Error(ie("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
|
|
44
|
-
}, $e = fe((q, Z) => {
|
|
45
|
-
const e = ye.c(73);
|
|
46
|
-
let n, i, o, s, p, r, O, N, w, D;
|
|
47
|
-
e[0] !== q ? ({
|
|
48
|
-
children: n,
|
|
49
|
-
summary: r,
|
|
50
|
-
chevronPosition: O,
|
|
51
|
-
className: i,
|
|
52
|
-
hint: o,
|
|
53
|
-
isFlush: N,
|
|
54
|
-
isOpen: w,
|
|
55
|
-
numberIndicatorValue: s,
|
|
56
|
-
size: D,
|
|
57
|
-
...p
|
|
58
|
-
} = q, e[0] = q, e[1] = n, e[2] = i, e[3] = o, e[4] = s, e[5] = p, e[6] = r, e[7] = O, e[8] = N, e[9] = w, e[10] = D) : (n = e[1], i = e[2], o = e[3], s = e[4], p = e[5], r = e[6], O = e[7], N = e[8], w = e[9], D = e[10]);
|
|
59
|
-
const pe = O === void 0 ? "right" : O, a = N === void 0 ? !1 : N, l = w === void 0 ? !1 : w, d = D === void 0 ? "medium" : D;
|
|
60
|
-
process.env.NODE_ENV !== "production" && Ze({
|
|
61
|
-
children: n,
|
|
62
|
-
hint: o,
|
|
63
|
-
numberIndicatorValue: s,
|
|
64
|
-
summary: r
|
|
65
|
-
});
|
|
66
|
-
const $ = pe === "right" ? "chevron" : "caret", c = Se(null), [de, ue] = ge(l);
|
|
67
|
-
let I;
|
|
68
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (I = () => c.current, e[11] = I) : I = e[11], Ce(Z, I);
|
|
69
|
-
let E;
|
|
70
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
71
|
-
c.current && ue(c.current.open);
|
|
72
|
-
}, e[12] = E) : E = e[12];
|
|
73
|
-
let A;
|
|
74
|
-
e[13] !== l ? (A = [l], e[13] = l, e[14] = A) : A = e[14], _e(E, A);
|
|
75
|
-
let X, b;
|
|
76
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (X = () => {
|
|
77
|
-
const he = () => {
|
|
78
|
-
c.current && ue(c.current.open);
|
|
79
|
-
};
|
|
80
|
-
return c.current?.addEventListener("toggle", he), () => {
|
|
81
|
-
c.current?.removeEventListener("toggle", he);
|
|
82
|
-
};
|
|
83
|
-
}, b = [], e[15] = X, e[16] = b) : (X = e[15], b = e[16]), _e(X, b);
|
|
84
|
-
let F, T, P;
|
|
85
|
-
const x = typeof r == "object" && r !== void 0;
|
|
86
|
-
x && ({
|
|
87
|
-
headingSize: F,
|
|
88
|
-
headingTag: T,
|
|
89
|
-
headingText: P
|
|
90
|
-
} = r);
|
|
91
|
-
let R;
|
|
92
|
-
e[17] !== i ? (R = W(t.details, i), e[17] = i, e[18] = R) : R = e[18];
|
|
93
|
-
const k = R, B = d === "small", G = d === "x-small", J = !x;
|
|
94
|
-
let L;
|
|
95
|
-
e[19] !== a || e[20] !== B || e[21] !== G || e[22] !== J ? (L = W(t.summary, {
|
|
96
|
-
[t.summaryFlush]: a,
|
|
97
|
-
[t.summarySmall]: B,
|
|
98
|
-
[t.summaryXSmall]: G,
|
|
99
|
-
[t.summaryUtilityM]: J
|
|
100
|
-
}), e[19] = a, e[20] = B, e[21] = G, e[22] = J, e[23] = L) : L = e[23];
|
|
101
|
-
const K = L, Q = pe === "left", Y = d === "x-small";
|
|
102
|
-
let j;
|
|
103
|
-
e[24] !== a || e[25] !== Q || e[26] !== Y ? (j = W(t.summaryContentWrapper, {
|
|
104
|
-
[t.summaryContentWrapperFlush]: a,
|
|
105
|
-
[t.summaryContentWrapperChevronLeft]: Q,
|
|
106
|
-
[t.summaryContentWrapperXSmall]: Y
|
|
107
|
-
}), e[24] = a, e[25] = Q, e[26] = Y, e[27] = j) : j = e[27];
|
|
108
|
-
const ee = j, te = d === "x-small";
|
|
109
|
-
let z;
|
|
110
|
-
e[28] !== te ? (z = W(t.headingSummary, {
|
|
111
|
-
[t.headingSummaryXSmall]: te
|
|
112
|
-
}), e[28] = te, e[29] = z) : z = e[29];
|
|
113
|
-
const re = z, ne = $ === "chevron" && de, se = $ === "caret" && de;
|
|
114
|
-
let M;
|
|
115
|
-
e[30] !== ne || e[31] !== se ? (M = W(t.icon, {
|
|
116
|
-
[t.iconOpen]: ne,
|
|
117
|
-
[t.iconOpenCaret]: se
|
|
118
|
-
}), e[30] = ne, e[31] = se, e[32] = M) : M = e[32];
|
|
119
|
-
const ae = M, oe = d === "small", ce = d === "x-small";
|
|
120
|
-
let H;
|
|
121
|
-
e[33] !== a || e[34] !== oe || e[35] !== ce ? (H = W(t.contentWrapper, {
|
|
122
|
-
[t.contentWrapperFlush]: a,
|
|
123
|
-
[t.contentWrapperSmall]: oe,
|
|
124
|
-
[t.contentWrapperXSmall]: ce
|
|
125
|
-
}), e[33] = a, e[34] = oe, e[35] = ce, e[36] = H) : H = e[36];
|
|
126
|
-
const le = H;
|
|
127
|
-
let u;
|
|
128
|
-
e[37] !== F || e[38] !== T || e[39] !== P || e[40] !== x || e[41] !== r ? (u = x ? /* @__PURE__ */ m(ve, { tag: T, size: F, children: P }) : r, e[37] = F, e[38] = T, e[39] = P, e[40] = x, e[41] = r, e[42] = u) : u = e[42];
|
|
129
|
-
let h;
|
|
130
|
-
e[43] !== s ? (h = (s || s?.trim() === "") && /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(qe, { label: s }) }), e[43] = s, e[44] = h) : h = e[44];
|
|
131
|
-
let _;
|
|
132
|
-
e[45] !== re || e[46] !== u || e[47] !== h ? (_ = /* @__PURE__ */ V("div", { className: re, children: [
|
|
133
|
-
u,
|
|
134
|
-
h
|
|
135
|
-
] }), e[45] = re, e[46] = u, e[47] = h, e[48] = _) : _ = e[48];
|
|
136
|
-
let y;
|
|
137
|
-
e[49] !== o ? (y = o && /* @__PURE__ */ m("div", { className: t.hint, children: o }), e[49] = o, e[50] = y) : y = e[50];
|
|
138
|
-
let f;
|
|
139
|
-
e[51] !== _ || e[52] !== y ? (f = /* @__PURE__ */ V("div", { className: t.headingSummaryWrapper, children: [
|
|
140
|
-
_,
|
|
141
|
-
y
|
|
142
|
-
] }), e[51] = _, e[52] = y, e[53] = f) : f = e[53];
|
|
143
|
-
const me = $ === "chevron" ? "chevron-down" : "caret-right";
|
|
144
|
-
let S;
|
|
145
|
-
e[54] !== ae || e[55] !== me ? (S = /* @__PURE__ */ m(We, { name: me, "aria-hidden": "true", className: ae }), e[54] = ae, e[55] = me, e[56] = S) : S = e[56];
|
|
146
|
-
let g;
|
|
147
|
-
e[57] !== ee || e[58] !== f || e[59] !== S ? (g = /* @__PURE__ */ V("div", { className: ee, children: [
|
|
148
|
-
f,
|
|
149
|
-
S
|
|
150
|
-
] }), e[57] = ee, e[58] = f, e[59] = S, e[60] = g) : g = e[60];
|
|
151
|
-
let C;
|
|
152
|
-
e[61] !== K || e[62] !== g ? (C = /* @__PURE__ */ m("summary", { className: K, children: g }), e[61] = K, e[62] = g, e[63] = C) : C = e[63];
|
|
153
|
-
let v;
|
|
154
|
-
e[64] !== n || e[65] !== le ? (v = /* @__PURE__ */ m("div", { className: le, children: n }), e[64] = n, e[65] = le, e[66] = v) : v = e[66];
|
|
155
|
-
let U;
|
|
156
|
-
return e[67] !== k || e[68] !== l || e[69] !== p || e[70] !== C || e[71] !== v ? (U = /* @__PURE__ */ V("details", { ...p, ref: c, className: k, open: l, children: [
|
|
157
|
-
C,
|
|
158
|
-
v
|
|
159
|
-
] }), e[67] = k, e[68] = l, e[69] = p, e[70] = C, e[71] = v, e[72] = U) : U = e[72], U;
|
|
160
|
-
});
|
|
161
|
-
$e.displayName = "DSAccordion";
|
|
162
|
-
export {
|
|
163
|
-
tt as A,
|
|
164
|
-
nt as C,
|
|
165
|
-
$e as D,
|
|
166
|
-
rt as a,
|
|
167
|
-
Ze as v
|
|
168
|
-
};
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as Z, jsx as p, Fragment as wt } from "react/jsx-runtime";
|
|
3
|
-
import { d as At } from "./index.D-sRdssb.js";
|
|
4
|
-
import { c as S } from "./index.DL9mof6u.js";
|
|
5
|
-
import { forwardRef as zt } from "react";
|
|
6
|
-
import { D as gt } from "./Icon.CDLyB7Pv.js";
|
|
7
|
-
import { NumberIndicator as Tt } from "../numberindicator.BdnPMogE.js";
|
|
8
|
-
import { Tooltip as It } from "../tooltip.Cj3AvYgB.js";
|
|
9
|
-
import { g as C } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/ActionButton.sn7jTqva.css';const St = "ds-action-button_root_19zdv_1", Ct = "ds-action-button_root--indent-level-1_19zdv_75", Ot = "ds-action-button_root--active_19zdv_78", Pt = "ds-action-button_root--active--with-marker_19zdv_81", Dt = "ds-action-button_root--icon--top_19zdv_84", Bt = "ds-action-button_root--stretched_19zdv_110", kt = "ds-action-button_active-marker_19zdv_115", Lt = "ds-action-button_active-marker--with-indent_19zdv_127", Et = "ds-action-button_icon-wrapper_19zdv_131", xt = "ds-action-button_icon-wrapper--x-large_19zdv_134", Mt = "ds-action-button_icon-wrapper--with-number-indicator_19zdv_137", Ut = "ds-action-button_icon-wrapper--with-number-indicator--with-value_19zdv_145", Vt = "ds-action-button_label_19zdv_149", Rt = "ds-action-button_label--bold_19zdv_160", yt = "ds-action-button_label--active_19zdv_171", Ht = "ds-action-button_label--icon-top_19zdv_182", Xt = "ds-action-button_number-indicator_19zdv_205", jt = "ds-action-button_label-wrapper_19zdv_209", Ft = "ds-action-button_label-wrapper--icon-top_19zdv_214", Gt = "ds-action-button_chevron_19zdv_218", Zt = "ds-action-button_chevron--icon-position-top_19zdv_233", $t = "ds-action-button_chevron--up_19zdv_239", qt = "ds-action-button_chevron--right_19zdv_250", Jt = "ds-action-button_chevron--left_19zdv_261", o = {
|
|
11
|
-
root: St,
|
|
12
|
-
rootIndentLevel1: Ct,
|
|
13
|
-
rootActive: Ot,
|
|
14
|
-
rootActiveWithMarker: Pt,
|
|
15
|
-
rootIconTop: Dt,
|
|
16
|
-
rootStretched: Bt,
|
|
17
|
-
activeMarker: kt,
|
|
18
|
-
activeMarkerWithIndent: Lt,
|
|
19
|
-
iconWrapper: Et,
|
|
20
|
-
iconWrapperXLarge: xt,
|
|
21
|
-
iconWrapperWithNumberIndicator: Mt,
|
|
22
|
-
iconWrapperWithNumberIndicatorWithValue: Ut,
|
|
23
|
-
label: Vt,
|
|
24
|
-
labelBold: Rt,
|
|
25
|
-
labelActive: yt,
|
|
26
|
-
labelIconTop: Ht,
|
|
27
|
-
numberIndicator: Xt,
|
|
28
|
-
labelWrapper: jt,
|
|
29
|
-
labelWrapperIconTop: Ft,
|
|
30
|
-
chevron: Gt,
|
|
31
|
-
chevronIconPositionTop: Zt,
|
|
32
|
-
chevronUp: $t,
|
|
33
|
-
chevronRight: qt,
|
|
34
|
-
chevronLeft: Jt
|
|
35
|
-
}, ao = ["left", "top"], so = ["large", "x-large"], lo = [0, 1], po = ["normal", "bold"], ho = ["up", "down", "right", "left"], Kt = ({
|
|
36
|
-
iconName: u,
|
|
37
|
-
iconSize: f,
|
|
38
|
-
iconSource: t,
|
|
39
|
-
iconPosition: d,
|
|
40
|
-
indentLevel: r,
|
|
41
|
-
stretched: h,
|
|
42
|
-
weight: v
|
|
43
|
-
}) => {
|
|
44
|
-
if (u && !t && f === "x-large" && console.warn(C("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.')), d === "top") {
|
|
45
|
-
if (!u && !t)
|
|
46
|
-
throw new Error(C("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.'));
|
|
47
|
-
f === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), v === "bold" && console.warn(C("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(C("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), h && console.warn(C("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
48
|
-
}
|
|
49
|
-
}, Qt = zt((u, f) => {
|
|
50
|
-
const t = At.c(91);
|
|
51
|
-
let d, r, h, v, c, a, i, _, m, O, P, D, B, k, L, E, b;
|
|
52
|
-
t[0] !== u ? ({
|
|
53
|
-
children: h,
|
|
54
|
-
aria: d,
|
|
55
|
-
chevronDirection: r,
|
|
56
|
-
className: v,
|
|
57
|
-
disabled: O,
|
|
58
|
-
iconName: c,
|
|
59
|
-
iconPosition: P,
|
|
60
|
-
iconSize: D,
|
|
61
|
-
iconSource: a,
|
|
62
|
-
indentLevel: B,
|
|
63
|
-
isActive: k,
|
|
64
|
-
numberIndicatorValue: i,
|
|
65
|
-
stretched: L,
|
|
66
|
-
weight: E,
|
|
67
|
-
tooltip: b,
|
|
68
|
-
onClick: _,
|
|
69
|
-
...m
|
|
70
|
-
} = u, t[0] = u, t[1] = d, t[2] = r, t[3] = h, t[4] = v, t[5] = c, t[6] = a, t[7] = i, t[8] = _, t[9] = m, t[10] = O, t[11] = P, t[12] = D, t[13] = B, t[14] = k, t[15] = L, t[16] = E, t[17] = b) : (d = t[1], r = t[2], h = t[3], v = t[4], c = t[5], a = t[6], i = t[7], _ = t[8], m = t[9], O = t[10], P = t[11], D = t[12], B = t[13], k = t[14], L = t[15], E = t[16], b = t[17]);
|
|
71
|
-
const n = O === void 0 ? !1 : O, e = P === void 0 ? "left" : P, x = D === void 0 ? "large" : D, $ = B === void 0 ? 0 : B, I = k === void 0 ? !1 : k, Nt = L === void 0 ? !1 : L, Wt = E === void 0 ? "normal" : E;
|
|
72
|
-
process.env.NODE_ENV !== "production" && Kt({
|
|
73
|
-
iconName: c,
|
|
74
|
-
iconSize: x,
|
|
75
|
-
iconSource: a,
|
|
76
|
-
iconPosition: e,
|
|
77
|
-
indentLevel: $,
|
|
78
|
-
stretched: Nt,
|
|
79
|
-
weight: Wt
|
|
80
|
-
});
|
|
81
|
-
const s = i?.trim() === "", q = e === "top", J = $ === 1, K = I && !n, Q = I && !n && e === "left", Y = Nt === !0 && e === "left";
|
|
82
|
-
let M;
|
|
83
|
-
t[18] !== v || t[19] !== K || t[20] !== Q || t[21] !== Y || t[22] !== q || t[23] !== J ? (M = S(o.root, v, {
|
|
84
|
-
[o.rootIconTop]: q,
|
|
85
|
-
[o.rootIndentLevel1]: J,
|
|
86
|
-
[o.rootActive]: K,
|
|
87
|
-
[o.rootActiveWithMarker]: Q,
|
|
88
|
-
[o.rootStretched]: Y
|
|
89
|
-
}), t[18] = v, t[19] = K, t[20] = Q, t[21] = Y, t[22] = q, t[23] = J, t[24] = M) : M = t[24];
|
|
90
|
-
const tt = M, ot = $ === 1;
|
|
91
|
-
let U;
|
|
92
|
-
t[25] !== ot ? (U = S(o.activeMarker, {
|
|
93
|
-
[o.activeMarkerWithIndent]: ot
|
|
94
|
-
}), t[25] = ot, t[26] = U) : U = t[26];
|
|
95
|
-
const et = U, nt = I && !n, it = Wt === "bold", rt = e === "top";
|
|
96
|
-
let V;
|
|
97
|
-
t[27] !== nt || t[28] !== it || t[29] !== rt ? (V = S(o.label, {
|
|
98
|
-
[o.labelActive]: nt,
|
|
99
|
-
[o.labelBold]: it,
|
|
100
|
-
[o.labelIconTop]: rt
|
|
101
|
-
}), t[27] = nt, t[28] = it, t[29] = rt, t[30] = V) : V = t[30];
|
|
102
|
-
const ct = V, at = e === "top";
|
|
103
|
-
let R;
|
|
104
|
-
t[31] !== at ? (R = S(o.labelWrapper, {
|
|
105
|
-
[o.labelWrapperIconTop]: at
|
|
106
|
-
}), t[31] = at, t[32] = R) : R = t[32];
|
|
107
|
-
const st = R, lt = e === "top", pt = r === "up", dt = r === "right", ht = r === "left";
|
|
108
|
-
let y;
|
|
109
|
-
t[33] !== lt || t[34] !== pt || t[35] !== dt || t[36] !== ht ? (y = S(o.chevron, {
|
|
110
|
-
[o.chevronIconPositionTop]: lt,
|
|
111
|
-
[o.chevronUp]: pt,
|
|
112
|
-
[o.chevronRight]: dt,
|
|
113
|
-
[o.chevronLeft]: ht
|
|
114
|
-
}), t[33] = lt, t[34] = pt, t[35] = dt, t[36] = ht, t[37] = y) : y = t[37];
|
|
115
|
-
const vt = y, _t = x === "x-large", bt = (c || a) && (i || s), ut = (c || a) && !s;
|
|
116
|
-
let H;
|
|
117
|
-
t[38] !== _t || t[39] !== bt || t[40] !== ut ? (H = S(o.iconWrapper, {
|
|
118
|
-
[o.iconWrapperXLarge]: _t,
|
|
119
|
-
[o.iconWrapperWithNumberIndicator]: bt,
|
|
120
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: ut
|
|
121
|
-
}), t[38] = _t, t[39] = bt, t[40] = ut, t[41] = H) : H = t[41];
|
|
122
|
-
const ft = H;
|
|
123
|
-
let X;
|
|
124
|
-
t[42] !== n || t[43] !== _ ? (X = (l) => {
|
|
125
|
-
if (n) {
|
|
126
|
-
l.preventDefault();
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
_ && _(l);
|
|
130
|
-
}, t[42] = n, t[43] = _, t[44] = X) : X = t[44];
|
|
131
|
-
const mt = X;
|
|
132
|
-
let N;
|
|
133
|
-
t[45] !== et || t[46] !== e || t[47] !== I ? (N = I && e === "left" && /* @__PURE__ */ p("div", { className: et }), t[45] = et, t[46] = e, t[47] = I, t[48] = N) : N = t[48];
|
|
134
|
-
let W;
|
|
135
|
-
t[49] !== n || t[50] !== c || t[51] !== e || t[52] !== x || t[53] !== a || t[54] !== ft || t[55] !== s || t[56] !== i ? (W = (c || a) && /* @__PURE__ */ p(wt, { children: /* @__PURE__ */ Z("span", { className: ft, children: [
|
|
136
|
-
/* @__PURE__ */ p(gt, { name: c, theme: "light", source: a, "aria-hidden": "true", size: c || e === "top" ? "large" : x }),
|
|
137
|
-
!n && (e === "left" && s || e === "top" && (i || s)) && /* @__PURE__ */ p(Tt, { variant: "highlight", label: i })
|
|
138
|
-
] }) }), t[49] = n, t[50] = c, t[51] = e, t[52] = x, t[53] = a, t[54] = ft, t[55] = s, t[56] = i, t[57] = W) : W = t[57];
|
|
139
|
-
let g;
|
|
140
|
-
t[58] !== h || t[59] !== ct ? (g = /* @__PURE__ */ p("span", { className: ct, children: h }), t[58] = h, t[59] = ct, t[60] = g) : g = t[60];
|
|
141
|
-
let T;
|
|
142
|
-
t[61] !== vt || t[62] !== r ? (T = r && /* @__PURE__ */ p(gt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: vt }), t[61] = vt, t[62] = r, t[63] = T) : T = t[63];
|
|
143
|
-
let w;
|
|
144
|
-
t[64] !== st || t[65] !== g || t[66] !== T ? (w = /* @__PURE__ */ Z("div", { className: st, children: [
|
|
145
|
-
g,
|
|
146
|
-
T
|
|
147
|
-
] }), t[64] = st, t[65] = g, t[66] = T, t[67] = w) : w = t[67];
|
|
148
|
-
let A;
|
|
149
|
-
t[68] !== n || t[69] !== e || t[70] !== s || t[71] !== i ? (A = e === "left" && !n && i && !s && /* @__PURE__ */ p(Tt, { variant: "default", label: i, className: o.numberIndicator }), t[68] = n, t[69] = e, t[70] = s, t[71] = i, t[72] = A) : A = t[72];
|
|
150
|
-
let j;
|
|
151
|
-
t[73] !== d || t[74] !== n || t[75] !== mt || t[76] !== f || t[77] !== m || t[78] !== tt || t[79] !== N || t[80] !== W || t[81] !== w || t[82] !== A ? (j = /* @__PURE__ */ Z("button", { className: tt, type: "button", onClick: mt, ...d, ...m, "aria-disabled": n, ref: f, children: [
|
|
152
|
-
N,
|
|
153
|
-
W,
|
|
154
|
-
w,
|
|
155
|
-
A
|
|
156
|
-
] }), t[73] = d, t[74] = n, t[75] = mt, t[76] = f, t[77] = m, t[78] = tt, t[79] = N, t[80] = W, t[81] = w, t[82] = A, t[83] = j) : j = t[83];
|
|
157
|
-
const F = j;
|
|
158
|
-
if (b) {
|
|
159
|
-
let l;
|
|
160
|
-
t[84] !== F ? (l = /* @__PURE__ */ p(It.Anchor, { children: F }), t[84] = F, t[85] = l) : l = t[85];
|
|
161
|
-
let z;
|
|
162
|
-
t[86] !== b ? (z = /* @__PURE__ */ p(It.Content, { children: b }), t[86] = b, t[87] = z) : z = t[87];
|
|
163
|
-
let G;
|
|
164
|
-
return t[88] !== l || t[89] !== z ? (G = /* @__PURE__ */ Z(It, { placement: "top", tooltipOffset: 6, children: [
|
|
165
|
-
l,
|
|
166
|
-
z
|
|
167
|
-
] }), t[88] = l, t[89] = z, t[90] = G) : G = t[90], G;
|
|
168
|
-
}
|
|
169
|
-
return F;
|
|
170
|
-
});
|
|
171
|
-
Qt.displayName = "DSActionButton";
|
|
172
|
-
export {
|
|
173
|
-
ao as A,
|
|
174
|
-
Qt as D,
|
|
175
|
-
so as a,
|
|
176
|
-
lo as b,
|
|
177
|
-
po as c,
|
|
178
|
-
ho as d,
|
|
179
|
-
Kt as v
|
|
180
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as lt, jsx as f, Fragment as ht } from "react/jsx-runtime";
|
|
3
|
-
import { d as _t } from "./index.D-sRdssb.js";
|
|
4
|
-
import { c as F } from "./index.DL9mof6u.js";
|
|
5
|
-
import { forwardRef as mt } from "react";
|
|
6
|
-
import { D as bt } from "./Icon.CDLyB7Pv.js";
|
|
7
|
-
import { NumberIndicator as ft } from "../numberindicator.BdnPMogE.js";
|
|
8
|
-
import { Tooltip as st } from "../tooltip.Cj3AvYgB.js";
|
|
9
|
-
import { g as P } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/ActionLink.D7fuY3NQ.css';const vt = "ds-action-link_root_o08fb_1", kt = "ds-action-link_root--indent-level-1_o08fb_75", It = "ds-action-link_root--active_o08fb_78", ut = "ds-action-link_root--active--with-marker_o08fb_81", Nt = "ds-action-link_root--icon--top_o08fb_84", At = "ds-action-link_root--stretched_o08fb_110", gt = "ds-action-link_active-marker_o08fb_115", wt = "ds-action-link_active-marker--with-indent_o08fb_127", Wt = "ds-action-link_icon-wrapper_o08fb_131", Lt = "ds-action-link_icon-wrapper--x-large_o08fb_134", St = "ds-action-link_icon-wrapper--with-number-indicator_o08fb_137", Pt = "ds-action-link_icon-wrapper--with-number-indicator--with-value_o08fb_145", Tt = "ds-action-link_label_o08fb_149", Dt = "ds-action-link_label--bold_o08fb_160", xt = "ds-action-link_label--active_o08fb_171", Ct = "ds-action-link_label--icon-top_o08fb_182", Mt = "ds-action-link_number-indicator_o08fb_205", o = {
|
|
11
|
-
root: vt,
|
|
12
|
-
rootIndentLevel1: kt,
|
|
13
|
-
rootActive: It,
|
|
14
|
-
rootActiveWithMarker: ut,
|
|
15
|
-
rootIconTop: Nt,
|
|
16
|
-
rootStretched: At,
|
|
17
|
-
activeMarker: gt,
|
|
18
|
-
activeMarkerWithIndent: wt,
|
|
19
|
-
iconWrapper: Wt,
|
|
20
|
-
iconWrapperXLarge: Lt,
|
|
21
|
-
iconWrapperWithNumberIndicator: St,
|
|
22
|
-
iconWrapperWithNumberIndicatorWithValue: Pt,
|
|
23
|
-
label: Tt,
|
|
24
|
-
labelBold: Dt,
|
|
25
|
-
labelActive: xt,
|
|
26
|
-
labelIconTop: Ct,
|
|
27
|
-
numberIndicator: Mt
|
|
28
|
-
}, Ft = ["left", "top"], Gt = ["large", "x-large"], Rt = [0, 1], Zt = ["normal", "bold"], Et = ({
|
|
29
|
-
iconName: m,
|
|
30
|
-
iconSize: b,
|
|
31
|
-
iconSource: t,
|
|
32
|
-
iconPosition: a,
|
|
33
|
-
indentLevel: l,
|
|
34
|
-
stretched: s,
|
|
35
|
-
weight: p
|
|
36
|
-
}) => {
|
|
37
|
-
if (m && !t && b === "x-large" && console.warn(P("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.')), a === "top") {
|
|
38
|
-
if (!m && !t)
|
|
39
|
-
throw new Error(P("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.'));
|
|
40
|
-
b === "x-large" && console.warn(P("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), p === "bold" && console.warn(P("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), l === 1 && console.warn(P("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), s && console.warn(P("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
41
|
-
}
|
|
42
|
-
}, Ot = mt((m, b) => {
|
|
43
|
-
const t = _t.c(81);
|
|
44
|
-
let a, l, s, p, h, n, r, i, v, k, I, T, D, x, C, M, E, O, _;
|
|
45
|
-
t[0] !== m ? ({
|
|
46
|
-
children: l,
|
|
47
|
-
aria: a,
|
|
48
|
-
className: s,
|
|
49
|
-
download: p,
|
|
50
|
-
href: h,
|
|
51
|
-
iconName: n,
|
|
52
|
-
iconPosition: T,
|
|
53
|
-
iconSize: D,
|
|
54
|
-
iconSource: r,
|
|
55
|
-
indentLevel: x,
|
|
56
|
-
isActive: C,
|
|
57
|
-
numberIndicatorValue: i,
|
|
58
|
-
referrerPolicy: v,
|
|
59
|
-
rel: k,
|
|
60
|
-
stretched: M,
|
|
61
|
-
target: E,
|
|
62
|
-
tooltip: _,
|
|
63
|
-
weight: O,
|
|
64
|
-
...I
|
|
65
|
-
} = m, t[0] = m, t[1] = a, t[2] = l, t[3] = s, t[4] = p, t[5] = h, t[6] = n, t[7] = r, t[8] = i, t[9] = v, t[10] = k, t[11] = I, t[12] = T, t[13] = D, t[14] = x, t[15] = C, t[16] = M, t[17] = E, t[18] = O, t[19] = _) : (a = t[1], l = t[2], s = t[3], p = t[4], h = t[5], n = t[6], r = t[7], i = t[8], v = t[9], k = t[10], I = t[11], T = t[12], D = t[13], x = t[14], C = t[15], M = t[16], E = t[17], O = t[18], _ = t[19]);
|
|
66
|
-
const e = T === void 0 ? "left" : T, z = D === void 0 ? "large" : D, G = x === void 0 ? 0 : x, d = C === void 0 ? !1 : C, pt = M === void 0 ? !1 : M, R = E === void 0 ? "_self" : E, dt = O === void 0 ? "normal" : O;
|
|
67
|
-
process.env.NODE_ENV !== "production" && Et({
|
|
68
|
-
iconName: n,
|
|
69
|
-
iconSize: z,
|
|
70
|
-
iconSource: r,
|
|
71
|
-
iconPosition: e,
|
|
72
|
-
indentLevel: G,
|
|
73
|
-
stretched: pt,
|
|
74
|
-
weight: dt
|
|
75
|
-
});
|
|
76
|
-
const c = i?.trim() === "", Z = e === "top", $ = G === 1, q = d && e === "left", J = pt === !0 && e === "left";
|
|
77
|
-
let V;
|
|
78
|
-
t[20] !== s || t[21] !== d || t[22] !== q || t[23] !== J || t[24] !== Z || t[25] !== $ ? (V = F(o.root, s, {
|
|
79
|
-
[o.rootIconTop]: Z,
|
|
80
|
-
[o.rootIndentLevel1]: $,
|
|
81
|
-
[o.rootActive]: d,
|
|
82
|
-
[o.rootActiveWithMarker]: q,
|
|
83
|
-
[o.rootStretched]: J
|
|
84
|
-
}), t[20] = s, t[21] = d, t[22] = q, t[23] = J, t[24] = Z, t[25] = $, t[26] = V) : V = t[26];
|
|
85
|
-
const Q = V, U = G === 1;
|
|
86
|
-
let K;
|
|
87
|
-
t[27] !== U ? (K = F(o.activeMarker, {
|
|
88
|
-
[o.activeMarkerWithIndent]: U
|
|
89
|
-
}), t[27] = U, t[28] = K) : K = t[28];
|
|
90
|
-
const Y = K, tt = d && e === "left", et = dt === "bold", ot = e === "top";
|
|
91
|
-
let y;
|
|
92
|
-
t[29] !== tt || t[30] !== et || t[31] !== ot ? (y = F(o.label, {
|
|
93
|
-
[o.labelActive]: tt,
|
|
94
|
-
[o.labelBold]: et,
|
|
95
|
-
[o.labelIconTop]: ot
|
|
96
|
-
}), t[29] = tt, t[30] = et, t[31] = ot, t[32] = y) : y = t[32];
|
|
97
|
-
const it = y, nt = z === "x-large", rt = (n || r) && (i || c), ct = (n || r) && !c;
|
|
98
|
-
let B;
|
|
99
|
-
t[33] !== nt || t[34] !== rt || t[35] !== ct ? (B = F(o.iconWrapper, {
|
|
100
|
-
[o.iconWrapperXLarge]: nt,
|
|
101
|
-
[o.iconWrapperWithNumberIndicator]: rt,
|
|
102
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: ct
|
|
103
|
-
}), t[33] = nt, t[34] = rt, t[35] = ct, t[36] = B) : B = t[36];
|
|
104
|
-
const at = B, u = h === void 0 ? "span" : "a";
|
|
105
|
-
let N;
|
|
106
|
-
t[37] !== u || t[38] !== p || t[39] !== h || t[40] !== v || t[41] !== k || t[42] !== R ? (N = u === "a" && {
|
|
107
|
-
href: h,
|
|
108
|
-
target: R,
|
|
109
|
-
rel: k,
|
|
110
|
-
referrerPolicy: v,
|
|
111
|
-
download: p
|
|
112
|
-
}, t[37] = u, t[38] = p, t[39] = h, t[40] = v, t[41] = k, t[42] = R, t[43] = N) : N = t[43];
|
|
113
|
-
let A;
|
|
114
|
-
t[44] !== Y || t[45] !== e || t[46] !== d ? (A = d && e === "left" && /* @__PURE__ */ f("div", { className: Y }), t[44] = Y, t[45] = e, t[46] = d, t[47] = A) : A = t[47];
|
|
115
|
-
let g;
|
|
116
|
-
t[48] !== n || t[49] !== e || t[50] !== z || t[51] !== r || t[52] !== at || t[53] !== c || t[54] !== i ? (g = (n || r) && /* @__PURE__ */ f(ht, { children: /* @__PURE__ */ lt("span", { className: at, children: [
|
|
117
|
-
/* @__PURE__ */ f(bt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : z }),
|
|
118
|
-
(e === "left" && c || e === "top" && (i || c)) && /* @__PURE__ */ f(ft, { variant: "highlight", label: i })
|
|
119
|
-
] }) }), t[48] = n, t[49] = e, t[50] = z, t[51] = r, t[52] = at, t[53] = c, t[54] = i, t[55] = g) : g = t[55];
|
|
120
|
-
let w;
|
|
121
|
-
t[56] !== l || t[57] !== it ? (w = /* @__PURE__ */ f("span", { className: it, children: l }), t[56] = l, t[57] = it, t[58] = w) : w = t[58];
|
|
122
|
-
let W;
|
|
123
|
-
t[59] !== e || t[60] !== c || t[61] !== i ? (W = e === "left" && i && !c && /* @__PURE__ */ f(ft, { variant: "default", label: i, className: o.numberIndicator }), t[59] = e, t[60] = c, t[61] = i, t[62] = W) : W = t[62];
|
|
124
|
-
let X;
|
|
125
|
-
t[63] !== u || t[64] !== a || t[65] !== b || t[66] !== I || t[67] !== Q || t[68] !== N || t[69] !== A || t[70] !== g || t[71] !== w || t[72] !== W ? (X = /* @__PURE__ */ lt(u, { className: Q, ...N, ...a, ...I, ref: b, children: [
|
|
126
|
-
A,
|
|
127
|
-
g,
|
|
128
|
-
w,
|
|
129
|
-
W
|
|
130
|
-
] }), t[63] = u, t[64] = a, t[65] = b, t[66] = I, t[67] = Q, t[68] = N, t[69] = A, t[70] = g, t[71] = w, t[72] = W, t[73] = X) : X = t[73];
|
|
131
|
-
const j = X;
|
|
132
|
-
if (_) {
|
|
133
|
-
let L;
|
|
134
|
-
t[74] !== j ? (L = /* @__PURE__ */ f(st.Anchor, { children: j }), t[74] = j, t[75] = L) : L = t[75];
|
|
135
|
-
let S;
|
|
136
|
-
t[76] !== _ ? (S = /* @__PURE__ */ f(st.Content, { children: _ }), t[76] = _, t[77] = S) : S = t[77];
|
|
137
|
-
let H;
|
|
138
|
-
return t[78] !== L || t[79] !== S ? (H = /* @__PURE__ */ lt(st, { placement: "top", tooltipOffset: 6, children: [
|
|
139
|
-
L,
|
|
140
|
-
S
|
|
141
|
-
] }), t[78] = L, t[79] = S, t[80] = H) : H = t[80], H;
|
|
142
|
-
}
|
|
143
|
-
return j;
|
|
144
|
-
});
|
|
145
|
-
Ot.displayName = "DSActionLink";
|
|
146
|
-
export {
|
|
147
|
-
Ft as A,
|
|
148
|
-
Ot as D,
|
|
149
|
-
Gt as a,
|
|
150
|
-
Rt as b,
|
|
151
|
-
Zt as c,
|
|
152
|
-
Et as v
|
|
153
|
-
};
|