@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
@@ -1,72 +0,0 @@
1
- "use client";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- import { d as w } from "./index.CgTHIF3K.js";
4
- import { c as G } from "./index.CEyLAtio.js";
5
- import { D as q } from "./Fieldset.D7cLR5ze.js";
6
- import S from "react";
7
- import { g as x, r as N } from "./helpers.BbWkXTr3.js";
8
- import { D as z } from "./Checkbox.CiwriItT.js";
9
- import '../assets/CheckboxGroup.Dd-Huo7x.css';const F = "ds-checkbox-group_root_12fot_1", H = "ds-checkbox-group_root--horizontal_12fot_9", I = "ds-checkbox-group_root--invalid_12fot_12", g = {
10
- root: F,
11
- rootHorizontal: H,
12
- rootInvalid: I
13
- }, O = ({
14
- children: c,
15
- description: e,
16
- id: t,
17
- legend: s,
18
- systemFeedback: r
19
- }) => {
20
- if (!t && (e || r))
21
- throw new Error(x("DSCheckboxGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'));
22
- if (!s)
23
- throw new Error(x("DSCheckboxGroup", N("legend", "DSCheckboxGroup")));
24
- if (!c)
25
- throw new Error(x("DSCheckboxGroup", "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."));
26
- S.Children.forEach(c, (o) => {
27
- if (!S.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
28
- o.type !== z && Object.keys(o.type)[1] !== "_payload") {
29
- const i = S.isValidElement(o) ? `Currently you are passing a child of type: ${JSON.stringify(o.type)}.` : "Currently you are passing an invalid React element.";
30
- throw new Error(x("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${i} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
31
- }
32
- });
33
- }, A = (c) => {
34
- const e = w.c(29);
35
- let t, s, r, o, i, a, n, d, p, h, u;
36
- e[0] !== c ? ({
37
- children: t,
38
- legend: i,
39
- className: s,
40
- description: r,
41
- direction: d,
42
- disabled: p,
43
- id: o,
44
- invalid: h,
45
- required: u,
46
- systemFeedback: n,
47
- ...a
48
- } = c, e[0] = c, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = n, e[8] = d, e[9] = p, e[10] = h, e[11] = u) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], n = e[7], d = e[8], p = e[9], h = e[10], u = e[11]);
49
- const E = d === void 0 ? "vertical" : d, k = p === void 0 ? !1 : p, m = h === void 0 ? !1 : h, v = u === void 0 ? !1 : u;
50
- process.env.NODE_ENV !== "production" && O({
51
- children: t,
52
- description: r,
53
- id: o,
54
- legend: i,
55
- systemFeedback: n
56
- });
57
- const D = E === "horizontal", C = m && !!n;
58
- let b;
59
- e[12] !== D || e[13] !== C ? (b = G(g.root, {
60
- [g.rootHorizontal]: D,
61
- [g.rootInvalid]: C
62
- }), e[12] = D, e[13] = C, e[14] = b) : b = e[14];
63
- const y = b;
64
- let l;
65
- e[15] !== t || e[16] !== y ? (l = /* @__PURE__ */ _("div", { className: y, children: t }), e[15] = t, e[16] = y, e[17] = l) : l = e[17];
66
- let f;
67
- return e[18] !== s || e[19] !== r || e[20] !== k || e[21] !== o || e[22] !== m || e[23] !== i || e[24] !== v || e[25] !== a || e[26] !== n || e[27] !== l ? (f = /* @__PURE__ */ _(q, { id: o, legend: i, className: s, description: r, disabled: k, required: v, invalid: m, systemFeedback: n, ...a, children: l }), e[18] = s, e[19] = r, e[20] = k, e[21] = o, e[22] = m, e[23] = i, e[24] = v, e[25] = a, e[26] = n, e[27] = l, e[28] = f) : f = e[28], f;
68
- };
69
- export {
70
- A as D,
71
- O as v
72
- };
@@ -1,135 +0,0 @@
1
- "use client";
2
- import { jsx as F, jsxs as Z } from "react/jsx-runtime";
3
- import { d as ee } from "./index.CgTHIF3K.js";
4
- import { c as W } from "./index.CEyLAtio.js";
5
- import { useRef as Q, useState as oe, useEffect as U } from "react";
6
- import { D as te } from "./Button.Cf1CKq8N.js";
7
- import { g as le } from "./helpers.BbWkXTr3.js";
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
- root: se,
10
- contentWrapper: ne,
11
- contentWrapperNoFooter: re,
12
- closeButton: ce,
13
- header: ae,
14
- content: ie,
15
- footer: de,
16
- headerScrollable: fe,
17
- headerCloseButton: pe,
18
- contentNoFooter: ue,
19
- footerScrollable: he
20
- }, _e = ({
21
- tabIndex: c
22
- }) => {
23
- if (c || c === 0)
24
- throw new Error(le("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
25
- }, De = (c) => {
26
- const e = ee.c(59);
27
- let a, i, d, l, f, s, n, C, E, w;
28
- e[0] !== c ? ({
29
- children: a,
30
- className: i,
31
- closeButtonProps: d,
32
- disableBackdropClose: C,
33
- footer: l,
34
- header: f,
35
- hideCloseButton: E,
36
- isOpen: w,
37
- onClose: s,
38
- ...n
39
- } = c, e[0] = c, e[1] = a, e[2] = i, e[3] = d, e[4] = l, e[5] = f, e[6] = s, e[7] = n, e[8] = C, e[9] = E, e[10] = w) : (a = e[1], i = e[2], d = e[3], l = e[4], f = e[5], s = e[6], n = e[7], C = e[8], E = e[9], w = e[10]);
40
- const H = C === void 0 ? !1 : C, y = E === void 0 ? !1 : E, O = w === void 0 ? !1 : w;
41
- if (process.env.NODE_ENV !== "production") {
42
- const {
43
- tabIndex: o
44
- } = n;
45
- _e({
46
- tabIndex: o
47
- });
48
- }
49
- let p;
50
- e[11] !== d ? (p = d || {}, e[11] = d, e[12] = p) : p = e[12];
51
- let u, x;
52
- e[13] !== p ? ({
53
- label: x,
54
- ...u
55
- } = p, e[13] = p, e[14] = u, e[15] = x) : (u = e[14], x = e[15]);
56
- const I = x === void 0 ? "Close dialog" : x, r = Q(null), A = Q(null), [h, X] = oe(!1);
57
- let R, z;
58
- e[16] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
59
- const o = A.current;
60
- if (o) {
61
- const J = () => {
62
- X(o.scrollHeight > o.clientHeight);
63
- };
64
- J();
65
- const K = new ResizeObserver(J);
66
- return K.observe(o), () => {
67
- K.disconnect();
68
- };
69
- }
70
- }, z = [], e[16] = R, e[17] = z) : (R = e[16], z = e[17]), U(R, z);
71
- let L;
72
- e[18] !== O || e[19] !== s ? (L = [O, s], e[18] = O, e[19] = s, e[20] = L) : L = e[20], U(() => {
73
- const o = r.current;
74
- if (o)
75
- return o.addEventListener("close", G), O ? o.showModal() : o.close(), () => {
76
- o.removeEventListener("close", G);
77
- };
78
- }, L);
79
- const G = () => {
80
- s && s();
81
- };
82
- let M;
83
- e[21] !== H ? (M = (o) => {
84
- H || r.current && o.target === r.current && r.current.close();
85
- }, e[21] = H, e[22] = M) : M = e[22];
86
- const T = M;
87
- let P;
88
- e[23] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
89
- r.current && r.current.close();
90
- }, e[23] = P) : P = e[23];
91
- const Y = P;
92
- let _;
93
- e[24] !== i ? (_ = W(t.root, i), e[24] = i, e[25] = _) : _ = e[25];
94
- let m;
95
- e[26] !== T ? (m = (o) => T(o), e[26] = T, e[27] = m) : m = e[27];
96
- const V = !l;
97
- let v;
98
- e[28] !== V ? (v = W(t.contentWrapper, {
99
- [t.contentWrapperNoFooter]: V
100
- }), e[28] = V, e[29] = v) : v = e[29];
101
- let g;
102
- e[30] !== y || e[31] !== I || e[32] !== u ? (g = !y && /* @__PURE__ */ F(te, { ...u, className: t.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => Y(), children: I }), e[30] = y, e[31] = I, e[32] = u, e[33] = g) : g = e[33];
103
- const $ = !y;
104
- let b;
105
- e[34] !== h || e[35] !== $ ? (b = W(t.header, {
106
- [t.headerCloseButton]: $,
107
- [t.headerScrollable]: h
108
- }), e[34] = h, e[35] = $, e[36] = b) : b = e[36];
109
- let S;
110
- e[37] !== f || e[38] !== b ? (S = /* @__PURE__ */ F("header", { className: b, children: f }), e[37] = f, e[38] = b, e[39] = S) : S = e[39];
111
- const q = !l;
112
- let k;
113
- e[40] !== q ? (k = W(t.content, {
114
- [t.contentNoFooter]: q
115
- }), e[40] = q, e[41] = k) : k = e[41];
116
- let D;
117
- e[42] !== a || e[43] !== k ? (D = /* @__PURE__ */ F("div", { ref: A, className: k, tabIndex: 0, children: a }), e[42] = a, e[43] = k, e[44] = D) : D = e[44];
118
- let N;
119
- e[45] !== l || e[46] !== h ? (N = l && /* @__PURE__ */ F("footer", { className: W(t.footer, {
120
- [t.footerScrollable]: h
121
- }), children: l }), e[45] = l, e[46] = h, e[47] = N) : N = e[47];
122
- let B;
123
- e[48] !== v || e[49] !== g || e[50] !== S || e[51] !== D || e[52] !== N ? (B = /* @__PURE__ */ Z("div", { className: v, children: [
124
- g,
125
- S,
126
- D,
127
- N
128
- ] }), e[48] = v, e[49] = g, e[50] = S, e[51] = D, e[52] = N, e[53] = B) : B = e[53];
129
- let j;
130
- return e[54] !== n || e[55] !== _ || e[56] !== m || e[57] !== B ? (j = /* @__PURE__ */ F("dialog", { ...n, ref: r, className: _, onMouseDown: m, "aria-modal": "true", children: B }), e[54] = n, e[55] = _, e[56] = m, e[57] = B, e[58] = j) : j = e[58], j;
131
- };
132
- export {
133
- De as D,
134
- _e as v
135
- };
@@ -1,140 +0,0 @@
1
- "use client";
2
- import { jsx as x, jsxs as oe } from "react/jsx-runtime";
3
- import { d as re } from "./index.CgTHIF3K.js";
4
- import { c as F } from "./index.CEyLAtio.js";
5
- import { useRef as X, useState as se, useEffect as Y } from "react";
6
- import { D as ne } from "./Button.Cf1CKq8N.js";
7
- import { g as le } from "./helpers.BbWkXTr3.js";
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
- root: ce,
10
- rootEnd: ae,
11
- contentWrapper: ie,
12
- contentWrapperNoFooter: de,
13
- closeButton: fe,
14
- header: _e,
15
- content: pe,
16
- footer: ue,
17
- headerScrollable: be,
18
- headerCloseButton: he,
19
- contentNoFooter: me,
20
- footerScrollable: ve
21
- }, ge = ["start", "end"], we = ({
22
- tabIndex: c
23
- }) => {
24
- if (c || c === 0)
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
- }, ke = (c) => {
27
- const e = re.c(61);
28
- let a, i, d, r, f, s, n, E, g, k, O;
29
- e[0] !== c ? ({
30
- children: a,
31
- className: i,
32
- closeButtonProps: d,
33
- disableBackdropClose: E,
34
- footer: r,
35
- header: f,
36
- hideCloseButton: g,
37
- position: k,
38
- isOpen: O,
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
- 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
- if (process.env.NODE_ENV !== "production") {
44
- const {
45
- tabIndex: t
46
- } = n;
47
- we({
48
- tabIndex: t
49
- });
50
- }
51
- let _;
52
- e[12] !== d ? (_ = d || {}, e[12] = d, e[13] = _) : _ = e[13];
53
- let p, W;
54
- e[14] !== _ ? ({
55
- label: W,
56
- ...p
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] = se(!1);
59
- let I, P;
60
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
61
- const t = J.current;
62
- if (t) {
63
- const Q = () => {
64
- ee(t.scrollHeight > t.clientHeight);
65
- };
66
- Q();
67
- const U = new ResizeObserver(Q);
68
- return U.observe(t), () => {
69
- U.disconnect();
70
- };
71
- }
72
- }, P = [], e[17] = I, e[18] = P) : (I = e[17], P = e[18]), Y(I, P);
73
- let z;
74
- e[19] !== y || e[20] !== s ? (z = [y, s], e[19] = y, e[20] = s, e[21] = z) : z = e[21], Y(() => {
75
- const t = l.current;
76
- if (t)
77
- return t.addEventListener("close", K), y ? t.showModal() : t.close(), () => {
78
- t.removeEventListener("close", K);
79
- };
80
- }, z);
81
- const K = () => {
82
- s && s();
83
- };
84
- let L;
85
- e[22] !== H ? (L = (t) => {
86
- H || l.current && t.target === l.current && l.current.close();
87
- }, e[22] = H, e[23] = L) : L = e[23];
88
- const A = L;
89
- let M;
90
- e[24] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
91
- l.current && l.current.close();
92
- }, e[24] = M) : M = e[24];
93
- const te = M, V = Z === "end";
94
- let b;
95
- e[25] !== V ? (b = F(o.root, {
96
- [o.rootEnd]: V
97
- }), e[25] = V, e[26] = b) : b = e[26];
98
- let h;
99
- e[27] !== A ? (h = (t) => A(t), e[27] = A, e[28] = h) : h = e[28];
100
- const $ = !r;
101
- let m;
102
- e[29] !== i || e[30] !== $ ? (m = F(o.contentWrapper, i, {
103
- [o.contentWrapperNoFooter]: $
104
- }), e[29] = i, e[30] = $, e[31] = m) : m = e[31];
105
- let v;
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
- const q = !R;
108
- let w;
109
- e[36] !== u || e[37] !== q ? (w = F(o.header, {
110
- [o.headerCloseButton]: q,
111
- [o.headerScrollable]: u
112
- }), e[36] = u, e[37] = q, e[38] = w) : w = e[38];
113
- let S;
114
- e[39] !== f || e[40] !== w ? (S = /* @__PURE__ */ x("header", { className: w, children: f }), e[39] = f, e[40] = w, e[41] = S) : S = e[41];
115
- const G = !r;
116
- let D;
117
- e[42] !== G ? (D = F(o.content, {
118
- [o.contentNoFooter]: G
119
- }), e[42] = G, e[43] = D) : D = e[43];
120
- let N;
121
- e[44] !== a || e[45] !== D ? (N = /* @__PURE__ */ x("div", { ref: J, className: D, tabIndex: 0, children: a }), e[44] = a, e[45] = D, e[46] = N) : N = e[46];
122
- let B;
123
- e[47] !== r || e[48] !== u ? (B = r && /* @__PURE__ */ x("footer", { className: F(o.footer, {
124
- [o.footerScrollable]: u
125
- }), children: r }), e[47] = r, e[48] = u, e[49] = B) : B = e[49];
126
- let C;
127
- e[50] !== m || e[51] !== v || e[52] !== S || e[53] !== N || e[54] !== B ? (C = /* @__PURE__ */ oe("div", { className: m, children: [
128
- v,
129
- S,
130
- N,
131
- B
132
- ] }), e[50] = m, e[51] = v, e[52] = S, e[53] = N, e[54] = B, e[55] = C) : C = e[55];
133
- let 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
- };
136
- export {
137
- ke as D,
138
- ge as a,
139
- we as v
140
- };
@@ -1,74 +0,0 @@
1
- "use client";
2
- import { jsxs as p, jsx as i, Fragment as j } from "react/jsx-runtime";
3
- import { c as m } from "./index.CEyLAtio.js";
4
- import "react";
5
- import { Asterisk as y } from "../asterisk.CR60hx8S.js";
6
- import { DSHeading as M } from "../heading.BXFBZhKv.js";
7
- import { D as x } from "./SystemFeedback.CyGbUCzT.js";
8
- import { g as D } from "./helpers.BbWkXTr3.js";
9
- import "./index.CgTHIF3K.js";
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 = {
11
- root: E,
12
- childWrapper: q,
13
- legend: C,
14
- legendUtilityM: P,
15
- description: T,
16
- descriptionSmall: U,
17
- systemFeedback: W
18
- }, z = ({
19
- description: a,
20
- id: e,
21
- legend: l,
22
- systemFeedback: t
23
- }) => {
24
- if (!e && (a || t))
25
- throw new Error(D("DSFieldset", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'));
26
- if (!l)
27
- throw new Error(D("DSFieldset", "The legend prop is required. Please add the legend prop to the DSFieldset component."));
28
- }, G = ({
29
- children: a,
30
- legend: e,
31
- className: l,
32
- description: t,
33
- disabled: b = !1,
34
- id: n,
35
- invalid: c = !1,
36
- required: f = !1,
37
- systemFeedback: o,
38
- ...u
39
- }) => {
40
- process.env.NODE_ENV !== "production" && z({
41
- description: t,
42
- id: n,
43
- legend: e,
44
- systemFeedback: o
45
- });
46
- let d, g, _;
47
- const r = typeof e == "object" && e !== void 0;
48
- r && ({
49
- headingSize: d,
50
- headingTag: g,
51
- headingText: _
52
- } = e);
53
- const h = `${n}-feedback`, S = `${n}-description`, F = [c && o && h, t && S].filter(Boolean).join(" ") || void 0, N = !r || d === "small" || d === "small-uppercase", v = m(s.root, l), k = m(s.legend, {
54
- [s.legendUtilityM]: !r
55
- }), w = m(s.description, {
56
- [s.descriptionSmall]: N
57
- });
58
- return /* @__PURE__ */ p("fieldset", { className: v, disabled: b, ...u, "aria-invalid": c, "aria-describedby": F, children: [
59
- /* @__PURE__ */ i("legend", { className: k, children: r ? /* @__PURE__ */ p(M, { tag: g, size: d, children: [
60
- _,
61
- f && /* @__PURE__ */ i(y, {})
62
- ] }) : /* @__PURE__ */ p(j, { children: [
63
- e,
64
- f && /* @__PURE__ */ i(y, {})
65
- ] }) }),
66
- t && /* @__PURE__ */ i("span", { id: S, className: w, children: t }),
67
- c && o && /* @__PURE__ */ i(x, { id: h, variant: "error", message: o, className: s.systemFeedback }),
68
- /* @__PURE__ */ i("div", { className: s.childWrapper, children: a })
69
- ] });
70
- };
71
- export {
72
- G as D,
73
- z as v
74
- };