@matteoaliano/forest-ui 1.1.0 → 1.2.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/bin/sync.mjs +15 -1
- package/dist/{chunk-XJYBU6LC.mjs → chunk-VIQ5IYUZ.mjs} +18 -3
- package/dist/chunk-VIQ5IYUZ.mjs.map +1 -0
- package/dist/index.d.mts +142 -1
- package/dist/index.d.ts +142 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/theme.js +17 -2
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +1 -1
- package/skills/forest-alkemy-plus/SKILL.md +2 -1
- package/skills/forest-alkemy-plus/references/components.md +3 -3
- package/dist/chunk-XJYBU6LC.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -298,7 +298,148 @@ declare const Logo: React$1.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & R
|
|
|
298
298
|
type DatePickerProps = DatePickerProps$1;
|
|
299
299
|
declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
300
300
|
|
|
301
|
-
declare const customChipScales:
|
|
301
|
+
declare const customChipScales: {
|
|
302
|
+
teal: {
|
|
303
|
+
readonly 25: "#f6fefc";
|
|
304
|
+
readonly 50: "#f0fdf9";
|
|
305
|
+
readonly 100: "#ccfbef";
|
|
306
|
+
readonly 200: "#99f6e0";
|
|
307
|
+
readonly 300: "#5fe9d0";
|
|
308
|
+
readonly 400: "#2ed3b7";
|
|
309
|
+
readonly 500: "#15b79e";
|
|
310
|
+
readonly 600: "#0e9384";
|
|
311
|
+
readonly 700: "#107569";
|
|
312
|
+
readonly 800: "#125d56";
|
|
313
|
+
readonly 900: "#134e48";
|
|
314
|
+
readonly 950: "#0a2926";
|
|
315
|
+
};
|
|
316
|
+
orange: {
|
|
317
|
+
readonly 25: "#fefaf5";
|
|
318
|
+
readonly 50: "#fef6ee";
|
|
319
|
+
readonly 100: "#fdead7";
|
|
320
|
+
readonly 200: "#f9dbaf";
|
|
321
|
+
readonly 300: "#f7b27a";
|
|
322
|
+
readonly 400: "#f38744";
|
|
323
|
+
readonly 500: "#ef6820";
|
|
324
|
+
readonly 600: "#e04f16";
|
|
325
|
+
readonly 700: "#b93815";
|
|
326
|
+
readonly 800: "#932f19";
|
|
327
|
+
readonly 900: "#772917";
|
|
328
|
+
readonly 950: "#511c10";
|
|
329
|
+
};
|
|
330
|
+
purple: {
|
|
331
|
+
readonly 25: "#fafaff";
|
|
332
|
+
readonly 50: "#f4f3ff";
|
|
333
|
+
readonly 100: "#ebe9fe";
|
|
334
|
+
readonly 200: "#d9d6fe";
|
|
335
|
+
readonly 300: "#bdb4fe";
|
|
336
|
+
readonly 400: "#9b8afb";
|
|
337
|
+
readonly 500: "#7a5af8";
|
|
338
|
+
readonly 600: "#6938ef";
|
|
339
|
+
readonly 700: "#5925dc";
|
|
340
|
+
readonly 800: "#4a1fb8";
|
|
341
|
+
readonly 900: "#3e1c96";
|
|
342
|
+
readonly 950: "#27115f";
|
|
343
|
+
};
|
|
344
|
+
pink: {
|
|
345
|
+
readonly 25: "#fef6fb";
|
|
346
|
+
readonly 50: "#fdf2fa";
|
|
347
|
+
readonly 100: "#fce7f6";
|
|
348
|
+
readonly 200: "#fcceee";
|
|
349
|
+
readonly 300: "#faa7e0";
|
|
350
|
+
readonly 400: "#f670c7";
|
|
351
|
+
readonly 500: "#ee46bc";
|
|
352
|
+
readonly 600: "#dd2590";
|
|
353
|
+
readonly 700: "#c11574";
|
|
354
|
+
readonly 800: "#9e165f";
|
|
355
|
+
readonly 900: "#851651";
|
|
356
|
+
readonly 950: "#4e0d30";
|
|
357
|
+
};
|
|
358
|
+
fuchsia: {
|
|
359
|
+
readonly 25: "#fefaff";
|
|
360
|
+
readonly 50: "#fdf4ff";
|
|
361
|
+
readonly 100: "#fbe8ff";
|
|
362
|
+
readonly 200: "#f6d0fe";
|
|
363
|
+
readonly 300: "#eeaafd";
|
|
364
|
+
readonly 400: "#e478fa";
|
|
365
|
+
readonly 500: "#d444f1";
|
|
366
|
+
readonly 600: "#ba24d5";
|
|
367
|
+
readonly 700: "#9f1ab1";
|
|
368
|
+
readonly 800: "#821890";
|
|
369
|
+
readonly 900: "#6f1877";
|
|
370
|
+
readonly 950: "#47104c";
|
|
371
|
+
};
|
|
372
|
+
orangeDark: {
|
|
373
|
+
readonly 25: "#fff9f5";
|
|
374
|
+
readonly 50: "#fff4ed";
|
|
375
|
+
readonly 100: "#ffe6d5";
|
|
376
|
+
readonly 200: "#ffd6ae";
|
|
377
|
+
readonly 300: "#ff9c66";
|
|
378
|
+
readonly 400: "#ff692e";
|
|
379
|
+
readonly 500: "#ff4405";
|
|
380
|
+
readonly 600: "#e62e05";
|
|
381
|
+
readonly 700: "#bc1b06";
|
|
382
|
+
readonly 800: "#97180c";
|
|
383
|
+
readonly 900: "#771a0d";
|
|
384
|
+
readonly 950: "#57130a";
|
|
385
|
+
};
|
|
386
|
+
green: {
|
|
387
|
+
readonly 25: "#f6fef9";
|
|
388
|
+
readonly 50: "#edfcf2";
|
|
389
|
+
readonly 100: "#d3f8df";
|
|
390
|
+
readonly 200: "#aaf0c4";
|
|
391
|
+
readonly 300: "#73e2a3";
|
|
392
|
+
readonly 400: "#3ccb7f";
|
|
393
|
+
readonly 500: "#16b364";
|
|
394
|
+
readonly 600: "#099250";
|
|
395
|
+
readonly 700: "#087443";
|
|
396
|
+
readonly 800: "#095c37";
|
|
397
|
+
readonly 900: "#084c2e";
|
|
398
|
+
readonly 950: "#052e1c";
|
|
399
|
+
};
|
|
400
|
+
indigo: {
|
|
401
|
+
readonly 25: "#f5f8ff";
|
|
402
|
+
readonly 50: "#eef4ff";
|
|
403
|
+
readonly 100: "#e0eaff";
|
|
404
|
+
readonly 200: "#c7d7fe";
|
|
405
|
+
readonly 300: "#a4bcfd";
|
|
406
|
+
readonly 400: "#8098f9";
|
|
407
|
+
readonly 500: "#6172f3";
|
|
408
|
+
readonly 600: "#444ce7";
|
|
409
|
+
readonly 700: "#3538cd";
|
|
410
|
+
readonly 800: "#2d31a6";
|
|
411
|
+
readonly 900: "#2d3282";
|
|
412
|
+
readonly 950: "#1f235b";
|
|
413
|
+
};
|
|
414
|
+
rose: {
|
|
415
|
+
readonly 25: "#fff5f6";
|
|
416
|
+
readonly 50: "#fff1f3";
|
|
417
|
+
readonly 100: "#ffe4e8";
|
|
418
|
+
readonly 200: "#fecdd6";
|
|
419
|
+
readonly 300: "#fea3b4";
|
|
420
|
+
readonly 400: "#fd6f8e";
|
|
421
|
+
readonly 500: "#f63d68";
|
|
422
|
+
readonly 600: "#e31b54";
|
|
423
|
+
readonly 700: "#c01048";
|
|
424
|
+
readonly 800: "#a11043";
|
|
425
|
+
readonly 900: "#89123e";
|
|
426
|
+
readonly 950: "#510b24";
|
|
427
|
+
};
|
|
428
|
+
blueLight: {
|
|
429
|
+
readonly 25: "#f5fbff";
|
|
430
|
+
readonly 50: "#f0f9ff";
|
|
431
|
+
readonly 100: "#e0f2fe";
|
|
432
|
+
readonly 200: "#b9e6fe";
|
|
433
|
+
readonly 300: "#7cd4fd";
|
|
434
|
+
readonly 400: "#36bffa";
|
|
435
|
+
readonly 500: "#0ba5ec";
|
|
436
|
+
readonly 600: "#0086c9";
|
|
437
|
+
readonly 700: "#026aa2";
|
|
438
|
+
readonly 800: "#065986";
|
|
439
|
+
readonly 900: "#0b4a6f";
|
|
440
|
+
readonly 950: "#062c41";
|
|
441
|
+
};
|
|
442
|
+
};
|
|
302
443
|
type ForestChipColor = ChipProps["color"] | keyof typeof customChipScales;
|
|
303
444
|
interface ForestChipProps extends Omit<ChipProps, "color"> {
|
|
304
445
|
color?: ForestChipColor;
|
package/dist/index.d.ts
CHANGED
|
@@ -298,7 +298,148 @@ declare const Logo: React$1.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & R
|
|
|
298
298
|
type DatePickerProps = DatePickerProps$1;
|
|
299
299
|
declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
300
300
|
|
|
301
|
-
declare const customChipScales:
|
|
301
|
+
declare const customChipScales: {
|
|
302
|
+
teal: {
|
|
303
|
+
readonly 25: "#f6fefc";
|
|
304
|
+
readonly 50: "#f0fdf9";
|
|
305
|
+
readonly 100: "#ccfbef";
|
|
306
|
+
readonly 200: "#99f6e0";
|
|
307
|
+
readonly 300: "#5fe9d0";
|
|
308
|
+
readonly 400: "#2ed3b7";
|
|
309
|
+
readonly 500: "#15b79e";
|
|
310
|
+
readonly 600: "#0e9384";
|
|
311
|
+
readonly 700: "#107569";
|
|
312
|
+
readonly 800: "#125d56";
|
|
313
|
+
readonly 900: "#134e48";
|
|
314
|
+
readonly 950: "#0a2926";
|
|
315
|
+
};
|
|
316
|
+
orange: {
|
|
317
|
+
readonly 25: "#fefaf5";
|
|
318
|
+
readonly 50: "#fef6ee";
|
|
319
|
+
readonly 100: "#fdead7";
|
|
320
|
+
readonly 200: "#f9dbaf";
|
|
321
|
+
readonly 300: "#f7b27a";
|
|
322
|
+
readonly 400: "#f38744";
|
|
323
|
+
readonly 500: "#ef6820";
|
|
324
|
+
readonly 600: "#e04f16";
|
|
325
|
+
readonly 700: "#b93815";
|
|
326
|
+
readonly 800: "#932f19";
|
|
327
|
+
readonly 900: "#772917";
|
|
328
|
+
readonly 950: "#511c10";
|
|
329
|
+
};
|
|
330
|
+
purple: {
|
|
331
|
+
readonly 25: "#fafaff";
|
|
332
|
+
readonly 50: "#f4f3ff";
|
|
333
|
+
readonly 100: "#ebe9fe";
|
|
334
|
+
readonly 200: "#d9d6fe";
|
|
335
|
+
readonly 300: "#bdb4fe";
|
|
336
|
+
readonly 400: "#9b8afb";
|
|
337
|
+
readonly 500: "#7a5af8";
|
|
338
|
+
readonly 600: "#6938ef";
|
|
339
|
+
readonly 700: "#5925dc";
|
|
340
|
+
readonly 800: "#4a1fb8";
|
|
341
|
+
readonly 900: "#3e1c96";
|
|
342
|
+
readonly 950: "#27115f";
|
|
343
|
+
};
|
|
344
|
+
pink: {
|
|
345
|
+
readonly 25: "#fef6fb";
|
|
346
|
+
readonly 50: "#fdf2fa";
|
|
347
|
+
readonly 100: "#fce7f6";
|
|
348
|
+
readonly 200: "#fcceee";
|
|
349
|
+
readonly 300: "#faa7e0";
|
|
350
|
+
readonly 400: "#f670c7";
|
|
351
|
+
readonly 500: "#ee46bc";
|
|
352
|
+
readonly 600: "#dd2590";
|
|
353
|
+
readonly 700: "#c11574";
|
|
354
|
+
readonly 800: "#9e165f";
|
|
355
|
+
readonly 900: "#851651";
|
|
356
|
+
readonly 950: "#4e0d30";
|
|
357
|
+
};
|
|
358
|
+
fuchsia: {
|
|
359
|
+
readonly 25: "#fefaff";
|
|
360
|
+
readonly 50: "#fdf4ff";
|
|
361
|
+
readonly 100: "#fbe8ff";
|
|
362
|
+
readonly 200: "#f6d0fe";
|
|
363
|
+
readonly 300: "#eeaafd";
|
|
364
|
+
readonly 400: "#e478fa";
|
|
365
|
+
readonly 500: "#d444f1";
|
|
366
|
+
readonly 600: "#ba24d5";
|
|
367
|
+
readonly 700: "#9f1ab1";
|
|
368
|
+
readonly 800: "#821890";
|
|
369
|
+
readonly 900: "#6f1877";
|
|
370
|
+
readonly 950: "#47104c";
|
|
371
|
+
};
|
|
372
|
+
orangeDark: {
|
|
373
|
+
readonly 25: "#fff9f5";
|
|
374
|
+
readonly 50: "#fff4ed";
|
|
375
|
+
readonly 100: "#ffe6d5";
|
|
376
|
+
readonly 200: "#ffd6ae";
|
|
377
|
+
readonly 300: "#ff9c66";
|
|
378
|
+
readonly 400: "#ff692e";
|
|
379
|
+
readonly 500: "#ff4405";
|
|
380
|
+
readonly 600: "#e62e05";
|
|
381
|
+
readonly 700: "#bc1b06";
|
|
382
|
+
readonly 800: "#97180c";
|
|
383
|
+
readonly 900: "#771a0d";
|
|
384
|
+
readonly 950: "#57130a";
|
|
385
|
+
};
|
|
386
|
+
green: {
|
|
387
|
+
readonly 25: "#f6fef9";
|
|
388
|
+
readonly 50: "#edfcf2";
|
|
389
|
+
readonly 100: "#d3f8df";
|
|
390
|
+
readonly 200: "#aaf0c4";
|
|
391
|
+
readonly 300: "#73e2a3";
|
|
392
|
+
readonly 400: "#3ccb7f";
|
|
393
|
+
readonly 500: "#16b364";
|
|
394
|
+
readonly 600: "#099250";
|
|
395
|
+
readonly 700: "#087443";
|
|
396
|
+
readonly 800: "#095c37";
|
|
397
|
+
readonly 900: "#084c2e";
|
|
398
|
+
readonly 950: "#052e1c";
|
|
399
|
+
};
|
|
400
|
+
indigo: {
|
|
401
|
+
readonly 25: "#f5f8ff";
|
|
402
|
+
readonly 50: "#eef4ff";
|
|
403
|
+
readonly 100: "#e0eaff";
|
|
404
|
+
readonly 200: "#c7d7fe";
|
|
405
|
+
readonly 300: "#a4bcfd";
|
|
406
|
+
readonly 400: "#8098f9";
|
|
407
|
+
readonly 500: "#6172f3";
|
|
408
|
+
readonly 600: "#444ce7";
|
|
409
|
+
readonly 700: "#3538cd";
|
|
410
|
+
readonly 800: "#2d31a6";
|
|
411
|
+
readonly 900: "#2d3282";
|
|
412
|
+
readonly 950: "#1f235b";
|
|
413
|
+
};
|
|
414
|
+
rose: {
|
|
415
|
+
readonly 25: "#fff5f6";
|
|
416
|
+
readonly 50: "#fff1f3";
|
|
417
|
+
readonly 100: "#ffe4e8";
|
|
418
|
+
readonly 200: "#fecdd6";
|
|
419
|
+
readonly 300: "#fea3b4";
|
|
420
|
+
readonly 400: "#fd6f8e";
|
|
421
|
+
readonly 500: "#f63d68";
|
|
422
|
+
readonly 600: "#e31b54";
|
|
423
|
+
readonly 700: "#c01048";
|
|
424
|
+
readonly 800: "#a11043";
|
|
425
|
+
readonly 900: "#89123e";
|
|
426
|
+
readonly 950: "#510b24";
|
|
427
|
+
};
|
|
428
|
+
blueLight: {
|
|
429
|
+
readonly 25: "#f5fbff";
|
|
430
|
+
readonly 50: "#f0f9ff";
|
|
431
|
+
readonly 100: "#e0f2fe";
|
|
432
|
+
readonly 200: "#b9e6fe";
|
|
433
|
+
readonly 300: "#7cd4fd";
|
|
434
|
+
readonly 400: "#36bffa";
|
|
435
|
+
readonly 500: "#0ba5ec";
|
|
436
|
+
readonly 600: "#0086c9";
|
|
437
|
+
readonly 700: "#026aa2";
|
|
438
|
+
readonly 800: "#065986";
|
|
439
|
+
readonly 900: "#0b4a6f";
|
|
440
|
+
readonly 950: "#062c41";
|
|
441
|
+
};
|
|
442
|
+
};
|
|
302
443
|
type ForestChipColor = ChipProps["color"] | keyof typeof customChipScales;
|
|
303
444
|
interface ForestChipProps extends Omit<ChipProps, "color"> {
|
|
304
445
|
color?: ForestChipColor;
|
package/dist/index.js
CHANGED
|
@@ -1262,7 +1262,19 @@ function buildComponents(tokens2) {
|
|
|
1262
1262
|
root: {
|
|
1263
1263
|
width: 44,
|
|
1264
1264
|
height: 24,
|
|
1265
|
-
padding: 0
|
|
1265
|
+
padding: 0,
|
|
1266
|
+
// MUI's `size="small"` variant only half-applies here: the theme pins
|
|
1267
|
+
// the track at the wide 44px medium geometry, but MUI still shrinks the
|
|
1268
|
+
// thumb (16px), bumps switchBase padding (4px), and cuts the checked
|
|
1269
|
+
// travel to 16px — leaving the thumb parked mid-track. Forest ships a
|
|
1270
|
+
// single calibrated 24px switch, so neutralize `small` back to it.
|
|
1271
|
+
"&.MuiSwitch-sizeSmall": {
|
|
1272
|
+
"& .MuiSwitch-switchBase": {
|
|
1273
|
+
padding: 2,
|
|
1274
|
+
"&.Mui-checked": { transform: "translateX(20px)" }
|
|
1275
|
+
},
|
|
1276
|
+
"& .MuiSwitch-thumb": { width: 20, height: 20 }
|
|
1277
|
+
}
|
|
1266
1278
|
},
|
|
1267
1279
|
switchBase: {
|
|
1268
1280
|
padding: 2,
|
|
@@ -2360,8 +2372,11 @@ function buildComponents(tokens2) {
|
|
|
2360
2372
|
}
|
|
2361
2373
|
},
|
|
2362
2374
|
staticTooltipLabel: {
|
|
2375
|
+
// Match MuiTooltip: inverted face (charcoal in light, near-white in
|
|
2376
|
+
// dark) with on-solid fg that inverts WITH it. text.white is
|
|
2377
|
+
// mode-invariant and vanished on the dark-mode light face.
|
|
2363
2378
|
backgroundColor: bg4.primarySolid,
|
|
2364
|
-
color:
|
|
2379
|
+
color: buttonColors4.primary.fg,
|
|
2365
2380
|
fontSize: 12,
|
|
2366
2381
|
fontWeight: 600,
|
|
2367
2382
|
borderRadius: radius4.md,
|
|
@@ -4845,7 +4860,7 @@ var customChipScales = {
|
|
|
4845
4860
|
blueLight: misc.blueLight
|
|
4846
4861
|
};
|
|
4847
4862
|
function Chip({ color, deleteIcon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_CloseOutlined.default, {}), sx, ...props }) {
|
|
4848
|
-
const scale = color &&
|
|
4863
|
+
const scale = color && color in customChipScales ? customChipScales[color] : void 0;
|
|
4849
4864
|
if (scale) {
|
|
4850
4865
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4851
4866
|
import_Chip.default,
|