@dazl/shorthands-opener 4.2.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 (237) hide show
  1. package/README.md +3 -0
  2. package/dist/compounds/compound-css-data.d.ts +22 -0
  3. package/dist/compounds/compound-css-data.d.ts.map +1 -0
  4. package/dist/compounds/compound-css-data.js +2 -0
  5. package/dist/compounds/compound-css-data.js.map +1 -0
  6. package/dist/compounds/compound-mapper.d.ts +4 -0
  7. package/dist/compounds/compound-mapper.d.ts.map +1 -0
  8. package/dist/compounds/compound-mapper.js +10 -0
  9. package/dist/compounds/compound-mapper.js.map +1 -0
  10. package/dist/compounds/compound-parser-utils.d.ts +3 -0
  11. package/dist/compounds/compound-parser-utils.d.ts.map +1 -0
  12. package/dist/compounds/compound-parser-utils.js +33 -0
  13. package/dist/compounds/compound-parser-utils.js.map +1 -0
  14. package/dist/compounds/compound-types.d.ts +26 -0
  15. package/dist/compounds/compound-types.d.ts.map +1 -0
  16. package/dist/compounds/compound-types.js +2 -0
  17. package/dist/compounds/compound-types.js.map +1 -0
  18. package/dist/compounds/compound-value-parsers.d.ts +6 -0
  19. package/dist/compounds/compound-value-parsers.d.ts.map +1 -0
  20. package/dist/compounds/compound-value-parsers.js +5 -0
  21. package/dist/compounds/compound-value-parsers.js.map +1 -0
  22. package/dist/compounds/index.d.ts +6 -0
  23. package/dist/compounds/index.d.ts.map +1 -0
  24. package/dist/compounds/index.js +6 -0
  25. package/dist/compounds/index.js.map +1 -0
  26. package/dist/compounds/parsers/index.d.ts +2 -0
  27. package/dist/compounds/parsers/index.d.ts.map +1 -0
  28. package/dist/compounds/parsers/index.js +2 -0
  29. package/dist/compounds/parsers/index.js.map +1 -0
  30. package/dist/compounds/parsers/shadow-compound.d.ts +5 -0
  31. package/dist/compounds/parsers/shadow-compound.d.ts.map +1 -0
  32. package/dist/compounds/parsers/shadow-compound.js +39 -0
  33. package/dist/compounds/parsers/shadow-compound.js.map +1 -0
  34. package/dist/css-data-types/data-types-consts.d.ts +212 -0
  35. package/dist/css-data-types/data-types-consts.d.ts.map +1 -0
  36. package/dist/css-data-types/data-types-consts.js +790 -0
  37. package/dist/css-data-types/data-types-consts.js.map +1 -0
  38. package/dist/css-data-types/data-types-predicates.d.ts +32 -0
  39. package/dist/css-data-types/data-types-predicates.d.ts.map +1 -0
  40. package/dist/css-data-types/data-types-predicates.js +353 -0
  41. package/dist/css-data-types/data-types-predicates.js.map +1 -0
  42. package/dist/css-data-types/data-types-state-machines.d.ts +14 -0
  43. package/dist/css-data-types/data-types-state-machines.d.ts.map +1 -0
  44. package/dist/css-data-types/data-types-state-machines.js +129 -0
  45. package/dist/css-data-types/data-types-state-machines.js.map +1 -0
  46. package/dist/css-data-types/data-types-types.d.ts +26 -0
  47. package/dist/css-data-types/data-types-types.d.ts.map +1 -0
  48. package/dist/css-data-types/data-types-types.js +2 -0
  49. package/dist/css-data-types/data-types-types.js.map +1 -0
  50. package/dist/css-data-types/data-types-utils.d.ts +31 -0
  51. package/dist/css-data-types/data-types-utils.d.ts.map +1 -0
  52. package/dist/css-data-types/data-types-utils.js +176 -0
  53. package/dist/css-data-types/data-types-utils.js.map +1 -0
  54. package/dist/css-data-types/data-types.d.ts +64 -0
  55. package/dist/css-data-types/data-types.d.ts.map +1 -0
  56. package/dist/css-data-types/data-types.js +304 -0
  57. package/dist/css-data-types/data-types.js.map +1 -0
  58. package/dist/css-data-types/index.d.ts +7 -0
  59. package/dist/css-data-types/index.d.ts.map +1 -0
  60. package/dist/css-data-types/index.js +7 -0
  61. package/dist/css-data-types/index.js.map +1 -0
  62. package/dist/index.d.ts +5 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +5 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/shorthands/index.d.ts +8 -0
  67. package/dist/shorthands/index.d.ts.map +1 -0
  68. package/dist/shorthands/index.js +8 -0
  69. package/dist/shorthands/index.js.map +1 -0
  70. package/dist/shorthands/openers/background-position-shorthand.d.ts +5 -0
  71. package/dist/shorthands/openers/background-position-shorthand.d.ts.map +1 -0
  72. package/dist/shorthands/openers/background-position-shorthand.js +173 -0
  73. package/dist/shorthands/openers/background-position-shorthand.js.map +1 -0
  74. package/dist/shorthands/openers/background-shorthand.d.ts +5 -0
  75. package/dist/shorthands/openers/background-shorthand.d.ts.map +1 -0
  76. package/dist/shorthands/openers/background-shorthand.js +88 -0
  77. package/dist/shorthands/openers/background-shorthand.js.map +1 -0
  78. package/dist/shorthands/openers/border-image-shorthand.d.ts +5 -0
  79. package/dist/shorthands/openers/border-image-shorthand.d.ts.map +1 -0
  80. package/dist/shorthands/openers/border-image-shorthand.js +16 -0
  81. package/dist/shorthands/openers/border-image-shorthand.js.map +1 -0
  82. package/dist/shorthands/openers/border-radius-shorthand.d.ts +5 -0
  83. package/dist/shorthands/openers/border-radius-shorthand.d.ts.map +1 -0
  84. package/dist/shorthands/openers/border-radius-shorthand.js +61 -0
  85. package/dist/shorthands/openers/border-radius-shorthand.js.map +1 -0
  86. package/dist/shorthands/openers/border-shorthand.d.ts +20 -0
  87. package/dist/shorthands/openers/border-shorthand.d.ts.map +1 -0
  88. package/dist/shorthands/openers/border-shorthand.js +90 -0
  89. package/dist/shorthands/openers/border-shorthand.js.map +1 -0
  90. package/dist/shorthands/openers/flex-flow-shorthand.d.ts +5 -0
  91. package/dist/shorthands/openers/flex-flow-shorthand.d.ts.map +1 -0
  92. package/dist/shorthands/openers/flex-flow-shorthand.js +13 -0
  93. package/dist/shorthands/openers/flex-flow-shorthand.js.map +1 -0
  94. package/dist/shorthands/openers/flex-shorthand.d.ts +5 -0
  95. package/dist/shorthands/openers/flex-shorthand.d.ts.map +1 -0
  96. package/dist/shorthands/openers/flex-shorthand.js +55 -0
  97. package/dist/shorthands/openers/flex-shorthand.js.map +1 -0
  98. package/dist/shorthands/openers/font-shorthand.d.ts +5 -0
  99. package/dist/shorthands/openers/font-shorthand.d.ts.map +1 -0
  100. package/dist/shorthands/openers/font-shorthand.js +60 -0
  101. package/dist/shorthands/openers/font-shorthand.js.map +1 -0
  102. package/dist/shorthands/openers/gap-shorthand.d.ts +5 -0
  103. package/dist/shorthands/openers/gap-shorthand.d.ts.map +1 -0
  104. package/dist/shorthands/openers/gap-shorthand.js +28 -0
  105. package/dist/shorthands/openers/gap-shorthand.js.map +1 -0
  106. package/dist/shorthands/openers/grid-axis-shorthand.d.ts +6 -0
  107. package/dist/shorthands/openers/grid-axis-shorthand.d.ts.map +1 -0
  108. package/dist/shorthands/openers/grid-axis-shorthand.js +36 -0
  109. package/dist/shorthands/openers/grid-axis-shorthand.js.map +1 -0
  110. package/dist/shorthands/openers/grid-gap-shorthand.d.ts +5 -0
  111. package/dist/shorthands/openers/grid-gap-shorthand.d.ts.map +1 -0
  112. package/dist/shorthands/openers/grid-gap-shorthand.js +21 -0
  113. package/dist/shorthands/openers/grid-gap-shorthand.js.map +1 -0
  114. package/dist/shorthands/openers/grid-shorthand.d.ts +8 -0
  115. package/dist/shorthands/openers/grid-shorthand.d.ts.map +1 -0
  116. package/dist/shorthands/openers/grid-shorthand.js +145 -0
  117. package/dist/shorthands/openers/grid-shorthand.js.map +1 -0
  118. package/dist/shorthands/openers/grid-template-shorthand.d.ts +10 -0
  119. package/dist/shorthands/openers/grid-template-shorthand.d.ts.map +1 -0
  120. package/dist/shorthands/openers/grid-template-shorthand.js +113 -0
  121. package/dist/shorthands/openers/grid-template-shorthand.js.map +1 -0
  122. package/dist/shorthands/openers/index.d.ts +22 -0
  123. package/dist/shorthands/openers/index.d.ts.map +1 -0
  124. package/dist/shorthands/openers/index.js +22 -0
  125. package/dist/shorthands/openers/index.js.map +1 -0
  126. package/dist/shorthands/openers/list-style-shorthand.d.ts +5 -0
  127. package/dist/shorthands/openers/list-style-shorthand.d.ts.map +1 -0
  128. package/dist/shorthands/openers/list-style-shorthand.js +15 -0
  129. package/dist/shorthands/openers/list-style-shorthand.js.map +1 -0
  130. package/dist/shorthands/openers/margin-shorthand.d.ts +5 -0
  131. package/dist/shorthands/openers/margin-shorthand.d.ts.map +1 -0
  132. package/dist/shorthands/openers/margin-shorthand.js +11 -0
  133. package/dist/shorthands/openers/margin-shorthand.js.map +1 -0
  134. package/dist/shorthands/openers/outline-shorthand.d.ts +5 -0
  135. package/dist/shorthands/openers/outline-shorthand.d.ts.map +1 -0
  136. package/dist/shorthands/openers/outline-shorthand.js +14 -0
  137. package/dist/shorthands/openers/outline-shorthand.js.map +1 -0
  138. package/dist/shorthands/openers/overflow-shorthand.d.ts +5 -0
  139. package/dist/shorthands/openers/overflow-shorthand.d.ts.map +1 -0
  140. package/dist/shorthands/openers/overflow-shorthand.js +21 -0
  141. package/dist/shorthands/openers/overflow-shorthand.js.map +1 -0
  142. package/dist/shorthands/openers/padding-shorthand.d.ts +5 -0
  143. package/dist/shorthands/openers/padding-shorthand.d.ts.map +1 -0
  144. package/dist/shorthands/openers/padding-shorthand.js +11 -0
  145. package/dist/shorthands/openers/padding-shorthand.js.map +1 -0
  146. package/dist/shorthands/openers/place-content-shorthand.d.ts +5 -0
  147. package/dist/shorthands/openers/place-content-shorthand.d.ts.map +1 -0
  148. package/dist/shorthands/openers/place-content-shorthand.js +29 -0
  149. package/dist/shorthands/openers/place-content-shorthand.js.map +1 -0
  150. package/dist/shorthands/openers/place-items-shorthand.d.ts +5 -0
  151. package/dist/shorthands/openers/place-items-shorthand.d.ts.map +1 -0
  152. package/dist/shorthands/openers/place-items-shorthand.js +23 -0
  153. package/dist/shorthands/openers/place-items-shorthand.js.map +1 -0
  154. package/dist/shorthands/openers/text-decoration-shorthand.d.ts +5 -0
  155. package/dist/shorthands/openers/text-decoration-shorthand.d.ts.map +1 -0
  156. package/dist/shorthands/openers/text-decoration-shorthand.js +14 -0
  157. package/dist/shorthands/openers/text-decoration-shorthand.js.map +1 -0
  158. package/dist/shorthands/shorthand-css-data.d.ts +120 -0
  159. package/dist/shorthands/shorthand-css-data.d.ts.map +1 -0
  160. package/dist/shorthands/shorthand-css-data.js +48 -0
  161. package/dist/shorthands/shorthand-css-data.js.map +1 -0
  162. package/dist/shorthands/shorthand-mapper.d.ts +6 -0
  163. package/dist/shorthands/shorthand-mapper.d.ts.map +1 -0
  164. package/dist/shorthands/shorthand-mapper.js +72 -0
  165. package/dist/shorthands/shorthand-mapper.js.map +1 -0
  166. package/dist/shorthands/shorthand-parser-errors.d.ts +25 -0
  167. package/dist/shorthands/shorthand-parser-errors.d.ts.map +1 -0
  168. package/dist/shorthands/shorthand-parser-errors.js +41 -0
  169. package/dist/shorthands/shorthand-parser-errors.js.map +1 -0
  170. package/dist/shorthands/shorthand-parser-utils.d.ts +24 -0
  171. package/dist/shorthands/shorthand-parser-utils.d.ts.map +1 -0
  172. package/dist/shorthands/shorthand-parser-utils.js +398 -0
  173. package/dist/shorthands/shorthand-parser-utils.js.map +1 -0
  174. package/dist/shorthands/shorthand-types.d.ts +64 -0
  175. package/dist/shorthands/shorthand-types.d.ts.map +1 -0
  176. package/dist/shorthands/shorthand-types.js +2 -0
  177. package/dist/shorthands/shorthand-types.js.map +1 -0
  178. package/dist/shorthands/shorthands-ast-evaluation.d.ts +5 -0
  179. package/dist/shorthands/shorthands-ast-evaluation.d.ts.map +1 -0
  180. package/dist/shorthands/shorthands-ast-evaluation.js +19 -0
  181. package/dist/shorthands/shorthands-ast-evaluation.js.map +1 -0
  182. package/dist/tokenizers/css-value-tokenizer.d.ts +43 -0
  183. package/dist/tokenizers/css-value-tokenizer.d.ts.map +1 -0
  184. package/dist/tokenizers/css-value-tokenizer.js +154 -0
  185. package/dist/tokenizers/css-value-tokenizer.js.map +1 -0
  186. package/dist/tokenizers/index.d.ts +2 -0
  187. package/dist/tokenizers/index.d.ts.map +1 -0
  188. package/dist/tokenizers/index.js +2 -0
  189. package/dist/tokenizers/index.js.map +1 -0
  190. package/package.json +54 -0
  191. package/src/compounds/compound-css-data.ts +24 -0
  192. package/src/compounds/compound-mapper.ts +21 -0
  193. package/src/compounds/compound-parser-utils.ts +47 -0
  194. package/src/compounds/compound-types.ts +35 -0
  195. package/src/compounds/compound-value-parsers.ts +12 -0
  196. package/src/compounds/index.ts +5 -0
  197. package/src/compounds/parsers/index.ts +1 -0
  198. package/src/compounds/parsers/shadow-compound.ts +56 -0
  199. package/src/css-data-types/data-types-consts.ts +877 -0
  200. package/src/css-data-types/data-types-predicates.ts +477 -0
  201. package/src/css-data-types/data-types-state-machines.ts +169 -0
  202. package/src/css-data-types/data-types-types.ts +43 -0
  203. package/src/css-data-types/data-types-utils.ts +258 -0
  204. package/src/css-data-types/data-types.ts +435 -0
  205. package/src/css-data-types/index.ts +6 -0
  206. package/src/index.ts +4 -0
  207. package/src/shorthands/index.ts +7 -0
  208. package/src/shorthands/openers/background-position-shorthand.ts +180 -0
  209. package/src/shorthands/openers/background-shorthand.ts +161 -0
  210. package/src/shorthands/openers/border-image-shorthand.ts +35 -0
  211. package/src/shorthands/openers/border-radius-shorthand.ts +93 -0
  212. package/src/shorthands/openers/border-shorthand.ts +198 -0
  213. package/src/shorthands/openers/flex-flow-shorthand.ts +24 -0
  214. package/src/shorthands/openers/flex-shorthand.ts +79 -0
  215. package/src/shorthands/openers/font-shorthand.ts +85 -0
  216. package/src/shorthands/openers/gap-shorthand.ts +47 -0
  217. package/src/shorthands/openers/grid-axis-shorthand.ts +61 -0
  218. package/src/shorthands/openers/grid-gap-shorthand.ts +40 -0
  219. package/src/shorthands/openers/grid-shorthand.ts +260 -0
  220. package/src/shorthands/openers/grid-template-shorthand.ts +176 -0
  221. package/src/shorthands/openers/index.ts +21 -0
  222. package/src/shorthands/openers/list-style-shorthand.ts +33 -0
  223. package/src/shorthands/openers/margin-shorthand.ts +20 -0
  224. package/src/shorthands/openers/outline-shorthand.ts +27 -0
  225. package/src/shorthands/openers/overflow-shorthand.ts +40 -0
  226. package/src/shorthands/openers/padding-shorthand.ts +21 -0
  227. package/src/shorthands/openers/place-content-shorthand.ts +49 -0
  228. package/src/shorthands/openers/place-items-shorthand.ts +43 -0
  229. package/src/shorthands/openers/text-decoration-shorthand.ts +27 -0
  230. package/src/shorthands/shorthand-css-data.ts +210 -0
  231. package/src/shorthands/shorthand-mapper.ts +157 -0
  232. package/src/shorthands/shorthand-parser-errors.ts +47 -0
  233. package/src/shorthands/shorthand-parser-utils.ts +602 -0
  234. package/src/shorthands/shorthand-types.ts +107 -0
  235. package/src/shorthands/shorthands-ast-evaluation.ts +38 -0
  236. package/src/tokenizers/css-value-tokenizer.ts +220 -0
  237. package/src/tokenizers/index.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-template-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/grid-template-shorthand.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAsB,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EACH,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,GAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,eAAe,EACf,4BAA4B,EAC5B,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAK7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAM,EAAE,CACjD;IACI,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,yBAAyB,EAAE,aAAa,EAAE,IAAI,EAAE;IACzF,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB,EAAE,aAAa,EAAE,IAAI,EAAE;IACvF,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,2BAA2B,EAAE,aAAa,EAAE,IAAI,EAAE;CAC3D,CAAC;AAE3C,SAAS,gBAAgB,CAAI,EAAE,KAAK,EAAmB;IACnD,OAAO,KAAK,CA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,QAAQ,EAAE,CAAC;gBACZ,MAAM,IAAI,4BAA4B,EAAE,CAAC;YAC7C,CAAC;YAED,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC,EAAE,EAAuB,CAAC,CAAC;IAC5B,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,4BAA4B,EAAE,CAAC;IAC7C,CAAC;IAED,OAAO,aAAa,CAAC,gBAAgB,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;AAClE,CAAC,CAAC;AAEN,MAAM,CAAC,MAAM,0BAA0B,GACnC,GAAsC,EAAE,CACxC,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE;IAC9B,IAAI,eAAe,CAAC,MAAM,EAAE,qBAAqB,EAAE,yBAAyB,CAAC,EAAE,CAAC;QAC5E,OAAO,2CAA2C,EAAK,CACnD,MAAiD,EACjD,GAAG,EACH,gBAAgB,CACnB,CAAC;IACN,CAAC;IAED,MAAM,SAAS,GAAG,qCAAqC,EAAK,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAC5F,OAAO,oBAAoB,CACvB,SAAS;SACJ,MAAM,CAAC,EAAE,GAAG,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;SAC5C,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAClF,GAAG,CACN,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ export * from './margin-shorthand.js';
2
+ export * from './padding-shorthand.js';
3
+ export * from './border-radius-shorthand.js';
4
+ export * from './border-shorthand.js';
5
+ export * from './outline-shorthand.js';
6
+ export * from './border-image-shorthand.js';
7
+ export * from './background-shorthand.js';
8
+ export * from './background-position-shorthand.js';
9
+ export * from './font-shorthand.js';
10
+ export * from './place-content-shorthand.js';
11
+ export * from './place-items-shorthand.js';
12
+ export * from './flex-shorthand.js';
13
+ export * from './flex-flow-shorthand.js';
14
+ export * from './gap-shorthand.js';
15
+ export * from './grid-gap-shorthand.js';
16
+ export * from './grid-axis-shorthand.js';
17
+ export * from './grid-template-shorthand.js';
18
+ export * from './grid-shorthand.js';
19
+ export * from './overflow-shorthand.js';
20
+ export * from './text-decoration-shorthand.js';
21
+ export * from './list-style-shorthand.js';
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,22 @@
1
+ export * from './margin-shorthand.js';
2
+ export * from './padding-shorthand.js';
3
+ export * from './border-radius-shorthand.js';
4
+ export * from './border-shorthand.js';
5
+ export * from './outline-shorthand.js';
6
+ export * from './border-image-shorthand.js';
7
+ export * from './background-shorthand.js';
8
+ export * from './background-position-shorthand.js';
9
+ export * from './font-shorthand.js';
10
+ export * from './place-content-shorthand.js';
11
+ export * from './place-items-shorthand.js';
12
+ export * from './flex-shorthand.js';
13
+ export * from './flex-flow-shorthand.js';
14
+ export * from './gap-shorthand.js';
15
+ export * from './grid-gap-shorthand.js';
16
+ export * from './grid-axis-shorthand.js';
17
+ export * from './grid-template-shorthand.js';
18
+ export * from './grid-shorthand.js';
19
+ export * from './overflow-shorthand.js';
20
+ export * from './text-decoration-shorthand.js';
21
+ export * from './list-style-shorthand.js';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shorthands/openers/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ListStyles } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openListStyleShorthand: GetSimpleShorthandOpener<ListStyles>;
4
+ export declare const closeListStyleShorthand: GetShorthandCloser<ListStyles>;
5
+ //# sourceMappingURL=list-style-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-style-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/list-style-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAyB,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAgBjH,eAAO,MAAM,sBAAsB,EAAE,wBAAwB,CAAC,UAAU,CAU1B,CAAC;AAE/C,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,CAAC,UAAU,CAG9D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { imageSourceDataType, listStyleSingleValueDataType, listStylePositionDataType, listStyleTypeDataType, } from '../../css-data-types/index.js';
2
+ import { unorderedListShorthandOpener, createShorthandOpener, shorthandCloserTemplate, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ // list-style
4
+ export const openListStyleShorthand = () => createShorthandOpener({
5
+ prop: 'list-style',
6
+ singleKeywordPart: { prop: 'list-style', dataType: listStyleSingleValueDataType },
7
+ parts: [
8
+ { prop: 'list-style-type', dataType: listStyleTypeDataType },
9
+ { prop: 'list-style-image', dataType: imageSourceDataType },
10
+ { prop: 'list-style-position', dataType: listStylePositionDataType },
11
+ ],
12
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
13
+ });
14
+ export const closeListStyleShorthand = () => createShorthandCloser(shorthandCloserTemplate `${'list-style-type'} ${'list-style-image'} ${'list-style-position'}`);
15
+ //# sourceMappingURL=list-style-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-style-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/list-style-shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,mBAAmB,EACnB,4BAA4B,EAC5B,yBAAyB,EACzB,qBAAqB,GACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,aAAa;AACb,MAAM,CAAC,MAAM,sBAAsB,GAAyC,GAAM,EAAE,CAChF,qBAAqB,CAAC;IAClB,IAAI,EAAE,YAAY;IAClB,iBAAiB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,4BAA4B,EAAE;IACjF,KAAK,EAAE;QACH,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,qBAAqB,EAAE;QAC5D,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;QAC3D,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,yBAAyB,EAAE;KACvE;IACD,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAAyC,CAAC;AAE/C,MAAM,CAAC,MAAM,uBAAuB,GAAmC,GAAM,EAAE,CAC3E,qBAAqB,CACjB,uBAAuB,CAAY,GAAG,iBAAiB,IAAI,kBAAkB,IAAI,qBAAqB,EAAE,CAC3G,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Margins } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openMarginShorthand: GetSimpleShorthandOpener<Margins>;
4
+ export declare const closeMarginShorthand: GetShorthandCloser<Margins>;
5
+ //# sourceMappingURL=margin-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"margin-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/margin-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAU1F,eAAO,MAAM,mBAAmB,EAAE,wBAAwB,CAAC,OAAO,CAM5D,CAAC;AAEP,eAAO,MAAM,oBAAoB,EAAE,kBAAkB,CAAC,OAAO,CAAuD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { edgesShorthandOpener, createShorthandOpenerFromPart, edgesShorthandCloser, } from '../shorthand-parser-utils.js';
2
+ import { ALWAYS_DATA_TYPE } from '../../css-data-types/index.js';
3
+ // margin
4
+ export const openMarginShorthand = () => createShorthandOpenerFromPart({
5
+ prop: 'margin',
6
+ dataType: ALWAYS_DATA_TYPE,
7
+ partOpener: edgesShorthandOpener('margin'),
8
+ openedProps: ['margin-top', 'margin-right', 'margin-bottom', 'margin-left'],
9
+ });
10
+ export const closeMarginShorthand = () => edgesShorthandCloser('margin');
11
+ //# sourceMappingURL=margin-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"margin-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/margin-shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,oBAAoB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,SAAS;AACT,MAAM,CAAC,MAAM,mBAAmB,GAAsC,GAAM,EAAE,CAC1E,6BAA6B,CAAa;IACtC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,gBAAgB;IAC1B,UAAU,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IAC1C,WAAW,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,CAAC;CAC9E,CAAC,CAAC;AAEP,MAAM,CAAC,MAAM,oBAAoB,GAAgC,GAAM,EAAE,CAAC,oBAAoB,CAAa,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Outlines } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openOutlineShorthand: GetSimpleShorthandOpener<Outlines>;
4
+ export declare const closeOutlineShorthand: GetShorthandCloser<Outlines>;
5
+ //# sourceMappingURL=outline-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outline-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/outline-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAyB,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAWjH,eAAO,MAAM,oBAAoB,EAAE,wBAAwB,CAAC,QAAQ,CASxB,CAAC;AAE7C,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,QAAQ,CAG1D,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { outlineStyleDataType, lineWidthDataType, outlineColorDataType } from '../../css-data-types/index.js';
2
+ import { unorderedListShorthandOpener, createShorthandOpener, shorthandCloserTemplate, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ // outline
4
+ export const openOutlineShorthand = () => createShorthandOpener({
5
+ prop: 'outline',
6
+ parts: [
7
+ { prop: 'outline-style', dataType: outlineStyleDataType },
8
+ { prop: 'outline-width', dataType: lineWidthDataType },
9
+ { prop: 'outline-color', dataType: outlineColorDataType },
10
+ ],
11
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
12
+ });
13
+ export const closeOutlineShorthand = () => createShorthandCloser(shorthandCloserTemplate `${'outline-style'} ${'outline-width'} ${'outline-color'}`);
14
+ //# sourceMappingURL=outline-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outline-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/outline-shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC9G,OAAO,EACH,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,UAAU;AACV,MAAM,CAAC,MAAM,oBAAoB,GAAuC,GAAM,EAAE,CAC5E,qBAAqB,CAAC;IAClB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE;QACH,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE;QACzD,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE;QACtD,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE;KAC5D;IACD,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAAuC,CAAC;AAE7C,MAAM,CAAC,MAAM,qBAAqB,GAAiC,GAAM,EAAE,CACvE,qBAAqB,CACjB,uBAAuB,CAAU,GAAG,eAAe,IAAI,eAAe,IAAI,eAAe,EAAE,CAC9F,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Overflows } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openOverflowShorthand: GetSimpleShorthandOpener<Overflows>;
4
+ export declare const closeOverflowShorthand: GetShorthandCloser<Overflows>;
5
+ //# sourceMappingURL=overflow-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overflow-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/overflow-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAGR,wBAAwB,EACxB,kBAAkB,EACrB,MAAM,uBAAuB,CAAC;AAyB/B,eAAO,MAAM,qBAAqB,EAAE,wBAAwB,CAAC,SAAS,CAKzB,CAAC;AAE9C,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,CAAC,SAAS,CAC2C,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { overflowDataType } from '../../css-data-types/index.js';
2
+ import { splitSimpleShorthandOpener, unorderedListShorthandOpener, createShorthandOpener, createShorthandCloserTemplateFromParts, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ const getOverflowShorthandParts = () => [
4
+ {
5
+ prop: 'overflow-x',
6
+ dataType: overflowDataType,
7
+ partOpener: splitSimpleShorthandOpener(['overflow-x', 'overflow-y']),
8
+ },
9
+ {
10
+ prop: 'overflow-y',
11
+ dataType: overflowDataType,
12
+ },
13
+ ];
14
+ // overflow
15
+ export const openOverflowShorthand = () => createShorthandOpener({
16
+ prop: 'overflow',
17
+ parts: getOverflowShorthandParts(),
18
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
19
+ });
20
+ export const closeOverflowShorthand = () => createShorthandCloser(createShorthandCloserTemplateFromParts(getOverflowShorthandParts()));
21
+ //# sourceMappingURL=overflow-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overflow-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/overflow-shorthand.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACH,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,sCAAsC,EACtC,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,yBAAyB,GAAG,GAAM,EAAE,CACtC;IACI;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,0BAA0B,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;KACvE;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,gBAAgB;KAC7B;CAC6B,CAAC;AAEvC,WAAW;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAwC,GAAM,EAAE,CAC9E,qBAAqB,CAAC;IAClB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,yBAAyB,EAAE;IAClC,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAAwC,CAAC;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAkC,GAAM,EAAE,CACzE,qBAAqB,CAAe,sCAAsC,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Paddings } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openPaddingShorthand: GetSimpleShorthandOpener<Paddings>;
4
+ export declare const closePaddingShorthand: GetShorthandCloser<Paddings>;
5
+ //# sourceMappingURL=padding-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/padding-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAU1F,eAAO,MAAM,oBAAoB,EAAE,wBAAwB,CAAC,QAAQ,CAM9D,CAAC;AAEP,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,QAAQ,CACf,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { edgesShorthandOpener, createShorthandOpenerFromPart, edgesShorthandCloser, } from '../shorthand-parser-utils.js';
2
+ import { ALWAYS_DATA_TYPE } from '../../css-data-types/index.js';
3
+ // padding
4
+ export const openPaddingShorthand = () => createShorthandOpenerFromPart({
5
+ prop: 'padding',
6
+ dataType: ALWAYS_DATA_TYPE,
7
+ partOpener: edgesShorthandOpener('padding'),
8
+ openedProps: ['padding-top', 'padding-right', 'padding-bottom', 'padding-left'],
9
+ });
10
+ export const closePaddingShorthand = () => edgesShorthandCloser('padding');
11
+ //# sourceMappingURL=padding-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/padding-shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,oBAAoB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,UAAU;AACV,MAAM,CAAC,MAAM,oBAAoB,GAAuC,GAAM,EAAE,CAC5E,6BAA6B,CAAc;IACvC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,gBAAgB;IAC1B,UAAU,EAAE,oBAAoB,CAAC,SAAS,CAAC;IAC3C,WAAW,EAAE,CAAC,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,CAAC;CAClF,CAAC,CAAC;AAEP,MAAM,CAAC,MAAM,qBAAqB,GAAiC,GAAM,EAAE,CACvE,oBAAoB,CAAc,SAAS,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PlaceContents } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openPlaceContentShorthand: GetSimpleShorthandOpener<PlaceContents>;
4
+ export declare const closePlaceContentShorthand: GetShorthandCloser<PlaceContents>;
5
+ //# sourceMappingURL=place-content-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"place-content-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/place-content-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAGR,wBAAwB,EACxB,kBAAkB,EACrB,MAAM,uBAAuB,CAAC;AAkC/B,eAAO,MAAM,yBAAyB,EAAE,wBAAwB,CAAC,aAAa,CAK7B,CAAC;AAElD,eAAO,MAAM,0BAA0B,EAAE,kBAAkB,CAAC,aAAa,CAC2C,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { alignContentDataType, justifyContentDataType } from '../../css-data-types/index.js';
2
+ import { intersectionBeforeOpenerCheck, splitSimpleShorthandOpener, unorderedListShorthandOpener, createShorthandOpener, createShorthandCloserTemplateFromParts, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ const getPlaceContentShorthandParts = () => [
4
+ {
5
+ prop: 'align-content',
6
+ dataType: alignContentDataType,
7
+ beforeOpenerCheck: intersectionBeforeOpenerCheck('place-content', [
8
+ alignContentDataType,
9
+ justifyContentDataType,
10
+ ]),
11
+ partOpener: splitSimpleShorthandOpener(['align-content', 'justify-content']),
12
+ },
13
+ {
14
+ prop: 'justify-content',
15
+ dataType: justifyContentDataType,
16
+ beforeOpenerCheck: intersectionBeforeOpenerCheck('place-content', [
17
+ alignContentDataType,
18
+ justifyContentDataType,
19
+ ]),
20
+ },
21
+ ];
22
+ // place-content
23
+ export const openPlaceContentShorthand = () => createShorthandOpener({
24
+ prop: 'place-content',
25
+ parts: getPlaceContentShorthandParts(),
26
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
27
+ });
28
+ export const closePlaceContentShorthand = () => createShorthandCloser(createShorthandCloserTemplateFromParts(getPlaceContentShorthandParts()));
29
+ //# sourceMappingURL=place-content-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"place-content-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/place-content-shorthand.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EACH,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,sCAAsC,EACtC,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,6BAA6B,GAAG,GAAM,EAAE,CAC1C;IACI;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,oBAAoB;QAC9B,iBAAiB,EAAE,6BAA6B,CAAC,eAAe,EAAE;YAC9D,oBAAoB;YACpB,sBAAsB;SACzB,CAAC;QACF,UAAU,EAAE,0BAA0B,CAAC,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;KAC/E;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,sBAAsB;QAChC,iBAAiB,EAAE,6BAA6B,CAAC,eAAe,EAAE;YAC9D,oBAAoB;YACpB,sBAAsB;SACzB,CAAC;KACL;CACiC,CAAC;AAE3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAA4C,GAAM,EAAE,CACtF,qBAAqB,CAAC;IAClB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,6BAA6B,EAAE;IACtC,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAA4C,CAAC;AAElD,MAAM,CAAC,MAAM,0BAA0B,GAAsC,GAAM,EAAE,CACjF,qBAAqB,CAAmB,sCAAsC,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PlaceItems } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openPlaceItemsShorthand: GetSimpleShorthandOpener<PlaceItems>;
4
+ export declare const closePlaceItemsShorthand: GetShorthandCloser<PlaceItems>;
5
+ //# sourceMappingURL=place-items-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"place-items-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/place-items-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAGR,wBAAwB,EACxB,kBAAkB,EACrB,MAAM,uBAAuB,CAAC;AA4B/B,eAAO,MAAM,uBAAuB,EAAE,wBAAwB,CAAC,UAAU,CAK3B,CAAC;AAE/C,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,CAAC,UAAU,CAC2C,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { alignItemsDataType, justifyItemsDataType } from '../../css-data-types/index.js';
2
+ import { intersectionBeforeOpenerCheck, splitSimpleShorthandOpener, unorderedListShorthandOpener, createShorthandOpener, createShorthandCloserTemplateFromParts, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ const getPlaceItemsShorthandParts = () => [
4
+ {
5
+ prop: 'align-items',
6
+ dataType: alignItemsDataType,
7
+ beforeOpenerCheck: intersectionBeforeOpenerCheck('place-items', [alignItemsDataType, justifyItemsDataType]),
8
+ partOpener: splitSimpleShorthandOpener(['align-items', 'justify-items']),
9
+ },
10
+ {
11
+ prop: 'justify-items',
12
+ dataType: justifyItemsDataType,
13
+ beforeOpenerCheck: intersectionBeforeOpenerCheck('place-items', [alignItemsDataType, justifyItemsDataType]),
14
+ },
15
+ ];
16
+ // place-items
17
+ export const openPlaceItemsShorthand = () => createShorthandOpener({
18
+ prop: 'place-items',
19
+ parts: getPlaceItemsShorthandParts(),
20
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
21
+ });
22
+ export const closePlaceItemsShorthand = () => createShorthandCloser(createShorthandCloserTemplateFromParts(getPlaceItemsShorthandParts()));
23
+ //# sourceMappingURL=place-items-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"place-items-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/place-items-shorthand.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EACH,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,sCAAsC,EACtC,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,2BAA2B,GAAG,GAAM,EAAE,CACxC;IACI;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,kBAAkB;QAC5B,iBAAiB,EAAE,6BAA6B,CAAC,aAAa,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAC3G,UAAU,EAAE,0BAA0B,CAAC,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;KAC3E;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,oBAAoB;QAC9B,iBAAiB,EAAE,6BAA6B,CAAC,aAAa,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;KAC9G;CAC8B,CAAC;AAExC,cAAc;AACd,MAAM,CAAC,MAAM,uBAAuB,GAAyC,GAAM,EAAE,CACjF,qBAAqB,CAAC;IAClB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,2BAA2B,EAAE;IACpC,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAAyC,CAAC;AAE/C,MAAM,CAAC,MAAM,wBAAwB,GAAmC,GAAM,EAAE,CAC5E,qBAAqB,CAAgB,sCAAsC,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TextDecorations } from '../shorthand-css-data.js';
2
+ import type { GetSimpleShorthandOpener, GetShorthandCloser } from '../shorthand-types.js';
3
+ export declare const openTextDecorationShorthand: GetSimpleShorthandOpener<TextDecorations>;
4
+ export declare const closeTextDecorationShorthand: GetShorthandCloser<TextDecorations>;
5
+ //# sourceMappingURL=text-decoration-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-decoration-shorthand.d.ts","sourceRoot":"","sources":["../../../src/shorthands/openers/text-decoration-shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAyB,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAWjH,eAAO,MAAM,2BAA2B,EAAE,wBAAwB,CAAC,eAAe,CAS/B,CAAC;AAEpD,eAAO,MAAM,4BAA4B,EAAE,kBAAkB,CAAC,eAAe,CAGxE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { colorDataType, textDecorationLineDataType, textDecorationStyleDataType } from '../../css-data-types/index.js';
2
+ import { unorderedListShorthandOpener, createShorthandOpener, shorthandCloserTemplate, createShorthandCloser, } from '../shorthand-parser-utils.js';
3
+ // text-decoration
4
+ export const openTextDecorationShorthand = () => createShorthandOpener({
5
+ prop: 'text-decoration',
6
+ parts: [
7
+ { prop: 'text-decoration-color', dataType: colorDataType },
8
+ { prop: 'text-decoration-line', dataType: textDecorationLineDataType },
9
+ { prop: 'text-decoration-style', dataType: textDecorationStyleDataType },
10
+ ],
11
+ shorthandOpener: (astNodes, api, parts) => unorderedListShorthandOpener(parts)(astNodes, api),
12
+ });
13
+ export const closeTextDecorationShorthand = () => createShorthandCloser(shorthandCloserTemplate `${'text-decoration-color'} ${'text-decoration-line'} ${'text-decoration-style'}`);
14
+ //# sourceMappingURL=text-decoration-shorthand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-decoration-shorthand.js","sourceRoot":"","sources":["../../../src/shorthands/openers/text-decoration-shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACvH,OAAO,EACH,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,kBAAkB;AAClB,MAAM,CAAC,MAAM,2BAA2B,GAA8C,GAAM,EAAE,CAC1F,qBAAqB,CAAC;IAClB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE;QACH,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC1D,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,0BAA0B,EAAE;QACtE,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,2BAA2B,EAAE;KAC3E;IACD,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC;CAChG,CAA8C,CAAC;AAEpD,MAAM,CAAC,MAAM,4BAA4B,GAAwC,GAAM,EAAE,CACrF,qBAAqB,CACjB,uBAAuB,CAAiB,GAAG,uBAAuB,IAAI,sBAAsB,IAAI,uBAAuB,EAAE,CAC5H,CAAC"}
@@ -0,0 +1,120 @@
1
+ import type { EvaluatedAst } from './shorthand-types.js';
2
+ export type Margins = 'margin-top' | 'margin-right' | 'margin-bottom' | 'margin-left';
3
+ export type Paddings = 'padding-top' | 'padding-right' | 'padding-bottom' | 'padding-left';
4
+ export type BorderRadiuses = 'border-top-left-radius' | 'border-top-right-radius' | 'border-bottom-right-radius' | 'border-bottom-left-radius';
5
+ export type OpenedBorderRadiusShorthand<V> = Array<Record<BorderRadiuses, EvaluatedAst<V>>>;
6
+ export type BorderStyles = 'border-top-style' | 'border-right-style' | 'border-bottom-style' | 'border-left-style';
7
+ export type BorderWidths = 'border-top-width' | 'border-right-width' | 'border-bottom-width' | 'border-left-width';
8
+ export type BorderColors = 'border-top-color' | 'border-right-color' | 'border-bottom-color' | 'border-left-color';
9
+ export type BordersShallow = 'border-style' | 'border-width' | 'border-color';
10
+ export type Borders = BorderStyles | BorderWidths | BorderColors;
11
+ export type BordersTop = 'border-top-style' | 'border-top-width' | 'border-top-color';
12
+ export type BordersRight = 'border-right-style' | 'border-right-width' | 'border-right-color';
13
+ export type BordersBottom = 'border-bottom-style' | 'border-bottom-width' | 'border-bottom-color';
14
+ export type BordersLeft = 'border-left-style' | 'border-left-width' | 'border-left-color';
15
+ export type Outlines = 'outline-style' | 'outline-width' | 'outline-color';
16
+ export type BorderImages = 'border-image-source' | 'border-image-slice' | 'border-image-width' | 'border-image-outset' | 'border-image-repeat';
17
+ export type OpenedBorderImageShorthand<V> = {
18
+ 'border-image-source': EvaluatedAst<V>;
19
+ 'border-image-slice': EvaluatedAst<V>[];
20
+ 'border-image-width': EvaluatedAst<V>[];
21
+ 'border-image-outset': EvaluatedAst<V>[];
22
+ 'border-image-repeat': EvaluatedAst<V>[];
23
+ };
24
+ export type Backgrounds = 'background-attachment' | 'background-clip' | 'background-color' | 'background-image' | 'background-origin' | 'background-position' | 'background-repeat' | 'background-size';
25
+ export type BackgroundLayer<V> = {
26
+ 'background-attachment': EvaluatedAst<V>;
27
+ 'background-clip': EvaluatedAst<V>;
28
+ 'background-image': EvaluatedAst<V>;
29
+ 'background-origin': EvaluatedAst<V>;
30
+ 'background-position': EvaluatedAst<V>[];
31
+ 'background-repeat': EvaluatedAst<V>[];
32
+ 'background-size': EvaluatedAst<V>[];
33
+ };
34
+ export interface OpenedBackgroundShorthand<V> {
35
+ layers: BackgroundLayer<V>[];
36
+ color: EvaluatedAst<V>;
37
+ }
38
+ export type BackgroundPositionLonghand = 'background-position-x' | 'background-position-y';
39
+ export interface OpenedBackgroundPositionShorthand<V> {
40
+ 'background-position-x': EvaluatedAst<V>[];
41
+ 'background-position-y': EvaluatedAst<V>[];
42
+ }
43
+ export type FontPrefixes = 'font-style' | 'font-variant' | 'font-weight' | 'font-stretch';
44
+ export type FontSuffixes = 'font-size' | 'line-height' | 'font-family';
45
+ export type Fonts = FontPrefixes | FontSuffixes | 'font';
46
+ export type OpenedFontShorthand<V> = {
47
+ 'font-style': EvaluatedAst<V>[];
48
+ 'font-variant': EvaluatedAst<V>;
49
+ 'font-weight': EvaluatedAst<V>;
50
+ 'font-stretch': EvaluatedAst<V>;
51
+ 'font-size': EvaluatedAst<V>;
52
+ 'line-height': EvaluatedAst<V>;
53
+ 'font-family': EvaluatedAst<V>[];
54
+ font: EvaluatedAst<V>;
55
+ };
56
+ export type PlaceContents = 'align-content' | 'justify-content';
57
+ export type PlaceItems = 'align-items' | 'justify-items';
58
+ export type Flexes = 'flex-grow' | 'flex-shrink' | 'flex-basis';
59
+ export type FlexFlows = 'flex-direction' | 'flex-wrap';
60
+ export type Gaps = 'row-gap' | 'column-gap';
61
+ export type GridGaps = 'grid-row-gap' | 'grid-column-gap';
62
+ export type GridRows = 'grid-row-start' | 'grid-row-end';
63
+ export type GridColumns = 'grid-column-start' | 'grid-column-end';
64
+ export type GridAxis = 'row' | 'column';
65
+ export type GridAxisLonghands<A extends GridAxis> = A extends 'row' ? GridRows : GridColumns;
66
+ export type GridTemplates = 'grid-template-areas' | 'grid-template-rows' | 'grid-template-columns';
67
+ export type Grids = GridTemplates | 'grid-auto-flow' | 'grid-auto-rows' | 'grid-auto-columns';
68
+ export type Overflows = 'overflow-x' | 'overflow-y';
69
+ export type TextDecorations = 'text-decoration-color' | 'text-decoration-line' | 'text-decoration-style';
70
+ export type ListStyles = 'list-style-type' | 'list-style-image' | 'list-style-position';
71
+ export type ShorthandsTypeMap = {
72
+ background: Backgrounds;
73
+ 'background-position': BackgroundPositionLonghand;
74
+ 'border-radius': BorderRadiuses;
75
+ border: Borders;
76
+ 'border-top': BordersTop;
77
+ 'border-right': BordersRight;
78
+ 'border-bottom': BordersBottom;
79
+ 'border-left': BordersLeft;
80
+ 'border-style': BorderStyles;
81
+ 'border-width': BorderWidths;
82
+ 'border-color': BorderColors;
83
+ outline: Outlines;
84
+ 'border-image': BorderImages;
85
+ font: Fonts;
86
+ 'place-content': PlaceContents;
87
+ 'place-items': PlaceItems;
88
+ flex: Flexes;
89
+ 'flex-flow': FlexFlows;
90
+ gap: Gaps;
91
+ 'grid-gap': GridGaps;
92
+ 'grid-row': GridRows;
93
+ 'grid-column': GridColumns;
94
+ 'grid-template': GridTemplates;
95
+ grid: Grids;
96
+ margin: Margins;
97
+ padding: Paddings;
98
+ overflow: Overflows;
99
+ 'text-decoration': TextDecorations;
100
+ 'list-style': ListStyles;
101
+ };
102
+ export type ShorthandsSpecialReturnTypeMap<V> = {
103
+ background: OpenedBackgroundShorthand<V>;
104
+ 'background-position': OpenedBackgroundPositionShorthand<V>;
105
+ 'border-radius': OpenedBorderRadiusShorthand<V>;
106
+ font: OpenedFontShorthand<V>;
107
+ 'border-image': OpenedBorderImageShorthand<V>;
108
+ };
109
+ export type CssEdge = 'top' | 'right' | 'bottom' | 'left';
110
+ export type CssCorner = 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
111
+ export declare const CSS_PROPERTY_DELIMITER = "-";
112
+ export declare const EDGE_SHORTHAND_EDGES: ["top", "right", "bottom", "left"];
113
+ export declare const CORNER_SHORTHAND_CORNERS: ["top-left", "top-right", "bottom-right", "bottom-left"];
114
+ export declare const EDGE_SHORTHAND_INDICES_BY_LENGTH: [[0, 0, 0, 0], [0, 1, 0, 1], [0, 1, 2, 1], [0, 1, 2, 3]];
115
+ export type FlexKeyword = 'initial' | 'auto' | 'none';
116
+ export declare const FLEX_KEYWORD_VALUE_MAP: Record<FlexKeyword, Record<Flexes, string>>;
117
+ export type GridKeyword = 'none';
118
+ export declare const GRID_TEMPLATE_KEYWORD_VALUE_MAP: Record<GridKeyword, Record<GridTemplates, string>>;
119
+ export declare const GRID_KEYWORD_VALUE_MAP: Record<GridKeyword, Record<Grids, string>>;
120
+ //# sourceMappingURL=shorthand-css-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthand-css-data.d.ts","sourceRoot":"","sources":["../../src/shorthands/shorthand-css-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MA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,CAAC,KAAK,EAAE,MAAM,CAAC,CAO7E,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { INITIAL_FLEX_GROW, AUTO_FLEX_GROW, INITIAL_FLEX_SHRINK, NONE_FLEX_SHRINK, AUTO_FLEX_BASIS, INITIAL_GRID_TEMPLATE_AREAS, INITIAL_GRID_TEMPLATE_AXIS, INITIAL_GRID_AUTO_FLOW, INITIAL_GRID_AUTO_AXIS, } from '../css-data-types/index.js';
2
+ export const CSS_PROPERTY_DELIMITER = '-';
3
+ export const EDGE_SHORTHAND_EDGES = ['top', 'right', 'bottom', 'left'];
4
+ export const CORNER_SHORTHAND_CORNERS = [
5
+ 'top-left',
6
+ 'top-right',
7
+ 'bottom-right',
8
+ 'bottom-left',
9
+ ];
10
+ export const EDGE_SHORTHAND_INDICES_BY_LENGTH = [
11
+ [0, 0, 0, 0],
12
+ [0, 1, 0, 1],
13
+ [0, 1, 2, 1],
14
+ [0, 1, 2, 3],
15
+ ];
16
+ export const FLEX_KEYWORD_VALUE_MAP = {
17
+ initial: {
18
+ 'flex-grow': INITIAL_FLEX_GROW,
19
+ 'flex-shrink': INITIAL_FLEX_SHRINK,
20
+ 'flex-basis': AUTO_FLEX_BASIS,
21
+ },
22
+ auto: {
23
+ 'flex-grow': AUTO_FLEX_GROW,
24
+ 'flex-shrink': INITIAL_FLEX_SHRINK,
25
+ 'flex-basis': AUTO_FLEX_BASIS,
26
+ },
27
+ none: {
28
+ 'flex-grow': INITIAL_FLEX_GROW,
29
+ 'flex-shrink': NONE_FLEX_SHRINK,
30
+ 'flex-basis': AUTO_FLEX_BASIS,
31
+ },
32
+ };
33
+ export const GRID_TEMPLATE_KEYWORD_VALUE_MAP = {
34
+ none: {
35
+ 'grid-template-areas': INITIAL_GRID_TEMPLATE_AREAS,
36
+ 'grid-template-rows': INITIAL_GRID_TEMPLATE_AXIS,
37
+ 'grid-template-columns': INITIAL_GRID_TEMPLATE_AXIS,
38
+ },
39
+ };
40
+ export const GRID_KEYWORD_VALUE_MAP = {
41
+ none: {
42
+ ...GRID_TEMPLATE_KEYWORD_VALUE_MAP.none,
43
+ 'grid-auto-flow': INITIAL_GRID_AUTO_FLOW,
44
+ 'grid-auto-rows': INITIAL_GRID_AUTO_AXIS,
45
+ 'grid-auto-columns': INITIAL_GRID_AUTO_AXIS,
46
+ },
47
+ };
48
+ //# sourceMappingURL=shorthand-css-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthand-css-data.js","sourceRoot":"","sources":["../../src/shorthands/shorthand-css-data.ts"],"names":[],"mappings":"AACA,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,GACzB,MAAM,4BAA4B,CAAC;AAoJpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAC1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAA8B,CAAC;AACpG,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,UAAU;IACV,WAAW;IACX,cAAc;IACd,aAAa;CACe,CAAC;AACjC,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC5C,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACe,CAAC;AAGhC,MAAM,CAAC,MAAM,sBAAsB,GAAgD;IAC/E,OAAO,EAAE;QACL,WAAW,EAAE,iBAAiB;QAC9B,aAAa,EAAE,mBAAmB;QAClC,YAAY,EAAE,eAAe;KAChC;IACD,IAAI,EAAE;QACF,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,mBAAmB;QAClC,YAAY,EAAE,eAAe;KAChC;IACD,IAAI,EAAE;QACF,WAAW,EAAE,iBAAiB;QAC9B,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAChC;CACJ,CAAC;AAGF,MAAM,CAAC,MAAM,+BAA+B,GAAuD;IAC/F,IAAI,EAAE;QACF,qBAAqB,EAAE,2BAA2B;QAClD,oBAAoB,EAAE,0BAA0B;QAChD,uBAAuB,EAAE,0BAA0B;KACtD;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAA+C;IAC9E,IAAI,EAAE;QACF,GAAG,+BAA+B,CAAC,IAAI;QACvC,gBAAgB,EAAE,sBAAsB;QACxC,gBAAgB,EAAE,sBAAsB;QACxC,mBAAmB,EAAE,sBAAsB;KAC9C;CACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ShorthandOpener, SimpleShorthandOpener, ShorthandCloser } from './shorthand-types.js';
2
+ import type { ShorthandsTypeMap, ShorthandsSpecialReturnTypeMap } from './shorthand-css-data.js';
3
+ export type MappedShorthandOpener<V, T extends keyof ShorthandsTypeMap> = T extends keyof ShorthandsSpecialReturnTypeMap<V> ? ShorthandOpener<V, ShorthandsTypeMap[T], ShorthandsSpecialReturnTypeMap<V>[T]> : SimpleShorthandOpener<V, ShorthandsTypeMap[T]>;
4
+ export declare const getShorthandOpener: <V, T extends keyof ShorthandsTypeMap>(prop: T) => MappedShorthandOpener<V, T>;
5
+ export declare const getShorthandCloser: <V, T extends keyof ShorthandsTypeMap>(prop: T) => ShorthandCloser<V, ShorthandsTypeMap[T]>;
6
+ //# sourceMappingURL=shorthand-mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthand-mapper.d.ts","sourceRoot":"","sources":["../../src/shorthands/shorthand-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EACf,qBAAqB,EAErB,eAAe,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAoIjG,MAAM,MAAM,qBAAqB,CAC7B,CAAC,EACD,CAAC,SAAS,MAAM,iBAAiB,IACjC,CAAC,SAAS,MAAM,8BAA8B,CAAC,CAAC,CAAC,GAC/C,eAAe,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9E,qBAAqB,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAErD,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,SAAS,MAAM,iBAAiB,EAAE,MAAM,CAAC,KAAG,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAG5G,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,SAAS,MAAM,iBAAiB,EACnE,MAAM,CAAC,KACR,eAAe,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAGzC,CAAC"}