@tamagui/config 3.0.0-beta.922.1 → 3.0.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/cjs/animations-css.cjs +2 -26
- package/dist/cjs/animations-motion.cjs +2 -87
- package/dist/cjs/animations-motion.native.cjs +2 -87
- package/dist/cjs/animations-motion.native.js +2 -87
- package/dist/cjs/animations-motion.native.js.map +1 -1
- package/dist/cjs/animations-reanimated.cjs +2 -101
- package/dist/cjs/animations-reanimated.native.cjs +2 -101
- package/dist/cjs/animations-reanimated.native.js +2 -101
- package/dist/cjs/animations-reanimated.native.js.map +1 -1
- package/dist/cjs/animations-rn.cjs +2 -111
- package/dist/cjs/animations-rn.native.cjs +2 -111
- package/dist/cjs/animations-rn.native.js +2 -111
- package/dist/cjs/animations-rn.native.js.map +1 -1
- package/dist/cjs/settings.cjs +1 -0
- package/dist/cjs/settings.native.cjs +1 -0
- package/dist/cjs/settings.native.js +1 -0
- package/dist/cjs/settings.native.js.map +1 -1
- package/dist/cjs/v5-base.cjs +73 -2
- package/dist/cjs/v5-base.native.cjs +73 -2
- package/dist/cjs/v5-base.native.js +73 -2
- package/dist/cjs/v5-base.native.js.map +1 -1
- package/dist/cjs/v5-fonts.cjs +6 -1
- package/dist/cjs/v5-fonts.native.cjs +6 -1
- package/dist/cjs/v5-fonts.native.js +6 -1
- package/dist/cjs/v5-fonts.native.js.map +1 -1
- package/dist/cjs/v6-base.cjs +107 -11
- package/dist/cjs/v6-base.native.cjs +109 -11
- package/dist/cjs/v6-base.native.js +109 -11
- package/dist/cjs/v6-base.native.js.map +1 -1
- package/dist/cjs/v6-tailwind-scales.generated.cjs +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.cjs +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.js +12 -0
- package/dist/cjs/v6-tailwind-scales.generated.native.js.map +1 -1
- package/dist/cjs/v6-themes.cjs +2 -1
- package/dist/cjs/v6-themes.native.cjs +2 -1
- package/dist/cjs/v6-themes.native.js +2 -1
- package/dist/cjs/v6-themes.native.js.map +1 -1
- package/dist/esm/animations-css.mjs +2 -26
- package/dist/esm/animations-css.mjs.map +1 -1
- package/dist/esm/animations-motion.mjs +2 -87
- package/dist/esm/animations-motion.mjs.map +1 -1
- package/dist/esm/animations-motion.native.js +2 -87
- package/dist/esm/animations-motion.native.js.map +1 -1
- package/dist/esm/animations-reanimated.mjs +2 -101
- package/dist/esm/animations-reanimated.mjs.map +1 -1
- package/dist/esm/animations-reanimated.native.js +2 -101
- package/dist/esm/animations-reanimated.native.js.map +1 -1
- package/dist/esm/animations-rn.mjs +2 -111
- package/dist/esm/animations-rn.mjs.map +1 -1
- package/dist/esm/animations-rn.native.js +2 -111
- package/dist/esm/animations-rn.native.js.map +1 -1
- package/dist/esm/settings.mjs +1 -0
- package/dist/esm/settings.mjs.map +1 -1
- package/dist/esm/settings.native.js +1 -0
- package/dist/esm/settings.native.js.map +1 -1
- package/dist/esm/v5-base.mjs +74 -4
- package/dist/esm/v5-base.mjs.map +1 -1
- package/dist/esm/v5-base.native.js +74 -4
- package/dist/esm/v5-base.native.js.map +1 -1
- package/dist/esm/v5-fonts.mjs +7 -2
- package/dist/esm/v5-fonts.mjs.map +1 -1
- package/dist/esm/v5-fonts.native.js +7 -2
- package/dist/esm/v5-fonts.native.js.map +1 -1
- package/dist/esm/v6-base.mjs +105 -11
- package/dist/esm/v6-base.mjs.map +1 -1
- package/dist/esm/v6-base.native.js +107 -11
- package/dist/esm/v6-base.native.js.map +1 -1
- package/dist/esm/v6-tailwind-scales.generated.mjs +12 -0
- package/dist/esm/v6-tailwind-scales.generated.mjs.map +1 -1
- package/dist/esm/v6-tailwind-scales.generated.native.js +12 -0
- package/dist/esm/v6-tailwind-scales.generated.native.js.map +1 -1
- package/dist/esm/v6-themes.mjs +2 -1
- package/dist/esm/v6-themes.mjs.map +1 -1
- package/dist/esm/v6-themes.native.js +2 -1
- package/dist/esm/v6-themes.native.js.map +1 -1
- package/package.json +25 -13
- package/src/animations-css.ts +2 -27
- package/src/animations-motion.ts +2 -105
- package/src/animations-reanimated.ts +2 -101
- package/src/animations-rn.ts +2 -111
- package/src/settings.ts +1 -0
- package/src/v5-base.ts +57 -2
- package/src/v5-fonts.ts +14 -7
- package/src/v6-base.ts +104 -10
- package/src/v6-tailwind-scales.generated.ts +12 -0
- package/src/v6-themes.ts +35 -4
- package/types/animations-css.d.ts +104 -44
- package/types/animations-css.d.ts.map +1 -1
- package/types/animations-motion.d.ts +102 -204
- package/types/animations-motion.d.ts.map +1 -1
- package/types/animations-reanimated.d.ts +102 -196
- package/types/animations-reanimated.d.ts.map +1 -1
- package/types/animations-rn.d.ts +102 -216
- package/types/animations-rn.d.ts.map +1 -1
- package/types/settings.d.ts +1 -0
- package/types/settings.d.ts.map +1 -1
- package/types/v5-base.d.ts +72 -2
- package/types/v5-base.d.ts.map +1 -1
- package/types/v5-fonts.d.ts.map +1 -1
- package/types/v6-base.d.ts +527 -5
- package/types/v6-base.d.ts.map +1 -1
- package/types/v6-tailwind-scales.generated.d.ts +12 -0
- package/types/v6-tailwind-scales.generated.d.ts.map +1 -1
- package/types/v6-themes.d.ts +7 -1
- package/types/v6-themes.d.ts.map +1 -1
- package/types/v6.d.ts +1343 -371
- package/types/v6.d.ts.map +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { createSystemFont } from "@tamagui/create-system-font";
|
|
1
|
+
import { createSystemFont, v5SystemFontLineHeight, v5SystemFontSizes } from "@tamagui/create-system-font";
|
|
2
2
|
|
|
3
3
|
var isNative = true;
|
|
4
4
|
var headingLineHeight = function(size) {
|
|
5
5
|
return Math.round(isNative ? size * 1.2 : size * 1.12 + 5);
|
|
6
6
|
};
|
|
7
|
+
var v5Scale = {
|
|
8
|
+
sizes: v5SystemFontSizes,
|
|
9
|
+
sizeLineHeight: v5SystemFontLineHeight
|
|
10
|
+
};
|
|
7
11
|
var toPxScale = function(obj) {
|
|
8
12
|
return Object.fromEntries(Object.entries(obj).map(function(param) {
|
|
9
13
|
var [k, v] = param;
|
|
@@ -18,8 +22,9 @@ var pinFontToPx = function(font) {
|
|
|
18
22
|
};
|
|
19
23
|
};
|
|
20
24
|
var fonts = {
|
|
21
|
-
body: pinFontToPx(createSystemFont()),
|
|
25
|
+
body: pinFontToPx(createSystemFont(v5Scale)),
|
|
22
26
|
heading: pinFontToPx(createSystemFont({
|
|
27
|
+
...v5Scale,
|
|
23
28
|
font: { weight: {
|
|
24
29
|
0: "600",
|
|
25
30
|
6: "700",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v5-fonts.native.js","names":[],"sources":["esm/v5-fonts.native.js"],"sourcesContent":["import { createSystemFont } from \"@tamagui/create-system-font\";\n\nvar isNative = true;\nvar headingLineHeight = function(size) {\n\treturn Math.round(isNative ? size * 1.2 : size * 1.12 + 5);\n};\nvar toPxScale = function(obj) {\n\treturn Object.fromEntries(Object.entries(obj).map(function(param) {\n\t\tvar [k, v] = param;\n\t\treturn [k, typeof v === \"number\" ? `${v}px` : v];\n\t}));\n};\nvar pinFontToPx = function(font) {\n\treturn {\n\t\t...font,\n\t\tsize: toPxScale(font.size),\n\t\t...font.lineHeight ? { lineHeight: toPxScale(font.lineHeight) } : null\n\t};\n};\nvar fonts = {\n\tbody: pinFontToPx(createSystemFont()),\n\theading: pinFontToPx(createSystemFont({\n\t\tfont: { weight: {\n\t\t\t0: \"600\",\n\t\t\t6: \"700\",\n\t\t\t9: \"800\"\n\t\t} },\n\t\tsizeLineHeight: headingLineHeight\n\t}))\n};\n\nexport { createSystemFont, fonts };"],"mappings":";;;AAEA,IAAI,WAAW;AACf,IAAI,oBAAoB,SAAS,MAAM;CACtC,OAAO,KAAK,MAAM,WAAW,OAAO,MAAM,OAAO,OAAO,CAAC;AAC1D;AACA,IAAI,YAAY,SAAS,KAAK;CAC7B,OAAO,OAAO,YAAY,OAAO,QAAQ,GAAG,CAAC,CAAC,IAAI,SAAS,OAAO;EACjE,IAAI,CAAC,GAAG,KAAK;EACb,OAAO,CAAC,GAAG,OAAO,MAAM,WAAW,GAAG,EAAE,MAAM,CAAC;CAChD,CAAC,CAAC;AACH;AACA,IAAI,cAAc,SAAS,MAAM;CAChC,OAAO;EACN,GAAG;EACH,MAAM,UAAU,KAAK,IAAI;EACzB,GAAG,KAAK,aAAa,EAAE,YAAY,UAAU,KAAK,UAAU,EAAE,IAAI;CACnE;AACD;AACA,IAAI,QAAQ;CACX,MAAM,YAAY,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"v5-fonts.native.js","names":[],"sources":["esm/v5-fonts.native.js"],"sourcesContent":["import { createSystemFont, v5SystemFontLineHeight, v5SystemFontSizes } from \"@tamagui/create-system-font\";\n\nvar isNative = true;\nvar headingLineHeight = function(size) {\n\treturn Math.round(isNative ? size * 1.2 : size * 1.12 + 5);\n};\nvar v5Scale = {\n\tsizes: v5SystemFontSizes,\n\tsizeLineHeight: v5SystemFontLineHeight\n};\nvar toPxScale = function(obj) {\n\treturn Object.fromEntries(Object.entries(obj).map(function(param) {\n\t\tvar [k, v] = param;\n\t\treturn [k, typeof v === \"number\" ? `${v}px` : v];\n\t}));\n};\nvar pinFontToPx = function(font) {\n\treturn {\n\t\t...font,\n\t\tsize: toPxScale(font.size),\n\t\t...font.lineHeight ? { lineHeight: toPxScale(font.lineHeight) } : null\n\t};\n};\nvar fonts = {\n\tbody: pinFontToPx(createSystemFont(v5Scale)),\n\theading: pinFontToPx(createSystemFont({\n\t\t...v5Scale,\n\t\tfont: { weight: {\n\t\t\t0: \"600\",\n\t\t\t6: \"700\",\n\t\t\t9: \"800\"\n\t\t} },\n\t\tsizeLineHeight: headingLineHeight\n\t}))\n};\n\nexport { createSystemFont, fonts };"],"mappings":";;;AAEA,IAAI,WAAW;AACf,IAAI,oBAAoB,SAAS,MAAM;CACtC,OAAO,KAAK,MAAM,WAAW,OAAO,MAAM,OAAO,OAAO,CAAC;AAC1D;AACA,IAAI,UAAU;CACb,OAAO;CACP,gBAAgB;AACjB;AACA,IAAI,YAAY,SAAS,KAAK;CAC7B,OAAO,OAAO,YAAY,OAAO,QAAQ,GAAG,CAAC,CAAC,IAAI,SAAS,OAAO;EACjE,IAAI,CAAC,GAAG,KAAK;EACb,OAAO,CAAC,GAAG,OAAO,MAAM,WAAW,GAAG,EAAE,MAAM,CAAC;CAChD,CAAC,CAAC;AACH;AACA,IAAI,cAAc,SAAS,MAAM;CAChC,OAAO;EACN,GAAG;EACH,MAAM,UAAU,KAAK,IAAI;EACzB,GAAG,KAAK,aAAa,EAAE,YAAY,UAAU,KAAK,UAAU,EAAE,IAAI;CACnE;AACD;AACA,IAAI,QAAQ;CACX,MAAM,YAAY,iBAAiB,OAAO,CAAC;CAC3C,SAAS,YAAY,iBAAiB;EACrC,GAAG;EACH,MAAM,EAAE,QAAQ;GACf,GAAG;GACH,GAAG;GACH,GAAG;EACJ,EAAE;EACF,gBAAgB;CACjB,CAAC,CAAC;AACH"}
|
package/dist/esm/v6-base.mjs
CHANGED
|
@@ -1,14 +1,101 @@
|
|
|
1
1
|
import { shorthands } from "@tamagui/shorthands/v6";
|
|
2
|
+
import { defaultSizing } from "@tamagui/web";
|
|
3
|
+
import { copyAuthoredThemeScheme } from "@tamagui/web/internal-runtime";
|
|
2
4
|
import { createSystemFont, fonts as fonts$1 } from "./fonts.mjs";
|
|
3
5
|
import { breakpoints, media, media as media2, mediaQueryDefaultActive } from "./media.mjs";
|
|
4
|
-
import {
|
|
6
|
+
import { settings as settings$1 } from "./settings.mjs";
|
|
5
7
|
import { tailwindFontSize, tailwindLineHeight, tailwindRadius, tailwindSize, tailwindSource, tailwindSpace } from "./v6-tailwind-scales.generated.mjs";
|
|
6
8
|
import { v6RemovedThemeNames, v6ThemeNameReplacements } from "@tamagui/style-grammar/v6-themes";
|
|
7
9
|
import { toV6Themes } from "./v6-themes.mjs";
|
|
8
10
|
|
|
11
|
+
const tailwindContainerSize = {
|
|
12
|
+
"3xs": 256,
|
|
13
|
+
"2xs": 288,
|
|
14
|
+
xs: 320,
|
|
15
|
+
sm: 384,
|
|
16
|
+
md: 448,
|
|
17
|
+
lg: 512,
|
|
18
|
+
xl: 576,
|
|
19
|
+
"2xl": 672,
|
|
20
|
+
"3xl": 768,
|
|
21
|
+
"4xl": 896,
|
|
22
|
+
"5xl": 1024,
|
|
23
|
+
"6xl": 1152,
|
|
24
|
+
"7xl": 1280
|
|
25
|
+
};
|
|
9
26
|
const tokens = {
|
|
10
27
|
space: tailwindSpace,
|
|
11
28
|
size: tailwindSize,
|
|
29
|
+
width: {
|
|
30
|
+
...tailwindSize,
|
|
31
|
+
...tailwindContainerSize
|
|
32
|
+
},
|
|
33
|
+
minWidth: {
|
|
34
|
+
...tailwindSize,
|
|
35
|
+
...tailwindContainerSize
|
|
36
|
+
},
|
|
37
|
+
maxWidth: {
|
|
38
|
+
...tailwindSize,
|
|
39
|
+
...tailwindContainerSize
|
|
40
|
+
},
|
|
41
|
+
inlineSize: {
|
|
42
|
+
...tailwindSize,
|
|
43
|
+
...tailwindContainerSize
|
|
44
|
+
},
|
|
45
|
+
minInlineSize: {
|
|
46
|
+
...tailwindSize,
|
|
47
|
+
...tailwindContainerSize
|
|
48
|
+
},
|
|
49
|
+
maxInlineSize: {
|
|
50
|
+
...tailwindSize,
|
|
51
|
+
...tailwindContainerSize
|
|
52
|
+
},
|
|
53
|
+
flexBasis: {
|
|
54
|
+
...tailwindSize,
|
|
55
|
+
...tailwindContainerSize
|
|
56
|
+
},
|
|
57
|
+
borderWidth: {
|
|
58
|
+
0: 0,
|
|
59
|
+
1: 1,
|
|
60
|
+
2: 2,
|
|
61
|
+
4: 4,
|
|
62
|
+
8: 8
|
|
63
|
+
},
|
|
64
|
+
outlineWidth: {
|
|
65
|
+
0: 0,
|
|
66
|
+
1: 1,
|
|
67
|
+
2: 2,
|
|
68
|
+
4: 4,
|
|
69
|
+
8: 8
|
|
70
|
+
},
|
|
71
|
+
outlineOffset: {
|
|
72
|
+
0: 0,
|
|
73
|
+
1: 1,
|
|
74
|
+
2: 2,
|
|
75
|
+
4: 4,
|
|
76
|
+
8: 8,
|
|
77
|
+
"-1": -1,
|
|
78
|
+
"-2": -2,
|
|
79
|
+
"-4": -4,
|
|
80
|
+
"-8": -8
|
|
81
|
+
},
|
|
82
|
+
boxShadow: {
|
|
83
|
+
"2xs": "0 1px rgb(0 0 0 / 0.05)",
|
|
84
|
+
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
85
|
+
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
86
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
87
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
88
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
89
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
90
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
91
|
+
},
|
|
92
|
+
perspective: {
|
|
93
|
+
dramatic: 100,
|
|
94
|
+
near: 300,
|
|
95
|
+
normal: 500,
|
|
96
|
+
midrange: 800,
|
|
97
|
+
distant: 1200
|
|
98
|
+
},
|
|
12
99
|
radius: {
|
|
13
100
|
0: 0,
|
|
14
101
|
1: 3,
|
|
@@ -43,7 +130,14 @@ const fonts = {
|
|
|
43
130
|
body: withTailwindTypeScale(fonts$1.body),
|
|
44
131
|
heading: withTailwindTypeScale(fonts$1.heading)
|
|
45
132
|
};
|
|
46
|
-
const
|
|
133
|
+
const selectionStyles = (theme) => theme["color-5"] ? {
|
|
134
|
+
backgroundColor: theme["color-5"],
|
|
135
|
+
color: theme["color-11"]
|
|
136
|
+
} : null;
|
|
137
|
+
const settings = {
|
|
138
|
+
...settings$1,
|
|
139
|
+
selectionStyles
|
|
140
|
+
};
|
|
47
141
|
function themesWithColorScales(themes, scales) {
|
|
48
142
|
const light = {};
|
|
49
143
|
const dark = {};
|
|
@@ -53,30 +147,30 @@ function themesWithColorScales(themes, scales) {
|
|
|
53
147
|
throw new Error(`color scale "${name}" needs exactly 12 light and 12 dark values, got ${scale.light.length}/${scale.dark.length}`);
|
|
54
148
|
}
|
|
55
149
|
scale.light.forEach((value, index) => {
|
|
56
|
-
light[`${name}
|
|
150
|
+
light[`${name}-${index + 1}`] = value;
|
|
57
151
|
});
|
|
58
152
|
scale.dark.forEach((value, index) => {
|
|
59
|
-
dark[`${name}
|
|
153
|
+
dark[`${name}-${index + 1}`] = value;
|
|
60
154
|
});
|
|
61
155
|
}
|
|
62
156
|
return {
|
|
63
157
|
...themes,
|
|
64
|
-
light: {
|
|
158
|
+
light: copyAuthoredThemeScheme({
|
|
65
159
|
...themes.light,
|
|
66
160
|
...light
|
|
67
|
-
},
|
|
68
|
-
dark: {
|
|
161
|
+
}, themes.light),
|
|
162
|
+
dark: copyAuthoredThemeScheme({
|
|
69
163
|
...themes.dark,
|
|
70
164
|
...dark
|
|
71
|
-
}
|
|
165
|
+
}, themes.dark)
|
|
72
166
|
};
|
|
73
167
|
}
|
|
74
168
|
const alignedConfig = {
|
|
75
169
|
media,
|
|
76
170
|
shorthands,
|
|
77
171
|
fonts,
|
|
78
|
-
|
|
79
|
-
|
|
172
|
+
settings,
|
|
173
|
+
sizing: defaultSizing
|
|
80
174
|
};
|
|
81
175
|
function createV6Config(colors) {
|
|
82
176
|
return {
|
|
@@ -89,5 +183,5 @@ function createV6Config(colors) {
|
|
|
89
183
|
};
|
|
90
184
|
}
|
|
91
185
|
|
|
92
|
-
export { breakpoints, createSystemFont, createV6Config, fonts, media2 as media, mediaQueryDefaultActive, selectionStyles, settings, shorthands, tailwindSource, toV6Themes, tokens, v6RemovedThemeNames, v6ThemeNameReplacements };
|
|
186
|
+
export { breakpoints, createSystemFont, createV6Config, defaultSizing, fonts, media2 as media, mediaQueryDefaultActive, selectionStyles, settings, shorthands, tailwindSource, toV6Themes, tokens, v6RemovedThemeNames, v6ThemeNameReplacements, withTailwindTypeScale };
|
|
93
187
|
//# sourceMappingURL=v6-base.mjs.map
|
package/dist/esm/v6-base.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-base.js","names":["systemFonts","baseSettings"],"sources":["esm/v6-base.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v6\";\nimport { fonts as systemFonts } from \"./fonts\";\nimport { media } from \"./media\";\nimport {
|
|
1
|
+
{"version":3,"file":"v6-base.js","names":["systemFonts","baseSettings"],"sources":["esm/v6-base.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v6\";\nimport { defaultSizing } from \"@tamagui/web\";\nimport { copyAuthoredThemeScheme } from \"@tamagui/web/internal-runtime\";\nimport { fonts as systemFonts } from \"./fonts\";\nimport { media } from \"./media\";\nimport { settings as baseSettings } from \"./settings\";\nimport {\n tailwindFontSize,\n tailwindLineHeight,\n tailwindRadius,\n tailwindSize,\n tailwindSpace\n} from \"./v6-tailwind-scales.generated\";\nimport {\n v6RemovedThemeNames,\n v6ThemeNameReplacements\n} from \"@tamagui/style-grammar/v6-themes\";\nimport { createSystemFont } from \"./fonts\";\nimport { breakpoints, media as media2, mediaQueryDefaultActive } from \"./media\";\nimport { tailwindSource } from \"./v6-tailwind-scales.generated\";\nimport { toV6Themes } from \"./v6-themes\";\nconst tailwindContainerSize = {\n \"3xs\": 256,\n \"2xs\": 288,\n xs: 320,\n sm: 384,\n md: 448,\n lg: 512,\n xl: 576,\n \"2xl\": 672,\n \"3xl\": 768,\n \"4xl\": 896,\n \"5xl\": 1024,\n \"6xl\": 1152,\n \"7xl\": 1280\n};\nconst tokens = {\n space: tailwindSpace,\n size: tailwindSize,\n width: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n minWidth: { ...tailwindSize, ...tailwindContainerSize },\n maxWidth: { ...tailwindSize, ...tailwindContainerSize },\n inlineSize: { ...tailwindSize, ...tailwindContainerSize },\n minInlineSize: { ...tailwindSize, ...tailwindContainerSize },\n maxInlineSize: { ...tailwindSize, ...tailwindContainerSize },\n flexBasis: { ...tailwindSize, ...tailwindContainerSize },\n borderWidth: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8\n },\n outlineWidth: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8\n },\n outlineOffset: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8,\n \"-1\": -1,\n \"-2\": -2,\n \"-4\": -4,\n \"-8\": -8\n },\n boxShadow: {\n \"2xs\": \"0 1px rgb(0 0 0 / 0.05)\",\n xs: \"0 1px 2px 0 rgb(0 0 0 / 0.05)\",\n sm: \"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)\",\n md: \"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)\",\n lg: \"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)\",\n xl: \"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)\",\n \"2xl\": \"0 25px 50px -12px rgb(0 0 0 / 0.25)\",\n inner: \"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)\"\n },\n perspective: {\n dramatic: 100,\n near: 300,\n normal: 500,\n midrange: 800,\n distant: 1200\n },\n 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 ...tailwindRadius\n }\n};\nfunction withTailwindTypeScale(font) {\n return {\n ...font,\n size: { ...font.size, ...tailwindFontSize },\n lineHeight: { ...font.lineHeight, ...tailwindLineHeight }\n };\n}\nconst fonts = {\n body: withTailwindTypeScale(systemFonts.body),\n heading: withTailwindTypeScale(systemFonts.heading)\n};\nconst selectionStyles = (theme) => theme[\"color-5\"] ? {\n backgroundColor: theme[\"color-5\"],\n color: theme[\"color-11\"]\n} : null;\nconst settings = {\n ...baseSettings,\n selectionStyles\n};\nfunction themesWithColorScales(themes, scales) {\n const light = {};\n const dark = {};\n for (const name in scales) {\n const scale = scales[name];\n if (scale.light.length !== 12 || scale.dark.length !== 12) {\n throw new Error(\n `color scale \"${name}\" needs exactly 12 light and 12 dark values, got ${scale.light.length}/${scale.dark.length}`\n );\n }\n scale.light.forEach((value, index) => {\n light[`${name}-${index + 1}`] = value;\n });\n scale.dark.forEach((value, index) => {\n dark[`${name}-${index + 1}`] = value;\n });\n }\n return {\n ...themes,\n light: copyAuthoredThemeScheme({ ...themes.light, ...light }, themes.light),\n dark: copyAuthoredThemeScheme({ ...themes.dark, ...dark }, themes.dark)\n };\n}\nconst alignedConfig = {\n media,\n shorthands,\n fonts,\n settings,\n sizing: defaultSizing\n};\nfunction createV6Config(colors) {\n return {\n ...alignedConfig,\n themes: colors.scales ? themesWithColorScales(colors.themes, colors.scales) : colors.themes,\n tokens: colors.colorTokens ? { ...tokens, color: colors.colorTokens } : tokens\n };\n}\nexport {\n breakpoints,\n createSystemFont,\n createV6Config,\n defaultSizing,\n fonts,\n media2 as media,\n mediaQueryDefaultActive,\n selectionStyles,\n settings,\n shorthands,\n tailwindSource,\n toV6Themes,\n tokens,\n v6RemovedThemeNames,\n v6ThemeNameReplacements,\n withTailwindTypeScale\n};\n//# sourceMappingURL=v6-base.js.map\n"],"mappings":";;;;;;;;;;;AAqBA,MAAM,wBAAwB;CAC5B,OAAO;CACP,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,MAAM,SAAS;CACb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M,aAAa;CACpD,iBAAiB,MAAM;CACvB,OAAO,MAAM;AACf,IAAI;AACJ,MAAM,WAAW;CACf,GAAGC;CACH;AACF;AACA,SAAS,sBAAsB,QAAQ,QAAQ;CAC7C,MAAM,QAAQ,CAAC;CACf,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,QAAQ,QAAQ;EACzB,MAAM,QAAQ,OAAO;EACrB,IAAI,MAAM,MAAM,WAAW,MAAM,MAAM,KAAK,WAAW,IAAI;GACzD,MAAM,IAAI,MACR,gBAAgB,KAAK,mDAAmD,MAAM,MAAM,OAAO,GAAG,MAAM,KAAK,QAC3G;EACF;EACA,MAAM,MAAM,SAAS,OAAO,UAAU;GACpC,MAAM,GAAG,KAAK,GAAG,QAAQ,OAAO;EAClC,CAAC;EACD,MAAM,KAAK,SAAS,OAAO,UAAU;GACnC,KAAK,GAAG,KAAK,GAAG,QAAQ,OAAO;EACjC,CAAC;CACH;CACA,OAAO;EACL,GAAG;EACH,OAAO,wBAAwB;GAAE,GAAG,OAAO;GAAO,GAAG;EAAM,GAAG,OAAO,KAAK;EAC1E,MAAM,wBAAwB;GAAE,GAAG,OAAO;GAAM,GAAG;EAAK,GAAG,OAAO,IAAI;CACxE;AACF;AACA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA,QAAQ;AACV;AACA,SAAS,eAAe,QAAQ;CAC9B,OAAO;EACL,GAAG;EACH,QAAQ,OAAO,SAAS,sBAAsB,OAAO,QAAQ,OAAO,MAAM,IAAI,OAAO;EACrF,QAAQ,OAAO,cAAc;GAAE,GAAG;GAAQ,OAAO,OAAO;EAAY,IAAI;CAC1E;AACF"}
|
|
@@ -1,14 +1,101 @@
|
|
|
1
1
|
import { shorthands } from "@tamagui/shorthands/v6";
|
|
2
|
+
import { defaultSizing } from "@tamagui/web";
|
|
3
|
+
import { copyAuthoredThemeScheme } from "@tamagui/web/internal-runtime";
|
|
2
4
|
import { createSystemFont, fonts as fonts$1 } from "./fonts.native.js";
|
|
3
5
|
import { breakpoints, media, media as media2, mediaQueryDefaultActive } from "./media.native.js";
|
|
4
|
-
import {
|
|
6
|
+
import { settings as settings$1 } from "./settings.native.js";
|
|
5
7
|
import { tailwindFontSize, tailwindLineHeight, tailwindRadius, tailwindSize, tailwindSource, tailwindSpace } from "./v6-tailwind-scales.generated.native.js";
|
|
6
8
|
import { v6RemovedThemeNames, v6ThemeNameReplacements } from "@tamagui/style-grammar/v6-themes";
|
|
7
9
|
import { toV6Themes } from "./v6-themes.native.js";
|
|
8
10
|
|
|
11
|
+
var tailwindContainerSize = {
|
|
12
|
+
"3xs": 256,
|
|
13
|
+
"2xs": 288,
|
|
14
|
+
xs: 320,
|
|
15
|
+
sm: 384,
|
|
16
|
+
md: 448,
|
|
17
|
+
lg: 512,
|
|
18
|
+
xl: 576,
|
|
19
|
+
"2xl": 672,
|
|
20
|
+
"3xl": 768,
|
|
21
|
+
"4xl": 896,
|
|
22
|
+
"5xl": 1024,
|
|
23
|
+
"6xl": 1152,
|
|
24
|
+
"7xl": 1280
|
|
25
|
+
};
|
|
9
26
|
var tokens = {
|
|
10
27
|
space: tailwindSpace,
|
|
11
28
|
size: tailwindSize,
|
|
29
|
+
width: {
|
|
30
|
+
...tailwindSize,
|
|
31
|
+
...tailwindContainerSize
|
|
32
|
+
},
|
|
33
|
+
minWidth: {
|
|
34
|
+
...tailwindSize,
|
|
35
|
+
...tailwindContainerSize
|
|
36
|
+
},
|
|
37
|
+
maxWidth: {
|
|
38
|
+
...tailwindSize,
|
|
39
|
+
...tailwindContainerSize
|
|
40
|
+
},
|
|
41
|
+
inlineSize: {
|
|
42
|
+
...tailwindSize,
|
|
43
|
+
...tailwindContainerSize
|
|
44
|
+
},
|
|
45
|
+
minInlineSize: {
|
|
46
|
+
...tailwindSize,
|
|
47
|
+
...tailwindContainerSize
|
|
48
|
+
},
|
|
49
|
+
maxInlineSize: {
|
|
50
|
+
...tailwindSize,
|
|
51
|
+
...tailwindContainerSize
|
|
52
|
+
},
|
|
53
|
+
flexBasis: {
|
|
54
|
+
...tailwindSize,
|
|
55
|
+
...tailwindContainerSize
|
|
56
|
+
},
|
|
57
|
+
borderWidth: {
|
|
58
|
+
0: 0,
|
|
59
|
+
1: 1,
|
|
60
|
+
2: 2,
|
|
61
|
+
4: 4,
|
|
62
|
+
8: 8
|
|
63
|
+
},
|
|
64
|
+
outlineWidth: {
|
|
65
|
+
0: 0,
|
|
66
|
+
1: 1,
|
|
67
|
+
2: 2,
|
|
68
|
+
4: 4,
|
|
69
|
+
8: 8
|
|
70
|
+
},
|
|
71
|
+
outlineOffset: {
|
|
72
|
+
0: 0,
|
|
73
|
+
1: 1,
|
|
74
|
+
2: 2,
|
|
75
|
+
4: 4,
|
|
76
|
+
8: 8,
|
|
77
|
+
"-1": -1,
|
|
78
|
+
"-2": -2,
|
|
79
|
+
"-4": -4,
|
|
80
|
+
"-8": -8
|
|
81
|
+
},
|
|
82
|
+
boxShadow: {
|
|
83
|
+
"2xs": "0 1px rgb(0 0 0 / 0.05)",
|
|
84
|
+
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
85
|
+
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
86
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
87
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
88
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
89
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
90
|
+
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
91
|
+
},
|
|
92
|
+
perspective: {
|
|
93
|
+
dramatic: 100,
|
|
94
|
+
near: 300,
|
|
95
|
+
normal: 500,
|
|
96
|
+
midrange: 800,
|
|
97
|
+
distant: 1200
|
|
98
|
+
},
|
|
12
99
|
radius: {
|
|
13
100
|
0: 0,
|
|
14
101
|
1: 3,
|
|
@@ -43,7 +130,16 @@ var fonts = {
|
|
|
43
130
|
body: withTailwindTypeScale(fonts$1.body),
|
|
44
131
|
heading: withTailwindTypeScale(fonts$1.heading)
|
|
45
132
|
};
|
|
46
|
-
var
|
|
133
|
+
var selectionStyles = function(theme) {
|
|
134
|
+
return theme["color-5"] ? {
|
|
135
|
+
backgroundColor: theme["color-5"],
|
|
136
|
+
color: theme["color-11"]
|
|
137
|
+
} : null;
|
|
138
|
+
};
|
|
139
|
+
var settings = {
|
|
140
|
+
...settings$1,
|
|
141
|
+
selectionStyles
|
|
142
|
+
};
|
|
47
143
|
function themesWithColorScales(themes, scales) {
|
|
48
144
|
var _loop = function(name2) {
|
|
49
145
|
var scale = scales[name2];
|
|
@@ -51,10 +147,10 @@ function themesWithColorScales(themes, scales) {
|
|
|
51
147
|
throw new Error(`color scale "${name2}" needs exactly 12 light and 12 dark values, got ${scale.light.length}/${scale.dark.length}`);
|
|
52
148
|
}
|
|
53
149
|
scale.light.forEach(function(value, index) {
|
|
54
|
-
light[`${name2}
|
|
150
|
+
light[`${name2}-${index + 1}`] = value;
|
|
55
151
|
});
|
|
56
152
|
scale.dark.forEach(function(value, index) {
|
|
57
|
-
dark[`${name2}
|
|
153
|
+
dark[`${name2}-${index + 1}`] = value;
|
|
58
154
|
});
|
|
59
155
|
};
|
|
60
156
|
var light = {};
|
|
@@ -62,22 +158,22 @@ function themesWithColorScales(themes, scales) {
|
|
|
62
158
|
for (var name in scales) _loop(name);
|
|
63
159
|
return {
|
|
64
160
|
...themes,
|
|
65
|
-
light: {
|
|
161
|
+
light: copyAuthoredThemeScheme({
|
|
66
162
|
...themes.light,
|
|
67
163
|
...light
|
|
68
|
-
},
|
|
69
|
-
dark: {
|
|
164
|
+
}, themes.light),
|
|
165
|
+
dark: copyAuthoredThemeScheme({
|
|
70
166
|
...themes.dark,
|
|
71
167
|
...dark
|
|
72
|
-
}
|
|
168
|
+
}, themes.dark)
|
|
73
169
|
};
|
|
74
170
|
}
|
|
75
171
|
var alignedConfig = {
|
|
76
172
|
media,
|
|
77
173
|
shorthands,
|
|
78
174
|
fonts,
|
|
79
|
-
|
|
80
|
-
|
|
175
|
+
settings,
|
|
176
|
+
sizing: defaultSizing
|
|
81
177
|
};
|
|
82
178
|
function createV6Config(colors) {
|
|
83
179
|
return {
|
|
@@ -90,5 +186,5 @@ function createV6Config(colors) {
|
|
|
90
186
|
};
|
|
91
187
|
}
|
|
92
188
|
|
|
93
|
-
export { breakpoints, createSystemFont, createV6Config, fonts, media2 as media, mediaQueryDefaultActive, selectionStyles, settings, shorthands, tailwindSource, toV6Themes, tokens, v6RemovedThemeNames, v6ThemeNameReplacements };
|
|
189
|
+
export { breakpoints, createSystemFont, createV6Config, defaultSizing, fonts, media2 as media, mediaQueryDefaultActive, selectionStyles, settings, shorthands, tailwindSource, toV6Themes, tokens, v6RemovedThemeNames, v6ThemeNameReplacements, withTailwindTypeScale };
|
|
94
190
|
//# sourceMappingURL=v6-base.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-base.native.js","names":["systemFonts","baseSettings"],"sources":["esm/v6-base.native.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v6\";\nimport { fonts as systemFonts } from \"./fonts\";\nimport { media } from \"./media\";\nimport {
|
|
1
|
+
{"version":3,"file":"v6-base.native.js","names":["systemFonts","baseSettings"],"sources":["esm/v6-base.native.js"],"sourcesContent":["import { shorthands } from \"@tamagui/shorthands/v6\";\nimport { defaultSizing } from \"@tamagui/web\";\nimport { copyAuthoredThemeScheme } from \"@tamagui/web/internal-runtime\";\nimport { fonts as systemFonts } from \"./fonts\";\nimport { media } from \"./media\";\nimport { settings as baseSettings } from \"./settings\";\nimport { tailwindFontSize, tailwindLineHeight, tailwindRadius, tailwindSize, tailwindSpace } from \"./v6-tailwind-scales.generated\";\nimport { v6RemovedThemeNames, v6ThemeNameReplacements } from \"@tamagui/style-grammar/v6-themes\";\nimport { createSystemFont } from \"./fonts\";\nimport { breakpoints, media as media2, mediaQueryDefaultActive } from \"./media\";\nimport { tailwindSource } from \"./v6-tailwind-scales.generated\";\nimport { toV6Themes } from \"./v6-themes\";\nvar tailwindContainerSize = {\n \"3xs\": 256,\n \"2xs\": 288,\n xs: 320,\n sm: 384,\n md: 448,\n lg: 512,\n xl: 576,\n \"2xl\": 672,\n \"3xl\": 768,\n \"4xl\": 896,\n \"5xl\": 1024,\n \"6xl\": 1152,\n \"7xl\": 1280\n};\nvar tokens = {\n space: tailwindSpace,\n size: tailwindSize,\n width: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n minWidth: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n maxWidth: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n inlineSize: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n minInlineSize: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n maxInlineSize: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n flexBasis: {\n ...tailwindSize,\n ...tailwindContainerSize\n },\n borderWidth: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8\n },\n outlineWidth: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8\n },\n outlineOffset: {\n 0: 0,\n 1: 1,\n 2: 2,\n 4: 4,\n 8: 8,\n \"-1\": -1,\n \"-2\": -2,\n \"-4\": -4,\n \"-8\": -8\n },\n boxShadow: {\n \"2xs\": \"0 1px rgb(0 0 0 / 0.05)\",\n xs: \"0 1px 2px 0 rgb(0 0 0 / 0.05)\",\n sm: \"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)\",\n md: \"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)\",\n lg: \"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)\",\n xl: \"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)\",\n \"2xl\": \"0 25px 50px -12px rgb(0 0 0 / 0.25)\",\n inner: \"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)\"\n },\n perspective: {\n dramatic: 100,\n near: 300,\n normal: 500,\n midrange: 800,\n distant: 1200\n },\n 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 ...tailwindRadius\n }\n};\nfunction withTailwindTypeScale(font) {\n return {\n ...font,\n size: {\n ...font.size,\n ...tailwindFontSize\n },\n lineHeight: {\n ...font.lineHeight,\n ...tailwindLineHeight\n }\n };\n}\nvar fonts = {\n body: withTailwindTypeScale(systemFonts.body),\n heading: withTailwindTypeScale(systemFonts.heading)\n};\nvar selectionStyles = function(theme) {\n return theme[\"color-5\"] ? {\n backgroundColor: theme[\"color-5\"],\n color: theme[\"color-11\"]\n } : null;\n};\nvar settings = {\n ...baseSettings,\n selectionStyles\n};\nfunction themesWithColorScales(themes, scales) {\n var _loop = function(name2) {\n var scale = scales[name2];\n if (scale.light.length !== 12 || scale.dark.length !== 12) {\n throw new Error(`color scale \"${name2}\" needs exactly 12 light and 12 dark values, got ${scale.light.length}/${scale.dark.length}`);\n }\n scale.light.forEach(function(value, index) {\n light[`${name2}-${index + 1}`] = value;\n });\n scale.dark.forEach(function(value, index) {\n dark[`${name2}-${index + 1}`] = value;\n });\n };\n var light = {};\n var dark = {};\n for (var name in scales) _loop(name);\n return {\n ...themes,\n light: copyAuthoredThemeScheme({\n ...themes.light,\n ...light\n }, themes.light),\n dark: copyAuthoredThemeScheme({\n ...themes.dark,\n ...dark\n }, themes.dark)\n };\n}\nvar alignedConfig = {\n media,\n shorthands,\n fonts,\n settings,\n sizing: defaultSizing\n};\nfunction createV6Config(colors) {\n return {\n ...alignedConfig,\n themes: colors.scales ? themesWithColorScales(colors.themes, colors.scales) : colors.themes,\n tokens: colors.colorTokens ? {\n ...tokens,\n color: colors.colorTokens\n } : tokens\n };\n}\nexport {\n breakpoints,\n createSystemFont,\n createV6Config,\n defaultSizing,\n fonts,\n media2 as media,\n mediaQueryDefaultActive,\n selectionStyles,\n settings,\n shorthands,\n tailwindSource,\n toV6Themes,\n tokens,\n v6RemovedThemeNames,\n v6ThemeNameReplacements,\n withTailwindTypeScale\n};\n//# sourceMappingURL=v6-base.js.map\n"],"mappings":";;;;;;;;;;;AAYA,IAAI,wBAAwB;CAC1B,OAAO;CACP,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,IAAI,SAAS;CACX,OAAO;CACP,MAAM;CACN,OAAO;EACL,GAAG;EACH,GAAG;CACL;CACA,UAAU;EACR,GAAG;EACH,GAAG;CACL;CACA,UAAU;EACR,GAAG;EACH,GAAG;CACL;CACA,YAAY;EACV,GAAG;EACH,GAAG;CACL;CACA,eAAe;EACb,GAAG;EACH,GAAG;CACL;CACA,eAAe;EACb,GAAG;EACH,GAAG;CACL;CACA,WAAW;EACT,GAAG;EACH,GAAG;CACL;CACA,aAAa;EACX,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;CACL;CACA,cAAc;EACZ,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;CACL;CACA,eAAe;EACb,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,MAAM,CAAC;EACP,MAAM,CAAC;EACP,MAAM,CAAC;EACP,MAAM,CAAC;CACT;CACA,WAAW;EACT,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;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O,wBAAwB;GAC7B,GAAG,OAAO;GACV,GAAG;EACL,GAAG,OAAO,KAAK;EACf,MAAM,wBAAwB;GAC5B,GAAG,OAAO;GACV,GAAG;EACL,GAAG,OAAO,IAAI;CAChB;AACF;AACA,IAAI,gBAAgB;CAClB;CACA;CACA;CACA;CACA,QAAQ;AACV;AACA,SAAS,eAAe,QAAQ;CAC9B,OAAO;EACL,GAAG;EACH,QAAQ,OAAO,SAAS,sBAAsB,OAAO,QAAQ,OAAO,MAAM,IAAI,OAAO;EACrF,QAAQ,OAAO,cAAc;GAC3B,GAAG;GACH,OAAO,OAAO;EAChB,IAAI;CACN;AACF"}
|
|
@@ -35,17 +35,25 @@ const tailwindSpace = {
|
|
|
35
35
|
"80": 320,
|
|
36
36
|
"96": 384,
|
|
37
37
|
px: 1,
|
|
38
|
+
"0.5": 2,
|
|
38
39
|
"0-5": 2,
|
|
40
|
+
"1.5": 6,
|
|
39
41
|
"1-5": 6,
|
|
42
|
+
"2.5": 10,
|
|
40
43
|
"2-5": 10,
|
|
44
|
+
"3.5": 14,
|
|
41
45
|
"3-5": 14,
|
|
42
46
|
"-px": -1,
|
|
47
|
+
"-0.5": -2,
|
|
43
48
|
"-0-5": -2,
|
|
44
49
|
"-1": -4,
|
|
50
|
+
"-1.5": -6,
|
|
45
51
|
"-1-5": -6,
|
|
46
52
|
"-2": -8,
|
|
53
|
+
"-2.5": -10,
|
|
47
54
|
"-2-5": -10,
|
|
48
55
|
"-3": -12,
|
|
56
|
+
"-3.5": -14,
|
|
49
57
|
"-3-5": -14,
|
|
50
58
|
"-4": -16,
|
|
51
59
|
"-5": -20,
|
|
@@ -106,9 +114,13 @@ const tailwindSize = {
|
|
|
106
114
|
"80": 320,
|
|
107
115
|
"96": 384,
|
|
108
116
|
px: 1,
|
|
117
|
+
"0.5": 2,
|
|
109
118
|
"0-5": 2,
|
|
119
|
+
"1.5": 6,
|
|
110
120
|
"1-5": 6,
|
|
121
|
+
"2.5": 10,
|
|
111
122
|
"2-5": 10,
|
|
123
|
+
"3.5": 14,
|
|
112
124
|
"3-5": 14
|
|
113
125
|
};
|
|
114
126
|
const tailwindRadius = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-tailwind-scales.generated.js","names":[],"sources":["esm/v6-tailwind-scales.generated.js"],"sourcesContent":["const tailwindSource = {\n tailwindVersion: \"4.3.0\",\n colorConverter: \"@csstools/color-helpers@6.1.0\",\n checksum: \"d8fc16823f2b4e64ea102d9888d8ca3d7aa97e4551d9cd5f17c0ec6d65bb0bf6\"\n};\nconst tailwindSpace = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0-5\": 2,\n \"1-5\": 6,\n \"2-5\": 10,\n \"3-5\": 14,\n \"-px\": -1,\n \"-0-5\": -2,\n \"-1\": -4,\n \"-1-5\": -6,\n \"-2\": -8,\n \"-2-5\": -10,\n \"-3\": -12,\n \"-3-5\": -14,\n \"-4\": -16,\n \"-5\": -20,\n \"-6\": -24,\n \"-7\": -28,\n \"-8\": -32,\n \"-9\": -36,\n \"-10\": -40,\n \"-11\": -44,\n \"-12\": -48,\n \"-14\": -56,\n \"-16\": -64,\n \"-20\": -80,\n \"-24\": -96,\n \"-28\": -112,\n \"-32\": -128,\n \"-36\": -144,\n \"-40\": -160,\n \"-44\": -176,\n \"-48\": -192,\n \"-52\": -208,\n \"-56\": -224,\n \"-60\": -240,\n \"-64\": -256,\n \"-72\": -288,\n \"-80\": -320,\n \"-96\": -384\n};\nconst tailwindSize = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0-5\": 2,\n \"1-5\": 6,\n \"2-5\": 10,\n \"3-5\": 14\n};\nconst tailwindRadius = {\n xs: 2,\n sm: 4,\n md: 6,\n lg: 8,\n xl: 12,\n \"2xl\": 16,\n \"3xl\": 24,\n \"4xl\": 32,\n full: 9999\n};\nconst tailwindFontSize = {\n xs: 12,\n sm: 14,\n base: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nconst tailwindLineHeight = {\n xs: 16,\n sm: 20,\n base: 24,\n lg: 28,\n xl: 28,\n \"2xl\": 32,\n \"3xl\": 36,\n \"4xl\": 40,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nexport {\n tailwindFontSize,\n tailwindLineHeight,\n tailwindRadius,\n tailwindSize,\n tailwindSource,\n tailwindSpace\n};\n//# sourceMappingURL=v6-tailwind-scales.generated.js.map\n"],"mappings":";AAAA,MAAM,iBAAiB;CACrB,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;AACZ;AACA,MAAM,gBAAgB;CACpB,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;C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,MAAM;CACN,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,MAAM,iBAAiB;CACrB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,MAAM;AACR;AACA,MAAM,mBAAmB;CACvB,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,MAAM,qBAAqB;CACzB,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"v6-tailwind-scales.generated.js","names":[],"sources":["esm/v6-tailwind-scales.generated.js"],"sourcesContent":["const tailwindSource = {\n tailwindVersion: \"4.3.0\",\n colorConverter: \"@csstools/color-helpers@6.1.0\",\n checksum: \"d8fc16823f2b4e64ea102d9888d8ca3d7aa97e4551d9cd5f17c0ec6d65bb0bf6\"\n};\nconst tailwindSpace = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0.5\": 2,\n \"0-5\": 2,\n \"1.5\": 6,\n \"1-5\": 6,\n \"2.5\": 10,\n \"2-5\": 10,\n \"3.5\": 14,\n \"3-5\": 14,\n \"-px\": -1,\n \"-0.5\": -2,\n \"-0-5\": -2,\n \"-1\": -4,\n \"-1.5\": -6,\n \"-1-5\": -6,\n \"-2\": -8,\n \"-2.5\": -10,\n \"-2-5\": -10,\n \"-3\": -12,\n \"-3.5\": -14,\n \"-3-5\": -14,\n \"-4\": -16,\n \"-5\": -20,\n \"-6\": -24,\n \"-7\": -28,\n \"-8\": -32,\n \"-9\": -36,\n \"-10\": -40,\n \"-11\": -44,\n \"-12\": -48,\n \"-14\": -56,\n \"-16\": -64,\n \"-20\": -80,\n \"-24\": -96,\n \"-28\": -112,\n \"-32\": -128,\n \"-36\": -144,\n \"-40\": -160,\n \"-44\": -176,\n \"-48\": -192,\n \"-52\": -208,\n \"-56\": -224,\n \"-60\": -240,\n \"-64\": -256,\n \"-72\": -288,\n \"-80\": -320,\n \"-96\": -384\n};\nconst tailwindSize = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0.5\": 2,\n \"0-5\": 2,\n \"1.5\": 6,\n \"1-5\": 6,\n \"2.5\": 10,\n \"2-5\": 10,\n \"3.5\": 14,\n \"3-5\": 14\n};\nconst tailwindRadius = {\n xs: 2,\n sm: 4,\n md: 6,\n lg: 8,\n xl: 12,\n \"2xl\": 16,\n \"3xl\": 24,\n \"4xl\": 32,\n full: 9999\n};\nconst tailwindFontSize = {\n xs: 12,\n sm: 14,\n base: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nconst tailwindLineHeight = {\n xs: 16,\n sm: 20,\n base: 24,\n lg: 28,\n xl: 28,\n \"2xl\": 32,\n \"3xl\": 36,\n \"4xl\": 40,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nexport {\n tailwindFontSize,\n tailwindLineHeight,\n tailwindRadius,\n tailwindSize,\n tailwindSource,\n tailwindSpace\n};\n//# sourceMappingURL=v6-tailwind-scales.generated.js.map\n"],"mappings":";AAAA,MAAM,iBAAiB;CACrB,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;AACZ;AACA,MAAM,gBAAgB;CACpB,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO,CAAC;CACR,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM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P,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT"}
|
|
@@ -35,17 +35,25 @@ var tailwindSpace = {
|
|
|
35
35
|
"80": 320,
|
|
36
36
|
"96": 384,
|
|
37
37
|
px: 1,
|
|
38
|
+
"0.5": 2,
|
|
38
39
|
"0-5": 2,
|
|
40
|
+
"1.5": 6,
|
|
39
41
|
"1-5": 6,
|
|
42
|
+
"2.5": 10,
|
|
40
43
|
"2-5": 10,
|
|
44
|
+
"3.5": 14,
|
|
41
45
|
"3-5": 14,
|
|
42
46
|
"-px": -1,
|
|
47
|
+
"-0.5": -2,
|
|
43
48
|
"-0-5": -2,
|
|
44
49
|
"-1": -4,
|
|
50
|
+
"-1.5": -6,
|
|
45
51
|
"-1-5": -6,
|
|
46
52
|
"-2": -8,
|
|
53
|
+
"-2.5": -10,
|
|
47
54
|
"-2-5": -10,
|
|
48
55
|
"-3": -12,
|
|
56
|
+
"-3.5": -14,
|
|
49
57
|
"-3-5": -14,
|
|
50
58
|
"-4": -16,
|
|
51
59
|
"-5": -20,
|
|
@@ -106,9 +114,13 @@ var tailwindSize = {
|
|
|
106
114
|
"80": 320,
|
|
107
115
|
"96": 384,
|
|
108
116
|
px: 1,
|
|
117
|
+
"0.5": 2,
|
|
109
118
|
"0-5": 2,
|
|
119
|
+
"1.5": 6,
|
|
110
120
|
"1-5": 6,
|
|
121
|
+
"2.5": 10,
|
|
111
122
|
"2-5": 10,
|
|
123
|
+
"3.5": 14,
|
|
112
124
|
"3-5": 14
|
|
113
125
|
};
|
|
114
126
|
var tailwindRadius = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-tailwind-scales.generated.native.js","names":[],"sources":["esm/v6-tailwind-scales.generated.native.js"],"sourcesContent":["var tailwindSource = {\n tailwindVersion: \"4.3.0\",\n colorConverter: \"@csstools/color-helpers@6.1.0\",\n checksum: \"d8fc16823f2b4e64ea102d9888d8ca3d7aa97e4551d9cd5f17c0ec6d65bb0bf6\"\n};\nvar tailwindSpace = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0-5\": 2,\n \"1-5\": 6,\n \"2-5\": 10,\n \"3-5\": 14,\n \"-px\": -1,\n \"-0-5\": -2,\n \"-1\": -4,\n \"-1-5\": -6,\n \"-2\": -8,\n \"-2-5\": -10,\n \"-3\": -12,\n \"-3-5\": -14,\n \"-4\": -16,\n \"-5\": -20,\n \"-6\": -24,\n \"-7\": -28,\n \"-8\": -32,\n \"-9\": -36,\n \"-10\": -40,\n \"-11\": -44,\n \"-12\": -48,\n \"-14\": -56,\n \"-16\": -64,\n \"-20\": -80,\n \"-24\": -96,\n \"-28\": -112,\n \"-32\": -128,\n \"-36\": -144,\n \"-40\": -160,\n \"-44\": -176,\n \"-48\": -192,\n \"-52\": -208,\n \"-56\": -224,\n \"-60\": -240,\n \"-64\": -256,\n \"-72\": -288,\n \"-80\": -320,\n \"-96\": -384\n};\nvar tailwindSize = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0-5\": 2,\n \"1-5\": 6,\n \"2-5\": 10,\n \"3-5\": 14\n};\nvar tailwindRadius = {\n xs: 2,\n sm: 4,\n md: 6,\n lg: 8,\n xl: 12,\n \"2xl\": 16,\n \"3xl\": 24,\n \"4xl\": 32,\n full: 9999\n};\nvar tailwindFontSize = {\n xs: 12,\n sm: 14,\n base: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nvar tailwindLineHeight = {\n xs: 16,\n sm: 20,\n base: 24,\n lg: 28,\n xl: 28,\n \"2xl\": 32,\n \"3xl\": 36,\n \"4xl\": 40,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nexport {\n tailwindFontSize,\n tailwindLineHeight,\n tailwindRadius,\n tailwindSize,\n tailwindSource,\n tailwindSpace\n};\n//# sourceMappingURL=v6-tailwind-scales.generated.js.map\n"],"mappings":";AAAA,IAAI,iBAAiB;CACnB,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;AACZ;AACA,IAAI,gBAAgB;CAClB,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO,C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AO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,IAAI,qBAAqB;CACvB,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"v6-tailwind-scales.generated.native.js","names":[],"sources":["esm/v6-tailwind-scales.generated.native.js"],"sourcesContent":["var tailwindSource = {\n tailwindVersion: \"4.3.0\",\n colorConverter: \"@csstools/color-helpers@6.1.0\",\n checksum: \"d8fc16823f2b4e64ea102d9888d8ca3d7aa97e4551d9cd5f17c0ec6d65bb0bf6\"\n};\nvar tailwindSpace = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0.5\": 2,\n \"0-5\": 2,\n \"1.5\": 6,\n \"1-5\": 6,\n \"2.5\": 10,\n \"2-5\": 10,\n \"3.5\": 14,\n \"3-5\": 14,\n \"-px\": -1,\n \"-0.5\": -2,\n \"-0-5\": -2,\n \"-1\": -4,\n \"-1.5\": -6,\n \"-1-5\": -6,\n \"-2\": -8,\n \"-2.5\": -10,\n \"-2-5\": -10,\n \"-3\": -12,\n \"-3.5\": -14,\n \"-3-5\": -14,\n \"-4\": -16,\n \"-5\": -20,\n \"-6\": -24,\n \"-7\": -28,\n \"-8\": -32,\n \"-9\": -36,\n \"-10\": -40,\n \"-11\": -44,\n \"-12\": -48,\n \"-14\": -56,\n \"-16\": -64,\n \"-20\": -80,\n \"-24\": -96,\n \"-28\": -112,\n \"-32\": -128,\n \"-36\": -144,\n \"-40\": -160,\n \"-44\": -176,\n \"-48\": -192,\n \"-52\": -208,\n \"-56\": -224,\n \"-60\": -240,\n \"-64\": -256,\n \"-72\": -288,\n \"-80\": -320,\n \"-96\": -384\n};\nvar tailwindSize = {\n \"0\": 0,\n \"1\": 4,\n \"2\": 8,\n \"3\": 12,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"28\": 112,\n \"32\": 128,\n \"36\": 144,\n \"40\": 160,\n \"44\": 176,\n \"48\": 192,\n \"52\": 208,\n \"56\": 224,\n \"60\": 240,\n \"64\": 256,\n \"72\": 288,\n \"80\": 320,\n \"96\": 384,\n px: 1,\n \"0.5\": 2,\n \"0-5\": 2,\n \"1.5\": 6,\n \"1-5\": 6,\n \"2.5\": 10,\n \"2-5\": 10,\n \"3.5\": 14,\n \"3-5\": 14\n};\nvar tailwindRadius = {\n xs: 2,\n sm: 4,\n md: 6,\n lg: 8,\n xl: 12,\n \"2xl\": 16,\n \"3xl\": 24,\n \"4xl\": 32,\n full: 9999\n};\nvar tailwindFontSize = {\n xs: 12,\n sm: 14,\n base: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nvar tailwindLineHeight = {\n xs: 16,\n sm: 20,\n base: 24,\n lg: 28,\n xl: 28,\n \"2xl\": 32,\n \"3xl\": 36,\n \"4xl\": 40,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128\n};\nexport {\n tailwindFontSize,\n tailwindLineHeight,\n tailwindRadius,\n tailwindSize,\n tailwindSource,\n tailwindSpace\n};\n//# sourceMappingURL=v6-tailwind-scales.generated.js.map\n"],"mappings":";AAAA,IAAI,iBAAiB;CACnB,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;AACZ;AACA,IAAI,gBAAgB;CAClB,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO,CAAC;CACR,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM,CAAC;CACP,MAAM,CAAC;CACP,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;CACR,OAAO,CAAC;AACV;AACA,IAAI,eAAe;CACjB,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,IAAI,iBAAiB;CACnB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,MAAM;AACR;AACA,IAAI,mBAAmB;CACrB,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT;AACA,IAAI,qBAAqB;CACvB,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACT"}
|
package/dist/esm/v6-themes.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { v6RemovedThemeNames, v6ThemeNameReplacements } from "@tamagui/style-grammar/v6-themes";
|
|
2
2
|
|
|
3
|
+
const trailingRamp = /^(.*[^-\d])(\d+)$/;
|
|
3
4
|
function toV6Themes(themes) {
|
|
4
5
|
const convertedThemes = /* @__PURE__ */ new WeakMap();
|
|
5
6
|
return Object.fromEntries(Object.entries(themes).map(([themeName, theme]) => {
|
|
6
7
|
let convertedTheme = convertedThemes.get(theme);
|
|
7
8
|
if (!convertedTheme) {
|
|
8
|
-
convertedTheme = Object.fromEntries(Object.entries(theme).filter(([name]) => !v6RemovedThemeNames.includes(name)).map(([name, value]) => [v6ThemeNameReplacements[name] ?? name, value]));
|
|
9
|
+
convertedTheme = Object.fromEntries(Object.entries(theme).filter(([name]) => !v6RemovedThemeNames.includes(name)).map(([name, value]) => [v6ThemeNameReplacements[name] ?? name.replace(trailingRamp, "$1-$2"), value]));
|
|
9
10
|
convertedThemes.set(theme, convertedTheme);
|
|
10
11
|
}
|
|
11
12
|
return [themeName, convertedTheme];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-themes.js","names":[],"sources":["esm/v6-themes.js"],"sourcesContent":["import {\n v6RemovedThemeNames,\n v6ThemeNameReplacements\n} from \"@tamagui/style-grammar/v6-themes\";\nfunction toV6Themes(themes) {\n const convertedThemes = /* @__PURE__ */ new WeakMap();\n return Object.fromEntries(\n Object.entries(themes).map(([themeName, theme]) => {\n let convertedTheme = convertedThemes.get(theme);\n if (!convertedTheme) {\n convertedTheme = Object.fromEntries(\n Object.entries(theme).filter(\n ([name]) => !v6RemovedThemeNames.includes(name)\n ).map(([name, value]) => [\n v6ThemeNameReplacements[name] ?? name,\n value\n ])\n );\n convertedThemes.set(theme, convertedTheme);\n }\n return [themeName, convertedTheme];\n })\n );\n}\nexport {\n toV6Themes\n};\n//# sourceMappingURL=v6-themes.js.map\n"],"mappings":";;;AAIA,SAAS,WAAW,QAAQ;CAC1B,MAAM,kCAAkC,IAAI,QAAQ;CACpD,OAAO,OAAO,YACZ,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,WAAW;EACjD,IAAI,iBAAiB,gBAAgB,IAAI,KAAK;EAC9C,IAAI,CAAC,gBAAgB;GACnB,iBAAiB,OAAO,YACtB,OAAO,QAAQ,KAAK,CAAC,CAAC,QACnB,CAAC,UAAU,CAAC,oBAAoB,SAAS,IAAI,CAChD,CAAC,CAAC,KAAK,CAAC,MAAM,WAAW,CACvB,wBAAwB,SAAS,
|
|
1
|
+
{"version":3,"file":"v6-themes.js","names":[],"sources":["esm/v6-themes.js"],"sourcesContent":["import {\n v6RemovedThemeNames,\n v6ThemeNameReplacements\n} from \"@tamagui/style-grammar/v6-themes\";\nconst trailingRamp = /^(.*[^-\\d])(\\d+)$/;\nfunction toV6Themes(themes) {\n const convertedThemes = /* @__PURE__ */ new WeakMap();\n return Object.fromEntries(\n Object.entries(themes).map(([themeName, theme]) => {\n let convertedTheme = convertedThemes.get(theme);\n if (!convertedTheme) {\n convertedTheme = Object.fromEntries(\n Object.entries(theme).filter(\n ([name]) => !v6RemovedThemeNames.includes(name)\n ).map(([name, value]) => [\n v6ThemeNameReplacements[name] ?? name.replace(trailingRamp, \"$1-$2\"),\n value\n ])\n );\n convertedThemes.set(theme, convertedTheme);\n }\n return [themeName, convertedTheme];\n })\n );\n}\nexport {\n toV6Themes\n};\n//# sourceMappingURL=v6-themes.js.map\n"],"mappings":";;;AAIA,MAAM,eAAe;AACrB,SAAS,WAAW,QAAQ;CAC1B,MAAM,kCAAkC,IAAI,QAAQ;CACpD,OAAO,OAAO,YACZ,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,WAAW;EACjD,IAAI,iBAAiB,gBAAgB,IAAI,KAAK;EAC9C,IAAI,CAAC,gBAAgB;GACnB,iBAAiB,OAAO,YACtB,OAAO,QAAQ,KAAK,CAAC,CAAC,QACnB,CAAC,UAAU,CAAC,oBAAoB,SAAS,IAAI,CAChD,CAAC,CAAC,KAAK,CAAC,MAAM,WAAW,CACvB,wBAAwB,SAAS,KAAK,QAAQ,cAAc,OAAO,GACnE,KACF,CAAC,CACH;GACA,gBAAgB,IAAI,OAAO,cAAc;EAC3C;EACA,OAAO,CAAC,WAAW,cAAc;CACnC,CAAC,CACH;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { v6RemovedThemeNames, v6ThemeNameReplacements } from "@tamagui/style-grammar/v6-themes";
|
|
2
2
|
|
|
3
|
+
var trailingRamp = /^(.*[^-\d])(\d+)$/;
|
|
3
4
|
function toV6Themes(themes) {
|
|
4
5
|
var convertedThemes = /* @__PURE__ */ new WeakMap();
|
|
5
6
|
return Object.fromEntries(Object.entries(themes).map(function(param) {
|
|
@@ -12,7 +13,7 @@ function toV6Themes(themes) {
|
|
|
12
13
|
}).map(function(param2) {
|
|
13
14
|
var [name, value] = param2;
|
|
14
15
|
var _v6ThemeNameReplacements_name;
|
|
15
|
-
return [(_v6ThemeNameReplacements_name = v6ThemeNameReplacements[name]) !== null && _v6ThemeNameReplacements_name !== void 0 ? _v6ThemeNameReplacements_name : name, value];
|
|
16
|
+
return [(_v6ThemeNameReplacements_name = v6ThemeNameReplacements[name]) !== null && _v6ThemeNameReplacements_name !== void 0 ? _v6ThemeNameReplacements_name : name.replace(trailingRamp, "$1-$2"), value];
|
|
16
17
|
}));
|
|
17
18
|
convertedThemes.set(theme, convertedTheme);
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v6-themes.native.js","names":[],"sources":["esm/v6-themes.native.js"],"sourcesContent":["import { v6RemovedThemeNames, v6ThemeNameReplacements } from \"@tamagui/style-grammar/v6-themes\";\nfunction toV6Themes(themes) {\n var convertedThemes = /* @__PURE__ */ new WeakMap();\n return Object.fromEntries(Object.entries(themes).map(function(param) {\n var [themeName, theme] = param;\n var convertedTheme = convertedThemes.get(theme);\n if (!convertedTheme) {\n convertedTheme = Object.fromEntries(Object.entries(theme).filter(function(param2) {\n var [name] = param2;\n return !v6RemovedThemeNames.includes(name);\n }).map(function(param2) {\n var [name, value] = param2;\n var _v6ThemeNameReplacements_name;\n return [\n (_v6ThemeNameReplacements_name = v6ThemeNameReplacements[name]) !== null && _v6ThemeNameReplacements_name !== void 0 ? _v6ThemeNameReplacements_name : name,\n value\n ];\n }));\n convertedThemes.set(theme, convertedTheme);\n }\n return [\n themeName,\n convertedTheme\n ];\n }));\n}\nexport {\n toV6Themes\n};\n//# sourceMappingURL=v6-themes.js.map\n"],"mappings":";;;AACA,SAAS,WAAW,QAAQ;CAC1B,IAAI,kCAAkC,IAAI,QAAQ;CAClD,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,CAAC,CAAC,IAAI,SAAS,OAAO;EACnE,IAAI,CAAC,WAAW,SAAS;EACzB,IAAI,iBAAiB,gBAAgB,IAAI,KAAK;EAC9C,IAAI,CAAC,gBAAgB;GACnB,iBAAiB,OAAO,YAAY,OAAO,QAAQ,KAAK,CAAC,CAAC,OAAO,SAAS,QAAQ;IAChF,IAAI,CAAC,QAAQ;IACb,OAAO,CAAC,oBAAoB,SAAS,IAAI;GAC3C,CAAC,CAAC,CAAC,IAAI,SAAS,QAAQ;IACtB,IAAI,CAAC,MAAM,SAAS;IACpB,IAAI;IACJ,OAAO,EACJ,gCAAgC,wBAAwB,WAAW,QAAQ,kCAAkC,KAAK,IAAI,gCAAgC,
|
|
1
|
+
{"version":3,"file":"v6-themes.native.js","names":[],"sources":["esm/v6-themes.native.js"],"sourcesContent":["import { v6RemovedThemeNames, v6ThemeNameReplacements } from \"@tamagui/style-grammar/v6-themes\";\nvar trailingRamp = /^(.*[^-\\d])(\\d+)$/;\nfunction toV6Themes(themes) {\n var convertedThemes = /* @__PURE__ */ new WeakMap();\n return Object.fromEntries(Object.entries(themes).map(function(param) {\n var [themeName, theme] = param;\n var convertedTheme = convertedThemes.get(theme);\n if (!convertedTheme) {\n convertedTheme = Object.fromEntries(Object.entries(theme).filter(function(param2) {\n var [name] = param2;\n return !v6RemovedThemeNames.includes(name);\n }).map(function(param2) {\n var [name, value] = param2;\n var _v6ThemeNameReplacements_name;\n return [\n (_v6ThemeNameReplacements_name = v6ThemeNameReplacements[name]) !== null && _v6ThemeNameReplacements_name !== void 0 ? _v6ThemeNameReplacements_name : name.replace(trailingRamp, \"$1-$2\"),\n value\n ];\n }));\n convertedThemes.set(theme, convertedTheme);\n }\n return [\n themeName,\n convertedTheme\n ];\n }));\n}\nexport {\n toV6Themes\n};\n//# sourceMappingURL=v6-themes.js.map\n"],"mappings":";;;AACA,IAAI,eAAe;AACnB,SAAS,WAAW,QAAQ;CAC1B,IAAI,kCAAkC,IAAI,QAAQ;CAClD,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,CAAC,CAAC,IAAI,SAAS,OAAO;EACnE,IAAI,CAAC,WAAW,SAAS;EACzB,IAAI,iBAAiB,gBAAgB,IAAI,KAAK;EAC9C,IAAI,CAAC,gBAAgB;GACnB,iBAAiB,OAAO,YAAY,OAAO,QAAQ,KAAK,CAAC,CAAC,OAAO,SAAS,QAAQ;IAChF,IAAI,CAAC,QAAQ;IACb,OAAO,CAAC,oBAAoB,SAAS,IAAI;GAC3C,CAAC,CAAC,CAAC,IAAI,SAAS,QAAQ;IACtB,IAAI,CAAC,MAAM,SAAS;IACpB,IAAI;IACJ,OAAO,EACJ,gCAAgC,wBAAwB,WAAW,QAAQ,kCAAkC,KAAK,IAAI,gCAAgC,KAAK,QAAQ,cAAc,OAAO,GACzL,KACF;GACF,CAAC,CAAC;GACF,gBAAgB,IAAI,OAAO,cAAc;EAC3C;EACA,OAAO,CACL,WACA,cACF;CACF,CAAC,CAAC;AACJ"}
|