@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,131 +1,189 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
function hasWindow() {
|
|
4
|
+
return typeof window !== "undefined";
|
|
5
|
+
}
|
|
6
|
+
__name(hasWindow, "hasWindow");
|
|
7
|
+
function getNodeName(node) {
|
|
8
|
+
if (isNode(node)) {
|
|
9
|
+
return (node.nodeName || "").toLowerCase();
|
|
10
|
+
}
|
|
11
|
+
return "#document";
|
|
12
|
+
}
|
|
13
|
+
__name(getNodeName, "getNodeName");
|
|
14
|
+
function getWindow(node) {
|
|
15
|
+
var _node$ownerDocument;
|
|
16
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
17
|
+
}
|
|
18
|
+
__name(getWindow, "getWindow");
|
|
19
|
+
function getDocumentElement(node) {
|
|
20
|
+
var _ref;
|
|
21
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
22
|
+
}
|
|
23
|
+
__name(getDocumentElement, "getDocumentElement");
|
|
24
|
+
function isNode(value) {
|
|
25
|
+
if (!hasWindow()) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
17
29
|
}
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
__name(isNode, "isNode");
|
|
31
|
+
function isElement(value) {
|
|
32
|
+
if (!hasWindow()) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
20
36
|
}
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
__name(isElement, "isElement");
|
|
38
|
+
function isHTMLElement(value) {
|
|
39
|
+
if (!hasWindow()) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
23
43
|
}
|
|
24
|
-
|
|
25
|
-
|
|
44
|
+
__name(isHTMLElement, "isHTMLElement");
|
|
45
|
+
function isShadowRoot(value) {
|
|
46
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
26
50
|
}
|
|
27
|
-
|
|
51
|
+
__name(isShadowRoot, "isShadowRoot");
|
|
52
|
+
function isOverflowElement(element) {
|
|
28
53
|
const {
|
|
29
|
-
overflow
|
|
30
|
-
overflowX
|
|
31
|
-
overflowY
|
|
32
|
-
display
|
|
33
|
-
} =
|
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
54
|
+
overflow,
|
|
55
|
+
overflowX,
|
|
56
|
+
overflowY,
|
|
57
|
+
display
|
|
58
|
+
} = getComputedStyle(element);
|
|
59
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
60
|
+
}
|
|
61
|
+
__name(isOverflowElement, "isOverflowElement");
|
|
62
|
+
function isTableElement(element) {
|
|
63
|
+
return ["table", "td", "th"].includes(getNodeName(element));
|
|
64
|
+
}
|
|
65
|
+
__name(isTableElement, "isTableElement");
|
|
66
|
+
function isTopLayer(element) {
|
|
67
|
+
return [":popover-open", ":modal"].some((selector) => {
|
|
41
68
|
try {
|
|
42
|
-
return
|
|
43
|
-
} catch {
|
|
44
|
-
return
|
|
69
|
+
return element.matches(selector);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
return false;
|
|
45
72
|
}
|
|
46
73
|
});
|
|
47
74
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
__name(isTopLayer, "isTopLayer");
|
|
76
|
+
function isContainingBlock(elementOrCss) {
|
|
77
|
+
const webkit = isWebKit();
|
|
78
|
+
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
79
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
80
|
+
}
|
|
81
|
+
__name(isContainingBlock, "isContainingBlock");
|
|
82
|
+
function getContainingBlock(element) {
|
|
83
|
+
let currentNode = getParentNode(element);
|
|
84
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
85
|
+
if (isContainingBlock(currentNode)) {
|
|
86
|
+
return currentNode;
|
|
87
|
+
} else if (isTopLayer(currentNode)) {
|
|
58
88
|
return null;
|
|
59
|
-
|
|
89
|
+
}
|
|
90
|
+
currentNode = getParentNode(currentNode);
|
|
60
91
|
}
|
|
61
92
|
return null;
|
|
62
93
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
94
|
+
__name(getContainingBlock, "getContainingBlock");
|
|
95
|
+
function isWebKit() {
|
|
96
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
97
|
+
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
98
|
+
}
|
|
99
|
+
__name(isWebKit, "isWebKit");
|
|
100
|
+
function isLastTraversableNode(node) {
|
|
101
|
+
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
102
|
+
}
|
|
103
|
+
__name(isLastTraversableNode, "isLastTraversableNode");
|
|
104
|
+
function getComputedStyle(element) {
|
|
105
|
+
return getWindow(element).getComputedStyle(element);
|
|
106
|
+
}
|
|
107
|
+
__name(getComputedStyle, "getComputedStyle");
|
|
108
|
+
function getNodeScroll(element) {
|
|
109
|
+
if (isElement(element)) {
|
|
110
|
+
return {
|
|
111
|
+
scrollLeft: element.scrollLeft,
|
|
112
|
+
scrollTop: element.scrollTop
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
scrollLeft: element.scrollX,
|
|
117
|
+
scrollTop: element.scrollY
|
|
79
118
|
};
|
|
80
119
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
120
|
+
__name(getNodeScroll, "getNodeScroll");
|
|
121
|
+
function getParentNode(node) {
|
|
122
|
+
if (getNodeName(node) === "html") {
|
|
123
|
+
return node;
|
|
124
|
+
}
|
|
125
|
+
const result = (
|
|
85
126
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
127
|
+
node.assignedSlot || // DOM Element detected.
|
|
128
|
+
node.parentNode || // ShadowRoot detected.
|
|
129
|
+
isShadowRoot(node) && node.host || // Fallback.
|
|
130
|
+
getDocumentElement(node)
|
|
90
131
|
);
|
|
91
|
-
return
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
132
|
+
return isShadowRoot(result) ? result.host : result;
|
|
133
|
+
}
|
|
134
|
+
__name(getParentNode, "getParentNode");
|
|
135
|
+
function getNearestOverflowAncestor(node) {
|
|
136
|
+
const parentNode = getParentNode(node);
|
|
137
|
+
if (isLastTraversableNode(parentNode)) {
|
|
138
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
139
|
+
}
|
|
140
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
141
|
+
return parentNode;
|
|
142
|
+
}
|
|
143
|
+
return getNearestOverflowAncestor(parentNode);
|
|
144
|
+
}
|
|
145
|
+
__name(getNearestOverflowAncestor, "getNearestOverflowAncestor");
|
|
146
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
147
|
+
var _node$ownerDocument2;
|
|
148
|
+
if (list === void 0) {
|
|
149
|
+
list = [];
|
|
150
|
+
}
|
|
151
|
+
if (traverseIframes === void 0) {
|
|
152
|
+
traverseIframes = true;
|
|
153
|
+
}
|
|
154
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
155
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
156
|
+
const win = getWindow(scrollableAncestor);
|
|
157
|
+
if (isBody) {
|
|
158
|
+
const frameElement = getFrameElement(win);
|
|
159
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
104
160
|
}
|
|
105
|
-
return
|
|
161
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
106
162
|
}
|
|
107
|
-
|
|
108
|
-
|
|
163
|
+
__name(getOverflowAncestors, "getOverflowAncestors");
|
|
164
|
+
function getFrameElement(win) {
|
|
165
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
109
166
|
}
|
|
167
|
+
__name(getFrameElement, "getFrameElement");
|
|
110
168
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
169
|
+
getComputedStyle,
|
|
170
|
+
getContainingBlock,
|
|
171
|
+
getDocumentElement,
|
|
172
|
+
getFrameElement,
|
|
173
|
+
getNearestOverflowAncestor,
|
|
174
|
+
getNodeName,
|
|
175
|
+
getNodeScroll,
|
|
176
|
+
getOverflowAncestors,
|
|
177
|
+
getParentNode,
|
|
178
|
+
getWindow,
|
|
179
|
+
isContainingBlock,
|
|
180
|
+
isElement,
|
|
181
|
+
isHTMLElement,
|
|
182
|
+
isLastTraversableNode,
|
|
183
|
+
isNode,
|
|
184
|
+
isOverflowElement,
|
|
185
|
+
isShadowRoot,
|
|
186
|
+
isTableElement,
|
|
187
|
+
isTopLayer,
|
|
188
|
+
isWebKit
|
|
131
189
|
};
|
|
@@ -1,128 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const min = Math.min;
|
|
4
|
+
const max = Math.max;
|
|
5
|
+
const round = Math.round;
|
|
6
|
+
const floor = Math.floor;
|
|
7
|
+
const createCoords = /* @__PURE__ */ __name((v) => ({
|
|
8
|
+
x: v,
|
|
9
|
+
y: v
|
|
10
|
+
}), "createCoords");
|
|
11
|
+
const oppositeSideMap = {
|
|
5
12
|
left: "right",
|
|
6
13
|
right: "left",
|
|
7
14
|
bottom: "top",
|
|
8
15
|
top: "bottom"
|
|
9
|
-
}
|
|
16
|
+
};
|
|
17
|
+
const oppositeAlignmentMap = {
|
|
10
18
|
start: "end",
|
|
11
19
|
end: "start"
|
|
12
20
|
};
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
function w(t, n) {
|
|
17
|
-
return typeof t == "function" ? t(n) : t;
|
|
18
|
-
}
|
|
19
|
-
function f(t) {
|
|
20
|
-
return t.split("-")[0];
|
|
21
|
-
}
|
|
22
|
-
function g(t) {
|
|
23
|
-
return t.split("-")[1];
|
|
21
|
+
function clamp(start, value, end) {
|
|
22
|
+
return max(start, min(value, end));
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
__name(clamp, "clamp");
|
|
25
|
+
function evaluate(value, param) {
|
|
26
|
+
return typeof value === "function" ? value(param) : value;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
__name(evaluate, "evaluate");
|
|
29
|
+
function getSide(placement) {
|
|
30
|
+
return placement.split("-")[0];
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
__name(getSide, "getSide");
|
|
33
|
+
function getAlignment(placement) {
|
|
34
|
+
return placement.split("-")[1];
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
__name(getAlignment, "getAlignment");
|
|
37
|
+
function getOppositeAxis(axis) {
|
|
38
|
+
return axis === "x" ? "y" : "x";
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[i] > n.floating[i] && (c = u(c)), [c, u(c)];
|
|
40
|
+
__name(getOppositeAxis, "getOppositeAxis");
|
|
41
|
+
function getAxisLength(axis) {
|
|
42
|
+
return axis === "y" ? "height" : "width";
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return [
|
|
44
|
+
__name(getAxisLength, "getAxisLength");
|
|
45
|
+
function getSideAxis(placement) {
|
|
46
|
+
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
__name(getSideAxis, "getSideAxis");
|
|
49
|
+
function getAlignmentAxis(placement) {
|
|
50
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
49
51
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
__name(getAlignmentAxis, "getAlignmentAxis");
|
|
53
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
54
|
+
if (rtl === void 0) {
|
|
55
|
+
rtl = false;
|
|
56
|
+
}
|
|
57
|
+
const alignment = getAlignment(placement);
|
|
58
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
59
|
+
const length = getAxisLength(alignmentAxis);
|
|
60
|
+
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
61
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
62
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
63
|
+
}
|
|
64
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
65
|
+
}
|
|
66
|
+
__name(getAlignmentSides, "getAlignmentSides");
|
|
67
|
+
function getExpandedPlacements(placement) {
|
|
68
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
69
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
70
|
+
}
|
|
71
|
+
__name(getExpandedPlacements, "getExpandedPlacements");
|
|
72
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
73
|
+
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
74
|
+
}
|
|
75
|
+
__name(getOppositeAlignmentPlacement, "getOppositeAlignmentPlacement");
|
|
76
|
+
function getSideList(side, isStart, rtl) {
|
|
77
|
+
const lr = ["left", "right"];
|
|
78
|
+
const rl = ["right", "left"];
|
|
79
|
+
const tb = ["top", "bottom"];
|
|
80
|
+
const bt = ["bottom", "top"];
|
|
81
|
+
switch (side) {
|
|
53
82
|
case "top":
|
|
54
83
|
case "bottom":
|
|
55
|
-
|
|
84
|
+
if (rtl) return isStart ? rl : lr;
|
|
85
|
+
return isStart ? lr : rl;
|
|
56
86
|
case "left":
|
|
57
87
|
case "right":
|
|
58
|
-
return
|
|
88
|
+
return isStart ? tb : bt;
|
|
59
89
|
default:
|
|
60
90
|
return [];
|
|
61
91
|
}
|
|
62
92
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
93
|
+
__name(getSideList, "getSideList");
|
|
94
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
95
|
+
const alignment = getAlignment(placement);
|
|
96
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
97
|
+
if (alignment) {
|
|
98
|
+
list = list.map((side) => side + "-" + alignment);
|
|
99
|
+
if (flipAlignment) {
|
|
100
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return list;
|
|
67
104
|
}
|
|
68
|
-
|
|
69
|
-
|
|
105
|
+
__name(getOppositeAxisPlacements, "getOppositeAxisPlacements");
|
|
106
|
+
function getOppositePlacement(placement) {
|
|
107
|
+
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
70
108
|
}
|
|
71
|
-
|
|
109
|
+
__name(getOppositePlacement, "getOppositePlacement");
|
|
110
|
+
function expandPaddingObject(padding) {
|
|
72
111
|
return {
|
|
73
112
|
top: 0,
|
|
74
113
|
right: 0,
|
|
75
114
|
bottom: 0,
|
|
76
115
|
left: 0,
|
|
77
|
-
...
|
|
116
|
+
...padding
|
|
78
117
|
};
|
|
79
118
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
119
|
+
__name(expandPaddingObject, "expandPaddingObject");
|
|
120
|
+
function getPaddingObject(padding) {
|
|
121
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
122
|
+
top: padding,
|
|
123
|
+
right: padding,
|
|
124
|
+
bottom: padding,
|
|
125
|
+
left: padding
|
|
86
126
|
};
|
|
87
127
|
}
|
|
88
|
-
|
|
128
|
+
__name(getPaddingObject, "getPaddingObject");
|
|
129
|
+
function rectToClientRect(rect) {
|
|
89
130
|
const {
|
|
90
|
-
x
|
|
91
|
-
y
|
|
92
|
-
width
|
|
93
|
-
height
|
|
94
|
-
} =
|
|
131
|
+
x,
|
|
132
|
+
y,
|
|
133
|
+
width,
|
|
134
|
+
height
|
|
135
|
+
} = rect;
|
|
95
136
|
return {
|
|
96
|
-
width
|
|
97
|
-
height
|
|
98
|
-
top:
|
|
99
|
-
left:
|
|
100
|
-
right:
|
|
101
|
-
bottom:
|
|
102
|
-
x
|
|
103
|
-
y
|
|
137
|
+
width,
|
|
138
|
+
height,
|
|
139
|
+
top: y,
|
|
140
|
+
left: x,
|
|
141
|
+
right: x + width,
|
|
142
|
+
bottom: y + height,
|
|
143
|
+
x,
|
|
144
|
+
y
|
|
104
145
|
};
|
|
105
146
|
}
|
|
147
|
+
__name(rectToClientRect, "rectToClientRect");
|
|
106
148
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
149
|
+
clamp,
|
|
150
|
+
createCoords,
|
|
151
|
+
evaluate,
|
|
152
|
+
expandPaddingObject,
|
|
153
|
+
floor,
|
|
154
|
+
getAlignment,
|
|
155
|
+
getAlignmentAxis,
|
|
156
|
+
getAlignmentSides,
|
|
157
|
+
getAxisLength,
|
|
158
|
+
getExpandedPlacements,
|
|
159
|
+
getOppositeAlignmentPlacement,
|
|
160
|
+
getOppositeAxis,
|
|
161
|
+
getOppositeAxisPlacements,
|
|
162
|
+
getOppositePlacement,
|
|
163
|
+
getPaddingObject,
|
|
164
|
+
getSide,
|
|
165
|
+
getSideAxis,
|
|
166
|
+
max,
|
|
167
|
+
min,
|
|
168
|
+
rectToClientRect,
|
|
169
|
+
round
|
|
128
170
|
};
|