@cck-ui/core 0.9.0 → 0.10.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/space/index.cjs +13 -0
- package/cjs/components/space/index.cjs.map +1 -0
- package/cjs/components/space/space.cjs +394 -0
- package/cjs/components/space/space.cjs.map +1 -0
- package/cjs/components/space/space.module.cjs +7 -0
- package/cjs/components/space/space.module.cjs.map +1 -0
- package/cjs/index.cjs +9 -6
- package/cjs/index.cjs.map +1 -1
- package/esm/components/space/index.mjs +10 -0
- package/esm/components/space/index.mjs.map +1 -0
- package/esm/components/space/space.mjs +394 -0
- package/esm/components/space/space.mjs.map +1 -0
- package/esm/components/space/space.module.mjs +7 -0
- package/esm/components/space/space.module.mjs.map +1 -0
- package/esm/index.mjs +3 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/space/index.d.ts +6 -0
- package/lib/components/space/space.types.d.ts +9 -0
- package/package.json +1 -1
- package/styles/space.css +2 -0
- package/styles/space.layer.css +3 -0
- package/styles.css +3 -0
- package/styles.layer.css +3 -0
|
@@ -0,0 +1,13 @@
|
|
|
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_space_module = require("./space.module.cjs");
|
|
5
|
+
const require_space = require("./space.cjs");
|
|
6
|
+
//#region packages/@cck-ui/core/src/components/space/index.ts
|
|
7
|
+
const SpaceWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_space.default, require_space_module.default)));
|
|
8
|
+
const CSpace = require_install.withInstall(SpaceWithStatic);
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.CSpace = CSpace;
|
|
11
|
+
exports.default = CSpace;
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withClasses","Space","classes","withInstall"],"sources":["../../../src/components/space/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n} from '../../core'\n\nimport Space from './space.vue'\nimport classes from './space.module.css'\n\nconst SpaceWithStatic = withPropsFactory(withExtend(withClasses(Space, classes)))\n\nexport const CSpace: SFCWithInstallAndClasses<typeof Space, typeof classes> =\n withInstall(SpaceWithStatic)\n\nexport default CSpace\n\nexport * from './space.types'\n"],"mappings":";;;;;;AAWA,MAAM,kBAAkBA,gBAAAA,iBAAiBC,gBAAAA,WAAWC,gBAAAA,YAAYC,cAAAA,SAAOC,qBAAAA,OAAO,CAAC,CAAC;AAEhF,MAAa,SACXC,gBAAAA,YAAY,eAAe"}
|
|
@@ -0,0 +1,394 @@
|
|
|
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_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
|
|
6
|
+
const require_space_module = require("./space.module.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
//#region packages/@cck-ui/core/src/components/space/space.vue
|
|
9
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
10
|
+
name: "CSpace",
|
|
11
|
+
__name: "space",
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false
|
|
16
|
+
},
|
|
17
|
+
style: {
|
|
18
|
+
type: [
|
|
19
|
+
Object,
|
|
20
|
+
Function,
|
|
21
|
+
Array
|
|
22
|
+
],
|
|
23
|
+
required: false,
|
|
24
|
+
skipCheck: true
|
|
25
|
+
},
|
|
26
|
+
__vars: {
|
|
27
|
+
type: null,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
__size: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
hiddenFrom: {
|
|
35
|
+
type: null,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
visibleFrom: {
|
|
39
|
+
type: null,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
lightHidden: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
darkHidden: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
mod: {
|
|
51
|
+
type: [
|
|
52
|
+
Object,
|
|
53
|
+
String,
|
|
54
|
+
Array
|
|
55
|
+
],
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
m: {
|
|
59
|
+
type: null,
|
|
60
|
+
required: false
|
|
61
|
+
},
|
|
62
|
+
my: {
|
|
63
|
+
type: null,
|
|
64
|
+
required: false
|
|
65
|
+
},
|
|
66
|
+
mx: {
|
|
67
|
+
type: null,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
mt: {
|
|
71
|
+
type: null,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
mb: {
|
|
75
|
+
type: null,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
ms: {
|
|
79
|
+
type: null,
|
|
80
|
+
required: false
|
|
81
|
+
},
|
|
82
|
+
me: {
|
|
83
|
+
type: null,
|
|
84
|
+
required: false
|
|
85
|
+
},
|
|
86
|
+
mis: {
|
|
87
|
+
type: null,
|
|
88
|
+
required: false
|
|
89
|
+
},
|
|
90
|
+
mie: {
|
|
91
|
+
type: null,
|
|
92
|
+
required: false
|
|
93
|
+
},
|
|
94
|
+
ml: {
|
|
95
|
+
type: null,
|
|
96
|
+
required: false
|
|
97
|
+
},
|
|
98
|
+
mr: {
|
|
99
|
+
type: null,
|
|
100
|
+
required: false
|
|
101
|
+
},
|
|
102
|
+
p: {
|
|
103
|
+
type: null,
|
|
104
|
+
required: false
|
|
105
|
+
},
|
|
106
|
+
py: {
|
|
107
|
+
type: null,
|
|
108
|
+
required: false
|
|
109
|
+
},
|
|
110
|
+
px: {
|
|
111
|
+
type: null,
|
|
112
|
+
required: false
|
|
113
|
+
},
|
|
114
|
+
pt: {
|
|
115
|
+
type: null,
|
|
116
|
+
required: false
|
|
117
|
+
},
|
|
118
|
+
pb: {
|
|
119
|
+
type: null,
|
|
120
|
+
required: false
|
|
121
|
+
},
|
|
122
|
+
ps: {
|
|
123
|
+
type: null,
|
|
124
|
+
required: false
|
|
125
|
+
},
|
|
126
|
+
pe: {
|
|
127
|
+
type: null,
|
|
128
|
+
required: false
|
|
129
|
+
},
|
|
130
|
+
pis: {
|
|
131
|
+
type: null,
|
|
132
|
+
required: false
|
|
133
|
+
},
|
|
134
|
+
pie: {
|
|
135
|
+
type: null,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
138
|
+
pl: {
|
|
139
|
+
type: null,
|
|
140
|
+
required: false
|
|
141
|
+
},
|
|
142
|
+
pr: {
|
|
143
|
+
type: null,
|
|
144
|
+
required: false
|
|
145
|
+
},
|
|
146
|
+
bd: {
|
|
147
|
+
type: null,
|
|
148
|
+
required: false
|
|
149
|
+
},
|
|
150
|
+
bdrs: {
|
|
151
|
+
type: null,
|
|
152
|
+
required: false
|
|
153
|
+
},
|
|
154
|
+
bg: {
|
|
155
|
+
type: null,
|
|
156
|
+
required: false
|
|
157
|
+
},
|
|
158
|
+
c: {
|
|
159
|
+
type: null,
|
|
160
|
+
required: false
|
|
161
|
+
},
|
|
162
|
+
opacity: {
|
|
163
|
+
type: [
|
|
164
|
+
String,
|
|
165
|
+
Object,
|
|
166
|
+
Number
|
|
167
|
+
],
|
|
168
|
+
required: false
|
|
169
|
+
},
|
|
170
|
+
ff: {
|
|
171
|
+
type: [String, Object],
|
|
172
|
+
required: false
|
|
173
|
+
},
|
|
174
|
+
fz: {
|
|
175
|
+
type: null,
|
|
176
|
+
required: false
|
|
177
|
+
},
|
|
178
|
+
fw: {
|
|
179
|
+
type: null,
|
|
180
|
+
required: false
|
|
181
|
+
},
|
|
182
|
+
lts: {
|
|
183
|
+
type: null,
|
|
184
|
+
required: false
|
|
185
|
+
},
|
|
186
|
+
ta: {
|
|
187
|
+
type: [String, Object],
|
|
188
|
+
required: false
|
|
189
|
+
},
|
|
190
|
+
lh: {
|
|
191
|
+
type: null,
|
|
192
|
+
required: false
|
|
193
|
+
},
|
|
194
|
+
fs: {
|
|
195
|
+
type: null,
|
|
196
|
+
required: false
|
|
197
|
+
},
|
|
198
|
+
tt: {
|
|
199
|
+
type: [String, Object],
|
|
200
|
+
required: false
|
|
201
|
+
},
|
|
202
|
+
td: {
|
|
203
|
+
type: null,
|
|
204
|
+
required: false
|
|
205
|
+
},
|
|
206
|
+
w: {
|
|
207
|
+
type: null,
|
|
208
|
+
required: false
|
|
209
|
+
},
|
|
210
|
+
miw: {
|
|
211
|
+
type: null,
|
|
212
|
+
required: false
|
|
213
|
+
},
|
|
214
|
+
maw: {
|
|
215
|
+
type: null,
|
|
216
|
+
required: false
|
|
217
|
+
},
|
|
218
|
+
h: {
|
|
219
|
+
type: null,
|
|
220
|
+
required: false
|
|
221
|
+
},
|
|
222
|
+
mih: {
|
|
223
|
+
type: null,
|
|
224
|
+
required: false
|
|
225
|
+
},
|
|
226
|
+
mah: {
|
|
227
|
+
type: null,
|
|
228
|
+
required: false
|
|
229
|
+
},
|
|
230
|
+
bgsz: {
|
|
231
|
+
type: null,
|
|
232
|
+
required: false
|
|
233
|
+
},
|
|
234
|
+
bgp: {
|
|
235
|
+
type: null,
|
|
236
|
+
required: false
|
|
237
|
+
},
|
|
238
|
+
bgr: {
|
|
239
|
+
type: null,
|
|
240
|
+
required: false
|
|
241
|
+
},
|
|
242
|
+
bga: {
|
|
243
|
+
type: null,
|
|
244
|
+
required: false
|
|
245
|
+
},
|
|
246
|
+
pos: {
|
|
247
|
+
type: [String, Object],
|
|
248
|
+
required: false
|
|
249
|
+
},
|
|
250
|
+
top: {
|
|
251
|
+
type: null,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
left: {
|
|
255
|
+
type: null,
|
|
256
|
+
required: false
|
|
257
|
+
},
|
|
258
|
+
bottom: {
|
|
259
|
+
type: null,
|
|
260
|
+
required: false
|
|
261
|
+
},
|
|
262
|
+
right: {
|
|
263
|
+
type: null,
|
|
264
|
+
required: false
|
|
265
|
+
},
|
|
266
|
+
inset: {
|
|
267
|
+
type: null,
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
display: {
|
|
271
|
+
type: null,
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
flex: {
|
|
275
|
+
type: null,
|
|
276
|
+
required: false
|
|
277
|
+
},
|
|
278
|
+
unstyled: {
|
|
279
|
+
type: Boolean,
|
|
280
|
+
required: false
|
|
281
|
+
},
|
|
282
|
+
variant: {
|
|
283
|
+
type: null,
|
|
284
|
+
required: false
|
|
285
|
+
},
|
|
286
|
+
classNames: {
|
|
287
|
+
type: null,
|
|
288
|
+
required: false
|
|
289
|
+
},
|
|
290
|
+
styles: {
|
|
291
|
+
type: null,
|
|
292
|
+
required: false
|
|
293
|
+
},
|
|
294
|
+
vars: {
|
|
295
|
+
type: Function,
|
|
296
|
+
required: false
|
|
297
|
+
},
|
|
298
|
+
attributes: {
|
|
299
|
+
type: null,
|
|
300
|
+
required: false
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
setup(__props, { expose: __expose }) {
|
|
304
|
+
const _root = (0, vue.ref)(null);
|
|
305
|
+
const attrs = (0, vue.useAttrs)();
|
|
306
|
+
const rawProps = __props;
|
|
307
|
+
const props = require_use_component_props.useComponentProps({
|
|
308
|
+
component: "CSpace",
|
|
309
|
+
defaultProps: {},
|
|
310
|
+
props: rawProps
|
|
311
|
+
});
|
|
312
|
+
const knownProps = [
|
|
313
|
+
"classNames",
|
|
314
|
+
"className",
|
|
315
|
+
"style",
|
|
316
|
+
"styles",
|
|
317
|
+
"unstyled",
|
|
318
|
+
"vars",
|
|
319
|
+
"w",
|
|
320
|
+
"h",
|
|
321
|
+
"miw",
|
|
322
|
+
"mih",
|
|
323
|
+
"attributes"
|
|
324
|
+
];
|
|
325
|
+
const getStyles = require_use_styles.useStyles({
|
|
326
|
+
name: "Space",
|
|
327
|
+
props: {
|
|
328
|
+
...props.value,
|
|
329
|
+
...attrs
|
|
330
|
+
},
|
|
331
|
+
classes: require_space_module.default,
|
|
332
|
+
className: props.value.className,
|
|
333
|
+
style: props.value.style,
|
|
334
|
+
classNames: props.value.classNames,
|
|
335
|
+
styles: props.value.styles,
|
|
336
|
+
unstyled: props.value.unstyled,
|
|
337
|
+
attributes: props.value.attributes,
|
|
338
|
+
vars: props.value.vars
|
|
339
|
+
});
|
|
340
|
+
const rootAttrs = (0, vue.computed)(() => getStyles("root"));
|
|
341
|
+
const mergedAttrs = (0, vue.computed)(() => {
|
|
342
|
+
const others = {};
|
|
343
|
+
const propsValue = props.value;
|
|
344
|
+
for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
345
|
+
const userMod = props.value.mod;
|
|
346
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
|
|
347
|
+
return {
|
|
348
|
+
...others,
|
|
349
|
+
mod: mergedMod,
|
|
350
|
+
...rootAttrs.value
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
__expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
|
|
354
|
+
const __returned__ = {
|
|
355
|
+
_root,
|
|
356
|
+
attrs,
|
|
357
|
+
rawProps,
|
|
358
|
+
props,
|
|
359
|
+
knownProps,
|
|
360
|
+
getStyles,
|
|
361
|
+
rootAttrs,
|
|
362
|
+
mergedAttrs,
|
|
363
|
+
get CBox() {
|
|
364
|
+
return require_index.CBox;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
368
|
+
enumerable: false,
|
|
369
|
+
value: true
|
|
370
|
+
});
|
|
371
|
+
return __returned__;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
375
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs, {
|
|
376
|
+
w: $setup.props.w,
|
|
377
|
+
miw: $setup.props.miw ?? $setup.props.w,
|
|
378
|
+
h: $setup.props.h,
|
|
379
|
+
mih: $setup.props.mih ?? $setup.props.h
|
|
380
|
+
}), {
|
|
381
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
382
|
+
_: 3
|
|
383
|
+
}, 16, [
|
|
384
|
+
"w",
|
|
385
|
+
"miw",
|
|
386
|
+
"h",
|
|
387
|
+
"mih"
|
|
388
|
+
]);
|
|
389
|
+
}
|
|
390
|
+
var space_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/space/space.vue"]]);
|
|
391
|
+
//#endregion
|
|
392
|
+
exports.default = space_default;
|
|
393
|
+
|
|
394
|
+
//# sourceMappingURL=space.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space.cjs","names":[],"sources":["../../../src/components/space/space.vue"],"sourcesContent":["<template>\n <c-box\n ref=\"_root\"\n v-bind=\"mergedAttrs\"\n :w=\"props.w\"\n :miw=\"props.miw ?? props.w\"\n :h=\"props.h\"\n :mih=\"props.mih ?? props.h\"\n >\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport { SpaceFactory, SpaceProps } from './space.types'\nimport classes from './space.module.css'\n\ndefineOptions({\n name: 'CSpace',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<SpaceProps>()\n\nconst props = useComponentProps({\n component: 'CSpace',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'w',\n 'h',\n 'miw',\n 'mih',\n 'attributes',\n]\n\nconst getStyles = useStyles<SpaceFactory>({\n name: 'Space',\n props: { ...props.value, ...attrs } as SpaceProps,\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})\n\nconst rootAttrs = computed(() => getStyles('root'))\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBA,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,WAAW;EAEjB,MAAM,QAAQ,4BAAA,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,YAAY,mBAAA,UAAwB;GACxC,MAAM;GACN,OAAO;IAAE,GAAG,MAAM;IAAO,GAAG;GAAM;GAClC,SAAA,qBAAA;GACA,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;GACpB,UAAU,MAAM,MAAM;GACtB,YAAY,MAAM,MAAM;GACxB,MAAM,MAAM,MAAM;EACpB,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,MAAM,CAAC;EAElD,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;;;;;;;;;;;;;;;;;;;;;;mDArES,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EARN,KAAI,QAAO,GACH,OAAA,aAAW;EAClB,GAAG,OAAA,MAAM;EACT,KAAK,OAAA,MAAM,OAAO,OAAA,MAAM;EACxB,GAAG,OAAA,MAAM;EACT,KAAK,OAAA,MAAM,OAAO,OAAA,MAAM;;kCAEjB,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space.module.cjs","names":[],"sources":["../../../src/components/space/space.module.css"],"sourcesContent":[".root {\n}\n"],"mappings":";;AAAA,IAAA,uBAAe,EAAC,QAAO,aAAY"}
|
package/cjs/index.cjs
CHANGED
|
@@ -66,8 +66,9 @@ const require_index$9 = require("./components/container/index.cjs");
|
|
|
66
66
|
const require_index$10 = require("./components/grid/index.cjs");
|
|
67
67
|
const require_index$11 = require("./components/group/index.cjs");
|
|
68
68
|
const require_index$12 = require("./components/simple-grid/index.cjs");
|
|
69
|
-
const require_index$13 = require("./components/
|
|
70
|
-
const require_index$14 = require("./components/
|
|
69
|
+
const require_index$13 = require("./components/space/index.cjs");
|
|
70
|
+
const require_index$14 = require("./components/stack/index.cjs");
|
|
71
|
+
const require_index$15 = require("./components/text/index.cjs");
|
|
71
72
|
let _vue_shared = require("@vue/shared");
|
|
72
73
|
//#region packages/@cck-ui/core/src/index.ts
|
|
73
74
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
@@ -85,8 +86,9 @@ const components = [
|
|
|
85
86
|
require_index$11.CGroup,
|
|
86
87
|
require_index$5.CLoader,
|
|
87
88
|
require_index$12.CSimpleGrid,
|
|
88
|
-
require_index$13.
|
|
89
|
-
require_index$14.
|
|
89
|
+
require_index$13.CSpace,
|
|
90
|
+
require_index$14.CStack,
|
|
91
|
+
require_index$15.CText,
|
|
90
92
|
require_index$6.CTransition,
|
|
91
93
|
require_index$4.UnstyledButton
|
|
92
94
|
];
|
|
@@ -113,8 +115,9 @@ exports.CGroup = require_index$11.CGroup;
|
|
|
113
115
|
exports.CLoader = require_index$5.CLoader;
|
|
114
116
|
exports.CONFIG_KEY = require_config_provider_types.CONFIG_KEY;
|
|
115
117
|
exports.CSimpleGrid = require_index$12.CSimpleGrid;
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
+
exports.CSpace = require_index$13.CSpace;
|
|
119
|
+
exports.CStack = require_index$14.CStack;
|
|
120
|
+
exports.CText = require_index$15.CText;
|
|
118
121
|
exports.CTransition = require_index$6.CTransition;
|
|
119
122
|
exports.CckConfigProvider = require_index$1.CckConfigProvider;
|
|
120
123
|
exports.CckUI = CckUI;
|
package/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCol","CContainer","CGrid","CGroup","CLoader","CSimpleGrid","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCol","CContainer","CGrid","CGroup","CLoader","CSimpleGrid","CSpace","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjBA,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { withInstall } from "../../core/utils/vue/install.mjs";
|
|
3
|
+
import { withClasses, withExtend, withPropsFactory } from "../../core/utils/vue/statics.mjs";
|
|
4
|
+
import space_module_default from "./space.module.mjs";
|
|
5
|
+
import space_default from "./space.mjs";
|
|
6
|
+
const CSpace = withInstall(withPropsFactory(withExtend(withClasses(space_default, space_module_default))));
|
|
7
|
+
//#endregion
|
|
8
|
+
export { CSpace, CSpace as default };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Space","classes"],"sources":["../../../src/components/space/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n} from '../../core'\n\nimport Space from './space.vue'\nimport classes from './space.module.css'\n\nconst SpaceWithStatic = withPropsFactory(withExtend(withClasses(Space, classes)))\n\nexport const CSpace: SFCWithInstallAndClasses<typeof Space, typeof classes> =\n withInstall(SpaceWithStatic)\n\nexport default CSpace\n\nexport * from './space.types'\n"],"mappings":";;;;;AAaA,MAAa,SACX,YAHsB,iBAAiB,WAAW,YAAYA,eAAOC,oBAAO,CAAC,CAGjE,CAAe"}
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
|
|
3
|
+
import { useComponentProps } from "../../core/config-provider/use-component-props/use-component-props.mjs";
|
|
4
|
+
import { CBox } from "../../core/box/index.mjs";
|
|
5
|
+
import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
|
|
6
|
+
import space_module_default from "./space.module.mjs";
|
|
7
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, withCtx } from "vue";
|
|
8
|
+
//#region packages/@cck-ui/core/src/components/space/space.vue
|
|
9
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
10
|
+
name: "CSpace",
|
|
11
|
+
__name: "space",
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false
|
|
16
|
+
},
|
|
17
|
+
style: {
|
|
18
|
+
type: [
|
|
19
|
+
Object,
|
|
20
|
+
Function,
|
|
21
|
+
Array
|
|
22
|
+
],
|
|
23
|
+
required: false,
|
|
24
|
+
skipCheck: true
|
|
25
|
+
},
|
|
26
|
+
__vars: {
|
|
27
|
+
type: null,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
__size: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
hiddenFrom: {
|
|
35
|
+
type: null,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
visibleFrom: {
|
|
39
|
+
type: null,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
lightHidden: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
darkHidden: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
mod: {
|
|
51
|
+
type: [
|
|
52
|
+
Object,
|
|
53
|
+
String,
|
|
54
|
+
Array
|
|
55
|
+
],
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
m: {
|
|
59
|
+
type: null,
|
|
60
|
+
required: false
|
|
61
|
+
},
|
|
62
|
+
my: {
|
|
63
|
+
type: null,
|
|
64
|
+
required: false
|
|
65
|
+
},
|
|
66
|
+
mx: {
|
|
67
|
+
type: null,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
mt: {
|
|
71
|
+
type: null,
|
|
72
|
+
required: false
|
|
73
|
+
},
|
|
74
|
+
mb: {
|
|
75
|
+
type: null,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
ms: {
|
|
79
|
+
type: null,
|
|
80
|
+
required: false
|
|
81
|
+
},
|
|
82
|
+
me: {
|
|
83
|
+
type: null,
|
|
84
|
+
required: false
|
|
85
|
+
},
|
|
86
|
+
mis: {
|
|
87
|
+
type: null,
|
|
88
|
+
required: false
|
|
89
|
+
},
|
|
90
|
+
mie: {
|
|
91
|
+
type: null,
|
|
92
|
+
required: false
|
|
93
|
+
},
|
|
94
|
+
ml: {
|
|
95
|
+
type: null,
|
|
96
|
+
required: false
|
|
97
|
+
},
|
|
98
|
+
mr: {
|
|
99
|
+
type: null,
|
|
100
|
+
required: false
|
|
101
|
+
},
|
|
102
|
+
p: {
|
|
103
|
+
type: null,
|
|
104
|
+
required: false
|
|
105
|
+
},
|
|
106
|
+
py: {
|
|
107
|
+
type: null,
|
|
108
|
+
required: false
|
|
109
|
+
},
|
|
110
|
+
px: {
|
|
111
|
+
type: null,
|
|
112
|
+
required: false
|
|
113
|
+
},
|
|
114
|
+
pt: {
|
|
115
|
+
type: null,
|
|
116
|
+
required: false
|
|
117
|
+
},
|
|
118
|
+
pb: {
|
|
119
|
+
type: null,
|
|
120
|
+
required: false
|
|
121
|
+
},
|
|
122
|
+
ps: {
|
|
123
|
+
type: null,
|
|
124
|
+
required: false
|
|
125
|
+
},
|
|
126
|
+
pe: {
|
|
127
|
+
type: null,
|
|
128
|
+
required: false
|
|
129
|
+
},
|
|
130
|
+
pis: {
|
|
131
|
+
type: null,
|
|
132
|
+
required: false
|
|
133
|
+
},
|
|
134
|
+
pie: {
|
|
135
|
+
type: null,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
138
|
+
pl: {
|
|
139
|
+
type: null,
|
|
140
|
+
required: false
|
|
141
|
+
},
|
|
142
|
+
pr: {
|
|
143
|
+
type: null,
|
|
144
|
+
required: false
|
|
145
|
+
},
|
|
146
|
+
bd: {
|
|
147
|
+
type: null,
|
|
148
|
+
required: false
|
|
149
|
+
},
|
|
150
|
+
bdrs: {
|
|
151
|
+
type: null,
|
|
152
|
+
required: false
|
|
153
|
+
},
|
|
154
|
+
bg: {
|
|
155
|
+
type: null,
|
|
156
|
+
required: false
|
|
157
|
+
},
|
|
158
|
+
c: {
|
|
159
|
+
type: null,
|
|
160
|
+
required: false
|
|
161
|
+
},
|
|
162
|
+
opacity: {
|
|
163
|
+
type: [
|
|
164
|
+
String,
|
|
165
|
+
Object,
|
|
166
|
+
Number
|
|
167
|
+
],
|
|
168
|
+
required: false
|
|
169
|
+
},
|
|
170
|
+
ff: {
|
|
171
|
+
type: [String, Object],
|
|
172
|
+
required: false
|
|
173
|
+
},
|
|
174
|
+
fz: {
|
|
175
|
+
type: null,
|
|
176
|
+
required: false
|
|
177
|
+
},
|
|
178
|
+
fw: {
|
|
179
|
+
type: null,
|
|
180
|
+
required: false
|
|
181
|
+
},
|
|
182
|
+
lts: {
|
|
183
|
+
type: null,
|
|
184
|
+
required: false
|
|
185
|
+
},
|
|
186
|
+
ta: {
|
|
187
|
+
type: [String, Object],
|
|
188
|
+
required: false
|
|
189
|
+
},
|
|
190
|
+
lh: {
|
|
191
|
+
type: null,
|
|
192
|
+
required: false
|
|
193
|
+
},
|
|
194
|
+
fs: {
|
|
195
|
+
type: null,
|
|
196
|
+
required: false
|
|
197
|
+
},
|
|
198
|
+
tt: {
|
|
199
|
+
type: [String, Object],
|
|
200
|
+
required: false
|
|
201
|
+
},
|
|
202
|
+
td: {
|
|
203
|
+
type: null,
|
|
204
|
+
required: false
|
|
205
|
+
},
|
|
206
|
+
w: {
|
|
207
|
+
type: null,
|
|
208
|
+
required: false
|
|
209
|
+
},
|
|
210
|
+
miw: {
|
|
211
|
+
type: null,
|
|
212
|
+
required: false
|
|
213
|
+
},
|
|
214
|
+
maw: {
|
|
215
|
+
type: null,
|
|
216
|
+
required: false
|
|
217
|
+
},
|
|
218
|
+
h: {
|
|
219
|
+
type: null,
|
|
220
|
+
required: false
|
|
221
|
+
},
|
|
222
|
+
mih: {
|
|
223
|
+
type: null,
|
|
224
|
+
required: false
|
|
225
|
+
},
|
|
226
|
+
mah: {
|
|
227
|
+
type: null,
|
|
228
|
+
required: false
|
|
229
|
+
},
|
|
230
|
+
bgsz: {
|
|
231
|
+
type: null,
|
|
232
|
+
required: false
|
|
233
|
+
},
|
|
234
|
+
bgp: {
|
|
235
|
+
type: null,
|
|
236
|
+
required: false
|
|
237
|
+
},
|
|
238
|
+
bgr: {
|
|
239
|
+
type: null,
|
|
240
|
+
required: false
|
|
241
|
+
},
|
|
242
|
+
bga: {
|
|
243
|
+
type: null,
|
|
244
|
+
required: false
|
|
245
|
+
},
|
|
246
|
+
pos: {
|
|
247
|
+
type: [String, Object],
|
|
248
|
+
required: false
|
|
249
|
+
},
|
|
250
|
+
top: {
|
|
251
|
+
type: null,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
left: {
|
|
255
|
+
type: null,
|
|
256
|
+
required: false
|
|
257
|
+
},
|
|
258
|
+
bottom: {
|
|
259
|
+
type: null,
|
|
260
|
+
required: false
|
|
261
|
+
},
|
|
262
|
+
right: {
|
|
263
|
+
type: null,
|
|
264
|
+
required: false
|
|
265
|
+
},
|
|
266
|
+
inset: {
|
|
267
|
+
type: null,
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
display: {
|
|
271
|
+
type: null,
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
flex: {
|
|
275
|
+
type: null,
|
|
276
|
+
required: false
|
|
277
|
+
},
|
|
278
|
+
unstyled: {
|
|
279
|
+
type: Boolean,
|
|
280
|
+
required: false
|
|
281
|
+
},
|
|
282
|
+
variant: {
|
|
283
|
+
type: null,
|
|
284
|
+
required: false
|
|
285
|
+
},
|
|
286
|
+
classNames: {
|
|
287
|
+
type: null,
|
|
288
|
+
required: false
|
|
289
|
+
},
|
|
290
|
+
styles: {
|
|
291
|
+
type: null,
|
|
292
|
+
required: false
|
|
293
|
+
},
|
|
294
|
+
vars: {
|
|
295
|
+
type: Function,
|
|
296
|
+
required: false
|
|
297
|
+
},
|
|
298
|
+
attributes: {
|
|
299
|
+
type: null,
|
|
300
|
+
required: false
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
setup(__props, { expose: __expose }) {
|
|
304
|
+
const _root = ref(null);
|
|
305
|
+
const attrs = useAttrs();
|
|
306
|
+
const rawProps = __props;
|
|
307
|
+
const props = useComponentProps({
|
|
308
|
+
component: "CSpace",
|
|
309
|
+
defaultProps: {},
|
|
310
|
+
props: rawProps
|
|
311
|
+
});
|
|
312
|
+
const knownProps = [
|
|
313
|
+
"classNames",
|
|
314
|
+
"className",
|
|
315
|
+
"style",
|
|
316
|
+
"styles",
|
|
317
|
+
"unstyled",
|
|
318
|
+
"vars",
|
|
319
|
+
"w",
|
|
320
|
+
"h",
|
|
321
|
+
"miw",
|
|
322
|
+
"mih",
|
|
323
|
+
"attributes"
|
|
324
|
+
];
|
|
325
|
+
const getStyles = useStyles({
|
|
326
|
+
name: "Space",
|
|
327
|
+
props: {
|
|
328
|
+
...props.value,
|
|
329
|
+
...attrs
|
|
330
|
+
},
|
|
331
|
+
classes: space_module_default,
|
|
332
|
+
className: props.value.className,
|
|
333
|
+
style: props.value.style,
|
|
334
|
+
classNames: props.value.classNames,
|
|
335
|
+
styles: props.value.styles,
|
|
336
|
+
unstyled: props.value.unstyled,
|
|
337
|
+
attributes: props.value.attributes,
|
|
338
|
+
vars: props.value.vars
|
|
339
|
+
});
|
|
340
|
+
const rootAttrs = computed(() => getStyles("root"));
|
|
341
|
+
const mergedAttrs = computed(() => {
|
|
342
|
+
const others = {};
|
|
343
|
+
const propsValue = props.value;
|
|
344
|
+
for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
345
|
+
const userMod = props.value.mod;
|
|
346
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
|
|
347
|
+
return {
|
|
348
|
+
...others,
|
|
349
|
+
mod: mergedMod,
|
|
350
|
+
...rootAttrs.value
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
__expose({ root: computed(() => _root.value?.root ?? null) });
|
|
354
|
+
const __returned__ = {
|
|
355
|
+
_root,
|
|
356
|
+
attrs,
|
|
357
|
+
rawProps,
|
|
358
|
+
props,
|
|
359
|
+
knownProps,
|
|
360
|
+
getStyles,
|
|
361
|
+
rootAttrs,
|
|
362
|
+
mergedAttrs,
|
|
363
|
+
get CBox() {
|
|
364
|
+
return CBox;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
368
|
+
enumerable: false,
|
|
369
|
+
value: true
|
|
370
|
+
});
|
|
371
|
+
return __returned__;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
375
|
+
return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_root" }, $setup.mergedAttrs, {
|
|
376
|
+
w: $setup.props.w,
|
|
377
|
+
miw: $setup.props.miw ?? $setup.props.w,
|
|
378
|
+
h: $setup.props.h,
|
|
379
|
+
mih: $setup.props.mih ?? $setup.props.h
|
|
380
|
+
}), {
|
|
381
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
382
|
+
_: 3
|
|
383
|
+
}, 16, [
|
|
384
|
+
"w",
|
|
385
|
+
"miw",
|
|
386
|
+
"h",
|
|
387
|
+
"mih"
|
|
388
|
+
]);
|
|
389
|
+
}
|
|
390
|
+
var space_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/space/space.vue"]]);
|
|
391
|
+
//#endregion
|
|
392
|
+
export { space_default as default };
|
|
393
|
+
|
|
394
|
+
//# sourceMappingURL=space.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space.mjs","names":[],"sources":["../../../src/components/space/space.vue"],"sourcesContent":["<template>\n <c-box\n ref=\"_root\"\n v-bind=\"mergedAttrs\"\n :w=\"props.w\"\n :miw=\"props.miw ?? props.w\"\n :h=\"props.h\"\n :mih=\"props.mih ?? props.h\"\n >\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport { SpaceFactory, SpaceProps } from './space.types'\nimport classes from './space.module.css'\n\ndefineOptions({\n name: 'CSpace',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<SpaceProps>()\n\nconst props = useComponentProps({\n component: 'CSpace',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'w',\n 'h',\n 'miw',\n 'mih',\n 'attributes',\n]\n\nconst getStyles = useStyles<SpaceFactory>({\n name: 'Space',\n props: { ...props.value, ...attrs } as SpaceProps,\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})\n\nconst rootAttrs = computed(() => getStyles('root'))\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBA,MAAM,QAAQ,IAAsC,IAAI;EAExD,MAAM,QAAQ,SAAS;EAEvB,MAAM,WAAW;EAEjB,MAAM,QAAQ,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,YAAY,UAAwB;GACxC,MAAM;GACN,OAAO;IAAE,GAAG,MAAM;IAAO,GAAG;GAAM;GAClC,SAAA;GACA,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;GACpB,UAAU,MAAM,MAAM;GACtB,YAAY,MAAM,MAAM;GACxB,MAAM,MAAM,MAAM;EACpB,CAAC;EAED,MAAM,YAAY,eAAe,UAAU,MAAM,CAAC;EAElD,MAAM,cAAc,eAAe;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,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;qBA9EC,YASQ,OAAA,SATR,WASQ,EARN,KAAI,QAAO,GACH,OAAA,aAAW;EAClB,GAAG,OAAA,MAAM;EACT,KAAK,OAAA,MAAM,OAAO,OAAA,MAAM;EACxB,GAAG,OAAA,MAAM;EACT,KAAK,OAAA,MAAM,OAAO,OAAA,MAAM;;yBAEjB,CAAR,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space.module.mjs","names":[],"sources":["../../../src/components/space/space.module.css"],"sourcesContent":[".root {\n}\n"],"mappings":";;AAAA,IAAA,uBAAe,EAAC,QAAO,aAAY"}
|
package/esm/index.mjs
CHANGED
|
@@ -62,6 +62,7 @@ import { CContainer } from "./components/container/index.mjs";
|
|
|
62
62
|
import { CCol, CGrid } from "./components/grid/index.mjs";
|
|
63
63
|
import { CGroup } from "./components/group/index.mjs";
|
|
64
64
|
import { CSimpleGrid } from "./components/simple-grid/index.mjs";
|
|
65
|
+
import { CSpace } from "./components/space/index.mjs";
|
|
65
66
|
import { CStack } from "./components/stack/index.mjs";
|
|
66
67
|
import { CText } from "./components/text/index.mjs";
|
|
67
68
|
//#region packages/@cck-ui/core/src/index.ts
|
|
@@ -80,6 +81,7 @@ const components = [
|
|
|
80
81
|
CGroup,
|
|
81
82
|
CLoader,
|
|
82
83
|
CSimpleGrid,
|
|
84
|
+
CSpace,
|
|
83
85
|
CStack,
|
|
84
86
|
CText,
|
|
85
87
|
CTransition,
|
|
@@ -93,6 +95,6 @@ const CckUI = { install(app) {
|
|
|
93
95
|
});
|
|
94
96
|
} };
|
|
95
97
|
//#endregion
|
|
96
|
-
export { CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCol, CContainer, CDefaultLoaders, CGrid, CGroup, CLoader, CONFIG_KEY, CSimpleGrid, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
|
|
98
|
+
export { CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCol, CContainer, CDefaultLoaders, CGrid, CGroup, CLoader, CONFIG_KEY, CSimpleGrid, CSpace, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
|
|
97
99
|
|
|
98
100
|
//# sourceMappingURL=index.mjs.map
|
package/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCol,\n CContainer,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import Space from './space.vue';
|
|
3
|
+
import classes from './space.module.css';
|
|
4
|
+
export declare const CSpace: SFCWithInstallAndClasses<typeof Space, typeof classes>;
|
|
5
|
+
export default CSpace;
|
|
6
|
+
export * from './space.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BoxProps, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
2
|
+
export type SpaceStylesNames = 'root';
|
|
3
|
+
export interface SpaceProps extends BoxProps, StylesApiProps<SpaceFactory>, /* @vue-ignore */ ElementProps<'div'> {
|
|
4
|
+
}
|
|
5
|
+
export type SpaceFactory = Factory<{
|
|
6
|
+
props: SpaceProps;
|
|
7
|
+
ref: HTMLDivElement;
|
|
8
|
+
stylesNames: SpaceStylesNames;
|
|
9
|
+
}>;
|
package/package.json
CHANGED
package/styles/space.css
ADDED
package/styles.css
CHANGED
package/styles.layer.css
CHANGED