@cck-ui/core 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/cjs/components/data-list/data-list-item/data-list-item.cjs +364 -0
  2. package/cjs/components/data-list/data-list-item/data-list-item.cjs.map +1 -0
  3. package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs +367 -0
  4. package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs.map +1 -0
  5. package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs +367 -0
  6. package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs.map +1 -0
  7. package/cjs/components/data-list/data-list.cjs +421 -0
  8. package/cjs/components/data-list/data-list.cjs.map +1 -0
  9. package/cjs/components/data-list/data-list.constant.cjs +7 -0
  10. package/cjs/components/data-list/data-list.constant.cjs.map +1 -0
  11. package/cjs/components/data-list/data-list.module.cjs +12 -0
  12. package/cjs/components/data-list/data-list.module.cjs.map +1 -0
  13. package/cjs/components/data-list/data-list.utils.cjs +13 -0
  14. package/cjs/components/data-list/data-list.utils.cjs.map +1 -0
  15. package/cjs/components/data-list/index.cjs +30 -0
  16. package/cjs/components/data-list/index.cjs.map +1 -0
  17. package/cjs/components/indicator/get-position-variables/get-position-variables.cjs +47 -0
  18. package/cjs/components/indicator/get-position-variables/get-position-variables.cjs.map +1 -0
  19. package/cjs/components/indicator/index.cjs +14 -0
  20. package/cjs/components/indicator/index.cjs.map +1 -0
  21. package/cjs/components/indicator/indicator.cjs +496 -0
  22. package/cjs/components/indicator/indicator.cjs.map +1 -0
  23. package/cjs/components/indicator/indicator.module.cjs +11 -0
  24. package/cjs/components/indicator/indicator.module.cjs.map +1 -0
  25. package/cjs/components/indicator/indicator.utils.cjs +27 -0
  26. package/cjs/components/indicator/indicator.utils.cjs.map +1 -0
  27. package/cjs/index.cjs +75 -63
  28. package/cjs/index.cjs.map +1 -1
  29. package/esm/components/data-list/data-list-item/data-list-item.mjs +364 -0
  30. package/esm/components/data-list/data-list-item/data-list-item.mjs.map +1 -0
  31. package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs +367 -0
  32. package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs.map +1 -0
  33. package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs +367 -0
  34. package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs.map +1 -0
  35. package/esm/components/data-list/data-list.constant.mjs +7 -0
  36. package/esm/components/data-list/data-list.constant.mjs.map +1 -0
  37. package/esm/components/data-list/data-list.mjs +421 -0
  38. package/esm/components/data-list/data-list.mjs.map +1 -0
  39. package/esm/components/data-list/data-list.module.mjs +12 -0
  40. package/esm/components/data-list/data-list.module.mjs.map +1 -0
  41. package/esm/components/data-list/data-list.utils.mjs +14 -0
  42. package/esm/components/data-list/data-list.utils.mjs.map +1 -0
  43. package/esm/components/data-list/index.mjs +26 -0
  44. package/esm/components/data-list/index.mjs.map +1 -0
  45. package/esm/components/indicator/get-position-variables/get-position-variables.mjs +47 -0
  46. package/esm/components/indicator/get-position-variables/get-position-variables.mjs.map +1 -0
  47. package/esm/components/indicator/index.mjs +11 -0
  48. package/esm/components/indicator/index.mjs.map +1 -0
  49. package/esm/components/indicator/indicator.mjs +496 -0
  50. package/esm/components/indicator/indicator.mjs.map +1 -0
  51. package/esm/components/indicator/indicator.module.mjs +11 -0
  52. package/esm/components/indicator/indicator.module.mjs.map +1 -0
  53. package/esm/components/indicator/indicator.utils.mjs +27 -0
  54. package/esm/components/indicator/indicator.utils.mjs.map +1 -0
  55. package/esm/index.mjs +8 -1
  56. package/esm/index.mjs.map +1 -1
  57. package/lib/components/data-list/data-list-item/data-list-item.types.d.ts +10 -0
  58. package/lib/components/data-list/data-list-item-label/data-list-item-label.types.d.ts +10 -0
  59. package/lib/components/data-list/data-list-item-value/data-list-item-value.types.d.ts +10 -0
  60. package/lib/components/data-list/data-list.constant.d.ts +3 -0
  61. package/lib/components/data-list/data-list.context.d.ts +5 -0
  62. package/lib/components/data-list/data-list.types.d.ts +50 -0
  63. package/lib/components/data-list/data-list.utils.d.ts +11 -0
  64. package/lib/components/data-list/index.d.ts +18 -0
  65. package/lib/components/index.d.ts +2 -0
  66. package/lib/components/indicator/get-position-variables/get-position-variables.d.ts +5 -0
  67. package/lib/components/indicator/index.d.ts +6 -0
  68. package/lib/components/indicator/indicator.types.d.ts +82 -0
  69. package/lib/components/indicator/indicator.utils.d.ts +6 -0
  70. package/package.json +1 -1
  71. package/styles/data-list.css +54 -0
  72. package/styles/data-list.layer.css +55 -0
  73. package/styles/indicator.css +64 -0
  74. package/styles/indicator.layer.css +65 -0
  75. package/styles.css +120 -0
  76. package/styles.layer.css +120 -0
@@ -0,0 +1,496 @@
1
+ "use client";
2
+ import { isNumber } from "../../core/utils/types/index.mjs";
3
+ import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
4
+ import { useComponentProps } from "../../core/config-provider/use-component-props/use-component-props.mjs";
5
+ import { CBox } from "../../core/box/index.mjs";
6
+ import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
7
+ import indicator_module_default from "./indicator.module.mjs";
8
+ import { varsResolver } from "./indicator.utils.mjs";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, useSlots, withCtx } from "vue";
10
+ //#region packages/@cck-ui/core/src/components/indicator/indicator.vue
11
+ const _sfc_main = /*@__PURE__*/ defineComponent({
12
+ name: "CIndicator",
13
+ __name: "indicator",
14
+ props: {
15
+ position: {
16
+ type: null,
17
+ required: false
18
+ },
19
+ offset: {
20
+ type: [Number, Object],
21
+ required: false
22
+ },
23
+ inline: {
24
+ type: Boolean,
25
+ required: false
26
+ },
27
+ size: {
28
+ type: [Number, String],
29
+ required: false
30
+ },
31
+ label: {
32
+ type: [String, Number],
33
+ required: false
34
+ },
35
+ radius: {
36
+ type: null,
37
+ required: false
38
+ },
39
+ color: {
40
+ type: null,
41
+ required: false
42
+ },
43
+ withBorder: {
44
+ type: Boolean,
45
+ required: false
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ required: false
50
+ },
51
+ processing: {
52
+ type: Boolean,
53
+ required: false
54
+ },
55
+ zIndex: {
56
+ type: String,
57
+ required: false
58
+ },
59
+ autoContrast: {
60
+ type: Boolean,
61
+ required: false
62
+ },
63
+ maxValue: {
64
+ type: Number,
65
+ required: false
66
+ },
67
+ showZero: {
68
+ type: Boolean,
69
+ required: false
70
+ },
71
+ className: {
72
+ type: String,
73
+ required: false
74
+ },
75
+ style: {
76
+ type: [
77
+ Object,
78
+ Function,
79
+ Array
80
+ ],
81
+ required: false,
82
+ skipCheck: true
83
+ },
84
+ __vars: {
85
+ type: null,
86
+ required: false
87
+ },
88
+ __size: {
89
+ type: String,
90
+ required: false
91
+ },
92
+ hiddenFrom: {
93
+ type: null,
94
+ required: false
95
+ },
96
+ visibleFrom: {
97
+ type: null,
98
+ required: false
99
+ },
100
+ lightHidden: {
101
+ type: Boolean,
102
+ required: false
103
+ },
104
+ darkHidden: {
105
+ type: Boolean,
106
+ required: false
107
+ },
108
+ mod: {
109
+ type: [
110
+ Object,
111
+ String,
112
+ Array
113
+ ],
114
+ required: false
115
+ },
116
+ m: {
117
+ type: null,
118
+ required: false
119
+ },
120
+ my: {
121
+ type: null,
122
+ required: false
123
+ },
124
+ mx: {
125
+ type: null,
126
+ required: false
127
+ },
128
+ mt: {
129
+ type: null,
130
+ required: false
131
+ },
132
+ mb: {
133
+ type: null,
134
+ required: false
135
+ },
136
+ ms: {
137
+ type: null,
138
+ required: false
139
+ },
140
+ me: {
141
+ type: null,
142
+ required: false
143
+ },
144
+ mis: {
145
+ type: null,
146
+ required: false
147
+ },
148
+ mie: {
149
+ type: null,
150
+ required: false
151
+ },
152
+ ml: {
153
+ type: null,
154
+ required: false
155
+ },
156
+ mr: {
157
+ type: null,
158
+ required: false
159
+ },
160
+ p: {
161
+ type: null,
162
+ required: false
163
+ },
164
+ py: {
165
+ type: null,
166
+ required: false
167
+ },
168
+ px: {
169
+ type: null,
170
+ required: false
171
+ },
172
+ pt: {
173
+ type: null,
174
+ required: false
175
+ },
176
+ pb: {
177
+ type: null,
178
+ required: false
179
+ },
180
+ ps: {
181
+ type: null,
182
+ required: false
183
+ },
184
+ pe: {
185
+ type: null,
186
+ required: false
187
+ },
188
+ pis: {
189
+ type: null,
190
+ required: false
191
+ },
192
+ pie: {
193
+ type: null,
194
+ required: false
195
+ },
196
+ pl: {
197
+ type: null,
198
+ required: false
199
+ },
200
+ pr: {
201
+ type: null,
202
+ required: false
203
+ },
204
+ bd: {
205
+ type: null,
206
+ required: false
207
+ },
208
+ bdrs: {
209
+ type: null,
210
+ required: false
211
+ },
212
+ bg: {
213
+ type: null,
214
+ required: false
215
+ },
216
+ c: {
217
+ type: null,
218
+ required: false
219
+ },
220
+ opacity: {
221
+ type: [
222
+ String,
223
+ Object,
224
+ Number
225
+ ],
226
+ required: false
227
+ },
228
+ ff: {
229
+ type: [String, Object],
230
+ required: false
231
+ },
232
+ fz: {
233
+ type: null,
234
+ required: false
235
+ },
236
+ fw: {
237
+ type: null,
238
+ required: false
239
+ },
240
+ lts: {
241
+ type: null,
242
+ required: false
243
+ },
244
+ ta: {
245
+ type: [String, Object],
246
+ required: false
247
+ },
248
+ lh: {
249
+ type: null,
250
+ required: false
251
+ },
252
+ fs: {
253
+ type: null,
254
+ required: false
255
+ },
256
+ tt: {
257
+ type: [String, Object],
258
+ required: false
259
+ },
260
+ td: {
261
+ type: null,
262
+ required: false
263
+ },
264
+ w: {
265
+ type: null,
266
+ required: false
267
+ },
268
+ miw: {
269
+ type: null,
270
+ required: false
271
+ },
272
+ maw: {
273
+ type: null,
274
+ required: false
275
+ },
276
+ h: {
277
+ type: null,
278
+ required: false
279
+ },
280
+ mih: {
281
+ type: null,
282
+ required: false
283
+ },
284
+ mah: {
285
+ type: null,
286
+ required: false
287
+ },
288
+ bgsz: {
289
+ type: null,
290
+ required: false
291
+ },
292
+ bgp: {
293
+ type: null,
294
+ required: false
295
+ },
296
+ bgr: {
297
+ type: null,
298
+ required: false
299
+ },
300
+ bga: {
301
+ type: null,
302
+ required: false
303
+ },
304
+ pos: {
305
+ type: [String, Object],
306
+ required: false
307
+ },
308
+ top: {
309
+ type: null,
310
+ required: false
311
+ },
312
+ left: {
313
+ type: null,
314
+ required: false
315
+ },
316
+ bottom: {
317
+ type: null,
318
+ required: false
319
+ },
320
+ right: {
321
+ type: null,
322
+ required: false
323
+ },
324
+ inset: {
325
+ type: null,
326
+ required: false
327
+ },
328
+ display: {
329
+ type: null,
330
+ required: false
331
+ },
332
+ flex: {
333
+ type: null,
334
+ required: false
335
+ },
336
+ unstyled: {
337
+ type: Boolean,
338
+ required: false
339
+ },
340
+ variant: {
341
+ type: null,
342
+ required: false
343
+ },
344
+ classNames: {
345
+ type: null,
346
+ required: false
347
+ },
348
+ styles: {
349
+ type: null,
350
+ required: false
351
+ },
352
+ vars: {
353
+ type: Function,
354
+ required: false
355
+ },
356
+ attributes: {
357
+ type: null,
358
+ required: false
359
+ }
360
+ },
361
+ setup(__props, { expose: __expose }) {
362
+ const _root = ref(null);
363
+ const _indicator = ref(null);
364
+ const attrs = useAttrs();
365
+ const slots = useSlots();
366
+ const rawProps = __props;
367
+ const defaultProps = {
368
+ position: "top-end",
369
+ offset: 0,
370
+ showZero: true
371
+ };
372
+ const props = useComponentProps({
373
+ component: "CIndicator",
374
+ defaultProps,
375
+ props: rawProps
376
+ });
377
+ const styleProps = computed(() => ({
378
+ ...props.value,
379
+ ...attrs,
380
+ style: attrs.style ?? props.value.style
381
+ }));
382
+ const knownProps = [
383
+ "style",
384
+ "className",
385
+ "styles",
386
+ "classNames",
387
+ "unstyled",
388
+ "vars",
389
+ "position",
390
+ "offset",
391
+ "inline",
392
+ "label",
393
+ "radius",
394
+ "color",
395
+ "withBorder",
396
+ "disabled",
397
+ "processing",
398
+ "zIndex",
399
+ "autoContrast",
400
+ "maxValue",
401
+ "showZero",
402
+ "mod",
403
+ "attributes"
404
+ ];
405
+ const getStyles = useStyles({
406
+ name: "Indicator",
407
+ classes: indicator_module_default,
408
+ props: styleProps,
409
+ className: () => props.value.className,
410
+ style: () => props.value.style,
411
+ classNames: props.value.classNames,
412
+ styles: props.value.styles,
413
+ unstyled: props.value.unstyled,
414
+ attributes: props.value.attributes,
415
+ vars: props.value.vars,
416
+ varsResolver
417
+ });
418
+ const modList = computed(() => [{ inline: props.value.inline }]);
419
+ const rootAttrs = computed(() => getStyles("root"));
420
+ const mergedRootAttrs = computed(() => {
421
+ const others = {};
422
+ const propsValue = props.value;
423
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
424
+ const userMod = props.value.mod;
425
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod], ...modList.value];
426
+ return {
427
+ ...others,
428
+ mod: mergedMod,
429
+ ...rootAttrs.value
430
+ };
431
+ });
432
+ const shouldHideZero = computed(() => !props.value.showZero && Number(props.value.label) === 0);
433
+ const formattedLabel = computed(() => props.value.maxValue !== void 0 && isNumber(props.value.label) && Number(props.value.label) > props.value.maxValue ? `${props.value.maxValue}+` : props.value.label);
434
+ const indicatorAttrs = computed(() => getStyles("indicator"));
435
+ const mergedIndicatorAttrs = computed(() => ({
436
+ mod: [
437
+ { "with-label": !!props.value.label },
438
+ { "with-border": props.value.withBorder },
439
+ { processing: props.value.processing }
440
+ ],
441
+ ...indicatorAttrs.value
442
+ }));
443
+ __expose({
444
+ root: computed(() => _root.value?.root ?? null),
445
+ indicator: computed(() => _indicator.value?.root ?? null)
446
+ });
447
+ const __returned__ = {
448
+ _root,
449
+ _indicator,
450
+ attrs,
451
+ slots,
452
+ rawProps,
453
+ defaultProps,
454
+ props,
455
+ styleProps,
456
+ knownProps,
457
+ getStyles,
458
+ modList,
459
+ rootAttrs,
460
+ mergedRootAttrs,
461
+ shouldHideZero,
462
+ formattedLabel,
463
+ indicatorAttrs,
464
+ mergedIndicatorAttrs,
465
+ get CBox() {
466
+ return CBox;
467
+ }
468
+ };
469
+ Object.defineProperty(__returned__, "__isScriptSetup", {
470
+ enumerable: false,
471
+ value: true
472
+ });
473
+ return __returned__;
474
+ }
475
+ });
476
+ const _hoisted_1 = ["innerHTML"];
477
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
478
+ return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_root" }, $setup.mergedRootAttrs), {
479
+ default: withCtx(() => [!$setup.props.disabled && !$setup.shouldHideZero ? (openBlock(), createBlock($setup["CBox"], mergeProps({
480
+ key: 0,
481
+ ref: "_indicator"
482
+ }, $setup.mergedIndicatorAttrs), {
483
+ default: withCtx(() => [renderSlot(_ctx.$slots, "label", {}, () => [$setup.formattedLabel != null ? (openBlock(), createElementBlock("span", {
484
+ key: 0,
485
+ innerHTML: $setup.formattedLabel
486
+ }, null, 8, _hoisted_1)) : createCommentVNode("v-if", true)])]),
487
+ _: 3
488
+ }, 16)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")]),
489
+ _: 3
490
+ }, 16);
491
+ }
492
+ var indicator_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/indicator/indicator.vue"]]);
493
+ //#endregion
494
+ export { indicator_default as default };
495
+
496
+ //# sourceMappingURL=indicator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator.mjs","names":[],"sources":["../../../src/components/indicator/indicator.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedRootAttrs\">\n <c-box ref=\"_indicator\" v-bind=\"mergedIndicatorAttrs\" v-if=\"!props.disabled && !shouldHideZero\">\n <slot name=\"label\">\n <span v-html=\"formattedLabel\" v-if=\"formattedLabel != null\"></span>\n </slot>\n </c-box>\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs, useSlots } from 'vue'\nimport { CBox, CStyleProp, isNumber, useComponentProps, useStyles } from '../../core'\nimport { IndicatorFactory, IndicatorProps } from './indicator.types'\nimport classes from './indicator.module.css'\nimport { varsResolver } from './indicator.utils'\n\ndefineOptions({\n name: 'CIndicator',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\nconst _indicator = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\nconst slots = useSlots()\n\nconst rawProps = defineProps<IndicatorProps>()\n\nconst defaultProps = {\n position: 'top-end',\n offset: 0,\n showZero: true,\n} satisfies Partial<IndicatorProps>\n\nconst props = useComponentProps({\n component: 'CIndicator',\n defaultProps,\n props: rawProps,\n})\n\nconst styleProps = computed(() => ({\n ...props.value,\n ...attrs,\n style: (attrs.style ?? props.value.style) as CStyleProp,\n}))\n\nconst knownProps = [\n 'style',\n 'className',\n 'styles',\n 'classNames',\n 'unstyled',\n 'vars',\n 'position',\n 'offset',\n 'inline',\n 'label',\n 'radius',\n 'color',\n 'withBorder',\n 'disabled',\n 'processing',\n 'zIndex',\n 'autoContrast',\n 'maxValue',\n 'showZero',\n 'mod',\n 'attributes',\n]\n\nconst getStyles = useStyles<IndicatorFactory>({\n name: 'Indicator',\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 modList = computed(() => [{ inline: props.value.inline }])\n\nconst rootAttrs = computed(() => getStyles('root'))\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]), ...modList.value]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\nconst shouldHideZero = computed(() => !props.value.showZero && Number(props.value.label) === 0)\n\nconst formattedLabel = computed(() =>\n props.value.maxValue !== undefined &&\n isNumber(props.value.label) &&\n Number(props.value.label) > props.value.maxValue\n ? `${props.value.maxValue}+`\n : props.value.label\n)\n\nconst indicatorAttrs = computed(() => getStyles('indicator'))\nconst mergedIndicatorAttrs = computed(() => ({\n mod: [\n { 'with-label': !!props.value.label },\n { 'with-border': props.value.withBorder },\n { processing: props.value.processing },\n ],\n ...indicatorAttrs.value,\n}))\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n indicator: computed(() => _indicator.value?.root ?? null),\n})\n</script>\n"],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/indicator/indicator.module.css
3
+ var indicator_module_default = {
4
+ "root": "m_20df55e0",
5
+ "indicator": "m_2b5957d1",
6
+ "processing": "m_7c93cd91"
7
+ };
8
+ //#endregion
9
+ export { indicator_module_default as default };
10
+
11
+ //# sourceMappingURL=indicator.module.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator.module.mjs","names":[],"sources":["../../../src/components/indicator/indicator.module.css"],"sourcesContent":["@keyframes processing {\n 0% {\n opacity: 0.6;\n transform: scale(0);\n }\n\n 100% {\n opacity: 0;\n transform: scale(2.8);\n }\n}\n\n.root {\n --indicator-size: 10px;\n --indicator-color: var(--c-primary-color-filled);\n\n position: relative;\n display: block;\n\n &:where([data-inline]) {\n display: inline-block;\n }\n}\n\n.indicator {\n position: absolute;\n top: var(--indicator-top);\n left: var(--indicator-left);\n right: var(--indicator-right);\n bottom: var(--indicator-bottom);\n transform: translate(var(--indicator-translate-x), var(--indicator-translate-y));\n min-width: var(--indicator-size);\n height: var(--indicator-size);\n border-radius: var(--indicator-radius, 1000rem);\n z-index: var(--indicator-z-index, 200);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--c-font-size-xs);\n background-color: var(--indicator-color);\n color: var(--indicator-text-color, var(--c-color-white));\n white-space: nowrap;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n background-color: var(--indicator-color);\n border-radius: var(--indicator-radius, 1000rem);\n z-index: -1;\n }\n\n &:where([data-with-label]) {\n padding-inline: calc(var(--c-spacing-xs) / 2);\n }\n\n &:where([data-with-border]) {\n border: 2px solid var(--c-color-body);\n }\n\n &[data-processing] {\n &::before {\n animation: processing 1000ms linear infinite;\n }\n }\n}\n"],"mappings":";;AAAA,IAAA,2BAAe;CAAC,QAAO;CAAa,aAAY;CAAa,cAAa;AAAY"}
@@ -0,0 +1,27 @@
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 { getThemeColor } from "../../core/config-provider/color-functions/get-theme-color/get-theme-color.mjs";
5
+ import { getContrastColor } from "../../core/config-provider/color-functions/get-contrast-color/get-contrast-color.mjs";
6
+ import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
7
+ import { getPositionVariables } from "./get-position-variables/get-position-variables.mjs";
8
+ //#region packages/@cck-ui/core/src/components/indicator/indicator.utils.ts
9
+ const varsResolver = createVarsResolver((theme, { color, position, offset, size, radius, zIndex, autoContrast }) => {
10
+ const ac = typeof autoContrast === "boolean" ? autoContrast : theme.autoContrast;
11
+ return { root: {
12
+ "--indicator-color": color ? getThemeColor(color, theme) : void 0,
13
+ "--indicator-radius": radius === void 0 ? void 0 : getRadius(radius),
14
+ "--indicator-size": rem(size),
15
+ "--indicator-text-color": ac ? getContrastColor({
16
+ color,
17
+ theme,
18
+ autoContrast: ac
19
+ }) : void 0,
20
+ "--indicator-z-index": zIndex?.toString(),
21
+ ...getPositionVariables(position, offset)
22
+ } };
23
+ });
24
+ //#endregion
25
+ export { varsResolver };
26
+
27
+ //# sourceMappingURL=indicator.utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator.utils.mjs","names":[],"sources":["../../../src/components/indicator/indicator.utils.ts"],"sourcesContent":["import { createVarsResolver, getRadius, getThemeColor, rem } from '../../core'\nimport { getContrastColor } from '../../core/config-provider/color-functions/get-contrast-color/get-contrast-color'\nimport { getPositionVariables } from './get-position-variables/get-position-variables'\nimport { IndicatorFactory } from './indicator.types'\n\nexport const varsResolver = createVarsResolver<IndicatorFactory>(\n (theme, { color, position, offset, size, radius, zIndex, autoContrast }) => {\n const ac = typeof autoContrast === 'boolean' ? autoContrast : theme.autoContrast\n\n return {\n root: {\n '--indicator-color': color ? getThemeColor(color, theme) : undefined,\n '--indicator-radius': radius === undefined ? undefined : getRadius(radius),\n '--indicator-size': rem(size),\n '--indicator-text-color': ac\n ? getContrastColor({ color, theme, autoContrast: ac })\n : undefined,\n '--indicator-z-index': zIndex?.toString(),\n ...getPositionVariables(position, offset),\n },\n }\n }\n)\n"],"mappings":";;;;;;;;AAKA,MAAa,eAAe,oBACzB,OAAO,EAAE,OAAO,UAAU,QAAQ,MAAM,QAAQ,QAAQ,mBAAmB;CAC1E,MAAM,KAAK,OAAO,iBAAiB,YAAY,eAAe,MAAM;CAEpE,OAAO,EACL,MAAM;EACJ,qBAAqB,QAAQ,cAAc,OAAO,KAAK,IAAI,KAAA;EAC3D,sBAAsB,WAAW,KAAA,IAAY,KAAA,IAAY,UAAU,MAAM;EACzE,oBAAoB,IAAI,IAAI;EAC5B,0BAA0B,KACtB,iBAAiB;GAAE;GAAO;GAAO,cAAc;EAAG,CAAC,IACnD,KAAA;EACJ,uBAAuB,QAAQ,SAAS;EACxC,GAAG,qBAAqB,UAAU,MAAM;CAC1C,EACF;AACF,CACF"}
package/esm/index.mjs CHANGED
@@ -76,6 +76,7 @@ import { CCenter } from "./components/center/index.mjs";
76
76
  import { CColorSwatch } from "./components/color-swatch/index.mjs";
77
77
  import { CContainer } from "./components/container/index.mjs";
78
78
  import { CCopyButton } from "./components/copy-button/index.mjs";
79
+ import { CDataList, CDataListItem, CDataListItemLabel, CDataListItemValue } from "./components/data-list/index.mjs";
79
80
  import { CDivider } from "./components/divider/index.mjs";
80
81
  import { CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle } from "./components/empty-state/index.mjs";
81
82
  import { CFileButton } from "./components/file-button/index.mjs";
@@ -84,6 +85,7 @@ import { CFocusTrap } from "./components/focus-trap/index.mjs";
84
85
  import { CCol, CGrid } from "./components/grid/index.mjs";
85
86
  import { CGroup } from "./components/group/index.mjs";
86
87
  import { CImage } from "./components/image/index.mjs";
88
+ import { CIndicator } from "./components/indicator/index.mjs";
87
89
  import { CPaper } from "./components/paper/index.mjs";
88
90
  import { CSemiCircleProgress } from "./components/semi-circle-progress/index.mjs";
89
91
  import { CSimpleGrid } from "./components/simple-grid/index.mjs";
@@ -122,6 +124,10 @@ const components = [
122
124
  CColorSwatch,
123
125
  CContainer,
124
126
  CCopyButton,
127
+ CDataList,
128
+ CDataListItem,
129
+ CDataListItemLabel,
130
+ CDataListItemValue,
125
131
  CDivider,
126
132
  CEmptyState,
127
133
  CEmptyStateActions,
@@ -134,6 +140,7 @@ const components = [
134
140
  CGrid,
135
141
  CGroup,
136
142
  CImage,
143
+ CIndicator,
137
144
  CLoader,
138
145
  CPaper,
139
146
  CPortal,
@@ -158,6 +165,6 @@ const CckUI = { install(app) {
158
165
  });
159
166
  } };
160
167
  //#endregion
161
- 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, CDefaultLoaders, CDivider, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFileButton, CFlex, CFocusTrap, CGrid, CGroup, CImage, CLoader, 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 };
168
+ 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, CLoader, 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 };
162
169
 
163
170
  //# 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 CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\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 CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,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;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"}
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 CLoader,\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 CLoader,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,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;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
@@ -0,0 +1,10 @@
1
+ import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core';
2
+ export type DataListItemStylesNames = 'item';
3
+ export interface DataListItemProps extends BoxProps, CompoundStylesApiProps<DataListItemFactory>, ElementProps<'div'> {
4
+ }
5
+ export type DataListItemFactory = Factory<{
6
+ props: DataListItemProps;
7
+ ref: HTMLDivElement;
8
+ stylesNames: DataListItemStylesNames;
9
+ compound: true;
10
+ }>;
@@ -0,0 +1,10 @@
1
+ import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core';
2
+ export type DataListItemLabelStylesNames = 'itemLabel';
3
+ export interface DataListItemLabelProps extends BoxProps, CompoundStylesApiProps<DataListItemLabelFactory>, ElementProps<'div'> {
4
+ }
5
+ export type DataListItemLabelFactory = Factory<{
6
+ props: DataListItemLabelProps;
7
+ ref: HTMLDivElement;
8
+ stylesNames: DataListItemLabelStylesNames;
9
+ compound: true;
10
+ }>;
@@ -0,0 +1,10 @@
1
+ import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core';
2
+ export type DataListItemValueStylesNames = 'itemValue';
3
+ export interface DataListItemValueProps extends BoxProps, CompoundStylesApiProps<DataListItemValueFactory>, ElementProps<'div'> {
4
+ }
5
+ export type DataListItemValueFactory = Factory<{
6
+ props: DataListItemValueProps;
7
+ ref: HTMLDivElement;
8
+ stylesNames: DataListItemValueStylesNames;
9
+ compound: true;
10
+ }>;
@@ -0,0 +1,3 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { DataListContextValue } from './data-list.context';
3
+ export declare const DATA_LIST_CONTEXT_KEY: InjectionKey<DataListContextValue>;
@@ -0,0 +1,5 @@
1
+ import { GetStylesApi } from '../../core';
2
+ import { DataListFactory } from './data-list.types';
3
+ export interface DataListContextValue {
4
+ getStyles: GetStylesApi<DataListFactory>;
5
+ }