@multiplatform.one/theme 7.82.6 → 7.83.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/package.json +5 -5
- package/src/devWarn.ts +26 -1
- package/types/devWarn.d.ts +17 -1
- package/types/devWarn.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/theme",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.83.0",
|
|
4
4
|
"description": "Tamagui theme system for multiplatform.one",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@multiplatform.one/platform": "^7.
|
|
76
|
-
"@multiplatform.one/store": "^7.
|
|
75
|
+
"@multiplatform.one/platform": "^7.83.0",
|
|
76
|
+
"@multiplatform.one/store": "^7.83.0",
|
|
77
77
|
"@tamagui/animations-react-native": "2.7.6",
|
|
78
78
|
"@tamagui/colors": "2.7.6",
|
|
79
79
|
"@tamagui/config": "2.7.6",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@expo/prebuild-config": "55.0.18",
|
|
92
|
-
"@multiplatform.one/config": "7.
|
|
93
|
-
"@multiplatform.one/test-utils": "7.
|
|
92
|
+
"@multiplatform.one/config": "7.83.0",
|
|
93
|
+
"@multiplatform.one/test-utils": "7.83.0",
|
|
94
94
|
"@tamagui/animations-css": "2.7.6",
|
|
95
95
|
"@tamagui/animations-reanimated": "2.7.6",
|
|
96
96
|
"@tamagui/font-inter": "2.7.6",
|
package/src/devWarn.ts
CHANGED
|
@@ -26,7 +26,12 @@ export type DevWarnCode =
|
|
|
26
26
|
// (uniformly rounded), which is the defect the geometry rule bans.
|
|
27
27
|
| "opaque-stack-group"
|
|
28
28
|
/** Numeric height/paddingHorizontal on a recipe control without sizeRecipeEscape. */
|
|
29
|
-
| "size-recipe-escape"
|
|
29
|
+
| "size-recipe-escape"
|
|
30
|
+
/**
|
|
31
|
+
* LC-153: a use-site `outlined` on a neutral Button, which paints its
|
|
32
|
+
* control tier (plain in a bar, tinted in content) and ignores the prop.
|
|
33
|
+
*/
|
|
34
|
+
| "outlined-ignored";
|
|
30
35
|
|
|
31
36
|
export type DevWarnDetail = {
|
|
32
37
|
component?: string;
|
|
@@ -192,6 +197,26 @@ export function warnSizeRecipeEscape(args: {
|
|
|
192
197
|
devWarn("size-recipe-escape", { component: args.component, id: args.id });
|
|
193
198
|
}
|
|
194
199
|
|
|
200
|
+
/**
|
|
201
|
+
* LC-153 CONTROL-TIERS — a neutral Button's look is its tier, so a use-site
|
|
202
|
+
* `outlined` on one paints nothing. The live channels are an intent
|
|
203
|
+
* (`outlined error`) and the preset's `fillStyle: outlined`.
|
|
204
|
+
*/
|
|
205
|
+
export function warnOutlinedIgnored(args: {
|
|
206
|
+
outlined?: boolean;
|
|
207
|
+
tier?: string;
|
|
208
|
+
component?: string;
|
|
209
|
+
id?: string;
|
|
210
|
+
}): void {
|
|
211
|
+
if (!isDev() || args.outlined !== true || !args.tier) return;
|
|
212
|
+
devWarn("outlined-ignored", {
|
|
213
|
+
component: args.component,
|
|
214
|
+
id: args.id,
|
|
215
|
+
value: args.tier,
|
|
216
|
+
suggest: "drop outlined, or give the button an intent (LC-153)",
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
195
220
|
/**
|
|
196
221
|
* DG-ACT-05 — the cancel/dismiss action never renders disabled (while confirm
|
|
197
222
|
* may be). Enforcing callers strip the prop and report the attempt here.
|
package/types/devWarn.d.ts
CHANGED
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export type DevWarnCode = "placeholder-as-label" | "two-primaries" | "banned-error-word" | "bare-disabled" | "cancel-disabled" | "dialog-too-many-actions" | "select-too-few-options" | "positive-tabindex" | "tooltip-on-disabled" | "outline-none" | "multiple-h1" | "opaque-stack-group"
|
|
9
9
|
/** Numeric height/paddingHorizontal on a recipe control without sizeRecipeEscape. */
|
|
10
|
-
| "size-recipe-escape"
|
|
10
|
+
| "size-recipe-escape"
|
|
11
|
+
/**
|
|
12
|
+
* LC-153: a use-site `outlined` on a neutral Button, which paints its
|
|
13
|
+
* control tier (plain in a bar, tinted in content) and ignores the prop.
|
|
14
|
+
*/
|
|
15
|
+
| "outlined-ignored";
|
|
11
16
|
export type DevWarnDetail = {
|
|
12
17
|
component?: string;
|
|
13
18
|
id?: string;
|
|
@@ -95,6 +100,17 @@ export declare function warnSizeRecipeEscape(args: {
|
|
|
95
100
|
component?: string;
|
|
96
101
|
id?: string;
|
|
97
102
|
}): void;
|
|
103
|
+
/**
|
|
104
|
+
* LC-153 CONTROL-TIERS — a neutral Button's look is its tier, so a use-site
|
|
105
|
+
* `outlined` on one paints nothing. The live channels are an intent
|
|
106
|
+
* (`outlined error`) and the preset's `fillStyle: outlined`.
|
|
107
|
+
*/
|
|
108
|
+
export declare function warnOutlinedIgnored(args: {
|
|
109
|
+
outlined?: boolean;
|
|
110
|
+
tier?: string;
|
|
111
|
+
component?: string;
|
|
112
|
+
id?: string;
|
|
113
|
+
}): void;
|
|
98
114
|
/**
|
|
99
115
|
* DG-ACT-05 — the cancel/dismiss action never renders disabled (while confirm
|
|
100
116
|
* may be). Enforcing callers strip the prop and report the attempt here.
|
package/types/devWarn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devWarn.d.ts","sourceRoot":"","sources":["../src/devWarn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GACnB,sBAAsB,GACtB,eAAe,GACf,mBAAmB,GACnB,eAAe,GACf,iBAAiB,GACjB,yBAAyB,GACzB,wBAAwB,GACxB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GAGd,aAAa,G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