@cck-ui/core 0.39.0 → 0.40.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/blockquote/blockquote.cjs +435 -0
- package/cjs/components/blockquote/blockquote.cjs.map +1 -0
- package/cjs/components/blockquote/blockquote.module.cjs +11 -0
- package/cjs/components/blockquote/blockquote.module.cjs.map +1 -0
- package/cjs/components/blockquote/blockquote.utils.cjs +31 -0
- package/cjs/components/blockquote/blockquote.utils.cjs.map +1 -0
- package/cjs/components/blockquote/index.cjs +14 -0
- package/cjs/components/blockquote/index.cjs.map +1 -0
- package/cjs/index.cjs +114 -111
- package/cjs/index.cjs.map +1 -1
- package/esm/components/blockquote/blockquote.mjs +435 -0
- package/esm/components/blockquote/blockquote.mjs.map +1 -0
- package/esm/components/blockquote/blockquote.module.mjs +11 -0
- package/esm/components/blockquote/blockquote.module.mjs.map +1 -0
- package/esm/components/blockquote/blockquote.utils.mjs +32 -0
- package/esm/components/blockquote/blockquote.utils.mjs.map +1 -0
- package/esm/components/blockquote/index.mjs +11 -0
- package/esm/components/blockquote/index.mjs.map +1 -0
- package/esm/index.mjs +3 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/blockquote/blockquote.types.d.ts +30 -0
- package/lib/components/blockquote/blockquote.utils.d.ts +6 -0
- package/lib/components/blockquote/index.d.ts +6 -0
- package/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/styles/blockquote.css +42 -0
- package/styles/blockquote.layer.css +43 -0
- package/styles.css +43 -0
- package/styles.layer.css +43 -0
|
@@ -0,0 +1,435 @@
|
|
|
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 blockquote_module_default from "./blockquote.module.mjs";
|
|
7
|
+
import { varsResolver } from "./blockquote.utils.mjs";
|
|
8
|
+
import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, withCtx } from "vue";
|
|
9
|
+
//#region packages/@cck-ui/core/src/components/blockquote/blockquote.vue
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
|
+
name: "CBlockquote",
|
|
12
|
+
__name: "blockquote",
|
|
13
|
+
props: {
|
|
14
|
+
iconSize: {
|
|
15
|
+
type: [Number, String],
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
color: {
|
|
19
|
+
type: null,
|
|
20
|
+
required: false
|
|
21
|
+
},
|
|
22
|
+
radius: {
|
|
23
|
+
type: null,
|
|
24
|
+
required: false
|
|
25
|
+
},
|
|
26
|
+
textWrap: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
className: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
style: {
|
|
35
|
+
type: [
|
|
36
|
+
Object,
|
|
37
|
+
Function,
|
|
38
|
+
Array
|
|
39
|
+
],
|
|
40
|
+
required: false,
|
|
41
|
+
skipCheck: true
|
|
42
|
+
},
|
|
43
|
+
__vars: {
|
|
44
|
+
type: null,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
__size: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
hiddenFrom: {
|
|
52
|
+
type: null,
|
|
53
|
+
required: false
|
|
54
|
+
},
|
|
55
|
+
visibleFrom: {
|
|
56
|
+
type: null,
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
lightHidden: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
darkHidden: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
required: false
|
|
66
|
+
},
|
|
67
|
+
mod: {
|
|
68
|
+
type: [
|
|
69
|
+
Object,
|
|
70
|
+
String,
|
|
71
|
+
Array
|
|
72
|
+
],
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
m: {
|
|
76
|
+
type: null,
|
|
77
|
+
required: false
|
|
78
|
+
},
|
|
79
|
+
my: {
|
|
80
|
+
type: null,
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
mx: {
|
|
84
|
+
type: null,
|
|
85
|
+
required: false
|
|
86
|
+
},
|
|
87
|
+
mt: {
|
|
88
|
+
type: null,
|
|
89
|
+
required: false
|
|
90
|
+
},
|
|
91
|
+
mb: {
|
|
92
|
+
type: null,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
ms: {
|
|
96
|
+
type: null,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
me: {
|
|
100
|
+
type: null,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
mis: {
|
|
104
|
+
type: null,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
mie: {
|
|
108
|
+
type: null,
|
|
109
|
+
required: false
|
|
110
|
+
},
|
|
111
|
+
ml: {
|
|
112
|
+
type: null,
|
|
113
|
+
required: false
|
|
114
|
+
},
|
|
115
|
+
mr: {
|
|
116
|
+
type: null,
|
|
117
|
+
required: false
|
|
118
|
+
},
|
|
119
|
+
p: {
|
|
120
|
+
type: null,
|
|
121
|
+
required: false
|
|
122
|
+
},
|
|
123
|
+
py: {
|
|
124
|
+
type: null,
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
px: {
|
|
128
|
+
type: null,
|
|
129
|
+
required: false
|
|
130
|
+
},
|
|
131
|
+
pt: {
|
|
132
|
+
type: null,
|
|
133
|
+
required: false
|
|
134
|
+
},
|
|
135
|
+
pb: {
|
|
136
|
+
type: null,
|
|
137
|
+
required: false
|
|
138
|
+
},
|
|
139
|
+
ps: {
|
|
140
|
+
type: null,
|
|
141
|
+
required: false
|
|
142
|
+
},
|
|
143
|
+
pe: {
|
|
144
|
+
type: null,
|
|
145
|
+
required: false
|
|
146
|
+
},
|
|
147
|
+
pis: {
|
|
148
|
+
type: null,
|
|
149
|
+
required: false
|
|
150
|
+
},
|
|
151
|
+
pie: {
|
|
152
|
+
type: null,
|
|
153
|
+
required: false
|
|
154
|
+
},
|
|
155
|
+
pl: {
|
|
156
|
+
type: null,
|
|
157
|
+
required: false
|
|
158
|
+
},
|
|
159
|
+
pr: {
|
|
160
|
+
type: null,
|
|
161
|
+
required: false
|
|
162
|
+
},
|
|
163
|
+
bd: {
|
|
164
|
+
type: null,
|
|
165
|
+
required: false
|
|
166
|
+
},
|
|
167
|
+
bdrs: {
|
|
168
|
+
type: null,
|
|
169
|
+
required: false
|
|
170
|
+
},
|
|
171
|
+
bg: {
|
|
172
|
+
type: null,
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
c: {
|
|
176
|
+
type: null,
|
|
177
|
+
required: false
|
|
178
|
+
},
|
|
179
|
+
opacity: {
|
|
180
|
+
type: [
|
|
181
|
+
String,
|
|
182
|
+
Object,
|
|
183
|
+
Number
|
|
184
|
+
],
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
ff: {
|
|
188
|
+
type: [String, Object],
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
191
|
+
fz: {
|
|
192
|
+
type: null,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
fw: {
|
|
196
|
+
type: null,
|
|
197
|
+
required: false
|
|
198
|
+
},
|
|
199
|
+
lts: {
|
|
200
|
+
type: null,
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
ta: {
|
|
204
|
+
type: [String, Object],
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
lh: {
|
|
208
|
+
type: null,
|
|
209
|
+
required: false
|
|
210
|
+
},
|
|
211
|
+
fs: {
|
|
212
|
+
type: null,
|
|
213
|
+
required: false
|
|
214
|
+
},
|
|
215
|
+
tt: {
|
|
216
|
+
type: [String, Object],
|
|
217
|
+
required: false
|
|
218
|
+
},
|
|
219
|
+
td: {
|
|
220
|
+
type: null,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
w: {
|
|
224
|
+
type: null,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
miw: {
|
|
228
|
+
type: null,
|
|
229
|
+
required: false
|
|
230
|
+
},
|
|
231
|
+
maw: {
|
|
232
|
+
type: null,
|
|
233
|
+
required: false
|
|
234
|
+
},
|
|
235
|
+
h: {
|
|
236
|
+
type: null,
|
|
237
|
+
required: false
|
|
238
|
+
},
|
|
239
|
+
mih: {
|
|
240
|
+
type: null,
|
|
241
|
+
required: false
|
|
242
|
+
},
|
|
243
|
+
mah: {
|
|
244
|
+
type: null,
|
|
245
|
+
required: false
|
|
246
|
+
},
|
|
247
|
+
bgsz: {
|
|
248
|
+
type: null,
|
|
249
|
+
required: false
|
|
250
|
+
},
|
|
251
|
+
bgp: {
|
|
252
|
+
type: null,
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
bgr: {
|
|
256
|
+
type: null,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
bga: {
|
|
260
|
+
type: null,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
pos: {
|
|
264
|
+
type: [String, Object],
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
top: {
|
|
268
|
+
type: null,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
left: {
|
|
272
|
+
type: null,
|
|
273
|
+
required: false
|
|
274
|
+
},
|
|
275
|
+
bottom: {
|
|
276
|
+
type: null,
|
|
277
|
+
required: false
|
|
278
|
+
},
|
|
279
|
+
right: {
|
|
280
|
+
type: null,
|
|
281
|
+
required: false
|
|
282
|
+
},
|
|
283
|
+
inset: {
|
|
284
|
+
type: null,
|
|
285
|
+
required: false
|
|
286
|
+
},
|
|
287
|
+
display: {
|
|
288
|
+
type: null,
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
291
|
+
flex: {
|
|
292
|
+
type: null,
|
|
293
|
+
required: false
|
|
294
|
+
},
|
|
295
|
+
unstyled: {
|
|
296
|
+
type: Boolean,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
299
|
+
variant: {
|
|
300
|
+
type: null,
|
|
301
|
+
required: false
|
|
302
|
+
},
|
|
303
|
+
classNames: {
|
|
304
|
+
type: null,
|
|
305
|
+
required: false
|
|
306
|
+
},
|
|
307
|
+
styles: {
|
|
308
|
+
type: null,
|
|
309
|
+
required: false
|
|
310
|
+
},
|
|
311
|
+
vars: {
|
|
312
|
+
type: Function,
|
|
313
|
+
required: false
|
|
314
|
+
},
|
|
315
|
+
attributes: {
|
|
316
|
+
type: null,
|
|
317
|
+
required: false
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
setup(__props, { expose: __expose }) {
|
|
321
|
+
const _root = ref(null);
|
|
322
|
+
const _icon = ref(null);
|
|
323
|
+
const _cite = ref(null);
|
|
324
|
+
const attrs = useAttrs();
|
|
325
|
+
const rawProps = __props;
|
|
326
|
+
const defaultProps = { iconSize: 48 };
|
|
327
|
+
const props = useComponentProps({
|
|
328
|
+
component: "CBlockquote",
|
|
329
|
+
defaultProps,
|
|
330
|
+
props: rawProps
|
|
331
|
+
});
|
|
332
|
+
const knownProps = [
|
|
333
|
+
"classNames",
|
|
334
|
+
"className",
|
|
335
|
+
"style",
|
|
336
|
+
"styles",
|
|
337
|
+
"unstyled",
|
|
338
|
+
"vars",
|
|
339
|
+
"textWrap",
|
|
340
|
+
"attributes"
|
|
341
|
+
];
|
|
342
|
+
const styleProps = computed(() => ({
|
|
343
|
+
...props.value,
|
|
344
|
+
...attrs,
|
|
345
|
+
style: attrs.style ?? props.value.style
|
|
346
|
+
}));
|
|
347
|
+
const getStyles = useStyles({
|
|
348
|
+
name: "Blockquote",
|
|
349
|
+
classes: blockquote_module_default,
|
|
350
|
+
props: styleProps,
|
|
351
|
+
className: () => props.value.className,
|
|
352
|
+
style: () => props.value.style,
|
|
353
|
+
classNames: props.value.classNames,
|
|
354
|
+
styles: props.value.styles,
|
|
355
|
+
unstyled: props.value.unstyled,
|
|
356
|
+
attributes: props.value.attributes,
|
|
357
|
+
vars: props.value.vars,
|
|
358
|
+
varsResolver
|
|
359
|
+
});
|
|
360
|
+
const rootAttrs = computed(() => getStyles("root"));
|
|
361
|
+
const iconAttrs = computed(() => getStyles("icon"));
|
|
362
|
+
const citeAttrs = computed(() => getStyles("cite"));
|
|
363
|
+
const mergedRootAttrs = computed(() => {
|
|
364
|
+
const others = {};
|
|
365
|
+
const propsValue = props.value;
|
|
366
|
+
for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
|
|
367
|
+
const userMod = props.value.mod;
|
|
368
|
+
const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod]];
|
|
369
|
+
return {
|
|
370
|
+
...others,
|
|
371
|
+
mod: mergedMod,
|
|
372
|
+
...rootAttrs.value
|
|
373
|
+
};
|
|
374
|
+
});
|
|
375
|
+
__expose({
|
|
376
|
+
root: computed(() => _root.value?.root ?? null),
|
|
377
|
+
icon: computed(() => _icon.value?.root ?? null),
|
|
378
|
+
cite: computed(() => _cite.value?.root ?? null)
|
|
379
|
+
});
|
|
380
|
+
const __returned__ = {
|
|
381
|
+
_root,
|
|
382
|
+
_icon,
|
|
383
|
+
_cite,
|
|
384
|
+
attrs,
|
|
385
|
+
rawProps,
|
|
386
|
+
defaultProps,
|
|
387
|
+
props,
|
|
388
|
+
knownProps,
|
|
389
|
+
styleProps,
|
|
390
|
+
getStyles,
|
|
391
|
+
rootAttrs,
|
|
392
|
+
iconAttrs,
|
|
393
|
+
citeAttrs,
|
|
394
|
+
mergedRootAttrs,
|
|
395
|
+
get CBox() {
|
|
396
|
+
return CBox;
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
400
|
+
enumerable: false,
|
|
401
|
+
value: true
|
|
402
|
+
});
|
|
403
|
+
return __returned__;
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
407
|
+
return openBlock(), createBlock($setup["CBox"], mergeProps({
|
|
408
|
+
ref: "_root",
|
|
409
|
+
tag: "blockquote"
|
|
410
|
+
}, $setup.mergedRootAttrs), {
|
|
411
|
+
default: withCtx(() => [
|
|
412
|
+
_ctx.$slots.icon ? (openBlock(), createBlock($setup["CBox"], mergeProps({
|
|
413
|
+
key: 0,
|
|
414
|
+
tag: "span"
|
|
415
|
+
}, $setup.iconAttrs), {
|
|
416
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
417
|
+
_: 3
|
|
418
|
+
}, 16)) : createCommentVNode("v-if", true),
|
|
419
|
+
renderSlot(_ctx.$slots, "default"),
|
|
420
|
+
_ctx.$slots.cite ? (openBlock(), createBlock($setup["CBox"], mergeProps({
|
|
421
|
+
key: 1,
|
|
422
|
+
tag: "cite"
|
|
423
|
+
}, $setup.citeAttrs), {
|
|
424
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "cite")]),
|
|
425
|
+
_: 3
|
|
426
|
+
}, 16)) : createCommentVNode("v-if", true)
|
|
427
|
+
]),
|
|
428
|
+
_: 3
|
|
429
|
+
}, 16);
|
|
430
|
+
}
|
|
431
|
+
var blockquote_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/blockquote/blockquote.vue"]]);
|
|
432
|
+
//#endregion
|
|
433
|
+
export { blockquote_default as default };
|
|
434
|
+
|
|
435
|
+
//# sourceMappingURL=blockquote.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.mjs","names":[],"sources":["../../../src/components/blockquote/blockquote.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" tag=\"blockquote\" v-bind=\"mergedRootAttrs\">\n <c-box tag=\"span\" v-bind=\"iconAttrs\" v-if=\"$slots.icon\">\n <slot name=\"icon\"></slot>\n </c-box>\n <slot></slot>\n <c-box tag=\"cite\" v-bind=\"citeAttrs\" v-if=\"$slots.cite\">\n <slot name=\"cite\"></slot>\n </c-box>\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, CStyleProp, useComponentProps, useStyles } from '../../core'\nimport classes from './blockquote.module.css'\nimport { BlockquoteFactory, BlockquoteProps } from './blockquote.types'\nimport { varsResolver } from './blockquote.utils'\n\ndefineOptions({\n name: 'CBlockquote',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\nconst _icon = ref<InstanceType<typeof CBox> | null>(null)\nconst _cite = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<BlockquoteProps>()\n\nconst defaultProps = {\n iconSize: 48,\n} satisfies Partial<BlockquoteProps>\n\nconst props = useComponentProps({\n component: 'CBlockquote',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'textWrap',\n 'attributes',\n]\n\nconst styleProps = computed(() => ({\n ...props.value,\n ...attrs,\n style: (attrs.style ?? props.value.style) as CStyleProp,\n}))\n\nconst getStyles = useStyles<BlockquoteFactory>({\n name: 'Blockquote',\n classes,\n props: styleProps,\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'))\nconst iconAttrs = computed(() => getStyles('icon'))\nconst citeAttrs = computed(() => getStyles('cite'))\n\nconst mergedRootAttrs = 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])]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n icon: computed(() => _icon.value?.root ?? null),\n cite: computed(() => _cite.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBA,MAAM,QAAQ,IAAsC,IAAI;EACxD,MAAM,QAAQ,IAAsC,IAAI;EACxD,MAAM,QAAQ,IAAsC,IAAI;EAExD,MAAM,QAAQ,SAAS;EAEvB,MAAM,WAAW;EAEjB,MAAM,eAAe,EACnB,UAAU,GACZ;EAEA,MAAM,QAAQ,kBAAkB;GAC9B,WAAW;GACX;GACA,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,aAAa,gBAAgB;GACjC,GAAG,MAAM;GACT,GAAG;GACH,OAAQ,MAAM,SAAS,MAAM,MAAM;EACrC,EAAE;EAEF,MAAM,YAAY,UAA6B;GAC7C,MAAM;GACN,SAAA;GACA,OAAO;GACP,iBAAiB,MAAM,MAAM;GAC7B,aAAa,MAAM,MAAM;GACzB,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;EAClD,MAAM,YAAY,eAAe,UAAU,MAAM,CAAC;EAClD,MAAM,YAAY,eAAe,UAAU,MAAM,CAAC;EAElD,MAAM,kBAAkB,eAAe;GACrC,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,CAAE;GACpE,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,UAAU;GAAM;EACzD,CAAC;EAED,SAAa;GACX,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI;GAC9C,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI;GAC9C,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI;EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA5FC,YAQQ,OAAA,SARR,WAQQ;EARD,KAAI;EAAQ,KAAI;IAAqB,OAAA,eAAe,GAAA;yBAGjD;GAFmC,KAAA,OAAO,QAAA,UAAA,GAAlD,YAEQ,OAAA,SAFR,WAEQ;;IAFD,KAAI;MAAe,OAAA,SAAS,GAAA;2BACR,CAAzB,WAAyB,KAAA,QAAA,MAAA,CAAA,CAAA;;;GAE3B,WAAa,KAAA,QAAA,SAAA;GAC8B,KAAA,OAAO,QAAA,UAAA,GAAlD,YAEQ,OAAA,SAFR,WAEQ;;IAFD,KAAI;MAAe,OAAA,SAAS,GAAA;2BACR,CAAzB,WAAyB,KAAA,QAAA,MAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region packages/@cck-ui/core/src/components/blockquote/blockquote.module.css
|
|
3
|
+
var blockquote_module_default = {
|
|
4
|
+
"root": "m_195949e0",
|
|
5
|
+
"icon": "m_19550577",
|
|
6
|
+
"cite": "m_19526255"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { blockquote_module_default as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=blockquote.module.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.module.mjs","names":[],"sources":["../../../src/components/blockquote/blockquote.module.css"],"sourcesContent":[".root {\n --blockquote-border: 3px solid var(--bq-bd);\n\n position: relative;\n margin: 0;\n text-wrap: var(--bq-text-wrap, var(--c-text-wrap));\n border-inline-start: var(--blockquote-border);\n border-start-end-radius: var(--bq-radius);\n border-end-end-radius: var(--bq-radius);\n padding: var(--c-spacing-xl) rem(38px);\n\n @mixin where-light {\n background-color: var(--bq-bg-light);\n }\n\n @mixin where-dark {\n background-color: var(--bq-bg-dark);\n }\n}\n\n.icon {\n --blockquote-icon-offset: calc(var(--bq-icon-size) / -2);\n\n position: absolute;\n color: var(--bq-bd);\n background-color: var(--c-color-body);\n display: flex;\n align-items: center;\n justify-content: center;\n top: var(--blockquote-icon-offset);\n inset-inline-start: var(--blockquote-icon-offset);\n width: var(--bq-icon-size);\n height: var(--bq-icon-size);\n border-radius: var(--bq-icon-size);\n}\n\n.cite {\n display: block;\n margin-top: var(--c-spacing-md);\n opacity: 0.6;\n font-size: 85%;\n}\n"],"mappings":";;AAAA,IAAA,4BAAe;CAAC,QAAO;CAAa,QAAO;CAAa,QAAO;AAAY"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { rem } from "../../core/utils/units-converters/rem.mjs";
|
|
3
|
+
import { getRadius } from "../../core/utils/get-size/get-size.mjs";
|
|
4
|
+
import { rgba } from "../../core/config-provider/color-functions/rgba/rgba.mjs";
|
|
5
|
+
import { parseThemeColor } from "../../core/config-provider/color-functions/parse-theme-color/parse-theme-color.mjs";
|
|
6
|
+
import { getThemeColor } from "../../core/config-provider/color-functions/get-theme-color/get-theme-color.mjs";
|
|
7
|
+
import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
|
|
8
|
+
//#region packages/@cck-ui/core/src/components/blockquote/blockquote.utils.ts
|
|
9
|
+
const varsResolver = createVarsResolver((theme, { color, iconSize, radius, textWrap }) => {
|
|
10
|
+
const darkParsed = parseThemeColor({
|
|
11
|
+
color: color || theme.primaryColor,
|
|
12
|
+
theme,
|
|
13
|
+
colorScheme: "dark"
|
|
14
|
+
});
|
|
15
|
+
const lightParsed = parseThemeColor({
|
|
16
|
+
color: color || theme.primaryColor,
|
|
17
|
+
theme,
|
|
18
|
+
colorScheme: "light"
|
|
19
|
+
});
|
|
20
|
+
return { root: {
|
|
21
|
+
"--bq-bd": getThemeColor(color, theme),
|
|
22
|
+
"--bq-bg-dark": rgba(darkParsed.value, .06),
|
|
23
|
+
"--bq-bg-light": rgba(lightParsed.value, .07),
|
|
24
|
+
"--bq-icon-size": rem(iconSize),
|
|
25
|
+
"--bq-radius": getRadius(radius),
|
|
26
|
+
"--bq-text-wrap": textWrap
|
|
27
|
+
} };
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { varsResolver };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=blockquote.utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockquote.utils.mjs","names":[],"sources":["../../../src/components/blockquote/blockquote.utils.ts"],"sourcesContent":["import {\n createVarsResolver,\n getRadius,\n getThemeColor,\n parseThemeColor,\n rem,\n rgba,\n} from '../../core'\nimport { BlockquoteFactory } from './blockquote.types'\n\nexport const varsResolver = createVarsResolver<BlockquoteFactory>(\n (theme, { color, iconSize, radius, textWrap }) => {\n const darkParsed = parseThemeColor({\n color: color || theme.primaryColor,\n theme,\n colorScheme: 'dark',\n })\n\n const lightParsed = parseThemeColor({\n color: color || theme.primaryColor,\n theme,\n colorScheme: 'light',\n })\n\n return {\n root: {\n '--bq-bd': getThemeColor(color, theme),\n '--bq-bg-dark': rgba(darkParsed.value, 0.06),\n '--bq-bg-light': rgba(lightParsed.value, 0.07),\n '--bq-icon-size': rem(iconSize),\n '--bq-radius': getRadius(radius),\n '--bq-text-wrap': textWrap,\n },\n }\n }\n)\n"],"mappings":";;;;;;;;AAUA,MAAa,eAAe,oBACzB,OAAO,EAAE,OAAO,UAAU,QAAQ,eAAe;CAChD,MAAM,aAAa,gBAAgB;EACjC,OAAO,SAAS,MAAM;EACtB;EACA,aAAa;CACf,CAAC;CAED,MAAM,cAAc,gBAAgB;EAClC,OAAO,SAAS,MAAM;EACtB;EACA,aAAa;CACf,CAAC;CAED,OAAO,EACL,MAAM;EACJ,WAAW,cAAc,OAAO,KAAK;EACrC,gBAAgB,KAAK,WAAW,OAAO,GAAI;EAC3C,iBAAiB,KAAK,YAAY,OAAO,GAAI;EAC7C,kBAAkB,IAAI,QAAQ;EAC9B,eAAe,UAAU,MAAM;EAC/B,kBAAkB;CACpB,EACF;AACF,CACF"}
|
|
@@ -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 blockquote_module_default from "./blockquote.module.mjs";
|
|
5
|
+
import { varsResolver } from "./blockquote.utils.mjs";
|
|
6
|
+
import blockquote_default from "./blockquote.mjs";
|
|
7
|
+
const CBlockquote = withInstall(withPropsFactory(withExtend(withVarsResolver(withClasses(blockquote_default, blockquote_module_default), varsResolver))));
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CBlockquote, CBlockquote as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Blockquote","classes"],"sources":["../../../src/components/blockquote/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport Blockquote from './blockquote.vue'\nimport classes from './blockquote.module.css'\nimport { varsResolver } from './blockquote.utils'\n\nconst BlockquoteWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Blockquote, classes), varsResolver))\n)\n\nexport const CBlockquote: SFCWithInstallAndClasses<typeof Blockquote, typeof classes> =\n withInstall(BlockquoteWithStatic)\n\nexport default CBlockquote\n\nexport * from './blockquote.types'\n"],"mappings":";;;;;;AAgBA,MAAa,cACX,YAL2B,iBAC3B,WAAW,iBAAiB,YAAYA,oBAAYC,yBAAO,GAAG,YAAY,CAAC,CAI/D,CAAoB"}
|
package/esm/index.mjs
CHANGED
|
@@ -68,6 +68,7 @@ import { CAspectRatio } from "./components/aspect-ratio/index.mjs";
|
|
|
68
68
|
import { CAvatar, CAvatarGroup } from "./components/avatar/index.mjs";
|
|
69
69
|
import { CBackgroundImage } from "./components/background-image/index.mjs";
|
|
70
70
|
import { CBadge } from "./components/badge/index.mjs";
|
|
71
|
+
import { CBlockquote } from "./components/blockquote/index.mjs";
|
|
71
72
|
import { CBreadcrumbs } from "./components/breadcrumbs/index.mjs";
|
|
72
73
|
import { CBurger } from "./components/burger/index.mjs";
|
|
73
74
|
import { CButton, CButtonGroup, CButtonGroupSection } from "./components/button/index.mjs";
|
|
@@ -113,6 +114,7 @@ const components = [
|
|
|
113
114
|
CAvatarGroup,
|
|
114
115
|
CBackgroundImage,
|
|
115
116
|
CBadge,
|
|
117
|
+
CBlockquote,
|
|
116
118
|
CBreadcrumbs,
|
|
117
119
|
CBurger,
|
|
118
120
|
CButton,
|
|
@@ -169,6 +171,6 @@ const CckUI = { install(app) {
|
|
|
169
171
|
});
|
|
170
172
|
} };
|
|
171
173
|
//#endregion
|
|
172
|
-
export { CActionIcon, CActionIconGroup, CActionIconGroupSection, CAffix, CAlert, CAnchor, CAspectRatio, CAvatar, CAvatarGroup, CBackgroundImage, CBadge, CBox, CBreadcrumbs, CBurger, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCard, CCardSection, CCenter, CCloseButton, CCol, CColorSwatch, CContainer, CCopyButton, CDataList, CDataListItem, CDataListItemLabel, CDataListItemValue, CDefaultLoaders, CDivider, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFileButton, CFlex, CFocusTrap, CGrid, CGroup, CImage, CIndicator, CKbd, CLoader, CNumberFormatter, CONFIG_KEY, CPaper, CPortal, CSemiCircleProgress, CSimpleGrid, CSkeleton, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CTypography, CVisuallyHidden, 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, filterFalsyChildren, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getDefaultZIndex, 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 };
|
|
174
|
+
export { CActionIcon, CActionIconGroup, CActionIconGroupSection, CAffix, CAlert, CAnchor, CAspectRatio, CAvatar, CAvatarGroup, CBackgroundImage, CBadge, CBlockquote, CBox, CBreadcrumbs, CBurger, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCard, CCardSection, CCenter, CCloseButton, CCol, CColorSwatch, CContainer, CCopyButton, CDataList, CDataListItem, CDataListItemLabel, CDataListItemValue, CDefaultLoaders, CDivider, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFileButton, CFlex, CFocusTrap, CGrid, CGroup, CImage, CIndicator, CKbd, CLoader, CNumberFormatter, CONFIG_KEY, CPaper, CPortal, CSemiCircleProgress, CSimpleGrid, CSkeleton, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CTypography, CVisuallyHidden, 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, filterFalsyChildren, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getDefaultZIndex, 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 };
|
|
173
175
|
|
|
174
176
|
//# 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 CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CIndicator,\n CKbd,\n CLoader,\n CNumberFormatter,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\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 CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CIndicator,\n CKbd,\n CLoader,\n CNumberFormatter,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\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 CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBlockquote,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CIndicator,\n CKbd,\n CLoader,\n CNumberFormatter,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\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 CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBlockquote,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CIndicator,\n CKbd,\n CLoader,\n CNumberFormatter,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,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;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,30 @@
|
|
|
1
|
+
import { BoxProps, CColor, CRadius, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
2
|
+
export type BlockquoteStylesNames = 'root' | 'icon' | 'cite';
|
|
3
|
+
export type BlockquoteCssVariables = {
|
|
4
|
+
root: '--bq-bg-light' | '--bq-bg-dark' | '--bq-bd' | '--bq-icon-size' | '--bq-radius' | '--bq-text-wrap';
|
|
5
|
+
};
|
|
6
|
+
export interface BlockquoteProps extends BoxProps, StylesApiProps<BlockquoteFactory>, ElementProps<'blockquote', 'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Controls icon-wrapper span `width` and `height`, numbers are converted to rem
|
|
9
|
+
* @default 40
|
|
10
|
+
*/
|
|
11
|
+
iconSize?: number | string;
|
|
12
|
+
/**
|
|
13
|
+
* Key of `theme.colors` or any valid CSS color
|
|
14
|
+
* @default theme.primaryColor
|
|
15
|
+
*/
|
|
16
|
+
color?: CColor;
|
|
17
|
+
/**
|
|
18
|
+
* Key of `theme.radius` or any valid CSS value to set `border-radius`
|
|
19
|
+
* @default theme.defaultRadius
|
|
20
|
+
*/
|
|
21
|
+
radius?: CRadius;
|
|
22
|
+
/** Controls `text-wrap` CSS property */
|
|
23
|
+
textWrap?: 'wrap' | 'nowrap' | 'balance' | 'pretty' | 'stable';
|
|
24
|
+
}
|
|
25
|
+
export type BlockquoteFactory = Factory<{
|
|
26
|
+
props: BlockquoteProps;
|
|
27
|
+
ref: HTMLQuoteElement;
|
|
28
|
+
stylesNames: BlockquoteStylesNames;
|
|
29
|
+
vars: BlockquoteCssVariables;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const varsResolver: import("../..").VarsResolver<{
|
|
2
|
+
props: import("./blockquote.types").BlockquoteProps;
|
|
3
|
+
ref: HTMLQuoteElement;
|
|
4
|
+
stylesNames: import("./blockquote.types").BlockquoteStylesNames;
|
|
5
|
+
vars: import("./blockquote.types").BlockquoteCssVariables;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SFCWithInstallAndClasses } from '../../core';
|
|
2
|
+
import Blockquote from './blockquote.vue';
|
|
3
|
+
import classes from './blockquote.module.css';
|
|
4
|
+
export declare const CBlockquote: SFCWithInstallAndClasses<typeof Blockquote, typeof classes>;
|
|
5
|
+
export default CBlockquote;
|
|
6
|
+
export * from './blockquote.types';
|
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.m_195949e0 {
|
|
2
|
+
--blockquote-border: 3px solid var(--bq-bd);
|
|
3
|
+
|
|
4
|
+
position: relative;
|
|
5
|
+
margin: 0;
|
|
6
|
+
text-wrap: var(--bq-text-wrap, var(--c-text-wrap));
|
|
7
|
+
border-inline-start: var(--blockquote-border);
|
|
8
|
+
border-start-end-radius: var(--bq-radius);
|
|
9
|
+
border-end-end-radius: var(--bq-radius);
|
|
10
|
+
padding: var(--c-spacing-xl) calc(2.375rem * var(--c-scale));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([data-c-color-scheme='light']) .m_195949e0 {
|
|
14
|
+
background-color: var(--bq-bg-light);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-c-color-scheme='dark']) .m_195949e0 {
|
|
18
|
+
background-color: var(--bq-bg-dark);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m_19550577 {
|
|
22
|
+
--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);
|
|
23
|
+
|
|
24
|
+
position: absolute;
|
|
25
|
+
color: var(--bq-bd);
|
|
26
|
+
background-color: var(--c-color-body);
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
top: var(--blockquote-icon-offset);
|
|
31
|
+
inset-inline-start: var(--blockquote-icon-offset);
|
|
32
|
+
width: var(--bq-icon-size);
|
|
33
|
+
height: var(--bq-icon-size);
|
|
34
|
+
border-radius: var(--bq-icon-size);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.m_19526255 {
|
|
38
|
+
display: block;
|
|
39
|
+
margin-top: var(--c-spacing-md);
|
|
40
|
+
opacity: 0.6;
|
|
41
|
+
font-size: 85%;
|
|
42
|
+
}
|