@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,153 +1,157 @@
|
|
|
1
|
-
import { jsxs
|
|
2
|
-
import { memo
|
|
3
|
-
import { create
|
|
4
|
-
import { calculateWordCount
|
|
5
|
-
import { isString
|
|
6
|
-
import
|
|
7
|
-
import { Chip
|
|
8
|
-
import { Card
|
|
9
|
-
import { Icon
|
|
10
|
-
import { Image
|
|
11
|
-
import { Headline
|
|
12
|
-
import { RichText
|
|
13
|
-
const
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useState, useCallback } from "react";
|
|
3
|
+
import { create } from "../../helpers/bem.js";
|
|
4
|
+
import { calculateWordCount } from "../../helpers/calculation.js";
|
|
5
|
+
import { isString } from "../../helpers/validations.js";
|
|
6
|
+
import styles from "./PostTeaser.module.scss.js";
|
|
7
|
+
import { Chip } from "../chip/Chip.js";
|
|
8
|
+
import { Card } from "../card/Card.js";
|
|
9
|
+
import { Icon } from "../icon/Icon.js";
|
|
10
|
+
import { Image } from "../image/Image.js";
|
|
11
|
+
import { Headline } from "../headline/Headline.server.js";
|
|
12
|
+
import { RichText } from "../rich-text/RichText.js";
|
|
13
|
+
const bem = create(styles, "PostTeaser");
|
|
14
|
+
const PostTeaser = memo(
|
|
14
15
|
({
|
|
15
|
-
className
|
|
16
|
-
image
|
|
17
|
-
readCount
|
|
18
|
-
title
|
|
19
|
-
date
|
|
20
|
-
metaDate
|
|
21
|
-
hideCategory
|
|
22
|
-
category
|
|
23
|
-
content
|
|
24
|
-
onClick
|
|
25
|
-
redirect
|
|
26
|
-
...
|
|
16
|
+
className,
|
|
17
|
+
image,
|
|
18
|
+
readCount,
|
|
19
|
+
title,
|
|
20
|
+
date,
|
|
21
|
+
metaDate,
|
|
22
|
+
hideCategory,
|
|
23
|
+
category,
|
|
24
|
+
content,
|
|
25
|
+
onClick,
|
|
26
|
+
redirect,
|
|
27
|
+
...props
|
|
27
28
|
}) => {
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
var _a;
|
|
30
|
+
const wordCount = calculateWordCount(content);
|
|
31
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
32
|
+
const handleMouseEnter = useCallback(() => {
|
|
33
|
+
setIsHovered(true);
|
|
33
34
|
}, []);
|
|
34
|
-
|
|
35
|
+
const handleMouseLeave = useCallback(() => {
|
|
36
|
+
setIsHovered(false);
|
|
37
|
+
}, []);
|
|
38
|
+
return /* @__PURE__ */ jsxs(
|
|
35
39
|
"article",
|
|
36
40
|
{
|
|
37
|
-
itemScope:
|
|
38
|
-
className:
|
|
41
|
+
itemScope: true,
|
|
42
|
+
className: bem(void 0, void 0, className),
|
|
39
43
|
itemType: "http://schema.org/BlogPosting",
|
|
40
44
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
45
|
+
/* @__PURE__ */ jsxs(
|
|
46
|
+
Card,
|
|
43
47
|
{
|
|
44
48
|
variant: "white",
|
|
45
|
-
...
|
|
46
|
-
className:
|
|
47
|
-
contentClassName:
|
|
48
|
-
highlight:
|
|
49
|
-
redirect
|
|
50
|
-
onClick
|
|
51
|
-
onMouseEnter:
|
|
52
|
-
onMouseLeave:
|
|
49
|
+
...props,
|
|
50
|
+
className: bem("card__container"),
|
|
51
|
+
contentClassName: bem("card"),
|
|
52
|
+
highlight: isHovered,
|
|
53
|
+
redirect,
|
|
54
|
+
onClick,
|
|
55
|
+
onMouseEnter: handleMouseEnter,
|
|
56
|
+
onMouseLeave: handleMouseLeave,
|
|
53
57
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
59
|
+
isString(image == null ? void 0 : image.src) && /* @__PURE__ */ jsxs("div", { className: bem("image__wrapper"), children: [
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: bem("meta"), children: [
|
|
61
|
+
isString(category) && hideCategory === false && /* @__PURE__ */ jsx(
|
|
62
|
+
Chip,
|
|
59
63
|
{
|
|
60
|
-
"aria-label": `Category ${
|
|
61
|
-
className:
|
|
64
|
+
"aria-label": `Category ${category}`,
|
|
65
|
+
className: bem("meta__category"),
|
|
62
66
|
color: "primary",
|
|
63
|
-
label:
|
|
67
|
+
label: category
|
|
64
68
|
}
|
|
65
69
|
),
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
readCount !== void 0 && /* @__PURE__ */ jsx(
|
|
71
|
+
Chip,
|
|
68
72
|
{
|
|
69
|
-
"aria-label": `Read ${
|
|
73
|
+
"aria-label": `Read ${readCount} times`,
|
|
70
74
|
color: "white",
|
|
71
|
-
icon: /* @__PURE__ */
|
|
72
|
-
label: /* @__PURE__ */
|
|
75
|
+
icon: /* @__PURE__ */ jsx(Icon, { name: "EyeIcon", size: "sm" }),
|
|
76
|
+
label: /* @__PURE__ */ jsxs(
|
|
73
77
|
"p",
|
|
74
78
|
{
|
|
75
|
-
itemScope:
|
|
79
|
+
itemScope: true,
|
|
76
80
|
itemProp: "interactionStatistic",
|
|
77
81
|
itemType: "https://schema.org/InteractionCounter",
|
|
78
82
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
80
84
|
"meta",
|
|
81
85
|
{
|
|
82
86
|
content: "https://schema.org/ReadAction",
|
|
83
87
|
itemProp: "interactionType"
|
|
84
88
|
}
|
|
85
89
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ jsx("span", { itemProp: "userInteractionCount", children: readCount })
|
|
87
91
|
]
|
|
88
92
|
}
|
|
89
93
|
)
|
|
90
94
|
}
|
|
91
95
|
)
|
|
92
96
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
|
|
97
|
+
/* @__PURE__ */ jsx(
|
|
98
|
+
Image,
|
|
95
99
|
{
|
|
96
|
-
...
|
|
97
|
-
captionClassName:
|
|
98
|
-
className:
|
|
99
|
-
containerClassName:
|
|
100
|
+
...image,
|
|
101
|
+
captionClassName: bem("image__caption"),
|
|
102
|
+
className: bem("image"),
|
|
103
|
+
containerClassName: bem("image")
|
|
100
104
|
}
|
|
101
105
|
)
|
|
102
106
|
] }),
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
Headline,
|
|
105
109
|
{
|
|
106
|
-
highlight:
|
|
110
|
+
highlight: true,
|
|
107
111
|
size: "md",
|
|
108
112
|
type: "h3",
|
|
109
|
-
...
|
|
110
|
-
className:
|
|
111
|
-
variant: (
|
|
112
|
-
children:
|
|
113
|
+
...title,
|
|
114
|
+
className: bem("headline", title == null ? void 0 : title.className),
|
|
115
|
+
variant: (title == null ? void 0 : title.variant) ?? "secondary",
|
|
116
|
+
children: title == null ? void 0 : title.content
|
|
113
117
|
}
|
|
114
118
|
)
|
|
115
119
|
] }),
|
|
116
|
-
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
120
|
+
isString(content) && /* @__PURE__ */ jsx("div", { className: bem("card__content"), itemProp: "articleBody", children: /* @__PURE__ */ jsx(RichText, { className: bem("content"), children: content }) }),
|
|
121
|
+
/* @__PURE__ */ jsxs("div", { className: bem("card__footer"), children: [
|
|
122
|
+
isString(date) && /* @__PURE__ */ jsx(
|
|
119
123
|
"p",
|
|
120
124
|
{
|
|
121
|
-
"aria-label": `Published at ${
|
|
122
|
-
className:
|
|
125
|
+
"aria-label": `Published at ${date}`,
|
|
126
|
+
className: bem("date"),
|
|
123
127
|
itemProp: "datePublished",
|
|
124
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ jsx("time", { dateTime: metaDate, itemProp: "datePublished", children: date })
|
|
125
129
|
}
|
|
126
130
|
),
|
|
127
|
-
(
|
|
131
|
+
(redirect == null ? void 0 : redirect.label) !== void 0 && isString(redirect == null ? void 0 : redirect.label) && /* @__PURE__ */ jsxs(
|
|
128
132
|
"span",
|
|
129
133
|
{
|
|
130
|
-
className:
|
|
131
|
-
"is-hovered":
|
|
134
|
+
className: bem("link", {
|
|
135
|
+
"is-hovered": isHovered
|
|
132
136
|
}),
|
|
133
137
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
139
|
+
Icon,
|
|
136
140
|
{
|
|
137
141
|
name: "ArrowRight01Icon",
|
|
138
142
|
size: "xs",
|
|
139
|
-
...
|
|
143
|
+
...redirect == null ? void 0 : redirect.icon,
|
|
140
144
|
color: "primary",
|
|
141
|
-
className:
|
|
145
|
+
className: bem(
|
|
142
146
|
"link__icon",
|
|
143
147
|
{
|
|
144
|
-
"is-hovered":
|
|
148
|
+
"is-hovered": isHovered
|
|
145
149
|
},
|
|
146
|
-
(
|
|
150
|
+
(_a = redirect == null ? void 0 : redirect.icon) == null ? void 0 : _a.className
|
|
147
151
|
)
|
|
148
152
|
}
|
|
149
153
|
),
|
|
150
|
-
|
|
154
|
+
redirect.label
|
|
151
155
|
]
|
|
152
156
|
}
|
|
153
157
|
)
|
|
@@ -155,14 +159,14 @@ const a = w(M, "PostTeaser"), H = I(
|
|
|
155
159
|
]
|
|
156
160
|
}
|
|
157
161
|
),
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
wordCount > 0 && /* @__PURE__ */ jsx("meta", { content: String(wordCount), itemProp: "wordCount" }),
|
|
163
|
+
isString(category) && /* @__PURE__ */ jsx("meta", { content: category, itemProp: "articleSection" })
|
|
160
164
|
]
|
|
161
165
|
}
|
|
162
166
|
);
|
|
163
167
|
}
|
|
164
168
|
);
|
|
165
|
-
|
|
169
|
+
PostTeaser.displayName = "PostTeaser";
|
|
166
170
|
export {
|
|
167
|
-
|
|
171
|
+
PostTeaser
|
|
168
172
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const gradientMove = "gradientMove";
|
|
2
|
+
const fadeInKeyframe = "fadeInKeyframe";
|
|
3
|
+
const styles = {
|
|
2
4
|
"prokodo-PostTeaser__card": "prokodo-PostTeaser__card",
|
|
3
5
|
"prokodo-PostTeaser__card__container": "prokodo-PostTeaser__card__container",
|
|
4
6
|
"prokodo-PostTeaser__card__content": "prokodo-PostTeaser__card__content",
|
|
@@ -15,11 +17,11 @@ const o = "gradientMove", e = "fadeInKeyframe", _ = {
|
|
|
15
17
|
"prokodo-PostTeaser__link": "prokodo-PostTeaser__link",
|
|
16
18
|
"prokodo-PostTeaser__link__icon": "prokodo-PostTeaser__link__icon",
|
|
17
19
|
"prokodo-PostTeaser__link--is-hovered": "prokodo-PostTeaser__link--is-hovered",
|
|
18
|
-
gradientMove
|
|
19
|
-
fadeInKeyframe
|
|
20
|
+
gradientMove,
|
|
21
|
+
fadeInKeyframe
|
|
20
22
|
};
|
|
21
23
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
styles as default,
|
|
25
|
+
fadeInKeyframe,
|
|
26
|
+
gradientMove
|
|
25
27
|
};
|
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { memo
|
|
3
|
-
import { create
|
|
4
|
-
import { isString
|
|
5
|
-
import
|
|
6
|
-
import { Card
|
|
7
|
-
import { Headline
|
|
8
|
-
import { Link
|
|
9
|
-
import { Image
|
|
10
|
-
const
|
|
1
|
+
import { jsx, jsxs } 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 "./PostWidget.module.scss.js";
|
|
6
|
+
import { Card } from "../card/Card.js";
|
|
7
|
+
import { Headline } from "../headline/Headline.server.js";
|
|
8
|
+
import { Link } from "../link/Link.js";
|
|
9
|
+
import { Image } from "../image/Image.js";
|
|
10
|
+
const bem = create(styles, "PostWidget");
|
|
11
|
+
const PostWidget = memo(
|
|
11
12
|
({
|
|
12
|
-
fullWidth
|
|
13
|
-
className
|
|
14
|
-
title
|
|
15
|
-
listClassName
|
|
16
|
-
contentClassName
|
|
17
|
-
items
|
|
18
|
-
...
|
|
19
|
-
}) => /* @__PURE__ */
|
|
13
|
+
fullWidth,
|
|
14
|
+
className,
|
|
15
|
+
title,
|
|
16
|
+
listClassName,
|
|
17
|
+
contentClassName,
|
|
18
|
+
items = [],
|
|
19
|
+
...props
|
|
20
|
+
}) => /* @__PURE__ */ jsx(
|
|
20
21
|
"section",
|
|
21
22
|
{
|
|
22
|
-
itemScope:
|
|
23
|
-
className:
|
|
23
|
+
itemScope: true,
|
|
24
|
+
className: bem(void 0, void 0, className),
|
|
24
25
|
itemType: "https://schema.org/ItemList",
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
|
|
26
|
+
children: /* @__PURE__ */ jsxs(
|
|
27
|
+
Card,
|
|
27
28
|
{
|
|
28
|
-
animated:
|
|
29
|
-
enableShadow:
|
|
30
|
-
...
|
|
31
|
-
className:
|
|
32
|
-
contentClassName:
|
|
29
|
+
animated: true,
|
|
30
|
+
enableShadow: true,
|
|
31
|
+
...props,
|
|
32
|
+
className: bem("card__container"),
|
|
33
|
+
contentClassName: bem("card", void 0, contentClassName),
|
|
33
34
|
children: [
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
title && /* @__PURE__ */ jsx(
|
|
36
|
+
Headline,
|
|
36
37
|
{
|
|
37
|
-
highlight:
|
|
38
|
+
highlight: true,
|
|
38
39
|
size: "md",
|
|
39
40
|
type: "h2",
|
|
40
|
-
...
|
|
41
|
-
className:
|
|
41
|
+
...title,
|
|
42
|
+
className: bem("title", title == null ? void 0 : title.className),
|
|
42
43
|
itemProp: "headline",
|
|
43
44
|
variant: "secondary",
|
|
44
|
-
children:
|
|
45
|
+
children: title == null ? void 0 : title.content
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
48
49
|
"ul",
|
|
49
50
|
{
|
|
50
|
-
className:
|
|
51
|
+
className: bem(
|
|
51
52
|
"list",
|
|
52
53
|
{
|
|
53
|
-
"has-fullWidth":
|
|
54
|
+
"has-fullWidth": Boolean(fullWidth)
|
|
54
55
|
},
|
|
55
|
-
|
|
56
|
+
listClassName
|
|
56
57
|
),
|
|
57
|
-
children:
|
|
58
|
-
var
|
|
59
|
-
return /* @__PURE__ */
|
|
58
|
+
children: items.map((item, i) => {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
return /* @__PURE__ */ jsx(
|
|
60
61
|
"li",
|
|
61
62
|
{
|
|
62
|
-
itemScope:
|
|
63
|
+
itemScope: true,
|
|
63
64
|
itemProp: "itemListElement",
|
|
64
65
|
itemType: "https://schema.org/ListItem",
|
|
65
|
-
className:
|
|
66
|
-
"has-fullWidth":
|
|
66
|
+
className: bem("list__item", {
|
|
67
|
+
"has-fullWidth": Boolean(fullWidth)
|
|
67
68
|
}),
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ jsxs(
|
|
69
70
|
"article",
|
|
70
71
|
{
|
|
71
|
-
itemScope:
|
|
72
|
-
className:
|
|
72
|
+
itemScope: true,
|
|
73
|
+
className: bem("list__item__content"),
|
|
73
74
|
itemType: "https://schema.org/BlogPosting",
|
|
74
75
|
children: [
|
|
75
|
-
(
|
|
76
|
-
|
|
76
|
+
(item == null ? void 0 : item.image) && /* @__PURE__ */ jsx("header", { children: /* @__PURE__ */ jsx(
|
|
77
|
+
Link,
|
|
77
78
|
{
|
|
78
|
-
...
|
|
79
|
-
"aria-label": `Read more about ${
|
|
80
|
-
className:
|
|
79
|
+
...item == null ? void 0 : item.redirect,
|
|
80
|
+
"aria-label": `Read more about ${item.title.content}`,
|
|
81
|
+
className: bem(
|
|
81
82
|
"image__link",
|
|
82
83
|
void 0,
|
|
83
|
-
(
|
|
84
|
+
(_a = item == null ? void 0 : item.redirect) == null ? void 0 : _a.className
|
|
84
85
|
),
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
|
|
86
|
+
children: /* @__PURE__ */ jsx(
|
|
87
|
+
Image,
|
|
87
88
|
{
|
|
88
|
-
...
|
|
89
|
+
...item == null ? void 0 : item.image,
|
|
89
90
|
itemProp: "image",
|
|
90
|
-
className:
|
|
91
|
+
className: bem(
|
|
91
92
|
"image",
|
|
92
93
|
void 0,
|
|
93
|
-
(
|
|
94
|
+
(_b = item == null ? void 0 : item.image) == null ? void 0 : _b.className
|
|
94
95
|
)
|
|
95
96
|
}
|
|
96
97
|
)
|
|
97
98
|
}
|
|
98
99
|
) }),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { className: bem("content"), children: [
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
Link,
|
|
102
103
|
{
|
|
103
|
-
...
|
|
104
|
-
"aria-label": `Read more about ${
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
104
|
+
...item == null ? void 0 : item.redirect,
|
|
105
|
+
"aria-label": `Read more about ${item.title.content}`,
|
|
106
|
+
children: /* @__PURE__ */ jsx(
|
|
107
|
+
Headline,
|
|
107
108
|
{
|
|
108
109
|
size: "sm",
|
|
109
110
|
type: "h3",
|
|
110
|
-
...
|
|
111
|
-
className:
|
|
111
|
+
...item.title,
|
|
112
|
+
className: bem("headline", (_c = item.title) == null ? void 0 : _c.className),
|
|
112
113
|
itemProp: "headline",
|
|
113
114
|
variant: "inherit",
|
|
114
|
-
children: (
|
|
115
|
+
children: (_d = item.title) == null ? void 0 : _d.content
|
|
115
116
|
}
|
|
116
117
|
)
|
|
117
118
|
}
|
|
118
119
|
),
|
|
119
|
-
|
|
120
|
+
isString(item == null ? void 0 : item.date) && (item == null ? void 0 : item.date) !== "LL" && /* @__PURE__ */ jsx(
|
|
120
121
|
"p",
|
|
121
122
|
{
|
|
122
|
-
"aria-label": `Published at ${
|
|
123
|
-
className:
|
|
123
|
+
"aria-label": `Published at ${item.date}`,
|
|
124
|
+
className: bem("date"),
|
|
124
125
|
itemProp: "datePublished",
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ jsx(
|
|
126
127
|
"time",
|
|
127
128
|
{
|
|
128
|
-
"aria-label": `Published at ${
|
|
129
|
-
className:
|
|
129
|
+
"aria-label": `Published at ${item.date}`,
|
|
130
|
+
className: bem("date"),
|
|
130
131
|
itemProp: "datePublished",
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
132
|
+
...item == null ? void 0 : item.dateProps,
|
|
133
|
+
children: item.date
|
|
133
134
|
}
|
|
134
135
|
)
|
|
135
136
|
}
|
|
136
137
|
)
|
|
137
138
|
] }),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
139
|
+
/* @__PURE__ */ jsx("meta", { content: (i + 1).toString(), itemProp: "position" }),
|
|
140
|
+
isString(item == null ? void 0 : item.category) && /* @__PURE__ */ jsx("meta", { content: item.category, itemProp: "articleSection" })
|
|
140
141
|
]
|
|
141
142
|
}
|
|
142
143
|
)
|
|
143
144
|
},
|
|
144
|
-
`post-widget-item-${
|
|
145
|
+
`post-widget-item-${item.title}`
|
|
145
146
|
);
|
|
146
147
|
})
|
|
147
148
|
}
|
|
@@ -152,7 +153,7 @@ const r = y(_, "PostWidget"), L = f(
|
|
|
152
153
|
}
|
|
153
154
|
)
|
|
154
155
|
);
|
|
155
|
-
|
|
156
|
+
PostWidget.displayName = "PostWidget";
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
PostWidget
|
|
158
159
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const gradientMove = "gradientMove";
|
|
2
|
+
const fadeInKeyframe = "fadeInKeyframe";
|
|
3
|
+
const styles = {
|
|
2
4
|
"prokodo-PostWidget__list": "prokodo-PostWidget__list",
|
|
3
5
|
"prokodo-PostWidget__list--has-fullWidth": "prokodo-PostWidget__list--has-fullWidth",
|
|
4
6
|
"prokodo-PostWidget__list__item": "prokodo-PostWidget__list__item",
|
|
@@ -9,11 +11,11 @@ const o = "gradientMove", t = "fadeInKeyframe", _ = {
|
|
|
9
11
|
"prokodo-PostWidget__content": "prokodo-PostWidget__content",
|
|
10
12
|
"prokodo-PostWidget__headline": "prokodo-PostWidget__headline",
|
|
11
13
|
"prokodo-PostWidget__date": "prokodo-PostWidget__date",
|
|
12
|
-
gradientMove
|
|
13
|
-
fadeInKeyframe
|
|
14
|
+
gradientMove,
|
|
15
|
+
fadeInKeyframe
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
styles as default,
|
|
19
|
+
fadeInKeyframe,
|
|
20
|
+
gradientMove
|
|
19
21
|
};
|