@tamagui/themes 1.14.1 → 1.14.2

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/index.js CHANGED
@@ -1,2 +1,21 @@
1
- "use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,r,p,x)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of c(r))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>r[m],enumerable:!(x=b(r,m))||x.enumerable});return f},e=(f,r,p)=>(t(f,r,"default"),p&&t(p,r,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);e(o,require("./themes"),module.exports);e(o,require("./tokens"),module.exports);e(o,require("@tamagui/colors"),module.exports);
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var src_exports = {};
17
+ module.exports = __toCommonJS(src_exports);
18
+ __reExport(src_exports, require("./themes"), module.exports);
19
+ __reExport(src_exports, require("./tokens"), module.exports);
20
+ __reExport(src_exports, require("@tamagui/colors"), module.exports);
2
21
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './themes'\nexport * from './tokens'\nexport * from '@tamagui/colors'\n"],
5
- "mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,oBAAd,gBACAE,EAAAF,EAAc,oBADd,gBAEAE,EAAAF,EAAc,2BAFd",
6
- "names": ["src_exports", "__toCommonJS", "__reExport"]
5
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;AACA,wBAAc,qBADd;AAEA,wBAAc,4BAFd;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,273 @@
1
- "use strict";var T=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var _=(l,s)=>{for(var c in s)T(l,c,{get:s[c],enumerable:!0})},$=(l,s,c,g)=>{if(s&&typeof s=="object"||typeof s=="function")for(let d of R(s))!W.call(l,d)&&d!==c&&T(l,d,{get:()=>s[d],enumerable:!(g=E(s,d))||g.enumerable});return l};var q=l=>$(T({},"__esModule",{value:!0}),l);var Y={};_(Y,{themes:()=>X});module.exports=q(Y);var r=require("@tamagui/create-theme"),i=require("./tokens");const H="rgba(255,255,255,0)",y="rgba(10,10,10,0)",u={dark:[y,"#050505","#151515","#191919","#232323","#282828","#323232","#424242","#494949","#545454","#626262","#a5a5a5","#fff",H],light:[H,"#fff","#f9f9f9","hsl(0, 0%, 97.3%)","hsl(0, 0%, 95.1%)","hsl(0, 0%, 94.0%)","hsl(0, 0%, 92.0%)","hsl(0, 0%, 89.5%)","hsl(0, 0%, 81.0%)","hsl(0, 0%, 56.1%)","hsl(0, 0%, 50.3%)","hsl(0, 0%, 42.5%)","hsl(0, 0%, 9.0%)",y]},z={color1:1,color2:2,color3:3,color4:4,color5:5,color6:6,color7:7,color8:8,color9:9,color10:10,color11:11,color12:12},O={shadowColor:1,shadowColorHover:1,shadowColorPress:2,shadowColorFocus:2},A={...z,...O},M={...A,background:2,backgroundHover:3,backgroundPress:1,backgroundFocus:2,backgroundStrong:1,backgroundTransparent:0,color:-1,colorHover:-2,colorPress:-1,colorFocus:-2,colorTransparent:-0,borderColor:4,borderColorHover:5,borderColorPress:3,borderColorFocus:4,placeholderColor:-4},x="rgba(0,0,0,0.02)",I="rgba(0,0,0,0.066)",j="rgba(0,0,0,0.2)",B="rgba(0,0,0,0.3)",G={shadowColor:I,shadowColorHover:I,shadowColorPress:x,shadowColorFocus:x},J={shadowColor:B,shadowColorHover:B,shadowColorPress:j,shadowColorFocus:j},w={...M,borderColor:6,borderColorHover:7,borderColorFocus:5,borderColorPress:6,...G},S={...M,...J},K=(0,r.createTheme)(u.light,w),Q=(0,r.createTheme)(u.dark,S),N={light:K,dark:Q},n={weaker:(0,r.createWeakenMask)(),stronger:(0,r.createStrengthenMask)()},h={skip:A,max:u.light.length-2,min:1},U=(0,r.addChildren)(N,(l,s)=>{const c=l==="light",g=c?"dark":"light",d=N[g],v=(e,t=0)=>e.replace("%)",`%, ${t})`).replace("hsl(","hsla("),[f,L]=[i.colorTokens[l],i.colorTokens[g]].map(e=>Object.fromEntries(Object.keys(e).map(t=>{const o=Object.values(e[t]),[a,b]=[o.slice(0,6),o.slice(o.length-5)],C=[v(o[0]),...a,...b,s.color,v(o[o.length-1])],k=(0,r.createTheme)(C,c?{...w,borderColor:4,borderColorHover:5,borderColorFocus:4,borderColorPress:4}:S);return[t,k]}))),V=(0,r.addChildren)(f,(e,t)=>{const o=L[e];return{...P(t,o),...m(t,o)}}),D=(0,r.applyMask)(f.blue,n.weaker,{...h,strength:4});return{...{...P(s,d,D),...m(s,d)},...V};function P(e,t,o){const a={...h,skip:O},b=(0,r.applyMask)(e,n.weaker,a),C=(0,r.applyMask)(b,n.weaker,a),k=o??(0,r.applyMask)(e,n.weaker,{...h,strength:4});return(0,r.addChildren)({alt1:b,alt2:C,active:k},(p,F)=>m(F,F===t?e:t))}function m(e,t){const o=(0,r.applyMask)(e,n.weaker,h),a=(0,r.applyMask)(o,n.weaker,h),b=(0,r.applyMask)(e,n.stronger,h),C=(0,r.applyMask)(t,n.weaker,h),k=(0,r.applyMask)(C,n.weaker,h),p=c?{...b,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}:{...e,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus};return{Card:o,Button:a,Checkbox:a,DrawerFrame:o,SliderTrack:b,SliderTrackActive:a,SliderThumb:C,Progress:o,ProgressIndicator:t,Switch:a,SwitchThumb:k,TooltipArrow:o,TooltipContent:a,Input:p,TextArea:p,Tooltip:C}}}),X={...U,light:(0,r.createTheme)(u.light,w,{nonInheritedValues:i.lightColors}),dark:(0,r.createTheme)(u.dark,S,{nonInheritedValues:i.darkColors})};0&&(module.exports={themes});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var themes_exports = {};
20
+ __export(themes_exports, {
21
+ themes: () => themes
22
+ });
23
+ module.exports = __toCommonJS(themes_exports);
24
+ var import_create_theme = require("@tamagui/create-theme");
25
+ var import_tokens = require("./tokens");
26
+ const lightTransparent = "rgba(255,255,255,0)";
27
+ const darkTransparent = "rgba(10,10,10,0)";
28
+ const palettes = {
29
+ dark: [
30
+ darkTransparent,
31
+ "#050505",
32
+ "#151515",
33
+ "#191919",
34
+ "#232323",
35
+ "#282828",
36
+ "#323232",
37
+ "#424242",
38
+ "#494949",
39
+ "#545454",
40
+ "#626262",
41
+ "#a5a5a5",
42
+ "#fff",
43
+ lightTransparent
44
+ ],
45
+ light: [
46
+ lightTransparent,
47
+ "#fff",
48
+ "#f9f9f9",
49
+ "hsl(0, 0%, 97.3%)",
50
+ "hsl(0, 0%, 95.1%)",
51
+ "hsl(0, 0%, 94.0%)",
52
+ "hsl(0, 0%, 92.0%)",
53
+ "hsl(0, 0%, 89.5%)",
54
+ "hsl(0, 0%, 81.0%)",
55
+ "hsl(0, 0%, 56.1%)",
56
+ "hsl(0, 0%, 50.3%)",
57
+ "hsl(0, 0%, 42.5%)",
58
+ "hsl(0, 0%, 9.0%)",
59
+ darkTransparent
60
+ ]
61
+ };
62
+ const templateColors = {
63
+ color1: 1,
64
+ color2: 2,
65
+ color3: 3,
66
+ color4: 4,
67
+ color5: 5,
68
+ color6: 6,
69
+ color7: 7,
70
+ color8: 8,
71
+ color9: 9,
72
+ color10: 10,
73
+ color11: 11,
74
+ color12: 12
75
+ };
76
+ const templateShadows = {
77
+ shadowColor: 1,
78
+ shadowColorHover: 1,
79
+ shadowColorPress: 2,
80
+ shadowColorFocus: 2
81
+ };
82
+ const skip = {
83
+ ...templateColors,
84
+ ...templateShadows
85
+ };
86
+ const template = {
87
+ ...skip,
88
+ // the background, color, etc keys here work like generics - they make it so you
89
+ // can publish components for others to use without mandating a specific color scale
90
+ // the @tamagui/button Button component looks for `$background`, so you set the
91
+ // dark_red_Button theme to have a stronger background than the dark_red theme.
92
+ background: 2,
93
+ backgroundHover: 3,
94
+ backgroundPress: 1,
95
+ backgroundFocus: 2,
96
+ backgroundStrong: 1,
97
+ backgroundTransparent: 0,
98
+ color: -1,
99
+ colorHover: -2,
100
+ colorPress: -1,
101
+ colorFocus: -2,
102
+ colorTransparent: -0,
103
+ borderColor: 4,
104
+ borderColorHover: 5,
105
+ borderColorPress: 3,
106
+ borderColorFocus: 4,
107
+ placeholderColor: -4
108
+ };
109
+ const lightShadowColor = "rgba(0,0,0,0.02)";
110
+ const lightShadowColorStrong = "rgba(0,0,0,0.066)";
111
+ const darkShadowColor = "rgba(0,0,0,0.2)";
112
+ const darkShadowColorStrong = "rgba(0,0,0,0.3)";
113
+ const lightShadows = {
114
+ shadowColor: lightShadowColorStrong,
115
+ shadowColorHover: lightShadowColorStrong,
116
+ shadowColorPress: lightShadowColor,
117
+ shadowColorFocus: lightShadowColor
118
+ };
119
+ const darkShadows = {
120
+ shadowColor: darkShadowColorStrong,
121
+ shadowColorHover: darkShadowColorStrong,
122
+ shadowColorPress: darkShadowColor,
123
+ shadowColorFocus: darkShadowColor
124
+ };
125
+ const lightTemplate = {
126
+ ...template,
127
+ // our light color palette is... a bit unique
128
+ borderColor: 6,
129
+ borderColorHover: 7,
130
+ borderColorFocus: 5,
131
+ borderColorPress: 6,
132
+ ...lightShadows
133
+ };
134
+ const darkTemplate = { ...template, ...darkShadows };
135
+ const light = (0, import_create_theme.createTheme)(palettes.light, lightTemplate);
136
+ const dark = (0, import_create_theme.createTheme)(palettes.dark, darkTemplate);
137
+ const baseThemes = {
138
+ light,
139
+ dark
140
+ };
141
+ const masks = {
142
+ weaker: (0, import_create_theme.createWeakenMask)(),
143
+ stronger: (0, import_create_theme.createStrengthenMask)()
144
+ };
145
+ const maskOptions = {
146
+ skip,
147
+ // avoids the transparent ends
148
+ max: palettes.light.length - 2,
149
+ min: 1
150
+ };
151
+ const allThemes = (0, import_create_theme.addChildren)(baseThemes, (name, theme) => {
152
+ const isLight = name === "light";
153
+ const inverseName = isLight ? "dark" : "light";
154
+ const inverseTheme = baseThemes[inverseName];
155
+ const transparent = (hsl, opacity = 0) => hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`);
156
+ const [colorThemes, inverseColorThemes] = [
157
+ import_tokens.colorTokens[name],
158
+ import_tokens.colorTokens[inverseName]
159
+ ].map((colorSet) => {
160
+ return Object.fromEntries(
161
+ Object.keys(colorSet).map((color) => {
162
+ const colorPalette = Object.values(colorSet[color]);
163
+ const [head, tail] = [
164
+ colorPalette.slice(0, 6),
165
+ colorPalette.slice(colorPalette.length - 5)
166
+ ];
167
+ const palette = [
168
+ transparent(colorPalette[0]),
169
+ ...head,
170
+ ...tail,
171
+ theme.color,
172
+ transparent(colorPalette[colorPalette.length - 1])
173
+ ];
174
+ const colorTheme = (0, import_create_theme.createTheme)(
175
+ palette,
176
+ isLight ? {
177
+ ...lightTemplate,
178
+ // light color themes are a bit less sensitive
179
+ borderColor: 4,
180
+ borderColorHover: 5,
181
+ borderColorFocus: 4,
182
+ borderColorPress: 4
183
+ } : darkTemplate
184
+ );
185
+ return [color, colorTheme];
186
+ })
187
+ );
188
+ });
189
+ const allColorThemes = (0, import_create_theme.addChildren)(colorThemes, (colorName, colorTheme) => {
190
+ const inverse = inverseColorThemes[colorName];
191
+ return {
192
+ ...getAltThemes(colorTheme, inverse),
193
+ ...getComponentThemes(colorTheme, inverse)
194
+ };
195
+ });
196
+ const baseActiveTheme = (0, import_create_theme.applyMask)(colorThemes.blue, masks.weaker, {
197
+ ...maskOptions,
198
+ strength: 4
199
+ });
200
+ const baseSubThemes = {
201
+ ...getAltThemes(theme, inverseTheme, baseActiveTheme),
202
+ ...getComponentThemes(theme, inverseTheme)
203
+ };
204
+ return {
205
+ ...baseSubThemes,
206
+ ...allColorThemes
207
+ };
208
+ function getAltThemes(theme2, inverse, activeTheme) {
209
+ const maskOptionsAlt = {
210
+ ...maskOptions,
211
+ skip: templateShadows
212
+ };
213
+ const alt1 = (0, import_create_theme.applyMask)(theme2, masks.weaker, maskOptionsAlt);
214
+ const alt2 = (0, import_create_theme.applyMask)(alt1, masks.weaker, maskOptionsAlt);
215
+ const active = activeTheme ?? (0, import_create_theme.applyMask)(theme2, masks.weaker, {
216
+ ...maskOptions,
217
+ strength: 4
218
+ });
219
+ return (0, import_create_theme.addChildren)({ alt1, alt2, active }, (_, subTheme) => {
220
+ return getComponentThemes(subTheme, subTheme === inverse ? theme2 : inverse);
221
+ });
222
+ }
223
+ function getComponentThemes(theme2, inverse) {
224
+ const weaker1 = (0, import_create_theme.applyMask)(theme2, masks.weaker, maskOptions);
225
+ const weaker2 = (0, import_create_theme.applyMask)(weaker1, masks.weaker, maskOptions);
226
+ const stronger1 = (0, import_create_theme.applyMask)(theme2, masks.stronger, maskOptions);
227
+ const inverse1 = (0, import_create_theme.applyMask)(inverse, masks.weaker, maskOptions);
228
+ const inverse2 = (0, import_create_theme.applyMask)(inverse1, masks.weaker, maskOptions);
229
+ const strongerBorderLighterBackground = isLight ? {
230
+ ...stronger1,
231
+ borderColor: weaker1.borderColor,
232
+ borderColorHover: weaker1.borderColorHover,
233
+ borderColorPress: weaker1.borderColorPress,
234
+ borderColorFocus: weaker1.borderColorFocus
235
+ } : {
236
+ ...theme2,
237
+ borderColor: weaker1.borderColor,
238
+ borderColorHover: weaker1.borderColorHover,
239
+ borderColorPress: weaker1.borderColorPress,
240
+ borderColorFocus: weaker1.borderColorFocus
241
+ };
242
+ return {
243
+ Card: weaker1,
244
+ Button: weaker2,
245
+ Checkbox: weaker2,
246
+ DrawerFrame: weaker1,
247
+ SliderTrack: stronger1,
248
+ SliderTrackActive: weaker2,
249
+ SliderThumb: inverse1,
250
+ Progress: weaker1,
251
+ ProgressIndicator: inverse,
252
+ Switch: weaker2,
253
+ SwitchThumb: inverse2,
254
+ TooltipArrow: weaker1,
255
+ TooltipContent: weaker2,
256
+ Input: strongerBorderLighterBackground,
257
+ TextArea: strongerBorderLighterBackground,
258
+ Tooltip: inverse1
259
+ };
260
+ }
261
+ });
262
+ const themes = {
263
+ ...allThemes,
264
+ // bring back the full type, the rest use a subset to avoid clogging up ts,
265
+ // tamagui will be smart and use the top level themes as the type for useTheme() etc
266
+ light: (0, import_create_theme.createTheme)(palettes.light, lightTemplate, { nonInheritedValues: import_tokens.lightColors }),
267
+ dark: (0, import_create_theme.createTheme)(palettes.dark, darkTemplate, { nonInheritedValues: import_tokens.darkColors })
268
+ };
269
+ // Annotate the CommonJS export names for ESM import in node:
270
+ 0 && (module.exports = {
271
+ themes
272
+ });
2
273
  //# sourceMappingURL=themes.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/themes.tsx"],
4
4
  "sourcesContent": ["import {\n MaskOptions,\n addChildren,\n applyMask,\n createStrengthenMask,\n createTheme,\n createWeakenMask,\n} from '@tamagui/create-theme'\n\nimport { colorTokens, darkColors, lightColors } from './tokens'\n\ntype ColorName = keyof typeof colorTokens.dark\n\nconst lightTransparent = 'rgba(255,255,255,0)'\nconst darkTransparent = 'rgba(10,10,10,0)'\n\n// background => foreground\nconst palettes = {\n dark: [\n darkTransparent,\n '#050505',\n '#151515',\n '#191919',\n '#232323',\n '#282828',\n '#323232',\n '#424242',\n '#494949',\n '#545454',\n '#626262',\n '#a5a5a5',\n '#fff',\n lightTransparent,\n ],\n light: [\n lightTransparent,\n '#fff',\n '#f9f9f9',\n 'hsl(0, 0%, 97.3%)',\n 'hsl(0, 0%, 95.1%)',\n 'hsl(0, 0%, 94.0%)',\n 'hsl(0, 0%, 92.0%)',\n 'hsl(0, 0%, 89.5%)',\n 'hsl(0, 0%, 81.0%)',\n 'hsl(0, 0%, 56.1%)',\n 'hsl(0, 0%, 50.3%)',\n 'hsl(0, 0%, 42.5%)',\n 'hsl(0, 0%, 9.0%)',\n darkTransparent,\n ],\n}\n\nconst templateColors = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12,\n}\n\nconst templateShadows = {\n shadowColor: 1,\n shadowColorHover: 1,\n shadowColorPress: 2,\n shadowColorFocus: 2,\n}\n\n// we can use subset of our template as a \"skip\" so it doesn't get adjusted with masks\nconst skip = {\n ...templateColors,\n ...templateShadows,\n}\n\n// templates use the palette and specify index\n// negative goes backwards from end so -1 is the last item\nconst template = {\n ...skip,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 1,\n backgroundFocus: 2,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 4,\n borderColorHover: 5,\n borderColorPress: 3,\n borderColorFocus: 4,\n placeholderColor: -4,\n}\n\nconst lightShadowColor = 'rgba(0,0,0,0.02)'\nconst lightShadowColorStrong = 'rgba(0,0,0,0.066)'\nconst darkShadowColor = 'rgba(0,0,0,0.2)'\nconst darkShadowColorStrong = 'rgba(0,0,0,0.3)'\n\nconst lightShadows = {\n shadowColor: lightShadowColorStrong,\n shadowColorHover: lightShadowColorStrong,\n shadowColorPress: lightShadowColor,\n shadowColorFocus: lightShadowColor,\n}\n\nconst darkShadows = {\n shadowColor: darkShadowColorStrong,\n shadowColorHover: darkShadowColorStrong,\n shadowColorPress: darkShadowColor,\n shadowColorFocus: darkShadowColor,\n}\n\nconst lightTemplate = {\n ...template,\n // our light color palette is... a bit unique\n borderColor: 6,\n borderColorHover: 7,\n borderColorFocus: 5,\n borderColorPress: 6,\n ...lightShadows,\n}\n\nconst darkTemplate = { ...template, ...darkShadows }\n\nconst light = createTheme(palettes.light, lightTemplate)\nconst dark = createTheme(palettes.dark, darkTemplate)\n\ntype SubTheme = typeof light\n\nconst baseThemes: {\n light: SubTheme\n dark: SubTheme\n} = {\n light,\n dark,\n}\n\nconst masks = {\n weaker: createWeakenMask(),\n stronger: createStrengthenMask(),\n}\n\n// default mask options for most uses\nconst maskOptions: MaskOptions = {\n skip,\n // avoids the transparent ends\n max: palettes.light.length - 2,\n min: 1,\n}\n\nconst allThemes = addChildren(baseThemes, (name, theme) => {\n const isLight = name === 'light'\n const inverseName = isLight ? 'dark' : 'light'\n const inverseTheme = baseThemes[inverseName]\n const transparent = (hsl: string, opacity = 0) =>\n hsl.replace(`%)`, `%, ${opacity})`).replace(`hsl(`, `hsla(`)\n\n // setup colorThemes and their inverses\n const [colorThemes, inverseColorThemes] = [\n colorTokens[name],\n colorTokens[inverseName],\n ].map((colorSet) => {\n return Object.fromEntries(\n Object.keys(colorSet).map((color) => {\n const colorPalette = Object.values(colorSet[color]) as string[]\n // were re-ordering these\n const [head, tail] = [\n colorPalette.slice(0, 6),\n colorPalette.slice(colorPalette.length - 5),\n ]\n // add our transparent colors first/last\n // and make sure the last (foreground) color is white/black rather than colorful\n // this is mostly for consistency with the older theme-base\n const palette = [\n transparent(colorPalette[0]),\n ...head,\n ...tail,\n theme.color,\n transparent(colorPalette[colorPalette.length - 1]),\n ]\n const colorTheme = createTheme(\n palette,\n isLight\n ? {\n ...lightTemplate,\n // light color themes are a bit less sensitive\n borderColor: 4,\n borderColorHover: 5,\n borderColorFocus: 4,\n borderColorPress: 4,\n }\n : darkTemplate\n )\n return [color, colorTheme]\n })\n ) as Record<ColorName, SubTheme>\n })\n\n const allColorThemes = addChildren(colorThemes, (colorName, colorTheme) => {\n const inverse = inverseColorThemes[colorName]\n return {\n ...getAltThemes(colorTheme, inverse),\n ...getComponentThemes(colorTheme, inverse),\n }\n })\n\n const baseActiveTheme = applyMask(colorThemes.blue, masks.weaker, {\n ...maskOptions,\n strength: 4,\n })\n\n const baseSubThemes = {\n ...getAltThemes(theme, inverseTheme, baseActiveTheme),\n ...getComponentThemes(theme, inverseTheme),\n }\n\n return {\n ...baseSubThemes,\n ...allColorThemes,\n }\n\n function getAltThemes(theme: SubTheme, inverse: SubTheme, activeTheme?: SubTheme) {\n const maskOptionsAlt = {\n ...maskOptions,\n skip: templateShadows,\n }\n const alt1 = applyMask(theme, masks.weaker, maskOptionsAlt)\n const alt2 = applyMask(alt1, masks.weaker, maskOptionsAlt)\n const active =\n activeTheme ??\n applyMask(theme, masks.weaker, {\n ...maskOptions,\n strength: 4,\n })\n return addChildren({ alt1, alt2, active }, (_, subTheme) => {\n return getComponentThemes(subTheme, subTheme === inverse ? theme : inverse)\n })\n }\n\n function getComponentThemes(theme: SubTheme, inverse: SubTheme) {\n const weaker1 = applyMask(theme, masks.weaker, maskOptions)\n const weaker2 = applyMask(weaker1, masks.weaker, maskOptions)\n const stronger1 = applyMask(theme, masks.stronger, maskOptions)\n const inverse1 = applyMask(inverse, masks.weaker, maskOptions)\n const inverse2 = applyMask(inverse1, masks.weaker, maskOptions)\n const strongerBorderLighterBackground: SubTheme = isLight\n ? {\n ...stronger1,\n borderColor: weaker1.borderColor,\n borderColorHover: weaker1.borderColorHover,\n borderColorPress: weaker1.borderColorPress,\n borderColorFocus: weaker1.borderColorFocus,\n }\n : {\n ...theme,\n borderColor: weaker1.borderColor,\n borderColorHover: weaker1.borderColorHover,\n borderColorPress: weaker1.borderColorPress,\n borderColorFocus: weaker1.borderColorFocus,\n }\n return {\n Card: weaker1,\n Button: weaker2,\n Checkbox: weaker2,\n DrawerFrame: weaker1,\n SliderTrack: stronger1,\n SliderTrackActive: weaker2,\n SliderThumb: inverse1,\n Progress: weaker1,\n ProgressIndicator: inverse,\n Switch: weaker2,\n SwitchThumb: inverse2,\n TooltipArrow: weaker1,\n TooltipContent: weaker2,\n Input: strongerBorderLighterBackground,\n TextArea: strongerBorderLighterBackground,\n Tooltip: inverse1,\n }\n }\n})\n\nexport const themes = {\n ...allThemes,\n // bring back the full type, the rest use a subset to avoid clogging up ts,\n // tamagui will be smart and use the top level themes as the type for useTheme() etc\n light: createTheme(palettes.light, lightTemplate, { nonInheritedValues: lightColors }),\n dark: createTheme(palettes.dark, darkTemplate, { nonInheritedValues: darkColors }),\n}\n\n// if (process.env.NODE_ENV === 'development') {\n// console.log(JSON.stringify(themes).length)\n// }\n"],
5
- "mappings": "yaAAA,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C5B,EACJ,MAAO,CACL,KAAMA,EACN,OAAQC,EACR,SAAUA,EACV,YAAaD,EACb,YAAaE,EACb,kBAAmBD,EACnB,YAAaE,EACb,SAAUH,EACV,kBAAmBX,EACnB,OAAQY,EACR,YAAaG,EACb,aAAcJ,EACd,eAAgBC,EAChB,MAAOI,EACP,SAAUA,EACV,QAASF,CACX,CACF,CACF,CAAC,EAEY1D,EAAS,CACpB,GAAGwB,EAGH,SAAO,eAAYlB,EAAS,MAAOW,EAAe,CAAE,mBAAoB,aAAY,CAAC,EACrF,QAAM,eAAYX,EAAS,KAAMY,EAAc,CAAE,mBAAoB,YAAW,CAAC,CACnF",
6
- "names": ["themes_exports", "__export", "themes", "__toCommonJS", "import_create_theme", "import_tokens", "lightTransparent", "darkTransparent", "palettes", "templateColors", "templateShadows", "skip", "template", "lightShadowColor", "lightShadowColorStrong", "darkShadowColor", "darkShadowColorStrong", "lightShadows", "darkShadows", "lightTemplate", "darkTemplate", "light", "dark", "baseThemes", "masks", "maskOptions", "allThemes", "name", "theme", "isLight", "inverseName", "inverseTheme", "transparent", "hsl", "opacity", "colorThemes", "inverseColorThemes", "colorSet", "color", "colorPalette", "head", "tail", "palette", "colorTheme", "allColorThemes", "colorName", "inverse", "getAltThemes", "getComponentThemes", "baseActiveTheme", "activeTheme", "maskOptionsAlt", "alt1", "alt2", "active", "_", "subTheme", "weaker1", "weaker2", "stronger1", "inverse1", "inverse2", "strongerBorderLighterBackground"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAOO;AAEP,oBAAqD;AAIrD,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAGxB,MAAM,WAAW;AAAA,EACf,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,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Property;var K=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var z=(r,n)=>{for(var i in n)a(r,i,{get:n[i],enumerable:!0})},h=(r,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of x(n))!b.call(r,s)&&s!==i&&a(r,s,{get:()=>n[s],enumerable:!(o=K(n,s))||o.enumerable});return r};var S=r=>h(a({},"__esModule",{value:!0}),r);var w={};z(w,{color:()=>d,colorTokens:()=>t,darkColors:()=>u,lightColors:()=>c,radius:()=>f,size:()=>l,space:()=>g,tokens:()=>j,zIndex:()=>k});module.exports=S(w);var e=require("@tamagui/colors"),$=require("@tamagui/web");const l={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},y=Object.entries(l).map(([r,n])=>[r,m(n)]);function m(r){return r===0?0:r===2?.5:r===4?1:r===8?1.5:r<=16?Math.round(r*.333):Math.floor(r*.7-12)}const D=y.slice(1).map(([r,n])=>[`-${r.slice(1)}`,-n]),g={...Object.fromEntries(y),...Object.fromEntries(D)},k={0:0,1:100,2:200,3:300,4:400,5:500},t={light:{blue:e.blue,gray:e.gray,green:e.green,orange:e.orange,pink:e.pink,purple:e.purple,red:e.red,yellow:e.yellow},dark:{blue:e.blueDark,gray:e.grayDark,green:e.greenDark,orange:e.orangeDark,pink:e.pinkDark,purple:e.purpleDark,red:e.redDark,yellow:e.yellowDark}},u={...t.dark.blue,...t.dark.gray,...t.dark.green,...t.dark.orange,...t.dark.pink,...t.dark.purple,...t.dark.red,...t.dark.yellow},c={...t.light.blue,...t.light.gray,...t.light.green,...t.light.orange,...t.light.pink,...t.light.purple,...t.light.red,...t.light.yellow},d={...p(c,"Light"),...p(u,"Dark")};function p(r,n){return Object.fromEntries(Object.entries(r).map(([i,o])=>[`${i}${n}`,o]))}const f={0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},j=(0,$.createTokens)({color:d,radius:f,zIndex:k,space:g,size:l});0&&(module.exports={color,colorTokens,darkColors,lightColors,radius,size,space,tokens,zIndex});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var tokens_exports = {};
20
+ __export(tokens_exports, {
21
+ color: () => color,
22
+ colorTokens: () => colorTokens,
23
+ darkColors: () => darkColors,
24
+ lightColors: () => lightColors,
25
+ radius: () => radius,
26
+ size: () => size,
27
+ space: () => space,
28
+ tokens: () => tokens,
29
+ zIndex: () => zIndex
30
+ });
31
+ module.exports = __toCommonJS(tokens_exports);
32
+ var import_colors = require("@tamagui/colors");
33
+ var import_web = require("@tamagui/web");
34
+ const size = {
35
+ $0: 0,
36
+ "$0.25": 2,
37
+ "$0.5": 4,
38
+ "$0.75": 8,
39
+ $1: 20,
40
+ "$1.5": 24,
41
+ $2: 28,
42
+ "$2.5": 32,
43
+ $3: 36,
44
+ "$3.5": 40,
45
+ $4: 44,
46
+ $true: 44,
47
+ "$4.5": 48,
48
+ $5: 52,
49
+ $6: 64,
50
+ $7: 74,
51
+ $8: 84,
52
+ $9: 94,
53
+ $10: 104,
54
+ $11: 124,
55
+ $12: 144,
56
+ $13: 164,
57
+ $14: 184,
58
+ $15: 204,
59
+ $16: 224,
60
+ $17: 224,
61
+ $18: 244,
62
+ $19: 264,
63
+ $20: 284
64
+ };
65
+ const spaces = Object.entries(size).map(([k, v]) => {
66
+ return [k, sizeToSpace(v)];
67
+ });
68
+ function sizeToSpace(v) {
69
+ if (v === 0)
70
+ return 0;
71
+ if (v === 2)
72
+ return 0.5;
73
+ if (v === 4)
74
+ return 1;
75
+ if (v === 8)
76
+ return 1.5;
77
+ if (v <= 16)
78
+ return Math.round(v * 0.333);
79
+ return Math.floor(v * 0.7 - 12);
80
+ }
81
+ const spacesNegative = spaces.slice(1).map(([k, v]) => [`-${k.slice(1)}`, -v]);
82
+ const space = {
83
+ ...Object.fromEntries(spaces),
84
+ ...Object.fromEntries(spacesNegative)
85
+ };
86
+ const zIndex = {
87
+ 0: 0,
88
+ 1: 100,
89
+ 2: 200,
90
+ 3: 300,
91
+ 4: 400,
92
+ 5: 500
93
+ };
94
+ const colorTokens = {
95
+ light: {
96
+ blue: import_colors.blue,
97
+ gray: import_colors.gray,
98
+ green: import_colors.green,
99
+ orange: import_colors.orange,
100
+ pink: import_colors.pink,
101
+ purple: import_colors.purple,
102
+ red: import_colors.red,
103
+ yellow: import_colors.yellow
104
+ },
105
+ dark: {
106
+ blue: import_colors.blueDark,
107
+ gray: import_colors.grayDark,
108
+ green: import_colors.greenDark,
109
+ orange: import_colors.orangeDark,
110
+ pink: import_colors.pinkDark,
111
+ purple: import_colors.purpleDark,
112
+ red: import_colors.redDark,
113
+ yellow: import_colors.yellowDark
114
+ }
115
+ };
116
+ const darkColors = {
117
+ ...colorTokens.dark.blue,
118
+ ...colorTokens.dark.gray,
119
+ ...colorTokens.dark.green,
120
+ ...colorTokens.dark.orange,
121
+ ...colorTokens.dark.pink,
122
+ ...colorTokens.dark.purple,
123
+ ...colorTokens.dark.red,
124
+ ...colorTokens.dark.yellow
125
+ };
126
+ const lightColors = {
127
+ ...colorTokens.light.blue,
128
+ ...colorTokens.light.gray,
129
+ ...colorTokens.light.green,
130
+ ...colorTokens.light.orange,
131
+ ...colorTokens.light.pink,
132
+ ...colorTokens.light.purple,
133
+ ...colorTokens.light.red,
134
+ ...colorTokens.light.yellow
135
+ };
136
+ const color = {
137
+ ...postfixObjKeys(lightColors, "Light"),
138
+ ...postfixObjKeys(darkColors, "Dark")
139
+ };
140
+ function postfixObjKeys(obj, postfix) {
141
+ return Object.fromEntries(
142
+ Object.entries(obj).map(([k, v]) => [`${k}${postfix}`, v])
143
+ );
144
+ }
145
+ const radius = {
146
+ 0: 0,
147
+ 1: 3,
148
+ 2: 5,
149
+ 3: 7,
150
+ 4: 9,
151
+ true: 9,
152
+ 5: 10,
153
+ 6: 16,
154
+ 7: 19,
155
+ 8: 22,
156
+ 9: 26,
157
+ 10: 34,
158
+ 11: 42,
159
+ 12: 50
160
+ };
161
+ const tokens = (0, import_web.createTokens)({
162
+ color,
163
+ radius,
164
+ zIndex,
165
+ space,
166
+ size
167
+ });
168
+ // Annotate the CommonJS export names for ESM import in node:
169
+ 0 && (module.exports = {
170
+ color,
171
+ colorTokens,
172
+ darkColors,
173
+ lightColors,
174
+ radius,
175
+ size,
176
+ space,
177
+ tokens,
178
+ zIndex
179
+ });
2
180
  //# sourceMappingURL=tokens.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/tokens.tsx"],
4
4
  "sourcesContent": ["import {\n blue,\n blueDark,\n gray,\n grayDark,\n green,\n greenDark,\n orange,\n orangeDark,\n pink,\n pinkDark,\n purple,\n purpleDark,\n red,\n redDark,\n yellow,\n yellowDark,\n} from '@tamagui/colors'\nimport { Variable, createTokens } from '@tamagui/web'\n\n// should roughly map to button/input etc height at each level\n// fonts should match that height/lineHeight at each stop\n// so these are really non-linear on purpose\n// why?\n// - at sizes <1, used for fine grained things (borders, smallest paddingY)\n// - so smallest padY should be roughly 1-4px so it can join with lineHeight\n// - at sizes >=1, have to consider \"pressability\" (jumps up)\n// - after that it should go upwards somewhat naturally\n// - H1 / headings top out at 10 naturally, so after 10 we can go upwards faster\n// but also one more wrinkle...\n// space is used in conjunction with size\n// i'm setting space to generally just a fixed fraction of size (~1/3-2/3 still fine tuning)\nexport const 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 $true: 44,\n '$4.5': 48,\n $5: 52,\n $6: 64,\n $7: 74,\n $8: 84,\n $9: 94,\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\ntype SizeKeysIn = keyof typeof size\ntype Sizes = {\n [Key in SizeKeysIn extends `$${infer Key}` ? Key : SizeKeysIn]: number\n}\ntype SizeKeys = `${keyof Sizes extends `${infer K}` ? K : never}`\n\nconst spaces = Object.entries(size).map(([k, v]) => {\n return [k, sizeToSpace(v)] as const\n})\n\n// a bit odd but keeping backward compat for values >8 while fixing below\nfunction sizeToSpace(v: number) {\n if (v === 0) return 0\n if (v === 2) return 0.5\n if (v === 4) return 1\n if (v === 8) return 1.5\n if (v <= 16) return Math.round(v * 0.333)\n return Math.floor(v * 0.7 - 12)\n}\n\nconst spacesNegative = spaces.slice(1).map(([k, v]) => [`-${k.slice(1)}`, -v])\n\ntype SizeKeysWithNegatives =\n | Exclude<`-${SizeKeys extends `$${infer Key}` ? Key : SizeKeys}`, '-0'>\n | SizeKeys\n\nexport const space: {\n [Key in SizeKeysWithNegatives]: Key extends keyof Sizes ? Sizes[Key] : number\n} = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative),\n} as any\n\nexport const zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500,\n}\n\nexport const colorTokens = {\n light: {\n blue: blue,\n gray: gray,\n green: green,\n orange: orange,\n pink: pink,\n purple: purple,\n red: red,\n yellow: yellow,\n },\n dark: {\n blue: blueDark,\n gray: grayDark,\n green: greenDark,\n orange: orangeDark,\n pink: pinkDark,\n purple: purpleDark,\n red: redDark,\n yellow: yellowDark,\n },\n}\n\nexport const darkColors = {\n ...colorTokens.dark.blue,\n ...colorTokens.dark.gray,\n ...colorTokens.dark.green,\n ...colorTokens.dark.orange,\n ...colorTokens.dark.pink,\n ...colorTokens.dark.purple,\n ...colorTokens.dark.red,\n ...colorTokens.dark.yellow,\n}\n\nexport const lightColors = {\n ...colorTokens.light.blue,\n ...colorTokens.light.gray,\n ...colorTokens.light.green,\n ...colorTokens.light.orange,\n ...colorTokens.light.pink,\n ...colorTokens.light.purple,\n ...colorTokens.light.red,\n ...colorTokens.light.yellow,\n}\n\nexport const color = {\n ...postfixObjKeys(lightColors, 'Light'),\n ...postfixObjKeys(darkColors, 'Dark'),\n}\n\nfunction postfixObjKeys<\n A extends { [key: string]: Variable<string> | string },\n B extends string\n>(\n obj: A,\n postfix: B\n): {\n [Key in `${keyof A extends string ? keyof A : never}${B}`]: Variable<string> | string\n} {\n return Object.fromEntries(\n Object.entries(obj).map(([k, v]) => [`${k}${postfix}`, v])\n ) as any\n}\n\nexport const radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n true: 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\nexport const tokens = createTokens({\n color,\n radius,\n zIndex,\n space,\n size,\n})\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,gBAAAC,EAAA,eAAAC,EAAA,gBAAAC,EAAA,WAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,WAAAC,EAAA,WAAAC,IAAA,eAAAC,EAAAX,GAAA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CACF,EAEaC,EAAa,CACxB,GAAGD,EAAY,KAAK,KACpB,GAAGA,EAAY,KAAK,KACpB,GAAGA,EAAY,KAAK,MACpB,GAAGA,EAAY,KAAK,OACpB,GAAGA,EAAY,KAAK,KACpB,GAAGA,EAAY,KAAK,OACpB,GAAGA,EAAY,KAAK,IACpB,GAAGA,EAAY,KAAK,MACtB,EAEaE,EAAc,CACzB,GAAGF,EAAY,MAAM,KACrB,GAAGA,EAAY,MAAM,KACrB,GAAGA,EAAY,MAAM,MACrB,GAAGA,EAAY,MAAM,OACrB,GAAGA,EAAY,MAAM,KACrB,GAAGA,EAAY,MAAM,OACrB,GAAGA,EAAY,MAAM,IACrB,GAAGA,EAAY,MAAM,MACvB,EAEaD,EAAQ,CACnB,GAAGiB,EAAed,EAAa,OAAO,EACtC,GAAGc,EAAef,EAAY,MAAM,CACtC,EAEA,SAASe,EAIPC,EACAC,EAGA,CACA,OAAO,OAAO,YACZ,OAAO,QAAQD,CAAG,EAAE,IAAI,CAAC,CAACL,EAAGC,CAAC,IAAM,CAAC,GAAGD,IAAIM,IAAWL,CAAC,CAAC,CAC3D,CACF,CAEO,MAAMV,EAAS,CACpB,EAAG,EACH,EAAG,EACH,EAAG,EACH,EAAG,EACH,EAAG,EACH,KAAM,EACN,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,EAAG,GACH,GAAI,GACJ,GAAI,GACJ,GAAI,EACN,EAEaG,KAAS,gBAAa,CACjC,MAAAP,EACA,OAAAI,EACA,OAAAI,EACA,MAAAF,EACA,KAAAD,CACF,CAAC",
6
- "names": ["tokens_exports", "__export", "color", "colorTokens", "darkColors", "lightColors", "radius", "size", "space", "tokens", "zIndex", "__toCommonJS", "import_colors", "import_web", "spaces", "k", "v", "sizeToSpace", "spacesNegative", "postfixObjKeys", "obj", "postfix"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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;AAEO,MAAM,SAAS;AAAA,EACpB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM;AAAA,EACN,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,MAAM,aAAS,yBAAa;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
6
+ "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export*from"./themes";export*from"./tokens";export*from"@tamagui/colors";
1
+ export * from "./themes";
2
+ export * from "./tokens";
3
+ export * from "@tamagui/colors";
2
4
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './themes'\nexport * from './tokens'\nexport * from '@tamagui/colors'\n"],
5
- "mappings": "AAAA,WAAc,WACd,WAAc,WACd,WAAc",
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,4 @@
1
- export*from"./themes";export*from"./tokens";export*from"@tamagui/colors";
1
+ export * from "./themes";
2
+ export * from "./tokens";
3
+ export * from "@tamagui/colors";
2
4
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './themes'\nexport * from './tokens'\nexport * from '@tamagui/colors'\n"],
5
- "mappings": "AAAA,WAAc,WACd,WAAc,WACd,WAAc",
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }