gladvn 0.2.17 → 0.2.19
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/bin/cli.js +9 -6
- package/dist/components/macro/accordion-preset.d.ts.map +1 -1
- package/dist/components/macro/alert-dialog-preset.d.ts.map +1 -1
- package/dist/components/macro/alert-preset.d.ts.map +1 -1
- package/dist/components/macro/avatar-preset.d.ts.map +1 -1
- package/dist/components/macro/breadcrumb-preset.d.ts.map +1 -1
- package/dist/components/macro/card-preset.d.ts.map +1 -1
- package/dist/components/macro/carousel-preset.d.ts.map +1 -1
- package/dist/components/macro/checkbox-preset.d.ts.map +1 -1
- package/dist/components/macro/combobox-preset.d.ts.map +1 -1
- package/dist/components/macro/command-preset.d.ts +1 -1
- package/dist/components/macro/command-preset.d.ts.map +1 -1
- package/dist/components/macro/date-picker.d.ts.map +1 -1
- package/dist/components/macro/dialog-preset.d.ts.map +1 -1
- package/dist/components/macro/empty-preset.d.ts.map +1 -1
- package/dist/components/macro/field-preset.d.ts.map +1 -1
- package/dist/components/macro/input-otp-preset.d.ts +6 -0
- package/dist/components/macro/input-otp-preset.d.ts.map +1 -1
- package/dist/components/macro/input-preset.d.ts +1 -1
- package/dist/components/macro/input-preset.d.ts.map +1 -1
- package/dist/components/macro/pagination-preset.d.ts.map +1 -1
- package/dist/components/macro/progress-preset.d.ts.map +1 -1
- package/dist/components/macro/radio-group-preset.d.ts.map +1 -1
- package/dist/components/macro/select-preset.d.ts.map +1 -1
- package/dist/components/macro/slider-preset.d.ts.map +1 -1
- package/dist/components/macro/switch-preset.d.ts.map +1 -1
- package/dist/components/macro/tabs-preset.d.ts +1 -1
- package/dist/components/macro/tabs-preset.d.ts.map +1 -1
- package/dist/components/macro/textarea-preset.d.ts +1 -1
- package/dist/components/macro/textarea-preset.d.ts.map +1 -1
- package/dist/components/micro/accordion.d.ts +7 -0
- package/dist/components/micro/accordion.d.ts.map +1 -1
- package/dist/components/micro/alert-dialog.d.ts.map +1 -1
- package/dist/components/micro/alert.d.ts +7 -0
- package/dist/components/micro/alert.d.ts.map +1 -1
- package/dist/components/micro/aspect-ratio.d.ts +7 -0
- package/dist/components/micro/aspect-ratio.d.ts.map +1 -1
- package/dist/components/micro/avatar.d.ts.map +1 -1
- package/dist/components/micro/badge.d.ts +8 -1
- package/dist/components/micro/badge.d.ts.map +1 -1
- package/dist/components/micro/breadcrumb.d.ts +7 -0
- package/dist/components/micro/breadcrumb.d.ts.map +1 -1
- package/dist/components/micro/button.d.ts +8 -1
- package/dist/components/micro/button.d.ts.map +1 -1
- package/dist/components/micro/calendar.d.ts +2 -2
- package/dist/components/micro/calendar.d.ts.map +1 -1
- package/dist/components/micro/carousel.d.ts.map +1 -1
- package/dist/components/micro/chart.d.ts.map +1 -1
- package/dist/components/micro/checkbox.d.ts.map +1 -1
- package/dist/components/micro/collapsible.d.ts.map +1 -1
- package/dist/components/micro/combobox.d.ts.map +1 -1
- package/dist/components/micro/command.d.ts.map +1 -1
- package/dist/components/micro/context-menu.d.ts.map +1 -1
- package/dist/components/micro/dialog.d.ts.map +1 -1
- package/dist/components/micro/drawer.d.ts.map +1 -1
- package/dist/components/micro/dropdown-menu.d.ts.map +1 -1
- package/dist/components/micro/empty.d.ts +7 -0
- package/dist/components/micro/empty.d.ts.map +1 -1
- package/dist/components/micro/field.d.ts.map +1 -1
- package/dist/components/micro/hover-card.d.ts +1 -1
- package/dist/components/micro/hover-card.d.ts.map +1 -1
- package/dist/components/micro/input-group.d.ts.map +1 -1
- package/dist/components/micro/input-otp.d.ts.map +1 -1
- package/dist/components/micro/input.d.ts +7 -0
- package/dist/components/micro/input.d.ts.map +1 -1
- package/dist/components/micro/item.d.ts.map +1 -1
- package/dist/components/micro/label.d.ts.map +1 -1
- package/dist/components/micro/menubar.d.ts.map +1 -1
- package/dist/components/micro/navigation-menu.d.ts +8 -1
- package/dist/components/micro/navigation-menu.d.ts.map +1 -1
- package/dist/components/micro/pagination.d.ts.map +1 -1
- package/dist/components/micro/popover.d.ts.map +1 -1
- package/dist/components/micro/progress.d.ts.map +1 -1
- package/dist/components/micro/radio-group.d.ts.map +1 -1
- package/dist/components/micro/select.d.ts +1 -1
- package/dist/components/micro/select.d.ts.map +1 -1
- package/dist/components/micro/sheet.d.ts.map +1 -1
- package/dist/components/micro/sidebar.d.ts.map +1 -1
- package/dist/components/micro/skeleton.d.ts +7 -0
- package/dist/components/micro/skeleton.d.ts.map +1 -1
- package/dist/components/micro/slider.d.ts +7 -0
- package/dist/components/micro/slider.d.ts.map +1 -1
- package/dist/components/micro/sonner.d.ts.map +1 -1
- package/dist/components/micro/spinner.d.ts.map +1 -1
- package/dist/components/micro/switch.d.ts.map +1 -1
- package/dist/components/micro/table.d.ts.map +1 -1
- package/dist/components/micro/tabs.d.ts +1 -1
- package/dist/components/micro/tabs.d.ts.map +1 -1
- package/dist/components/micro/textarea.d.ts +7 -0
- package/dist/components/micro/textarea.d.ts.map +1 -1
- package/dist/components/micro/toggle-group.d.ts.map +1 -1
- package/dist/components/micro/toggle.d.ts.map +1 -1
- package/dist/components/micro/tooltip.d.ts +1 -1
- package/dist/components/micro/tooltip.d.ts.map +1 -1
- package/dist/dev/App.d.ts.map +1 -1
- package/dist/dev/components/code-highlighter.d.ts.map +1 -1
- package/dist/dev/components/dev-context.d.ts.map +1 -1
- package/dist/dev/components/showcase.d.ts +1 -1
- package/dist/dev/components/showcase.d.ts.map +1 -1
- package/dist/dev/data.d.ts.map +1 -1
- package/dist/dev/main.d.ts.map +1 -1
- package/dist/dev/sections/buttons.d.ts.map +1 -1
- package/dist/dev/sections/feedback.d.ts.map +1 -1
- package/dist/dev/sections/overview.d.ts.map +1 -1
- package/dist/dev/showcase/accordion.d.ts.map +1 -1
- package/dist/dev/showcase/alert-dialog.d.ts.map +1 -1
- package/dist/dev/showcase/alert.d.ts.map +1 -1
- package/dist/dev/showcase/aspect-ratio.d.ts.map +1 -1
- package/dist/dev/showcase/avatar.d.ts.map +1 -1
- package/dist/dev/showcase/breadcrumb.d.ts.map +1 -1
- package/dist/dev/showcase/button.d.ts.map +1 -1
- package/dist/dev/showcase/calendar.d.ts.map +1 -1
- package/dist/dev/showcase/card.d.ts.map +1 -1
- package/dist/dev/showcase/carousel.d.ts.map +1 -1
- package/dist/dev/showcase/chart.d.ts.map +1 -1
- package/dist/dev/showcase/checkbox.d.ts.map +1 -1
- package/dist/dev/showcase/collapsible.d.ts.map +1 -1
- package/dist/dev/showcase/combobox.d.ts.map +1 -1
- package/dist/dev/showcase/command.d.ts.map +1 -1
- package/dist/dev/showcase/context-menu.d.ts.map +1 -1
- package/dist/dev/showcase/dialog.d.ts.map +1 -1
- package/dist/dev/showcase/drawer.d.ts.map +1 -1
- package/dist/dev/showcase/dropdown-menu.d.ts.map +1 -1
- package/dist/dev/showcase/empty.d.ts.map +1 -1
- package/dist/dev/showcase/hover-card.d.ts.map +1 -1
- package/dist/dev/showcase/input-group.d.ts.map +1 -1
- package/dist/dev/showcase/input-otp.d.ts.map +1 -1
- package/dist/dev/showcase/input.d.ts.map +1 -1
- package/dist/dev/showcase/item.d.ts.map +1 -1
- package/dist/dev/showcase/kbd.d.ts.map +1 -1
- package/dist/dev/showcase/label.d.ts.map +1 -1
- package/dist/dev/showcase/menubar.d.ts.map +1 -1
- package/dist/dev/showcase/navigation-menu.d.ts.map +1 -1
- package/dist/dev/showcase/overview.d.ts.map +1 -1
- package/dist/dev/showcase/pagination.d.ts.map +1 -1
- package/dist/dev/showcase/popover.d.ts.map +1 -1
- package/dist/dev/showcase/progress.d.ts.map +1 -1
- package/dist/dev/showcase/radio-group.d.ts.map +1 -1
- package/dist/dev/showcase/resizable.d.ts.map +1 -1
- package/dist/dev/showcase/scroll-area.d.ts.map +1 -1
- package/dist/dev/showcase/select.d.ts.map +1 -1
- package/dist/dev/showcase/separator.d.ts.map +1 -1
- package/dist/dev/showcase/sheet.d.ts.map +1 -1
- package/dist/dev/showcase/sidebar.d.ts.map +1 -1
- package/dist/dev/showcase/skeleton.d.ts.map +1 -1
- package/dist/dev/showcase/slider.d.ts.map +1 -1
- package/dist/dev/showcase/sonner.d.ts.map +1 -1
- package/dist/dev/showcase/spinner.d.ts.map +1 -1
- package/dist/dev/showcase/switch.d.ts.map +1 -1
- package/dist/dev/showcase/table.d.ts.map +1 -1
- package/dist/dev/showcase/tabs.d.ts.map +1 -1
- package/dist/dev/showcase/textarea.d.ts.map +1 -1
- package/dist/dev/showcase/theme-provider.d.ts.map +1 -1
- package/dist/dev/showcase/toast.d.ts.map +1 -1
- package/dist/dev/showcase/toggle-group.d.ts.map +1 -1
- package/dist/dev/showcase/toggle.d.ts.map +1 -1
- package/dist/dev/showcase/tooltip.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +3 -1
- package/scripts/format-codestrings.ts +87 -0
- package/scripts/organize-imports.ts +21 -0
- package/scripts/regex-format.cjs +67 -0
- package/scripts/tmp.tsx +25 -0
- package/src/components/macro/accordion-preset.test.tsx +1 -0
- package/src/components/macro/accordion-preset.tsx +2 -1
- package/src/components/macro/alert-dialog-preset.tsx +44 -43
- package/src/components/macro/alert-preset.tsx +7 -3
- package/src/components/macro/avatar-preset.tsx +2 -1
- package/src/components/macro/breadcrumb-preset.tsx +2 -1
- package/src/components/macro/card-preset.tsx +2 -1
- package/src/components/macro/carousel-preset.tsx +5 -2
- package/src/components/macro/checkbox-preset.test.tsx +1 -0
- package/src/components/macro/checkbox-preset.tsx +6 -2
- package/src/components/macro/combobox-preset.tsx +6 -3
- package/src/components/macro/command-preset.tsx +7 -3
- package/src/components/macro/date-picker.tsx +77 -59
- package/src/components/macro/dialog-preset.tsx +42 -38
- package/src/components/macro/empty-preset.tsx +2 -1
- package/src/components/macro/field-preset.test.tsx +1 -0
- package/src/components/macro/field-preset.tsx +2 -1
- package/src/components/macro/input-otp-preset.tsx +6 -2
- package/src/components/macro/input-preset.test.tsx +1 -0
- package/src/components/macro/input-preset.tsx +4 -2
- package/src/components/macro/pagination-preset.tsx +3 -1
- package/src/components/macro/progress-preset.test.tsx +1 -0
- package/src/components/macro/progress-preset.tsx +2 -1
- package/src/components/macro/radio-group-preset.tsx +4 -1
- package/src/components/macro/select-preset.tsx +35 -30
- package/src/components/macro/slider-preset.test.tsx +1 -0
- package/src/components/macro/slider-preset.tsx +4 -1
- package/src/components/macro/switch-preset.test.tsx +1 -0
- package/src/components/macro/switch-preset.tsx +4 -1
- package/src/components/macro/tabs-preset.test.tsx +1 -0
- package/src/components/macro/tabs-preset.tsx +4 -2
- package/src/components/macro/textarea-preset.test.tsx +1 -0
- package/src/components/macro/textarea-preset.tsx +4 -1
- package/src/components/micro/accordion.tsx +3 -2
- package/src/components/micro/alert-dialog.tsx +2 -1
- package/src/components/micro/alert.tsx +3 -2
- package/src/components/micro/aspect-ratio.tsx +2 -1
- package/src/components/micro/avatar.tsx +2 -1
- package/src/components/micro/badge.tsx +3 -3
- package/src/components/micro/breadcrumb.tsx +3 -2
- package/src/components/micro/button.test.tsx +1 -0
- package/src/components/micro/button.tsx +3 -3
- package/src/components/micro/calendar.tsx +10 -9
- package/src/components/micro/carousel.tsx +3 -2
- package/src/components/micro/chart.tsx +1 -0
- package/src/components/micro/checkbox.tsx +2 -2
- package/src/components/micro/collapsible.tsx +4 -2
- package/src/components/micro/combobox.tsx +41 -29
- package/src/components/micro/command.tsx +23 -16
- package/src/components/micro/context-menu.tsx +3 -2
- package/src/components/micro/dialog.tsx +2 -1
- package/src/components/micro/drawer.tsx +2 -1
- package/src/components/micro/dropdown-menu.tsx +3 -2
- package/src/components/micro/empty.tsx +2 -1
- package/src/components/micro/field.tsx +4 -3
- package/src/components/micro/hover-card.tsx +20 -19
- package/src/components/micro/input-group.tsx +2 -1
- package/src/components/micro/input-otp.tsx +3 -2
- package/src/components/micro/input.tsx +3 -2
- package/src/components/micro/item.tsx +1 -0
- package/src/components/micro/label.tsx +2 -1
- package/src/components/micro/menubar.tsx +2 -1
- package/src/components/micro/navigation-menu.tsx +18 -17
- package/src/components/micro/pagination.tsx +2 -1
- package/src/components/micro/popover.tsx +2 -1
- package/src/components/micro/progress.tsx +2 -1
- package/src/components/micro/radio-group.tsx +3 -3
- package/src/components/micro/select.tsx +5 -4
- package/src/components/micro/sheet.tsx +2 -1
- package/src/components/micro/sidebar.tsx +4 -1
- package/src/components/micro/skeleton.tsx +2 -1
- package/src/components/micro/slider.tsx +4 -1
- package/src/components/micro/sonner.tsx +2 -1
- package/src/components/micro/spinner.tsx +1 -2
- package/src/components/micro/switch.tsx +2 -2
- package/src/components/micro/table.tsx +2 -1
- package/src/components/micro/tabs.tsx +4 -3
- package/src/components/micro/textarea.tsx +2 -1
- package/src/components/micro/toggle-group.tsx +1 -0
- package/src/components/micro/toggle.tsx +1 -3
- package/src/components/micro/tooltip.tsx +9 -3
- package/src/dev/App.tsx +66 -41
- package/src/dev/components/code-highlighter.tsx +2 -1
- package/src/dev/components/dev-context.tsx +1 -0
- package/src/dev/components/showcase.tsx +13 -14
- package/src/dev/data.ts +206 -52
- package/src/dev/main.tsx +4 -4
- package/src/dev/sections/buttons.tsx +14 -12
- package/src/dev/sections/feedback.tsx +7 -2
- package/src/dev/sections/forms.tsx +11 -11
- package/src/dev/sections/overview.tsx +2 -1
- package/src/dev/showcase/accordion.tsx +399 -314
- package/src/dev/showcase/alert-dialog.tsx +387 -384
- package/src/dev/showcase/alert.tsx +271 -258
- package/src/dev/showcase/aspect-ratio.tsx +102 -105
- package/src/dev/showcase/avatar.tsx +216 -145
- package/src/dev/showcase/badge.tsx +78 -50
- package/src/dev/showcase/breadcrumb.tsx +88 -85
- package/src/dev/showcase/button.tsx +72 -96
- package/src/dev/showcase/calendar.tsx +41 -39
- package/src/dev/showcase/card.tsx +170 -148
- package/src/dev/showcase/carousel.tsx +239 -77
- package/src/dev/showcase/chart.tsx +5 -4
- package/src/dev/showcase/checkbox.tsx +206 -140
- package/src/dev/showcase/collapsible.tsx +108 -84
- package/src/dev/showcase/combobox.tsx +272 -199
- package/src/dev/showcase/command.tsx +31 -28
- package/src/dev/showcase/context-menu.tsx +94 -77
- package/src/dev/showcase/dialog.tsx +445 -424
- package/src/dev/showcase/drawer.tsx +142 -135
- package/src/dev/showcase/dropdown-menu.tsx +165 -161
- package/src/dev/showcase/empty.tsx +173 -158
- package/src/dev/showcase/hover-card.tsx +92 -52
- package/src/dev/showcase/input-group.tsx +193 -160
- package/src/dev/showcase/input-otp.tsx +109 -99
- package/src/dev/showcase/input.tsx +78 -42
- package/src/dev/showcase/item.tsx +101 -98
- package/src/dev/showcase/kbd.tsx +78 -62
- package/src/dev/showcase/label.tsx +16 -23
- package/src/dev/showcase/menubar.tsx +274 -251
- package/src/dev/showcase/navigation-menu.tsx +175 -170
- package/src/dev/showcase/overview.tsx +164 -148
- package/src/dev/showcase/pagination.tsx +101 -69
- package/src/dev/showcase/popover.tsx +113 -86
- package/src/dev/showcase/progress.tsx +99 -69
- package/src/dev/showcase/radio-group.tsx +217 -134
- package/src/dev/showcase/resizable.tsx +65 -55
- package/src/dev/showcase/scroll-area.tsx +32 -22
- package/src/dev/showcase/select.tsx +192 -136
- package/src/dev/showcase/separator.tsx +28 -24
- package/src/dev/showcase/sheet.tsx +182 -134
- package/src/dev/showcase/sidebar.tsx +9 -5
- package/src/dev/showcase/skeleton.tsx +54 -59
- package/src/dev/showcase/slider.tsx +158 -129
- package/src/dev/showcase/sonner.tsx +3 -5
- package/src/dev/showcase/spinner.tsx +22 -18
- package/src/dev/showcase/switch.tsx +207 -110
- package/src/dev/showcase/table.tsx +44 -32
- package/src/dev/showcase/tabs.tsx +272 -267
- package/src/dev/showcase/textarea.tsx +162 -116
- package/src/dev/showcase/theme-provider.tsx +596 -534
- package/src/dev/showcase/toast.tsx +37 -38
- package/src/dev/showcase/toggle-group.tsx +87 -39
- package/src/dev/showcase/toggle.tsx +36 -27
- package/src/dev/showcase/tooltip.tsx +154 -119
- package/src/lib/utils.test.ts +1 -0
- package/src/lib/utils.ts +1 -1
- package/src/styles/gladvn.css +0 -1
package/src/dev/data.ts
CHANGED
|
@@ -46,292 +46,446 @@ export const COLOR_INFO = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export const COMPONENTS = [
|
|
49
|
-
{
|
|
49
|
+
{
|
|
50
|
+
id: "accordion",
|
|
51
|
+
category: "Layout & Structure",
|
|
50
52
|
label: "Accordion",
|
|
51
53
|
hasMicro: true,
|
|
52
54
|
hasMacro: true,
|
|
53
55
|
status: "stable",
|
|
54
56
|
},
|
|
55
|
-
{
|
|
57
|
+
{
|
|
58
|
+
id: "alert",
|
|
59
|
+
category: "Feedback & Overlays",
|
|
56
60
|
label: "Alert",
|
|
57
61
|
hasMicro: true,
|
|
58
62
|
hasMacro: true,
|
|
59
63
|
status: "stable",
|
|
60
64
|
hasSize: true,
|
|
61
65
|
},
|
|
62
|
-
{
|
|
66
|
+
{
|
|
67
|
+
id: "alert-dialog",
|
|
68
|
+
category: "Feedback & Overlays",
|
|
63
69
|
label: "Alert Dialog",
|
|
64
70
|
hasMicro: true,
|
|
65
71
|
hasMacro: true,
|
|
66
72
|
status: "stable",
|
|
67
73
|
hasSize: true,
|
|
68
74
|
},
|
|
69
|
-
{
|
|
75
|
+
{
|
|
76
|
+
id: "aspect-ratio",
|
|
77
|
+
category: "Layout & Structure",
|
|
70
78
|
label: "Aspect Ratio",
|
|
71
79
|
hasMicro: true,
|
|
72
80
|
hasMacro: false,
|
|
73
81
|
status: "stable",
|
|
74
82
|
},
|
|
75
|
-
{
|
|
83
|
+
{
|
|
84
|
+
id: "avatar",
|
|
85
|
+
category: "Data Display",
|
|
76
86
|
label: "Avatar",
|
|
77
87
|
hasMicro: true,
|
|
78
88
|
hasMacro: true,
|
|
79
89
|
status: "stable",
|
|
80
90
|
hasSize: true,
|
|
81
91
|
},
|
|
82
|
-
{
|
|
92
|
+
{
|
|
93
|
+
id: "badge",
|
|
94
|
+
category: "Data Display",
|
|
83
95
|
label: "Badge",
|
|
84
96
|
hasMicro: true,
|
|
85
97
|
hasMacro: false,
|
|
86
98
|
status: "stable",
|
|
87
99
|
hasSize: true,
|
|
88
100
|
},
|
|
89
|
-
{
|
|
101
|
+
{
|
|
102
|
+
id: "breadcrumb",
|
|
103
|
+
category: "Navigation",
|
|
90
104
|
label: "Breadcrumb",
|
|
91
105
|
hasMicro: true,
|
|
92
106
|
hasMacro: true,
|
|
93
107
|
status: "stable",
|
|
94
108
|
},
|
|
95
|
-
{
|
|
109
|
+
{
|
|
110
|
+
id: "button",
|
|
111
|
+
category: "Forms & Inputs",
|
|
96
112
|
label: "Button",
|
|
97
113
|
hasMicro: true,
|
|
98
114
|
hasMacro: false,
|
|
99
115
|
status: "stable",
|
|
100
116
|
hasSize: true,
|
|
101
117
|
},
|
|
102
|
-
{
|
|
118
|
+
{
|
|
119
|
+
id: "calendar",
|
|
120
|
+
category: "Forms & Inputs",
|
|
103
121
|
label: "Calendar",
|
|
104
122
|
hasMicro: true,
|
|
105
123
|
hasMacro: false,
|
|
106
124
|
status: "stable",
|
|
107
125
|
hasSize: true,
|
|
108
126
|
},
|
|
109
|
-
{
|
|
127
|
+
{
|
|
128
|
+
id: "card",
|
|
129
|
+
category: "Layout & Structure",
|
|
110
130
|
label: "Card",
|
|
111
131
|
hasMicro: true,
|
|
112
132
|
hasMacro: true,
|
|
113
133
|
status: "stable",
|
|
114
134
|
hasSize: true,
|
|
115
135
|
},
|
|
116
|
-
{
|
|
136
|
+
{
|
|
137
|
+
id: "carousel",
|
|
138
|
+
category: "Layout & Structure",
|
|
117
139
|
label: "Carousel",
|
|
118
140
|
hasMicro: true,
|
|
119
141
|
hasMacro: true,
|
|
120
142
|
status: "stable",
|
|
121
143
|
},
|
|
122
|
-
{
|
|
123
|
-
|
|
144
|
+
{
|
|
145
|
+
id: "chart",
|
|
146
|
+
category: "Data Display",
|
|
147
|
+
label: "Chart",
|
|
148
|
+
hasMicro: true,
|
|
149
|
+
hasMacro: false,
|
|
150
|
+
status: "stable",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: "checkbox",
|
|
154
|
+
category: "Forms & Inputs",
|
|
124
155
|
label: "Checkbox",
|
|
125
156
|
hasMicro: true,
|
|
126
157
|
hasMacro: true,
|
|
127
158
|
status: "stable",
|
|
128
159
|
hasSize: true,
|
|
129
160
|
},
|
|
130
|
-
{
|
|
161
|
+
{
|
|
162
|
+
id: "collapsible",
|
|
163
|
+
category: "Layout & Structure",
|
|
131
164
|
label: "Collapsible",
|
|
132
165
|
hasMicro: true,
|
|
133
166
|
hasMacro: false,
|
|
134
167
|
status: "stable",
|
|
135
168
|
},
|
|
136
|
-
{
|
|
169
|
+
{
|
|
170
|
+
id: "combobox",
|
|
171
|
+
category: "Forms & Inputs",
|
|
137
172
|
label: "Combobox",
|
|
138
173
|
hasMicro: true,
|
|
139
174
|
hasMacro: true,
|
|
140
175
|
status: "stable",
|
|
141
176
|
hasSize: true,
|
|
142
177
|
},
|
|
143
|
-
{
|
|
178
|
+
{
|
|
179
|
+
id: "command",
|
|
180
|
+
category: "Navigation",
|
|
144
181
|
label: "Command",
|
|
145
182
|
hasMicro: true,
|
|
146
183
|
hasMacro: false,
|
|
147
184
|
status: "stable",
|
|
148
185
|
},
|
|
149
|
-
{
|
|
186
|
+
{
|
|
187
|
+
id: "context-menu",
|
|
188
|
+
category: "Navigation",
|
|
150
189
|
label: "Context Menu",
|
|
151
190
|
hasMicro: true,
|
|
152
191
|
hasMacro: false,
|
|
153
192
|
status: "stable",
|
|
154
193
|
},
|
|
155
|
-
{
|
|
194
|
+
{
|
|
195
|
+
id: "dialog",
|
|
196
|
+
category: "Feedback & Overlays",
|
|
156
197
|
label: "Dialog",
|
|
157
198
|
hasMicro: true,
|
|
158
199
|
hasMacro: true,
|
|
159
200
|
status: "stable",
|
|
160
201
|
hasSize: true,
|
|
161
202
|
},
|
|
162
|
-
{
|
|
203
|
+
{
|
|
204
|
+
id: "drawer",
|
|
205
|
+
category: "Feedback & Overlays",
|
|
163
206
|
label: "Drawer",
|
|
164
207
|
hasMicro: true,
|
|
165
208
|
hasMacro: false,
|
|
166
209
|
status: "stable",
|
|
167
210
|
},
|
|
168
|
-
{
|
|
211
|
+
{
|
|
212
|
+
id: "dropdown-menu",
|
|
213
|
+
category: "Navigation",
|
|
169
214
|
label: "Dropdown Menu",
|
|
170
215
|
hasMicro: true,
|
|
171
216
|
hasMacro: false,
|
|
172
217
|
status: "stable",
|
|
173
218
|
hasSize: true,
|
|
174
219
|
},
|
|
175
|
-
{
|
|
220
|
+
{
|
|
221
|
+
id: "empty",
|
|
222
|
+
category: "Data Display",
|
|
176
223
|
label: "Empty",
|
|
177
224
|
hasMicro: true,
|
|
178
225
|
hasMacro: true,
|
|
179
226
|
status: "stable",
|
|
180
227
|
},
|
|
181
228
|
|
|
182
|
-
{
|
|
229
|
+
{
|
|
230
|
+
id: "hover-card",
|
|
231
|
+
category: "Feedback & Overlays",
|
|
183
232
|
label: "Hover Card",
|
|
184
233
|
hasMicro: true,
|
|
185
234
|
hasMacro: false,
|
|
186
235
|
status: "stable",
|
|
187
236
|
hasSize: true,
|
|
188
237
|
},
|
|
189
|
-
{
|
|
238
|
+
{
|
|
239
|
+
id: "input",
|
|
240
|
+
category: "Forms & Inputs",
|
|
190
241
|
label: "Input",
|
|
191
242
|
hasMicro: true,
|
|
192
243
|
hasMacro: true,
|
|
193
244
|
status: "stable",
|
|
194
245
|
hasSize: true,
|
|
195
246
|
},
|
|
196
|
-
{
|
|
247
|
+
{
|
|
248
|
+
id: "input-group",
|
|
249
|
+
category: "Forms & Inputs",
|
|
197
250
|
label: "Input Group",
|
|
198
251
|
hasMicro: true,
|
|
199
252
|
hasMacro: false,
|
|
200
253
|
status: "stable",
|
|
201
254
|
hasSize: true,
|
|
202
255
|
},
|
|
203
|
-
{
|
|
256
|
+
{
|
|
257
|
+
id: "input-otp",
|
|
258
|
+
category: "Forms & Inputs",
|
|
204
259
|
label: "Input Otp",
|
|
205
260
|
hasMicro: true,
|
|
206
261
|
hasMacro: true,
|
|
207
262
|
status: "stable",
|
|
208
263
|
hasSize: true,
|
|
209
264
|
},
|
|
210
|
-
{
|
|
265
|
+
{
|
|
266
|
+
id: "item",
|
|
267
|
+
category: "Data Display",
|
|
268
|
+
label: "Item",
|
|
269
|
+
hasMicro: true,
|
|
270
|
+
hasMacro: false,
|
|
271
|
+
status: "stable",
|
|
211
272
|
hasSize: true,
|
|
212
273
|
},
|
|
213
|
-
{
|
|
274
|
+
{
|
|
275
|
+
id: "kbd",
|
|
276
|
+
category: "Data Display",
|
|
214
277
|
label: "Kbd",
|
|
215
278
|
hasMicro: true,
|
|
216
279
|
hasMacro: false,
|
|
217
280
|
status: "stable",
|
|
218
281
|
},
|
|
219
|
-
{
|
|
282
|
+
{
|
|
283
|
+
id: "label",
|
|
284
|
+
category: "Forms & Inputs",
|
|
220
285
|
label: "Label",
|
|
221
286
|
hasMicro: true,
|
|
222
287
|
hasMacro: false,
|
|
223
288
|
status: "stable",
|
|
224
289
|
hasSize: true,
|
|
225
290
|
},
|
|
226
|
-
{
|
|
227
|
-
|
|
291
|
+
{
|
|
292
|
+
id: "menubar",
|
|
293
|
+
category: "Navigation",
|
|
294
|
+
label: "Menubar",
|
|
295
|
+
hasMicro: true,
|
|
296
|
+
hasMacro: false,
|
|
297
|
+
status: "stable",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: "navigation-menu",
|
|
301
|
+
category: "Navigation",
|
|
228
302
|
label: "Navigation Menu",
|
|
229
303
|
hasMicro: true,
|
|
230
304
|
hasMacro: false,
|
|
231
305
|
status: "stable",
|
|
232
306
|
},
|
|
233
|
-
{
|
|
307
|
+
{
|
|
308
|
+
id: "pagination",
|
|
309
|
+
category: "Navigation",
|
|
310
|
+
label: "Pagination",
|
|
311
|
+
hasMicro: true,
|
|
312
|
+
hasMacro: true,
|
|
313
|
+
status: "stable",
|
|
234
314
|
hasSize: true,
|
|
235
315
|
},
|
|
236
|
-
{
|
|
316
|
+
{
|
|
317
|
+
id: "popover",
|
|
318
|
+
category: "Feedback & Overlays",
|
|
237
319
|
label: "Popover",
|
|
238
320
|
hasMicro: true,
|
|
239
321
|
hasMacro: false,
|
|
240
322
|
status: "stable",
|
|
241
323
|
hasSize: true,
|
|
242
324
|
},
|
|
243
|
-
{
|
|
325
|
+
{
|
|
326
|
+
id: "progress",
|
|
327
|
+
category: "Feedback & Overlays",
|
|
244
328
|
label: "Progress",
|
|
245
329
|
hasMicro: true,
|
|
246
330
|
hasMacro: true,
|
|
247
331
|
status: "stable",
|
|
248
332
|
hasSize: true,
|
|
249
333
|
},
|
|
250
|
-
{
|
|
334
|
+
{
|
|
335
|
+
id: "radio-group",
|
|
336
|
+
category: "Forms & Inputs",
|
|
251
337
|
label: "Radio Group",
|
|
252
338
|
hasMicro: true,
|
|
253
339
|
hasMacro: true,
|
|
254
340
|
status: "stable",
|
|
255
341
|
hasSize: true,
|
|
256
342
|
},
|
|
257
|
-
{
|
|
258
|
-
|
|
259
|
-
|
|
343
|
+
{
|
|
344
|
+
id: "resizable",
|
|
345
|
+
category: "Layout & Structure",
|
|
346
|
+
label: "Resizable",
|
|
347
|
+
hasMicro: true,
|
|
348
|
+
hasMacro: false,
|
|
349
|
+
status: "stable",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
id: "scroll-area",
|
|
353
|
+
category: "Layout & Structure",
|
|
354
|
+
label: "Scroll Area",
|
|
355
|
+
hasMicro: true,
|
|
356
|
+
hasMacro: false,
|
|
357
|
+
status: "stable",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id: "select",
|
|
361
|
+
category: "Forms & Inputs",
|
|
260
362
|
label: "Select",
|
|
261
363
|
hasMicro: true,
|
|
262
364
|
hasMacro: true,
|
|
263
365
|
status: "stable",
|
|
264
366
|
hasSize: true,
|
|
265
367
|
},
|
|
266
|
-
{
|
|
267
|
-
|
|
368
|
+
{
|
|
369
|
+
id: "separator",
|
|
370
|
+
category: "Layout & Structure",
|
|
371
|
+
label: "Separator",
|
|
372
|
+
hasMicro: true,
|
|
373
|
+
hasMacro: false,
|
|
374
|
+
status: "stable",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
id: "sheet",
|
|
378
|
+
category: "Feedback & Overlays",
|
|
268
379
|
label: "Sheet",
|
|
269
380
|
hasMicro: true,
|
|
270
381
|
hasMacro: false,
|
|
271
382
|
status: "stable",
|
|
272
383
|
hasSize: true,
|
|
273
384
|
},
|
|
274
|
-
{
|
|
275
|
-
|
|
385
|
+
{
|
|
386
|
+
id: "sidebar",
|
|
387
|
+
category: "Layout & Structure",
|
|
388
|
+
label: "Sidebar",
|
|
389
|
+
hasMicro: true,
|
|
390
|
+
hasMacro: false,
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
id: "skeleton",
|
|
394
|
+
category: "Feedback & Overlays",
|
|
276
395
|
label: "Skeleton",
|
|
277
396
|
hasMicro: true,
|
|
278
397
|
hasMacro: false,
|
|
279
398
|
status: "stable",
|
|
280
399
|
},
|
|
281
|
-
{
|
|
400
|
+
{
|
|
401
|
+
id: "slider",
|
|
402
|
+
category: "Forms & Inputs",
|
|
282
403
|
label: "Slider",
|
|
283
404
|
hasMicro: true,
|
|
284
405
|
hasMacro: true,
|
|
285
406
|
status: "stable",
|
|
286
407
|
hasSize: true,
|
|
287
408
|
},
|
|
288
|
-
{
|
|
289
|
-
|
|
409
|
+
{
|
|
410
|
+
id: "sonner",
|
|
411
|
+
category: "Feedback & Overlays",
|
|
412
|
+
label: "Sonner",
|
|
413
|
+
hasMicro: true,
|
|
414
|
+
hasMacro: false,
|
|
415
|
+
status: "stable",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
id: "spinner",
|
|
419
|
+
category: "Feedback & Overlays",
|
|
420
|
+
label: "Spinner",
|
|
421
|
+
hasMicro: true,
|
|
422
|
+
hasMacro: false,
|
|
423
|
+
status: "stable",
|
|
290
424
|
hasSize: true,
|
|
291
425
|
},
|
|
292
|
-
{
|
|
426
|
+
{
|
|
427
|
+
id: "switch",
|
|
428
|
+
category: "Forms & Inputs",
|
|
293
429
|
label: "Switch",
|
|
294
430
|
hasMicro: true,
|
|
295
431
|
hasMacro: true,
|
|
296
432
|
status: "stable",
|
|
297
433
|
hasSize: true,
|
|
298
434
|
},
|
|
299
|
-
{
|
|
435
|
+
{
|
|
436
|
+
id: "table",
|
|
437
|
+
category: "Layout & Structure",
|
|
300
438
|
label: "Table",
|
|
301
439
|
hasMicro: true,
|
|
302
440
|
hasMacro: false,
|
|
303
441
|
status: "stable",
|
|
304
442
|
},
|
|
305
|
-
{
|
|
443
|
+
{
|
|
444
|
+
id: "tabs",
|
|
445
|
+
category: "Navigation",
|
|
306
446
|
label: "Tabs",
|
|
307
447
|
hasMicro: true,
|
|
308
448
|
hasMacro: true,
|
|
309
449
|
status: "stable",
|
|
310
450
|
},
|
|
311
|
-
{
|
|
451
|
+
{
|
|
452
|
+
id: "textarea",
|
|
453
|
+
category: "Forms & Inputs",
|
|
312
454
|
label: "Textarea",
|
|
313
455
|
hasMicro: true,
|
|
314
456
|
hasMacro: true,
|
|
315
457
|
status: "stable",
|
|
316
458
|
hasSize: true,
|
|
317
459
|
},
|
|
318
|
-
{
|
|
460
|
+
{
|
|
461
|
+
id: "toggle",
|
|
462
|
+
category: "Forms & Inputs",
|
|
463
|
+
label: "Toggle",
|
|
464
|
+
hasMicro: true,
|
|
465
|
+
hasMacro: false,
|
|
466
|
+
status: "stable",
|
|
319
467
|
hasSize: true,
|
|
320
468
|
},
|
|
321
|
-
{
|
|
469
|
+
{
|
|
470
|
+
id: "toggle-group",
|
|
471
|
+
category: "Forms & Inputs",
|
|
322
472
|
label: "Toggle Group",
|
|
323
473
|
hasMicro: true,
|
|
324
474
|
hasMacro: false,
|
|
325
475
|
status: "stable",
|
|
326
476
|
hasSize: true,
|
|
327
477
|
},
|
|
328
|
-
{
|
|
478
|
+
{
|
|
479
|
+
id: "theme-provider",
|
|
480
|
+
category: "Data Display",
|
|
329
481
|
label: "Theme Provider",
|
|
330
482
|
hasMicro: true,
|
|
331
483
|
hasMacro: false,
|
|
332
484
|
status: "stable",
|
|
333
485
|
},
|
|
334
|
-
{
|
|
486
|
+
{
|
|
487
|
+
id: "tooltip",
|
|
488
|
+
category: "Feedback & Overlays",
|
|
335
489
|
label: "Tooltip",
|
|
336
490
|
hasMicro: true,
|
|
337
491
|
hasMacro: false,
|
package/src/dev/main.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
1
|
+
import { StrictMode, useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
|
|
2
5
|
import { ThemeProvider, useTheme } from "../components/micro/theme-provider";
|
|
3
6
|
import App from "../dev/App";
|
|
4
7
|
import { DevContextProvider } from "../dev/components/dev-context";
|
|
5
8
|
import "../dev/index.css";
|
|
6
|
-
import { StrictMode } from "react";
|
|
7
|
-
import { createRoot } from "react-dom/client";
|
|
8
9
|
|
|
9
10
|
/** Syncs the theme class to <html> — this is a Macro concern, done here for the dev playground. */
|
|
10
11
|
function RootThemeSync() {
|
|
@@ -27,4 +28,3 @@ createRoot(document.getElementById("root")!).render(
|
|
|
27
28
|
</ThemeProvider>
|
|
28
29
|
</StrictMode>,
|
|
29
30
|
);
|
|
30
|
-
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
BoxIcon,
|
|
5
|
+
CheckCircle2Icon,
|
|
6
|
+
LayersIcon,
|
|
7
|
+
PlusIcon,
|
|
8
|
+
SendIcon,
|
|
9
|
+
SettingsIcon,
|
|
10
|
+
ShieldAlertIcon,
|
|
11
|
+
Trash2Icon,
|
|
12
|
+
UserIcon,
|
|
13
|
+
} from "lucide-react";
|
|
14
|
+
|
|
1
15
|
import { SelectPreset } from "../../components/macro/select-preset";
|
|
2
16
|
import { Avatar, AvatarFallback } from "../../components/micro/avatar";
|
|
3
17
|
import { Button } from "../../components/micro/button";
|
|
@@ -10,18 +24,6 @@ import {
|
|
|
10
24
|
} from "../../components/micro/tooltip";
|
|
11
25
|
import { SectionHeader } from "../../dev/components/showcase";
|
|
12
26
|
import { Size } from "../../lib/types";
|
|
13
|
-
import {
|
|
14
|
-
BoxIcon,
|
|
15
|
-
CheckCircle2Icon,
|
|
16
|
-
LayersIcon,
|
|
17
|
-
PlusIcon,
|
|
18
|
-
SendIcon,
|
|
19
|
-
SettingsIcon,
|
|
20
|
-
ShieldAlertIcon,
|
|
21
|
-
Trash2Icon,
|
|
22
|
-
UserIcon,
|
|
23
|
-
} from "lucide-react";
|
|
24
|
-
import { useState } from "react";
|
|
25
27
|
|
|
26
28
|
export default function ButtonsSection() {
|
|
27
29
|
const [globalSize, setGlobalSize] = useState<Size>("md");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
CheckCircle2Icon,
|
|
3
5
|
FileX2Icon,
|
|
@@ -7,10 +9,13 @@ import {
|
|
|
7
9
|
TriangleAlertIcon,
|
|
8
10
|
XCircleIcon,
|
|
9
11
|
} from "lucide-react";
|
|
10
|
-
import { useState } from "react";
|
|
11
12
|
import { toast } from "sonner";
|
|
12
13
|
|
|
13
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
Alert,
|
|
16
|
+
AlertDescription,
|
|
17
|
+
AlertTitle,
|
|
18
|
+
} from "../../components/micro/alert";
|
|
14
19
|
import { Button } from "../../components/micro/button";
|
|
15
20
|
import {
|
|
16
21
|
Empty,
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
CalendarIcon,
|
|
5
|
+
LayoutTemplateIcon,
|
|
6
|
+
MousePointerClickIcon,
|
|
7
|
+
ToggleLeftIcon,
|
|
8
|
+
TriangleAlertIcon,
|
|
9
|
+
TypeIcon,
|
|
10
|
+
} from "lucide-react";
|
|
11
|
+
|
|
12
|
+
import { SelectPreset } from "../../components/macro/select-preset";
|
|
3
13
|
import { Alert, AlertDescription } from "../../components/micro/alert";
|
|
4
14
|
import { Calendar } from "../../components/micro/calendar";
|
|
5
15
|
import { Checkbox } from "../../components/micro/checkbox";
|
|
@@ -30,17 +40,6 @@ import {
|
|
|
30
40
|
InputOTPSlot,
|
|
31
41
|
} from "../../components/micro/input-otp";
|
|
32
42
|
import { Label } from "../../components/micro/label";
|
|
33
|
-
import { SectionHeader } from "../../dev/components/showcase";
|
|
34
|
-
import {
|
|
35
|
-
CalendarIcon,
|
|
36
|
-
LayoutTemplateIcon,
|
|
37
|
-
MousePointerClickIcon,
|
|
38
|
-
ToggleLeftIcon,
|
|
39
|
-
TriangleAlertIcon,
|
|
40
|
-
TypeIcon,
|
|
41
|
-
} from "lucide-react";
|
|
42
|
-
|
|
43
|
-
import { SelectPreset } from "../../components/macro/select-preset";
|
|
44
43
|
import { RadioGroup, RadioGroupItem } from "../../components/micro/radio-group";
|
|
45
44
|
import {
|
|
46
45
|
Select,
|
|
@@ -56,6 +55,7 @@ import { Separator } from "../../components/micro/separator";
|
|
|
56
55
|
import { Slider } from "../../components/micro/slider";
|
|
57
56
|
import { Switch } from "../../components/micro/switch";
|
|
58
57
|
import { Textarea } from "../../components/micro/textarea";
|
|
58
|
+
import { SectionHeader } from "../../dev/components/showcase";
|
|
59
59
|
import { Size } from "../../lib/types";
|
|
60
60
|
|
|
61
61
|
export default function FormsSection() {
|