@tamagui/config-default 1.89.26 → 1.89.27-1708113113238
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.
|
@@ -18,8 +18,7 @@ __export(animations_native_exports, {
|
|
|
18
18
|
animations: () => animations
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(animations_native_exports);
|
|
21
|
-
var import_animations_react_native = require("@tamagui/animations-react-native")
|
|
22
|
-
const animations = (0, import_animations_react_native.createAnimations)({
|
|
21
|
+
var import_animations_react_native = require("@tamagui/animations-react-native"), animations = (0, import_animations_react_native.createAnimations)({
|
|
23
22
|
"100ms": {
|
|
24
23
|
type: "timing",
|
|
25
24
|
duration: 100
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/animations.native.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../src/Users/n8/tamagui/packages/config-default/src/animations.native.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;qCAAiC,6CAEpBA,iBAAaC,iDAAiB;EACzC,SAAS;IACPC,MAAM;IACNC,UAAU;EACZ;EACAC,QAAQ;IACNC,SAAS;IACTC,MAAM;IACNC,WAAW;EACb;EACAC,MAAM;IACJH,SAAS;IACTE,WAAW;EACb;EACAE,QAAQ;IACNJ,SAAS;IACTE,WAAW;IACXD,MAAM;EACR;EACAI,MAAM;IACJL,SAAS;IACTE,WAAW;EACb;EACAI,OAAO;IACLN,SAAS;IACTC,MAAM;IACNC,WAAW;EACb;EACAK,SAAS;IACPP,SAAS;IACTC,MAAM;IACNC,WAAW;EACb;AACF,CAAA;",
|
|
5
|
+
"names": ["animations", "createAnimations", "type", "duration", "bouncy", "damping", "mass", "stiffness", "lazy", "medium", "slow", "quick", "tooltip"]
|
|
6
6
|
}
|
package/dist/index.native.js
CHANGED
|
@@ -19,8 +19,74 @@ __export(src_exports, {
|
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(src_exports);
|
|
21
21
|
var import_core = require("@tamagui/core"), import_shorthands = require("@tamagui/shorthands");
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function _array_like_to_array(arr, len) {
|
|
23
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
24
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
25
|
+
arr2[i] = arr[i];
|
|
26
|
+
return arr2;
|
|
27
|
+
}
|
|
28
|
+
function _array_with_holes(arr) {
|
|
29
|
+
if (Array.isArray(arr))
|
|
30
|
+
return arr;
|
|
31
|
+
}
|
|
32
|
+
function _define_property(obj, key, value) {
|
|
33
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
34
|
+
value,
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
configurable: !0,
|
|
37
|
+
writable: !0
|
|
38
|
+
}) : obj[key] = value, obj;
|
|
39
|
+
}
|
|
40
|
+
function _iterable_to_array_limit(arr, i) {
|
|
41
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42
|
+
if (_i != null) {
|
|
43
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
44
|
+
try {
|
|
45
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
46
|
+
;
|
|
47
|
+
} catch (err) {
|
|
48
|
+
_d = !0, _e = err;
|
|
49
|
+
} finally {
|
|
50
|
+
try {
|
|
51
|
+
!_n && _i.return != null && _i.return();
|
|
52
|
+
} finally {
|
|
53
|
+
if (_d)
|
|
54
|
+
throw _e;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return _arr;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function _non_iterable_rest() {
|
|
61
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
62
|
+
}
|
|
63
|
+
function _object_spread(target) {
|
|
64
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
65
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
66
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
67
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
68
|
+
}))), ownKeys.forEach(function(key) {
|
|
69
|
+
_define_property(target, key, source[key]);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return target;
|
|
73
|
+
}
|
|
74
|
+
function _sliced_to_array(arr, i) {
|
|
75
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
76
|
+
}
|
|
77
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
78
|
+
if (o) {
|
|
79
|
+
if (typeof o == "string")
|
|
80
|
+
return _array_like_to_array(o, minLen);
|
|
81
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
82
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
83
|
+
return Array.from(n);
|
|
84
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
85
|
+
return _array_like_to_array(o, minLen);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function getDefaultTamaguiConfig() {
|
|
89
|
+
var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web", headingFont = (0, import_core.createFont)({
|
|
24
90
|
family: "Heading",
|
|
25
91
|
size: {
|
|
26
92
|
1: 15
|
|
@@ -91,42 +157,46 @@ function getDefaultTamaguiConfig(platform = "web") {
|
|
|
91
157
|
18: 244,
|
|
92
158
|
19: 264,
|
|
93
159
|
20: 284
|
|
94
|
-
}, spaces = Object.entries(size).map(
|
|
95
|
-
([
|
|
160
|
+
}, spaces = Object.entries(size).map(function(param) {
|
|
161
|
+
var _param = _sliced_to_array(param, 2), k = _param[0], v = _param[1];
|
|
162
|
+
return [
|
|
96
163
|
k,
|
|
97
164
|
Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))
|
|
98
|
-
]
|
|
99
|
-
), spacesNegative = spaces.slice(1).map((
|
|
100
|
-
|
|
101
|
-
|
|
165
|
+
];
|
|
166
|
+
}), spacesNegative = spaces.slice(1).map(function(param) {
|
|
167
|
+
var _param = _sliced_to_array(param, 2), k = _param[0], v = _param[1];
|
|
168
|
+
return [
|
|
169
|
+
"-".concat(k),
|
|
170
|
+
-v
|
|
171
|
+
];
|
|
172
|
+
}), space = _object_spread({}, Object.fromEntries(spaces), Object.fromEntries(spacesNegative)), zIndex = {
|
|
173
|
+
0: 0,
|
|
174
|
+
1: 100,
|
|
175
|
+
2: 200,
|
|
176
|
+
3: 300,
|
|
177
|
+
4: 400,
|
|
178
|
+
5: 500
|
|
179
|
+
}, radius = {
|
|
180
|
+
0: 0,
|
|
181
|
+
1: 3,
|
|
182
|
+
2: 5,
|
|
183
|
+
3: 7,
|
|
184
|
+
4: 9,
|
|
185
|
+
5: 10,
|
|
186
|
+
6: 16,
|
|
187
|
+
7: 19,
|
|
188
|
+
8: 22,
|
|
189
|
+
9: 26,
|
|
190
|
+
10: 34,
|
|
191
|
+
11: 42,
|
|
192
|
+
12: 50
|
|
102
193
|
}, tokens = (0, import_core.createTokens)({
|
|
103
194
|
color: {
|
|
104
195
|
white: "#fff",
|
|
105
196
|
black: "#000"
|
|
106
197
|
},
|
|
107
|
-
radius
|
|
108
|
-
|
|
109
|
-
1: 3,
|
|
110
|
-
2: 5,
|
|
111
|
-
3: 7,
|
|
112
|
-
4: 9,
|
|
113
|
-
5: 10,
|
|
114
|
-
6: 16,
|
|
115
|
-
7: 19,
|
|
116
|
-
8: 22,
|
|
117
|
-
9: 26,
|
|
118
|
-
10: 34,
|
|
119
|
-
11: 42,
|
|
120
|
-
12: 50
|
|
121
|
-
},
|
|
122
|
-
zIndex: {
|
|
123
|
-
0: 0,
|
|
124
|
-
1: 100,
|
|
125
|
-
2: 200,
|
|
126
|
-
3: 300,
|
|
127
|
-
4: 400,
|
|
128
|
-
5: 500
|
|
129
|
-
},
|
|
198
|
+
radius,
|
|
199
|
+
zIndex,
|
|
130
200
|
space,
|
|
131
201
|
size
|
|
132
202
|
}), themes = {
|
|
@@ -187,34 +257,62 @@ function getDefaultTamaguiConfig(platform = "web") {
|
|
|
187
257
|
background: "red",
|
|
188
258
|
color: "red"
|
|
189
259
|
}
|
|
260
|
+
}, fonts = {
|
|
261
|
+
heading: headingFont,
|
|
262
|
+
body: font
|
|
263
|
+
}, media = {
|
|
264
|
+
xs: {
|
|
265
|
+
maxWidth: 660
|
|
266
|
+
},
|
|
267
|
+
sm: {
|
|
268
|
+
maxWidth: 800
|
|
269
|
+
},
|
|
270
|
+
md: {
|
|
271
|
+
maxWidth: 1020
|
|
272
|
+
},
|
|
273
|
+
lg: {
|
|
274
|
+
maxWidth: 1280
|
|
275
|
+
},
|
|
276
|
+
xl: {
|
|
277
|
+
maxWidth: 1420
|
|
278
|
+
},
|
|
279
|
+
xxl: {
|
|
280
|
+
maxWidth: 1600
|
|
281
|
+
},
|
|
282
|
+
gtXs: {
|
|
283
|
+
minWidth: 661
|
|
284
|
+
},
|
|
285
|
+
gtSm: {
|
|
286
|
+
minWidth: 801
|
|
287
|
+
},
|
|
288
|
+
gtMd: {
|
|
289
|
+
minWidth: 1021
|
|
290
|
+
},
|
|
291
|
+
gtLg: {
|
|
292
|
+
minWidth: 1281
|
|
293
|
+
},
|
|
294
|
+
short: {
|
|
295
|
+
maxHeight: 820
|
|
296
|
+
},
|
|
297
|
+
tall: {
|
|
298
|
+
minHeight: 820
|
|
299
|
+
},
|
|
300
|
+
hoverNone: {
|
|
301
|
+
hover: "none"
|
|
302
|
+
},
|
|
303
|
+
pointerCoarse: {
|
|
304
|
+
pointer: "coarse"
|
|
305
|
+
}
|
|
190
306
|
};
|
|
191
307
|
return {
|
|
192
308
|
shouldAddPrefersColorThemes: !0,
|
|
193
309
|
themeClassNameOnRoot: !0,
|
|
194
310
|
// animations: platform === 'web' ? animations : animationsNative,
|
|
195
311
|
shorthands: import_shorthands.shorthands,
|
|
196
|
-
fonts
|
|
197
|
-
heading: headingFont,
|
|
198
|
-
body: font
|
|
199
|
-
},
|
|
312
|
+
fonts,
|
|
200
313
|
themes,
|
|
201
314
|
tokens,
|
|
202
|
-
media
|
|
203
|
-
xs: { maxWidth: 660 },
|
|
204
|
-
sm: { maxWidth: 800 },
|
|
205
|
-
md: { maxWidth: 1020 },
|
|
206
|
-
lg: { maxWidth: 1280 },
|
|
207
|
-
xl: { maxWidth: 1420 },
|
|
208
|
-
xxl: { maxWidth: 1600 },
|
|
209
|
-
gtXs: { minWidth: 661 },
|
|
210
|
-
gtSm: { minWidth: 801 },
|
|
211
|
-
gtMd: { minWidth: 1021 },
|
|
212
|
-
gtLg: { minWidth: 1281 },
|
|
213
|
-
short: { maxHeight: 820 },
|
|
214
|
-
tall: { minHeight: 820 },
|
|
215
|
-
hoverNone: { hover: "none" },
|
|
216
|
-
pointerCoarse: { pointer: "coarse" }
|
|
217
|
-
}
|
|
315
|
+
media
|
|
218
316
|
};
|
|
219
317
|
}
|
|
220
318
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.native.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../src/Users/n8/tamagui/packages/config-default/src/index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,kBAAyC,0BACzC,oBAA2B;;;;;;;;;;;;;;;;;;;;;;;;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C,sBAAsB;MACpBZ,YAAY;MACZ1B,OAAO;IACT;IACAuC,KAAK;MACHb,YAAY;MACZ1B,OAAO;IACT;EACF,GAEMwC,QAAQ;IACZC,SAAShD;IACTiD,MAAMxC;EACR,GAEMyC,QAAQ;IACZC,IAAI;MAAEC,UAAU;IAAI;IACpBC,IAAI;MAAED,UAAU;IAAI;IACpBE,IAAI;MAAEF,UAAU;IAAK;IACrBG,IAAI;MAAEH,UAAU;IAAK;IACrBI,IAAI;MAAEJ,UAAU;IAAK;IACrBK,KAAK;MAAEL,UAAU;IAAK;IACtBM,MAAM;MAAEC,UAAU;IAAQ;IAC1BC,MAAM;MAAED,UAAU;IAAQ;IAC1BE,MAAM;MAAEF,UAAU;IAAS;IAC3BG,MAAM;MAAEH,UAAU;IAAS;IAC3BI,OAAO;MAAEC,WAAW;IAAI;IACxBC,MAAM;MAAEC,WAAW;IAAI;IACvBC,WAAW;MAAEC,OAAO;IAAO;IAC3BC,eAAe;MAAEC,SAAS;IAAS;EACrC;AAEA,SAAO;IACLC,6BAA6B;IAC7BC,sBAAsB;;IAEtBC,YAAAA;IACA1B;IACAhB;IACAJ;IACAuB;EACF;AACF;",
|
|
5
|
+
"names": ["getDefaultTamaguiConfig", "platform", "headingFont", "createFont", "family", "size", "lineHeight", "transform", "weight", "color", "letterSpacing", "font", "true", "spaces", "Object", "entries", "map", "k", "v", "Math", "max", "round", "floor", "spacesNegative", "slice", "space", "fromEntries", "zIndex", "radius", "tokens", "createTokens", "white", "black", "themes", "light", "background", "dark", "dark_blue", "dark_Card", "dark_Button", "dark_blue_Button", "dark_red", "dark_red_alt1", "dark_red_Button", "dark_yellow_Button", "dark_red_active_ListItem", "dark_red_alt2", "dark_red_alt2_Button", "red", "fonts", "heading", "body", "media", "xs", "maxWidth", "sm", "md", "lg", "xl", "xxl", "gtXs", "minWidth", "gtSm", "gtMd", "gtLg", "short", "maxHeight", "tall", "minHeight", "hoverNone", "hover", "pointerCoarse", "pointer", "shouldAddPrefersColorThemes", "themeClassNameOnRoot", "shorthands"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config-default",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.27-1708113113238",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@tamagui/core": "1.89.
|
|
19
|
-
"@tamagui/shorthands": "1.89.
|
|
18
|
+
"@tamagui/core": "1.89.27-1708113113238",
|
|
19
|
+
"@tamagui/shorthands": "1.89.27-1708113113238"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tamagui/build": "1.89.
|
|
22
|
+
"@tamagui/build": "1.89.27-1708113113238"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|