@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,74 @@
1
+ export const DialogStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ backdrop: {
8
+ bg: {
9
+ light: `theme(${'backgroundColor.black/[10%]'})`,
10
+ dark: `theme(${'backgroundColor.black/[70%]'})`,
11
+ }
12
+ },
13
+ height: `auto`,
14
+ bg: {
15
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
16
+ dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
17
+ },
18
+ menu: {
19
+ px: `theme(${'padding.1'})`,
20
+ py: `theme(${'padding.1'})`,
21
+ bg: {
22
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
23
+ dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
24
+ },
25
+ border: {
26
+ width: `theme(${'borderWidth.DEFAULT'})`,
27
+ color: {
28
+ light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
29
+ dark: `theme(${'backgroundColor.basic.border.dark'})`
30
+ },
31
+ radius: `theme(${'borderRadius.2xl'})`,
32
+ },
33
+ width: 'auto',
34
+ minWidth: '11rem',
35
+ minHeight: '20px',
36
+ maxHeight: '100%',
37
+ },
38
+ border: {
39
+ width: `theme(${'borderWidth.DEFAULT'})`,
40
+ color: {
41
+ light: `theme(${'borderColor.basic.border.DEFAULT'})`,
42
+ dark: `theme(${'borderColor.basic.border.dark'})`
43
+ },
44
+ radius: `theme(${'borderRadius.2xl'})`,
45
+ },
46
+ boxShadow: `theme(${'boxShadow.DEFAULT'})`,
47
+ maxWidth: `theme(${'maxWidth.2xl'})`,
48
+ color: {
49
+ light: `theme(${'color.basic.text.DEFAULT'})`,
50
+ dark: `theme(${'color.basic.text.dark'})`
51
+ },
52
+ header: {
53
+ px: `theme(${'padding.2'})`,
54
+ py: `theme(${'padding.2'})`,
55
+ title: {
56
+ font: {
57
+ size: `theme(${'fontSize.md'})`,
58
+ weight: `theme(${'fontWeight.semibold'})`,
59
+ }
60
+ },
61
+ height: '0px'
62
+ },
63
+ body: {
64
+ px: `theme(${'padding.3'})`,
65
+ py: `theme(${'padding.2'})`,
66
+ },
67
+ footer: {
68
+ px: `theme(${'padding.2'})`,
69
+ py: `theme(${'padding.2'})`,
70
+ height: '0px'
71
+ }
72
+ };
73
+ };
74
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC3C,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SAC1C;QACD,QAAQ,EAAC;YACL,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,6BAA6B,GAAG;gBAChD,IAAI,EAAE,SAAS,6BAA6B,GAAG;aAClD;SACJ;QACD,MAAM,EAAE,MAAM;QACd,EAAE,EAAE;YACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;YACxD,IAAI,EAAE,SAAS,kCAAkC,GAAG;SACvD;QACD,IAAI,EAAE;YACF,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;gBACxD,IAAI,EAAE,SAAS,kCAAkC,GAAG;aACvD;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACH,KAAK,EAAE,SAAS,sCAAsC,GAAG;oBACzD,IAAI,EAAE,SAAS,mCAAmC,GAAG;iBACxD;gBACD,MAAM,EAAE,SAAS,kBAAkB,GAAG;aACzC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,MAAM;SACpB;QACD,MAAM,EAAE;YACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;YACxC,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,kCAAkC,GAAG;gBACrD,IAAI,EAAE,SAAS,+BAA+B,GAAG;aACpD;YACD,MAAM,EAAE,SAAS,kBAAkB,GAAG;SACzC;QACD,SAAS,EAAE,SAAS,mBAAmB,GAAG;QAC1C,QAAQ,EAAE,SAAS,cAAc,GAAG;QACpC,KAAK,EAAE;YACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;YAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;SAC5C;QACD,MAAM,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE;gBACH,IAAI,EAAE;oBACF,IAAI,EAAE,SAAS,aAAa,GAAG;oBAC/B,MAAM,EAAE,SAAS,qBAAqB,GAAG;iBAC5C;aACJ;YACD,MAAM,EAAE,KAAK;SAChB;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;YAC3B,MAAM,EAAE,KAAK;SAChB;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["import { UtilitiesData } from \"../../utilities\"\n\nexport const DialogStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n backdrop:{\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n }\n },\n height: `auto`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.dark'})`,\n },\n menu: {\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.dark'})`,\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n width: 'auto',\n minWidth: '11rem',\n minHeight: '20px',\n maxHeight: '100%',\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'borderColor.basic.border.DEFAULT'})`,\n dark: `theme(${'borderColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n boxShadow: `theme(${'boxShadow.DEFAULT'})`,\n maxWidth: `theme(${'maxWidth.2xl'})`,\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 }\n}"]}
@@ -0,0 +1,26 @@
1
+ export declare const DrawerStyles: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ };
6
+ px: string;
7
+ py: string;
8
+ mx: string;
9
+ my: string;
10
+ bg: {
11
+ light: string;
12
+ dark: string;
13
+ };
14
+ width: string;
15
+ height: string;
16
+ content: {
17
+ px: string;
18
+ py: string;
19
+ width: string;
20
+ height: string;
21
+ };
22
+ header: {
23
+ position: string;
24
+ top: string;
25
+ };
26
+ };
@@ -0,0 +1,29 @@
1
+ export const DrawerStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ px: `theme(${'padding.0'})`,
8
+ py: `theme(${'padding.0'})`,
9
+ mx: `theme(${'margin.0'})`,
10
+ my: `theme(${'margin.0'})`,
11
+ bg: {
12
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
13
+ dark: `theme(${'backgroundColor.basic.dark'})`,
14
+ },
15
+ width: '100%',
16
+ height: '100vh',
17
+ content: {
18
+ px: `theme(${'padding.3'})`,
19
+ py: `theme(${'padding.2'})`,
20
+ width: '100%',
21
+ height: '100%',
22
+ },
23
+ header: {
24
+ position: 'sticky',
25
+ top: '0',
26
+ }
27
+ };
28
+ };
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC3C,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SAC1C;QACD,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,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,OAAO;QACf,OAAO,EAAE;YACL,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;SACjB;QACD,MAAM,EAAE;YACJ,QAAQ,EAAE,QAAQ;YAClB,GAAG,EAAE,GAAG;SACX;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const DrawerStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\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 width: '100%',\n height: '100vh',\n content: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n width: '100%', \n height: '100%', \n },\n header: {\n position: 'sticky',\n top: '0',\n }\n }\n}"]}
@@ -0,0 +1,101 @@
1
+ export declare const DropdownStyles: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ };
6
+ px: string;
7
+ py: string;
8
+ bg: {
9
+ light: string;
10
+ dark: string;
11
+ };
12
+ menu: {
13
+ px: string;
14
+ py: string;
15
+ bg: {
16
+ light: string;
17
+ dark: string;
18
+ };
19
+ border: {
20
+ width: string;
21
+ color: {
22
+ light: string;
23
+ dark: string;
24
+ };
25
+ radius: string;
26
+ };
27
+ width: string;
28
+ minWidth: string;
29
+ minHeight: string;
30
+ maxHeight: string;
31
+ };
32
+ item: {
33
+ gap: string;
34
+ px: string;
35
+ py: string;
36
+ hover: {
37
+ bg: {
38
+ light: string;
39
+ dark: string;
40
+ };
41
+ };
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
+ divider: {
56
+ width: string;
57
+ color: {
58
+ light: string;
59
+ dark: string;
60
+ };
61
+ };
62
+ border: {
63
+ width: string;
64
+ color: {
65
+ light: string;
66
+ dark: string;
67
+ };
68
+ radius: string;
69
+ };
70
+ color: {
71
+ light: string;
72
+ dark: string;
73
+ };
74
+ header: {
75
+ px: string;
76
+ py: string;
77
+ title: {
78
+ font: {
79
+ size: string;
80
+ weight: string;
81
+ };
82
+ };
83
+ height: string;
84
+ };
85
+ body: {
86
+ px: string;
87
+ py: string;
88
+ };
89
+ footer: {
90
+ px: string;
91
+ py: string;
92
+ height: string;
93
+ };
94
+ position: string;
95
+ backdrop: {
96
+ bg: {
97
+ light: string;
98
+ dark: string;
99
+ };
100
+ };
101
+ };
@@ -0,0 +1,104 @@
1
+ export const DropdownStyles = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ px: `theme(${'padding.1'})`,
8
+ py: `theme(${'padding.1'})`,
9
+ bg: {
10
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
11
+ dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
12
+ },
13
+ menu: {
14
+ px: `theme(${'padding.1'})`,
15
+ py: `theme(${'padding.1'})`,
16
+ bg: {
17
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
18
+ dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
19
+ },
20
+ border: {
21
+ width: `theme(${'borderWidth.DEFAULT'})`,
22
+ color: {
23
+ light: `theme(${'backgroundColor.basic.border.soft.DEFAULT'})`,
24
+ dark: `theme(${'backgroundColor.basic.border.soft.dark'})`
25
+ },
26
+ radius: `theme(${'borderRadius.md'})`,
27
+ },
28
+ width: 'auto',
29
+ minWidth: '11rem',
30
+ minHeight: '20px',
31
+ maxHeight: '300px',
32
+ },
33
+ item: {
34
+ gap: `theme(${'gap.1'})`,
35
+ px: `theme(${'padding.3'})`,
36
+ py: `theme(${'padding.1'})`,
37
+ hover: {
38
+ bg: {
39
+ light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,
40
+ dark: `theme(${'backgroundColor.basic.soft.dark'})`,
41
+ },
42
+ },
43
+ color: {
44
+ light: `theme(${'color.basic.text.DEFAULT'})`,
45
+ dark: `theme(${'color.basic.text.dark'})`
46
+ },
47
+ border: {
48
+ width: `theme(${'borderWidth.DEFAULT'})`,
49
+ color: {
50
+ light: `transparent`,
51
+ dark: `transparent`
52
+ },
53
+ radius: `calc(var(--flx-dropdown-menu-border-radius) - .1rem)`,
54
+ },
55
+ },
56
+ divider: {
57
+ width: `theme(${'borderWidth.xs'})`,
58
+ color: {
59
+ light: `theme(${'color.basic.border.DEFAULT'})`,
60
+ dark: `theme(${'color.basic.border.dark'})`
61
+ },
62
+ },
63
+ border: {
64
+ width: `theme(${'borderWidth.DEFAULT'})`,
65
+ color: {
66
+ light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
67
+ dark: `theme(${'backgroundColor.basic.border.dark'})`
68
+ },
69
+ radius: `theme(${'borderRadius.2xl'})`,
70
+ },
71
+ color: {
72
+ light: `theme(${'color.basic.text.DEFAULT'})`,
73
+ dark: `theme(${'color.basic.text.dark'})`
74
+ },
75
+ header: {
76
+ px: `theme(${'padding.0'})`,
77
+ py: `theme(${'padding.0'})`,
78
+ title: {
79
+ font: {
80
+ size: `theme(${'fontSize.md'})`,
81
+ weight: `theme(${'fontWeight.semibold'})`,
82
+ }
83
+ },
84
+ height: '0px'
85
+ },
86
+ body: {
87
+ px: `theme(${'padding.0'})`,
88
+ py: `theme(${'padding.0'})`,
89
+ },
90
+ footer: {
91
+ px: `theme(${'padding.0'})`,
92
+ py: `theme(${'padding.0'})`,
93
+ height: '0px'
94
+ },
95
+ position: 'fixed',
96
+ backdrop: {
97
+ bg: {
98
+ light: `theme(${'backgroundColor.black/[10%]'})`,
99
+ dark: `theme(${'backgroundColor.black/[70%]'})`,
100
+ }
101
+ },
102
+ };
103
+ };
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/dropdown/index.ts"],"names":[],"mappings":"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","sourcesContent":["export const DropdownStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.dark'})`,\n },\n menu: {\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.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 gap: `theme(${'gap.1'})`,\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.1'})`, \n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.soft.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `transparent`,\n dark: `transparent`\n },\n radius: `calc(var(--flx-dropdown-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(${'backgroundColor.basic.border.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n header: {\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 height: '0px'\n },\n body: {\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n },\n footer: {\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n height: '0px'\n },\n position: 'fixed',\n backdrop:{\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n }\n },\n }\n}"]}
@@ -0,0 +1,58 @@
1
+ export declare const FormField: (styles?: any) => {
2
+ font: {
3
+ size: string;
4
+ weight: string;
5
+ };
6
+ px: string;
7
+ py: string;
8
+ bg: {
9
+ light: string;
10
+ dark: string;
11
+ };
12
+ border: {
13
+ width: string;
14
+ color: {
15
+ DEFAULT: string;
16
+ dark: string;
17
+ valid: {
18
+ light: string;
19
+ dark: string;
20
+ };
21
+ invalid: {
22
+ light: string;
23
+ dark: string;
24
+ };
25
+ };
26
+ radius: string;
27
+ };
28
+ color: {
29
+ DEFAULT: string;
30
+ dark: string;
31
+ };
32
+ label: {
33
+ font: {
34
+ size: string;
35
+ weight: string;
36
+ };
37
+ color: {
38
+ light: string;
39
+ dark: string;
40
+ };
41
+ };
42
+ placeholder: {
43
+ font: {
44
+ size: string;
45
+ weight: string;
46
+ };
47
+ color: {
48
+ light: string;
49
+ dark: string;
50
+ };
51
+ };
52
+ hover: {
53
+ bg: {
54
+ light: string;
55
+ dark: string;
56
+ };
57
+ };
58
+ };
@@ -0,0 +1,62 @@
1
+ export const FormField = (styles = {}) => {
2
+ return {
3
+ font: {
4
+ size: `theme(${'fontSize.base'})`,
5
+ weight: `theme(${'fontWeight.normal'})`,
6
+ },
7
+ px: `theme(${'padding.2'})`,
8
+ py: `theme(${'padding.2'})`,
9
+ bg: {
10
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
11
+ dark: `theme(${'backgroundColor.basic.dark'})`,
12
+ },
13
+ border: {
14
+ width: `1px`,
15
+ color: {
16
+ DEFAULT: `rgb(242, 242, 242)`,
17
+ dark: `theme(${'backgroundColor.basic.border.dark'})`,
18
+ // dark: `#878788`,
19
+ valid: {
20
+ light: `theme(${'borderColor.primary.DEFAULT'})`,
21
+ dark: `theme(${'borderColor.primary.dark'})`,
22
+ },
23
+ invalid: {
24
+ light: `theme(${'borderColor.red.500'})`,
25
+ dark: `theme(${'borderColor.red.500'})`,
26
+ }
27
+ },
28
+ radius: `theme(${'borderRadius.md'})`,
29
+ },
30
+ color: {
31
+ DEFAULT: `theme(${'color.basic.text.DEFAULT'})`,
32
+ dark: `theme(${'color.basic.text.dark'})`
33
+ },
34
+ label: {
35
+ font: {
36
+ size: `theme(${'fontSize.sm'})`,
37
+ weight: `theme(${'fontWeight.normal'})`,
38
+ },
39
+ color: {
40
+ light: `theme(${'color.gray.600'})`,
41
+ dark: `theme(${'color.gray.400'})`
42
+ },
43
+ },
44
+ placeholder: {
45
+ font: {
46
+ size: `theme(${'fontSize.sm'})`,
47
+ weight: `theme(${'fontWeight.normal'})`,
48
+ },
49
+ color: {
50
+ light: `theme(${'color.gray.600'})`,
51
+ dark: `theme(${'color.gray.400'})`
52
+ },
53
+ },
54
+ hover: {
55
+ bg: {
56
+ light: `theme(${'backgroundColor.basic.tonal.DEFAULTer.light'})`,
57
+ dark: `theme(${'backgroundColor.basic.darker.dark'})`,
58
+ },
59
+ }
60
+ };
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IACxC,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SAC1C;QACD,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE;YACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;YACxD,IAAI,EAAE,SAAS,4BAA4B,GAAG;SACjD;QACD,MAAM,EAAE;YACJ,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE;gBACH,OAAO,EAAE,oBAAoB;gBAC7B,IAAI,EAAE,SAAS,mCAAmC,GAAG;gBACrD,mBAAmB;gBACnB,KAAK,EAAE;oBACH,KAAK,EAAE,SAAS,6BAA6B,GAAG;oBAChD,IAAI,EAAE,SAAS,0BAA0B,GAAG;iBAC/C;gBACD,OAAO,EAAE;oBACL,KAAK,EAAE,SAAS,qBAAqB,GAAG;oBACxC,IAAI,EAAE,SAAS,qBAAqB,GAAG;iBAC1C;aACJ;YACD,MAAM,EAAE,SAAS,iBAAiB,GAAG;SACxC;QACD,KAAK,EAAE;YACH,OAAO,EAAE,SAAS,0BAA0B,GAAG;YAC/C,IAAI,EAAE,SAAS,uBAAuB,GAAG;SAC5C;QACD,KAAK,EAAE;YACH,IAAI,EAAE;gBACF,IAAI,EAAE,SAAS,aAAa,GAAG;gBAC/B,MAAM,EAAE,SAAS,mBAAmB,GAAG;aAC1C;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,gBAAgB,GAAG;gBACnC,IAAI,EAAE,SAAS,gBAAgB,GAAG;aACrC;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE;gBACF,IAAI,EAAE,SAAS,aAAa,GAAG;gBAC/B,MAAM,EAAE,SAAS,mBAAmB,GAAG;aAC1C;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,gBAAgB,GAAG;gBACnC,IAAI,EAAE,SAAS,gBAAgB,GAAG;aACrC;SACJ;QACD,KAAK,EAAE;YACH,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,6CAA6C,GAAG;gBAChE,IAAI,EAAE,SAAS,mCAAmC,GAAG;aACxD;SACJ;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const FormField = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n border: {\n width: `1px`,\n color: {\n DEFAULT: `rgb(242, 242, 242)`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`,\n // dark: `#878788`,\n valid: {\n light: `theme(${'borderColor.primary.DEFAULT'})`,\n dark: `theme(${'borderColor.primary.dark'})`,\n },\n invalid: {\n light: `theme(${'borderColor.red.500'})`,\n dark: `theme(${'borderColor.red.500'})`,\n }\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n color: {\n DEFAULT: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n label: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.gray.600'})`,\n dark: `theme(${'color.gray.400'})`\n },\n },\n placeholder: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.gray.600'})`,\n dark: `theme(${'color.gray.400'})`\n },\n },\n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULTer.light'})`,\n dark: `theme(${'backgroundColor.basic.darker.dark'})`,\n },\n }\n }\n}"]}