@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,401 @@
1
+ import { LightColors } from "../colors/color.js";
2
+ import { StylesVariants } from "../../commons/constants.js";
3
+ import { OpacityMap, Zero_100_Map, createMutable, dynamicPick, kebabObjectKeys, objectKeys, projectKeys, valueToArray } from "../../commons/helper.js";
4
+ export const FONTS_FAMILY = {
5
+ sans: 'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
6
+ serif: 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
7
+ mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
8
+ };
9
+ // export const FONTS_SIZE = {
10
+ // "xs": "0.75rem",
11
+ // "sm": "0.875rem",
12
+ // "md": "1rem",
13
+ // "lg": "1.125rem",
14
+ // "xl": "1.25rem",
15
+ // "2xl": "1.5rem",
16
+ // "3xl": "1.875rem",
17
+ // "4xl": "2.25rem",
18
+ // "5xl": "3rem",
19
+ // "6xl": "3.75rem",
20
+ // "7xl": "4.5rem",
21
+ // "8xl": "6rem",
22
+ // "9xl": "7rem",
23
+ // "10xl": "8rem",
24
+ // } as const;
25
+ export const FONTS_SIZE = {
26
+ "xs": ["0.75rem", "1rem"],
27
+ "sm": ["0.875rem", "1.25rem"],
28
+ "base": ["1rem", "1.5rem"],
29
+ "lg": ["1.125rem", "1.75rem"],
30
+ "xl": ["1.25rem", "1.75rem"],
31
+ "2xl": ["1.5rem", "2rem"],
32
+ "3xl": ["1.875rem", "2.25rem"],
33
+ "4xl": ["2.25rem", "2.5rem"],
34
+ "5xl": ["3rem", "1"],
35
+ "6xl": ["3.75rem", "1"],
36
+ "7xl": ["4.5rem", "1"],
37
+ "8xl": ["6rem", "1"],
38
+ "9xl": ["7rem", "1"],
39
+ "10xl": ["8rem", "1"],
40
+ };
41
+ // export const FONTS_SIZE_LINE_HEIGHT = {
42
+ // "xs": "1rem",
43
+ // "sm": "1.25rem",
44
+ // "md": "1.5rem",
45
+ // "lg": "1.75rem",
46
+ // "xl": "1.75rem",
47
+ // "2xl": "2rem",
48
+ // "3xl": "2.25rem",
49
+ // "4xl": "2.5rem",
50
+ // "5xl": "1",
51
+ // "6xl": "1",
52
+ // "7xl": "1",
53
+ // "8xl": "1",
54
+ // "9xl": "1",
55
+ // "10xl": "1",
56
+ // } as const;
57
+ export const FONTS_SMOOTHING = {
58
+ "antialiased": ["antialiased", "grayscale"],
59
+ "subpixel-antialiased": ["auto", "auto"]
60
+ };
61
+ // type tt = ProjectKeys<typeof FONTS_SMOOTHING, "-webkitFontSmoothing", "-mozOsxFontSmoothing">
62
+ export const FONTS_STYLE = {
63
+ "italic": "italic",
64
+ "not-italic": "normal"
65
+ };
66
+ export const FONTS_WEIGHT = {
67
+ "thin": "100",
68
+ "extralight": "200",
69
+ "light": "300",
70
+ "normal": "400",
71
+ "medium": "500",
72
+ "semibold": "600",
73
+ "bold": "700",
74
+ "extrabold": "800",
75
+ "dark": "900",
76
+ };
77
+ export const LETTER_SPACING = {
78
+ "xs": " -0.05em",
79
+ "sm": "-0.025em",
80
+ "md": "0",
81
+ "lg": "0.025em",
82
+ "xl": "0.05em",
83
+ "2xl": "0.1em",
84
+ };
85
+ export const LINE_HEIGHT = {
86
+ "1": ".75rem",
87
+ "2": "1rem",
88
+ "3": "1.25rem",
89
+ "4": "1.5rem",
90
+ "5": "1.75rem",
91
+ "6": "2rem",
92
+ "7": "2.25rem",
93
+ "8": "2.5rem",
94
+ "none": "1",
95
+ "xs": "1.25",
96
+ "sm": "1.375",
97
+ "md": "1.5",
98
+ "lg": "1.625",
99
+ "xl": "2",
100
+ };
101
+ export const LINE_CLAMPS = {
102
+ "1": ["hidden", "-webkit-box", "vertical", "1"],
103
+ "2": ["hidden", "-webkit-box", "vertical", "2"],
104
+ "3": ["hidden", "-webkit-box", "vertical", "3"],
105
+ "4": ["hidden", "-webkit-box", "vertical", "4"],
106
+ "5": ["hidden", "-webkit-box", "vertical", "5"],
107
+ "6": ["hidden", "-webkit-box", "vertical", "6"],
108
+ "none": ["visible", "block", "horizontal", "none"],
109
+ };
110
+ export const LIST_IMAGE = {
111
+ "none": "none"
112
+ };
113
+ export const LIST_POSITION = {
114
+ "inside": "inside",
115
+ "outside": "outside"
116
+ };
117
+ export const LIST_TYPE = {
118
+ "none": "none",
119
+ "disc": "disc",
120
+ "decimal": "decimal",
121
+ };
122
+ export const TEXT_ALIGN = {
123
+ "left": "left",
124
+ "center": "center",
125
+ "right": "right",
126
+ "justify": "justify",
127
+ "start": "start",
128
+ "end": "end"
129
+ };
130
+ export const TEXT_OVERFLOWS = {
131
+ "truncate": ["ellipsis", "hidden", "nowrap"],
132
+ "ellipsis": ["ellipsis"],
133
+ "clip": ["clip"],
134
+ };
135
+ export const TEXT_DECORATION = {
136
+ "underline": "underline",
137
+ "overlive": "overline",
138
+ "line-through": "line-through",
139
+ "no-underline": "none"
140
+ };
141
+ export const TEXT_DECORATION_STYLE = {
142
+ "solid": "solid",
143
+ "double": "double",
144
+ "dotted": "dotted",
145
+ "dashed": "dashed",
146
+ "wavy": "wavy"
147
+ };
148
+ export const TEXT_DECORATION_THICKNESS = {
149
+ "auto": "auto",
150
+ "from-font": "from-font",
151
+ "0": "0",
152
+ "1": "1px",
153
+ "2": "2px",
154
+ "4": "4px",
155
+ "8": "8px"
156
+ };
157
+ export const TEXT_UNDERLINE_OFFSET = {
158
+ "auto": "auto",
159
+ "0": "0",
160
+ "1": "1px",
161
+ "2": "2px",
162
+ "4": "4px",
163
+ "8": "8px"
164
+ };
165
+ export const TEXT_TRANSFORM = {
166
+ "uppercase": "uppercase",
167
+ "lowercase": "lowercase",
168
+ "capitalize": "capitalize",
169
+ "none": "none"
170
+ };
171
+ export const TEXT_WRAP = {
172
+ "wrap": "wrap",
173
+ "nowrap": "nowrap",
174
+ "balance": "balance",
175
+ "pretty": "pretty"
176
+ };
177
+ export const TEXT_INDENT = Object.assign({}, Zero_100_Map);
178
+ export const VERTICAL_ALIGN = {
179
+ "baseline": "baseline",
180
+ "top": "top",
181
+ "middle": "middle",
182
+ "bottom": "bottom",
183
+ "text-top": "text-top",
184
+ "text-bottom": "text-bottom",
185
+ "sub": "sub",
186
+ "super": "super"
187
+ };
188
+ export const WHITE_SPACE = {
189
+ "wrap": "wrap",
190
+ "nowrap": "nowrap",
191
+ "pre": "pre",
192
+ "pre-line": "pre-line",
193
+ "pre-wrap": "pre-wrap",
194
+ "break-spaces": "break-spaces"
195
+ };
196
+ export const HYPHENS = {
197
+ "none": "none",
198
+ "manual": "manual",
199
+ "auto": "auto"
200
+ };
201
+ // console.log('fs', projectKeys(FONTS_SIZE, "fontSize", "lineHeight"))
202
+ const textOverflowData = projectKeys(TEXT_OVERFLOWS, "textOverflow", "overflow", "whiteSpace");
203
+ export const TypographyProperties = {
204
+ fontFamily: {
205
+ values: Object.assign({}, FONTS_FAMILY),
206
+ shorthands: { "font": ["fontFamily"] },
207
+ variants: StylesVariants.fontFamily
208
+ },
209
+ fontSize: {
210
+ values: projectKeys(FONTS_SIZE, "fontSize", "lineHeight"),
211
+ shorthands: { "text": ["fontSize"] },
212
+ variants: StylesVariants.fontSize
213
+ },
214
+ fontSmoothing: {
215
+ values: projectKeys(FONTS_SMOOTHING, "-webkitFontSmoothing", "-mozOsxFontSmoothing"),
216
+ // shorthands: {"font-smoothing": ["fontSmoothing"]},
217
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(FONTS_SMOOTHING)), 'fontSmoothing')),
218
+ variants: StylesVariants.fontSmoothing
219
+ },
220
+ fontStyle: {
221
+ values: ["italic", "not-italic:normal"],
222
+ // {...FONTS_STYLE},
223
+ // shorthands: {"fst": ["fontStyle"]},
224
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(FONTS_STYLE)), 'font')),
225
+ variants: StylesVariants.fontStyle
226
+ },
227
+ fontWeight: {
228
+ values: Object.assign({}, FONTS_WEIGHT),
229
+ shorthands: { "font": ["fontWeight"] },
230
+ variants: StylesVariants.fontWeight
231
+ },
232
+ letterSpacing: {
233
+ values: Object.assign({}, LETTER_SPACING),
234
+ shorthands: { "letter": ["letterSpacing"] },
235
+ variants: StylesVariants.letterSpacing
236
+ },
237
+ lineHeight: {
238
+ values: Object.assign({}, LINE_HEIGHT),
239
+ shorthands: { "line": ["lineHeight"] },
240
+ variants: StylesVariants.lineHeight
241
+ },
242
+ lineClamp: {
243
+ values: projectKeys(LINE_CLAMPS, "overflow", "display", "-webkitBoxOrient", "-webkitLineclamp"),
244
+ shorthands: { "line-clamp": ["-webkitLineclamp"] },
245
+ variants: []
246
+ },
247
+ listStylePostion: {
248
+ values: Object.assign({}, LIST_POSITION),
249
+ shorthands: { "list": ["listStylePosition"] },
250
+ // shorthands: {
251
+ // // ...wrapValues(prefixObjectKeys(LIST_POSITION, 'list', false, false), ['listStylePosition'])
252
+ // ...prefixObjectKeys(valueToArray({...LIST_POSITION}, 'listStylePosition' as const), 'list', false, false),
253
+ // },
254
+ variants: StylesVariants.listStylePosition
255
+ },
256
+ listStyleType: {
257
+ values: Object.assign({}, LIST_TYPE),
258
+ shorthands: { "list": ["listStyleType"] },
259
+ // shorthands: {
260
+ // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])
261
+ // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),
262
+ // },
263
+ variants: StylesVariants.listStyleType
264
+ },
265
+ listImage: {
266
+ values: { "none": "none" },
267
+ shorthands: { "list-image": ["listStyleImage"] },
268
+ // shorthands: {
269
+ // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])
270
+ // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),
271
+ // },
272
+ variants: StylesVariants.listStyleType
273
+ },
274
+ textAlign: {
275
+ values: Object.assign({}, TEXT_ALIGN),
276
+ shorthands: { "text": ["textAlign"] },
277
+ // shorthands: {
278
+ // // ...wrapValues(prefixObjectKeys(TEXT_ALIGN, 'text', false, false), ['textAlign'])
279
+ // ...prefixObjectKeys(valueToArray({...TEXT_ALIGN}, 'textAlign' as const), 'text', false, false),
280
+ // },
281
+ variants: StylesVariants.textAlign
282
+ },
283
+ textOverflow: {
284
+ values: Object.assign({}, textOverflowData),
285
+ shorthands: { "text": ["textOverflow"] },
286
+ // shorthands: {
287
+ // // ...prefixObjectKeys(textOverflowData, 'text', false, false)
288
+ // ...prefixObjectKeys(valueToArray({...textOverflowData}, 'textOverflow' as const), 'text', false, false),
289
+ // },
290
+ variants: StylesVariants.textOverflow
291
+ },
292
+ color: {
293
+ values: Object.assign({}, LightColors),
294
+ shorthands: { "text": ["color"] },
295
+ variants: StylesVariants.textColor
296
+ },
297
+ textDecorationColor: {
298
+ values: Object.assign({}, LightColors),
299
+ shorthands: { "text-decoration": ["textDecorationColor"] },
300
+ variants: StylesVariants.textDecoration
301
+ },
302
+ textDecoration: {
303
+ values: ["underline", "overline", "line-through", "no-underline:none"],
304
+ // {...TEXT_DECORATION},
305
+ shorthands: Object.assign({}, valueToArray(Object.assign({}, TEXT_DECORATION), 'textDecoration')
306
+ // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])
307
+ // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION}, 'textDecoration' as const), '', false, false),
308
+ ),
309
+ variants: []
310
+ },
311
+ textDecorationStyle: {
312
+ values: Object.assign({}, TEXT_DECORATION_STYLE),
313
+ shorthands: { "text-decoration": ["textDecorationStyle"] },
314
+ // shorthands: {
315
+ // // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])
316
+ // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION_STYLE}, 'textDecorationStyle' as const), 'text', false, false),
317
+ // },
318
+ variants: []
319
+ },
320
+ textDecorationThickness: {
321
+ values: Object.assign({}, TEXT_DECORATION_THICKNESS),
322
+ shorthands: { "text-decoration": ["textDecorationThickness"] },
323
+ variants: []
324
+ },
325
+ textUnderlineOffset: {
326
+ values: Object.assign({}, TEXT_UNDERLINE_OFFSET),
327
+ shorthands: { "underline-offset": ["textUnderlineOffset"] },
328
+ variants: []
329
+ },
330
+ textTransform: {
331
+ values: Object.assign({}, TEXT_TRANSFORM),
332
+ // shorthands: {"text-trf": ["textTransform"]},
333
+ // shorthands: {...wrapValues(prefixObjectKeys(TEXT_TRANSFORM, 'text', false, false), ['textTransform'])},
334
+ shorthands: {
335
+ text: ["textTransform"]
336
+ // ...prefixObjectKeys(valueToArray({...TEXT_TRANSFORM}, 'textTransform' as const), 'text', false, false),
337
+ },
338
+ variants: StylesVariants.textTransform
339
+ },
340
+ textWrap: {
341
+ values: Object.assign({}, TEXT_WRAP),
342
+ shorthands: { "text": ["textWrap"] },
343
+ // shorthands: {...wrapValues(prefixObjectKeys(TEXT_WRAP, 'text', false, false), ['textWrap'])},
344
+ variants: []
345
+ },
346
+ textIndent: {
347
+ values: Object.assign({}, TEXT_INDENT),
348
+ shorthands: { "indent": ["textIndent"] },
349
+ variants: []
350
+ },
351
+ vericalAlign: {
352
+ values: Object.assign({}, VERTICAL_ALIGN),
353
+ shorthands: { "align": ["verticalAlign"] },
354
+ variants: StylesVariants.verticalAlign
355
+ },
356
+ whiteSpace: {
357
+ values: Object.assign({}, WHITE_SPACE),
358
+ shorthands: { "whitespace": ["whiteSpace"] },
359
+ variants: StylesVariants.whitespace
360
+ },
361
+ hyphens: {
362
+ values: Object.assign({}, HYPHENS),
363
+ shorthands: { "hyphens": ["hyphens"] },
364
+ variants: []
365
+ },
366
+ wordbreak: {
367
+ values: {
368
+ normal: { overflowWrap: "normal", wordBreak: "normal" },
369
+ words: { overflowWrap: "break-word" },
370
+ all: { overflowWrap: "break-all" },
371
+ keep: { overflowWrap: "keep-all" },
372
+ },
373
+ shorthands: {
374
+ "break": ["overflowWrap"]
375
+ },
376
+ variants: StylesVariants.wordBreak
377
+ },
378
+ content: {
379
+ values: {
380
+ none: "none"
381
+ },
382
+ shorthands: {
383
+ "content": ["content"]
384
+ },
385
+ variants: []
386
+ },
387
+ placeholderColor: {
388
+ values: Object.assign({}, LightColors),
389
+ shorthands: { "placeholder": ["placeholderColor"] },
390
+ variants: StylesVariants.placeholderOpacity
391
+ },
392
+ placeholderOpacity: {
393
+ values: Object.assign({}, OpacityMap),
394
+ shorthands: { "placeholder-opacity": ["placeholderOpacity"] },
395
+ variants: StylesVariants.placeholderOpacity
396
+ },
397
+ };
398
+ export const TypographyProps = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["values"]));
399
+ export const TypographyVariants = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["variants"]));
400
+ export const TypographyShorthands = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["shorthands"]));
401
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utilities/typography/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAG,eAAe,EAAE,UAAU,EAAoB,WAAW,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAGzK,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,oHAAoH;IAC1H,KAAK,EAAE,6DAA6D;IACpE,IAAI,EAAE,oGAAoG;CACpG,CAAC;AAEX,8BAA8B;AAC9B,uBAAuB;AACvB,wBAAwB;AACxB,oBAAoB;AACpB,wBAAwB;AACxB,uBAAuB;AACvB,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,qBAAqB;AACrB,wBAAwB;AACxB,uBAAuB;AACvB,qBAAqB;AACrB,qBAAqB;AACrB,sBAAsB;AACtB,cAAc;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ACD,QAAQ,EAAE,cAAc,CAAC,SAAS;KACrC;IACD,OAAO,EAAE;QACL,MAAM,EAAE;YACJ,IAAI,EAAE,MAAM;SACf;QACD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC,SAAS,CAAC;SACzB;QACD,QAAQ,EAAE,EAAE;KACf;IACD,gBAAgB,EAAE;QACd,MAAM,oBAAM,WAAW,CAAC;QACxB,UAAU,EAAE,EAAC,aAAa,EAAE,CAAC,kBAAkB,CAAC,EAAC;QACjD,QAAQ,EAAE,cAAc,CAAC,kBAAkB;KAC9C;IACD,kBAAkB,EAAE;QAChB,MAAM,oBAAM,UAAU,CAAC;QACvB,UAAU,EAAE,EAAC,qBAAqB,EAAE,CAAC,oBAAoB,CAAC,EAAC;QAC3D,QAAQ,EAAE,cAAc,CAAC,kBAAkB;KAC9C;CACK,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAU,CAAC;AAC9J,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,CAAC,CAAU,CAAC;AACnK,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,CAAC,CAAU,CAAC","sourcesContent":["import { LightColors } from \"../colors/color.js\";\nimport { StylesVariants } from \"../../commons/constants.js\";\nimport { OpacityMap, Zero_100_Map, createMutable, dynamicPick , kebabObjectKeys, objectKeys, prefixObjectKeys, projectKeys, valueToArray} from \"../../commons/helper.js\";\nimport { ProjectKeys } from \"../../commons/types.js\";\n\nexport const FONTS_FAMILY = {\n sans: 'ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n serif: 'ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif',\n mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace'\n} as const;\n\n// export const FONTS_SIZE = {\n// \"xs\": \"0.75rem\",\n// \"sm\": \"0.875rem\",\n// \"md\": \"1rem\",\n// \"lg\": \"1.125rem\",\n// \"xl\": \"1.25rem\",\n// \"2xl\": \"1.5rem\",\n// \"3xl\": \"1.875rem\",\n// \"4xl\": \"2.25rem\",\n// \"5xl\": \"3rem\",\n// \"6xl\": \"3.75rem\",\n// \"7xl\": \"4.5rem\",\n// \"8xl\": \"6rem\",\n// \"9xl\": \"7rem\",\n// \"10xl\": \"8rem\",\n// } as const;\nexport const FONTS_SIZE = {\n \"xs\": [\"0.75rem\", \"1rem\"],\n \"sm\": [\"0.875rem\", \"1.25rem\"],\n \"base\": [\"1rem\", \"1.5rem\"],\n \"lg\": [\"1.125rem\", \"1.75rem\"],\n \"xl\": [\"1.25rem\", \"1.75rem\"],\n \"2xl\": [\"1.5rem\", \"2rem\"],\n \"3xl\": [\"1.875rem\", \"2.25rem\"],\n \"4xl\": [\"2.25rem\", \"2.5rem\"],\n \"5xl\": [\"3rem\", \"1\"],\n \"6xl\": [\"3.75rem\", \"1\"],\n \"7xl\": [\"4.5rem\", \"1\"],\n \"8xl\": [\"6rem\", \"1\"],\n \"9xl\": [\"7rem\", \"1\"],\n \"10xl\": [\"8rem\", \"1\"],\n} as const;\n// export const FONTS_SIZE_LINE_HEIGHT = {\n// \"xs\": \"1rem\",\n// \"sm\": \"1.25rem\",\n// \"md\": \"1.5rem\",\n// \"lg\": \"1.75rem\",\n// \"xl\": \"1.75rem\",\n// \"2xl\": \"2rem\",\n// \"3xl\": \"2.25rem\",\n// \"4xl\": \"2.5rem\",\n// \"5xl\": \"1\",\n// \"6xl\": \"1\",\n// \"7xl\": \"1\",\n// \"8xl\": \"1\",\n// \"9xl\": \"1\",\n// \"10xl\": \"1\",\n// } as const;\n\n\nexport const FONTS_SMOOTHING = {\n \"antialiased\": [\"antialiased\", \"grayscale\"],\n \"subpixel-antialiased\": [\"auto\", \"auto\"]\n} as const;\n// type tt = ProjectKeys<typeof FONTS_SMOOTHING, \"-webkitFontSmoothing\", \"-mozOsxFontSmoothing\">\n\n\n\n\nexport const FONTS_STYLE = {\n \"italic\": \"italic\",\n \"not-italic\": \"normal\"\n} as const;\n\nexport const FONTS_WEIGHT = {\n \"thin\": \"100\",\n \"extralight\": \"200\",\n \"light\": \"300\",\n \"normal\": \"400\",\n \"medium\": \"500\",\n \"semibold\": \"600\",\n \"bold\": \"700\",\n \"extrabold\": \"800\",\n \"dark\": \"900\",\n} as const;\n\nexport const LETTER_SPACING = {\n \"xs\": \" -0.05em\",\n \"sm\": \"-0.025em\",\n \"md\": \"0\",\n \"lg\": \"0.025em\",\n \"xl\": \"0.05em\",\n \"2xl\": \"0.1em\",\n} as const;\n\nexport const LINE_HEIGHT = {\n \"1\": \".75rem\",\n \"2\": \"1rem\",\n \"3\": \"1.25rem\",\n \"4\": \"1.5rem\",\n \"5\": \"1.75rem\",\n \"6\": \"2rem\",\n \"7\": \"2.25rem\",\n \"8\": \"2.5rem\",\n \"none\": \"1\",\n \"xs\": \"1.25\",\n \"sm\": \"1.375\",\n \"md\": \"1.5\",\n \"lg\": \"1.625\",\n \"xl\": \"2\",\n} as const;\n\nexport const LINE_CLAMPS = {\n \"1\": [\"hidden\", \"-webkit-box\", \"vertical\", \"1\"],\n \"2\": [\"hidden\", \"-webkit-box\", \"vertical\", \"2\"],\n \"3\": [\"hidden\", \"-webkit-box\", \"vertical\", \"3\"],\n \"4\": [\"hidden\", \"-webkit-box\", \"vertical\", \"4\"],\n \"5\": [\"hidden\", \"-webkit-box\", \"vertical\", \"5\"],\n \"6\": [\"hidden\", \"-webkit-box\", \"vertical\", \"6\"],\n \"none\": [\"visible\", \"block\", \"horizontal\", \"none\"],\n} as const;\nexport const LIST_IMAGE = {\n \"none\": \"none\"\n} as const;\n\nexport const LIST_POSITION = {\n \"inside\": \"inside\",\n \"outside\": \"outside\"\n} as const;\nexport const LIST_TYPE = {\n \"none\": \"none\",\n \"disc\": \"disc\",\n \"decimal\": \"decimal\",\n} as const;\n\n\nexport const TEXT_ALIGN = {\n \"left\": \"left\",\n \"center\": \"center\",\n \"right\": \"right\",\n \"justify\": \"justify\",\n \"start\": \"start\",\n \"end\": \"end\"\n} as const;\nexport const TEXT_OVERFLOWS = {\n \"truncate\": [\"ellipsis\", \"hidden\", \"nowrap\"],\n \"ellipsis\": [\"ellipsis\"],\n \"clip\": [\"clip\"],\n} as const;\n\nexport const TEXT_DECORATION = {\n \"underline\": \"underline\",\n \"overlive\": \"overline\",\n \"line-through\": \"line-through\",\n \"no-underline\": \"none\"\n} as const;\nexport const TEXT_DECORATION_STYLE = {\n \"solid\": \"solid\",\n \"double\": \"double\",\n \"dotted\": \"dotted\",\n \"dashed\": \"dashed\",\n \"wavy\": \"wavy\"\n} as const;\n\nexport const TEXT_DECORATION_THICKNESS = {\n \"auto\": \"auto\",\n \"from-font\": \"from-font\",\n \"0\": \"0\",\n \"1\": \"1px\",\n \"2\": \"2px\",\n \"4\": \"4px\",\n \"8\": \"8px\"\n} as const;\nexport const TEXT_UNDERLINE_OFFSET = {\n \"auto\": \"auto\",\n \"0\": \"0\",\n \"1\": \"1px\",\n \"2\": \"2px\",\n \"4\": \"4px\",\n \"8\": \"8px\"\n} as const;\n\nexport const TEXT_TRANSFORM = {\n \"uppercase\": \"uppercase\",\n \"lowercase\": \"lowercase\",\n \"capitalize\": \"capitalize\",\n \"none\": \"none\"\n} as const;\n\nexport const TEXT_WRAP = {\n \"wrap\": \"wrap\",\n \"nowrap\": \"nowrap\",\n \"balance\": \"balance\",\n \"pretty\": \"pretty\"\n} as const\n\n\nexport const TEXT_INDENT = {...Zero_100_Map} as const;\n\nexport const VERTICAL_ALIGN = {\n \"baseline\": \"baseline\",\n \"top\": \"top\",\n \"middle\": \"middle\",\n \"bottom\": \"bottom\",\n \"text-top\": \"text-top\",\n \"text-bottom\": \"text-bottom\",\n \"sub\": \"sub\",\n \"super\": \"super\"\n} as const;\n\nexport const WHITE_SPACE = {\n \"wrap\": \"wrap\",\n \"nowrap\": \"nowrap\",\n \"pre\": \"pre\",\n \"pre-line\": \"pre-line\",\n \"pre-wrap\": \"pre-wrap\",\n \"break-spaces\": \"break-spaces\"\n} as const;\n\nexport const HYPHENS = {\n \"none\": \"none\",\n \"manual\": \"manual\",\n \"auto\": \"auto\"\n} as const;\n\n// console.log('fs', projectKeys(FONTS_SIZE, \"fontSize\", \"lineHeight\"))\nconst textOverflowData = projectKeys(TEXT_OVERFLOWS, \"textOverflow\", \"overflow\", \"whiteSpace\");\nexport const TypographyProperties = {\n fontFamily: {\n values: {...FONTS_FAMILY},\n shorthands: {\"font\": [\"fontFamily\"]},\n variants: StylesVariants.fontFamily\n },\n fontSize: {\n values: projectKeys(FONTS_SIZE, \"fontSize\", \"lineHeight\"),\n shorthands: {\"text\": [\"fontSize\"]},\n variants: StylesVariants.fontSize\n },\n fontSmoothing: {\n values: projectKeys(FONTS_SMOOTHING, \"-webkitFontSmoothing\", \"-mozOsxFontSmoothing\"),\n // shorthands: {\"font-smoothing\": [\"fontSmoothing\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(FONTS_SMOOTHING)}, 'fontSmoothing' as const)},\n variants: StylesVariants.fontSmoothing\n },\n fontStyle: {\n values: [\"italic\", \"not-italic:normal\"],\n // {...FONTS_STYLE},\n // shorthands: {\"fst\": [\"fontStyle\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(FONTS_STYLE)}, 'font' as const)},\n variants: StylesVariants.fontStyle\n },\n fontWeight: {\n values: {...FONTS_WEIGHT},\n shorthands: {\"font\": [\"fontWeight\"]},\n variants: StylesVariants.fontWeight\n },\n letterSpacing: {\n values: {...LETTER_SPACING},\n shorthands: {\"letter\": [\"letterSpacing\"]},\n variants: StylesVariants.letterSpacing\n },\n lineHeight: {\n values: {...LINE_HEIGHT},\n shorthands: {\"line\": [\"lineHeight\"]},\n variants: StylesVariants.lineHeight\n },\n lineClamp: {\n values: projectKeys(LINE_CLAMPS, \"overflow\", \"display\", \"-webkitBoxOrient\", \"-webkitLineclamp\"),\n shorthands: {\"line-clamp\": [\"-webkitLineclamp\"]},\n variants: []\n },\n listStylePostion: {\n values: {...LIST_POSITION},\n shorthands: {\"list\": [\"listStylePosition\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_POSITION, 'list', false, false), ['listStylePosition'])\n // ...prefixObjectKeys(valueToArray({...LIST_POSITION}, 'listStylePosition' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStylePosition\n },\n listStyleType: {\n values: {...LIST_TYPE},\n shorthands: {\"list\": [\"listStyleType\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])\n // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStyleType\n },\n listImage: {\n values: {\"none\": \"none\"},\n shorthands: {\"list-image\": [\"listStyleImage\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])\n // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStyleType\n },\n textAlign: {\n values: {...TEXT_ALIGN},\n shorthands: {\"text\": [\"textAlign\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(TEXT_ALIGN, 'text', false, false), ['textAlign'])\n // ...prefixObjectKeys(valueToArray({...TEXT_ALIGN}, 'textAlign' as const), 'text', false, false),\n // },\n variants: StylesVariants.textAlign\n },\n textOverflow: {\n values: {...textOverflowData},\n shorthands: {\"text\": [\"textOverflow\"]},\n // shorthands: {\n // // ...prefixObjectKeys(textOverflowData, 'text', false, false)\n // ...prefixObjectKeys(valueToArray({...textOverflowData}, 'textOverflow' as const), 'text', false, false),\n // },\n variants: StylesVariants.textOverflow\n },\n color: {\n values: {...LightColors},\n shorthands: {\"text\": [\"color\"]},\n variants: StylesVariants.textColor\n },\n textDecorationColor: {\n values: {...LightColors},\n shorthands: {\"text-decoration\": [\"textDecorationColor\"]},\n variants: StylesVariants.textDecoration\n },\n textDecoration: {\n values: [\"underline\", \"overline\", \"line-through\", \"no-underline:none\"],\n // {...TEXT_DECORATION},\n shorthands: {\n ...valueToArray({...TEXT_DECORATION}, 'textDecoration' as const)\n // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])\n // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION}, 'textDecoration' as const), '', false, false),\n },\n variants: []\n },\n textDecorationStyle: {\n values: {...TEXT_DECORATION_STYLE},\n shorthands: {\"text-decoration\": [\"textDecorationStyle\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])\n // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION_STYLE}, 'textDecorationStyle' as const), 'text', false, false),\n // },\n variants: []\n },\n textDecorationThickness: {\n values: {...TEXT_DECORATION_THICKNESS},\n shorthands: {\"text-decoration\": [\"textDecorationThickness\"]},\n variants: []\n },\n textUnderlineOffset: {\n values: {...TEXT_UNDERLINE_OFFSET},\n shorthands: {\"underline-offset\": [\"textUnderlineOffset\"]},\n variants: []\n },\n textTransform: {\n values: {...TEXT_TRANSFORM},\n // shorthands: {\"text-trf\": [\"textTransform\"]},\n // shorthands: {...wrapValues(prefixObjectKeys(TEXT_TRANSFORM, 'text', false, false), ['textTransform'])},\n shorthands: {\n text: [\"textTransform\"]\n // ...prefixObjectKeys(valueToArray({...TEXT_TRANSFORM}, 'textTransform' as const), 'text', false, false),\n },\n variants: StylesVariants.textTransform\n },\n textWrap: {\n values: {...TEXT_WRAP},\n shorthands: {\"text\": [\"textWrap\"]},\n // shorthands: {...wrapValues(prefixObjectKeys(TEXT_WRAP, 'text', false, false), ['textWrap'])},\n variants: []\n },\n textIndent: {\n values: {...TEXT_INDENT},\n shorthands: {\"indent\": [\"textIndent\"]},\n variants: []\n },\n vericalAlign: {\n values: {...VERTICAL_ALIGN},\n shorthands: {\"align\": [\"verticalAlign\"]},\n variants: StylesVariants.verticalAlign\n },\n whiteSpace: {\n values: {...WHITE_SPACE},\n shorthands: {\"whitespace\": [\"whiteSpace\"]},\n variants: StylesVariants.whitespace\n },\n hyphens: {\n values: {...HYPHENS},\n shorthands: {\"hyphens\": [\"hyphens\"]},\n variants: []\n },\n wordbreak: {\n values: {\n normal: {overflowWrap: \"normal\", wordBreak: \"normal\"},\n words: {overflowWrap: \"break-word\"},\n all: {overflowWrap: \"break-all\"},\n keep: {overflowWrap: \"keep-all\"},\n },\n shorthands: {\n \"break\": [\"overflowWrap\"]\n },\n variants: StylesVariants.wordBreak\n },\n content: {\n values: {\n none: \"none\"\n },\n shorthands: {\n \"content\": [\"content\"]\n },\n variants: []\n },\n placeholderColor: {\n values: {...LightColors},\n shorthands: {\"placeholder\": [\"placeholderColor\"]},\n variants: StylesVariants.placeholderOpacity\n },\n placeholderOpacity: {\n values: {...OpacityMap},\n shorthands: {\"placeholder-opacity\": [\"placeholderOpacity\"]},\n variants: StylesVariants.placeholderOpacity\n },\n} as const;\n\nexport const TypographyProps = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"values\"])} as const;\nexport const TypographyVariants = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"variants\"])} as const;\nexport const TypographyShorthands = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"shorthands\"])} as const;\n"]}
@@ -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/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./constants.js\";"]}
@@ -0,0 +1,18 @@
1
+ export declare function detectImportType(content: string, path: string): 'require' | 'import';
2
+ export declare function detectModuleType(path: string): Promise<"module" | "commonjs">;
3
+ export declare function loadTypeScriptFile(content: string, filename: string): Promise<any>;
4
+ export declare function filePathToUrl(path: string): string;
5
+ export declare function findPackageJson(path: string): {
6
+ path: string;
7
+ content: any;
8
+ } | null;
9
+ export declare function importWithFallbacks(path: string, logger?: any): Promise<{
10
+ value: any;
11
+ path: string;
12
+ } | null>;
13
+ export declare function normalizeFilePath(path: string): string;
14
+ export declare const getAbsPath: (relativeFilePath: string, directory?: string) => string | null;
15
+ export declare const getRelativePath: (dir1: string, dir2?: string) => string | null;
16
+ export declare const getFilePath: (filename: string) => string;
17
+ export declare const matchLiteralString: (content: string) => string[];
18
+ export declare const matchLiteralStringA: (content: string) => string[];