@edo-w/flatline-solid 0.2.1 → 0.3.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 (500) hide show
  1. package/dist/button/index.css +124 -0
  2. package/dist/button/index.d.ts +2 -0
  3. package/dist/button/index.js +51 -0
  4. package/dist/button/index.js.map +1 -0
  5. package/dist/card/index.css +112 -0
  6. package/dist/card/index.d.ts +68 -0
  7. package/dist/card/index.js +181 -0
  8. package/dist/card/index.js.map +1 -0
  9. package/dist/checkbox/index.css +75 -0
  10. package/dist/checkbox/index.d.ts +55 -0
  11. package/dist/checkbox/index.js +156 -0
  12. package/dist/checkbox/index.js.map +1 -0
  13. package/dist/combobox/index.css +184 -0
  14. package/dist/combobox/index.d.ts +145 -0
  15. package/dist/combobox/index.js +894 -0
  16. package/dist/combobox/index.js.map +1 -0
  17. package/dist/dialog/index.css +218 -0
  18. package/dist/dialog/index.d.ts +65 -0
  19. package/dist/dialog/index.js +124 -0
  20. package/dist/dialog/index.js.map +1 -0
  21. package/dist/dropdown-menu/index.css +238 -0
  22. package/dist/dropdown-menu/index.d.ts +122 -0
  23. package/dist/dropdown-menu/index.js +199 -0
  24. package/dist/dropdown-menu/index.js.map +1 -0
  25. package/dist/flatline.css +467 -0
  26. package/dist/icons-CH4ghH8L.js +41 -0
  27. package/dist/icons-CH4ghH8L.js.map +1 -0
  28. package/dist/index-D-CV7Jz5.d.ts +30 -0
  29. package/dist/input/index.css +23 -0
  30. package/dist/input/index.d.ts +14 -0
  31. package/dist/input/index.js +24 -0
  32. package/dist/input/index.js.map +1 -0
  33. package/dist/label/index.css +11 -0
  34. package/dist/label/index.d.ts +14 -0
  35. package/dist/label/index.js +25 -0
  36. package/dist/label/index.js.map +1 -0
  37. package/dist/lite-CiFvU804.js +9 -0
  38. package/dist/lite-CiFvU804.js.map +1 -0
  39. package/dist/progress-bar/index.css +34 -0
  40. package/dist/progress-bar/index.d.ts +19 -0
  41. package/dist/progress-bar/index.js +61 -0
  42. package/dist/progress-bar/index.js.map +1 -0
  43. package/dist/radio/index.css +64 -0
  44. package/dist/radio/index.d.ts +55 -0
  45. package/dist/radio/index.js +143 -0
  46. package/dist/radio/index.js.map +1 -0
  47. package/dist/select/index.css +53 -0
  48. package/dist/select/index.d.ts +16 -0
  49. package/dist/select/index.js +51 -0
  50. package/dist/select/index.js.map +1 -0
  51. package/dist/slider/index.css +59 -0
  52. package/dist/slider/index.d.ts +16 -0
  53. package/dist/slider/index.js +37 -0
  54. package/dist/slider/index.js.map +1 -0
  55. package/dist/spinner/index.css +44 -0
  56. package/dist/spinner/index.d.ts +24 -0
  57. package/dist/spinner/index.js +48 -0
  58. package/dist/spinner/index.js.map +1 -0
  59. package/dist/switch/index.css +69 -0
  60. package/dist/switch/index.d.ts +22 -0
  61. package/dist/switch/index.js +75 -0
  62. package/dist/switch/index.js.map +1 -0
  63. package/dist/table/index.css +50 -0
  64. package/dist/table/index.d.ts +64 -0
  65. package/dist/table/index.js +142 -0
  66. package/dist/table/index.js.map +1 -0
  67. package/dist/tabs/index.css +114 -0
  68. package/dist/tabs/index.d.ts +40 -0
  69. package/dist/tabs/index.js +67 -0
  70. package/dist/tabs/index.js.map +1 -0
  71. package/dist/textarea/index.css +35 -0
  72. package/dist/textarea/index.d.ts +14 -0
  73. package/dist/textarea/index.js +24 -0
  74. package/dist/textarea/index.js.map +1 -0
  75. package/dist/xstack/index.d.ts +1 -0
  76. package/dist/xstack/index.js +0 -0
  77. package/dist/ystack/index.css +26 -0
  78. package/dist/ystack/index.d.ts +25 -0
  79. package/dist/ystack/index.js +47 -0
  80. package/dist/ystack/index.js.map +1 -0
  81. package/package.json +30 -5
  82. package/dist/src/components/button/button.css +0 -156
  83. package/dist/src/components/button/button.d.ts +0 -9
  84. package/dist/src/components/button/button.jsx +0 -21
  85. package/dist/src/components/button/button.jsx.map +0 -1
  86. package/dist/src/components/button/class.d.ts +0 -16
  87. package/dist/src/components/button/class.js +0 -15
  88. package/dist/src/components/button/class.js.map +0 -1
  89. package/dist/src/components/button/index.d.ts +0 -2
  90. package/dist/src/components/button/index.js +0 -3
  91. package/dist/src/components/button/index.js.map +0 -1
  92. package/dist/src/components/card/card-action.css +0 -15
  93. package/dist/src/components/card/card-content.css +0 -13
  94. package/dist/src/components/card/card-footer.css +0 -39
  95. package/dist/src/components/card/card-header.css +0 -13
  96. package/dist/src/components/card/card-root.css +0 -31
  97. package/dist/src/components/card/card-subtitle.css +0 -12
  98. package/dist/src/components/card/card-title.css +0 -33
  99. package/dist/src/components/card/card.d.ts +0 -42
  100. package/dist/src/components/card/card.jsx +0 -86
  101. package/dist/src/components/card/card.jsx.map +0 -1
  102. package/dist/src/components/card/class.d.ts +0 -28
  103. package/dist/src/components/card/class.js +0 -27
  104. package/dist/src/components/card/class.js.map +0 -1
  105. package/dist/src/components/card/index.d.ts +0 -2
  106. package/dist/src/components/card/index.js +0 -3
  107. package/dist/src/components/card/index.js.map +0 -1
  108. package/dist/src/components/checkbox/checkbox-group.css +0 -9
  109. package/dist/src/components/checkbox/checkbox-group.d.ts +0 -3
  110. package/dist/src/components/checkbox/checkbox-group.jsx +0 -43
  111. package/dist/src/components/checkbox/checkbox-group.jsx.map +0 -1
  112. package/dist/src/components/checkbox/checkbox-root.css +0 -85
  113. package/dist/src/components/checkbox/checkbox-root.d.ts +0 -4
  114. package/dist/src/components/checkbox/checkbox-root.jsx +0 -55
  115. package/dist/src/components/checkbox/checkbox-root.jsx.map +0 -1
  116. package/dist/src/components/checkbox/checkbox.d.ts +0 -9
  117. package/dist/src/components/checkbox/checkbox.jsx +0 -6
  118. package/dist/src/components/checkbox/checkbox.jsx.map +0 -1
  119. package/dist/src/components/checkbox/class.d.ts +0 -8
  120. package/dist/src/components/checkbox/class.js +0 -9
  121. package/dist/src/components/checkbox/class.js.map +0 -1
  122. package/dist/src/components/checkbox/context.d.ts +0 -9
  123. package/dist/src/components/checkbox/context.js +0 -6
  124. package/dist/src/components/checkbox/context.js.map +0 -1
  125. package/dist/src/components/checkbox/index.d.ts +0 -6
  126. package/dist/src/components/checkbox/index.js +0 -7
  127. package/dist/src/components/checkbox/index.js.map +0 -1
  128. package/dist/src/components/checkbox/types.d.ts +0 -16
  129. package/dist/src/components/checkbox/types.js +0 -1
  130. package/dist/src/components/checkbox/types.js.map +0 -1
  131. package/dist/src/components/combobox/class.d.ts +0 -13
  132. package/dist/src/components/combobox/class.js +0 -14
  133. package/dist/src/components/combobox/class.js.map +0 -1
  134. package/dist/src/components/combobox/combobox-content.css +0 -20
  135. package/dist/src/components/combobox/combobox-content.d.ts +0 -2
  136. package/dist/src/components/combobox/combobox-content.jsx +0 -15
  137. package/dist/src/components/combobox/combobox-content.jsx.map +0 -1
  138. package/dist/src/components/combobox/combobox-control.css +0 -29
  139. package/dist/src/components/combobox/combobox-control.d.ts +0 -3
  140. package/dist/src/components/combobox/combobox-control.jsx +0 -19
  141. package/dist/src/components/combobox/combobox-control.jsx.map +0 -1
  142. package/dist/src/components/combobox/combobox-group.css +0 -32
  143. package/dist/src/components/combobox/combobox-group.d.ts +0 -2
  144. package/dist/src/components/combobox/combobox-group.jsx +0 -12
  145. package/dist/src/components/combobox/combobox-group.jsx.map +0 -1
  146. package/dist/src/components/combobox/combobox-hidden-select.d.ts +0 -2
  147. package/dist/src/components/combobox/combobox-hidden-select.jsx +0 -8
  148. package/dist/src/components/combobox/combobox-hidden-select.jsx.map +0 -1
  149. package/dist/src/components/combobox/combobox-icon.css +0 -11
  150. package/dist/src/components/combobox/combobox-icon.d.ts +0 -2
  151. package/dist/src/components/combobox/combobox-icon.jsx +0 -12
  152. package/dist/src/components/combobox/combobox-icon.jsx.map +0 -1
  153. package/dist/src/components/combobox/combobox-input.css +0 -32
  154. package/dist/src/components/combobox/combobox-input.d.ts +0 -3
  155. package/dist/src/components/combobox/combobox-input.jsx +0 -101
  156. package/dist/src/components/combobox/combobox-input.jsx.map +0 -1
  157. package/dist/src/components/combobox/combobox-item-indicator.css +0 -11
  158. package/dist/src/components/combobox/combobox-item-indicator.d.ts +0 -2
  159. package/dist/src/components/combobox/combobox-item-indicator.jsx +0 -16
  160. package/dist/src/components/combobox/combobox-item-indicator.jsx.map +0 -1
  161. package/dist/src/components/combobox/combobox-item-label.d.ts +0 -2
  162. package/dist/src/components/combobox/combobox-item-label.jsx +0 -13
  163. package/dist/src/components/combobox/combobox-item-label.jsx.map +0 -1
  164. package/dist/src/components/combobox/combobox-item.css +0 -48
  165. package/dist/src/components/combobox/combobox-item.d.ts +0 -3
  166. package/dist/src/components/combobox/combobox-item.jsx +0 -37
  167. package/dist/src/components/combobox/combobox-item.jsx.map +0 -1
  168. package/dist/src/components/combobox/combobox-listbox.css +0 -21
  169. package/dist/src/components/combobox/combobox-listbox.d.ts +0 -2
  170. package/dist/src/components/combobox/combobox-listbox.jsx +0 -39
  171. package/dist/src/components/combobox/combobox-listbox.jsx.map +0 -1
  172. package/dist/src/components/combobox/combobox-portal.d.ts +0 -2
  173. package/dist/src/components/combobox/combobox-portal.jsx +0 -6
  174. package/dist/src/components/combobox/combobox-portal.jsx.map +0 -1
  175. package/dist/src/components/combobox/combobox-root.css +0 -12
  176. package/dist/src/components/combobox/combobox-root.d.ts +0 -3
  177. package/dist/src/components/combobox/combobox-root.jsx +0 -407
  178. package/dist/src/components/combobox/combobox-root.jsx.map +0 -1
  179. package/dist/src/components/combobox/combobox-trigger.css +0 -31
  180. package/dist/src/components/combobox/combobox-trigger.d.ts +0 -3
  181. package/dist/src/components/combobox/combobox-trigger.jsx +0 -30
  182. package/dist/src/components/combobox/combobox-trigger.jsx.map +0 -1
  183. package/dist/src/components/combobox/combobox.d.ts +0 -43
  184. package/dist/src/components/combobox/combobox.jsx +0 -39
  185. package/dist/src/components/combobox/combobox.jsx.map +0 -1
  186. package/dist/src/components/combobox/context.d.ts +0 -47
  187. package/dist/src/components/combobox/context.js +0 -18
  188. package/dist/src/components/combobox/context.js.map +0 -1
  189. package/dist/src/components/combobox/index.d.ts +0 -2
  190. package/dist/src/components/combobox/index.js +0 -3
  191. package/dist/src/components/combobox/index.js.map +0 -1
  192. package/dist/src/components/combobox/types.d.ts +0 -68
  193. package/dist/src/components/combobox/types.js +0 -1
  194. package/dist/src/components/combobox/types.js.map +0 -1
  195. package/dist/src/components/combobox/util.d.ts +0 -6
  196. package/dist/src/components/combobox/util.js +0 -58
  197. package/dist/src/components/combobox/util.js.map +0 -1
  198. package/dist/src/components/dialog/class.d.ts +0 -18
  199. package/dist/src/components/dialog/class.js +0 -18
  200. package/dist/src/components/dialog/class.js.map +0 -1
  201. package/dist/src/components/dialog/dialog-close-button.css +0 -48
  202. package/dist/src/components/dialog/dialog-content.css +0 -89
  203. package/dist/src/components/dialog/dialog-description.css +0 -6
  204. package/dist/src/components/dialog/dialog-header.css +0 -12
  205. package/dist/src/components/dialog/dialog-overlay.css +0 -43
  206. package/dist/src/components/dialog/dialog-positioner.css +0 -14
  207. package/dist/src/components/dialog/dialog-title.css +0 -6
  208. package/dist/src/components/dialog/dialog-trigger.css +0 -63
  209. package/dist/src/components/dialog/dialog.d.ts +0 -50
  210. package/dist/src/components/dialog/dialog.jsx +0 -89
  211. package/dist/src/components/dialog/dialog.jsx.map +0 -1
  212. package/dist/src/components/dialog/index.d.ts +0 -2
  213. package/dist/src/components/dialog/index.js +0 -3
  214. package/dist/src/components/dialog/index.js.map +0 -1
  215. package/dist/src/components/dropdown-menu/class.d.ts +0 -16
  216. package/dist/src/components/dropdown-menu/class.js +0 -17
  217. package/dist/src/components/dropdown-menu/class.js.map +0 -1
  218. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.css +0 -7
  219. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.d.ts +0 -3
  220. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx +0 -10
  221. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx.map +0 -1
  222. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.css +0 -38
  223. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +0 -3
  224. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx +0 -10
  225. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx.map +0 -1
  226. package/dist/src/components/dropdown-menu/dropdown-menu-content.css +0 -50
  227. package/dist/src/components/dropdown-menu/dropdown-menu-content.d.ts +0 -3
  228. package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx +0 -10
  229. package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx.map +0 -1
  230. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.css +0 -15
  231. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.d.ts +0 -3
  232. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx +0 -10
  233. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx.map +0 -1
  234. package/dist/src/components/dropdown-menu/dropdown-menu-group.d.ts +0 -2
  235. package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx +0 -7
  236. package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx.map +0 -1
  237. package/dist/src/components/dropdown-menu/dropdown-menu-icon.css +0 -21
  238. package/dist/src/components/dropdown-menu/dropdown-menu-icon.d.ts +0 -3
  239. package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx +0 -10
  240. package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx.map +0 -1
  241. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.css +0 -12
  242. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.d.ts +0 -3
  243. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx +0 -10
  244. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx.map +0 -1
  245. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.css +0 -18
  246. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.d.ts +0 -3
  247. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx +0 -11
  248. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx.map +0 -1
  249. package/dist/src/components/dropdown-menu/dropdown-menu-item.css +0 -37
  250. package/dist/src/components/dropdown-menu/dropdown-menu-item.d.ts +0 -3
  251. package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx +0 -10
  252. package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx.map +0 -1
  253. package/dist/src/components/dropdown-menu/dropdown-menu-portal.d.ts +0 -2
  254. package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx +0 -5
  255. package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx.map +0 -1
  256. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.d.ts +0 -2
  257. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx +0 -7
  258. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx.map +0 -1
  259. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.css +0 -38
  260. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -3
  261. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx +0 -10
  262. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx.map +0 -1
  263. package/dist/src/components/dropdown-menu/dropdown-menu-root.d.ts +0 -2
  264. package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx +0 -5
  265. package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx.map +0 -1
  266. package/dist/src/components/dropdown-menu/dropdown-menu-separator.css +0 -11
  267. package/dist/src/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -3
  268. package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx +0 -10
  269. package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx.map +0 -1
  270. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.css +0 -26
  271. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -3
  272. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx +0 -10
  273. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx.map +0 -1
  274. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.css +0 -43
  275. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -3
  276. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx +0 -10
  277. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx.map +0 -1
  278. package/dist/src/components/dropdown-menu/dropdown-menu-sub.d.ts +0 -2
  279. package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx +0 -5
  280. package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx.map +0 -1
  281. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.css +0 -7
  282. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -3
  283. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx +0 -16
  284. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx.map +0 -1
  285. package/dist/src/components/dropdown-menu/dropdown-menu.d.ts +0 -43
  286. package/dist/src/components/dropdown-menu/dropdown-menu.jsx +0 -39
  287. package/dist/src/components/dropdown-menu/dropdown-menu.jsx.map +0 -1
  288. package/dist/src/components/dropdown-menu/index.d.ts +0 -21
  289. package/dist/src/components/dropdown-menu/index.js +0 -22
  290. package/dist/src/components/dropdown-menu/index.js.map +0 -1
  291. package/dist/src/components/dropdown-menu/types.d.ts +0 -21
  292. package/dist/src/components/dropdown-menu/types.js +0 -1
  293. package/dist/src/components/dropdown-menu/types.js.map +0 -1
  294. package/dist/src/components/input/class.d.ts +0 -3
  295. package/dist/src/components/input/class.js +0 -4
  296. package/dist/src/components/input/class.js.map +0 -1
  297. package/dist/src/components/input/index.d.ts +0 -2
  298. package/dist/src/components/input/index.js +0 -3
  299. package/dist/src/components/input/index.js.map +0 -1
  300. package/dist/src/components/input/input.css +0 -34
  301. package/dist/src/components/input/input.d.ts +0 -6
  302. package/dist/src/components/input/input.jsx +0 -10
  303. package/dist/src/components/input/input.jsx.map +0 -1
  304. package/dist/src/components/label/class.d.ts +0 -3
  305. package/dist/src/components/label/class.js +0 -4
  306. package/dist/src/components/label/class.js.map +0 -1
  307. package/dist/src/components/label/index.d.ts +0 -2
  308. package/dist/src/components/label/index.js +0 -3
  309. package/dist/src/components/label/index.js.map +0 -1
  310. package/dist/src/components/label/label.css +0 -16
  311. package/dist/src/components/label/label.d.ts +0 -6
  312. package/dist/src/components/label/label.jsx +0 -12
  313. package/dist/src/components/label/label.jsx.map +0 -1
  314. package/dist/src/components/progress-bar/class.d.ts +0 -4
  315. package/dist/src/components/progress-bar/class.js +0 -5
  316. package/dist/src/components/progress-bar/class.js.map +0 -1
  317. package/dist/src/components/progress-bar/index.d.ts +0 -2
  318. package/dist/src/components/progress-bar/index.js +0 -3
  319. package/dist/src/components/progress-bar/index.js.map +0 -1
  320. package/dist/src/components/progress-bar/progress-bar.css +0 -43
  321. package/dist/src/components/progress-bar/progress-bar.d.ts +0 -9
  322. package/dist/src/components/progress-bar/progress-bar.jsx +0 -24
  323. package/dist/src/components/progress-bar/progress-bar.jsx.map +0 -1
  324. package/dist/src/components/radio/class.d.ts +0 -8
  325. package/dist/src/components/radio/class.js +0 -9
  326. package/dist/src/components/radio/class.js.map +0 -1
  327. package/dist/src/components/radio/context.d.ts +0 -9
  328. package/dist/src/components/radio/context.js +0 -6
  329. package/dist/src/components/radio/context.js.map +0 -1
  330. package/dist/src/components/radio/index.d.ts +0 -6
  331. package/dist/src/components/radio/index.js +0 -7
  332. package/dist/src/components/radio/index.js.map +0 -1
  333. package/dist/src/components/radio/radio-group.css +0 -9
  334. package/dist/src/components/radio/radio-group.d.ts +0 -3
  335. package/dist/src/components/radio/radio-group.jsx +0 -33
  336. package/dist/src/components/radio/radio-group.jsx.map +0 -1
  337. package/dist/src/components/radio/radio-root.css +0 -75
  338. package/dist/src/components/radio/radio-root.d.ts +0 -4
  339. package/dist/src/components/radio/radio-root.jsx +0 -51
  340. package/dist/src/components/radio/radio-root.jsx.map +0 -1
  341. package/dist/src/components/radio/radio.d.ts +0 -11
  342. package/dist/src/components/radio/radio.jsx +0 -7
  343. package/dist/src/components/radio/radio.jsx.map +0 -1
  344. package/dist/src/components/radio/types.d.ts +0 -16
  345. package/dist/src/components/radio/types.js +0 -1
  346. package/dist/src/components/radio/types.js.map +0 -1
  347. package/dist/src/components/select/class.d.ts +0 -5
  348. package/dist/src/components/select/class.js +0 -6
  349. package/dist/src/components/select/class.js.map +0 -1
  350. package/dist/src/components/select/index.d.ts +0 -2
  351. package/dist/src/components/select/index.js +0 -3
  352. package/dist/src/components/select/index.js.map +0 -1
  353. package/dist/src/components/select/select.css +0 -76
  354. package/dist/src/components/select/select.d.ts +0 -6
  355. package/dist/src/components/select/select.jsx +0 -16
  356. package/dist/src/components/select/select.jsx.map +0 -1
  357. package/dist/src/components/slider/class.d.ts +0 -3
  358. package/dist/src/components/slider/class.js +0 -4
  359. package/dist/src/components/slider/class.js.map +0 -1
  360. package/dist/src/components/slider/index.d.ts +0 -2
  361. package/dist/src/components/slider/index.js +0 -3
  362. package/dist/src/components/slider/index.js.map +0 -1
  363. package/dist/src/components/slider/slider.css +0 -83
  364. package/dist/src/components/slider/slider.d.ts +0 -7
  365. package/dist/src/components/slider/slider.jsx +0 -19
  366. package/dist/src/components/slider/slider.jsx.map +0 -1
  367. package/dist/src/components/spinner/class.d.ts +0 -10
  368. package/dist/src/components/spinner/class.js +0 -10
  369. package/dist/src/components/spinner/class.js.map +0 -1
  370. package/dist/src/components/spinner/index.d.ts +0 -2
  371. package/dist/src/components/spinner/index.js +0 -3
  372. package/dist/src/components/spinner/index.js.map +0 -1
  373. package/dist/src/components/spinner/spinner.css +0 -51
  374. package/dist/src/components/spinner/spinner.d.ts +0 -9
  375. package/dist/src/components/spinner/spinner.jsx +0 -22
  376. package/dist/src/components/spinner/spinner.jsx.map +0 -1
  377. package/dist/src/components/switch/class.d.ts +0 -7
  378. package/dist/src/components/switch/class.js +0 -8
  379. package/dist/src/components/switch/class.js.map +0 -1
  380. package/dist/src/components/switch/index.d.ts +0 -2
  381. package/dist/src/components/switch/index.js +0 -3
  382. package/dist/src/components/switch/index.js.map +0 -1
  383. package/dist/src/components/switch/switch.css +0 -90
  384. package/dist/src/components/switch/switch.d.ts +0 -9
  385. package/dist/src/components/switch/switch.jsx +0 -28
  386. package/dist/src/components/switch/switch.jsx.map +0 -1
  387. package/dist/src/components/table/class.d.ts +0 -10
  388. package/dist/src/components/table/class.js +0 -11
  389. package/dist/src/components/table/class.js.map +0 -1
  390. package/dist/src/components/table/index.d.ts +0 -11
  391. package/dist/src/components/table/index.js +0 -12
  392. package/dist/src/components/table/index.js.map +0 -1
  393. package/dist/src/components/table/table-body.d.ts +0 -2
  394. package/dist/src/components/table/table-body.jsx +0 -10
  395. package/dist/src/components/table/table-body.jsx.map +0 -1
  396. package/dist/src/components/table/table-caption.css +0 -11
  397. package/dist/src/components/table/table-caption.d.ts +0 -3
  398. package/dist/src/components/table/table-caption.jsx +0 -11
  399. package/dist/src/components/table/table-caption.jsx.map +0 -1
  400. package/dist/src/components/table/table-cell.css +0 -12
  401. package/dist/src/components/table/table-cell.d.ts +0 -3
  402. package/dist/src/components/table/table-cell.jsx +0 -11
  403. package/dist/src/components/table/table-cell.jsx.map +0 -1
  404. package/dist/src/components/table/table-footer.css +0 -15
  405. package/dist/src/components/table/table-footer.d.ts +0 -3
  406. package/dist/src/components/table/table-footer.jsx +0 -11
  407. package/dist/src/components/table/table-footer.jsx.map +0 -1
  408. package/dist/src/components/table/table-head.css +0 -16
  409. package/dist/src/components/table/table-head.d.ts +0 -3
  410. package/dist/src/components/table/table-head.jsx +0 -11
  411. package/dist/src/components/table/table-head.jsx.map +0 -1
  412. package/dist/src/components/table/table-header.d.ts +0 -2
  413. package/dist/src/components/table/table-header.jsx +0 -10
  414. package/dist/src/components/table/table-header.jsx.map +0 -1
  415. package/dist/src/components/table/table-root.css +0 -12
  416. package/dist/src/components/table/table-root.d.ts +0 -3
  417. package/dist/src/components/table/table-root.jsx +0 -11
  418. package/dist/src/components/table/table-root.jsx.map +0 -1
  419. package/dist/src/components/table/table-row.css +0 -6
  420. package/dist/src/components/table/table-row.d.ts +0 -3
  421. package/dist/src/components/table/table-row.jsx +0 -11
  422. package/dist/src/components/table/table-row.jsx.map +0 -1
  423. package/dist/src/components/table/table.d.ts +0 -23
  424. package/dist/src/components/table/table.jsx +0 -19
  425. package/dist/src/components/table/table.jsx.map +0 -1
  426. package/dist/src/components/table/types.d.ts +0 -9
  427. package/dist/src/components/table/types.js +0 -1
  428. package/dist/src/components/table/types.js.map +0 -1
  429. package/dist/src/components/tabs/class.d.ts +0 -12
  430. package/dist/src/components/tabs/class.js +0 -12
  431. package/dist/src/components/tabs/class.js.map +0 -1
  432. package/dist/src/components/tabs/index.d.ts +0 -2
  433. package/dist/src/components/tabs/index.js +0 -3
  434. package/dist/src/components/tabs/index.js.map +0 -1
  435. package/dist/src/components/tabs/tabs-content.css +0 -24
  436. package/dist/src/components/tabs/tabs-indicator.css +0 -32
  437. package/dist/src/components/tabs/tabs-list.css +0 -26
  438. package/dist/src/components/tabs/tabs-root.css +0 -34
  439. package/dist/src/components/tabs/tabs-trigger.css +0 -58
  440. package/dist/src/components/tabs/tabs.d.ts +0 -27
  441. package/dist/src/components/tabs/tabs.jsx +0 -47
  442. package/dist/src/components/tabs/tabs.jsx.map +0 -1
  443. package/dist/src/components/textarea/class.d.ts +0 -3
  444. package/dist/src/components/textarea/class.js +0 -4
  445. package/dist/src/components/textarea/class.js.map +0 -1
  446. package/dist/src/components/textarea/index.d.ts +0 -2
  447. package/dist/src/components/textarea/index.js +0 -3
  448. package/dist/src/components/textarea/index.js.map +0 -1
  449. package/dist/src/components/textarea/textarea.css +0 -46
  450. package/dist/src/components/textarea/textarea.d.ts +0 -6
  451. package/dist/src/components/textarea/textarea.jsx +0 -10
  452. package/dist/src/components/textarea/textarea.jsx.map +0 -1
  453. package/dist/src/components/xstack/class.d.ts +0 -12
  454. package/dist/src/components/xstack/class.js +0 -12
  455. package/dist/src/components/xstack/class.js.map +0 -1
  456. package/dist/src/components/xstack/index.d.ts +0 -1
  457. package/dist/src/components/xstack/index.js +0 -1
  458. package/dist/src/components/xstack/index.js.map +0 -1
  459. package/dist/src/components/xstack/xstack.css +0 -34
  460. package/dist/src/components/xstack/xstack.d.ts +0 -9
  461. package/dist/src/components/xstack/xstack.jsx +0 -15
  462. package/dist/src/components/xstack/xstack.jsx.map +0 -1
  463. package/dist/src/components/ystack/class.d.ts +0 -11
  464. package/dist/src/components/ystack/class.js +0 -11
  465. package/dist/src/components/ystack/class.js.map +0 -1
  466. package/dist/src/components/ystack/index.d.ts +0 -2
  467. package/dist/src/components/ystack/index.js +0 -3
  468. package/dist/src/components/ystack/index.js.map +0 -1
  469. package/dist/src/components/ystack/ystack.css +0 -31
  470. package/dist/src/components/ystack/ystack.d.ts +0 -9
  471. package/dist/src/components/ystack/ystack.jsx +0 -15
  472. package/dist/src/components/ystack/ystack.jsx.map +0 -1
  473. package/dist/src/icons/check-icon.d.ts +0 -2
  474. package/dist/src/icons/check-icon.jsx +0 -8
  475. package/dist/src/icons/check-icon.jsx.map +0 -1
  476. package/dist/src/icons/chevron-down-icon.d.ts +0 -2
  477. package/dist/src/icons/chevron-down-icon.jsx +0 -8
  478. package/dist/src/icons/chevron-down-icon.jsx.map +0 -1
  479. package/dist/src/icons/chevron-right-icon.d.ts +0 -2
  480. package/dist/src/icons/chevron-right-icon.jsx +0 -8
  481. package/dist/src/icons/chevron-right-icon.jsx.map +0 -1
  482. package/dist/src/icons/dot-filled-icon.d.ts +0 -2
  483. package/dist/src/icons/dot-filled-icon.jsx +0 -8
  484. package/dist/src/icons/dot-filled-icon.jsx.map +0 -1
  485. package/dist/src/icons/index.d.ts +0 -5
  486. package/dist/src/icons/index.js +0 -6
  487. package/dist/src/icons/index.js.map +0 -1
  488. package/dist/src/icons/types.d.ts +0 -5
  489. package/dist/src/icons/types.js +0 -1
  490. package/dist/src/icons/types.js.map +0 -1
  491. package/dist/src/index.d.ts +0 -19
  492. package/dist/src/index.js +0 -20
  493. package/dist/src/index.js.map +0 -1
  494. package/dist/src/lib/reflect.d.ts +0 -1
  495. package/dist/src/lib/reflect.js +0 -4
  496. package/dist/src/lib/reflect.js.map +0 -1
  497. package/dist/src/style/colors.css +0 -267
  498. package/dist/src/style/flatline.css +0 -12
  499. package/dist/src/style/reset.css +0 -175
  500. package/dist/src/style/tokens.css +0 -139
@@ -1,21 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { mergeProps, splitProps } from 'solid-js';
3
- import { buttonClass } from './class';
4
- import './button.css';
5
- export function Button(props) {
6
- const merged = mergeProps({
7
- type: 'button',
8
- variant: 'solid',
9
- color: 'primary',
10
- }, props);
11
- const [local, rest] = splitProps(merged, ['class', 'children', 'variant', 'color']);
12
- const rootClass = () => {
13
- const variantClass = buttonClass.variant[local.variant];
14
- const colorClass = buttonClass.color[local.color];
15
- return clsx(buttonClass.root, variantClass, colorClass, local.class);
16
- };
17
- return (<button class={rootClass()} {...rest}>
18
- {local.children}
19
- </button>);
20
- }
21
- //# sourceMappingURL=button.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.jsx","sourceRoot":"","sources":["../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAwC,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,cAAc,CAAC;AAStB,MAAM,UAAU,MAAM,CAAC,KAAkB;IACxC,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,SAAS;KACP,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpF,MAAM,SAAS,GAAG,GAAG,EAAE;QACtB,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,MAAM,CACN,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,MAAM,CAAC,CACT,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, mergeProps, splitProps } from 'solid-js';\nimport { type ButtonColor, type ButtonVariant, buttonClass } from './class';\nimport './button.css';\n\nexport type ButtonBaseProps = JSX.ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport interface ButtonProps extends ButtonBaseProps {\n\tvariant?: ButtonVariant;\n\tcolor?: ButtonColor;\n}\n\nexport function Button(props: ButtonProps) {\n\tconst merged = mergeProps(\n\t\t{\n\t\t\ttype: 'button',\n\t\t\tvariant: 'solid',\n\t\t\tcolor: 'primary',\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, ['class', 'children', 'variant', 'color']);\n\n\tconst rootClass = () => {\n\t\tconst variantClass = buttonClass.variant[local.variant];\n\t\tconst colorClass = buttonClass.color[local.color];\n\n\t\treturn clsx(buttonClass.root, variantClass, colorClass, local.class);\n\t};\n\n\treturn (\n\t\t<button\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</button>\n\t);\n}\n"]}
@@ -1,16 +0,0 @@
1
- export declare const buttonClass: {
2
- readonly root: 'fl-button';
3
- readonly variant: {
4
- readonly solid: '--variant-solid';
5
- readonly light: '--variant-light';
6
- readonly ghost: '--variant-ghost';
7
- };
8
- readonly color: {
9
- readonly primary: '--color-primary';
10
- readonly secondary: '--color-secondary';
11
- readonly success: '--color-success';
12
- readonly danger: '--color-danger';
13
- };
14
- };
15
- export type ButtonVariant = keyof typeof buttonClass.variant;
16
- export type ButtonColor = keyof typeof buttonClass.color;
@@ -1,15 +0,0 @@
1
- export const buttonClass = {
2
- root: 'fl-button',
3
- variant: {
4
- solid: '--variant-solid',
5
- light: '--variant-light',
6
- ghost: '--variant-ghost',
7
- },
8
- color: {
9
- primary: '--color-primary',
10
- secondary: '--color-secondary',
11
- success: '--color-success',
12
- danger: '--color-danger',
13
- },
14
- };
15
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/button/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE;QACR,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;KACxB;IACD,KAAK,EAAE;QACN,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,mBAAmB;QAC9B,OAAO,EAAE,iBAAiB;QAC1B,MAAM,EAAE,gBAAgB;KACxB;CACQ,CAAC","sourcesContent":["export const buttonClass = {\n\troot: 'fl-button',\n\tvariant: {\n\t\tsolid: '--variant-solid',\n\t\tlight: '--variant-light',\n\t\tghost: '--variant-ghost',\n\t},\n\tcolor: {\n\t\tprimary: '--color-primary',\n\t\tsecondary: '--color-secondary',\n\t\tsuccess: '--color-success',\n\t\tdanger: '--color-danger',\n\t},\n} as const;\n\nexport type ButtonVariant = keyof typeof buttonClass.variant;\nexport type ButtonColor = keyof typeof buttonClass.color;\n"]}
@@ -1,2 +0,0 @@
1
- export * from './button';
2
- export * from './class';
@@ -1,3 +0,0 @@
1
- export * from './button';
2
- export * from './class';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC","sourcesContent":["export * from './button';\nexport * from './class';\n"]}
@@ -1,15 +0,0 @@
1
- @layer components {
2
- .fl-card_action {
3
- /* layout */
4
- grid-column: 2;
5
- grid-row: 1 / 3;
6
- display: inline-flex;
7
- align-self: start;
8
- justify-self: end;
9
- align-items: center;
10
- justify-content: center;
11
-
12
- /* text */
13
- font-size: var(--fl-text-size-sm);
14
- }
15
- }
@@ -1,13 +0,0 @@
1
- @layer components {
2
- .fl-card_content {
3
- --fl-card-content-gap: 0;
4
-
5
- /* layout */
6
- display: flex;
7
- flex-direction: column;
8
- align-items: stretch;
9
-
10
- /* spacing */
11
- gap: calc(var(--fl-card-content-gap) * var(--fl-size-unit));
12
- }
13
- }
@@ -1,39 +0,0 @@
1
- @layer components {
2
- .fl-card_footer {
3
- --fl-card-footer-gap: var(--fl-size-2);
4
-
5
- /* layout */
6
- display: flex;
7
- flex-direction: row;
8
- align-items: center;
9
- justify-content: flex-start;
10
-
11
- /* spacing */
12
- gap: calc(var(--fl-card-footer-gap) * var(--fl-size-unit));
13
- }
14
-
15
- /* justify center */
16
- .fl-card_footer.--justify-center {
17
- justify-content: center;
18
- }
19
-
20
- /* justify right */
21
- .fl-card_footer.--justify-right {
22
- justify-content: flex-end;
23
- }
24
-
25
- /* justify space-between */
26
- .fl-card_footer.--justify-space-between {
27
- justify-content: space-between;
28
- }
29
-
30
- /* justify space-around */
31
- .fl-card_footer.--justify-space-around {
32
- justify-content: space-around;
33
- }
34
-
35
- /* justify space-evenly */
36
- .fl-card_footer.--justify-space-evenly {
37
- justify-content: space-evenly;
38
- }
39
- }
@@ -1,13 +0,0 @@
1
- @layer components {
2
- .fl-card_header {
3
- /* layout */
4
- display: grid;
5
- grid-template-columns: minmax(0, 1fr) auto;
6
- grid-template-rows: auto auto;
7
- align-items: start;
8
-
9
- /* spacing */
10
- column-gap: var(--fl-size-3);
11
- row-gap: var(--fl-size-1);
12
- }
13
- }
@@ -1,31 +0,0 @@
1
- @layer components {
2
- .fl-card {
3
- --fl-card-pad: var(--fl-size-4);
4
- --fl-card-bg-color: var(--fl-body-bg-color);
5
- --fl-card-border-color: var(--fl-input-border-color);
6
- --fl-card-border-size: var(--fl-input-border-size);
7
- --fl-card-border-radius: var(--fl-input-border-radius);
8
- --fl-card-text-color: var(--fl-body-text-color);
9
- --fl-card-shadow: var(--fl-shadow-sm);
10
- --fl-card-gap: 6;
11
-
12
- /* layout */
13
- display: flex;
14
- flex-direction: column;
15
-
16
- /* spacing */
17
- gap: calc(var(--fl-card-gap) * var(--fl-size-unit));
18
- padding: var(--fl-card-pad);
19
-
20
- /* background */
21
- background: var(--fl-card-bg-color);
22
- border: var(--fl-card-border-size) solid var(--fl-card-border-color);
23
- border-radius: var(--fl-card-border-radius);
24
-
25
- /* text */
26
- color: var(--fl-card-text-color);
27
-
28
- /* effects */
29
- box-shadow: var(--fl-card-shadow);
30
- }
31
- }
@@ -1,12 +0,0 @@
1
- @layer components {
2
- .fl-card_subtitle {
3
- /* layout */
4
- grid-column: 1;
5
- grid-row: 2;
6
-
7
- /* text */
8
- font: var(--fl-font-subtitle);
9
- font-size: var(--fl-text-size-sm);
10
- color: var(--fl-body-muted-text-color);
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- @layer components {
2
- .fl-card_title {
3
- --fl-card-title-color: var(--fl-body-text-color);
4
-
5
- /* layout */
6
- grid-column: 1;
7
- grid-row: 1;
8
-
9
- /* text */
10
- font: var(--fl-font-title);
11
- color: var(--fl-card-title-color);
12
- }
13
-
14
- /* primary color */
15
- .fl-card_title.--color-primary {
16
- --fl-card-title-color: var(--fl-primary-color);
17
- }
18
-
19
- /* secondary color */
20
- .fl-card_title.--color-secondary {
21
- --fl-card-title-color: var(--fl-secondary-text-color);
22
- }
23
-
24
- /* success color */
25
- .fl-card_title.--color-success {
26
- --fl-card-title-color: var(--fl-success-color);
27
- }
28
-
29
- /* danger color */
30
- .fl-card_title.--color-danger {
31
- --fl-card-title-color: var(--fl-danger-color);
32
- }
33
- }
@@ -1,42 +0,0 @@
1
- import { type JSX } from 'solid-js';
2
- import { type CardFooterJustify, type CardTitleColor } from './class';
3
- import './card-root.css';
4
- import './card-header.css';
5
- import './card-title.css';
6
- import './card-subtitle.css';
7
- import './card-action.css';
8
- import './card-content.css';
9
- import './card-footer.css';
10
- export type CardBaseProps = JSX.HTMLAttributes<HTMLDivElement>;
11
- export type CardHeaderProps = JSX.HTMLAttributes<HTMLDivElement>;
12
- export type CardSubtitleProps = JSX.HTMLAttributes<HTMLParagraphElement>;
13
- export type CardActionProps = JSX.HTMLAttributes<HTMLDivElement>;
14
- export interface CardProps extends CardBaseProps {
15
- gap?: number | string;
16
- }
17
- export interface CardTitleProps extends JSX.HTMLAttributes<HTMLHeadingElement> {
18
- color?: CardTitleColor;
19
- }
20
- export interface CardContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
21
- gap?: number | string;
22
- }
23
- export interface CardFooterProps extends JSX.HTMLAttributes<HTMLDivElement> {
24
- gap?: number | string;
25
- justify?: CardFooterJustify;
26
- }
27
- declare function CardRoot(props: CardProps): JSX.Element;
28
- export declare function CardHeader(props: CardHeaderProps): JSX.Element;
29
- export declare function CardTitle(props: CardTitleProps): JSX.Element;
30
- export declare function CardSubtitle(props: CardSubtitleProps): JSX.Element;
31
- export declare function CardAction(props: CardActionProps): JSX.Element;
32
- export declare function CardContent(props: CardContentProps): JSX.Element;
33
- export declare function CardFooter(props: CardFooterProps): JSX.Element;
34
- export declare const Card: typeof CardRoot & {
35
- Header: typeof CardHeader;
36
- Title: typeof CardTitle;
37
- Subtitle: typeof CardSubtitle;
38
- Action: typeof CardAction;
39
- Content: typeof CardContent;
40
- Footer: typeof CardFooter;
41
- };
42
- export {};
@@ -1,86 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { splitProps } from 'solid-js';
3
- import { cardClass } from './class';
4
- import './card-root.css';
5
- import './card-header.css';
6
- import './card-title.css';
7
- import './card-subtitle.css';
8
- import './card-action.css';
9
- import './card-content.css';
10
- import './card-footer.css';
11
- function mergeStyleVar(style, variable, value) {
12
- if (typeof style === 'string') {
13
- if (value === undefined) {
14
- return style;
15
- }
16
- return `${variable}: ${value}; ${style}`;
17
- }
18
- return {
19
- [variable]: value,
20
- ...style,
21
- };
22
- }
23
- function CardRoot(props) {
24
- const [local, rest] = splitProps(props, ['class', 'children', 'gap', 'style']);
25
- const rootClass = () => clsx(cardClass.root, local.class);
26
- return (<div class={rootClass()} style={mergeStyleVar(local.style, cardClass.rootGapVar, local.gap)} {...rest}>
27
- {local.children}
28
- </div>);
29
- }
30
- export function CardHeader(props) {
31
- const [local, rest] = splitProps(props, ['class', 'children']);
32
- const rootClass = () => clsx(cardClass.header, local.class);
33
- return (<div class={rootClass()} {...rest}>
34
- {local.children}
35
- </div>);
36
- }
37
- export function CardTitle(props) {
38
- const [local, rest] = splitProps(props, ['class', 'children', 'color']);
39
- const rootClass = () => {
40
- const colorClass = local.color ? cardClass.titleColor[local.color] : undefined;
41
- return clsx(cardClass.title, colorClass, local.class);
42
- };
43
- return (<h3 class={rootClass()} {...rest}>
44
- {local.children}
45
- </h3>);
46
- }
47
- export function CardSubtitle(props) {
48
- const [local, rest] = splitProps(props, ['class', 'children']);
49
- const rootClass = () => clsx(cardClass.subtitle, local.class);
50
- return (<p class={rootClass()} {...rest}>
51
- {local.children}
52
- </p>);
53
- }
54
- export function CardAction(props) {
55
- const [local, rest] = splitProps(props, ['class', 'children']);
56
- const rootClass = () => clsx(cardClass.action, local.class);
57
- return (<div class={rootClass()} {...rest}>
58
- {local.children}
59
- </div>);
60
- }
61
- export function CardContent(props) {
62
- const [local, rest] = splitProps(props, ['class', 'children', 'gap', 'style']);
63
- const rootClass = () => clsx(cardClass.content, local.class);
64
- return (<div class={rootClass()} style={mergeStyleVar(local.style, cardClass.contentGapVar, local.gap)} {...rest}>
65
- {local.children}
66
- </div>);
67
- }
68
- export function CardFooter(props) {
69
- const [local, rest] = splitProps(props, ['class', 'children', 'gap', 'justify', 'style']);
70
- const rootClass = () => {
71
- const justifyClass = local.justify ? cardClass.footerJustify[local.justify] : undefined;
72
- return clsx(cardClass.footer, justifyClass, local.class);
73
- };
74
- return (<div class={rootClass()} style={mergeStyleVar(local.style, cardClass.footerGapVar, local.gap)} {...rest}>
75
- {local.children}
76
- </div>);
77
- }
78
- export const Card = Object.assign(CardRoot, {
79
- Header: CardHeader,
80
- Title: CardTitle,
81
- Subtitle: CardSubtitle,
82
- Action: CardAction,
83
- Content: CardContent,
84
- Footer: CardFooter,
85
- });
86
- //# sourceMappingURL=card.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card.jsx","sourceRoot":"","sources":["../../../../src/components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAA+C,SAAS,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAE3B,SAAS,aAAa,CACrB,KAA6C,EAC7C,QAAgB,EAChB,KAAkC;IAElC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,GAAG,QAAQ,KAAK,KAAK,KAAK,KAAK,EAAE,CAAC;I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OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CACrE,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,UAAU;CAClB,CAAC,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { type CardFooterJustify, type CardTitleColor, cardClass } from './class';\nimport './card-root.css';\nimport './card-header.css';\nimport './card-title.css';\nimport './card-subtitle.css';\nimport './card-action.css';\nimport './card-content.css';\nimport './card-footer.css';\n\nfunction mergeStyleVar(\n\tstyle: JSX.CSSProperties | string | undefined,\n\tvariable: string,\n\tvalue: number | string | undefined,\n) {\n\tif (typeof style === 'string') {\n\t\tif (value === undefined) {\n\t\t\treturn style;\n\t\t}\n\n\t\treturn `${variable}: ${value}; ${style}`;\n\t}\n\n\treturn {\n\t\t[variable]: value,\n\t\t...style,\n\t};\n}\n\nexport type CardBaseProps = JSX.HTMLAttributes<HTMLDivElement>;\nexport type CardHeaderProps = JSX.HTMLAttributes<HTMLDivElement>;\nexport type CardSubtitleProps = JSX.HTMLAttributes<HTMLParagraphElement>;\nexport type CardActionProps = JSX.HTMLAttributes<HTMLDivElement>;\n\nexport interface CardProps extends CardBaseProps {\n\tgap?: number | string;\n}\n\nexport interface CardTitleProps extends JSX.HTMLAttributes<HTMLHeadingElement> {\n\tcolor?: CardTitleColor;\n}\n\nexport interface CardContentProps extends JSX.HTMLAttributes<HTMLDivElement> {\n\tgap?: number | string;\n}\n\nexport interface CardFooterProps extends JSX.HTMLAttributes<HTMLDivElement> {\n\tgap?: number | string;\n\tjustify?: CardFooterJustify;\n}\n\nfunction CardRoot(props: CardProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'gap', 'style']);\n\n\tconst rootClass = () => clsx(cardClass.root, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\tstyle={mergeStyleVar(local.style, cardClass.rootGapVar, local.gap)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</div>\n\t);\n}\n\nexport function CardHeader(props: CardHeaderProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\n\tconst rootClass = () => clsx(cardClass.header, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</div>\n\t);\n}\n\nexport function CardTitle(props: CardTitleProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'color']);\n\n\tconst rootClass = () => {\n\t\tconst colorClass = local.color ? cardClass.titleColor[local.color] : undefined;\n\n\t\treturn clsx(cardClass.title, colorClass, local.class);\n\t};\n\n\treturn (\n\t\t<h3\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</h3>\n\t);\n}\n\nexport function CardSubtitle(props: CardSubtitleProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\n\tconst rootClass = () => clsx(cardClass.subtitle, local.class);\n\n\treturn (\n\t\t<p\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</p>\n\t);\n}\n\nexport function CardAction(props: CardActionProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\n\tconst rootClass = () => clsx(cardClass.action, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</div>\n\t);\n}\n\nexport function CardContent(props: CardContentProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'gap', 'style']);\n\n\tconst rootClass = () => clsx(cardClass.content, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\tstyle={mergeStyleVar(local.style, cardClass.contentGapVar, local.gap)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</div>\n\t);\n}\n\nexport function CardFooter(props: CardFooterProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'gap', 'justify', 'style']);\n\n\tconst rootClass = () => {\n\t\tconst justifyClass = local.justify ? cardClass.footerJustify[local.justify] : undefined;\n\n\t\treturn clsx(cardClass.footer, justifyClass, local.class);\n\t};\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\tstyle={mergeStyleVar(local.style, cardClass.footerGapVar, local.gap)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</div>\n\t);\n}\n\nexport const Card = Object.assign(CardRoot, {\n\tHeader: CardHeader,\n\tTitle: CardTitle,\n\tSubtitle: CardSubtitle,\n\tAction: CardAction,\n\tContent: CardContent,\n\tFooter: CardFooter,\n});\n"]}
@@ -1,28 +0,0 @@
1
- export declare const cardClass: {
2
- readonly root: 'fl-card';
3
- readonly rootGapVar: '--fl-card-gap';
4
- readonly header: 'fl-card_header';
5
- readonly title: 'fl-card_title';
6
- readonly titleColor: {
7
- readonly primary: '--color-primary';
8
- readonly secondary: '--color-secondary';
9
- readonly success: '--color-success';
10
- readonly danger: '--color-danger';
11
- };
12
- readonly subtitle: 'fl-card_subtitle';
13
- readonly action: 'fl-card_action';
14
- readonly content: 'fl-card_content';
15
- readonly contentGapVar: '--fl-card-content-gap';
16
- readonly footer: 'fl-card_footer';
17
- readonly footerGapVar: '--fl-card-footer-gap';
18
- readonly footerJustify: {
19
- readonly left: '--justify-left';
20
- readonly center: '--justify-center';
21
- readonly right: '--justify-right';
22
- readonly 'space-between': '--justify-space-between';
23
- readonly 'space-around': '--justify-space-around';
24
- readonly 'space-evenly': '--justify-space-evenly';
25
- };
26
- };
27
- export type CardTitleColor = keyof typeof cardClass.titleColor;
28
- export type CardFooterJustify = keyof typeof cardClass.footerJustify;
@@ -1,27 +0,0 @@
1
- export const cardClass = {
2
- root: 'fl-card',
3
- rootGapVar: '--fl-card-gap',
4
- header: 'fl-card_header',
5
- title: 'fl-card_title',
6
- titleColor: {
7
- primary: '--color-primary',
8
- secondary: '--color-secondary',
9
- success: '--color-success',
10
- danger: '--color-danger',
11
- },
12
- subtitle: 'fl-card_subtitle',
13
- action: 'fl-card_action',
14
- content: 'fl-card_content',
15
- contentGapVar: '--fl-card-content-gap',
16
- footer: 'fl-card_footer',
17
- footerGapVar: '--fl-card-footer-gap',
18
- footerJustify: {
19
- left: '--justify-left',
20
- center: '--justify-center',
21
- right: '--justify-right',
22
- 'space-between': '--justify-space-between',
23
- 'space-around': '--justify-space-around',
24
- 'space-evenly': '--justify-space-evenly',
25
- },
26
- };
27
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/card/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,eAAe;IAC3B,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,eAAe;IACtB,UAAU,EAAE;QACX,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,mBAAmB;QAC9B,OAAO,EAAE,iBAAiB;QAC1B,MAAM,EAAE,gBAAgB;KACxB;IACD,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,iBAAiB;IAC1B,aAAa,EAAE,uBAAuB;IACtC,MAAM,EAAE,gBAAgB;IACxB,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE;QACd,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,kBAAkB;QAC1B,KAAK,EAAE,iBAAiB;QACxB,eAAe,EAAE,yBAAyB;QAC1C,cAAc,EAAE,wBAAwB;QACxC,cAAc,EAAE,wBAAwB;KACxC;CACQ,CAAC","sourcesContent":["export const cardClass = {\n\troot: 'fl-card',\n\trootGapVar: '--fl-card-gap',\n\theader: 'fl-card_header',\n\ttitle: 'fl-card_title',\n\ttitleColor: {\n\t\tprimary: '--color-primary',\n\t\tsecondary: '--color-secondary',\n\t\tsuccess: '--color-success',\n\t\tdanger: '--color-danger',\n\t},\n\tsubtitle: 'fl-card_subtitle',\n\taction: 'fl-card_action',\n\tcontent: 'fl-card_content',\n\tcontentGapVar: '--fl-card-content-gap',\n\tfooter: 'fl-card_footer',\n\tfooterGapVar: '--fl-card-footer-gap',\n\tfooterJustify: {\n\t\tleft: '--justify-left',\n\t\tcenter: '--justify-center',\n\t\tright: '--justify-right',\n\t\t'space-between': '--justify-space-between',\n\t\t'space-around': '--justify-space-around',\n\t\t'space-evenly': '--justify-space-evenly',\n\t},\n} as const;\n\nexport type CardTitleColor = keyof typeof cardClass.titleColor;\nexport type CardFooterJustify = keyof typeof cardClass.footerJustify;\n"]}
@@ -1,2 +0,0 @@
1
- export * from './card';
2
- export * from './class';
@@ -1,3 +0,0 @@
1
- export * from './card';
2
- export * from './class';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC","sourcesContent":["export * from './card';\nexport * from './class';\n"]}
@@ -1,9 +0,0 @@
1
- @layer components {
2
- .fl-checkbox-group {
3
- /* layout */
4
- display: grid;
5
-
6
- /* spacing */
7
- gap: var(--fl-size-2);
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- import type { CheckboxGroupProps } from './types';
2
- import './checkbox-group.css';
3
- export declare function CheckboxGroup(props: CheckboxGroupProps): import("solid-js").JSX.Element;
@@ -1,43 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { createSignal, createUniqueId, splitProps } from 'solid-js';
3
- import { checkboxClass } from './class';
4
- import { CheckboxGroupContext } from './context';
5
- import './checkbox-group.css';
6
- export function CheckboxGroup(props) {
7
- const generatedName = createUniqueId();
8
- const [local, rest] = splitProps(props, [
9
- 'class',
10
- 'children',
11
- 'value',
12
- 'defaultValue',
13
- 'name',
14
- 'disabled',
15
- 'onChange',
16
- ]);
17
- const [internalValue, setInternalValue] = createSignal(local.defaultValue ?? []);
18
- const values = () => local.value ?? internalValue();
19
- const name = () => local.name ?? generatedName;
20
- const disabled = () => Boolean(local.disabled);
21
- const toggleValue = (nextValue, checked) => {
22
- const current = values();
23
- let next = current;
24
- if (checked) {
25
- if (!current.includes(nextValue)) {
26
- next = [...current, nextValue];
27
- }
28
- }
29
- else {
30
- next = current.filter((value) => value !== nextValue);
31
- }
32
- if (local.value === undefined) {
33
- setInternalValue(next);
34
- }
35
- local.onChange?.(next);
36
- };
37
- return (<CheckboxGroupContext.Provider value={{ name, values, toggleValue, disabled }}>
38
- <div class={clsx(checkboxClass.group, local.class)} role="group" {...rest}>
39
- {local.children}
40
- </div>
41
- </CheckboxGroupContext.Provider>);
42
- }
43
- //# sourceMappingURL=checkbox-group.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox-group.jsx","sourceRoot":"","sources":["../../../../src/components/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,sBAAsB,C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;IAEF,OAAO,CACN,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAC7E;GAAA,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC9C,IAAI,CAAC,OAAO,CACZ,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,GAAG,CACN;EAAA,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAChC,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createSignal, createUniqueId, splitProps } from 'solid-js';\nimport { checkboxClass } from './class';\nimport { CheckboxGroupContext } from './context';\nimport type { CheckboxGroupProps } from './types';\nimport './checkbox-group.css';\n\nexport function CheckboxGroup(props: CheckboxGroupProps) {\n\tconst generatedName = createUniqueId();\n\tconst [local, rest] = splitProps(props, [\n\t\t'class',\n\t\t'children',\n\t\t'value',\n\t\t'defaultValue',\n\t\t'name',\n\t\t'disabled',\n\t\t'onChange',\n\t]);\n\tconst [internalValue, setInternalValue] = createSignal(local.defaultValue ?? []);\n\n\tconst values = () => local.value ?? internalValue();\n\tconst name = () => local.name ?? generatedName;\n\tconst disabled = () => Boolean(local.disabled);\n\tconst toggleValue = (nextValue: string, checked: boolean) => {\n\t\tconst current = values();\n\t\tlet next = current;\n\n\t\tif (checked) {\n\t\t\tif (!current.includes(nextValue)) {\n\t\t\t\tnext = [...current, nextValue];\n\t\t\t}\n\t\t} else {\n\t\t\tnext = current.filter((value) => value !== nextValue);\n\t\t}\n\n\t\tif (local.value === undefined) {\n\t\t\tsetInternalValue(next);\n\t\t}\n\n\t\tlocal.onChange?.(next);\n\t};\n\n\treturn (\n\t\t<CheckboxGroupContext.Provider value={{ name, values, toggleValue, disabled }}>\n\t\t\t<div\n\t\t\t\tclass={clsx(checkboxClass.group, local.class)}\n\t\t\t\trole=\"group\"\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children}\n\t\t\t</div>\n\t\t</CheckboxGroupContext.Provider>\n\t);\n}\n"]}
@@ -1,85 +0,0 @@
1
- @layer components {
2
- .fl-checkbox {
3
- /* layout */
4
- display: inline-flex;
5
- align-items: center;
6
-
7
- /* spacing */
8
- gap: var(--fl-size-2);
9
-
10
- /* pointer */
11
- cursor: pointer;
12
- user-select: none;
13
- }
14
-
15
- .fl-checkbox[data-disabled] {
16
- cursor: var(--fl-disabled-cursor);
17
- opacity: var(--fl-disabled-opacity);
18
- }
19
-
20
- .fl-checkbox .fl-checkbox_input {
21
- /* layout */
22
- position: absolute;
23
- opacity: 0;
24
- width: 1px;
25
- height: 1px;
26
- pointer-events: none;
27
- }
28
-
29
- .fl-checkbox .fl-checkbox_control {
30
- /* layout */
31
- display: inline-flex;
32
- align-items: center;
33
- justify-content: center;
34
- width: var(--fl-size-4);
35
- height: var(--fl-size-4);
36
-
37
- /* background */
38
- background: var(--fl-body-bg-color);
39
- border: var(--fl-input-border-size, var(--fl-border-size, 1px)) solid
40
- var(--fl-input-border-color, var(--fl-border-color));
41
- border-radius: var(--fl-radius-sm);
42
- color: var(--fl-secondary-text-color);
43
-
44
- /* effects */
45
- box-shadow: var(--fl-input-shadow);
46
- transition:
47
- background var(--fl-animation-duration) ease,
48
- border-color var(--fl-animation-duration) ease,
49
- color var(--fl-animation-duration) ease;
50
- }
51
-
52
- .fl-checkbox .fl-checkbox_indicator {
53
- /* layout */
54
- display: inline-flex;
55
- align-items: center;
56
- justify-content: center;
57
- width: 100%;
58
- height: 100%;
59
-
60
- /* effects */
61
- scale: 0;
62
- transition: scale var(--fl-animation-duration) ease;
63
- }
64
-
65
- .fl-checkbox .fl-checkbox_input:checked + .fl-checkbox_control {
66
- background: var(--fl-primary-color);
67
- border-color: color-mix(in oklab, var(--fl-primary-color), black 20%);
68
- color: var(--fl-primary-text-color);
69
- }
70
-
71
- .fl-checkbox .fl-checkbox_input:checked + .fl-checkbox_control .fl-checkbox_indicator {
72
- scale: 1;
73
- }
74
-
75
- .fl-checkbox .fl-checkbox_input:focus-visible + .fl-checkbox_control {
76
- outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
77
- outline-offset: var(--fl-focus-ring-offset);
78
- }
79
-
80
- .fl-checkbox .fl-checkbox_label {
81
- /* text */
82
- color: var(--fl-body-text-color);
83
- font-size: var(--fl-text-size-base);
84
- }
85
- }
@@ -1,4 +0,0 @@
1
- import { type JSX } from 'solid-js';
2
- import type { CheckboxProps } from './types';
3
- import './checkbox-root.css';
4
- export declare function CheckboxRoot(props: CheckboxProps): JSX.Element;