@stihl-design-system/components 1.0.0-RC.44 → 1.0.0-RC.45
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.fQnuIgvf.js → accordion.MzP6R77w.js} +2 -2
- package/{actionbutton.CrKiuo82.js → actionbutton.G5W7UVFl.js} +2 -2
- package/{actioncard.WFXhVqOa.js → actioncard.BwquHtM_.js} +1 -1
- package/{actionlink.Df17YKFt.js → actionlink.DquMiuMX.js} +2 -2
- package/assets/ActionCard.BG8w8xUC.css +1 -0
- package/assets/Dialog.BKwWy1g2.css +1 -0
- package/assets/Drawer.BU-fi5Hk.css +1 -0
- package/assets/LinkButton.CxJvjEY5.css +1 -0
- package/assets/LinkCard.DkQoQJxx.css +1 -0
- package/assets/NavigationTabList.DYjNT2Di.css +1 -0
- package/assets/Pagination.DZ1yCAMR.css +1 -0
- package/assets/buttonround.CMrJRIeW.css +1 -0
- package/assets/link.Dcsio57m.css +1 -0
- package/{banner.Zxe9epVx.js → banner.XeTbC8mq.js} +1 -1
- package/{breadcrumb.FfS9gDhB.js → breadcrumb.BOz3Hst7.js} +3 -3
- package/{button.Bq_b-jF3.js → button.I5z8VEXa.js} +5 -4
- package/buttonround.BX_81KOF.js +101 -0
- package/{checkbox.DiIxW8xI.js → checkbox.CcEypLD0.js} +3 -3
- package/{checkboxgroup.CN0WCDIo.js → checkboxgroup.15fvJ2SQ.js} +2 -2
- package/{chip.C9GLR8lU.js → chip.DZP-2LVl.js} +2 -2
- package/{chipgroup.DEMaFBAV.js → chipgroup.Ckvmby1Q.js} +1 -1
- package/chunks/{Accordion.CHgxTFzp.js → Accordion.Drq0YoeJ.js} +1 -1
- package/chunks/{ActionButton.CLeOd9rU.js → ActionButton.CCI5IUFy.js} +1 -1
- package/chunks/ActionCard.DJSGkwVG.js +227 -0
- package/chunks/{ActionLink.BsBKNYu5.js → ActionLink.BrJB7T0A.js} +1 -1
- package/chunks/{Breadcrumb.Dz3JQ2Vx.js → Breadcrumb.CNABp45n.js} +2 -2
- package/chunks/Button.D8U6Bs7T.js +160 -0
- package/chunks/{Checkbox.B3g2P15v.js → Checkbox.91fwuJ-0.js} +2 -2
- package/chunks/{CheckboxGroup.Bg9WSL5B.js → CheckboxGroup.DlZcoyo_.js} +2 -2
- package/chunks/{Chip.CfxdI4_r.js → Chip.wHEr-saO.js} +1 -1
- package/chunks/{CustomReactSelect.DuAr_i4b.js → CustomReactSelect.DHwRSrva.js} +4 -4
- package/chunks/Dialog.DNrQmu4n.js +102 -0
- package/chunks/Drawer.DaiiAoa8.js +107 -0
- package/chunks/{Fieldset.DdYeI2CZ.js → Fieldset.BB4NftRU.js} +2 -2
- package/chunks/{Icon.BoywkLCM.js → Icon.DCdL1Vnp.js} +1 -1
- package/chunks/{InputFile.CR8ucopi.js → InputFile.C-m2Hp0n.js} +5 -5
- package/chunks/{InputNumber.BFZFmfye.js → InputNumber.DOrbq0Hf.js} +3 -3
- package/chunks/{InputPassword.C311ncrv.js → InputPassword.BrQLXv_R.js} +3 -3
- package/chunks/{InputSearch.BxDshauv.js → InputSearch.DsT4ESbN.js} +3 -3
- package/chunks/LinkButton.CNLxmfVF.js +150 -0
- package/chunks/LinkCard.CsK31XXo.js +197 -0
- package/chunks/NavigationTabList.9r9_yTmR.js +68 -0
- package/chunks/{NavigationTabs.B57dlMSM.js → NavigationTabs.CCFAm8-N.js} +1 -1
- package/chunks/{Notification.C6oDyXgu.js → Notification.BlyUQinT.js} +2 -2
- package/chunks/Pagination.Dl8CU-yY.js +247 -0
- package/chunks/{Popover.BmpyqKuQ.js → Popover.BBT_kVGM.js} +1 -1
- package/chunks/{RadioGroup.DkBkatv7.js → RadioGroup.BWe0nG6N.js} +1 -1
- package/chunks/{Select.Tt9kT7fQ.js → Select.fgSB8mUs.js} +3 -3
- package/chunks/Slider.8H5oki70.js +307 -0
- package/chunks/{Stepper.BnrFN6cJ.js → Stepper.UvgTZCCb.js} +2 -2
- package/chunks/{SystemFeedback.D4aWwoC8.js → SystemFeedback.CZhoSxrC.js} +1 -1
- package/chunks/{Tabs.kCft3oEd.js → Tabs.DtfpA30P.js} +1 -1
- package/chunks/{Textarea.DDcx_Pdr.js → Textarea.B-Ii-p0C.js} +2 -2
- package/chunks/{Toast.DddHXsvZ.js → Toast.B7_VJE8V.js} +2 -2
- package/chunks/heart-filled.CmO7eae5.js +10 -0
- package/{combobox.B-BIvd5K.js → combobox.C2DBgO0t.js} +1 -1
- package/components/Accordion/Accordion.d.ts +2 -2
- package/components/ActionCard/ActionCard.d.ts +11 -4
- package/components/Banner/Banner.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.d.ts +4 -1
- package/components/ButtonRound/ButtonRound.d.ts +14 -7
- package/components/ButtonRound/ButtonRound.utils.d.ts +3 -1
- package/components/FloatingActionButton/FloatingActionButton.d.ts +8 -5
- package/components/LinkCard/LinkCard.d.ts +13 -3
- package/components/MegaMenu/MegaMenu.d.ts +1 -1
- package/components/Pagination/Pagination.d.ts +51 -0
- package/components/Pagination/Pagination.responsive.test.d.ts +1 -0
- package/components/Pagination/Pagination.test.d.ts +1 -0
- package/components/Pagination/Pagination.utils.d.ts +59 -0
- package/components/Pagination/Pagination.utils.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts +1 -1
- package/{customreactselect.B7p1pKdD.js → customreactselect.Dle5ReLL.js} +5 -5
- package/{dialog.BqLpjUB7.js → dialog.Br6FeS8M.js} +2 -2
- package/{drawer.Cd-nCvZc.js → drawer.Dyjx6fy3.js} +2 -2
- package/{fieldset.CZZsUwkL.js → fieldset.D6sz1Wn2.js} +3 -3
- package/{filelist.BhBVr4dj.js → filelist.0CUvj_hg.js} +4 -4
- package/{filepreview.BTWX71Xh.js → filepreview.DfYhhi7K.js} +1 -1
- package/{flag.B0fg5_Ly.js → flag.B61fRxrP.js} +1 -1
- package/{floatingactionbutton.C97oLCcd.js → floatingactionbutton.C-V33tkz.js} +2 -2
- package/{icon.DfDzyo8I.js → icon.pia3k1bW.js} +1 -1
- package/index.d.ts +7 -0
- package/index.es.js +231 -218
- package/{input.DIJfEjWf.js → input.CNC3QIQR.js} +4 -4
- package/{inputfile.h6E4CGVo.js → inputfile.CN9IBCM5.js} +6 -6
- package/{inputnumber.mm_Irbl8.js → inputnumber.DIccXoqM.js} +4 -4
- package/{inputpassword.C2lyKMkw.js → inputpassword.BWIKqwcK.js} +4 -4
- package/{inputsearch.BjkPPx6s.js → inputsearch.BQVA1P3t.js} +4 -4
- package/link.DFt6ae6h.js +81 -0
- package/{linkbutton.Brcp-b5r.js → linkbutton.DSzhpA7y.js} +3 -3
- package/{linkcard.COvLNYk7.js → linkcard.Azap4eIT.js} +4 -4
- package/{navigationtablist.BBeiLPse.js → navigationtablist.B0QFyk6c.js} +2 -2
- package/{navigationtabs.DzPsYusL.js → navigationtabs.drPy054A.js} +2 -2
- package/{notification.CliKozt4.js → notification.DT8ZQWy-.js} +3 -3
- package/{optioncheckbox.BOfgK3U_.js → optioncheckbox.BO9lhnF3.js} +1 -1
- package/package.json +1 -1
- package/pagination.DqHkkeMR.js +14 -0
- package/pagination.d.ts +2 -0
- package/partials/index.js +24 -18
- package/partials/lib/partials.d.ts +1 -1
- package/{popover.ChNhlQVw.js → popover.HlTN79us.js} +2 -2
- package/product-card-example-5.webp +0 -0
- package/product-card-example-6.webp +0 -0
- package/product-card-example-7.webp +0 -0
- package/{progressindicator.DIzH179H.js → progressindicator.DdaSeRcV.js} +1 -1
- package/{radiogroup.DL5scGbv.js → radiogroup.CtkyrkVj.js} +2 -2
- package/{scroller.DwhsKecL.js → scroller.BZy0pXNL.js} +1 -1
- package/{select.mbkkptY-.js → select.BSRwHZl9.js} +4 -4
- package/{skiptocontent.CAXMZlhM.js → skiptocontent.D-qA8MV6.js} +1 -1
- package/{slider.DvrNqhCC.js → slider.jgy1gPS-.js} +3 -3
- package/{spinner.CJmvEaCu.js → spinner.CioXs_gr.js} +1 -1
- package/{step.B-afaoZI.js → step.C8Um5fyx.js} +2 -2
- package/{stepper.B0euF2om.js → stepper.ChHYe3pv.js} +3 -3
- package/{switch.BadzT87Z.js → switch.BWByas7M.js} +2 -2
- package/{systemfeedback.BfGF0ENk.js → systemfeedback.Dr99Uwoi.js} +2 -2
- package/{tablist.CLKzkkTc.js → tablist.DuaTT6zK.js} +3 -3
- package/{tabs.ClFPZyaL.js → tabs.BGmxVK_3.js} +2 -2
- package/{textarea.B06ZGH_0.js → textarea.BoxcJ2tx.js} +3 -3
- package/{toast.uarxRSg4.js → toast.BJs2VWI4.js} +3 -3
- package/{toastmanager.ClwydHnH.js → toastmanager.Bh9XSJty.js} +1 -1
- package/types/icon-types.d.ts +1 -1
- package/assets/ActionCard.C85bSGRa.css +0 -1
- package/assets/Dialog.DyiHUgTp.css +0 -1
- package/assets/Drawer.UugEajR2.css +0 -1
- package/assets/LinkButton.BEbmxP7h.css +0 -1
- package/assets/LinkCard.z1Yjue7-.css +0 -1
- package/assets/NavigationTabList.CzAiHz7G.css +0 -1
- package/assets/buttonround.BTC-HthI.css +0 -1
- package/assets/link.BemYqm4d.css +0 -1
- package/buttonround.C2Tbq4wh.js +0 -96
- package/chunks/ActionCard.oi3u27DL.js +0 -242
- package/chunks/Button.P9uWeVnl.js +0 -139
- package/chunks/Dialog.C8pnDioL.js +0 -102
- package/chunks/Drawer.wTQvINDy.js +0 -107
- package/chunks/LinkButton.D20xLcuG.js +0 -140
- package/chunks/LinkCard.CXJLlBi2.js +0 -193
- package/chunks/NavigationTabList.CUFceGFf.js +0 -68
- package/chunks/Slider.XqqBxGnd.js +0 -306
- package/link.Cej-vl_K.js +0 -81
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as N, jsx as g } from "react/jsx-runtime";
|
|
3
|
-
import { c as p } from "./index.DQOqod3i.js";
|
|
4
|
-
import { forwardRef as H } from "react";
|
|
5
|
-
import { u as i } from "./useBreakpoint.1txsny17.js";
|
|
6
|
-
import "./index.cKLI89Eg.js";
|
|
7
|
-
import { D as A } from "./Icon.BoywkLCM.js";
|
|
8
|
-
import { Tooltip as b } from "../tooltip.C6HKano9.js";
|
|
9
|
-
import { g as r } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/LinkButton.BEbmxP7h.css';const E = "ds-link-button_root_250ek_1", P = "ds-link-button_root--highlight_250ek_75", C = "ds-link-button_root--dark-highlight_250ek_75", x = "ds-link-button_root--filled_250ek_151", V = "ds-link-button_root--outline_250ek_179", j = "ds-link-button_root--ghost_250ek_206", K = "ds-link-button_root--ghost-flush_250ek_231", R = "ds-link-button_root--small_250ek_237", U = "ds-link-button_root--navigation_250ek_317", M = "ds-link-button_root--navigation--stretched_250ek_393", Z = "ds-link-button_root--navigation--stretched--icon-left_250ek_396", q = "ds-link-button_root--dark-filled_250ek_399", J = "ds-link-button_root--dark-outline_250ek_456", Q = "ds-link-button_root--dark-ghost_250ek_512", W = "ds-link-button_root--dark-ghost-flush_250ek_566", X = "ds-link-button_root--stretched_250ek_641", Y = "ds-link-button_root--icon-left_250ek_644", $ = "ds-link-button_root--icon-only_250ek_647", z = "ds-link-button_root--icon-only-small_250ek_656", oo = "ds-link-button_icon--navigation_250ek_668", to = "ds-link-button_label--hidden_250ek_676", t = {
|
|
11
|
-
root: E,
|
|
12
|
-
rootHighlight: P,
|
|
13
|
-
rootDarkHighlight: C,
|
|
14
|
-
rootFilled: x,
|
|
15
|
-
rootOutline: V,
|
|
16
|
-
rootGhost: j,
|
|
17
|
-
rootGhostFlush: K,
|
|
18
|
-
rootSmall: R,
|
|
19
|
-
rootNavigation: U,
|
|
20
|
-
rootNavigationStretched: M,
|
|
21
|
-
rootNavigationStretchedIconLeft: Z,
|
|
22
|
-
rootDarkFilled: q,
|
|
23
|
-
rootDarkOutline: J,
|
|
24
|
-
rootDarkGhost: Q,
|
|
25
|
-
rootDarkGhostFlush: W,
|
|
26
|
-
rootStretched: X,
|
|
27
|
-
rootIconLeft: Y,
|
|
28
|
-
rootIconOnly: $,
|
|
29
|
-
rootIconOnlySmall: z,
|
|
30
|
-
iconNavigation: oo,
|
|
31
|
-
labelHidden: to
|
|
32
|
-
}, go = ["medium", "small"], uo = ["filled", "highlight", "outline", "ghost", "navigation"], no = ({
|
|
33
|
-
hideLabel: u,
|
|
34
|
-
iconName: _,
|
|
35
|
-
iconSource: f,
|
|
36
|
-
isFlush: d,
|
|
37
|
-
size: l,
|
|
38
|
-
stretched: s,
|
|
39
|
-
theme: a,
|
|
40
|
-
variant: e
|
|
41
|
-
}) => {
|
|
42
|
-
if (e === "navigation" && (l === "small" && console.warn(r("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), a === "dark"))
|
|
43
|
-
throw new Error(r("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
44
|
-
e !== "ghost" && d ? console.warn(r("DSLinkButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : e === "ghost" && d && s && console.warn(r("DSLinkButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), u && (!_ && !f && console.warn(r("DSLinkButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the link is not empty when the label is hidden.')), s && console.warn(r("DSLinkButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
|
|
45
|
-
}, eo = H(({
|
|
46
|
-
children: u,
|
|
47
|
-
aria: _,
|
|
48
|
-
className: f,
|
|
49
|
-
download: d,
|
|
50
|
-
hideLabel: l = !1,
|
|
51
|
-
href: s,
|
|
52
|
-
iconName: a,
|
|
53
|
-
iconPosition: e = "left",
|
|
54
|
-
iconSource: m,
|
|
55
|
-
isFlush: h = !1,
|
|
56
|
-
referrerPolicy: L,
|
|
57
|
-
rel: I,
|
|
58
|
-
size: c = "medium",
|
|
59
|
-
stretched: k = !1,
|
|
60
|
-
target: O = "_self",
|
|
61
|
-
theme: n = "light",
|
|
62
|
-
variant: o = "filled",
|
|
63
|
-
tooltip: D,
|
|
64
|
-
...w
|
|
65
|
-
}, B) => {
|
|
66
|
-
process.env.NODE_ENV !== "production" && no({
|
|
67
|
-
hideLabel: i(l),
|
|
68
|
-
iconName: a,
|
|
69
|
-
iconSource: m,
|
|
70
|
-
isFlush: h,
|
|
71
|
-
size: c,
|
|
72
|
-
stretched: k,
|
|
73
|
-
theme: n,
|
|
74
|
-
variant: o
|
|
75
|
-
});
|
|
76
|
-
const y = p(t.root, f, {
|
|
77
|
-
// variant
|
|
78
|
-
[t.rootFilled]: o === "filled",
|
|
79
|
-
[t.rootHighlight]: o === "highlight",
|
|
80
|
-
[t.rootOutline]: o === "outline",
|
|
81
|
-
[t.rootGhost]: o === "ghost" && h !== !0,
|
|
82
|
-
[t.rootNavigation]: o === "navigation",
|
|
83
|
-
[t.rootNavigationStretched]: o === "navigation" && i(k) && e === "right",
|
|
84
|
-
[t.rootNavigationStretchedIconLeft]: o === "navigation" && i(k) && e === "left",
|
|
85
|
-
// isFlush
|
|
86
|
-
[t.rootGhostFlush]: o === "ghost" && h === !0,
|
|
87
|
-
// dark theme
|
|
88
|
-
[t.rootDarkFilled]: n === "dark" && o === "filled",
|
|
89
|
-
[t.rootDarkHighlight]: n === "dark" && o === "highlight",
|
|
90
|
-
[t.rootDarkOutline]: n === "dark" && o === "outline",
|
|
91
|
-
[t.rootDarkGhost]: n === "dark" && o === "ghost" && h !== !0,
|
|
92
|
-
// dark isFlush
|
|
93
|
-
[t.rootDarkGhostFlush]: n === "dark" && o === "ghost" && h === !0,
|
|
94
|
-
// size
|
|
95
|
-
[t.rootSmall]: c === "small" || o === "navigation",
|
|
96
|
-
// stretched
|
|
97
|
-
[t.rootStretched]: i(k),
|
|
98
|
-
// icon position
|
|
99
|
-
[t.rootIconLeft]: e === "left",
|
|
100
|
-
// icon only
|
|
101
|
-
[t.rootIconOnly]: i(l) && c === "medium" && o !== "navigation",
|
|
102
|
-
[t.rootIconOnlySmall]: i(l) && c === "small" && o !== "navigation"
|
|
103
|
-
}), G = p({
|
|
104
|
-
// hide label only visually to keep them available for assistive technologies
|
|
105
|
-
[t.labelHidden]: i(l) && o !== "navigation"
|
|
106
|
-
// if no label classes are set via classNames, return undefined to avoid empty class attribute
|
|
107
|
-
}) || void 0, T = p({
|
|
108
|
-
[t.iconNavigation]: o === "navigation"
|
|
109
|
-
}), F = n === "light" && o === "filled" || n === "dark" && o === "outline" || n === "dark" && o === "ghost" ? "dark" : "light", S = s === void 0 ? "span" : "a", v = /* @__PURE__ */ N(
|
|
110
|
-
S,
|
|
111
|
-
{
|
|
112
|
-
className: y,
|
|
113
|
-
...S === "a" && {
|
|
114
|
-
href: s,
|
|
115
|
-
target: O,
|
|
116
|
-
rel: I,
|
|
117
|
-
referrerPolicy: L,
|
|
118
|
-
download: d
|
|
119
|
-
},
|
|
120
|
-
..._,
|
|
121
|
-
...w,
|
|
122
|
-
ref: B,
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ g("span", { className: G, children: u }),
|
|
125
|
-
(a || m) && /* @__PURE__ */ g(A, { name: a, theme: F, source: m, className: T, "aria-hidden": "true" })
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
return D ? /* @__PURE__ */ N(b, { placement: "top", tooltipOffset: 6, children: [
|
|
130
|
-
/* @__PURE__ */ g(b.Anchor, { children: v }),
|
|
131
|
-
/* @__PURE__ */ g(b.Content, { children: D })
|
|
132
|
-
] }) : v;
|
|
133
|
-
});
|
|
134
|
-
eo.displayName = "DSLinkButton";
|
|
135
|
-
export {
|
|
136
|
-
eo as D,
|
|
137
|
-
go as L,
|
|
138
|
-
uo as a,
|
|
139
|
-
no as v
|
|
140
|
-
};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as C, jsx as s, Fragment as Ie } from "react/jsx-runtime";
|
|
3
|
-
import { d as Pe } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as r } from "./index.DQOqod3i.js";
|
|
5
|
-
import { isValidElement as ye, cloneElement as ze } from "react";
|
|
6
|
-
import { DSFlag as G } from "../flag.B0fg5_Ly.js";
|
|
7
|
-
import { DSHeading as He } from "../heading.BHSklXho.js";
|
|
8
|
-
import { D as Te } from "./Icon.BoywkLCM.js";
|
|
9
|
-
import { D as Ae } from "./LinkButton.D20xLcuG.js";
|
|
10
|
-
import { g as D } from "./helpers.CexwVao7.js";
|
|
11
|
-
import '../assets/LinkCard.z1Yjue7-.css';const Ee = "ds-link-card_root_1g8sq_1", je = "ds-link-card_root--horizontal_1g8sq_53", xe = "ds-link-card_image-wrapper_1g8sq_58", Ve = "ds-link-card_content_1g8sq_68", Be = "ds-link-card_content--padding-small_1g8sq_73", Oe = "ds-link-card_header_1g8sq_104", Me = "ds-link-card_footer_1g8sq_105", Re = "ds-link-card_heading_1g8sq_120", $e = "ds-link-card_heading--with-icon_1g8sq_123", Ge = "ds-link-card_link_1g8sq_133", Je = "ds-link-card_description_1g8sq_138", Ke = "ds-link-card_meta-data_1g8sq_155", Qe = "ds-link-card_decorative-link_1g8sq_172", Ue = "ds-link-card_flags_1g8sq_176", Xe = "ds-link-card_brand-flag_1g8sq_185", Ye = "ds-link-card_graphic-area_1g8sq_191", i = {
|
|
12
|
-
root: Ee,
|
|
13
|
-
rootHorizontal: je,
|
|
14
|
-
imageWrapper: xe,
|
|
15
|
-
content: Ve,
|
|
16
|
-
contentPaddingSmall: Be,
|
|
17
|
-
header: Oe,
|
|
18
|
-
footer: Me,
|
|
19
|
-
heading: Re,
|
|
20
|
-
headingWithIcon: $e,
|
|
21
|
-
link: Ge,
|
|
22
|
-
description: Je,
|
|
23
|
-
metaData: Ke,
|
|
24
|
-
decorativeLink: Qe,
|
|
25
|
-
flags: Ue,
|
|
26
|
-
brandFlag: Xe,
|
|
27
|
-
graphicArea: Ye
|
|
28
|
-
}, Ze = ({
|
|
29
|
-
href: p,
|
|
30
|
-
linkComponent: e,
|
|
31
|
-
flags: a,
|
|
32
|
-
flagListAriaLabel: d,
|
|
33
|
-
heading: t,
|
|
34
|
-
img: l,
|
|
35
|
-
brandFlag: f,
|
|
36
|
-
decorativeLinkButtonProps: c
|
|
37
|
-
}) => {
|
|
38
|
-
if (!p && !e)
|
|
39
|
-
throw new Error(D("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent'."));
|
|
40
|
-
if (p && e)
|
|
41
|
-
throw new Error(D("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent', but not both."));
|
|
42
|
-
if (!t)
|
|
43
|
-
throw new Error(D("DSLinkCard", "The 'heading' prop is required and must be provided."));
|
|
44
|
-
a && a.length > 6 && console.warn(D("DSLinkCard", "It is recommended to provide a maximum of 6 flags for optimal display.")), a && a.length > 0 && !d && console.warn(D("DSLinkCard", "When providing flags, please also ensure to add the 'flagListAriaLabel' to describe the list of flags for non sighted screen reader users.")), f && l === void 0 && console.warn(D("DSLinkCard", "The 'brandFlag' prop is set to true, but no 'img' prop is provided. The 'brandFlag' will have no effect without an image.")), typeof t == "object" && t !== null && t.headingIconName && c?.label && console.warn(D("DSLinkCard", "The 'heading.headingIconName' option should not be used when a decorative link label is provided."));
|
|
45
|
-
}, ea = (p) => {
|
|
46
|
-
const e = Pe.c(81);
|
|
47
|
-
let a, d, t, l, f, c, _, o, g, m, n, v, L, u, N, b;
|
|
48
|
-
e[0] !== p ? ({
|
|
49
|
-
heading: o,
|
|
50
|
-
brandFlag: a,
|
|
51
|
-
className: t,
|
|
52
|
-
cardClassNames: d,
|
|
53
|
-
decorativeLinkButtonProps: l,
|
|
54
|
-
description: f,
|
|
55
|
-
flagListAriaLabel: c,
|
|
56
|
-
flags: u,
|
|
57
|
-
href: g,
|
|
58
|
-
img: m,
|
|
59
|
-
linkComponent: n,
|
|
60
|
-
metaData: v,
|
|
61
|
-
orientation: N,
|
|
62
|
-
padding: b,
|
|
63
|
-
graphicArea: _,
|
|
64
|
-
...L
|
|
65
|
-
} = p, e[0] = p, e[1] = a, e[2] = d, e[3] = t, e[4] = l, e[5] = f, e[6] = c, e[7] = _, e[8] = o, e[9] = g, e[10] = m, e[11] = n, e[12] = v, e[13] = L, e[14] = u, e[15] = N, e[16] = b) : (a = e[1], d = e[2], t = e[3], l = e[4], f = e[5], c = e[6], _ = e[7], o = e[8], g = e[9], m = e[10], n = e[11], v = e[12], L = e[13], u = e[14], N = e[15], b = e[16]);
|
|
66
|
-
let k, S, q;
|
|
67
|
-
e[17] !== a || e[18] !== l || e[19] !== c || e[20] !== o || e[21] !== g || e[22] !== m || e[23] !== n || e[24] !== u || e[25] !== N || e[26] !== b ? (k = u === void 0 ? [] : u, S = N === void 0 ? "vertical" : N, q = b === void 0 ? "medium" : b, process.env.NODE_ENV !== "production" && Ze({
|
|
68
|
-
href: g,
|
|
69
|
-
linkComponent: n,
|
|
70
|
-
heading: o,
|
|
71
|
-
flags: k,
|
|
72
|
-
flagListAriaLabel: c,
|
|
73
|
-
img: m,
|
|
74
|
-
brandFlag: a,
|
|
75
|
-
decorativeLinkButtonProps: l
|
|
76
|
-
}), e[17] = a, e[18] = l, e[19] = c, e[20] = o, e[21] = g, e[22] = m, e[23] = n, e[24] = u, e[25] = N, e[26] = b, e[27] = k, e[28] = S, e[29] = q) : (k = e[27], S = e[28], q = e[29]);
|
|
77
|
-
let T;
|
|
78
|
-
e[30] !== l ? (T = l || {}, e[30] = l, e[31] = T) : T = e[31];
|
|
79
|
-
const {
|
|
80
|
-
label: H,
|
|
81
|
-
iconName: J,
|
|
82
|
-
iconPosition: ie,
|
|
83
|
-
variant: oe,
|
|
84
|
-
hideLabel: K,
|
|
85
|
-
size: ne
|
|
86
|
-
} = T, Q = ie === void 0 ? "right" : ie, U = ne === void 0 ? "small" : ne, A = oe === "ghost" ? "ghost" : "filled", X = v || k.length > 0 || H, Y = typeof o == "object" && o !== null && !!o.headingIconName;
|
|
87
|
-
let E;
|
|
88
|
-
if (e[32] !== A || e[33] !== a || e[34] !== d || e[35] !== t || e[36] !== K || e[37] !== J || e[38] !== Q || e[39] !== H || e[40] !== U || e[41] !== f || e[42] !== c || e[43] !== k || e[44] !== _ || e[45] !== X || e[46] !== o || e[47] !== Y || e[48] !== g || e[49] !== m || e[50] !== n || e[51] !== v || e[52] !== S || e[53] !== q || e[54] !== L) {
|
|
89
|
-
const {
|
|
90
|
-
brandFlag: re,
|
|
91
|
-
contentWrapper: se,
|
|
92
|
-
descriptionWrapper: le,
|
|
93
|
-
decorativeLink: de,
|
|
94
|
-
flagsWrapper: ce,
|
|
95
|
-
footerWrapper: ge,
|
|
96
|
-
headerWrapper: he,
|
|
97
|
-
heading: pe,
|
|
98
|
-
imageWrapper: me,
|
|
99
|
-
metaDataWrapper: fe,
|
|
100
|
-
graphicAreaWrapper: ke
|
|
101
|
-
} = d || {}, Z = S === "horizontal";
|
|
102
|
-
let j;
|
|
103
|
-
e[56] !== t || e[57] !== Z ? (j = r(i.root, t, {
|
|
104
|
-
[i.rootHorizontal]: Z
|
|
105
|
-
}), e[56] = t, e[57] = Z, e[58] = j) : j = e[58];
|
|
106
|
-
const _e = j, te = r(i.brandFlag, re), ve = r(i.content, se, {
|
|
107
|
-
[i.contentPaddingSmall]: q === "small"
|
|
108
|
-
}), Le = r(i.description, le), ue = r(i.decorativeLink, de), Ne = r(i.flags, ce), be = r(i.footer, ge), Ce = r(i.header, he), De = r(i.heading, pe, {
|
|
109
|
-
[i.headingWithIcon]: Y
|
|
110
|
-
}), Se = r(i.imageWrapper, me), qe = r(i.metaData, fe), we = r(i.graphicArea, ke);
|
|
111
|
-
let x, w, W, F, I, P, y, z;
|
|
112
|
-
e[59] !== L ? ({
|
|
113
|
-
download: w,
|
|
114
|
-
hrefLang: W,
|
|
115
|
-
ping: F,
|
|
116
|
-
referrerPolicy: I,
|
|
117
|
-
rel: P,
|
|
118
|
-
target: y,
|
|
119
|
-
type: z,
|
|
120
|
-
...x
|
|
121
|
-
} = L, e[59] = L, e[60] = x, e[61] = w, e[62] = W, e[63] = F, e[64] = I, e[65] = P, e[66] = y, e[67] = z) : (x = e[60], w = e[61], W = e[62], F = e[63], I = e[64], P = e[65], y = e[66], z = e[67]);
|
|
122
|
-
let V;
|
|
123
|
-
e[68] !== w || e[69] !== g || e[70] !== W || e[71] !== n || e[72] !== F || e[73] !== I || e[74] !== P || e[75] !== y || e[76] !== z ? (V = (h) => n && ye(n) ? ze(n, {
|
|
124
|
-
...n.props,
|
|
125
|
-
className: r(i.link, n.props.className),
|
|
126
|
-
children: /* @__PURE__ */ C(Ie, { children: [
|
|
127
|
-
h,
|
|
128
|
-
" ",
|
|
129
|
-
n.props.children
|
|
130
|
-
] })
|
|
131
|
-
}) : /* @__PURE__ */ s("a", { href: g, className: i.link, download: w, hrefLang: W, ping: F, referrerPolicy: I, rel: P, target: y, type: z, children: h }), e[68] = w, e[69] = g, e[70] = W, e[71] = n, e[72] = F, e[73] = I, e[74] = P, e[75] = y, e[76] = z, e[77] = V) : V = e[77];
|
|
132
|
-
const We = V, ee = (h) => {
|
|
133
|
-
const O = typeof h == "object" && h !== void 0, {
|
|
134
|
-
headingText: M,
|
|
135
|
-
headingIconName: R,
|
|
136
|
-
headingSize: $,
|
|
137
|
-
headingTag: ae
|
|
138
|
-
} = O ? h : {
|
|
139
|
-
headingText: h
|
|
140
|
-
};
|
|
141
|
-
return /* @__PURE__ */ C(He, { tag: ae === void 0 ? "h3" : ae, size: $ === void 0 ? "medium" : $, className: De, children: [
|
|
142
|
-
We(M),
|
|
143
|
-
R && /* @__PURE__ */ s(Te, { name: R, "aria-hidden": "true" })
|
|
144
|
-
] });
|
|
145
|
-
}, Fe = (h) => {
|
|
146
|
-
if (typeof h == "string")
|
|
147
|
-
return /* @__PURE__ */ s(G, { color: "orange-base", className: te, children: h });
|
|
148
|
-
const {
|
|
149
|
-
children: O,
|
|
150
|
-
color: M,
|
|
151
|
-
className: R,
|
|
152
|
-
...$
|
|
153
|
-
} = h;
|
|
154
|
-
return /* @__PURE__ */ s(G, { color: M === void 0 ? "orange-base" : M, className: r(te, R), ...$, children: O });
|
|
155
|
-
};
|
|
156
|
-
let B;
|
|
157
|
-
e[78] !== ee || e[79] !== o ? (B = ee(o), e[78] = ee, e[79] = o, e[80] = B) : B = e[80], E = /* @__PURE__ */ C("div", { ...x, className: _e, children: [
|
|
158
|
-
/* @__PURE__ */ C("div", { className: ve, children: [
|
|
159
|
-
/* @__PURE__ */ C("div", { className: Ce, children: [
|
|
160
|
-
_ && /* @__PURE__ */ s("div", { className: we, children: _ }),
|
|
161
|
-
B,
|
|
162
|
-
f && /* @__PURE__ */ s("div", { className: Le, children: f })
|
|
163
|
-
] }),
|
|
164
|
-
X && /* @__PURE__ */ C("div", { className: be, children: [
|
|
165
|
-
v && /* @__PURE__ */ s("div", { className: qe, children: v }),
|
|
166
|
-
k.length > 0 && /* @__PURE__ */ s("ul", { className: Ne, "aria-label": c, children: k.map(aa) }),
|
|
167
|
-
H && /* @__PURE__ */ s(Ae, { iconName: J, iconPosition: Q, variant: A, hideLabel: K, size: U, isFlush: A === "ghost", "aria-hidden": !0, className: ue, children: H })
|
|
168
|
-
] })
|
|
169
|
-
] }),
|
|
170
|
-
m && /* @__PURE__ */ C("div", { className: Se, children: [
|
|
171
|
-
a && Fe(a),
|
|
172
|
-
m
|
|
173
|
-
] })
|
|
174
|
-
] }), e[32] = A, e[33] = a, e[34] = d, e[35] = t, e[36] = K, e[37] = J, e[38] = Q, e[39] = H, e[40] = U, e[41] = f, e[42] = c, e[43] = k, e[44] = _, e[45] = X, e[46] = o, e[47] = Y, e[48] = g, e[49] = m, e[50] = n, e[51] = v, e[52] = S, e[53] = q, e[54] = L, e[55] = E;
|
|
175
|
-
} else
|
|
176
|
-
E = e[55];
|
|
177
|
-
return E;
|
|
178
|
-
};
|
|
179
|
-
ea.displayName = "DSLinkCard";
|
|
180
|
-
function aa(p, e) {
|
|
181
|
-
if (typeof p == "string")
|
|
182
|
-
return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(G, { color: "grey-light", children: p }) }, e);
|
|
183
|
-
const {
|
|
184
|
-
children: a,
|
|
185
|
-
color: d,
|
|
186
|
-
...t
|
|
187
|
-
} = p;
|
|
188
|
-
return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(G, { color: d === void 0 ? "grey-light" : d, ...t, children: a }) }, e);
|
|
189
|
-
}
|
|
190
|
-
export {
|
|
191
|
-
ea as D,
|
|
192
|
-
Ze as v
|
|
193
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as I, Fragment as k, jsx as d } from "react/jsx-runtime";
|
|
3
|
-
import { d as w } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { isValidElement as R, cloneElement as W } from "react";
|
|
5
|
-
import { D as v } from "./Icon.BoywkLCM.js";
|
|
6
|
-
import { NumberIndicator as y } from "../numberindicator.ZGVRSmqf.js";
|
|
7
|
-
import '../assets/NavigationTabList.CzAiHz7G.css';const D = "ds-tabs_tabs-wrapper_ccgp4_1", E = "ds-tabs_scroll-wrapper_ccgp4_6", L = "ds-tabs_scroller_ccgp4_17", T = "ds-tabs_scroller--centered_ccgp4_28", j = "ds-tabs_tab_ccgp4_1", x = "ds-tabs_scroll-button_ccgp4_105", H = "ds-tabs_scroll-button--hidden_ccgp4_110", K = "ds-tabs_scroll-button--right_ccgp4_114", S = "ds-tabs_indicator_ccgp4_126", V = {
|
|
8
|
-
tabsWrapper: D,
|
|
9
|
-
scrollWrapper: E,
|
|
10
|
-
scroller: L,
|
|
11
|
-
scrollerCentered: T,
|
|
12
|
-
tab: j,
|
|
13
|
-
scrollButton: x,
|
|
14
|
-
scrollButtonHidden: H,
|
|
15
|
-
scrollButtonRight: K,
|
|
16
|
-
indicator: S
|
|
17
|
-
}, G = (h) => {
|
|
18
|
-
const t = w.c(15), {
|
|
19
|
-
tabs: p,
|
|
20
|
-
tabRefs: e,
|
|
21
|
-
scrollerClass: b,
|
|
22
|
-
scrollerRef: _,
|
|
23
|
-
selectedTabIndex: r,
|
|
24
|
-
handleNavigationKeydown: o,
|
|
25
|
-
setSelectedTab: c
|
|
26
|
-
} = h;
|
|
27
|
-
let s;
|
|
28
|
-
if (t[0] !== o || t[1] !== r || t[2] !== c || t[3] !== e || t[4] !== p) {
|
|
29
|
-
let i;
|
|
30
|
-
t[6] !== o || t[7] !== r || t[8] !== c || t[9] !== e ? (i = (C, l) => {
|
|
31
|
-
const {
|
|
32
|
-
id: u,
|
|
33
|
-
linkComponent: n,
|
|
34
|
-
iconName: g,
|
|
35
|
-
numberIndicatorValue: f,
|
|
36
|
-
numberIndicatorAriaLabel: N
|
|
37
|
-
} = C;
|
|
38
|
-
if (!R(n))
|
|
39
|
-
return null;
|
|
40
|
-
const B = W(n, {
|
|
41
|
-
"aria-current": r === l ? "page" : void 0,
|
|
42
|
-
children: /* @__PURE__ */ I(k, { children: [
|
|
43
|
-
g && /* @__PURE__ */ d(v, { name: g, "aria-hidden": "true" }),
|
|
44
|
-
n.props.children,
|
|
45
|
-
f && /* @__PURE__ */ d(y, { "aria-label": N, label: f })
|
|
46
|
-
] }),
|
|
47
|
-
className: V.tab,
|
|
48
|
-
id: u,
|
|
49
|
-
tabIndex: r === l ? 0 : -1,
|
|
50
|
-
onKeyDown: (m) => o(m, l),
|
|
51
|
-
onClick: () => {
|
|
52
|
-
n.props.onClick && n.props.onClick(), c(l);
|
|
53
|
-
},
|
|
54
|
-
ref: (m) => {
|
|
55
|
-
e.current[l] = m;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return /* @__PURE__ */ d("li", { children: B }, u);
|
|
59
|
-
}, t[6] = o, t[7] = r, t[8] = c, t[9] = e, t[10] = i) : i = t[10], s = p.map(i), t[0] = o, t[1] = r, t[2] = c, t[3] = e, t[4] = p, t[5] = s;
|
|
60
|
-
} else
|
|
61
|
-
s = t[5];
|
|
62
|
-
let a;
|
|
63
|
-
return t[11] !== b || t[12] !== _ || t[13] !== s ? (a = /* @__PURE__ */ d("ul", { className: b, ref: _, children: s }), t[11] = b, t[12] = _, t[13] = s, t[14] = a) : a = t[14], a;
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
G as N,
|
|
67
|
-
V as s
|
|
68
|
-
};
|