@appcorp/shadcn 1.0.17 → 1.0.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/components/nav-main.d.ts
CHANGED
package/components/nav-main.js
CHANGED
|
@@ -18,12 +18,12 @@ function NavMain(_a) {
|
|
|
18
18
|
return (react_1.default.createElement(collapsible_1.Collapsible, { key: item.title, asChild: true, defaultOpen: item.isActive, className: "group/collapsible" },
|
|
19
19
|
react_1.default.createElement(sidebar_1.SidebarMenuItem, null,
|
|
20
20
|
react_1.default.createElement(collapsible_1.CollapsibleTrigger, { asChild: true },
|
|
21
|
-
react_1.default.createElement(sidebar_1.SidebarMenuButton, { tooltip: item.title, className: item.isActive ? "bg-gray-
|
|
21
|
+
react_1.default.createElement(sidebar_1.SidebarMenuButton, { tooltip: item.title, className: item.isActive ? "bg-gray-300" : "" },
|
|
22
22
|
item.icon && react_1.default.createElement(item.icon, null),
|
|
23
23
|
react_1.default.createElement("span", null, item.title),
|
|
24
24
|
(item === null || item === void 0 ? void 0 : item.subItems) && ((_a = item === null || item === void 0 ? void 0 : item.subItems) === null || _a === void 0 ? void 0 : _a.length) > 0 && (react_1.default.createElement(lucide_react_1.ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })))),
|
|
25
25
|
(item === null || item === void 0 ? void 0 : item.subItems) && ((_b = item === null || item === void 0 ? void 0 : item.subItems) === null || _b === void 0 ? void 0 : _b.length) > 0 && (react_1.default.createElement(collapsible_1.CollapsibleContent, null,
|
|
26
|
-
react_1.default.createElement(sidebar_1.SidebarMenuSub, null, (_c = item.subItems) === null || _c === void 0 ? void 0 : _c.map(function (subItem) { return (react_1.default.createElement(sidebar_1.SidebarMenuSubItem, { key: subItem.title },
|
|
26
|
+
react_1.default.createElement(sidebar_1.SidebarMenuSub, null, (_c = item.subItems) === null || _c === void 0 ? void 0 : _c.map(function (subItem) { return (react_1.default.createElement(sidebar_1.SidebarMenuSubItem, { key: subItem.title, className: "rounded-md ".concat(subItem.isActive ? "bg-gray-200" : "") },
|
|
27
27
|
react_1.default.createElement(sidebar_1.SidebarMenuSubButton, { asChild: true },
|
|
28
28
|
react_1.default.createElement("a", { href: subItem.url },
|
|
29
29
|
react_1.default.createElement("span", null, subItem.title))))); })))))));
|
package/data/admin-dashboard.js
CHANGED
|
@@ -35,50 +35,59 @@ exports.adminDashboardData = {
|
|
|
35
35
|
title: "Dashboard",
|
|
36
36
|
url: "",
|
|
37
37
|
icon: lucide_react_1.SquareTerminal,
|
|
38
|
-
isActive:
|
|
38
|
+
isActive: false,
|
|
39
39
|
subItems: [],
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
title: "Flashcard Category",
|
|
43
43
|
url: "#",
|
|
44
44
|
icon: lucide_react_1.Bot,
|
|
45
|
-
isActive:
|
|
45
|
+
isActive: true,
|
|
46
46
|
subItems: [
|
|
47
47
|
{
|
|
48
48
|
title: "Manage",
|
|
49
49
|
url: "",
|
|
50
|
+
isActive: true,
|
|
50
51
|
},
|
|
51
52
|
{
|
|
52
53
|
title: "Toddler / Early childhood",
|
|
53
54
|
url: "#",
|
|
55
|
+
isActive: false,
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
title: "Preschool / Pre-kindergarten",
|
|
57
59
|
url: "#",
|
|
60
|
+
isActive: false,
|
|
58
61
|
},
|
|
59
62
|
{
|
|
60
63
|
title: "Kindergarten",
|
|
61
64
|
url: "#",
|
|
65
|
+
isActive: false,
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
68
|
title: "Grade / Standard 1",
|
|
65
69
|
url: "#",
|
|
70
|
+
isActive: false,
|
|
66
71
|
},
|
|
67
72
|
{
|
|
68
73
|
title: "Grade / Standard 2",
|
|
69
74
|
url: "#",
|
|
75
|
+
isActive: false,
|
|
70
76
|
},
|
|
71
77
|
{
|
|
72
78
|
title: "Grade / Standard 3",
|
|
73
79
|
url: "#",
|
|
80
|
+
isActive: false,
|
|
74
81
|
},
|
|
75
82
|
{
|
|
76
83
|
title: "Grade / Standard 4",
|
|
77
84
|
url: "#",
|
|
85
|
+
isActive: false,
|
|
78
86
|
},
|
|
79
87
|
{
|
|
80
88
|
title: "Grade / Standard 5",
|
|
81
89
|
url: "#",
|
|
90
|
+
isActive: false,
|
|
82
91
|
},
|
|
83
92
|
],
|
|
84
93
|
},
|
|
@@ -91,34 +100,42 @@ exports.adminDashboardData = {
|
|
|
91
100
|
{
|
|
92
101
|
title: "Toddler / Early childhood",
|
|
93
102
|
url: "#",
|
|
103
|
+
isActive: false,
|
|
94
104
|
},
|
|
95
105
|
{
|
|
96
106
|
title: "Preschool / Pre-kindergarten",
|
|
97
107
|
url: "#",
|
|
108
|
+
isActive: false,
|
|
98
109
|
},
|
|
99
110
|
{
|
|
100
111
|
title: "Kindergarten",
|
|
101
112
|
url: "#",
|
|
113
|
+
isActive: false,
|
|
102
114
|
},
|
|
103
115
|
{
|
|
104
116
|
title: "Grade / Standard 1",
|
|
105
117
|
url: "#",
|
|
118
|
+
isActive: false,
|
|
106
119
|
},
|
|
107
120
|
{
|
|
108
121
|
title: "Grade / Standard 2",
|
|
109
122
|
url: "#",
|
|
123
|
+
isActive: false,
|
|
110
124
|
},
|
|
111
125
|
{
|
|
112
126
|
title: "Grade / Standard 3",
|
|
113
127
|
url: "#",
|
|
128
|
+
isActive: false,
|
|
114
129
|
},
|
|
115
130
|
{
|
|
116
131
|
title: "Grade / Standard 4",
|
|
117
132
|
url: "#",
|
|
133
|
+
isActive: false,
|
|
118
134
|
},
|
|
119
135
|
{
|
|
120
136
|
title: "Grade / Standard 5",
|
|
121
137
|
url: "#",
|
|
138
|
+
isActive: false,
|
|
122
139
|
},
|
|
123
140
|
],
|
|
124
141
|
},
|
|
@@ -131,18 +148,22 @@ exports.adminDashboardData = {
|
|
|
131
148
|
{
|
|
132
149
|
title: "Introduction",
|
|
133
150
|
url: "#",
|
|
151
|
+
isActive: false,
|
|
134
152
|
},
|
|
135
153
|
{
|
|
136
154
|
title: "Get Started",
|
|
137
155
|
url: "#",
|
|
156
|
+
isActive: false,
|
|
138
157
|
},
|
|
139
158
|
{
|
|
140
159
|
title: "Tutorials",
|
|
141
160
|
url: "#",
|
|
161
|
+
isActive: false,
|
|
142
162
|
},
|
|
143
163
|
{
|
|
144
164
|
title: "Changelog",
|
|
145
165
|
url: "#",
|
|
166
|
+
isActive: false,
|
|
146
167
|
},
|
|
147
168
|
],
|
|
148
169
|
},
|
|
@@ -155,10 +176,12 @@ exports.adminDashboardData = {
|
|
|
155
176
|
{
|
|
156
177
|
title: "General",
|
|
157
178
|
url: "#",
|
|
179
|
+
isActive: false,
|
|
158
180
|
},
|
|
159
181
|
{
|
|
160
182
|
title: "Kids",
|
|
161
183
|
url: "#",
|
|
184
|
+
isActive: false,
|
|
162
185
|
},
|
|
163
186
|
],
|
|
164
187
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/shadcn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:next": "next build",
|
|
6
6
|
"build:storybook": "storybook build -c .storybook -o .out",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@testing-library/jest-dom": "^6.9.1",
|
|
58
58
|
"@testing-library/react": "^16.3.0",
|
|
59
59
|
"@testing-library/user-event": "^14.6.1",
|
|
60
|
+
"@types/color": "^4.2.0",
|
|
60
61
|
"@types/jest": "^30.0.0",
|
|
61
62
|
"@types/lodash.throttle": "^4",
|
|
62
63
|
"@types/node": "^24.7.2",
|