@wallarm-org/design-system 0.22.0 → 0.23.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.
Files changed (51) hide show
  1. package/dist/components/Attribute/Attribute.d.ts +9 -0
  2. package/dist/components/Attribute/Attribute.js +33 -0
  3. package/dist/components/Attribute/AttributeLabel.d.ts +6 -0
  4. package/dist/components/Attribute/AttributeLabel.js +16 -0
  5. package/dist/components/Attribute/AttributeLabelDescription.d.ts +6 -0
  6. package/dist/components/Attribute/AttributeLabelDescription.js +16 -0
  7. package/dist/components/Attribute/AttributeLabelInfo.d.ts +7 -0
  8. package/dist/components/Attribute/AttributeLabelInfo.js +29 -0
  9. package/dist/components/Attribute/AttributeValue.d.ts +6 -0
  10. package/dist/components/Attribute/AttributeValue.js +25 -0
  11. package/dist/components/Attribute/index.d.ts +5 -0
  12. package/dist/components/Attribute/index.js +6 -0
  13. package/dist/components/CodeSnippet/CodeSnippetActions.js +1 -1
  14. package/dist/components/CodeSnippet/CodeSnippetCode.js +21 -16
  15. package/dist/components/CodeSnippet/CodeSnippetContent.js +10 -10
  16. package/dist/components/CodeSnippet/CodeSnippetContext.d.ts +8 -0
  17. package/dist/components/CodeSnippet/CodeSnippetLineNumbers.js +10 -7
  18. package/dist/components/CodeSnippet/CodeSnippetRoot.d.ts +4 -1
  19. package/dist/components/CodeSnippet/CodeSnippetRoot.js +54 -3
  20. package/dist/components/CodeSnippet/InlineCodeSnippet.js +1 -1
  21. package/dist/components/CodeSnippet/index.d.ts +2 -0
  22. package/dist/components/CodeSnippet/index.js +2 -1
  23. package/dist/components/CodeSnippet/internal/CodeSnippetHighlights.js +7 -8
  24. package/dist/components/CodeSnippet/internal/ColorStickColumn.d.ts +2 -2
  25. package/dist/components/CodeSnippet/internal/ColorStickColumn.js +8 -8
  26. package/dist/components/CodeSnippet/internal/FoldColumn.d.ts +3 -0
  27. package/dist/components/CodeSnippet/internal/FoldColumn.js +42 -0
  28. package/dist/components/CodeSnippet/internal/FoldSummaryLine.d.ts +8 -0
  29. package/dist/components/CodeSnippet/internal/FoldSummaryLine.js +20 -0
  30. package/dist/components/CodeSnippet/internal/FoldToggle.d.ts +7 -0
  31. package/dist/components/CodeSnippet/internal/FoldToggle.js +19 -0
  32. package/dist/components/CodeSnippet/internal/PrefixColumn.d.ts +2 -2
  33. package/dist/components/CodeSnippet/internal/PrefixColumn.js +8 -8
  34. package/dist/components/CodeSnippet/internal/ShowMoreButton.js +2 -2
  35. package/dist/components/CodeSnippet/lib/foldUtils.d.ts +28 -0
  36. package/dist/components/CodeSnippet/lib/foldUtils.js +80 -0
  37. package/dist/components/CodeSnippet/lib/httpFolds.d.ts +27 -0
  38. package/dist/components/CodeSnippet/lib/httpFolds.js +36 -0
  39. package/dist/components/Flex/Flex.d.ts +1 -1
  40. package/dist/components/SegmentedControl/SegmentedControlSeparator.d.ts +1 -1
  41. package/dist/components/Separator/Separator.d.ts +1 -1
  42. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  43. package/dist/components/Stack/Stack.d.ts +1 -1
  44. package/dist/hooks/useCopyTooltip.js +5 -1
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +2 -1
  47. package/dist/metadata/components.json +1496 -26
  48. package/dist/theme/index.css +1 -0
  49. package/dist/theme/semantic.css +32 -25
  50. package/dist/theme/utilities/code-snippet-bg.css +8 -0
  51. package/package.json +1 -1
@@ -13,6 +13,7 @@
13
13
  @import './focus.css';
14
14
  @import './icon.css';
15
15
  @import './utilities/hover-overlay.css';
16
+ @import './utilities/code-snippet-bg.css';
16
17
  @import './components/drawer.css';
17
18
  @import './components/dialog.css';
18
19
  @import './components/tour.css';
@@ -217,25 +217,30 @@
217
217
 
218
218
  /* ========================================
219
219
  * SYNTAX COLORS
220
+ * ⚠️ CODE-MANAGED — DO NOT SYNC FROM FIGMA
221
+ * These token-to-color mappings are intentionally decoupled from Figma.
222
+ * The underlying palette values (e.g. --color-slate-900's hex) may change,
223
+ * but the mapping here (e.g. keyword → purple-600) must not be overwritten
224
+ * by Figma design token imports or AI-assisted Figma syncs.
220
225
  * ======================================== */
221
226
  --color-syntax-no-syntax: var(--color-slate-900);
222
227
 
223
- /* Syntax Highlighting — base tokens (Figma source of truth) */
224
- --color-syntax-keyword: var(--color-violet-700);
228
+ /* Syntax Highlighting — base tokens (One Light / GitHub Light family) */
229
+ --color-syntax-keyword: var(--color-purple-600);
225
230
  --color-syntax-function: var(--color-blue-600);
226
- --color-syntax-string: var(--color-amber-700);
227
- --color-syntax-number-boolean: var(--color-orange-700);
228
- --color-syntax-tag: var(--color-teal-700);
229
- --color-syntax-attribute: var(--color-orange-700);
230
- --color-syntax-comment: var(--color-slate-500);
231
- --color-syntax-type: var(--color-indigo-800);
232
- --color-syntax-operator: var(--color-slate-600);
233
- --color-syntax-variable: var(--color-green-700);
231
+ --color-syntax-string: var(--color-green-600);
232
+ --color-syntax-number-boolean: var(--color-amber-700);
233
+ --color-syntax-tag: var(--color-red-600);
234
+ --color-syntax-attribute: var(--color-amber-700);
235
+ --color-syntax-comment: var(--color-slate-400);
236
+ --color-syntax-type: var(--color-yellow-700);
237
+ --color-syntax-operator: var(--color-slate-700);
238
+ --color-syntax-variable: var(--color-red-600);
234
239
 
235
240
  /* Syntax Highlighting — aliases for CodeToken mapping */
236
241
  --color-syntax-number: var(--color-syntax-number-boolean);
237
- --color-syntax-boolean: var(--color-syntax-number-boolean);
238
- --color-syntax-constant: var(--color-syntax-number-boolean);
242
+ --color-syntax-boolean: var(--color-syntax-keyword);
243
+ --color-syntax-constant: var(--color-syntax-keyword);
239
244
  --color-syntax-builtin: var(--color-syntax-keyword);
240
245
  --color-syntax-class-name: var(--color-syntax-type);
241
246
  --color-syntax-property: var(--color-syntax-variable);
@@ -607,25 +612,27 @@
607
612
 
608
613
  /* ========================================
609
614
  * SYNTAX COLORS
615
+ * ⚠️ CODE-MANAGED — DO NOT SYNC FROM FIGMA
616
+ * See light-mode comment above for details.
610
617
  * ======================================== */
611
618
  --color-syntax-no-syntax: var(--color-slate-200);
612
619
 
613
- /* Syntax Highlighting — base tokens (Figma source of truth) */
614
- --color-syntax-keyword: var(--color-violet-300);
615
- --color-syntax-function: var(--color-blue-300);
616
- --color-syntax-string: var(--color-amber-300);
617
- --color-syntax-number-boolean: var(--color-orange-300);
618
- --color-syntax-tag: var(--color-teal-300);
619
- --color-syntax-attribute: var(--color-orange-300);
620
- --color-syntax-comment: var(--color-slate-400);
621
- --color-syntax-type: var(--color-indigo-300);
622
- --color-syntax-operator: var(--color-slate-400);
623
- --color-syntax-variable: var(--color-green-300);
620
+ /* Syntax Highlighting — base tokens (One Dark Pro / Dark+ family) */
621
+ --color-syntax-keyword: var(--color-purple-400);
622
+ --color-syntax-function: var(--color-blue-400);
623
+ --color-syntax-string: var(--color-green-300);
624
+ --color-syntax-number-boolean: var(--color-amber-300);
625
+ --color-syntax-tag: var(--color-red-400);
626
+ --color-syntax-attribute: var(--color-amber-300);
627
+ --color-syntax-comment: var(--color-slate-500);
628
+ --color-syntax-type: var(--color-yellow-300);
629
+ --color-syntax-operator: var(--color-slate-300);
630
+ --color-syntax-variable: var(--color-red-300);
624
631
 
625
632
  /* Syntax Highlighting — aliases for CodeToken mapping */
626
633
  --color-syntax-number: var(--color-syntax-number-boolean);
627
- --color-syntax-boolean: var(--color-syntax-number-boolean);
628
- --color-syntax-constant: var(--color-syntax-number-boolean);
634
+ --color-syntax-boolean: var(--color-syntax-keyword);
635
+ --color-syntax-constant: var(--color-syntax-keyword);
629
636
  --color-syntax-builtin: var(--color-syntax-keyword);
630
637
  --color-syntax-class-name: var(--color-syntax-type);
631
638
  --color-syntax-property: var(--color-syntax-variable);
@@ -0,0 +1,8 @@
1
+ @utility code-snippet-bg {
2
+ background:
3
+ linear-gradient(
4
+ var(--color-component-code-snippet-bg),
5
+ var(--color-component-code-snippet-bg)
6
+ ),
7
+ var(--color-bg-page-bg);
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wallarm-org/design-system",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Core design system library with React components and Storybook documentation",
5
5
  "publishConfig": {
6
6
  "access": "public",