@prokodo/ui 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -45
- package/dist/_virtual/_commonjsHelpers.js +6 -3
- package/dist/_virtual/index.js +5 -5
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/react-is.development.js +2 -2
- package/dist/_virtual/react-is.production.min.js +2 -2
- package/dist/assets/images/card_background_primary_1.webp.js +2 -2
- package/dist/assets/images/card_background_primary_2.webp.js +2 -2
- package/dist/assets/images/card_background_primary_3.webp.js +2 -2
- package/dist/assets/images/card_background_primary_4.webp.js +2 -2
- package/dist/assets/images/card_background_secondary_1.webp.js +2 -2
- package/dist/assets/images/card_background_secondary_2.webp.js +2 -2
- package/dist/assets/images/card_background_secondary_3.webp.js +2 -2
- package/dist/assets/images/card_background_secondary_4.webp.js +2 -2
- package/dist/components/accordion/Accordion.js +82 -74
- package/dist/components/accordion/Accordion.module.scss.js +11 -8
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/animated/Animated.js +61 -40
- package/dist/components/animated/Animated.module.scss.js +8 -6
- package/dist/components/animated/index.js +2 -2
- package/dist/components/animatedText/AnimatedText.js +36 -27
- package/dist/components/animatedText/index.js +2 -2
- package/dist/components/avatar/Avatar.js +62 -54
- package/dist/components/avatar/Avatar.module.scss.js +8 -6
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/base-link/BaseLink.js +39 -27
- package/dist/components/base-link/index.js +2 -2
- package/dist/components/button/Button.client.js +100 -0
- package/dist/components/button/Button.js +15 -82
- package/dist/components/button/Button.lazy.js +20 -0
- package/dist/components/button/Button.module.scss.js +8 -6
- package/dist/components/button/Button.server.js +77 -0
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendly/Calendly.js +99 -60
- package/dist/components/calendly/index.js +2 -2
- package/dist/components/card/Card.js +167 -141
- package/dist/components/card/Card.module.scss.js +11 -8
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/Carousel.js +209 -145
- package/dist/components/carousel/Carousel.module.scss.js +8 -6
- package/dist/components/carousel/Carousel.services.js +39 -20
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/chip/Chip.js +44 -36
- package/dist/components/chip/Chip.module.scss.js +8 -6
- package/dist/components/chip/index.js +2 -2
- package/dist/components/datePicker/DatePicker.js +106 -69
- package/dist/components/datePicker/index.js +2 -2
- package/dist/components/dialog/Dialog.js +106 -93
- package/dist/components/dialog/Dialog.module.scss.js +8 -6
- package/dist/components/dialog/index.js +2 -2
- package/dist/components/drawer/Drawer.js +78 -64
- package/dist/components/drawer/Drawer.module.scss.js +20 -14
- package/dist/components/drawer/index.js +4 -4
- package/dist/components/form/Form.js +229 -165
- package/dist/components/form/Form.module.scss.js +8 -6
- package/dist/components/form/FormField.js +63 -60
- package/dist/components/form/FormField.module.scss.js +8 -6
- package/dist/components/form/FormResponse.js +37 -41
- package/dist/components/form/FormResponse.module.scss.js +8 -6
- package/dist/components/form/index.js +4 -4
- package/dist/components/grid/Grid.js +14 -11
- package/dist/components/grid/Grid.module.scss.js +8 -6
- package/dist/components/grid/GridRow.js +20 -17
- package/dist/components/grid/GridRow.module.scss.js +8 -6
- package/dist/components/grid/index.js +4 -4
- package/dist/components/headline/Headline.client.js +85 -0
- package/dist/components/headline/Headline.module.scss.js +8 -6
- package/dist/components/headline/Headline.server.js +73 -0
- package/dist/components/headline/Headline.variants.js +9 -0
- package/dist/components/headline/index.js +4 -3
- package/dist/components/icon/Icon.js +27 -22
- package/dist/components/icon/Icon.module.scss.js +8 -6
- package/dist/components/icon/index.js +3 -3
- package/dist/components/image/Image.js +30 -24
- package/dist/components/image/Image.module.scss.js +8 -6
- package/dist/components/image/index.js +2 -2
- package/dist/components/image-text/ImageText.js +80 -81
- package/dist/components/image-text/ImageText.module.scss.js +8 -6
- package/dist/components/image-text/index.js +2 -2
- package/dist/components/input/Input.js +147 -131
- package/dist/components/input/Input.module.scss.js +11 -8
- package/dist/components/input/InputValidation.js +50 -31
- package/dist/components/input/index.js +2 -2
- package/dist/components/inputOTP/InputOTP.js +90 -57
- package/dist/components/inputOTP/InputOTP.module.scss.js +8 -6
- package/dist/components/inputOTP/index.js +2 -2
- package/dist/components/label/Label.js +64 -63
- package/dist/components/label/Label.module.scss.js +8 -6
- package/dist/components/label/index.js +2 -2
- package/dist/components/link/Link.js +53 -48
- package/dist/components/link/Link.module.scss.js +8 -6
- package/dist/components/link/index.js +2 -2
- package/dist/components/list/List.js +120 -104
- package/dist/components/list/List.module.scss.js +8 -6
- package/dist/components/list/index.js +2 -2
- package/dist/components/loading/Loading.js +21 -20
- package/dist/components/loading/Loading.module.scss.js +11 -8
- package/dist/components/loading/index.js +2 -2
- package/dist/components/lottie/Lottie.js +47 -37
- package/dist/components/lottie/Lottie.module.scss.js +8 -6
- package/dist/components/lottie/LottieAnimations.js +2 -2
- package/dist/components/lottie/index.js +2 -2
- package/dist/components/map/Map.js +59 -42
- package/dist/components/map/index.js +2 -2
- package/dist/components/post-item/PostItem.js +81 -76
- package/dist/components/post-item/PostItem.module.scss.js +8 -6
- package/dist/components/post-item/PostItemAuthor.js +24 -23
- package/dist/components/post-item/PostItemAuthor.module.scss.js +8 -6
- package/dist/components/post-item/index.js +4 -4
- package/dist/components/post-teaser/PostTeaser.js +96 -92
- package/dist/components/post-teaser/PostTeaser.module.scss.js +8 -6
- package/dist/components/post-teaser/index.js +2 -2
- package/dist/components/post-widget/PostWidget.js +81 -80
- package/dist/components/post-widget/PostWidget.module.scss.js +8 -6
- package/dist/components/post-widget/index.js +2 -2
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +96 -90
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.scss.js +8 -6
- package/dist/components/post-widget-carousel/index.js +2 -2
- package/dist/components/quote/Quote.js +48 -47
- package/dist/components/quote/Quote.module.scss.js +8 -6
- package/dist/components/quote/index.js +2 -2
- package/dist/components/rich-text/RichText.js +114 -100
- package/dist/components/rich-text/RichText.module.scss.js +8 -6
- package/dist/components/rich-text/index.js +2 -2
- package/dist/components/select/Select.js +148 -127
- package/dist/components/select/Select.module.scss.js +17 -12
- package/dist/components/select/index.js +2 -2
- package/dist/components/skeleton/Skeleton.js +21 -18
- package/dist/components/skeleton/Skeleton.module.scss.js +8 -6
- package/dist/components/skeleton/index.js +2 -2
- package/dist/components/slider/Slider.js +74 -65
- package/dist/components/slider/Slider.module.scss.js +8 -6
- package/dist/components/slider/index.js +2 -2
- package/dist/components/stepper/Stepper.js +85 -69
- package/dist/components/stepper/Stepper.module.scss.js +8 -6
- package/dist/components/stepper/index.js +2 -2
- package/dist/components/switch/Switch.js +69 -63
- package/dist/components/switch/Switch.module.scss.js +8 -6
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/Table.js +48 -45
- package/dist/components/table/Table.module.scss.js +8 -6
- package/dist/components/table/index.js +2 -2
- package/dist/components/teaser/Teaser.js +66 -65
- package/dist/components/teaser/Teaser.module.scss.js +8 -6
- package/dist/components/teaser/index.js +2 -2
- package/dist/constants/project.js +2 -2
- package/dist/helpers/bem.js +17 -9
- package/dist/helpers/calculation.js +4 -2
- package/dist/helpers/validations.js +12 -6
- package/dist/hooks/useGoogleMaps.js +19 -14
- package/dist/hooks/useHydrationReady.js +26 -0
- package/dist/index.js +84 -84
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +354 -251
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +555 -309
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +221 -141
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +167 -109
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -88
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +91 -77
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/optionClasses.js +10 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +54 -40
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +192 -163
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/selectClasses.js +10 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +287 -242
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/sliderClasses.js +10 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +112 -97
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/switchClasses.js +10 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +135 -115
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/PopupContext.js +6 -4
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/popupClasses.js +10 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/generateUtilityClass/index.js +15 -10
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/generateUtilityClasses/index.js +11 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useButton/useButton.js +160 -73
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useCompound/useCompoundItem.js +25 -18
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useCompound/useCompoundParent.js +63 -36
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/ListContext.js +6 -4
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/listActions.types.js +2 -2
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/listReducer.js +233 -138
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/useList.js +189 -128
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useList/useListItem.js +72 -52
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useOption/useOption.js +72 -53
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useOption/useOptionContextStabilizer.js +30 -22
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +34 -28
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/defaultOptionStringifier.js +15 -7
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/selectReducer.js +49 -40
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/useSelect.js +341 -222
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/useSelect.types.js +2 -2
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSlider/useSlider.js +550 -353
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSwitch/useSwitch.js +79 -50
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useTransition/TransitionContext.js +6 -4
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useTransition/useTransitionTrigger.js +51 -23
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/ClassNameConfigurator.js +21 -10
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/areArraysEqual.js +6 -3
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/combineHooksSlotProps.js +14 -10
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/isHostComponent.js +6 -3
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/resolveComponentProps.js +9 -3
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useControllableReducer.js +91 -60
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useRootElementName.js +20 -12
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/utils/useTextNavigation.js +21 -10
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js +16 -5
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +13 -7
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +11 -5
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/clamp/clamp.js +6 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +19 -11
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/exactProp/exactProp.js +17 -8
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +12 -7
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -2
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.js +11 -5
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js +11 -7
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +6 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +61 -38
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +12 -7
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +6 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +9 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/setRef/setRef.js +10 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useControlled/useControlled.js +31 -22
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +3 -3
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +13 -9
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +17 -9
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useId/useId.js +23 -14
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +30 -23
- package/dist/node_modules/.pnpm/@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +2 -2
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -13
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +67 -38
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +55 -37
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +56 -43
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +404 -243
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +20 -14
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -7
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +11 -4
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +170 -82
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +91 -58
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +17 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/button/Button.client.d.ts +3 -0
- package/dist/types/components/button/Button.d.ts +3 -3
- package/dist/types/components/button/Button.lazy.d.ts +3 -0
- package/dist/types/components/button/Button.server.d.ts +3 -0
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/form/FormResponse.d.ts +1 -1
- package/dist/types/components/headline/Headline.client.d.ts +3 -0
- package/dist/types/components/headline/Headline.model.d.ts +1 -0
- package/dist/types/components/headline/Headline.server.d.ts +3 -0
- package/dist/types/components/headline/Headline.variants.d.ts +2 -0
- package/dist/types/components/headline/index.d.ts +2 -1
- package/dist/types/components/label/Label.d.ts +1 -1
- package/dist/types/hooks/useHydrationReady.d.ts +5 -0
- package/dist/ui.css +9592 -1
- package/package.json +1 -1
- package/dist/components/headline/Headline.js +0 -71
- package/dist/types/components/headline/Headline.d.ts +0 -4
|
@@ -1,223 +1,318 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { ListActionTypes } from "./listActions.types.js";
|
|
4
|
+
function findValidItemToHighlight(currentIndex, lookupDirection, items, includeDisabledItems, isItemDisabled, wrapAround) {
|
|
5
|
+
if (items.length === 0 || !includeDisabledItems && items.every((item, itemIndex) => isItemDisabled(item, itemIndex))) {
|
|
4
6
|
return -1;
|
|
5
|
-
|
|
7
|
+
}
|
|
8
|
+
let nextFocus = currentIndex;
|
|
6
9
|
for (; ; ) {
|
|
7
|
-
if (!
|
|
10
|
+
if (!wrapAround && lookupDirection === "next" && nextFocus === items.length || !wrapAround && lookupDirection === "previous" && nextFocus === -1) {
|
|
8
11
|
return -1;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
}
|
|
13
|
+
const nextFocusDisabled = includeDisabledItems ? false : isItemDisabled(items[nextFocus], nextFocus);
|
|
14
|
+
if (nextFocusDisabled) {
|
|
15
|
+
nextFocus += lookupDirection === "next" ? 1 : -1;
|
|
16
|
+
if (wrapAround) {
|
|
17
|
+
nextFocus = (nextFocus + items.length) % items.length;
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
return nextFocus;
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
|
-
|
|
24
|
+
__name(findValidItemToHighlight, "findValidItemToHighlight");
|
|
25
|
+
function moveHighlight(previouslyHighlightedValue, offset, context) {
|
|
16
26
|
const {
|
|
17
|
-
items
|
|
18
|
-
isItemDisabled
|
|
19
|
-
disableListWrap
|
|
20
|
-
disabledItemsFocusable
|
|
21
|
-
itemComparer
|
|
22
|
-
focusManagement
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
items,
|
|
28
|
+
isItemDisabled,
|
|
29
|
+
disableListWrap,
|
|
30
|
+
disabledItemsFocusable,
|
|
31
|
+
itemComparer,
|
|
32
|
+
focusManagement
|
|
33
|
+
} = context;
|
|
34
|
+
const defaultHighlightedIndex = focusManagement === "DOM" ? 0 : -1;
|
|
35
|
+
const maxIndex = items.length - 1;
|
|
36
|
+
const previouslyHighlightedIndex = previouslyHighlightedValue == null ? -1 : items.findIndex((item) => itemComparer(item, previouslyHighlightedValue));
|
|
37
|
+
let nextIndexCandidate;
|
|
38
|
+
let lookupDirection;
|
|
39
|
+
let wrapAround = !disableListWrap;
|
|
40
|
+
switch (offset) {
|
|
26
41
|
case "reset":
|
|
27
|
-
if (
|
|
42
|
+
if (defaultHighlightedIndex === -1) {
|
|
28
43
|
return null;
|
|
29
|
-
|
|
44
|
+
}
|
|
45
|
+
nextIndexCandidate = 0;
|
|
46
|
+
lookupDirection = "next";
|
|
47
|
+
wrapAround = false;
|
|
30
48
|
break;
|
|
31
49
|
case "start":
|
|
32
|
-
|
|
50
|
+
nextIndexCandidate = 0;
|
|
51
|
+
lookupDirection = "next";
|
|
52
|
+
wrapAround = false;
|
|
33
53
|
break;
|
|
34
54
|
case "end":
|
|
35
|
-
|
|
55
|
+
nextIndexCandidate = maxIndex;
|
|
56
|
+
lookupDirection = "previous";
|
|
57
|
+
wrapAround = false;
|
|
36
58
|
break;
|
|
37
59
|
default: {
|
|
38
|
-
const
|
|
39
|
-
|
|
60
|
+
const newIndex = previouslyHighlightedIndex + offset;
|
|
61
|
+
if (newIndex < 0) {
|
|
62
|
+
if (!wrapAround && previouslyHighlightedIndex !== -1 || Math.abs(offset) > 1) {
|
|
63
|
+
nextIndexCandidate = 0;
|
|
64
|
+
lookupDirection = "next";
|
|
65
|
+
} else {
|
|
66
|
+
nextIndexCandidate = maxIndex;
|
|
67
|
+
lookupDirection = "previous";
|
|
68
|
+
}
|
|
69
|
+
} else if (newIndex > maxIndex) {
|
|
70
|
+
if (!wrapAround || Math.abs(offset) > 1) {
|
|
71
|
+
nextIndexCandidate = maxIndex;
|
|
72
|
+
lookupDirection = "previous";
|
|
73
|
+
} else {
|
|
74
|
+
nextIndexCandidate = 0;
|
|
75
|
+
lookupDirection = "next";
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
nextIndexCandidate = newIndex;
|
|
79
|
+
lookupDirection = offset >= 0 ? "next" : "previous";
|
|
80
|
+
}
|
|
40
81
|
}
|
|
41
82
|
}
|
|
42
|
-
const
|
|
43
|
-
|
|
83
|
+
const nextIndex = findValidItemToHighlight(nextIndexCandidate, lookupDirection, items, disabledItemsFocusable, isItemDisabled, wrapAround);
|
|
84
|
+
if (nextIndex === -1 && previouslyHighlightedValue !== null && !isItemDisabled(previouslyHighlightedValue, previouslyHighlightedIndex)) {
|
|
85
|
+
return previouslyHighlightedValue;
|
|
86
|
+
}
|
|
87
|
+
return items[nextIndex] ?? null;
|
|
44
88
|
}
|
|
45
|
-
|
|
46
|
-
|
|
89
|
+
__name(moveHighlight, "moveHighlight");
|
|
90
|
+
function toggleSelection(item, selectedValues, selectionMode, itemComparer) {
|
|
91
|
+
if (selectionMode === "none") {
|
|
92
|
+
return [];
|
|
93
|
+
}
|
|
94
|
+
if (selectionMode === "single") {
|
|
95
|
+
if (itemComparer(selectedValues[0], item)) {
|
|
96
|
+
return selectedValues;
|
|
97
|
+
}
|
|
98
|
+
return [item];
|
|
99
|
+
}
|
|
100
|
+
if (selectedValues.some((sv) => itemComparer(sv, item))) {
|
|
101
|
+
return selectedValues.filter((sv) => !itemComparer(sv, item));
|
|
102
|
+
}
|
|
103
|
+
return [...selectedValues, item];
|
|
47
104
|
}
|
|
48
|
-
|
|
105
|
+
__name(toggleSelection, "toggleSelection");
|
|
106
|
+
function handleItemSelection(item, state, context) {
|
|
107
|
+
const {
|
|
108
|
+
itemComparer,
|
|
109
|
+
isItemDisabled,
|
|
110
|
+
selectionMode,
|
|
111
|
+
items
|
|
112
|
+
} = context;
|
|
49
113
|
const {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (i(n, u))
|
|
58
|
-
return e;
|
|
59
|
-
const s = v(n, g, h, l);
|
|
114
|
+
selectedValues
|
|
115
|
+
} = state;
|
|
116
|
+
const itemIndex = items.findIndex((i) => itemComparer(item, i));
|
|
117
|
+
if (isItemDisabled(item, itemIndex)) {
|
|
118
|
+
return state;
|
|
119
|
+
}
|
|
120
|
+
const newSelectedValues = toggleSelection(item, selectedValues, selectionMode, itemComparer);
|
|
60
121
|
return {
|
|
61
|
-
...
|
|
62
|
-
selectedValues:
|
|
63
|
-
highlightedValue:
|
|
122
|
+
...state,
|
|
123
|
+
selectedValues: newSelectedValues,
|
|
124
|
+
highlightedValue: item
|
|
64
125
|
};
|
|
65
126
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
127
|
+
__name(handleItemSelection, "handleItemSelection");
|
|
128
|
+
function handleKeyDown(key, state, context) {
|
|
129
|
+
const previouslySelectedValue = state.highlightedValue;
|
|
130
|
+
const {
|
|
131
|
+
orientation,
|
|
132
|
+
pageSize
|
|
133
|
+
} = context;
|
|
134
|
+
switch (key) {
|
|
72
135
|
case "Home":
|
|
73
136
|
return {
|
|
74
|
-
...
|
|
75
|
-
highlightedValue:
|
|
137
|
+
...state,
|
|
138
|
+
highlightedValue: moveHighlight(previouslySelectedValue, "start", context)
|
|
76
139
|
};
|
|
77
140
|
case "End":
|
|
78
141
|
return {
|
|
79
|
-
...
|
|
80
|
-
highlightedValue:
|
|
142
|
+
...state,
|
|
143
|
+
highlightedValue: moveHighlight(previouslySelectedValue, "end", context)
|
|
81
144
|
};
|
|
82
145
|
case "PageUp":
|
|
83
146
|
return {
|
|
84
|
-
...
|
|
85
|
-
highlightedValue:
|
|
147
|
+
...state,
|
|
148
|
+
highlightedValue: moveHighlight(previouslySelectedValue, -pageSize, context)
|
|
86
149
|
};
|
|
87
150
|
case "PageDown":
|
|
88
151
|
return {
|
|
89
|
-
...
|
|
90
|
-
highlightedValue:
|
|
152
|
+
...state,
|
|
153
|
+
highlightedValue: moveHighlight(previouslySelectedValue, pageSize, context)
|
|
91
154
|
};
|
|
92
155
|
case "ArrowUp":
|
|
93
|
-
if (
|
|
156
|
+
if (orientation !== "vertical") {
|
|
94
157
|
break;
|
|
158
|
+
}
|
|
95
159
|
return {
|
|
96
|
-
...
|
|
97
|
-
highlightedValue:
|
|
160
|
+
...state,
|
|
161
|
+
highlightedValue: moveHighlight(previouslySelectedValue, -1, context)
|
|
98
162
|
};
|
|
99
163
|
case "ArrowDown":
|
|
100
|
-
if (
|
|
164
|
+
if (orientation !== "vertical") {
|
|
101
165
|
break;
|
|
166
|
+
}
|
|
102
167
|
return {
|
|
103
|
-
...
|
|
104
|
-
highlightedValue:
|
|
168
|
+
...state,
|
|
169
|
+
highlightedValue: moveHighlight(previouslySelectedValue, 1, context)
|
|
105
170
|
};
|
|
106
171
|
case "ArrowLeft": {
|
|
107
|
-
if (
|
|
172
|
+
if (orientation === "vertical") {
|
|
108
173
|
break;
|
|
174
|
+
}
|
|
175
|
+
const offset = orientation === "horizontal-ltr" ? -1 : 1;
|
|
109
176
|
return {
|
|
110
|
-
...
|
|
111
|
-
highlightedValue:
|
|
177
|
+
...state,
|
|
178
|
+
highlightedValue: moveHighlight(previouslySelectedValue, offset, context)
|
|
112
179
|
};
|
|
113
180
|
}
|
|
114
181
|
case "ArrowRight": {
|
|
115
|
-
if (
|
|
182
|
+
if (orientation === "vertical") {
|
|
116
183
|
break;
|
|
184
|
+
}
|
|
185
|
+
const offset = orientation === "horizontal-ltr" ? 1 : -1;
|
|
117
186
|
return {
|
|
118
|
-
...
|
|
119
|
-
highlightedValue:
|
|
187
|
+
...state,
|
|
188
|
+
highlightedValue: moveHighlight(previouslySelectedValue, offset, context)
|
|
120
189
|
};
|
|
121
190
|
}
|
|
122
191
|
case "Enter":
|
|
123
192
|
case " ":
|
|
124
|
-
|
|
193
|
+
if (state.highlightedValue === null) {
|
|
194
|
+
return state;
|
|
195
|
+
}
|
|
196
|
+
return handleItemSelection(state.highlightedValue, state, context);
|
|
125
197
|
}
|
|
126
|
-
return
|
|
198
|
+
return state;
|
|
127
199
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
200
|
+
__name(handleKeyDown, "handleKeyDown");
|
|
201
|
+
function handleBlur(state, context) {
|
|
202
|
+
if (context.focusManagement === "DOM") {
|
|
203
|
+
return state;
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
...state,
|
|
131
207
|
highlightedValue: null
|
|
132
208
|
};
|
|
133
209
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
210
|
+
__name(handleBlur, "handleBlur");
|
|
211
|
+
function textCriteriaMatches(nextFocus, searchString, stringifyItem) {
|
|
212
|
+
var _a;
|
|
213
|
+
const text = (_a = stringifyItem(nextFocus)) == null ? void 0 : _a.trim().toLowerCase();
|
|
214
|
+
if (!text || text.length === 0) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
return text.startsWith(searchString);
|
|
138
218
|
}
|
|
139
|
-
|
|
219
|
+
__name(textCriteriaMatches, "textCriteriaMatches");
|
|
220
|
+
function handleTextNavigation(state, searchString, context) {
|
|
140
221
|
const {
|
|
141
|
-
items
|
|
142
|
-
isItemDisabled
|
|
143
|
-
disabledItemsFocusable
|
|
144
|
-
getItemAsString
|
|
145
|
-
} =
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
222
|
+
items,
|
|
223
|
+
isItemDisabled,
|
|
224
|
+
disabledItemsFocusable,
|
|
225
|
+
getItemAsString
|
|
226
|
+
} = context;
|
|
227
|
+
const startWithCurrentItem = searchString.length > 1;
|
|
228
|
+
let nextItem = startWithCurrentItem ? state.highlightedValue : moveHighlight(state.highlightedValue, 1, context);
|
|
229
|
+
for (let index = 0; index < items.length; index += 1) {
|
|
230
|
+
if (!nextItem || !startWithCurrentItem && state.highlightedValue === nextItem) {
|
|
231
|
+
return state;
|
|
232
|
+
}
|
|
233
|
+
if (textCriteriaMatches(nextItem, searchString, getItemAsString) && (!isItemDisabled(nextItem, items.indexOf(nextItem)) || disabledItemsFocusable)) {
|
|
151
234
|
return {
|
|
152
|
-
...
|
|
153
|
-
highlightedValue:
|
|
235
|
+
...state,
|
|
236
|
+
highlightedValue: nextItem
|
|
154
237
|
};
|
|
155
|
-
|
|
238
|
+
}
|
|
239
|
+
nextItem = moveHighlight(nextItem, 1, context);
|
|
156
240
|
}
|
|
157
|
-
return
|
|
241
|
+
return state;
|
|
158
242
|
}
|
|
159
|
-
|
|
243
|
+
__name(handleTextNavigation, "handleTextNavigation");
|
|
244
|
+
function handleItemsChange(items, previousItems, state, context) {
|
|
160
245
|
const {
|
|
161
|
-
itemComparer
|
|
162
|
-
focusManagement
|
|
163
|
-
} =
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
|
|
246
|
+
itemComparer,
|
|
247
|
+
focusManagement
|
|
248
|
+
} = context;
|
|
249
|
+
let newHighlightedValue = null;
|
|
250
|
+
if (state.highlightedValue != null) {
|
|
251
|
+
newHighlightedValue = items.find((item) => itemComparer(item, state.highlightedValue)) ?? null;
|
|
252
|
+
} else if (focusManagement === "DOM" && previousItems.length === 0) {
|
|
253
|
+
newHighlightedValue = moveHighlight(null, "reset", context);
|
|
254
|
+
}
|
|
255
|
+
const selectedValues = state.selectedValues ?? [];
|
|
256
|
+
const newSelectedValues = selectedValues.filter((selectedValue) => items.some((item) => itemComparer(item, selectedValue)));
|
|
167
257
|
return {
|
|
168
|
-
...
|
|
169
|
-
highlightedValue:
|
|
170
|
-
selectedValues:
|
|
258
|
+
...state,
|
|
259
|
+
highlightedValue: newHighlightedValue,
|
|
260
|
+
selectedValues: newSelectedValues
|
|
171
261
|
};
|
|
172
262
|
}
|
|
173
|
-
|
|
263
|
+
__name(handleItemsChange, "handleItemsChange");
|
|
264
|
+
function handleResetHighlight(state, context) {
|
|
174
265
|
return {
|
|
175
|
-
...
|
|
176
|
-
highlightedValue:
|
|
266
|
+
...state,
|
|
267
|
+
highlightedValue: moveHighlight(null, "reset", context)
|
|
177
268
|
};
|
|
178
269
|
}
|
|
179
|
-
|
|
270
|
+
__name(handleResetHighlight, "handleResetHighlight");
|
|
271
|
+
function handleHighlightLast(state, context) {
|
|
180
272
|
return {
|
|
181
|
-
...
|
|
182
|
-
highlightedValue:
|
|
273
|
+
...state,
|
|
274
|
+
highlightedValue: moveHighlight(null, "end", context)
|
|
183
275
|
};
|
|
184
276
|
}
|
|
185
|
-
|
|
277
|
+
__name(handleHighlightLast, "handleHighlightLast");
|
|
278
|
+
function handleClearSelection(state, context) {
|
|
186
279
|
return {
|
|
187
|
-
...
|
|
280
|
+
...state,
|
|
188
281
|
selectedValues: [],
|
|
189
|
-
highlightedValue:
|
|
282
|
+
highlightedValue: moveHighlight(null, "reset", context)
|
|
190
283
|
};
|
|
191
284
|
}
|
|
192
|
-
|
|
285
|
+
__name(handleClearSelection, "handleClearSelection");
|
|
286
|
+
function listReducer(state, action) {
|
|
193
287
|
const {
|
|
194
|
-
type
|
|
195
|
-
context
|
|
196
|
-
} =
|
|
197
|
-
switch (
|
|
198
|
-
case
|
|
199
|
-
return
|
|
200
|
-
case
|
|
201
|
-
return
|
|
202
|
-
case
|
|
203
|
-
return
|
|
204
|
-
case
|
|
205
|
-
return
|
|
206
|
-
case
|
|
207
|
-
return
|
|
208
|
-
case
|
|
209
|
-
return
|
|
210
|
-
case
|
|
211
|
-
return
|
|
212
|
-
case
|
|
213
|
-
return
|
|
288
|
+
type,
|
|
289
|
+
context
|
|
290
|
+
} = action;
|
|
291
|
+
switch (type) {
|
|
292
|
+
case ListActionTypes.keyDown:
|
|
293
|
+
return handleKeyDown(action.key, state, context);
|
|
294
|
+
case ListActionTypes.itemClick:
|
|
295
|
+
return handleItemSelection(action.item, state, context);
|
|
296
|
+
case ListActionTypes.blur:
|
|
297
|
+
return handleBlur(state, context);
|
|
298
|
+
case ListActionTypes.textNavigation:
|
|
299
|
+
return handleTextNavigation(state, action.searchString, context);
|
|
300
|
+
case ListActionTypes.itemsChange:
|
|
301
|
+
return handleItemsChange(action.items, action.previousItems, state, context);
|
|
302
|
+
case ListActionTypes.resetHighlight:
|
|
303
|
+
return handleResetHighlight(state, context);
|
|
304
|
+
case ListActionTypes.highlightLast:
|
|
305
|
+
return handleHighlightLast(state, context);
|
|
306
|
+
case ListActionTypes.clearSelection:
|
|
307
|
+
return handleClearSelection(state, context);
|
|
214
308
|
default:
|
|
215
|
-
return
|
|
309
|
+
return state;
|
|
216
310
|
}
|
|
217
311
|
}
|
|
312
|
+
__name(listReducer, "listReducer");
|
|
218
313
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
314
|
+
handleItemSelection,
|
|
315
|
+
listReducer,
|
|
316
|
+
moveHighlight,
|
|
317
|
+
toggleSelection
|
|
223
318
|
};
|