@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.
- package/dist/components/Attribute/Attribute.d.ts +9 -0
- package/dist/components/Attribute/Attribute.js +33 -0
- package/dist/components/Attribute/AttributeLabel.d.ts +6 -0
- package/dist/components/Attribute/AttributeLabel.js +16 -0
- package/dist/components/Attribute/AttributeLabelDescription.d.ts +6 -0
- package/dist/components/Attribute/AttributeLabelDescription.js +16 -0
- package/dist/components/Attribute/AttributeLabelInfo.d.ts +7 -0
- package/dist/components/Attribute/AttributeLabelInfo.js +29 -0
- package/dist/components/Attribute/AttributeValue.d.ts +6 -0
- package/dist/components/Attribute/AttributeValue.js +25 -0
- package/dist/components/Attribute/index.d.ts +5 -0
- package/dist/components/Attribute/index.js +6 -0
- package/dist/components/CodeSnippet/CodeSnippetActions.js +1 -1
- package/dist/components/CodeSnippet/CodeSnippetCode.js +21 -16
- package/dist/components/CodeSnippet/CodeSnippetContent.js +10 -10
- package/dist/components/CodeSnippet/CodeSnippetContext.d.ts +8 -0
- package/dist/components/CodeSnippet/CodeSnippetLineNumbers.js +10 -7
- package/dist/components/CodeSnippet/CodeSnippetRoot.d.ts +4 -1
- package/dist/components/CodeSnippet/CodeSnippetRoot.js +54 -3
- package/dist/components/CodeSnippet/InlineCodeSnippet.js +1 -1
- package/dist/components/CodeSnippet/index.d.ts +2 -0
- package/dist/components/CodeSnippet/index.js +2 -1
- package/dist/components/CodeSnippet/internal/CodeSnippetHighlights.js +7 -8
- package/dist/components/CodeSnippet/internal/ColorStickColumn.d.ts +2 -2
- package/dist/components/CodeSnippet/internal/ColorStickColumn.js +8 -8
- package/dist/components/CodeSnippet/internal/FoldColumn.d.ts +3 -0
- package/dist/components/CodeSnippet/internal/FoldColumn.js +42 -0
- package/dist/components/CodeSnippet/internal/FoldSummaryLine.d.ts +8 -0
- package/dist/components/CodeSnippet/internal/FoldSummaryLine.js +20 -0
- package/dist/components/CodeSnippet/internal/FoldToggle.d.ts +7 -0
- package/dist/components/CodeSnippet/internal/FoldToggle.js +19 -0
- package/dist/components/CodeSnippet/internal/PrefixColumn.d.ts +2 -2
- package/dist/components/CodeSnippet/internal/PrefixColumn.js +8 -8
- package/dist/components/CodeSnippet/internal/ShowMoreButton.js +2 -2
- package/dist/components/CodeSnippet/lib/foldUtils.d.ts +28 -0
- package/dist/components/CodeSnippet/lib/foldUtils.js +80 -0
- package/dist/components/CodeSnippet/lib/httpFolds.d.ts +27 -0
- package/dist/components/CodeSnippet/lib/httpFolds.js +36 -0
- package/dist/components/Flex/Flex.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControlSeparator.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/hooks/useCopyTooltip.js +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/metadata/components.json +1496 -26
- package/dist/theme/index.css +1 -0
- package/dist/theme/semantic.css +32 -25
- package/dist/theme/utilities/code-snippet-bg.css +8 -0
- package/package.json +1 -1
package/dist/theme/index.css
CHANGED
package/dist/theme/semantic.css
CHANGED
|
@@ -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 (
|
|
224
|
-
--color-syntax-keyword: var(--color-
|
|
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-
|
|
227
|
-
--color-syntax-number-boolean: var(--color-
|
|
228
|
-
--color-syntax-tag: var(--color-
|
|
229
|
-
--color-syntax-attribute: var(--color-
|
|
230
|
-
--color-syntax-comment: var(--color-slate-
|
|
231
|
-
--color-syntax-type: var(--color-
|
|
232
|
-
--color-syntax-operator: var(--color-slate-
|
|
233
|
-
--color-syntax-variable: var(--color-
|
|
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-
|
|
238
|
-
--color-syntax-constant: var(--color-syntax-
|
|
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 (
|
|
614
|
-
--color-syntax-keyword: var(--color-
|
|
615
|
-
--color-syntax-function: var(--color-blue-
|
|
616
|
-
--color-syntax-string: var(--color-
|
|
617
|
-
--color-syntax-number-boolean: var(--color-
|
|
618
|
-
--color-syntax-tag: var(--color-
|
|
619
|
-
--color-syntax-attribute: var(--color-
|
|
620
|
-
--color-syntax-comment: var(--color-slate-
|
|
621
|
-
--color-syntax-type: var(--color-
|
|
622
|
-
--color-syntax-operator: var(--color-slate-
|
|
623
|
-
--color-syntax-variable: var(--color-
|
|
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-
|
|
628
|
-
--color-syntax-constant: var(--color-syntax-
|
|
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);
|