@code0-tech/pictor 0.2.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/_virtual/compiler-runtime.js +5 -0
  2. package/dist/_virtual/compiler-runtime2.js +4 -0
  3. package/dist/_virtual/react-compiler-runtime.development.js +4 -0
  4. package/dist/_virtual/react-compiler-runtime.production.js +4 -0
  5. package/dist/assets/components/alert/Alert.style.css +1 -0
  6. package/dist/assets/components/aurora/Aurora.style.css +1 -0
  7. package/dist/assets/components/avatar/Avatar.style.css +1 -0
  8. package/dist/assets/components/badge/Badge.style.css +1 -0
  9. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +1 -0
  10. package/dist/assets/components/button/Button.style.css +1 -0
  11. package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
  12. package/dist/assets/components/card/Card.style.css +1 -0
  13. package/dist/assets/components/col/Col.style.css +1 -0
  14. package/dist/assets/components/command/Command.style.css +1 -0
  15. package/dist/assets/components/container/Container.style.css +1 -0
  16. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  17. package/dist/assets/components/data-table/DataTable.style.css +1 -0
  18. package/dist/assets/components/dialog/Dialog.style.css +1 -0
  19. package/dist/assets/components/editor/Editor.styles.css +1 -0
  20. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
  21. package/dist/assets/components/flex/Flex.style.css +1 -0
  22. package/dist/assets/components/form/Input.style.css +1 -0
  23. package/dist/assets/components/fullscreen/FullScreen.style.css +1 -0
  24. package/dist/assets/components/layout/Layout.style.css +1 -0
  25. package/dist/assets/components/menu/Menu.style.css +1 -0
  26. package/dist/assets/components/quote/Quote.style.css +1 -0
  27. package/dist/assets/components/resizable/Resizable.style.css +1 -0
  28. package/dist/assets/components/row/Row.style.css +1 -0
  29. package/dist/assets/components/scroll-area/ScrollArea.style.css +1 -0
  30. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
  31. package/dist/assets/components/spacing/Spacing.style.css +1 -0
  32. package/dist/assets/components/tab/Tab.style.css +1 -0
  33. package/dist/assets/components/text/Text.style.css +1 -0
  34. package/dist/assets/components/toast/Toast.style.css +1 -0
  35. package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
  36. package/dist/components/alert/Alert.d.ts +7 -0
  37. package/dist/components/alert/Alert.js +39 -0
  38. package/dist/components/aurora/Aurora.d.ts +5 -0
  39. package/dist/components/aurora/Aurora.js +23 -0
  40. package/dist/components/avatar/Avatar.d.ts +10 -0
  41. package/dist/components/avatar/Avatar.js +53 -0
  42. package/dist/components/badge/Badge.d.ts +8 -0
  43. package/dist/components/badge/Badge.js +63 -0
  44. package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
  45. package/dist/components/breadcrumb/Breadcrumb.js +19 -0
  46. package/dist/components/button/Button.d.ts +11 -0
  47. package/dist/components/button/Button.js +31 -0
  48. package/dist/components/button-group/ButtonGroup.d.ts +8 -0
  49. package/dist/components/button-group/ButtonGroup.js +28 -0
  50. package/dist/components/card/Card.d.ts +15 -0
  51. package/dist/components/card/Card.js +42 -0
  52. package/dist/components/card/CardSection.d.ts +10 -0
  53. package/dist/components/card/CardSection.js +28 -0
  54. package/dist/{esm/components → components}/col/Col.d.ts +3 -5
  55. package/dist/components/col/Col.js +27 -0
  56. package/dist/components/command/Command.d.ts +30 -0
  57. package/dist/components/command/Command.js +103 -0
  58. package/dist/components/container/Container.d.ts +6 -0
  59. package/dist/components/container/Container.js +21 -0
  60. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  61. package/dist/components/context-menu/ContextMenu.js +106 -0
  62. package/dist/components/data-table/DataTable.d.ts +23 -0
  63. package/dist/components/data-table/DataTable.js +41 -0
  64. package/dist/components/data-table/DataTableColumn.d.ts +6 -0
  65. package/dist/components/data-table/DataTableColumn.js +22 -0
  66. package/dist/components/data-table/DataTableFilterInput.d.ts +18 -0
  67. package/dist/components/data-table/DataTableFilterInput.js +212 -0
  68. package/dist/components/data-table/DataTableFilterSuggestionMenu.d.ts +7 -0
  69. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +53 -0
  70. package/dist/components/data-table/index.d.ts +4 -0
  71. package/dist/components/data-table/index.js +11 -0
  72. package/dist/components/dialog/Dialog.d.ts +29 -0
  73. package/dist/components/dialog/Dialog.js +102 -0
  74. package/dist/components/editor/Editor.d.ts +29 -0
  75. package/dist/components/editor/Editor.js +337 -0
  76. package/dist/components/file-tabs/FileTabs.d.ts +17 -0
  77. package/dist/components/file-tabs/FileTabs.js +71 -0
  78. package/dist/components/file-tabs/FileTabs.service.d.ts +17 -0
  79. package/dist/components/file-tabs/FileTabs.service.js +88 -0
  80. package/dist/components/file-tabs/FileTabs.view.d.ts +10 -0
  81. package/dist/components/file-tabs/FileTabs.view.js +1 -0
  82. package/dist/components/file-tabs/index.d.ts +3 -0
  83. package/dist/components/file-tabs/index.js +9 -0
  84. package/dist/components/flex/Flex.d.ts +7 -0
  85. package/dist/components/flex/Flex.js +21 -0
  86. package/dist/components/form/CheckboxInput.d.ts +5 -0
  87. package/dist/components/form/CheckboxInput.js +76 -0
  88. package/dist/components/form/EmailInput.d.ts +8 -0
  89. package/dist/components/form/EmailInput.js +21 -0
  90. package/dist/components/form/Input.d.ts +35 -0
  91. package/dist/components/form/Input.js +434 -0
  92. package/dist/components/form/Input.syntax.hook.d.ts +10 -0
  93. package/dist/components/form/Input.syntax.hook.js +14 -0
  94. package/dist/components/form/Input.utils.d.ts +10 -0
  95. package/dist/components/form/Input.utils.js +38 -0
  96. package/dist/components/form/InputContentEditable.hook.d.ts +52 -0
  97. package/dist/components/form/InputContentEditable.hook.js +449 -0
  98. package/dist/components/form/InputDescription.d.ts +5 -0
  99. package/dist/components/form/InputDescription.js +12 -0
  100. package/dist/components/form/InputLabel.d.ts +5 -0
  101. package/dist/components/form/InputLabel.js +12 -0
  102. package/dist/components/form/InputMessage.d.ts +5 -0
  103. package/dist/components/form/InputMessage.js +18 -0
  104. package/dist/components/form/InputSuggestion.d.ts +27 -0
  105. package/dist/components/form/InputSuggestion.js +218 -0
  106. package/dist/components/form/NumberInput.d.ts +6 -0
  107. package/dist/components/form/NumberInput.js +20 -0
  108. package/dist/components/form/PasswordInput.d.ts +8 -0
  109. package/dist/components/form/PasswordInput.js +19 -0
  110. package/dist/components/form/PinInput.d.ts +11 -0
  111. package/dist/components/form/PinInput.js +66 -0
  112. package/dist/components/form/RadioGroup.d.ts +5 -0
  113. package/dist/components/form/RadioGroup.js +48 -0
  114. package/dist/components/form/RadioInput.d.ts +7 -0
  115. package/dist/components/form/RadioInput.js +27 -0
  116. package/dist/components/form/SwitchInput.d.ts +6 -0
  117. package/dist/components/form/SwitchInput.js +19 -0
  118. package/dist/components/form/TextAreaInput.d.ts +7 -0
  119. package/dist/components/form/TextAreaInput.js +20 -0
  120. package/dist/components/form/TextInput.d.ts +7 -0
  121. package/dist/components/form/TextInput.js +20 -0
  122. package/dist/components/form/index.d.ts +17 -0
  123. package/dist/components/form/index.js +40 -0
  124. package/dist/components/form/useForm.d.ts +30 -0
  125. package/dist/components/form/useForm.js +78 -0
  126. package/dist/components/fullscreen/FullScreen.d.ts +6 -0
  127. package/dist/components/fullscreen/FullScreen.js +26 -0
  128. package/dist/components/layout/Layout.d.ts +12 -0
  129. package/dist/components/layout/Layout.js +75 -0
  130. package/dist/components/menu/Menu.d.ts +35 -0
  131. package/dist/components/menu/Menu.js +120 -0
  132. package/dist/components/quote/Quote.d.ts +10 -0
  133. package/dist/components/quote/Quote.js +44 -0
  134. package/dist/components/resizable/Resizable.d.ts +12 -0
  135. package/dist/components/resizable/Resizable.js +34 -0
  136. package/dist/components/row/Row.d.ts +6 -0
  137. package/dist/components/row/Row.js +21 -0
  138. package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
  139. package/dist/components/scroll-area/ScrollArea.js +43 -0
  140. package/dist/components/segmented-control/SegmentedControl.d.ts +10 -0
  141. package/dist/components/segmented-control/SegmentedControl.js +26 -0
  142. package/dist/components/spacing/Spacing.d.ts +6 -0
  143. package/dist/components/spacing/Spacing.js +23 -0
  144. package/dist/components/tab/Tab.d.ts +11 -0
  145. package/dist/components/tab/Tab.js +40 -0
  146. package/dist/components/text/Text.d.ts +8 -0
  147. package/dist/components/text/Text.js +23 -0
  148. package/dist/components/toast/Toast.d.ts +13 -0
  149. package/dist/components/toast/Toast.js +66 -0
  150. package/dist/components/tooltip/Tooltip.d.ts +17 -0
  151. package/dist/components/tooltip/Tooltip.js +48 -0
  152. package/dist/index.d.ts +33 -300
  153. package/dist/index.js +191 -0
  154. package/dist/node_modules/@lezer/common/dist/index.js +146 -0
  155. package/dist/node_modules/@lezer/highlight/dist/index.js +543 -0
  156. package/dist/node_modules/prettier/plugins/babel.js +7157 -0
  157. package/dist/node_modules/prettier/plugins/estree.js +4453 -0
  158. package/dist/node_modules/prettier/standalone.js +2429 -0
  159. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
  160. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
  161. package/dist/node_modules/react/compiler-runtime.js +10 -0
  162. package/dist/utils/arrayService.d.ts +10 -0
  163. package/dist/utils/arrayService.js +1 -0
  164. package/dist/utils/contextStore.d.ts +62 -0
  165. package/dist/utils/contextStore.js +60 -0
  166. package/dist/utils/index.d.ts +8 -0
  167. package/dist/utils/index.js +25 -0
  168. package/dist/utils/inspection.d.ts +15 -0
  169. package/dist/utils/inspection.js +29 -0
  170. package/dist/utils/nonReactiveArrayService.d.ts +19 -0
  171. package/dist/utils/nonReactiveArrayService.js +54 -0
  172. package/dist/utils/objectStore.d.ts +12 -0
  173. package/dist/utils/objectStore.js +34 -0
  174. package/dist/utils/reactiveArrayService.d.ts +23 -0
  175. package/dist/utils/reactiveArrayService.js +90 -0
  176. package/dist/{cjs/utils → utils}/types.d.ts +4 -4
  177. package/dist/utils/types.js +4 -0
  178. package/dist/utils/utils.d.ts +55 -0
  179. package/dist/utils/utils.js +159 -0
  180. package/dist/utils/view.d.ts +8 -0
  181. package/dist/utils/view.js +28 -0
  182. package/package.json +130 -54
  183. package/dist/cjs/components/Text/Text.d.ts +0 -10
  184. package/dist/cjs/components/alert/Alert.d.ts +0 -16
  185. package/dist/cjs/components/badge/Badge.d.ts +0 -9
  186. package/dist/cjs/components/button/Button.d.ts +0 -17
  187. package/dist/cjs/components/button-group/ButtonGroup.d.ts +0 -9
  188. package/dist/cjs/components/card/Card.d.ts +0 -20
  189. package/dist/cjs/components/col/Col.d.ts +0 -15
  190. package/dist/cjs/components/container/Container.d.ts +0 -8
  191. package/dist/cjs/components/dropdown/Dropdown.d.ts +0 -24
  192. package/dist/cjs/components/dropdown/DropdownFooter.d.ts +0 -13
  193. package/dist/cjs/components/dropdown/DropdownHeader.d.ts +0 -13
  194. package/dist/cjs/components/dropdown/DropdownItem.d.ts +0 -12
  195. package/dist/cjs/components/dropdown/DropdownItemGroup.d.ts +0 -12
  196. package/dist/cjs/components/input/Input.d.ts +0 -37
  197. package/dist/cjs/components/list-group/ListGroup.d.ts +0 -12
  198. package/dist/cjs/components/menu/InternalMenu.d.ts +0 -4
  199. package/dist/cjs/components/menu/Menu.d.ts +0 -41
  200. package/dist/cjs/components/popover/InternalPopover.d.ts +0 -10
  201. package/dist/cjs/components/popover/Popover.d.ts +0 -16
  202. package/dist/cjs/components/quote/Quote.d.ts +0 -12
  203. package/dist/cjs/components/row/Row.d.ts +0 -8
  204. package/dist/cjs/components/tooltip/Tooltip.d.ts +0 -18
  205. package/dist/cjs/index.d.ts +0 -16
  206. package/dist/cjs/index.js +0 -9275
  207. package/dist/cjs/utils/utils.d.ts +0 -18
  208. package/dist/esm/components/Text/Text.d.ts +0 -10
  209. package/dist/esm/components/alert/Alert.d.ts +0 -16
  210. package/dist/esm/components/badge/Badge.d.ts +0 -9
  211. package/dist/esm/components/button/Button.d.ts +0 -17
  212. package/dist/esm/components/button-group/ButtonGroup.d.ts +0 -9
  213. package/dist/esm/components/card/Card.d.ts +0 -20
  214. package/dist/esm/components/container/Container.d.ts +0 -8
  215. package/dist/esm/components/dropdown/Dropdown.d.ts +0 -24
  216. package/dist/esm/components/dropdown/DropdownFooter.d.ts +0 -13
  217. package/dist/esm/components/dropdown/DropdownHeader.d.ts +0 -13
  218. package/dist/esm/components/dropdown/DropdownItem.d.ts +0 -12
  219. package/dist/esm/components/dropdown/DropdownItemGroup.d.ts +0 -12
  220. package/dist/esm/components/input/Input.d.ts +0 -37
  221. package/dist/esm/components/list-group/ListGroup.d.ts +0 -12
  222. package/dist/esm/components/menu/InternalMenu.d.ts +0 -4
  223. package/dist/esm/components/menu/Menu.d.ts +0 -41
  224. package/dist/esm/components/popover/InternalPopover.d.ts +0 -10
  225. package/dist/esm/components/popover/Popover.d.ts +0 -16
  226. package/dist/esm/components/quote/Quote.d.ts +0 -12
  227. package/dist/esm/components/row/Row.d.ts +0 -8
  228. package/dist/esm/components/tooltip/Tooltip.d.ts +0 -18
  229. package/dist/esm/index.d.ts +0 -16
  230. package/dist/esm/index.js +0 -9251
  231. package/dist/esm/utils/types.d.ts +0 -57
  232. package/dist/esm/utils/utils.d.ts +0 -18
@@ -0,0 +1,543 @@
1
+ import { NodeProp as q } from "../../common/dist/index.js";
2
+ let A = 0;
3
+ class l {
4
+ /**
5
+ @internal
6
+ */
7
+ constructor(t, a, i, n) {
8
+ this.name = t, this.set = a, this.base = i, this.modified = n, this.id = A++;
9
+ }
10
+ toString() {
11
+ let { name: t } = this;
12
+ for (let a of this.modified)
13
+ a.name && (t = `${a.name}(${t})`);
14
+ return t;
15
+ }
16
+ static define(t, a) {
17
+ let i = typeof t == "string" ? t : "?";
18
+ if (t instanceof l && (a = t), a?.base)
19
+ throw new Error("Can not derive from a modified tag");
20
+ let n = new l(i, [], null, []);
21
+ if (n.set.push(n), a)
22
+ for (let r of a.set)
23
+ n.set.push(r);
24
+ return n;
25
+ }
26
+ /**
27
+ Define a tag _modifier_, which is a function that, given a tag,
28
+ will return a tag that is a subtag of the original. Applying the
29
+ same modifier to a twice tag will return the same value (`m1(t1)
30
+ == m1(t1)`) and applying multiple modifiers will, regardless or
31
+ order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
32
+
33
+ When multiple modifiers are applied to a given base tag, each
34
+ smaller set of modifiers is registered as a parent, so that for
35
+ example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
36
+ `m1(m3(t1)`, and so on.
37
+ */
38
+ static defineModifier(t) {
39
+ let a = new b(t);
40
+ return (i) => i.modified.indexOf(a) > -1 ? i : b.get(i.base || i, i.modified.concat(a).sort((n, r) => n.id - r.id));
41
+ }
42
+ }
43
+ let I = 0;
44
+ class b {
45
+ constructor(t) {
46
+ this.name = t, this.instances = [], this.id = I++;
47
+ }
48
+ static get(t, a) {
49
+ if (!a.length)
50
+ return t;
51
+ let i = a[0].instances.find((g) => g.base == t && j(a, g.modified));
52
+ if (i)
53
+ return i;
54
+ let n = [], r = new l(t.name, n, t, a);
55
+ for (let g of a)
56
+ g.instances.push(r);
57
+ let f = B(a);
58
+ for (let g of t.set)
59
+ if (!g.modified.length)
60
+ for (let w of f)
61
+ n.push(b.get(g, w));
62
+ return r;
63
+ }
64
+ }
65
+ function j(s, t) {
66
+ return s.length == t.length && s.every((a, i) => a == t[i]);
67
+ }
68
+ function B(s) {
69
+ let t = [[]];
70
+ for (let a = 0; a < s.length; a++)
71
+ for (let i = 0, n = t.length; i < n; i++)
72
+ t.push(t[i].concat(s[a]));
73
+ return t.sort((a, i) => i.length - a.length);
74
+ }
75
+ const D = new q({
76
+ combine(s, t) {
77
+ let a, i, n;
78
+ for (; s || t; ) {
79
+ if (!s || t && s.depth >= t.depth ? (n = t, t = t.next) : (n = s, s = s.next), a && a.mode == n.mode && !n.context && !a.context)
80
+ continue;
81
+ let r = new O(n.tags, n.mode, n.context);
82
+ a ? a.next = r : i = r, a = r;
83
+ }
84
+ return i;
85
+ }
86
+ });
87
+ class O {
88
+ constructor(t, a, i, n) {
89
+ this.tags = t, this.mode = a, this.context = i, this.next = n;
90
+ }
91
+ get opaque() {
92
+ return this.mode == 0;
93
+ }
94
+ get inherit() {
95
+ return this.mode == 1;
96
+ }
97
+ sort(t) {
98
+ return !t || t.depth < this.depth ? (this.next = t, this) : (t.next = this.sort(t.next), t);
99
+ }
100
+ get depth() {
101
+ return this.context ? this.context.length : 0;
102
+ }
103
+ }
104
+ O.empty = new O([], 2, null);
105
+ function $(s, t) {
106
+ let a = /* @__PURE__ */ Object.create(null);
107
+ for (let r of s)
108
+ if (!Array.isArray(r.tag))
109
+ a[r.tag.id] = r.class;
110
+ else
111
+ for (let f of r.tag)
112
+ a[f.id] = r.class;
113
+ let { scope: i, all: n = null } = {};
114
+ return {
115
+ style: (r) => {
116
+ let f = n;
117
+ for (let g of r)
118
+ for (let w of g.set) {
119
+ let v = a[w.id];
120
+ if (v) {
121
+ f = f ? f + " " + v : v;
122
+ break;
123
+ }
124
+ }
125
+ return f;
126
+ },
127
+ scope: i
128
+ };
129
+ }
130
+ function H(s) {
131
+ let t = s.type.prop(D);
132
+ for (; t && t.context && !s.matchContext(t.context); )
133
+ t = t.next;
134
+ return t || null;
135
+ }
136
+ const e = l.define, N = e(), p = e(), S = e(p), K = e(p), u = e(), y = e(u), M = e(u), m = e(), h = e(m), c = e(), d = e(), C = e(), k = e(C), x = e(), o = {
137
+ /**
138
+ A comment.
139
+ */
140
+ comment: N,
141
+ /**
142
+ A line [comment](#highlight.tags.comment).
143
+ */
144
+ lineComment: e(N),
145
+ /**
146
+ A block [comment](#highlight.tags.comment).
147
+ */
148
+ blockComment: e(N),
149
+ /**
150
+ A documentation [comment](#highlight.tags.comment).
151
+ */
152
+ docComment: e(N),
153
+ /**
154
+ Any kind of identifier.
155
+ */
156
+ name: p,
157
+ /**
158
+ The [name](#highlight.tags.name) of a variable.
159
+ */
160
+ variableName: e(p),
161
+ /**
162
+ A type [name](#highlight.tags.name).
163
+ */
164
+ typeName: S,
165
+ /**
166
+ A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
167
+ */
168
+ tagName: e(S),
169
+ /**
170
+ A property or field [name](#highlight.tags.name).
171
+ */
172
+ propertyName: K,
173
+ /**
174
+ An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
175
+ */
176
+ attributeName: e(K),
177
+ /**
178
+ The [name](#highlight.tags.name) of a class.
179
+ */
180
+ className: e(p),
181
+ /**
182
+ A label [name](#highlight.tags.name).
183
+ */
184
+ labelName: e(p),
185
+ /**
186
+ A namespace [name](#highlight.tags.name).
187
+ */
188
+ namespace: e(p),
189
+ /**
190
+ The [name](#highlight.tags.name) of a macro.
191
+ */
192
+ macroName: e(p),
193
+ /**
194
+ A literal value.
195
+ */
196
+ literal: u,
197
+ /**
198
+ A string [literal](#highlight.tags.literal).
199
+ */
200
+ string: y,
201
+ /**
202
+ A documentation [string](#highlight.tags.string).
203
+ */
204
+ docString: e(y),
205
+ /**
206
+ A character literal (subtag of [string](#highlight.tags.string)).
207
+ */
208
+ character: e(y),
209
+ /**
210
+ An attribute value (subtag of [string](#highlight.tags.string)).
211
+ */
212
+ attributeValue: e(y),
213
+ /**
214
+ A number [literal](#highlight.tags.literal).
215
+ */
216
+ number: M,
217
+ /**
218
+ An integer [number](#highlight.tags.number) literal.
219
+ */
220
+ integer: e(M),
221
+ /**
222
+ A floating-point [number](#highlight.tags.number) literal.
223
+ */
224
+ float: e(M),
225
+ /**
226
+ A boolean [literal](#highlight.tags.literal).
227
+ */
228
+ bool: e(u),
229
+ /**
230
+ Regular expression [literal](#highlight.tags.literal).
231
+ */
232
+ regexp: e(u),
233
+ /**
234
+ An escape [literal](#highlight.tags.literal), for example a
235
+ backslash escape in a string.
236
+ */
237
+ escape: e(u),
238
+ /**
239
+ A color [literal](#highlight.tags.literal).
240
+ */
241
+ color: e(u),
242
+ /**
243
+ A URL [literal](#highlight.tags.literal).
244
+ */
245
+ url: e(u),
246
+ /**
247
+ A language keyword.
248
+ */
249
+ keyword: c,
250
+ /**
251
+ The [keyword](#highlight.tags.keyword) for the self or this
252
+ object.
253
+ */
254
+ self: e(c),
255
+ /**
256
+ The [keyword](#highlight.tags.keyword) for null.
257
+ */
258
+ null: e(c),
259
+ /**
260
+ A [keyword](#highlight.tags.keyword) denoting some atomic value.
261
+ */
262
+ atom: e(c),
263
+ /**
264
+ A [keyword](#highlight.tags.keyword) that represents a unit.
265
+ */
266
+ unit: e(c),
267
+ /**
268
+ A modifier [keyword](#highlight.tags.keyword).
269
+ */
270
+ modifier: e(c),
271
+ /**
272
+ A [keyword](#highlight.tags.keyword) that acts as an operator.
273
+ */
274
+ operatorKeyword: e(c),
275
+ /**
276
+ A control-flow related [keyword](#highlight.tags.keyword).
277
+ */
278
+ controlKeyword: e(c),
279
+ /**
280
+ A [keyword](#highlight.tags.keyword) that defines something.
281
+ */
282
+ definitionKeyword: e(c),
283
+ /**
284
+ A [keyword](#highlight.tags.keyword) related to defining or
285
+ interfacing with modules.
286
+ */
287
+ moduleKeyword: e(c),
288
+ /**
289
+ An operator.
290
+ */
291
+ operator: d,
292
+ /**
293
+ An [operator](#highlight.tags.operator) that dereferences something.
294
+ */
295
+ derefOperator: e(d),
296
+ /**
297
+ Arithmetic-related [operator](#highlight.tags.operator).
298
+ */
299
+ arithmeticOperator: e(d),
300
+ /**
301
+ Logical [operator](#highlight.tags.operator).
302
+ */
303
+ logicOperator: e(d),
304
+ /**
305
+ Bit [operator](#highlight.tags.operator).
306
+ */
307
+ bitwiseOperator: e(d),
308
+ /**
309
+ Comparison [operator](#highlight.tags.operator).
310
+ */
311
+ compareOperator: e(d),
312
+ /**
313
+ [Operator](#highlight.tags.operator) that updates its operand.
314
+ */
315
+ updateOperator: e(d),
316
+ /**
317
+ [Operator](#highlight.tags.operator) that defines something.
318
+ */
319
+ definitionOperator: e(d),
320
+ /**
321
+ Type-related [operator](#highlight.tags.operator).
322
+ */
323
+ typeOperator: e(d),
324
+ /**
325
+ Control-flow [operator](#highlight.tags.operator).
326
+ */
327
+ controlOperator: e(d),
328
+ /**
329
+ Program or markup punctuation.
330
+ */
331
+ punctuation: C,
332
+ /**
333
+ [Punctuation](#highlight.tags.punctuation) that separates
334
+ things.
335
+ */
336
+ separator: e(C),
337
+ /**
338
+ Bracket-style [punctuation](#highlight.tags.punctuation).
339
+ */
340
+ bracket: k,
341
+ /**
342
+ Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
343
+ tokens).
344
+ */
345
+ angleBracket: e(k),
346
+ /**
347
+ Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
348
+ tokens).
349
+ */
350
+ squareBracket: e(k),
351
+ /**
352
+ Parentheses (usually `(` and `)` tokens). Subtag of
353
+ [bracket](#highlight.tags.bracket).
354
+ */
355
+ paren: e(k),
356
+ /**
357
+ Braces (usually `{` and `}` tokens). Subtag of
358
+ [bracket](#highlight.tags.bracket).
359
+ */
360
+ brace: e(k),
361
+ /**
362
+ Content, for example plain text in XML or markup documents.
363
+ */
364
+ content: m,
365
+ /**
366
+ [Content](#highlight.tags.content) that represents a heading.
367
+ */
368
+ heading: h,
369
+ /**
370
+ A level 1 [heading](#highlight.tags.heading).
371
+ */
372
+ heading1: e(h),
373
+ /**
374
+ A level 2 [heading](#highlight.tags.heading).
375
+ */
376
+ heading2: e(h),
377
+ /**
378
+ A level 3 [heading](#highlight.tags.heading).
379
+ */
380
+ heading3: e(h),
381
+ /**
382
+ A level 4 [heading](#highlight.tags.heading).
383
+ */
384
+ heading4: e(h),
385
+ /**
386
+ A level 5 [heading](#highlight.tags.heading).
387
+ */
388
+ heading5: e(h),
389
+ /**
390
+ A level 6 [heading](#highlight.tags.heading).
391
+ */
392
+ heading6: e(h),
393
+ /**
394
+ A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
395
+ */
396
+ contentSeparator: e(m),
397
+ /**
398
+ [Content](#highlight.tags.content) that represents a list.
399
+ */
400
+ list: e(m),
401
+ /**
402
+ [Content](#highlight.tags.content) that represents a quote.
403
+ */
404
+ quote: e(m),
405
+ /**
406
+ [Content](#highlight.tags.content) that is emphasized.
407
+ */
408
+ emphasis: e(m),
409
+ /**
410
+ [Content](#highlight.tags.content) that is styled strong.
411
+ */
412
+ strong: e(m),
413
+ /**
414
+ [Content](#highlight.tags.content) that is part of a link.
415
+ */
416
+ link: e(m),
417
+ /**
418
+ [Content](#highlight.tags.content) that is styled as code or
419
+ monospace.
420
+ */
421
+ monospace: e(m),
422
+ /**
423
+ [Content](#highlight.tags.content) that has a strike-through
424
+ style.
425
+ */
426
+ strikethrough: e(m),
427
+ /**
428
+ Inserted text in a change-tracking format.
429
+ */
430
+ inserted: e(),
431
+ /**
432
+ Deleted text.
433
+ */
434
+ deleted: e(),
435
+ /**
436
+ Changed text.
437
+ */
438
+ changed: e(),
439
+ /**
440
+ An invalid or unsyntactic element.
441
+ */
442
+ invalid: e(),
443
+ /**
444
+ Metadata or meta-instruction.
445
+ */
446
+ meta: x,
447
+ /**
448
+ [Metadata](#highlight.tags.meta) that applies to the entire
449
+ document.
450
+ */
451
+ documentMeta: e(x),
452
+ /**
453
+ [Metadata](#highlight.tags.meta) that annotates or adds
454
+ attributes to a given syntactic element.
455
+ */
456
+ annotation: e(x),
457
+ /**
458
+ Processing instruction or preprocessor directive. Subtag of
459
+ [meta](#highlight.tags.meta).
460
+ */
461
+ processingInstruction: e(x),
462
+ /**
463
+ [Modifier](#highlight.Tag^defineModifier) that indicates that a
464
+ given element is being defined. Expected to be used with the
465
+ various [name](#highlight.tags.name) tags.
466
+ */
467
+ definition: l.defineModifier("definition"),
468
+ /**
469
+ [Modifier](#highlight.Tag^defineModifier) that indicates that
470
+ something is constant. Mostly expected to be used with
471
+ [variable names](#highlight.tags.variableName).
472
+ */
473
+ constant: l.defineModifier("constant"),
474
+ /**
475
+ [Modifier](#highlight.Tag^defineModifier) used to indicate that
476
+ a [variable](#highlight.tags.variableName) or [property
477
+ name](#highlight.tags.propertyName) is being called or defined
478
+ as a function.
479
+ */
480
+ function: l.defineModifier("function"),
481
+ /**
482
+ [Modifier](#highlight.Tag^defineModifier) that can be applied to
483
+ [names](#highlight.tags.name) to indicate that they belong to
484
+ the language's standard environment.
485
+ */
486
+ standard: l.defineModifier("standard"),
487
+ /**
488
+ [Modifier](#highlight.Tag^defineModifier) that indicates a given
489
+ [names](#highlight.tags.name) is local to some scope.
490
+ */
491
+ local: l.defineModifier("local"),
492
+ /**
493
+ A generic variant [modifier](#highlight.Tag^defineModifier) that
494
+ can be used to tag language-specific alternative variants of
495
+ some common tag. It is recommended for themes to define special
496
+ forms of at least the [string](#highlight.tags.string) and
497
+ [variable name](#highlight.tags.variableName) tags, since those
498
+ come up a lot.
499
+ */
500
+ special: l.defineModifier("special")
501
+ };
502
+ for (let s in o) {
503
+ let t = o[s];
504
+ t instanceof l && (t.name = s);
505
+ }
506
+ $([
507
+ { tag: o.link, class: "tok-link" },
508
+ { tag: o.heading, class: "tok-heading" },
509
+ { tag: o.emphasis, class: "tok-emphasis" },
510
+ { tag: o.strong, class: "tok-strong" },
511
+ { tag: o.keyword, class: "tok-keyword" },
512
+ { tag: o.atom, class: "tok-atom" },
513
+ { tag: o.bool, class: "tok-bool" },
514
+ { tag: o.url, class: "tok-url" },
515
+ { tag: o.labelName, class: "tok-labelName" },
516
+ { tag: o.inserted, class: "tok-inserted" },
517
+ { tag: o.deleted, class: "tok-deleted" },
518
+ { tag: o.literal, class: "tok-literal" },
519
+ { tag: o.string, class: "tok-string" },
520
+ { tag: o.number, class: "tok-number" },
521
+ { tag: [o.regexp, o.escape, o.special(o.string)], class: "tok-string2" },
522
+ { tag: o.variableName, class: "tok-variableName" },
523
+ { tag: o.local(o.variableName), class: "tok-variableName tok-local" },
524
+ { tag: o.definition(o.variableName), class: "tok-variableName tok-definition" },
525
+ { tag: o.special(o.variableName), class: "tok-variableName2" },
526
+ { tag: o.definition(o.propertyName), class: "tok-propertyName tok-definition" },
527
+ { tag: o.typeName, class: "tok-typeName" },
528
+ { tag: o.namespace, class: "tok-namespace" },
529
+ { tag: o.className, class: "tok-className" },
530
+ { tag: o.macroName, class: "tok-macroName" },
531
+ { tag: o.propertyName, class: "tok-propertyName" },
532
+ { tag: o.operator, class: "tok-operator" },
533
+ { tag: o.comment, class: "tok-comment" },
534
+ { tag: o.meta, class: "tok-meta" },
535
+ { tag: o.invalid, class: "tok-invalid" },
536
+ { tag: o.punctuation, class: "tok-punctuation" }
537
+ ]);
538
+ export {
539
+ l as Tag,
540
+ H as getStyleTags,
541
+ $ as tagHighlighter,
542
+ o as tags
543
+ };