@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48

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 (311) hide show
  1. package/{accordion.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
  2. package/actionbutton.C8hePX-D.js +12 -0
  3. package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
  4. package/actionlink.dccc5JQV.js +12 -0
  5. package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
  6. package/assets/Accordion.RlqWqpGo.css +1 -0
  7. package/assets/ActionButton.Dw2FeIaW.css +1 -0
  8. package/assets/ActionCard.viEoC26n.css +1 -0
  9. package/assets/ActionLink.B1Jjaf7k.css +1 -0
  10. package/assets/Breadcrumb.BJ6sa2am.css +1 -0
  11. package/assets/Button.Bi1KUKMv.css +1 -0
  12. package/assets/Checkbox.C6RWhy0V.css +1 -0
  13. package/assets/Chip.DfamkUPw.css +1 -0
  14. package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
  15. package/assets/Dialog.6AkQo8ew.css +1 -0
  16. package/assets/Drawer.CDOlX809.css +1 -0
  17. package/assets/Fieldset.BbLGXCWa.css +1 -0
  18. package/assets/Flag.qP1xbolI.css +1 -0
  19. package/assets/Header.CSPbSqR5.css +1 -0
  20. package/assets/InputFile.CDtghZtl.css +1 -0
  21. package/assets/InputNumber.BNpO9p7n.css +1 -0
  22. package/assets/InputPassword.BgZo-RUc.css +1 -0
  23. package/assets/InputSearch.BROFFTK9.css +1 -0
  24. package/assets/LinkButton.IKIlFnpH.css +1 -0
  25. package/assets/LinkCard.pJtgJRIh.css +1 -0
  26. package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
  27. package/assets/Notification.2B81JHOp.css +1 -0
  28. package/assets/Pagination.DH71DZ0j.css +1 -0
  29. package/assets/Popover.58Tb0dOt.css +1 -0
  30. package/assets/Select.CfTN3CJo.css +1 -0
  31. package/assets/Slider.B4kzL60S.css +1 -0
  32. package/assets/Stepper.BCpjMiOX.css +1 -0
  33. package/assets/SystemFeedback.DVMml_h9.css +1 -0
  34. package/assets/TextUtility.BThulfyl.css +1 -0
  35. package/assets/Textarea.BO4AcRJD.css +1 -0
  36. package/assets/Toast.ChXfv24m.css +1 -0
  37. package/assets/buttonround.syTU1QSI.css +1 -0
  38. package/assets/chipgroup.DtCnsmS7.css +1 -0
  39. package/assets/filelist.B-Ru0GP_.css +1 -0
  40. package/assets/input.Dy8VS73e.css +1 -0
  41. package/assets/link.EZrauC8s.css +1 -0
  42. package/assets/numberindicator.CtbitPQ8.css +1 -0
  43. package/assets/optioncheckbox.BwkbIDOt.css +1 -0
  44. package/assets/progressindicator.tyY_RVQ9.css +1 -0
  45. package/assets/radio.9hUUyg8R.css +1 -0
  46. package/assets/step.DOAmuuEQ.css +1 -0
  47. package/assets/switch.8v7Wp1Fj.css +1 -0
  48. package/assets/tabpane.DDaeSDQb.css +1 -0
  49. package/assets/text.BwGsYzGM.css +1 -0
  50. package/assets/tooltip.C_BL2kou.css +1 -0
  51. package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
  52. package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
  53. package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
  54. package/buttonround.BO7_ewzA.js +101 -0
  55. package/checkbox.C9kyIY9P.js +11 -0
  56. package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
  57. package/chip.5ktNLRYf.js +12 -0
  58. package/chipgroup.kRU3Z98U.js +226 -0
  59. package/chunks/Accordion.gih2ni1d.js +179 -0
  60. package/chunks/ActionButton.B-wm5sUy.js +194 -0
  61. package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
  62. package/chunks/ActionLink.D0KzqbH4.js +166 -0
  63. package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
  64. package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
  65. package/chunks/Button.CCol--xy.js +165 -0
  66. package/chunks/Checkbox.BxOGR1bR.js +96 -0
  67. package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
  68. package/chunks/Chip.DffaXMkV.js +148 -0
  69. package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
  70. package/chunks/Dialog.guuxflWL.js +101 -0
  71. package/chunks/Drawer.CjUZu6GW.js +106 -0
  72. package/chunks/Fieldset.BBMuLKps.js +94 -0
  73. package/chunks/Flag.CbQYBzVC.js +74 -0
  74. package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
  75. package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
  76. package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
  77. package/chunks/InputFile.y71Cd5J9.js +260 -0
  78. package/chunks/InputNumber.Fn2YbF_s.js +250 -0
  79. package/chunks/InputPassword.DtT9yrlx.js +129 -0
  80. package/chunks/InputSearch.BoAfGqoH.js +157 -0
  81. package/chunks/LinkButton.BxG7fx1O.js +150 -0
  82. package/chunks/LinkCard.DM-5WrSt.js +200 -0
  83. package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
  84. package/chunks/NavigationTabList.thzA1pU8.js +68 -0
  85. package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
  86. package/chunks/Notification.C_o7Ge6Q.js +91 -0
  87. package/chunks/Pagination.BrOMUJMi.js +272 -0
  88. package/chunks/Popover.CxZZ_y1Z.js +230 -0
  89. package/chunks/RadioGroup.CO91_5hA.js +136 -0
  90. package/chunks/Select.EzoMdk1u.js +157 -0
  91. package/chunks/Slider.CX38t4Sk.js +330 -0
  92. package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
  93. package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
  94. package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
  95. package/chunks/Text.utils.DzlY9pJS.js +9 -0
  96. package/chunks/TextUtility.BZLwqyic.js +82 -0
  97. package/chunks/Textarea.vuJgvW6_.js +192 -0
  98. package/chunks/Toast.V_ZUAsf2.js +76 -0
  99. package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
  100. package/chunks/translate.DSb-TdWR.js +2460 -0
  101. package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
  102. package/components/Accordion/Accordion.d.ts +5 -0
  103. package/components/ActionButton/ActionButton.d.ts +5 -1
  104. package/components/ActionLink/ActionLink.d.ts +1 -1
  105. package/components/Button/Button.utils.d.ts +1 -1
  106. package/components/Checkbox/Checkbox.d.ts +8 -1
  107. package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
  108. package/components/ChipGroup/Chip.d.ts +2 -0
  109. package/components/ChipGroup/ChipGroup.d.ts +12 -2
  110. package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
  111. package/components/Combobox/Combobox.utils.d.ts +66 -9
  112. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
  113. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
  114. package/components/Fieldset/Fieldset.d.ts +9 -2
  115. package/components/Flag/Flag.d.ts +3 -3
  116. package/components/Flag/Flag.utils.d.ts +7 -2
  117. package/components/Input/Input.d.ts +8 -1
  118. package/components/InputFile/FileList/FileList.d.ts +4 -2
  119. package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
  120. package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
  121. package/components/InputFile/InputFile.d.ts +12 -2
  122. package/components/InputFile/InputFile.utils.d.ts +41 -23
  123. package/components/InputNumber/InputNumber.d.ts +8 -1
  124. package/components/InputPassword/InputPassword.d.ts +8 -1
  125. package/components/InputSearch/InputSearch.d.ts +8 -1
  126. package/components/LinkCard/LinkCard.d.ts +10 -4
  127. package/components/LinkCard/LinkCard.utils.d.ts +2 -2
  128. package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
  129. package/components/Pagination/Pagination.d.ts +10 -3
  130. package/components/Pagination/Pagination.utils.d.ts +22 -9
  131. package/components/Popover/Popover.d.ts +9 -1
  132. package/components/Popover/Popover.utils.d.ts +3 -2
  133. package/components/Radio/Radio.d.ts +5 -0
  134. package/components/RadioGroup/RadioGroup.d.ts +8 -0
  135. package/components/Select/Select.d.ts +8 -1
  136. package/components/Slider/Slider.d.ts +8 -1
  137. package/components/Stepper/Step.d.ts +1 -1
  138. package/components/Stepper/Step.utils.d.ts +1 -1
  139. package/components/Stepper/Stepper.d.ts +4 -1
  140. package/components/Stepper/Stepper.utils.d.ts +9 -4
  141. package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
  142. package/components/Textarea/Textarea.d.ts +8 -1
  143. package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
  144. package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
  145. package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
  146. package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
  147. package/filelist.GrEwoM1u.js +143 -0
  148. package/filepreview.B2Ot9SZ7.js +97 -0
  149. package/flag.fX6LAgty.js +10 -0
  150. package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
  151. package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
  152. package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
  153. package/index.es.js +231 -230
  154. package/input.Dh0ws-9j.js +187 -0
  155. package/inputfile.DiZh3GcT.js +17 -0
  156. package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
  157. package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
  158. package/inputsearch.BrsIDUSW.js +14 -0
  159. package/link.DEZDbUgq.js +81 -0
  160. package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
  161. package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
  162. package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
  163. package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
  164. package/navigationtablist.n9DrtYe5.js +10 -0
  165. package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
  166. package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
  167. package/numberindicator.DsK65Bj3.js +39 -0
  168. package/optioncheckbox.tlMEoyT0.js +48 -0
  169. package/package.json +38 -33
  170. package/pagination.B7Hrx_sk.js +14 -0
  171. package/partials/index.js +91 -91
  172. package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
  173. package/progressindicator.D9CfVD95.js +74 -0
  174. package/radio.DjToa2aV.js +148 -0
  175. package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
  176. package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
  177. package/select.DTZ6a6Ag.js +13 -0
  178. package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
  179. package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
  180. package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
  181. package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
  182. package/step.DCQ6CawJ.js +82 -0
  183. package/stepper.D7-7BdSv.js +15 -0
  184. package/styles/js/index.d.ts +1 -0
  185. package/styles/js/index.es.js +24 -4
  186. package/styles/js/lib/spacing-rem.d.ts +21 -0
  187. package/styles/js/lib/spacing.d.ts +0 -1
  188. package/styles/scss/ds/index.scss +4 -1
  189. package/styles/scss/ds/lib/border-width.scss +3 -0
  190. package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
  191. package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
  192. package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
  193. package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
  194. package/styles/scss/ds/lib/grid-narrow.scss +1 -0
  195. package/styles/scss/ds/lib/input.scss +12 -7
  196. package/styles/scss/ds/lib/link.scss +2 -2
  197. package/styles/scss/ds/lib/radius.scss +5 -0
  198. package/styles/scss/ds/lib/spacing-rem.scss +19 -0
  199. package/styles/scss/ds/lib/spacing.scss +0 -1
  200. package/switch.tM2XBag8.js +66 -0
  201. package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
  202. package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
  203. package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
  204. package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
  205. package/text.BEO_ZfJq.js +72 -0
  206. package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
  207. package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
  208. package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
  209. package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
  210. package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
  211. package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
  212. package/utils/translate.d.ts +22 -6
  213. package/actionbutton.D6qmbuAA.js +0 -12
  214. package/actionlink.fWwe7J0H.js +0 -12
  215. package/assets/Accordion.Cr1dbVTH.css +0 -1
  216. package/assets/ActionButton.BLOWs6IZ.css +0 -1
  217. package/assets/ActionCard.BG8w8xUC.css +0 -1
  218. package/assets/ActionLink.BJDUVdT7.css +0 -1
  219. package/assets/Breadcrumb.BavNNzAA.css +0 -1
  220. package/assets/Button.C-UYIggc.css +0 -1
  221. package/assets/Checkbox.ZAPIO2N8.css +0 -1
  222. package/assets/Chip.D3vV0wyV.css +0 -1
  223. package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
  224. package/assets/Dialog.BKwWy1g2.css +0 -1
  225. package/assets/Drawer.BU-fi5Hk.css +0 -1
  226. package/assets/Fieldset.DCmr1Yir.css +0 -1
  227. package/assets/Header.BNYL2Y78.css +0 -1
  228. package/assets/InputFile.BUMCNCrj.css +0 -1
  229. package/assets/InputNumber.Bmz8cNKg.css +0 -1
  230. package/assets/InputPassword.CutbykTm.css +0 -1
  231. package/assets/InputSearch.Sr9jVpKt.css +0 -1
  232. package/assets/LinkButton.CxJvjEY5.css +0 -1
  233. package/assets/LinkCard.DkQoQJxx.css +0 -1
  234. package/assets/NavigationTabList.DYjNT2Di.css +0 -1
  235. package/assets/Notification.DBGpHzov.css +0 -1
  236. package/assets/Pagination.DZ1yCAMR.css +0 -1
  237. package/assets/Popover.mL5g23EK.css +0 -1
  238. package/assets/Select.BZYb_HAG.css +0 -1
  239. package/assets/Slider.vnSU0ya0.css +0 -1
  240. package/assets/Stepper.tXJl15yL.css +0 -1
  241. package/assets/SystemFeedback.PKzqnXUe.css +0 -1
  242. package/assets/TextUtility.CEBJaKBG.css +0 -1
  243. package/assets/Textarea.BIgA9_fl.css +0 -1
  244. package/assets/Toast.CGl8z6mX.css +0 -1
  245. package/assets/buttonround.CMrJRIeW.css +0 -1
  246. package/assets/chipgroup.BGxjdSDX.css +0 -1
  247. package/assets/filelist.CHVupL8T.css +0 -1
  248. package/assets/flag.CyCIPu_J.css +0 -1
  249. package/assets/input.BEOus9jX.css +0 -1
  250. package/assets/link.Dcsio57m.css +0 -1
  251. package/assets/numberindicator.BYIPwkAK.css +0 -1
  252. package/assets/optioncheckbox.6zYgifUk.css +0 -1
  253. package/assets/progressindicator.Cbbzo5-b.css +0 -1
  254. package/assets/radio.l9OTraQU.css +0 -1
  255. package/assets/step.Ch508u7I.css +0 -1
  256. package/assets/switch.DYamtd9O.css +0 -1
  257. package/assets/tabpane.o34hshTz.css +0 -1
  258. package/assets/text.BA1eUihR.css +0 -1
  259. package/assets/tooltip.BPcysHGE.css +0 -1
  260. package/buttonround.DZCu35Zw.js +0 -101
  261. package/checkbox.RYvu23i4.js +0 -12
  262. package/chip.CtZK5gH7.js +0 -12
  263. package/chipgroup.C-UJt9Nb.js +0 -213
  264. package/chunks/Accordion.Tz7cWkk5.js +0 -173
  265. package/chunks/ActionButton.Dqay6Dxt.js +0 -188
  266. package/chunks/ActionLink.BgWqWSKi.js +0 -161
  267. package/chunks/Button.Dauhc5op.js +0 -160
  268. package/chunks/Checkbox.C5Jgtwho.js +0 -88
  269. package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
  270. package/chunks/Chip.DXS_ZMGD.js +0 -157
  271. package/chunks/Dialog.mP1tZEbW.js +0 -102
  272. package/chunks/Drawer.D6IG0DRe.js +0 -107
  273. package/chunks/Fieldset.DxhNhprT.js +0 -91
  274. package/chunks/InputFile.BSGunqyW.js +0 -260
  275. package/chunks/InputNumber.BsBAdxWr.js +0 -240
  276. package/chunks/InputPassword.hZYiAKYC.js +0 -121
  277. package/chunks/InputSearch.Dp3x5RE4.js +0 -149
  278. package/chunks/LinkButton.DHcfHamd.js +0 -150
  279. package/chunks/LinkCard.DV-V9qHd.js +0 -197
  280. package/chunks/NavigationTabList.BIApwNzg.js +0 -68
  281. package/chunks/Notification.DeedcinQ.js +0 -91
  282. package/chunks/Pagination.DhD8i5AV.js +0 -247
  283. package/chunks/Popover.Cyf3CbLl.js +0 -221
  284. package/chunks/RadioGroup.D3omhLuC.js +0 -130
  285. package/chunks/Select.DOeJaqzM.js +0 -147
  286. package/chunks/Slider.d3gCkWL_.js +0 -309
  287. package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
  288. package/chunks/Text.utils.D_iOyOSH.js +0 -11
  289. package/chunks/TextUtility.Wbd4oQXI.js +0 -82
  290. package/chunks/Textarea.DhRMfiWu.js +0 -181
  291. package/chunks/Toast.KMEq0p-E.js +0 -76
  292. package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
  293. package/chunks/translate.nuU7uChI.js +0 -8
  294. package/filelist.BaYCDtxD.js +0 -128
  295. package/filepreview.BCslhbM5.js +0 -94
  296. package/flag.DyZLEgAw.js +0 -50
  297. package/input.DNdSFW5k.js +0 -175
  298. package/inputfile.CTXJ_ZSi.js +0 -18
  299. package/inputsearch.JLM0fNPt.js +0 -15
  300. package/link.CArLlIsR.js +0 -81
  301. package/navigationtablist.BerRIzu-.js +0 -10
  302. package/numberindicator.ZGVRSmqf.js +0 -36
  303. package/optioncheckbox.BQo8riVL.js +0 -48
  304. package/pagination.Dm1WnFhY.js +0 -14
  305. package/progressindicator.1JRFwf-H.js +0 -53
  306. package/radio.DxdVKoxe.js +0 -137
  307. package/select.DVuQMz7l.js +0 -14
  308. package/step.CDNmsF4m.js +0 -82
  309. package/stepper.D0kSuiYh.js +0 -16
  310. package/switch.pN105F5-.js +0 -66
  311. package/text.D_e3JBvf.js +0 -72
@@ -1,247 +0,0 @@
1
- "use client";
2
- import { jsx as v, jsxs as Ae } from "react/jsx-runtime";
3
- import { d as Ie } from "./index.cKLI89Eg.js";
4
- import { c as R } from "./index.DQOqod3i.js";
5
- import { isValidElement as he, useState as me, useEffect as fe, cloneElement as ue } from "react";
6
- import { t as xe } from "./translate.nuU7uChI.js";
7
- import { u as Me } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
8
- import { f as Ce } from "./AriaLiveRegions.utils.8ofDlHnN.js";
9
- import { D as ve } from "./Button.Dauhc5op.js";
10
- import { D as _e } from "./LinkButton.DHcfHamd.js";
11
- import { g as u, r as pe } from "./helpers.CexwVao7.js";
12
- import '../assets/Pagination.DZ1yCAMR.css';const Le = "ds-pagination_list_rwmgf_1", Be = "ds-pagination_list--center_rwmgf_8", Te = "ds-pagination_list--right_rwmgf_11", ke = "ds-pagination_item_rwmgf_15", Oe = "ds-pagination_item-prev-button-wrapper_rwmgf_19", $e = "ds-pagination_item-next-button-wrapper_rwmgf_22", Re = "ds-pagination_prev-next-button_rwmgf_26", We = "ds-pagination_page-button_rwmgf_59", ze = "ds-pagination_page-button--active_rwmgf_110", Ve = "ds-pagination_ellipsis_rwmgf_137", je = "ds-pagination_divider_rwmgf_145", p = {
13
- list: Le,
14
- listCenter: Be,
15
- listRight: Te,
16
- item: ke,
17
- itemPrevButtonWrapper: Oe,
18
- itemNextButtonWrapper: $e,
19
- prevNextButton: Re,
20
- pageButton: We,
21
- pageButtonActive: ze,
22
- ellipsis: Ve,
23
- divider: je
24
- }, Ne = "(max-width: 518px)", Pe = "(max-width: 428px)", be = () => typeof window > "u" ? 9 : window.matchMedia(Pe).matches ? 5 : window.matchMedia(Ne).matches ? 7 : 9, Ge = (r, e, t) => {
25
- const s = [];
26
- if (r <= t) {
27
- for (let i = 0; i < r; i++)
28
- s.push({
29
- type: "page",
30
- pageIndex: i
31
- });
32
- return s;
33
- }
34
- const h = t - 4;
35
- let o = e - Math.floor((h - 1) / 2), d = o + h - 1;
36
- o <= 2 && (o = 1, d = t - 3), d >= r - 3 && (d = r - 2, o = r - t + 2);
37
- const l = [0];
38
- for (let i = o; i <= d; i++)
39
- l.push(i);
40
- return l.push(r - 1), l.forEach((i, N) => {
41
- const _ = l[N - 1];
42
- _ !== void 0 && i - _ > 1 && s.push({
43
- type: "ellipsis",
44
- id: `ellipsis-${_}-${i}`
45
- }), s.push({
46
- type: "page",
47
- pageIndex: i
48
- });
49
- }), s;
50
- }, Qe = (r) => {
51
- const e = [];
52
- return r.forEach((t, s) => {
53
- s > 0 && e.push({
54
- type: "divider",
55
- id: `divider-${s}`
56
- }), e.push(t);
57
- }), e;
58
- }, Ue = (r, e, t) => Qe(Ge(r, e, t)), qe = {
59
- previousPage: "Previous page",
60
- nextPage: "Next page",
61
- page: "Page {0}",
62
- pageOf: "Page {0} of {1} loaded"
63
- }, Ye = {
64
- previousPage: "Vorherige Seite",
65
- nextPage: "Nächste Seite",
66
- // {0} is the activePageIndex + 1
67
- page: "Seite {0}",
68
- // {0} is the activePageIndex + 1, {1} is the total pages
69
- pageOf: "Seite {0} von {1} geladen"
70
- }, we = {
71
- en: qe,
72
- de: Ye
73
- }, Fe = ({
74
- activePageIndex: r,
75
- aria: e,
76
- itemsPerPage: t,
77
- links: s,
78
- totalItemsCount: h
79
- }) => {
80
- if (!e || typeof e != "object" || Object.keys(e).length === 0 || !e["aria-label"] && !e["aria-labelledby"] || e["aria-label"]?.trim() === "" && e["aria-labelledby"]?.trim() === "")
81
- throw new Error(u("DSPagination", '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.'));
82
- if (typeof h != "number" || Number.isNaN(h))
83
- throw new Error(u("DSPagination", pe("totalItemsCount", "DSPagination")));
84
- if (h < 0)
85
- throw new Error(u("DSPagination", 'The "totalItemsCount" prop must be zero or a positive number.'));
86
- if (typeof t != "number" || Number.isNaN(t))
87
- throw new Error(u("DSPagination", pe("itemsPerPage", "DSPagination")));
88
- if (t <= 0)
89
- throw new Error(u("DSPagination", 'The "itemsPerPage" prop must be greater than 0.'));
90
- if (typeof r != "number" || Number.isNaN(r) || !Number.isInteger(r))
91
- throw new Error(u("DSPagination", pe("activePageIndex", "DSPagination")));
92
- const o = Math.max(1, Math.ceil(h / Math.max(1, t)));
93
- if (r < 0 || r > o - 1)
94
- throw new Error(u("DSPagination", `The "activePageIndex" must be between 0 and ${o - 1}.`));
95
- if (s && !Array.isArray(s))
96
- throw new Error(u("DSPagination", 'The "links" prop must be an array when provided.'));
97
- Array.isArray(s) && s.forEach(({
98
- href: d,
99
- wrapper: l
100
- }, i) => {
101
- if (l && !he(l))
102
- throw new Error(u("DSPagination", `The link with label "${i + 1}" provided an invalid ReactElement as wrapper property.`));
103
- l && d && console.warn(u("DSPagination", `The link with label "${i + 1}" has both a wrapper and an href property. Please use only one.`)), l && he(l) && l.props?.children && console.warn(u("DSPagination", `The link with label "${i + 1}" contains a wrapper with children. Please remove the children, as they will be replaced.`));
104
- });
105
- }, rt = (r) => {
106
- const e = Ie.c(76);
107
- let t, s, h, o, d, l, i, N, _, k, W;
108
- e[0] !== r ? ({
109
- aria: t,
110
- activePageIndex: i,
111
- itemsPerPage: h,
112
- totalItemsCount: k,
113
- className: s,
114
- alignment: N,
115
- lang: _,
116
- links: o,
117
- translations: W,
118
- onPageChange: d,
119
- ...l
120
- } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = h, e[4] = o, e[5] = d, e[6] = l, e[7] = i, e[8] = N, e[9] = _, e[10] = k, e[11] = W) : (t = e[1], s = e[2], h = e[3], o = e[4], d = e[5], l = e[6], i = e[7], N = e[8], _ = e[9], k = e[10], W = e[11]);
121
- const P = i === void 0 ? 0 : i, de = N === void 0 ? "right" : N, Se = _ === void 0 ? "en" : _, w = typeof d == "function", [ye, ge] = me(P), n = w ? P : ye, [ie, De] = me(be);
122
- let z, V;
123
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => {
124
- const a = window.matchMedia(Ne), c = window.matchMedia(Pe), g = () => {
125
- De(be());
126
- };
127
- return a.addEventListener("change", g), c.addEventListener("change", g), () => {
128
- a.removeEventListener("change", g), c.removeEventListener("change", g);
129
- };
130
- }, V = [], e[12] = z, e[13] = V) : (z = e[12], V = e[13]), Me(z, V), process.env.NODE_ENV !== "production" && Fe({
131
- aria: t,
132
- itemsPerPage: h,
133
- totalItemsCount: k,
134
- activePageIndex: P,
135
- links: o
136
- });
137
- const f = Math.max(1, Math.ceil(k / Math.max(1, h))), ne = W || we[Se] || we.en;
138
- let j;
139
- e[14] !== ne ? (j = xe(ne), e[14] = ne, e[15] = j) : j = e[15];
140
- const m = j;
141
- let G, Q;
142
- e[16] !== n || e[17] !== m || e[18] !== f ? (G = () => {
143
- const a = m("pageOf", [`${n + 1}`, `${f}`]);
144
- Ce(a, "DSPagination");
145
- }, Q = [n, f, m], e[16] = n, e[17] = m, e[18] = f, e[19] = G, e[20] = Q) : (G = e[19], Q = e[20]), fe(G, Q);
146
- let U, q;
147
- e[21] !== P || e[22] !== w ? (q = () => {
148
- w || ge(P);
149
- }, U = [P, w], e[21] = P, e[22] = w, e[23] = U, e[24] = q) : (U = e[23], q = e[24]), fe(q, U);
150
- let Y;
151
- e[25] !== n || e[26] !== f || e[27] !== ie ? (Y = Ue(f, n, ie), e[25] = n, e[26] = f, e[27] = ie, e[28] = Y) : Y = e[28];
152
- const ae = Y;
153
- let F;
154
- e[29] !== n || e[30] !== w || e[31] !== d ? (F = (a, c) => {
155
- if (!c.defaultPrevented && a !== n) {
156
- if (w) {
157
- d?.(a);
158
- return;
159
- }
160
- ge(a);
161
- }
162
- }, e[29] = n, e[30] = w, e[31] = d, e[32] = F) : F = e[32];
163
- const D = F;
164
- let H;
165
- e[33] !== n || e[34] !== D || e[35] !== o || e[36] !== m ? (H = (a) => {
166
- const {
167
- href: c,
168
- wrapper: g
169
- } = o?.[a] || {}, B = `${a + 1}`, $ = a === n, T = m("page", [B]), b = $ ? "page" : void 0, te = R(p.pageButton, {
170
- [p.pageButtonActive]: $
171
- }), S = (Ee) => {
172
- D(a, Ee);
173
- }, y = /* @__PURE__ */ v(_e, { className: te, size: "small", variant: "ghost", href: g ? void 0 : c, "aria-label": g ? void 0 : T, "aria-current": g ? void 0 : b, onClick: g ? void 0 : S, children: B });
174
- return g ? ue(g, {
175
- "aria-label": T,
176
- "aria-current": b,
177
- onClick: S,
178
- children: y
179
- }) : c ? y : /* @__PURE__ */ v(ve, { type: "button", className: te, "aria-label": T, "aria-current": b, size: "small", variant: "ghost", onClick: S, children: B });
180
- }, e[33] = n, e[34] = D, e[35] = o, e[36] = m, e[37] = H) : H = e[37];
181
- const O = H;
182
- let J;
183
- e[38] !== D || e[39] !== o ? (J = (a, c, g, B, $) => {
184
- const {
185
- href: T,
186
- wrapper: b
187
- } = o?.[a] || {}, te = !B && o && (T || b), S = (y) => {
188
- D(a, y);
189
- };
190
- if (te) {
191
- const y = /* @__PURE__ */ v(_e, { className: $, iconName: c, hideLabel: !0, size: "small", variant: "filled", href: b ? void 0 : T, onClick: b ? void 0 : S, children: g });
192
- return b ? ue(b, {
193
- children: y,
194
- onClick: S
195
- }) : y;
196
- }
197
- return /* @__PURE__ */ v(ve, { type: "button", className: $, iconName: c, disabled: B, hideLabel: !0, variant: "filled", size: "small", onClick: S, children: g });
198
- }, e[38] = D, e[39] = o, e[40] = J) : J = e[40];
199
- const E = J, re = de === "center", se = de === "right";
200
- let K;
201
- e[41] !== re || e[42] !== se ? (K = R(p.list, {
202
- [p.listCenter]: re,
203
- [p.listRight]: se
204
- }), e[41] = re, e[42] = se, e[43] = K) : K = e[43];
205
- const oe = K;
206
- let X;
207
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = R(p.item, p.itemPrevButtonWrapper), e[44] = X) : X = e[44];
208
- const le = Math.max(0, n - 1);
209
- let A;
210
- e[45] !== n || e[46] !== E || e[47] !== m || e[48] !== le ? (A = E(le, "chevron-left", m("previousPage"), n === 0, p.prevNextButton), e[45] = n, e[46] = E, e[47] = m, e[48] = le, e[49] = A) : A = e[49];
211
- let I;
212
- e[50] !== A ? (I = /* @__PURE__ */ v("li", { className: X, children: A }), e[50] = A, e[51] = I) : I = e[51];
213
- let x;
214
- if (e[52] !== ae || e[53] !== O) {
215
- let a;
216
- e[55] !== O ? (a = (c) => c.type === "page" ? /* @__PURE__ */ v("li", { className: p.item, children: O(c.pageIndex) }, `page-${c.pageIndex}`) : c.type === "ellipsis" ? /* @__PURE__ */ v("li", { className: R(p.item, p.ellipsis), "aria-hidden": "true", children: "…" }, c.id) : /* @__PURE__ */ v("li", { className: p.divider, "aria-hidden": "true" }, c.id), e[55] = O, e[56] = a) : a = e[56], x = ae.map(a), e[52] = ae, e[53] = O, e[54] = x;
217
- } else
218
- x = e[54];
219
- let Z;
220
- e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = R(p.item, p.itemNextButtonWrapper), e[57] = Z) : Z = e[57];
221
- const ce = Math.min(f - 1, n + 1);
222
- let M;
223
- e[58] !== n || e[59] !== E || e[60] !== m || e[61] !== ce || e[62] !== f ? (M = E(ce, "chevron-right", m("nextPage"), n >= f - 1, p.prevNextButton), e[58] = n, e[59] = E, e[60] = m, e[61] = ce, e[62] = f, e[63] = M) : M = e[63];
224
- let C;
225
- e[64] !== M ? (C = /* @__PURE__ */ v("li", { className: Z, children: M }), e[64] = M, e[65] = C) : C = e[65];
226
- let L;
227
- e[66] !== oe || e[67] !== I || e[68] !== x || e[69] !== C ? (L = /* @__PURE__ */ Ae("ul", { className: oe, children: [
228
- I,
229
- x,
230
- C
231
- ] }), e[66] = oe, e[67] = I, e[68] = x, e[69] = C, e[70] = L) : L = e[70];
232
- let ee;
233
- return e[71] !== t || e[72] !== s || e[73] !== l || e[74] !== L ? (ee = /* @__PURE__ */ v("nav", { className: s, ...l, ...t, children: L }), e[71] = t, e[72] = s, e[73] = l, e[74] = L, e[75] = ee) : ee = e[75], ee;
234
- };
235
- export {
236
- rt as D,
237
- Ne as a,
238
- Pe as b,
239
- Ge as c,
240
- Qe as d,
241
- Ue as e,
242
- qe as f,
243
- be as g,
244
- Ye as h,
245
- we as i,
246
- Fe as v
247
- };
@@ -1,221 +0,0 @@
1
- "use client";
2
- import { jsx as m, jsxs as j, Fragment as ee } from "react/jsx-runtime";
3
- import { d as B } from "./index.cKLI89Eg.js";
4
- import { useState as U, useRef as oe, useMemo as te, createContext as re, forwardRef as W, isValidElement as ne, cloneElement as se, useContext as ae } from "react";
5
- import { u as ce, o as le, j as ie, s as pe, k as de, a as fe, b as ue, c as he, d as ve, e as me, f as $, g as ge, l as Pe, F as we, i as De } from "./floating-ui.react.CP5A99-c.js";
6
- import { c as O } from "./index.DQOqod3i.js";
7
- import { g as E, c as L } from "./helpers.CexwVao7.js";
8
- import { u as Se } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
9
- import { D as Ae } from "./Button.Dauhc5op.js";
10
- import '../assets/Popover.mL5g23EK.css';const ye = "ds-popover_popover_xg81f_5", xe = "ds-popover_popover--no-arrow_xg81f_64", _e = "ds-popover_popover--variant-grey_xg81f_67", Ce = "ds-popover_arrow_xg81f_71", Ee = "ds-popover_arrow--variant-grey_xg81f_90", be = "ds-popover_default-anchor_xg81f_107", _ = {
11
- popover: ye,
12
- popoverNoArrow: xe,
13
- popoverVariantGrey: _e,
14
- arrow: Ce,
15
- arrowVariantGrey: Ee,
16
- defaultAnchor: be
17
- }, Ne = ({
18
- initialOpen: r = !1,
19
- placement: o = "bottom",
20
- isOpen: e,
21
- popoverOffset: n = 6,
22
- showArrow: c = !0,
23
- variant: p = "default",
24
- defaultAnchorButtonProps: d,
25
- onOpenChange: f
26
- } = {}) => {
27
- const [t, s] = U(r), l = e ?? t, a = f ?? s, i = oe(null), u = ce({
28
- placement: o,
29
- open: l,
30
- strategy: "fixed",
31
- onOpenChange: a,
32
- whileElementsMounted: fe,
33
- middleware: [le(n + (c ? 7 : 0)), ie({
34
- // default configuration taken from https://floating-ui.com/docs/flip
35
- crossAxis: o.includes("-"),
36
- fallbackAxisSideDirection: "end",
37
- padding: n
38
- }), pe({
39
- padding: n
40
- }), ...c ? [de({
41
- element: i
42
- })] : []]
43
- }), h = u.context, C = ue(h, {
44
- enabled: !0
45
- }), P = he(h), F = ve(h), w = me([C, P, F]);
46
- return te(() => ({
47
- open: l,
48
- popoverOffset: n,
49
- setOpen: a,
50
- arrowRef: i,
51
- showArrow: c,
52
- defaultAnchorButtonProps: d,
53
- variant: p,
54
- ...w,
55
- ...u
56
- }), [l, n, a, i, c, d, p, w, u]);
57
- }, Re = ({
58
- children: r,
59
- hasContent: o,
60
- hasAnchor: e
61
- }) => {
62
- if (!r)
63
- throw new Error(E("DSPopover", "A DSPopover must have children."));
64
- if (!o && e)
65
- throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Content> is missing! Please add it to the children of DSPopover."));
66
- if (!e && o)
67
- throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Anchor> is missing! Please add it to the children of DSPopover."));
68
- }, Fe = ({
69
- showArrow: r,
70
- variant: o
71
- }) => {
72
- o === "grey" && r === !1 && console.warn(E("DSPopover", "The 'grey' variant is only available when 'showArrow' is true. To use the 'grey' variant, please ensure that 'showArrow' is set to true."));
73
- }, z = re(null), q = () => {
74
- const r = ae(z);
75
- if (r == null)
76
- throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
77
- return r;
78
- }, v = (r) => {
79
- const o = B.c(11), {
80
- children: e,
81
- ...n
82
- } = r, c = Ne({
83
- ...n
84
- }), p = L(e, v.Content), d = L(e, v.Anchor);
85
- process.env.NODE_ENV !== "production" && (Re({
86
- children: e,
87
- hasContent: p,
88
- hasAnchor: d
89
- }), Fe({
90
- showArrow: n.showArrow,
91
- variant: n.variant
92
- }));
93
- const f = !p && !d && e !== null;
94
- let t;
95
- o[0] !== e || o[1] !== f ? (t = f ? /* @__PURE__ */ j(ee, { children: [
96
- /* @__PURE__ */ m(v.Anchor, {}),
97
- /* @__PURE__ */ m(v.Content, { children: e })
98
- ] }) : e, o[0] = e, o[1] = f, o[2] = t) : t = o[2];
99
- const s = t, l = p || f, a = d || f;
100
- let i;
101
- o[3] !== c || o[4] !== l || o[5] !== a ? (i = {
102
- ...c,
103
- hasContent: l,
104
- hasAnchor: a
105
- }, o[3] = c, o[4] = l, o[5] = a, o[6] = i) : i = o[6];
106
- const g = i;
107
- let u;
108
- return o[7] !== s || o[8] !== g || o[9] !== n ? (u = /* @__PURE__ */ m(z.Provider, { value: g, ...n, children: s }), o[7] = s, o[8] = g, o[9] = n, o[10] = u) : u = o[10], u;
109
- }, J = W(({
110
- children: r,
111
- ...o
112
- }, e) => {
113
- const {
114
- context: n,
115
- defaultAnchorButtonProps: c,
116
- refs: p,
117
- hasAnchor: d,
118
- getReferenceProps: f
119
- } = q(), {
120
- label: t = "Toggle popover",
121
- ...s
122
- } = c || {}, l = r ? r?.ref : null, a = $([p.setReference, e, l]);
123
- return d && r && ne(r) ? se(r, f({
124
- ref: a,
125
- ...o,
126
- ...r.props,
127
- "data-state": n.open ? "open" : "closed"
128
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
- })) : /* @__PURE__ */ m(
130
- Ae,
131
- {
132
- ...s,
133
- ref: a,
134
- type: "button",
135
- "data-state": n.open ? "open" : "closed",
136
- ...f(o),
137
- size: "small",
138
- hideLabel: !0,
139
- iconName: "circle-info-inverted",
140
- variant: "ghost",
141
- className: _.defaultAnchor,
142
- children: r ?? t
143
- }
144
- );
145
- });
146
- J.displayName = "DSPopover.Anchor";
147
- const K = W((r, o) => {
148
- const e = B.c(39), {
149
- style: n,
150
- className: c,
151
- classNameArrow: p,
152
- children: d,
153
- ...f
154
- } = r, {
155
- context: t,
156
- refs: s,
157
- floatingStyles: l,
158
- showArrow: a,
159
- variant: i,
160
- getFloatingProps: g,
161
- arrowRef: u
162
- } = q();
163
- let h;
164
- e[0] !== o || e[1] !== s.setFloating ? (h = [s.setFloating, o], e[0] = o, e[1] = s.setFloating, e[2] = h) : h = e[2];
165
- const C = $(h);
166
- let P;
167
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
168
- duration: {
169
- open: 250,
170
- close: 250
171
- }
172
- }, e[3] = P) : P = e[3];
173
- const {
174
- isMounted: F,
175
- status: w
176
- } = ge(t, P), [Q, X] = U(null);
177
- let b;
178
- e[4] !== s.reference.current ? (b = () => {
179
- const I = s.reference.current?.closest("dialog");
180
- X(I instanceof HTMLDialogElement ? I : null);
181
- }, e[4] = s.reference.current, e[5] = b) : b = e[5];
182
- let N;
183
- if (e[6] !== t.open || e[7] !== s.reference ? (N = [s.reference, t.open], e[6] = t.open, e[7] = s.reference, e[8] = N) : N = e[8], Se(b, N), !F)
184
- return null;
185
- const T = De, V = Q ?? void 0, G = we, Y = !1;
186
- let D;
187
- e[9] !== l || e[10] !== n ? (D = {
188
- ...l,
189
- ...n
190
- }, e[9] = l, e[10] = n, e[11] = D) : D = e[11];
191
- const k = !a, M = i === "grey" && a;
192
- let S;
193
- e[12] !== c || e[13] !== k || e[14] !== M ? (S = O(_.popover, c, {
194
- [_.popoverNoArrow]: k,
195
- [_.popoverVariantGrey]: M
196
- }), e[12] = c, e[13] = k, e[14] = M, e[15] = S) : S = e[15];
197
- const Z = t.placement, H = g(f);
198
- let A;
199
- e[16] !== u || e[17] !== p || e[18] !== t || e[19] !== a || e[20] !== i ? (A = a && /* @__PURE__ */ m(Pe, { ref: u, context: t, className: O(_.arrow, p, {
200
- [_.arrowVariantGrey]: i === "grey" && a
201
- }), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[16] = u, e[17] = p, e[18] = t, e[19] = a, e[20] = i, e[21] = A) : A = e[21];
202
- let y;
203
- e[22] !== d || e[23] !== t.placement || e[24] !== C || e[25] !== w || e[26] !== S || e[27] !== H || e[28] !== A || e[29] !== D ? (y = /* @__PURE__ */ j("div", { ref: C, style: D, className: S, "data-placement": Z, "data-status": w, ...H, children: [
204
- A,
205
- d
206
- ] }), e[22] = d, e[23] = t.placement, e[24] = C, e[25] = w, e[26] = S, e[27] = H, e[28] = A, e[29] = D, e[30] = y) : y = e[30];
207
- let x;
208
- e[31] !== G || e[32] !== t || e[33] !== y ? (x = /* @__PURE__ */ m(G, { context: t, modal: Y, children: y }), e[31] = G, e[32] = t, e[33] = y, e[34] = x) : x = e[34];
209
- let R;
210
- return e[35] !== T || e[36] !== x || e[37] !== V ? (R = /* @__PURE__ */ m(T, { root: V, children: x }), e[35] = T, e[36] = x, e[37] = V, e[38] = R) : R = e[38], R;
211
- });
212
- K.displayName = "DSPopover.Content";
213
- v.Anchor = J;
214
- v.Content = K;
215
- v.displayName = "DSPopover";
216
- export {
217
- v as D,
218
- Fe as a,
219
- Ne as u,
220
- Re as v
221
- };
@@ -1,130 +0,0 @@
1
- "use client";
2
- import { jsx as J } from "react/jsx-runtime";
3
- import { d as Z } from "./index.cKLI89Eg.js";
4
- import { c as Q } from "./index.DQOqod3i.js";
5
- import { forwardRef as oo, useState as eo } from "react";
6
- import { D as to } from "./Fieldset.DxhNhprT.js";
7
- import { DSRadio as ro } from "../radio.DxdVKoxe.js";
8
- import { g as h, r as K } from "./helpers.CexwVao7.js";
9
- import '../assets/RadioGroup.q1lQ-HIZ.css';const io = "ds-radio-group_fieldset--custom-area-above_1r3gv_1", so = "ds-radio-group_root_1r3gv_5", ao = "ds-radio-group_root--horizontal_1r3gv_13", no = "ds-radio-group_root--invalid_1r3gv_16", lo = "ds-radio-group_root--custom-area-above_1r3gv_19", co = "ds-radio-group_root--custom-area-above--horizontal_1r3gv_26", H = {
10
- fieldsetCustomAreaAbove: io,
11
- root: so,
12
- rootHorizontal: ao,
13
- rootInvalid: no,
14
- rootCustomAreaAbove: lo,
15
- rootCustomAreaAboveHorizontal: co
16
- }, uo = (r) => r.some(({
17
- hint: i
18
- }) => !!i), po = (r) => r.some(({
19
- customArea: i,
20
- isCustomAreaAbove: o
21
- }) => !!i && !o), V = (r) => r.some(({
22
- customArea: i,
23
- isCustomAreaAbove: o
24
- }) => !!i && o), vo = ({
25
- legend: r,
26
- name: i,
27
- options: o,
28
- description: u,
29
- direction: m,
30
- hideLegend: a,
31
- hideUncheckedHints: t,
32
- id: n,
33
- popoverContent: l,
34
- systemFeedback: d
35
- }) => {
36
- if (!n && (u || d))
37
- throw new Error(h("DSRadioGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSRadioGroup component.'));
38
- if (!r)
39
- throw new Error(h("DSRadioGroup", K("legend", "DSRadioGroup")));
40
- if (!i)
41
- throw new Error(h("DSRadioGroup", K("name", "DSRadioGroup")));
42
- if (Array.isArray(o)) {
43
- if (o.length === 0)
44
- throw new Error(h("DSRadioGroup", "The options array must not be empty."));
45
- } else throw new Error(h("DSRadioGroup", K("options", "DSRadioGroup")));
46
- if (m === "horizontal" && po(o))
47
- throw new Error(h("DSRadioGroup", "Horizontal direction is not possible when options contain a custom area without isCustomAreaAbove set to true. Please remove custom areas, change direction property to 'vertical' or set isCustomAreaAbove to true."));
48
- m === "horizontal" && t && console.warn(h("DSRadioGroup", "Setting 'hideUncheckedHints' to 'true' is not possible when direction is 'horizontal'. Please remove 'hideUncheckedHints' or change direction property to 'vertical'.")), a && l && console.warn(h("DSRadioGroup", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".'));
49
- }, ho = oo((r, i) => {
50
- const o = Z.c(68);
51
- let u, m, a, t, n, l, d, e, f, b, C, p, z, G, R, y, E, k, N;
52
- o[0] !== r ? ({
53
- legend: n,
54
- name: l,
55
- options: e,
56
- className: u,
57
- defaultValue: m,
58
- description: a,
59
- direction: z,
60
- disabled: G,
61
- hideLegend: R,
62
- hideUncheckedHints: y,
63
- id: t,
64
- invalid: E,
65
- popoverContent: f,
66
- popoverInfoButtonProps: b,
67
- required: k,
68
- systemFeedback: p,
69
- value: N,
70
- onChange: d,
71
- ...C
72
- } = r, o[0] = r, o[1] = u, o[2] = m, o[3] = a, o[4] = t, o[5] = n, o[6] = l, o[7] = d, o[8] = e, o[9] = f, o[10] = b, o[11] = C, o[12] = p, o[13] = z, o[14] = G, o[15] = R, o[16] = y, o[17] = E, o[18] = k, o[19] = N) : (u = o[1], m = o[2], a = o[3], t = o[4], n = o[5], l = o[6], d = o[7], e = o[8], f = o[9], b = o[10], C = o[11], p = o[12], z = o[13], G = o[14], R = o[15], y = o[16], E = o[17], k = o[18], N = o[19]);
73
- const v = z === void 0 ? "vertical" : z, c = G === void 0 ? !1 : G, P = R === void 0 ? !1 : R, g = y === void 0 ? !1 : y, A = E === void 0 ? !1 : E, S = k === void 0 ? !1 : k;
74
- process.env.NODE_ENV !== "production" && vo({
75
- legend: n,
76
- name: l,
77
- options: e,
78
- description: a,
79
- direction: v,
80
- hideLegend: P,
81
- hideUncheckedHints: g,
82
- id: t,
83
- popoverContent: f,
84
- systemFeedback: p
85
- });
86
- const [X, Y] = eo(m), q = N !== void 0, x = q ? N : X;
87
- let I;
88
- o[20] !== u || o[21] !== e ? (I = Q({
89
- [H.fieldsetCustomAreaAbove]: V(e)
90
- }, u), o[20] = u, o[21] = e, o[22] = I) : I = o[22];
91
- const M = I, O = v === "horizontal", T = A && !!p;
92
- let U;
93
- o[23] !== v || o[24] !== e || o[25] !== O || o[26] !== T ? (U = Q(H.root, {
94
- [H.rootHorizontal]: O,
95
- [H.rootInvalid]: T,
96
- [H.rootCustomAreaAbove]: V(e),
97
- [H.rootCustomAreaAboveHorizontal]: V(e) && v === "horizontal"
98
- }), o[23] = v, o[24] = e, o[25] = O, o[26] = T, o[27] = U) : U = o[27];
99
- const $ = U;
100
- let L;
101
- o[28] !== c || o[29] !== q || o[30] !== d ? (L = (s) => {
102
- if (c) {
103
- s.preventDefault();
104
- return;
105
- }
106
- q || Y(s.target.value), d && d(s);
107
- }, o[28] = c, o[29] = q, o[30] = d, o[31] = L) : L = o[31];
108
- const j = L;
109
- let B;
110
- o[32] !== g || o[33] !== e ? (B = uo(e) && !g, o[32] = g, o[33] = e, o[34] = B) : B = o[34];
111
- const W = B;
112
- let w;
113
- o[35] !== v || o[36] !== e ? (w = V(e) && v === "horizontal" ? {
114
- maxWidth: `calc(${e.length * 400}px + var(--ds-spacing-dynamic-xs))`
115
- } : void 0, o[35] = v, o[36] = e, o[37] = w) : w = o[37];
116
- let D;
117
- o[38] !== W || o[39] !== x || o[40] !== c || o[41] !== g || o[42] !== t || o[43] !== A || o[44] !== l || o[45] !== e || o[46] !== i || o[47] !== S ? (D = e.map((s) => /* @__PURE__ */ J(ro, { name: l, checked: s.value === x, disabled: c, fieldsetId: t, hideUncheckedHint: g, hint: s.hint, invalid: A, isBold: W, required: S, ref: s.value === x ? i : null, ...s }, t + s.label + s.value + s.hint)), o[38] = W, o[39] = x, o[40] = c, o[41] = g, o[42] = t, o[43] = A, o[44] = l, o[45] = e, o[46] = i, o[47] = S, o[48] = D) : D = o[48];
118
- let _;
119
- o[49] !== $ || o[50] !== w || o[51] !== D ? (_ = /* @__PURE__ */ J("div", { className: $, style: w, children: D }), o[49] = $, o[50] = w, o[51] = D, o[52] = _) : _ = o[52];
120
- let F;
121
- return o[53] !== a || o[54] !== c || o[55] !== M || o[56] !== j || o[57] !== P || o[58] !== t || o[59] !== A || o[60] !== n || o[61] !== f || o[62] !== b || o[63] !== S || o[64] !== C || o[65] !== p || o[66] !== _ ? (F = /* @__PURE__ */ J(to, { id: t, legend: n, className: M, description: a, disabled: c, hideLegend: P, required: S, invalid: A, systemFeedback: p, popoverContent: f, popoverInfoButtonProps: b, ...C, role: "radiogroup", onChange: j, children: _ }), o[53] = a, o[54] = c, o[55] = M, o[56] = j, o[57] = P, o[58] = t, o[59] = A, o[60] = n, o[61] = f, o[62] = b, o[63] = S, o[64] = C, o[65] = p, o[66] = _, o[67] = F) : F = o[67], F;
122
- });
123
- ho.displayName = "DSRadioGroup";
124
- export {
125
- ho as D,
126
- po as a,
127
- V as b,
128
- uo as o,
129
- vo as v
130
- };