@react-cupertino-ui/shared 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/constants/tokens/breakpoints.d.ts +8 -0
- package/dist/lib/constants/tokens/breakpoints.js +7 -0
- package/dist/lib/constants/tokens/colors.d.ts +3 -0
- package/dist/lib/constants/tokens/colors.js +3 -0
- package/dist/lib/constants/tokens/dark-colors.d.ts +19 -0
- package/dist/lib/constants/tokens/dark-colors.js +18 -0
- package/dist/lib/constants/tokens/glass.d.ts +37 -0
- package/dist/lib/constants/tokens/glass.js +36 -0
- package/dist/lib/constants/tokens/lemon-colors.d.ts +19 -0
- package/dist/lib/constants/tokens/lemon-colors.js +18 -0
- package/dist/lib/constants/tokens/light-colors.d.ts +19 -0
- package/dist/lib/constants/tokens/light-colors.js +18 -0
- package/dist/lib/constants/tokens/size.d.ts +8 -0
- package/dist/lib/constants/tokens/size.js +7 -0
- package/dist/lib/constants/tokens/spacing.d.ts +24 -0
- package/dist/lib/constants/tokens/spacing.js +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const darkColors: {
|
|
2
|
+
background: string;
|
|
3
|
+
foreground: string;
|
|
4
|
+
card: string;
|
|
5
|
+
cardForeground: string;
|
|
6
|
+
popover: string;
|
|
7
|
+
popoverForeground: string;
|
|
8
|
+
primary: string;
|
|
9
|
+
primaryForeground: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
secondaryForeground: string;
|
|
12
|
+
muted: string;
|
|
13
|
+
mutedForeground: string;
|
|
14
|
+
accent: string;
|
|
15
|
+
accentForeground: string;
|
|
16
|
+
destructive: string;
|
|
17
|
+
destructiveForeground: string;
|
|
18
|
+
};
|
|
19
|
+
export type DarkColors = typeof darkColors;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const darkColors = {
|
|
2
|
+
background: "0 0% 100%",
|
|
3
|
+
foreground: "20 14.3% 4.1%",
|
|
4
|
+
card: "0 0% 100%",
|
|
5
|
+
cardForeground: "20 14.3% 4.1%",
|
|
6
|
+
popover: "0 0% 100%",
|
|
7
|
+
popoverForeground: "20 14.3% 4.1%",
|
|
8
|
+
primary: "24 9.8% 10%",
|
|
9
|
+
primaryForeground: "60 9.1% 97.8%",
|
|
10
|
+
secondary: "60 4.8% 95.9%",
|
|
11
|
+
secondaryForeground: "24 9.8% 10%",
|
|
12
|
+
muted: "60 4.8% 95.9%",
|
|
13
|
+
mutedForeground: "25 5.3% 44.7%",
|
|
14
|
+
accent: "60 4.8% 95.9%",
|
|
15
|
+
accentForeground: "24 9.8% 10%",
|
|
16
|
+
destructive: "0 84.2% 60.2%",
|
|
17
|
+
destructiveForeground: "60 9.1% 97.8%",
|
|
18
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const glassTokens: {
|
|
2
|
+
blur: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
};
|
|
7
|
+
saturation: string;
|
|
8
|
+
opacity: {
|
|
9
|
+
surface: number;
|
|
10
|
+
hover: number;
|
|
11
|
+
pressed: number;
|
|
12
|
+
dark: number;
|
|
13
|
+
};
|
|
14
|
+
surface: {
|
|
15
|
+
light: string;
|
|
16
|
+
hover: string;
|
|
17
|
+
strong: string;
|
|
18
|
+
dark: string;
|
|
19
|
+
};
|
|
20
|
+
border: {
|
|
21
|
+
light: string;
|
|
22
|
+
dark: string;
|
|
23
|
+
};
|
|
24
|
+
shadow: {
|
|
25
|
+
light: string;
|
|
26
|
+
dark: string;
|
|
27
|
+
};
|
|
28
|
+
refraction: string;
|
|
29
|
+
glow: string;
|
|
30
|
+
press: {
|
|
31
|
+
duration: string;
|
|
32
|
+
scale: number;
|
|
33
|
+
rebound: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type GlassTokens = typeof glassTokens;
|
|
37
|
+
export default glassTokens;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const glassTokens = {
|
|
2
|
+
blur: {
|
|
3
|
+
sm: "20px",
|
|
4
|
+
md: "32px",
|
|
5
|
+
lg: "48px",
|
|
6
|
+
},
|
|
7
|
+
saturation: "180%",
|
|
8
|
+
opacity: {
|
|
9
|
+
surface: 0.7,
|
|
10
|
+
hover: 0.82,
|
|
11
|
+
pressed: 0.6,
|
|
12
|
+
dark: 0.45,
|
|
13
|
+
},
|
|
14
|
+
surface: {
|
|
15
|
+
light: "rgba(255, 255, 255, 0.7)",
|
|
16
|
+
hover: "rgba(255, 255, 255, 0.85)",
|
|
17
|
+
strong: "rgba(255, 255, 255, 0.95)",
|
|
18
|
+
dark: "rgba(16, 16, 16, 0.6)",
|
|
19
|
+
},
|
|
20
|
+
border: {
|
|
21
|
+
light: "rgba(255, 255, 255, 0.18)",
|
|
22
|
+
dark: "rgba(255, 255, 255, 0.12)",
|
|
23
|
+
},
|
|
24
|
+
shadow: {
|
|
25
|
+
light: "0 8px 32px rgba(0, 0, 0, 0.12)",
|
|
26
|
+
dark: "0 20px 50px rgba(0, 0, 0, 0.45)",
|
|
27
|
+
},
|
|
28
|
+
refraction: "linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%)",
|
|
29
|
+
glow: "0 0 40px rgba(0, 122, 255, 0.35)",
|
|
30
|
+
press: {
|
|
31
|
+
duration: "220ms",
|
|
32
|
+
scale: 0.97,
|
|
33
|
+
rebound: 1.02,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export default glassTokens;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const lemonColors: {
|
|
2
|
+
background: string;
|
|
3
|
+
foreground: string;
|
|
4
|
+
card: string;
|
|
5
|
+
cardForeground: string;
|
|
6
|
+
popover: string;
|
|
7
|
+
popoverForeground: string;
|
|
8
|
+
primary: string;
|
|
9
|
+
primaryForeground: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
secondaryForeground: string;
|
|
12
|
+
muted: string;
|
|
13
|
+
mutedForeground: string;
|
|
14
|
+
accent: string;
|
|
15
|
+
accentForeground: string;
|
|
16
|
+
destructive: string;
|
|
17
|
+
destructiveForeground: string;
|
|
18
|
+
};
|
|
19
|
+
export type LemonColors = typeof lemonColors;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const lemonColors = {
|
|
2
|
+
background: "0 0% 100%",
|
|
3
|
+
foreground: "20 14.3% 4.1%",
|
|
4
|
+
card: "0 0% 100%",
|
|
5
|
+
cardForeground: "20 14.3% 4.1%",
|
|
6
|
+
popover: "0 0% 100%",
|
|
7
|
+
popoverForeground: "20 14.3% 4.1%",
|
|
8
|
+
primary: "24 9.8% 10%",
|
|
9
|
+
primaryForeground: "60 9.1% 97.8%",
|
|
10
|
+
secondary: "60 4.8% 95.9%",
|
|
11
|
+
secondaryForeground: "24 9.8% 10%",
|
|
12
|
+
muted: "60 4.8% 95.9%",
|
|
13
|
+
mutedForeground: "25 5.3% 44.7%",
|
|
14
|
+
accent: "60 4.8% 95.9%",
|
|
15
|
+
accentForeground: "24 9.8% 10%",
|
|
16
|
+
destructive: "0 84.2% 60.2%",
|
|
17
|
+
destructiveForeground: "60 9.1% 97.8%",
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const lightColors: {
|
|
2
|
+
background: string;
|
|
3
|
+
foreground: string;
|
|
4
|
+
card: string;
|
|
5
|
+
cardForeground: string;
|
|
6
|
+
popover: string;
|
|
7
|
+
popoverForeground: string;
|
|
8
|
+
primary: string;
|
|
9
|
+
primaryForeground: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
secondaryForeground: string;
|
|
12
|
+
muted: string;
|
|
13
|
+
mutedForeground: string;
|
|
14
|
+
accent: string;
|
|
15
|
+
accentForeground: string;
|
|
16
|
+
destructive: string;
|
|
17
|
+
destructiveForeground: string;
|
|
18
|
+
};
|
|
19
|
+
export type LightColors = typeof lightColors;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const lightColors = {
|
|
2
|
+
background: "0 0% 100%",
|
|
3
|
+
foreground: "20 14.3% 4.1%",
|
|
4
|
+
card: "0 0% 100%",
|
|
5
|
+
cardForeground: "20 14.3% 4.1%",
|
|
6
|
+
popover: "0 0% 100%",
|
|
7
|
+
popoverForeground: "20 14.3% 4.1%",
|
|
8
|
+
primary: "24 9.8% 10%",
|
|
9
|
+
primaryForeground: "60 9.1% 97.8%",
|
|
10
|
+
secondary: "60 4.8% 95.9%",
|
|
11
|
+
secondaryForeground: "24 9.8% 10%",
|
|
12
|
+
muted: "60 4.8% 95.9%",
|
|
13
|
+
mutedForeground: "25 5.3% 44.7%",
|
|
14
|
+
accent: "60 4.8% 95.9%",
|
|
15
|
+
accentForeground: "24 9.8% 10%",
|
|
16
|
+
destructive: "0 84.2% 60.2%",
|
|
17
|
+
destructiveForeground: "60 9.1% 97.8%",
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const spacingTokens: {
|
|
2
|
+
stack: {
|
|
3
|
+
xxxs: string;
|
|
4
|
+
xxs: string;
|
|
5
|
+
xs: string;
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
xlg: string;
|
|
10
|
+
xxlg: string;
|
|
11
|
+
};
|
|
12
|
+
inline: {
|
|
13
|
+
xxxs: string;
|
|
14
|
+
xxs: string;
|
|
15
|
+
xs: string;
|
|
16
|
+
sm: string;
|
|
17
|
+
md: string;
|
|
18
|
+
lg: string;
|
|
19
|
+
xlg: string;
|
|
20
|
+
xxlg: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default spacingTokens;
|
|
24
|
+
export type SpacingTokens = typeof spacingTokens;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const spacingTokens = {
|
|
2
|
+
stack: {
|
|
3
|
+
xxxs: "1rem",
|
|
4
|
+
xxs: "2rem",
|
|
5
|
+
xs: "3rem",
|
|
6
|
+
sm: "4rem",
|
|
7
|
+
md: "5rem",
|
|
8
|
+
lg: "6rem",
|
|
9
|
+
xlg: "7rem",
|
|
10
|
+
xxlg: "8rem",
|
|
11
|
+
},
|
|
12
|
+
inline: {
|
|
13
|
+
xxxs: "0.5rem",
|
|
14
|
+
xxs: "1rem",
|
|
15
|
+
xs: "1.5rem",
|
|
16
|
+
sm: "2rem",
|
|
17
|
+
md: "2.5rem",
|
|
18
|
+
lg: "3rem",
|
|
19
|
+
xlg: "3.5rem",
|
|
20
|
+
xxlg: "4rem",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export default spacingTokens;
|