@cck-ui/core 0.14.1 → 0.15.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 (29) hide show
  1. package/cjs/components/semi-circle-progress/index.cjs +14 -0
  2. package/cjs/components/semi-circle-progress/index.cjs.map +1 -0
  3. package/cjs/components/semi-circle-progress/semi-circle-progress.cjs +530 -0
  4. package/cjs/components/semi-circle-progress/semi-circle-progress.cjs.map +1 -0
  5. package/cjs/components/semi-circle-progress/semi-circle-progress.module.cjs +12 -0
  6. package/cjs/components/semi-circle-progress/semi-circle-progress.module.cjs.map +1 -0
  7. package/cjs/components/semi-circle-progress/semi-circle-progress.utils.cjs +26 -0
  8. package/cjs/components/semi-circle-progress/semi-circle-progress.utils.cjs.map +1 -0
  9. package/cjs/index.cjs +20 -17
  10. package/cjs/index.cjs.map +1 -1
  11. package/esm/components/semi-circle-progress/index.mjs +11 -0
  12. package/esm/components/semi-circle-progress/index.mjs.map +1 -0
  13. package/esm/components/semi-circle-progress/semi-circle-progress.mjs +530 -0
  14. package/esm/components/semi-circle-progress/semi-circle-progress.mjs.map +1 -0
  15. package/esm/components/semi-circle-progress/semi-circle-progress.module.mjs +12 -0
  16. package/esm/components/semi-circle-progress/semi-circle-progress.module.mjs.map +1 -0
  17. package/esm/components/semi-circle-progress/semi-circle-progress.utils.mjs +26 -0
  18. package/esm/components/semi-circle-progress/semi-circle-progress.utils.mjs.map +1 -0
  19. package/esm/index.mjs +3 -1
  20. package/esm/index.mjs.map +1 -1
  21. package/lib/components/index.d.ts +1 -0
  22. package/lib/components/semi-circle-progress/index.d.ts +6 -0
  23. package/lib/components/semi-circle-progress/semi-circle-progress.types.d.ts +57 -0
  24. package/lib/components/semi-circle-progress/semi-circle-progress.utils.d.ts +7 -0
  25. package/package.json +1 -1
  26. package/styles/semi-circle-progress.css +58 -0
  27. package/styles/semi-circle-progress.layer.css +59 -0
  28. package/styles.css +59 -0
  29. package/styles.layer.css +59 -0
package/cjs/index.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CAlert","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCloseButton","CCol","CContainer","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFlex","CGrid","CGroup","CLoader","CSimpleGrid","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjBA,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
1
+ {"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CAlert","CAspectRatio","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCloseButton","CCol","CContainer","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFlex","CGrid","CGroup","CLoader","CSemiCircleProgress","CSimpleGrid","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjBA,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { withInstall } from "../../core/utils/vue/install.mjs";
3
+ import { withClasses, withExtend, withPropsFactory, withVarsResolver } from "../../core/utils/vue/statics.mjs";
4
+ import semi_circle_progress_module_default from "./semi-circle-progress.module.mjs";
5
+ import { varsResolver } from "./semi-circle-progress.utils.mjs";
6
+ import semi_circle_progress_default from "./semi-circle-progress.mjs";
7
+ const CSemiCircleProgress = withInstall(withPropsFactory(withExtend(withVarsResolver(withClasses(semi_circle_progress_default, semi_circle_progress_module_default), varsResolver))));
8
+ //#endregion
9
+ export { CSemiCircleProgress, CSemiCircleProgress as default };
10
+
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["SemiCircleProgress","classes"],"sources":["../../../src/components/semi-circle-progress/index.ts"],"sourcesContent":["import SemiCircleProgress from './semi-circle-progress.vue'\nimport classes from './semi-circle-progress.module.css'\nimport { varsResolver } from './semi-circle-progress.utils'\nimport {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\n\nconst SemiCircleProgressWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(SemiCircleProgress, classes), varsResolver))\n)\n\nexport const CSemiCircleProgress: SFCWithInstallAndClasses<\n typeof SemiCircleProgress,\n typeof classes\n> = withInstall(SemiCircleProgressWithStatic)\n\nexport default CSemiCircleProgress\n\nexport * from './semi-circle-progress.types'\n"],"mappings":";;;;;;AAgBA,MAAa,sBAGT,YAPiC,iBACnC,WAAW,iBAAiB,YAAYA,8BAAoBC,mCAAO,GAAG,YAAY,CAAC,CAMrE,CAA4B"}
@@ -0,0 +1,530 @@
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 semi_circle_progress_module_default from "./semi-circle-progress.module.mjs";
7
+ import { varsResolver } from "./semi-circle-progress.utils.mjs";
8
+ import { clamp } from "es-toolkit";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, withCtx } from "vue";
10
+ //#region packages/@cck-ui/core/src/components/semi-circle-progress/semi-circle-progress.vue
11
+ const _sfc_main = /*@__PURE__*/ defineComponent({
12
+ name: "CSemiCircleProgress",
13
+ __name: "semi-circle-progress",
14
+ props: {
15
+ value: {
16
+ type: Number,
17
+ required: true
18
+ },
19
+ size: {
20
+ type: Number,
21
+ required: false
22
+ },
23
+ thickness: {
24
+ type: Number,
25
+ required: false
26
+ },
27
+ orientation: {
28
+ type: String,
29
+ required: false
30
+ },
31
+ fillDirection: {
32
+ type: String,
33
+ required: false
34
+ },
35
+ filledSegmentColor: {
36
+ type: null,
37
+ required: false
38
+ },
39
+ emptySegmentColor: {
40
+ type: null,
41
+ required: false
42
+ },
43
+ transitionDuration: {
44
+ type: Number,
45
+ required: false
46
+ },
47
+ labelPosition: {
48
+ type: String,
49
+ required: false
50
+ },
51
+ className: {
52
+ type: String,
53
+ required: false
54
+ },
55
+ style: {
56
+ type: [
57
+ Object,
58
+ Function,
59
+ Array
60
+ ],
61
+ required: false,
62
+ skipCheck: true
63
+ },
64
+ __vars: {
65
+ type: null,
66
+ required: false
67
+ },
68
+ __size: {
69
+ type: String,
70
+ required: false
71
+ },
72
+ hiddenFrom: {
73
+ type: null,
74
+ required: false
75
+ },
76
+ visibleFrom: {
77
+ type: null,
78
+ required: false
79
+ },
80
+ lightHidden: {
81
+ type: Boolean,
82
+ required: false
83
+ },
84
+ darkHidden: {
85
+ type: Boolean,
86
+ required: false
87
+ },
88
+ mod: {
89
+ type: [
90
+ Object,
91
+ String,
92
+ Array
93
+ ],
94
+ required: false
95
+ },
96
+ m: {
97
+ type: null,
98
+ required: false
99
+ },
100
+ my: {
101
+ type: null,
102
+ required: false
103
+ },
104
+ mx: {
105
+ type: null,
106
+ required: false
107
+ },
108
+ mt: {
109
+ type: null,
110
+ required: false
111
+ },
112
+ mb: {
113
+ type: null,
114
+ required: false
115
+ },
116
+ ms: {
117
+ type: null,
118
+ required: false
119
+ },
120
+ me: {
121
+ type: null,
122
+ required: false
123
+ },
124
+ mis: {
125
+ type: null,
126
+ required: false
127
+ },
128
+ mie: {
129
+ type: null,
130
+ required: false
131
+ },
132
+ ml: {
133
+ type: null,
134
+ required: false
135
+ },
136
+ mr: {
137
+ type: null,
138
+ required: false
139
+ },
140
+ p: {
141
+ type: null,
142
+ required: false
143
+ },
144
+ py: {
145
+ type: null,
146
+ required: false
147
+ },
148
+ px: {
149
+ type: null,
150
+ required: false
151
+ },
152
+ pt: {
153
+ type: null,
154
+ required: false
155
+ },
156
+ pb: {
157
+ type: null,
158
+ required: false
159
+ },
160
+ ps: {
161
+ type: null,
162
+ required: false
163
+ },
164
+ pe: {
165
+ type: null,
166
+ required: false
167
+ },
168
+ pis: {
169
+ type: null,
170
+ required: false
171
+ },
172
+ pie: {
173
+ type: null,
174
+ required: false
175
+ },
176
+ pl: {
177
+ type: null,
178
+ required: false
179
+ },
180
+ pr: {
181
+ type: null,
182
+ required: false
183
+ },
184
+ bd: {
185
+ type: null,
186
+ required: false
187
+ },
188
+ bdrs: {
189
+ type: null,
190
+ required: false
191
+ },
192
+ bg: {
193
+ type: null,
194
+ required: false
195
+ },
196
+ c: {
197
+ type: null,
198
+ required: false
199
+ },
200
+ opacity: {
201
+ type: [
202
+ String,
203
+ Object,
204
+ Number
205
+ ],
206
+ required: false
207
+ },
208
+ ff: {
209
+ type: [String, Object],
210
+ required: false
211
+ },
212
+ fz: {
213
+ type: null,
214
+ required: false
215
+ },
216
+ fw: {
217
+ type: null,
218
+ required: false
219
+ },
220
+ lts: {
221
+ type: null,
222
+ required: false
223
+ },
224
+ ta: {
225
+ type: [String, Object],
226
+ required: false
227
+ },
228
+ lh: {
229
+ type: null,
230
+ required: false
231
+ },
232
+ fs: {
233
+ type: null,
234
+ required: false
235
+ },
236
+ tt: {
237
+ type: [String, Object],
238
+ required: false
239
+ },
240
+ td: {
241
+ type: null,
242
+ required: false
243
+ },
244
+ w: {
245
+ type: null,
246
+ required: false
247
+ },
248
+ miw: {
249
+ type: null,
250
+ required: false
251
+ },
252
+ maw: {
253
+ type: null,
254
+ required: false
255
+ },
256
+ h: {
257
+ type: null,
258
+ required: false
259
+ },
260
+ mih: {
261
+ type: null,
262
+ required: false
263
+ },
264
+ mah: {
265
+ type: null,
266
+ required: false
267
+ },
268
+ bgsz: {
269
+ type: null,
270
+ required: false
271
+ },
272
+ bgp: {
273
+ type: null,
274
+ required: false
275
+ },
276
+ bgr: {
277
+ type: null,
278
+ required: false
279
+ },
280
+ bga: {
281
+ type: null,
282
+ required: false
283
+ },
284
+ pos: {
285
+ type: [String, Object],
286
+ required: false
287
+ },
288
+ top: {
289
+ type: null,
290
+ required: false
291
+ },
292
+ left: {
293
+ type: null,
294
+ required: false
295
+ },
296
+ bottom: {
297
+ type: null,
298
+ required: false
299
+ },
300
+ right: {
301
+ type: null,
302
+ required: false
303
+ },
304
+ inset: {
305
+ type: null,
306
+ required: false
307
+ },
308
+ display: {
309
+ type: null,
310
+ required: false
311
+ },
312
+ flex: {
313
+ type: null,
314
+ required: false
315
+ },
316
+ unstyled: {
317
+ type: Boolean,
318
+ required: false
319
+ },
320
+ variant: {
321
+ type: null,
322
+ required: false
323
+ },
324
+ classNames: {
325
+ type: null,
326
+ required: false
327
+ },
328
+ styles: {
329
+ type: null,
330
+ required: false
331
+ },
332
+ vars: {
333
+ type: Function,
334
+ required: false
335
+ },
336
+ attributes: {
337
+ type: null,
338
+ required: false
339
+ }
340
+ },
341
+ setup(__props, { expose: __expose }) {
342
+ const rawProps = __props;
343
+ const _root = ref(null);
344
+ const attrs = useAttrs();
345
+ const defaultProps = {
346
+ size: 200,
347
+ thickness: 12,
348
+ orientation: "up",
349
+ fillDirection: "left-to-right",
350
+ labelPosition: "bottom"
351
+ };
352
+ const props = useComponentProps({
353
+ component: "CSemiCircleProgress",
354
+ defaultProps,
355
+ props: rawProps
356
+ });
357
+ const knownProps = [
358
+ "classNames",
359
+ "className",
360
+ "style",
361
+ "styles",
362
+ "unstyled",
363
+ "vars",
364
+ "size",
365
+ "thickness",
366
+ "value",
367
+ "orientation",
368
+ "fillDirection",
369
+ "filledSegmentColor",
370
+ "emptySegmentColor",
371
+ "transitionDuration",
372
+ "label",
373
+ "labelPosition",
374
+ "attributes"
375
+ ];
376
+ const getStyles = useStyles({
377
+ name: "SemiCircleProgress",
378
+ props: {
379
+ ...props.value,
380
+ ...attrs
381
+ },
382
+ classes: semi_circle_progress_module_default,
383
+ className: props.value.className,
384
+ style: props.value.style,
385
+ classNames: props.value.classNames,
386
+ styles: props.value.styles,
387
+ unstyled: props.value.unstyled,
388
+ attributes: props.value.attributes,
389
+ vars: props.value.vars,
390
+ varsResolver
391
+ });
392
+ const coordinateForCircle = computed(() => props.value.size / 2);
393
+ const radius = computed(() => (props.value.size - 2 * props.value.thickness) / 2);
394
+ const circumference = computed(() => Math.PI * radius.value);
395
+ const semiCirclePercentage = computed(() => clamp(props.value.value, 0, 100) * (circumference.value / 100));
396
+ const rootAttrs = computed(() => getStyles("root"));
397
+ const labelAttrs = computed(() => getStyles("label"));
398
+ const svgAttrs = computed(() => {
399
+ const { className, style, ...rest } = getStyles("svg");
400
+ return {
401
+ className,
402
+ style,
403
+ rest
404
+ };
405
+ });
406
+ const emptySegmentAttrs = computed(() => {
407
+ const { className, style, ...rest } = getStyles("emptySegment", { style: { strokeDashoffset: circumference.value } });
408
+ return {
409
+ className,
410
+ style,
411
+ rest
412
+ };
413
+ });
414
+ const filledSegmentAttrs = computed(() => {
415
+ const { className, style, ...rest } = getStyles("filledSegment", { style: {
416
+ strokeDashoffset: semiCirclePercentage.value,
417
+ ...semiCirclePercentage.value === 0 ? { strokeOpacity: 0 } : null
418
+ } });
419
+ return {
420
+ className,
421
+ style,
422
+ rest
423
+ };
424
+ });
425
+ const mergedRootAttrs = computed(() => {
426
+ const others = {};
427
+ const propsValue = props.value;
428
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
429
+ const userMod = props.value.mod;
430
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
431
+ return {
432
+ ...others,
433
+ mod: mergedMod,
434
+ ...rootAttrs.value
435
+ };
436
+ });
437
+ __expose({ root: computed(() => _root.value?.root ?? null) });
438
+ const __returned__ = {
439
+ rawProps,
440
+ _root,
441
+ attrs,
442
+ defaultProps,
443
+ props,
444
+ knownProps,
445
+ getStyles,
446
+ coordinateForCircle,
447
+ radius,
448
+ circumference,
449
+ semiCirclePercentage,
450
+ rootAttrs,
451
+ labelAttrs,
452
+ svgAttrs,
453
+ emptySegmentAttrs,
454
+ filledSegmentAttrs,
455
+ mergedRootAttrs,
456
+ get CBox() {
457
+ return CBox;
458
+ }
459
+ };
460
+ Object.defineProperty(__returned__, "__isScriptSetup", {
461
+ enumerable: false,
462
+ value: true
463
+ });
464
+ return __returned__;
465
+ }
466
+ });
467
+ const _hoisted_1 = [
468
+ "width",
469
+ "height",
470
+ "viewBox"
471
+ ];
472
+ const _hoisted_2 = [
473
+ "cx",
474
+ "cy",
475
+ "r",
476
+ "stroke-width",
477
+ "stroke-dasharray"
478
+ ];
479
+ const _hoisted_3 = [
480
+ "cx",
481
+ "cy",
482
+ "r",
483
+ "stroke-width",
484
+ "stroke-dasharray"
485
+ ];
486
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
487
+ return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_root" }, $setup.mergedRootAttrs, { size: $setup.props.size }), {
488
+ default: withCtx(() => [_ctx.$slots.label ? (openBlock(), createBlock($setup["CBox"], mergeProps({ key: 0 }, $setup.labelAttrs, {
489
+ "data-position": $setup.props.labelPosition,
490
+ "data-orientation": $setup.props.orientation
491
+ }), {
492
+ default: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
493
+ _: 3
494
+ }, 16, ["data-position", "data-orientation"])) : createCommentVNode("v-if", true), (openBlock(), createElementBlock("svg", mergeProps($setup.svgAttrs.rest, {
495
+ class: $setup.svgAttrs.className,
496
+ style: $setup.svgAttrs.style,
497
+ width: $setup.props.size,
498
+ height: $setup.props.size / 2,
499
+ viewBox: `0 0 ${$setup.props.size} ${$setup.props.size / 2}`
500
+ }), [createElementVNode("circle", mergeProps({
501
+ fill: "none",
502
+ stroke: "var(--scp-empty-segment-color)"
503
+ }, $setup.emptySegmentAttrs.rest, {
504
+ class: $setup.emptySegmentAttrs.className,
505
+ style: $setup.emptySegmentAttrs.style,
506
+ cx: $setup.coordinateForCircle,
507
+ cy: $setup.coordinateForCircle,
508
+ r: $setup.radius,
509
+ "stroke-width": $setup.props.thickness,
510
+ "stroke-dasharray": $setup.circumference
511
+ }), null, 16, _hoisted_2), createElementVNode("circle", mergeProps({
512
+ fill: "none",
513
+ stroke: "var(--scp-filled-segment-color)"
514
+ }, $setup.filledSegmentAttrs.rest, {
515
+ class: $setup.filledSegmentAttrs.className,
516
+ style: $setup.filledSegmentAttrs.style,
517
+ cx: $setup.coordinateForCircle,
518
+ cy: $setup.coordinateForCircle,
519
+ r: $setup.radius,
520
+ "stroke-width": $setup.props.thickness,
521
+ "stroke-dasharray": $setup.circumference
522
+ }), null, 16, _hoisted_3)], 16, _hoisted_1))]),
523
+ _: 3
524
+ }, 16, ["size"]);
525
+ }
526
+ var semi_circle_progress_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/semi-circle-progress/semi-circle-progress.vue"]]);
527
+ //#endregion
528
+ export { semi_circle_progress_default as default };
529
+
530
+ //# sourceMappingURL=semi-circle-progress.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semi-circle-progress.mjs","names":[],"sources":["../../../src/components/semi-circle-progress/semi-circle-progress.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedRootAttrs\" :size=\"props.size\">\n <c-box\n v-bind=\"labelAttrs\"\n v-if=\"$slots.label\"\n :data-position=\"props.labelPosition\"\n :data-orientation=\"props.orientation\"\n >\n <slot name=\"label\" />\n </c-box>\n\n <svg\n v-bind=\"svgAttrs.rest\"\n :class=\"svgAttrs.className\"\n :style=\"svgAttrs.style\"\n :width=\"props.size\"\n :height=\"props.size! / 2\"\n :viewBox=\"`0 0 ${props.size} ${props.size! / 2}`\"\n >\n <circle\n fill=\"none\"\n stroke=\"var(--scp-empty-segment-color)\"\n v-bind=\"emptySegmentAttrs.rest\"\n :class=\"emptySegmentAttrs.className\"\n :style=\"emptySegmentAttrs.style\"\n :cx=\"coordinateForCircle\"\n :cy=\"coordinateForCircle\"\n :r=\"radius\"\n :stroke-width=\"props.thickness\"\n :stroke-dasharray=\"circumference\"\n />\n\n <circle\n fill=\"none\"\n stroke=\"var(--scp-filled-segment-color)\"\n v-bind=\"filledSegmentAttrs.rest\"\n :class=\"filledSegmentAttrs.className\"\n :style=\"filledSegmentAttrs.style\"\n :cx=\"coordinateForCircle\"\n :cy=\"coordinateForCircle\"\n :r=\"radius\"\n :stroke-width=\"props.thickness\"\n :stroke-dasharray=\"circumference\"\n />\n </svg>\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport { SemiCircleProgressFactory, SemiCircleProgressProps } from './semi-circle-progress.types'\nimport classes from './semi-circle-progress.module.css'\nimport { varsResolver } from './semi-circle-progress.utils'\nimport { clamp } from 'es-toolkit'\n\ndefineOptions({\n name: 'CSemiCircleProgress',\n})\n\nconst rawProps = defineProps<SemiCircleProgressProps>()\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst defaultProps = {\n size: 200,\n thickness: 12,\n orientation: 'up',\n fillDirection: 'left-to-right',\n labelPosition: 'bottom',\n} satisfies Partial<SemiCircleProgressProps>\n\nconst props = useComponentProps({\n component: 'CSemiCircleProgress',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'size',\n 'thickness',\n 'value',\n 'orientation',\n 'fillDirection',\n 'filledSegmentColor',\n 'emptySegmentColor',\n 'transitionDuration',\n 'label',\n 'labelPosition',\n 'attributes',\n]\n\nconst getStyles = useStyles<SemiCircleProgressFactory>({\n name: 'SemiCircleProgress',\n props: { ...props.value, ...attrs } as SemiCircleProgressProps,\n classes,\n className: props.value.className,\n style: props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n unstyled: props.value.unstyled,\n attributes: props.value.attributes,\n vars: props.value.vars,\n varsResolver,\n})\n\nconst coordinateForCircle = computed(() => props.value.size! / 2)\nconst radius = computed(() => (props.value.size! - 2 * props.value.thickness!) / 2)\nconst circumference = computed(() => Math.PI * radius.value)\nconst semiCirclePercentage = computed(\n () => clamp(props.value.value, 0, 100) * (circumference.value / 100)\n)\n\nconst rootAttrs = computed(() => getStyles('root'))\nconst labelAttrs = computed(() => getStyles('label'))\n\nconst svgAttrs = computed(() => {\n const attrsResult = getStyles('svg')\n const { className, style, ...rest } = attrsResult\n return { className, style: style as any, rest }\n})\n\nconst emptySegmentAttrs = computed(() => {\n const attrsResult = getStyles('emptySegment', {\n style: { strokeDashoffset: circumference.value },\n })\n const { className, style, ...rest } = attrsResult\n return { className, style: style as any, rest }\n})\nconst filledSegmentAttrs = computed(() => {\n const attrsResult = getStyles('filledSegment', {\n style: {\n strokeDashoffset: semiCirclePercentage.value,\n ...(semiCirclePercentage.value === 0 ? { strokeOpacity: 0 } : null),\n },\n })\n const { className, style, ...rest } = attrsResult\n return { className, style: style as any, rest }\n})\n\nconst mergedRootAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n for (const key in propsValue) {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n }\n const userMod = props.value.mod\n const mergedMod = [...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean))]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/semi-circle-progress/semi-circle-progress.module.css
3
+ var semi_circle_progress_module_default = {
4
+ "root": "m_6f2f9f44",
5
+ "svg": "m_8ff94bc2",
6
+ "filledSegment": "m_e500074f",
7
+ "label": "m_76692cd2"
8
+ };
9
+ //#endregion
10
+ export { semi_circle_progress_module_default as default };
11
+
12
+ //# sourceMappingURL=semi-circle-progress.module.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semi-circle-progress.module.mjs","names":[],"sources":["../../../src/components/semi-circle-progress/semi-circle-progress.module.css"],"sourcesContent":[".root {\n --scp-filled-segment-color: var(--c-primary-color-filled);\n --scp-transition-duration: 0ms;\n --scp-thickness: 12px;\n\n @mixin where-light {\n --scp-empty-segment-color: var(--c-color-gray-2);\n }\n\n @mixin where-dark {\n --scp-empty-segment-color: var(--c-color-dark-4);\n }\n\n position: relative;\n width: fit-content;\n}\n\n.svg {\n display: block;\n transform: var(--scp-rotation);\n overflow: hidden;\n}\n\n.filledSegment {\n transition:\n stroke-dashoffset var(--scp-transition-duration) ease,\n stroke-dasharray var(--scp-transition-duration) ease,\n stroke-opacity var(--scp-transition-duration) ease,\n stroke var(--scp-transition-duration);\n}\n\n.label {\n position: absolute;\n margin: 0;\n padding: 0;\n inset-inline: 0;\n text-align: center;\n z-index: 1;\n\n &:where([data-position='bottom']) {\n bottom: 0;\n padding-inline: calc(var(--scp-thickness) * 2);\n\n &:where([data-orientation='down']) {\n bottom: auto;\n top: 0;\n }\n }\n\n &:where([data-position='center']) {\n top: 50%;\n transform: translateY(-50%);\n padding-inline: calc(var(--scp-thickness) * 3);\n }\n}\n"],"mappings":";;AAAA,IAAA,sCAAe;CAAC,QAAO;CAAa,OAAM;CAAa,iBAAgB;CAAa,SAAQ;AAAY"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { rem } from "../../core/utils/units-converters/rem.mjs";
3
+ import { getThemeColor } from "../../core/config-provider/color-functions/get-theme-color/get-theme-color.mjs";
4
+ import { createVarsResolver } from "../../core/styles-api/create-vars-resolver/create-vars-resolver.mjs";
5
+ //#region packages/@cck-ui/core/src/components/semi-circle-progress/semi-circle-progress.utils.ts
6
+ function getRotation({ orientation, fillDirection }) {
7
+ if (orientation === "down") {
8
+ if (fillDirection === "right-to-left") return "rotate(180deg) rotateY(180deg)";
9
+ return "rotate(180deg)";
10
+ }
11
+ if (fillDirection === "left-to-right") return "rotateY(180deg)";
12
+ }
13
+ const varsResolver = createVarsResolver((theme, { filledSegmentColor, emptySegmentColor, orientation, fillDirection, transitionDuration, thickness }) => ({ root: {
14
+ "--scp-empty-segment-color": emptySegmentColor ? getThemeColor(emptySegmentColor, theme) : void 0,
15
+ "--scp-filled-segment-color": filledSegmentColor ? getThemeColor(filledSegmentColor, theme) : void 0,
16
+ "--scp-rotation": getRotation({
17
+ orientation,
18
+ fillDirection
19
+ }),
20
+ "--scp-thickness": rem(thickness),
21
+ "--scp-transition-duration": transitionDuration ? `${transitionDuration}ms` : void 0
22
+ } }));
23
+ //#endregion
24
+ export { varsResolver };
25
+
26
+ //# sourceMappingURL=semi-circle-progress.utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semi-circle-progress.utils.mjs","names":[],"sources":["../../../src/components/semi-circle-progress/semi-circle-progress.utils.ts"],"sourcesContent":["import { createVarsResolver, getThemeColor, rem } from '../../core'\nimport { SemiCircleProgressFactory, SemiCircleProgressProps } from './semi-circle-progress.types'\n\nfunction getRotation({\n orientation,\n fillDirection,\n}: Pick<SemiCircleProgressProps, 'orientation' | 'fillDirection'>) {\n if (orientation === 'down') {\n if (fillDirection === 'right-to-left') {\n return 'rotate(180deg) rotateY(180deg)'\n }\n return 'rotate(180deg)'\n }\n if (fillDirection === 'left-to-right') {\n return 'rotateY(180deg)'\n }\n\n return undefined\n}\n\nexport const varsResolver = createVarsResolver<SemiCircleProgressFactory>(\n (\n theme,\n {\n filledSegmentColor,\n emptySegmentColor,\n orientation,\n fillDirection,\n transitionDuration,\n thickness,\n }\n ) => ({\n root: {\n '--scp-empty-segment-color': emptySegmentColor\n ? getThemeColor(emptySegmentColor, theme)\n : undefined,\n '--scp-filled-segment-color': filledSegmentColor\n ? getThemeColor(filledSegmentColor, theme)\n : undefined,\n '--scp-rotation': getRotation({ orientation, fillDirection }),\n '--scp-thickness': rem(thickness),\n '--scp-transition-duration': transitionDuration ? `${transitionDuration}ms` : undefined,\n },\n })\n)\n"],"mappings":";;;;;AAGA,SAAS,YAAY,EACnB,aACA,iBACiE;CACjE,IAAI,gBAAgB,QAAQ;EAC1B,IAAI,kBAAkB,iBACpB,OAAO;EAET,OAAO;CACT;CACA,IAAI,kBAAkB,iBACpB,OAAO;AAIX;AAEA,MAAa,eAAe,oBAExB,OACA,EACE,oBACA,mBACA,aACA,eACA,oBACA,iBAEE,EACJ,MAAM;CACJ,6BAA6B,oBACzB,cAAc,mBAAmB,KAAK,IACtC,KAAA;CACJ,8BAA8B,qBAC1B,cAAc,oBAAoB,KAAK,IACvC,KAAA;CACJ,kBAAkB,YAAY;EAAE;EAAa;CAAc,CAAC;CAC5D,mBAAmB,IAAI,SAAS;CAChC,6BAA6B,qBAAqB,GAAG,mBAAmB,MAAM,KAAA;AAChF,EACF,EACF"}
package/esm/index.mjs CHANGED
@@ -65,6 +65,7 @@ import { CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateInd
65
65
  import { CFlex } from "./components/flex/index.mjs";
66
66
  import { CCol, CGrid } from "./components/grid/index.mjs";
67
67
  import { CGroup } from "./components/group/index.mjs";
68
+ import { CSemiCircleProgress } from "./components/semi-circle-progress/index.mjs";
68
69
  import { CSimpleGrid } from "./components/simple-grid/index.mjs";
69
70
  import { CSpace } from "./components/space/index.mjs";
70
71
  import { CSplitter, CSplitterPane } from "./components/splitter/index.mjs";
@@ -93,6 +94,7 @@ const components = [
93
94
  CGrid,
94
95
  CGroup,
95
96
  CLoader,
97
+ CSemiCircleProgress,
96
98
  CSimpleGrid,
97
99
  CSpace,
98
100
  CSplitter,
@@ -110,6 +112,6 @@ const CckUI = { install(app) {
110
112
  });
111
113
  } };
112
114
  //#endregion
113
- export { CAlert, CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCloseButton, CCol, CContainer, CDefaultLoaders, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFlex, CGrid, CGroup, CLoader, CONFIG_KEY, CSimpleGrid, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
115
+ export { CAlert, CAspectRatio, CBox, CButton, CButtonGroup, CButtonGroupSection, transitions as CCK_TRANSITIONS, CCenter, CCloseButton, CCol, CContainer, CDefaultLoaders, CEmptyState, CEmptyStateActions, CEmptyStateDescription, CEmptyStateIndicator, CEmptyStateTitle, CFlex, CGrid, CGroup, CLoader, CONFIG_KEY, CSemiCircleProgress, CSimpleGrid, CSpace, CSplitter, CSplitterPane, CStack, CText, CTransition, CckConfigProvider, CckUI, CckUI as default, DEFAULT_THEME, FOCUS_CLASS_NAMES, STYLE_PROPS_DATA, THEME_KEY, UnstyledButton, alpha, camelToKebabCase, colorsTuple, createTheme, createVarsResolver, darken, deepMerge, defaultCssVariablesResolver, defaultVariantColorsResolver, em, extractStyleProps, filterProps, getBaseValue, getBreakpointValue, getCSSColorVariables, getComponentName, getFontSize, getGradient, getLineHeight, getPrimaryShade, getRadius, getShadow, getSize, getSortedBreakpoints, getSpacing, getThemeColor, getTransitionProps, hashStyleProps, isLightColor, isNumber, isNumberLike, isString, isStringNumber, isUndefined, isVirtualColor, keys, luminance, mergeThemeOverrides, normalizeNumberLikeStringProp, numberLikeStringToNumber, parseStyleProps, parseThemeColor, px, rem, resolveClassNames, resolveStyles, responsiveStyleManager, rgb, rgba, stylesToString, toRgba, useCckClassNamesPrefix, useCckColorScheme, useCckCssVariablesResolver, useCckEnv, useCckIsHeadless, useCckStyleNonce, useCckStylesTransform, useCckSxTransform, useCckTheme, useCckWithStaticClasses, useComponentProps, useConfigContext, useProviderColorScheme, useRandomClassName, useStyles, virtualColor, withClasses, withExtend, withInstall, withPropsDefaultSetter, withPropsFactory, withVarsResolver };
114
116
 
115
117
  //# sourceMappingURL=index.mjs.map
package/esm/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,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;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 CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CAlert,\n CAspectRatio,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFlex,\n CGrid,\n CGroup,\n CLoader,\n CSemiCircleProgress,\n CSimpleGrid,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,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;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"}
@@ -9,6 +9,7 @@ export * from './flex';
9
9
  export * from './grid';
10
10
  export * from './group';
11
11
  export * from './loader';
12
+ export * from './semi-circle-progress';
12
13
  export * from './simple-grid';
13
14
  export * from './space';
14
15
  export * from './splitter';