@multiplatform.one/components 7.29.1 → 7.30.1
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/cjs/Dialog.cjs +84 -0
- package/dist/cjs/Dialog.native.js +92 -0
- package/dist/cjs/Dialog.native.js.map +1 -0
- package/dist/cjs/code/Highlighter/houseSyntaxTheme.cjs +288 -0
- package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js +291 -0
- package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js.map +1 -0
- package/dist/cjs/code/Highlighter/index.cjs +6 -6
- package/dist/cjs/code/Highlighter/index.native.js +6 -6
- package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.cjs +0 -2
- package/dist/cjs/knobImmuneExports.native.js +0 -2
- package/dist/cjs/knobImmuneExports.native.js.map +1 -1
- package/dist/cjs/tamagui.cjs +3 -2
- package/dist/cjs/tamagui.native.js +3 -2
- package/dist/cjs/tamagui.native.js.map +1 -1
- package/dist/esm/Dialog.mjs +58 -0
- package/dist/esm/Dialog.mjs.map +1 -0
- package/dist/esm/Dialog.native.js +63 -0
- package/dist/esm/Dialog.native.js.map +1 -0
- package/dist/esm/code/Highlighter/houseSyntaxTheme.mjs +263 -0
- package/dist/esm/code/Highlighter/houseSyntaxTheme.mjs.map +1 -0
- package/dist/esm/code/Highlighter/houseSyntaxTheme.native.js +263 -0
- package/dist/esm/code/Highlighter/houseSyntaxTheme.native.js.map +1 -0
- package/dist/esm/code/Highlighter/index.mjs +5 -6
- package/dist/esm/code/Highlighter/index.mjs.map +1 -1
- package/dist/esm/code/Highlighter/index.native.js +5 -6
- package/dist/esm/code/Highlighter/index.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.mjs +0 -2
- package/dist/esm/knobImmuneExports.mjs.map +1 -1
- package/dist/esm/knobImmuneExports.native.js +0 -2
- package/dist/esm/knobImmuneExports.native.js.map +1 -1
- package/dist/esm/tamagui.mjs +2 -1
- package/dist/esm/tamagui.mjs.map +1 -1
- package/dist/esm/tamagui.native.js +2 -1
- package/dist/esm/tamagui.native.js.map +1 -1
- package/dist/jsx/Dialog.mjs +58 -0
- package/dist/jsx/Dialog.mjs.map +1 -0
- package/dist/jsx/Dialog.native.js +92 -0
- package/dist/jsx/Dialog.native.js.map +1 -0
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.mjs +263 -0
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.mjs.map +1 -0
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js +291 -0
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -0
- package/dist/jsx/code/Highlighter/index.mjs +5 -6
- package/dist/jsx/code/Highlighter/index.mjs.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js +6 -6
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.mjs +0 -2
- package/dist/jsx/knobImmuneExports.mjs.map +1 -1
- package/dist/jsx/knobImmuneExports.native.js +0 -2
- package/dist/jsx/knobImmuneExports.native.js.map +1 -1
- package/dist/jsx/tamagui.mjs +2 -1
- package/dist/jsx/tamagui.mjs.map +1 -1
- package/dist/jsx/tamagui.native.js +3 -2
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/package.json +9 -9
- package/src/AlertDialogContent.stories.tsx +2 -1
- package/src/Dialog.spec.tsx +165 -0
- package/src/Dialog.tsx +80 -0
- package/src/DialogContent.stories.tsx +2 -1
- package/src/code/HighlightedCode/HighlightedCode.stories.tsx +18 -42
- package/src/code/Highlighter/houseSyntaxTheme.spec.ts +77 -0
- package/src/code/Highlighter/houseSyntaxTheme.ts +151 -0
- package/src/code/Highlighter/index.ts +7 -8
- package/src/code/syntaxInk.spec.tsx +50 -0
- package/src/knobImmuneExports.ts +0 -3
- package/src/tamagui.spec.ts +5 -4
- package/src/tamagui.ts +4 -1
- package/types/Dialog.d.ts +4 -0
- package/types/Dialog.d.ts.map +1 -0
- package/types/code/Highlighter/houseSyntaxTheme.d.ts +23 -0
- package/types/code/Highlighter/houseSyntaxTheme.d.ts.map +1 -0
- package/types/code/Highlighter/index.d.ts +2 -0
- package/types/code/Highlighter/index.d.ts.map +1 -1
- package/types/knobImmuneExports.d.ts.map +1 -1
- package/types/tamagui.d.ts +2 -1
- package/types/tamagui.d.ts.map +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var Dialog_exports = {};
|
|
24
|
+
__export(Dialog_exports, {
|
|
25
|
+
AlertDialog: () => AlertDialog,
|
|
26
|
+
Dialog: () => Dialog
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(Dialog_exports);
|
|
29
|
+
var import_react = require("react");
|
|
30
|
+
var import_tamagui = require("tamagui");
|
|
31
|
+
var import_i18n = require("./shared/i18n.cjs");
|
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
+
function hasText(node) {
|
|
34
|
+
if (typeof node === "string") return node.trim().length > 0;
|
|
35
|
+
if (typeof node === "number" || typeof node === "bigint") return true;
|
|
36
|
+
if (Array.isArray(node)) return node.some(hasText);
|
|
37
|
+
if ((0, import_react.isValidElement)(node)) return hasText(node.props.children);
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function isLabelled(props) {
|
|
41
|
+
return props["aria-label"] != null || props["aria-labelledby"] != null || props.accessibilityLabel != null;
|
|
42
|
+
}
|
|
43
|
+
function needsCloseName(props) {
|
|
44
|
+
if (isLabelled(props)) return false;
|
|
45
|
+
const {
|
|
46
|
+
asChild,
|
|
47
|
+
children
|
|
48
|
+
} = props;
|
|
49
|
+
if (asChild && (0, import_react.isValidElement)(children)) {
|
|
50
|
+
return !isLabelled(children.props) && !hasText(children.props.children);
|
|
51
|
+
}
|
|
52
|
+
return !hasText(children);
|
|
53
|
+
}
|
|
54
|
+
function namedByContent(Part, displayName) {
|
|
55
|
+
const Raw = Part;
|
|
56
|
+
function LocalizedClose(props) {
|
|
57
|
+
const {
|
|
58
|
+
t
|
|
59
|
+
} = (0, import_i18n.useTranslation)();
|
|
60
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Raw, {
|
|
61
|
+
"aria-label": t("Close"),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function Close(props) {
|
|
66
|
+
if (needsCloseName(props)) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(LocalizedClose, {
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Raw, {
|
|
70
|
+
"aria-label": void 0,
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
Close.displayName = displayName;
|
|
75
|
+
return Close;
|
|
76
|
+
}
|
|
77
|
+
const Dialog = (0, import_tamagui.withStaticProperties)(import_tamagui.Dialog, {
|
|
78
|
+
Close: namedByContent(import_tamagui.Dialog.Close, "DialogClose")
|
|
79
|
+
});
|
|
80
|
+
const AlertDialog = (0, import_tamagui.withStaticProperties)(import_tamagui.AlertDialog, {
|
|
81
|
+
Cancel: namedByContent(import_tamagui.AlertDialog.Cancel, "AlertDialogCancel"),
|
|
82
|
+
Action: namedByContent(import_tamagui.AlertDialog.Action, "AlertDialogAction"),
|
|
83
|
+
Destructive: namedByContent(import_tamagui.AlertDialog.Destructive, "AlertDialogDestructive")
|
|
84
|
+
});
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var Dialog_exports = {};
|
|
26
|
+
__export(Dialog_exports, {
|
|
27
|
+
AlertDialog: () => AlertDialog,
|
|
28
|
+
Dialog: () => Dialog
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(Dialog_exports);
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var import_react = require("react");
|
|
33
|
+
var import_tamagui = require("tamagui");
|
|
34
|
+
var import_i18n = require("./shared/i18n.native.js");
|
|
35
|
+
function _type_of(obj) {
|
|
36
|
+
"@swc/helpers - typeof";
|
|
37
|
+
|
|
38
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
39
|
+
}
|
|
40
|
+
function hasText(node) {
|
|
41
|
+
if (typeof node === "string") return node.trim().length > 0;
|
|
42
|
+
if (typeof node === "number" || (typeof node === "undefined" ? "undefined" : _type_of(node)) === "bigint") return true;
|
|
43
|
+
if (Array.isArray(node)) return node.some(hasText);
|
|
44
|
+
if (/* @__PURE__ */(0, import_react.isValidElement)(node)) return hasText(node.props.children);
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function isLabelled(props) {
|
|
48
|
+
return props["aria-label"] != null || props["aria-labelledby"] != null || props.accessibilityLabel != null;
|
|
49
|
+
}
|
|
50
|
+
function needsCloseName(props) {
|
|
51
|
+
if (isLabelled(props)) return false;
|
|
52
|
+
var {
|
|
53
|
+
asChild,
|
|
54
|
+
children
|
|
55
|
+
} = props;
|
|
56
|
+
if (asChild && /* @__PURE__ */(0, import_react.isValidElement)(children)) {
|
|
57
|
+
return !isLabelled(children.props) && !hasText(children.props.children);
|
|
58
|
+
}
|
|
59
|
+
return !hasText(children);
|
|
60
|
+
}
|
|
61
|
+
function namedByContent(Part, displayName) {
|
|
62
|
+
var Raw = Part;
|
|
63
|
+
function LocalizedClose(props) {
|
|
64
|
+
var {
|
|
65
|
+
t
|
|
66
|
+
} = (0, import_i18n.useTranslation)();
|
|
67
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Raw, {
|
|
68
|
+
"aria-label": t("Close"),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function Close(props) {
|
|
73
|
+
if (needsCloseName(props)) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(LocalizedClose, {
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Raw, {
|
|
77
|
+
"aria-label": void 0,
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
Close.displayName = displayName;
|
|
82
|
+
return Close;
|
|
83
|
+
}
|
|
84
|
+
var Dialog = (0, import_tamagui.withStaticProperties)(import_tamagui.Dialog, {
|
|
85
|
+
Close: namedByContent(import_tamagui.Dialog.Close, "DialogClose")
|
|
86
|
+
});
|
|
87
|
+
var AlertDialog = (0, import_tamagui.withStaticProperties)(import_tamagui.AlertDialog, {
|
|
88
|
+
Cancel: namedByContent(import_tamagui.AlertDialog.Cancel, "AlertDialogCancel"),
|
|
89
|
+
Action: namedByContent(import_tamagui.AlertDialog.Action, "AlertDialogAction"),
|
|
90
|
+
Destructive: namedByContent(import_tamagui.AlertDialog.Destructive, "AlertDialogDestructive")
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=Dialog.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Dialog_exports","__export","AlertDialog","Dialog","module","exports","import_jsx_runtime","require","import_react","import_tamagui","import_i18n","_type_of","obj","Symbol","constructor","hasText","node","trim","length","Array","isArray","some","isValidElement","props","children","isLabelled","accessibilityLabel","needsCloseName","asChild","namedByContent","Part","displayName","Raw","LocalizedClose","t","useTranslation","jsx","Close"],"sources":["../../src/Dialog.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAeAC,MAAA,CAAAC,OAAA,GAAAV,YAAmE,CAAAK,cAAA;AACnE,IAAAM,kBAKO,GAAAC,OAAA;AACP,IAAAC,YAAA,GAA+BD,OAAA;AAsCpB,IAAAE,cAAA,GAAAF,OAAA;AA9BX,IAAAG,WAAS,GAAQH,OAA0B;AACzC,SAAII,QAAOA,CAAAC,GAAA,EAAS;EACpB,uBAAoB;;EACpB,OAAIA,GAAM,WAAQC,MAAO,KAAO,WAAU,IAAAD,GAAO,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AACjD;AACA,SAAOG,QAAAC,IAAA;EACT,WAAAA,IAAA,sBAAAA,IAAA,CAAAC,IAAA,GAAAC,MAAA;EAEA,WAASF,IAAA,KAAW,QAA0B,YAAAA,IAAA,iCAAAL,QAAA,CAAAK,IAAA;EAC5C,IAAAG,KACE,CAAAC,OAAM,CAAAJ,IAAA,GAAY,OAAKA,IAAA,CAAAK,IACvB,CAAAN,OAAM;EAGV,uBAAAP,YAAA,CAAAc,cAAA,EAAAN,IAAA,UAAAD,OAAA,CAAAC,IAAA,CAAAO,KAAA,CAAAC,QAAA;EAEA,OAAS;AACP;AACA,SAAMC,UAAWA,CAAAF,KAAA;EACjB,OAAIA,KAAA,aAAW,aAAAA,KAAA,kBAA+D,aAAAA,KAAA,CAAAG,kBAAA;AAC5E;AAAsE,SACxEC,eAAAJ,KAAA;EACA,IAAAE,UAAQ,CAAAF,KAAQ,UAAQ;EAC1B;IAAAK,OAAA;IAAAJ;EAAA,IAAAD,KAAA;EAEA,IAAAK,OAAS,mBAAsD,IAAApB,YAAqB,CAAAc,cAAA,EAAAE,QAAA;IAClF,OAAM,CAAAC,UAAM,CAAAD,QAAA,CAAAD,KAAA,MAAAR,OAAA,CAAAS,QAAA,CAAAD,KAAA,CAAAC,QAAA;EAEZ;EACE,QAAMT,OAAI,CAAAS,QAAI;AACd;AAA+C,SACjDK,eAAAC,IAAA,EAAAC,WAAA;EAEA,IAAAC,GAAA,GAASF,IAAA;EACP,SAAIG,cAAeA,CAAAV,KAAQ;IAC3B;MAAAW;IAAO,QAAAxB,WAAA,CAAAyB,cAAA;IACT,0BAAA7B,kBAAA,CAAA8B,GAAA,EAAAJ,GAAA;MACA,YAAM,EAAAE,CAAA,CAAc;MACpB,GAAOX;IACT;EAEO;EACL,SAAOc,MAAAd,KAAA,EAAe;IACvB,IAAAI,cAAA,CAAAJ,KAAA,6BAAAjB,kBAAA,CAAA8B,GAAA,EAAAH,cAAA;MAEY,GAAAV;IACX;IACA,OAAQ,eAAe,IAAAjB,kBAAA,CAAA8B,GAAmB,EAAAJ,GAAA,EAAQ;MAClD,YAAa;MACd,GAAAT","ignoreList":[]}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var houseSyntaxTheme_exports = {};
|
|
24
|
+
__export(houseSyntaxTheme_exports, {
|
|
25
|
+
houseSyntaxTheme: () => houseSyntaxTheme
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(houseSyntaxTheme_exports);
|
|
28
|
+
const ink = {
|
|
29
|
+
plain: "$color12",
|
|
30
|
+
muted: "$color11",
|
|
31
|
+
keyword: "$syntaxPurple",
|
|
32
|
+
name: "$syntaxBlue",
|
|
33
|
+
constant: "$syntaxBlue",
|
|
34
|
+
builtin: "$syntaxOrange",
|
|
35
|
+
variable: "$syntaxOrange",
|
|
36
|
+
string: "$syntaxGreen",
|
|
37
|
+
tag: "$syntaxGreen",
|
|
38
|
+
inserted: "$syntaxGreen",
|
|
39
|
+
deleted: "$syntaxRed"
|
|
40
|
+
};
|
|
41
|
+
const houseSyntaxTheme = {
|
|
42
|
+
name: "house",
|
|
43
|
+
fg: ink.plain,
|
|
44
|
+
bg: "$color3",
|
|
45
|
+
settings: [{
|
|
46
|
+
settings: {
|
|
47
|
+
foreground: ink.plain,
|
|
48
|
+
background: "$color3"
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
scope: ["comment", "punctuation.definition.comment", "string.comment"],
|
|
52
|
+
settings: {
|
|
53
|
+
foreground: ink.muted
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
scope: ["constant", "entity.name.constant", "variable.other.constant", "variable.other.enummember", "variable.language"],
|
|
57
|
+
settings: {
|
|
58
|
+
foreground: ink.constant
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
scope: ["entity", "entity.name"],
|
|
62
|
+
settings: {
|
|
63
|
+
foreground: ink.name
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
scope: "variable.parameter.function",
|
|
67
|
+
settings: {
|
|
68
|
+
foreground: ink.plain
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
scope: "entity.name.tag",
|
|
72
|
+
settings: {
|
|
73
|
+
foreground: ink.tag
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
scope: "keyword",
|
|
77
|
+
settings: {
|
|
78
|
+
foreground: ink.keyword
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
scope: ["storage", "storage.type"],
|
|
82
|
+
settings: {
|
|
83
|
+
foreground: ink.keyword
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
scope: ["storage.modifier.package", "storage.modifier.import", "storage.type.java"],
|
|
87
|
+
settings: {
|
|
88
|
+
foreground: ink.plain
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
scope: ["string", "punctuation.definition.string", "string punctuation.section.embedded source"],
|
|
92
|
+
settings: {
|
|
93
|
+
foreground: ink.string
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
scope: "support",
|
|
97
|
+
settings: {
|
|
98
|
+
foreground: ink.builtin
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
scope: "meta.property-name",
|
|
102
|
+
settings: {
|
|
103
|
+
foreground: ink.constant
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
scope: "variable",
|
|
107
|
+
settings: {
|
|
108
|
+
foreground: ink.variable
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
scope: "variable.other",
|
|
112
|
+
settings: {
|
|
113
|
+
foreground: ink.plain
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
scope: "invalid.broken",
|
|
117
|
+
settings: {
|
|
118
|
+
foreground: ink.deleted,
|
|
119
|
+
fontStyle: "italic"
|
|
120
|
+
}
|
|
121
|
+
}, {
|
|
122
|
+
scope: "invalid.deprecated",
|
|
123
|
+
settings: {
|
|
124
|
+
foreground: ink.deleted,
|
|
125
|
+
fontStyle: "italic"
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
scope: "invalid.illegal",
|
|
129
|
+
settings: {
|
|
130
|
+
foreground: ink.deleted,
|
|
131
|
+
fontStyle: "italic"
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
scope: "invalid.unimplemented",
|
|
135
|
+
settings: {
|
|
136
|
+
foreground: ink.deleted,
|
|
137
|
+
fontStyle: "italic"
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
scope: "carriage-return",
|
|
141
|
+
settings: {
|
|
142
|
+
foreground: ink.deleted,
|
|
143
|
+
fontStyle: "italic underline"
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
scope: "message.error",
|
|
147
|
+
settings: {
|
|
148
|
+
foreground: ink.deleted
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
scope: "string variable",
|
|
152
|
+
settings: {
|
|
153
|
+
foreground: ink.variable
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
scope: ["source.regexp", "string.regexp"],
|
|
157
|
+
settings: {
|
|
158
|
+
foreground: ink.string
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
scope: ["string.regexp.character-class", "string.regexp constant.character.escape", "string.regexp source.ruby.embedded", "string.regexp string.regexp.arbitrary-repitition"],
|
|
162
|
+
settings: {
|
|
163
|
+
foreground: ink.string
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
scope: "string.regexp constant.character.escape",
|
|
167
|
+
settings: {
|
|
168
|
+
foreground: ink.string,
|
|
169
|
+
fontStyle: "bold"
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
scope: "support.constant",
|
|
173
|
+
settings: {
|
|
174
|
+
foreground: ink.builtin
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
scope: "support.variable",
|
|
178
|
+
settings: {
|
|
179
|
+
foreground: ink.builtin
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
scope: "meta.module-reference",
|
|
183
|
+
settings: {
|
|
184
|
+
foreground: ink.constant
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
scope: "punctuation.definition.list.begin.markdown",
|
|
188
|
+
settings: {
|
|
189
|
+
foreground: ink.variable
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
scope: ["markup.heading", "markup.heading entity.name"],
|
|
193
|
+
settings: {
|
|
194
|
+
foreground: ink.name,
|
|
195
|
+
fontStyle: "bold"
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
scope: "markup.quote",
|
|
199
|
+
settings: {
|
|
200
|
+
foreground: ink.muted
|
|
201
|
+
}
|
|
202
|
+
}, {
|
|
203
|
+
scope: "markup.italic",
|
|
204
|
+
settings: {
|
|
205
|
+
foreground: ink.plain,
|
|
206
|
+
fontStyle: "italic"
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
scope: "markup.bold",
|
|
210
|
+
settings: {
|
|
211
|
+
foreground: ink.plain,
|
|
212
|
+
fontStyle: "bold"
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
scope: ["markup.underline"],
|
|
216
|
+
settings: {
|
|
217
|
+
fontStyle: "underline"
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
scope: ["markup.strikethrough"],
|
|
221
|
+
settings: {
|
|
222
|
+
fontStyle: "strikethrough"
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
scope: "markup.inline.raw",
|
|
226
|
+
settings: {
|
|
227
|
+
foreground: ink.constant
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
scope: ["markup.deleted", "meta.diff.header.from-file", "punctuation.definition.deleted"],
|
|
231
|
+
settings: {
|
|
232
|
+
foreground: ink.deleted
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
scope: ["markup.inserted", "meta.diff.header.to-file", "punctuation.definition.inserted"],
|
|
236
|
+
settings: {
|
|
237
|
+
foreground: ink.inserted
|
|
238
|
+
}
|
|
239
|
+
}, {
|
|
240
|
+
scope: ["markup.changed", "punctuation.definition.changed"],
|
|
241
|
+
settings: {
|
|
242
|
+
foreground: ink.variable
|
|
243
|
+
}
|
|
244
|
+
}, {
|
|
245
|
+
scope: ["markup.ignored", "markup.untracked"],
|
|
246
|
+
settings: {
|
|
247
|
+
foreground: ink.constant
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
scope: "meta.diff.range",
|
|
251
|
+
settings: {
|
|
252
|
+
foreground: ink.keyword,
|
|
253
|
+
fontStyle: "bold"
|
|
254
|
+
}
|
|
255
|
+
}, {
|
|
256
|
+
scope: "meta.diff.header",
|
|
257
|
+
settings: {
|
|
258
|
+
foreground: ink.constant
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
scope: "meta.separator",
|
|
262
|
+
settings: {
|
|
263
|
+
foreground: ink.constant,
|
|
264
|
+
fontStyle: "bold"
|
|
265
|
+
}
|
|
266
|
+
}, {
|
|
267
|
+
scope: "meta.output",
|
|
268
|
+
settings: {
|
|
269
|
+
foreground: ink.constant
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
scope: ["brackethighlighter.tag", "brackethighlighter.curly", "brackethighlighter.round", "brackethighlighter.square", "brackethighlighter.angle", "brackethighlighter.quote"],
|
|
273
|
+
settings: {
|
|
274
|
+
foreground: ink.muted
|
|
275
|
+
}
|
|
276
|
+
}, {
|
|
277
|
+
scope: "brackethighlighter.unmatched",
|
|
278
|
+
settings: {
|
|
279
|
+
foreground: ink.deleted
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
scope: ["constant.other.reference.link", "string.other.link"],
|
|
283
|
+
settings: {
|
|
284
|
+
foreground: ink.string,
|
|
285
|
+
fontStyle: "underline"
|
|
286
|
+
}
|
|
287
|
+
}]
|
|
288
|
+
};
|