@stihl-design-system/components 1.0.0-RC.31 → 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 +6 -0
  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.Y-YzUHhF.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.D_1YqlWl.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
@@ -3,7 +3,7 @@ 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 { D as te } from "./Button.B7xF1E19.js";
6
+ import { D as te } from "./Button.Cf1CKq8N.js";
7
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,
@@ -3,7 +3,7 @@ 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
5
  import { useRef as X, useState as se, useEffect as Y } from "react";
6
- import { D as ne } from "./Button.B7xF1E19.js";
6
+ import { D as ne } from "./Button.Cf1CKq8N.js";
7
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,
@@ -4,7 +4,7 @@ import { c as m } from "./index.CEyLAtio.js";
4
4
  import "react";
5
5
  import { Asterisk as y } from "../asterisk.CR60hx8S.js";
6
6
  import { DSHeading as M } from "../heading.BXFBZhKv.js";
7
- import { D as x } from "./SystemFeedback.B9f67mjJ.js";
7
+ import { D as x } from "./SystemFeedback.CyGbUCzT.js";
8
8
  import { g as D } from "./helpers.BbWkXTr3.js";
9
9
  import "./index.CgTHIF3K.js";
10
10
  import '../assets/Fieldset.CW9dBvAo.css';const E = "ds-fieldset_root_dtiam_1", q = "ds-fieldset_child-wrapper_dtiam_98", C = "ds-fieldset_legend_dtiam_105", P = "ds-fieldset_legend--utility--m_dtiam_109", T = "ds-fieldset_description_dtiam_121", U = "ds-fieldset_description--small_dtiam_135", W = "ds-fieldset_system-feedback_dtiam_139", s = {
@@ -0,0 +1,377 @@
1
+ "use client";
2
+ import { jsx as y, jsxs as Ae, Fragment as xe } 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 { Logo100Years as Te } from "../logo100years.BcB6_c-o.js";
10
+ import '../assets/Header.CNqtWTxB.css';const Ee = (l) => {
11
+ const e = T.c(3), t = 0, [n, r] = V("down");
12
+ let a, s;
13
+ return e[0] !== t ? (a = () => {
14
+ let c;
15
+ c = window.scrollY;
16
+ const d = () => {
17
+ const o = window.scrollY, h = o > c ? "down" : "up";
18
+ Math.abs(o - c) > t && (r(h), c = o);
19
+ };
20
+ return window.addEventListener("scroll", d, {
21
+ passive: !0
22
+ }), () => window.removeEventListener("scroll", d);
23
+ }, s = [t], e[0] = t, e[1] = a, e[2] = s) : (a = e[1], s = e[2]), ne(a, s), n;
24
+ }, ut = ["full", "main"], Fe = ({
25
+ hasBrandArea: l,
26
+ hasPrimaryArea: e,
27
+ hasSecondaryArea: t
28
+ }) => {
29
+ if (l)
30
+ throw new Error(j("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
31
+ if (e)
32
+ throw new Error(j("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
33
+ if (t)
34
+ throw new Error(j("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
35
+ }, Ce = "ds-top-bar_root_q6oxc_1", Oe = "ds-top-bar_root--sticky_q6oxc_49", Ve = "ds-top-bar_root--fixed_q6oxc_53", Re = "ds-top-bar_content_q6oxc_62", Me = "ds-top-bar_content--variant-full_q6oxc_81", qe = "ds-top-bar_content--has-primary-area-and-secondary-area_q6oxc_85", ke = "ds-top-bar_primary_q6oxc_90", $e = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_q6oxc_105", We = "ds-top-bar_brand_q6oxc_110", Ie = "ds-top-bar_content--has-primary-area_q6oxc_85", Le = "ds-top-bar_content--has-primary-area--with-brand-add-on_q6oxc_149", Ye = "ds-top-bar_brand-add-on_q6oxc_213", ze = "ds-top-bar_brand-add-on--double_q6oxc_234", Ue = "ds-top-bar_sub-title_q6oxc_248", je = "ds-top-bar_secondary_q6oxc_274", Ge = "ds-top-bar_logo_q6oxc_283", Je = "ds-top-bar_logo--reduced_q6oxc_293", _ = {
36
+ root: Ce,
37
+ rootSticky: Oe,
38
+ rootFixed: Ve,
39
+ content: Re,
40
+ contentVariantFull: Me,
41
+ contentHasPrimaryAreaAndSecondaryArea: qe,
42
+ primary: ke,
43
+ contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: $e,
44
+ brand: We,
45
+ contentHasPrimaryArea: Ie,
46
+ contentHasPrimaryAreaWithBrandAddOn: Le,
47
+ brandAddOn: Ye,
48
+ brandAddOnDouble: ze,
49
+ subTitle: Ue,
50
+ secondary: je,
51
+ logo: Ge,
52
+ logoReduced: Je
53
+ }, Ke = ({
54
+ hasBrandArea: l,
55
+ hasPrimaryArea: e,
56
+ hasSecondaryArea: t
57
+ }) => {
58
+ if (!l)
59
+ throw new Error(j("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
60
+ if (!e && t)
61
+ 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>."));
62
+ }, ve = (l) => l == null || typeof l == "object" && !Array.isArray(l) && l !== null && Object.keys(l).length === 0, _t = ["100years"], L = (l) => {
63
+ const e = T.c(28);
64
+ let t, n, r, a;
65
+ e[0] !== l ? ({
66
+ children: t,
67
+ className: n,
68
+ rootClassName: a,
69
+ ...r
70
+ } = l, e[0] = l, e[1] = t, e[2] = n, e[3] = r, e[4] = a) : (t = e[1], n = e[2], r = e[3], a = e[4]);
71
+ const {
72
+ variant: s,
73
+ isHeaderSticky: c,
74
+ isMobile: d,
75
+ topBarAreaRef: o,
76
+ isStickyMainNavigationVisible: h,
77
+ hasBrandAddOn: m
78
+ } = oe(G);
79
+ let A, p;
80
+ if (e[5] !== t || e[6] !== n || e[7] !== m || e[8] !== c || e[9] !== d || e[10] !== h || e[11] !== a || e[12] !== s) {
81
+ const E = R(t, pe), u = R(t, ue), i = R(t, _e);
82
+ process.env.NODE_ENV !== "production" && Ke({
83
+ hasBrandArea: E,
84
+ hasPrimaryArea: u,
85
+ hasSecondaryArea: i
86
+ });
87
+ let b;
88
+ e[15] !== c || e[16] !== d || e[17] !== h || e[18] !== a ? (b = x(_.root, a, c ? {
89
+ [_.rootSticky]: !d && h,
90
+ [_.rootFixed]: !d && !h
91
+ } : {}), e[15] = c, e[16] = d, e[17] = h, e[18] = a, e[19] = b) : b = e[19], A = b, p = x(_.content, n, {
92
+ [_.contentHasPrimaryArea]: u && !m && !i,
93
+ [_.contentHasPrimaryAreaWithBrandAddOn]: u && m && !i,
94
+ [_.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: m && u && i,
95
+ [_.contentHasPrimaryAreaAndSecondaryArea]: u && i && !m,
96
+ [_.contentVariantFull]: s === "full"
97
+ }), e[5] = t, e[6] = n, e[7] = m, e[8] = c, e[9] = d, e[10] = h, e[11] = a, e[12] = s, e[13] = A, e[14] = p;
98
+ } else
99
+ A = e[13], p = e[14];
100
+ const g = p;
101
+ let f;
102
+ e[20] !== t || e[21] !== g || e[22] !== r ? (f = /* @__PURE__ */ y("section", { className: g, ...r, children: t }), e[20] = t, e[21] = g, e[22] = r, e[23] = f) : f = e[23];
103
+ let v;
104
+ return e[24] !== A || e[25] !== f || e[26] !== o ? (v = /* @__PURE__ */ y("div", { className: A, ref: o, children: f }), e[24] = A, e[25] = f, e[26] = o, e[27] = v) : v = e[27], v;
105
+ }, pe = (l) => {
106
+ const e = T.c(26), {
107
+ children: t,
108
+ className: n
109
+ } = l, {
110
+ logoProps: r,
111
+ brandAddOnProps: a,
112
+ setHasBrandAddOn: s
113
+ } = oe(G);
114
+ let c;
115
+ e[0] !== r ? (c = r || {}, e[0] = r, e[1] = c) : c = e[1];
116
+ const {
117
+ aria: d,
118
+ logo: o,
119
+ href: h,
120
+ target: m
121
+ } = c, A = o === void 0 ? "main" : o, p = h === void 0 ? "/" : h, g = m === void 0 ? "_self" : m;
122
+ let f;
123
+ e[2] !== a || e[3] !== t || e[4] !== s ? (f = () => {
124
+ t || !ve(a) ? s == null || s(!0) : s == null || s(!1);
125
+ }, e[2] = a, e[3] = t, e[4] = s, e[5] = f) : f = e[5];
126
+ let v;
127
+ e[6] !== a || e[7] !== t ? (v = [t, a], e[6] = a, e[7] = t, e[8] = v) : v = e[8], ne(f, v);
128
+ let E;
129
+ e[9] !== A ? (E = x(_.logo, {
130
+ [_.logoReduced]: A.includes("reduced")
131
+ }), e[9] = A, e[10] = E) : E = e[10];
132
+ const u = E;
133
+ let i;
134
+ e[11] !== n ? (i = x(_.brand, n), e[11] = n, e[12] = i) : i = e[12];
135
+ let b;
136
+ e[13] !== d || e[14] !== p || e[15] !== A || e[16] !== u || e[17] !== g ? (b = /* @__PURE__ */ y(Pe, { className: u, aria: d, logo: A, href: p, target: g }), e[13] = d, e[14] = p, e[15] = A, e[16] = u, e[17] = g, e[18] = b) : b = e[18];
137
+ let S;
138
+ e[19] !== a ? (S = ve(a) ? void 0 : /* @__PURE__ */ y(ge, { ...a }), e[19] = a, e[20] = S) : S = e[20];
139
+ let D;
140
+ return e[21] !== t || e[22] !== S || e[23] !== i || e[24] !== b ? (D = /* @__PURE__ */ Ae("div", { className: i, children: [
141
+ b,
142
+ S,
143
+ t
144
+ ] }), e[21] = t, e[22] = S, e[23] = i, e[24] = b, e[25] = D) : D = e[25], D;
145
+ };
146
+ pe.displayName = "DSTopBar.BrandArea";
147
+ const ge = (l) => {
148
+ const e = T.c(15), {
149
+ children: t,
150
+ className: n,
151
+ subTitle: r,
152
+ variant: a
153
+ } = l;
154
+ let s;
155
+ e[0] !== n || e[1] !== r ? (s = x(_.brandAddOn, n, {
156
+ [_.brandAddOnDouble]: r
157
+ }), e[0] = n, e[1] = r, e[2] = s) : s = e[2];
158
+ const c = s;
159
+ if (r) {
160
+ let o;
161
+ e[3] !== t ? (o = /* @__PURE__ */ y("span", { children: t }), e[3] = t, e[4] = o) : o = e[4];
162
+ let h;
163
+ e[5] !== r ? (h = r && /* @__PURE__ */ y("span", { className: _.subTitle, children: r }), e[5] = r, e[6] = h) : h = e[6];
164
+ let m;
165
+ return e[7] !== c || e[8] !== o || e[9] !== h ? (m = /* @__PURE__ */ Ae("div", { className: c, children: [
166
+ o,
167
+ h
168
+ ] }), e[7] = c, e[8] = o, e[9] = h, e[10] = m) : m = e[10], m;
169
+ }
170
+ if (a === "100years") {
171
+ let o;
172
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ y(Te, {}), e[11] = o) : o = e[11], o;
173
+ }
174
+ let d;
175
+ return e[12] !== c || e[13] !== t ? (d = /* @__PURE__ */ y("div", { className: c, children: t }), e[12] = c, e[13] = t, e[14] = d) : d = e[14], d;
176
+ };
177
+ ge.displayName = "DSTopBar.BrandAddOn";
178
+ const ue = (l) => {
179
+ const e = T.c(5), {
180
+ children: t,
181
+ className: n
182
+ } = l;
183
+ let r;
184
+ e[0] !== n ? (r = x(_.primary, n), e[0] = n, e[1] = r) : r = e[1];
185
+ let a;
186
+ return e[2] !== t || e[3] !== r ? (a = /* @__PURE__ */ y("div", { className: r, children: t }), e[2] = t, e[3] = r, e[4] = a) : a = e[4], a;
187
+ };
188
+ ue.displayName = "DSTopBar.PrimaryArea";
189
+ const _e = (l) => {
190
+ const e = T.c(5), {
191
+ children: t,
192
+ className: n
193
+ } = l;
194
+ let r;
195
+ e[0] !== n ? (r = x(_.secondary, n), e[0] = n, e[1] = r) : r = e[1];
196
+ let a;
197
+ return e[2] !== t || e[3] !== r ? (a = /* @__PURE__ */ y("div", { className: r, children: t }), e[2] = t, e[3] = r, e[4] = a) : a = e[4], a;
198
+ };
199
+ _e.displayName = "DSTopBar.SecondaryArea";
200
+ L.BrandArea = pe;
201
+ L.PrimaryArea = ue;
202
+ L.SecondaryArea = _e;
203
+ const Qe = "ds-header_root_c5fh4_1", Xe = "ds-header_root--sticky_c5fh4_4", Ze = "ds-header_root--hidden_c5fh4_9", et = "ds-header_root--fixed_c5fh4_20", tt = "ds-header_main-navigation-area_c5fh4_37", at = "ds-header_main-navigation-area--fixed_c5fh4_90", rt = "ds-header_main-navigation-area--fixed--visible_c5fh4_105", nt = "ds-header_main-navigation-content_c5fh4_111", ot = "ds-header_main-navigation-content--variant-full_c5fh4_115", it = "ds-header_header-placeholder_c5fh4_120", st = "ds-header_header-placeholder--with-banner_c5fh4_123", N = {
204
+ root: Qe,
205
+ rootSticky: Xe,
206
+ rootHidden: Ze,
207
+ rootFixed: et,
208
+ mainNavigationArea: tt,
209
+ mainNavigationAreaFixed: at,
210
+ mainNavigationAreaFixedVisible: rt,
211
+ mainNavigationContent: nt,
212
+ mainNavigationContentVariantFull: ot,
213
+ headerPlaceholder: it,
214
+ headerPlaceholderWithBanner: st
215
+ }, G = De({
216
+ variant: "main"
217
+ }), ie = (l) => {
218
+ const e = T.c(57);
219
+ let t, n, r, a, s, c, d;
220
+ e[0] !== l ? ({
221
+ children: n,
222
+ brandAddOnProps: t,
223
+ className: r,
224
+ isHeaderSticky: c,
225
+ variant: d,
226
+ logoProps: a,
227
+ ...s
228
+ } = l, e[0] = l, e[1] = t, e[2] = n, e[3] = r, e[4] = a, e[5] = s, e[6] = c, e[7] = d) : (t = e[1], n = e[2], r = e[3], a = e[4], s = e[5], c = e[6], d = e[7]);
229
+ const o = c === void 0 ? !1 : c, h = d === void 0 ? "main" : d, [m, A] = V(!1);
230
+ let p;
231
+ e[8] !== n ? (p = R(n, ie.BannerArea, !0), e[8] = n, e[9] = p) : p = e[9];
232
+ const g = p, f = R(n, L.BrandArea), v = R(n, L.PrimaryArea), E = R(n, L.SecondaryArea);
233
+ process.env.NODE_ENV !== "production" && Fe({
234
+ hasBrandArea: f,
235
+ hasPrimaryArea: v,
236
+ hasSecondaryArea: E
237
+ });
238
+ const u = Ee(), [i, b] = V(!1), S = U(null), D = U(null), se = U(null), ce = U(null), [le, Ne] = V(!1), [M, Be] = V(!1), [w, ye] = V(!0), [de, we] = V(!1), he = U(i);
239
+ let J, K;
240
+ e[10] !== o ? (J = () => {
241
+ if (o) {
242
+ const B = () => {
243
+ b((H) => (he.current = H, window.innerWidth < 1024));
244
+ };
245
+ return B(), window.addEventListener("resize", B), () => window.removeEventListener("resize", B);
246
+ }
247
+ }, K = [o], e[10] = o, e[11] = J, e[12] = K) : (J = e[11], K = e[12]), ne(J, K);
248
+ let Q, X;
249
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (Q = () => {
250
+ const B = () => {
251
+ var F, O, re;
252
+ const H = document.documentElement, Y = ((F = S.current) == null ? void 0 : F.offsetHeight) || 0, P = ((O = se.current) == null ? void 0 : O.offsetHeight) || 0;
253
+ let C;
254
+ if (!ce.current)
255
+ C = Y + P;
256
+ else {
257
+ const z = (re = D.current) == null ? void 0 : re.offsetHeight;
258
+ !z || z === Y ? C = parseInt(H.style.getPropertyValue("--ds-header-height").replace("rem", "")) * 16 || 0 : C = z;
259
+ }
260
+ 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`);
261
+ };
262
+ return B(), window.addEventListener("resize", B), () => window.removeEventListener("resize", B);
263
+ }, X = [], e[13] = Q, e[14] = X) : (Q = e[13], X = e[14]), He(Q, X);
264
+ let Z;
265
+ e[15] !== o || e[16] !== i || e[17] !== w || e[18] !== u ? (Z = () => {
266
+ if (o) {
267
+ const B = () => {
268
+ const P = D.current, C = !!P && window.scrollY <= P.offsetHeight;
269
+ Ne(C);
270
+ const F = ce.current, O = se.current;
271
+ if (!i && he.current && !w) {
272
+ ye(C && !!P && window.scrollY <= P.offsetHeight);
273
+ return;
274
+ }
275
+ 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;
276
+ ye(F ? re && !!P && window.scrollY <= P.offsetHeight : !z);
277
+ };
278
+ window.addEventListener("scroll", B, {
279
+ passive: !0
280
+ }), B();
281
+ const H = D.current, Y = !!H && H.getBoundingClientRect().bottom > 0;
282
+ return i && Be(u === "up" && !Y), i || we(u === "up" && !w), () => {
283
+ window.removeEventListener("scroll", B);
284
+ };
285
+ }
286
+ }, e[15] = o, e[16] = i, e[17] = w, e[18] = u, e[19] = Z) : Z = e[19];
287
+ let ee;
288
+ e[20] !== o || e[21] !== i || e[22] !== u ? (ee = [o, i, he, u], e[20] = o, e[21] = i, e[22] = u, e[23] = ee) : ee = e[23], ne(Z, ee);
289
+ let te;
290
+ e[24] !== r || e[25] !== M || e[26] !== o || e[27] !== le || e[28] !== i ? (te = x(N.root, r, o ? {
291
+ [N.rootSticky]: i,
292
+ [N.rootHidden]: i && !le,
293
+ [N.rootFixed]: i && M
294
+ } : {}), e[24] = r, e[25] = M, e[26] = o, e[27] = le, e[28] = i, e[29] = te) : te = e[29];
295
+ const me = te;
296
+ let q;
297
+ e[30] !== t || e[31] !== m || e[32] !== de || e[33] !== o || e[34] !== i || e[35] !== w || e[36] !== a || e[37] !== h ? (q = {
298
+ variant: h,
299
+ bannerAreaRef: S,
300
+ brandAddOnProps: t,
301
+ hasBrandAddOn: m,
302
+ setHasBrandAddOn: A,
303
+ isFixedMainNavigation: de,
304
+ isHeaderSticky: o,
305
+ isMobile: i,
306
+ isStickyMainNavigationVisible: w,
307
+ mainNavigationAreaRef: ce,
308
+ topBarAreaRef: se,
309
+ logoProps: a
310
+ }, e[30] = t, e[31] = m, e[32] = de, e[33] = o, e[34] = i, e[35] = w, e[36] = a, e[37] = h, e[38] = q) : q = e[38];
311
+ let k;
312
+ e[39] !== n || e[40] !== q ? (k = /* @__PURE__ */ y(G.Provider, { value: q, children: n }), e[39] = n, e[40] = q, e[41] = k) : k = e[41];
313
+ let $;
314
+ e[42] !== s || e[43] !== me || e[44] !== k ? ($ = /* @__PURE__ */ y("header", { className: me, ...s, ref: D, children: k }), e[42] = s, e[43] = me, e[44] = k, e[45] = $) : $ = e[45];
315
+ let W;
316
+ e[46] !== M || e[47] !== i ? (W = i && M && /* @__PURE__ */ y("div", { className: N.headerPlaceholder }), e[46] = M, e[47] = i, e[48] = W) : W = e[48];
317
+ let I;
318
+ e[49] !== g || e[50] !== i || e[51] !== w ? (I = !i && !w && /* @__PURE__ */ y("div", { className: g ? N.headerPlaceholderWithBanner : N.headerPlaceholder }), e[49] = g, e[50] = i, e[51] = w, e[52] = I) : I = e[52];
319
+ let ae;
320
+ return e[53] !== $ || e[54] !== W || e[55] !== I ? (ae = /* @__PURE__ */ Ae(xe, { children: [
321
+ $,
322
+ W,
323
+ I
324
+ ] }), e[53] = $, e[54] = W, e[55] = I, e[56] = ae) : ae = e[56], ae;
325
+ }, be = (l) => {
326
+ const e = T.c(4), {
327
+ children: t,
328
+ className: n
329
+ } = l, {
330
+ bannerAreaRef: r
331
+ } = oe(G);
332
+ let a;
333
+ return e[0] !== r || e[1] !== t || e[2] !== n ? (a = /* @__PURE__ */ y("div", { ref: r, className: n, children: t }), e[0] = r, e[1] = t, e[2] = n, e[3] = a) : a = e[3], a;
334
+ };
335
+ be.displayName = "DSHeader.BannerArea";
336
+ const Se = (l) => {
337
+ const e = T.c(15), {
338
+ children: t,
339
+ className: n
340
+ } = l, {
341
+ variant: r,
342
+ isFixedMainNavigation: a,
343
+ isHeaderSticky: s,
344
+ isMobile: c,
345
+ isStickyMainNavigationVisible: d,
346
+ mainNavigationAreaRef: o
347
+ } = oe(G);
348
+ let h;
349
+ e[0] !== n || e[1] !== a || e[2] !== s || e[3] !== c || e[4] !== d ? (h = x(N.mainNavigationArea, n, s ? {
350
+ [N.mainNavigationAreaFixed]: !c && !d,
351
+ [N.mainNavigationAreaFixedVisible]: !c && a
352
+ } : {}), e[0] = n, e[1] = a, e[2] = s, e[3] = c, e[4] = d, e[5] = h) : h = e[5];
353
+ const m = h, A = r === "full";
354
+ let p;
355
+ e[6] !== A ? (p = x(N.mainNavigationContent, {
356
+ [N.mainNavigationContentVariantFull]: A
357
+ }), e[6] = A, e[7] = p) : p = e[7];
358
+ const g = p;
359
+ let f;
360
+ e[8] !== t || e[9] !== g ? (f = /* @__PURE__ */ y("div", { className: g, children: t }), e[8] = t, e[9] = g, e[10] = f) : f = e[10];
361
+ let v;
362
+ return e[11] !== o || e[12] !== m || e[13] !== f ? (v = /* @__PURE__ */ y("div", { className: m, ref: o, children: f }), e[11] = o, e[12] = m, e[13] = f, e[14] = v) : v = e[14], v;
363
+ };
364
+ Se.displayName = "DSHeader.MainNavigationArea";
365
+ ie.BannerArea = be;
366
+ ie.MainNavigationArea = Se;
367
+ ie.displayName = "DSHeader";
368
+ export {
369
+ _t as B,
370
+ G as D,
371
+ ut as H,
372
+ ie as a,
373
+ L as b,
374
+ Ke as c,
375
+ ve as i,
376
+ Fe as v
377
+ };