@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,79 +1,166 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useRootElementName } from "../utils/useRootElementName.js";
|
|
5
|
+
import useForkRef 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";
|
|
6
|
+
import extractEventHandlers 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";
|
|
7
|
+
import isFocusVisible from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js";
|
|
8
|
+
function useButton(parameters = {}) {
|
|
7
9
|
const {
|
|
8
|
-
disabled
|
|
9
|
-
focusableWhenDisabled
|
|
10
|
-
href
|
|
11
|
-
rootRef:
|
|
12
|
-
tabIndex
|
|
13
|
-
to
|
|
14
|
-
type
|
|
15
|
-
rootElementName:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
const [
|
|
19
|
-
|
|
10
|
+
disabled = false,
|
|
11
|
+
focusableWhenDisabled,
|
|
12
|
+
href,
|
|
13
|
+
rootRef: externalRef,
|
|
14
|
+
tabIndex,
|
|
15
|
+
to,
|
|
16
|
+
type,
|
|
17
|
+
rootElementName: rootElementNameProp
|
|
18
|
+
} = parameters;
|
|
19
|
+
const buttonRef = React.useRef(null);
|
|
20
|
+
const [active, setActive] = React.useState(false);
|
|
21
|
+
const [focusVisible, setFocusVisible] = React.useState(false);
|
|
22
|
+
if (disabled && !focusableWhenDisabled && focusVisible) {
|
|
23
|
+
setFocusVisible(false);
|
|
24
|
+
}
|
|
25
|
+
const [rootElementName, updateRootElementName] = useRootElementName({
|
|
26
|
+
rootElementName: rootElementNameProp ?? (href || to ? "a" : void 0),
|
|
20
27
|
componentName: "Button"
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
28
|
+
});
|
|
29
|
+
const createHandleMouseLeave = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
30
|
+
var _a;
|
|
31
|
+
if (focusVisible) {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
}
|
|
34
|
+
(_a = otherHandlers.onMouseLeave) == null ? void 0 : _a.call(otherHandlers, event);
|
|
35
|
+
}, "createHandleMouseLeave");
|
|
36
|
+
const createHandleBlur = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
37
|
+
var _a;
|
|
38
|
+
if (!isFocusVisible(event.target)) {
|
|
39
|
+
setFocusVisible(false);
|
|
40
|
+
}
|
|
41
|
+
(_a = otherHandlers.onBlur) == null ? void 0 : _a.call(otherHandlers, event);
|
|
42
|
+
}, "createHandleBlur");
|
|
43
|
+
const createHandleFocus = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
if (!buttonRef.current) {
|
|
46
|
+
buttonRef.current = event.currentTarget;
|
|
47
|
+
}
|
|
48
|
+
if (isFocusVisible(event.target)) {
|
|
49
|
+
setFocusVisible(true);
|
|
50
|
+
(_a = otherHandlers.onFocusVisible) == null ? void 0 : _a.call(otherHandlers, event);
|
|
51
|
+
}
|
|
52
|
+
(_b = otherHandlers.onFocus) == null ? void 0 : _b.call(otherHandlers, event);
|
|
53
|
+
}, "createHandleFocus");
|
|
54
|
+
const isNativeButton = /* @__PURE__ */ __name(() => {
|
|
55
|
+
const button = buttonRef.current;
|
|
56
|
+
return rootElementName === "BUTTON" || rootElementName === "INPUT" && ["button", "submit", "reset"].includes(button == null ? void 0 : button.type) || rootElementName === "A" && (button == null ? void 0 : button.href);
|
|
57
|
+
}, "isNativeButton");
|
|
58
|
+
const createHandleClick = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
59
|
+
var _a;
|
|
60
|
+
if (!disabled) {
|
|
61
|
+
(_a = otherHandlers.onClick) == null ? void 0 : _a.call(otherHandlers, event);
|
|
62
|
+
}
|
|
63
|
+
}, "createHandleClick");
|
|
64
|
+
const createHandleMouseDown = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
65
|
+
var _a;
|
|
66
|
+
if (!disabled) {
|
|
67
|
+
setActive(true);
|
|
68
|
+
document.addEventListener("mouseup", () => {
|
|
69
|
+
setActive(false);
|
|
70
|
+
}, {
|
|
71
|
+
once: true
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
(_a = otherHandlers.onMouseDown) == null ? void 0 : _a.call(otherHandlers, event);
|
|
75
|
+
}, "createHandleMouseDown");
|
|
76
|
+
const createHandleKeyDown = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
(_a = otherHandlers.onKeyDown) == null ? void 0 : _a.call(otherHandlers, event);
|
|
79
|
+
if (event.defaultMuiPrevented) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (event.target === event.currentTarget && !isNativeButton() && event.key === " ") {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
}
|
|
85
|
+
if (event.target === event.currentTarget && event.key === " " && !disabled) {
|
|
86
|
+
setActive(true);
|
|
87
|
+
}
|
|
88
|
+
if (event.target === event.currentTarget && !isNativeButton() && event.key === "Enter" && !disabled) {
|
|
89
|
+
(_b = otherHandlers.onClick) == null ? void 0 : _b.call(otherHandlers, event);
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
}
|
|
92
|
+
}, "createHandleKeyDown");
|
|
93
|
+
const createHandleKeyUp = /* @__PURE__ */ __name((otherHandlers) => (event) => {
|
|
94
|
+
var _a, _b;
|
|
95
|
+
if (event.target === event.currentTarget) {
|
|
96
|
+
setActive(false);
|
|
97
|
+
}
|
|
98
|
+
(_a = otherHandlers.onKeyUp) == null ? void 0 : _a.call(otherHandlers, event);
|
|
99
|
+
if (event.target === event.currentTarget && !isNativeButton() && !disabled && event.key === " " && !event.defaultMuiPrevented) {
|
|
100
|
+
(_b = otherHandlers.onClick) == null ? void 0 : _b.call(otherHandlers, event);
|
|
101
|
+
}
|
|
102
|
+
}, "createHandleKeyUp");
|
|
103
|
+
const handleRef = useForkRef(updateRootElementName, externalRef, buttonRef);
|
|
104
|
+
const buttonProps = {};
|
|
105
|
+
if (tabIndex !== void 0) {
|
|
106
|
+
buttonProps.tabIndex = tabIndex;
|
|
107
|
+
}
|
|
108
|
+
if (rootElementName === "BUTTON") {
|
|
109
|
+
buttonProps.type = type ?? "button";
|
|
110
|
+
if (focusableWhenDisabled) {
|
|
111
|
+
buttonProps["aria-disabled"] = disabled;
|
|
112
|
+
} else {
|
|
113
|
+
buttonProps.disabled = disabled;
|
|
114
|
+
}
|
|
115
|
+
} else if (rootElementName === "INPUT") {
|
|
116
|
+
if (type && ["button", "submit", "reset"].includes(type)) {
|
|
117
|
+
if (focusableWhenDisabled) {
|
|
118
|
+
buttonProps["aria-disabled"] = disabled;
|
|
119
|
+
} else {
|
|
120
|
+
buttonProps.disabled = disabled;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
} else if (rootElementName !== "") {
|
|
124
|
+
if (!href && !to) {
|
|
125
|
+
buttonProps.role = "button";
|
|
126
|
+
buttonProps.tabIndex = tabIndex ?? 0;
|
|
127
|
+
}
|
|
128
|
+
if (disabled) {
|
|
129
|
+
buttonProps["aria-disabled"] = disabled;
|
|
130
|
+
buttonProps.tabIndex = focusableWhenDisabled ? tabIndex ?? 0 : -1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const getRootProps = /* @__PURE__ */ __name((externalProps = {}) => {
|
|
134
|
+
const externalEventHandlers = {
|
|
135
|
+
...extractEventHandlers(parameters),
|
|
136
|
+
...extractEventHandlers(externalProps)
|
|
137
|
+
};
|
|
138
|
+
const props = {
|
|
139
|
+
type,
|
|
140
|
+
...externalEventHandlers,
|
|
141
|
+
...buttonProps,
|
|
142
|
+
...externalProps,
|
|
143
|
+
onBlur: createHandleBlur(externalEventHandlers),
|
|
144
|
+
onClick: createHandleClick(externalEventHandlers),
|
|
145
|
+
onFocus: createHandleFocus(externalEventHandlers),
|
|
146
|
+
onKeyDown: createHandleKeyDown(externalEventHandlers),
|
|
147
|
+
onKeyUp: createHandleKeyUp(externalEventHandlers),
|
|
148
|
+
onMouseDown: createHandleMouseDown(externalEventHandlers),
|
|
149
|
+
onMouseLeave: createHandleMouseLeave(externalEventHandlers),
|
|
150
|
+
ref: handleRef
|
|
151
|
+
};
|
|
152
|
+
delete props.onFocusVisible;
|
|
153
|
+
return props;
|
|
154
|
+
}, "getRootProps");
|
|
155
|
+
return {
|
|
156
|
+
getRootProps,
|
|
157
|
+
focusVisible,
|
|
158
|
+
setFocusVisible,
|
|
159
|
+
active,
|
|
160
|
+
rootRef: handleRef
|
|
75
161
|
};
|
|
76
162
|
}
|
|
163
|
+
__name(useButton, "useButton");
|
|
77
164
|
export {
|
|
78
|
-
|
|
165
|
+
useButton
|
|
79
166
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { CompoundComponentContext } from "./useCompoundParent.js";
|
|
5
|
+
import useEnhancedEffect from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";
|
|
6
|
+
function useCompoundItem(id, itemMetadata) {
|
|
7
|
+
const context = React.useContext(CompoundComponentContext);
|
|
8
|
+
if (context === null) {
|
|
7
9
|
throw new Error("useCompoundItem must be used within a useCompoundParent");
|
|
10
|
+
}
|
|
8
11
|
const {
|
|
9
|
-
registerItem
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
+
registerItem
|
|
13
|
+
} = context;
|
|
14
|
+
const [registeredId, setRegisteredId] = React.useState(typeof id === "function" ? void 0 : id);
|
|
15
|
+
useEnhancedEffect(() => {
|
|
12
16
|
const {
|
|
13
|
-
id:
|
|
14
|
-
deregister
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
id: returnedId,
|
|
18
|
+
deregister
|
|
19
|
+
} = registerItem(id, itemMetadata);
|
|
20
|
+
setRegisteredId(returnedId);
|
|
21
|
+
return deregister;
|
|
22
|
+
}, [registerItem, itemMetadata, id]);
|
|
23
|
+
return {
|
|
24
|
+
id: registeredId,
|
|
25
|
+
index: registeredId !== void 0 ? context.getItemIndex(registeredId) : -1,
|
|
26
|
+
totalItemCount: context.totalSubitemCount
|
|
21
27
|
};
|
|
22
28
|
}
|
|
29
|
+
__name(useCompoundItem, "useCompoundItem");
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
useCompoundItem
|
|
25
32
|
};
|
|
@@ -1,47 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
const CompoundComponentContext = /* @__PURE__ */ React.createContext(null);
|
|
5
|
+
if (process.env.NODE_ENV !== "production") {
|
|
6
|
+
CompoundComponentContext.displayName = "CompoundComponentContext";
|
|
7
|
+
}
|
|
8
|
+
function sortSubitems(subitems) {
|
|
9
|
+
const subitemsArray = Array.from(subitems.keys()).map((key) => {
|
|
10
|
+
const subitem = subitems.get(key);
|
|
7
11
|
return {
|
|
8
|
-
key
|
|
9
|
-
subitem
|
|
12
|
+
key,
|
|
13
|
+
subitem
|
|
10
14
|
};
|
|
11
15
|
});
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
subitemsArray.sort((a, b) => {
|
|
17
|
+
const aNode = a.subitem.ref.current;
|
|
18
|
+
const bNode = b.subitem.ref.current;
|
|
19
|
+
if (aNode === null || bNode === null || aNode === bNode) {
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
return aNode.compareDocumentPosition(bNode) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
|
|
23
|
+
});
|
|
24
|
+
return new Map(subitemsArray.map((item) => [item.key, item.subitem]));
|
|
16
25
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
__name(sortSubitems, "sortSubitems");
|
|
27
|
+
function useCompoundParent() {
|
|
28
|
+
const [subitems, setSubitems] = React.useState(/* @__PURE__ */ new Map());
|
|
29
|
+
const subitemKeys = React.useRef(/* @__PURE__ */ new Set());
|
|
30
|
+
const deregisterItem = React.useCallback(/* @__PURE__ */ __name(function deregisterItem2(id) {
|
|
31
|
+
subitemKeys.current.delete(id);
|
|
32
|
+
setSubitems((previousState) => {
|
|
33
|
+
const newState = new Map(previousState);
|
|
34
|
+
newState.delete(id);
|
|
35
|
+
return newState;
|
|
22
36
|
});
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
id
|
|
30
|
-
|
|
37
|
+
}, "deregisterItem"), []);
|
|
38
|
+
const registerItem = React.useCallback(/* @__PURE__ */ __name(function registerItem2(id, item) {
|
|
39
|
+
let providedOrGeneratedId;
|
|
40
|
+
if (typeof id === "function") {
|
|
41
|
+
providedOrGeneratedId = id(subitemKeys.current);
|
|
42
|
+
} else {
|
|
43
|
+
providedOrGeneratedId = id;
|
|
44
|
+
}
|
|
45
|
+
subitemKeys.current.add(providedOrGeneratedId);
|
|
46
|
+
setSubitems((previousState) => {
|
|
47
|
+
const newState = new Map(previousState);
|
|
48
|
+
newState.set(providedOrGeneratedId, item);
|
|
49
|
+
return newState;
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
id: providedOrGeneratedId,
|
|
53
|
+
deregister: /* @__PURE__ */ __name(() => deregisterItem(providedOrGeneratedId), "deregister")
|
|
31
54
|
};
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
55
|
+
}, "registerItem"), [deregisterItem]);
|
|
56
|
+
const sortedSubitems = React.useMemo(() => sortSubitems(subitems), [subitems]);
|
|
57
|
+
const getItemIndex = React.useCallback(/* @__PURE__ */ __name(function getItemIndex2(id) {
|
|
58
|
+
return Array.from(sortedSubitems.keys()).indexOf(id);
|
|
59
|
+
}, "getItemIndex"), [sortedSubitems]);
|
|
60
|
+
const contextValue = React.useMemo(() => ({
|
|
61
|
+
getItemIndex,
|
|
62
|
+
registerItem,
|
|
63
|
+
totalSubitemCount: subitems.size
|
|
64
|
+
}), [getItemIndex, registerItem, subitems.size]);
|
|
35
65
|
return {
|
|
36
|
-
contextValue
|
|
37
|
-
|
|
38
|
-
registerItem: c,
|
|
39
|
-
totalSubitemCount: o.size
|
|
40
|
-
}), [i, c, o.size]),
|
|
41
|
-
subitems: s
|
|
66
|
+
contextValue,
|
|
67
|
+
subitems: sortedSubitems
|
|
42
68
|
};
|
|
43
69
|
}
|
|
70
|
+
__name(useCompoundParent, "useCompoundParent");
|
|
44
71
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
CompoundComponentContext,
|
|
73
|
+
useCompoundParent
|
|
47
74
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
3
|
-
process.env.NODE_ENV !== "production"
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const ListContext = /* @__PURE__ */ React.createContext(null);
|
|
3
|
+
if (process.env.NODE_ENV !== "production") {
|
|
4
|
+
ListContext.displayName = "ListContext";
|
|
5
|
+
}
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
ListContext
|
|
6
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ListActionTypes = {
|
|
2
2
|
blur: "list:blur",
|
|
3
3
|
itemClick: "list:itemClick",
|
|
4
4
|
itemHover: "list:itemHover",
|
|
@@ -10,5 +10,5 @@ const t = {
|
|
|
10
10
|
clearSelection: "list:clearSelection"
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
ListActionTypes
|
|
14
14
|
};
|