@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,421 @@
1
+ "use client";
2
+ const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
3
+ const require_use_component_props = require("../../core/config-provider/use-component-props/use-component-props.cjs");
4
+ const require_index = require("../../core/box/index.cjs");
5
+ const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
6
+ const require_data_list_module = require("./data-list.module.cjs");
7
+ const require_data_list_utils = require("./data-list.utils.cjs");
8
+ const require_data_list_constant = require("./data-list.constant.cjs");
9
+ let vue = require("vue");
10
+ //#region packages/@cck-ui/core/src/components/data-list/data-list.vue
11
+ const _sfc_main = /*@__PURE__*/ (0, vue.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 = (0, vue.ref)(null);
327
+ const attrs = (0, vue.useAttrs)();
328
+ const rawProps = __props;
329
+ const defaultProps = { orientation: "horizontal" };
330
+ const props = require_use_component_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 = (0, vue.computed)(() => ({
350
+ ...props.value,
351
+ ...attrs,
352
+ style: attrs.style ?? props.value.style
353
+ }));
354
+ const getStyles = require_use_styles.useStyles({
355
+ name: "DataList",
356
+ classes: require_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: require_data_list_utils.varsResolver
366
+ });
367
+ (0, vue.provide)(require_data_list_constant.DATA_LIST_CONTEXT_KEY, { getStyles });
368
+ const modList = (0, vue.computed)(() => [{ orientation: props.value.orientation }, { "with-divider": props.value.withDivider }]);
369
+ const rootAttrs = (0, vue.computed)(() => getStyles("root"));
370
+ const mergedAttrs = (0, vue.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: (0, vue.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 require_index.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 (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({
410
+ ref: "_root",
411
+ tag: "dl"
412
+ }, $setup.mergedAttrs), {
413
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
414
+ _: 3
415
+ }, 16);
416
+ }
417
+ var data_list_default = /*#__PURE__*/ require_export_helper.default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/data-list/data-list.vue"]]);
418
+ //#endregion
419
+ exports.default = data_list_default;
420
+
421
+ //# sourceMappingURL=data-list.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.cjs","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,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,WAAW;EAEjB,MAAM,eAAe,EACnB,aAAa,aACf;EAEA,MAAM,QAAQ,4BAAA,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,cAAA,GAAA,IAAA,SAAA,QAA6B;GACjC,GAAG,MAAM;GACT,GAAG;GACH,OAAQ,MAAM,SAAS,MAAM,MAAM;EACrC,EAAE;EAEF,MAAM,YAAY,mBAAA,UAA2B;GAC3C,MAAM;GACN,SAAA,yBAAA;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,cAAA,wBAAA;EACF,CAAC;EAED,CAAA,GAAA,IAAA,QAAA,CAAQ,2BAAA,uBAAuB,EAAE,UAAU,CAAC;EAE5C,MAAM,WAAA,GAAA,IAAA,SAAA,OAAyB,CAC7B,EAAE,aAAa,MAAM,MAAM,YAAY,GACvC,EAAE,gBAAgB,MAAM,MAAM,YAAY,CAC5C,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,MAAM,CAAC;EAElD,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,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,OAAA,GAAA,IAAA,SAAA,OAAqB,MAAM,OAAO,QAAQ,IAAI,EAChD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;mDA7FS,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA;EAFD,KAAI;EAAQ,KAAI;IAAa,OAAA,WAAW,GAAA;kCACrC,EAAA,GAAA,IAAA,WAAA,CAAA,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
+ exports.DATA_LIST_CONTEXT_KEY = DATA_LIST_CONTEXT_KEY;
6
+
7
+ //# sourceMappingURL=data-list.constant.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.constant.cjs","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,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
+ exports.default = data_list_module_default;
11
+
12
+ //# sourceMappingURL=data-list.module.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.module.cjs","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,13 @@
1
+ "use client";
2
+ const require_get_size = require("../../core/utils/get-size/get-size.cjs");
3
+ //#region packages/@cck-ui/core/src/components/data-list/data-list.utils.ts
4
+ const varsResolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs").createVarsResolver((_, { size, gap, labelWidth }) => ({ root: {
5
+ "--data-list-fz": require_get_size.getFontSize(size),
6
+ "--data-list-gap": require_get_size.getSpacing(size),
7
+ "--data-list-label-width": labelWidth !== void 0 ? typeof labelWidth === "number" ? `${labelWidth}px` : labelWidth : void 0,
8
+ "--data-list-lh": require_get_size.getLineHeight(gap)
9
+ } }));
10
+ //#endregion
11
+ exports.varsResolver = varsResolver;
12
+
13
+ //# sourceMappingURL=data-list.utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list.utils.cjs","names":["createVarsResolver","getFontSize","getSpacing","getLineHeight"],"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,4FAAeA,CAAAA,CAAAA,oBAAqC,GAAG,EAAE,MAAM,KAAK,kBAAkB,EACjG,MAAM;CACJ,kBAAkBC,iBAAAA,YAAY,IAAI;CAClC,mBAAmBC,iBAAAA,WAAW,IAAI;CAClC,2BACE,eAAe,KAAA,IACX,OAAO,eAAe,WACpB,GAAG,WAAW,MACd,aACF,KAAA;CACN,kBAAkBC,iBAAAA,cAAc,GAAG;AACrC,EACF,EAAE"}
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ const require_install = require("../../core/utils/vue/install.cjs");
3
+ const require_statics = require("../../core/utils/vue/statics.cjs");
4
+ const require_data_list_module = require("./data-list.module.cjs");
5
+ const require_data_list_utils = require("./data-list.utils.cjs");
6
+ const require_data_list = require("./data-list.cjs");
7
+ const require_data_list_item = require("./data-list-item/data-list-item.cjs");
8
+ const require_data_list_item_label = require("./data-list-item-label/data-list-item-label.cjs");
9
+ const require_data_list_item_value = require("./data-list-item-value/data-list-item-value.cjs");
10
+ //#region packages/@cck-ui/core/src/components/data-list/index.ts
11
+ const DataListWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withVarsResolver(require_statics.withClasses(require_data_list.default, require_data_list_module.default), require_data_list_utils.varsResolver)));
12
+ const DataListItemWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_data_list_item.default, require_data_list_module.default)));
13
+ const DataListItemLabelWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_data_list_item_label.default, require_data_list_module.default)));
14
+ const DataListItemValueWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_data_list_item_value.default, require_data_list_module.default)));
15
+ const CDataListItem = require_install.withInstall(DataListItemWithStatic);
16
+ const CDataListItemLabel = require_install.withInstall(DataListItemLabelWithStatic);
17
+ const CDataListItemValue = require_install.withInstall(DataListItemValueWithStatic);
18
+ const CDataList = require_install.withInstall(DataListWithStatic, {
19
+ Item: CDataListItem,
20
+ Label: CDataListItemLabel,
21
+ Value: CDataListItemValue
22
+ });
23
+ //#endregion
24
+ exports.CDataList = CDataList;
25
+ exports.default = CDataList;
26
+ exports.CDataListItem = CDataListItem;
27
+ exports.CDataListItemLabel = CDataListItemLabel;
28
+ exports.CDataListItemValue = CDataListItemValue;
29
+
30
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withVarsResolver","withClasses","DataList","classes","varsResolver","DataListItem","DataListItemLabel","DataListItemValue","withInstall"],"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,qBAAqBA,gBAAAA,iBACzBC,gBAAAA,WAAWC,gBAAAA,iBAAiBC,gBAAAA,YAAYC,kBAAAA,SAAUC,yBAAAA,OAAO,GAAGC,wBAAAA,YAAY,CAAC,CAC3E;AACA,MAAM,yBAAyBN,gBAAAA,iBAAiBC,gBAAAA,WAAWE,gBAAAA,YAAYI,uBAAAA,SAAcF,yBAAAA,OAAO,CAAC,CAAC;AAC9F,MAAM,8BAA8BL,gBAAAA,iBAClCC,gBAAAA,WAAWE,gBAAAA,YAAYK,6BAAAA,SAAmBH,yBAAAA,OAAO,CAAC,CACpD;AACA,MAAM,8BAA8BL,gBAAAA,iBAClCC,gBAAAA,WAAWE,gBAAAA,YAAYM,6BAAAA,SAAmBJ,yBAAAA,OAAO,CAAC,CACpD;AAEA,MAAa,gBACXK,gBAAAA,YAAY,sBAAsB;AACpC,MAAa,qBAAyEA,gBAAAA,YACpF,2BACF;AACA,MAAa,qBAAyEA,gBAAAA,YACpF,2BACF;AACA,MAAa,YAITA,gBAAAA,YAAY,oBAAoB;CAClC,MAAM;CACN,OAAO;CACP,OAAO;AACT,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ const require_rem = require("../../../core/utils/units-converters/rem.cjs");
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 = require_rem.rem(offsetX);
16
+ const _offsetY = require_rem.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
+ exports.getPositionVariables = getPositionVariables;
46
+
47
+ //# sourceMappingURL=get-position-variables.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-position-variables.cjs","names":["rem"],"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,WAAWA,YAAAA,IAAI,OAAO;CAC5B,MAAM,WAAWA,YAAAA,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,14 @@
1
+ "use client";
2
+ const require_install = require("../../core/utils/vue/install.cjs");
3
+ const require_statics = require("../../core/utils/vue/statics.cjs");
4
+ const require_indicator_module = require("./indicator.module.cjs");
5
+ const require_indicator_utils = require("./indicator.utils.cjs");
6
+ const require_indicator = require("./indicator.cjs");
7
+ //#region packages/@cck-ui/core/src/components/indicator/index.ts
8
+ const IndicatorWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withVarsResolver(require_statics.withClasses(require_indicator.default, require_indicator_module.default), require_indicator_utils.varsResolver)));
9
+ const CIndicator = require_install.withInstall(IndicatorWithStatic);
10
+ //#endregion
11
+ exports.CIndicator = CIndicator;
12
+ exports.default = CIndicator;
13
+
14
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withVarsResolver","withClasses","Indicator","classes","varsResolver","withInstall"],"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":";;;;;;;AAYA,MAAM,sBAAsBA,gBAAAA,iBAC1BC,gBAAAA,WAAWC,gBAAAA,iBAAiBC,gBAAAA,YAAYC,kBAAAA,SAAWC,yBAAAA,OAAO,GAAGC,wBAAAA,YAAY,CAAC,CAC5E;AAEA,MAAa,aACXC,gBAAAA,YAAY,mBAAmB"}