@idealyst/tooling 1.2.39 → 1.2.41

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 CHANGED
@@ -264,7 +264,8 @@ function analyzeThemeSource(themePath, options = {}) {
264
264
  log(`Processing ${calls.length} builder method calls`);
265
265
  for (const { method, args } of calls) {
266
266
  switch (method) {
267
- case "addIntent": {
267
+ case "addIntent":
268
+ case "setIntent": {
268
269
  const name = getStringValue2(args[0]);
269
270
  if (name && !values.intents.includes(name)) {
270
271
  values.intents.push(name);
@@ -397,6 +398,41 @@ function analyzeThemeSource(themePath, options = {}) {
397
398
  }
398
399
  break;
399
400
  }
401
+ case "addSurfaceColor":
402
+ case "setSurfaceColor": {
403
+ const name = getStringValue2(args[0]);
404
+ if (name && !values.surfaceColors.includes(name)) {
405
+ values.surfaceColors.push(name);
406
+ log(` Found surface color: ${name}`);
407
+ }
408
+ break;
409
+ }
410
+ case "addTextColor":
411
+ case "setTextColor": {
412
+ const name = getStringValue2(args[0]);
413
+ if (name && !values.textColors.includes(name)) {
414
+ values.textColors.push(name);
415
+ log(` Found text color: ${name}`);
416
+ }
417
+ break;
418
+ }
419
+ case "addBorderColor":
420
+ case "setBorderColor": {
421
+ const name = getStringValue2(args[0]);
422
+ if (name && !values.borderColors.includes(name)) {
423
+ values.borderColors.push(name);
424
+ log(` Found border color: ${name}`);
425
+ }
426
+ break;
427
+ }
428
+ case "addPalletColor":
429
+ case "setPalletColor": {
430
+ const name = getStringValue2(args[0]);
431
+ if (name) {
432
+ log(` Found pallet color: ${name}`);
433
+ }
434
+ break;
435
+ }
400
436
  case "build":
401
437
  break;
402
438
  default:
@@ -551,7 +587,8 @@ function analyzeTheme(themePath, verbose = false) {
551
587
  log("Processing", calls.length, "builder method calls");
552
588
  for (const { method, args } of calls) {
553
589
  switch (method) {
554
- case "addIntent": {
590
+ case "addIntent":
591
+ case "setIntent": {
555
592
  const name = getStringValue(args[0]);
556
593
  if (name && !values.intents.includes(name)) {
557
594
  values.intents.push(name);
@@ -623,6 +660,41 @@ function analyzeTheme(themePath, verbose = false) {
623
660
  }
624
661
  break;
625
662
  }
663
+ case "addSurfaceColor":
664
+ case "setSurfaceColor": {
665
+ const name = getStringValue(args[0]);
666
+ if (name && !values.surfaceColors.includes(name)) {
667
+ values.surfaceColors.push(name);
668
+ log(" Found surface color:", name);
669
+ }
670
+ break;
671
+ }
672
+ case "addTextColor":
673
+ case "setTextColor": {
674
+ const name = getStringValue(args[0]);
675
+ if (name && !values.textColors.includes(name)) {
676
+ values.textColors.push(name);
677
+ log(" Found text color:", name);
678
+ }
679
+ break;
680
+ }
681
+ case "addBorderColor":
682
+ case "setBorderColor": {
683
+ const name = getStringValue(args[0]);
684
+ if (name && !values.borderColors.includes(name)) {
685
+ values.borderColors.push(name);
686
+ log(" Found border color:", name);
687
+ }
688
+ break;
689
+ }
690
+ case "addPalletColor":
691
+ case "setPalletColor": {
692
+ const name = getStringValue(args[0]);
693
+ if (name) {
694
+ log(" Found pallet color:", name);
695
+ }
696
+ break;
697
+ }
626
698
  case "build":
627
699
  break;
628
700
  default:
@@ -805,13 +877,19 @@ function loadThemeKeys(opts, rootDir, _babelTypes, verboseMode = false) {
805
877
  sizes: themeValues.sizes,
806
878
  radii: themeValues.radii,
807
879
  shadows: themeValues.shadows,
808
- typography: themeValues.typography
880
+ typography: themeValues.typography,
881
+ surfaceColors: themeValues.surfaceColors,
882
+ textColors: themeValues.textColors,
883
+ borderColors: themeValues.borderColors
809
884
  };
810
885
  if (verboseMode) {
811
886
  console.log("[idealyst-plugin] Extracted theme keys:");
812
887
  console.log(" intents:", themeKeysCache.intents);
813
888
  console.log(" radii:", themeKeysCache.radii);
814
889
  console.log(" shadows:", themeKeysCache.shadows);
890
+ console.log(" surfaceColors:", themeKeysCache.surfaceColors);
891
+ console.log(" textColors:", themeKeysCache.textColors);
892
+ console.log(" borderColors:", themeKeysCache.borderColors);
815
893
  console.log(" sizes:");
816
894
  for (const [component, sizes] of Object.entries(themeKeysCache.sizes)) {
817
895
  console.log(` ${component}:`, sizes);