@prokodo/ui 0.0.9 → 0.0.11

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 (325) hide show
  1. package/README.md +2 -0
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/index.js +7 -0
  4. package/dist/_virtual/index2.js +4 -0
  5. package/dist/_virtual/index3.js +4 -0
  6. package/dist/_virtual/jsx-runtime.js +5 -0
  7. package/dist/_virtual/jsx-runtime2.js +4 -0
  8. package/dist/_virtual/react-is.development.js +4 -0
  9. package/dist/_virtual/react-is.production.min.js +4 -0
  10. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  11. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  12. package/dist/assets/images/card_background_primary_1.webp.js +4 -0
  13. package/dist/assets/images/card_background_primary_2.webp.js +4 -0
  14. package/dist/assets/images/card_background_primary_3.webp.js +4 -0
  15. package/dist/assets/images/card_background_primary_4.webp.js +4 -0
  16. package/dist/assets/images/card_background_secondary_1.webp.js +4 -0
  17. package/dist/assets/images/card_background_secondary_2.webp.js +4 -0
  18. package/dist/assets/images/card_background_secondary_3.webp.js +4 -0
  19. package/dist/assets/images/card_background_secondary_4.webp.js +4 -0
  20. package/dist/components/accordion/Accordion.js +115 -0
  21. package/dist/components/accordion/Accordion.module.scss.js +23 -0
  22. package/dist/components/accordion/index.js +4 -0
  23. package/dist/components/animated/Animated.js +53 -0
  24. package/dist/components/animated/Animated.module.scss.js +18 -0
  25. package/dist/components/animated/index.js +4 -0
  26. package/dist/components/animatedText/AnimatedText.js +31 -0
  27. package/dist/components/animatedText/index.js +4 -0
  28. package/dist/components/avatar/Avatar.js +78 -0
  29. package/dist/components/avatar/Avatar.module.scss.js +24 -0
  30. package/dist/components/avatar/index.js +4 -0
  31. package/dist/components/base-link/BaseLink.js +30 -0
  32. package/dist/components/base-link/index.js +4 -0
  33. package/dist/components/button/Button.js +84 -0
  34. package/dist/components/button/Button.module.scss.js +34 -0
  35. package/dist/components/button/index.js +4 -0
  36. package/dist/components/calendly/Calendly.js +82 -0
  37. package/dist/components/calendly/index.js +4 -0
  38. package/dist/components/card/Card.js +180 -0
  39. package/dist/components/card/Card.module.scss.js +38 -0
  40. package/dist/components/card/index.js +4 -0
  41. package/dist/components/carousel/Carousel.js +232 -0
  42. package/dist/components/carousel/Carousel.module.scss.js +21 -0
  43. package/dist/components/carousel/Carousel.services.js +22 -0
  44. package/dist/components/carousel/index.js +4 -0
  45. package/dist/components/chip/Chip.js +61 -0
  46. package/dist/components/chip/Chip.module.scss.js +26 -0
  47. package/dist/components/chip/index.js +4 -0
  48. package/dist/components/datePicker/DatePicker.js +93 -0
  49. package/dist/components/datePicker/index.js +4 -0
  50. package/dist/components/dialog/Dialog.js +156 -0
  51. package/dist/components/dialog/Dialog.module.scss.js +23 -0
  52. package/dist/components/dialog/index.js +4 -0
  53. package/dist/components/drawer/Drawer.js +94 -0
  54. package/dist/components/drawer/Drawer.module.scss.js +37 -0
  55. package/dist/components/drawer/index.js +6 -0
  56. package/dist/components/form/Form.js +228 -0
  57. package/dist/components/form/Form.module.scss.js +13 -0
  58. package/dist/components/form/FormField.js +96 -0
  59. package/dist/components/form/FormField.module.scss.js +10 -0
  60. package/dist/components/form/FormResponse.js +43 -0
  61. package/dist/components/form/FormResponse.module.scss.js +14 -0
  62. package/dist/components/form/index.js +6 -0
  63. package/dist/components/grid/Grid.js +21 -0
  64. package/dist/components/grid/Grid.module.scss.js +10 -0
  65. package/dist/components/grid/GridRow.js +29 -0
  66. package/dist/components/grid/GridRow.module.scss.js +73 -0
  67. package/dist/components/grid/index.js +6 -0
  68. package/dist/components/headline/Headline.js +71 -0
  69. package/dist/components/headline/Headline.module.scss.js +34 -0
  70. package/dist/components/headline/index.js +5 -0
  71. package/dist/components/icon/Icon.js +60 -0
  72. package/dist/components/icon/Icon.module.scss.js +16 -0
  73. package/dist/components/icon/iconsMap.js +4131 -0
  74. package/dist/components/icon/index.js +5 -0
  75. package/dist/components/image/Image.js +29 -0
  76. package/dist/components/image/Image.module.scss.js +11 -0
  77. package/dist/components/image/index.js +4 -0
  78. package/dist/components/image-text/ImageText.js +99 -0
  79. package/dist/components/image-text/ImageText.module.scss.js +22 -0
  80. package/dist/components/image-text/index.js +4 -0
  81. package/dist/components/input/Input.js +189 -0
  82. package/dist/components/input/Input.module.scss.js +30 -0
  83. package/dist/components/input/InputValidation.js +52 -0
  84. package/dist/components/input/index.js +4 -0
  85. package/dist/components/inputOTP/InputOTP.js +79 -0
  86. package/dist/components/inputOTP/InputOTP.module.scss.js +16 -0
  87. package/dist/components/inputOTP/index.js +4 -0
  88. package/dist/components/label/Label.js +65 -0
  89. package/dist/components/label/Label.module.scss.js +13 -0
  90. package/dist/components/label/index.js +4 -0
  91. package/dist/components/link/Link.js +58 -0
  92. package/dist/components/link/Link.module.scss.js +18 -0
  93. package/dist/components/link/index.js +4 -0
  94. package/dist/components/list/List.js +172 -0
  95. package/dist/components/list/List.module.scss.js +31 -0
  96. package/dist/components/list/index.js +4 -0
  97. package/dist/components/loading/Loading.js +57 -0
  98. package/dist/components/loading/Loading.module.scss.js +19 -0
  99. package/dist/components/loading/index.js +4 -0
  100. package/dist/components/lottie/Lottie.js +55 -0
  101. package/dist/components/lottie/Lottie.module.scss.js +10 -0
  102. package/dist/components/lottie/LottieAnimations.js +35 -0
  103. package/dist/components/lottie/index.js +4 -0
  104. package/dist/components/map/Map.js +51 -0
  105. package/dist/components/map/index.js +4 -0
  106. package/dist/components/post-item/PostItem.js +136 -0
  107. package/dist/components/post-item/PostItem.module.scss.js +22 -0
  108. package/dist/components/post-item/PostItemAuthor.js +37 -0
  109. package/dist/components/post-item/PostItemAuthor.module.scss.js +11 -0
  110. package/dist/components/post-item/index.js +4 -0
  111. package/dist/components/post-teaser/PostTeaser.js +168 -0
  112. package/dist/components/post-teaser/PostTeaser.module.scss.js +25 -0
  113. package/dist/components/post-teaser/index.js +4 -0
  114. package/dist/components/post-widget/PostWidget.js +158 -0
  115. package/dist/components/post-widget/PostWidget.module.scss.js +19 -0
  116. package/dist/components/post-widget/index.js +4 -0
  117. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +159 -0
  118. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +16 -0
  119. package/dist/components/post-widget-carousel/index.js +4 -0
  120. package/dist/components/quote/Quote.js +90 -0
  121. package/dist/components/quote/Quote.module.scss.js +18 -0
  122. package/dist/components/quote/index.js +4 -0
  123. package/dist/components/rich-text/RichText.js +143 -0
  124. package/dist/components/rich-text/RichText.module.scss.js +16 -0
  125. package/dist/components/rich-text/index.js +4 -0
  126. package/dist/components/select/Select.js +199 -0
  127. package/dist/components/select/Select.module.scss.js +34 -0
  128. package/dist/components/select/index.js +4 -0
  129. package/dist/components/skeleton/Skeleton.js +29 -0
  130. package/dist/components/skeleton/Skeleton.module.scss.js +18 -0
  131. package/dist/components/skeleton/index.js +4 -0
  132. package/dist/components/slider/Slider.js +104 -0
  133. package/dist/components/slider/Slider.module.scss.js +20 -0
  134. package/dist/components/slider/index.js +4 -0
  135. package/dist/components/stepper/Stepper.js +119 -0
  136. package/dist/components/stepper/Stepper.module.scss.js +23 -0
  137. package/dist/components/stepper/index.js +4 -0
  138. package/dist/components/switch/Switch.js +102 -0
  139. package/dist/components/switch/Switch.module.scss.js +30 -0
  140. package/dist/components/switch/index.js +4 -0
  141. package/dist/components/table/Table.js +75 -0
  142. package/dist/components/table/Table.module.scss.js +27 -0
  143. package/dist/components/table/index.js +4 -0
  144. package/dist/components/teaser/Teaser.js +102 -0
  145. package/dist/components/teaser/Teaser.module.scss.js +23 -0
  146. package/dist/components/teaser/index.js +4 -0
  147. package/dist/helpers/bem.js +12 -0
  148. package/dist/helpers/calculation.js +4 -0
  149. package/dist/helpers/validations.js +8 -0
  150. package/dist/hooks/useGoogleMaps.js +19 -0
  151. package/dist/index.js +86 -0
  152. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +353 -0
  153. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +395 -0
  154. 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 +170 -0
  155. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
  156. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  157. 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 +119 -0
  158. 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 -0
  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/Portal/Portal.js +71 -0
  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/Select/Select.js +286 -0
  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/Select/selectClasses.js +10 -0
  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/Slider/Slider.js +414 -0
  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/Slider/sliderClasses.js +10 -0
  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/Switch/Switch.js +158 -0
  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/Switch/switchClasses.js +10 -0
  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/Unstable_Popup/Popup.js +205 -0
  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/Unstable_Popup/PopupContext.js +6 -0
  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/popupClasses.js +10 -0
  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/generateUtilityClass/index.js +15 -0
  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/generateUtilityClasses/index.js +10 -0
  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/useButton/useButton.js +79 -0
  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/useCompound/useCompoundItem.js +25 -0
  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/useCompound/useCompoundParent.js +47 -0
  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/useList/ListContext.js +6 -0
  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/useList/listActions.types.js +14 -0
  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/listReducer.js +223 -0
  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/useList.js +150 -0
  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/useListItem.js +61 -0
  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/useOption/useOption.js +63 -0
  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/useOption/useOptionContextStabilizer.js +32 -0
  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/useSelect/SelectProvider.js +34 -0
  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/useSelect/defaultOptionStringifier.js +10 -0
  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/selectReducer.js +65 -0
  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/useSelect.js +242 -0
  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/useSelect.types.js +7 -0
  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/useSlider/useSlider.js +423 -0
  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/useSwitch/useSwitch.js +58 -0
  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/useTransition/TransitionContext.js +6 -0
  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/useTransition/useTransitionTrigger.js +27 -0
  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/utils/ClassNameConfigurator.js +15 -0
  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/utils/areArraysEqual.js +6 -0
  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/combineHooksSlotProps.js +15 -0
  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/isHostComponent.js +6 -0
  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/resolveComponentProps.js +6 -0
  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/useControllableReducer.js +70 -0
  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/useRootElementName.js +17 -0
  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/useTextNavigation.js +17 -0
  198. 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 +9 -0
  199. 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 -0
  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/chainPropTypes/chainPropTypes.js +8 -0
  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/clamp/clamp.js +6 -0
  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/composeClasses/composeClasses.js +16 -0
  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/exactProp/exactProp.js +13 -0
  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/extractEventHandlers/extractEventHandlers.js +11 -0
  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/generateUtilityClass/generateUtilityClass.js +17 -0
  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/getReactNodeRef/getReactNodeRef.js +12 -0
  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/isFocusVisible/isFocusVisible.js +12 -0
  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/isHostComponent/isHostComponent.js +6 -0
  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/mergeSlotProps/mergeSlotProps.js +48 -0
  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/omitEventHandlers/omitEventHandlers.js +11 -0
  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/ownerDocument/ownerDocument.js +6 -0
  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/resolveComponentProps/resolveComponentProps.js +6 -0
  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/setRef/setRef.js +6 -0
  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/useControlled/useControlled.js +31 -0
  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/useEnhancedEffect/useEnhancedEffect.js +5 -0
  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/useEventCallback/useEventCallback.js +14 -0
  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/useForkRef/useForkRef.js +12 -0
  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/useId/useId.js +19 -0
  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/useSlotProps/useSlotProps.js +27 -0
  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/visuallyHidden/visuallyHidden.js +14 -0
  221. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  222. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +54 -0
  223. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +54 -0
  224. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  225. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  226. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +17 -0
  227. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  228. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +7 -0
  229. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +95 -0
  230. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  231. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -0
  232. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
  233. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
  234. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +10 -0
  235. package/dist/ui.css +1 -1
  236. package/package.json +42 -44
  237. package/dist/components/Accordion2.js +0 -1
  238. package/dist/components/Animated2.js +0 -1
  239. package/dist/components/AnimatedText2.js +0 -1
  240. package/dist/components/Avatar2.js +0 -1
  241. package/dist/components/BaseLink.js +0 -1
  242. package/dist/components/Button2.js +0 -1
  243. package/dist/components/Calendly2.js +0 -1
  244. package/dist/components/Card2.js +0 -1
  245. package/dist/components/Carousel2.js +0 -1
  246. package/dist/components/Chip2.js +0 -1
  247. package/dist/components/ClassNameConfigurator.js +0 -21
  248. package/dist/components/DatePicker2.js +0 -1
  249. package/dist/components/Dialog2.js +0 -1
  250. package/dist/components/Drawer2.js +0 -1
  251. package/dist/components/Form2.js +0 -1
  252. package/dist/components/GridRow.js +0 -1
  253. package/dist/components/Headline2.js +0 -1
  254. package/dist/components/Icon2.js +0 -1
  255. package/dist/components/Image2.js +0 -1
  256. package/dist/components/ImageText.js +0 -1
  257. package/dist/components/Input2.js +0 -1
  258. package/dist/components/InputOTP2.js +0 -1
  259. package/dist/components/Label2.js +0 -1
  260. package/dist/components/Link2.js +0 -1
  261. package/dist/components/List2.js +0 -1
  262. package/dist/components/Loading2.js +0 -1
  263. package/dist/components/Lottie2.js +0 -1
  264. package/dist/components/Map2.js +0 -1
  265. package/dist/components/PostItem.js +0 -1
  266. package/dist/components/PostTeaser.js +0 -1
  267. package/dist/components/PostWidget.js +0 -1
  268. package/dist/components/PostWidgetCarousel.js +0 -1
  269. package/dist/components/Quote2.js +0 -1
  270. package/dist/components/RichText.js +0 -1
  271. package/dist/components/Select2.js +0 -3
  272. package/dist/components/Skeleton2.js +0 -1
  273. package/dist/components/Slider2.js +0 -1
  274. package/dist/components/Stepper2.js +0 -1
  275. package/dist/components/Switch2.js +0 -1
  276. package/dist/components/Table2.js +0 -1
  277. package/dist/components/Teaser2.js +0 -1
  278. package/dist/components/accordion.js +0 -1
  279. package/dist/components/animated.js +0 -1
  280. package/dist/components/animatedText.js +0 -1
  281. package/dist/components/areArraysEqual.js +0 -1
  282. package/dist/components/avatar.js +0 -1
  283. package/dist/components/base-link.js +0 -1
  284. package/dist/components/bem.js +0 -1
  285. package/dist/components/button.js +0 -1
  286. package/dist/components/calculation.js +0 -1
  287. package/dist/components/calendly.js +0 -1
  288. package/dist/components/card.js +0 -1
  289. package/dist/components/carousel.js +0 -1
  290. package/dist/components/chip.js +0 -1
  291. package/dist/components/datePicker.js +0 -1
  292. package/dist/components/dialog.js +0 -1
  293. package/dist/components/drawer.js +0 -1
  294. package/dist/components/form.js +0 -1
  295. package/dist/components/grid.js +0 -1
  296. package/dist/components/headline.js +0 -1
  297. package/dist/components/icon.js +0 -1
  298. package/dist/components/image-text.js +0 -1
  299. package/dist/components/image.js +0 -1
  300. package/dist/components/input.js +0 -1
  301. package/dist/components/inputOTP.js +0 -1
  302. package/dist/components/jsx-runtime.js +0 -22
  303. package/dist/components/label.js +0 -1
  304. package/dist/components/link.js +0 -1
  305. package/dist/components/list.js +0 -1
  306. package/dist/components/loading.js +0 -1
  307. package/dist/components/lottie.js +0 -1
  308. package/dist/components/map.js +0 -1
  309. package/dist/components/post-item.js +0 -1
  310. package/dist/components/post-teaser.js +0 -1
  311. package/dist/components/post-widget-carousel.js +0 -1
  312. package/dist/components/post-widget.js +0 -1
  313. package/dist/components/quote.js +0 -1
  314. package/dist/components/rich-text.js +0 -1
  315. package/dist/components/select.js +0 -1
  316. package/dist/components/skeleton.js +0 -1
  317. package/dist/components/slider.js +0 -1
  318. package/dist/components/stepper.js +0 -1
  319. package/dist/components/switch.js +0 -1
  320. package/dist/components/table.js +0 -1
  321. package/dist/components/teaser.js +0 -1
  322. package/dist/components/useControlled.js +0 -3
  323. package/dist/components/validations.js +0 -1
  324. package/dist/index.cjs.js +0 -1
  325. package/dist/index.es.js +0 -84
@@ -0,0 +1,102 @@
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
+ import { memo as r } from "react";
3
+ import { create as e } from "../../helpers/bem.js";
4
+ import { isString as h } from "../../helpers/validations.js";
5
+ import { Card as g } from "../card/Card.js";
6
+ import { Headline as v } from "../headline/Headline.js";
7
+ import { Icon as C } from "../icon/Icon.js";
8
+ import { Image as y } from "../image/Image.js";
9
+ import { Lottie as T } from "../lottie/Lottie.js";
10
+ import { RichText as b } from "../rich-text/RichText.js";
11
+ import I from "./Teaser.module.scss.js";
12
+ const s = e(I, "Teaser"), R = r(
13
+ ({
14
+ className: f,
15
+ variant: n = "primary",
16
+ animation: l,
17
+ lineClamp: c,
18
+ align: p,
19
+ image: N,
20
+ title: m,
21
+ content: x,
22
+ onClick: j,
23
+ redirect: a,
24
+ ..._
25
+ }) => {
26
+ var i;
27
+ return /* @__PURE__ */ o.jsxs(
28
+ g,
29
+ {
30
+ variant: n,
31
+ ..._,
32
+ className: s(void 0, void 0, f),
33
+ contentClassName: s("card"),
34
+ redirect: a,
35
+ onClick: j,
36
+ children: [
37
+ l && /* @__PURE__ */ o.jsx(T, { animationName: l, className: s("animation") }),
38
+ N && /* @__PURE__ */ o.jsx("div", { className: s("image__wrapper"), children: /* @__PURE__ */ o.jsx(
39
+ y,
40
+ {
41
+ ...N,
42
+ captionClassName: s("image__caption"),
43
+ className: s("image"),
44
+ containerClassName: s("image")
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ o.jsxs("div", { className: s("card__content"), children: [
48
+ /* @__PURE__ */ o.jsx(
49
+ v,
50
+ {
51
+ align: p ?? "center",
52
+ size: "md",
53
+ type: "h3",
54
+ ...m,
55
+ variant: (m == null ? void 0 : m.variant) ?? n,
56
+ className: s(
57
+ "headline",
58
+ {
59
+ "has-lineClamp": !!c
60
+ },
61
+ m == null ? void 0 : m.className
62
+ ),
63
+ children: m == null ? void 0 : m.content
64
+ }
65
+ ),
66
+ h(x) && /* @__PURE__ */ o.jsx(
67
+ b,
68
+ {
69
+ className: s("content", {
70
+ "has-lineClamp": !!c,
71
+ [`align-${p}`]: !!p
72
+ }),
73
+ children: x
74
+ }
75
+ ),
76
+ h(a == null ? void 0 : a.label) && /* @__PURE__ */ o.jsxs("span", { className: s("link"), children: [
77
+ /* @__PURE__ */ o.jsx(
78
+ C,
79
+ {
80
+ color: n,
81
+ name: "ArrowRight01Icon",
82
+ size: "xs",
83
+ ...a == null ? void 0 : a.icon,
84
+ className: s(
85
+ "link__icon",
86
+ void 0,
87
+ (i = a == null ? void 0 : a.icon) == null ? void 0 : i.className
88
+ )
89
+ }
90
+ ),
91
+ a == null ? void 0 : a.label
92
+ ] })
93
+ ] })
94
+ ]
95
+ }
96
+ );
97
+ }
98
+ );
99
+ R.displayName = "Teaser";
100
+ export {
101
+ R as Teaser
102
+ };
@@ -0,0 +1,23 @@
1
+ const o = "gradientMove", e = "fadeInKeyframe", r = {
2
+ "prokodo-Teaser": "prokodo-Teaser",
3
+ "prokodo-Teaser__card": "prokodo-Teaser__card",
4
+ "prokodo-Teaser__card__content": "prokodo-Teaser__card__content",
5
+ "prokodo-Teaser__image": "prokodo-Teaser__image",
6
+ "prokodo-Teaser__image__wrapper": "prokodo-Teaser__image__wrapper",
7
+ "prokodo-Teaser__image__caption": "prokodo-Teaser__image__caption",
8
+ "prokodo-Teaser__animation": "prokodo-Teaser__animation",
9
+ "prokodo-Teaser__headline--has-lineClamp": "prokodo-Teaser__headline--has-lineClamp",
10
+ "prokodo-Teaser__content": "prokodo-Teaser__content",
11
+ "prokodo-Teaser__content--has-lineClamp": "prokodo-Teaser__content--has-lineClamp",
12
+ "prokodo-Teaser__content--align-left": "prokodo-Teaser__content--align-left",
13
+ "prokodo-Teaser__content--align-right": "prokodo-Teaser__content--align-right",
14
+ "prokodo-Teaser__link": "prokodo-Teaser__link",
15
+ "prokodo-Teaser__link__icon": "prokodo-Teaser__link__icon",
16
+ gradientMove: o,
17
+ fadeInKeyframe: e
18
+ };
19
+ export {
20
+ r as default,
21
+ e as fadeInKeyframe,
22
+ o as gradientMove
23
+ };
@@ -0,0 +1,4 @@
1
+ import { Teaser as o } from "./Teaser.js";
2
+ export {
3
+ o as Teaser
4
+ };
@@ -0,0 +1,12 @@
1
+ import m from "react-bem-helper";
2
+ const p = "prokodo";
3
+ function l(t, e) {
4
+ const n = `${p}-${e}`, r = new m({ name: n, outputIsString: !0 });
5
+ return (s, a, c) => r(s, a, c).split(" ").map(
6
+ (o) => t[o] !== void 0 && t[o] !== "" ? t[o] : o
7
+ ).join(" ");
8
+ }
9
+ export {
10
+ p as COMPANY_PREFIX,
11
+ l as create
12
+ };
@@ -0,0 +1,4 @@
1
+ const l = (o) => o === void 0 ? 0 : o.split(/\s+/).length;
2
+ export {
3
+ l as calculateWordCount
4
+ };
@@ -0,0 +1,8 @@
1
+ const t = (s) => typeof s == "string" && s.trim() !== "", i = (s) => typeof s == "number", r = (s) => Array.isArray(s) && s.length > 0, n = (s) => s == null, o = (s) => s !== !1 && s !== void 0;
2
+ export {
3
+ r as isArray,
4
+ n as isNull,
5
+ i as isNumber,
6
+ t as isString,
7
+ o as isTrue
8
+ };
@@ -0,0 +1,19 @@
1
+ import { Loader as s } from "@googlemaps/js-api-loader";
2
+ import { useState as l, useEffect as n } from "react";
3
+ const m = (o, e) => {
4
+ const [a, t] = l(!1);
5
+ return n(() => {
6
+ new s({
7
+ apiKey: o,
8
+ version: "weekly",
9
+ libraries: ["maps"]
10
+ }).importLibrary("marker").then(() => {
11
+ t(!0);
12
+ }).catch((r) => {
13
+ throw console.error("Error loading Google Maps", r), new Error("Error loading Google Map: ", r);
14
+ });
15
+ }, [o, e]), a;
16
+ };
17
+ export {
18
+ m as useGoogleMaps
19
+ };
package/dist/index.js ADDED
@@ -0,0 +1,86 @@
1
+ import { Accordion as e } from "./components/accordion/Accordion.js";
2
+ import { Animated as m } from "./components/animated/Animated.js";
3
+ import { AnimatedText as x } from "./components/animatedText/AnimatedText.js";
4
+ import { Avatar as a } from "./components/avatar/Avatar.js";
5
+ import { BaseLink as n } from "./components/base-link/BaseLink.js";
6
+ import { Button as s } from "./components/button/Button.js";
7
+ import { Calendly as c } from "./components/calendly/Calendly.js";
8
+ import { Card as g } from "./components/card/Card.js";
9
+ import { Carousel as I } from "./components/carousel/Carousel.js";
10
+ import { Chip as P } from "./components/chip/Chip.js";
11
+ import { DatePicker as S } from "./components/datePicker/DatePicker.js";
12
+ import { Dialog as A } from "./components/dialog/Dialog.js";
13
+ import { Drawer as w } from "./components/drawer/Drawer.js";
14
+ import { Form as R } from "./components/form/Form.js";
15
+ import { FormResponse as B } from "./components/form/FormResponse.js";
16
+ import { Grid as G } from "./components/grid/Grid.js";
17
+ import { GridRow as v } from "./components/grid/GridRow.js";
18
+ import { Headline as H } from "./components/headline/Headline.js";
19
+ import { Icon as O } from "./components/icon/Icon.js";
20
+ import { Image as j } from "./components/image/Image.js";
21
+ import { ImageText as z } from "./components/image-text/ImageText.js";
22
+ import { Input as J } from "./components/input/Input.js";
23
+ import { InputOTP as N } from "./components/inputOTP/InputOTP.js";
24
+ import { Label as V } from "./components/label/Label.js";
25
+ import { Link as Y } from "./components/link/Link.js";
26
+ import { List as _ } from "./components/list/List.js";
27
+ import { Loading as oo } from "./components/loading/Loading.js";
28
+ import { Lottie as eo } from "./components/lottie/Lottie.js";
29
+ import { Map as mo } from "./components/map/Map.js";
30
+ import { PostItem as xo } from "./components/post-item/PostItem.js";
31
+ import { PostTeaser as ao } from "./components/post-teaser/PostTeaser.js";
32
+ import { PostWidget as no } from "./components/post-widget/PostWidget.js";
33
+ import { PostWidgetCarousel as lo } from "./components/post-widget-carousel/PostWidgetCarousel.js";
34
+ import { Quote as To } from "./components/quote/Quote.js";
35
+ import { RichText as uo } from "./components/rich-text/RichText.js";
36
+ import { Select as Lo } from "./components/select/Select.js";
37
+ import { Skeleton as Co } from "./components/skeleton/Skeleton.js";
38
+ import { Slider as ko } from "./components/slider/Slider.js";
39
+ import { Stepper as ho } from "./components/stepper/Stepper.js";
40
+ import { Switch as Do } from "./components/switch/Switch.js";
41
+ import { Table as bo } from "./components/table/Table.js";
42
+ import { Teaser as Fo } from "./components/teaser/Teaser.js";
43
+ export {
44
+ e as Accordion,
45
+ m as Animated,
46
+ x as AnimatedText,
47
+ a as Avatar,
48
+ n as BaseLink,
49
+ s as Button,
50
+ c as Calendly,
51
+ g as Card,
52
+ I as Carousel,
53
+ P as Chip,
54
+ S as DatePicker,
55
+ A as Dialog,
56
+ w as Drawer,
57
+ R as Form,
58
+ B as FormResponse,
59
+ G as Grid,
60
+ v as GridRow,
61
+ H as Headline,
62
+ O as Icon,
63
+ j as Image,
64
+ z as ImageText,
65
+ J as Input,
66
+ N as InputOTP,
67
+ V as Label,
68
+ Y as Link,
69
+ _ as List,
70
+ oo as Loading,
71
+ eo as Lottie,
72
+ mo as Map,
73
+ xo as PostItem,
74
+ ao as PostTeaser,
75
+ no as PostWidget,
76
+ lo as PostWidgetCarousel,
77
+ To as Quote,
78
+ uo as RichText,
79
+ Lo as Select,
80
+ Co as Skeleton,
81
+ ko as Slider,
82
+ ho as Stepper,
83
+ Do as Switch,
84
+ bo as Table,
85
+ Fo as Teaser
86
+ };
@@ -0,0 +1,353 @@
1
+ import { evaluate as D, getSide as E, getSideAxis as C, getOppositePlacement as H, getExpandedPlacements as J, getOppositeAxisPlacements as K, getAlignmentSides as N, clamp as X, getAlignment as _, getPaddingObject as Q, rectToClientRect as Y, getOppositeAxis as U, getAlignmentAxis as W, getAxisLength as Z } from "../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
2
+ function $(l, s, f) {
3
+ let {
4
+ reference: t,
5
+ floating: a
6
+ } = l;
7
+ const e = C(s), c = W(s), o = Z(c), x = E(s), u = e === "y", m = t.x + t.width / 2 - a.width / 2, n = t.y + t.height / 2 - a.height / 2, r = t[o] / 2 - a[o] / 2;
8
+ let i;
9
+ switch (x) {
10
+ case "top":
11
+ i = {
12
+ x: m,
13
+ y: t.y - a.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ i = {
18
+ x: m,
19
+ y: t.y + t.height
20
+ };
21
+ break;
22
+ case "right":
23
+ i = {
24
+ x: t.x + t.width,
25
+ y: n
26
+ };
27
+ break;
28
+ case "left":
29
+ i = {
30
+ x: t.x - a.width,
31
+ y: n
32
+ };
33
+ break;
34
+ default:
35
+ i = {
36
+ x: t.x,
37
+ y: t.y
38
+ };
39
+ }
40
+ switch (_(s)) {
41
+ case "start":
42
+ i[c] -= r * (f && u ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ i[c] += r * (f && u ? -1 : 1);
46
+ break;
47
+ }
48
+ return i;
49
+ }
50
+ const nt = async (l, s, f) => {
51
+ const {
52
+ placement: t = "bottom",
53
+ strategy: a = "absolute",
54
+ middleware: e = [],
55
+ platform: c
56
+ } = f, o = e.filter(Boolean), x = await (c.isRTL == null ? void 0 : c.isRTL(s));
57
+ let u = await c.getElementRects({
58
+ reference: l,
59
+ floating: s,
60
+ strategy: a
61
+ }), {
62
+ x: m,
63
+ y: n
64
+ } = $(u, t, x), r = t, i = {}, d = 0;
65
+ for (let y = 0; y < o.length; y++) {
66
+ const {
67
+ name: w,
68
+ fn: p
69
+ } = o[y], {
70
+ x: v,
71
+ y: A,
72
+ data: b,
73
+ reset: g
74
+ } = await p({
75
+ x: m,
76
+ y: n,
77
+ initialPlacement: t,
78
+ placement: r,
79
+ strategy: a,
80
+ middlewareData: i,
81
+ rects: u,
82
+ platform: c,
83
+ elements: {
84
+ reference: l,
85
+ floating: s
86
+ }
87
+ });
88
+ m = v ?? m, n = A ?? n, i = {
89
+ ...i,
90
+ [w]: {
91
+ ...i[w],
92
+ ...b
93
+ }
94
+ }, g && d <= 50 && (d++, typeof g == "object" && (g.placement && (r = g.placement), g.rects && (u = g.rects === !0 ? await c.getElementRects({
95
+ reference: l,
96
+ floating: s,
97
+ strategy: a
98
+ }) : g.rects), {
99
+ x: m,
100
+ y: n
101
+ } = $(u, r, x)), y = -1);
102
+ }
103
+ return {
104
+ x: m,
105
+ y: n,
106
+ placement: r,
107
+ strategy: a,
108
+ middlewareData: i
109
+ };
110
+ };
111
+ async function q(l, s) {
112
+ var f;
113
+ s === void 0 && (s = {});
114
+ const {
115
+ x: t,
116
+ y: a,
117
+ platform: e,
118
+ rects: c,
119
+ elements: o,
120
+ strategy: x
121
+ } = l, {
122
+ boundary: u = "clippingAncestors",
123
+ rootBoundary: m = "viewport",
124
+ elementContext: n = "floating",
125
+ altBoundary: r = !1,
126
+ padding: i = 0
127
+ } = D(s, l), d = Q(i), w = o[r ? n === "floating" ? "reference" : "floating" : n], p = Y(await e.getClippingRect({
128
+ element: (f = await (e.isElement == null ? void 0 : e.isElement(w))) == null || f ? w : w.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(o.floating)),
129
+ boundary: u,
130
+ rootBoundary: m,
131
+ strategy: x
132
+ })), v = n === "floating" ? {
133
+ x: t,
134
+ y: a,
135
+ width: c.floating.width,
136
+ height: c.floating.height
137
+ } : c.reference, A = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(o.floating)), b = await (e.isElement == null ? void 0 : e.isElement(A)) ? await (e.getScale == null ? void 0 : e.getScale(A)) || {
138
+ x: 1,
139
+ y: 1
140
+ } : {
141
+ x: 1,
142
+ y: 1
143
+ }, g = Y(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
144
+ elements: o,
145
+ rect: v,
146
+ offsetParent: A,
147
+ strategy: x
148
+ }) : v);
149
+ return {
150
+ top: (p.top - g.top + d.top) / b.y,
151
+ bottom: (g.bottom - p.bottom + d.bottom) / b.y,
152
+ left: (p.left - g.left + d.left) / b.x,
153
+ right: (g.right - p.right + d.right) / b.x
154
+ };
155
+ }
156
+ const it = function(l) {
157
+ return l === void 0 && (l = {}), {
158
+ name: "flip",
159
+ options: l,
160
+ async fn(s) {
161
+ var f, t;
162
+ const {
163
+ placement: a,
164
+ middlewareData: e,
165
+ rects: c,
166
+ initialPlacement: o,
167
+ platform: x,
168
+ elements: u
169
+ } = s, {
170
+ mainAxis: m = !0,
171
+ crossAxis: n = !0,
172
+ fallbackPlacements: r,
173
+ fallbackStrategy: i = "bestFit",
174
+ fallbackAxisSideDirection: d = "none",
175
+ flipAlignment: y = !0,
176
+ ...w
177
+ } = D(l, s);
178
+ if ((f = e.arrow) != null && f.alignmentOffset)
179
+ return {};
180
+ const p = E(a), v = C(o), A = E(o) === o, b = await (x.isRTL == null ? void 0 : x.isRTL(u.floating)), g = r || (A || !y ? [H(o)] : J(o)), V = d !== "none";
181
+ !r && V && g.push(...K(o, y, d, b));
182
+ const z = [o, ...g], L = await q(s, w), T = [];
183
+ let O = ((t = e.flip) == null ? void 0 : t.overflows) || [];
184
+ if (m && T.push(L[p]), n) {
185
+ const k = N(a, c, b);
186
+ T.push(L[k[0]], L[k[1]]);
187
+ }
188
+ if (O = [...O, {
189
+ placement: a,
190
+ overflows: T
191
+ }], !T.every((k) => k <= 0)) {
192
+ var F, B;
193
+ const k = (((F = e.flip) == null ? void 0 : F.index) || 0) + 1, M = z[k];
194
+ if (M) {
195
+ var j;
196
+ const P = n === "alignment" ? v !== C(M) : !1, h = ((j = O[0]) == null ? void 0 : j.overflows[0]) > 0;
197
+ if (!P || h)
198
+ return {
199
+ data: {
200
+ index: k,
201
+ overflows: O
202
+ },
203
+ reset: {
204
+ placement: M
205
+ }
206
+ };
207
+ }
208
+ let S = (B = O.filter((P) => P.overflows[0] <= 0).sort((P, h) => P.overflows[1] - h.overflows[1])[0]) == null ? void 0 : B.placement;
209
+ if (!S)
210
+ switch (i) {
211
+ case "bestFit": {
212
+ var I;
213
+ const P = (I = O.filter((h) => {
214
+ if (V) {
215
+ const R = C(h.placement);
216
+ return R === v || // Create a bias to the `y` side axis due to horizontal
217
+ // reading directions favoring greater width.
218
+ R === "y";
219
+ }
220
+ return !0;
221
+ }).map((h) => [h.placement, h.overflows.filter((R) => R > 0).reduce((R, G) => R + G, 0)]).sort((h, R) => h[1] - R[1])[0]) == null ? void 0 : I[0];
222
+ P && (S = P);
223
+ break;
224
+ }
225
+ case "initialPlacement":
226
+ S = o;
227
+ break;
228
+ }
229
+ if (a !== S)
230
+ return {
231
+ reset: {
232
+ placement: S
233
+ }
234
+ };
235
+ }
236
+ return {};
237
+ }
238
+ };
239
+ };
240
+ async function tt(l, s) {
241
+ const {
242
+ placement: f,
243
+ platform: t,
244
+ elements: a
245
+ } = l, e = await (t.isRTL == null ? void 0 : t.isRTL(a.floating)), c = E(f), o = _(f), x = C(f) === "y", u = ["left", "top"].includes(c) ? -1 : 1, m = e && x ? -1 : 1, n = D(s, l);
246
+ let {
247
+ mainAxis: r,
248
+ crossAxis: i,
249
+ alignmentAxis: d
250
+ } = typeof n == "number" ? {
251
+ mainAxis: n,
252
+ crossAxis: 0,
253
+ alignmentAxis: null
254
+ } : {
255
+ mainAxis: n.mainAxis || 0,
256
+ crossAxis: n.crossAxis || 0,
257
+ alignmentAxis: n.alignmentAxis
258
+ };
259
+ return o && typeof d == "number" && (i = o === "end" ? d * -1 : d), x ? {
260
+ x: i * m,
261
+ y: r * u
262
+ } : {
263
+ x: r * u,
264
+ y: i * m
265
+ };
266
+ }
267
+ const st = function(l) {
268
+ return l === void 0 && (l = 0), {
269
+ name: "offset",
270
+ options: l,
271
+ async fn(s) {
272
+ var f, t;
273
+ const {
274
+ x: a,
275
+ y: e,
276
+ placement: c,
277
+ middlewareData: o
278
+ } = s, x = await tt(s, l);
279
+ return c === ((f = o.offset) == null ? void 0 : f.placement) && (t = o.arrow) != null && t.alignmentOffset ? {} : {
280
+ x: a + x.x,
281
+ y: e + x.y,
282
+ data: {
283
+ ...x,
284
+ placement: c
285
+ }
286
+ };
287
+ }
288
+ };
289
+ }, ot = function(l) {
290
+ return l === void 0 && (l = {}), {
291
+ name: "shift",
292
+ options: l,
293
+ async fn(s) {
294
+ const {
295
+ x: f,
296
+ y: t,
297
+ placement: a
298
+ } = s, {
299
+ mainAxis: e = !0,
300
+ crossAxis: c = !1,
301
+ limiter: o = {
302
+ fn: (w) => {
303
+ let {
304
+ x: p,
305
+ y: v
306
+ } = w;
307
+ return {
308
+ x: p,
309
+ y: v
310
+ };
311
+ }
312
+ },
313
+ ...x
314
+ } = D(l, s), u = {
315
+ x: f,
316
+ y: t
317
+ }, m = await q(s, x), n = C(E(a)), r = U(n);
318
+ let i = u[r], d = u[n];
319
+ if (e) {
320
+ const w = r === "y" ? "top" : "left", p = r === "y" ? "bottom" : "right", v = i + m[w], A = i - m[p];
321
+ i = X(v, i, A);
322
+ }
323
+ if (c) {
324
+ const w = n === "y" ? "top" : "left", p = n === "y" ? "bottom" : "right", v = d + m[w], A = d - m[p];
325
+ d = X(v, d, A);
326
+ }
327
+ const y = o.fn({
328
+ ...s,
329
+ [r]: i,
330
+ [n]: d
331
+ });
332
+ return {
333
+ ...y,
334
+ data: {
335
+ x: y.x - f,
336
+ y: y.y - t,
337
+ enabled: {
338
+ [r]: e,
339
+ [n]: c
340
+ }
341
+ }
342
+ };
343
+ }
344
+ };
345
+ };
346
+ export {
347
+ nt as computePosition,
348
+ q as detectOverflow,
349
+ it as flip,
350
+ st as offset,
351
+ Y as rectToClientRect,
352
+ ot as shift
353
+ };