@oneflowui/ui 0.4.2 → 0.4.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.
Files changed (233) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/ContextMenu/index.vue.js +7 -0
  4. package/dist/components/ContextMenu/index.vue2.js +91 -0
  5. package/dist/components/Dashboard/charts/BarChart.vue.js +7 -0
  6. package/dist/components/Dashboard/charts/BarChart.vue2.js +43 -0
  7. package/dist/components/Dashboard/charts/DoughnutChart.vue.js +23 -0
  8. package/dist/components/Dashboard/charts/DoughnutChart.vue2.js +4 -0
  9. package/dist/components/Dashboard/charts/NumberCard.vue.js +7 -0
  10. package/dist/components/Dashboard/charts/NumberCard.vue2.js +41 -0
  11. package/dist/components/Dashboard/charts/PieChart.vue.js +7 -0
  12. package/dist/components/Dashboard/charts/PieChart.vue2.js +53 -0
  13. package/dist/components/Dashboard/charts/TableChart.vue.js +7 -0
  14. package/dist/components/Dashboard/charts/TableChart.vue2.js +50 -0
  15. package/dist/components/Dashboard/index.vue.js +7 -0
  16. package/dist/components/Dashboard/index.vue2.js +104 -0
  17. package/dist/components/ai/AiMessageBubble.vue.js +7 -0
  18. package/dist/components/ai/AiMessageBubble.vue2.js +47 -0
  19. package/dist/components/ai/AiMessageList.vue.js +7 -0
  20. package/dist/components/ai/AiMessageList.vue2.js +78 -0
  21. package/dist/components/ai/AiSender.vue.js +7 -0
  22. package/dist/components/ai/AiSender.vue2.js +86 -0
  23. package/dist/components/ai/AiStreamingCursor.vue.js +7 -0
  24. package/dist/components/ai/AiStreamingCursor.vue2.js +16 -0
  25. package/dist/components/ai/AiThinking.vue.js +7 -0
  26. package/dist/components/ai/AiThinking.vue2.js +19 -0
  27. package/dist/components/ai/UserMessageBubble.vue.js +7 -0
  28. package/dist/components/ai/UserMessageBubble.vue2.js +34 -0
  29. package/dist/components/auxiliary/ColorPanel.vue.js +7 -0
  30. package/dist/components/auxiliary/ColorPanel.vue2.js +65 -0
  31. package/dist/components/auxiliary/FileUpload.vue.js +7 -0
  32. package/dist/components/auxiliary/FileUpload.vue2.js +90 -0
  33. package/dist/components/auxiliary/PersonPanel.vue.js +7 -0
  34. package/dist/components/auxiliary/PersonPanel.vue2.js +66 -0
  35. package/dist/components/base/Accordion.vue.js +7 -0
  36. package/dist/components/base/Accordion.vue2.js +78 -0
  37. package/dist/components/base/AddViewBtn.vue.js +7 -0
  38. package/dist/components/base/AddViewBtn.vue2.js +25 -0
  39. package/dist/components/base/Avatar.vue.js +7 -0
  40. package/dist/components/base/Avatar.vue2.js +72 -0
  41. package/dist/components/base/Badge.vue.js +7 -0
  42. package/dist/components/base/Badge.vue2.js +70 -0
  43. package/dist/components/base/ButtonGroup.vue.js +7 -0
  44. package/dist/components/base/ButtonGroup.vue2.js +40 -0
  45. package/dist/components/base/ChainItem.vue.js +7 -0
  46. package/dist/components/base/ChainItem.vue2.js +68 -0
  47. package/dist/components/base/DescBlock.vue.js +7 -0
  48. package/dist/components/base/DescBlock.vue2.js +13 -0
  49. package/dist/components/base/DropdownMenu.vue.js +7 -0
  50. package/dist/components/base/DropdownMenu.vue2.js +92 -0
  51. package/dist/components/base/EmptyState.vue.js +7 -0
  52. package/dist/components/base/EmptyState.vue2.js +38 -0
  53. package/dist/components/base/InfoCard.vue.js +7 -0
  54. package/dist/components/base/InfoCard.vue2.js +167 -0
  55. package/dist/components/base/MonitorItem.vue.js +7 -0
  56. package/dist/components/base/MonitorItem.vue2.js +56 -0
  57. package/dist/components/base/PersonaCard.vue.js +7 -0
  58. package/dist/components/base/PersonaCard.vue2.js +173 -0
  59. package/dist/components/base/ProgressBar.vue.js +7 -0
  60. package/dist/components/base/ProgressBar.vue2.js +49 -0
  61. package/dist/components/base/RangeSlider.vue.js +7 -0
  62. package/dist/components/base/RangeSlider.vue2.js +35 -0
  63. package/dist/components/base/RefTag.vue.js +7 -0
  64. package/dist/components/base/RefTag.vue2.js +52 -0
  65. package/dist/components/base/SectionBlock.vue.js +7 -0
  66. package/dist/components/base/SectionBlock.vue2.js +115 -0
  67. package/dist/components/base/SelectBadge.vue.js +7 -0
  68. package/dist/components/base/SelectBadge.vue2.js +81 -0
  69. package/dist/components/base/StatisticCard.vue.js +7 -0
  70. package/dist/components/base/StatisticCard.vue2.js +57 -0
  71. package/dist/components/base/StatusIndicator.vue.js +7 -0
  72. package/dist/components/base/StatusIndicator.vue2.js +54 -0
  73. package/dist/components/base/StatusSummary.vue.js +7 -0
  74. package/dist/components/base/StatusSummary.vue2.js +64 -0
  75. package/dist/components/base/Stepper.vue.js +7 -0
  76. package/dist/components/base/Stepper.vue2.js +70 -0
  77. package/dist/components/base/Switch.vue.js +7 -0
  78. package/dist/components/base/Switch.vue2.js +43 -0
  79. package/dist/components/base/ToolbarBtn.vue.js +7 -0
  80. package/dist/components/base/ToolbarBtn.vue2.js +30 -0
  81. package/dist/components/base/ViewModeGroup.vue.js +7 -0
  82. package/dist/components/base/ViewModeGroup.vue2.js +32 -0
  83. package/dist/components/base/ViewSwitcher.vue.js +7 -0
  84. package/dist/components/base/ViewSwitcher.vue2.js +73 -0
  85. package/dist/components/base/ViewTab.vue.js +7 -0
  86. package/dist/components/base/ViewTab.vue2.js +42 -0
  87. package/dist/components/breadcrumb/Breadcrumb.vue.js +7 -0
  88. package/dist/components/breadcrumb/Breadcrumb.vue2.js +52 -0
  89. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +7 -0
  90. package/dist/components/breadcrumb/BreadcrumbItem.vue2.js +35 -0
  91. package/dist/components/detail/CommentItem.vue.js +7 -0
  92. package/dist/components/detail/CommentItem.vue2.js +29 -0
  93. package/dist/components/detail/DetailLayout.vue.js +7 -0
  94. package/dist/components/detail/DetailLayout.vue2.js +118 -0
  95. package/dist/components/detail/PropPanel.vue.js +7 -0
  96. package/dist/components/detail/PropPanel.vue2.js +51 -0
  97. package/dist/components/detail/PropRow.vue.js +7 -0
  98. package/dist/components/detail/PropRow.vue2.js +51 -0
  99. package/dist/components/editor/BlockQuote.vue.js +7 -0
  100. package/dist/components/editor/BlockQuote.vue2.js +45 -0
  101. package/dist/components/editor/CodeBlock.vue.js +7 -0
  102. package/dist/components/editor/CodeBlock.vue2.js +48 -0
  103. package/dist/components/editor/ContentBlock.vue.js +7 -0
  104. package/dist/components/editor/ContentBlock.vue2.js +49 -0
  105. package/dist/components/editor/RefLink.vue.js +7 -0
  106. package/dist/components/editor/RefLink.vue2.js +37 -0
  107. package/dist/components/editor/RichTextEditor.vue.js +7 -0
  108. package/dist/components/editor/RichTextEditor.vue2.js +132 -0
  109. package/dist/components/field/FieldCheckbox.vue.js +7 -0
  110. package/dist/{FieldCheckbox-CV3QtQ4Y.js → components/field/FieldCheckbox.vue2.js} +8 -9
  111. package/dist/components/field/FieldDate.vue.js +7 -0
  112. package/dist/{FieldDate-Bljx4jb7.js → components/field/FieldDate.vue2.js} +9 -10
  113. package/dist/components/field/FieldDatetime.vue.js +7 -0
  114. package/dist/{FieldDatetime-B52GfWrK.js → components/field/FieldDatetime.vue2.js} +11 -12
  115. package/dist/components/field/FieldEmail.vue.js +7 -0
  116. package/dist/{FieldEmail-UREMoue-.js → components/field/FieldEmail.vue2.js} +12 -13
  117. package/dist/components/field/FieldMultiSelect.vue.js +7 -0
  118. package/dist/{FieldMultiSelect-Dlay1Fop.js → components/field/FieldMultiSelect.vue2.js} +32 -33
  119. package/dist/components/field/FieldNumber.vue.js +7 -0
  120. package/dist/{FieldNumber-BjhfFhs6.js → components/field/FieldNumber.vue2.js} +8 -9
  121. package/dist/components/field/FieldRating.vue.js +7 -0
  122. package/dist/components/field/FieldRating.vue2.js +31 -0
  123. package/dist/components/field/FieldSelect.vue.js +7 -0
  124. package/dist/{FieldSelect-B39Ad8VH.js → components/field/FieldSelect.vue2.js} +34 -35
  125. package/dist/components/field/FieldText.vue.js +7 -0
  126. package/dist/{FieldText-Ry7f72Ug.js → components/field/FieldText.vue2.js} +13 -14
  127. package/dist/components/field/FieldUrl.vue.js +7 -0
  128. package/dist/components/field/FieldUrl.vue2.js +33 -0
  129. package/dist/components/form/FormDesigner.vue.js +7 -0
  130. package/dist/components/form/FormDesigner.vue2.js +245 -0
  131. package/dist/components/gallery/GalleryCard.vue.js +7 -0
  132. package/dist/components/gallery/GalleryCard.vue2.js +87 -0
  133. package/dist/components/gallery/GalleryView.vue.js +7 -0
  134. package/dist/components/gallery/GalleryView.vue2.js +48 -0
  135. package/dist/components/kanban/KanbanBoard.vue.js +7 -0
  136. package/dist/components/kanban/KanbanBoard.vue2.js +86 -0
  137. package/dist/components/kanban/KanbanCard.vue.js +7 -0
  138. package/dist/components/kanban/KanbanCard.vue2.js +56 -0
  139. package/dist/components/kanban/KanbanColumn.vue.js +7 -0
  140. package/dist/components/kanban/KanbanColumn.vue2.js +103 -0
  141. package/dist/components/kanban/QuickAddRow.vue.js +7 -0
  142. package/dist/components/kanban/QuickAddRow.vue2.js +58 -0
  143. package/dist/components/layout/AppLayout.vue.js +7 -0
  144. package/dist/components/layout/AppLayout.vue2.js +98 -0
  145. package/dist/components/layout/Navbar.vue.js +7 -0
  146. package/dist/components/layout/Navbar.vue2.js +70 -0
  147. package/dist/components/layout/Sidebar.vue.js +7 -0
  148. package/dist/components/layout/Sidebar.vue2.js +88 -0
  149. package/dist/components/layout/StatusBar.vue.js +7 -0
  150. package/dist/components/layout/StatusBar.vue2.js +37 -0
  151. package/dist/components/mermaid/MermaidChart.vue.js +7 -0
  152. package/dist/components/mermaid/MermaidChart.vue2.js +75 -0
  153. package/dist/components/overlay/Dialog.vue.js +7 -0
  154. package/dist/components/overlay/Dialog.vue2.js +89 -0
  155. package/dist/components/overlay/Drawer.vue.js +7 -0
  156. package/dist/components/overlay/Drawer.vue2.js +112 -0
  157. package/dist/components/overlay/Modal.vue.js +7 -0
  158. package/dist/components/overlay/Modal.vue2.js +115 -0
  159. package/dist/components/overlay/SidePanel.vue.js +7 -0
  160. package/dist/components/overlay/SidePanel.vue2.js +137 -0
  161. package/dist/components/split/SplitPane.vue.js +8 -0
  162. package/dist/components/split/SplitPane.vue2.js +68 -0
  163. package/dist/components/table/DataTable.vue.js +7 -0
  164. package/dist/components/table/DataTable.vue2.js +234 -0
  165. package/dist/components/table/FieldCell.vue.js +7 -0
  166. package/dist/components/table/FieldCell.vue2.js +71 -0
  167. package/dist/components/table/NewRowBtn.vue.js +7 -0
  168. package/dist/components/table/NewRowBtn.vue2.js +22 -0
  169. package/dist/components/table/TableColumnManager.vue.js +7 -0
  170. package/dist/components/table/TableColumnManager.vue2.js +100 -0
  171. package/dist/components/table/TableDataRow.vue.js +7 -0
  172. package/dist/components/table/TableDataRow.vue2.js +115 -0
  173. package/dist/components/table/TableFilterPanel.vue.js +7 -0
  174. package/dist/components/table/TableFilterPanel.vue2.js +142 -0
  175. package/dist/components/table/TableGroupRow.vue.js +7 -0
  176. package/dist/components/table/TableGroupRow.vue2.js +48 -0
  177. package/dist/components/table/TableHeaderRow.vue.js +7 -0
  178. package/dist/components/table/TableHeaderRow.vue2.js +69 -0
  179. package/dist/components/tabs/TabPanel.vue.js +7 -0
  180. package/dist/components/tabs/TabPanel.vue2.js +26 -0
  181. package/dist/components/tabs/Tabs.vue.js +7 -0
  182. package/dist/components/tabs/Tabs.vue2.js +87 -0
  183. package/dist/components/timeline/ActivityTimeline.vue.js +7 -0
  184. package/dist/components/timeline/ActivityTimeline.vue2.js +104 -0
  185. package/dist/components/timeline/GanttRow.vue.js +7 -0
  186. package/dist/components/timeline/GanttRow.vue2.js +110 -0
  187. package/dist/components/timeline/GanttTimeline.vue.js +7 -0
  188. package/dist/components/timeline/GanttTimeline.vue2.js +185 -0
  189. package/dist/components/toast/ToastContainer.vue.js +34 -0
  190. package/dist/components/toast/ToastContainer.vue3.js +5 -0
  191. package/dist/components/toast/ToastItem.vue.js +7 -0
  192. package/dist/components/toast/ToastItem.vue2.js +78 -0
  193. package/dist/composables/useAiChat.js +103 -0
  194. package/dist/composables/useBadge.js +76 -0
  195. package/dist/composables/useBreakpoint.js +16 -0
  196. package/dist/composables/useInlineEdit.js +28 -0
  197. package/dist/composables/useMarkdown.js +69 -0
  198. package/dist/composables/useStream.js +80 -0
  199. package/dist/composables/useTable.js +115 -0
  200. package/dist/composables/useTableColumns.js +24 -0
  201. package/dist/composables/useTableData.js +16 -0
  202. package/dist/composables/useTableFilter.js +97 -0
  203. package/dist/composables/useTableGroup.js +46 -0
  204. package/dist/composables/useToast.js +38 -0
  205. package/dist/composables/useTypewriter.js +56 -0
  206. package/dist/composables/useVirtualList.js +117 -0
  207. package/dist/constants/table.js +11 -0
  208. package/dist/index.js +301 -0
  209. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  210. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +377 -0
  211. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +923 -0
  212. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +151 -0
  213. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +240 -0
  214. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +658 -0
  215. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +38 -0
  216. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +216 -0
  217. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +13 -0
  218. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +399 -0
  219. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +305 -0
  220. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +615 -0
  221. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +753 -0
  222. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +219 -0
  223. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +183 -0
  224. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  225. package/dist/style.css +1 -1
  226. package/dist/types/index.js +77 -0
  227. package/dist/utils/icon.js +15 -0
  228. package/package.json +13 -6
  229. package/dist/FieldRating-BKHUu-A1.js +0 -32
  230. package/dist/FieldUrl-bv0EB9sh.js +0 -34
  231. package/dist/index-DQph5iTq.js +0 -12936
  232. package/dist/oneflow-ui.js +0 -111
  233. package/dist/oneflow-ui.umd.cjs +0 -13
@@ -0,0 +1,923 @@
1
+ const s = (t) => ({
2
+ IMPORTANT: {
3
+ scope: "meta",
4
+ begin: "!important"
5
+ },
6
+ BLOCK_COMMENT: t.C_BLOCK_COMMENT_MODE,
7
+ HEXCOLOR: {
8
+ scope: "number",
9
+ begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
10
+ },
11
+ FUNCTION_DISPATCH: {
12
+ className: "built_in",
13
+ begin: /[\w-]+(?=\()/
14
+ },
15
+ ATTRIBUTE_SELECTOR_MODE: {
16
+ scope: "selector-attr",
17
+ begin: /\[/,
18
+ end: /\]/,
19
+ illegal: "$",
20
+ contains: [
21
+ t.APOS_STRING_MODE,
22
+ t.QUOTE_STRING_MODE
23
+ ]
24
+ },
25
+ CSS_NUMBER_MODE: {
26
+ scope: "number",
27
+ begin: t.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
28
+ relevance: 0
29
+ },
30
+ CSS_VARIABLE: {
31
+ className: "attr",
32
+ begin: /--[A-Za-z_][A-Za-z0-9_-]*/
33
+ }
34
+ }), c = [
35
+ "a",
36
+ "abbr",
37
+ "address",
38
+ "article",
39
+ "aside",
40
+ "audio",
41
+ "b",
42
+ "blockquote",
43
+ "body",
44
+ "button",
45
+ "canvas",
46
+ "caption",
47
+ "cite",
48
+ "code",
49
+ "dd",
50
+ "del",
51
+ "details",
52
+ "dfn",
53
+ "div",
54
+ "dl",
55
+ "dt",
56
+ "em",
57
+ "fieldset",
58
+ "figcaption",
59
+ "figure",
60
+ "footer",
61
+ "form",
62
+ "h1",
63
+ "h2",
64
+ "h3",
65
+ "h4",
66
+ "h5",
67
+ "h6",
68
+ "header",
69
+ "hgroup",
70
+ "html",
71
+ "i",
72
+ "iframe",
73
+ "img",
74
+ "input",
75
+ "ins",
76
+ "kbd",
77
+ "label",
78
+ "legend",
79
+ "li",
80
+ "main",
81
+ "mark",
82
+ "menu",
83
+ "nav",
84
+ "object",
85
+ "ol",
86
+ "optgroup",
87
+ "option",
88
+ "p",
89
+ "picture",
90
+ "q",
91
+ "quote",
92
+ "samp",
93
+ "section",
94
+ "select",
95
+ "source",
96
+ "span",
97
+ "strong",
98
+ "summary",
99
+ "sup",
100
+ "table",
101
+ "tbody",
102
+ "td",
103
+ "textarea",
104
+ "tfoot",
105
+ "th",
106
+ "thead",
107
+ "time",
108
+ "tr",
109
+ "ul",
110
+ "var",
111
+ "video"
112
+ ], d = [
113
+ "defs",
114
+ "g",
115
+ "marker",
116
+ "mask",
117
+ "pattern",
118
+ "svg",
119
+ "switch",
120
+ "symbol",
121
+ "feBlend",
122
+ "feColorMatrix",
123
+ "feComponentTransfer",
124
+ "feComposite",
125
+ "feConvolveMatrix",
126
+ "feDiffuseLighting",
127
+ "feDisplacementMap",
128
+ "feFlood",
129
+ "feGaussianBlur",
130
+ "feImage",
131
+ "feMerge",
132
+ "feMorphology",
133
+ "feOffset",
134
+ "feSpecularLighting",
135
+ "feTile",
136
+ "feTurbulence",
137
+ "linearGradient",
138
+ "radialGradient",
139
+ "stop",
140
+ "circle",
141
+ "ellipse",
142
+ "image",
143
+ "line",
144
+ "path",
145
+ "polygon",
146
+ "polyline",
147
+ "rect",
148
+ "text",
149
+ "use",
150
+ "textPath",
151
+ "tspan",
152
+ "foreignObject",
153
+ "clipPath"
154
+ ], m = [
155
+ ...c,
156
+ ...d
157
+ ], b = [
158
+ "any-hover",
159
+ "any-pointer",
160
+ "aspect-ratio",
161
+ "color",
162
+ "color-gamut",
163
+ "color-index",
164
+ "device-aspect-ratio",
165
+ "device-height",
166
+ "device-width",
167
+ "display-mode",
168
+ "forced-colors",
169
+ "grid",
170
+ "height",
171
+ "hover",
172
+ "inverted-colors",
173
+ "monochrome",
174
+ "orientation",
175
+ "overflow-block",
176
+ "overflow-inline",
177
+ "pointer",
178
+ "prefers-color-scheme",
179
+ "prefers-contrast",
180
+ "prefers-reduced-motion",
181
+ "prefers-reduced-transparency",
182
+ "resolution",
183
+ "scan",
184
+ "scripting",
185
+ "update",
186
+ "width",
187
+ // TODO: find a better solution?
188
+ "min-width",
189
+ "max-width",
190
+ "min-height",
191
+ "max-height"
192
+ ].sort().reverse(), g = [
193
+ "active",
194
+ "any-link",
195
+ "blank",
196
+ "checked",
197
+ "current",
198
+ "default",
199
+ "defined",
200
+ "dir",
201
+ // dir()
202
+ "disabled",
203
+ "drop",
204
+ "empty",
205
+ "enabled",
206
+ "first",
207
+ "first-child",
208
+ "first-of-type",
209
+ "fullscreen",
210
+ "future",
211
+ "focus",
212
+ "focus-visible",
213
+ "focus-within",
214
+ "has",
215
+ // has()
216
+ "host",
217
+ // host or host()
218
+ "host-context",
219
+ // host-context()
220
+ "hover",
221
+ "indeterminate",
222
+ "in-range",
223
+ "invalid",
224
+ "is",
225
+ // is()
226
+ "lang",
227
+ // lang()
228
+ "last-child",
229
+ "last-of-type",
230
+ "left",
231
+ "link",
232
+ "local-link",
233
+ "not",
234
+ // not()
235
+ "nth-child",
236
+ // nth-child()
237
+ "nth-col",
238
+ // nth-col()
239
+ "nth-last-child",
240
+ // nth-last-child()
241
+ "nth-last-col",
242
+ // nth-last-col()
243
+ "nth-last-of-type",
244
+ //nth-last-of-type()
245
+ "nth-of-type",
246
+ //nth-of-type()
247
+ "only-child",
248
+ "only-of-type",
249
+ "optional",
250
+ "out-of-range",
251
+ "past",
252
+ "placeholder-shown",
253
+ "read-only",
254
+ "read-write",
255
+ "required",
256
+ "right",
257
+ "root",
258
+ "scope",
259
+ "target",
260
+ "target-within",
261
+ "user-invalid",
262
+ "valid",
263
+ "visited",
264
+ "where"
265
+ // where()
266
+ ].sort().reverse(), p = [
267
+ "after",
268
+ "backdrop",
269
+ "before",
270
+ "cue",
271
+ "cue-region",
272
+ "first-letter",
273
+ "first-line",
274
+ "grammar-error",
275
+ "marker",
276
+ "part",
277
+ "placeholder",
278
+ "selection",
279
+ "slotted",
280
+ "spelling-error"
281
+ ].sort().reverse(), f = [
282
+ "accent-color",
283
+ "align-content",
284
+ "align-items",
285
+ "align-self",
286
+ "alignment-baseline",
287
+ "all",
288
+ "anchor-name",
289
+ "animation",
290
+ "animation-composition",
291
+ "animation-delay",
292
+ "animation-direction",
293
+ "animation-duration",
294
+ "animation-fill-mode",
295
+ "animation-iteration-count",
296
+ "animation-name",
297
+ "animation-play-state",
298
+ "animation-range",
299
+ "animation-range-end",
300
+ "animation-range-start",
301
+ "animation-timeline",
302
+ "animation-timing-function",
303
+ "appearance",
304
+ "aspect-ratio",
305
+ "backdrop-filter",
306
+ "backface-visibility",
307
+ "background",
308
+ "background-attachment",
309
+ "background-blend-mode",
310
+ "background-clip",
311
+ "background-color",
312
+ "background-image",
313
+ "background-origin",
314
+ "background-position",
315
+ "background-position-x",
316
+ "background-position-y",
317
+ "background-repeat",
318
+ "background-size",
319
+ "baseline-shift",
320
+ "block-size",
321
+ "border",
322
+ "border-block",
323
+ "border-block-color",
324
+ "border-block-end",
325
+ "border-block-end-color",
326
+ "border-block-end-style",
327
+ "border-block-end-width",
328
+ "border-block-start",
329
+ "border-block-start-color",
330
+ "border-block-start-style",
331
+ "border-block-start-width",
332
+ "border-block-style",
333
+ "border-block-width",
334
+ "border-bottom",
335
+ "border-bottom-color",
336
+ "border-bottom-left-radius",
337
+ "border-bottom-right-radius",
338
+ "border-bottom-style",
339
+ "border-bottom-width",
340
+ "border-collapse",
341
+ "border-color",
342
+ "border-end-end-radius",
343
+ "border-end-start-radius",
344
+ "border-image",
345
+ "border-image-outset",
346
+ "border-image-repeat",
347
+ "border-image-slice",
348
+ "border-image-source",
349
+ "border-image-width",
350
+ "border-inline",
351
+ "border-inline-color",
352
+ "border-inline-end",
353
+ "border-inline-end-color",
354
+ "border-inline-end-style",
355
+ "border-inline-end-width",
356
+ "border-inline-start",
357
+ "border-inline-start-color",
358
+ "border-inline-start-style",
359
+ "border-inline-start-width",
360
+ "border-inline-style",
361
+ "border-inline-width",
362
+ "border-left",
363
+ "border-left-color",
364
+ "border-left-style",
365
+ "border-left-width",
366
+ "border-radius",
367
+ "border-right",
368
+ "border-right-color",
369
+ "border-right-style",
370
+ "border-right-width",
371
+ "border-spacing",
372
+ "border-start-end-radius",
373
+ "border-start-start-radius",
374
+ "border-style",
375
+ "border-top",
376
+ "border-top-color",
377
+ "border-top-left-radius",
378
+ "border-top-right-radius",
379
+ "border-top-style",
380
+ "border-top-width",
381
+ "border-width",
382
+ "bottom",
383
+ "box-align",
384
+ "box-decoration-break",
385
+ "box-direction",
386
+ "box-flex",
387
+ "box-flex-group",
388
+ "box-lines",
389
+ "box-ordinal-group",
390
+ "box-orient",
391
+ "box-pack",
392
+ "box-shadow",
393
+ "box-sizing",
394
+ "break-after",
395
+ "break-before",
396
+ "break-inside",
397
+ "caption-side",
398
+ "caret-color",
399
+ "clear",
400
+ "clip",
401
+ "clip-path",
402
+ "clip-rule",
403
+ "color",
404
+ "color-interpolation",
405
+ "color-interpolation-filters",
406
+ "color-profile",
407
+ "color-rendering",
408
+ "color-scheme",
409
+ "column-count",
410
+ "column-fill",
411
+ "column-gap",
412
+ "column-rule",
413
+ "column-rule-color",
414
+ "column-rule-style",
415
+ "column-rule-width",
416
+ "column-span",
417
+ "column-width",
418
+ "columns",
419
+ "contain",
420
+ "contain-intrinsic-block-size",
421
+ "contain-intrinsic-height",
422
+ "contain-intrinsic-inline-size",
423
+ "contain-intrinsic-size",
424
+ "contain-intrinsic-width",
425
+ "container",
426
+ "container-name",
427
+ "container-type",
428
+ "content",
429
+ "content-visibility",
430
+ "counter-increment",
431
+ "counter-reset",
432
+ "counter-set",
433
+ "cue",
434
+ "cue-after",
435
+ "cue-before",
436
+ "cursor",
437
+ "cx",
438
+ "cy",
439
+ "direction",
440
+ "display",
441
+ "dominant-baseline",
442
+ "empty-cells",
443
+ "enable-background",
444
+ "field-sizing",
445
+ "fill",
446
+ "fill-opacity",
447
+ "fill-rule",
448
+ "filter",
449
+ "flex",
450
+ "flex-basis",
451
+ "flex-direction",
452
+ "flex-flow",
453
+ "flex-grow",
454
+ "flex-shrink",
455
+ "flex-wrap",
456
+ "float",
457
+ "flood-color",
458
+ "flood-opacity",
459
+ "flow",
460
+ "font",
461
+ "font-display",
462
+ "font-family",
463
+ "font-feature-settings",
464
+ "font-kerning",
465
+ "font-language-override",
466
+ "font-optical-sizing",
467
+ "font-palette",
468
+ "font-size",
469
+ "font-size-adjust",
470
+ "font-smooth",
471
+ "font-smoothing",
472
+ "font-stretch",
473
+ "font-style",
474
+ "font-synthesis",
475
+ "font-synthesis-position",
476
+ "font-synthesis-small-caps",
477
+ "font-synthesis-style",
478
+ "font-synthesis-weight",
479
+ "font-variant",
480
+ "font-variant-alternates",
481
+ "font-variant-caps",
482
+ "font-variant-east-asian",
483
+ "font-variant-emoji",
484
+ "font-variant-ligatures",
485
+ "font-variant-numeric",
486
+ "font-variant-position",
487
+ "font-variation-settings",
488
+ "font-weight",
489
+ "forced-color-adjust",
490
+ "gap",
491
+ "glyph-orientation-horizontal",
492
+ "glyph-orientation-vertical",
493
+ "grid",
494
+ "grid-area",
495
+ "grid-auto-columns",
496
+ "grid-auto-flow",
497
+ "grid-auto-rows",
498
+ "grid-column",
499
+ "grid-column-end",
500
+ "grid-column-start",
501
+ "grid-gap",
502
+ "grid-row",
503
+ "grid-row-end",
504
+ "grid-row-start",
505
+ "grid-template",
506
+ "grid-template-areas",
507
+ "grid-template-columns",
508
+ "grid-template-rows",
509
+ "hanging-punctuation",
510
+ "height",
511
+ "hyphenate-character",
512
+ "hyphenate-limit-chars",
513
+ "hyphens",
514
+ "icon",
515
+ "image-orientation",
516
+ "image-rendering",
517
+ "image-resolution",
518
+ "ime-mode",
519
+ "initial-letter",
520
+ "initial-letter-align",
521
+ "inline-size",
522
+ "inset",
523
+ "inset-area",
524
+ "inset-block",
525
+ "inset-block-end",
526
+ "inset-block-start",
527
+ "inset-inline",
528
+ "inset-inline-end",
529
+ "inset-inline-start",
530
+ "isolation",
531
+ "justify-content",
532
+ "justify-items",
533
+ "justify-self",
534
+ "kerning",
535
+ "left",
536
+ "letter-spacing",
537
+ "lighting-color",
538
+ "line-break",
539
+ "line-height",
540
+ "line-height-step",
541
+ "list-style",
542
+ "list-style-image",
543
+ "list-style-position",
544
+ "list-style-type",
545
+ "margin",
546
+ "margin-block",
547
+ "margin-block-end",
548
+ "margin-block-start",
549
+ "margin-bottom",
550
+ "margin-inline",
551
+ "margin-inline-end",
552
+ "margin-inline-start",
553
+ "margin-left",
554
+ "margin-right",
555
+ "margin-top",
556
+ "margin-trim",
557
+ "marker",
558
+ "marker-end",
559
+ "marker-mid",
560
+ "marker-start",
561
+ "marks",
562
+ "mask",
563
+ "mask-border",
564
+ "mask-border-mode",
565
+ "mask-border-outset",
566
+ "mask-border-repeat",
567
+ "mask-border-slice",
568
+ "mask-border-source",
569
+ "mask-border-width",
570
+ "mask-clip",
571
+ "mask-composite",
572
+ "mask-image",
573
+ "mask-mode",
574
+ "mask-origin",
575
+ "mask-position",
576
+ "mask-repeat",
577
+ "mask-size",
578
+ "mask-type",
579
+ "masonry-auto-flow",
580
+ "math-depth",
581
+ "math-shift",
582
+ "math-style",
583
+ "max-block-size",
584
+ "max-height",
585
+ "max-inline-size",
586
+ "max-width",
587
+ "min-block-size",
588
+ "min-height",
589
+ "min-inline-size",
590
+ "min-width",
591
+ "mix-blend-mode",
592
+ "nav-down",
593
+ "nav-index",
594
+ "nav-left",
595
+ "nav-right",
596
+ "nav-up",
597
+ "none",
598
+ "normal",
599
+ "object-fit",
600
+ "object-position",
601
+ "offset",
602
+ "offset-anchor",
603
+ "offset-distance",
604
+ "offset-path",
605
+ "offset-position",
606
+ "offset-rotate",
607
+ "opacity",
608
+ "order",
609
+ "orphans",
610
+ "outline",
611
+ "outline-color",
612
+ "outline-offset",
613
+ "outline-style",
614
+ "outline-width",
615
+ "overflow",
616
+ "overflow-anchor",
617
+ "overflow-block",
618
+ "overflow-clip-margin",
619
+ "overflow-inline",
620
+ "overflow-wrap",
621
+ "overflow-x",
622
+ "overflow-y",
623
+ "overlay",
624
+ "overscroll-behavior",
625
+ "overscroll-behavior-block",
626
+ "overscroll-behavior-inline",
627
+ "overscroll-behavior-x",
628
+ "overscroll-behavior-y",
629
+ "padding",
630
+ "padding-block",
631
+ "padding-block-end",
632
+ "padding-block-start",
633
+ "padding-bottom",
634
+ "padding-inline",
635
+ "padding-inline-end",
636
+ "padding-inline-start",
637
+ "padding-left",
638
+ "padding-right",
639
+ "padding-top",
640
+ "page",
641
+ "page-break-after",
642
+ "page-break-before",
643
+ "page-break-inside",
644
+ "paint-order",
645
+ "pause",
646
+ "pause-after",
647
+ "pause-before",
648
+ "perspective",
649
+ "perspective-origin",
650
+ "place-content",
651
+ "place-items",
652
+ "place-self",
653
+ "pointer-events",
654
+ "position",
655
+ "position-anchor",
656
+ "position-visibility",
657
+ "print-color-adjust",
658
+ "quotes",
659
+ "r",
660
+ "resize",
661
+ "rest",
662
+ "rest-after",
663
+ "rest-before",
664
+ "right",
665
+ "rotate",
666
+ "row-gap",
667
+ "ruby-align",
668
+ "ruby-position",
669
+ "scale",
670
+ "scroll-behavior",
671
+ "scroll-margin",
672
+ "scroll-margin-block",
673
+ "scroll-margin-block-end",
674
+ "scroll-margin-block-start",
675
+ "scroll-margin-bottom",
676
+ "scroll-margin-inline",
677
+ "scroll-margin-inline-end",
678
+ "scroll-margin-inline-start",
679
+ "scroll-margin-left",
680
+ "scroll-margin-right",
681
+ "scroll-margin-top",
682
+ "scroll-padding",
683
+ "scroll-padding-block",
684
+ "scroll-padding-block-end",
685
+ "scroll-padding-block-start",
686
+ "scroll-padding-bottom",
687
+ "scroll-padding-inline",
688
+ "scroll-padding-inline-end",
689
+ "scroll-padding-inline-start",
690
+ "scroll-padding-left",
691
+ "scroll-padding-right",
692
+ "scroll-padding-top",
693
+ "scroll-snap-align",
694
+ "scroll-snap-stop",
695
+ "scroll-snap-type",
696
+ "scroll-timeline",
697
+ "scroll-timeline-axis",
698
+ "scroll-timeline-name",
699
+ "scrollbar-color",
700
+ "scrollbar-gutter",
701
+ "scrollbar-width",
702
+ "shape-image-threshold",
703
+ "shape-margin",
704
+ "shape-outside",
705
+ "shape-rendering",
706
+ "speak",
707
+ "speak-as",
708
+ "src",
709
+ // @font-face
710
+ "stop-color",
711
+ "stop-opacity",
712
+ "stroke",
713
+ "stroke-dasharray",
714
+ "stroke-dashoffset",
715
+ "stroke-linecap",
716
+ "stroke-linejoin",
717
+ "stroke-miterlimit",
718
+ "stroke-opacity",
719
+ "stroke-width",
720
+ "tab-size",
721
+ "table-layout",
722
+ "text-align",
723
+ "text-align-all",
724
+ "text-align-last",
725
+ "text-anchor",
726
+ "text-combine-upright",
727
+ "text-decoration",
728
+ "text-decoration-color",
729
+ "text-decoration-line",
730
+ "text-decoration-skip",
731
+ "text-decoration-skip-ink",
732
+ "text-decoration-style",
733
+ "text-decoration-thickness",
734
+ "text-emphasis",
735
+ "text-emphasis-color",
736
+ "text-emphasis-position",
737
+ "text-emphasis-style",
738
+ "text-indent",
739
+ "text-justify",
740
+ "text-orientation",
741
+ "text-overflow",
742
+ "text-rendering",
743
+ "text-shadow",
744
+ "text-size-adjust",
745
+ "text-transform",
746
+ "text-underline-offset",
747
+ "text-underline-position",
748
+ "text-wrap",
749
+ "text-wrap-mode",
750
+ "text-wrap-style",
751
+ "timeline-scope",
752
+ "top",
753
+ "touch-action",
754
+ "transform",
755
+ "transform-box",
756
+ "transform-origin",
757
+ "transform-style",
758
+ "transition",
759
+ "transition-behavior",
760
+ "transition-delay",
761
+ "transition-duration",
762
+ "transition-property",
763
+ "transition-timing-function",
764
+ "translate",
765
+ "unicode-bidi",
766
+ "user-modify",
767
+ "user-select",
768
+ "vector-effect",
769
+ "vertical-align",
770
+ "view-timeline",
771
+ "view-timeline-axis",
772
+ "view-timeline-inset",
773
+ "view-timeline-name",
774
+ "view-transition-name",
775
+ "visibility",
776
+ "voice-balance",
777
+ "voice-duration",
778
+ "voice-family",
779
+ "voice-pitch",
780
+ "voice-range",
781
+ "voice-rate",
782
+ "voice-stress",
783
+ "voice-volume",
784
+ "white-space",
785
+ "white-space-collapse",
786
+ "widows",
787
+ "width",
788
+ "will-change",
789
+ "word-break",
790
+ "word-spacing",
791
+ "word-wrap",
792
+ "writing-mode",
793
+ "x",
794
+ "y",
795
+ "z-index",
796
+ "zoom"
797
+ ].sort().reverse();
798
+ function h(t) {
799
+ const o = t.regex, e = s(t), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, n = "and or not only", a = /@-?\w[\w]*(-\w+)*/, l = "[a-zA-Z-][a-zA-Z0-9_-]*", i = [
800
+ t.APOS_STRING_MODE,
801
+ t.QUOTE_STRING_MODE
802
+ ];
803
+ return {
804
+ name: "CSS",
805
+ case_insensitive: !0,
806
+ illegal: /[=|'\$]/,
807
+ keywords: { keyframePosition: "from to" },
808
+ classNameAliases: {
809
+ // for visual continuity with `tag {}` and because we
810
+ // don't have a great class for this?
811
+ keyframePosition: "selector-tag"
812
+ },
813
+ contains: [
814
+ e.BLOCK_COMMENT,
815
+ r,
816
+ // to recognize keyframe 40% etc which are outside the scope of our
817
+ // attribute value mode
818
+ e.CSS_NUMBER_MODE,
819
+ {
820
+ className: "selector-id",
821
+ begin: /#[A-Za-z0-9_-]+/,
822
+ relevance: 0
823
+ },
824
+ {
825
+ className: "selector-class",
826
+ begin: "\\." + l,
827
+ relevance: 0
828
+ },
829
+ e.ATTRIBUTE_SELECTOR_MODE,
830
+ {
831
+ className: "selector-pseudo",
832
+ variants: [
833
+ { begin: ":(" + g.join("|") + ")" },
834
+ { begin: ":(:)?(" + p.join("|") + ")" }
835
+ ]
836
+ },
837
+ // we may actually need this (12/2020)
838
+ // { // pseudo-selector params
839
+ // begin: /\(/,
840
+ // end: /\)/,
841
+ // contains: [ hljs.CSS_NUMBER_MODE ]
842
+ // },
843
+ e.CSS_VARIABLE,
844
+ {
845
+ className: "attribute",
846
+ begin: "\\b(" + f.join("|") + ")\\b"
847
+ },
848
+ // attribute values
849
+ {
850
+ begin: /:/,
851
+ end: /[;}{]/,
852
+ contains: [
853
+ e.BLOCK_COMMENT,
854
+ e.HEXCOLOR,
855
+ e.IMPORTANT,
856
+ e.CSS_NUMBER_MODE,
857
+ ...i,
858
+ // needed to highlight these as strings and to avoid issues with
859
+ // illegal characters that might be inside urls that would tigger the
860
+ // languages illegal stack
861
+ {
862
+ begin: /(url|data-uri)\(/,
863
+ end: /\)/,
864
+ relevance: 0,
865
+ // from keywords
866
+ keywords: { built_in: "url data-uri" },
867
+ contains: [
868
+ ...i,
869
+ {
870
+ className: "string",
871
+ // any character other than `)` as in `url()` will be the start
872
+ // of a string, which ends with `)` (from the parent mode)
873
+ begin: /[^)]/,
874
+ endsWithParent: !0,
875
+ excludeEnd: !0
876
+ }
877
+ ]
878
+ },
879
+ e.FUNCTION_DISPATCH
880
+ ]
881
+ },
882
+ {
883
+ begin: o.lookahead(/@/),
884
+ end: "[{;]",
885
+ relevance: 0,
886
+ illegal: /:/,
887
+ // break on Less variables @var: ...
888
+ contains: [
889
+ {
890
+ className: "keyword",
891
+ begin: a
892
+ },
893
+ {
894
+ begin: /\s/,
895
+ endsWithParent: !0,
896
+ excludeEnd: !0,
897
+ relevance: 0,
898
+ keywords: {
899
+ $pattern: /[a-z-]+/,
900
+ keyword: n,
901
+ attribute: b.join(" ")
902
+ },
903
+ contains: [
904
+ {
905
+ begin: /[a-z-]+(?=:)/,
906
+ className: "attribute"
907
+ },
908
+ ...i,
909
+ e.CSS_NUMBER_MODE
910
+ ]
911
+ }
912
+ ]
913
+ },
914
+ {
915
+ className: "selector-tag",
916
+ begin: "\\b(" + m.join("|") + ")\\b"
917
+ }
918
+ ]
919
+ };
920
+ }
921
+ export {
922
+ h as default
923
+ };