@multiplatform.one/theme 7.54.1 → 7.55.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/theme",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.55.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.55.0",
|
|
76
|
+
"@multiplatform.one/store": "^7.55.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.55.0",
|
|
93
|
+
"@multiplatform.one/test-utils": "7.55.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",
|
|
@@ -66,6 +66,24 @@ const nestedRadiusMap = {
|
|
|
66
66
|
full: "$5",
|
|
67
67
|
} as const;
|
|
68
68
|
|
|
69
|
+
// The leading end of a fill growing in a rail (Progress). A rail is thinner
|
|
70
|
+
// than twice the medium radius, so it paints one capsule from medium up; the
|
|
71
|
+
// fill end carries the stops the rail can't show (LC-132, FZ-7923).
|
|
72
|
+
const railFillRadiusMap = {
|
|
73
|
+
none: "$0",
|
|
74
|
+
small: "$0",
|
|
75
|
+
medium: "$0",
|
|
76
|
+
large: "$2",
|
|
77
|
+
full: "$12",
|
|
78
|
+
} as const;
|
|
79
|
+
|
|
80
|
+
/** The radius a rail's fill takes at the `borderRadius` stop (`radiusStopFromToken`). */
|
|
81
|
+
export function railFillRadius(
|
|
82
|
+
stop: Knobs["borderRadius"] | undefined,
|
|
83
|
+
): (typeof railFillRadiusMap)[Knobs["borderRadius"]] {
|
|
84
|
+
return railFillRadiusMap[stop ?? "medium"];
|
|
85
|
+
}
|
|
86
|
+
|
|
69
87
|
const borderWidthMap = {
|
|
70
88
|
none: 0,
|
|
71
89
|
small: hairlineBorderWidth,
|
|
@@ -16,6 +16,15 @@ export declare const containerRadiusMap: {
|
|
|
16
16
|
readonly large: "$8";
|
|
17
17
|
readonly full: "$12";
|
|
18
18
|
};
|
|
19
|
+
declare const railFillRadiusMap: {
|
|
20
|
+
readonly none: "$0";
|
|
21
|
+
readonly small: "$0";
|
|
22
|
+
readonly medium: "$0";
|
|
23
|
+
readonly large: "$2";
|
|
24
|
+
readonly full: "$12";
|
|
25
|
+
};
|
|
26
|
+
/** The radius a rail's fill takes at the `borderRadius` stop (`radiusStopFromToken`). */
|
|
27
|
+
export declare function railFillRadius(stop: Knobs["borderRadius"] | undefined): (typeof railFillRadiusMap)[Knobs["borderRadius"]];
|
|
19
28
|
/**
|
|
20
29
|
* LC-148: the colour a component paints its own edge in at the resolved
|
|
21
30
|
* `borderWidth` stop (`knobProps.borderWidthStop`). Where `small` draws no
|
|
@@ -127,4 +136,5 @@ export interface ResolveKnobsEnvironment {
|
|
|
127
136
|
painted?: boolean;
|
|
128
137
|
}
|
|
129
138
|
export declare function resolveKnobs(knobs: Knobs, override?: KnobPropsOverride, scheme?: ColorScheme, environment?: ResolveKnobsEnvironment): ResolvedKnobs;
|
|
139
|
+
export {};
|
|
130
140
|
//# sourceMappingURL=resolveKnobs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveKnobs.d.ts","sourceRoot":"","sources":["../../src/theme/resolveKnobs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiD,cAAc,EAAE,MAAM,SAAS,CAAC;AAY7F,OAAO,KAAK,EAAmB,SAAS,EAAE,KAAK,EAAE,cAAc,EAAc,MAAM,SAAS,CAAC;AAI7F,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAMV,SAAS,EACT,iBAAiB,EAEjB,iBAAiB,EACjB,aAAa,EAId,MAAM,WAAW,CAAC;AAKnB,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveKnobs.d.ts","sourceRoot":"","sources":["../../src/theme/resolveKnobs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiD,cAAc,EAAE,MAAM,SAAS,CAAC;AAY7F,OAAO,KAAK,EAAmB,SAAS,EAAE,KAAK,EAAE,cAAc,EAAc,MAAM,SAAS,CAAC;AAI7F,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAMV,SAAS,EACT,iBAAiB,EAEjB,iBAAiB,EACjB,aAAa,EAId,MAAM,WAAW,CAAC;AAKnB,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAkBX,QAAA,MAAM,iBAAiB;;;;;;CAMb,CAAC;AAEX,yFAAyF;AACzF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,GACtC,CAAC,OAAO,iBAAiB,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAEnD;AAuBD;;;;;;GAMG;AACH,wBAAgB,WAAW,C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