@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,147 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { memo, useRef, useState, useLayoutEffect, Fragment } from "react";
|
|
5
|
+
import { create } from "../../helpers/bem.js";
|
|
6
|
+
import styles from "./PostWidgetCarousel.module.scss.js";
|
|
7
|
+
import { Carousel } from "../carousel/Carousel.js";
|
|
8
|
+
import { Button } from "../button/Button.js";
|
|
9
|
+
import { Card } from "../card/Card.js";
|
|
10
|
+
import { Headline } from "../headline/Headline.server.js";
|
|
11
|
+
import { Link } from "../link/Link.js";
|
|
12
|
+
import { Image } from "../image/Image.js";
|
|
13
|
+
const bem = create(styles, "PostWidgetCarousel");
|
|
14
|
+
const PostWidgetCarousel = memo(
|
|
15
|
+
({ autoplay, className, title, items = [], ...props }) => {
|
|
16
|
+
const ref = useRef(null);
|
|
17
|
+
const [carouselWidth, setCarouselWidth] = useState(0);
|
|
18
|
+
useLayoutEffect(() => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const containerWidth = ((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.carouselContainer) == null ? void 0 : _b.offsetWidth) ?? 0;
|
|
21
|
+
setCarouselWidth(containerWidth);
|
|
22
|
+
const handleResize = /* @__PURE__ */ __name(() => {
|
|
23
|
+
setCarouselWidth(containerWidth);
|
|
24
|
+
}, "handleResize");
|
|
25
|
+
window.addEventListener("resize", handleResize);
|
|
26
|
+
return () => {
|
|
27
|
+
window.removeEventListener("resize", handleResize);
|
|
20
28
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
}, [s]), /* @__PURE__ */ a(
|
|
29
|
+
}, [ref]);
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
25
31
|
"section",
|
|
26
32
|
{
|
|
27
|
-
itemScope:
|
|
28
|
-
className:
|
|
33
|
+
itemScope: true,
|
|
34
|
+
className: bem(void 0, void 0, className),
|
|
29
35
|
itemType: "https://schema.org/ItemList",
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
|
|
36
|
+
children: /* @__PURE__ */ jsxs(
|
|
37
|
+
Card,
|
|
32
38
|
{
|
|
33
|
-
animated:
|
|
34
|
-
enableShadow:
|
|
35
|
-
...
|
|
36
|
-
className:
|
|
37
|
-
contentClassName:
|
|
39
|
+
animated: true,
|
|
40
|
+
enableShadow: true,
|
|
41
|
+
...props,
|
|
42
|
+
className: bem("card__container"),
|
|
43
|
+
contentClassName: bem("card"),
|
|
38
44
|
variant: "white",
|
|
39
45
|
children: [
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
title && /* @__PURE__ */ jsx(
|
|
47
|
+
Headline,
|
|
42
48
|
{
|
|
43
|
-
highlight:
|
|
49
|
+
highlight: true,
|
|
44
50
|
size: "md",
|
|
45
51
|
type: "h2",
|
|
46
|
-
...
|
|
47
|
-
className:
|
|
52
|
+
...title,
|
|
53
|
+
className: bem("title", title == null ? void 0 : title.className),
|
|
48
54
|
itemProp: "headline",
|
|
49
55
|
variant: "secondary",
|
|
50
|
-
children:
|
|
56
|
+
children: title == null ? void 0 : title.content
|
|
51
57
|
}
|
|
52
58
|
),
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
59
|
+
items.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
Carousel,
|
|
56
62
|
{
|
|
57
|
-
ref
|
|
58
|
-
autoplay
|
|
59
|
-
className:
|
|
60
|
-
classNameDots:
|
|
61
|
-
classNameItem:
|
|
63
|
+
ref,
|
|
64
|
+
autoplay,
|
|
65
|
+
className: bem("carousel"),
|
|
66
|
+
classNameDots: bem("carousel__dots"),
|
|
67
|
+
classNameItem: bem("carousel__item"),
|
|
62
68
|
itemsToShow: 1,
|
|
63
|
-
children:
|
|
64
|
-
var
|
|
65
|
-
const
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
+
children: items.map((item) => {
|
|
70
|
+
var _a, _b, _c;
|
|
71
|
+
const key = `carousel-item-${item.title}`;
|
|
72
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
73
|
+
(item == null ? void 0 : item.image) && /* @__PURE__ */ jsx(
|
|
74
|
+
Link,
|
|
69
75
|
{
|
|
70
|
-
"aria-label": `Read more about ${
|
|
71
|
-
...
|
|
72
|
-
className:
|
|
76
|
+
"aria-label": `Read more about ${item.title.content}`,
|
|
77
|
+
...item == null ? void 0 : item.redirect,
|
|
78
|
+
className: bem(
|
|
73
79
|
"carousel__item__image__link",
|
|
74
80
|
void 0,
|
|
75
|
-
(
|
|
81
|
+
(_a = item == null ? void 0 : item.redirect) == null ? void 0 : _a.className
|
|
76
82
|
),
|
|
77
83
|
style: {
|
|
78
|
-
width:
|
|
84
|
+
width: carouselWidth
|
|
79
85
|
},
|
|
80
|
-
children: /* @__PURE__ */
|
|
81
|
-
|
|
86
|
+
children: /* @__PURE__ */ jsx(
|
|
87
|
+
Image,
|
|
82
88
|
{
|
|
83
|
-
className:
|
|
84
|
-
...
|
|
89
|
+
className: bem("carousel__item__image"),
|
|
90
|
+
...item.image
|
|
85
91
|
},
|
|
86
|
-
|
|
92
|
+
key
|
|
87
93
|
)
|
|
88
94
|
}
|
|
89
95
|
),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Link,
|
|
92
98
|
{
|
|
93
|
-
...
|
|
94
|
-
"aria-label": `Read more about ${
|
|
95
|
-
className:
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
|
|
99
|
+
...item == null ? void 0 : item.redirect,
|
|
100
|
+
"aria-label": `Read more about ${item.title.content}`,
|
|
101
|
+
className: bem("carousel__item__link"),
|
|
102
|
+
children: /* @__PURE__ */ jsx(
|
|
103
|
+
Headline,
|
|
98
104
|
{
|
|
99
105
|
size: "md",
|
|
100
106
|
type: "h3",
|
|
101
|
-
...
|
|
102
|
-
className:
|
|
107
|
+
...item.title,
|
|
108
|
+
className: bem("headline", (_b = item.title) == null ? void 0 : _b.className),
|
|
103
109
|
itemProp: "headline",
|
|
104
110
|
variant: "inherit",
|
|
105
|
-
children: (
|
|
111
|
+
children: (_c = item.title) == null ? void 0 : _c.content
|
|
106
112
|
}
|
|
107
113
|
)
|
|
108
114
|
}
|
|
109
115
|
)
|
|
110
|
-
] },
|
|
116
|
+
] }, key);
|
|
111
117
|
})
|
|
112
118
|
}
|
|
113
119
|
),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
120
|
+
/* @__PURE__ */ jsxs("div", { className: bem("carousel__buttons"), children: [
|
|
121
|
+
/* @__PURE__ */ jsx(
|
|
122
|
+
Button,
|
|
117
123
|
{
|
|
118
124
|
"aria-label": "Last category",
|
|
119
|
-
className:
|
|
125
|
+
className: bem("carousel__button"),
|
|
120
126
|
color: "primary",
|
|
121
127
|
iconProps: {
|
|
122
128
|
name: "ArrowLeft01Icon",
|
|
123
129
|
size: "sm"
|
|
124
130
|
},
|
|
125
|
-
onClick: () => {
|
|
126
|
-
var
|
|
127
|
-
return (
|
|
128
|
-
}
|
|
131
|
+
onClick: /* @__PURE__ */ __name(() => {
|
|
132
|
+
var _a;
|
|
133
|
+
return (_a = ref.current) == null ? void 0 : _a.slidePrev();
|
|
134
|
+
}, "onClick")
|
|
129
135
|
}
|
|
130
136
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
Button,
|
|
133
139
|
{
|
|
134
140
|
"aria-label": "Next category",
|
|
135
|
-
className:
|
|
141
|
+
className: bem("carousel__button"),
|
|
136
142
|
color: "primary",
|
|
137
143
|
iconProps: {
|
|
138
144
|
name: "ArrowRight01Icon",
|
|
139
145
|
size: "sm"
|
|
140
146
|
},
|
|
141
|
-
onClick: () => {
|
|
142
|
-
var
|
|
143
|
-
return (
|
|
144
|
-
}
|
|
147
|
+
onClick: /* @__PURE__ */ __name(() => {
|
|
148
|
+
var _a;
|
|
149
|
+
return (_a = ref.current) == null ? void 0 : _a.slideNext();
|
|
150
|
+
}, "onClick")
|
|
145
151
|
}
|
|
146
152
|
)
|
|
147
153
|
] })
|
|
@@ -153,7 +159,7 @@ const r = P(z, "PostWidgetCarousel"), x = b(
|
|
|
153
159
|
);
|
|
154
160
|
}
|
|
155
161
|
);
|
|
156
|
-
|
|
162
|
+
PostWidgetCarousel.displayName = "PostWidgetCarousel";
|
|
157
163
|
export {
|
|
158
|
-
|
|
164
|
+
PostWidgetCarousel
|
|
159
165
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const gradientMove = "gradientMove";
|
|
2
|
+
const fadeInKeyframe = "fadeInKeyframe";
|
|
3
|
+
const styles = {
|
|
2
4
|
"prokodo-PostWidgetCarousel__carousel": "prokodo-PostWidgetCarousel__carousel",
|
|
3
5
|
"prokodo-PostWidgetCarousel__carousel__item__image__link": "prokodo-PostWidgetCarousel__carousel__item__image__link",
|
|
4
6
|
"prokodo-PostWidgetCarousel__carousel__item__image": "prokodo-PostWidgetCarousel__carousel__item__image",
|
|
@@ -6,11 +8,11 @@ const o = "gradientMove", e = "fadeInKeyframe", _ = {
|
|
|
6
8
|
"prokodo-PostWidgetCarousel__carousel__dots": "prokodo-PostWidgetCarousel__carousel__dots",
|
|
7
9
|
"prokodo-PostWidgetCarousel__carousel__buttons": "prokodo-PostWidgetCarousel__carousel__buttons",
|
|
8
10
|
"prokodo-PostWidgetCarousel__headline": "prokodo-PostWidgetCarousel__headline",
|
|
9
|
-
gradientMove
|
|
10
|
-
fadeInKeyframe
|
|
11
|
+
gradientMove,
|
|
12
|
+
fadeInKeyframe
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
styles as default,
|
|
16
|
+
fadeInKeyframe,
|
|
17
|
+
gradientMove
|
|
16
18
|
};
|
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
import { jsxs
|
|
2
|
-
import { memo
|
|
3
|
-
import { create
|
|
4
|
-
import { isString
|
|
5
|
-
import
|
|
6
|
-
import { Headline
|
|
7
|
-
import { Card
|
|
8
|
-
import { RichText
|
|
9
|
-
import { Avatar
|
|
10
|
-
const
|
|
11
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { create } from "../../helpers/bem.js";
|
|
4
|
+
import { isString } from "../../helpers/validations.js";
|
|
5
|
+
import styles from "./Quote.module.scss.js";
|
|
6
|
+
import { Headline } from "../headline/Headline.server.js";
|
|
7
|
+
import { Card } from "../card/Card.js";
|
|
8
|
+
import { RichText } from "../rich-text/RichText.js";
|
|
9
|
+
import { Avatar } from "../avatar/Avatar.js";
|
|
10
|
+
const bem = create(styles, "Quote");
|
|
11
|
+
const Quote = memo(
|
|
12
|
+
({ className, variant = "primary", title, subTitle, content, author }) => /* @__PURE__ */ jsxs(
|
|
12
13
|
"figure",
|
|
13
14
|
{
|
|
14
|
-
itemScope:
|
|
15
|
-
className:
|
|
15
|
+
itemScope: true,
|
|
16
|
+
className: bem(void 0, void 0, className),
|
|
16
17
|
itemType: "https://schema.org/Quotation",
|
|
17
18
|
children: [
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
subTitle && /* @__PURE__ */ jsx(
|
|
20
|
+
Headline,
|
|
20
21
|
{
|
|
21
|
-
highlight:
|
|
22
|
-
className:
|
|
22
|
+
highlight: true,
|
|
23
|
+
className: bem("sub_headline", void 0, subTitle == null ? void 0 : subTitle.className),
|
|
23
24
|
size: "sm",
|
|
24
25
|
type: "h3",
|
|
25
|
-
...
|
|
26
|
-
variant:
|
|
27
|
-
children:
|
|
26
|
+
...subTitle,
|
|
27
|
+
variant: subTitle.variant ?? variant,
|
|
28
|
+
children: subTitle == null ? void 0 : subTitle.content
|
|
28
29
|
}
|
|
29
30
|
),
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
title && /* @__PURE__ */ jsx(
|
|
32
|
+
Headline,
|
|
32
33
|
{
|
|
33
|
-
className:
|
|
34
|
+
className: bem("headline", void 0, title == null ? void 0 : title.className),
|
|
34
35
|
size: "lg",
|
|
35
36
|
type: "h2",
|
|
36
|
-
...
|
|
37
|
-
children:
|
|
37
|
+
...title,
|
|
38
|
+
children: title.content
|
|
38
39
|
}
|
|
39
40
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
41
|
+
/* @__PURE__ */ jsxs(
|
|
42
|
+
Card,
|
|
42
43
|
{
|
|
43
|
-
animated:
|
|
44
|
-
highlight:
|
|
45
|
-
className:
|
|
46
|
-
contentClassName:
|
|
44
|
+
animated: true,
|
|
45
|
+
highlight: true,
|
|
46
|
+
className: bem("card__container"),
|
|
47
|
+
contentClassName: bem("card"),
|
|
47
48
|
customAnimation: "left-right",
|
|
48
49
|
variant: "white",
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
51
|
+
/* @__PURE__ */ jsx("blockquote", { className: bem("quote"), children: /* @__PURE__ */ jsx(RichText, { className: bem("quote__content"), itemProp: "text", children: content }) }),
|
|
52
|
+
author && /* @__PURE__ */ jsx("figcaption", { children: /* @__PURE__ */ jsxs(
|
|
52
53
|
"div",
|
|
53
54
|
{
|
|
54
|
-
itemScope:
|
|
55
|
-
className:
|
|
55
|
+
itemScope: true,
|
|
56
|
+
className: bem("caption"),
|
|
56
57
|
itemType: "https://schema.org/Person",
|
|
57
58
|
children: [
|
|
58
|
-
(
|
|
59
|
-
|
|
59
|
+
(author == null ? void 0 : author.avatar) && /* @__PURE__ */ jsx(
|
|
60
|
+
Avatar,
|
|
60
61
|
{
|
|
61
|
-
className:
|
|
62
|
-
...
|
|
63
|
-
variant
|
|
62
|
+
className: bem("caption__avatar"),
|
|
63
|
+
...author.avatar,
|
|
64
|
+
variant
|
|
64
65
|
}
|
|
65
66
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
67
|
+
/* @__PURE__ */ jsxs("div", { className: bem("caption__author"), children: [
|
|
68
|
+
/* @__PURE__ */ jsx("span", { className: bem("caption__author__name"), itemProp: "name", children: author.name }),
|
|
69
|
+
isString(author == null ? void 0 : author.position) && /* @__PURE__ */ jsx(
|
|
69
70
|
"span",
|
|
70
71
|
{
|
|
71
|
-
className:
|
|
72
|
+
className: bem("caption__author__position"),
|
|
72
73
|
itemProp: "jobTitle",
|
|
73
|
-
children:
|
|
74
|
+
children: author.position
|
|
74
75
|
}
|
|
75
76
|
)
|
|
76
77
|
] })
|
|
@@ -84,7 +85,7 @@ const e = d(l, "Quote"), v = p(
|
|
|
84
85
|
}
|
|
85
86
|
)
|
|
86
87
|
);
|
|
87
|
-
|
|
88
|
+
Quote.displayName = "Quote";
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
Quote
|
|
90
91
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const gradientMove = "gradientMove";
|
|
2
|
+
const fadeInKeyframe = "fadeInKeyframe";
|
|
3
|
+
const styles = {
|
|
2
4
|
"prokodo-Quote": "prokodo-Quote",
|
|
3
5
|
"prokodo-Quote__headline": "prokodo-Quote__headline",
|
|
4
6
|
"prokodo-Quote__quote": "prokodo-Quote__quote",
|
|
@@ -8,11 +10,11 @@ const o = "gradientMove", _ = "fadeInKeyframe", t = {
|
|
|
8
10
|
"prokodo-Quote__caption__author": "prokodo-Quote__caption__author",
|
|
9
11
|
"prokodo-Quote__caption__author__name": "prokodo-Quote__caption__author__name",
|
|
10
12
|
"prokodo-Quote__caption__author__position": "prokodo-Quote__caption__author__position",
|
|
11
|
-
gradientMove
|
|
12
|
-
fadeInKeyframe
|
|
13
|
+
gradientMove,
|
|
14
|
+
fadeInKeyframe
|
|
13
15
|
};
|
|
14
16
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
styles as default,
|
|
18
|
+
fadeInKeyframe,
|
|
19
|
+
gradientMove
|
|
18
20
|
};
|