@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.
- package/README.md +2 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -1
- package/dist/_virtual/index.js +7 -1
- package/dist/_virtual/index2.js +4 -1
- package/dist/_virtual/index3.js +4 -1
- package/dist/_virtual/jsx-runtime.js +5 -1
- package/dist/_virtual/jsx-runtime2.js +4 -1
- package/dist/_virtual/react-is.development.js +4 -1
- package/dist/_virtual/react-is.production.min.js +4 -1
- package/dist/_virtual/react-jsx-runtime.development.js +4 -1
- package/dist/_virtual/react-jsx-runtime.production.js +4 -1
- package/dist/assets/images/card_background_primary_1.webp.js +4 -1
- package/dist/assets/images/card_background_primary_2.webp.js +4 -1
- package/dist/assets/images/card_background_primary_3.webp.js +4 -1
- package/dist/assets/images/card_background_primary_4.webp.js +4 -1
- package/dist/assets/images/card_background_secondary_1.webp.js +4 -1
- package/dist/assets/images/card_background_secondary_2.webp.js +4 -1
- package/dist/assets/images/card_background_secondary_3.webp.js +4 -1
- package/dist/assets/images/card_background_secondary_4.webp.js +4 -1
- package/dist/components/accordion/Accordion.js +115 -1
- package/dist/components/accordion/Accordion.module.scss.js +23 -1
- package/dist/components/accordion/index.js +4 -1
- package/dist/components/animated/Animated.js +53 -1
- package/dist/components/animated/Animated.module.scss.js +18 -1
- package/dist/components/animated/index.js +4 -1
- package/dist/components/animatedText/AnimatedText.js +31 -1
- package/dist/components/animatedText/index.js +4 -1
- package/dist/components/avatar/Avatar.js +78 -1
- package/dist/components/avatar/Avatar.module.scss.js +24 -1
- package/dist/components/avatar/index.js +4 -1
- package/dist/components/base-link/BaseLink.js +30 -1
- package/dist/components/base-link/index.js +4 -1
- package/dist/components/button/Button.js +84 -1
- package/dist/components/button/Button.module.scss.js +34 -1
- package/dist/components/button/index.js +4 -1
- package/dist/components/calendly/Calendly.js +82 -1
- package/dist/components/calendly/index.js +4 -1
- package/dist/components/card/Card.js +180 -1
- package/dist/components/card/Card.module.scss.js +38 -1
- package/dist/components/card/index.js +4 -1
- package/dist/components/carousel/Carousel.js +232 -1
- package/dist/components/carousel/Carousel.module.scss.js +21 -1
- package/dist/components/carousel/Carousel.services.js +22 -1
- package/dist/components/carousel/index.js +4 -1
- package/dist/components/chip/Chip.js +61 -1
- package/dist/components/chip/Chip.module.scss.js +26 -1
- package/dist/components/chip/index.js +4 -1
- package/dist/components/datePicker/DatePicker.js +93 -1
- package/dist/components/datePicker/index.js +4 -1
- package/dist/components/dialog/Dialog.js +156 -1
- package/dist/components/dialog/Dialog.module.scss.js +23 -1
- package/dist/components/dialog/index.js +4 -1
- package/dist/components/drawer/Drawer.js +94 -1
- package/dist/components/drawer/Drawer.module.scss.js +37 -1
- package/dist/components/drawer/index.js +6 -1
- package/dist/components/form/Form.js +228 -1
- package/dist/components/form/Form.module.scss.js +13 -1
- package/dist/components/form/FormField.js +96 -1
- package/dist/components/form/FormField.module.scss.js +10 -1
- package/dist/components/form/FormResponse.js +43 -1
- package/dist/components/form/FormResponse.module.scss.js +14 -1
- package/dist/components/form/index.js +6 -1
- package/dist/components/grid/Grid.js +21 -1
- package/dist/components/grid/Grid.module.scss.js +10 -1
- package/dist/components/grid/GridRow.js +29 -1
- package/dist/components/grid/GridRow.module.scss.js +73 -1
- package/dist/components/grid/index.js +6 -1
- package/dist/components/headline/Headline.js +71 -1
- package/dist/components/headline/Headline.module.scss.js +34 -1
- package/dist/components/headline/index.js +5 -1
- package/dist/components/icon/Icon.js +60 -1
- package/dist/components/icon/Icon.module.scss.js +16 -1
- package/dist/components/icon/iconsMap.js +4131 -1
- package/dist/components/icon/index.js +5 -1
- package/dist/components/image/Image.js +29 -1
- package/dist/components/image/Image.module.scss.js +11 -1
- package/dist/components/image/index.js +4 -1
- package/dist/components/image-text/ImageText.js +99 -1
- package/dist/components/image-text/ImageText.module.scss.js +22 -1
- package/dist/components/image-text/index.js +4 -1
- package/dist/components/input/Input.js +189 -1
- package/dist/components/input/Input.module.scss.js +30 -1
- package/dist/components/input/InputValidation.js +52 -1
- package/dist/components/input/index.js +4 -1
- package/dist/components/inputOTP/InputOTP.js +79 -1
- package/dist/components/inputOTP/InputOTP.module.scss.js +16 -1
- package/dist/components/inputOTP/index.js +4 -1
- package/dist/components/label/Label.js +65 -1
- package/dist/components/label/Label.module.scss.js +13 -1
- package/dist/components/label/index.js +4 -1
- package/dist/components/link/Link.js +58 -1
- package/dist/components/link/Link.module.scss.js +18 -1
- package/dist/components/link/index.js +4 -1
- package/dist/components/list/List.js +172 -1
- package/dist/components/list/List.module.scss.js +31 -1
- package/dist/components/list/index.js +4 -1
- package/dist/components/loading/Loading.js +57 -1
- package/dist/components/loading/Loading.module.scss.js +19 -1
- package/dist/components/loading/index.js +4 -1
- package/dist/components/lottie/Lottie.js +55 -1
- package/dist/components/lottie/Lottie.module.scss.js +10 -1
- package/dist/components/lottie/LottieAnimations.js +35 -1
- package/dist/components/lottie/index.js +4 -1
- package/dist/components/map/Map.js +51 -1
- package/dist/components/map/index.js +4 -1
- package/dist/components/post-item/PostItem.js +136 -1
- package/dist/components/post-item/PostItem.module.scss.js +22 -1
- package/dist/components/post-item/PostItemAuthor.js +37 -1
- package/dist/components/post-item/PostItemAuthor.module.scss.js +11 -1
- package/dist/components/post-item/index.js +4 -1
- package/dist/components/post-teaser/PostTeaser.js +168 -1
- package/dist/components/post-teaser/PostTeaser.module.scss.js +25 -1
- package/dist/components/post-teaser/index.js +4 -1
- package/dist/components/post-widget/PostWidget.js +158 -1
- package/dist/components/post-widget/PostWidget.module.scss.js +19 -1
- package/dist/components/post-widget/index.js +4 -1
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +159 -1
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +16 -1
- package/dist/components/post-widget-carousel/index.js +4 -1
- package/dist/components/quote/Quote.js +90 -1
- package/dist/components/quote/Quote.module.scss.js +18 -1
- package/dist/components/quote/index.js +4 -1
- package/dist/components/rich-text/RichText.js +143 -1
- package/dist/components/rich-text/RichText.module.scss.js +16 -1
- package/dist/components/rich-text/index.js +4 -1
- package/dist/components/select/Select.js +199 -1
- package/dist/components/select/Select.module.scss.js +34 -1
- package/dist/components/select/index.js +4 -1
- package/dist/components/skeleton/Skeleton.js +29 -1
- package/dist/components/skeleton/Skeleton.module.scss.js +18 -1
- package/dist/components/skeleton/index.js +4 -1
- package/dist/components/slider/Slider.js +104 -1
- package/dist/components/slider/Slider.module.scss.js +20 -1
- package/dist/components/slider/index.js +4 -1
- package/dist/components/stepper/Stepper.js +119 -1
- package/dist/components/stepper/Stepper.module.scss.js +23 -1
- package/dist/components/stepper/index.js +4 -1
- package/dist/components/switch/Switch.js +102 -1
- package/dist/components/switch/Switch.module.scss.js +30 -1
- package/dist/components/switch/index.js +4 -1
- package/dist/components/table/Table.js +75 -1
- package/dist/components/table/Table.module.scss.js +27 -1
- package/dist/components/table/index.js +4 -1
- package/dist/components/teaser/Teaser.js +102 -1
- package/dist/components/teaser/Teaser.module.scss.js +23 -1
- package/dist/components/teaser/index.js +4 -1
- package/dist/helpers/bem.js +12 -1
- package/dist/helpers/calculation.js +4 -1
- package/dist/helpers/validations.js +8 -1
- package/dist/hooks/useGoogleMaps.js +19 -1
- package/dist/index.js +86 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +353 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +395 -1
- 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
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -1
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +51 -2
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +54 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +52 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +329 -2
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +17 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +7 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +89 -2
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +72 -2
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -1
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +236 -3
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +28 -2
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +10 -1
- package/package.json +2 -4
|
@@ -1 +1,223 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
};
|