@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,28 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import PropTypes from "../../../../../../../_virtual/index.js";
|
|
5
|
+
import { clsx } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
6
|
+
import { isHostComponent } from "../utils/isHostComponent.js";
|
|
7
|
+
import { getSliderUtilityClass } from "./sliderClasses.js";
|
|
8
|
+
import { resolveComponentProps } from "../utils/resolveComponentProps.js";
|
|
9
|
+
import { useClassNamesOverride } from "../utils/ClassNameConfigurator.js";
|
|
10
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
11
|
+
import { useSlider, valueToPercent } from "../useSlider/useSlider.js";
|
|
12
|
+
import useSlotProps from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
13
|
+
import composeClasses from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
14
|
+
import chainPropTypes from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js";
|
|
15
|
+
function Identity(x) {
|
|
16
|
+
return x;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
__name(Identity, "Identity");
|
|
19
|
+
const useUtilityClasses = /* @__PURE__ */ __name((ownerState) => {
|
|
17
20
|
const {
|
|
18
|
-
disabled
|
|
19
|
-
dragging
|
|
20
|
-
marked
|
|
21
|
-
orientation
|
|
22
|
-
track
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
root: ["root",
|
|
21
|
+
disabled,
|
|
22
|
+
dragging,
|
|
23
|
+
marked,
|
|
24
|
+
orientation,
|
|
25
|
+
track
|
|
26
|
+
} = ownerState;
|
|
27
|
+
const slots = {
|
|
28
|
+
root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse"],
|
|
26
29
|
rail: ["rail"],
|
|
27
30
|
track: ["track"],
|
|
28
31
|
mark: ["mark"],
|
|
@@ -30,202 +33,232 @@ const Oe = (l) => {
|
|
|
30
33
|
markLabel: ["markLabel"],
|
|
31
34
|
markLabelActive: ["markLabelActive"],
|
|
32
35
|
valueLabel: ["valueLabel"],
|
|
33
|
-
thumb: ["thumb",
|
|
36
|
+
thumb: ["thumb", disabled && "disabled"],
|
|
34
37
|
active: ["active"],
|
|
35
38
|
disabled: ["disabled"],
|
|
36
39
|
focusVisible: ["focusVisible"]
|
|
37
|
-
}
|
|
38
|
-
|
|
40
|
+
};
|
|
41
|
+
return composeClasses(slots, useClassNamesOverride(getSliderUtilityClass));
|
|
42
|
+
}, "useUtilityClasses");
|
|
43
|
+
const Slider = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function Slider2(props, forwardedRef) {
|
|
39
44
|
const {
|
|
40
|
-
"aria-label":
|
|
41
|
-
"aria-valuetext":
|
|
42
|
-
"aria-labelledby":
|
|
43
|
-
className
|
|
44
|
-
disableSwap
|
|
45
|
-
disabled
|
|
46
|
-
getAriaLabel
|
|
47
|
-
getAriaValueText
|
|
48
|
-
marks:
|
|
49
|
-
max
|
|
50
|
-
min
|
|
51
|
-
name
|
|
52
|
-
onChange
|
|
53
|
-
onChangeCommitted
|
|
54
|
-
orientation
|
|
55
|
-
shiftStep
|
|
56
|
-
scale
|
|
57
|
-
step
|
|
58
|
-
tabIndex
|
|
59
|
-
track
|
|
60
|
-
value:
|
|
61
|
-
valueLabelFormat
|
|
62
|
-
isRtl
|
|
63
|
-
defaultValue
|
|
64
|
-
slotProps
|
|
65
|
-
slots
|
|
66
|
-
...
|
|
67
|
-
} =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
externalSlotProps:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
45
|
+
"aria-label": ariaLabel,
|
|
46
|
+
"aria-valuetext": ariaValuetext,
|
|
47
|
+
"aria-labelledby": ariaLabelledby,
|
|
48
|
+
className,
|
|
49
|
+
disableSwap = false,
|
|
50
|
+
disabled = false,
|
|
51
|
+
getAriaLabel,
|
|
52
|
+
getAriaValueText,
|
|
53
|
+
marks: marksProp = false,
|
|
54
|
+
max = 100,
|
|
55
|
+
min = 0,
|
|
56
|
+
name,
|
|
57
|
+
onChange,
|
|
58
|
+
onChangeCommitted,
|
|
59
|
+
orientation = "horizontal",
|
|
60
|
+
shiftStep = 10,
|
|
61
|
+
scale = Identity,
|
|
62
|
+
step = 1,
|
|
63
|
+
tabIndex,
|
|
64
|
+
track = "normal",
|
|
65
|
+
value: valueProp,
|
|
66
|
+
valueLabelFormat = Identity,
|
|
67
|
+
isRtl = false,
|
|
68
|
+
defaultValue,
|
|
69
|
+
slotProps = {},
|
|
70
|
+
slots = {},
|
|
71
|
+
...other
|
|
72
|
+
} = props;
|
|
73
|
+
const partialOwnerState = {
|
|
74
|
+
...props,
|
|
75
|
+
marks: marksProp,
|
|
76
|
+
disabled,
|
|
77
|
+
disableSwap,
|
|
78
|
+
isRtl,
|
|
79
|
+
defaultValue,
|
|
80
|
+
max,
|
|
81
|
+
min,
|
|
82
|
+
orientation,
|
|
83
|
+
scale,
|
|
84
|
+
step,
|
|
85
|
+
shiftStep,
|
|
86
|
+
track,
|
|
87
|
+
valueLabelFormat
|
|
88
|
+
};
|
|
89
|
+
const {
|
|
90
|
+
axisProps,
|
|
91
|
+
getRootProps,
|
|
92
|
+
getHiddenInputProps,
|
|
93
|
+
getThumbProps,
|
|
94
|
+
active,
|
|
95
|
+
axis,
|
|
96
|
+
range,
|
|
97
|
+
focusedThumbIndex,
|
|
98
|
+
dragging,
|
|
99
|
+
marks,
|
|
100
|
+
values,
|
|
101
|
+
trackOffset,
|
|
102
|
+
trackLeap,
|
|
103
|
+
getThumbStyle
|
|
104
|
+
} = useSlider({
|
|
105
|
+
...partialOwnerState,
|
|
106
|
+
rootRef: forwardedRef
|
|
107
|
+
});
|
|
108
|
+
const ownerState = {
|
|
109
|
+
...partialOwnerState,
|
|
110
|
+
marked: marks.length > 0 && marks.some((mark) => mark.label),
|
|
111
|
+
dragging,
|
|
112
|
+
focusedThumbIndex,
|
|
113
|
+
activeThumbIndex: active
|
|
114
|
+
};
|
|
115
|
+
const classes = useUtilityClasses(ownerState);
|
|
116
|
+
const Root = slots.root ?? "span";
|
|
117
|
+
const rootProps = useSlotProps({
|
|
118
|
+
elementType: Root,
|
|
119
|
+
getSlotProps: getRootProps,
|
|
120
|
+
externalSlotProps: slotProps.root,
|
|
121
|
+
externalForwardedProps: other,
|
|
122
|
+
ownerState,
|
|
123
|
+
className: [classes.root, className]
|
|
124
|
+
});
|
|
125
|
+
const Rail = slots.rail ?? "span";
|
|
126
|
+
const railProps = useSlotProps({
|
|
127
|
+
elementType: Rail,
|
|
128
|
+
externalSlotProps: slotProps.rail,
|
|
129
|
+
ownerState,
|
|
130
|
+
className: classes.rail
|
|
131
|
+
});
|
|
132
|
+
const Track = slots.track ?? "span";
|
|
133
|
+
const trackProps = useSlotProps({
|
|
134
|
+
elementType: Track,
|
|
135
|
+
externalSlotProps: slotProps.track,
|
|
121
136
|
additionalProps: {
|
|
122
137
|
style: {
|
|
123
|
-
...
|
|
124
|
-
...
|
|
138
|
+
...axisProps[axis].offset(trackOffset),
|
|
139
|
+
...axisProps[axis].leap(trackLeap)
|
|
125
140
|
}
|
|
126
141
|
},
|
|
127
|
-
ownerState
|
|
128
|
-
className:
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
elementType:
|
|
141
|
-
externalSlotProps:
|
|
142
|
-
ownerState
|
|
143
|
-
className: s.mark
|
|
144
|
-
}), I = u.markLabel ?? "span", R = c({
|
|
145
|
-
elementType: I,
|
|
146
|
-
externalSlotProps: i.markLabel,
|
|
147
|
-
ownerState: n
|
|
148
|
-
}), K = u.input || "input", ge = c({
|
|
149
|
-
elementType: K,
|
|
150
|
-
getSlotProps: ie,
|
|
151
|
-
externalSlotProps: i.input,
|
|
152
|
-
ownerState: n
|
|
142
|
+
ownerState,
|
|
143
|
+
className: classes.track
|
|
144
|
+
});
|
|
145
|
+
const Thumb = slots.thumb ?? "span";
|
|
146
|
+
const thumbProps = useSlotProps({
|
|
147
|
+
elementType: Thumb,
|
|
148
|
+
getSlotProps: getThumbProps,
|
|
149
|
+
externalSlotProps: slotProps.thumb,
|
|
150
|
+
ownerState,
|
|
151
|
+
skipResolvingSlotProps: true
|
|
152
|
+
});
|
|
153
|
+
const ValueLabel = slots.valueLabel;
|
|
154
|
+
const valueLabelProps = useSlotProps({
|
|
155
|
+
elementType: ValueLabel,
|
|
156
|
+
externalSlotProps: slotProps.valueLabel,
|
|
157
|
+
ownerState
|
|
153
158
|
});
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
const Mark = slots.mark ?? "span";
|
|
160
|
+
const markProps = useSlotProps({
|
|
161
|
+
elementType: Mark,
|
|
162
|
+
externalSlotProps: slotProps.mark,
|
|
163
|
+
ownerState,
|
|
164
|
+
className: classes.mark
|
|
165
|
+
});
|
|
166
|
+
const MarkLabel = slots.markLabel ?? "span";
|
|
167
|
+
const markLabelProps = useSlotProps({
|
|
168
|
+
elementType: MarkLabel,
|
|
169
|
+
externalSlotProps: slotProps.markLabel,
|
|
170
|
+
ownerState
|
|
171
|
+
});
|
|
172
|
+
const Input = slots.input || "input";
|
|
173
|
+
const inputProps = useSlotProps({
|
|
174
|
+
elementType: Input,
|
|
175
|
+
getSlotProps: getHiddenInputProps,
|
|
176
|
+
externalSlotProps: slotProps.input,
|
|
177
|
+
ownerState
|
|
178
|
+
});
|
|
179
|
+
return /* @__PURE__ */ jsxs(Root, {
|
|
180
|
+
...rootProps,
|
|
181
|
+
children: [/* @__PURE__ */ jsx(Rail, {
|
|
182
|
+
...railProps
|
|
183
|
+
}), /* @__PURE__ */ jsx(Track, {
|
|
184
|
+
...trackProps
|
|
185
|
+
}), marks.filter((mark) => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
186
|
+
const percent = valueToPercent(mark.value, min, max);
|
|
187
|
+
const style = axisProps[axis].offset(percent);
|
|
188
|
+
let markActive;
|
|
189
|
+
if (track === false) {
|
|
190
|
+
markActive = values.indexOf(mark.value) !== -1;
|
|
191
|
+
} else {
|
|
192
|
+
markActive = track === "normal" && (range ? mark.value >= values[0] && mark.value <= values[values.length - 1] : mark.value <= values[0]) || track === "inverted" && (range ? mark.value <= values[0] || mark.value >= values[values.length - 1] : mark.value >= values[0]);
|
|
193
|
+
}
|
|
194
|
+
return /* @__PURE__ */ jsxs(React.Fragment, {
|
|
195
|
+
children: [/* @__PURE__ */ jsx(Mark, {
|
|
196
|
+
"data-index": index,
|
|
197
|
+
...markProps,
|
|
198
|
+
...!isHostComponent(Mark) && {
|
|
199
|
+
markActive
|
|
169
200
|
},
|
|
170
201
|
style: {
|
|
171
|
-
...
|
|
172
|
-
...
|
|
202
|
+
...style,
|
|
203
|
+
...markProps.style
|
|
173
204
|
},
|
|
174
|
-
className:
|
|
175
|
-
}),
|
|
176
|
-
"aria-hidden":
|
|
177
|
-
"data-index":
|
|
178
|
-
...
|
|
179
|
-
...!
|
|
180
|
-
markLabelActive:
|
|
205
|
+
className: clsx(markProps.className, markActive && classes.markActive)
|
|
206
|
+
}), mark.label != null ? /* @__PURE__ */ jsx(MarkLabel, {
|
|
207
|
+
"aria-hidden": true,
|
|
208
|
+
"data-index": index,
|
|
209
|
+
...markLabelProps,
|
|
210
|
+
...!isHostComponent(MarkLabel) && {
|
|
211
|
+
markLabelActive: markActive
|
|
181
212
|
},
|
|
182
213
|
style: {
|
|
183
|
-
...
|
|
184
|
-
...
|
|
214
|
+
...style,
|
|
215
|
+
...markLabelProps.style
|
|
185
216
|
},
|
|
186
|
-
className:
|
|
187
|
-
children:
|
|
217
|
+
className: clsx(classes.markLabel, markLabelProps.className, markActive && classes.markLabelActive),
|
|
218
|
+
children: mark.label
|
|
188
219
|
}) : null]
|
|
189
|
-
},
|
|
190
|
-
}),
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
220
|
+
}, index);
|
|
221
|
+
}), values.map((value, index) => {
|
|
222
|
+
const percent = valueToPercent(value, min, max);
|
|
223
|
+
const style = axisProps[axis].offset(percent);
|
|
224
|
+
const resolvedSlotProps = resolveComponentProps(slotProps.thumb, ownerState, {
|
|
225
|
+
index,
|
|
226
|
+
focused: focusedThumbIndex === index,
|
|
227
|
+
active: active === index
|
|
195
228
|
});
|
|
196
|
-
return /* @__PURE__ */
|
|
197
|
-
"data-index":
|
|
198
|
-
...
|
|
199
|
-
...
|
|
200
|
-
className:
|
|
229
|
+
return /* @__PURE__ */ jsxs(Thumb, {
|
|
230
|
+
"data-index": index,
|
|
231
|
+
...thumbProps,
|
|
232
|
+
...resolvedSlotProps,
|
|
233
|
+
className: clsx(classes.thumb, thumbProps.className, resolvedSlotProps == null ? void 0 : resolvedSlotProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
201
234
|
style: {
|
|
202
|
-
...
|
|
203
|
-
...
|
|
204
|
-
...
|
|
205
|
-
...
|
|
235
|
+
...style,
|
|
236
|
+
...getThumbStyle(index),
|
|
237
|
+
...thumbProps.style,
|
|
238
|
+
...resolvedSlotProps == null ? void 0 : resolvedSlotProps.style
|
|
206
239
|
},
|
|
207
|
-
children: [/* @__PURE__ */
|
|
208
|
-
"data-index":
|
|
209
|
-
"aria-label":
|
|
210
|
-
"aria-valuenow":
|
|
211
|
-
"aria-labelledby":
|
|
212
|
-
"aria-valuetext":
|
|
213
|
-
value:
|
|
214
|
-
...
|
|
215
|
-
}),
|
|
216
|
-
...!
|
|
217
|
-
valueLabelFormat
|
|
218
|
-
index
|
|
219
|
-
disabled
|
|
240
|
+
children: [/* @__PURE__ */ jsx(Input, {
|
|
241
|
+
"data-index": index,
|
|
242
|
+
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
243
|
+
"aria-valuenow": scale(value),
|
|
244
|
+
"aria-labelledby": ariaLabelledby,
|
|
245
|
+
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
246
|
+
value: values[index],
|
|
247
|
+
...inputProps
|
|
248
|
+
}), ValueLabel ? /* @__PURE__ */ jsx(ValueLabel, {
|
|
249
|
+
...!isHostComponent(ValueLabel) && {
|
|
250
|
+
valueLabelFormat,
|
|
251
|
+
index,
|
|
252
|
+
disabled
|
|
220
253
|
},
|
|
221
|
-
...
|
|
222
|
-
children: typeof
|
|
254
|
+
...valueLabelProps,
|
|
255
|
+
children: typeof valueLabelFormat === "function" ? valueLabelFormat(scale(value), index) : valueLabelFormat
|
|
223
256
|
}) : null]
|
|
224
|
-
},
|
|
257
|
+
}, index);
|
|
225
258
|
})]
|
|
226
259
|
});
|
|
227
|
-
});
|
|
228
|
-
process.env.NODE_ENV !== "production"
|
|
260
|
+
}, "Slider"));
|
|
261
|
+
process.env.NODE_ENV !== "production" ? Slider.propTypes = {
|
|
229
262
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
230
263
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
231
264
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -233,36 +266,48 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
233
266
|
/**
|
|
234
267
|
* The label of the slider.
|
|
235
268
|
*/
|
|
236
|
-
"aria-label":
|
|
269
|
+
"aria-label": chainPropTypes(PropTypes.string, (props) => {
|
|
270
|
+
const range = Array.isArray(props.value || props.defaultValue);
|
|
271
|
+
if (range && props["aria-label"] != null) {
|
|
272
|
+
return new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.");
|
|
273
|
+
}
|
|
274
|
+
return null;
|
|
275
|
+
}),
|
|
237
276
|
/**
|
|
238
277
|
* The id of the element containing a label for the slider.
|
|
239
278
|
*/
|
|
240
|
-
"aria-labelledby":
|
|
279
|
+
"aria-labelledby": PropTypes.string,
|
|
241
280
|
/**
|
|
242
281
|
* A string value that provides a user-friendly name for the current value of the slider.
|
|
243
282
|
*/
|
|
244
|
-
"aria-valuetext":
|
|
283
|
+
"aria-valuetext": chainPropTypes(PropTypes.string, (props) => {
|
|
284
|
+
const range = Array.isArray(props.value || props.defaultValue);
|
|
285
|
+
if (range && props["aria-valuetext"] != null) {
|
|
286
|
+
return new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.");
|
|
287
|
+
}
|
|
288
|
+
return null;
|
|
289
|
+
}),
|
|
245
290
|
/**
|
|
246
291
|
* The default value. Use when the component is not controlled.
|
|
247
292
|
*/
|
|
248
|
-
defaultValue:
|
|
293
|
+
defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
|
|
249
294
|
/**
|
|
250
295
|
* If `true`, the component is disabled.
|
|
251
296
|
* @default false
|
|
252
297
|
*/
|
|
253
|
-
disabled:
|
|
298
|
+
disabled: PropTypes.bool,
|
|
254
299
|
/**
|
|
255
300
|
* If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
|
|
256
301
|
* @default false
|
|
257
302
|
*/
|
|
258
|
-
disableSwap:
|
|
303
|
+
disableSwap: PropTypes.bool,
|
|
259
304
|
/**
|
|
260
305
|
* Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider.
|
|
261
306
|
* This is important for screen reader users.
|
|
262
307
|
* @param {number} index The thumb label's index to format.
|
|
263
308
|
* @returns {string}
|
|
264
309
|
*/
|
|
265
|
-
getAriaLabel:
|
|
310
|
+
getAriaLabel: PropTypes.func,
|
|
266
311
|
/**
|
|
267
312
|
* Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.
|
|
268
313
|
* This is important for screen reader users.
|
|
@@ -270,38 +315,38 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
270
315
|
* @param {number} index The thumb label's index to format.
|
|
271
316
|
* @returns {string}
|
|
272
317
|
*/
|
|
273
|
-
getAriaValueText:
|
|
318
|
+
getAriaValueText: PropTypes.func,
|
|
274
319
|
/**
|
|
275
320
|
* If `true` the Slider will be rendered right-to-left (with the lowest value on the right-hand side).
|
|
276
321
|
* @default false
|
|
277
322
|
*/
|
|
278
|
-
isRtl:
|
|
323
|
+
isRtl: PropTypes.bool,
|
|
279
324
|
/**
|
|
280
325
|
* Marks indicate predetermined values to which the user can move the slider.
|
|
281
326
|
* If `true` the marks are spaced according the value of the `step` prop.
|
|
282
327
|
* If an array, it should contain objects with `value` and an optional `label` keys.
|
|
283
328
|
* @default false
|
|
284
329
|
*/
|
|
285
|
-
marks:
|
|
286
|
-
label:
|
|
287
|
-
value:
|
|
288
|
-
})),
|
|
330
|
+
marks: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
331
|
+
label: PropTypes.node,
|
|
332
|
+
value: PropTypes.number.isRequired
|
|
333
|
+
})), PropTypes.bool]),
|
|
289
334
|
/**
|
|
290
335
|
* The maximum allowed value of the slider.
|
|
291
336
|
* Should not be equal to min.
|
|
292
337
|
* @default 100
|
|
293
338
|
*/
|
|
294
|
-
max:
|
|
339
|
+
max: PropTypes.number,
|
|
295
340
|
/**
|
|
296
341
|
* The minimum allowed value of the slider.
|
|
297
342
|
* Should not be equal to max.
|
|
298
343
|
* @default 0
|
|
299
344
|
*/
|
|
300
|
-
min:
|
|
345
|
+
min: PropTypes.number,
|
|
301
346
|
/**
|
|
302
347
|
* Name attribute of the hidden `input` element.
|
|
303
348
|
*/
|
|
304
|
-
name:
|
|
349
|
+
name: PropTypes.string,
|
|
305
350
|
/**
|
|
306
351
|
* Callback function that is fired when the slider's value changed.
|
|
307
352
|
*
|
|
@@ -311,19 +356,19 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
311
356
|
* @param {number | number[]} value The new value.
|
|
312
357
|
* @param {number} activeThumb Index of the currently moved thumb.
|
|
313
358
|
*/
|
|
314
|
-
onChange:
|
|
359
|
+
onChange: PropTypes.func,
|
|
315
360
|
/**
|
|
316
361
|
* Callback function that is fired when the `mouseup` is triggered.
|
|
317
362
|
*
|
|
318
363
|
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
319
364
|
* @param {number | number[]} value The new value.
|
|
320
365
|
*/
|
|
321
|
-
onChangeCommitted:
|
|
366
|
+
onChangeCommitted: PropTypes.func,
|
|
322
367
|
/**
|
|
323
368
|
* The component orientation.
|
|
324
369
|
* @default 'horizontal'
|
|
325
370
|
*/
|
|
326
|
-
orientation:
|
|
371
|
+
orientation: PropTypes.oneOf(["horizontal", "vertical"]),
|
|
327
372
|
/**
|
|
328
373
|
* A transformation function, to change the scale of the slider.
|
|
329
374
|
* @param {any} x
|
|
@@ -332,40 +377,40 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
332
377
|
* return x;
|
|
333
378
|
* }
|
|
334
379
|
*/
|
|
335
|
-
scale:
|
|
380
|
+
scale: PropTypes.func,
|
|
336
381
|
/**
|
|
337
382
|
* The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
|
|
338
383
|
* @default 10
|
|
339
384
|
*/
|
|
340
|
-
shiftStep:
|
|
385
|
+
shiftStep: PropTypes.number,
|
|
341
386
|
/**
|
|
342
387
|
* The props used for each slot inside the Slider.
|
|
343
388
|
* @default {}
|
|
344
389
|
*/
|
|
345
|
-
slotProps:
|
|
346
|
-
input:
|
|
347
|
-
mark:
|
|
348
|
-
markLabel:
|
|
349
|
-
rail:
|
|
350
|
-
root:
|
|
351
|
-
thumb:
|
|
352
|
-
track:
|
|
353
|
-
valueLabel:
|
|
390
|
+
slotProps: PropTypes.shape({
|
|
391
|
+
input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
392
|
+
mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
393
|
+
markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
394
|
+
rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
395
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
396
|
+
thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
397
|
+
track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
398
|
+
valueLabel: PropTypes.oneOfType([PropTypes.any, PropTypes.func])
|
|
354
399
|
}),
|
|
355
400
|
/**
|
|
356
401
|
* The components used for each slot inside the Slider.
|
|
357
402
|
* Either a string to use a HTML element or a component.
|
|
358
403
|
* @default {}
|
|
359
404
|
*/
|
|
360
|
-
slots:
|
|
361
|
-
input:
|
|
362
|
-
mark:
|
|
363
|
-
markLabel:
|
|
364
|
-
rail:
|
|
365
|
-
root:
|
|
366
|
-
thumb:
|
|
367
|
-
track:
|
|
368
|
-
valueLabel:
|
|
405
|
+
slots: PropTypes.shape({
|
|
406
|
+
input: PropTypes.elementType,
|
|
407
|
+
mark: PropTypes.elementType,
|
|
408
|
+
markLabel: PropTypes.elementType,
|
|
409
|
+
rail: PropTypes.elementType,
|
|
410
|
+
root: PropTypes.elementType,
|
|
411
|
+
thumb: PropTypes.elementType,
|
|
412
|
+
track: PropTypes.elementType,
|
|
413
|
+
valueLabel: PropTypes.elementType
|
|
369
414
|
}),
|
|
370
415
|
/**
|
|
371
416
|
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
@@ -375,11 +420,11 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
375
420
|
* When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
|
|
376
421
|
* @default 1
|
|
377
422
|
*/
|
|
378
|
-
step:
|
|
423
|
+
step: PropTypes.number,
|
|
379
424
|
/**
|
|
380
425
|
* Tab index attribute of the hidden `input` element.
|
|
381
426
|
*/
|
|
382
|
-
tabIndex:
|
|
427
|
+
tabIndex: PropTypes.number,
|
|
383
428
|
/**
|
|
384
429
|
* The track presentation:
|
|
385
430
|
*
|
|
@@ -388,12 +433,12 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
388
433
|
* - `false` the track will render without a bar.
|
|
389
434
|
* @default 'normal'
|
|
390
435
|
*/
|
|
391
|
-
track:
|
|
436
|
+
track: PropTypes.oneOf(["inverted", "normal", false]),
|
|
392
437
|
/**
|
|
393
438
|
* The value of the slider.
|
|
394
439
|
* For ranged sliders, provide an array with two values.
|
|
395
440
|
*/
|
|
396
|
-
value:
|
|
441
|
+
value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
|
|
397
442
|
/**
|
|
398
443
|
* The format function the value label's value.
|
|
399
444
|
*
|
|
@@ -407,8 +452,8 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
407
452
|
* return x;
|
|
408
453
|
* }
|
|
409
454
|
*/
|
|
410
|
-
valueLabelFormat:
|
|
411
|
-
}
|
|
455
|
+
valueLabelFormat: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
|
|
456
|
+
} : void 0;
|
|
412
457
|
export {
|
|
413
|
-
|
|
458
|
+
Slider
|
|
414
459
|
};
|