@exem-ui/react 0.3.4-next.20261028080258 → 0.3.4-next.20261029021532
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/code-editor/index.js +17 -6
- package/dist/code-editor/index.mjs +17 -6
- package/package.json +3 -3
|
@@ -258,7 +258,8 @@ var codeEditorSemanticColors = [
|
|
|
258
258
|
"--color-tint-foreground-pink",
|
|
259
259
|
"--color-text-disabled",
|
|
260
260
|
"--color-text-tertiary",
|
|
261
|
-
"--color-tint-foreground-orange"
|
|
261
|
+
"--color-tint-foreground-orange",
|
|
262
|
+
"--color-tint-foreground-lime"
|
|
262
263
|
];
|
|
263
264
|
var codeEditorThemeRuleContributors = /* @__PURE__ */ new Set();
|
|
264
265
|
var registerCodeEditorThemeRules = (contributor) => {
|
|
@@ -275,7 +276,7 @@ var createCodeEditorThemeRules = (rules) => rules.map(({ token, cssVariable, fon
|
|
|
275
276
|
token,
|
|
276
277
|
foreground: withoutHash(getCodeEditorSemanticColorMarker(cssVariable))
|
|
277
278
|
};
|
|
278
|
-
if (fontStyle) {
|
|
279
|
+
if (fontStyle !== void 0) {
|
|
279
280
|
themeRule.fontStyle = fontStyle;
|
|
280
281
|
}
|
|
281
282
|
return themeRule;
|
|
@@ -522,7 +523,7 @@ var defineJsonEditorLanguage = (monaco) => {
|
|
|
522
523
|
});
|
|
523
524
|
isJsonEditorLanguageConfigured = true;
|
|
524
525
|
};
|
|
525
|
-
var
|
|
526
|
+
var jsonEditorThemeRules = [
|
|
526
527
|
{ token: "boolean.json", cssVariable: "--color-text-secondary" },
|
|
527
528
|
{ token: "delimiter.array.json", cssVariable: "--color-text-secondary" },
|
|
528
529
|
{ token: "delimiter.bracket.json", cssVariable: "--color-text-secondary" },
|
|
@@ -532,7 +533,8 @@ var getJsonEditorThemeRules = () => createCodeEditorThemeRules([
|
|
|
532
533
|
{ token: "number.json", cssVariable: "--color-tint-foreground-violet" },
|
|
533
534
|
{ token: "string.key.json", cssVariable: "--color-tint-foreground-teal" },
|
|
534
535
|
{ token: "string.value.json", cssVariable: "--color-tint-foreground-orange" }
|
|
535
|
-
]
|
|
536
|
+
];
|
|
537
|
+
var getJsonEditorThemeRules = () => createCodeEditorThemeRules(jsonEditorThemeRules);
|
|
536
538
|
registerCodeEditorThemeRules(getJsonEditorThemeRules);
|
|
537
539
|
var CodeEditorJSON = React2__namespace.forwardRef(
|
|
538
540
|
({ beforeMount, editorClassName, formatter, ...props }, ref) => {
|
|
@@ -646,6 +648,8 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
646
648
|
constants: sqlEditorConstants,
|
|
647
649
|
tokenizer: {
|
|
648
650
|
root: [
|
|
651
|
+
[/--\+.*$/, "comment.hint.sql"],
|
|
652
|
+
[/\/\*\+/, { token: "comment.hint.sql", next: "@hint" }],
|
|
649
653
|
[/--.*$/, "comment.sql"],
|
|
650
654
|
[/\/\*/, { token: "comment.quote.sql", next: "@comment" }],
|
|
651
655
|
[/'(?:[^']|'')*'/, "string.sql"],
|
|
@@ -667,6 +671,11 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
667
671
|
}
|
|
668
672
|
]
|
|
669
673
|
],
|
|
674
|
+
hint: [
|
|
675
|
+
[/[^*/]+/, "comment.hint.sql"],
|
|
676
|
+
[/\*\//, { token: "comment.hint.sql", next: "@pop" }],
|
|
677
|
+
[/[*/]/, "comment.hint.sql"]
|
|
678
|
+
],
|
|
670
679
|
comment: [
|
|
671
680
|
[/[^*/]+/, "comment.quote.sql"],
|
|
672
681
|
[/\*\//, { token: "comment.quote.sql", next: "@pop" }],
|
|
@@ -676,7 +685,7 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
676
685
|
});
|
|
677
686
|
isSqlEditorLanguageConfigured = true;
|
|
678
687
|
};
|
|
679
|
-
var
|
|
688
|
+
var sqlEditorThemeRules = [
|
|
680
689
|
{ token: "identifier.sql", cssVariable: "--color-text-secondary" },
|
|
681
690
|
{ token: "identifier.quote.sql", cssVariable: "--color-text-secondary" },
|
|
682
691
|
{ token: "variable.bind.sql", cssVariable: "--color-tint-foreground-orange" },
|
|
@@ -687,8 +696,10 @@ var getSqlEditorThemeRules = () => createCodeEditorThemeRules([
|
|
|
687
696
|
{ token: "string.sql", cssVariable: "--color-tint-foreground-teal" },
|
|
688
697
|
{ token: "comment.sql", cssVariable: "--color-text-disabled", fontStyle: "italic" },
|
|
689
698
|
{ token: "comment.quote.sql", cssVariable: "--color-text-disabled", fontStyle: "italic" },
|
|
699
|
+
{ token: "comment.hint.sql", cssVariable: "--color-tint-foreground-lime", fontStyle: "" },
|
|
690
700
|
{ token: "delimiter.sql", cssVariable: "--color-text-secondary" }
|
|
691
|
-
]
|
|
701
|
+
];
|
|
702
|
+
var getSqlEditorThemeRules = () => createCodeEditorThemeRules(sqlEditorThemeRules);
|
|
692
703
|
|
|
693
704
|
// src/codeEditor/sqlEditor/tokens.ts
|
|
694
705
|
var identifierBoundaryPattern = /[A-Za-z0-9_$#]/;
|
|
@@ -237,7 +237,8 @@ var codeEditorSemanticColors = [
|
|
|
237
237
|
"--color-tint-foreground-pink",
|
|
238
238
|
"--color-text-disabled",
|
|
239
239
|
"--color-text-tertiary",
|
|
240
|
-
"--color-tint-foreground-orange"
|
|
240
|
+
"--color-tint-foreground-orange",
|
|
241
|
+
"--color-tint-foreground-lime"
|
|
241
242
|
];
|
|
242
243
|
var codeEditorThemeRuleContributors = /* @__PURE__ */ new Set();
|
|
243
244
|
var registerCodeEditorThemeRules = (contributor) => {
|
|
@@ -254,7 +255,7 @@ var createCodeEditorThemeRules = (rules) => rules.map(({ token, cssVariable, fon
|
|
|
254
255
|
token,
|
|
255
256
|
foreground: withoutHash(getCodeEditorSemanticColorMarker(cssVariable))
|
|
256
257
|
};
|
|
257
|
-
if (fontStyle) {
|
|
258
|
+
if (fontStyle !== void 0) {
|
|
258
259
|
themeRule.fontStyle = fontStyle;
|
|
259
260
|
}
|
|
260
261
|
return themeRule;
|
|
@@ -501,7 +502,7 @@ var defineJsonEditorLanguage = (monaco) => {
|
|
|
501
502
|
});
|
|
502
503
|
isJsonEditorLanguageConfigured = true;
|
|
503
504
|
};
|
|
504
|
-
var
|
|
505
|
+
var jsonEditorThemeRules = [
|
|
505
506
|
{ token: "boolean.json", cssVariable: "--color-text-secondary" },
|
|
506
507
|
{ token: "delimiter.array.json", cssVariable: "--color-text-secondary" },
|
|
507
508
|
{ token: "delimiter.bracket.json", cssVariable: "--color-text-secondary" },
|
|
@@ -511,7 +512,8 @@ var getJsonEditorThemeRules = () => createCodeEditorThemeRules([
|
|
|
511
512
|
{ token: "number.json", cssVariable: "--color-tint-foreground-violet" },
|
|
512
513
|
{ token: "string.key.json", cssVariable: "--color-tint-foreground-teal" },
|
|
513
514
|
{ token: "string.value.json", cssVariable: "--color-tint-foreground-orange" }
|
|
514
|
-
]
|
|
515
|
+
];
|
|
516
|
+
var getJsonEditorThemeRules = () => createCodeEditorThemeRules(jsonEditorThemeRules);
|
|
515
517
|
registerCodeEditorThemeRules(getJsonEditorThemeRules);
|
|
516
518
|
var CodeEditorJSON = React2.forwardRef(
|
|
517
519
|
({ beforeMount, editorClassName, formatter, ...props }, ref) => {
|
|
@@ -625,6 +627,8 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
625
627
|
constants: sqlEditorConstants,
|
|
626
628
|
tokenizer: {
|
|
627
629
|
root: [
|
|
630
|
+
[/--\+.*$/, "comment.hint.sql"],
|
|
631
|
+
[/\/\*\+/, { token: "comment.hint.sql", next: "@hint" }],
|
|
628
632
|
[/--.*$/, "comment.sql"],
|
|
629
633
|
[/\/\*/, { token: "comment.quote.sql", next: "@comment" }],
|
|
630
634
|
[/'(?:[^']|'')*'/, "string.sql"],
|
|
@@ -646,6 +650,11 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
646
650
|
}
|
|
647
651
|
]
|
|
648
652
|
],
|
|
653
|
+
hint: [
|
|
654
|
+
[/[^*/]+/, "comment.hint.sql"],
|
|
655
|
+
[/\*\//, { token: "comment.hint.sql", next: "@pop" }],
|
|
656
|
+
[/[*/]/, "comment.hint.sql"]
|
|
657
|
+
],
|
|
649
658
|
comment: [
|
|
650
659
|
[/[^*/]+/, "comment.quote.sql"],
|
|
651
660
|
[/\*\//, { token: "comment.quote.sql", next: "@pop" }],
|
|
@@ -655,7 +664,7 @@ var defineSqlEditorLanguage = (monaco) => {
|
|
|
655
664
|
});
|
|
656
665
|
isSqlEditorLanguageConfigured = true;
|
|
657
666
|
};
|
|
658
|
-
var
|
|
667
|
+
var sqlEditorThemeRules = [
|
|
659
668
|
{ token: "identifier.sql", cssVariable: "--color-text-secondary" },
|
|
660
669
|
{ token: "identifier.quote.sql", cssVariable: "--color-text-secondary" },
|
|
661
670
|
{ token: "variable.bind.sql", cssVariable: "--color-tint-foreground-orange" },
|
|
@@ -666,8 +675,10 @@ var getSqlEditorThemeRules = () => createCodeEditorThemeRules([
|
|
|
666
675
|
{ token: "string.sql", cssVariable: "--color-tint-foreground-teal" },
|
|
667
676
|
{ token: "comment.sql", cssVariable: "--color-text-disabled", fontStyle: "italic" },
|
|
668
677
|
{ token: "comment.quote.sql", cssVariable: "--color-text-disabled", fontStyle: "italic" },
|
|
678
|
+
{ token: "comment.hint.sql", cssVariable: "--color-tint-foreground-lime", fontStyle: "" },
|
|
669
679
|
{ token: "delimiter.sql", cssVariable: "--color-text-secondary" }
|
|
670
|
-
]
|
|
680
|
+
];
|
|
681
|
+
var getSqlEditorThemeRules = () => createCodeEditorThemeRules(sqlEditorThemeRules);
|
|
671
682
|
|
|
672
683
|
// src/codeEditor/sqlEditor/tokens.ts
|
|
673
684
|
var identifierBoundaryPattern = /[A-Za-z0-9_$#]/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exem-ui/react",
|
|
3
|
-
"version": "0.3.4-next.
|
|
3
|
+
"version": "0.3.4-next.20261029021532",
|
|
4
4
|
"description": "Exem Design System - React Components",
|
|
5
5
|
"author": "Exem Design Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"tailwind-merge": "^3.3.1",
|
|
99
99
|
"tailwind-scrollbar-hide": "^4.0.0",
|
|
100
100
|
"tiny-invariant": "^1.3.3",
|
|
101
|
-
"@exem-ui/core": "0.3.3-next.
|
|
101
|
+
"@exem-ui/core": "0.3.3-next.20261029021532"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@eslint/js": "^9.15.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"tsup": "^8.5.0",
|
|
135
135
|
"typescript": "^5.8.2",
|
|
136
136
|
"typescript-eslint": "^8.16.0",
|
|
137
|
-
"@exem-ui/tailwindcss3": "0.3.2-next.
|
|
137
|
+
"@exem-ui/tailwindcss3": "0.3.2-next.20261029021532"
|
|
138
138
|
},
|
|
139
139
|
"scripts": {
|
|
140
140
|
"generate": "node scripts/generate-icons.js",
|