mal-ui 0.1.3
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/README.md +244 -0
- package/dist/carousel/extensions.d.ts +1 -0
- package/dist/carousel/index.d.ts +2 -0
- package/dist/carousel/index.js +424 -0
- package/dist/carousel/index.js.map +15 -0
- package/dist/charts/extensions.d.ts +1 -0
- package/dist/charts/index.d.ts +2 -0
- package/dist/charts/index.js +3499 -0
- package/dist/charts/index.js.map +53 -0
- package/dist/chunks/index-3ffbn0gc.js +29976 -0
- package/dist/chunks/index-3ffbn0gc.js.map +637 -0
- package/dist/chunks/index-6b5mapr4.js +2 -0
- package/dist/chunks/index-6b5mapr4.js.map +9 -0
- package/dist/chunks/index-6tm93gww.js +38 -0
- package/dist/chunks/index-6tm93gww.js.map +10 -0
- package/dist/chunks/index-cg10ezdx.js +2 -0
- package/dist/chunks/index-cg10ezdx.js.map +9 -0
- package/dist/chunks/index-mc01z7m9.js +48 -0
- package/dist/chunks/index-mc01z7m9.js.map +9 -0
- package/dist/chunks/index-rz8zh7g4.js +5015 -0
- package/dist/chunks/index-rz8zh7g4.js.map +113 -0
- package/dist/chunks/index-syjq3515.js +4893 -0
- package/dist/chunks/index-syjq3515.js.map +101 -0
- package/dist/chunks/index-w9ekv5h5.js +733 -0
- package/dist/chunks/index-w9ekv5h5.js.map +17 -0
- package/dist/code-highlight/extensions.d.ts +1 -0
- package/dist/code-highlight/index.d.ts +2 -0
- package/dist/code-highlight/index.js +1685 -0
- package/dist/code-highlight/index.js.map +25 -0
- package/dist/core/extensions.d.ts +2 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +844 -0
- package/dist/core/index.js.map +9 -0
- package/dist/dates/extensions.d.ts +1 -0
- package/dist/dates/index.d.ts +2 -0
- package/dist/dates/index.js +107 -0
- package/dist/dates/index.js.map +9 -0
- package/dist/dropzone/extensions.d.ts +1 -0
- package/dist/dropzone/index.d.ts +2 -0
- package/dist/dropzone/index.js +2681 -0
- package/dist/dropzone/index.js.map +21 -0
- package/dist/form/extensions.d.ts +1 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1605 -0
- package/dist/form/index.js.map +51 -0
- package/dist/hooks/extensions.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +214 -0
- package/dist/hooks/index.js.map +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1052 -0
- package/dist/index.js.map +9 -0
- package/dist/modals/extensions.d.ts +1 -0
- package/dist/modals/index.d.ts +2 -0
- package/dist/modals/index.js +387 -0
- package/dist/modals/index.js.map +15 -0
- package/dist/notifications/extensions.d.ts +1 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +1122 -0
- package/dist/notifications/index.js.map +28 -0
- package/dist/nprogress/extensions.d.ts +1 -0
- package/dist/nprogress/index.d.ts +2 -0
- package/dist/nprogress/index.js +207 -0
- package/dist/nprogress/index.js.map +12 -0
- package/dist/schedule/extensions.d.ts +1 -0
- package/dist/schedule/index.d.ts +2 -0
- package/dist/schedule/index.js +8569 -0
- package/dist/schedule/index.js.map +135 -0
- package/dist/spotlight/extensions.d.ts +1 -0
- package/dist/spotlight/index.d.ts +2 -0
- package/dist/spotlight/index.js +666 -0
- package/dist/spotlight/index.js.map +24 -0
- package/dist/styles.css +1 -0
- package/dist/theme/index.d.ts +13 -0
- package/dist/theme/index.js +202 -0
- package/dist/theme/index.js.map +11 -0
- package/dist/theme/tokens.d.ts +65 -0
- package/dist/tiptap/extensions.d.ts +1 -0
- package/dist/tiptap/index.d.ts +2 -0
- package/dist/tiptap/index.js +1549 -0
- package/dist/tiptap/index.js.map +25 -0
- package/package.json +163 -0
|
@@ -0,0 +1,1685 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ActionIcon,
|
|
4
|
+
Box,
|
|
5
|
+
ScrollArea,
|
|
6
|
+
Tooltip,
|
|
7
|
+
UnstyledButton,
|
|
8
|
+
clsx_default,
|
|
9
|
+
createSafeContext,
|
|
10
|
+
createVarsResolver,
|
|
11
|
+
factory,
|
|
12
|
+
getRadius,
|
|
13
|
+
getThemeColor,
|
|
14
|
+
polymorphicFactory,
|
|
15
|
+
rem,
|
|
16
|
+
useComputedColorScheme,
|
|
17
|
+
useProps,
|
|
18
|
+
useResolvedStylesApi,
|
|
19
|
+
useStyles
|
|
20
|
+
} from "../chunks/index-3ffbn0gc.js";
|
|
21
|
+
import {
|
|
22
|
+
useClipboard,
|
|
23
|
+
useUncontrolled
|
|
24
|
+
} from "../chunks/index-syjq3515.js";
|
|
25
|
+
import"../chunks/index-mc01z7m9.js";
|
|
26
|
+
|
|
27
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightProvider/adapters/plain-text-adapter.mjs
|
|
28
|
+
var plainTextAdapter = { getHighlighter: () => ({ code }) => ({
|
|
29
|
+
highlightedCode: code,
|
|
30
|
+
isHighlighted: false
|
|
31
|
+
}) };
|
|
32
|
+
|
|
33
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightProvider/CodeHighlightProvider.mjs
|
|
34
|
+
import { createContext, use, useEffect, useMemo, useState } from "react";
|
|
35
|
+
import { jsx } from "react/jsx-runtime";
|
|
36
|
+
|
|
37
|
+
var CodeHighlightContext = createContext({
|
|
38
|
+
adapter: plainTextAdapter,
|
|
39
|
+
highlight: plainTextAdapter.getHighlighter(null)
|
|
40
|
+
});
|
|
41
|
+
function CodeHighlightAdapterProvider({ adapter, children }) {
|
|
42
|
+
const [ctx, setCtx] = useState(null);
|
|
43
|
+
const highlight = useMemo(() => adapter.getHighlighter(ctx), [adapter, ctx]);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (adapter.loadContext)
|
|
46
|
+
adapter.loadContext().then(setCtx);
|
|
47
|
+
}, [adapter]);
|
|
48
|
+
return /* @__PURE__ */ jsx(CodeHighlightContext, {
|
|
49
|
+
value: {
|
|
50
|
+
adapter,
|
|
51
|
+
highlight
|
|
52
|
+
},
|
|
53
|
+
children
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function useHighlight() {
|
|
57
|
+
return use(CodeHighlightContext)?.highlight || plainTextAdapter.getHighlighter(null);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/CodeHighlight.context.mjs
|
|
61
|
+
|
|
62
|
+
var [CodeHighlightContextProvider, useCodeHighlightContext] = createSafeContext("CodeHighlightProvider was not found in the component tree");
|
|
63
|
+
|
|
64
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/CodeHighlightControl/CodeHighlightControl.mjs
|
|
65
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
66
|
+
|
|
67
|
+
var CodeHighlightControl = polymorphicFactory((_props) => {
|
|
68
|
+
const { children, vars, tooltipLabel, ...others } = useProps("CodeHighlightControl", null, _props);
|
|
69
|
+
const ctx = useCodeHighlightContext();
|
|
70
|
+
const tooltipStyles = ctx.getStyles("controlTooltip");
|
|
71
|
+
const control = /* @__PURE__ */ jsx2(ActionIcon, {
|
|
72
|
+
...ctx.getStyles("control"),
|
|
73
|
+
...others,
|
|
74
|
+
variant: "none",
|
|
75
|
+
"data-code-color-scheme": ctx.codeColorScheme,
|
|
76
|
+
children
|
|
77
|
+
});
|
|
78
|
+
if (tooltipLabel)
|
|
79
|
+
return /* @__PURE__ */ jsx2(Tooltip, {
|
|
80
|
+
label: tooltipLabel,
|
|
81
|
+
fz: "sm",
|
|
82
|
+
position: "bottom",
|
|
83
|
+
classNames: { tooltip: tooltipStyles.className },
|
|
84
|
+
styles: { tooltip: tooltipStyles.style },
|
|
85
|
+
"data-code-color-scheme": ctx.codeColorScheme,
|
|
86
|
+
transitionProps: { duration: 0 },
|
|
87
|
+
children: control
|
|
88
|
+
});
|
|
89
|
+
return control;
|
|
90
|
+
});
|
|
91
|
+
CodeHighlightControl.displayName = "@mantine/code-highlight/CodeHighlightControl";
|
|
92
|
+
|
|
93
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/CopyCodeButton/CopyIcon.mjs
|
|
94
|
+
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
95
|
+
|
|
96
|
+
function CopyIcon({ copied, ...others }) {
|
|
97
|
+
return /* @__PURE__ */ jsx3("svg", {
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
viewBox: "0 0 24 24",
|
|
100
|
+
strokeWidth: "2",
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
fill: "none",
|
|
103
|
+
strokeLinecap: "round",
|
|
104
|
+
strokeLinejoin: "round",
|
|
105
|
+
...others,
|
|
106
|
+
children: copied ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx3("path", {
|
|
107
|
+
stroke: "none",
|
|
108
|
+
d: "M0 0h24v24H0z",
|
|
109
|
+
fill: "none"
|
|
110
|
+
}), /* @__PURE__ */ jsx3("path", { d: "M5 12l5 5l10 -10" })] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
111
|
+
/* @__PURE__ */ jsx3("path", {
|
|
112
|
+
stroke: "none",
|
|
113
|
+
d: "M0 0h24v24H0z",
|
|
114
|
+
fill: "none"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" }),
|
|
117
|
+
/* @__PURE__ */ jsx3("path", { d: "M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" })
|
|
118
|
+
] })
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
CopyIcon.displayName = "@mantine/code-highlight/CopyIcon";
|
|
122
|
+
|
|
123
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/CopyCodeButton/CopyCodeButton.mjs
|
|
124
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
125
|
+
|
|
126
|
+
function CopyCodeButton({ code, copyLabel = "Copy", copiedLabel = "Copied" }) {
|
|
127
|
+
const clipboard = useClipboard();
|
|
128
|
+
return /* @__PURE__ */ jsx4(CodeHighlightControl, {
|
|
129
|
+
onClick: () => clipboard.copy(code.trim()),
|
|
130
|
+
variant: "none",
|
|
131
|
+
tooltipLabel: clipboard.copied ? copiedLabel : copyLabel,
|
|
132
|
+
"aria-label": clipboard.copied ? copiedLabel : `${copyLabel} code`,
|
|
133
|
+
children: /* @__PURE__ */ jsx4(CopyIcon, { copied: clipboard.copied })
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
CopyCodeButton.displayName = "@mantine/code-highlight/CopyCodeButton";
|
|
137
|
+
|
|
138
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/ExpandCodeButton/ExpandIcon.mjs
|
|
139
|
+
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
140
|
+
|
|
141
|
+
function ExpandIcon({ expanded, style, ...others }) {
|
|
142
|
+
return /* @__PURE__ */ jsx5("svg", {
|
|
143
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
144
|
+
viewBox: "0 0 24 24",
|
|
145
|
+
strokeWidth: "2",
|
|
146
|
+
stroke: "currentColor",
|
|
147
|
+
fill: "none",
|
|
148
|
+
strokeLinecap: "round",
|
|
149
|
+
strokeLinejoin: "round",
|
|
150
|
+
...others,
|
|
151
|
+
children: expanded ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
152
|
+
/* @__PURE__ */ jsx5("path", {
|
|
153
|
+
stroke: "none",
|
|
154
|
+
d: "M0 0h24v24H0z",
|
|
155
|
+
fill: "none"
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 13v-8l-3 3m6 0l-3 -3" }),
|
|
158
|
+
/* @__PURE__ */ jsx5("path", { d: "M9 17l1 0" }),
|
|
159
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 17l1 0" }),
|
|
160
|
+
/* @__PURE__ */ jsx5("path", { d: "M19 17l1 0" }),
|
|
161
|
+
/* @__PURE__ */ jsx5("path", { d: "M4 17l1 0" })
|
|
162
|
+
] }) : /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
163
|
+
/* @__PURE__ */ jsx5("path", {
|
|
164
|
+
stroke: "none",
|
|
165
|
+
d: "M0 0h24v24H0z",
|
|
166
|
+
fill: "none"
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 11v8l3 -3m-6 0l3 3" }),
|
|
169
|
+
/* @__PURE__ */ jsx5("path", { d: "M9 7l1 0" }),
|
|
170
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 7l1 0" }),
|
|
171
|
+
/* @__PURE__ */ jsx5("path", { d: "M19 7l1 0" }),
|
|
172
|
+
/* @__PURE__ */ jsx5("path", { d: "M4 7l1 0" })
|
|
173
|
+
] })
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
ExpandIcon.displayName = "@mantine/code-highlight/ExpandIcon";
|
|
177
|
+
|
|
178
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/ExpandCodeButton/ExpandCodeButton.mjs
|
|
179
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
180
|
+
|
|
181
|
+
function ExpandCodeButton({ expanded, onExpand, expandCodeLabel = "Expand code", collapseCodeLabel = "Collapse code" }) {
|
|
182
|
+
return /* @__PURE__ */ jsx6(CodeHighlightControl, {
|
|
183
|
+
onClick: () => onExpand(!expanded),
|
|
184
|
+
tooltipLabel: expanded ? collapseCodeLabel : expandCodeLabel,
|
|
185
|
+
"aria-label": expanded ? collapseCodeLabel : expandCodeLabel,
|
|
186
|
+
children: /* @__PURE__ */ jsx6(ExpandIcon, { expanded })
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
ExpandCodeButton.displayName = "@mantine/code-highlight/ExpandCodeButton";
|
|
190
|
+
|
|
191
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight.module.mjs
|
|
192
|
+
|
|
193
|
+
var CodeHighlight_module_default = {
|
|
194
|
+
root: "m_5cb1b9c8",
|
|
195
|
+
codeHighlight: "m_e597c321",
|
|
196
|
+
inlineCodeHighlight: "m_dfe9c588",
|
|
197
|
+
pre: "m_2c47c4fd",
|
|
198
|
+
code: "m_5caae6d3",
|
|
199
|
+
controls: "m_be7e9c9c",
|
|
200
|
+
control: "m_d498bab7",
|
|
201
|
+
controlTooltip: "m_4c3d814c",
|
|
202
|
+
scrollarea: "m_f744fd40",
|
|
203
|
+
showCodeButton: "m_c9378bc2",
|
|
204
|
+
file: "m_5cac2e62",
|
|
205
|
+
fileIcon: "m_b46cddfb",
|
|
206
|
+
filesScrollarea: "m_7b14120b",
|
|
207
|
+
files: "m_38d99e51"
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/CodeHighlight.mjs
|
|
211
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
212
|
+
|
|
213
|
+
var defaultProps = {
|
|
214
|
+
withCopyButton: true,
|
|
215
|
+
expandCodeLabel: "Expand code",
|
|
216
|
+
collapseCodeLabel: "Collapse code"
|
|
217
|
+
};
|
|
218
|
+
var varsResolver = createVarsResolver((theme, { maxCollapsedHeight, background, radius }) => ({ codeHighlight: {
|
|
219
|
+
"--ch-max-height": rem(maxCollapsedHeight),
|
|
220
|
+
"--ch-background": background ? getThemeColor(background, theme) : undefined,
|
|
221
|
+
"--ch-radius": typeof radius !== "undefined" ? getRadius(radius) : undefined
|
|
222
|
+
} }));
|
|
223
|
+
var CodeHighlight = factory((_props) => {
|
|
224
|
+
const props = useProps("CodeHighlight", defaultProps, _props);
|
|
225
|
+
const { classNames, className, style, styles, unstyled, vars, code, copiedLabel, copyLabel, defaultExpanded, expanded, onExpandedChange, maxCollapsedHeight, withCopyButton, withExpandButton, expandCodeLabel, collapseCodeLabel, radius, background, withBorder, controls, language, codeColorScheme, __withOffset, __inline, __staticSelector, attributes, ...others } = props;
|
|
226
|
+
const getStyles = useStyles({
|
|
227
|
+
name: __staticSelector || "CodeHighlight",
|
|
228
|
+
classes: CodeHighlight_module_default,
|
|
229
|
+
props,
|
|
230
|
+
className,
|
|
231
|
+
style,
|
|
232
|
+
classNames,
|
|
233
|
+
styles,
|
|
234
|
+
unstyled,
|
|
235
|
+
attributes,
|
|
236
|
+
vars,
|
|
237
|
+
varsResolver,
|
|
238
|
+
rootSelector: "codeHighlight"
|
|
239
|
+
});
|
|
240
|
+
const [_expanded, setExpanded] = useUncontrolled({
|
|
241
|
+
value: expanded,
|
|
242
|
+
defaultValue: defaultExpanded,
|
|
243
|
+
finalValue: true,
|
|
244
|
+
onChange: onExpandedChange
|
|
245
|
+
});
|
|
246
|
+
const shouldDisplayControls = controls && controls.length > 0 || withExpandButton || withCopyButton;
|
|
247
|
+
const colorScheme = useComputedColorScheme();
|
|
248
|
+
const highlightedCode = useHighlight()({
|
|
249
|
+
code: code.trim(),
|
|
250
|
+
language,
|
|
251
|
+
colorScheme: codeColorScheme ?? colorScheme
|
|
252
|
+
});
|
|
253
|
+
const codeContent = highlightedCode.isHighlighted ? { dangerouslySetInnerHTML: { __html: highlightedCode.highlightedCode } } : { children: code.trim() };
|
|
254
|
+
if (__inline)
|
|
255
|
+
return /* @__PURE__ */ jsx7(Box, {
|
|
256
|
+
component: "code",
|
|
257
|
+
...others,
|
|
258
|
+
...highlightedCode.codeElementProps,
|
|
259
|
+
...getStyles("codeHighlight", {
|
|
260
|
+
className: clsx_default(highlightedCode.codeElementProps?.className, className),
|
|
261
|
+
style: [{ ...highlightedCode.codeElementProps?.style }, style]
|
|
262
|
+
}),
|
|
263
|
+
"data-with-border": withBorder || undefined,
|
|
264
|
+
...codeContent
|
|
265
|
+
});
|
|
266
|
+
return /* @__PURE__ */ jsx7(CodeHighlightContextProvider, {
|
|
267
|
+
value: {
|
|
268
|
+
getStyles,
|
|
269
|
+
codeColorScheme
|
|
270
|
+
},
|
|
271
|
+
children: /* @__PURE__ */ jsxs3(Box, {
|
|
272
|
+
...getStyles("codeHighlight"),
|
|
273
|
+
...others,
|
|
274
|
+
dir: "ltr",
|
|
275
|
+
"data-code-color-scheme": codeColorScheme,
|
|
276
|
+
"data-with-border": withBorder || undefined,
|
|
277
|
+
children: [
|
|
278
|
+
shouldDisplayControls && /* @__PURE__ */ jsxs3("div", {
|
|
279
|
+
...getStyles("controls"),
|
|
280
|
+
"data-with-offset": __withOffset || undefined,
|
|
281
|
+
children: [
|
|
282
|
+
controls,
|
|
283
|
+
withExpandButton && /* @__PURE__ */ jsx7(ExpandCodeButton, {
|
|
284
|
+
expanded: _expanded,
|
|
285
|
+
onExpand: setExpanded,
|
|
286
|
+
expandCodeLabel,
|
|
287
|
+
collapseCodeLabel
|
|
288
|
+
}),
|
|
289
|
+
withCopyButton && /* @__PURE__ */ jsx7(CopyCodeButton, {
|
|
290
|
+
code,
|
|
291
|
+
copiedLabel,
|
|
292
|
+
copyLabel
|
|
293
|
+
})
|
|
294
|
+
]
|
|
295
|
+
}),
|
|
296
|
+
/* @__PURE__ */ jsx7(ScrollArea, {
|
|
297
|
+
type: "hover",
|
|
298
|
+
scrollbarSize: 4,
|
|
299
|
+
dir: "ltr",
|
|
300
|
+
offsetScrollbars: false,
|
|
301
|
+
"data-collapsed": !_expanded || undefined,
|
|
302
|
+
styles: { viewport: { overscrollBehaviorInline: "none" } },
|
|
303
|
+
...getStyles("scrollarea"),
|
|
304
|
+
children: /* @__PURE__ */ jsx7("pre", {
|
|
305
|
+
...getStyles("pre"),
|
|
306
|
+
"data-with-offset": __withOffset || undefined,
|
|
307
|
+
children: /* @__PURE__ */ jsx7("code", {
|
|
308
|
+
...highlightedCode.codeElementProps,
|
|
309
|
+
...getStyles("code", {
|
|
310
|
+
className: highlightedCode.codeElementProps?.className,
|
|
311
|
+
style: highlightedCode.codeElementProps?.style
|
|
312
|
+
}),
|
|
313
|
+
...codeContent
|
|
314
|
+
})
|
|
315
|
+
})
|
|
316
|
+
}),
|
|
317
|
+
/* @__PURE__ */ jsx7(UnstyledButton, {
|
|
318
|
+
...getStyles("showCodeButton"),
|
|
319
|
+
mod: { hidden: _expanded },
|
|
320
|
+
onClick: () => setExpanded(true),
|
|
321
|
+
"data-code-color-scheme": codeColorScheme,
|
|
322
|
+
children: expandCodeLabel
|
|
323
|
+
})
|
|
324
|
+
]
|
|
325
|
+
})
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
CodeHighlight.displayName = "@mantine/code-highlight/CodeHighlight";
|
|
329
|
+
CodeHighlight.classes = CodeHighlight_module_default;
|
|
330
|
+
CodeHighlight.varsResolver = varsResolver;
|
|
331
|
+
CodeHighlight.Control = CodeHighlightControl;
|
|
332
|
+
|
|
333
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlight/InlineCodeHighlight.mjs
|
|
334
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
335
|
+
|
|
336
|
+
var varsResolver2 = createVarsResolver((theme, { background, radius }) => ({ inlineCodeHighlight: {
|
|
337
|
+
"--ch-background": background ? getThemeColor(background, theme) : undefined,
|
|
338
|
+
"--ch-radius": typeof radius !== "undefined" ? getRadius(radius) : undefined
|
|
339
|
+
} }));
|
|
340
|
+
var InlineCodeHighlight = factory((_props) => {
|
|
341
|
+
const props = useProps("InlineCodeHighlight", null, _props);
|
|
342
|
+
const { classNames, className, style, styles, unstyled, vars, attributes, ref, ...others } = props;
|
|
343
|
+
const getStyles = useStyles({
|
|
344
|
+
name: "InlineCodeHighlight",
|
|
345
|
+
classes: CodeHighlight_module_default,
|
|
346
|
+
props,
|
|
347
|
+
className,
|
|
348
|
+
style,
|
|
349
|
+
classNames,
|
|
350
|
+
styles,
|
|
351
|
+
unstyled,
|
|
352
|
+
attributes,
|
|
353
|
+
vars,
|
|
354
|
+
varsResolver: varsResolver2,
|
|
355
|
+
rootSelector: "inlineCodeHighlight"
|
|
356
|
+
});
|
|
357
|
+
return /* @__PURE__ */ jsx8(CodeHighlight, {
|
|
358
|
+
...others,
|
|
359
|
+
ref,
|
|
360
|
+
...getStyles("inlineCodeHighlight"),
|
|
361
|
+
__inline: true
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
InlineCodeHighlight.displayName = "@mantine/code-highlight/InlineCodeHighlight";
|
|
365
|
+
InlineCodeHighlight.classes = CodeHighlight_module_default;
|
|
366
|
+
InlineCodeHighlight.varsResolver = varsResolver2;
|
|
367
|
+
|
|
368
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightTabs/FileIcon.mjs
|
|
369
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
370
|
+
|
|
371
|
+
function FileIcon({ fileIcon, fileName, getFileIcon, className, style }) {
|
|
372
|
+
if (fileIcon)
|
|
373
|
+
return /* @__PURE__ */ jsx9("span", {
|
|
374
|
+
className,
|
|
375
|
+
style,
|
|
376
|
+
children: fileIcon
|
|
377
|
+
});
|
|
378
|
+
if (getFileIcon && fileName)
|
|
379
|
+
return /* @__PURE__ */ jsx9("span", {
|
|
380
|
+
className,
|
|
381
|
+
style,
|
|
382
|
+
children: getFileIcon(fileName)
|
|
383
|
+
});
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightTabs/CodeHighlightTabs.mjs
|
|
388
|
+
import { createElement, useEffect as useEffect2 } from "react";
|
|
389
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
390
|
+
|
|
391
|
+
var CodeHighlightTabs = factory((_props) => {
|
|
392
|
+
const props = useProps("CodeHighlightTabs", null, _props);
|
|
393
|
+
const { classNames, className, style, styles, unstyled, vars, defaultActiveTab, activeTab, onTabChange, defaultExpanded, expanded, onExpandedChange, code, getFileIcon, withCopyButton, withExpandButton, withBorder, radius, maxCollapsedHeight, copyLabel, copiedLabel, expandCodeLabel, collapseCodeLabel, background, controls, codeColorScheme, attributes, ...others } = props;
|
|
394
|
+
const getStyles = useStyles({
|
|
395
|
+
name: "CodeHighlightTabs",
|
|
396
|
+
classes: CodeHighlight_module_default,
|
|
397
|
+
props,
|
|
398
|
+
className,
|
|
399
|
+
style,
|
|
400
|
+
classNames,
|
|
401
|
+
styles,
|
|
402
|
+
unstyled,
|
|
403
|
+
attributes,
|
|
404
|
+
vars
|
|
405
|
+
});
|
|
406
|
+
const [value, setValue] = useUncontrolled({
|
|
407
|
+
defaultValue: defaultActiveTab,
|
|
408
|
+
value: activeTab,
|
|
409
|
+
finalValue: 0,
|
|
410
|
+
onChange: onTabChange
|
|
411
|
+
});
|
|
412
|
+
const [_expanded, setExpanded] = useUncontrolled({
|
|
413
|
+
defaultValue: defaultExpanded,
|
|
414
|
+
value: expanded,
|
|
415
|
+
finalValue: true,
|
|
416
|
+
onChange: onExpandedChange
|
|
417
|
+
});
|
|
418
|
+
const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
|
|
419
|
+
classNames,
|
|
420
|
+
styles,
|
|
421
|
+
props
|
|
422
|
+
});
|
|
423
|
+
useEffect2(() => {
|
|
424
|
+
if (value >= code.length)
|
|
425
|
+
setValue(code.length - 1);
|
|
426
|
+
}, [value, code]);
|
|
427
|
+
if (code.length <= 0)
|
|
428
|
+
return null;
|
|
429
|
+
const currentCode = code[value] || {
|
|
430
|
+
code: "",
|
|
431
|
+
language: "tsx",
|
|
432
|
+
fileName: ""
|
|
433
|
+
};
|
|
434
|
+
const files = code.map((node, index) => /* @__PURE__ */ createElement(UnstyledButton, {
|
|
435
|
+
...getStyles("file"),
|
|
436
|
+
key: node.fileName,
|
|
437
|
+
mod: { active: index === value },
|
|
438
|
+
onClick: () => setValue(index),
|
|
439
|
+
"data-color-scheme": codeColorScheme
|
|
440
|
+
}, /* @__PURE__ */ jsx10(FileIcon, {
|
|
441
|
+
fileIcon: node.icon,
|
|
442
|
+
getFileIcon,
|
|
443
|
+
fileName: node.fileName,
|
|
444
|
+
...getStyles("fileIcon")
|
|
445
|
+
}, "file-icon"), /* @__PURE__ */ jsx10("span", { children: node.fileName }, "file-name")));
|
|
446
|
+
return /* @__PURE__ */ jsxs4(Box, {
|
|
447
|
+
...getStyles("root"),
|
|
448
|
+
...others,
|
|
449
|
+
children: [/* @__PURE__ */ jsx10(ScrollArea, {
|
|
450
|
+
type: "never",
|
|
451
|
+
dir: "ltr",
|
|
452
|
+
offsetScrollbars: false,
|
|
453
|
+
...getStyles("filesScrollarea"),
|
|
454
|
+
children: /* @__PURE__ */ jsx10("div", {
|
|
455
|
+
...getStyles("files"),
|
|
456
|
+
children: files
|
|
457
|
+
})
|
|
458
|
+
}), /* @__PURE__ */ jsx10(CodeHighlight, {
|
|
459
|
+
code: currentCode.code,
|
|
460
|
+
language: currentCode.language,
|
|
461
|
+
expanded: _expanded,
|
|
462
|
+
onExpandedChange: setExpanded,
|
|
463
|
+
withCopyButton,
|
|
464
|
+
withExpandButton,
|
|
465
|
+
withBorder,
|
|
466
|
+
radius,
|
|
467
|
+
maxCollapsedHeight,
|
|
468
|
+
copiedLabel,
|
|
469
|
+
copyLabel,
|
|
470
|
+
expandCodeLabel,
|
|
471
|
+
collapseCodeLabel,
|
|
472
|
+
background,
|
|
473
|
+
controls,
|
|
474
|
+
codeColorScheme,
|
|
475
|
+
__withOffset: true,
|
|
476
|
+
__staticSelector: "CodeHighlightTabs",
|
|
477
|
+
classNames: resolvedClassNames,
|
|
478
|
+
styles: resolvedStyles,
|
|
479
|
+
attributes
|
|
480
|
+
})]
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
CodeHighlightTabs.displayName = "@mantine/code-highlight/CodeHighlightTabs";
|
|
484
|
+
CodeHighlightTabs.classes = CodeHighlight_module_default;
|
|
485
|
+
|
|
486
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightProvider/adapters/highlight-js-adapter.mjs
|
|
487
|
+
function createHighlightJsAdapter(hljs) {
|
|
488
|
+
return { getHighlighter: () => ({ code, language }) => {
|
|
489
|
+
const lang = hljs.getLanguage(language) ? language : "plaintext";
|
|
490
|
+
return {
|
|
491
|
+
highlightedCode: hljs.highlight(code.trim(), { language: lang }).value,
|
|
492
|
+
isHighlighted: true,
|
|
493
|
+
codeElementProps: { className: `hljs ${lang}` }
|
|
494
|
+
};
|
|
495
|
+
} };
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightProvider/adapters/shiki-themes.mjs
|
|
499
|
+
var light = {
|
|
500
|
+
colors: {
|
|
501
|
+
"activityBar.activeBorder": "#fd8c73",
|
|
502
|
+
"activityBar.background": "#ffffff",
|
|
503
|
+
"activityBar.border": "#d0d7de",
|
|
504
|
+
"activityBar.foreground": "#1f2328",
|
|
505
|
+
"activityBar.inactiveForeground": "#656d76",
|
|
506
|
+
"activityBarBadge.background": "#0969da",
|
|
507
|
+
"activityBarBadge.foreground": "#ffffff",
|
|
508
|
+
"badge.background": "#0969da",
|
|
509
|
+
"badge.foreground": "#ffffff",
|
|
510
|
+
"breadcrumb.activeSelectionForeground": "#656d76",
|
|
511
|
+
"breadcrumb.focusForeground": "#1f2328",
|
|
512
|
+
"breadcrumb.foreground": "#656d76",
|
|
513
|
+
"breadcrumbPicker.background": "#ffffff",
|
|
514
|
+
"button.background": "#1f883d",
|
|
515
|
+
"button.foreground": "#ffffff",
|
|
516
|
+
"button.hoverBackground": "#1a7f37",
|
|
517
|
+
"button.secondaryBackground": "#ebecf0",
|
|
518
|
+
"button.secondaryForeground": "#24292f",
|
|
519
|
+
"button.secondaryHoverBackground": "#f3f4f6",
|
|
520
|
+
"checkbox.background": "#f6f8fa",
|
|
521
|
+
"checkbox.border": "#d0d7de",
|
|
522
|
+
"debugConsole.errorForeground": "#cf222e",
|
|
523
|
+
"debugConsole.infoForeground": "#57606a",
|
|
524
|
+
"debugConsole.sourceForeground": "#9a6700",
|
|
525
|
+
"debugConsole.warningForeground": "#7d4e00",
|
|
526
|
+
"debugConsoleInputIcon.foreground": "#6639ba",
|
|
527
|
+
"debugIcon.breakpointForeground": "#cf222e",
|
|
528
|
+
"debugTokenExpression.boolean": "#116329",
|
|
529
|
+
"debugTokenExpression.error": "#a40e26",
|
|
530
|
+
"debugTokenExpression.name": "#0550ae",
|
|
531
|
+
"debugTokenExpression.number": "#116329",
|
|
532
|
+
"debugTokenExpression.string": "#0a3069",
|
|
533
|
+
"debugTokenExpression.value": "#0a3069",
|
|
534
|
+
"debugToolBar.background": "#ffffff",
|
|
535
|
+
descriptionForeground: "#656d76",
|
|
536
|
+
"diffEditor.insertedLineBackground": "#aceebb4d",
|
|
537
|
+
"diffEditor.insertedTextBackground": "#6fdd8b80",
|
|
538
|
+
"diffEditor.removedLineBackground": "#ffcecb4d",
|
|
539
|
+
"diffEditor.removedTextBackground": "#ff818266",
|
|
540
|
+
"dropdown.background": "#ffffff",
|
|
541
|
+
"dropdown.border": "#d0d7de",
|
|
542
|
+
"dropdown.foreground": "#1f2328",
|
|
543
|
+
"dropdown.listBackground": "#ffffff",
|
|
544
|
+
"editor.background": "#ffffff",
|
|
545
|
+
"editor.findMatchBackground": "#bf8700",
|
|
546
|
+
"editor.findMatchHighlightBackground": "#fae17d80",
|
|
547
|
+
"editor.focusedStackFrameHighlightBackground": "#4ac26b66",
|
|
548
|
+
"editor.foldBackground": "#6e77811a",
|
|
549
|
+
"editor.foreground": "#1f2328",
|
|
550
|
+
"editor.lineHighlightBackground": "#eaeef280",
|
|
551
|
+
"editor.linkedEditingBackground": "#0969da12",
|
|
552
|
+
"editor.selectionHighlightBackground": "#4ac26b40",
|
|
553
|
+
"editor.stackFrameHighlightBackground": "#d4a72c66",
|
|
554
|
+
"editor.wordHighlightBackground": "#eaeef280",
|
|
555
|
+
"editor.wordHighlightBorder": "#afb8c199",
|
|
556
|
+
"editor.wordHighlightStrongBackground": "#afb8c14d",
|
|
557
|
+
"editor.wordHighlightStrongBorder": "#afb8c199",
|
|
558
|
+
"editorBracketHighlight.foreground1": "#0969da",
|
|
559
|
+
"editorBracketHighlight.foreground2": "#1a7f37",
|
|
560
|
+
"editorBracketHighlight.foreground3": "#9a6700",
|
|
561
|
+
"editorBracketHighlight.foreground4": "#cf222e",
|
|
562
|
+
"editorBracketHighlight.foreground5": "#bf3989",
|
|
563
|
+
"editorBracketHighlight.foreground6": "#8250df",
|
|
564
|
+
"editorBracketHighlight.unexpectedBracket.foreground": "#656d76",
|
|
565
|
+
"editorBracketMatch.background": "#4ac26b40",
|
|
566
|
+
"editorBracketMatch.border": "#4ac26b99",
|
|
567
|
+
"editorCursor.foreground": "#0969da",
|
|
568
|
+
"editorGroup.border": "#d0d7de",
|
|
569
|
+
"editorGroupHeader.tabsBackground": "#f6f8fa",
|
|
570
|
+
"editorGroupHeader.tabsBorder": "#d0d7de",
|
|
571
|
+
"editorGutter.addedBackground": "#4ac26b66",
|
|
572
|
+
"editorGutter.deletedBackground": "#ff818266",
|
|
573
|
+
"editorGutter.modifiedBackground": "#d4a72c66",
|
|
574
|
+
"editorIndentGuide.activeBackground": "#1f23283d",
|
|
575
|
+
"editorIndentGuide.background": "#1f23281f",
|
|
576
|
+
"editorInlayHint.background": "#afb8c133",
|
|
577
|
+
"editorInlayHint.foreground": "#656d76",
|
|
578
|
+
"editorInlayHint.paramBackground": "#afb8c133",
|
|
579
|
+
"editorInlayHint.paramForeground": "#656d76",
|
|
580
|
+
"editorInlayHint.typeBackground": "#afb8c133",
|
|
581
|
+
"editorInlayHint.typeForeground": "#656d76",
|
|
582
|
+
"editorLineNumber.activeForeground": "#1f2328",
|
|
583
|
+
"editorLineNumber.foreground": "#8c959f",
|
|
584
|
+
"editorOverviewRuler.border": "#ffffff",
|
|
585
|
+
"editorWhitespace.foreground": "#afb8c1",
|
|
586
|
+
"editorWidget.background": "#ffffff",
|
|
587
|
+
errorForeground: "#cf222e",
|
|
588
|
+
focusBorder: "#0969da",
|
|
589
|
+
foreground: "#1f2328",
|
|
590
|
+
"gitDecoration.addedResourceForeground": "#1a7f37",
|
|
591
|
+
"gitDecoration.conflictingResourceForeground": "#bc4c00",
|
|
592
|
+
"gitDecoration.deletedResourceForeground": "#cf222e",
|
|
593
|
+
"gitDecoration.ignoredResourceForeground": "#6e7781",
|
|
594
|
+
"gitDecoration.modifiedResourceForeground": "#9a6700",
|
|
595
|
+
"gitDecoration.submoduleResourceForeground": "#656d76",
|
|
596
|
+
"gitDecoration.untrackedResourceForeground": "#1a7f37",
|
|
597
|
+
"icon.foreground": "#656d76",
|
|
598
|
+
"input.background": "#ffffff",
|
|
599
|
+
"input.border": "#d0d7de",
|
|
600
|
+
"input.foreground": "#1f2328",
|
|
601
|
+
"input.placeholderForeground": "#6e7781",
|
|
602
|
+
"keybindingLabel.foreground": "#1f2328",
|
|
603
|
+
"list.activeSelectionBackground": "#afb8c133",
|
|
604
|
+
"list.activeSelectionForeground": "#1f2328",
|
|
605
|
+
"list.focusBackground": "#ddf4ff",
|
|
606
|
+
"list.focusForeground": "#1f2328",
|
|
607
|
+
"list.highlightForeground": "#0969da",
|
|
608
|
+
"list.hoverBackground": "#eaeef280",
|
|
609
|
+
"list.hoverForeground": "#1f2328",
|
|
610
|
+
"list.inactiveFocusBackground": "#ddf4ff",
|
|
611
|
+
"list.inactiveSelectionBackground": "#afb8c133",
|
|
612
|
+
"list.inactiveSelectionForeground": "#1f2328",
|
|
613
|
+
"minimapSlider.activeBackground": "#8c959f47",
|
|
614
|
+
"minimapSlider.background": "#8c959f33",
|
|
615
|
+
"minimapSlider.hoverBackground": "#8c959f3d",
|
|
616
|
+
"notificationCenterHeader.background": "#f6f8fa",
|
|
617
|
+
"notificationCenterHeader.foreground": "#656d76",
|
|
618
|
+
"notifications.background": "#ffffff",
|
|
619
|
+
"notifications.border": "#d0d7de",
|
|
620
|
+
"notifications.foreground": "#1f2328",
|
|
621
|
+
"notificationsErrorIcon.foreground": "#cf222e",
|
|
622
|
+
"notificationsInfoIcon.foreground": "#0969da",
|
|
623
|
+
"notificationsWarningIcon.foreground": "#9a6700",
|
|
624
|
+
"panel.background": "#f6f8fa",
|
|
625
|
+
"panel.border": "#d0d7de",
|
|
626
|
+
"panelInput.border": "#d0d7de",
|
|
627
|
+
"panelTitle.activeBorder": "#fd8c73",
|
|
628
|
+
"panelTitle.activeForeground": "#1f2328",
|
|
629
|
+
"panelTitle.inactiveForeground": "#656d76",
|
|
630
|
+
"pickerGroup.border": "#d0d7de",
|
|
631
|
+
"pickerGroup.foreground": "#656d76",
|
|
632
|
+
"progressBar.background": "#0969da",
|
|
633
|
+
"quickInput.background": "#ffffff",
|
|
634
|
+
"quickInput.foreground": "#1f2328",
|
|
635
|
+
"scrollbar.shadow": "#6e778133",
|
|
636
|
+
"scrollbarSlider.activeBackground": "#8c959f47",
|
|
637
|
+
"scrollbarSlider.background": "#8c959f33",
|
|
638
|
+
"scrollbarSlider.hoverBackground": "#8c959f3d",
|
|
639
|
+
"settings.headerForeground": "#1f2328",
|
|
640
|
+
"settings.modifiedItemIndicator": "#d4a72c66",
|
|
641
|
+
"sideBar.background": "#f6f8fa",
|
|
642
|
+
"sideBar.border": "#d0d7de",
|
|
643
|
+
"sideBar.foreground": "#1f2328",
|
|
644
|
+
"sideBarSectionHeader.background": "#f6f8fa",
|
|
645
|
+
"sideBarSectionHeader.border": "#d0d7de",
|
|
646
|
+
"sideBarSectionHeader.foreground": "#1f2328",
|
|
647
|
+
"sideBarTitle.foreground": "#1f2328",
|
|
648
|
+
"statusBar.background": "#ffffff",
|
|
649
|
+
"statusBar.border": "#d0d7de",
|
|
650
|
+
"statusBar.debuggingBackground": "#cf222e",
|
|
651
|
+
"statusBar.debuggingForeground": "#ffffff",
|
|
652
|
+
"statusBar.focusBorder": "#0969da80",
|
|
653
|
+
"statusBar.foreground": "#656d76",
|
|
654
|
+
"statusBar.noFolderBackground": "#ffffff",
|
|
655
|
+
"statusBarItem.activeBackground": "#1f23281f",
|
|
656
|
+
"statusBarItem.focusBorder": "#0969da",
|
|
657
|
+
"statusBarItem.hoverBackground": "#1f232814",
|
|
658
|
+
"statusBarItem.prominentBackground": "#afb8c133",
|
|
659
|
+
"statusBarItem.remoteBackground": "#eaeef2",
|
|
660
|
+
"statusBarItem.remoteForeground": "#1f2328",
|
|
661
|
+
"symbolIcon.arrayForeground": "#953800",
|
|
662
|
+
"symbolIcon.booleanForeground": "#0550ae",
|
|
663
|
+
"symbolIcon.classForeground": "#953800",
|
|
664
|
+
"symbolIcon.colorForeground": "#0a3069",
|
|
665
|
+
"symbolIcon.constantForeground": "#116329",
|
|
666
|
+
"symbolIcon.constructorForeground": "#3e1f79",
|
|
667
|
+
"symbolIcon.enumeratorForeground": "#953800",
|
|
668
|
+
"symbolIcon.enumeratorMemberForeground": "#0550ae",
|
|
669
|
+
"symbolIcon.eventForeground": "#57606a",
|
|
670
|
+
"symbolIcon.fieldForeground": "#953800",
|
|
671
|
+
"symbolIcon.fileForeground": "#7d4e00",
|
|
672
|
+
"symbolIcon.folderForeground": "#7d4e00",
|
|
673
|
+
"symbolIcon.functionForeground": "#6639ba",
|
|
674
|
+
"symbolIcon.interfaceForeground": "#953800",
|
|
675
|
+
"symbolIcon.keyForeground": "#0550ae",
|
|
676
|
+
"symbolIcon.keywordForeground": "#a40e26",
|
|
677
|
+
"symbolIcon.methodForeground": "#6639ba",
|
|
678
|
+
"symbolIcon.moduleForeground": "#a40e26",
|
|
679
|
+
"symbolIcon.namespaceForeground": "#a40e26",
|
|
680
|
+
"symbolIcon.nullForeground": "#0550ae",
|
|
681
|
+
"symbolIcon.numberForeground": "#116329",
|
|
682
|
+
"symbolIcon.objectForeground": "#953800",
|
|
683
|
+
"symbolIcon.operatorForeground": "#0a3069",
|
|
684
|
+
"symbolIcon.packageForeground": "#953800",
|
|
685
|
+
"symbolIcon.propertyForeground": "#953800",
|
|
686
|
+
"symbolIcon.referenceForeground": "#0550ae",
|
|
687
|
+
"symbolIcon.snippetForeground": "#0550ae",
|
|
688
|
+
"symbolIcon.stringForeground": "#0a3069",
|
|
689
|
+
"symbolIcon.structForeground": "#953800",
|
|
690
|
+
"symbolIcon.textForeground": "#0a3069",
|
|
691
|
+
"symbolIcon.typeParameterForeground": "#0a3069",
|
|
692
|
+
"symbolIcon.unitForeground": "#0550ae",
|
|
693
|
+
"symbolIcon.variableForeground": "#953800",
|
|
694
|
+
"tab.activeBackground": "#ffffff",
|
|
695
|
+
"tab.activeBorder": "#ffffff",
|
|
696
|
+
"tab.activeBorderTop": "#fd8c73",
|
|
697
|
+
"tab.activeForeground": "#1f2328",
|
|
698
|
+
"tab.border": "#d0d7de",
|
|
699
|
+
"tab.hoverBackground": "#ffffff",
|
|
700
|
+
"tab.inactiveBackground": "#f6f8fa",
|
|
701
|
+
"tab.inactiveForeground": "#656d76",
|
|
702
|
+
"tab.unfocusedActiveBorder": "#ffffff",
|
|
703
|
+
"tab.unfocusedActiveBorderTop": "#d0d7de",
|
|
704
|
+
"tab.unfocusedHoverBackground": "#eaeef280",
|
|
705
|
+
"terminal.ansiBlack": "#24292f",
|
|
706
|
+
"terminal.ansiBlue": "#0969da",
|
|
707
|
+
"terminal.ansiBrightBlack": "#57606a",
|
|
708
|
+
"terminal.ansiBrightBlue": "#218bff",
|
|
709
|
+
"terminal.ansiBrightCyan": "#3192aa",
|
|
710
|
+
"terminal.ansiBrightGreen": "#1a7f37",
|
|
711
|
+
"terminal.ansiBrightMagenta": "#a475f9",
|
|
712
|
+
"terminal.ansiBrightRed": "#a40e26",
|
|
713
|
+
"terminal.ansiBrightWhite": "#8c959f",
|
|
714
|
+
"terminal.ansiBrightYellow": "#633c01",
|
|
715
|
+
"terminal.ansiCyan": "#1b7c83",
|
|
716
|
+
"terminal.ansiGreen": "#116329",
|
|
717
|
+
"terminal.ansiMagenta": "#8250df",
|
|
718
|
+
"terminal.ansiRed": "#cf222e",
|
|
719
|
+
"terminal.ansiWhite": "#6e7781",
|
|
720
|
+
"terminal.ansiYellow": "#4d2d00",
|
|
721
|
+
"terminal.foreground": "#1f2328",
|
|
722
|
+
"textBlockQuote.background": "#f6f8fa",
|
|
723
|
+
"textBlockQuote.border": "#d0d7de",
|
|
724
|
+
"textCodeBlock.background": "#afb8c133",
|
|
725
|
+
"textLink.activeForeground": "#0969da",
|
|
726
|
+
"textLink.foreground": "#0969da",
|
|
727
|
+
"textPreformat.foreground": "#656d76",
|
|
728
|
+
"textSeparator.foreground": "#d8dee4",
|
|
729
|
+
"titleBar.activeBackground": "#ffffff",
|
|
730
|
+
"titleBar.activeForeground": "#656d76",
|
|
731
|
+
"titleBar.border": "#d0d7de",
|
|
732
|
+
"titleBar.inactiveBackground": "#f6f8fa",
|
|
733
|
+
"titleBar.inactiveForeground": "#656d76",
|
|
734
|
+
"tree.indentGuidesStroke": "#d8dee4",
|
|
735
|
+
"welcomePage.buttonBackground": "#f6f8fa",
|
|
736
|
+
"welcomePage.buttonHoverBackground": "#f3f4f6"
|
|
737
|
+
},
|
|
738
|
+
displayName: "GitHub Light Default",
|
|
739
|
+
semanticHighlighting: true,
|
|
740
|
+
tokenColors: [
|
|
741
|
+
{
|
|
742
|
+
scope: [
|
|
743
|
+
"comment",
|
|
744
|
+
"punctuation.definition.comment",
|
|
745
|
+
"string.comment"
|
|
746
|
+
],
|
|
747
|
+
settings: { foreground: "#6e7781" }
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
scope: ["constant.other.placeholder", "constant.character"],
|
|
751
|
+
settings: { foreground: "#cf222e" }
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
scope: [
|
|
755
|
+
"constant",
|
|
756
|
+
"entity.name.constant",
|
|
757
|
+
"variable.other.constant",
|
|
758
|
+
"variable.other.enummember",
|
|
759
|
+
"variable.language",
|
|
760
|
+
"entity"
|
|
761
|
+
],
|
|
762
|
+
settings: { foreground: "#0550ae" }
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
scope: [
|
|
766
|
+
"entity.name",
|
|
767
|
+
"meta.export.default",
|
|
768
|
+
"meta.definition.variable"
|
|
769
|
+
],
|
|
770
|
+
settings: { foreground: "#953800" }
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
scope: [
|
|
774
|
+
"variable.parameter.function",
|
|
775
|
+
"meta.jsx.children",
|
|
776
|
+
"meta.block",
|
|
777
|
+
"meta.tag.attributes",
|
|
778
|
+
"entity.name.constant",
|
|
779
|
+
"meta.object.member",
|
|
780
|
+
"meta.embedded.expression"
|
|
781
|
+
],
|
|
782
|
+
settings: { foreground: "#1f2328" }
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
scope: "entity.name.function",
|
|
786
|
+
settings: { foreground: "#8250df" }
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
scope: ["entity.name.tag", "support.class.component"],
|
|
790
|
+
settings: { foreground: "#116329" }
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
scope: "keyword",
|
|
794
|
+
settings: { foreground: "#cf222e" }
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
scope: ["storage", "storage.type"],
|
|
798
|
+
settings: { foreground: "#cf222e" }
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
scope: [
|
|
802
|
+
"storage.modifier.package",
|
|
803
|
+
"storage.modifier.import",
|
|
804
|
+
"storage.type.java"
|
|
805
|
+
],
|
|
806
|
+
settings: { foreground: "#1f2328" }
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
scope: ["string", "string punctuation.section.embedded source"],
|
|
810
|
+
settings: { foreground: "#0a3069" }
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
scope: "support",
|
|
814
|
+
settings: { foreground: "#0550ae" }
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
scope: "meta.property-name",
|
|
818
|
+
settings: { foreground: "#0550ae" }
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
scope: "variable",
|
|
822
|
+
settings: { foreground: "#953800" }
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
scope: "variable.other",
|
|
826
|
+
settings: { foreground: "#1f2328" }
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
scope: "invalid.broken",
|
|
830
|
+
settings: {
|
|
831
|
+
fontStyle: "italic",
|
|
832
|
+
foreground: "#82071e"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
scope: "invalid.deprecated",
|
|
837
|
+
settings: {
|
|
838
|
+
fontStyle: "italic",
|
|
839
|
+
foreground: "#82071e"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
scope: "invalid.illegal",
|
|
844
|
+
settings: {
|
|
845
|
+
fontStyle: "italic",
|
|
846
|
+
foreground: "#82071e"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
scope: "invalid.unimplemented",
|
|
851
|
+
settings: {
|
|
852
|
+
fontStyle: "italic",
|
|
853
|
+
foreground: "#82071e"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
scope: "carriage-return",
|
|
858
|
+
settings: {
|
|
859
|
+
background: "#cf222e",
|
|
860
|
+
content: "^M",
|
|
861
|
+
fontStyle: "italic underline",
|
|
862
|
+
foreground: "#f6f8fa"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
scope: "message.error",
|
|
867
|
+
settings: { foreground: "#82071e" }
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
scope: "string variable",
|
|
871
|
+
settings: { foreground: "#0550ae" }
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
scope: ["source.regexp", "string.regexp"],
|
|
875
|
+
settings: { foreground: "#0a3069" }
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
scope: [
|
|
879
|
+
"string.regexp.character-class",
|
|
880
|
+
"string.regexp constant.character.escape",
|
|
881
|
+
"string.regexp source.ruby.embedded",
|
|
882
|
+
"string.regexp string.regexp.arbitrary-repitition"
|
|
883
|
+
],
|
|
884
|
+
settings: { foreground: "#0a3069" }
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
scope: "string.regexp constant.character.escape",
|
|
888
|
+
settings: {
|
|
889
|
+
fontStyle: "bold",
|
|
890
|
+
foreground: "#116329"
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
scope: "support.constant",
|
|
895
|
+
settings: { foreground: "#0550ae" }
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
scope: "support.variable",
|
|
899
|
+
settings: { foreground: "#0550ae" }
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
scope: "support.type.property-name.json",
|
|
903
|
+
settings: { foreground: "#116329" }
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
scope: "meta.module-reference",
|
|
907
|
+
settings: { foreground: "#0550ae" }
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
scope: "punctuation.definition.list.begin.markdown",
|
|
911
|
+
settings: { foreground: "#953800" }
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
scope: ["markup.heading", "markup.heading entity.name"],
|
|
915
|
+
settings: {
|
|
916
|
+
fontStyle: "bold",
|
|
917
|
+
foreground: "#0550ae"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
scope: "markup.quote",
|
|
922
|
+
settings: { foreground: "#116329" }
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
scope: "markup.italic",
|
|
926
|
+
settings: {
|
|
927
|
+
fontStyle: "italic",
|
|
928
|
+
foreground: "#1f2328"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
scope: "markup.bold",
|
|
933
|
+
settings: {
|
|
934
|
+
fontStyle: "bold",
|
|
935
|
+
foreground: "#1f2328"
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
scope: ["markup.underline"],
|
|
940
|
+
settings: { fontStyle: "underline" }
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
scope: ["markup.strikethrough"],
|
|
944
|
+
settings: { fontStyle: "strikethrough" }
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
scope: "markup.inline.raw",
|
|
948
|
+
settings: { foreground: "#0550ae" }
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
scope: [
|
|
952
|
+
"markup.deleted",
|
|
953
|
+
"meta.diff.header.from-file",
|
|
954
|
+
"punctuation.definition.deleted"
|
|
955
|
+
],
|
|
956
|
+
settings: {
|
|
957
|
+
background: "#ffebe9",
|
|
958
|
+
foreground: "#82071e"
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
scope: ["punctuation.section.embedded"],
|
|
963
|
+
settings: { foreground: "#cf222e" }
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
scope: [
|
|
967
|
+
"markup.inserted",
|
|
968
|
+
"meta.diff.header.to-file",
|
|
969
|
+
"punctuation.definition.inserted"
|
|
970
|
+
],
|
|
971
|
+
settings: {
|
|
972
|
+
background: "#dafbe1",
|
|
973
|
+
foreground: "#116329"
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
scope: ["markup.changed", "punctuation.definition.changed"],
|
|
978
|
+
settings: {
|
|
979
|
+
background: "#ffd8b5",
|
|
980
|
+
foreground: "#953800"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
scope: ["markup.ignored", "markup.untracked"],
|
|
985
|
+
settings: {
|
|
986
|
+
background: "#0550ae",
|
|
987
|
+
foreground: "#eaeef2"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
scope: "meta.diff.range",
|
|
992
|
+
settings: {
|
|
993
|
+
fontStyle: "bold",
|
|
994
|
+
foreground: "#8250df"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
scope: "meta.diff.header",
|
|
999
|
+
settings: { foreground: "#0550ae" }
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
scope: "meta.separator",
|
|
1003
|
+
settings: {
|
|
1004
|
+
fontStyle: "bold",
|
|
1005
|
+
foreground: "#0550ae"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
scope: "meta.output",
|
|
1010
|
+
settings: { foreground: "#0550ae" }
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
scope: [
|
|
1014
|
+
"brackethighlighter.tag",
|
|
1015
|
+
"brackethighlighter.curly",
|
|
1016
|
+
"brackethighlighter.round",
|
|
1017
|
+
"brackethighlighter.square",
|
|
1018
|
+
"brackethighlighter.angle",
|
|
1019
|
+
"brackethighlighter.quote"
|
|
1020
|
+
],
|
|
1021
|
+
settings: { foreground: "#57606a" }
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
scope: "brackethighlighter.unmatched",
|
|
1025
|
+
settings: { foreground: "#82071e" }
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
scope: ["constant.other.reference.link", "string.other.link"],
|
|
1029
|
+
settings: { foreground: "#0a3069" }
|
|
1030
|
+
}
|
|
1031
|
+
],
|
|
1032
|
+
type: "light"
|
|
1033
|
+
};
|
|
1034
|
+
var dark = {
|
|
1035
|
+
type: "dark",
|
|
1036
|
+
colors: {
|
|
1037
|
+
"dropdown.background": "#525252",
|
|
1038
|
+
"list.activeSelectionBackground": "#707070",
|
|
1039
|
+
"quickInputList.focusBackground": "#707070",
|
|
1040
|
+
"list.inactiveSelectionBackground": "#4e4e4e",
|
|
1041
|
+
"list.hoverBackground": "#444444",
|
|
1042
|
+
"list.highlightForeground": "#e58520",
|
|
1043
|
+
"button.background": "#565656",
|
|
1044
|
+
"editor.background": "#1e1e1e",
|
|
1045
|
+
"editor.foreground": "#c5c8c6",
|
|
1046
|
+
"editor.selectionBackground": "#676b7180",
|
|
1047
|
+
"minimap.selectionHighlight": "#676b7180",
|
|
1048
|
+
"editor.selectionHighlightBackground": "#575b6180",
|
|
1049
|
+
"editor.lineHighlightBackground": "#303030",
|
|
1050
|
+
"editorLineNumber.activeForeground": "#949494",
|
|
1051
|
+
"editor.wordHighlightBackground": "#4747a180",
|
|
1052
|
+
"editor.wordHighlightStrongBackground": "#6767ce80",
|
|
1053
|
+
"editorCursor.foreground": "#c07020",
|
|
1054
|
+
"editorWhitespace.foreground": "#505037",
|
|
1055
|
+
"editorIndentGuide.background": "#505037",
|
|
1056
|
+
"editorIndentGuide.activeBackground": "#707057",
|
|
1057
|
+
"editorGroupHeader.tabsBackground": "#282828",
|
|
1058
|
+
"tab.inactiveBackground": "#404040",
|
|
1059
|
+
"tab.border": "#303030",
|
|
1060
|
+
"tab.inactiveForeground": "#d8d8d8",
|
|
1061
|
+
"tab.lastPinnedBorder": "#505050",
|
|
1062
|
+
"peekView.border": "#3655b5",
|
|
1063
|
+
"panelTitle.activeForeground": "#ffffff",
|
|
1064
|
+
"statusBar.background": "#505050",
|
|
1065
|
+
"statusBar.debuggingBackground": "#505050",
|
|
1066
|
+
"statusBar.noFolderBackground": "#505050",
|
|
1067
|
+
"titleBar.activeBackground": "#505050",
|
|
1068
|
+
"statusBarItem.remoteBackground": "#3655b5",
|
|
1069
|
+
"ports.iconRunningProcessForeground": "#CCCCCC",
|
|
1070
|
+
"activityBar.background": "#353535",
|
|
1071
|
+
"activityBar.foreground": "#ffffff",
|
|
1072
|
+
"activityBarBadge.background": "#3655b5",
|
|
1073
|
+
"sideBar.background": "#272727",
|
|
1074
|
+
"sideBarSectionHeader.background": "#505050",
|
|
1075
|
+
"menu.background": "#272727",
|
|
1076
|
+
"menu.foreground": "#CCCCCC",
|
|
1077
|
+
"pickerGroup.foreground": "#b0b0b0",
|
|
1078
|
+
"inputOption.activeBorder": "#3655b5",
|
|
1079
|
+
focusBorder: "#3655b5",
|
|
1080
|
+
"terminal.ansiBlack": "#1e1e1e",
|
|
1081
|
+
"terminal.ansiRed": "#C4265E",
|
|
1082
|
+
"terminal.ansiGreen": "#86B42B",
|
|
1083
|
+
"terminal.ansiYellow": "#B3B42B",
|
|
1084
|
+
"terminal.ansiBlue": "#6A7EC8",
|
|
1085
|
+
"terminal.ansiMagenta": "#8C6BC8",
|
|
1086
|
+
"terminal.ansiCyan": "#56ADBC",
|
|
1087
|
+
"terminal.ansiWhite": "#e3e3dd",
|
|
1088
|
+
"terminal.ansiBrightBlack": "#666666",
|
|
1089
|
+
"terminal.ansiBrightRed": "#f92672",
|
|
1090
|
+
"terminal.ansiBrightGreen": "#A6E22E",
|
|
1091
|
+
"terminal.ansiBrightYellow": "#e2e22e",
|
|
1092
|
+
"terminal.ansiBrightBlue": "#819aff",
|
|
1093
|
+
"terminal.ansiBrightMagenta": "#AE81FF",
|
|
1094
|
+
"terminal.ansiBrightCyan": "#66D9EF",
|
|
1095
|
+
"terminal.ansiBrightWhite": "#f8f8f2",
|
|
1096
|
+
"terminal.inactiveSelectionBackground": "#676b7140"
|
|
1097
|
+
},
|
|
1098
|
+
tokenColors: [
|
|
1099
|
+
{ settings: { foreground: "#C5C8C6" } },
|
|
1100
|
+
{
|
|
1101
|
+
scope: [
|
|
1102
|
+
"meta.embedded",
|
|
1103
|
+
"source.groovy.embedded",
|
|
1104
|
+
"variable.legacy.builtin.python"
|
|
1105
|
+
],
|
|
1106
|
+
settings: { foreground: "#C5C8C6" }
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "Comment",
|
|
1110
|
+
scope: "comment",
|
|
1111
|
+
settings: {
|
|
1112
|
+
fontStyle: "",
|
|
1113
|
+
foreground: "#9A9B99"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
name: "String",
|
|
1118
|
+
scope: "string",
|
|
1119
|
+
settings: {
|
|
1120
|
+
fontStyle: "",
|
|
1121
|
+
foreground: "#9AA83A"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "String Embedded Source",
|
|
1126
|
+
scope: "string source",
|
|
1127
|
+
settings: {
|
|
1128
|
+
fontStyle: "",
|
|
1129
|
+
foreground: "#D08442"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
name: "Number",
|
|
1134
|
+
scope: "constant.numeric",
|
|
1135
|
+
settings: {
|
|
1136
|
+
fontStyle: "",
|
|
1137
|
+
foreground: "#6089B4"
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
name: "Built-in constant",
|
|
1142
|
+
scope: "constant.language",
|
|
1143
|
+
settings: {
|
|
1144
|
+
fontStyle: "",
|
|
1145
|
+
foreground: "#408080"
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
name: "User-defined constant",
|
|
1150
|
+
scope: "constant.character, constant.other",
|
|
1151
|
+
settings: {
|
|
1152
|
+
fontStyle: "",
|
|
1153
|
+
foreground: "#8080FF"
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
name: "Keyword",
|
|
1158
|
+
scope: "keyword",
|
|
1159
|
+
settings: {
|
|
1160
|
+
fontStyle: "",
|
|
1161
|
+
foreground: "#6089B4"
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
name: "Support",
|
|
1166
|
+
scope: "support",
|
|
1167
|
+
settings: {
|
|
1168
|
+
fontStyle: "",
|
|
1169
|
+
foreground: "#C7444A"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
name: "Storage",
|
|
1174
|
+
scope: "storage",
|
|
1175
|
+
settings: {
|
|
1176
|
+
fontStyle: "",
|
|
1177
|
+
foreground: "#9872A2"
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
name: "Class name",
|
|
1182
|
+
scope: "entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution",
|
|
1183
|
+
settings: {
|
|
1184
|
+
fontStyle: "",
|
|
1185
|
+
foreground: "#9B0000"
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: "Inherited class",
|
|
1190
|
+
scope: "entity.other.inherited-class",
|
|
1191
|
+
settings: {
|
|
1192
|
+
fontStyle: "",
|
|
1193
|
+
foreground: "#C7444A"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
name: "Function name",
|
|
1198
|
+
scope: "entity.name.function",
|
|
1199
|
+
settings: {
|
|
1200
|
+
fontStyle: "",
|
|
1201
|
+
foreground: "#CE6700"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
name: "Function argument",
|
|
1206
|
+
scope: "variable.parameter",
|
|
1207
|
+
settings: {
|
|
1208
|
+
fontStyle: "",
|
|
1209
|
+
foreground: "#6089B4"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
name: "Tag name",
|
|
1214
|
+
scope: "entity.name.tag",
|
|
1215
|
+
settings: {
|
|
1216
|
+
fontStyle: "",
|
|
1217
|
+
foreground: "#9872A2"
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
name: "Tag attribute",
|
|
1222
|
+
scope: "entity.other.attribute-name",
|
|
1223
|
+
settings: {
|
|
1224
|
+
fontStyle: "",
|
|
1225
|
+
foreground: "#9872A2"
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
name: "Library function",
|
|
1230
|
+
scope: "support.function",
|
|
1231
|
+
settings: {
|
|
1232
|
+
fontStyle: "",
|
|
1233
|
+
foreground: "#9872A2"
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
name: "Keyword",
|
|
1238
|
+
scope: "keyword",
|
|
1239
|
+
settings: {
|
|
1240
|
+
fontStyle: "",
|
|
1241
|
+
foreground: "#676867"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
name: "Class Variable",
|
|
1246
|
+
scope: "variable.other, variable.js, punctuation.separator.variable",
|
|
1247
|
+
settings: {
|
|
1248
|
+
fontStyle: "",
|
|
1249
|
+
foreground: "#6089B4"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
name: "Meta Brace",
|
|
1254
|
+
scope: "punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html",
|
|
1255
|
+
settings: {
|
|
1256
|
+
fontStyle: "",
|
|
1257
|
+
foreground: "#008200"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
name: "Invalid",
|
|
1262
|
+
scope: "invalid",
|
|
1263
|
+
settings: {
|
|
1264
|
+
fontStyle: "",
|
|
1265
|
+
foreground: "#FF0B00"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
name: "Normal Variable",
|
|
1270
|
+
scope: "variable.other.php, variable.other.normal",
|
|
1271
|
+
settings: {
|
|
1272
|
+
fontStyle: "",
|
|
1273
|
+
foreground: "#6089B4"
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: "Function Object",
|
|
1278
|
+
scope: "meta.function-call.object",
|
|
1279
|
+
settings: {
|
|
1280
|
+
fontStyle: "",
|
|
1281
|
+
foreground: "#9872A2"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
name: "Function Call Variable",
|
|
1286
|
+
scope: "variable.other.property",
|
|
1287
|
+
settings: {
|
|
1288
|
+
fontStyle: "",
|
|
1289
|
+
foreground: "#9872A2"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
name: "Keyword Control / Special",
|
|
1294
|
+
scope: [
|
|
1295
|
+
"keyword.control",
|
|
1296
|
+
"keyword.operator.new.cpp",
|
|
1297
|
+
"keyword.operator.delete.cpp",
|
|
1298
|
+
"keyword.other.using",
|
|
1299
|
+
"keyword.other.directive.using",
|
|
1300
|
+
"keyword.other.operator"
|
|
1301
|
+
],
|
|
1302
|
+
settings: {
|
|
1303
|
+
fontStyle: "",
|
|
1304
|
+
foreground: "#9872A2"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
name: "Tag",
|
|
1309
|
+
scope: "meta.tag",
|
|
1310
|
+
settings: {
|
|
1311
|
+
fontStyle: "",
|
|
1312
|
+
foreground: "#D0B344"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
name: "Tag Name",
|
|
1317
|
+
scope: "entity.name.tag",
|
|
1318
|
+
settings: {
|
|
1319
|
+
fontStyle: "",
|
|
1320
|
+
foreground: "#6089B4"
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
name: "Doctype",
|
|
1325
|
+
scope: "meta.doctype, meta.tag.sgml-declaration.doctype, meta.tag.sgml.doctype",
|
|
1326
|
+
settings: {
|
|
1327
|
+
fontStyle: "",
|
|
1328
|
+
foreground: "#9AA83A"
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: "Tag Inline Source",
|
|
1333
|
+
scope: "meta.tag.inline source, text.html.php.source",
|
|
1334
|
+
settings: {
|
|
1335
|
+
fontStyle: "",
|
|
1336
|
+
foreground: "#9AA83A"
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
name: "Tag Other",
|
|
1341
|
+
scope: "meta.tag.other, entity.name.tag.style, entity.name.tag.script, meta.tag.block.script, source.js.embedded punctuation.definition.tag.html, source.css.embedded punctuation.definition.tag.html",
|
|
1342
|
+
settings: {
|
|
1343
|
+
fontStyle: "",
|
|
1344
|
+
foreground: "#9872A2"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
name: "Tag Attribute",
|
|
1349
|
+
scope: "entity.other.attribute-name, meta.tag punctuation.definition.string",
|
|
1350
|
+
settings: {
|
|
1351
|
+
fontStyle: "",
|
|
1352
|
+
foreground: "#D0B344"
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
name: "Tag Value",
|
|
1357
|
+
scope: "meta.tag string -source -punctuation, text source text meta.tag string -punctuation",
|
|
1358
|
+
settings: {
|
|
1359
|
+
fontStyle: "",
|
|
1360
|
+
foreground: "#6089B4"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
name: "Meta Brace",
|
|
1365
|
+
scope: "punctuation.section.embedded -(source string source punctuation.section.embedded), meta.brace.erb.html",
|
|
1366
|
+
settings: {
|
|
1367
|
+
fontStyle: "",
|
|
1368
|
+
foreground: "#D0B344"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: "HTML ID",
|
|
1373
|
+
scope: "meta.toc-list.id",
|
|
1374
|
+
settings: { foreground: "#9AA83A" }
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
name: "HTML String",
|
|
1378
|
+
scope: "string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.definition.string.end.html source, string.quoted.double.html source",
|
|
1379
|
+
settings: {
|
|
1380
|
+
fontStyle: "",
|
|
1381
|
+
foreground: "#9AA83A"
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
name: "HTML Tags",
|
|
1386
|
+
scope: "punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end",
|
|
1387
|
+
settings: {
|
|
1388
|
+
fontStyle: "",
|
|
1389
|
+
foreground: "#6089B4"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
name: "CSS ID",
|
|
1394
|
+
scope: "meta.selector entity.other.attribute-name.id",
|
|
1395
|
+
settings: {
|
|
1396
|
+
fontStyle: "",
|
|
1397
|
+
foreground: "#9872A2"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
name: "CSS Property Name",
|
|
1402
|
+
scope: "source.css support.type.property-name",
|
|
1403
|
+
settings: {
|
|
1404
|
+
fontStyle: "",
|
|
1405
|
+
foreground: "#676867"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
name: "CSS Property Value",
|
|
1410
|
+
scope: "meta.property-group support.constant.property-value, meta.property-value support.constant.property-value",
|
|
1411
|
+
settings: {
|
|
1412
|
+
fontStyle: "",
|
|
1413
|
+
foreground: "#C7444A"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
name: "JavaScript Variable",
|
|
1418
|
+
scope: "variable.language.js",
|
|
1419
|
+
settings: { foreground: "#CC555A" }
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
name: "Template Definition",
|
|
1423
|
+
scope: ["punctuation.definition.template-expression", "punctuation.section.embedded.coffee"],
|
|
1424
|
+
settings: { foreground: "#D08442" }
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
name: "Reset JavaScript string interpolation expression",
|
|
1428
|
+
scope: ["meta.template.expression"],
|
|
1429
|
+
settings: { foreground: "#C5C8C6" }
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
name: "PHP Function Call",
|
|
1433
|
+
scope: "meta.function-call.object.php",
|
|
1434
|
+
settings: {
|
|
1435
|
+
fontStyle: "",
|
|
1436
|
+
foreground: "#D0B344"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
name: "PHP Single Quote HMTL Fix",
|
|
1441
|
+
scope: "punctuation.definition.string.end.php, punctuation.definition.string.begin.php",
|
|
1442
|
+
settings: { foreground: "#9AA83A" }
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: "PHP Parenthesis HMTL Fix",
|
|
1446
|
+
scope: "source.php.embedded.line.html",
|
|
1447
|
+
settings: { foreground: "#676867" }
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
name: "PHP Punctuation Embedded",
|
|
1451
|
+
scope: "punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php",
|
|
1452
|
+
settings: {
|
|
1453
|
+
fontStyle: "",
|
|
1454
|
+
foreground: "#D08442"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
name: "Ruby Symbol",
|
|
1459
|
+
scope: "constant.other.symbol.ruby",
|
|
1460
|
+
settings: {
|
|
1461
|
+
fontStyle: "",
|
|
1462
|
+
foreground: "#9AA83A"
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
name: "Ruby Variable",
|
|
1467
|
+
scope: "variable.language.ruby",
|
|
1468
|
+
settings: {
|
|
1469
|
+
fontStyle: "",
|
|
1470
|
+
foreground: "#D0B344"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: "Ruby Special Method",
|
|
1475
|
+
scope: "keyword.other.special-method.ruby",
|
|
1476
|
+
settings: {
|
|
1477
|
+
fontStyle: "",
|
|
1478
|
+
foreground: "#D9B700"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
name: "Ruby Embedded Source",
|
|
1483
|
+
scope: ["punctuation.section.embedded.begin.ruby", "punctuation.section.embedded.end.ruby"],
|
|
1484
|
+
settings: { foreground: "#D08442" }
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
name: "SQL",
|
|
1488
|
+
scope: "keyword.other.DML.sql",
|
|
1489
|
+
settings: {
|
|
1490
|
+
fontStyle: "",
|
|
1491
|
+
foreground: "#D0B344"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
name: "diff: header",
|
|
1496
|
+
scope: "meta.diff, meta.diff.header",
|
|
1497
|
+
settings: {
|
|
1498
|
+
fontStyle: "italic",
|
|
1499
|
+
foreground: "#E0EDDD"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
name: "diff: deleted",
|
|
1504
|
+
scope: "markup.deleted",
|
|
1505
|
+
settings: {
|
|
1506
|
+
fontStyle: "",
|
|
1507
|
+
foreground: "#dc322f"
|
|
1508
|
+
}
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
name: "diff: changed",
|
|
1512
|
+
scope: "markup.changed",
|
|
1513
|
+
settings: {
|
|
1514
|
+
fontStyle: "",
|
|
1515
|
+
foreground: "#cb4b16"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
name: "diff: inserted",
|
|
1520
|
+
scope: "markup.inserted",
|
|
1521
|
+
settings: { foreground: "#219186" }
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
name: "Markup Quote",
|
|
1525
|
+
scope: "markup.quote",
|
|
1526
|
+
settings: { foreground: "#9872A2" }
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
name: "Markup Lists",
|
|
1530
|
+
scope: "markup.list",
|
|
1531
|
+
settings: { foreground: "#9AA83A" }
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
name: "Markup Styling",
|
|
1535
|
+
scope: "markup.bold, markup.italic",
|
|
1536
|
+
settings: { foreground: "#6089B4" }
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
name: "Markup Inline",
|
|
1540
|
+
scope: "markup.inline.raw",
|
|
1541
|
+
settings: {
|
|
1542
|
+
fontStyle: "",
|
|
1543
|
+
foreground: "#FF0080"
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
name: "Markup Headings",
|
|
1548
|
+
scope: "markup.heading",
|
|
1549
|
+
settings: { foreground: "#D0B344" }
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
name: "Markup Setext Header",
|
|
1553
|
+
scope: "markup.heading.setext",
|
|
1554
|
+
settings: {
|
|
1555
|
+
fontStyle: "",
|
|
1556
|
+
foreground: "#D0B344"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
name: "Markdown Headings",
|
|
1561
|
+
scope: "markup.heading.markdown",
|
|
1562
|
+
settings: { fontStyle: "bold" }
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
name: "Markdown Quote",
|
|
1566
|
+
scope: "markup.quote.markdown",
|
|
1567
|
+
settings: {
|
|
1568
|
+
fontStyle: "italic",
|
|
1569
|
+
foreground: ""
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
name: "Markdown Bold",
|
|
1574
|
+
scope: "markup.bold.markdown",
|
|
1575
|
+
settings: { fontStyle: "bold" }
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
name: "Markdown Link Title/Description",
|
|
1579
|
+
scope: "string.other.link.title.markdown,string.other.link.description.markdown",
|
|
1580
|
+
settings: { foreground: "#AE81FF" }
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
name: "Markdown Underline Link/Image",
|
|
1584
|
+
scope: "markup.underline.link.markdown,markup.underline.link.image.markdown",
|
|
1585
|
+
settings: { foreground: "" }
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
name: "Markdown Emphasis",
|
|
1589
|
+
scope: "markup.italic.markdown",
|
|
1590
|
+
settings: { fontStyle: "italic" }
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
scope: "markup.strikethrough",
|
|
1594
|
+
settings: { fontStyle: "strikethrough" }
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
name: "Markdown Punctuation Definition Link",
|
|
1598
|
+
scope: "markup.list.unnumbered.markdown, markup.list.numbered.markdown",
|
|
1599
|
+
settings: { foreground: "" }
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
name: "Markdown List Punctuation",
|
|
1603
|
+
scope: ["punctuation.definition.list.begin.markdown"],
|
|
1604
|
+
settings: { foreground: "" }
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
scope: "token.info-token",
|
|
1608
|
+
settings: { foreground: "#6796e6" }
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
scope: "token.warn-token",
|
|
1612
|
+
settings: { foreground: "#cd9731" }
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
scope: "token.error-token",
|
|
1616
|
+
settings: { foreground: "#f44747" }
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
scope: "token.debug-token",
|
|
1620
|
+
settings: { foreground: "#b267e6" }
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
name: "this.self",
|
|
1624
|
+
scope: "variable.language",
|
|
1625
|
+
settings: { foreground: "#c7444a" }
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
semanticHighlighting: true
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
// node_modules/@mantine/code-highlight/esm/CodeHighlightProvider/adapters/shiki-adapter.mjs
|
|
1632
|
+
function stripElement(openTag, data) {
|
|
1633
|
+
const openIndex = data.indexOf(`<${openTag}`);
|
|
1634
|
+
let closeIndex = openIndex + openTag.length;
|
|
1635
|
+
for (let i = openIndex;i < data.length; i++)
|
|
1636
|
+
if (data[i] === ">") {
|
|
1637
|
+
closeIndex = i;
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
return (data.slice(0, openIndex) + data.slice(closeIndex + 1)).replace(`</${openTag}>`, "");
|
|
1641
|
+
}
|
|
1642
|
+
function stripShikiCodeBlocks(data) {
|
|
1643
|
+
return stripElement("code", stripElement("pre", data));
|
|
1644
|
+
}
|
|
1645
|
+
var createShikiAdapter = (loadShiki, { forceColorScheme } = {}) => {
|
|
1646
|
+
return {
|
|
1647
|
+
loadContext: loadShiki,
|
|
1648
|
+
getHighlighter: (ctx) => {
|
|
1649
|
+
if (!ctx)
|
|
1650
|
+
return ({ code }) => ({
|
|
1651
|
+
highlightedCode: code,
|
|
1652
|
+
isHighlighted: false
|
|
1653
|
+
});
|
|
1654
|
+
return ({ code, language, colorScheme }) => {
|
|
1655
|
+
let _colorScheme = colorScheme;
|
|
1656
|
+
if (colorScheme === "light")
|
|
1657
|
+
_colorScheme = light;
|
|
1658
|
+
else if (colorScheme === "dark")
|
|
1659
|
+
_colorScheme = dark;
|
|
1660
|
+
return {
|
|
1661
|
+
isHighlighted: true,
|
|
1662
|
+
highlightedCode: stripShikiCodeBlocks(ctx.codeToHtml(code, {
|
|
1663
|
+
lang: language,
|
|
1664
|
+
theme: forceColorScheme || _colorScheme
|
|
1665
|
+
}))
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
export {
|
|
1672
|
+
useHighlight,
|
|
1673
|
+
useCodeHighlightContext,
|
|
1674
|
+
stripShikiCodeBlocks,
|
|
1675
|
+
plainTextAdapter,
|
|
1676
|
+
createShikiAdapter,
|
|
1677
|
+
createHighlightJsAdapter,
|
|
1678
|
+
InlineCodeHighlight,
|
|
1679
|
+
CodeHighlightTabs,
|
|
1680
|
+
CodeHighlightControl,
|
|
1681
|
+
CodeHighlightAdapterProvider,
|
|
1682
|
+
CodeHighlight
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
//# debugId=E2BD554F144B6E6E64756E2164756E21
|