@cck-ui/core 0.5.0 → 0.6.1

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 (116) hide show
  1. package/cjs/components/button/button-group/button-group.cjs +61 -35
  2. package/cjs/components/button/button-group/button-group.cjs.map +1 -1
  3. package/cjs/components/button/button-group/button-group.utils.cjs +8 -0
  4. package/cjs/components/button/button-group/button-group.utils.cjs.map +1 -0
  5. package/cjs/components/button/button-group-section/button-group-section.cjs +55 -50
  6. package/cjs/components/button/button-group-section/button-group-section.cjs.map +1 -1
  7. package/cjs/components/button/button-group-section/button-group-section.utils.cjs +25 -0
  8. package/cjs/components/button/button-group-section/button-group-section.utils.cjs.map +1 -0
  9. package/cjs/components/button/index.cjs +8 -4
  10. package/cjs/components/button/index.cjs.map +1 -1
  11. package/cjs/components/group/group.cjs +78 -62
  12. package/cjs/components/group/group.cjs.map +1 -1
  13. package/cjs/components/group/group.utils.cjs +14 -0
  14. package/cjs/components/group/group.utils.cjs.map +1 -0
  15. package/cjs/components/group/index.cjs +5 -1
  16. package/cjs/components/group/index.cjs.map +1 -1
  17. package/cjs/components/loader/index.cjs +5 -1
  18. package/cjs/components/loader/index.cjs.map +1 -1
  19. package/cjs/components/loader/loader.cjs +50 -41
  20. package/cjs/components/loader/loader.cjs.map +1 -1
  21. package/cjs/components/loader/loader.utils.cjs +12 -0
  22. package/cjs/components/loader/loader.utils.cjs.map +1 -0
  23. package/cjs/components/simple-grid/index.cjs +4 -1
  24. package/cjs/components/simple-grid/index.cjs.map +1 -1
  25. package/cjs/components/simple-grid/simple-grid.cjs +46 -21
  26. package/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
  27. package/cjs/components/stack/index.cjs +14 -0
  28. package/cjs/components/stack/index.cjs.map +1 -0
  29. package/cjs/components/stack/stack.cjs +406 -0
  30. package/cjs/components/stack/stack.cjs.map +1 -0
  31. package/cjs/components/stack/stack.module.cjs +7 -0
  32. package/cjs/components/stack/stack.module.cjs.map +1 -0
  33. package/cjs/components/stack/stack.utils.cjs +12 -0
  34. package/cjs/components/stack/stack.utils.cjs.map +1 -0
  35. package/cjs/components/text/index.cjs +5 -1
  36. package/cjs/components/text/index.cjs.map +1 -1
  37. package/cjs/components/text/text.cjs +46 -39
  38. package/cjs/components/text/text.cjs.map +1 -1
  39. package/cjs/components/text/text.utils.cjs +15 -0
  40. package/cjs/components/text/text.utils.cjs.map +1 -0
  41. package/cjs/components/unstyled-button/index.cjs +4 -1
  42. package/cjs/components/unstyled-button/index.cjs.map +1 -1
  43. package/cjs/components/unstyled-button/unstyled-button.cjs +6 -1
  44. package/cjs/components/unstyled-button/unstyled-button.cjs.map +1 -1
  45. package/cjs/index.cjs +6 -3
  46. package/cjs/index.cjs.map +1 -1
  47. package/esm/components/button/button-group/button-group.mjs +61 -35
  48. package/esm/components/button/button-group/button-group.mjs.map +1 -1
  49. package/esm/components/button/button-group/button-group.utils.mjs +9 -0
  50. package/esm/components/button/button-group/button-group.utils.mjs.map +1 -0
  51. package/esm/components/button/button-group-section/button-group-section.mjs +55 -50
  52. package/esm/components/button/button-group-section/button-group-section.mjs.map +1 -1
  53. package/esm/components/button/button-group-section/button-group-section.utils.mjs +26 -0
  54. package/esm/components/button/button-group-section/button-group-section.utils.mjs.map +1 -0
  55. package/esm/components/button/index.mjs +8 -4
  56. package/esm/components/button/index.mjs.map +1 -1
  57. package/esm/components/group/group.mjs +78 -62
  58. package/esm/components/group/group.mjs.map +1 -1
  59. package/esm/components/group/group.utils.mjs +15 -0
  60. package/esm/components/group/group.utils.mjs.map +1 -0
  61. package/esm/components/group/index.mjs +4 -2
  62. package/esm/components/group/index.mjs.map +1 -1
  63. package/esm/components/loader/index.mjs +4 -1
  64. package/esm/components/loader/index.mjs.map +1 -1
  65. package/esm/components/loader/loader.mjs +50 -41
  66. package/esm/components/loader/loader.mjs.map +1 -1
  67. package/esm/components/loader/loader.utils.mjs +13 -0
  68. package/esm/components/loader/loader.utils.mjs.map +1 -0
  69. package/esm/components/simple-grid/index.mjs +3 -2
  70. package/esm/components/simple-grid/index.mjs.map +1 -1
  71. package/esm/components/simple-grid/simple-grid.mjs +47 -22
  72. package/esm/components/simple-grid/simple-grid.mjs.map +1 -1
  73. package/esm/components/stack/index.mjs +11 -0
  74. package/esm/components/stack/index.mjs.map +1 -0
  75. package/esm/components/stack/stack.mjs +406 -0
  76. package/esm/components/stack/stack.mjs.map +1 -0
  77. package/esm/components/stack/stack.module.mjs +7 -0
  78. package/esm/components/stack/stack.module.mjs.map +1 -0
  79. package/esm/components/stack/stack.utils.mjs +13 -0
  80. package/esm/components/stack/stack.utils.mjs.map +1 -0
  81. package/esm/components/text/index.mjs +4 -2
  82. package/esm/components/text/index.mjs.map +1 -1
  83. package/esm/components/text/text.mjs +46 -39
  84. package/esm/components/text/text.mjs.map +1 -1
  85. package/esm/components/text/text.utils.mjs +16 -0
  86. package/esm/components/text/text.utils.mjs.map +1 -0
  87. package/esm/components/unstyled-button/index.mjs +3 -2
  88. package/esm/components/unstyled-button/index.mjs.map +1 -1
  89. package/esm/components/unstyled-button/unstyled-button.mjs +7 -2
  90. package/esm/components/unstyled-button/unstyled-button.mjs.map +1 -1
  91. package/esm/index.mjs +3 -1
  92. package/esm/index.mjs.map +1 -1
  93. package/lib/components/button/button-group/button-group.utils.d.ts +6 -0
  94. package/lib/components/button/button-group-section/button-group-section.utils.d.ts +7 -0
  95. package/lib/components/button/index.d.ts +5 -5
  96. package/lib/components/group/group.utils.d.ts +7 -0
  97. package/lib/components/group/index.d.ts +3 -2
  98. package/lib/components/index.d.ts +1 -0
  99. package/lib/components/loader/index.d.ts +3 -2
  100. package/lib/components/loader/loader.utils.d.ts +9 -0
  101. package/lib/components/simple-grid/index.d.ts +3 -2
  102. package/lib/components/stack/index.d.ts +6 -0
  103. package/lib/components/stack/stack.types.d.ts +29 -0
  104. package/lib/components/stack/stack.utils.d.ts +6 -0
  105. package/lib/components/text/index.d.ts +3 -2
  106. package/lib/components/text/text.utils.d.ts +8 -0
  107. package/lib/components/unstyled-button/index.d.ts +3 -2
  108. package/package.json +1 -1
  109. package/styles/stack.css +7 -0
  110. package/styles/stack.layer.css +8 -0
  111. package/styles.css +8 -0
  112. package/styles.layer.css +8 -0
  113. package/cjs/components/loader/use-loader.cjs +0 -10
  114. package/cjs/components/loader/use-loader.cjs.map +0 -1
  115. package/esm/components/loader/use-loader.mjs +0 -10
  116. package/esm/components/loader/use-loader.mjs.map +0 -1
@@ -0,0 +1,406 @@
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_stack_module = require("./stack.module.cjs");
7
+ const require_stack_utils = require("./stack.utils.cjs");
8
+ let vue = require("vue");
9
+ //#region packages/@cck-ui/core/src/components/stack/stack.vue
10
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
11
+ name: "CStack",
12
+ __name: "stack",
13
+ props: {
14
+ gap: {
15
+ type: null,
16
+ required: false
17
+ },
18
+ align: {
19
+ type: null,
20
+ required: false
21
+ },
22
+ justify: {
23
+ type: null,
24
+ required: false
25
+ },
26
+ className: {
27
+ type: String,
28
+ required: false
29
+ },
30
+ style: {
31
+ type: [
32
+ Object,
33
+ Function,
34
+ Array
35
+ ],
36
+ required: false,
37
+ skipCheck: true
38
+ },
39
+ __vars: {
40
+ type: null,
41
+ required: false
42
+ },
43
+ __size: {
44
+ type: String,
45
+ required: false
46
+ },
47
+ hiddenFrom: {
48
+ type: null,
49
+ required: false
50
+ },
51
+ visibleFrom: {
52
+ type: null,
53
+ required: false
54
+ },
55
+ lightHidden: {
56
+ type: Boolean,
57
+ required: false
58
+ },
59
+ darkHidden: {
60
+ type: Boolean,
61
+ required: false
62
+ },
63
+ mod: {
64
+ type: [
65
+ Object,
66
+ String,
67
+ Array
68
+ ],
69
+ required: false
70
+ },
71
+ m: {
72
+ type: null,
73
+ required: false
74
+ },
75
+ my: {
76
+ type: null,
77
+ required: false
78
+ },
79
+ mx: {
80
+ type: null,
81
+ required: false
82
+ },
83
+ mt: {
84
+ type: null,
85
+ required: false
86
+ },
87
+ mb: {
88
+ type: null,
89
+ required: false
90
+ },
91
+ ms: {
92
+ type: null,
93
+ required: false
94
+ },
95
+ me: {
96
+ type: null,
97
+ required: false
98
+ },
99
+ mis: {
100
+ type: null,
101
+ required: false
102
+ },
103
+ mie: {
104
+ type: null,
105
+ required: false
106
+ },
107
+ ml: {
108
+ type: null,
109
+ required: false
110
+ },
111
+ mr: {
112
+ type: null,
113
+ required: false
114
+ },
115
+ p: {
116
+ type: null,
117
+ required: false
118
+ },
119
+ py: {
120
+ type: null,
121
+ required: false
122
+ },
123
+ px: {
124
+ type: null,
125
+ required: false
126
+ },
127
+ pt: {
128
+ type: null,
129
+ required: false
130
+ },
131
+ pb: {
132
+ type: null,
133
+ required: false
134
+ },
135
+ ps: {
136
+ type: null,
137
+ required: false
138
+ },
139
+ pe: {
140
+ type: null,
141
+ required: false
142
+ },
143
+ pis: {
144
+ type: null,
145
+ required: false
146
+ },
147
+ pie: {
148
+ type: null,
149
+ required: false
150
+ },
151
+ pl: {
152
+ type: null,
153
+ required: false
154
+ },
155
+ pr: {
156
+ type: null,
157
+ required: false
158
+ },
159
+ bd: {
160
+ type: null,
161
+ required: false
162
+ },
163
+ bdrs: {
164
+ type: null,
165
+ required: false
166
+ },
167
+ bg: {
168
+ type: null,
169
+ required: false
170
+ },
171
+ c: {
172
+ type: null,
173
+ required: false
174
+ },
175
+ opacity: {
176
+ type: [
177
+ String,
178
+ Object,
179
+ Number
180
+ ],
181
+ required: false
182
+ },
183
+ ff: {
184
+ type: [String, Object],
185
+ required: false
186
+ },
187
+ fz: {
188
+ type: null,
189
+ required: false
190
+ },
191
+ fw: {
192
+ type: null,
193
+ required: false
194
+ },
195
+ lts: {
196
+ type: null,
197
+ required: false
198
+ },
199
+ ta: {
200
+ type: [String, Object],
201
+ required: false
202
+ },
203
+ lh: {
204
+ type: null,
205
+ required: false
206
+ },
207
+ fs: {
208
+ type: null,
209
+ required: false
210
+ },
211
+ tt: {
212
+ type: [String, Object],
213
+ required: false
214
+ },
215
+ td: {
216
+ type: null,
217
+ required: false
218
+ },
219
+ w: {
220
+ type: null,
221
+ required: false
222
+ },
223
+ miw: {
224
+ type: null,
225
+ required: false
226
+ },
227
+ maw: {
228
+ type: null,
229
+ required: false
230
+ },
231
+ h: {
232
+ type: null,
233
+ required: false
234
+ },
235
+ mih: {
236
+ type: null,
237
+ required: false
238
+ },
239
+ mah: {
240
+ type: null,
241
+ required: false
242
+ },
243
+ bgsz: {
244
+ type: null,
245
+ required: false
246
+ },
247
+ bgp: {
248
+ type: null,
249
+ required: false
250
+ },
251
+ bgr: {
252
+ type: null,
253
+ required: false
254
+ },
255
+ bga: {
256
+ type: null,
257
+ required: false
258
+ },
259
+ pos: {
260
+ type: [String, Object],
261
+ required: false
262
+ },
263
+ top: {
264
+ type: null,
265
+ required: false
266
+ },
267
+ left: {
268
+ type: null,
269
+ required: false
270
+ },
271
+ bottom: {
272
+ type: null,
273
+ required: false
274
+ },
275
+ right: {
276
+ type: null,
277
+ required: false
278
+ },
279
+ inset: {
280
+ type: null,
281
+ required: false
282
+ },
283
+ display: {
284
+ type: null,
285
+ required: false
286
+ },
287
+ flex: {
288
+ type: null,
289
+ required: false
290
+ },
291
+ unstyled: {
292
+ type: Boolean,
293
+ required: false
294
+ },
295
+ variant: {
296
+ type: null,
297
+ required: false
298
+ },
299
+ classNames: {
300
+ type: null,
301
+ required: false
302
+ },
303
+ styles: {
304
+ type: null,
305
+ required: false
306
+ },
307
+ vars: {
308
+ type: Function,
309
+ required: false
310
+ },
311
+ attributes: {
312
+ type: null,
313
+ required: false
314
+ }
315
+ },
316
+ setup(__props, { expose: __expose }) {
317
+ const _root = (0, vue.ref)(null);
318
+ const attrs = (0, vue.useAttrs)();
319
+ const rawProps = __props;
320
+ const defaultProps = {
321
+ gap: "md",
322
+ align: "stretch",
323
+ justify: "flex-start"
324
+ };
325
+ const props = require_use_component_props.useComponentProps({
326
+ component: "CStack",
327
+ defaultProps,
328
+ props: rawProps
329
+ });
330
+ const knownProps = [
331
+ "classNames",
332
+ "className",
333
+ "style",
334
+ "styles",
335
+ "unstyled",
336
+ "vars",
337
+ "align",
338
+ "justify",
339
+ "gap",
340
+ "variant",
341
+ "attributes"
342
+ ];
343
+ const getStyles = require_use_styles.useStyles({
344
+ name: "Stack",
345
+ props: {
346
+ ...props.value,
347
+ ...attrs
348
+ },
349
+ classes: require_stack_module.default,
350
+ className: props.value.className,
351
+ style: props.value.style,
352
+ classNames: props.value.classNames,
353
+ styles: props.value.styles,
354
+ unstyled: props.value.unstyled,
355
+ attributes: props.value.attributes,
356
+ vars: props.value.vars,
357
+ varsResolver: require_stack_utils.varsResolver
358
+ });
359
+ const rootAttrs = (0, vue.computed)(() => getStyles("root"));
360
+ const mergedAttrs = (0, vue.computed)(() => {
361
+ const others = {};
362
+ const propsValue = props.value;
363
+ Object.keys(propsValue).forEach((key) => {
364
+ if (!knownProps.includes(key)) others[key] = propsValue[key];
365
+ });
366
+ const userMod = props.value.mod;
367
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
368
+ return {
369
+ ...others,
370
+ mod: mergedMod,
371
+ ...rootAttrs.value
372
+ };
373
+ });
374
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
375
+ const __returned__ = {
376
+ _root,
377
+ attrs,
378
+ rawProps,
379
+ defaultProps,
380
+ props,
381
+ knownProps,
382
+ getStyles,
383
+ rootAttrs,
384
+ mergedAttrs,
385
+ get CBox() {
386
+ return require_index.CBox;
387
+ }
388
+ };
389
+ Object.defineProperty(__returned__, "__isScriptSetup", {
390
+ enumerable: false,
391
+ value: true
392
+ });
393
+ return __returned__;
394
+ }
395
+ });
396
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
397
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs, { variant: $setup.props.variant }), {
398
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
399
+ _: 3
400
+ }, 16, ["variant"]);
401
+ }
402
+ var stack_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/stack/stack.vue"]]);
403
+ //#endregion
404
+ exports.default = stack_default;
405
+
406
+ //# sourceMappingURL=stack.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.cjs","names":[],"sources":["../../../src/components/stack/stack.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\" :variant=\"props.variant\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { StackFactory, StackProps } from './stack.types'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport classes from './stack.module.css'\nimport { varsResolver } from './stack.utils'\n\ndefineOptions({\n name: 'CStack',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<StackProps>()\n\nconst defaultProps = {\n gap: 'md',\n align: 'stretch',\n justify: 'flex-start',\n} satisfies Partial<StackProps>\n\nconst props = useComponentProps({\n component: 'CStack',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'align',\n 'justify',\n 'gap',\n 'variant',\n 'attributes',\n]\n\nconst getStyles = useStyles<StackFactory>({\n name: 'Stack',\n props: { ...props.value, ...attrs } as StackProps,\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 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 = [...(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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,WAAW;EAEjB,MAAM,eAAe;GACnB,KAAK;GACL,OAAO;GACP,SAAS;EACX;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;EACF;EAEA,MAAM,YAAY,mBAAA,UAAwB;GACxC,MAAM;GACN,OAAO;IAAE,GAAG,MAAM;IAAO,GAAG;GAAM;GAClC,SAAA,qBAAA;GACA,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;GACpB,UAAU,MAAM,MAAM;GACtB,YAAY,MAAM,MAAM;GACxB,MAAM,MAAM,MAAM;GAClB,cAAA,oBAAA;EACF,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,CAAC,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,CAAE;GACpF,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;;;;;;;;;;;;;;;;;;;;;;;mDA7ES,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAFD,KAAI,QAAO,GAAS,OAAA,aAAW,EAAG,SAAS,OAAA,MAAM,QAAA,CAAA,GAAA;kCAC9C,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/stack/stack.module.css
3
+ var stack_module_default = { "root": "m_f6a13507" };
4
+ //#endregion
5
+ exports.default = stack_module_default;
6
+
7
+ //# sourceMappingURL=stack.module.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.module.cjs","names":[],"sources":["../../../src/components/stack/stack.module.css"],"sourcesContent":[".root {\n display: flex;\n flex-direction: column;\n align-items: var(--stack-align, stretch);\n justify-content: var(--stack-justify, flex-start);\n gap: var(--stack-gap, var(--c-spacing-md));\n}\n"],"mappings":";;AAAA,IAAA,uBAAe,EAAC,QAAO,aAAY"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ const require_get_size = require("../../core/utils/get-size/get-size.cjs");
3
+ //#region packages/@cck-ui/core/src/components/stack/stack.utils.ts
4
+ const varsResolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs").createVarsResolver((_, { gap, align, justify }) => ({ root: {
5
+ "--stack-align": align,
6
+ "--stack-gap": require_get_size.getSpacing(gap),
7
+ "--stack-justify": justify
8
+ } }));
9
+ //#endregion
10
+ exports.varsResolver = varsResolver;
11
+
12
+ //# sourceMappingURL=stack.utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.utils.cjs","names":["createVarsResolver","getSpacing"],"sources":["../../../src/components/stack/stack.utils.ts"],"sourcesContent":["import { createVarsResolver, getSpacing } from '../../core'\nimport { StackFactory } from './stack.types'\n\nexport const varsResolver = createVarsResolver<StackFactory>((_, { gap, align, justify }) => ({\n root: {\n '--stack-align': align,\n '--stack-gap': getSpacing(gap),\n '--stack-justify': justify,\n },\n}))\n"],"mappings":";;;AAGA,MAAa,4FAAeA,CAAAA,CAAAA,oBAAkC,GAAG,EAAE,KAAK,OAAO,eAAe,EAC5F,MAAM;CACJ,iBAAiB;CACjB,eAAeC,iBAAAA,WAAW,GAAG;CAC7B,mBAAmB;AACrB,EACF,EAAE"}
@@ -1,8 +1,12 @@
1
1
  "use client";
2
2
  const require_install = require("../../core/utils/vue/install.cjs");
3
+ const require_statics = require("../../core/utils/vue/statics.cjs");
4
+ const require_text_module = require("./text.module.cjs");
5
+ const require_text_utils = require("./text.utils.cjs");
3
6
  const require_text = require("./text.cjs");
4
7
  //#region packages/@cck-ui/core/src/components/text/index.ts
5
- const CText = require_install.withInstall(require_text.default);
8
+ const TextWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withVarsResolver(require_statics.withClasses(require_text.default, require_text_module.default), require_text_utils.varsResolver)));
9
+ const CText = require_install.withInstall(TextWithStatic);
6
10
  //#endregion
7
11
  exports.CText = CText;
8
12
  exports.default = CText;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["withInstall","Text"],"sources":["../../../src/components/text/index.ts"],"sourcesContent":["import { SFCWithInstall, withInstall } from '../../core'\nimport Text from './text.vue'\n\nexport const CText: SFCWithInstall<typeof Text> = withInstall(Text)\nexport default CText\n\nexport * from './text.types'\n"],"mappings":";;;;AAGA,MAAa,QAAqCA,gBAAAA,YAAYC,aAAAA,OAAI"}
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withVarsResolver","withClasses","Text","classes","varsResolver","withInstall"],"sources":["../../../src/components/text/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n withVarsResolver,\n} from '../../core'\nimport Text from './text.vue'\nimport classes from './text.module.css'\nimport { varsResolver } from './text.utils'\n\nconst TextWithStatic = withPropsFactory(\n withExtend(withVarsResolver(withClasses(Text, classes), varsResolver))\n)\n\nexport const CText: SFCWithInstallAndClasses<typeof Text, typeof classes> =\n withInstall(TextWithStatic)\n\nexport default CText\n\nexport * from './text.types'\n"],"mappings":";;;;;;;AAYA,MAAM,iBAAiBA,gBAAAA,iBACrBC,gBAAAA,WAAWC,gBAAAA,iBAAiBC,gBAAAA,YAAYC,aAAAA,SAAMC,oBAAAA,OAAO,GAAGC,mBAAAA,YAAY,CAAC,CACvE;AAEA,MAAa,QACXC,gBAAAA,YAAY,cAAc"}
@@ -1,11 +1,10 @@
1
1
  "use client";
2
- const require_get_size = require("../../core/utils/get-size/get-size.cjs");
3
- const require_get_gradient = require("../../core/config-provider/color-functions/get-gradient/get-gradient.cjs");
4
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");
5
4
  const require_index = require("../../core/box/index.cjs");
6
- const require_create_vars_resolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs");
7
5
  const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
8
6
  const require_text_module = require("./text.module.cjs");
7
+ const require_text_utils = require("./text.utils.cjs");
9
8
  let vue = require("vue");
10
9
  //#region packages/@cck-ui/core/src/components/text/text.vue
11
10
  const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
@@ -339,8 +338,14 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
339
338
  }
340
339
  },
341
340
  setup(__props, { expose: __expose }) {
342
- __expose();
343
- const props = __props;
341
+ const _root = (0, vue.ref)(null);
342
+ const attrs = (0, vue.useAttrs)();
343
+ const rawProps = __props;
344
+ const props = require_use_component_props.useComponentProps({
345
+ component: "CText",
346
+ defaultProps: {},
347
+ props: rawProps
348
+ });
344
349
  function getTextTruncate(truncate) {
345
350
  if (truncate === "start") return "start";
346
351
  if (truncate === "end" || truncate) return "end";
@@ -366,48 +371,52 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
366
371
  "attributes"
367
372
  ];
368
373
  const modList = (0, vue.computed)(() => [{
369
- "data-truncate": getTextTruncate(props.truncate),
370
- "data-line-clamp": typeof props.lineClamp === "number",
371
- "data-inline": props.inline,
372
- "data-inherit": props.inherit
373
- }, props.mod]);
374
- const varsResolver = require_create_vars_resolver.createVarsResolver((theme, { gradient, lineClamp, size, textWrap, variant }) => ({ root: {
375
- "--text-fz": require_get_size.getFontSize(size),
376
- "--text-lh": require_get_size.getLineHeight(size),
377
- "--text-gradient": variant === "gradient" ? require_get_gradient.getGradient(gradient, theme) : void 0,
378
- "--text-line-clamp": typeof lineClamp === "number" ? lineClamp.toString() : void 0,
379
- "--text-text-wrap": textWrap
380
- } }));
374
+ "data-truncate": getTextTruncate(props.value.truncate),
375
+ "data-line-clamp": typeof props.value.lineClamp === "number",
376
+ "data-inline": props.value.inline,
377
+ "data-inherit": props.value.inherit
378
+ }]);
381
379
  const getStyles = require_use_styles.useStyles({
382
- name: ["Text", props.__staticSelector],
383
- props,
380
+ name: ["Text", props.value.__staticSelector],
381
+ props: {
382
+ ...props.value,
383
+ ...attrs
384
+ },
384
385
  classes: require_text_module.default,
385
- className: props.className,
386
- style: props.style,
387
- classNames: props.classNames,
388
- styles: props.styles,
389
- unstyled: props.unstyled,
390
- attributes: props.attributes,
391
- vars: props.vars,
392
- varsResolver
386
+ className: props.value.className,
387
+ style: props.value.style,
388
+ classNames: props.value.classNames,
389
+ styles: props.value.styles,
390
+ unstyled: props.value.unstyled,
391
+ attributes: props.value.attributes,
392
+ vars: props.value.vars,
393
+ varsResolver: require_text_utils.varsResolver
393
394
  });
394
395
  const rootAttrs = (0, vue.computed)(() => getStyles("root", { focusable: true }));
396
+ const mergedAttrs = (0, vue.computed)(() => {
397
+ const others = {};
398
+ const propsValue = props.value;
399
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
400
+ const userMod = props.value.mod;
401
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean), ...modList.value || []];
402
+ return {
403
+ ...others,
404
+ mod: mergedMod,
405
+ ...rootAttrs.value
406
+ };
407
+ });
408
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
395
409
  const __returned__ = {
410
+ _root,
411
+ attrs,
412
+ rawProps,
396
413
  props,
397
414
  getTextTruncate,
398
415
  knownProps,
399
416
  modList,
400
- varsResolver,
401
417
  getStyles,
402
418
  rootAttrs,
403
- mergedAttrs: (0, vue.computed)(() => {
404
- const others = {};
405
- for (const key in props) if (!knownProps.includes(key)) others[key] = props[key];
406
- return {
407
- ...others,
408
- ...rootAttrs.value
409
- };
410
- }),
419
+ mergedAttrs,
411
420
  get CBox() {
412
421
  return require_index.CBox;
413
422
  }
@@ -420,8 +429,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
420
429
  }
421
430
  });
422
431
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
423
- return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)($setup.mergedAttrs, {
424
- mod: $setup.modList,
432
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs, {
425
433
  size: $setup.props.size,
426
434
  tag: $setup.props.span ? "span" : "p",
427
435
  variant: $setup.props.variant
@@ -429,7 +437,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
429
437
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
430
438
  _: 3
431
439
  }, 16, [
432
- "mod",
433
440
  "size",
434
441
  "tag",
435
442
  "variant"
@@ -1 +1 @@
1
- {"version":3,"file":"text.cjs","names":[],"sources":["../../../src/components/text/text.vue"],"sourcesContent":["<template>\n <c-box\n v-bind=\"mergedAttrs\"\n :mod=\"modList\"\n :size=\"props.size\"\n :tag=\"props.span ? 'span' : 'p'\"\n :variant=\"props.variant\"\n >\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport type { TextFactory, TextProps, TextTruncate } from './text.types.ts'\nimport classes from './text.module.css'\nimport {\n createVarsResolver,\n getFontSize,\n getGradient,\n getLineHeight,\n useStyles,\n CBox,\n} from '../../core'\n\ndefineOptions({\n name: 'CText',\n})\n\nconst props = defineProps<TextProps>()\n\nfunction getTextTruncate(truncate: TextTruncate | undefined) {\n if (truncate === 'start') {\n return 'start'\n }\n\n if (truncate === 'end' || truncate) {\n return 'end'\n }\n\n return undefined\n}\n\nconst knownProps = [\n 'lineClamp',\n 'truncate',\n 'inline',\n 'inherit',\n 'gradient',\n 'span',\n 'textWrap',\n '__staticSelector',\n 'vars',\n 'className',\n 'style',\n 'classNames',\n 'styles',\n 'unstyled',\n 'variant',\n 'mod',\n 'size',\n 'attributes',\n]\n\nconst modList = computed(() => [\n {\n 'data-truncate': getTextTruncate(props.truncate),\n 'data-line-clamp': typeof props.lineClamp === 'number',\n 'data-inline': props.inline,\n 'data-inherit': props.inherit,\n },\n props.mod,\n])\n\nconst varsResolver = createVarsResolver<TextFactory>(\n (theme, { gradient, lineClamp, size, textWrap, variant }) => ({\n root: {\n '--text-fz': getFontSize(size),\n '--text-lh': getLineHeight(size),\n '--text-gradient': variant === 'gradient' ? getGradient(gradient, theme) : undefined,\n '--text-line-clamp': typeof lineClamp === 'number' ? lineClamp.toString() : undefined,\n '--text-text-wrap': textWrap,\n },\n })\n)\n\nconst getStyles = useStyles<TextFactory>({\n name: ['Text', props.__staticSelector],\n props,\n classes,\n className: props.className,\n style: props.style,\n classNames: props.classNames,\n styles: props.styles,\n unstyled: props.unstyled,\n attributes: props.attributes,\n vars: props.vars,\n varsResolver,\n})\n\nconst rootAttrs = computed(() => getStyles('root', { focusable: true }))\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n for (const key in props) {\n if (!knownProps.includes(key)) {\n others[key] = props[key as keyof typeof props]\n }\n }\n return { ...others, ...rootAttrs.value }\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA,MAAM,QAAQ;EAEd,SAAS,gBAAgB,UAAoC;GAC3D,IAAI,aAAa,SACf,OAAO;GAGT,IAAI,aAAa,SAAS,UACxB,OAAO;EAIX;EAEA,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,WAAA,GAAA,IAAA,SAAA,OAAyB,CAC7B;GACE,iBAAiB,gBAAgB,MAAM,QAAQ;GAC/C,mBAAmB,OAAO,MAAM,cAAc;GAC9C,eAAe,MAAM;GACrB,gBAAgB,MAAM;EACxB,GACA,MAAM,GACR,CAAC;EAED,MAAM,eAAe,6BAAA,oBAClB,OAAO,EAAE,UAAU,WAAW,MAAM,UAAU,eAAe,EAC5D,MAAM;GACJ,aAAa,iBAAA,YAAY,IAAI;GAC7B,aAAa,iBAAA,cAAc,IAAI;GAC/B,mBAAmB,YAAY,aAAa,qBAAA,YAAY,UAAU,KAAK,IAAI,KAAA;GAC3E,qBAAqB,OAAO,cAAc,WAAW,UAAU,SAAS,IAAI,KAAA;GAC5E,oBAAoB;EACtB,EACF,EACF;EAEA,MAAM,YAAY,mBAAA,UAAuB;GACvC,MAAM,CAAC,QAAQ,MAAM,gBAAgB;GACrC;GACA,SAAA,oBAAA;GACA,WAAW,MAAM;GACjB,OAAO,MAAM;GACb,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,UAAU,MAAM;GAChB,YAAY,MAAM;GAClB,MAAM,MAAM;GACZ;EACF,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC,CAAC;;;;;;;;;wCAEpC;IACjC,MAAM,SAA8B,CAAC;IACrC,KAAK,MAAM,OAAO,OAChB,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,MAAM;IAGxB,OAAO;KAAE,GAAG;KAAQ,GAAG,UAAU;IAAM;GACzC,CAAA;;;;;;;;;;;;;mDArGU,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,OAPE,aAAW;EAClB,KAAK,OAAA;EACL,MAAM,OAAA,MAAM;EACZ,KAAK,OAAA,MAAM,OAAI,SAAA;EACf,SAAS,OAAA,MAAM;;kCAER,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"text.cjs","names":[],"sources":["../../../src/components/text/text.vue"],"sourcesContent":["<template>\n <c-box\n ref=\"_root\"\n v-bind=\"mergedAttrs\"\n :size=\"props.size\"\n :tag=\"props.span ? 'span' : 'p'\"\n :variant=\"props.variant\"\n >\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport type { TextFactory, TextProps, TextTruncate } from './text.types.ts'\nimport classes from './text.module.css'\nimport { useStyles, CBox, useComponentProps } from '../../core'\nimport { varsResolver } from './text.utils.js'\n\ndefineOptions({\n name: 'CText',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<TextProps>()\n\nconst props = useComponentProps({\n component: 'CText',\n defaultProps: {},\n props: rawProps,\n})\n\nfunction getTextTruncate(truncate: TextTruncate | undefined) {\n if (truncate === 'start') {\n return 'start'\n }\n\n if (truncate === 'end' || truncate) {\n return 'end'\n }\n\n return undefined\n}\n\nconst knownProps = [\n 'lineClamp',\n 'truncate',\n 'inline',\n 'inherit',\n 'gradient',\n 'span',\n 'textWrap',\n '__staticSelector',\n 'vars',\n 'className',\n 'style',\n 'classNames',\n 'styles',\n 'unstyled',\n 'variant',\n 'mod',\n 'size',\n 'attributes',\n]\n\nconst modList = computed(() => [\n {\n 'data-truncate': getTextTruncate(props.value.truncate),\n 'data-line-clamp': typeof props.value.lineClamp === 'number',\n 'data-inline': props.value.inline,\n 'data-inherit': props.value.inherit,\n },\n])\n\nconst getStyles = useStyles<TextFactory>({\n name: ['Text', props.value.__staticSelector],\n props: { ...props.value, ...attrs } as TextProps,\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 rootAttrs = computed(() => getStyles('root', { focusable: true }))\n\nconst mergedAttrs = 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 = [\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBA,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,WAAW;EAEjB,MAAM,QAAQ,4BAAA,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,SAAS,gBAAgB,UAAoC;GAC3D,IAAI,aAAa,SACf,OAAO;GAGT,IAAI,aAAa,SAAS,UACxB,OAAO;EAIX;EAEA,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,WAAA,GAAA,IAAA,SAAA,OAAyB,CAC7B;GACE,iBAAiB,gBAAgB,MAAM,MAAM,QAAQ;GACrD,mBAAmB,OAAO,MAAM,MAAM,cAAc;GACpD,eAAe,MAAM,MAAM;GAC3B,gBAAgB,MAAM,MAAM;EAC9B,CACF,CAAC;EAED,MAAM,YAAY,mBAAA,UAAuB;GACvC,MAAM,CAAC,QAAQ,MAAM,MAAM,gBAAgB;GAC3C,OAAO;IAAE,GAAG,MAAM;IAAO,GAAG;GAAM;GAClC,SAAA,oBAAA;GACA,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;GACpB,UAAU,MAAM,MAAM;GACtB,YAAY,MAAM,MAAM;GACxB,MAAM,MAAM,MAAM;GAClB,cAAA,mBAAA;EACF,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC,CAAC;EAEvE,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,KAAK,MAAM,OAAO,YAChB,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAG7B,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAChB,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,GAC/D,GAAI,QAAQ,SAAS,CAAC,CACxB;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;;;;;;;;;;;;;;;;;;;;;;;;mDAtGS,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAPN,KAAI,QAAO,GACH,OAAA,aAAW;EAClB,MAAM,OAAA,MAAM;EACZ,KAAK,OAAA,MAAM,OAAI,SAAA;EACf,SAAS,OAAA,MAAM;;kCAER,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ const require_get_size = require("../../core/utils/get-size/get-size.cjs");
3
+ const require_get_gradient = require("../../core/config-provider/color-functions/get-gradient/get-gradient.cjs");
4
+ //#region packages/@cck-ui/core/src/components/text/text.utils.ts
5
+ const varsResolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs").createVarsResolver((theme, { gradient, lineClamp, size, textWrap, variant }) => ({ root: {
6
+ "--text-fz": require_get_size.getFontSize(size),
7
+ "--text-lh": require_get_size.getLineHeight(size),
8
+ "--text-gradient": variant === "gradient" ? require_get_gradient.getGradient(gradient, theme) : void 0,
9
+ "--text-line-clamp": typeof lineClamp === "number" ? lineClamp.toString() : void 0,
10
+ "--text-text-wrap": textWrap
11
+ } }));
12
+ //#endregion
13
+ exports.varsResolver = varsResolver;
14
+
15
+ //# sourceMappingURL=text.utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.utils.cjs","names":["createVarsResolver","getFontSize","getLineHeight","getGradient"],"sources":["../../../src/components/text/text.utils.ts"],"sourcesContent":["import { createVarsResolver, getFontSize, getGradient, getLineHeight } from '../../core'\nimport { TextFactory } from './text.types'\n\nexport const varsResolver = createVarsResolver<TextFactory>(\n (theme, { gradient, lineClamp, size, textWrap, variant }) => ({\n root: {\n '--text-fz': getFontSize(size),\n '--text-lh': getLineHeight(size),\n '--text-gradient': variant === 'gradient' ? getGradient(gradient, theme) : undefined,\n '--text-line-clamp': typeof lineClamp === 'number' ? lineClamp.toString() : undefined,\n '--text-text-wrap': textWrap,\n },\n })\n)\n"],"mappings":";;;;AAGA,MAAa,4FAAeA,CAAAA,CAAAA,oBACzB,OAAO,EAAE,UAAU,WAAW,MAAM,UAAU,eAAe,EAC5D,MAAM;CACJ,aAAaC,iBAAAA,YAAY,IAAI;CAC7B,aAAaC,iBAAAA,cAAc,IAAI;CAC/B,mBAAmB,YAAY,aAAaC,qBAAAA,YAAY,UAAU,KAAK,IAAI,KAAA;CAC3E,qBAAqB,OAAO,cAAc,WAAW,UAAU,SAAS,IAAI,KAAA;CAC5E,oBAAoB;AACtB,EACF,EACF"}
@@ -1,8 +1,11 @@
1
1
  "use client";
2
2
  const require_install = require("../../core/utils/vue/install.cjs");
3
+ const require_statics = require("../../core/utils/vue/statics.cjs");
4
+ const require_unstyled_button_module = require("./unstyled-button.module.cjs");
3
5
  const require_unstyled_button = require("./unstyled-button.cjs");
4
6
  //#region packages/@cck-ui/core/src/components/unstyled-button/index.ts
5
- const UnstyledButton = require_install.withInstall(require_unstyled_button.default);
7
+ const UnstyledButtonWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_unstyled_button.default, require_unstyled_button_module.default)));
8
+ const UnstyledButton = require_install.withInstall(UnstyledButtonWithStatic);
6
9
  //#endregion
7
10
  exports.UnstyledButton = UnstyledButton;
8
11
  exports.default = UnstyledButton;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["withInstall","_UnstyledButton"],"sources":["../../../src/components/unstyled-button/index.ts"],"sourcesContent":["import { SFCWithInstall, withInstall } from '../../core'\nimport _UnstyledButton from './unstyled-button.vue'\n\nexport const UnstyledButton: SFCWithInstall<typeof _UnstyledButton> = withInstall(_UnstyledButton)\nexport default UnstyledButton\n\nexport * from './unstyled-button.types'\n"],"mappings":";;;;AAGA,MAAa,iBAAyDA,gBAAAA,YAAYC,wBAAAA,OAAe"}
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withClasses","_UnstyledButton","classes","withInstall"],"sources":["../../../src/components/unstyled-button/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n} from '../../core'\nimport _UnstyledButton from './unstyled-button.vue'\nimport classes from './unstyled-button.module.css'\n\nconst UnstyledButtonWithStatic = withPropsFactory(withExtend(withClasses(_UnstyledButton, classes)))\n\nexport const UnstyledButton: SFCWithInstallAndClasses<typeof _UnstyledButton, typeof classes> =\n withInstall(UnstyledButtonWithStatic)\nexport default UnstyledButton\n\nexport * from './unstyled-button.types'\n"],"mappings":";;;;;;AAUA,MAAM,2BAA2BA,gBAAAA,iBAAiBC,gBAAAA,WAAWC,gBAAAA,YAAYC,wBAAAA,SAAiBC,+BAAAA,OAAO,CAAC,CAAC;AAEnG,MAAa,iBACXC,gBAAAA,YAAY,wBAAwB"}