react-native-mantine 0.8.0 → 0.10.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/lib/commonjs/components/Button/index.js +52 -17
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Code/index.js +3 -1
- package/lib/commonjs/components/Code/index.js.map +1 -1
- package/lib/commonjs/components/Gradient/Gradient.js +70 -0
- package/lib/commonjs/components/Gradient/Gradient.js.map +1 -0
- package/lib/commonjs/components/Gradient/index.js +19 -0
- package/lib/commonjs/components/Gradient/index.js.map +1 -0
- package/lib/commonjs/components/Modal/index.js +33 -3
- package/lib/commonjs/components/Modal/index.js.map +1 -1
- package/lib/commonjs/components/Paper/index.js +1 -76
- package/lib/commonjs/components/Paper/index.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +6 -2
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +27 -8
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/ThemeIcon/index.js +6 -4
- package/lib/commonjs/components/ThemeIcon/index.js.map +1 -1
- package/lib/commonjs/components/Title/index.js +7 -3
- package/lib/commonjs/components/Title/index.js.map +1 -1
- package/lib/commonjs/components/index.js +33 -22
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/theme/create-theme.js +3 -5
- package/lib/commonjs/theme/create-theme.js.map +1 -1
- package/lib/commonjs/theme/default-theme.js +168 -21
- package/lib/commonjs/theme/default-theme.js.map +1 -1
- package/lib/commonjs/theme/functions/attach-functions.js +7 -1
- package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/breakpoints.js +69 -0
- package/lib/commonjs/theme/functions/fns/breakpoints.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/darken.js +25 -0
- package/lib/commonjs/theme/functions/fns/darken.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/dimmed.js +19 -0
- package/lib/commonjs/theme/functions/fns/dimmed.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/gradient/gradient.js +78 -0
- package/lib/commonjs/theme/functions/fns/gradient/gradient.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/helpers.js +1 -2
- package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/index.js +15 -0
- package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/lighten.js +24 -0
- package/lib/commonjs/theme/functions/fns/lighten.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/primary-shade.js +18 -0
- package/lib/commonjs/theme/functions/fns/primary-shade.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/shadow.js +107 -0
- package/lib/commonjs/theme/functions/fns/shadow.js.map +1 -0
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +3 -2
- package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/commonjs/theme/functions/fns/variant.js +7 -6
- package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
- package/lib/commonjs/theme/index.js +14 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/theme-provider.js +10 -3
- package/lib/commonjs/theme/theme-provider.js.map +1 -1
- package/lib/commonjs/theme/utils/to-rgba.js +57 -0
- package/lib/commonjs/theme/utils/to-rgba.js.map +1 -0
- package/lib/module/components/Button/index.js +53 -18
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Code/index.js +3 -1
- package/lib/module/components/Code/index.js.map +1 -1
- package/lib/module/components/Gradient/Gradient.js +64 -0
- package/lib/module/components/Gradient/Gradient.js.map +1 -0
- package/lib/module/components/Gradient/index.js +4 -0
- package/lib/module/components/Gradient/index.js.map +1 -0
- package/lib/module/components/Modal/index.js +35 -5
- package/lib/module/components/Modal/index.js.map +1 -1
- package/lib/module/components/Paper/index.js +1 -76
- package/lib/module/components/Paper/index.js.map +1 -1
- package/lib/module/components/Switch/index.js +6 -2
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Text/index.js +27 -8
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/ThemeIcon/index.js +6 -4
- package/lib/module/components/ThemeIcon/index.js.map +1 -1
- package/lib/module/components/Title/index.js +7 -3
- package/lib/module/components/Title/index.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/theme/create-theme.js +3 -5
- package/lib/module/theme/create-theme.js.map +1 -1
- package/lib/module/theme/default-theme.js +168 -21
- package/lib/module/theme/default-theme.js.map +1 -1
- package/lib/module/theme/functions/attach-functions.js +7 -1
- package/lib/module/theme/functions/attach-functions.js.map +1 -1
- package/lib/module/theme/functions/fns/breakpoints.js +64 -0
- package/lib/module/theme/functions/fns/breakpoints.js.map +1 -0
- package/lib/module/theme/functions/fns/darken.js +22 -0
- package/lib/module/theme/functions/fns/darken.js.map +1 -0
- package/lib/module/theme/functions/fns/dimmed.js +15 -0
- package/lib/module/theme/functions/fns/dimmed.js.map +1 -0
- package/lib/module/theme/functions/fns/gradient/gradient.js +74 -0
- package/lib/module/theme/functions/fns/gradient/gradient.js.map +1 -0
- package/lib/module/theme/functions/fns/helpers.js +1 -2
- package/lib/module/theme/functions/fns/helpers.js.map +1 -1
- package/lib/module/theme/functions/fns/index.js +15 -0
- package/lib/module/theme/functions/fns/index.js.map +1 -1
- package/lib/module/theme/functions/fns/lighten.js +21 -0
- package/lib/module/theme/functions/fns/lighten.js.map +1 -0
- package/lib/module/theme/functions/fns/primary-shade.js +14 -0
- package/lib/module/theme/functions/fns/primary-shade.js.map +1 -0
- package/lib/module/theme/functions/fns/shadow.js +103 -0
- package/lib/module/theme/functions/fns/shadow.js.map +1 -0
- package/lib/module/theme/functions/fns/theme-color/theme-color.js +3 -2
- package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
- package/lib/module/theme/functions/fns/variant.js +7 -6
- package/lib/module/theme/functions/fns/variant.js.map +1 -1
- package/lib/module/theme/index.js +2 -0
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/theme-provider.js +10 -3
- package/lib/module/theme/theme-provider.js.map +1 -1
- package/lib/module/theme/utils/to-rgba.js +53 -0
- package/lib/module/theme/utils/to-rgba.js.map +1 -0
- package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Gradient/Gradient.d.ts +32 -0
- package/lib/typescript/commonjs/src/components/Gradient/Gradient.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Gradient/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/Gradient/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Modal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Paper/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Switch/index.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts +34 -3
- package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts +15 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/darken.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/darken.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts +9 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts +13 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +1 -2
- package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +16 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/lighten.d.ts +8 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/lighten.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts +7 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts +24 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/theme/utils/to-rgba.d.ts +9 -0
- package/lib/typescript/commonjs/src/theme/utils/to-rgba.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Gradient/Gradient.d.ts +32 -0
- package/lib/typescript/module/src/components/Gradient/Gradient.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Gradient/index.d.ts +3 -0
- package/lib/typescript/module/src/components/Gradient/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Modal/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Paper/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Switch/index.d.ts +3 -3
- package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/index.d.ts +1 -0
- package/lib/typescript/module/src/components/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/default-theme.d.ts +34 -3
- package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts +15 -0
- package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/darken.d.ts +8 -0
- package/lib/typescript/module/src/theme/functions/fns/darken.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts +9 -0
- package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts +13 -0
- package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +1 -2
- package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts +16 -1
- package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/lighten.d.ts +8 -0
- package/lib/typescript/module/src/theme/functions/fns/lighten.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts +7 -0
- package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts +24 -0
- package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts.map +1 -0
- package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/index.d.ts +4 -0
- package/lib/typescript/module/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/utils/to-rgba.d.ts +9 -0
- package/lib/typescript/module/src/theme/utils/to-rgba.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/Button/index.tsx +61 -21
- package/src/components/Code/index.tsx +3 -1
- package/src/components/Gradient/Gradient.tsx +71 -0
- package/src/components/Gradient/index.tsx +2 -0
- package/src/components/Modal/index.tsx +33 -3
- package/src/components/Paper/index.tsx +1 -63
- package/src/components/Switch/index.tsx +10 -6
- package/src/components/Text/index.tsx +28 -16
- package/src/components/ThemeIcon/index.tsx +6 -4
- package/src/components/Title/index.tsx +7 -3
- package/src/components/index.tsx +1 -0
- package/src/theme/create-theme.ts +3 -5
- package/src/theme/default-theme.ts +179 -91
- package/src/theme/functions/attach-functions.ts +6 -0
- package/src/theme/functions/fns/breakpoints.ts +62 -0
- package/src/theme/functions/fns/darken.ts +16 -0
- package/src/theme/functions/fns/dimmed.ts +16 -0
- package/src/theme/functions/fns/gradient/gradient.ts +63 -0
- package/src/theme/functions/fns/helpers.ts +1 -2
- package/src/theme/functions/fns/index.ts +15 -0
- package/src/theme/functions/fns/lighten.ts +15 -0
- package/src/theme/functions/fns/primary-shade.ts +17 -0
- package/src/theme/functions/fns/shadow.ts +100 -0
- package/src/theme/functions/fns/theme-color/theme-color.ts +3 -2
- package/src/theme/functions/fns/variant.ts +6 -5
- package/src/theme/index.tsx +4 -0
- package/src/theme/theme-provider.tsx +8 -3
- package/src/theme/theme.d.ts +11 -1
- package/src/theme/utils/to-rgba.ts +69 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../../default-theme';
|
|
2
|
+
import type { MantineGradient, GradientConfig } from '../../../theme.d';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a gradient configuration for use with expo-linear-gradient
|
|
5
|
+
* Returns gradient colors and coordinates based on theme gradient settings
|
|
6
|
+
*/
|
|
7
|
+
export declare function gradient(theme: MantineTheme): (payload?: MantineGradient) => GradientConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Legacy function for web compatibility - returns CSS gradient string
|
|
10
|
+
* Not used in React Native but kept for API compatibility
|
|
11
|
+
*/
|
|
12
|
+
export declare function linearGradientCSS(deg: number, ...colors: string[]): string;
|
|
13
|
+
//# sourceMappingURL=gradient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6BxE;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,IAClC,UAAU,eAAe,KAAG,cAAc,CAmBnD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,UAEjE"}
|
|
@@ -4,10 +4,9 @@ export declare const fontStyles: (theme: MantineTheme) => () => {
|
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Returns font styles specifically for input components
|
|
7
|
-
* Uses fontFamilyInput if available, otherwise falls back to fontFamily
|
|
8
7
|
*/
|
|
9
8
|
export declare const inputFontStyles: (theme: MantineTheme) => () => {
|
|
10
|
-
fontFamily:
|
|
9
|
+
fontFamily: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const focusStyles: (_theme: MantineTheme) => () => {};
|
|
13
12
|
export declare const placeholderStyles: (_theme: MantineTheme) => () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY;;CAE5C,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY;;CAE5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY;;CAIlD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,YAAY,aAI9C,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,YAAY;;CAGpD,CAAC;AAEH,eAAO,MAAM,KAAK,GACf,QAAQ,YAAY,MACpB,SAAQ,MAAU;;;;;;CAMjB,CAAC;AAEL,eAAO,MAAM,KAAK,GAAI,QAAQ,YAAY,MAAM,QAAQ,GAAG,QAIzD,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,YAAY;;;;;CAI/C,CAAC"}
|
|
@@ -2,12 +2,19 @@ import { radius } from './radius';
|
|
|
2
2
|
import { rgba } from './rgba';
|
|
3
3
|
import { size } from './size';
|
|
4
4
|
import { themeColor } from './theme-color/theme-color';
|
|
5
|
+
import { getPrimaryShade } from './primary-shade';
|
|
6
|
+
import { shadow } from './shadow';
|
|
7
|
+
import { gradient } from './gradient/gradient';
|
|
8
|
+
import { lighten } from './lighten';
|
|
9
|
+
import { darken } from './darken';
|
|
10
|
+
import { dimmed } from './dimmed';
|
|
11
|
+
import { largerThan, smallerThan } from './breakpoints';
|
|
5
12
|
export declare const fns: {
|
|
6
13
|
fontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
|
|
7
14
|
fontFamily: string;
|
|
8
15
|
};
|
|
9
16
|
inputFontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
|
|
10
|
-
fontFamily:
|
|
17
|
+
fontFamily: string;
|
|
11
18
|
};
|
|
12
19
|
focusStyles: (_theme: import("../../default-theme").MantineTheme) => () => {};
|
|
13
20
|
placeholderStyles: (_theme: import("../../default-theme").MantineTheme) => () => {
|
|
@@ -32,5 +39,13 @@ export declare const fns: {
|
|
|
32
39
|
size: typeof size;
|
|
33
40
|
variant: (theme: import("../../default-theme").MantineTheme) => (input: import("./variant").VariantInput) => import("./variant").VariantOutput;
|
|
34
41
|
themeColor: typeof themeColor;
|
|
42
|
+
getPrimaryShade: typeof getPrimaryShade;
|
|
43
|
+
shadow: typeof shadow;
|
|
44
|
+
gradient: typeof gradient;
|
|
45
|
+
lighten: typeof lighten;
|
|
46
|
+
darken: typeof darken;
|
|
47
|
+
dimmed: typeof dimmed;
|
|
48
|
+
largerThan: typeof largerThan;
|
|
49
|
+
smallerThan: typeof smallerThan;
|
|
35
50
|
};
|
|
36
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGxD,eAAO,MAAM,GAAG;iBAZG,iDACZ;;;sBAGI,iDAAmB;;;kBAGzB,kDAAoB;wBASrB,kDACS;;;YAQN,kDACK,MAET,eAAkB;;;;;;;YAAkJ,kDAAoB,MAAM,WAAW;mBAAuM,kDAAoB;;;;;;;;;qEAR7Z,uCAEJ;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightens a color by mixing it with white
|
|
3
|
+
* @param color - The color to lighten (hex or rgb/rgba string)
|
|
4
|
+
* @param alpha - The amount to lighten (0-1, where 1 is completely white)
|
|
5
|
+
* @returns rgba color string
|
|
6
|
+
*/
|
|
7
|
+
export declare function lighten(color: string, alpha: number): string;
|
|
8
|
+
//# sourceMappingURL=lighten.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lighten.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/lighten.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM5D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../default-theme';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the appropriate primary shade based on the current color scheme
|
|
4
|
+
* Matches Mantine web implementation
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPrimaryShade(theme: MantineTheme, colorScheme?: 'light' | 'dark'): number;
|
|
7
|
+
//# sourceMappingURL=primary-shade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,YAAY,EACnB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAC7B,MAAM,CAOR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MantineSize } from '../../types';
|
|
2
|
+
export interface ShadowStyles {
|
|
3
|
+
shadowColor?: string;
|
|
4
|
+
shadowOffset?: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
shadowOpacity?: number;
|
|
9
|
+
shadowRadius?: number;
|
|
10
|
+
elevation?: number;
|
|
11
|
+
}
|
|
12
|
+
export type MantineShadow = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
|
+
/**
|
|
14
|
+
* Returns platform-specific shadow styles for React Native
|
|
15
|
+
* @param size - Shadow size (xs, sm, md, lg, xl)
|
|
16
|
+
* @returns Object with shadow properties for the current platform
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // iOS will get: { shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.15, shadowRadius: 4 }
|
|
20
|
+
* // Android will get: { elevation: 4 }
|
|
21
|
+
* const shadowStyles = shadow('md');
|
|
22
|
+
*/
|
|
23
|
+
export declare function shadow(size?: MantineShadow | MantineSize): ShadowStyles;
|
|
24
|
+
//# sourceMappingURL=shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/shadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAiE7D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,YAAY,CAavE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-color.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/theme-color/theme-color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"theme-color.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/theme-color/theme-color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,eAAe,GAAG,MAAM,CA2B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/variant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/variant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,MAAM,WAAW,YAAY;IAC3B,OAAO,EACH,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,CAAC;IACf,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,MAAM,OAAO,YAAY,KAAG,aAqFtE,CAAA"}
|
|
@@ -3,4 +3,8 @@ export { createStyles } from './create-styles';
|
|
|
3
3
|
export { filterProps } from './filter-props';
|
|
4
4
|
export { getSize } from './get-size';
|
|
5
5
|
export { createTheme } from './create-theme';
|
|
6
|
+
export { shadow } from './functions/fns/shadow';
|
|
7
|
+
export type { ShadowStyles, MantineShadow } from './functions/fns/shadow';
|
|
8
|
+
export { gradient } from './functions/fns/gradient/gradient';
|
|
9
|
+
export type { MantineGradient, GradientConfig } from './theme.d';
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/theme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/theme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../../src/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../../src/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,YAAY,oBAA2B,CAAC;AAErD,eAAO,MAAM,aAAa,GAAI,iCAI3B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC9B,KAAG,KAAK,CAAC,YAsDT,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,YAAwC,CAAC;AAErE,eAAO,MAAM,KAAK,GAAI,iDAInB,UAAU,KAAG,KAAK,CAAC,YAerB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,EAEzB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,CAAC,EACf,KAAK,EAAE,CAAC,GACP,CAAC,GAAG;KACJ,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACnE,CASA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-rgba.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/utils/to-rgba.ts"],"names":[],"mappings":"AAEA,UAAU,IAAI;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AA8CD,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAe1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE/F,MAAM,MA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@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Code/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Code/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE/F,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,oBAAoB;IAClF,mBAAmB;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,uEAiEf,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ViewStyle } from 'react-native';
|
|
3
|
+
import type { MantineGradient } from '../../theme/theme.d';
|
|
4
|
+
export interface GradientProps {
|
|
5
|
+
/** Gradient configuration with from/to colors and optional degrees */
|
|
6
|
+
gradient?: MantineGradient;
|
|
7
|
+
/** Children to render inside gradient */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Additional styles */
|
|
10
|
+
style?: ViewStyle;
|
|
11
|
+
/** Whether to render as full width/height */
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Gradient component wrapper for expo-linear-gradient
|
|
16
|
+
* Provides seamless integration with Mantine theme system
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Gradient gradient={{ from: 'blue', to: 'cyan', deg: 45 }}>
|
|
20
|
+
* <Text>Gradient Background</Text>
|
|
21
|
+
* </Gradient>
|
|
22
|
+
*/
|
|
23
|
+
export declare function Gradient({ gradient, children, style, fill }: GradientProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace Gradient {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Fallback component when expo-linear-gradient is not available
|
|
29
|
+
* Renders a solid background using the 'from' color
|
|
30
|
+
*/
|
|
31
|
+
export declare function GradientFallback({ gradient, children, style }: GradientProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=Gradient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gradient.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Gradient/Gradient.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAG3E,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,wBAAwB;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAW,EAAE,EAAE,aAAa,2CAqBjF;yBArBe,QAAQ;;;AAuBxB;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,2CAS5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Gradient/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKvF,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,yBAAyB;IACzB,MAAM,EAAE,OAAO,CAAC;IAEhB,kCAAkC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,kBAAkB;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,iBAAiB;IACjB,IAAI,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAElC,oBAAoB;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,0CAA0C;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,wBAAwB;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ,+BAA+B;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,cAAc;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmHD,eAAO,MAAM,KAAK,wEA2JhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Paper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Paper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,qDAAqD;IACrD,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1C,kEAAkE;IAClE,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,iEAAiE;IACjE,CAAC,CAAC,EAAE,YAAY,CAAC;IAEjB,wHAAwH;IACxH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,wBAAwB;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAkDD,eAAO,MAAM,KAAK,wEAWhB,CAAC"}
|
|
@@ -9,12 +9,12 @@ export interface SwitchProps extends DefaultProps {
|
|
|
9
9
|
color?: MantineColor;
|
|
10
10
|
/** Label position */
|
|
11
11
|
labelPosition?: 'left' | 'right';
|
|
12
|
-
/** Checked state */
|
|
12
|
+
/** Checked state (controlled component) */
|
|
13
13
|
checked?: boolean;
|
|
14
|
-
/** Default checked state */
|
|
15
|
-
defaultChecked?: boolean;
|
|
16
14
|
/** Called when switch state changes */
|
|
17
15
|
onChange?: (value: boolean) => void;
|
|
16
|
+
/** Disabled state */
|
|
17
|
+
disabled?: boolean;
|
|
18
18
|
/** Additional styles */
|
|
19
19
|
style?: any;
|
|
20
20
|
/** Wrapper style */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIjF,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,kBAAkB;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIjF,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,kBAAkB;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEpC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ,oBAAoB;IACpB,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAgDD,eAAO,MAAM,MAAM,yEAgEjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAGnD,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;CACjD,CAAC;AAkBF,eAAO,MAAM,IAAI;WA3BR,MAAM;WACN,OAAO;gBACF,OAAO;eACR,OAAO;eACP,MAAM;YACT,MAAM;YACN,OAAO;aACN,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK;YACtE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS;2CAiF/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ThemeIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ThemeIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,WAAW;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,0BAA0B;IAC1B,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,QAAQ,CAAC,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IAEhE,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,eAAe,CAAC;IAE3B,8DAA8D;IAC9D,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAE5B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,wBAAwB;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAuFD,eAAO,MAAM,SAAS,4EA0CpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAC/E,4BAA4B;IAC5B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE9B,mBAAmB;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAC/E,4BAA4B;IAC5B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAA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theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,WAAW,GAAI,QAAQ,OAAO,CAAC,YAAY,CAAC,KAAG,
|
|
1
|
+
{"version":3,"file":"create-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/create-theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,WAAW,GAAI,QAAQ,OAAO,CAAC,YAAY,CAAC,KAAG,YAiB3D,CAAC"}
|
|
@@ -27,7 +27,7 @@ export type HeadingStyle = {
|
|
|
27
27
|
};
|
|
28
28
|
export type MantineHeadings = {
|
|
29
29
|
fontFamily?: string;
|
|
30
|
-
fontWeight?:
|
|
30
|
+
fontWeight?: string;
|
|
31
31
|
sizes: {
|
|
32
32
|
h1: HeadingStyle;
|
|
33
33
|
h2: HeadingStyle;
|
|
@@ -37,14 +37,34 @@ export type MantineHeadings = {
|
|
|
37
37
|
h6: HeadingStyle;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
export type FontWeights = {
|
|
41
|
+
thin: string;
|
|
42
|
+
extralight: string;
|
|
43
|
+
light: string;
|
|
44
|
+
normal: string;
|
|
45
|
+
medium: string;
|
|
46
|
+
semibold: string;
|
|
47
|
+
bold: string;
|
|
48
|
+
extrabold: string;
|
|
49
|
+
black: string;
|
|
50
|
+
};
|
|
40
51
|
export type themeMode = 'dark' | 'light';
|
|
52
|
+
type Shade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
53
|
+
export interface MantinePrimaryShade {
|
|
54
|
+
light: Shade;
|
|
55
|
+
dark: Shade;
|
|
56
|
+
}
|
|
41
57
|
export type MantineTheme = {
|
|
42
58
|
fontFamily: string;
|
|
43
59
|
fontFamilyBold: string;
|
|
60
|
+
fontFamilySemiBold: string;
|
|
61
|
+
fontFamilyInput: string;
|
|
62
|
+
fontFamilyMonospace: string;
|
|
63
|
+
fontWeights: FontWeights;
|
|
44
64
|
localColor: string;
|
|
45
65
|
currentMode?: themeMode;
|
|
46
66
|
toggleMode?: () => void;
|
|
47
|
-
primaryShade:
|
|
67
|
+
primaryShade: Shade | MantinePrimaryShade;
|
|
48
68
|
colors: {
|
|
49
69
|
[key: string]: Palette;
|
|
50
70
|
};
|
|
@@ -53,16 +73,27 @@ export type MantineTheme = {
|
|
|
53
73
|
secondaryBgColor: string;
|
|
54
74
|
white: string;
|
|
55
75
|
black: string;
|
|
76
|
+
defaultGradient?: {
|
|
77
|
+
from: string;
|
|
78
|
+
to: string;
|
|
79
|
+
deg: number;
|
|
80
|
+
};
|
|
56
81
|
light: ColorScheme;
|
|
57
82
|
dark: ColorScheme;
|
|
58
83
|
other: {
|
|
59
84
|
[key: string]: any;
|
|
60
85
|
};
|
|
61
86
|
shadows: {
|
|
62
|
-
|
|
87
|
+
xs: any;
|
|
88
|
+
sm: any;
|
|
89
|
+
md: any;
|
|
90
|
+
lg: any;
|
|
91
|
+
xl: any;
|
|
92
|
+
[key: string]: any;
|
|
63
93
|
};
|
|
64
94
|
radius: ThemeSize;
|
|
65
95
|
fontSizes: ThemeSize;
|
|
96
|
+
breakpoints: ThemeSize;
|
|
66
97
|
headings: MantineHeadings;
|
|
67
98
|
window: {
|
|
68
99
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAuLxB,CAAC;AAKF,eAAO,MAAM,cAAc,EAAE,YAgK5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ACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,EAAE,GAAG,CAAC;IAEhB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,CAyBnD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../default-theme';
|
|
2
|
+
export type MantineNumberSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
3
|
+
/**
|
|
4
|
+
* Returns true if current screen width is larger than the specified breakpoint
|
|
5
|
+
* @param theme - The Mantine theme
|
|
6
|
+
* @returns A function that takes a breakpoint and returns a boolean
|
|
7
|
+
*/
|
|
8
|
+
export declare function largerThan(theme: MantineTheme): (breakpoint: MantineNumberSize) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if current screen width is smaller than the specified breakpoint
|
|
11
|
+
* @param theme - The Mantine theme
|
|
12
|
+
* @returns A function that takes a breakpoint and returns a boolean
|
|
13
|
+
*/
|
|
14
|
+
export declare function smallerThan(theme: MantineTheme): (breakpoint: MantineNumberSize) => boolean;
|
|
15
|
+
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/breakpoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAcxD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAsB1E;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,IACpC,YAAY,iBAAiB,KAAG,OAAO,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,IACrC,YAAY,iBAAiB,KAAG,OAAO,CAKhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Darkens a color by reducing its RGB values
|
|
3
|
+
* @param color - The color to darken (hex or rgb/rgba string)
|
|
4
|
+
* @param alpha - The amount to darken (0-1, where 1 is completely black)
|
|
5
|
+
* @returns rgba color string
|
|
6
|
+
*/
|
|
7
|
+
export declare function darken(color: string, alpha: number): string;
|
|
8
|
+
//# sourceMappingURL=darken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"darken.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/darken.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAO3D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../default-theme';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a dimmed text color based on the current color scheme
|
|
4
|
+
* Used for secondary text and less prominent UI elements
|
|
5
|
+
* @param theme - The Mantine theme
|
|
6
|
+
* @returns A function that returns the dimmed color
|
|
7
|
+
*/
|
|
8
|
+
export declare function dimmed(theme: MantineTheme): () => string;
|
|
9
|
+
//# sourceMappingURL=dimmed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimmed.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/dimmed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,gBAOzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../../default-theme';
|
|
2
|
+
import type { MantineGradient, GradientConfig } from '../../../theme.d';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a gradient configuration for use with expo-linear-gradient
|
|
5
|
+
* Returns gradient colors and coordinates based on theme gradient settings
|
|
6
|
+
*/
|
|
7
|
+
export declare function gradient(theme: MantineTheme): (payload?: MantineGradient) => GradientConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Legacy function for web compatibility - returns CSS gradient string
|
|
10
|
+
* Not used in React Native but kept for API compatibility
|
|
11
|
+
*/
|
|
12
|
+
export declare function linearGradientCSS(deg: number, ...colors: string[]): string;
|
|
13
|
+
//# sourceMappingURL=gradient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6BxE;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,IAClC,UAAU,eAAe,KAAG,cAAc,CAmBnD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,UAEjE"}
|
|
@@ -4,10 +4,9 @@ export declare const fontStyles: (theme: MantineTheme) => () => {
|
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Returns font styles specifically for input components
|
|
7
|
-
* Uses fontFamilyInput if available, otherwise falls back to fontFamily
|
|
8
7
|
*/
|
|
9
8
|
export declare const inputFontStyles: (theme: MantineTheme) => () => {
|
|
10
|
-
fontFamily:
|
|
9
|
+
fontFamily: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const focusStyles: (_theme: MantineTheme) => () => {};
|
|
13
12
|
export declare const placeholderStyles: (_theme: MantineTheme) => () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY;;CAE5C,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY;;CAE5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY;;CAIlD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,YAAY,aAI9C,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,YAAY;;CAGpD,CAAC;AAEH,eAAO,MAAM,KAAK,GACf,QAAQ,YAAY,MACpB,SAAQ,MAAU;;;;;;CAMjB,CAAC;AAEL,eAAO,MAAM,KAAK,GAAI,QAAQ,YAAY,MAAM,QAAQ,GAAG,QAIzD,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,YAAY;;;;;CAI/C,CAAC"}
|
|
@@ -2,12 +2,19 @@ import { radius } from './radius';
|
|
|
2
2
|
import { rgba } from './rgba';
|
|
3
3
|
import { size } from './size';
|
|
4
4
|
import { themeColor } from './theme-color/theme-color';
|
|
5
|
+
import { getPrimaryShade } from './primary-shade';
|
|
6
|
+
import { shadow } from './shadow';
|
|
7
|
+
import { gradient } from './gradient/gradient';
|
|
8
|
+
import { lighten } from './lighten';
|
|
9
|
+
import { darken } from './darken';
|
|
10
|
+
import { dimmed } from './dimmed';
|
|
11
|
+
import { largerThan, smallerThan } from './breakpoints';
|
|
5
12
|
export declare const fns: {
|
|
6
13
|
fontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
|
|
7
14
|
fontFamily: string;
|
|
8
15
|
};
|
|
9
16
|
inputFontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
|
|
10
|
-
fontFamily:
|
|
17
|
+
fontFamily: string;
|
|
11
18
|
};
|
|
12
19
|
focusStyles: (_theme: import("../../default-theme").MantineTheme) => () => {};
|
|
13
20
|
placeholderStyles: (_theme: import("../../default-theme").MantineTheme) => () => {
|
|
@@ -32,5 +39,13 @@ export declare const fns: {
|
|
|
32
39
|
size: typeof size;
|
|
33
40
|
variant: (theme: import("../../default-theme").MantineTheme) => (input: import("./variant").VariantInput) => import("./variant").VariantOutput;
|
|
34
41
|
themeColor: typeof themeColor;
|
|
42
|
+
getPrimaryShade: typeof getPrimaryShade;
|
|
43
|
+
shadow: typeof shadow;
|
|
44
|
+
gradient: typeof gradient;
|
|
45
|
+
lighten: typeof lighten;
|
|
46
|
+
darken: typeof darken;
|
|
47
|
+
dimmed: typeof dimmed;
|
|
48
|
+
largerThan: typeof largerThan;
|
|
49
|
+
smallerThan: typeof smallerThan;
|
|
35
50
|
};
|
|
36
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGxD,eAAO,MAAM,GAAG;iBAZG,iDACZ;;;sBAGI,iDAAmB;;;kBAGzB,kDAAoB;wBASrB,kDACS;;;YAQN,kDACK,MAET,eAAkB;;;;;;;YAAkJ,kDAAoB,MAAM,WAAW;mBAAuM,kDAAoB;;;;;;;;;qEAR7Z,uCAEJ;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightens a color by mixing it with white
|
|
3
|
+
* @param color - The color to lighten (hex or rgb/rgba string)
|
|
4
|
+
* @param alpha - The amount to lighten (0-1, where 1 is completely white)
|
|
5
|
+
* @returns rgba color string
|
|
6
|
+
*/
|
|
7
|
+
export declare function lighten(color: string, alpha: number): string;
|
|
8
|
+
//# sourceMappingURL=lighten.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lighten.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/lighten.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM5D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MantineTheme } from '../../default-theme';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the appropriate primary shade based on the current color scheme
|
|
4
|
+
* Matches Mantine web implementation
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPrimaryShade(theme: MantineTheme, colorScheme?: 'light' | 'dark'): number;
|
|
7
|
+
//# sourceMappingURL=primary-shade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,YAAY,EACnB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAC7B,MAAM,CAOR"}
|