@mantine/core 7.0.0-alpha.17 → 7.0.0-alpha.19
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/Accordion/Accordion.js +2 -2
- package/cjs/components/Accordion/Accordion.module.css.js +1 -1
- package/cjs/components/ActionIcon/ActionIcon.js +1 -1
- package/cjs/components/ActionIcon/ActionIcon.js.map +1 -1
- package/cjs/components/ActionIcon/ActionIcon.module.css.js +1 -1
- package/cjs/components/ActionIcon/ActionIconGroup/ActionIconGroup.js +7 -6
- package/cjs/components/ActionIcon/ActionIconGroup/ActionIconGroup.js.map +1 -1
- package/cjs/components/Affix/Affix.js +1 -1
- package/cjs/components/Affix/Affix.js.map +1 -1
- package/cjs/components/Affix/Affix.module.css.js +1 -1
- package/cjs/components/Alert/Alert.module.css.js +1 -1
- package/cjs/components/Anchor/Anchor.module.css.js +1 -1
- package/cjs/components/AppShell/AppShell.context.js +13 -0
- package/cjs/components/AppShell/AppShell.context.js.map +1 -0
- package/cjs/components/AppShell/AppShell.js +146 -0
- package/cjs/components/AppShell/AppShell.js.map +1 -0
- package/cjs/components/AppShell/AppShell.module.css.js +8 -0
- package/cjs/components/AppShell/AppShell.module.css.js.map +1 -0
- package/cjs/components/AppShell/AppShellAside/AppShellAside.js +72 -0
- package/cjs/components/AppShell/AppShellAside/AppShellAside.js.map +1 -0
- package/cjs/components/AppShell/AppShellFooter/AppShellFooter.js +71 -0
- package/cjs/components/AppShell/AppShellFooter/AppShellFooter.js.map +1 -0
- package/cjs/components/AppShell/AppShellHeader/AppShellHeader.js +71 -0
- package/cjs/components/AppShell/AppShellHeader/AppShellHeader.js.map +1 -0
- package/cjs/components/AppShell/AppShellMain/AppShellMain.js +61 -0
- package/cjs/components/AppShell/AppShellMain/AppShellMain.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js +29 -0
- package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.js +64 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.js +51 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.js +51 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.js +64 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.js +33 -0
- package/cjs/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-base-size/get-base-size.js +13 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-base-size/get-base-size.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js +19 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-padding-value/get-padding-value.js +12 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-padding-value/get-padding-value.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js +17 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.js +48 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.js +11 -0
- package/cjs/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.js.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/is-responsive-size/is-responsive-size.js +16 -0
- package/cjs/components/AppShell/AppShellMediaStyles/is-responsive-size/is-responsive-size.js.map +1 -0
- package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.js +72 -0
- package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.js.map +1 -0
- package/cjs/components/AppShell/AppShellSection/AppShellSection.js +61 -0
- package/cjs/components/AppShell/AppShellSection/AppShellSection.js.map +1 -0
- package/cjs/components/AppShell/use-resizing/use-resizing.js +26 -0
- package/cjs/components/AppShell/use-resizing/use-resizing.js.map +1 -0
- package/cjs/components/AspectRatio/AspectRatio.js.map +1 -1
- package/cjs/components/AspectRatio/AspectRatio.module.css.js +1 -1
- package/cjs/components/Avatar/Avatar.module.css.js +1 -1
- package/cjs/components/Avatar/AvatarGroup/AvatarGroup.js +8 -7
- package/cjs/components/Avatar/AvatarGroup/AvatarGroup.js.map +1 -1
- package/cjs/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/cjs/components/BackgroundImage/BackgroundImage.module.css.js +1 -1
- package/cjs/components/Badge/Badge.module.css.js +1 -1
- package/cjs/components/Blockquote/Blockquote.js.map +1 -1
- package/cjs/components/Blockquote/Blockquote.module.css.js +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/cjs/components/Burger/Burger.js.map +1 -1
- package/cjs/components/Burger/Burger.module.css.js +1 -1
- package/cjs/components/Button/Button.js +7 -10
- package/cjs/components/Button/Button.js.map +1 -1
- package/cjs/components/Button/Button.module.css.js +1 -1
- package/cjs/components/Button/ButtonGroup/ButtonGroup.js +7 -6
- package/cjs/components/Button/ButtonGroup/ButtonGroup.js.map +1 -1
- package/cjs/components/Center/Center.js.map +1 -1
- package/cjs/components/Center/Center.module.css.js +1 -1
- package/cjs/components/Checkbox/Checkbox.js.map +1 -1
- package/cjs/components/Checkbox/Checkbox.module.css.js +1 -1
- package/cjs/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/cjs/components/Chip/Chip.js +178 -0
- package/cjs/components/Chip/Chip.js.map +1 -0
- package/cjs/components/Chip/Chip.module.css.js +8 -0
- package/cjs/components/Chip/Chip.module.css.js.map +1 -0
- package/cjs/components/Chip/ChipGroup/ChipGroup.js +41 -0
- package/cjs/components/Chip/ChipGroup/ChipGroup.js.map +1 -0
- package/cjs/components/Chip/ChipGroup.context.js +11 -0
- package/cjs/components/Chip/ChipGroup.context.js.map +1 -0
- package/cjs/components/Code/Code.js.map +1 -1
- package/cjs/components/Code/Code.module.css.js +1 -1
- package/cjs/components/Collapse/Collapse.js +1 -1
- package/cjs/components/ColorPicker/ColorPicker.js.map +1 -1
- package/cjs/components/ColorPicker/ColorPicker.module.css.js +1 -1
- package/cjs/components/ColorSwatch/ColorSwatch.js.map +1 -1
- package/cjs/components/ColorSwatch/ColorSwatch.module.css.js +1 -1
- package/cjs/components/Combobox/Combobox.module.css.js +1 -1
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.js +7 -6
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.js.map +1 -1
- package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.js +6 -4
- package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.js.map +1 -1
- package/cjs/components/Combobox/OptionsDropdown/validate-options.js +34 -0
- package/cjs/components/Combobox/OptionsDropdown/validate-options.js.map +1 -0
- package/cjs/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.js +3 -0
- package/cjs/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.js.map +1 -1
- package/cjs/components/Container/Container.js.map +1 -1
- package/cjs/components/Container/Container.module.css.js +1 -1
- package/cjs/components/Divider/Divider.module.css.js +1 -1
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/Drawer.module.css.js +1 -1
- package/cjs/components/Drawer/DrawerRoot.js.map +1 -1
- package/cjs/components/Fieldset/Fieldset.module.css.js +1 -1
- package/cjs/components/Floating/use-delayed-hover.js +2 -2
- package/cjs/components/Floating/use-delayed-hover.js.map +1 -1
- package/cjs/components/Grid/Grid.context.js +13 -0
- package/cjs/components/Grid/Grid.context.js.map +1 -0
- package/cjs/components/Grid/Grid.js +109 -0
- package/cjs/components/Grid/Grid.js.map +1 -0
- package/cjs/components/Grid/Grid.module.css.js +8 -0
- package/cjs/components/Grid/Grid.module.css.js.map +1 -0
- package/cjs/components/Grid/GridCol/GridCol.js +72 -0
- package/cjs/components/Grid/GridCol/GridCol.js.map +1 -0
- package/cjs/components/Grid/GridCol/GridColVariables.js +90 -0
- package/cjs/components/Grid/GridCol/GridColVariables.js.map +1 -0
- package/cjs/components/Grid/GridVariables.js +46 -0
- package/cjs/components/Grid/GridVariables.js.map +1 -0
- package/cjs/components/Group/Group.js.map +1 -1
- package/cjs/components/Group/Group.module.css.js +1 -1
- package/cjs/components/HoverCard/HoverCard.context.js +13 -0
- package/cjs/components/HoverCard/HoverCard.context.js.map +1 -0
- package/cjs/components/HoverCard/HoverCard.js +69 -0
- package/cjs/components/HoverCard/HoverCard.js.map +1 -0
- package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.js +58 -0
- package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.js.map +1 -0
- package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.js +62 -0
- package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.js.map +1 -0
- package/cjs/components/InlineInput/InlineInput.module.css.js +1 -1
- package/cjs/components/Input/Input.js +8 -5
- package/cjs/components/Input/Input.js.map +1 -1
- package/cjs/components/Input/Input.module.css.js +1 -1
- package/cjs/components/Input/InputDescription/InputDescription.js +3 -3
- package/cjs/components/Input/InputDescription/InputDescription.js.map +1 -1
- package/cjs/components/Input/InputError/InputError.js +3 -3
- package/cjs/components/Input/InputError/InputError.js.map +1 -1
- package/cjs/components/Input/InputLabel/InputLabel.js +3 -3
- package/cjs/components/Input/InputLabel/InputLabel.js.map +1 -1
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.js +3 -3
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.js.map +1 -1
- package/cjs/components/Input/InputWrapper/InputWrapper.js +3 -3
- package/cjs/components/Input/InputWrapper/InputWrapper.js.map +1 -1
- package/cjs/components/Kbd/Kbd.js.map +1 -1
- package/cjs/components/Kbd/Kbd.module.css.js +1 -1
- package/cjs/components/Loader/Loader.js.map +1 -1
- package/cjs/components/Loader/Loader.module.css.js +1 -1
- package/cjs/components/Loader/loaders/Bars.js +2 -2
- package/cjs/components/Loader/loaders/Bars.js.map +1 -1
- package/cjs/components/Loader/loaders/Dots.js +2 -2
- package/cjs/components/Loader/loaders/Dots.js.map +1 -1
- package/cjs/components/Loader/loaders/Oval.js +2 -2
- package/cjs/components/Loader/loaders/Oval.js.map +1 -1
- package/cjs/components/Mark/Mark.js.map +1 -1
- package/cjs/components/Mark/Mark.module.css.js +1 -1
- package/cjs/components/Menu/Menu.context.js +13 -0
- package/cjs/components/Menu/Menu.context.js.map +1 -0
- package/cjs/components/Menu/Menu.js +181 -0
- package/cjs/components/Menu/Menu.js.map +1 -0
- package/cjs/components/Menu/Menu.module.css.js +8 -0
- package/cjs/components/Menu/Menu.module.css.js.map +1 -0
- package/cjs/components/Menu/MenuDivider/MenuDivider.js +63 -0
- package/cjs/components/Menu/MenuDivider/MenuDivider.js.map +1 -0
- package/cjs/components/Menu/MenuDropdown/MenuDropdown.js +115 -0
- package/cjs/components/Menu/MenuDropdown/MenuDropdown.js.map +1 -0
- package/cjs/components/Menu/MenuItem/MenuItem.js +142 -0
- package/cjs/components/Menu/MenuItem/MenuItem.js.map +1 -0
- package/cjs/components/Menu/MenuLabel/MenuLabel.js +63 -0
- package/cjs/components/Menu/MenuLabel/MenuLabel.js.map +1 -0
- package/cjs/components/Menu/MenuTarget/MenuTarget.js +77 -0
- package/cjs/components/Menu/MenuTarget/MenuTarget.js.map +1 -0
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.module.css.js +1 -1
- package/cjs/components/Modal/ModalRoot.js.map +1 -1
- package/cjs/components/ModalBase/ModalBase.module.css.js +1 -1
- package/cjs/components/MultiSelect/MultiSelect.js +5 -2
- package/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/cjs/components/Notification/Notification.js.map +1 -1
- package/cjs/components/Notification/Notification.module.css.js +1 -1
- package/cjs/components/Overlay/Overlay.js.map +1 -1
- package/cjs/components/Overlay/Overlay.module.css.js +1 -1
- package/cjs/components/Pagination/Pagination.context.js +13 -0
- package/cjs/components/Pagination/Pagination.context.js.map +1 -0
- package/cjs/components/Pagination/Pagination.icons.js +93 -0
- package/cjs/components/Pagination/Pagination.icons.js.map +1 -0
- package/cjs/components/Pagination/Pagination.js +96 -0
- package/cjs/components/Pagination/Pagination.js.map +1 -0
- package/cjs/components/Pagination/Pagination.module.css.js +8 -0
- package/cjs/components/Pagination/Pagination.module.css.js.map +1 -0
- package/cjs/components/Pagination/PaginationControl/PaginationControl.js +85 -0
- package/cjs/components/Pagination/PaginationControl/PaginationControl.js.map +1 -0
- package/cjs/components/Pagination/PaginationDots/PaginationDots.js +67 -0
- package/cjs/components/Pagination/PaginationDots/PaginationDots.js.map +1 -0
- package/cjs/components/Pagination/PaginationEdges/PaginationEdges.js +103 -0
- package/cjs/components/Pagination/PaginationEdges/PaginationEdges.js.map +1 -0
- package/cjs/components/Pagination/PaginationItems/PaginationItems.js +54 -0
- package/cjs/components/Pagination/PaginationItems/PaginationItems.js.map +1 -0
- package/cjs/components/Pagination/PaginationRoot/PaginationRoot.js +158 -0
- package/cjs/components/Pagination/PaginationRoot/PaginationRoot.js.map +1 -0
- package/cjs/components/Paper/Paper.js.map +1 -1
- package/cjs/components/Paper/Paper.module.css.js +1 -1
- package/cjs/components/Pill/Pill.module.css.js +1 -1
- package/cjs/components/Pill/PillGroup/PillGroup.js +7 -6
- package/cjs/components/Pill/PillGroup/PillGroup.js.map +1 -1
- package/cjs/components/{Pill/PillGroup/PillGroup.module.css.js → PillsInput/PillsInput.module.css.js} +2 -2
- package/cjs/components/PillsInput/PillsInput.module.css.js.map +1 -0
- package/cjs/components/PillsInput/PillsInputField/PillsInputField.js +6 -5
- package/cjs/components/PillsInput/PillsInputField/PillsInputField.js.map +1 -1
- package/cjs/components/Popover/Popover.js +2 -2
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/Popover.module.css.js +1 -1
- package/cjs/components/Popover/PopoverTarget/PopoverTarget.js +1 -1
- package/cjs/components/Progress/Progress.context.js +13 -0
- package/cjs/components/Progress/Progress.context.js.map +1 -0
- package/cjs/components/Progress/Progress.js +102 -0
- package/cjs/components/Progress/Progress.js.map +1 -0
- package/cjs/components/Progress/Progress.module.css.js +8 -0
- package/cjs/components/Progress/Progress.module.css.js.map +1 -0
- package/cjs/components/Progress/ProgressLabel/ProgressLabel.js +63 -0
- package/cjs/components/Progress/ProgressLabel/ProgressLabel.js.map +1 -0
- package/cjs/components/Progress/ProgressRoot/ProgressRoot.js +75 -0
- package/cjs/components/Progress/ProgressRoot/ProgressRoot.js.map +1 -0
- package/cjs/components/Progress/ProgressSection/ProgressSection.js +104 -0
- package/cjs/components/Progress/ProgressSection/ProgressSection.js.map +1 -0
- package/cjs/components/Rating/Rating.context.js +13 -0
- package/cjs/components/Rating/Rating.context.js.map +1 -0
- package/cjs/components/Rating/Rating.js +251 -0
- package/cjs/components/Rating/Rating.js.map +1 -0
- package/cjs/components/Rating/Rating.module.css.js +8 -0
- package/cjs/components/Rating/Rating.module.css.js.map +1 -0
- package/cjs/components/Rating/RatingItem/RatingItem.js +116 -0
- package/cjs/components/Rating/RatingItem/RatingItem.js.map +1 -0
- package/cjs/components/Rating/StarSymbol/StarIcon.js +57 -0
- package/cjs/components/Rating/StarSymbol/StarIcon.js.map +1 -0
- package/cjs/components/Rating/StarSymbol/StarSymbol.js +39 -0
- package/cjs/components/Rating/StarSymbol/StarSymbol.js.map +1 -0
- package/cjs/components/RingProgress/Curve/Curve.js +88 -0
- package/cjs/components/RingProgress/Curve/Curve.js.map +1 -0
- package/cjs/components/RingProgress/Curve/get-curve-props.js +21 -0
- package/cjs/components/RingProgress/Curve/get-curve-props.js.map +1 -0
- package/cjs/components/RingProgress/RingProgress.js +128 -0
- package/cjs/components/RingProgress/RingProgress.js.map +1 -0
- package/cjs/components/RingProgress/RingProgress.module.css.js +8 -0
- package/cjs/components/RingProgress/RingProgress.module.css.js.map +1 -0
- package/cjs/components/RingProgress/get-curves/get-curves.js +55 -0
- package/cjs/components/RingProgress/get-curves/get-curves.js.map +1 -0
- package/cjs/components/ScrollArea/ScrollArea.js.map +1 -1
- package/cjs/components/ScrollArea/ScrollArea.module.css.js +1 -1
- package/cjs/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.js.map +1 -1
- package/cjs/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/cjs/components/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/cjs/components/Select/Select.js +8 -0
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/SimpleGrid/SimpleGrid.js +95 -0
- package/cjs/components/SimpleGrid/SimpleGrid.js.map +1 -0
- package/cjs/components/{Button/ButtonGroup/ButtonGroup.module.css.js → SimpleGrid/SimpleGrid.module.css.js} +2 -2
- package/cjs/components/SimpleGrid/SimpleGrid.module.css.js.map +1 -0
- package/cjs/components/SimpleGrid/SimpleGridVariables.js +60 -0
- package/cjs/components/SimpleGrid/SimpleGridVariables.js.map +1 -0
- package/cjs/components/Skeleton/Skeleton.js +112 -0
- package/cjs/components/Skeleton/Skeleton.js.map +1 -0
- package/cjs/components/Skeleton/Skeleton.module.css.js +8 -0
- package/cjs/components/Skeleton/Skeleton.module.css.js.map +1 -0
- package/cjs/components/Slider/RangeSlider/RangeSlider.js +28 -13
- package/cjs/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
- package/cjs/components/Slider/Slider/Slider.js +19 -10
- package/cjs/components/Slider/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/Slider.context.js.map +1 -1
- package/cjs/components/Slider/Slider.module.css.js +1 -1
- package/cjs/components/Slider/utils/get-floating-value/get-gloating-value.js +10 -0
- package/cjs/components/Slider/utils/get-floating-value/get-gloating-value.js.map +1 -0
- package/cjs/components/Slider/utils/get-precision/get-precision.js +13 -0
- package/cjs/components/Slider/utils/get-precision/get-precision.js.map +1 -0
- package/cjs/components/Space/Space.js +53 -0
- package/cjs/components/Space/Space.js.map +1 -0
- package/cjs/components/Stack/Stack.js.map +1 -1
- package/cjs/components/Stack/Stack.module.css.js +1 -1
- package/cjs/components/Switch/Switch.js.map +1 -1
- package/cjs/components/Switch/Switch.module.css.js +1 -1
- package/cjs/components/Switch/SwitchGroup/SwitchGroup.js.map +1 -1
- package/cjs/components/Table/Table.js +2 -0
- package/cjs/components/Table/Table.js.map +1 -1
- package/cjs/components/Table/Table.module.css.js +1 -1
- package/cjs/components/Table/TableScrollContainer.js +109 -0
- package/cjs/components/Table/TableScrollContainer.js.map +1 -0
- package/cjs/components/Tabs/Tabs.module.css.js +1 -1
- package/cjs/components/TagsInput/TagsInput.js +5 -2
- package/cjs/components/TagsInput/TagsInput.js.map +1 -1
- package/cjs/components/Text/Text.module.css.js +1 -1
- package/cjs/components/Title/Title.js.map +1 -1
- package/cjs/components/Title/Title.module.css.js +1 -1
- package/cjs/components/Tooltip/Tooltip.module.css.js +1 -1
- package/cjs/components/TypographyStylesProvider/TypographyStylesProvider.js.map +1 -1
- package/cjs/components/TypographyStylesProvider/TypographyStylesProvider.module.css.js +1 -1
- package/cjs/components/UnstyledButton/UnstyledButton.module.css.js +1 -1
- package/cjs/components/VisuallyHidden/VisuallyHidden.module.css.js +1 -1
- package/cjs/core/Box/Box.js +6 -2
- package/cjs/core/Box/Box.js.map +1 -1
- package/cjs/core/Box/style-props/extract-style-props/extract-style-props.js +9 -3
- package/cjs/core/Box/style-props/extract-style-props/extract-style-props.js.map +1 -1
- package/cjs/core/Box/style-props/parse-style-props/parse-style-props.js +3 -0
- package/cjs/core/Box/style-props/parse-style-props/parse-style-props.js.map +1 -1
- package/cjs/core/Box/use-random-classname/use-random-classname.js +1 -1
- package/cjs/core/Box/use-random-classname/use-random-classname.js.map +1 -1
- package/cjs/core/InlineStyles/css-object-to-string/css-object-to-string.js +1 -2
- package/cjs/core/InlineStyles/css-object-to-string/css-object-to-string.js.map +1 -1
- package/cjs/core/InlineStyles/styles-to-string/styles-to-string.js +3 -23
- package/cjs/core/InlineStyles/styles-to-string/styles-to-string.js.map +1 -1
- package/cjs/core/MantineProvider/Mantine.context.js.map +1 -1
- package/cjs/core/MantineProvider/MantineClasses/MantineClasses.js +38 -0
- package/cjs/core/MantineProvider/MantineClasses/MantineClasses.js.map +1 -0
- package/cjs/core/MantineProvider/MantineProvider.js +4 -2
- package/cjs/core/MantineProvider/MantineProvider.js.map +1 -1
- package/cjs/core/utils/create-event-handler/create-event-handler.js +13 -0
- package/cjs/core/utils/create-event-handler/create-event-handler.js.map +1 -0
- package/cjs/core/utils/get-base-value/get-base-value.js +16 -0
- package/cjs/core/utils/get-base-value/get-base-value.js.map +1 -0
- package/cjs/core/utils/get-breakpoint-value/get-breakpoint-value.js +15 -0
- package/cjs/core/utils/get-breakpoint-value/get-breakpoint-value.js.map +1 -0
- package/cjs/core/utils/get-context-item-index/get-context-item-index.js +18 -0
- package/cjs/core/utils/get-context-item-index/get-context-item-index.js.map +1 -0
- package/cjs/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.js +17 -0
- package/cjs/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/cjs/core/utils/use-hovered/use-hovered.js +14 -0
- package/cjs/core/utils/use-hovered/use-hovered.js.map +1 -0
- package/cjs/index.css +1827 -977
- package/cjs/index.js +93 -6
- package/cjs/index.js.map +1 -1
- package/esm/components/Accordion/Accordion.js +2 -2
- package/esm/components/Accordion/Accordion.module.css.js +1 -1
- package/esm/components/ActionIcon/ActionIcon.js +1 -1
- package/esm/components/ActionIcon/ActionIcon.js.map +1 -1
- package/esm/components/ActionIcon/ActionIcon.module.css.js +1 -1
- package/esm/components/ActionIcon/ActionIconGroup/ActionIconGroup.js +5 -4
- package/esm/components/ActionIcon/ActionIconGroup/ActionIconGroup.js.map +1 -1
- package/esm/components/Affix/Affix.js +1 -1
- package/esm/components/Affix/Affix.js.map +1 -1
- package/esm/components/Affix/Affix.module.css.js +1 -1
- package/esm/components/Alert/Alert.module.css.js +1 -1
- package/esm/components/Anchor/Anchor.module.css.js +1 -1
- package/esm/components/AppShell/AppShell.context.js +8 -0
- package/esm/components/AppShell/AppShell.context.js.map +1 -0
- package/esm/components/AppShell/AppShell.js +138 -0
- package/esm/components/AppShell/AppShell.js.map +1 -0
- package/esm/components/AppShell/AppShell.module.css.js +4 -0
- package/esm/components/AppShell/AppShell.module.css.js.map +1 -0
- package/esm/components/AppShell/AppShellAside/AppShellAside.js +64 -0
- package/esm/components/AppShell/AppShellAside/AppShellAside.js.map +1 -0
- package/esm/components/AppShell/AppShellFooter/AppShellFooter.js +63 -0
- package/esm/components/AppShell/AppShellFooter/AppShellFooter.js.map +1 -0
- package/esm/components/AppShell/AppShellHeader/AppShellHeader.js +63 -0
- package/esm/components/AppShell/AppShellHeader/AppShellHeader.js.map +1 -0
- package/esm/components/AppShell/AppShellMain/AppShellMain.js +53 -0
- package/esm/components/AppShell/AppShellMain/AppShellMain.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js +21 -0
- package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.js +60 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.js +47 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.js +47 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.js +60 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.js +29 -0
- package/esm/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-base-size/get-base-size.js +9 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-base-size/get-base-size.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js +15 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-padding-value/get-padding-value.js +8 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-padding-value/get-padding-value.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js +13 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.js +44 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.js +7 -0
- package/esm/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.js.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/is-responsive-size/is-responsive-size.js +12 -0
- package/esm/components/AppShell/AppShellMediaStyles/is-responsive-size/is-responsive-size.js.map +1 -0
- package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.js +64 -0
- package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.js.map +1 -0
- package/esm/components/AppShell/AppShellSection/AppShellSection.js +53 -0
- package/esm/components/AppShell/AppShellSection/AppShellSection.js.map +1 -0
- package/esm/components/AppShell/use-resizing/use-resizing.js +22 -0
- package/esm/components/AppShell/use-resizing/use-resizing.js.map +1 -0
- package/esm/components/AspectRatio/AspectRatio.js.map +1 -1
- package/esm/components/AspectRatio/AspectRatio.module.css.js +1 -1
- package/esm/components/Avatar/Avatar.module.css.js +1 -1
- package/esm/components/Avatar/AvatarGroup/AvatarGroup.js +6 -5
- package/esm/components/Avatar/AvatarGroup/AvatarGroup.js.map +1 -1
- package/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/esm/components/BackgroundImage/BackgroundImage.module.css.js +1 -1
- package/esm/components/Badge/Badge.module.css.js +1 -1
- package/esm/components/Blockquote/Blockquote.js.map +1 -1
- package/esm/components/Blockquote/Blockquote.module.css.js +1 -1
- package/esm/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/esm/components/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/esm/components/Burger/Burger.js.map +1 -1
- package/esm/components/Burger/Burger.module.css.js +1 -1
- package/esm/components/Button/Button.js +7 -10
- package/esm/components/Button/Button.js.map +1 -1
- package/esm/components/Button/Button.module.css.js +1 -1
- package/esm/components/Button/ButtonGroup/ButtonGroup.js +5 -4
- package/esm/components/Button/ButtonGroup/ButtonGroup.js.map +1 -1
- package/esm/components/Center/Center.js.map +1 -1
- package/esm/components/Center/Center.module.css.js +1 -1
- package/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/esm/components/Checkbox/Checkbox.module.css.js +1 -1
- package/esm/components/Checkbox/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/esm/components/Chip/Chip.js +170 -0
- package/esm/components/Chip/Chip.js.map +1 -0
- package/esm/components/Chip/Chip.module.css.js +4 -0
- package/esm/components/Chip/Chip.module.css.js.map +1 -0
- package/esm/components/Chip/ChipGroup/ChipGroup.js +33 -0
- package/esm/components/Chip/ChipGroup/ChipGroup.js.map +1 -0
- package/esm/components/Chip/ChipGroup.context.js +6 -0
- package/esm/components/Chip/ChipGroup.context.js.map +1 -0
- package/esm/components/Code/Code.js.map +1 -1
- package/esm/components/Code/Code.module.css.js +1 -1
- package/esm/components/Collapse/Collapse.js +1 -1
- package/esm/components/ColorPicker/ColorPicker.js.map +1 -1
- package/esm/components/ColorPicker/ColorPicker.module.css.js +1 -1
- package/esm/components/ColorSwatch/ColorSwatch.js.map +1 -1
- package/esm/components/ColorSwatch/ColorSwatch.module.css.js +1 -1
- package/esm/components/Combobox/Combobox.module.css.js +1 -1
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.js +5 -4
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.js.map +1 -1
- package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.js +6 -4
- package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.js.map +1 -1
- package/esm/components/Combobox/OptionsDropdown/validate-options.js +30 -0
- package/esm/components/Combobox/OptionsDropdown/validate-options.js.map +1 -0
- package/esm/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.js +3 -0
- package/esm/components/Combobox/get-parsed-combobox-data/get-parsed-combobox-data.js.map +1 -1
- package/esm/components/Container/Container.js.map +1 -1
- package/esm/components/Container/Container.module.css.js +1 -1
- package/esm/components/Divider/Divider.module.css.js +1 -1
- package/esm/components/Drawer/Drawer.js.map +1 -1
- package/esm/components/Drawer/Drawer.module.css.js +1 -1
- package/esm/components/Drawer/DrawerRoot.js.map +1 -1
- package/esm/components/Fieldset/Fieldset.module.css.js +1 -1
- package/esm/components/Floating/use-delayed-hover.js +2 -2
- package/esm/components/Floating/use-delayed-hover.js.map +1 -1
- package/esm/components/Grid/Grid.context.js +8 -0
- package/esm/components/Grid/Grid.context.js.map +1 -0
- package/esm/components/Grid/Grid.js +101 -0
- package/esm/components/Grid/Grid.js.map +1 -0
- package/esm/components/Grid/Grid.module.css.js +4 -0
- package/esm/components/Grid/Grid.module.css.js.map +1 -0
- package/esm/components/Grid/GridCol/GridCol.js +63 -0
- package/esm/components/Grid/GridCol/GridCol.js.map +1 -0
- package/esm/components/Grid/GridCol/GridColVariables.js +82 -0
- package/esm/components/Grid/GridCol/GridColVariables.js.map +1 -0
- package/esm/components/Grid/GridVariables.js +38 -0
- package/esm/components/Grid/GridVariables.js.map +1 -0
- package/esm/components/Group/Group.js.map +1 -1
- package/esm/components/Group/Group.module.css.js +1 -1
- package/esm/components/HoverCard/HoverCard.context.js +8 -0
- package/esm/components/HoverCard/HoverCard.context.js.map +1 -0
- package/esm/components/HoverCard/HoverCard.js +61 -0
- package/esm/components/HoverCard/HoverCard.js.map +1 -0
- package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.js +50 -0
- package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.js.map +1 -0
- package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.js +54 -0
- package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.js.map +1 -0
- package/esm/components/InlineInput/InlineInput.module.css.js +1 -1
- package/esm/components/Input/Input.js +8 -5
- package/esm/components/Input/Input.js.map +1 -1
- package/esm/components/Input/Input.module.css.js +1 -1
- package/esm/components/Input/InputDescription/InputDescription.js +1 -1
- package/esm/components/Input/InputDescription/InputDescription.js.map +1 -1
- package/esm/components/Input/InputError/InputError.js +1 -1
- package/esm/components/Input/InputError/InputError.js.map +1 -1
- package/esm/components/Input/InputLabel/InputLabel.js +1 -1
- package/esm/components/Input/InputLabel/InputLabel.js.map +1 -1
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.js +1 -1
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.js.map +1 -1
- package/esm/components/Input/InputWrapper/InputWrapper.js +1 -1
- package/esm/components/Input/InputWrapper/InputWrapper.js.map +1 -1
- package/esm/components/Kbd/Kbd.js.map +1 -1
- package/esm/components/Kbd/Kbd.module.css.js +1 -1
- package/esm/components/Loader/Loader.js.map +1 -1
- package/esm/components/Loader/Loader.module.css.js +1 -1
- package/esm/components/Loader/loaders/Bars.js +2 -2
- package/esm/components/Loader/loaders/Bars.js.map +1 -1
- package/esm/components/Loader/loaders/Dots.js +2 -2
- package/esm/components/Loader/loaders/Dots.js.map +1 -1
- package/esm/components/Loader/loaders/Oval.js +2 -2
- package/esm/components/Loader/loaders/Oval.js.map +1 -1
- package/esm/components/Mark/Mark.js.map +1 -1
- package/esm/components/Mark/Mark.module.css.js +1 -1
- package/esm/components/Menu/Menu.context.js +8 -0
- package/esm/components/Menu/Menu.context.js.map +1 -0
- package/esm/components/Menu/Menu.js +173 -0
- package/esm/components/Menu/Menu.js.map +1 -0
- package/esm/components/Menu/Menu.module.css.js +4 -0
- package/esm/components/Menu/Menu.module.css.js.map +1 -0
- package/esm/components/Menu/MenuDivider/MenuDivider.js +55 -0
- package/esm/components/Menu/MenuDivider/MenuDivider.js.map +1 -0
- package/esm/components/Menu/MenuDropdown/MenuDropdown.js +107 -0
- package/esm/components/Menu/MenuDropdown/MenuDropdown.js.map +1 -0
- package/esm/components/Menu/MenuItem/MenuItem.js +134 -0
- package/esm/components/Menu/MenuItem/MenuItem.js.map +1 -0
- package/esm/components/Menu/MenuLabel/MenuLabel.js +55 -0
- package/esm/components/Menu/MenuLabel/MenuLabel.js.map +1 -0
- package/esm/components/Menu/MenuTarget/MenuTarget.js +69 -0
- package/esm/components/Menu/MenuTarget/MenuTarget.js.map +1 -0
- package/esm/components/Modal/Modal.js.map +1 -1
- package/esm/components/Modal/Modal.module.css.js +1 -1
- package/esm/components/Modal/ModalRoot.js.map +1 -1
- package/esm/components/ModalBase/ModalBase.module.css.js +1 -1
- package/esm/components/MultiSelect/MultiSelect.js +5 -2
- package/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/esm/components/Notification/Notification.js.map +1 -1
- package/esm/components/Notification/Notification.module.css.js +1 -1
- package/esm/components/Overlay/Overlay.js.map +1 -1
- package/esm/components/Overlay/Overlay.module.css.js +1 -1
- package/esm/components/Pagination/Pagination.context.js +8 -0
- package/esm/components/Pagination/Pagination.context.js.map +1 -0
- package/esm/components/Pagination/Pagination.icons.js +81 -0
- package/esm/components/Pagination/Pagination.icons.js.map +1 -0
- package/esm/components/Pagination/Pagination.js +88 -0
- package/esm/components/Pagination/Pagination.js.map +1 -0
- package/esm/components/Pagination/Pagination.module.css.js +4 -0
- package/esm/components/Pagination/Pagination.module.css.js.map +1 -0
- package/esm/components/Pagination/PaginationControl/PaginationControl.js +77 -0
- package/esm/components/Pagination/PaginationControl/PaginationControl.js.map +1 -0
- package/esm/components/Pagination/PaginationDots/PaginationDots.js +59 -0
- package/esm/components/Pagination/PaginationDots/PaginationDots.js.map +1 -0
- package/esm/components/Pagination/PaginationEdges/PaginationEdges.js +91 -0
- package/esm/components/Pagination/PaginationEdges/PaginationEdges.js.map +1 -0
- package/esm/components/Pagination/PaginationItems/PaginationItems.js +46 -0
- package/esm/components/Pagination/PaginationItems/PaginationItems.js.map +1 -0
- package/esm/components/Pagination/PaginationRoot/PaginationRoot.js +150 -0
- package/esm/components/Pagination/PaginationRoot/PaginationRoot.js.map +1 -0
- package/esm/components/Paper/Paper.js.map +1 -1
- package/esm/components/Paper/Paper.module.css.js +1 -1
- package/esm/components/Pill/Pill.module.css.js +1 -1
- package/esm/components/Pill/PillGroup/PillGroup.js +5 -4
- package/esm/components/Pill/PillGroup/PillGroup.js.map +1 -1
- package/esm/components/PillsInput/PillsInput.module.css.js +4 -0
- package/esm/components/PillsInput/PillsInput.module.css.js.map +1 -0
- package/esm/components/PillsInput/PillsInputField/PillsInputField.js +4 -3
- package/esm/components/PillsInput/PillsInputField/PillsInputField.js.map +1 -1
- package/esm/components/Popover/Popover.js +2 -2
- package/esm/components/Popover/Popover.js.map +1 -1
- package/esm/components/Popover/Popover.module.css.js +1 -1
- package/esm/components/Popover/PopoverTarget/PopoverTarget.js +1 -1
- package/esm/components/Progress/Progress.context.js +8 -0
- package/esm/components/Progress/Progress.context.js.map +1 -0
- package/esm/components/Progress/Progress.js +94 -0
- package/esm/components/Progress/Progress.js.map +1 -0
- package/esm/components/Progress/Progress.module.css.js +4 -0
- package/esm/components/Progress/Progress.module.css.js.map +1 -0
- package/esm/components/Progress/ProgressLabel/ProgressLabel.js +55 -0
- package/esm/components/Progress/ProgressLabel/ProgressLabel.js.map +1 -0
- package/esm/components/Progress/ProgressRoot/ProgressRoot.js +67 -0
- package/esm/components/Progress/ProgressRoot/ProgressRoot.js.map +1 -0
- package/esm/components/Progress/ProgressSection/ProgressSection.js +96 -0
- package/esm/components/Progress/ProgressSection/ProgressSection.js.map +1 -0
- package/esm/components/Rating/Rating.context.js +8 -0
- package/esm/components/Rating/Rating.context.js.map +1 -0
- package/esm/components/Rating/Rating.js +243 -0
- package/esm/components/Rating/Rating.js.map +1 -0
- package/esm/components/Rating/Rating.module.css.js +4 -0
- package/esm/components/Rating/Rating.module.css.js.map +1 -0
- package/esm/components/Rating/RatingItem/RatingItem.js +108 -0
- package/esm/components/Rating/RatingItem/RatingItem.js.map +1 -0
- package/esm/components/Rating/StarSymbol/StarIcon.js +49 -0
- package/esm/components/Rating/StarSymbol/StarIcon.js.map +1 -0
- package/esm/components/Rating/StarSymbol/StarSymbol.js +31 -0
- package/esm/components/Rating/StarSymbol/StarSymbol.js.map +1 -0
- package/esm/components/RingProgress/Curve/Curve.js +80 -0
- package/esm/components/RingProgress/Curve/Curve.js.map +1 -0
- package/esm/components/RingProgress/Curve/get-curve-props.js +17 -0
- package/esm/components/RingProgress/Curve/get-curve-props.js.map +1 -0
- package/esm/components/RingProgress/RingProgress.js +120 -0
- package/esm/components/RingProgress/RingProgress.js.map +1 -0
- package/esm/components/RingProgress/RingProgress.module.css.js +4 -0
- package/esm/components/RingProgress/RingProgress.module.css.js.map +1 -0
- package/esm/components/RingProgress/get-curves/get-curves.js +51 -0
- package/esm/components/RingProgress/get-curves/get-curves.js.map +1 -0
- package/esm/components/ScrollArea/ScrollArea.js.map +1 -1
- package/esm/components/ScrollArea/ScrollArea.module.css.js +1 -1
- package/esm/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.js.map +1 -1
- package/esm/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/esm/components/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/esm/components/Select/Select.js +8 -0
- package/esm/components/Select/Select.js.map +1 -1
- package/esm/components/SimpleGrid/SimpleGrid.js +87 -0
- package/esm/components/SimpleGrid/SimpleGrid.js.map +1 -0
- package/esm/components/SimpleGrid/SimpleGrid.module.css.js +4 -0
- package/esm/components/SimpleGrid/SimpleGrid.module.css.js.map +1 -0
- package/esm/components/SimpleGrid/SimpleGridVariables.js +52 -0
- package/esm/components/SimpleGrid/SimpleGridVariables.js.map +1 -0
- package/esm/components/Skeleton/Skeleton.js +104 -0
- package/esm/components/Skeleton/Skeleton.js.map +1 -0
- package/esm/components/Skeleton/Skeleton.module.css.js +4 -0
- package/esm/components/Skeleton/Skeleton.module.css.js.map +1 -0
- package/esm/components/Slider/RangeSlider/RangeSlider.js +28 -13
- package/esm/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
- package/esm/components/Slider/Slider/Slider.js +19 -10
- package/esm/components/Slider/Slider/Slider.js.map +1 -1
- package/esm/components/Slider/Slider.context.js.map +1 -1
- package/esm/components/Slider/Slider.module.css.js +1 -1
- package/esm/components/Slider/utils/get-floating-value/get-gloating-value.js +6 -0
- package/esm/components/Slider/utils/get-floating-value/get-gloating-value.js.map +1 -0
- package/esm/components/Slider/utils/get-precision/get-precision.js +9 -0
- package/esm/components/Slider/utils/get-precision/get-precision.js.map +1 -0
- package/esm/components/Space/Space.js +45 -0
- package/esm/components/Space/Space.js.map +1 -0
- package/esm/components/Stack/Stack.js.map +1 -1
- package/esm/components/Stack/Stack.module.css.js +1 -1
- package/esm/components/Switch/Switch.js.map +1 -1
- package/esm/components/Switch/Switch.module.css.js +1 -1
- package/esm/components/Switch/SwitchGroup/SwitchGroup.js.map +1 -1
- package/esm/components/Table/Table.js +2 -0
- package/esm/components/Table/Table.js.map +1 -1
- package/esm/components/Table/Table.module.css.js +1 -1
- package/esm/components/Table/TableScrollContainer.js +101 -0
- package/esm/components/Table/TableScrollContainer.js.map +1 -0
- package/esm/components/Tabs/Tabs.module.css.js +1 -1
- package/esm/components/TagsInput/TagsInput.js +5 -2
- package/esm/components/TagsInput/TagsInput.js.map +1 -1
- package/esm/components/Text/Text.module.css.js +1 -1
- package/esm/components/Title/Title.js.map +1 -1
- package/esm/components/Title/Title.module.css.js +1 -1
- package/esm/components/Tooltip/Tooltip.module.css.js +1 -1
- package/esm/components/TypographyStylesProvider/TypographyStylesProvider.js.map +1 -1
- package/esm/components/TypographyStylesProvider/TypographyStylesProvider.module.css.js +1 -1
- package/esm/components/UnstyledButton/UnstyledButton.module.css.js +1 -1
- package/esm/components/VisuallyHidden/VisuallyHidden.module.css.js +1 -1
- package/esm/core/Box/Box.js +6 -2
- package/esm/core/Box/Box.js.map +1 -1
- package/esm/core/Box/style-props/extract-style-props/extract-style-props.js +9 -3
- package/esm/core/Box/style-props/extract-style-props/extract-style-props.js.map +1 -1
- package/esm/core/Box/style-props/parse-style-props/parse-style-props.js +3 -0
- package/esm/core/Box/style-props/parse-style-props/parse-style-props.js.map +1 -1
- package/esm/core/Box/use-random-classname/use-random-classname.js +1 -1
- package/esm/core/Box/use-random-classname/use-random-classname.js.map +1 -1
- package/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js +1 -2
- package/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js.map +1 -1
- package/esm/core/InlineStyles/styles-to-string/styles-to-string.js +3 -23
- package/esm/core/InlineStyles/styles-to-string/styles-to-string.js.map +1 -1
- package/esm/core/MantineProvider/Mantine.context.js.map +1 -1
- package/esm/core/MantineProvider/MantineClasses/MantineClasses.js +30 -0
- package/esm/core/MantineProvider/MantineClasses/MantineClasses.js.map +1 -0
- package/esm/core/MantineProvider/MantineProvider.js +4 -2
- package/esm/core/MantineProvider/MantineProvider.js.map +1 -1
- package/esm/core/utils/create-event-handler/create-event-handler.js +9 -0
- package/esm/core/utils/create-event-handler/create-event-handler.js.map +1 -0
- package/esm/core/utils/get-base-value/get-base-value.js +12 -0
- package/esm/core/utils/get-base-value/get-base-value.js.map +1 -0
- package/esm/core/utils/get-breakpoint-value/get-breakpoint-value.js +11 -0
- package/esm/core/utils/get-breakpoint-value/get-breakpoint-value.js.map +1 -0
- package/esm/core/utils/get-context-item-index/get-context-item-index.js +14 -0
- package/esm/core/utils/get-context-item-index/get-context-item-index.js.map +1 -0
- package/esm/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.js +13 -0
- package/esm/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/esm/core/utils/use-hovered/use-hovered.js +10 -0
- package/esm/core/utils/use-hovered/use-hovered.js.map +1 -0
- package/esm/index.css +1827 -977
- package/esm/index.js +45 -3
- package/esm/index.js.map +1 -1
- package/esm/styles/Accordion.css +1 -0
- package/esm/styles/ActionIcon.css +1 -0
- package/esm/styles/Affix.css +1 -0
- package/esm/styles/Alert.css +1 -0
- package/esm/styles/Anchor.css +1 -0
- package/esm/styles/AppShell.css +7 -0
- package/esm/styles/AspectRatio.css +1 -0
- package/esm/styles/Avatar.css +1 -0
- package/esm/styles/BackgroundImage.css +1 -0
- package/esm/styles/Badge.css +1 -0
- package/esm/styles/Blockquote.css +1 -0
- package/esm/styles/Breadcrumbs.css +1 -0
- package/esm/styles/Burger.css +1 -0
- package/esm/styles/Button.css +1 -0
- package/esm/styles/Center.css +1 -0
- package/esm/styles/Checkbox.css +1 -0
- package/esm/styles/Chip.css +1 -0
- package/esm/styles/Code.css +1 -0
- package/esm/styles/ColorPicker.css +1 -0
- package/esm/styles/ColorSwatch.css +1 -0
- package/esm/styles/Combobox.css +1 -0
- package/esm/styles/Container.css +1 -0
- package/esm/styles/Divider.css +1 -0
- package/esm/styles/Drawer.css +1 -0
- package/esm/styles/Fieldset.css +1 -0
- package/esm/styles/Grid.css +1 -0
- package/esm/styles/Group.css +1 -0
- package/esm/styles/InlineInput.css +1 -0
- package/esm/styles/Input.css +3 -0
- package/esm/styles/Kbd.css +1 -0
- package/esm/styles/Loader.css +1 -0
- package/esm/styles/Mark.css +1 -0
- package/esm/styles/Menu.css +1 -0
- package/esm/styles/Modal.css +1 -0
- package/esm/styles/ModalBase.css +1 -0
- package/esm/styles/Notification.css +1 -0
- package/esm/styles/Overlay.css +1 -0
- package/esm/styles/Pagination.css +1 -0
- package/esm/styles/Paper.css +1 -0
- package/esm/styles/Pill.css +1 -0
- package/esm/styles/PillsInput.css +1 -0
- package/esm/styles/Popover.css +1 -0
- package/esm/styles/Progress.css +1 -0
- package/esm/styles/Rating.css +1 -0
- package/esm/styles/RingProgress.css +1 -0
- package/esm/styles/ScrollArea.css +1 -0
- package/esm/styles/SegmentedControl.css +1 -0
- package/esm/styles/SimpleGrid.css +1 -0
- package/esm/styles/Skeleton.css +1 -0
- package/esm/styles/Slider.css +1 -0
- package/esm/styles/Stack.css +1 -0
- package/esm/styles/Switch.css +1 -0
- package/esm/styles/Table.css +1 -0
- package/esm/styles/Tabs.css +1 -0
- package/esm/styles/Text.css +1 -0
- package/esm/styles/Title.css +1 -0
- package/esm/styles/Tooltip.css +1 -0
- package/esm/styles/TypographyStylesProvider.css +1 -0
- package/esm/styles/UnstyledButton.css +1 -0
- package/esm/styles/VisuallyHidden.css +1 -0
- package/esm/styles/global.css +1 -0
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.d.ts +2 -5
- package/lib/components/Affix/Affix.d.ts +0 -3
- package/lib/components/Affix/index.d.ts +1 -1
- package/lib/components/AppShell/AppShell.context.d.ts +13 -0
- package/lib/components/AppShell/AppShell.d.ts +96 -0
- package/lib/components/AppShell/AppShellAside/AppShellAside.d.ts +19 -0
- package/lib/components/AppShell/AppShellFooter/AppShellFooter.d.ts +27 -0
- package/lib/components/AppShell/AppShellHeader/AppShellHeader.d.ts +27 -0
- package/lib/components/AppShell/AppShellMain/AppShellMain.d.ts +16 -0
- package/lib/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.d.ts +11 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.d.ts +12 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.d.ts +9 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.d.ts +9 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-header-variables.d.ts +12 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.d.ts +12 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-navbar-variables.d.ts +12 -0
- package/lib/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.d.ts +9 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-base-size/get-base-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-base-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-breakpoint-value/get-breakpoint-value.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-breakpoint-value.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-padding-value/get-padding-value.d.ts +1 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-padding-value.d.ts +1 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints/get-sorted-breakpoints.d.ts +5 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-sorted-breakpoints.d.ts +5 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-variables/get-variables.d.ts +20 -0
- package/lib/components/AppShell/AppShellMediaStyles/is-primitive-size/is-primitive-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/is-primitive-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/is-responsive-size/is-responsive-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/is-responsive-size.d.ts +2 -0
- package/lib/components/AppShell/AppShellNavbar/AppShellNavbar.d.ts +19 -0
- package/lib/components/AppShell/AppShellSection/AppShellSection.d.ts +33 -0
- package/lib/components/AppShell/index.d.ts +14 -0
- package/lib/components/AppShell/use-resizing/use-resizing.d.ts +6 -0
- package/lib/components/AspectRatio/AspectRatio.d.ts +0 -3
- package/lib/components/AspectRatio/index.d.ts +1 -1
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.d.ts +2 -5
- package/lib/components/Avatar/index.d.ts +1 -1
- package/lib/components/BackgroundImage/BackgroundImage.d.ts +0 -4
- package/lib/components/BackgroundImage/index.d.ts +1 -1
- package/lib/components/Blockquote/Blockquote.d.ts +0 -3
- package/lib/components/Blockquote/index.d.ts +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -3
- package/lib/components/Breadcrumbs/index.d.ts +1 -1
- package/lib/components/Burger/Burger.d.ts +0 -3
- package/lib/components/Burger/index.d.ts +1 -1
- package/lib/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -5
- package/lib/components/Center/Center.d.ts +0 -4
- package/lib/components/Center/index.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.d.ts +0 -3
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +0 -1
- package/lib/components/Checkbox/index.d.ts +2 -2
- package/lib/components/Chip/Chip.d.ts +52 -0
- package/lib/components/Chip/ChipGroup/ChipGroup.d.ts +17 -0
- package/lib/components/Chip/ChipGroup.context.d.ts +11 -0
- package/lib/components/Chip/index.d.ts +4 -0
- package/lib/components/Code/Code.d.ts +0 -3
- package/lib/components/Code/index.d.ts +1 -1
- package/lib/components/ColorPicker/ColorPicker.d.ts +0 -3
- package/lib/components/ColorPicker/index.d.ts +1 -1
- package/lib/components/ColorSwatch/ColorSwatch.d.ts +0 -5
- package/lib/components/ColorSwatch/index.d.ts +1 -1
- package/lib/components/Combobox/Combobox.d.ts +1 -1
- package/lib/components/Combobox/ComboboxChevron/ComboboxChevron.d.ts +2 -2
- package/lib/components/Combobox/OptionsDropdown/validate-options.d.ts +1 -0
- package/lib/components/Container/Container.d.ts +0 -3
- package/lib/components/Container/index.d.ts +1 -1
- package/lib/components/Drawer/Drawer.d.ts +0 -3
- package/lib/components/Drawer/DrawerRoot.d.ts +0 -3
- package/lib/components/Drawer/index.d.ts +1 -1
- package/lib/components/Floating/use-delayed-hover.d.ts +2 -2
- package/lib/components/Grid/Grid.context.d.ts +13 -0
- package/lib/components/Grid/Grid.d.ts +37 -0
- package/lib/components/Grid/GridCol/GridCol.d.ts +23 -0
- package/lib/components/Grid/GridCol/GridColVariables.d.ts +7 -0
- package/lib/components/Grid/GridVariables.d.ts +7 -0
- package/lib/components/Grid/index.d.ts +4 -0
- package/lib/components/Group/Group.d.ts +0 -3
- package/lib/components/Group/index.d.ts +1 -1
- package/lib/components/HoverCard/HoverCard.context.d.ts +10 -0
- package/lib/components/HoverCard/HoverCard.d.ts +22 -0
- package/lib/components/HoverCard/HoverCardDropdown/HoverCardDropdown.d.ts +10 -0
- package/lib/components/HoverCard/HoverCardTarget/HoverCardTarget.d.ts +5 -0
- package/lib/components/HoverCard/index.d.ts +6 -0
- package/lib/components/Input/Input.d.ts +2 -0
- package/lib/components/Input/InputDescription/InputDescription.d.ts +0 -3
- package/lib/components/Input/InputError/InputError.d.ts +0 -3
- package/lib/components/Input/InputLabel/InputLabel.d.ts +0 -3
- package/lib/components/Input/InputPlaceholder/InputPlaceholder.d.ts +0 -3
- package/lib/components/Input/index.d.ts +4 -4
- package/lib/components/Input/use-input-props.d.ts +41 -41
- package/lib/components/InputBase/InputBase.d.ts +1 -1
- package/lib/components/Kbd/Kbd.d.ts +0 -3
- package/lib/components/Kbd/index.d.ts +1 -1
- package/lib/components/Loader/Loader.d.ts +0 -1
- package/lib/components/Mark/Mark.d.ts +0 -1
- package/lib/components/Menu/Menu.context.d.ts +22 -0
- package/lib/components/Menu/Menu.d.ts +84 -0
- package/lib/components/Menu/MenuDivider/MenuDivider.d.ts +16 -0
- package/lib/components/Menu/MenuDropdown/MenuDropdown.d.ts +16 -0
- package/lib/components/Menu/MenuItem/MenuItem.d.ts +43 -0
- package/lib/components/Menu/MenuLabel/MenuLabel.d.ts +16 -0
- package/lib/components/Menu/MenuTarget/MenuTarget.d.ts +8 -0
- package/lib/components/Menu/index.d.ts +12 -0
- package/lib/components/Modal/Modal.d.ts +0 -3
- package/lib/components/Modal/ModalRoot.d.ts +0 -3
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/Notification/Notification.d.ts +0 -3
- package/lib/components/Notification/index.d.ts +1 -1
- package/lib/components/Overlay/Overlay.d.ts +0 -4
- package/lib/components/Overlay/index.d.ts +1 -1
- package/lib/components/Pagination/Pagination.context.d.ts +21 -0
- package/lib/components/Pagination/Pagination.d.ts +61 -0
- package/lib/components/Pagination/Pagination.icons.d.ts +12 -0
- package/lib/components/Pagination/PaginationControl/PaginationControl.d.ts +20 -0
- package/lib/components/Pagination/PaginationDots/PaginationDots.d.ts +20 -0
- package/lib/components/Pagination/PaginationEdges/PaginationEdges.d.ts +47 -0
- package/lib/components/Pagination/PaginationItems/PaginationItems.d.ts +10 -0
- package/lib/components/Pagination/PaginationRoot/PaginationRoot.d.ts +49 -0
- package/lib/components/Pagination/index.d.ts +12 -0
- package/lib/components/Paper/Paper.d.ts +0 -1
- package/lib/components/Paper/index.d.ts +1 -1
- package/lib/components/Pill/PillGroup/PillGroup.d.ts +2 -2
- package/lib/components/PillsInput/PillsInputField/PillsInputField.d.ts +1 -1
- package/lib/components/Popover/Popover.d.ts +1 -1
- package/lib/components/Progress/Progress.context.d.ts +11 -0
- package/lib/components/Progress/Progress.d.ts +37 -0
- package/lib/components/Progress/ProgressLabel/ProgressLabel.d.ts +16 -0
- package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +25 -0
- package/lib/components/Progress/ProgressSection/ProgressSection.d.ts +26 -0
- package/lib/components/Progress/index.d.ts +8 -0
- package/lib/components/Rating/Rating.context.d.ts +11 -0
- package/lib/components/Rating/Rating.d.ts +48 -0
- package/lib/components/Rating/RatingItem/RatingItem.d.ts +18 -0
- package/lib/components/Rating/StarSymbol/StarIcon.d.ts +5 -0
- package/lib/components/Rating/StarSymbol/StarSymbol.d.ts +8 -0
- package/lib/components/Rating/index.d.ts +2 -0
- package/lib/components/RingProgress/Curve/Curve.d.ts +20 -0
- package/lib/components/RingProgress/Curve/get-curve-props.d.ts +18 -0
- package/lib/components/RingProgress/RingProgress.d.ts +38 -0
- package/lib/components/RingProgress/get-curves/get-curves.d.ts +26 -0
- package/lib/components/RingProgress/index.d.ts +2 -0
- package/lib/components/ScrollArea/ScrollArea.d.ts +0 -1
- package/lib/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.d.ts +0 -1
- package/lib/components/ScrollArea/index.d.ts +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +0 -1
- package/lib/components/SegmentedControl/index.d.ts +1 -1
- package/lib/components/SimpleGrid/SimpleGrid.d.ts +20 -0
- package/lib/components/SimpleGrid/SimpleGridVariables.d.ts +7 -0
- package/lib/components/SimpleGrid/index.d.ts +2 -0
- package/lib/components/Skeleton/Skeleton.d.ts +32 -0
- package/lib/components/Skeleton/index.d.ts +2 -0
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +1 -3
- package/lib/components/Slider/Slider/Slider.d.ts +1 -3
- package/lib/components/Slider/Slider.context.d.ts +0 -1
- package/lib/components/Slider/index.d.ts +1 -1
- package/lib/components/Slider/utils/get-floating-value/get-gloating-value.d.ts +1 -0
- package/lib/components/Slider/utils/get-precision/get-precision.d.ts +1 -0
- package/lib/components/Space/Space.d.ts +11 -0
- package/lib/components/Space/index.d.ts +2 -0
- package/lib/components/Stack/Stack.d.ts +0 -3
- package/lib/components/Stack/index.d.ts +1 -1
- package/lib/components/Switch/Switch.d.ts +0 -3
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +0 -1
- package/lib/components/Switch/index.d.ts +2 -2
- package/lib/components/Table/Table.d.ts +3 -1
- package/lib/components/Table/TableScrollContainer.d.ts +24 -0
- package/lib/components/Table/index.d.ts +2 -1
- package/lib/components/Title/Title.d.ts +0 -3
- package/lib/components/Title/index.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.types.d.ts +0 -1
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/components/TypographyStylesProvider/TypographyStylesProvider.d.ts +0 -3
- package/lib/components/TypographyStylesProvider/index.d.ts +1 -1
- package/lib/components/index.d.ts +13 -1
- package/lib/core/Box/Box.d.ts +6 -1
- package/lib/core/MantineProvider/Mantine.context.d.ts +1 -0
- package/lib/core/MantineProvider/MantineClasses/MantineClasses.d.ts +2 -0
- package/lib/core/MantineProvider/MantineClasses/index.d.ts +1 -0
- package/lib/core/MantineProvider/MantineProvider.d.ts +1 -3
- package/lib/core/utils/create-event-handler/create-event-handler.d.ts +3 -0
- package/lib/core/utils/get-base-value/get-base-value.d.ts +2 -0
- package/lib/core/utils/get-breakpoint-value/get-breakpoint-value.d.ts +2 -0
- package/lib/core/utils/get-context-item-index/get-context-item-index.d.ts +1 -0
- package/lib/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.d.ts +5 -0
- package/lib/core/utils/index.d.ts +6 -0
- package/lib/core/utils/use-hovered/use-hovered.d.ts +5 -0
- package/package.json +5 -5
- package/cjs/components/ActionIcon/ActionIconGroup/ActionIconGroup.module.css.js +0 -8
- package/cjs/components/ActionIcon/ActionIconGroup/ActionIconGroup.module.css.js.map +0 -1
- package/cjs/components/Avatar/AvatarGroup/AvatarGroup.module.css.js +0 -8
- package/cjs/components/Avatar/AvatarGroup/AvatarGroup.module.css.js.map +0 -1
- package/cjs/components/Button/ButtonGroup/ButtonGroup.module.css.js.map +0 -1
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.module.css.js +0 -8
- package/cjs/components/Combobox/ComboboxChevron/ComboboxChevron.module.css.js.map +0 -1
- package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.module.css.js +0 -8
- package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.module.css.js.map +0 -1
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.module.css.js +0 -8
- package/cjs/components/Input/InputPlaceholder/InputPlaceholder.module.css.js.map +0 -1
- package/cjs/components/Input/InputWrapper/InputWrapper.module.css.js +0 -8
- package/cjs/components/Input/InputWrapper/InputWrapper.module.css.js.map +0 -1
- package/cjs/components/Loader/loaders/Bars.module.css.js +0 -8
- package/cjs/components/Loader/loaders/Bars.module.css.js.map +0 -1
- package/cjs/components/Loader/loaders/Dots.module.css.js +0 -8
- package/cjs/components/Loader/loaders/Dots.module.css.js.map +0 -1
- package/cjs/components/Loader/loaders/Oval.module.css.js +0 -8
- package/cjs/components/Loader/loaders/Oval.module.css.js.map +0 -1
- package/cjs/components/Pill/PillGroup/PillGroup.module.css.js.map +0 -1
- package/cjs/components/PillsInput/PillsInputField/PillsInputField.module.css.js +0 -8
- package/cjs/components/PillsInput/PillsInputField/PillsInputField.module.css.js.map +0 -1
- package/esm/components/ActionIcon/ActionIconGroup/ActionIconGroup.module.css.js +0 -4
- package/esm/components/ActionIcon/ActionIconGroup/ActionIconGroup.module.css.js.map +0 -1
- package/esm/components/Avatar/AvatarGroup/AvatarGroup.module.css.js +0 -4
- package/esm/components/Avatar/AvatarGroup/AvatarGroup.module.css.js.map +0 -1
- package/esm/components/Button/ButtonGroup/ButtonGroup.module.css.js +0 -4
- package/esm/components/Button/ButtonGroup/ButtonGroup.module.css.js.map +0 -1
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.module.css.js +0 -4
- package/esm/components/Combobox/ComboboxChevron/ComboboxChevron.module.css.js.map +0 -1
- package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.module.css.js +0 -4
- package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.module.css.js.map +0 -1
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.module.css.js +0 -4
- package/esm/components/Input/InputPlaceholder/InputPlaceholder.module.css.js.map +0 -1
- package/esm/components/Input/InputWrapper/InputWrapper.module.css.js +0 -4
- package/esm/components/Input/InputWrapper/InputWrapper.module.css.js.map +0 -1
- package/esm/components/Loader/loaders/Bars.module.css.js +0 -4
- package/esm/components/Loader/loaders/Bars.module.css.js.map +0 -1
- package/esm/components/Loader/loaders/Dots.module.css.js +0 -4
- package/esm/components/Loader/loaders/Dots.module.css.js.map +0 -1
- package/esm/components/Loader/loaders/Oval.module.css.js +0 -4
- package/esm/components/Loader/loaders/Oval.module.css.js.map +0 -1
- package/esm/components/Pill/PillGroup/PillGroup.module.css.js +0 -4
- package/esm/components/Pill/PillGroup/PillGroup.module.css.js.map +0 -1
- package/esm/components/PillsInput/PillsInputField/PillsInputField.module.css.js +0 -4
- package/esm/components/PillsInput/PillsInputField/PillsInputField.module.css.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillsInputField.js","sources":["../../../../src/components/PillsInput/PillsInputField/PillsInputField.tsx"],"sourcesContent":["import React from 'react';\nimport { useMergedRef } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n useStyles,\n Factory,\n} from '../../../core';\nimport { useInputWrapperContext } from '../../Input';\nimport { usePillsInputContext } from '../PillsInput.context';\nimport classes from '
|
|
1
|
+
{"version":3,"file":"PillsInputField.js","sources":["../../../../src/components/PillsInput/PillsInputField/PillsInputField.tsx"],"sourcesContent":["import React from 'react';\nimport { useMergedRef } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n useStyles,\n Factory,\n} from '../../../core';\nimport { useInputWrapperContext } from '../../Input';\nimport { usePillsInputContext } from '../PillsInput.context';\nimport classes from '../PillsInput.module.css';\n\nexport type PillsInputFieldStylesNames = 'field';\n\nexport interface PillsInputFieldProps\n extends BoxProps,\n StylesApiProps<PillsInputFieldFactory>,\n ElementProps<'input', 'type'> {\n /** Controls input styles when focused. If `auto` the input is hidden when not focused. If `visible` the input will always remain visible. `'visible'` by default */\n type?: 'auto' | 'visible' | 'hidden';\n\n /** If set, cursor is changed to pointer */\n pointer?: boolean;\n}\n\nexport type PillsInputFieldFactory = Factory<{\n props: PillsInputFieldProps;\n ref: HTMLInputElement;\n stylesNames: PillsInputFieldStylesNames;\n}>;\n\nconst defaultProps: Partial<PillsInputFieldProps> = {\n type: 'visible',\n};\n\nexport const PillsInputField = factory<PillsInputFieldFactory>((_props, ref) => {\n const props = useProps('PillsInputField', defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n type,\n disabled,\n id,\n pointer,\n ...others\n } = props;\n const ctx = usePillsInputContext();\n const inputWrapperCtx = useInputWrapperContext();\n\n const getStyles = useStyles<PillsInputFieldFactory>({\n name: 'PillsInputField',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n rootSelector: 'field',\n });\n\n const _disabled = disabled || ctx?.disabled;\n\n return (\n <Box\n component=\"input\"\n ref={useMergedRef(ref, ctx?.fieldRef)}\n data-type={type}\n disabled={_disabled}\n mod={{ disabled: _disabled, pointer }}\n {...getStyles('field')}\n {...others}\n id={inputWrapperCtx?.inputId || id}\n aria-invalid={ctx?.hasError}\n aria-describedby={inputWrapperCtx?.describedBy}\n />\n );\n});\n\nPillsInputField.classes = classes;\nPillsInputField.displayName = '@mantine/core/PillsInputField';\n"],"names":["factory","useProps","usePillsInputContext","useInputWrapperContext","useStyles","classes","React","Box","useMergedRef"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC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kB,EAAE,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,WAAW;AACxF,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,eAAe,CAAC,OAAO,GAAGH,4BAAO,CAAC;AAClC,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
|
|
@@ -10,12 +10,12 @@ var PopoverTarget = require('./PopoverTarget/PopoverTarget.js');
|
|
|
10
10
|
var PopoverDropdown = require('./PopoverDropdown/PopoverDropdown.js');
|
|
11
11
|
var Popover_module = require('./Popover.module.css.js');
|
|
12
12
|
var getFloatingPosition = require('../Floating/get-floating-position/get-floating-position.js');
|
|
13
|
+
var getDefaultZIndex = require('../../core/utils/get-default-z-index/get-default-z-index.js');
|
|
14
|
+
var createVarsResolver = require('../../core/styles-api/create-vars-resolver/create-vars-resolver.js');
|
|
13
15
|
var getSize = require('../../core/utils/get-size/get-size.js');
|
|
14
16
|
var useProps = require('../../core/MantineProvider/use-props/use-props.js');
|
|
15
17
|
var useStyles = require('../../core/styles-api/use-styles/use-styles.js');
|
|
16
18
|
var DirectionProvider = require('../../core/DirectionProvider/DirectionProvider.js');
|
|
17
|
-
var getDefaultZIndex = require('../../core/utils/get-default-z-index/get-default-z-index.js');
|
|
18
|
-
var createVarsResolver = require('../../core/styles-api/create-vars-resolver/create-vars-resolver.js');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
21
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["/* eslint-disable react/no-unused-prop-types */\nimport React, { useRef, useState, useCallback } from 'react';\nimport { useId, useClickOutside } from '@mantine/hooks';\nimport {\n MantineShadow,\n getDefaultZIndex,\n useProps,\n MantineRadius,\n useDirection,\n useStyles,\n Factory,\n createVarsResolver,\n getRadius,\n getShadow,\n StylesApiProps,\n ExtendComponent,\n} from '../../core';\nimport { TransitionOverride } from '../Transition';\nimport {\n getFloatingPosition,\n FloatingAxesOffsets,\n FloatingPosition,\n ArrowPosition,\n} from '../Floating';\nimport { PortalProps } from '../Portal';\nimport { usePopover } from './use-popover';\nimport { PopoverContextProvider } from './Popover.context';\nimport { PopoverWidth, PopoverMiddlewares } from './Popover.types';\nimport { PopoverTarget } from './PopoverTarget/PopoverTarget';\nimport { PopoverDropdown } from './PopoverDropdown/PopoverDropdown';\nimport classes from './Popover.module.css';\n\nexport type PopoverStylesNames = 'dropdown' | 'arrow';\nexport type PopoverCssVariables = {\n dropdown: '--popover-radius' | '--popover-shadow';\n};\n\nexport interface __PopoverProps {\n /** Dropdown position relative to the target element, `'bottom'` by default */\n position?: FloatingPosition;\n\n /** Offset of the dropdown element, `8` by default */\n offset?: number | FloatingAxesOffsets;\n\n /** Called when dropdown position changes */\n onPositionChange?(position: FloatingPosition): void;\n\n /** `useEffect` dependencies to force update dropdown position, `[]` by default */\n positionDependencies?: any[];\n\n /** Called when dropdown closes */\n onClose?(): void;\n\n /** Called when dropdown opens */\n onOpen?(): void;\n\n /** If set dropdown will not be unmounted from the DOM when it is hidden, `display: none` styles will be added instead, `false` by default */\n keepMounted?: boolean;\n\n /** Props passed down to the `Transition` component that used to animate dropdown presence, use to configure duration and animation type, `{ duration: 150, transition: 'fade' }` by default */\n transitionProps?: TransitionOverride;\n\n /** Dropdown width, or `'target'` to make dropdown width the same as target element, `'max-content'` by default */\n width?: PopoverWidth;\n\n /** Floating ui middlewares to configure position handling, `{ flip: true, shift: true, inline: false }` by default */\n middlewares?: PopoverMiddlewares;\n\n /** Determines whether component should have an arrow, `false` by default */\n withArrow?: boolean;\n\n /** Arrow size in px, `7` by default */\n arrowSize?: number;\n\n /** Arrow offset in px, `5` by default */\n arrowOffset?: number;\n\n /** Arrow `border-radius` in px, `0` by default */\n arrowRadius?: number;\n\n /** Arrow position */\n arrowPosition?: ArrowPosition;\n\n /** Determines whether dropdown should be rendered within the `Portal`, `true` by default */\n withinPortal?: boolean;\n\n /** Props to pass down to the `Portal` when `withinPortal` is true */\n portalProps?: Omit<PortalProps, 'children'>;\n\n /** Dropdown `z-index`, `300` by default */\n zIndex?: React.CSSProperties['zIndex'];\n\n /** Key of `theme.radius` or any valid CSS value to set border-radius, `theme.defaultRadius` by default */\n radius?: MantineRadius | (string & {}) | number;\n\n /** Key of `theme.shadows` or any other valid CSS `box-shadow` value */\n shadow?: MantineShadow | (string & {});\n\n /** If set, popover dropdown will not be rendered */\n disabled?: boolean;\n\n /** Determines whether focus should be automatically returned to control when dropdown closes, `false` by default */\n returnFocus?: boolean;\n}\n\nexport interface PopoverProps extends __PopoverProps, StylesApiProps<PopoverFactory> {\n __staticSelector?: string;\n\n /** `Popover.Target` and `Popover.Dropdown` components */\n children: React.ReactNode;\n\n /** Initial opened state for uncontrolled component */\n defaultOpened?: boolean;\n\n /** Controlled dropdown opened state */\n opened?: boolean;\n\n /** Called with current state when dropdown opens or closes */\n onChange?(opened: boolean): void;\n\n /** Determines whether dropdown should be closed on outside clicks, `true` by default */\n closeOnClickOutside?: boolean;\n\n /** Events that trigger outside clicks */\n clickOutsideEvents?: string[];\n\n /** Determines whether focus should be trapped within dropdown, `false` by default */\n trapFocus?: boolean;\n\n /** Determines whether dropdown should be closed when `Escape` key is pressed, `true` by default */\n closeOnEscape?: boolean;\n\n /** id base to create accessibility connections */\n id?: string;\n\n /** Determines whether dropdown and target elements should have accessible roles, `true` by default */\n withRoles?: boolean;\n}\n\nexport type PopoverFactory = Factory<{\n props: PopoverProps;\n stylesNames: PopoverStylesNames;\n vars: PopoverCssVariables;\n}>;\n\nconst defaultProps: Partial<PopoverProps> = {\n position: 'bottom',\n offset: 8,\n positionDependencies: [],\n transitionProps: { transition: 'fade', duration: 150 },\n middlewares: { flip: true, shift: true, inline: false },\n arrowSize: 7,\n arrowOffset: 5,\n arrowRadius: 0,\n arrowPosition: 'side',\n closeOnClickOutside: true,\n withinPortal: true,\n closeOnEscape: true,\n trapFocus: false,\n withRoles: true,\n returnFocus: false,\n clickOutsideEvents: ['mousedown', 'touchstart'],\n zIndex: getDefaultZIndex('popover'),\n __staticSelector: 'Popover',\n width: 'max-content',\n};\n\nconst varsResolver = createVarsResolver<PopoverFactory>((_, { radius, shadow }) => ({\n dropdown: {\n '--popover-radius': getRadius(radius),\n '--popover-shadow': getShadow(shadow),\n },\n}));\n\nexport function Popover(_props: PopoverProps) {\n const props = useProps('Popover', defaultProps, _props);\n const {\n children,\n position,\n offset,\n onPositionChange,\n positionDependencies,\n opened,\n transitionProps,\n width,\n middlewares,\n withArrow,\n arrowSize,\n arrowOffset,\n arrowRadius,\n arrowPosition,\n unstyled,\n classNames,\n styles,\n closeOnClickOutside,\n withinPortal,\n portalProps,\n closeOnEscape,\n clickOutsideEvents,\n trapFocus,\n onClose,\n onOpen,\n onChange,\n zIndex,\n radius,\n shadow,\n id,\n defaultOpened,\n __staticSelector,\n withRoles,\n disabled,\n returnFocus,\n variant,\n keepMounted,\n vars,\n ...others\n } = props;\n\n const getStyles = useStyles<PopoverFactory>({\n name: __staticSelector!,\n props,\n classes,\n classNames,\n styles,\n unstyled,\n rootSelector: 'dropdown',\n vars,\n varsResolver,\n });\n\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [targetNode, setTargetNode] = useState<HTMLElement | null>(null);\n const [dropdownNode, setDropdownNode] = useState<HTMLElement | null>(null);\n const { dir } = useDirection();\n\n const uid = useId(id);\n const popover = usePopover({\n middlewares,\n width,\n position: getFloatingPosition(dir, position!),\n offset: typeof offset === 'number' ? offset + (withArrow ? arrowSize! / 2 : 0) : offset!,\n arrowRef,\n arrowOffset: arrowOffset!,\n onPositionChange,\n positionDependencies,\n opened,\n defaultOpened,\n onChange,\n onOpen,\n onClose,\n });\n\n useClickOutside(() => closeOnClickOutside && popover.onClose(), clickOutsideEvents, [\n targetNode,\n dropdownNode,\n ]);\n\n const reference = useCallback(\n (node: HTMLElement) => {\n setTargetNode(node);\n popover.floating.reference(node);\n },\n [popover.floating.reference]\n );\n\n const floating = useCallback(\n (node: HTMLElement) => {\n setDropdownNode(node);\n popover.floating.floating(node);\n },\n [popover.floating.floating]\n );\n\n return (\n <PopoverContextProvider\n value={{\n returnFocus,\n disabled,\n controlled: popover.controlled,\n reference,\n floating,\n x: popover.floating.x!,\n y: popover.floating.y!,\n arrowX: popover.floating?.middlewareData?.arrow?.x!,\n arrowY: popover.floating?.middlewareData?.arrow?.y!,\n opened: popover.opened,\n arrowRef,\n transitionProps,\n width,\n withArrow,\n arrowSize: arrowSize!,\n arrowOffset: arrowOffset!,\n arrowRadius: arrowRadius!,\n arrowPosition: arrowPosition!,\n placement: popover.floating.placement,\n trapFocus,\n withinPortal,\n portalProps,\n zIndex,\n radius,\n shadow,\n closeOnEscape,\n onClose: popover.onClose,\n onToggle: popover.onToggle,\n getTargetId: () => `${uid}-target`,\n getDropdownId: () => `${uid}-dropdown`,\n withRoles,\n targetProps: others,\n __staticSelector: __staticSelector!,\n classNames,\n styles,\n unstyled,\n variant,\n keepMounted,\n getStyles,\n }}\n >\n {children}\n </PopoverContextProvider>\n );\n}\n\nPopover.Target = PopoverTarget;\nPopover.Dropdown = PopoverDropdown;\nPopover.displayName = '@mantine/core/Popover';\nPopover.extend = (input: ExtendComponent<PopoverFactory>) => input;\n"],"names":["getDefaultZIndex","createVarsResolver","getRadius","getShadow","useProps","useStyles","classes","useRef","useState","useDirection","useId","usePopover","getFloatingPosition","useClickOutside","useCallback","React","PopoverContextProvider","PopoverTarget","PopoverDropdown"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,SAAS,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK;AACr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AAS;AACjB,QAAQ,SAAS;AACjB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,aAAa;AACrB,QAAQ,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;AAC7C,QAAQ,SAAS;AACjB,QAAQ,YAAY;AACpB,QAAQ,WAAW;AACnB,QAAQ,MAAM;AACd,QAAQ,MAAM;AACd,QAAQ,MAAM;AACd,QAAQ,aAAa;AACrB,QAAQ,OAAO,EAAE,OAAO,CAAC,OAAO;AAChC,QAAQ,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAClC,QAAQ,WAAW,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;AAC1C,QAAQ,aAAa,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC;AAC9C,QAAQ,SAAS;AACjB,QAAQ,WAAW,EAAE,MAAM;AAC3B,QAAQ,gBAAgB;AACxB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,QAAQ;AAChB,QAAQ,OAAO;AACf,QAAQ,WAAW;AACnB,QAAQ,SAAS;AACjB,OAAO;AACP,KAAK;AACL,IAAI,QAAQ;AACZ,GAAG,CAAC;AACJ,CAAC;AACD,OAAO,CAAC,MAAM,GAAGC,2BAAa,CAAC;AAC/B,OAAO,CAAC,QAAQ,GAAGC,+BAAe,CAAC;AACnC,OAAO,CAAC,WAAW,GAAG,uBAAuB,CAAC;AAC9C,OAAO,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,KAAK;;;;"}
|
|
1
|
+
{"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["/* eslint-disable react/no-unused-prop-types */\nimport React, { useRef, useState, useCallback } from 'react';\nimport { useId, useClickOutside } from '@mantine/hooks';\nimport {\n MantineShadow,\n getDefaultZIndex,\n useProps,\n MantineRadius,\n useDirection,\n useStyles,\n Factory,\n createVarsResolver,\n getRadius,\n getShadow,\n StylesApiProps,\n ExtendComponent,\n} from '../../core';\nimport { TransitionOverride } from '../Transition';\nimport {\n getFloatingPosition,\n FloatingAxesOffsets,\n FloatingPosition,\n ArrowPosition,\n} from '../Floating';\nimport { PortalProps } from '../Portal';\nimport { usePopover } from './use-popover';\nimport { PopoverContextProvider } from './Popover.context';\nimport { PopoverWidth, PopoverMiddlewares } from './Popover.types';\nimport { PopoverTarget } from './PopoverTarget/PopoverTarget';\nimport { PopoverDropdown } from './PopoverDropdown/PopoverDropdown';\nimport classes from './Popover.module.css';\n\nexport type PopoverStylesNames = 'dropdown' | 'arrow';\nexport type PopoverCssVariables = {\n dropdown: '--popover-radius' | '--popover-shadow';\n};\n\nexport interface __PopoverProps {\n /** Dropdown position relative to the target element, `'bottom'` by default */\n position?: FloatingPosition;\n\n /** Offset of the dropdown element, `8` by default */\n offset?: number | FloatingAxesOffsets;\n\n /** Called when dropdown position changes */\n onPositionChange?(position: FloatingPosition): void;\n\n /** `useEffect` dependencies to force update dropdown position, `[]` by default */\n positionDependencies?: any[];\n\n /** Called when dropdown closes */\n onClose?(): void;\n\n /** Called when dropdown opens */\n onOpen?(): void;\n\n /** If set dropdown will not be unmounted from the DOM when it is hidden, `display: none` styles will be added instead, `false` by default */\n keepMounted?: boolean;\n\n /** Props passed down to the `Transition` component that used to animate dropdown presence, use to configure duration and animation type, `{ duration: 150, transition: 'fade' }` by default */\n transitionProps?: TransitionOverride;\n\n /** Dropdown width, or `'target'` to make dropdown width the same as target element, `'max-content'` by default */\n width?: PopoverWidth;\n\n /** Floating ui middlewares to configure position handling, `{ flip: true, shift: true, inline: false }` by default */\n middlewares?: PopoverMiddlewares;\n\n /** Determines whether component should have an arrow, `false` by default */\n withArrow?: boolean;\n\n /** Arrow size in px, `7` by default */\n arrowSize?: number;\n\n /** Arrow offset in px, `5` by default */\n arrowOffset?: number;\n\n /** Arrow `border-radius` in px, `0` by default */\n arrowRadius?: number;\n\n /** Arrow position */\n arrowPosition?: ArrowPosition;\n\n /** Determines whether dropdown should be rendered within the `Portal`, `true` by default */\n withinPortal?: boolean;\n\n /** Props to pass down to the `Portal` when `withinPortal` is true */\n portalProps?: Omit<PortalProps, 'children'>;\n\n /** Dropdown `z-index`, `300` by default */\n zIndex?: React.CSSProperties['zIndex'];\n\n /** Key of `theme.radius` or any valid CSS value to set border-radius, `theme.defaultRadius` by default */\n radius?: MantineRadius | (string & {}) | number;\n\n /** Key of `theme.shadows` or any other valid CSS `box-shadow` value */\n shadow?: MantineShadow | (string & {});\n\n /** If set, popover dropdown will not be rendered */\n disabled?: boolean;\n\n /** Determines whether focus should be automatically returned to control when dropdown closes, `false` by default */\n returnFocus?: boolean;\n}\n\nexport interface PopoverProps extends __PopoverProps, StylesApiProps<PopoverFactory> {\n __staticSelector?: string;\n\n /** `Popover.Target` and `Popover.Dropdown` components */\n children?: React.ReactNode;\n\n /** Initial opened state for uncontrolled component */\n defaultOpened?: boolean;\n\n /** Controlled dropdown opened state */\n opened?: boolean;\n\n /** Called with current state when dropdown opens or closes */\n onChange?(opened: boolean): void;\n\n /** Determines whether dropdown should be closed on outside clicks, `true` by default */\n closeOnClickOutside?: boolean;\n\n /** Events that trigger outside clicks */\n clickOutsideEvents?: string[];\n\n /** Determines whether focus should be trapped within dropdown, `false` by default */\n trapFocus?: boolean;\n\n /** Determines whether dropdown should be closed when `Escape` key is pressed, `true` by default */\n closeOnEscape?: boolean;\n\n /** id base to create accessibility connections */\n id?: string;\n\n /** Determines whether dropdown and target elements should have accessible roles, `true` by default */\n withRoles?: boolean;\n}\n\nexport type PopoverFactory = Factory<{\n props: PopoverProps;\n stylesNames: PopoverStylesNames;\n vars: PopoverCssVariables;\n}>;\n\nconst defaultProps: Partial<PopoverProps> = {\n position: 'bottom',\n offset: 8,\n positionDependencies: [],\n transitionProps: { transition: 'fade', duration: 150 },\n middlewares: { flip: true, shift: true, inline: false },\n arrowSize: 7,\n arrowOffset: 5,\n arrowRadius: 0,\n arrowPosition: 'side',\n closeOnClickOutside: true,\n withinPortal: true,\n closeOnEscape: true,\n trapFocus: false,\n withRoles: true,\n returnFocus: false,\n clickOutsideEvents: ['mousedown', 'touchstart'],\n zIndex: getDefaultZIndex('popover'),\n __staticSelector: 'Popover',\n width: 'max-content',\n};\n\nconst varsResolver = createVarsResolver<PopoverFactory>((_, { radius, shadow }) => ({\n dropdown: {\n '--popover-radius': getRadius(radius),\n '--popover-shadow': getShadow(shadow),\n },\n}));\n\nexport function Popover(_props: PopoverProps) {\n const props = useProps('Popover', defaultProps, _props);\n const {\n children,\n position,\n offset,\n onPositionChange,\n positionDependencies,\n opened,\n transitionProps,\n width,\n middlewares,\n withArrow,\n arrowSize,\n arrowOffset,\n arrowRadius,\n arrowPosition,\n unstyled,\n classNames,\n styles,\n closeOnClickOutside,\n withinPortal,\n portalProps,\n closeOnEscape,\n clickOutsideEvents,\n trapFocus,\n onClose,\n onOpen,\n onChange,\n zIndex,\n radius,\n shadow,\n id,\n defaultOpened,\n __staticSelector,\n withRoles,\n disabled,\n returnFocus,\n variant,\n keepMounted,\n vars,\n ...others\n } = props;\n\n const getStyles = useStyles<PopoverFactory>({\n name: __staticSelector!,\n props,\n classes,\n classNames,\n styles,\n unstyled,\n rootSelector: 'dropdown',\n vars,\n varsResolver,\n });\n\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [targetNode, setTargetNode] = useState<HTMLElement | null>(null);\n const [dropdownNode, setDropdownNode] = useState<HTMLElement | null>(null);\n const { dir } = useDirection();\n\n const uid = useId(id);\n const popover = usePopover({\n middlewares,\n width,\n position: getFloatingPosition(dir, position!),\n offset: typeof offset === 'number' ? offset + (withArrow ? arrowSize! / 2 : 0) : offset!,\n arrowRef,\n arrowOffset: arrowOffset!,\n onPositionChange,\n positionDependencies,\n opened,\n defaultOpened,\n onChange,\n onOpen,\n onClose,\n });\n\n useClickOutside(() => closeOnClickOutside && popover.onClose(), clickOutsideEvents, [\n targetNode,\n dropdownNode,\n ]);\n\n const reference = useCallback(\n (node: HTMLElement) => {\n setTargetNode(node);\n popover.floating.reference(node);\n },\n [popover.floating.reference]\n );\n\n const floating = useCallback(\n (node: HTMLElement) => {\n setDropdownNode(node);\n popover.floating.floating(node);\n },\n [popover.floating.floating]\n );\n\n return (\n <PopoverContextProvider\n value={{\n returnFocus,\n disabled,\n controlled: popover.controlled,\n reference,\n floating,\n x: popover.floating.x!,\n y: popover.floating.y!,\n arrowX: popover.floating?.middlewareData?.arrow?.x!,\n arrowY: popover.floating?.middlewareData?.arrow?.y!,\n opened: popover.opened,\n arrowRef,\n transitionProps,\n width,\n withArrow,\n arrowSize: arrowSize!,\n arrowOffset: arrowOffset!,\n arrowRadius: arrowRadius!,\n arrowPosition: arrowPosition!,\n placement: popover.floating.placement,\n trapFocus,\n withinPortal,\n portalProps,\n zIndex,\n radius,\n shadow,\n closeOnEscape,\n onClose: popover.onClose,\n onToggle: popover.onToggle,\n getTargetId: () => `${uid}-target`,\n getDropdownId: () => `${uid}-dropdown`,\n withRoles,\n targetProps: others,\n __staticSelector: __staticSelector!,\n classNames,\n styles,\n unstyled,\n variant,\n keepMounted,\n getStyles,\n }}\n >\n {children}\n </PopoverContextProvider>\n );\n}\n\nPopover.Target = PopoverTarget;\nPopover.Dropdown = PopoverDropdown;\nPopover.displayName = '@mantine/core/Popover';\nPopover.extend = (input: ExtendComponent<PopoverFactory>) => input;\n"],"names":["getDefaultZIndex","createVarsResolver","getRadius","getShadow","useProps","useStyles","classes","useRef","useState","useDirection","useId","usePopover","getFloatingPosition","useClickOutside","useCallback","React","PopoverContextProvider","PopoverTarget","PopoverDropdown"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,SAAS,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK;AACrC,EAAE,I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,QAAQ,SAAS;AACjB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,aAAa;AACrB,QAAQ,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;AAC7C,QAAQ,SAAS;AACjB,QAAQ,YAAY;AACpB,QAAQ,WAAW;AACnB,QAAQ,MAAM;AACd,QAAQ,MAAM;AACd,QAAQ,MAAM;AACd,QAAQ,aAAa;AACrB,QAAQ,OAAO,EAAE,OAAO,CAAC,OAAO;AAChC,QAAQ,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAClC,QAAQ,WAAW,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;AAC1C,QAAQ,aAAa,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC;AAC9C,QAAQ,SAAS;AACjB,QAAQ,WAAW,EAAE,MAAM;AAC3B,QAAQ,gBAAgB;AACxB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,QAAQ;AAChB,QAAQ,OAAO;AACf,QAAQ,WAAW;AACnB,QAAQ,SAAS;AACjB,OAAO;AACP,KAAK;AACL,IAAI,QAAQ;AACZ,GAAG,CAAC;AACJ,CAAC;AACD,OAAO,CAAC,MAAM,GAAGC,2BAAa,CAAC;AAC/B,OAAO,CAAC,QAAQ,GAAGC,+BAAe,CAAC;AACnC,OAAO,CAAC,WAAW,GAAG,uBAAuB,CAAC;AAC9C,OAAO,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,KAAK;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var classes = {"dropdown":"
|
|
5
|
+
var classes = {"dropdown":"m-38a85659","arrow":"m-a31dc6c1"};
|
|
6
6
|
|
|
7
7
|
exports.default = classes;
|
|
8
8
|
//# sourceMappingURL=Popover.module.css.js.map
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var cx = require('clsx');
|
|
7
7
|
var hooks = require('@mantine/hooks');
|
|
8
8
|
var Popover_context = require('../Popover.context.js');
|
|
9
|
-
var isElement = require('../../../core/utils/is-element/is-element.js');
|
|
10
9
|
var factory = require('../../../core/factory/factory.js');
|
|
10
|
+
var isElement = require('../../../core/utils/is-element/is-element.js');
|
|
11
11
|
var useProps = require('../../../core/MantineProvider/use-props/use-props.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createSafeContext = require('../../core/utils/create-safe-context/create-safe-context.js');
|
|
6
|
+
|
|
7
|
+
const [ProgressProvider, useProgressContext] = createSafeContext.createSafeContext(
|
|
8
|
+
"Progress.Root component was not found in tree"
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
exports.ProgressProvider = ProgressProvider;
|
|
12
|
+
exports.useProgressContext = useProgressContext;
|
|
13
|
+
//# sourceMappingURL=Progress.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.context.js","sources":["../../../src/components/Progress/Progress.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { ProgressRootFactory } from './ProgressRoot/ProgressRoot';\n\ninterface ProgressContextValue {\n getStyles: GetStylesApi<ProgressRootFactory>;\n}\n\nexport const [ProgressProvider, useProgressContext] = createSafeContext<ProgressContextValue>(\n 'Progress.Root component was not found in tree'\n);\n"],"names":["createSafeContext"],"mappings":";;;;;;AACY,MAAC,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAGA,mCAAiB;AACvE,EAAE,+CAA+C;AACjD;;;;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var ProgressRoot = require('./ProgressRoot/ProgressRoot.js');
|
|
7
|
+
var ProgressSection = require('./ProgressSection/ProgressSection.js');
|
|
8
|
+
var ProgressLabel = require('./ProgressLabel/ProgressLabel.js');
|
|
9
|
+
var Progress_module = require('./Progress.module.css.js');
|
|
10
|
+
var factory = require('../../core/factory/factory.js');
|
|
11
|
+
var useProps = require('../../core/MantineProvider/use-props/use-props.js');
|
|
12
|
+
var useResolvedStylesApi = require('../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
+
|
|
18
|
+
var __defProp = Object.defineProperty;
|
|
19
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
20
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
21
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
22
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
23
|
+
var __spreadValues = (a, b) => {
|
|
24
|
+
for (var prop in b || (b = {}))
|
|
25
|
+
if (__hasOwnProp.call(b, prop))
|
|
26
|
+
__defNormalProp(a, prop, b[prop]);
|
|
27
|
+
if (__getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
29
|
+
if (__propIsEnum.call(b, prop))
|
|
30
|
+
__defNormalProp(a, prop, b[prop]);
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
};
|
|
34
|
+
var __objRest = (source, exclude) => {
|
|
35
|
+
var target = {};
|
|
36
|
+
for (var prop in source)
|
|
37
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38
|
+
target[prop] = source[prop];
|
|
39
|
+
if (source != null && __getOwnPropSymbols)
|
|
40
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
41
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
42
|
+
target[prop] = source[prop];
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
};
|
|
46
|
+
const defaultProps = {
|
|
47
|
+
size: "md"
|
|
48
|
+
};
|
|
49
|
+
const Progress = factory.factory((_props, ref) => {
|
|
50
|
+
const props = useProps.useProps("Progress", defaultProps, _props);
|
|
51
|
+
const _a = props, {
|
|
52
|
+
value,
|
|
53
|
+
classNames,
|
|
54
|
+
styles,
|
|
55
|
+
vars,
|
|
56
|
+
color,
|
|
57
|
+
striped,
|
|
58
|
+
animated,
|
|
59
|
+
"aria-label": label
|
|
60
|
+
} = _a, others = __objRest(_a, [
|
|
61
|
+
"value",
|
|
62
|
+
"classNames",
|
|
63
|
+
"styles",
|
|
64
|
+
"vars",
|
|
65
|
+
"color",
|
|
66
|
+
"striped",
|
|
67
|
+
"animated",
|
|
68
|
+
"aria-label"
|
|
69
|
+
]);
|
|
70
|
+
const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi.useResolvedStylesApi({
|
|
71
|
+
classNames,
|
|
72
|
+
styles,
|
|
73
|
+
props
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
76
|
+
ProgressRoot.ProgressRoot,
|
|
77
|
+
__spreadValues({
|
|
78
|
+
ref,
|
|
79
|
+
classNames: resolvedClassNames,
|
|
80
|
+
styles: resolvedStyles,
|
|
81
|
+
vars
|
|
82
|
+
}, others),
|
|
83
|
+
/* @__PURE__ */ React__default.createElement(
|
|
84
|
+
ProgressSection.ProgressSection,
|
|
85
|
+
{
|
|
86
|
+
value,
|
|
87
|
+
color,
|
|
88
|
+
striped,
|
|
89
|
+
animated,
|
|
90
|
+
"aria-label": label
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
);
|
|
94
|
+
});
|
|
95
|
+
Progress.classes = Progress_module['default'];
|
|
96
|
+
Progress.displayName = "@mantine/core/Progress";
|
|
97
|
+
Progress.Section = ProgressSection.ProgressSection;
|
|
98
|
+
Progress.Root = ProgressRoot.ProgressRoot;
|
|
99
|
+
Progress.Label = ProgressLabel.ProgressLabel;
|
|
100
|
+
|
|
101
|
+
exports.Progress = Progress;
|
|
102
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.js","sources":["../../../src/components/Progress/Progress.tsx"],"sourcesContent":["import React from 'react';\nimport {\n StylesApiProps,\n factory,\n useProps,\n Factory,\n useResolvedStylesApi,\n MantineColor,\n} from '../../core';\nimport {\n ProgressRoot,\n ProgressRootStylesNames,\n ProgressRootCssVariables,\n __ProgressRootProps,\n} from './ProgressRoot/ProgressRoot';\nimport { ProgressSection } from './ProgressSection/ProgressSection';\nimport { ProgressLabel } from './ProgressLabel/ProgressLabel';\nimport classes from './Progress.module.css';\n\nexport type ProgressStylesNames = ProgressRootStylesNames;\n\nexport interface ProgressProps extends __ProgressRootProps, StylesApiProps<ProgressFactory> {\n /** Value of the progress */\n value: number;\n\n /** Key of `theme.colors` or any valid CSS value, `theme.primaryColor` by default */\n color?: MantineColor;\n\n /** Determines whether the section should have stipes, `false` by default */\n striped?: boolean;\n\n /** Determines whether the sections stripes should be animated, if set, `striped` prop is ignored, `false` by default */\n animated?: boolean;\n}\n\nexport type ProgressFactory = Factory<{\n props: ProgressProps;\n ref: HTMLDivElement;\n stylesNames: ProgressStylesNames;\n vars: ProgressRootCssVariables;\n staticComponents: {\n Section: typeof ProgressSection;\n Root: typeof ProgressRoot;\n Label: typeof ProgressLabel;\n };\n}>;\n\nconst defaultProps: Partial<ProgressProps> = {\n size: 'md',\n};\n\nexport const Progress = factory<ProgressFactory>((_props, ref) => {\n const props = useProps('Progress', defaultProps, _props);\n const {\n value,\n classNames,\n styles,\n vars,\n color,\n striped,\n animated,\n 'aria-label': label,\n ...others\n } = props;\n\n const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi<ProgressFactory>({\n classNames,\n styles,\n props,\n });\n\n return (\n <ProgressRoot\n ref={ref}\n classNames={resolvedClassNames}\n styles={resolvedStyles}\n vars={vars as any}\n {...others}\n >\n <ProgressSection\n value={value}\n color={color}\n striped={striped}\n animated={animated}\n aria-label={label}\n />\n </ProgressRoot>\n );\n});\n\nProgress.classes = classes;\nProgress.displayName = '@mantine/core/Progress';\nProgress.Section = ProgressSection;\nProgress.Root = ProgressRoot;\nProgress.Label = ProgressLabel;\n"],"names":["factory","useProps","useResolvedStylesApi","React","ProgressRoot","ProgressSection","classes","ProgressLabel"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,I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AAY,CAAC;AAC7B,QAAQ,CAAC,KAAK,GAAGG,2BAAa;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var classes = {"root":"m-db6d6462","section":"m-2242eb65","stripes-animation":"m-81a374bd","label":"m-91e40b74"};
|
|
6
|
+
|
|
7
|
+
exports.default = classes;
|
|
8
|
+
//# sourceMappingURL=Progress.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var Progress_module = require('../Progress.module.css.js');
|
|
7
|
+
var Progress_context = require('../Progress.context.js');
|
|
8
|
+
var factory = require('../../../core/factory/factory.js');
|
|
9
|
+
var useProps = require('../../../core/MantineProvider/use-props/use-props.js');
|
|
10
|
+
var Box = require('../../../core/Box/Box.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
|
|
16
|
+
var __defProp = Object.defineProperty;
|
|
17
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
20
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
21
|
+
var __spreadValues = (a, b) => {
|
|
22
|
+
for (var prop in b || (b = {}))
|
|
23
|
+
if (__hasOwnProp.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
if (__getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
27
|
+
if (__propIsEnum.call(b, prop))
|
|
28
|
+
__defNormalProp(a, prop, b[prop]);
|
|
29
|
+
}
|
|
30
|
+
return a;
|
|
31
|
+
};
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
const defaultProps = {};
|
|
45
|
+
const ProgressLabel = factory.factory((props, ref) => {
|
|
46
|
+
const _a = useProps.useProps(
|
|
47
|
+
"ProgressLabel",
|
|
48
|
+
defaultProps,
|
|
49
|
+
props
|
|
50
|
+
), { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
51
|
+
const ctx = Progress_context.useProgressContext();
|
|
52
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
53
|
+
Box.Box,
|
|
54
|
+
__spreadValues(__spreadValues({
|
|
55
|
+
ref
|
|
56
|
+
}, ctx.getStyles("label", { className, style, classNames, styles })), others)
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
ProgressLabel.classes = Progress_module['default'];
|
|
60
|
+
ProgressLabel.displayName = "@mantine/core/ProgressLabel";
|
|
61
|
+
|
|
62
|
+
exports.ProgressLabel = ProgressLabel;
|
|
63
|
+
//# sourceMappingURL=ProgressLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressLabel.js","sources":["../../../../src/components/Progress/ProgressLabel/ProgressLabel.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n Factory,\n} from '../../../core';\nimport classes from '../Progress.module.css';\nimport { useProgressContext } from '../Progress.context';\n\nexport type ProgressLabelStylesNames = 'label';\n\nexport interface ProgressLabelProps\n extends BoxProps,\n StylesApiProps<ProgressLabelFactory>,\n ElementProps<'div'> {}\n\nexport type ProgressLabelFactory = Factory<{\n props: ProgressLabelProps;\n ref: HTMLDivElement;\n stylesNames: ProgressLabelStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<ProgressLabelProps> = {};\n\nexport const ProgressLabel = factory<ProgressLabelFactory>((props, ref) => {\n const { classNames, className, style, styles, unstyled, vars, ...others } = useProps(\n 'ProgressLabel',\n defaultProps,\n props\n );\n\n const ctx = useProgressContext();\n\n return (\n <Box\n ref={ref}\n {...ctx.getStyles('label', { className, style, classNames, styles })}\n {...others}\n />\n );\n});\n\nProgressLabel.classes = classes;\nProgressLabel.displayName = '@mantine/core/ProgressLabel';\n"],"names":["factory","useProps","useProgressContext","React","Box","classes"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IA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ACtE,QAAQ,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AACpC,KAAK;AACL,EAAE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AASF,MAAM,YAAY,GAAG,EAAE,CAAC;AACZ,MAAC,aAAa,GAAGA,eAAO,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACrD,EAAE,MAAM,EAAE,GAAGC,iBAAQ;AACrB,IAAI,eAAe;AACnB,IAAI,YAAY;AAChB,IAAI,KAAK;AACT,GAAG,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/J,EAAE,MAAM,GAAG,GAAGC,mCAAkB,EAAE,CAAC;AACnC,EAAE,uBAAuBC,cAAK,CAAC,aAAa;AAC5C,IAAIC,OAAG;AACP,IAAI,cAAc,CAAC,cAAc,CAAC;AAClC,MAAM,GAAG;AACT,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC;AACjF,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,aAAa,CAAC,OAAO,GAAGC,0BAAO,CAAC;AAChC,aAAa,CAAC,WAAW,GAAG,6BAA6B;;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var Progress_context = require('../Progress.context.js');
|
|
7
|
+
var Progress_module = require('../Progress.module.css.js');
|
|
8
|
+
var factory = require('../../../core/factory/factory.js');
|
|
9
|
+
var useProps = require('../../../core/MantineProvider/use-props/use-props.js');
|
|
10
|
+
var useStyles = require('../../../core/styles-api/use-styles/use-styles.js');
|
|
11
|
+
var Box = require('../../../core/Box/Box.js');
|
|
12
|
+
var createVarsResolver = require('../../../core/styles-api/create-vars-resolver/create-vars-resolver.js');
|
|
13
|
+
var getSize = require('../../../core/utils/get-size/get-size.js');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
+
|
|
19
|
+
var __defProp = Object.defineProperty;
|
|
20
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
21
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
22
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
23
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
24
|
+
var __spreadValues = (a, b) => {
|
|
25
|
+
for (var prop in b || (b = {}))
|
|
26
|
+
if (__hasOwnProp.call(b, prop))
|
|
27
|
+
__defNormalProp(a, prop, b[prop]);
|
|
28
|
+
if (__getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
30
|
+
if (__propIsEnum.call(b, prop))
|
|
31
|
+
__defNormalProp(a, prop, b[prop]);
|
|
32
|
+
}
|
|
33
|
+
return a;
|
|
34
|
+
};
|
|
35
|
+
var __objRest = (source, exclude) => {
|
|
36
|
+
var target = {};
|
|
37
|
+
for (var prop in source)
|
|
38
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
39
|
+
target[prop] = source[prop];
|
|
40
|
+
if (source != null && __getOwnPropSymbols)
|
|
41
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
42
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
43
|
+
target[prop] = source[prop];
|
|
44
|
+
}
|
|
45
|
+
return target;
|
|
46
|
+
};
|
|
47
|
+
const defaultProps = {};
|
|
48
|
+
const varsResolver = createVarsResolver.createVarsResolver((_, { size, radius }) => ({
|
|
49
|
+
root: {
|
|
50
|
+
"--progress-size": getSize.getSize(size, "progress-size"),
|
|
51
|
+
"--progress-radius": getSize.getRadius(radius)
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
const ProgressRoot = factory.factory((_props, ref) => {
|
|
55
|
+
const props = useProps.useProps("ProgressRoot", defaultProps, _props);
|
|
56
|
+
const _a = props, { classNames, className, style, styles, unstyled, vars } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars"]);
|
|
57
|
+
const getStyles = useStyles.useStyles({
|
|
58
|
+
name: "Progress",
|
|
59
|
+
classes: Progress_module['default'],
|
|
60
|
+
props,
|
|
61
|
+
className,
|
|
62
|
+
style,
|
|
63
|
+
classNames,
|
|
64
|
+
styles,
|
|
65
|
+
unstyled,
|
|
66
|
+
vars,
|
|
67
|
+
varsResolver
|
|
68
|
+
});
|
|
69
|
+
return /* @__PURE__ */ React__default.createElement(Progress_context.ProgressProvider, { value: { getStyles } }, /* @__PURE__ */ React__default.createElement(Box.Box, __spreadValues(__spreadValues({ ref }, getStyles("root")), others)));
|
|
70
|
+
});
|
|
71
|
+
ProgressRoot.classes = Progress_module['default'];
|
|
72
|
+
ProgressRoot.displayName = "@mantine/core/ProgressRoot";
|
|
73
|
+
|
|
74
|
+
exports.ProgressRoot = ProgressRoot;
|
|
75
|
+
//# sourceMappingURL=ProgressRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressRoot.js","sources":["../../../../src/components/Progress/ProgressRoot/ProgressRoot.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n useStyles,\n createVarsResolver,\n Factory,\n MantineSize,\n MantineRadius,\n getSize,\n getRadius,\n} from '../../../core';\nimport { ProgressProvider } from '../Progress.context';\nimport classes from '../Progress.module.css';\n\nexport type ProgressRootStylesNames = 'root' | 'section' | 'label';\nexport type ProgressRootCssVariables = {\n root: '--progress-size' | '--progress-radius';\n};\n\nexport interface __ProgressRootProps extends BoxProps, ElementProps<'div'> {\n /** Controls track height, `'md'` by default */\n size?: MantineSize | (string & {}) | number;\n\n /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */\n radius?: MantineRadius | (string & {}) | number;\n}\n\nexport interface ProgressRootProps\n extends __ProgressRootProps,\n StylesApiProps<ProgressRootFactory> {}\n\nexport type ProgressRootFactory = Factory<{\n props: ProgressRootProps;\n ref: HTMLDivElement;\n stylesNames: ProgressRootStylesNames;\n vars: ProgressRootCssVariables;\n}>;\n\nconst defaultProps: Partial<ProgressRootProps> = {};\n\nconst varsResolver = createVarsResolver<ProgressRootFactory>((_, { size, radius }) => ({\n root: {\n '--progress-size': getSize(size, 'progress-size'),\n '--progress-radius': getRadius(radius),\n },\n}));\n\nexport const ProgressRoot = factory<ProgressRootFactory>((_props, ref) => {\n const props = useProps('ProgressRoot', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, ...others } = props;\n\n const getStyles = useStyles<ProgressRootFactory>({\n name: 'Progress',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n <ProgressProvider value={{ getStyles }}>\n <Box ref={ref} {...getStyles('root')} {...others} />\n </ProgressProvider>\n );\n});\n\nProgressRoot.classes = classes;\nProgressRoot.displayName = '@mantine/core/ProgressRoot';\n"],"names":["createVarsResolver","getSize","getRadius","factory","useProps","useStyles","classes","React","ProgressProvider","Box"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAA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C,mBAAS,CAAC;AAC9B,IAAI,IAAI,EAAE,UAAU;AACpB,aAAIC,0BAAO;AACX,IAAI,KAAK;AACT,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,QAAQ;AACZ,IAAI,IAAI;AACR,IAAI,YAAY;AAChB,GAAG,CAAC,CAAC;AACL,EAAE,uBAAuBC,cAAK,CAAC,aAAa,CAACC,iCAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,kBAAkBD,cAAK,CAAC,aAAa,CAACE,OAAG,EAAE,cAAc,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AACvM,CAAC,EAAE;AACH,YAAY,CAAC,OAAO,GAAGH,0BAAO,CAAC;AAC/B,YAAY,CAAC,WAAW,GAAG,4BAA4B;;;;"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var Progress_context = require('../Progress.context.js');
|
|
7
|
+
var Progress_module = require('../Progress.module.css.js');
|
|
8
|
+
var factory = require('../../../core/factory/factory.js');
|
|
9
|
+
var useProps = require('../../../core/MantineProvider/use-props/use-props.js');
|
|
10
|
+
var MantineThemeProvider = require('../../../core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js');
|
|
11
|
+
var Box = require('../../../core/Box/Box.js');
|
|
12
|
+
var getThemeColor = require('../../../core/MantineProvider/color-functions/get-theme-color/get-theme-color.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
+
|
|
18
|
+
var __defProp = Object.defineProperty;
|
|
19
|
+
var __defProps = Object.defineProperties;
|
|
20
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
21
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
22
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
23
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
24
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
25
|
+
var __spreadValues = (a, b) => {
|
|
26
|
+
for (var prop in b || (b = {}))
|
|
27
|
+
if (__hasOwnProp.call(b, prop))
|
|
28
|
+
__defNormalProp(a, prop, b[prop]);
|
|
29
|
+
if (__getOwnPropSymbols)
|
|
30
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
31
|
+
if (__propIsEnum.call(b, prop))
|
|
32
|
+
__defNormalProp(a, prop, b[prop]);
|
|
33
|
+
}
|
|
34
|
+
return a;
|
|
35
|
+
};
|
|
36
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
37
|
+
var __objRest = (source, exclude) => {
|
|
38
|
+
var target = {};
|
|
39
|
+
for (var prop in source)
|
|
40
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
41
|
+
target[prop] = source[prop];
|
|
42
|
+
if (source != null && __getOwnPropSymbols)
|
|
43
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
44
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
45
|
+
target[prop] = source[prop];
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
};
|
|
49
|
+
const defaultProps = {
|
|
50
|
+
withAria: true
|
|
51
|
+
};
|
|
52
|
+
const ProgressSection = factory.factory((props, ref) => {
|
|
53
|
+
const _a = useProps.useProps("ProgressSection", defaultProps, props), {
|
|
54
|
+
classNames,
|
|
55
|
+
className,
|
|
56
|
+
style,
|
|
57
|
+
styles,
|
|
58
|
+
unstyled,
|
|
59
|
+
vars,
|
|
60
|
+
value,
|
|
61
|
+
withAria,
|
|
62
|
+
color,
|
|
63
|
+
striped,
|
|
64
|
+
animated
|
|
65
|
+
} = _a, others = __objRest(_a, [
|
|
66
|
+
"classNames",
|
|
67
|
+
"className",
|
|
68
|
+
"style",
|
|
69
|
+
"styles",
|
|
70
|
+
"unstyled",
|
|
71
|
+
"vars",
|
|
72
|
+
"value",
|
|
73
|
+
"withAria",
|
|
74
|
+
"color",
|
|
75
|
+
"striped",
|
|
76
|
+
"animated"
|
|
77
|
+
]);
|
|
78
|
+
const ctx = Progress_context.useProgressContext();
|
|
79
|
+
const theme = MantineThemeProvider.useMantineTheme();
|
|
80
|
+
const ariaAttributes = withAria ? {
|
|
81
|
+
role: "progressbar",
|
|
82
|
+
"aria-valuemax": 100,
|
|
83
|
+
"aria-valuemin": 0,
|
|
84
|
+
"aria-valuenow": value,
|
|
85
|
+
"aria-valuetext": `${value}%`
|
|
86
|
+
} : {};
|
|
87
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
88
|
+
Box.Box,
|
|
89
|
+
__spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
90
|
+
ref
|
|
91
|
+
}, ctx.getStyles("section", { className, classNames, styles, style })), others), ariaAttributes), {
|
|
92
|
+
mod: { striped: striped || animated, animated },
|
|
93
|
+
__vars: {
|
|
94
|
+
"--progress-section-width": `${value}%`,
|
|
95
|
+
"--progress-section-color": getThemeColor.getThemeColor(color, theme)
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
);
|
|
99
|
+
});
|
|
100
|
+
ProgressSection.classes = Progress_module['default'];
|
|
101
|
+
ProgressSection.displayName = "@mantine/core/ProgressSection";
|
|
102
|
+
|
|
103
|
+
exports.ProgressSection = ProgressSection;
|
|
104
|
+
//# sourceMappingURL=ProgressSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressSection.js","sources":["../../../../src/components/Progress/ProgressSection/ProgressSection.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n Factory,\n MantineColor,\n useMantineTheme,\n getThemeColor,\n} from '../../../core';\nimport { useProgressContext } from '../Progress.context';\nimport classes from '../Progress.module.css';\n\nexport type ProgressSectionStylesNames = 'section';\n\nexport interface ProgressSectionProps\n extends BoxProps,\n StylesApiProps<ProgressSectionFactory>,\n ElementProps<'div'> {\n /** Value of the section in 0–100 range */\n value: number;\n\n /** Determines whether `aria-*` props should be added to the root element, `true` by default */\n withAria?: boolean;\n\n /** Key of `theme.colors` or any valid CSS value, `theme.primaryColor` by default */\n color?: MantineColor;\n\n /** Determines whether the section should have stipes, `false` by default */\n striped?: boolean;\n\n /** Determines whether the sections stripes should be animated, if set, `striped` prop is ignored, `false` by default */\n animated?: boolean;\n}\n\nexport type ProgressSectionFactory = Factory<{\n props: ProgressSectionProps;\n ref: HTMLDivElement;\n stylesNames: ProgressSectionStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<ProgressSectionProps> = {\n withAria: true,\n};\n\nexport const ProgressSection = factory<ProgressSectionFactory>((props, ref) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n value,\n withAria,\n color,\n striped,\n animated,\n ...others\n } = useProps('ProgressSection', defaultProps, props);\n\n const ctx = useProgressContext();\n const theme = useMantineTheme();\n\n const ariaAttributes = withAria\n ? {\n role: 'progressbar',\n 'aria-valuemax': 100,\n 'aria-valuemin': 0,\n 'aria-valuenow': value,\n 'aria-valuetext': `${value}%`,\n }\n : {};\n\n return (\n <Box\n ref={ref}\n {...ctx.getStyles('section', { className, classNames, styles, style })}\n {...others}\n {...ariaAttributes}\n mod={{ striped: striped || animated, animated }}\n __vars={{\n '--progress-section-width': `${value}%`,\n '--progress-section-color': getThemeColor(color, theme),\n }}\n />\n );\n});\n\nProgressSection.classes = classes;\nProgressSection.displayName = '@mantine/core/ProgressSection';\n"],"names":["factory","useProps","useProgressContext","useMantineTheme","React","Box","getThemeColor","classes"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC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AAC;AAC/D,OAAO;AACP,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,eAAe,CAAC,OAAO,GAAGC,0BAAO,CAAC;AAClC,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createSafeContext = require('../../core/utils/create-safe-context/create-safe-context.js');
|
|
6
|
+
|
|
7
|
+
const [RatingProvider, useRatingContext] = createSafeContext.createSafeContext(
|
|
8
|
+
"Rating was not found in tree"
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
exports.RatingProvider = RatingProvider;
|
|
12
|
+
exports.useRatingContext = useRatingContext;
|
|
13
|
+
//# sourceMappingURL=Rating.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rating.context.js","sources":["../../../src/components/Rating/Rating.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { RatingFactory } from './Rating';\n\ninterface RatingContextValue {\n getStyles: GetStylesApi<RatingFactory>;\n}\n\nexport const [RatingProvider, useRatingContext] = createSafeContext<RatingContextValue>(\n 'Rating was not found in tree'\n);\n"],"names":["createSafeContext"],"mappings":";;;;;;AACY,MAAC,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAGA,mCAAiB;AACnE,EAAE,8BAA8B;AAChC;;;;;"}
|