@mantine/core 9.6.2 → 9.7.0
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/ActionBar/ActionBar.cjs +0 -3
- package/cjs/components/ActionBar/ActionBar.cjs.map +1 -1
- package/cjs/components/ActionBar/ActionBar.module.cjs.map +1 -1
- package/cjs/components/AppShell/AppShell.cjs +33 -6
- package/cjs/components/AppShell/AppShell.cjs.map +1 -1
- package/cjs/components/AppShell/AppShell.context.cjs.map +1 -1
- package/cjs/components/AppShell/AppShell.module.cjs +2 -1
- package/cjs/components/AppShell/AppShell.module.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellAside/AppShellAside.cjs +28 -7
- package/cjs/components/AppShell/AppShellAside/AppShellAside.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellFooter/AppShellFooter.cjs +28 -7
- package/cjs/components/AppShell/AppShellFooter/AppShellFooter.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellHeader/AppShellHeader.cjs +28 -7
- package/cjs/components/AppShell/AppShellHeader/AppShellHeader.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.cjs +3 -2
- package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.cjs +27 -16
- package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.cjs +24 -16
- package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.cjs +24 -16
- package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.cjs +30 -19
- package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.cjs +26 -0
- package/cjs/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.cjs.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.cjs +10 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.cjs.map +1 -0
- package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.cjs +13 -5
- package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.cjs +28 -7
- package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.cjs.map +1 -1
- package/cjs/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.cjs +270 -0
- package/cjs/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.cjs.map +1 -0
- package/cjs/components/AppShell/use-app-shell-resize/clamp-resize-size.cjs +15 -0
- package/cjs/components/AppShell/use-app-shell-resize/clamp-resize-size.cjs.map +1 -0
- package/cjs/components/AppShell/use-app-shell-resize/resize-section-config.cjs +51 -0
- package/cjs/components/AppShell/use-app-shell-resize/resize-section-config.cjs.map +1 -0
- package/cjs/components/AppShell/use-app-shell-resize/safe-area-inset.cjs +12 -0
- package/cjs/components/AppShell/use-app-shell-resize/safe-area-inset.cjs.map +1 -0
- package/cjs/components/AppShell/use-app-shell-resize/use-app-shell-resize.cjs +127 -0
- package/cjs/components/AppShell/use-app-shell-resize/use-app-shell-resize.cjs.map +1 -0
- package/cjs/components/AppShell/use-resizing/use-resizing.cjs +20 -2
- package/cjs/components/AppShell/use-resizing/use-resizing.cjs.map +1 -1
- package/cjs/components/Checkbox/Checkbox.cjs +10 -2
- package/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
- package/cjs/components/Checkbox/Checkbox.module.cjs +1 -0
- package/cjs/components/Checkbox/Checkbox.module.cjs.map +1 -1
- package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.cjs +10 -2
- package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.cjs.map +1 -1
- package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.cjs +1 -0
- package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.cjs.map +1 -1
- package/cjs/components/ComboboxPopover/ComboboxPopover.cjs.map +1 -1
- package/cjs/components/Dialog/Dialog.cjs +0 -1
- package/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/cjs/components/Dialog/Dialog.module.cjs.map +1 -1
- package/cjs/components/HoverCard/HoverCard.cjs +34 -5
- package/cjs/components/HoverCard/HoverCard.cjs.map +1 -1
- package/cjs/components/HoverCard/HoverCard.context.cjs.map +1 -1
- package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.cjs +13 -18
- package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.cjs.map +1 -1
- package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs +6 -23
- package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs.map +1 -1
- package/cjs/components/HoverCard/use-hover-card.cjs +26 -12
- package/cjs/components/HoverCard/use-hover-card.cjs.map +1 -1
- package/cjs/components/Input/InputWrapper/InputWrapper.cjs +1 -1
- package/cjs/components/Input/InputWrapper/InputWrapper.cjs.map +1 -1
- package/cjs/components/Marquee/Marquee.cjs.map +1 -1
- package/cjs/components/Marquee/Marquee.module.cjs.map +1 -1
- package/cjs/components/PasswordInput/PasswordInput.cjs +10 -5
- package/cjs/components/PasswordInput/PasswordInput.cjs.map +1 -1
- package/cjs/components/PinInput/PinInput.cjs.map +1 -1
- package/cjs/components/Portal/Portal.cjs +10 -1
- package/cjs/components/Portal/Portal.cjs.map +1 -1
- package/cjs/components/Radio/Radio.cjs +10 -2
- package/cjs/components/Radio/Radio.cjs.map +1 -1
- package/cjs/components/Radio/Radio.module.cjs +1 -0
- package/cjs/components/Radio/Radio.module.cjs.map +1 -1
- package/cjs/components/Radio/RadioIndicator/RadioIndicator.cjs +10 -2
- package/cjs/components/Radio/RadioIndicator/RadioIndicator.cjs.map +1 -1
- package/cjs/components/Radio/RadioIndicator/RadioIndicator.module.cjs +1 -0
- package/cjs/components/Radio/RadioIndicator/RadioIndicator.module.cjs.map +1 -1
- package/cjs/components/Rating/Rating.cjs +35 -12
- package/cjs/components/Rating/Rating.cjs.map +1 -1
- package/cjs/components/Select/Select.cjs +1 -1
- package/cjs/components/Select/Select.cjs.map +1 -1
- package/cjs/components/Slider/Thumb/Thumb.cjs +7 -2
- package/cjs/components/Slider/Thumb/Thumb.cjs.map +1 -1
- package/cjs/components/Table/Table.cjs +23 -10
- package/cjs/components/Table/Table.cjs.map +1 -1
- package/cjs/components/Toggle/Toggle.cjs +80 -0
- package/cjs/components/Toggle/Toggle.cjs.map +1 -0
- package/cjs/components/Toggle/Toggle.module.cjs +7 -0
- package/cjs/components/Toggle/Toggle.module.cjs.map +1 -0
- package/cjs/components/Toolbar/Toolbar.cjs +107 -0
- package/cjs/components/Toolbar/Toolbar.cjs.map +1 -0
- package/cjs/components/Toolbar/Toolbar.context.cjs +8 -0
- package/cjs/components/Toolbar/Toolbar.context.cjs.map +1 -0
- package/cjs/components/Toolbar/Toolbar.module.cjs +12 -0
- package/cjs/components/Toolbar/Toolbar.module.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarDivider/ToolbarDivider.cjs +31 -0
- package/cjs/components/Toolbar/ToolbarDivider/ToolbarDivider.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarGroup/ToolbarGroup.cjs +31 -0
- package/cjs/components/Toolbar/ToolbarGroup/ToolbarGroup.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarToggle/ToolbarToggle.cjs +47 -0
- package/cjs/components/Toolbar/ToolbarToggle/ToolbarToggle.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.cjs +61 -0
- package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.cjs +8 -0
- package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.cjs.map +1 -0
- package/cjs/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.cjs +51 -0
- package/cjs/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.cjs.map +1 -0
- package/cjs/components/Toolbar/use-toolbar-navigation.cjs +76 -0
- package/cjs/components/Toolbar/use-toolbar-navigation.cjs.map +1 -0
- package/cjs/components/Tooltip/Tooltip.cjs +9 -5
- package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
- package/cjs/components/Tooltip/use-tooltip.cjs +6 -3
- package/cjs/components/Tooltip/use-tooltip.cjs.map +1 -1
- package/cjs/components/Tour/Tour.cjs +283 -0
- package/cjs/components/Tour/Tour.cjs.map +1 -0
- package/cjs/components/Tour/Tour.context.cjs +25 -0
- package/cjs/components/Tour/Tour.context.cjs.map +1 -0
- package/cjs/components/Tour/Tour.module.cjs +19 -0
- package/cjs/components/Tour/Tour.module.cjs.map +1 -0
- package/cjs/components/Tour/TourBeacon/TourBeacon.cjs +54 -0
- package/cjs/components/Tour/TourBeacon/TourBeacon.cjs.map +1 -0
- package/cjs/components/Tour/TourBeaconPositioned.cjs +46 -0
- package/cjs/components/Tour/TourBeaconPositioned.cjs.map +1 -0
- package/cjs/components/Tour/TourBody/TourBody.cjs +37 -0
- package/cjs/components/Tour/TourBody/TourBody.cjs.map +1 -0
- package/cjs/components/Tour/TourCloseButton/TourCloseButton.cjs +26 -0
- package/cjs/components/Tour/TourCloseButton/TourCloseButton.cjs.map +1 -0
- package/cjs/components/Tour/TourNavigation/TourNavigation.cjs +63 -0
- package/cjs/components/Tour/TourNavigation/TourNavigation.cjs.map +1 -0
- package/cjs/components/Tour/TourOverlay/TourOverlay.cjs +70 -0
- package/cjs/components/Tour/TourOverlay/TourOverlay.cjs.map +1 -0
- package/cjs/components/Tour/TourRoot/TourRoot.cjs +125 -0
- package/cjs/components/Tour/TourRoot/TourRoot.cjs.map +1 -0
- package/cjs/components/Tour/TourStep/TourStep.cjs +10 -0
- package/cjs/components/Tour/TourStep/TourStep.cjs.map +1 -0
- package/cjs/components/Tour/TourTitle/TourTitle.cjs +38 -0
- package/cjs/components/Tour/TourTitle/TourTitle.cjs.map +1 -0
- package/cjs/components/Tour/TourTooltip/TourTooltip.cjs +87 -0
- package/cjs/components/Tour/TourTooltip/TourTooltip.cjs.map +1 -0
- package/cjs/components/Tour/get-overlay-hit-path.cjs +17 -0
- package/cjs/components/Tour/get-overlay-hit-path.cjs.map +1 -0
- package/cjs/components/Tour/is-element-in-view.cjs +30 -0
- package/cjs/components/Tour/is-element-in-view.cjs.map +1 -0
- package/cjs/components/Tour/press-aware-auto-update.cjs +38 -0
- package/cjs/components/Tour/press-aware-auto-update.cjs.map +1 -0
- package/cjs/components/Tour/use-target-rect.cjs +61 -0
- package/cjs/components/Tour/use-target-rect.cjs.map +1 -0
- package/cjs/components/Tour/use-tooltip-auto-focus.cjs +34 -0
- package/cjs/components/Tour/use-tooltip-auto-focus.cjs.map +1 -0
- package/cjs/components/Tour/use-tour-state.cjs +102 -0
- package/cjs/components/Tour/use-tour-state.cjs.map +1 -0
- package/cjs/components/Tour/use-tour.cjs +155 -0
- package/cjs/components/Tour/use-tour.cjs.map +1 -0
- package/cjs/components/TreeSelect/TreeSelect.cjs +29 -16
- package/cjs/components/TreeSelect/TreeSelect.cjs.map +1 -1
- package/cjs/core/Box/Box.cjs +1 -1
- package/cjs/core/Box/Box.cjs.map +1 -1
- package/cjs/core/Box/style-props/style-props-data.cjs +2 -2
- package/cjs/core/Box/style-props/style-props-data.cjs.map +1 -1
- package/cjs/core/styles-api/use-styles/use-styles.cjs +32 -2
- package/cjs/core/styles-api/use-styles/use-styles.cjs.map +1 -1
- package/cjs/core/utils/shallow-equal/shallow-equal.cjs +19 -0
- package/cjs/core/utils/shallow-equal/shallow-equal.cjs.map +1 -0
- package/cjs/index.cjs +42 -2
- package/esm/components/ActionBar/ActionBar.mjs +0 -3
- package/esm/components/ActionBar/ActionBar.mjs.map +1 -1
- package/esm/components/ActionBar/ActionBar.module.mjs.map +1 -1
- package/esm/components/AppShell/AppShell.context.mjs.map +1 -1
- package/esm/components/AppShell/AppShell.mjs +35 -8
- package/esm/components/AppShell/AppShell.mjs.map +1 -1
- package/esm/components/AppShell/AppShell.module.mjs +2 -1
- package/esm/components/AppShell/AppShell.module.mjs.map +1 -1
- package/esm/components/AppShell/AppShellAside/AppShellAside.mjs +29 -8
- package/esm/components/AppShell/AppShellAside/AppShellAside.mjs.map +1 -1
- package/esm/components/AppShell/AppShellFooter/AppShellFooter.mjs +29 -8
- package/esm/components/AppShell/AppShellFooter/AppShellFooter.mjs.map +1 -1
- package/esm/components/AppShell/AppShellHeader/AppShellHeader.mjs +29 -8
- package/esm/components/AppShell/AppShellHeader/AppShellHeader.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.mjs +3 -2
- package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.mjs +27 -16
- package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.mjs +24 -16
- package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.mjs +24 -16
- package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.mjs +30 -19
- package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.mjs.map +1 -1
- package/esm/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.mjs +26 -0
- package/esm/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.mjs.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.mjs +10 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.mjs.map +1 -0
- package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.mjs +13 -5
- package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.mjs.map +1 -1
- package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.mjs +29 -8
- package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.mjs.map +1 -1
- package/esm/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.mjs +270 -0
- package/esm/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.mjs.map +1 -0
- package/esm/components/AppShell/use-app-shell-resize/clamp-resize-size.mjs +14 -0
- package/esm/components/AppShell/use-app-shell-resize/clamp-resize-size.mjs.map +1 -0
- package/esm/components/AppShell/use-app-shell-resize/resize-section-config.mjs +49 -0
- package/esm/components/AppShell/use-app-shell-resize/resize-section-config.mjs.map +1 -0
- package/esm/components/AppShell/use-app-shell-resize/safe-area-inset.mjs +12 -0
- package/esm/components/AppShell/use-app-shell-resize/safe-area-inset.mjs.map +1 -0
- package/esm/components/AppShell/use-app-shell-resize/use-app-shell-resize.mjs +127 -0
- package/esm/components/AppShell/use-app-shell-resize/use-app-shell-resize.mjs.map +1 -0
- package/esm/components/AppShell/use-resizing/use-resizing.mjs +21 -3
- package/esm/components/AppShell/use-resizing/use-resizing.mjs.map +1 -1
- package/esm/components/Checkbox/Checkbox.mjs +10 -2
- package/esm/components/Checkbox/Checkbox.mjs.map +1 -1
- package/esm/components/Checkbox/Checkbox.module.mjs +1 -0
- package/esm/components/Checkbox/Checkbox.module.mjs.map +1 -1
- package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.mjs +10 -2
- package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.mjs.map +1 -1
- package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.mjs +1 -0
- package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.mjs.map +1 -1
- package/esm/components/ComboboxPopover/ComboboxPopover.mjs.map +1 -1
- package/esm/components/Dialog/Dialog.mjs +0 -1
- package/esm/components/Dialog/Dialog.mjs.map +1 -1
- package/esm/components/Dialog/Dialog.module.mjs.map +1 -1
- package/esm/components/HoverCard/HoverCard.context.mjs.map +1 -1
- package/esm/components/HoverCard/HoverCard.mjs +34 -5
- package/esm/components/HoverCard/HoverCard.mjs.map +1 -1
- package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.mjs +13 -18
- package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.mjs.map +1 -1
- package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs +7 -24
- package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs.map +1 -1
- package/esm/components/HoverCard/use-hover-card.mjs +27 -13
- package/esm/components/HoverCard/use-hover-card.mjs.map +1 -1
- package/esm/components/Input/InputWrapper/InputWrapper.mjs +1 -1
- package/esm/components/Input/InputWrapper/InputWrapper.mjs.map +1 -1
- package/esm/components/Marquee/Marquee.mjs.map +1 -1
- package/esm/components/Marquee/Marquee.module.mjs.map +1 -1
- package/esm/components/PasswordInput/PasswordInput.mjs +12 -7
- package/esm/components/PasswordInput/PasswordInput.mjs.map +1 -1
- package/esm/components/PinInput/PinInput.mjs.map +1 -1
- package/esm/components/Portal/Portal.mjs +10 -1
- package/esm/components/Portal/Portal.mjs.map +1 -1
- package/esm/components/Radio/Radio.mjs +10 -2
- package/esm/components/Radio/Radio.mjs.map +1 -1
- package/esm/components/Radio/Radio.module.mjs +1 -0
- package/esm/components/Radio/Radio.module.mjs.map +1 -1
- package/esm/components/Radio/RadioIndicator/RadioIndicator.mjs +10 -2
- package/esm/components/Radio/RadioIndicator/RadioIndicator.mjs.map +1 -1
- package/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs +1 -0
- package/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs.map +1 -1
- package/esm/components/Rating/Rating.mjs +35 -12
- package/esm/components/Rating/Rating.mjs.map +1 -1
- package/esm/components/Select/Select.mjs +1 -1
- package/esm/components/Select/Select.mjs.map +1 -1
- package/esm/components/Slider/Thumb/Thumb.mjs +7 -2
- package/esm/components/Slider/Thumb/Thumb.mjs.map +1 -1
- package/esm/components/Table/Table.mjs +23 -10
- package/esm/components/Table/Table.mjs.map +1 -1
- package/esm/components/Toggle/Toggle.mjs +80 -0
- package/esm/components/Toggle/Toggle.mjs.map +1 -0
- package/esm/components/Toggle/Toggle.module.mjs +7 -0
- package/esm/components/Toggle/Toggle.module.mjs.map +1 -0
- package/esm/components/Toolbar/Toolbar.context.mjs +8 -0
- package/esm/components/Toolbar/Toolbar.context.mjs.map +1 -0
- package/esm/components/Toolbar/Toolbar.mjs +107 -0
- package/esm/components/Toolbar/Toolbar.mjs.map +1 -0
- package/esm/components/Toolbar/Toolbar.module.mjs +12 -0
- package/esm/components/Toolbar/Toolbar.module.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarDivider/ToolbarDivider.mjs +31 -0
- package/esm/components/Toolbar/ToolbarDivider/ToolbarDivider.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarGroup/ToolbarGroup.mjs +31 -0
- package/esm/components/Toolbar/ToolbarGroup/ToolbarGroup.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarToggle/ToolbarToggle.mjs +47 -0
- package/esm/components/Toolbar/ToolbarToggle/ToolbarToggle.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.mjs +8 -0
- package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.mjs +61 -0
- package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.mjs.map +1 -0
- package/esm/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.mjs +51 -0
- package/esm/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.mjs.map +1 -0
- package/esm/components/Toolbar/use-toolbar-navigation.mjs +76 -0
- package/esm/components/Toolbar/use-toolbar-navigation.mjs.map +1 -0
- package/esm/components/Tooltip/Tooltip.mjs +9 -5
- package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
- package/esm/components/Tooltip/use-tooltip.mjs +7 -4
- package/esm/components/Tooltip/use-tooltip.mjs.map +1 -1
- package/esm/components/Tour/Tour.context.mjs +22 -0
- package/esm/components/Tour/Tour.context.mjs.map +1 -0
- package/esm/components/Tour/Tour.mjs +283 -0
- package/esm/components/Tour/Tour.mjs.map +1 -0
- package/esm/components/Tour/Tour.module.mjs +19 -0
- package/esm/components/Tour/Tour.module.mjs.map +1 -0
- package/esm/components/Tour/TourBeacon/TourBeacon.mjs +54 -0
- package/esm/components/Tour/TourBeacon/TourBeacon.mjs.map +1 -0
- package/esm/components/Tour/TourBeaconPositioned.mjs +46 -0
- package/esm/components/Tour/TourBeaconPositioned.mjs.map +1 -0
- package/esm/components/Tour/TourBody/TourBody.mjs +37 -0
- package/esm/components/Tour/TourBody/TourBody.mjs.map +1 -0
- package/esm/components/Tour/TourCloseButton/TourCloseButton.mjs +26 -0
- package/esm/components/Tour/TourCloseButton/TourCloseButton.mjs.map +1 -0
- package/esm/components/Tour/TourNavigation/TourNavigation.mjs +63 -0
- package/esm/components/Tour/TourNavigation/TourNavigation.mjs.map +1 -0
- package/esm/components/Tour/TourOverlay/TourOverlay.mjs +70 -0
- package/esm/components/Tour/TourOverlay/TourOverlay.mjs.map +1 -0
- package/esm/components/Tour/TourRoot/TourRoot.mjs +125 -0
- package/esm/components/Tour/TourRoot/TourRoot.mjs.map +1 -0
- package/esm/components/Tour/TourStep/TourStep.mjs +10 -0
- package/esm/components/Tour/TourStep/TourStep.mjs.map +1 -0
- package/esm/components/Tour/TourTitle/TourTitle.mjs +38 -0
- package/esm/components/Tour/TourTitle/TourTitle.mjs.map +1 -0
- package/esm/components/Tour/TourTooltip/TourTooltip.mjs +87 -0
- package/esm/components/Tour/TourTooltip/TourTooltip.mjs.map +1 -0
- package/esm/components/Tour/get-overlay-hit-path.mjs +17 -0
- package/esm/components/Tour/get-overlay-hit-path.mjs.map +1 -0
- package/esm/components/Tour/is-element-in-view.mjs +30 -0
- package/esm/components/Tour/is-element-in-view.mjs.map +1 -0
- package/esm/components/Tour/press-aware-auto-update.mjs +38 -0
- package/esm/components/Tour/press-aware-auto-update.mjs.map +1 -0
- package/esm/components/Tour/use-target-rect.mjs +59 -0
- package/esm/components/Tour/use-target-rect.mjs.map +1 -0
- package/esm/components/Tour/use-tooltip-auto-focus.mjs +34 -0
- package/esm/components/Tour/use-tooltip-auto-focus.mjs.map +1 -0
- package/esm/components/Tour/use-tour-state.mjs +102 -0
- package/esm/components/Tour/use-tour-state.mjs.map +1 -0
- package/esm/components/Tour/use-tour.mjs +155 -0
- package/esm/components/Tour/use-tour.mjs.map +1 -0
- package/esm/components/TreeSelect/TreeSelect.mjs +30 -17
- package/esm/components/TreeSelect/TreeSelect.mjs.map +1 -1
- package/esm/core/Box/Box.mjs +2 -2
- package/esm/core/Box/Box.mjs.map +1 -1
- package/esm/core/Box/style-props/style-props-data.mjs +2 -2
- package/esm/core/Box/style-props/style-props-data.mjs.map +1 -1
- package/esm/core/styles-api/use-styles/use-styles.mjs +32 -2
- package/esm/core/styles-api/use-styles/use-styles.mjs.map +1 -1
- package/esm/core/utils/shallow-equal/shallow-equal.mjs +19 -0
- package/esm/core/utils/shallow-equal/shallow-equal.mjs.map +1 -0
- package/esm/index.mjs +22 -3
- package/lib/components/ActionBar/ActionBar.d.ts +1 -1
- package/lib/components/AppShell/AppShell.context.d.ts +4 -0
- package/lib/components/AppShell/AppShell.d.ts +5 -3
- package/lib/components/AppShell/AppShell.types.d.ts +70 -0
- package/lib/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.d.ts +6 -1
- package/lib/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.d.ts +3 -1
- package/lib/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.d.ts +3 -1
- package/lib/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.d.ts +3 -1
- package/lib/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.d.ts +3 -1
- package/lib/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.d.ts +2 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.d.ts +1 -0
- package/lib/components/AppShell/AppShellMediaStyles/get-variables/get-variables.d.ts +6 -1
- package/lib/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.d.ts +10 -0
- package/lib/components/AppShell/index.d.ts +3 -2
- package/lib/components/AppShell/use-app-shell-resize/clamp-resize-size.d.ts +9 -0
- package/lib/components/AppShell/use-app-shell-resize/resize-section-config.d.ts +29 -0
- package/lib/components/AppShell/use-app-shell-resize/safe-area-inset.d.ts +1 -0
- package/lib/components/AppShell/use-app-shell-resize/use-app-shell-resize.d.ts +2 -0
- package/lib/components/AppShell/use-resizing/use-resizing.d.ts +2 -1
- package/lib/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +2 -2
- package/lib/components/Combobox/Combobox.types.d.ts +1 -1
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +1 -1
- package/lib/components/HoverCard/HoverCard.context.d.ts +8 -4
- package/lib/components/HoverCard/HoverCard.d.ts +41 -0
- package/lib/components/HoverCard/index.d.ts +1 -1
- package/lib/components/HoverCard/use-hover-card.d.ts +11 -0
- package/lib/components/Marquee/Marquee.d.ts +1 -1
- package/lib/components/PinInput/PinInput.d.ts +1 -1
- package/lib/components/Radio/Radio.d.ts +2 -2
- package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +2 -2
- package/lib/components/Slider/Thumb/Thumb.d.ts +1 -1
- package/lib/components/Toggle/Toggle.d.ts +73 -0
- package/lib/components/Toggle/index.d.ts +7 -0
- package/lib/components/Toolbar/Toolbar.context.d.ts +7 -0
- package/lib/components/Toolbar/Toolbar.d.ts +58 -0
- package/lib/components/Toolbar/ToolbarDivider/ToolbarDivider.d.ts +16 -0
- package/lib/components/Toolbar/ToolbarGroup/ToolbarGroup.d.ts +16 -0
- package/lib/components/Toolbar/ToolbarToggle/ToolbarToggle.d.ts +44 -0
- package/lib/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.d.ts +7 -0
- package/lib/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.d.ts +42 -0
- package/lib/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.d.ts +22 -0
- package/lib/components/Toolbar/index.d.ts +32 -0
- package/lib/components/Toolbar/use-toolbar-navigation.d.ts +11 -0
- package/lib/components/Tooltip/Tooltip.d.ts +3 -1
- package/lib/components/Tooltip/use-tooltip.d.ts +2 -0
- package/lib/components/Tour/Tour.context.d.ts +66 -0
- package/lib/components/Tour/Tour.d.ts +144 -0
- package/lib/components/Tour/TourBeacon/TourBeacon.d.ts +23 -0
- package/lib/components/Tour/TourBeaconPositioned.d.ts +13 -0
- package/lib/components/Tour/TourBody/TourBody.d.ts +19 -0
- package/lib/components/Tour/TourCloseButton/TourCloseButton.d.ts +12 -0
- package/lib/components/Tour/TourNavigation/TourNavigation.d.ts +11 -0
- package/lib/components/Tour/TourOverlay/TourOverlay.d.ts +22 -0
- package/lib/components/Tour/TourRoot/TourRoot.d.ts +72 -0
- package/lib/components/Tour/TourStep/TourStep.d.ts +30 -0
- package/lib/components/Tour/TourTitle/TourTitle.d.ts +19 -0
- package/lib/components/Tour/TourTooltip/TourTooltip.d.ts +29 -0
- package/lib/components/Tour/get-overlay-hit-path.d.ts +2 -0
- package/lib/components/Tour/index.d.ts +23 -0
- package/lib/components/Tour/is-element-in-view.d.ts +1 -0
- package/lib/components/Tour/press-aware-auto-update.d.ts +2 -0
- package/lib/components/Tour/use-target-rect.d.ts +13 -0
- package/lib/components/Tour/use-tooltip-auto-focus.d.ts +7 -0
- package/lib/components/Tour/use-tour-state.d.ts +23 -0
- package/lib/components/Tour/use-tour.d.ts +40 -0
- package/lib/components/TreeSelect/TreeSelect.d.ts +14 -0
- package/lib/components/TreeSelect/index.d.ts +2 -2
- package/lib/components/index.d.ts +3 -0
- package/lib/core/Box/style-props/index.d.ts +1 -1
- package/lib/core/Box/style-props/style-props-data.d.ts +1 -1
- package/lib/core/styles-api/use-styles/use-styles.d.ts +2 -1
- package/lib/core/utils/shallow-equal/shallow-equal.d.ts +1 -0
- package/package.json +5 -5
- package/styles/ActionBar.css +1 -0
- package/styles/ActionBar.layer.css +1 -0
- package/styles/AppShell.css +68 -0
- package/styles/AppShell.layer.css +68 -0
- package/styles/Checkbox.css +20 -0
- package/styles/Checkbox.layer.css +20 -0
- package/styles/CheckboxIndicator.css +16 -0
- package/styles/CheckboxIndicator.layer.css +16 -0
- package/styles/Dialog.css +1 -0
- package/styles/Dialog.layer.css +1 -0
- package/styles/Marquee.css +1 -1
- package/styles/Marquee.layer.css +1 -1
- package/styles/Radio.css +10 -0
- package/styles/Radio.layer.css +10 -0
- package/styles/RadioIndicator.css +11 -0
- package/styles/RadioIndicator.layer.css +11 -0
- package/styles/Toggle.css +98 -0
- package/styles/Toggle.layer.css +99 -0
- package/styles/Toolbar.css +220 -0
- package/styles/Toolbar.layer.css +221 -0
- package/styles/Tour.css +127 -0
- package/styles/Tour.layer.css +128 -0
- package/styles.css +576 -1
- package/styles.layer.css +576 -1
|
@@ -3,27 +3,48 @@ import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs"
|
|
|
3
3
|
import { factory } from "../../../core/factory/factory.mjs";
|
|
4
4
|
import { Box } from "../../../core/Box/Box.mjs";
|
|
5
5
|
import { useAppShellContext } from "../AppShell.context.mjs";
|
|
6
|
+
import { AppShellResizeHandle } from "../AppShellResizeHandle/AppShellResizeHandle.mjs";
|
|
6
7
|
import AppShell_module_default from "../AppShell.module.mjs";
|
|
7
8
|
import { RemoveScroll } from "react-remove-scroll";
|
|
9
|
+
import { useId } from "@mantine/hooks";
|
|
8
10
|
import cx from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
12
|
//#region packages/@mantine/core/src/components/AppShell/AppShellFooter/AppShellFooter.tsx
|
|
11
13
|
const AppShellFooter = factory((_props) => {
|
|
12
14
|
const { classNames, className, style, styles, unstyled, vars, withBorder, zIndex, mod, ...others } = useProps("AppShellFooter", null, _props);
|
|
13
15
|
const ctx = useAppShellContext();
|
|
16
|
+
const sectionId = useId(others.id);
|
|
14
17
|
if (ctx.disabled) return null;
|
|
15
|
-
|
|
18
|
+
const isResizable = ctx.resize?.footer.enabled ?? false;
|
|
19
|
+
const boxProps = ctx.getStyles("footer", {
|
|
20
|
+
className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
|
|
21
|
+
classNames,
|
|
22
|
+
styles,
|
|
23
|
+
style
|
|
24
|
+
});
|
|
25
|
+
if (!isResizable) return /* @__PURE__ */ jsx(Box, {
|
|
16
26
|
component: "footer",
|
|
17
27
|
mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
|
|
18
|
-
...
|
|
19
|
-
className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
|
|
20
|
-
classNames,
|
|
21
|
-
styles,
|
|
22
|
-
style
|
|
23
|
-
}),
|
|
28
|
+
...boxProps,
|
|
24
29
|
...others,
|
|
25
30
|
__vars: { "--app-shell-footer-z-index": (zIndex ?? ctx.zIndex)?.toString() }
|
|
26
31
|
});
|
|
32
|
+
const { children, dangerouslySetInnerHTML, ...rest } = others;
|
|
33
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
34
|
+
component: "footer",
|
|
35
|
+
mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
|
|
36
|
+
...boxProps,
|
|
37
|
+
...rest,
|
|
38
|
+
__vars: { "--app-shell-footer-z-index": (zIndex ?? ctx.zIndex)?.toString() },
|
|
39
|
+
id: sectionId,
|
|
40
|
+
children: [dangerouslySetInnerHTML ? /* @__PURE__ */ jsx("div", {
|
|
41
|
+
style: { display: "contents" },
|
|
42
|
+
dangerouslySetInnerHTML
|
|
43
|
+
}) : children, /* @__PURE__ */ jsx(AppShellResizeHandle, {
|
|
44
|
+
section: "footer",
|
|
45
|
+
sectionId
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
27
48
|
});
|
|
28
49
|
AppShellFooter.classes = AppShell_module_default;
|
|
29
50
|
AppShellFooter.displayName = "@mantine/core/AppShellFooter";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellFooter.mjs","names":["classes"],"sources":["../../../../src/components/AppShell/AppShellFooter/AppShellFooter.tsx"],"sourcesContent":["import cx from 'clsx';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport { AppShellCompoundProps } from '../AppShell.types';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellFooterStylesNames = 'footer';\n\nexport interface AppShellFooterProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellFooterFactory>,\n ElementProps<'footer'> {}\n\nexport type AppShellFooterFactory = Factory<{\n props: AppShellFooterProps;\n ref: HTMLElement;\n stylesNames: AppShellFooterStylesNames;\n}>;\n\nexport const AppShellFooter = factory<AppShellFooterFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellFooter', null, _props);\n\n const ctx = useAppShellContext();\n\n if (ctx.disabled) {\n return null;\n }\n\n return (\n
|
|
1
|
+
{"version":3,"file":"AppShellFooter.mjs","names":["classes"],"sources":["../../../../src/components/AppShell/AppShellFooter/AppShellFooter.tsx"],"sourcesContent":["import cx from 'clsx';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { useId } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport { AppShellCompoundProps } from '../AppShell.types';\nimport { AppShellResizeHandle } from '../AppShellResizeHandle/AppShellResizeHandle';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellFooterStylesNames = 'footer';\n\nexport interface AppShellFooterProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellFooterFactory>,\n ElementProps<'footer'> {}\n\nexport type AppShellFooterFactory = Factory<{\n props: AppShellFooterProps;\n ref: HTMLElement;\n stylesNames: AppShellFooterStylesNames;\n}>;\n\nexport const AppShellFooter = factory<AppShellFooterFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellFooter', null, _props);\n\n const ctx = useAppShellContext();\n const sectionId = useId(others.id);\n\n if (ctx.disabled) {\n return null;\n }\n\n const isResizable = ctx.resize?.footer.enabled ?? false;\n const boxProps = ctx.getStyles('footer', {\n className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),\n classNames,\n styles,\n style,\n });\n\n if (!isResizable) {\n return (\n <Box\n component=\"footer\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...others}\n __vars={{ '--app-shell-footer-z-index': (zIndex ?? ctx.zIndex)?.toString() }}\n />\n );\n }\n\n const { children, dangerouslySetInnerHTML, ...rest } = others;\n\n return (\n <Box\n component=\"footer\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...rest}\n __vars={{ '--app-shell-footer-z-index': (zIndex ?? ctx.zIndex)?.toString() }}\n id={sectionId}\n >\n {dangerouslySetInnerHTML ? (\n <div style={{ display: 'contents' }} dangerouslySetInnerHTML={dangerouslySetInnerHTML} />\n ) : (\n children\n )}\n <AppShellResizeHandle section=\"footer\" sectionId={sectionId} />\n </Box>\n );\n});\n\nAppShellFooter.classes = classes;\nAppShellFooter.displayName = '@mantine/core/AppShellFooter';\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAa,iBAAiB,SAAgC,WAAW;CACvE,MAAM,EACJ,YACA,WACA,OACA,QACA,UACA,MACA,YACA,QACA,KACA,GAAG,WACD,SAAS,kBAAkB,MAAM,MAAM;CAE3C,MAAM,MAAM,mBAAmB;CAC/B,MAAM,YAAY,MAAM,OAAO,EAAE;CAEjC,IAAI,IAAI,UACN,OAAO;CAGT,MAAM,cAAc,IAAI,QAAQ,OAAO,WAAW;CAClD,MAAM,WAAW,IAAI,UAAU,UAAU;EACvC,WAAW,GAAG,GAAG,aAAa,WAAW,YAAY,IAAI,iBAAiB,GAAG,SAAS;EACtF;EACA;EACA;CACF,CAAC;CAED,IAAI,CAAC,aACH,OACE,oBAAC,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,+BAA+B,UAAU,IAAI,OAAA,EAAS,SAAS,EAAE;CAC5E,CAAA;CAIL,MAAM,EAAE,UAAU,yBAAyB,GAAG,SAAS;CAEvD,OACE,qBAAC,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,+BAA+B,UAAU,IAAI,OAAA,EAAS,SAAS,EAAE;EAC3E,IAAI;EANN,UAAA,CAQG,0BACC,oBAAC,OAAD;GAAK,OAAO,EAAE,SAAS,WAAW;GAA4B;EAA0B,CAAA,IAExF,UAEF,oBAAC,sBAAD;GAAsB,SAAQ;GAAoB;EAAY,CAAA,CAC3D;;AAET,CAAC;AAED,eAAe,UAAUA;AACzB,eAAe,cAAc"}
|
|
@@ -3,27 +3,48 @@ import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs"
|
|
|
3
3
|
import { factory } from "../../../core/factory/factory.mjs";
|
|
4
4
|
import { Box } from "../../../core/Box/Box.mjs";
|
|
5
5
|
import { useAppShellContext } from "../AppShell.context.mjs";
|
|
6
|
+
import { AppShellResizeHandle } from "../AppShellResizeHandle/AppShellResizeHandle.mjs";
|
|
6
7
|
import AppShell_module_default from "../AppShell.module.mjs";
|
|
7
8
|
import { RemoveScroll } from "react-remove-scroll";
|
|
9
|
+
import { useId } from "@mantine/hooks";
|
|
8
10
|
import cx from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
12
|
//#region packages/@mantine/core/src/components/AppShell/AppShellHeader/AppShellHeader.tsx
|
|
11
13
|
const AppShellHeader = factory((_props) => {
|
|
12
14
|
const { classNames, className, style, styles, unstyled, vars, withBorder, zIndex, mod, ...others } = useProps("AppShellHeader", null, _props);
|
|
13
15
|
const ctx = useAppShellContext();
|
|
16
|
+
const sectionId = useId(others.id);
|
|
14
17
|
if (ctx.disabled) return null;
|
|
15
|
-
|
|
18
|
+
const isResizable = ctx.resize?.header.enabled ?? false;
|
|
19
|
+
const boxProps = ctx.getStyles("header", {
|
|
20
|
+
className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
|
|
21
|
+
classNames,
|
|
22
|
+
styles,
|
|
23
|
+
style
|
|
24
|
+
});
|
|
25
|
+
if (!isResizable) return /* @__PURE__ */ jsx(Box, {
|
|
16
26
|
component: "header",
|
|
17
27
|
mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
|
|
18
|
-
...
|
|
19
|
-
className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
|
|
20
|
-
classNames,
|
|
21
|
-
styles,
|
|
22
|
-
style
|
|
23
|
-
}),
|
|
28
|
+
...boxProps,
|
|
24
29
|
...others,
|
|
25
30
|
__vars: { "--app-shell-header-z-index": (zIndex ?? ctx.zIndex)?.toString() }
|
|
26
31
|
});
|
|
32
|
+
const { children, dangerouslySetInnerHTML, ...rest } = others;
|
|
33
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
34
|
+
component: "header",
|
|
35
|
+
mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
|
|
36
|
+
...boxProps,
|
|
37
|
+
...rest,
|
|
38
|
+
__vars: { "--app-shell-header-z-index": (zIndex ?? ctx.zIndex)?.toString() },
|
|
39
|
+
id: sectionId,
|
|
40
|
+
children: [dangerouslySetInnerHTML ? /* @__PURE__ */ jsx("div", {
|
|
41
|
+
style: { display: "contents" },
|
|
42
|
+
dangerouslySetInnerHTML
|
|
43
|
+
}) : children, /* @__PURE__ */ jsx(AppShellResizeHandle, {
|
|
44
|
+
section: "header",
|
|
45
|
+
sectionId
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
27
48
|
});
|
|
28
49
|
AppShellHeader.classes = AppShell_module_default;
|
|
29
50
|
AppShellHeader.displayName = "@mantine/core/AppShellHeader";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellHeader.mjs","names":["classes"],"sources":["../../../../src/components/AppShell/AppShellHeader/AppShellHeader.tsx"],"sourcesContent":["import cx from 'clsx';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport type { AppShellCompoundProps } from '../AppShell.types';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellHeaderStylesNames = 'header';\n\nexport interface AppShellHeaderProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellHeaderFactory>,\n ElementProps<'header'> {}\n\nexport type AppShellHeaderFactory = Factory<{\n props: AppShellHeaderProps;\n ref: HTMLElement;\n stylesNames: AppShellHeaderStylesNames;\n}>;\n\nexport const AppShellHeader = factory<AppShellHeaderFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellHeader', null, _props);\n\n const ctx = useAppShellContext();\n\n if (ctx.disabled) {\n return null;\n }\n\n return (\n
|
|
1
|
+
{"version":3,"file":"AppShellHeader.mjs","names":["classes"],"sources":["../../../../src/components/AppShell/AppShellHeader/AppShellHeader.tsx"],"sourcesContent":["import cx from 'clsx';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { useId } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport type { AppShellCompoundProps } from '../AppShell.types';\nimport { AppShellResizeHandle } from '../AppShellResizeHandle/AppShellResizeHandle';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellHeaderStylesNames = 'header';\n\nexport interface AppShellHeaderProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellHeaderFactory>,\n ElementProps<'header'> {}\n\nexport type AppShellHeaderFactory = Factory<{\n props: AppShellHeaderProps;\n ref: HTMLElement;\n stylesNames: AppShellHeaderStylesNames;\n}>;\n\nexport const AppShellHeader = factory<AppShellHeaderFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellHeader', null, _props);\n\n const ctx = useAppShellContext();\n const sectionId = useId(others.id);\n\n if (ctx.disabled) {\n return null;\n }\n\n const isResizable = ctx.resize?.header.enabled ?? false;\n const boxProps = ctx.getStyles('header', {\n className: cx({ [RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),\n classNames,\n styles,\n style,\n });\n\n if (!isResizable) {\n return (\n <Box\n component=\"header\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...others}\n __vars={{ '--app-shell-header-z-index': (zIndex ?? ctx.zIndex)?.toString() }}\n />\n );\n }\n\n const { children, dangerouslySetInnerHTML, ...rest } = others;\n\n return (\n <Box\n component=\"header\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...rest}\n __vars={{ '--app-shell-header-z-index': (zIndex ?? ctx.zIndex)?.toString() }}\n id={sectionId}\n >\n {dangerouslySetInnerHTML ? (\n <div style={{ display: 'contents' }} dangerouslySetInnerHTML={dangerouslySetInnerHTML} />\n ) : (\n children\n )}\n <AppShellResizeHandle section=\"header\" sectionId={sectionId} />\n </Box>\n );\n});\n\nAppShellHeader.classes = classes;\nAppShellHeader.displayName = '@mantine/core/AppShellHeader';\n"],"mappings":";;;;;;;;;;;;AAgCA,MAAa,iBAAiB,SAAgC,WAAW;CACvE,MAAM,EACJ,YACA,WACA,OACA,QACA,UACA,MACA,YACA,QACA,KACA,GAAG,WACD,SAAS,kBAAkB,MAAM,MAAM;CAE3C,MAAM,MAAM,mBAAmB;CAC/B,MAAM,YAAY,MAAM,OAAO,EAAE;CAEjC,IAAI,IAAI,UACN,OAAO;CAGT,MAAM,cAAc,IAAI,QAAQ,OAAO,WAAW;CAClD,MAAM,WAAW,IAAI,UAAU,UAAU;EACvC,WAAW,GAAG,GAAG,aAAa,WAAW,YAAY,IAAI,iBAAiB,GAAG,SAAS;EACtF;EACA;EACA;CACF,CAAC;CAED,IAAI,CAAC,aACH,OACE,oBAAC,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,+BAA+B,UAAU,IAAI,OAAA,EAAS,SAAS,EAAE;CAC5E,CAAA;CAIL,MAAM,EAAE,UAAU,yBAAyB,GAAG,SAAS;CAEvD,OACE,qBAAC,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,+BAA+B,UAAU,IAAI,OAAA,EAAS,SAAS,EAAE;EAC3E,IAAI;EANN,UAAA,CAQG,0BACC,oBAAC,OAAD;GAAK,OAAO,EAAE,SAAS,WAAW;GAA4B;EAA0B,CAAA,IAExF,UAEF,oBAAC,sBAAD;GAAsB,SAAQ;GAAoB;EAAY,CAAA,CAC3D;;AAET,CAAC;AAED,eAAe,UAAUA;AACzB,eAAe,cAAc"}
|
|
@@ -5,7 +5,7 @@ import { InlineStyles } from "../../../core/InlineStyles/InlineStyles.mjs";
|
|
|
5
5
|
import { getVariables } from "./get-variables/get-variables.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.tsx
|
|
8
|
-
function AppShellMediaStyles({ navbar, header, aside, footer, padding, mode, selector }) {
|
|
8
|
+
function AppShellMediaStyles({ navbar, header, aside, footer, padding, mode, selector, resize }) {
|
|
9
9
|
const theme = useMantineTheme();
|
|
10
10
|
const ctx = useMantineContext();
|
|
11
11
|
const { media, baseStyles } = getVariables({
|
|
@@ -15,7 +15,8 @@ function AppShellMediaStyles({ navbar, header, aside, footer, padding, mode, sel
|
|
|
15
15
|
aside,
|
|
16
16
|
padding,
|
|
17
17
|
theme,
|
|
18
|
-
mode
|
|
18
|
+
mode,
|
|
19
|
+
resize
|
|
19
20
|
});
|
|
20
21
|
return /* @__PURE__ */ jsx(InlineStyles, {
|
|
21
22
|
media,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellMediaStyles.mjs","names":[],"sources":["../../../../src/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.tsx"],"sourcesContent":["import { InlineStyles, useMantineContext, useMantineTheme } from '../../../core';\nimport type { AppShellProps } from '../AppShell';\nimport { getVariables } from './get-variables/get-variables';\n\ninterface AppShellMediaStylesProps {\n navbar: AppShellProps['navbar'] | undefined;\n header: AppShellProps['header'] | undefined;\n aside: AppShellProps['aside'] | undefined;\n footer: AppShellProps['footer'] | undefined;\n padding: AppShellProps['padding'] | undefined;\n mode: 'fixed' | 'static';\n selector?: string;\n}\n\nexport function AppShellMediaStyles({\n navbar,\n header,\n aside,\n footer,\n padding,\n mode,\n selector,\n}: AppShellMediaStylesProps) {\n const theme = useMantineTheme();\n const ctx = useMantineContext();\n const { media, baseStyles } = getVariables({\n navbar,\n header,\n footer,\n aside,\n padding,\n theme,\n mode,\n });\n return (\n <InlineStyles\n media={media}\n styles={baseStyles}\n selector={selector || ctx.cssVariablesSelector}\n />\n );\n}\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"AppShellMediaStyles.mjs","names":[],"sources":["../../../../src/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.tsx"],"sourcesContent":["import { InlineStyles, useMantineContext, useMantineTheme } from '../../../core';\nimport type { AppShellProps } from '../AppShell';\nimport type { AppShellResizeSection, AppShellResizeSizes } from '../AppShell.types';\nimport { getVariables } from './get-variables/get-variables';\n\ninterface AppShellMediaStylesProps {\n navbar: AppShellProps['navbar'] | undefined;\n header: AppShellProps['header'] | undefined;\n aside: AppShellProps['aside'] | undefined;\n footer: AppShellProps['footer'] | undefined;\n padding: AppShellProps['padding'] | undefined;\n mode: 'fixed' | 'static';\n selector?: string;\n resize?: { sizes: AppShellResizeSizes; enabled: Partial<Record<AppShellResizeSection, boolean>> };\n}\n\nexport function AppShellMediaStyles({\n navbar,\n header,\n aside,\n footer,\n padding,\n mode,\n selector,\n resize,\n}: AppShellMediaStylesProps) {\n const theme = useMantineTheme();\n const ctx = useMantineContext();\n const { media, baseStyles } = getVariables({\n navbar,\n header,\n footer,\n aside,\n padding,\n theme,\n mode,\n resize,\n });\n return (\n <InlineStyles\n media={media}\n styles={baseStyles}\n selector={selector || ctx.cssVariablesSelector}\n />\n );\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,oBAAoB,EAClC,QACA,QACA,OACA,QACA,SACA,MACA,UACA,UAC2B;CAC3B,MAAM,QAAQ,gBAAgB;CAC9B,MAAM,MAAM,kBAAkB;CAC9B,MAAM,EAAE,OAAO,eAAe,aAAa;EACzC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,OACE,oBAAC,cAAD;EACS;EACP,QAAQ;EACR,UAAU,YAAY,IAAI;CAC3B,CAAA;AAEL"}
|
|
@@ -3,10 +3,11 @@ import { keys } from "../../../../core/utils/keys/keys.mjs";
|
|
|
3
3
|
import { rem } from "../../../../core/utils/units-converters/rem.mjs";
|
|
4
4
|
import { getBreakpointValue } from "../../../../core/utils/get-breakpoint-value/get-breakpoint-value.mjs";
|
|
5
5
|
import { getBaseSize } from "../get-base-size/get-base-size.mjs";
|
|
6
|
+
import { getResizedValue } from "../get-resized-value/get-resized-value.mjs";
|
|
6
7
|
import { isPrimitiveSize } from "../is-primitive-size/is-primitive-size.mjs";
|
|
7
8
|
import { isResponsiveSize } from "../is-responsive-size/is-responsive-size.mjs";
|
|
8
9
|
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.ts
|
|
9
|
-
function assignAsideVariables({ baseStyles, minMediaStyles, maxMediaStyles, aside, theme, mode }) {
|
|
10
|
+
function assignAsideVariables({ baseStyles, minMediaStyles, maxMediaStyles, aside, theme, mode, resizedSize, resizable }) {
|
|
10
11
|
const asideWidth = aside?.width;
|
|
11
12
|
const collapsedAsideTransform = "translateX(var(--app-shell-aside-width))";
|
|
12
13
|
const collapsedAsideTransformRtl = "translateX(calc(var(--app-shell-aside-width) * -1))";
|
|
@@ -19,24 +20,32 @@ function assignAsideVariables({ baseStyles, minMediaStyles, maxMediaStyles, asid
|
|
|
19
20
|
maxMediaStyles[aside?.breakpoint]["--app-shell-aside-width"] = "0px";
|
|
20
21
|
maxMediaStyles[aside?.breakpoint]["--app-shell-aside-offset"] = "0px";
|
|
21
22
|
}
|
|
23
|
+
if (resizable) maxMediaStyles[aside.breakpoint]["--app-shell-aside-resize-handle-display"] = "none";
|
|
22
24
|
}
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
baseStyles["--app-shell-aside-width"] =
|
|
26
|
-
baseStyles["--app-shell-aside-offset"] =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
baseStyles["--app-shell-aside-
|
|
25
|
+
if (resizedSize !== void 0) {
|
|
26
|
+
const resizedValue = getResizedValue(resizedSize, "horizontal");
|
|
27
|
+
baseStyles["--app-shell-aside-width"] = resizedValue;
|
|
28
|
+
baseStyles["--app-shell-aside-offset"] = resizedValue;
|
|
29
|
+
if (mode === "static") baseStyles["--app-shell-aside-grid-width"] = resizedValue;
|
|
30
|
+
} else {
|
|
31
|
+
if (isPrimitiveSize(asideWidth)) {
|
|
32
|
+
const baseSize = rem(getBaseSize(asideWidth));
|
|
33
|
+
baseStyles["--app-shell-aside-width"] = baseSize;
|
|
34
|
+
baseStyles["--app-shell-aside-offset"] = baseSize;
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
minMediaStyles[key]["--app-shell-aside-offset"] = rem(asideWidth[key]);
|
|
36
|
+
if (isResponsiveSize(asideWidth)) {
|
|
37
|
+
if (typeof asideWidth.base !== "undefined") {
|
|
38
|
+
baseStyles["--app-shell-aside-width"] = rem(asideWidth.base);
|
|
39
|
+
baseStyles["--app-shell-aside-offset"] = rem(asideWidth.base);
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
keys(asideWidth).forEach((key) => {
|
|
42
|
+
if (key !== "base") {
|
|
43
|
+
minMediaStyles[key] = minMediaStyles[key] || {};
|
|
44
|
+
minMediaStyles[key]["--app-shell-aside-width"] = rem(asideWidth[key]);
|
|
45
|
+
minMediaStyles[key]["--app-shell-aside-offset"] = rem(asideWidth[key]);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
40
49
|
}
|
|
41
50
|
if (aside?.breakpoint !== void 0 && mode === "static") {
|
|
42
51
|
minMediaStyles[aside.breakpoint] = minMediaStyles[aside.breakpoint] || {};
|
|
@@ -57,6 +66,7 @@ function assignAsideVariables({ baseStyles, minMediaStyles, maxMediaStyles, asid
|
|
|
57
66
|
minMediaStyles[breakpointValue]["--app-shell-main-column-end"] = "-1";
|
|
58
67
|
}
|
|
59
68
|
minMediaStyles[breakpointValue]["--app-shell-aside-scroll-locked-visibility"] = "hidden";
|
|
69
|
+
if (resizable) minMediaStyles[breakpointValue]["--app-shell-aside-resize-handle-display"] = "none";
|
|
60
70
|
}
|
|
61
71
|
if (aside?.collapsed?.mobile) {
|
|
62
72
|
const breakpointValue = getBreakpointValue(aside.breakpoint, theme.breakpoints) - .1;
|
|
@@ -68,6 +78,7 @@ function assignAsideVariables({ baseStyles, minMediaStyles, maxMediaStyles, asid
|
|
|
68
78
|
maxMediaStyles[breakpointValue]["--app-shell-aside-transform"] = collapsedAsideTransform;
|
|
69
79
|
maxMediaStyles[breakpointValue]["--app-shell-aside-transform-rtl"] = collapsedAsideTransformRtl;
|
|
70
80
|
maxMediaStyles[breakpointValue]["--app-shell-aside-scroll-locked-visibility"] = "hidden";
|
|
81
|
+
if (resizable) maxMediaStyles[breakpointValue]["--app-shell-aside-resize-handle-display"] = "none";
|
|
71
82
|
}
|
|
72
83
|
}
|
|
73
84
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-aside-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignAsideVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n aside: AppShellProps['aside'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n}\n\nexport function assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n}: AssignAsideVariablesInput) {\n const asideWidth = aside?.width;\n const collapsedAsideTransform = 'translateX(var(--app-shell-aside-width))';\n const collapsedAsideTransformRtl = 'translateX(calc(var(--app-shell-aside-width) * -1))';\n\n if (aside?.breakpoint !== undefined && !aside?.collapsed?.mobile) {\n maxMediaStyles[aside?.breakpoint] = maxMediaStyles[aside?.breakpoint] || {};\n if (mode === 'fixed') {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '0px';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n }\n }\n\n if (isPrimitiveSize(asideWidth)) {\n
|
|
1
|
+
{"version":3,"file":"assign-aside-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignAsideVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n aside: AppShellProps['aside'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n resizedSize,\n resizable,\n}: AssignAsideVariablesInput) {\n const asideWidth = aside?.width;\n const collapsedAsideTransform = 'translateX(var(--app-shell-aside-width))';\n const collapsedAsideTransformRtl = 'translateX(calc(var(--app-shell-aside-width) * -1))';\n\n if (aside?.breakpoint !== undefined && !aside?.collapsed?.mobile) {\n maxMediaStyles[aside?.breakpoint] = maxMediaStyles[aside?.breakpoint] || {};\n if (mode === 'fixed') {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '0px';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n }\n if (resizable) {\n maxMediaStyles[aside.breakpoint]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'horizontal');\n baseStyles['--app-shell-aside-width'] = resizedValue;\n baseStyles['--app-shell-aside-offset'] = resizedValue;\n if (mode === 'static') {\n baseStyles['--app-shell-aside-grid-width'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(asideWidth)) {\n const baseSize = rem(getBaseSize(asideWidth));\n baseStyles['--app-shell-aside-width'] = baseSize;\n baseStyles['--app-shell-aside-offset'] = baseSize;\n }\n\n if (isResponsiveSize(asideWidth)) {\n if (typeof asideWidth.base !== 'undefined') {\n baseStyles['--app-shell-aside-width'] = rem(asideWidth.base);\n baseStyles['--app-shell-aside-offset'] = rem(asideWidth.base);\n }\n\n keys(asideWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-aside-width'] = rem(asideWidth![key]);\n minMediaStyles[key]['--app-shell-aside-offset'] = rem(asideWidth![key]);\n }\n });\n }\n }\n\n if (aside?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[aside.breakpoint] = minMediaStyles[aside.breakpoint] || {};\n minMediaStyles[aside.breakpoint]['--app-shell-aside-position'] = 'sticky';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-row'] = '2';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-column'] = '3';\n // Adjust main column end when aside is visible\n minMediaStyles[aside.breakpoint]['--app-shell-main-column-end'] = '3';\n }\n\n if (aside?.collapsed?.desktop) {\n const breakpointValue = aside!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n minMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px !important';\n } else {\n minMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-aside-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-end'] = '-1';\n }\n minMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n if (resizable) {\n minMediaStyles[breakpointValue]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n\n if (aside?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(aside!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n if (mode === 'fixed') {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n maxMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n if (resizable) {\n maxMediaStyles[breakpointValue]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,qBAAqB,EACnC,YACA,gBACA,gBACA,OACA,OACA,MACA,aACA,aAC4B;CAC5B,MAAM,aAAa,OAAO;CAC1B,MAAM,0BAA0B;CAChC,MAAM,6BAA6B;CAEnC,IAAI,OAAO,eAAe,KAAA,KAAa,CAAC,OAAO,WAAW,QAAQ;EAChE,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,IAAI,SAAS,SAAS;GACpB,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE,OAAO;GACL,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE;EACA,IAAI,WACF,eAAe,MAAM,WAAW,CAAC,6CAA6C;CAElF;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAe,gBAAgB,aAAa,YAAY;EAC9D,WAAW,6BAA6B;EACxC,WAAW,8BAA8B;EACzC,IAAI,SAAS,UACX,WAAW,kCAAkC;CAEjD,OAAO;EACL,IAAI,gBAAgB,UAAU,GAAG;GAC/B,MAAM,WAAW,IAAI,YAAY,UAAU,CAAC;GAC5C,WAAW,6BAA6B;GACxC,WAAW,8BAA8B;EAC3C;EAEA,IAAI,iBAAiB,UAAU,GAAG;GAChC,IAAI,OAAO,WAAW,SAAS,aAAa;IAC1C,WAAW,6BAA6B,IAAI,WAAW,IAAI;IAC3D,WAAW,8BAA8B,IAAI,WAAW,IAAI;GAC9D;GAEA,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;IAChC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,6BAA6B,IAAI,WAAY,IAAI;KACrE,eAAe,IAAI,CAAC,8BAA8B,IAAI,WAAY,IAAI;IACxE;GACF,CAAC;EACH;CACF;CAEA,IAAI,OAAO,eAAe,KAAA,KAAa,SAAS,UAAU;EACxD,eAAe,MAAM,cAAc,eAAe,MAAM,eAAe,CAAC;EACxE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,mCAAmC;EAEpE,eAAe,MAAM,WAAW,CAAC,iCAAiC;CACpE;CAEA,IAAI,OAAO,WAAW,SAAS;EAC7B,MAAM,kBAAkB,MAAO;EAC/B,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,8BAA8B;OACzD;GACL,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,+BAA+B;GAC/D,eAAe,gBAAgB,CAAC,iCAAiC;EACnE;EACA,eAAe,gBAAgB,CAAC,gDAAgD;EAChF,IAAI,WACF,eAAe,gBAAgB,CAAC,6CAA6C;CAEjF;CAEA,IAAI,OAAO,WAAW,QAAQ;EAC5B,MAAM,kBAAkB,mBAAmB,MAAO,YAAY,MAAM,WAAW,IAAI;EACnF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,IAAI,SAAS,SAAS;GACpB,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,8BAA8B;EAChE,OACE,eAAe,gBAAgB,CAAC,6BAA6B;EAE/D,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,eAAe,gBAAgB,CAAC,gDAAgD;EAChF,IAAI,WACF,eAAe,gBAAgB,CAAC,6CAA6C;CAEjF;AACF"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { keys } from "../../../../core/utils/keys/keys.mjs";
|
|
3
3
|
import { rem } from "../../../../core/utils/units-converters/rem.mjs";
|
|
4
4
|
import { getBaseSize } from "../get-base-size/get-base-size.mjs";
|
|
5
|
+
import { getResizedValue } from "../get-resized-value/get-resized-value.mjs";
|
|
5
6
|
import { isPrimitiveSize } from "../is-primitive-size/is-primitive-size.mjs";
|
|
6
7
|
import { isResponsiveSize } from "../is-responsive-size/is-responsive-size.mjs";
|
|
7
8
|
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts
|
|
8
|
-
function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode }) {
|
|
9
|
+
function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode, resizedSize, resizable }) {
|
|
9
10
|
const footerHeight = footer?.height;
|
|
10
11
|
const collapsedFooterTransform = "translateY(var(--app-shell-footer-height))";
|
|
11
12
|
const shouldOffset = mode === "static" ? true : footer?.offset ?? true;
|
|
@@ -14,27 +15,34 @@ function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode }) {
|
|
|
14
15
|
baseStyles["--app-shell-footer-grid-column"] = "1 / -1";
|
|
15
16
|
baseStyles["--app-shell-footer-grid-row"] = "3";
|
|
16
17
|
}
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
baseStyles["--app-shell-footer-height"] =
|
|
20
|
-
if (shouldOffset) baseStyles["--app-shell-footer-offset"] =
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
baseStyles["--app-shell-footer-height"] =
|
|
25
|
-
if (shouldOffset) baseStyles["--app-shell-footer-offset"] =
|
|
18
|
+
if (resizedSize !== void 0) {
|
|
19
|
+
const resizedValue = getResizedValue(resizedSize, "vertical");
|
|
20
|
+
baseStyles["--app-shell-footer-height"] = resizedValue;
|
|
21
|
+
if (shouldOffset) baseStyles["--app-shell-footer-offset"] = resizedValue;
|
|
22
|
+
} else {
|
|
23
|
+
if (isPrimitiveSize(footerHeight)) {
|
|
24
|
+
const baseSize = rem(getBaseSize(footerHeight));
|
|
25
|
+
baseStyles["--app-shell-footer-height"] = baseSize;
|
|
26
|
+
if (shouldOffset) baseStyles["--app-shell-footer-offset"] = baseSize;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (shouldOffset) minMediaStyles[key]["--app-shell-footer-offset"] = rem(footerHeight[key]);
|
|
28
|
+
if (isResponsiveSize(footerHeight)) {
|
|
29
|
+
if (typeof footerHeight.base !== "undefined") {
|
|
30
|
+
baseStyles["--app-shell-footer-height"] = rem(footerHeight.base);
|
|
31
|
+
if (shouldOffset) baseStyles["--app-shell-footer-offset"] = rem(footerHeight.base);
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
keys(footerHeight).forEach((key) => {
|
|
34
|
+
if (key !== "base") {
|
|
35
|
+
minMediaStyles[key] = minMediaStyles[key] || {};
|
|
36
|
+
minMediaStyles[key]["--app-shell-footer-height"] = rem(footerHeight[key]);
|
|
37
|
+
if (shouldOffset) minMediaStyles[key]["--app-shell-footer-offset"] = rem(footerHeight[key]);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
if (footer?.collapsed) {
|
|
36
43
|
baseStyles["--app-shell-footer-transform"] = collapsedFooterTransform;
|
|
37
44
|
if (mode === "fixed") baseStyles["--app-shell-footer-offset"] = "0px !important";
|
|
45
|
+
if (resizable) baseStyles["--app-shell-footer-resize-handle-display"] = "none";
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-footer-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignFooterVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n footer: AppShellProps['footer'] | undefined;\n mode: 'fixed' | 'static';\n}\n\nexport function assignFooterVariables({\n baseStyles,\n minMediaStyles,\n footer,\n mode,\n}: AssignFooterVariablesInput) {\n const footerHeight = footer?.height;\n const collapsedFooterTransform = 'translateY(var(--app-shell-footer-height))';\n const shouldOffset = mode === 'static' ? true : (footer?.offset ?? true);\n\n if (mode === 'static' && footer) {\n baseStyles['--app-shell-footer-position'] = 'sticky';\n baseStyles['--app-shell-footer-grid-column'] = '1 / -1';\n baseStyles['--app-shell-footer-grid-row'] = '3';\n }\n\n if (isPrimitiveSize(footerHeight)) {\n
|
|
1
|
+
{"version":3,"file":"assign-footer-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignFooterVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n footer: AppShellProps['footer'] | undefined;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignFooterVariables({\n baseStyles,\n minMediaStyles,\n footer,\n mode,\n resizedSize,\n resizable,\n}: AssignFooterVariablesInput) {\n const footerHeight = footer?.height;\n const collapsedFooterTransform = 'translateY(var(--app-shell-footer-height))';\n const shouldOffset = mode === 'static' ? true : (footer?.offset ?? true);\n\n if (mode === 'static' && footer) {\n baseStyles['--app-shell-footer-position'] = 'sticky';\n baseStyles['--app-shell-footer-grid-column'] = '1 / -1';\n baseStyles['--app-shell-footer-grid-row'] = '3';\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'vertical');\n baseStyles['--app-shell-footer-height'] = resizedValue;\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(footerHeight)) {\n const baseSize = rem(getBaseSize(footerHeight));\n baseStyles['--app-shell-footer-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(footerHeight)) {\n if (typeof footerHeight.base !== 'undefined') {\n baseStyles['--app-shell-footer-height'] = rem(footerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = rem(footerHeight.base);\n }\n }\n\n keys(footerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-footer-height'] = rem(footerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-footer-offset'] = rem(footerHeight[key]);\n }\n }\n });\n }\n }\n\n if (footer?.collapsed) {\n baseStyles['--app-shell-footer-transform'] = collapsedFooterTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-footer-offset'] = '0px !important';\n }\n if (resizable) {\n baseStyles['--app-shell-footer-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,MACA,aACA,aAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAe,gBAAgB,aAAa,UAAU;EAC5D,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C,OAAO;EACL,IAAI,gBAAgB,YAAY,GAAG;GACjC,MAAM,WAAW,IAAI,YAAY,YAAY,CAAC;GAC9C,WAAW,+BAA+B;GAC1C,IAAI,cACF,WAAW,+BAA+B;EAE9C;EAEA,IAAI,iBAAiB,YAAY,GAAG;GAClC,IAAI,OAAO,aAAa,SAAS,aAAa;IAC5C,WAAW,+BAA+B,IAAI,aAAa,IAAI;IAE/D,IAAI,cACF,WAAW,+BAA+B,IAAI,aAAa,IAAI;GAEnE;GAEA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;IAClC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,+BAA+B,IAAI,aAAa,IAAI;KAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+B,IAAI,aAAa,IAAI;IAE5E;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;EAE5C,IAAI,WACF,WAAW,8CAA8C;CAE7D;AACF"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { keys } from "../../../../core/utils/keys/keys.mjs";
|
|
3
3
|
import { rem } from "../../../../core/utils/units-converters/rem.mjs";
|
|
4
4
|
import { getBaseSize } from "../get-base-size/get-base-size.mjs";
|
|
5
|
+
import { getResizedValue } from "../get-resized-value/get-resized-value.mjs";
|
|
5
6
|
import { isPrimitiveSize } from "../is-primitive-size/is-primitive-size.mjs";
|
|
6
7
|
import { isResponsiveSize } from "../is-responsive-size/is-responsive-size.mjs";
|
|
7
8
|
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts
|
|
8
|
-
function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode }) {
|
|
9
|
+
function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode, resizedSize, resizable }) {
|
|
9
10
|
const headerHeight = header?.height;
|
|
10
11
|
const collapsedHeaderTransform = "translateY(calc(var(--app-shell-header-height) * -1))";
|
|
11
12
|
const shouldOffset = mode === "static" ? true : header?.offset ?? true;
|
|
@@ -14,27 +15,34 @@ function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode }) {
|
|
|
14
15
|
baseStyles["--app-shell-header-grid-column"] = "1 / -1";
|
|
15
16
|
baseStyles["--app-shell-header-grid-row"] = "1";
|
|
16
17
|
}
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
baseStyles["--app-shell-header-height"] =
|
|
20
|
-
if (shouldOffset) baseStyles["--app-shell-header-offset"] =
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
baseStyles["--app-shell-header-height"] =
|
|
25
|
-
if (shouldOffset) baseStyles["--app-shell-header-offset"] =
|
|
18
|
+
if (resizedSize !== void 0) {
|
|
19
|
+
const resizedValue = getResizedValue(resizedSize, "vertical");
|
|
20
|
+
baseStyles["--app-shell-header-height"] = resizedValue;
|
|
21
|
+
if (shouldOffset) baseStyles["--app-shell-header-offset"] = resizedValue;
|
|
22
|
+
} else {
|
|
23
|
+
if (isPrimitiveSize(headerHeight)) {
|
|
24
|
+
const baseSize = rem(getBaseSize(headerHeight));
|
|
25
|
+
baseStyles["--app-shell-header-height"] = baseSize;
|
|
26
|
+
if (shouldOffset) baseStyles["--app-shell-header-offset"] = baseSize;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (shouldOffset) minMediaStyles[key]["--app-shell-header-offset"] = rem(headerHeight[key]);
|
|
28
|
+
if (isResponsiveSize(headerHeight)) {
|
|
29
|
+
if (typeof headerHeight.base !== "undefined") {
|
|
30
|
+
baseStyles["--app-shell-header-height"] = rem(headerHeight.base);
|
|
31
|
+
if (shouldOffset) baseStyles["--app-shell-header-offset"] = rem(headerHeight.base);
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
keys(headerHeight).forEach((key) => {
|
|
34
|
+
if (key !== "base") {
|
|
35
|
+
minMediaStyles[key] = minMediaStyles[key] || {};
|
|
36
|
+
minMediaStyles[key]["--app-shell-header-height"] = rem(headerHeight[key]);
|
|
37
|
+
if (shouldOffset) minMediaStyles[key]["--app-shell-header-offset"] = rem(headerHeight[key]);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
if (header?.collapsed) {
|
|
36
43
|
baseStyles["--app-shell-header-transform"] = collapsedHeaderTransform;
|
|
37
44
|
if (mode === "fixed") baseStyles["--app-shell-header-offset"] = "0px !important";
|
|
45
|
+
if (resizable) baseStyles["--app-shell-header-resize-handle-display"] = "none";
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-header-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignHeaderVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n header: AppShellProps['header'] | undefined;\n mode: 'fixed' | 'static';\n}\n\nexport function assignHeaderVariables({\n baseStyles,\n minMediaStyles,\n header,\n mode,\n}: AssignHeaderVariablesInput) {\n const headerHeight = header?.height;\n const collapsedHeaderTransform = 'translateY(calc(var(--app-shell-header-height) * -1))';\n const shouldOffset = mode === 'static' ? true : (header?.offset ?? true);\n\n if (mode === 'static' && header) {\n baseStyles['--app-shell-header-position'] = 'sticky';\n baseStyles['--app-shell-header-grid-column'] = '1 / -1';\n baseStyles['--app-shell-header-grid-row'] = '1';\n }\n\n if (isPrimitiveSize(headerHeight)) {\n
|
|
1
|
+
{"version":3,"file":"assign-header-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignHeaderVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n header: AppShellProps['header'] | undefined;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignHeaderVariables({\n baseStyles,\n minMediaStyles,\n header,\n mode,\n resizedSize,\n resizable,\n}: AssignHeaderVariablesInput) {\n const headerHeight = header?.height;\n const collapsedHeaderTransform = 'translateY(calc(var(--app-shell-header-height) * -1))';\n const shouldOffset = mode === 'static' ? true : (header?.offset ?? true);\n\n if (mode === 'static' && header) {\n baseStyles['--app-shell-header-position'] = 'sticky';\n baseStyles['--app-shell-header-grid-column'] = '1 / -1';\n baseStyles['--app-shell-header-grid-row'] = '1';\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'vertical');\n baseStyles['--app-shell-header-height'] = resizedValue;\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(headerHeight)) {\n const baseSize = rem(getBaseSize(headerHeight));\n baseStyles['--app-shell-header-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(headerHeight)) {\n if (typeof headerHeight.base !== 'undefined') {\n baseStyles['--app-shell-header-height'] = rem(headerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = rem(headerHeight.base);\n }\n }\n\n keys(headerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-header-height'] = rem(headerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-header-offset'] = rem(headerHeight[key]);\n }\n }\n });\n }\n }\n\n if (header?.collapsed) {\n baseStyles['--app-shell-header-transform'] = collapsedHeaderTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-header-offset'] = '0px !important';\n }\n if (resizable) {\n baseStyles['--app-shell-header-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,MACA,aACA,aAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAe,gBAAgB,aAAa,UAAU;EAC5D,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C,OAAO;EACL,IAAI,gBAAgB,YAAY,GAAG;GACjC,MAAM,WAAW,IAAI,YAAY,YAAY,CAAC;GAC9C,WAAW,+BAA+B;GAC1C,IAAI,cACF,WAAW,+BAA+B;EAE9C;EAEA,IAAI,iBAAiB,YAAY,GAAG;GAClC,IAAI,OAAO,aAAa,SAAS,aAAa;IAC5C,WAAW,+BAA+B,IAAI,aAAa,IAAI;IAE/D,IAAI,cACF,WAAW,+BAA+B,IAAI,aAAa,IAAI;GAEnE;GAEA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;IAClC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,+BAA+B,IAAI,aAAa,IAAI;KAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+B,IAAI,aAAa,IAAI;IAE5E;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;EAE5C,IAAI,WACF,WAAW,8CAA8C;CAE7D;AACF"}
|
|
@@ -3,10 +3,11 @@ import { keys } from "../../../../core/utils/keys/keys.mjs";
|
|
|
3
3
|
import { rem } from "../../../../core/utils/units-converters/rem.mjs";
|
|
4
4
|
import { getBreakpointValue } from "../../../../core/utils/get-breakpoint-value/get-breakpoint-value.mjs";
|
|
5
5
|
import { getBaseSize } from "../get-base-size/get-base-size.mjs";
|
|
6
|
+
import { getResizedValue } from "../get-resized-value/get-resized-value.mjs";
|
|
6
7
|
import { isPrimitiveSize } from "../is-primitive-size/is-primitive-size.mjs";
|
|
7
8
|
import { isResponsiveSize } from "../is-responsive-size/is-responsive-size.mjs";
|
|
8
9
|
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts
|
|
9
|
-
function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, navbar, theme, mode }) {
|
|
10
|
+
function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, navbar, theme, mode, resizedSize, resizable }) {
|
|
10
11
|
const navbarWidth = navbar?.width;
|
|
11
12
|
const collapsedNavbarTransform = "translateX(calc(var(--app-shell-navbar-width) * -1))";
|
|
12
13
|
const collapsedNavbarTransformRtl = "translateX(var(--app-shell-navbar-width))";
|
|
@@ -15,27 +16,35 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
|
|
|
15
16
|
maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-offset"] = "0px";
|
|
16
17
|
maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-width"] = "100%";
|
|
17
18
|
if (mode === "static") maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-grid-width"] = "0px";
|
|
19
|
+
if (resizable) maxMediaStyles[navbar.breakpoint]["--app-shell-navbar-resize-handle-display"] = "none";
|
|
18
20
|
}
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
baseStyles["--app-shell-navbar-width"] =
|
|
22
|
-
baseStyles["--app-shell-navbar-offset"] =
|
|
23
|
-
if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] =
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
baseStyles["--app-shell-navbar-width"] =
|
|
28
|
-
baseStyles["--app-shell-navbar-offset"] =
|
|
29
|
-
if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] =
|
|
21
|
+
if (resizedSize !== void 0) {
|
|
22
|
+
const resizedValue = getResizedValue(resizedSize, "horizontal");
|
|
23
|
+
baseStyles["--app-shell-navbar-width"] = resizedValue;
|
|
24
|
+
baseStyles["--app-shell-navbar-offset"] = resizedValue;
|
|
25
|
+
if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = resizedValue;
|
|
26
|
+
} else {
|
|
27
|
+
if (isPrimitiveSize(navbarWidth)) {
|
|
28
|
+
const baseSize = rem(getBaseSize(navbarWidth));
|
|
29
|
+
baseStyles["--app-shell-navbar-width"] = baseSize;
|
|
30
|
+
baseStyles["--app-shell-navbar-offset"] = baseSize;
|
|
31
|
+
if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = baseSize;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (mode === "static") minMediaStyles[key]["--app-shell-navbar-grid-width"] = rem(navbarWidth[key]);
|
|
33
|
+
if (isResponsiveSize(navbarWidth)) {
|
|
34
|
+
if (typeof navbarWidth.base !== "undefined") {
|
|
35
|
+
baseStyles["--app-shell-navbar-width"] = rem(navbarWidth.base);
|
|
36
|
+
baseStyles["--app-shell-navbar-offset"] = rem(navbarWidth.base);
|
|
37
|
+
if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = rem(navbarWidth.base);
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
+
keys(navbarWidth).forEach((key) => {
|
|
40
|
+
if (key !== "base") {
|
|
41
|
+
minMediaStyles[key] = minMediaStyles[key] || {};
|
|
42
|
+
minMediaStyles[key]["--app-shell-navbar-width"] = rem(navbarWidth[key]);
|
|
43
|
+
minMediaStyles[key]["--app-shell-navbar-offset"] = rem(navbarWidth[key]);
|
|
44
|
+
if (mode === "static") minMediaStyles[key]["--app-shell-navbar-grid-width"] = rem(navbarWidth[key]);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
39
48
|
}
|
|
40
49
|
if (navbar?.breakpoint !== void 0 && mode === "static") {
|
|
41
50
|
minMediaStyles[navbar.breakpoint] = minMediaStyles[navbar.breakpoint] || {};
|
|
@@ -55,6 +64,7 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
|
|
|
55
64
|
minMediaStyles[breakpointValue]["--app-shell-navbar-display"] = "none";
|
|
56
65
|
minMediaStyles[breakpointValue]["--app-shell-main-column-start"] = "1";
|
|
57
66
|
}
|
|
67
|
+
if (resizable) minMediaStyles[breakpointValue]["--app-shell-navbar-resize-handle-display"] = "none";
|
|
58
68
|
}
|
|
59
69
|
if (navbar?.collapsed?.mobile) {
|
|
60
70
|
const breakpointValue = getBreakpointValue(navbar.breakpoint, theme.breakpoints) - .1;
|
|
@@ -64,6 +74,7 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
|
|
|
64
74
|
if (mode === "static") maxMediaStyles[breakpointValue]["--app-shell-navbar-grid-width"] = "0px";
|
|
65
75
|
maxMediaStyles[breakpointValue]["--app-shell-navbar-transform"] = collapsedNavbarTransform;
|
|
66
76
|
maxMediaStyles[breakpointValue]["--app-shell-navbar-transform-rtl"] = collapsedNavbarTransformRtl;
|
|
77
|
+
if (resizable) maxMediaStyles[breakpointValue]["--app-shell-navbar-resize-handle-display"] = "none";
|
|
67
78
|
}
|
|
68
79
|
}
|
|
69
80
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assign-navbar-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignNavbarVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n navbar: AppShellProps['navbar'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n}\n\nexport function assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n}: AssignNavbarVariablesInput) {\n const navbarWidth = navbar?.width;\n const collapsedNavbarTransform = 'translateX(calc(var(--app-shell-navbar-width) * -1))';\n const collapsedNavbarTransformRtl = 'translateX(var(--app-shell-navbar-width))';\n\n if (navbar?.breakpoint !== undefined && !navbar?.collapsed?.mobile) {\n maxMediaStyles[navbar?.breakpoint] = maxMediaStyles[navbar?.breakpoint] || {};\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-offset'] = '0px';\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-width'] = '100%';\n if (mode === 'static') {\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-grid-width'] = '0px';\n }\n }\n\n if (isPrimitiveSize(navbarWidth)) {\n
|
|
1
|
+
{"version":3,"file":"assign-navbar-variables.mjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignNavbarVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n navbar: AppShellProps['navbar'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n resizedSize,\n resizable,\n}: AssignNavbarVariablesInput) {\n const navbarWidth = navbar?.width;\n const collapsedNavbarTransform = 'translateX(calc(var(--app-shell-navbar-width) * -1))';\n const collapsedNavbarTransformRtl = 'translateX(var(--app-shell-navbar-width))';\n\n if (navbar?.breakpoint !== undefined && !navbar?.collapsed?.mobile) {\n maxMediaStyles[navbar?.breakpoint] = maxMediaStyles[navbar?.breakpoint] || {};\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-offset'] = '0px';\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-width'] = '100%';\n if (mode === 'static') {\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-grid-width'] = '0px';\n }\n if (resizable) {\n maxMediaStyles[navbar.breakpoint]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'horizontal');\n baseStyles['--app-shell-navbar-width'] = resizedValue;\n baseStyles['--app-shell-navbar-offset'] = resizedValue;\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(navbarWidth)) {\n const baseSize = rem(getBaseSize(navbarWidth));\n baseStyles['--app-shell-navbar-width'] = baseSize;\n baseStyles['--app-shell-navbar-offset'] = baseSize;\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = baseSize;\n }\n }\n\n if (isResponsiveSize(navbarWidth)) {\n if (typeof navbarWidth.base !== 'undefined') {\n baseStyles['--app-shell-navbar-width'] = rem(navbarWidth.base);\n baseStyles['--app-shell-navbar-offset'] = rem(navbarWidth.base);\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = rem(navbarWidth.base);\n }\n }\n\n keys(navbarWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-navbar-width'] = rem(navbarWidth![key]);\n minMediaStyles[key]['--app-shell-navbar-offset'] = rem(navbarWidth![key]);\n if (mode === 'static') {\n minMediaStyles[key]['--app-shell-navbar-grid-width'] = rem(navbarWidth![key]);\n }\n }\n });\n }\n }\n\n if (navbar?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[navbar.breakpoint] = minMediaStyles[navbar.breakpoint] || {};\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-position'] = 'sticky';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-row'] = '2';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-column'] = '1';\n minMediaStyles[navbar.breakpoint]['--app-shell-main-column-start'] = '2';\n }\n\n if (navbar?.collapsed?.desktop) {\n const breakpointValue = navbar!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px !important';\n } else {\n // In static mode, hide the element completely so grid column collapses\n minMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-navbar-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-start'] = '1';\n }\n if (resizable) {\n minMediaStyles[breakpointValue]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n\n if (navbar?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(navbar!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n maxMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px';\n if (mode === 'static') {\n maxMediaStyles[breakpointValue]['--app-shell-navbar-grid-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n if (resizable) {\n maxMediaStyles[breakpointValue]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,gBACA,QACA,OACA,MACA,aACA,aAC6B;CAC7B,MAAM,cAAc,QAAQ;CAC5B,MAAM,2BAA2B;CACjC,MAAM,8BAA8B;CAEpC,IAAI,QAAQ,eAAe,KAAA,KAAa,CAAC,QAAQ,WAAW,QAAQ;EAClE,eAAe,QAAQ,cAAc,eAAe,QAAQ,eAAe,CAAC;EAC5E,eAAe,QAAQ,WAAW,CAAC,+BAA+B;EAClE,eAAe,QAAQ,WAAW,CAAC,8BAA8B;EACjE,IAAI,SAAS,UACX,eAAe,QAAQ,WAAW,CAAC,mCAAmC;EAExE,IAAI,WACF,eAAe,OAAO,WAAW,CAAC,8CAA8C;CAEpF;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAe,gBAAgB,aAAa,YAAY;EAC9D,WAAW,8BAA8B;EACzC,WAAW,+BAA+B;EAC1C,IAAI,SAAS,UACX,WAAW,mCAAmC;CAElD,OAAO;EACL,IAAI,gBAAgB,WAAW,GAAG;GAChC,MAAM,WAAW,IAAI,YAAY,WAAW,CAAC;GAC7C,WAAW,8BAA8B;GACzC,WAAW,+BAA+B;GAC1C,IAAI,SAAS,UACX,WAAW,mCAAmC;EAElD;EAEA,IAAI,iBAAiB,WAAW,GAAG;GACjC,IAAI,OAAO,YAAY,SAAS,aAAa;IAC3C,WAAW,8BAA8B,IAAI,YAAY,IAAI;IAC7D,WAAW,+BAA+B,IAAI,YAAY,IAAI;IAC9D,IAAI,SAAS,UACX,WAAW,mCAAmC,IAAI,YAAY,IAAI;GAEtE;GAEA,KAAK,WAAW,CAAC,CAAC,SAAS,QAAQ;IACjC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,8BAA8B,IAAI,YAAa,IAAI;KACvE,eAAe,IAAI,CAAC,+BAA+B,IAAI,YAAa,IAAI;KACxE,IAAI,SAAS,UACX,eAAe,IAAI,CAAC,mCAAmC,IAAI,YAAa,IAAI;IAEhF;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,eAAe,KAAA,KAAa,SAAS,UAAU;EACzD,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,oCAAoC;EACtE,eAAe,OAAO,WAAW,CAAC,mCAAmC;CACvE;CAEA,IAAI,QAAQ,WAAW,SAAS;EAC9B,MAAM,kBAAkB,OAAQ;EAChC,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;EACF,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,+BAA+B;OAC1D;GAEL,eAAe,gBAAgB,CAAC,8BAA8B;GAC9D,eAAe,gBAAgB,CAAC,gCAAgC;GAChE,eAAe,gBAAgB,CAAC,mCAAmC;EACrE;EACA,IAAI,WACF,eAAe,gBAAgB,CAAC,8CAA8C;CAElF;CAEA,IAAI,QAAQ,WAAW,QAAQ;EAC7B,MAAM,kBAAkB,mBAAmB,OAAQ,YAAY,MAAM,WAAW,IAAI;EACpF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,8BAA8B;EAC9D,eAAe,gBAAgB,CAAC,+BAA+B;EAC/D,IAAI,SAAS,UACX,eAAe,gBAAgB,CAAC,mCAAmC;EAErE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;EACF,IAAI,WACF,eAAe,gBAAgB,CAAC,8CAA8C;CAElF;AACF"}
|