@inventreedb/ui 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +1 -547
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/types/Plugins.js +1 -1
- package/lib/index.ts +0 -3
- package/package.json +1 -1
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/components/StylishText.d.ts +0 -5
- package/dist/components/StylishText.js +0 -36
- package/dist/components/StylishText.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.js +0 -94
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.js +0 -6
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.mjs.vanilla.css.js +0 -2
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.mjs.vanilla.css.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/Box.js +0 -83
- package/dist/node_modules/@mantine/core/esm/core/Box/Box.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-mod/get-box-mod.js +0 -33
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-mod/get-box-mod.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-style/get-box-style.js +0 -29
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-style/get-box-style.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/extract-style-props/extract-style-props.js +0 -123
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/extract-style-props/extract-style-props.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.js +0 -88
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.js +0 -15
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.js +0 -21
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.js +0 -25
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.js +0 -17
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.js +0 -23
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.js +0 -23
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.js +0 -14
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.js +0 -13
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.js +0 -21
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.js +0 -55
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.js +0 -9
- package/dist/node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.js +0 -19
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js +0 -14
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.js +0 -13
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.js +0 -40
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js +0 -17
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.js +0 -14
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.js +0 -15
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.js +0 -13
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.js +0 -9
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.js +0 -32
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.js +0 -78
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.js +0 -116
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.js +0 -15
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/factory/factory.js +0 -9
- package/dist/node_modules/@mantine/core/esm/core/factory/factory.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/factory/polymorphic-factory.js +0 -18
- package/dist/node_modules/@mantine/core/esm/core/factory/polymorphic-factory.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/create-vars-resolver/create-vars-resolver.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/styles-api/create-vars-resolver/create-vars-resolver.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.js +0 -48
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.js +0 -17
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.js +0 -19
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.js +0 -14
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.js +0 -15
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-theme-class-names/get-theme-class-names.js +0 -24
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-theme-class-names/get-theme-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.js +0 -12
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.js +0 -26
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-style.js +0 -32
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-style.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.js +0 -24
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-style/resolve-style.js +0 -19
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-style/resolve-style.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js +0 -13
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.js +0 -17
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.js +0 -25
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-styles.js +0 -70
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-styles.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-transformed-styles.js +0 -34
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-transformed-styles.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/camel-to-kebab-case/camel-to-kebab-case.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/utils/camel-to-kebab-case/camel-to-kebab-case.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/filter-props/filter-props.js +0 -12
- package/dist/node_modules/@mantine/core/esm/core/utils/filter-props/filter-props.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/get-size/get-size.js +0 -20
- package/dist/node_modules/@mantine/core/esm/core/utils/get-size/get-size.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/is-number-like/is-number-like.js +0 -18
- package/dist/node_modules/@mantine/core/esm/core/utils/is-number-like/is-number-like.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/keys/keys.js +0 -7
- package/dist/node_modules/@mantine/core/esm/core/utils/keys/keys.js.map +0 -1
- package/dist/node_modules/@mantine/core/esm/core/utils/units-converters/rem.js +0 -47
- package/dist/node_modules/@mantine/core/esm/core/utils/units-converters/rem.js.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -891
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -34
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -18
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/lib/components/StylishText.tsx +0 -45
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-style-props.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.mjs"],"sourcesContent":["'use client';\nimport { keys } from '../../../utils/keys/keys.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport { resolvers } from '../resolvers/index.mjs';\nimport { sortMediaQueries } from './sort-media-queries.mjs';\n\nfunction hasResponsiveStyles(styleProp) {\n if (typeof styleProp !== \"object\" || styleProp === null) {\n return false;\n }\n const breakpoints = Object.keys(styleProp);\n if (breakpoints.length === 1 && breakpoints[0] === \"base\") {\n return false;\n }\n return true;\n}\nfunction getBaseValue(value) {\n if (typeof value === \"object\" && value !== null) {\n if (\"base\" in value) {\n return value.base;\n }\n return void 0;\n }\n return value;\n}\nfunction getBreakpointKeys(value) {\n if (typeof value === \"object\" && value !== null) {\n return keys(value).filter((key) => key !== \"base\");\n }\n return [];\n}\nfunction getBreakpointValue(value, breakpoint) {\n if (typeof value === \"object\" && value !== null && breakpoint in value) {\n return value[breakpoint];\n }\n return value;\n}\nfunction parseStyleProps({\n styleProps,\n data,\n theme\n}) {\n return sortMediaQueries(\n keys(styleProps).reduce(\n (acc, styleProp) => {\n if (styleProp === \"hiddenFrom\" || styleProp === \"visibleFrom\" || styleProp === \"sx\") {\n return acc;\n }\n const propertyData = data[styleProp];\n const properties = Array.isArray(propertyData.property) ? propertyData.property : [propertyData.property];\n const baseValue = getBaseValue(styleProps[styleProp]);\n if (!hasResponsiveStyles(styleProps[styleProp])) {\n properties.forEach((property) => {\n acc.inlineStyles[property] = resolvers[propertyData.type](baseValue, theme);\n });\n return acc;\n }\n acc.hasResponsiveStyles = true;\n const breakpoints = getBreakpointKeys(styleProps[styleProp]);\n properties.forEach((property) => {\n if (baseValue) {\n acc.styles[property] = resolvers[propertyData.type](baseValue, theme);\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 return acc;\n },\n {\n hasResponsiveStyles: false,\n styles: {},\n inlineStyles: {},\n media: {}\n }\n )\n );\n}\n\nexport { parseStyleProps };\n//# sourceMappingURL=parse-style-props.mjs.map\n"],"names":[],"mappings":";;;;;AAQA,SAAS,oBAAoB,WAAW;AACtC,MAAI,OAAO,cAAc,YAAY,cAAc,MAAM;AACvD,WAAO;AAAA,EACX;AACE,QAAM,cAAc,OAAO,KAAK,SAAS;AACzC,MAAI,YAAY,WAAW,KAAK,YAAY,CAAC,MAAM,QAAQ;AACzD,WAAO;AAAA,EACX;AACE,SAAO;AACT;AACA,SAAS,aAAa,OAAO;AAC3B,MAAI,OAAO,UAAU,YAAY,UAAU,MAAM;AAC/C,QAAI,UAAU,OAAO;AACnB,aAAO,MAAM;AAAA,IACnB;AACI,WAAO;AAAA,EACX;AACE,SAAO;AACT;AACA,SAAS,kBAAkB,OAAO;AAChC,MAAI,OAAO,UAAU,YAAY,UAAU,MAAM;AAC/C,WAAO,KAAK,KAAK,EAAE,OAAO,CAAC,QAAQ,QAAQ,MAAM;AAAA,EACrD;AACE,SAAO,CAAE;AACX;AACA,SAAS,mBAAmB,OAAO,YAAY;AAC7C,MAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,cAAc,OAAO;AACtE,WAAO,MAAM,UAAU;AAAA,EAC3B;AACE,SAAO;AACT;AACA,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,SAAO;AAAA,IACL,KAAK,UAAU,EAAE;AAAA,MACf,CAAC,KAAK,cAAc;AAClB,YAAI,cAAc,gBAAgB,cAAc,iBAAiB,cAAc,MAAM;AACnF,iBAAO;AAAA,QACjB;AACQ,cAAM,eAAe,KAAK,SAAS;AACnC,cAAM,aAAa,MAAM,QAAQ,aAAa,QAAQ,IAAI,aAAa,WAAW,CAAC,aAAa,QAAQ;AACxG,cAAM,YAAY,aAAa,WAAW,SAAS,CAAC;AACpD,YAAI,CAAC,oBAAoB,WAAW,SAAS,CAAC,GAAG;AAC/C,qBAAW,QAAQ,CAAC,aAAa;AAC/B,gBAAI,aAAa,QAAQ,IAAI,UAAU,aAAa,IAAI,EAAE,WAAW,KAAK;AAAA,UACtF,CAAW;AACD,iBAAO;AAAA,QACjB;AACQ,YAAI,sBAAsB;AAC1B,cAAM,cAAc,kBAAkB,WAAW,SAAS,CAAC;AAC3D,mBAAW,QAAQ,CAAC,aAAa;AAC/B,cAAI,WAAW;AACb,gBAAI,OAAO,QAAQ,IAAI,UAAU,aAAa,IAAI,EAAE,WAAW,KAAK;AAAA,UAChF;AACU,sBAAY,QAAQ,CAAC,eAAe;AAClC,kBAAM,KAAK,eAAe,MAAM,YAAY,UAAU,CAAC;AACvD,gBAAI,MAAM,EAAE,IAAI;AAAA,cACd,GAAG,IAAI,MAAM,EAAE;AAAA,cACf,CAAC,QAAQ,GAAG,UAAU,aAAa,IAAI;AAAA,gBACrC,mBAAmB,WAAW,SAAS,GAAG,UAAU;AAAA,gBACpD;AAAA,cAChB;AAAA,YACa;AAAA,UACb,CAAW;AAAA,QACX,CAAS;AACD,eAAO;AAAA,MACR;AAAA,MACD;AAAA,QACE,qBAAqB;AAAA,QACrB,QAAQ,CAAE;AAAA,QACV,cAAc,CAAE;AAAA,QAChB,OAAO,CAAA;AAAA,MACf;AAAA,IACA;AAAA,EACG;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function replaceMediaQuery(query) {
|
|
2
|
-
return query.replace("(min-width: ", "").replace("em)", "");
|
|
3
|
-
}
|
|
4
|
-
function sortMediaQueries({
|
|
5
|
-
media,
|
|
6
|
-
...props
|
|
7
|
-
}) {
|
|
8
|
-
const breakpoints = Object.keys(media);
|
|
9
|
-
const sortedMedia = breakpoints.sort((a, b) => Number(replaceMediaQuery(a)) - Number(replaceMediaQuery(b))).map((query) => ({ query, styles: media[query] }));
|
|
10
|
-
return { ...props, media: sortedMedia };
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
sortMediaQueries
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=sort-media-queries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sort-media-queries.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.mjs"],"sourcesContent":["'use client';\nfunction replaceMediaQuery(query) {\n return query.replace(\"(min-width: \", \"\").replace(\"em)\", \"\");\n}\nfunction sortMediaQueries({\n media,\n ...props\n}) {\n const breakpoints = Object.keys(media);\n const sortedMedia = breakpoints.sort((a, b) => Number(replaceMediaQuery(a)) - Number(replaceMediaQuery(b))).map((query) => ({ query, styles: media[query] }));\n return { ...props, media: sortedMedia };\n}\n\nexport { sortMediaQueries };\n//# sourceMappingURL=sort-media-queries.mjs.map\n"],"names":[],"mappings":"AACA,SAAS,kBAAkB,OAAO;AAChC,SAAO,MAAM,QAAQ,gBAAgB,EAAE,EAAE,QAAQ,OAAO,EAAE;AAC5D;AACA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,cAAc,OAAO,KAAK,KAAK;AACrC,QAAM,cAAc,YAAY,KAAK,CAAC,GAAG,MAAM,OAAO,kBAAkB,CAAC,CAAC,IAAI,OAAO,kBAAkB,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,QAAQ,MAAM,KAAK,EAAG,EAAC;AAC5J,SAAO,EAAE,GAAG,OAAO,OAAO,YAAa;AACzC;","x_google_ignoreList":[0]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { rem } from "../../../../utils/units-converters/rem.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
-
import { colorResolver } from "../color-resolver/color-resolver.js";
|
|
5
|
-
function borderResolver(value, theme) {
|
|
6
|
-
if (typeof value === "number") {
|
|
7
|
-
return rem(value);
|
|
8
|
-
}
|
|
9
|
-
if (typeof value === "string") {
|
|
10
|
-
const [size, style, ...colorTuple] = value.split(" ").filter((val) => val.trim() !== "");
|
|
11
|
-
let result = `${rem(size)}`;
|
|
12
|
-
style && (result += ` ${style}`);
|
|
13
|
-
colorTuple.length > 0 && (result += ` ${colorResolver(colorTuple.join(" "), theme)}`);
|
|
14
|
-
return result.trim();
|
|
15
|
-
}
|
|
16
|
-
return value;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
borderResolver
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=border-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"border-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.mjs"],"sourcesContent":["'use client';\nimport { rem } from '../../../../utils/units-converters/rem.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport { colorResolver } from '../color-resolver/color-resolver.mjs';\n\nfunction borderResolver(value, theme) {\n if (typeof value === \"number\") {\n return rem(value);\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 return value;\n}\n\nexport { borderResolver };\n//# sourceMappingURL=border-resolver.mjs.map\n"],"names":[],"mappings":";;;;AAOA,SAAS,eAAe,OAAO,OAAO;AACpC,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,IAAI,KAAK;AAAA,EACpB;AACE,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,CAAC,MAAM,OAAO,GAAG,UAAU,IAAI,MAAM,MAAM,GAAG,EAAE,OAAO,CAAC,QAAQ,IAAI,KAAI,MAAO,EAAE;AACvF,QAAI,SAAS,GAAG,IAAI,IAAI,CAAC;AACzB,cAAU,UAAU,IAAI,KAAK;AAC7B,eAAW,SAAS,MAAM,UAAU,IAAI,cAAc,WAAW,KAAK,GAAG,GAAG,KAAK,CAAC;AAClF,WAAO,OAAO,KAAM;AAAA,EACxB;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { parseThemeColor } from "../../../../MantineProvider/color-functions/parse-theme-color/parse-theme-color.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
-
function colorResolver(color, theme) {
|
|
5
|
-
const parsedColor = parseThemeColor({ color, theme });
|
|
6
|
-
if (parsedColor.color === "dimmed") {
|
|
7
|
-
return "var(--mantine-color-dimmed)";
|
|
8
|
-
}
|
|
9
|
-
if (parsedColor.color === "bright") {
|
|
10
|
-
return "var(--mantine-color-bright)";
|
|
11
|
-
}
|
|
12
|
-
return parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;
|
|
13
|
-
}
|
|
14
|
-
function textColorResolver(color, theme) {
|
|
15
|
-
const parsedColor = parseThemeColor({ color, theme });
|
|
16
|
-
if (parsedColor.isThemeColor && parsedColor.shade === void 0) {
|
|
17
|
-
return `var(--mantine-color-${parsedColor.color}-text)`;
|
|
18
|
-
}
|
|
19
|
-
return colorResolver(color, theme);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
colorResolver,
|
|
23
|
-
textColorResolver
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=color-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.mjs"],"sourcesContent":["'use client';\nimport { parseThemeColor } from '../../../../MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport '../../../../MantineProvider/Mantine.context.mjs';\nimport '../../../../MantineProvider/default-theme.mjs';\nimport '../../../../MantineProvider/MantineProvider.mjs';\nimport '../../../../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../../../../MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\n\nfunction colorResolver(color, theme) {\n const parsedColor = parseThemeColor({ color, theme });\n if (parsedColor.color === \"dimmed\") {\n return \"var(--mantine-color-dimmed)\";\n }\n if (parsedColor.color === \"bright\") {\n return \"var(--mantine-color-bright)\";\n }\n return parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;\n}\nfunction textColorResolver(color, theme) {\n const parsedColor = parseThemeColor({ color, theme });\n if (parsedColor.isThemeColor && parsedColor.shade === void 0) {\n return `var(--mantine-color-${parsedColor.color}-text)`;\n }\n return colorResolver(color, theme);\n}\n\nexport { colorResolver, textColorResolver };\n//# sourceMappingURL=color-resolver.mjs.map\n"],"names":[],"mappings":";;;AAWA,SAAS,cAAc,OAAO,OAAO;AACnC,QAAM,cAAc,gBAAgB,EAAE,OAAO,MAAK,CAAE;AACpD,MAAI,YAAY,UAAU,UAAU;AAClC,WAAO;AAAA,EACX;AACE,MAAI,YAAY,UAAU,UAAU;AAClC,WAAO;AAAA,EACX;AACE,SAAO,YAAY,WAAW,OAAO,YAAY,QAAQ,MAAM,YAAY;AAC7E;AACA,SAAS,kBAAkB,OAAO,OAAO;AACvC,QAAM,cAAc,gBAAgB,EAAE,OAAO,MAAK,CAAE;AACpD,MAAI,YAAY,gBAAgB,YAAY,UAAU,QAAQ;AAC5D,WAAO,uBAAuB,YAAY,KAAK;AAAA,EACnD;AACE,SAAO,cAAc,OAAO,KAAK;AACnC;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const values = {
|
|
2
|
-
text: "var(--mantine-font-family)",
|
|
3
|
-
mono: "var(--mantine-font-family-monospace)",
|
|
4
|
-
monospace: "var(--mantine-font-family-monospace)",
|
|
5
|
-
heading: "var(--mantine-font-family-headings)",
|
|
6
|
-
headings: "var(--mantine-font-family-headings)"
|
|
7
|
-
};
|
|
8
|
-
function fontFamilyResolver(fontFamily) {
|
|
9
|
-
if (typeof fontFamily === "string" && fontFamily in values) {
|
|
10
|
-
return values[fontFamily];
|
|
11
|
-
}
|
|
12
|
-
return fontFamily;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
fontFamilyResolver
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=font-family-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font-family-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.mjs"],"sourcesContent":["'use client';\nconst 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};\nfunction fontFamilyResolver(fontFamily) {\n if (typeof fontFamily === \"string\" && fontFamily in values) {\n return values[fontFamily];\n }\n return fontFamily;\n}\n\nexport { fontFamilyResolver };\n//# sourceMappingURL=font-family-resolver.mjs.map\n"],"names":[],"mappings":"AACA,MAAM,SAAS;AAAA,EACb,MAAM;AAAA,EACN,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AACZ;AACA,SAAS,mBAAmB,YAAY;AACtC,MAAI,OAAO,eAAe,YAAY,cAAc,QAAQ;AAC1D,WAAO,OAAO,UAAU;AAAA,EAC5B;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { rem } from "../../../../utils/units-converters/rem.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
-
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
5
|
-
function fontSizeResolver(value, theme) {
|
|
6
|
-
if (typeof value === "string" && value in theme.fontSizes) {
|
|
7
|
-
return `var(--mantine-font-size-${value})`;
|
|
8
|
-
}
|
|
9
|
-
if (typeof value === "string" && headings.includes(value)) {
|
|
10
|
-
return `var(--mantine-${value}-font-size)`;
|
|
11
|
-
}
|
|
12
|
-
if (typeof value === "number") {
|
|
13
|
-
return rem(value);
|
|
14
|
-
}
|
|
15
|
-
if (typeof value === "string") {
|
|
16
|
-
return rem(value);
|
|
17
|
-
}
|
|
18
|
-
return value;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
fontSizeResolver
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=font-size-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font-size-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.mjs"],"sourcesContent":["'use client';\nimport { rem } from '../../../../utils/units-converters/rem.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\n\nconst headings = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"];\nfunction fontSizeResolver(value, theme) {\n if (typeof value === \"string\" && value in theme.fontSizes) {\n return `var(--mantine-font-size-${value})`;\n }\n if (typeof value === \"string\" && headings.includes(value)) {\n return `var(--mantine-${value}-font-size)`;\n }\n if (typeof value === \"number\") {\n return rem(value);\n }\n if (typeof value === \"string\") {\n return rem(value);\n }\n return value;\n}\n\nexport { fontSizeResolver };\n//# sourceMappingURL=font-size-resolver.mjs.map\n"],"names":[],"mappings":";;;AAMA,MAAM,WAAW,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AACpD,SAAS,iBAAiB,OAAO,OAAO;AACtC,MAAI,OAAO,UAAU,YAAY,SAAS,MAAM,WAAW;AACzD,WAAO,2BAA2B,KAAK;AAAA,EAC3C;AACE,MAAI,OAAO,UAAU,YAAY,SAAS,SAAS,KAAK,GAAG;AACzD,WAAO,iBAAiB,KAAK;AAAA,EACjC;AACE,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,IAAI,KAAK;AAAA,EACpB;AACE,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,IAAI,KAAK;AAAA,EACpB;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.mjs"],"sourcesContent":["'use client';\nfunction identityResolver(value) {\n return value;\n}\n\nexport { identityResolver };\n//# sourceMappingURL=identity-resolver.mjs.map\n"],"names":[],"mappings":"AACA,SAAS,iBAAiB,OAAO;AAC/B,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { borderResolver } from "./border-resolver/border-resolver.js";
|
|
2
|
-
import { textColorResolver, colorResolver } from "./color-resolver/color-resolver.js";
|
|
3
|
-
import { fontFamilyResolver } from "./font-family-resolver/font-family-resolver.js";
|
|
4
|
-
import { fontSizeResolver } from "./font-size-resolver/font-size-resolver.js";
|
|
5
|
-
import { identityResolver } from "./identity-resolver/identity-resolver.js";
|
|
6
|
-
import { lineHeightResolver } from "./line-height-resolver/line-height-resolver.js";
|
|
7
|
-
import { sizeResolver } from "./size-resolver/size-resolver.js";
|
|
8
|
-
import { spacingResolver } from "./spacing-resolver/spacing-resolver.js";
|
|
9
|
-
const resolvers = {
|
|
10
|
-
color: colorResolver,
|
|
11
|
-
textColor: textColorResolver,
|
|
12
|
-
fontSize: fontSizeResolver,
|
|
13
|
-
spacing: spacingResolver,
|
|
14
|
-
identity: identityResolver,
|
|
15
|
-
size: sizeResolver,
|
|
16
|
-
lineHeight: lineHeightResolver,
|
|
17
|
-
fontFamily: fontFamilyResolver,
|
|
18
|
-
border: borderResolver
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
resolvers
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.mjs"],"sourcesContent":["'use client';\nimport { borderResolver } from './border-resolver/border-resolver.mjs';\nimport { colorResolver, textColorResolver } from './color-resolver/color-resolver.mjs';\nimport { fontFamilyResolver } from './font-family-resolver/font-family-resolver.mjs';\nimport { fontSizeResolver } from './font-size-resolver/font-size-resolver.mjs';\nimport { identityResolver } from './identity-resolver/identity-resolver.mjs';\nimport { lineHeightResolver } from './line-height-resolver/line-height-resolver.mjs';\nimport { sizeResolver } from './size-resolver/size-resolver.mjs';\nimport { spacingResolver } from './spacing-resolver/spacing-resolver.mjs';\n\nconst 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 { resolvers };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;;;;;AAUK,MAAC,YAAY;AAAA,EAChB,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,QAAQ;AACV;","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
2
|
-
function lineHeightResolver(value, theme) {
|
|
3
|
-
if (typeof value === "string" && value in theme.lineHeights) {
|
|
4
|
-
return `var(--mantine-line-height-${value})`;
|
|
5
|
-
}
|
|
6
|
-
if (typeof value === "string" && headings.includes(value)) {
|
|
7
|
-
return `var(--mantine-${value}-line-height)`;
|
|
8
|
-
}
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
lineHeightResolver
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=line-height-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-height-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.mjs"],"sourcesContent":["'use client';\nconst headings = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"];\nfunction lineHeightResolver(value, theme) {\n if (typeof value === \"string\" && value in theme.lineHeights) {\n return `var(--mantine-line-height-${value})`;\n }\n if (typeof value === \"string\" && headings.includes(value)) {\n return `var(--mantine-${value}-line-height)`;\n }\n return value;\n}\n\nexport { lineHeightResolver };\n//# sourceMappingURL=line-height-resolver.mjs.map\n"],"names":[],"mappings":"AACA,MAAM,WAAW,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AACpD,SAAS,mBAAmB,OAAO,OAAO;AACxC,MAAI,OAAO,UAAU,YAAY,SAAS,MAAM,aAAa;AAC3D,WAAO,6BAA6B,KAAK;AAAA,EAC7C;AACE,MAAI,OAAO,UAAU,YAAY,SAAS,SAAS,KAAK,GAAG;AACzD,WAAO,iBAAiB,KAAK;AAAA,EACjC;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { rem } from "../../../../utils/units-converters/rem.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
-
function sizeResolver(value) {
|
|
5
|
-
if (typeof value === "number") {
|
|
6
|
-
return rem(value);
|
|
7
|
-
}
|
|
8
|
-
return value;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
sizeResolver
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=size-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"size-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.mjs"],"sourcesContent":["'use client';\nimport { rem } from '../../../../utils/units-converters/rem.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\n\nfunction sizeResolver(value) {\n if (typeof value === \"number\") {\n return rem(value);\n }\n return value;\n}\n\nexport { sizeResolver };\n//# sourceMappingURL=size-resolver.mjs.map\n"],"names":[],"mappings":";;;AAMA,SAAS,aAAa,OAAO;AAC3B,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,IAAI,KAAK;AAAA,EACpB;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { rem } from "../../../../utils/units-converters/rem.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
-
function spacingResolver(value, theme) {
|
|
5
|
-
if (typeof value === "number") {
|
|
6
|
-
return rem(value);
|
|
7
|
-
}
|
|
8
|
-
if (typeof value === "string") {
|
|
9
|
-
const mod = value.replace("-", "");
|
|
10
|
-
if (!(mod in theme.spacing)) {
|
|
11
|
-
return rem(value);
|
|
12
|
-
}
|
|
13
|
-
const variable = `--mantine-spacing-${mod}`;
|
|
14
|
-
return value.startsWith("-") ? `calc(var(${variable}) * -1)` : `var(${variable})`;
|
|
15
|
-
}
|
|
16
|
-
return value;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
spacingResolver
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=spacing-resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacing-resolver.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.mjs"],"sourcesContent":["'use client';\nimport { rem } from '../../../../utils/units-converters/rem.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\n\nfunction spacingResolver(value, theme) {\n if (typeof value === \"number\") {\n return rem(value);\n }\n if (typeof value === \"string\") {\n const mod = value.replace(\"-\", \"\");\n if (!(mod in theme.spacing)) {\n return rem(value);\n }\n const variable = `--mantine-spacing-${mod}`;\n return value.startsWith(\"-\") ? `calc(var(${variable}) * -1)` : `var(${variable})`;\n }\n return value;\n}\n\nexport { spacingResolver };\n//# sourceMappingURL=spacing-resolver.mjs.map\n"],"names":[],"mappings":";;;AAMA,SAAS,gBAAgB,OAAO,OAAO;AACrC,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,IAAI,KAAK;AAAA,EACpB;AACE,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,MAAM,MAAM,QAAQ,KAAK,EAAE;AACjC,QAAI,EAAE,OAAO,MAAM,UAAU;AAC3B,aAAO,IAAI,KAAK;AAAA,IACtB;AACI,UAAM,WAAW,qBAAqB,GAAG;AACzC,WAAO,MAAM,WAAW,GAAG,IAAI,YAAY,QAAQ,YAAY,OAAO,QAAQ;AAAA,EAClF;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const STYlE_PROPS_DATA = {
|
|
2
|
-
m: { type: "spacing", property: "margin" },
|
|
3
|
-
mt: { type: "spacing", property: "marginTop" },
|
|
4
|
-
mb: { type: "spacing", property: "marginBottom" },
|
|
5
|
-
ml: { type: "spacing", property: "marginLeft" },
|
|
6
|
-
mr: { type: "spacing", property: "marginRight" },
|
|
7
|
-
ms: { type: "spacing", property: "marginInlineStart" },
|
|
8
|
-
me: { type: "spacing", property: "marginInlineEnd" },
|
|
9
|
-
mx: { type: "spacing", property: "marginInline" },
|
|
10
|
-
my: { type: "spacing", property: "marginBlock" },
|
|
11
|
-
p: { type: "spacing", property: "padding" },
|
|
12
|
-
pt: { type: "spacing", property: "paddingTop" },
|
|
13
|
-
pb: { type: "spacing", property: "paddingBottom" },
|
|
14
|
-
pl: { type: "spacing", property: "paddingLeft" },
|
|
15
|
-
pr: { type: "spacing", property: "paddingRight" },
|
|
16
|
-
ps: { type: "spacing", property: "paddingInlineStart" },
|
|
17
|
-
pe: { type: "spacing", property: "paddingInlineEnd" },
|
|
18
|
-
px: { type: "spacing", property: "paddingInline" },
|
|
19
|
-
py: { type: "spacing", property: "paddingBlock" },
|
|
20
|
-
bd: { type: "border", property: "border" },
|
|
21
|
-
bg: { type: "color", property: "background" },
|
|
22
|
-
c: { type: "textColor", property: "color" },
|
|
23
|
-
opacity: { type: "identity", property: "opacity" },
|
|
24
|
-
ff: { type: "fontFamily", property: "fontFamily" },
|
|
25
|
-
fz: { type: "fontSize", property: "fontSize" },
|
|
26
|
-
fw: { type: "identity", property: "fontWeight" },
|
|
27
|
-
lts: { type: "size", property: "letterSpacing" },
|
|
28
|
-
ta: { type: "identity", property: "textAlign" },
|
|
29
|
-
lh: { type: "lineHeight", property: "lineHeight" },
|
|
30
|
-
fs: { type: "identity", property: "fontStyle" },
|
|
31
|
-
tt: { type: "identity", property: "textTransform" },
|
|
32
|
-
td: { type: "identity", property: "textDecoration" },
|
|
33
|
-
w: { type: "spacing", property: "width" },
|
|
34
|
-
miw: { type: "spacing", property: "minWidth" },
|
|
35
|
-
maw: { type: "spacing", property: "maxWidth" },
|
|
36
|
-
h: { type: "spacing", property: "height" },
|
|
37
|
-
mih: { type: "spacing", property: "minHeight" },
|
|
38
|
-
mah: { type: "spacing", property: "maxHeight" },
|
|
39
|
-
bgsz: { type: "size", property: "backgroundSize" },
|
|
40
|
-
bgp: { type: "identity", property: "backgroundPosition" },
|
|
41
|
-
bgr: { type: "identity", property: "backgroundRepeat" },
|
|
42
|
-
bga: { type: "identity", property: "backgroundAttachment" },
|
|
43
|
-
pos: { type: "identity", property: "position" },
|
|
44
|
-
top: { type: "size", property: "top" },
|
|
45
|
-
left: { type: "size", property: "left" },
|
|
46
|
-
bottom: { type: "size", property: "bottom" },
|
|
47
|
-
right: { type: "size", property: "right" },
|
|
48
|
-
inset: { type: "size", property: "inset" },
|
|
49
|
-
display: { type: "identity", property: "display" },
|
|
50
|
-
flex: { type: "identity", property: "flex" }
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
STYlE_PROPS_DATA
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=style-props-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-props-data.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.mjs"],"sourcesContent":["'use client';\nconst STYlE_PROPS_DATA = {\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 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 bd: { type: \"border\", property: \"border\" },\n bg: { type: \"color\", property: \"background\" },\n c: { type: \"textColor\", property: \"color\" },\n opacity: { type: \"identity\", property: \"opacity\" },\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 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 bgsz: { type: \"size\", property: \"backgroundSize\" },\n bgp: { type: \"identity\", property: \"backgroundPosition\" },\n bgr: { type: \"identity\", property: \"backgroundRepeat\" },\n bga: { type: \"identity\", property: \"backgroundAttachment\" },\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 display: { type: \"identity\", property: \"display\" },\n flex: { type: \"identity\", property: \"flex\" }\n};\n\nexport { STYlE_PROPS_DATA };\n//# sourceMappingURL=style-props-data.mjs.map\n"],"names":[],"mappings":"AACK,MAAC,mBAAmB;AAAA,EACvB,GAAG,EAAE,MAAM,WAAW,UAAU,SAAU;AAAA,EAC1C,IAAI,EAAE,MAAM,WAAW,UAAU,YAAa;AAAA,EAC9C,IAAI,EAAE,MAAM,WAAW,UAAU,eAAgB;AAAA,EACjD,IAAI,EAAE,MAAM,WAAW,UAAU,aAAc;AAAA,EAC/C,IAAI,EAAE,MAAM,WAAW,UAAU,cAAe;AAAA,EAChD,IAAI,EAAE,MAAM,WAAW,UAAU,oBAAqB;AAAA,EACtD,IAAI,EAAE,MAAM,WAAW,UAAU,kBAAmB;AAAA,EACpD,IAAI,EAAE,MAAM,WAAW,UAAU,eAAgB;AAAA,EACjD,IAAI,EAAE,MAAM,WAAW,UAAU,cAAe;AAAA,EAChD,GAAG,EAAE,MAAM,WAAW,UAAU,UAAW;AAAA,EAC3C,IAAI,EAAE,MAAM,WAAW,UAAU,aAAc;AAAA,EAC/C,IAAI,EAAE,MAAM,WAAW,UAAU,gBAAiB;AAAA,EAClD,IAAI,EAAE,MAAM,WAAW,UAAU,cAAe;AAAA,EAChD,IAAI,EAAE,MAAM,WAAW,UAAU,eAAgB;AAAA,EACjD,IAAI,EAAE,MAAM,WAAW,UAAU,qBAAsB;AAAA,EACvD,IAAI,EAAE,MAAM,WAAW,UAAU,mBAAoB;AAAA,EACrD,IAAI,EAAE,MAAM,WAAW,UAAU,gBAAiB;AAAA,EAClD,IAAI,EAAE,MAAM,WAAW,UAAU,eAAgB;AAAA,EACjD,IAAI,EAAE,MAAM,UAAU,UAAU,SAAU;AAAA,EAC1C,IAAI,EAAE,MAAM,SAAS,UAAU,aAAc;AAAA,EAC7C,GAAG,EAAE,MAAM,aAAa,UAAU,QAAS;AAAA,EAC3C,SAAS,EAAE,MAAM,YAAY,UAAU,UAAW;AAAA,EAClD,IAAI,EAAE,MAAM,cAAc,UAAU,aAAc;AAAA,EAClD,IAAI,EAAE,MAAM,YAAY,UAAU,WAAY;AAAA,EAC9C,IAAI,EAAE,MAAM,YAAY,UAAU,aAAc;AAAA,EAChD,KAAK,EAAE,MAAM,QAAQ,UAAU,gBAAiB;AAAA,EAChD,IAAI,EAAE,MAAM,YAAY,UAAU,YAAa;AAAA,EAC/C,IAAI,EAAE,MAAM,cAAc,UAAU,aAAc;AAAA,EAClD,IAAI,EAAE,MAAM,YAAY,UAAU,YAAa;AAAA,EAC/C,IAAI,EAAE,MAAM,YAAY,UAAU,gBAAiB;AAAA,EACnD,IAAI,EAAE,MAAM,YAAY,UAAU,iBAAkB;AAAA,EACpD,GAAG,EAAE,MAAM,WAAW,UAAU,QAAS;AAAA,EACzC,KAAK,EAAE,MAAM,WAAW,UAAU,WAAY;AAAA,EAC9C,KAAK,EAAE,MAAM,WAAW,UAAU,WAAY;AAAA,EAC9C,GAAG,EAAE,MAAM,WAAW,UAAU,SAAU;AAAA,EAC1C,KAAK,EAAE,MAAM,WAAW,UAAU,YAAa;AAAA,EAC/C,KAAK,EAAE,MAAM,WAAW,UAAU,YAAa;AAAA,EAC/C,MAAM,EAAE,MAAM,QAAQ,UAAU,iBAAkB;AAAA,EAClD,KAAK,EAAE,MAAM,YAAY,UAAU,qBAAsB;AAAA,EACzD,KAAK,EAAE,MAAM,YAAY,UAAU,mBAAoB;AAAA,EACvD,KAAK,EAAE,MAAM,YAAY,UAAU,uBAAwB;AAAA,EAC3D,KAAK,EAAE,MAAM,YAAY,UAAU,WAAY;AAAA,EAC/C,KAAK,EAAE,MAAM,QAAQ,UAAU,MAAO;AAAA,EACtC,MAAM,EAAE,MAAM,QAAQ,UAAU,OAAQ;AAAA,EACxC,QAAQ,EAAE,MAAM,QAAQ,UAAU,SAAU;AAAA,EAC5C,OAAO,EAAE,MAAM,QAAQ,UAAU,QAAS;AAAA,EAC1C,OAAO,EAAE,MAAM,QAAQ,UAAU,QAAS;AAAA,EAC1C,SAAS,EAAE,MAAM,YAAY,UAAU,UAAW;AAAA,EAClD,MAAM,EAAE,MAAM,YAAY,UAAU,OAAM;AAC5C;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-random-classname.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.mjs"],"sourcesContent":["'use client';\nimport { useId } from 'react';\n\nfunction useRandomClassName() {\n const id = useId().replace(/:/g, \"\");\n return `__m__-${id}`;\n}\n\nexport { useRandomClassName };\n//# sourceMappingURL=use-random-classname.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,qBAAqB;AAC5B,QAAM,KAAK,MAAK,EAAG,QAAQ,MAAM,EAAE;AACnC,SAAO,SAAS,EAAE;AACpB;","x_google_ignoreList":[0]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { useMantineStyleNonce } from "../MantineProvider/Mantine.context.js";
|
|
4
|
-
import { stylesToString } from "./styles-to-string/styles-to-string.js";
|
|
5
|
-
function InlineStyles(props) {
|
|
6
|
-
const nonce = useMantineStyleNonce();
|
|
7
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8
|
-
"style",
|
|
9
|
-
{
|
|
10
|
-
"data-mantine-styles": "inline",
|
|
11
|
-
nonce: nonce == null ? void 0 : nonce(),
|
|
12
|
-
dangerouslySetInnerHTML: { __html: stylesToString(props) }
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
InlineStyles
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=InlineStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InlineStyles.js","sources":["../../../../../../../node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.mjs"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport 'react';\nimport '@mantine/hooks';\nimport { useMantineStyleNonce } from '../MantineProvider/Mantine.context.mjs';\nimport '../MantineProvider/default-theme.mjs';\nimport '../MantineProvider/MantineProvider.mjs';\nimport '../MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs';\nimport '../MantineProvider/MantineCssVariables/MantineCssVariables.mjs';\nimport { stylesToString } from './styles-to-string/styles-to-string.mjs';\n\nfunction InlineStyles(props) {\n const nonce = useMantineStyleNonce();\n return /* @__PURE__ */ jsx(\n \"style\",\n {\n \"data-mantine-styles\": \"inline\",\n nonce: nonce?.(),\n dangerouslySetInnerHTML: { __html: stylesToString(props) }\n }\n );\n}\n\nexport { InlineStyles };\n//# sourceMappingURL=InlineStyles.mjs.map\n"],"names":["jsx"],"mappings":";;;;AAWA,SAAS,aAAa,OAAO;AAC3B,QAAM,QAAQ,qBAAsB;AACpC,SAAuBA,kCAAG;AAAA,IACxB;AAAA,IACA;AAAA,MACE,uBAAuB;AAAA,MACvB,OAAO;AAAA,MACP,yBAAyB,EAAE,QAAQ,eAAe,KAAK,EAAC;AAAA,IAC9D;AAAA,EACG;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { keys } from "../../utils/keys/keys.js";
|
|
2
|
-
import { camelToKebabCase } from "../../utils/camel-to-kebab-case/camel-to-kebab-case.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "../../../../../../../_virtual/jsx-runtime.js";
|
|
5
|
-
function cssObjectToString(css) {
|
|
6
|
-
return keys(css).reduce(
|
|
7
|
-
(acc, rule) => css[rule] !== void 0 ? `${acc}${camelToKebabCase(rule)}:${css[rule]};` : acc,
|
|
8
|
-
""
|
|
9
|
-
).trim();
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
cssObjectToString
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=css-object-to-string.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css-object-to-string.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.mjs"],"sourcesContent":["'use client';\nimport { keys } from '../../utils/keys/keys.mjs';\nimport { camelToKebabCase } from '../../utils/camel-to-kebab-case/camel-to-kebab-case.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\n\nfunction cssObjectToString(css) {\n return keys(css).reduce(\n (acc, rule) => css[rule] !== void 0 ? `${acc}${camelToKebabCase(rule)}:${css[rule]};` : acc,\n \"\"\n ).trim();\n}\n\nexport { cssObjectToString };\n//# sourceMappingURL=css-object-to-string.mjs.map\n"],"names":[],"mappings":";;;;AAOA,SAAS,kBAAkB,KAAK;AAC9B,SAAO,KAAK,GAAG,EAAE;AAAA,IACf,CAAC,KAAK,SAAS,IAAI,IAAI,MAAM,SAAS,GAAG,GAAG,GAAG,iBAAiB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM;AAAA,IACxF;AAAA,EACD,EAAC,KAAM;AACV;","x_google_ignoreList":[0]}
|
package/dist/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { cssObjectToString } from "../css-object-to-string/css-object-to-string.js";
|
|
2
|
-
function stylesToString({ selector, styles, media, container }) {
|
|
3
|
-
const baseStyles = styles ? cssObjectToString(styles) : "";
|
|
4
|
-
const mediaQueryStyles = !Array.isArray(media) ? [] : media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);
|
|
5
|
-
const containerStyles = !Array.isArray(container) ? [] : container.map(
|
|
6
|
-
(item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`
|
|
7
|
-
);
|
|
8
|
-
return `${baseStyles ? `${selector}{${baseStyles}}` : ""}${mediaQueryStyles.join("")}${containerStyles.join("")}`.trim();
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
stylesToString
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=styles-to-string.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles-to-string.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.mjs"],"sourcesContent":["'use client';\nimport { cssObjectToString } from '../css-object-to-string/css-object-to-string.mjs';\n\nfunction stylesToString({ selector, styles, media, container }) {\n const baseStyles = styles ? cssObjectToString(styles) : \"\";\n const mediaQueryStyles = !Array.isArray(media) ? [] : media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`);\n const containerStyles = !Array.isArray(container) ? [] : container.map(\n (item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`\n );\n return `${baseStyles ? `${selector}{${baseStyles}}` : \"\"}${mediaQueryStyles.join(\"\")}${containerStyles.join(\"\")}`.trim();\n}\n\nexport { stylesToString };\n//# sourceMappingURL=styles-to-string.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,eAAe,EAAE,UAAU,QAAQ,OAAO,UAAS,GAAI;AAC9D,QAAM,aAAa,SAAS,kBAAkB,MAAM,IAAI;AACxD,QAAM,mBAAmB,CAAC,MAAM,QAAQ,KAAK,IAAI,CAAA,IAAK,MAAM,IAAI,CAAC,SAAS,SAAS,KAAK,KAAK,IAAI,QAAQ,IAAI,kBAAkB,KAAK,MAAM,CAAC,IAAI;AAC/I,QAAM,kBAAkB,CAAC,MAAM,QAAQ,SAAS,IAAI,CAAA,IAAK,UAAU;AAAA,IACjE,CAAC,SAAS,cAAc,KAAK,KAAK,IAAI,QAAQ,IAAI,kBAAkB,KAAK,MAAM,CAAC;AAAA,EACjF;AACD,SAAO,GAAG,aAAa,GAAG,QAAQ,IAAI,UAAU,MAAM,EAAE,GAAG,iBAAiB,KAAK,EAAE,CAAC,GAAG,gBAAgB,KAAK,EAAE,CAAC,GAAG,KAAM;AAC1H;","x_google_ignoreList":[0]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useContext, createContext } from "react";
|
|
2
|
-
const MantineContext = createContext(null);
|
|
3
|
-
function useMantineContext() {
|
|
4
|
-
const ctx = useContext(MantineContext);
|
|
5
|
-
if (!ctx) {
|
|
6
|
-
throw new Error("[@mantine/core] MantineProvider was not found in tree");
|
|
7
|
-
}
|
|
8
|
-
return ctx;
|
|
9
|
-
}
|
|
10
|
-
function useMantineClassNamesPrefix() {
|
|
11
|
-
return useMantineContext().classNamesPrefix;
|
|
12
|
-
}
|
|
13
|
-
function useMantineStyleNonce() {
|
|
14
|
-
return useMantineContext().getStyleNonce;
|
|
15
|
-
}
|
|
16
|
-
function useMantineWithStaticClasses() {
|
|
17
|
-
return useMantineContext().withStaticClasses;
|
|
18
|
-
}
|
|
19
|
-
function useMantineIsHeadless() {
|
|
20
|
-
return useMantineContext().headless;
|
|
21
|
-
}
|
|
22
|
-
function useMantineSxTransform() {
|
|
23
|
-
var _a;
|
|
24
|
-
return (_a = useMantineContext().stylesTransform) == null ? void 0 : _a.sx;
|
|
25
|
-
}
|
|
26
|
-
function useMantineStylesTransform() {
|
|
27
|
-
var _a;
|
|
28
|
-
return (_a = useMantineContext().stylesTransform) == null ? void 0 : _a.styles;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
MantineContext,
|
|
32
|
-
useMantineClassNamesPrefix,
|
|
33
|
-
useMantineContext,
|
|
34
|
-
useMantineIsHeadless,
|
|
35
|
-
useMantineStyleNonce,
|
|
36
|
-
useMantineStylesTransform,
|
|
37
|
-
useMantineSxTransform,
|
|
38
|
-
useMantineWithStaticClasses
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=Mantine.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Mantine.context.js","sources":["../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.mjs"],"sourcesContent":["'use client';\nimport { createContext, useContext } from 'react';\n\nconst MantineContext = createContext(null);\nfunction useMantineContext() {\n const ctx = useContext(MantineContext);\n if (!ctx) {\n throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");\n }\n return ctx;\n}\nfunction useMantineCssVariablesResolver() {\n return useMantineContext().cssVariablesResolver;\n}\nfunction useMantineClassNamesPrefix() {\n return useMantineContext().classNamesPrefix;\n}\nfunction useMantineStyleNonce() {\n return useMantineContext().getStyleNonce;\n}\nfunction useMantineWithStaticClasses() {\n return useMantineContext().withStaticClasses;\n}\nfunction useMantineIsHeadless() {\n return useMantineContext().headless;\n}\nfunction useMantineSxTransform() {\n return useMantineContext().stylesTransform?.sx;\n}\nfunction useMantineStylesTransform() {\n return useMantineContext().stylesTransform?.styles;\n}\n\nexport { MantineContext, useMantineClassNamesPrefix, useMantineContext, useMantineCssVariablesResolver, useMantineIsHeadless, useMantineStyleNonce, useMantineStylesTransform, useMantineSxTransform, useMantineWithStaticClasses };\n//# sourceMappingURL=Mantine.context.mjs.map\n"],"names":[],"mappings":";AAGK,MAAC,iBAAiB,cAAc,IAAI;AACzC,SAAS,oBAAoB;AAC3B,QAAM,MAAM,WAAW,cAAc;AACrC,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,uDAAuD;AAAA,EAC3E;AACE,SAAO;AACT;AAIA,SAAS,6BAA6B;AACpC,SAAO,kBAAmB,EAAC;AAC7B;AACA,SAAS,uBAAuB;AAC9B,SAAO,kBAAmB,EAAC;AAC7B;AACA,SAAS,8BAA8B;AACrC,SAAO,kBAAmB,EAAC;AAC7B;AACA,SAAS,uBAAuB;AAC9B,SAAO,kBAAmB,EAAC;AAC7B;AACA,SAAS,wBAAwB;;AAC/B,UAAO,uBAAiB,EAAG,oBAApB,mBAAqC;AAC9C;AACA,SAAS,4BAA4B;;AACnC,UAAO,uBAAiB,EAAG,oBAApB,mBAAqC;AAC9C;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "../../../../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useContext, createContext } from "react";
|
|
3
|
-
const MantineThemeContext = createContext(null);
|
|
4
|
-
function useMantineTheme() {
|
|
5
|
-
const ctx = useContext(MantineThemeContext);
|
|
6
|
-
if (!ctx) {
|
|
7
|
-
throw new Error(
|
|
8
|
-
"@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
return ctx;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
MantineThemeContext,
|
|
15
|
-
useMantineTheme
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=MantineThemeProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MantineThemeProvider.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.mjs"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { createContext, useContext, useMemo } from 'react';\nimport { DEFAULT_THEME } from '../default-theme.mjs';\nimport { mergeMantineTheme } from '../merge-mantine-theme/merge-mantine-theme.mjs';\n\nconst MantineThemeContext = createContext(null);\nconst useSafeMantineTheme = () => useContext(MantineThemeContext) || DEFAULT_THEME;\nfunction 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 return ctx;\n}\nfunction MantineThemeProvider({\n theme,\n children,\n inherit = true\n}) {\n const parentTheme = useSafeMantineTheme();\n const mergedTheme = useMemo(\n () => mergeMantineTheme(inherit ? parentTheme : DEFAULT_THEME, theme),\n [theme, parentTheme, inherit]\n );\n return /* @__PURE__ */ jsx(MantineThemeContext.Provider, { value: mergedTheme, children });\n}\nMantineThemeProvider.displayName = \"@mantine/core/MantineThemeProvider\";\n\nexport { MantineThemeContext, MantineThemeProvider, useMantineTheme, useSafeMantineTheme };\n//# sourceMappingURL=MantineThemeProvider.mjs.map\n"],"names":[],"mappings":";;AAMK,MAAC,sBAAsB,cAAc,IAAI;AAE9C,SAAS,kBAAkB;AACzB,QAAM,MAAM,WAAW,mBAAmB;AAC1C,MAAI,CAAC,KAAK;AACR,UAAM,IAAI;AAAA,MACR;AAAA,IACD;AAAA,EACL;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { toRgba } from "../to-rgba/to-rgba.js";
|
|
2
|
-
function darken(color, alpha) {
|
|
3
|
-
if (color.startsWith("var(")) {
|
|
4
|
-
return `color-mix(in srgb, ${color}, black ${alpha * 100}%)`;
|
|
5
|
-
}
|
|
6
|
-
const { r, g, b, a } = toRgba(color);
|
|
7
|
-
const f = 1 - alpha;
|
|
8
|
-
const dark = (input) => Math.round(input * f);
|
|
9
|
-
return `rgba(${dark(r)}, ${dark(g)}, ${dark(b)}, ${a})`;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
darken
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=darken.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"darken.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.mjs"],"sourcesContent":["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"],"names":[],"mappings":";AAEA,SAAS,OAAO,OAAO,OAAO;AAC5B,MAAI,MAAM,WAAW,MAAM,GAAG;AAC5B,WAAO,sBAAsB,KAAK,WAAW,QAAQ,GAAG;AAAA,EAC5D;AACE,QAAM,EAAE,GAAG,GAAG,GAAG,EAAG,IAAG,OAAO,KAAK;AACnC,QAAM,IAAI,IAAI;AACd,QAAM,OAAO,CAAC,UAAU,KAAK,MAAM,QAAQ,CAAC;AAC5C,SAAO,QAAQ,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC;AACtD;","x_google_ignoreList":[0]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getThemeColor } from "../get-theme-color/get-theme-color.js";
|
|
2
|
-
function getGradient(gradient, theme) {
|
|
3
|
-
const merged = {
|
|
4
|
-
from: (gradient == null ? void 0 : gradient.from) || theme.defaultGradient.from,
|
|
5
|
-
to: (gradient == null ? void 0 : gradient.to) || theme.defaultGradient.to,
|
|
6
|
-
deg: (gradient == null ? void 0 : gradient.deg) || theme.defaultGradient.deg || 0
|
|
7
|
-
};
|
|
8
|
-
const fromColor = getThemeColor(merged.from, theme);
|
|
9
|
-
const toColor = getThemeColor(merged.to, theme);
|
|
10
|
-
return `linear-gradient(${merged.deg}deg, ${fromColor} 0%, ${toColor} 100%)`;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
getGradient
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=get-gradient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-gradient.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.mjs"],"sourcesContent":["'use client';\nimport { getThemeColor } from '../get-theme-color/get-theme-color.mjs';\n\nfunction getGradient(gradient, theme) {\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 const fromColor = getThemeColor(merged.from, theme);\n const toColor = getThemeColor(merged.to, theme);\n return `linear-gradient(${merged.deg}deg, ${fromColor} 0%, ${toColor} 100%)`;\n}\n\nexport { getGradient };\n//# sourceMappingURL=get-gradient.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,YAAY,UAAU,OAAO;AACpC,QAAM,SAAS;AAAA,IACb,OAAM,qCAAU,SAAQ,MAAM,gBAAgB;AAAA,IAC9C,KAAI,qCAAU,OAAM,MAAM,gBAAgB;AAAA,IAC1C,MAAK,qCAAU,QAAO,MAAM,gBAAgB,OAAO;AAAA,EACpD;AACD,QAAM,YAAY,cAAc,OAAO,MAAM,KAAK;AAClD,QAAM,UAAU,cAAc,OAAO,IAAI,KAAK;AAC9C,SAAO,mBAAmB,OAAO,GAAG,QAAQ,SAAS,QAAQ,OAAO;AACtE;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function getPrimaryShade(theme, colorScheme) {
|
|
2
|
-
if (typeof theme.primaryShade === "number") {
|
|
3
|
-
return theme.primaryShade;
|
|
4
|
-
}
|
|
5
|
-
if (colorScheme === "dark") {
|
|
6
|
-
return theme.primaryShade.dark;
|
|
7
|
-
}
|
|
8
|
-
return theme.primaryShade.light;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
getPrimaryShade
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=get-primary-shade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-primary-shade.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.mjs"],"sourcesContent":["'use client';\nfunction getPrimaryShade(theme, colorScheme) {\n if (typeof theme.primaryShade === \"number\") {\n return theme.primaryShade;\n }\n if (colorScheme === \"dark\") {\n return theme.primaryShade.dark;\n }\n return theme.primaryShade.light;\n}\n\nexport { getPrimaryShade };\n//# sourceMappingURL=get-primary-shade.mjs.map\n"],"names":[],"mappings":"AACA,SAAS,gBAAgB,OAAO,aAAa;AAC3C,MAAI,OAAO,MAAM,iBAAiB,UAAU;AAC1C,WAAO,MAAM;AAAA,EACjB;AACE,MAAI,gBAAgB,QAAQ;AAC1B,WAAO,MAAM,aAAa;AAAA,EAC9B;AACE,SAAO,MAAM,aAAa;AAC5B;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { parseThemeColor } from "../parse-theme-color/parse-theme-color.js";
|
|
2
|
-
function getThemeColor(color, theme) {
|
|
3
|
-
const parsed = parseThemeColor({ color: color || theme.primaryColor, theme });
|
|
4
|
-
return parsed.variable ? `var(${parsed.variable})` : color;
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
getThemeColor
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=get-theme-color.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-theme-color.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.mjs"],"sourcesContent":["'use client';\nimport { parseThemeColor } from '../parse-theme-color/parse-theme-color.mjs';\n\nfunction getThemeColor(color, theme) {\n const parsed = parseThemeColor({ color: color || theme.primaryColor, theme });\n return parsed.variable ? `var(${parsed.variable})` : color;\n}\n\nexport { getThemeColor };\n//# sourceMappingURL=get-theme-color.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,cAAc,OAAO,OAAO;AACnC,QAAM,SAAS,gBAAgB,EAAE,OAAO,SAAS,MAAM,cAAc,OAAO;AAC5E,SAAO,OAAO,WAAW,OAAO,OAAO,QAAQ,MAAM;AACvD;","x_google_ignoreList":[0]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { toRgba } from "../to-rgba/to-rgba.js";
|
|
2
|
-
function gammaCorrect(c) {
|
|
3
|
-
return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
4
|
-
}
|
|
5
|
-
function getLightnessFromOklch(oklchColor) {
|
|
6
|
-
const match = oklchColor.match(/oklch\((.*?)%\s/);
|
|
7
|
-
return match ? parseFloat(match[1]) : null;
|
|
8
|
-
}
|
|
9
|
-
function luminance(color) {
|
|
10
|
-
if (color.startsWith("oklch(")) {
|
|
11
|
-
return (getLightnessFromOklch(color) || 0) / 100;
|
|
12
|
-
}
|
|
13
|
-
const { r, g, b } = toRgba(color);
|
|
14
|
-
const sR = r / 255;
|
|
15
|
-
const sG = g / 255;
|
|
16
|
-
const sB = b / 255;
|
|
17
|
-
const rLinear = gammaCorrect(sR);
|
|
18
|
-
const gLinear = gammaCorrect(sG);
|
|
19
|
-
const bLinear = gammaCorrect(sB);
|
|
20
|
-
return 0.2126 * rLinear + 0.7152 * gLinear + 0.0722 * bLinear;
|
|
21
|
-
}
|
|
22
|
-
function isLightColor(color, luminanceThreshold = 0.179) {
|
|
23
|
-
if (color.startsWith("var(")) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
return luminance(color) > luminanceThreshold;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
isLightColor,
|
|
30
|
-
luminance
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=luminance.js.map
|