@customafk/lunas-ui 0.0.26 → 0.0.27

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 (364) hide show
  1. package/dist/{alert-dialog-D-oR0YW3.cjs → alert-dialog-26JyobJb.cjs} +1 -1
  2. package/dist/{alert-dialog-D-oR0YW3.cjs.map → alert-dialog-26JyobJb.cjs.map} +1 -1
  3. package/dist/{alert-dialog-CNHyP_A9.js → alert-dialog-Dv0cgymS.js} +1 -1
  4. package/dist/{alert-dialog-CNHyP_A9.js.map → alert-dialog-Dv0cgymS.js.map} +1 -1
  5. package/dist/{button-BmBtMriU.d.ts → button-CPBLm_02.d.ts} +5 -5
  6. package/dist/{button-tCnJHt8O.d.cts → button-ghXW1WTr.d.cts} +5 -5
  7. package/dist/{calendar-CbuOOMpK.js → calendar-B66UT_fu.js} +1 -1
  8. package/dist/{calendar-CbuOOMpK.js.map → calendar-B66UT_fu.js.map} +1 -1
  9. package/dist/{calendar-B8IKzrdN.cjs → calendar-DXegnGRJ.cjs} +1 -1
  10. package/dist/{calendar-B8IKzrdN.cjs.map → calendar-DXegnGRJ.cjs.map} +1 -1
  11. package/dist/{command-Dr2XmKV6.d.cts → command-CE_Qcgo7.d.ts} +12 -12
  12. package/dist/{command-Dvq-HZwH.d.ts → command-CiEjoEnP.d.cts} +12 -12
  13. package/dist/{command-TFZwJmux.js → command-Dbkg10QA.js} +2 -2
  14. package/dist/{command-TFZwJmux.js.map → command-Dbkg10QA.js.map} +1 -1
  15. package/dist/{command-CoB5R5FI.cjs → command-IL3ogESu.cjs} +2 -2
  16. package/dist/{command-CoB5R5FI.cjs.map → command-IL3ogESu.cjs.map} +1 -1
  17. package/dist/data-display/empty.d.cts +2 -2
  18. package/dist/data-display/statistic.d.cts +2 -2
  19. package/dist/data-display/statistic.d.ts +2 -2
  20. package/dist/{dialog-CSDDiHKO.js → dialog-BEdMA5Lp.js} +1 -1
  21. package/dist/{dialog-CSDDiHKO.js.map → dialog-BEdMA5Lp.js.map} +1 -1
  22. package/dist/{dialog-C-DYoapJ.d.ts → dialog-Bw_T5aco.d.cts} +12 -12
  23. package/dist/{dialog-_Cgij9NP.cjs → dialog-C4oHnJNN.cjs} +1 -1
  24. package/dist/{dialog-_Cgij9NP.cjs.map → dialog-C4oHnJNN.cjs.map} +1 -1
  25. package/dist/{dialog-CA0E_tNX.d.cts → dialog-CoH1pTBH.d.ts} +12 -12
  26. package/dist/dialogs/confirm-dialog.cjs +1 -1
  27. package/dist/dialogs/confirm-dialog.js +1 -1
  28. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +4 -4
  29. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +28 -28
  30. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  31. package/dist/dialogs/detail-dialog/index.js +1 -1
  32. package/dist/dialogs/error-dialog.cjs +1 -1
  33. package/dist/dialogs/error-dialog.js +1 -1
  34. package/dist/dialogs/form-dialog.cjs +1 -1
  35. package/dist/dialogs/form-dialog.d.cts +2 -2
  36. package/dist/dialogs/form-dialog.d.ts +2 -2
  37. package/dist/dialogs/form-dialog.js +1 -1
  38. package/dist/dialogs/loading-dialog.cjs +1 -1
  39. package/dist/dialogs/loading-dialog.js +1 -1
  40. package/dist/{error-dialog-D5R5le-W.cjs → error-dialog-C0PDn-pj.cjs} +2 -2
  41. package/dist/{error-dialog-D5R5le-W.cjs.map → error-dialog-C0PDn-pj.cjs.map} +1 -1
  42. package/dist/{error-dialog-Q99thrSD.js → error-dialog-CCdQ8zbQ.js} +2 -2
  43. package/dist/{error-dialog-Q99thrSD.js.map → error-dialog-CCdQ8zbQ.js.map} +1 -1
  44. package/dist/{form-wrapper-CY-stRaQ.cjs → form-wrapper-Cd8c5MIL.cjs} +2 -2
  45. package/dist/{form-wrapper-CY-stRaQ.cjs.map → form-wrapper-Cd8c5MIL.cjs.map} +1 -1
  46. package/dist/{form-wrapper-C2xlvWx0.js → form-wrapper-DntbFqN1.js} +2 -2
  47. package/dist/{form-wrapper-C2xlvWx0.js.map → form-wrapper-DntbFqN1.js.map} +1 -1
  48. package/dist/forms/combobox-field.cjs +1 -1
  49. package/dist/forms/combobox-field.d.cts +2 -2
  50. package/dist/forms/combobox-field.d.ts +2 -2
  51. package/dist/forms/combobox-field.js +1 -1
  52. package/dist/forms/date-field.cjs +1 -1
  53. package/dist/forms/date-field.d.cts +2 -2
  54. package/dist/forms/date-field.d.ts +2 -2
  55. package/dist/forms/date-field.js +1 -1
  56. package/dist/forms/form-wrapper.cjs +1 -1
  57. package/dist/forms/form-wrapper.d.cts +2 -2
  58. package/dist/forms/form-wrapper.d.ts +2 -2
  59. package/dist/forms/form-wrapper.js +1 -1
  60. package/dist/forms/multi-select-field.cjs +1 -1
  61. package/dist/forms/multi-select-field.cjs.map +1 -1
  62. package/dist/forms/multi-select-field.d.cts +2 -2
  63. package/dist/forms/multi-select-field.d.ts +2 -2
  64. package/dist/forms/multi-select-field.js +1 -1
  65. package/dist/forms/number-field.d.cts +2 -2
  66. package/dist/forms/number-field.d.ts +2 -2
  67. package/dist/forms/password-field.d.cts +2 -2
  68. package/dist/forms/password-field.d.ts +2 -2
  69. package/dist/forms/select-field.d.cts +2 -2
  70. package/dist/forms/select-field.d.ts +2 -2
  71. package/dist/forms/switch-field.d.cts +2 -2
  72. package/dist/forms/switch-field.d.ts +2 -2
  73. package/dist/forms/text-field.d.cts +2 -2
  74. package/dist/forms/text-field.d.ts +2 -2
  75. package/dist/forms/textarea-field.d.cts +2 -2
  76. package/dist/forms/textarea-field.d.ts +2 -2
  77. package/dist/{input-CjNcnHb_.d.ts → input-CUDclgoU.d.ts} +3 -3
  78. package/dist/{input-BsXm0_Iq.d.cts → input-y_n-XGys.d.cts} +3 -3
  79. package/dist/layouts/app-layout/index.d.cts +5 -5
  80. package/dist/layouts/app-layout/index.d.ts +3 -3
  81. package/dist/layouts/flex.d.cts +4 -4
  82. package/dist/layouts/flex.d.ts +4 -4
  83. package/dist/layouts/main/index.d.cts +4 -4
  84. package/dist/layouts/main/index.d.ts +4 -4
  85. package/dist/{multi-select-Cjvm4tK5.cjs → multi-select-3yxD9gbY.cjs} +2 -2
  86. package/dist/{multi-select-Cjvm4tK5.cjs.map → multi-select-3yxD9gbY.cjs.map} +1 -1
  87. package/dist/{multi-select-D0bZVOnm.js → multi-select-Cb07NlA7.js} +2 -2
  88. package/dist/{multi-select-D0bZVOnm.js.map → multi-select-Cb07NlA7.js.map} +1 -1
  89. package/dist/{popover-CTFp7ZXi.js → popover-CqAD7HNo.js} +1 -1
  90. package/dist/{popover-CTFp7ZXi.js.map → popover-CqAD7HNo.js.map} +1 -1
  91. package/dist/{popover-DCcPvdz2.cjs → popover-Dd0acCEk.cjs} +1 -1
  92. package/dist/{popover-DCcPvdz2.cjs.map → popover-Dd0acCEk.cjs.map} +1 -1
  93. package/dist/{separator-5FdzRGaJ.d.ts → separator-BLYi41aC.d.ts} +3 -3
  94. package/dist/{separator-DpxrpK_H.d.cts → separator-ClGBPiYE.d.cts} +3 -3
  95. package/dist/table/index.d.cts +2 -2
  96. package/dist/table/index.d.ts +2 -2
  97. package/dist/{toggle-Cx9H5u3p.d.cts → toggle-BWQWsKMA.d.ts} +4 -4
  98. package/dist/{toggle-DH9IssyE.d.ts → toggle-DnGvFJh8.d.cts} +4 -4
  99. package/dist/{tooltip-Djh_dcy5.d.ts → tooltip-Bk8VwHdM.d.ts} +6 -6
  100. package/dist/{tooltip-BAtWdJyX.d.cts → tooltip-cisSpCHG.d.cts} +6 -6
  101. package/dist/typography/paragraph.d.cts +2 -2
  102. package/dist/typography/paragraph.d.ts +2 -2
  103. package/dist/typography/title.d.cts +2 -2
  104. package/dist/typography/title.d.ts +2 -2
  105. package/dist/ui/alert-dialog.cjs +1 -1
  106. package/dist/ui/alert-dialog.d.cts +12 -12
  107. package/dist/ui/alert-dialog.d.ts +12 -12
  108. package/dist/ui/alert-dialog.js +1 -1
  109. package/dist/ui/alert.d.cts +6 -6
  110. package/dist/ui/alert.d.ts +6 -6
  111. package/dist/ui/aspect-ratio.d.cts +2 -2
  112. package/dist/ui/aspect-ratio.d.ts +2 -2
  113. package/dist/ui/avatar.d.cts +4 -4
  114. package/dist/ui/avatar.d.ts +4 -4
  115. package/dist/ui/badge.d.cts +2 -2
  116. package/dist/ui/badge.d.ts +4 -4
  117. package/dist/ui/breadcrumb.d.cts +8 -8
  118. package/dist/ui/breadcrumb.d.ts +8 -8
  119. package/dist/ui/button.d.cts +1 -1
  120. package/dist/ui/button.d.ts +1 -1
  121. package/dist/ui/calendar.cjs +1 -1
  122. package/dist/ui/calendar.d.cts +4 -4
  123. package/dist/ui/calendar.d.ts +4 -4
  124. package/dist/ui/calendar.js +1 -1
  125. package/dist/ui/card.d.cts +8 -8
  126. package/dist/ui/card.d.ts +8 -8
  127. package/dist/ui/carousel.d.cts +7 -7
  128. package/dist/ui/carousel.d.ts +7 -7
  129. package/dist/ui/collapsible.d.cts +4 -4
  130. package/dist/ui/collapsible.d.ts +4 -4
  131. package/dist/ui/command.cjs +1 -1
  132. package/dist/ui/command.d.cts +2 -2
  133. package/dist/ui/command.d.ts +2 -2
  134. package/dist/ui/command.js +1 -1
  135. package/dist/ui/context-menu.d.cts +16 -16
  136. package/dist/ui/context-menu.d.ts +16 -16
  137. package/dist/ui/dialog.cjs +1 -1
  138. package/dist/ui/dialog.d.cts +1 -1
  139. package/dist/ui/dialog.d.ts +1 -1
  140. package/dist/ui/dialog.js +1 -1
  141. package/dist/ui/dropdown-menu.d.cts +16 -16
  142. package/dist/ui/dropdown-menu.d.ts +16 -16
  143. package/dist/ui/file-uploader.d.cts +2 -2
  144. package/dist/ui/file-uploader.d.ts +2 -2
  145. package/dist/ui/form.d.cts +7 -7
  146. package/dist/ui/form.d.ts +7 -7
  147. package/dist/ui/hover-card.d.cts +4 -4
  148. package/dist/ui/hover-card.d.ts +4 -4
  149. package/dist/ui/input-otp.d.cts +5 -5
  150. package/dist/ui/input-otp.d.ts +5 -5
  151. package/dist/ui/input.d.cts +1 -1
  152. package/dist/ui/input.d.ts +1 -1
  153. package/dist/ui/inputs/search-input.d.cts +1 -1
  154. package/dist/ui/inputs/search-input.d.ts +3 -3
  155. package/dist/ui/label.d.cts +2 -2
  156. package/dist/ui/label.d.ts +2 -2
  157. package/dist/ui/menubar.d.cts +17 -17
  158. package/dist/ui/menubar.d.ts +17 -17
  159. package/dist/ui/multi-select.cjs +1 -1
  160. package/dist/ui/multi-select.d.cts +2 -2
  161. package/dist/ui/multi-select.d.ts +2 -2
  162. package/dist/ui/multi-select.js +1 -1
  163. package/dist/ui/navigation-menu.d.cts +11 -11
  164. package/dist/ui/navigation-menu.d.ts +9 -9
  165. package/dist/ui/pagination.d.cts +9 -9
  166. package/dist/ui/pagination.d.ts +9 -9
  167. package/dist/ui/popover.cjs +1 -1
  168. package/dist/ui/popover.d.cts +5 -5
  169. package/dist/ui/popover.d.ts +5 -5
  170. package/dist/ui/popover.js +1 -1
  171. package/dist/ui/progress.d.cts +2 -2
  172. package/dist/ui/progress.d.ts +2 -2
  173. package/dist/ui/radio-group.d.cts +3 -3
  174. package/dist/ui/radio-group.d.ts +3 -3
  175. package/dist/ui/resizable.d.cts +4 -4
  176. package/dist/ui/resizable.d.ts +4 -4
  177. package/dist/ui/scroll-area.d.ts +3 -3
  178. package/dist/ui/select.d.cts +11 -11
  179. package/dist/ui/select.d.ts +11 -11
  180. package/dist/ui/separator.d.cts +1 -1
  181. package/dist/ui/separator.d.ts +1 -1
  182. package/dist/ui/sheet.d.cts +9 -9
  183. package/dist/ui/sheet.d.ts +9 -9
  184. package/dist/ui/sidebar.d.cts +30 -30
  185. package/dist/ui/sidebar.d.ts +30 -30
  186. package/dist/ui/skeleton.d.cts +2 -2
  187. package/dist/ui/skeleton.d.ts +2 -2
  188. package/dist/ui/slider.d.cts +2 -2
  189. package/dist/ui/slider.d.ts +2 -2
  190. package/dist/ui/sonner.d.cts +2 -2
  191. package/dist/ui/sonner.d.ts +2 -2
  192. package/dist/ui/switch.d.cts +2 -2
  193. package/dist/ui/switch.d.ts +2 -2
  194. package/dist/ui/table.d.cts +9 -9
  195. package/dist/ui/table.d.ts +9 -9
  196. package/dist/ui/tabs.d.cts +5 -5
  197. package/dist/ui/tabs.d.ts +5 -5
  198. package/dist/ui/textarea.d.cts +2 -2
  199. package/dist/ui/textarea.d.ts +2 -2
  200. package/dist/ui/toggle-group.d.cts +4 -4
  201. package/dist/ui/toggle-group.d.ts +4 -4
  202. package/dist/ui/toggle.d.cts +1 -1
  203. package/dist/ui/toggle.d.ts +1 -1
  204. package/dist/ui/tooltip.d.cts +1 -1
  205. package/dist/ui/tooltip.d.ts +1 -1
  206. package/package.json +2 -2
  207. package/styles/base.css +29 -0
  208. package/styles/loader.css +113 -0
  209. package/styles/theme.css +104 -0
  210. package/styles/typography.css +6 -0
  211. package/packages/components/cards/simple-card.tsx +0 -23
  212. package/packages/components/data-display/country.tsx +0 -53
  213. package/packages/components/data-display/data-list.tsx +0 -29
  214. package/packages/components/data-display/date-tooltip.tsx +0 -23
  215. package/packages/components/data-display/date.tsx +0 -157
  216. package/packages/components/data-display/empty.tsx +0 -13
  217. package/packages/components/data-display/name.tsx +0 -23
  218. package/packages/components/data-display/phone-number.tsx +0 -14
  219. package/packages/components/data-display/role-badge.tsx +0 -29
  220. package/packages/components/data-display/statistic.tsx +0 -139
  221. package/packages/components/dialogs/confirm-dialog.tsx +0 -44
  222. package/packages/components/dialogs/detail-dialog/component/header.tsx +0 -10
  223. package/packages/components/dialogs/detail-dialog/component/main.tsx +0 -35
  224. package/packages/components/dialogs/detail-dialog/component/sidebar.tsx +0 -618
  225. package/packages/components/dialogs/detail-dialog/component/wrapper.tsx +0 -15
  226. package/packages/components/dialogs/detail-dialog/index.tsx +0 -91
  227. package/packages/components/dialogs/error-dialog.tsx +0 -34
  228. package/packages/components/dialogs/form-dialog.tsx +0 -74
  229. package/packages/components/dialogs/loading-dialog.tsx +0 -20
  230. package/packages/components/forms/combobox-field.tsx +0 -104
  231. package/packages/components/forms/date-field.tsx +0 -62
  232. package/packages/components/forms/form-wrapper.tsx +0 -120
  233. package/packages/components/forms/multi-select-field.tsx +0 -56
  234. package/packages/components/forms/number-field.tsx +0 -54
  235. package/packages/components/forms/password-field.tsx +0 -38
  236. package/packages/components/forms/select-field.tsx +0 -58
  237. package/packages/components/forms/switch-field.tsx +0 -40
  238. package/packages/components/forms/text-field.tsx +0 -73
  239. package/packages/components/forms/textarea-field.tsx +0 -45
  240. package/packages/components/index.tsx +0 -0
  241. package/packages/components/layouts/app-layout/index.tsx +0 -74
  242. package/packages/components/layouts/app-layout/sidebar.tsx +0 -663
  243. package/packages/components/layouts/flex.tsx +0 -99
  244. package/packages/components/layouts/main/content.tsx +0 -11
  245. package/packages/components/layouts/main/header.tsx +0 -41
  246. package/packages/components/layouts/main/index.tsx +0 -3
  247. package/packages/components/layouts/main/wrapper.tsx +0 -5
  248. package/packages/components/table/data-table-pagination.tsx +0 -70
  249. package/packages/components/table/data-table.tsx +0 -241
  250. package/packages/components/table/index.tsx +0 -107
  251. package/packages/components/typography/paragraph.tsx +0 -29
  252. package/packages/components/typography/title.tsx +0 -31
  253. package/packages/components/ui/alert-dialog.tsx +0 -99
  254. package/packages/components/ui/alert.tsx +0 -44
  255. package/packages/components/ui/aspect-ratio.tsx +0 -11
  256. package/packages/components/ui/avatar.tsx +0 -25
  257. package/packages/components/ui/badge.tsx +0 -57
  258. package/packages/components/ui/breadcrumb.tsx +0 -74
  259. package/packages/components/ui/button.tsx +0 -205
  260. package/packages/components/ui/buttons/add-new.tsx +0 -19
  261. package/packages/components/ui/buttons/edit.tsx +0 -14
  262. package/packages/components/ui/buttons/refresh.tsx +0 -19
  263. package/packages/components/ui/buttons/trash.tsx +0 -14
  264. package/packages/components/ui/buttons/upload-image.tsx +0 -25
  265. package/packages/components/ui/calendar.tsx +0 -141
  266. package/packages/components/ui/card.tsx +0 -44
  267. package/packages/components/ui/carousel.tsx +0 -187
  268. package/packages/components/ui/checkbox.tsx +0 -34
  269. package/packages/components/ui/collapsible.tsx +0 -17
  270. package/packages/components/ui/command.tsx +0 -138
  271. package/packages/components/ui/context-menu.tsx +0 -196
  272. package/packages/components/ui/dialog.tsx +0 -119
  273. package/packages/components/ui/dropdown-menu.tsx +0 -249
  274. package/packages/components/ui/file-uploader.tsx +0 -314
  275. package/packages/components/ui/form.tsx +0 -104
  276. package/packages/components/ui/hover-card.tsx +0 -32
  277. package/packages/components/ui/input-otp.tsx +0 -67
  278. package/packages/components/ui/input.tsx +0 -59
  279. package/packages/components/ui/inputs/number-input.tsx +0 -317
  280. package/packages/components/ui/inputs/password-input.tsx +0 -29
  281. package/packages/components/ui/inputs/search-input.tsx +0 -24
  282. package/packages/components/ui/label.tsx +0 -26
  283. package/packages/components/ui/menubar.tsx +0 -212
  284. package/packages/components/ui/multi-select.tsx +0 -626
  285. package/packages/components/ui/navigation-menu.tsx +0 -124
  286. package/packages/components/ui/pagination.tsx +0 -70
  287. package/packages/components/ui/popover.tsx +0 -49
  288. package/packages/components/ui/progress.tsx +0 -19
  289. package/packages/components/ui/radio-group.tsx +0 -36
  290. package/packages/components/ui/resizable.tsx +0 -47
  291. package/packages/components/ui/scroll-area.tsx +0 -35
  292. package/packages/components/ui/select.tsx +0 -199
  293. package/packages/components/ui/separator.tsx +0 -25
  294. package/packages/components/ui/sheet.tsx +0 -119
  295. package/packages/components/ui/sidebar.tsx +0 -675
  296. package/packages/components/ui/skeleton.tsx +0 -8
  297. package/packages/components/ui/slider.tsx +0 -45
  298. package/packages/components/ui/sonner.tsx +0 -40
  299. package/packages/components/ui/switch.tsx +0 -46
  300. package/packages/components/ui/table.tsx +0 -66
  301. package/packages/components/ui/tabs.tsx +0 -53
  302. package/packages/components/ui/textarea.tsx +0 -46
  303. package/packages/components/ui/toggle-group.tsx +0 -63
  304. package/packages/components/ui/toggle.tsx +0 -34
  305. package/packages/components/ui/tooltip.tsx +0 -53
  306. package/packages/constants.tsx +0 -45
  307. package/packages/hooks/use-callback-ref.ts +0 -22
  308. package/packages/hooks/use-controllable-state.ts +0 -58
  309. package/packages/hooks/use-mobile.ts +0 -19
  310. package/packages/index.css +0 -133
  311. package/packages/lib/utils.ts +0 -24
  312. package/packages/stories/1.Guideline.mdx +0 -3
  313. package/packages/stories/2.Colors.mdx +0 -145
  314. package/packages/stories/3.Pypography.mdx +0 -51
  315. package/packages/stories/cards/simple-card.stories.tsx +0 -24
  316. package/packages/stories/data-display/data-list.stories.tsx +0 -22
  317. package/packages/stories/data-display/empty.stories.tsx +0 -13
  318. package/packages/stories/data-display/form-dialog.stories.tsx +0 -27
  319. package/packages/stories/data-display/name.stories.tsx +0 -25
  320. package/packages/stories/data-display/phone-number.stories.tsx +0 -17
  321. package/packages/stories/data-display/statistic.stories.tsx +0 -41
  322. package/packages/stories/dialogs/confirm-dialog.stories.tsx +0 -26
  323. package/packages/stories/dialogs/detail-dialog.stories.tsx +0 -34
  324. package/packages/stories/dialogs/error-dialog.stories.tsx +0 -27
  325. package/packages/stories/dialogs/loading-dialog.stories.tsx +0 -16
  326. package/packages/stories/forms/combobox-field.stories.tsx +0 -38
  327. package/packages/stories/forms/form-wrapper.stories.tsx +0 -59
  328. package/packages/stories/forms/multi-select-field.stories.tsx +0 -42
  329. package/packages/stories/forms/number-field.stories.tsx +0 -35
  330. package/packages/stories/forms/select-field.stories.tsx +0 -39
  331. package/packages/stories/forms/switch-field.stories.tsx +0 -36
  332. package/packages/stories/forms/text-field.stories.tsx +0 -41
  333. package/packages/stories/forms/textarea-field.stories.tsx +0 -34
  334. package/packages/stories/layouts/app-layout.stories.tsx +0 -49
  335. package/packages/stories/typography/paragraph.stories.tsx +0 -45
  336. package/packages/stories/typography/title.stories.tsx +0 -39
  337. package/packages/stories/ui/alert-dialog.stories.tsx +0 -49
  338. package/packages/stories/ui/alert.stories.tsx +0 -63
  339. package/packages/stories/ui/aspect-ratio.stories.tsx +0 -22
  340. package/packages/stories/ui/badge.stories.tsx +0 -170
  341. package/packages/stories/ui/breadcrumb.stories.tsx +0 -172
  342. package/packages/stories/ui/button.stories.tsx +0 -181
  343. package/packages/stories/ui/card.stories.tsx +0 -58
  344. package/packages/stories/ui/checkbox.stories.tsx +0 -48
  345. package/packages/stories/ui/command.stories.tsx +0 -58
  346. package/packages/stories/ui/dialog.stories.tsx +0 -55
  347. package/packages/stories/ui/dropdown-menu.stories.tsx +0 -89
  348. package/packages/stories/ui/file-uploader.stories.tsx +0 -18
  349. package/packages/stories/ui/input.stories.tsx +0 -38
  350. package/packages/stories/ui/label.stories.tsx +0 -17
  351. package/packages/stories/ui/multi-select.stories.tsx +0 -29
  352. package/packages/stories/ui/popover.stories.tsx +0 -52
  353. package/packages/stories/ui/progress.stories.tsx +0 -17
  354. package/packages/stories/ui/radio-group.stories.tsx +0 -31
  355. package/packages/stories/ui/select.stories.tsx +0 -31
  356. package/packages/stories/ui/separator.stories.tsx +0 -31
  357. package/packages/stories/ui/sheet.stories.tsx +0 -50
  358. package/packages/stories/ui/skeleton.stories.tsx +0 -27
  359. package/packages/stories/ui/switch.stories.tsx +0 -21
  360. package/packages/stories/ui/table.stories.tsx +0 -82
  361. package/packages/stories/ui/tabs.stories.tsx +0 -70
  362. package/packages/stories/ui/textarea.stories.tsx +0 -15
  363. package/packages/stories/ui/toaster.stories.tsx +0 -87
  364. package/packages/types.ts +0 -50
@@ -1,133 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Pacifico&display=swap') layer(base);
2
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap') layer(base);
3
-
4
- @import 'tailwindcss';
5
- @import 'tw-animate-css';
6
-
7
- @import '../styles/base.css';
8
- @import '../styles/theme.css';
9
- @import '../styles/loader.css';
10
- @import '../styles/typography.css';
11
-
12
- :root {
13
- --header-height: 3.5rem;
14
- --radius: 0.75rem;
15
- }
16
-
17
- @theme inline {
18
- /* Typography */
19
- --font-number: 'Lato', sans-serif;
20
-
21
- /* Border radius */
22
- --radius-sm: calc(var(--radius) - 0.25rem);
23
- --radius-md: calc(var(--radius) - 0.125rem);
24
- --radius-lg: calc(var(--radius));
25
- --radius-xl: calc(var(--radius) + 0.25rem);
26
-
27
- /* Color system */
28
- --color-background: var(--background);
29
- --color-foreground: var(--foreground);
30
-
31
- --color-card: var(--card);
32
- --color-card-foreground: var(--card-foreground);
33
-
34
- --color-popover: var(--popover);
35
- --color-popover-foreground: var(--popover-foreground);
36
-
37
- --color-primary: var(--primary);
38
- --color-primary-muted: var(--primary-muted);
39
- --color-primary-weak: var(--primary-weak);
40
- --color-primary-strong: var(--primary-strong);
41
- --color-primary-intense: var(--primary-intense);
42
-
43
- --color-secondary: var(--secondary);
44
- --color-secondary-muted: var(--secondary-muted);
45
- --color-secondary-weak: var(--secondary-weak);
46
- --color-secondary-strong: var(--secondary-strong);
47
- --color-secondary-intense: var(--secondary-intense);
48
-
49
- --color-muted: var(--muted);
50
- --color-muted-muted: var(--muted-muted);
51
- --color-muted-weak: var(--muted-weak);
52
- --color-muted-strong: var(--muted-strong);
53
- --color-muted-intense: var(--muted-intense);
54
-
55
- --color-accent: var(--accent);
56
- --color-accent-muted: var(--accent-muted);
57
- --color-accent-weak: var(--accent-weak);
58
- --color-accent-strong: var(--accent-strong);
59
- --color-accent-intense: var(--accent-intense);
60
-
61
- --color-info: var(--info);
62
- --color-info-muted: var(--info-muted);
63
- --color-info-weak: var(--info-weak);
64
- --color-info-strong: var(--info-strong);
65
- --color-info-intense: var(--info-intense);
66
-
67
- --color-success: var(--success);
68
- --color-success-muted: var(--success-muted);
69
- --color-success-weak: var(--success-weak);
70
- --color-success-strong: var(--success-strong);
71
- --color-success-intense: var(--success-intense);
72
-
73
- --color-warning: var(--warning);
74
- --color-warning-muted: var(--warning-muted);
75
- --color-warning-weak: var(--warning-weak);
76
- --color-warning-strong: var(--warning-strong);
77
- --color-warning-intense: var(--warning-intense);
78
-
79
- --color-danger: var(--danger);
80
- --color-danger-muted: var(--danger-muted);
81
- --color-danger-weak: var(--danger-weak);
82
- --color-danger-strong: var(--danger-strong);
83
- --color-danger-intense: var(--danger-intense);
84
-
85
- --color-text-positive: var(--text-positive);
86
- --color-text-positive-muted: var(--text-positive-muted);
87
- --color-text-positive-weak: var(--text-positive-weak);
88
- --color-text-positive-strong: var(--text-positive-strong);
89
- --color-text-positive-intense: var(--text-positive-intense);
90
-
91
- --color-text-negative: var(--text-negative);
92
- --color-text-negative-muted: var(--text-negative-muted);
93
- --color-text-negative-weak: var(--text-negative-weak);
94
- --color-text-negative-strong: var(--text-negative-strong);
95
- --color-text-negative-intense: var(--text-negative-intense);
96
-
97
- --color-border: var(--border);
98
- --color-border-strong: var(--border-strong);
99
- --color-border-weak: var(--border-weak);
100
- --color-border-muted: var(--border-muted);
101
-
102
- --color-input: var(--input);
103
- --color-ring: var(--ring);
104
-
105
- --color-chart-1: var(--chart-1);
106
- --color-chart-2: var(--chart-2);
107
- --color-chart-3: var(--chart-3);
108
- --color-chart-4: var(--chart-4);
109
- --color-chart-5: var(--chart-5);
110
-
111
- --color-sidebar: var(--sidebar);
112
- --color-sidebar-foreground: var(--sidebar-foreground);
113
- --color-sidebar-primary: var(--sidebar-primary);
114
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
115
- --color-sidebar-accent: var(--sidebar-accent);
116
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
117
- --color-sidebar-border: var(--sidebar-border);
118
- --color-sidebar-ring: var(--sidebar-ring);
119
-
120
- /* Effects */
121
- --shadow-btn: var(--shadow-btn);
122
- --shadow-input: var(--shadow-input);
123
- --shadow-nav: var(--shadow-nav);
124
- --shadow-card: var(--shadow-card);
125
- --shadow-dropdown: var(--shadow-dropdown);
126
- --shadow-dialog: var(--shadow-dialog);
127
- }
128
-
129
- @layer base {
130
- body {
131
- @apply text-text-positive;
132
- }
133
- }
@@ -1,24 +0,0 @@
1
- import { clsx, type ClassValue } from 'clsx'
2
- import { twMerge } from 'tailwind-merge'
3
-
4
- export const MAX_FILE_SIZE = 5 * 1024 * 1024 // 5MB
5
-
6
- export function formatBytes(
7
- bytes: number,
8
- opts: {
9
- decimals?: number
10
- sizeType?: 'accurate' | 'normal'
11
- } = {},
12
- ) {
13
- const { decimals = 0, sizeType = 'normal' } = opts
14
-
15
- const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']
16
- const accurateSizes = ['Bytes', 'KiB', 'MiB', 'GiB', 'TiB']
17
- if (bytes === 0) return '0 Byte'
18
- const i = Math.floor(Math.log(bytes) / Math.log(1024))
19
- return `${(bytes / Math.pow(1024, i)).toFixed(decimals)} ${sizeType === 'accurate' ? (accurateSizes[i] ?? 'Bytes') : (sizes[i] ?? 'Bytes')}`
20
- }
21
-
22
- export function cn(...inputs: ClassValue[]) {
23
- return twMerge(clsx(inputs))
24
- }
@@ -1,3 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs/blocks';
2
-
3
- <Meta title="Documentation" />
@@ -1,145 +0,0 @@
1
- import { Meta, Title, Subtitle, Description, ColorPalette, ColorItem } from '@storybook/addon-docs/blocks'
2
-
3
- <Meta title="Colors" />
4
-
5
- <Title>Color Palette</Title>
6
- <Subtitle>Design System Colors</Subtitle>
7
-
8
- <ColorPalette>
9
- <ColorItem title="background" colors={{ white: '#ffffff' }} />
10
- <ColorItem title="foreground" colors={{ default: 'oklch(14% 0 0)' }} />
11
- <ColorItem title="card" colors={{ white: '#ffffff' }} />
12
- <ColorItem title="card-foreground" colors={{ default: 'oklch(14% 0 286)' }} />
13
- <ColorItem title="popover" colors={{ white: '#ffffff' }} />
14
- <ColorItem title="popover-foreground" colors={{ default: 'oklch(14% 0 286)' }} />
15
- <ColorItem
16
- title="primary"
17
- colors={{
18
- muted: 'oklch(0.94 0.03 295)',
19
- weak: 'oklch(0.81 0.1 294)',
20
- default: 'oklch(0.61 0.22 293)',
21
- strong: 'oklch(0.49 0.24 293)',
22
- intense: 'oklch(0.38 0.18 294)',
23
- }}
24
- />
25
- <ColorItem
26
- title="secondary"
27
- colors={{
28
- muted: 'oklch(0.97 0 265)',
29
- weak: 'oklch(0.87 0.01 258)',
30
- default: 'oklch(0.55 0.02 264)',
31
- strong: 'oklch(0.28 0.03 257)',
32
- intense: 'oklch(0.13 0.03 262)',
33
- }}
34
- />
35
- <ColorItem
36
- title="muted"
37
- colors={{
38
- muted: 'oklch(0.97 0 286)',
39
- weak: 'oklch(0.87 0.01 286)',
40
- default: 'oklch(0.55 0.01 286)',
41
- strong: 'oklch(0.37 0.01 286)',
42
- intense: 'oklch(0.21 0.01 286)',
43
- }}
44
- />
45
- <ColorItem
46
- title="accent"
47
- colors={{
48
- muted: 'oklch(0.97 0.01 248)',
49
- weak: 'oklch(0.87 0.02 253)',
50
- default: 'oklch(0.55 0.04 257)',
51
- strong: 'oklch(0.37 0.04 257)',
52
- intense: 'oklch(0.21 0.04 266)',
53
- }}
54
- />
55
- <ColorItem
56
- title="info"
57
- colors={{
58
- muted: 'oklch(0.93 0.03 256)',
59
- weak: 'oklch(0.81 0.1 252)',
60
- default: 'oklch(0.62 0.19 260)',
61
- strong: 'oklch(0.49 0.22 264)',
62
- intense: 'oklch(0.38 0.14 266)',
63
- }}
64
- />
65
- <ColorItem
66
- title="success"
67
- colors={{
68
- muted: 'oklch(0.96 0.04 157)',
69
- weak: 'oklch(0.8 0.18 152)',
70
- default: 'oklch(0.72 0.19 150)',
71
- strong: 'oklch(0.63 0.17 149)',
72
- intense: 'oklch(0.53 0.14 150)',
73
- }}
74
- />
75
- <ColorItem
76
- title="warning"
77
- colors={{
78
- muted: 'oklch(0.96 0.06 96)',
79
- weak: 'oklch(0.84 0.16 84)',
80
- default: 'oklch(0.77 0.16 70)',
81
- strong: 'oklch(0.67 0.16 58)',
82
- intense: 'oklch(0.56 0.15 49)',
83
- }}
84
- />
85
- <ColorItem
86
- title="danger"
87
- colors={{
88
- muted: 'oklch(0.94 0.03 18)',
89
- weak: 'oklch(0.71 0.17 22)',
90
- default: 'oklch(0.64 0.21 25)',
91
- strong: 'oklch(0.58 0.22 27)',
92
- intense: 'oklch(0.51 0.19 28)',
93
- }}
94
- />
95
- <ColorItem
96
- title="text-positive"
97
- colors={{
98
- muted: 'oklch(0.87 0.01 286)',
99
- weak: 'oklch(0.55 0.01 286)',
100
- default: 'oklch(0.27 0.01 286)',
101
- strong: 'oklch(0.21 0.01 286)',
102
- intense: 'oklch(0 0 0)',
103
- }}
104
- />
105
- <ColorItem
106
- title="text-negative"
107
- colors={{
108
- muted: 'oklch(0.55 0.01 286)',
109
- weak: 'oklch(0.87 0.01 286)',
110
- default: 'oklch(0.99 0 0)',
111
- strong: 'oklch(0.99 0 0)',
112
- intense: 'oklch(1 0 0)',
113
- }}
114
- />
115
- <ColorItem
116
- title="border"
117
- colors={{
118
- muted: 'oklch(0.99 0 0)',
119
- weak: 'oklch(0.92 0 0)',
120
- default: 'oklch(0.72 0 0)',
121
- strong: 'oklch(0.37 0 0)',
122
- intense: 'oklch(0.14 0 0)',
123
- }}
124
- />
125
- <ColorItem title="input" colors={{ default: 'oklch(0.871 0.006 286.286)' }} />
126
- <ColorItem title="ring" colors={{ default: 'oklch(0.81 0.1 294)' }} />
127
- <ColorItem
128
- title="chart"
129
- colors={{
130
- 1: 'oklch(0.646 0.222 41.116)',
131
- 2: 'oklch(0.6 0.118 184.704)',
132
- 3: 'oklch(0.398 0.07 227.392)',
133
- 4: 'oklch(0.828 0.189 84.429)',
134
- 5: 'oklch(0.769 0.188 70.08)',
135
- }}
136
- />
137
- <ColorItem title="sidebar" colors={{ default: 'oklch(0.97 0 286)' }} />
138
- <ColorItem title="sidebar-foreground" colors={{ default: 'oklch(0.28 0.04 260.03)' }} />
139
- <ColorItem title="sidebar-border" colors={{ default: 'oklch(0.92 0.004 286.32)' }} />
140
- <ColorItem title="sidebar-ring" colors={{ default: 'oklch(0.871 0.006 286.286)' }} />
141
- <ColorItem title="sidebar-primary" colors={{ default: 'oklch(0.59 0.2 277.12)' }} />
142
- <ColorItem title="sidebar-primary-foreground" colors={{ default: 'oklch(1 0 0)' }} />
143
- <ColorItem title="sidebar-accent" colors={{ default: 'oklch(0.967 0.001 286.375)' }} />
144
- <ColorItem title="sidebar-accent-foreground" colors={{ default: 'oklch(0.21 0.006 285.885)' }} />
145
- </ColorPalette>
@@ -1,51 +0,0 @@
1
- import { Meta, Typeset } from '@storybook/addon-docs/blocks';
2
-
3
- <Meta title="Typography" />
4
-
5
- export const typography = {
6
- type: {
7
- primary: '"Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',
8
- },
9
- weight: {
10
- regular: '400',
11
- bold: '700',
12
- extrabold: '800',
13
- black: '900',
14
- },
15
- size: {
16
- s1: 12,
17
- s2: 14,
18
- s3: 16,
19
- m1: 20,
20
- m2: 24,
21
- m3: 28,
22
- l1: 32,
23
- l2: 40,
24
- l3: 48,
25
- },
26
- };
27
-
28
- export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
29
-
30
- # Typography
31
-
32
- **Font:** Nunito Sans
33
-
34
- **Weights:** 400(regular), 700(bold), 800(extrabold), 900(black)
35
-
36
- <Typeset
37
- fontSizes={[
38
- Number(typography.size.s1),
39
- Number(typography.size.s2),
40
- Number(typography.size.s3),
41
- Number(typography.size.m1),
42
- Number(typography.size.m2),
43
- Number(typography.size.m3),
44
- Number(typography.size.l1),
45
- Number(typography.size.l2),
46
- Number(typography.size.l3),
47
- ]}
48
- fontWeight={typography.weight.black}
49
- sampleText={SampleText}
50
- fontFamily={typography.type.primary}
51
- />
@@ -1,24 +0,0 @@
1
- import { SimpleCard } from '@/components/cards/simple-card'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Cards/SimpleCard',
7
- component: SimpleCard,
8
- } satisfies Meta<typeof SimpleCard>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof SimpleCard>
12
-
13
- export const Default: Story = {
14
- args: {
15
- title: 'Card Title',
16
- description: 'This is a simple card description.',
17
- children: (
18
- <div>
19
- <p>This is the content of the card.</p>
20
- <p>You can put any React elements here.</p>
21
- </div>
22
- ),
23
- },
24
- }
@@ -1,22 +0,0 @@
1
- import { DataList, DataListItem } from '@/components/data-display/data-list'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Data Display/Data List',
7
- component: DataList,
8
- } satisfies Meta<typeof DataList>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- render: () => (
15
- <DataList title="Product Details">
16
- <DataListItem label="Name" value="Sample Product" />
17
- <DataListItem label="Description" value="This is a sample product description." />
18
- <DataListItem label="Price" value="$19.99" />
19
- <DataListItem label="Stock" value={100} />
20
- </DataList>
21
- ),
22
- }
@@ -1,13 +0,0 @@
1
- import { EmptyDisplay } from '@/components/data-display/empty'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Data Display/Empty',
7
- component: EmptyDisplay,
8
- } satisfies Meta<typeof EmptyDisplay>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {}
@@ -1,27 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite'
2
- import { FormDialog } from '@/components/dialogs/form-dialog'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Dialogs/FormDialog',
7
- component: FormDialog,
8
- } satisfies Meta<typeof FormDialog>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- form: {
16
- defaultValues: {},
17
- },
18
- open: false,
19
- onOpenChange: (open: boolean) => {
20
- console.log('Dialog open state changed:', open)
21
- },
22
- onSubmit: (data) => {
23
- console.log('Form submitted with data:', data)
24
- },
25
- children: <div className="flex h-10 items-center justify-center">Content</div>,
26
- },
27
- }
@@ -1,25 +0,0 @@
1
- import { NameDisplay } from '@/components/data-display/name'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Data Display/Name Display',
7
- component: NameDisplay,
8
- } satisfies Meta<typeof NameDisplay>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- name: 'John Doe',
16
- },
17
- render: (args) => <NameDisplay {...args} />,
18
- }
19
-
20
- export const LongName: Story = {
21
- args: {
22
- name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
23
- },
24
- render: (args) => <NameDisplay {...args} />,
25
- }
@@ -1,17 +0,0 @@
1
- import { PhoneNumberDisplay } from '@/components/data-display/phone-number'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Data Display/Phone Number',
7
- component: PhoneNumberDisplay,
8
- } satisfies Meta<typeof PhoneNumberDisplay>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- value: '1234567890',
16
- },
17
- }
@@ -1,41 +0,0 @@
1
- import { Statistic } from '@/components/data-display/statistic'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Data Display/Statistic',
7
- component: Statistic,
8
- } satisfies Meta<typeof Statistic>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof Statistic>
12
-
13
- export const Default: Story = {
14
- args: {
15
- value: 1234567.123,
16
- },
17
- }
18
-
19
- export const WithPrefixAndSuffix: Story = {
20
- args: {
21
- value: 1234567.123,
22
- prefix: '$',
23
- suffix: 'USD',
24
- },
25
- }
26
-
27
- export const WithRounding: Story = {
28
- args: {
29
- value: 1234.56789,
30
- precision: 2,
31
- roundingMode: 'floor',
32
- },
33
- }
34
-
35
- export const WithCustomDecimalAndGroupSeparators: Story = {
36
- args: {
37
- value: 1234.5,
38
- precision: 2,
39
- showTrailingZeros: true,
40
- },
41
- }
@@ -1,26 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite'
2
- import { ConfirmDialog } from '@/components/dialogs/confirm-dialog'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Dialogs/ConfirmDialog',
7
- component: ConfirmDialog,
8
- } satisfies Meta<typeof ConfirmDialog>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- open: false,
16
- isLoading: false,
17
- title: 'Confirm Action',
18
- description: 'Are you sure you want to proceed with this action?',
19
- onOpenChange: (open) => console.log('Dialog open state:', open),
20
- },
21
- render: (args) => (
22
- <ConfirmDialog {...args}>
23
- <p>This is a custom content inside the dialog.</p>
24
- </ConfirmDialog>
25
- ),
26
- }
@@ -1,34 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite'
2
- import { DetailDialog } from '@/components/dialogs/detail-dialog'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Dialogs/DetailDialog',
7
- component: DetailDialog,
8
- } satisfies Meta<typeof DetailDialog>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- open: true,
16
- isLoading: false,
17
- sidebar: (
18
- <div className="p-4">
19
- <h2 className="text-lg font-semibold">Sidebar Content</h2>
20
- <p>This is some content in the sidebar.</p>
21
- </div>
22
- ),
23
- title: 'Detail Dialog Title',
24
- sidebarTitle: 'Sidebar Title',
25
- createdAt: new Date(),
26
- onOpenChange: (open: boolean) => console.log('Dialog open state changed:', open),
27
- children: (
28
- <>
29
- <p className="p-4">This is the content of the detail dialog.</p>
30
- <p className="p-4">You can add more content here as needed.</p>
31
- </>
32
- ),
33
- },
34
- }
@@ -1,27 +0,0 @@
1
- import { ErrorDialog } from '@/components/dialogs/error-dialog'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- tags: ['autodocs'],
6
- title: 'Dialogs/ErrorDialog',
7
- component: ErrorDialog,
8
- } satisfies Meta<typeof ErrorDialog>
9
-
10
- export default meta
11
- type Story = StoryObj<typeof meta>
12
-
13
- export const Default: Story = {
14
- args: {
15
- open: false,
16
- title: 'An error occurred',
17
- description: 'An unexpected error has occurred. Please try again later.',
18
- children: <p className="text-muted-foreground text-sm">If the problem persists, please contact support or check the system status for more information.</p>,
19
- },
20
- render: (args) => {
21
- return (
22
- <div className="grid w-full max-w-xl items-start gap-4">
23
- <ErrorDialog {...args} />
24
- </div>
25
- )
26
- },
27
- }
@@ -1,16 +0,0 @@
1
- import { LoadingDialog } from '@/components/dialogs/loading-dialog'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- const meta = {
5
- title: 'Dialogs/LoadingDialog',
6
- component: LoadingDialog,
7
- tags: ['autodocs'],
8
- } satisfies Meta<typeof LoadingDialog>
9
- export default meta
10
-
11
- type Story = StoryObj<typeof meta>
12
- export const Default: Story = {
13
- args: {
14
- open: true,
15
- },
16
- }
@@ -1,38 +0,0 @@
1
- import { useForm } from 'react-hook-form'
2
- import type { Meta, StoryObj } from '@storybook/react-vite'
3
-
4
- import { ComboboxField } from '@/components/forms/combobox-field'
5
- import { Form } from '@/components/ui/form'
6
-
7
- const meta = {
8
- tags: ['autodocs'],
9
- title: 'Forms/ComboboxField',
10
- component: ComboboxField,
11
- } satisfies Meta<typeof ComboboxField>
12
- export default meta
13
- type Story = StoryObj<typeof meta>
14
-
15
- export const Default: Story = {
16
- args: {
17
- name: 'combobox',
18
- options: [
19
- { value: 'option1', label: 'Option 1' },
20
- { value: 'option2', label: 'Option 2' },
21
- { value: 'option3', label: 'Option 3' },
22
- ],
23
- },
24
- render: (args) => {
25
- const form = useForm({
26
- defaultValues: {
27
- combobox: '',
28
- },
29
- })
30
- return (
31
- <div className="w-80">
32
- <Form {...form}>
33
- <ComboboxField {...args} />
34
- </Form>
35
- </div>
36
- )
37
- },
38
- }