@prokodo/ui 0.0.37 → 0.0.39
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 +152 -57
- package/dist/_virtual/default.js +4 -0
- package/dist/_virtual/default2.js +4 -0
- package/dist/_virtual/index.js +3 -5
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/parser.js +4 -0
- package/dist/components/accordion/Accordion.client.js +30 -0
- package/dist/components/accordion/Accordion.js +8 -118
- package/dist/components/accordion/Accordion.lazy.js +15 -0
- package/dist/components/accordion/Accordion.server.js +18 -0
- package/dist/components/accordion/Accordion.view.js +102 -0
- package/dist/components/animated/Animated.client.js +49 -0
- package/dist/components/animated/Animated.js +8 -69
- package/dist/components/animated/Animated.lazy.js +17 -0
- package/dist/components/animated/Animated.server.js +12 -0
- package/dist/components/animated/Animated.view.js +35 -0
- package/dist/components/animatedText/AnimatedText.client.js +41 -0
- package/dist/components/animatedText/AnimatedText.js +8 -35
- package/dist/components/animatedText/AnimatedText.lazy.js +17 -0
- package/dist/components/animatedText/AnimatedText.server.js +12 -0
- package/dist/components/animatedText/AnimatedText.view.js +8 -0
- package/dist/components/avatar/Avatar.client.js +12 -0
- package/dist/components/avatar/Avatar.js +7 -81
- package/dist/components/avatar/Avatar.lazy.js +12 -0
- package/dist/components/avatar/Avatar.server.js +11 -0
- package/dist/components/avatar/Avatar.view.js +55 -0
- package/dist/components/base-link/BaseLink.client.js +43 -0
- package/dist/components/base-link/BaseLink.js +9 -37
- package/dist/components/base-link/BaseLink.lazy.js +15 -0
- package/dist/components/base-link/BaseLink.server.js +11 -0
- package/dist/components/base-link/BaseLink.view.js +69 -0
- package/dist/components/button/Button.client.js +5 -2
- package/dist/components/button/Button.module.scss.js +1 -0
- package/dist/components/button/Button.view.js +10 -7
- package/dist/components/calendly/Calendly.client.js +106 -0
- package/dist/components/calendly/Calendly.js +8 -116
- package/dist/components/calendly/Calendly.lazy.js +16 -0
- package/dist/components/calendly/Calendly.server.js +11 -0
- package/dist/components/calendly/Calendly.view.js +25 -0
- package/dist/components/card/Card.client.js +49 -0
- package/dist/components/card/Card.js +11 -201
- package/dist/components/card/Card.lazy.js +18 -0
- package/dist/components/card/Card.module.scss.js +0 -7
- package/dist/components/card/Card.server.js +11 -0
- package/dist/components/card/Card.view.js +111 -0
- package/dist/components/carousel/Carousel.client.js +217 -0
- package/dist/components/carousel/Carousel.js +8 -291
- package/dist/components/carousel/Carousel.lazy.js +16 -0
- package/dist/components/carousel/Carousel.server.js +11 -0
- package/dist/components/carousel/Carousel.view.js +58 -0
- package/dist/components/chip/Chip.client.js +45 -0
- package/dist/components/chip/Chip.js +7 -64
- package/dist/components/chip/Chip.lazy.js +12 -0
- package/dist/components/chip/Chip.module.scss.js +11 -1
- package/dist/components/chip/Chip.server.js +11 -0
- package/dist/components/chip/Chip.view.js +57 -0
- package/dist/components/datePicker/DatePicker.client.js +99 -0
- package/dist/components/datePicker/DatePicker.js +7 -124
- package/dist/components/datePicker/DatePicker.lazy.js +12 -0
- package/dist/components/datePicker/DatePicker.server.js +8 -0
- package/dist/components/datePicker/DatePicker.view.js +42 -0
- package/dist/components/dialog/Dialog.client.js +91 -0
- package/dist/components/dialog/Dialog.js +9 -164
- package/dist/components/dialog/Dialog.lazy.js +15 -0
- package/dist/components/dialog/Dialog.module.scss.js +3 -2
- package/dist/components/dialog/Dialog.server.js +11 -0
- package/dist/components/dialog/Dialog.view.js +118 -0
- package/dist/components/drawer/Drawer.client.js +75 -0
- package/dist/components/drawer/Drawer.js +8 -103
- package/dist/components/drawer/Drawer.lazy.js +15 -0
- package/dist/components/drawer/Drawer.module.scss.js +20 -13
- package/dist/components/drawer/Drawer.server.js +12 -0
- package/dist/components/drawer/Drawer.view.js +75 -0
- package/dist/components/drawer/index.js +2 -4
- package/dist/components/form/Form.client.js +176 -0
- package/dist/components/form/Form.js +9 -288
- package/dist/components/form/Form.lazy.js +12 -0
- package/dist/components/form/Form.module.scss.js +2 -0
- package/dist/components/form/Form.server.js +30 -0
- package/dist/components/form/Form.view.js +106 -0
- package/dist/components/form/FormField.client.js +98 -0
- package/dist/components/form/FormField.js +7 -93
- package/dist/components/form/FormField.lazy.js +12 -0
- package/dist/components/form/FormField.server.js +81 -0
- package/dist/components/headline/{Headline.server.js → Headline.js} +25 -23
- package/dist/components/headline/index.js +2 -4
- package/dist/components/icon/Icon.js +30 -27
- package/dist/components/icon/Icon.module.scss.js +1 -0
- package/dist/components/image-text/ImageText.js +17 -33
- package/dist/components/image-text/ImageText.module.scss.js +0 -4
- package/dist/components/input/Input.client.js +105 -0
- package/dist/components/input/Input.js +7 -200
- package/dist/components/input/Input.lazy.js +12 -0
- package/dist/components/input/Input.module.scss.js +3 -6
- package/dist/components/input/Input.server.js +11 -0
- package/dist/components/input/Input.view.js +128 -0
- package/dist/components/input/InputValidation.js +2 -2
- package/dist/components/inputOTP/InputOTP.js +1 -14
- package/dist/components/link/Link.client.js +2 -0
- package/dist/components/link/Link.js +1 -1
- package/dist/components/link/Link.lazy.js +4 -1
- package/dist/components/link/Link.server.js +2 -0
- package/dist/components/link/Link.view.js +26 -13
- package/dist/components/list/List.js +126 -170
- package/dist/components/list/List.module.scss.js +3 -0
- package/dist/components/loading/Loading.js +4 -3
- package/dist/components/lottie/Lottie.js +3 -5
- package/dist/components/post-item/PostItem.js +2 -2
- package/dist/components/post-teaser/PostTeaser.js +1 -1
- package/dist/components/post-widget/PostWidget.js +1 -1
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +1 -1
- package/dist/components/quote/Quote.js +83 -77
- package/dist/components/rich-text/RichText.client.js +194 -0
- package/dist/components/rich-text/RichText.js +8 -152
- package/dist/components/rich-text/RichText.lazy.js +18 -0
- package/dist/components/rich-text/RichText.server.js +37 -0
- package/dist/components/select/Select.client.js +97 -0
- package/dist/components/select/Select.js +8 -215
- package/dist/components/select/Select.lazy.js +15 -0
- package/dist/components/select/Select.module.scss.js +14 -17
- package/dist/components/select/Select.server.js +11 -0
- package/dist/components/select/Select.view.js +159 -0
- package/dist/components/sidenav/SideNav.client.js +34 -0
- package/dist/components/sidenav/SideNav.js +14 -0
- package/dist/components/sidenav/SideNav.lazy.js +15 -0
- package/dist/components/sidenav/SideNav.module.scss.js +23 -0
- package/dist/components/sidenav/SideNav.server.js +11 -0
- package/dist/components/sidenav/SideNav.view.js +62 -0
- package/dist/components/sidenav/index.js +4 -0
- package/dist/components/slider/Slider.client.js +65 -0
- package/dist/components/slider/Slider.js +7 -108
- package/dist/components/slider/Slider.lazy.js +12 -0
- package/dist/components/slider/Slider.module.scss.js +4 -2
- package/dist/components/slider/Slider.server.js +23 -0
- package/dist/components/slider/Slider.view.js +130 -0
- package/dist/components/stepper/Stepper.client.js +132 -0
- package/dist/components/stepper/Stepper.js +7 -130
- package/dist/components/stepper/Stepper.lazy.js +12 -0
- package/dist/components/stepper/Stepper.module.scss.js +1 -0
- package/dist/components/stepper/Stepper.server.js +33 -0
- package/dist/components/stepper/Stepper.view.js +132 -0
- package/dist/components/switch/Switch.client.js +62 -0
- package/dist/components/switch/Switch.js +7 -103
- package/dist/components/switch/Switch.lazy.js +12 -0
- package/dist/components/switch/Switch.module.scss.js +3 -4
- package/dist/components/switch/Switch.server.js +26 -0
- package/dist/components/switch/Switch.view.js +101 -0
- package/dist/components/table/Table.js +62 -68
- package/dist/components/table/Table.module.scss.js +7 -14
- package/dist/components/table/TableCell.js +44 -0
- package/dist/components/table/TableCell.module.scss.js +14 -0
- package/dist/components/teaser/Teaser.js +78 -81
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +28 -7
- package/dist/helpers/createLazyWrapper.js +34 -6
- package/dist/helpers/validations.js +1 -3
- package/dist/hooks/useHydrationReady.js +3 -3
- package/dist/index.js +3 -1
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/css.js +80 -0
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/default.js +370 -0
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/index.js +30 -0
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/parser.js +64 -0
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/util.js +48 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +390 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +59 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +373 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +50 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +18 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +246 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +58 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +179 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +90 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +126 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +168 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +146 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +130 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +30 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +73 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +65 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +66 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +232 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +181 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +162 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +197 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +18 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +104 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +14 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +157 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +15 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +62 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +49 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +69 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +93 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +47 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +56 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +118 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +113 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +41 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +36 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +77 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +102 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +51 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +65 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js +2169 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +87 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +68 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +22 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +186 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +246 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/default.js +319 -0
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/index.js +47 -0
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/parser.js +220 -0
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/util.js +47 -0
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/xss.js +179 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/accordion/Accordion.client.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.d.ts +13 -3
- package/dist/types/components/accordion/Accordion.lazy.d.ts +14 -0
- package/dist/types/components/accordion/Accordion.model.d.ts +6 -2
- package/dist/types/components/accordion/Accordion.server.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.view.d.ts +3 -0
- package/dist/types/components/animated/Animated.client.d.ts +3 -0
- package/dist/types/components/animated/Animated.d.ts +3 -2
- package/dist/types/components/animated/Animated.lazy.d.ts +5 -0
- package/dist/types/components/animated/Animated.model.d.ts +3 -0
- package/dist/types/components/animated/Animated.server.d.ts +3 -0
- package/dist/types/components/animated/Animated.view.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.client.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.d.ts +8 -3
- package/dist/types/components/animatedText/AnimatedText.lazy.d.ts +9 -0
- package/dist/types/components/animatedText/AnimatedText.model.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.server.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.view.d.ts +3 -0
- package/dist/types/components/avatar/Avatar.client.d.ts +3 -0
- package/dist/types/components/avatar/Avatar.d.ts +10 -3
- package/dist/types/components/avatar/Avatar.lazy.d.ts +11 -0
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -0
- package/dist/types/components/avatar/Avatar.server.d.ts +3 -0
- package/dist/types/components/avatar/Avatar.view.d.ts +3 -0
- package/dist/types/components/base-link/BaseLink.client.d.ts +3 -0
- package/dist/types/components/base-link/BaseLink.d.ts +3 -2
- package/dist/types/components/base-link/BaseLink.lazy.d.ts +5 -0
- package/dist/types/components/base-link/BaseLink.server.d.ts +3 -0
- package/dist/types/components/base-link/BaseLink.view.d.ts +3 -0
- package/dist/types/components/button/Button.client.d.ts +9 -3
- package/dist/types/components/button/Button.model.d.ts +6 -3
- package/dist/types/components/button/Button.view.d.ts +2 -2
- package/dist/types/components/calendly/Calendly.client.d.ts +3 -0
- package/dist/types/components/calendly/Calendly.d.ts +13 -22
- package/dist/types/components/calendly/Calendly.lazy.d.ts +14 -0
- package/dist/types/components/calendly/Calendly.model.d.ts +4 -2
- package/dist/types/components/calendly/Calendly.server.d.ts +3 -0
- package/dist/types/components/calendly/Calendly.view.d.ts +3 -0
- package/dist/types/components/card/Card.client.d.ts +3 -0
- package/dist/types/components/card/Card.d.ts +3 -2
- package/dist/types/components/card/Card.lazy.d.ts +5 -0
- package/dist/types/components/card/Card.model.d.ts +6 -4
- package/dist/types/components/card/Card.server.d.ts +3 -0
- package/dist/types/components/card/Card.view.d.ts +11 -0
- package/dist/types/components/card/index.d.ts +1 -1
- package/dist/types/components/carousel/Carousel.client.d.ts +3 -0
- package/dist/types/components/carousel/Carousel.d.ts +18 -3
- package/dist/types/components/carousel/Carousel.lazy.d.ts +19 -0
- package/dist/types/components/carousel/Carousel.server.d.ts +3 -0
- package/dist/types/components/carousel/Carousel.view.d.ts +3 -0
- package/dist/types/components/chip/Chip.client.d.ts +3 -0
- package/dist/types/components/chip/Chip.d.ts +3 -2
- package/dist/types/components/chip/Chip.lazy.d.ts +5 -0
- package/dist/types/components/chip/Chip.model.d.ts +7 -4
- package/dist/types/components/chip/Chip.server.d.ts +3 -0
- package/dist/types/components/chip/Chip.view.d.ts +5 -0
- package/dist/types/components/datePicker/DatePicker.client.d.ts +4 -0
- package/dist/types/components/datePicker/DatePicker.d.ts +3 -2
- package/dist/types/components/datePicker/DatePicker.lazy.d.ts +5 -0
- package/dist/types/components/datePicker/DatePicker.model.d.ts +8 -3
- package/dist/types/components/datePicker/DatePicker.server.d.ts +4 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -0
- package/dist/types/components/dialog/Dialog.client.d.ts +3 -0
- package/dist/types/components/dialog/Dialog.d.ts +7 -3
- package/dist/types/components/dialog/Dialog.lazy.d.ts +8 -0
- package/dist/types/components/dialog/Dialog.model.d.ts +25 -15
- package/dist/types/components/dialog/Dialog.server.d.ts +4 -0
- package/dist/types/components/dialog/Dialog.view.d.ts +3 -0
- package/dist/types/components/drawer/Drawer.client.d.ts +3 -0
- package/dist/types/components/drawer/Drawer.d.ts +5 -5
- package/dist/types/components/drawer/Drawer.lazy.d.ts +5 -0
- package/dist/types/components/drawer/Drawer.model.d.ts +29 -8
- package/dist/types/components/drawer/Drawer.server.d.ts +3 -0
- package/dist/types/components/drawer/Drawer.view.d.ts +3 -0
- package/dist/types/components/drawer/index.d.ts +1 -1
- package/dist/types/components/form/Form.client.d.ts +2 -0
- package/dist/types/components/form/Form.d.ts +17 -3
- package/dist/types/components/form/Form.lazy.d.ts +18 -0
- package/dist/types/components/form/Form.model.d.ts +22 -5
- package/dist/types/components/form/Form.server.d.ts +4 -0
- package/dist/types/components/form/Form.view.d.ts +3 -0
- package/dist/types/components/form/FormField.client.d.ts +9 -0
- package/dist/types/components/form/FormField.d.ts +8 -9
- package/dist/types/components/form/FormField.lazy.d.ts +9 -0
- package/dist/types/components/form/FormField.server.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +1 -1
- package/dist/types/components/headline/{Headline.server.d.ts → Headline.d.ts} +1 -1
- package/dist/types/components/headline/Headline.model.d.ts +7 -6
- package/dist/types/components/headline/index.d.ts +1 -2
- package/dist/types/components/image/Image.model.d.ts +5 -3
- package/dist/types/components/image/index.d.ts +1 -1
- package/dist/types/components/image-text/ImageText.d.ts +1 -1
- package/dist/types/components/image-text/ImageText.model.d.ts +5 -5
- package/dist/types/components/image-text/index.d.ts +1 -1
- package/dist/types/components/input/Input.client.d.ts +5 -0
- package/dist/types/components/input/Input.d.ts +3 -2
- package/dist/types/components/input/Input.lazy.d.ts +5 -0
- package/dist/types/components/input/Input.model.d.ts +21 -15
- package/dist/types/components/input/Input.server.d.ts +3 -0
- package/dist/types/components/input/Input.view.d.ts +3 -0
- package/dist/types/components/input/index.d.ts +1 -1
- package/dist/types/components/link/Link.client.d.ts +1 -1
- package/dist/types/components/link/Link.lazy.d.ts +1 -1
- package/dist/types/components/link/Link.model.d.ts +2 -1
- package/dist/types/components/link/Link.view.d.ts +2 -2
- package/dist/types/components/list/List.d.ts +5 -2
- package/dist/types/components/list/List.model.d.ts +3 -3
- package/dist/types/components/loading/Loading.d.ts +1 -1
- package/dist/types/components/lottie/Lottie.model.d.ts +1 -3
- package/dist/types/components/lottie/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.client.d.ts +6 -0
- package/dist/types/components/rich-text/RichText.d.ts +13 -3
- package/dist/types/components/rich-text/RichText.lazy.d.ts +14 -0
- package/dist/types/components/rich-text/RichText.model.d.ts +9 -4
- package/dist/types/components/rich-text/RichText.server.d.ts +3 -0
- package/dist/types/components/select/Select.client.d.ts +5 -0
- package/dist/types/components/select/Select.d.ts +3 -2
- package/dist/types/components/select/Select.lazy.d.ts +5 -0
- package/dist/types/components/select/Select.model.d.ts +35 -23
- package/dist/types/components/select/Select.server.d.ts +3 -0
- package/dist/types/components/select/Select.view.d.ts +3 -0
- package/dist/types/components/select/index.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +3 -0
- package/dist/types/components/sidenav/SideNav.d.ts +3 -0
- package/dist/types/components/sidenav/SideNav.lazy.d.ts +5 -0
- package/dist/types/components/sidenav/SideNav.model.d.ts +24 -0
- package/dist/types/components/sidenav/SideNav.server.d.ts +3 -0
- package/dist/types/components/sidenav/SideNav.view.d.ts +3 -0
- package/dist/types/components/sidenav/index.d.ts +2 -0
- package/dist/types/components/slider/Slider.client.d.ts +4 -0
- package/dist/types/components/slider/Slider.d.ts +3 -2
- package/dist/types/components/slider/Slider.lazy.d.ts +5 -0
- package/dist/types/components/slider/Slider.model.d.ts +29 -6
- package/dist/types/components/slider/Slider.server.d.ts +3 -0
- package/dist/types/components/slider/Slider.view.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.client.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.d.ts +11 -3
- package/dist/types/components/stepper/Stepper.lazy.d.ts +12 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +18 -3
- package/dist/types/components/stepper/Stepper.server.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.view.d.ts +3 -0
- package/dist/types/components/switch/Switch.client.d.ts +4 -0
- package/dist/types/components/switch/Switch.d.ts +18 -3
- package/dist/types/components/switch/Switch.lazy.d.ts +19 -0
- package/dist/types/components/switch/Switch.model.d.ts +19 -10
- package/dist/types/components/switch/Switch.server.d.ts +3 -0
- package/dist/types/components/switch/Switch.view.d.ts +3 -0
- package/dist/types/components/table/Table.d.ts +1 -1
- package/dist/types/components/table/Table.model.d.ts +16 -14
- package/dist/types/components/table/TableCell.d.ts +10 -0
- package/dist/types/components/teaser/Teaser.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -3
- package/dist/types/components/teaser/index.d.ts +1 -1
- package/dist/types/helpers/createLazyWrapper.d.ts +4 -1
- package/dist/types/hooks/useHydrationReady.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/colors.d.ts +1 -1
- package/dist/ui.css +2726 -2031
- package/package.json +20 -6
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/assets/images/card_background_primary_1.webp.js +0 -4
- package/dist/assets/images/card_background_primary_2.webp.js +0 -4
- package/dist/assets/images/card_background_primary_3.webp.js +0 -4
- package/dist/assets/images/card_background_primary_4.webp.js +0 -4
- package/dist/assets/images/card_background_secondary_1.webp.js +0 -4
- package/dist/assets/images/card_background_secondary_2.webp.js +0 -4
- package/dist/assets/images/card_background_secondary_3.webp.js +0 -4
- package/dist/assets/images/card_background_secondary_4.webp.js +0 -4
- package/dist/components/headline/Headline.client.js +0 -85
- package/dist/components/lottie/LottieAnimations.js +0 -35
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -456
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -641
- 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 +0 -250
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -189
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -170
- 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 +0 -133
- 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 +0 -13
- 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 +0 -85
- 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 +0 -315
- 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 +0 -13
- 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 +0 -459
- 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 +0 -13
- 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 +0 -173
- 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 +0 -13
- 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 +0 -225
- 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 +0 -8
- 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 +0 -13
- 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 +0 -20
- 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 +0 -14
- 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 +0 -166
- 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 +0 -32
- 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 +0 -74
- 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 +0 -8
- 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 +0 -14
- 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 +0 -318
- 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 +0 -211
- 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 +0 -81
- 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 +0 -82
- 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 +0 -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/SelectProvider.js +0 -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/defaultOptionStringifier.js +0 -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/useSelect/selectReducer.js +0 -74
- 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 +0 -361
- 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 +0 -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/useSlider/useSlider.js +0 -620
- 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 +0 -87
- 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 +0 -8
- 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 +0 -55
- 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 +0 -25
- 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 +0 -9
- 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 +0 -19
- 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 +0 -9
- 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 +0 -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/useControllableReducer.js +0 -101
- 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 +0 -25
- 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 +0 -28
- 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 +0 -20
- 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 +0 -19
- 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 +0 -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/clamp/clamp.js +0 -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/composeClasses/composeClasses.js +0 -24
- 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 +0 -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/extractEventHandlers/extractEventHandlers.js +0 -16
- 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 +0 -17
- 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 +0 -18
- 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 +0 -16
- 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 +0 -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/mergeSlotProps/mergeSlotProps.js +0 -71
- 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 +0 -16
- 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 +0 -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/resolveComponentProps/resolveComponentProps.js +0 -12
- 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 +0 -13
- 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 +0 -40
- 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 +0 -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/useEventCallback/useEventCallback.js +0 -18
- 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 +0 -20
- 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 +0 -28
- 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 +0 -34
- 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 +0 -14
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -21
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -83
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +0 -72
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +0 -490
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +0 -23
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -15
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +0 -14
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -183
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -111
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -20
- package/dist/types/components/headline/Headline.client.d.ts +0 -3
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
4
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef } from "react";
|
|
5
6
|
import LinkClient from "../link/Link.client.js";
|
|
6
7
|
import { ButtonView } from "./Button.view.js";
|
|
7
8
|
import { Loading } from "../loading/Loading.js";
|
|
8
|
-
function ButtonClient(props) {
|
|
9
|
+
function ButtonClient(props, ref) {
|
|
9
10
|
const { loading, iconProps = {}, ...rest } = props;
|
|
10
11
|
const isIconOnly = typeof (iconProps == null ? void 0 : iconProps.name) === "string" && !props.title;
|
|
11
12
|
const finalIconProps = Boolean(loading) ? { name: void 0 } : iconProps;
|
|
@@ -15,6 +16,7 @@ function ButtonClient(props) {
|
|
|
15
16
|
ButtonView,
|
|
16
17
|
{
|
|
17
18
|
...rest,
|
|
19
|
+
buttonRef: ref,
|
|
18
20
|
iconProps: finalIconProps,
|
|
19
21
|
isIconOnly: Boolean(isIconOnly),
|
|
20
22
|
LinkComponent: LinkClient
|
|
@@ -23,6 +25,7 @@ function ButtonClient(props) {
|
|
|
23
25
|
] });
|
|
24
26
|
}
|
|
25
27
|
__name(ButtonClient, "ButtonClient");
|
|
28
|
+
const ButtonClient$1 = forwardRef(ButtonClient);
|
|
26
29
|
export {
|
|
27
|
-
ButtonClient as default
|
|
30
|
+
ButtonClient$1 as default
|
|
28
31
|
};
|
|
@@ -17,6 +17,7 @@ const styles = {
|
|
|
17
17
|
"prokodo-Button--has-text-warning": "prokodo-Button--has-text-warning",
|
|
18
18
|
"prokodo-Button--has-text-error": "prokodo-Button--has-text-error",
|
|
19
19
|
"prokodo-Button--has-variant-outlined": "prokodo-Button--has-variant-outlined",
|
|
20
|
+
"prokodo-Button--has-icon": "prokodo-Button--has-icon",
|
|
20
21
|
"prokodo-Button--icon-only": "prokodo-Button--icon-only",
|
|
21
22
|
"prokodo-Button--has-fullWidth": "prokodo-Button--has-fullWidth",
|
|
22
23
|
"prokodo-Button__title": "prokodo-Button__title",
|
|
@@ -2,13 +2,15 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { create } from "../../helpers/bem.js";
|
|
5
|
+
import { isString } from "../../helpers/validations.js";
|
|
5
6
|
import styles from "./Button.module.scss.js";
|
|
6
7
|
import { Icon } from "../icon/Icon.js";
|
|
7
8
|
const bem = create(styles, "Button");
|
|
8
|
-
|
|
9
|
+
const ButtonView = /* @__PURE__ */ __name(({
|
|
10
|
+
buttonRef,
|
|
9
11
|
fullWidth,
|
|
10
|
-
color,
|
|
11
|
-
variant,
|
|
12
|
+
color = "primary",
|
|
13
|
+
variant = "contained",
|
|
12
14
|
className,
|
|
13
15
|
contentClassName,
|
|
14
16
|
disabled,
|
|
@@ -17,7 +19,7 @@ function ButtonView({
|
|
|
17
19
|
isIconOnly,
|
|
18
20
|
LinkComponent,
|
|
19
21
|
...rest
|
|
20
|
-
}) {
|
|
22
|
+
}) => {
|
|
21
23
|
const isOutlined = variant === "outlined";
|
|
22
24
|
const iconName = iconProps == null ? void 0 : iconProps.name;
|
|
23
25
|
const iconMod = { "icon-only": isIconOnly };
|
|
@@ -34,6 +36,7 @@ function ButtonView({
|
|
|
34
36
|
void 0,
|
|
35
37
|
{
|
|
36
38
|
"has-fullWidth": Boolean(fullWidth),
|
|
39
|
+
"has-icon": !Boolean(isIconOnly) && isString(iconProps == null ? void 0 : iconProps.name),
|
|
37
40
|
[`has-variant-${variant}`]: true,
|
|
38
41
|
[`has-bg-${color}`]: variant === "contained",
|
|
39
42
|
[`has-text-${color}`]: variant === "text",
|
|
@@ -47,15 +50,15 @@ function ButtonView({
|
|
|
47
50
|
"button",
|
|
48
51
|
{
|
|
49
52
|
...common,
|
|
53
|
+
ref: buttonRef,
|
|
50
54
|
disabled: Boolean(disabled),
|
|
51
|
-
tabIndex:
|
|
55
|
+
tabIndex: Boolean(disabled) ? -1 : rest.tabIndex,
|
|
52
56
|
type: "button",
|
|
53
57
|
...rest,
|
|
54
58
|
children: variantNode
|
|
55
59
|
}
|
|
56
60
|
);
|
|
57
|
-
}
|
|
58
|
-
__name(ButtonView, "ButtonView");
|
|
61
|
+
}, "ButtonView");
|
|
59
62
|
export {
|
|
60
63
|
ButtonView
|
|
61
64
|
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useRef, useState, useCallback, useMemo, useEffect } from "react";
|
|
6
|
+
import { isString } from "../../helpers/validations.js";
|
|
7
|
+
import { Animated } from "../animated/Animated.js";
|
|
8
|
+
import { Loading } from "../loading/Loading.js";
|
|
9
|
+
let scriptAlreadyLoaded = false;
|
|
10
|
+
function CalendlyClient(props) {
|
|
11
|
+
const {
|
|
12
|
+
calendlyId,
|
|
13
|
+
data,
|
|
14
|
+
colors = {
|
|
15
|
+
text: "#4D4D4D",
|
|
16
|
+
button: "#1E90FF",
|
|
17
|
+
background: "#FFFFFF"
|
|
18
|
+
},
|
|
19
|
+
animationProps,
|
|
20
|
+
hideLoading,
|
|
21
|
+
hideCookieSettings,
|
|
22
|
+
hideEventTypeDetails,
|
|
23
|
+
hideDetails,
|
|
24
|
+
...rest
|
|
25
|
+
} = props;
|
|
26
|
+
const calendlyRef = useRef(null);
|
|
27
|
+
const [widgetInitialized, setWidgetInitialized] = useState(false);
|
|
28
|
+
const [scriptLoaded, setScriptLoaded] = useState(scriptAlreadyLoaded);
|
|
29
|
+
const format = /* @__PURE__ */ __name((c) => c == null ? void 0 : c.replaceAll("#", ""), "format");
|
|
30
|
+
const safePrefill = useCallback(() => {
|
|
31
|
+
const res = {};
|
|
32
|
+
if (!data) return res;
|
|
33
|
+
for (const k of ["name", "email", "firstName", "lastName"]) {
|
|
34
|
+
if (isString(data[k])) res[k] = data[k];
|
|
35
|
+
}
|
|
36
|
+
return res;
|
|
37
|
+
}, [data]);
|
|
38
|
+
const dataUrl = useMemo(() => {
|
|
39
|
+
const p = new URLSearchParams();
|
|
40
|
+
if (Boolean(hideDetails)) p.set("hide_landing_page_details", "1");
|
|
41
|
+
if (Boolean(hideEventTypeDetails)) p.set("hide_event_type_details", "1");
|
|
42
|
+
if (Boolean(hideCookieSettings)) p.set("hide_gdpr_banner", "1");
|
|
43
|
+
if (isString(colors.background)) p.set("background_color", format(colors == null ? void 0 : colors.background));
|
|
44
|
+
if (isString(colors.text)) p.set("text_color", format(colors.text));
|
|
45
|
+
if (isString(colors.button)) p.set("primary_color", format(colors.button));
|
|
46
|
+
if (isString(data == null ? void 0 : data.utm_campaign)) p.set("utm_campaign", (data == null ? void 0 : data.utm_campaign) ?? "");
|
|
47
|
+
if (isString(data == null ? void 0 : data.utm_source)) p.set("utm_source", (data == null ? void 0 : data.utm_source) ?? "");
|
|
48
|
+
return `https://calendly.com/${calendlyId}?${p.toString()}`;
|
|
49
|
+
}, [
|
|
50
|
+
calendlyId,
|
|
51
|
+
colors,
|
|
52
|
+
data,
|
|
53
|
+
hideDetails,
|
|
54
|
+
hideEventTypeDetails,
|
|
55
|
+
hideCookieSettings
|
|
56
|
+
]);
|
|
57
|
+
const onAnimate = useCallback(
|
|
58
|
+
(visible) => {
|
|
59
|
+
if (!visible || !scriptLoaded || widgetInitialized) return;
|
|
60
|
+
const tryInit = /* @__PURE__ */ __name((attempt = 0) => {
|
|
61
|
+
var _a;
|
|
62
|
+
if (window.Calendly) {
|
|
63
|
+
(_a = calendlyRef.current) == null ? void 0 : _a.setAttribute("data-url", dataUrl);
|
|
64
|
+
window.Calendly.initInlineWidget({
|
|
65
|
+
url: dataUrl,
|
|
66
|
+
parentElement: calendlyRef.current,
|
|
67
|
+
prefill: safePrefill()
|
|
68
|
+
});
|
|
69
|
+
setWidgetInitialized(true);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (attempt < 10) setTimeout(() => tryInit(attempt + 1), 100);
|
|
73
|
+
else console.warn("Calendly widget failed to load.");
|
|
74
|
+
}, "tryInit");
|
|
75
|
+
tryInit();
|
|
76
|
+
},
|
|
77
|
+
[scriptLoaded, widgetInitialized, dataUrl, safePrefill]
|
|
78
|
+
);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (scriptAlreadyLoaded || typeof document === "undefined") {
|
|
81
|
+
setScriptLoaded(true);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const s = document.createElement("script");
|
|
85
|
+
s.src = "https://assets.calendly.com/assets/external/widget.js";
|
|
86
|
+
s.async = true;
|
|
87
|
+
s.onload = () => {
|
|
88
|
+
scriptAlreadyLoaded = true;
|
|
89
|
+
setScriptLoaded(true);
|
|
90
|
+
};
|
|
91
|
+
document.body.appendChild(s);
|
|
92
|
+
}, []);
|
|
93
|
+
const divStyle = {
|
|
94
|
+
display: widgetInitialized ? "block" : "none",
|
|
95
|
+
minWidth: 320,
|
|
96
|
+
height: 700
|
|
97
|
+
};
|
|
98
|
+
return /* @__PURE__ */ jsxs(Animated, { ...animationProps, onAnimate, children: [
|
|
99
|
+
!Boolean(hideLoading) && !widgetInitialized && /* @__PURE__ */ jsx(Loading, {}),
|
|
100
|
+
/* @__PURE__ */ jsx("div", { ref: calendlyRef, ...rest, style: divStyle })
|
|
101
|
+
] });
|
|
102
|
+
}
|
|
103
|
+
__name(CalendlyClient, "CalendlyClient");
|
|
104
|
+
export {
|
|
105
|
+
CalendlyClient as default
|
|
106
|
+
};
|
|
@@ -1,121 +1,13 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
data,
|
|
12
|
-
color = {
|
|
13
|
-
text: "#4D4D4D",
|
|
14
|
-
button: "#1E90FF",
|
|
15
|
-
background: "#FFFFFF"
|
|
16
|
-
},
|
|
17
|
-
animationProps,
|
|
18
|
-
hideCookieSettings,
|
|
19
|
-
hideEventTypeDetails,
|
|
20
|
-
hideDetails,
|
|
21
|
-
...props
|
|
22
|
-
}) => {
|
|
23
|
-
const calendlyRef = useRef(null);
|
|
24
|
-
const [widgetInitialized, setWidgetInitialized] = useState(false);
|
|
25
|
-
const [scriptLoaded, setScriptLoaded] = useState(scriptAlreadyLoaded);
|
|
26
|
-
const formatColor = /* @__PURE__ */ __name((color2) => color2 == null ? void 0 : color2.replaceAll("#", ""), "formatColor");
|
|
27
|
-
const getSafePrefill = /* @__PURE__ */ __name((data2) => {
|
|
28
|
-
const result = {};
|
|
29
|
-
if (!data2) return result;
|
|
30
|
-
for (const key of ["name", "email", "firstName", "lastName"]) {
|
|
31
|
-
if (isString(data2[key])) {
|
|
32
|
-
result[key] = data2[key];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return result;
|
|
36
|
-
}, "getSafePrefill");
|
|
37
|
-
const dataUrl = useMemo(() => {
|
|
38
|
-
const urlParams = new URLSearchParams();
|
|
39
|
-
if (Boolean(hideDetails)) urlParams.set("hide_landing_page_details", "1");
|
|
40
|
-
if (Boolean(hideEventTypeDetails)) urlParams.set("hide_event_type_details", "1");
|
|
41
|
-
if (Boolean(hideCookieSettings)) urlParams.set("hide_gdpr_banner", "1");
|
|
42
|
-
if (isString(color.background))
|
|
43
|
-
urlParams.set("background_color", formatColor(color.background));
|
|
44
|
-
if (isString(color.text))
|
|
45
|
-
urlParams.set("text_color", formatColor(color.text));
|
|
46
|
-
if (isString(color.button))
|
|
47
|
-
urlParams.set("primary_color", formatColor(color.button));
|
|
48
|
-
if (isString(data == null ? void 0 : data.utm_campaign))
|
|
49
|
-
urlParams.set("utm_campaign", (data == null ? void 0 : data.utm_campaign) ?? "");
|
|
50
|
-
if (isString(data == null ? void 0 : data.utm_source))
|
|
51
|
-
urlParams.set("utm_source", (data == null ? void 0 : data.utm_source) ?? "");
|
|
52
|
-
return `https://calendly.com/${calendlyId}?${urlParams.toString()}`;
|
|
53
|
-
}, [
|
|
54
|
-
calendlyId,
|
|
55
|
-
color,
|
|
56
|
-
data,
|
|
57
|
-
hideDetails,
|
|
58
|
-
hideEventTypeDetails,
|
|
59
|
-
hideCookieSettings
|
|
60
|
-
]);
|
|
61
|
-
const handleAnimate = useCallback(
|
|
62
|
-
(isVisible) => {
|
|
63
|
-
if (isVisible && scriptLoaded && !widgetInitialized) {
|
|
64
|
-
const maxRetries = 10;
|
|
65
|
-
let retryCount = 0;
|
|
66
|
-
const tryInit = /* @__PURE__ */ __name(() => {
|
|
67
|
-
var _a;
|
|
68
|
-
if (window.Calendly) {
|
|
69
|
-
(_a = calendlyRef.current) == null ? void 0 : _a.setAttribute("data-url", dataUrl);
|
|
70
|
-
window.Calendly.initInlineWidget({
|
|
71
|
-
url: dataUrl,
|
|
72
|
-
parentElement: calendlyRef.current,
|
|
73
|
-
prefill: getSafePrefill(data)
|
|
74
|
-
});
|
|
75
|
-
setWidgetInitialized(true);
|
|
76
|
-
} else if (retryCount < maxRetries) {
|
|
77
|
-
retryCount += 1;
|
|
78
|
-
setTimeout(tryInit, 100);
|
|
79
|
-
} else {
|
|
80
|
-
console.warn("Calendly widget failed to load.");
|
|
81
|
-
}
|
|
82
|
-
}, "tryInit");
|
|
83
|
-
tryInit();
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[scriptLoaded, widgetInitialized, dataUrl, data]
|
|
87
|
-
);
|
|
88
|
-
useEffect(() => {
|
|
89
|
-
if (scriptAlreadyLoaded || typeof document === "undefined") {
|
|
90
|
-
setScriptLoaded(true);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const script = document.createElement("script");
|
|
94
|
-
script.src = "https://assets.calendly.com/assets/external/widget.js";
|
|
95
|
-
script.async = true;
|
|
96
|
-
script.onload = () => {
|
|
97
|
-
scriptAlreadyLoaded = true;
|
|
98
|
-
setScriptLoaded(true);
|
|
99
|
-
};
|
|
100
|
-
document.body.appendChild(script);
|
|
101
|
-
}, []);
|
|
102
|
-
return /* @__PURE__ */ jsxs(Animated, { ...animationProps, onAnimate: handleAnimate, children: [
|
|
103
|
-
!widgetInitialized && /* @__PURE__ */ jsx(Loading, {}),
|
|
104
|
-
/* @__PURE__ */ jsx(
|
|
105
|
-
"div",
|
|
106
|
-
{
|
|
107
|
-
...props,
|
|
108
|
-
ref: calendlyRef,
|
|
109
|
-
style: {
|
|
110
|
-
display: widgetInitialized ? "block" : "none",
|
|
111
|
-
minWidth: 320,
|
|
112
|
-
height: 700
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
)
|
|
116
|
-
] });
|
|
117
|
-
}, "Calendly");
|
|
118
|
-
Calendly.displayName = "Calendly";
|
|
3
|
+
import { createIsland } from "../../helpers/createIsland.js";
|
|
4
|
+
import CalendlyServer from "./Calendly.server.js";
|
|
5
|
+
const Calendly = createIsland({
|
|
6
|
+
name: "Calendly",
|
|
7
|
+
Server: CalendlyServer,
|
|
8
|
+
loadLazy: /* @__PURE__ */ __name(() => import("./Calendly.lazy.js"), "loadLazy"),
|
|
9
|
+
isInteractive: /* @__PURE__ */ __name(() => true, "isInteractive")
|
|
10
|
+
});
|
|
119
11
|
export {
|
|
120
12
|
Calendly
|
|
121
13
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
import { createLazyWrapper } from "../../helpers/createLazyWrapper.js";
|
|
5
|
+
import CalendlyClient from "./Calendly.client.js";
|
|
6
|
+
import CalendlyServer from "./Calendly.server.js";
|
|
7
|
+
const Calendly_lazy = createLazyWrapper({
|
|
8
|
+
name: "Calendly",
|
|
9
|
+
Client: CalendlyClient,
|
|
10
|
+
Server: CalendlyServer,
|
|
11
|
+
hydrateOnVisible: true,
|
|
12
|
+
isInteractive: /* @__PURE__ */ __name(() => true, "isInteractive")
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
Calendly_lazy as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { CalendlyView } from "./Calendly.view.js";
|
|
5
|
+
function CalendlyServer(props) {
|
|
6
|
+
return /* @__PURE__ */ jsx(CalendlyView, { ...props });
|
|
7
|
+
}
|
|
8
|
+
__name(CalendlyServer, "CalendlyServer");
|
|
9
|
+
export {
|
|
10
|
+
CalendlyServer as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Animated } from "../animated/Animated.js";
|
|
5
|
+
import { Loading } from "../loading/Loading.js";
|
|
6
|
+
function CalendlyView({
|
|
7
|
+
animationProps,
|
|
8
|
+
hideLoading,
|
|
9
|
+
LoadingComponent = Loading,
|
|
10
|
+
...rest
|
|
11
|
+
}) {
|
|
12
|
+
const style = {
|
|
13
|
+
display: "none",
|
|
14
|
+
minWidth: 320,
|
|
15
|
+
height: 700
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs(Animated, { ...animationProps, children: [
|
|
18
|
+
!Boolean(hideLoading) && /* @__PURE__ */ jsx(LoadingComponent, {}),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { ...rest, "data-calendly": true, style })
|
|
20
|
+
] });
|
|
21
|
+
}
|
|
22
|
+
__name(CalendlyView, "CalendlyView");
|
|
23
|
+
export {
|
|
24
|
+
CalendlyView
|
|
25
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback } from "react";
|
|
6
|
+
import { isString } from "../../helpers/validations.js";
|
|
7
|
+
import { CardView } from "./Card.view.js";
|
|
8
|
+
function CardClient({
|
|
9
|
+
disabled,
|
|
10
|
+
onClick,
|
|
11
|
+
redirect,
|
|
12
|
+
onKeyDown,
|
|
13
|
+
onMouseEnter,
|
|
14
|
+
onMouseLeave,
|
|
15
|
+
...rest
|
|
16
|
+
}) {
|
|
17
|
+
const isClickable = !Boolean(disabled) && typeof onClick === "function" || !!redirect && typeof redirect.href === "string";
|
|
18
|
+
const handleClickVoid = useCallback(() => {
|
|
19
|
+
onClick == null ? void 0 : onClick();
|
|
20
|
+
}, [onClick]);
|
|
21
|
+
const handleKey = useCallback(
|
|
22
|
+
(e) => {
|
|
23
|
+
if (e.code === "Enter" && typeof onClick === "function" && !Boolean(disabled)) onClick();
|
|
24
|
+
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
25
|
+
},
|
|
26
|
+
[onClick, onKeyDown, disabled]
|
|
27
|
+
);
|
|
28
|
+
const linkRole = isString(redirect == null ? void 0 : redirect.href) && !Boolean(disabled) ? "link" : void 0;
|
|
29
|
+
const linkTabIndex = isString(redirect == null ? void 0 : redirect.href) && !Boolean(disabled) ? 0 : void 0;
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
CardView,
|
|
32
|
+
{
|
|
33
|
+
...rest,
|
|
34
|
+
disabled,
|
|
35
|
+
isClickable,
|
|
36
|
+
redirect,
|
|
37
|
+
role: linkRole,
|
|
38
|
+
tabIndex: linkTabIndex,
|
|
39
|
+
onClick: !Boolean(disabled) ? handleClickVoid : void 0,
|
|
40
|
+
onKeyDown: handleKey,
|
|
41
|
+
onMouseEnter,
|
|
42
|
+
onMouseLeave
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
__name(CardClient, "CardClient");
|
|
47
|
+
export {
|
|
48
|
+
CardClient as default
|
|
49
|
+
};
|
|
@@ -1,206 +1,16 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { isString } from "../../helpers/validations.js";
|
|
15
|
-
import styles from "./Card.module.scss.js";
|
|
16
|
-
import { Skeleton } from "../skeleton/Skeleton.js";
|
|
17
|
-
import { Animated } from "../animated/Animated.js";
|
|
18
|
-
import { Link } from "../link/Link.js";
|
|
19
|
-
import { Image } from "../image/Image.js";
|
|
20
|
-
const bem = create(styles, "Card");
|
|
21
|
-
const Card = /* @__PURE__ */ __name(({
|
|
22
|
-
ref,
|
|
23
|
-
variant = "white",
|
|
24
|
-
loading,
|
|
25
|
-
skeletonProps = {},
|
|
26
|
-
highlight,
|
|
27
|
-
gradiant,
|
|
28
|
-
gradiantClassName,
|
|
29
|
-
enableShadow,
|
|
30
|
-
animated = true,
|
|
31
|
-
customAnimation,
|
|
32
|
-
className,
|
|
33
|
-
contentClassName,
|
|
34
|
-
background,
|
|
35
|
-
backgroundProps,
|
|
36
|
-
disabled,
|
|
37
|
-
redirect,
|
|
38
|
-
onClick,
|
|
39
|
-
onKeyDown,
|
|
40
|
-
onMouseEnter,
|
|
41
|
-
onMouseLeave,
|
|
42
|
-
children
|
|
43
|
-
}) => {
|
|
44
|
-
const renderSkeleton = useCallback(
|
|
45
|
-
(modifier) => Boolean(loading) && /* @__PURE__ */ jsx(
|
|
46
|
-
Skeleton,
|
|
47
|
-
{
|
|
48
|
-
className: bem("skeleton", modifier),
|
|
49
|
-
variant: "rectangular",
|
|
50
|
-
...skeletonProps
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
[loading, skeletonProps]
|
|
54
|
-
);
|
|
55
|
-
const handleKeyDown = useCallback(
|
|
56
|
-
(e) => {
|
|
57
|
-
if (e.code === "Enter") {
|
|
58
|
-
onClick == null ? void 0 : onClick();
|
|
59
|
-
}
|
|
60
|
-
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
61
|
-
},
|
|
62
|
-
[onClick, onKeyDown]
|
|
63
|
-
);
|
|
64
|
-
const renderContainer = useCallback(
|
|
65
|
-
(card) => {
|
|
66
|
-
const isDisabled = disabled === true;
|
|
67
|
-
const onClickIsFunction = typeof onClick === "function";
|
|
68
|
-
const isClickable = onClickIsFunction && !isDisabled || isString(redirect == null ? void 0 : redirect.href);
|
|
69
|
-
const modifier = {
|
|
70
|
-
[variant]: true,
|
|
71
|
-
"has-highlight": Boolean(highlight),
|
|
72
|
-
"has-gradiant": Boolean(gradiant),
|
|
73
|
-
"has-background": Boolean(background),
|
|
74
|
-
"has-shadow": isClickable && enableShadow === void 0 || Boolean(enableShadow),
|
|
75
|
-
"has-animation": animated,
|
|
76
|
-
"is-clickable": isClickable
|
|
77
|
-
};
|
|
78
|
-
const cardProps = {
|
|
79
|
-
ref,
|
|
80
|
-
className: bem(void 0, modifier, className),
|
|
81
|
-
role: isClickable ? "button" : void 0,
|
|
82
|
-
"aria-disabled": isDisabled ? true : void 0,
|
|
83
|
-
tabIndex: isClickable && !isDisabled && !Boolean(redirect) ? 0 : -1,
|
|
84
|
-
onMouseEnter,
|
|
85
|
-
onMouseLeave,
|
|
86
|
-
onKeyDown: isClickable ? handleKeyDown : void 0,
|
|
87
|
-
onClick: onClickIsFunction && !isDisabled ? onClick : void 0
|
|
88
|
-
};
|
|
89
|
-
if (customAnimation) {
|
|
90
|
-
return /* @__PURE__ */ jsxs(Animated, { animation: customAnimation, ...cardProps, children: [
|
|
91
|
-
renderSkeleton(modifier),
|
|
92
|
-
card
|
|
93
|
-
] });
|
|
94
|
-
}
|
|
95
|
-
return /* @__PURE__ */ jsxs("div", { ...cardProps, children: [
|
|
96
|
-
renderSkeleton(modifier),
|
|
97
|
-
card
|
|
98
|
-
] });
|
|
99
|
-
},
|
|
100
|
-
[
|
|
101
|
-
ref,
|
|
102
|
-
redirect,
|
|
103
|
-
variant,
|
|
104
|
-
highlight,
|
|
105
|
-
gradiant,
|
|
106
|
-
background,
|
|
107
|
-
animated,
|
|
108
|
-
customAnimation,
|
|
109
|
-
className,
|
|
110
|
-
onClick,
|
|
111
|
-
handleKeyDown,
|
|
112
|
-
onMouseEnter,
|
|
113
|
-
onMouseLeave,
|
|
114
|
-
disabled,
|
|
115
|
-
enableShadow,
|
|
116
|
-
renderSkeleton
|
|
117
|
-
]
|
|
118
|
-
);
|
|
119
|
-
const renderCard = useCallback(
|
|
120
|
-
() => redirect !== void 0 ? /* @__PURE__ */ jsx(
|
|
121
|
-
Link,
|
|
122
|
-
{
|
|
123
|
-
disabled,
|
|
124
|
-
className: bem(
|
|
125
|
-
"content",
|
|
126
|
-
{
|
|
127
|
-
[variant]: true,
|
|
128
|
-
"has-link": true
|
|
129
|
-
},
|
|
130
|
-
contentClassName
|
|
131
|
-
),
|
|
132
|
-
...redirect,
|
|
133
|
-
children
|
|
134
|
-
}
|
|
135
|
-
) : /* @__PURE__ */ jsx("div", { className: bem("content", void 0, contentClassName), children }),
|
|
136
|
-
[contentClassName, variant, redirect, disabled, children]
|
|
137
|
-
);
|
|
138
|
-
const renderBackground = useCallback(() => {
|
|
139
|
-
let backgroundSrc = BGprimary1;
|
|
140
|
-
if (variant === "secondary") {
|
|
141
|
-
switch (background) {
|
|
142
|
-
case 2:
|
|
143
|
-
backgroundSrc = BGsecondary2;
|
|
144
|
-
break;
|
|
145
|
-
case 3:
|
|
146
|
-
backgroundSrc = BGsecondary3;
|
|
147
|
-
break;
|
|
148
|
-
case 4:
|
|
149
|
-
backgroundSrc = BGsecondary4;
|
|
150
|
-
break;
|
|
151
|
-
default:
|
|
152
|
-
backgroundSrc = BGsecondary1;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
switch (background) {
|
|
156
|
-
case 2:
|
|
157
|
-
backgroundSrc = BGprimary2;
|
|
158
|
-
break;
|
|
159
|
-
case 3:
|
|
160
|
-
backgroundSrc = BGprimary3;
|
|
161
|
-
break;
|
|
162
|
-
case 4:
|
|
163
|
-
backgroundSrc = BGprimary4;
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
return /* @__PURE__ */ jsx(
|
|
167
|
-
Image,
|
|
168
|
-
{
|
|
169
|
-
alt: "prokodo - background image",
|
|
170
|
-
src: typeof background === "string" ? background : backgroundSrc,
|
|
171
|
-
...backgroundProps,
|
|
172
|
-
className: bem("background", void 0, backgroundProps == null ? void 0 : backgroundProps.className),
|
|
173
|
-
imageComponent: (backgroundProps == null ? void 0 : backgroundProps.imageComponent) ?? "img"
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
}, [variant, background, backgroundProps]);
|
|
177
|
-
if (Boolean(gradiant)) {
|
|
178
|
-
return renderContainer(
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
"div",
|
|
181
|
-
{
|
|
182
|
-
className: bem(
|
|
183
|
-
"gradiant",
|
|
184
|
-
{
|
|
185
|
-
[variant]: variant !== "inherit" && variant !== "white"
|
|
186
|
-
},
|
|
187
|
-
gradiantClassName
|
|
188
|
-
),
|
|
189
|
-
children: renderCard()
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
if (background !== void 0) {
|
|
195
|
-
return renderContainer(
|
|
196
|
-
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
197
|
-
renderCard(),
|
|
198
|
-
renderBackground()
|
|
199
|
-
] })
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
return renderContainer(renderCard());
|
|
203
|
-
}, "Card");
|
|
3
|
+
import { createIsland } from "../../helpers/createIsland.js";
|
|
4
|
+
import CardServer from "./Card.server.js";
|
|
5
|
+
const Card = createIsland({
|
|
6
|
+
name: "Card",
|
|
7
|
+
Server: CardServer,
|
|
8
|
+
loadLazy: /* @__PURE__ */ __name(() => import("./Card.lazy.js"), "loadLazy"),
|
|
9
|
+
isInteractive: /* @__PURE__ */ __name((p) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return !Boolean(p.disabled) && typeof p.onClick === "function" || typeof ((_a = p.redirect) == null ? void 0 : _a.href) === "string";
|
|
12
|
+
}, "isInteractive")
|
|
13
|
+
});
|
|
204
14
|
export {
|
|
205
15
|
Card
|
|
206
16
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
import { createLazyWrapper } from "../../helpers/createLazyWrapper.js";
|
|
5
|
+
import CardClient from "./Card.client.js";
|
|
6
|
+
import CardServer from "./Card.server.js";
|
|
7
|
+
const Card_lazy = createLazyWrapper({
|
|
8
|
+
name: "Card",
|
|
9
|
+
Client: CardClient,
|
|
10
|
+
Server: CardServer,
|
|
11
|
+
isInteractive: /* @__PURE__ */ __name((p) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return !Boolean(p.disabled) && typeof p.onClick === "function" || typeof ((_a = p.redirect) == null ? void 0 : _a.href) === "string";
|
|
14
|
+
}, "isInteractive")
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
Card_lazy as default
|
|
18
|
+
};
|