@tipp/ui 0.1.5 → 0.1.7

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 (508) hide show
  1. package/dist/atoms/alert-dialog.js +1 -1
  2. package/dist/atoms/aspect-ratio.js +1 -1
  3. package/dist/atoms/avatar.cjs +53 -1
  4. package/dist/atoms/avatar.cjs.map +1 -1
  5. package/dist/atoms/avatar.d.cts +11 -1
  6. package/dist/atoms/avatar.d.ts +11 -1
  7. package/dist/atoms/avatar.js +2 -2
  8. package/dist/atoms/badge.cjs +62 -1
  9. package/dist/atoms/badge.cjs.map +1 -1
  10. package/dist/atoms/badge.d.cts +13 -1
  11. package/dist/atoms/badge.d.ts +13 -1
  12. package/dist/atoms/badge.js +2 -2
  13. package/dist/atoms/blockquote.js +1 -1
  14. package/dist/atoms/box.js +1 -1
  15. package/dist/atoms/button.cjs +51 -1
  16. package/dist/atoms/button.cjs.map +1 -1
  17. package/dist/atoms/button.d.cts +11 -1
  18. package/dist/atoms/button.d.ts +11 -1
  19. package/dist/atoms/button.js +2 -2
  20. package/dist/atoms/call-out.js +1 -1
  21. package/dist/atoms/card.js +1 -1
  22. package/dist/atoms/check-box-card.js +1 -1
  23. package/dist/atoms/check-box-group.cjs +52 -1
  24. package/dist/atoms/check-box-group.cjs.map +1 -1
  25. package/dist/atoms/check-box-group.d.cts +11 -1
  26. package/dist/atoms/check-box-group.d.ts +11 -1
  27. package/dist/atoms/check-box-group.js +2 -2
  28. package/dist/atoms/check-box.cjs +49 -1
  29. package/dist/atoms/check-box.cjs.map +1 -1
  30. package/dist/atoms/check-box.d.cts +11 -1
  31. package/dist/atoms/check-box.d.ts +11 -1
  32. package/dist/atoms/check-box.js +2 -2
  33. package/dist/atoms/code.js +1 -1
  34. package/dist/atoms/collapse.cjs +50 -0
  35. package/dist/atoms/collapse.cjs.map +1 -0
  36. package/dist/atoms/collapse.d.cts +10 -0
  37. package/dist/atoms/collapse.d.ts +10 -0
  38. package/dist/atoms/collapse.js +8 -0
  39. package/dist/atoms/container.js +1 -1
  40. package/dist/atoms/data-list.js +1 -1
  41. package/dist/atoms/date-picker/index.d.cts +2 -2
  42. package/dist/atoms/date-picker/index.d.ts +2 -2
  43. package/dist/atoms/date-picker/index.js +2 -2
  44. package/dist/atoms/dialog.js +1 -1
  45. package/dist/atoms/dropdown-menu.js +1 -1
  46. package/dist/atoms/em.js +1 -1
  47. package/dist/atoms/flex.js +1 -1
  48. package/dist/atoms/grid.js +1 -1
  49. package/dist/atoms/heading.cjs +54 -2
  50. package/dist/atoms/heading.cjs.map +1 -1
  51. package/dist/atoms/heading.d.cts +9 -1
  52. package/dist/atoms/heading.d.ts +9 -1
  53. package/dist/atoms/heading.js +6 -4
  54. package/dist/atoms/hover-card.js +1 -1
  55. package/dist/atoms/icon-button.js +1 -1
  56. package/dist/atoms/index.cjs +516 -0
  57. package/dist/atoms/index.cjs.map +1 -0
  58. package/dist/atoms/index.d.cts +13 -0
  59. package/dist/atoms/index.d.ts +13 -0
  60. package/dist/atoms/index.js +197 -0
  61. package/dist/atoms/index.js.map +1 -0
  62. package/dist/atoms/inset.js +1 -1
  63. package/dist/atoms/kbd.js +1 -1
  64. package/dist/atoms/link.cjs +52 -2
  65. package/dist/atoms/link.cjs.map +1 -1
  66. package/dist/atoms/link.d.cts +9 -1
  67. package/dist/atoms/link.d.ts +9 -1
  68. package/dist/atoms/link.js +5 -3
  69. package/dist/atoms/popover.js +1 -1
  70. package/dist/atoms/progress.js +1 -1
  71. package/dist/atoms/quote.js +1 -1
  72. package/dist/atoms/radio-cards.js +1 -1
  73. package/dist/atoms/radio-group.js +1 -1
  74. package/dist/atoms/radio.js +1 -1
  75. package/dist/atoms/scroll-area.js +1 -1
  76. package/dist/atoms/section.js +1 -1
  77. package/dist/atoms/segmented-control.js +1 -1
  78. package/dist/atoms/select.js +1 -1
  79. package/dist/atoms/separator.js +1 -1
  80. package/dist/atoms/skeleton.js +1 -1
  81. package/dist/atoms/strong.js +1 -1
  82. package/dist/atoms/switch.js +1 -1
  83. package/dist/atoms/tab-nav.js +1 -1
  84. package/dist/atoms/tabs.js +1 -1
  85. package/dist/atoms/text-area.js +1 -1
  86. package/dist/atoms/text-field.js +1 -1
  87. package/dist/atoms/text.cjs +48 -1
  88. package/dist/atoms/text.cjs.map +1 -1
  89. package/dist/atoms/text.d.cts +9 -1
  90. package/dist/atoms/text.d.ts +9 -1
  91. package/dist/atoms/text.js +2 -2
  92. package/dist/atoms/tooltip.js +1 -1
  93. package/dist/chart/chart.d.cts +2 -2
  94. package/dist/chart/chart.d.ts +2 -2
  95. package/dist/chart/chart.js +1 -1
  96. package/dist/chunk-27L4OHTY.js +27 -0
  97. package/dist/chunk-27L4OHTY.js.map +1 -0
  98. package/dist/chunk-2DNE6UUJ.js +110 -0
  99. package/dist/chunk-2DNE6UUJ.js.map +1 -0
  100. package/dist/chunk-2KI32NVG.js +26 -0
  101. package/dist/chunk-2KI32NVG.js.map +1 -0
  102. package/dist/chunk-2LNGRFNA.js +112 -0
  103. package/dist/chunk-2LNGRFNA.js.map +1 -0
  104. package/dist/chunk-2M3VXTYB.js +129 -0
  105. package/dist/chunk-2M3VXTYB.js.map +1 -0
  106. package/dist/chunk-2MV4AUHD.js +128 -0
  107. package/dist/chunk-2MV4AUHD.js.map +1 -0
  108. package/dist/chunk-2W73AR2R.js +115 -0
  109. package/dist/chunk-2W73AR2R.js.map +1 -0
  110. package/dist/chunk-2ZXOUX2G.js +115 -0
  111. package/dist/chunk-2ZXOUX2G.js.map +1 -0
  112. package/dist/chunk-3PF7OMJ2.js +1 -0
  113. package/dist/chunk-3PF7OMJ2.js.map +1 -0
  114. package/dist/chunk-3QWUK5TO.js +127 -0
  115. package/dist/chunk-3QWUK5TO.js.map +1 -0
  116. package/dist/chunk-3SX45JRI.js +115 -0
  117. package/dist/chunk-3SX45JRI.js.map +1 -0
  118. package/dist/chunk-42B6HX3M.js +115 -0
  119. package/dist/chunk-42B6HX3M.js.map +1 -0
  120. package/dist/chunk-4BB7L3KU.js +102 -0
  121. package/dist/chunk-4BB7L3KU.js.map +1 -0
  122. package/dist/chunk-4DDZULLY.js +112 -0
  123. package/dist/chunk-4DDZULLY.js.map +1 -0
  124. package/dist/chunk-4G6627MF.js +123 -0
  125. package/dist/chunk-4G6627MF.js.map +1 -0
  126. package/dist/chunk-4GAJSRUI.js +152 -0
  127. package/dist/chunk-4GAJSRUI.js.map +1 -0
  128. package/dist/chunk-4NBSVGGS.js +128 -0
  129. package/dist/chunk-4NBSVGGS.js.map +1 -0
  130. package/dist/chunk-4OOII7DI.js +100 -0
  131. package/dist/chunk-4OOII7DI.js.map +1 -0
  132. package/dist/chunk-4P7ZJOCM.js +111 -0
  133. package/dist/chunk-4P7ZJOCM.js.map +1 -0
  134. package/dist/chunk-4TYGAGTF.js +62 -0
  135. package/dist/chunk-4TYGAGTF.js.map +1 -0
  136. package/dist/chunk-5BGEXH2G.js +128 -0
  137. package/dist/chunk-5BGEXH2G.js.map +1 -0
  138. package/dist/chunk-5HSJCSTW.js +84 -0
  139. package/dist/chunk-5HSJCSTW.js.map +1 -0
  140. package/dist/chunk-5ILC3SI7.js +88 -0
  141. package/dist/chunk-5ILC3SI7.js.map +1 -0
  142. package/dist/chunk-5QDSOJFW.js +115 -0
  143. package/dist/chunk-5QDSOJFW.js.map +1 -0
  144. package/dist/chunk-5WLUD6NK.js +84 -0
  145. package/dist/chunk-5WLUD6NK.js.map +1 -0
  146. package/dist/chunk-65BJUTFT.js +115 -0
  147. package/dist/chunk-65BJUTFT.js.map +1 -0
  148. package/dist/chunk-6LG5L6EW.js +84 -0
  149. package/dist/chunk-6LG5L6EW.js.map +1 -0
  150. package/dist/chunk-6MFZ4EVU.js +112 -0
  151. package/dist/chunk-6MFZ4EVU.js.map +1 -0
  152. package/dist/chunk-6O5WO54I.js +112 -0
  153. package/dist/chunk-6O5WO54I.js.map +1 -0
  154. package/dist/chunk-6TAF3R6J.js +110 -0
  155. package/dist/chunk-6TAF3R6J.js.map +1 -0
  156. package/dist/chunk-6X4I5AAF.js +102 -0
  157. package/dist/chunk-6X4I5AAF.js.map +1 -0
  158. package/dist/chunk-76NL7K3Z.js +112 -0
  159. package/dist/chunk-76NL7K3Z.js.map +1 -0
  160. package/dist/chunk-7DVBR2AB.js +61 -0
  161. package/dist/chunk-7DVBR2AB.js.map +1 -0
  162. package/dist/chunk-7EDMK3RI.js +120 -0
  163. package/dist/chunk-7EDMK3RI.js.map +1 -0
  164. package/dist/chunk-7MRNTBSF.js +94 -0
  165. package/dist/chunk-7MRNTBSF.js.map +1 -0
  166. package/dist/chunk-7XHVXM26.js +112 -0
  167. package/dist/chunk-7XHVXM26.js.map +1 -0
  168. package/dist/chunk-A2NPHLZL.js +58 -0
  169. package/dist/chunk-A2NPHLZL.js.map +1 -0
  170. package/dist/chunk-A4HB2N3E.js +84 -0
  171. package/dist/chunk-A4HB2N3E.js.map +1 -0
  172. package/dist/chunk-AJFT3OBC.js +112 -0
  173. package/dist/chunk-AJFT3OBC.js.map +1 -0
  174. package/dist/chunk-ALOPZ54P.js +47 -0
  175. package/dist/chunk-ALOPZ54P.js.map +1 -0
  176. package/dist/chunk-BAZLOURW.js +110 -0
  177. package/dist/chunk-BAZLOURW.js.map +1 -0
  178. package/dist/chunk-BHVOOK5W.js +115 -0
  179. package/dist/chunk-BHVOOK5W.js.map +1 -0
  180. package/dist/chunk-BOQD5BQZ.js +112 -0
  181. package/dist/chunk-BOQD5BQZ.js.map +1 -0
  182. package/dist/chunk-BSTJBBEX.js +39 -0
  183. package/dist/chunk-BSTJBBEX.js.map +1 -0
  184. package/dist/chunk-BTTGAVHQ.js +115 -0
  185. package/dist/chunk-BTTGAVHQ.js.map +1 -0
  186. package/dist/chunk-CQCAE7AI.js +136 -0
  187. package/dist/chunk-CQCAE7AI.js.map +1 -0
  188. package/dist/chunk-CTZQPSJS.js +128 -0
  189. package/dist/chunk-CTZQPSJS.js.map +1 -0
  190. package/dist/chunk-CZEGRZBK.js +38 -0
  191. package/dist/chunk-CZEGRZBK.js.map +1 -0
  192. package/dist/chunk-D7WKYHHH.js +115 -0
  193. package/dist/chunk-D7WKYHHH.js.map +1 -0
  194. package/dist/chunk-DAEZ55AR.js +112 -0
  195. package/dist/chunk-DAEZ55AR.js.map +1 -0
  196. package/dist/chunk-DEY76FPA.js +85 -0
  197. package/dist/chunk-DEY76FPA.js.map +1 -0
  198. package/dist/chunk-DL7UX53Q.js +127 -0
  199. package/dist/chunk-DL7UX53Q.js.map +1 -0
  200. package/dist/chunk-DSEZROBT.js +112 -0
  201. package/dist/chunk-DSEZROBT.js.map +1 -0
  202. package/dist/chunk-DUTHAUB2.js +137 -0
  203. package/dist/chunk-DUTHAUB2.js.map +1 -0
  204. package/dist/chunk-DZSYRWUW.js +127 -0
  205. package/dist/chunk-DZSYRWUW.js.map +1 -0
  206. package/dist/chunk-DZSZIOEI.js +112 -0
  207. package/dist/chunk-DZSZIOEI.js.map +1 -0
  208. package/dist/chunk-EL6BPIX7.js +83 -0
  209. package/dist/chunk-EL6BPIX7.js.map +1 -0
  210. package/dist/chunk-FETMGSPF.js +84 -0
  211. package/dist/chunk-FETMGSPF.js.map +1 -0
  212. package/dist/chunk-FHYXFC2U.js +115 -0
  213. package/dist/chunk-FHYXFC2U.js.map +1 -0
  214. package/dist/chunk-FI5TJMNV.js +128 -0
  215. package/dist/chunk-FI5TJMNV.js.map +1 -0
  216. package/dist/chunk-G7FCL6ZF.js +120 -0
  217. package/dist/chunk-G7FCL6ZF.js.map +1 -0
  218. package/dist/chunk-GVMJX6Z4.js +115 -0
  219. package/dist/chunk-GVMJX6Z4.js.map +1 -0
  220. package/dist/chunk-GWHGDUKQ.js +88 -0
  221. package/dist/chunk-GWHGDUKQ.js.map +1 -0
  222. package/dist/chunk-HBUNVKOV.js +103 -0
  223. package/dist/chunk-HBUNVKOV.js.map +1 -0
  224. package/dist/chunk-HJO3Y576.js +27 -0
  225. package/dist/chunk-HJO3Y576.js.map +1 -0
  226. package/dist/chunk-HLOY6BIP.js +37 -0
  227. package/dist/chunk-HLOY6BIP.js.map +1 -0
  228. package/dist/chunk-HW7H5HTH.js +112 -0
  229. package/dist/chunk-HW7H5HTH.js.map +1 -0
  230. package/dist/{chunk-D5QWAVBB.js → chunk-IIBITN2G.js} +2 -2
  231. package/dist/chunk-IMMW2HK5.js +59 -0
  232. package/dist/chunk-IMMW2HK5.js.map +1 -0
  233. package/dist/chunk-IMUYV43Y.js +109 -0
  234. package/dist/chunk-IMUYV43Y.js.map +1 -0
  235. package/dist/chunk-IMWZDYN7.js +112 -0
  236. package/dist/chunk-IMWZDYN7.js.map +1 -0
  237. package/dist/chunk-IQEEPHOY.js +35 -0
  238. package/dist/chunk-IQEEPHOY.js.map +1 -0
  239. package/dist/chunk-IVTZHY7Z.js +58 -0
  240. package/dist/chunk-IVTZHY7Z.js.map +1 -0
  241. package/dist/chunk-J7HKGFZV.js +91 -0
  242. package/dist/chunk-J7HKGFZV.js.map +1 -0
  243. package/dist/chunk-JEHDCZQU.js +34 -0
  244. package/dist/chunk-JEHDCZQU.js.map +1 -0
  245. package/dist/chunk-JES76J4X.js +111 -0
  246. package/dist/chunk-JES76J4X.js.map +1 -0
  247. package/dist/chunk-JNWT5GPB.js +61 -0
  248. package/dist/chunk-JNWT5GPB.js.map +1 -0
  249. package/dist/chunk-KBBUVJZ4.js +120 -0
  250. package/dist/chunk-KBBUVJZ4.js.map +1 -0
  251. package/dist/chunk-KCZYNTRS.js +100 -0
  252. package/dist/chunk-KCZYNTRS.js.map +1 -0
  253. package/dist/chunk-KJ4EH7BR.js +59 -0
  254. package/dist/chunk-KJ4EH7BR.js.map +1 -0
  255. package/dist/chunk-KVE2W62U.js +118 -0
  256. package/dist/chunk-KVE2W62U.js.map +1 -0
  257. package/dist/chunk-KY5MG4R3.js +84 -0
  258. package/dist/chunk-KY5MG4R3.js.map +1 -0
  259. package/dist/chunk-KZHBVTOV.js +120 -0
  260. package/dist/chunk-KZHBVTOV.js.map +1 -0
  261. package/dist/chunk-LQG3AHLP.js +112 -0
  262. package/dist/chunk-LQG3AHLP.js.map +1 -0
  263. package/dist/chunk-LVH4YUST.js +26 -0
  264. package/dist/chunk-LVH4YUST.js.map +1 -0
  265. package/dist/chunk-MA63MDND.js +112 -0
  266. package/dist/chunk-MA63MDND.js.map +1 -0
  267. package/dist/chunk-MACX4CE5.js +85 -0
  268. package/dist/chunk-MACX4CE5.js.map +1 -0
  269. package/dist/{chunk-LGTAQGUA.js → chunk-N552FDTV.js} +15 -2
  270. package/dist/chunk-N552FDTV.js.map +1 -0
  271. package/dist/chunk-N56EMPMG.js +65 -0
  272. package/dist/chunk-N56EMPMG.js.map +1 -0
  273. package/dist/chunk-NBNMTQGR.js +26 -0
  274. package/dist/chunk-NBNMTQGR.js.map +1 -0
  275. package/dist/chunk-NCAJEO7P.js +115 -0
  276. package/dist/chunk-NCAJEO7P.js.map +1 -0
  277. package/dist/chunk-NCBCBTAQ.js +103 -0
  278. package/dist/chunk-NCBCBTAQ.js.map +1 -0
  279. package/dist/chunk-NDUKDKGB.js +39 -0
  280. package/dist/chunk-NDUKDKGB.js.map +1 -0
  281. package/dist/chunk-NGN57V7B.js +59 -0
  282. package/dist/chunk-NGN57V7B.js.map +1 -0
  283. package/dist/chunk-NRYELQXA.js +28 -0
  284. package/dist/chunk-NRYELQXA.js.map +1 -0
  285. package/dist/chunk-OB733UDT.js +127 -0
  286. package/dist/chunk-OB733UDT.js.map +1 -0
  287. package/dist/chunk-OCJNQGHN.js +26 -0
  288. package/dist/chunk-OCJNQGHN.js.map +1 -0
  289. package/dist/chunk-OEFGW5WQ.js +59 -0
  290. package/dist/chunk-OEFGW5WQ.js.map +1 -0
  291. package/dist/chunk-OJJGHURF.js +128 -0
  292. package/dist/chunk-OJJGHURF.js.map +1 -0
  293. package/dist/chunk-OR3SYACX.js +110 -0
  294. package/dist/chunk-OR3SYACX.js.map +1 -0
  295. package/dist/chunk-P27SSXGW.js +112 -0
  296. package/dist/chunk-P27SSXGW.js.map +1 -0
  297. package/dist/chunk-P3MNKH2Y.js +112 -0
  298. package/dist/chunk-P3MNKH2Y.js.map +1 -0
  299. package/dist/chunk-PBBRRA3D.js +85 -0
  300. package/dist/chunk-PBBRRA3D.js.map +1 -0
  301. package/dist/{chunk-LREYUDKD.js → chunk-PL3Q4UVY.js} +3 -3
  302. package/dist/{chunk-LREYUDKD.js.map → chunk-PL3Q4UVY.js.map} +1 -1
  303. package/dist/chunk-PMZJHV3B.js +110 -0
  304. package/dist/chunk-PMZJHV3B.js.map +1 -0
  305. package/dist/chunk-Q2BTVVTT.js +28 -0
  306. package/dist/chunk-Q2BTVVTT.js.map +1 -0
  307. package/dist/chunk-Q4NXIDU4.js +103 -0
  308. package/dist/chunk-Q4NXIDU4.js.map +1 -0
  309. package/dist/chunk-QAZKFB75.js +115 -0
  310. package/dist/chunk-QAZKFB75.js.map +1 -0
  311. package/dist/chunk-QC2CBBOL.js +115 -0
  312. package/dist/chunk-QC2CBBOL.js.map +1 -0
  313. package/dist/chunk-QOAOZNA3.js +115 -0
  314. package/dist/chunk-QOAOZNA3.js.map +1 -0
  315. package/dist/chunk-QPGMVI4F.js +129 -0
  316. package/dist/chunk-QPGMVI4F.js.map +1 -0
  317. package/dist/chunk-QUO6QC3J.js +115 -0
  318. package/dist/chunk-QUO6QC3J.js.map +1 -0
  319. package/dist/chunk-QXIGN7NS.js +57 -0
  320. package/dist/chunk-QXIGN7NS.js.map +1 -0
  321. package/dist/chunk-RAB36GRV.js +10 -0
  322. package/dist/chunk-RAB36GRV.js.map +1 -0
  323. package/dist/chunk-RET725VL.js +36 -0
  324. package/dist/chunk-RET725VL.js.map +1 -0
  325. package/dist/chunk-RRB3MNEK.js +128 -0
  326. package/dist/chunk-RRB3MNEK.js.map +1 -0
  327. package/dist/chunk-RYKW6VGO.js +115 -0
  328. package/dist/chunk-RYKW6VGO.js.map +1 -0
  329. package/dist/chunk-RZAV5DII.js +92 -0
  330. package/dist/chunk-RZAV5DII.js.map +1 -0
  331. package/dist/chunk-SIP42ITB.js +112 -0
  332. package/dist/chunk-SIP42ITB.js.map +1 -0
  333. package/dist/chunk-SPW2TQ6V.js +128 -0
  334. package/dist/chunk-SPW2TQ6V.js.map +1 -0
  335. package/dist/chunk-TDLEISIH.js +26 -0
  336. package/dist/chunk-TDLEISIH.js.map +1 -0
  337. package/dist/chunk-TFHM4UV3.js +128 -0
  338. package/dist/chunk-TFHM4UV3.js.map +1 -0
  339. package/dist/chunk-TYEPY57X.js +58 -0
  340. package/dist/chunk-TYEPY57X.js.map +1 -0
  341. package/dist/chunk-U2GQWNTX.js +102 -0
  342. package/dist/chunk-U2GQWNTX.js.map +1 -0
  343. package/dist/chunk-UNIVE56Y.js +58 -0
  344. package/dist/chunk-UNIVE56Y.js.map +1 -0
  345. package/dist/chunk-V3FONR6W.js +137 -0
  346. package/dist/chunk-V3FONR6W.js.map +1 -0
  347. package/dist/chunk-VA2MV5R5.js +62 -0
  348. package/dist/chunk-VA2MV5R5.js.map +1 -0
  349. package/dist/chunk-VBEZ4YQV.js +59 -0
  350. package/dist/chunk-VBEZ4YQV.js.map +1 -0
  351. package/dist/chunk-VBUUDBRU.js +112 -0
  352. package/dist/chunk-VBUUDBRU.js.map +1 -0
  353. package/dist/chunk-VMGLGDMN.js +109 -0
  354. package/dist/chunk-VMGLGDMN.js.map +1 -0
  355. package/dist/chunk-VR4ZX524.js +115 -0
  356. package/dist/chunk-VR4ZX524.js.map +1 -0
  357. package/dist/chunk-WEHYVZVA.js +128 -0
  358. package/dist/chunk-WEHYVZVA.js.map +1 -0
  359. package/dist/chunk-WN3DQQSJ.js +1 -0
  360. package/dist/chunk-WN3DQQSJ.js.map +1 -0
  361. package/dist/chunk-WNEHE5M4.js +152 -0
  362. package/dist/chunk-WNEHE5M4.js.map +1 -0
  363. package/dist/chunk-WOD22USJ.js +59 -0
  364. package/dist/chunk-WOD22USJ.js.map +1 -0
  365. package/dist/chunk-WSRJG33Z.js +109 -0
  366. package/dist/chunk-WSRJG33Z.js.map +1 -0
  367. package/dist/chunk-WWCWPFEJ.js +1 -0
  368. package/dist/chunk-WWCWPFEJ.js.map +1 -0
  369. package/dist/chunk-XJJDE4YP.js +31 -0
  370. package/dist/chunk-XJJDE4YP.js.map +1 -0
  371. package/dist/chunk-XQOZWYUA.js +35 -0
  372. package/dist/chunk-XQOZWYUA.js.map +1 -0
  373. package/dist/chunk-XSHODZPC.js +100 -0
  374. package/dist/chunk-XSHODZPC.js.map +1 -0
  375. package/dist/chunk-XX4MMXEU.js +102 -0
  376. package/dist/chunk-XX4MMXEU.js.map +1 -0
  377. package/dist/chunk-XYP34NO7.js +112 -0
  378. package/dist/chunk-XYP34NO7.js.map +1 -0
  379. package/dist/chunk-YCTIDPGT.js +84 -0
  380. package/dist/chunk-YCTIDPGT.js.map +1 -0
  381. package/dist/chunk-YILNYNQI.js +88 -0
  382. package/dist/chunk-YILNYNQI.js.map +1 -0
  383. package/dist/chunk-YLN2MLII.js +83 -0
  384. package/dist/chunk-YLN2MLII.js.map +1 -0
  385. package/dist/chunk-YR6DWD7J.js +88 -0
  386. package/dist/chunk-YR6DWD7J.js.map +1 -0
  387. package/dist/chunk-YXWQDUS3.js +58 -0
  388. package/dist/chunk-YXWQDUS3.js.map +1 -0
  389. package/dist/chunk-Z2QG4JZT.js +84 -0
  390. package/dist/chunk-Z2QG4JZT.js.map +1 -0
  391. package/dist/chunk-ZE5G2S34.js +65 -0
  392. package/dist/chunk-ZE5G2S34.js.map +1 -0
  393. package/dist/chunk-ZEE3JSQX.js +115 -0
  394. package/dist/chunk-ZEE3JSQX.js.map +1 -0
  395. package/dist/chunk-ZPRQAFMU.js +100 -0
  396. package/dist/chunk-ZPRQAFMU.js.map +1 -0
  397. package/dist/chunk-ZSGVUIMS.js +112 -0
  398. package/dist/chunk-ZSGVUIMS.js.map +1 -0
  399. package/dist/chunk-ZSKEEFOJ.js +115 -0
  400. package/dist/chunk-ZSKEEFOJ.js.map +1 -0
  401. package/dist/chunk-ZUD2IRNN.js +84 -0
  402. package/dist/chunk-ZUD2IRNN.js.map +1 -0
  403. package/dist/icon.js +1 -1
  404. package/dist/icons/down.cjs +96 -0
  405. package/dist/icons/down.cjs.map +1 -0
  406. package/dist/icons/down.d.cts +6 -0
  407. package/dist/icons/down.d.ts +6 -0
  408. package/dist/icons/down.js +8 -0
  409. package/dist/icons/down.js.map +1 -0
  410. package/dist/icons/types.cjs +19 -0
  411. package/dist/icons/types.cjs.map +1 -0
  412. package/dist/icons/types.d.cts +6 -0
  413. package/dist/icons/types.d.ts +6 -0
  414. package/dist/icons/types.js +1 -0
  415. package/dist/icons/types.js.map +1 -0
  416. package/dist/icons/up.cjs +96 -0
  417. package/dist/icons/up.cjs.map +1 -0
  418. package/dist/icons/up.d.cts +6 -0
  419. package/dist/icons/up.d.ts +6 -0
  420. package/dist/icons/up.js +8 -0
  421. package/dist/icons/up.js.map +1 -0
  422. package/dist/index.cjs +480 -65
  423. package/dist/index.cjs.map +1 -1
  424. package/dist/index.css +60 -0
  425. package/dist/index.d.cts +13 -1
  426. package/dist/index.d.ts +13 -1
  427. package/dist/index.js +46 -31
  428. package/dist/molecules/expand-table/index.cjs +588 -0
  429. package/dist/molecules/expand-table/index.cjs.map +1 -0
  430. package/dist/molecules/expand-table/index.d.cts +21 -0
  431. package/dist/molecules/expand-table/index.d.ts +21 -0
  432. package/dist/molecules/expand-table/index.js +62 -0
  433. package/dist/molecules/expand-table/index.js.map +1 -0
  434. package/dist/molecules/expand-table/react-table.d.cjs +5 -0
  435. package/dist/molecules/expand-table/react-table.d.cjs.map +1 -0
  436. package/dist/molecules/expand-table/react-table.d.d.cts +16 -0
  437. package/dist/molecules/expand-table/react-table.d.d.ts +16 -0
  438. package/dist/molecules/expand-table/react-table.d.js +3 -0
  439. package/dist/molecules/expand-table/react-table.d.js.map +1 -0
  440. package/dist/molecules/expand-table/row.cjs +427 -0
  441. package/dist/molecules/expand-table/row.cjs.map +1 -0
  442. package/dist/molecules/expand-table/row.d.cts +15 -0
  443. package/dist/molecules/expand-table/row.d.ts +15 -0
  444. package/dist/molecules/expand-table/row.js +57 -0
  445. package/dist/molecules/expand-table/row.js.map +1 -0
  446. package/dist/molecules/expand-table.cjs +558 -0
  447. package/dist/molecules/expand-table.cjs.map +1 -0
  448. package/dist/molecules/expand-table.d.cts +23 -0
  449. package/dist/molecules/expand-table.d.ts +23 -0
  450. package/dist/molecules/expand-table.js +59 -0
  451. package/dist/molecules/expand-table.js.map +1 -0
  452. package/dist/molecules/index.cjs +590 -0
  453. package/dist/molecules/index.cjs.map +1 -0
  454. package/dist/molecules/index.d.cts +4 -0
  455. package/dist/molecules/index.d.ts +4 -0
  456. package/dist/molecules/index.js +63 -0
  457. package/dist/molecules/index.js.map +1 -0
  458. package/dist/theme/theme-provider.cjs +1 -1
  459. package/dist/theme/theme-provider.cjs.map +1 -1
  460. package/dist/theme/theme-provider.d.cts +4 -4
  461. package/dist/theme/theme-provider.d.ts +4 -4
  462. package/dist/theme/theme-provider.js +2 -2
  463. package/dist/theme/use-theme.js +1 -1
  464. package/dist/types/react-table.d.cjs +5 -0
  465. package/dist/types/react-table.d.cjs.map +1 -0
  466. package/dist/types/react-table.d.d.cts +17 -0
  467. package/dist/types/react-table.d.d.ts +17 -0
  468. package/dist/types/react-table.d.js +3 -0
  469. package/dist/types/react-table.d.js.map +1 -0
  470. package/dist/ui-props/index.js +1 -1
  471. package/package.json +9 -7
  472. package/src/atoms/avatar.tsx +37 -1
  473. package/src/atoms/badge.tsx +47 -1
  474. package/src/atoms/button.tsx +32 -1
  475. package/src/atoms/check-box-group.tsx +38 -1
  476. package/src/atoms/check-box.tsx +30 -1
  477. package/src/atoms/collapse.tsx +32 -0
  478. package/src/atoms/heading.tsx +35 -1
  479. package/src/atoms/index.ts +48 -0
  480. package/src/atoms/link.tsx +33 -1
  481. package/src/atoms/text.tsx +30 -1
  482. package/src/icons/down.tsx +25 -0
  483. package/src/icons/types.ts +4 -0
  484. package/src/icons/up.tsx +25 -0
  485. package/src/index.ts +3 -49
  486. package/src/molecules/expand-table/index.tsx +131 -0
  487. package/src/molecules/expand-table/row.tsx +67 -0
  488. package/src/molecules/index.ts +1 -0
  489. package/src/theme/theme-provider.tsx +1 -1
  490. package/src/types/react-table.d.ts +19 -0
  491. package/dist/chunk-3566LFAS.js +0 -7
  492. package/dist/chunk-3566LFAS.js.map +0 -1
  493. package/dist/chunk-4PP245MS.js +0 -7
  494. package/dist/chunk-4PP245MS.js.map +0 -1
  495. package/dist/chunk-DYUKDKUS.js +0 -7
  496. package/dist/chunk-DYUKDKUS.js.map +0 -1
  497. package/dist/chunk-LFJCZVNE.js +0 -7
  498. package/dist/chunk-LFJCZVNE.js.map +0 -1
  499. package/dist/chunk-M4P36WOR.js +0 -7
  500. package/dist/chunk-M4P36WOR.js.map +0 -1
  501. package/dist/chunk-MLMWFOEE.js +0 -7
  502. package/dist/chunk-MLMWFOEE.js.map +0 -1
  503. package/dist/chunk-MYTJIEMB.js +0 -7
  504. package/dist/chunk-MYTJIEMB.js.map +0 -1
  505. package/dist/chunk-W4KST6UY.js +0 -7
  506. package/dist/chunk-W4KST6UY.js.map +0 -1
  507. /package/dist/{chunk-LGTAQGUA.js.map → atoms/collapse.js.map} +0 -0
  508. /package/dist/{chunk-D5QWAVBB.js.map → chunk-IIBITN2G.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ export { ExpandTable, ExpandTableProps } from './expand-table/index.js';
2
+ export { ExpandComp, OnRowClick } from './expand-table/row.js';
3
+ export { ColumnDef, createColumnHelper } from '@tanstack/react-table';
4
+ import 'react';
@@ -0,0 +1,63 @@
1
+ import "../chunk-WWCWPFEJ.js";
2
+ import {
3
+ ExpandTable,
4
+ createColumnHelper
5
+ } from "../chunk-76NL7K3Z.js";
6
+ import "../chunk-ZE5G2S34.js";
7
+ import "../chunk-BSTJBBEX.js";
8
+ import "../chunk-NDUKDKGB.js";
9
+ import "../chunk-WN3DQQSJ.js";
10
+ import "../chunk-IIBITN2G.js";
11
+ import "../chunk-JPIZP2PZ.js";
12
+ import "../chunk-XJJDE4YP.js";
13
+ import "../chunk-ACVANQJ4.js";
14
+ import "../chunk-355MU6BH.js";
15
+ import "../chunk-HYITAA4J.js";
16
+ import "../chunk-5H3YPCZK.js";
17
+ import "../chunk-74DX4CU7.js";
18
+ import "../chunk-OYM4XCHQ.js";
19
+ import "../chunk-YJ7ZFOYL.js";
20
+ import "../chunk-5ZITU5L7.js";
21
+ import "../chunk-ILRUXI2E.js";
22
+ import "../chunk-365QMK4D.js";
23
+ import "../chunk-YO3BQW6S.js";
24
+ import "../chunk-6IVCARWS.js";
25
+ import "../chunk-6DJOIRMF.js";
26
+ import "../chunk-FPD73OHW.js";
27
+ import "../chunk-ZKZDVS7G.js";
28
+ import "../chunk-MUNMDHRF.js";
29
+ import "../chunk-TVDKGMBI.js";
30
+ import "../chunk-HLOY6BIP.js";
31
+ import "../chunk-O3T3TM3V.js";
32
+ import "../chunk-O3DNDMV3.js";
33
+ import "../chunk-XQOL7UBI.js";
34
+ import "../chunk-TULWX7D6.js";
35
+ import "../chunk-XQOZWYUA.js";
36
+ import "../chunk-5AVBYDPB.js";
37
+ import "../chunk-OCJNQGHN.js";
38
+ import "../chunk-Q37G2GS6.js";
39
+ import "../chunk-VTJZMOSP.js";
40
+ import "../chunk-P6B2PNYI.js";
41
+ import "../chunk-YTZSKMX3.js";
42
+ import "../chunk-2DZ2Y3JI.js";
43
+ import "../chunk-25HMMI7R.js";
44
+ import "../chunk-EGEQY3KT.js";
45
+ import "../chunk-4Y5BEXVN.js";
46
+ import "../chunk-RET725VL.js";
47
+ import "../chunk-B6XJN6EC.js";
48
+ import "../chunk-FYEASFUU.js";
49
+ import "../chunk-MIMJ7LON.js";
50
+ import "../chunk-IQEEPHOY.js";
51
+ import "../chunk-JEHDCZQU.js";
52
+ import "../chunk-OHMOP5PV.js";
53
+ import "../chunk-J242TTFH.js";
54
+ import "../chunk-EAXUQEO5.js";
55
+ import "../chunk-CZEGRZBK.js";
56
+ import "../chunk-ALOPZ54P.js";
57
+ import "../chunk-YGL6SWKN.js";
58
+ import "../chunk-N552FDTV.js";
59
+ export {
60
+ ExpandTable,
61
+ createColumnHelper
62
+ };
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -40,7 +40,7 @@ module.exports = __toCommonJS(theme_provider_exports);
40
40
  var import_themes = require("@radix-ui/themes");
41
41
  var import_jsx_runtime = require("react/jsx-runtime");
42
42
  function ThemeProvider(props) {
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Theme, __spreadValues({ accentColor: "iris" }, props));
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
44
44
  }
45
45
  // Annotate the CommonJS export names for ESM import in node:
46
46
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAsB;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,4CAAC,sCAAM,aAAY,UAAW,MAAO;AAC9C;","names":[]}
1
+ {"version":3,"sources":["../../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAsB;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;","names":[]}
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { Theme } from '@radix-ui/themes';
3
3
 
4
- type ThemeProps = React.ComponentProps<typeof Theme>;
4
+ type ThemeProps = React__default.ComponentProps<typeof Theme>;
5
5
  interface ThemeProviderProps extends ThemeProps {
6
- children: React.ReactNode;
6
+ children: React__default.ReactNode;
7
7
  }
8
- declare function ThemeProvider(props: ThemeProviderProps): React.ReactNode;
8
+ declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactNode;
9
9
 
10
10
  export { ThemeProvider };
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { Theme } from '@radix-ui/themes';
3
3
 
4
- type ThemeProps = React.ComponentProps<typeof Theme>;
4
+ type ThemeProps = React__default.ComponentProps<typeof Theme>;
5
5
  interface ThemeProviderProps extends ThemeProps {
6
- children: React.ReactNode;
6
+ children: React__default.ReactNode;
7
7
  }
8
- declare function ThemeProvider(props: ThemeProviderProps): React.ReactNode;
8
+ declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactNode;
9
9
 
10
10
  export { ThemeProvider };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ThemeProvider
3
- } from "../chunk-LREYUDKD.js";
4
- import "../chunk-LGTAQGUA.js";
3
+ } from "../chunk-PL3Q4UVY.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  ThemeProvider
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useThemeContext
3
3
  } from "../chunk-MMGP4GEQ.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  useThemeContext
7
7
  };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // src/types/react-table.d.ts
4
+ var import_react_table = require("@tanstack/react-table");
5
+ //# sourceMappingURL=react-table.d.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/types/react-table.d.ts"],"sourcesContent":["import '@tanstack/react-table';\n\ndeclare module '@tanstack/react-table' {\n type ExpandButtonComp = <Data extends RowData>(props: {\n open: boolean;\n setIsOpen: (value: boolean) => void;\n data: Data;\n }) => React.ReactNode;\n\n /** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */\n\n interface ColumnMeta {\n OpenBtn?: ExpandButtonComp;\n /** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.\n * 테이블 당 하나의 셀에만 사용하기를 권장\n */\n autoSize?: boolean;\n }\n}\n"],"mappings":";;;AAAA,yBAAO;","names":[]}
@@ -0,0 +1,17 @@
1
+ declare module '@tanstack/react-table' {
2
+ type ExpandButtonComp = <Data extends RowData>(props: {
3
+ open: boolean;
4
+ setIsOpen: (value: boolean) => void;
5
+ data: Data;
6
+ }) => React.ReactNode;
7
+
8
+ /** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */
9
+
10
+ interface ColumnMeta {
11
+ OpenBtn?: ExpandButtonComp;
12
+ /** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.
13
+ * 테이블 당 하나의 셀에만 사용하기를 권장
14
+ */
15
+ autoSize?: boolean;
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ declare module '@tanstack/react-table' {
2
+ type ExpandButtonComp = <Data extends RowData>(props: {
3
+ open: boolean;
4
+ setIsOpen: (value: boolean) => void;
5
+ data: Data;
6
+ }) => React.ReactNode;
7
+
8
+ /** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */
9
+
10
+ interface ColumnMeta {
11
+ OpenBtn?: ExpandButtonComp;
12
+ /** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.
13
+ * 테이블 당 하나의 셀에만 사용하기를 권장
14
+ */
15
+ autoSize?: boolean;
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ // src/types/react-table.d.ts
2
+ import "@tanstack/react-table";
3
+ //# sourceMappingURL=react-table.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/types/react-table.d.ts"],"sourcesContent":["import '@tanstack/react-table';\n\ndeclare module '@tanstack/react-table' {\n type ExpandButtonComp = <Data extends RowData>(props: {\n open: boolean;\n setIsOpen: (value: boolean) => void;\n data: Data;\n }) => React.ReactNode;\n\n /** OpenBtn을 전달한 경우 open과 setIsOpen 상태 관리 props를 전달해 렌더함 */\n\n interface ColumnMeta {\n OpenBtn?: ExpandButtonComp;\n /** 셀의 가로 너비 지정을 number가 아닌 auto로 사용하고 싶을 경우.\n * 테이블 당 하나의 셀에만 사용하기를 권장\n */\n autoSize?: boolean;\n }\n}\n"],"mappings":";AAAA,OAAO;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  uiProps
3
3
  } from "../chunk-NVKNDAIN.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  uiProps
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tipp/ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -56,9 +56,11 @@
56
56
  "dependencies": {
57
57
  "@radix-ui/react-icons": "^1.3.0",
58
58
  "@radix-ui/themes": "^3.1.1",
59
+ "@tanstack/react-table": "^8.19.3",
59
60
  "echarts-for-react": "^3.0.2",
60
61
  "i": "^0.3.7",
61
62
  "npm": "^10.8.2",
63
+ "postcss-scss": "^4.0.9",
62
64
  "react": "^18.3.1",
63
65
  "react-datepicker": "^7.3.0",
64
66
  "react-dom": "^18.3.1",
@@ -78,17 +80,17 @@
78
80
  "postcss-nesting": "12.0.2",
79
81
  "tsup": "^8.0.2",
80
82
  "typescript": "^5.3.3",
81
- "@tipp/eslint-config": "0.2.2",
82
- "@tipp/typescript-config": "0.0.3"
83
+ "@tipp/eslint-config": "0.2.3",
84
+ "@tipp/typescript-config": "0.0.4"
83
85
  },
84
86
  "scripts": {
85
- "build": "pnpm run build:js && pnpm run build:css",
87
+ "build": "pnpm run build:js & pnpm run build:css",
86
88
  "build:css": "postcss style/index.css -o dist/index.css",
87
89
  "build:js": "tsup",
88
90
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
89
- "dev": "pnpm run dev:js && pnpm run dev:css",
90
- "dev:css": "postcss src/styles/index.css -o dist/index.css --watch",
91
- "dev:js": "tsup --watch",
91
+ "dev": "pnpm run dev:js & pnpm run dev:css",
92
+ "dev:css": "pnpm run build:css --watch",
93
+ "dev:js": "pnpm run build:js --watch",
92
94
  "lint": "eslint . --max-warnings 0",
93
95
  "lint-staged": "lint-staged ./src",
94
96
  "type-check": "tsc --noEmit"
@@ -1 +1,37 @@
1
- export { Avatar, type AvatarProps } from '@radix-ui/themes';
1
+ import {
2
+ Avatar as RadixAvatar,
3
+ type AvatarProps as RadixAvatarProps,
4
+ } from '@radix-ui/themes';
5
+ import { useMemo, forwardRef } from 'react';
6
+
7
+ export type AvatarProps = Omit<RadixAvatarProps, 'size'> & {
8
+ size?: 'small' | 'medium' | 'large' | 'full';
9
+ };
10
+
11
+ export const Avatar = forwardRef<HTMLImageElement, AvatarProps>(
12
+ (props: AvatarProps, ref): React.ReactNode => {
13
+ const { children, size, variant = 'soft', ...rest } = props;
14
+ const radixSize = useMemo<RadixAvatarProps['size']>(() => {
15
+ switch (size) {
16
+ case 'small':
17
+ return '1';
18
+ case 'medium':
19
+ return '2';
20
+ case 'large':
21
+ return '3';
22
+ case 'full':
23
+ return '4';
24
+ default:
25
+ return size;
26
+ }
27
+ }, [size]);
28
+
29
+ return (
30
+ <RadixAvatar {...rest} ref={ref} size={radixSize} variant={variant}>
31
+ {children}
32
+ </RadixAvatar>
33
+ );
34
+ }
35
+ );
36
+
37
+ Avatar.displayName = 'Avatar';
@@ -1 +1,47 @@
1
- export { Badge } from '@radix-ui/themes';
1
+ import {
2
+ Badge as RadixBadge,
3
+ type BadgeProps as RadixBadgeProps,
4
+ } from '@radix-ui/themes';
5
+ import { useMemo, forwardRef } from 'react';
6
+
7
+ export type BadgeProps = Omit<RadixBadgeProps, 'color'> & {
8
+ size: 'small' | 'large';
9
+ color: 'error' | 'accent' | 'neutral' | 'success';
10
+ };
11
+
12
+ export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(
13
+ (props: BadgeProps, ref): React.ReactNode => {
14
+ const { size, color, ...rest } = props;
15
+
16
+ const radixSize = useMemo(() => {
17
+ switch (size) {
18
+ case 'small':
19
+ return '1';
20
+ case 'large':
21
+ return '3';
22
+ default:
23
+ return '1';
24
+ }
25
+ }, [size]);
26
+
27
+ const radixColor = useMemo(() => {
28
+ switch (color) {
29
+ case 'error':
30
+ return 'red';
31
+ case 'neutral':
32
+ return 'gray';
33
+ case 'success':
34
+ return 'green';
35
+ case 'accent':
36
+ default:
37
+ return undefined;
38
+ }
39
+ }, [color]);
40
+
41
+ return (
42
+ <RadixBadge {...rest} color={radixColor} ref={ref} size={radixSize} />
43
+ );
44
+ }
45
+ );
46
+
47
+ Badge.displayName = 'Badge';
@@ -1 +1,32 @@
1
- export { Button, type ButtonProps } from '@radix-ui/themes';
1
+ import {
2
+ Button as RadixButton,
3
+ type ButtonProps as RadixButtonProps,
4
+ } from '@radix-ui/themes';
5
+ import React, { forwardRef, useMemo } from 'react';
6
+
7
+ export type ButtonProps = Omit<RadixButtonProps, 'size'> & {
8
+ size: 'small' | 'medium' | 'large';
9
+ };
10
+
11
+ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
12
+ (props, ref): React.ReactNode => {
13
+ const { size, ...restProps } = props;
14
+
15
+ const radixSize = useMemo(() => {
16
+ switch (size) {
17
+ case 'small':
18
+ return '2';
19
+ case 'medium':
20
+ return '3';
21
+ case 'large':
22
+ return '4';
23
+ default:
24
+ return '3';
25
+ }
26
+ }, [size]);
27
+
28
+ return <RadixButton {...restProps} ref={ref} size={radixSize} />;
29
+ }
30
+ );
31
+
32
+ Button.displayName = 'Button';
@@ -1 +1,38 @@
1
- export { CheckboxGroup } from '@radix-ui/themes';
1
+ import { CheckboxGroup as RadixCheckboxGroup } from '@radix-ui/themes';
2
+ import React, { forwardRef, useMemo } from 'react';
3
+
4
+ type RadixCheckboxGroupProps = React.ComponentPropsWithoutRef<
5
+ typeof RadixCheckboxGroup.Root
6
+ >;
7
+ type CheckboxGroupProps = Omit<RadixCheckboxGroupProps, 'size'> & {
8
+ size: 'small' | 'medium' | 'large';
9
+ };
10
+
11
+ const Root = forwardRef<HTMLDivElement, CheckboxGroupProps>((props, ref) => {
12
+ const { children, size, ...rest } = props;
13
+
14
+ const groupSize = useMemo<RadixCheckboxGroupProps['size']>(() => {
15
+ switch (size) {
16
+ case 'small':
17
+ return '1';
18
+ case 'large':
19
+ return '3';
20
+ case 'medium':
21
+ default:
22
+ return '2';
23
+ }
24
+ }, [size]);
25
+
26
+ return (
27
+ <RadixCheckboxGroup.Root {...rest} ref={ref} size={groupSize}>
28
+ {children}
29
+ </RadixCheckboxGroup.Root>
30
+ );
31
+ });
32
+
33
+ Root.displayName = 'CheckboxGroup.Root';
34
+
35
+ export const CheckboxGroup = {
36
+ Root,
37
+ Item: RadixCheckboxGroup.Item,
38
+ };
@@ -1 +1,30 @@
1
- export { Checkbox, type CheckboxProps } from '@radix-ui/themes';
1
+ import {
2
+ Checkbox as RadixCheckbox,
3
+ type CheckboxProps as RadixCheckboxProps,
4
+ } from '@radix-ui/themes';
5
+ import { useMemo, forwardRef } from 'react';
6
+
7
+ export type CheckboxProps = Omit<RadixCheckboxProps, 'size'> & {
8
+ size?: 'small' | 'medium' | 'large';
9
+ };
10
+
11
+ export const Checkbox = forwardRef<HTMLButtonElement, CheckboxProps>(
12
+ (props, ref): React.ReactNode => {
13
+ const { size = 'medium', ...rest } = props;
14
+
15
+ const radixSize = useMemo<RadixCheckboxProps['size']>(() => {
16
+ switch (size) {
17
+ case 'small':
18
+ return '1';
19
+ case 'medium':
20
+ return '2';
21
+ case 'large':
22
+ return '3';
23
+ }
24
+ }, [size]);
25
+
26
+ return <RadixCheckbox {...rest} ref={ref} size={radixSize} />;
27
+ }
28
+ );
29
+
30
+ Checkbox.displayName = 'Checkbox';
@@ -0,0 +1,32 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+
3
+ export interface CollapseProps {
4
+ children: React.ReactNode;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ }
8
+
9
+ export function Collapse(props: CollapseProps): React.ReactNode {
10
+ const { children } = props;
11
+ const [open, setOpen] = useState(() => {
12
+ return props.open || props.defaultOpen || false;
13
+ });
14
+
15
+ useEffect(() => {
16
+ if (props.open === undefined) return;
17
+ setOpen(props.open);
18
+ }, [props.open]);
19
+
20
+ const ref = useRef<HTMLDivElement>(null);
21
+
22
+ useEffect(() => {
23
+ if (!ref.current) return;
24
+ ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : '0';
25
+ }, [open]);
26
+
27
+ return (
28
+ <div className="collapse" ref={ref}>
29
+ {children}
30
+ </div>
31
+ );
32
+ }
@@ -1 +1,35 @@
1
- export { Heading, type HeadingProps } from '@radix-ui/themes';
1
+ import {
2
+ Heading as RadixHeading,
3
+ type HeadingProps as RadixHeadingProps,
4
+ } from '@radix-ui/themes';
5
+ import { useMemo } from 'react';
6
+
7
+ export { Heading as RadixHeading } from '@radix-ui/themes';
8
+
9
+ export type HeadingProps = RadixHeadingProps & {
10
+ variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
11
+ };
12
+
13
+ export function Heading(props: HeadingProps): React.ReactNode {
14
+ const { size, children, variant, ...rest } = props;
15
+ const radixSize = useMemo<RadixHeadingProps['size']>(() => {
16
+ switch (variant) {
17
+ case 'subtitle1':
18
+ return '4';
19
+ case 'heading1':
20
+ return '7';
21
+ case 'heading2':
22
+ return '6';
23
+ case 'heading3':
24
+ return '5';
25
+ default:
26
+ return size;
27
+ }
28
+ }, [size, variant]);
29
+
30
+ return (
31
+ <RadixHeading {...rest} size={radixSize}>
32
+ {children}
33
+ </RadixHeading>
34
+ );
35
+ }
@@ -0,0 +1,48 @@
1
+ export * from './alert-dialog';
2
+ export * from './aspect-ratio';
3
+ export * from './avatar';
4
+ export * from './badge';
5
+ export * from './blockquote';
6
+ export * from './box';
7
+ export * from './button';
8
+ export * from './call-out';
9
+ export * from './card';
10
+ export * from './check-box';
11
+ export * from './check-box-card';
12
+ export * from './check-box-group';
13
+ export * from './code';
14
+ export * from './container';
15
+ export * from './data-list';
16
+ export * from './date-picker';
17
+ export * from './dialog';
18
+ export * from './dropdown-menu';
19
+ export * from './em';
20
+ export * from './flex';
21
+ export * from './grid';
22
+ export * from './heading';
23
+ export * from './hover-card';
24
+ export * from './icon-button';
25
+ export * from './inset';
26
+ export * from './kbd';
27
+ export * from './link';
28
+ export * from './popover';
29
+ export * from './progress';
30
+ export * from './quote';
31
+ export * from './radio';
32
+ export * from './radio-cards';
33
+ export * from './radio-group';
34
+ export * from './scroll-area';
35
+ export * from './section';
36
+ export * from './segmented-control';
37
+ export * from './select';
38
+ export * from './separator';
39
+ export * from './skeleton';
40
+ export * from './strong';
41
+ export * from './switch';
42
+ export * from './tab-nav';
43
+ export * from './tabs';
44
+ export * from './text-area';
45
+ export * from './text';
46
+ export * from './text-field';
47
+ export * from './tooltip';
48
+ export * from './collapse';
@@ -1 +1,33 @@
1
- export { Link, type LinkProps } from '@radix-ui/themes';
1
+ import {
2
+ Link as RadixLink,
3
+ type LinkProps as RadixLinkProps,
4
+ } from '@radix-ui/themes';
5
+ import { useMemo } from 'react';
6
+
7
+ export { Heading as RadixHeading } from '@radix-ui/themes';
8
+
9
+ export type LinkProps = RadixLinkProps & {
10
+ variant?: 'caption' | 'body' | 'subtitle';
11
+ };
12
+
13
+ export function Link(props: LinkProps): React.ReactNode {
14
+ const { size, children, variant, ...rest } = props;
15
+ const radixSize = useMemo<RadixLinkProps['size']>(() => {
16
+ switch (variant) {
17
+ case 'caption':
18
+ return '1';
19
+ case 'body':
20
+ return '2';
21
+ case 'subtitle':
22
+ return '3';
23
+ default:
24
+ return size;
25
+ }
26
+ }, [size, variant]);
27
+
28
+ return (
29
+ <RadixLink {...rest} size={radixSize}>
30
+ {children}
31
+ </RadixLink>
32
+ );
33
+ }
@@ -1 +1,30 @@
1
- export { Text, type TextProps } from '@radix-ui/themes';
1
+ import type { TextProps as RadixTextProps } from '@radix-ui/themes';
2
+ import { Text as RadixText } from '@radix-ui/themes';
3
+ import React, { useMemo } from 'react';
4
+
5
+ export type TextProps = RadixTextProps & {
6
+ variant?: 'body' | 'caption' | 'subtitle';
7
+ };
8
+
9
+ export function Text(props: TextProps): React.ReactNode {
10
+ const { size, variant, children, ...rest } = props;
11
+
12
+ const radixSize = useMemo<RadixTextProps['size']>(() => {
13
+ switch (variant) {
14
+ case 'caption':
15
+ return '1';
16
+ case 'subtitle':
17
+ return '3';
18
+ case 'body':
19
+ return '2';
20
+ default:
21
+ return size;
22
+ }
23
+ }, [size, variant]);
24
+
25
+ return (
26
+ <RadixText {...rest} size={radixSize}>
27
+ {children}
28
+ </RadixText>
29
+ );
30
+ }
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import type { IconProps } from './types';
3
+
4
+ export const TriangleArrowDownIcon = React.forwardRef<SVGSVGElement, IconProps>(
5
+ ({ color = 'currentColor', ...props }, forwardedRef) => {
6
+ return (
7
+ <svg
8
+ fill="none"
9
+ height="7"
10
+ viewBox="0 0 8 7"
11
+ width="8"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ {...props}
14
+ ref={forwardedRef}
15
+ >
16
+ <path
17
+ d="M7.10844 0.8125H0.891554C0.197392 0.8125 -0.177096 1.62672 0.274659 2.15377L3.3831 5.78029C3.70737 6.1586 4.29263 6.1586 4.6169 5.78029L7.72534 2.15377C8.1771 1.62672 7.80261 0.8125 7.10844 0.8125Z"
18
+ fill={color}
19
+ />
20
+ </svg>
21
+ );
22
+ }
23
+ );
24
+
25
+ TriangleArrowDownIcon.displayName = 'ArrowDownIcon';