@tamagui/config-default 1.110.5 → 1.111.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/dist/index.native.js +7 -64
- package/dist/index.native.js.map +1 -1
- package/package.json +5 -5
package/dist/index.native.js
CHANGED
|
@@ -19,66 +19,6 @@ __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 _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++) arr2[i] = arr[i];
|
|
25
|
-
return arr2;
|
|
26
|
-
}
|
|
27
|
-
function _array_with_holes(arr) {
|
|
28
|
-
if (Array.isArray(arr)) return arr;
|
|
29
|
-
}
|
|
30
|
-
function _define_property(obj, key, value) {
|
|
31
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
32
|
-
value,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : obj[key] = value, obj;
|
|
37
|
-
}
|
|
38
|
-
function _iterable_to_array_limit(arr, i) {
|
|
39
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
40
|
-
if (_i != null) {
|
|
41
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
42
|
-
try {
|
|
43
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
44
|
-
;
|
|
45
|
-
} catch (err) {
|
|
46
|
-
_d = !0, _e = err;
|
|
47
|
-
} finally {
|
|
48
|
-
try {
|
|
49
|
-
!_n && _i.return != null && _i.return();
|
|
50
|
-
} finally {
|
|
51
|
-
if (_d) throw _e;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return _arr;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function _non_iterable_rest() {
|
|
58
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
59
|
-
}
|
|
60
|
-
function _object_spread(target) {
|
|
61
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
62
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
63
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
64
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
65
|
-
}))), ownKeys.forEach(function(key) {
|
|
66
|
-
_define_property(target, key, source[key]);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return target;
|
|
70
|
-
}
|
|
71
|
-
function _sliced_to_array(arr, i) {
|
|
72
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
73
|
-
}
|
|
74
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
75
|
-
if (o) {
|
|
76
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
77
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
78
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
79
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
22
|
function getDefaultTamaguiConfig() {
|
|
83
23
|
var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web", headingFont = (0, import_core.createFont)({
|
|
84
24
|
family: "Heading",
|
|
@@ -152,18 +92,21 @@ function getDefaultTamaguiConfig() {
|
|
|
152
92
|
19: 264,
|
|
153
93
|
20: 284
|
|
154
94
|
}, spaces = Object.entries(size).map(function(param) {
|
|
155
|
-
var
|
|
95
|
+
var [k, v] = param;
|
|
156
96
|
return [
|
|
157
97
|
k,
|
|
158
98
|
Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))
|
|
159
99
|
];
|
|
160
100
|
}), spacesNegative = spaces.slice(1).map(function(param) {
|
|
161
|
-
var
|
|
101
|
+
var [k, v] = param;
|
|
162
102
|
return [
|
|
163
|
-
|
|
103
|
+
`-${k}`,
|
|
164
104
|
-v
|
|
165
105
|
];
|
|
166
|
-
}), space =
|
|
106
|
+
}), space = {
|
|
107
|
+
...Object.fromEntries(spaces),
|
|
108
|
+
...Object.fromEntries(spacesNegative)
|
|
109
|
+
}, zIndex = {
|
|
167
110
|
0: 0,
|
|
168
111
|
1: 100,
|
|
169
112
|
2: 200,
|
package/dist/index.native.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/Users/n8/tamagui/code/core/config-default/src/index.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;kBAAyC,0BACzC,oBAA2B;AAKpB,SAASA,0BAAAA;MAAwBC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA6B,OAC7DC,kBAAcC,wBAAW;IAC7BC,QAAQ;IACRC,MAAM;MACJ,GAAG;IACL;IACAC,YAAY;MACV,GAAG;IACL;IACAC,WAAW,CAAC;IACZC,QAAQ;MACN,GAAG;IACL;IACAC,OAAO;MACL,GAAG;IACL;IACAC,eAAe;MACb,GAAG;IACL;EACF,CAAA,GAEMC,WAAOR,wBAAW;IACtBC,QAAQ;IACRC,MAAM;MACJ,GAAG;IACL;IACAC,YAAY;MACV,GAAG;IACL;IACAC,WAAW,CAAC;IACZC,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IAAI;IACvBC,WAAW;MAAEC,OAAO;IAAO;IAC3BC,eAAe;MAAEC,SAAS;IAAS;EACrC;AAEA,SAAO;;IAELC;IACAxB;IACAhB;IACAJ;IACAuB;IACAsB,UAAU;MACRC,6BAA6B;MAC7BC,sBAAsB;IACxB;EACF;AACF;",
|
|
5
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", "shorthands", "settings", "shouldAddPrefersColorThemes", "themeClassNameOnRoot"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/config-default",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.111.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@tamagui/animations-css": "1.
|
|
19
|
-
"@tamagui/core": "1.
|
|
20
|
-
"@tamagui/shorthands": "1.
|
|
18
|
+
"@tamagui/animations-css": "1.111.0",
|
|
19
|
+
"@tamagui/core": "1.111.0",
|
|
20
|
+
"@tamagui/shorthands": "1.111.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@tamagui/build": "1.
|
|
23
|
+
"@tamagui/build": "1.111.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|