@mantine/core 4.0.9 → 4.1.2
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/ActionIcon/ActionIcon.js.map +1 -1
- package/cjs/components/Affix/Affix.js +1 -1
- package/cjs/components/Affix/Affix.js.map +1 -1
- package/cjs/components/Anchor/Anchor.js.map +1 -1
- package/cjs/components/AppShell/AppShell.js +11 -5
- package/cjs/components/AppShell/AppShell.js.map +1 -1
- package/cjs/components/AppShell/AppShell.styles.js +8 -4
- package/cjs/components/AppShell/AppShell.styles.js.map +1 -1
- package/cjs/components/AppShell/Aside/Aside.js +48 -0
- package/cjs/components/AppShell/Aside/Aside.js.map +1 -0
- package/cjs/components/AppShell/Footer/Footer.js +61 -0
- package/cjs/components/AppShell/Footer/Footer.js.map +1 -0
- package/cjs/components/AppShell/Header/Header.js +9 -27
- package/cjs/components/AppShell/Header/Header.js.map +1 -1
- package/cjs/components/AppShell/HorizontalSection/HorizontalSection.js +106 -0
- package/cjs/components/AppShell/HorizontalSection/HorizontalSection.js.map +1 -0
- package/cjs/components/AppShell/{Navbar/Navbar.styles.js → HorizontalSection/HorizontalSection.styles.js} +2 -2
- package/cjs/components/AppShell/HorizontalSection/HorizontalSection.styles.js.map +1 -0
- package/cjs/components/AppShell/{Navbar/NavbarSection/NavbarSection.js → HorizontalSection/Section/Section.js} +5 -5
- package/cjs/components/AppShell/HorizontalSection/Section/Section.js.map +1 -0
- package/cjs/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -0
- package/cjs/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/cjs/components/AppShell/Navbar/Navbar.js +8 -69
- package/cjs/components/AppShell/Navbar/Navbar.js.map +1 -1
- package/cjs/components/AppShell/VerticalSection/VerticalSection.js +90 -0
- package/cjs/components/AppShell/VerticalSection/VerticalSection.js.map +1 -0
- package/cjs/components/AppShell/{Header/Header.styles.js → VerticalSection/VerticalSection.styles.js} +4 -3
- package/cjs/components/AppShell/VerticalSection/VerticalSection.styles.js.map +1 -0
- package/cjs/components/AspectRatio/AspectRatio.js +2 -2
- package/cjs/components/AspectRatio/AspectRatio.js.map +1 -1
- package/cjs/components/Avatar/Avatar.js.map +1 -1
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Box/Box.js.map +1 -1
- package/cjs/components/Burger/Burger.js +2 -4
- package/cjs/components/Burger/Burger.js.map +1 -1
- package/cjs/components/Burger/Burger.styles.js +6 -27
- package/cjs/components/Burger/Burger.styles.js.map +1 -1
- package/cjs/components/Button/Button.js.map +1 -1
- package/cjs/components/Button/UnstyledButton/UnstyledButton.js +3 -3
- package/cjs/components/Button/UnstyledButton/UnstyledButton.js.map +1 -1
- package/cjs/components/Button/UnstyledButton/UnstyledButton.styles.js +2 -1
- package/cjs/components/Button/UnstyledButton/UnstyledButton.styles.js.map +1 -1
- package/cjs/components/Card/Card.js +1 -1
- package/cjs/components/Card/Card.js.map +1 -1
- package/cjs/components/Card/CardSection/CardSection.js.map +1 -1
- package/cjs/components/Center/Center.js +1 -1
- package/cjs/components/Center/Center.js.map +1 -1
- package/cjs/components/Checkbox/Checkbox.styles.js +0 -1
- package/cjs/components/Checkbox/Checkbox.styles.js.map +1 -1
- package/cjs/components/ColorSwatch/ColorSwatch.js.map +1 -1
- package/cjs/components/Grid/Col/Col.js +1 -1
- package/cjs/components/Grid/Col/Col.js.map +1 -1
- package/cjs/components/Grid/Grid.js +1 -8
- package/cjs/components/Grid/Grid.js.map +1 -1
- package/cjs/components/Highlight/Highlight.js.map +1 -1
- package/cjs/components/Image/BackgroundImage/BackgroundImage.js +1 -1
- package/cjs/components/Image/BackgroundImage/BackgroundImage.js.map +1 -1
- package/cjs/components/Input/Input.js.map +1 -1
- package/cjs/components/InputWrapper/InputWrapper.styles.js +2 -2
- package/cjs/components/InputWrapper/InputWrapper.styles.js.map +1 -1
- package/cjs/components/MultiSelect/MultiSelect.js +33 -2
- package/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/cjs/components/Overlay/Overlay.js +2 -2
- package/cjs/components/Overlay/Overlay.js.map +1 -1
- package/cjs/components/Paper/Paper.js.map +1 -1
- package/cjs/components/PasswordInput/PasswordInput.js +0 -1
- package/cjs/components/PasswordInput/PasswordInput.js.map +1 -1
- package/cjs/components/Popper/Popper.js +5 -2
- package/cjs/components/Popper/Popper.js.map +1 -1
- package/cjs/components/RadioGroup/Radio/Radio.js +19 -8
- package/cjs/components/RadioGroup/Radio/Radio.js.map +1 -1
- package/cjs/components/RadioGroup/Radio/Radio.styles.js +26 -15
- package/cjs/components/RadioGroup/Radio/Radio.styles.js.map +1 -1
- package/cjs/components/RadioGroup/Radio/RadioIcon.js +39 -0
- package/cjs/components/RadioGroup/Radio/RadioIcon.js.map +1 -0
- package/cjs/components/Select/Select.js +45 -11
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.js +4 -1
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/SelectItems/SelectItems.js +1 -1
- package/cjs/components/Select/SelectItems/SelectItems.js.map +1 -1
- package/cjs/components/Select/filter-data/filter-data.js +13 -1
- package/cjs/components/Select/filter-data/filter-data.js.map +1 -1
- package/cjs/components/Slider/Marks/Marks.js +3 -2
- package/cjs/components/Slider/Marks/Marks.js.map +1 -1
- package/cjs/components/Slider/Marks/Marks.styles.js +2 -2
- package/cjs/components/Slider/Marks/Marks.styles.js.map +1 -1
- package/cjs/components/Slider/RangeSlider/RangeSlider.js +48 -37
- package/cjs/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
- package/cjs/components/Slider/Slider/Slider.js +56 -46
- package/cjs/components/Slider/Slider/Slider.js.map +1 -1
- package/cjs/components/Slider/SliderRoot/SliderRoot.js +2 -2
- package/cjs/components/Slider/SliderRoot/SliderRoot.js.map +1 -1
- package/cjs/components/Slider/SliderRoot/SliderRoot.styles.js +2 -2
- package/cjs/components/Slider/SliderRoot/SliderRoot.styles.js.map +1 -1
- package/cjs/components/Slider/Thumb/Thumb.js +3 -2
- package/cjs/components/Slider/Thumb/Thumb.js.map +1 -1
- package/cjs/components/Slider/Thumb/Thumb.styles.js +2 -2
- package/cjs/components/Slider/Thumb/Thumb.styles.js.map +1 -1
- package/cjs/components/Slider/Track/Track.js +7 -4
- package/cjs/components/Slider/Track/Track.js.map +1 -1
- package/cjs/components/Slider/Track/Track.styles.js +2 -2
- package/cjs/components/Slider/Track/Track.styles.js.map +1 -1
- package/cjs/components/Space/Space.js +1 -1
- package/cjs/components/Space/Space.js.map +1 -1
- package/cjs/components/Stack/Stack.js +58 -0
- package/cjs/components/Stack/Stack.js.map +1 -0
- package/cjs/components/Stack/Stack.styles.js +18 -0
- package/cjs/components/Stack/Stack.styles.js.map +1 -0
- package/cjs/components/Text/Text.js.map +1 -1
- package/cjs/components/Timeline/Timeline.js +1 -1
- package/cjs/components/Timeline/Timeline.js.map +1 -1
- package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.js +199 -0
- package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.js.map +1 -0
- package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js +45 -0
- package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js.map +1 -0
- package/cjs/index.js +8 -0
- package/cjs/index.js.map +1 -1
- package/esm/components/ActionIcon/ActionIcon.js.map +1 -1
- package/esm/components/Affix/Affix.js +1 -1
- package/esm/components/Affix/Affix.js.map +1 -1
- package/esm/components/Anchor/Anchor.js.map +1 -1
- package/esm/components/AppShell/AppShell.context.js +1 -1
- package/esm/components/AppShell/AppShell.js +11 -5
- package/esm/components/AppShell/AppShell.js.map +1 -1
- package/esm/components/AppShell/AppShell.styles.js +8 -4
- package/esm/components/AppShell/AppShell.styles.js.map +1 -1
- package/esm/components/AppShell/Aside/Aside.js +40 -0
- package/esm/components/AppShell/Aside/Aside.js.map +1 -0
- package/esm/components/AppShell/Footer/Footer.js +53 -0
- package/esm/components/AppShell/Footer/Footer.js.map +1 -0
- package/esm/components/AppShell/Header/Header.js +10 -28
- package/esm/components/AppShell/Header/Header.js.map +1 -1
- package/esm/components/AppShell/HorizontalSection/HorizontalSection.js +98 -0
- package/esm/components/AppShell/HorizontalSection/HorizontalSection.js.map +1 -0
- package/esm/components/AppShell/{Navbar/Navbar.styles.js → HorizontalSection/HorizontalSection.styles.js} +2 -2
- package/esm/components/AppShell/HorizontalSection/HorizontalSection.styles.js.map +1 -0
- package/esm/components/AppShell/{Navbar/NavbarSection/NavbarSection.js → HorizontalSection/Section/Section.js} +5 -5
- package/esm/components/AppShell/HorizontalSection/Section/Section.js.map +1 -0
- package/esm/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -0
- package/esm/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
- package/esm/components/AppShell/Navbar/Navbar.js +9 -70
- package/esm/components/AppShell/Navbar/Navbar.js.map +1 -1
- package/esm/components/AppShell/VerticalSection/VerticalSection.js +82 -0
- package/esm/components/AppShell/VerticalSection/VerticalSection.js.map +1 -0
- package/esm/components/AppShell/{Header/Header.styles.js → VerticalSection/VerticalSection.styles.js} +4 -3
- package/esm/components/AppShell/VerticalSection/VerticalSection.styles.js.map +1 -0
- package/esm/components/AspectRatio/AspectRatio.js +2 -2
- package/esm/components/AspectRatio/AspectRatio.js.map +1 -1
- package/esm/components/Avatar/Avatar.js.map +1 -1
- package/esm/components/Badge/Badge.js.map +1 -1
- package/esm/components/Box/Box.js.map +1 -1
- package/esm/components/Burger/Burger.js +2 -4
- package/esm/components/Burger/Burger.js.map +1 -1
- package/esm/components/Burger/Burger.styles.js +6 -27
- package/esm/components/Burger/Burger.styles.js.map +1 -1
- package/esm/components/Button/Button.js.map +1 -1
- package/esm/components/Button/UnstyledButton/UnstyledButton.js +3 -3
- package/esm/components/Button/UnstyledButton/UnstyledButton.js.map +1 -1
- package/esm/components/Button/UnstyledButton/UnstyledButton.styles.js +2 -1
- package/esm/components/Button/UnstyledButton/UnstyledButton.styles.js.map +1 -1
- package/esm/components/Card/Card.js +1 -1
- package/esm/components/Card/Card.js.map +1 -1
- package/esm/components/Card/CardSection/CardSection.js.map +1 -1
- package/esm/components/Center/Center.js +1 -1
- package/esm/components/Center/Center.js.map +1 -1
- package/esm/components/Checkbox/Checkbox.styles.js +0 -1
- package/esm/components/Checkbox/Checkbox.styles.js.map +1 -1
- package/esm/components/ColorSwatch/ColorSwatch.js.map +1 -1
- package/esm/components/Grid/Col/Col.js +1 -1
- package/esm/components/Grid/Col/Col.js.map +1 -1
- package/esm/components/Grid/Grid.js +2 -9
- package/esm/components/Grid/Grid.js.map +1 -1
- package/esm/components/Highlight/Highlight.js.map +1 -1
- package/esm/components/Image/BackgroundImage/BackgroundImage.js +1 -1
- package/esm/components/Image/BackgroundImage/BackgroundImage.js.map +1 -1
- package/esm/components/Input/Input.js.map +1 -1
- package/esm/components/InputWrapper/InputWrapper.styles.js +2 -2
- package/esm/components/InputWrapper/InputWrapper.styles.js.map +1 -1
- package/esm/components/MultiSelect/MultiSelect.js +33 -2
- package/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/esm/components/Overlay/Overlay.js +2 -2
- package/esm/components/Overlay/Overlay.js.map +1 -1
- package/esm/components/Paper/Paper.js.map +1 -1
- package/esm/components/PasswordInput/PasswordInput.js +0 -1
- package/esm/components/PasswordInput/PasswordInput.js.map +1 -1
- package/esm/components/Popper/Popper.js +5 -2
- package/esm/components/Popper/Popper.js.map +1 -1
- package/esm/components/RadioGroup/Radio/Radio.js +19 -8
- package/esm/components/RadioGroup/Radio/Radio.js.map +1 -1
- package/esm/components/RadioGroup/Radio/Radio.styles.js +26 -15
- package/esm/components/RadioGroup/Radio/Radio.styles.js.map +1 -1
- package/esm/components/RadioGroup/Radio/RadioIcon.js +31 -0
- package/esm/components/RadioGroup/Radio/RadioIcon.js.map +1 -0
- package/esm/components/Select/Select.js +45 -11
- package/esm/components/Select/Select.js.map +1 -1
- package/esm/components/Select/Select.styles.js +4 -1
- package/esm/components/Select/Select.styles.js.map +1 -1
- package/esm/components/Select/SelectItems/SelectItems.js +1 -1
- package/esm/components/Select/SelectItems/SelectItems.js.map +1 -1
- package/esm/components/Select/filter-data/filter-data.js +13 -1
- package/esm/components/Select/filter-data/filter-data.js.map +1 -1
- package/esm/components/Slider/Marks/Marks.js +3 -2
- package/esm/components/Slider/Marks/Marks.js.map +1 -1
- package/esm/components/Slider/Marks/Marks.styles.js +2 -2
- package/esm/components/Slider/Marks/Marks.styles.js.map +1 -1
- package/esm/components/Slider/RangeSlider/RangeSlider.js +48 -37
- package/esm/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
- package/esm/components/Slider/Slider/Slider.js +57 -47
- package/esm/components/Slider/Slider/Slider.js.map +1 -1
- package/esm/components/Slider/SliderRoot/SliderRoot.js +2 -2
- package/esm/components/Slider/SliderRoot/SliderRoot.js.map +1 -1
- package/esm/components/Slider/SliderRoot/SliderRoot.styles.js +2 -2
- package/esm/components/Slider/SliderRoot/SliderRoot.styles.js.map +1 -1
- package/esm/components/Slider/Thumb/Thumb.js +3 -2
- package/esm/components/Slider/Thumb/Thumb.js.map +1 -1
- package/esm/components/Slider/Thumb/Thumb.styles.js +2 -2
- package/esm/components/Slider/Thumb/Thumb.styles.js.map +1 -1
- package/esm/components/Slider/Track/Track.js +7 -4
- package/esm/components/Slider/Track/Track.js.map +1 -1
- package/esm/components/Slider/Track/Track.styles.js +2 -2
- package/esm/components/Slider/Track/Track.styles.js.map +1 -1
- package/esm/components/Space/Space.js +1 -1
- package/esm/components/Space/Space.js.map +1 -1
- package/esm/components/Stack/Stack.js +50 -0
- package/esm/components/Stack/Stack.js.map +1 -0
- package/esm/components/Stack/Stack.styles.js +14 -0
- package/esm/components/Stack/Stack.styles.js.map +1 -0
- package/esm/components/Text/Text.js.map +1 -1
- package/esm/components/Timeline/Timeline.js +1 -1
- package/esm/components/Timeline/Timeline.js.map +1 -1
- package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.js +191 -0
- package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.js.map +1 -0
- package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js +41 -0
- package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js.map +1 -0
- package/esm/index.js +4 -0
- package/esm/index.js.map +1 -1
- package/lib/components/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/lib/components/ActionIcon/CloseButton/CloseButton.d.ts +1 -1
- package/lib/components/Affix/Affix.d.ts.map +1 -1
- package/lib/components/Anchor/Anchor.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.d.ts +6 -0
- package/lib/components/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +1 -0
- package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/components/AppShell/Aside/Aside.d.ts +13 -0
- package/lib/components/AppShell/Aside/Aside.d.ts.map +1 -0
- package/lib/components/AppShell/Footer/Footer.d.ts +8 -0
- package/lib/components/AppShell/Footer/Footer.d.ts.map +1 -0
- package/lib/components/AppShell/Header/Header.d.ts +2 -11
- package/lib/components/AppShell/Header/Header.d.ts.map +1 -1
- package/lib/components/AppShell/HorizontalSection/HorizontalSection.d.ts +33 -0
- package/lib/components/AppShell/HorizontalSection/HorizontalSection.d.ts.map +1 -0
- package/lib/components/AppShell/{Navbar/Navbar.styles.d.ts → HorizontalSection/HorizontalSection.styles.d.ts} +6 -6
- package/lib/components/AppShell/HorizontalSection/HorizontalSection.styles.d.ts.map +1 -0
- package/lib/components/AppShell/HorizontalSection/Section/Section.d.ts +15 -0
- package/lib/components/AppShell/HorizontalSection/Section/Section.d.ts.map +1 -0
- package/lib/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.d.ts +0 -0
- package/lib/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.d.ts.map +1 -0
- package/lib/components/AppShell/Navbar/Navbar.d.ts +4 -20
- package/lib/components/AppShell/Navbar/Navbar.d.ts.map +1 -1
- package/lib/components/AppShell/VerticalSection/VerticalSection.d.ts +22 -0
- package/lib/components/AppShell/VerticalSection/VerticalSection.d.ts.map +1 -0
- package/lib/components/AppShell/VerticalSection/VerticalSection.styles.d.ts +20 -0
- package/lib/components/AppShell/VerticalSection/VerticalSection.styles.d.ts.map +1 -0
- package/lib/components/AppShell/index.d.ts +6 -2
- package/lib/components/AppShell/index.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Badge/Badge.d.ts.map +1 -1
- package/lib/components/Box/Box.d.ts.map +1 -1
- package/lib/components/Burger/Burger.d.ts.map +1 -1
- package/lib/components/Burger/Burger.styles.d.ts.map +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.styles.d.ts +2 -2
- package/lib/components/Button/UnstyledButton/UnstyledButton.d.ts +8 -3
- package/lib/components/Button/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/lib/components/Button/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
- package/lib/components/Card/CardSection/CardSection.d.ts.map +1 -1
- package/lib/components/Center/Center.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/lib/components/ColorSwatch/ColorSwatch.d.ts.map +1 -1
- package/lib/components/Grid/Col/Col.d.ts.map +1 -1
- package/lib/components/Grid/Grid.d.ts.map +1 -1
- package/lib/components/Highlight/Highlight.d.ts.map +1 -1
- package/lib/components/Image/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/lib/components/Overlay/Overlay.d.ts.map +1 -1
- package/lib/components/Paper/Paper.d.ts.map +1 -1
- package/lib/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/lib/components/Popover/Popover.styles.d.ts +2 -2
- package/lib/components/Popper/Popper.d.ts +6 -1
- package/lib/components/Popper/Popper.d.ts.map +1 -1
- package/lib/components/RadioGroup/Radio/Radio.d.ts +4 -0
- package/lib/components/RadioGroup/Radio/Radio.d.ts.map +1 -1
- package/lib/components/RadioGroup/Radio/Radio.styles.d.ts +3 -2
- package/lib/components/RadioGroup/Radio/Radio.styles.d.ts.map +1 -1
- package/lib/components/RadioGroup/Radio/RadioIcon.d.ts +3 -0
- package/lib/components/RadioGroup/Radio/RadioIcon.d.ts.map +1 -0
- package/lib/components/Select/Select.d.ts +2 -0
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.styles.d.ts.map +1 -1
- package/lib/components/Select/filter-data/filter-data.d.ts +3 -1
- package/lib/components/Select/filter-data/filter-data.d.ts.map +1 -1
- package/lib/components/Slider/Marks/Marks.d.ts +2 -1
- package/lib/components/Slider/Marks/Marks.d.ts.map +1 -1
- package/lib/components/Slider/Marks/Marks.styles.d.ts +1 -0
- package/lib/components/Slider/Marks/Marks.styles.d.ts.map +1 -1
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +2 -0
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/lib/components/Slider/Slider/Slider.d.ts +2 -0
- package/lib/components/Slider/Slider/Slider.d.ts.map +1 -1
- package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +1 -0
- package/lib/components/Slider/SliderRoot/SliderRoot.d.ts.map +1 -1
- package/lib/components/Slider/SliderRoot/SliderRoot.styles.d.ts +1 -0
- package/lib/components/Slider/SliderRoot/SliderRoot.styles.d.ts.map +1 -1
- package/lib/components/Slider/Thumb/Thumb.d.ts +1 -0
- package/lib/components/Slider/Thumb/Thumb.d.ts.map +1 -1
- package/lib/components/Slider/Thumb/Thumb.styles.d.ts +1 -0
- package/lib/components/Slider/Thumb/Thumb.styles.d.ts.map +1 -1
- package/lib/components/Slider/Track/Track.d.ts +2 -1
- package/lib/components/Slider/Track/Track.d.ts.map +1 -1
- package/lib/components/Slider/Track/Track.styles.d.ts +1 -0
- package/lib/components/Slider/Track/Track.styles.d.ts.map +1 -1
- package/lib/components/Stack/Stack.d.ts +9 -0
- package/lib/components/Stack/Stack.d.ts.map +1 -0
- package/lib/components/Stack/Stack.styles.d.ts +14 -0
- package/lib/components/Stack/Stack.styles.d.ts.map +1 -0
- package/lib/components/Stack/index.d.ts +4 -0
- package/lib/components/Stack/index.d.ts.map +1 -0
- package/lib/components/Tabs/TabControl/TabControl.d.ts +1 -1
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.d.ts +35 -0
- package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.d.ts.map +1 -0
- package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.d.ts +12 -0
- package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.d.ts.map +1 -0
- package/lib/components/Tooltip/index.d.ts +3 -0
- package/lib/components/Tooltip/index.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/package.json +3 -4
- package/cjs/components/AppShell/Header/Header.styles.js.map +0 -1
- package/cjs/components/AppShell/Navbar/Navbar.styles.js.map +0 -1
- package/cjs/components/AppShell/Navbar/NavbarSection/NavbarSection.js.map +0 -1
- package/cjs/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
- package/esm/components/AppShell/Header/Header.styles.js.map +0 -1
- package/esm/components/AppShell/Navbar/Navbar.styles.js.map +0 -1
- package/esm/components/AppShell/Navbar/NavbarSection/NavbarSection.js.map +0 -1
- package/esm/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
- package/lib/components/AppShell/Header/Header.styles.d.ts +0 -19
- package/lib/components/AppShell/Header/Header.styles.d.ts.map +0 -1
- package/lib/components/AppShell/Navbar/Navbar.styles.d.ts.map +0 -1
- package/lib/components/AppShell/Navbar/NavbarSection/NavbarSection.d.ts +0 -15
- package/lib/components/AppShell/Navbar/NavbarSection/NavbarSection.d.ts.map +0 -1
- package/lib/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnstyledButton.js","sources":["../../../../src/components/Button/UnstyledButton/UnstyledButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport useStyles from './UnstyledButton.styles';\n\
|
|
1
|
+
{"version":3,"file":"UnstyledButton.js","sources":["../../../../src/components/Button/UnstyledButton/UnstyledButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, PolymorphicComponentProps, PolymorphicRef } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport useStyles from './UnstyledButton.styles';\n\ninterface _UnstyledButtonProps extends DefaultProps {}\n\nexport type UnstyledButtonProps<C> = PolymorphicComponentProps<C, _UnstyledButtonProps>;\n\ntype UnstyledButtonComponent = (<C = 'button'>(\n props: UnstyledButtonProps<C>\n) => React.ReactElement) & {\n displayName?: string;\n};\n\nexport const UnstyledButton: UnstyledButtonComponent = forwardRef(\n (\n { className, component = 'button', ...others }: UnstyledButtonProps<'button'>,\n ref: PolymorphicRef<'button'>\n ) => {\n const { classes, cx } = useStyles(null, { name: 'UnstyledButton' });\n return (\n <Box<any>\n component={component}\n ref={ref}\n className={cx(classes.root, className)}\n type={component === 'button' ? 'button' : undefined}\n {...others}\n />\n );\n }\n) as any;\n\nUnstyledButton.displayName = '@mantine/core/UnstyledButton';\n"],"names":["forwardRef","useStyles","React","Box"],"mappings":";;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MA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izes.md,
|
|
33
33
|
backgroundColor: "transparent",
|
|
34
34
|
textAlign: "left",
|
|
35
|
-
color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black
|
|
35
|
+
color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black,
|
|
36
|
+
textDecoration: "none"
|
|
36
37
|
})
|
|
37
38
|
}));
|
|
38
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnstyledButton.styles.js","sources":["../../../../src/components/Button/UnstyledButton/UnstyledButton.styles.ts"],"sourcesContent":["import { createStyles } from '@mantine/styles';\n\nexport default createStyles((theme) => ({\n root: {\n ...theme.fn.focusStyles(),\n ...theme.fn.fontStyles(),\n cursor: 'pointer',\n border: 0,\n padding: 0,\n appearance: 'none',\n fontSize: theme.fontSizes.md,\n backgroundColor: 'transparent',\n textAlign: 'left',\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,\n },\n}));\n"],"names":["createStyles"],"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,cA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AC,CAAC,GAAG,KAAK,CAAC,KAAK;AAC5E,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"UnstyledButton.styles.js","sources":["../../../../src/components/Button/UnstyledButton/UnstyledButton.styles.ts"],"sourcesContent":["import { createStyles } from '@mantine/styles';\n\nexport default createStyles((theme) => ({\n root: {\n ...theme.fn.focusStyles(),\n ...theme.fn.fontStyles(),\n cursor: 'pointer',\n border: 0,\n padding: 0,\n appearance: 'none',\n fontSize: theme.fontSizes.md,\n backgroundColor: 'transparent',\n textAlign: 'left',\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,\n textDecoration: 'none',\n },\n}));\n"],"names":["createStyles"],"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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3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import React, { Children, cloneElement, forwardRef } from 'react';\nimport { PolymorphicComponentProps, PolymorphicRef, useMantineDefaultProps } from '@mantine/styles';\nimport { Paper, SharedPaperProps } from '../Paper/Paper';\nimport { CardSection } from './CardSection/CardSection';\nimport useStyles from './Card.styles';\n\ninterface _CardProps extends SharedPaperProps {\n /** Card content */\n children: React.ReactNode;\n}\n\nexport type CardProps<C> = PolymorphicComponentProps<C, _CardProps>;\n\ntype CardComponent = (<C = 'div'>(props: CardProps<C>) => React.ReactElement) & {\n displayName?: string;\n Section: typeof CardSection;\n};\n\nconst defaultProps: Partial<CardProps<any>> = {\n p: 'md',\n};\n\nexport const Card: CardComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import React, { Children, cloneElement, forwardRef } from 'react';\nimport { PolymorphicComponentProps, PolymorphicRef, useMantineDefaultProps } from '@mantine/styles';\nimport { Paper, SharedPaperProps } from '../Paper/Paper';\nimport { CardSection } from './CardSection/CardSection';\nimport useStyles from './Card.styles';\n\ninterface _CardProps extends SharedPaperProps {\n /** Card content */\n children: React.ReactNode;\n}\n\nexport type CardProps<C> = PolymorphicComponentProps<C, _CardProps>;\n\ntype CardComponent = (<C = 'div'>(props: CardProps<C>) => React.ReactElement) & {\n displayName?: string;\n Section: typeof CardSection;\n};\n\nconst defaultProps: Partial<CardProps<any>> = {\n p: 'md',\n};\n\nexport const Card: CardComponent = forwardRef(\n (props: CardProps<'div'>, ref: PolymorphicRef<'div'>) => {\n const { component, className, p, radius, children, classNames, styles, ...others } =\n useMantineDefaultProps('Card', defaultProps, props);\n const { classes, cx } = useStyles(null, { name: 'Card', classNames, styles });\n const _children = Children.toArray(children);\n\n const content = _children.map((child, index) => {\n if (typeof child === 'object' && child && 'type' in child && child.type === CardSection) {\n return cloneElement(child, {\n padding: p,\n first: index === 0,\n last: index === _children.length - 1,\n });\n }\n\n return child;\n });\n\n return (\n <Paper\n className={cx(classes.root, className)}\n radius={radius}\n p={p}\n component={component || 'div'}\n ref={ref}\n {...others}\n >\n {content}\n </Paper>\n );\n }\n) as any;\n\nCard.Section = CardSection;\nCard.displayName = '@mantine/core/Card';\n"],"names":["forwardRef","useMantineDefaultProps","styles","useStyles","Children","CardSection","cloneElement","React","Paper"],"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,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,I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card/CardSection/CardSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\nimport useStyles from './CardSection.styles';\n\nexport interface _CardSectionProps extends DefaultProps {\n padding?: MantineNumberSize;\n first?: boolean;\n last?: boolean;\n}\n\nexport type CardSectionProps<C> = PolymorphicComponentProps<C, _CardSectionProps>;\n\ntype CardSectionComponent = (<C = 'div'>(props: CardSectionProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nexport const CardSection: CardSectionComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"CardSection.js","sources":["../../../../src/components/Card/CardSection/CardSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\nimport useStyles from './CardSection.styles';\n\nexport interface _CardSectionProps extends DefaultProps {\n padding?: MantineNumberSize;\n first?: boolean;\n last?: boolean;\n}\n\nexport type CardSectionProps<C> = PolymorphicComponentProps<C, _CardSectionProps>;\n\ntype CardSectionComponent = (<C = 'div'>(props: CardSectionProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nexport const CardSection: CardSectionComponent = forwardRef(\n (\n { className, padding = 0, component, first, last, ...others }: CardSectionProps<'div'>,\n ref: PolymorphicRef<'div'>\n ) => {\n const { classes, cx } = useStyles({ padding, first, last }, { name: 'Card' });\n return (\n <Box\n component={component || 'div'}\n className={cx(classes.cardSection, className)}\n ref={ref}\n {...others}\n />\n );\n }\n) as any;\n\nCardSection.displayName = '@mantine/core/CardSection';\n"],"names":["forwardRef","useStyles","React","Box"],"mappings":";;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,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-1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Center.js","sources":["../../../src/components/Center/Center.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n PolymorphicComponentProps,\n PolymorphicRef,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\n\nexport interface _CenterProps extends DefaultProps {\n /** Content that should be centered vertically and horizontally */\n children: React.ReactNode;\n\n /** Set to true to use inline-flex instead of flex */\n inline?: boolean;\n}\n\nexport type CenterProps<C> = PolymorphicComponentProps<C, _CenterProps>;\n\ntype CenterComponent = (<C = 'div'>(props: CenterProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nexport const Center: CenterComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"Center.js","sources":["../../../src/components/Center/Center.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n PolymorphicComponentProps,\n PolymorphicRef,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\n\nexport interface _CenterProps extends DefaultProps {\n /** Content that should be centered vertically and horizontally */\n children: React.ReactNode;\n\n /** Set to true to use inline-flex instead of flex */\n inline?: boolean;\n}\n\nexport type CenterProps<C> = PolymorphicComponentProps<C, _CenterProps>;\n\ntype CenterComponent = (<C = 'div'>(props: CenterProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nexport const Center: CenterComponent = forwardRef(\n (props: CenterProps<'div'>, ref: PolymorphicRef<'div'>) => {\n const { inline, sx, ...others } = useMantineDefaultProps('Center', {}, props);\n return (\n <Box\n ref={ref}\n sx={[\n {\n display: inline ? 'inline-flex' : 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n {...others}\n />\n );\n }\n) as any;\n\nCenter.displayName = '@mantine/core/Center';\n"],"names":["forwardRef","useMantineDefaultProps","React","Box"],"mappings":";;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CA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,WAAW,GAAG,sBAAsB;;;;"}
|
|
@@ -85,7 +85,6 @@ var useStyles = styles.createStyles((theme, { size, radius, color, transitionDur
|
|
|
85
85
|
height: _size,
|
|
86
86
|
borderRadius: theme.fn.radius(radius),
|
|
87
87
|
padding: 0,
|
|
88
|
-
outline: 0,
|
|
89
88
|
display: "block",
|
|
90
89
|
margin: 0,
|
|
91
90
|
transition: `border-color ${transitionDuration}ms ease, background-color ${transitionDuration}ms ease`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.styles.js","sources":["../../../src/components/Checkbox/Checkbox.styles.ts"],"sourcesContent":["import { createStyles, MantineSize, MantineColor, MantineNumberSize } from '@mantine/styles';\n\nexport const sizes = {\n xs: 16,\n sm: 20,\n md: 24,\n lg: 30,\n xl: 36,\n};\n\nconst iconSizes = {\n xs: 8,\n sm: 10,\n md: 14,\n lg: 16,\n xl: 20,\n};\n\nexport interface CheckboxStylesParams {\n size: MantineSize;\n radius: MantineNumberSize;\n color: MantineColor;\n transitionDuration: number;\n}\n\nexport default createStyles(\n (theme, { size, radius, color, transitionDuration }: CheckboxStylesParams, getRef) => {\n const _size = theme.fn.size({ size, sizes });\n\n return {\n icon: {\n ref: getRef('icon'),\n color: theme.white,\n transform: 'translateY(5px) scale(0.5)',\n opacity: 0,\n transitionProperty: 'opacity, transform',\n transitionTimingFunction: 'ease',\n transitionDuration: `${transitionDuration}ms`,\n pointerEvents: 'none',\n width: theme.fn.size({ size, sizes: iconSizes }),\n position: 'absolute',\n zIndex: 1,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n margin: 'auto',\n\n '@media (prefers-reduced-motion)': {\n transitionDuration: '0ms',\n },\n },\n\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n\n inner: {\n position: 'relative',\n width: _size,\n height: _size,\n },\n\n label: {\n ...theme.fn.fontStyles(),\n WebkitTapHighlightColor: 'transparent',\n paddingLeft: theme.spacing.sm,\n fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),\n lineHeight: `${_size}px`,\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,\n },\n\n input: {\n ...theme.fn.focusStyles(),\n appearance: 'none',\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.white,\n border: `1px solid ${\n theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[4]\n }`,\n width: _size,\n height: _size,\n borderRadius: theme.fn.radius(radius),\n padding: 0,\n
|
|
1
|
+
{"version":3,"file":"Checkbox.styles.js","sources":["../../../src/components/Checkbox/Checkbox.styles.ts"],"sourcesContent":["import { createStyles, MantineSize, MantineColor, MantineNumberSize } from '@mantine/styles';\n\nexport const sizes = {\n xs: 16,\n sm: 20,\n md: 24,\n lg: 30,\n xl: 36,\n};\n\nconst iconSizes = {\n xs: 8,\n sm: 10,\n md: 14,\n lg: 16,\n xl: 20,\n};\n\nexport interface CheckboxStylesParams {\n size: MantineSize;\n radius: MantineNumberSize;\n color: MantineColor;\n transitionDuration: number;\n}\n\nexport default createStyles(\n (theme, { size, radius, color, transitionDuration }: CheckboxStylesParams, getRef) => {\n const _size = theme.fn.size({ size, sizes });\n\n return {\n icon: {\n ref: getRef('icon'),\n color: theme.white,\n transform: 'translateY(5px) scale(0.5)',\n opacity: 0,\n transitionProperty: 'opacity, transform',\n transitionTimingFunction: 'ease',\n transitionDuration: `${transitionDuration}ms`,\n pointerEvents: 'none',\n width: theme.fn.size({ size, sizes: iconSizes }),\n position: 'absolute',\n zIndex: 1,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n margin: 'auto',\n\n '@media (prefers-reduced-motion)': {\n transitionDuration: '0ms',\n },\n },\n\n root: {\n display: 'flex',\n alignItems: 'center',\n },\n\n inner: {\n position: 'relative',\n width: _size,\n height: _size,\n },\n\n label: {\n ...theme.fn.fontStyles(),\n WebkitTapHighlightColor: 'transparent',\n paddingLeft: theme.spacing.sm,\n fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),\n lineHeight: `${_size}px`,\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,\n },\n\n input: {\n ...theme.fn.focusStyles(),\n appearance: 'none',\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.white,\n border: `1px solid ${\n theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[4]\n }`,\n width: _size,\n height: _size,\n borderRadius: theme.fn.radius(radius),\n padding: 0,\n display: 'block',\n margin: 0,\n transition: `border-color ${transitionDuration}ms ease, background-color ${transitionDuration}ms ease`,\n\n '&:checked': {\n backgroundColor: theme.fn.themeColor(color, 6),\n borderColor: theme.fn.themeColor(color, 6),\n\n [`& + .${getRef('icon')}`]: {\n opacity: 1,\n transform: 'translateY(0) scale(1)',\n },\n },\n\n '&:disabled': {\n backgroundColor:\n theme.colorScheme === 'dark' ? theme.colors.dark[4] : theme.colors.gray[2],\n borderColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[3],\n cursor: 'not-allowed',\n\n [`& + .${getRef('icon')}`]: {\n color: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[5],\n },\n },\n },\n };\n }\n);\n"],"names":["createStyles"],"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,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kB,CAAC,OAAO,CAAC;AAC5G,MAAM,WAAW,EAAE;AACnB,QAAQ,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;AACtD,QAAQ,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;AAClD,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG;AACpC,UAAU,OAAO,EAAE,CAAC;AACpB,UAAU,SAAS,EAAE,wBAAwB;AAC7C,SAAS;AACT,OAAO;AACP,MAAM,YAAY,EAAE;AACpB,QAAQ,eAAe,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACnG,QAAQ,WAAW,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/F,QAAQ,MAAM,EAAE,aAAa;AAC7B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG;AACpC,UAAU,KAAK,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3F,SAAS;AACT,OAAO;AACP,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,CAAC,CAAC;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorSwatch.js","sources":["../../../src/components/ColorSwatch/ColorSwatch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n PolymorphicComponentProps,\n PolymorphicRef,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\nimport useStyles from './ColorSwatch.styles';\n\ninterface _ColorSwatchProps extends DefaultProps {\n /** Swatch color value in any css valid format (hex, rgb, etc.) */\n color: string;\n\n /** Width, height and border-radius in px */\n size?: number;\n\n /** Swatch border-radius predefined from theme or number for px value */\n radius?: MantineNumberSize;\n\n /** ColorSwatch children */\n children?: React.ReactNode;\n}\n\nexport type ColorSwatchProps<C> = PolymorphicComponentProps<C, _ColorSwatchProps>;\n\ntype ColorSwatchComponent = (<C = 'div'>(props: ColorSwatchProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<ColorSwatchProps<any>> = {\n size: 25,\n radius: 25,\n};\n\nexport const ColorSwatch: ColorSwatchComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"ColorSwatch.js","sources":["../../../src/components/ColorSwatch/ColorSwatch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n PolymorphicComponentProps,\n PolymorphicRef,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\nimport useStyles from './ColorSwatch.styles';\n\ninterface _ColorSwatchProps extends DefaultProps {\n /** Swatch color value in any css valid format (hex, rgb, etc.) */\n color: string;\n\n /** Width, height and border-radius in px */\n size?: number;\n\n /** Swatch border-radius predefined from theme or number for px value */\n radius?: MantineNumberSize;\n\n /** ColorSwatch children */\n children?: React.ReactNode;\n}\n\nexport type ColorSwatchProps<C> = PolymorphicComponentProps<C, _ColorSwatchProps>;\n\ntype ColorSwatchComponent = (<C = 'div'>(props: ColorSwatchProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<ColorSwatchProps<any>> = {\n size: 25,\n radius: 25,\n};\n\nexport const ColorSwatch: ColorSwatchComponent = forwardRef(\n (props: ColorSwatchProps<'div'>, ref: PolymorphicRef<'div'>) => {\n const { component, color, size, radius, className, children, classNames, styles, ...others } =\n useMantineDefaultProps('ColorSwatch', defaultProps, props);\n\n const { classes, cx } = useStyles(\n { radius, size },\n { classNames, styles, name: 'ColorSwatch' }\n );\n\n return (\n <Box\n component={component || 'div'}\n className={cx(classes.root, className)}\n ref={ref}\n {...others}\n >\n <div className={cx(classes.alphaOverlay, classes.overlay)} />\n <div className={cx(classes.shadowOverlay, classes.overlay)} />\n <div className={classes.overlay} style={{ backgroundColor: color }} />\n <div className={cx(classes.children, classes.overlay)}>{children}</div>\n </Box>\n );\n }\n) as any;\n\nColorSwatch.displayName = '@mantine/core/ColorSwatch';\n"],"names":["forwardRef","useMantineDefaultProps","styles","useStyles","React","Box"],"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,IAAI,EAAE,CAAC,CAAC,I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K,EAAE;AACjD,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC;AACpD,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;AAChB,CAAC,EAAE;AACH,WAAW,CAAC,WAAW,GAAG,2BAA2B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Col.js","sources":["../../../../src/components/Grid/Col/Col.tsx"],"sourcesContent":["import React from 'react';\nimport { DefaultProps } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useGridContext } from '../Grid.context';\nimport useStyles from './Col.styles';\n\nexport interface ColProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n /** Default col span */\n span?: number;\n\n /** Column left offset */\n offset?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.xs) */\n offsetXs?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.sm) */\n offsetSm?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.md) */\n offsetMd?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.lg) */\n offsetLg?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.xl) */\n offsetXl?: number;\n\n /** Col span at (min-width: theme.breakpoints.xs) */\n xs?: number;\n\n /** Col span at (min-width: theme.breakpoints.sm) */\n sm?: number;\n\n /** Col span at (min-width: theme.breakpoints.md) */\n md?: number;\n\n /** Col span at (min-width: theme.breakpoints.lg) */\n lg?: number;\n\n /** Col span at (min-width: theme.breakpoints.xl) */\n xl?: number;\n}\n\nfunction isValidSpan(span: number) {\n return typeof span === 'number' && span > 0 && span % 1 === 0;\n}\n\nexport function Col({\n children,\n span,\n offset = 0,\n offsetXs = 0,\n offsetSm = 0,\n offsetMd = 0,\n offsetLg = 0,\n offsetXl = 0,\n xs,\n sm,\n md,\n lg,\n xl,\n className,\n classNames,\n styles,\n id,\n ...others\n}: ColProps) {\n const { columns, gutter, grow } = useGridContext('Grid.Col');\n const { classes, cx } = useStyles(\n {\n gutter,\n offset,\n offsetXs,\n offsetSm,\n offsetMd,\n offsetLg,\n offsetXl,\n xs,\n sm,\n md,\n lg,\n xl,\n grow,\n columns,\n span,\n },\n { classNames, styles, name: 'Col' }\n );\n\n if (!isValidSpan(span) || span > columns) {\n return null;\n }\n\n return (\n <Box className={cx(classes.root, className)} {...others}>\n {children}\n </Box>\n );\n}\n\nCol.displayName = '@mantine/core/Col';\n"],"names":["useGridContext","useStyles","React","Box"],"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,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;AAC1C,KAAK;AACL,EAAE,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AACF,IAAI,SAAS,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK;AACrC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,KAAK,IAAI,IAAI,IAAI,MAAM;AACzB,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACpE,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AAClC,EAAE,IAAI,MAAM,IAAI,IAAI,IAAI,mBAAmB;AAC3C,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;AAClD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;AACtE,QAAQ,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AACpC,KAAK;AACL,EAAE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAKF,SAAS,WAAW,CAAC,IAAI,EAAE;AAC3B,EAAE,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AACM,SAAS,GAAG,CAAC,EAAE,EAAE;AACxB,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;AACf,IAAI,QAAQ;AACZ,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"Col.js","sources":["../../../../src/components/Grid/Col/Col.tsx"],"sourcesContent":["import React from 'react';\nimport { DefaultProps } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useGridContext } from '../Grid.context';\nimport useStyles from './Col.styles';\n\nexport interface ColProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n /** Default col span */\n span?: number;\n\n /** Column left offset */\n offset?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.xs) */\n offsetXs?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.sm) */\n offsetSm?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.md) */\n offsetMd?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.lg) */\n offsetLg?: number;\n\n /** Column left offset at (min-width: theme.breakpoints.xl) */\n offsetXl?: number;\n\n /** Col span at (min-width: theme.breakpoints.xs) */\n xs?: number;\n\n /** Col span at (min-width: theme.breakpoints.sm) */\n sm?: number;\n\n /** Col span at (min-width: theme.breakpoints.md) */\n md?: number;\n\n /** Col span at (min-width: theme.breakpoints.lg) */\n lg?: number;\n\n /** Col span at (min-width: theme.breakpoints.xl) */\n xl?: number;\n}\n\nfunction isValidSpan(span: number) {\n return typeof span === 'number' && span > 0 && span % 1 === 0;\n}\n\nexport function Col({\n children,\n span = 12,\n offset = 0,\n offsetXs = 0,\n offsetSm = 0,\n offsetMd = 0,\n offsetLg = 0,\n offsetXl = 0,\n xs,\n sm,\n md,\n lg,\n xl,\n className,\n classNames,\n styles,\n id,\n ...others\n}: ColProps) {\n const { columns, gutter, grow } = useGridContext('Grid.Col');\n const { classes, cx } = useStyles(\n {\n gutter,\n offset,\n offsetXs,\n offsetSm,\n offsetMd,\n offsetLg,\n offsetXl,\n xs,\n sm,\n md,\n lg,\n xl,\n grow,\n columns,\n span,\n },\n { classNames, styles, name: 'Col' }\n );\n\n if (!isValidSpan(span) || span > columns) {\n return null;\n }\n\n return (\n <Box className={cx(classes.root, className)} {...others}>\n {children}\n </Box>\n );\n}\n\nCol.displayName = '@mantine/core/Col';\n"],"names":["useGridContext","useStyles","React","Box"],"mappings":";;;;;;;;;;;;;AAAA,IAAI,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React.forwardRef((props, ref) => {
|
|
|
72
72
|
"id"
|
|
73
73
|
]);
|
|
74
74
|
const { classes, cx } = Grid_styles['default']({ gutter, justify, align }, { classNames, styles: styles$1, name: "Grid" });
|
|
75
|
-
const cols = React.Children.toArray(children).map((col, index) => React__default.cloneElement(col, {
|
|
76
|
-
gutter,
|
|
77
|
-
grow,
|
|
78
|
-
columns,
|
|
79
|
-
span: col.props.span || columns,
|
|
80
|
-
key: index
|
|
81
|
-
}));
|
|
82
75
|
return /* @__PURE__ */ React__default.createElement(Grid_context.GridProvider, {
|
|
83
76
|
value: { gutter, grow, columns }
|
|
84
77
|
}, /* @__PURE__ */ React__default.createElement(Box.Box, __spreadValues({
|
|
85
78
|
className: cx(classes.root, className),
|
|
86
79
|
ref
|
|
87
|
-
}, others),
|
|
80
|
+
}, others), children));
|
|
88
81
|
});
|
|
89
82
|
Grid.Col = Col.Col;
|
|
90
83
|
Grid.displayName = "@mantine/core/Grid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.js","sources":["../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, {
|
|
1
|
+
{"version":3,"file":"Grid.js","sources":["../../../src/components/Grid/Grid.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n ForwardRefWithStaticComponents,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\nimport { Col } from './Col/Col';\nimport { GridProvider } from './Grid.context';\nimport useStyles from './Grid.styles';\n\nexport interface GridProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n /** <Col /> components only */\n children: React.ReactNode;\n\n /** Spacing between columns predefined value from theme.spacing or number for gutter in px */\n gutter?: MantineNumberSize;\n\n /** Should columns in the last row take 100% of grid width */\n grow?: boolean;\n\n /** Set grid justify-content property */\n justify?: React.CSSProperties['justifyContent'];\n\n /** Set grid align-content property */\n align?: React.CSSProperties['alignContent'];\n\n /** Amount of columns in each row */\n columns?: number;\n}\n\ntype GridComponent = ForwardRefWithStaticComponents<GridProps, { Col: typeof Col }>;\n\nconst defaultProps: Partial<GridProps> = {\n gutter: 'md',\n justify: 'flex-start',\n align: 'stretch',\n columns: 12,\n};\n\nexport const Grid: GridComponent = forwardRef<HTMLDivElement, GridProps>(\n (props: GridProps, ref) => {\n const {\n gutter,\n children,\n grow,\n justify,\n align,\n columns,\n className,\n classNames,\n styles,\n id,\n ...others\n } = useMantineDefaultProps('Grid', defaultProps, props);\n\n const { classes, cx } = useStyles(\n { gutter, justify, align },\n { classNames, styles, name: 'Grid' }\n );\n\n return (\n <GridProvider value={{ gutter, grow, columns }}>\n <Box className={cx(classes.root, className)} ref={ref} {...others}>\n {children}\n </Box>\n </GridProvider>\n );\n }\n) as any;\n\nGrid.Col = Col;\nGrid.displayName = '@mantine/core/Grid';\n"],"names":["forwardRef","useMantineDefaultProps","styles","useStyles","React","GridProvider","Box","Col"],"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,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,CAAC,GAAG,GAAGC,OAAG,CAAC;AACf,IAAI,CAAC,WAAW,GAAG,oBAAoB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Highlight.js","sources":["../../../src/components/Highlight/Highlight.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n MantineColor,\n PolymorphicComponentProps,\n PolymorphicRef,\n MantineTheme,\n CSSObject,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Text, SharedTextProps } from '../Text/Text';\nimport { Mark } from '../Mark/Mark';\nimport { highlighter } from './highlighter/highlighter';\n\ninterface _HighlightProps extends SharedTextProps {\n /** Substring or an array of substrings to highlight in children */\n highlight: string | string[];\n\n /** Color from theme that is used for highlighting */\n highlightColor?: MantineColor;\n\n /** Styles applied to highlighted part */\n highlightStyles?: CSSObject | ((theme: MantineTheme) => CSSObject);\n\n /** Full string part of which will be highlighted */\n children: string;\n}\n\nexport type HighlightProps<C> = PolymorphicComponentProps<C, _HighlightProps>;\n\ntype HighlightComponent = (<C = 'div'>(props: HighlightProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<HighlightProps<any>> = {\n highlightColor: 'yellow',\n};\n\nexport const Highlight: HighlightComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"Highlight.js","sources":["../../../src/components/Highlight/Highlight.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n MantineColor,\n PolymorphicComponentProps,\n PolymorphicRef,\n MantineTheme,\n CSSObject,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Text, SharedTextProps } from '../Text/Text';\nimport { Mark } from '../Mark/Mark';\nimport { highlighter } from './highlighter/highlighter';\n\ninterface _HighlightProps extends SharedTextProps {\n /** Substring or an array of substrings to highlight in children */\n highlight: string | string[];\n\n /** Color from theme that is used for highlighting */\n highlightColor?: MantineColor;\n\n /** Styles applied to highlighted part */\n highlightStyles?: CSSObject | ((theme: MantineTheme) => CSSObject);\n\n /** Full string part of which will be highlighted */\n children: string;\n}\n\nexport type HighlightProps<C> = PolymorphicComponentProps<C, _HighlightProps>;\n\ntype HighlightComponent = (<C = 'div'>(props: HighlightProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<HighlightProps<any>> = {\n highlightColor: 'yellow',\n};\n\nexport const Highlight: HighlightComponent = forwardRef(\n (props: HighlightProps<'div'>, ref: PolymorphicRef<'div'>) => {\n const { children, highlight, highlightColor, component, highlightStyles, ...others } =\n useMantineDefaultProps('Highlight', defaultProps, props);\n const highlightChunks = highlighter(children, highlight);\n\n return (\n <Text component={component as any} ref={ref} {...others}>\n {highlightChunks.map(({ chunk, highlighted }, i) =>\n highlighted ? (\n <Mark key={i} color={highlightColor} sx={highlightStyles}>\n {chunk}\n </Mark>\n ) : (\n <span key={i}>{chunk}</span>\n )\n )}\n </Text>\n );\n }\n) as any;\n\nHighlight.displayName = '@mantine/core/Highlight';\n"],"names":["forwardRef","useMantineDefaultProps","highlighter","React","Text","Mark"],"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,IA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AG;AACrB,EAAE,cAAc,EAAE,QAAQ;AAC1B,CAAC,CAAC;AACU,MAAC,SAAS,GAAGA,gBAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACpD,EAAE,MAAM,EAAE,GAAGC,6BAAsB,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AACrP,EAAE,MAAM,eAAe,GAAGC,uBAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC3D,EAAE,uBAAuBC,cAAK,CAAC,aAAa,CAACC,SAAI,EAAE,cAAc,CAAC;AAClE,IAAI,SAAS;AACb,IAAI,GAAG;AACP,GAAG,EAAE,MAAM,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,KAAK,WAAW,mBAAmBD,cAAK,CAAC,aAAa,CAACE,SAAI,EAAE;AACzH,IAAI,GAAG,EAAE,CAAC;AACV,IAAI,KAAK,EAAE,cAAc;AACzB,IAAI,EAAE,EAAE,eAAe;AACvB,GAAG,EAAE,KAAK,CAAC,mBAAmBF,cAAK,CAAC,aAAa,CAAC,MAAM,EAAE;AAC1D,IAAI,GAAG,EAAE,CAAC;AACV,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACd,CAAC,EAAE;AACH,SAAS,CAAC,WAAW,GAAG,yBAAyB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackgroundImage.js","sources":["../../../../src/components/Image/BackgroundImage/BackgroundImage.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n useMantineDefaultProps,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\n\ninterface _BackgroundImageProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n src: string;\n radius?: MantineNumberSize;\n}\n\nexport type BackgroundImageProps<C> = C extends React.ElementType\n ? PolymorphicComponentProps<C, _BackgroundImageProps>\n : never;\n\ntype BackgroundImageComponent = (<C = 'div'>(\n props: BackgroundImageProps<C>\n) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<BackgroundImageProps<any>> = {\n radius: 0,\n};\n\nexport const BackgroundImage: BackgroundImageComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"BackgroundImage.js","sources":["../../../../src/components/Image/BackgroundImage/BackgroundImage.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n DefaultProps,\n MantineNumberSize,\n useMantineDefaultProps,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\n\ninterface _BackgroundImageProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n src: string;\n radius?: MantineNumberSize;\n}\n\nexport type BackgroundImageProps<C> = C extends React.ElementType\n ? PolymorphicComponentProps<C, _BackgroundImageProps>\n : never;\n\ntype BackgroundImageComponent = (<C = 'div'>(\n props: BackgroundImageProps<C>\n) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<BackgroundImageProps<any>> = {\n radius: 0,\n};\n\nexport const BackgroundImage: BackgroundImageComponent = forwardRef(\n (props: BackgroundImageProps<'div'>, ref: PolymorphicRef<'div'>) => {\n const { src, radius, sx, ...others } = useMantineDefaultProps(\n 'BackgroundImage',\n defaultProps,\n props\n );\n\n return (\n <Box\n {...others}\n ref={ref}\n sx={[\n (theme) => ({\n ...theme.fn.focusStyles(),\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n display: 'block',\n width: '100%',\n border: 0,\n textDecoration: 'none',\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black,\n backgroundImage: `url(${src})`,\n borderRadius: theme.fn.radius(radius),\n }),\n ...(Array.isArray(sx) ? sx : [sx]),\n ]}\n />\n );\n }\n) as any;\n\nBackgroundImage.displayName = '@mantine/core/BackgroundImage';\n"],"names":["forwardRef","useMantineDefaultProps","React","Box"],"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,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AE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACvJ,EAAE,uBAAuBC,cAAK,CAAC,aAAa,CAACC,OAAG,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE;AAC5F,IAAI,GAAG;AACP,IAAI,EAAE,EAAE;AACR,MAAM,CAAC,KAAK,KAAK,aAAa,CAAC,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,EAAE;AAC3E,QAAQ,cAAc,EAAE,OAAO;AAC/B,QAAQ,kBAAkB,EAAE,QAAQ;AACpC,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,KAAK,EAAE,MAAM;AACrB,QAAQ,MAAM,EAAE,CAAC;AACjB,QAAQ,cAAc,EAAE,MAAM;AAC9B,QAAQ,KAAK,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK;AAChF,QAAQ,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AACtC,QAAQ,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;AAC7C,OAAO,CAAC;AACR,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;AACtC,KAAK;AACL,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n useMantineTheme,\n DefaultProps,\n MantineNumberSize,\n MantineSize,\n ClassNames,\n PolymorphicComponentProps,\n PolymorphicRef,\n extractSystemStyles,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\nimport useStyles, { InputVariant } from './Input.styles';\n\nexport type InputStylesNames = ClassNames<typeof useStyles>;\n\nexport interface InputBaseProps {\n /** Adds icon on the left side of input */\n icon?: React.ReactNode;\n\n /** Width of icon section in px */\n iconWidth?: number;\n\n /** Right section of input, similar to icon but on the right */\n rightSection?: React.ReactNode;\n\n /** Width of right section, is used to calculate input padding-right */\n rightSectionWidth?: number;\n\n /** Props spread to rightSection div element */\n rightSectionProps?: React.ComponentPropsWithoutRef<'div'>;\n\n /** Properties spread to root element */\n wrapperProps?: { [key: string]: any };\n\n /** Sets required on input element */\n required?: boolean;\n\n /** Input border-radius from theme or number to set border-radius in px */\n radius?: MantineNumberSize;\n\n /** Defines input appearance, defaults to default in light color scheme and filled in dark */\n variant?: InputVariant;\n\n /** Disabled input state */\n disabled?: boolean;\n\n /** Input size */\n size?: MantineSize;\n}\n\ninterface _InputProps extends InputBaseProps, DefaultProps<InputStylesNames> {\n /** Static css selector base */\n __staticSelector?: string;\n\n /** Sets border color to red and aria-invalid=true on input element */\n invalid?: boolean;\n\n /** Will input have multiple lines? */\n multiline?: boolean;\n}\n\nexport type InputProps<C> = PolymorphicComponentProps<C, _InputProps>;\n\ntype InputComponent = (<C = 'input'>(props: InputProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<InputProps<any>> = {\n rightSectionWidth: 36,\n size: 'sm',\n __staticSelector: 'Input',\n};\n\nexport const Input: InputComponent = forwardRef(\n
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n useMantineTheme,\n DefaultProps,\n MantineNumberSize,\n MantineSize,\n ClassNames,\n PolymorphicComponentProps,\n PolymorphicRef,\n extractSystemStyles,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport { Box } from '../Box';\nimport useStyles, { InputVariant } from './Input.styles';\n\nexport type InputStylesNames = ClassNames<typeof useStyles>;\n\nexport interface InputBaseProps {\n /** Adds icon on the left side of input */\n icon?: React.ReactNode;\n\n /** Width of icon section in px */\n iconWidth?: number;\n\n /** Right section of input, similar to icon but on the right */\n rightSection?: React.ReactNode;\n\n /** Width of right section, is used to calculate input padding-right */\n rightSectionWidth?: number;\n\n /** Props spread to rightSection div element */\n rightSectionProps?: React.ComponentPropsWithoutRef<'div'>;\n\n /** Properties spread to root element */\n wrapperProps?: { [key: string]: any };\n\n /** Sets required on input element */\n required?: boolean;\n\n /** Input border-radius from theme or number to set border-radius in px */\n radius?: MantineNumberSize;\n\n /** Defines input appearance, defaults to default in light color scheme and filled in dark */\n variant?: InputVariant;\n\n /** Disabled input state */\n disabled?: boolean;\n\n /** Input size */\n size?: MantineSize;\n}\n\ninterface _InputProps extends InputBaseProps, DefaultProps<InputStylesNames> {\n /** Static css selector base */\n __staticSelector?: string;\n\n /** Sets border color to red and aria-invalid=true on input element */\n invalid?: boolean;\n\n /** Will input have multiple lines? */\n multiline?: boolean;\n}\n\nexport type InputProps<C> = PolymorphicComponentProps<C, _InputProps>;\n\ntype InputComponent = (<C = 'input'>(props: InputProps<C>) => React.ReactElement) & {\n displayName?: string;\n};\n\nconst defaultProps: Partial<InputProps<any>> = {\n rightSectionWidth: 36,\n size: 'sm',\n __staticSelector: 'Input',\n};\n\nexport const Input: InputComponent = forwardRef(\n (props: InputProps<'input'>, ref: PolymorphicRef<'input'>) => {\n const {\n component,\n className,\n invalid,\n required,\n disabled,\n variant,\n icon,\n style,\n rightSectionWidth,\n iconWidth,\n rightSection,\n rightSectionProps,\n radius,\n size,\n wrapperProps,\n classNames,\n styles,\n __staticSelector,\n multiline,\n sx,\n ...others\n } = useMantineDefaultProps('Input', defaultProps, props);\n\n const theme = useMantineTheme();\n const _variant = variant || (theme.colorScheme === 'dark' ? 'filled' : 'default');\n const { classes, cx } = useStyles(\n {\n radius,\n size,\n multiline,\n variant: _variant,\n invalid,\n rightSectionWidth,\n iconWidth,\n withRightSection: !!rightSection,\n },\n { classNames, styles, name: __staticSelector }\n );\n const { systemStyles, rest } = extractSystemStyles(others);\n const Element: any = component || 'input';\n\n return (\n <Box\n className={cx(classes.wrapper, className)}\n sx={sx}\n style={style}\n {...systemStyles}\n {...wrapperProps}\n >\n {icon && <div className={classes.icon}>{icon}</div>}\n\n <Element\n {...rest}\n ref={ref}\n required={required}\n aria-invalid={invalid}\n disabled={disabled}\n className={cx(classes[`${_variant}Variant`], classes.input, {\n [classes.withIcon]: icon,\n [classes.invalid]: invalid,\n [classes.disabled]: disabled,\n })}\n />\n\n {rightSection && (\n <div {...rightSectionProps} className={classes.rightSection}>\n {rightSection}\n </div>\n )}\n </Box>\n );\n }\n) as any;\n\nInput.displayName = '@mantine/core/Input';\n"],"names":["forwardRef","useMantineDefaultProps","styles","useMantineTheme","useStyles","extractSystemStyles","React","Box"],"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,GAA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AAI,QAAQ;AACZ,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE;AAChE,MAAM,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI;AAC9B,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO;AAChC,MAAM,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ;AAClC,KAAK,CAAC;AACN,GAAG,CAAC,CAAC,EAAE,YAAY,oBAAoBA,cAAK,CAAC,aAAa,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE;AACvH,IAAI,SAAS,EAAE,OAAO,CAAC,YAAY;AACnC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;AACrB,CAAC,EAAE;AACH,KAAK,CAAC,WAAW,GAAG,qBAAqB;;;;"}
|
|
@@ -40,14 +40,14 @@ var useStyles = styles.createStyles((theme, { size }) => ({
|
|
|
40
40
|
error: {
|
|
41
41
|
marginTop: theme.spacing.xs / 2,
|
|
42
42
|
wordBreak: "break-word",
|
|
43
|
-
color:
|
|
43
|
+
color: theme.colors.red[theme.colorScheme === "dark" ? 6 : 7]
|
|
44
44
|
},
|
|
45
45
|
description: {
|
|
46
46
|
marginTop: -3,
|
|
47
47
|
marginBottom: 7,
|
|
48
48
|
wordBreak: "break-word",
|
|
49
49
|
color: `${theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6]} !important`,
|
|
50
|
-
fontSize:
|
|
50
|
+
fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - 2,
|
|
51
51
|
lineHeight: 1.2
|
|
52
52
|
},
|
|
53
53
|
required: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputWrapper.styles.js","sources":["../../../src/components/InputWrapper/InputWrapper.styles.ts"],"sourcesContent":["import { createStyles, MantineSize } from '@mantine/styles';\n\nexport interface InputWrapperStylesParams {\n size: MantineSize;\n}\n\nexport default createStyles((theme, { size }: InputWrapperStylesParams) => ({\n root: {\n ...theme.fn.fontStyles(),\n lineHeight: theme.lineHeight,\n },\n\n label: {\n display: 'inline-block',\n marginBottom: 4,\n fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),\n fontWeight: 500,\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n wordBreak: 'break-word',\n cursor: 'default',\n WebkitTapHighlightColor: 'transparent',\n },\n\n error: {\n marginTop: theme.spacing.xs / 2,\n wordBreak: 'break-word',\n color:
|
|
1
|
+
{"version":3,"file":"InputWrapper.styles.js","sources":["../../../src/components/InputWrapper/InputWrapper.styles.ts"],"sourcesContent":["import { createStyles, MantineSize } from '@mantine/styles';\n\nexport interface InputWrapperStylesParams {\n size: MantineSize;\n}\n\nexport default createStyles((theme, { size }: InputWrapperStylesParams) => ({\n root: {\n ...theme.fn.fontStyles(),\n lineHeight: theme.lineHeight,\n },\n\n label: {\n display: 'inline-block',\n marginBottom: 4,\n fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),\n fontWeight: 500,\n color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.colors.gray[9],\n wordBreak: 'break-word',\n cursor: 'default',\n WebkitTapHighlightColor: 'transparent',\n },\n\n error: {\n marginTop: theme.spacing.xs / 2,\n wordBreak: 'break-word',\n color: theme.colors.red[theme.colorScheme === 'dark' ? 6 : 7],\n },\n\n description: {\n marginTop: -3,\n marginBottom: 7,\n wordBreak: 'break-word',\n color: `${\n theme.colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[6]\n } !important`,\n fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - 2,\n lineHeight: 1.2,\n },\n\n required: {\n color: theme.colorScheme === 'dark' ? theme.colors.red[5] : theme.colors.red[7],\n },\n}));\n"],"names":["createStyles"],"mappings":";;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC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MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;AACrG,IAAI,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC;AACjE,IAAI,UAAU,EAAE,GAAG;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,KAAK,EAAE,KAAK,CAAC,WAAW,KAAK,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACnF,GAAG;AACH,CAAC,CAAC,CAAC;;;;"}
|
|
@@ -388,6 +388,34 @@ const MultiSelect = React.forwardRef((props, ref) => {
|
|
|
388
388
|
}
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
|
+
case "Home": {
|
|
392
|
+
if (!searchable) {
|
|
393
|
+
event.preventDefault();
|
|
394
|
+
if (!dropdownOpened) {
|
|
395
|
+
setDropdownOpened(true);
|
|
396
|
+
}
|
|
397
|
+
const firstItemIndex = filteredData.findIndex((item) => !item.disabled);
|
|
398
|
+
setHovered(firstItemIndex);
|
|
399
|
+
scrollIntoView({
|
|
400
|
+
alignment: isColumn ? "end" : "start"
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
case "End": {
|
|
406
|
+
if (!searchable) {
|
|
407
|
+
event.preventDefault();
|
|
408
|
+
if (!dropdownOpened) {
|
|
409
|
+
setDropdownOpened(true);
|
|
410
|
+
}
|
|
411
|
+
const lastItemIndex = filteredData.map((item) => !!item.disabled).lastIndexOf(false);
|
|
412
|
+
setHovered(lastItemIndex);
|
|
413
|
+
scrollIntoView({
|
|
414
|
+
alignment: isColumn ? "end" : "start"
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
391
419
|
case "Escape": {
|
|
392
420
|
setDropdownOpened(false);
|
|
393
421
|
}
|
|
@@ -459,7 +487,11 @@ const MultiSelect = React.forwardRef((props, ref) => {
|
|
|
459
487
|
onMouseLeave: () => setHovered(-1),
|
|
460
488
|
tabIndex: -1,
|
|
461
489
|
ref: wrapperRef
|
|
462
|
-
}, /* @__PURE__ */ React__default.createElement(
|
|
490
|
+
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
491
|
+
type: "hidden",
|
|
492
|
+
name,
|
|
493
|
+
value: _value.join(",")
|
|
494
|
+
}), /* @__PURE__ */ React__default.createElement(Input.Input, __spreadValues({
|
|
463
495
|
__staticSelector: "MultiSelect",
|
|
464
496
|
style: { overflow: "hidden" },
|
|
465
497
|
component: "div",
|
|
@@ -511,7 +543,6 @@ const MultiSelect = React.forwardRef((props, ref) => {
|
|
|
511
543
|
placeholder: _value.length === 0 ? placeholder : void 0,
|
|
512
544
|
disabled,
|
|
513
545
|
"data-mantine-stop-propagation": dropdownOpened,
|
|
514
|
-
name,
|
|
515
546
|
autoComplete: "nope"
|
|
516
547
|
}, rest)))), /* @__PURE__ */ React__default.createElement(SelectDropdown.SelectDropdown, {
|
|
517
548
|
mounted: dropdownOpened && shouldRenderDropdown,
|