@c-rex/components 0.0.9 → 0.0.10
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/package.json +28 -46
- package/src/autocomplete.tsx +113 -0
- package/src/blog-card.tsx +87 -0
- package/src/blur-image.tsx +23 -0
- package/src/breadcrumb.tsx +81 -0
- package/src/empty.tsx +13 -0
- package/src/navbar.tsx +66 -0
- package/src/providers/search-state-wrapper.tsx +21 -0
- package/src/result-list.tsx +16 -0
- package/src/result-view/blog-view.stories.tsx +58 -0
- package/src/result-view/blog.tsx +38 -0
- package/src/result-view/table-view.stories.tsx +55 -0
- package/src/result-view/table.tsx +65 -0
- package/src/sidebar.tsx +76 -0
- package/src/stories/blog-card.stories.tsx +46 -0
- package/src/stories/blur-image.stories.tsx +51 -0
- package/src/stories/breadcrumb.stories.tsx +52 -0
- package/src/stories/empty.stories.tsx +14 -0
- package/src/stories/navbar.stories.tsx +16 -0
- package/src/stories/sidebar.stories.tsx +94 -0
- package/dist/autocomplete.cjs.js +0 -215
- package/dist/autocomplete.cjs.js.map +0 -1
- package/dist/autocomplete.d.cts +0 -10
- package/dist/autocomplete.d.ts +0 -10
- package/dist/autocomplete.esm.js +0 -154
- package/dist/autocomplete.esm.js.map +0 -1
- package/dist/blog-card.cjs.js +0 -265
- package/dist/blog-card.cjs.js.map +0 -1
- package/dist/blog-card.d.cts +0 -19
- package/dist/blog-card.d.ts +0 -19
- package/dist/blog-card.esm.js +0 -192
- package/dist/blog-card.esm.js.map +0 -1
- package/dist/blur-image.cjs.js +0 -198
- package/dist/blur-image.cjs.js.map +0 -1
- package/dist/blur-image.d.cts +0 -7
- package/dist/blur-image.d.ts +0 -7
- package/dist/blur-image.esm.js +0 -125
- package/dist/blur-image.esm.js.map +0 -1
- package/dist/breadcrumb.cjs.js +0 -159
- package/dist/breadcrumb.cjs.js.map +0 -1
- package/dist/breadcrumb.d.cts +0 -10
- package/dist/breadcrumb.d.ts +0 -10
- package/dist/breadcrumb.esm.js +0 -98
- package/dist/breadcrumb.esm.js.map +0 -1
- package/dist/empty.cjs.js +0 -79
- package/dist/empty.cjs.js.map +0 -1
- package/dist/empty.d.cts +0 -5
- package/dist/empty.d.ts +0 -5
- package/dist/empty.esm.js +0 -18
- package/dist/empty.esm.js.map +0 -1
- package/dist/navbar.cjs.js +0 -134
- package/dist/navbar.cjs.js.map +0 -1
- package/dist/navbar.d.cts +0 -9
- package/dist/navbar.d.ts +0 -9
- package/dist/navbar.esm.js +0 -61
- package/dist/navbar.esm.js.map +0 -1
- package/dist/providers/search-state-wrapper.cjs.js +0 -113
- package/dist/providers/search-state-wrapper.cjs.js.map +0 -1
- package/dist/providers/search-state-wrapper.d.cts +0 -14
- package/dist/providers/search-state-wrapper.d.ts +0 -14
- package/dist/providers/search-state-wrapper.esm.js +0 -51
- package/dist/providers/search-state-wrapper.esm.js.map +0 -1
- package/dist/result-list.cjs.js +0 -321
- package/dist/result-list.cjs.js.map +0 -1
- package/dist/result-list.d.cts +0 -9
- package/dist/result-list.d.ts +0 -9
- package/dist/result-list.esm.js +0 -247
- package/dist/result-list.esm.js.map +0 -1
- package/dist/result-view/blog-view.stories.cjs.js +0 -372
- package/dist/result-view/blog-view.stories.cjs.js.map +0 -1
- package/dist/result-view/blog-view.stories.d.cts +0 -11
- package/dist/result-view/blog-view.stories.d.ts +0 -11
- package/dist/result-view/blog-view.stories.esm.js +0 -295
- package/dist/result-view/blog-view.stories.esm.js.map +0 -1
- package/dist/result-view/blog.cjs.js +0 -290
- package/dist/result-view/blog.cjs.js.map +0 -1
- package/dist/result-view/blog.d.cts +0 -9
- package/dist/result-view/blog.d.ts +0 -9
- package/dist/result-view/blog.esm.js +0 -220
- package/dist/result-view/blog.esm.js.map +0 -1
- package/dist/result-view/table-view.stories.cjs.js +0 -196
- package/dist/result-view/table-view.stories.cjs.js.map +0 -1
- package/dist/result-view/table-view.stories.d.cts +0 -11
- package/dist/result-view/table-view.stories.d.ts +0 -11
- package/dist/result-view/table-view.stories.esm.js +0 -131
- package/dist/result-view/table-view.stories.esm.js.map +0 -1
- package/dist/result-view/table.cjs.js +0 -116
- package/dist/result-view/table.cjs.js.map +0 -1
- package/dist/result-view/table.d.cts +0 -9
- package/dist/result-view/table.d.ts +0 -9
- package/dist/result-view/table.esm.js +0 -59
- package/dist/result-view/table.esm.js.map +0 -1
- package/dist/sidebar.cjs.js +0 -225
- package/dist/sidebar.cjs.js.map +0 -1
- package/dist/sidebar.d.cts +0 -12
- package/dist/sidebar.d.ts +0 -12
- package/dist/sidebar.esm.js +0 -164
- package/dist/sidebar.esm.js.map +0 -1
- package/dist/stories/blog-card.stories.cjs.js +0 -323
- package/dist/stories/blog-card.stories.cjs.js.map +0 -1
- package/dist/stories/blog-card.stories.d.cts +0 -9
- package/dist/stories/blog-card.stories.d.ts +0 -9
- package/dist/stories/blog-card.stories.esm.js +0 -242
- package/dist/stories/blog-card.stories.esm.js.map +0 -1
- package/dist/stories/blur-image.stories.cjs.js +0 -265
- package/dist/stories/blur-image.stories.cjs.js.map +0 -1
- package/dist/stories/blur-image.stories.d.cts +0 -37
- package/dist/stories/blur-image.stories.d.ts +0 -37
- package/dist/stories/blur-image.stories.esm.js +0 -180
- package/dist/stories/blur-image.stories.esm.js.map +0 -1
- package/dist/stories/breadcrumb.stories.cjs.js +0 -214
- package/dist/stories/breadcrumb.stories.cjs.js.map +0 -1
- package/dist/stories/breadcrumb.stories.d.cts +0 -9
- package/dist/stories/breadcrumb.stories.d.ts +0 -9
- package/dist/stories/breadcrumb.stories.esm.js +0 -145
- package/dist/stories/breadcrumb.stories.esm.js.map +0 -1
- package/dist/stories/empty.stories.cjs.js +0 -93
- package/dist/stories/empty.stories.cjs.js.map +0 -1
- package/dist/stories/empty.stories.d.cts +0 -13
- package/dist/stories/empty.stories.d.ts +0 -13
- package/dist/stories/empty.stories.esm.js +0 -28
- package/dist/stories/empty.stories.esm.js.map +0 -1
- package/dist/stories/navbar.stories.cjs.js +0 -151
- package/dist/stories/navbar.stories.cjs.js.map +0 -1
- package/dist/stories/navbar.stories.d.cts +0 -8
- package/dist/stories/navbar.stories.d.ts +0 -8
- package/dist/stories/navbar.stories.esm.js +0 -74
- package/dist/stories/navbar.stories.esm.js.map +0 -1
- package/dist/stories/sidebar.stories.cjs.js +0 -327
- package/dist/stories/sidebar.stories.cjs.js.map +0 -1
- package/dist/stories/sidebar.stories.d.cts +0 -30
- package/dist/stories/sidebar.stories.d.ts +0 -30
- package/dist/stories/sidebar.stories.esm.js +0 -258
- package/dist/stories/sidebar.stories.esm.js.map +0 -1
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _define_property(obj, key, value) {
|
|
3
|
-
if (key in obj) {
|
|
4
|
-
Object.defineProperty(obj, key, {
|
|
5
|
-
value: value,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
obj[key] = value;
|
|
12
|
-
}
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
function _object_spread(target) {
|
|
16
|
-
for(var i = 1; i < arguments.length; i++){
|
|
17
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
18
|
-
var ownKeys = Object.keys(source);
|
|
19
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
20
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
21
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
ownKeys.forEach(function(key) {
|
|
25
|
-
_define_property(target, key, source[key]);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
}
|
|
30
|
-
function ownKeys(object, enumerableOnly) {
|
|
31
|
-
var keys = Object.keys(object);
|
|
32
|
-
if (Object.getOwnPropertySymbols) {
|
|
33
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
-
if (enumerableOnly) {
|
|
35
|
-
symbols = symbols.filter(function(sym) {
|
|
36
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
keys.push.apply(keys, symbols);
|
|
40
|
-
}
|
|
41
|
-
return keys;
|
|
42
|
-
}
|
|
43
|
-
function _object_spread_props(target, source) {
|
|
44
|
-
source = source != null ? source : {};
|
|
45
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
46
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
47
|
-
} else {
|
|
48
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
49
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return target;
|
|
53
|
-
}
|
|
54
|
-
function _object_without_properties(source, excluded) {
|
|
55
|
-
if (source == null) return {};
|
|
56
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
57
|
-
var key, i;
|
|
58
|
-
if (Object.getOwnPropertySymbols) {
|
|
59
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
60
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
61
|
-
key = sourceSymbolKeys[i];
|
|
62
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
63
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
64
|
-
target[key] = source[key];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return target;
|
|
68
|
-
}
|
|
69
|
-
function _object_without_properties_loose(source, excluded) {
|
|
70
|
-
if (source == null) return {};
|
|
71
|
-
var target = {};
|
|
72
|
-
var sourceKeys = Object.keys(source);
|
|
73
|
-
var key, i;
|
|
74
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
75
|
-
key = sourceKeys[i];
|
|
76
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
77
|
-
target[key] = source[key];
|
|
78
|
-
}
|
|
79
|
-
return target;
|
|
80
|
-
}
|
|
81
|
-
function _type_of(obj) {
|
|
82
|
-
"@swc/helpers - typeof";
|
|
83
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
84
|
-
}
|
|
85
|
-
var __defProp = Object.defineProperty;
|
|
86
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
87
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
88
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
89
|
-
var __export = function(target, all) {
|
|
90
|
-
for(var name in all)__defProp(target, name, {
|
|
91
|
-
get: all[name],
|
|
92
|
-
enumerable: true
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
var __copyProps = function(to, from, except, desc) {
|
|
96
|
-
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
97
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
98
|
-
try {
|
|
99
|
-
var _loop = function() {
|
|
100
|
-
var key = _step.value;
|
|
101
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
102
|
-
get: function() {
|
|
103
|
-
return from[key];
|
|
104
|
-
},
|
|
105
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
109
|
-
} catch (err) {
|
|
110
|
-
_didIteratorError = true;
|
|
111
|
-
_iteratorError = err;
|
|
112
|
-
} finally{
|
|
113
|
-
try {
|
|
114
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
115
|
-
_iterator.return();
|
|
116
|
-
}
|
|
117
|
-
} finally{
|
|
118
|
-
if (_didIteratorError) {
|
|
119
|
-
throw _iteratorError;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return to;
|
|
125
|
-
};
|
|
126
|
-
var __toCommonJS = function(mod) {
|
|
127
|
-
return __copyProps(__defProp({}, "__esModule", {
|
|
128
|
-
value: true
|
|
129
|
-
}), mod);
|
|
130
|
-
};
|
|
131
|
-
// src/stories/sidebar.stories.tsx
|
|
132
|
-
var sidebar_stories_exports = {};
|
|
133
|
-
__export(sidebar_stories_exports, {
|
|
134
|
-
Default: function() {
|
|
135
|
-
return Default;
|
|
136
|
-
},
|
|
137
|
-
Loading: function() {
|
|
138
|
-
return Loading;
|
|
139
|
-
},
|
|
140
|
-
default: function() {
|
|
141
|
-
return sidebar_stories_default;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
module.exports = __toCommonJS(sidebar_stories_exports);
|
|
145
|
-
// src/sidebar.tsx
|
|
146
|
-
var import_sidebar = require("@c-rex/ui/sidebar");
|
|
147
|
-
var import_skeleton = require("@c-rex/ui/skeleton");
|
|
148
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
149
|
-
function AppSidebar(_param) {
|
|
150
|
-
var data = _param.data, loading = _param.loading, props = _object_without_properties(_param, [
|
|
151
|
-
"data",
|
|
152
|
-
"loading"
|
|
153
|
-
]);
|
|
154
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sidebar.Sidebar, _object_spread_props(_object_spread({
|
|
155
|
-
collapsible: "icon"
|
|
156
|
-
}, props), {
|
|
157
|
-
className: "top-20",
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarContent, {
|
|
160
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarGroup, {
|
|
161
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenu, {
|
|
162
|
-
className: "pt-4",
|
|
163
|
-
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
164
|
-
children: [
|
|
165
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
166
|
-
className: "w-auto h-10 mb-2"
|
|
167
|
-
}),
|
|
168
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
169
|
-
className: "w-auto h-10 mb-2"
|
|
170
|
-
}),
|
|
171
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
172
|
-
className: "w-auto h-10 mb-2 ml-8"
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
175
|
-
className: "w-auto h-10 mb-2 ml-8"
|
|
176
|
-
}),
|
|
177
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
178
|
-
className: "w-auto h-10 mb-2 ml-8"
|
|
179
|
-
}),
|
|
180
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
181
|
-
className: "w-auto h-10 mb-2 ml-8"
|
|
182
|
-
}),
|
|
183
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, {
|
|
184
|
-
className: "w-auto h-10 mb-2"
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
188
|
-
children: data.map(function(item) {
|
|
189
|
-
var _item_children;
|
|
190
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sidebar.SidebarMenuItem, {
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuButton, {
|
|
193
|
-
asChild: true,
|
|
194
|
-
isActive: item.active,
|
|
195
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
196
|
-
href: item.link,
|
|
197
|
-
title: item.label,
|
|
198
|
-
children: item.label
|
|
199
|
-
})
|
|
200
|
-
}),
|
|
201
|
-
((_item_children = item.children) === null || _item_children === void 0 ? void 0 : _item_children.length) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuSub, {
|
|
202
|
-
children: item.children.map(function(item2) {
|
|
203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuSubItem, {
|
|
204
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuSubButton, {
|
|
205
|
-
asChild: true,
|
|
206
|
-
isActive: item2.active,
|
|
207
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
208
|
-
href: item2.link,
|
|
209
|
-
title: item2.label,
|
|
210
|
-
children: item2.label
|
|
211
|
-
})
|
|
212
|
-
})
|
|
213
|
-
}, item2.label);
|
|
214
|
-
})
|
|
215
|
-
}) : null
|
|
216
|
-
]
|
|
217
|
-
}, item.id);
|
|
218
|
-
})
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
})
|
|
222
|
-
}),
|
|
223
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarRail, {})
|
|
224
|
-
]
|
|
225
|
-
}));
|
|
226
|
-
}
|
|
227
|
-
// src/stories/sidebar.stories.tsx
|
|
228
|
-
var import_sidebar3 = require("@c-rex/ui/sidebar");
|
|
229
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
230
|
-
var meta = {
|
|
231
|
-
title: "Components/Sidebar",
|
|
232
|
-
component: AppSidebar,
|
|
233
|
-
tags: [
|
|
234
|
-
"autodocs"
|
|
235
|
-
],
|
|
236
|
-
parameters: {
|
|
237
|
-
layout: "centered"
|
|
238
|
-
},
|
|
239
|
-
argTypes: {
|
|
240
|
-
data: {
|
|
241
|
-
control: "object"
|
|
242
|
-
},
|
|
243
|
-
loading: {
|
|
244
|
-
control: "boolean"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
decorators: [
|
|
248
|
-
function(Story) {
|
|
249
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_sidebar3.SidebarProvider, {
|
|
250
|
-
children: [
|
|
251
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sidebar3.SidebarTrigger, {}),
|
|
252
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", {
|
|
253
|
-
className: "flex",
|
|
254
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sidebar3.SidebarInset, {
|
|
255
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Story, {})
|
|
256
|
-
})
|
|
257
|
-
})
|
|
258
|
-
]
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
};
|
|
263
|
-
var sidebar_stories_default = meta;
|
|
264
|
-
var mockData = [
|
|
265
|
-
{
|
|
266
|
-
id: "1",
|
|
267
|
-
label: "Getting Started",
|
|
268
|
-
link: "/docs/getting-started",
|
|
269
|
-
active: true,
|
|
270
|
-
children: [
|
|
271
|
-
{
|
|
272
|
-
id: "1-1",
|
|
273
|
-
label: "Installation",
|
|
274
|
-
link: "/docs/getting-started/installation",
|
|
275
|
-
active: false,
|
|
276
|
-
children: []
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: "1-2",
|
|
280
|
-
label: "Configuration",
|
|
281
|
-
link: "/docs/getting-started/configuration",
|
|
282
|
-
active: false,
|
|
283
|
-
children: []
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
id: "2",
|
|
289
|
-
label: "Components",
|
|
290
|
-
link: "/docs/components",
|
|
291
|
-
active: false,
|
|
292
|
-
children: [
|
|
293
|
-
{
|
|
294
|
-
id: "2-1",
|
|
295
|
-
label: "Sidebar",
|
|
296
|
-
link: "/docs/components/sidebar",
|
|
297
|
-
active: false,
|
|
298
|
-
children: []
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
id: "2-2",
|
|
302
|
-
label: "Navbar",
|
|
303
|
-
link: "/docs/components/navbar",
|
|
304
|
-
active: false,
|
|
305
|
-
children: []
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
];
|
|
310
|
-
var Default = {
|
|
311
|
-
args: {
|
|
312
|
-
data: mockData,
|
|
313
|
-
loading: false
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
var Loading = {
|
|
317
|
-
args: {
|
|
318
|
-
data: [],
|
|
319
|
-
loading: true
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
323
|
-
0 && (module.exports = {
|
|
324
|
-
Default: Default,
|
|
325
|
-
Loading: Loading
|
|
326
|
-
});
|
|
327
|
-
//# sourceMappingURL=sidebar.stories.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/periotto/Desktop/workspace/c-rex.net-web-client-foundation/packages/components/dist/stories/sidebar.stories.cjs.js","../../src/stories/sidebar.stories.tsx","../../src/sidebar.tsx"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","sidebar_stories_exports","Default","Loading","default","sidebar_stories_default","module","exports","import_sidebar","require","import_skeleton","import_jsx_runtime","AppSidebar","data","loading","props","jsxs","Sidebar","collapsible","className","children","jsx","SidebarContent","SidebarGroup","SidebarMenu","Fragment","Skeleton","map","item","SidebarMenuItem","SidebarMenuButton","asChild","isActive","active","href","link","title","label","length","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton","id","SidebarRail","meta","component","tags","parameters","layout","argTypes","control","decorators","Story","import_jsx_runtime2","import_sidebar3","SidebarProvider","SidebarTrigger","SidebarInset","mockData","args"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB;AAClD,IAAIC,eAAeN,OAAOO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfZ,UAAUW,QAAQE,MAAM;QAAEC,KAAKF,GAAG,CAACC,KAAK;QAAEE,YAAY;IAAK;AAC/D;AACA,IAAIC,cAAc,SAACC,IAAIC,MAAMC,QAAQC;IACnC,IAAIF,QAAQ,CAAA,OAAOA,qCAAP,SAAOA,KAAG,MAAM,YAAY,OAAOA,SAAS,YAAY;YAC7D,kCAAA,2BAAA;;;gBAAA,IAAIG,MAAJ;gBACH,IAAI,CAACd,aAAae,IAAI,CAACL,IAAII,QAAQA,QAAQF,QACzCnB,UAAUiB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOjB,iBAAiBe,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWV,kBAAkBa,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,eAAe,SAACC;WAAQR,YAAYhB,UAAU,CAAC,GAAG,cAAc;QAAEyB,OAAO;IAAK,IAAID;;AAEtF,kCAAkC;ACnBlC,IAAAE,0BAAA,CAAA;AAAAhB,SAAAgB,y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ACNF,QAAQ;gBACRb,UAAU,EAAC;YACf;SACJ;IACJ;IACA;QACIsB,IAAI;QACJL,OAAO;QACPF,MAAM;QACNF,QAAQ;QACRb,UAAU;YACN;gBACIsB,IAAI;gBACJL,OAAO;gBACPF,MAAM;gBACNF,QAAQ;gBACRb,UAAU,EAAC;YACf;YACA;gBACIsB,IAAI;gBACJL,OAAO;gBACPF,MAAM;gBACNF,QAAQ;gBACRb,UAAU,EAAC;YACf;SACJ;IACJ;CACJ;AAEO,IAAMlB,UAAiB;IAC1ByD,MAAM;QACF9C,MAAM6C;QACN5C,SAAS;IACb;AACJ;AAEO,IAAMX,UAAiB;IAC1BwD,MAAM;QACF9C,MAAM,EAAC;QACPC,SAAS;IACb;AACJ;AD4CA,6DAA6D;AAC7D,KAAMR,CAAAA,OAAOC,OAAO,GAAG;IACrBL,SAAAA;IACAC,SAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/stories/sidebar.stories.tsx\nvar sidebar_stories_exports = {};\n__export(sidebar_stories_exports, {\n Default: () => Default,\n Loading: () => Loading,\n default: () => sidebar_stories_default\n});\nmodule.exports = __toCommonJS(sidebar_stories_exports);\n\n// src/sidebar.tsx\nvar import_sidebar = require(\"@c-rex/ui/sidebar\");\nvar import_skeleton = require(\"@c-rex/ui/skeleton\");\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nfunction AppSidebar({ data, loading, ...props }) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sidebar.Sidebar, { collapsible: \"icon\", ...props, className: \"top-20\", children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenu, { className: \"pt-4\", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2 ml-8\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2 ml-8\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2 ml-8\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2 ml-8\" }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: \"w-auto h-10 mb-2\" })\n ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: data.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sidebar.SidebarMenuItem, { children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuButton, { asChild: true, isActive: item.active, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"a\", { href: item.link, title: item.label, children: item.label }) }),\n item.children?.length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuSub, { children: item.children.map((item2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarMenuSubItem, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\n import_sidebar.SidebarMenuSubButton,\n {\n asChild: true,\n isActive: item2.active,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"a\", { href: item2.link, title: item2.label, children: item2.label })\n }\n ) }, item2.label)) }) : null\n ] }, item.id)) }) }) }) }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.SidebarRail, {})\n ] });\n}\n\n// src/stories/sidebar.stories.tsx\nvar import_sidebar3 = require(\"@c-rex/ui/sidebar\");\nvar import_jsx_runtime2 = require(\"react/jsx-runtime\");\nvar meta = {\n title: \"Components/Sidebar\",\n component: AppSidebar,\n tags: [\"autodocs\"],\n parameters: {\n layout: \"centered\"\n },\n argTypes: {\n data: { control: \"object\" },\n loading: { control: \"boolean\" }\n },\n decorators: [\n (Story) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_sidebar3.SidebarProvider, { children: [\n /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sidebar3.SidebarTrigger, {}),\n /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\"div\", { className: \"flex\", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sidebar3.SidebarInset, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Story, {}) }) })\n ] })\n ]\n};\nvar sidebar_stories_default = meta;\nvar mockData = [\n {\n id: \"1\",\n label: \"Getting Started\",\n link: \"/docs/getting-started\",\n active: true,\n children: [\n {\n id: \"1-1\",\n label: \"Installation\",\n link: \"/docs/getting-started/installation\",\n active: false,\n children: []\n },\n {\n id: \"1-2\",\n label: \"Configuration\",\n link: \"/docs/getting-started/configuration\",\n active: false,\n children: []\n }\n ]\n },\n {\n id: \"2\",\n label: \"Components\",\n link: \"/docs/components\",\n active: false,\n children: [\n {\n id: \"2-1\",\n label: \"Sidebar\",\n link: \"/docs/components/sidebar\",\n active: false,\n children: []\n },\n {\n id: \"2-2\",\n label: \"Navbar\",\n link: \"/docs/components/navbar\",\n active: false,\n children: []\n }\n ]\n }\n];\nvar Default = {\n args: {\n data: mockData,\n loading: false\n }\n};\nvar Loading = {\n args: {\n data: [],\n loading: true\n }\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n Default,\n Loading\n});\n","import type { Meta, StoryObj } from '@storybook/react';\nimport { AppSidebar } from '../sidebar';\nimport { SidebarInset, SidebarProvider, SidebarTrigger } from \"@c-rex/ui/sidebar\";\n\nconst meta = {\n title: 'Components/Sidebar',\n component: AppSidebar,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n argTypes: {\n data: { control: 'object' },\n loading: { control: 'boolean' },\n },\n decorators: [\n (Story: any) => (\n <SidebarProvider>\n <SidebarTrigger />\n\n <div className=\"flex\">\n <SidebarInset>\n <Story />\n </SidebarInset>\n </div>\n </SidebarProvider>\n\n ),\n ]\n} satisfies Meta<typeof AppSidebar>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nconst mockData = [\n {\n id: '1',\n label: 'Getting Started',\n link: '/docs/getting-started',\n active: true,\n children: [\n {\n id: '1-1',\n label: 'Installation',\n link: '/docs/getting-started/installation',\n active: false,\n children: [],\n },\n {\n id: '1-2',\n label: 'Configuration',\n link: '/docs/getting-started/configuration',\n active: false,\n children: [],\n },\n ],\n },\n {\n id: '2',\n label: 'Components',\n link: '/docs/components',\n active: false,\n children: [\n {\n id: '2-1',\n label: 'Sidebar',\n link: '/docs/components/sidebar',\n active: false,\n children: [],\n },\n {\n id: '2-2',\n label: 'Navbar',\n link: '/docs/components/navbar',\n active: false,\n children: [],\n },\n ],\n },\n];\n\nexport const Default: Story = {\n args: {\n data: mockData,\n loading: false,\n },\n};\n\nexport const Loading: Story = {\n args: {\n data: [],\n loading: true,\n },\n};","\"use client\";\n\nimport { ComponentProps } from \"react\";\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarRail\n} from \"@c-rex/ui/sidebar\";\nimport { Skeleton } from \"@c-rex/ui/skeleton\";\nimport { TreeOfContent } from \"@c-rex/interfaces\";\n\ninterface SidebarProps extends ComponentProps<typeof Sidebar> {\n data: TreeOfContent[];\n loading?: boolean;\n}\n\nexport function AppSidebar({ data, loading, ...props }: SidebarProps) {\n return (\n <Sidebar collapsible=\"icon\" {...props} className=\"top-20\">\n <SidebarContent>\n <SidebarGroup>\n <SidebarMenu className=\"pt-4\">\n {loading ? (\n <>\n <Skeleton className=\"w-auto h-10 mb-2\" />\n <Skeleton className=\"w-auto h-10 mb-2\" />\n <Skeleton className=\"w-auto h-10 mb-2 ml-8\" />\n <Skeleton className=\"w-auto h-10 mb-2 ml-8\" />\n <Skeleton className=\"w-auto h-10 mb-2 ml-8\" />\n <Skeleton className=\"w-auto h-10 mb-2 ml-8\" />\n <Skeleton className=\"w-auto h-10 mb-2\" />\n </>\n ) : (\n <>\n {data.map((item) => (\n <SidebarMenuItem key={item.id}>\n <SidebarMenuButton asChild isActive={item.active}>\n <a href={item.link} title={item.label}>\n {item.label}\n </a>\n </SidebarMenuButton>\n\n {item.children?.length ? (\n <SidebarMenuSub>\n {item.children.map((item) => (\n <SidebarMenuSubItem key={item.label}>\n <SidebarMenuSubButton\n asChild\n isActive={item.active}\n >\n <a href={item.link} title={item.label}>\n {item.label}\n </a>\n </SidebarMenuSubButton>\n </SidebarMenuSubItem>\n ))}\n </SidebarMenuSub>\n ) : null}\n </SidebarMenuItem>\n ))}\n </>\n )}\n </SidebarMenu>\n </SidebarGroup>\n </SidebarContent>\n <SidebarRail />\n </Sidebar>\n );\n}\n"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { AppSidebar } from '../sidebar.cjs';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@c-rex/ui/sidebar';
|
|
6
|
-
import '@c-rex/interfaces';
|
|
7
|
-
|
|
8
|
-
declare const meta: {
|
|
9
|
-
title: string;
|
|
10
|
-
component: typeof AppSidebar;
|
|
11
|
-
tags: string[];
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: string;
|
|
14
|
-
};
|
|
15
|
-
argTypes: {
|
|
16
|
-
data: {
|
|
17
|
-
control: "object";
|
|
18
|
-
};
|
|
19
|
-
loading: {
|
|
20
|
-
control: "boolean";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
decorators: ((Story: any) => react_jsx_runtime.JSX.Element)[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type Story = StoryObj<typeof meta>;
|
|
27
|
-
declare const Default: Story;
|
|
28
|
-
declare const Loading: Story;
|
|
29
|
-
|
|
30
|
-
export { Default, Loading, meta as default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { AppSidebar } from '../sidebar.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@c-rex/ui/sidebar';
|
|
6
|
-
import '@c-rex/interfaces';
|
|
7
|
-
|
|
8
|
-
declare const meta: {
|
|
9
|
-
title: string;
|
|
10
|
-
component: typeof AppSidebar;
|
|
11
|
-
tags: string[];
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: string;
|
|
14
|
-
};
|
|
15
|
-
argTypes: {
|
|
16
|
-
data: {
|
|
17
|
-
control: "object";
|
|
18
|
-
};
|
|
19
|
-
loading: {
|
|
20
|
-
control: "boolean";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
decorators: ((Story: any) => react_jsx_runtime.JSX.Element)[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type Story = StoryObj<typeof meta>;
|
|
27
|
-
declare const Default: Story;
|
|
28
|
-
declare const Loading: Story;
|
|
29
|
-
|
|
30
|
-
export { Default, Loading, meta as default };
|