@jbpark/ui-kit 2.9.1 → 2.9.5

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 (347) hide show
  1. package/README.ko.md +14 -13
  2. package/README.md +14 -13
  3. package/dist/Button.d.mts +1 -1
  4. package/dist/Button.d.mts.map +1 -1
  5. package/dist/Button.mjs +1 -1
  6. package/dist/Button.mjs.map +1 -1
  7. package/dist/Card.d.mts +1 -1
  8. package/dist/Card.d.mts.map +1 -1
  9. package/dist/Card.mjs +1 -1
  10. package/dist/Card.mjs.map +1 -1
  11. package/dist/Layout.d.mts +13 -44
  12. package/dist/Layout.d.mts.map +1 -1
  13. package/dist/Layout.mjs +7 -16
  14. package/dist/Layout.mjs.map +1 -1
  15. package/dist/Menu.d.mts +2 -62
  16. package/dist/Menu.mjs +2 -68
  17. package/dist/Reveals.d.mts +6 -38
  18. package/dist/Reveals.d.mts.map +1 -1
  19. package/dist/Reveals.mjs +4 -23
  20. package/dist/Reveals.mjs.map +1 -1
  21. package/dist/Space.d.mts +1 -1
  22. package/dist/Space.d.mts.map +1 -1
  23. package/dist/Space.mjs +2 -2
  24. package/dist/Space.mjs.map +1 -1
  25. package/dist/Tag.d.mts +2 -2
  26. package/dist/Tag.d.mts.map +1 -1
  27. package/dist/Tag.mjs +1 -1
  28. package/dist/Tag.mjs.map +1 -1
  29. package/dist/Typography.d.mts +13 -36
  30. package/dist/Typography.d.mts.map +1 -1
  31. package/dist/Typography.mjs +7 -12
  32. package/dist/Typography.mjs.map +1 -1
  33. package/dist/components/atoms/checkbox/checkbox.d.mts +32 -0
  34. package/dist/components/atoms/checkbox/checkbox.d.mts.map +1 -0
  35. package/dist/components/atoms/{Checkbox/index.mjs → checkbox/checkbox.mjs} +2 -4
  36. package/dist/components/atoms/checkbox/checkbox.mjs.map +1 -0
  37. package/dist/components/atoms/{Checkbox/Group/index.d.mts → checkbox/group.d.mts} +14 -4
  38. package/dist/components/atoms/checkbox/group.d.mts.map +1 -0
  39. package/dist/components/atoms/{Checkbox/Group/index.mjs → checkbox/group.mjs} +6 -4
  40. package/dist/components/atoms/checkbox/group.mjs.map +1 -0
  41. package/dist/components/atoms/checkbox/index.d.mts +11 -0
  42. package/dist/components/atoms/checkbox/index.d.mts.map +1 -0
  43. package/dist/components/atoms/checkbox/index.mjs +10 -0
  44. package/dist/components/atoms/checkbox/index.mjs.map +1 -0
  45. package/dist/components/atoms/{ColorPicker/index.d.mts → color-picker.d.mts} +2 -2
  46. package/dist/components/atoms/color-picker.d.mts.map +1 -0
  47. package/dist/components/atoms/{ColorPicker/index.mjs → color-picker.mjs} +4 -4
  48. package/dist/components/atoms/color-picker.mjs.map +1 -0
  49. package/dist/components/atoms/float-button/back-top.d.mts +18 -0
  50. package/dist/components/atoms/float-button/back-top.d.mts.map +1 -0
  51. package/dist/components/atoms/{FloatButton/BackTop/index.mjs → float-button/back-top.mjs} +6 -4
  52. package/dist/components/atoms/float-button/back-top.mjs.map +1 -0
  53. package/dist/components/atoms/float-button/float-button.d.mts +13 -0
  54. package/dist/components/atoms/float-button/float-button.d.mts.map +1 -0
  55. package/dist/components/atoms/{FloatButton/index.mjs → float-button/float-button.mjs} +2 -4
  56. package/dist/components/atoms/float-button/float-button.mjs.map +1 -0
  57. package/dist/components/atoms/float-button/index.d.mts +11 -0
  58. package/dist/components/atoms/float-button/index.d.mts.map +1 -0
  59. package/dist/components/atoms/float-button/index.mjs +10 -0
  60. package/dist/components/atoms/float-button/index.mjs.map +1 -0
  61. package/dist/components/atoms/index.d.mts +11 -11
  62. package/dist/components/atoms/index.mjs +11 -11
  63. package/dist/components/atoms/input/index.d.mts +13 -0
  64. package/dist/components/atoms/input/index.d.mts.map +1 -0
  65. package/dist/components/atoms/input/index.mjs +12 -0
  66. package/dist/components/atoms/input/index.mjs.map +1 -0
  67. package/dist/components/atoms/input/input.d.mts +9 -0
  68. package/dist/components/atoms/input/input.d.mts.map +1 -0
  69. package/dist/components/atoms/{Input/index.mjs → input/input.mjs} +2 -6
  70. package/dist/components/atoms/input/input.mjs.map +1 -0
  71. package/dist/components/atoms/input/search.d.mts +28 -0
  72. package/dist/components/atoms/input/search.d.mts.map +1 -0
  73. package/dist/components/atoms/{Input/Search/index.mjs → input/search.mjs} +6 -6
  74. package/dist/components/atoms/input/search.mjs.map +1 -0
  75. package/dist/components/atoms/input/text-area.d.mts +11 -0
  76. package/dist/components/atoms/input/text-area.d.mts.map +1 -0
  77. package/dist/components/atoms/{Input/TextArea/index.mjs → input/text-area.mjs} +5 -5
  78. package/dist/components/atoms/input/text-area.mjs.map +1 -0
  79. package/dist/components/atoms/{Popover/index.d.mts → popover.d.mts} +2 -2
  80. package/dist/components/atoms/popover.d.mts.map +1 -0
  81. package/dist/components/atoms/{Popover/index.mjs → popover.mjs} +6 -6
  82. package/dist/components/atoms/popover.mjs.map +1 -0
  83. package/dist/components/atoms/{Progress/index.d.mts → progress.d.mts} +2 -2
  84. package/dist/components/atoms/progress.d.mts.map +1 -0
  85. package/dist/components/atoms/{Progress/index.mjs → progress.mjs} +5 -5
  86. package/dist/components/atoms/progress.mjs.map +1 -0
  87. package/dist/components/atoms/{Radio/Group/index.d.mts → radio/group.d.mts} +18 -4
  88. package/dist/components/atoms/radio/group.d.mts.map +1 -0
  89. package/dist/components/atoms/{Radio/Group/index.mjs → radio/group.mjs} +7 -5
  90. package/dist/components/atoms/radio/group.mjs.map +1 -0
  91. package/dist/components/atoms/radio/index.d.mts +11 -0
  92. package/dist/components/atoms/radio/index.d.mts.map +1 -0
  93. package/dist/components/atoms/radio/index.mjs +10 -0
  94. package/dist/components/atoms/radio/index.mjs.map +1 -0
  95. package/dist/components/atoms/radio/radio.d.mts +34 -0
  96. package/dist/components/atoms/radio/radio.d.mts.map +1 -0
  97. package/dist/components/atoms/{Radio/index.mjs → radio/radio.mjs} +2 -4
  98. package/dist/components/atoms/radio/radio.mjs.map +1 -0
  99. package/dist/components/atoms/{Select/index.d.mts → select.d.mts} +4 -4
  100. package/dist/components/atoms/select.d.mts.map +1 -0
  101. package/dist/components/atoms/{Select/index.mjs → select.mjs} +5 -5
  102. package/dist/components/atoms/select.mjs.map +1 -0
  103. package/dist/components/atoms/skeleton/button.d.mts +11 -0
  104. package/dist/components/atoms/skeleton/button.d.mts.map +1 -0
  105. package/dist/components/atoms/{Skeleton/Button/index.mjs → skeleton/button.mjs} +4 -4
  106. package/dist/components/atoms/{Skeleton/Button/index.mjs.map → skeleton/button.mjs.map} +1 -1
  107. package/dist/components/atoms/skeleton/index.d.mts +13 -0
  108. package/dist/components/atoms/skeleton/index.d.mts.map +1 -0
  109. package/dist/components/atoms/skeleton/index.mjs +12 -0
  110. package/dist/components/atoms/skeleton/index.mjs.map +1 -0
  111. package/dist/components/atoms/skeleton/node.d.mts +11 -0
  112. package/dist/components/atoms/skeleton/node.d.mts.map +1 -0
  113. package/dist/components/atoms/{Skeleton/Node/index.mjs → skeleton/node.mjs} +4 -4
  114. package/dist/components/atoms/skeleton/node.mjs.map +1 -0
  115. package/dist/components/atoms/{Skeleton/index.d.mts → skeleton/skeleton.d.mts} +19 -31
  116. package/dist/components/atoms/skeleton/skeleton.d.mts.map +1 -0
  117. package/dist/components/atoms/{Skeleton/index.mjs → skeleton/skeleton.mjs} +2 -6
  118. package/dist/components/atoms/skeleton/skeleton.mjs.map +1 -0
  119. package/dist/components/atoms/{Spin/index.d.mts → spin.d.mts} +2 -2
  120. package/dist/components/atoms/spin.d.mts.map +1 -0
  121. package/dist/components/atoms/{Spin/index.mjs → spin.mjs} +3 -3
  122. package/dist/components/atoms/spin.mjs.map +1 -0
  123. package/dist/components/atoms/{Switch/index.d.mts → switch.d.mts} +2 -2
  124. package/dist/components/atoms/switch.d.mts.map +1 -0
  125. package/dist/components/atoms/{Switch/index.mjs → switch.mjs} +5 -5
  126. package/dist/components/atoms/switch.mjs.map +1 -0
  127. package/dist/components/atoms/{Typography/Link/index.d.mts → typography/link.d.mts} +3 -3
  128. package/dist/components/atoms/typography/link.d.mts.map +1 -0
  129. package/dist/components/atoms/{Typography/Link/index.mjs → typography/link.mjs} +3 -3
  130. package/dist/components/atoms/typography/link.mjs.map +1 -0
  131. package/dist/components/atoms/{Typography/Paragraph/index.d.mts → typography/paragraph.d.mts} +3 -3
  132. package/dist/components/atoms/typography/paragraph.d.mts.map +1 -0
  133. package/dist/components/atoms/{Typography/Paragraph/index.mjs → typography/paragraph.mjs} +3 -3
  134. package/dist/components/atoms/typography/paragraph.mjs.map +1 -0
  135. package/dist/components/atoms/{Typography/Text/index.d.mts → typography/text.d.mts} +3 -3
  136. package/dist/components/atoms/typography/text.d.mts.map +1 -0
  137. package/dist/components/atoms/{Typography/Text/index.mjs → typography/text.mjs} +3 -3
  138. package/dist/components/atoms/typography/text.mjs.map +1 -0
  139. package/dist/components/atoms/{Typography/Title/index.d.mts → typography/title.d.mts} +3 -3
  140. package/dist/components/atoms/typography/title.d.mts.map +1 -0
  141. package/dist/components/atoms/{Typography/Title/index.mjs → typography/title.mjs} +3 -3
  142. package/dist/components/atoms/typography/title.mjs.map +1 -0
  143. package/dist/components/atoms/typography/typography.d.mts +11 -0
  144. package/dist/components/atoms/typography/typography.d.mts.map +1 -0
  145. package/dist/components/atoms/typography/typography.mjs +13 -0
  146. package/dist/components/atoms/typography/typography.mjs.map +1 -0
  147. package/dist/components/molecules/{Collapse/index.d.mts → collapse.d.mts} +2 -2
  148. package/dist/components/molecules/collapse.d.mts.map +1 -0
  149. package/dist/components/molecules/{Collapse/index.mjs → collapse.mjs} +5 -5
  150. package/dist/components/molecules/collapse.mjs.map +1 -0
  151. package/dist/components/molecules/{Dropdown/index.d.mts → dropdown.d.mts} +4 -3
  152. package/dist/components/molecules/dropdown.d.mts.map +1 -0
  153. package/dist/components/molecules/{Dropdown/index.mjs → dropdown.mjs} +5 -4
  154. package/dist/components/molecules/dropdown.mjs.map +1 -0
  155. package/dist/components/molecules/index.d.mts +6 -5
  156. package/dist/components/molecules/index.mjs +6 -5
  157. package/dist/components/molecules/marquees/index.d.mts +11 -0
  158. package/dist/components/molecules/marquees/index.d.mts.map +1 -0
  159. package/dist/components/molecules/marquees/index.mjs +10 -0
  160. package/dist/components/molecules/marquees/index.mjs.map +1 -0
  161. package/dist/components/molecules/marquees/item.d.mts +25 -0
  162. package/dist/components/molecules/marquees/item.d.mts.map +1 -0
  163. package/dist/components/molecules/{Marquees/Item/index.mjs → marquees/item.mjs} +4 -2
  164. package/dist/components/molecules/marquees/item.mjs.map +1 -0
  165. package/dist/components/molecules/marquees/marquees.d.mts +21 -0
  166. package/dist/components/molecules/marquees/marquees.d.mts.map +1 -0
  167. package/dist/components/molecules/{Marquees/index.mjs → marquees/marquees.mjs} +3 -4
  168. package/dist/components/molecules/marquees/marquees.mjs.map +1 -0
  169. package/dist/components/molecules/menu/item/index.mjs +3 -0
  170. package/dist/components/molecules/{Menu/Item/index.mjs → menu/item/item.mjs} +6 -4
  171. package/dist/components/molecules/menu/item/item.mjs.map +1 -0
  172. package/dist/components/molecules/{Menu/Item/Label/index.mjs → menu/item/label.mjs} +4 -4
  173. package/dist/components/molecules/menu/item/label.mjs.map +1 -0
  174. package/dist/components/molecules/menu/menu.d.mts +62 -0
  175. package/dist/components/molecules/menu/menu.d.mts.map +1 -0
  176. package/dist/components/molecules/menu/menu.mjs +70 -0
  177. package/dist/components/molecules/menu/menu.mjs.map +1 -0
  178. package/dist/components/molecules/{Reveals/Item/index.d.mts → reveals/item.d.mts} +2 -2
  179. package/dist/components/molecules/reveals/item.d.mts.map +1 -0
  180. package/dist/components/molecules/{Reveals/Item/index.mjs → reveals/item.mjs} +3 -3
  181. package/dist/components/molecules/reveals/item.mjs.map +1 -0
  182. package/dist/components/molecules/reveals/reveals.d.mts +29 -0
  183. package/dist/components/molecules/reveals/reveals.d.mts.map +1 -0
  184. package/dist/components/molecules/reveals/reveals.mjs +28 -0
  185. package/dist/components/molecules/reveals/reveals.mjs.map +1 -0
  186. package/dist/components/molecules/splitter/index.d.mts +11 -0
  187. package/dist/components/molecules/splitter/index.d.mts.map +1 -0
  188. package/dist/components/molecules/splitter/index.mjs +10 -0
  189. package/dist/components/molecules/splitter/index.mjs.map +1 -0
  190. package/dist/components/molecules/splitter/panel.d.mts +17 -0
  191. package/dist/components/molecules/splitter/panel.d.mts.map +1 -0
  192. package/dist/components/molecules/splitter/panel.mjs +18 -0
  193. package/dist/components/molecules/splitter/panel.mjs.map +1 -0
  194. package/dist/components/molecules/splitter/splitter.d.mts +30 -0
  195. package/dist/components/molecules/splitter/splitter.d.mts.map +1 -0
  196. package/dist/components/molecules/{Splitter/index.mjs → splitter/splitter.mjs} +7 -14
  197. package/dist/components/molecules/splitter/splitter.mjs.map +1 -0
  198. package/dist/components/organisms/{Drawer/index.d.mts → drawer.d.mts} +2 -2
  199. package/dist/components/organisms/drawer.d.mts.map +1 -0
  200. package/dist/components/organisms/{Drawer/index.mjs → drawer.mjs} +6 -6
  201. package/dist/components/organisms/drawer.mjs.map +1 -0
  202. package/dist/components/organisms/index.d.mts +4 -4
  203. package/dist/components/organisms/index.mjs +4 -4
  204. package/dist/components/organisms/list/index.d.mts +11 -0
  205. package/dist/components/organisms/list/index.d.mts.map +1 -0
  206. package/dist/components/organisms/list/index.mjs +10 -0
  207. package/dist/components/organisms/list/index.mjs.map +1 -0
  208. package/dist/components/organisms/list/item.d.mts +11 -0
  209. package/dist/components/organisms/list/item.d.mts.map +1 -0
  210. package/dist/components/organisms/{List/Item/index.mjs → list/item.mjs} +3 -3
  211. package/dist/components/organisms/list/item.mjs.map +1 -0
  212. package/dist/components/organisms/{List/index.d.mts → list/list.d.mts} +17 -24
  213. package/dist/components/organisms/list/list.d.mts.map +1 -0
  214. package/dist/components/organisms/{List/index.mjs → list/list.mjs} +3 -5
  215. package/dist/components/organisms/list/list.mjs.map +1 -0
  216. package/dist/components/organisms/{Modal/index.d.mts → modal.d.mts} +2 -2
  217. package/dist/components/organisms/modal.d.mts.map +1 -0
  218. package/dist/components/organisms/{Modal/index.mjs → modal.mjs} +6 -6
  219. package/dist/components/organisms/modal.mjs.map +1 -0
  220. package/dist/components/organisms/swiper/index.d.mts +11 -0
  221. package/dist/components/organisms/swiper/index.d.mts.map +1 -0
  222. package/dist/components/organisms/swiper/index.mjs +10 -0
  223. package/dist/components/organisms/swiper/index.mjs.map +1 -0
  224. package/dist/components/organisms/swiper/slide.d.mts +15 -0
  225. package/dist/components/organisms/swiper/slide.d.mts.map +1 -0
  226. package/dist/components/organisms/{Swiper/Slide/index.mjs → swiper/slide.mjs} +5 -3
  227. package/dist/components/organisms/swiper/slide.mjs.map +1 -0
  228. package/dist/components/organisms/{Swiper/index.d.mts → swiper/swiper.d.mts} +12 -23
  229. package/dist/components/organisms/swiper/swiper.d.mts.map +1 -0
  230. package/dist/components/organisms/{Swiper/index.mjs → swiper/swiper.mjs} +5 -7
  231. package/dist/components/organisms/swiper/swiper.mjs.map +1 -0
  232. package/dist/components/templates/layout/content.d.mts +12 -0
  233. package/dist/components/templates/layout/content.d.mts.map +1 -0
  234. package/dist/components/templates/{Layout/Content/index.mjs → layout/content.mjs} +3 -3
  235. package/dist/components/templates/layout/content.mjs.map +1 -0
  236. package/dist/components/templates/layout/footer.d.mts +12 -0
  237. package/dist/components/templates/layout/footer.d.mts.map +1 -0
  238. package/dist/components/templates/{Layout/Footer/index.mjs → layout/footer.mjs} +3 -3
  239. package/dist/components/templates/layout/footer.mjs.map +1 -0
  240. package/dist/components/templates/layout/header.d.mts +12 -0
  241. package/dist/components/templates/layout/header.d.mts.map +1 -0
  242. package/dist/components/templates/{Layout/Header/index.mjs → layout/header.mjs} +3 -3
  243. package/dist/components/templates/layout/header.mjs.map +1 -0
  244. package/dist/components/templates/layout/layout.d.mts +12 -0
  245. package/dist/components/templates/layout/layout.d.mts.map +1 -0
  246. package/dist/components/templates/layout/layout.mjs +18 -0
  247. package/dist/components/templates/layout/layout.mjs.map +1 -0
  248. package/dist/components/templates/layout/sider.d.mts +34 -0
  249. package/dist/components/templates/layout/sider.d.mts.map +1 -0
  250. package/dist/components/templates/{Layout/Sider/index.mjs → layout/sider.mjs} +3 -3
  251. package/dist/components/templates/layout/sider.mjs.map +1 -0
  252. package/dist/core/button.d.mts +2 -2
  253. package/dist/core/dialog.mjs.map +1 -1
  254. package/dist/index.d.mts +20 -20
  255. package/dist/index.mjs +20 -20
  256. package/dist/style.css +0 -4
  257. package/package.json +1 -1
  258. package/dist/Menu.d.mts.map +0 -1
  259. package/dist/Menu.mjs.map +0 -1
  260. package/dist/components/atoms/Checkbox/Group/index.d.mts.map +0 -1
  261. package/dist/components/atoms/Checkbox/Group/index.mjs.map +0 -1
  262. package/dist/components/atoms/Checkbox/index.d.mts +0 -44
  263. package/dist/components/atoms/Checkbox/index.d.mts.map +0 -1
  264. package/dist/components/atoms/Checkbox/index.mjs.map +0 -1
  265. package/dist/components/atoms/ColorPicker/index.d.mts.map +0 -1
  266. package/dist/components/atoms/ColorPicker/index.mjs.map +0 -1
  267. package/dist/components/atoms/FloatButton/BackTop/index.d.mts +0 -12
  268. package/dist/components/atoms/FloatButton/BackTop/index.d.mts.map +0 -1
  269. package/dist/components/atoms/FloatButton/BackTop/index.mjs.map +0 -1
  270. package/dist/components/atoms/FloatButton/index.d.mts +0 -22
  271. package/dist/components/atoms/FloatButton/index.d.mts.map +0 -1
  272. package/dist/components/atoms/FloatButton/index.mjs.map +0 -1
  273. package/dist/components/atoms/Input/Search/index.d.mts +0 -15
  274. package/dist/components/atoms/Input/Search/index.d.mts.map +0 -1
  275. package/dist/components/atoms/Input/Search/index.mjs.map +0 -1
  276. package/dist/components/atoms/Input/TextArea/index.d.mts +0 -1
  277. package/dist/components/atoms/Input/TextArea/index.mjs.map +0 -1
  278. package/dist/components/atoms/Input/index.d.mts +0 -31
  279. package/dist/components/atoms/Input/index.d.mts.map +0 -1
  280. package/dist/components/atoms/Input/index.mjs.map +0 -1
  281. package/dist/components/atoms/Popover/index.d.mts.map +0 -1
  282. package/dist/components/atoms/Popover/index.mjs.map +0 -1
  283. package/dist/components/atoms/Progress/index.d.mts.map +0 -1
  284. package/dist/components/atoms/Progress/index.mjs.map +0 -1
  285. package/dist/components/atoms/Radio/Group/index.d.mts.map +0 -1
  286. package/dist/components/atoms/Radio/Group/index.mjs.map +0 -1
  287. package/dist/components/atoms/Radio/index.d.mts +0 -50
  288. package/dist/components/atoms/Radio/index.d.mts.map +0 -1
  289. package/dist/components/atoms/Radio/index.mjs.map +0 -1
  290. package/dist/components/atoms/Select/index.d.mts.map +0 -1
  291. package/dist/components/atoms/Select/index.mjs.map +0 -1
  292. package/dist/components/atoms/Skeleton/Button/index.d.mts +0 -2
  293. package/dist/components/atoms/Skeleton/Node/index.d.mts +0 -2
  294. package/dist/components/atoms/Skeleton/Node/index.mjs.map +0 -1
  295. package/dist/components/atoms/Skeleton/index.d.mts.map +0 -1
  296. package/dist/components/atoms/Skeleton/index.mjs.map +0 -1
  297. package/dist/components/atoms/Spin/index.d.mts.map +0 -1
  298. package/dist/components/atoms/Spin/index.mjs.map +0 -1
  299. package/dist/components/atoms/Switch/index.d.mts.map +0 -1
  300. package/dist/components/atoms/Switch/index.mjs.map +0 -1
  301. package/dist/components/atoms/Typography/Link/index.d.mts.map +0 -1
  302. package/dist/components/atoms/Typography/Link/index.mjs.map +0 -1
  303. package/dist/components/atoms/Typography/Paragraph/index.d.mts.map +0 -1
  304. package/dist/components/atoms/Typography/Paragraph/index.mjs.map +0 -1
  305. package/dist/components/atoms/Typography/Text/index.d.mts.map +0 -1
  306. package/dist/components/atoms/Typography/Text/index.mjs.map +0 -1
  307. package/dist/components/atoms/Typography/Title/index.d.mts.map +0 -1
  308. package/dist/components/atoms/Typography/Title/index.mjs.map +0 -1
  309. package/dist/components/molecules/Collapse/index.d.mts.map +0 -1
  310. package/dist/components/molecules/Collapse/index.mjs.map +0 -1
  311. package/dist/components/molecules/Dropdown/index.d.mts.map +0 -1
  312. package/dist/components/molecules/Dropdown/index.mjs.map +0 -1
  313. package/dist/components/molecules/Marquees/Item/index.d.mts +0 -17
  314. package/dist/components/molecules/Marquees/Item/index.d.mts.map +0 -1
  315. package/dist/components/molecules/Marquees/Item/index.mjs.map +0 -1
  316. package/dist/components/molecules/Marquees/index.d.mts +0 -31
  317. package/dist/components/molecules/Marquees/index.d.mts.map +0 -1
  318. package/dist/components/molecules/Marquees/index.mjs.map +0 -1
  319. package/dist/components/molecules/Menu/Item/Label/index.mjs.map +0 -1
  320. package/dist/components/molecules/Menu/Item/index.mjs.map +0 -1
  321. package/dist/components/molecules/Reveals/Item/index.d.mts.map +0 -1
  322. package/dist/components/molecules/Reveals/Item/index.mjs.map +0 -1
  323. package/dist/components/molecules/Splitter/index.d.mts +0 -31
  324. package/dist/components/molecules/Splitter/index.d.mts.map +0 -1
  325. package/dist/components/molecules/Splitter/index.mjs.map +0 -1
  326. package/dist/components/organisms/Drawer/index.d.mts.map +0 -1
  327. package/dist/components/organisms/Drawer/index.mjs.map +0 -1
  328. package/dist/components/organisms/List/Item/index.mjs.map +0 -1
  329. package/dist/components/organisms/List/index.d.mts.map +0 -1
  330. package/dist/components/organisms/List/index.mjs.map +0 -1
  331. package/dist/components/organisms/Modal/index.d.mts.map +0 -1
  332. package/dist/components/organisms/Modal/index.mjs.map +0 -1
  333. package/dist/components/organisms/Swiper/Slide/index.mjs.map +0 -1
  334. package/dist/components/organisms/Swiper/index.d.mts.map +0 -1
  335. package/dist/components/organisms/Swiper/index.mjs.map +0 -1
  336. package/dist/components/templates/Layout/Content/index.d.mts +0 -7
  337. package/dist/components/templates/Layout/Content/index.d.mts.map +0 -1
  338. package/dist/components/templates/Layout/Content/index.mjs.map +0 -1
  339. package/dist/components/templates/Layout/Footer/index.d.mts +0 -7
  340. package/dist/components/templates/Layout/Footer/index.d.mts.map +0 -1
  341. package/dist/components/templates/Layout/Footer/index.mjs.map +0 -1
  342. package/dist/components/templates/Layout/Header/index.d.mts +0 -7
  343. package/dist/components/templates/Layout/Header/index.d.mts.map +0 -1
  344. package/dist/components/templates/Layout/Header/index.mjs.map +0 -1
  345. package/dist/components/templates/Layout/Sider/index.d.mts +0 -19
  346. package/dist/components/templates/Layout/Sider/index.d.mts.map +0 -1
  347. package/dist/components/templates/Layout/Sider/index.mjs.map +0 -1
package/README.ko.md CHANGED
@@ -142,27 +142,28 @@ function App() {
142
142
  ```tsx
143
143
  // Typography 컴포넌트
144
144
  // Button 컴포넌트
145
- import { Button } from '@jbpark/ui-kit/Button';
145
+ import Button from '@jbpark/ui-kit/Button';
146
146
  // Card 컴포넌트
147
- import { Card } from '@jbpark/ui-kit/Card';
147
+ import Card from '@jbpark/ui-kit/Card';
148
148
  // Layout 컴포넌트
149
- import { Layout } from '@jbpark/ui-kit/Layout';
149
+ import Layout from '@jbpark/ui-kit/Layout';
150
150
  // Menu 컴포넌트
151
- import { Menu } from '@jbpark/ui-kit/Menu';
151
+ import Menu from '@jbpark/ui-kit/Menu';
152
152
  // Reveals 컴포넌트
153
- import { Reveals } from '@jbpark/ui-kit/Reveals';
153
+ import Reveals from '@jbpark/ui-kit/Reveals';
154
154
  // Space 컴포넌트
155
- import { Space } from '@jbpark/ui-kit/Space';
155
+ import Space from '@jbpark/ui-kit/Space';
156
156
  // Tag 컴포넌트
157
- import { Tag } from '@jbpark/ui-kit/Tag';
158
- import { Typography } from '@jbpark/ui-kit/Typography';
157
+ import Tag from '@jbpark/ui-kit/Tag';
158
+ import Typography from '@jbpark/ui-kit/Typography';
159
159
  ```
160
160
 
161
- > 필요한 컴포넌트만 쓸 거라면 루트 `@jbpark/ui-kit` 대신 개별 import 경로를 쓰는 걸
162
- > 권장합니다. 루트 진입점은 organisms 전체(Swiper 포함)를 다시 export하는데,
163
- > `Swiper`가 `swiper`의 CSS를 사이드 이펙트로 불러오기 때문에 Node/SSR
164
- > 빌드(예: Astro static build)에서 순수 `.css` import를 처리 못 해 빌드가
165
- > 깨질 수 있습니다.
161
+ > 이 개별 import 경로들은 전부 default export만 있습니다 — `{ ComponentName }`이
162
+ > 아니라 컴포넌트 자체를 import하세요. 필요한 컴포넌트만 쓸 거라면 루트
163
+ > `@jbpark/ui-kit` 대신 개별 경로를 쓰는 걸 권장합니다. 루트 진입점은 organisms
164
+ > 전체(Swiper 포함)를 다시 export하는데, `Swiper`가 `swiper`의 CSS를 사이드
165
+ > 이펙트로 불러오기 때문에 Node/SSR 빌드(예: Astro static build)에서 순수
166
+ > `.css` import를 처리 못 해 빌드가 깨질 수 있습니다.
166
167
 
167
168
  ### 유틸리티 및 열거형 import
168
169
 
package/README.md CHANGED
@@ -142,27 +142,28 @@ function App() {
142
142
  ```tsx
143
143
  // Typography component
144
144
  // Button component
145
- import { Button } from '@jbpark/ui-kit/Button';
145
+ import Button from '@jbpark/ui-kit/Button';
146
146
  // Card component
147
- import { Card } from '@jbpark/ui-kit/Card';
147
+ import Card from '@jbpark/ui-kit/Card';
148
148
  // Layout component
149
- import { Layout } from '@jbpark/ui-kit/Layout';
149
+ import Layout from '@jbpark/ui-kit/Layout';
150
150
  // Menu component
151
- import { Menu } from '@jbpark/ui-kit/Menu';
151
+ import Menu from '@jbpark/ui-kit/Menu';
152
152
  // Reveals component
153
- import { Reveals } from '@jbpark/ui-kit/Reveals';
153
+ import Reveals from '@jbpark/ui-kit/Reveals';
154
154
  // Space component
155
- import { Space } from '@jbpark/ui-kit/Space';
155
+ import Space from '@jbpark/ui-kit/Space';
156
156
  // Tag component
157
- import { Tag } from '@jbpark/ui-kit/Tag';
158
- import { Typography } from '@jbpark/ui-kit/Typography';
157
+ import Tag from '@jbpark/ui-kit/Tag';
158
+ import Typography from '@jbpark/ui-kit/Typography';
159
159
  ```
160
160
 
161
- > Prefer these individual import paths over the root `@jbpark/ui-kit` entry when
162
- > you don't need every component. The root entry re-exports all organisms,
163
- > including `Swiper`, which pulls in `swiper`'s CSS as a side effect — this
164
- > can break Node/SSR builds (e.g. Astro static builds) that don't expect a
165
- > bare `.css` import.
161
+ > Each of these deep-import paths only has a default export -- import the
162
+ > component itself, not `{ ComponentName }`. Prefer these paths over the
163
+ > root `@jbpark/ui-kit` entry when you don't need every component: the root
164
+ > entry re-exports all organisms, including `Swiper`, which pulls in
165
+ > `swiper`'s CSS as a side effect and can break Node/SSR builds (e.g. an
166
+ > Astro static build) that don't expect a bare `.css` import.
166
167
 
167
168
  ### Import Utilities and Enums
168
169
 
package/dist/Button.d.mts CHANGED
@@ -2,7 +2,7 @@ import { Props as Props$1 } from "./core/button.mjs";
2
2
  import "./core.mjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region src/components/atoms/Button/index.d.ts
5
+ //#region src/components/atoms/button.d.ts
6
6
  type ButtonProps = Props$1;
7
7
  type PresetColors = 'blue' | 'purple' | 'cyan' | 'green' | 'magenta' | 'pink' | 'red' | 'orange' | 'yellow' | 'volcano' | 'geekblue' | 'lime' | 'gold';
8
8
  interface Props extends Omit<ButtonProps, 'size' | 'variant' | 'type'> {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.mts","names":[],"sources":["../src/components/atoms/Button/index.tsx"],"mappings":";;;;;KAQK,WAAA,GAAc,OAAA;AAAA,KAEd,YAAA;AAAA,UAeY,KAAA,SAAc,IAAA,CAAK,WAAA;EAClC,IAAA,GAAO,KAAA,CAAM,SAAA;EACb,KAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;EACA,IAAA;EACA,OAAA;EACA,KAAA;EACA,KAAA,GAAQ,YAAA;EACR,OAAA;IAAsB,IAAA,EAAM,KAAA,CAAM,SAAA;EAAA;AAAA;AAAA,cAkD9B,MAAA;EAAU,IAAA;EAAA,SAAA;EAAA,IAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,KAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,MAAA;EAAA,QAAA;EAAA,WAAA;EAAA,GAAA;AAAA,GAeb,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Button.d.mts","names":[],"sources":["../src/components/atoms/button.tsx"],"mappings":";;;;;KAQK,WAAA,GAAc,OAAA;AAAA,KAEd,YAAA;AAAA,UAeY,KAAA,SAAc,IAAA,CAAK,WAAA;EAClC,IAAA,GAAO,KAAA,CAAM,SAAA;EACb,KAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;EACA,IAAA;EACA,OAAA;EACA,KAAA;EACA,KAAA,GAAQ,YAAA;EACR,OAAA;IAAsB,IAAA,EAAM,KAAA,CAAM,SAAA;EAAA;AAAA;AAAA,cAkD9B,MAAA;EAAU,IAAA;EAAA,SAAA;EAAA,IAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,KAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,MAAA;EAAA,QAAA;EAAA,WAAA;EAAA,GAAA;AAAA,GAeb,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
package/dist/Button.mjs CHANGED
@@ -6,7 +6,7 @@ import "./core.mjs";
6
6
  import { LoaderCircle } from "lucide-react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
 
9
- //#region src/components/atoms/Button/index.tsx
9
+ //#region src/components/atoms/button.tsx
10
10
  const Core = Button$1;
11
11
  const variantClasses = {
12
12
  solid: "",
@@ -1 +1 @@
1
- {"version":3,"file":"Button.mjs","names":["button.Button"],"sources":["../src/components/atoms/Button/index.tsx"],"sourcesContent":["'use client';\n\nimport { LoaderCircle } from 'lucide-react';\n\nimport { button } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nconst Core = button.Button;\ntype ButtonProps = button.Props;\n\ntype PresetColors =\n | 'blue'\n | 'purple'\n | 'cyan'\n | 'green'\n | 'magenta'\n | 'pink'\n | 'red'\n | 'orange'\n | 'yellow'\n | 'volcano'\n | 'geekblue'\n | 'lime'\n | 'gold';\n\nexport interface Props extends Omit<ButtonProps, 'size' | 'variant' | 'type'> {\n icon?: React.ReactNode;\n block?: boolean;\n danger?: boolean;\n disabled?: boolean;\n size?: 'small' | 'middle' | 'large';\n type?: 'primary' | 'default' | 'dashed' | 'text' | 'link';\n variant?: 'solid' | 'outlined' | 'dashed' | 'filled' | 'text' | 'link';\n shape?: 'default' | 'circle' | 'round';\n color?: PresetColors | 'default' | 'primary' | 'danger';\n loading?: boolean | { icon: React.ReactNode };\n}\n\nconst variantClasses: Record<string, string> = {\n solid: '',\n outlined: cn(\n 'border border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n 'bg-background text-foreground',\n 'hover:bg-accent',\n ),\n dashed: cn(\n 'border border-dashed border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n 'bg-background text-foreground',\n 'hover:bg-accent',\n ),\n filled: cn('bg-muted text-foreground', 'hover:bg-muted/80'),\n text: cn('bg-transparent text-foreground', 'hover:bg-accent'),\n link: cn(\n 'bg-transparent text-primary',\n 'underline-offset-4 hover:underline',\n 'hover:bg-primary/10',\n ),\n};\n\nconst typeToVariant: Record<string, string> = {\n primary: 'solid',\n default: 'outlined',\n dashed: 'dashed',\n text: 'text',\n link: 'link',\n};\n\nconst sizesClasses: Record<string, string> = {\n small: 'h-6 px-3 text-sm',\n middle: 'h-8 px-4 text-base',\n large: 'h-10 px-5 text-lg',\n};\n\nconst iconClasses: Record<string, string> = {\n small: `size-6 [&_svg:not([class*='size-'])]:size-3`,\n middle: `size-8 [&_svg:not([class*='size-'])]:size-4`,\n large: `size-10 [&_svg:not([class*='size-'])]:size-5`,\n};\n\nconst shapesClasses = {\n default: 'rounded-sm',\n circle: 'rounded-full',\n round: 'rounded-2xl',\n};\n\nconst Button = ({\n icon,\n className,\n type = 'default',\n variant,\n size = 'middle',\n color = 'default',\n shape = 'default',\n block = false,\n disabled,\n loading,\n danger,\n children,\n onMouseDown,\n ...props\n}: Props) => {\n const iconOnly = icon && !children;\n const computedColor = danger ? 'danger' : color;\n const colored = computedColor && computedColor !== 'default';\n const resolvedVariant = variant ?? typeToVariant[type] ?? 'solid';\n\n const displayIcon = loading ? (\n typeof loading === 'object' ? (\n loading.icon\n ) : (\n <LoaderCircle className=\"animate-spin\" />\n )\n ) : (\n icon\n );\n\n return (\n <Core\n disabled={disabled}\n variant=\"default\"\n data-color={computedColor}\n className={cn(\n 'inline-flex items-center justify-center gap-x-2',\n 'rounded-lg',\n 'cursor-pointer',\n 'h-auto py-0',\n 'transition-all',\n variantClasses[resolvedVariant],\n sizesClasses[size || 'medium'],\n iconOnly && ['p-0', iconClasses[size || 'medium']],\n shapesClasses[shape || 'default'],\n block && 'w-full',\n colored &&\n (resolvedVariant === 'solid'\n ? [\n 'bg-(--btn-bg)',\n 'hover:bg-(--btn-bg-hover)',\n 'active:bg-(--btn-bg-active)',\n 'text-(--btn-fg)',\n 'border-(--btn-border)',\n ]\n : [\n 'text-(--btn-bg)',\n 'border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n //\n ]),\n className,\n //\n )}\n onMouseDown={e => {\n e.preventDefault();\n onMouseDown?.(e);\n }}\n {...props}\n >\n {displayIcon}\n {children}\n </Core>\n );\n};\n\nexport default Button;\n"],"mappings":";;;;;;;;;AAOA,MAAM,OAAOA;AA+Bb,MAAM,iBAAyC;CAC7C,OAAO;CACP,UAAU,GACR,yEACA,iCACA,kBACD;CACD,QAAQ,GACN,uFACA,iCACA,kBACD;CACD,QAAQ,GAAG,4BAA4B,oBAAoB;CAC3D,MAAM,GAAG,kCAAkC,kBAAkB;CAC7D,MAAM,GACJ,+BACA,sCACA,sBACD;CACF;AAED,MAAM,gBAAwC;CAC5C,SAAS;CACT,SAAS;CACT,QAAQ;CACR,MAAM;CACN,MAAM;CACP;AAED,MAAM,eAAuC;CAC3C,OAAO;CACP,QAAQ;CACR,OAAO;CACR;AAED,MAAM,cAAsC;CAC1C,OAAO;CACP,QAAQ;CACR,OAAO;CACR;AAED,MAAM,gBAAgB;CACpB,SAAS;CACT,QAAQ;CACR,OAAO;CACR;AAED,MAAM,UAAU,EACd,MACA,WACA,OAAO,WACP,SACA,OAAO,UACP,QAAQ,WACR,QAAQ,WACR,QAAQ,OACR,UACA,SACA,QACA,UACA,aACA,GAAG,YACQ;CACX,MAAM,WAAW,QAAQ,CAAC;CAC1B,MAAM,gBAAgB,SAAS,WAAW;CAC1C,MAAM,UAAU,iBAAiB,kBAAkB;CACnD,MAAM,kBAAkB,WAAW,cAAc,SAAS;CAE1D,MAAM,cAAc,UAClB,OAAO,YAAY,WACjB,QAAQ,OAER,oBAAC,gBAAa,WAAU,iBAAiB,GAG3C;AAGF,QACE,qBAAC;EACW;EACV,SAAQ;EACR,cAAY;EACZ,WAAW,GACT,mDACA,cACA,kBACA,eACA,kBACA,eAAe,kBACf,aAAa,QAAQ,WACrB,YAAY,CAAC,OAAO,YAAY,QAAQ,UAAU,EAClD,cAAc,SAAS,YACvB,SAAS,UACT,YACG,oBAAoB,UACjB;GACE;GACA;GACA;GACA;GACA;GACD,GACD,CACE,mBACA,iEAED,GACP,UAED;EACD,cAAa,MAAK;AAChB,KAAE,gBAAgB;AAClB,iBAAc,EAAE;;EAElB,GAAI;aAEH,aACA;GACI"}
1
+ {"version":3,"file":"Button.mjs","names":["button.Button"],"sources":["../src/components/atoms/button.tsx"],"sourcesContent":["'use client';\n\nimport { LoaderCircle } from 'lucide-react';\n\nimport { button } from '@repo/ui/core';\nimport { cn } from '@repo/ui/utils';\n\nconst Core = button.Button;\ntype ButtonProps = button.Props;\n\ntype PresetColors =\n | 'blue'\n | 'purple'\n | 'cyan'\n | 'green'\n | 'magenta'\n | 'pink'\n | 'red'\n | 'orange'\n | 'yellow'\n | 'volcano'\n | 'geekblue'\n | 'lime'\n | 'gold';\n\nexport interface Props extends Omit<ButtonProps, 'size' | 'variant' | 'type'> {\n icon?: React.ReactNode;\n block?: boolean;\n danger?: boolean;\n disabled?: boolean;\n size?: 'small' | 'middle' | 'large';\n type?: 'primary' | 'default' | 'dashed' | 'text' | 'link';\n variant?: 'solid' | 'outlined' | 'dashed' | 'filled' | 'text' | 'link';\n shape?: 'default' | 'circle' | 'round';\n color?: PresetColors | 'default' | 'primary' | 'danger';\n loading?: boolean | { icon: React.ReactNode };\n}\n\nconst variantClasses: Record<string, string> = {\n solid: '',\n outlined: cn(\n 'border border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n 'bg-background text-foreground',\n 'hover:bg-accent',\n ),\n dashed: cn(\n 'border border-dashed border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n 'bg-background text-foreground',\n 'hover:bg-accent',\n ),\n filled: cn('bg-muted text-foreground', 'hover:bg-muted/80'),\n text: cn('bg-transparent text-foreground', 'hover:bg-accent'),\n link: cn(\n 'bg-transparent text-primary',\n 'underline-offset-4 hover:underline',\n 'hover:bg-primary/10',\n ),\n};\n\nconst typeToVariant: Record<string, string> = {\n primary: 'solid',\n default: 'outlined',\n dashed: 'dashed',\n text: 'text',\n link: 'link',\n};\n\nconst sizesClasses: Record<string, string> = {\n small: 'h-6 px-3 text-sm',\n middle: 'h-8 px-4 text-base',\n large: 'h-10 px-5 text-lg',\n};\n\nconst iconClasses: Record<string, string> = {\n small: `size-6 [&_svg:not([class*='size-'])]:size-3`,\n middle: `size-8 [&_svg:not([class*='size-'])]:size-4`,\n large: `size-10 [&_svg:not([class*='size-'])]:size-5`,\n};\n\nconst shapesClasses = {\n default: 'rounded-sm',\n circle: 'rounded-full',\n round: 'rounded-2xl',\n};\n\nconst Button = ({\n icon,\n className,\n type = 'default',\n variant,\n size = 'middle',\n color = 'default',\n shape = 'default',\n block = false,\n disabled,\n loading,\n danger,\n children,\n onMouseDown,\n ...props\n}: Props) => {\n const iconOnly = icon && !children;\n const computedColor = danger ? 'danger' : color;\n const colored = computedColor && computedColor !== 'default';\n const resolvedVariant = variant ?? typeToVariant[type] ?? 'solid';\n\n const displayIcon = loading ? (\n typeof loading === 'object' ? (\n loading.icon\n ) : (\n <LoaderCircle className=\"animate-spin\" />\n )\n ) : (\n icon\n );\n\n return (\n <Core\n disabled={disabled}\n variant=\"default\"\n data-color={computedColor}\n className={cn(\n 'inline-flex items-center justify-center gap-x-2',\n 'rounded-lg',\n 'cursor-pointer',\n 'h-auto py-0',\n 'transition-all',\n variantClasses[resolvedVariant],\n sizesClasses[size || 'medium'],\n iconOnly && ['p-0', iconClasses[size || 'medium']],\n shapesClasses[shape || 'default'],\n block && 'w-full',\n colored &&\n (resolvedVariant === 'solid'\n ? [\n 'bg-(--btn-bg)',\n 'hover:bg-(--btn-bg-hover)',\n 'active:bg-(--btn-bg-active)',\n 'text-(--btn-fg)',\n 'border-(--btn-border)',\n ]\n : [\n 'text-(--btn-bg)',\n 'border-[color-mix(in_oklch,var(--btn-border),transparent_50%)]',\n //\n ]),\n className,\n //\n )}\n onMouseDown={e => {\n e.preventDefault();\n onMouseDown?.(e);\n }}\n {...props}\n >\n {displayIcon}\n {children}\n </Core>\n );\n};\n\nexport default Button;\n"],"mappings":";;;;;;;;;AAOA,MAAM,OAAOA;AA+Bb,MAAM,iBAAyC;CAC7C,OAAO;CACP,UAAU,GACR,yEACA,iCACA,kBACD;CACD,QAAQ,GACN,uFACA,iCACA,kBACD;CACD,QAAQ,GAAG,4BAA4B,oBAAoB;CAC3D,MAAM,GAAG,kCAAkC,kBAAkB;CAC7D,MAAM,GACJ,+BACA,sCACA,sBACD;CACF;AAED,MAAM,gBAAwC;CAC5C,SAAS;CACT,SAAS;CACT,QAAQ;CACR,MAAM;CACN,MAAM;CACP;AAED,MAAM,eAAuC;CAC3C,OAAO;CACP,QAAQ;CACR,OAAO;CACR;AAED,MAAM,cAAsC;CAC1C,OAAO;CACP,QAAQ;CACR,OAAO;CACR;AAED,MAAM,gBAAgB;CACpB,SAAS;CACT,QAAQ;CACR,OAAO;CACR;AAED,MAAM,UAAU,EACd,MACA,WACA,OAAO,WACP,SACA,OAAO,UACP,QAAQ,WACR,QAAQ,WACR,QAAQ,OACR,UACA,SACA,QACA,UACA,aACA,GAAG,YACQ;CACX,MAAM,WAAW,QAAQ,CAAC;CAC1B,MAAM,gBAAgB,SAAS,WAAW;CAC1C,MAAM,UAAU,iBAAiB,kBAAkB;CACnD,MAAM,kBAAkB,WAAW,cAAc,SAAS;CAE1D,MAAM,cAAc,UAClB,OAAO,YAAY,WACjB,QAAQ,OAER,oBAAC,gBAAa,WAAU,iBAAiB,GAG3C;AAGF,QACE,qBAAC;EACW;EACV,SAAQ;EACR,cAAY;EACZ,WAAW,GACT,mDACA,cACA,kBACA,eACA,kBACA,eAAe,kBACf,aAAa,QAAQ,WACrB,YAAY,CAAC,OAAO,YAAY,QAAQ,UAAU,EAClD,cAAc,SAAS,YACvB,SAAS,UACT,YACG,oBAAoB,UACjB;GACE;GACA;GACA;GACA;GACA;GACD,GACD,CACE,mBACA,iEAED,GACP,UAED;EACD,cAAa,MAAK;AAChB,KAAE,gBAAgB;AAClB,iBAAc,EAAE;;EAElB,GAAI;aAEH,aACA;GACI"}
package/dist/Card.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
- //#region src/components/molecules/Card/index.d.ts
3
+ //#region src/components/molecules/card.d.ts
4
4
  interface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'title'> {
5
5
  title?: React.ReactNode;
6
6
  variant?: 'outlined' | 'borderless';
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.mts","names":[],"sources":["../src/components/molecules/Card/index.tsx"],"mappings":";;;UAEU,KAAA,SAAc,IAAA,CAAK,KAAA,CAAM,qBAAA;EACjC,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,OAAA;EACA,UAAA;IACE,KAAA;IACA,IAAA;EAAA;AAAA;AAAA,cAIE,IAAA;EAAQ,KAAA;EAAA,QAAA;EAAA,SAAA;EAAA,UAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAOX,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Card.d.mts","names":[],"sources":["../src/components/molecules/card.tsx"],"mappings":";;;UAEU,KAAA,SAAc,IAAA,CAAK,KAAA,CAAM,qBAAA;EACjC,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,OAAA;EACA,UAAA;IACE,KAAA;IACA,IAAA;EAAA;AAAA;AAAA,cAIE,IAAA;EAAQ,KAAA;EAAA,QAAA;EAAA,SAAA;EAAA,UAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAOX,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
package/dist/Card.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { cn, renderConditional } from "./utils.mjs";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
 
4
- //#region src/components/molecules/Card/index.tsx
4
+ //#region src/components/molecules/card.tsx
5
5
  const Card = ({ title, children, className, classNames, variant = "outlined", ...props }) => {
6
6
  return /* @__PURE__ */ jsxs("div", {
7
7
  className: cn("w-full", "rounded-lg p-4", "bg-card text-card-foreground shadow-sm transition-all", variant === "outlined" && "border-border border", className),
package/dist/Card.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Card.mjs","names":[],"sources":["../src/components/molecules/Card/index.tsx"],"sourcesContent":["import { cn, renderConditional } from '@repo/ui/utils';\n\ninterface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'title'> {\n title?: React.ReactNode;\n variant?: 'outlined' | 'borderless';\n classNames?: {\n title?: string;\n body?: string;\n };\n}\n\nconst Card = ({\n title,\n children,\n className,\n classNames,\n variant = 'outlined',\n ...props\n}: Props) => {\n return (\n <div\n className={cn(\n 'w-full',\n 'rounded-lg p-4',\n 'bg-card text-card-foreground shadow-sm transition-all',\n variant === 'outlined' && 'border-border border',\n className,\n //\n )}\n {...props}\n >\n {renderConditional(title, v => (\n <div\n className={cn(\n 'mb-4 font-bold',\n classNames?.title,\n //\n )}\n >\n {v}\n </div>\n ))}\n <div\n className={cn(\n classNames?.body,\n //\n )}\n >\n {children}\n </div>\n </div>\n );\n};\n\nexport default Card;\n"],"mappings":";;;;AAWA,MAAM,QAAQ,EACZ,OACA,UACA,WACA,YACA,UAAU,YACV,GAAG,YACQ;AACX,QACE,qBAAC;EACC,WAAW,GACT,UACA,kBACA,yDACA,YAAY,cAAc,wBAC1B,UAED;EACD,GAAI;aAEH,kBAAkB,QAAO,MACxB,oBAAC;GACC,WAAW,GACT,kBACA,YAAY,MAEb;aAEA;IACG,CACN,EACF,oBAAC;GACC,WAAW,GACT,YAAY,KAEb;GAEA;IACG;GACF"}
1
+ {"version":3,"file":"Card.mjs","names":[],"sources":["../src/components/molecules/card.tsx"],"sourcesContent":["import { cn, renderConditional } from '@repo/ui/utils';\n\ninterface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'title'> {\n title?: React.ReactNode;\n variant?: 'outlined' | 'borderless';\n classNames?: {\n title?: string;\n body?: string;\n };\n}\n\nconst Card = ({\n title,\n children,\n className,\n classNames,\n variant = 'outlined',\n ...props\n}: Props) => {\n return (\n <div\n className={cn(\n 'w-full',\n 'rounded-lg p-4',\n 'bg-card text-card-foreground shadow-sm transition-all',\n variant === 'outlined' && 'border-border border',\n className,\n //\n )}\n {...props}\n >\n {renderConditional(title, v => (\n <div\n className={cn(\n 'mb-4 font-bold',\n classNames?.title,\n //\n )}\n >\n {v}\n </div>\n ))}\n <div\n className={cn(\n classNames?.body,\n //\n )}\n >\n {children}\n </div>\n </div>\n );\n};\n\nexport default Card;\n"],"mappings":";;;;AAWA,MAAM,QAAQ,EACZ,OACA,UACA,WACA,YACA,UAAU,YACV,GAAG,YACQ;AACX,QACE,qBAAC;EACC,WAAW,GACT,UACA,kBACA,yDACA,YAAY,cAAc,wBAC1B,UAED;EACD,GAAI;aAEH,kBAAkB,QAAO,MACxB,oBAAC;GACC,WAAW,GACT,kBACA,YAAY,MAEb;aAEA;IACG,CACN,EACF,oBAAC;GACC,WAAW,GACT,YAAY,KAEb;GAEA;IACG;GACF"}
package/dist/Layout.d.mts CHANGED
@@ -1,48 +1,17 @@
1
- import { Props } from "./components/templates/Layout/Content/index.mjs";
2
- import { Props as Props$1 } from "./components/templates/Layout/Footer/index.mjs";
3
- import { Props as Props$2 } from "./components/templates/Layout/Header/index.mjs";
4
- import { Props as Props$4 } from "./components/templates/Layout/Sider/index.mjs";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { Content, Props } from "./components/templates/layout/content.mjs";
2
+ import { Footer, Props as Props$1 } from "./components/templates/layout/footer.mjs";
3
+ import { Header, Props as Props$2 } from "./components/templates/layout/header.mjs";
4
+ import { Layout as Layout$1, Props as Props$3 } from "./components/templates/layout/layout.mjs";
5
+ import { Props as Props$4, Sider } from "./components/templates/layout/sider.mjs";
6
6
 
7
- //#region src/components/templates/Layout/index.d.ts
8
- interface Props$3 extends React.ComponentPropsWithoutRef<'div'> {}
9
- declare const Layout: {
10
- ({
11
- children,
12
- className,
13
- ...props
14
- }: Props$3): react_jsx_runtime0.JSX.Element;
15
- Content: ({
16
- children,
17
- className,
18
- ...props
19
- }: Props) => react_jsx_runtime0.JSX.Element;
20
- Footer: ({
21
- children,
22
- className,
23
- ...props
24
- }: Props$1) => react_jsx_runtime0.JSX.Element;
25
- Header: ({
26
- children,
27
- className,
28
- ...props
29
- }: Props$2) => react_jsx_runtime0.JSX.Element;
30
- Sider: ({
31
- children,
32
- className,
33
- classNames,
34
- style,
35
- width,
36
- collapsedWidth,
37
- collapsible,
38
- defaultCollapsed,
39
- collapsed: _collapsed,
40
- reverseArrow,
41
- trigger,
42
- onCollapse: _onCollapse,
43
- ...props
44
- }: Props$4) => react_jsx_runtime0.JSX.Element;
7
+ //#region src/components/templates/layout/index.d.ts
8
+ type LayoutComponent = typeof Layout$1 & {
9
+ Content: typeof Content;
10
+ Footer: typeof Footer;
11
+ Header: typeof Header;
12
+ Sider: typeof Sider;
45
13
  };
14
+ declare const Layout: LayoutComponent;
46
15
  //#endregion
47
- export { type Props as ContentProps, type Props$1 as FooterProps, type Props$2 as HeaderProps, Props$3 as Props, type Props$4 as SiderProps, Layout as default };
16
+ export { type Props as ContentProps, type Props$1 as FooterProps, type Props$2 as HeaderProps, type Props$3 as Props, type Props$4 as SiderProps, Layout as default };
48
17
  //# sourceMappingURL=Layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.d.mts","names":[],"sources":["../src/components/templates/Layout/index.tsx"],"mappings":";;;;;;;UAciB,OAAA,SAAc,KAAA,CAAM,wBAAA;AAAA,cAO/B,MAAA;EAAA;;;;KAA6C,OAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Layout.d.mts","names":[],"sources":["../src/components/templates/layout/index.ts"],"mappings":";;;;;;;KAMK,eAAA,UAAyB,QAAA;EAC5B,OAAA,SAAgB,OAAA;EAChB,MAAA,SAAe,MAAA;EACf,MAAA,SAAe,MAAA;EACf,KAAA,SAAc,KAAA;AAAA;AAAA,cAGV,MAAA,EAAuB,eAAA"}
package/dist/Layout.mjs CHANGED
@@ -1,20 +1,11 @@
1
- import { cn } from "./utils.mjs";
2
- import Content from "./components/templates/Layout/Content/index.mjs";
3
- import Footer from "./components/templates/Layout/Footer/index.mjs";
4
- import Header from "./components/templates/Layout/Header/index.mjs";
5
- import Sider from "./components/templates/Layout/Sider/index.mjs";
6
- import { Children, isValidElement } from "react";
7
- import { jsx } from "react/jsx-runtime";
1
+ import Content from "./components/templates/layout/content.mjs";
2
+ import Footer from "./components/templates/layout/footer.mjs";
3
+ import Header from "./components/templates/layout/header.mjs";
4
+ import Sider from "./components/templates/layout/sider.mjs";
5
+ import Layout$1 from "./components/templates/layout/layout.mjs";
8
6
 
9
- //#region src/components/templates/Layout/index.tsx
10
- const hasSiderChild = (children) => Children.toArray(children).some((child) => isValidElement(child) && child.type === Sider);
11
- const Layout = ({ children, className, ...props }) => {
12
- return /* @__PURE__ */ jsx("div", {
13
- className: cn("flex min-h-0 w-full flex-1", hasSiderChild(children) ? "flex-row" : "flex-col", className),
14
- ...props,
15
- children
16
- });
17
- };
7
+ //#region src/components/templates/layout/index.ts
8
+ const Layout = Layout$1;
18
9
  Layout.Content = Content;
19
10
  Layout.Footer = Footer;
20
11
  Layout.Header = Header;
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.mjs","names":[],"sources":["../src/components/templates/Layout/index.tsx"],"sourcesContent":["import { Children, isValidElement } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Content from './Content';\nimport Footer from './Footer';\nimport Header from './Header';\nimport Sider from './Sider';\n\nexport type { Props as ContentProps } from './Content';\nexport type { Props as FooterProps } from './Footer';\nexport type { Props as HeaderProps } from './Header';\nexport type { Props as SiderProps } from './Sider';\n\nexport interface Props extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst hasSiderChild = (children: React.ReactNode) =>\n Children.toArray(children).some(\n child => isValidElement(child) && child.type === Sider,\n );\n\nconst Layout = ({ children, className, ...props }: Props) => {\n const isRow = hasSiderChild(children);\n\n return (\n <div\n className={cn(\n 'flex min-h-0 w-full flex-1',\n isRow ? 'flex-row' : 'flex-col',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Header = Header;\nLayout.Sider = Sider;\n\nexport default Layout;\n"],"mappings":";;;;;;;;;AAgBA,MAAM,iBAAiB,aACrB,SAAS,QAAQ,SAAS,CAAC,MACzB,UAAS,eAAe,MAAM,IAAI,MAAM,SAAS,MAClD;AAEH,MAAM,UAAU,EAAE,UAAU,WAAW,GAAG,YAAmB;AAG3D,QACE,oBAAC;EACC,WAAW,GACT,8BALQ,cAAc,SAAS,GAMvB,aAAa,YACrB,UACD;EACD,GAAI;EAEH;GACG;;AAIV,OAAO,UAAU;AACjB,OAAO,SAAS;AAChB,OAAO,SAAS;AAChB,OAAO,QAAQ"}
1
+ {"version":3,"file":"Layout.mjs","names":["LayoutImpl"],"sources":["../src/components/templates/layout/index.ts"],"sourcesContent":["import Content from './content';\nimport Footer from './footer';\nimport Header from './header';\nimport LayoutImpl, { type Props } from './layout';\nimport Sider from './sider';\n\ntype LayoutComponent = typeof LayoutImpl & {\n Content: typeof Content;\n Footer: typeof Footer;\n Header: typeof Header;\n Sider: typeof Sider;\n};\n\nconst Layout = LayoutImpl as LayoutComponent;\n\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Header = Header;\nLayout.Sider = Sider;\n\nexport default Layout;\nexport type { Props };\nexport type { Props as ContentProps } from './content';\nexport type { Props as FooterProps } from './footer';\nexport type { Props as HeaderProps } from './header';\nexport type { Props as SiderProps } from './sider';\n"],"mappings":";;;;;;;AAaA,MAAM,SAASA;AAEf,OAAO,UAAU;AACjB,OAAO,SAAS;AAChB,OAAO,SAAS;AAChB,OAAO,QAAQ"}
package/dist/Menu.d.mts CHANGED
@@ -1,62 +1,2 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
-
3
- //#region src/components/molecules/Menu/index.d.ts
4
- interface MenuItem {
5
- label: React.ReactNode;
6
- key: React.Key;
7
- type?: string;
8
- path?: string;
9
- children?: MenuItem[];
10
- }
11
- interface Props {
12
- mode?: 'horizontal' | 'vertical' | 'inline';
13
- selectedKeys?: React.Key[];
14
- defaultSelectedKeys?: React.Key[];
15
- selectionMap?: SelectionMap;
16
- offset?: [number, number];
17
- inlineOffset?: number;
18
- classNames?: {
19
- rootItem?: string;
20
- subMenu?: string;
21
- item?: string;
22
- label?: string;
23
- };
24
- styles?: {
25
- rootItem?: React.CSSProperties;
26
- subMenu?: React.CSSProperties;
27
- item?: React.CSSProperties;
28
- label?: React.CSSProperties;
29
- };
30
- onClick?: ClickEventHandler;
31
- onSelect?: ClickEventHandler;
32
- }
33
- interface MenuProps extends Props, Omit<React.ComponentPropsWithoutRef<'ul'>, 'onClick' | 'onSelect'> {
34
- items?: MenuItem[];
35
- }
36
- type ClickEventHandler = (params: {
37
- domEvent: React.MouseEvent;
38
- key: React.Key;
39
- keyPath: React.Key[];
40
- item: MenuItem;
41
- }) => void;
42
- declare const MENU_CLASSNAMES: string[];
43
- type SelectionMap = ReadonlyMap<React.Key, boolean>;
44
- declare const buildSelectionMap: (items: MenuItem[], selectedKeysSet: ReadonlySet<React.Key>) => SelectionMap;
45
- declare const findKey: (menu: MenuItem, targetKeys: ReadonlySet<React.Key>) => boolean;
46
- declare const Menu: ({
47
- items,
48
- mode,
49
- defaultSelectedKeys,
50
- selectedKeys: _selectedKeys,
51
- className,
52
- classNames,
53
- styles,
54
- offset,
55
- inlineOffset,
56
- onClick,
57
- onSelect: _onSelect,
58
- ...props
59
- }: MenuProps) => react_jsx_runtime0.JSX.Element;
60
- //#endregion
61
- export { ClickEventHandler, MENU_CLASSNAMES, MenuItem, MenuProps, Props, SelectionMap, buildSelectionMap, Menu as default, findKey };
62
- //# sourceMappingURL=Menu.d.mts.map
1
+ import { ClickEventHandler, MENU_CLASSNAMES, Menu, MenuItem, MenuProps, Props, SelectionMap, buildSelectionMap, findKey } from "./components/molecules/menu/menu.mjs";
2
+ export { type ClickEventHandler, MENU_CLASSNAMES, type MenuItem, type MenuProps, type Props, type SelectionMap, buildSelectionMap, Menu as default, findKey };
package/dist/Menu.mjs CHANGED
@@ -1,69 +1,3 @@
1
- 'use client';
1
+ import Menu, { MENU_CLASSNAMES, buildSelectionMap, findKey } from "./components/molecules/menu/menu.mjs";
2
2
 
3
- import { cn } from "./utils.mjs";
4
- import Item from "./components/molecules/Menu/Item/index.mjs";
5
- import { createElement, useMemo, useState } from "react";
6
- import { jsx } from "react/jsx-runtime";
7
-
8
- //#region src/components/molecules/Menu/index.tsx
9
- const MENU_CLASSNAMES = [
10
- "p-0",
11
- "bg-white",
12
- "shadow-md",
13
- "rounded-md"
14
- ];
15
- const buildSelectionMap = (items, selectedKeysSet) => {
16
- const map = /* @__PURE__ */ new Map();
17
- const dfs = (node) => {
18
- const self = selectedKeysSet.has(node.key);
19
- const hasSelectedChild = node.children?.some((child) => dfs(child)) ?? false;
20
- const isSelected = self || hasSelectedChild;
21
- map.set(node.key, isSelected);
22
- return isSelected;
23
- };
24
- items.forEach(dfs);
25
- return map;
26
- };
27
- const findKey = (menu, targetKeys) => {
28
- if (targetKeys.has(menu.key)) return true;
29
- if (menu.children && Array.isArray(menu.children)) {
30
- for (const child of menu.children) if (findKey(child, targetKeys)) return true;
31
- }
32
- return false;
33
- };
34
- const Menu = ({ items, mode = "vertical", defaultSelectedKeys = [], selectedKeys: _selectedKeys, className, classNames, styles, offset, inlineOffset, onClick, onSelect: _onSelect, ...props }) => {
35
- const controlled = _selectedKeys !== void 0;
36
- const [uncontrolledSelectedKeys, setUncontrolledSelectedKeys] = useState(defaultSelectedKeys ?? []);
37
- const selectedKeys = controlled ? _selectedKeys : uncontrolledSelectedKeys;
38
- const selectedKeysSet = useMemo(() => new Set(selectedKeys ?? []), [selectedKeys]);
39
- const selectionMap = useMemo(() => buildSelectionMap(items ?? [], selectedKeysSet), [items, selectedKeysSet]);
40
- const onSelect = (params) => {
41
- if (!controlled) setUncontrolledSelectedKeys([params.key]);
42
- _onSelect?.(params);
43
- };
44
- return /* @__PURE__ */ jsx("ul", {
45
- role: "menu",
46
- className: cn(MENU_CLASSNAMES, mode === "horizontal" ? "flex" : "inline-block", className),
47
- ...props,
48
- children: items?.map((item) => /* @__PURE__ */ createElement(Item, {
49
- root: true,
50
- ...item,
51
- key: item.key,
52
- itemKey: item.key,
53
- keyPath: [item.key],
54
- selectedKeys,
55
- selectionMap,
56
- mode,
57
- classNames,
58
- styles,
59
- offset,
60
- inlineOffset,
61
- onClick,
62
- onSelect
63
- }))
64
- });
65
- };
66
-
67
- //#endregion
68
- export { MENU_CLASSNAMES, buildSelectionMap, Menu as default, findKey };
69
- //# sourceMappingURL=Menu.mjs.map
3
+ export { MENU_CLASSNAMES, buildSelectionMap, Menu as default, findKey };
@@ -1,43 +1,11 @@
1
- import { Item, ItemProps } from "./components/molecules/Reveals/Item/index.mjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { Item, ItemProps } from "./components/molecules/reveals/item.mjs";
2
+ import { CASCADE, DELAY, DURATION, Props, Reveals as Reveals$1 } from "./components/molecules/reveals/reveals.mjs";
3
3
 
4
- //#region src/components/molecules/Reveals/index.d.ts
5
- interface Props extends React.ComponentPropsWithoutRef<'div'>, ItemProps {
6
- cascade?: number;
7
- classNames?: {
8
- root?: string;
9
- item?: string;
10
- };
11
- once?: boolean;
12
- items?: ItemProps[];
13
- }
14
- declare const DURATION = 0.6;
15
- declare const DELAY = 0;
16
- declare const CASCADE = 0.1;
17
- declare const Reveals: {
18
- ({
19
- children,
20
- className,
21
- classNames,
22
- items,
23
- cascade,
24
- duration,
25
- delay,
26
- ...props
27
- }: Props): react_jsx_runtime0.JSX.Element;
28
- Item: ({
29
- effect,
30
- children,
31
- once,
32
- viewport,
33
- variants,
34
- duration,
35
- delay,
36
- transition,
37
- className,
38
- ...props
39
- }: ItemProps) => react_jsx_runtime0.JSX.Element;
4
+ //#region src/components/molecules/reveals/index.d.ts
5
+ type RevealsComponent = typeof Reveals$1 & {
6
+ Item: typeof Item;
40
7
  };
8
+ declare const Reveals: RevealsComponent;
41
9
  //#endregion
42
10
  export { CASCADE, DELAY, DURATION, Item, type ItemProps, type Props as RevealsProps, Reveals as default };
43
11
  //# sourceMappingURL=Reveals.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Reveals.d.mts","names":[],"sources":["../src/components/molecules/Reveals/index.tsx"],"mappings":";;;;UAMU,KAAA,SAAc,KAAA,CAAM,wBAAA,SAAiC,SAAA;EAC7D,OAAA;EACA,UAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,IAAA;EACA,KAAA,GAAQ,SAAA;AAAA;AAAA,cAGJ,QAAA;AAAA,cACA,KAAA;AAAA,cACA,OAAA;AAAA,cAEA,OAAA;EAAA;;;;;;;;;KASH,KAAA,GAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Reveals.d.mts","names":[],"sources":["../src/components/molecules/reveals/index.ts"],"mappings":";;;;KAGK,gBAAA,UAA0B,SAAA;EAAgB,IAAA,SAAa,IAAA;AAAA;AAAA,cAEtD,OAAA,EAAyB,gBAAA"}
package/dist/Reveals.mjs CHANGED
@@ -1,27 +1,8 @@
1
- import { cn } from "./utils.mjs";
2
- import Item from "./components/molecules/Reveals/Item/index.mjs";
3
- import { Children } from "react";
4
- import { jsx } from "react/jsx-runtime";
1
+ import Item from "./components/molecules/reveals/item.mjs";
2
+ import Reveals$1, { CASCADE, DELAY, DURATION } from "./components/molecules/reveals/reveals.mjs";
5
3
 
6
- //#region src/components/molecules/Reveals/index.tsx
7
- const DURATION = .6;
8
- const DELAY = 0;
9
- const CASCADE = .1;
10
- const Reveals = ({ children, className, classNames, items = [], cascade = CASCADE, duration = DURATION, delay = DELAY, ...props }) => {
11
- const renderItems = (items) => items.map((item, index) => /* @__PURE__ */ jsx(Item, {
12
- duration,
13
- delay: delay + cascade * index,
14
- className: cn(item.className, classNames?.item),
15
- ...props,
16
- ...item,
17
- children: item.children
18
- }, index));
19
- return /* @__PURE__ */ jsx("div", {
20
- className: cn("flex gap-5", className, classNames?.root),
21
- ...props,
22
- children: renderItems(children ? Children.toArray(children).map((child) => ({ children: child })) : items)
23
- });
24
- };
4
+ //#region src/components/molecules/reveals/index.ts
5
+ const Reveals = Reveals$1;
25
6
  Reveals.Item = Item;
26
7
 
27
8
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Reveals.mjs","names":[],"sources":["../src/components/molecules/Reveals/index.tsx"],"sourcesContent":["import { Children } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Item, { type ItemProps } from './Item';\n\ninterface Props extends React.ComponentPropsWithoutRef<'div'>, ItemProps {\n cascade?: number;\n classNames?: {\n root?: string;\n item?: string;\n };\n once?: boolean;\n items?: ItemProps[];\n}\n\nconst DURATION = 0.6;\nconst DELAY = 0;\nconst CASCADE = 0.1;\n\nconst Reveals = ({\n children,\n className,\n classNames,\n items = [],\n cascade = CASCADE,\n duration = DURATION,\n delay = DELAY,\n ...props\n}: Props) => {\n const renderItems = (items: ItemProps[]) =>\n items.map((item, index) => (\n <Item\n key={index}\n duration={duration}\n delay={delay + cascade * index}\n className={cn(\n item.className,\n classNames?.item,\n //\n )}\n {...props}\n {...item}\n //\n >\n {item.children}\n </Item>\n ));\n\n return (\n <div\n className={cn(\n 'flex gap-5',\n className,\n classNames?.root,\n //\n )}\n {...props}\n >\n {renderItems(\n children\n ? Children.toArray(children).map(child => ({\n children: child,\n }))\n : items,\n )}\n </div>\n );\n};\n\nReveals.Item = Item;\n\nexport {\n Item,\n type ItemProps,\n type Props as RevealsProps,\n DURATION,\n DELAY,\n CASCADE,\n};\n\nexport default Reveals;\n"],"mappings":";;;;;;AAgBA,MAAM,WAAW;AACjB,MAAM,QAAQ;AACd,MAAM,UAAU;AAEhB,MAAM,WAAW,EACf,UACA,WACA,YACA,QAAQ,EAAE,EACV,UAAU,SACV,WAAW,UACX,QAAQ,OACR,GAAG,YACQ;CACX,MAAM,eAAe,UACnB,MAAM,KAAK,MAAM,UACf,oBAAC;EAEW;EACV,OAAO,QAAQ,UAAU;EACzB,WAAW,GACT,KAAK,WACL,YAAY,KAEb;EACD,GAAI;EACJ,GAAI;YAGH,KAAK;IAZD,MAaA,CACP;AAEJ,QACE,oBAAC;EACC,WAAW,GACT,cACA,WACA,YAAY,KAEb;EACD,GAAI;YAEH,YACC,WACI,SAAS,QAAQ,SAAS,CAAC,KAAI,WAAU,EACvC,UAAU,OACX,EAAE,GACH,MACL;GACG;;AAIV,QAAQ,OAAO"}
1
+ {"version":3,"file":"Reveals.mjs","names":["RevealsImpl"],"sources":["../src/components/molecules/reveals/index.ts"],"sourcesContent":["import Item from './item';\nimport RevealsImpl, { CASCADE, DELAY, DURATION, type Props } from './reveals';\n\ntype RevealsComponent = typeof RevealsImpl & { Item: typeof Item };\n\nconst Reveals = RevealsImpl as RevealsComponent;\n\nReveals.Item = Item;\n\nexport default Reveals;\nexport { Item, DURATION, DELAY, CASCADE };\nexport type { ItemProps } from './item';\nexport type { Props as RevealsProps };\n"],"mappings":";;;;AAKA,MAAM,UAAUA;AAEhB,QAAQ,OAAO"}
package/dist/Space.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
- //#region src/components/molecules/Space/index.d.ts
3
+ //#region src/components/molecules/space.d.ts
4
4
  interface Props extends React.ComponentPropsWithRef<'div'> {
5
5
  loading?: boolean;
6
6
  loader?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Space.d.mts","names":[],"sources":["../src/components/molecules/Space/index.tsx"],"mappings":";;;UAMU,KAAA,SAAc,KAAA,CAAM,qBAAA;EAC5B,OAAA;EACA,MAAA,GAAS,KAAA,CAAM,SAAA;EACf,WAAA;EACA,IAAA;EACA,KAAA;EACA,IAAA;EACA,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,IAAA;IACE,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,cAiBE,KAAA;EAAS,OAAA;EAAA,MAAA;EAAA,QAAA;EAAA,IAAA;EAAA,WAAA;EAAA,KAAA;EAAA,IAAA;EAAA,KAAA;EAAA,SAAA;EAAA,IAAA;EAAA,MAAA;EAAA,KAAA;EAAA,GAAA;AAAA,GAcZ,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Space.d.mts","names":[],"sources":["../src/components/molecules/space.tsx"],"mappings":";;;UAMU,KAAA,SAAc,KAAA,CAAM,qBAAA;EAC5B,OAAA;EACA,MAAA,GAAS,KAAA,CAAM,SAAA;EACf,WAAA;EACA,IAAA;EACA,KAAA;EACA,IAAA;EACA,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,IAAA;IACE,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,cAiBE,KAAA;EAAS,OAAA;EAAA,MAAA;EAAA,QAAA;EAAA,IAAA;EAAA,WAAA;EAAA,KAAA;EAAA,IAAA;EAAA,KAAA;EAAA,SAAA;EAAA,IAAA;EAAA,MAAA;EAAA,KAAA;EAAA,GAAA;AAAA,GAcZ,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
package/dist/Space.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { cn } from "./utils.mjs";
2
- import Skeleton from "./components/atoms/Skeleton/index.mjs";
2
+ import Skeleton from "./components/atoms/skeleton/index.mjs";
3
3
  import { Children } from "react";
4
4
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/components/molecules/Space/index.tsx
6
+ //#region src/components/molecules/space.tsx
7
7
  const sizes = {
8
8
  small: [4, 4],
9
9
  middle: [8, 8],
@@ -1 +1 @@
1
- {"version":3,"file":"Space.mjs","names":[],"sources":["../src/components/molecules/Space/index.tsx"],"sourcesContent":["import { Children } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Skeleton from '../../atoms/Skeleton';\n\ninterface Props extends React.ComponentPropsWithRef<'div'> {\n loading?: boolean;\n loader?: React.ReactNode;\n orientation?: 'horizontal' | 'vertical';\n size?: 'small' | 'middle' | 'large' | number | number[];\n align?: 'start' | 'end' | 'center' | 'baseline';\n wrap?: boolean;\n split?: React.ReactNode;\n grid?: {\n rows?: number;\n cols?: number;\n };\n}\n\nconst sizes: Record<string, number[]> = {\n small: [4, 4],\n middle: [8, 8],\n large: [16, 16],\n};\n\nconst aligns: Record<string, string> = {\n start: 'items-start text-start',\n end: 'items-end text-end',\n center: 'items-center text-center',\n baseline: 'items-baseline text-baseline',\n};\n\nconst Space = ({\n loading,\n loader,\n children,\n size = 'middle',\n orientation = 'horizontal',\n align = 'center',\n wrap = false,\n split,\n className,\n grid,\n hidden,\n style,\n ...props\n}: Props) => {\n const [x, y] =\n typeof size === 'string'\n ? sizes[size] || [0, 0]\n : Array.isArray(size)\n ? size\n : [size, size];\n const count = Children.count(children);\n\n if (loading) {\n return <div className={cn(className)}>{loader || <Skeleton />}</div>;\n }\n\n return (\n <div\n className={cn(\n 'flex flex-nowrap',\n orientation === 'horizontal' ? 'flex-row' : 'flex-col',\n wrap && 'flex-wrap',\n aligns[align],\n grid && 'grid',\n hidden && 'hidden',\n className,\n )}\n style={{\n columnGap: x,\n rowGap: y,\n gridTemplateRows: grid?.rows\n ? `repeat(${grid.rows}, minmax(0, 1fr))`\n : undefined,\n gridTemplateColumns: grid?.cols\n ? `repeat(${grid.cols}, minmax(0, 1fr))`\n : undefined,\n ...style,\n }}\n {...props}\n >\n {Children.map(children, (child, i) => (\n <>\n {child}\n {split && i < count - 1 && split}\n </>\n ))}\n </div>\n );\n};\n\nexport default Space;\n"],"mappings":";;;;;;AAoBA,MAAM,QAAkC;CACtC,OAAO,CAAC,GAAG,EAAE;CACb,QAAQ,CAAC,GAAG,EAAE;CACd,OAAO,CAAC,IAAI,GAAG;CAChB;AAED,MAAM,SAAiC;CACrC,OAAO;CACP,KAAK;CACL,QAAQ;CACR,UAAU;CACX;AAED,MAAM,SAAS,EACb,SACA,QACA,UACA,OAAO,UACP,cAAc,cACd,QAAQ,UACR,OAAO,OACP,OACA,WACA,MACA,QACA,OACA,GAAG,YACQ;CACX,MAAM,CAAC,GAAG,KACR,OAAO,SAAS,WACZ,MAAM,SAAS,CAAC,GAAG,EAAE,GACrB,MAAM,QAAQ,KAAK,GACjB,OACA,CAAC,MAAM,KAAK;CACpB,MAAM,QAAQ,SAAS,MAAM,SAAS;AAEtC,KAAI,QACF,QAAO,oBAAC;EAAI,WAAW,GAAG,UAAU;YAAG,UAAU,oBAAC,aAAW;GAAO;AAGtE,QACE,oBAAC;EACC,WAAW,GACT,oBACA,gBAAgB,eAAe,aAAa,YAC5C,QAAQ,aACR,OAAO,QACP,QAAQ,QACR,UAAU,UACV,UACD;EACD,OAAO;GACL,WAAW;GACX,QAAQ;GACR,kBAAkB,MAAM,OACpB,UAAU,KAAK,KAAK,qBACpB;GACJ,qBAAqB,MAAM,OACvB,UAAU,KAAK,KAAK,qBACpB;GACJ,GAAG;GACJ;EACD,GAAI;YAEH,SAAS,IAAI,WAAW,OAAO,MAC9B,8CACG,OACA,SAAS,IAAI,QAAQ,KAAK,SAC1B,CACH;GACE"}
1
+ {"version":3,"file":"Space.mjs","names":[],"sources":["../src/components/molecules/space.tsx"],"sourcesContent":["import { Children } from 'react';\n\nimport { cn } from '@repo/ui/utils';\n\nimport Skeleton from '../atoms/skeleton';\n\ninterface Props extends React.ComponentPropsWithRef<'div'> {\n loading?: boolean;\n loader?: React.ReactNode;\n orientation?: 'horizontal' | 'vertical';\n size?: 'small' | 'middle' | 'large' | number | number[];\n align?: 'start' | 'end' | 'center' | 'baseline';\n wrap?: boolean;\n split?: React.ReactNode;\n grid?: {\n rows?: number;\n cols?: number;\n };\n}\n\nconst sizes: Record<string, number[]> = {\n small: [4, 4],\n middle: [8, 8],\n large: [16, 16],\n};\n\nconst aligns: Record<string, string> = {\n start: 'items-start text-start',\n end: 'items-end text-end',\n center: 'items-center text-center',\n baseline: 'items-baseline text-baseline',\n};\n\nconst Space = ({\n loading,\n loader,\n children,\n size = 'middle',\n orientation = 'horizontal',\n align = 'center',\n wrap = false,\n split,\n className,\n grid,\n hidden,\n style,\n ...props\n}: Props) => {\n const [x, y] =\n typeof size === 'string'\n ? sizes[size] || [0, 0]\n : Array.isArray(size)\n ? size\n : [size, size];\n const count = Children.count(children);\n\n if (loading) {\n return <div className={cn(className)}>{loader || <Skeleton />}</div>;\n }\n\n return (\n <div\n className={cn(\n 'flex flex-nowrap',\n orientation === 'horizontal' ? 'flex-row' : 'flex-col',\n wrap && 'flex-wrap',\n aligns[align],\n grid && 'grid',\n hidden && 'hidden',\n className,\n )}\n style={{\n columnGap: x,\n rowGap: y,\n gridTemplateRows: grid?.rows\n ? `repeat(${grid.rows}, minmax(0, 1fr))`\n : undefined,\n gridTemplateColumns: grid?.cols\n ? `repeat(${grid.cols}, minmax(0, 1fr))`\n : undefined,\n ...style,\n }}\n {...props}\n >\n {Children.map(children, (child, i) => (\n <>\n {child}\n {split && i < count - 1 && split}\n </>\n ))}\n </div>\n );\n};\n\nexport default Space;\n"],"mappings":";;;;;;AAoBA,MAAM,QAAkC;CACtC,OAAO,CAAC,GAAG,EAAE;CACb,QAAQ,CAAC,GAAG,EAAE;CACd,OAAO,CAAC,IAAI,GAAG;CAChB;AAED,MAAM,SAAiC;CACrC,OAAO;CACP,KAAK;CACL,QAAQ;CACR,UAAU;CACX;AAED,MAAM,SAAS,EACb,SACA,QACA,UACA,OAAO,UACP,cAAc,cACd,QAAQ,UACR,OAAO,OACP,OACA,WACA,MACA,QACA,OACA,GAAG,YACQ;CACX,MAAM,CAAC,GAAG,KACR,OAAO,SAAS,WACZ,MAAM,SAAS,CAAC,GAAG,EAAE,GACrB,MAAM,QAAQ,KAAK,GACjB,OACA,CAAC,MAAM,KAAK;CACpB,MAAM,QAAQ,SAAS,MAAM,SAAS;AAEtC,KAAI,QACF,QAAO,oBAAC;EAAI,WAAW,GAAG,UAAU;YAAG,UAAU,oBAAC,aAAW;GAAO;AAGtE,QACE,oBAAC;EACC,WAAW,GACT,oBACA,gBAAgB,eAAe,aAAa,YAC5C,QAAQ,aACR,OAAO,QACP,QAAQ,QACR,UAAU,UACV,UACD;EACD,OAAO;GACL,WAAW;GACX,QAAQ;GACR,kBAAkB,MAAM,OACpB,UAAU,KAAK,KAAK,qBACpB;GACJ,qBAAqB,MAAM,OACvB,UAAU,KAAK,KAAK,qBACpB;GACJ,GAAG;GACJ;EACD,GAAI;YAEH,SAAS,IAAI,WAAW,OAAO,MAC9B,8CACG,OACA,SAAS,IAAI,QAAQ,KAAK,SAC1B,CACH;GACE"}
package/dist/Tag.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
- //#region src/components/atoms/Tag/index.d.ts
3
+ //#region src/components/atoms/tag.d.ts
4
4
  interface Props extends React.ComponentPropsWithoutRef<'span'> {
5
5
  variant?: 'default' | 'outlined';
6
6
  color?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
@@ -13,5 +13,5 @@ declare const Tag: ({
13
13
  ...props
14
14
  }: Props) => react_jsx_runtime0.JSX.Element;
15
15
  //#endregion
16
- export { Props, Tag as default };
16
+ export { Tag as default };
17
17
  //# sourceMappingURL=Tag.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.mts","names":[],"sources":["../src/components/atoms/Tag/index.tsx"],"mappings":";;;UAEiB,KAAA,SAAc,KAAA,CAAM,wBAAA;EACnC,OAAA;EACA,KAAA;AAAA;AAAA,cAmBI,GAAA;EAAO,SAAA;EAAA,OAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAMV,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Tag.d.mts","names":[],"sources":["../src/components/atoms/tag.tsx"],"mappings":";;;UAEU,KAAA,SAAc,KAAA,CAAM,wBAAA;EAC5B,OAAA;EACA,KAAA;AAAA;AAAA,cAmBI,GAAA;EAAO,SAAA;EAAA,OAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAMV,KAAA,KAAK,kBAAA,CAAA,GAAA,CAAA,OAAA"}
package/dist/Tag.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { cn } from "./utils.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
 
4
- //#region src/components/atoms/Tag/index.tsx
4
+ //#region src/components/atoms/tag.tsx
5
5
  const fillColorClasses = {
6
6
  default: "bg-muted text-muted-foreground",
7
7
  primary: "bg-primary/10 text-primary",