@cck-ui/core 0.26.0 → 0.27.0
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/cjs/components/breadcrumbs/breadcrumbs.cjs +445 -0
- package/cjs/components/breadcrumbs/breadcrumbs.cjs.map +1 -0
- package/cjs/components/breadcrumbs/breadcrumbs.module.cjs +11 -0
- package/cjs/components/breadcrumbs/breadcrumbs.module.cjs.map +1 -0
- package/cjs/components/breadcrumbs/breadcrumbs.utils.cjs +8 -0
- package/cjs/components/breadcrumbs/breadcrumbs.utils.cjs.map +1 -0
- package/cjs/components/breadcrumbs/filter-falsy-children/filter-falsy-children.cjs +17 -0
- package/cjs/components/breadcrumbs/filter-falsy-children/filter-falsy-children.cjs.map +1 -0
- package/cjs/components/breadcrumbs/index.cjs +14 -0
- package/cjs/components/breadcrumbs/index.cjs.map +1 -0
- package/cjs/components/group/group.cjs +14 -11
- package/cjs/components/group/group.cjs.map +1 -1
- package/cjs/index.cjs +85 -82
- package/cjs/index.cjs.map +1 -1
- package/esm/components/breadcrumbs/breadcrumbs.mjs +443 -0
- package/esm/components/breadcrumbs/breadcrumbs.mjs.map +1 -0
- package/esm/components/breadcrumbs/breadcrumbs.module.mjs +11 -0
- package/esm/components/breadcrumbs/breadcrumbs.module.mjs.map +1 -0
- package/esm/components/breadcrumbs/breadcrumbs.utils.mjs +9 -0
- package/esm/components/breadcrumbs/breadcrumbs.utils.mjs.map +1 -0
- package/esm/components/breadcrumbs/filter-falsy-children/filter-falsy-children.mjs +17 -0
- package/esm/components/breadcrumbs/filter-falsy-children/filter-falsy-children.mjs.map +1 -0
- package/esm/components/breadcrumbs/index.mjs +11 -0
- package/esm/components/breadcrumbs/index.mjs.map +1 -0
- package/esm/components/group/group.mjs +15 -12
- package/esm/components/group/group.mjs.map +1 -1
- package/esm/index.mjs +3 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.types.d.ts +25 -0
- package/lib/components/breadcrumbs/breadcrumbs.utils.d.ts +6 -0
- package/lib/components/breadcrumbs/filter-falsy-children/filter-falsy-children.d.ts +2 -0
- package/lib/components/breadcrumbs/index.d.ts +6 -0
- package/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/styles/breadcrumbs.css +27 -0
- package/styles/breadcrumbs.layer.css +28 -0
- package/styles.css +28 -0
- package/styles.layer.css +28 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
|
|
4
|
+
const require_use_component_props = require("../../core/config-provider/use-component-props/use-component-props.cjs");
|
|
5
|
+
const require_index = require("../../core/box/index.cjs");
|
|
6
|
+
const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
|
|
7
|
+
const require_breadcrumbs_utils = require("./breadcrumbs.utils.cjs");
|
|
8
|
+
const require_breadcrumbs_module = require("./breadcrumbs.module.cjs");
|
|
9
|
+
const require_filter_falsy_children = require("./filter-falsy-children/filter-falsy-children.cjs");
|
|
10
|
+
let vue = require("vue");
|
|
11
|
+
let clsx = require("clsx");
|
|
12
|
+
clsx = require_runtime.__toESM(clsx);
|
|
13
|
+
//#region packages/@cck-ui/core/src/components/breadcrumbs/breadcrumbs.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
name: "CBreadcrumbs",
|
|
16
|
+
__name: "breadcrumbs",
|
|
17
|
+
props: {
|
|
18
|
+
separator: {
|
|
19
|
+
type: [
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Function
|
|
23
|
+
],
|
|
24
|
+
required: false
|
|
25
|
+
},
|
|
26
|
+
separatorMargin: {
|
|
27
|
+
type: null,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
className: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
style: {
|
|
35
|
+
type: [
|
|
36
|
+
Object,
|
|
37
|
+
Function,
|
|
38
|
+
Array
|
|
39
|
+
],
|
|
40
|
+
required: false,
|
|
41
|
+
skipCheck: true
|
|
42
|
+
},
|
|
43
|
+
__vars: {
|
|
44
|
+
type: null,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
__size: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
hiddenFrom: {
|
|
52
|
+
type: null,
|
|
53
|
+
required: false
|
|
54
|
+
},
|
|
55
|
+
visibleFrom: {
|
|
56
|
+
type: null,
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
lightHidden: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
darkHidden: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
mod: {
|
|
68
|
+
type: [
|
|
69
|
+
Object,
|
|
70
|
+
String,
|
|
71
|
+
Array
|
|
72
|
+
],
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
m: {
|
|
76
|
+
type: null,
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
my: {
|
|
80
|
+
type: null,
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
mx: {
|
|
84
|
+
type: null,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
mt: {
|
|
88
|
+
type: null,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
mb: {
|
|
92
|
+
type: null,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
ms: {
|
|
96
|
+
type: null,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
me: {
|
|
100
|
+
type: null,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
mis: {
|
|
104
|
+
type: null,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
mie: {
|
|
108
|
+
type: null,
|
|
109
|
+
required: false
|
|
110
|
+
},
|
|
111
|
+
ml: {
|
|
112
|
+
type: null,
|
|
113
|
+
required: false
|
|
114
|
+
},
|
|
115
|
+
mr: {
|
|
116
|
+
type: null,
|
|
117
|
+
required: false
|
|
118
|
+
},
|
|
119
|
+
p: {
|
|
120
|
+
type: null,
|
|
121
|
+
required: false
|
|
122
|
+
},
|
|
123
|
+
py: {
|
|
124
|
+
type: null,
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
px: {
|
|
128
|
+
type: null,
|
|
129
|
+
required: false
|
|
130
|
+
},
|
|
131
|
+
pt: {
|
|
132
|
+
type: null,
|
|
133
|
+
required: false
|
|
134
|
+
},
|
|
135
|
+
pb: {
|
|
136
|
+
type: null,
|
|
137
|
+
required: false
|
|
138
|
+
},
|
|
139
|
+
ps: {
|
|
140
|
+
type: null,
|
|
141
|
+
required: false
|
|
142
|
+
},
|
|
143
|
+
pe: {
|
|
144
|
+
type: null,
|
|
145
|
+
required: false
|
|
146
|
+
},
|
|
147
|
+
pis: {
|
|
148
|
+
type: null,
|
|
149
|
+
required: false
|
|
150
|
+
},
|
|
151
|
+
pie: {
|
|
152
|
+
type: null,
|
|
153
|
+
required: false
|
|
154
|
+
},
|
|
155
|
+
pl: {
|
|
156
|
+
type: null,
|
|
157
|
+
required: false
|
|
158
|
+
},
|
|
159
|
+
pr: {
|
|
160
|
+
type: null,
|
|
161
|
+
required: false
|
|
162
|
+
},
|
|
163
|
+
bd: {
|
|
164
|
+
type: null,
|
|
165
|
+
required: false
|
|
166
|
+
},
|
|
167
|
+
bdrs: {
|
|
168
|
+
type: null,
|
|
169
|
+
required: false
|
|
170
|
+
},
|
|
171
|
+
bg: {
|
|
172
|
+
type: null,
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
c: {
|
|
176
|
+
type: null,
|
|
177
|
+
required: false
|
|
178
|
+
},
|
|
179
|
+
opacity: {
|
|
180
|
+
type: [
|
|
181
|
+
String,
|
|
182
|
+
Object,
|
|
183
|
+
Number
|
|
184
|
+
],
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
ff: {
|
|
188
|
+
type: [String, Object],
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
191
|
+
fz: {
|
|
192
|
+
type: null,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
fw: {
|
|
196
|
+
type: null,
|
|
197
|
+
required: false
|
|
198
|
+
},
|
|
199
|
+
lts: {
|
|
200
|
+
type: null,
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
ta: {
|
|
204
|
+
type: [String, Object],
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
lh: {
|
|
208
|
+
type: null,
|
|
209
|
+
required: false
|
|
210
|
+
},
|
|
211
|
+
fs: {
|
|
212
|
+
type: null,
|
|
213
|
+
required: false
|
|
214
|
+
},
|
|
215
|
+
tt: {
|
|
216
|
+
type: [String, Object],
|
|
217
|
+
required: false
|
|
218
|
+
},
|
|
219
|
+
td: {
|
|
220
|
+
type: null,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
w: {
|
|
224
|
+
type: null,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
miw: {
|
|
228
|
+
type: null,
|
|
229
|
+
required: false
|
|
230
|
+
},
|
|
231
|
+
maw: {
|
|
232
|
+
type: null,
|
|
233
|
+
required: false
|
|
234
|
+
},
|
|
235
|
+
h: {
|
|
236
|
+
type: null,
|
|
237
|
+
required: false
|
|
238
|
+
},
|
|
239
|
+
mih: {
|
|
240
|
+
type: null,
|
|
241
|
+
required: false
|
|
242
|
+
},
|
|
243
|
+
mah: {
|
|
244
|
+
type: null,
|
|
245
|
+
required: false
|
|
246
|
+
},
|
|
247
|
+
bgsz: {
|
|
248
|
+
type: null,
|
|
249
|
+
required: false
|
|
250
|
+
},
|
|
251
|
+
bgp: {
|
|
252
|
+
type: null,
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
bgr: {
|
|
256
|
+
type: null,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
bga: {
|
|
260
|
+
type: null,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
pos: {
|
|
264
|
+
type: [String, Object],
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
top: {
|
|
268
|
+
type: null,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
left: {
|
|
272
|
+
type: null,
|
|
273
|
+
required: false
|
|
274
|
+
},
|
|
275
|
+
bottom: {
|
|
276
|
+
type: null,
|
|
277
|
+
required: false
|
|
278
|
+
},
|
|
279
|
+
right: {
|
|
280
|
+
type: null,
|
|
281
|
+
required: false
|
|
282
|
+
},
|
|
283
|
+
inset: {
|
|
284
|
+
type: null,
|
|
285
|
+
required: false
|
|
286
|
+
},
|
|
287
|
+
display: {
|
|
288
|
+
type: null,
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
291
|
+
flex: {
|
|
292
|
+
type: null,
|
|
293
|
+
required: false
|
|
294
|
+
},
|
|
295
|
+
unstyled: {
|
|
296
|
+
type: Boolean,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
299
|
+
variant: {
|
|
300
|
+
type: null,
|
|
301
|
+
required: false
|
|
302
|
+
},
|
|
303
|
+
classNames: {
|
|
304
|
+
type: null,
|
|
305
|
+
required: false
|
|
306
|
+
},
|
|
307
|
+
styles: {
|
|
308
|
+
type: null,
|
|
309
|
+
required: false
|
|
310
|
+
},
|
|
311
|
+
vars: {
|
|
312
|
+
type: Function,
|
|
313
|
+
required: false
|
|
314
|
+
},
|
|
315
|
+
attributes: {
|
|
316
|
+
type: null,
|
|
317
|
+
required: false
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
setup(__props, { expose: __expose }) {
|
|
321
|
+
const _root = (0, vue.ref)(null);
|
|
322
|
+
const attrs = (0, vue.useAttrs)();
|
|
323
|
+
const slots = (0, vue.useSlots)();
|
|
324
|
+
const defaultProps = { separator: "/" };
|
|
325
|
+
const rawProps = __props;
|
|
326
|
+
const props = require_use_component_props.useComponentProps({
|
|
327
|
+
component: "CBreadcrumbs",
|
|
328
|
+
defaultProps,
|
|
329
|
+
props: rawProps
|
|
330
|
+
});
|
|
331
|
+
const knownProps = [
|
|
332
|
+
"classNames",
|
|
333
|
+
"className",
|
|
334
|
+
"style",
|
|
335
|
+
"styles",
|
|
336
|
+
"unstyled",
|
|
337
|
+
"vars",
|
|
338
|
+
"separator",
|
|
339
|
+
"separatorMargin",
|
|
340
|
+
"attributes"
|
|
341
|
+
];
|
|
342
|
+
const styleProps = (0, vue.computed)(() => ({
|
|
343
|
+
...props.value,
|
|
344
|
+
...attrs,
|
|
345
|
+
style: attrs.style ?? props.value.style
|
|
346
|
+
}));
|
|
347
|
+
const getStyles = require_use_styles.useStyles({
|
|
348
|
+
name: "Breadcrumbs",
|
|
349
|
+
props: styleProps,
|
|
350
|
+
classes: require_breadcrumbs_module.default,
|
|
351
|
+
className: () => props.value.className,
|
|
352
|
+
style: () => props.value.style,
|
|
353
|
+
classNames: props.value.classNames,
|
|
354
|
+
styles: props.value.styles,
|
|
355
|
+
unstyled: props.value.unstyled,
|
|
356
|
+
attributes: props.value.attributes,
|
|
357
|
+
vars: props.value.vars,
|
|
358
|
+
varsResolver: require_breadcrumbs_utils.varsResolver
|
|
359
|
+
});
|
|
360
|
+
const rootAttrs = (0, vue.computed)(() => getStyles("root"));
|
|
361
|
+
const mergedRootAttrs = (0, vue.computed)(() => {
|
|
362
|
+
const others = {};
|
|
363
|
+
const propsValue = props.value;
|
|
364
|
+
Object.keys(propsValue).forEach((key) => {
|
|
365
|
+
if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
366
|
+
});
|
|
367
|
+
const userMod = props.value.mod;
|
|
368
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
|
|
369
|
+
return {
|
|
370
|
+
...others,
|
|
371
|
+
mod: mergedMod,
|
|
372
|
+
...rootAttrs.value
|
|
373
|
+
};
|
|
374
|
+
});
|
|
375
|
+
const items = (0, vue.computed)(() => {
|
|
376
|
+
const children = require_filter_falsy_children.filterFalsyChildren(slots.default?.());
|
|
377
|
+
const separatorSlot = slots.separator;
|
|
378
|
+
const result = [];
|
|
379
|
+
children.forEach((child, index) => {
|
|
380
|
+
const childProps = child.props || {};
|
|
381
|
+
const { className: bcClass, style: bcStyle, ...rest } = getStyles("breadcrumb", { className: childProps.className });
|
|
382
|
+
const mergedClass = (0, clsx.default)(bcClass, childProps.class, childProps.className);
|
|
383
|
+
const mergedStyle = [bcStyle, childProps.style].filter(Boolean);
|
|
384
|
+
const breadcrumbNode = (0, vue.h)(child, {
|
|
385
|
+
...rest,
|
|
386
|
+
class: mergedClass,
|
|
387
|
+
style: mergedStyle,
|
|
388
|
+
key: child.key ?? `breadcrumb-${index}`
|
|
389
|
+
}, child.children ?? []);
|
|
390
|
+
result.push(breadcrumbNode);
|
|
391
|
+
if (index !== children.length - 1) {
|
|
392
|
+
const { className: sepClass, style: sepStyle, ...sepRest } = getStyles("separator");
|
|
393
|
+
let separatorContent;
|
|
394
|
+
if (separatorSlot) separatorContent = separatorSlot();
|
|
395
|
+
else if (typeof props.value.separator === "function") separatorContent = props.value.separator(child, index, children.length);
|
|
396
|
+
else separatorContent = props.value.separator;
|
|
397
|
+
const separatorNode = (0, vue.h)(require_index.CBox, {
|
|
398
|
+
...sepRest,
|
|
399
|
+
class: sepClass,
|
|
400
|
+
style: sepStyle,
|
|
401
|
+
key: `separator-${index}`
|
|
402
|
+
}, { default: () => separatorContent });
|
|
403
|
+
result.push(separatorNode);
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
return result;
|
|
407
|
+
});
|
|
408
|
+
__expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
|
|
409
|
+
const __returned__ = {
|
|
410
|
+
_root,
|
|
411
|
+
attrs,
|
|
412
|
+
slots,
|
|
413
|
+
defaultProps,
|
|
414
|
+
rawProps,
|
|
415
|
+
props,
|
|
416
|
+
knownProps,
|
|
417
|
+
styleProps,
|
|
418
|
+
getStyles,
|
|
419
|
+
rootAttrs,
|
|
420
|
+
mergedRootAttrs,
|
|
421
|
+
items,
|
|
422
|
+
get CBox() {
|
|
423
|
+
return require_index.CBox;
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
427
|
+
enumerable: false,
|
|
428
|
+
value: true
|
|
429
|
+
});
|
|
430
|
+
return __returned__;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
434
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedRootAttrs), {
|
|
435
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)($setup.items, (item, idx) => {
|
|
436
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(item), { key: item.key ?? idx });
|
|
437
|
+
}), 128))]),
|
|
438
|
+
_: 1
|
|
439
|
+
}, 16);
|
|
440
|
+
}
|
|
441
|
+
var breadcrumbs_default = /*#__PURE__*/ require_export_helper.default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/breadcrumbs/breadcrumbs.vue"]]);
|
|
442
|
+
//#endregion
|
|
443
|
+
exports.default = breadcrumbs_default;
|
|
444
|
+
|
|
445
|
+
//# sourceMappingURL=breadcrumbs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.cjs","names":[],"sources":["../../../src/components/breadcrumbs/breadcrumbs.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedRootAttrs\">\n <template v-for=\"(item, idx) in items\" :key=\"item.key ?? idx\">\n <component :is=\"item\" />\n </template>\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, h, ref, useAttrs, useSlots } from 'vue'\nimport { CBox, CStyleProp, useComponentProps, useStyles } from '../../core'\nimport { BreadcrumbsFactory, BreadcrumbsProps, SeparatorRenderer } from './breadcrumbs.types'\nimport classes from './breadcrumbs.module.css'\nimport { varsResolver } from './breadcrumbs.utils'\nimport { filterFalsyChildren } from './filter-falsy-children/filter-falsy-children'\nimport clsx from 'clsx'\n\ndefineOptions({\n name: 'CBreadcrumbs',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\nconst slots = useSlots()\n\nconst defaultProps = {\n separator: '/',\n} satisfies Partial<BreadcrumbsProps>\n\nconst rawProps = defineProps<BreadcrumbsProps>()\n\nconst props = useComponentProps({\n component: 'CBreadcrumbs',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'separator',\n 'separatorMargin',\n 'attributes',\n]\n\nconst styleProps = computed(() => ({\n ...props.value,\n ...attrs,\n style: (attrs.style ?? props.value.style) as CStyleProp,\n}))\n\nconst getStyles = useStyles<BreadcrumbsFactory>({\n name: 'Breadcrumbs',\n props: styleProps,\n classes,\n className: () => props.value.className,\n style: () => props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n unstyled: props.value.unstyled,\n attributes: props.value.attributes,\n vars: props.value.vars,\n varsResolver,\n})\n\nconst rootAttrs = computed(() => getStyles('root'))\n\nconst mergedRootAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n })\n const userMod = props.value.mod\n const mergedMod = [...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean))]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\nconst items = computed(() => {\n const children = filterFalsyChildren(slots.default?.())\n const separatorSlot = slots.separator\n const result: any[] = []\n\n children.forEach((child, index) => {\n const childProps = child.props || {}\n const breadcrumbStyles = getStyles('breadcrumb', {\n className: childProps.className,\n })\n const { className: bcClass, style: bcStyle, ...rest } = breadcrumbStyles\n\n const mergedClass = clsx(bcClass, childProps.class, childProps.className)\n\n const mergedStyle = [bcStyle, childProps.style].filter(Boolean)\n\n const breadcrumbNode = h(\n child,\n { ...rest, class: mergedClass, style: mergedStyle, key: child.key ?? `breadcrumb-${index}` },\n child.children ?? []\n )\n result.push(breadcrumbNode)\n\n if (index !== children.length - 1) {\n const separatorStyles = getStyles('separator')\n const { className: sepClass, style: sepStyle, ...sepRest } = separatorStyles\n\n let separatorContent\n if (separatorSlot) {\n separatorContent = separatorSlot()\n } else if (typeof props.value.separator === 'function') {\n separatorContent = (props.value.separator as SeparatorRenderer)(\n child,\n index,\n children.length\n )\n } else {\n separatorContent = props.value.separator\n }\n\n const separatorNode = h(\n CBox,\n { ...sepRest, class: sepClass, style: sepStyle, key: `separator-${index}` } as any,\n { default: () => separatorContent }\n )\n result.push(separatorNode)\n }\n })\n return result\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GAAA,IAAA,WAAA,CAAA,EAJD,KAAI,QAAO,GAAS,OAAA,eAAe,GAAA;kCACF,GAAA,GAAA,IAAA,UAAA,CAAA,IAAA,IAAA,GAAA,IAAA,mBAAA,CAE3B,IAAA,UAAA,OAAA,GAAA,IAAA,WAAA,CAFqB,OAAA,QAAd,MAAM,QAAG;sFACT,IAAI,GAAA,EAAA,KADuB,KAAK,OAAO,IAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region packages/@cck-ui/core/src/components/breadcrumbs/breadcrumbs.module.css
|
|
3
|
+
var breadcrumbs_module_default = {
|
|
4
|
+
"root": "m_bd72d3bf",
|
|
5
|
+
"breadcrumb": "m_c7302920",
|
|
6
|
+
"separator": "m_ceadd228"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = breadcrumbs_module_default;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=breadcrumbs.module.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.module.cjs","names":[],"sources":["../../../src/components/breadcrumbs/breadcrumbs.module.css"],"sourcesContent":[".root {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n\n.breadcrumb {\n line-height: 1;\n word-spacing: nowrap;\n -webkit-tap-highlight-color: transparent;\n}\n\n.separator {\n margin-inline: var(--bc-separator-margin, var(--c-spacing-xs));\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n\n @mixin where-light {\n color: var(--c-color-gray-7);\n }\n\n @mixin where-dark {\n color: var(--c-color-dark-2);\n }\n}\n"],"mappings":";;AAAA,IAAA,6BAAe;CAAC,QAAO;CAAa,cAAa;CAAa,aAAY;AAAY"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_get_size = require("../../core/utils/get-size/get-size.cjs");
|
|
3
|
+
//#region packages/@cck-ui/core/src/components/breadcrumbs/breadcrumbs.utils.ts
|
|
4
|
+
const varsResolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs").createVarsResolver((_, { separatorMargin }) => ({ root: { "--bc-separator-margin": require_get_size.getSpacing(separatorMargin) } }));
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.varsResolver = varsResolver;
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=breadcrumbs.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.utils.cjs","names":["createVarsResolver","getSpacing"],"sources":["../../../src/components/breadcrumbs/breadcrumbs.utils.ts"],"sourcesContent":["import { createVarsResolver, getSpacing } from '../../core'\nimport { BreadcrumbsFactory } from './breadcrumbs.types'\n\nexport const varsResolver = createVarsResolver<BreadcrumbsFactory>((_, { separatorMargin }) => ({\n root: {\n '--bc-separator-margin': getSpacing(separatorMargin),\n },\n}))\n"],"mappings":";;;AAGA,MAAa,4FAAeA,CAAAA,CAAAA,oBAAwC,GAAG,EAAE,uBAAuB,EAC9F,MAAM,EACJ,yBAAyBC,iBAAAA,WAAW,eAAe,EACrD,EACF,EAAE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region packages/@cck-ui/core/src/components/breadcrumbs/filter-falsy-children/filter-falsy-children.ts
|
|
4
|
+
function filterFalsyChildren(children) {
|
|
5
|
+
const nodes = Array.isArray(children) ? children : children ? [children] : [];
|
|
6
|
+
function process(node) {
|
|
7
|
+
if (Array.isArray(node)) return node.flatMap((item) => process(item));
|
|
8
|
+
if (!(0, vue.isVNode)(node)) return [];
|
|
9
|
+
if (node.type === vue.Fragment) return process(Array.isArray(node.children) ? node.children : node.children ? [node.children] : []);
|
|
10
|
+
return [node];
|
|
11
|
+
}
|
|
12
|
+
return process(nodes);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.filterFalsyChildren = filterFalsyChildren;
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=filter-falsy-children.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-falsy-children.cjs","names":["Fragment"],"sources":["../../../../src/components/breadcrumbs/filter-falsy-children/filter-falsy-children.ts"],"sourcesContent":["import { Fragment, isVNode, VNode } from 'vue'\n\nexport function filterFalsyChildren(children: unknown): VNode[] {\n const nodes = Array.isArray(children) ? children : children ? [children] : []\n\n function process(node: unknown): VNode[] {\n if (Array.isArray(node)) {\n return node.flatMap((item) => process(item))\n }\n\n if (!isVNode(node)) {\n return []\n }\n\n if (node.type === Fragment) {\n const childNodes = Array.isArray(node.children)\n ? node.children\n : node.children\n ? [node.children]\n : []\n return process(childNodes)\n }\n\n return [node]\n }\n\n return process(nodes)\n}\n"],"mappings":";;;AAEA,SAAgB,oBAAoB,UAA4B;CAC9D,MAAM,QAAQ,MAAM,QAAQ,QAAQ,IAAI,WAAW,WAAW,CAAC,QAAQ,IAAI,CAAC;CAE5E,SAAS,QAAQ,MAAwB;EACvC,IAAI,MAAM,QAAQ,IAAI,GACpB,OAAO,KAAK,SAAS,SAAS,QAAQ,IAAI,CAAC;EAG7C,IAAI,EAAA,GAAA,IAAA,QAAA,CAAS,IAAI,GACf,OAAO,CAAC;EAGV,IAAI,KAAK,SAASA,IAAAA,UAMhB,OAAO,QALY,MAAM,QAAQ,KAAK,QAAQ,IAC1C,KAAK,WACL,KAAK,WACH,CAAC,KAAK,QAAQ,IACd,CAAC,CACkB;EAG3B,OAAO,CAAC,IAAI;CACd;CAEA,OAAO,QAAQ,KAAK;AACtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_install = require("../../core/utils/vue/install.cjs");
|
|
3
|
+
const require_statics = require("../../core/utils/vue/statics.cjs");
|
|
4
|
+
const require_breadcrumbs_utils = require("./breadcrumbs.utils.cjs");
|
|
5
|
+
const require_breadcrumbs_module = require("./breadcrumbs.module.cjs");
|
|
6
|
+
const require_breadcrumbs = require("./breadcrumbs.cjs");
|
|
7
|
+
//#region packages/@cck-ui/core/src/components/breadcrumbs/index.ts
|
|
8
|
+
const BreadcrumbsWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withVarsResolver(require_statics.withClasses(require_breadcrumbs.default, require_breadcrumbs_module.default), require_breadcrumbs_utils.varsResolver)));
|
|
9
|
+
const CBreadcrumbs = require_install.withInstall(BreadcrumbsWithStatic);
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.CBreadcrumbs = CBreadcrumbs;
|
|
12
|
+
exports.default = CBreadcrumbs;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withVarsResolver","withClasses","Breadcrumbs","classes","varsResolver","withInstall"],"sources":["../../../src/components/breadcrumbs/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport { varsResolver } from './breadcrumbs.utils'\nimport Breadcrumbs from './breadcrumbs.vue'\nimport classes from './breadcrumbs.module.css'\n\nconst BreadcrumbsWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Breadcrumbs, classes), varsResolver))\n)\n\nexport const CBreadcrumbs: SFCWithInstallAndClasses<typeof Breadcrumbs, typeof classes> =\n withInstall(BreadcrumbsWithStatic)\n\nexport default CBreadcrumbs\n\nexport * from './breadcrumbs.types'\n"],"mappings":";;;;;;;AAYA,MAAM,wBAAwBA,gBAAAA,iBAC5BC,gBAAAA,WAAWC,gBAAAA,iBAAiBC,gBAAAA,YAAYC,oBAAAA,SAAaC,2BAAAA,OAAO,GAAGC,0BAAAA,YAAY,CAAC,CAC9E;AAEA,MAAa,eACXC,gBAAAA,YAAY,qBAAqB"}
|
|
@@ -361,11 +361,16 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
|
361
361
|
"mod",
|
|
362
362
|
"attributes"
|
|
363
363
|
];
|
|
364
|
-
const filteredChildren = require_filter_falsy_children.filterFalsyChildren(slots.default?.());
|
|
365
|
-
const childrenCount = filteredChildren.length;
|
|
366
|
-
const resolvedGap = require_get_size.getSpacing(props.value.gap);
|
|
367
|
-
const childWidth =
|
|
368
|
-
|
|
364
|
+
const filteredChildren = (0, vue.computed)(() => require_filter_falsy_children.filterFalsyChildren(slots.default?.()));
|
|
365
|
+
const childrenCount = (0, vue.computed)(() => filteredChildren.value.length);
|
|
366
|
+
const resolvedGap = (0, vue.computed)(() => require_get_size.getSpacing(props.value.gap));
|
|
367
|
+
const childWidth = (0, vue.computed)(() => {
|
|
368
|
+
const count = childrenCount.value;
|
|
369
|
+
const gap = resolvedGap.value;
|
|
370
|
+
if (count === 0) return "auto";
|
|
371
|
+
return `calc(${100 / count}% - (${gap} - ${gap} / ${count}))`;
|
|
372
|
+
});
|
|
373
|
+
const stylesCtx = (0, vue.computed)(() => ({ childWidth: childWidth.value }));
|
|
369
374
|
const styleProps = (0, vue.computed)(() => ({
|
|
370
375
|
...props.value,
|
|
371
376
|
...attrs,
|
|
@@ -435,12 +440,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
440
|
size: $props.__size,
|
|
436
441
|
variant: $props.variant
|
|
437
442
|
}), {
|
|
438
|
-
default: (0, vue.withCtx)(() => [
|
|
439
|
-
(0, vue.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
]),
|
|
443
|
-
_: 3
|
|
443
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)($setup.filteredChildren, (node, index) => {
|
|
444
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(node), { key: node.key || index });
|
|
445
|
+
}), 128))]),
|
|
446
|
+
_: 1
|
|
444
447
|
}, 16, ["size", "variant"]);
|
|
445
448
|
}
|
|
446
449
|
var group_default = /*#__PURE__*/ require_export_helper.default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/group/group.vue"]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.cjs","names":[],"sources":["../../../src/components/group/group.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\" :size=\"__size\" :variant=\"variant\">\n
|
|
1
|
+
{"version":3,"file":"group.cjs","names":[],"sources":["../../../src/components/group/group.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\" :size=\"__size\" :variant=\"variant\">\n <component v-for=\"(node, index) in filteredChildren\" :key=\"node.key || index\" :is=\"node\" />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs, useSlots } from 'vue'\nimport type { GroupFactory, GroupProps, GroupStylesCtx } from './group.types'\nimport { filterFalsyChildren } from './filter-falsy-children/filter-falsy-children'\nimport { getSpacing, useStyles, CBox, useComponentProps, CStyleProp } from '../../core'\nimport classes from './group.module.css'\nimport { varsResolver } from './group.utils'\n\ndefineOptions({\n name: 'CGroup',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\nconst slots = useSlots()\n\nconst rawProps = defineProps<GroupProps>()\n\nconst props = useComponentProps({\n component: 'CGroup',\n defaultProps: {\n preventGrowOverflow: true,\n gap: 'md',\n align: 'center',\n justify: 'flex-start',\n wrap: 'wrap',\n },\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'gap',\n 'align',\n 'justify',\n 'wrap',\n 'grow',\n 'preventGrowOverflow',\n 'vars',\n 'variant',\n '__size',\n 'mod',\n 'attributes',\n]\n\nconst filteredChildren = computed(() => filterFalsyChildren(slots.default?.()))\nconst childrenCount = computed(() => filteredChildren.value.length)\nconst resolvedGap = computed(() => getSpacing(props.value.gap))\n\nconst childWidth = computed(() => {\n const count = childrenCount.value\n const gap = resolvedGap.value\n if (count === 0) {\n return 'auto'\n }\n return `calc(${100 / count}% - (${gap} - ${gap} / ${count}))`\n})\n\nconst stylesCtx = computed<GroupStylesCtx>(() => ({\n childWidth: childWidth.value,\n}))\n\nconst styleProps = computed(() => ({\n ...props.value,\n ...attrs,\n style: (attrs.style ?? props.value.style) as CStyleProp,\n}))\n\nconst getStyles = useStyles<GroupFactory>({\n name: 'Group',\n props: styleProps,\n stylesCtx,\n className: () => props.value.className,\n style: () => props.value.style,\n classes,\n classNames: props.value.classNames,\n styles: props.value.styles,\n unstyled: props.value.unstyled,\n attributes: props.value.attributes,\n vars: props.value.vars,\n varsResolver,\n})\n\nconst modList = computed(() => [{ grow: props.value.grow }])\n\nconst rootAttrs = computed(() => getStyles('root'))\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n })\n const userMod = props.value.mod\n const mergedMod = [\n ...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)),\n ...(modList.value || []),\n ]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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