@webmate-studio/builder 0.2.143 → 0.2.144

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.143",
3
+ "version": "0.2.144",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -139,8 +139,11 @@ function generateColorVariables(t, lines) {
139
139
  if (mapping.bgSubtle) lines.push(` --color-${world}-bg-subtle: var(--color-${world}-${mapping.bgSubtle});`);
140
140
  if (mapping.bgSubtleHover) lines.push(` --color-${world}-bg-subtle-hover: var(--color-${world}-${mapping.bgSubtleHover});`);
141
141
  if (mapping.text) lines.push(` --color-${world}-text: var(--color-${world}-${mapping.text});`);
142
+ if (mapping.textHover) lines.push(` --color-${world}-text-hover: var(--color-${world}-${mapping.textHover});`);
142
143
  if (mapping.border) lines.push(` --color-${world}-border: var(--color-${world}-${mapping.border});`);
143
- if (mapping.ring) lines.push(` --color-${world}-ring: var(--color-${world}-${mapping.ring});`);
144
+ if (mapping.borderHover) lines.push(` --color-${world}-border-hover: var(--color-${world}-${mapping.borderHover});`);
145
+ // ring zeigt auf border (kein eigenes Mapping nötig)
146
+ lines.push(` --color-${world}-ring: var(--color-${world}-border);`);
144
147
  }
145
148
  }
146
149
 
@@ -200,8 +203,10 @@ function generateColorUtilities(t) {
200
203
  { cls: `bg-${world}-subtle`, prop: 'background-color', varRef: `--color-${world}-bg-subtle` },
201
204
  { cls: `bg-${world}-subtle-hover`, prop: 'background-color', varRef: `--color-${world}-bg-subtle-hover` },
202
205
  { cls: `text-${world}`, prop: 'color', varRef: `--color-${world}-text` },
206
+ { cls: `text-${world}-hover`, prop: 'color', varRef: `--color-${world}-text-hover` },
203
207
  { cls: `text-on-${world}`, prop: 'color', varRef: `--color-on-${world}` },
204
208
  { cls: `border-${world}`, prop: 'border-color', varRef: `--color-${world}-border` },
209
+ { cls: `border-${world}-hover`, prop: 'border-color', varRef: `--color-${world}-border-hover` },
205
210
  { cls: `ring-${world}`, prop: '--tw-ring-color', varRef: `--color-${world}-ring` },
206
211
  { cls: `border-on-${world}`, prop: 'border-color', varRef: `--color-on-${world}` },
207
212
  ];
@@ -568,9 +568,10 @@ export const DEFAULT_SEMANTIC_MAPPINGS = {
568
568
  bgSubtle: '3',
569
569
  bgSubtleHover: '4',
570
570
  text: '11',
571
+ textHover: '12',
571
572
  textOn: null, // Auto-berechnet
572
573
  border: '7',
573
- ring: '8'
574
+ borderHover: '8'
574
575
  };
575
576
 
576
577