@lemontech/sour-theme 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +102 -83
- package/dist/theme/antdTheme.d.ts +1 -0
- package/dist/theme/productThemes.d.ts +4 -0
- package/dist/theme/tokens.d.ts +1 -1
- package/package.json +6 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d='"Open Sans", system-ui, -apple-system, sans-serif',i={zero:0,xxs:4,xs:8,s:16,m:24,l:32,xl:40,xxl:48},o={xxxs:12,xxs:14,xs:16,s:20,m:24,l:32,xl:40,xxl:48,xxxl:64},t={xxxs:18/o.xxxs,xxs:21/o.xxs,xs:24/o.xs,s:30/o.s,m:36/o.m,l:48/o.l,xl:60/o.xl,xxl:72/o.xxl,xxxl:96/o.xxxl},H={xxxs:.25,xxs:.1,xs:.1,s:0,m:0,l:.25,xl:0,xxl:.5,xxxl:1.5},g={s:4,m:8,l:16},T={xs:1,s:2,m:3,l:8},s={grey:{0:"#fafafa",50:"#f2f2f2",100:"#e3e3e3",200:"#d3d3d3",300:"#b3b3b3",400:"#9c9b9b",500:"#7b7a7a",600:"#5e5e5e",700:"#424242",800:"#303030",900:"#262626"},blue:{0:"#f5faff",50:"#e0f0ff",100:"#cde4f9",200:"#a7cdf1",300:"#7cb3e7",400:"#62a2df",500:"#4681b9",600:"#3f6a92",700:"#2f4d69",800:"#223649",900:"#1b2937"},green:{0:"#f5fffa",50:"#ebfff6",100:"#cdf3e3",200:"#99e1c3",300:"#66cca1",400:"#39bc84",500:"#329f71",600:"#2a7e5b",700:"#26664b",800:"#1e4836",900:"#19382c"},yellow:{0:"#fffdf5",50:"#fffbeb",100:"#fbf1c6",200:"#f6df83",300:"#f3ce3a",400:"#d8ae03",500:"#b28f00",600:"#8a6f00",700:"#685403",800:"#483a04",900:"#3b3107"},red:{0:"#fff5f5",50:"#ffe1e0",100:"#fcccca",200:"#f8a4a0",300:"#f37872",400:"#ef5b53",500:"#cd433c",600:"#b12d25",700:"#861e18",800:"#601410",900:"#450f0c"},charcoal:{0:"#f1efef",50:"#e2dfdf",100:"#cdc6c8",200:"#a99ea0",300:"#87787c",400:"#695d60",500:"#51484a",600:"#41393b",700:"#312b2c",800:"#231f20",900:"#1b1819"},lemon:{0:"#f9fcf7",50:"#e9f4e1",100:"#cbe7bb",200:"#abd991",300:"#8bca68",400:"#6cb940",500:"#5d9f37",600:"#4b812d",700:"#355b20",800:"#254016",900:"#1a2d10"},orange:{0:"#fff9f5",50:"#feede1",100:"#fdd4b9",200:"#fcb688",300:"#fb9756",400:"#fa7b29",500:"#db5a05",600:"#a94504",700:"#773103",800:"#502102",900:"#3c1801"},purple:{0:"#faf6fe",50:"#f0e3fd",100:"#dfc2fa",200:"#c693f6",300:"#ab60f1",400:"#8f2ced",500:"#7112ca",600:"#540d96",700:"#3f0a71",800:"#2c0750",900:"#22053d"},azure:{0:"#f5fbff",50:"#e0f3ff",100:"#bde5ff",200:"#85ceff",300:"#52baff",400:"#059cff",500:"#007bcc",600:"#005c99",700:"#00406b",800:"#003152",900:"#00253d"}},b={light:300,regular:400,semibold:600,bold:700},S={fontFamily:d,spacing:i,fontSize:o,lineHeight:t,letterSpacing:H,radius:g,lineWidth:T,color:s,fontWeight:b},{green:c,yellow:l,red:f,azure:n,grey:e}=s,a={token:{fontFamily:d,fontWeightStrong:b.semibold,fontSizeSM:o.xxxs,fontSize:o.xxs,fontSizeLG:o.xs,fontSizeXL:o.s,fontSizeHeading5:o.xs,fontSizeHeading4:o.s,fontSizeHeading3:o.m,fontSizeHeading2:o.l,fontSizeHeading1:o.xl,lineHeightSM:t.xxxs,lineHeight:t.xxs,lineHeightLG:t.xs,lineHeightHeading5:t.xs,lineHeightHeading4:t.s,lineHeightHeading3:t.m,lineHeightHeading2:t.l,lineHeightHeading1:t.xl,colorSuccess:c[500],colorSuccessBg:c[50],colorSuccessBgHover:c[100],colorSuccessBorder:c[200],colorSuccessBorderHover:c[300],colorSuccessHover:c[400],colorSuccessActive:c[600],colorSuccessTextHover:c[700],colorSuccessText:c[800],colorSuccessTextActive:c[900],colorWarning:l[500],colorWarningBg:l[50],colorWarningBgHover:l[100],colorWarningBorder:l[200],colorWarningBorderHover:l[300],colorWarningHover:l[400],colorWarningActive:l[600],colorWarningTextHover:l[700],colorWarningText:l[800],colorWarningTextActive:l[900],colorError:f[500],colorErrorBg:f[50],colorErrorBgHover:f[100],colorErrorBorder:f[200],colorErrorBorderHover:f[300],colorErrorHover:f[400],colorErrorActive:f[600],colorErrorTextHover:f[700],colorErrorText:f[800],colorErrorTextActive:f[900],colorInfo:n[500],colorInfoBg:n[50],colorInfoBgHover:n[100],colorInfoBorder:n[200],colorInfoBorderHover:n[300],colorInfoHover:n[400],colorInfoActive:n[600],colorInfoTextHover:n[700],colorInfoText:n[800],colorInfoTextActive:n[900],colorBgLayout:e[0],colorBgContainer:"#FFFFFF",colorBgElevated:"#FFFFFF",colorBorder:e[200],colorBorderSecondary:e[100],colorFill:e[100],colorFillSecondary:e[50],colorFillTertiary:e[0],colorFillQuaternary:e[0],colorText:e[900],colorTextSecondary:e[600],colorTextTertiary:e[400],colorTextQuaternary:e[300],colorTextDisabled:e[300],colorTextPlaceholder:e[400],sizeXXS:i.xxs,sizeXS:i.xs,sizeLG:i.m,sizeXL:i.l,sizeXXL:i.xxl},components:{Tag:{borderRadiusSM:g.l}}},v=a;function x(m){const r=s[m];return{colorPrimary:r[500],colorPrimaryBg:r[50],colorPrimaryBgHover:r[100],colorPrimaryBorder:r[200],colorPrimaryBorderHover:r[300],colorPrimaryHover:r[400],colorPrimaryActive:r[600],colorPrimaryTextHover:r[700],colorPrimaryText:r[800],colorPrimaryTextActive:r[900]}}const u={...a,token:{...a.token,...x("blue")}},y={...a,token:{...a.token,...x("orange")}},h={...a,token:{...a.token,...x("purple")}};exports.casetrackingFirmsTheme=y;exports.casetrackingTheme=h;exports.lemonsuiteTheme=u;exports.rawTheme=a;exports.theme=v;exports.tokens=S;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const d = '"Open Sans", system-ui, -apple-system, sans-serif', i = {
|
|
2
2
|
zero: 0,
|
|
3
3
|
xxs: 4,
|
|
4
4
|
xs: 8,
|
|
@@ -17,7 +17,7 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
17
17
|
xl: 40,
|
|
18
18
|
xxl: 48,
|
|
19
19
|
xxxl: 64
|
|
20
|
-
},
|
|
20
|
+
}, t = {
|
|
21
21
|
xxxs: 18 / o.xxxs,
|
|
22
22
|
xxs: 21 / o.xxs,
|
|
23
23
|
xs: 24 / o.xs,
|
|
@@ -27,7 +27,7 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
27
27
|
xl: 60 / o.xl,
|
|
28
28
|
xxl: 72 / o.xxl,
|
|
29
29
|
xxxl: 96 / o.xxxl
|
|
30
|
-
},
|
|
30
|
+
}, m = {
|
|
31
31
|
xxxs: 0.25,
|
|
32
32
|
xxs: 0.1,
|
|
33
33
|
xs: 0.1,
|
|
@@ -37,11 +37,11 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
37
37
|
xl: 0,
|
|
38
38
|
xxl: 0.5,
|
|
39
39
|
xxxl: 1.5
|
|
40
|
-
},
|
|
40
|
+
}, g = {
|
|
41
41
|
s: 4,
|
|
42
42
|
m: 8,
|
|
43
43
|
l: 16
|
|
44
|
-
},
|
|
44
|
+
}, v = {
|
|
45
45
|
xs: 1,
|
|
46
46
|
s: 2,
|
|
47
47
|
m: 3,
|
|
@@ -177,25 +177,25 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
177
177
|
800: "#003152",
|
|
178
178
|
900: "#00253d"
|
|
179
179
|
}
|
|
180
|
-
},
|
|
180
|
+
}, b = {
|
|
181
181
|
light: 300,
|
|
182
182
|
regular: 400,
|
|
183
183
|
semibold: 600,
|
|
184
184
|
bold: 700
|
|
185
|
-
},
|
|
186
|
-
fontFamily:
|
|
187
|
-
spacing:
|
|
185
|
+
}, S = {
|
|
186
|
+
fontFamily: d,
|
|
187
|
+
spacing: i,
|
|
188
188
|
fontSize: o,
|
|
189
|
-
lineHeight:
|
|
190
|
-
letterSpacing:
|
|
191
|
-
radius:
|
|
192
|
-
lineWidth:
|
|
189
|
+
lineHeight: t,
|
|
190
|
+
letterSpacing: m,
|
|
191
|
+
radius: g,
|
|
192
|
+
lineWidth: v,
|
|
193
193
|
color: s,
|
|
194
|
-
fontWeight:
|
|
195
|
-
}, { green:
|
|
194
|
+
fontWeight: b
|
|
195
|
+
}, { green: c, yellow: l, red: f, azure: n, grey: e } = s, a = {
|
|
196
196
|
token: {
|
|
197
|
-
fontFamily:
|
|
198
|
-
fontWeightStrong:
|
|
197
|
+
fontFamily: d,
|
|
198
|
+
fontWeightStrong: b.semibold,
|
|
199
199
|
fontSizeSM: o.xxxs,
|
|
200
200
|
fontSize: o.xxs,
|
|
201
201
|
// 14px (base)
|
|
@@ -206,64 +206,54 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
206
206
|
fontSizeHeading3: o.m,
|
|
207
207
|
fontSizeHeading2: o.l,
|
|
208
208
|
fontSizeHeading1: o.xl,
|
|
209
|
-
lineHeightSM:
|
|
210
|
-
lineHeight:
|
|
211
|
-
lineHeightLG:
|
|
212
|
-
lineHeightHeading5:
|
|
213
|
-
lineHeightHeading4:
|
|
214
|
-
lineHeightHeading3:
|
|
215
|
-
lineHeightHeading2:
|
|
216
|
-
lineHeightHeading1:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
colorInfo: f[500],
|
|
258
|
-
colorInfoBg: f[50],
|
|
259
|
-
colorInfoBgHover: f[100],
|
|
260
|
-
colorInfoBorder: f[200],
|
|
261
|
-
colorInfoBorderHover: f[300],
|
|
262
|
-
colorInfoHover: f[400],
|
|
263
|
-
colorInfoActive: f[600],
|
|
264
|
-
colorInfoTextHover: f[700],
|
|
265
|
-
colorInfoText: f[800],
|
|
266
|
-
colorInfoTextActive: f[900],
|
|
209
|
+
lineHeightSM: t.xxxs,
|
|
210
|
+
lineHeight: t.xxs,
|
|
211
|
+
lineHeightLG: t.xs,
|
|
212
|
+
lineHeightHeading5: t.xs,
|
|
213
|
+
lineHeightHeading4: t.s,
|
|
214
|
+
lineHeightHeading3: t.m,
|
|
215
|
+
lineHeightHeading2: t.l,
|
|
216
|
+
lineHeightHeading1: t.xl,
|
|
217
|
+
colorSuccess: c[500],
|
|
218
|
+
colorSuccessBg: c[50],
|
|
219
|
+
colorSuccessBgHover: c[100],
|
|
220
|
+
colorSuccessBorder: c[200],
|
|
221
|
+
colorSuccessBorderHover: c[300],
|
|
222
|
+
colorSuccessHover: c[400],
|
|
223
|
+
colorSuccessActive: c[600],
|
|
224
|
+
colorSuccessTextHover: c[700],
|
|
225
|
+
colorSuccessText: c[800],
|
|
226
|
+
colorSuccessTextActive: c[900],
|
|
227
|
+
colorWarning: l[500],
|
|
228
|
+
colorWarningBg: l[50],
|
|
229
|
+
colorWarningBgHover: l[100],
|
|
230
|
+
colorWarningBorder: l[200],
|
|
231
|
+
colorWarningBorderHover: l[300],
|
|
232
|
+
colorWarningHover: l[400],
|
|
233
|
+
colorWarningActive: l[600],
|
|
234
|
+
colorWarningTextHover: l[700],
|
|
235
|
+
colorWarningText: l[800],
|
|
236
|
+
colorWarningTextActive: l[900],
|
|
237
|
+
colorError: f[500],
|
|
238
|
+
colorErrorBg: f[50],
|
|
239
|
+
colorErrorBgHover: f[100],
|
|
240
|
+
colorErrorBorder: f[200],
|
|
241
|
+
colorErrorBorderHover: f[300],
|
|
242
|
+
colorErrorHover: f[400],
|
|
243
|
+
colorErrorActive: f[600],
|
|
244
|
+
colorErrorTextHover: f[700],
|
|
245
|
+
colorErrorText: f[800],
|
|
246
|
+
colorErrorTextActive: f[900],
|
|
247
|
+
colorInfo: n[500],
|
|
248
|
+
colorInfoBg: n[50],
|
|
249
|
+
colorInfoBgHover: n[100],
|
|
250
|
+
colorInfoBorder: n[200],
|
|
251
|
+
colorInfoBorderHover: n[300],
|
|
252
|
+
colorInfoHover: n[400],
|
|
253
|
+
colorInfoActive: n[600],
|
|
254
|
+
colorInfoTextHover: n[700],
|
|
255
|
+
colorInfoText: n[800],
|
|
256
|
+
colorInfoTextActive: n[900],
|
|
267
257
|
colorBgLayout: e[0],
|
|
268
258
|
colorBgContainer: "#FFFFFF",
|
|
269
259
|
colorBgElevated: "#FFFFFF",
|
|
@@ -279,19 +269,48 @@ const i = '"Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "
|
|
|
279
269
|
colorTextQuaternary: e[300],
|
|
280
270
|
colorTextDisabled: e[300],
|
|
281
271
|
colorTextPlaceholder: e[400],
|
|
282
|
-
sizeXXS:
|
|
283
|
-
sizeXS:
|
|
284
|
-
sizeLG:
|
|
285
|
-
sizeXL:
|
|
286
|
-
sizeXXL:
|
|
272
|
+
sizeXXS: i.xxs,
|
|
273
|
+
sizeXS: i.xs,
|
|
274
|
+
sizeLG: i.m,
|
|
275
|
+
sizeXL: i.l,
|
|
276
|
+
sizeXXL: i.xxl
|
|
287
277
|
},
|
|
288
278
|
components: {
|
|
289
279
|
Tag: {
|
|
290
|
-
borderRadiusSM:
|
|
280
|
+
borderRadiusSM: g.l
|
|
291
281
|
}
|
|
292
282
|
}
|
|
283
|
+
}, T = a;
|
|
284
|
+
function x(H) {
|
|
285
|
+
const r = s[H];
|
|
286
|
+
return {
|
|
287
|
+
colorPrimary: r[500],
|
|
288
|
+
colorPrimaryBg: r[50],
|
|
289
|
+
colorPrimaryBgHover: r[100],
|
|
290
|
+
colorPrimaryBorder: r[200],
|
|
291
|
+
colorPrimaryBorderHover: r[300],
|
|
292
|
+
colorPrimaryHover: r[400],
|
|
293
|
+
colorPrimaryActive: r[600],
|
|
294
|
+
colorPrimaryTextHover: r[700],
|
|
295
|
+
colorPrimaryText: r[800],
|
|
296
|
+
colorPrimaryTextActive: r[900]
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
const u = {
|
|
300
|
+
...a,
|
|
301
|
+
token: { ...a.token, ...x("blue") }
|
|
302
|
+
}, y = {
|
|
303
|
+
...a,
|
|
304
|
+
token: { ...a.token, ...x("orange") }
|
|
305
|
+
}, B = {
|
|
306
|
+
...a,
|
|
307
|
+
token: { ...a.token, ...x("purple") }
|
|
293
308
|
};
|
|
294
309
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
310
|
+
y as casetrackingFirmsTheme,
|
|
311
|
+
B as casetrackingTheme,
|
|
312
|
+
u as lemonsuiteTheme,
|
|
313
|
+
a as rawTheme,
|
|
314
|
+
T as theme,
|
|
315
|
+
S as tokens
|
|
297
316
|
};
|
package/dist/theme/tokens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fontFamily = "\"Open Sans\", -apple-system,
|
|
1
|
+
export declare const fontFamily = "\"Open Sans\", system-ui, -apple-system, sans-serif";
|
|
2
2
|
export declare const spacing: Record<string, number>;
|
|
3
3
|
export declare const fontSize: Record<string, number>;
|
|
4
4
|
export declare const lineHeight: Record<string, number>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemontech/sour-theme",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"description": "Tema para antd personalizado para proyectos de Lemontech",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"react-dom": ">=18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@ant-design/icons": "^6.1.0",
|
|
44
45
|
"@chromatic-com/storybook": "^5.0.1",
|
|
45
46
|
"@eslint/js": "^9.39.1",
|
|
46
47
|
"@storybook/addon-a11y": "^10.2.15",
|
|
@@ -53,7 +54,6 @@
|
|
|
53
54
|
"@types/react": "^19.2.7",
|
|
54
55
|
"@types/react-dom": "^19.2.3",
|
|
55
56
|
"@vitejs/plugin-react": "^5.1.1",
|
|
56
|
-
"@ant-design/icons": "^6.1.0",
|
|
57
57
|
"@vitest/browser-playwright": "^4.0.18",
|
|
58
58
|
"@vitest/coverage-v8": "^4.0.18",
|
|
59
59
|
"autoprefixer": "^10.4.27",
|
|
@@ -73,6 +73,10 @@
|
|
|
73
73
|
"vite": "^7.3.1",
|
|
74
74
|
"vitest": "^4.0.18"
|
|
75
75
|
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@ant-design/cssinjs": "^2.1.2",
|
|
78
|
+
"@tailwindcss/vite": "^4.3.0"
|
|
79
|
+
},
|
|
76
80
|
"scripts": {
|
|
77
81
|
"clean": "rm -rf dist",
|
|
78
82
|
"build": "tsc -b && vite build",
|