@max-ts/svelte 1.9.1 → 1.10.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 (239) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -21
  2. package/dist/assets/styles.css +3630 -0
  3. package/dist/components/Accordion/Content/Content.js +3 -3
  4. package/dist/components/Accordion/Content/styles.css.js +4 -27
  5. package/dist/components/Accordion/Trigger/Trigger.js +4 -4
  6. package/dist/components/Accordion/Trigger/styles.css.js +5 -47
  7. package/dist/components/Alert/Description/Description.js +2 -2
  8. package/dist/components/Alert/Description/styles.css.js +2 -16
  9. package/dist/components/Alert/Title/Title.js +2 -2
  10. package/dist/components/Alert/Title/styles.css.js +2 -15
  11. package/dist/components/Alert/styles.css.js +7 -54
  12. package/dist/components/Badge/Badge.js +3 -3
  13. package/dist/components/Badge/styles.css.js +9 -55
  14. package/dist/components/Button/Button.js +5 -5
  15. package/dist/components/Button/styles.css.js +17 -195
  16. package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
  17. package/dist/components/ButtonGroup/Separator/Separator.js +2 -2
  18. package/dist/components/ButtonGroup/Separator/styles.css.js +2 -13
  19. package/dist/components/ButtonGroup/Text/Text.js +2 -2
  20. package/dist/components/ButtonGroup/Text/styles.css.js +2 -26
  21. package/dist/components/ButtonGroup/styles.css.js +7 -46
  22. package/dist/components/Calendar/Calendar.js +4 -4
  23. package/dist/components/Calendar/Cell/Cell.js +2 -2
  24. package/dist/components/Calendar/Cell/styles.css.js +2 -24
  25. package/dist/components/Calendar/Day/Day.js +2 -2
  26. package/dist/components/Calendar/Day/styles.css.js +2 -47
  27. package/dist/components/Calendar/Grid/Grid.js +2 -2
  28. package/dist/components/Calendar/Grid/styles.css.js +2 -14
  29. package/dist/components/Calendar/GridRow/GridRow.js +2 -2
  30. package/dist/components/Calendar/GridRow/styles.css.js +2 -10
  31. package/dist/components/Calendar/HeadCell/HeadCell.js +2 -2
  32. package/dist/components/Calendar/HeadCell/styles.css.js +2 -13
  33. package/dist/components/Calendar/Header/Header.js +2 -2
  34. package/dist/components/Calendar/Header/styles.css.js +2 -16
  35. package/dist/components/Calendar/MonthSelect/MonthSelect.js +4 -4
  36. package/dist/components/Calendar/MonthSelect/styles.css.js +5 -43
  37. package/dist/components/Calendar/Months/Months.js +2 -2
  38. package/dist/components/Calendar/Months/styles.css.js +2 -13
  39. package/dist/components/Calendar/Nav/Nav.js +2 -2
  40. package/dist/components/Calendar/Nav/styles.css.js +2 -17
  41. package/dist/components/Calendar/NextButton/NextButton.js +2 -2
  42. package/dist/components/Calendar/NextButton/styles.css.js +2 -16
  43. package/dist/components/Calendar/PrevButton/PrevButton.js +2 -2
  44. package/dist/components/Calendar/PrevButton/styles.css.js +2 -16
  45. package/dist/components/Calendar/YearSelect/YearSelect.js +4 -4
  46. package/dist/components/Calendar/YearSelect/styles.css.js +5 -43
  47. package/dist/components/Calendar/styles.css.js +5 -22
  48. package/dist/components/Card/Action/Action.js +2 -2
  49. package/dist/components/Card/Action/styles.css.js +2 -12
  50. package/dist/components/Card/Card.js +2 -2
  51. package/dist/components/Card/Content/Content.js +2 -2
  52. package/dist/components/Card/Content/styles.css.js +2 -10
  53. package/dist/components/Card/Description/Description.js +2 -2
  54. package/dist/components/Card/Description/styles.css.js +2 -10
  55. package/dist/components/Card/Footer/Footer.js +2 -2
  56. package/dist/components/Card/Footer/styles.css.js +2 -14
  57. package/dist/components/Card/Header/Header.js +2 -2
  58. package/dist/components/Card/Header/styles.css.js +2 -23
  59. package/dist/components/Card/Title/Title.js +2 -2
  60. package/dist/components/Card/Title/styles.css.js +2 -11
  61. package/dist/components/Card/styles.css.js +2 -17
  62. package/dist/components/Carousel/Arrows/Arrows.js +5 -5
  63. package/dist/components/Carousel/Arrows/styles.css.js +11 -68
  64. package/dist/components/Carousel/Carousel.js +2 -2
  65. package/dist/components/Carousel/Content/Content.js +3 -3
  66. package/dist/components/Carousel/Content/styles.css.js +7 -37
  67. package/dist/components/Carousel/Dots/Dots.js +3 -3
  68. package/dist/components/Carousel/Dots/styles.css.js +11 -64
  69. package/dist/components/Carousel/Item/Item.js +3 -3
  70. package/dist/components/Carousel/Item/styles.css.js +7 -22
  71. package/dist/components/Carousel/styles.css.js +2 -6
  72. package/dist/components/Checkbox/Checkbox.js +4 -4
  73. package/dist/components/Checkbox/styles.css.js +4 -55
  74. package/dist/components/CircularProgress/CircularProgress.js +6 -6
  75. package/dist/components/CircularProgress/styles.css.js +12 -55
  76. package/dist/components/ContentState/ContentState.js +2 -2
  77. package/dist/components/ContentState/styles.css.js +2 -13
  78. package/dist/components/DataGrid/Body/Body.js +3 -3
  79. package/dist/components/DataGrid/Body/styles.css.js +2 -12
  80. package/dist/components/DataGrid/Cell/Cell.js +2 -2
  81. package/dist/components/DataGrid/Cell/styles.css.js +4 -17
  82. package/dist/components/DataGrid/DataGrid.js +7 -7
  83. package/dist/components/DataGrid/Footer/Footer.js +2 -2
  84. package/dist/components/DataGrid/Footer/styles.css.js +2 -20
  85. package/dist/components/DataGrid/Header/Header.js +2 -2
  86. package/dist/components/DataGrid/Header/styles.css.js +2 -10
  87. package/dist/components/DataGrid/HeaderCell/HeaderCell.js +2 -2
  88. package/dist/components/DataGrid/HeaderCell/styles.css.js +2 -16
  89. package/dist/components/DataGrid/Row/Row.js +2 -2
  90. package/dist/components/DataGrid/Row/styles.css.js +4 -17
  91. package/dist/components/DataGrid/State/State.js +5 -5
  92. package/dist/components/DataGrid/State/styles.css.js +4 -17
  93. package/dist/components/DataGrid/styles.css.js +8 -40
  94. package/dist/components/DataGridSortHeader/DataGridSortHeader.js +3 -3
  95. package/dist/components/DataGridSortHeader/styles.css.js +9 -35
  96. package/dist/components/Dialog/styles.css.js +8 -129
  97. package/dist/components/Drawer/Content/Content.js +6 -6
  98. package/dist/components/Drawer/Description/Description.js +2 -2
  99. package/dist/components/Drawer/Footer/Footer.js +2 -2
  100. package/dist/components/Drawer/Header/Header.js +2 -2
  101. package/dist/components/Drawer/Overlay/Overlay.js +2 -2
  102. package/dist/components/Drawer/Title/Title.js +2 -2
  103. package/dist/components/Drawer/styles.css.js +12 -128
  104. package/dist/components/DropdownMenu/CheckboxItem/CheckboxItem.js +4 -4
  105. package/dist/components/DropdownMenu/CheckboxItem/styles.css.js +5 -51
  106. package/dist/components/DropdownMenu/Content/Content.js +2 -2
  107. package/dist/components/DropdownMenu/Content/styles.css.js +2 -61
  108. package/dist/components/DropdownMenu/GroupHeading/GroupHeading.js +2 -2
  109. package/dist/components/DropdownMenu/GroupHeading/styles.css.js +2 -15
  110. package/dist/components/DropdownMenu/Item/Item.js +2 -2
  111. package/dist/components/DropdownMenu/Item/styles.css.js +2 -38
  112. package/dist/components/DropdownMenu/Label/styles.css.js +1 -15
  113. package/dist/components/DropdownMenu/RadioItem/RadioItem.js +4 -4
  114. package/dist/components/DropdownMenu/RadioItem/styles.css.js +5 -48
  115. package/dist/components/DropdownMenu/Separator/Separator.js +2 -2
  116. package/dist/components/DropdownMenu/Separator/styles.css.js +2 -15
  117. package/dist/components/DropdownMenu/Shortcut/Shortcut.js +2 -2
  118. package/dist/components/DropdownMenu/Shortcut/styles.css.js +2 -12
  119. package/dist/components/DropdownMenu/SubContent/SubContent.js +2 -2
  120. package/dist/components/DropdownMenu/SubContent/styles.css.js +2 -69
  121. package/dist/components/DropdownMenu/SubTrigger/SubTrigger.js +3 -3
  122. package/dist/components/DropdownMenu/SubTrigger/styles.css.js +4 -44
  123. package/dist/components/Empty/Content/Content.js +2 -2
  124. package/dist/components/Empty/Description/Description.js +2 -2
  125. package/dist/components/Empty/Empty.js +2 -2
  126. package/dist/components/Empty/Header/Header.js +2 -2
  127. package/dist/components/Empty/Media/Media.js +3 -3
  128. package/dist/components/Empty/Title/Title.js +2 -2
  129. package/dist/components/Empty/styles.css.js +12 -91
  130. package/dist/components/Field/Content/Content.js +2 -2
  131. package/dist/components/Field/Content/styles.css.js +2 -13
  132. package/dist/components/Field/Description/Description.js +2 -2
  133. package/dist/components/Field/Description/styles.css.js +2 -24
  134. package/dist/components/Field/FieldError/FieldError.js +2 -2
  135. package/dist/components/Field/FieldError/styles.css.js +2 -20
  136. package/dist/components/Field/FieldSet/FieldSet.js +2 -2
  137. package/dist/components/Field/FieldSet/styles.css.js +2 -14
  138. package/dist/components/Field/Group/Group.js +2 -2
  139. package/dist/components/Field/Group/styles.css.js +2 -17
  140. package/dist/components/Field/Label/Label.js +2 -2
  141. package/dist/components/Field/Label/styles.css.js +2 -33
  142. package/dist/components/Field/Legend/Legend.js +2 -2
  143. package/dist/components/Field/Legend/styles.css.js +2 -14
  144. package/dist/components/Field/Separator/Separator.js +4 -4
  145. package/dist/components/Field/Separator/styles.css.js +5 -28
  146. package/dist/components/Field/Title/Title.js +2 -2
  147. package/dist/components/Field/Title/styles.css.js +2 -16
  148. package/dist/components/Field/styles.css.js +5 -48
  149. package/dist/components/Input/Input.js +5 -5
  150. package/dist/components/Input/styles.css.js +9 -106
  151. package/dist/components/InputGroup/Addon/Addon.js +3 -3
  152. package/dist/components/InputGroup/Addon/styles.css.js +8 -60
  153. package/dist/components/InputGroup/Button/Button.js +3 -3
  154. package/dist/components/InputGroup/Button/styles.css.js +8 -46
  155. package/dist/components/InputGroup/Input/Input.js +2 -2
  156. package/dist/components/InputGroup/Input/styles.css.js +2 -33
  157. package/dist/components/InputGroup/InputGroup.js +2 -2
  158. package/dist/components/InputGroup/Text/Text.js +2 -2
  159. package/dist/components/InputGroup/Text/styles.css.js +2 -19
  160. package/dist/components/InputGroup/Textarea/Textarea.js +2 -2
  161. package/dist/components/InputGroup/Textarea/styles.css.js +2 -34
  162. package/dist/components/InputGroup/styles.css.js +2 -62
  163. package/dist/components/Item/Actions/Actions.js +2 -2
  164. package/dist/components/Item/Content/Content.js +2 -2
  165. package/dist/components/Item/Description/Description.js +2 -2
  166. package/dist/components/Item/Footer/Footer.js +2 -2
  167. package/dist/components/Item/Group/Group.js +2 -2
  168. package/dist/components/Item/Header/Header.js +2 -2
  169. package/dist/components/Item/Item.js +4 -4
  170. package/dist/components/Item/Media/Media.js +3 -3
  171. package/dist/components/Item/Title/Title.js +2 -2
  172. package/dist/components/Item/styles.css.js +25 -134
  173. package/dist/components/Label/Label.js +2 -2
  174. package/dist/components/Label/styles.css.js +2 -30
  175. package/dist/components/Placeholder/Image/Image.js +3 -3
  176. package/dist/components/Placeholder/Image/styles.css.js +8 -19
  177. package/dist/components/Placeholder/Placeholder.js +6 -6
  178. package/dist/components/Placeholder/styles.css.js +11 -41
  179. package/dist/components/Popover/Close/PopoverClose.js +2 -2
  180. package/dist/components/Popover/Content/PopoverContent.js +2 -2
  181. package/dist/components/Popover/Trigger/PopoverTrigger.js +2 -2
  182. package/dist/components/Popover/styles.css.js +5 -45
  183. package/dist/components/RangeInput/RangeInput.js +12 -12
  184. package/dist/components/RangeInput/styles.css.js +14 -62
  185. package/dist/components/ScalableContainer/ScalableContainer.js +5 -5
  186. package/dist/components/ScalableContainer/styles.css.js +6 -53
  187. package/dist/components/Select/Content/Content.js +3 -3
  188. package/dist/components/Select/Content/styles.css.js +4 -60
  189. package/dist/components/Select/GroupHeading/GroupHeading.js +2 -2
  190. package/dist/components/Select/GroupHeading/styles.css.js +2 -14
  191. package/dist/components/Select/Item/Item.js +3 -3
  192. package/dist/components/Select/Item/styles.css.js +4 -55
  193. package/dist/components/Select/Label/Label.js +2 -2
  194. package/dist/components/Select/Label/styles.css.js +2 -14
  195. package/dist/components/Select/ScrollDownButton/ScrollDownButton.js +2 -2
  196. package/dist/components/Select/ScrollDownButton/styles.css.js +2 -14
  197. package/dist/components/Select/ScrollUpButton/ScrollUpButton.js +3 -3
  198. package/dist/components/Select/ScrollUpButton/styles.css.js +4 -19
  199. package/dist/components/Select/Separator/Separator.js +2 -2
  200. package/dist/components/Select/Separator/styles.css.js +2 -16
  201. package/dist/components/Select/Trigger/Trigger.js +3 -3
  202. package/dist/components/Select/Trigger/styles.css.js +4 -67
  203. package/dist/components/Separator/Separator.js +2 -2
  204. package/dist/components/Separator/styles.css.js +2 -20
  205. package/dist/components/Slider/Slider.js +7 -7
  206. package/dist/components/Slider/styles.css.js +15 -86
  207. package/dist/components/SliderInput/SliderInput.js +9 -9
  208. package/dist/components/SliderInput/styles.css.js +14 -64
  209. package/dist/components/Spinner/Spinner.js +3 -3
  210. package/dist/components/Spinner/styles.css.js +8 -29
  211. package/dist/components/Tabs/Content/Content.js +2 -2
  212. package/dist/components/Tabs/List/List.js +2 -2
  213. package/dist/components/Tabs/Tabs.js +2 -2
  214. package/dist/components/Tabs/Trigger/Trigger.js +2 -2
  215. package/dist/components/Tabs/styles.css.js +6 -75
  216. package/dist/components/Tooltip/Content/Content.js +3 -3
  217. package/dist/components/Tooltip/Content/styles.css.js +4 -113
  218. package/dist/components/Typography/styles.css.js +51 -114
  219. package/dist/theme.js +64 -154
  220. package/package.json +3 -2
  221. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -23
  222. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.browser.esm.js +0 -48
  223. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-8e47dbd7.browser.esm.js +0 -7
  224. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/transformCss-20240126.browser.esm.js +0 -765
  225. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.browser.esm.js +0 -290
  226. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js +0 -30
  227. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.18.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js +0 -18
  228. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +0 -28
  229. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +0 -312
  230. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +0 -28
  231. package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +0 -64
  232. package/dist/node_modules/.pnpm/dedent@1.7.1/node_modules/dedent/dist/dedent.js +0 -102
  233. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js +0 -26
  234. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js +0 -9
  235. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +0 -84
  236. package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +0 -1154
  237. package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +0 -939
  238. package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +0 -80
  239. package/dist/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js +0 -56
@@ -1,290 +0,0 @@
1
- import { __toESM } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import "./taggedTemplateLiteral-8e47dbd7.browser.esm.js";
3
- import "../../../../../dedent@1.7.1/node_modules/dedent/dist/dedent.js";
4
- import { appendCss, getIdentOption, markCompositionUsed, registerClassName, registerComposition, setAdapterIfNotSet } from "../adapter/dist/vanilla-extract-css-adapter.browser.esm.js";
5
- import { getAndIncrementRefCounter, getFileScope } from "../fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js";
6
- import { injectStyles } from "../injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js";
7
- import { get, walkObject } from "../../../../../@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js";
8
- import { require_cssesc } from "../../../../../cssesc@3.0.0/node_modules/cssesc/cssesc.js";
9
- import { _objectSpread2, _objectWithoutProperties, dedupeAndJoinClassList, transformCss } from "./transformCss-20240126.browser.esm.js";
10
- import { murmur2 } from "../../../../../@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js";
11
- import { LRUCache } from "../../../../../lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js";
12
- import diff from "../../../../../deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js";
13
- import { require_picocolors_browser } from "../../../../../picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js";
14
- import { require_cjs } from "../../../../../deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js";
15
- //#region node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.browser.esm.js
16
- var import_cssesc = /* @__PURE__ */ __toESM(require_cssesc());
17
- var import_picocolors_browser = /* @__PURE__ */ __toESM(require_picocolors_browser());
18
- var import_cjs = /* @__PURE__ */ __toESM(require_cjs());
19
- var localClassNames = /* @__PURE__ */ new Set();
20
- var composedClassLists = [];
21
- var bufferedCSSObjs = [];
22
- setAdapterIfNotSet({
23
- appendCss: (cssObj) => {
24
- bufferedCSSObjs.push(cssObj);
25
- },
26
- registerClassName: (className) => {
27
- localClassNames.add(className);
28
- },
29
- registerComposition: (composition) => {
30
- composedClassLists.push(composition);
31
- },
32
- markCompositionUsed: () => {},
33
- onEndFileScope: (fileScope) => {
34
- injectStyles({
35
- fileScope,
36
- css: transformCss({
37
- localClassNames: Array.from(localClassNames),
38
- composedClassLists,
39
- cssObjs: bufferedCSSObjs
40
- }).join("\n")
41
- });
42
- bufferedCSSObjs = [];
43
- },
44
- getIdentOption: () => "short"
45
- });
46
- var getLastSlashBeforeIndex = (path, index) => {
47
- var pathIndex = index - 1;
48
- while (pathIndex >= 0) {
49
- if (path[pathIndex] === "/") return pathIndex;
50
- pathIndex--;
51
- }
52
- return -1;
53
- };
54
- /**
55
- * Assumptions:
56
- * - The path is always normalized to use posix file separators (/) (see `addFileScope`)
57
- * - The path is always relative to the project root, i.e. there will never be a leading slash (see `addFileScope`)
58
- * - As long as `.css` is there, we have a valid `.css.*` file path, because otherwise there wouldn't
59
- * be a file scope to begin with
60
- *
61
- * The LRU cache we use can't cache undefined/null values, so we opt to return an empty string,
62
- * rather than using a custom Symbol or something similar.
63
- */
64
- var _getDebugFileName = (path) => {
65
- var file;
66
- var lastIndexOfDotCss = path.lastIndexOf(".css");
67
- if (lastIndexOfDotCss === -1) return "";
68
- var lastSlashIndex = getLastSlashBeforeIndex(path, lastIndexOfDotCss);
69
- file = path.slice(lastSlashIndex + 1, lastIndexOfDotCss);
70
- if (lastSlashIndex === -1) return file;
71
- var secondLastSlashIndex = getLastSlashBeforeIndex(path, lastSlashIndex - 1);
72
- var dir = path.slice(secondLastSlashIndex + 1, lastSlashIndex);
73
- return file !== "index" ? file : dir;
74
- };
75
- var memoizedGetDebugFileName = () => {
76
- var cache = new LRUCache({ max: 500 });
77
- return (path) => {
78
- var cachedResult = cache.get(path);
79
- if (cachedResult) return cachedResult;
80
- var result = _getDebugFileName(path);
81
- cache.set(path, result);
82
- return result;
83
- };
84
- };
85
- var getDebugFileName = memoizedGetDebugFileName();
86
- function getDevPrefix(_ref) {
87
- var { debugId, debugFileName } = _ref;
88
- var parts = debugId ? [debugId.replace(/\s/g, "_")] : [];
89
- if (debugFileName) {
90
- var { filePath } = getFileScope();
91
- var _debugFileName = getDebugFileName(filePath);
92
- if (_debugFileName) parts.unshift(_debugFileName);
93
- }
94
- return parts.join("_");
95
- }
96
- function normalizeIdentifier(identifier) {
97
- return identifier.match(/^[0-9]/) ? "_".concat(identifier) : identifier;
98
- }
99
- function generateIdentifier(arg) {
100
- var identOption = getIdentOption();
101
- var { debugId, debugFileName = true } = _objectSpread2(_objectSpread2({}, typeof arg === "string" ? { debugId: arg } : null), typeof arg === "object" ? arg : null);
102
- var refCount = getAndIncrementRefCounter().toString(36);
103
- var { filePath, packageName } = getFileScope();
104
- var fileScopeHash = murmur2(packageName ? "".concat(packageName).concat(filePath) : filePath);
105
- var identifier = "".concat(fileScopeHash).concat(refCount);
106
- if (identOption === "debug") {
107
- var devPrefix = getDevPrefix({
108
- debugId,
109
- debugFileName
110
- });
111
- if (devPrefix) identifier = "".concat(devPrefix, "__").concat(identifier);
112
- return normalizeIdentifier(identifier);
113
- }
114
- if (typeof identOption === "function") {
115
- identifier = identOption({
116
- hash: identifier,
117
- debugId,
118
- filePath,
119
- packageName
120
- });
121
- if (!identifier.match(/^[A-Z_][0-9A-Z_-]+$/i)) throw new Error("Identifier function returned invalid indentifier: \"".concat(identifier, "\""));
122
- return identifier;
123
- }
124
- return normalizeIdentifier(identifier);
125
- }
126
- var normaliseObject = (obj) => walkObject(obj, () => "");
127
- function validateContract(contract, tokens) {
128
- var theDiff = diff(normaliseObject(contract), normaliseObject(tokens));
129
- var valid = Object.keys(theDiff).length === 0;
130
- return {
131
- valid,
132
- diffString: valid ? "" : renderDiff(contract, theDiff)
133
- };
134
- }
135
- function diffLine(value, nesting, type) {
136
- var whitespace = [...Array(nesting).keys()].map(() => " ").join("");
137
- var line = "".concat(type ? type : " ").concat(whitespace).concat(value);
138
- if (type === "-") return import_picocolors_browser.default.red(line);
139
- if (type === "+") return import_picocolors_browser.default.green(line);
140
- return line;
141
- }
142
- function renderDiff(orig, diff) {
143
- var nesting = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
144
- var lines = [];
145
- if (nesting === 0) lines.push(diffLine("{", 0));
146
- var innerNesting = nesting + 1;
147
- for (var key of Object.keys(diff).sort()) {
148
- var value = diff[key];
149
- if (!(key in orig)) lines.push(diffLine("".concat(key, ": ...,"), innerNesting, "+"));
150
- else if (typeof value === "object") {
151
- lines.push(diffLine("".concat(key, ": {"), innerNesting));
152
- lines.push(renderDiff(orig[key], diff[key], innerNesting));
153
- lines.push(diffLine("}", innerNesting));
154
- } else lines.push(diffLine("".concat(key, ": ...,"), innerNesting, "-"));
155
- }
156
- if (nesting === 0) lines.push(diffLine("}", 0));
157
- return lines.join("\n");
158
- }
159
- var buildPropertyRule = (_ref) => {
160
- var { syntax, inherits, initialValue } = _ref;
161
- return _objectSpread2({
162
- syntax: "\"".concat(Array.isArray(syntax) ? syntax.join(" | ") : syntax, "\""),
163
- inherits: inherits ? "true" : "false"
164
- }, initialValue != null ? { initialValue } : {});
165
- };
166
- function createVar(debugIdOrDeclaration, debugId) {
167
- var cssVarName = (0, import_cssesc.default)(generateIdentifier({
168
- debugId: typeof debugIdOrDeclaration === "string" ? debugIdOrDeclaration : debugId,
169
- debugFileName: false
170
- }), { isIdentifier: true });
171
- if (debugIdOrDeclaration && typeof debugIdOrDeclaration === "object") appendCss({
172
- type: "property",
173
- name: "--".concat(cssVarName),
174
- rule: buildPropertyRule(debugIdOrDeclaration)
175
- }, getFileScope());
176
- return "var(--".concat(cssVarName, ")");
177
- }
178
- function assignVars(varContract, tokens) {
179
- var varSetters = {};
180
- var { valid, diffString } = validateContract(varContract, tokens);
181
- if (!valid) throw new Error("Tokens don't match contract.\n".concat(diffString));
182
- walkObject(tokens, (value, path) => {
183
- varSetters[get(varContract, path)] = String(value);
184
- });
185
- return varSetters;
186
- }
187
- function createThemeContract(tokens) {
188
- return walkObject(tokens, (_value, path) => {
189
- return createVar(path.join("-"));
190
- });
191
- }
192
- function createGlobalThemeContract(tokens, mapFn) {
193
- return walkObject(tokens, (value, path) => {
194
- var rawVarName = typeof mapFn === "function" ? mapFn(value, path) : value;
195
- var varName = typeof rawVarName === "string" ? rawVarName.replace(/^--/, "") : null;
196
- if (typeof varName !== "string" || varName !== (0, import_cssesc.default)(varName, { isIdentifier: true })) throw new Error("Invalid variable name for \"".concat(path.join("."), "\": ").concat(varName));
197
- return "var(--".concat(varName, ")");
198
- });
199
- }
200
- var _excluded = ["@layer"];
201
- function createGlobalTheme(selector, arg2, arg3) {
202
- var themeContractProvided = Boolean(arg3);
203
- var { layerName, tokens } = extractLayerFromTokens(themeContractProvided ? arg3 : arg2);
204
- var themeContract = themeContractProvided ? arg2 : createThemeContract(tokens);
205
- var rule = { vars: assignVars(themeContract, tokens) };
206
- if (layerName) rule = { "@layer": { [layerName]: rule } };
207
- appendCss({
208
- type: "global",
209
- selector,
210
- rule
211
- }, getFileScope());
212
- if (!themeContractProvided) return themeContract;
213
- }
214
- function extractLayerFromTokens(tokens) {
215
- if ("@layer" in tokens) {
216
- var { "@layer": layerName } = tokens;
217
- return {
218
- layerName,
219
- tokens: _objectWithoutProperties(tokens, _excluded)
220
- };
221
- }
222
- return { tokens };
223
- }
224
- function composedStyle(rules, debugId) {
225
- var className = generateIdentifier(debugId);
226
- registerClassName(className, getFileScope());
227
- var classList = [];
228
- var styleRules = [];
229
- for (var rule of rules) if (typeof rule === "string") classList.push(rule);
230
- else styleRules.push(rule);
231
- var result = className;
232
- if (classList.length > 0) {
233
- result = "".concat(className, " ").concat(dedupeAndJoinClassList(classList));
234
- registerComposition({
235
- identifier: className,
236
- classList: result
237
- }, getFileScope());
238
- if (styleRules.length > 0) markCompositionUsed(className);
239
- }
240
- if (styleRules.length > 0) appendCss({
241
- type: "local",
242
- selector: className,
243
- rule: import_cjs.default.all(styleRules, { arrayMerge: (_, sourceArray) => sourceArray })
244
- }, getFileScope());
245
- return result;
246
- }
247
- function style(rule, debugId) {
248
- if (Array.isArray(rule)) return composedStyle(rule, debugId);
249
- var className = generateIdentifier(debugId);
250
- registerClassName(className, getFileScope());
251
- appendCss({
252
- type: "local",
253
- selector: className,
254
- rule
255
- }, getFileScope());
256
- return className;
257
- }
258
- function globalStyle(selector, rule) {
259
- appendCss({
260
- type: "global",
261
- selector,
262
- rule
263
- }, getFileScope());
264
- }
265
- function keyframes(rule, debugId) {
266
- var name = (0, import_cssesc.default)(generateIdentifier(debugId), { isIdentifier: true });
267
- appendCss({
268
- type: "keyframes",
269
- name,
270
- rule
271
- }, getFileScope());
272
- return name;
273
- }
274
- function styleVariants() {
275
- if (typeof (arguments.length <= 1 ? void 0 : arguments[1]) === "function") {
276
- var _data = arguments.length <= 0 ? void 0 : arguments[0];
277
- var _mapData = arguments.length <= 1 ? void 0 : arguments[1];
278
- var _debugId = arguments.length <= 2 ? void 0 : arguments[2];
279
- var _classMap = {};
280
- for (var _key2 in _data) _classMap[_key2] = style(_mapData(_data[_key2], _key2), _debugId ? "".concat(_debugId, "_").concat(_key2) : _key2);
281
- return _classMap;
282
- }
283
- var styleMap = arguments.length <= 0 ? void 0 : arguments[0];
284
- var debugId = arguments.length <= 1 ? void 0 : arguments[1];
285
- var classMap = {};
286
- for (var _key3 in styleMap) classMap[_key3] = style(styleMap[_key3], debugId ? "".concat(debugId, "_").concat(_key3) : _key3);
287
- return classMap;
288
- }
289
- //#endregion
290
- export { createGlobalTheme, createGlobalThemeContract, globalStyle, keyframes, style, styleVariants };
@@ -1,30 +0,0 @@
1
- import { _taggedTemplateLiteral } from "../../dist/taggedTemplateLiteral-8e47dbd7.browser.esm.js";
2
- import dedent from "../../../../../../dedent@1.7.1/node_modules/dedent/dist/dedent.js";
3
- import { onBeginFileScope, onEndFileScope } from "../../adapter/dist/vanilla-extract-css-adapter.browser.esm.js";
4
- //#region node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js
5
- var _templateObject;
6
- var refCounter = 0;
7
- var fileScopes = [];
8
- function setFileScope(filePath, packageName) {
9
- refCounter = 0;
10
- var fileScope = {
11
- filePath,
12
- packageName
13
- };
14
- fileScopes.unshift(fileScope);
15
- onBeginFileScope(fileScope);
16
- }
17
- function endFileScope() {
18
- onEndFileScope(getFileScope());
19
- refCounter = 0;
20
- fileScopes.splice(0, 1);
21
- }
22
- function getFileScope() {
23
- if (fileScopes.length === 0) throw new Error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n Styles were unable to be assigned to a file. This is generally caused by one of the following:\n\n - You may have created styles outside of a '.css.ts' context\n - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started\n "]))));
24
- return fileScopes[0];
25
- }
26
- function getAndIncrementRefCounter() {
27
- return refCounter++;
28
- }
29
- //#endregion
30
- export { endFileScope, getAndIncrementRefCounter, getFileScope, setFileScope };
@@ -1,18 +0,0 @@
1
- //#region node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js
2
- var stylesheets = {};
3
- var injectStyles = (_ref) => {
4
- var { fileScope, css } = _ref;
5
- var fileScopeId = fileScope.packageName ? [fileScope.packageName, fileScope.filePath].join("/") : fileScope.filePath;
6
- var stylesheet = stylesheets[fileScopeId];
7
- if (!stylesheet) {
8
- var styleEl = document.createElement("style");
9
- if (fileScope.packageName) styleEl.setAttribute("data-package", fileScope.packageName);
10
- styleEl.setAttribute("data-file", fileScope.filePath);
11
- styleEl.setAttribute("type", "text/css");
12
- stylesheet = stylesheets[fileScopeId] = styleEl;
13
- document.head.appendChild(styleEl);
14
- }
15
- stylesheet.innerHTML = css;
16
- };
17
- //#endregion
18
- export { injectStyles };
@@ -1,28 +0,0 @@
1
- //#region node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js
2
- function getVarName(variable) {
3
- var matches = variable.match(/^var\((.*)\)$/);
4
- if (matches) return matches[1];
5
- return variable;
6
- }
7
- function get(obj, path) {
8
- var result = obj;
9
- for (var key of path) {
10
- if (!(key in result)) throw new Error("Path ".concat(path.join(" -> "), " does not exist in object"));
11
- result = result[key];
12
- }
13
- return result;
14
- }
15
- function walkObject(obj, fn) {
16
- var path = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
17
- var clone = {};
18
- for (var key in obj) {
19
- var _value = obj[key];
20
- var currentPath = [...path, key];
21
- if (typeof _value === "string" || typeof _value === "number" || _value == null) clone[key] = fn(_value, currentPath);
22
- else if (typeof _value === "object" && !Array.isArray(_value)) clone[key] = walkObject(_value, fn, currentPath);
23
- else console.warn("Skipping invalid key \"".concat(currentPath.join("."), "\". Should be a string, number, null or object. Received: \"").concat(Array.isArray(_value) ? "Array" : typeof _value, "\""));
24
- }
25
- return clone;
26
- }
27
- //#endregion
28
- export { get, getVarName, walkObject };
@@ -1,312 +0,0 @@
1
- import { AttributeAction, SelectorType } from "./types.js";
2
- //#region node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js
3
- const reName = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/;
4
- const reEscape = /\\([\da-f]{1,6}\s?|(\s)|.)/gi;
5
- const actionTypes = new Map([
6
- [126, AttributeAction.Element],
7
- [94, AttributeAction.Start],
8
- [36, AttributeAction.End],
9
- [42, AttributeAction.Any],
10
- [33, AttributeAction.Not],
11
- [124, AttributeAction.Hyphen]
12
- ]);
13
- const unpackPseudos = new Set([
14
- "has",
15
- "not",
16
- "matches",
17
- "is",
18
- "where",
19
- "host",
20
- "host-context"
21
- ]);
22
- /**
23
- * Checks whether a specific selector is a traversal.
24
- * This is useful eg. in swapping the order of elements that
25
- * are not traversals.
26
- *
27
- * @param selector Selector to check.
28
- */
29
- function isTraversal(selector) {
30
- switch (selector.type) {
31
- case SelectorType.Adjacent:
32
- case SelectorType.Child:
33
- case SelectorType.Descendant:
34
- case SelectorType.Parent:
35
- case SelectorType.Sibling:
36
- case SelectorType.ColumnCombinator: return true;
37
- default: return false;
38
- }
39
- }
40
- const stripQuotesFromPseudos = new Set(["contains", "icontains"]);
41
- function funescape(_, escaped, escapedWhitespace) {
42
- const high = parseInt(escaped, 16) - 65536;
43
- return high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);
44
- }
45
- function unescapeCSS(str) {
46
- return str.replace(reEscape, funescape);
47
- }
48
- function isQuote(c) {
49
- return c === 39 || c === 34;
50
- }
51
- function isWhitespace(c) {
52
- return c === 32 || c === 9 || c === 10 || c === 12 || c === 13;
53
- }
54
- /**
55
- * Parses `selector`, optionally with the passed `options`.
56
- *
57
- * @param selector Selector to parse.
58
- * @param options Options for parsing.
59
- * @returns Returns a two-dimensional array.
60
- * The first dimension represents selectors separated by commas (eg. `sub1, sub2`),
61
- * the second contains the relevant tokens for that selector.
62
- */
63
- function parse(selector) {
64
- const subselects = [];
65
- const endIndex = parseSelector(subselects, `${selector}`, 0);
66
- if (endIndex < selector.length) throw new Error(`Unmatched selector: ${selector.slice(endIndex)}`);
67
- return subselects;
68
- }
69
- function parseSelector(subselects, selector, selectorIndex) {
70
- let tokens = [];
71
- function getName(offset) {
72
- const match = selector.slice(selectorIndex + offset).match(reName);
73
- if (!match) throw new Error(`Expected name, found ${selector.slice(selectorIndex)}`);
74
- const [name] = match;
75
- selectorIndex += offset + name.length;
76
- return unescapeCSS(name);
77
- }
78
- function stripWhitespace(offset) {
79
- selectorIndex += offset;
80
- while (selectorIndex < selector.length && isWhitespace(selector.charCodeAt(selectorIndex))) selectorIndex++;
81
- }
82
- function readValueWithParenthesis() {
83
- selectorIndex += 1;
84
- const start = selectorIndex;
85
- let counter = 1;
86
- for (; counter > 0 && selectorIndex < selector.length; selectorIndex++) if (selector.charCodeAt(selectorIndex) === 40 && !isEscaped(selectorIndex)) counter++;
87
- else if (selector.charCodeAt(selectorIndex) === 41 && !isEscaped(selectorIndex)) counter--;
88
- if (counter) throw new Error("Parenthesis not matched");
89
- return unescapeCSS(selector.slice(start, selectorIndex - 1));
90
- }
91
- function isEscaped(pos) {
92
- let slashCount = 0;
93
- while (selector.charCodeAt(--pos) === 92) slashCount++;
94
- return (slashCount & 1) === 1;
95
- }
96
- function ensureNotTraversal() {
97
- if (tokens.length > 0 && isTraversal(tokens[tokens.length - 1])) throw new Error("Did not expect successive traversals.");
98
- }
99
- function addTraversal(type) {
100
- if (tokens.length > 0 && tokens[tokens.length - 1].type === SelectorType.Descendant) {
101
- tokens[tokens.length - 1].type = type;
102
- return;
103
- }
104
- ensureNotTraversal();
105
- tokens.push({ type });
106
- }
107
- function addSpecialAttribute(name, action) {
108
- tokens.push({
109
- type: SelectorType.Attribute,
110
- name,
111
- action,
112
- value: getName(1),
113
- namespace: null,
114
- ignoreCase: "quirks"
115
- });
116
- }
117
- /**
118
- * We have finished parsing the current part of the selector.
119
- *
120
- * Remove descendant tokens at the end if they exist,
121
- * and return the last index, so that parsing can be
122
- * picked up from here.
123
- */
124
- function finalizeSubselector() {
125
- if (tokens.length && tokens[tokens.length - 1].type === SelectorType.Descendant) tokens.pop();
126
- if (tokens.length === 0) throw new Error("Empty sub-selector");
127
- subselects.push(tokens);
128
- }
129
- stripWhitespace(0);
130
- if (selector.length === selectorIndex) return selectorIndex;
131
- loop: while (selectorIndex < selector.length) {
132
- const firstChar = selector.charCodeAt(selectorIndex);
133
- switch (firstChar) {
134
- case 32:
135
- case 9:
136
- case 10:
137
- case 12:
138
- case 13:
139
- if (tokens.length === 0 || tokens[0].type !== SelectorType.Descendant) {
140
- ensureNotTraversal();
141
- tokens.push({ type: SelectorType.Descendant });
142
- }
143
- stripWhitespace(1);
144
- break;
145
- case 62:
146
- addTraversal(SelectorType.Child);
147
- stripWhitespace(1);
148
- break;
149
- case 60:
150
- addTraversal(SelectorType.Parent);
151
- stripWhitespace(1);
152
- break;
153
- case 126:
154
- addTraversal(SelectorType.Sibling);
155
- stripWhitespace(1);
156
- break;
157
- case 43:
158
- addTraversal(SelectorType.Adjacent);
159
- stripWhitespace(1);
160
- break;
161
- case 46:
162
- addSpecialAttribute("class", AttributeAction.Element);
163
- break;
164
- case 35:
165
- addSpecialAttribute("id", AttributeAction.Equals);
166
- break;
167
- case 91: {
168
- stripWhitespace(1);
169
- let name;
170
- let namespace = null;
171
- if (selector.charCodeAt(selectorIndex) === 124) name = getName(1);
172
- else if (selector.startsWith("*|", selectorIndex)) {
173
- namespace = "*";
174
- name = getName(2);
175
- } else {
176
- name = getName(0);
177
- if (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 61) {
178
- namespace = name;
179
- name = getName(1);
180
- }
181
- }
182
- stripWhitespace(0);
183
- let action = AttributeAction.Exists;
184
- const possibleAction = actionTypes.get(selector.charCodeAt(selectorIndex));
185
- if (possibleAction) {
186
- action = possibleAction;
187
- if (selector.charCodeAt(selectorIndex + 1) !== 61) throw new Error("Expected `=`");
188
- stripWhitespace(2);
189
- } else if (selector.charCodeAt(selectorIndex) === 61) {
190
- action = AttributeAction.Equals;
191
- stripWhitespace(1);
192
- }
193
- let value = "";
194
- let ignoreCase = null;
195
- if (action !== "exists") {
196
- if (isQuote(selector.charCodeAt(selectorIndex))) {
197
- const quote = selector.charCodeAt(selectorIndex);
198
- let sectionEnd = selectorIndex + 1;
199
- while (sectionEnd < selector.length && (selector.charCodeAt(sectionEnd) !== quote || isEscaped(sectionEnd))) sectionEnd += 1;
200
- if (selector.charCodeAt(sectionEnd) !== quote) throw new Error("Attribute value didn't end");
201
- value = unescapeCSS(selector.slice(selectorIndex + 1, sectionEnd));
202
- selectorIndex = sectionEnd + 1;
203
- } else {
204
- const valueStart = selectorIndex;
205
- while (selectorIndex < selector.length && (!isWhitespace(selector.charCodeAt(selectorIndex)) && selector.charCodeAt(selectorIndex) !== 93 || isEscaped(selectorIndex))) selectorIndex += 1;
206
- value = unescapeCSS(selector.slice(valueStart, selectorIndex));
207
- }
208
- stripWhitespace(0);
209
- const forceIgnore = selector.charCodeAt(selectorIndex) | 32;
210
- if (forceIgnore === 115) {
211
- ignoreCase = false;
212
- stripWhitespace(1);
213
- } else if (forceIgnore === 105) {
214
- ignoreCase = true;
215
- stripWhitespace(1);
216
- }
217
- }
218
- if (selector.charCodeAt(selectorIndex) !== 93) throw new Error("Attribute selector didn't terminate");
219
- selectorIndex += 1;
220
- const attributeSelector = {
221
- type: SelectorType.Attribute,
222
- name,
223
- action,
224
- value,
225
- namespace,
226
- ignoreCase
227
- };
228
- tokens.push(attributeSelector);
229
- break;
230
- }
231
- case 58: {
232
- if (selector.charCodeAt(selectorIndex + 1) === 58) {
233
- tokens.push({
234
- type: SelectorType.PseudoElement,
235
- name: getName(2).toLowerCase(),
236
- data: selector.charCodeAt(selectorIndex) === 40 ? readValueWithParenthesis() : null
237
- });
238
- continue;
239
- }
240
- const name = getName(1).toLowerCase();
241
- let data = null;
242
- if (selector.charCodeAt(selectorIndex) === 40) if (unpackPseudos.has(name)) {
243
- if (isQuote(selector.charCodeAt(selectorIndex + 1))) throw new Error(`Pseudo-selector ${name} cannot be quoted`);
244
- data = [];
245
- selectorIndex = parseSelector(data, selector, selectorIndex + 1);
246
- if (selector.charCodeAt(selectorIndex) !== 41) throw new Error(`Missing closing parenthesis in :${name} (${selector})`);
247
- selectorIndex += 1;
248
- } else {
249
- data = readValueWithParenthesis();
250
- if (stripQuotesFromPseudos.has(name)) {
251
- const quot = data.charCodeAt(0);
252
- if (quot === data.charCodeAt(data.length - 1) && isQuote(quot)) data = data.slice(1, -1);
253
- }
254
- data = unescapeCSS(data);
255
- }
256
- tokens.push({
257
- type: SelectorType.Pseudo,
258
- name,
259
- data
260
- });
261
- break;
262
- }
263
- case 44:
264
- finalizeSubselector();
265
- tokens = [];
266
- stripWhitespace(1);
267
- break;
268
- default: {
269
- if (selector.startsWith("/*", selectorIndex)) {
270
- const endIndex = selector.indexOf("*/", selectorIndex + 2);
271
- if (endIndex < 0) throw new Error("Comment was not terminated");
272
- selectorIndex = endIndex + 2;
273
- if (tokens.length === 0) stripWhitespace(0);
274
- break;
275
- }
276
- let namespace = null;
277
- let name;
278
- if (firstChar === 42) {
279
- selectorIndex += 1;
280
- name = "*";
281
- } else if (firstChar === 124) {
282
- name = "";
283
- if (selector.charCodeAt(selectorIndex + 1) === 124) {
284
- addTraversal(SelectorType.ColumnCombinator);
285
- stripWhitespace(2);
286
- break;
287
- }
288
- } else if (reName.test(selector.slice(selectorIndex))) name = getName(0);
289
- else break loop;
290
- if (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 124) {
291
- namespace = name;
292
- if (selector.charCodeAt(selectorIndex + 1) === 42) {
293
- name = "*";
294
- selectorIndex += 2;
295
- } else name = getName(1);
296
- }
297
- tokens.push(name === "*" ? {
298
- type: SelectorType.Universal,
299
- namespace
300
- } : {
301
- type: SelectorType.Tag,
302
- name,
303
- namespace
304
- });
305
- }
306
- }
307
- }
308
- finalizeSubselector();
309
- return selectorIndex;
310
- }
311
- //#endregion
312
- export { parse };