@cck-ui/core 0.16.0 → 0.17.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/paper/index.cjs +14 -0
- package/cjs/components/paper/index.cjs.map +1 -0
- package/cjs/components/paper/paper.cjs +401 -0
- package/cjs/components/paper/paper.cjs.map +1 -0
- package/cjs/components/paper/paper.module.cjs +7 -0
- package/cjs/components/paper/paper.module.cjs.map +1 -0
- package/cjs/components/paper/paper.utils.cjs +11 -0
- package/cjs/components/paper/paper.utils.cjs.map +1 -0
- package/cjs/index.cjs +26 -23
- package/cjs/index.cjs.map +1 -1
- package/esm/components/paper/index.mjs +11 -0
- package/esm/components/paper/index.mjs.map +1 -0
- package/esm/components/paper/paper.mjs +401 -0
- package/esm/components/paper/paper.mjs.map +1 -0
- package/esm/components/paper/paper.module.mjs +7 -0
- package/esm/components/paper/paper.module.mjs.map +1 -0
- package/esm/components/paper/paper.utils.mjs +12 -0
- package/esm/components/paper/paper.utils.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/paper/index.d.ts +6 -0
- package/lib/components/paper/paper.types.d.ts +29 -0
- package/lib/components/paper/paper.utils.d.ts +7 -0
- package/package.json +1 -1
- package/styles/paper.css +24 -0
- package/styles/paper.layer.css +25 -0
- package/styles.css +25 -0
- package/styles.layer.css +25 -0
|
@@ -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_paper_utils = require("./paper.utils.cjs");
|
|
5
|
+
const require_paper_module = require("./paper.module.cjs");
|
|
6
|
+
const require_paper = require("./paper.cjs");
|
|
7
|
+
//#region packages/@cck-ui/core/src/components/paper/index.ts
|
|
8
|
+
const PaperWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withVarsResolver(require_statics.withClasses(require_paper.default, require_paper_module.default), require_paper_utils.varsResolver)));
|
|
9
|
+
const CPaper = require_install.withInstall(PaperWithStatic);
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.CPaper = CPaper;
|
|
12
|
+
exports.default = CPaper;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withVarsResolver","withClasses","Paper","classes","varsResolver","withInstall"],"sources":["../../../src/components/paper/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport { varsResolver } from './paper.utils'\nimport Paper from './paper.vue'\nimport classes from './paper.module.css'\n\nconst PaperWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Paper, classes), varsResolver))\n)\n\nexport const CPaper: SFCWithInstallAndClasses<typeof Paper, typeof classes> =\n withInstall(PaperWithStatic)\n\nexport default CPaper\n\nexport * from './paper.types'\n"],"mappings":";;;;;;;AAYA,MAAM,kBAAkBA,gBAAAA,iBACtBC,gBAAAA,WAAWC,gBAAAA,iBAAiBC,gBAAAA,YAAYC,cAAAA,SAAOC,qBAAAA,OAAO,GAAGC,oBAAAA,YAAY,CAAC,CACxE;AAEA,MAAa,SACXC,gBAAAA,YAAY,eAAe"}
|
|
@@ -0,0 +1,401 @@
|
|
|
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_paper_utils = require("./paper.utils.cjs");
|
|
7
|
+
const require_paper_module = require("./paper.module.cjs");
|
|
8
|
+
let vue = require("vue");
|
|
9
|
+
//#region packages/@cck-ui/core/src/components/paper/paper.vue
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
11
|
+
name: "CPaper",
|
|
12
|
+
__name: "paper",
|
|
13
|
+
props: {
|
|
14
|
+
className: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
style: {
|
|
19
|
+
type: [
|
|
20
|
+
Object,
|
|
21
|
+
Function,
|
|
22
|
+
Array
|
|
23
|
+
],
|
|
24
|
+
required: false,
|
|
25
|
+
skipCheck: true
|
|
26
|
+
},
|
|
27
|
+
__vars: {
|
|
28
|
+
type: null,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
__size: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
35
|
+
hiddenFrom: {
|
|
36
|
+
type: null,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
visibleFrom: {
|
|
40
|
+
type: null,
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
lightHidden: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
darkHidden: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
mod: {
|
|
52
|
+
type: [
|
|
53
|
+
Object,
|
|
54
|
+
String,
|
|
55
|
+
Array
|
|
56
|
+
],
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
m: {
|
|
60
|
+
type: null,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
my: {
|
|
64
|
+
type: null,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
mx: {
|
|
68
|
+
type: null,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
mt: {
|
|
72
|
+
type: null,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
mb: {
|
|
76
|
+
type: null,
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
ms: {
|
|
80
|
+
type: null,
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
me: {
|
|
84
|
+
type: null,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
mis: {
|
|
88
|
+
type: null,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
mie: {
|
|
92
|
+
type: null,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
ml: {
|
|
96
|
+
type: null,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
mr: {
|
|
100
|
+
type: null,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
p: {
|
|
104
|
+
type: null,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
py: {
|
|
108
|
+
type: null,
|
|
109
|
+
required: false
|
|
110
|
+
},
|
|
111
|
+
px: {
|
|
112
|
+
type: null,
|
|
113
|
+
required: false
|
|
114
|
+
},
|
|
115
|
+
pt: {
|
|
116
|
+
type: null,
|
|
117
|
+
required: false
|
|
118
|
+
},
|
|
119
|
+
pb: {
|
|
120
|
+
type: null,
|
|
121
|
+
required: false
|
|
122
|
+
},
|
|
123
|
+
ps: {
|
|
124
|
+
type: null,
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
pe: {
|
|
128
|
+
type: null,
|
|
129
|
+
required: false
|
|
130
|
+
},
|
|
131
|
+
pis: {
|
|
132
|
+
type: null,
|
|
133
|
+
required: false
|
|
134
|
+
},
|
|
135
|
+
pie: {
|
|
136
|
+
type: null,
|
|
137
|
+
required: false
|
|
138
|
+
},
|
|
139
|
+
pl: {
|
|
140
|
+
type: null,
|
|
141
|
+
required: false
|
|
142
|
+
},
|
|
143
|
+
pr: {
|
|
144
|
+
type: null,
|
|
145
|
+
required: false
|
|
146
|
+
},
|
|
147
|
+
bd: {
|
|
148
|
+
type: null,
|
|
149
|
+
required: false
|
|
150
|
+
},
|
|
151
|
+
bdrs: {
|
|
152
|
+
type: null,
|
|
153
|
+
required: false
|
|
154
|
+
},
|
|
155
|
+
bg: {
|
|
156
|
+
type: null,
|
|
157
|
+
required: false
|
|
158
|
+
},
|
|
159
|
+
c: {
|
|
160
|
+
type: null,
|
|
161
|
+
required: false
|
|
162
|
+
},
|
|
163
|
+
opacity: {
|
|
164
|
+
type: [
|
|
165
|
+
String,
|
|
166
|
+
Object,
|
|
167
|
+
Number
|
|
168
|
+
],
|
|
169
|
+
required: false
|
|
170
|
+
},
|
|
171
|
+
ff: {
|
|
172
|
+
type: [String, Object],
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
fz: {
|
|
176
|
+
type: null,
|
|
177
|
+
required: false
|
|
178
|
+
},
|
|
179
|
+
fw: {
|
|
180
|
+
type: null,
|
|
181
|
+
required: false
|
|
182
|
+
},
|
|
183
|
+
lts: {
|
|
184
|
+
type: null,
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
ta: {
|
|
188
|
+
type: [String, Object],
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
191
|
+
lh: {
|
|
192
|
+
type: null,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
fs: {
|
|
196
|
+
type: null,
|
|
197
|
+
required: false
|
|
198
|
+
},
|
|
199
|
+
tt: {
|
|
200
|
+
type: [String, Object],
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
td: {
|
|
204
|
+
type: null,
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
w: {
|
|
208
|
+
type: null,
|
|
209
|
+
required: false
|
|
210
|
+
},
|
|
211
|
+
miw: {
|
|
212
|
+
type: null,
|
|
213
|
+
required: false
|
|
214
|
+
},
|
|
215
|
+
maw: {
|
|
216
|
+
type: null,
|
|
217
|
+
required: false
|
|
218
|
+
},
|
|
219
|
+
h: {
|
|
220
|
+
type: null,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
mih: {
|
|
224
|
+
type: null,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
mah: {
|
|
228
|
+
type: null,
|
|
229
|
+
required: false
|
|
230
|
+
},
|
|
231
|
+
bgsz: {
|
|
232
|
+
type: null,
|
|
233
|
+
required: false
|
|
234
|
+
},
|
|
235
|
+
bgp: {
|
|
236
|
+
type: null,
|
|
237
|
+
required: false
|
|
238
|
+
},
|
|
239
|
+
bgr: {
|
|
240
|
+
type: null,
|
|
241
|
+
required: false
|
|
242
|
+
},
|
|
243
|
+
bga: {
|
|
244
|
+
type: null,
|
|
245
|
+
required: false
|
|
246
|
+
},
|
|
247
|
+
pos: {
|
|
248
|
+
type: [String, Object],
|
|
249
|
+
required: false
|
|
250
|
+
},
|
|
251
|
+
top: {
|
|
252
|
+
type: null,
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
left: {
|
|
256
|
+
type: null,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
bottom: {
|
|
260
|
+
type: null,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
right: {
|
|
264
|
+
type: null,
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
inset: {
|
|
268
|
+
type: null,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
display: {
|
|
272
|
+
type: null,
|
|
273
|
+
required: false
|
|
274
|
+
},
|
|
275
|
+
flex: {
|
|
276
|
+
type: null,
|
|
277
|
+
required: false
|
|
278
|
+
},
|
|
279
|
+
shadow: {
|
|
280
|
+
type: null,
|
|
281
|
+
required: false
|
|
282
|
+
},
|
|
283
|
+
radius: {
|
|
284
|
+
type: null,
|
|
285
|
+
required: false
|
|
286
|
+
},
|
|
287
|
+
withBorder: {
|
|
288
|
+
type: Boolean,
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
291
|
+
unstyled: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
required: false
|
|
294
|
+
},
|
|
295
|
+
variant: {
|
|
296
|
+
type: null,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
299
|
+
classNames: {
|
|
300
|
+
type: null,
|
|
301
|
+
required: false
|
|
302
|
+
},
|
|
303
|
+
styles: {
|
|
304
|
+
type: null,
|
|
305
|
+
required: false
|
|
306
|
+
},
|
|
307
|
+
vars: {
|
|
308
|
+
type: Function,
|
|
309
|
+
required: false
|
|
310
|
+
},
|
|
311
|
+
attributes: {
|
|
312
|
+
type: null,
|
|
313
|
+
required: false
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
setup(__props, { expose: __expose }) {
|
|
317
|
+
const _root = (0, vue.ref)(null);
|
|
318
|
+
const attrs = (0, vue.useAttrs)();
|
|
319
|
+
const rawProps = __props;
|
|
320
|
+
const props = require_use_component_props.useComponentProps({
|
|
321
|
+
component: "CPaper",
|
|
322
|
+
defaultProps: {},
|
|
323
|
+
props: rawProps
|
|
324
|
+
});
|
|
325
|
+
const knownProps = [
|
|
326
|
+
"classNames",
|
|
327
|
+
"className",
|
|
328
|
+
"style",
|
|
329
|
+
"styles",
|
|
330
|
+
"unstyled",
|
|
331
|
+
"withBorder",
|
|
332
|
+
"vars",
|
|
333
|
+
"radius",
|
|
334
|
+
"shadow",
|
|
335
|
+
"variant",
|
|
336
|
+
"mod",
|
|
337
|
+
"attributes"
|
|
338
|
+
];
|
|
339
|
+
const modList = (0, vue.computed)(() => [{ "data-with-border": props.value.withBorder }]);
|
|
340
|
+
const getStyles = require_use_styles.useStyles({
|
|
341
|
+
name: "Paper",
|
|
342
|
+
props: {
|
|
343
|
+
...props.value,
|
|
344
|
+
...attrs
|
|
345
|
+
},
|
|
346
|
+
classes: require_paper_module.default,
|
|
347
|
+
className: props.value.className,
|
|
348
|
+
style: props.value.style,
|
|
349
|
+
classNames: props.value.classNames,
|
|
350
|
+
styles: props.value.styles,
|
|
351
|
+
unstyled: props.value.unstyled,
|
|
352
|
+
attributes: props.value.attributes,
|
|
353
|
+
vars: props.value.vars,
|
|
354
|
+
varsResolver: require_paper_utils.varsResolver
|
|
355
|
+
});
|
|
356
|
+
const rootAttrs = (0, vue.computed)(() => getStyles("root"));
|
|
357
|
+
const mergedAttrs = (0, vue.computed)(() => {
|
|
358
|
+
const others = {};
|
|
359
|
+
const propsValue = props.value;
|
|
360
|
+
for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
361
|
+
const userMod = props.value.mod;
|
|
362
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean), ...modList.value || []];
|
|
363
|
+
return {
|
|
364
|
+
...others,
|
|
365
|
+
mod: mergedMod,
|
|
366
|
+
...rootAttrs.value
|
|
367
|
+
};
|
|
368
|
+
});
|
|
369
|
+
__expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
|
|
370
|
+
const __returned__ = {
|
|
371
|
+
_root,
|
|
372
|
+
attrs,
|
|
373
|
+
rawProps,
|
|
374
|
+
props,
|
|
375
|
+
knownProps,
|
|
376
|
+
modList,
|
|
377
|
+
getStyles,
|
|
378
|
+
rootAttrs,
|
|
379
|
+
mergedAttrs,
|
|
380
|
+
get CBox() {
|
|
381
|
+
return require_index.CBox;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
385
|
+
enumerable: false,
|
|
386
|
+
value: true
|
|
387
|
+
});
|
|
388
|
+
return __returned__;
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
392
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs, { variant: $setup.props.variant }), {
|
|
393
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
394
|
+
_: 3
|
|
395
|
+
}, 16, ["variant"]);
|
|
396
|
+
}
|
|
397
|
+
var paper_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/paper/paper.vue"]]);
|
|
398
|
+
//#endregion
|
|
399
|
+
exports.default = paper_default;
|
|
400
|
+
|
|
401
|
+
//# sourceMappingURL=paper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.cjs","names":[],"sources":["../../../src/components/paper/paper.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\" :variant=\"props.variant\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport classes from './paper.module.css'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport { PaperFactory, PaperProps } from './paper.types'\nimport { varsResolver } from './paper.utils'\n\ndefineOptions({\n name: 'CPaper',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<PaperProps>()\n\nconst props = useComponentProps({\n component: 'CPaper',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'withBorder',\n 'vars',\n 'radius',\n 'shadow',\n 'variant',\n 'mod',\n 'attributes',\n]\n\nconst modList = computed(() => [\n {\n 'data-with-border': props.value.withBorder,\n },\n])\n\nconst getStyles = useStyles<PaperFactory>({\n name: 'Paper',\n props: { ...props.value, ...attrs } as PaperProps,\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 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 = [\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,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;GACA;EACF;EAEA,MAAM,WAAA,GAAA,IAAA,SAAA,OAAyB,CAC7B,EACE,oBAAoB,MAAM,MAAM,WAClC,CACF,CAAC;EAED,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;GAClB,cAAA,oBAAA;EACF,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,CAChB,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,GAC/D,GAAI,QAAQ,SAAS,CAAC,CACxB;GACA,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;;;;;;;;;;;;;;;;;;;;;;;mDAjFS,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAFD,KAAI,QAAO,GAAS,OAAA,aAAW,EAAG,SAAS,OAAA,MAAM,QAAA,CAAA,GAAA;kCAC9C,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.module.cjs","names":[],"sources":["../../../src/components/paper/paper.module.css"],"sourcesContent":[".root {\n --paper-radius: var(--c-radius-default);\n\n outline: 0;\n -webkit-tap-heighlight-color: transparent;\n display: block;\n touch-action: manipulation;\n text-decoration: none;\n border-radius: var(--paper-radius);\n box-shadow: var(--paper-shadow);\n background-color: var(--c-color-body);\n\n @mixin light {\n --paper-border-color: var(--c-color-gray-3);\n }\n\n @mixin dark {\n --paper-border-color: var(--c-color-dark-4);\n }\n\n &:where([data-with-border]) {\n border: rem(1px) solid var(--paper-border-color);\n }\n}\n"],"mappings":";;AAAA,IAAA,uBAAe,EAAC,QAAO,aAAY"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_get_size = require("../../core/utils/get-size/get-size.cjs");
|
|
3
|
+
//#region packages/@cck-ui/core/src/components/paper/paper.utils.ts
|
|
4
|
+
const varsResolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs").createVarsResolver((_, { radius, shadow }) => ({ root: {
|
|
5
|
+
"--paper-radius": radius === void 0 ? void 0 : require_get_size.getRadius(radius),
|
|
6
|
+
"--paper-shadow": require_get_size.getShadow(shadow)
|
|
7
|
+
} }));
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.varsResolver = varsResolver;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=paper.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.utils.cjs","names":["createVarsResolver","getRadius","getShadow"],"sources":["../../../src/components/paper/paper.utils.ts"],"sourcesContent":["import { createVarsResolver, getRadius, getShadow } from '../../core'\nimport { PaperFactory } from './paper.types'\n\nexport const varsResolver = createVarsResolver<PaperFactory>((_, { radius, shadow }) => ({\n root: {\n '--paper-radius': radius === undefined ? undefined : getRadius(radius),\n '--paper-shadow': getShadow(shadow),\n },\n}))\n"],"mappings":";;;AAGA,MAAa,4FAAeA,CAAAA,CAAAA,oBAAkC,GAAG,EAAE,QAAQ,cAAc,EACvF,MAAM;CACJ,kBAAkB,WAAW,KAAA,IAAY,KAAA,IAAYC,iBAAAA,UAAU,MAAM;CACrE,kBAAkBC,iBAAAA,UAAU,MAAM;AACpC,EACF,EAAE"}
|
package/cjs/index.cjs
CHANGED
|
@@ -69,13 +69,14 @@ const require_index$12 = require("./components/empty-state/index.cjs");
|
|
|
69
69
|
const require_index$13 = require("./components/flex/index.cjs");
|
|
70
70
|
const require_index$14 = require("./components/grid/index.cjs");
|
|
71
71
|
const require_index$15 = require("./components/group/index.cjs");
|
|
72
|
-
const require_index$16 = require("./components/
|
|
73
|
-
const require_index$17 = require("./components/
|
|
74
|
-
const require_index$18 = require("./components/
|
|
75
|
-
const require_index$19 = require("./components/
|
|
76
|
-
const require_index$20 = require("./components/
|
|
77
|
-
const require_index$21 = require("./components/
|
|
78
|
-
const require_index$22 = require("./components/
|
|
72
|
+
const require_index$16 = require("./components/paper/index.cjs");
|
|
73
|
+
const require_index$17 = require("./components/semi-circle-progress/index.cjs");
|
|
74
|
+
const require_index$18 = require("./components/simple-grid/index.cjs");
|
|
75
|
+
const require_index$19 = require("./components/skeleton/index.cjs");
|
|
76
|
+
const require_index$20 = require("./components/space/index.cjs");
|
|
77
|
+
const require_index$21 = require("./components/splitter/index.cjs");
|
|
78
|
+
const require_index$22 = require("./components/stack/index.cjs");
|
|
79
|
+
const require_index$23 = require("./components/text/index.cjs");
|
|
79
80
|
let _vue_shared = require("@vue/shared");
|
|
80
81
|
//#region packages/@cck-ui/core/src/index.ts
|
|
81
82
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
@@ -100,14 +101,15 @@ const components = [
|
|
|
100
101
|
require_index$14.CGrid,
|
|
101
102
|
require_index$15.CGroup,
|
|
102
103
|
require_index$7.CLoader,
|
|
103
|
-
require_index$16.
|
|
104
|
-
require_index$17.
|
|
105
|
-
require_index$18.
|
|
106
|
-
require_index$19.
|
|
107
|
-
require_index$20.
|
|
108
|
-
require_index$
|
|
109
|
-
require_index$21.
|
|
110
|
-
require_index$22.
|
|
104
|
+
require_index$16.CPaper,
|
|
105
|
+
require_index$17.CSemiCircleProgress,
|
|
106
|
+
require_index$18.CSimpleGrid,
|
|
107
|
+
require_index$19.CSkeleton,
|
|
108
|
+
require_index$20.CSpace,
|
|
109
|
+
require_index$21.CSplitter,
|
|
110
|
+
require_index$21.CSplitterPane,
|
|
111
|
+
require_index$22.CStack,
|
|
112
|
+
require_index$23.CText,
|
|
111
113
|
require_index$8.CTransition,
|
|
112
114
|
require_index$3.UnstyledButton
|
|
113
115
|
];
|
|
@@ -141,14 +143,15 @@ exports.CGrid = require_index$14.CGrid;
|
|
|
141
143
|
exports.CGroup = require_index$15.CGroup;
|
|
142
144
|
exports.CLoader = require_index$7.CLoader;
|
|
143
145
|
exports.CONFIG_KEY = require_config_provider_types.CONFIG_KEY;
|
|
144
|
-
exports.
|
|
145
|
-
exports.
|
|
146
|
-
exports.
|
|
147
|
-
exports.
|
|
148
|
-
exports.
|
|
149
|
-
exports.
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
146
|
+
exports.CPaper = require_index$16.CPaper;
|
|
147
|
+
exports.CSemiCircleProgress = require_index$17.CSemiCircleProgress;
|
|
148
|
+
exports.CSimpleGrid = require_index$18.CSimpleGrid;
|
|
149
|
+
exports.CSkeleton = require_index$19.CSkeleton;
|
|
150
|
+
exports.CSpace = require_index$20.CSpace;
|
|
151
|
+
exports.CSplitter = require_index$21.CSplitter;
|
|
152
|
+
exports.CSplitterPane = require_index$21.CSplitterPane;
|
|
153
|
+
exports.CStack = require_index$22.CStack;
|
|
154
|
+
exports.CText = require_index$23.CText;
|
|
152
155
|
exports.CTransition = require_index$8.CTransition;
|
|
153
156
|
exports.CckConfigProvider = require_index$1.CckConfigProvider;
|
|
154
157
|
exports.CckUI = CckUI;
|
package/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CAlert","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCloseButton","CCol","CContainer","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFlex","CGrid","CGroup","CLoader","CSemiCircleProgress","CSimpleGrid","CSkeleton","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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","CAlert","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCloseButton","CCol","CContainer","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFlex","CGrid","CGroup","CLoader","CPaper","CSemiCircleProgress","CSimpleGrid","CSkeleton","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CPaper,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CPaper,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,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,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;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,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { withInstall } from "../../core/utils/vue/install.mjs";
|
|
3
|
+
import { withClasses, withExtend, withPropsFactory, withVarsResolver } from "../../core/utils/vue/statics.mjs";
|
|
4
|
+
import { varsResolver } from "./paper.utils.mjs";
|
|
5
|
+
import paper_module_default from "./paper.module.mjs";
|
|
6
|
+
import paper_default from "./paper.mjs";
|
|
7
|
+
const CPaper = withInstall(withPropsFactory(withExtend(withVarsResolver(withClasses(paper_default, paper_module_default), varsResolver))));
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CPaper, CPaper as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Paper","classes"],"sources":["../../../src/components/paper/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport { varsResolver } from './paper.utils'\nimport Paper from './paper.vue'\nimport classes from './paper.module.css'\n\nconst PaperWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Paper, classes), varsResolver))\n)\n\nexport const CPaper: SFCWithInstallAndClasses<typeof Paper, typeof classes> =\n withInstall(PaperWithStatic)\n\nexport default CPaper\n\nexport * from './paper.types'\n"],"mappings":";;;;;;AAgBA,MAAa,SACX,YALsB,iBACtB,WAAW,iBAAiB,YAAYA,eAAOC,oBAAO,GAAG,YAAY,CAAC,CAI1D,CAAe"}
|
|
@@ -0,0 +1,401 @@
|
|
|
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 { varsResolver } from "./paper.utils.mjs";
|
|
7
|
+
import paper_module_default from "./paper.module.mjs";
|
|
8
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, withCtx } from "vue";
|
|
9
|
+
//#region packages/@cck-ui/core/src/components/paper/paper.vue
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
|
+
name: "CPaper",
|
|
12
|
+
__name: "paper",
|
|
13
|
+
props: {
|
|
14
|
+
className: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
style: {
|
|
19
|
+
type: [
|
|
20
|
+
Object,
|
|
21
|
+
Function,
|
|
22
|
+
Array
|
|
23
|
+
],
|
|
24
|
+
required: false,
|
|
25
|
+
skipCheck: true
|
|
26
|
+
},
|
|
27
|
+
__vars: {
|
|
28
|
+
type: null,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
__size: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
35
|
+
hiddenFrom: {
|
|
36
|
+
type: null,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
visibleFrom: {
|
|
40
|
+
type: null,
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
lightHidden: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
darkHidden: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
mod: {
|
|
52
|
+
type: [
|
|
53
|
+
Object,
|
|
54
|
+
String,
|
|
55
|
+
Array
|
|
56
|
+
],
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
m: {
|
|
60
|
+
type: null,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
my: {
|
|
64
|
+
type: null,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
mx: {
|
|
68
|
+
type: null,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
mt: {
|
|
72
|
+
type: null,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
mb: {
|
|
76
|
+
type: null,
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
ms: {
|
|
80
|
+
type: null,
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
me: {
|
|
84
|
+
type: null,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
mis: {
|
|
88
|
+
type: null,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
mie: {
|
|
92
|
+
type: null,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
ml: {
|
|
96
|
+
type: null,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
mr: {
|
|
100
|
+
type: null,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
p: {
|
|
104
|
+
type: null,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
py: {
|
|
108
|
+
type: null,
|
|
109
|
+
required: false
|
|
110
|
+
},
|
|
111
|
+
px: {
|
|
112
|
+
type: null,
|
|
113
|
+
required: false
|
|
114
|
+
},
|
|
115
|
+
pt: {
|
|
116
|
+
type: null,
|
|
117
|
+
required: false
|
|
118
|
+
},
|
|
119
|
+
pb: {
|
|
120
|
+
type: null,
|
|
121
|
+
required: false
|
|
122
|
+
},
|
|
123
|
+
ps: {
|
|
124
|
+
type: null,
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
pe: {
|
|
128
|
+
type: null,
|
|
129
|
+
required: false
|
|
130
|
+
},
|
|
131
|
+
pis: {
|
|
132
|
+
type: null,
|
|
133
|
+
required: false
|
|
134
|
+
},
|
|
135
|
+
pie: {
|
|
136
|
+
type: null,
|
|
137
|
+
required: false
|
|
138
|
+
},
|
|
139
|
+
pl: {
|
|
140
|
+
type: null,
|
|
141
|
+
required: false
|
|
142
|
+
},
|
|
143
|
+
pr: {
|
|
144
|
+
type: null,
|
|
145
|
+
required: false
|
|
146
|
+
},
|
|
147
|
+
bd: {
|
|
148
|
+
type: null,
|
|
149
|
+
required: false
|
|
150
|
+
},
|
|
151
|
+
bdrs: {
|
|
152
|
+
type: null,
|
|
153
|
+
required: false
|
|
154
|
+
},
|
|
155
|
+
bg: {
|
|
156
|
+
type: null,
|
|
157
|
+
required: false
|
|
158
|
+
},
|
|
159
|
+
c: {
|
|
160
|
+
type: null,
|
|
161
|
+
required: false
|
|
162
|
+
},
|
|
163
|
+
opacity: {
|
|
164
|
+
type: [
|
|
165
|
+
String,
|
|
166
|
+
Object,
|
|
167
|
+
Number
|
|
168
|
+
],
|
|
169
|
+
required: false
|
|
170
|
+
},
|
|
171
|
+
ff: {
|
|
172
|
+
type: [String, Object],
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
fz: {
|
|
176
|
+
type: null,
|
|
177
|
+
required: false
|
|
178
|
+
},
|
|
179
|
+
fw: {
|
|
180
|
+
type: null,
|
|
181
|
+
required: false
|
|
182
|
+
},
|
|
183
|
+
lts: {
|
|
184
|
+
type: null,
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
ta: {
|
|
188
|
+
type: [String, Object],
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
191
|
+
lh: {
|
|
192
|
+
type: null,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
fs: {
|
|
196
|
+
type: null,
|
|
197
|
+
required: false
|
|
198
|
+
},
|
|
199
|
+
tt: {
|
|
200
|
+
type: [String, Object],
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
td: {
|
|
204
|
+
type: null,
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
w: {
|
|
208
|
+
type: null,
|
|
209
|
+
required: false
|
|
210
|
+
},
|
|
211
|
+
miw: {
|
|
212
|
+
type: null,
|
|
213
|
+
required: false
|
|
214
|
+
},
|
|
215
|
+
maw: {
|
|
216
|
+
type: null,
|
|
217
|
+
required: false
|
|
218
|
+
},
|
|
219
|
+
h: {
|
|
220
|
+
type: null,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
mih: {
|
|
224
|
+
type: null,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
mah: {
|
|
228
|
+
type: null,
|
|
229
|
+
required: false
|
|
230
|
+
},
|
|
231
|
+
bgsz: {
|
|
232
|
+
type: null,
|
|
233
|
+
required: false
|
|
234
|
+
},
|
|
235
|
+
bgp: {
|
|
236
|
+
type: null,
|
|
237
|
+
required: false
|
|
238
|
+
},
|
|
239
|
+
bgr: {
|
|
240
|
+
type: null,
|
|
241
|
+
required: false
|
|
242
|
+
},
|
|
243
|
+
bga: {
|
|
244
|
+
type: null,
|
|
245
|
+
required: false
|
|
246
|
+
},
|
|
247
|
+
pos: {
|
|
248
|
+
type: [String, Object],
|
|
249
|
+
required: false
|
|
250
|
+
},
|
|
251
|
+
top: {
|
|
252
|
+
type: null,
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
left: {
|
|
256
|
+
type: null,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
bottom: {
|
|
260
|
+
type: null,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
right: {
|
|
264
|
+
type: null,
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
inset: {
|
|
268
|
+
type: null,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
display: {
|
|
272
|
+
type: null,
|
|
273
|
+
required: false
|
|
274
|
+
},
|
|
275
|
+
flex: {
|
|
276
|
+
type: null,
|
|
277
|
+
required: false
|
|
278
|
+
},
|
|
279
|
+
shadow: {
|
|
280
|
+
type: null,
|
|
281
|
+
required: false
|
|
282
|
+
},
|
|
283
|
+
radius: {
|
|
284
|
+
type: null,
|
|
285
|
+
required: false
|
|
286
|
+
},
|
|
287
|
+
withBorder: {
|
|
288
|
+
type: Boolean,
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
291
|
+
unstyled: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
required: false
|
|
294
|
+
},
|
|
295
|
+
variant: {
|
|
296
|
+
type: null,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
299
|
+
classNames: {
|
|
300
|
+
type: null,
|
|
301
|
+
required: false
|
|
302
|
+
},
|
|
303
|
+
styles: {
|
|
304
|
+
type: null,
|
|
305
|
+
required: false
|
|
306
|
+
},
|
|
307
|
+
vars: {
|
|
308
|
+
type: Function,
|
|
309
|
+
required: false
|
|
310
|
+
},
|
|
311
|
+
attributes: {
|
|
312
|
+
type: null,
|
|
313
|
+
required: false
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
setup(__props, { expose: __expose }) {
|
|
317
|
+
const _root = ref(null);
|
|
318
|
+
const attrs = useAttrs();
|
|
319
|
+
const rawProps = __props;
|
|
320
|
+
const props = useComponentProps({
|
|
321
|
+
component: "CPaper",
|
|
322
|
+
defaultProps: {},
|
|
323
|
+
props: rawProps
|
|
324
|
+
});
|
|
325
|
+
const knownProps = [
|
|
326
|
+
"classNames",
|
|
327
|
+
"className",
|
|
328
|
+
"style",
|
|
329
|
+
"styles",
|
|
330
|
+
"unstyled",
|
|
331
|
+
"withBorder",
|
|
332
|
+
"vars",
|
|
333
|
+
"radius",
|
|
334
|
+
"shadow",
|
|
335
|
+
"variant",
|
|
336
|
+
"mod",
|
|
337
|
+
"attributes"
|
|
338
|
+
];
|
|
339
|
+
const modList = computed(() => [{ "data-with-border": props.value.withBorder }]);
|
|
340
|
+
const getStyles = useStyles({
|
|
341
|
+
name: "Paper",
|
|
342
|
+
props: {
|
|
343
|
+
...props.value,
|
|
344
|
+
...attrs
|
|
345
|
+
},
|
|
346
|
+
classes: paper_module_default,
|
|
347
|
+
className: props.value.className,
|
|
348
|
+
style: props.value.style,
|
|
349
|
+
classNames: props.value.classNames,
|
|
350
|
+
styles: props.value.styles,
|
|
351
|
+
unstyled: props.value.unstyled,
|
|
352
|
+
attributes: props.value.attributes,
|
|
353
|
+
vars: props.value.vars,
|
|
354
|
+
varsResolver
|
|
355
|
+
});
|
|
356
|
+
const rootAttrs = computed(() => getStyles("root"));
|
|
357
|
+
const mergedAttrs = computed(() => {
|
|
358
|
+
const others = {};
|
|
359
|
+
const propsValue = props.value;
|
|
360
|
+
for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
361
|
+
const userMod = props.value.mod;
|
|
362
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean), ...modList.value || []];
|
|
363
|
+
return {
|
|
364
|
+
...others,
|
|
365
|
+
mod: mergedMod,
|
|
366
|
+
...rootAttrs.value
|
|
367
|
+
};
|
|
368
|
+
});
|
|
369
|
+
__expose({ root: computed(() => _root.value?.root ?? null) });
|
|
370
|
+
const __returned__ = {
|
|
371
|
+
_root,
|
|
372
|
+
attrs,
|
|
373
|
+
rawProps,
|
|
374
|
+
props,
|
|
375
|
+
knownProps,
|
|
376
|
+
modList,
|
|
377
|
+
getStyles,
|
|
378
|
+
rootAttrs,
|
|
379
|
+
mergedAttrs,
|
|
380
|
+
get CBox() {
|
|
381
|
+
return CBox;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
385
|
+
enumerable: false,
|
|
386
|
+
value: true
|
|
387
|
+
});
|
|
388
|
+
return __returned__;
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
392
|
+
return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_root" }, $setup.mergedAttrs, { variant: $setup.props.variant }), {
|
|
393
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
394
|
+
_: 3
|
|
395
|
+
}, 16, ["variant"]);
|
|
396
|
+
}
|
|
397
|
+
var paper_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/paper/paper.vue"]]);
|
|
398
|
+
//#endregion
|
|
399
|
+
export { paper_default as default };
|
|
400
|
+
|
|
401
|
+
//# sourceMappingURL=paper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.mjs","names":[],"sources":["../../../src/components/paper/paper.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\" :variant=\"props.variant\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport classes from './paper.module.css'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport { PaperFactory, PaperProps } from './paper.types'\nimport { varsResolver } from './paper.utils'\n\ndefineOptions({\n name: 'CPaper',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<PaperProps>()\n\nconst props = useComponentProps({\n component: 'CPaper',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'withBorder',\n 'vars',\n 'radius',\n 'shadow',\n 'variant',\n 'mod',\n 'attributes',\n]\n\nconst modList = computed(() => [\n {\n 'data-with-border': props.value.withBorder,\n },\n])\n\nconst getStyles = useStyles<PaperFactory>({\n name: 'Paper',\n props: { ...props.value, ...attrs } as PaperProps,\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 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 = [\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,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;GACA;EACF;EAEA,MAAM,UAAU,eAAe,CAC7B,EACE,oBAAoB,MAAM,MAAM,WAClC,CACF,CAAC;EAED,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;GAClB;EACF,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,CAChB,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,GAC/D,GAAI,QAAQ,SAAS,CAAC,CACxB;GACA,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,UAAU;GAAM;EACzD,CAAC;EAED,SAAa,EACX,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAnFC,YAEQ,OAAA,SAFR,WAEQ,EAFD,KAAI,QAAO,GAAS,OAAA,aAAW,EAAG,SAAS,OAAA,MAAM,QAAA,CAAA,GAAA;yBAC9C,CAAR,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.module.mjs","names":[],"sources":["../../../src/components/paper/paper.module.css"],"sourcesContent":[".root {\n --paper-radius: var(--c-radius-default);\n\n outline: 0;\n -webkit-tap-heighlight-color: transparent;\n display: block;\n touch-action: manipulation;\n text-decoration: none;\n border-radius: var(--paper-radius);\n box-shadow: var(--paper-shadow);\n background-color: var(--c-color-body);\n\n @mixin light {\n --paper-border-color: var(--c-color-gray-3);\n }\n\n @mixin dark {\n --paper-border-color: var(--c-color-dark-4);\n }\n\n &:where([data-with-border]) {\n border: rem(1px) solid var(--paper-border-color);\n }\n}\n"],"mappings":";;AAAA,IAAA,uBAAe,EAAC,QAAO,aAAY"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { getRadius, getShadow } from "../../core/utils/get-size/get-size.mjs";
|
|
3
|
+
import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
|
|
4
|
+
//#region packages/@cck-ui/core/src/components/paper/paper.utils.ts
|
|
5
|
+
const varsResolver = createVarsResolver((_, { radius, shadow }) => ({ root: {
|
|
6
|
+
"--paper-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
7
|
+
"--paper-shadow": getShadow(shadow)
|
|
8
|
+
} }));
|
|
9
|
+
//#endregion
|
|
10
|
+
export { varsResolver };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=paper.utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.utils.mjs","names":[],"sources":["../../../src/components/paper/paper.utils.ts"],"sourcesContent":["import { createVarsResolver, getRadius, getShadow } from '../../core'\nimport { PaperFactory } from './paper.types'\n\nexport const varsResolver = createVarsResolver<PaperFactory>((_, { radius, shadow }) => ({\n root: {\n '--paper-radius': radius === undefined ? undefined : getRadius(radius),\n '--paper-shadow': getShadow(shadow),\n },\n}))\n"],"mappings":";;;;AAGA,MAAa,eAAe,oBAAkC,GAAG,EAAE,QAAQ,cAAc,EACvF,MAAM;CACJ,kBAAkB,WAAW,KAAA,IAAY,KAAA,IAAY,UAAU,MAAM;CACrE,kBAAkB,UAAU,MAAM;AACpC,EACF,EAAE"}
|
package/esm/index.mjs
CHANGED
|
@@ -65,6 +65,7 @@ import { CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateInd
|
|
|
65
65
|
import { CFlex } from "./components/flex/index.mjs";
|
|
66
66
|
import { CCol, CGrid } from "./components/grid/index.mjs";
|
|
67
67
|
import { CGroup } from "./components/group/index.mjs";
|
|
68
|
+
import { CPaper } from "./components/paper/index.mjs";
|
|
68
69
|
import { CSemiCircleProgress } from "./components/semi-circle-progress/index.mjs";
|
|
69
70
|
import { CSimpleGrid } from "./components/simple-grid/index.mjs";
|
|
70
71
|
import { CSkeleton } from "./components/skeleton/index.mjs";
|
|
@@ -95,6 +96,7 @@ const components = [
|
|
|
95
96
|
CGrid,
|
|
96
97
|
CGroup,
|
|
97
98
|
CLoader,
|
|
99
|
+
CPaper,
|
|
98
100
|
CSemiCircleProgress,
|
|
99
101
|
CSimpleGrid,
|
|
100
102
|
CSkeleton,
|
|
@@ -114,6 +116,6 @@ const CckUI = { install(app) {
|
|
|
114
116
|
});
|
|
115
117
|
} };
|
|
116
118
|
//#endregion
|
|
117
|
-
export { CAlert, CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCloseButton, CCol, CContainer, CDefaultLoaders, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFlex, CGrid, CGroup, CLoader, CONFIG_KEY, CSemiCircleProgress, CSimpleGrid, CSkeleton, CSpace, CSplitter, CSplitterPane, 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 };
|
|
119
|
+
export { CAlert, CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCloseButton, CCol, CContainer, CDefaultLoaders, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFlex, CGrid, CGroup, CLoader, CONFIG_KEY, CPaper, CSemiCircleProgress, CSimpleGrid, CSkeleton, CSpace, CSplitter, CSplitterPane, 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 };
|
|
118
120
|
|
|
119
121
|
//# 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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CPaper,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CPaper,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,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;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 Paper from './paper.vue';
|
|
3
|
+
import classes from './paper.module.css';
|
|
4
|
+
export declare const CPaper: SFCWithInstallAndClasses<typeof Paper, typeof classes>;
|
|
5
|
+
export default CPaper;
|
|
6
|
+
export * from './paper.types';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BoxProps, CRadius, CShadow, PolymorphicFactory, StylesApiProps } from '../../core';
|
|
2
|
+
export type PaperStylesNames = 'root';
|
|
3
|
+
export type PaperCssVariables = {
|
|
4
|
+
root: '--paper-radius' | '--paper-shadow';
|
|
5
|
+
};
|
|
6
|
+
export interface PaperBaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description Key of `theme.shadows` or any valid CSS value to set `box-shadow`
|
|
9
|
+
*/
|
|
10
|
+
shadow?: CShadow;
|
|
11
|
+
/**
|
|
12
|
+
* @description Key of `theme.radius` or any valid CSS value to set border-radius, numbers are converted to rem
|
|
13
|
+
* @default theme.defaultRadius
|
|
14
|
+
*/
|
|
15
|
+
radius?: CRadius;
|
|
16
|
+
/**
|
|
17
|
+
* @description Adds border to the root element
|
|
18
|
+
*/
|
|
19
|
+
withBorder?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface PaperProps extends BoxProps, PaperBaseProps, StylesApiProps<PaperFactory> {
|
|
22
|
+
}
|
|
23
|
+
export type PaperFactory = PolymorphicFactory<{
|
|
24
|
+
props: PaperProps;
|
|
25
|
+
defaultComponent: 'div';
|
|
26
|
+
defaultRef: HTMLDivElement;
|
|
27
|
+
stylesNames: PaperStylesNames;
|
|
28
|
+
vars: PaperCssVariables;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./paper.types").PaperProps;
|
|
3
|
+
defaultComponent: "div";
|
|
4
|
+
defaultRef: HTMLDivElement;
|
|
5
|
+
stylesNames: import("./paper.types").PaperStylesNames;
|
|
6
|
+
vars: import("./paper.types").PaperCssVariables;
|
|
7
|
+
}>;
|
package/package.json
CHANGED
package/styles/paper.css
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.m_a4a0a883 {
|
|
2
|
+
--paper-radius: var(--c-radius-default);
|
|
3
|
+
|
|
4
|
+
outline: 0;
|
|
5
|
+
-webkit-tap-heighlight-color: transparent;
|
|
6
|
+
display: block;
|
|
7
|
+
touch-action: manipulation;
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
border-radius: var(--paper-radius);
|
|
10
|
+
box-shadow: var(--paper-shadow);
|
|
11
|
+
background-color: var(--c-color-body);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-c-color-scheme='light'] .m_a4a0a883 {
|
|
15
|
+
--paper-border-color: var(--c-color-gray-3);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-c-color-scheme='dark'] .m_a4a0a883 {
|
|
19
|
+
--paper-border-color: var(--c-color-dark-4);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.m_a4a0a883:where([data-with-border]) {
|
|
23
|
+
border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer cck {.m_a4a0a883 {
|
|
2
|
+
--paper-radius: var(--c-radius-default);
|
|
3
|
+
|
|
4
|
+
outline: 0;
|
|
5
|
+
-webkit-tap-heighlight-color: transparent;
|
|
6
|
+
display: block;
|
|
7
|
+
touch-action: manipulation;
|
|
8
|
+
text-decoration: none;
|
|
9
|
+
border-radius: var(--paper-radius);
|
|
10
|
+
box-shadow: var(--paper-shadow);
|
|
11
|
+
background-color: var(--c-color-body);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-c-color-scheme='light'] .m_a4a0a883 {
|
|
15
|
+
--paper-border-color: var(--c-color-gray-3);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-c-color-scheme='dark'] .m_a4a0a883 {
|
|
19
|
+
--paper-border-color: var(--c-color-dark-4);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.m_a4a0a883:where([data-with-border]) {
|
|
23
|
+
border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
|
|
24
|
+
}
|
|
25
|
+
}
|
package/styles.css
CHANGED
|
@@ -1379,6 +1379,31 @@ fieldset:disabled .c-active:active {
|
|
|
1379
1379
|
animation: m_1309882b 1.2s linear infinite;
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
|
+
.m_a4a0a883 {
|
|
1383
|
+
--paper-radius: var(--c-radius-default);
|
|
1384
|
+
|
|
1385
|
+
outline: 0;
|
|
1386
|
+
-webkit-tap-heighlight-color: transparent;
|
|
1387
|
+
display: block;
|
|
1388
|
+
touch-action: manipulation;
|
|
1389
|
+
text-decoration: none;
|
|
1390
|
+
border-radius: var(--paper-radius);
|
|
1391
|
+
box-shadow: var(--paper-shadow);
|
|
1392
|
+
background-color: var(--c-color-body);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
[data-c-color-scheme='light'] .m_a4a0a883 {
|
|
1396
|
+
--paper-border-color: var(--c-color-gray-3);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
[data-c-color-scheme='dark'] .m_a4a0a883 {
|
|
1400
|
+
--paper-border-color: var(--c-color-dark-4);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.m_a4a0a883:where([data-with-border]) {
|
|
1404
|
+
border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1382
1407
|
.m_6f2f9f44 {
|
|
1383
1408
|
--scp-filled-segment-color: var(--c-primary-color-filled);
|
|
1384
1409
|
--scp-transition-duration: 0ms;
|
package/styles.layer.css
CHANGED
|
@@ -1379,6 +1379,31 @@ fieldset:disabled .c-active:active {
|
|
|
1379
1379
|
animation: m_1309882b 1.2s linear infinite;
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
|
+
.m_a4a0a883 {
|
|
1383
|
+
--paper-radius: var(--c-radius-default);
|
|
1384
|
+
|
|
1385
|
+
outline: 0;
|
|
1386
|
+
-webkit-tap-heighlight-color: transparent;
|
|
1387
|
+
display: block;
|
|
1388
|
+
touch-action: manipulation;
|
|
1389
|
+
text-decoration: none;
|
|
1390
|
+
border-radius: var(--paper-radius);
|
|
1391
|
+
box-shadow: var(--paper-shadow);
|
|
1392
|
+
background-color: var(--c-color-body);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
[data-c-color-scheme='light'] .m_a4a0a883 {
|
|
1396
|
+
--paper-border-color: var(--c-color-gray-3);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
[data-c-color-scheme='dark'] .m_a4a0a883 {
|
|
1400
|
+
--paper-border-color: var(--c-color-dark-4);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.m_a4a0a883:where([data-with-border]) {
|
|
1404
|
+
border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1382
1407
|
.m_6f2f9f44 {
|
|
1383
1408
|
--scp-filled-segment-color: var(--c-primary-color-filled);
|
|
1384
1409
|
--scp-transition-duration: 0ms;
|