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GACIwH,GAAA,GAAAA,EAAA,GACJtD,EAAA,EACAC,EAAAmD,EACAtH,EAAAyH,GACID,GAAA,GAAAA,EAAA,GACJtD,EAAA,EACAC,EAAAsD,EACAzH,EAAAsH,GACIE,GAAA,GAAAA,EAAA,GACJtD,EAAAuD,EACAtD,EAAA,EACAnE,EAAAsH,IAEApD,EAAAoD,EACAnD,EAAA,EACAnE,EAAAyH,GAEA,CACAvD,EAAAI,KAAAC,KAAA,EAAAL,EAAA1J,CAAAA,EAAA,KACA2J,EAAAG,KAAAC,KAAA,EAAAJ,EAAA3J,CAAAA,EAAA,KACAwF,EAAAsE,KAAAC,KAAA,EAAAvE,EAAAxF,CAAAA,EAAA,KACAuF,EAAAA,GAAA,CACA,CACA,EASA3O,GAEA,CACA8S,EAAA,EACAC,EAAA,EACAnE,EAAA,EACAD,EAAA,CACA,CACA,wGExGA,IAAA2H,EAAA,uHACArE,EAAA,CACA7L,MAAA,EACAmQ,cAAA,GACAC,UAAA,OACA1C,MAAA,OACAiB,MAAA,OACApD,ODdA,CACAE,KAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAmD,KAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAyB,IAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,KAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,MAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,OAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,OAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,KAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,CACAC,KAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UAC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A,GAAa,oBAAAkE,GAAA,iBAAAA,EAAAlE,GAAAkE,OAA+C,oBAAAA,GAAA,GAAApW,MAAAhC,OAAA,CAAAoY,GAAA,CAAgD,IAAAQ,EAAAR,EAAA7Q,MAAA,CAAe,IAAAoR,EAAA,EAAQA,EAAAC,EAAID,IAAAP,CAAA,CAAAO,EAAA,EAAAtM,CAAAA,EAAAH,EAAAkM,CAAA,CAAAO,EAAA,IAAAzE,CAAAA,GAAAA,CAAAA,GAAA,KAAAA,GAAA7H,CAAAA,CAAA,MAA0C,IAAAA,KAAA+L,EAAAA,CAAA,CAAA/L,EAAA,EAAA6H,CAAAA,GAAAA,CAAAA,GAAA,KAAAA,GAAA7H,CAAAA,EAAyC,OAAA6H,CAAA,EAA4EkE,EAAA,GAAAlE,CAAAA,GAAAA,CAAAA,GAAA,KAAAA,GAAAyE,CAAAA,EAAmD,OAAAzE,CAAA","sources":["webpack://_N_E/../../../../src/components/Loader/loaders/Bars.tsx","webpack://_N_E/../../../../src/components/Loader/loaders/Dots.tsx","webpack://_N_E/../../../../src/components/Loader/loaders/Oval.tsx","webpack://_N_E/../../components/Loader/Loader.tsx","webpack://_N_E/../../components/Text/Text.tsx","webpack://_N_E/../../../../src/components/Transition/get-transition-styles/get-transition-styles.ts","webpack://_N_E/../../components/Transition/use-transition.ts","webpack://_N_E/../../components/Transition/Transition.tsx","webpack://_N_E/../../components/Transition/transitions.ts","webpack://_N_E/../../components/UnstyledButton/UnstyledButton.tsx","webpack://_N_E/../../../../src/core/Box/get-box-mod/get-box-mod.ts","webpack://_N_E/../../../../src/core/Box/get-box-style/get-box-style.ts","webpack://_N_E/../../core/Box/Box.tsx","webpack://_N_E/../../../../../src/core/Box/style-props/extract-style-props/extract-style-props.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/color-resolver/color-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/border-resolver/border-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/identity-resolver/identity-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/size-resolver/size-resolver.ts","webpack://_N_E/../../../../../../src/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.ts","webpack://_N_E/../../../../../src/core/Box/style-props/resolvers/index.ts","webpack://_N_E/../../../../../src/core/Box/style-props/parse-style-props/sort-media-queries.ts","webpack://_N_E/../../../../../src/core/Box/style-props/parse-style-props/parse-style-props.ts","webpack://_N_E/../../../../src/core/Box/style-props/style-props-data.ts","webpack://_N_E/../../../../src/core/Box/use-random-classname/use-random-classname.ts","webpack://_N_E/../../core/InlineStyles/InlineStyles.tsx","webpack://_N_E/../../../../src/core/InlineStyles/css-object-to-string/css-object-to-string.ts","webpack://_N_E/../../../../src/core/InlineStyles/styles-to-string/styles-to-string.ts","webpack://_N_E/../../core/MantineProvider/Mantine.context.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/merge-mantine-theme/merge-mantine-theme.mjs","webpack://_N_E/../../../../src/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.tsx","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.mjs","webpack://_N_E/../../../../../src/core/MantineProvider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.ts","webpack://_N_E/../../../../../src/core/MantineProvider/color-functions/get-gradient/get-gradient.ts","webpack://_N_E/../../../../../src/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.ts","webpack://_N_E/../../../../../src/core/MantineProvider/color-functions/get-theme-color/get-theme-color.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.mjs","webpack://_N_E/../../../../../src/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/color-functions/rgba/rgba.mjs","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.mjs","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/default-colors.mjs","webpack://_N_E/./node_modules/@mantine/core/esm/core/MantineProvider/default-theme.mjs","webpack://_N_E/../../../../src/core/MantineProvider/use-props/use-props.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.mjs","webpack://_N_E/../../core/factory/factory.tsx","webpack://_N_E/../../core/factory/polymorphic-factory.tsx","webpack://_N_E/../../../../src/core/styles-api/create-vars-resolver/create-vars-resolver.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-theme-class-names/get-theme-class-names.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.ts","webpack://_N_E/../../../../../src/core/styles-api/use-styles/get-class-name/get-class-name.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-style/resolve-style/resolve-style.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.ts","webpack://_N_E/../../../../../../src/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.ts","webpack://_N_E/../../../../../src/core/styles-api/use-styles/get-style/get-style.ts","webpack://_N_E/../../../../src/core/styles-api/use-styles/use-transformed-styles.ts","webpack://_N_E/../../../../src/core/styles-api/use-styles/use-styles.ts","webpack://_N_E/../../../../src/core/utils/camel-to-kebab-case/camel-to-kebab-case.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/utils/deep-merge/deep-merge.mjs","webpack://_N_E/../../../../src/core/utils/filter-props/filter-props.ts","webpack://_N_E/../../../../src/core/utils/get-size/get-size.ts","webpack://_N_E/../../../../src/core/utils/is-number-like/is-number-like.ts","webpack://_N_E/../../../../src/core/utils/keys/keys.ts","webpack://_N_E/./node_modules/@mantine/core/esm/core/utils/units-converters/rem.mjs","webpack://_N_E/../../src/use-did-update/use-did-update.ts","webpack://_N_E/../../src/use-id/use-react-id.ts","webpack://_N_E/../../src/use-id/use-id.ts","webpack://_N_E/../../src/use-isomorphic-effect/use-isomorphic-effect.ts","webpack://_N_E/../../src/use-media-query/use-media-query.ts","webpack://_N_E/../../src/use-reduced-motion/use-reduced-motion.ts","webpack://_N_E/../../utils/random-id/random-id.ts","webpack://_N_E/./node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box } from '../../../core';\nimport { MantineLoaderComponent } from '../Loader.types';\nimport classes from '../Loader.module.css';\n\nexport const Bars: MantineLoaderComponent = forwardRef(({ className, ...others }, ref) => (\n \n \n \n \n \n));\n\nBars.displayName = '@mantine/core/Bars';\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box } from '../../../core';\nimport { MantineLoaderComponent } from '../Loader.types';\nimport classes from '../Loader.module.css';\n\nexport const Dots: MantineLoaderComponent = forwardRef(({ className, ...others }, ref) => (\n \n \n \n \n \n));\n\nDots.displayName = '@mantine/core/Dots';\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box } from '../../../core';\nimport { MantineLoaderComponent } from '../Loader.types';\nimport classes from '../Loader.module.css';\n\nexport const Oval: MantineLoaderComponent = forwardRef(({ className, ...others }, ref) => (\n \n));\n\nOval.displayName = '@mantine/core/Oval';\n","import {\n Box,\n BoxProps,\n createVarsResolver,\n factory,\n Factory,\n getSize,\n getThemeColor,\n MantineColor,\n MantineSize,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport type { MantineLoader, MantineLoadersRecord } from './Loader.types';\nimport { Bars } from './loaders/Bars';\nimport { Dots } from './loaders/Dots';\nimport { Oval } from './loaders/Oval';\nimport classes from './Loader.module.css';\n\nexport type LoaderStylesNames = 'root';\nexport type LoaderCssVariables = {\n root: '--loader-size' | '--loader-color';\n};\n\nexport interface LoaderProps\n extends BoxProps,\n StylesApiProps,\n Omit, keyof BoxProps> {\n /** Controls `width` and `height` of the loader. `Loader` has predefined `xs`-`xl` values. Numbers are converted to rem. Default value is `'md'` */\n size?: MantineSize | (string & {}) | number;\n\n /** Key of `theme.colors` or any valid CSS color, default value is `theme.primaryColor` */\n color?: MantineColor;\n\n /** Loader type, key of `loaders` prop, default value is `'oval'` */\n type?: MantineLoader;\n\n /** Object of loaders components, can be customized via default props or inline. Default value contains `bars`, `oval` and `dots` */\n loaders?: MantineLoadersRecord;\n\n /** Overrides default loader with given content */\n children?: React.ReactNode;\n}\n\nexport type LoaderFactory = Factory<{\n props: LoaderProps;\n ref: HTMLSpanElement;\n stylesNames: LoaderStylesNames;\n vars: LoaderCssVariables;\n staticComponents: {\n defaultLoaders: typeof defaultLoaders;\n };\n}>;\n\nexport const defaultLoaders: MantineLoadersRecord = {\n bars: Bars,\n oval: Oval,\n dots: Dots,\n};\n\nconst defaultProps: Partial = {\n loaders: defaultLoaders,\n type: 'oval',\n};\n\nconst varsResolver = createVarsResolver((theme, { size, color }) => ({\n root: {\n '--loader-size': getSize(size, 'loader-size'),\n '--loader-color': color ? getThemeColor(color, theme) : undefined,\n },\n}));\n\nexport const Loader = factory((_props, ref) => {\n const props = useProps('Loader', defaultProps, _props);\n const {\n size,\n color,\n type,\n vars,\n className,\n style,\n classNames,\n styles,\n unstyled,\n loaders,\n variant,\n children,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: 'Loader',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n if (children) {\n return (\n \n {children}\n \n );\n }\n\n return (\n \n );\n});\n\nLoader.defaultLoaders = defaultLoaders;\nLoader.classes = classes;\nLoader.displayName = '@mantine/core/Loader';\n","import {\n Box,\n BoxProps,\n createVarsResolver,\n getFontSize,\n getGradient,\n getLineHeight,\n getThemeColor,\n MantineColor,\n MantineGradient,\n MantineSize,\n polymorphicFactory,\n PolymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './Text.module.css';\n\ntype TextTruncate = 'end' | 'start' | boolean;\n\nfunction getTextTruncate(truncate: TextTruncate | undefined) {\n if (truncate === 'start') {\n return 'start';\n }\n\n if (truncate === 'end' || truncate) {\n return 'end';\n }\n\n return undefined;\n}\n\nexport type TextStylesNames = 'root';\nexport type TextVariant = 'text' | 'gradient';\nexport type TextCssVariables = {\n root: '--text-gradient' | '--text-line-clamp' | '--text-fz' | '--text-lh';\n};\n\nexport interface TextProps extends BoxProps, StylesApiProps {\n __staticSelector?: string;\n\n /** Controls `font-size` and `line-height`, `'md'` by default */\n size?: MantineSize | (string & {});\n\n /** Number of lines after which Text will be truncated */\n lineClamp?: number;\n\n /** Side on which Text must be truncated, if `true`, text is truncated from the start */\n truncate?: TextTruncate;\n\n /** Sets `line-height` to 1 for centering, `false` by default */\n inline?: boolean;\n\n /** Determines whether font properties should be inherited from the parent, `false` by default */\n inherit?: boolean;\n\n /** Gradient configuration, ignored when `variant` is not `gradient`, `theme.defaultGradient` by default */\n gradient?: MantineGradient;\n\n /** Shorthand for `component=\"span\"`, `false` by default, default root element is `p` */\n span?: boolean;\n\n /** @deprecated Use `c` prop instead */\n color?: MantineColor;\n}\n\nexport type TextFactory = PolymorphicFactory<{\n props: TextProps;\n defaultComponent: 'p';\n defaultRef: HTMLParagraphElement;\n stylesNames: TextStylesNames;\n vars: TextCssVariables;\n variant: TextVariant;\n}>;\n\nconst defaultProps: Partial = {\n inherit: false,\n};\n\nconst varsResolver = createVarsResolver(\n (theme, { variant, lineClamp, gradient, size, color }) => ({\n root: {\n '--text-fz': getFontSize(size),\n '--text-lh': getLineHeight(size),\n '--text-gradient': variant === 'gradient' ? getGradient(gradient, theme) : undefined,\n '--text-line-clamp': typeof lineClamp === 'number' ? lineClamp.toString() : undefined,\n '--text-color': color ? getThemeColor(color, theme) : undefined,\n },\n })\n);\n\nexport const Text = polymorphicFactory((_props, ref) => {\n const props = useProps('Text', defaultProps, _props);\n const {\n lineClamp,\n truncate,\n inline,\n inherit,\n gradient,\n span,\n __staticSelector,\n vars,\n className,\n style,\n classNames,\n styles,\n unstyled,\n variant,\n mod,\n size,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: ['Text', __staticSelector],\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n\n return (\n \n );\n});\n\nText.classes = classes;\nText.displayName = '@mantine/core/Text';\n","import { MantineTransition, transitions } from '../transitions';\n\nconst transitionStatuses = {\n entering: 'in',\n entered: 'in',\n exiting: 'out',\n exited: 'out',\n 'pre-exiting': 'out',\n 'pre-entering': 'out',\n} as const;\n\nexport function getTransitionStyles({\n transition,\n state,\n duration,\n timingFunction,\n}: {\n transition: MantineTransition;\n state: keyof typeof transitionStatuses;\n duration: number;\n timingFunction: React.CSSProperties['transitionTimingFunction'];\n}): React.CSSProperties {\n const shared = {\n transitionDuration: `${duration}ms`,\n transitionTimingFunction: timingFunction,\n };\n\n if (typeof transition === 'string') {\n if (!(transition in transitions)) {\n return {};\n }\n\n return {\n transitionProperty: transitions[transition].transitionProperty,\n ...shared,\n ...transitions[transition].common,\n ...transitions[transition][transitionStatuses[state]],\n };\n }\n\n return {\n transitionProperty: transition.transitionProperty,\n ...shared,\n ...transition.common,\n ...transition[transitionStatuses[state]],\n };\n}\n","import { useEffect, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport { useDidUpdate, useReducedMotion } from '@mantine/hooks';\nimport { useMantineTheme } from '../../core';\n\nexport type TransitionStatus =\n | 'entered'\n | 'exited'\n | 'entering'\n | 'exiting'\n | 'pre-exiting'\n | 'pre-entering';\n\ninterface UseTransition {\n duration: number;\n exitDuration: number;\n timingFunction: string;\n mounted: boolean;\n onEnter?: () => void;\n onExit?: () => void;\n onEntered?: () => void;\n onExited?: () => void;\n enterDelay?: number;\n exitDelay?: number;\n}\n\nexport function useTransition({\n duration,\n exitDuration,\n timingFunction,\n mounted,\n onEnter,\n onExit,\n onEntered,\n onExited,\n enterDelay,\n exitDelay,\n}: UseTransition) {\n const theme = useMantineTheme();\n const shouldReduceMotion = useReducedMotion();\n const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false;\n const [transitionDuration, setTransitionDuration] = useState(reduceMotion ? 0 : duration);\n const [transitionStatus, setStatus] = useState(mounted ? 'entered' : 'exited');\n const transitionTimeoutRef = useRef(-1);\n const delayTimeoutRef = useRef(-1);\n const rafRef = useRef(-1);\n\n const handleStateChange = (shouldMount: boolean) => {\n const preHandler = shouldMount ? onEnter : onExit;\n const handler = shouldMount ? onEntered : onExited;\n\n window.clearTimeout(transitionTimeoutRef.current);\n\n const newTransitionDuration = reduceMotion ? 0 : shouldMount ? duration : exitDuration;\n setTransitionDuration(newTransitionDuration);\n\n if (newTransitionDuration === 0) {\n typeof preHandler === 'function' && preHandler();\n typeof handler === 'function' && handler();\n setStatus(shouldMount ? 'entered' : 'exited');\n } else {\n // Make sure new status won't be set within the same frame as this would disrupt animation #3126\n rafRef.current = requestAnimationFrame(() => {\n ReactDOM.flushSync(() => {\n setStatus(shouldMount ? 'pre-entering' : 'pre-exiting');\n });\n\n rafRef.current = requestAnimationFrame(() => {\n typeof preHandler === 'function' && preHandler();\n setStatus(shouldMount ? 'entering' : 'exiting');\n\n transitionTimeoutRef.current = window.setTimeout(() => {\n typeof handler === 'function' && handler();\n setStatus(shouldMount ? 'entered' : 'exited');\n }, newTransitionDuration);\n });\n });\n }\n };\n\n const handleTransitionWithDelay = (shouldMount: boolean) => {\n window.clearTimeout(delayTimeoutRef.current);\n const delay = shouldMount ? enterDelay : exitDelay;\n\n if (typeof delay !== 'number') {\n handleStateChange(shouldMount);\n return;\n }\n\n delayTimeoutRef.current = window.setTimeout(\n () => {\n handleStateChange(shouldMount);\n },\n shouldMount ? enterDelay : exitDelay\n );\n };\n\n useDidUpdate(() => {\n handleTransitionWithDelay(mounted);\n }, [mounted]);\n\n useEffect(\n () => () => {\n window.clearTimeout(transitionTimeoutRef.current);\n cancelAnimationFrame(rafRef.current);\n },\n []\n );\n\n return {\n transitionDuration,\n transitionStatus,\n transitionTimingFunction: timingFunction || 'ease',\n };\n}\n","import { useMantineEnv } from '../../core';\nimport { getTransitionStyles } from './get-transition-styles/get-transition-styles';\nimport { MantineTransition } from './transitions';\nimport { useTransition } from './use-transition';\n\nexport interface TransitionProps {\n /** If set element will not be unmounted from the DOM when it is hidden, `display: none` styles will be applied instead */\n keepMounted?: boolean;\n\n /** Transition name or object */\n transition?: MantineTransition;\n\n /** Transition duration in ms, `250` by default */\n duration?: number;\n\n /** Exit transition duration in ms, `250` by default */\n exitDuration?: number;\n\n /** Transition timing function, `theme.transitionTimingFunction` by default */\n timingFunction?: string;\n\n /** Determines whether component should be mounted to the DOM */\n mounted: boolean;\n\n /** Render function with transition styles argument */\n children: (styles: React.CSSProperties) => React.JSX.Element;\n\n /** Called when exit transition ends */\n onExited?: () => void;\n\n /** Called when exit transition starts */\n onExit?: () => void;\n\n /** Called when enter transition starts */\n onEnter?: () => void;\n\n /** Called when enter transition ends */\n onEntered?: () => void;\n\n /** Delay in ms before enter transition starts */\n enterDelay?: number;\n\n /** Delay in ms before exit transition starts */\n exitDelay?: number;\n}\n\nexport type TransitionOverride = Partial>;\n\nexport function Transition({\n keepMounted,\n transition = 'fade',\n duration = 250,\n exitDuration = duration,\n mounted,\n children,\n timingFunction = 'ease',\n onExit,\n onEntered,\n onEnter,\n onExited,\n enterDelay,\n exitDelay,\n}: TransitionProps) {\n const env = useMantineEnv();\n const { transitionDuration, transitionStatus, transitionTimingFunction } = useTransition({\n mounted,\n exitDuration,\n duration,\n timingFunction,\n onExit,\n onEntered,\n onEnter,\n onExited,\n enterDelay,\n exitDelay,\n });\n\n if (transitionDuration === 0 || env === 'test') {\n return mounted ? <>{children({})} : keepMounted ? children({ display: 'none' }) : null;\n }\n\n return transitionStatus === 'exited' ? (\n keepMounted ? (\n children({ display: 'none' })\n ) : null\n ) : (\n <>\n {children(\n getTransitionStyles({\n transition,\n duration: transitionDuration,\n state: transitionStatus,\n timingFunction: transitionTimingFunction,\n })\n )}\n \n );\n}\n\nTransition.displayName = '@mantine/core/Transition';\n","export interface MantineTransitionStyles {\n common?: React.CSSProperties;\n in: React.CSSProperties;\n out: React.CSSProperties;\n transitionProperty: React.CSSProperties['transitionProperty'];\n}\n\nexport type MantineTransitionName =\n | 'fade'\n | 'fade-down'\n | 'fade-up'\n | 'fade-left'\n | 'fade-right'\n | 'skew-up'\n | 'skew-down'\n | 'rotate-right'\n | 'rotate-left'\n | 'slide-down'\n | 'slide-up'\n | 'slide-right'\n | 'slide-left'\n | 'scale-y'\n | 'scale-x'\n | 'scale'\n | 'pop'\n | 'pop-top-left'\n | 'pop-top-right'\n | 'pop-bottom-left'\n | 'pop-bottom-right';\n\nexport type MantineTransition = MantineTransitionName | MantineTransitionStyles;\n\nconst popIn = (from: 'top' | 'bottom') => ({\n in: { opacity: 1, transform: 'scale(1)' },\n out: { opacity: 0, transform: `scale(.9) translateY(${from === 'bottom' ? 10 : -10}px)` },\n transitionProperty: 'transform, opacity',\n});\n\nexport const transitions: Record = {\n fade: {\n in: { opacity: 1 },\n out: { opacity: 0 },\n transitionProperty: 'opacity',\n },\n\n 'fade-up': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(30px)' },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-down': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(-30px)' },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-left': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(30px)' },\n transitionProperty: 'opacity, transform',\n },\n\n 'fade-right': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(-30px)' },\n transitionProperty: 'opacity, transform',\n },\n\n scale: {\n in: { opacity: 1, transform: 'scale(1)' },\n out: { opacity: 0, transform: 'scale(0)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'scale-y': {\n in: { opacity: 1, transform: 'scaleY(1)' },\n out: { opacity: 0, transform: 'scaleY(0)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'scale-x': {\n in: { opacity: 1, transform: 'scaleX(1)' },\n out: { opacity: 0, transform: 'scaleX(0)' },\n common: { transformOrigin: 'left' },\n transitionProperty: 'transform, opacity',\n },\n\n 'skew-up': {\n in: { opacity: 1, transform: 'translateY(0) skew(0deg, 0deg)' },\n out: { opacity: 0, transform: 'translateY(-20px) skew(-10deg, -5deg)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'skew-down': {\n in: { opacity: 1, transform: 'translateY(0) skew(0deg, 0deg)' },\n out: { opacity: 0, transform: 'translateY(20px) skew(-10deg, -5deg)' },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'rotate-left': {\n in: { opacity: 1, transform: 'translateY(0) rotate(0deg)' },\n out: { opacity: 0, transform: 'translateY(20px) rotate(-5deg)' },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'rotate-right': {\n in: { opacity: 1, transform: 'translateY(0) rotate(0deg)' },\n out: { opacity: 0, transform: 'translateY(20px) rotate(5deg)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-down': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(-100%)' },\n common: { transformOrigin: 'top' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-up': {\n in: { opacity: 1, transform: 'translateY(0)' },\n out: { opacity: 0, transform: 'translateY(100%)' },\n common: { transformOrigin: 'bottom' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-left': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(100%)' },\n common: { transformOrigin: 'left' },\n transitionProperty: 'transform, opacity',\n },\n\n 'slide-right': {\n in: { opacity: 1, transform: 'translateX(0)' },\n out: { opacity: 0, transform: 'translateX(-100%)' },\n common: { transformOrigin: 'right' },\n transitionProperty: 'transform, opacity',\n },\n\n pop: {\n ...popIn('bottom'),\n common: { transformOrigin: 'center center' },\n },\n\n 'pop-bottom-left': {\n ...popIn('bottom'),\n common: { transformOrigin: 'bottom left' },\n },\n\n 'pop-bottom-right': {\n ...popIn('bottom'),\n common: { transformOrigin: 'bottom right' },\n },\n\n 'pop-top-left': {\n ...popIn('top'),\n common: { transformOrigin: 'top left' },\n },\n\n 'pop-top-right': {\n ...popIn('top'),\n common: { transformOrigin: 'top right' },\n },\n};\n","import {\n Box,\n BoxComponentProps,\n polymorphicFactory,\n PolymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '../../core';\nimport classes from './UnstyledButton.module.css';\n\nexport type UnstyledButtonStylesNames = 'root';\n\nexport interface UnstyledButtonProps\n extends Omit,\n StylesApiProps {\n __staticSelector?: string;\n}\n\nconst defaultProps: Partial = {\n __staticSelector: 'UnstyledButton',\n};\n\nexport type UnstyledButtonFactory = PolymorphicFactory<{\n props: UnstyledButtonProps;\n stylesNames: UnstyledButtonStylesNames;\n defaultComponent: 'button';\n defaultRef: HTMLButtonElement;\n}>;\n\nexport const UnstyledButton = polymorphicFactory(\n (_props: UnstyledButtonProps & { component?: any }, ref) => {\n const props = useProps('UnstyledButton', defaultProps, _props);\n const {\n className,\n component = 'button',\n __staticSelector,\n unstyled,\n classNames,\n styles,\n style,\n ...others\n } = props;\n\n const getStyles = useStyles({\n name: __staticSelector!,\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n return (\n \n );\n }\n);\n\nUnstyledButton.classes = classes;\nUnstyledButton.displayName = '@mantine/core/UnstyledButton';\n","function transformModKey(key: string) {\n return key.startsWith('data-') ? key : `data-${key}`;\n}\n\nexport function getMod(props: Record) {\n return Object.keys(props).reduce>((acc, key) => {\n const value = props[key];\n\n if (value === undefined || value === '' || value === false || value === null) {\n return acc;\n }\n\n acc[transformModKey(key)] = props[key];\n return acc;\n }, {});\n}\n\nexport function getBoxMod(mod?: any): Record | null {\n if (!mod) {\n return null;\n }\n\n if (typeof mod === 'string') {\n return { [transformModKey(mod)]: true };\n }\n\n if (Array.isArray(mod)) {\n return [...mod].reduce>(\n (acc, value) => ({ ...acc, ...getBoxMod(value) }),\n {}\n );\n }\n\n return getMod(mod);\n}\n","import type { MantineTheme } from '../../MantineProvider';\nimport type { CssVarsProp, MantineStyleProp } from '../Box.types';\n\ninterface GetBoxStyleOptions {\n theme: MantineTheme;\n styleProps: React.CSSProperties;\n style?: MantineStyleProp;\n vars?: CssVarsProp;\n}\n\nfunction mergeStyles(\n styles: MantineStyleProp | CssVarsProp | undefined,\n theme: MantineTheme\n): React.CSSProperties {\n if (Array.isArray(styles)) {\n return [...styles].reduce>(\n (acc, item) => ({ ...acc, ...mergeStyles(item, theme) }),\n {}\n );\n }\n\n if (typeof styles === 'function') {\n return styles(theme);\n }\n\n if (styles == null) {\n return {};\n }\n\n return styles;\n}\n\nexport function getBoxStyle({\n theme,\n style,\n vars,\n styleProps,\n}: GetBoxStyleOptions): React.CSSProperties {\n const _style = mergeStyles(style, theme);\n const _vars = mergeStyles(vars, theme);\n return { ..._style, ..._vars, ...styleProps };\n}\n","import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { createPolymorphicComponent } from '../factory';\nimport { InlineStyles } from '../InlineStyles';\nimport { MantineBreakpoint, useMantineSxTransform, useMantineTheme } from '../MantineProvider';\nimport { isNumberLike } from '../utils';\nimport type { CssVarsProp, MantineStyleProp } from './Box.types';\nimport { getBoxMod } from './get-box-mod/get-box-mod';\nimport { getBoxStyle } from './get-box-style/get-box-style';\nimport {\n extractStyleProps,\n MantineStyleProps,\n parseStyleProps,\n STYlE_PROPS_DATA,\n} from './style-props';\nimport { useRandomClassName } from './use-random-classname/use-random-classname';\n\nexport type Mod = Record | string;\nexport type BoxMod = Mod | Mod[] | BoxMod[];\n\nexport interface BoxProps extends MantineStyleProps {\n /** Class added to the root element, if applicable */\n className?: string;\n\n /** Inline style added to root component element, can subscribe to theme defined on MantineProvider */\n style?: MantineStyleProp;\n\n /** CSS variables defined on root component element */\n __vars?: CssVarsProp;\n\n /** `size` property passed down the HTML element */\n __size?: string;\n\n /** Breakpoint above which the component is hidden with `display: none` */\n hiddenFrom?: MantineBreakpoint;\n\n /** Breakpoint below which the component is hidden with `display: none` */\n visibleFrom?: MantineBreakpoint;\n\n /** Determines whether component should be hidden in light color scheme with `display: none` */\n lightHidden?: boolean;\n\n /** Determines whether component should be hidden in dark color scheme with `display: none` */\n darkHidden?: boolean;\n\n /** Element modifiers transformed into `data-` attributes, for example, `{ 'data-size': 'xl' }`, falsy values are removed */\n mod?: BoxMod;\n}\n\nexport type ElementProps<\n ElementType extends React.ElementType,\n PropsToOmit extends string = never,\n> = Omit, 'style' | PropsToOmit>;\n\nexport interface BoxComponentProps extends BoxProps {\n /** Variant passed from parent component, sets `data-variant` */\n variant?: string;\n\n /** Size passed from parent component, sets `data-size` if value is not number like */\n size?: string | number;\n}\n\nconst _Box = forwardRef<\n HTMLDivElement,\n BoxComponentProps & { component: any; className: string; renderRoot: any }\n>(\n (\n {\n component,\n style,\n __vars,\n className,\n variant,\n mod,\n size,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n renderRoot,\n __size,\n ...others\n },\n ref\n ) => {\n const theme = useMantineTheme();\n const Element = component || 'div';\n const { styleProps, rest } = extractStyleProps(others);\n const useSxTransform = useMantineSxTransform();\n const transformedSx = useSxTransform?.()?.(styleProps.sx);\n const responsiveClassName = useRandomClassName();\n const parsedStyleProps = parseStyleProps({\n styleProps,\n theme,\n data: STYlE_PROPS_DATA,\n });\n\n const props = {\n ref,\n style: getBoxStyle({\n theme,\n style,\n vars: __vars,\n styleProps: parsedStyleProps.inlineStyles,\n }),\n className: cx(className, transformedSx, {\n [responsiveClassName]: parsedStyleProps.hasResponsiveStyles,\n 'mantine-light-hidden': lightHidden,\n 'mantine-dark-hidden': darkHidden,\n [`mantine-hidden-from-${hiddenFrom}`]: hiddenFrom,\n [`mantine-visible-from-${visibleFrom}`]: visibleFrom,\n }),\n 'data-variant': variant,\n 'data-size': isNumberLike(size) ? undefined : size || undefined,\n size: __size,\n ...getBoxMod(mod),\n ...rest,\n };\n\n return (\n <>\n {parsedStyleProps.hasResponsiveStyles && (\n \n )}\n\n {typeof renderRoot === 'function' ? renderRoot(props) : }\n \n );\n }\n);\n\n_Box.displayName = '@mantine/core/Box';\n\nexport const Box = createPolymorphicComponent<'div', BoxComponentProps>(_Box);\n","import { filterProps } from '../../../utils';\nimport type { MantineStyleProps } from '../style-props.types';\n\nexport function extractStyleProps>(\n others: MantineStyleProps & T\n): { styleProps: MantineStyleProps & { sx?: any }; rest: T } {\n const {\n m,\n mx,\n my,\n mt,\n mb,\n ml,\n mr,\n me,\n ms,\n p,\n px,\n py,\n pt,\n pb,\n pl,\n pr,\n pe,\n ps,\n bd,\n bg,\n c,\n opacity,\n ff,\n fz,\n fw,\n lts,\n ta,\n lh,\n fs,\n tt,\n td,\n w,\n miw,\n maw,\n h,\n mih,\n mah,\n bgsz,\n bgp,\n bgr,\n bga,\n pos,\n top,\n left,\n bottom,\n right,\n inset,\n display,\n flex,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n sx,\n ...rest\n } = others;\n\n const styleProps = filterProps({\n m,\n mx,\n my,\n mt,\n mb,\n ml,\n mr,\n me,\n ms,\n p,\n px,\n py,\n pt,\n pb,\n pl,\n pr,\n pe,\n ps,\n bd,\n bg,\n c,\n opacity,\n ff,\n fz,\n fw,\n lts,\n ta,\n lh,\n fs,\n tt,\n td,\n w,\n miw,\n maw,\n h,\n mih,\n mah,\n bgsz,\n bgp,\n bgr,\n bga,\n pos,\n top,\n left,\n bottom,\n right,\n inset,\n display,\n flex,\n hiddenFrom,\n visibleFrom,\n lightHidden,\n darkHidden,\n sx,\n });\n\n return { styleProps, rest: rest as unknown as T };\n}\n","import { MantineTheme, parseThemeColor } from '../../../../MantineProvider';\n\nexport function colorResolver(color: unknown, theme: MantineTheme) {\n const parsedColor = parseThemeColor({ color, theme });\n\n if (parsedColor.color === 'dimmed') {\n return 'var(--mantine-color-dimmed)';\n }\n\n if (parsedColor.color === 'bright') {\n return 'var(--mantine-color-bright)';\n }\n return parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;\n}\n\nexport function textColorResolver(color: unknown, theme: MantineTheme) {\n const parsedColor = parseThemeColor({ color, theme });\n\n if (parsedColor.isThemeColor && parsedColor.shade === undefined) {\n return `var(--mantine-color-${parsedColor.color}-text)`;\n }\n\n return colorResolver(color, theme);\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\nimport { colorResolver } from '../color-resolver/color-resolver';\n\nexport function borderResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n const [size, style, ...colorTuple] = value.split(' ').filter((val) => val.trim() !== '');\n let result = `${rem(size)}`;\n style && (result += ` ${style}`);\n colorTuple.length > 0 && (result += ` ${colorResolver(colorTuple.join(' '), theme)}`);\n return result.trim();\n }\n\n return value;\n}\n","const values = {\n text: 'var(--mantine-font-family)',\n mono: 'var(--mantine-font-family-monospace)',\n monospace: 'var(--mantine-font-family-monospace)',\n heading: 'var(--mantine-font-family-headings)',\n headings: 'var(--mantine-font-family-headings)',\n};\n\nexport function fontFamilyResolver(fontFamily: unknown) {\n if (typeof fontFamily === 'string' && fontFamily in values) {\n return values[fontFamily as keyof typeof values];\n }\n\n return fontFamily;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\n\nconst headings = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\nexport function fontSizeResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'string' && value in theme.fontSizes) {\n return `var(--mantine-font-size-${value})`;\n }\n\n if (typeof value === 'string' && headings.includes(value)) {\n return `var(--mantine-${value}-font-size)`;\n }\n\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n return rem(value);\n }\n\n return value;\n}\n","export function identityResolver(value: unknown) {\n return value;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\n\nconst headings = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\nexport function lineHeightResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'string' && value in theme.lineHeights) {\n return `var(--mantine-line-height-${value})`;\n }\n\n if (typeof value === 'string' && headings.includes(value)) {\n return `var(--mantine-${value}-line-height)`;\n }\n\n return value;\n}\n","import { rem } from '../../../../utils';\n\nexport function sizeResolver(value: unknown) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n return value;\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\n\nexport function spacingResolver(value: unknown, theme: MantineTheme) {\n if (typeof value === 'number') {\n return rem(value);\n }\n\n if (typeof value === 'string') {\n const mod = value.replace('-', '');\n\n if (!(mod in theme.spacing)) {\n return rem(value);\n }\n\n const variable = `--mantine-spacing-${mod}`;\n return value.startsWith('-') ? `calc(var(${variable}) * -1)` : `var(${variable})`;\n }\n\n return value;\n}\n","import { borderResolver } from './border-resolver/border-resolver';\nimport { colorResolver, textColorResolver } from './color-resolver/color-resolver';\nimport { fontFamilyResolver } from './font-family-resolver/font-family-resolver';\nimport { fontSizeResolver } from './font-size-resolver/font-size-resolver';\nimport { identityResolver } from './identity-resolver/identity-resolver';\nimport { lineHeightResolver } from './line-height-resolver/line-height-resolver';\nimport { sizeResolver } from './size-resolver/size-resolver';\nimport { spacingResolver } from './spacing-resolver/spacing-resolver';\n\nexport const resolvers = {\n color: colorResolver,\n textColor: textColorResolver,\n fontSize: fontSizeResolver,\n spacing: spacingResolver,\n identity: identityResolver,\n size: sizeResolver,\n lineHeight: lineHeightResolver,\n fontFamily: fontFamilyResolver,\n border: borderResolver,\n};\n\nexport type StylePropType = keyof typeof resolvers;\n","import type { InlineStylesMediaQuery } from '../../../InlineStyles';\nimport type { ParseStylePropsResult } from './parse-style-props';\n\nexport interface SortMediaQueriesResult extends Omit {\n media: InlineStylesMediaQuery[];\n}\n\nfunction replaceMediaQuery(query: string) {\n return query.replace('(min-width: ', '').replace('em)', '');\n}\n\nexport function sortMediaQueries({\n media,\n ...props\n}: ParseStylePropsResult): SortMediaQueriesResult {\n const breakpoints = Object.keys(media);\n const sortedMedia = breakpoints\n .sort((a, b) => Number(replaceMediaQuery(a)) - Number(replaceMediaQuery(b)))\n .map((query) => ({ query, styles: media[query] }));\n\n return { ...props, media: sortedMedia };\n}\n","import { MantineTheme } from '../../../MantineProvider';\nimport { keys } from '../../../utils';\nimport { resolvers } from '../resolvers';\nimport type { SystemPropData } from '../style-props-data';\nimport type { StyleProp } from '../style-props.types';\nimport { sortMediaQueries, SortMediaQueriesResult } from './sort-media-queries';\n\nfunction hasResponsiveStyles(styleProp: StyleProp) {\n if (typeof styleProp !== 'object' || styleProp === null) {\n return false;\n }\n\n const breakpoints = Object.keys(styleProp);\n\n if (breakpoints.length === 1 && breakpoints[0] === 'base') {\n return false;\n }\n\n return true;\n}\n\nfunction getBaseValue(value: StyleProp) {\n if (typeof value === 'object' && value !== null) {\n if ('base' in value) {\n return value.base;\n }\n\n return undefined;\n }\n\n return value;\n}\n\nfunction getBreakpointKeys(value: StyleProp) {\n if (typeof value === 'object' && value !== null) {\n return keys(value).filter((key) => key !== 'base');\n }\n\n return [];\n}\n\nfunction getBreakpointValue(value: StyleProp, breakpoint: string) {\n if (typeof value === 'object' && value !== null && breakpoint in value) {\n return value[breakpoint as keyof typeof value];\n }\n\n return value;\n}\n\ninterface ParseStylePropsOptions {\n styleProps: Record>;\n theme: MantineTheme;\n data: Record;\n}\n\nexport interface ParseStylePropsResult {\n hasResponsiveStyles: boolean;\n inlineStyles: React.CSSProperties;\n styles: React.CSSProperties;\n media: Record;\n}\n\nexport function parseStyleProps({\n styleProps,\n data,\n theme,\n}: ParseStylePropsOptions): SortMediaQueriesResult {\n return sortMediaQueries(\n keys(styleProps).reduce<{\n hasResponsiveStyles: boolean;\n inlineStyles: Record;\n styles: Record;\n media: Record>;\n }>(\n (acc, styleProp) => {\n if (\n (styleProp as string) === 'hiddenFrom' ||\n (styleProp as string) === 'visibleFrom' ||\n (styleProp as string) === 'sx'\n ) {\n return acc;\n }\n\n const propertyData = data[styleProp];\n const properties = Array.isArray(propertyData.property)\n ? propertyData.property\n : [propertyData.property];\n const baseValue = getBaseValue(styleProps[styleProp]);\n\n if (!hasResponsiveStyles(styleProps[styleProp])) {\n properties.forEach((property) => {\n acc.inlineStyles[property] = resolvers[propertyData.type](baseValue, theme);\n });\n\n return acc;\n }\n\n acc.hasResponsiveStyles = true;\n\n const breakpoints = getBreakpointKeys(styleProps[styleProp]);\n\n properties.forEach((property) => {\n if (baseValue) {\n acc.styles[property] = resolvers[propertyData.type](baseValue, theme);\n }\n\n breakpoints.forEach((breakpoint) => {\n const bp = `(min-width: ${theme.breakpoints[breakpoint]})`;\n acc.media[bp] = {\n ...acc.media[bp],\n [property]: resolvers[propertyData.type](\n getBreakpointValue(styleProps[styleProp], breakpoint),\n theme\n ),\n };\n });\n });\n\n return acc;\n },\n {\n hasResponsiveStyles: false,\n styles: {},\n inlineStyles: {},\n media: {},\n }\n )\n );\n}\n","import type { StylePropType } from './resolvers';\nimport type { MantineStyleProps } from './style-props.types';\n\nexport interface SystemPropData {\n type: StylePropType;\n property: string | string[];\n}\n\nexport const STYlE_PROPS_DATA: Record = {\n m: { type: 'spacing', property: 'margin' },\n mt: { type: 'spacing', property: 'marginTop' },\n mb: { type: 'spacing', property: 'marginBottom' },\n ml: { type: 'spacing', property: 'marginLeft' },\n mr: { type: 'spacing', property: 'marginRight' },\n ms: { type: 'spacing', property: 'marginInlineStart' },\n me: { type: 'spacing', property: 'marginInlineEnd' },\n mx: { type: 'spacing', property: 'marginInline' },\n my: { type: 'spacing', property: 'marginBlock' },\n\n p: { type: 'spacing', property: 'padding' },\n pt: { type: 'spacing', property: 'paddingTop' },\n pb: { type: 'spacing', property: 'paddingBottom' },\n pl: { type: 'spacing', property: 'paddingLeft' },\n pr: { type: 'spacing', property: 'paddingRight' },\n ps: { type: 'spacing', property: 'paddingInlineStart' },\n pe: { type: 'spacing', property: 'paddingInlineEnd' },\n px: { type: 'spacing', property: 'paddingInline' },\n py: { type: 'spacing', property: 'paddingBlock' },\n\n bd: { type: 'border', property: 'border' },\n bg: { type: 'color', property: 'background' },\n c: { type: 'textColor', property: 'color' },\n opacity: { type: 'identity', property: 'opacity' },\n\n ff: { type: 'fontFamily', property: 'fontFamily' },\n fz: { type: 'fontSize', property: 'fontSize' },\n fw: { type: 'identity', property: 'fontWeight' },\n lts: { type: 'size', property: 'letterSpacing' },\n ta: { type: 'identity', property: 'textAlign' },\n lh: { type: 'lineHeight', property: 'lineHeight' },\n fs: { type: 'identity', property: 'fontStyle' },\n tt: { type: 'identity', property: 'textTransform' },\n td: { type: 'identity', property: 'textDecoration' },\n\n w: { type: 'spacing', property: 'width' },\n miw: { type: 'spacing', property: 'minWidth' },\n maw: { type: 'spacing', property: 'maxWidth' },\n h: { type: 'spacing', property: 'height' },\n mih: { type: 'spacing', property: 'minHeight' },\n mah: { type: 'spacing', property: 'maxHeight' },\n\n bgsz: { type: 'size', property: 'backgroundSize' },\n bgp: { type: 'identity', property: 'backgroundPosition' },\n bgr: { type: 'identity', property: 'backgroundRepeat' },\n bga: { type: 'identity', property: 'backgroundAttachment' },\n\n pos: { type: 'identity', property: 'position' },\n top: { type: 'size', property: 'top' },\n left: { type: 'size', property: 'left' },\n bottom: { type: 'size', property: 'bottom' },\n right: { type: 'size', property: 'right' },\n inset: { type: 'size', property: 'inset' },\n\n display: { type: 'identity', property: 'display' },\n flex: { type: 'identity', property: 'flex' },\n};\n","import { useId } from 'react';\n\nexport function useRandomClassName() {\n const id = useId().replace(/:/g, '');\n return `__m__-${id}`;\n}\n","import { useMantineStyleNonce } from '../MantineProvider';\nimport { InlineStylesInput, stylesToString } from './styles-to-string/styles-to-string';\n\nexport interface InlineStylesProps\n extends InlineStylesInput,\n Omit, keyof InlineStylesInput> {}\n\nexport function InlineStyles(props: InlineStylesInput) {\n const nonce = useMantineStyleNonce();\n return (\n \n );\n}\n","import { camelToKebabCase, keys } from '../../utils';\n\nexport function cssObjectToString(css: React.CSSProperties) {\n return keys(css)\n .reduce(\n (acc, rule) =>\n css[rule] !== undefined ? `${acc}${camelToKebabCase(rule)}:${css[rule]};` : acc,\n ''\n )\n .trim();\n}\n","import { cssObjectToString } from '../css-object-to-string/css-object-to-string';\n\nexport interface InlineStylesMediaQuery {\n query: string;\n styles: React.CSSProperties;\n}\n\nexport interface InlineStylesInput {\n selector: string;\n styles?: React.CSSProperties;\n media?: InlineStylesMediaQuery[];\n container?: InlineStylesMediaQuery[];\n}\n\nexport function stylesToString({ selector, styles, media, container }: InlineStylesInput) {\n const baseStyles = styles ? cssObjectToString(styles) : '';\n const mediaQueryStyles = !Array.isArray(media)\n ? []\n : media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);\n\n const containerStyles = !Array.isArray(container)\n ? []\n : container.map(\n (item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`\n );\n\n return `${baseStyles ? `${selector}{${baseStyles}}` : ''}${mediaQueryStyles.join('')}${containerStyles.join('')}`.trim();\n}\n","import { createContext, useContext } from 'react';\nimport { ConvertCSSVariablesInput } from './convert-css-variables';\nimport type { MantineColorScheme, MantineTheme } from './theme.types';\n\nexport interface MantineStylesTransform {\n sx?: () => (sx: any) => string;\n styles?: () => (styles: any, payload: any) => Record;\n}\n\ninterface MantineContextValue {\n colorScheme: MantineColorScheme;\n setColorScheme: (colorScheme: MantineColorScheme) => void;\n clearColorScheme: () => void;\n getRootElement: () => HTMLElement | undefined;\n classNamesPrefix: string;\n getStyleNonce?: () => string | undefined;\n cssVariablesResolver?: (theme: MantineTheme) => ConvertCSSVariablesInput;\n cssVariablesSelector: string;\n withStaticClasses: boolean;\n headless?: boolean;\n stylesTransform?: MantineStylesTransform;\n env?: 'default' | 'test';\n}\n\nexport const MantineContext = createContext(null);\n\nexport function useMantineContext() {\n const ctx = useContext(MantineContext);\n\n if (!ctx) {\n throw new Error('[@mantine/core] MantineProvider was not found in tree');\n }\n\n return ctx;\n}\n\nexport function useMantineCssVariablesResolver() {\n return useMantineContext().cssVariablesResolver;\n}\n\nexport function useMantineClassNamesPrefix() {\n return useMantineContext().classNamesPrefix;\n}\n\nexport function useMantineStyleNonce() {\n return useMantineContext().getStyleNonce;\n}\n\nexport function useMantineWithStaticClasses() {\n return useMantineContext().withStaticClasses;\n}\n\nexport function useMantineIsHeadless() {\n return useMantineContext().headless;\n}\n\nexport function useMantineSxTransform() {\n return useMantineContext().stylesTransform?.sx;\n}\n\nexport function useMantineStylesTransform() {\n return useMantineContext().stylesTransform?.styles;\n}\n\nexport function useMantineEnv() {\n return useMantineContext().env || 'default';\n}\n","import { deepMerge } from '../../utils/deep-merge/deep-merge.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\n\nconst INVALID_PRIMARY_COLOR_ERROR = \"[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \\u2013 https://mantine.dev/theming/colors/#primary-color\";\nconst INVALID_PRIMARY_SHADE_ERROR = \"[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }\";\nfunction isValidPrimaryShade(shade) {\n if (shade < 0 || shade > 9) {\n return false;\n }\n return parseInt(shade.toString(), 10) === shade;\n}\nfunction validateMantineTheme(theme) {\n if (!(theme.primaryColor in theme.colors)) {\n throw new Error(INVALID_PRIMARY_COLOR_ERROR);\n }\n if (typeof theme.primaryShade === \"object\") {\n if (!isValidPrimaryShade(theme.primaryShade.dark) || !isValidPrimaryShade(theme.primaryShade.light)) {\n throw new Error(INVALID_PRIMARY_SHADE_ERROR);\n }\n }\n if (typeof theme.primaryShade === \"number\" && !isValidPrimaryShade(theme.primaryShade)) {\n throw new Error(INVALID_PRIMARY_SHADE_ERROR);\n }\n}\nfunction mergeMantineTheme(currentTheme, themeOverride) {\n if (!themeOverride) {\n validateMantineTheme(currentTheme);\n return currentTheme;\n }\n const result = deepMerge(currentTheme, themeOverride);\n if (themeOverride.fontFamily && !themeOverride.headings?.fontFamily) {\n result.headings.fontFamily = themeOverride.fontFamily;\n }\n validateMantineTheme(result);\n return result;\n}\n\nexport { INVALID_PRIMARY_COLOR_ERROR, INVALID_PRIMARY_SHADE_ERROR, mergeMantineTheme, validateMantineTheme };\n//# sourceMappingURL=merge-mantine-theme.mjs.map\n","import { createContext, useContext, useMemo } from 'react';\nimport { DEFAULT_THEME } from '../default-theme';\nimport { mergeMantineTheme } from '../merge-mantine-theme';\nimport { MantineTheme, MantineThemeOverride } from '../theme.types';\n\nexport const MantineThemeContext = createContext(null);\n\nexport const useSafeMantineTheme = () => useContext(MantineThemeContext) || DEFAULT_THEME;\n\nexport function useMantineTheme() {\n const ctx = useContext(MantineThemeContext);\n if (!ctx) {\n throw new Error(\n '@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app'\n );\n }\n\n return ctx;\n}\n\nexport interface MantineThemeProviderProps {\n /** Determines whether theme should be inherited from parent MantineProvider, `true` by default */\n inherit?: boolean;\n\n /** Theme override object */\n theme?: MantineThemeOverride;\n\n /** Your application or part of the application that requires different theme */\n children?: React.ReactNode;\n}\n\nexport function MantineThemeProvider({\n theme,\n children,\n inherit = true,\n}: MantineThemeProviderProps) {\n const parentTheme = useSafeMantineTheme();\n const mergedTheme = useMemo(\n () => mergeMantineTheme(inherit ? parentTheme : DEFAULT_THEME, theme),\n [theme, parentTheme, inherit]\n );\n\n return (\n {children}\n );\n}\n\nMantineThemeProvider.displayName = '@mantine/core/MantineThemeProvider';\n","import { toRgba } from '../to-rgba/to-rgba.mjs';\n\nfunction darken(color, alpha) {\n if (color.startsWith(\"var(\")) {\n return `color-mix(in srgb, ${color}, black ${alpha * 100}%)`;\n }\n const { r, g, b, a } = toRgba(color);\n const f = 1 - alpha;\n const dark = (input) => Math.round(input * f);\n return `rgba(${dark(r)}, ${dark(g)}, ${dark(b)}, ${a})`;\n}\n\nexport { darken };\n//# sourceMappingURL=darken.mjs.map\n","import { rem } from '../../../utils';\nimport { MantineColor, MantineGradient, MantineTheme } from '../../theme.types';\nimport { darken } from '../darken/darken';\nimport { getGradient } from '../get-gradient/get-gradient';\nimport { parseThemeColor } from '../parse-theme-color/parse-theme-color';\nimport { rgba } from '../rgba/rgba';\n\nexport interface VariantColorsResolverInput {\n color: MantineColor | undefined;\n theme: MantineTheme;\n variant: string;\n gradient?: MantineGradient;\n autoContrast?: boolean;\n}\n\nexport interface VariantColorResolverResult {\n background: string;\n hover: string;\n color: string;\n border: string;\n hoverColor?: string;\n}\n\nexport type VariantColorsResolver = (\n input: VariantColorsResolverInput\n) => VariantColorResolverResult;\n\nexport const defaultVariantColorsResolver: VariantColorsResolver = ({\n color,\n theme,\n variant,\n gradient,\n autoContrast,\n}) => {\n const parsed = parseThemeColor({ color, theme });\n\n const _autoContrast = typeof autoContrast === 'boolean' ? autoContrast : theme.autoContrast;\n\n if (variant === 'filled') {\n const textColor = _autoContrast\n ? parsed.isLight\n ? 'var(--mantine-color-black)'\n : 'var(--mantine-color-white)'\n : 'var(--mantine-color-white)';\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: `var(--mantine-color-${color}-filled)`,\n hover: `var(--mantine-color-${color}-filled-hover)`,\n color: textColor,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n hover: `var(--mantine-color-${parsed.color}-${parsed.shade === 9 ? 8 : parsed.shade + 1})`,\n color: textColor,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: color!,\n hover: darken(color!, 0.1),\n color: textColor,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n if (variant === 'light') {\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: `var(--mantine-color-${color}-light)`,\n hover: `var(--mantine-color-${color}-light-hover)`,\n color: `var(--mantine-color-${color}-light-color)`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n const parsedColor = theme.colors[parsed.color][parsed.shade];\n\n return {\n background: rgba(parsedColor, 0.1),\n hover: rgba(parsedColor, 0.12),\n color: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: rgba(color!, 0.1),\n hover: rgba(color!, 0.12),\n color: color!,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n if (variant === 'outline') {\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: 'transparent',\n hover: `var(--mantine-color-${color}-outline-hover)`,\n color: `var(--mantine-color-${color}-outline)`,\n border: `${rem(1)} solid var(--mantine-color-${color}-outline)`,\n };\n }\n\n return {\n background: 'transparent',\n hover: rgba(theme.colors[parsed.color][parsed.shade], 0.05),\n color: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n border: `${rem(1)} solid var(--mantine-color-${parsed.color}-${parsed.shade})`,\n };\n }\n\n return {\n background: 'transparent',\n hover: rgba(color!, 0.05),\n color: color!,\n border: `${rem(1)} solid ${color}`,\n };\n }\n\n if (variant === 'subtle') {\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: 'transparent',\n hover: `var(--mantine-color-${color}-light-hover)`,\n color: `var(--mantine-color-${color}-light-color)`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n const parsedColor = theme.colors[parsed.color][parsed.shade];\n\n return {\n background: 'transparent',\n hover: rgba(parsedColor, 0.12),\n color: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: 'transparent',\n hover: rgba(color!, 0.12),\n color: color!,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n if (variant === 'transparent') {\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: 'transparent',\n hover: 'transparent',\n color: `var(--mantine-color-${color}-light-color)`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: 'transparent',\n hover: 'transparent',\n color: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: 'transparent',\n hover: 'transparent',\n color: color!,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n if (variant === 'white') {\n if (parsed.isThemeColor) {\n if (parsed.shade === undefined) {\n return {\n background: 'var(--mantine-color-white)',\n hover: darken(theme.white, 0.01),\n color: `var(--mantine-color-${color}-filled)`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: 'var(--mantine-color-white)',\n hover: darken(theme.white, 0.01),\n color: `var(--mantine-color-${parsed.color}-${parsed.shade})`,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n return {\n background: 'var(--mantine-color-white)',\n hover: darken(theme.white, 0.01),\n color: color!,\n border: `${rem(1)} solid transparent`,\n };\n }\n\n if (variant === 'gradient') {\n return {\n background: getGradient(gradient, theme),\n hover: getGradient(gradient, theme),\n color: 'var(--mantine-color-white)',\n border: 'none',\n };\n }\n\n if (variant === 'default') {\n return {\n background: 'var(--mantine-color-default)',\n hover: 'var(--mantine-color-default-hover)',\n color: 'var(--mantine-color-default-color)',\n border: `${rem(1)} solid var(--mantine-color-default-border)`,\n };\n }\n\n return {} as VariantColorResolverResult;\n};\n","import { MantineGradient, MantineTheme } from '../../theme.types';\nimport { getThemeColor } from '../get-theme-color/get-theme-color';\n\nexport function getGradient(gradient: MantineGradient | undefined, theme: MantineTheme) {\n const merged = {\n from: gradient?.from || theme.defaultGradient.from,\n to: gradient?.to || theme.defaultGradient.to,\n deg: gradient?.deg ?? theme.defaultGradient.deg ?? 0,\n };\n\n const fromColor = getThemeColor(merged.from, theme);\n const toColor = getThemeColor(merged.to, theme);\n\n return `linear-gradient(${merged.deg}deg, ${fromColor} 0%, ${toColor} 100%)`;\n}\n","import type { MantineColorScheme, MantineTheme } from '../../theme.types';\n\nexport function getPrimaryShade(theme: MantineTheme, colorScheme: MantineColorScheme) {\n if (typeof theme.primaryShade === 'number') {\n return theme.primaryShade;\n }\n\n if (colorScheme === 'dark') {\n return theme.primaryShade.dark;\n }\n\n return theme.primaryShade.light;\n}\n","import type { MantineTheme } from '../../theme.types';\nimport { parseThemeColor } from '../parse-theme-color/parse-theme-color';\n\nexport function getThemeColor(color: string | undefined | null, theme: MantineTheme) {\n const parsed = parseThemeColor({ color: color || theme.primaryColor, theme });\n return parsed.variable ? `var(${parsed.variable})` : color!;\n}\n","import { toRgba } from '../to-rgba/to-rgba.mjs';\n\nfunction gammaCorrect(c) {\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n}\nfunction getLightnessFromOklch(oklchColor) {\n const match = oklchColor.match(/oklch\\((.*?)%\\s/);\n return match ? parseFloat(match[1]) : null;\n}\nfunction luminance(color) {\n if (color.startsWith(\"oklch(\")) {\n return (getLightnessFromOklch(color) || 0) / 100;\n }\n const { r, g, b } = toRgba(color);\n const sR = r / 255;\n const sG = g / 255;\n const sB = b / 255;\n const rLinear = gammaCorrect(sR);\n const gLinear = gammaCorrect(sG);\n const bLinear = gammaCorrect(sB);\n return 0.2126 * rLinear + 0.7152 * gLinear + 0.0722 * bLinear;\n}\nfunction isLightColor(color, luminanceThreshold = 0.179) {\n if (color.startsWith(\"var(\")) {\n return false;\n }\n return luminance(color) > luminanceThreshold;\n}\n\nexport { isLightColor, luminance };\n//# sourceMappingURL=luminance.mjs.map\n","import type { CssVariable } from '../../../Box';\nimport type { MantineColorScheme, MantineColorShade, MantineTheme } from '../../theme.types';\nimport { getPrimaryShade } from '../get-primary-shade/get-primary-shade';\nimport { isLightColor } from '../luminance/luminance';\n\ninterface ParseThemeColorOptions {\n color: unknown;\n theme: MantineTheme;\n colorScheme?: MantineColorScheme;\n}\n\ninterface ParseThemeColorResult {\n color: string;\n value: string;\n shade: MantineColorShade | undefined;\n variable: CssVariable | undefined;\n isThemeColor: boolean;\n isLight: boolean;\n}\n\nexport function parseThemeColor({\n color,\n theme,\n colorScheme,\n}: ParseThemeColorOptions): ParseThemeColorResult {\n if (typeof color !== 'string') {\n throw new Error(\n `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof color}`\n );\n }\n\n if (color === 'bright') {\n return {\n color,\n value: colorScheme === 'dark' ? theme.white : theme.black,\n shade: undefined,\n isThemeColor: false,\n isLight: isLightColor(\n colorScheme === 'dark' ? theme.white : theme.black,\n theme.luminanceThreshold\n ),\n variable: '--mantine-color-bright',\n };\n }\n\n if (color === 'dimmed') {\n return {\n color,\n value: colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[7],\n shade: undefined,\n isThemeColor: false,\n isLight: isLightColor(\n colorScheme === 'dark' ? theme.colors.dark[2] : theme.colors.gray[6],\n theme.luminanceThreshold\n ),\n variable: '--mantine-color-dimmed',\n };\n }\n\n if (color === 'white' || color === 'black') {\n return {\n color,\n value: color === 'white' ? theme.white : theme.black,\n shade: undefined,\n isThemeColor: false,\n isLight: isLightColor(\n color === 'white' ? theme.white : theme.black,\n theme.luminanceThreshold\n ),\n variable: `--mantine-color-${color}`,\n };\n }\n\n const [_color, shade] = color.split('.');\n const colorShade = shade ? (Number(shade) as MantineColorShade) : undefined;\n const isThemeColor = _color in theme.colors;\n\n if (isThemeColor) {\n const colorValue =\n colorShade !== undefined\n ? theme.colors[_color][colorShade]\n : theme.colors[_color][getPrimaryShade(theme, colorScheme || 'light')];\n\n return {\n color: _color,\n value: colorValue,\n shade: colorShade,\n isThemeColor,\n isLight: isLightColor(colorValue, theme.luminanceThreshold),\n variable: shade\n ? `--mantine-color-${_color}-${colorShade}`\n : `--mantine-color-${_color}-filled`,\n };\n }\n\n return {\n color,\n value: color,\n isThemeColor,\n isLight: isLightColor(color, theme.luminanceThreshold),\n shade: colorShade,\n variable: undefined,\n };\n}\n","import { toRgba } from '../to-rgba/to-rgba.mjs';\n\nfunction rgba(color, alpha2) {\n if (typeof color !== \"string\" || alpha2 > 1 || alpha2 < 0) {\n return \"rgba(0, 0, 0, 1)\";\n }\n if (color.startsWith(\"var(\")) {\n const mixPercentage = (1 - alpha2) * 100;\n return `color-mix(in srgb, ${color}, transparent ${mixPercentage}%)`;\n }\n if (color.startsWith(\"oklch\")) {\n if (color.includes(\"/\")) {\n return color.replace(/\\/\\s*[\\d.]+\\s*\\)/, `/ ${alpha2})`);\n }\n return color.replace(\")\", ` / ${alpha2})`);\n }\n const { r, g, b } = toRgba(color);\n return `rgba(${r}, ${g}, ${b}, ${alpha2})`;\n}\nconst alpha = rgba;\n\nexport { alpha, rgba };\n//# sourceMappingURL=rgba.mjs.map\n","function isHexColor(hex) {\n const HEX_REGEXP = /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i;\n return HEX_REGEXP.test(hex);\n}\nfunction hexToRgba(color) {\n let hexString = color.replace(\"#\", \"\");\n if (hexString.length === 3) {\n const shorthandHex = hexString.split(\"\");\n hexString = [\n shorthandHex[0],\n shorthandHex[0],\n shorthandHex[1],\n shorthandHex[1],\n shorthandHex[2],\n shorthandHex[2]\n ].join(\"\");\n }\n if (hexString.length === 8) {\n const alpha = parseInt(hexString.slice(6, 8), 16) / 255;\n return {\n r: parseInt(hexString.slice(0, 2), 16),\n g: parseInt(hexString.slice(2, 4), 16),\n b: parseInt(hexString.slice(4, 6), 16),\n a: alpha\n };\n }\n const parsed = parseInt(hexString, 16);\n const r = parsed >> 16 & 255;\n const g = parsed >> 8 & 255;\n const b = parsed & 255;\n return {\n r,\n g,\n b,\n a: 1\n };\n}\nfunction rgbStringToRgba(color) {\n const [r, g, b, a] = color.replace(/[^0-9,./]/g, \"\").split(/[/,]/).map(Number);\n return { r, g, b, a: a || 1 };\n}\nfunction hslStringToRgba(hslaString) {\n const hslaRegex = /^hsla?\\(\\s*(\\d+)\\s*,\\s*(\\d+%)\\s*,\\s*(\\d+%)\\s*(,\\s*(0?\\.\\d+|\\d+(\\.\\d+)?))?\\s*\\)$/i;\n const matches = hslaString.match(hslaRegex);\n if (!matches) {\n return {\n r: 0,\n g: 0,\n b: 0,\n a: 1\n };\n }\n const h = parseInt(matches[1], 10);\n const s = parseInt(matches[2], 10) / 100;\n const l = parseInt(matches[3], 10) / 100;\n const a = matches[5] ? parseFloat(matches[5]) : void 0;\n const chroma = (1 - Math.abs(2 * l - 1)) * s;\n const huePrime = h / 60;\n const x = chroma * (1 - Math.abs(huePrime % 2 - 1));\n const m = l - chroma / 2;\n let r;\n let g;\n let b;\n if (huePrime >= 0 && huePrime < 1) {\n r = chroma;\n g = x;\n b = 0;\n } else if (huePrime >= 1 && huePrime < 2) {\n r = x;\n g = chroma;\n b = 0;\n } else if (huePrime >= 2 && huePrime < 3) {\n r = 0;\n g = chroma;\n b = x;\n } else if (huePrime >= 3 && huePrime < 4) {\n r = 0;\n g = x;\n b = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n r = x;\n g = 0;\n b = chroma;\n } else {\n r = chroma;\n g = 0;\n b = x;\n }\n return {\n r: Math.round((r + m) * 255),\n g: Math.round((g + m) * 255),\n b: Math.round((b + m) * 255),\n a: a || 1\n };\n}\nfunction toRgba(color) {\n if (isHexColor(color)) {\n return hexToRgba(color);\n }\n if (color.startsWith(\"rgb\")) {\n return rgbStringToRgba(color);\n }\n if (color.startsWith(\"hsl\")) {\n return hslStringToRgba(color);\n }\n return {\n r: 0,\n g: 0,\n b: 0,\n a: 1\n };\n}\n\nexport { toRgba };\n//# sourceMappingURL=to-rgba.mjs.map\n","const DEFAULT_COLORS = {\n dark: [\n \"#C9C9C9\",\n \"#b8b8b8\",\n \"#828282\",\n \"#696969\",\n \"#424242\",\n \"#3b3b3b\",\n \"#2e2e2e\",\n \"#242424\",\n \"#1f1f1f\",\n \"#141414\"\n ],\n gray: [\n \"#f8f9fa\",\n \"#f1f3f5\",\n \"#e9ecef\",\n \"#dee2e6\",\n \"#ced4da\",\n \"#adb5bd\",\n \"#868e96\",\n \"#495057\",\n \"#343a40\",\n \"#212529\"\n ],\n red: [\n \"#fff5f5\",\n \"#ffe3e3\",\n \"#ffc9c9\",\n \"#ffa8a8\",\n \"#ff8787\",\n \"#ff6b6b\",\n \"#fa5252\",\n \"#f03e3e\",\n \"#e03131\",\n \"#c92a2a\"\n ],\n pink: [\n \"#fff0f6\",\n \"#ffdeeb\",\n \"#fcc2d7\",\n \"#faa2c1\",\n \"#f783ac\",\n \"#f06595\",\n \"#e64980\",\n \"#d6336c\",\n \"#c2255c\",\n \"#a61e4d\"\n ],\n grape: [\n \"#f8f0fc\",\n \"#f3d9fa\",\n \"#eebefa\",\n \"#e599f7\",\n \"#da77f2\",\n \"#cc5de8\",\n \"#be4bdb\",\n \"#ae3ec9\",\n \"#9c36b5\",\n \"#862e9c\"\n ],\n violet: [\n \"#f3f0ff\",\n \"#e5dbff\",\n \"#d0bfff\",\n \"#b197fc\",\n \"#9775fa\",\n \"#845ef7\",\n \"#7950f2\",\n \"#7048e8\",\n \"#6741d9\",\n \"#5f3dc4\"\n ],\n indigo: [\n \"#edf2ff\",\n \"#dbe4ff\",\n \"#bac8ff\",\n \"#91a7ff\",\n \"#748ffc\",\n \"#5c7cfa\",\n \"#4c6ef5\",\n \"#4263eb\",\n \"#3b5bdb\",\n \"#364fc7\"\n ],\n blue: [\n \"#e7f5ff\",\n \"#d0ebff\",\n \"#a5d8ff\",\n \"#74c0fc\",\n \"#4dabf7\",\n \"#339af0\",\n \"#228be6\",\n \"#1c7ed6\",\n \"#1971c2\",\n \"#1864ab\"\n ],\n cyan: [\n \"#e3fafc\",\n \"#c5f6fa\",\n \"#99e9f2\",\n \"#66d9e8\",\n \"#3bc9db\",\n \"#22b8cf\",\n \"#15aabf\",\n \"#1098ad\",\n \"#0c8599\",\n \"#0b7285\"\n ],\n teal: [\n \"#e6fcf5\",\n \"#c3fae8\",\n \"#96f2d7\",\n \"#63e6be\",\n \"#38d9a9\",\n \"#20c997\",\n \"#12b886\",\n \"#0ca678\",\n \"#099268\",\n \"#087f5b\"\n ],\n green: [\n \"#ebfbee\",\n \"#d3f9d8\",\n \"#b2f2bb\",\n \"#8ce99a\",\n \"#69db7c\",\n \"#51cf66\",\n \"#40c057\",\n \"#37b24d\",\n \"#2f9e44\",\n \"#2b8a3e\"\n ],\n lime: [\n \"#f4fce3\",\n \"#e9fac8\",\n \"#d8f5a2\",\n \"#c0eb75\",\n \"#a9e34b\",\n \"#94d82d\",\n \"#82c91e\",\n \"#74b816\",\n \"#66a80f\",\n \"#5c940d\"\n ],\n yellow: [\n \"#fff9db\",\n \"#fff3bf\",\n \"#ffec99\",\n \"#ffe066\",\n \"#ffd43b\",\n \"#fcc419\",\n \"#fab005\",\n \"#f59f00\",\n \"#f08c00\",\n \"#e67700\"\n ],\n orange: [\n \"#fff4e6\",\n \"#ffe8cc\",\n \"#ffd8a8\",\n \"#ffc078\",\n \"#ffa94d\",\n \"#ff922b\",\n \"#fd7e14\",\n \"#f76707\",\n \"#e8590c\",\n \"#d9480f\"\n ]\n};\n\nexport { DEFAULT_COLORS };\n//# sourceMappingURL=default-colors.mjs.map\n","import { rem } from '../utils/units-converters/rem.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport { defaultVariantColorsResolver } from './color-functions/default-variant-colors-resolver/default-variant-colors-resolver.mjs';\nimport { DEFAULT_COLORS } from './default-colors.mjs';\n\nconst DEFAULT_FONT_FAMILY = \"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\";\nconst DEFAULT_THEME = {\n scale: 1,\n fontSmoothing: true,\n focusRing: \"auto\",\n white: \"#fff\",\n black: \"#000\",\n colors: DEFAULT_COLORS,\n primaryShade: { light: 6, dark: 8 },\n primaryColor: \"blue\",\n variantColorResolver: defaultVariantColorsResolver,\n autoContrast: false,\n luminanceThreshold: 0.3,\n fontFamily: DEFAULT_FONT_FAMILY,\n fontFamilyMonospace: \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace\",\n respectReducedMotion: false,\n cursorType: \"default\",\n defaultGradient: { from: \"blue\", to: \"cyan\", deg: 45 },\n defaultRadius: \"sm\",\n activeClassName: \"mantine-active\",\n focusClassName: \"\",\n headings: {\n fontFamily: DEFAULT_FONT_FAMILY,\n fontWeight: \"700\",\n textWrap: \"wrap\",\n sizes: {\n h1: { fontSize: rem(34), lineHeight: \"1.3\" },\n h2: { fontSize: rem(26), lineHeight: \"1.35\" },\n h3: { fontSize: rem(22), lineHeight: \"1.4\" },\n h4: { fontSize: rem(18), lineHeight: \"1.45\" },\n h5: { fontSize: rem(16), lineHeight: \"1.5\" },\n h6: { fontSize: rem(14), lineHeight: \"1.5\" }\n }\n },\n fontSizes: {\n xs: rem(12),\n sm: rem(14),\n md: rem(16),\n lg: rem(18),\n xl: rem(20)\n },\n lineHeights: {\n xs: \"1.4\",\n sm: \"1.45\",\n md: \"1.55\",\n lg: \"1.6\",\n xl: \"1.65\"\n },\n radius: {\n xs: rem(2),\n sm: rem(4),\n md: rem(8),\n lg: rem(16),\n xl: rem(32)\n },\n spacing: {\n xs: rem(10),\n sm: rem(12),\n md: rem(16),\n lg: rem(20),\n xl: rem(32)\n },\n breakpoints: {\n xs: \"36em\",\n sm: \"48em\",\n md: \"62em\",\n lg: \"75em\",\n xl: \"88em\"\n },\n shadows: {\n xs: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), 0 ${rem(1)} ${rem(2)} rgba(0, 0, 0, 0.1)`,\n sm: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(10)} ${rem(\n 15\n )} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(7)} ${rem(7)} ${rem(-5)}`,\n md: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(20)} ${rem(\n 25\n )} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(10)} ${rem(10)} ${rem(-5)}`,\n lg: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(28)} ${rem(\n 23\n )} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(12)} ${rem(12)} ${rem(-7)}`,\n xl: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(36)} ${rem(\n 28\n )} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(17)} ${rem(17)} ${rem(-7)}`\n },\n other: {},\n components: {}\n};\n\nexport { DEFAULT_THEME };\n//# sourceMappingURL=default-theme.mjs.map\n","import { filterProps } from '../../utils';\nimport { useMantineTheme } from '../MantineThemeProvider';\n\nexport function useProps, U extends Partial = {}>(\n component: string,\n defaultProps: U,\n props: T\n): T & {\n [Key in Extract]-?: U[Key] | NonNullable;\n} {\n const theme = useMantineTheme();\n const contextPropsPayload = theme.components[component]?.defaultProps;\n const contextProps =\n typeof contextPropsPayload === 'function' ? contextPropsPayload(theme) : contextPropsPayload;\n\n return { ...defaultProps, ...contextProps, ...filterProps(props) };\n}\n","function createPolymorphicComponent(component) {\n return component;\n}\n\nexport { createPolymorphicComponent };\n//# sourceMappingURL=create-polymorphic-component.mjs.map\n","import { forwardRef } from 'react';\nimport type { MantineThemeComponent } from '../MantineProvider';\nimport type { ClassNames, PartialVarsResolver, Styles } from '../styles-api';\n\nexport type DataAttributes = Record<`data-${string}`, any>;\n\nexport interface FactoryPayload {\n props: Record;\n ctx?: any;\n ref?: any;\n stylesNames?: string;\n vars?: any;\n variant?: string;\n staticComponents?: Record;\n // Compound components cannot have classNames, styles and vars on MantineProvider\n compound?: boolean;\n}\n\nexport interface ExtendCompoundComponent {\n defaultProps?: Partial & DataAttributes;\n}\n\nexport interface ExtendsRootComponent {\n defaultProps?: Partial & DataAttributes;\n classNames?: ClassNames;\n styles?: Styles;\n vars?: PartialVarsResolver;\n}\n\nexport type ExtendComponent = Payload['compound'] extends true\n ? ExtendCompoundComponent\n : ExtendsRootComponent;\n\nexport type StaticComponents =\n Input extends Record ? Input : Record;\n\nexport interface ThemeExtend {\n extend: (input: ExtendComponent) => MantineThemeComponent;\n}\n\nexport type ComponentClasses = {\n classes: Payload['stylesNames'] extends string ? Record : never;\n};\n\nexport type MantineComponentStaticProperties =\n ThemeExtend &\n ComponentClasses &\n StaticComponents &\n FactoryComponentWithProps;\n\nexport type FactoryComponentWithProps = {\n withProps: (props: Partial) => React.ForwardRefExoticComponent<\n Payload['props'] &\n React.RefAttributes & {\n component?: any;\n renderRoot?: (props: Record) => React.ReactNode;\n }\n >;\n};\n\nexport type MantineComponent = React.ForwardRefExoticComponent<\n Payload['props'] &\n React.RefAttributes & {\n component?: any;\n renderRoot?: (props: Record) => React.ReactNode;\n }\n> &\n MantineComponentStaticProperties;\n\nexport function identity(value: T): T {\n return value;\n}\n\nexport function getWithProps(Component: T): (props: Partial) => T {\n const _Component = Component as any;\n return (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n <_Component {...fixedProps} {...props} ref={ref as any} />\n )) as any;\n Extended.extend = _Component.extend;\n Extended.displayName = `WithProps(${_Component.displayName})`;\n return Extended;\n };\n}\n\nexport function factory(\n ui: React.ForwardRefRenderFunction\n) {\n const Component = forwardRef(ui) as any;\n\n Component.extend = identity as any;\n Component.withProps = (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n \n )) as any;\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n\n return Component as MantineComponent;\n}\n","import { forwardRef } from 'react';\nimport { PolymorphicComponentProps } from './create-polymorphic-component';\nimport {\n ComponentClasses,\n FactoryPayload,\n identity,\n StaticComponents,\n ThemeExtend,\n} from './factory';\n\nexport interface PolymorphicFactoryPayload extends FactoryPayload {\n defaultComponent: any;\n defaultRef: any;\n}\n\nexport type PolymorphicComponentWithProps = {\n withProps: (\n fixedProps: PolymorphicComponentProps\n ) => (props: PolymorphicComponentProps) => React.ReactElement;\n};\n\nexport function polymorphicFactory(\n ui: React.ForwardRefRenderFunction\n) {\n type ComponentProps = PolymorphicComponentProps;\n\n type _PolymorphicComponent = (\n props: ComponentProps\n ) => React.ReactElement;\n\n type ComponentProperties = Omit>, never>;\n\n type PolymorphicComponent = _PolymorphicComponent &\n ComponentProperties &\n ThemeExtend &\n ComponentClasses &\n PolymorphicComponentWithProps &\n StaticComponents;\n\n const Component = forwardRef(ui) as unknown as PolymorphicComponent;\n Component.withProps = (fixedProps: any) => {\n const Extended = forwardRef((props, ref) => (\n \n )) as any;\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n\n Component.extend = identity as any;\n\n return Component as PolymorphicComponent;\n}\n","import { CssVariable } from '../../Box';\nimport { FactoryPayload } from '../../factory';\nimport { MantineTheme } from '../../MantineProvider';\n\nexport type TransformVars = {\n [Key in keyof V]: V[Key] extends CssVariable ? Record : never;\n};\n\nexport type PartialTransformVars = {\n [Key in keyof V]: V[Key] extends CssVariable\n ? Partial>\n : never;\n};\n\nexport type VarsResolver = (\n theme: MantineTheme,\n props: Payload['props'],\n ctx: Payload['ctx']\n) => TransformVars;\n\nexport type PartialVarsResolver = (\n theme: MantineTheme,\n props: Payload['props'],\n ctx: Payload['ctx']\n) => PartialTransformVars;\n\nexport function createVarsResolver(\n resolver: VarsResolver\n) {\n return resolver;\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../../styles-api.types';\n\ninterface GetGlobalClassNamesOptions {\n theme: MantineTheme;\n unstyled: boolean | undefined;\n options: GetStylesApiOptions | undefined;\n}\n\nexport const FOCUS_CLASS_NAMES = {\n always: 'mantine-focus-always',\n auto: 'mantine-focus-auto',\n never: 'mantine-focus-never',\n} as const;\n\n/** Returns classes that are defined globally (focus and active styles) based on options */\nexport function getGlobalClassNames({ theme, options, unstyled }: GetGlobalClassNamesOptions) {\n return cx(\n options?.focusable && !unstyled && (theme.focusClassName || FOCUS_CLASS_NAMES[theme.focusRing]),\n options?.active && !unstyled && theme.activeClassName\n );\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport type { _ClassNames } from '../get-class-name';\n\nexport interface ResolveClassNamesInput {\n theme: MantineTheme;\n classNames: _ClassNames;\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nconst EMPTY_CLASS_NAMES: Partial> = {};\n\nfunction mergeClassNames(objects: Partial>[]) {\n const merged: Partial> = {};\n\n objects.forEach((obj) => {\n Object.entries(obj).forEach(([key, value]) => {\n if (merged[key]) {\n merged[key] = cx(merged[key], value);\n } else {\n merged[key] = value;\n }\n });\n });\n\n return merged;\n}\n\nexport function resolveClassNames({ theme, classNames, props, stylesCtx }: ResolveClassNamesInput) {\n const arrayClassNames = Array.isArray(classNames) ? classNames : [classNames];\n const resolvedClassNames = arrayClassNames.map((item) =>\n typeof item === 'function' ? item(theme, props, stylesCtx) : item || EMPTY_CLASS_NAMES\n );\n\n return mergeClassNames(resolvedClassNames);\n}\n","import type { MantineTheme } from '../../../../MantineProvider';\nimport type { _Styles } from '../get-style';\n\nexport interface ResolveStylesInput {\n theme: MantineTheme;\n styles: _Styles | _Styles[];\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nexport function resolveStyles({ theme, styles, props, stylesCtx }: ResolveStylesInput) {\n const arrayStyles = Array.isArray(styles) ? styles : [styles];\n\n return arrayStyles.reduce>((acc, style) => {\n if (typeof style === 'function') {\n return { ...acc, ...style(theme, props, stylesCtx) };\n }\n\n return { ...acc, ...style };\n }, {});\n}\n","import { GetStylesApiOptions } from '../../../styles-api.types';\nimport {\n resolveClassNames,\n ResolveClassNamesInput,\n} from '../resolve-class-names/resolve-class-names';\n\ninterface GetOptionsClassNamesInput extends Omit {\n selector: string;\n options: GetStylesApiOptions | undefined;\n}\n\nexport function getOptionsClassNames({\n selector,\n stylesCtx,\n options,\n props,\n theme,\n}: GetOptionsClassNamesInput) {\n return resolveClassNames({\n theme,\n classNames: options?.classNames,\n props: options?.props || props,\n stylesCtx,\n })[selector];\n}\n","import {\n resolveClassNames,\n ResolveClassNamesInput,\n} from '../resolve-class-names/resolve-class-names';\n\ninterface GetResolvedClassNamesOptions extends ResolveClassNamesInput {\n selector: string;\n}\n\nexport function getResolvedClassNames({\n selector,\n stylesCtx,\n theme,\n classNames,\n props,\n}: GetResolvedClassNamesOptions) {\n return resolveClassNames({ theme, classNames, props, stylesCtx })[selector];\n}\n","interface GetRootClassNameInput {\n rootSelector: string;\n selector: string;\n className: string | undefined;\n}\n\n/** Adds `className` to the list if given selector is root */\nexport function getRootClassName({ rootSelector, selector, className }: GetRootClassNameInput) {\n return rootSelector === selector ? className : undefined;\n}\n","interface GetSelectorClassNameInput {\n selector: string;\n classes: Record;\n unstyled: boolean | undefined;\n}\n\n/** Returns class for given selector from library styles (`*.module.css`) */\nexport function getSelectorClassName({ selector, classes, unstyled }: GetSelectorClassNameInput) {\n return unstyled ? undefined : classes[selector];\n}\n","interface GetStaticClassNamesInput {\n themeName: string[];\n selector: string;\n classNamesPrefix: string;\n withStaticClass?: boolean;\n}\n\n/** Returns static component classes, for example, `.mantine-Input-wrapper` */\nexport function getStaticClassNames({\n themeName,\n classNamesPrefix,\n selector,\n withStaticClass,\n}: GetStaticClassNamesInput) {\n if (withStaticClass === false) {\n return [];\n }\n\n return themeName.map((n) => `${classNamesPrefix}-${n}-${selector}`);\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { resolveClassNames } from '../resolve-class-names/resolve-class-names';\n\ninterface GetThemeClassNamesOptions {\n theme: MantineTheme;\n themeName: string[];\n selector: string;\n props: Record;\n stylesCtx: Record | undefined;\n}\n\nexport function getThemeClassNames({\n themeName,\n theme,\n selector,\n props,\n stylesCtx,\n}: GetThemeClassNamesOptions) {\n return themeName.map(\n (n) =>\n resolveClassNames({\n theme,\n classNames: theme.components[n]?.classNames,\n props,\n stylesCtx,\n })?.[selector]\n );\n}\n","import { GetStylesApiOptions } from '../../../styles-api.types';\n\ninterface GetVariantClassNameInput {\n options: GetStylesApiOptions | undefined;\n classes: Record;\n selector: string;\n unstyled: boolean | undefined;\n}\n\n/** Returns variant className, variant is always separated from selector with `--`, for example, `tab--default` */\nexport function getVariantClassName({\n options,\n classes,\n selector,\n unstyled,\n}: GetVariantClassNameInput) {\n return options?.variant && !unstyled ? classes[`${selector}--${options.variant}`] : undefined;\n}\n","import cx from 'clsx';\nimport { MantineTheme } from '../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../styles-api.types';\nimport { getGlobalClassNames } from './get-global-class-names/get-global-class-names';\nimport { getOptionsClassNames } from './get-options-class-names/get-options-class-names';\nimport { getResolvedClassNames } from './get-resolved-class-names/get-resolved-class-names';\nimport { getRootClassName } from './get-root-class-name/get-root-class-name';\nimport { getSelectorClassName } from './get-selector-class-name/get-selector-class-name';\nimport { getStaticClassNames } from './get-static-class-names/get-static-class-names';\nimport { getThemeClassNames } from './get-theme-class-names/get-theme-class-names';\nimport { getVariantClassName } from './get-variant-class-name/get-variant-class-name';\n\ntype __ClassNames =\n | undefined\n | Partial>\n | ((\n theme: MantineTheme,\n props: Record,\n ctx: Record | undefined\n ) => Partial>);\n\nexport type _ClassNames = __ClassNames | __ClassNames[];\n\nexport interface GetClassNameOptions {\n /** Theme object, resolved by hook */\n theme: MantineTheme;\n\n /** Options for specified selector, may include `classNames` or `className` */\n options: GetStylesApiOptions | undefined;\n\n /** Name of the component which is used to get `classNames` from `theme.components` */\n themeName: string[];\n\n /** Class part specified in `getStyles` */\n selector: string;\n\n /** Prefix for all class names, resolved by hook, `mantine` by default */\n classNamesPrefix: string;\n\n /** `classNames` specified in the hook, only resolved `classNames[selector]` is added to the list */\n classNames: _ClassNames;\n\n /** Classes object, usually imported from `*.module.css` */\n classes: Record;\n\n /** Determines whether classes from `classes` should be added to the list */\n unstyled: boolean | undefined;\n\n /** `className` specified in the hook, added to the list if `selector` is `rootSelector` */\n className: string | undefined;\n\n /** `rootSelector` specified in the hook, determines whether `className` should be added to the list */\n rootSelector: string;\n\n /** Component props, used as context for `classNames` and `options.classNames` */\n props: Record;\n\n /** Component styles context, used as context for `classNames` and `options.classNames` */\n stylesCtx?: Record | undefined;\n\n /** Determines whether static classes should be added */\n withStaticClasses?: boolean;\n\n /** If set, removes all Mantine classes */\n headless?: boolean;\n\n /** `styles` prop transformed into classes with CSS-in-JS library, for example, emotion */\n transformedStyles?: Record[];\n}\n\nexport function getClassName({\n theme,\n options,\n themeName,\n selector,\n classNamesPrefix,\n classNames,\n classes,\n unstyled,\n className,\n rootSelector,\n props,\n stylesCtx,\n withStaticClasses,\n headless,\n transformedStyles,\n}: GetClassNameOptions) {\n return cx(\n getGlobalClassNames({ theme, options, unstyled: unstyled || headless }),\n getThemeClassNames({ theme, themeName, selector, props, stylesCtx }),\n getVariantClassName({ options, classes, selector, unstyled }),\n getResolvedClassNames({ selector, stylesCtx, theme, classNames, props }),\n getResolvedClassNames({ selector, stylesCtx, theme, classNames: transformedStyles, props }),\n getOptionsClassNames({ selector, stylesCtx, options, props, theme }),\n getRootClassName({ rootSelector, selector, className }),\n getSelectorClassName({ selector, classes, unstyled: unstyled || headless }),\n withStaticClasses &&\n !headless &&\n getStaticClassNames({\n themeName,\n classNamesPrefix,\n selector,\n withStaticClass: options?.withStaticClass,\n }),\n options?.className\n );\n}\n","import { MantineTheme } from '../../../../MantineProvider';\nimport { resolveStyles } from '../resolve-styles/resolve-styles';\n\ninterface GetThemeStylesOptions {\n theme: MantineTheme;\n themeName: string[];\n props: Record;\n stylesCtx: Record | undefined;\n selector: string;\n}\n\nexport function getThemeStyles({\n theme,\n themeName,\n props,\n stylesCtx,\n selector,\n}: GetThemeStylesOptions) {\n return themeName\n .map(\n (n) =>\n resolveStyles({\n theme,\n styles: theme.components[n]?.styles,\n props,\n stylesCtx,\n })[selector]\n )\n .reduce((acc, val) => ({ ...acc, ...val }), {});\n}\n","import { CSSProperties } from 'react';\nimport { MantineStyleProp } from '../../../../Box';\nimport { MantineTheme } from '../../../../MantineProvider';\n\ninterface ResolveStyleInput {\n style: MantineStyleProp | undefined;\n theme: MantineTheme;\n}\n\nexport function resolveStyle({ style, theme }: ResolveStyleInput): CSSProperties {\n if (Array.isArray(style)) {\n return [...style].reduce>(\n (acc, item) => ({ ...acc, ...resolveStyle({ style: item, theme }) }),\n {}\n );\n }\n\n if (typeof style === 'function') {\n return style(theme);\n }\n\n if (style == null) {\n return {};\n }\n\n return style;\n}\n","import { CssVariable } from '../../../../Box';\nimport { filterProps } from '../../../../utils';\n\nexport type ResolvedVars = Partial>>;\n\nexport function mergeVars(vars: (ResolvedVars | undefined)[]) {\n return vars.reduce((acc, current) => {\n if (current) {\n Object.keys(current).forEach((key) => {\n acc[key] = { ...acc[key], ...filterProps(current[key]!) };\n });\n }\n\n return acc;\n }, {});\n}\n","import { CSSProperties } from 'react';\nimport { CssVariable } from '../../../../Box';\nimport { MantineTheme } from '../../../../MantineProvider';\nimport { mergeVars } from './merge-vars';\n\ntype ResolvedVars = Partial>>;\n\nexport type VarsResolver = (\n theme: MantineTheme,\n props: Record,\n stylesCtx: Record | undefined\n) => ResolvedVars;\n\ninterface ResolveVarsInput {\n vars: VarsResolver | undefined;\n varsResolver: VarsResolver | undefined;\n theme: MantineTheme;\n props: Record;\n stylesCtx: Record | undefined;\n selector: string;\n themeName: string[];\n headless?: boolean;\n}\n\nexport function resolveVars({\n vars,\n varsResolver,\n theme,\n props,\n stylesCtx,\n selector,\n themeName,\n headless,\n}: ResolveVarsInput) {\n return mergeVars([\n headless ? {} : varsResolver?.(theme, props, stylesCtx),\n ...themeName.map((name) => theme.components?.[name]?.vars?.(theme, props, stylesCtx)),\n vars?.(theme, props, stylesCtx),\n ])?.[selector] as CSSProperties;\n}\n","import { CSSProperties } from 'react';\nimport { MantineStyleProp } from '../../../Box';\nimport { MantineTheme } from '../../../MantineProvider';\nimport { GetStylesApiOptions } from '../../styles-api.types';\nimport { getThemeStyles } from './get-theme-styles/get-theme-styles';\nimport { resolveStyle } from './resolve-style/resolve-style';\nimport { resolveStyles } from './resolve-styles/resolve-styles';\nimport { resolveVars, VarsResolver } from './resolve-vars/resolve-vars';\n\nexport type _Styles =\n | undefined\n | Partial>\n | ((\n theme: MantineTheme,\n props: Record,\n ctx: Record | undefined\n ) => Partial>);\n\nexport interface GetStyleInput {\n theme: MantineTheme;\n themeName: string[];\n selector: string;\n rootSelector: string;\n options: GetStylesApiOptions | undefined;\n props: Record;\n stylesCtx: Record | undefined;\n styles: _Styles;\n style: MantineStyleProp | undefined;\n vars: VarsResolver | undefined;\n varsResolver: VarsResolver | undefined;\n headless?: boolean;\n withStylesTransform?: boolean;\n}\n\nexport function getStyle({\n theme,\n themeName,\n selector,\n options,\n props,\n stylesCtx,\n rootSelector,\n styles,\n style,\n vars,\n varsResolver,\n headless,\n withStylesTransform,\n}: GetStyleInput): CSSProperties {\n return {\n ...(!withStylesTransform && getThemeStyles({ theme, themeName, props, stylesCtx, selector })),\n ...(!withStylesTransform && resolveStyles({ theme, styles, props, stylesCtx })[selector]),\n ...(!withStylesTransform &&\n resolveStyles({ theme, styles: options?.styles, props: options?.props || props, stylesCtx })[\n selector\n ]),\n ...resolveVars({ theme, props, stylesCtx, vars, varsResolver, selector, themeName, headless }),\n ...(rootSelector === selector ? resolveStyle({ style, theme }) : null),\n ...resolveStyle({ style: options?.style, theme }),\n };\n}\n","import { useMantineStylesTransform, useMantineTheme } from '../../MantineProvider';\n\ninterface UseTransformedStylesInput {\n props: Record;\n stylesCtx: Record | undefined;\n themeName: string[];\n}\n\nexport function useStylesTransform({ props, stylesCtx, themeName }: UseTransformedStylesInput) {\n const theme = useMantineTheme();\n const stylesTransform = useMantineStylesTransform()?.();\n\n const getTransformedStyles = (styles: any[]) => {\n if (!stylesTransform) {\n return [];\n }\n\n const transformedStyles = styles.map((style) =>\n stylesTransform(style, { props, theme, ctx: stylesCtx })\n );\n\n return [\n ...transformedStyles,\n ...themeName.map((n) =>\n stylesTransform(theme.components[n]?.styles, { props, theme, ctx: stylesCtx })\n ),\n ].filter(Boolean) as Record[];\n };\n\n return {\n getTransformedStyles,\n withStylesTransform: !!stylesTransform,\n };\n}\n","import { CSSProperties } from 'react';\nimport type { MantineStyleProp } from '../../Box';\nimport { FactoryPayload } from '../../factory';\nimport {\n useMantineClassNamesPrefix,\n useMantineIsHeadless,\n useMantineTheme,\n useMantineWithStaticClasses,\n} from '../../MantineProvider';\nimport { PartialVarsResolver, VarsResolver } from '../create-vars-resolver/create-vars-resolver';\nimport { ClassNames, ClassNamesArray, GetStylesApiOptions, Styles } from '../styles-api.types';\nimport { getClassName } from './get-class-name/get-class-name';\nimport { getStyle } from './get-style/get-style';\nimport { useStylesTransform } from './use-transformed-styles';\n\nexport interface UseStylesInput {\n name: string | (string | undefined)[];\n classes: Payload['stylesNames'] extends string ? Record : never;\n props: Payload['props'];\n stylesCtx?: Payload['ctx'];\n className?: string;\n style?: MantineStyleProp;\n rootSelector?: Payload['stylesNames'];\n unstyled?: boolean;\n classNames?: ClassNames | ClassNamesArray;\n styles?: Styles;\n vars?: PartialVarsResolver;\n varsResolver?: VarsResolver;\n}\n\nexport type GetStylesApi = (\n selector: NonNullable,\n options?: GetStylesApiOptions\n) => {\n className: string;\n style: CSSProperties;\n};\n\nexport function useStyles({\n name,\n classes,\n props,\n stylesCtx,\n className,\n style,\n rootSelector = 'root' as NonNullable,\n unstyled,\n classNames,\n styles,\n vars,\n varsResolver,\n}: UseStylesInput): GetStylesApi {\n const theme = useMantineTheme();\n const classNamesPrefix = useMantineClassNamesPrefix();\n const withStaticClasses = useMantineWithStaticClasses();\n const headless = useMantineIsHeadless();\n const themeName = (Array.isArray(name) ? name : [name]).filter((n) => n) as string[];\n const { withStylesTransform, getTransformedStyles } = useStylesTransform({\n props,\n stylesCtx,\n themeName,\n });\n\n return (selector, options) => ({\n className: getClassName({\n theme,\n options,\n themeName,\n selector,\n classNamesPrefix,\n classNames,\n classes,\n unstyled,\n className,\n rootSelector,\n props,\n stylesCtx,\n withStaticClasses,\n headless,\n transformedStyles: getTransformedStyles([options?.styles, styles]),\n }),\n\n style: getStyle({\n theme,\n themeName,\n selector,\n options,\n props,\n stylesCtx,\n rootSelector,\n styles,\n style,\n vars,\n varsResolver,\n headless,\n withStylesTransform,\n }),\n });\n}\n","export function camelToKebabCase(value: string) {\n return value.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n}\n","function isObject(item) {\n return item && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction deepMerge(target, source) {\n const result = { ...target };\n const _source = source;\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach((key) => {\n if (isObject(_source[key])) {\n if (!(key in target)) {\n result[key] = _source[key];\n } else {\n result[key] = deepMerge(result[key], _source[key]);\n }\n } else {\n result[key] = _source[key];\n }\n });\n }\n return result;\n}\n\nexport { deepMerge };\n//# sourceMappingURL=deep-merge.mjs.map\n","type FilterPropsRes> = {\n [Key in keyof T]-?: T[Key] extends undefined ? never : T[Key];\n};\n\nexport function filterProps>(props: T) {\n return Object.keys(props).reduce>((acc, key: keyof T) => {\n if (props[key] !== undefined) {\n acc[key] = props[key];\n }\n return acc;\n }, {} as FilterPropsRes);\n}\n","import { isNumberLike } from '../is-number-like/is-number-like';\nimport { rem } from '../units-converters';\n\nexport function getSize(size: unknown, prefix = 'size', convertToRem = true): string | undefined {\n if (size === undefined) {\n return undefined;\n }\n\n return isNumberLike(size)\n ? convertToRem\n ? rem(size)\n : (size as string)\n : `var(--${prefix}-${size})`;\n}\n\nexport function getSpacing(size: unknown) {\n return getSize(size, 'mantine-spacing');\n}\n\nexport function getRadius(size: unknown) {\n if (size === undefined) {\n return 'var(--mantine-radius-default)';\n }\n\n return getSize(size, 'mantine-radius');\n}\n\nexport function getFontSize(size: unknown) {\n return getSize(size, 'mantine-font-size');\n}\n\nexport function getLineHeight(size: unknown) {\n return getSize(size, 'mantine-line-height', false);\n}\n\nexport function getShadow(size: unknown) {\n if (!size) {\n return undefined;\n }\n\n return getSize(size, 'mantine-shadow', false);\n}\n","export function isNumberLike(value: unknown) {\n if (typeof value === 'number') {\n return true;\n }\n\n if (typeof value === 'string') {\n if (\n value.startsWith('calc(') ||\n value.startsWith('var(') ||\n (value.includes(' ') && value.trim() !== '')\n ) {\n return true;\n }\n\n const cssUnitsRegex =\n /^[+-]?[0-9]+(\\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;\n const values = value.trim().split(/\\s+/);\n return values.every((val) => cssUnitsRegex.test(val));\n }\n\n return false;\n}\n","export function keys(object: T): K[] {\n return Object.keys(object) as K[];\n}\n","function scaleRem(remValue) {\n if (remValue === \"0rem\") {\n return \"0rem\";\n }\n return `calc(${remValue} * var(--mantine-scale))`;\n}\nfunction createConverter(units, { shouldScale = false } = {}) {\n function converter(value) {\n if (value === 0 || value === \"0\") {\n return `0${units}`;\n }\n if (typeof value === \"number\") {\n const val = `${value / 16}${units}`;\n return shouldScale ? scaleRem(val) : val;\n }\n if (typeof value === \"string\") {\n if (value === \"\") {\n return value;\n }\n if (value.startsWith(\"calc(\") || value.startsWith(\"clamp(\") || value.includes(\"rgba(\")) {\n return value;\n }\n if (value.includes(\",\")) {\n return value.split(\",\").map((val) => converter(val)).join(\",\");\n }\n if (value.includes(\" \")) {\n return value.split(\" \").map((val) => converter(val)).join(\" \");\n }\n if (value.includes(units)) {\n return shouldScale ? scaleRem(value) : value;\n }\n const replaced = value.replace(\"px\", \"\");\n if (!Number.isNaN(Number(replaced))) {\n const val = `${Number(replaced) / 16}${units}`;\n return shouldScale ? scaleRem(val) : val;\n }\n }\n return value;\n }\n return converter;\n}\nconst rem = createConverter(\"rem\", { shouldScale: true });\nconst em = createConverter(\"em\");\n\nexport { em, rem };\n//# sourceMappingURL=rem.mjs.map\n","import { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\nexport function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList) {\n const mounted = useRef(false);\n\n useEffect(\n () => () => {\n mounted.current = false;\n },\n []\n );\n\n useEffect(() => {\n if (mounted.current) {\n return fn();\n }\n\n mounted.current = true;\n return undefined;\n }, dependencies);\n}\n","import React from 'react';\n\nconst __useId: () => string | undefined = (React as any)['useId'.toString()] || (() => undefined);\n\nexport function useReactId() {\n const id = __useId();\n return id ? `mantine-${id.replace(/:/g, '')}` : '';\n}\n","import { useState } from 'react';\nimport { useIsomorphicEffect } from '../use-isomorphic-effect/use-isomorphic-effect';\nimport { randomId } from '../utils';\nimport { useReactId } from './use-react-id';\n\nexport function useId(staticId?: string) {\n const reactId = useReactId();\n const [uuid, setUuid] = useState(reactId);\n\n useIsomorphicEffect(() => {\n setUuid(randomId());\n }, []);\n\n if (typeof staticId === 'string') {\n return staticId;\n }\n\n if (typeof window === 'undefined') {\n return reactId;\n }\n\n return uuid;\n}\n","import { useEffect, useLayoutEffect } from 'react';\n\n// UseLayoutEffect will show warning if used during ssr, e.g. with Next.js\n// UseIsomorphicEffect removes it by replacing useLayoutEffect with useEffect during ssr\nexport const useIsomorphicEffect = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n","import { useEffect, useRef, useState } from 'react';\n\nexport interface UseMediaQueryOptions {\n getInitialValueInEffect: boolean;\n}\n\ntype MediaQueryCallback = (event: { matches: boolean; media: string }) => void;\n\n/**\n * Older versions of Safari (shipped withCatalina and before) do not support addEventListener on matchMedia\n * https://stackoverflow.com/questions/56466261/matchmedia-addlistener-marked-as-deprecated-addeventlistener-equivalent\n * */\nfunction attachMediaListener(query: MediaQueryList, callback: MediaQueryCallback) {\n try {\n query.addEventListener('change', callback);\n return () => query.removeEventListener('change', callback);\n } catch (e) {\n query.addListener(callback);\n return () => query.removeListener(callback);\n }\n}\n\nfunction getInitialValue(query: string, initialValue?: boolean) {\n if (typeof initialValue === 'boolean') {\n return initialValue;\n }\n\n if (typeof window !== 'undefined' && 'matchMedia' in window) {\n return window.matchMedia(query).matches;\n }\n\n return false;\n}\n\nexport function useMediaQuery(\n query: string,\n initialValue?: boolean,\n { getInitialValueInEffect }: UseMediaQueryOptions = {\n getInitialValueInEffect: true,\n }\n) {\n const [matches, setMatches] = useState(\n getInitialValueInEffect ? initialValue : getInitialValue(query)\n );\n const queryRef = useRef(null);\n\n useEffect(() => {\n if ('matchMedia' in window) {\n queryRef.current = window.matchMedia(query);\n setMatches(queryRef.current.matches);\n return attachMediaListener(queryRef.current, (event) => setMatches(event.matches));\n }\n\n return undefined;\n }, [query]);\n\n return matches;\n}\n","import { useMediaQuery, UseMediaQueryOptions } from '../use-media-query/use-media-query';\n\nexport function useReducedMotion(initialValue?: boolean, options?: UseMediaQueryOptions) {\n return useMediaQuery('(prefers-reduced-motion: reduce)', initialValue, options);\n}\n","export function randomId(prefix = 'mantine-'): string {\n return `${prefix}${Math.random().toString(36).slice(2, 11)}`;\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t