@vettvangur/design-system 2.0.52 → 2.0.54

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.
Files changed (2) hide show
  1. package/dist/index.js +35 -63
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2488,13 +2488,14 @@ async function generateButtons$1(_components, config) {
2488
2488
  enrichBoundVariablesInNodeTree(variant, resolve);
2489
2489
  }
2490
2490
  }
2491
- const snapshotPath = path.join(coreOutDir, 'button-variants.figma.json');
2492
- await fs$1.writeFile(snapshotPath, `${JSON.stringify({
2493
- fileKey,
2494
- page: FIGMA_PAGE,
2495
- pageNodeId,
2496
- groups
2497
- }, null, 2)}\n`, 'utf8');
2491
+
2492
+ // const snapshotPath = path.join(coreOutDir, 'button-variants.figma.json')
2493
+ // await fs.writeFile(
2494
+ // snapshotPath,
2495
+ // `${JSON.stringify({ fileKey, page: FIGMA_PAGE, pageNodeId, groups }, null, 2)}\n`,
2496
+ // 'utf8'
2497
+ // )
2498
+
2498
2499
  const blocks = [];
2499
2500
  for (const group of groups) {
2500
2501
  const rawSetKey = group.componentSet?.nameKebab;
@@ -3983,69 +3984,40 @@ async function generateSources(config, target) {
3983
3984
  message(`finished generating sources for (${target})`);
3984
3985
  }
3985
3986
 
3986
- /**
3987
- * design-system :: src/generators/tailwind/index.mjs.
3988
- *
3989
- * Design token tooling: pulls from Figma and generates platform outputs (Razor/Astro/Tailwind).
3990
- *
3991
- * These docs are generated from inline JSDoc in the repo and are intended for contributors.
3992
- *
3993
- * @generated
3994
- * @module design-system
3995
- */
3996
-
3997
- /**
3998
- * File exists.
3999
- *
4000
- * @param p - Value.
4001
- * @returns Boolean result.
4002
- *
4003
- * @generated
4004
- * @example
4005
- * // design-system (src/tools/javascript/design-system/src/generators/tailwind/index.mjs)
4006
- * // import { fileExists } from '@vettvangur/design-system'
4007
- *
4008
- * await fileExists(p)
3987
+ /**
3988
+ * design-system :: src/generators/tailwind/index.mjs.
3989
+ *
3990
+ * Design token tooling: pulls from Figma and generates platform outputs (Razor/Astro/Tailwind).
3991
+ *
3992
+ * These docs are generated from inline JSDoc in the repo and are intended for contributors.
3993
+ *
3994
+ * @generated
3995
+ * @module design-system
4009
3996
  */
4010
- async function fileExists(p) {
4011
- try {
4012
- await fs$1.access(p);
4013
- return true;
4014
- } catch {
4015
- return false;
4016
- }
4017
- }
4018
3997
 
4019
- /**
4020
- * Generate tailwind.
4021
- *
4022
- * @param config - Configuration object.
4023
- * @param projectType - Value.
4024
- * @param typography - Value.
4025
- * @param buttons - Value.
4026
- * @param colors - Value.
4027
- * @param scales - Value.
4028
- * @param effects - Value.
4029
- * @returns Nothing.
4030
- *
4031
- * @example
4032
- * // design-system (src/tools/javascript/design-system/src/generators/tailwind/index.mjs)
4033
- * // import { generateTailwind } from '@vettvangur/design-system'
4034
- *
4035
- * await generateTailwind({}, projectType, typography, buttons, colors, scales, effects)
3998
+ /**
3999
+ * Generate tailwind.
4000
+ *
4001
+ * @param config - Configuration object.
4002
+ * @param projectType - Value.
4003
+ * @param typography - Value.
4004
+ * @param buttons - Value.
4005
+ * @param colors - Value.
4006
+ * @param scales - Value.
4007
+ * @param effects - Value.
4008
+ * @returns Nothing.
4009
+ *
4010
+ * @example
4011
+ * // design-system (src/tools/javascript/design-system/src/generators/tailwind/index.mjs)
4012
+ * // import { generateTailwind } from '@vettvangur/design-system'
4013
+ *
4014
+ * await generateTailwind({}, projectType, typography, buttons, colors, scales, effects)
4036
4015
  */
4037
4016
  async function generateTailwind(config, projectType, typography, buttons, colors, scales, effects, figmaVariables) {
4038
4017
  message(pc.yellow('-=[ tailwind ]=-'));
4039
4018
  await generateFontFamily(typography.families, config);
4040
4019
  await generateFontWeight(typography.weights, config);
4041
- const buttonVariantsPath = path.join(config.paths.styles, 'core', 'button-variants.css');
4042
-
4043
- // only generate buttons if variants do NOT already exist
4044
- if (!(await fileExists(buttonVariantsPath))) {
4045
- await generateButtons$1(buttons, config);
4046
- } else {
4047
- message('button-variants.css exists, skipping generation');
4048
- }
4020
+ await generateButtons$1(buttons, config);
4049
4021
  await generateBodies(typography.sizes, typography.lineHeights, config);
4050
4022
  await generateHeadlines(typography.sizes, typography.lineHeights, config);
4051
4023
  await generateTypography$1(typography.sizes, typography.lineHeights, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vettvangur/design-system",
3
- "version": "2.0.52",
3
+ "version": "2.0.54",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "type": "module",