giggles 0.3.9 → 0.3.10
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.
|
@@ -9,9 +9,9 @@ var defaultTheme = {
|
|
|
9
9
|
hintDimColor: "#5C5C5C",
|
|
10
10
|
hintHighlightColor: "#D4D4D4",
|
|
11
11
|
hintHighlightDimColor: "#A0A0A0",
|
|
12
|
-
indicator: "\
|
|
13
|
-
checkedIndicator: "\
|
|
14
|
-
uncheckedIndicator: "\
|
|
12
|
+
indicator: "\u25B6",
|
|
13
|
+
checkedIndicator: "\u25A3",
|
|
14
|
+
uncheckedIndicator: "\u25FB"
|
|
15
15
|
};
|
|
16
16
|
var ThemeContext = createContext(defaultTheme);
|
|
17
17
|
function ThemeProvider({ theme, children }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTheme
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EVD6YPS3.js";
|
|
4
4
|
|
|
5
5
|
// src/ui/CodeBlock.tsx
|
|
6
6
|
import Prism from "prismjs";
|
|
@@ -16,6 +16,9 @@ var defaultTokenColors = {
|
|
|
16
16
|
punctuation: "#ABB2BF",
|
|
17
17
|
builtin: "#E5C07B",
|
|
18
18
|
className: "#E5C07B",
|
|
19
|
+
variable: "#E06C75",
|
|
20
|
+
property: "#E06C75",
|
|
21
|
+
regex: "#98C379",
|
|
19
22
|
inserted: "#98C379",
|
|
20
23
|
deleted: "#E06C75"
|
|
21
24
|
};
|
|
@@ -72,9 +75,31 @@ function getTokenColor(type, colors) {
|
|
|
72
75
|
return colors.builtin;
|
|
73
76
|
case "class-name":
|
|
74
77
|
case "maybe-class-name":
|
|
78
|
+
case "namespace":
|
|
75
79
|
return colors.className;
|
|
80
|
+
case "variable":
|
|
81
|
+
return colors.variable;
|
|
82
|
+
case "property":
|
|
83
|
+
case "string-property":
|
|
84
|
+
return colors.property;
|
|
85
|
+
case "regex":
|
|
86
|
+
case "regex-source":
|
|
87
|
+
case "regex-delimiter":
|
|
88
|
+
case "regex-flags":
|
|
89
|
+
return colors.regex;
|
|
90
|
+
case "url":
|
|
91
|
+
return colors.string;
|
|
76
92
|
case "attr-name":
|
|
77
93
|
return colors.function;
|
|
94
|
+
case "entity":
|
|
95
|
+
return colors.builtin;
|
|
96
|
+
case "atrule":
|
|
97
|
+
return colors.keyword;
|
|
98
|
+
case "selector":
|
|
99
|
+
return colors.className;
|
|
100
|
+
case "bold":
|
|
101
|
+
case "italic":
|
|
102
|
+
return colors.keyword;
|
|
78
103
|
case "inserted-sign":
|
|
79
104
|
case "inserted":
|
|
80
105
|
return colors.inserted;
|
package/dist/index.js
CHANGED
package/dist/markdown/index.js
CHANGED
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "../chunk-CKA5JJ4B.js";
|
|
8
8
|
import {
|
|
9
9
|
CodeBlock
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-WJRBHS5J.js";
|
|
11
11
|
import {
|
|
12
12
|
useTheme
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-EVD6YPS3.js";
|
|
14
14
|
|
|
15
15
|
// src/ui/CommandPalette.tsx
|
|
16
16
|
import { useState } from "react";
|