@cck-ui/core 0.13.1 → 0.14.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.
Files changed (56) hide show
  1. package/cjs/components/empty-state/empty-state-actions/empty-state-actions.cjs +360 -0
  2. package/cjs/components/empty-state/empty-state-actions/empty-state-actions.cjs.map +1 -0
  3. package/cjs/components/empty-state/empty-state-description/empty-state-description.cjs +360 -0
  4. package/cjs/components/empty-state/empty-state-description/empty-state-description.cjs.map +1 -0
  5. package/cjs/components/empty-state/empty-state-indicator/empty-state-indicator.cjs +362 -0
  6. package/cjs/components/empty-state/empty-state-indicator/empty-state-indicator.cjs.map +1 -0
  7. package/cjs/components/empty-state/empty-state-title/empty-state-title.cjs +365 -0
  8. package/cjs/components/empty-state/empty-state-title/empty-state-title.cjs.map +1 -0
  9. package/cjs/components/empty-state/empty-state.cjs +453 -0
  10. package/cjs/components/empty-state/empty-state.cjs.map +1 -0
  11. package/cjs/components/empty-state/empty-state.context.cjs +17 -0
  12. package/cjs/components/empty-state/empty-state.context.cjs.map +1 -0
  13. package/cjs/components/empty-state/empty-state.module.cjs +14 -0
  14. package/cjs/components/empty-state/empty-state.module.cjs.map +1 -0
  15. package/cjs/components/empty-state/empty-state.utils.cjs +22 -0
  16. package/cjs/components/empty-state/empty-state.utils.cjs.map +1 -0
  17. package/cjs/components/empty-state/index.cjs +35 -0
  18. package/cjs/components/empty-state/index.cjs.map +1 -0
  19. package/cjs/core/box/box.cjs.map +1 -1
  20. package/cjs/index.cjs +39 -28
  21. package/cjs/index.cjs.map +1 -1
  22. package/esm/components/empty-state/empty-state-actions/empty-state-actions.mjs +360 -0
  23. package/esm/components/empty-state/empty-state-actions/empty-state-actions.mjs.map +1 -0
  24. package/esm/components/empty-state/empty-state-description/empty-state-description.mjs +360 -0
  25. package/esm/components/empty-state/empty-state-description/empty-state-description.mjs.map +1 -0
  26. package/esm/components/empty-state/empty-state-indicator/empty-state-indicator.mjs +362 -0
  27. package/esm/components/empty-state/empty-state-indicator/empty-state-indicator.mjs.map +1 -0
  28. package/esm/components/empty-state/empty-state-title/empty-state-title.mjs +365 -0
  29. package/esm/components/empty-state/empty-state-title/empty-state-title.mjs.map +1 -0
  30. package/esm/components/empty-state/empty-state.context.mjs +16 -0
  31. package/esm/components/empty-state/empty-state.context.mjs.map +1 -0
  32. package/esm/components/empty-state/empty-state.mjs +453 -0
  33. package/esm/components/empty-state/empty-state.mjs.map +1 -0
  34. package/esm/components/empty-state/empty-state.module.mjs +14 -0
  35. package/esm/components/empty-state/empty-state.module.mjs.map +1 -0
  36. package/esm/components/empty-state/empty-state.utils.mjs +23 -0
  37. package/esm/components/empty-state/empty-state.utils.mjs.map +1 -0
  38. package/esm/components/empty-state/index.mjs +30 -0
  39. package/esm/components/empty-state/index.mjs.map +1 -0
  40. package/esm/core/box/box.mjs.map +1 -1
  41. package/esm/index.mjs +7 -1
  42. package/esm/index.mjs.map +1 -1
  43. package/lib/components/empty-state/empty-state-actions/empty-state-actions.types.d.ts +10 -0
  44. package/lib/components/empty-state/empty-state-description/empty-state-description.types.d.ts +10 -0
  45. package/lib/components/empty-state/empty-state-indicator/empty-state-indicator.types.d.ts +10 -0
  46. package/lib/components/empty-state/empty-state-title/empty-state-title.types.d.ts +14 -0
  47. package/lib/components/empty-state/empty-state.context.d.ts +10 -0
  48. package/lib/components/empty-state/empty-state.types.d.ts +44 -0
  49. package/lib/components/empty-state/empty-state.utils.d.ts +8 -0
  50. package/lib/components/empty-state/index.d.ts +23 -0
  51. package/lib/components/index.d.ts +1 -0
  52. package/package.json +1 -1
  53. package/styles/empty-state.css +121 -0
  54. package/styles/empty-state.layer.css +122 -0
  55. package/styles.css +122 -0
  56. package/styles.layer.css +122 -0
@@ -0,0 +1,360 @@
1
+ "use client";
2
+ const require_export_helper = require("../../../_virtual/_/plugin-vue/export-helper.cjs");
3
+ const require_use_component_props = require("../../../core/config-provider/use-component-props/use-component-props.cjs");
4
+ const require_index = require("../../../core/box/index.cjs");
5
+ const require_empty_state_context = require("../empty-state.context.cjs");
6
+ let vue = require("vue");
7
+ //#region packages/@cck-ui/core/src/components/empty-state/empty-state-actions/empty-state-actions.vue
8
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
9
+ name: "CEmptyStateActions",
10
+ __name: "empty-state-actions",
11
+ props: {
12
+ className: {
13
+ type: String,
14
+ required: false
15
+ },
16
+ style: {
17
+ type: [
18
+ Object,
19
+ Function,
20
+ Array
21
+ ],
22
+ required: false,
23
+ skipCheck: true
24
+ },
25
+ __vars: {
26
+ type: null,
27
+ required: false
28
+ },
29
+ __size: {
30
+ type: String,
31
+ required: false
32
+ },
33
+ hiddenFrom: {
34
+ type: null,
35
+ required: false
36
+ },
37
+ visibleFrom: {
38
+ type: null,
39
+ required: false
40
+ },
41
+ lightHidden: {
42
+ type: Boolean,
43
+ required: false
44
+ },
45
+ darkHidden: {
46
+ type: Boolean,
47
+ required: false
48
+ },
49
+ mod: {
50
+ type: [
51
+ Object,
52
+ String,
53
+ Array
54
+ ],
55
+ required: false
56
+ },
57
+ m: {
58
+ type: null,
59
+ required: false
60
+ },
61
+ my: {
62
+ type: null,
63
+ required: false
64
+ },
65
+ mx: {
66
+ type: null,
67
+ required: false
68
+ },
69
+ mt: {
70
+ type: null,
71
+ required: false
72
+ },
73
+ mb: {
74
+ type: null,
75
+ required: false
76
+ },
77
+ ms: {
78
+ type: null,
79
+ required: false
80
+ },
81
+ me: {
82
+ type: null,
83
+ required: false
84
+ },
85
+ mis: {
86
+ type: null,
87
+ required: false
88
+ },
89
+ mie: {
90
+ type: null,
91
+ required: false
92
+ },
93
+ ml: {
94
+ type: null,
95
+ required: false
96
+ },
97
+ mr: {
98
+ type: null,
99
+ required: false
100
+ },
101
+ p: {
102
+ type: null,
103
+ required: false
104
+ },
105
+ py: {
106
+ type: null,
107
+ required: false
108
+ },
109
+ px: {
110
+ type: null,
111
+ required: false
112
+ },
113
+ pt: {
114
+ type: null,
115
+ required: false
116
+ },
117
+ pb: {
118
+ type: null,
119
+ required: false
120
+ },
121
+ ps: {
122
+ type: null,
123
+ required: false
124
+ },
125
+ pe: {
126
+ type: null,
127
+ required: false
128
+ },
129
+ pis: {
130
+ type: null,
131
+ required: false
132
+ },
133
+ pie: {
134
+ type: null,
135
+ required: false
136
+ },
137
+ pl: {
138
+ type: null,
139
+ required: false
140
+ },
141
+ pr: {
142
+ type: null,
143
+ required: false
144
+ },
145
+ bd: {
146
+ type: null,
147
+ required: false
148
+ },
149
+ bdrs: {
150
+ type: null,
151
+ required: false
152
+ },
153
+ bg: {
154
+ type: null,
155
+ required: false
156
+ },
157
+ c: {
158
+ type: null,
159
+ required: false
160
+ },
161
+ opacity: {
162
+ type: [
163
+ String,
164
+ Object,
165
+ Number
166
+ ],
167
+ required: false
168
+ },
169
+ ff: {
170
+ type: [String, Object],
171
+ required: false
172
+ },
173
+ fz: {
174
+ type: null,
175
+ required: false
176
+ },
177
+ fw: {
178
+ type: null,
179
+ required: false
180
+ },
181
+ lts: {
182
+ type: null,
183
+ required: false
184
+ },
185
+ ta: {
186
+ type: [String, Object],
187
+ required: false
188
+ },
189
+ lh: {
190
+ type: null,
191
+ required: false
192
+ },
193
+ fs: {
194
+ type: null,
195
+ required: false
196
+ },
197
+ tt: {
198
+ type: [String, Object],
199
+ required: false
200
+ },
201
+ td: {
202
+ type: null,
203
+ required: false
204
+ },
205
+ w: {
206
+ type: null,
207
+ required: false
208
+ },
209
+ miw: {
210
+ type: null,
211
+ required: false
212
+ },
213
+ maw: {
214
+ type: null,
215
+ required: false
216
+ },
217
+ h: {
218
+ type: null,
219
+ required: false
220
+ },
221
+ mih: {
222
+ type: null,
223
+ required: false
224
+ },
225
+ mah: {
226
+ type: null,
227
+ required: false
228
+ },
229
+ bgsz: {
230
+ type: null,
231
+ required: false
232
+ },
233
+ bgp: {
234
+ type: null,
235
+ required: false
236
+ },
237
+ bgr: {
238
+ type: null,
239
+ required: false
240
+ },
241
+ bga: {
242
+ type: null,
243
+ required: false
244
+ },
245
+ pos: {
246
+ type: [String, Object],
247
+ required: false
248
+ },
249
+ top: {
250
+ type: null,
251
+ required: false
252
+ },
253
+ left: {
254
+ type: null,
255
+ required: false
256
+ },
257
+ bottom: {
258
+ type: null,
259
+ required: false
260
+ },
261
+ right: {
262
+ type: null,
263
+ required: false
264
+ },
265
+ inset: {
266
+ type: null,
267
+ required: false
268
+ },
269
+ display: {
270
+ type: null,
271
+ required: false
272
+ },
273
+ flex: {
274
+ type: null,
275
+ required: false
276
+ },
277
+ variant: {
278
+ type: null,
279
+ required: false
280
+ },
281
+ classNames: {
282
+ type: null,
283
+ required: false
284
+ },
285
+ styles: {
286
+ type: null,
287
+ required: false
288
+ },
289
+ vars: {
290
+ type: Function,
291
+ required: false
292
+ }
293
+ },
294
+ setup(__props, { expose: __expose }) {
295
+ const _root = (0, vue.ref)(null);
296
+ const rawProps = __props;
297
+ const props = require_use_component_props.useComponentProps({
298
+ component: "CEmptyStateActions",
299
+ defaultProps: {},
300
+ props: rawProps
301
+ });
302
+ const knownProps = [
303
+ "classNames",
304
+ "className",
305
+ "style",
306
+ "styles",
307
+ "vars",
308
+ "mod",
309
+ "attributes"
310
+ ];
311
+ const ctx = require_empty_state_context.useEmptyStateContext();
312
+ const rootAttrs = (0, vue.computed)(() => ctx.getStyles("actions", {
313
+ className: props.value.className,
314
+ style: props.value.style,
315
+ classNames: props.value.classNames,
316
+ styles: props.value.styles
317
+ }));
318
+ const mergedAttrs = (0, vue.computed)(() => {
319
+ const others = {};
320
+ const propsValue = props.value;
321
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
322
+ const userMod = props.value.mod;
323
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
324
+ return {
325
+ ...others,
326
+ mod: mergedMod,
327
+ ...rootAttrs.value
328
+ };
329
+ });
330
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
331
+ const __returned__ = {
332
+ _root,
333
+ rawProps,
334
+ props,
335
+ knownProps,
336
+ ctx,
337
+ rootAttrs,
338
+ mergedAttrs,
339
+ get CBox() {
340
+ return require_index.CBox;
341
+ }
342
+ };
343
+ Object.defineProperty(__returned__, "__isScriptSetup", {
344
+ enumerable: false,
345
+ value: true
346
+ });
347
+ return __returned__;
348
+ }
349
+ });
350
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
351
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs), {
352
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
353
+ _: 3
354
+ }, 16);
355
+ }
356
+ var empty_state_actions_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/empty-state/empty-state-actions/empty-state-actions.vue"]]);
357
+ //#endregion
358
+ exports.default = empty_state_actions_default;
359
+
360
+ //# sourceMappingURL=empty-state-actions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state-actions.cjs","names":[],"sources":["../../../../src/components/empty-state/empty-state-actions/empty-state-actions.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\nimport { CBox, useComponentProps } from '../../../core'\nimport { EmptyStateActionsProps } from './empty-state-actions.types'\nimport { useEmptyStateContext } from '../empty-state.context'\n\ndefineOptions({\n name: 'CEmptyStateActions',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst rawProps = defineProps<EmptyStateActionsProps>()\n\nconst props = useComponentProps({\n component: 'CEmptyStateActions',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = ['classNames', 'className', 'style', 'styles', 'vars', 'mod', 'attributes']\n\nconst ctx = useEmptyStateContext()\n\nconst rootAttrs = computed(() =>\n ctx.getStyles('actions', {\n className: props.value.className,\n style: props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n })\n)\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n for (const key in propsValue) {\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\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,WAAW;EAEjB,MAAM,QAAQ,4BAAA,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GAAC;GAAc;GAAa;GAAS;GAAU;GAAQ;GAAO;EAAY;EAE7F,MAAM,MAAM,4BAAA,qBAAqB;EAEjC,MAAM,aAAA,GAAA,IAAA,SAAA,OACJ,IAAI,UAAU,WAAW;GACvB,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;EACtB,CAAC,CACH;EAEA,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,KAAK,MAAM,OAAO,YAChB,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAG7B,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAAC,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,CAAE;GACpF,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,UAAU;GAAM;EACzD,CAAC;EAED,SAAa,EACX,OAAA,GAAA,IAAA,SAAA,OAAqB,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;mDAnDS,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAFD,KAAI,QAAO,GAAS,OAAA,WAAW,GAAA;kCAC5B,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -0,0 +1,360 @@
1
+ "use client";
2
+ const require_export_helper = require("../../../_virtual/_/plugin-vue/export-helper.cjs");
3
+ const require_use_component_props = require("../../../core/config-provider/use-component-props/use-component-props.cjs");
4
+ const require_index = require("../../../core/box/index.cjs");
5
+ const require_empty_state_context = require("../empty-state.context.cjs");
6
+ let vue = require("vue");
7
+ //#region packages/@cck-ui/core/src/components/empty-state/empty-state-description/empty-state-description.vue
8
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
9
+ name: "CEmptyStateDescription",
10
+ __name: "empty-state-description",
11
+ props: {
12
+ className: {
13
+ type: String,
14
+ required: false
15
+ },
16
+ style: {
17
+ type: [
18
+ Object,
19
+ Function,
20
+ Array
21
+ ],
22
+ required: false,
23
+ skipCheck: true
24
+ },
25
+ __vars: {
26
+ type: null,
27
+ required: false
28
+ },
29
+ __size: {
30
+ type: String,
31
+ required: false
32
+ },
33
+ hiddenFrom: {
34
+ type: null,
35
+ required: false
36
+ },
37
+ visibleFrom: {
38
+ type: null,
39
+ required: false
40
+ },
41
+ lightHidden: {
42
+ type: Boolean,
43
+ required: false
44
+ },
45
+ darkHidden: {
46
+ type: Boolean,
47
+ required: false
48
+ },
49
+ mod: {
50
+ type: [
51
+ Object,
52
+ String,
53
+ Array
54
+ ],
55
+ required: false
56
+ },
57
+ m: {
58
+ type: null,
59
+ required: false
60
+ },
61
+ my: {
62
+ type: null,
63
+ required: false
64
+ },
65
+ mx: {
66
+ type: null,
67
+ required: false
68
+ },
69
+ mt: {
70
+ type: null,
71
+ required: false
72
+ },
73
+ mb: {
74
+ type: null,
75
+ required: false
76
+ },
77
+ ms: {
78
+ type: null,
79
+ required: false
80
+ },
81
+ me: {
82
+ type: null,
83
+ required: false
84
+ },
85
+ mis: {
86
+ type: null,
87
+ required: false
88
+ },
89
+ mie: {
90
+ type: null,
91
+ required: false
92
+ },
93
+ ml: {
94
+ type: null,
95
+ required: false
96
+ },
97
+ mr: {
98
+ type: null,
99
+ required: false
100
+ },
101
+ p: {
102
+ type: null,
103
+ required: false
104
+ },
105
+ py: {
106
+ type: null,
107
+ required: false
108
+ },
109
+ px: {
110
+ type: null,
111
+ required: false
112
+ },
113
+ pt: {
114
+ type: null,
115
+ required: false
116
+ },
117
+ pb: {
118
+ type: null,
119
+ required: false
120
+ },
121
+ ps: {
122
+ type: null,
123
+ required: false
124
+ },
125
+ pe: {
126
+ type: null,
127
+ required: false
128
+ },
129
+ pis: {
130
+ type: null,
131
+ required: false
132
+ },
133
+ pie: {
134
+ type: null,
135
+ required: false
136
+ },
137
+ pl: {
138
+ type: null,
139
+ required: false
140
+ },
141
+ pr: {
142
+ type: null,
143
+ required: false
144
+ },
145
+ bd: {
146
+ type: null,
147
+ required: false
148
+ },
149
+ bdrs: {
150
+ type: null,
151
+ required: false
152
+ },
153
+ bg: {
154
+ type: null,
155
+ required: false
156
+ },
157
+ c: {
158
+ type: null,
159
+ required: false
160
+ },
161
+ opacity: {
162
+ type: [
163
+ String,
164
+ Object,
165
+ Number
166
+ ],
167
+ required: false
168
+ },
169
+ ff: {
170
+ type: [String, Object],
171
+ required: false
172
+ },
173
+ fz: {
174
+ type: null,
175
+ required: false
176
+ },
177
+ fw: {
178
+ type: null,
179
+ required: false
180
+ },
181
+ lts: {
182
+ type: null,
183
+ required: false
184
+ },
185
+ ta: {
186
+ type: [String, Object],
187
+ required: false
188
+ },
189
+ lh: {
190
+ type: null,
191
+ required: false
192
+ },
193
+ fs: {
194
+ type: null,
195
+ required: false
196
+ },
197
+ tt: {
198
+ type: [String, Object],
199
+ required: false
200
+ },
201
+ td: {
202
+ type: null,
203
+ required: false
204
+ },
205
+ w: {
206
+ type: null,
207
+ required: false
208
+ },
209
+ miw: {
210
+ type: null,
211
+ required: false
212
+ },
213
+ maw: {
214
+ type: null,
215
+ required: false
216
+ },
217
+ h: {
218
+ type: null,
219
+ required: false
220
+ },
221
+ mih: {
222
+ type: null,
223
+ required: false
224
+ },
225
+ mah: {
226
+ type: null,
227
+ required: false
228
+ },
229
+ bgsz: {
230
+ type: null,
231
+ required: false
232
+ },
233
+ bgp: {
234
+ type: null,
235
+ required: false
236
+ },
237
+ bgr: {
238
+ type: null,
239
+ required: false
240
+ },
241
+ bga: {
242
+ type: null,
243
+ required: false
244
+ },
245
+ pos: {
246
+ type: [String, Object],
247
+ required: false
248
+ },
249
+ top: {
250
+ type: null,
251
+ required: false
252
+ },
253
+ left: {
254
+ type: null,
255
+ required: false
256
+ },
257
+ bottom: {
258
+ type: null,
259
+ required: false
260
+ },
261
+ right: {
262
+ type: null,
263
+ required: false
264
+ },
265
+ inset: {
266
+ type: null,
267
+ required: false
268
+ },
269
+ display: {
270
+ type: null,
271
+ required: false
272
+ },
273
+ flex: {
274
+ type: null,
275
+ required: false
276
+ },
277
+ variant: {
278
+ type: null,
279
+ required: false
280
+ },
281
+ classNames: {
282
+ type: null,
283
+ required: false
284
+ },
285
+ styles: {
286
+ type: null,
287
+ required: false
288
+ },
289
+ vars: {
290
+ type: Function,
291
+ required: false
292
+ }
293
+ },
294
+ setup(__props, { expose: __expose }) {
295
+ const _root = (0, vue.ref)(null);
296
+ const rawProps = __props;
297
+ const props = require_use_component_props.useComponentProps({
298
+ component: "CEmptyStateDescription",
299
+ defaultProps: {},
300
+ props: rawProps
301
+ });
302
+ const knownProps = [
303
+ "classNames",
304
+ "className",
305
+ "style",
306
+ "styles",
307
+ "vars",
308
+ "mod",
309
+ "attributes"
310
+ ];
311
+ const ctx = require_empty_state_context.useEmptyStateContext();
312
+ const rootAttrs = (0, vue.computed)(() => ctx.getStyles("description", {
313
+ className: props.value.className,
314
+ style: props.value.style,
315
+ classNames: props.value.classNames,
316
+ styles: props.value.styles
317
+ }));
318
+ const mergedAttrs = (0, vue.computed)(() => {
319
+ const others = {};
320
+ const propsValue = props.value;
321
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
322
+ const userMod = props.value.mod;
323
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
324
+ return {
325
+ ...others,
326
+ mod: mergedMod,
327
+ ...rootAttrs.value
328
+ };
329
+ });
330
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
331
+ const __returned__ = {
332
+ _root,
333
+ rawProps,
334
+ props,
335
+ knownProps,
336
+ ctx,
337
+ rootAttrs,
338
+ mergedAttrs,
339
+ get CBox() {
340
+ return require_index.CBox;
341
+ }
342
+ };
343
+ Object.defineProperty(__returned__, "__isScriptSetup", {
344
+ enumerable: false,
345
+ value: true
346
+ });
347
+ return __returned__;
348
+ }
349
+ });
350
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
351
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs), {
352
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
353
+ _: 3
354
+ }, 16);
355
+ }
356
+ var empty_state_description_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/empty-state/empty-state-description/empty-state-description.vue"]]);
357
+ //#endregion
358
+ exports.default = empty_state_description_default;
359
+
360
+ //# sourceMappingURL=empty-state-description.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state-description.cjs","names":[],"sources":["../../../../src/components/empty-state/empty-state-description/empty-state-description.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\nimport { CBox, useComponentProps } from '../../../core'\nimport { EmptyStateDescriptionProps } from './empty-state-description.types'\nimport { useEmptyStateContext } from '../empty-state.context'\n\ndefineOptions({\n name: 'CEmptyStateDescription',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst rawProps = defineProps<EmptyStateDescriptionProps>()\n\nconst props = useComponentProps({\n component: 'CEmptyStateDescription',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = ['classNames', 'className', 'style', 'styles', 'vars', 'mod', 'attributes']\n\nconst ctx = useEmptyStateContext()\n\nconst rootAttrs = computed(() =>\n ctx.getStyles('description', {\n className: props.value.className,\n style: props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n })\n)\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n for (const key in propsValue) {\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\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,WAAW;EAEjB,MAAM,QAAQ,4BAAA,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GAAC;GAAc;GAAa;GAAS;GAAU;GAAQ;GAAO;EAAY;EAE7F,MAAM,MAAM,4BAAA,qBAAqB;EAEjC,MAAM,aAAA,GAAA,IAAA,SAAA,OACJ,IAAI,UAAU,eAAe;GAC3B,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;EACtB,CAAC,CACH;EAEA,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,KAAK,MAAM,OAAO,YAChB,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAG7B,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAAC,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,CAAE;GACpF,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,UAAU;GAAM;EACzD,CAAC;EAED,SAAa,EACX,OAAA,GAAA,IAAA,SAAA,OAAqB,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;mDAnDS,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAFD,KAAI,QAAO,GAAS,OAAA,WAAW,GAAA;kCAC5B,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}