@stihl-design-system/components 1.0.0-RC.24 → 1.0.0-RC.26

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 (147) hide show
  1. package/{accordion.T4ah-Sa6.js → accordion.CBaDU14g.js} +3 -3
  2. package/actionbutton.DEJsLxnQ.js +11 -0
  3. package/actionbutton.d.ts +2 -0
  4. package/actionlink.Cs6BTCA3.js +11 -0
  5. package/actionlink.d.ts +2 -0
  6. package/{arialiveregions.DVsA5OTR.js → arialiveregions.Fgcshs5k.js} +1 -1
  7. package/assets/ActionButton.Ewi0i1hW.css +1 -0
  8. package/assets/ActionLink.BdPEvuGm.css +1 -0
  9. package/assets/Button.Dw8H5nFS.css +1 -0
  10. package/assets/Icon.QeJ7TxZs.css +1 -0
  11. package/assets/InputFile.Dqjz53mb.css +1 -0
  12. package/assets/LinkButton.xMvg_ojf.css +1 -0
  13. package/assets/NavigationTabList.CFlVhUzS.css +1 -0
  14. package/assets/Popover.BDTDsPAt.css +1 -0
  15. package/assets/buttonround.Cw9hnUan.css +1 -0
  16. package/assets/{numberindicator.BJnvB-K3.css → numberindicator.O6XwvtL0.css} +1 -1
  17. package/{breadcrumb.gcCDIVj2.js → breadcrumb.x78HJy5P.js} +3 -3
  18. package/button.BD_04tIG.js +12 -0
  19. package/buttonround.BT3OfowK.js +81 -0
  20. package/{checkbox.CvWI1Jrx.js → checkbox.BktYXQmJ.js} +3 -3
  21. package/{checkboxgroup.BLpSLo9t.js → checkboxgroup.YK8H0YoX.js} +2 -2
  22. package/{chip.BsDriMfL.js → chip.BKtNbt4y.js} +2 -2
  23. package/{chipgroup.D1Km301k.js → chipgroup.Bp_v9IQu.js} +2 -2
  24. package/chunks/{Accordion.BKSnVQtR.js → Accordion.eVOD7J_8.js} +3 -3
  25. package/chunks/ActionButton.Ck1rGqgm.js +165 -0
  26. package/chunks/ActionLink.DnUNjoAT.js +138 -0
  27. package/chunks/{AriaLiveRegions.utils.zSFFD3SF.js → AriaLiveRegions.utils.Cb327d_2.js} +1 -1
  28. package/chunks/{Breadcrumb.Cq3I3bPY.js → Breadcrumb.B7g30dIO.js} +8 -8
  29. package/chunks/Button.CC0qEsuR.js +127 -0
  30. package/chunks/{Checkbox.Ch8DBzws.js → Checkbox.BIQAKBVy.js} +3 -3
  31. package/chunks/{CheckboxGroup.C8D6tjVI.js → CheckboxGroup.DHzpgOWp.js} +3 -3
  32. package/chunks/{Chip.CHy8cZJz.js → Chip.DifLxHH7.js} +3 -3
  33. package/chunks/{CustomReactSelect.hdDSE0ON.js → CustomReactSelect.DWdh3k_q.js} +1340 -1580
  34. package/chunks/{Dialog.ZSSlU83U.js → Dialog.BuEEJ199.js} +2 -2
  35. package/chunks/{Drawer.CR4lh9pD.js → Drawer.BXUGmpJI.js} +13 -13
  36. package/chunks/{Fieldset.DHccz6TP.js → Fieldset.BX46NuLh.js} +2 -2
  37. package/chunks/Header.CsrzyVil.js +356 -0
  38. package/chunks/{Icon.CAXZUNWo.js → Icon.C0161Glk.js} +70 -67
  39. package/chunks/{Input.utils.CCYTBWD_.js → Input.utils.Cnnzvuk4.js} +1 -1
  40. package/chunks/{InputFile.DME1xfrc.js → InputFile.vkkg5Pab.js} +32 -32
  41. package/chunks/{InputPassword.CitwH0gw.js → InputPassword.BQU09DJh.js} +16 -16
  42. package/chunks/{InputSearch.BS5Tk698.js → InputSearch.CXL9ThpX.js} +68 -68
  43. package/chunks/{InputStepper.CNfA7g7U.js → InputStepper.BhLQVAlo.js} +18 -18
  44. package/chunks/LinkButton.DmXVHeyZ.js +117 -0
  45. package/chunks/NavigationTabList.IQM074Vb.js +57 -0
  46. package/chunks/{NavigationTabs.BbubgqFM.js → NavigationTabs.CuOXq0b7.js} +2 -2
  47. package/chunks/{Notification.CSMpFjaH.js → Notification.B-3dPVUE.js} +11 -11
  48. package/chunks/Popover.hXQTvwwd.js +1685 -0
  49. package/chunks/{RadioGroup.D9mECdMK.js → RadioGroup.okEm_-NA.js} +2 -2
  50. package/chunks/{Select.DCxMPsCm.js → Select.D3IUIdPJ.js} +3 -3
  51. package/chunks/{Slider.DEERUF2g.js → Slider.CPG4Btbq.js} +2 -2
  52. package/chunks/{Tabs.CPCtV-Qz.js → Tabs.C4qGWCcD.js} +2 -2
  53. package/chunks/Text.DGWeWF1y.js +75 -0
  54. package/chunks/{Textarea.Bs4-nzu8.js → Textarea.D4vXRg_U.js} +2 -2
  55. package/chunks/{Toast.BFFytKOu.js → Toast.BHz0vlGz.js} +2 -2
  56. package/chunks/floating-ui.dom.C9TD1WpB.js +950 -0
  57. package/chunks/helpers.BbWkXTr3.js +37 -0
  58. package/{combobox.DW_ey38o.js → combobox.DIB07SNA.js} +1 -1
  59. package/components/ActionButton/ActionButton.d.ts +61 -0
  60. package/components/ActionButton/ActionButton.test.d.ts +1 -0
  61. package/components/ActionButton/ActionButton.utils.d.ts +22 -0
  62. package/components/ActionButton/ActionButton.utils.test.d.ts +1 -0
  63. package/components/ActionLink/ActionLink.d.ts +38 -0
  64. package/components/ActionLink/ActionLink.test.d.ts +1 -0
  65. package/components/ActionLink/ActionLink.utils.d.ts +19 -0
  66. package/components/ActionLink/ActionLink.utils.test.d.ts +1 -0
  67. package/components/Button/Button.utils.d.ts +18 -1
  68. package/components/Button/Button.utils.test.d.ts +1 -0
  69. package/components/Header/Header.utils.d.ts +0 -2
  70. package/components/Icon/Icon.d.ts +1 -1
  71. package/components/Icon/Icon.utils.d.ts +1 -1
  72. package/components/LinkButton/LinkButton.utils.d.ts +18 -1
  73. package/components/LinkButton/LinkButton.utils.test.d.ts +1 -0
  74. package/components/Popover/Popover.d.ts +40 -0
  75. package/components/Popover/Popover.test.d.ts +1 -0
  76. package/components/Popover/Popover.utils.d.ts +53 -0
  77. package/components/Popover/Popover.utils.test.d.ts +1 -0
  78. package/components/Text/Text.utils.d.ts +14 -1
  79. package/connected-icon.svg +1 -0
  80. package/{customreactselect.DcH7h1mb.js → customreactselect.BvuvCDyE.js} +4 -4
  81. package/{dialog.BLaDkoYL.js → dialog.CGsUCqhR.js} +2 -2
  82. package/{drawer.DQOaxczX.js → drawer.BcAo4TO0.js} +2 -2
  83. package/{fieldset.D6q9YXrO.js → fieldset.DM9ELUJa.js} +2 -2
  84. package/{filelist.Ba5xMDGg.js → filelist.Cj9U-Jx8.js} +3 -3
  85. package/{flag.BR312AU-.js → flag.BHaAfp6B.js} +1 -1
  86. package/{floatingactionbutton.Do6eNSHq.js → floatingactionbutton.DSZXUHB_.js} +2 -2
  87. package/{header.5iwPmK5V.js → header.DLrTpc-W.js} +2 -2
  88. package/{icon.HkVs68n_.js → icon.DwfGhFCd.js} +1 -1
  89. package/icon.svg +1 -1
  90. package/imow-icon.svg +1 -0
  91. package/index.d.ts +6 -0
  92. package/index.es.js +195 -173
  93. package/{input.REQvMr96.js → input.D4OiEI8g.js} +23 -23
  94. package/{inputfile.D0VMZuDy.js → inputfile.Cmkxf4Vq.js} +6 -6
  95. package/{inputpassword.ovZjXw8s.js → inputpassword.CYfGcUE-.js} +3 -3
  96. package/{inputsearch.Bj8EfXX5.js → inputsearch.CecX8gHD.js} +4 -4
  97. package/{inputstepper.BMtVUIoM.js → inputstepper.CFgfHjM_.js} +4 -4
  98. package/{link.2XoCKjFH.js → link.DGuYGfh2.js} +2 -2
  99. package/linkbutton.B3q0B_yb.js +11 -0
  100. package/{logo.B9taqlZR.js → logo.C96KaG1P.js} +1 -1
  101. package/mystihl-icon.svg +1 -0
  102. package/navigationtablist.CS9yEGdP.js +9 -0
  103. package/{navigationtabs.Dpgk-3SR.js → navigationtabs.B86G8ODY.js} +2 -2
  104. package/{notification.Dv9ig-VY.js → notification.D8BDaU5x.js} +3 -3
  105. package/numberindicator.Ddf3ESi7.js +33 -0
  106. package/{optioncheckbox.DYKRBTy0.js → optioncheckbox.CEEPAq0u.js} +1 -1
  107. package/package.json +3 -1
  108. package/partials/assets.const.js +2 -0
  109. package/partials/copyAssets.js +4 -2
  110. package/partials/index.js +46 -28
  111. package/partials/lib/partials.d.ts +1 -1
  112. package/popover.BFx99cHg.js +10 -0
  113. package/popover.d.ts +2 -0
  114. package/{radiogroup.BnMkpjvV.js → radiogroup.C2PkTHnF.js} +2 -2
  115. package/{select.BSvjDIVC.js → select.CmGQdpsV.js} +3 -3
  116. package/{skiptocontent.CZlRYx9p.js → skiptocontent.D1UkPmhD.js} +11 -11
  117. package/{slider.D1BsPd0g.js → slider.DGmVtnxs.js} +2 -2
  118. package/{spinner.t5FHjIEK.js → spinner.CeGt8DxU.js} +1 -1
  119. package/styles/scss/ds/lib/ds-internal/_link-button.scss +21 -2
  120. package/styles/scss/ds/lib/link-button.scss +9 -0
  121. package/styles/scss/ds/lib/text.scss +24 -0
  122. package/{switch.QUUSE9ZF.js → switch.CtULjgZq.js} +2 -2
  123. package/{systemfeedback.BpKZEv4U.js → systemfeedback.CLQCbTF6.js} +1 -1
  124. package/{tablist.CRMbhl0A.js → tablist.CcCURua8.js} +5 -5
  125. package/{tabs.C0wEoFwL.js → tabs.Dby_2Hyz.js} +2 -2
  126. package/{topbar.BPSDyH0N.js → text.ZOUuesnU.js} +3 -3
  127. package/{textarea.D0ADOdR6.js → textarea.yOTo23Pd.js} +3 -3
  128. package/{toast.BhclbJsT.js → toast.Bhpwj1NF.js} +3 -3
  129. package/{toastmanager.aZGcyVFF.js → toastmanager.BHk65ynQ.js} +3 -3
  130. package/topbar.qNB9efbF.js +11 -0
  131. package/utils/helpers.d.ts +10 -0
  132. package/assets/Icon.ZNrKuqgu.css +0 -1
  133. package/assets/InputFile.Dx_CULYq.css +0 -1
  134. package/assets/NavigationTabList.B6x56sAV.css +0 -1
  135. package/assets/button.H5AqLh2o.css +0 -1
  136. package/assets/buttonround.C-l_HArD.css +0 -1
  137. package/assets/linkbutton.DuHHqo7Z.css +0 -1
  138. package/button.Bt0-bRGX.js +0 -106
  139. package/buttonround.DWclCEVH.js +0 -81
  140. package/chunks/Header.DPafHEKw.js +0 -384
  141. package/chunks/NavigationTabList.BeGdzxOj.js +0 -57
  142. package/chunks/helpers.CcqWV-wZ.js +0 -8
  143. package/linkbutton.nddFCT_K.js +0 -92
  144. package/navigationtablist.B1WjOPFB.js +0 -9
  145. package/numberindicator.BPWvqr7f.js +0 -33
  146. package/text.BBwtpoiR.js +0 -49
  147. /package/assets/{text.Dgpj61UP.css → Text.Dgpj61UP.css} +0 -0
@@ -3,8 +3,8 @@ import { jsx as F, jsxs as Z } from "react/jsx-runtime";
3
3
  import { d as ee } from "./index.CgTHIF3K.js";
4
4
  import { c as W } from "./index.CEyLAtio.js";
5
5
  import { useRef as Q, useState as oe, useEffect as U } from "react";
6
- import { DSButton as te } from "../button.Bt0-bRGX.js";
7
- import { g as le } from "./helpers.CcqWV-wZ.js";
6
+ import { D as te } from "./Button.CC0qEsuR.js";
7
+ import { g as le } from "./helpers.BbWkXTr3.js";
8
8
  import '../assets/Dialog.CGAg7bnN.css';const se = "ds-dialog_root_kvopn_5", ne = "ds-dialog_content-wrapper_kvopn_166", re = "ds-dialog_content-wrapper--no-footer_kvopn_172", ce = "ds-dialog_close-button_kvopn_180", ae = "ds-dialog_header_kvopn_193", ie = "ds-dialog_content_kvopn_166", de = "ds-dialog_footer_kvopn_195", fe = "ds-dialog_header--scrollable_kvopn_216", pe = "ds-dialog_header--close-button_kvopn_225", ue = "ds-dialog_content--no-footer_kvopn_238", he = "ds-dialog_footer--scrollable_kvopn_245", t = {
9
9
  root: se,
10
10
  contentWrapper: ne,
@@ -2,9 +2,9 @@
2
2
  import { jsx as x, jsxs as oe } from "react/jsx-runtime";
3
3
  import { d as re } from "./index.CgTHIF3K.js";
4
4
  import { c as F } from "./index.CEyLAtio.js";
5
- import { useRef as X, useState as ne, useEffect as Y } from "react";
6
- import { DSButton as se } from "../button.Bt0-bRGX.js";
7
- import { g as le } from "./helpers.CcqWV-wZ.js";
5
+ import { useRef as X, useState as se, useEffect as Y } from "react";
6
+ import { D as ne } from "./Button.CC0qEsuR.js";
7
+ import { g as le } from "./helpers.BbWkXTr3.js";
8
8
  import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae = "ds-drawer_root--end_4nbv0_68", ie = "ds-drawer_content-wrapper_4nbv0_169", de = "ds-drawer_content-wrapper--no-footer_4nbv0_175", fe = "ds-drawer_close-button_4nbv0_178", _e = "ds-drawer_header_4nbv0_191", pe = "ds-drawer_content_4nbv0_169", ue = "ds-drawer_footer_4nbv0_193", be = "ds-drawer_header--scrollable_4nbv0_214", he = "ds-drawer_header--close-button_4nbv0_223", me = "ds-drawer_content--no-footer_4nbv0_237", ve = "ds-drawer_footer--scrollable_4nbv0_244", o = {
9
9
  root: ce,
10
10
  rootEnd: ae,
@@ -25,7 +25,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
25
25
  throw new Error(le("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
26
26
  }, ke = (c) => {
27
27
  const e = re.c(61);
28
- let a, i, d, r, f, n, s, E, g, k, O;
28
+ let a, i, d, r, f, s, n, E, g, k, O;
29
29
  e[0] !== c ? ({
30
30
  children: a,
31
31
  className: i,
@@ -36,14 +36,14 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
36
36
  hideCloseButton: g,
37
37
  position: k,
38
38
  isOpen: O,
39
- onClose: n,
40
- ...s
41
- } = c, e[0] = c, e[1] = a, e[2] = i, e[3] = d, e[4] = r, e[5] = f, e[6] = n, e[7] = s, e[8] = E, e[9] = g, e[10] = k, e[11] = O) : (a = e[1], i = e[2], d = e[3], r = e[4], f = e[5], n = e[6], s = e[7], E = e[8], g = e[9], k = e[10], O = e[11]);
39
+ onClose: s,
40
+ ...n
41
+ } = c, e[0] = c, e[1] = a, e[2] = i, e[3] = d, e[4] = r, e[5] = f, e[6] = s, e[7] = n, e[8] = E, e[9] = g, e[10] = k, e[11] = O) : (a = e[1], i = e[2], d = e[3], r = e[4], f = e[5], s = e[6], n = e[7], E = e[8], g = e[9], k = e[10], O = e[11]);
42
42
  const H = E === void 0 ? !1 : E, R = g === void 0 ? !1 : g, Z = k === void 0 ? "start" : k, y = O === void 0 ? !1 : O;
43
43
  if (process.env.NODE_ENV !== "production") {
44
44
  const {
45
45
  tabIndex: t
46
- } = s;
46
+ } = n;
47
47
  we({
48
48
  tabIndex: t
49
49
  });
@@ -55,7 +55,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
55
55
  label: W,
56
56
  ...p
57
57
  } = _, e[14] = _, e[15] = p, e[16] = W) : (p = e[15], W = e[16]);
58
- const T = W === void 0 ? "Close modal" : W, l = X(null), J = X(null), [u, ee] = ne(!1);
58
+ const T = W === void 0 ? "Close modal" : W, l = X(null), J = X(null), [u, ee] = se(!1);
59
59
  let I, P;
60
60
  e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
61
61
  const t = J.current;
@@ -71,7 +71,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
71
71
  }
72
72
  }, P = [], e[17] = I, e[18] = P) : (I = e[17], P = e[18]), Y(I, P);
73
73
  let z;
74
- e[19] !== y || e[20] !== n ? (z = [y, n], e[19] = y, e[20] = n, e[21] = z) : z = e[21], Y(() => {
74
+ e[19] !== y || e[20] !== s ? (z = [y, s], e[19] = y, e[20] = s, e[21] = z) : z = e[21], Y(() => {
75
75
  const t = l.current;
76
76
  if (t)
77
77
  return t.addEventListener("close", K), y ? t.showModal() : t.close(), () => {
@@ -79,7 +79,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
79
79
  };
80
80
  }, z);
81
81
  const K = () => {
82
- n && n();
82
+ s && s();
83
83
  };
84
84
  let L;
85
85
  e[22] !== H ? (L = (t) => {
@@ -103,7 +103,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
103
103
  [o.contentWrapperNoFooter]: $
104
104
  }), e[29] = i, e[30] = $, e[31] = m) : m = e[31];
105
105
  let v;
106
- e[32] !== R || e[33] !== T || e[34] !== p ? (v = !R && /* @__PURE__ */ x(se, { ...p, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => te(), children: T }), e[32] = R, e[33] = T, e[34] = p, e[35] = v) : v = e[35];
106
+ e[32] !== R || e[33] !== T || e[34] !== p ? (v = !R && /* @__PURE__ */ x(ne, { ...p, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => te(), children: T }), e[32] = R, e[33] = T, e[34] = p, e[35] = v) : v = e[35];
107
107
  const q = !R;
108
108
  let w;
109
109
  e[36] !== u || e[37] !== q ? (w = F(o.header, {
@@ -131,7 +131,7 @@ import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae
131
131
  B
132
132
  ] }), e[50] = m, e[51] = v, e[52] = S, e[53] = N, e[54] = B, e[55] = C) : C = e[55];
133
133
  let j;
134
- return e[56] !== s || e[57] !== b || e[58] !== h || e[59] !== C ? (j = /* @__PURE__ */ x("dialog", { ...s, ref: l, className: b, onMouseDown: h, "aria-modal": "true", children: C }), e[56] = s, e[57] = b, e[58] = h, e[59] = C, e[60] = j) : j = e[60], j;
134
+ return e[56] !== n || e[57] !== b || e[58] !== h || e[59] !== C ? (j = /* @__PURE__ */ x("dialog", { ...n, ref: l, className: b, onMouseDown: h, "aria-modal": "true", children: C }), e[56] = n, e[57] = b, e[58] = h, e[59] = C, e[60] = j) : j = e[60], j;
135
135
  };
136
136
  export {
137
137
  ke as D,
@@ -4,8 +4,8 @@ import { c as m } from "./index.CEyLAtio.js";
4
4
  import "react";
5
5
  import { Asterisk as S } from "../asterisk.CR60hx8S.js";
6
6
  import { DSHeading as j } from "../heading.BXFBZhKv.js";
7
- import { DSSystemFeedback as M } from "../systemfeedback.BpKZEv4U.js";
8
- import { g as D } from "./helpers.CcqWV-wZ.js";
7
+ import { DSSystemFeedback as M } from "../systemfeedback.CLQCbTF6.js";
8
+ import { g as D } from "./helpers.BbWkXTr3.js";
9
9
  import "./index.CgTHIF3K.js";
10
10
  import '../assets/Fieldset.Cy5r0K7n.css';const x = "ds-fieldset_root_1omgq_1", E = "ds-fieldset_child-wrapper_1omgq_98", C = "ds-fieldset_legend_1omgq_105", P = "ds-fieldset_legend--utility--m_1omgq_109", T = "ds-fieldset_description_1omgq_121", U = "ds-fieldset_description--small_1omgq_135", W = "ds-fieldset_system-feedback_1omgq_139", s = {
11
11
  root: x,
@@ -0,0 +1,356 @@
1
+ "use client";
2
+ import { jsx as _, jsxs as me, Fragment as ve } from "react/jsx-runtime";
3
+ import { d as P } from "./index.CgTHIF3K.js";
4
+ import { c as w } from "./index.CEyLAtio.js";
5
+ import { useState as E, useEffect as ae, useContext as re, createContext as Be, useRef as te } from "react";
6
+ import { g as Y, c as T, p as ce } from "./helpers.BbWkXTr3.js";
7
+ import { u as De } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
8
+ import { DSLogo as He } from "../logo.C96KaG1P.js";
9
+ import '../assets/Header.DO34x-dO.css';const Pe = (d) => {
10
+ const e = P.c(3), t = 0, [r, n] = E("down");
11
+ let a, s;
12
+ return e[0] !== t ? (a = () => {
13
+ let l;
14
+ l = window.scrollY;
15
+ const c = () => {
16
+ const o = window.scrollY, m = o > l ? "down" : "up";
17
+ Math.abs(o - l) > t && (n(m), l = o);
18
+ };
19
+ return window.addEventListener("scroll", c, {
20
+ passive: !0
21
+ }), () => window.removeEventListener("scroll", c);
22
+ }, s = [t], e[0] = t, e[1] = a, e[2] = s) : (a = e[1], s = e[2]), ae(a, s), r;
23
+ }, ht = ["full", "main"], xe = ({
24
+ hasBrandArea: d,
25
+ hasPrimaryArea: e,
26
+ hasSecondaryArea: t
27
+ }) => {
28
+ if (d)
29
+ throw new Error(Y("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(Y("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(Y("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
34
+ }, Ee = "ds-top-bar_root_ryiho_1", Te = "ds-top-bar_root--sticky_ryiho_47", Ce = "ds-top-bar_root--fixed_ryiho_51", Fe = "ds-top-bar_content_ryiho_59", Oe = "ds-top-bar_content--variant-full_ryiho_78", Ve = "ds-top-bar_content--has-primary-area-and-secondary-area_ryiho_82", Re = "ds-top-bar_primary_ryiho_87", ke = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_ryiho_102", Me = "ds-top-bar_brand_ryiho_107", $e = "ds-top-bar_content--has-primary-area_ryiho_82", We = "ds-top-bar_content--has-primary-area--with-brand-add-on_ryiho_146", Le = "ds-top-bar_brand-add-on_ryiho_210", Ie = "ds-top-bar_brand-add-on--double_ryiho_231", Ye = "ds-top-bar_sub-title_ryiho_245", ze = "ds-top-bar_secondary_ryiho_271", qe = "ds-top-bar_logo_ryiho_280", Ue = "ds-top-bar_logo--reduced_ryiho_290", v = {
35
+ root: Ee,
36
+ rootSticky: Te,
37
+ rootFixed: Ce,
38
+ content: Fe,
39
+ contentVariantFull: Oe,
40
+ contentHasPrimaryAreaAndSecondaryArea: Ve,
41
+ primary: Re,
42
+ contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: ke,
43
+ brand: Me,
44
+ contentHasPrimaryArea: $e,
45
+ contentHasPrimaryAreaWithBrandAddOn: We,
46
+ brandAddOn: Le,
47
+ brandAddOnDouble: Ie,
48
+ subTitle: Ye,
49
+ secondary: ze,
50
+ logo: qe,
51
+ logoReduced: Ue
52
+ }, je = ({
53
+ hasBrandArea: d,
54
+ hasPrimaryArea: e,
55
+ hasSecondaryArea: t
56
+ }) => {
57
+ if (!d)
58
+ throw new Error(Y("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
59
+ if (!e && t)
60
+ throw new Error(Y("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
+ }, pe = (d) => d == null || typeof d == "object" && !Array.isArray(d) && d !== null && Object.keys(d).length === 0, ft = ["double", "single"], $ = (d) => {
62
+ const e = P.c(28);
63
+ let t, r, n, a;
64
+ e[0] !== d ? ({
65
+ children: t,
66
+ className: r,
67
+ rootClassName: a,
68
+ ...n
69
+ } = d, e[0] = d, 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: l,
73
+ isMobile: c,
74
+ topBarAreaRef: o,
75
+ isStickyMainNavigationVisible: m,
76
+ hasBrandAddOn: h
77
+ } = re(z);
78
+ let A, y;
79
+ if (e[5] !== t || e[6] !== r || e[7] !== h || e[8] !== l || e[9] !== c || e[10] !== m || e[11] !== a || e[12] !== s) {
80
+ const x = T(t, he), p = T(t, fe), i = T(t, Ae);
81
+ process.env.NODE_ENV !== "production" && je({
82
+ hasBrandArea: x,
83
+ hasPrimaryArea: p,
84
+ hasSecondaryArea: i
85
+ });
86
+ let b;
87
+ e[15] !== l || e[16] !== c || e[17] !== m || e[18] !== a ? (b = w(v.root, a, l ? {
88
+ [v.rootSticky]: !c && m,
89
+ [v.rootFixed]: !c && !m
90
+ } : {}), e[15] = l, e[16] = c, e[17] = m, e[18] = a, e[19] = b) : b = e[19], A = b, y = w(v.content, r, {
91
+ [v.contentHasPrimaryArea]: p && !h && !i,
92
+ [v.contentHasPrimaryAreaWithBrandAddOn]: p && h && !i,
93
+ [v.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: h && p && i,
94
+ [v.contentHasPrimaryAreaAndSecondaryArea]: p && i && !h,
95
+ [v.contentVariantFull]: s === "full"
96
+ }), e[5] = t, e[6] = r, e[7] = h, e[8] = l, e[9] = c, e[10] = m, e[11] = a, e[12] = s, e[13] = A, e[14] = y;
97
+ } else
98
+ A = e[13], y = e[14];
99
+ const u = y;
100
+ let f;
101
+ e[20] !== t || e[21] !== u || e[22] !== n ? (f = /* @__PURE__ */ _("section", { className: u, ...n, children: t }), e[20] = t, e[21] = u, e[22] = n, e[23] = f) : f = e[23];
102
+ let g;
103
+ return e[24] !== A || e[25] !== f || e[26] !== o ? (g = /* @__PURE__ */ _("div", { className: A, ref: o, children: f }), e[24] = A, e[25] = f, e[26] = o, e[27] = g) : g = e[27], g;
104
+ }, he = (d) => {
105
+ const e = P.c(26), {
106
+ children: t,
107
+ className: r
108
+ } = d, {
109
+ logoProps: n,
110
+ brandAddOnProps: a,
111
+ setHasBrandAddOn: s
112
+ } = re(z);
113
+ let l;
114
+ e[0] !== n ? (l = n || {}, e[0] = n, e[1] = l) : l = e[1];
115
+ const {
116
+ aria: c,
117
+ logo: o,
118
+ href: m,
119
+ target: h
120
+ } = l, A = o === void 0 ? "main" : o, y = m === void 0 ? "/" : m, u = h === void 0 ? "_self" : h;
121
+ let f;
122
+ e[2] !== a || e[3] !== t || e[4] !== s ? (f = () => {
123
+ t || !pe(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 g;
126
+ e[6] !== a || e[7] !== t ? (g = [t, a], e[6] = a, e[7] = t, e[8] = g) : g = e[8], ae(f, g);
127
+ let x;
128
+ e[9] !== A ? (x = w(v.logo, {
129
+ [v.logoReduced]: A.includes("reduced")
130
+ }), e[9] = A, e[10] = x) : x = e[10];
131
+ const p = x;
132
+ let i;
133
+ e[11] !== r ? (i = w(v.brand, r), e[11] = r, e[12] = i) : i = e[12];
134
+ let b;
135
+ e[13] !== c || e[14] !== y || e[15] !== A || e[16] !== p || e[17] !== u ? (b = /* @__PURE__ */ _(He, { className: p, aria: c, logo: A, href: y, target: u }), e[13] = c, e[14] = y, e[15] = A, e[16] = p, e[17] = u, e[18] = b) : b = e[18];
136
+ let B;
137
+ e[19] !== a ? (B = pe(a) ? void 0 : /* @__PURE__ */ _(ge, { ...a }), e[19] = a, e[20] = B) : B = e[20];
138
+ let D;
139
+ return e[21] !== t || e[22] !== B || e[23] !== i || e[24] !== b ? (D = /* @__PURE__ */ me("div", { className: i, children: [
140
+ b,
141
+ B,
142
+ t
143
+ ] }), e[21] = t, e[22] = B, e[23] = i, e[24] = b, e[25] = D) : D = e[25], D;
144
+ };
145
+ he.displayName = "DSTopBar.BrandArea";
146
+ const ge = (d) => {
147
+ const e = P.c(10), {
148
+ children: t,
149
+ className: r,
150
+ subTitle: n,
151
+ variant: a
152
+ } = d, s = a === void 0 ? "single" : a, l = s === "double";
153
+ let c;
154
+ e[0] !== r || e[1] !== l ? (c = w(v.brandAddOn, r, {
155
+ [v.brandAddOnDouble]: l
156
+ }), e[0] = r, e[1] = l, e[2] = c) : c = e[2];
157
+ const o = c;
158
+ let m;
159
+ e[3] !== t || e[4] !== n || e[5] !== s ? (m = s === "single" ? t : /* @__PURE__ */ me(ve, { children: [
160
+ /* @__PURE__ */ _("span", { children: t }),
161
+ n && /* @__PURE__ */ _("span", { className: v.subTitle, children: n })
162
+ ] }), e[3] = t, e[4] = n, e[5] = s, e[6] = m) : m = e[6];
163
+ let h;
164
+ return e[7] !== o || e[8] !== m ? (h = /* @__PURE__ */ _("span", { className: o, children: m }), e[7] = o, e[8] = m, e[9] = h) : h = e[9], h;
165
+ };
166
+ ge.displayName = "DSTopBar.BrandAddOn";
167
+ const fe = (d) => {
168
+ const e = P.c(5), {
169
+ children: t,
170
+ className: r
171
+ } = d;
172
+ let n;
173
+ e[0] !== r ? (n = w(v.primary, r), e[0] = r, e[1] = n) : n = e[1];
174
+ let a;
175
+ return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
176
+ };
177
+ fe.displayName = "DSTopBar.PrimaryArea";
178
+ const Ae = (d) => {
179
+ const e = P.c(5), {
180
+ children: t,
181
+ className: r
182
+ } = d;
183
+ let n;
184
+ e[0] !== r ? (n = w(v.secondary, r), e[0] = r, e[1] = n) : n = e[1];
185
+ let a;
186
+ return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
187
+ };
188
+ Ae.displayName = "DSTopBar.SecondaryArea";
189
+ $.BrandArea = he;
190
+ $.PrimaryArea = fe;
191
+ $.SecondaryArea = Ae;
192
+ const Ge = "ds-header_root_g2mvw_1", Je = "ds-header_root--sticky_g2mvw_4", Ke = "ds-header_root--hidden_g2mvw_9", Qe = "ds-header_root--fixed_g2mvw_20", Xe = "ds-header_main-navigation-area_g2mvw_36", Ze = "ds-header_main-navigation-area--fixed_g2mvw_88", et = "ds-header_main-navigation-area--fixed--visible_g2mvw_103", tt = "ds-header_main-navigation-content_g2mvw_108", at = "ds-header_main-navigation-content--variant-full_g2mvw_112", rt = "ds-header_header-placeholder_g2mvw_117", nt = "ds-header_header-placeholder--with-banner_g2mvw_120", S = {
193
+ root: Ge,
194
+ rootSticky: Je,
195
+ rootHidden: Ke,
196
+ rootFixed: Qe,
197
+ mainNavigationArea: Xe,
198
+ mainNavigationAreaFixed: Ze,
199
+ mainNavigationAreaFixedVisible: et,
200
+ mainNavigationContent: tt,
201
+ mainNavigationContentVariantFull: at,
202
+ headerPlaceholder: rt,
203
+ headerPlaceholderWithBanner: nt
204
+ }, z = Be({
205
+ variant: "main"
206
+ }), ne = (d) => {
207
+ const e = P.c(58);
208
+ let t, r, n, a, s, l, c;
209
+ e[0] !== d ? ({
210
+ children: r,
211
+ brandAddOnProps: t,
212
+ className: n,
213
+ isHeaderSticky: l,
214
+ variant: c,
215
+ logoProps: a,
216
+ ...s
217
+ } = d, e[0] = d, e[1] = t, e[2] = r, e[3] = n, e[4] = a, e[5] = s, e[6] = l, e[7] = c) : (t = e[1], r = e[2], n = e[3], a = e[4], s = e[5], l = e[6], c = e[7]);
218
+ const o = l === void 0 ? !1 : l, m = c === void 0 ? "main" : c, [h, A] = E(!1);
219
+ let y;
220
+ e[8] !== r ? (y = T(r, ne.BannerArea, !0), e[8] = r, e[9] = y) : y = e[9];
221
+ const u = y, f = T(r, $.BrandArea), g = T(r, $.PrimaryArea), x = T(r, $.SecondaryArea);
222
+ process.env.NODE_ENV !== "production" && xe({
223
+ hasBrandArea: f,
224
+ hasPrimaryArea: g,
225
+ hasSecondaryArea: x
226
+ });
227
+ const p = Pe(), [i, b] = E(!1), B = te(null), D = te(null), oe = te(null), ye = te(null), [ie, be] = E(!1), [C, Se] = E(!1), [H, Ne] = E(!0), [se, we] = E(!1);
228
+ let q, U;
229
+ e[10] !== o ? (q = () => {
230
+ if (o) {
231
+ const N = () => {
232
+ b(window.innerWidth < 1024);
233
+ };
234
+ return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
235
+ }
236
+ }, U = [o], e[10] = o, e[11] = q, e[12] = U) : (q = e[11], U = e[12]), ae(q, U);
237
+ let j, G;
238
+ e[13] !== o ? (j = () => {
239
+ if (o) {
240
+ const N = () => {
241
+ var L, I, ee;
242
+ const Z = ((L = B.current) == null ? void 0 : L.offsetHeight) ?? 0, le = ((I = D.current) == null ? void 0 : I.offsetHeight) ?? 0, M = ((ee = oe.current) == null ? void 0 : ee.offsetHeight) ?? 0, W = document.documentElement;
243
+ W.style.setProperty("--ds-banner-height", `${ce(Z)}rem`), W.style.setProperty("--ds-header-height", `${ce(le)}rem`), W.style.setProperty("--ds-top-bar-height", `${ce(M)}rem`);
244
+ };
245
+ return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
246
+ }
247
+ }, G = [o], e[13] = o, e[14] = j, e[15] = G) : (j = e[14], G = e[15]), De(j, G);
248
+ let J;
249
+ e[16] !== o || e[17] !== i || e[18] !== H || e[19] !== p ? (J = () => {
250
+ if (o) {
251
+ const N = () => {
252
+ const M = D.current, W = !!M && window.scrollY <= M.offsetHeight;
253
+ be(W);
254
+ const L = ye.current, I = oe.current, ee = !!I && !!L && L.getBoundingClientRect().bottom > I.getBoundingClientRect().bottom;
255
+ Ne(ee && !!M && window.scrollY <= M.offsetHeight);
256
+ };
257
+ window.addEventListener("scroll", N, {
258
+ passive: !0
259
+ }), N();
260
+ const Z = D.current, le = !!Z && Z.getBoundingClientRect().bottom > 0;
261
+ return i && Se(p === "up" && !le), i || we(p === "up" && !H), () => {
262
+ window.removeEventListener("scroll", N);
263
+ };
264
+ }
265
+ }, e[16] = o, e[17] = i, e[18] = H, e[19] = p, e[20] = J) : J = e[20];
266
+ let K;
267
+ e[21] !== o || e[22] !== i || e[23] !== p ? (K = [o, i, p], e[21] = o, e[22] = i, e[23] = p, e[24] = K) : K = e[24], ae(J, K);
268
+ let Q;
269
+ e[25] !== n || e[26] !== C || e[27] !== o || e[28] !== ie || e[29] !== i ? (Q = w(S.root, n, o ? {
270
+ [S.rootSticky]: i,
271
+ [S.rootHidden]: i && !ie,
272
+ [S.rootFixed]: i && C
273
+ } : {}), e[25] = n, e[26] = C, e[27] = o, e[28] = ie, e[29] = i, e[30] = Q) : Q = e[30];
274
+ const de = Q;
275
+ let F;
276
+ e[31] !== t || e[32] !== h || e[33] !== se || e[34] !== o || e[35] !== i || e[36] !== H || e[37] !== a || e[38] !== m ? (F = {
277
+ variant: m,
278
+ bannerAreaRef: B,
279
+ brandAddOnProps: t,
280
+ hasBrandAddOn: h,
281
+ setHasBrandAddOn: A,
282
+ isFixedMainNavigation: se,
283
+ isHeaderSticky: o,
284
+ isMobile: i,
285
+ isStickyMainNavigationVisible: H,
286
+ mainNavigationAreaRef: ye,
287
+ topBarAreaRef: oe,
288
+ logoProps: a
289
+ }, e[31] = t, e[32] = h, e[33] = se, e[34] = o, e[35] = i, e[36] = H, e[37] = a, e[38] = m, e[39] = F) : F = e[39];
290
+ let O;
291
+ e[40] !== r || e[41] !== F ? (O = /* @__PURE__ */ _(z.Provider, { value: F, children: r }), e[40] = r, e[41] = F, e[42] = O) : O = e[42];
292
+ let V;
293
+ e[43] !== s || e[44] !== de || e[45] !== O ? (V = /* @__PURE__ */ _("header", { className: de, ...s, ref: D, children: O }), e[43] = s, e[44] = de, e[45] = O, e[46] = V) : V = e[46];
294
+ let R;
295
+ e[47] !== C || e[48] !== i ? (R = i && C && /* @__PURE__ */ _("div", { className: S.headerPlaceholder }), e[47] = C, e[48] = i, e[49] = R) : R = e[49];
296
+ let k;
297
+ e[50] !== u || e[51] !== i || e[52] !== H ? (k = !i && !H && /* @__PURE__ */ _("div", { className: u ? S.headerPlaceholderWithBanner : S.headerPlaceholder }), e[50] = u, e[51] = i, e[52] = H, e[53] = k) : k = e[53];
298
+ let X;
299
+ return e[54] !== V || e[55] !== R || e[56] !== k ? (X = /* @__PURE__ */ me(ve, { children: [
300
+ V,
301
+ R,
302
+ k
303
+ ] }), e[54] = V, e[55] = R, e[56] = k, e[57] = X) : X = e[57], X;
304
+ }, _e = (d) => {
305
+ const e = P.c(4), {
306
+ children: t,
307
+ className: r
308
+ } = d, {
309
+ bannerAreaRef: n
310
+ } = re(z);
311
+ let a;
312
+ return e[0] !== n || e[1] !== t || e[2] !== r ? (a = /* @__PURE__ */ _("div", { ref: n, className: r, children: t }), e[0] = n, e[1] = t, e[2] = r, e[3] = a) : a = e[3], a;
313
+ };
314
+ _e.displayName = "DSHeader.BannerArea";
315
+ const ue = (d) => {
316
+ const e = P.c(15), {
317
+ children: t,
318
+ className: r
319
+ } = d, {
320
+ variant: n,
321
+ isFixedMainNavigation: a,
322
+ isHeaderSticky: s,
323
+ isMobile: l,
324
+ isStickyMainNavigationVisible: c,
325
+ mainNavigationAreaRef: o
326
+ } = re(z);
327
+ let m;
328
+ e[0] !== r || e[1] !== a || e[2] !== s || e[3] !== l || e[4] !== c ? (m = w(S.mainNavigationArea, r, s ? {
329
+ [S.mainNavigationAreaFixed]: !l && !c,
330
+ [S.mainNavigationAreaFixedVisible]: !l && a
331
+ } : {}), e[0] = r, e[1] = a, e[2] = s, e[3] = l, e[4] = c, e[5] = m) : m = e[5];
332
+ const h = m, A = n === "full";
333
+ let y;
334
+ e[6] !== A ? (y = w(S.mainNavigationContent, {
335
+ [S.mainNavigationContentVariantFull]: A
336
+ }), e[6] = A, e[7] = y) : y = e[7];
337
+ const u = y;
338
+ let f;
339
+ e[8] !== t || e[9] !== u ? (f = /* @__PURE__ */ _("div", { className: u, children: t }), e[8] = t, e[9] = u, e[10] = f) : f = e[10];
340
+ let g;
341
+ return e[11] !== o || e[12] !== h || e[13] !== f ? (g = /* @__PURE__ */ _("div", { className: h, ref: o, children: f }), e[11] = o, e[12] = h, e[13] = f, e[14] = g) : g = e[14], g;
342
+ };
343
+ ue.displayName = "DSHeader.MainNavigationArea";
344
+ ne.BannerArea = _e;
345
+ ne.MainNavigationArea = ue;
346
+ ne.displayName = "DSHeader";
347
+ export {
348
+ ft as B,
349
+ z as D,
350
+ ht as H,
351
+ ne as a,
352
+ $ as b,
353
+ je as c,
354
+ pe as i,
355
+ xe as v
356
+ };