@stihl-design-system/components 1.0.0-RC.30 → 1.0.0-RC.32

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.
Files changed (148) hide show
  1. package/{accordion.DkwtJy--.js → accordion.HfUSDwQJ.js} +2 -2
  2. package/{actionlink.C7HzeIVa.js → actionbutton.kgd0E_xF.js} +4 -3
  3. package/{actionbutton.u1qp8oGC.js → actionlink.CwC42RWc.js} +4 -3
  4. package/assets/CustomReactSelect.DGIItWIh.css +1 -0
  5. package/assets/InputStepper.DvFJk1Mi.css +1 -0
  6. package/assets/Popover.CXyUaXiO.css +1 -0
  7. package/assets/Select.C1gWF32A.css +1 -0
  8. package/assets/Slider.Bidyhb-B.css +1 -0
  9. package/assets/Textarea.Dq4rH9Tg.css +1 -0
  10. package/assets/input.CUjGh-UM.css +1 -0
  11. package/assets/logo100years.CQrEg-Vo.css +1 -0
  12. package/assets/tooltip.Co1gWF_0.css +1 -0
  13. package/{banner.j9YpudOS.js → banner.o4Etkjjo.js} +1 -1
  14. package/{breadcrumb.BS-S3zUI.js → breadcrumb.BsQm0kUD.js} +3 -3
  15. package/{linkbutton.D2C4vykc.js → button.Dyy6ajX6.js} +5 -3
  16. package/buttonround.ChKWHzsv.js +96 -0
  17. package/{checkbox.BtlUvs0z.js → checkbox.BNnp4ztM.js} +3 -3
  18. package/{checkboxgroup.C5NgyyQF.js → checkboxgroup.BTVnKenc.js} +2 -2
  19. package/{chip.tVIG1ysH.js → chip.C7NstOHt.js} +4 -3
  20. package/chipgroup.Zo1-IOCn.js +210 -0
  21. package/chunks/{Accordion.C5V5IcM-.js → Accordion.CnqryAUu.js} +1 -1
  22. package/chunks/ActionButton.DdDesD7K.js +180 -0
  23. package/chunks/ActionLink.DqAsPYda.js +153 -0
  24. package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.9KinNuyQ.js} +2 -2
  25. package/chunks/Button.Cf1CKq8N.js +142 -0
  26. package/chunks/{Checkbox.DxV7-F5W.js → Checkbox.CiwriItT.js} +2 -2
  27. package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.Cj68J6Ee.js} +2 -2
  28. package/chunks/Chip.BrbYu6i_.js +133 -0
  29. package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Cqq70QC0.js} +152 -144
  30. package/chunks/{Dialog.B_2pKRnd.js → Dialog.Bv7k55He.js} +1 -1
  31. package/chunks/{Drawer.HFlBTcqN.js → Drawer.BVTvx276.js} +1 -1
  32. package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.D7cLR5ze.js} +1 -1
  33. package/chunks/Header.um5MlziB.js +377 -0
  34. package/chunks/Icon.NSsVrYeq.js +231 -0
  35. package/chunks/{InputFile.DvOatDzg.js → InputFile.bVWWdePn.js} +4 -4
  36. package/chunks/{InputPassword.DC2POUc1.js → InputPassword.Da3hEKTc.js} +2 -2
  37. package/chunks/{InputSearch.B0aCuPRZ.js → InputSearch.GOYqFCcZ.js} +2 -2
  38. package/chunks/InputStepper.BuhPtfl-.js +268 -0
  39. package/chunks/LinkButton.59oNDwPU.js +132 -0
  40. package/chunks/MegaMenu._o3nNDAa.js +192 -0
  41. package/chunks/{NavigationTabList.dYFYTmWv.js → NavigationTabList.DuT7gzhj.js} +1 -1
  42. package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.DspPFHPh.js} +1 -1
  43. package/chunks/{Notification.DIdIhGTQ.js → Notification.Pts2oh0R.js} +2 -2
  44. package/chunks/Popover.BRR8YZ-P.js +228 -0
  45. package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.DeTz3c19.js} +1 -1
  46. package/chunks/Select.D2ehd4yN.js +162 -0
  47. package/chunks/{Slider.kyVr7BLk.js → Slider.84lkgq3W.js} +85 -85
  48. package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CyGbUCzT.js} +1 -1
  49. package/chunks/{Tabs.CkVL8Jw8.js → Tabs.C8ADTzJ0.js} +1 -1
  50. package/chunks/Textarea.Cw85sxHL.js +163 -0
  51. package/chunks/{Toast.DHo4pLH3.js → Toast.DG3WVvau.js} +2 -2
  52. package/chunks/battery-charge-0.DxlgEAto.js +10 -0
  53. package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
  54. package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
  55. package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
  56. package/chunks/document-s.CoOp0kBK.js +10 -0
  57. package/chunks/floating-ui.dom.VgHc0h4l.js +989 -0
  58. package/chunks/floating-ui.react.DCyAzlZ4.js +2011 -0
  59. package/{combobox.Bk2ycofh.js → combobox.orZ3z8CB.js} +1 -1
  60. package/components/ActionButton/ActionButton.d.ts +2 -0
  61. package/components/Button/Button.d.ts +4 -0
  62. package/components/ChipGroup/Chip.d.ts +1 -0
  63. package/components/ChipGroup/ChipGroup.d.ts +4 -0
  64. package/components/ChipGroup/ChipGroup.utils.d.ts +9 -9
  65. package/components/Header/Header.d.ts +4 -5
  66. package/components/InputStepper/InputStepper.d.ts +8 -2
  67. package/components/InputStepper/InputStepper.utils.d.ts +1 -0
  68. package/components/LinkButton/LinkButton.d.ts +2 -0
  69. package/components/Logo100Years/Logo100Years.d.ts +1 -0
  70. package/components/Popover/Popover.d.ts +29 -7
  71. package/components/Popover/Popover.utils.d.ts +34 -3
  72. package/components/Tooltip/Tooltip.d.ts +40 -0
  73. package/components/Tooltip/Tooltip.test.d.ts +1 -0
  74. package/components/Tooltip/Tooltip.utils.d.ts +70 -0
  75. package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
  76. package/components/TopBar/TopBar.d.ts +4 -4
  77. package/components/TopBar/TopBar.utils.d.ts +1 -1
  78. package/{customreactselect.Hnch9LGg.js → customreactselect.Np-RpzvU.js} +4 -4
  79. package/{dialog.7sWoqGwL.js → dialog.D4rcbW6A.js} +2 -2
  80. package/{drawer.DsF4KIPn.js → drawer.BCCB3Rkj.js} +2 -2
  81. package/{fieldset.DUFUMcT-.js → fieldset.ZLs9IGpE.js} +2 -2
  82. package/{filelist.nunJKxkv.js → filelist.BiKMKCyg.js} +3 -3
  83. package/{flag.D_iN8iD6.js → flag.72PONA83.js} +1 -1
  84. package/floatingactionbutton.B2YChsNU.js +87 -0
  85. package/{header.QpNjE3N-.js → header.DUbn3BZt.js} +1 -1
  86. package/{icon.vMQcEBnH.js → icon.CHVAZr5T.js} +1 -1
  87. package/index.es.js +112 -111
  88. package/input.DG20x6gh.js +203 -0
  89. package/{inputfile.DK8759wV.js → inputfile.Dc56lQ4t.js} +5 -5
  90. package/{inputpassword.rV_ZZw5F.js → inputpassword.znFHRLsI.js} +3 -3
  91. package/{inputsearch.CmhakTpa.js → inputsearch.B1G6rfVk.js} +3 -3
  92. package/{inputstepper.5olvh4tk.js → inputstepper.o6rdM_CW.js} +3 -3
  93. package/link.DbnvsD3j.js +81 -0
  94. package/{button.CPilCCUI.js → linkbutton.DU8Ih8ZF.js} +4 -4
  95. package/logo100years.BcB6_c-o.js +24 -0
  96. package/logo100years.d.ts +2 -0
  97. package/{megamenu.CdHrEeoh.js → megamenu.CPH8EeFF.js} +3 -3
  98. package/{navigationtablist.CVjh1k-b.js → navigationtablist.C0iwsAad.js} +2 -2
  99. package/{navigationtabs.BGfi9AG2.js → navigationtabs.JjJtbuUe.js} +2 -2
  100. package/{notification.Dn-FZWEL.js → notification.Ds_Q7ifk.js} +3 -3
  101. package/{optioncheckbox.D97W3zeW.js → optioncheckbox.DqfXuPdi.js} +1 -1
  102. package/package.json +2 -3
  103. package/partials/index.js +14 -14
  104. package/{popover.DXxm1oWI.js → popover.B72W0OvU.js} +4 -3
  105. package/{radiogroup.J8WpEEo8.js → radiogroup.C_3IcNBq.js} +2 -2
  106. package/{scroller.BiRLQg__.js → scroller.CQxmQU6U.js} +1 -1
  107. package/{select.DIzGPVx3.js → select.Ceyt-zvu.js} +3 -3
  108. package/{skiptocontent._F-d8y5b.js → skiptocontent.BSCde5hT.js} +1 -1
  109. package/{slider.DuJK0RdB.js → slider.Dq2dcziy.js} +2 -2
  110. package/{spinner.Dht6FspZ.js → spinner.BUjhjAvw.js} +1 -1
  111. package/{switch.B37S4vfP.js → switch.D7BCfyyZ.js} +2 -2
  112. package/{systemfeedback.C_2PhwKe.js → systemfeedback.CSdWOWuf.js} +2 -2
  113. package/{tablist.g_Nwu6GA.js → tablist.V7DBklhE.js} +3 -3
  114. package/{tabs.oh9-wHPp.js → tabs.DQNLPAEN.js} +2 -2
  115. package/{textarea.dQ12-oYB.js → textarea.CixKeQBp.js} +2 -2
  116. package/{toast.sMNbfKxi.js → toast.D8QprMCa.js} +3 -3
  117. package/{toastmanager.CVamaS5T.js → toastmanager.BSVjYsg9.js} +1 -1
  118. package/tooltip.CUCSRXd3.js +191 -0
  119. package/tooltip.d.ts +2 -0
  120. package/{topbar.Dhy_TL0U.js → topbar.CVhJy-Br.js} +3 -2
  121. package/types/icon-types.d.ts +1 -1
  122. package/types/prettier-plugin-organize-imports.d.ts +1 -0
  123. package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
  124. package/assets/InputStepper.Dth4qZN_.css +0 -1
  125. package/assets/Popover.BDTDsPAt.css +0 -1
  126. package/assets/Select.CYACicZ3.css +0 -1
  127. package/assets/Slider.DzwSjDPV.css +0 -1
  128. package/assets/Textarea.BXWhXpXx.css +0 -1
  129. package/assets/input.ONbL-_C1.css +0 -1
  130. package/buttonround.C426mO4d.js +0 -81
  131. package/chipgroup.CjIK0Z0x.js +0 -209
  132. package/chunks/ActionButton.B8zFwOrJ.js +0 -165
  133. package/chunks/ActionLink.IX6oRXU3.js +0 -138
  134. package/chunks/Button.B7xF1E19.js +0 -127
  135. package/chunks/Chip.31UfPwQF.js +0 -119
  136. package/chunks/Header.DqZRryB5.js +0 -366
  137. package/chunks/Icon.DGTYCv63.js +0 -231
  138. package/chunks/InputStepper.B_ZjgY_f.js +0 -263
  139. package/chunks/LinkButton.DdTspmJz.js +0 -117
  140. package/chunks/MegaMenu.BY7eOnhj.js +0 -189
  141. package/chunks/Popover.NGetxKGg.js +0 -159
  142. package/chunks/Select.BDHLJ2ma.js +0 -162
  143. package/chunks/Textarea.ORkJUx-S.js +0 -163
  144. package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
  145. package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
  146. package/floatingactionbutton.DOH2k0gv.js +0 -72
  147. package/input.BKHOY118.js +0 -203
  148. package/link.D_FjTyoZ.js +0 -66
@@ -1,119 +0,0 @@
1
- "use client";
2
- import { jsxs as F, jsx as q } from "react/jsx-runtime";
3
- import { d as B } from "./index.CgTHIF3K.js";
4
- import { c as W } from "./index.CEyLAtio.js";
5
- import { forwardRef as Z } from "react";
6
- import { t as J } from "./translate.nuU7uChI.js";
7
- import { D as H } from "./Icon.DGTYCv63.js";
8
- import { g as x, r as U } from "./helpers.BbWkXTr3.js";
9
- import { g as K } from "./AriaLiveRegions.utils.Cb327d_2.js";
10
- import '../assets/Chip.dxIYIjj7.css';const Q = "ds-chip-group_chip_aidwn_1", V = "ds-chip-group_chip--small_aidwn_30", M = {
11
- chip: Q,
12
- chipSmall: V
13
- }, me = ({
14
- chips: t,
15
- id: l,
16
- label: e
17
- }) => {
18
- if (!Array.isArray(t))
19
- throw new Error(x("DSChipGroup", U("chips", "DSChipGroup")));
20
- if (!l)
21
- throw new Error(x("DSChipGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSChipGroup component.'));
22
- if (!e)
23
- throw new Error(x("DSChipGroup", U("label", "DSChipGroup")));
24
- }, ue = () => {
25
- if (!K())
26
- throw new Error(x("DSChipGroup", 'The DSAriaLiveRegions component has to be placed at the root of your application, as close to the "body" as possible, e.g. in your "App.tsx" or "layout.tsx".'));
27
- }, fe = ["medium", "small"], X = {
28
- disabled: "disabled",
29
- selected: "selected",
30
- // {0} is the action (e.g., select/unselect)
31
- selectChip: "press space to {0}",
32
- unselectAction: "unselect",
33
- selectAction: "select",
34
- addToSelection: "add this option to selection",
35
- removeFromSelection: "remove this option from selection",
36
- removeChip: "press Backspace to remove the currently focused value",
37
- titleDisabled: "Disabled",
38
- titleRemovable: "Remove filter",
39
- titleDeactivate: "Deactivate property",
40
- titleActivate: "Activate property"
41
- }, Y = {
42
- disabled: "deaktiviert",
43
- selected: "ausgewählt",
44
- // {0} is the action (e.g., select/unselect)
45
- selectChip: "drücke Leertaste, um {0}",
46
- unselectAction: "abzuwählen",
47
- selectAction: "auszuwählen",
48
- addToSelection: "diese Option zur Auswahl hinzuzufügen",
49
- removeFromSelection: "diese Option aus der Auswahl zu entfernen",
50
- removeChip: "drücke Backspace, um den aktuell fokussierten Wert zu entfernen",
51
- titleDisabled: "Deaktiviert",
52
- titleRemovable: "Filter entfernen",
53
- titleDeactivate: "Eigenschaft deaktivieren",
54
- titleActivate: "Eigenschaft aktivieren"
55
- }, ee = {
56
- en: X,
57
- de: Y
58
- }, te = (t, l, e, i, o, a) => e ? `${l}, ${t("disabled")}` : a ? `${l}, ${t("removeChip")}` : `${l}, ${i ? `${t("selected")}, ` : ""}${t("selectChip", [t(o === "single" ? i ? "unselectAction" : "selectAction" : i ? "removeFromSelection" : "addToSelection")])}`, ie = (t, l, e, i) => t(l ? "titleDisabled" : i ? "titleRemovable" : e ? "titleDeactivate" : "titleActivate"), se = Z((t, l) => {
59
- const e = B.c(63);
60
- let i, o, a, s, n, r, c, p, d, h, I, G, m, T;
61
- e[0] !== t ? ({
62
- id: a,
63
- label: r,
64
- groupId: i,
65
- isRemovable: s,
66
- selectionMode: d,
67
- disabled: I,
68
- iconName: o,
69
- isSelected: n,
70
- lang: G,
71
- size: h,
72
- tabIndex: m,
73
- translations: T,
74
- onClick: c,
75
- ...p
76
- } = t, e[0] = t, e[1] = i, e[2] = o, e[3] = a, e[4] = s, e[5] = n, e[6] = r, e[7] = c, e[8] = p, e[9] = d, e[10] = h, e[11] = I, e[12] = G, e[13] = m, e[14] = T) : (i = e[1], o = e[2], a = e[3], s = e[4], n = e[5], r = e[6], c = e[7], p = e[8], d = e[9], h = e[10], I = e[11], G = e[12], m = e[13], T = e[14]);
77
- const P = I === void 0 ? !1 : I, O = T || ee[G === void 0 ? "en" : G];
78
- let u, f, v, S, D, b, g, C, A, _, w;
79
- if (e[15] !== P || e[16] !== i || e[17] !== a || e[18] !== s || e[19] !== n || e[20] !== r || e[21] !== c || e[22] !== l || e[23] !== p || e[24] !== d || e[25] !== h || e[26] !== O || e[27] !== m) {
80
- const L = J(O), z = h === "small";
81
- let $;
82
- e[39] !== z ? ($ = W(M.chip, {
83
- [M.chipSmall]: z
84
- }), e[39] = z, e[40] = $) : $ = e[40];
85
- const j = $;
86
- b = "row", g = te(L, r, P, n, d, s), C = n && !s, A = P && !s, _ = `${i}-chip-${a}`, w = j, u = m, f = c, v = l, S = p, D = ie(L, P, n, s), e[15] = P, e[16] = i, e[17] = a, e[18] = s, e[19] = n, e[20] = r, e[21] = c, e[22] = l, e[23] = p, e[24] = d, e[25] = h, e[26] = O, e[27] = m, e[28] = u, e[29] = f, e[30] = v, e[31] = S, e[32] = D, e[33] = b, e[34] = g, e[35] = C, e[36] = A, e[37] = _, e[38] = w;
87
- } else
88
- u = e[28], f = e[29], v = e[30], S = e[31], D = e[32], b = e[33], g = e[34], C = e[35], A = e[36], _ = e[37], w = e[38];
89
- let E;
90
- e[41] === Symbol.for("react.memo_cache_sentinel") ? (E = {
91
- display: "contents"
92
- }, e[41] = E) : E = e[41];
93
- let y;
94
- e[42] !== o ? (y = o && /* @__PURE__ */ q(H, { name: o, "aria-hidden": "true" }), e[42] = o, e[43] = y) : y = e[43];
95
- let R;
96
- e[44] !== r || e[45] !== y ? (R = /* @__PURE__ */ F("div", { role: "gridcell", "aria-colindex": 1, style: E, children: [
97
- y,
98
- r
99
- ] }), e[44] = r, e[45] = y, e[46] = R) : R = e[46];
100
- let k;
101
- e[47] !== s ? (k = s && /* @__PURE__ */ q(H, { name: "cross" }), e[47] = s, e[48] = k) : k = e[48];
102
- let N;
103
- return e[49] !== u || e[50] !== f || e[51] !== v || e[52] !== S || e[53] !== D || e[54] !== R || e[55] !== k || e[56] !== b || e[57] !== g || e[58] !== C || e[59] !== A || e[60] !== _ || e[61] !== w ? (N = /* @__PURE__ */ F("div", { role: b, "aria-label": g, "aria-selected": C, "aria-disabled": A, id: _, className: w, tabIndex: u, onClick: f, ref: v, ...S, title: D, children: [
104
- R,
105
- k
106
- ] }), e[49] = u, e[50] = f, e[51] = v, e[52] = S, e[53] = D, e[54] = R, e[55] = k, e[56] = b, e[57] = g, e[58] = C, e[59] = A, e[60] = _, e[61] = w, e[62] = N) : N = e[62], N;
107
- });
108
- se.displayName = "DSChip";
109
- export {
110
- fe as C,
111
- X as D,
112
- ue as a,
113
- Y as b,
114
- ee as c,
115
- ie as d,
116
- se as e,
117
- te as g,
118
- me as v
119
- };
@@ -1,366 +0,0 @@
1
- "use client";
2
- import { jsx as v, jsxs as Ae, Fragment as ge } from "react/jsx-runtime";
3
- import { d as T } from "./index.CgTHIF3K.js";
4
- import { c as x } from "./index.CEyLAtio.js";
5
- import { useState as V, useEffect as ne, useContext as oe, createContext as De, useRef as U } from "react";
6
- import { g as j, c as R, p as fe } from "./helpers.BbWkXTr3.js";
7
- import { u as He } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
8
- import { DSLogo as Pe } from "../logo.C96KaG1P.js";
9
- import '../assets/Header.CNqtWTxB.css';const Te = (c) => {
10
- const e = T.c(3), t = 0, [r, n] = V("down");
11
- let a, s;
12
- return e[0] !== t ? (a = () => {
13
- let d;
14
- d = window.scrollY;
15
- const l = () => {
16
- const i = window.scrollY, h = i > d ? "down" : "up";
17
- Math.abs(i - d) > t && (n(h), d = i);
18
- };
19
- return window.addEventListener("scroll", l, {
20
- passive: !0
21
- }), () => window.removeEventListener("scroll", l);
22
- }, s = [t], e[0] = t, e[1] = a, e[2] = s) : (a = e[1], s = e[2]), ne(a, s), r;
23
- }, At = ["full", "main"], Ee = ({
24
- hasBrandArea: c,
25
- hasPrimaryArea: e,
26
- hasSecondaryArea: t
27
- }) => {
28
- if (c)
29
- throw new Error(j("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
30
- if (e)
31
- throw new Error(j("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
32
- if (t)
33
- throw new Error(j("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
34
- }, Fe = "ds-top-bar_root_q6oxc_1", Ce = "ds-top-bar_root--sticky_q6oxc_49", Oe = "ds-top-bar_root--fixed_q6oxc_53", Ve = "ds-top-bar_content_q6oxc_62", Re = "ds-top-bar_content--variant-full_q6oxc_81", Me = "ds-top-bar_content--has-primary-area-and-secondary-area_q6oxc_85", qe = "ds-top-bar_primary_q6oxc_90", ke = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_q6oxc_105", $e = "ds-top-bar_brand_q6oxc_110", We = "ds-top-bar_content--has-primary-area_q6oxc_85", Ie = "ds-top-bar_content--has-primary-area--with-brand-add-on_q6oxc_149", Le = "ds-top-bar_brand-add-on_q6oxc_213", Ye = "ds-top-bar_brand-add-on--double_q6oxc_234", ze = "ds-top-bar_sub-title_q6oxc_248", Ue = "ds-top-bar_secondary_q6oxc_274", je = "ds-top-bar_logo_q6oxc_283", Ge = "ds-top-bar_logo--reduced_q6oxc_293", _ = {
35
- root: Fe,
36
- rootSticky: Ce,
37
- rootFixed: Oe,
38
- content: Ve,
39
- contentVariantFull: Re,
40
- contentHasPrimaryAreaAndSecondaryArea: Me,
41
- primary: qe,
42
- contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: ke,
43
- brand: $e,
44
- contentHasPrimaryArea: We,
45
- contentHasPrimaryAreaWithBrandAddOn: Ie,
46
- brandAddOn: Le,
47
- brandAddOnDouble: Ye,
48
- subTitle: ze,
49
- secondary: Ue,
50
- logo: je,
51
- logoReduced: Ge
52
- }, Je = ({
53
- hasBrandArea: c,
54
- hasPrimaryArea: e,
55
- hasSecondaryArea: t
56
- }) => {
57
- if (!c)
58
- throw new Error(j("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
59
- if (!e && t)
60
- throw new Error(j("DSTopBar", "A <DSTopBar.PrimaryArea> is required when using <DSTopBar.SecondaryArea>. Please include <DSTopBar.PrimaryArea> as a child of DSTopBar, or move the content from <DSTopBar.SecondaryArea> into <DSTopBar.PrimaryArea>."));
61
- }, ve = (c) => c == null || typeof c == "object" && !Array.isArray(c) && c !== null && Object.keys(c).length === 0, pt = ["double", "single"], L = (c) => {
62
- const e = T.c(28);
63
- let t, r, n, a;
64
- e[0] !== c ? ({
65
- children: t,
66
- className: r,
67
- rootClassName: a,
68
- ...n
69
- } = c, e[0] = c, e[1] = t, e[2] = r, e[3] = n, e[4] = a) : (t = e[1], r = e[2], n = e[3], a = e[4]);
70
- const {
71
- variant: s,
72
- isHeaderSticky: d,
73
- isMobile: l,
74
- topBarAreaRef: i,
75
- isStickyMainNavigationVisible: h,
76
- hasBrandAddOn: m
77
- } = oe(G);
78
- let A, p;
79
- if (e[5] !== t || e[6] !== r || e[7] !== m || e[8] !== d || e[9] !== l || e[10] !== h || e[11] !== a || e[12] !== s) {
80
- const E = R(t, pe), u = R(t, ue), o = R(t, _e);
81
- process.env.NODE_ENV !== "production" && Je({
82
- hasBrandArea: E,
83
- hasPrimaryArea: u,
84
- hasSecondaryArea: o
85
- });
86
- let b;
87
- e[15] !== d || e[16] !== l || e[17] !== h || e[18] !== a ? (b = x(_.root, a, d ? {
88
- [_.rootSticky]: !l && h,
89
- [_.rootFixed]: !l && !h
90
- } : {}), e[15] = d, e[16] = l, e[17] = h, e[18] = a, e[19] = b) : b = e[19], A = b, p = x(_.content, r, {
91
- [_.contentHasPrimaryArea]: u && !m && !o,
92
- [_.contentHasPrimaryAreaWithBrandAddOn]: u && m && !o,
93
- [_.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: m && u && o,
94
- [_.contentHasPrimaryAreaAndSecondaryArea]: u && o && !m,
95
- [_.contentVariantFull]: s === "full"
96
- }), e[5] = t, e[6] = r, e[7] = m, e[8] = d, e[9] = l, e[10] = h, e[11] = a, e[12] = s, e[13] = A, e[14] = p;
97
- } else
98
- A = e[13], p = e[14];
99
- const g = p;
100
- let f;
101
- e[20] !== t || e[21] !== g || e[22] !== n ? (f = /* @__PURE__ */ v("section", { className: g, ...n, children: t }), e[20] = t, e[21] = g, e[22] = n, e[23] = f) : f = e[23];
102
- let y;
103
- return e[24] !== A || e[25] !== f || e[26] !== i ? (y = /* @__PURE__ */ v("div", { className: A, ref: i, children: f }), e[24] = A, e[25] = f, e[26] = i, e[27] = y) : y = e[27], y;
104
- }, pe = (c) => {
105
- const e = T.c(26), {
106
- children: t,
107
- className: r
108
- } = c, {
109
- logoProps: n,
110
- brandAddOnProps: a,
111
- setHasBrandAddOn: s
112
- } = oe(G);
113
- let d;
114
- e[0] !== n ? (d = n || {}, e[0] = n, e[1] = d) : d = e[1];
115
- const {
116
- aria: l,
117
- logo: i,
118
- href: h,
119
- target: m
120
- } = d, A = i === void 0 ? "main" : i, p = h === void 0 ? "/" : h, g = m === void 0 ? "_self" : m;
121
- let f;
122
- e[2] !== a || e[3] !== t || e[4] !== s ? (f = () => {
123
- t || !ve(a) ? s == null || s(!0) : s == null || s(!1);
124
- }, e[2] = a, e[3] = t, e[4] = s, e[5] = f) : f = e[5];
125
- let y;
126
- e[6] !== a || e[7] !== t ? (y = [t, a], e[6] = a, e[7] = t, e[8] = y) : y = e[8], ne(f, y);
127
- let E;
128
- e[9] !== A ? (E = x(_.logo, {
129
- [_.logoReduced]: A.includes("reduced")
130
- }), e[9] = A, e[10] = E) : E = e[10];
131
- const u = E;
132
- let o;
133
- e[11] !== r ? (o = x(_.brand, r), e[11] = r, e[12] = o) : o = e[12];
134
- let b;
135
- e[13] !== l || e[14] !== p || e[15] !== A || e[16] !== u || e[17] !== g ? (b = /* @__PURE__ */ v(Pe, { className: u, aria: l, logo: A, href: p, target: g }), e[13] = l, e[14] = p, e[15] = A, e[16] = u, e[17] = g, e[18] = b) : b = e[18];
136
- let S;
137
- e[19] !== a ? (S = ve(a) ? void 0 : /* @__PURE__ */ v(be, { ...a }), e[19] = a, e[20] = S) : S = e[20];
138
- let D;
139
- return e[21] !== t || e[22] !== S || e[23] !== o || e[24] !== b ? (D = /* @__PURE__ */ Ae("div", { className: o, children: [
140
- b,
141
- S,
142
- t
143
- ] }), e[21] = t, e[22] = S, e[23] = o, e[24] = b, e[25] = D) : D = e[25], D;
144
- };
145
- pe.displayName = "DSTopBar.BrandArea";
146
- const be = (c) => {
147
- const e = T.c(10), {
148
- children: t,
149
- className: r,
150
- subTitle: n,
151
- variant: a
152
- } = c, s = a === void 0 ? "single" : a, d = s === "double";
153
- let l;
154
- e[0] !== r || e[1] !== d ? (l = x(_.brandAddOn, r, {
155
- [_.brandAddOnDouble]: d
156
- }), e[0] = r, e[1] = d, e[2] = l) : l = e[2];
157
- const i = l;
158
- let h;
159
- e[3] !== t || e[4] !== n || e[5] !== s ? (h = s === "single" ? t : /* @__PURE__ */ Ae(ge, { children: [
160
- /* @__PURE__ */ v("span", { children: t }),
161
- n && /* @__PURE__ */ v("span", { className: _.subTitle, children: n })
162
- ] }), e[3] = t, e[4] = n, e[5] = s, e[6] = h) : h = e[6];
163
- let m;
164
- return e[7] !== i || e[8] !== h ? (m = /* @__PURE__ */ v("span", { className: i, children: h }), e[7] = i, e[8] = h, e[9] = m) : m = e[9], m;
165
- };
166
- be.displayName = "DSTopBar.BrandAddOn";
167
- const ue = (c) => {
168
- const e = T.c(5), {
169
- children: t,
170
- className: r
171
- } = c;
172
- let n;
173
- e[0] !== r ? (n = x(_.primary, r), e[0] = r, e[1] = n) : n = e[1];
174
- let a;
175
- return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ v("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
176
- };
177
- ue.displayName = "DSTopBar.PrimaryArea";
178
- const _e = (c) => {
179
- const e = T.c(5), {
180
- children: t,
181
- className: r
182
- } = c;
183
- let n;
184
- e[0] !== r ? (n = x(_.secondary, r), e[0] = r, e[1] = n) : n = e[1];
185
- let a;
186
- return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ v("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
187
- };
188
- _e.displayName = "DSTopBar.SecondaryArea";
189
- L.BrandArea = pe;
190
- L.PrimaryArea = ue;
191
- L.SecondaryArea = _e;
192
- const Ke = "ds-header_root_c5fh4_1", Qe = "ds-header_root--sticky_c5fh4_4", Xe = "ds-header_root--hidden_c5fh4_9", Ze = "ds-header_root--fixed_c5fh4_20", et = "ds-header_main-navigation-area_c5fh4_37", tt = "ds-header_main-navigation-area--fixed_c5fh4_90", at = "ds-header_main-navigation-area--fixed--visible_c5fh4_105", rt = "ds-header_main-navigation-content_c5fh4_111", nt = "ds-header_main-navigation-content--variant-full_c5fh4_115", ot = "ds-header_header-placeholder_c5fh4_120", it = "ds-header_header-placeholder--with-banner_c5fh4_123", N = {
193
- root: Ke,
194
- rootSticky: Qe,
195
- rootHidden: Xe,
196
- rootFixed: Ze,
197
- mainNavigationArea: et,
198
- mainNavigationAreaFixed: tt,
199
- mainNavigationAreaFixedVisible: at,
200
- mainNavigationContent: rt,
201
- mainNavigationContentVariantFull: nt,
202
- headerPlaceholder: ot,
203
- headerPlaceholderWithBanner: it
204
- }, G = De({
205
- variant: "main"
206
- }), ie = (c) => {
207
- const e = T.c(57);
208
- let t, r, n, a, s, d, l;
209
- e[0] !== c ? ({
210
- children: r,
211
- brandAddOnProps: t,
212
- className: n,
213
- isHeaderSticky: d,
214
- variant: l,
215
- logoProps: a,
216
- ...s
217
- } = c, e[0] = c, e[1] = t, e[2] = r, e[3] = n, e[4] = a, e[5] = s, e[6] = d, e[7] = l) : (t = e[1], r = e[2], n = e[3], a = e[4], s = e[5], d = e[6], l = e[7]);
218
- const i = d === void 0 ? !1 : d, h = l === void 0 ? "main" : l, [m, A] = V(!1);
219
- let p;
220
- e[8] !== r ? (p = R(r, ie.BannerArea, !0), e[8] = r, e[9] = p) : p = e[9];
221
- const g = p, f = R(r, L.BrandArea), y = R(r, L.PrimaryArea), E = R(r, L.SecondaryArea);
222
- process.env.NODE_ENV !== "production" && Ee({
223
- hasBrandArea: f,
224
- hasPrimaryArea: y,
225
- hasSecondaryArea: E
226
- });
227
- const u = Te(), [o, b] = V(!1), S = U(null), D = U(null), se = U(null), ce = U(null), [de, Be] = V(!1), [M, we] = V(!1), [w, ye] = V(!0), [le, xe] = V(!1), he = U(o);
228
- let J, K;
229
- e[10] !== i ? (J = () => {
230
- if (i) {
231
- const B = () => {
232
- b((H) => (he.current = H, window.innerWidth < 1024));
233
- };
234
- return B(), window.addEventListener("resize", B), () => window.removeEventListener("resize", B);
235
- }
236
- }, K = [i], e[10] = i, e[11] = J, e[12] = K) : (J = e[11], K = e[12]), ne(J, K);
237
- let Q, X;
238
- e[13] === Symbol.for("react.memo_cache_sentinel") ? (Q = () => {
239
- const B = () => {
240
- var F, O, re;
241
- const H = document.documentElement, Y = ((F = S.current) == null ? void 0 : F.offsetHeight) || 0, P = ((O = se.current) == null ? void 0 : O.offsetHeight) || 0;
242
- let C;
243
- if (!ce.current)
244
- C = Y + P;
245
- else {
246
- const z = (re = D.current) == null ? void 0 : re.offsetHeight;
247
- !z || z === Y ? C = parseInt(H.style.getPropertyValue("--ds-header-height").replace("rem", "")) * 16 || 0 : C = z;
248
- }
249
- H.style.setProperty("--ds-banner-height", `${fe(Y)}rem`), H.style.setProperty("--ds-header-height", `${fe(C)}rem`), H.style.setProperty("--ds-top-bar-height", `${fe(P)}rem`);
250
- };
251
- return B(), window.addEventListener("resize", B), () => window.removeEventListener("resize", B);
252
- }, X = [], e[13] = Q, e[14] = X) : (Q = e[13], X = e[14]), He(Q, X);
253
- let Z;
254
- e[15] !== i || e[16] !== o || e[17] !== w || e[18] !== u ? (Z = () => {
255
- if (i) {
256
- const B = () => {
257
- const P = D.current, C = !!P && window.scrollY <= P.offsetHeight;
258
- Be(C);
259
- const F = ce.current, O = se.current;
260
- if (!o && he.current && !w) {
261
- ye(C && !!P && window.scrollY <= P.offsetHeight);
262
- return;
263
- }
264
- const re = !!O && !!F && F.getBoundingClientRect().bottom > O.getBoundingClientRect().bottom, z = !F && !!O && !!S.current && (window.scrollY >= S.current.offsetHeight || 0) || !F && !S.current && !!O && window.scrollY >= 1;
265
- ye(F ? re && !!P && window.scrollY <= P.offsetHeight : !z);
266
- };
267
- window.addEventListener("scroll", B, {
268
- passive: !0
269
- }), B();
270
- const H = D.current, Y = !!H && H.getBoundingClientRect().bottom > 0;
271
- return o && we(u === "up" && !Y), o || xe(u === "up" && !w), () => {
272
- window.removeEventListener("scroll", B);
273
- };
274
- }
275
- }, e[15] = i, e[16] = o, e[17] = w, e[18] = u, e[19] = Z) : Z = e[19];
276
- let ee;
277
- e[20] !== i || e[21] !== o || e[22] !== u ? (ee = [i, o, he, u], e[20] = i, e[21] = o, e[22] = u, e[23] = ee) : ee = e[23], ne(Z, ee);
278
- let te;
279
- e[24] !== n || e[25] !== M || e[26] !== i || e[27] !== de || e[28] !== o ? (te = x(N.root, n, i ? {
280
- [N.rootSticky]: o,
281
- [N.rootHidden]: o && !de,
282
- [N.rootFixed]: o && M
283
- } : {}), e[24] = n, e[25] = M, e[26] = i, e[27] = de, e[28] = o, e[29] = te) : te = e[29];
284
- const me = te;
285
- let q;
286
- e[30] !== t || e[31] !== m || e[32] !== le || e[33] !== i || e[34] !== o || e[35] !== w || e[36] !== a || e[37] !== h ? (q = {
287
- variant: h,
288
- bannerAreaRef: S,
289
- brandAddOnProps: t,
290
- hasBrandAddOn: m,
291
- setHasBrandAddOn: A,
292
- isFixedMainNavigation: le,
293
- isHeaderSticky: i,
294
- isMobile: o,
295
- isStickyMainNavigationVisible: w,
296
- mainNavigationAreaRef: ce,
297
- topBarAreaRef: se,
298
- logoProps: a
299
- }, e[30] = t, e[31] = m, e[32] = le, e[33] = i, e[34] = o, e[35] = w, e[36] = a, e[37] = h, e[38] = q) : q = e[38];
300
- let k;
301
- e[39] !== r || e[40] !== q ? (k = /* @__PURE__ */ v(G.Provider, { value: q, children: r }), e[39] = r, e[40] = q, e[41] = k) : k = e[41];
302
- let $;
303
- e[42] !== s || e[43] !== me || e[44] !== k ? ($ = /* @__PURE__ */ v("header", { className: me, ...s, ref: D, children: k }), e[42] = s, e[43] = me, e[44] = k, e[45] = $) : $ = e[45];
304
- let W;
305
- e[46] !== M || e[47] !== o ? (W = o && M && /* @__PURE__ */ v("div", { className: N.headerPlaceholder }), e[46] = M, e[47] = o, e[48] = W) : W = e[48];
306
- let I;
307
- e[49] !== g || e[50] !== o || e[51] !== w ? (I = !o && !w && /* @__PURE__ */ v("div", { className: g ? N.headerPlaceholderWithBanner : N.headerPlaceholder }), e[49] = g, e[50] = o, e[51] = w, e[52] = I) : I = e[52];
308
- let ae;
309
- return e[53] !== $ || e[54] !== W || e[55] !== I ? (ae = /* @__PURE__ */ Ae(ge, { children: [
310
- $,
311
- W,
312
- I
313
- ] }), e[53] = $, e[54] = W, e[55] = I, e[56] = ae) : ae = e[56], ae;
314
- }, Se = (c) => {
315
- const e = T.c(4), {
316
- children: t,
317
- className: r
318
- } = c, {
319
- bannerAreaRef: n
320
- } = oe(G);
321
- let a;
322
- return e[0] !== n || e[1] !== t || e[2] !== r ? (a = /* @__PURE__ */ v("div", { ref: n, className: r, children: t }), e[0] = n, e[1] = t, e[2] = r, e[3] = a) : a = e[3], a;
323
- };
324
- Se.displayName = "DSHeader.BannerArea";
325
- const Ne = (c) => {
326
- const e = T.c(15), {
327
- children: t,
328
- className: r
329
- } = c, {
330
- variant: n,
331
- isFixedMainNavigation: a,
332
- isHeaderSticky: s,
333
- isMobile: d,
334
- isStickyMainNavigationVisible: l,
335
- mainNavigationAreaRef: i
336
- } = oe(G);
337
- let h;
338
- e[0] !== r || e[1] !== a || e[2] !== s || e[3] !== d || e[4] !== l ? (h = x(N.mainNavigationArea, r, s ? {
339
- [N.mainNavigationAreaFixed]: !d && !l,
340
- [N.mainNavigationAreaFixedVisible]: !d && a
341
- } : {}), e[0] = r, e[1] = a, e[2] = s, e[3] = d, e[4] = l, e[5] = h) : h = e[5];
342
- const m = h, A = n === "full";
343
- let p;
344
- e[6] !== A ? (p = x(N.mainNavigationContent, {
345
- [N.mainNavigationContentVariantFull]: A
346
- }), e[6] = A, e[7] = p) : p = e[7];
347
- const g = p;
348
- let f;
349
- e[8] !== t || e[9] !== g ? (f = /* @__PURE__ */ v("div", { className: g, children: t }), e[8] = t, e[9] = g, e[10] = f) : f = e[10];
350
- let y;
351
- return e[11] !== i || e[12] !== m || e[13] !== f ? (y = /* @__PURE__ */ v("div", { className: m, ref: i, children: f }), e[11] = i, e[12] = m, e[13] = f, e[14] = y) : y = e[14], y;
352
- };
353
- Ne.displayName = "DSHeader.MainNavigationArea";
354
- ie.BannerArea = Se;
355
- ie.MainNavigationArea = Ne;
356
- ie.displayName = "DSHeader";
357
- export {
358
- pt as B,
359
- G as D,
360
- At as H,
361
- ie as a,
362
- L as b,
363
- Je as c,
364
- ve as i,
365
- Ee as v
366
- };