@frosted-ui/react-native 0.0.1-canary.91 → 0.0.1-canary.94
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/README.md +72 -14
- package/dist/components/accordion.js +2 -2
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +5 -20
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts +2 -4
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +8 -22
- package/dist/components/badge.js.map +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +13 -17
- package/dist/components/button.js.map +1 -1
- package/dist/components/callout.d.ts +2 -4
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +6 -24
- package/dist/components/callout.js.map +1 -1
- package/dist/components/card.d.ts +1 -2
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +4 -4
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.d.ts +1 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +5 -21
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/code.d.ts +6 -8
- package/dist/components/code.d.ts.map +1 -1
- package/dist/components/code.js +7 -7
- package/dist/components/code.js.map +1 -1
- package/dist/components/context-menu.js +9 -9
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/dialog.js +2 -2
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dropdown-menu.js +9 -9
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/heading.d.ts +6 -6
- package/dist/components/heading.d.ts.map +1 -1
- package/dist/components/heading.js +2 -2
- package/dist/components/heading.js.map +1 -1
- package/dist/components/hover-card.js +2 -2
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/icon-button.d.ts +2 -2
- package/dist/components/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button.js +13 -17
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/icon.d.ts +6 -7
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +9 -24
- package/dist/components/icon.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/label.js.map +1 -1
- package/dist/components/link.d.ts +19 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.js +68 -0
- package/dist/components/link.js.map +1 -0
- package/dist/components/list.d.ts +37 -0
- package/dist/components/list.d.ts.map +1 -0
- package/dist/components/list.js +112 -0
- package/dist/components/list.js.map +1 -0
- package/dist/components/native-only-animated-view.d.ts +0 -4
- package/dist/components/native-only-animated-view.d.ts.map +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.d.ts +1 -2
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +5 -21
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-group.d.ts +1 -2
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +7 -23
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/segmented-control.js +3 -3
- package/dist/components/segmented-control.js.map +1 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +11 -13
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +4 -21
- package/dist/components/separator.js.map +1 -1
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +10 -26
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/spinner.js +2 -2
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/switch.d.ts +1 -2
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +5 -21
- package/dist/components/switch.js.map +1 -1
- package/dist/components/tabs.d.ts +4 -3
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +10 -9
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/text-area.d.ts.map +1 -1
- package/dist/components/text-area.js +13 -9
- package/dist/components/text-area.js.map +1 -1
- package/dist/components/text-field.d.ts.map +1 -1
- package/dist/components/text-field.js +62 -18
- package/dist/components/text-field.js.map +1 -1
- package/dist/components/text.d.ts +6 -6
- package/dist/components/text.d.ts.map +1 -1
- package/dist/components/text.js +22 -11
- package/dist/components/text.js.map +1 -1
- package/dist/components/tooltip.js +2 -2
- package/dist/components/tooltip.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/button-styles.d.ts +6 -6
- package/dist/lib/button-styles.d.ts.map +1 -1
- package/dist/lib/button-styles.js +1 -17
- package/dist/lib/button-styles.js.map +1 -1
- package/dist/lib/color-utils.d.ts +19 -14
- package/dist/lib/color-utils.d.ts.map +1 -1
- package/dist/lib/color-utils.js +37 -73
- package/dist/lib/color-utils.js.map +1 -1
- package/dist/lib/full-window-overlay.d.ts +11 -0
- package/dist/lib/full-window-overlay.d.ts.map +1 -0
- package/dist/lib/full-window-overlay.js +16 -0
- package/dist/lib/full-window-overlay.js.map +1 -0
- package/dist/lib/text-input-styles.d.ts +9 -8
- package/dist/lib/text-input-styles.d.ts.map +1 -1
- package/dist/lib/text-input-styles.js +4 -23
- package/dist/lib/text-input-styles.js.map +1 -1
- package/dist/lib/theme-context.d.ts +80 -0
- package/dist/lib/theme-context.d.ts.map +1 -0
- package/dist/lib/theme-context.js +97 -0
- package/dist/lib/theme-context.js.map +1 -0
- package/dist/lib/{theme-vars.d.ts → theme-tokens.d.ts} +2 -2
- package/dist/lib/theme-tokens.d.ts.map +1 -0
- package/dist/lib/{theme-vars.js → theme-tokens.js} +4 -19
- package/dist/lib/theme-tokens.js.map +1 -0
- package/dist/lib/theme.d.ts +14 -54
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +98 -66
- package/dist/lib/theme.js.map +1 -1
- package/dist/lib/types.d.ts +6 -2
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/use-theme-tokens.d.ts +593 -0
- package/dist/lib/use-theme-tokens.d.ts.map +1 -0
- package/dist/lib/use-theme-tokens.js +44 -0
- package/dist/lib/use-theme-tokens.js.map +1 -0
- package/docs/llm/COLOR_SYSTEM.md +799 -0
- package/docs/llm/COMPONENTS.md +1183 -0
- package/docs/llm/DESIGN_PATTERNS.md +2466 -0
- package/docs/llm/README.md +117 -0
- package/docs/llm/TYPOGRAPHY.md +516 -0
- package/package.json +11 -21
- package/dist/lib/native-colors.d.ts +0 -8
- package/dist/lib/native-colors.d.ts.map +0 -1
- package/dist/lib/native-colors.js +0 -67
- package/dist/lib/native-colors.js.map +0 -1
- package/dist/lib/theme-vars.d.ts.map +0 -1
- package/dist/lib/theme-vars.js.map +0 -1
- package/dist/lib/use-theme-vars.d.ts +0 -325
- package/dist/lib/use-theme-vars.d.ts.map +0 -1
- package/dist/lib/use-theme-vars.js +0 -17
- package/dist/lib/use-theme-vars.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -17
- package/dist/lib/utils.js.map +0 -1
- package/global.css +0 -1813
- package/tailwind-preset.js +0 -310
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frosted-ui/react-native",
|
|
3
|
-
"version": "0.0.1-canary.
|
|
3
|
+
"version": "0.0.1-canary.94",
|
|
4
|
+
"private": false,
|
|
4
5
|
"main": "expo-router/entry",
|
|
5
6
|
"types": "./dist/index.d.ts",
|
|
6
7
|
"module": "./dist/index.js",
|
|
@@ -9,25 +10,23 @@
|
|
|
9
10
|
"types": "./dist/index.d.ts",
|
|
10
11
|
"default": "./dist/index.js"
|
|
11
12
|
},
|
|
12
|
-
"./
|
|
13
|
-
"./
|
|
13
|
+
"./llm-docs": "./docs/llm/README.md",
|
|
14
|
+
"./llm-docs/*": "./docs/llm/*"
|
|
14
15
|
},
|
|
15
16
|
"sideEffects": false,
|
|
16
17
|
"license": "MIT",
|
|
17
18
|
"files": [
|
|
18
19
|
"dist",
|
|
19
|
-
"
|
|
20
|
-
"tailwind-preset.js"
|
|
20
|
+
"docs/llm"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
+
"lucide-react-native": ">=0.300.0",
|
|
23
24
|
"react": ">=18.0.0",
|
|
24
25
|
"react-native": ">=0.70.0",
|
|
25
|
-
"nativewind": "^4.0.0",
|
|
26
26
|
"react-native-reanimated": ">=3.0.0",
|
|
27
27
|
"react-native-safe-area-context": ">=4.0.0",
|
|
28
28
|
"react-native-screens": ">=3.0.0",
|
|
29
|
-
"react-native-svg": ">=13.0.0"
|
|
30
|
-
"lucide-react-native": ">=0.300.0"
|
|
29
|
+
"react-native-svg": ">=13.0.0"
|
|
31
30
|
},
|
|
32
31
|
"scripts": {
|
|
33
32
|
"dev": "expo start -c",
|
|
@@ -37,7 +36,6 @@
|
|
|
37
36
|
"build": "pnpm clean:dist && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
38
37
|
"clean": "rm -rf .expo node_modules",
|
|
39
38
|
"clean:dist": "rm -rf dist",
|
|
40
|
-
"generate:global-css": "node scripts/generate-global-css.js",
|
|
41
39
|
"release": "turbo-module publish"
|
|
42
40
|
},
|
|
43
41
|
"dependencies": {
|
|
@@ -65,15 +63,13 @@
|
|
|
65
63
|
"@rn-primitives/tabs": "^1.2.0",
|
|
66
64
|
"@rn-primitives/toggle": "^1.2.0",
|
|
67
65
|
"@rn-primitives/toggle-group": "^1.2.0",
|
|
68
|
-
"@rn-primitives/tooltip": "^1.2.0"
|
|
69
|
-
"class-variance-authority": "^0.7.1",
|
|
70
|
-
"clsx": "^2.1.1",
|
|
71
|
-
"tailwind-merge": "^3.3.1"
|
|
66
|
+
"@rn-primitives/tooltip": "^1.2.0"
|
|
72
67
|
},
|
|
73
68
|
"devDependencies": {
|
|
74
69
|
"@babel/core": "^7.26.0",
|
|
75
70
|
"@react-navigation/native": "^7.0.0",
|
|
76
71
|
"@types/react": "~19.1.10",
|
|
72
|
+
"@whop/turbo-module": "^0.1.0-canary.3",
|
|
77
73
|
"expo": "^54.0.26",
|
|
78
74
|
"expo-linking": "~8.0.9",
|
|
79
75
|
"expo-router": "~6.0.16",
|
|
@@ -81,24 +77,18 @@
|
|
|
81
77
|
"expo-status-bar": "~3.0.8",
|
|
82
78
|
"expo-system-ui": "~6.0.8",
|
|
83
79
|
"lucide-react-native": "^0.545.0",
|
|
84
|
-
"nativewind": "^4.2.1",
|
|
85
80
|
"prettier": "^3.6.2",
|
|
86
|
-
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
87
81
|
"react": "19.1.0",
|
|
88
82
|
"react-dom": "19.1.0",
|
|
89
83
|
"react-native": "0.81.5",
|
|
90
|
-
"react-native-css-interop": "^0.2.1",
|
|
91
84
|
"react-native-reanimated": "~4.1.1",
|
|
92
85
|
"react-native-safe-area-context": "~5.6.0",
|
|
93
86
|
"react-native-screens": "~4.16.0",
|
|
94
87
|
"react-native-svg": "15.12.1",
|
|
95
88
|
"react-native-web": "^0.21.0",
|
|
96
89
|
"react-native-worklets": "0.5.1",
|
|
97
|
-
"tailwindcss": "^3.4.14",
|
|
98
|
-
"tailwindcss-animate": "^1.0.7",
|
|
99
90
|
"tsc-alias": "^1.8.16",
|
|
100
|
-
"typescript": "~5.9.2"
|
|
101
|
-
"@whop-sdk/turbo-module": "^0.0.5"
|
|
91
|
+
"typescript": "~5.9.2"
|
|
102
92
|
},
|
|
103
93
|
"publishConfig": {
|
|
104
94
|
"access": "public"
|
|
@@ -106,7 +96,7 @@
|
|
|
106
96
|
"homepage": "https://github.com/whopio/frosted-ui",
|
|
107
97
|
"repository": {
|
|
108
98
|
"type": "git",
|
|
109
|
-
"url": "
|
|
99
|
+
"url": "https://github.com/whopio/frosted-ui.git"
|
|
110
100
|
},
|
|
111
101
|
"bugs": {
|
|
112
102
|
"url": "https://github.com/whopio/frosted-ui/issues"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AccentColor } from './types';
|
|
2
|
-
type Shade = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
3
|
-
type AlphaShade = 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6' | 'a7' | 'a8' | 'a9' | 'a10' | 'a11' | 'a12';
|
|
4
|
-
export declare function getNativeAccentColor(color: AccentColor, shade: Shade): string | undefined;
|
|
5
|
-
export declare function getNativeAccentAlphaColor(color: AccentColor, shade: AlphaShade): string | undefined;
|
|
6
|
-
export declare function getNativeAccentContrastColor(color: AccentColor): string;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=native-colors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-colors.d.ts","sourceRoot":"","sources":["../../src/lib/native-colors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,KAAK,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtF,KAAK,UAAU,GACX,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAaV,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAKzF;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,UAAU,GAChB,MAAM,GAAG,SAAS,CAMpB;AAmCD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAEvE"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
-
// Import the Frosted UI color palettes directly.
|
|
3
|
-
// This works on native because it's just a plain JS object.
|
|
4
|
-
// Shape example:
|
|
5
|
-
// frostedColors.blue = { blue1: '#...', blue2: '#...', ..., blue12: '#...' }
|
|
6
|
-
// frostedColors.blueA = { blueA1: 'rgba(...)', ..., blueA12: 'rgba(...)' }
|
|
7
|
-
const frostedColors = require('@frosted-ui/colors');
|
|
8
|
-
function getPalette(color) {
|
|
9
|
-
// e.g. 'blue' → frostedColors.blue.blue1 ... blue12
|
|
10
|
-
return frostedColors[color];
|
|
11
|
-
}
|
|
12
|
-
function getAlphaPalette(color) {
|
|
13
|
-
// e.g. 'blue' → frostedColors.blueA.blueA1 ... blueA12
|
|
14
|
-
const key = `${color}A`;
|
|
15
|
-
return frostedColors[key];
|
|
16
|
-
}
|
|
17
|
-
export function getNativeAccentColor(color, shade) {
|
|
18
|
-
const palette = getPalette(color);
|
|
19
|
-
if (!palette)
|
|
20
|
-
return undefined;
|
|
21
|
-
const key = `${color}${shade}`; // e.g. blue + '9' → 'blue9'
|
|
22
|
-
return palette[key];
|
|
23
|
-
}
|
|
24
|
-
export function getNativeAccentAlphaColor(color, shade) {
|
|
25
|
-
const alphaPalette = getAlphaPalette(color);
|
|
26
|
-
if (!alphaPalette)
|
|
27
|
-
return undefined;
|
|
28
|
-
const numericShade = shade.slice(1); // a1 -> '1'
|
|
29
|
-
const key = `${color}A${numericShade}`; // e.g. blueA1
|
|
30
|
-
return alphaPalette[key];
|
|
31
|
-
}
|
|
32
|
-
// For contrast text colors we reuse the same mapping as web (from color.css),
|
|
33
|
-
// but encoded directly as JS values so React Native can use them.
|
|
34
|
-
const contrastColors = {
|
|
35
|
-
tomato: 'white',
|
|
36
|
-
red: 'white',
|
|
37
|
-
ruby: 'white',
|
|
38
|
-
crimson: 'white',
|
|
39
|
-
pink: 'white',
|
|
40
|
-
plum: 'white',
|
|
41
|
-
purple: 'white',
|
|
42
|
-
violet: 'white',
|
|
43
|
-
iris: 'white',
|
|
44
|
-
cyan: 'white',
|
|
45
|
-
teal: 'white',
|
|
46
|
-
jade: 'white',
|
|
47
|
-
green: 'white',
|
|
48
|
-
grass: 'white',
|
|
49
|
-
brown: 'white',
|
|
50
|
-
sky: '#1C2024',
|
|
51
|
-
mint: '#1A211E',
|
|
52
|
-
yellow: '#21201C',
|
|
53
|
-
amber: '#21201C',
|
|
54
|
-
gold: 'white',
|
|
55
|
-
bronze: 'white',
|
|
56
|
-
gray: 'white',
|
|
57
|
-
blue: 'white',
|
|
58
|
-
orange: 'white',
|
|
59
|
-
indigo: 'white',
|
|
60
|
-
magenta: '#141212',
|
|
61
|
-
lemon: '#20240D',
|
|
62
|
-
lime: '#162715',
|
|
63
|
-
};
|
|
64
|
-
export function getNativeAccentContrastColor(color) {
|
|
65
|
-
return contrastColors[color];
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=native-colors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-colors.js","sourceRoot":"","sources":["../../src/lib/native-colors.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAIvD,iDAAiD;AACjD,4DAA4D;AAC5D,iBAAiB;AACjB,+EAA+E;AAC/E,6EAA6E;AAC7E,MAAM,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAA2C,CAAC;AAkB9F,SAAS,UAAU,CAAC,KAAkB;IACpC,oDAAoD;IACpD,OAAO,aAAa,CAAC,KAAK,CAAuC,CAAC;AACpE,CAAC;AAED,SAAS,eAAe,CAAC,KAAkB;IACzC,uDAAuD;IAC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,EAAE,GAAG,YAAY,EAAE,GAAG,qBAAqB,EAAE,EAAE;YACzD,UAAU,EAAE,QAAQ,EAAE,KAAK,IAAI,SAAS;YACxC,OAAO,EAAE,MAAM,EAAE,OAAO,IAAI,oBAAoB;YAChD,UAAU,EAAE,QAAQ,EAAE,KAAK,IAAI,SAAS;YACxC,gBAAgB,EAAE,WAAW,EAAE,uBAAuB;YACtD,OAAO,EAAE,qBAAqB;YAC9B,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE;SAC7B;KACF;CACF,CAAC"}
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
export declare function useThemeVars(): {
|
|
2
|
-
typography: {
|
|
3
|
-
readonly '0': {
|
|
4
|
-
readonly fontSize: 10;
|
|
5
|
-
readonly lineHeight: 12;
|
|
6
|
-
readonly letterSpacing: 0.01;
|
|
7
|
-
};
|
|
8
|
-
readonly '1': {
|
|
9
|
-
readonly fontSize: 12;
|
|
10
|
-
readonly lineHeight: 16;
|
|
11
|
-
readonly letterSpacing: 0.01;
|
|
12
|
-
};
|
|
13
|
-
readonly '2': {
|
|
14
|
-
readonly fontSize: 14;
|
|
15
|
-
readonly lineHeight: 20;
|
|
16
|
-
readonly letterSpacing: 0.01;
|
|
17
|
-
};
|
|
18
|
-
readonly '3': {
|
|
19
|
-
readonly fontSize: 16;
|
|
20
|
-
readonly lineHeight: 24;
|
|
21
|
-
readonly letterSpacing: 0.01;
|
|
22
|
-
};
|
|
23
|
-
readonly '4': {
|
|
24
|
-
readonly fontSize: 18;
|
|
25
|
-
readonly lineHeight: 26;
|
|
26
|
-
readonly letterSpacing: 0.01;
|
|
27
|
-
};
|
|
28
|
-
readonly '5': {
|
|
29
|
-
readonly fontSize: 20;
|
|
30
|
-
readonly lineHeight: 28;
|
|
31
|
-
readonly letterSpacing: 0.01;
|
|
32
|
-
};
|
|
33
|
-
readonly '6': {
|
|
34
|
-
readonly fontSize: 24;
|
|
35
|
-
readonly lineHeight: 30;
|
|
36
|
-
readonly letterSpacing: 0.01;
|
|
37
|
-
};
|
|
38
|
-
readonly '7': {
|
|
39
|
-
readonly fontSize: 28;
|
|
40
|
-
readonly lineHeight: 34;
|
|
41
|
-
readonly letterSpacing: 0.005;
|
|
42
|
-
};
|
|
43
|
-
readonly '8': {
|
|
44
|
-
readonly fontSize: 32;
|
|
45
|
-
readonly lineHeight: 38;
|
|
46
|
-
readonly letterSpacing: 0;
|
|
47
|
-
};
|
|
48
|
-
readonly '9': {
|
|
49
|
-
readonly fontSize: 40;
|
|
50
|
-
readonly lineHeight: 48;
|
|
51
|
-
readonly letterSpacing: 0;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
fontWeights: {
|
|
55
|
-
readonly light: "300";
|
|
56
|
-
readonly regular: "400";
|
|
57
|
-
readonly medium: "500";
|
|
58
|
-
readonly 'semi-bold': "600";
|
|
59
|
-
readonly bold: "700";
|
|
60
|
-
};
|
|
61
|
-
colors: {
|
|
62
|
-
palettes: {
|
|
63
|
-
black: {
|
|
64
|
-
a1: string;
|
|
65
|
-
a2: string;
|
|
66
|
-
a3: string;
|
|
67
|
-
a4: string;
|
|
68
|
-
a5: string;
|
|
69
|
-
a6: string;
|
|
70
|
-
a7: string;
|
|
71
|
-
a8: string;
|
|
72
|
-
a9: string;
|
|
73
|
-
a10: string;
|
|
74
|
-
a11: string;
|
|
75
|
-
a12: string;
|
|
76
|
-
};
|
|
77
|
-
white: {
|
|
78
|
-
a1: string;
|
|
79
|
-
a2: string;
|
|
80
|
-
a3: string;
|
|
81
|
-
a4: string;
|
|
82
|
-
a5: string;
|
|
83
|
-
a6: string;
|
|
84
|
-
a7: string;
|
|
85
|
-
a8: string;
|
|
86
|
-
a9: string;
|
|
87
|
-
a10: string;
|
|
88
|
-
a11: string;
|
|
89
|
-
a12: string;
|
|
90
|
-
};
|
|
91
|
-
tomato: import("./theme-vars").ColorShades;
|
|
92
|
-
red: import("./theme-vars").ColorShades;
|
|
93
|
-
ruby: import("./theme-vars").ColorShades;
|
|
94
|
-
crimson: import("./theme-vars").ColorShades;
|
|
95
|
-
pink: import("./theme-vars").ColorShades;
|
|
96
|
-
plum: import("./theme-vars").ColorShades;
|
|
97
|
-
purple: import("./theme-vars").ColorShades;
|
|
98
|
-
violet: import("./theme-vars").ColorShades;
|
|
99
|
-
iris: import("./theme-vars").ColorShades;
|
|
100
|
-
cyan: import("./theme-vars").ColorShades;
|
|
101
|
-
teal: import("./theme-vars").ColorShades;
|
|
102
|
-
jade: import("./theme-vars").ColorShades;
|
|
103
|
-
green: import("./theme-vars").ColorShades;
|
|
104
|
-
grass: import("./theme-vars").ColorShades;
|
|
105
|
-
brown: import("./theme-vars").ColorShades;
|
|
106
|
-
blue: import("./theme-vars").ColorShades;
|
|
107
|
-
orange: import("./theme-vars").ColorShades;
|
|
108
|
-
indigo: import("./theme-vars").ColorShades;
|
|
109
|
-
sky: import("./theme-vars").ColorShades;
|
|
110
|
-
mint: import("./theme-vars").ColorShades;
|
|
111
|
-
yellow: import("./theme-vars").ColorShades;
|
|
112
|
-
amber: import("./theme-vars").ColorShades;
|
|
113
|
-
lime: import("./theme-vars").ColorShades;
|
|
114
|
-
lemon: import("./theme-vars").ColorShades;
|
|
115
|
-
magenta: import("./theme-vars").ColorShades;
|
|
116
|
-
gold: import("./theme-vars").ColorShades;
|
|
117
|
-
bronze: import("./theme-vars").ColorShades;
|
|
118
|
-
gray: import("./theme-vars").ColorShades;
|
|
119
|
-
};
|
|
120
|
-
background: string;
|
|
121
|
-
overlay: string;
|
|
122
|
-
panelSolid: string;
|
|
123
|
-
panelTranslucent: string;
|
|
124
|
-
surface: string;
|
|
125
|
-
stroke: string;
|
|
126
|
-
} | {
|
|
127
|
-
palettes: {
|
|
128
|
-
black: {
|
|
129
|
-
a1: string;
|
|
130
|
-
a2: string;
|
|
131
|
-
a3: string;
|
|
132
|
-
a4: string;
|
|
133
|
-
a5: string;
|
|
134
|
-
a6: string;
|
|
135
|
-
a7: string;
|
|
136
|
-
a8: string;
|
|
137
|
-
a9: string;
|
|
138
|
-
a10: string;
|
|
139
|
-
a11: string;
|
|
140
|
-
a12: string;
|
|
141
|
-
};
|
|
142
|
-
white: {
|
|
143
|
-
a1: string;
|
|
144
|
-
a2: string;
|
|
145
|
-
a3: string;
|
|
146
|
-
a4: string;
|
|
147
|
-
a5: string;
|
|
148
|
-
a6: string;
|
|
149
|
-
a7: string;
|
|
150
|
-
a8: string;
|
|
151
|
-
a9: string;
|
|
152
|
-
a10: string;
|
|
153
|
-
a11: string;
|
|
154
|
-
a12: string;
|
|
155
|
-
};
|
|
156
|
-
tomato: import("./theme-vars").ColorShades;
|
|
157
|
-
red: import("./theme-vars").ColorShades;
|
|
158
|
-
ruby: import("./theme-vars").ColorShades;
|
|
159
|
-
crimson: import("./theme-vars").ColorShades;
|
|
160
|
-
pink: import("./theme-vars").ColorShades;
|
|
161
|
-
plum: import("./theme-vars").ColorShades;
|
|
162
|
-
purple: import("./theme-vars").ColorShades;
|
|
163
|
-
violet: import("./theme-vars").ColorShades;
|
|
164
|
-
iris: import("./theme-vars").ColorShades;
|
|
165
|
-
cyan: import("./theme-vars").ColorShades;
|
|
166
|
-
teal: import("./theme-vars").ColorShades;
|
|
167
|
-
jade: import("./theme-vars").ColorShades;
|
|
168
|
-
green: import("./theme-vars").ColorShades;
|
|
169
|
-
grass: import("./theme-vars").ColorShades;
|
|
170
|
-
brown: import("./theme-vars").ColorShades;
|
|
171
|
-
blue: import("./theme-vars").ColorShades;
|
|
172
|
-
orange: import("./theme-vars").ColorShades;
|
|
173
|
-
indigo: import("./theme-vars").ColorShades;
|
|
174
|
-
sky: import("./theme-vars").ColorShades;
|
|
175
|
-
mint: import("./theme-vars").ColorShades;
|
|
176
|
-
yellow: import("./theme-vars").ColorShades;
|
|
177
|
-
amber: import("./theme-vars").ColorShades;
|
|
178
|
-
lime: import("./theme-vars").ColorShades;
|
|
179
|
-
lemon: import("./theme-vars").ColorShades;
|
|
180
|
-
magenta: import("./theme-vars").ColorShades;
|
|
181
|
-
gold: import("./theme-vars").ColorShades;
|
|
182
|
-
bronze: import("./theme-vars").ColorShades;
|
|
183
|
-
gray: import("./theme-vars").ColorShades;
|
|
184
|
-
};
|
|
185
|
-
background: string;
|
|
186
|
-
overlay: string;
|
|
187
|
-
panelSolid: string;
|
|
188
|
-
panelTranslucent: string;
|
|
189
|
-
surface: string;
|
|
190
|
-
stroke: string;
|
|
191
|
-
};
|
|
192
|
-
invertedColors: {
|
|
193
|
-
palettes: {
|
|
194
|
-
black: {
|
|
195
|
-
a1: string;
|
|
196
|
-
a2: string;
|
|
197
|
-
a3: string;
|
|
198
|
-
a4: string;
|
|
199
|
-
a5: string;
|
|
200
|
-
a6: string;
|
|
201
|
-
a7: string;
|
|
202
|
-
a8: string;
|
|
203
|
-
a9: string;
|
|
204
|
-
a10: string;
|
|
205
|
-
a11: string;
|
|
206
|
-
a12: string;
|
|
207
|
-
};
|
|
208
|
-
white: {
|
|
209
|
-
a1: string;
|
|
210
|
-
a2: string;
|
|
211
|
-
a3: string;
|
|
212
|
-
a4: string;
|
|
213
|
-
a5: string;
|
|
214
|
-
a6: string;
|
|
215
|
-
a7: string;
|
|
216
|
-
a8: string;
|
|
217
|
-
a9: string;
|
|
218
|
-
a10: string;
|
|
219
|
-
a11: string;
|
|
220
|
-
a12: string;
|
|
221
|
-
};
|
|
222
|
-
tomato: import("./theme-vars").ColorShades;
|
|
223
|
-
red: import("./theme-vars").ColorShades;
|
|
224
|
-
ruby: import("./theme-vars").ColorShades;
|
|
225
|
-
crimson: import("./theme-vars").ColorShades;
|
|
226
|
-
pink: import("./theme-vars").ColorShades;
|
|
227
|
-
plum: import("./theme-vars").ColorShades;
|
|
228
|
-
purple: import("./theme-vars").ColorShades;
|
|
229
|
-
violet: import("./theme-vars").ColorShades;
|
|
230
|
-
iris: import("./theme-vars").ColorShades;
|
|
231
|
-
cyan: import("./theme-vars").ColorShades;
|
|
232
|
-
teal: import("./theme-vars").ColorShades;
|
|
233
|
-
jade: import("./theme-vars").ColorShades;
|
|
234
|
-
green: import("./theme-vars").ColorShades;
|
|
235
|
-
grass: import("./theme-vars").ColorShades;
|
|
236
|
-
brown: import("./theme-vars").ColorShades;
|
|
237
|
-
blue: import("./theme-vars").ColorShades;
|
|
238
|
-
orange: import("./theme-vars").ColorShades;
|
|
239
|
-
indigo: import("./theme-vars").ColorShades;
|
|
240
|
-
sky: import("./theme-vars").ColorShades;
|
|
241
|
-
mint: import("./theme-vars").ColorShades;
|
|
242
|
-
yellow: import("./theme-vars").ColorShades;
|
|
243
|
-
amber: import("./theme-vars").ColorShades;
|
|
244
|
-
lime: import("./theme-vars").ColorShades;
|
|
245
|
-
lemon: import("./theme-vars").ColorShades;
|
|
246
|
-
magenta: import("./theme-vars").ColorShades;
|
|
247
|
-
gold: import("./theme-vars").ColorShades;
|
|
248
|
-
bronze: import("./theme-vars").ColorShades;
|
|
249
|
-
gray: import("./theme-vars").ColorShades;
|
|
250
|
-
};
|
|
251
|
-
background: string;
|
|
252
|
-
overlay: string;
|
|
253
|
-
panelSolid: string;
|
|
254
|
-
panelTranslucent: string;
|
|
255
|
-
surface: string;
|
|
256
|
-
stroke: string;
|
|
257
|
-
} | {
|
|
258
|
-
palettes: {
|
|
259
|
-
black: {
|
|
260
|
-
a1: string;
|
|
261
|
-
a2: string;
|
|
262
|
-
a3: string;
|
|
263
|
-
a4: string;
|
|
264
|
-
a5: string;
|
|
265
|
-
a6: string;
|
|
266
|
-
a7: string;
|
|
267
|
-
a8: string;
|
|
268
|
-
a9: string;
|
|
269
|
-
a10: string;
|
|
270
|
-
a11: string;
|
|
271
|
-
a12: string;
|
|
272
|
-
};
|
|
273
|
-
white: {
|
|
274
|
-
a1: string;
|
|
275
|
-
a2: string;
|
|
276
|
-
a3: string;
|
|
277
|
-
a4: string;
|
|
278
|
-
a5: string;
|
|
279
|
-
a6: string;
|
|
280
|
-
a7: string;
|
|
281
|
-
a8: string;
|
|
282
|
-
a9: string;
|
|
283
|
-
a10: string;
|
|
284
|
-
a11: string;
|
|
285
|
-
a12: string;
|
|
286
|
-
};
|
|
287
|
-
tomato: import("./theme-vars").ColorShades;
|
|
288
|
-
red: import("./theme-vars").ColorShades;
|
|
289
|
-
ruby: import("./theme-vars").ColorShades;
|
|
290
|
-
crimson: import("./theme-vars").ColorShades;
|
|
291
|
-
pink: import("./theme-vars").ColorShades;
|
|
292
|
-
plum: import("./theme-vars").ColorShades;
|
|
293
|
-
purple: import("./theme-vars").ColorShades;
|
|
294
|
-
violet: import("./theme-vars").ColorShades;
|
|
295
|
-
iris: import("./theme-vars").ColorShades;
|
|
296
|
-
cyan: import("./theme-vars").ColorShades;
|
|
297
|
-
teal: import("./theme-vars").ColorShades;
|
|
298
|
-
jade: import("./theme-vars").ColorShades;
|
|
299
|
-
green: import("./theme-vars").ColorShades;
|
|
300
|
-
grass: import("./theme-vars").ColorShades;
|
|
301
|
-
brown: import("./theme-vars").ColorShades;
|
|
302
|
-
blue: import("./theme-vars").ColorShades;
|
|
303
|
-
orange: import("./theme-vars").ColorShades;
|
|
304
|
-
indigo: import("./theme-vars").ColorShades;
|
|
305
|
-
sky: import("./theme-vars").ColorShades;
|
|
306
|
-
mint: import("./theme-vars").ColorShades;
|
|
307
|
-
yellow: import("./theme-vars").ColorShades;
|
|
308
|
-
amber: import("./theme-vars").ColorShades;
|
|
309
|
-
lime: import("./theme-vars").ColorShades;
|
|
310
|
-
lemon: import("./theme-vars").ColorShades;
|
|
311
|
-
magenta: import("./theme-vars").ColorShades;
|
|
312
|
-
gold: import("./theme-vars").ColorShades;
|
|
313
|
-
bronze: import("./theme-vars").ColorShades;
|
|
314
|
-
gray: import("./theme-vars").ColorShades;
|
|
315
|
-
};
|
|
316
|
-
background: string;
|
|
317
|
-
overlay: string;
|
|
318
|
-
panelSolid: string;
|
|
319
|
-
panelTranslucent: string;
|
|
320
|
-
surface: string;
|
|
321
|
-
stroke: string;
|
|
322
|
-
};
|
|
323
|
-
isDark: boolean;
|
|
324
|
-
};
|
|
325
|
-
//# sourceMappingURL=use-theme-vars.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme-vars.d.ts","sourceRoot":"","sources":["../../src/lib/use-theme-vars.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useColorScheme } from 'nativewind';
|
|
2
|
-
import { themeVars } from './theme-vars';
|
|
3
|
-
export function useThemeVars() {
|
|
4
|
-
const { colorScheme } = useColorScheme();
|
|
5
|
-
const isDark = colorScheme === 'dark';
|
|
6
|
-
const colors = themeVars.colors[isDark ? 'dark' : 'light'];
|
|
7
|
-
// Inverted colors for components that flip theme (e.g., Tooltip)
|
|
8
|
-
const invertedColors = themeVars.colors[isDark ? 'light' : 'dark'];
|
|
9
|
-
return {
|
|
10
|
-
typography: themeVars.typography,
|
|
11
|
-
fontWeights: themeVars.fontWeights,
|
|
12
|
-
colors,
|
|
13
|
-
invertedColors,
|
|
14
|
-
isDark,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=use-theme-vars.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme-vars.js","sourceRoot":"","sources":["../../src/lib/use-theme-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,UAAU,YAAY;IAC1B,MAAM,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,WAAW,KAAK,MAAM,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3D,iEAAiE;IACjE,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAEnE,OAAO;QACL,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,MAAM;QACN,cAAc;QACd,MAAM;KACP,CAAC;AACJ,CAAC"}
|
package/dist/lib/utils.d.ts
DELETED
package/dist/lib/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAe7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/dist/lib/utils.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { clsx } from 'clsx';
|
|
2
|
-
import { extendTailwindMerge } from 'tailwind-merge';
|
|
3
|
-
const twMerge = extendTailwindMerge({
|
|
4
|
-
extend: {
|
|
5
|
-
classGroups: {
|
|
6
|
-
'font-size': [
|
|
7
|
-
{
|
|
8
|
-
text: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
export function cn(...inputs) {
|
|
15
|
-
return twMerge(clsx(inputs));
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/lib/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,OAAO,GAAG,mBAAmB,CAAC;IAClC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;iBACzD;aACF;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC"}
|