@edo-w/flatline-solid 0.2.1 → 0.3.1

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 (501) 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/icons-CH4ghH8L.js +41 -0
  26. package/dist/icons-CH4ghH8L.js.map +1 -0
  27. package/dist/index-D-CV7Jz5.d.ts +30 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +0 -0
  30. package/dist/input/index.css +23 -0
  31. package/dist/input/index.d.ts +14 -0
  32. package/dist/input/index.js +24 -0
  33. package/dist/input/index.js.map +1 -0
  34. package/dist/label/index.css +11 -0
  35. package/dist/label/index.d.ts +14 -0
  36. package/dist/label/index.js +25 -0
  37. package/dist/label/index.js.map +1 -0
  38. package/dist/lite-CiFvU804.js +9 -0
  39. package/dist/lite-CiFvU804.js.map +1 -0
  40. package/dist/progress-bar/index.css +34 -0
  41. package/dist/progress-bar/index.d.ts +19 -0
  42. package/dist/progress-bar/index.js +61 -0
  43. package/dist/progress-bar/index.js.map +1 -0
  44. package/dist/radio/index.css +64 -0
  45. package/dist/radio/index.d.ts +55 -0
  46. package/dist/radio/index.js +143 -0
  47. package/dist/radio/index.js.map +1 -0
  48. package/dist/select/index.css +53 -0
  49. package/dist/select/index.d.ts +16 -0
  50. package/dist/select/index.js +51 -0
  51. package/dist/select/index.js.map +1 -0
  52. package/dist/slider/index.css +59 -0
  53. package/dist/slider/index.d.ts +16 -0
  54. package/dist/slider/index.js +37 -0
  55. package/dist/slider/index.js.map +1 -0
  56. package/dist/spinner/index.css +44 -0
  57. package/dist/spinner/index.d.ts +24 -0
  58. package/dist/spinner/index.js +48 -0
  59. package/dist/spinner/index.js.map +1 -0
  60. package/dist/{src/style → style}/flatline.css +0 -1
  61. package/dist/switch/index.css +69 -0
  62. package/dist/switch/index.d.ts +22 -0
  63. package/dist/switch/index.js +75 -0
  64. package/dist/switch/index.js.map +1 -0
  65. package/dist/table/index.css +50 -0
  66. package/dist/table/index.d.ts +64 -0
  67. package/dist/table/index.js +142 -0
  68. package/dist/table/index.js.map +1 -0
  69. package/dist/tabs/index.css +114 -0
  70. package/dist/tabs/index.d.ts +40 -0
  71. package/dist/tabs/index.js +67 -0
  72. package/dist/tabs/index.js.map +1 -0
  73. package/dist/textarea/index.css +35 -0
  74. package/dist/textarea/index.d.ts +14 -0
  75. package/dist/textarea/index.js +24 -0
  76. package/dist/textarea/index.js.map +1 -0
  77. package/dist/xstack/index.d.ts +1 -0
  78. package/dist/xstack/index.js +0 -0
  79. package/dist/ystack/index.css +26 -0
  80. package/dist/ystack/index.d.ts +25 -0
  81. package/dist/ystack/index.js +47 -0
  82. package/dist/ystack/index.js.map +1 -0
  83. package/package.json +31 -5
  84. package/dist/src/components/button/button.css +0 -156
  85. package/dist/src/components/button/button.d.ts +0 -9
  86. package/dist/src/components/button/button.jsx +0 -21
  87. package/dist/src/components/button/button.jsx.map +0 -1
  88. package/dist/src/components/button/class.d.ts +0 -16
  89. package/dist/src/components/button/class.js +0 -15
  90. package/dist/src/components/button/class.js.map +0 -1
  91. package/dist/src/components/button/index.d.ts +0 -2
  92. package/dist/src/components/button/index.js +0 -3
  93. package/dist/src/components/button/index.js.map +0 -1
  94. package/dist/src/components/card/card-action.css +0 -15
  95. package/dist/src/components/card/card-content.css +0 -13
  96. package/dist/src/components/card/card-footer.css +0 -39
  97. package/dist/src/components/card/card-header.css +0 -13
  98. package/dist/src/components/card/card-root.css +0 -31
  99. package/dist/src/components/card/card-subtitle.css +0 -12
  100. package/dist/src/components/card/card-title.css +0 -33
  101. package/dist/src/components/card/card.d.ts +0 -42
  102. package/dist/src/components/card/card.jsx +0 -86
  103. package/dist/src/components/card/card.jsx.map +0 -1
  104. package/dist/src/components/card/class.d.ts +0 -28
  105. package/dist/src/components/card/class.js +0 -27
  106. package/dist/src/components/card/class.js.map +0 -1
  107. package/dist/src/components/card/index.d.ts +0 -2
  108. package/dist/src/components/card/index.js +0 -3
  109. package/dist/src/components/card/index.js.map +0 -1
  110. package/dist/src/components/checkbox/checkbox-group.css +0 -9
  111. package/dist/src/components/checkbox/checkbox-group.d.ts +0 -3
  112. package/dist/src/components/checkbox/checkbox-group.jsx +0 -43
  113. package/dist/src/components/checkbox/checkbox-group.jsx.map +0 -1
  114. package/dist/src/components/checkbox/checkbox-root.css +0 -85
  115. package/dist/src/components/checkbox/checkbox-root.d.ts +0 -4
  116. package/dist/src/components/checkbox/checkbox-root.jsx +0 -55
  117. package/dist/src/components/checkbox/checkbox-root.jsx.map +0 -1
  118. package/dist/src/components/checkbox/checkbox.d.ts +0 -9
  119. package/dist/src/components/checkbox/checkbox.jsx +0 -6
  120. package/dist/src/components/checkbox/checkbox.jsx.map +0 -1
  121. package/dist/src/components/checkbox/class.d.ts +0 -8
  122. package/dist/src/components/checkbox/class.js +0 -9
  123. package/dist/src/components/checkbox/class.js.map +0 -1
  124. package/dist/src/components/checkbox/context.d.ts +0 -9
  125. package/dist/src/components/checkbox/context.js +0 -6
  126. package/dist/src/components/checkbox/context.js.map +0 -1
  127. package/dist/src/components/checkbox/index.d.ts +0 -6
  128. package/dist/src/components/checkbox/index.js +0 -7
  129. package/dist/src/components/checkbox/index.js.map +0 -1
  130. package/dist/src/components/checkbox/types.d.ts +0 -16
  131. package/dist/src/components/checkbox/types.js +0 -1
  132. package/dist/src/components/checkbox/types.js.map +0 -1
  133. package/dist/src/components/combobox/class.d.ts +0 -13
  134. package/dist/src/components/combobox/class.js +0 -14
  135. package/dist/src/components/combobox/class.js.map +0 -1
  136. package/dist/src/components/combobox/combobox-content.css +0 -20
  137. package/dist/src/components/combobox/combobox-content.d.ts +0 -2
  138. package/dist/src/components/combobox/combobox-content.jsx +0 -15
  139. package/dist/src/components/combobox/combobox-content.jsx.map +0 -1
  140. package/dist/src/components/combobox/combobox-control.css +0 -29
  141. package/dist/src/components/combobox/combobox-control.d.ts +0 -3
  142. package/dist/src/components/combobox/combobox-control.jsx +0 -19
  143. package/dist/src/components/combobox/combobox-control.jsx.map +0 -1
  144. package/dist/src/components/combobox/combobox-group.css +0 -32
  145. package/dist/src/components/combobox/combobox-group.d.ts +0 -2
  146. package/dist/src/components/combobox/combobox-group.jsx +0 -12
  147. package/dist/src/components/combobox/combobox-group.jsx.map +0 -1
  148. package/dist/src/components/combobox/combobox-hidden-select.d.ts +0 -2
  149. package/dist/src/components/combobox/combobox-hidden-select.jsx +0 -8
  150. package/dist/src/components/combobox/combobox-hidden-select.jsx.map +0 -1
  151. package/dist/src/components/combobox/combobox-icon.css +0 -11
  152. package/dist/src/components/combobox/combobox-icon.d.ts +0 -2
  153. package/dist/src/components/combobox/combobox-icon.jsx +0 -12
  154. package/dist/src/components/combobox/combobox-icon.jsx.map +0 -1
  155. package/dist/src/components/combobox/combobox-input.css +0 -32
  156. package/dist/src/components/combobox/combobox-input.d.ts +0 -3
  157. package/dist/src/components/combobox/combobox-input.jsx +0 -101
  158. package/dist/src/components/combobox/combobox-input.jsx.map +0 -1
  159. package/dist/src/components/combobox/combobox-item-indicator.css +0 -11
  160. package/dist/src/components/combobox/combobox-item-indicator.d.ts +0 -2
  161. package/dist/src/components/combobox/combobox-item-indicator.jsx +0 -16
  162. package/dist/src/components/combobox/combobox-item-indicator.jsx.map +0 -1
  163. package/dist/src/components/combobox/combobox-item-label.d.ts +0 -2
  164. package/dist/src/components/combobox/combobox-item-label.jsx +0 -13
  165. package/dist/src/components/combobox/combobox-item-label.jsx.map +0 -1
  166. package/dist/src/components/combobox/combobox-item.css +0 -48
  167. package/dist/src/components/combobox/combobox-item.d.ts +0 -3
  168. package/dist/src/components/combobox/combobox-item.jsx +0 -37
  169. package/dist/src/components/combobox/combobox-item.jsx.map +0 -1
  170. package/dist/src/components/combobox/combobox-listbox.css +0 -21
  171. package/dist/src/components/combobox/combobox-listbox.d.ts +0 -2
  172. package/dist/src/components/combobox/combobox-listbox.jsx +0 -39
  173. package/dist/src/components/combobox/combobox-listbox.jsx.map +0 -1
  174. package/dist/src/components/combobox/combobox-portal.d.ts +0 -2
  175. package/dist/src/components/combobox/combobox-portal.jsx +0 -6
  176. package/dist/src/components/combobox/combobox-portal.jsx.map +0 -1
  177. package/dist/src/components/combobox/combobox-root.css +0 -12
  178. package/dist/src/components/combobox/combobox-root.d.ts +0 -3
  179. package/dist/src/components/combobox/combobox-root.jsx +0 -407
  180. package/dist/src/components/combobox/combobox-root.jsx.map +0 -1
  181. package/dist/src/components/combobox/combobox-trigger.css +0 -31
  182. package/dist/src/components/combobox/combobox-trigger.d.ts +0 -3
  183. package/dist/src/components/combobox/combobox-trigger.jsx +0 -30
  184. package/dist/src/components/combobox/combobox-trigger.jsx.map +0 -1
  185. package/dist/src/components/combobox/combobox.d.ts +0 -43
  186. package/dist/src/components/combobox/combobox.jsx +0 -39
  187. package/dist/src/components/combobox/combobox.jsx.map +0 -1
  188. package/dist/src/components/combobox/context.d.ts +0 -47
  189. package/dist/src/components/combobox/context.js +0 -18
  190. package/dist/src/components/combobox/context.js.map +0 -1
  191. package/dist/src/components/combobox/index.d.ts +0 -2
  192. package/dist/src/components/combobox/index.js +0 -3
  193. package/dist/src/components/combobox/index.js.map +0 -1
  194. package/dist/src/components/combobox/types.d.ts +0 -68
  195. package/dist/src/components/combobox/types.js +0 -1
  196. package/dist/src/components/combobox/types.js.map +0 -1
  197. package/dist/src/components/combobox/util.d.ts +0 -6
  198. package/dist/src/components/combobox/util.js +0 -58
  199. package/dist/src/components/combobox/util.js.map +0 -1
  200. package/dist/src/components/dialog/class.d.ts +0 -18
  201. package/dist/src/components/dialog/class.js +0 -18
  202. package/dist/src/components/dialog/class.js.map +0 -1
  203. package/dist/src/components/dialog/dialog-close-button.css +0 -48
  204. package/dist/src/components/dialog/dialog-content.css +0 -89
  205. package/dist/src/components/dialog/dialog-description.css +0 -6
  206. package/dist/src/components/dialog/dialog-header.css +0 -12
  207. package/dist/src/components/dialog/dialog-overlay.css +0 -43
  208. package/dist/src/components/dialog/dialog-positioner.css +0 -14
  209. package/dist/src/components/dialog/dialog-title.css +0 -6
  210. package/dist/src/components/dialog/dialog-trigger.css +0 -63
  211. package/dist/src/components/dialog/dialog.d.ts +0 -50
  212. package/dist/src/components/dialog/dialog.jsx +0 -89
  213. package/dist/src/components/dialog/dialog.jsx.map +0 -1
  214. package/dist/src/components/dialog/index.d.ts +0 -2
  215. package/dist/src/components/dialog/index.js +0 -3
  216. package/dist/src/components/dialog/index.js.map +0 -1
  217. package/dist/src/components/dropdown-menu/class.d.ts +0 -16
  218. package/dist/src/components/dropdown-menu/class.js +0 -17
  219. package/dist/src/components/dropdown-menu/class.js.map +0 -1
  220. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.css +0 -7
  221. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.d.ts +0 -3
  222. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx +0 -10
  223. package/dist/src/components/dropdown-menu/dropdown-menu-arrow.jsx.map +0 -1
  224. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.css +0 -38
  225. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +0 -3
  226. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx +0 -10
  227. package/dist/src/components/dropdown-menu/dropdown-menu-checkbox-item.jsx.map +0 -1
  228. package/dist/src/components/dropdown-menu/dropdown-menu-content.css +0 -50
  229. package/dist/src/components/dropdown-menu/dropdown-menu-content.d.ts +0 -3
  230. package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx +0 -10
  231. package/dist/src/components/dropdown-menu/dropdown-menu-content.jsx.map +0 -1
  232. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.css +0 -15
  233. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.d.ts +0 -3
  234. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx +0 -10
  235. package/dist/src/components/dropdown-menu/dropdown-menu-group-label.jsx.map +0 -1
  236. package/dist/src/components/dropdown-menu/dropdown-menu-group.d.ts +0 -2
  237. package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx +0 -7
  238. package/dist/src/components/dropdown-menu/dropdown-menu-group.jsx.map +0 -1
  239. package/dist/src/components/dropdown-menu/dropdown-menu-icon.css +0 -21
  240. package/dist/src/components/dropdown-menu/dropdown-menu-icon.d.ts +0 -3
  241. package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx +0 -10
  242. package/dist/src/components/dropdown-menu/dropdown-menu-icon.jsx.map +0 -1
  243. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.css +0 -12
  244. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.d.ts +0 -3
  245. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx +0 -10
  246. package/dist/src/components/dropdown-menu/dropdown-menu-item-indicator.jsx.map +0 -1
  247. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.css +0 -18
  248. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.d.ts +0 -3
  249. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx +0 -11
  250. package/dist/src/components/dropdown-menu/dropdown-menu-item-right-slot.jsx.map +0 -1
  251. package/dist/src/components/dropdown-menu/dropdown-menu-item.css +0 -37
  252. package/dist/src/components/dropdown-menu/dropdown-menu-item.d.ts +0 -3
  253. package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx +0 -10
  254. package/dist/src/components/dropdown-menu/dropdown-menu-item.jsx.map +0 -1
  255. package/dist/src/components/dropdown-menu/dropdown-menu-portal.d.ts +0 -2
  256. package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx +0 -5
  257. package/dist/src/components/dropdown-menu/dropdown-menu-portal.jsx.map +0 -1
  258. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.d.ts +0 -2
  259. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx +0 -7
  260. package/dist/src/components/dropdown-menu/dropdown-menu-radio-group.jsx.map +0 -1
  261. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.css +0 -38
  262. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -3
  263. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx +0 -10
  264. package/dist/src/components/dropdown-menu/dropdown-menu-radio-item.jsx.map +0 -1
  265. package/dist/src/components/dropdown-menu/dropdown-menu-root.d.ts +0 -2
  266. package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx +0 -5
  267. package/dist/src/components/dropdown-menu/dropdown-menu-root.jsx.map +0 -1
  268. package/dist/src/components/dropdown-menu/dropdown-menu-separator.css +0 -11
  269. package/dist/src/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -3
  270. package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx +0 -10
  271. package/dist/src/components/dropdown-menu/dropdown-menu-separator.jsx.map +0 -1
  272. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.css +0 -26
  273. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -3
  274. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx +0 -10
  275. package/dist/src/components/dropdown-menu/dropdown-menu-sub-content.jsx.map +0 -1
  276. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.css +0 -43
  277. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -3
  278. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx +0 -10
  279. package/dist/src/components/dropdown-menu/dropdown-menu-sub-trigger.jsx.map +0 -1
  280. package/dist/src/components/dropdown-menu/dropdown-menu-sub.d.ts +0 -2
  281. package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx +0 -5
  282. package/dist/src/components/dropdown-menu/dropdown-menu-sub.jsx.map +0 -1
  283. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.css +0 -7
  284. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -3
  285. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx +0 -16
  286. package/dist/src/components/dropdown-menu/dropdown-menu-trigger.jsx.map +0 -1
  287. package/dist/src/components/dropdown-menu/dropdown-menu.d.ts +0 -43
  288. package/dist/src/components/dropdown-menu/dropdown-menu.jsx +0 -39
  289. package/dist/src/components/dropdown-menu/dropdown-menu.jsx.map +0 -1
  290. package/dist/src/components/dropdown-menu/index.d.ts +0 -21
  291. package/dist/src/components/dropdown-menu/index.js +0 -22
  292. package/dist/src/components/dropdown-menu/index.js.map +0 -1
  293. package/dist/src/components/dropdown-menu/types.d.ts +0 -21
  294. package/dist/src/components/dropdown-menu/types.js +0 -1
  295. package/dist/src/components/dropdown-menu/types.js.map +0 -1
  296. package/dist/src/components/input/class.d.ts +0 -3
  297. package/dist/src/components/input/class.js +0 -4
  298. package/dist/src/components/input/class.js.map +0 -1
  299. package/dist/src/components/input/index.d.ts +0 -2
  300. package/dist/src/components/input/index.js +0 -3
  301. package/dist/src/components/input/index.js.map +0 -1
  302. package/dist/src/components/input/input.css +0 -34
  303. package/dist/src/components/input/input.d.ts +0 -6
  304. package/dist/src/components/input/input.jsx +0 -10
  305. package/dist/src/components/input/input.jsx.map +0 -1
  306. package/dist/src/components/label/class.d.ts +0 -3
  307. package/dist/src/components/label/class.js +0 -4
  308. package/dist/src/components/label/class.js.map +0 -1
  309. package/dist/src/components/label/index.d.ts +0 -2
  310. package/dist/src/components/label/index.js +0 -3
  311. package/dist/src/components/label/index.js.map +0 -1
  312. package/dist/src/components/label/label.css +0 -16
  313. package/dist/src/components/label/label.d.ts +0 -6
  314. package/dist/src/components/label/label.jsx +0 -12
  315. package/dist/src/components/label/label.jsx.map +0 -1
  316. package/dist/src/components/progress-bar/class.d.ts +0 -4
  317. package/dist/src/components/progress-bar/class.js +0 -5
  318. package/dist/src/components/progress-bar/class.js.map +0 -1
  319. package/dist/src/components/progress-bar/index.d.ts +0 -2
  320. package/dist/src/components/progress-bar/index.js +0 -3
  321. package/dist/src/components/progress-bar/index.js.map +0 -1
  322. package/dist/src/components/progress-bar/progress-bar.css +0 -43
  323. package/dist/src/components/progress-bar/progress-bar.d.ts +0 -9
  324. package/dist/src/components/progress-bar/progress-bar.jsx +0 -24
  325. package/dist/src/components/progress-bar/progress-bar.jsx.map +0 -1
  326. package/dist/src/components/radio/class.d.ts +0 -8
  327. package/dist/src/components/radio/class.js +0 -9
  328. package/dist/src/components/radio/class.js.map +0 -1
  329. package/dist/src/components/radio/context.d.ts +0 -9
  330. package/dist/src/components/radio/context.js +0 -6
  331. package/dist/src/components/radio/context.js.map +0 -1
  332. package/dist/src/components/radio/index.d.ts +0 -6
  333. package/dist/src/components/radio/index.js +0 -7
  334. package/dist/src/components/radio/index.js.map +0 -1
  335. package/dist/src/components/radio/radio-group.css +0 -9
  336. package/dist/src/components/radio/radio-group.d.ts +0 -3
  337. package/dist/src/components/radio/radio-group.jsx +0 -33
  338. package/dist/src/components/radio/radio-group.jsx.map +0 -1
  339. package/dist/src/components/radio/radio-root.css +0 -75
  340. package/dist/src/components/radio/radio-root.d.ts +0 -4
  341. package/dist/src/components/radio/radio-root.jsx +0 -51
  342. package/dist/src/components/radio/radio-root.jsx.map +0 -1
  343. package/dist/src/components/radio/radio.d.ts +0 -11
  344. package/dist/src/components/radio/radio.jsx +0 -7
  345. package/dist/src/components/radio/radio.jsx.map +0 -1
  346. package/dist/src/components/radio/types.d.ts +0 -16
  347. package/dist/src/components/radio/types.js +0 -1
  348. package/dist/src/components/radio/types.js.map +0 -1
  349. package/dist/src/components/select/class.d.ts +0 -5
  350. package/dist/src/components/select/class.js +0 -6
  351. package/dist/src/components/select/class.js.map +0 -1
  352. package/dist/src/components/select/index.d.ts +0 -2
  353. package/dist/src/components/select/index.js +0 -3
  354. package/dist/src/components/select/index.js.map +0 -1
  355. package/dist/src/components/select/select.css +0 -76
  356. package/dist/src/components/select/select.d.ts +0 -6
  357. package/dist/src/components/select/select.jsx +0 -16
  358. package/dist/src/components/select/select.jsx.map +0 -1
  359. package/dist/src/components/slider/class.d.ts +0 -3
  360. package/dist/src/components/slider/class.js +0 -4
  361. package/dist/src/components/slider/class.js.map +0 -1
  362. package/dist/src/components/slider/index.d.ts +0 -2
  363. package/dist/src/components/slider/index.js +0 -3
  364. package/dist/src/components/slider/index.js.map +0 -1
  365. package/dist/src/components/slider/slider.css +0 -83
  366. package/dist/src/components/slider/slider.d.ts +0 -7
  367. package/dist/src/components/slider/slider.jsx +0 -19
  368. package/dist/src/components/slider/slider.jsx.map +0 -1
  369. package/dist/src/components/spinner/class.d.ts +0 -10
  370. package/dist/src/components/spinner/class.js +0 -10
  371. package/dist/src/components/spinner/class.js.map +0 -1
  372. package/dist/src/components/spinner/index.d.ts +0 -2
  373. package/dist/src/components/spinner/index.js +0 -3
  374. package/dist/src/components/spinner/index.js.map +0 -1
  375. package/dist/src/components/spinner/spinner.css +0 -51
  376. package/dist/src/components/spinner/spinner.d.ts +0 -9
  377. package/dist/src/components/spinner/spinner.jsx +0 -22
  378. package/dist/src/components/spinner/spinner.jsx.map +0 -1
  379. package/dist/src/components/switch/class.d.ts +0 -7
  380. package/dist/src/components/switch/class.js +0 -8
  381. package/dist/src/components/switch/class.js.map +0 -1
  382. package/dist/src/components/switch/index.d.ts +0 -2
  383. package/dist/src/components/switch/index.js +0 -3
  384. package/dist/src/components/switch/index.js.map +0 -1
  385. package/dist/src/components/switch/switch.css +0 -90
  386. package/dist/src/components/switch/switch.d.ts +0 -9
  387. package/dist/src/components/switch/switch.jsx +0 -28
  388. package/dist/src/components/switch/switch.jsx.map +0 -1
  389. package/dist/src/components/table/class.d.ts +0 -10
  390. package/dist/src/components/table/class.js +0 -11
  391. package/dist/src/components/table/class.js.map +0 -1
  392. package/dist/src/components/table/index.d.ts +0 -11
  393. package/dist/src/components/table/index.js +0 -12
  394. package/dist/src/components/table/index.js.map +0 -1
  395. package/dist/src/components/table/table-body.d.ts +0 -2
  396. package/dist/src/components/table/table-body.jsx +0 -10
  397. package/dist/src/components/table/table-body.jsx.map +0 -1
  398. package/dist/src/components/table/table-caption.css +0 -11
  399. package/dist/src/components/table/table-caption.d.ts +0 -3
  400. package/dist/src/components/table/table-caption.jsx +0 -11
  401. package/dist/src/components/table/table-caption.jsx.map +0 -1
  402. package/dist/src/components/table/table-cell.css +0 -12
  403. package/dist/src/components/table/table-cell.d.ts +0 -3
  404. package/dist/src/components/table/table-cell.jsx +0 -11
  405. package/dist/src/components/table/table-cell.jsx.map +0 -1
  406. package/dist/src/components/table/table-footer.css +0 -15
  407. package/dist/src/components/table/table-footer.d.ts +0 -3
  408. package/dist/src/components/table/table-footer.jsx +0 -11
  409. package/dist/src/components/table/table-footer.jsx.map +0 -1
  410. package/dist/src/components/table/table-head.css +0 -16
  411. package/dist/src/components/table/table-head.d.ts +0 -3
  412. package/dist/src/components/table/table-head.jsx +0 -11
  413. package/dist/src/components/table/table-head.jsx.map +0 -1
  414. package/dist/src/components/table/table-header.d.ts +0 -2
  415. package/dist/src/components/table/table-header.jsx +0 -10
  416. package/dist/src/components/table/table-header.jsx.map +0 -1
  417. package/dist/src/components/table/table-root.css +0 -12
  418. package/dist/src/components/table/table-root.d.ts +0 -3
  419. package/dist/src/components/table/table-root.jsx +0 -11
  420. package/dist/src/components/table/table-root.jsx.map +0 -1
  421. package/dist/src/components/table/table-row.css +0 -6
  422. package/dist/src/components/table/table-row.d.ts +0 -3
  423. package/dist/src/components/table/table-row.jsx +0 -11
  424. package/dist/src/components/table/table-row.jsx.map +0 -1
  425. package/dist/src/components/table/table.d.ts +0 -23
  426. package/dist/src/components/table/table.jsx +0 -19
  427. package/dist/src/components/table/table.jsx.map +0 -1
  428. package/dist/src/components/table/types.d.ts +0 -9
  429. package/dist/src/components/table/types.js +0 -1
  430. package/dist/src/components/table/types.js.map +0 -1
  431. package/dist/src/components/tabs/class.d.ts +0 -12
  432. package/dist/src/components/tabs/class.js +0 -12
  433. package/dist/src/components/tabs/class.js.map +0 -1
  434. package/dist/src/components/tabs/index.d.ts +0 -2
  435. package/dist/src/components/tabs/index.js +0 -3
  436. package/dist/src/components/tabs/index.js.map +0 -1
  437. package/dist/src/components/tabs/tabs-content.css +0 -24
  438. package/dist/src/components/tabs/tabs-indicator.css +0 -32
  439. package/dist/src/components/tabs/tabs-list.css +0 -26
  440. package/dist/src/components/tabs/tabs-root.css +0 -34
  441. package/dist/src/components/tabs/tabs-trigger.css +0 -58
  442. package/dist/src/components/tabs/tabs.d.ts +0 -27
  443. package/dist/src/components/tabs/tabs.jsx +0 -47
  444. package/dist/src/components/tabs/tabs.jsx.map +0 -1
  445. package/dist/src/components/textarea/class.d.ts +0 -3
  446. package/dist/src/components/textarea/class.js +0 -4
  447. package/dist/src/components/textarea/class.js.map +0 -1
  448. package/dist/src/components/textarea/index.d.ts +0 -2
  449. package/dist/src/components/textarea/index.js +0 -3
  450. package/dist/src/components/textarea/index.js.map +0 -1
  451. package/dist/src/components/textarea/textarea.css +0 -46
  452. package/dist/src/components/textarea/textarea.d.ts +0 -6
  453. package/dist/src/components/textarea/textarea.jsx +0 -10
  454. package/dist/src/components/textarea/textarea.jsx.map +0 -1
  455. package/dist/src/components/xstack/class.d.ts +0 -12
  456. package/dist/src/components/xstack/class.js +0 -12
  457. package/dist/src/components/xstack/class.js.map +0 -1
  458. package/dist/src/components/xstack/index.d.ts +0 -1
  459. package/dist/src/components/xstack/index.js +0 -1
  460. package/dist/src/components/xstack/index.js.map +0 -1
  461. package/dist/src/components/xstack/xstack.css +0 -34
  462. package/dist/src/components/xstack/xstack.d.ts +0 -9
  463. package/dist/src/components/xstack/xstack.jsx +0 -15
  464. package/dist/src/components/xstack/xstack.jsx.map +0 -1
  465. package/dist/src/components/ystack/class.d.ts +0 -11
  466. package/dist/src/components/ystack/class.js +0 -11
  467. package/dist/src/components/ystack/class.js.map +0 -1
  468. package/dist/src/components/ystack/index.d.ts +0 -2
  469. package/dist/src/components/ystack/index.js +0 -3
  470. package/dist/src/components/ystack/index.js.map +0 -1
  471. package/dist/src/components/ystack/ystack.css +0 -31
  472. package/dist/src/components/ystack/ystack.d.ts +0 -9
  473. package/dist/src/components/ystack/ystack.jsx +0 -15
  474. package/dist/src/components/ystack/ystack.jsx.map +0 -1
  475. package/dist/src/icons/check-icon.d.ts +0 -2
  476. package/dist/src/icons/check-icon.jsx +0 -8
  477. package/dist/src/icons/check-icon.jsx.map +0 -1
  478. package/dist/src/icons/chevron-down-icon.d.ts +0 -2
  479. package/dist/src/icons/chevron-down-icon.jsx +0 -8
  480. package/dist/src/icons/chevron-down-icon.jsx.map +0 -1
  481. package/dist/src/icons/chevron-right-icon.d.ts +0 -2
  482. package/dist/src/icons/chevron-right-icon.jsx +0 -8
  483. package/dist/src/icons/chevron-right-icon.jsx.map +0 -1
  484. package/dist/src/icons/dot-filled-icon.d.ts +0 -2
  485. package/dist/src/icons/dot-filled-icon.jsx +0 -8
  486. package/dist/src/icons/dot-filled-icon.jsx.map +0 -1
  487. package/dist/src/icons/index.d.ts +0 -5
  488. package/dist/src/icons/index.js +0 -6
  489. package/dist/src/icons/index.js.map +0 -1
  490. package/dist/src/icons/types.d.ts +0 -5
  491. package/dist/src/icons/types.js +0 -1
  492. package/dist/src/icons/types.js.map +0 -1
  493. package/dist/src/index.d.ts +0 -19
  494. package/dist/src/index.js +0 -20
  495. package/dist/src/index.js.map +0 -1
  496. package/dist/src/lib/reflect.d.ts +0 -1
  497. package/dist/src/lib/reflect.js +0 -4
  498. package/dist/src/lib/reflect.js.map +0 -1
  499. /package/dist/{src/style → style}/colors.css +0 -0
  500. /package/dist/{src/style → style}/reset.css +0 -0
  501. /package/dist/{src/style → style}/tokens.css +0 -0
@@ -1,12 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { splitProps } from 'solid-js';
3
- import { labelClass } from './class';
4
- import './label.css';
5
- export function Label(props) {
6
- const [local, rest] = splitProps(props, ['class', 'children']);
7
- const rootClass = () => clsx(labelClass.root, local.class);
8
- return (<label class={rootClass()} {...rest}>
9
- {local.children}
10
- </label>);
11
- }
12
- //# sourceMappingURL=label.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.jsx","sourceRoot":"","sources":["../../../../src/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,aAAa,CAAC;AAMrB,MAAM,UAAU,KAAK,CAAC,KAAiB;IACtC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAE/D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE3D,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;EAAA,EAAE,KAAK,CAAC,CACR,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { labelClass } from './class';\nimport './label.css';\n\nexport type LabelBaseProps = JSX.LabelHTMLAttributes<HTMLLabelElement>;\n\nexport interface LabelProps extends LabelBaseProps {}\n\nexport function Label(props: LabelProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children']);\n\n\tconst rootClass = () => clsx(labelClass.root, local.class);\n\n\treturn (\n\t\t<label\n\t\t\tclass={rootClass()}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{local.children}\n\t\t</label>\n\t);\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare const progressBarClass: {
2
- readonly root: 'fl-progress-bar';
3
- readonly indicator: 'fl-progress-bar_indicator';
4
- };
@@ -1,5 +0,0 @@
1
- export const progressBarClass = {
2
- root: 'fl-progress-bar',
3
- indicator: 'fl-progress-bar_indicator',
4
- };
5
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/progress-bar/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE,2BAA2B;CAC7B,CAAC","sourcesContent":["export const progressBarClass = {\n\troot: 'fl-progress-bar',\n\tindicator: 'fl-progress-bar_indicator',\n} as const;\n"]}
@@ -1,2 +0,0 @@
1
- export * from './class';
2
- export * from './progress-bar';
@@ -1,3 +0,0 @@
1
- export * from './class';
2
- export * from './progress-bar';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/progress-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './class';\nexport * from './progress-bar';\n"]}
@@ -1,43 +0,0 @@
1
- @layer components {
2
- .fl-progress-bar {
3
- /* layout */
4
- position: relative;
5
- display: block;
6
- width: 100%;
7
- height: var(--fl-size-2);
8
- overflow: hidden;
9
-
10
- /* background */
11
- background: color-mix(in oklab, var(--fl-body-bg-color), black 8%);
12
- border-radius: 2px;
13
- }
14
-
15
- .fl-progress-bar .fl-progress-bar_indicator {
16
- /* layout */
17
- display: block;
18
- height: 100%;
19
-
20
- /* background */
21
- background: var(--fl-primary-color);
22
- border-radius: inherit;
23
-
24
- /* effects */
25
- transition: width var(--fl-animation-duration) ease;
26
- }
27
-
28
- .fl-progress-bar[data-indeterminate] .fl-progress-bar_indicator {
29
- /* biome-ignore lint/complexity/noImportantStyles: required to override the inline width used for determinate progress */
30
- width: 35% !important;
31
- animation: fl-progress-bar-indeterminate 1.2s ease-in-out infinite;
32
- }
33
-
34
- @keyframes fl-progress-bar-indeterminate {
35
- from {
36
- transform: translateX(-100%);
37
- }
38
-
39
- to {
40
- transform: translateX(300%);
41
- }
42
- }
43
- }
@@ -1,9 +0,0 @@
1
- import { type JSX } from 'solid-js';
2
- import './progress-bar.css';
3
- export type ProgressBarBaseProps = JSX.HTMLAttributes<HTMLDivElement>;
4
- export interface ProgressBarProps extends ProgressBarBaseProps {
5
- value?: number;
6
- max?: number;
7
- indeterminate?: boolean;
8
- }
9
- export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
@@ -1,24 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { mergeProps, splitProps } from 'solid-js';
3
- import { progressBarClass } from './class';
4
- import './progress-bar.css';
5
- export function ProgressBar(props) {
6
- const merged = mergeProps({
7
- max: 100,
8
- value: 0,
9
- indeterminate: false,
10
- }, props);
11
- const [local, rest] = splitProps(merged, ['class', 'value', 'max', 'indeterminate']);
12
- const clampedValue = () => Math.max(0, Math.min(local.value, local.max));
13
- const percent = () => {
14
- if (local.max <= 0) {
15
- return 0;
16
- }
17
- return (clampedValue() / local.max) * 100;
18
- };
19
- const rootClass = () => clsx(progressBarClass.root, local.class);
20
- return (<div class={rootClass()} role="progressbar" aria-valuemin={0} aria-valuemax={local.max} aria-valuenow={local.indeterminate ? undefined : clampedValue()} data-indeterminate={local.indeterminate ? '' : undefined} {...rest}>
21
- <span class={progressBarClass.indicator} style={local.indeterminate ? undefined : { width: `${percent()}%` }}/>
22
- </div>);
23
- }
24
- //# sourceMappingURL=progress-bar.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progress-bar.jsx","sourceRoot":"","sources":["../../../../src/components/progress-bar/progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,oBAAoB,CAAC;AAU5B,MAAM,UAAU,WAAW,CAAC,KAAuB;IAClD,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,CAAC;QACR,aAAa,EAAE,KAAK;KACX,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC;IAErF,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC;QACV,CAAC;QAED,OAAO,CAAC,YAAY,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAC3C,CAAC,CAAC;IACF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEjE,OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,IAAI,CAAC,aAAa,CAClB,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CACzB,aAAa,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAChE,kBAAkB,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CACzD,IAAI,IAAI,CAAC,CAET;GAAA,CAAC,IAAI,CACJ,KAAK,CAAC,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAClC,KAAK,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,CAAC,EAEtE;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, mergeProps, splitProps } from 'solid-js';\nimport { progressBarClass } from './class';\nimport './progress-bar.css';\n\nexport type ProgressBarBaseProps = JSX.HTMLAttributes<HTMLDivElement>;\n\nexport interface ProgressBarProps extends ProgressBarBaseProps {\n\tvalue?: number;\n\tmax?: number;\n\tindeterminate?: boolean;\n}\n\nexport function ProgressBar(props: ProgressBarProps) {\n\tconst merged = mergeProps(\n\t\t{\n\t\t\tmax: 100,\n\t\t\tvalue: 0,\n\t\t\tindeterminate: false,\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, ['class', 'value', 'max', 'indeterminate']);\n\n\tconst clampedValue = () => Math.max(0, Math.min(local.value, local.max));\n\tconst percent = () => {\n\t\tif (local.max <= 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn (clampedValue() / local.max) * 100;\n\t};\n\tconst rootClass = () => clsx(progressBarClass.root, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\trole=\"progressbar\"\n\t\t\taria-valuemin={0}\n\t\t\taria-valuemax={local.max}\n\t\t\taria-valuenow={local.indeterminate ? undefined : clampedValue()}\n\t\t\tdata-indeterminate={local.indeterminate ? '' : undefined}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<span\n\t\t\t\tclass={progressBarClass.indicator}\n\t\t\t\tstyle={local.indeterminate ? undefined : { width: `${percent()}%` }}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"]}
@@ -1,8 +0,0 @@
1
- export declare const radioClass: {
2
- readonly group: 'fl-radio-group';
3
- readonly root: 'fl-radio';
4
- readonly input: 'fl-radio_input';
5
- readonly control: 'fl-radio_control';
6
- readonly indicator: 'fl-radio_indicator';
7
- readonly label: 'fl-radio_label';
8
- };
@@ -1,9 +0,0 @@
1
- export const radioClass = {
2
- group: 'fl-radio-group',
3
- root: 'fl-radio',
4
- input: 'fl-radio_input',
5
- control: 'fl-radio_control',
6
- indicator: 'fl-radio_indicator',
7
- label: 'fl-radio_label',
8
- };
9
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/radio/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gBAAgB;IACvB,OAAO,EAAE,kBAAkB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,KAAK,EAAE,gBAAgB;CACd,CAAC","sourcesContent":["export const radioClass = {\n\tgroup: 'fl-radio-group',\n\troot: 'fl-radio',\n\tinput: 'fl-radio_input',\n\tcontrol: 'fl-radio_control',\n\tindicator: 'fl-radio_indicator',\n\tlabel: 'fl-radio_label',\n} as const;\n"]}
@@ -1,9 +0,0 @@
1
- import { type Accessor } from 'solid-js';
2
- export interface RadioGroupContextValue {
3
- name: Accessor<string>;
4
- value: Accessor<string | undefined>;
5
- setValue: (value: string) => void;
6
- disabled: Accessor<boolean>;
7
- }
8
- export declare const RadioGroupContext: import("solid-js").Context<RadioGroupContextValue | undefined>;
9
- export declare function useRadioGroupContext(): RadioGroupContextValue | undefined;
@@ -1,6 +0,0 @@
1
- import { createContext, useContext } from 'solid-js';
2
- export const RadioGroupContext = createContext();
3
- export function useRadioGroupContext() {
4
- return useContext(RadioGroupContext);
5
- }
6
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/components/radio/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AASpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,EAA0B,CAAC;AAEzE,MAAM,UAAU,oBAAoB;IACnC,OAAO,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { type Accessor, createContext, useContext } from 'solid-js';\n\nexport interface RadioGroupContextValue {\n\tname: Accessor<string>;\n\tvalue: Accessor<string | undefined>;\n\tsetValue: (value: string) => void;\n\tdisabled: Accessor<boolean>;\n}\n\nexport const RadioGroupContext = createContext<RadioGroupContextValue>();\n\nexport function useRadioGroupContext() {\n\treturn useContext(RadioGroupContext);\n}\n"]}
@@ -1,6 +0,0 @@
1
- export * from './class';
2
- export * from './context';
3
- export * from './radio';
4
- export * from './radio-group';
5
- export * from './radio-root';
6
- export * from './types';
@@ -1,7 +0,0 @@
1
- export * from './class';
2
- export * from './context';
3
- export * from './radio';
4
- export * from './radio-group';
5
- export * from './radio-root';
6
- export * from './types';
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC","sourcesContent":["export * from './class';\nexport * from './context';\nexport * from './radio';\nexport * from './radio-group';\nexport * from './radio-root';\nexport * from './types';\n"]}
@@ -1,9 +0,0 @@
1
- @layer components {
2
- .fl-radio-group {
3
- /* layout */
4
- display: grid;
5
-
6
- /* spacing */
7
- gap: var(--fl-size-2);
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- import type { RadioGroupProps } from './types';
2
- import './radio-group.css';
3
- export declare function RadioGroup(props: RadioGroupProps): import("solid-js").JSX.Element;
@@ -1,33 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { createSignal, createUniqueId, splitProps } from 'solid-js';
3
- import { radioClass } from './class';
4
- import { RadioGroupContext } from './context';
5
- import './radio-group.css';
6
- export function RadioGroup(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 value = () => local.value ?? internalValue();
19
- const name = () => local.name ?? generatedName;
20
- const disabled = () => Boolean(local.disabled);
21
- const setValue = (nextValue) => {
22
- if (local.value === undefined) {
23
- setInternalValue(nextValue);
24
- }
25
- local.onChange?.(nextValue);
26
- };
27
- return (<RadioGroupContext.Provider value={{ name, value, setValue, disabled }}>
28
- <div class={clsx(radioClass.group, local.class)} role="radiogroup" {...rest}>
29
- {local.children}
30
- </div>
31
- </RadioGroupContext.Provider>);
32
- }
33
- //# sourceMappingURL=radio-group.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-group.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio-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,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,mBAAmB,CAAC;AAE3B,MAAM,UAAU,UAAU,CAAC,KAAsB;IAChD,MAAM,aAAa,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE;QACvC,OAAO;QACP,UAAU;QACV,OAAO;QACP,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;KACV,CAAC,CAAC;IACH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE3E,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,EAAE,CAAC;IACnD,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,aAAa,CAAC;IAC/C,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,EAAE;QACtC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC/B,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;QAED,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CACtE;GAAA,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAC3C,IAAI,CAAC,YAAY,CACjB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,GAAG,CACN;EAAA,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAC7B,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createSignal, createUniqueId, splitProps } from 'solid-js';\nimport { radioClass } from './class';\nimport { RadioGroupContext } from './context';\nimport type { RadioGroupProps } from './types';\nimport './radio-group.css';\n\nexport function RadioGroup(props: RadioGroupProps) {\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 value = () => local.value ?? internalValue();\n\tconst name = () => local.name ?? generatedName;\n\tconst disabled = () => Boolean(local.disabled);\n\tconst setValue = (nextValue: string) => {\n\t\tif (local.value === undefined) {\n\t\t\tsetInternalValue(nextValue);\n\t\t}\n\n\t\tlocal.onChange?.(nextValue);\n\t};\n\n\treturn (\n\t\t<RadioGroupContext.Provider value={{ name, value, setValue, disabled }}>\n\t\t\t<div\n\t\t\t\tclass={clsx(radioClass.group, local.class)}\n\t\t\t\trole=\"radiogroup\"\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</RadioGroupContext.Provider>\n\t);\n}\n"]}
@@ -1,75 +0,0 @@
1
- @layer components {
2
- .fl-radio {
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-radio[data-disabled] {
16
- cursor: var(--fl-disabled-cursor);
17
- opacity: var(--fl-disabled-opacity);
18
- }
19
-
20
- .fl-radio .fl-radio_input {
21
- /* layout */
22
- position: absolute;
23
- opacity: 0;
24
- width: 1px;
25
- height: 1px;
26
- pointer-events: none;
27
- }
28
-
29
- .fl-radio .fl-radio_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-full);
42
-
43
- /* effects */
44
- box-shadow: var(--fl-input-shadow);
45
- }
46
-
47
- .fl-radio .fl-radio_indicator {
48
- /* layout */
49
- width: var(--fl-size-2);
50
- height: var(--fl-size-2);
51
-
52
- /* background */
53
- background: var(--fl-primary-color);
54
- border-radius: var(--fl-radius-full);
55
-
56
- /* effects */
57
- scale: 0;
58
- transition: scale var(--fl-animation-duration) ease;
59
- }
60
-
61
- .fl-radio .fl-radio_input:checked + .fl-radio_control .fl-radio_indicator {
62
- scale: 1;
63
- }
64
-
65
- .fl-radio .fl-radio_input:focus-visible + .fl-radio_control {
66
- outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
67
- outline-offset: var(--fl-focus-ring-offset);
68
- }
69
-
70
- .fl-radio .fl-radio_label {
71
- /* text */
72
- color: var(--fl-body-text-color);
73
- font-size: var(--fl-text-size-base);
74
- }
75
- }
@@ -1,4 +0,0 @@
1
- import { type JSX } from 'solid-js';
2
- import type { RadioProps } from './types';
3
- import './radio-root.css';
4
- export declare function RadioRoot(props: RadioProps): JSX.Element;
@@ -1,51 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { createSignal, mergeProps, splitProps } from 'solid-js';
3
- import { radioClass } from './class';
4
- import { useRadioGroupContext } from './context';
5
- import './radio-root.css';
6
- export function RadioRoot(props) {
7
- const context = useRadioGroupContext();
8
- const merged = mergeProps({
9
- type: 'radio',
10
- }, props);
11
- const [local, rest] = splitProps(merged, [
12
- 'class',
13
- 'children',
14
- 'checked',
15
- 'defaultChecked',
16
- 'disabled',
17
- 'name',
18
- 'onChange',
19
- 'type',
20
- 'value',
21
- ]);
22
- const [internalChecked, setInternalChecked] = createSignal(Boolean(local.defaultChecked));
23
- const rootClass = () => clsx(radioClass.root, local.class);
24
- const checked = () => {
25
- if (context) {
26
- return context.value() === local.value;
27
- }
28
- return local.checked ?? internalChecked();
29
- };
30
- const disabled = () => Boolean(context?.disabled() || local.disabled);
31
- const name = () => context?.name() ?? local.name;
32
- const handleChange = (event) => {
33
- const nextChecked = event.currentTarget.checked;
34
- local.onChange?.(nextChecked);
35
- if (context && nextChecked) {
36
- context.setValue(local.value);
37
- return;
38
- }
39
- if (local.checked === undefined) {
40
- setInternalChecked(nextChecked);
41
- }
42
- };
43
- return (<label class={rootClass()} data-disabled={disabled() ? '' : undefined}>
44
- <input class={radioClass.input} type="radio" value={local.value} name={name()} checked={checked()} disabled={disabled()} onChange={handleChange} {...rest}/>
45
- <span class={radioClass.control}>
46
- <span class={radioClass.indicator}/>
47
- </span>
48
- {local.children ? <span class={radioClass.label}>{local.children}</span> : null}
49
- </label>);
50
- }
51
- //# sourceMappingURL=radio-root.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio-root.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio-root.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,SAAS,CAAC,KAAiB;IAC1C,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,UAAU,CACxB;QACC,IAAI,EAAE,OAAO;KACJ,EACV,KAAK,CACL,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACxC,OAAO;QACP,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,OAAO;KACP,CAAC,CAAC;IACH,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;IAC1F,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,OAAO,EAAE,CAAC;YACb,OAAO,OAAO,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC;QACxC,CAAC;QAED,OAAO,KAAK,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC;IAC3C,CAAC,CAAC;IACF,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC;IAEjD,MAAM,YAAY,GAAmD,CAAC,KAAK,EAAE,EAAE;QAC9E,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;QAChD,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,CAAC;QAE9B,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;YAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9B,OAAO;QACR,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;IACF,CAAC,CAAC;IAEF,OAAO,CACN,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAE3C;GAAA,CAAC,KAAK,CACL,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CACxB,IAAI,CAAC,OAAO,CACZ,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CACb,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CACrB,QAAQ,CAAC,CAAC,YAAY,CAAC,CACvB,IAAI,IAAI,CAAC,EAEV;GAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAC/B;IAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,EACnC;GAAA,EAAE,IAAI,CACN;GAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAChF;EAAA,EAAE,KAAK,CAAC,CACR,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { createSignal, type JSX, mergeProps, splitProps } from 'solid-js';\nimport { radioClass } from './class';\nimport { useRadioGroupContext } from './context';\nimport type { RadioProps } from './types';\nimport './radio-root.css';\n\nexport function RadioRoot(props: RadioProps) {\n\tconst context = useRadioGroupContext();\n\tconst merged = mergeProps(\n\t\t{\n\t\t\ttype: 'radio',\n\t\t} as const,\n\t\tprops,\n\t);\n\tconst [local, rest] = splitProps(merged, [\n\t\t'class',\n\t\t'children',\n\t\t'checked',\n\t\t'defaultChecked',\n\t\t'disabled',\n\t\t'name',\n\t\t'onChange',\n\t\t'type',\n\t\t'value',\n\t]);\n\tconst [internalChecked, setInternalChecked] = createSignal(Boolean(local.defaultChecked));\n\tconst rootClass = () => clsx(radioClass.root, local.class);\n\tconst checked = () => {\n\t\tif (context) {\n\t\t\treturn context.value() === local.value;\n\t\t}\n\n\t\treturn local.checked ?? internalChecked();\n\t};\n\tconst disabled = () => Boolean(context?.disabled() || local.disabled);\n\tconst name = () => context?.name() ?? local.name;\n\n\tconst handleChange: JSX.EventHandlerUnion<HTMLInputElement, Event> = (event) => {\n\t\tconst nextChecked = event.currentTarget.checked;\n\t\tlocal.onChange?.(nextChecked);\n\n\t\tif (context && nextChecked) {\n\t\t\tcontext.setValue(local.value);\n\t\t\treturn;\n\t\t}\n\n\t\tif (local.checked === undefined) {\n\t\t\tsetInternalChecked(nextChecked);\n\t\t}\n\t};\n\n\treturn (\n\t\t<label\n\t\t\tclass={rootClass()}\n\t\t\tdata-disabled={disabled() ? '' : undefined}\n\t\t>\n\t\t\t<input\n\t\t\t\tclass={radioClass.input}\n\t\t\t\ttype=\"radio\"\n\t\t\t\tvalue={local.value}\n\t\t\t\tname={name()}\n\t\t\t\tchecked={checked()}\n\t\t\t\tdisabled={disabled()}\n\t\t\t\tonChange={handleChange}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t\t<span class={radioClass.control}>\n\t\t\t\t<span class={radioClass.indicator} />\n\t\t\t</span>\n\t\t\t{local.children ? <span class={radioClass.label}>{local.children}</span> : null}\n\t\t</label>\n\t);\n}\n"]}
@@ -1,11 +0,0 @@
1
- import type { JSX } from 'solid-js';
2
- import { RadioGroup } from './radio-group';
3
- import { RadioRoot } from './radio-root';
4
- import type { RadioProps } from './types';
5
- export type { RadioBaseProps, RadioGroupBaseProps, RadioGroupProps, RadioProps } from './types';
6
- export { RadioGroup, RadioRoot };
7
- export interface RadioComponent {
8
- (props: RadioProps): JSX.Element;
9
- Group: typeof RadioGroup;
10
- }
11
- export declare const Radio: RadioComponent;
@@ -1,7 +0,0 @@
1
- import { RadioGroup } from './radio-group';
2
- import { RadioRoot } from './radio-root';
3
- export { RadioGroup, RadioRoot };
4
- export const Radio = Object.assign(RadioRoot, {
5
- Group: RadioGroup,
6
- });
7
- //# sourceMappingURL=radio.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio.jsx","sourceRoot":"","sources":["../../../../src/components/radio/radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;AAOjC,MAAM,CAAC,MAAM,KAAK,GAAmB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IAC7D,KAAK,EAAE,UAAU;CACjB,CAAC,CAAC","sourcesContent":["import type { JSX } from 'solid-js';\nimport { RadioGroup } from './radio-group';\nimport { RadioRoot } from './radio-root';\nimport type { RadioProps } from './types';\n\nexport type { RadioBaseProps, RadioGroupBaseProps, RadioGroupProps, RadioProps } from './types';\nexport { RadioGroup, RadioRoot };\n\nexport interface RadioComponent {\n\t(props: RadioProps): JSX.Element;\n\tGroup: typeof RadioGroup;\n}\n\nexport const Radio: RadioComponent = Object.assign(RadioRoot, {\n\tGroup: RadioGroup,\n});\n"]}
@@ -1,16 +0,0 @@
1
- import type { JSX } from 'solid-js';
2
- export type RadioGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChange'>;
3
- export interface RadioGroupProps extends RadioGroupBaseProps {
4
- value?: string;
5
- defaultValue?: string;
6
- name?: string;
7
- disabled?: boolean;
8
- onChange?: (value: string) => void;
9
- }
10
- export type RadioBaseProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size'>;
11
- export interface RadioProps extends RadioBaseProps {
12
- checked?: boolean;
13
- defaultChecked?: boolean;
14
- value: string;
15
- onChange?: (checked: boolean) => void;
16
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/radio/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { JSX } from 'solid-js';\n\nexport type RadioGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChange'>;\n\nexport interface RadioGroupProps extends RadioGroupBaseProps {\n\tvalue?: string;\n\tdefaultValue?: string;\n\tname?: string;\n\tdisabled?: boolean;\n\tonChange?: (value: string) => void;\n}\n\nexport type RadioBaseProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'size'>;\n\nexport interface RadioProps extends RadioBaseProps {\n\tchecked?: boolean;\n\tdefaultChecked?: boolean;\n\tvalue: string;\n\tonChange?: (checked: boolean) => void;\n}\n"]}
@@ -1,5 +0,0 @@
1
- export declare const selectClass: {
2
- readonly root: 'fl-select';
3
- readonly innerSelect: 'fl-select_inner-select';
4
- readonly arrow: 'fl-select_arrow';
5
- };
@@ -1,6 +0,0 @@
1
- export const selectClass = {
2
- root: 'fl-select',
3
- innerSelect: 'fl-select_inner-select',
4
- arrow: 'fl-select_arrow',
5
- };
6
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/select/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE,iBAAiB;CACf,CAAC","sourcesContent":["export const selectClass = {\n\troot: 'fl-select',\n\tinnerSelect: 'fl-select_inner-select',\n\tarrow: 'fl-select_arrow',\n} as const;\n"]}
@@ -1,2 +0,0 @@
1
- export * from './class';
2
- export * from './select';
@@ -1,3 +0,0 @@
1
- export * from './class';
2
- export * from './select';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC","sourcesContent":["export * from './class';\nexport * from './select';\n"]}
@@ -1,76 +0,0 @@
1
- @layer components {
2
- .fl-select {
3
- /* layout */
4
- position: relative;
5
- display: inline-flex;
6
- align-items: stretch;
7
-
8
- /* background */
9
- background: var(--fl-input-bg-color, var(--fl-body-bg-color));
10
- border: var(--fl-input-border-size, var(--fl-border-size, 1px)) solid
11
- var(--fl-input-border-color, var(--fl-border-color));
12
- border-radius: var(--fl-input-border-radius, var(--fl-border-radius));
13
-
14
- /* effects */
15
- box-shadow: var(--fl-input-shadow);
16
- }
17
-
18
- .fl-select:focus-within {
19
- border-color: var(--fl-input-border-focus-color, var(--fl-focus-ring-color));
20
- outline: var(--fl-focus-ring-size) solid var(--fl-focus-ring-color);
21
- outline-offset: 0;
22
- }
23
-
24
- .fl-select[data-disabled] {
25
- cursor: var(--fl-disabled-cursor);
26
- opacity: var(--fl-disabled-opacity);
27
- }
28
-
29
- .fl-select .fl-select_inner-select {
30
- /* reset */
31
- appearance: none;
32
- outline: none;
33
-
34
- /* layout */
35
- width: 100%;
36
- min-width: 0;
37
-
38
- /* spacing */
39
- padding-inline: var(--fl-input-pad-x, var(--fl-size-2));
40
- padding-block: var(--fl-input-pad-y, var(--fl-size-1-5));
41
- padding-right: calc(var(--fl-size-4) + var(--fl-size-4));
42
-
43
- /* background */
44
- background: transparent;
45
- border: 0;
46
-
47
- /* text */
48
- color: var(--fl-input-text-color, var(--fl-body-text-color));
49
- font: inherit;
50
-
51
- /* pointer */
52
- cursor: pointer;
53
- }
54
-
55
- .fl-select[data-disabled] .fl-select_inner-select {
56
- cursor: var(--fl-disabled-cursor);
57
- }
58
-
59
- .fl-select .fl-select_arrow {
60
- /* layout */
61
- position: absolute;
62
- right: var(--fl-size-2);
63
- top: 50%;
64
- width: var(--fl-size-4);
65
- height: var(--fl-size-4);
66
-
67
- /* text */
68
- color: var(--fl-input-text-color, var(--fl-body-text-color));
69
-
70
- /* pointer */
71
- pointer-events: none;
72
-
73
- /* effects */
74
- transform: translateY(-50%);
75
- }
76
- }
@@ -1,6 +0,0 @@
1
- import { type JSX } from 'solid-js';
2
- import './select.css';
3
- export type SelectBaseProps = JSX.SelectHTMLAttributes<HTMLSelectElement>;
4
- export interface SelectProps extends SelectBaseProps {
5
- }
6
- export declare function Select(props: SelectProps): JSX.Element;
@@ -1,16 +0,0 @@
1
- import clsx from 'clsx/lite';
2
- import { splitProps } from 'solid-js';
3
- import { ChevronDownIcon } from '#src/icons';
4
- import { selectClass } from './class';
5
- import './select.css';
6
- export function Select(props) {
7
- const [local, rest] = splitProps(props, ['class', 'children', 'disabled']);
8
- const rootClass = () => clsx(selectClass.root, local.class);
9
- return (<div class={rootClass()} data-disabled={local.disabled ? '' : undefined}>
10
- <select class={selectClass.innerSelect} disabled={local.disabled} {...rest}>
11
- {local.children}
12
- </select>
13
- <ChevronDownIcon class={selectClass.arrow}/>
14
- </div>);
15
- }
16
- //# sourceMappingURL=select.jsx.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.jsx","sourceRoot":"","sources":["../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,cAAc,CAAC;AAMtB,MAAM,UAAU,MAAM,CAAC,KAAkB;IACxC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAE5D,OAAO,CACN,CAAC,GAAG,CACH,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CACnB,aAAa,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAE/C;GAAA,CAAC,MAAM,CACN,KAAK,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAC/B,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,KAAK,CAAC,QAAQ,CAChB;GAAA,EAAE,MAAM,CACR;GAAA,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAC3C;EAAA,EAAE,GAAG,CAAC,CACN,CAAC;AACH,CAAC","sourcesContent":["import clsx from 'clsx/lite';\nimport { type JSX, splitProps } from 'solid-js';\nimport { ChevronDownIcon } from '#src/icons';\nimport { selectClass } from './class';\nimport './select.css';\n\nexport type SelectBaseProps = JSX.SelectHTMLAttributes<HTMLSelectElement>;\n\nexport interface SelectProps extends SelectBaseProps {}\n\nexport function Select(props: SelectProps) {\n\tconst [local, rest] = splitProps(props, ['class', 'children', 'disabled']);\n\n\tconst rootClass = () => clsx(selectClass.root, local.class);\n\n\treturn (\n\t\t<div\n\t\t\tclass={rootClass()}\n\t\t\tdata-disabled={local.disabled ? '' : undefined}\n\t\t>\n\t\t\t<select\n\t\t\t\tclass={selectClass.innerSelect}\n\t\t\t\tdisabled={local.disabled}\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{local.children}\n\t\t\t</select>\n\t\t\t<ChevronDownIcon class={selectClass.arrow} />\n\t\t</div>\n\t);\n}\n"]}
@@ -1,3 +0,0 @@
1
- export declare const sliderClass: {
2
- readonly root: 'fl-slider';
3
- };
@@ -1,4 +0,0 @@
1
- export const sliderClass = {
2
- root: 'fl-slider',
3
- };
4
- //# sourceMappingURL=class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/components/slider/class.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,WAAW;CACR,CAAC","sourcesContent":["export const sliderClass = {\n\troot: 'fl-slider',\n} as const;\n"]}
@@ -1,2 +0,0 @@
1
- export * from './class';
2
- export * from './slider';
@@ -1,3 +0,0 @@
1
- export * from './class';
2
- export * from './slider';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/slider/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC","sourcesContent":["export * from './class';\nexport * from './slider';\n"]}