@jamadd/react-native-template-ui 0.7.5 → 0.7.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useResponsiveProp","useTheme","useRestyleTheme","useColorScheme","darkTheme","lightTheme","useThemeColors","colors","useThemeSpacing","spacing","useThemeBreakpoints","breakpoints","useThemeBreakpointValues","propValue","useThemeBreakpoint","responsiveVal","smallPhone","phone","smallTablet","tablet","desktop","useThemeZIndices","zIndices","useThemeBorderRadii","borderRadii","useThemeTextVariants","textVariants","useIsDarkColorScheme","overrideColorScheme","colorScheme","useColorSchemeTheme"],"sourceRoot":"../../../src","sources":["hooks/theme.ts"],"mappings":";;AAAA,SACEA,iBAAiB,EACjBC,QAAQ,IAAIC,eAAe,QAGtB,kBAAkB;AACzB,SAASC,cAAc,QAA8B,cAAc;AAEnE,SAASC,SAAS,EAAEC,UAAU,QAAQ,yBAAsB;AAE5D,OAAO,SAASJ,QAAQA,CAAA,
|
|
1
|
+
{"version":3,"names":["useResponsiveProp","useTheme","useRestyleTheme","useColorScheme","darkTheme","lightTheme","useThemeColors","colors","useThemeSpacing","spacing","useThemeBreakpoints","breakpoints","useThemeBreakpointValues","propValue","useThemeBreakpoint","responsiveVal","smallPhone","phone","smallTablet","tablet","desktop","useThemeZIndices","zIndices","useThemeBorderRadii","borderRadii","useThemeTextVariants","textVariants","useIsDarkColorScheme","overrideColorScheme","colorScheme","useColorSchemeTheme"],"sourceRoot":"../../../src","sources":["hooks/theme.ts"],"mappings":";;AAAA,SACEA,iBAAiB,EACjBC,QAAQ,IAAIC,eAAe,QAGtB,kBAAkB;AACzB,SAASC,cAAc,QAA8B,cAAc;AAEnE,SAASC,SAAS,EAAEC,UAAU,QAAQ,yBAAsB;AAE5D,OAAO,SAASJ,QAAQA,CAAA,EAAU;EAChC,OAAOC,eAAe,CAAQ,CAAC;AACjC;AAEA,OAAO,SAASI,cAA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@shopify/restyle';
|
|
2
2
|
import { type ColorSchemeName } from 'react-native';
|
|
3
3
|
import type { Theme, ThemeBreakpoints } from '../types/theme';
|
|
4
|
-
export declare function useTheme
|
|
5
|
-
export declare function useThemeColors
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
themeSec: import("..").Palette;
|
|
9
|
-
themePriT: import("..").Palette;
|
|
10
|
-
background: import("..").Palette;
|
|
11
|
-
backgroundOverlay: import("..").Palette;
|
|
12
|
-
text: import("..").Palette;
|
|
13
|
-
textOverlay: import("..").Palette;
|
|
14
|
-
textButton: import("..").Palette;
|
|
15
|
-
border: import("..").Palette;
|
|
16
|
-
separator: import("..").Palette;
|
|
17
|
-
err: import("..").Palette;
|
|
18
|
-
};
|
|
19
|
-
export declare function useThemeSpacing<T extends Theme>(): {
|
|
20
|
-
none: import("..").Spacing;
|
|
21
|
-
xxxs: import("..").Spacing;
|
|
22
|
-
xxs: import("..").Spacing;
|
|
23
|
-
xs: import("..").Spacing;
|
|
24
|
-
s: import("..").Spacing;
|
|
25
|
-
m: import("..").Spacing;
|
|
26
|
-
l: import("..").Spacing;
|
|
27
|
-
xl: import("..").Spacing;
|
|
28
|
-
xxl: import("..").Spacing;
|
|
29
|
-
xxxl: import("..").Spacing;
|
|
30
|
-
};
|
|
31
|
-
export declare function useThemeBreakpoints<T extends Theme>(): {
|
|
32
|
-
smallPhone: number;
|
|
33
|
-
phone: number;
|
|
34
|
-
smallTablet: number;
|
|
35
|
-
tablet: number;
|
|
36
|
-
desktop: number;
|
|
37
|
-
};
|
|
4
|
+
export declare function useTheme(): Theme;
|
|
5
|
+
export declare function useThemeColors(): Theme['colors'];
|
|
6
|
+
export declare function useThemeSpacing(): Theme['spacing'];
|
|
7
|
+
export declare function useThemeBreakpoints(): Theme['breakpoints'];
|
|
38
8
|
export declare function useThemeBreakpointValues<T extends PropValue>(propValue: ResponsiveValue<T, Theme['breakpoints']>): T | undefined;
|
|
39
9
|
export declare function useThemeBreakpoint(): ThemeBreakpoints;
|
|
40
|
-
export declare function useThemeZIndices
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
top: import("..").ZIndex;
|
|
44
|
-
};
|
|
45
|
-
export declare function useThemeBorderRadii<T extends Theme>(): {
|
|
46
|
-
s: import("..").BorderRadius;
|
|
47
|
-
m: import("..").BorderRadius;
|
|
48
|
-
l: import("..").BorderRadius;
|
|
49
|
-
round: import("..").BorderRadius;
|
|
50
|
-
};
|
|
51
|
-
export declare function useThemeTextVariants<T extends Theme>(): {
|
|
52
|
-
textXSBold: {
|
|
53
|
-
fontWeight: string;
|
|
54
|
-
fontSize: import("..").FontSize;
|
|
55
|
-
lineHeight: import("..").FontLineHeight;
|
|
56
|
-
color: string;
|
|
57
|
-
};
|
|
58
|
-
textSBold: {
|
|
59
|
-
fontWeight: string;
|
|
60
|
-
fontSize: import("..").FontSize;
|
|
61
|
-
lineHeight: import("..").FontLineHeight;
|
|
62
|
-
color: string;
|
|
63
|
-
};
|
|
64
|
-
textMBold: {
|
|
65
|
-
fontWeight: string;
|
|
66
|
-
fontSize: import("..").FontSize;
|
|
67
|
-
lineHeight: import("..").FontLineHeight;
|
|
68
|
-
color: string;
|
|
69
|
-
};
|
|
70
|
-
textLBold: {
|
|
71
|
-
fontWeight: string;
|
|
72
|
-
fontSize: import("..").FontSize;
|
|
73
|
-
lineHeight: import("..").FontLineHeight;
|
|
74
|
-
color: string;
|
|
75
|
-
};
|
|
76
|
-
textXLBold: {
|
|
77
|
-
fontWeight: string;
|
|
78
|
-
fontSize: import("..").FontSize;
|
|
79
|
-
lineHeight: import("..").FontLineHeight;
|
|
80
|
-
color: string;
|
|
81
|
-
};
|
|
82
|
-
defaults: {
|
|
83
|
-
fontSize: import("..").FontSize;
|
|
84
|
-
lineHeight: import("..").FontLineHeight;
|
|
85
|
-
color: string;
|
|
86
|
-
};
|
|
87
|
-
textXS: {
|
|
88
|
-
fontSize: import("..").FontSize;
|
|
89
|
-
lineHeight: import("..").FontLineHeight;
|
|
90
|
-
color: string;
|
|
91
|
-
};
|
|
92
|
-
textS: {
|
|
93
|
-
fontSize: import("..").FontSize;
|
|
94
|
-
lineHeight: import("..").FontLineHeight;
|
|
95
|
-
color: string;
|
|
96
|
-
};
|
|
97
|
-
textM: {
|
|
98
|
-
fontSize: import("..").FontSize;
|
|
99
|
-
lineHeight: import("..").FontLineHeight;
|
|
100
|
-
color: string;
|
|
101
|
-
};
|
|
102
|
-
textL: {
|
|
103
|
-
fontSize: import("..").FontSize;
|
|
104
|
-
lineHeight: import("..").FontLineHeight;
|
|
105
|
-
color: string;
|
|
106
|
-
};
|
|
107
|
-
textXL: {
|
|
108
|
-
fontSize: import("..").FontSize;
|
|
109
|
-
lineHeight: import("..").FontLineHeight;
|
|
110
|
-
color: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
10
|
+
export declare function useThemeZIndices(): Theme['zIndices'];
|
|
11
|
+
export declare function useThemeBorderRadii(): Theme['borderRadii'];
|
|
12
|
+
export declare function useThemeTextVariants(): Theme['textVariants'];
|
|
113
13
|
export declare function useIsDarkColorScheme(overrideColorScheme?: ColorSchemeName): boolean;
|
|
114
14
|
export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeName): {
|
|
115
15
|
colors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,wBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED,wBAAgB,cAAc,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEhD;AAED,wBAAgB,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAElD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,iBAGpD;AAED,wBAAgB,kBAAkB,IASkB,gBAAgB,CACnE;AAED,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,CAEpD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,cAAc,CAAC,CAE5D;AAED,wBAAgB,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,eAAe,WAIzE;AAED,wBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamadd/react-native-template-ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "React Native Template UI is a collection of UI components designed by JaMa D&D.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|