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

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 (284) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.Du5CT-Mt.js +12 -0
  3. package/actionlink.BK9CaQUY.js +12 -0
  4. package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
  5. package/assets/Accordion.CzBGud45.css +1 -0
  6. package/assets/Button.CmeGVEAY.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.BihX36Uo.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/Fieldset.Oqu7pOBv.css +1 -0
  12. package/assets/InputFile.D7Ihod7B.css +1 -0
  13. package/assets/InputNumber.z_UqRYdv.css +1 -0
  14. package/assets/InputPassword.DZENjxJ9.css +1 -0
  15. package/assets/InputSearch.GBH9Eh6F.css +1 -0
  16. package/assets/LinkButton.88j5ckLu.css +1 -0
  17. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  18. package/assets/Notification.CvohYEvT.css +1 -0
  19. package/assets/Select.CL0fqx7X.css +1 -0
  20. package/assets/Slider.DWLuIsNj.css +1 -0
  21. package/assets/Stepper.tXJl15yL.css +1 -0
  22. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  23. package/assets/Textarea.B1HOakic.css +1 -0
  24. package/assets/Toast.CGyKXb4V.css +1 -0
  25. package/assets/buttonround.DBpMesfr.css +1 -0
  26. package/assets/input.RPDR8qdT.css +1 -0
  27. package/assets/step.BeLporJO.css +1 -0
  28. package/assets/switch.B9B-n_3y.css +1 -0
  29. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  30. package/{banner.o4Etkjjo.js → banner.D-RX60nJ.js} +3 -3
  31. package/breadcrumb.tvMByFgp.js +11 -0
  32. package/button.CZupaV9L.js +12 -0
  33. package/buttonround.9IS0tUqw.js +96 -0
  34. package/checkbox.XYQI-ubx.js +12 -0
  35. package/checkboxgroup.CjnNJ8e6.js +9 -0
  36. package/chip.B-pxhsdb.js +12 -0
  37. package/chipgroup.cGjn4LVV.js +143 -0
  38. package/chunks/Accordion.CYIfNOWr.js +168 -0
  39. package/chunks/{ActionButton.DdDesD7K.js → ActionButton.BOYQYo5M.js} +37 -37
  40. package/chunks/{ActionLink.DqAsPYda.js → ActionLink.BlwvrnPN.js} +36 -36
  41. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  42. package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.Qr6bDP2N.js} +35 -37
  43. package/chunks/Button.Cn5yg7dG.js +138 -0
  44. package/chunks/Checkbox.D5X5T6Yg.js +88 -0
  45. package/chunks/CheckboxGroup.CUR_0VMc.js +74 -0
  46. package/chunks/{Chip.BrbYu6i_.js → Chip.DIp5hdRH.js} +6 -6
  47. package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.BA3hUVkh.js} +897 -878
  48. package/chunks/Dialog.DRk_jSj5.js +102 -0
  49. package/chunks/Drawer.Dj6WeUC8.js +107 -0
  50. package/chunks/Fieldset.C0RzpI-h.js +81 -0
  51. package/chunks/Header.18sOO0Gf.js +370 -0
  52. package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
  53. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.CL1u4Ctq.js} +30 -28
  54. package/chunks/InputFile.Bki3bs3U.js +236 -0
  55. package/chunks/InputNumber.B43cqBH0.js +242 -0
  56. package/chunks/InputPassword.DcdMjsXr.js +121 -0
  57. package/chunks/InputSearch.CJm6ph8W.js +149 -0
  58. package/chunks/LinkButton.C6F-yuLL.js +139 -0
  59. package/chunks/MegaMenu.qttkjGbD.js +188 -0
  60. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  61. package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.CQxlahX1.js} +13 -14
  62. package/chunks/Notification.Qzz88ngL.js +91 -0
  63. package/chunks/Popover.D7McfVaH.js +214 -0
  64. package/chunks/RadioGroup.B2VCD9x-.js +106 -0
  65. package/chunks/Select.B0uMOSSD.js +147 -0
  66. package/chunks/Slider.YTIktxxD.js +306 -0
  67. package/chunks/Stepper.BvPmbbqw.js +152 -0
  68. package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
  69. package/chunks/Tabs.CoO_lrhV.js +83 -0
  70. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  71. package/chunks/Textarea.lYiPXerd.js +181 -0
  72. package/chunks/Toast.L5HAuEOn.js +76 -0
  73. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  74. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  75. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  76. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  77. package/chunks/feather.l1E4nFBx.js +10 -0
  78. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  79. package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
  80. package/chunks/helpers.CexwVao7.js +38 -0
  81. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  82. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  83. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  84. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  85. package/chunks/moon.5yILPYXs.js +10 -0
  86. package/chunks/muscle.DbNjWasV.js +10 -0
  87. package/chunks/petrol.BGWwCsTw.js +10 -0
  88. package/chunks/sun.CY6ttzTL.js +10 -0
  89. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  90. package/chunks/upload.BogDfonx.js +10 -0
  91. package/chunks/useBreakpoint.1txsny17.js +45 -0
  92. package/chunks/variants.-R3_RCW8.js +10 -0
  93. package/chunks/weight.DUPu2UT0.js +10 -0
  94. package/combobox.CGEDlMo0.js +71 -0
  95. package/components/Button/Button.d.ts +5 -0
  96. package/components/Button/Button.utils.d.ts +4 -5
  97. package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
  98. package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
  99. package/components/Combobox/Combobox.utils.d.ts +6 -6
  100. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +17 -2
  101. package/components/Fieldset/Fieldset.d.ts +14 -1
  102. package/components/Input/Input.d.ts +13 -0
  103. package/components/Input/Input.utils.d.ts +2 -2
  104. package/components/InputFile/InputFile.d.ts +13 -0
  105. package/components/InputFile/InputFile.utils.d.ts +4 -2
  106. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +21 -8
  107. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  108. package/components/InputPassword/InputPassword.d.ts +13 -0
  109. package/components/InputPassword/InputPassword.utils.d.ts +2 -2
  110. package/components/InputSearch/InputSearch.d.ts +13 -0
  111. package/components/InputSearch/InputSearch.utils.d.ts +2 -2
  112. package/components/LinkButton/LinkButton.d.ts +5 -0
  113. package/components/LinkButton/LinkButton.utils.d.ts +4 -5
  114. package/components/RadioGroup/RadioGroup.d.ts +13 -0
  115. package/components/Scroller/Scroller.d.ts +6 -2
  116. package/components/Select/Select.d.ts +13 -0
  117. package/components/Select/Select.utils.d.ts +2 -2
  118. package/components/Slider/Slider.d.ts +13 -0
  119. package/components/Stepper/Step.d.ts +33 -0
  120. package/components/Stepper/Step.utils.d.ts +5 -0
  121. package/components/Stepper/Stepper.d.ts +56 -0
  122. package/components/Stepper/Stepper.test.d.ts +1 -0
  123. package/components/Stepper/Stepper.utils.d.ts +30 -0
  124. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  125. package/components/Textarea/Textarea.d.ts +13 -0
  126. package/components/Textarea/Textarea.utils.d.ts +2 -2
  127. package/customreactselect.BgYf8rKE.js +15 -0
  128. package/dialog.Bq-ZyzR8.js +9 -0
  129. package/drawer.DL5UzLWf.js +9 -0
  130. package/fieldset.BFLW2D9H.js +12 -0
  131. package/{filelist.BiKMKCyg.js → filelist.BG6SGVJ8.js} +23 -24
  132. package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
  133. package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.B5hJ2At2.js} +5 -5
  134. package/header.A77yIAH3.js +12 -0
  135. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  136. package/icon.vzkPwgjZ.js +9 -0
  137. package/index.d.ts +4 -2
  138. package/index.es.js +218 -206
  139. package/input.hBWqQr3X.js +190 -0
  140. package/inputfile.BSZuRujU.js +18 -0
  141. package/inputnumber.CA4JiUmq.js +17 -0
  142. package/inputnumber.d.ts +2 -0
  143. package/inputpassword.Cju_crMi.js +13 -0
  144. package/inputsearch.CU9AhVVv.js +15 -0
  145. package/{link.DbnvsD3j.js → link.DoiK003-.js} +5 -5
  146. package/linkbutton.CWco_B7v.js +12 -0
  147. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  148. package/{logo100years.BcB6_c-o.js → logo100years.DDzCrczW.js} +11 -11
  149. package/megamenu.BurL9MfF.js +12 -0
  150. package/navigationtablist.CkkLyHrM.js +10 -0
  151. package/navigationtabs.zhRZHjgs.js +9 -0
  152. package/notification.BiXdWNo7.js +10 -0
  153. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  154. package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
  155. package/package.json +42 -50
  156. package/partials/index.js +54 -48
  157. package/partials/lib/partials.d.ts +1 -1
  158. package/popover.79Voiadz.js +12 -0
  159. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  160. package/radiogroup.CwBh7u9L.js +11 -0
  161. package/scroller.IpfbFV8B.js +98 -0
  162. package/select.NHaEtX_u.js +14 -0
  163. package/{skiptocontent.BSCde5hT.js → skiptocontent.X4USTODk.js} +4 -4
  164. package/slider.jnNGEyBq.js +12 -0
  165. package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
  166. package/step.D5p7qppy.js +82 -0
  167. package/step.d.ts +6 -0
  168. package/stepper.DnMc4ex6.js +16 -0
  169. package/stepper.d.ts +2 -0
  170. package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
  171. package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
  172. package/styles/scss/ds/lib/link-button.scss +11 -3
  173. package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
  174. package/systemfeedback.O7tj1juR.js +10 -0
  175. package/tablist.BFE6RAPD.js +209 -0
  176. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  177. package/tabs.CsOxxQyQ.js +11 -0
  178. package/text.cLv2PhjQ.js +10 -0
  179. package/textarea.C9OAAjhG.js +14 -0
  180. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  181. package/toast.OBI9qnAM.js +11 -0
  182. package/toastmanager.CgsA-1y_.js +89 -0
  183. package/tooltip.Cj3AvYgB.js +177 -0
  184. package/topbar.CAujTZAE.js +12 -0
  185. package/types/icon-types.d.ts +1 -1
  186. package/utils/index.d.ts +1 -0
  187. package/utils/mergeRefs.d.ts +5 -0
  188. package/utils/mergeRefs.test.d.ts +1 -0
  189. package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  190. package/accordion.HfUSDwQJ.js +0 -12
  191. package/actionbutton.kgd0E_xF.js +0 -12
  192. package/actionlink.CwC42RWc.js +0 -12
  193. package/assets/Accordion.BJb4TOG0.css +0 -1
  194. package/assets/Button.Dw8H5nFS.css +0 -1
  195. package/assets/Checkbox.BKHQN_tu.css +0 -1
  196. package/assets/CustomReactSelect.DGIItWIh.css +0 -1
  197. package/assets/Dialog.CGAg7bnN.css +0 -1
  198. package/assets/Drawer.VOvWQoEr.css +0 -1
  199. package/assets/Fieldset.CW9dBvAo.css +0 -1
  200. package/assets/InputFile.CCQxsulT.css +0 -1
  201. package/assets/InputPassword.124xVOiO.css +0 -1
  202. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  203. package/assets/InputStepper.DvFJk1Mi.css +0 -1
  204. package/assets/LinkButton.xMvg_ojf.css +0 -1
  205. package/assets/Notification.BOuaA5GT.css +0 -1
  206. package/assets/Select.C1gWF32A.css +0 -1
  207. package/assets/Slider.Bidyhb-B.css +0 -1
  208. package/assets/Textarea.Dq4rH9Tg.css +0 -1
  209. package/assets/Toast.CJ1zhDIT.css +0 -1
  210. package/assets/buttonround.Cw9hnUan.css +0 -1
  211. package/assets/input.CUjGh-UM.css +0 -1
  212. package/assets/switch.Bc9KIyw9.css +0 -1
  213. package/breadcrumb.BsQm0kUD.js +0 -11
  214. package/button.Dyy6ajX6.js +0 -13
  215. package/buttonround.ChKWHzsv.js +0 -96
  216. package/checkbox.BNnp4ztM.js +0 -12
  217. package/checkboxgroup.BTVnKenc.js +0 -9
  218. package/chip.C7NstOHt.js +0 -12
  219. package/chipgroup.Zo1-IOCn.js +0 -210
  220. package/chunks/Accordion.CnqryAUu.js +0 -170
  221. package/chunks/Button.Cf1CKq8N.js +0 -142
  222. package/chunks/Checkbox.CiwriItT.js +0 -88
  223. package/chunks/CheckboxGroup.Cj68J6Ee.js +0 -72
  224. package/chunks/Dialog.Bv7k55He.js +0 -135
  225. package/chunks/Drawer.BVTvx276.js +0 -140
  226. package/chunks/Fieldset.D7cLR5ze.js +0 -74
  227. package/chunks/Header.um5MlziB.js +0 -377
  228. package/chunks/InputFile.bVWWdePn.js +0 -220
  229. package/chunks/InputPassword.Da3hEKTc.js +0 -136
  230. package/chunks/InputSearch.GOYqFCcZ.js +0 -174
  231. package/chunks/InputStepper.BuhPtfl-.js +0 -268
  232. package/chunks/LinkButton.59oNDwPU.js +0 -132
  233. package/chunks/MegaMenu._o3nNDAa.js +0 -192
  234. package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
  235. package/chunks/Notification.Pts2oh0R.js +0 -92
  236. package/chunks/Popover.BRR8YZ-P.js +0 -228
  237. package/chunks/RadioGroup.DeTz3c19.js +0 -104
  238. package/chunks/Select.D2ehd4yN.js +0 -162
  239. package/chunks/Slider.84lkgq3W.js +0 -292
  240. package/chunks/Tabs.C8ADTzJ0.js +0 -83
  241. package/chunks/Textarea.Cw85sxHL.js +0 -163
  242. package/chunks/Toast.DG3WVvau.js +0 -76
  243. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  244. package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
  245. package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
  246. package/chunks/helpers.BbWkXTr3.js +0 -37
  247. package/chunks/petrol.Du6qAgp0.js +0 -10
  248. package/chunks/upload.ZImTAIgx.js +0 -10
  249. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  250. package/combobox.orZ3z8CB.js +0 -60
  251. package/components/InputStepper/InputStepper.utils.d.ts +0 -13
  252. package/customreactselect.Np-RpzvU.js +0 -14
  253. package/dialog.D4rcbW6A.js +0 -10
  254. package/drawer.BCCB3Rkj.js +0 -10
  255. package/fieldset.ZLs9IGpE.js +0 -11
  256. package/header.DUbn3BZt.js +0 -12
  257. package/icon.CHVAZr5T.js +0 -9
  258. package/input.DG20x6gh.js +0 -203
  259. package/inputfile.Dc56lQ4t.js +0 -17
  260. package/inputpassword.znFHRLsI.js +0 -13
  261. package/inputsearch.B1G6rfVk.js +0 -14
  262. package/inputstepper.d.ts +0 -2
  263. package/inputstepper.o6rdM_CW.js +0 -16
  264. package/linkbutton.DU8Ih8ZF.js +0 -12
  265. package/megamenu.CPH8EeFF.js +0 -12
  266. package/navigationtablist.C0iwsAad.js +0 -9
  267. package/navigationtabs.JjJtbuUe.js +0 -9
  268. package/notification.Ds_Q7ifk.js +0 -10
  269. package/popover.B72W0OvU.js +0 -12
  270. package/radiogroup.C_3IcNBq.js +0 -11
  271. package/scroller.CQxmQU6U.js +0 -123
  272. package/select.Ceyt-zvu.js +0 -13
  273. package/slider.Dq2dcziy.js +0 -11
  274. package/systemfeedback.CSdWOWuf.js +0 -10
  275. package/tablist.V7DBklhE.js +0 -256
  276. package/tabs.DQNLPAEN.js +0 -11
  277. package/text.ZOUuesnU.js +0 -10
  278. package/textarea.CixKeQBp.js +0 -13
  279. package/toast.D8QprMCa.js +0 -11
  280. package/toastmanager.BSVjYsg9.js +0 -116
  281. package/tooltip.CUCSRXd3.js +0 -191
  282. package/topbar.CVhJy-Br.js +0 -12
  283. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  284. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumber.utils.test.d.ts} +0 -0
@@ -0,0 +1,149 @@
1
+ "use client";
2
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
3
+ import { c as s } from "./index.DL9mof6u.js";
4
+ import { forwardRef as nt, useState as at, useRef as L, useEffect as V } from "react";
5
+ import { g as m, a as st } from "./helpers.CexwVao7.js";
6
+ import { u as O } from "./useBreakpoint.1txsny17.js";
7
+ import "./index.D-sRdssb.js";
8
+ import { Asterisk as ot } from "../asterisk.B2ih8VwF.js";
9
+ import { D as W } from "./Button.Cn5yg7dG.js";
10
+ import { D as rt } from "./Popover.D7McfVaH.js";
11
+ import { D as it } from "./SystemFeedback.CjlARKki.js";
12
+ import '../assets/InputSearch.GBH9Eh6F.css';const ct = "ds-input-search_input_37dw5_1", lt = "ds-input-search_input--small_37dw5_9", ut = "ds-input-search_input--invalid_37dw5_121", pt = "ds-input-search_input--has-action-button_37dw5_182", dt = "ds-input-search_input--has-second-action-button_37dw5_185", ht = "ds-input-search_root_37dw5_218", mt = "ds-input-search_hint_37dw5_218", bt = "ds-input-search_label-wrapper_37dw5_218", ft = "ds-input-search_wrapper_37dw5_222", _t = "ds-input-search_action-button_37dw5_228", wt = "ds-input-search_second-action-button_37dw5_232", St = "ds-input-search_label_37dw5_218", Dt = "ds-input-search_label--disabled_37dw5_251", Bt = "ds-input-search_label-wrapper--hidden_37dw5_263", It = "ds-input-search_feedback_37dw5_291", t = {
13
+ input: ct,
14
+ inputSmall: lt,
15
+ inputInvalid: ut,
16
+ inputHasActionButton: pt,
17
+ inputHasSecondActionButton: dt,
18
+ root: ht,
19
+ hint: mt,
20
+ labelWrapper: bt,
21
+ wrapper: ft,
22
+ actionButton: _t,
23
+ secondActionButton: wt,
24
+ label: St,
25
+ labelDisabled: Dt,
26
+ labelWrapperHidden: Bt,
27
+ feedback: It
28
+ }, vt = ({
29
+ id: n,
30
+ label: c,
31
+ hideLabel: b,
32
+ popoverContent: f
33
+ }) => {
34
+ if (!n)
35
+ throw new Error(m("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
36
+ if (!c)
37
+ throw new Error(m("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
38
+ b && f && console.warn(m("DSInputSearch", "Using a popover when hideLabel is set to true is not supported."));
39
+ }, gt = (n) => !!st(n, "form"), Nt = nt(({
40
+ id: n,
41
+ label: c,
42
+ className: b,
43
+ clearButtonLabel: f = "Clear search field",
44
+ disabled: o = !1,
45
+ hint: _,
46
+ hideLabel: I = !1,
47
+ invalid: l = !1,
48
+ popoverContent: w,
49
+ popoverInfoButtonProps: $,
50
+ readonly: r = !1,
51
+ required: v = !1,
52
+ size: i = "medium",
53
+ systemFeedback: S,
54
+ value: D,
55
+ submitButtonProps: j,
56
+ onChange: g,
57
+ ...R
58
+ }, u) => {
59
+ process.env.NODE_ENV !== "production" && vt({
60
+ id: n,
61
+ label: c,
62
+ hideLabel: O(I),
63
+ popoverContent: w
64
+ });
65
+ const {
66
+ label: x = "Search",
67
+ onClick: q,
68
+ ...T
69
+ } = j || {}, [p, N] = at(D), B = L(null), d = L(null), F = (e) => {
70
+ d.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
71
+ }, y = O(I);
72
+ V(() => {
73
+ N(D);
74
+ }, [D]), V(() => {
75
+ B.current && !gt(B.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(m("DSInputSearch", `The DSInputSearch component with the id "${n}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
76
+ }, []);
77
+ const A = `${n}-label`, E = `${n}-feedback`, H = `${n}-hint`, M = _ ? ` ${H}` : "", U = [l && S && E].filter(Boolean).join(" ") || void 0, k = p !== "" && p !== void 0 && p !== null, G = s(t.root, b), J = s(t.input, {
78
+ // small input
79
+ [t.inputSmall]: i === "small",
80
+ // invalid state
81
+ [t.inputInvalid]: l,
82
+ // action button - input password always has an action button
83
+ [t.inputHasActionButton]: !0,
84
+ // action second action button
85
+ [t.inputHasSecondActionButton]: k && !r && !o
86
+ }), K = s(t.label, {
87
+ [t.labelDisabled]: o
88
+ }), Q = s(t.labelWrapper, {
89
+ // hide label only visually to keep them available for assistive technologies
90
+ [t.labelWrapperHidden]: y
91
+ }), X = s(t.actionButton, {
92
+ [t.actionButtonSmall]: i === "small"
93
+ }), Y = s(t.secondActionButton, {
94
+ [t.secondActionButtonSmall]: i === "small"
95
+ }), Z = (e, C) => {
96
+ const et = Object.getPrototypeOf(e), P = Object.getOwnPropertyDescriptor(et, "value");
97
+ P?.set ? P.set.call(e, C) : e.value = C;
98
+ }, z = () => {
99
+ if (!d.current)
100
+ return;
101
+ Z(d.current, "");
102
+ const e = new Event("change", {
103
+ bubbles: !0
104
+ });
105
+ d.current?.dispatchEvent(e);
106
+ }, tt = (e) => {
107
+ N(e.target.value), g && g(e);
108
+ };
109
+ return /* @__PURE__ */ h("div", { className: G, ref: B, children: [
110
+ /* @__PURE__ */ h("div", { className: Q, children: [
111
+ /* @__PURE__ */ h("label", { className: K, id: A, htmlFor: n, children: [
112
+ c,
113
+ v && /* @__PURE__ */ a(ot, {})
114
+ ] }),
115
+ w && !y && /* @__PURE__ */ a(rt, { placement: "top", defaultAnchorButtonProps: $, children: w })
116
+ ] }),
117
+ _ && /* @__PURE__ */ a("div", { className: t.hint, id: H, children: _ }),
118
+ /* @__PURE__ */ h("div", { className: t.wrapper, children: [
119
+ /* @__PURE__ */ a(
120
+ "input",
121
+ {
122
+ className: J,
123
+ id: n,
124
+ ...R,
125
+ ref: F,
126
+ "aria-labelledby": `${A}${M}`,
127
+ "aria-describedby": U,
128
+ "aria-invalid": l,
129
+ "aria-disabled": r,
130
+ readOnly: r,
131
+ required: v,
132
+ disabled: o,
133
+ type: "search",
134
+ value: p,
135
+ onChange: tt
136
+ }
137
+ ),
138
+ k && !r && !o && /* @__PURE__ */ a(W, { hideLabel: !0, theme: "light", iconName: "cross", className: Y, variant: "ghost", size: i, onClick: z, type: "button", tabIndex: -1, children: f }),
139
+ /* @__PURE__ */ a(W, { ...T, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: X, variant: "ghost", size: i, onClick: q, type: "submit", disabled: o || r, children: x })
140
+ ] }),
141
+ l && S && /* @__PURE__ */ a(it, { className: t.feedback, message: S, variant: "error", id: E })
142
+ ] });
143
+ });
144
+ Nt.displayName = "DSInputSearch";
145
+ export {
146
+ Nt as D,
147
+ gt as i,
148
+ vt as v
149
+ };
@@ -0,0 +1,139 @@
1
+ "use client";
2
+ import { jsxs as N, jsx as g } from "react/jsx-runtime";
3
+ import { c as p } from "./index.DL9mof6u.js";
4
+ import { forwardRef as H } from "react";
5
+ import { u as i } from "./useBreakpoint.1txsny17.js";
6
+ import "./index.D-sRdssb.js";
7
+ import { D as A } from "./Icon.CDLyB7Pv.js";
8
+ import { Tooltip as b } from "../tooltip.Cj3AvYgB.js";
9
+ import { g as r } from "./helpers.CexwVao7.js";
10
+ import '../assets/LinkButton.88j5ckLu.css';const E = "ds-link-button_root_250ek_1", P = "ds-link-button_root--highlight_250ek_75", C = "ds-link-button_root--dark-highlight_250ek_75", x = "ds-link-button_root--filled_250ek_151", V = "ds-link-button_root--outline_250ek_179", j = "ds-link-button_root--ghost_250ek_206", K = "ds-link-button_root--ghost-flush_250ek_231", R = "ds-link-button_root--small_250ek_237", U = "ds-link-button_root--navigation_250ek_317", M = "ds-link-button_root--navigation--stretched_250ek_393", Z = "ds-link-button_root--navigation--stretched--icon-left_250ek_396", q = "ds-link-button_root--dark-filled_250ek_399", J = "ds-link-button_root--dark-outline_250ek_456", Q = "ds-link-button_root--dark-ghost_250ek_512", W = "ds-link-button_root--dark-ghost-flush_250ek_566", X = "ds-link-button_root--stretched_250ek_641", Y = "ds-link-button_root--icon-left_250ek_644", $ = "ds-link-button_root--icon-only_250ek_647", z = "ds-link-button_root--icon-only-small_250ek_656", oo = "ds-link-button_icon--navigation_250ek_668", to = "ds-link-button_label--hidden_250ek_676", t = {
11
+ root: E,
12
+ rootHighlight: P,
13
+ rootDarkHighlight: C,
14
+ rootFilled: x,
15
+ rootOutline: V,
16
+ rootGhost: j,
17
+ rootGhostFlush: K,
18
+ rootSmall: R,
19
+ rootNavigation: U,
20
+ rootNavigationStretched: M,
21
+ rootNavigationStretchedIconLeft: Z,
22
+ rootDarkFilled: q,
23
+ rootDarkOutline: J,
24
+ rootDarkGhost: Q,
25
+ rootDarkGhostFlush: W,
26
+ rootStretched: X,
27
+ rootIconLeft: Y,
28
+ rootIconOnly: $,
29
+ rootIconOnlySmall: z,
30
+ iconNavigation: oo,
31
+ labelHidden: to
32
+ }, go = ["medium", "small"], uo = ["filled", "highlight", "outline", "ghost", "navigation"], no = ({
33
+ hideLabel: u,
34
+ iconName: _,
35
+ iconSource: f,
36
+ isFlush: d,
37
+ size: l,
38
+ stretched: s,
39
+ theme: a,
40
+ variant: e
41
+ }) => {
42
+ if (e === "navigation" && (l === "small" && console.warn(r("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), a === "dark"))
43
+ throw new Error(r("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
44
+ e !== "ghost" && d ? console.warn(r("DSLinkButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : e === "ghost" && d && s && console.warn(r("DSLinkButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), u && (!_ && !f && console.warn(r("DSLinkButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the link is not empty when the label is hidden.')), s && console.warn(r("DSLinkButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
45
+ }, eo = H(({
46
+ children: u,
47
+ aria: _,
48
+ className: f,
49
+ download: d,
50
+ hideLabel: l = !1,
51
+ href: s,
52
+ iconName: a,
53
+ iconPosition: e = "left",
54
+ iconSource: m,
55
+ isFlush: h = !1,
56
+ referrerPolicy: L,
57
+ rel: I,
58
+ size: c = "medium",
59
+ stretched: k = !1,
60
+ target: O = "_self",
61
+ theme: n = "light",
62
+ variant: o = "filled",
63
+ tooltip: D,
64
+ ...w
65
+ }, B) => {
66
+ process.env.NODE_ENV !== "production" && no({
67
+ hideLabel: i(l),
68
+ iconName: a,
69
+ iconSource: m,
70
+ isFlush: h,
71
+ size: c,
72
+ stretched: k,
73
+ theme: n,
74
+ variant: o
75
+ });
76
+ const y = p(t.root, f, {
77
+ // variant
78
+ [t.rootFilled]: o === "filled",
79
+ [t.rootHighlight]: o === "highlight",
80
+ [t.rootOutline]: o === "outline",
81
+ [t.rootGhost]: o === "ghost" && h !== !0,
82
+ [t.rootNavigation]: o === "navigation",
83
+ [t.rootNavigationStretched]: o === "navigation" && i(k) && e === "right",
84
+ [t.rootNavigationStretchedIconLeft]: o === "navigation" && i(k) && e === "left",
85
+ // isFlush
86
+ [t.rootGhostFlush]: o === "ghost" && h === !0,
87
+ // dark theme
88
+ [t.rootDarkFilled]: n === "dark" && o === "filled",
89
+ [t.rootDarkHighlight]: n === "dark" && o === "highlight",
90
+ [t.rootDarkOutline]: n === "dark" && o === "outline",
91
+ [t.rootDarkGhost]: n === "dark" && o === "ghost" && h !== !0,
92
+ // dark isFlush
93
+ [t.rootDarkGhostFlush]: n === "dark" && o === "ghost" && h === !0,
94
+ // size
95
+ [t.rootSmall]: c === "small" || o === "navigation",
96
+ // stretched
97
+ [t.rootStretched]: i(k),
98
+ // icon position
99
+ [t.rootIconLeft]: e === "left",
100
+ // icon only
101
+ [t.rootIconOnly]: i(l) && c === "medium" && o !== "navigation",
102
+ [t.rootIconOnlySmall]: i(l) && c === "small" && o !== "navigation"
103
+ }), G = p({
104
+ // hide label only visually to keep them available for assistive technologies
105
+ [t.labelHidden]: i(l) && o !== "navigation"
106
+ }), T = p({
107
+ [t.iconNavigation]: o === "navigation"
108
+ }), F = n === "light" && o === "filled" || n === "dark" && o === "outline" || n === "dark" && o === "ghost" ? "dark" : "light", S = s === void 0 ? "span" : "a", v = /* @__PURE__ */ N(
109
+ S,
110
+ {
111
+ className: y,
112
+ ...S === "a" && {
113
+ href: s,
114
+ target: O,
115
+ rel: I,
116
+ referrerPolicy: L,
117
+ download: d
118
+ },
119
+ ..._,
120
+ ...w,
121
+ ref: B,
122
+ children: [
123
+ /* @__PURE__ */ g("span", { className: G, children: u }),
124
+ (a || m) && /* @__PURE__ */ g(A, { name: a, theme: F, source: m, className: T, "aria-hidden": "true" })
125
+ ]
126
+ }
127
+ );
128
+ return D ? /* @__PURE__ */ N(b, { placement: "top", tooltipOffset: 6, children: [
129
+ /* @__PURE__ */ g(b.Anchor, { children: v }),
130
+ /* @__PURE__ */ g(b.Content, { children: D })
131
+ ] }) : v;
132
+ });
133
+ eo.displayName = "DSLinkButton";
134
+ export {
135
+ eo as D,
136
+ go as L,
137
+ uo as a,
138
+ no as v
139
+ };
@@ -0,0 +1,188 @@
1
+ "use client";
2
+ import { jsx as N, jsxs as ne } from "react/jsx-runtime";
3
+ import { d as P } from "./index.D-sRdssb.js";
4
+ import { isValidElement as J, useState as se, createContext as oe, forwardRef as K, cloneElement as ae, useContext as L } from "react";
5
+ import { o as le, u as re, b as ce, c as ie, d as ue, e as fe, a as de, f as Q, g as me, F as Me, h as ge, i as he } from "./floating-ui.react.COTL3jH5.js";
6
+ import { c as q } from "./index.DL9mof6u.js";
7
+ import { g as V, c as z } from "./helpers.CexwVao7.js";
8
+ import { D as pe } from "./Header.18sOO0Gf.js";
9
+ import '../assets/MegaMenu.D5EtjFeL.css';const Se = "ds-mega-menu_root_11fw1_1", De = "ds-mega-menu_content_11fw1_109", _e = "ds-mega-menu_content--variant-full_11fw1_134", Ce = "ds-mega-menu_backdrop_11fw1_139", R = {
10
+ root: Se,
11
+ content: De,
12
+ contentVariantFull: _e,
13
+ backdrop: Ce
14
+ }, ve = 9, Ee = (s) => {
15
+ const t = P.c(17);
16
+ let e;
17
+ t[0] !== s ? (e = s === void 0 ? {} : s, t[0] = s, t[1] = e) : e = t[1];
18
+ const {
19
+ initialOpen: n,
20
+ isOpen: c,
21
+ onOpenChange: a
22
+ } = e, d = n === void 0 ? !1 : n, [i, o] = se(d), r = c ?? i, u = a ?? o;
23
+ let f;
24
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (f = [le(ve)], t[2] = f) : f = t[2];
25
+ let C;
26
+ t[3] !== r || t[4] !== u ? (C = {
27
+ placement: "bottom-start",
28
+ open: r,
29
+ onOpenChange: u,
30
+ whileElementsMounted: de,
31
+ strategy: "absolute",
32
+ transform: !1,
33
+ middleware: f
34
+ }, t[3] = r, t[4] = u, t[5] = C) : C = t[5];
35
+ const M = re(C), D = M.context;
36
+ let g;
37
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (g = {
38
+ enabled: !0
39
+ }, t[6] = g) : g = t[6];
40
+ const h = ce(D, g), _ = ie(D);
41
+ let m;
42
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (m = {
43
+ role: "menu"
44
+ }, t[7] = m) : m = t[7];
45
+ const O = ue(D, m);
46
+ let l;
47
+ t[8] !== h || t[9] !== _ || t[10] !== O ? (l = [h, _, O], t[8] = h, t[9] = _, t[10] = O, t[11] = l) : l = t[11];
48
+ const p = fe(l);
49
+ let S;
50
+ return t[12] !== M || t[13] !== p || t[14] !== r || t[15] !== u ? (S = {
51
+ open: r,
52
+ setOpen: u,
53
+ ...p,
54
+ ...M
55
+ }, t[12] = M, t[13] = p, t[14] = r, t[15] = u, t[16] = S) : S = t[16], S;
56
+ }, we = (s) => {
57
+ if (!J(s))
58
+ throw new Error(V("DSMegaMenu", "DSMegaMenu.Anchor child must be a valid React element."));
59
+ }, be = ({
60
+ hasContent: s,
61
+ hasAnchor: t
62
+ }) => {
63
+ if (!s)
64
+ throw new Error(V("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Content> component as a child. Please add it to the children of DSMegaMenu."));
65
+ if (!t)
66
+ throw new Error(V("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Anchor> component as a child. Please add it to the children of DSMegaMenu."));
67
+ }, W = oe(null), X = () => {
68
+ const s = L(W);
69
+ if (s == null)
70
+ throw new Error(V("DSMegaMenu", "Components like DSMegaMenu.Anchor or DSMegaMenu.Content must be wrapped in <DSMegaMenu />."));
71
+ return s;
72
+ }, T = (s) => {
73
+ const t = P.c(9);
74
+ let e, n;
75
+ t[0] !== s ? ({
76
+ children: e,
77
+ ...n
78
+ } = s, t[0] = s, t[1] = e, t[2] = n) : (e = t[1], n = t[2]);
79
+ let c;
80
+ t[3] !== n ? (c = {
81
+ ...n
82
+ }, t[3] = n, t[4] = c) : c = t[4];
83
+ const a = Ee(c), d = z(e, T.Content), i = z(e, H);
84
+ process.env.NODE_ENV !== "production" && be({
85
+ hasContent: d,
86
+ hasAnchor: i
87
+ });
88
+ let o;
89
+ return t[5] !== e || t[6] !== a || t[7] !== n ? (o = /* @__PURE__ */ N(W.Provider, { value: a, ...n, children: e }), t[5] = e, t[6] = a, t[7] = n, t[8] = o) : o = t[8], o;
90
+ }, H = K((s, t) => {
91
+ const e = P.c(4), {
92
+ children: n,
93
+ ...c
94
+ } = s;
95
+ process.env.NODE_ENV !== "production" && we(n);
96
+ const a = X(), d = n.ref;
97
+ let i;
98
+ e[0] !== d || e[1] !== a.refs.setReference || e[2] !== t ? (i = [a.refs.setReference, t, d], e[0] = d, e[1] = a.refs.setReference, e[2] = t, e[3] = i) : i = e[3];
99
+ const o = Q(i);
100
+ if (J(n))
101
+ return ae(n, a.getReferenceProps({
102
+ ref: o,
103
+ ...c,
104
+ ...n.props,
105
+ "data-state": a.open ? "open" : "closed"
106
+ }));
107
+ });
108
+ H.displayName = "DSMegaMenu.Anchor";
109
+ const Y = K((s, t) => {
110
+ const e = P.c(45), {
111
+ style: n,
112
+ className: c,
113
+ children: a,
114
+ ...d
115
+ } = s, i = X();
116
+ let o, r, u, f;
117
+ e[0] !== i ? ({
118
+ context: o,
119
+ floatingStyles: r,
120
+ getFloatingProps: u,
121
+ ...f
122
+ } = i, e[0] = i, e[1] = o, e[2] = r, e[3] = u, e[4] = f) : (o = e[1], r = e[2], u = e[3], f = e[4]);
123
+ const {
124
+ variant: C,
125
+ bannerAreaRef: M,
126
+ topBarAreaRef: D,
127
+ mainNavigationAreaRef: g
128
+ } = L(pe);
129
+ let h;
130
+ e[5] !== t || e[6] !== f.refs.setFloating ? (h = [f.refs.setFloating, t], e[5] = t, e[6] = f.refs.setFloating, e[7] = h) : h = e[7];
131
+ const _ = Q(h);
132
+ let m;
133
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (m = {
134
+ duration: {
135
+ open: 400,
136
+ close: 400
137
+ }
138
+ }, e[8] = m) : m = e[8];
139
+ const {
140
+ isMounted: O,
141
+ status: l
142
+ } = me(o, m);
143
+ let p;
144
+ e[9] !== c ? (p = q(R.root, c), e[9] = c, e[10] = p) : p = e[10];
145
+ const S = p, I = C === "full";
146
+ let y;
147
+ e[11] !== I ? (y = q(R.content, {
148
+ [R.contentVariantFull]: I
149
+ }), e[11] = I, e[12] = y) : y = e[12];
150
+ const $ = y;
151
+ if (!O)
152
+ return null;
153
+ const U = he, j = ge, Z = !0;
154
+ let v;
155
+ e[13] !== l ? (v = /* @__PURE__ */ N("div", { className: R.backdrop, "data-status": l }), e[13] = l, e[14] = v) : v = e[14];
156
+ const B = Me, ee = !1, te = !0;
157
+ let E;
158
+ e[15] !== M || e[16] !== g || e[17] !== D ? (E = () => [g?.current, D?.current, M?.current].filter(Boolean), e[15] = M, e[16] = g, e[17] = D, e[18] = E) : E = e[18];
159
+ let w;
160
+ e[19] !== r || e[20] !== n ? (w = {
161
+ ...r,
162
+ ...n
163
+ }, e[19] = r, e[20] = n, e[21] = w) : w = e[21];
164
+ const G = u(d);
165
+ let b;
166
+ e[22] !== a || e[23] !== $ || e[24] !== l ? (b = /* @__PURE__ */ N("div", { className: $, "data-status": l, children: a }), e[22] = a, e[23] = $, e[24] = l, e[25] = b) : b = e[25];
167
+ let x;
168
+ e[26] !== S || e[27] !== _ || e[28] !== l || e[29] !== w || e[30] !== G || e[31] !== b ? (x = /* @__PURE__ */ N("div", { ref: _, style: w, className: S, "data-status": l, ...G, children: b }), e[26] = S, e[27] = _, e[28] = l, e[29] = w, e[30] = G, e[31] = b, e[32] = x) : x = e[32];
169
+ let F;
170
+ e[33] !== B || e[34] !== o || e[35] !== E || e[36] !== x ? (F = /* @__PURE__ */ N(B, { context: o, modal: ee, outsideElementsInert: te, getInsideElements: E, children: x }), e[33] = B, e[34] = o, e[35] = E, e[36] = x, e[37] = F) : F = e[37];
171
+ let A;
172
+ e[38] !== j || e[39] !== F || e[40] !== v ? (A = /* @__PURE__ */ ne(j, { lockScroll: Z, children: [
173
+ v,
174
+ F
175
+ ] }), e[38] = j, e[39] = F, e[40] = v, e[41] = A) : A = e[41];
176
+ let k;
177
+ return e[42] !== U || e[43] !== A ? (k = /* @__PURE__ */ N(U, { children: A }), e[42] = U, e[43] = A, e[44] = k) : k = e[44], k;
178
+ });
179
+ Y.displayName = "DSMegaMenu.Content";
180
+ T.Anchor = H;
181
+ T.Content = Y;
182
+ T.displayName = "DSMegaMenu";
183
+ export {
184
+ T as D,
185
+ be as a,
186
+ Ee as u,
187
+ we as v
188
+ };
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsxs as B, Fragment as k, jsx as d } from "react/jsx-runtime";
3
+ import { d as I } from "./index.D-sRdssb.js";
4
+ import { isValidElement as w, cloneElement as R } from "react";
5
+ import { D as W } from "./Icon.CDLyB7Pv.js";
6
+ import { NumberIndicator as v } from "../numberindicator.BdnPMogE.js";
7
+ import '../assets/NavigationTabList.CFlVhUzS.css';const y = "ds-tabs_tabs-wrapper_ccgp4_1", D = "ds-tabs_scroll-wrapper_ccgp4_6", E = "ds-tabs_scroller_ccgp4_17", T = "ds-tabs_scroller--centered_ccgp4_28", j = "ds-tabs_tab_ccgp4_1", x = "ds-tabs_scroll-button_ccgp4_105", H = "ds-tabs_scroll-button--hidden_ccgp4_110", K = "ds-tabs_scroll-button--right_ccgp4_114", L = "ds-tabs_indicator_ccgp4_126", S = {
8
+ tabsWrapper: y,
9
+ scrollWrapper: D,
10
+ scroller: E,
11
+ scrollerCentered: T,
12
+ tab: j,
13
+ scrollButton: x,
14
+ scrollButtonHidden: H,
15
+ scrollButtonRight: K,
16
+ indicator: L
17
+ }, A = (h) => {
18
+ const t = I.c(15), {
19
+ tabs: p,
20
+ tabRefs: e,
21
+ scrollerClass: b,
22
+ scrollerRef: _,
23
+ selectedTabIndex: r,
24
+ handleNavigationKeydown: o,
25
+ setSelectedTab: c
26
+ } = h;
27
+ let s;
28
+ if (t[0] !== o || t[1] !== r || t[2] !== c || t[3] !== e || t[4] !== p) {
29
+ let i;
30
+ t[6] !== o || t[7] !== r || t[8] !== c || t[9] !== e ? (i = (C, l) => {
31
+ const {
32
+ id: u,
33
+ linkComponent: n,
34
+ iconName: g,
35
+ numberIndicatorValue: f
36
+ } = C;
37
+ if (!w(n))
38
+ return null;
39
+ const N = R(n, {
40
+ "aria-current": r === l ? "page" : void 0,
41
+ children: /* @__PURE__ */ B(k, { children: [
42
+ g && /* @__PURE__ */ d(W, { name: g, "aria-hidden": "true" }),
43
+ n.props.children,
44
+ f && /* @__PURE__ */ d(v, { label: f })
45
+ ] }),
46
+ className: S.tab,
47
+ id: u,
48
+ tabIndex: r === l ? 0 : -1,
49
+ onKeyDown: (m) => o(m, l),
50
+ onClick: () => {
51
+ n.props.onClick && n.props.onClick(), c(l);
52
+ },
53
+ ref: (m) => {
54
+ e.current[l] = m;
55
+ }
56
+ });
57
+ return /* @__PURE__ */ d("li", { children: N }, u);
58
+ }, t[6] = o, t[7] = r, t[8] = c, t[9] = e, t[10] = i) : i = t[10], s = p.map(i), t[0] = o, t[1] = r, t[2] = c, t[3] = e, t[4] = p, t[5] = s;
59
+ } else
60
+ s = t[5];
61
+ let a;
62
+ return t[11] !== b || t[12] !== _ || t[13] !== s ? (a = /* @__PURE__ */ d("ul", { className: b, ref: _, children: s }), t[11] = b, t[12] = _, t[13] = s, t[14] = a) : a = t[14], a;
63
+ };
64
+ export {
65
+ A as N,
66
+ S as s
67
+ };
@@ -1,16 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as v } from "react/jsx-runtime";
3
- import { d as u } from "./index.CgTHIF3K.js";
3
+ import { d as u } from "./index.D-sRdssb.js";
4
4
  import { useState as T, useEffect as y } from "react";
5
- import { TabList as h } from "../tablist.V7DBklhE.js";
6
- import { g as m, r as E } from "./helpers.BbWkXTr3.js";
5
+ import { TabList as h } from "../tablist.BFE6RAPD.js";
6
+ import { g as m, r as E } from "./helpers.CexwVao7.js";
7
7
  const _ = ["left", "center"], j = ["prev", "next"], S = ({
8
8
  aria: a,
9
9
  tabs: e,
10
10
  activeTabIndex: t
11
11
  }) => {
12
- var r, i;
13
- if (!a || typeof a != "object" || Object.keys(a).length === 0 || !a["aria-label"] && !a["aria-labelledby"] || ((r = a["aria-label"]) == null ? void 0 : r.trim()) === "" && ((i = a["aria-labelledby"]) == null ? void 0 : i.trim()) === "")
12
+ if (!a || typeof a != "object" || Object.keys(a).length === 0 || !a["aria-label"] && !a["aria-labelledby"] || a["aria-label"]?.trim() === "" && a["aria-labelledby"]?.trim() === "")
14
13
  throw new Error(m("DSNavigationTabs", 'A valid "aria-label" or "aria-labelledby" property is required. Ensure the "aria" prop is a non-empty object and includes either "aria-label" or "aria-labelledby" with a non-empty string value.'));
15
14
  if (Array.isArray(e)) {
16
15
  if (e.length === 0)
@@ -20,19 +19,19 @@ const _ = ["left", "center"], j = ["prev", "next"], S = ({
20
19
  throw new Error(m("DSNavigationTabs", `Invalid activeTabIndex: ${t}. It must be between 0 and ${e.length - 1}.`));
21
20
  }, x = (a) => {
22
21
  const e = u.c(19);
23
- let t, r, i, s, o, l;
22
+ let t, r, l, s, o, i;
24
23
  e[0] !== a ? ({
25
24
  aria: r,
26
- tabs: l,
25
+ tabs: i,
27
26
  activeTabIndex: t,
28
27
  alignment: o,
29
- className: i,
28
+ className: l,
30
29
  ...s
31
- } = a, e[0] = a, e[1] = t, e[2] = r, e[3] = i, e[4] = s, e[5] = o, e[6] = l) : (t = e[1], r = e[2], i = e[3], s = e[4], o = e[5], l = e[6]);
30
+ } = a, e[0] = a, e[1] = t, e[2] = r, e[3] = l, e[4] = s, e[5] = o, e[6] = i) : (t = e[1], r = e[2], l = e[3], s = e[4], o = e[5], i = e[6]);
32
31
  const p = o === void 0 ? "left" : o;
33
32
  process.env.NODE_ENV !== "production" && S({
34
33
  aria: r,
35
- tabs: l,
34
+ tabs: i,
36
35
  activeTabIndex: t
37
36
  });
38
37
  const [c, N] = T(t);
@@ -41,16 +40,16 @@ const _ = ["left", "center"], j = ["prev", "next"], S = ({
41
40
  t != null && N(t);
42
41
  }, b = [t], e[7] = t, e[8] = n, e[9] = b) : (n = e[8], b = e[9]), y(n, b);
43
42
  let f;
44
- e[10] !== p || e[11] !== r || e[12] !== i || e[13] !== s || e[14] !== c || e[15] !== l ? (f = {
43
+ e[10] !== p || e[11] !== r || e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== i ? (f = {
45
44
  aria: r,
46
- tabs: l,
45
+ tabs: i,
47
46
  setSelectedTabIndex: N,
48
47
  selectedTabIndex: c,
49
48
  alignment: p,
50
- className: i,
49
+ className: l,
51
50
  isNavigation: !0,
52
51
  ...s
53
- }, e[10] = p, e[11] = r, e[12] = i, e[13] = s, e[14] = c, e[15] = l, e[16] = f) : f = e[16];
52
+ }, e[10] = p, e[11] = r, e[12] = l, e[13] = s, e[14] = c, e[15] = i, e[16] = f) : f = e[16];
54
53
  const g = f;
55
54
  let d;
56
55
  return e[17] !== g ? (d = /* @__PURE__ */ v(h, { ...g }), e[17] = g, e[18] = d) : d = e[18], d;