@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,102 @@
1
+ export declare const SelectStyles: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ };
6
+ px: string;
7
+ py: string;
8
+ position: string;
9
+ bg: {
10
+ light: string;
11
+ dark: string;
12
+ };
13
+ menu: {
14
+ px: string;
15
+ py: string;
16
+ bg: {
17
+ light: string;
18
+ dark: string;
19
+ };
20
+ border: {
21
+ width: string;
22
+ color: {
23
+ light: string;
24
+ dark: string;
25
+ };
26
+ radius: string;
27
+ };
28
+ width: string;
29
+ minWidth: string;
30
+ minHeight: string;
31
+ maxHeight: string;
32
+ };
33
+ item: {
34
+ px: string;
35
+ py: string;
36
+ hover: {
37
+ bg: {
38
+ light: string;
39
+ dark: string;
40
+ };
41
+ };
42
+ selected: {
43
+ color: {
44
+ light: string;
45
+ dark: string;
46
+ };
47
+ };
48
+ border: {
49
+ width: string;
50
+ color: {
51
+ light: string;
52
+ dark: string;
53
+ };
54
+ radius: string;
55
+ };
56
+ };
57
+ divider: {
58
+ width: string;
59
+ color: {
60
+ light: string;
61
+ dark: string;
62
+ };
63
+ };
64
+ border: {
65
+ width: string;
66
+ color: {
67
+ light: string;
68
+ dark: string;
69
+ };
70
+ radius: string;
71
+ };
72
+ color: {
73
+ light: string;
74
+ dark: string;
75
+ };
76
+ header: {
77
+ px: string;
78
+ py: string;
79
+ title: {
80
+ font: {
81
+ size: string;
82
+ weight: string;
83
+ };
84
+ };
85
+ height: string;
86
+ };
87
+ body: {
88
+ px: string;
89
+ py: string;
90
+ };
91
+ footer: {
92
+ px: string;
93
+ py: string;
94
+ height: string;
95
+ };
96
+ backdrop: {
97
+ bg: {
98
+ light: string;
99
+ dark: string;
100
+ };
101
+ };
102
+ };
@@ -0,0 +1,105 @@
1
+ export const SelectStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ px: `theme(${'padding.3'})`,
8
+ py: `theme(${'padding.1'})`,
9
+ position: 'fixed',
10
+ bg: {
11
+ light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,
12
+ dark: `theme(${'backgroundColor.basic.soft.dark'})`,
13
+ },
14
+ menu: {
15
+ px: `theme(${'padding.1'})`,
16
+ py: `theme(${'padding.1'})`,
17
+ bg: {
18
+ light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,
19
+ dark: `theme(${'backgroundColor.basic.soft.dark'})`,
20
+ },
21
+ border: {
22
+ width: `theme(${'borderWidth.DEFAULT'})`,
23
+ color: {
24
+ light: `theme(${'backgroundColor.basic.border.soft.DEFAULT'})`,
25
+ dark: `theme(${'backgroundColor.basic.border.soft.dark'})`
26
+ },
27
+ radius: `theme(${'borderRadius.md'})`,
28
+ },
29
+ width: 'auto',
30
+ minWidth: '11rem',
31
+ minHeight: '20px',
32
+ maxHeight: '300px',
33
+ },
34
+ item: {
35
+ px: `theme(${'padding.3'})`,
36
+ py: `theme(${'padding.1'})`,
37
+ hover: {
38
+ bg: {
39
+ light: `theme(${'backgroundColor.basic.DEFAULT'})`,
40
+ dark: `theme(${'backgroundColor.basic.dark'})`,
41
+ },
42
+ },
43
+ selected: {
44
+ color: {
45
+ light: `theme(${'color.basic.text.DEFAULT'})`,
46
+ dark: `theme(${'color.basic.text.dark'})`,
47
+ },
48
+ },
49
+ border: {
50
+ width: `theme(${'borderWidth.DEFAULT'})`,
51
+ color: {
52
+ light: `transparent`,
53
+ dark: `transparent`,
54
+ },
55
+ radius: `calc(var(--flx-select-menu-border-radius) - .1rem)`,
56
+ },
57
+ },
58
+ divider: {
59
+ width: `theme(${'borderWidth.xs'})`,
60
+ color: {
61
+ light: `theme(${'color.basic.border.DEFAULT'})`,
62
+ dark: `theme(${'color.basic.border.dark'})`,
63
+ },
64
+ },
65
+ border: {
66
+ width: `theme(${'borderWidth.DEFAULT'})`,
67
+ color: {
68
+ light: `theme(${'color.basic.border.DEFAULT'})`,
69
+ dark: `theme(${'color.basic.border.dark'})`,
70
+ },
71
+ radius: `theme(${'borderRadius.md'})`,
72
+ },
73
+ color: {
74
+ light: `theme(${'color.basic.text.DEFAULT'})`,
75
+ dark: `theme(${'color.basic.text.dark'})`,
76
+ },
77
+ header: {
78
+ px: `theme(${'padding.2'})`,
79
+ py: `theme(${'padding.2'})`,
80
+ title: {
81
+ font: {
82
+ size: `theme(${'fontSize.md'})`,
83
+ weight: `theme(${'fontWeight.semibold'})`,
84
+ },
85
+ },
86
+ height: '0px',
87
+ },
88
+ body: {
89
+ px: `theme(${'padding.3'})`,
90
+ py: `theme(${'padding.2'})`,
91
+ },
92
+ footer: {
93
+ px: `theme(${'padding.2'})`,
94
+ py: `theme(${'padding.2'})`,
95
+ height: '0px',
96
+ },
97
+ backdrop: {
98
+ bg: {
99
+ light: `theme(${'backgroundColor.black/[10%]'})`,
100
+ dark: `theme(${'backgroundColor.black/[70%]'})`,
101
+ },
102
+ },
103
+ };
104
+ };
105
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC3C,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SACxC;QACD,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,QAAQ,EAAE,OAAO;QACjB,EAAE,EAAE;YACF,KAAK,EAAE,SAAS,oCAAoC,GAAG;YACvD,IAAI,EAAE,SAAS,iCAAiC,GAAG;SACpD;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,oCAAoC,GAAG;gBACvD,IAAI,EAAE,SAAS,iCAAiC,GAAG;aACtD;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS,qBAAqB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GAAG;SAC1C;QACD,MAAM,EAAE;YACN,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS,aAAa,GAAG;oBAC/B,MAAM,EAAE,SAAS,qBAAqB,GAAG;iBAC1C;aACF;YACD,MAAM,EAAE,KAAK;SACd;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;SAC5B;QACD,MAAM,EAAE;YACN,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,MAAM,EAAE,KAAK;SACd;QACD,QAAQ,EAAE;YACR,EAAE,EAAE;gBACF,KAAK,EAAE,SAAS,6BAA6B,GAAG;gBAChD,IAAI,EAAE,SAAS,6BAA6B,GAAG;aAChD;SACF;KACF,CAAC;AACN,CAAC,CAAA","sourcesContent":["export const SelectStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.1'})`,\n position: 'fixed',\n bg: {\n light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.soft.dark'})`,\n },\n menu: {\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.soft.dark'})`,\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.soft.dark'})`\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n width: 'auto',\n minWidth: '11rem',\n minHeight: '20px',\n maxHeight: '300px',\n },\n item: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.1'})`,\n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n },\n selected: {\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`,\n },\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `transparent`,\n dark: `transparent`,\n },\n radius: `calc(var(--flx-select-menu-border-radius) - .1rem)`,\n },\n },\n divider: {\n width: `theme(${'borderWidth.xs'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`,\n },\n header: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n title: {\n font: {\n size: `theme(${'fontSize.md'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n },\n },\n height: '0px',\n },\n body: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n },\n footer: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n height: '0px',\n },\n backdrop: {\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n },\n },\n };\n}"]}
@@ -0,0 +1,98 @@
1
+ export declare const SidenavStyles: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ };
6
+ position: string;
7
+ top: string;
8
+ left: string;
9
+ bottom: string;
10
+ px: string;
11
+ py: string;
12
+ mx: string;
13
+ my: string;
14
+ bg: {
15
+ light: string;
16
+ dark: string;
17
+ };
18
+ zindex: string;
19
+ width: {
20
+ DEFAULT: string;
21
+ compact: string;
22
+ };
23
+ item: {
24
+ px: string;
25
+ py: string;
26
+ hover: {
27
+ bg: {
28
+ light: string;
29
+ dark: string;
30
+ };
31
+ };
32
+ color: {
33
+ light: string;
34
+ dark: string;
35
+ };
36
+ font: {
37
+ size: string;
38
+ weight: string;
39
+ };
40
+ };
41
+ toggle: {
42
+ color: {
43
+ light: string;
44
+ dark: string;
45
+ };
46
+ border: {
47
+ width: string;
48
+ color: {
49
+ light: string;
50
+ dark: string;
51
+ };
52
+ radius: string;
53
+ };
54
+ };
55
+ backdrop: {
56
+ bg: {
57
+ light: string;
58
+ dark: string;
59
+ };
60
+ };
61
+ divider: {
62
+ width: string;
63
+ color: {
64
+ light: string;
65
+ dark: string;
66
+ };
67
+ };
68
+ border: {
69
+ width: string;
70
+ color: {
71
+ light: string;
72
+ dark: string;
73
+ };
74
+ radius: string;
75
+ };
76
+ color: {
77
+ light: string;
78
+ dark: string;
79
+ };
80
+ header: {
81
+ px: string;
82
+ py: string;
83
+ title: {
84
+ font: {
85
+ size: string;
86
+ weight: string;
87
+ };
88
+ };
89
+ };
90
+ body: {
91
+ px: string;
92
+ py: string;
93
+ };
94
+ footer: {
95
+ px: string;
96
+ py: string;
97
+ };
98
+ };
@@ -0,0 +1,101 @@
1
+ export const SidenavStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ position: 'sticky',
8
+ top: '0',
9
+ left: '0',
10
+ bottom: '0',
11
+ px: `theme(${'padding.0'})`,
12
+ py: `theme(${'padding.0'})`,
13
+ mx: `theme(${'margin.0'})`,
14
+ my: `theme(${'margin.0'})`,
15
+ bg: {
16
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
17
+ dark: `theme(${'backgroundColor.basic.dark'})`,
18
+ },
19
+ zindex: '99',
20
+ width: {
21
+ DEFAULT: `theme(${'maxWidth.sm'})`,
22
+ compact: `theme(${'width.20'})`,
23
+ },
24
+ item: {
25
+ px: `theme(${'padding.2'})`,
26
+ py: `theme(${'padding.4'})`,
27
+ hover: {
28
+ bg: {
29
+ light: `theme(${'backgroundColor.basic.muted.DEFAULT'})`,
30
+ dark: `theme(${'backgroundColor.basic.muted.dark'})`,
31
+ },
32
+ },
33
+ color: {
34
+ light: `theme(${'color.basic.text.DEFAULT'})`,
35
+ dark: `theme(${'color.basic.text.dark'})`
36
+ },
37
+ font: {
38
+ size: `theme(${'fontSize.sm'})`,
39
+ weight: `theme(${'fontWeight.semibold'})`,
40
+ }
41
+ },
42
+ toggle: {
43
+ color: {
44
+ light: `theme(${'color.basic.text.muted.DEFAULT'})`,
45
+ dark: `theme(${'color.basic.text.muted.dark'})`
46
+ },
47
+ border: {
48
+ width: `theme(${'borderWidth.DEFAULT'})`,
49
+ color: {
50
+ light: `theme(${'color.basic.border.DEFAULT'})`,
51
+ dark: `theme(${'color.basic.border.dark'})`
52
+ },
53
+ radius: `theme(${'borderRadius.md'})`,
54
+ },
55
+ },
56
+ backdrop: {
57
+ bg: {
58
+ light: `theme(${'backgroundColor.black/[10%]'})`,
59
+ dark: `theme(${'backgroundColor.black/[70%]'})`,
60
+ }
61
+ },
62
+ divider: {
63
+ width: `theme(${'borderWidth.xs'})`,
64
+ color: {
65
+ light: `theme(${'color.basic.border.DEFAULT'})`,
66
+ dark: `theme(${'color.basic.border.dark'})`
67
+ },
68
+ },
69
+ border: {
70
+ width: `theme(${'borderWidth.DEFAULT'})`,
71
+ color: {
72
+ light: `theme(${'color.basic.border.DEFAULT'})`,
73
+ dark: `theme(${'color.basic.border.dark'})`
74
+ },
75
+ radius: `theme(${'borderRadius.md'})`,
76
+ },
77
+ color: {
78
+ light: `theme(${'color.basic.text.DEFAULT'})`,
79
+ dark: `theme(${'color.basic.text.dark'})`
80
+ },
81
+ header: {
82
+ px: `theme(${'padding.2'})`,
83
+ py: `theme(${'padding.2'})`,
84
+ title: {
85
+ font: {
86
+ size: `theme(${'fontSize.md'})`,
87
+ weight: `theme(${'fontWeight.semibold'})`,
88
+ }
89
+ }
90
+ },
91
+ body: {
92
+ px: `theme(${'padding.3'})`,
93
+ py: `theme(${'padding.2'})`,
94
+ },
95
+ footer: {
96
+ px: `theme(${'padding.2'})`,
97
+ py: `theme(${'padding.2'})`,
98
+ }
99
+ };
100
+ };
101
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/sidenav/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC5C,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SAC1C;QACD,QAAQ,EAAE,QAAQ;QAClB,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,GAAG;QACX,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,UAAU,GAAG;QAC1B,EAAE,EAAE,SAAS,UAAU,GAAG;QAC1B,EAAE,EAAE;YACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;YACxD,IAAI,EAAE,SAAS,4BAA4B,GAAG;SACjD;QACD,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE;YACH,OAAO,EAAE,SAAS,aAAa,GAAG;YAClC,OAAO,EAAE,SAAS,UAAU,GAAG;SAClC;QACD,IAAI,EAAE;YACF,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE;gBACH,EAAE,EAAE;oBACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;oBACxD,IAAI,EAAE,SAAS,kCAAkC,GAAG;iBACvD;aACJ;YACD,KAAK,EAAE;gBACH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AAI,EAAE;oBACF,IAAI,EAAE,SAAS,aAAa,GAAG;oBAC/B,MAAM,EAAE,SAAS,qBAAqB,GAAG;iBAC5C;aACJ;SACJ;QACD,IAAI,EAAE;YACF,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;SAC9B;QACD,MAAM,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;SAC9B;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const SidenavStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n position: 'sticky',\n top: '0',\n left: '0',\n bottom: '0',\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n mx: `theme(${'margin.0'})`,\n my: `theme(${'margin.0'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n zindex: '99',\n width: {\n DEFAULT: `theme(${'maxWidth.sm'})`,\n compact: `theme(${'width.20'})`,\n },\n item: { \n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.4'})`, \n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.muted.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.muted.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n }\n },\n toggle: {\n color: {\n light: `theme(${'color.basic.text.muted.DEFAULT'})`,\n dark: `theme(${'color.basic.text.muted.dark'})`\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n },\n backdrop:{\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n }\n },\n divider: {\n width: `theme(${'borderWidth.xs'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`\n },\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n header: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n title: {\n font: {\n size: `theme(${'fontSize.md'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n }\n }\n },\n body: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n },\n footer: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n }\n }\n}"]}
@@ -0,0 +1,95 @@
1
+ export declare const TableStyles: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ family: string;
6
+ };
7
+ divider: {
8
+ width: string;
9
+ color: {
10
+ light: string;
11
+ dark: string;
12
+ };
13
+ };
14
+ border: {
15
+ width: string;
16
+ color: {
17
+ light: string;
18
+ dark: string;
19
+ };
20
+ radius: string;
21
+ };
22
+ color: {
23
+ light: string;
24
+ dark: string;
25
+ };
26
+ header: {
27
+ bg: {
28
+ light: string;
29
+ dark: string;
30
+ };
31
+ px: string;
32
+ py: string;
33
+ title: {
34
+ font: {
35
+ size: string;
36
+ weight: string;
37
+ };
38
+ };
39
+ };
40
+ body: {
41
+ px: string;
42
+ py: string;
43
+ };
44
+ row: {
45
+ bg: {
46
+ light: string;
47
+ dark: string;
48
+ };
49
+ hover: {
50
+ bg: {
51
+ light: string;
52
+ dark: string;
53
+ };
54
+ };
55
+ color: {
56
+ light: string;
57
+ dark: string;
58
+ };
59
+ };
60
+ cell: {
61
+ px: string;
62
+ py: string;
63
+ border: {
64
+ width: string;
65
+ color: {
66
+ light: string;
67
+ dark: string;
68
+ };
69
+ };
70
+ };
71
+ headerItem: {
72
+ px: string;
73
+ py: string;
74
+ border: {
75
+ width: string;
76
+ color: {
77
+ light: string;
78
+ dark: string;
79
+ };
80
+ };
81
+ };
82
+ paginator: {
83
+ bg: {
84
+ light: string;
85
+ dark: string;
86
+ };
87
+ display: string;
88
+ px: string;
89
+ py: string;
90
+ font: {
91
+ size: string;
92
+ weight: string;
93
+ };
94
+ };
95
+ };
@@ -0,0 +1,98 @@
1
+ export const TableStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ family: `theme(${'fontFamily.sans'})`,
7
+ },
8
+ divider: {
9
+ width: `theme(${'borderWidth.xs'})`,
10
+ color: {
11
+ light: `theme(${'color.basic.border.DEFAULT'})`,
12
+ dark: `theme(${'color.basic.border.dark'})`,
13
+ },
14
+ },
15
+ border: {
16
+ width: `theme(${'borderWidth.DEFAULT'})`,
17
+ color: {
18
+ light: `theme(${'color.basic.border.DEFAULT'})`,
19
+ dark: `theme(${'color.basic.border.dark'})`,
20
+ },
21
+ radius: `theme(${'borderRadius.md'})`,
22
+ },
23
+ color: {
24
+ light: `theme(${'backgroundColor.basic.text.DEFAULTer.light'})`,
25
+ dark: `theme(${'backgroundColor.basic.text.DEFAULTer.dark'})`,
26
+ },
27
+ header: {
28
+ bg: {
29
+ light: `theme(${'backgroundColor.basic.darker.light'})`,
30
+ dark: `theme(${'backgroundColor.basic.tonal.DEFAULTer.dark'})`,
31
+ },
32
+ px: `theme(${'padding.0'})`,
33
+ py: `theme(${'padding.0'})`,
34
+ title: {
35
+ font: {
36
+ size: `theme(${'fontSize.md'})`,
37
+ weight: `theme(${'fontWeight.semibold'})`,
38
+ },
39
+ },
40
+ },
41
+ body: {
42
+ px: `theme(${'padding.3'})`,
43
+ py: `theme(${'padding.2'})`,
44
+ },
45
+ row: {
46
+ bg: {
47
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
48
+ dark: `theme(${'backgroundColor.basic.dark'})`,
49
+ },
50
+ hover: {
51
+ bg: {
52
+ light: `theme(${'backgroundColor.basic.hover.light'})`,
53
+ dark: `theme(${'backgroundColor.basic.hover.dark'})`,
54
+ },
55
+ },
56
+ color: {
57
+ light: `theme(${'color.basic.text.DEFAULT'})`,
58
+ dark: `theme(${'color.basic.text.dark'})`,
59
+ },
60
+ },
61
+ cell: {
62
+ px: `theme(${'padding.3'})`,
63
+ py: `theme(${'padding.3'})`,
64
+ border: {
65
+ width: `theme(${'borderWidth.DEFAULT'})`,
66
+ color: {
67
+ light: `theme(${'color.basic.border.DEFAULT'})`,
68
+ dark: `theme(${'color.basic.border.dark'})`,
69
+ },
70
+ },
71
+ },
72
+ headerItem: {
73
+ px: `theme(${'padding.2'})`,
74
+ py: `theme(${'padding.4'})`,
75
+ border: {
76
+ width: `theme(${'borderWidth.DEFAULT'})`,
77
+ color: {
78
+ light: `theme(${'color.basic.border.DEFAULT'})`,
79
+ dark: `theme(${'color.basic.border.dark'})`,
80
+ },
81
+ },
82
+ },
83
+ paginator: {
84
+ bg: {
85
+ light: `theme(${'backgroundColor.basic.darker.light'})`,
86
+ dark: `theme(${'backgroundColor.basic.darker.dark'})`,
87
+ },
88
+ display: 'flex',
89
+ px: `theme(${'padding.2'})`,
90
+ py: `theme(${'padding.4'})`,
91
+ font: {
92
+ size: `theme(${'fontSize.md'})`,
93
+ weight: `theme(${'fontWeight.semibold'})`,
94
+ }
95
+ },
96
+ };
97
+ };
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAa,EAAE,EAAC,E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AG;oBACtD,IAAI,EAAE,SAAS,kCAAkC,GAAG;iBACrD;aACF;YACD,KAAK,EAAE;gBACL,KAAK,EAAE,SAAS,0BAA0B,GAAG;gBAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;aAC1C;SACF;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACL,KAAK,EAAE,SAAS,4BAA4B,GAAG;oBAC/C,IAAI,EAAE,SAAS,yBAAyB,GAAG;iBAC5C;aACF;SACF;QACD,UAAU,EAAE;YACV,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACL,KAAK,EAAE,SAAS,4BAA4B,GAAG;oBAC/C,IAAI,EAAE,SAAS,yBAAyB,GAAG;iBAC5C;aACF;SACF;QACD,SAAS,EAAE;YACT,EAAE,EAAE;gBACF,KAAK,EAAE,SAAS,oCAAoC,GAAG;gBACvD,IAAI,EAAE,SAAS,mCAAmC,GAAG;aACtD;YACD,OAAO,EAAE,MAAM;YACf,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS,aAAa,GAAG;gBAC/B,MAAM,EAAE,SAAS,qBAAqB,GAAG;aAC1C;SACF;KACF,CAAC;AACN,CAAC,CAAA","sourcesContent":["export const TableStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n family: `theme(${'fontFamily.sans'})`,\n },\n divider: {\n width: `theme(${'borderWidth.xs'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n color: {\n light: `theme(${'backgroundColor.basic.text.DEFAULTer.light'})`,\n dark: `theme(${'backgroundColor.basic.text.DEFAULTer.dark'})`,\n },\n header: {\n bg: {\n light: `theme(${'backgroundColor.basic.darker.light'})`,\n dark: `theme(${'backgroundColor.basic.tonal.DEFAULTer.dark'})`,\n },\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n title: {\n font: {\n size: `theme(${'fontSize.md'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n },\n },\n },\n body: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n },\n row: {\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.hover.light'})`,\n dark: `theme(${'backgroundColor.basic.hover.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`,\n },\n },\n cell: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.3'})`,\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n },\n },\n headerItem: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.4'})`,\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`,\n },\n },\n },\n paginator: {\n bg: {\n light: `theme(${'backgroundColor.basic.darker.light'})`,\n dark: `theme(${'backgroundColor.basic.darker.dark'})`,\n },\n display: 'flex',\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.4'})`,\n font: {\n size: `theme(${'fontSize.md'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n }\n },\n };\n}"]}
@@ -0,0 +1,3 @@
1
+ import { PluginConfigOptions, AWCConfig } from "./types/config.js";
2
+ export declare const PLUGIN_CONFIG_OPTIONS: PluginConfigOptions;
3
+ export declare const DEFAULT_THEME_CONFIG: AWCConfig;
@@ -0,0 +1,29 @@
1
+ import { createMutable } from "./commons/helper.js";
2
+ import { Components } from "./components/index.js";
3
+ import { DEFAULT_BRAEKPOINTS } from "./utilities/breakpoints/constants.js";
4
+ import { LightColors } from "./utilities/colors/color.js";
5
+ import { BorderRadiusValues, BorderWidthValues, DEFAULT_KEYFRAMES, SizingValues, SpacingValues, UtilitiesData } from "./utilities/index.js";
6
+ export const PLUGIN_CONFIG_OPTIONS = {
7
+ debug: false,
8
+ log: false,
9
+ minify: true,
10
+ purge: false,
11
+ rootDir: ".",
12
+ watch: false,
13
+ unwrap: true,
14
+ cache: {
15
+ clean: false,
16
+ build: true
17
+ },
18
+ output: {
19
+ dir: "dist",
20
+ filename: "main.css",
21
+ },
22
+ rootHost: "",
23
+ content: ["./src/**/*.{html,css,ts,js,jsx,tsx}"],
24
+ };
25
+ export const DEFAULT_THEME_CONFIG = createMutable(Object.assign(Object.assign({}, PLUGIN_CONFIG_OPTIONS), { mode: {
26
+ light: 'light',
27
+ dark: 'dark',
28
+ }, theme: Object.assign(Object.assign({ colors: Object.assign({}, LightColors), spacing: Object.assign({}, SpacingValues), sizing: Object.assign({}, SizingValues), radius: Object.assign({}, BorderRadiusValues), border: Object.assign({}, BorderWidthValues) }, Object.assign({}, UtilitiesData)), { extend: {}, components: Object.assign(Object.assign({}, Object.assign({}, Components())), { extend: {} }), screens: Object.assign(Object.assign({}, Object.assign({}, DEFAULT_BRAEKPOINTS)), { extend: {} }), keyframes: Object.assign(Object.assign({}, Object.assign({}, DEFAULT_KEYFRAMES)), { extend: {} }) }), plugins: [] }));
29
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAc,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExJ,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACtD,KAAK,EAAE,KAAK;IACZ,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE;QACH,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,IAAI;KACd;IACD,MAAM,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,UAAU;KACvB;IACD,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,CAAC,qCAAqC,CAAC;CAC1C,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAc,aAAa,CAAC,gCACtD,qBAAqB,KACxB,IAAI,EAAE;QACF,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;KACf,EACD,KAAK,gCACD,MAAM,oBACC,WAAW,GAElB,OAAO,oBAAM,aAAa,GAC1B,MAAM,oBAAM,YAAY,GACxB,MAAM,oBAAM,kBAAkB,GAC9B,MAAM,oBAAM,iBAAiB,uBACtB,aAAoB,MAC3B,MAAM,EAAE,EAAE,EACV,UAAU,oDACC,UAAU,EAAS,MAC1B,MAAM,EAAE,EAAE,KAEd,OAAO,oDACI,mBAA0B,MACjC,MAAM,EAAE,EAAE,KAEd,SAAS,oDACE,iBAAwB,MAC/B,MAAM,EAAE,EAAE,QAGlB,OAAO,EAAE,EAAE,GACL,CAAC,CAAC","sourcesContent":["import { createMutable } from \"./commons/helper.js\";\nimport { Components } from \"./components/index.js\";\nimport { PluginConfigOptions, AWCConfig } from \"./types/config.js\";\nimport { DEFAULT_BRAEKPOINTS } from \"./utilities/breakpoints/constants.js\";\nimport { LightColors } from \"./utilities/colors/color.js\";\nimport { BaseStyles, BorderRadiusValues, BorderWidthValues, DEFAULT_KEYFRAMES, SizingValues, SpacingValues, UtilitiesData } from \"./utilities/index.js\";\n\nexport const PLUGIN_CONFIG_OPTIONS: PluginConfigOptions = {\n debug: false,\n log: false,\n minify: true,\n purge: false,\n rootDir: \".\",\n watch: false,\n unwrap: true,\n cache: {\n clean: false,\n build: true\n },\n output: {\n dir: \"dist\",\n filename: \"main.css\",\n },\n rootHost: \"\",\n content: [\"./src/**/*.{html,css,ts,js,jsx,tsx}\"],\n} as const;\n\nexport const DEFAULT_THEME_CONFIG: AWCConfig = createMutable({\n ...PLUGIN_CONFIG_OPTIONS,\n mode: {\n light: 'light',\n dark: 'dark',\n },\n theme: {\n colors: {\n ...LightColors,\n },\n spacing: {...SpacingValues},\n sizing: {...SizingValues},\n radius: {...BorderRadiusValues},\n border: {...BorderWidthValues},\n ...{...UtilitiesData as any},\n extend: {},\n components: {\n ...{...Components() as any},\n extend: {}\n },\n screens: {\n ...{...DEFAULT_BRAEKPOINTS as any},\n extend: {}\n },\n keyframes: {\n ...{...DEFAULT_KEYFRAMES as any},\n extend: {}\n }\n },\n plugins: []\n} as const);\n"]}