@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
@@ -0,0 +1,91 @@
1
+ "use client";
2
+ import { jsx as v, jsxs as k } from "react/jsx-runtime";
3
+ import { d as F } from "./index.cKLI89Eg.js";
4
+ import { c as E } from "./index.DQOqod3i.js";
5
+ import { D as R } from "./Button.CCol--xy.js";
6
+ import { D as W } from "./Icon.DYtaQgbw.js";
7
+ import '../assets/Notification.2B81JHOp.css';const j = "ds-notification_root_1y4y5_1", L = "ds-notification_root--success_1y4y5_29", P = "ds-notification_root--error_1y4y5_33", V = "ds-notification_root--warning_1y4y5_37", z = "ds-notification_root--hide-icon_1y4y5_41", Y = "ds-notification_content_1y4y5_55", $ = "ds-notification_content--hide-close-button_1y4y5_62", q = "ds-notification_content--hide-icon_1y4y5_65", G = "ds-notification_icon_1y4y5_69", J = "ds-notification_message_1y4y5_73", K = "ds-notification_custom-action-area_1y4y5_188", e = {
8
+ root: j,
9
+ rootSuccess: L,
10
+ rootError: P,
11
+ rootWarning: V,
12
+ rootHideIcon: z,
13
+ content: Y,
14
+ contentHideCloseButton: $,
15
+ contentHideIcon: q,
16
+ icon: G,
17
+ message: J,
18
+ customActionArea: K
19
+ }, eo = ["success", "error", "warning", "info"], M = {
20
+ success: "circle-check-colored",
21
+ error: "diamond-exclamationmark-colored",
22
+ warning: "triangle-exclamationmark-colored",
23
+ info: "circle-info-colored"
24
+ }, Q = {
25
+ error: "alert",
26
+ warning: "alert",
27
+ info: "status",
28
+ success: "status"
29
+ }, no = (H) => {
30
+ const o = F.c(46);
31
+ let i, r, a, s, n, l, N, h;
32
+ o[0] !== H ? ({
33
+ children: i,
34
+ variant: N,
35
+ className: r,
36
+ closeButtonProps: a,
37
+ customActionArea: s,
38
+ hideIcon: h,
39
+ onClose: n,
40
+ ...l
41
+ } = H, o[0] = H, o[1] = i, o[2] = r, o[3] = a, o[4] = s, o[5] = n, o[6] = l, o[7] = N, o[8] = h) : (i = o[1], r = o[2], a = o[3], s = o[4], n = o[5], l = o[6], N = o[7], h = o[8]);
42
+ const c = N === void 0 ? "info" : N, t = h === void 0 ? !1 : h;
43
+ let d;
44
+ o[9] !== a ? (d = a || {}, o[9] = a, o[10] = d) : d = o[10];
45
+ let _, A;
46
+ o[11] !== d ? ({
47
+ label: A,
48
+ ..._
49
+ } = d, o[11] = d, o[12] = _, o[13] = A) : (_ = o[12], A = o[13]);
50
+ const S = A === void 0 ? "Close notification" : A, O = c === "success", T = c === "error", x = c === "warning";
51
+ let g;
52
+ o[14] !== r || o[15] !== t || o[16] !== O || o[17] !== T || o[18] !== x ? (g = E(e.root, r, {
53
+ [e.rootSuccess]: O,
54
+ [e.rootError]: T,
55
+ [e.rootWarning]: x,
56
+ [e.rootHideIcon]: t
57
+ }), o[14] = r, o[15] = t, o[16] = O, o[17] = T, o[18] = x, o[19] = g) : g = o[19];
58
+ const B = g, D = !n;
59
+ let C;
60
+ o[20] !== t || o[21] !== D ? (C = E(e.content, {
61
+ [e.contentHideCloseButton]: D,
62
+ [e.contentHideIcon]: t
63
+ }), o[20] = t, o[21] = D, o[22] = C) : C = o[22];
64
+ const b = C, w = Q[c];
65
+ let f;
66
+ o[23] !== t || o[24] !== c ? (f = !t && /* @__PURE__ */ v(W, { name: M[c], className: e.icon, "aria-hidden": "true" }), o[23] = t, o[24] = c, o[25] = f) : f = o[25];
67
+ let m;
68
+ o[26] !== i ? (m = /* @__PURE__ */ v("div", { className: e.message, children: i }), o[26] = i, o[27] = m) : m = o[27];
69
+ let u;
70
+ o[28] !== S || o[29] !== n || o[30] !== _ ? (u = n && /* @__PURE__ */ v(R, { ..._, hideLabel: !0, iconName: "cross", isFlush: !0, variant: "ghost", size: "small", onClick: n, type: "button", children: S }), o[28] = S, o[29] = n, o[30] = _, o[31] = u) : u = o[31];
71
+ let y;
72
+ o[32] !== b || o[33] !== f || o[34] !== m || o[35] !== u ? (y = /* @__PURE__ */ k("div", { className: b, children: [
73
+ f,
74
+ m,
75
+ u
76
+ ] }), o[32] = b, o[33] = f, o[34] = m, o[35] = u, o[36] = y) : y = o[36];
77
+ let I;
78
+ o[37] !== s || o[38] !== t ? (I = s && /* @__PURE__ */ v("div", { className: E({
79
+ [e.customActionArea]: !t
80
+ }), children: s }), o[37] = s, o[38] = t, o[39] = I) : I = o[39];
81
+ let p;
82
+ return o[40] !== l || o[41] !== B || o[42] !== w || o[43] !== y || o[44] !== I ? (p = /* @__PURE__ */ k("div", { className: B, ...l, role: w, children: [
83
+ y,
84
+ I
85
+ ] }), o[40] = l, o[41] = B, o[42] = w, o[43] = y, o[44] = I, o[45] = p) : p = o[45], p;
86
+ };
87
+ export {
88
+ no as D,
89
+ M as N,
90
+ eo as a
91
+ };
@@ -0,0 +1,272 @@
1
+ "use client";
2
+ import { jsx as N, jsxs as Ae } from "react/jsx-runtime";
3
+ import { d as Be } from "./index.cKLI89Eg.js";
4
+ import { c as D } from "./index.DQOqod3i.js";
5
+ import { isValidElement as fe, useState as _e, useEffect as ve, cloneElement as be } from "react";
6
+ import { f as ze } from "./AriaLiveRegions.utils.xoETe2Ps.js";
7
+ import { D as Ne } from "./Button.CCol--xy.js";
8
+ import { D as De } from "./LinkButton.BxG7fx1O.js";
9
+ import { g as v, r as ge } from "./helpers.CexwVao7.js";
10
+ import { u as Ie } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
11
+ import { t as Te } from "./translate.DSb-TdWR.js";
12
+ import '../assets/Pagination.DH71DZ0j.css';const Me = "ds-pagination_list_1u9zx_1", Ce = "ds-pagination_list--center_1u9zx_8", Le = "ds-pagination_list--right_1u9zx_11", Oe = "ds-pagination_item_1u9zx_15", $e = "ds-pagination_item-prev-button-wrapper_1u9zx_19", Fe = "ds-pagination_item-next-button-wrapper_1u9zx_22", Re = "ds-pagination_prev-next-button_1u9zx_26", We = "ds-pagination_prev-next-button--dark_1u9zx_58", Ve = "ds-pagination_page-button_1u9zx_87", je = "ds-pagination_page-button--dark_1u9zx_138", Ge = "ds-pagination_page-button--active_1u9zx_174", Qe = "ds-pagination_page-button--active--dark_1u9zx_201", Ue = "ds-pagination_ellipsis_1u9zx_210", qe = "ds-pagination_ellipsis--dark_1u9zx_217", Ye = "ds-pagination_divider_1u9zx_221", He = "ds-pagination_divider--dark_1u9zx_233", Je = "ds-pagination_wrapper-focus_1u9zx_242", Ke = "ds-pagination_wrapper-focus--dark_1u9zx_270", t = {
13
+ list: Me,
14
+ listCenter: Ce,
15
+ listRight: Le,
16
+ item: Oe,
17
+ itemPrevButtonWrapper: $e,
18
+ itemNextButtonWrapper: Fe,
19
+ prevNextButton: Re,
20
+ prevNextButtonDark: We,
21
+ pageButton: Ve,
22
+ pageButtonDark: je,
23
+ pageButtonActive: Ge,
24
+ pageButtonActiveDark: Qe,
25
+ ellipsis: Ue,
26
+ ellipsisDark: qe,
27
+ divider: Ye,
28
+ dividerDark: He,
29
+ wrapperFocus: Je,
30
+ wrapperFocusDark: Ke
31
+ }, ke = "(max-width: 518px)", xe = "(max-width: 428px)", we = () => typeof window > "u" ? 9 : window.matchMedia(xe).matches ? 5 : window.matchMedia(ke).matches ? 7 : 9, Xe = (s, e, a) => {
32
+ const o = [];
33
+ if (s <= a) {
34
+ for (let i = 0; i < s; i++)
35
+ o.push({
36
+ type: "page",
37
+ pageIndex: i
38
+ });
39
+ return o;
40
+ }
41
+ const g = a - 4;
42
+ let l = e - Math.floor((g - 1) / 2), d = l + g - 1;
43
+ l <= 2 && (l = 1, d = a - 3), d >= s - 3 && (d = s - 2, l = s - a + 2);
44
+ const c = [0];
45
+ for (let i = l; i <= d; i++)
46
+ c.push(i);
47
+ return c.push(s - 1), c.forEach((i, k) => {
48
+ const w = c[k - 1];
49
+ w !== void 0 && i - w > 1 && o.push({
50
+ type: "ellipsis",
51
+ id: `ellipsis-${w}-${i}`
52
+ }), o.push({
53
+ type: "page",
54
+ pageIndex: i
55
+ });
56
+ }), o;
57
+ }, Ze = (s) => {
58
+ const e = [];
59
+ return s.forEach((a, o) => {
60
+ o > 0 && e.push({
61
+ type: "divider",
62
+ id: `divider-${o}`
63
+ }), e.push(a);
64
+ }), e;
65
+ }, et = (s, e, a) => Ze(Xe(s, e, a)), tt = {
66
+ previousPage: "Previous page",
67
+ nextPage: "Next page",
68
+ page: "Page {pageNumber}",
69
+ pageOf: "Page {currentPage} of {totalPages} loaded"
70
+ }, at = {
71
+ previousPage: "Vorherige Seite",
72
+ nextPage: "Nächste Seite",
73
+ page: "Seite {pageNumber}",
74
+ pageOf: "Seite {currentPage} von {totalPages} geladen"
75
+ }, Pe = {
76
+ en: tt,
77
+ de: at
78
+ }, it = ({
79
+ activePageIndex: s,
80
+ aria: e,
81
+ itemsPerPage: a,
82
+ links: o,
83
+ totalItemsCount: g
84
+ }) => {
85
+ if (!e || typeof e != "object" || Object.keys(e).length === 0 || !e["aria-label"] && !e["aria-labelledby"] || e["aria-label"]?.trim() === "" && e["aria-labelledby"]?.trim() === "")
86
+ throw new Error(v("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.'));
87
+ if (typeof g != "number" || Number.isNaN(g))
88
+ throw new Error(v("DSPagination", ge("totalItemsCount", "DSPagination")));
89
+ if (g < 0)
90
+ throw new Error(v("DSPagination", 'The "totalItemsCount" prop must be zero or a positive number.'));
91
+ if (typeof a != "number" || Number.isNaN(a))
92
+ throw new Error(v("DSPagination", ge("itemsPerPage", "DSPagination")));
93
+ if (a <= 0)
94
+ throw new Error(v("DSPagination", 'The "itemsPerPage" prop must be greater than 0.'));
95
+ if (typeof s != "number" || Number.isNaN(s) || !Number.isInteger(s))
96
+ throw new Error(v("DSPagination", ge("activePageIndex", "DSPagination")));
97
+ const l = Math.max(1, Math.ceil(g / Math.max(1, a)));
98
+ if (s < 0 || s > l - 1)
99
+ throw new Error(v("DSPagination", `The "activePageIndex" must be between 0 and ${l - 1}.`));
100
+ if (o && !Array.isArray(o))
101
+ throw new Error(v("DSPagination", 'The "links" prop must be an array when provided.'));
102
+ Array.isArray(o) && o.forEach(({
103
+ href: d,
104
+ wrapper: c
105
+ }, i) => {
106
+ if (c && !fe(c))
107
+ throw new Error(v("DSPagination", `The link with label "${i + 1}" provided an invalid ReactElement as wrapper property.`));
108
+ c && d && console.warn(v("DSPagination", `The link with label "${i + 1}" has both a wrapper and an href property. Please use only one.`)), c && fe(c) && c.props?.children && console.warn(v("DSPagination", `The link with label "${i + 1}" contains a wrapper with children. Please remove the children, as they will be replaced.`));
109
+ });
110
+ }, ht = (s) => {
111
+ const e = Be.c(82);
112
+ let a, o, g, l, d, c, i, k, w, F, R, j;
113
+ e[0] !== s ? ({
114
+ aria: a,
115
+ activePageIndex: i,
116
+ itemsPerPage: g,
117
+ totalItemsCount: R,
118
+ className: o,
119
+ alignment: k,
120
+ lang: w,
121
+ links: l,
122
+ theme: F,
123
+ translations: j,
124
+ onPageChange: d,
125
+ ...c
126
+ } = s, e[0] = s, e[1] = a, e[2] = o, e[3] = g, e[4] = l, e[5] = d, e[6] = c, e[7] = i, e[8] = k, e[9] = w, e[10] = F, e[11] = R, e[12] = j) : (a = e[1], o = e[2], g = e[3], l = e[4], d = e[5], c = e[6], i = e[7], k = e[8], w = e[9], F = e[10], R = e[11], j = e[12]);
127
+ const x = i === void 0 ? 0 : i, he = k === void 0 ? "right" : k, G = w === void 0 ? "en" : w, f = F === void 0 ? "light" : F, m = f === "dark", P = typeof d == "function", [Se, me] = _e(x), r = P ? x : Se, [oe, ye] = _e(we);
128
+ let Q, U;
129
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = () => {
130
+ const n = window.matchMedia(ke), p = window.matchMedia(xe), u = () => {
131
+ ye(we());
132
+ };
133
+ return n.addEventListener("change", u), p.addEventListener("change", u), () => {
134
+ n.removeEventListener("change", u), p.removeEventListener("change", u);
135
+ };
136
+ }, U = [], e[13] = Q, e[14] = U) : (Q = e[13], U = e[14]), Ie(Q, U), process.env.NODE_ENV !== "production" && it({
137
+ aria: a,
138
+ itemsPerPage: g,
139
+ totalItemsCount: R,
140
+ activePageIndex: x,
141
+ links: l
142
+ });
143
+ const _ = Math.max(1, Math.ceil(R / Math.max(1, g))), le = j || Pe[G] || Pe.en;
144
+ let q;
145
+ e[15] !== G || e[16] !== le ? (q = Te(le, G), e[15] = G, e[16] = le, e[17] = q) : q = e[17];
146
+ const h = q;
147
+ let Y, H;
148
+ e[18] !== r || e[19] !== h || e[20] !== _ ? (Y = () => {
149
+ const n = h("pageOf", {
150
+ currentPage: r + 1,
151
+ totalPages: _
152
+ });
153
+ ze(n, "DSPagination");
154
+ }, H = [r, _, h], e[18] = r, e[19] = h, e[20] = _, e[21] = Y, e[22] = H) : (Y = e[21], H = e[22]), ve(Y, H);
155
+ let J, K;
156
+ e[23] !== x || e[24] !== P ? (J = () => {
157
+ P || me(x);
158
+ }, K = [x, P], e[23] = x, e[24] = P, e[25] = J, e[26] = K) : (J = e[25], K = e[26]), ve(J, K);
159
+ let X;
160
+ e[27] !== r || e[28] !== _ || e[29] !== oe ? (X = et(_, r, oe), e[27] = r, e[28] = _, e[29] = oe, e[30] = X) : X = e[30];
161
+ const ce = X;
162
+ let Z;
163
+ e[31] !== r || e[32] !== P || e[33] !== d ? (Z = (n, p) => {
164
+ if (!p.defaultPrevented && n !== r) {
165
+ if (P) {
166
+ d?.(n);
167
+ return;
168
+ }
169
+ me(n);
170
+ }
171
+ }, e[31] = r, e[32] = P, e[33] = d, e[34] = Z) : Z = e[34];
172
+ const E = Z;
173
+ let ee;
174
+ e[35] !== r || e[36] !== E || e[37] !== l || e[38] !== h || e[39] !== f ? (ee = (n) => {
175
+ const {
176
+ href: p,
177
+ wrapper: u
178
+ } = l?.[n] || {}, L = f === "dark", O = `${n + 1}`, $ = n === r, b = h("page", {
179
+ pageNumber: O
180
+ }), V = $ ? "page" : void 0, se = D(t.pageButton, {
181
+ [t.pageButtonDark]: L,
182
+ [t.pageButtonActive]: $,
183
+ [t.pageButtonActiveDark]: $ && L
184
+ }), S = (Ee) => {
185
+ E(n, Ee);
186
+ }, y = /* @__PURE__ */ N(De, { className: se, size: "small", variant: "ghost", theme: f, href: u ? void 0 : p, "aria-label": u ? void 0 : b, "aria-current": u ? void 0 : V, onClick: u ? void 0 : S, children: O });
187
+ return u ? be(u, {
188
+ "aria-label": b,
189
+ "aria-current": V,
190
+ className: D(u.props.className, t.wrapperFocus, {
191
+ [t.wrapperFocusDark]: L
192
+ }),
193
+ onClick: S,
194
+ children: y
195
+ }) : p ? y : /* @__PURE__ */ N(Ne, { type: "button", className: se, "aria-label": b, "aria-current": V, size: "small", variant: "ghost", theme: f, onClick: S, children: O });
196
+ }, e[35] = r, e[36] = E, e[37] = l, e[38] = h, e[39] = f, e[40] = ee) : ee = e[40];
197
+ const W = ee;
198
+ let te;
199
+ e[41] !== E || e[42] !== l || e[43] !== f ? (te = (n, p, u, L, O) => {
200
+ const {
201
+ href: $,
202
+ wrapper: b
203
+ } = l?.[n] || {}, V = !L && l && ($ || b), se = f === "dark", S = (y) => {
204
+ E(n, y);
205
+ };
206
+ if (V) {
207
+ const y = /* @__PURE__ */ N(De, { className: O, iconName: p, hideLabel: !0, size: "small", variant: "filled", theme: f, href: b ? void 0 : $, onClick: b ? void 0 : S, children: u });
208
+ return b ? be(b, {
209
+ className: D(b.props.className, t.wrapperFocus, {
210
+ [t.wrapperFocusDark]: se
211
+ }),
212
+ children: y,
213
+ onClick: S
214
+ }) : y;
215
+ }
216
+ return /* @__PURE__ */ N(Ne, { type: "button", className: O, iconName: p, disabled: L, hideLabel: !0, variant: "filled", size: "small", theme: f, onClick: S, children: u });
217
+ }, e[41] = E, e[42] = l, e[43] = f, e[44] = te) : te = e[44];
218
+ const A = te, pe = he === "center", ue = he === "right";
219
+ let ae;
220
+ e[45] !== pe || e[46] !== ue ? (ae = D(t.list, {
221
+ [t.listCenter]: pe,
222
+ [t.listRight]: ue
223
+ }), e[45] = pe, e[46] = ue, e[47] = ae) : ae = e[47];
224
+ const de = ae;
225
+ let ie;
226
+ e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = D(t.item, t.itemPrevButtonWrapper), e[48] = ie) : ie = e[48];
227
+ let B;
228
+ e[49] !== r || e[50] !== m || e[51] !== A || e[52] !== h ? (B = A(Math.max(0, r - 1), "chevron-left", h("previousPage"), r === 0, D(t.prevNextButton, {
229
+ [t.prevNextButtonDark]: m
230
+ })), e[49] = r, e[50] = m, e[51] = A, e[52] = h, e[53] = B) : B = e[53];
231
+ let z;
232
+ e[54] !== B ? (z = /* @__PURE__ */ N("li", { className: ie, children: B }), e[54] = B, e[55] = z) : z = e[55];
233
+ let I;
234
+ if (e[56] !== m || e[57] !== ce || e[58] !== W) {
235
+ let n;
236
+ e[60] !== m || e[61] !== W ? (n = (p) => p.type === "page" ? /* @__PURE__ */ N("li", { className: t.item, children: W(p.pageIndex) }, `page-${p.pageIndex}`) : p.type === "ellipsis" ? /* @__PURE__ */ N("li", { className: D(t.item, t.ellipsis, {
237
+ [t.ellipsisDark]: m
238
+ }), "aria-hidden": "true", children: "…" }, p.id) : /* @__PURE__ */ N("li", { className: D(t.divider, {
239
+ [t.dividerDark]: m
240
+ }), "aria-hidden": "true" }, p.id), e[60] = m, e[61] = W, e[62] = n) : n = e[62], I = ce.map(n), e[56] = m, e[57] = ce, e[58] = W, e[59] = I;
241
+ } else
242
+ I = e[59];
243
+ let re;
244
+ e[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = D(t.item, t.itemNextButtonWrapper), e[63] = re) : re = e[63];
245
+ let T;
246
+ e[64] !== r || e[65] !== m || e[66] !== A || e[67] !== h || e[68] !== _ ? (T = A(Math.min(_ - 1, r + 1), "chevron-right", h("nextPage"), r >= _ - 1, D(t.prevNextButton, {
247
+ [t.prevNextButtonDark]: m
248
+ })), e[64] = r, e[65] = m, e[66] = A, e[67] = h, e[68] = _, e[69] = T) : T = e[69];
249
+ let M;
250
+ e[70] !== T ? (M = /* @__PURE__ */ N("li", { className: re, children: T }), e[70] = T, e[71] = M) : M = e[71];
251
+ let C;
252
+ e[72] !== de || e[73] !== z || e[74] !== I || e[75] !== M ? (C = /* @__PURE__ */ Ae("ul", { className: de, children: [
253
+ z,
254
+ I,
255
+ M
256
+ ] }), e[72] = de, e[73] = z, e[74] = I, e[75] = M, e[76] = C) : C = e[76];
257
+ let ne;
258
+ return e[77] !== a || e[78] !== o || e[79] !== c || e[80] !== C ? (ne = /* @__PURE__ */ N("nav", { className: o, ...c, ...a, children: C }), e[77] = a, e[78] = o, e[79] = c, e[80] = C, e[81] = ne) : ne = e[81], ne;
259
+ };
260
+ export {
261
+ ht as D,
262
+ ke as a,
263
+ xe as b,
264
+ Pe as c,
265
+ at as d,
266
+ tt as e,
267
+ Ze as f,
268
+ Xe as g,
269
+ et as h,
270
+ we as i,
271
+ it as v
272
+ };
@@ -0,0 +1,230 @@
1
+ "use client";
2
+ import { jsx as P, jsxs as U, Fragment as te } from "react/jsx-runtime";
3
+ import { d as W } from "./index.cKLI89Eg.js";
4
+ import { useState as $, useRef as re, useMemo as ne, createContext as se, forwardRef as z, isValidElement as ae, cloneElement as ce, useContext as le } from "react";
5
+ import { u as ie, a as pe, o as de, j as ve, s as fe, k as ue, b as he, c as me, d as ge, e as we, f as q, g as De, l as Pe, F as ye, i as Se } from "./floating-ui.react.Chmq0RmI.js";
6
+ import { c as j } from "./index.DQOqod3i.js";
7
+ import { D as Ae } from "./Button.CCol--xy.js";
8
+ import { g as E, c as B } from "./helpers.CexwVao7.js";
9
+ import { u as _e } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
10
+ import '../assets/Popover.58Tb0dOt.css';const ke = "ds-popover_popover_y9vkf_5", Ce = "ds-popover_popover--no-arrow_y9vkf_65", xe = "ds-popover_popover--variant-grey_y9vkf_68", Ee = "ds-popover_popover--dark_y9vkf_71", be = "ds-popover_arrow_y9vkf_109", Ne = "ds-popover_arrow--variant-grey_y9vkf_128", Re = "ds-popover_arrow--dark_y9vkf_139", Fe = "ds-popover_default-anchor_y9vkf_185", m = {
11
+ popover: ke,
12
+ popoverNoArrow: Ce,
13
+ popoverVariantGrey: xe,
14
+ popoverDark: Ee,
15
+ arrow: be,
16
+ arrowVariantGrey: Ne,
17
+ arrowDark: Re,
18
+ defaultAnchor: Fe
19
+ }, Te = ({
20
+ initialOpen: r = !1,
21
+ placement: o = "bottom",
22
+ isOpen: e,
23
+ popoverOffset: n = 6,
24
+ showArrow: c = !0,
25
+ theme: i = "light",
26
+ variant: p = "default",
27
+ defaultAnchorButtonProps: d,
28
+ onOpenChange: t
29
+ } = {}) => {
30
+ const [s, f] = $(r), a = e ?? s, l = t ?? f, v = re(null), w = ie({
31
+ placement: o,
32
+ open: a,
33
+ strategy: "fixed",
34
+ onOpenChange: l,
35
+ whileElementsMounted: pe,
36
+ middleware: [de(n + (c ? 7 : 0)), ve({
37
+ // default configuration taken from https://floating-ui.com/docs/flip
38
+ crossAxis: o.includes("-"),
39
+ fallbackAxisSideDirection: "end",
40
+ padding: n
41
+ }), fe({
42
+ padding: n
43
+ }), ...c ? [ue({
44
+ element: v
45
+ })] : []]
46
+ }), u = w.context, x = he(u, {
47
+ enabled: !0
48
+ }), h = me(u), y = ge(u), b = we([x, h, y]);
49
+ return ne(() => ({
50
+ open: a,
51
+ popoverOffset: n,
52
+ setOpen: l,
53
+ arrowRef: v,
54
+ showArrow: c,
55
+ defaultAnchorButtonProps: d,
56
+ theme: i,
57
+ variant: p,
58
+ ...b,
59
+ ...w
60
+ }), [a, n, l, v, c, d, i, p, b, w]);
61
+ }, Ve = ({
62
+ children: r,
63
+ hasContent: o,
64
+ hasAnchor: e
65
+ }) => {
66
+ if (!r)
67
+ throw new Error(E("DSPopover", "A DSPopover must have children."));
68
+ if (!o && e)
69
+ 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."));
70
+ if (!e && o)
71
+ 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."));
72
+ }, Ge = ({
73
+ showArrow: r,
74
+ variant: o
75
+ }) => {
76
+ 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."));
77
+ }, J = se(null), K = () => {
78
+ const r = le(J);
79
+ if (r == null)
80
+ throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
81
+ return r;
82
+ }, D = (r) => {
83
+ const o = W.c(11), {
84
+ children: e,
85
+ ...n
86
+ } = r, c = Te({
87
+ ...n
88
+ }), i = B(e, D.Content), p = B(e, D.Anchor);
89
+ process.env.NODE_ENV !== "production" && (Ve({
90
+ children: e,
91
+ hasContent: i,
92
+ hasAnchor: p
93
+ }), Ge({
94
+ showArrow: n.showArrow,
95
+ variant: n.variant
96
+ }));
97
+ const d = !i && !p && e !== null;
98
+ let t;
99
+ o[0] !== e || o[1] !== d ? (t = d ? /* @__PURE__ */ U(te, { children: [
100
+ /* @__PURE__ */ P(D.Anchor, {}),
101
+ /* @__PURE__ */ P(D.Content, { children: e })
102
+ ] }) : e, o[0] = e, o[1] = d, o[2] = t) : t = o[2];
103
+ const s = t, f = i || d, a = p || d;
104
+ let l;
105
+ o[3] !== c || o[4] !== f || o[5] !== a ? (l = {
106
+ ...c,
107
+ hasContent: f,
108
+ hasAnchor: a
109
+ }, o[3] = c, o[4] = f, o[5] = a, o[6] = l) : l = o[6];
110
+ const v = l;
111
+ let g;
112
+ return o[7] !== s || o[8] !== v || o[9] !== n ? (g = /* @__PURE__ */ P(J.Provider, { value: v, ...n, children: s }), o[7] = s, o[8] = v, o[9] = n, o[10] = g) : g = o[10], g;
113
+ }, Q = z(({
114
+ children: r,
115
+ ...o
116
+ }, e) => {
117
+ const {
118
+ context: n,
119
+ defaultAnchorButtonProps: c,
120
+ refs: i,
121
+ hasAnchor: p,
122
+ theme: d,
123
+ getReferenceProps: t
124
+ } = K(), {
125
+ label: s = "Toggle popover",
126
+ ...f
127
+ } = c || {}, a = r ? r?.ref : null, l = q([i.setReference, e, a]);
128
+ return p && r && ae(r) ? ce(r, t({
129
+ ref: l,
130
+ ...o,
131
+ ...r.props,
132
+ "data-state": n.open ? "open" : "closed"
133
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
134
+ })) : /* @__PURE__ */ P(
135
+ Ae,
136
+ {
137
+ ...f,
138
+ ref: l,
139
+ type: "button",
140
+ "data-state": n.open ? "open" : "closed",
141
+ ...t(o),
142
+ size: "small",
143
+ hideLabel: !0,
144
+ iconName: "circle-info-inverted",
145
+ variant: "ghost",
146
+ theme: d,
147
+ className: m.defaultAnchor,
148
+ children: r ?? s
149
+ }
150
+ );
151
+ });
152
+ Q.displayName = "DSPopover.Anchor";
153
+ const X = z((r, o) => {
154
+ const e = W.c(41), {
155
+ style: n,
156
+ className: c,
157
+ classNameArrow: i,
158
+ children: p,
159
+ ...d
160
+ } = r, {
161
+ context: t,
162
+ refs: s,
163
+ floatingStyles: f,
164
+ showArrow: a,
165
+ theme: l,
166
+ variant: v,
167
+ getFloatingProps: g,
168
+ arrowRef: w
169
+ } = K();
170
+ let u;
171
+ e[0] !== o || e[1] !== s.setFloating ? (u = [s.setFloating, o], e[0] = o, e[1] = s.setFloating, e[2] = u) : u = e[2];
172
+ const x = q(u), h = l === "dark";
173
+ let y;
174
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
175
+ duration: {
176
+ open: 250,
177
+ close: 250
178
+ }
179
+ }, e[3] = y) : y = e[3];
180
+ const {
181
+ isMounted: b,
182
+ status: T
183
+ } = De(t, y), [Y, Z] = $(null);
184
+ let N;
185
+ e[4] !== s.reference.current ? (N = () => {
186
+ const L = s.reference.current?.closest("dialog");
187
+ Z(L instanceof HTMLDialogElement ? L : null);
188
+ }, e[4] = s.reference.current, e[5] = N) : N = e[5];
189
+ let R;
190
+ if (e[6] !== t.open || e[7] !== s.reference ? (R = [s.reference, t.open], e[6] = t.open, e[7] = s.reference, e[8] = R) : R = e[8], _e(N, R), !b)
191
+ return null;
192
+ const V = Se, G = Y ?? void 0, M = ye, ee = !1;
193
+ let S;
194
+ e[9] !== f || e[10] !== n ? (S = {
195
+ ...f,
196
+ ...n
197
+ }, e[9] = f, e[10] = n, e[11] = S) : S = e[11];
198
+ const H = !a, I = v === "grey" && a;
199
+ let A;
200
+ e[12] !== c || e[13] !== h || e[14] !== H || e[15] !== I ? (A = j(m.popover, c, {
201
+ [m.popoverDark]: h,
202
+ [m.popoverNoArrow]: H,
203
+ [m.popoverVariantGrey]: I
204
+ }), e[12] = c, e[13] = h, e[14] = H, e[15] = I, e[16] = A) : A = e[16];
205
+ const oe = t.placement, O = g(d);
206
+ let _;
207
+ e[17] !== w || e[18] !== i || e[19] !== t || e[20] !== h || e[21] !== a || e[22] !== v ? (_ = a && /* @__PURE__ */ P(Pe, { ref: w, context: t, className: j(m.arrow, i, {
208
+ [m.arrowDark]: h,
209
+ [m.arrowVariantGrey]: v === "grey" && a
210
+ }), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[17] = w, e[18] = i, e[19] = t, e[20] = h, e[21] = a, e[22] = v, e[23] = _) : _ = e[23];
211
+ let k;
212
+ e[24] !== p || e[25] !== t.placement || e[26] !== x || e[27] !== T || e[28] !== A || e[29] !== O || e[30] !== _ || e[31] !== S ? (k = /* @__PURE__ */ U("div", { ref: x, style: S, className: A, "data-placement": oe, "data-status": T, ...O, children: [
213
+ _,
214
+ p
215
+ ] }), e[24] = p, e[25] = t.placement, e[26] = x, e[27] = T, e[28] = A, e[29] = O, e[30] = _, e[31] = S, e[32] = k) : k = e[32];
216
+ let C;
217
+ e[33] !== M || e[34] !== t || e[35] !== k ? (C = /* @__PURE__ */ P(M, { context: t, modal: ee, children: k }), e[33] = M, e[34] = t, e[35] = k, e[36] = C) : C = e[36];
218
+ let F;
219
+ return e[37] !== V || e[38] !== C || e[39] !== G ? (F = /* @__PURE__ */ P(V, { root: G, children: C }), e[37] = V, e[38] = C, e[39] = G, e[40] = F) : F = e[40], F;
220
+ });
221
+ X.displayName = "DSPopover.Content";
222
+ D.Anchor = Q;
223
+ D.Content = X;
224
+ D.displayName = "DSPopover";
225
+ export {
226
+ D,
227
+ Ge as a,
228
+ Te as u,
229
+ Ve as v
230
+ };