@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 @@
1
+ {"version":3,"file":"data-list-item-value.mjs","names":[],"sources":["../../../../src/components/data-list/data-list-item-value/data-list-item-value.vue"],"sourcesContent":["<template>\n <c-box ref=\"_value\" tag=\"dd\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, ref } from 'vue'\nimport { CBox, useComponentProps } from '../../../core'\nimport { DataListItemValueProps } from './data-list-item-value.types'\nimport { DATA_LIST_CONTEXT_KEY } from '../data-list.constant'\n\ndefineOptions({\n name: 'CDataListItemValue',\n})\n\nconst _value = ref<InstanceType<typeof CBox> | null>(null)\n\nconst rawProps = defineProps<DataListItemValueProps>()\n\nconst props = useComponentProps({\n component: 'CDataListItemValue',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = ['classNames', 'className', 'style', 'styles', 'vars', 'mod']\n\nconst dataListContext = inject(DATA_LIST_CONTEXT_KEY)\n\nif (!dataListContext) {\n throw new Error(\n '[@cck-ui/data-list-item-value] CDataListItemValue component should be wrapped inside CDataList component.'\n )\n}\n\nconst valueAttrs = computed(() => {\n return dataListContext.getStyles('itemValue', {\n className: () => props.value.className,\n style: props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n })\n})\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n })\n const userMod = props.value.mod\n const mergedMod = [...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean))]\n return { ...others, mod: mergedMod, ...valueAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _value.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,SAAS,IAAsC,IAAI;EAEzD,MAAM,WAAW;EAEjB,MAAM,QAAQ,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GAAC;GAAc;GAAa;GAAS;GAAU;GAAQ;EAAK;EAE/E,MAAM,kBAAkB,OAAO,qBAAqB;EAEpD,IAAI,CAAC,iBACH,MAAM,IAAI,MACR,2GACF;EAGF,MAAM,aAAa,eAAe;GAChC,OAAO,gBAAgB,UAAU,aAAa;IAC5C,iBAAiB,MAAM,MAAM;IAC7B,OAAO,MAAM,MAAM;IACnB,YAAY,MAAM,MAAM;IACxB,QAAQ,MAAM,MAAM;GACtB,CAAC;EACH,CAAC;EAED,MAAM,cAAc,eAAe;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;IACvC,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAE7B,CAAC;GACD,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAAC,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,CAAE;GACpF,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,WAAW;GAAM;EAC1D,CAAC;EAED,SAAa,EACX,MAAM,eAAe,OAAO,OAAO,QAAQ,IAAI,EACjD,CAAC;;;;;;;;;;;;;;;;;;;;;qBA3DC,YAEQ,OAAA,SAFR,WAEQ;EAFD,KAAI;EAAS,KAAI;IAAa,OAAA,WAAW,GAAA;yBACtC,CAAR,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/data-list/data-list.constant.ts
3
+ const DATA_LIST_CONTEXT_KEY = Symbol("DataListContext");
4
+ //#endregion
5
+ export { DATA_LIST_CONTEXT_KEY };
6
+
7
+ //# sourceMappingURL=data-list.constant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.constant.mjs","names":[],"sources":["../../../src/components/data-list/data-list.constant.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\nimport { DataListContextValue } from './data-list.context'\n\nexport const DATA_LIST_CONTEXT_KEY: InjectionKey<DataListContextValue> = Symbol('DataListContext')\n"],"mappings":";;AAGA,MAAa,wBAA4D,OAAO,iBAAiB"}
@@ -0,0 +1,421 @@
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 data_list_module_default from "./data-list.module.mjs";
7
+ import { varsResolver } from "./data-list.utils.mjs";
8
+ import { DATA_LIST_CONTEXT_KEY } from "./data-list.constant.mjs";
9
+ import { computed, createBlock, defineComponent, mergeProps, openBlock, provide, ref, renderSlot, useAttrs, withCtx } from "vue";
10
+ //#region packages/@cck-ui/core/src/components/data-list/data-list.vue
11
+ const _sfc_main = /*@__PURE__*/ defineComponent({
12
+ name: "CDataList",
13
+ __name: "data-list",
14
+ props: {
15
+ size: {
16
+ type: String,
17
+ required: false
18
+ },
19
+ gap: {
20
+ type: null,
21
+ required: false
22
+ },
23
+ orientation: {
24
+ type: String,
25
+ required: false
26
+ },
27
+ withDivider: {
28
+ type: Boolean,
29
+ required: false
30
+ },
31
+ labelWidth: {
32
+ type: null,
33
+ required: false
34
+ },
35
+ className: {
36
+ type: String,
37
+ required: false
38
+ },
39
+ style: {
40
+ type: [
41
+ Object,
42
+ Function,
43
+ Array
44
+ ],
45
+ required: false,
46
+ skipCheck: true
47
+ },
48
+ __vars: {
49
+ type: null,
50
+ required: false
51
+ },
52
+ __size: {
53
+ type: String,
54
+ required: false
55
+ },
56
+ hiddenFrom: {
57
+ type: null,
58
+ required: false
59
+ },
60
+ visibleFrom: {
61
+ type: null,
62
+ required: false
63
+ },
64
+ lightHidden: {
65
+ type: Boolean,
66
+ required: false
67
+ },
68
+ darkHidden: {
69
+ type: Boolean,
70
+ required: false
71
+ },
72
+ mod: {
73
+ type: [
74
+ Object,
75
+ String,
76
+ Array
77
+ ],
78
+ required: false
79
+ },
80
+ m: {
81
+ type: null,
82
+ required: false
83
+ },
84
+ my: {
85
+ type: null,
86
+ required: false
87
+ },
88
+ mx: {
89
+ type: null,
90
+ required: false
91
+ },
92
+ mt: {
93
+ type: null,
94
+ required: false
95
+ },
96
+ mb: {
97
+ type: null,
98
+ required: false
99
+ },
100
+ ms: {
101
+ type: null,
102
+ required: false
103
+ },
104
+ me: {
105
+ type: null,
106
+ required: false
107
+ },
108
+ mis: {
109
+ type: null,
110
+ required: false
111
+ },
112
+ mie: {
113
+ type: null,
114
+ required: false
115
+ },
116
+ ml: {
117
+ type: null,
118
+ required: false
119
+ },
120
+ mr: {
121
+ type: null,
122
+ required: false
123
+ },
124
+ p: {
125
+ type: null,
126
+ required: false
127
+ },
128
+ py: {
129
+ type: null,
130
+ required: false
131
+ },
132
+ px: {
133
+ type: null,
134
+ required: false
135
+ },
136
+ pt: {
137
+ type: null,
138
+ required: false
139
+ },
140
+ pb: {
141
+ type: null,
142
+ required: false
143
+ },
144
+ ps: {
145
+ type: null,
146
+ required: false
147
+ },
148
+ pe: {
149
+ type: null,
150
+ required: false
151
+ },
152
+ pis: {
153
+ type: null,
154
+ required: false
155
+ },
156
+ pie: {
157
+ type: null,
158
+ required: false
159
+ },
160
+ pl: {
161
+ type: null,
162
+ required: false
163
+ },
164
+ pr: {
165
+ type: null,
166
+ required: false
167
+ },
168
+ bd: {
169
+ type: null,
170
+ required: false
171
+ },
172
+ bdrs: {
173
+ type: null,
174
+ required: false
175
+ },
176
+ bg: {
177
+ type: null,
178
+ required: false
179
+ },
180
+ c: {
181
+ type: null,
182
+ required: false
183
+ },
184
+ opacity: {
185
+ type: [
186
+ String,
187
+ Object,
188
+ Number
189
+ ],
190
+ required: false
191
+ },
192
+ ff: {
193
+ type: [String, Object],
194
+ required: false
195
+ },
196
+ fz: {
197
+ type: null,
198
+ required: false
199
+ },
200
+ fw: {
201
+ type: null,
202
+ required: false
203
+ },
204
+ lts: {
205
+ type: null,
206
+ required: false
207
+ },
208
+ ta: {
209
+ type: [String, Object],
210
+ required: false
211
+ },
212
+ lh: {
213
+ type: null,
214
+ required: false
215
+ },
216
+ fs: {
217
+ type: null,
218
+ required: false
219
+ },
220
+ tt: {
221
+ type: [String, Object],
222
+ required: false
223
+ },
224
+ td: {
225
+ type: null,
226
+ required: false
227
+ },
228
+ w: {
229
+ type: null,
230
+ required: false
231
+ },
232
+ miw: {
233
+ type: null,
234
+ required: false
235
+ },
236
+ maw: {
237
+ type: null,
238
+ required: false
239
+ },
240
+ h: {
241
+ type: null,
242
+ required: false
243
+ },
244
+ mih: {
245
+ type: null,
246
+ required: false
247
+ },
248
+ mah: {
249
+ type: null,
250
+ required: false
251
+ },
252
+ bgsz: {
253
+ type: null,
254
+ required: false
255
+ },
256
+ bgp: {
257
+ type: null,
258
+ required: false
259
+ },
260
+ bgr: {
261
+ type: null,
262
+ required: false
263
+ },
264
+ bga: {
265
+ type: null,
266
+ required: false
267
+ },
268
+ pos: {
269
+ type: [String, Object],
270
+ required: false
271
+ },
272
+ top: {
273
+ type: null,
274
+ required: false
275
+ },
276
+ left: {
277
+ type: null,
278
+ required: false
279
+ },
280
+ bottom: {
281
+ type: null,
282
+ required: false
283
+ },
284
+ right: {
285
+ type: null,
286
+ required: false
287
+ },
288
+ inset: {
289
+ type: null,
290
+ required: false
291
+ },
292
+ display: {
293
+ type: null,
294
+ required: false
295
+ },
296
+ flex: {
297
+ type: null,
298
+ required: false
299
+ },
300
+ unstyled: {
301
+ type: Boolean,
302
+ required: false
303
+ },
304
+ variant: {
305
+ type: null,
306
+ required: false
307
+ },
308
+ classNames: {
309
+ type: null,
310
+ required: false
311
+ },
312
+ styles: {
313
+ type: null,
314
+ required: false
315
+ },
316
+ vars: {
317
+ type: Function,
318
+ required: false
319
+ },
320
+ attributes: {
321
+ type: null,
322
+ required: false
323
+ }
324
+ },
325
+ setup(__props, { expose: __expose }) {
326
+ const _root = ref(null);
327
+ const attrs = useAttrs();
328
+ const rawProps = __props;
329
+ const defaultProps = { orientation: "horizontal" };
330
+ const props = useComponentProps({
331
+ component: "CDataList",
332
+ defaultProps,
333
+ props: rawProps
334
+ });
335
+ const knownProps = [
336
+ "classNames",
337
+ "className",
338
+ "style",
339
+ "styles",
340
+ "unstyled",
341
+ "vars",
342
+ "gap",
343
+ "orientation",
344
+ "withDivider",
345
+ "labelWidth",
346
+ "mod",
347
+ "attributes"
348
+ ];
349
+ const styleProps = computed(() => ({
350
+ ...props.value,
351
+ ...attrs,
352
+ style: attrs.style ?? props.value.style
353
+ }));
354
+ const getStyles = useStyles({
355
+ name: "DataList",
356
+ classes: data_list_module_default,
357
+ props: styleProps,
358
+ className: () => props.value.className,
359
+ style: () => props.value.style,
360
+ classNames: props.value.classNames,
361
+ styles: props.value.styles,
362
+ unstyled: props.value.unstyled,
363
+ attributes: props.value.attributes,
364
+ vars: props.value.vars,
365
+ varsResolver
366
+ });
367
+ provide(DATA_LIST_CONTEXT_KEY, { getStyles });
368
+ const modList = computed(() => [{ orientation: props.value.orientation }, { "with-divider": props.value.withDivider }]);
369
+ const rootAttrs = computed(() => getStyles("root"));
370
+ const mergedAttrs = computed(() => {
371
+ const others = {};
372
+ const propsValue = props.value;
373
+ Object.keys(propsValue).forEach((key) => {
374
+ if (!knownProps.includes(key)) others[key] = propsValue[key];
375
+ });
376
+ const userMod = props.value.mod;
377
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean), ...modList.value];
378
+ return {
379
+ ...others,
380
+ mod: mergedMod,
381
+ ...rootAttrs.value
382
+ };
383
+ });
384
+ __expose({ root: computed(() => _root.value?.root ?? null) });
385
+ const __returned__ = {
386
+ _root,
387
+ attrs,
388
+ rawProps,
389
+ defaultProps,
390
+ props,
391
+ knownProps,
392
+ styleProps,
393
+ getStyles,
394
+ modList,
395
+ rootAttrs,
396
+ mergedAttrs,
397
+ get CBox() {
398
+ return CBox;
399
+ }
400
+ };
401
+ Object.defineProperty(__returned__, "__isScriptSetup", {
402
+ enumerable: false,
403
+ value: true
404
+ });
405
+ return __returned__;
406
+ }
407
+ });
408
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
409
+ return openBlock(), createBlock($setup["CBox"], mergeProps({
410
+ ref: "_root",
411
+ tag: "dl"
412
+ }, $setup.mergedAttrs), {
413
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
414
+ _: 3
415
+ }, 16);
416
+ }
417
+ var data_list_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/data-list/data-list.vue"]]);
418
+ //#endregion
419
+ export { data_list_default as default };
420
+
421
+ //# sourceMappingURL=data-list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.mjs","names":[],"sources":["../../../src/components/data-list/data-list.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" tag=\"dl\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, provide, ref, useAttrs } from 'vue'\nimport { CBox, CStyleProp, useComponentProps, useStyles } from '../../core'\nimport classes from './data-list.module.css'\nimport { DataListFactory, DataListProps } from './data-list.types'\nimport { varsResolver } from './data-list.utils'\nimport { DATA_LIST_CONTEXT_KEY } from './data-list.constant'\n\ndefineOptions({\n name: 'CDataList',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<DataListProps>()\n\nconst defaultProps = {\n orientation: 'horizontal',\n} satisfies Partial<DataListProps>\n\nconst props = useComponentProps({\n component: 'CDataList',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'gap',\n 'orientation',\n 'withDivider',\n 'labelWidth',\n 'mod',\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<DataListFactory>({\n name: 'DataList',\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\nprovide(DATA_LIST_CONTEXT_KEY, { getStyles })\n\nconst modList = computed(() => [\n { orientation: props.value.orientation },\n { 'with-divider': props.value.withDivider },\n])\n\nconst rootAttrs = computed(() => getStyles('root'))\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBA,MAAM,QAAQ,IAAsC,IAAI;EAExD,MAAM,QAAQ,SAAS;EAEvB,MAAM,WAAW;EAEjB,MAAM,eAAe,EACnB,aAAa,aACf;EAEA,MAAM,QAAQ,kBAAkB;GAC9B,WAAW;GACX;GACA,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;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,UAA2B;GAC3C,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,QAAQ,uBAAuB,EAAE,UAAU,CAAC;EAE5C,MAAM,UAAU,eAAe,CAC7B,EAAE,aAAa,MAAM,MAAM,YAAY,GACvC,EAAE,gBAAgB,MAAM,MAAM,YAAY,CAC5C,CAAC;EAED,MAAM,YAAY,eAAe,UAAU,MAAM,CAAC;EAElD,MAAM,cAAc,eAAe;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;IACvC,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAE7B,CAAC;GACD,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAChB,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,GAC/D,GAAG,QAAQ,KACb;GACA,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,UAAU;GAAM;EACzD,CAAC;EAED,SAAa,EACX,MAAM,eAAe,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;qBA/FC,YAEQ,OAAA,SAFR,WAEQ;EAFD,KAAI;EAAQ,KAAI;IAAa,OAAA,WAAW,GAAA;yBACrC,CAAR,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/data-list/data-list.module.css
3
+ var data_list_module_default = {
4
+ "root": "m_a6a06a4e",
5
+ "item": "m_a69c647f",
6
+ "itemLabel": "m_9c9621b5",
7
+ "itemValue": "m_9d233432"
8
+ };
9
+ //#endregion
10
+ export { data_list_module_default as default };
11
+
12
+ //# sourceMappingURL=data-list.module.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.module.mjs","names":[],"sources":["../../../src/components/data-list/data-list.module.css"],"sourcesContent":[".root {\n --data-list-fz: var(--c-font-size-sm);\n --data-list-lh: var(--c-line-height-sm);\n --data-list-gap: var(--c-spacing-sm);\n --data-list-label-width: rem(120px);\n\n display: flex;\n flex-direction: column;\n gap: var(--data-list-gap);\n font-size: var(--data-list-fz);\n line-height: var(--data-list-lh);\n margin: 0;\n padding: 0;\n\n &:where([data-with-divider]) {\n gap: 0;\n }\n}\n\n.item {\n display: flex;\n flex-direction: row;\n align-items: baseline;\n gap: var(--c-spacing-xs);\n}\n\n.root:where([data-orientation='vertical']) > .item {\n flex-direction: column;\n gap: 0;\n}\n\n.itemLabel {\n color: var(--c-color-dimmed);\n font-size: var(--data-list-fz);\n line-height: var(--data-list-lh);\n min-width: var(--data-list-label-width);\n margin: 0;\n}\n\n.root:where([data-orientation='vertical']) .itemLabel {\n min-width: 100%;\n}\n\n.itemValue {\n font-size: var(--data-list-fz);\n line-height: var(--data-list-lh);\n margin: 0;\n}\n\n.root:where([data-with-divider]) > .item:where(:not(:first-of-type)) {\n border-top: rem(1px) solid var(--c-color-default-border);\n padding-top: var(--data-list-gap);\n margin-top: var(--data-list-gap);\n}\n"],"mappings":";;AAAA,IAAA,2BAAe;CAAC,QAAO;CAAa,QAAO;CAAa,aAAY;CAAa,aAAY;AAAY"}
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { getFontSize, getLineHeight, getSpacing } 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/data-list/data-list.utils.ts
5
+ const varsResolver = createVarsResolver((_, { size, gap, labelWidth }) => ({ root: {
6
+ "--data-list-fz": getFontSize(size),
7
+ "--data-list-gap": getSpacing(size),
8
+ "--data-list-label-width": labelWidth !== void 0 ? typeof labelWidth === "number" ? `${labelWidth}px` : labelWidth : void 0,
9
+ "--data-list-lh": getLineHeight(gap)
10
+ } }));
11
+ //#endregion
12
+ export { varsResolver };
13
+
14
+ //# sourceMappingURL=data-list.utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.utils.mjs","names":[],"sources":["../../../src/components/data-list/data-list.utils.ts"],"sourcesContent":["import { createVarsResolver, getFontSize, getLineHeight, getSpacing } from '../../core'\nimport { DataListFactory } from './data-list.types'\n\nexport const varsResolver = createVarsResolver<DataListFactory>((_, { size, gap, labelWidth }) => ({\n root: {\n '--data-list-fz': getFontSize(size),\n '--data-list-gap': getSpacing(size),\n '--data-list-label-width':\n labelWidth !== undefined\n ? typeof labelWidth === 'number'\n ? `${labelWidth}px`\n : labelWidth\n : undefined,\n '--data-list-lh': getLineHeight(gap),\n },\n}))\n"],"mappings":";;;;AAGA,MAAa,eAAe,oBAAqC,GAAG,EAAE,MAAM,KAAK,kBAAkB,EACjG,MAAM;CACJ,kBAAkB,YAAY,IAAI;CAClC,mBAAmB,WAAW,IAAI;CAClC,2BACE,eAAe,KAAA,IACX,OAAO,eAAe,WACpB,GAAG,WAAW,MACd,aACF,KAAA;CACN,kBAAkB,cAAc,GAAG;AACrC,EACF,EAAE"}
@@ -0,0 +1,26 @@
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 data_list_module_default from "./data-list.module.mjs";
5
+ import { varsResolver } from "./data-list.utils.mjs";
6
+ import data_list_default from "./data-list.mjs";
7
+ import data_list_item_default from "./data-list-item/data-list-item.mjs";
8
+ import data_list_item_label_default from "./data-list-item-label/data-list-item-label.mjs";
9
+ import data_list_item_value_default from "./data-list-item-value/data-list-item-value.mjs";
10
+ //#region packages/@cck-ui/core/src/components/data-list/index.ts
11
+ const DataListWithStatic = withPropsFactory(withExtend(withVarsResolver(withClasses(data_list_default, data_list_module_default), varsResolver)));
12
+ const DataListItemWithStatic = withPropsFactory(withExtend(withClasses(data_list_item_default, data_list_module_default)));
13
+ const DataListItemLabelWithStatic = withPropsFactory(withExtend(withClasses(data_list_item_label_default, data_list_module_default)));
14
+ const DataListItemValueWithStatic = withPropsFactory(withExtend(withClasses(data_list_item_value_default, data_list_module_default)));
15
+ const CDataListItem = withInstall(DataListItemWithStatic);
16
+ const CDataListItemLabel = withInstall(DataListItemLabelWithStatic);
17
+ const CDataListItemValue = withInstall(DataListItemValueWithStatic);
18
+ const CDataList = withInstall(DataListWithStatic, {
19
+ Item: CDataListItem,
20
+ Label: CDataListItemLabel,
21
+ Value: CDataListItemValue
22
+ });
23
+ //#endregion
24
+ export { CDataList, CDataList as default, CDataListItem, CDataListItemLabel, CDataListItemValue };
25
+
26
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["DataList","classes","DataListItem","DataListItemLabel","DataListItemValue"],"sources":["../../../src/components/data-list/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport DataList from './data-list.vue'\nimport classes from './data-list.module.css'\nimport { varsResolver } from './data-list.utils'\nimport DataListItem from './data-list-item/data-list-item.vue'\nimport DataListItemLabel from './data-list-item-label/data-list-item-label.vue'\nimport DataListItemValue from './data-list-item-value/data-list-item-value.vue'\n\nconst DataListWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(DataList, classes), varsResolver))\n)\nconst DataListItemWithStatic = withPropsFactory(withExtend(withClasses(DataListItem, classes)))\nconst DataListItemLabelWithStatic = withPropsFactory(\n withExtend(withClasses(DataListItemLabel, classes))\n)\nconst DataListItemValueWithStatic = withPropsFactory(\n withExtend(withClasses(DataListItemValue, classes))\n)\n\nexport const CDataListItem: SFCWithInstallAndClasses<typeof DataListItem> =\n withInstall(DataListItemWithStatic)\nexport const CDataListItemLabel: SFCWithInstallAndClasses<typeof DataListItemLabel> = withInstall(\n DataListItemLabelWithStatic\n)\nexport const CDataListItemValue: SFCWithInstallAndClasses<typeof DataListItemValue> = withInstall(\n DataListItemValueWithStatic\n)\nexport const CDataList: SFCWithInstallAndClasses<typeof DataList> & {\n Item: typeof DataListItem\n Label: typeof DataListItemLabel\n Value: typeof DataListItemValue\n} = withInstall(DataListWithStatic, {\n Item: CDataListItem,\n Label: CDataListItemLabel,\n Value: CDataListItemValue,\n})\n\nexport default CDataList\n\nexport * from './data-list-item/data-list-item.types'\nexport * from './data-list-item-label/data-list-item-label.types'\nexport * from './data-list-item-value/data-list-item-value.types'\nexport * from './data-list.types'\n"],"mappings":";;;;;;;;;;AAeA,MAAM,qBAAqB,iBACzB,WAAW,iBAAiB,YAAYA,mBAAUC,wBAAO,GAAG,YAAY,CAAC,CAC3E;AACA,MAAM,yBAAyB,iBAAiB,WAAW,YAAYC,wBAAcD,wBAAO,CAAC,CAAC;AAC9F,MAAM,8BAA8B,iBAClC,WAAW,YAAYE,8BAAmBF,wBAAO,CAAC,CACpD;AACA,MAAM,8BAA8B,iBAClC,WAAW,YAAYG,8BAAmBH,wBAAO,CAAC,CACpD;AAEA,MAAa,gBACX,YAAY,sBAAsB;AACpC,MAAa,qBAAyE,YACpF,2BACF;AACA,MAAa,qBAAyE,YACpF,2BACF;AACA,MAAa,YAIT,YAAY,oBAAoB;CAClC,MAAM;CACN,OAAO;CACP,OAAO;AACT,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { rem } from "../../../core/utils/units-converters/rem.mjs";
3
+ //#region packages/@cck-ui/core/src/components/indicator/get-position-variables/get-position-variables.ts
4
+ function getPositionVariables(_position = "top-end", offset = 0) {
5
+ const variables = {
6
+ "--indicator-top": void 0,
7
+ "--indicator-bottom": void 0,
8
+ "--indicator-left": void 0,
9
+ "--indicator-right": void 0,
10
+ "--indicator-translate-x": void 0,
11
+ "--indicator-translate-y": void 0
12
+ };
13
+ const offsetX = typeof offset === "number" ? offset : offset.x;
14
+ const offsetY = typeof offset === "number" ? offset : offset.y;
15
+ const _offsetX = rem(offsetX);
16
+ const _offsetY = rem(offsetY);
17
+ const [position, placement] = _position.split("-");
18
+ if (position === "top") {
19
+ variables["--indicator-top"] = _offsetY;
20
+ variables["--indicator-translate-y"] = "-50%";
21
+ }
22
+ if (position === "middle") {
23
+ variables["--indicator-top"] = "50%";
24
+ variables["--indicator-translate-y"] = "-50%";
25
+ }
26
+ if (position === "bottom") {
27
+ variables["--indicator-bottom"] = _offsetY;
28
+ variables["--indicator-translate-y"] = "50%";
29
+ }
30
+ if (placement === "start") {
31
+ variables["--indicator-left"] = _offsetX;
32
+ variables["--indicator-translate-x"] = "-50%";
33
+ }
34
+ if (placement === "center") {
35
+ variables["--indicator-left"] = "50%";
36
+ variables["--indicator-translate-x"] = "-50%";
37
+ }
38
+ if (placement === "end") {
39
+ variables["--indicator-right"] = _offsetX;
40
+ variables["--indicator-translate-x"] = "50%";
41
+ }
42
+ return variables;
43
+ }
44
+ //#endregion
45
+ export { getPositionVariables };
46
+
47
+ //# sourceMappingURL=get-position-variables.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-position-variables.mjs","names":[],"sources":["../../../../src/components/indicator/get-position-variables/get-position-variables.ts"],"sourcesContent":["import { rem } from '../../../core'\nimport type { IndicatorPosition, IndicatorPositionVariables } from '../indicator.types'\n\nexport function getPositionVariables(\n _position: IndicatorPosition = 'top-end',\n offset: number | { x: number; y: number } = 0\n) {\n const variables: Record<IndicatorPositionVariables, string | undefined> = {\n '--indicator-top': undefined,\n '--indicator-bottom': undefined,\n '--indicator-left': undefined,\n '--indicator-right': undefined,\n '--indicator-translate-x': undefined,\n '--indicator-translate-y': undefined,\n }\n\n const offsetX = typeof offset === 'number' ? offset : offset.x\n const offsetY = typeof offset === 'number' ? offset : offset.y\n\n const _offsetX = rem(offsetX)\n const _offsetY = rem(offsetY)\n const [position, placement] = _position.split('-')\n\n if (position === 'top') {\n variables['--indicator-top'] = _offsetY\n variables['--indicator-translate-y'] = '-50%'\n }\n\n if (position === 'middle') {\n variables['--indicator-top'] = '50%'\n variables['--indicator-translate-y'] = '-50%'\n }\n\n if (position === 'bottom') {\n variables['--indicator-bottom'] = _offsetY\n variables['--indicator-translate-y'] = '50%'\n }\n\n if (placement === 'start') {\n variables['--indicator-left'] = _offsetX\n variables['--indicator-translate-x'] = '-50%'\n }\n\n if (placement === 'center') {\n variables['--indicator-left'] = '50%'\n variables['--indicator-translate-x'] = '-50%'\n }\n\n if (placement === 'end') {\n variables['--indicator-right'] = _offsetX\n variables['--indicator-translate-x'] = '50%'\n }\n\n return variables\n}\n"],"mappings":";;;AAGA,SAAgB,qBACd,YAA+B,WAC/B,SAA4C,GAC5C;CACA,MAAM,YAAoE;EACxE,mBAAmB,KAAA;EACnB,sBAAsB,KAAA;EACtB,oBAAoB,KAAA;EACpB,qBAAqB,KAAA;EACrB,2BAA2B,KAAA;EAC3B,2BAA2B,KAAA;CAC7B;CAEA,MAAM,UAAU,OAAO,WAAW,WAAW,SAAS,OAAO;CAC7D,MAAM,UAAU,OAAO,WAAW,WAAW,SAAS,OAAO;CAE7D,MAAM,WAAW,IAAI,OAAO;CAC5B,MAAM,WAAW,IAAI,OAAO;CAC5B,MAAM,CAAC,UAAU,aAAa,UAAU,MAAM,GAAG;CAEjD,IAAI,aAAa,OAAO;EACtB,UAAU,qBAAqB;EAC/B,UAAU,6BAA6B;CACzC;CAEA,IAAI,aAAa,UAAU;EACzB,UAAU,qBAAqB;EAC/B,UAAU,6BAA6B;CACzC;CAEA,IAAI,aAAa,UAAU;EACzB,UAAU,wBAAwB;EAClC,UAAU,6BAA6B;CACzC;CAEA,IAAI,cAAc,SAAS;EACzB,UAAU,sBAAsB;EAChC,UAAU,6BAA6B;CACzC;CAEA,IAAI,cAAc,UAAU;EAC1B,UAAU,sBAAsB;EAChC,UAAU,6BAA6B;CACzC;CAEA,IAAI,cAAc,OAAO;EACvB,UAAU,uBAAuB;EACjC,UAAU,6BAA6B;CACzC;CAEA,OAAO;AACT"}
@@ -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 indicator_module_default from "./indicator.module.mjs";
5
+ import { varsResolver } from "./indicator.utils.mjs";
6
+ import indicator_default from "./indicator.mjs";
7
+ const CIndicator = withInstall(withPropsFactory(withExtend(withVarsResolver(withClasses(indicator_default, indicator_module_default), varsResolver))));
8
+ //#endregion
9
+ export { CIndicator, CIndicator as default };
10
+
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["Indicator","classes"],"sources":["../../../src/components/indicator/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport classes from './indicator.module.css'\nimport { varsResolver } from './indicator.utils'\nimport Indicator from './indicator.vue'\n\nconst IndicatorWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Indicator, classes), varsResolver))\n)\n\nexport const CIndicator: SFCWithInstallAndClasses<typeof Indicator, typeof classes> =\n withInstall(IndicatorWithStatic)\n\nexport default CIndicator\n\nexport * from './indicator.types'\n"],"mappings":";;;;;;AAgBA,MAAa,aACX,YAL0B,iBAC1B,WAAW,iBAAiB,YAAYA,mBAAWC,wBAAO,GAAG,YAAY,CAAC,CAI9D,CAAmB"}