@mantine/core 7.0.0-alpha.20 → 7.0.0-alpha.22
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/cjs/components/Affix/Affix.js.map +1 -1
- package/cjs/components/AppShell/AppShell.context.js.map +1 -1
- package/cjs/components/AppShell/AppShell.js.map +1 -1
- package/cjs/components/AppShell/AppShellAside/AppShellAside.js.map +1 -1
- package/cjs/components/AppShell/AppShellFooter/AppShellFooter.js.map +1 -1
- package/cjs/components/AppShell/AppShellHeader/AppShellHeader.js.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js +1 -1
- package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.js.map +1 -1
- package/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/cjs/components/ColorInput/ColorInput.js +289 -0
- package/cjs/components/ColorInput/ColorInput.js.map +1 -0
- package/cjs/components/ColorInput/ColorInput.module.css.js +8 -0
- package/cjs/components/ColorInput/ColorInput.module.css.js.map +1 -0
- package/cjs/components/ColorInput/EyeDropperIcon.js +63 -0
- package/cjs/components/ColorInput/EyeDropperIcon.js.map +1 -0
- package/cjs/components/Dialog/Dialog.js +137 -0
- package/cjs/components/Dialog/Dialog.js.map +1 -0
- package/cjs/components/Dialog/Dialog.module.css.js +8 -0
- package/cjs/components/Dialog/Dialog.module.css.js.map +1 -0
- package/cjs/components/Flex/Flex.js +121 -0
- package/cjs/components/Flex/Flex.js.map +1 -0
- package/cjs/components/Flex/Flex.module.css.js +8 -0
- package/cjs/components/Flex/Flex.module.css.js.map +1 -0
- package/cjs/components/Flex/flex-props.js +16 -0
- package/cjs/components/Flex/flex-props.js.map +1 -0
- package/cjs/components/Grid/GridCol/GridCol.js +1 -1
- package/cjs/components/Grid/GridCol/GridColVariables.js +1 -1
- package/cjs/components/Highlight/Highlight.js.map +1 -1
- package/cjs/components/Indicator/Indicator.js.map +1 -1
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.js +13 -3
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.js.map +1 -1
- package/cjs/components/List/List.context.js +13 -0
- package/cjs/components/List/List.context.js.map +1 -0
- package/cjs/components/List/List.js +121 -0
- package/cjs/components/List/List.js.map +1 -0
- package/cjs/components/List/List.module.css.js +8 -0
- package/cjs/components/List/List.module.css.js.map +1 -0
- package/cjs/components/List/ListItem/ListItem.js +68 -0
- package/cjs/components/List/ListItem/ListItem.js.map +1 -0
- package/cjs/components/LoadingOverlay/LoadingOverlay.js +124 -0
- package/cjs/components/LoadingOverlay/LoadingOverlay.js.map +1 -0
- package/cjs/components/LoadingOverlay/LoadingOverlay.module.css.js +8 -0
- package/cjs/components/LoadingOverlay/LoadingOverlay.module.css.js.map +1 -0
- package/cjs/components/ModalBase/ModalBase.context.js.map +1 -1
- package/cjs/components/ModalBase/ModalBase.js.map +1 -1
- package/cjs/components/Notification/Notification.js +1 -11
- package/cjs/components/Notification/Notification.js.map +1 -1
- package/cjs/components/NumberInput/NumberInput.js +252 -0
- package/cjs/components/NumberInput/NumberInput.js.map +1 -0
- package/cjs/components/NumberInput/NumberInput.module.css.js +8 -0
- package/cjs/components/NumberInput/NumberInput.module.css.js.map +1 -0
- package/cjs/components/NumberInput/NumberInputChevron.js +66 -0
- package/cjs/components/NumberInput/NumberInputChevron.js.map +1 -0
- package/cjs/components/Overlay/Overlay.js.map +1 -1
- package/cjs/components/Paper/Paper.js.map +1 -1
- package/cjs/components/Popover/Popover.context.js.map +1 -1
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.js.map +1 -1
- package/cjs/components/Radio/Radio.js +168 -0
- package/cjs/components/Radio/Radio.js.map +1 -0
- package/cjs/components/Radio/Radio.module.css.js +8 -0
- package/cjs/components/Radio/Radio.module.css.js.map +1 -0
- package/cjs/components/Radio/RadioGroup/RadioGroup.js +78 -0
- package/cjs/components/Radio/RadioGroup/RadioGroup.js.map +1 -0
- package/cjs/components/Radio/RadioGroup.context.js +11 -0
- package/cjs/components/Radio/RadioGroup.context.js.map +1 -0
- package/cjs/components/Radio/RadioIcon.js +55 -0
- package/cjs/components/Radio/RadioIcon.js.map +1 -0
- package/cjs/components/Stepper/Stepper.context.js +13 -0
- package/cjs/components/Stepper/Stepper.context.js.map +1 -0
- package/cjs/components/Stepper/Stepper.js +203 -0
- package/cjs/components/Stepper/Stepper.js.map +1 -0
- package/cjs/components/Stepper/Stepper.module.css.js +8 -0
- package/cjs/components/Stepper/Stepper.module.css.js.map +1 -0
- package/cjs/components/Stepper/StepperCompleted/StepperCompleted.js +9 -0
- package/cjs/components/Stepper/StepperCompleted/StepperCompleted.js.map +1 -0
- package/cjs/components/Stepper/StepperStep/StepperStep.js +163 -0
- package/cjs/components/Stepper/StepperStep/StepperStep.js.map +1 -0
- package/cjs/components/Text/Text.js +4 -2
- package/cjs/components/Text/Text.js.map +1 -1
- package/cjs/components/ThemeIcon/ThemeIcon.js +90 -0
- package/cjs/components/ThemeIcon/ThemeIcon.js.map +1 -0
- package/cjs/components/ThemeIcon/ThemeIcon.module.css.js +8 -0
- package/cjs/components/ThemeIcon/ThemeIcon.module.css.js.map +1 -0
- package/cjs/components/Timeline/Timeline.context.js +13 -0
- package/cjs/components/Timeline/Timeline.context.js.map +1 -0
- package/cjs/components/Timeline/Timeline.js +135 -0
- package/cjs/components/Timeline/Timeline.js.map +1 -0
- package/cjs/components/Timeline/Timeline.module.css.js +8 -0
- package/cjs/components/Timeline/Timeline.module.css.js.map +1 -0
- package/cjs/components/Timeline/TimelineItem/TimelineItem.js +116 -0
- package/cjs/components/Timeline/TimelineItem/TimelineItem.js.map +1 -0
- package/cjs/components/Title/Title.js.map +1 -1
- package/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.js.map +1 -1
- package/cjs/components/Transition/Transition.js +1 -1
- package/cjs/components/Transition/Transition.js.map +1 -1
- package/cjs/components/VisuallyHidden/VisuallyHidden.js +20 -6
- package/cjs/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/cjs/core/Box/style-props/parse-style-props/parse-style-props.js.map +1 -1
- package/cjs/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.js +7 -4
- package/cjs/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.js.map +1 -1
- package/cjs/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js +1 -1
- package/cjs/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js.map +1 -1
- package/cjs/core/factory/factory.js.map +1 -1
- package/cjs/core/utils/create-use-external-events/create-use-external-events.js +34 -0
- package/cjs/core/utils/create-use-external-events/create-use-external-events.js.map +1 -0
- package/cjs/index.css +849 -16
- package/cjs/index.js +41 -0
- package/cjs/index.js.map +1 -1
- package/esm/components/Affix/Affix.js.map +1 -1
- package/esm/components/AppShell/AppShell.context.js.map +1 -1
- package/esm/components/AppShell/AppShell.js.map +1 -1
- package/esm/components/AppShell/AppShellAside/AppShellAside.js.map +1 -1
- package/esm/components/AppShell/AppShellFooter/AppShellFooter.js.map +1 -1
- package/esm/components/AppShell/AppShellHeader/AppShellHeader.js.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js +1 -1
- package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.js.map +1 -1
- package/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/esm/components/ColorInput/ColorInput.js +281 -0
- package/esm/components/ColorInput/ColorInput.js.map +1 -0
- package/esm/components/ColorInput/ColorInput.module.css.js +4 -0
- package/esm/components/ColorInput/ColorInput.module.css.js.map +1 -0
- package/esm/components/ColorInput/EyeDropperIcon.js +55 -0
- package/esm/components/ColorInput/EyeDropperIcon.js.map +1 -0
- package/esm/components/Dialog/Dialog.js +129 -0
- package/esm/components/Dialog/Dialog.js.map +1 -0
- package/esm/components/Dialog/Dialog.module.css.js +4 -0
- package/esm/components/Dialog/Dialog.module.css.js.map +1 -0
- package/esm/components/Flex/Flex.js +113 -0
- package/esm/components/Flex/Flex.js.map +1 -0
- package/esm/components/Flex/Flex.module.css.js +4 -0
- package/esm/components/Flex/Flex.module.css.js.map +1 -0
- package/esm/components/Flex/flex-props.js +12 -0
- package/esm/components/Flex/flex-props.js.map +1 -0
- package/esm/components/Grid/GridCol/GridCol.js +1 -1
- package/esm/components/Grid/GridCol/GridColVariables.js +1 -1
- package/esm/components/Highlight/Highlight.js.map +1 -1
- package/esm/components/Indicator/Indicator.js.map +1 -1
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.js +13 -3
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.js.map +1 -1
- package/esm/components/List/List.context.js +8 -0
- package/esm/components/List/List.context.js.map +1 -0
- package/esm/components/List/List.js +113 -0
- package/esm/components/List/List.js.map +1 -0
- package/esm/components/List/List.module.css.js +4 -0
- package/esm/components/List/List.module.css.js.map +1 -0
- package/esm/components/List/ListItem/ListItem.js +60 -0
- package/esm/components/List/ListItem/ListItem.js.map +1 -0
- package/esm/components/LoadingOverlay/LoadingOverlay.js +116 -0
- package/esm/components/LoadingOverlay/LoadingOverlay.js.map +1 -0
- package/esm/components/LoadingOverlay/LoadingOverlay.module.css.js +4 -0
- package/esm/components/LoadingOverlay/LoadingOverlay.module.css.js.map +1 -0
- package/esm/components/ModalBase/ModalBase.context.js.map +1 -1
- package/esm/components/ModalBase/ModalBase.js.map +1 -1
- package/esm/components/Notification/Notification.js +1 -11
- package/esm/components/Notification/Notification.js.map +1 -1
- package/esm/components/NumberInput/NumberInput.js +244 -0
- package/esm/components/NumberInput/NumberInput.js.map +1 -0
- package/esm/components/NumberInput/NumberInput.module.css.js +4 -0
- package/esm/components/NumberInput/NumberInput.module.css.js.map +1 -0
- package/esm/components/NumberInput/NumberInputChevron.js +58 -0
- package/esm/components/NumberInput/NumberInputChevron.js.map +1 -0
- package/esm/components/Overlay/Overlay.js.map +1 -1
- package/esm/components/Paper/Paper.js.map +1 -1
- package/esm/components/Popover/Popover.context.js.map +1 -1
- package/esm/components/Popover/Popover.js.map +1 -1
- package/esm/components/Popover/PopoverDropdown/PopoverDropdown.js.map +1 -1
- package/esm/components/Radio/Radio.js +160 -0
- package/esm/components/Radio/Radio.js.map +1 -0
- package/esm/components/Radio/Radio.module.css.js +4 -0
- package/esm/components/Radio/Radio.module.css.js.map +1 -0
- package/esm/components/Radio/RadioGroup/RadioGroup.js +70 -0
- package/esm/components/Radio/RadioGroup/RadioGroup.js.map +1 -0
- package/esm/components/Radio/RadioGroup.context.js +6 -0
- package/esm/components/Radio/RadioGroup.context.js.map +1 -0
- package/esm/components/Radio/RadioIcon.js +47 -0
- package/esm/components/Radio/RadioIcon.js.map +1 -0
- package/esm/components/Stepper/Stepper.context.js +8 -0
- package/esm/components/Stepper/Stepper.context.js.map +1 -0
- package/esm/components/Stepper/Stepper.js +195 -0
- package/esm/components/Stepper/Stepper.js.map +1 -0
- package/esm/components/Stepper/Stepper.module.css.js +4 -0
- package/esm/components/Stepper/Stepper.module.css.js.map +1 -0
- package/esm/components/Stepper/StepperCompleted/StepperCompleted.js +5 -0
- package/esm/components/Stepper/StepperCompleted/StepperCompleted.js.map +1 -0
- package/esm/components/Stepper/StepperStep/StepperStep.js +155 -0
- package/esm/components/Stepper/StepperStep/StepperStep.js.map +1 -0
- package/esm/components/Text/Text.js +4 -2
- package/esm/components/Text/Text.js.map +1 -1
- package/esm/components/ThemeIcon/ThemeIcon.js +82 -0
- package/esm/components/ThemeIcon/ThemeIcon.js.map +1 -0
- package/esm/components/ThemeIcon/ThemeIcon.module.css.js +4 -0
- package/esm/components/ThemeIcon/ThemeIcon.module.css.js.map +1 -0
- package/esm/components/Timeline/Timeline.context.js +8 -0
- package/esm/components/Timeline/Timeline.context.js.map +1 -0
- package/esm/components/Timeline/Timeline.js +127 -0
- package/esm/components/Timeline/Timeline.js.map +1 -0
- package/esm/components/Timeline/Timeline.module.css.js +4 -0
- package/esm/components/Timeline/Timeline.module.css.js.map +1 -0
- package/esm/components/Timeline/TimelineItem/TimelineItem.js +108 -0
- package/esm/components/Timeline/TimelineItem/TimelineItem.js.map +1 -0
- package/esm/components/Title/Title.js.map +1 -1
- package/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/esm/components/Tooltip/TooltipFloating/TooltipFloating.js.map +1 -1
- package/esm/components/Transition/Transition.js +1 -1
- package/esm/components/Transition/Transition.js.map +1 -1
- package/esm/components/VisuallyHidden/VisuallyHidden.js +20 -5
- package/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/esm/core/Box/style-props/parse-style-props/parse-style-props.js.map +1 -1
- package/esm/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.js +7 -4
- package/esm/core/MantineProvider/MantineCssVariables/default-css-variables-resolver.js.map +1 -1
- package/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js +1 -1
- package/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js.map +1 -1
- package/esm/core/factory/factory.js.map +1 -1
- package/esm/core/utils/create-use-external-events/create-use-external-events.js +30 -0
- package/esm/core/utils/create-use-external-events/create-use-external-events.js.map +1 -0
- package/esm/index.css +849 -16
- package/esm/index.js +20 -0
- package/esm/index.js.map +1 -1
- package/esm/styles/ActionIcon.css +1 -1
- package/esm/styles/Chip.css +1 -1
- package/esm/styles/ColorInput.css +1 -0
- package/esm/styles/Combobox.css +1 -1
- package/esm/styles/Dialog.css +1 -0
- package/esm/styles/Flex.css +1 -0
- package/esm/styles/Input.css +1 -1
- package/esm/styles/List.css +1 -0
- package/esm/styles/LoadingOverlay.css +1 -0
- package/esm/styles/ModalBase.css +1 -1
- package/esm/styles/NumberInput.css +1 -0
- package/esm/styles/Radio.css +1 -0
- package/esm/styles/Rating.css +1 -1
- package/esm/styles/Stepper.css +1 -0
- package/esm/styles/Switch.css +1 -1
- package/esm/styles/Text.css +1 -1
- package/esm/styles/ThemeIcon.css +1 -0
- package/esm/styles/Timeline.css +1 -0
- package/esm/styles/global.css +1 -1
- package/lib/components/Affix/Affix.d.ts +4 -3
- package/lib/components/Affix/index.d.ts +1 -1
- package/lib/components/AppShell/AppShell.context.d.ts +1 -1
- package/lib/components/AppShell/AppShell.d.ts +1 -1
- package/lib/components/AppShell/AppShellAside/AppShellAside.d.ts +1 -2
- package/lib/components/AppShell/AppShellFooter/AppShellFooter.d.ts +1 -2
- package/lib/components/AppShell/AppShellHeader/AppShellHeader.d.ts +1 -2
- package/lib/components/AppShell/AppShellNavbar/AppShellNavbar.d.ts +1 -2
- package/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/ColorInput/ColorInput.d.ts +42 -0
- package/lib/components/ColorInput/EyeDropperIcon.d.ts +2 -0
- package/lib/components/ColorInput/index.d.ts +2 -0
- package/lib/components/ColorPicker/index.d.ts +2 -1
- package/lib/components/Dialog/Dialog.d.ts +37 -0
- package/lib/components/Dialog/index.d.ts +2 -0
- package/lib/components/Flex/Flex.d.ts +29 -0
- package/lib/components/Flex/flex-props.d.ts +2 -0
- package/lib/components/Flex/index.d.ts +3 -0
- package/lib/components/Highlight/Highlight.d.ts +1 -1
- package/lib/components/Image/Image.d.ts +1 -1
- package/lib/components/Indicator/Indicator.d.ts +1 -1
- package/lib/components/Input/InputPlaceholder/InputPlaceholder.d.ts +3 -0
- package/lib/components/Input/use-input-props.d.ts +7 -7
- package/lib/components/List/List.context.d.ts +13 -0
- package/lib/components/List/List.d.ts +43 -0
- package/lib/components/List/ListItem/ListItem.d.ts +21 -0
- package/lib/components/List/index.d.ts +4 -0
- package/lib/components/LoadingOverlay/LoadingOverlay.d.ts +32 -0
- package/lib/components/LoadingOverlay/index.d.ts +2 -0
- package/lib/components/ModalBase/ModalBase.context.d.ts +1 -1
- package/lib/components/ModalBase/ModalBase.d.ts +1 -1
- package/lib/components/NumberInput/NumberInput.d.ts +78 -0
- package/lib/components/NumberInput/NumberInputChevron.d.ts +6 -0
- package/lib/components/NumberInput/index.d.ts +2 -0
- package/lib/components/Overlay/Overlay.d.ts +1 -1
- package/lib/components/Paper/Paper.d.ts +3 -1
- package/lib/components/Paper/index.d.ts +1 -1
- package/lib/components/Popover/Popover.context.d.ts +1 -1
- package/lib/components/Popover/Popover.d.ts +1 -1
- package/lib/components/Radio/Radio.d.ts +47 -0
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +30 -0
- package/lib/components/Radio/RadioGroup.context.d.ts +13 -0
- package/lib/components/Radio/RadioIcon.d.ts +5 -0
- package/lib/components/Radio/index.d.ts +6 -0
- package/lib/components/Stepper/Stepper.context.d.ts +13 -0
- package/lib/components/Stepper/Stepper.d.ts +63 -0
- package/lib/components/Stepper/StepperCompleted/StepperCompleted.d.ts +6 -0
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +50 -0
- package/lib/components/Stepper/index.d.ts +6 -0
- package/lib/components/Text/Text.d.ts +3 -1
- package/lib/components/ThemeIcon/ThemeIcon.d.ts +33 -0
- package/lib/components/ThemeIcon/index.d.ts +2 -0
- package/lib/components/Timeline/Timeline.context.d.ts +11 -0
- package/lib/components/Timeline/Timeline.d.ts +43 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +35 -0
- package/lib/components/Timeline/index.d.ts +4 -0
- package/lib/components/Title/Title.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.types.d.ts +1 -1
- package/lib/components/Transition/Transition.d.ts +1 -1
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +13 -7
- package/lib/components/index.d.ts +10 -0
- package/lib/core/Box/style-props/index.d.ts +1 -0
- package/lib/core/Box/style-props/parse-style-props/parse-style-props.d.ts +2 -2
- package/lib/core/factory/factory.d.ts +2 -1
- package/lib/core/factory/index.d.ts +1 -1
- package/lib/core/utils/create-use-external-events/create-use-external-events.d.ts +1 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/package.json +4 -3
- package/cjs/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js +0 -19
- package/cjs/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js.map +0 -1
- package/cjs/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -17
- package/cjs/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
- package/esm/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js +0 -15
- package/esm/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js.map +0 -1
- package/esm/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -13
- package/esm/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
- package/lib/components/AppShell/AppShellMediaStyles/assign-header-variables.d.ts +0 -12
- package/lib/components/AppShell/AppShellMediaStyles/assign-navbar-variables.d.ts +0 -12
- package/lib/components/AppShell/AppShellMediaStyles/get-base-size.d.ts +0 -2
- package/lib/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.d.ts +0 -2
- package/lib/components/AppShell/AppShellMediaStyles/get-breakpoint-value.d.ts +0 -2
- package/lib/components/AppShell/AppShellMediaStyles/get-padding-value.d.ts +0 -1
- package/lib/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.d.ts +0 -5
- package/lib/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints.d.ts +0 -5
- package/lib/components/AppShell/AppShellMediaStyles/is-primitive-size.d.ts +0 -2
- package/lib/components/AppShell/AppShellMediaStyles/is-responsive-size.d.ts +0 -2
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { ColorPicker } from './ColorPicker';
|
|
2
|
-
export
|
|
2
|
+
export * from './converters';
|
|
3
|
+
export type { ColorPickerCssVariables, ColorPickerFactory, ColorPickerProps, ColorPickerStylesNames, __ColorPickerProps, } from './ColorPicker';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory, MantineSize } from '../../core';
|
|
3
|
+
import { AffixBaseProps } from '../Affix';
|
|
4
|
+
import { PaperBaseProps } from '../Paper';
|
|
5
|
+
import { TransitionOverride } from '../Transition';
|
|
6
|
+
export type DialogStylesNames = 'root' | 'closeButton';
|
|
7
|
+
export type DialogCssVariables = {
|
|
8
|
+
root: '--dialog-size';
|
|
9
|
+
};
|
|
10
|
+
export interface DialogProps extends BoxProps, AffixBaseProps, PaperBaseProps, StylesApiProps<DialogFactory>, ElementProps<'div'> {
|
|
11
|
+
/** If set dialog will not be unmounted from the DOM when it is hidden, display: none styles will be added instead */
|
|
12
|
+
keepMounted?: boolean;
|
|
13
|
+
/** Determines whether the close button should be displayed, `true` by default */
|
|
14
|
+
withCloseButton?: boolean;
|
|
15
|
+
/** Called when the close button is clicked */
|
|
16
|
+
onClose?(): void;
|
|
17
|
+
/** Dialog content */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
/** Opened state */
|
|
20
|
+
opened: boolean;
|
|
21
|
+
/** Overrides default transition, `{ transition: 'pop-top-right', duration: 200 }` by default */
|
|
22
|
+
transitionProps?: TransitionOverride;
|
|
23
|
+
/** Controls `width` of the dialog, `'md'` by default */
|
|
24
|
+
size?: MantineSize | (string & {}) | number;
|
|
25
|
+
}
|
|
26
|
+
export type DialogFactory = Factory<{
|
|
27
|
+
props: DialogProps;
|
|
28
|
+
ref: HTMLDivElement;
|
|
29
|
+
stylesNames: DialogStylesNames;
|
|
30
|
+
vars: DialogCssVariables;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const Dialog: import("../../core").MantineComponent<{
|
|
33
|
+
props: DialogProps;
|
|
34
|
+
ref: HTMLDivElement;
|
|
35
|
+
stylesNames: DialogStylesNames;
|
|
36
|
+
vars: DialogCssVariables;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory, StyleProp, MantineSize } from '../../core';
|
|
3
|
+
export type FlexStylesNames = 'root';
|
|
4
|
+
export interface FlexProps extends BoxProps, StylesApiProps<FlexFactory>, ElementProps<'div'> {
|
|
5
|
+
/** `gap` CSS property */
|
|
6
|
+
gap?: StyleProp<MantineSize | (string & {}) | number>;
|
|
7
|
+
/** `row-gap` CSS property */
|
|
8
|
+
rowGap?: StyleProp<MantineSize | (string & {}) | number>;
|
|
9
|
+
/** `column-gap` CSS property */
|
|
10
|
+
columnGap?: StyleProp<MantineSize | (string & {}) | number>;
|
|
11
|
+
/** `align-items` CSS property */
|
|
12
|
+
align?: StyleProp<React.CSSProperties['alignItems']>;
|
|
13
|
+
/** justify-content CSS property */
|
|
14
|
+
justify?: StyleProp<React.CSSProperties['justifyContent']>;
|
|
15
|
+
/** flex-wrap CSS property */
|
|
16
|
+
wrap?: StyleProp<React.CSSProperties['flexWrap']>;
|
|
17
|
+
/** flex-direction CSS property */
|
|
18
|
+
direction?: StyleProp<React.CSSProperties['flexDirection']>;
|
|
19
|
+
}
|
|
20
|
+
export type FlexFactory = Factory<{
|
|
21
|
+
props: FlexProps;
|
|
22
|
+
ref: HTMLDivElement;
|
|
23
|
+
stylesNames: FlexStylesNames;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const Flex: import("../../core").MantineComponent<{
|
|
26
|
+
props: FlexProps;
|
|
27
|
+
ref: HTMLDivElement;
|
|
28
|
+
stylesNames: FlexStylesNames;
|
|
29
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MantineColor, MantineTheme, PolymorphicFactory } from '../../core';
|
|
3
3
|
import { TextStylesNames, TextProps, TextVariant } from '../Text';
|
|
4
|
-
export interface HighlightProps extends TextProps {
|
|
4
|
+
export interface HighlightProps extends Omit<TextProps, 'color'> {
|
|
5
5
|
/** Substring or an array of substrings to highlight in `children` */
|
|
6
6
|
highlight: string | string[];
|
|
7
7
|
/** Key of `theme.colors` or any valid CSS color, passed to `Mark` component `color` prop, `yellow` by default */
|
|
@@ -25,7 +25,7 @@ export type ImageFactory = PolymorphicFactory<{
|
|
|
25
25
|
}>;
|
|
26
26
|
export declare const Image: (<C = "img">(props: import("../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, ImageProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(ImageProps & {
|
|
27
27
|
component?: any;
|
|
28
|
-
} & Omit<Omit<any, "ref">, keyof ImageProps
|
|
28
|
+
} & Omit<Omit<any, "ref">, "component" | keyof ImageProps> & {
|
|
29
29
|
ref?: any;
|
|
30
30
|
}) | (ImageProps & {
|
|
31
31
|
component: React.ElementType<any>;
|
|
@@ -28,7 +28,7 @@ export interface IndicatorProps extends BoxProps, StylesApiProps<IndicatorFactor
|
|
|
28
28
|
/** Determines whether the indicator should have processing animation, `false` by default */
|
|
29
29
|
processing?: boolean;
|
|
30
30
|
/** Indicator z-index, `200` by default */
|
|
31
|
-
zIndex?:
|
|
31
|
+
zIndex?: string | number;
|
|
32
32
|
}
|
|
33
33
|
export type IndicatorFactory = Factory<{
|
|
34
34
|
props: IndicatorProps;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BoxProps, StylesApiProps, ElementProps, Factory } from '../../../core';
|
|
2
3
|
export type InputPlaceholderStylesNames = 'placeholder';
|
|
3
4
|
export interface InputPlaceholderProps extends BoxProps, StylesApiProps<InputPlaceholderFactory>, ElementProps<'span'> {
|
|
4
5
|
__staticSelector?: string;
|
|
6
|
+
/** If set, the placeholder will have error styles, `false` by default */
|
|
7
|
+
error?: React.ReactNode;
|
|
5
8
|
}
|
|
6
9
|
export type InputPlaceholderFactory = Factory<{
|
|
7
10
|
props: InputPlaceholderProps;
|
|
@@ -10,15 +10,17 @@ interface BaseProps extends __BaseInputProps, BoxProps, StylesApiProps<{
|
|
|
10
10
|
__stylesApiProps?: Record<string, any>;
|
|
11
11
|
id?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "
|
|
13
|
+
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "size" | "className" | "style" | "label" | "variant" | "styles" | "id" | "unstyled" | "classNames" | "vars" | "required" | "error" | "description" | "__staticSelector" | "__stylesApiProps" | "withAsterisk" | "labelProps" | "descriptionProps" | "errorProps" | "inputContainer" | "inputWrapperOrder" | "wrapperProps"> & {
|
|
14
14
|
classNames: Partial<Record<string, string>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, string>>) | undefined;
|
|
15
15
|
styles: Partial<Record<string, import("react").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("react").CSSProperties>>) | undefined;
|
|
16
16
|
unstyled: boolean | undefined;
|
|
17
17
|
wrapperProps: {
|
|
18
|
-
|
|
18
|
+
color?: string | undefined;
|
|
19
|
+
className: string | undefined;
|
|
19
20
|
style: import("../../core").MantineStyleProp;
|
|
20
21
|
slot?: string | undefined;
|
|
21
22
|
title?: string | undefined;
|
|
23
|
+
children?: import("react").ReactNode;
|
|
22
24
|
key?: import("react").Key | null | undefined;
|
|
23
25
|
defaultChecked?: boolean | undefined;
|
|
24
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -26,7 +28,6 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
26
28
|
suppressHydrationWarning?: boolean | undefined;
|
|
27
29
|
accessKey?: string | undefined;
|
|
28
30
|
autoFocus?: boolean | undefined;
|
|
29
|
-
className: string | undefined;
|
|
30
31
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
31
32
|
contextMenu?: string | undefined;
|
|
32
33
|
dir?: string | undefined;
|
|
@@ -55,7 +56,6 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
55
56
|
autoCapitalize?: string | undefined;
|
|
56
57
|
autoCorrect?: string | undefined;
|
|
57
58
|
autoSave?: string | undefined;
|
|
58
|
-
color?: string | undefined;
|
|
59
59
|
itemProp?: string | undefined;
|
|
60
60
|
itemScope?: boolean | undefined;
|
|
61
61
|
itemType?: string | undefined;
|
|
@@ -78,7 +78,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
78
78
|
'aria-colindextext'?: string | undefined;
|
|
79
79
|
'aria-colspan'?: number | undefined;
|
|
80
80
|
'aria-controls'?: string | undefined;
|
|
81
|
-
'aria-current'?: boolean | "
|
|
81
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
82
82
|
'aria-describedby'?: string | undefined;
|
|
83
83
|
'aria-description'?: string | undefined;
|
|
84
84
|
'aria-details'?: string | undefined;
|
|
@@ -88,7 +88,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
88
88
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
89
89
|
'aria-flowto'?: string | undefined;
|
|
90
90
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
91
|
-
'aria-haspopup'?: boolean | "dialog" | "
|
|
91
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree" | undefined;
|
|
92
92
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
93
93
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
94
94
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -298,7 +298,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
298
298
|
styles: Partial<Record<string, import("react").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("react").CSSProperties>>) | undefined;
|
|
299
299
|
size: import("../../core").MantineSize | (string & {}) | undefined;
|
|
300
300
|
inputContainer: ((children: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
301
|
-
inputWrapperOrder: ("input" | "label" | "
|
|
301
|
+
inputWrapperOrder: ("input" | "label" | "error" | "description")[] | undefined;
|
|
302
302
|
withAsterisk: boolean | undefined;
|
|
303
303
|
variant: string | undefined;
|
|
304
304
|
} & BoxProps;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GetStylesApi } from '../../core';
|
|
3
|
+
import type { ListFactory } from './List';
|
|
4
|
+
interface ListContextValue {
|
|
5
|
+
getStyles: GetStylesApi<ListFactory>;
|
|
6
|
+
center: boolean | undefined;
|
|
7
|
+
icon: React.ReactNode | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const ListProvider: ({ children, value }: {
|
|
10
|
+
value: ListContextValue;
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element, useListContext: () => ListContextValue;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory, MantineSize, MantineSpacing } from '../../core';
|
|
3
|
+
import { ListItem, ListItemStylesNames } from './ListItem/ListItem';
|
|
4
|
+
export type ListStylesNames = 'root' | ListItemStylesNames;
|
|
5
|
+
export type ListCssVariables = {
|
|
6
|
+
root: '--list-fz' | '--list-lh' | '--list-spacing';
|
|
7
|
+
};
|
|
8
|
+
export interface ListProps extends BoxProps, StylesApiProps<ListFactory>, ElementProps<'ul', 'type'> {
|
|
9
|
+
/** `List.Item` components only */
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/** List type: `ol` or `ul`, `'unordered'` by default */
|
|
12
|
+
type?: 'ordered' | 'unordered';
|
|
13
|
+
/** Determines whether list items should be offset with padding, `false` by default */
|
|
14
|
+
withPadding?: boolean;
|
|
15
|
+
/** Controls `font-size` and `line-height`, `'md'` by default */
|
|
16
|
+
size?: MantineSize;
|
|
17
|
+
/** Icon that replaces list item dot */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/** Key of `theme.spacing` or any valid CSS value to set spacing between items, `0` by default */
|
|
20
|
+
spacing?: MantineSpacing | (string & {}) | number;
|
|
21
|
+
/** Determines whether items must be centered with their icon, `false` by default */
|
|
22
|
+
center?: boolean;
|
|
23
|
+
/** Controls `list-style-type`, by default inferred from `type` */
|
|
24
|
+
listStyleType?: React.CSSProperties['listStyleType'];
|
|
25
|
+
}
|
|
26
|
+
export type ListFactory = Factory<{
|
|
27
|
+
props: ListProps;
|
|
28
|
+
ref: HTMLUListElement;
|
|
29
|
+
stylesNames: ListStylesNames;
|
|
30
|
+
vars: ListCssVariables;
|
|
31
|
+
staticComponents: {
|
|
32
|
+
Item: typeof ListItem;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
export declare const List: import("../../core").MantineComponent<{
|
|
36
|
+
props: ListProps;
|
|
37
|
+
ref: HTMLUListElement;
|
|
38
|
+
stylesNames: ListStylesNames;
|
|
39
|
+
vars: ListCssVariables;
|
|
40
|
+
staticComponents: {
|
|
41
|
+
Item: typeof ListItem;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory } from '../../../core';
|
|
3
|
+
export type ListItemStylesNames = 'item' | 'itemWrapper' | 'itemIcon' | 'itemLabel';
|
|
4
|
+
export interface ListItemProps extends BoxProps, StylesApiProps<ListItemFactory>, ElementProps<'li'> {
|
|
5
|
+
/** Icon to replace item bullet */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Item content */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export type ListItemFactory = Factory<{
|
|
11
|
+
props: ListItemProps;
|
|
12
|
+
ref: HTMLLIElement;
|
|
13
|
+
stylesNames: ListItemStylesNames;
|
|
14
|
+
compound: true;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const ListItem: import("../../../core").MantineComponent<{
|
|
17
|
+
props: ListItemProps;
|
|
18
|
+
ref: HTMLLIElement;
|
|
19
|
+
stylesNames: ListItemStylesNames;
|
|
20
|
+
compound: true;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory } from '../../core';
|
|
2
|
+
import { TransitionOverride } from '../Transition';
|
|
3
|
+
import { LoaderProps } from '../Loader';
|
|
4
|
+
import { OverlayProps } from '../Overlay';
|
|
5
|
+
export type LoadingOverlayStylesNames = 'root' | 'loader' | 'overlay';
|
|
6
|
+
export type LoadingOverlayCssVariables = {
|
|
7
|
+
root: '--lo-z-index';
|
|
8
|
+
};
|
|
9
|
+
export interface LoadingOverlayProps extends BoxProps, StylesApiProps<LoadingOverlayFactory>, ElementProps<'div'> {
|
|
10
|
+
/** Props passed down to `Transition` component, `{ transition: 'fade', duration: 0 }` by default */
|
|
11
|
+
transitionProps?: TransitionOverride;
|
|
12
|
+
/** Props passed down to `Loader` component */
|
|
13
|
+
loaderProps?: LoaderProps;
|
|
14
|
+
/** Props passed down to `Overlay` component */
|
|
15
|
+
overlayProps?: OverlayProps;
|
|
16
|
+
/** Determines whether the overlay should be visible, `false` by default */
|
|
17
|
+
visible?: boolean;
|
|
18
|
+
/** Controls overlay `z-index`, `400` by default */
|
|
19
|
+
zIndex?: string | number;
|
|
20
|
+
}
|
|
21
|
+
export type LoadingOverlayFactory = Factory<{
|
|
22
|
+
props: LoadingOverlayProps;
|
|
23
|
+
ref: HTMLDivElement;
|
|
24
|
+
stylesNames: LoadingOverlayStylesNames;
|
|
25
|
+
vars: LoadingOverlayCssVariables;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const LoadingOverlay: import("../../core").MantineComponent<{
|
|
28
|
+
props: LoadingOverlayProps;
|
|
29
|
+
ref: HTMLDivElement;
|
|
30
|
+
stylesNames: LoadingOverlayStylesNames;
|
|
31
|
+
vars: LoadingOverlayCssVariables;
|
|
32
|
+
}>;
|
|
@@ -8,7 +8,7 @@ interface ModalBaseContextValue {
|
|
|
8
8
|
getTitleId(): string;
|
|
9
9
|
getBodyId(): string;
|
|
10
10
|
transitionProps: Partial<TransitionOverride> | undefined;
|
|
11
|
-
zIndex:
|
|
11
|
+
zIndex: string | number | undefined;
|
|
12
12
|
opened: boolean;
|
|
13
13
|
onClose(): void;
|
|
14
14
|
closeOnEscape: boolean | undefined;
|
|
@@ -30,7 +30,7 @@ export interface ModalBaseProps extends BoxProps, ElementProps<'div', 'title'> {
|
|
|
30
30
|
/** Determines whether focus should be returned to the last active element when `onClose` is called, `true` by default */
|
|
31
31
|
returnFocus?: boolean;
|
|
32
32
|
/** `z-index` CSS property of the root element, `200` by default */
|
|
33
|
-
zIndex?:
|
|
33
|
+
zIndex?: string | number;
|
|
34
34
|
/** Key of `theme.shadows` or any valid CSS box-shadow value, 'xl' by default */
|
|
35
35
|
shadow?: MantineShadow | (string & {});
|
|
36
36
|
/** Key of `theme.spacing` or any valid CSS value to set content, header and footer padding, `'md'` by default */
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OnValueChange, NumberFormatValues } from 'react-number-format';
|
|
3
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory } from '../../core';
|
|
4
|
+
import { __BaseInputProps, __InputStylesNames, InputVariant } from '../Input';
|
|
5
|
+
export interface NumberInputHandlers {
|
|
6
|
+
increment(): void;
|
|
7
|
+
decrement(): void;
|
|
8
|
+
}
|
|
9
|
+
export type NumberInputStylesNames = 'controls' | 'control' | __InputStylesNames;
|
|
10
|
+
export type NumberInputCssVariables = {
|
|
11
|
+
controls: '--ni-chevron-size';
|
|
12
|
+
};
|
|
13
|
+
export interface NumberInputProps extends BoxProps, __BaseInputProps, StylesApiProps<NumberInputFactory>, ElementProps<'input', 'size' | 'type' | 'onChange'> {
|
|
14
|
+
/** Controlled component value */
|
|
15
|
+
value?: number | string;
|
|
16
|
+
/** Uncontrolled component default value */
|
|
17
|
+
defaultValue?: number | string;
|
|
18
|
+
/** Called when value changes */
|
|
19
|
+
onChange?(value: number | string): void;
|
|
20
|
+
/** Called when value changes with `react-number-format` payload */
|
|
21
|
+
onValueChange?: OnValueChange;
|
|
22
|
+
/** Determines whether leading zeros are allowed. If not set, leading zeros are removed when the input is blurred. `false` by default */
|
|
23
|
+
allowLeadingZeros?: boolean;
|
|
24
|
+
/** Determines whether negative values are allowed, `true` by default */
|
|
25
|
+
allowNegative?: boolean;
|
|
26
|
+
/** Characters which when pressed result in a decimal separator, `['.']` by default */
|
|
27
|
+
allowedDecimalSeparators?: string[];
|
|
28
|
+
/** Limits the number of digits that can be entered after the decimal point */
|
|
29
|
+
decimalScale?: number;
|
|
30
|
+
/** Character used as a decimal separator, `'.'` by default */
|
|
31
|
+
decimalSeparator?: string;
|
|
32
|
+
/** If set, 0s are added after `decimalSeparator` to match given `decimalScale`. `false` by default */
|
|
33
|
+
fixedDecimalScale?: boolean;
|
|
34
|
+
/** Prefix added before the input value */
|
|
35
|
+
prefix?: string;
|
|
36
|
+
/** Suffix added after the input value */
|
|
37
|
+
suffix?: string;
|
|
38
|
+
/** Defines the thousand grouping style. */
|
|
39
|
+
thousandsGroupStyle?: 'thousand' | 'lakh' | 'wan' | 'none';
|
|
40
|
+
/** A function to validate the input value. If this function returns `false`, the `onChange` will not be called and the input value will not change. */
|
|
41
|
+
isAllowed?(values: NumberFormatValues): boolean;
|
|
42
|
+
/** If value is passed as string representation of numbers (unformatted) and number is used in any format props like in prefix or suffix in numeric format and format prop in pattern format then this should be passed as `true`. `false` by default. */
|
|
43
|
+
valueIsNumericString?: boolean;
|
|
44
|
+
/** Controls input `type` attribute, `'text'` by default */
|
|
45
|
+
type?: 'text' | 'tel' | 'password';
|
|
46
|
+
/** A character used to separate thousands */
|
|
47
|
+
thousandSeparator?: string | boolean;
|
|
48
|
+
/** Minimum possible value */
|
|
49
|
+
min?: number;
|
|
50
|
+
/** Maximum possible value */
|
|
51
|
+
max?: number;
|
|
52
|
+
/** Number by which value will be incremented/decremented with up/down controls and keyboard arrows, `1` by default */
|
|
53
|
+
step?: number;
|
|
54
|
+
/** Determines whether the up/down controls should be hidden, `false` by default */
|
|
55
|
+
hideControls?: boolean;
|
|
56
|
+
/** Controls how value is clamped, `strict` – user is not allowed to enter values that are not in `[min, max]` range, `blur` – user is allowed to enter any values, but the value is clamped when the input loses focus (default behavior), `none` – lifts all restrictions, `[min, max]` range is applied only for controls and up/down keys */
|
|
57
|
+
clampBehavior?: 'strict' | 'blur' | 'none';
|
|
58
|
+
/** Determines whether decimal values are allowed, `true` by default */
|
|
59
|
+
allowDecimal?: boolean;
|
|
60
|
+
/** Increment/decrement handlers */
|
|
61
|
+
handlersRef?: React.ForwardedRef<NumberInputHandlers | undefined>;
|
|
62
|
+
/** Value set to the input when increment/decrement buttons are clicked or up/down arrows pressed if the input is empty, `0` by default */
|
|
63
|
+
startValue?: number;
|
|
64
|
+
}
|
|
65
|
+
export type NumberInputFactory = Factory<{
|
|
66
|
+
props: NumberInputProps;
|
|
67
|
+
ref: HTMLDivElement;
|
|
68
|
+
stylesNames: NumberInputStylesNames;
|
|
69
|
+
vars: NumberInputCssVariables;
|
|
70
|
+
variant: InputVariant;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const NumberInput: import("../../core").MantineComponent<{
|
|
73
|
+
props: NumberInputProps;
|
|
74
|
+
ref: HTMLDivElement;
|
|
75
|
+
stylesNames: NumberInputStylesNames;
|
|
76
|
+
vars: NumberInputCssVariables;
|
|
77
|
+
variant: InputVariant;
|
|
78
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ChevronProps extends React.ComponentPropsWithoutRef<'svg'> {
|
|
3
|
+
direction: 'up' | 'down';
|
|
4
|
+
}
|
|
5
|
+
export declare function NumberInputChevron({ direction, style, ...others }: ChevronProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -14,7 +14,7 @@ export interface OverlayProps extends BoxProps, StylesApiProps<OverlayFactory> {
|
|
|
14
14
|
/** Changes overlay to gradient. If set, `color` prop is ignored */
|
|
15
15
|
gradient?: string;
|
|
16
16
|
/** Overlay z-index, `200` by default */
|
|
17
|
-
zIndex?:
|
|
17
|
+
zIndex?: string | number;
|
|
18
18
|
/** Key of `theme.radius` or any valid CSS value to set border-radius, `0` by default */
|
|
19
19
|
radius?: MantineRadius | (string & {}) | number;
|
|
20
20
|
/** Content inside overlay */
|
|
@@ -4,7 +4,7 @@ export type PaperStylesNames = 'root';
|
|
|
4
4
|
export type PaperCssVariables = {
|
|
5
5
|
root: '--paper-radius' | '--paper-shadow';
|
|
6
6
|
};
|
|
7
|
-
export interface
|
|
7
|
+
export interface PaperBaseProps {
|
|
8
8
|
/** Key of `theme.shadows` or any valid CSS value to set `box-shadow`, `none` by default */
|
|
9
9
|
shadow?: MantineShadow | (string & {});
|
|
10
10
|
/** Key of `theme.radius` or any valid CSS value to set border-radius, numbers are converted to rem, `theme.defaultRadius` by default */
|
|
@@ -12,6 +12,8 @@ export interface PaperProps extends BoxProps, StylesApiProps<PaperFactory> {
|
|
|
12
12
|
/** Determines whether the paper should have border, border color depends on color scheme, `false` by default */
|
|
13
13
|
withBorder?: boolean;
|
|
14
14
|
}
|
|
15
|
+
export interface PaperProps extends BoxProps, PaperBaseProps, StylesApiProps<PaperFactory> {
|
|
16
|
+
}
|
|
15
17
|
export type PaperFactory = PolymorphicFactory<{
|
|
16
18
|
props: PaperProps;
|
|
17
19
|
defaultComponent: 'div';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Paper } from './Paper';
|
|
2
|
-
export type { PaperProps, PaperStylesNames, PaperCssVariables, PaperFactory } from './Paper';
|
|
2
|
+
export type { PaperProps, PaperStylesNames, PaperCssVariables, PaperFactory, PaperBaseProps, } from './Paper';
|
|
@@ -26,7 +26,7 @@ interface PopoverContext {
|
|
|
26
26
|
withinPortal: boolean | undefined;
|
|
27
27
|
portalProps?: Omit<PortalProps, 'children'>;
|
|
28
28
|
closeOnEscape: boolean | undefined;
|
|
29
|
-
zIndex:
|
|
29
|
+
zIndex: string | number | undefined;
|
|
30
30
|
radius?: MantineRadius | (string & {}) | number | undefined;
|
|
31
31
|
shadow?: MantineShadow | (string & {}) | undefined;
|
|
32
32
|
onClose?(): void;
|
|
@@ -44,7 +44,7 @@ export interface __PopoverProps {
|
|
|
44
44
|
/** Props to pass down to the `Portal` when `withinPortal` is true */
|
|
45
45
|
portalProps?: Omit<PortalProps, 'children'>;
|
|
46
46
|
/** Dropdown `z-index`, `300` by default */
|
|
47
|
-
zIndex?:
|
|
47
|
+
zIndex?: string | number;
|
|
48
48
|
/** Key of `theme.radius` or any valid CSS value to set border-radius, `theme.defaultRadius` by default */
|
|
49
49
|
radius?: MantineRadius | (string & {}) | number;
|
|
50
50
|
/** Key of `theme.shadows` or any other valid CSS `box-shadow` value */
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory, MantineColor, MantineSize, MantineRadius } from '../../core';
|
|
3
|
+
import { InlineInputStylesNames } from '../InlineInput';
|
|
4
|
+
import { RadioIconProps } from './RadioIcon';
|
|
5
|
+
import { RadioGroup } from './RadioGroup/RadioGroup';
|
|
6
|
+
export type RadioStylesNames = InlineInputStylesNames | 'inner' | 'radio' | 'icon';
|
|
7
|
+
export type RadioCssVariables = {
|
|
8
|
+
root: '--radio-size' | '--radio-radius' | '--radio-color';
|
|
9
|
+
};
|
|
10
|
+
export interface RadioProps extends BoxProps, StylesApiProps<RadioFactory>, ElementProps<'input', 'size'> {
|
|
11
|
+
/** Radio label */
|
|
12
|
+
label?: React.ReactNode;
|
|
13
|
+
/** Key of `theme.colors` or any valid CSS color to set input color in checked state, `theme.primaryColor` by default */
|
|
14
|
+
color?: MantineColor;
|
|
15
|
+
/** Controls size of all elements, `'sm'` by default */
|
|
16
|
+
size?: MantineSize;
|
|
17
|
+
/** Custom checked icon component, by default a circle is displayed in checked state */
|
|
18
|
+
icon?: React.FC<RadioIconProps>;
|
|
19
|
+
/** Props passed down to the root element */
|
|
20
|
+
wrapperProps?: React.ComponentPropsWithoutRef<'div'>;
|
|
21
|
+
/** Position of the label relative to the input, `'right'` by default */
|
|
22
|
+
labelPosition?: 'left' | 'right';
|
|
23
|
+
/** Description displayed below the label */
|
|
24
|
+
description?: React.ReactNode;
|
|
25
|
+
/** Error displayed below the label */
|
|
26
|
+
error?: React.ReactNode;
|
|
27
|
+
/** Key of `theme.radius` or any valid CSS value to set `border-radius,` "xl" by default */
|
|
28
|
+
radius?: MantineRadius | (string & {}) | number;
|
|
29
|
+
}
|
|
30
|
+
export type RadioFactory = Factory<{
|
|
31
|
+
props: RadioProps;
|
|
32
|
+
ref: HTMLInputElement;
|
|
33
|
+
stylesNames: RadioStylesNames;
|
|
34
|
+
vars: RadioCssVariables;
|
|
35
|
+
staticComponents: {
|
|
36
|
+
Group: typeof RadioGroup;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
export declare const Radio: import("../../core").MantineComponent<{
|
|
40
|
+
props: RadioProps;
|
|
41
|
+
ref: HTMLInputElement;
|
|
42
|
+
stylesNames: RadioStylesNames;
|
|
43
|
+
vars: RadioCssVariables;
|
|
44
|
+
staticComponents: {
|
|
45
|
+
Group: typeof RadioGroup;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MantineSize, Factory } from '../../../core';
|
|
3
|
+
import { InputWrapperStylesNames, InputWrapperProps } from '../../Input';
|
|
4
|
+
export type RadioGroupStylesNames = InputWrapperStylesNames;
|
|
5
|
+
export interface RadioGroupProps extends Omit<InputWrapperProps, 'onChange'> {
|
|
6
|
+
/** `Radio` components */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Controlled component value */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** Default value for uncontrolled component */
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
/** Called when value changes */
|
|
13
|
+
onChange?(value: string): void;
|
|
14
|
+
/** Props passed down to the `Input.Wrapper` */
|
|
15
|
+
wrapperProps?: React.ComponentPropsWithoutRef<'div'>;
|
|
16
|
+
/** Controls size of the `Input.Wrapper`, `'sm'` by default */
|
|
17
|
+
size?: MantineSize;
|
|
18
|
+
/** Name attribute of child radio inputs */
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
export type RadioGroupFactory = Factory<{
|
|
22
|
+
props: RadioGroupProps;
|
|
23
|
+
ref: HTMLDivElement;
|
|
24
|
+
stylesNames: RadioGroupStylesNames;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const RadioGroup: import("../../../core").MantineComponent<{
|
|
27
|
+
props: RadioGroupProps;
|
|
28
|
+
ref: HTMLDivElement;
|
|
29
|
+
stylesNames: RadioGroupStylesNames;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MantineSize } from '../../core';
|
|
3
|
+
interface RadioGroupContextValue {
|
|
4
|
+
size: MantineSize | undefined;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const RadioGroupProvider: ({ children, value }: {
|
|
10
|
+
value: RadioGroupContextValue;
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element, useRadioGroupContext: () => RadioGroupContextValue | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Radio } from './Radio';
|
|
2
|
+
export { RadioGroup } from './RadioGroup/RadioGroup';
|
|
3
|
+
export { RadioIcon } from './RadioIcon';
|
|
4
|
+
export type { RadioIconProps } from './RadioIcon';
|
|
5
|
+
export type { RadioCssVariables, RadioFactory, RadioProps, RadioStylesNames } from './Radio';
|
|
6
|
+
export type { RadioGroupFactory, RadioGroupProps, RadioGroupStylesNames, } from './RadioGroup/RadioGroup';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GetStylesApi } from '../../core';
|
|
3
|
+
import type { StepperFactory } from './Stepper';
|
|
4
|
+
interface StepperContextValue {
|
|
5
|
+
getStyles: GetStylesApi<StepperFactory>;
|
|
6
|
+
orientation: 'horizontal' | 'vertical' | undefined;
|
|
7
|
+
iconPosition: 'left' | 'right' | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const StepperProvider: ({ children, value }: {
|
|
10
|
+
value: StepperContextValue;
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element, useStepperContext: () => StepperContextValue;
|
|
13
|
+
export {};
|