@prokodo/ui 0.0.26 → 0.0.28

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 (251) hide show
  1. package/README.md +89 -45
  2. package/dist/_virtual/_commonjsHelpers.js +6 -3
  3. package/dist/_virtual/index.js +5 -5
  4. package/dist/_virtual/index2.js +2 -2
  5. package/dist/_virtual/index3.js +2 -2
  6. package/dist/_virtual/react-is.development.js +2 -2
  7. package/dist/_virtual/react-is.production.min.js +2 -2
  8. package/dist/assets/images/card_background_primary_1.webp.js +2 -2
  9. package/dist/assets/images/card_background_primary_2.webp.js +2 -2
  10. package/dist/assets/images/card_background_primary_3.webp.js +2 -2
  11. package/dist/assets/images/card_background_primary_4.webp.js +2 -2
  12. package/dist/assets/images/card_background_secondary_1.webp.js +2 -2
  13. package/dist/assets/images/card_background_secondary_2.webp.js +2 -2
  14. package/dist/assets/images/card_background_secondary_3.webp.js +2 -2
  15. package/dist/assets/images/card_background_secondary_4.webp.js +2 -2
  16. package/dist/components/accordion/Accordion.js +82 -74
  17. package/dist/components/accordion/Accordion.module.scss.js +11 -8
  18. package/dist/components/accordion/index.js +2 -2
  19. package/dist/components/animated/Animated.js +61 -40
  20. package/dist/components/animated/Animated.module.scss.js +8 -6
  21. package/dist/components/animated/index.js +2 -2
  22. package/dist/components/animatedText/AnimatedText.js +36 -27
  23. package/dist/components/animatedText/index.js +2 -2
  24. package/dist/components/avatar/Avatar.js +62 -54
  25. package/dist/components/avatar/Avatar.module.scss.js +8 -6
  26. package/dist/components/avatar/index.js +2 -2
  27. package/dist/components/base-link/BaseLink.js +39 -27
  28. package/dist/components/base-link/index.js +2 -2
  29. package/dist/components/button/Button.client.js +100 -0
  30. package/dist/components/button/Button.js +15 -82
  31. package/dist/components/button/Button.lazy.js +20 -0
  32. package/dist/components/button/Button.module.scss.js +8 -6
  33. package/dist/components/button/Button.server.js +77 -0
  34. package/dist/components/button/index.js +2 -2
  35. package/dist/components/calendly/Calendly.js +99 -60
  36. package/dist/components/calendly/index.js +2 -2
  37. package/dist/components/card/Card.js +167 -141
  38. package/dist/components/card/Card.module.scss.js +11 -8
  39. package/dist/components/card/index.js +2 -2
  40. package/dist/components/carousel/Carousel.js +209 -145
  41. package/dist/components/carousel/Carousel.module.scss.js +8 -6
  42. package/dist/components/carousel/Carousel.services.js +39 -20
  43. package/dist/components/carousel/index.js +2 -2
  44. package/dist/components/chip/Chip.js +44 -36
  45. package/dist/components/chip/Chip.module.scss.js +8 -6
  46. package/dist/components/chip/index.js +2 -2
  47. package/dist/components/datePicker/DatePicker.js +106 -69
  48. package/dist/components/datePicker/index.js +2 -2
  49. package/dist/components/dialog/Dialog.js +106 -93
  50. package/dist/components/dialog/Dialog.module.scss.js +8 -6
  51. package/dist/components/dialog/index.js +2 -2
  52. package/dist/components/drawer/Drawer.js +78 -64
  53. package/dist/components/drawer/Drawer.module.scss.js +20 -14
  54. package/dist/components/drawer/index.js +4 -4
  55. package/dist/components/form/Form.js +229 -165
  56. package/dist/components/form/Form.module.scss.js +8 -6
  57. package/dist/components/form/FormField.js +63 -60
  58. package/dist/components/form/FormField.module.scss.js +8 -6
  59. package/dist/components/form/FormResponse.js +37 -41
  60. package/dist/components/form/FormResponse.module.scss.js +8 -6
  61. package/dist/components/form/index.js +4 -4
  62. package/dist/components/grid/Grid.js +14 -11
  63. package/dist/components/grid/Grid.module.scss.js +8 -6
  64. package/dist/components/grid/GridRow.js +20 -17
  65. package/dist/components/grid/GridRow.module.scss.js +8 -6
  66. package/dist/components/grid/index.js +4 -4
  67. package/dist/components/headline/Headline.client.js +85 -0
  68. package/dist/components/headline/Headline.module.scss.js +8 -6
  69. package/dist/components/headline/Headline.server.js +73 -0
  70. package/dist/components/headline/Headline.variants.js +9 -0
  71. package/dist/components/headline/index.js +4 -3
  72. package/dist/components/icon/Icon.js +27 -22
  73. package/dist/components/icon/Icon.module.scss.js +8 -6
  74. package/dist/components/icon/index.js +3 -3
  75. package/dist/components/image/Image.js +30 -24
  76. package/dist/components/image/Image.module.scss.js +8 -6
  77. package/dist/components/image/index.js +2 -2
  78. package/dist/components/image-text/ImageText.js +80 -81
  79. package/dist/components/image-text/ImageText.module.scss.js +8 -6
  80. package/dist/components/image-text/index.js +2 -2
  81. package/dist/components/input/Input.js +147 -131
  82. package/dist/components/input/Input.module.scss.js +11 -8
  83. package/dist/components/input/InputValidation.js +50 -31
  84. package/dist/components/input/index.js +2 -2
  85. package/dist/components/inputOTP/InputOTP.js +90 -57
  86. package/dist/components/inputOTP/InputOTP.module.scss.js +8 -6
  87. package/dist/components/inputOTP/index.js +2 -2
  88. package/dist/components/label/Label.js +64 -63
  89. package/dist/components/label/Label.module.scss.js +8 -6
  90. package/dist/components/label/index.js +2 -2
  91. package/dist/components/link/Link.js +53 -48
  92. package/dist/components/link/Link.module.scss.js +8 -6
  93. package/dist/components/link/index.js +2 -2
  94. package/dist/components/list/List.js +120 -104
  95. package/dist/components/list/List.module.scss.js +8 -6
  96. package/dist/components/list/index.js +2 -2
  97. package/dist/components/loading/Loading.js +21 -20
  98. package/dist/components/loading/Loading.module.scss.js +11 -8
  99. package/dist/components/loading/index.js +2 -2
  100. package/dist/components/lottie/Lottie.js +47 -37
  101. package/dist/components/lottie/Lottie.module.scss.js +8 -6
  102. package/dist/components/lottie/LottieAnimations.js +2 -2
  103. package/dist/components/lottie/index.js +2 -2
  104. package/dist/components/map/Map.js +59 -42
  105. package/dist/components/map/index.js +2 -2
  106. package/dist/components/post-item/PostItem.js +81 -76
  107. package/dist/components/post-item/PostItem.module.scss.js +8 -6
  108. package/dist/components/post-item/PostItemAuthor.js +24 -23
  109. package/dist/components/post-item/PostItemAuthor.module.scss.js +8 -6
  110. package/dist/components/post-item/index.js +4 -4
  111. package/dist/components/post-teaser/PostTeaser.js +96 -92
  112. package/dist/components/post-teaser/PostTeaser.module.scss.js +8 -6
  113. package/dist/components/post-teaser/index.js +2 -2
  114. package/dist/components/post-widget/PostWidget.js +81 -80
  115. package/dist/components/post-widget/PostWidget.module.scss.js +8 -6
  116. package/dist/components/post-widget/index.js +2 -2
  117. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +96 -90
  118. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +8 -6
  119. package/dist/components/post-widget-carousel/index.js +2 -2
  120. package/dist/components/quote/Quote.js +48 -47
  121. package/dist/components/quote/Quote.module.scss.js +8 -6
  122. package/dist/components/quote/index.js +2 -2
  123. package/dist/components/rich-text/RichText.js +114 -100
  124. package/dist/components/rich-text/RichText.module.scss.js +8 -6
  125. package/dist/components/rich-text/index.js +2 -2
  126. package/dist/components/select/Select.js +148 -127
  127. package/dist/components/select/Select.module.scss.js +17 -12
  128. package/dist/components/select/index.js +2 -2
  129. package/dist/components/skeleton/Skeleton.js +21 -18
  130. package/dist/components/skeleton/Skeleton.module.scss.js +8 -6
  131. package/dist/components/skeleton/index.js +2 -2
  132. package/dist/components/slider/Slider.js +74 -65
  133. package/dist/components/slider/Slider.module.scss.js +8 -6
  134. package/dist/components/slider/index.js +2 -2
  135. package/dist/components/stepper/Stepper.js +85 -69
  136. package/dist/components/stepper/Stepper.module.scss.js +8 -6
  137. package/dist/components/stepper/index.js +2 -2
  138. package/dist/components/switch/Switch.js +69 -63
  139. package/dist/components/switch/Switch.module.scss.js +8 -6
  140. package/dist/components/switch/index.js +2 -2
  141. package/dist/components/table/Table.js +48 -45
  142. package/dist/components/table/Table.module.scss.js +8 -6
  143. package/dist/components/table/index.js +2 -2
  144. package/dist/components/teaser/Teaser.js +66 -65
  145. package/dist/components/teaser/Teaser.module.scss.js +8 -6
  146. package/dist/components/teaser/index.js +2 -2
  147. package/dist/constants/project.js +2 -2
  148. package/dist/helpers/bem.js +17 -9
  149. package/dist/helpers/calculation.js +4 -2
  150. package/dist/helpers/validations.js +12 -6
  151. package/dist/hooks/useGoogleMaps.js +19 -14
  152. package/dist/hooks/useHydrationReady.js +26 -0
  153. package/dist/index.js +84 -84
  154. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +354 -251
  155. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +555 -309
  156. 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 +221 -141
  157. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +167 -109
  158. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -88
  159. 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 +91 -77
  160. 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 +10 -7
  161. 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 +54 -40
  162. 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 +192 -163
  163. 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 +10 -7
  164. 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 +287 -242
  165. 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 +10 -7
  166. 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 +112 -97
  167. 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 +10 -7
  168. 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 +135 -115
  169. 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 +6 -4
  170. 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 +10 -7
  171. 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 +15 -10
  172. 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 +11 -7
  173. 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 +160 -73
  174. 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 +25 -18
  175. 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 +63 -36
  176. 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 +6 -4
  177. 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 +2 -2
  178. 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 +233 -138
  179. 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 +189 -128
  180. 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 +72 -52
  181. 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 +72 -53
  182. 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 +30 -22
  183. 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 +34 -28
  184. 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 +15 -7
  185. 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 +49 -40
  186. 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 +341 -222
  187. 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 +2 -2
  188. 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 +550 -353
  189. 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 +79 -50
  190. 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 +6 -4
  191. 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 +51 -23
  192. 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 +21 -10
  193. 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 +6 -3
  194. 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 +14 -10
  195. 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 +6 -3
  196. 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 +9 -3
  197. 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 +91 -60
  198. 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 +20 -12
  199. 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 +21 -10
  200. 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 +16 -5
  201. 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 +13 -7
  202. 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 +11 -5
  203. 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 +6 -3
  204. 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 +19 -11
  205. 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 +17 -8
  206. 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 +12 -7
  207. 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 +2 -2
  208. 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 +11 -5
  209. 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 +11 -7
  210. 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 +6 -3
  211. 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 +61 -38
  212. 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 +12 -7
  213. 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 +6 -3
  214. 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 +9 -3
  215. 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 +10 -3
  216. 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 +31 -22
  217. 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 +3 -3
  218. 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 +13 -9
  219. 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 +17 -9
  220. 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 +23 -14
  221. 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 +30 -23
  222. 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 +2 -2
  223. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -13
  224. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +67 -38
  225. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +55 -37
  226. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +56 -43
  227. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +404 -243
  228. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +20 -14
  229. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -7
  230. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +11 -4
  231. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +170 -82
  232. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +91 -58
  233. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +17 -7
  234. package/dist/tsconfig.build.tsbuildinfo +1 -1
  235. package/dist/types/components/button/Button.client.d.ts +3 -0
  236. package/dist/types/components/button/Button.d.ts +3 -3
  237. package/dist/types/components/button/Button.lazy.d.ts +3 -0
  238. package/dist/types/components/button/Button.server.d.ts +3 -0
  239. package/dist/types/components/button/index.d.ts +1 -1
  240. package/dist/types/components/form/FormResponse.d.ts +1 -1
  241. package/dist/types/components/headline/Headline.client.d.ts +3 -0
  242. package/dist/types/components/headline/Headline.model.d.ts +1 -0
  243. package/dist/types/components/headline/Headline.server.d.ts +3 -0
  244. package/dist/types/components/headline/Headline.variants.d.ts +2 -0
  245. package/dist/types/components/headline/index.d.ts +2 -1
  246. package/dist/types/components/label/Label.d.ts +1 -1
  247. package/dist/types/hooks/useHydrationReady.d.ts +5 -0
  248. package/dist/ui.css +9592 -1
  249. package/package.json +1 -1
  250. package/dist/components/headline/Headline.js +0 -71
  251. package/dist/types/components/headline/Headline.d.ts +0 -4
@@ -1,4 +1,6 @@
1
- const o = "gradientMove", i = "fadeInKeyframe", d = {
1
+ const gradientMove = "gradientMove";
2
+ const fadeInKeyframe = "fadeInKeyframe";
3
+ const styles = {
2
4
  "prokodo-Chip": "prokodo-Chip",
3
5
  "prokodo-Chip--filled": "prokodo-Chip--filled",
4
6
  "prokodo-Chip--filled--primary": "prokodo-Chip--filled--primary",
@@ -16,11 +18,11 @@ const o = "gradientMove", i = "fadeInKeyframe", d = {
16
18
  "prokodo-Chip--outlined--warning": "prokodo-Chip--outlined--warning",
17
19
  "prokodo-Chip__label": "prokodo-Chip__label",
18
20
  "prokodo-Chip__delete": "prokodo-Chip__delete",
19
- gradientMove: o,
20
- fadeInKeyframe: i
21
+ gradientMove,
22
+ fadeInKeyframe
21
23
  };
22
24
  export {
23
- d as default,
24
- i as fadeInKeyframe,
25
- o as gradientMove
25
+ styles as default,
26
+ fadeInKeyframe,
27
+ gradientMove
26
28
  };
@@ -1,4 +1,4 @@
1
- import { Chip as r } from "./Chip.js";
1
+ import { Chip } from "./Chip.js";
2
2
  export {
3
- r as Chip
3
+ Chip
4
4
  };
@@ -1,93 +1,130 @@
1
- import { jsx as G } from "react/jsx-runtime";
2
- import y, { isDayjs as E } from "dayjs";
3
- import { useRef as H, useState as I, useEffect as J } from "react";
4
- import { Input as K } from "../input/Input.js";
5
- const L = ({
6
- name: D,
7
- value: s,
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { jsx } from "react/jsx-runtime";
4
+ import dayjs, { isDayjs } from "dayjs";
5
+ import { useRef, useState, useEffect } from "react";
6
+ import { Input } from "../input/Input.js";
7
+ const DatePicker = /* @__PURE__ */ __name(({
8
+ name,
9
+ value,
8
10
  // Dayjs | null from parent
9
- onChange: f,
11
+ onChange,
10
12
  // (value: Dayjs | null) => void
11
- onValidate: u,
13
+ onValidate,
12
14
  // (name: string, error?: string) => void
13
- label: S,
14
- errorText: k,
15
- helperText: P,
16
- format: b = "YYYY-MM-DD",
17
- minDate: $,
18
- maxDate: A,
19
- errorTranslations: c,
20
- ...B
15
+ label,
16
+ errorText,
17
+ helperText,
18
+ format = "YYYY-MM-DD",
19
+ minDate,
20
+ maxDate,
21
+ errorTranslations,
22
+ ...props
21
23
  }) => {
22
- const N = H(null), i = (t) => {
23
- if (!t) return null;
24
- if (E(t)) return t;
25
- const v = y(t);
26
- return v.isValid() ? v : null;
27
- }, Y = i($), x = i(A), [R, p] = I(null), [q, m] = I(k);
28
- J(() => {
29
- if (!s) {
30
- p(null), m(void 0), u == null || u(D, void 0);
24
+ const inputRef = useRef(null);
25
+ const toDayjs = /* @__PURE__ */ __name((val) => {
26
+ if (!val) return null;
27
+ if (isDayjs(val)) return val;
28
+ const parsed = dayjs(val);
29
+ return parsed.isValid() ? parsed : null;
30
+ }, "toDayjs");
31
+ const safeMinDate = toDayjs(minDate);
32
+ const safeMaxDate = toDayjs(maxDate);
33
+ const [date, setDate] = useState(null);
34
+ const [error, setError] = useState(errorText);
35
+ useEffect(() => {
36
+ if (!value) {
37
+ setDate(null);
38
+ setError(void 0);
39
+ onValidate == null ? void 0 : onValidate(name, void 0);
31
40
  return;
32
41
  }
33
- if (E(s))
34
- p(s), m(void 0), u == null || u(D, void 0);
35
- else {
36
- const t = i(s);
37
- if (t)
38
- p(t), m(void 0), u == null || u(D, void 0);
39
- else {
40
- const v = "Invalid initial date.";
41
- p(null), m(v), u == null || u(D, v);
42
+ if (isDayjs(value)) {
43
+ setDate(value);
44
+ setError(void 0);
45
+ onValidate == null ? void 0 : onValidate(name, void 0);
46
+ } else {
47
+ const parsed = toDayjs(value);
48
+ if (!parsed) {
49
+ const msg = "Invalid initial date.";
50
+ setDate(null);
51
+ setError(msg);
52
+ onValidate == null ? void 0 : onValidate(name, msg);
53
+ } else {
54
+ setDate(parsed);
55
+ setError(void 0);
56
+ onValidate == null ? void 0 : onValidate(name, void 0);
42
57
  }
43
58
  }
44
- }, [s]);
45
- const z = (t) => {
46
- if (Y && t.isBefore(Y, "day"))
47
- return Y.isSame(y(), "day") ? (c == null ? void 0 : c.minDate) ?? "Date cannot be in the past." : (c == null ? void 0 : c.minDate) ?? `Date cannot be before ${Y.format(b)}.`;
48
- if (x && t.isAfter(x, "day"))
49
- return x.isSame(y(), "day") ? (c == null ? void 0 : c.maxDate) ?? "Date cannot be in the future." : (c == null ? void 0 : c.maxDate) ?? `Date cannot be after ${x.format(b)}.`;
50
- }, F = (t) => {
51
- const v = t.target.value.trim();
52
- if (!v) {
53
- p(null), m(void 0), u == null || u(D, void 0), f == null || f(null);
59
+ }, [value]);
60
+ const validateDayjs = /* @__PURE__ */ __name((parsed) => {
61
+ if (safeMinDate && parsed.isBefore(safeMinDate, "day")) {
62
+ if (safeMinDate.isSame(dayjs(), "day")) {
63
+ return (errorTranslations == null ? void 0 : errorTranslations.minDate) ?? "Date cannot be in the past.";
64
+ }
65
+ return (errorTranslations == null ? void 0 : errorTranslations.minDate) ?? `Date cannot be before ${safeMinDate.format(format)}.`;
66
+ }
67
+ if (safeMaxDate && parsed.isAfter(safeMaxDate, "day")) {
68
+ if (safeMaxDate.isSame(dayjs(), "day")) {
69
+ return (errorTranslations == null ? void 0 : errorTranslations.maxDate) ?? "Date cannot be in the future.";
70
+ }
71
+ return (errorTranslations == null ? void 0 : errorTranslations.maxDate) ?? `Date cannot be after ${safeMaxDate.format(format)}.`;
72
+ }
73
+ return void 0;
74
+ }, "validateDayjs");
75
+ const handleChange = /* @__PURE__ */ __name((e) => {
76
+ const inputValue = e.target.value.trim();
77
+ if (!inputValue) {
78
+ setDate(null);
79
+ setError(void 0);
80
+ onValidate == null ? void 0 : onValidate(name, void 0);
81
+ onChange == null ? void 0 : onChange(null);
54
82
  return;
55
83
  }
56
- const M = y(v, b, !0);
57
- if (!M.isValid()) {
58
- const w = "Invalid date format.";
59
- p(null), m(w), u == null || u(D, w), f == null || f(null);
84
+ const parsed = dayjs(inputValue, format, true);
85
+ if (!parsed.isValid()) {
86
+ const msg = "Invalid date format.";
87
+ setDate(null);
88
+ setError(msg);
89
+ onValidate == null ? void 0 : onValidate(name, msg);
90
+ onChange == null ? void 0 : onChange(null);
60
91
  return;
61
92
  }
62
- const j = z(M);
63
- if (j !== void 0) {
64
- p(null), m(j), u == null || u(D, j), f == null || f(null);
93
+ const rangeError = validateDayjs(parsed);
94
+ if (rangeError !== void 0) {
95
+ setDate(null);
96
+ setError(rangeError);
97
+ onValidate == null ? void 0 : onValidate(name, rangeError);
98
+ onChange == null ? void 0 : onChange(null);
65
99
  return;
66
100
  }
67
- p(M), m(void 0), u == null || u(D, void 0), f == null || f(M);
68
- };
69
- return /* @__PURE__ */ G(
70
- K,
101
+ setDate(parsed);
102
+ setError(void 0);
103
+ onValidate == null ? void 0 : onValidate(name, void 0);
104
+ onChange == null ? void 0 : onChange(parsed);
105
+ }, "handleChange");
106
+ return /* @__PURE__ */ jsx(
107
+ Input,
71
108
  {
72
- ...B,
73
- ref: N,
109
+ ...props,
110
+ ref: inputRef,
74
111
  "aria-haspopup": "dialog",
75
- errorText: q,
76
- helperText: P,
77
- id: D,
78
- label: S,
112
+ errorText: error,
113
+ helperText,
114
+ id: name,
115
+ label,
79
116
  maxRows: void 0,
80
117
  minRows: void 0,
81
- multiline: !1,
82
- name: D,
118
+ multiline: false,
119
+ name,
83
120
  rows: void 0,
84
121
  type: "date",
85
- value: R ? y(R).format("YYYY-MM-DD") : "",
86
- onChange: F
122
+ value: date ? dayjs(date).format("YYYY-MM-DD") : "",
123
+ onChange: handleChange
87
124
  }
88
125
  );
89
- };
90
- L.displayName = "DatePicker";
126
+ }, "DatePicker");
127
+ DatePicker.displayName = "DatePicker";
91
128
  export {
92
- L as DatePicker
129
+ DatePicker
93
130
  };
@@ -1,4 +1,4 @@
1
- import { DatePicker as o } from "./DatePicker.js";
1
+ import { DatePicker } from "./DatePicker.js";
2
2
  export {
3
- o as DatePicker
3
+ DatePicker
4
4
  };
@@ -1,112 +1,125 @@
1
- import { jsx as i, jsxs as a, Fragment as M } from "react/jsx-runtime";
2
- import { Modal as O } from "@mui/base";
3
- import { useState as b, useCallback as v, useImperativeHandle as _ } from "react";
4
- import { create as z } from "../../helpers/bem.js";
5
- import E from "./Dialog.module.scss.js";
6
- import { Headline as F } from "../headline/Headline.js";
7
- import { Button as x } from "../button/Button.js";
8
- const e = z(E, "Dialog"), q = ({
9
- actions: d,
10
- children: N,
11
- className: D,
12
- classNameHeader: y,
13
- containerChildren: s,
14
- contentProps: c = {},
15
- contentRef: C,
16
- fullScreen: S,
17
- hideTitle: k,
18
- onClose: m,
19
- open: B,
20
- ref: I,
21
- renderHeader: n,
22
- scroll: r = "paper",
23
- showCloseButton: T,
24
- title: $,
25
- titleProps: j = {},
26
- translations: l,
27
- ...w
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
+ import { Modal } from "@mui/base";
5
+ import { useState, useCallback, useImperativeHandle } from "react";
6
+ import { create } from "../../helpers/bem.js";
7
+ import styles from "./Dialog.module.scss.js";
8
+ import { Button } from "../button/Button.js";
9
+ import { Headline } from "../headline/Headline.server.js";
10
+ const bem = create(styles, "Dialog");
11
+ const Dialog = /* @__PURE__ */ __name(({
12
+ actions,
13
+ children,
14
+ className,
15
+ classNameHeader,
16
+ containerChildren,
17
+ contentProps = {},
18
+ contentRef,
19
+ fullScreen,
20
+ hideTitle,
21
+ onClose,
22
+ open,
23
+ ref,
24
+ renderHeader,
25
+ scroll = "paper",
26
+ showCloseButton,
27
+ title,
28
+ titleProps = {},
29
+ translations,
30
+ ...props
28
31
  }) => {
29
- const [g, f] = b(B ?? !1), [p, u] = b("exiting"), o = v(() => {
30
- u("exiting"), setTimeout(() => {
31
- f(!1), m && m({}, "backdropClick");
32
+ const [dialogOpen, setDialogOpen] = useState(open ?? false);
33
+ const [transitionState, setTransitionState] = useState("exiting");
34
+ const handleClose = useCallback(() => {
35
+ setTransitionState("exiting");
36
+ setTimeout(() => {
37
+ setDialogOpen(false);
38
+ if (onClose) {
39
+ onClose({}, "backdropClick");
40
+ }
32
41
  }, 300);
33
- }, [m]), K = v(
34
- (t) => {
35
- t.code === "Enter" && o();
42
+ }, [onClose]);
43
+ const handleKeyDown = useCallback(
44
+ (e) => {
45
+ if (e.code === "Enter") {
46
+ handleClose();
47
+ }
36
48
  },
37
- [o]
49
+ [handleClose]
38
50
  );
39
- _(
40
- I,
51
+ useImperativeHandle(
52
+ ref,
41
53
  () => ({
42
- openDialog: () => {
43
- f(!0), setTimeout(() => {
44
- u("entering");
54
+ openDialog: /* @__PURE__ */ __name(() => {
55
+ setDialogOpen(true);
56
+ setTimeout(() => {
57
+ setTransitionState("entering");
45
58
  }, 300);
46
- },
47
- closeDialog: o
59
+ }, "openDialog"),
60
+ closeDialog: handleClose
48
61
  }),
49
- [o]
62
+ [handleClose]
50
63
  );
51
- const h = {
52
- fullScreen: !!S
64
+ const fullScreenModifier = {
65
+ fullScreen: Boolean(fullScreen)
53
66
  };
54
- return /* @__PURE__ */ i(
55
- O,
67
+ return /* @__PURE__ */ jsx(
68
+ Modal,
56
69
  {
57
- ...w,
70
+ ...props,
58
71
  "aria-labelledby": "dialog-title",
59
- open: g,
60
- className: e(
72
+ open: dialogOpen,
73
+ className: bem(
61
74
  void 0,
62
75
  {
63
- ...h,
64
- "fade-enter": p === "entering",
65
- "fade-exit": p === "exiting"
76
+ ...fullScreenModifier,
77
+ "fade-enter": transitionState === "entering",
78
+ "fade-exit": transitionState === "exiting"
66
79
  },
67
- D
80
+ className
68
81
  ),
69
- onClose: o,
70
- children: /* @__PURE__ */ a(M, { children: [
71
- /* @__PURE__ */ a(
82
+ onClose: handleClose,
83
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
84
+ /* @__PURE__ */ jsxs(
72
85
  "div",
73
86
  {
74
- className: e("container", {
75
- ...h,
76
- "is-visible": g,
77
- [`scroll-${r}`]: !0
87
+ className: bem("container", {
88
+ ...fullScreenModifier,
89
+ "is-visible": dialogOpen,
90
+ [`scroll-${scroll}`]: true
78
91
  }),
79
92
  children: [
80
- /* @__PURE__ */ a("div", { className: e("header", void 0, y), children: [
81
- /* @__PURE__ */ a("div", { children: [
82
- /* @__PURE__ */ i(
83
- F,
93
+ /* @__PURE__ */ jsxs("div", { className: bem("header", void 0, classNameHeader), children: [
94
+ /* @__PURE__ */ jsxs("div", { children: [
95
+ /* @__PURE__ */ jsx(
96
+ Headline,
84
97
  {
85
- ...j,
98
+ ...titleProps,
86
99
  id: "dialog-title",
87
- className: e("title", {
88
- "is-hidden": !!k
100
+ className: bem("title", {
101
+ "is-hidden": Boolean(hideTitle)
89
102
  }),
90
- children: $
103
+ children: title
91
104
  }
92
105
  ),
93
- n == null ? void 0 : n()
106
+ renderHeader == null ? void 0 : renderHeader()
94
107
  ] }),
95
- !!T && /* @__PURE__ */ a(
108
+ Boolean(showCloseButton) && /* @__PURE__ */ jsxs(
96
109
  "div",
97
110
  {
98
- "aria-label": (l == null ? void 0 : l.close) ?? "Close dialog",
99
- className: e("close"),
111
+ "aria-label": (translations == null ? void 0 : translations.close) ?? "Close dialog",
112
+ className: bem("close"),
100
113
  role: "button",
101
114
  tabIndex: 0,
102
- onClick: o,
103
- onKeyDown: K,
115
+ onClick: handleClose,
116
+ onKeyDown: handleKeyDown,
104
117
  children: [
105
- /* @__PURE__ */ i("span", { className: e("close__label"), children: (l == null ? void 0 : l.cancel) ?? "Cancel" }),
106
- /* @__PURE__ */ i(
107
- x,
118
+ /* @__PURE__ */ jsx("span", { className: bem("close__label"), children: (translations == null ? void 0 : translations.cancel) ?? "Cancel" }),
119
+ /* @__PURE__ */ jsx(
120
+ Button,
108
121
  {
109
- inert: !0,
122
+ inert: true,
110
123
  color: "inherit",
111
124
  tabIndex: -1,
112
125
  variant: "text",
@@ -120,37 +133,37 @@ const e = z(E, "Dialog"), q = ({
120
133
  }
121
134
  )
122
135
  ] }),
123
- /* @__PURE__ */ i(
136
+ /* @__PURE__ */ jsx(
124
137
  "div",
125
138
  {
126
- ...c,
127
- ref: C,
128
- className: e(
139
+ ...contentProps,
140
+ ref: contentRef,
141
+ className: bem(
129
142
  "content",
130
143
  {
131
- [`scroll-${r}`]: !0
144
+ [`scroll-${scroll}`]: true
132
145
  },
133
- c == null ? void 0 : c.className
146
+ contentProps == null ? void 0 : contentProps.className
134
147
  ),
135
- children: N
148
+ children
136
149
  }
137
150
  ),
138
- d && d.length > 0 && /* @__PURE__ */ i("div", { className: e("actions"), children: d.map((t) => /* @__PURE__ */ i(
139
- x,
151
+ actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: bem("actions"), children: actions.map((action) => /* @__PURE__ */ jsx(
152
+ Button,
140
153
  {
141
- ...t
154
+ ...action
142
155
  },
143
- `dialog-action-button-${t.id}`
156
+ `dialog-action-button-${action.id}`
144
157
  )) })
145
158
  ]
146
159
  }
147
160
  ),
148
- s !== void 0 && s
161
+ containerChildren !== void 0 && containerChildren
149
162
  ] })
150
163
  }
151
164
  );
152
- };
153
- q.displayName = "Dialog";
165
+ }, "Dialog");
166
+ Dialog.displayName = "Dialog";
154
167
  export {
155
- q as Dialog
168
+ Dialog
156
169
  };
@@ -1,4 +1,6 @@
1
- const o = "gradientMove", e = "fadeInKeyframe", a = {
1
+ const gradientMove = "gradientMove";
2
+ const fadeInKeyframe = "fadeInKeyframe";
3
+ const styles = {
2
4
  "prokodo-Dialog": "prokodo-Dialog",
3
5
  "prokodo-Dialog__container": "prokodo-Dialog__container",
4
6
  "prokodo-Dialog__container--scroll-paper": "prokodo-Dialog__container--scroll-paper",
@@ -13,11 +15,11 @@ const o = "gradientMove", e = "fadeInKeyframe", a = {
13
15
  "prokodo-Dialog--fade-enter": "prokodo-Dialog--fade-enter",
14
16
  "prokodo-Dialog--fade-exit": "prokodo-Dialog--fade-exit",
15
17
  "prokodo-Dialog--fullScreen": "prokodo-Dialog--fullScreen",
16
- gradientMove: o,
17
- fadeInKeyframe: e
18
+ gradientMove,
19
+ fadeInKeyframe
18
20
  };
19
21
  export {
20
- a as default,
21
- e as fadeInKeyframe,
22
- o as gradientMove
22
+ styles as default,
23
+ fadeInKeyframe,
24
+ gradientMove
23
25
  };
@@ -1,4 +1,4 @@
1
- import { Dialog as a } from "./Dialog.js";
1
+ import { Dialog } from "./Dialog.js";
2
2
  export {
3
- a as Dialog
3
+ Dialog
4
4
  };