@prokodo/ui 0.0.10 → 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 (235) hide show
  1. package/README.md +2 -0
  2. package/dist/_virtual/_commonjsHelpers.js +6 -1
  3. package/dist/_virtual/index.js +7 -1
  4. package/dist/_virtual/index2.js +4 -1
  5. package/dist/_virtual/index3.js +4 -1
  6. package/dist/_virtual/jsx-runtime.js +5 -1
  7. package/dist/_virtual/jsx-runtime2.js +4 -1
  8. package/dist/_virtual/react-is.development.js +4 -1
  9. package/dist/_virtual/react-is.production.min.js +4 -1
  10. package/dist/_virtual/react-jsx-runtime.development.js +4 -1
  11. package/dist/_virtual/react-jsx-runtime.production.js +4 -1
  12. package/dist/assets/images/card_background_primary_1.webp.js +4 -1
  13. package/dist/assets/images/card_background_primary_2.webp.js +4 -1
  14. package/dist/assets/images/card_background_primary_3.webp.js +4 -1
  15. package/dist/assets/images/card_background_primary_4.webp.js +4 -1
  16. package/dist/assets/images/card_background_secondary_1.webp.js +4 -1
  17. package/dist/assets/images/card_background_secondary_2.webp.js +4 -1
  18. package/dist/assets/images/card_background_secondary_3.webp.js +4 -1
  19. package/dist/assets/images/card_background_secondary_4.webp.js +4 -1
  20. package/dist/components/accordion/Accordion.js +115 -1
  21. package/dist/components/accordion/Accordion.module.scss.js +23 -1
  22. package/dist/components/accordion/index.js +4 -1
  23. package/dist/components/animated/Animated.js +53 -1
  24. package/dist/components/animated/Animated.module.scss.js +18 -1
  25. package/dist/components/animated/index.js +4 -1
  26. package/dist/components/animatedText/AnimatedText.js +31 -1
  27. package/dist/components/animatedText/index.js +4 -1
  28. package/dist/components/avatar/Avatar.js +78 -1
  29. package/dist/components/avatar/Avatar.module.scss.js +24 -1
  30. package/dist/components/avatar/index.js +4 -1
  31. package/dist/components/base-link/BaseLink.js +30 -1
  32. package/dist/components/base-link/index.js +4 -1
  33. package/dist/components/button/Button.js +84 -1
  34. package/dist/components/button/Button.module.scss.js +34 -1
  35. package/dist/components/button/index.js +4 -1
  36. package/dist/components/calendly/Calendly.js +82 -1
  37. package/dist/components/calendly/index.js +4 -1
  38. package/dist/components/card/Card.js +180 -1
  39. package/dist/components/card/Card.module.scss.js +38 -1
  40. package/dist/components/card/index.js +4 -1
  41. package/dist/components/carousel/Carousel.js +232 -1
  42. package/dist/components/carousel/Carousel.module.scss.js +21 -1
  43. package/dist/components/carousel/Carousel.services.js +22 -1
  44. package/dist/components/carousel/index.js +4 -1
  45. package/dist/components/chip/Chip.js +61 -1
  46. package/dist/components/chip/Chip.module.scss.js +26 -1
  47. package/dist/components/chip/index.js +4 -1
  48. package/dist/components/datePicker/DatePicker.js +93 -1
  49. package/dist/components/datePicker/index.js +4 -1
  50. package/dist/components/dialog/Dialog.js +156 -1
  51. package/dist/components/dialog/Dialog.module.scss.js +23 -1
  52. package/dist/components/dialog/index.js +4 -1
  53. package/dist/components/drawer/Drawer.js +94 -1
  54. package/dist/components/drawer/Drawer.module.scss.js +37 -1
  55. package/dist/components/drawer/index.js +6 -1
  56. package/dist/components/form/Form.js +228 -1
  57. package/dist/components/form/Form.module.scss.js +13 -1
  58. package/dist/components/form/FormField.js +96 -1
  59. package/dist/components/form/FormField.module.scss.js +10 -1
  60. package/dist/components/form/FormResponse.js +43 -1
  61. package/dist/components/form/FormResponse.module.scss.js +14 -1
  62. package/dist/components/form/index.js +6 -1
  63. package/dist/components/grid/Grid.js +21 -1
  64. package/dist/components/grid/Grid.module.scss.js +10 -1
  65. package/dist/components/grid/GridRow.js +29 -1
  66. package/dist/components/grid/GridRow.module.scss.js +73 -1
  67. package/dist/components/grid/index.js +6 -1
  68. package/dist/components/headline/Headline.js +71 -1
  69. package/dist/components/headline/Headline.module.scss.js +34 -1
  70. package/dist/components/headline/index.js +5 -1
  71. package/dist/components/icon/Icon.js +60 -1
  72. package/dist/components/icon/Icon.module.scss.js +16 -1
  73. package/dist/components/icon/iconsMap.js +4131 -1
  74. package/dist/components/icon/index.js +5 -1
  75. package/dist/components/image/Image.js +29 -1
  76. package/dist/components/image/Image.module.scss.js +11 -1
  77. package/dist/components/image/index.js +4 -1
  78. package/dist/components/image-text/ImageText.js +99 -1
  79. package/dist/components/image-text/ImageText.module.scss.js +22 -1
  80. package/dist/components/image-text/index.js +4 -1
  81. package/dist/components/input/Input.js +189 -1
  82. package/dist/components/input/Input.module.scss.js +30 -1
  83. package/dist/components/input/InputValidation.js +52 -1
  84. package/dist/components/input/index.js +4 -1
  85. package/dist/components/inputOTP/InputOTP.js +79 -1
  86. package/dist/components/inputOTP/InputOTP.module.scss.js +16 -1
  87. package/dist/components/inputOTP/index.js +4 -1
  88. package/dist/components/label/Label.js +65 -1
  89. package/dist/components/label/Label.module.scss.js +13 -1
  90. package/dist/components/label/index.js +4 -1
  91. package/dist/components/link/Link.js +58 -1
  92. package/dist/components/link/Link.module.scss.js +18 -1
  93. package/dist/components/link/index.js +4 -1
  94. package/dist/components/list/List.js +172 -1
  95. package/dist/components/list/List.module.scss.js +31 -1
  96. package/dist/components/list/index.js +4 -1
  97. package/dist/components/loading/Loading.js +57 -1
  98. package/dist/components/loading/Loading.module.scss.js +19 -1
  99. package/dist/components/loading/index.js +4 -1
  100. package/dist/components/lottie/Lottie.js +55 -1
  101. package/dist/components/lottie/Lottie.module.scss.js +10 -1
  102. package/dist/components/lottie/LottieAnimations.js +35 -1
  103. package/dist/components/lottie/index.js +4 -1
  104. package/dist/components/map/Map.js +51 -1
  105. package/dist/components/map/index.js +4 -1
  106. package/dist/components/post-item/PostItem.js +136 -1
  107. package/dist/components/post-item/PostItem.module.scss.js +22 -1
  108. package/dist/components/post-item/PostItemAuthor.js +37 -1
  109. package/dist/components/post-item/PostItemAuthor.module.scss.js +11 -1
  110. package/dist/components/post-item/index.js +4 -1
  111. package/dist/components/post-teaser/PostTeaser.js +168 -1
  112. package/dist/components/post-teaser/PostTeaser.module.scss.js +25 -1
  113. package/dist/components/post-teaser/index.js +4 -1
  114. package/dist/components/post-widget/PostWidget.js +158 -1
  115. package/dist/components/post-widget/PostWidget.module.scss.js +19 -1
  116. package/dist/components/post-widget/index.js +4 -1
  117. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +159 -1
  118. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +16 -1
  119. package/dist/components/post-widget-carousel/index.js +4 -1
  120. package/dist/components/quote/Quote.js +90 -1
  121. package/dist/components/quote/Quote.module.scss.js +18 -1
  122. package/dist/components/quote/index.js +4 -1
  123. package/dist/components/rich-text/RichText.js +143 -1
  124. package/dist/components/rich-text/RichText.module.scss.js +16 -1
  125. package/dist/components/rich-text/index.js +4 -1
  126. package/dist/components/select/Select.js +199 -1
  127. package/dist/components/select/Select.module.scss.js +34 -1
  128. package/dist/components/select/index.js +4 -1
  129. package/dist/components/skeleton/Skeleton.js +29 -1
  130. package/dist/components/skeleton/Skeleton.module.scss.js +18 -1
  131. package/dist/components/skeleton/index.js +4 -1
  132. package/dist/components/slider/Slider.js +104 -1
  133. package/dist/components/slider/Slider.module.scss.js +20 -1
  134. package/dist/components/slider/index.js +4 -1
  135. package/dist/components/stepper/Stepper.js +119 -1
  136. package/dist/components/stepper/Stepper.module.scss.js +23 -1
  137. package/dist/components/stepper/index.js +4 -1
  138. package/dist/components/switch/Switch.js +102 -1
  139. package/dist/components/switch/Switch.module.scss.js +30 -1
  140. package/dist/components/switch/index.js +4 -1
  141. package/dist/components/table/Table.js +75 -1
  142. package/dist/components/table/Table.module.scss.js +27 -1
  143. package/dist/components/table/index.js +4 -1
  144. package/dist/components/teaser/Teaser.js +102 -1
  145. package/dist/components/teaser/Teaser.module.scss.js +23 -1
  146. package/dist/components/teaser/index.js +4 -1
  147. package/dist/helpers/bem.js +12 -1
  148. package/dist/helpers/calculation.js +4 -1
  149. package/dist/helpers/validations.js +8 -1
  150. package/dist/hooks/useGoogleMaps.js +19 -1
  151. package/dist/index.js +86 -1
  152. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +353 -1
  153. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +395 -1
  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 -1
  155. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -1
  156. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -3
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -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/isHostComponent/isHostComponent.js +6 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -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/useEnhancedEffect/useEnhancedEffect.js +5 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  221. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -1
  222. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +51 -2
  223. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +54 -1
  224. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +52 -1
  225. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +329 -2
  226. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +17 -1
  227. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -1
  228. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +7 -1
  229. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +89 -2
  230. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +72 -2
  231. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -1
  232. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +236 -3
  233. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +28 -2
  234. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +10 -1
  235. package/package.json +2 -4
@@ -1 +1,223 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./listActions.types.js");function w(n,e,l,i,t,s){if(l.length===0||!i&&l.every((g,u)=>t(g,u)))return-1;let r=n;for(;;){if(!s&&e==="next"&&r===l.length||!s&&e==="previous"&&r===-1)return-1;if(i?!1:t(l[r],r))r+=e==="next"?1:-1,s&&(r=(r+l.length)%l.length);else return r}}function h(n,e,l){const{items:i,isItemDisabled:t,disableListWrap:s,disabledItemsFocusable:r,itemComparer:g,focusManagement:u}=l,a=u==="DOM"?0:-1,d=i.length-1,I=n==null?-1:i.findIndex(b=>g(b,n));let c,o,V=!s;switch(e){case"reset":if(a===-1)return null;c=0,o="next",V=!1;break;case"start":c=0,o="next",V=!1;break;case"end":c=d,o="previous",V=!1;break;default:{const b=I+e;b<0?!V&&I!==-1||Math.abs(e)>1?(c=0,o="next"):(c=d,o="previous"):b>d?!V||Math.abs(e)>1?(c=d,o="previous"):(c=0,o="next"):(c=b,o=e>=0?"next":"previous")}}const p=w(c,o,i,r,t,V);return p===-1&&n!==null&&!t(n,I)?n:i[p]??null}function x(n,e,l,i){return l==="none"?[]:l==="single"?i(e[0],n)?e:[n]:e.some(t=>i(t,n))?e.filter(t=>!i(t,n)):[...e,n]}function m(n,e,l){const{itemComparer:i,isItemDisabled:t,selectionMode:s,items:r}=l,{selectedValues:g}=e,u=r.findIndex(d=>i(n,d));if(t(n,u))return e;const a=x(n,g,s,i);return{...e,selectedValues:a,highlightedValue:n}}function v(n,e,l){const i=e.highlightedValue,{orientation:t,pageSize:s}=l;switch(n){case"Home":return{...e,highlightedValue:h(i,"start",l)};case"End":return{...e,highlightedValue:h(i,"end",l)};case"PageUp":return{...e,highlightedValue:h(i,-s,l)};case"PageDown":return{...e,highlightedValue:h(i,s,l)};case"ArrowUp":if(t!=="vertical")break;return{...e,highlightedValue:h(i,-1,l)};case"ArrowDown":if(t!=="vertical")break;return{...e,highlightedValue:h(i,1,l)};case"ArrowLeft":{if(t==="vertical")break;return{...e,highlightedValue:h(i,t==="horizontal-ltr"?-1:1,l)}}case"ArrowRight":{if(t==="vertical")break;return{...e,highlightedValue:h(i,t==="horizontal-ltr"?1:-1,l)}}case"Enter":case" ":return e.highlightedValue===null?e:m(e.highlightedValue,e,l)}return e}function y(n,e){return e.focusManagement==="DOM"?n:{...n,highlightedValue:null}}function A(n,e,l){var t;const i=(t=l(n))==null?void 0:t.trim().toLowerCase();return!i||i.length===0?!1:i.startsWith(e)}function L(n,e,l){const{items:i,isItemDisabled:t,disabledItemsFocusable:s,getItemAsString:r}=l,g=e.length>1;let u=g?n.highlightedValue:h(n.highlightedValue,1,l);for(let a=0;a<i.length;a+=1){if(!u||!g&&n.highlightedValue===u)return n;if(A(u,e,r)&&(!t(u,i.indexOf(u))||s))return{...n,highlightedValue:u};u=h(u,1,l)}return n}function S(n,e,l,i){const{itemComparer:t,focusManagement:s}=i;let r=null;l.highlightedValue!=null?r=n.find(a=>t(a,l.highlightedValue))??null:s==="DOM"&&e.length===0&&(r=h(null,"reset",i));const u=(l.selectedValues??[]).filter(a=>n.some(d=>t(d,a)));return{...l,highlightedValue:r,selectedValues:u}}function T(n,e){return{...n,highlightedValue:h(null,"reset",e)}}function M(n,e){return{...n,highlightedValue:h(null,"end",e)}}function k(n,e){return{...n,selectedValues:[],highlightedValue:h(null,"reset",e)}}function C(n,e){const{type:l,context:i}=e;switch(l){case f.ListActionTypes.keyDown:return v(e.key,n,i);case f.ListActionTypes.itemClick:return m(e.item,n,i);case f.ListActionTypes.blur:return y(n,i);case f.ListActionTypes.textNavigation:return L(n,e.searchString,i);case f.ListActionTypes.itemsChange:return S(e.items,e.previousItems,n,i);case f.ListActionTypes.resetHighlight:return T(n,i);case f.ListActionTypes.highlightLast:return M(n,i);case f.ListActionTypes.clearSelection:return k(n,i);default:return n}}exports.handleItemSelection=m;exports.listReducer=C;exports.moveHighlight=h;exports.toggleSelection=x;
1
+ import { ListActionTypes as f } from "./listActions.types.js";
2
+ function w(n, e, r, l, i, h) {
3
+ if (r.length === 0 || !l && r.every((g, u) => i(g, u)))
4
+ return -1;
5
+ let t = n;
6
+ for (; ; ) {
7
+ if (!h && e === "next" && t === r.length || !h && e === "previous" && t === -1)
8
+ return -1;
9
+ if (l ? !1 : i(r[t], t))
10
+ t += e === "next" ? 1 : -1, h && (t = (t + r.length) % r.length);
11
+ else
12
+ return t;
13
+ }
14
+ }
15
+ function a(n, e, r) {
16
+ const {
17
+ items: l,
18
+ isItemDisabled: i,
19
+ disableListWrap: h,
20
+ disabledItemsFocusable: t,
21
+ itemComparer: g,
22
+ focusManagement: u
23
+ } = r, s = u === "DOM" ? 0 : -1, o = l.length - 1, I = n == null ? -1 : l.findIndex((x) => g(x, n));
24
+ let c, d, V = !h;
25
+ switch (e) {
26
+ case "reset":
27
+ if (s === -1)
28
+ return null;
29
+ c = 0, d = "next", V = !1;
30
+ break;
31
+ case "start":
32
+ c = 0, d = "next", V = !1;
33
+ break;
34
+ case "end":
35
+ c = o, d = "previous", V = !1;
36
+ break;
37
+ default: {
38
+ const x = I + e;
39
+ x < 0 ? !V && I !== -1 || Math.abs(e) > 1 ? (c = 0, d = "next") : (c = o, d = "previous") : x > o ? !V || Math.abs(e) > 1 ? (c = o, d = "previous") : (c = 0, d = "next") : (c = x, d = e >= 0 ? "next" : "previous");
40
+ }
41
+ }
42
+ const b = w(c, d, l, t, i, V);
43
+ return b === -1 && n !== null && !i(n, I) ? n : l[b] ?? null;
44
+ }
45
+ function v(n, e, r, l) {
46
+ return r === "none" ? [] : r === "single" ? l(e[0], n) ? e : [n] : e.some((i) => l(i, n)) ? e.filter((i) => !l(i, n)) : [...e, n];
47
+ }
48
+ function m(n, e, r) {
49
+ const {
50
+ itemComparer: l,
51
+ isItemDisabled: i,
52
+ selectionMode: h,
53
+ items: t
54
+ } = r, {
55
+ selectedValues: g
56
+ } = e, u = t.findIndex((o) => l(n, o));
57
+ if (i(n, u))
58
+ return e;
59
+ const s = v(n, g, h, l);
60
+ return {
61
+ ...e,
62
+ selectedValues: s,
63
+ highlightedValue: n
64
+ };
65
+ }
66
+ function p(n, e, r) {
67
+ const l = e.highlightedValue, {
68
+ orientation: i,
69
+ pageSize: h
70
+ } = r;
71
+ switch (n) {
72
+ case "Home":
73
+ return {
74
+ ...e,
75
+ highlightedValue: a(l, "start", r)
76
+ };
77
+ case "End":
78
+ return {
79
+ ...e,
80
+ highlightedValue: a(l, "end", r)
81
+ };
82
+ case "PageUp":
83
+ return {
84
+ ...e,
85
+ highlightedValue: a(l, -h, r)
86
+ };
87
+ case "PageDown":
88
+ return {
89
+ ...e,
90
+ highlightedValue: a(l, h, r)
91
+ };
92
+ case "ArrowUp":
93
+ if (i !== "vertical")
94
+ break;
95
+ return {
96
+ ...e,
97
+ highlightedValue: a(l, -1, r)
98
+ };
99
+ case "ArrowDown":
100
+ if (i !== "vertical")
101
+ break;
102
+ return {
103
+ ...e,
104
+ highlightedValue: a(l, 1, r)
105
+ };
106
+ case "ArrowLeft": {
107
+ if (i === "vertical")
108
+ break;
109
+ return {
110
+ ...e,
111
+ highlightedValue: a(l, i === "horizontal-ltr" ? -1 : 1, r)
112
+ };
113
+ }
114
+ case "ArrowRight": {
115
+ if (i === "vertical")
116
+ break;
117
+ return {
118
+ ...e,
119
+ highlightedValue: a(l, i === "horizontal-ltr" ? 1 : -1, r)
120
+ };
121
+ }
122
+ case "Enter":
123
+ case " ":
124
+ return e.highlightedValue === null ? e : m(e.highlightedValue, e, r);
125
+ }
126
+ return e;
127
+ }
128
+ function k(n, e) {
129
+ return e.focusManagement === "DOM" ? n : {
130
+ ...n,
131
+ highlightedValue: null
132
+ };
133
+ }
134
+ function C(n, e, r) {
135
+ var i;
136
+ const l = (i = r(n)) == null ? void 0 : i.trim().toLowerCase();
137
+ return !l || l.length === 0 ? !1 : l.startsWith(e);
138
+ }
139
+ function D(n, e, r) {
140
+ const {
141
+ items: l,
142
+ isItemDisabled: i,
143
+ disabledItemsFocusable: h,
144
+ getItemAsString: t
145
+ } = r, g = e.length > 1;
146
+ let u = g ? n.highlightedValue : a(n.highlightedValue, 1, r);
147
+ for (let s = 0; s < l.length; s += 1) {
148
+ if (!u || !g && n.highlightedValue === u)
149
+ return n;
150
+ if (C(u, e, t) && (!i(u, l.indexOf(u)) || h))
151
+ return {
152
+ ...n,
153
+ highlightedValue: u
154
+ };
155
+ u = a(u, 1, r);
156
+ }
157
+ return n;
158
+ }
159
+ function M(n, e, r, l) {
160
+ const {
161
+ itemComparer: i,
162
+ focusManagement: h
163
+ } = l;
164
+ let t = null;
165
+ r.highlightedValue != null ? t = n.find((s) => i(s, r.highlightedValue)) ?? null : h === "DOM" && e.length === 0 && (t = a(null, "reset", l));
166
+ const u = (r.selectedValues ?? []).filter((s) => n.some((o) => i(o, s)));
167
+ return {
168
+ ...r,
169
+ highlightedValue: t,
170
+ selectedValues: u
171
+ };
172
+ }
173
+ function S(n, e) {
174
+ return {
175
+ ...n,
176
+ highlightedValue: a(null, "reset", e)
177
+ };
178
+ }
179
+ function L(n, e) {
180
+ return {
181
+ ...n,
182
+ highlightedValue: a(null, "end", e)
183
+ };
184
+ }
185
+ function A(n, e) {
186
+ return {
187
+ ...n,
188
+ selectedValues: [],
189
+ highlightedValue: a(null, "reset", e)
190
+ };
191
+ }
192
+ function H(n, e) {
193
+ const {
194
+ type: r,
195
+ context: l
196
+ } = e;
197
+ switch (r) {
198
+ case f.keyDown:
199
+ return p(e.key, n, l);
200
+ case f.itemClick:
201
+ return m(e.item, n, l);
202
+ case f.blur:
203
+ return k(n, l);
204
+ case f.textNavigation:
205
+ return D(n, e.searchString, l);
206
+ case f.itemsChange:
207
+ return M(e.items, e.previousItems, n, l);
208
+ case f.resetHighlight:
209
+ return S(n, l);
210
+ case f.highlightLast:
211
+ return L(n, l);
212
+ case f.clearSelection:
213
+ return A(n, l);
214
+ default:
215
+ return n;
216
+ }
217
+ }
218
+ export {
219
+ m as handleItemSelection,
220
+ H as listReducer,
221
+ a as moveHighlight,
222
+ v as toggleSelection
223
+ };
@@ -1 +1,150 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),f=require("./listActions.types.js"),H=require("./listReducer.js"),ee=require("../utils/useControllableReducer.js"),_=require("../utils/areArraysEqual.js"),te=require("../utils/useTextNavigation.js"),se=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js"),ne=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js");function ie(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const g=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(a,l,g.get?g:{enumerable:!0,get:()=>n[l]})}}return a.default=n,Object.freeze(a)}const r=ie($),j={},oe=()=>{},re=(n,a)=>n===a,ce=()=>!1,ue=n=>typeof n=="string"?n:String(n),ae=()=>({highlightedValue:null,selectedValues:[]});function le(n){const{controlledProps:a=j,disabledItemsFocusable:l=!1,disableListWrap:g=!1,focusManagement:o="activeDescendant",getInitialState:x=ae,getItemDomElement:p,getItemId:L,isItemDisabled:O=ce,rootRef:B,onStateChange:m=oe,items:d,itemComparer:c=re,getItemAsString:k=ue,onChange:y,onHighlightChange:b,onItemsChange:D,orientation:R="vertical",pageSize:C=5,reducerActionContext:E=j,selectionMode:S="single",stateReducer:K,componentName:z="useList"}=n;if(process.env.NODE_ENV!=="production"){if(o==="DOM"&&p==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(o==="activeDescendant"&&L==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const q=r.useRef(null),P=se(B,q),w=r.useCallback((t,e,s)=>{var i;b==null||b(t,e,s),o==="DOM"&&e!=null&&(s===f.ListActionTypes.itemClick||s===f.ListActionTypes.keyDown||s===f.ListActionTypes.textNavigation)&&((i=p==null?void 0:p(e))==null||i.focus())},[p,b,o]),T=r.useMemo(()=>({highlightedValue:c,selectedValues:(t,e)=>_.areArraysEqual(t,e,c)}),[c]),F=r.useCallback((t,e,s,i,A)=>{switch(m==null||m(t,e,s,i,A),e){case"highlightedValue":w(t,s,i);break;case"selectedValues":y==null||y(t,s,i);break}},[w,y,m]),V=r.useMemo(()=>({disabledItemsFocusable:l,disableListWrap:g,focusManagement:o,isItemDisabled:O,itemComparer:c,items:d,getItemAsString:k,onHighlightChange:w,orientation:R,pageSize:C,selectionMode:S,stateComparers:T}),[l,g,o,O,c,d,k,w,R,C,S,T]),U=x(),G=K??H.listReducer,J=r.useMemo(()=>({...E,...V}),[E,V]),[I,u]=ee.useControllableReducer({reducer:G,actionContext:J,initialState:U,controlledProps:a,stateComparers:T,onStateChange:F,componentName:z}),{highlightedValue:h,selectedValues:N}=I,W=te.useTextNavigation((t,e)=>u({type:f.ListActionTypes.textNavigation,event:e,searchString:t})),M=r.useRef([]);r.useEffect(()=>{_.areArraysEqual(M.current,d,c)||(u({type:f.ListActionTypes.itemsChange,event:null,items:d,previousItems:M.current}),M.current=d,D==null||D(d))},[d,c,u,D]);const Y=t=>e=>{var i;if((i=t.onKeyDown)==null||i.call(t,e),e.defaultMuiPrevented)return;const s=["Home","End","PageUp","PageDown"];R==="vertical"?s.push("ArrowUp","ArrowDown"):s.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&s.push(" ","Enter"),s.includes(e.key)&&e.preventDefault(),u({type:f.ListActionTypes.keyDown,key:e.key,event:e}),W(e)},Q=t=>e=>{var s,i;(s=t.onBlur)==null||s.call(t,e),!e.defaultMuiPrevented&&((i=q.current)!=null&&i.contains(e.relatedTarget)||u({type:f.ListActionTypes.blur,event:e}))},X=(t={})=>{const e=ne(t);return{...t,"aria-activedescendant":o==="activeDescendant"&&h!=null?L(h):void 0,tabIndex:o==="DOM"?-1:0,ref:P,...e,onBlur:Q(e),onKeyDown:Y(e)}},v=r.useCallback(t=>{const e=(N??[]).some(A=>A!=null&&c(t,A)),s=h!=null&&c(t,h);return{focusable:o==="DOM",highlighted:s,selected:e}},[c,N,h,o]),Z=r.useMemo(()=>({dispatch:u,getItemState:v}),[u,v]);return r.useDebugValue({state:I}),{contextValue:Z,dispatch:u,getRootProps:X,rootRef:P,state:I}}exports.useList=le;
1
+ import * as i from "react";
2
+ import { ListActionTypes as l } from "./listActions.types.js";
3
+ import { listReducer as $ } from "./listReducer.js";
4
+ import { useControllableReducer as H } from "../utils/useControllableReducer.js";
5
+ import { areArraysEqual as B } from "../utils/areArraysEqual.js";
6
+ import { useTextNavigation as ee } from "../utils/useTextNavigation.js";
7
+ import te 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";
8
+ import oe 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";
9
+ const q = {}, se = () => {
10
+ }, ne = (a, b) => a === b, ie = () => !1, re = (a) => typeof a == "string" ? a : String(a), ce = () => ({
11
+ highlightedValue: null,
12
+ selectedValues: []
13
+ });
14
+ function pe(a) {
15
+ const {
16
+ controlledProps: b = q,
17
+ disabledItemsFocusable: k = !1,
18
+ disableListWrap: C = !1,
19
+ focusManagement: n = "activeDescendant",
20
+ getInitialState: K = ce,
21
+ getItemDomElement: f,
22
+ getItemId: E,
23
+ isItemDisabled: V = ie,
24
+ rootRef: F,
25
+ onStateChange: m = se,
26
+ items: u,
27
+ itemComparer: r = ne,
28
+ getItemAsString: S = re,
29
+ onChange: g,
30
+ onHighlightChange: p,
31
+ onItemsChange: h,
32
+ orientation: y = "vertical",
33
+ pageSize: A = 5,
34
+ reducerActionContext: O = q,
35
+ selectionMode: T = "single",
36
+ stateReducer: U,
37
+ componentName: _ = "useList"
38
+ } = a;
39
+ if (process.env.NODE_ENV !== "production") {
40
+ if (n === "DOM" && f == null)
41
+ throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");
42
+ if (n === "activeDescendant" && E == null)
43
+ throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.");
44
+ }
45
+ const L = i.useRef(null), N = te(F, L), D = i.useCallback((t, e, o) => {
46
+ var s;
47
+ p == null || p(t, e, o), n === "DOM" && e != null && (o === l.itemClick || o === l.keyDown || o === l.textNavigation) && ((s = f == null ? void 0 : f(e)) == null || s.focus());
48
+ }, [f, p, n]), I = i.useMemo(() => ({
49
+ highlightedValue: r,
50
+ selectedValues: (t, e) => B(t, e, r)
51
+ }), [r]), z = i.useCallback((t, e, o, s, w) => {
52
+ switch (m == null || m(t, e, o, s, w), e) {
53
+ case "highlightedValue":
54
+ D(t, o, s);
55
+ break;
56
+ case "selectedValues":
57
+ g == null || g(t, o, s);
58
+ break;
59
+ }
60
+ }, [D, g, m]), P = i.useMemo(() => ({
61
+ disabledItemsFocusable: k,
62
+ disableListWrap: C,
63
+ focusManagement: n,
64
+ isItemDisabled: V,
65
+ itemComparer: r,
66
+ items: u,
67
+ getItemAsString: S,
68
+ onHighlightChange: D,
69
+ orientation: y,
70
+ pageSize: A,
71
+ selectionMode: T,
72
+ stateComparers: I
73
+ }), [k, C, n, V, r, u, S, D, y, A, T, I]), G = K(), J = U ?? $, W = i.useMemo(() => ({
74
+ ...O,
75
+ ...P
76
+ }), [O, P]), [R, c] = H({
77
+ reducer: J,
78
+ actionContext: W,
79
+ initialState: G,
80
+ controlledProps: b,
81
+ stateComparers: I,
82
+ onStateChange: z,
83
+ componentName: _
84
+ }), {
85
+ highlightedValue: d,
86
+ selectedValues: v
87
+ } = R, Y = ee((t, e) => c({
88
+ type: l.textNavigation,
89
+ event: e,
90
+ searchString: t
91
+ })), M = i.useRef([]);
92
+ i.useEffect(() => {
93
+ B(M.current, u, r) || (c({
94
+ type: l.itemsChange,
95
+ event: null,
96
+ items: u,
97
+ previousItems: M.current
98
+ }), M.current = u, h == null || h(u));
99
+ }, [u, r, c, h]);
100
+ const j = (t) => (e) => {
101
+ var s;
102
+ if ((s = t.onKeyDown) == null || s.call(t, e), e.defaultMuiPrevented)
103
+ return;
104
+ const o = ["Home", "End", "PageUp", "PageDown"];
105
+ y === "vertical" ? o.push("ArrowUp", "ArrowDown") : o.push("ArrowLeft", "ArrowRight"), n === "activeDescendant" && o.push(" ", "Enter"), o.includes(e.key) && e.preventDefault(), c({
106
+ type: l.keyDown,
107
+ key: e.key,
108
+ event: e
109
+ }), Y(e);
110
+ }, Q = (t) => (e) => {
111
+ var o, s;
112
+ (o = t.onBlur) == null || o.call(t, e), !e.defaultMuiPrevented && ((s = L.current) != null && s.contains(e.relatedTarget) || c({
113
+ type: l.blur,
114
+ event: e
115
+ }));
116
+ }, X = (t = {}) => {
117
+ const e = oe(t);
118
+ return {
119
+ ...t,
120
+ "aria-activedescendant": n === "activeDescendant" && d != null ? E(d) : void 0,
121
+ tabIndex: n === "DOM" ? -1 : 0,
122
+ ref: N,
123
+ ...e,
124
+ onBlur: Q(e),
125
+ onKeyDown: j(e)
126
+ };
127
+ }, x = i.useCallback((t) => {
128
+ const e = (v ?? []).some((w) => w != null && r(t, w)), o = d != null && r(t, d);
129
+ return {
130
+ focusable: n === "DOM",
131
+ highlighted: o,
132
+ selected: e
133
+ };
134
+ }, [r, v, d, n]), Z = i.useMemo(() => ({
135
+ dispatch: c,
136
+ getItemState: x
137
+ }), [c, x]);
138
+ return i.useDebugValue({
139
+ state: R
140
+ }), {
141
+ contextValue: Z,
142
+ dispatch: c,
143
+ getRootProps: X,
144
+ rootRef: N,
145
+ state: R
146
+ };
147
+ }
148
+ export {
149
+ pe as useList
150
+ };
@@ -1,3 +1,61 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),p=require("./listActions.types.js"),b=require("./ListContext.js"),y=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js");function O(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return o.default=n,Object.freeze(o)}const u=O(v);function C(n){const{handlePointerOverEvents:o=!1,item:e}=n,r=u.useContext(b.ListContext);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:c,getItemState:a}=r,{highlighted:d,selected:l,focusable:m}=a(e),h=u.useCallback(t=>i=>{var s;if((s=t.onClick)==null||s.call(t,i),!i.defaultPrevented){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
2
- `));c({type:p.ListActionTypes.itemClick,item:e,event:i})}},[c,e]),g=u.useCallback(t=>i=>{var s;if((s=t.onMouseOver)==null||s.call(t,i),!i.defaultPrevented){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
3
- `));c({type:p.ListActionTypes.itemHover,item:e,event:i})}},[c,e]);let f;return m&&(f=d?0:-1),{getRootProps:(t={})=>{const i=y(t);return{...t,onClick:h(i),onPointerOver:o?g(i):void 0,tabIndex:f}},highlighted:d,selected:l}}exports.useListItem=C;
1
+ import * as r from "react";
2
+ import { ListActionTypes as c } from "./listActions.types.js";
3
+ import { ListContext as g } from "./ListContext.js";
4
+ import l 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";
5
+ function P(f) {
6
+ const {
7
+ handlePointerOverEvents: m = !1,
8
+ item: i
9
+ } = f, s = r.useContext(g);
10
+ if (!s)
11
+ throw new Error("useListItem must be used within a ListProvider");
12
+ const {
13
+ dispatch: n,
14
+ getItemState: p
15
+ } = s, {
16
+ highlighted: d,
17
+ selected: h,
18
+ focusable: v
19
+ } = p(i), a = r.useCallback((e) => (t) => {
20
+ var o;
21
+ if ((o = e.onClick) == null || o.call(e, t), !t.defaultPrevented) {
22
+ if (process.env.NODE_ENV !== "production" && i === void 0)
23
+ throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
24
+ `));
25
+ n({
26
+ type: c.itemClick,
27
+ item: i,
28
+ event: t
29
+ });
30
+ }
31
+ }, [n, i]), E = r.useCallback((e) => (t) => {
32
+ var o;
33
+ if ((o = e.onMouseOver) == null || o.call(e, t), !t.defaultPrevented) {
34
+ if (process.env.NODE_ENV !== "production" && i === void 0)
35
+ throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
36
+ `));
37
+ n({
38
+ type: c.itemHover,
39
+ item: i,
40
+ event: t
41
+ });
42
+ }
43
+ }, [n, i]);
44
+ let u;
45
+ return v && (u = d ? 0 : -1), {
46
+ getRootProps: (e = {}) => {
47
+ const t = l(e);
48
+ return {
49
+ ...e,
50
+ onClick: a(t),
51
+ onPointerOver: m ? E(t) : void 0,
52
+ tabIndex: u
53
+ };
54
+ },
55
+ highlighted: d,
56
+ selected: h
57
+ };
58
+ }
59
+ export {
60
+ P as useListItem
61
+ };
@@ -1 +1,63 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),d=require("../utils/combineHooksSlotProps.js"),D=require("../useList/useListItem.js"),I=require("../useButton/useButton.js"),j=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useId/useId.js"),w=require("../useCompound/useCompoundItem.js"),M=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js"),v=require("../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js");function H(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>o[n]})}}return e.default=o,Object.freeze(e)}const f=H(k);function B(o){const{value:e,label:n,disabled:s,rootRef:p,id:m}=o,{getRootProps:b,highlighted:g,selected:i}=D.useListItem({item:e}),{getRootProps:P,rootRef:R}=I.useButton({disabled:s,focusableWhenDisabled:!0}),c=j(m),l=f.useRef(null),O=f.useMemo(()=>({disabled:s,label:n,value:e,ref:l,id:c}),[s,n,e,c]),{index:y}=w.useCompoundItem(e,O),a=M(p,l,R),q=t=>r=>{var u;(u=t.onKeyDown)==null||u.call(t,r),!r.defaultMuiPrevented&&[" ","Enter"].includes(r.key)&&(r.defaultMuiPrevented=!0)},S=(t={})=>({onKeyDown:q(t)});return{getRootProps:(t={})=>{const r=v(t),u=d.combineHooksSlotProps(b,d.combineHooksSlotProps(P,S));return{...t,...r,...u(r),id:c,ref:a,role:"option","aria-selected":i}},highlighted:g,index:y,selected:i,rootRef:a}}exports.useOption=B;
1
+ import * as c from "react";
2
+ import { combineHooksSlotProps as p } from "../utils/combineHooksSlotProps.js";
3
+ import { useListItem as k } from "../useList/useListItem.js";
4
+ import { useButton as x } from "../useButton/useButton.js";
5
+ import E 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";
6
+ import { useCompoundItem as K } from "../useCompound/useCompoundItem.js";
7
+ import M 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";
8
+ import O 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";
9
+ function S(d) {
10
+ const {
11
+ value: t,
12
+ label: i,
13
+ disabled: r,
14
+ rootRef: a,
15
+ id: l
16
+ } = d, {
17
+ getRootProps: R,
18
+ highlighted: P,
19
+ selected: m
20
+ } = k({
21
+ item: t
22
+ }), {
23
+ getRootProps: g,
24
+ rootRef: b
25
+ } = x({
26
+ disabled: r,
27
+ focusableWhenDisabled: !0
28
+ }), s = E(l), u = c.useRef(null), w = c.useMemo(() => ({
29
+ disabled: r,
30
+ label: i,
31
+ value: t,
32
+ ref: u,
33
+ id: s
34
+ }), [r, i, t, s]), {
35
+ index: y
36
+ } = K(t, w), f = M(a, u, b), D = (o) => (e) => {
37
+ var n;
38
+ (n = o.onKeyDown) == null || n.call(o, e), !e.defaultMuiPrevented && [" ", "Enter"].includes(e.key) && (e.defaultMuiPrevented = !0);
39
+ }, I = (o = {}) => ({
40
+ onKeyDown: D(o)
41
+ });
42
+ return {
43
+ getRootProps: (o = {}) => {
44
+ const e = O(o), n = p(R, p(g, I));
45
+ return {
46
+ ...o,
47
+ ...e,
48
+ ...n(e),
49
+ id: s,
50
+ ref: f,
51
+ role: "option",
52
+ "aria-selected": m
53
+ };
54
+ },
55
+ highlighted: P,
56
+ index: y,
57
+ selected: m,
58
+ rootRef: f
59
+ };
60
+ }
61
+ export {
62
+ S as useOption
63
+ };
@@ -1 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),p=require("../useList/ListContext.js");function f(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const i=f(l);function b(t){const e=i.useContext(p.ListContext);if(!e)throw new Error("Option: ListContext was not found.");const{getItemState:o,dispatch:n}=e,{highlighted:r,selected:s,focusable:a}=o(t),c=i.useCallback(u=>{if(u!==t)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:r,selected:s,focusable:a}},[r,s,a,t]);return{contextValue:i.useMemo(()=>({dispatch:n,getItemState:c}),[n,c])}}exports.useOptionContextStabilizer=b;
1
+ import * as e from "react";
2
+ import { ListContext as p } from "../useList/ListContext.js";
3
+ function m(t) {
4
+ const o = e.useContext(p);
5
+ if (!o)
6
+ throw new Error("Option: ListContext was not found.");
7
+ const {
8
+ getItemState: c,
9
+ dispatch: n
10
+ } = o, {
11
+ highlighted: i,
12
+ selected: s,
13
+ focusable: a
14
+ } = c(t), r = e.useCallback((l) => {
15
+ if (l !== t)
16
+ throw new Error(["Base UI Option: Tried to access the state of another Option.", "This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));
17
+ return {
18
+ highlighted: i,
19
+ selected: s,
20
+ focusable: a
21
+ };
22
+ }, [i, s, a, t]);
23
+ return {
24
+ contextValue: e.useMemo(() => ({
25
+ dispatch: n,
26
+ getItemState: r
27
+ }), [n, r])
28
+ };
29
+ }
30
+ export {
31
+ m as useOptionContextStabilizer
32
+ };
@@ -1 +1,34 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),p=require("../useList/ListContext.js"),s=require("../../../../../../../_virtual/jsx-runtime.js"),x=require("../useCompound/useCompoundParent.js");function f(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const a=f(m);function g(e){const{value:o,children:t}=e,{dispatch:n,getItemIndex:r,getItemState:u,registerItem:c,totalSubitemCount:i}=o,l=a.useMemo(()=>({dispatch:n,getItemState:u,getItemIndex:r}),[n,r,u]),d=a.useMemo(()=>({getItemIndex:r,registerItem:c,totalSubitemCount:i}),[c,r,i]);return s.jsxRuntimeExports.jsx(x.CompoundComponentContext.Provider,{value:d,children:s.jsxRuntimeExports.jsx(p.ListContext.Provider,{value:l,children:t})})}exports.SelectProvider=g;
1
+ import * as m from "react";
2
+ import { ListContext as p } from "../useList/ListContext.js";
3
+ import { j as i } from "../../../../../../../_virtual/jsx-runtime.js";
4
+ import { CompoundComponentContext as d } from "../useCompound/useCompoundParent.js";
5
+ function f(s) {
6
+ const {
7
+ value: u,
8
+ children: c
9
+ } = s, {
10
+ dispatch: e,
11
+ getItemIndex: t,
12
+ getItemState: o,
13
+ registerItem: n,
14
+ totalSubitemCount: r
15
+ } = u, a = m.useMemo(() => ({
16
+ dispatch: e,
17
+ getItemState: o,
18
+ getItemIndex: t
19
+ }), [e, t, o]), l = m.useMemo(() => ({
20
+ getItemIndex: t,
21
+ registerItem: n,
22
+ totalSubitemCount: r
23
+ }), [n, t, r]);
24
+ return /* @__PURE__ */ i.jsx(d.Provider, {
25
+ value: l,
26
+ children: /* @__PURE__ */ i.jsx(p.Provider, {
27
+ value: a,
28
+ children: c
29
+ })
30
+ });
31
+ }
32
+ export {
33
+ f as SelectProvider
34
+ };
@@ -1 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=t=>{const{label:e,value:r}=t;return typeof e=="string"?e:typeof r=="string"?r:String(t)};exports.defaultOptionStringifier=i;
1
+ const n = (t) => {
2
+ const {
3
+ label: r,
4
+ value: e
5
+ } = t;
6
+ return typeof r == "string" ? r : typeof e == "string" ? e : String(t);
7
+ };
8
+ export {
9
+ n as defaultOptionStringifier
10
+ };
@@ -1 +1,65 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./useSelect.types.js"),r=require("../useList/listReducer.js"),n=require("../useList/listActions.types.js");function c(t,e){const{open:i}=t,{context:{selectionMode:u}}=e;if(e.type===s.SelectActionTypes.buttonClick){const o=t.selectedValues[0]??r.moveHighlight(null,"start",e.context);return{...t,open:!i,highlightedValue:i?null:o}}if(e.type===s.SelectActionTypes.browserAutoFill)return r.handleItemSelection(e.item,t,e.context);const l=r.listReducer(t,e);switch(e.type){case n.ListActionTypes.keyDown:if(t.open){if(e.event.key==="Escape")return{...l,open:!1}}else{if(e.event.key==="ArrowDown")return{...t,open:!0,highlightedValue:t.selectedValues[0]??r.moveHighlight(null,"start",e.context)};if(e.event.key==="ArrowUp")return{...t,open:!0,highlightedValue:t.selectedValues[0]??r.moveHighlight(null,"end",e.context)}}break;case n.ListActionTypes.itemClick:if(u==="single")return{...l,open:!1};break;case n.ListActionTypes.blur:return{...l,open:!1};default:return l}return l}exports.selectReducer=c;
1
+ import { SelectActionTypes as o } from "./useSelect.types.js";
2
+ import { moveHighlight as t, handleItemSelection as p, listReducer as c } from "../useList/listReducer.js";
3
+ import { ListActionTypes as n } from "../useList/listActions.types.js";
4
+ function g(r, e) {
5
+ const {
6
+ open: u
7
+ } = r, {
8
+ context: {
9
+ selectionMode: i
10
+ }
11
+ } = e;
12
+ if (e.type === o.buttonClick) {
13
+ const s = r.selectedValues[0] ?? t(null, "start", e.context);
14
+ return {
15
+ ...r,
16
+ open: !u,
17
+ highlightedValue: u ? null : s
18
+ };
19
+ }
20
+ if (e.type === o.browserAutoFill)
21
+ return p(e.item, r, e.context);
22
+ const l = c(r, e);
23
+ switch (e.type) {
24
+ case n.keyDown:
25
+ if (r.open) {
26
+ if (e.event.key === "Escape")
27
+ return {
28
+ ...l,
29
+ open: !1
30
+ };
31
+ } else {
32
+ if (e.event.key === "ArrowDown")
33
+ return {
34
+ ...r,
35
+ open: !0,
36
+ highlightedValue: r.selectedValues[0] ?? t(null, "start", e.context)
37
+ };
38
+ if (e.event.key === "ArrowUp")
39
+ return {
40
+ ...r,
41
+ open: !0,
42
+ highlightedValue: r.selectedValues[0] ?? t(null, "end", e.context)
43
+ };
44
+ }
45
+ break;
46
+ case n.itemClick:
47
+ if (i === "single")
48
+ return {
49
+ ...l,
50
+ open: !1
51
+ };
52
+ break;
53
+ case n.blur:
54
+ return {
55
+ ...l,
56
+ open: !1
57
+ };
58
+ default:
59
+ return l;
60
+ }
61
+ return l;
62
+ }
63
+ export {
64
+ g as selectReducer
65
+ };