@tamagui/config-default 2.7.7 → 3.0.0-beta.643.1

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.
@@ -1,275 +1,235 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var index_exports = {};
26
- __export(index_exports, {
27
- getDefaultTamaguiConfig: () => getDefaultTamaguiConfig
28
- });
25
+ __export(index_exports, { getDefaultTamaguiConfig: () => getDefaultTamaguiConfig });
29
26
  module.exports = __toCommonJS(index_exports);
30
27
  var import_shorthands = require("@tamagui/shorthands");
31
28
  var import_web = require("@tamagui/web");
32
29
  var import_animations = require("./animations.native.js");
33
- var import_animations2 = require("./animations.native");
30
+ var import_animations2 = require("./animations.native.js");
34
31
  function getDefaultTamaguiConfig() {
35
- var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web";
36
- var headingFont = (0, import_web.createFont)({
37
- family: "Heading",
38
- size: {
39
- 1: 15
40
- },
41
- lineHeight: {
42
- 1: 15
43
- },
44
- transform: {},
45
- weight: {
46
- 1: "400"
47
- },
48
- color: {
49
- 1: "$color"
50
- },
51
- letterSpacing: {
52
- 1: 0
53
- }
54
- });
55
- var font = (0, import_web.createFont)({
56
- family: "System",
57
- size: {
58
- 1: 15
59
- },
60
- lineHeight: {
61
- 1: 15
62
- },
63
- transform: {},
64
- weight: {
65
- 1: "400"
66
- },
67
- color: {
68
- 1: "$color"
69
- },
70
- letterSpacing: {
71
- 1: 0
72
- }
73
- });
74
- var size = {
75
- 0: 0,
76
- 0.25: 2,
77
- 0.5: 4,
78
- 0.75: 8,
79
- 1: 20,
80
- 1.5: 24,
81
- 2: 28,
82
- 2.5: 32,
83
- 3: 36,
84
- 3.5: 40,
85
- 4: 44,
86
- true: 44,
87
- 4.5: 48,
88
- 5: 52,
89
- 5.5: 59,
90
- 6: 64,
91
- 6.5: 69,
92
- 7: 74,
93
- 7.6: 79,
94
- 8: 84,
95
- 8.5: 89,
96
- 9: 94,
97
- 9.5: 99,
98
- 10: 104,
99
- 11: 124,
100
- 12: 144,
101
- 13: 164,
102
- 14: 184,
103
- 15: 204,
104
- 16: 224,
105
- 17: 224,
106
- 18: 244,
107
- 19: 264,
108
- 20: 284
109
- };
110
- var spaces = Object.entries(size).map(function (param) {
111
- var [k, v] = param;
112
- return [k, Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))];
113
- });
114
- var spacesNegative = spaces.slice(1).map(function (param) {
115
- var [k, v] = param;
116
- return [`-${k}`, -v];
117
- });
118
- var space = {
119
- ...Object.fromEntries(spaces),
120
- ...Object.fromEntries(spacesNegative)
121
- };
122
- var zIndex = {
123
- 0: 0,
124
- 1: 100,
125
- 2: 200,
126
- 3: 300,
127
- 4: 400,
128
- 5: 500
129
- };
130
- var radius = {
131
- 0: 0,
132
- 1: 3,
133
- 2: 5,
134
- 3: 7,
135
- 4: 9,
136
- 5: 10,
137
- 6: 16,
138
- 7: 19,
139
- 8: 22,
140
- 9: 26,
141
- 10: 34,
142
- 11: 42,
143
- 12: 50
144
- };
145
- var tokens = (0, import_web.createTokens)({
146
- color: {
147
- white: "#fff",
148
- black: "#000"
149
- },
150
- radius,
151
- zIndex,
152
- space,
153
- size
154
- });
155
- var themes = {
156
- light: {
157
- background: tokens.color.white,
158
- color: tokens.color.black
159
- },
160
- dark: {
161
- background: tokens.color.black,
162
- color: tokens.color.white
163
- },
164
- // most of these used for testing:
165
- dark_blue: {
166
- background: "blue",
167
- color: "white"
168
- },
169
- dark_Card: {
170
- background: "dark",
171
- color: "card"
172
- },
173
- dark_Button: {
174
- background: "dark",
175
- color: "button"
176
- },
177
- dark_blue_Button: {
178
- background: "blue",
179
- color: "white"
180
- },
181
- dark_red: {
182
- background: "darkred",
183
- color: "white"
184
- },
185
- dark_red_alt1: {
186
- background: "darkred",
187
- color: "white"
188
- },
189
- dark_red_Button: {
190
- background: "darkred",
191
- color: "#ccc"
192
- },
193
- dark_yellow_Button: {
194
- background: "brown",
195
- color: "#ccc"
196
- },
197
- dark_red_active_ListItem: {
198
- background: "darkred",
199
- color: "red"
200
- },
201
- dark_red_alt2: {
202
- background: "darkred",
203
- color: "#555"
204
- },
205
- dark_red_alt2_Button: {
206
- background: "darkred",
207
- color: "#444"
208
- },
209
- red: {
210
- background: "red",
211
- color: "red"
212
- }
213
- };
214
- var fonts = {
215
- heading: headingFont,
216
- body: font
217
- };
218
- var media = {
219
- xs: {
220
- maxWidth: 660
221
- },
222
- sm: {
223
- maxWidth: 800
224
- },
225
- md: {
226
- maxWidth: 1020
227
- },
228
- lg: {
229
- maxWidth: 1280
230
- },
231
- xl: {
232
- maxWidth: 1420
233
- },
234
- xxl: {
235
- maxWidth: 1600
236
- },
237
- gtXs: {
238
- minWidth: 660 + 1
239
- },
240
- gtSm: {
241
- minWidth: 800 + 1
242
- },
243
- gtMd: {
244
- minWidth: 1020 + 1
245
- },
246
- gtLg: {
247
- minWidth: 1280 + 1
248
- },
249
- short: {
250
- maxHeight: 820
251
- },
252
- tall: {
253
- minHeight: 820
254
- },
255
- hoverNone: {
256
- hover: "none"
257
- },
258
- pointerCoarse: {
259
- pointer: "coarse"
260
- }
261
- };
262
- return {
263
- animations: platform === "web" ? import_animations.animations : import_animations2.animations,
264
- shorthands: import_shorthands.shorthands,
265
- fonts,
266
- themes,
267
- tokens,
268
- media,
269
- settings: {
270
- shouldAddPrefersColorThemes: true,
271
- defaultFont: "body"
272
- }
273
- };
32
+ var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "web";
33
+ var headingFont = (0, import_web.createFont)({
34
+ family: "Heading",
35
+ size: {
36
+ 1: 15,
37
+ 4: 15
38
+ },
39
+ lineHeight: {
40
+ 1: 15,
41
+ 4: 15
42
+ },
43
+ transform: {},
44
+ weight: { 1: "400" },
45
+ color: { 1: "color" },
46
+ letterSpacing: { 1: 0 }
47
+ });
48
+ var font = (0, import_web.createFont)({
49
+ family: "System",
50
+ size: {
51
+ 1: 15,
52
+ 4: 15
53
+ },
54
+ lineHeight: {
55
+ 1: 15,
56
+ 4: 15
57
+ },
58
+ transform: {},
59
+ weight: { 1: "400" },
60
+ color: { 1: "color" },
61
+ letterSpacing: { 1: 0 }
62
+ });
63
+ var size = {
64
+ 0: 0,
65
+ .25: 2,
66
+ .5: 4,
67
+ .75: 8,
68
+ 1: 20,
69
+ 1.5: 24,
70
+ 2: 28,
71
+ 2.5: 32,
72
+ 3: 36,
73
+ 3.5: 40,
74
+ 4: 44,
75
+ 4.5: 48,
76
+ 5: 52,
77
+ 5.5: 59,
78
+ 6: 64,
79
+ 6.5: 69,
80
+ 7: 74,
81
+ 7.6: 79,
82
+ 8: 84,
83
+ 8.5: 89,
84
+ 9: 94,
85
+ 9.5: 99,
86
+ 10: 104,
87
+ 11: 124,
88
+ 12: 144,
89
+ 13: 164,
90
+ 14: 184,
91
+ 15: 204,
92
+ 16: 224,
93
+ 17: 224,
94
+ 18: 244,
95
+ 19: 264,
96
+ 20: 284
97
+ };
98
+ var spaces = Object.entries(size).map(function(param) {
99
+ var [k, v] = param;
100
+ return [k, Math.max(0, v <= 16 ? Math.round(v * .333) : Math.floor(v * .7 - 12))];
101
+ });
102
+ var spacesNegative = spaces.slice(1).map(function(param) {
103
+ var [k, v] = param;
104
+ return [`-${k}`, -v];
105
+ });
106
+ var space = {
107
+ ...Object.fromEntries(spaces),
108
+ ...Object.fromEntries(spacesNegative)
109
+ };
110
+ var zIndex = {
111
+ 0: 0,
112
+ 1: 100,
113
+ 2: 200,
114
+ 3: 300,
115
+ 4: 400,
116
+ 5: 500
117
+ };
118
+ var radius = {
119
+ 0: 0,
120
+ 1: 3,
121
+ 2: 5,
122
+ 3: 7,
123
+ 4: 9,
124
+ 5: 10,
125
+ 6: 16,
126
+ 7: 19,
127
+ 8: 22,
128
+ 9: 26,
129
+ 10: 34,
130
+ 11: 42,
131
+ 12: 50
132
+ };
133
+ var tokens = (0, import_web.createTokens)({
134
+ color: {
135
+ white: "#fff",
136
+ black: "#000"
137
+ },
138
+ radius,
139
+ zIndex,
140
+ space,
141
+ size
142
+ });
143
+ var themes = {
144
+ light: {
145
+ background: tokens.color.white,
146
+ color: tokens.color.black
147
+ },
148
+ dark: {
149
+ background: tokens.color.black,
150
+ color: tokens.color.white
151
+ },
152
+ dark_blue: {
153
+ background: "blue",
154
+ color: "white"
155
+ },
156
+ dark_Card: {
157
+ background: "dark",
158
+ color: "card"
159
+ },
160
+ dark_Button: {
161
+ background: "dark",
162
+ color: "button"
163
+ },
164
+ dark_blue_Button: {
165
+ background: "blue",
166
+ color: "white"
167
+ },
168
+ dark_red: {
169
+ background: "darkred",
170
+ color: "white"
171
+ },
172
+ dark_red_alt1: {
173
+ background: "darkred",
174
+ color: "white"
175
+ },
176
+ dark_red_Button: {
177
+ background: "darkred",
178
+ color: "#ccc"
179
+ },
180
+ dark_yellow_Button: {
181
+ background: "brown",
182
+ color: "#ccc"
183
+ },
184
+ dark_red_active_ListItem: {
185
+ background: "darkred",
186
+ color: "red"
187
+ },
188
+ dark_red_alt2: {
189
+ background: "darkred",
190
+ color: "#555"
191
+ },
192
+ dark_red_alt2_Button: {
193
+ background: "darkred",
194
+ color: "#444"
195
+ },
196
+ red: {
197
+ background: "red",
198
+ color: "red"
199
+ }
200
+ };
201
+ var fonts = {
202
+ heading: headingFont,
203
+ body: font
204
+ };
205
+ var media = {
206
+ xs: { maxWidth: 660 },
207
+ sm: { maxWidth: 800 },
208
+ md: { maxWidth: 1020 },
209
+ lg: { maxWidth: 1280 },
210
+ xl: { maxWidth: 1420 },
211
+ xxl: { maxWidth: 1600 },
212
+ gtXs: { minWidth: 660 + 1 },
213
+ gtSm: { minWidth: 800 + 1 },
214
+ gtMd: { minWidth: 1020 + 1 },
215
+ gtLg: { minWidth: 1280 + 1 },
216
+ short: { maxHeight: 820 },
217
+ tall: { minHeight: 820 },
218
+ hoverNone: { hover: "none" },
219
+ pointerCoarse: { pointer: "coarse" }
220
+ };
221
+ return {
222
+ animations: platform === "web" ? import_animations.animations : import_animations2.animations,
223
+ shorthands: import_shorthands.shorthands,
224
+ fonts,
225
+ themes,
226
+ tokens,
227
+ media,
228
+ settings: {
229
+ shouldAddPrefersColorThemes: true,
230
+ defaultFont: "body"
231
+ }
232
+ };
274
233
  }
234
+
275
235
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","getDefaultTamaguiConfig","module","exports","import_shorthands","require","import_web","import_animations","import_animations2","platform","arguments","length","headingFont","createFont","family","size","lineHeight","transform","weight","color","letterSpacing","font","true","spaces","Object","entries","map","param","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"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA2B,CAAAK,aAAA;AAC3B,IAAAK,iBAAyC,GAAAC,OAAA;AACzC,IAAAC,UAAA,GAAAD,OAA2B;AAC3B,IAAAE,iBAAA,GAAAF,OAA+C;AAGxC,IAAAG,kBAAS,GAAAH,OAAA,CAAwB,qBAAoC;AAC1E,SAAMJ,uBAAcA,CAAA;EAAW,IAC7BQ,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EAAA,IACRE,WAAM,OAAAN,UAAA,CAAAO,UAAA;IAAAC,MACD;IACLC,IAAA;MACA;IAAY;IAEZC,UAAA;MACA;IACA;IAAQC,SACH;IACLC,MAAA;MACA;IAAO;IAEPC,KAAA;MACA;IAAe;IAEfC,aAAA;MACD;IAED;EAAwB,EACtB;EAAQ,IACRC,IAAM,OAAAf,UAAA,CAAAO,UAAA;IAAAC,MACD;IACLC,IAAA;MACA;IAAY;IAEZC,UAAA;MACA;IACA;IAAQC,SACH;IACLC,MAAA;MACA;IAAO;IAEPC,KAAA;MACA;IAAe;IAEfC,aAAA;MACD;IAED;EAAa,EACX;EAAG,IACHL,IAAM;IACN;IACA,MAAM;IACN,GAAG;IACH,MAAK;IACL,GAAG;IACH,KAAK;IACL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version":3,"file":"index.native.js","names":[],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n getDefaultTamaguiConfig: () => getDefaultTamaguiConfig\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_shorthands = require(\"@tamagui/shorthands\");\nvar import_web = require(\"@tamagui/web\");\nvar import_animations = require(\"./animations\");\nvar import_animations2 = require(\"./animations.native\");\nfunction getDefaultTamaguiConfig() {\n var platform = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"web\";\n var headingFont = (0, import_web.createFont)({\n family: \"Heading\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var font = (0, import_web.createFont)({\n family: \"System\",\n size: {\n 1: 15,\n 4: 15\n },\n lineHeight: {\n 1: 15,\n 4: 15\n },\n transform: {},\n weight: {\n 1: \"400\"\n },\n color: {\n 1: \"color\"\n },\n letterSpacing: {\n 1: 0\n }\n });\n var size = {\n 0: 0,\n 0.25: 2,\n 0.5: 4,\n 0.75: 8,\n 1: 20,\n 1.5: 24,\n 2: 28,\n 2.5: 32,\n 3: 36,\n 3.5: 40,\n 4: 44,\n 4.5: 48,\n 5: 52,\n 5.5: 59,\n 6: 64,\n 6.5: 69,\n 7: 74,\n 7.6: 79,\n 8: 84,\n 8.5: 89,\n 9: 94,\n 9.5: 99,\n 10: 104,\n 11: 124,\n 12: 144,\n 13: 164,\n 14: 184,\n 15: 204,\n 16: 224,\n 17: 224,\n 18: 244,\n 19: 264,\n 20: 284\n };\n var spaces = Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n Math.max(0, v <= 16 ? Math.round(v * 0.333) : Math.floor(v * 0.7 - 12))\n ];\n });\n var spacesNegative = spaces.slice(1).map(function(param) {\n var [k, v] = param;\n return [\n `-${k}`,\n -v\n ];\n });\n var space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative)\n };\n var zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500\n };\n var radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50\n };\n var tokens = (0, import_web.createTokens)({\n color: {\n white: \"#fff\",\n black: \"#000\"\n },\n radius,\n zIndex,\n space,\n size\n });\n var themes = {\n light: {\n background: tokens.color.white,\n color: tokens.color.black\n },\n dark: {\n background: tokens.color.black,\n color: tokens.color.white\n },\n // most of these used for testing:\n dark_blue: {\n background: \"blue\",\n color: \"white\"\n },\n dark_Card: {\n background: \"dark\",\n color: \"card\"\n },\n dark_Button: {\n background: \"dark\",\n color: \"button\"\n },\n dark_blue_Button: {\n background: \"blue\",\n color: \"white\"\n },\n dark_red: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_alt1: {\n background: \"darkred\",\n color: \"white\"\n },\n dark_red_Button: {\n background: \"darkred\",\n color: \"#ccc\"\n },\n dark_yellow_Button: {\n background: \"brown\",\n color: \"#ccc\"\n },\n dark_red_active_ListItem: {\n background: \"darkred\",\n color: \"red\"\n },\n dark_red_alt2: {\n background: \"darkred\",\n color: \"#555\"\n },\n dark_red_alt2_Button: {\n background: \"darkred\",\n color: \"#444\"\n },\n red: {\n background: \"red\",\n color: \"red\"\n }\n };\n var fonts = {\n heading: headingFont,\n body: font\n };\n var media = {\n xs: {\n maxWidth: 660\n },\n sm: {\n maxWidth: 800\n },\n md: {\n maxWidth: 1020\n },\n lg: {\n maxWidth: 1280\n },\n xl: {\n maxWidth: 1420\n },\n xxl: {\n maxWidth: 1600\n },\n gtXs: {\n minWidth: 660 + 1\n },\n gtSm: {\n minWidth: 800 + 1\n },\n gtMd: {\n minWidth: 1020 + 1\n },\n gtLg: {\n minWidth: 1280 + 1\n },\n short: {\n maxHeight: 820\n },\n tall: {\n minHeight: 820\n },\n hoverNone: {\n hover: \"none\"\n },\n pointerCoarse: {\n pointer: \"coarse\"\n }\n };\n return {\n animations: platform === \"web\" ? import_animations.animations : import_animations2.animations,\n shorthands: import_shorthands.shorthands,\n fonts,\n themes,\n tokens,\n media,\n settings: {\n shouldAddPrefersColorThemes: true,\n defaultFont: \"body\"\n }\n };\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAi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AU;GACR,YAAY;GACZ,OAAO;EACT;EACA,eAAe;GACb,YAAY;GACZ,OAAO;EACT;EACA,iBAAiB;GACf,YAAY;GACZ,OAAO;EACT;EACA,oBAAoB;GAClB,YAAY;GACZ,OAAO;EACT;EACA,0BAA0B;GACxB,YAAY;GACZ,OAAO;EACT;EACA,eAAe;GACb,YAAY;GACZ,OAAO;EACT;EACA,sBAAsB;GACpB,YAAY;GACZ,OAAO;EACT;EACA,KAAK;GACH,YAAY;GACZ,OAAO;EACT;CACF;CACA,IAAI,QAAQ;EACV,SAAS;EACT,MAAM;CACR;CACA,IAAI,QAAQ;EACV,IAAI,EACF,UAAU,IACZ;EACA,IAAI,EACF,UAAU,IACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,IAAI,EACF,UAAU,KACZ;EACA,KAAK,EACH,UAAU,KACZ;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,MAAM,EAClB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,MAAM,EACJ,UAAU,OAAO,EACnB;EACA,OAAO,EACL,WAAW,IACb;EACA,MAAM,EACJ,WAAW,IACb;EACA,WAAW,EACT,OAAO,OACT;EACA,eAAe,EACb,SAAS,SACX;CACF;CACA,OAAO;EACL,YAAY,aAAa,QAAQ,kBAAkB,aAAa,mBAAmB;EACnF,YAAY,kBAAkB;EAC9B;EACA;EACA;EACA;EACA,UAAU;GACR,6BAA6B;GAC7B,aAAa;EACf;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/config-default",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "types",
@@ -19,14 +19,14 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "dependencies": {
22
- "@tamagui/animations-css": "2.7.7",
23
- "@tamagui/animations-react-native": "2.7.7",
24
- "@tamagui/core": "2.7.7",
25
- "@tamagui/shorthands": "2.7.7",
26
- "@tamagui/web": "2.7.7"
22
+ "@tamagui/animations-css": "3.0.0-beta.643.1",
23
+ "@tamagui/animations-react-native": "3.0.0-beta.643.1",
24
+ "@tamagui/core": "3.0.0-beta.643.1",
25
+ "@tamagui/shorthands": "3.0.0-beta.643.1",
26
+ "@tamagui/web": "3.0.0-beta.643.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@tamagui/build": "2.7.7"
29
+ "@tamagui/build": "3.0.0-beta.643.1"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"animations.native.d.ts","sourceRoot":"","sources":["../src/animations.native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCrB,CAAA"}
1
+ {"version":3,"file":"animations.native.d.ts","sourceRoot":"","sources":["../src/animations.native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;QAMnB,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,SAAS;;;QAGT,OAAO;QACP,SAAS;QACT,IAAI;;;QAGJ,OAAO;QACP,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;;QAGT,OAAO;QACP,IAAI;QACJ,SAAS;;EAEX,CAAA"}