@inventreedb/ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +547 -1
- package/dist/_virtual/jsx-runtime.js +6 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/_virtual/jsx-runtime2.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/components/StylishText.d.ts +6 -0
- package/dist/components/StylishText.js +36 -0
- package/dist/components/StylishText.js.map +1 -0
- package/dist/enums/ApiEndpoints.d.ts +1 -0
- package/dist/enums/ApiEndpoints.js +1 -0
- package/dist/enums/ApiEndpoints.js.map +1 -1
- package/dist/functions/Plugins.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.js +94 -0
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.js +6 -0
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.mjs.vanilla.css.js +2 -0
- package/dist/node_modules/@mantine/core/esm/components/Text/Text.module.css.mjs.vanilla.css.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/Box.js +83 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/Box.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-mod/get-box-mod.js +33 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-mod/get-box-mod.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-style/get-box-style.js +29 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/get-box-style/get-box-style.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/extract-style-props/extract-style-props.js +123 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/extract-style-props/extract-style-props.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.js +88 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/parse-style-props.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.js +15 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/parse-style-props/sort-media-queries.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.js +21 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/border-resolver/border-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.js +25 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/color-resolver/color-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.js +17 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-family-resolver/font-family-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.js +23 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.js +7 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/identity-resolver/identity-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.js +23 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/index.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.js +14 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/line-height-resolver/line-height-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.js +13 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/size-resolver/size-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.js +21 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/resolvers/spacing-resolver/spacing-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.js +55 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/style-props/style-props-data.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.js +9 -0
- package/dist/node_modules/@mantine/core/esm/core/Box/use-random-classname/use-random-classname.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.js +19 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/InlineStyles.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js +14 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/css-object-to-string/css-object-to-string.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.js +13 -0
- package/dist/node_modules/@mantine/core/esm/core/InlineStyles/styles-to-string/styles-to-string.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.js +40 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/Mantine.context.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js +17 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/MantineThemeProvider/MantineThemeProvider.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.js +14 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/darken/darken.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.js +15 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-gradient/get-gradient.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.js +13 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-primary-shade/get-primary-shade.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.js +9 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/get-theme-color/get-theme-color.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.js +32 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.js +78 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.js +116 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.js +15 -0
- package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.js +7 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/factory.js +9 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/factory.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/polymorphic-factory.js +18 -0
- package/dist/node_modules/@mantine/core/esm/core/factory/polymorphic-factory.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/create-vars-resolver/create-vars-resolver.js +7 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/create-vars-resolver/create-vars-resolver.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.js +48 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.js +17 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.js +19 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.js +14 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.js +7 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.js +7 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.js +15 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-theme-class-names/get-theme-class-names.js +24 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.js +12 -0
- 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 +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.js +26 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/resolve-class-names/resolve-class-names.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-style.js +32 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-style.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.js +24 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/get-theme-styles/get-theme-styles.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-style/resolve-style.js +19 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-style/resolve-style.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js +13 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-styles/resolve-styles.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.js +17 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/merge-vars.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.js +25 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/get-style/resolve-vars/resolve-vars.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-styles.js +70 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-styles.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-transformed-styles.js +34 -0
- package/dist/node_modules/@mantine/core/esm/core/styles-api/use-styles/use-transformed-styles.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/camel-to-kebab-case/camel-to-kebab-case.js +7 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/camel-to-kebab-case/camel-to-kebab-case.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/filter-props/filter-props.js +12 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/filter-props/filter-props.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/get-size/get-size.js +20 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/get-size/get-size.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/is-number-like/is-number-like.js +18 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/is-number-like/is-number-like.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/keys/keys.js +7 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/keys/keys.js.map +1 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/units-converters/rem.js +47 -0
- package/dist/node_modules/@mantine/core/esm/core/utils/units-converters/rem.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +891 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +34 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +18 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/types/Forms.d.ts +1 -0
- package/dist/types/Modals.d.ts +1 -0
- package/dist/types/Settings.d.ts +1 -0
- package/lib/components/StylishText.tsx +46 -0
- package/lib/enums/ApiEndpoints.tsx +1 -0
- package/lib/functions/Plugins.tsx +4 -2
- package/lib/index.ts +3 -0
- package/lib/types/Forms.tsx +1 -0
- package/lib/types/Modals.tsx +1 -0
- package/lib/types/Settings.tsx +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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]}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"luminance.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/luminance/luminance.mjs"],"sourcesContent":["'use client';\nimport { 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"],"names":[],"mappings":";AAGA,SAAS,aAAa,GAAG;AACvB,SAAO,KAAK,UAAU,IAAI,UAAU,IAAI,SAAS,UAAU;AAC7D;AACA,SAAS,sBAAsB,YAAY;AACzC,QAAM,QAAQ,WAAW,MAAM,iBAAiB;AAChD,SAAO,QAAQ,WAAW,MAAM,CAAC,CAAC,IAAI;AACxC;AACA,SAAS,UAAU,OAAO;AACxB,MAAI,MAAM,WAAW,QAAQ,GAAG;AAC9B,YAAQ,sBAAsB,KAAK,KAAK,KAAK;AAAA,EACjD;AACE,QAAM,EAAE,GAAG,GAAG,EAAC,IAAK,OAAO,KAAK;AAChC,QAAM,KAAK,IAAI;AACf,QAAM,KAAK,IAAI;AACf,QAAM,KAAK,IAAI;AACf,QAAM,UAAU,aAAa,EAAE;AAC/B,QAAM,UAAU,aAAa,EAAE;AAC/B,QAAM,UAAU,aAAa,EAAE;AAC/B,SAAO,SAAS,UAAU,SAAS,UAAU,SAAS;AACxD;AACA,SAAS,aAAa,OAAO,qBAAqB,OAAO;AACvD,MAAI,MAAM,WAAW,MAAM,GAAG;AAC5B,WAAO;AAAA,EACX;AACE,SAAO,UAAU,KAAK,IAAI;AAC5B;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { getPrimaryShade } from "../get-primary-shade/get-primary-shade.js";
|
|
2
|
+
import { isLightColor } from "../luminance/luminance.js";
|
|
3
|
+
function parseThemeColor({
|
|
4
|
+
color,
|
|
5
|
+
theme,
|
|
6
|
+
colorScheme
|
|
7
|
+
}) {
|
|
8
|
+
if (typeof color !== "string") {
|
|
9
|
+
throw new Error(
|
|
10
|
+
`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof color}`
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
if (color === "bright") {
|
|
14
|
+
return {
|
|
15
|
+
color,
|
|
16
|
+
value: colorScheme === "dark" ? theme.white : theme.black,
|
|
17
|
+
shade: void 0,
|
|
18
|
+
isThemeColor: false,
|
|
19
|
+
isLight: isLightColor(
|
|
20
|
+
colorScheme === "dark" ? theme.white : theme.black,
|
|
21
|
+
theme.luminanceThreshold
|
|
22
|
+
),
|
|
23
|
+
variable: "--mantine-color-bright"
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (color === "dimmed") {
|
|
27
|
+
return {
|
|
28
|
+
color,
|
|
29
|
+
value: colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[7],
|
|
30
|
+
shade: void 0,
|
|
31
|
+
isThemeColor: false,
|
|
32
|
+
isLight: isLightColor(
|
|
33
|
+
colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6],
|
|
34
|
+
theme.luminanceThreshold
|
|
35
|
+
),
|
|
36
|
+
variable: "--mantine-color-dimmed"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (color === "white" || color === "black") {
|
|
40
|
+
return {
|
|
41
|
+
color,
|
|
42
|
+
value: color === "white" ? theme.white : theme.black,
|
|
43
|
+
shade: void 0,
|
|
44
|
+
isThemeColor: false,
|
|
45
|
+
isLight: isLightColor(
|
|
46
|
+
color === "white" ? theme.white : theme.black,
|
|
47
|
+
theme.luminanceThreshold
|
|
48
|
+
),
|
|
49
|
+
variable: `--mantine-color-${color}`
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const [_color, shade] = color.split(".");
|
|
53
|
+
const colorShade = shade ? Number(shade) : void 0;
|
|
54
|
+
const isThemeColor = _color in theme.colors;
|
|
55
|
+
if (isThemeColor) {
|
|
56
|
+
const colorValue = colorShade !== void 0 ? theme.colors[_color][colorShade] : theme.colors[_color][getPrimaryShade(theme, colorScheme || "light")];
|
|
57
|
+
return {
|
|
58
|
+
color: _color,
|
|
59
|
+
value: colorValue,
|
|
60
|
+
shade: colorShade,
|
|
61
|
+
isThemeColor,
|
|
62
|
+
isLight: isLightColor(colorValue, theme.luminanceThreshold),
|
|
63
|
+
variable: shade ? `--mantine-color-${_color}-${colorShade}` : `--mantine-color-${_color}-filled`
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
color,
|
|
68
|
+
value: color,
|
|
69
|
+
isThemeColor,
|
|
70
|
+
isLight: isLightColor(color, theme.luminanceThreshold),
|
|
71
|
+
shade: colorShade,
|
|
72
|
+
variable: void 0
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
parseThemeColor
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=parse-theme-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-theme-color.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs"],"sourcesContent":["'use client';\nimport { getPrimaryShade } from '../get-primary-shade/get-primary-shade.mjs';\nimport { isLightColor } from '../luminance/luminance.mjs';\n\nfunction parseThemeColor({\n color,\n theme,\n colorScheme\n}) {\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 if (color === \"bright\") {\n return {\n color,\n value: colorScheme === \"dark\" ? theme.white : theme.black,\n shade: void 0,\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 if (color === \"dimmed\") {\n return {\n color,\n value: colorScheme === \"dark\" ? theme.colors.dark[2] : theme.colors.gray[7],\n shade: void 0,\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 if (color === \"white\" || color === \"black\") {\n return {\n color,\n value: color === \"white\" ? theme.white : theme.black,\n shade: void 0,\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 const [_color, shade] = color.split(\".\");\n const colorShade = shade ? Number(shade) : void 0;\n const isThemeColor = _color in theme.colors;\n if (isThemeColor) {\n const colorValue = colorShade !== void 0 ? theme.colors[_color][colorShade] : theme.colors[_color][getPrimaryShade(theme, colorScheme || \"light\")];\n return {\n color: _color,\n value: colorValue,\n shade: colorShade,\n isThemeColor,\n isLight: isLightColor(colorValue, theme.luminanceThreshold),\n variable: shade ? `--mantine-color-${_color}-${colorShade}` : `--mantine-color-${_color}-filled`\n };\n }\n return {\n color,\n value: color,\n isThemeColor,\n isLight: isLightColor(color, theme.luminanceThreshold),\n shade: colorShade,\n variable: void 0\n };\n}\n\nexport { parseThemeColor };\n//# sourceMappingURL=parse-theme-color.mjs.map\n"],"names":[],"mappings":";;AAIA,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,MAAI,OAAO,UAAU,UAAU;AAC7B,UAAM,IAAI;AAAA,MACR,qFAAqF,OAAO,KAAK;AAAA,IAClG;AAAA,EACL;AACE,MAAI,UAAU,UAAU;AACtB,WAAO;AAAA,MACL;AAAA,MACA,OAAO,gBAAgB,SAAS,MAAM,QAAQ,MAAM;AAAA,MACpD,OAAO;AAAA,MACP,cAAc;AAAA,MACd,SAAS;AAAA,QACP,gBAAgB,SAAS,MAAM,QAAQ,MAAM;AAAA,QAC7C,MAAM;AAAA,MACP;AAAA,MACD,UAAU;AAAA,IACX;AAAA,EACL;AACE,MAAI,UAAU,UAAU;AACtB,WAAO;AAAA,MACL;AAAA,MACA,OAAO,gBAAgB,SAAS,MAAM,OAAO,KAAK,CAAC,IAAI,MAAM,OAAO,KAAK,CAAC;AAAA,MAC1E,OAAO;AAAA,MACP,cAAc;AAAA,MACd,SAAS;AAAA,QACP,gBAAgB,SAAS,MAAM,OAAO,KAAK,CAAC,IAAI,MAAM,OAAO,KAAK,CAAC;AAAA,QACnE,MAAM;AAAA,MACP;AAAA,MACD,UAAU;AAAA,IACX;AAAA,EACL;AACE,MAAI,UAAU,WAAW,UAAU,SAAS;AAC1C,WAAO;AAAA,MACL;AAAA,MACA,OAAO,UAAU,UAAU,MAAM,QAAQ,MAAM;AAAA,MAC/C,OAAO;AAAA,MACP,cAAc;AAAA,MACd,SAAS;AAAA,QACP,UAAU,UAAU,MAAM,QAAQ,MAAM;AAAA,QACxC,MAAM;AAAA,MACP;AAAA,MACD,UAAU,mBAAmB,KAAK;AAAA,IACnC;AAAA,EACL;AACE,QAAM,CAAC,QAAQ,KAAK,IAAI,MAAM,MAAM,GAAG;AACvC,QAAM,aAAa,QAAQ,OAAO,KAAK,IAAI;AAC3C,QAAM,eAAe,UAAU,MAAM;AACrC,MAAI,cAAc;AAChB,UAAM,aAAa,eAAe,SAAS,MAAM,OAAO,MAAM,EAAE,UAAU,IAAI,MAAM,OAAO,MAAM,EAAE,gBAAgB,OAAO,eAAe,OAAO,CAAC;AACjJ,WAAO;AAAA,MACL,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP;AAAA,MACA,SAAS,aAAa,YAAY,MAAM,kBAAkB;AAAA,MAC1D,UAAU,QAAQ,mBAAmB,MAAM,IAAI,UAAU,KAAK,mBAAmB,MAAM;AAAA,IACxF;AAAA,EACL;AACE,SAAO;AAAA,IACL;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,SAAS,aAAa,OAAO,MAAM,kBAAkB;AAAA,IACrD,OAAO;AAAA,IACP,UAAU;AAAA,EACX;AACH;","x_google_ignoreList":[0]}
|
package/dist/node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
function isHexColor(hex) {
|
|
2
|
+
const HEX_REGEXP = /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i;
|
|
3
|
+
return HEX_REGEXP.test(hex);
|
|
4
|
+
}
|
|
5
|
+
function hexToRgba(color) {
|
|
6
|
+
let hexString = color.replace("#", "");
|
|
7
|
+
if (hexString.length === 3) {
|
|
8
|
+
const shorthandHex = hexString.split("");
|
|
9
|
+
hexString = [
|
|
10
|
+
shorthandHex[0],
|
|
11
|
+
shorthandHex[0],
|
|
12
|
+
shorthandHex[1],
|
|
13
|
+
shorthandHex[1],
|
|
14
|
+
shorthandHex[2],
|
|
15
|
+
shorthandHex[2]
|
|
16
|
+
].join("");
|
|
17
|
+
}
|
|
18
|
+
if (hexString.length === 8) {
|
|
19
|
+
const alpha = parseInt(hexString.slice(6, 8), 16) / 255;
|
|
20
|
+
return {
|
|
21
|
+
r: parseInt(hexString.slice(0, 2), 16),
|
|
22
|
+
g: parseInt(hexString.slice(2, 4), 16),
|
|
23
|
+
b: parseInt(hexString.slice(4, 6), 16),
|
|
24
|
+
a: alpha
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const parsed = parseInt(hexString, 16);
|
|
28
|
+
const r = parsed >> 16 & 255;
|
|
29
|
+
const g = parsed >> 8 & 255;
|
|
30
|
+
const b = parsed & 255;
|
|
31
|
+
return {
|
|
32
|
+
r,
|
|
33
|
+
g,
|
|
34
|
+
b,
|
|
35
|
+
a: 1
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function rgbStringToRgba(color) {
|
|
39
|
+
const [r, g, b, a] = color.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
|
|
40
|
+
return { r, g, b, a: a || 1 };
|
|
41
|
+
}
|
|
42
|
+
function hslStringToRgba(hslaString) {
|
|
43
|
+
const hslaRegex = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i;
|
|
44
|
+
const matches = hslaString.match(hslaRegex);
|
|
45
|
+
if (!matches) {
|
|
46
|
+
return {
|
|
47
|
+
r: 0,
|
|
48
|
+
g: 0,
|
|
49
|
+
b: 0,
|
|
50
|
+
a: 1
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const h = parseInt(matches[1], 10);
|
|
54
|
+
const s = parseInt(matches[2], 10) / 100;
|
|
55
|
+
const l = parseInt(matches[3], 10) / 100;
|
|
56
|
+
const a = matches[5] ? parseFloat(matches[5]) : void 0;
|
|
57
|
+
const chroma = (1 - Math.abs(2 * l - 1)) * s;
|
|
58
|
+
const huePrime = h / 60;
|
|
59
|
+
const x = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
60
|
+
const m = l - chroma / 2;
|
|
61
|
+
let r;
|
|
62
|
+
let g;
|
|
63
|
+
let b;
|
|
64
|
+
if (huePrime >= 0 && huePrime < 1) {
|
|
65
|
+
r = chroma;
|
|
66
|
+
g = x;
|
|
67
|
+
b = 0;
|
|
68
|
+
} else if (huePrime >= 1 && huePrime < 2) {
|
|
69
|
+
r = x;
|
|
70
|
+
g = chroma;
|
|
71
|
+
b = 0;
|
|
72
|
+
} else if (huePrime >= 2 && huePrime < 3) {
|
|
73
|
+
r = 0;
|
|
74
|
+
g = chroma;
|
|
75
|
+
b = x;
|
|
76
|
+
} else if (huePrime >= 3 && huePrime < 4) {
|
|
77
|
+
r = 0;
|
|
78
|
+
g = x;
|
|
79
|
+
b = chroma;
|
|
80
|
+
} else if (huePrime >= 4 && huePrime < 5) {
|
|
81
|
+
r = x;
|
|
82
|
+
g = 0;
|
|
83
|
+
b = chroma;
|
|
84
|
+
} else {
|
|
85
|
+
r = chroma;
|
|
86
|
+
g = 0;
|
|
87
|
+
b = x;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
r: Math.round((r + m) * 255),
|
|
91
|
+
g: Math.round((g + m) * 255),
|
|
92
|
+
b: Math.round((b + m) * 255),
|
|
93
|
+
a: a || 1
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function toRgba(color) {
|
|
97
|
+
if (isHexColor(color)) {
|
|
98
|
+
return hexToRgba(color);
|
|
99
|
+
}
|
|
100
|
+
if (color.startsWith("rgb")) {
|
|
101
|
+
return rgbStringToRgba(color);
|
|
102
|
+
}
|
|
103
|
+
if (color.startsWith("hsl")) {
|
|
104
|
+
return hslStringToRgba(color);
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
r: 0,
|
|
108
|
+
g: 0,
|
|
109
|
+
b: 0,
|
|
110
|
+
a: 1
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
toRgba
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=to-rgba.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-rgba.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/color-functions/to-rgba/to-rgba.mjs"],"sourcesContent":["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"],"names":[],"mappings":"AAAA,SAAS,WAAW,KAAK;AACvB,QAAM,aAAa;AACnB,SAAO,WAAW,KAAK,GAAG;AAC5B;AACA,SAAS,UAAU,OAAO;AACxB,MAAI,YAAY,MAAM,QAAQ,KAAK,EAAE;AACrC,MAAI,UAAU,WAAW,GAAG;AAC1B,UAAM,eAAe,UAAU,MAAM,EAAE;AACvC,gBAAY;AAAA,MACV,aAAa,CAAC;AAAA,MACd,aAAa,CAAC;AAAA,MACd,aAAa,CAAC;AAAA,MACd,aAAa,CAAC;AAAA,MACd,aAAa,CAAC;AAAA,MACd,aAAa,CAAC;AAAA,IACpB,EAAM,KAAK,EAAE;AAAA,EACb;AACE,MAAI,UAAU,WAAW,GAAG;AAC1B,UAAM,QAAQ,SAAS,UAAU,MAAM,GAAG,CAAC,GAAG,EAAE,IAAI;AACpD,WAAO;AAAA,MACL,GAAG,SAAS,UAAU,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,MACrC,GAAG,SAAS,UAAU,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,MACrC,GAAG,SAAS,UAAU,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,MACrC,GAAG;AAAA,IACJ;AAAA,EACL;AACE,QAAM,SAAS,SAAS,WAAW,EAAE;AACrC,QAAM,IAAI,UAAU,KAAK;AACzB,QAAM,IAAI,UAAU,IAAI;AACxB,QAAM,IAAI,SAAS;AACnB,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACJ;AACH;AACA,SAAS,gBAAgB,OAAO;AAC9B,QAAM,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,MAAM,QAAQ,cAAc,EAAE,EAAE,MAAM,MAAM,EAAE,IAAI,MAAM;AAC7E,SAAO,EAAE,GAAG,GAAG,GAAG,GAAG,KAAK,EAAG;AAC/B;AACA,SAAS,gBAAgB,YAAY;AACnC,QAAM,YAAY;AAClB,QAAM,UAAU,WAAW,MAAM,SAAS;AAC1C,MAAI,CAAC,SAAS;AACZ,WAAO;AAAA,MACL,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IACJ;AAAA,EACL;AACE,QAAM,IAAI,SAAS,QAAQ,CAAC,GAAG,EAAE;AACjC,QAAM,IAAI,SAAS,QAAQ,CAAC,GAAG,EAAE,IAAI;AACrC,QAAM,IAAI,SAAS,QAAQ,CAAC,GAAG,EAAE,IAAI;AACrC,QAAM,IAAI,QAAQ,CAAC,IAAI,WAAW,QAAQ,CAAC,CAAC,IAAI;AAChD,QAAM,UAAU,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK;AAC3C,QAAM,WAAW,IAAI;AACrB,QAAM,IAAI,UAAU,IAAI,KAAK,IAAI,WAAW,IAAI,CAAC;AACjD,QAAM,IAAI,IAAI,SAAS;AACvB,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,YAAY,KAAK,WAAW,GAAG;AACjC,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACL,WAAU,YAAY,KAAK,WAAW,GAAG;AACxC,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACL,WAAU,YAAY,KAAK,WAAW,GAAG;AACxC,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACL,WAAU,YAAY,KAAK,WAAW,GAAG;AACxC,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACL,WAAU,YAAY,KAAK,WAAW,GAAG;AACxC,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACR,OAAS;AACL,QAAI;AACJ,QAAI;AACJ,QAAI;AAAA,EACR;AACE,SAAO;AAAA,IACL,GAAG,KAAK,OAAO,IAAI,KAAK,GAAG;AAAA,IAC3B,GAAG,KAAK,OAAO,IAAI,KAAK,GAAG;AAAA,IAC3B,GAAG,KAAK,OAAO,IAAI,KAAK,GAAG;AAAA,IAC3B,GAAG,KAAK;AAAA,EACT;AACH;AACA,SAAS,OAAO,OAAO;AACrB,MAAI,WAAW,KAAK,GAAG;AACrB,WAAO,UAAU,KAAK;AAAA,EAC1B;AACE,MAAI,MAAM,WAAW,KAAK,GAAG;AAC3B,WAAO,gBAAgB,KAAK;AAAA,EAChC;AACE,MAAI,MAAM,WAAW,KAAK,GAAG;AAC3B,WAAO,gBAAgB,KAAK;AAAA,EAChC;AACE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACJ;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { filterProps } from "../../utils/filter-props/filter-props.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../../../../../_virtual/jsx-runtime.js";
|
|
4
|
+
import { useMantineTheme } from "../MantineThemeProvider/MantineThemeProvider.js";
|
|
5
|
+
function useProps(component, defaultProps, props) {
|
|
6
|
+
var _a;
|
|
7
|
+
const theme = useMantineTheme();
|
|
8
|
+
const contextPropsPayload = (_a = theme.components[component]) == null ? void 0 : _a.defaultProps;
|
|
9
|
+
const contextProps = typeof contextPropsPayload === "function" ? contextPropsPayload(theme) : contextPropsPayload;
|
|
10
|
+
return { ...defaultProps, ...contextProps, ...filterProps(props) };
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
useProps
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=use-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-props.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/use-props/use-props.mjs"],"sourcesContent":["'use client';\nimport { filterProps } from '../../utils/filter-props/filter-props.mjs';\nimport 'react';\nimport 'react/jsx-runtime';\nimport '@mantine/hooks';\nimport { useMantineTheme } from '../MantineThemeProvider/MantineThemeProvider.mjs';\n\nfunction useProps(component, defaultProps, props) {\n const theme = useMantineTheme();\n const contextPropsPayload = theme.components[component]?.defaultProps;\n const contextProps = typeof contextPropsPayload === \"function\" ? contextPropsPayload(theme) : contextPropsPayload;\n return { ...defaultProps, ...contextProps, ...filterProps(props) };\n}\n\nexport { useProps };\n//# sourceMappingURL=use-props.mjs.map\n"],"names":[],"mappings":";;;;AAOA,SAAS,SAAS,WAAW,cAAc,OAAO;;AAChD,QAAM,QAAQ,gBAAiB;AAC/B,QAAM,uBAAsB,WAAM,WAAW,SAAS,MAA1B,mBAA6B;AACzD,QAAM,eAAe,OAAO,wBAAwB,aAAa,oBAAoB,KAAK,IAAI;AAC9F,SAAO,EAAE,GAAG,cAAc,GAAG,cAAc,GAAG,YAAY,KAAK,EAAG;AACpE;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-polymorphic-component.js","sources":["../../../../../../../node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.mjs"],"sourcesContent":["function createPolymorphicComponent(component) {\n return component;\n}\n\nexport { createPolymorphicComponent };\n//# sourceMappingURL=create-polymorphic-component.mjs.map\n"],"names":[],"mappings":"AAAA,SAAS,2BAA2B,WAAW;AAC7C,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.js","sources":["../../../../../../../node_modules/@mantine/core/esm/core/factory/factory.mjs"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\n\nfunction identity(value) {\n return value;\n}\nfunction getWithProps(Component) {\n const _Component = Component;\n return (fixedProps) => {\n const Extended = forwardRef((props, ref) => /* @__PURE__ */ jsx(_Component, { ...fixedProps, ...props, ref }));\n Extended.extend = _Component.extend;\n Extended.displayName = `WithProps(${_Component.displayName})`;\n return Extended;\n };\n}\nfunction factory(ui) {\n const Component = forwardRef(ui);\n Component.extend = identity;\n Component.withProps = (fixedProps) => {\n const Extended = forwardRef((props, ref) => /* @__PURE__ */ jsx(Component, { ...fixedProps, ...props, ref }));\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n return Component;\n}\n\nexport { factory, getWithProps, identity };\n//# sourceMappingURL=factory.mjs.map\n"],"names":[],"mappings":";;AAIA,SAAS,SAAS,OAAO;AACvB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { identity } from "./factory.js";
|
|
4
|
+
function polymorphicFactory(ui) {
|
|
5
|
+
const Component = forwardRef(ui);
|
|
6
|
+
Component.withProps = (fixedProps) => {
|
|
7
|
+
const Extended = forwardRef((props, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...fixedProps, ...props, ref }));
|
|
8
|
+
Extended.extend = Component.extend;
|
|
9
|
+
Extended.displayName = `WithProps(${Component.displayName})`;
|
|
10
|
+
return Extended;
|
|
11
|
+
};
|
|
12
|
+
Component.extend = identity;
|
|
13
|
+
return Component;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
polymorphicFactory
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=polymorphic-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorphic-factory.js","sources":["../../../../../../../node_modules/@mantine/core/esm/core/factory/polymorphic-factory.mjs"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\nimport { identity } from './factory.mjs';\n\nfunction polymorphicFactory(ui) {\n const Component = forwardRef(ui);\n Component.withProps = (fixedProps) => {\n const Extended = forwardRef((props, ref) => /* @__PURE__ */ jsx(Component, { ...fixedProps, ...props, ref }));\n Extended.extend = Component.extend;\n Extended.displayName = `WithProps(${Component.displayName})`;\n return Extended;\n };\n Component.extend = identity;\n return Component;\n}\n\nexport { polymorphicFactory };\n//# sourceMappingURL=polymorphic-factory.mjs.map\n"],"names":["jsx"],"mappings":";;;AAKA,SAAS,mBAAmB,IAAI;AAC9B,QAAM,YAAY,WAAW,EAAE;AAC/B,YAAU,YAAY,CAAC,eAAe;AACpC,UAAM,WAAW,WAAW,CAAC,OAAO,QAAwBA,kCAAG,IAAC,WAAW,EAAE,GAAG,YAAY,GAAG,OAAO,IAAK,CAAA,CAAC;AAC5G,aAAS,SAAS,UAAU;AAC5B,aAAS,cAAc,aAAa,UAAU,WAAW;AACzD,WAAO;AAAA,EACR;AACD,YAAU,SAAS;AACnB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-vars-resolver.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/styles-api/create-vars-resolver/create-vars-resolver.mjs"],"sourcesContent":["'use client';\nfunction createVarsResolver(resolver) {\n return resolver;\n}\n\nexport { createVarsResolver };\n//# sourceMappingURL=create-vars-resolver.mjs.map\n"],"names":[],"mappings":"AACA,SAAS,mBAAmB,UAAU;AACpC,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { clsx } from "../../../../../../../clsx/dist/clsx.js";
|
|
2
|
+
import { getGlobalClassNames } from "./get-global-class-names/get-global-class-names.js";
|
|
3
|
+
import { getOptionsClassNames } from "./get-options-class-names/get-options-class-names.js";
|
|
4
|
+
import { getResolvedClassNames } from "./get-resolved-class-names/get-resolved-class-names.js";
|
|
5
|
+
import { getRootClassName } from "./get-root-class-name/get-root-class-name.js";
|
|
6
|
+
import { getSelectorClassName } from "./get-selector-class-name/get-selector-class-name.js";
|
|
7
|
+
import { getStaticClassNames } from "./get-static-class-names/get-static-class-names.js";
|
|
8
|
+
import { getThemeClassNames } from "./get-theme-class-names/get-theme-class-names.js";
|
|
9
|
+
import { getVariantClassName } from "./get-variant-class-name/get-variant-class-name.js";
|
|
10
|
+
function getClassName({
|
|
11
|
+
theme,
|
|
12
|
+
options,
|
|
13
|
+
themeName,
|
|
14
|
+
selector,
|
|
15
|
+
classNamesPrefix,
|
|
16
|
+
classNames,
|
|
17
|
+
classes,
|
|
18
|
+
unstyled,
|
|
19
|
+
className,
|
|
20
|
+
rootSelector,
|
|
21
|
+
props,
|
|
22
|
+
stylesCtx,
|
|
23
|
+
withStaticClasses,
|
|
24
|
+
headless,
|
|
25
|
+
transformedStyles
|
|
26
|
+
}) {
|
|
27
|
+
return clsx(
|
|
28
|
+
getGlobalClassNames({ theme, options, unstyled: unstyled || headless }),
|
|
29
|
+
getThemeClassNames({ theme, themeName, selector, props, stylesCtx }),
|
|
30
|
+
getVariantClassName({ options, classes, selector, unstyled }),
|
|
31
|
+
getResolvedClassNames({ selector, stylesCtx, theme, classNames, props }),
|
|
32
|
+
getResolvedClassNames({ selector, stylesCtx, theme, classNames: transformedStyles, props }),
|
|
33
|
+
getOptionsClassNames({ selector, stylesCtx, options, props, theme }),
|
|
34
|
+
getRootClassName({ rootSelector, selector, className }),
|
|
35
|
+
getSelectorClassName({ selector, classes, unstyled: unstyled || headless }),
|
|
36
|
+
withStaticClasses && !headless && getStaticClassNames({
|
|
37
|
+
themeName,
|
|
38
|
+
classNamesPrefix,
|
|
39
|
+
selector,
|
|
40
|
+
withStaticClass: options == null ? void 0 : options.withStaticClass
|
|
41
|
+
}),
|
|
42
|
+
options == null ? void 0 : options.className
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
getClassName
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=get-class-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-class-name.js","sources":["../../../../../../../../../node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-class-name.mjs"],"sourcesContent":["'use client';\nimport cx from 'clsx';\nimport { getGlobalClassNames } from './get-global-class-names/get-global-class-names.mjs';\nimport { getOptionsClassNames } from './get-options-class-names/get-options-class-names.mjs';\nimport { getResolvedClassNames } from './get-resolved-class-names/get-resolved-class-names.mjs';\nimport { getRootClassName } from './get-root-class-name/get-root-class-name.mjs';\nimport { getSelectorClassName } from './get-selector-class-name/get-selector-class-name.mjs';\nimport { getStaticClassNames } from './get-static-class-names/get-static-class-names.mjs';\nimport { getThemeClassNames } from './get-theme-class-names/get-theme-class-names.mjs';\nimport { getVariantClassName } from './get-variant-class-name/get-variant-class-name.mjs';\n\nfunction 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}) {\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 && !headless && getStaticClassNames({\n themeName,\n classNamesPrefix,\n selector,\n withStaticClass: options?.withStaticClass\n }),\n options?.className\n );\n}\n\nexport { getClassName };\n//# sourceMappingURL=get-class-name.mjs.map\n"],"names":["cx"],"mappings":";;;;;;;;;AAWA,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,SAAOA;AAAAA,IACL,oBAAoB,EAAE,OAAO,SAAS,UAAU,YAAY,UAAU;AAAA,IACtE,mBAAmB,EAAE,OAAO,WAAW,UAAU,OAAO,WAAW;AAAA,IACnE,oBAAoB,EAAE,SAAS,SAAS,UAAU,SAAQ,CAAE;AAAA,IAC5D,sBAAsB,EAAE,UAAU,WAAW,OAAO,YAAY,OAAO;AAAA,IACvE,sBAAsB,EAAE,UAAU,WAAW,OAAO,YAAY,mBAAmB,OAAO;AAAA,IAC1F,qBAAqB,EAAE,UAAU,WAAW,SAAS,OAAO,OAAO;AAAA,IACnE,iBAAiB,EAAE,cAAc,UAAU,UAAS,CAAE;AAAA,IACtD,qBAAqB,EAAE,UAAU,SAAS,UAAU,YAAY,UAAU;AAAA,IAC1E,qBAAqB,CAAC,YAAY,oBAAoB;AAAA,MACpD;AAAA,MACA;AAAA,MACA;AAAA,MACA,iBAAiB,mCAAS;AAAA,IAChC,CAAK;AAAA,IACD,mCAAS;AAAA,EACV;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clsx } from "../../../../../../../../clsx/dist/clsx.js";
|
|
2
|
+
const FOCUS_CLASS_NAMES = {
|
|
3
|
+
always: "mantine-focus-always",
|
|
4
|
+
auto: "mantine-focus-auto",
|
|
5
|
+
never: "mantine-focus-never"
|
|
6
|
+
};
|
|
7
|
+
function getGlobalClassNames({ theme, options, unstyled }) {
|
|
8
|
+
return clsx(
|
|
9
|
+
(options == null ? void 0 : options.focusable) && !unstyled && (theme.focusClassName || FOCUS_CLASS_NAMES[theme.focusRing]),
|
|
10
|
+
(options == null ? void 0 : options.active) && !unstyled && theme.activeClassName
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
FOCUS_CLASS_NAMES,
|
|
15
|
+
getGlobalClassNames
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=get-global-class-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-global-class-names.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-global-class-names/get-global-class-names.mjs"],"sourcesContent":["'use client';\nimport cx from 'clsx';\n\nconst FOCUS_CLASS_NAMES = {\n always: \"mantine-focus-always\",\n auto: \"mantine-focus-auto\",\n never: \"mantine-focus-never\"\n};\nfunction getGlobalClassNames({ theme, options, unstyled }) {\n return cx(\n options?.focusable && !unstyled && (theme.focusClassName || FOCUS_CLASS_NAMES[theme.focusRing]),\n options?.active && !unstyled && theme.activeClassName\n );\n}\n\nexport { FOCUS_CLASS_NAMES, getGlobalClassNames };\n//# sourceMappingURL=get-global-class-names.mjs.map\n"],"names":["cx"],"mappings":";AAGK,MAAC,oBAAoB;AAAA,EACxB,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AACT;AACA,SAAS,oBAAoB,EAAE,OAAO,SAAS,SAAQ,GAAI;AACzD,SAAOA;AAAAA,KACL,mCAAS,cAAa,CAAC,aAAa,MAAM,kBAAkB,kBAAkB,MAAM,SAAS;AAAA,KAC7F,mCAAS,WAAU,CAAC,YAAY,MAAM;AAAA,EACvC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { resolveClassNames } from "../resolve-class-names/resolve-class-names.js";
|
|
2
|
+
function getOptionsClassNames({
|
|
3
|
+
selector,
|
|
4
|
+
stylesCtx,
|
|
5
|
+
options,
|
|
6
|
+
props,
|
|
7
|
+
theme
|
|
8
|
+
}) {
|
|
9
|
+
return resolveClassNames({
|
|
10
|
+
theme,
|
|
11
|
+
classNames: options == null ? void 0 : options.classNames,
|
|
12
|
+
props: (options == null ? void 0 : options.props) || props,
|
|
13
|
+
stylesCtx
|
|
14
|
+
})[selector];
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
getOptionsClassNames
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=get-options-class-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-options-class-names.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.mjs"],"sourcesContent":["'use client';\nimport { resolveClassNames } from '../resolve-class-names/resolve-class-names.mjs';\n\nfunction getOptionsClassNames({\n selector,\n stylesCtx,\n options,\n props,\n theme\n}) {\n return resolveClassNames({\n theme,\n classNames: options?.classNames,\n props: options?.props || props,\n stylesCtx\n })[selector];\n}\n\nexport { getOptionsClassNames };\n//# sourceMappingURL=get-options-class-names.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,qBAAqB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA,YAAY,mCAAS;AAAA,IACrB,QAAO,mCAAS,UAAS;AAAA,IACzB;AAAA,EACD,CAAA,EAAE,QAAQ;AACb;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { resolveClassNames } from "../resolve-class-names/resolve-class-names.js";
|
|
2
|
+
function getResolvedClassNames({
|
|
3
|
+
selector,
|
|
4
|
+
stylesCtx,
|
|
5
|
+
theme,
|
|
6
|
+
classNames,
|
|
7
|
+
props
|
|
8
|
+
}) {
|
|
9
|
+
return resolveClassNames({ theme, classNames, props, stylesCtx })[selector];
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
getResolvedClassNames
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=get-resolved-class-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-resolved-class-names.js","sources":["../../../../../../../../../../node_modules/@mantine/core/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.mjs"],"sourcesContent":["'use client';\nimport { resolveClassNames } from '../resolve-class-names/resolve-class-names.mjs';\n\nfunction getResolvedClassNames({\n selector,\n stylesCtx,\n theme,\n classNames,\n props\n}) {\n return resolveClassNames({ theme, classNames, props, stylesCtx })[selector];\n}\n\nexport { getResolvedClassNames };\n//# sourceMappingURL=get-resolved-class-names.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,sBAAsB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,SAAO,kBAAkB,EAAE,OAAO,YAAY,OAAO,UAAS,CAAE,EAAE,QAAQ;AAC5E;","x_google_ignoreList":[0]}
|