@customafk/lunas-ui 0.0.25 → 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.
- package/dist/{alert-dialog-D-oR0YW3.cjs → alert-dialog-26JyobJb.cjs} +1 -1
- package/dist/{alert-dialog-D-oR0YW3.cjs.map → alert-dialog-26JyobJb.cjs.map} +1 -1
- package/dist/{alert-dialog-CNHyP_A9.js → alert-dialog-Dv0cgymS.js} +1 -1
- package/dist/{alert-dialog-CNHyP_A9.js.map → alert-dialog-Dv0cgymS.js.map} +1 -1
- package/dist/{button-BmBtMriU.d.ts → button-CPBLm_02.d.ts} +5 -5
- package/dist/{button-tCnJHt8O.d.cts → button-ghXW1WTr.d.cts} +5 -5
- package/dist/{calendar-CbuOOMpK.js → calendar-B66UT_fu.js} +1 -1
- package/dist/{calendar-CbuOOMpK.js.map → calendar-B66UT_fu.js.map} +1 -1
- package/dist/{calendar-B8IKzrdN.cjs → calendar-DXegnGRJ.cjs} +1 -1
- package/dist/{calendar-B8IKzrdN.cjs.map → calendar-DXegnGRJ.cjs.map} +1 -1
- package/dist/{command-Dr2XmKV6.d.cts → command-CE_Qcgo7.d.ts} +12 -12
- package/dist/{command-Dvq-HZwH.d.ts → command-CiEjoEnP.d.cts} +12 -12
- package/dist/{command-TFZwJmux.js → command-Dbkg10QA.js} +2 -2
- package/dist/{command-TFZwJmux.js.map → command-Dbkg10QA.js.map} +1 -1
- package/dist/{command-CoB5R5FI.cjs → command-IL3ogESu.cjs} +2 -2
- package/dist/{command-CoB5R5FI.cjs.map → command-IL3ogESu.cjs.map} +1 -1
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-CSDDiHKO.js → dialog-BEdMA5Lp.js} +1 -1
- package/dist/{dialog-CSDDiHKO.js.map → dialog-BEdMA5Lp.js.map} +1 -1
- package/dist/{dialog-C-DYoapJ.d.ts → dialog-Bw_T5aco.d.cts} +12 -12
- package/dist/{dialog-_Cgij9NP.cjs → dialog-C4oHnJNN.cjs} +1 -1
- package/dist/{dialog-_Cgij9NP.cjs.map → dialog-C4oHnJNN.cjs.map} +1 -1
- package/dist/{dialog-CA0E_tNX.d.cts → dialog-CoH1pTBH.d.ts} +12 -12
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.js +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +4 -4
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +28 -28
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.js +1 -1
- package/dist/{error-dialog-D5R5le-W.cjs → error-dialog-C0PDn-pj.cjs} +2 -2
- package/dist/{error-dialog-D5R5le-W.cjs.map → error-dialog-C0PDn-pj.cjs.map} +1 -1
- package/dist/{error-dialog-Q99thrSD.js → error-dialog-CCdQ8zbQ.js} +2 -2
- package/dist/{error-dialog-Q99thrSD.js.map → error-dialog-CCdQ8zbQ.js.map} +1 -1
- package/dist/{form-wrapper-CY-stRaQ.cjs → form-wrapper-Cd8c5MIL.cjs} +2 -2
- package/dist/{form-wrapper-CY-stRaQ.cjs.map → form-wrapper-Cd8c5MIL.cjs.map} +1 -1
- package/dist/{form-wrapper-C2xlvWx0.js → form-wrapper-DntbFqN1.js} +2 -2
- package/dist/{form-wrapper-C2xlvWx0.js.map → form-wrapper-DntbFqN1.js.map} +1 -1
- package/dist/forms/combobox-field.cjs +1 -1
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/combobox-field.js +1 -1
- package/dist/forms/date-field.cjs +1 -1
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/date-field.js +1 -1
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/form-wrapper.js +1 -1
- package/dist/forms/multi-select-field.cjs +1 -1
- package/dist/forms/multi-select-field.cjs.map +1 -1
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/multi-select-field.js +1 -1
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-CjNcnHb_.d.ts → input-CUDclgoU.d.ts} +3 -3
- package/dist/{input-BsXm0_Iq.d.cts → input-y_n-XGys.d.cts} +3 -3
- package/dist/layouts/app-layout/index.d.cts +5 -5
- package/dist/layouts/app-layout/index.d.ts +3 -3
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.ts +4 -4
- package/dist/layouts/main/index.d.cts +4 -4
- package/dist/layouts/main/index.d.ts +4 -4
- package/dist/{multi-select-Cjvm4tK5.cjs → multi-select-3yxD9gbY.cjs} +2 -2
- package/dist/{multi-select-Cjvm4tK5.cjs.map → multi-select-3yxD9gbY.cjs.map} +1 -1
- package/dist/{multi-select-D0bZVOnm.js → multi-select-Cb07NlA7.js} +2 -2
- package/dist/{multi-select-D0bZVOnm.js.map → multi-select-Cb07NlA7.js.map} +1 -1
- package/dist/{popover-CTFp7ZXi.js → popover-CqAD7HNo.js} +1 -1
- package/dist/{popover-CTFp7ZXi.js.map → popover-CqAD7HNo.js.map} +1 -1
- package/dist/{popover-DCcPvdz2.cjs → popover-Dd0acCEk.cjs} +1 -1
- package/dist/{popover-DCcPvdz2.cjs.map → popover-Dd0acCEk.cjs.map} +1 -1
- package/dist/{separator-5FdzRGaJ.d.ts → separator-BLYi41aC.d.ts} +3 -3
- package/dist/{separator-DpxrpK_H.d.cts → separator-ClGBPiYE.d.cts} +3 -3
- package/dist/table/index.d.cts +2 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/{toggle-Cx9H5u3p.d.cts → toggle-BWQWsKMA.d.ts} +4 -4
- package/dist/{toggle-DH9IssyE.d.ts → toggle-DnGvFJh8.d.cts} +4 -4
- package/dist/{tooltip-Djh_dcy5.d.ts → tooltip-Bk8VwHdM.d.ts} +6 -6
- package/dist/{tooltip-BAtWdJyX.d.cts → tooltip-cisSpCHG.d.cts} +6 -6
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.d.cts +6 -6
- package/dist/ui/alert.d.ts +6 -6
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/calendar.js +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.d.cts +1 -1
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/multi-select.js +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.d.cts +30 -30
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +2 -2
- package/styles/base.css +29 -0
- package/styles/loader.css +113 -0
- package/styles/theme.css +104 -0
- package/styles/typography.css +6 -0
- package/packages/components/cards/simple-card.tsx +0 -23
- package/packages/components/data-display/country.tsx +0 -53
- package/packages/components/data-display/data-list.tsx +0 -29
- package/packages/components/data-display/date-tooltip.tsx +0 -23
- package/packages/components/data-display/date.tsx +0 -157
- package/packages/components/data-display/empty.tsx +0 -13
- package/packages/components/data-display/name.tsx +0 -23
- package/packages/components/data-display/phone-number.tsx +0 -14
- package/packages/components/data-display/role-badge.tsx +0 -29
- package/packages/components/data-display/statistic.tsx +0 -139
- package/packages/components/dialogs/confirm-dialog.tsx +0 -44
- package/packages/components/dialogs/detail-dialog/component/header.tsx +0 -10
- package/packages/components/dialogs/detail-dialog/component/main.tsx +0 -35
- package/packages/components/dialogs/detail-dialog/component/sidebar.tsx +0 -618
- package/packages/components/dialogs/detail-dialog/component/wrapper.tsx +0 -15
- package/packages/components/dialogs/detail-dialog/index.tsx +0 -91
- package/packages/components/dialogs/error-dialog.tsx +0 -34
- package/packages/components/dialogs/form-dialog.tsx +0 -74
- package/packages/components/dialogs/loading-dialog.tsx +0 -20
- package/packages/components/forms/combobox-field.tsx +0 -104
- package/packages/components/forms/date-field.tsx +0 -62
- package/packages/components/forms/form-wrapper.tsx +0 -120
- package/packages/components/forms/multi-select-field.tsx +0 -56
- package/packages/components/forms/number-field.tsx +0 -54
- package/packages/components/forms/password-field.tsx +0 -38
- package/packages/components/forms/select-field.tsx +0 -58
- package/packages/components/forms/switch-field.tsx +0 -40
- package/packages/components/forms/text-field.tsx +0 -73
- package/packages/components/forms/textarea-field.tsx +0 -45
- package/packages/components/index.tsx +0 -0
- package/packages/components/layouts/app-layout/index.tsx +0 -74
- package/packages/components/layouts/app-layout/sidebar.tsx +0 -663
- package/packages/components/layouts/flex.tsx +0 -99
- package/packages/components/layouts/main/content.tsx +0 -11
- package/packages/components/layouts/main/header.tsx +0 -41
- package/packages/components/layouts/main/index.tsx +0 -3
- package/packages/components/layouts/main/wrapper.tsx +0 -5
- package/packages/components/table/data-table-pagination.tsx +0 -70
- package/packages/components/table/data-table.tsx +0 -241
- package/packages/components/table/index.tsx +0 -107
- package/packages/components/typography/paragraph.tsx +0 -29
- package/packages/components/typography/title.tsx +0 -31
- package/packages/components/ui/alert-dialog.tsx +0 -99
- package/packages/components/ui/alert.tsx +0 -44
- package/packages/components/ui/aspect-ratio.tsx +0 -11
- package/packages/components/ui/avatar.tsx +0 -25
- package/packages/components/ui/badge.tsx +0 -57
- package/packages/components/ui/breadcrumb.tsx +0 -74
- package/packages/components/ui/button.tsx +0 -205
- package/packages/components/ui/buttons/add-new.tsx +0 -19
- package/packages/components/ui/buttons/edit.tsx +0 -14
- package/packages/components/ui/buttons/refresh.tsx +0 -19
- package/packages/components/ui/buttons/trash.tsx +0 -14
- package/packages/components/ui/buttons/upload-image.tsx +0 -25
- package/packages/components/ui/calendar.tsx +0 -141
- package/packages/components/ui/card.tsx +0 -44
- package/packages/components/ui/carousel.tsx +0 -187
- package/packages/components/ui/checkbox.tsx +0 -34
- package/packages/components/ui/collapsible.tsx +0 -17
- package/packages/components/ui/command.tsx +0 -138
- package/packages/components/ui/context-menu.tsx +0 -196
- package/packages/components/ui/dialog.tsx +0 -119
- package/packages/components/ui/dropdown-menu.tsx +0 -249
- package/packages/components/ui/file-uploader.tsx +0 -314
- package/packages/components/ui/form.tsx +0 -104
- package/packages/components/ui/hover-card.tsx +0 -32
- package/packages/components/ui/input-otp.tsx +0 -67
- package/packages/components/ui/input.tsx +0 -59
- package/packages/components/ui/inputs/number-input.tsx +0 -317
- package/packages/components/ui/inputs/password-input.tsx +0 -29
- package/packages/components/ui/inputs/search-input.tsx +0 -24
- package/packages/components/ui/label.tsx +0 -26
- package/packages/components/ui/menubar.tsx +0 -212
- package/packages/components/ui/multi-select.tsx +0 -626
- package/packages/components/ui/navigation-menu.tsx +0 -124
- package/packages/components/ui/pagination.tsx +0 -70
- package/packages/components/ui/popover.tsx +0 -49
- package/packages/components/ui/progress.tsx +0 -19
- package/packages/components/ui/radio-group.tsx +0 -36
- package/packages/components/ui/resizable.tsx +0 -47
- package/packages/components/ui/scroll-area.tsx +0 -35
- package/packages/components/ui/select.tsx +0 -199
- package/packages/components/ui/separator.tsx +0 -25
- package/packages/components/ui/sheet.tsx +0 -119
- package/packages/components/ui/sidebar.tsx +0 -675
- package/packages/components/ui/skeleton.tsx +0 -8
- package/packages/components/ui/slider.tsx +0 -45
- package/packages/components/ui/sonner.tsx +0 -40
- package/packages/components/ui/switch.tsx +0 -46
- package/packages/components/ui/table.tsx +0 -66
- package/packages/components/ui/tabs.tsx +0 -53
- package/packages/components/ui/textarea.tsx +0 -46
- package/packages/components/ui/toggle-group.tsx +0 -63
- package/packages/components/ui/toggle.tsx +0 -34
- package/packages/components/ui/tooltip.tsx +0 -53
- package/packages/constants.tsx +0 -45
- package/packages/hooks/use-callback-ref.ts +0 -22
- package/packages/hooks/use-controllable-state.ts +0 -58
- package/packages/hooks/use-mobile.ts +0 -19
- package/packages/index.css +0 -133
- package/packages/lib/utils.ts +0 -24
- package/packages/stories/1.Guideline.mdx +0 -3
- package/packages/stories/2.Colors.mdx +0 -145
- package/packages/stories/3.Pypography.mdx +0 -51
- package/packages/stories/cards/simple-card.stories.tsx +0 -24
- package/packages/stories/data-display/data-list.stories.tsx +0 -22
- package/packages/stories/data-display/empty.stories.tsx +0 -13
- package/packages/stories/data-display/form-dialog.stories.tsx +0 -27
- package/packages/stories/data-display/name.stories.tsx +0 -25
- package/packages/stories/data-display/phone-number.stories.tsx +0 -17
- package/packages/stories/data-display/statistic.stories.tsx +0 -41
- package/packages/stories/dialogs/confirm-dialog.stories.tsx +0 -26
- package/packages/stories/dialogs/detail-dialog.stories.tsx +0 -34
- package/packages/stories/dialogs/error-dialog.stories.tsx +0 -27
- package/packages/stories/dialogs/loading-dialog.stories.tsx +0 -16
- package/packages/stories/forms/combobox-field.stories.tsx +0 -38
- package/packages/stories/forms/form-wrapper.stories.tsx +0 -59
- package/packages/stories/forms/multi-select-field.stories.tsx +0 -42
- package/packages/stories/forms/number-field.stories.tsx +0 -35
- package/packages/stories/forms/select-field.stories.tsx +0 -39
- package/packages/stories/forms/switch-field.stories.tsx +0 -36
- package/packages/stories/forms/text-field.stories.tsx +0 -41
- package/packages/stories/forms/textarea-field.stories.tsx +0 -34
- package/packages/stories/layouts/app-layout.stories.tsx +0 -49
- package/packages/stories/typography/paragraph.stories.tsx +0 -45
- package/packages/stories/typography/title.stories.tsx +0 -39
- package/packages/stories/ui/alert-dialog.stories.tsx +0 -49
- package/packages/stories/ui/alert.stories.tsx +0 -63
- package/packages/stories/ui/aspect-ratio.stories.tsx +0 -22
- package/packages/stories/ui/badge.stories.tsx +0 -170
- package/packages/stories/ui/breadcrumb.stories.tsx +0 -172
- package/packages/stories/ui/button.stories.tsx +0 -181
- package/packages/stories/ui/card.stories.tsx +0 -58
- package/packages/stories/ui/checkbox.stories.tsx +0 -48
- package/packages/stories/ui/command.stories.tsx +0 -58
- package/packages/stories/ui/dialog.stories.tsx +0 -55
- package/packages/stories/ui/dropdown-menu.stories.tsx +0 -89
- package/packages/stories/ui/file-uploader.stories.tsx +0 -18
- package/packages/stories/ui/input.stories.tsx +0 -38
- package/packages/stories/ui/label.stories.tsx +0 -17
- package/packages/stories/ui/multi-select.stories.tsx +0 -29
- package/packages/stories/ui/popover.stories.tsx +0 -52
- package/packages/stories/ui/progress.stories.tsx +0 -17
- package/packages/stories/ui/radio-group.stories.tsx +0 -31
- package/packages/stories/ui/select.stories.tsx +0 -31
- package/packages/stories/ui/separator.stories.tsx +0 -31
- package/packages/stories/ui/sheet.stories.tsx +0 -50
- package/packages/stories/ui/skeleton.stories.tsx +0 -27
- package/packages/stories/ui/switch.stories.tsx +0 -21
- package/packages/stories/ui/table.stories.tsx +0 -82
- package/packages/stories/ui/tabs.stories.tsx +0 -70
- package/packages/stories/ui/textarea.stories.tsx +0 -15
- package/packages/stories/ui/toaster.stories.tsx +0 -87
- package/packages/types.ts +0 -50
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Button } from '@/components/ui/button'
|
|
2
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog'
|
|
3
|
-
import { Input } from '@/components/ui/input'
|
|
4
|
-
import { Label } from '@/components/ui/label'
|
|
5
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
title: 'Components/Dialog',
|
|
9
|
-
component: Dialog,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
} satisfies Meta<typeof Dialog>
|
|
12
|
-
|
|
13
|
-
export default meta
|
|
14
|
-
type Story = StoryObj<typeof meta>
|
|
15
|
-
|
|
16
|
-
export const Default: Story = {
|
|
17
|
-
args: {},
|
|
18
|
-
render: () => {
|
|
19
|
-
return (
|
|
20
|
-
<Dialog>
|
|
21
|
-
<form>
|
|
22
|
-
<DialogTrigger asChild>
|
|
23
|
-
<Button variant="outline" color="muted">
|
|
24
|
-
Open Dialog
|
|
25
|
-
</Button>
|
|
26
|
-
</DialogTrigger>
|
|
27
|
-
<DialogContent className="sm:max-w-[425px]">
|
|
28
|
-
<DialogHeader>
|
|
29
|
-
<DialogTitle>Edit profile</DialogTitle>
|
|
30
|
-
<DialogDescription>Make changes to your profile here. Click save when you're done.</DialogDescription>
|
|
31
|
-
</DialogHeader>
|
|
32
|
-
<div className="grid gap-4">
|
|
33
|
-
<div className="grid gap-3">
|
|
34
|
-
<Label htmlFor="name-1">Name</Label>
|
|
35
|
-
<Input id="name-1" name="name" defaultValue="Pedro Duarte" />
|
|
36
|
-
</div>
|
|
37
|
-
<div className="grid gap-3">
|
|
38
|
-
<Label htmlFor="username-1">Username</Label>
|
|
39
|
-
<Input id="username-1" name="username" defaultValue="@peduarte" />
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
<DialogFooter>
|
|
43
|
-
<DialogClose asChild>
|
|
44
|
-
<Button variant="outline" color="muted">
|
|
45
|
-
Cancel
|
|
46
|
-
</Button>
|
|
47
|
-
</DialogClose>
|
|
48
|
-
<Button type="submit">Save changes</Button>
|
|
49
|
-
</DialogFooter>
|
|
50
|
-
</DialogContent>
|
|
51
|
-
</form>
|
|
52
|
-
</Dialog>
|
|
53
|
-
)
|
|
54
|
-
},
|
|
55
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Button } from '@/components/ui/button'
|
|
2
|
-
import {
|
|
3
|
-
DropdownMenu,
|
|
4
|
-
DropdownMenuContent,
|
|
5
|
-
DropdownMenuGroup,
|
|
6
|
-
DropdownMenuItem,
|
|
7
|
-
DropdownMenuLabel,
|
|
8
|
-
DropdownMenuPortal,
|
|
9
|
-
DropdownMenuSeparator,
|
|
10
|
-
DropdownMenuShortcut,
|
|
11
|
-
DropdownMenuSub,
|
|
12
|
-
DropdownMenuSubContent,
|
|
13
|
-
DropdownMenuSubTrigger,
|
|
14
|
-
DropdownMenuTrigger,
|
|
15
|
-
} from '@/components/ui/dropdown-menu'
|
|
16
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
17
|
-
|
|
18
|
-
const meta = {
|
|
19
|
-
title: 'Components/DropdownMenu',
|
|
20
|
-
component: DropdownMenu,
|
|
21
|
-
tags: ['autodocs'],
|
|
22
|
-
} satisfies Meta<typeof DropdownMenu>
|
|
23
|
-
|
|
24
|
-
export default meta
|
|
25
|
-
type Story = StoryObj<typeof meta>
|
|
26
|
-
|
|
27
|
-
export const Default: Story = {
|
|
28
|
-
args: {},
|
|
29
|
-
render: () => {
|
|
30
|
-
return (
|
|
31
|
-
<DropdownMenu>
|
|
32
|
-
<DropdownMenuTrigger asChild>
|
|
33
|
-
<Button variant="outline" color="muted" className="w-24">
|
|
34
|
-
Open
|
|
35
|
-
</Button>
|
|
36
|
-
</DropdownMenuTrigger>
|
|
37
|
-
<DropdownMenuContent className="w-56" align="start">
|
|
38
|
-
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
|
39
|
-
<DropdownMenuGroup>
|
|
40
|
-
<DropdownMenuItem>
|
|
41
|
-
Profile
|
|
42
|
-
<DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>
|
|
43
|
-
</DropdownMenuItem>
|
|
44
|
-
<DropdownMenuItem>
|
|
45
|
-
Billing
|
|
46
|
-
<DropdownMenuShortcut>⌘B</DropdownMenuShortcut>
|
|
47
|
-
</DropdownMenuItem>
|
|
48
|
-
<DropdownMenuItem>
|
|
49
|
-
Settings
|
|
50
|
-
<DropdownMenuShortcut>⌘S</DropdownMenuShortcut>
|
|
51
|
-
</DropdownMenuItem>
|
|
52
|
-
<DropdownMenuItem>
|
|
53
|
-
Keyboard shortcuts
|
|
54
|
-
<DropdownMenuShortcut>⌘K</DropdownMenuShortcut>
|
|
55
|
-
</DropdownMenuItem>
|
|
56
|
-
</DropdownMenuGroup>
|
|
57
|
-
<DropdownMenuSeparator />
|
|
58
|
-
<DropdownMenuGroup>
|
|
59
|
-
<DropdownMenuItem>Team</DropdownMenuItem>
|
|
60
|
-
<DropdownMenuSub>
|
|
61
|
-
<DropdownMenuSubTrigger>Invite users</DropdownMenuSubTrigger>
|
|
62
|
-
<DropdownMenuPortal>
|
|
63
|
-
<DropdownMenuSubContent>
|
|
64
|
-
<DropdownMenuItem>Email</DropdownMenuItem>
|
|
65
|
-
<DropdownMenuItem>Message</DropdownMenuItem>
|
|
66
|
-
<DropdownMenuSeparator />
|
|
67
|
-
<DropdownMenuItem>More...</DropdownMenuItem>
|
|
68
|
-
</DropdownMenuSubContent>
|
|
69
|
-
</DropdownMenuPortal>
|
|
70
|
-
</DropdownMenuSub>
|
|
71
|
-
<DropdownMenuItem>
|
|
72
|
-
New Team
|
|
73
|
-
<DropdownMenuShortcut>⌘+T</DropdownMenuShortcut>
|
|
74
|
-
</DropdownMenuItem>
|
|
75
|
-
</DropdownMenuGroup>
|
|
76
|
-
<DropdownMenuSeparator />
|
|
77
|
-
<DropdownMenuItem>GitHub</DropdownMenuItem>
|
|
78
|
-
<DropdownMenuItem>Support</DropdownMenuItem>
|
|
79
|
-
<DropdownMenuItem disabled>API</DropdownMenuItem>
|
|
80
|
-
<DropdownMenuSeparator />
|
|
81
|
-
<DropdownMenuItem>
|
|
82
|
-
Log out
|
|
83
|
-
<DropdownMenuShortcut>⇧⌘Q</DropdownMenuShortcut>
|
|
84
|
-
</DropdownMenuItem>
|
|
85
|
-
</DropdownMenuContent>
|
|
86
|
-
</DropdownMenu>
|
|
87
|
-
)
|
|
88
|
-
},
|
|
89
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FileUploader } from '@/components/ui/file-uploader'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/FileUploader',
|
|
7
|
-
component: FileUploader,
|
|
8
|
-
} satisfies Meta<typeof FileUploader>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
args: {
|
|
15
|
-
maxFileCount: 10,
|
|
16
|
-
onValueChange: (value) => console.log('onValueChange', value),
|
|
17
|
-
},
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Input } from '@/components/ui/input'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/Input',
|
|
7
|
-
component: Input,
|
|
8
|
-
} satisfies Meta<typeof Input>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
args: {
|
|
15
|
-
placeholder: 'Enter text here',
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const FileInput: Story = {
|
|
20
|
-
args: {
|
|
21
|
-
type: 'file',
|
|
22
|
-
placeholder: 'Upload a file',
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const Error: Story = {
|
|
27
|
-
args: {
|
|
28
|
-
placeholder: 'Error input',
|
|
29
|
-
'aria-invalid': true,
|
|
30
|
-
},
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const Disabled: Story = {
|
|
34
|
-
args: {
|
|
35
|
-
placeholder: 'Disabled input',
|
|
36
|
-
disabled: true,
|
|
37
|
-
},
|
|
38
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Label } from '@/components/ui/label'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/Label',
|
|
7
|
-
component: Label,
|
|
8
|
-
} satisfies Meta<typeof Label>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
args: {
|
|
15
|
-
children: 'Label',
|
|
16
|
-
},
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MultipleSelector } from '@/components/ui/multi-select'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof MultipleSelector> = {
|
|
5
|
-
title: 'Components/MultiSelect',
|
|
6
|
-
component: MultipleSelector,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
args: {
|
|
15
|
-
options: [
|
|
16
|
-
{ label: 'Option 1', value: 'option1' },
|
|
17
|
-
{ label: 'Option 2', value: 'option2' },
|
|
18
|
-
{ label: 'Option 3', value: 'option3' },
|
|
19
|
-
],
|
|
20
|
-
placeholder: 'Select options',
|
|
21
|
-
className: 'w-64',
|
|
22
|
-
onChange: (selectedOptions) => {
|
|
23
|
-
console.log('Selected options:', selectedOptions)
|
|
24
|
-
},
|
|
25
|
-
onAddNewItem: () => {
|
|
26
|
-
console.log('New item added:')
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Button } from '@/components/ui/button'
|
|
2
|
-
import { Input } from '@/components/ui/input'
|
|
3
|
-
import { Label } from '@/components/ui/label'
|
|
4
|
-
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
|
|
5
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
title: 'Components/Popover',
|
|
10
|
-
component: Popover,
|
|
11
|
-
} satisfies Meta<typeof Popover>
|
|
12
|
-
|
|
13
|
-
export default meta
|
|
14
|
-
type Story = StoryObj<typeof meta>
|
|
15
|
-
|
|
16
|
-
export const Default: Story = {
|
|
17
|
-
render: () => (
|
|
18
|
-
<Popover>
|
|
19
|
-
<PopoverTrigger asChild>
|
|
20
|
-
<Button variant="outline" color="muted">
|
|
21
|
-
Open popover
|
|
22
|
-
</Button>
|
|
23
|
-
</PopoverTrigger>
|
|
24
|
-
<PopoverContent className="w-80">
|
|
25
|
-
<div className="grid gap-4">
|
|
26
|
-
<div className="space-y-2">
|
|
27
|
-
<h4 className="leading-none font-medium">Dimensions</h4>
|
|
28
|
-
<p className="text-muted-foreground text-sm">Set the dimensions for the layer.</p>
|
|
29
|
-
</div>
|
|
30
|
-
<div className="grid gap-2">
|
|
31
|
-
<div className="grid grid-cols-3 items-center gap-4">
|
|
32
|
-
<Label htmlFor="width">Width</Label>
|
|
33
|
-
<Input id="width" defaultValue="100%" className="col-span-2 h-8" />
|
|
34
|
-
</div>
|
|
35
|
-
<div className="grid grid-cols-3 items-center gap-4">
|
|
36
|
-
<Label htmlFor="maxWidth">Max. width</Label>
|
|
37
|
-
<Input id="maxWidth" defaultValue="300px" className="col-span-2 h-8" />
|
|
38
|
-
</div>
|
|
39
|
-
<div className="grid grid-cols-3 items-center gap-4">
|
|
40
|
-
<Label htmlFor="height">Height</Label>
|
|
41
|
-
<Input id="height" defaultValue="25px" className="col-span-2 h-8" />
|
|
42
|
-
</div>
|
|
43
|
-
<div className="grid grid-cols-3 items-center gap-4">
|
|
44
|
-
<Label htmlFor="maxHeight">Max. height</Label>
|
|
45
|
-
<Input id="maxHeight" defaultValue="none" className="col-span-2 h-8" />
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</PopoverContent>
|
|
50
|
-
</Popover>
|
|
51
|
-
),
|
|
52
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Progress } from '@/components/ui/progress'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
const meta = {
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
title: 'Components/Progress',
|
|
6
|
-
component: Progress,
|
|
7
|
-
} satisfies Meta<typeof Progress>
|
|
8
|
-
|
|
9
|
-
export default meta
|
|
10
|
-
type Story = StoryObj<typeof meta>
|
|
11
|
-
|
|
12
|
-
export const Default: Story = {
|
|
13
|
-
args: {
|
|
14
|
-
value: 60,
|
|
15
|
-
className: 'w-72',
|
|
16
|
-
},
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Label } from '@/components/ui/label'
|
|
2
|
-
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/RadioGroup',
|
|
7
|
-
component: RadioGroup,
|
|
8
|
-
} satisfies Meta<typeof RadioGroup>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
args: {},
|
|
15
|
-
render: () => (
|
|
16
|
-
<RadioGroup defaultValue="comfortable">
|
|
17
|
-
<div className="flex items-center gap-3">
|
|
18
|
-
<RadioGroupItem value="default" id="r1" />
|
|
19
|
-
<Label htmlFor="r1">Default</Label>
|
|
20
|
-
</div>
|
|
21
|
-
<div className="flex items-center gap-3">
|
|
22
|
-
<RadioGroupItem value="comfortable" id="r2" />
|
|
23
|
-
<Label htmlFor="r2">Comfortable</Label>
|
|
24
|
-
</div>
|
|
25
|
-
<div className="flex items-center gap-3">
|
|
26
|
-
<RadioGroupItem value="compact" id="r3" />
|
|
27
|
-
<Label htmlFor="r3">Compact</Label>
|
|
28
|
-
</div>
|
|
29
|
-
</RadioGroup>
|
|
30
|
-
),
|
|
31
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/components/ui/select'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
const meta = {
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
title: 'Components/Select',
|
|
6
|
-
component: Select,
|
|
7
|
-
} satisfies Meta<typeof Select>
|
|
8
|
-
|
|
9
|
-
export default meta
|
|
10
|
-
type Story = StoryObj<typeof meta>
|
|
11
|
-
|
|
12
|
-
export const Default: Story = {
|
|
13
|
-
args: {},
|
|
14
|
-
render: () => (
|
|
15
|
-
<Select>
|
|
16
|
-
<SelectTrigger className="w-[180px]">
|
|
17
|
-
<SelectValue placeholder="Select a fruit" />
|
|
18
|
-
</SelectTrigger>
|
|
19
|
-
<SelectContent>
|
|
20
|
-
<SelectGroup>
|
|
21
|
-
<SelectLabel>Fruits</SelectLabel>
|
|
22
|
-
<SelectItem value="apple">Apple</SelectItem>
|
|
23
|
-
<SelectItem value="banana">Banana</SelectItem>
|
|
24
|
-
<SelectItem value="blueberry">Blueberry</SelectItem>
|
|
25
|
-
<SelectItem value="grapes">Grapes</SelectItem>
|
|
26
|
-
<SelectItem value="pineapple">Pineapple</SelectItem>
|
|
27
|
-
</SelectGroup>
|
|
28
|
-
</SelectContent>
|
|
29
|
-
</Select>
|
|
30
|
-
),
|
|
31
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Separator } from '@/components/ui/separator'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
const meta = {
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
title: 'Components/Separator',
|
|
6
|
-
component: Separator,
|
|
7
|
-
} satisfies Meta<typeof Separator>
|
|
8
|
-
|
|
9
|
-
export default meta
|
|
10
|
-
type Story = StoryObj<typeof meta>
|
|
11
|
-
|
|
12
|
-
export const Default: Story = {
|
|
13
|
-
render: () => {
|
|
14
|
-
return (
|
|
15
|
-
<div>
|
|
16
|
-
<div className="space-y-1">
|
|
17
|
-
<h4 className="text-sm leading-none font-medium">Radix Primitives</h4>
|
|
18
|
-
<p className="text-muted-foreground text-sm">An open-source UI component library.</p>
|
|
19
|
-
</div>
|
|
20
|
-
<Separator className="my-4" />
|
|
21
|
-
<div className="flex h-5 items-center space-x-4 text-sm">
|
|
22
|
-
<div>Blog</div>
|
|
23
|
-
<Separator orientation="vertical" />
|
|
24
|
-
<div>Docs</div>
|
|
25
|
-
<Separator orientation="vertical" />
|
|
26
|
-
<div>Source</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
)
|
|
30
|
-
},
|
|
31
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Button } from '@/components/ui/button'
|
|
2
|
-
import { Input } from '@/components/ui/input'
|
|
3
|
-
import { Label } from '@/components/ui/label'
|
|
4
|
-
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet'
|
|
5
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
6
|
-
|
|
7
|
-
const meta = {
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
title: 'Components/Sheet',
|
|
10
|
-
component: Sheet,
|
|
11
|
-
} satisfies Meta<typeof Sheet>
|
|
12
|
-
|
|
13
|
-
export default meta
|
|
14
|
-
type Story = StoryObj<typeof meta>
|
|
15
|
-
|
|
16
|
-
export const Default: Story = {
|
|
17
|
-
render: () => (
|
|
18
|
-
<Sheet>
|
|
19
|
-
<SheetTrigger asChild>
|
|
20
|
-
<Button variant="outline" color="muted">
|
|
21
|
-
Open
|
|
22
|
-
</Button>
|
|
23
|
-
</SheetTrigger>
|
|
24
|
-
<SheetContent>
|
|
25
|
-
<SheetHeader>
|
|
26
|
-
<SheetTitle>Edit profile</SheetTitle>
|
|
27
|
-
<SheetDescription>Make changes to your profile here. Click save when you're done.</SheetDescription>
|
|
28
|
-
</SheetHeader>
|
|
29
|
-
<div className="grid flex-1 auto-rows-min gap-6 overflow-y-auto px-4">
|
|
30
|
-
<div className="grid gap-3">
|
|
31
|
-
<Label htmlFor="sheet-demo-name">Name</Label>
|
|
32
|
-
<Input id="sheet-demo-name" defaultValue="Pedro Duarte" />
|
|
33
|
-
</div>
|
|
34
|
-
<div className="grid gap-3">
|
|
35
|
-
<Label htmlFor="sheet-demo-username">Username</Label>
|
|
36
|
-
<Input id="sheet-demo-username" defaultValue="@peduarte" />
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<SheetFooter>
|
|
40
|
-
<Button type="submit">Save changes</Button>
|
|
41
|
-
<SheetClose asChild>
|
|
42
|
-
<Button variant="outline" color="muted">
|
|
43
|
-
Close
|
|
44
|
-
</Button>
|
|
45
|
-
</SheetClose>
|
|
46
|
-
</SheetFooter>
|
|
47
|
-
</SheetContent>
|
|
48
|
-
</Sheet>
|
|
49
|
-
),
|
|
50
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Skeleton } from '@/components/ui/skeleton'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/Skeleton',
|
|
7
|
-
component: Skeleton,
|
|
8
|
-
} satisfies Meta<typeof Skeleton>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = StoryObj<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
render: () => {
|
|
15
|
-
return (
|
|
16
|
-
<div className="h-32 w-120">
|
|
17
|
-
<div className="flex w-full items-center space-x-4">
|
|
18
|
-
<Skeleton className="size-12 min-w-12 rounded-full" />
|
|
19
|
-
<div className="space-y-2">
|
|
20
|
-
<Skeleton className="h-4 w-[250px]" />
|
|
21
|
-
<Skeleton className="h-4 w-[200px]" />
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
)
|
|
26
|
-
},
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Label } from '@/components/ui/label'
|
|
2
|
-
import { Switch } from '@/components/ui/switch'
|
|
3
|
-
import type { Meta } from '@storybook/react-vite'
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
title: 'Components/Switch',
|
|
8
|
-
component: Switch,
|
|
9
|
-
} satisfies Meta<typeof Switch>
|
|
10
|
-
|
|
11
|
-
export default meta
|
|
12
|
-
type Story = Meta<typeof meta>
|
|
13
|
-
|
|
14
|
-
export const Default: Story = {
|
|
15
|
-
render: () => (
|
|
16
|
-
<div className="flex items-center space-x-2">
|
|
17
|
-
<Switch id="airplane-mode" />
|
|
18
|
-
<Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
19
|
-
</div>
|
|
20
|
-
),
|
|
21
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'
|
|
2
|
-
import type { Meta } from '@storybook/react-vite'
|
|
3
|
-
|
|
4
|
-
const meta = {
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
title: 'Components/Table',
|
|
7
|
-
component: Table,
|
|
8
|
-
} satisfies Meta<typeof Table>
|
|
9
|
-
|
|
10
|
-
export default meta
|
|
11
|
-
type Story = Meta<typeof meta>
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
render: () => (
|
|
15
|
-
<div className="bg-background border-border-weak w-200 min-w-200 overflow-hidden rounded-md border">
|
|
16
|
-
<Table>
|
|
17
|
-
<TableHeader>
|
|
18
|
-
<TableRow>
|
|
19
|
-
<TableHead className="w-[100px]">Invoice</TableHead>
|
|
20
|
-
<TableHead>Status</TableHead>
|
|
21
|
-
<TableHead>Method</TableHead>
|
|
22
|
-
<TableHead className="text-right">Amount</TableHead>
|
|
23
|
-
</TableRow>
|
|
24
|
-
</TableHeader>
|
|
25
|
-
<TableBody>
|
|
26
|
-
{invoices.map((invoice) => (
|
|
27
|
-
<TableRow key={invoice.invoice}>
|
|
28
|
-
<TableCell className="font-medium">{invoice.invoice}</TableCell>
|
|
29
|
-
<TableCell>{invoice.paymentStatus}</TableCell>
|
|
30
|
-
<TableCell>{invoice.paymentMethod}</TableCell>
|
|
31
|
-
<TableCell className="text-right">{invoice.totalAmount}</TableCell>
|
|
32
|
-
</TableRow>
|
|
33
|
-
))}
|
|
34
|
-
</TableBody>
|
|
35
|
-
</Table>
|
|
36
|
-
</div>
|
|
37
|
-
),
|
|
38
|
-
}
|
|
39
|
-
const invoices = [
|
|
40
|
-
{
|
|
41
|
-
invoice: 'INV001',
|
|
42
|
-
paymentStatus: 'Paid',
|
|
43
|
-
totalAmount: '$250.00',
|
|
44
|
-
paymentMethod: 'Credit Card',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
invoice: 'INV002',
|
|
48
|
-
paymentStatus: 'Pending',
|
|
49
|
-
totalAmount: '$150.00',
|
|
50
|
-
paymentMethod: 'PayPal',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
invoice: 'INV003',
|
|
54
|
-
paymentStatus: 'Unpaid',
|
|
55
|
-
totalAmount: '$350.00',
|
|
56
|
-
paymentMethod: 'Bank Transfer',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
invoice: 'INV004',
|
|
60
|
-
paymentStatus: 'Paid',
|
|
61
|
-
totalAmount: '$450.00',
|
|
62
|
-
paymentMethod: 'Credit Card',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
invoice: 'INV005',
|
|
66
|
-
paymentStatus: 'Paid',
|
|
67
|
-
totalAmount: '$550.00',
|
|
68
|
-
paymentMethod: 'PayPal',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
invoice: 'INV006',
|
|
72
|
-
paymentStatus: 'Pending',
|
|
73
|
-
totalAmount: '$200.00',
|
|
74
|
-
paymentMethod: 'Bank Transfer',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
invoice: 'INV007',
|
|
78
|
-
paymentStatus: 'Unpaid',
|
|
79
|
-
totalAmount: '$300.00',
|
|
80
|
-
paymentMethod: 'Credit Card',
|
|
81
|
-
},
|
|
82
|
-
]
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react-vite'
|
|
2
|
-
import { Button } from '@/components/ui/button'
|
|
3
|
-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
|
|
4
|
-
import { Input } from '@/components/ui/input'
|
|
5
|
-
import { Label } from '@/components/ui/label'
|
|
6
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
|
|
7
|
-
|
|
8
|
-
const meta = {
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
title: 'Components/Tabs',
|
|
11
|
-
component: Tabs,
|
|
12
|
-
} satisfies Meta<typeof Tabs>
|
|
13
|
-
|
|
14
|
-
export default meta
|
|
15
|
-
type Story = Meta<typeof meta>
|
|
16
|
-
|
|
17
|
-
export const Default: Story = {
|
|
18
|
-
render: () => (
|
|
19
|
-
<div className="flex w-200 max-w-sm flex-col gap-6">
|
|
20
|
-
<Tabs defaultValue="account">
|
|
21
|
-
<TabsList>
|
|
22
|
-
<TabsTrigger value="account">Account</TabsTrigger>
|
|
23
|
-
<TabsTrigger value="password">Password</TabsTrigger>
|
|
24
|
-
</TabsList>
|
|
25
|
-
<TabsContent value="account">
|
|
26
|
-
<Card>
|
|
27
|
-
<CardHeader>
|
|
28
|
-
<CardTitle>Account</CardTitle>
|
|
29
|
-
<CardDescription>Make changes to your account here. Click save when you're done.</CardDescription>
|
|
30
|
-
</CardHeader>
|
|
31
|
-
<CardContent className="grid gap-6">
|
|
32
|
-
<div className="grid gap-3">
|
|
33
|
-
<Label htmlFor="tabs-demo-name">Name</Label>
|
|
34
|
-
<Input id="tabs-demo-name" defaultValue="Pedro Duarte" />
|
|
35
|
-
</div>
|
|
36
|
-
<div className="grid gap-3">
|
|
37
|
-
<Label htmlFor="tabs-demo-username">Username</Label>
|
|
38
|
-
<Input id="tabs-demo-username" defaultValue="@peduarte" />
|
|
39
|
-
</div>
|
|
40
|
-
</CardContent>
|
|
41
|
-
<CardFooter>
|
|
42
|
-
<Button>Save changes</Button>
|
|
43
|
-
</CardFooter>
|
|
44
|
-
</Card>
|
|
45
|
-
</TabsContent>
|
|
46
|
-
<TabsContent value="password">
|
|
47
|
-
<Card>
|
|
48
|
-
<CardHeader>
|
|
49
|
-
<CardTitle>Password</CardTitle>
|
|
50
|
-
<CardDescription>Change your password here. After saving, you'll be logged out.</CardDescription>
|
|
51
|
-
</CardHeader>
|
|
52
|
-
<CardContent className="grid gap-6">
|
|
53
|
-
<div className="grid gap-3">
|
|
54
|
-
<Label htmlFor="tabs-demo-current">Current password</Label>
|
|
55
|
-
<Input id="tabs-demo-current" type="password" />
|
|
56
|
-
</div>
|
|
57
|
-
<div className="grid gap-3">
|
|
58
|
-
<Label htmlFor="tabs-demo-new">New password</Label>
|
|
59
|
-
<Input id="tabs-demo-new" type="password" />
|
|
60
|
-
</div>
|
|
61
|
-
</CardContent>
|
|
62
|
-
<CardFooter>
|
|
63
|
-
<Button>Save password</Button>
|
|
64
|
-
</CardFooter>
|
|
65
|
-
</Card>
|
|
66
|
-
</TabsContent>
|
|
67
|
-
</Tabs>
|
|
68
|
-
</div>
|
|
69
|
-
),
|
|
70
|
-
}
|