@prokodo/ui 0.0.37 → 0.0.39

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 (496) hide show
  1. package/README.md +152 -57
  2. package/dist/_virtual/default.js +4 -0
  3. package/dist/_virtual/default2.js +4 -0
  4. package/dist/_virtual/index.js +3 -5
  5. package/dist/_virtual/index2.js +2 -2
  6. package/dist/_virtual/index3.js +2 -2
  7. package/dist/_virtual/parser.js +4 -0
  8. package/dist/components/accordion/Accordion.client.js +30 -0
  9. package/dist/components/accordion/Accordion.js +8 -118
  10. package/dist/components/accordion/Accordion.lazy.js +15 -0
  11. package/dist/components/accordion/Accordion.server.js +18 -0
  12. package/dist/components/accordion/Accordion.view.js +102 -0
  13. package/dist/components/animated/Animated.client.js +49 -0
  14. package/dist/components/animated/Animated.js +8 -69
  15. package/dist/components/animated/Animated.lazy.js +17 -0
  16. package/dist/components/animated/Animated.server.js +12 -0
  17. package/dist/components/animated/Animated.view.js +35 -0
  18. package/dist/components/animatedText/AnimatedText.client.js +41 -0
  19. package/dist/components/animatedText/AnimatedText.js +8 -35
  20. package/dist/components/animatedText/AnimatedText.lazy.js +17 -0
  21. package/dist/components/animatedText/AnimatedText.server.js +12 -0
  22. package/dist/components/animatedText/AnimatedText.view.js +8 -0
  23. package/dist/components/avatar/Avatar.client.js +12 -0
  24. package/dist/components/avatar/Avatar.js +7 -81
  25. package/dist/components/avatar/Avatar.lazy.js +12 -0
  26. package/dist/components/avatar/Avatar.server.js +11 -0
  27. package/dist/components/avatar/Avatar.view.js +55 -0
  28. package/dist/components/base-link/BaseLink.client.js +43 -0
  29. package/dist/components/base-link/BaseLink.js +9 -37
  30. package/dist/components/base-link/BaseLink.lazy.js +15 -0
  31. package/dist/components/base-link/BaseLink.server.js +11 -0
  32. package/dist/components/base-link/BaseLink.view.js +69 -0
  33. package/dist/components/button/Button.client.js +5 -2
  34. package/dist/components/button/Button.module.scss.js +1 -0
  35. package/dist/components/button/Button.view.js +10 -7
  36. package/dist/components/calendly/Calendly.client.js +106 -0
  37. package/dist/components/calendly/Calendly.js +8 -116
  38. package/dist/components/calendly/Calendly.lazy.js +16 -0
  39. package/dist/components/calendly/Calendly.server.js +11 -0
  40. package/dist/components/calendly/Calendly.view.js +25 -0
  41. package/dist/components/card/Card.client.js +49 -0
  42. package/dist/components/card/Card.js +11 -201
  43. package/dist/components/card/Card.lazy.js +18 -0
  44. package/dist/components/card/Card.module.scss.js +0 -7
  45. package/dist/components/card/Card.server.js +11 -0
  46. package/dist/components/card/Card.view.js +111 -0
  47. package/dist/components/carousel/Carousel.client.js +217 -0
  48. package/dist/components/carousel/Carousel.js +8 -291
  49. package/dist/components/carousel/Carousel.lazy.js +16 -0
  50. package/dist/components/carousel/Carousel.server.js +11 -0
  51. package/dist/components/carousel/Carousel.view.js +58 -0
  52. package/dist/components/chip/Chip.client.js +45 -0
  53. package/dist/components/chip/Chip.js +7 -64
  54. package/dist/components/chip/Chip.lazy.js +12 -0
  55. package/dist/components/chip/Chip.module.scss.js +11 -1
  56. package/dist/components/chip/Chip.server.js +11 -0
  57. package/dist/components/chip/Chip.view.js +57 -0
  58. package/dist/components/datePicker/DatePicker.client.js +99 -0
  59. package/dist/components/datePicker/DatePicker.js +7 -124
  60. package/dist/components/datePicker/DatePicker.lazy.js +12 -0
  61. package/dist/components/datePicker/DatePicker.server.js +8 -0
  62. package/dist/components/datePicker/DatePicker.view.js +42 -0
  63. package/dist/components/dialog/Dialog.client.js +91 -0
  64. package/dist/components/dialog/Dialog.js +9 -164
  65. package/dist/components/dialog/Dialog.lazy.js +15 -0
  66. package/dist/components/dialog/Dialog.module.scss.js +3 -2
  67. package/dist/components/dialog/Dialog.server.js +11 -0
  68. package/dist/components/dialog/Dialog.view.js +118 -0
  69. package/dist/components/drawer/Drawer.client.js +75 -0
  70. package/dist/components/drawer/Drawer.js +8 -103
  71. package/dist/components/drawer/Drawer.lazy.js +15 -0
  72. package/dist/components/drawer/Drawer.module.scss.js +20 -13
  73. package/dist/components/drawer/Drawer.server.js +12 -0
  74. package/dist/components/drawer/Drawer.view.js +75 -0
  75. package/dist/components/drawer/index.js +2 -4
  76. package/dist/components/form/Form.client.js +176 -0
  77. package/dist/components/form/Form.js +9 -288
  78. package/dist/components/form/Form.lazy.js +12 -0
  79. package/dist/components/form/Form.module.scss.js +2 -0
  80. package/dist/components/form/Form.server.js +30 -0
  81. package/dist/components/form/Form.view.js +106 -0
  82. package/dist/components/form/FormField.client.js +98 -0
  83. package/dist/components/form/FormField.js +7 -93
  84. package/dist/components/form/FormField.lazy.js +12 -0
  85. package/dist/components/form/FormField.server.js +81 -0
  86. package/dist/components/headline/{Headline.server.js → Headline.js} +25 -23
  87. package/dist/components/headline/index.js +2 -4
  88. package/dist/components/icon/Icon.js +30 -27
  89. package/dist/components/icon/Icon.module.scss.js +1 -0
  90. package/dist/components/image-text/ImageText.js +17 -33
  91. package/dist/components/image-text/ImageText.module.scss.js +0 -4
  92. package/dist/components/input/Input.client.js +105 -0
  93. package/dist/components/input/Input.js +7 -200
  94. package/dist/components/input/Input.lazy.js +12 -0
  95. package/dist/components/input/Input.module.scss.js +3 -6
  96. package/dist/components/input/Input.server.js +11 -0
  97. package/dist/components/input/Input.view.js +128 -0
  98. package/dist/components/input/InputValidation.js +2 -2
  99. package/dist/components/inputOTP/InputOTP.js +1 -14
  100. package/dist/components/link/Link.client.js +2 -0
  101. package/dist/components/link/Link.js +1 -1
  102. package/dist/components/link/Link.lazy.js +4 -1
  103. package/dist/components/link/Link.server.js +2 -0
  104. package/dist/components/link/Link.view.js +26 -13
  105. package/dist/components/list/List.js +126 -170
  106. package/dist/components/list/List.module.scss.js +3 -0
  107. package/dist/components/loading/Loading.js +4 -3
  108. package/dist/components/lottie/Lottie.js +3 -5
  109. package/dist/components/post-item/PostItem.js +2 -2
  110. package/dist/components/post-teaser/PostTeaser.js +1 -1
  111. package/dist/components/post-widget/PostWidget.js +1 -1
  112. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +1 -1
  113. package/dist/components/quote/Quote.js +83 -77
  114. package/dist/components/rich-text/RichText.client.js +194 -0
  115. package/dist/components/rich-text/RichText.js +8 -152
  116. package/dist/components/rich-text/RichText.lazy.js +18 -0
  117. package/dist/components/rich-text/RichText.server.js +37 -0
  118. package/dist/components/select/Select.client.js +97 -0
  119. package/dist/components/select/Select.js +8 -215
  120. package/dist/components/select/Select.lazy.js +15 -0
  121. package/dist/components/select/Select.module.scss.js +14 -17
  122. package/dist/components/select/Select.server.js +11 -0
  123. package/dist/components/select/Select.view.js +159 -0
  124. package/dist/components/sidenav/SideNav.client.js +34 -0
  125. package/dist/components/sidenav/SideNav.js +14 -0
  126. package/dist/components/sidenav/SideNav.lazy.js +15 -0
  127. package/dist/components/sidenav/SideNav.module.scss.js +23 -0
  128. package/dist/components/sidenav/SideNav.server.js +11 -0
  129. package/dist/components/sidenav/SideNav.view.js +62 -0
  130. package/dist/components/sidenav/index.js +4 -0
  131. package/dist/components/slider/Slider.client.js +65 -0
  132. package/dist/components/slider/Slider.js +7 -108
  133. package/dist/components/slider/Slider.lazy.js +12 -0
  134. package/dist/components/slider/Slider.module.scss.js +4 -2
  135. package/dist/components/slider/Slider.server.js +23 -0
  136. package/dist/components/slider/Slider.view.js +130 -0
  137. package/dist/components/stepper/Stepper.client.js +132 -0
  138. package/dist/components/stepper/Stepper.js +7 -130
  139. package/dist/components/stepper/Stepper.lazy.js +12 -0
  140. package/dist/components/stepper/Stepper.module.scss.js +1 -0
  141. package/dist/components/stepper/Stepper.server.js +33 -0
  142. package/dist/components/stepper/Stepper.view.js +132 -0
  143. package/dist/components/switch/Switch.client.js +62 -0
  144. package/dist/components/switch/Switch.js +7 -103
  145. package/dist/components/switch/Switch.lazy.js +12 -0
  146. package/dist/components/switch/Switch.module.scss.js +3 -4
  147. package/dist/components/switch/Switch.server.js +26 -0
  148. package/dist/components/switch/Switch.view.js +101 -0
  149. package/dist/components/table/Table.js +62 -68
  150. package/dist/components/table/Table.module.scss.js +7 -14
  151. package/dist/components/table/TableCell.js +44 -0
  152. package/dist/components/table/TableCell.module.scss.js +14 -0
  153. package/dist/components/teaser/Teaser.js +78 -81
  154. package/dist/constants/project.js +1 -1
  155. package/dist/helpers/createIsland.js +28 -7
  156. package/dist/helpers/createLazyWrapper.js +34 -6
  157. package/dist/helpers/validations.js +1 -3
  158. package/dist/hooks/useHydrationReady.js +3 -3
  159. package/dist/index.js +3 -1
  160. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/css.js +80 -0
  161. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/default.js +370 -0
  162. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/index.js +30 -0
  163. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/parser.js +64 -0
  164. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/util.js +48 -0
  165. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +390 -0
  166. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +59 -0
  167. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  168. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  169. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +373 -0
  170. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +50 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +18 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +246 -0
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +80 -0
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +39 -0
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +58 -0
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +179 -0
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +90 -0
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +39 -0
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +126 -0
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +168 -0
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +146 -0
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +130 -0
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +30 -0
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +73 -0
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +46 -0
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +39 -0
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +65 -0
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +66 -0
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +232 -0
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +41 -0
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +181 -0
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +162 -0
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +197 -0
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +18 -0
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +15 -0
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +104 -0
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +14 -0
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +69 -0
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +157 -0
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +15 -0
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +34 -0
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +62 -0
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +49 -0
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +69 -0
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +93 -0
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +47 -0
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +56 -0
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +28 -0
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +46 -0
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +118 -0
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +113 -0
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +41 -0
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +36 -0
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +77 -0
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +102 -0
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +51 -0
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +65 -0
  223. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js +2169 -0
  224. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
  225. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +87 -0
  226. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +68 -0
  227. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +22 -0
  228. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +186 -0
  229. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +246 -0
  230. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  231. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  232. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
  233. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
  234. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
  235. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
  236. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
  237. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/default.js +319 -0
  238. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/index.js +47 -0
  239. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/parser.js +220 -0
  240. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/util.js +47 -0
  241. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/xss.js +179 -0
  242. package/dist/tsconfig.build.tsbuildinfo +1 -1
  243. package/dist/types/components/accordion/Accordion.client.d.ts +3 -0
  244. package/dist/types/components/accordion/Accordion.d.ts +13 -3
  245. package/dist/types/components/accordion/Accordion.lazy.d.ts +14 -0
  246. package/dist/types/components/accordion/Accordion.model.d.ts +6 -2
  247. package/dist/types/components/accordion/Accordion.server.d.ts +3 -0
  248. package/dist/types/components/accordion/Accordion.view.d.ts +3 -0
  249. package/dist/types/components/animated/Animated.client.d.ts +3 -0
  250. package/dist/types/components/animated/Animated.d.ts +3 -2
  251. package/dist/types/components/animated/Animated.lazy.d.ts +5 -0
  252. package/dist/types/components/animated/Animated.model.d.ts +3 -0
  253. package/dist/types/components/animated/Animated.server.d.ts +3 -0
  254. package/dist/types/components/animated/Animated.view.d.ts +3 -0
  255. package/dist/types/components/animatedText/AnimatedText.client.d.ts +3 -0
  256. package/dist/types/components/animatedText/AnimatedText.d.ts +8 -3
  257. package/dist/types/components/animatedText/AnimatedText.lazy.d.ts +9 -0
  258. package/dist/types/components/animatedText/AnimatedText.model.d.ts +3 -0
  259. package/dist/types/components/animatedText/AnimatedText.server.d.ts +3 -0
  260. package/dist/types/components/animatedText/AnimatedText.view.d.ts +3 -0
  261. package/dist/types/components/avatar/Avatar.client.d.ts +3 -0
  262. package/dist/types/components/avatar/Avatar.d.ts +10 -3
  263. package/dist/types/components/avatar/Avatar.lazy.d.ts +11 -0
  264. package/dist/types/components/avatar/Avatar.model.d.ts +1 -0
  265. package/dist/types/components/avatar/Avatar.server.d.ts +3 -0
  266. package/dist/types/components/avatar/Avatar.view.d.ts +3 -0
  267. package/dist/types/components/base-link/BaseLink.client.d.ts +3 -0
  268. package/dist/types/components/base-link/BaseLink.d.ts +3 -2
  269. package/dist/types/components/base-link/BaseLink.lazy.d.ts +5 -0
  270. package/dist/types/components/base-link/BaseLink.server.d.ts +3 -0
  271. package/dist/types/components/base-link/BaseLink.view.d.ts +3 -0
  272. package/dist/types/components/button/Button.client.d.ts +9 -3
  273. package/dist/types/components/button/Button.model.d.ts +6 -3
  274. package/dist/types/components/button/Button.view.d.ts +2 -2
  275. package/dist/types/components/calendly/Calendly.client.d.ts +3 -0
  276. package/dist/types/components/calendly/Calendly.d.ts +13 -22
  277. package/dist/types/components/calendly/Calendly.lazy.d.ts +14 -0
  278. package/dist/types/components/calendly/Calendly.model.d.ts +4 -2
  279. package/dist/types/components/calendly/Calendly.server.d.ts +3 -0
  280. package/dist/types/components/calendly/Calendly.view.d.ts +3 -0
  281. package/dist/types/components/card/Card.client.d.ts +3 -0
  282. package/dist/types/components/card/Card.d.ts +3 -2
  283. package/dist/types/components/card/Card.lazy.d.ts +5 -0
  284. package/dist/types/components/card/Card.model.d.ts +6 -4
  285. package/dist/types/components/card/Card.server.d.ts +3 -0
  286. package/dist/types/components/card/Card.view.d.ts +11 -0
  287. package/dist/types/components/card/index.d.ts +1 -1
  288. package/dist/types/components/carousel/Carousel.client.d.ts +3 -0
  289. package/dist/types/components/carousel/Carousel.d.ts +18 -3
  290. package/dist/types/components/carousel/Carousel.lazy.d.ts +19 -0
  291. package/dist/types/components/carousel/Carousel.server.d.ts +3 -0
  292. package/dist/types/components/carousel/Carousel.view.d.ts +3 -0
  293. package/dist/types/components/chip/Chip.client.d.ts +3 -0
  294. package/dist/types/components/chip/Chip.d.ts +3 -2
  295. package/dist/types/components/chip/Chip.lazy.d.ts +5 -0
  296. package/dist/types/components/chip/Chip.model.d.ts +7 -4
  297. package/dist/types/components/chip/Chip.server.d.ts +3 -0
  298. package/dist/types/components/chip/Chip.view.d.ts +5 -0
  299. package/dist/types/components/datePicker/DatePicker.client.d.ts +4 -0
  300. package/dist/types/components/datePicker/DatePicker.d.ts +3 -2
  301. package/dist/types/components/datePicker/DatePicker.lazy.d.ts +5 -0
  302. package/dist/types/components/datePicker/DatePicker.model.d.ts +8 -3
  303. package/dist/types/components/datePicker/DatePicker.server.d.ts +4 -0
  304. package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -0
  305. package/dist/types/components/dialog/Dialog.client.d.ts +3 -0
  306. package/dist/types/components/dialog/Dialog.d.ts +7 -3
  307. package/dist/types/components/dialog/Dialog.lazy.d.ts +8 -0
  308. package/dist/types/components/dialog/Dialog.model.d.ts +25 -15
  309. package/dist/types/components/dialog/Dialog.server.d.ts +4 -0
  310. package/dist/types/components/dialog/Dialog.view.d.ts +3 -0
  311. package/dist/types/components/drawer/Drawer.client.d.ts +3 -0
  312. package/dist/types/components/drawer/Drawer.d.ts +5 -5
  313. package/dist/types/components/drawer/Drawer.lazy.d.ts +5 -0
  314. package/dist/types/components/drawer/Drawer.model.d.ts +29 -8
  315. package/dist/types/components/drawer/Drawer.server.d.ts +3 -0
  316. package/dist/types/components/drawer/Drawer.view.d.ts +3 -0
  317. package/dist/types/components/drawer/index.d.ts +1 -1
  318. package/dist/types/components/form/Form.client.d.ts +2 -0
  319. package/dist/types/components/form/Form.d.ts +17 -3
  320. package/dist/types/components/form/Form.lazy.d.ts +18 -0
  321. package/dist/types/components/form/Form.model.d.ts +22 -5
  322. package/dist/types/components/form/Form.server.d.ts +4 -0
  323. package/dist/types/components/form/Form.view.d.ts +3 -0
  324. package/dist/types/components/form/FormField.client.d.ts +9 -0
  325. package/dist/types/components/form/FormField.d.ts +8 -9
  326. package/dist/types/components/form/FormField.lazy.d.ts +9 -0
  327. package/dist/types/components/form/FormField.server.d.ts +9 -0
  328. package/dist/types/components/form/index.d.ts +1 -1
  329. package/dist/types/components/headline/{Headline.server.d.ts → Headline.d.ts} +1 -1
  330. package/dist/types/components/headline/Headline.model.d.ts +7 -6
  331. package/dist/types/components/headline/index.d.ts +1 -2
  332. package/dist/types/components/image/Image.model.d.ts +5 -3
  333. package/dist/types/components/image/index.d.ts +1 -1
  334. package/dist/types/components/image-text/ImageText.d.ts +1 -1
  335. package/dist/types/components/image-text/ImageText.model.d.ts +5 -5
  336. package/dist/types/components/image-text/index.d.ts +1 -1
  337. package/dist/types/components/input/Input.client.d.ts +5 -0
  338. package/dist/types/components/input/Input.d.ts +3 -2
  339. package/dist/types/components/input/Input.lazy.d.ts +5 -0
  340. package/dist/types/components/input/Input.model.d.ts +21 -15
  341. package/dist/types/components/input/Input.server.d.ts +3 -0
  342. package/dist/types/components/input/Input.view.d.ts +3 -0
  343. package/dist/types/components/input/index.d.ts +1 -1
  344. package/dist/types/components/link/Link.client.d.ts +1 -1
  345. package/dist/types/components/link/Link.lazy.d.ts +1 -1
  346. package/dist/types/components/link/Link.model.d.ts +2 -1
  347. package/dist/types/components/link/Link.view.d.ts +2 -2
  348. package/dist/types/components/list/List.d.ts +5 -2
  349. package/dist/types/components/list/List.model.d.ts +3 -3
  350. package/dist/types/components/loading/Loading.d.ts +1 -1
  351. package/dist/types/components/lottie/Lottie.model.d.ts +1 -3
  352. package/dist/types/components/lottie/index.d.ts +1 -1
  353. package/dist/types/components/quote/Quote.d.ts +1 -1
  354. package/dist/types/components/rich-text/RichText.client.d.ts +6 -0
  355. package/dist/types/components/rich-text/RichText.d.ts +13 -3
  356. package/dist/types/components/rich-text/RichText.lazy.d.ts +14 -0
  357. package/dist/types/components/rich-text/RichText.model.d.ts +9 -4
  358. package/dist/types/components/rich-text/RichText.server.d.ts +3 -0
  359. package/dist/types/components/select/Select.client.d.ts +5 -0
  360. package/dist/types/components/select/Select.d.ts +3 -2
  361. package/dist/types/components/select/Select.lazy.d.ts +5 -0
  362. package/dist/types/components/select/Select.model.d.ts +35 -23
  363. package/dist/types/components/select/Select.server.d.ts +3 -0
  364. package/dist/types/components/select/Select.view.d.ts +3 -0
  365. package/dist/types/components/select/index.d.ts +1 -1
  366. package/dist/types/components/sidenav/SideNav.client.d.ts +3 -0
  367. package/dist/types/components/sidenav/SideNav.d.ts +3 -0
  368. package/dist/types/components/sidenav/SideNav.lazy.d.ts +5 -0
  369. package/dist/types/components/sidenav/SideNav.model.d.ts +24 -0
  370. package/dist/types/components/sidenav/SideNav.server.d.ts +3 -0
  371. package/dist/types/components/sidenav/SideNav.view.d.ts +3 -0
  372. package/dist/types/components/sidenav/index.d.ts +2 -0
  373. package/dist/types/components/slider/Slider.client.d.ts +4 -0
  374. package/dist/types/components/slider/Slider.d.ts +3 -2
  375. package/dist/types/components/slider/Slider.lazy.d.ts +5 -0
  376. package/dist/types/components/slider/Slider.model.d.ts +29 -6
  377. package/dist/types/components/slider/Slider.server.d.ts +3 -0
  378. package/dist/types/components/slider/Slider.view.d.ts +3 -0
  379. package/dist/types/components/stepper/Stepper.client.d.ts +3 -0
  380. package/dist/types/components/stepper/Stepper.d.ts +11 -3
  381. package/dist/types/components/stepper/Stepper.lazy.d.ts +12 -0
  382. package/dist/types/components/stepper/Stepper.model.d.ts +18 -3
  383. package/dist/types/components/stepper/Stepper.server.d.ts +3 -0
  384. package/dist/types/components/stepper/Stepper.view.d.ts +3 -0
  385. package/dist/types/components/switch/Switch.client.d.ts +4 -0
  386. package/dist/types/components/switch/Switch.d.ts +18 -3
  387. package/dist/types/components/switch/Switch.lazy.d.ts +19 -0
  388. package/dist/types/components/switch/Switch.model.d.ts +19 -10
  389. package/dist/types/components/switch/Switch.server.d.ts +3 -0
  390. package/dist/types/components/switch/Switch.view.d.ts +3 -0
  391. package/dist/types/components/table/Table.d.ts +1 -1
  392. package/dist/types/components/table/Table.model.d.ts +16 -14
  393. package/dist/types/components/table/TableCell.d.ts +10 -0
  394. package/dist/types/components/teaser/Teaser.d.ts +1 -1
  395. package/dist/types/components/teaser/Teaser.model.d.ts +1 -3
  396. package/dist/types/components/teaser/index.d.ts +1 -1
  397. package/dist/types/helpers/createLazyWrapper.d.ts +4 -1
  398. package/dist/types/hooks/useHydrationReady.d.ts +1 -1
  399. package/dist/types/index.d.ts +1 -0
  400. package/dist/types/types/colors.d.ts +1 -1
  401. package/dist/ui.css +2726 -2031
  402. package/package.json +20 -6
  403. package/dist/_virtual/_commonjsHelpers.js +0 -9
  404. package/dist/_virtual/react-is.development.js +0 -4
  405. package/dist/_virtual/react-is.production.min.js +0 -4
  406. package/dist/assets/images/card_background_primary_1.webp.js +0 -4
  407. package/dist/assets/images/card_background_primary_2.webp.js +0 -4
  408. package/dist/assets/images/card_background_primary_3.webp.js +0 -4
  409. package/dist/assets/images/card_background_primary_4.webp.js +0 -4
  410. package/dist/assets/images/card_background_secondary_1.webp.js +0 -4
  411. package/dist/assets/images/card_background_secondary_2.webp.js +0 -4
  412. package/dist/assets/images/card_background_secondary_3.webp.js +0 -4
  413. package/dist/assets/images/card_background_secondary_4.webp.js +0 -4
  414. package/dist/components/headline/Headline.client.js +0 -85
  415. package/dist/components/lottie/LottieAnimations.js +0 -35
  416. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -456
  417. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -641
  418. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -250
  419. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -189
  420. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -170
  421. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +0 -133
  422. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/optionClasses.js +0 -13
  423. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +0 -85
  424. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +0 -315
  425. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/selectClasses.js +0 -13
  426. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +0 -459
  427. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/sliderClasses.js +0 -13
  428. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +0 -173
  429. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/switchClasses.js +0 -13
  430. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +0 -225
  431. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/PopupContext.js +0 -8
  432. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/popupClasses.js +0 -13
  433. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/generateUtilityClass/index.js +0 -20
  434. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/generateUtilityClasses/index.js +0 -14
  435. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useButton/useButton.js +0 -166
  436. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useCompound/useCompoundItem.js +0 -32
  437. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useCompound/useCompoundParent.js +0 -74
  438. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/ListContext.js +0 -8
  439. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/listActions.types.js +0 -14
  440. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/listReducer.js +0 -318
  441. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/useList.js +0 -211
  442. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/useListItem.js +0 -81
  443. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useOption/useOption.js +0 -82
  444. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useOption/useOptionContextStabilizer.js +0 -40
  445. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +0 -40
  446. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/defaultOptionStringifier.js +0 -18
  447. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/selectReducer.js +0 -74
  448. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/useSelect.js +0 -361
  449. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/useSelect.types.js +0 -7
  450. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSlider/useSlider.js +0 -620
  451. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSwitch/useSwitch.js +0 -87
  452. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useTransition/TransitionContext.js +0 -8
  453. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useTransition/useTransitionTrigger.js +0 -55
  454. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/ClassNameConfigurator.js +0 -25
  455. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/areArraysEqual.js +0 -9
  456. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/combineHooksSlotProps.js +0 -19
  457. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/isHostComponent.js +0 -9
  458. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/resolveComponentProps.js +0 -12
  459. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useControllableReducer.js +0 -101
  460. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useRootElementName.js +0 -25
  461. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useTextNavigation.js +0 -28
  462. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js +0 -20
  463. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +0 -19
  464. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -14
  465. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/clamp/clamp.js +0 -9
  466. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -24
  467. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/exactProp/exactProp.js +0 -22
  468. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +0 -16
  469. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -17
  470. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.js +0 -18
  471. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js +0 -16
  472. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +0 -9
  473. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +0 -71
  474. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +0 -16
  475. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -9
  476. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +0 -12
  477. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/setRef/setRef.js +0 -13
  478. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -40
  479. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -5
  480. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -18
  481. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -20
  482. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useId/useId.js +0 -28
  483. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +0 -34
  484. package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +0 -14
  485. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -21
  486. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -83
  487. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +0 -72
  488. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  489. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +0 -490
  490. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +0 -23
  491. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -15
  492. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +0 -14
  493. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -183
  494. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -111
  495. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -20
  496. package/dist/types/components/headline/Headline.client.d.ts +0 -3
@@ -1,318 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { ListActionTypes } from "./listActions.types.js";
4
- function findValidItemToHighlight(currentIndex, lookupDirection, items, includeDisabledItems, isItemDisabled, wrapAround) {
5
- if (items.length === 0 || !includeDisabledItems && items.every((item, itemIndex) => isItemDisabled(item, itemIndex))) {
6
- return -1;
7
- }
8
- let nextFocus = currentIndex;
9
- for (; ; ) {
10
- if (!wrapAround && lookupDirection === "next" && nextFocus === items.length || !wrapAround && lookupDirection === "previous" && nextFocus === -1) {
11
- return -1;
12
- }
13
- const nextFocusDisabled = includeDisabledItems ? false : isItemDisabled(items[nextFocus], nextFocus);
14
- if (nextFocusDisabled) {
15
- nextFocus += lookupDirection === "next" ? 1 : -1;
16
- if (wrapAround) {
17
- nextFocus = (nextFocus + items.length) % items.length;
18
- }
19
- } else {
20
- return nextFocus;
21
- }
22
- }
23
- }
24
- __name(findValidItemToHighlight, "findValidItemToHighlight");
25
- function moveHighlight(previouslyHighlightedValue, offset, context) {
26
- const {
27
- items,
28
- isItemDisabled,
29
- disableListWrap,
30
- disabledItemsFocusable,
31
- itemComparer,
32
- focusManagement
33
- } = context;
34
- const defaultHighlightedIndex = focusManagement === "DOM" ? 0 : -1;
35
- const maxIndex = items.length - 1;
36
- const previouslyHighlightedIndex = previouslyHighlightedValue == null ? -1 : items.findIndex((item) => itemComparer(item, previouslyHighlightedValue));
37
- let nextIndexCandidate;
38
- let lookupDirection;
39
- let wrapAround = !disableListWrap;
40
- switch (offset) {
41
- case "reset":
42
- if (defaultHighlightedIndex === -1) {
43
- return null;
44
- }
45
- nextIndexCandidate = 0;
46
- lookupDirection = "next";
47
- wrapAround = false;
48
- break;
49
- case "start":
50
- nextIndexCandidate = 0;
51
- lookupDirection = "next";
52
- wrapAround = false;
53
- break;
54
- case "end":
55
- nextIndexCandidate = maxIndex;
56
- lookupDirection = "previous";
57
- wrapAround = false;
58
- break;
59
- default: {
60
- const newIndex = previouslyHighlightedIndex + offset;
61
- if (newIndex < 0) {
62
- if (!wrapAround && previouslyHighlightedIndex !== -1 || Math.abs(offset) > 1) {
63
- nextIndexCandidate = 0;
64
- lookupDirection = "next";
65
- } else {
66
- nextIndexCandidate = maxIndex;
67
- lookupDirection = "previous";
68
- }
69
- } else if (newIndex > maxIndex) {
70
- if (!wrapAround || Math.abs(offset) > 1) {
71
- nextIndexCandidate = maxIndex;
72
- lookupDirection = "previous";
73
- } else {
74
- nextIndexCandidate = 0;
75
- lookupDirection = "next";
76
- }
77
- } else {
78
- nextIndexCandidate = newIndex;
79
- lookupDirection = offset >= 0 ? "next" : "previous";
80
- }
81
- }
82
- }
83
- const nextIndex = findValidItemToHighlight(nextIndexCandidate, lookupDirection, items, disabledItemsFocusable, isItemDisabled, wrapAround);
84
- if (nextIndex === -1 && previouslyHighlightedValue !== null && !isItemDisabled(previouslyHighlightedValue, previouslyHighlightedIndex)) {
85
- return previouslyHighlightedValue;
86
- }
87
- return items[nextIndex] ?? null;
88
- }
89
- __name(moveHighlight, "moveHighlight");
90
- function toggleSelection(item, selectedValues, selectionMode, itemComparer) {
91
- if (selectionMode === "none") {
92
- return [];
93
- }
94
- if (selectionMode === "single") {
95
- if (itemComparer(selectedValues[0], item)) {
96
- return selectedValues;
97
- }
98
- return [item];
99
- }
100
- if (selectedValues.some((sv) => itemComparer(sv, item))) {
101
- return selectedValues.filter((sv) => !itemComparer(sv, item));
102
- }
103
- return [...selectedValues, item];
104
- }
105
- __name(toggleSelection, "toggleSelection");
106
- function handleItemSelection(item, state, context) {
107
- const {
108
- itemComparer,
109
- isItemDisabled,
110
- selectionMode,
111
- items
112
- } = context;
113
- const {
114
- selectedValues
115
- } = state;
116
- const itemIndex = items.findIndex((i) => itemComparer(item, i));
117
- if (isItemDisabled(item, itemIndex)) {
118
- return state;
119
- }
120
- const newSelectedValues = toggleSelection(item, selectedValues, selectionMode, itemComparer);
121
- return {
122
- ...state,
123
- selectedValues: newSelectedValues,
124
- highlightedValue: item
125
- };
126
- }
127
- __name(handleItemSelection, "handleItemSelection");
128
- function handleKeyDown(key, state, context) {
129
- const previouslySelectedValue = state.highlightedValue;
130
- const {
131
- orientation,
132
- pageSize
133
- } = context;
134
- switch (key) {
135
- case "Home":
136
- return {
137
- ...state,
138
- highlightedValue: moveHighlight(previouslySelectedValue, "start", context)
139
- };
140
- case "End":
141
- return {
142
- ...state,
143
- highlightedValue: moveHighlight(previouslySelectedValue, "end", context)
144
- };
145
- case "PageUp":
146
- return {
147
- ...state,
148
- highlightedValue: moveHighlight(previouslySelectedValue, -pageSize, context)
149
- };
150
- case "PageDown":
151
- return {
152
- ...state,
153
- highlightedValue: moveHighlight(previouslySelectedValue, pageSize, context)
154
- };
155
- case "ArrowUp":
156
- if (orientation !== "vertical") {
157
- break;
158
- }
159
- return {
160
- ...state,
161
- highlightedValue: moveHighlight(previouslySelectedValue, -1, context)
162
- };
163
- case "ArrowDown":
164
- if (orientation !== "vertical") {
165
- break;
166
- }
167
- return {
168
- ...state,
169
- highlightedValue: moveHighlight(previouslySelectedValue, 1, context)
170
- };
171
- case "ArrowLeft": {
172
- if (orientation === "vertical") {
173
- break;
174
- }
175
- const offset = orientation === "horizontal-ltr" ? -1 : 1;
176
- return {
177
- ...state,
178
- highlightedValue: moveHighlight(previouslySelectedValue, offset, context)
179
- };
180
- }
181
- case "ArrowRight": {
182
- if (orientation === "vertical") {
183
- break;
184
- }
185
- const offset = orientation === "horizontal-ltr" ? 1 : -1;
186
- return {
187
- ...state,
188
- highlightedValue: moveHighlight(previouslySelectedValue, offset, context)
189
- };
190
- }
191
- case "Enter":
192
- case " ":
193
- if (state.highlightedValue === null) {
194
- return state;
195
- }
196
- return handleItemSelection(state.highlightedValue, state, context);
197
- }
198
- return state;
199
- }
200
- __name(handleKeyDown, "handleKeyDown");
201
- function handleBlur(state, context) {
202
- if (context.focusManagement === "DOM") {
203
- return state;
204
- }
205
- return {
206
- ...state,
207
- highlightedValue: null
208
- };
209
- }
210
- __name(handleBlur, "handleBlur");
211
- function textCriteriaMatches(nextFocus, searchString, stringifyItem) {
212
- var _a;
213
- const text = (_a = stringifyItem(nextFocus)) == null ? void 0 : _a.trim().toLowerCase();
214
- if (!text || text.length === 0) {
215
- return false;
216
- }
217
- return text.startsWith(searchString);
218
- }
219
- __name(textCriteriaMatches, "textCriteriaMatches");
220
- function handleTextNavigation(state, searchString, context) {
221
- const {
222
- items,
223
- isItemDisabled,
224
- disabledItemsFocusable,
225
- getItemAsString
226
- } = context;
227
- const startWithCurrentItem = searchString.length > 1;
228
- let nextItem = startWithCurrentItem ? state.highlightedValue : moveHighlight(state.highlightedValue, 1, context);
229
- for (let index = 0; index < items.length; index += 1) {
230
- if (!nextItem || !startWithCurrentItem && state.highlightedValue === nextItem) {
231
- return state;
232
- }
233
- if (textCriteriaMatches(nextItem, searchString, getItemAsString) && (!isItemDisabled(nextItem, items.indexOf(nextItem)) || disabledItemsFocusable)) {
234
- return {
235
- ...state,
236
- highlightedValue: nextItem
237
- };
238
- }
239
- nextItem = moveHighlight(nextItem, 1, context);
240
- }
241
- return state;
242
- }
243
- __name(handleTextNavigation, "handleTextNavigation");
244
- function handleItemsChange(items, previousItems, state, context) {
245
- const {
246
- itemComparer,
247
- focusManagement
248
- } = context;
249
- let newHighlightedValue = null;
250
- if (state.highlightedValue != null) {
251
- newHighlightedValue = items.find((item) => itemComparer(item, state.highlightedValue)) ?? null;
252
- } else if (focusManagement === "DOM" && previousItems.length === 0) {
253
- newHighlightedValue = moveHighlight(null, "reset", context);
254
- }
255
- const selectedValues = state.selectedValues ?? [];
256
- const newSelectedValues = selectedValues.filter((selectedValue) => items.some((item) => itemComparer(item, selectedValue)));
257
- return {
258
- ...state,
259
- highlightedValue: newHighlightedValue,
260
- selectedValues: newSelectedValues
261
- };
262
- }
263
- __name(handleItemsChange, "handleItemsChange");
264
- function handleResetHighlight(state, context) {
265
- return {
266
- ...state,
267
- highlightedValue: moveHighlight(null, "reset", context)
268
- };
269
- }
270
- __name(handleResetHighlight, "handleResetHighlight");
271
- function handleHighlightLast(state, context) {
272
- return {
273
- ...state,
274
- highlightedValue: moveHighlight(null, "end", context)
275
- };
276
- }
277
- __name(handleHighlightLast, "handleHighlightLast");
278
- function handleClearSelection(state, context) {
279
- return {
280
- ...state,
281
- selectedValues: [],
282
- highlightedValue: moveHighlight(null, "reset", context)
283
- };
284
- }
285
- __name(handleClearSelection, "handleClearSelection");
286
- function listReducer(state, action) {
287
- const {
288
- type,
289
- context
290
- } = action;
291
- switch (type) {
292
- case ListActionTypes.keyDown:
293
- return handleKeyDown(action.key, state, context);
294
- case ListActionTypes.itemClick:
295
- return handleItemSelection(action.item, state, context);
296
- case ListActionTypes.blur:
297
- return handleBlur(state, context);
298
- case ListActionTypes.textNavigation:
299
- return handleTextNavigation(state, action.searchString, context);
300
- case ListActionTypes.itemsChange:
301
- return handleItemsChange(action.items, action.previousItems, state, context);
302
- case ListActionTypes.resetHighlight:
303
- return handleResetHighlight(state, context);
304
- case ListActionTypes.highlightLast:
305
- return handleHighlightLast(state, context);
306
- case ListActionTypes.clearSelection:
307
- return handleClearSelection(state, context);
308
- default:
309
- return state;
310
- }
311
- }
312
- __name(listReducer, "listReducer");
313
- export {
314
- handleItemSelection,
315
- listReducer,
316
- moveHighlight,
317
- toggleSelection
318
- };
@@ -1,211 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import * as React from "react";
4
- import { ListActionTypes } from "./listActions.types.js";
5
- import { listReducer } from "./listReducer.js";
6
- import { useControllableReducer } from "../utils/useControllableReducer.js";
7
- import { areArraysEqual } from "../utils/areArraysEqual.js";
8
- import { useTextNavigation } from "../utils/useTextNavigation.js";
9
- import useForkRef from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
10
- import extractEventHandlers from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js";
11
- const EMPTY_OBJECT = {};
12
- const NOOP = /* @__PURE__ */ __name(() => {
13
- }, "NOOP");
14
- const defaultItemComparer = /* @__PURE__ */ __name((optionA, optionB) => optionA === optionB, "defaultItemComparer");
15
- const defaultIsItemDisabled = /* @__PURE__ */ __name(() => false, "defaultIsItemDisabled");
16
- const defaultItemStringifier = /* @__PURE__ */ __name((item) => typeof item === "string" ? item : String(item), "defaultItemStringifier");
17
- const defaultGetInitialState = /* @__PURE__ */ __name(() => ({
18
- highlightedValue: null,
19
- selectedValues: []
20
- }), "defaultGetInitialState");
21
- function useList(params) {
22
- const {
23
- controlledProps = EMPTY_OBJECT,
24
- disabledItemsFocusable = false,
25
- disableListWrap = false,
26
- focusManagement = "activeDescendant",
27
- getInitialState = defaultGetInitialState,
28
- getItemDomElement,
29
- getItemId,
30
- isItemDisabled = defaultIsItemDisabled,
31
- rootRef: externalListRef,
32
- onStateChange = NOOP,
33
- items,
34
- itemComparer = defaultItemComparer,
35
- getItemAsString = defaultItemStringifier,
36
- onChange,
37
- onHighlightChange,
38
- onItemsChange,
39
- orientation = "vertical",
40
- pageSize = 5,
41
- reducerActionContext = EMPTY_OBJECT,
42
- selectionMode = "single",
43
- stateReducer: externalReducer,
44
- componentName = "useList"
45
- } = params;
46
- if (process.env.NODE_ENV !== "production") {
47
- if (focusManagement === "DOM" && getItemDomElement == null) {
48
- throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");
49
- }
50
- if (focusManagement === "activeDescendant" && getItemId == null) {
51
- throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.");
52
- }
53
- }
54
- const listRef = React.useRef(null);
55
- const handleRef = useForkRef(externalListRef, listRef);
56
- const handleHighlightChange = React.useCallback((event, value, reason) => {
57
- var _a;
58
- onHighlightChange == null ? void 0 : onHighlightChange(event, value, reason);
59
- if (focusManagement === "DOM" && value != null && (reason === ListActionTypes.itemClick || reason === ListActionTypes.keyDown || reason === ListActionTypes.textNavigation)) {
60
- (_a = getItemDomElement == null ? void 0 : getItemDomElement(value)) == null ? void 0 : _a.focus();
61
- }
62
- }, [getItemDomElement, onHighlightChange, focusManagement]);
63
- const stateComparers = React.useMemo(() => ({
64
- highlightedValue: itemComparer,
65
- selectedValues: /* @__PURE__ */ __name((valuesArray1, valuesArray2) => areArraysEqual(valuesArray1, valuesArray2, itemComparer), "selectedValues")
66
- }), [itemComparer]);
67
- const handleStateChange = React.useCallback((event, field, value, reason, state2) => {
68
- onStateChange == null ? void 0 : onStateChange(event, field, value, reason, state2);
69
- switch (field) {
70
- case "highlightedValue":
71
- handleHighlightChange(event, value, reason);
72
- break;
73
- case "selectedValues":
74
- onChange == null ? void 0 : onChange(event, value, reason);
75
- break;
76
- }
77
- }, [handleHighlightChange, onChange, onStateChange]);
78
- const listActionContext = React.useMemo(() => {
79
- return {
80
- disabledItemsFocusable,
81
- disableListWrap,
82
- focusManagement,
83
- isItemDisabled,
84
- itemComparer,
85
- items,
86
- getItemAsString,
87
- onHighlightChange: handleHighlightChange,
88
- orientation,
89
- pageSize,
90
- selectionMode,
91
- stateComparers
92
- };
93
- }, [disabledItemsFocusable, disableListWrap, focusManagement, isItemDisabled, itemComparer, items, getItemAsString, handleHighlightChange, orientation, pageSize, selectionMode, stateComparers]);
94
- const initialState = getInitialState();
95
- const reducer = externalReducer ?? listReducer;
96
- const actionContext = React.useMemo(() => ({
97
- ...reducerActionContext,
98
- ...listActionContext
99
- }), [reducerActionContext, listActionContext]);
100
- const [state, dispatch] = useControllableReducer({
101
- reducer,
102
- actionContext,
103
- initialState,
104
- controlledProps,
105
- stateComparers,
106
- onStateChange: handleStateChange,
107
- componentName
108
- });
109
- const {
110
- highlightedValue,
111
- selectedValues
112
- } = state;
113
- const handleTextNavigation = useTextNavigation((searchString, event) => dispatch({
114
- type: ListActionTypes.textNavigation,
115
- event,
116
- searchString
117
- }));
118
- const previousItems = React.useRef([]);
119
- React.useEffect(() => {
120
- if (areArraysEqual(previousItems.current, items, itemComparer)) {
121
- return;
122
- }
123
- dispatch({
124
- type: ListActionTypes.itemsChange,
125
- event: null,
126
- items,
127
- previousItems: previousItems.current
128
- });
129
- previousItems.current = items;
130
- onItemsChange == null ? void 0 : onItemsChange(items);
131
- }, [items, itemComparer, dispatch, onItemsChange]);
132
- const createHandleKeyDown = /* @__PURE__ */ __name((externalHandlers) => (event) => {
133
- var _a;
134
- (_a = externalHandlers.onKeyDown) == null ? void 0 : _a.call(externalHandlers, event);
135
- if (event.defaultMuiPrevented) {
136
- return;
137
- }
138
- const keysToPreventDefault = ["Home", "End", "PageUp", "PageDown"];
139
- if (orientation === "vertical") {
140
- keysToPreventDefault.push("ArrowUp", "ArrowDown");
141
- } else {
142
- keysToPreventDefault.push("ArrowLeft", "ArrowRight");
143
- }
144
- if (focusManagement === "activeDescendant") {
145
- keysToPreventDefault.push(" ", "Enter");
146
- }
147
- if (keysToPreventDefault.includes(event.key)) {
148
- event.preventDefault();
149
- }
150
- dispatch({
151
- type: ListActionTypes.keyDown,
152
- key: event.key,
153
- event
154
- });
155
- handleTextNavigation(event);
156
- }, "createHandleKeyDown");
157
- const createHandleBlur = /* @__PURE__ */ __name((externalHandlers) => (event) => {
158
- var _a, _b;
159
- (_a = externalHandlers.onBlur) == null ? void 0 : _a.call(externalHandlers, event);
160
- if (event.defaultMuiPrevented) {
161
- return;
162
- }
163
- if ((_b = listRef.current) == null ? void 0 : _b.contains(event.relatedTarget)) {
164
- return;
165
- }
166
- dispatch({
167
- type: ListActionTypes.blur,
168
- event
169
- });
170
- }, "createHandleBlur");
171
- const getRootProps = /* @__PURE__ */ __name((externalProps = {}) => {
172
- const externalEventHandlers = extractEventHandlers(externalProps);
173
- return {
174
- ...externalProps,
175
- "aria-activedescendant": focusManagement === "activeDescendant" && highlightedValue != null ? getItemId(highlightedValue) : void 0,
176
- tabIndex: focusManagement === "DOM" ? -1 : 0,
177
- ref: handleRef,
178
- ...externalEventHandlers,
179
- onBlur: createHandleBlur(externalEventHandlers),
180
- onKeyDown: createHandleKeyDown(externalEventHandlers)
181
- };
182
- }, "getRootProps");
183
- const getItemState = React.useCallback((item) => {
184
- const selected = (selectedValues ?? []).some((value) => value != null && itemComparer(item, value));
185
- const highlighted = highlightedValue != null && itemComparer(item, highlightedValue);
186
- const focusable = focusManagement === "DOM";
187
- return {
188
- focusable,
189
- highlighted,
190
- selected
191
- };
192
- }, [itemComparer, selectedValues, highlightedValue, focusManagement]);
193
- const contextValue = React.useMemo(() => ({
194
- dispatch,
195
- getItemState
196
- }), [dispatch, getItemState]);
197
- React.useDebugValue({
198
- state
199
- });
200
- return {
201
- contextValue,
202
- dispatch,
203
- getRootProps,
204
- rootRef: handleRef,
205
- state
206
- };
207
- }
208
- __name(useList, "useList");
209
- export {
210
- useList
211
- };
@@ -1,81 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import * as React from "react";
4
- import { ListActionTypes } from "./listActions.types.js";
5
- import { ListContext } from "./ListContext.js";
6
- import extractEventHandlers from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js";
7
- function useListItem(parameters) {
8
- const {
9
- handlePointerOverEvents = false,
10
- item
11
- } = parameters;
12
- const listContext = React.useContext(ListContext);
13
- if (!listContext) {
14
- throw new Error("useListItem must be used within a ListProvider");
15
- }
16
- const {
17
- dispatch,
18
- getItemState
19
- } = listContext;
20
- const {
21
- highlighted,
22
- selected,
23
- focusable
24
- } = getItemState(item);
25
- const createHandleClick = React.useCallback((externalHandlers) => (event) => {
26
- var _a;
27
- (_a = externalHandlers.onClick) == null ? void 0 : _a.call(externalHandlers, event);
28
- if (event.defaultPrevented) {
29
- return;
30
- }
31
- if (process.env.NODE_ENV !== "production") {
32
- if (item === void 0) {
33
- throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join("\n"));
34
- }
35
- }
36
- dispatch({
37
- type: ListActionTypes.itemClick,
38
- item,
39
- event
40
- });
41
- }, [dispatch, item]);
42
- const createHandlePointerOver = React.useCallback((externalHandlers) => (event) => {
43
- var _a;
44
- (_a = externalHandlers.onMouseOver) == null ? void 0 : _a.call(externalHandlers, event);
45
- if (event.defaultPrevented) {
46
- return;
47
- }
48
- if (process.env.NODE_ENV !== "production") {
49
- if (item === void 0) {
50
- throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join("\n"));
51
- }
52
- }
53
- dispatch({
54
- type: ListActionTypes.itemHover,
55
- item,
56
- event
57
- });
58
- }, [dispatch, item]);
59
- let tabIndex;
60
- if (focusable) {
61
- tabIndex = highlighted ? 0 : -1;
62
- }
63
- const getRootProps = /* @__PURE__ */ __name((externalProps = {}) => {
64
- const externalEventHandlers = extractEventHandlers(externalProps);
65
- return {
66
- ...externalProps,
67
- onClick: createHandleClick(externalEventHandlers),
68
- onPointerOver: handlePointerOverEvents ? createHandlePointerOver(externalEventHandlers) : void 0,
69
- tabIndex
70
- };
71
- }, "getRootProps");
72
- return {
73
- getRootProps,
74
- highlighted,
75
- selected
76
- };
77
- }
78
- __name(useListItem, "useListItem");
79
- export {
80
- useListItem
81
- };
@@ -1,82 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import * as React from "react";
4
- import { combineHooksSlotProps } from "../utils/combineHooksSlotProps.js";
5
- import { useListItem } from "../useList/useListItem.js";
6
- import { useButton } from "../useButton/useButton.js";
7
- import useId from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useId/useId.js";
8
- import { useCompoundItem } from "../useCompound/useCompoundItem.js";
9
- import useForkRef from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
10
- import extractEventHandlers from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js";
11
- function useOption(params) {
12
- const {
13
- value,
14
- label,
15
- disabled,
16
- rootRef: optionRefParam,
17
- id: idParam
18
- } = params;
19
- const {
20
- getRootProps: getListItemProps,
21
- highlighted,
22
- selected
23
- } = useListItem({
24
- item: value
25
- });
26
- const {
27
- getRootProps: getButtonProps,
28
- rootRef: buttonRefHandler
29
- } = useButton({
30
- disabled,
31
- focusableWhenDisabled: true
32
- });
33
- const id = useId(idParam);
34
- const optionRef = React.useRef(null);
35
- const selectOption = React.useMemo(() => ({
36
- disabled,
37
- label,
38
- value,
39
- ref: optionRef,
40
- id
41
- }), [disabled, label, value, id]);
42
- const {
43
- index
44
- } = useCompoundItem(value, selectOption);
45
- const handleRef = useForkRef(optionRefParam, optionRef, buttonRefHandler);
46
- const createHandleKeyDown = /* @__PURE__ */ __name((otherHandlers) => (event) => {
47
- var _a;
48
- (_a = otherHandlers.onKeyDown) == null ? void 0 : _a.call(otherHandlers, event);
49
- if (event.defaultMuiPrevented) {
50
- return;
51
- }
52
- if ([" ", "Enter"].includes(event.key)) {
53
- event.defaultMuiPrevented = true;
54
- }
55
- }, "createHandleKeyDown");
56
- const getOwnHandlers = /* @__PURE__ */ __name((otherHandlers = {}) => ({
57
- onKeyDown: createHandleKeyDown(otherHandlers)
58
- }), "getOwnHandlers");
59
- return {
60
- getRootProps: /* @__PURE__ */ __name((externalProps = {}) => {
61
- const externalEventHandlers = extractEventHandlers(externalProps);
62
- const getCombinedRootProps = combineHooksSlotProps(getListItemProps, combineHooksSlotProps(getButtonProps, getOwnHandlers));
63
- return {
64
- ...externalProps,
65
- ...externalEventHandlers,
66
- ...getCombinedRootProps(externalEventHandlers),
67
- id,
68
- ref: handleRef,
69
- role: "option",
70
- "aria-selected": selected
71
- };
72
- }, "getRootProps"),
73
- highlighted,
74
- index,
75
- selected,
76
- rootRef: handleRef
77
- };
78
- }
79
- __name(useOption, "useOption");
80
- export {
81
- useOption
82
- };