@fluixi-css/core 0.1.0-next.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 (389) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/base.css +4 -0
  4. package/components.css +1 -0
  5. package/dist/base.css +4 -0
  6. package/dist/components.css +1 -0
  7. package/dist/index.css +2 -0
  8. package/dist/package.json +139 -0
  9. package/dist/reset.css +168 -0
  10. package/dist/src/ast.d.ts +298 -0
  11. package/dist/src/ast.js +2240 -0
  12. package/dist/src/ast.js.map +1 -0
  13. package/dist/src/commons/constants.d.ts +1193 -0
  14. package/dist/src/commons/constants.js +1323 -0
  15. package/dist/src/commons/constants.js.map +1 -0
  16. package/dist/src/commons/helper.d.ts +1298 -0
  17. package/dist/src/commons/helper.js +1310 -0
  18. package/dist/src/commons/helper.js.map +1 -0
  19. package/dist/src/commons/index.d.ts +3 -0
  20. package/dist/src/commons/index.js +4 -0
  21. package/dist/src/commons/index.js.map +1 -0
  22. package/dist/src/commons/properties.d.ts +1431 -0
  23. package/dist/src/commons/properties.js +2855 -0
  24. package/dist/src/commons/properties.js.map +1 -0
  25. package/dist/src/commons/types.d.ts +359 -0
  26. package/dist/src/commons/types.js +4 -0
  27. package/dist/src/commons/types.js.map +1 -0
  28. package/dist/src/components/avatar/index.d.ts +19 -0
  29. package/dist/src/components/avatar/index.js +22 -0
  30. package/dist/src/components/avatar/index.js.map +1 -0
  31. package/dist/src/components/button/index.d.ts +48 -0
  32. package/dist/src/components/button/index.js +51 -0
  33. package/dist/src/components/button/index.js.map +1 -0
  34. package/dist/src/components/card/index.d.ts +44 -0
  35. package/dist/src/components/card/index.js +47 -0
  36. package/dist/src/components/card/index.js.map +1 -0
  37. package/dist/src/components/checkbox/index.d.ts +69 -0
  38. package/dist/src/components/checkbox/index.js +80 -0
  39. package/dist/src/components/checkbox/index.js.map +1 -0
  40. package/dist/src/components/daterangepicker/index.d.ts +147 -0
  41. package/dist/src/components/daterangepicker/index.js +150 -0
  42. package/dist/src/components/daterangepicker/index.js.map +1 -0
  43. package/dist/src/components/dialog/index.d.ts +71 -0
  44. package/dist/src/components/dialog/index.js +74 -0
  45. package/dist/src/components/dialog/index.js.map +1 -0
  46. package/dist/src/components/drawer/index.d.ts +26 -0
  47. package/dist/src/components/drawer/index.js +29 -0
  48. package/dist/src/components/drawer/index.js.map +1 -0
  49. package/dist/src/components/dropdown/index.d.ts +101 -0
  50. package/dist/src/components/dropdown/index.js +104 -0
  51. package/dist/src/components/dropdown/index.js.map +1 -0
  52. package/dist/src/components/forms/index.d.ts +58 -0
  53. package/dist/src/components/forms/index.js +62 -0
  54. package/dist/src/components/forms/index.js.map +1 -0
  55. package/dist/src/components/index.d.ts +1228 -0
  56. package/dist/src/components/index.js +64 -0
  57. package/dist/src/components/index.js.map +1 -0
  58. package/dist/src/components/layout/index.d.ts +28 -0
  59. package/dist/src/components/layout/index.js +33 -0
  60. package/dist/src/components/layout/index.js.map +1 -0
  61. package/dist/src/components/list/index.d.ts +65 -0
  62. package/dist/src/components/list/index.js +68 -0
  63. package/dist/src/components/list/index.js.map +1 -0
  64. package/dist/src/components/popover/index.d.ts +79 -0
  65. package/dist/src/components/popover/index.js +82 -0
  66. package/dist/src/components/popover/index.js.map +1 -0
  67. package/dist/src/components/radio/index.d.ts +77 -0
  68. package/dist/src/components/radio/index.js +80 -0
  69. package/dist/src/components/radio/index.js.map +1 -0
  70. package/dist/src/components/select/index.d.ts +102 -0
  71. package/dist/src/components/select/index.js +105 -0
  72. package/dist/src/components/select/index.js.map +1 -0
  73. package/dist/src/components/sidenav/index.d.ts +98 -0
  74. package/dist/src/components/sidenav/index.js +101 -0
  75. package/dist/src/components/sidenav/index.js.map +1 -0
  76. package/dist/src/components/table/index.d.ts +95 -0
  77. package/dist/src/components/table/index.js +98 -0
  78. package/dist/src/components/table/index.js.map +1 -0
  79. package/dist/src/constants.d.ts +3 -0
  80. package/dist/src/constants.js +29 -0
  81. package/dist/src/constants.js.map +1 -0
  82. package/dist/src/css-ast.d.ts +48 -0
  83. package/dist/src/css-ast.js +2 -0
  84. package/dist/src/css-ast.js.map +1 -0
  85. package/dist/src/css-generator.d.ts +29 -0
  86. package/dist/src/css-generator.js +104 -0
  87. package/dist/src/css-generator.js.map +1 -0
  88. package/dist/src/css-helpers.d.ts +76 -0
  89. package/dist/src/css-helpers.js +272 -0
  90. package/dist/src/css-helpers.js.map +1 -0
  91. package/dist/src/css-lexer.d.ts +48 -0
  92. package/dist/src/css-lexer.js +255 -0
  93. package/dist/src/css-lexer.js.map +1 -0
  94. package/dist/src/css-parser.cjs +2047 -0
  95. package/dist/src/css-parser.cjs.map +1 -0
  96. package/dist/src/css-parser.d.ts +100 -0
  97. package/dist/src/css-parser.js +1098 -0
  98. package/dist/src/css-parser.js.map +1 -0
  99. package/dist/src/css-parser.mjs +2028 -0
  100. package/dist/src/css-parser.mjs.map +1 -0
  101. package/dist/src/design-system.d.ts +210 -0
  102. package/dist/src/design-system.js +1034 -0
  103. package/dist/src/design-system.js.map +1 -0
  104. package/dist/src/engine/ast.d.ts +44 -0
  105. package/dist/src/engine/ast.js +92 -0
  106. package/dist/src/engine/ast.js.map +1 -0
  107. package/dist/src/engine/atom.d.ts +74 -0
  108. package/dist/src/engine/atom.js +227 -0
  109. package/dist/src/engine/atom.js.map +1 -0
  110. package/dist/src/engine/compile.d.ts +5 -0
  111. package/dist/src/engine/compile.js +79 -0
  112. package/dist/src/engine/compile.js.map +1 -0
  113. package/dist/src/engine/defaults.d.ts +2 -0
  114. package/dist/src/engine/defaults.js +14 -0
  115. package/dist/src/engine/defaults.js.map +1 -0
  116. package/dist/src/engine/directives.d.ts +2 -0
  117. package/dist/src/engine/directives.js +191 -0
  118. package/dist/src/engine/directives.js.map +1 -0
  119. package/dist/src/engine/index.d.ts +41 -0
  120. package/dist/src/engine/index.js +88 -0
  121. package/dist/src/engine/index.js.map +1 -0
  122. package/dist/src/engine/registry.d.ts +46 -0
  123. package/dist/src/engine/registry.js +49 -0
  124. package/dist/src/engine/registry.js.map +1 -0
  125. package/dist/src/engine/scanner.d.ts +1 -0
  126. package/dist/src/engine/scanner.js +45 -0
  127. package/dist/src/engine/scanner.js.map +1 -0
  128. package/dist/src/engine/source.d.ts +12 -0
  129. package/dist/src/engine/source.js +81 -0
  130. package/dist/src/engine/source.js.map +1 -0
  131. package/dist/src/engine/theme-defaults.d.ts +2 -0
  132. package/dist/src/engine/theme-defaults.js +54 -0
  133. package/dist/src/engine/theme-defaults.js.map +1 -0
  134. package/dist/src/engine/theme-source.d.ts +5 -0
  135. package/dist/src/engine/theme-source.js +71 -0
  136. package/dist/src/engine/theme-source.js.map +1 -0
  137. package/dist/src/engine/theme.d.ts +10 -0
  138. package/dist/src/engine/theme.js +42 -0
  139. package/dist/src/engine/theme.js.map +1 -0
  140. package/dist/src/engine/transform.d.ts +25 -0
  141. package/dist/src/engine/transform.js +91 -0
  142. package/dist/src/engine/transform.js.map +1 -0
  143. package/dist/src/engine/ui-preset.d.ts +4 -0
  144. package/dist/src/engine/ui-preset.js +56 -0
  145. package/dist/src/engine/ui-preset.js.map +1 -0
  146. package/dist/src/engine/utilities/backgrounds.d.ts +2 -0
  147. package/dist/src/engine/utilities/backgrounds.js +32 -0
  148. package/dist/src/engine/utilities/backgrounds.js.map +1 -0
  149. package/dist/src/engine/utilities/borders.d.ts +2 -0
  150. package/dist/src/engine/utilities/borders.js +95 -0
  151. package/dist/src/engine/utilities/borders.js.map +1 -0
  152. package/dist/src/engine/utilities/effects.d.ts +2 -0
  153. package/dist/src/engine/utilities/effects.js +61 -0
  154. package/dist/src/engine/utilities/effects.js.map +1 -0
  155. package/dist/src/engine/utilities/flexgrid.d.ts +2 -0
  156. package/dist/src/engine/utilities/flexgrid.js +125 -0
  157. package/dist/src/engine/utilities/flexgrid.js.map +1 -0
  158. package/dist/src/engine/utilities/index.d.ts +3 -0
  159. package/dist/src/engine/utilities/index.js +20 -0
  160. package/dist/src/engine/utilities/index.js.map +1 -0
  161. package/dist/src/engine/utilities/layout.d.ts +2 -0
  162. package/dist/src/engine/utilities/layout.js +84 -0
  163. package/dist/src/engine/utilities/layout.js.map +1 -0
  164. package/dist/src/engine/utilities/sizing.d.ts +2 -0
  165. package/dist/src/engine/utilities/sizing.js +21 -0
  166. package/dist/src/engine/utilities/sizing.js.map +1 -0
  167. package/dist/src/engine/utilities/spacing.d.ts +2 -0
  168. package/dist/src/engine/utilities/spacing.js +39 -0
  169. package/dist/src/engine/utilities/spacing.js.map +1 -0
  170. package/dist/src/engine/utilities/typography.d.ts +2 -0
  171. package/dist/src/engine/utilities/typography.js +120 -0
  172. package/dist/src/engine/utilities/typography.js.map +1 -0
  173. package/dist/src/engine/utilities/values.d.ts +16 -0
  174. package/dist/src/engine/utilities/values.js +91 -0
  175. package/dist/src/engine/utilities/values.js.map +1 -0
  176. package/dist/src/engine/variants.d.ts +2 -0
  177. package/dist/src/engine/variants.js +99 -0
  178. package/dist/src/engine/variants.js.map +1 -0
  179. package/dist/src/extractor.d.ts +146 -0
  180. package/dist/src/extractor.js +3862 -0
  181. package/dist/src/extractor.js.map +1 -0
  182. package/dist/src/index.cjs +4518 -0
  183. package/dist/src/index.cjs.map +1 -0
  184. package/dist/src/index.d.ts +1 -0
  185. package/dist/src/index.js +9 -0
  186. package/dist/src/index.js.map +1 -0
  187. package/dist/src/index.mjs +4480 -0
  188. package/dist/src/index.mjs.map +1 -0
  189. package/dist/src/keyframes.cjs +367 -0
  190. package/dist/src/keyframes.cjs.map +1 -0
  191. package/dist/src/keyframes.d.ts +27 -0
  192. package/dist/src/keyframes.js +188 -0
  193. package/dist/src/keyframes.js.map +1 -0
  194. package/dist/src/keyframes.mjs +362 -0
  195. package/dist/src/keyframes.mjs.map +1 -0
  196. package/dist/src/logger.d.ts +2 -0
  197. package/dist/src/logger.js +31 -0
  198. package/dist/src/logger.js.map +1 -0
  199. package/dist/src/plugin.cjs +43 -0
  200. package/dist/src/plugin.cjs.map +1 -0
  201. package/dist/src/plugin.d.ts +12 -0
  202. package/dist/src/plugin.js +39 -0
  203. package/dist/src/plugin.js.map +1 -0
  204. package/dist/src/plugin.mjs +41 -0
  205. package/dist/src/plugin.mjs.map +1 -0
  206. package/dist/src/presets-plugins.cjs +99 -0
  207. package/dist/src/presets-plugins.cjs.map +1 -0
  208. package/dist/src/presets-plugins.d.ts +1 -0
  209. package/dist/src/presets-plugins.js +56 -0
  210. package/dist/src/presets-plugins.js.map +1 -0
  211. package/dist/src/presets-plugins.mjs +97 -0
  212. package/dist/src/presets-plugins.mjs.map +1 -0
  213. package/dist/src/state.d.ts +76 -0
  214. package/dist/src/state.js +314 -0
  215. package/dist/src/state.js.map +1 -0
  216. package/dist/src/theme/constants.d.ts +22 -0
  217. package/dist/src/theme/constants.js +17 -0
  218. package/dist/src/theme/constants.js.map +1 -0
  219. package/dist/src/theme/index.d.ts +2 -0
  220. package/dist/src/theme/index.js +48 -0
  221. package/dist/src/theme/index.js.map +1 -0
  222. package/dist/src/theme/types.d.ts +13 -0
  223. package/dist/src/theme/types.js +2 -0
  224. package/dist/src/theme/types.js.map +1 -0
  225. package/dist/src/types/ast.d.ts +23 -0
  226. package/dist/src/types/ast.js +2 -0
  227. package/dist/src/types/ast.js.map +1 -0
  228. package/dist/src/types/base-types.d.ts +53 -0
  229. package/dist/src/types/base-types.js +2 -0
  230. package/dist/src/types/base-types.js.map +1 -0
  231. package/dist/src/types/components-types.d.ts +28 -0
  232. package/dist/src/types/components-types.js +2 -0
  233. package/dist/src/types/components-types.js.map +1 -0
  234. package/dist/src/types/config.d.ts +90 -0
  235. package/dist/src/types/config.js +3 -0
  236. package/dist/src/types/config.js.map +1 -0
  237. package/dist/src/types/css-parser.d.ts +361 -0
  238. package/dist/src/types/css-parser.js +2 -0
  239. package/dist/src/types/css-parser.js.map +1 -0
  240. package/dist/src/types/keyframes-type.d.ts +47 -0
  241. package/dist/src/types/keyframes-type.js +2 -0
  242. package/dist/src/types/keyframes-type.js.map +1 -0
  243. package/dist/src/types/plugin.d.ts +10 -0
  244. package/dist/src/types/plugin.js +2 -0
  245. package/dist/src/types/plugin.js.map +1 -0
  246. package/dist/src/types/screens-types.d.ts +47 -0
  247. package/dist/src/types/screens-types.js +2 -0
  248. package/dist/src/types/screens-types.js.map +1 -0
  249. package/dist/src/types/utilities-types.d.ts +147 -0
  250. package/dist/src/types/utilities-types.js +2 -0
  251. package/dist/src/types/utilities-types.js.map +1 -0
  252. package/dist/src/types.d.ts +77 -0
  253. package/dist/src/types.js +12 -0
  254. package/dist/src/types.js.map +1 -0
  255. package/dist/src/units/constants.d.ts +35 -0
  256. package/dist/src/units/constants.js +9 -0
  257. package/dist/src/units/constants.js.map +1 -0
  258. package/dist/src/units/index.d.ts +15 -0
  259. package/dist/src/units/index.js +7 -0
  260. package/dist/src/units/index.js.map +1 -0
  261. package/dist/src/units/types.d.ts +9 -0
  262. package/dist/src/units/types.js +2 -0
  263. package/dist/src/units/types.js.map +1 -0
  264. package/dist/src/utilities/backgrounds/constants.d.ts +2810 -0
  265. package/dist/src/utilities/backgrounds/constants.js +119 -0
  266. package/dist/src/utilities/backgrounds/constants.js.map +1 -0
  267. package/dist/src/utilities/backgrounds/index.d.ts +1 -0
  268. package/dist/src/utilities/backgrounds/index.js +2 -0
  269. package/dist/src/utilities/backgrounds/index.js.map +1 -0
  270. package/dist/src/utilities/borders/constants.d.ts +10586 -0
  271. package/dist/src/utilities/borders/constants.js +309 -0
  272. package/dist/src/utilities/borders/constants.js.map +1 -0
  273. package/dist/src/utilities/borders/index.d.ts +1 -0
  274. package/dist/src/utilities/borders/index.js +2 -0
  275. package/dist/src/utilities/borders/index.js.map +1 -0
  276. package/dist/src/utilities/breakpoints/constants.d.ts +330 -0
  277. package/dist/src/utilities/breakpoints/constants.js +269 -0
  278. package/dist/src/utilities/breakpoints/constants.js.map +1 -0
  279. package/dist/src/utilities/breakpoints/index.d.ts +2 -0
  280. package/dist/src/utilities/breakpoints/index.js +3 -0
  281. package/dist/src/utilities/breakpoints/index.js.map +1 -0
  282. package/dist/src/utilities/breakpoints/types.d.ts +8 -0
  283. package/dist/src/utilities/breakpoints/types.js +2 -0
  284. package/dist/src/utilities/breakpoints/types.js.map +1 -0
  285. package/dist/src/utilities/colors/base.d.ts +778 -0
  286. package/dist/src/utilities/colors/base.js +872 -0
  287. package/dist/src/utilities/colors/base.js.map +1 -0
  288. package/dist/src/utilities/colors/color.d.ts +1122 -0
  289. package/dist/src/utilities/colors/color.js +957 -0
  290. package/dist/src/utilities/colors/color.js.map +1 -0
  291. package/dist/src/utilities/colors/constants.d.ts +1 -0
  292. package/dist/src/utilities/colors/constants.js +2 -0
  293. package/dist/src/utilities/colors/constants.js.map +1 -0
  294. package/dist/src/utilities/colors/index.d.ts +4 -0
  295. package/dist/src/utilities/colors/index.js +29 -0
  296. package/dist/src/utilities/colors/index.js.map +1 -0
  297. package/dist/src/utilities/colors/types.d.ts +3 -0
  298. package/dist/src/utilities/colors/types.js +2 -0
  299. package/dist/src/utilities/colors/types.js.map +1 -0
  300. package/dist/src/utilities/effects/constants.d.ts +641 -0
  301. package/dist/src/utilities/effects/constants.js +83 -0
  302. package/dist/src/utilities/effects/constants.js.map +1 -0
  303. package/dist/src/utilities/effects/index.d.ts +1 -0
  304. package/dist/src/utilities/effects/index.js +2 -0
  305. package/dist/src/utilities/effects/index.js.map +1 -0
  306. package/dist/src/utilities/filters/constants.d.ts +406 -0
  307. package/dist/src/utilities/filters/constants.js +206 -0
  308. package/dist/src/utilities/filters/constants.js.map +1 -0
  309. package/dist/src/utilities/filters/index.d.ts +1 -0
  310. package/dist/src/utilities/filters/index.js +2 -0
  311. package/dist/src/utilities/filters/index.js.map +1 -0
  312. package/dist/src/utilities/flex/constants.d.ts +934 -0
  313. package/dist/src/utilities/flex/constants.js +221 -0
  314. package/dist/src/utilities/flex/constants.js.map +1 -0
  315. package/dist/src/utilities/flex/index.d.ts +1 -0
  316. package/dist/src/utilities/flex/index.js +2 -0
  317. package/dist/src/utilities/flex/index.js.map +1 -0
  318. package/dist/src/utilities/flex/types.d.ts +0 -0
  319. package/dist/src/utilities/flex/types.js +4 -0
  320. package/dist/src/utilities/flex/types.js.map +1 -0
  321. package/dist/src/utilities/index.d.ts +31338 -0
  322. package/dist/src/utilities/index.js +333 -0
  323. package/dist/src/utilities/index.js.map +1 -0
  324. package/dist/src/utilities/interactivity/constants.d.ts +1244 -0
  325. package/dist/src/utilities/interactivity/constants.js +165 -0
  326. package/dist/src/utilities/interactivity/constants.js.map +1 -0
  327. package/dist/src/utilities/interactivity/index.d.ts +1 -0
  328. package/dist/src/utilities/interactivity/index.js +2 -0
  329. package/dist/src/utilities/interactivity/index.js.map +1 -0
  330. package/dist/src/utilities/layout/constants.d.ts +837 -0
  331. package/dist/src/utilities/layout/constants.js +159 -0
  332. package/dist/src/utilities/layout/constants.js.map +1 -0
  333. package/dist/src/utilities/layout/index.d.ts +1 -0
  334. package/dist/src/utilities/layout/index.js +2 -0
  335. package/dist/src/utilities/layout/index.js.map +1 -0
  336. package/dist/src/utilities/layout/types.d.ts +0 -0
  337. package/dist/src/utilities/layout/types.js +2 -0
  338. package/dist/src/utilities/layout/types.js.map +1 -0
  339. package/dist/src/utilities/sizing/constants.d.ts +989 -0
  340. package/dist/src/utilities/sizing/constants.js +53 -0
  341. package/dist/src/utilities/sizing/constants.js.map +1 -0
  342. package/dist/src/utilities/sizing/index.d.ts +2 -0
  343. package/dist/src/utilities/sizing/index.js +3 -0
  344. package/dist/src/utilities/sizing/index.js.map +1 -0
  345. package/dist/src/utilities/sizing/types.d.ts +10 -0
  346. package/dist/src/utilities/sizing/types.js +2 -0
  347. package/dist/src/utilities/sizing/types.js.map +1 -0
  348. package/dist/src/utilities/spacing/constants.d.ts +1779 -0
  349. package/dist/src/utilities/spacing/constants.js +142 -0
  350. package/dist/src/utilities/spacing/constants.js.map +1 -0
  351. package/dist/src/utilities/spacing/index.d.ts +2 -0
  352. package/dist/src/utilities/spacing/index.js +3 -0
  353. package/dist/src/utilities/spacing/index.js.map +1 -0
  354. package/dist/src/utilities/spacing/types.d.ts +15 -0
  355. package/dist/src/utilities/spacing/types.js +8 -0
  356. package/dist/src/utilities/spacing/types.js.map +1 -0
  357. package/dist/src/utilities/svg/constants.d.ts +1062 -0
  358. package/dist/src/utilities/svg/constants.js +34 -0
  359. package/dist/src/utilities/svg/constants.js.map +1 -0
  360. package/dist/src/utilities/transforms/constants.d.ts +247 -0
  361. package/dist/src/utilities/transforms/constants.js +74 -0
  362. package/dist/src/utilities/transforms/constants.js.map +1 -0
  363. package/dist/src/utilities/transforms/index.d.ts +1 -0
  364. package/dist/src/utilities/transforms/index.js +2 -0
  365. package/dist/src/utilities/transforms/index.js.map +1 -0
  366. package/dist/src/utilities/transitions/constants.d.ts +116 -0
  367. package/dist/src/utilities/transitions/constants.js +91 -0
  368. package/dist/src/utilities/transitions/constants.js.map +1 -0
  369. package/dist/src/utilities/transitions/index.d.ts +1 -0
  370. package/dist/src/utilities/transitions/index.js +2 -0
  371. package/dist/src/utilities/transitions/index.js.map +1 -0
  372. package/dist/src/utilities/typography/constants.d.ts +2401 -0
  373. package/dist/src/utilities/typography/constants.js +401 -0
  374. package/dist/src/utilities/typography/constants.js.map +1 -0
  375. package/dist/src/utilities/typography/index.d.ts +1 -0
  376. package/dist/src/utilities/typography/index.js +2 -0
  377. package/dist/src/utilities/typography/index.js.map +1 -0
  378. package/dist/src/utils.d.ts +18 -0
  379. package/dist/src/utils.js +282 -0
  380. package/dist/src/utils.js.map +1 -0
  381. package/dist/src/watcher.d.ts +15 -0
  382. package/dist/src/watcher.js +62 -0
  383. package/dist/src/watcher.js.map +1 -0
  384. package/dist/tsconfig.tsbuildinfo +1 -0
  385. package/dist/utilities.css +1 -0
  386. package/index.css +2 -0
  387. package/package.json +139 -0
  388. package/reset.css +168 -0
  389. package/utilities.css +1 -0
@@ -0,0 +1,159 @@
1
+ import { FullMap, POSITIONS_DATA, POSITIONS_DATA_Y, StylesVariants } from "../../commons/constants.js";
2
+ import { PercentMap, Zero_100_Map_Rem, buildModelMap, createMutable, dynamicPick, generateRange, kebabObjectKeys, objectKeys, omitFilter, valueToArray } from "../../commons/helper.js";
3
+ import { CssProperties } from "../../commons/properties.js";
4
+ const i = ['inherit', 'initial', '[prop:column-width]', '[prop:column-count]'];
5
+ const s = ['inline-start', 'inline-end'];
6
+ export const DISPLAYS = omitFilter([...CssProperties.display.values, 'flow-root'], [...i]);
7
+ const FLOATS = omitFilter([...CssProperties.float.values, ...s], [...i]);
8
+ const BOX_SIZING = omitFilter([...CssProperties["box-sizing"].values], [...i]);
9
+ const OBJECT_FITS = omitFilter([...CssProperties["object-fit"].values], [...i]);
10
+ const OVERFLOWS = omitFilter([...CssProperties.overflow.values], [...i]);
11
+ const SCROLL_BEHAVIORS = omitFilter([...CssProperties["scroll-behavior"].values], [...i]);
12
+ const OVERSCROLL_BEHAVIORS = omitFilter([...CssProperties["overscroll-behavior"].values], [...i]);
13
+ const POSITIONS = omitFilter([...CssProperties.position.values], [...i]);
14
+ const VISIBILIY = omitFilter([...CssProperties.visibility.values, ...['invisible']], [...i, ...['hidden']]);
15
+ const OBJECT_POSITIONS = [...POSITIONS_DATA];
16
+ const ISOLATIONS = omitFilter([...CssProperties.isolation.values], [...i]);
17
+ const CLEARS = omitFilter([...CssProperties.clear.values], [...i]);
18
+ const Z_INDEXES = generateRange(0, 50, 10);
19
+ const COLUMNS = generateRange(0, 12, 1);
20
+ const COLUMNS_MAP = ["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl", "10xl"];
21
+ export const OverflowProps = {
22
+ values: Object.assign({}, buildModelMap(OVERFLOWS, '')),
23
+ shorthands: { "overflow": ["overflow"], "overflow-x": ["overflowX"], "overflow-y": ["overflowY"] },
24
+ variants: StylesVariants.overflow
25
+ };
26
+ export const DisplayProps = {
27
+ values: DISPLAYS.slice().map(v => v === 'none' ? 'hidden:none' : v),
28
+ // {
29
+ // ...kebabObjectKeys(buildModelMap(DISPLAYS, ''))
30
+ // },
31
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(buildModelMap(DISPLAYS, ''))), 'display')),
32
+ variants: StylesVariants.display
33
+ // shorthands: {"display": ["display"]}
34
+ };
35
+ export const PositionProps = {
36
+ values: POSITIONS,
37
+ // {
38
+ // ...buildModelMap(POSITIONS, '')
39
+ // },
40
+ // shorthands: {"position": ["position"]}
41
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, buildModelMap(POSITIONS, '')), 'position')),
42
+ variants: StylesVariants.position
43
+ };
44
+ export const FloatProps = {
45
+ values: Object.assign({}, buildModelMap(FLOATS, '')),
46
+ shorthands: { "float": ["float"] },
47
+ variants: StylesVariants.float
48
+ };
49
+ export const BoxSizingProps = {
50
+ values: {
51
+ "border": "border-box",
52
+ "content": "content-box"
53
+ },
54
+ shorthands: { "box": ["boxSizing"] },
55
+ variants: StylesVariants.boxSizing
56
+ };
57
+ export const ObjectFitProps = {
58
+ values: Object.assign({}, buildModelMap(OBJECT_FITS, '', '', '')),
59
+ shorthands: { "object": ["objectFit"] },
60
+ variants: StylesVariants.objectFit
61
+ };
62
+ export const ObjectPositionsProps = {
63
+ values: Object.assign(Object.assign(Object.assign(Object.assign({}, buildModelMap([...OBJECT_POSITIONS])), buildModelMap([...POSITIONS_DATA_Y], '', '', 'right-', true)), buildModelMap([...POSITIONS_DATA_Y], '', '', 'left-', true)), buildModelMap([...POSITIONS_DATA_Y], '', '', 'center-', true)),
64
+ shorthands: { "object": ["objectPosition"] },
65
+ variants: StylesVariants.objectPosition
66
+ };
67
+ export const VisibilityProps = {
68
+ values: ["invisible:hidden", "visible", "collapse"],
69
+ // {
70
+ // ...buildModelMap(VISIBILIY)
71
+ // },
72
+ // shorthands: {"visibility": ["visibility"]},
73
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(buildModelMap(VISIBILIY, ''))), 'visibility')),
74
+ variants: StylesVariants.visibility
75
+ };
76
+ export const IsolationProps = {
77
+ values: ISOLATIONS,
78
+ // {
79
+ // ...buildModelMap(ISOLATIONS)
80
+ // },
81
+ shorthands: { "isolate": ["isolation"] },
82
+ variants: StylesVariants.isolation
83
+ };
84
+ export const ClearProps = {
85
+ values: Object.assign({}, buildModelMap(CLEARS)),
86
+ shorthands: { "clear": ["clear"] },
87
+ variants: StylesVariants.clear
88
+ };
89
+ export const ZindexProps = {
90
+ values: Object.assign({}, buildModelMap(Z_INDEXES, '')),
91
+ shorthands: { "z": ["zIndex"] },
92
+ variants: StylesVariants.zIndex
93
+ };
94
+ export const TopRightBottomLeftProps = {
95
+ values: Object.assign(Object.assign(Object.assign({}, Zero_100_Map_Rem), PercentMap), FullMap),
96
+ shorthands: {
97
+ "top": ["top"],
98
+ "right": ["right"],
99
+ "bottom": ["bottom"],
100
+ "left": ["left"],
101
+ },
102
+ variants: StylesVariants.position
103
+ };
104
+ export const InsetProps = {
105
+ values: Object.assign(Object.assign(Object.assign({}, Zero_100_Map_Rem), PercentMap), FullMap),
106
+ shorthands: {
107
+ "inset": ["inset"]
108
+ },
109
+ variants: StylesVariants.position
110
+ };
111
+ export const ColumnsProps = {
112
+ values: Object.assign({}, buildModelMap([...COLUMNS, ...COLUMNS_MAP], '', '', '')),
113
+ shorthands: { "columns": ["columns"] },
114
+ variants: StylesVariants.gridColumn
115
+ };
116
+ export const ScrollBehaviorProps = {
117
+ values: Object.assign({}, buildModelMap(SCROLL_BEHAVIORS, '')),
118
+ shorthands: { "scrollbehavior": ["scrollBehavior"] },
119
+ variants: []
120
+ };
121
+ export const OverscrollBehaviorProps = {
122
+ values: Object.assign({}, buildModelMap(OVERSCROLL_BEHAVIORS, '')),
123
+ shorthands: { "overscroll": ["overscrollBehavior"] },
124
+ variants: []
125
+ };
126
+ export const LayoutProperties = {
127
+ aspectRatio: {
128
+ values: {
129
+ 'auto': 'auto',
130
+ 'square': '1 / 1',
131
+ 'landscape': '16 / 9',
132
+ 'portait': '9 / 16',
133
+ },
134
+ shorthands: {
135
+ "aspect": ["aspectRatio"]
136
+ },
137
+ variants: []
138
+ },
139
+ display: Object.assign({}, DisplayProps),
140
+ overflow: Object.assign({}, OverflowProps),
141
+ float: Object.assign({}, FloatProps),
142
+ position: Object.assign({}, PositionProps),
143
+ boxSizing: Object.assign({}, BoxSizingProps),
144
+ objectFit: Object.assign({}, ObjectFitProps),
145
+ objectPosition: Object.assign({}, ObjectPositionsProps),
146
+ visibility: Object.assign({}, VisibilityProps),
147
+ isolation: Object.assign({}, IsolationProps),
148
+ clear: Object.assign({}, ClearProps),
149
+ zIndex: Object.assign({}, ZindexProps),
150
+ columns: Object.assign({}, ColumnsProps),
151
+ // scrollBehavior: {...ScrollBehaviorProps},
152
+ oversrollBehavior: Object.assign({}, OverscrollBehaviorProps),
153
+ topRightBottomLeft: Object.assign({}, TopRightBottomLeftProps),
154
+ inset: Object.assign({}, InsetProps)
155
+ };
156
+ export const LayoutProps = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['values']));
157
+ export const LayoutVariants = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['variants']));
158
+ export const LayoutShorthands = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['shorthands'], true));
159
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utilities/layout/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAgC,UAAU,EAAqB,gBAAgB,EAAc,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,C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,cAAc,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,CAAC,CAAU,CAAC;AACvJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAU,CAAC","sourcesContent":["import {FullMap, POSITIONS_DATA, POSITIONS_DATA_Y, StylesVariants } from \"../../commons/constants.js\";\nimport { Five_12_Map, Fourteen_32_Map, PercentMap, ThirtySix_100_Map, Zero_100_Map_Rem, Zero_4_Map, buildModelMap, createMutable, dynamicPick, generateRange, kebabObjectKeys, objectKeys, omitFilter, valueToArray } from \"../../commons/helper.js\";\nimport { CssProperties } from \"../../commons/properties.js\";\n\nconst i = <const>['inherit', 'initial', '[prop:column-width]', '[prop:column-count]'];\nconst s = <const>['inline-start', 'inline-end'];\nexport const DISPLAYS = omitFilter([...CssProperties.display.values, 'flow-root' as const], [...i]);\n\nconst FLOATS = omitFilter([...CssProperties.float.values, ...s], [...i]);\nconst BOX_SIZING = omitFilter([...CssProperties[\"box-sizing\"].values], [...i]);\nconst OBJECT_FITS = omitFilter([...CssProperties[\"object-fit\"].values], [...i]);\nconst OVERFLOWS = omitFilter([...CssProperties.overflow.values], [...i]);\nconst SCROLL_BEHAVIORS = omitFilter([...CssProperties[\"scroll-behavior\"].values], [...i]);\nconst OVERSCROLL_BEHAVIORS = omitFilter([...CssProperties[\"overscroll-behavior\"].values], [...i]);\nconst POSITIONS = omitFilter([...CssProperties.position.values], [...i]);\nconst VISIBILIY = omitFilter([...CssProperties.visibility.values, ...['invisible'] as const], [...i, ...['hidden'] as const]);\nconst OBJECT_POSITIONS = [...POSITIONS_DATA] as const;\nconst ISOLATIONS = omitFilter([...CssProperties.isolation.values], [...i]);\nconst CLEARS = omitFilter([...CssProperties.clear.values], [...i]);\n\n\n\nconst Z_INDEXES = generateRange(0, 50, 10);\nconst COLUMNS = generateRange(0, 12, 1);\nconst COLUMNS_MAP = <const>[\"3xs\",\"2xs\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\",\"2xl\",\"3xl\",\"4xl\",\"5xl\",\"6xl\", \"7xl\",\"8xl\",\"9xl\",\"10xl\"]\n\n\n\nexport const OverflowProps = {\n values: {\n ...buildModelMap(OVERFLOWS, '')\n },\n shorthands: {\"overflow\": [\"overflow\"], \"overflow-x\": [\"overflowX\"], \"overflow-y\": [\"overflowY\"]},\n variants: StylesVariants.overflow\n} as const;\n\nexport const DisplayProps = {\n values: DISPLAYS.slice().map(v=> v=== 'none' ? 'hidden:none' :v),\n // {\n // ...kebabObjectKeys(buildModelMap(DISPLAYS, ''))\n // },\n shorthands: {...valueToArray({...kebabObjectKeys(buildModelMap(DISPLAYS, ''))}, 'display' as const)},\n variants: StylesVariants.display\n // shorthands: {\"display\": [\"display\"]}\n} as const;\nexport const PositionProps = {\n values: POSITIONS,\n // {\n // ...buildModelMap(POSITIONS, '')\n // },\n // shorthands: {\"position\": [\"position\"]}\n shorthands: {...valueToArray({...buildModelMap(POSITIONS, '')}, 'position' as const)},\n variants: StylesVariants.position\n} as const;\nexport const FloatProps = {\n values: {\n ...buildModelMap(FLOATS, '')\n },\n shorthands: {\"float\": [\"float\"]},\n variants: StylesVariants.float\n} as const;\nexport const BoxSizingProps = {\n values: {\n \"border\": \"border-box\",\n \"content\": \"content-box\"\n },\n shorthands: {\"box\": [\"boxSizing\"]},\n variants: StylesVariants.boxSizing\n} as const;\nexport const ObjectFitProps = {\n values: {\n ...buildModelMap(OBJECT_FITS, '', '', '')\n },\n shorthands: {\"object\": [\"objectFit\"]},\n variants: StylesVariants.objectFit\n} as const;\nexport const ObjectPositionsProps = {\n values: {\n ...buildModelMap([...OBJECT_POSITIONS]),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'right-', true),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'left-', true),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'center-', true),\n },\n shorthands: {\"object\": [\"objectPosition\"]},\n variants: StylesVariants.objectPosition\n} as const;\nexport const VisibilityProps = {\n values: [\"invisible:hidden\", \"visible\", \"collapse\"],\n // {\n // ...buildModelMap(VISIBILIY)\n // },\n // shorthands: {\"visibility\": [\"visibility\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(buildModelMap(VISIBILIY, ''))}, 'visibility' as const)},\n variants: StylesVariants.visibility\n} as const;\nexport const IsolationProps = {\n values: ISOLATIONS,\n // {\n // ...buildModelMap(ISOLATIONS)\n // },\n shorthands: {\"isolate\": [\"isolation\"]},\n variants: StylesVariants.isolation\n} as const;\nexport const ClearProps = {\n values: {\n ...buildModelMap(CLEARS)\n },\n shorthands: {\"clear\": [\"clear\"]},\n variants: StylesVariants.clear\n} as const;\nexport const ZindexProps = {\n values: {\n ...buildModelMap(Z_INDEXES, '')\n },\n shorthands: {\"z\": [\"zIndex\"]},\n variants: StylesVariants.zIndex\n} as const;\nexport const TopRightBottomLeftProps = {\n values: {\n ...Zero_100_Map_Rem,\n ...PercentMap,\n ...FullMap,\n },\n shorthands: {\n \"top\": [\"top\"],\n \"right\": [\"right\"],\n \"bottom\": [\"bottom\"],\n \"left\": [\"left\"],\n },\n variants: StylesVariants.position\n} as const;\nexport const InsetProps = {\n values: {\n ...Zero_100_Map_Rem,\n ...PercentMap,\n ...FullMap,\n },\n shorthands: {\n \"inset\": [\"inset\"]\n },\n variants: StylesVariants.position\n} as const;\nexport const ColumnsProps = {\n values: {\n ...buildModelMap([...COLUMNS, ...COLUMNS_MAP], '', '', ''),\n },\n shorthands: {\"columns\": [\"columns\"]},\n variants: StylesVariants.gridColumn\n} as const;\nexport const ScrollBehaviorProps = {\n values: {\n ...buildModelMap(SCROLL_BEHAVIORS, '')\n },\n shorthands: {\"scrollbehavior\": [\"scrollBehavior\"]},\n variants: []\n} as const;\nexport const OverscrollBehaviorProps = {\n values: {\n ...buildModelMap(OVERSCROLL_BEHAVIORS, '')\n },\n shorthands: {\"overscroll\": [\"overscrollBehavior\"]},\n variants: []\n} as const;\n\n\nexport const LayoutProperties = {\n aspectRatio: {\n values: {\n 'auto': 'auto',\n 'square': '1 / 1',\n 'landscape': '16 / 9',\n 'portait': '9 / 16',\n },\n shorthands: {\n \"aspect\": [\"aspectRatio\"]\n },\n variants: []\n },\n display: {...DisplayProps},\n overflow: {...OverflowProps},\n float: {...FloatProps},\n position: {...PositionProps},\n boxSizing: {...BoxSizingProps},\n objectFit: {...ObjectFitProps},\n objectPosition: {...ObjectPositionsProps},\n visibility: {...VisibilityProps},\n isolation: {...IsolationProps},\n clear: {...ClearProps},\n zIndex: {...ZindexProps},\n columns: {...ColumnsProps},\n // scrollBehavior: {...ScrollBehaviorProps},\n oversrollBehavior: {...OverscrollBehaviorProps},\n topRightBottomLeft: {...TopRightBottomLeftProps},\n inset: {...InsetProps}\n} as const;\n\nexport const LayoutProps = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['values'])} as const;\nexport const LayoutVariants = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['variants'])} as const;\nexport const LayoutShorthands = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['shorthands'], true)} as const;"]}
@@ -0,0 +1 @@
1
+ export * from './constants.js';
@@ -0,0 +1,2 @@
1
+ export * from './constants.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './constants.js';"]}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/utilities/layout/types.ts"],"names":[],"mappings":"","sourcesContent":[""]}