@cck-ui/core 0.12.2 → 0.13.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.
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/flex/flex-props.ts
3
+ const FLEX_STYLE_PROPS_DATA = {
4
+ gap: {
5
+ type: "spacing",
6
+ property: "gap"
7
+ },
8
+ rowGap: {
9
+ type: "spacing",
10
+ property: "rowGap"
11
+ },
12
+ columnGap: {
13
+ type: "spacing",
14
+ property: "columnGap"
15
+ },
16
+ align: {
17
+ type: "identity",
18
+ property: "alignItems"
19
+ },
20
+ justify: {
21
+ type: "identity",
22
+ property: "justifyContent"
23
+ },
24
+ wrap: {
25
+ type: "identity",
26
+ property: "flexWrap"
27
+ },
28
+ direction: {
29
+ type: "identity",
30
+ property: "flexDirection"
31
+ }
32
+ };
33
+ //#endregion
34
+ exports.FLEX_STYLE_PROPS_DATA = FLEX_STYLE_PROPS_DATA;
35
+
36
+ //# sourceMappingURL=flex-props.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex-props.cjs","names":[],"sources":["../../../src/components/flex/flex-props.ts"],"sourcesContent":["import { SystemPropData } from '../../core'\n\nexport const FLEX_STYLE_PROPS_DATA: Record<string, SystemPropData> = {\n gap: { type: 'spacing', property: 'gap' },\n rowGap: { type: 'spacing', property: 'rowGap' },\n columnGap: { type: 'spacing', property: 'columnGap' },\n\n align: { type: 'identity', property: 'alignItems' },\n justify: { type: 'identity', property: 'justifyContent' },\n wrap: { type: 'identity', property: 'flexWrap' },\n direction: { type: 'identity', property: 'flexDirection' },\n}\n"],"mappings":";;AAEA,MAAa,wBAAwD;CACnE,KAAK;EAAE,MAAM;EAAW,UAAU;CAAM;CACxC,QAAQ;EAAE,MAAM;EAAW,UAAU;CAAS;CAC9C,WAAW;EAAE,MAAM;EAAW,UAAU;CAAY;CAEpD,OAAO;EAAE,MAAM;EAAY,UAAU;CAAa;CAClD,SAAS;EAAE,MAAM;EAAY,UAAU;CAAiB;CACxD,MAAM;EAAE,MAAM;EAAY,UAAU;CAAW;CAC/C,WAAW;EAAE,MAAM;EAAY,UAAU;CAAgB;AAC3D"}
@@ -0,0 +1,478 @@
1
+ "use client";
2
+ const require_filter_props = require("../../core/utils/filter-props/filter-props.cjs");
3
+ const require_config_provider_context = require("../../core/config-provider/config-provider.context.cjs");
4
+ const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
5
+ const require_use_component_props = require("../../core/config-provider/use-component-props/use-component-props.cjs");
6
+ const require_parse_style_props = require("../../core/box/style-props/parse-style-props/parse-style-props.cjs");
7
+ const require_responsive_style_manager = require("../../core/responsive-style-manager/responsive-style-manager.cjs");
8
+ const require_hash_styles = require("../../core/responsive-style-manager/hash-styles.cjs");
9
+ const require_styles_to_string = require("../../core/responsive-style-manager/styles-to-string/styles-to-string.cjs");
10
+ const require_use_random_classname = require("../../core/box/use-random-classname/use-random-classname.cjs");
11
+ const require_index = require("../../core/box/index.cjs");
12
+ const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
13
+ const require_flex_module = require("./flex.module.cjs");
14
+ const require_flex_props = require("./flex-props.cjs");
15
+ let vue = require("vue");
16
+ //#region packages/@cck-ui/core/src/components/flex/flex.vue
17
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
18
+ name: "CFlex",
19
+ __name: "flex",
20
+ props: {
21
+ gap: {
22
+ type: null,
23
+ required: false
24
+ },
25
+ rowGap: {
26
+ type: null,
27
+ required: false
28
+ },
29
+ columnGap: {
30
+ type: null,
31
+ required: false
32
+ },
33
+ align: {
34
+ type: null,
35
+ required: false
36
+ },
37
+ justify: {
38
+ type: null,
39
+ required: false
40
+ },
41
+ wrap: {
42
+ type: null,
43
+ required: false
44
+ },
45
+ direction: {
46
+ type: null,
47
+ required: false
48
+ },
49
+ className: {
50
+ type: String,
51
+ required: false
52
+ },
53
+ style: {
54
+ type: [
55
+ Object,
56
+ Function,
57
+ Array
58
+ ],
59
+ required: false,
60
+ skipCheck: true
61
+ },
62
+ __vars: {
63
+ type: null,
64
+ required: false
65
+ },
66
+ __size: {
67
+ type: String,
68
+ required: false
69
+ },
70
+ hiddenFrom: {
71
+ type: null,
72
+ required: false
73
+ },
74
+ visibleFrom: {
75
+ type: null,
76
+ required: false
77
+ },
78
+ lightHidden: {
79
+ type: Boolean,
80
+ required: false
81
+ },
82
+ darkHidden: {
83
+ type: Boolean,
84
+ required: false
85
+ },
86
+ mod: {
87
+ type: [
88
+ Object,
89
+ String,
90
+ Array
91
+ ],
92
+ required: false
93
+ },
94
+ m: {
95
+ type: null,
96
+ required: false
97
+ },
98
+ my: {
99
+ type: null,
100
+ required: false
101
+ },
102
+ mx: {
103
+ type: null,
104
+ required: false
105
+ },
106
+ mt: {
107
+ type: null,
108
+ required: false
109
+ },
110
+ mb: {
111
+ type: null,
112
+ required: false
113
+ },
114
+ ms: {
115
+ type: null,
116
+ required: false
117
+ },
118
+ me: {
119
+ type: null,
120
+ required: false
121
+ },
122
+ mis: {
123
+ type: null,
124
+ required: false
125
+ },
126
+ mie: {
127
+ type: null,
128
+ required: false
129
+ },
130
+ ml: {
131
+ type: null,
132
+ required: false
133
+ },
134
+ mr: {
135
+ type: null,
136
+ required: false
137
+ },
138
+ p: {
139
+ type: null,
140
+ required: false
141
+ },
142
+ py: {
143
+ type: null,
144
+ required: false
145
+ },
146
+ px: {
147
+ type: null,
148
+ required: false
149
+ },
150
+ pt: {
151
+ type: null,
152
+ required: false
153
+ },
154
+ pb: {
155
+ type: null,
156
+ required: false
157
+ },
158
+ ps: {
159
+ type: null,
160
+ required: false
161
+ },
162
+ pe: {
163
+ type: null,
164
+ required: false
165
+ },
166
+ pis: {
167
+ type: null,
168
+ required: false
169
+ },
170
+ pie: {
171
+ type: null,
172
+ required: false
173
+ },
174
+ pl: {
175
+ type: null,
176
+ required: false
177
+ },
178
+ pr: {
179
+ type: null,
180
+ required: false
181
+ },
182
+ bd: {
183
+ type: null,
184
+ required: false
185
+ },
186
+ bdrs: {
187
+ type: null,
188
+ required: false
189
+ },
190
+ bg: {
191
+ type: null,
192
+ required: false
193
+ },
194
+ c: {
195
+ type: null,
196
+ required: false
197
+ },
198
+ opacity: {
199
+ type: [
200
+ String,
201
+ Object,
202
+ Number
203
+ ],
204
+ required: false
205
+ },
206
+ ff: {
207
+ type: [String, Object],
208
+ required: false
209
+ },
210
+ fz: {
211
+ type: null,
212
+ required: false
213
+ },
214
+ fw: {
215
+ type: null,
216
+ required: false
217
+ },
218
+ lts: {
219
+ type: null,
220
+ required: false
221
+ },
222
+ ta: {
223
+ type: [String, Object],
224
+ required: false
225
+ },
226
+ lh: {
227
+ type: null,
228
+ required: false
229
+ },
230
+ fs: {
231
+ type: null,
232
+ required: false
233
+ },
234
+ tt: {
235
+ type: [String, Object],
236
+ required: false
237
+ },
238
+ td: {
239
+ type: null,
240
+ required: false
241
+ },
242
+ w: {
243
+ type: null,
244
+ required: false
245
+ },
246
+ miw: {
247
+ type: null,
248
+ required: false
249
+ },
250
+ maw: {
251
+ type: null,
252
+ required: false
253
+ },
254
+ h: {
255
+ type: null,
256
+ required: false
257
+ },
258
+ mih: {
259
+ type: null,
260
+ required: false
261
+ },
262
+ mah: {
263
+ type: null,
264
+ required: false
265
+ },
266
+ bgsz: {
267
+ type: null,
268
+ required: false
269
+ },
270
+ bgp: {
271
+ type: null,
272
+ required: false
273
+ },
274
+ bgr: {
275
+ type: null,
276
+ required: false
277
+ },
278
+ bga: {
279
+ type: null,
280
+ required: false
281
+ },
282
+ pos: {
283
+ type: [String, Object],
284
+ required: false
285
+ },
286
+ top: {
287
+ type: null,
288
+ required: false
289
+ },
290
+ left: {
291
+ type: null,
292
+ required: false
293
+ },
294
+ bottom: {
295
+ type: null,
296
+ required: false
297
+ },
298
+ right: {
299
+ type: null,
300
+ required: false
301
+ },
302
+ inset: {
303
+ type: null,
304
+ required: false
305
+ },
306
+ display: {
307
+ type: null,
308
+ required: false
309
+ },
310
+ flex: {
311
+ type: null,
312
+ required: false
313
+ },
314
+ unstyled: {
315
+ type: Boolean,
316
+ required: false
317
+ },
318
+ variant: {
319
+ type: null,
320
+ required: false
321
+ },
322
+ classNames: {
323
+ type: null,
324
+ required: false
325
+ },
326
+ styles: {
327
+ type: null,
328
+ required: false
329
+ },
330
+ vars: {
331
+ type: Function,
332
+ required: false
333
+ },
334
+ attributes: {
335
+ type: null,
336
+ required: false
337
+ }
338
+ },
339
+ setup(__props, { expose: __expose }) {
340
+ const _root = (0, vue.ref)(null);
341
+ const attrs = (0, vue.useAttrs)();
342
+ const rawProps = __props;
343
+ const props = require_use_component_props.useComponentProps({
344
+ component: "CFlex",
345
+ defaultProps: {},
346
+ props: rawProps
347
+ });
348
+ const knownProps = [
349
+ "classNames",
350
+ "className",
351
+ "style",
352
+ "styles",
353
+ "unstyled",
354
+ "vars",
355
+ "gap",
356
+ "rowGap",
357
+ "columnGap",
358
+ "align",
359
+ "justify",
360
+ "wrap",
361
+ "direction",
362
+ "attributes"
363
+ ];
364
+ const getStyles = require_use_styles.useStyles({
365
+ name: "Flex",
366
+ classes: require_flex_module.default,
367
+ props: {
368
+ ...props.value,
369
+ ...attrs
370
+ },
371
+ className: props.value.className,
372
+ style: props.value.style,
373
+ classNames: props.value.classNames,
374
+ styles: props.value.styles,
375
+ unstyled: props.value.unstyled,
376
+ attributes: props.value.attributes,
377
+ vars: props.value.vars
378
+ });
379
+ const theme = require_config_provider_context.useCckTheme();
380
+ const randomClassName = require_use_random_classname.useRandomClassName();
381
+ const parsedStyleProps = require_parse_style_props.parseStyleProps({
382
+ styleProps: {
383
+ gap: props.value.gap,
384
+ rowGap: props.value.rowGap,
385
+ columnGap: props.value.columnGap,
386
+ align: props.value.align,
387
+ justify: props.value.justify,
388
+ wrap: props.value.wrap,
389
+ direction: props.value.direction
390
+ },
391
+ theme: theme.value,
392
+ data: require_flex_props.FLEX_STYLE_PROPS_DATA
393
+ });
394
+ const responsiveClassName = parsedStyleProps.hasResponsiveStyles ? require_hash_styles.hashStyleProps(parsedStyleProps.styles, parsedStyleProps.media) : randomClassName;
395
+ const rootAttrs = (0, vue.computed)(() => getStyles("root", { className: responsiveClassName }));
396
+ const mergedStyle = (0, vue.computed)(() => {
397
+ const rootStyle = rootAttrs.value.style || {};
398
+ const inlineStyles = require_filter_props.filterProps(parsedStyleProps.inlineStyles);
399
+ return {
400
+ ...rootStyle,
401
+ ...inlineStyles
402
+ };
403
+ });
404
+ const mergedAttrs = (0, vue.computed)(() => {
405
+ const others = {};
406
+ const propsValue = props.value;
407
+ Object.keys(propsValue).forEach((key) => {
408
+ if (!knownProps.includes(key)) others[key] = propsValue[key];
409
+ });
410
+ const userMod = props.value.mod;
411
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
412
+ return {
413
+ ...others,
414
+ mod: mergedMod,
415
+ ...rootAttrs.value,
416
+ style: mergedStyle.value
417
+ };
418
+ });
419
+ const queryStyles = {
420
+ styles: parsedStyleProps.styles,
421
+ media: parsedStyleProps.media,
422
+ selector: responsiveClassName
423
+ };
424
+ const queryStylesString = require_styles_to_string.stylesToString(queryStyles);
425
+ const currentStyleKey = (0, vue.ref)(null);
426
+ (0, vue.watchEffect)(() => {
427
+ if (queryStylesString) {
428
+ const newKey = require_responsive_style_manager.responsiveStyleManager.register(queryStylesString);
429
+ if (currentStyleKey.value && currentStyleKey.value !== newKey) require_responsive_style_manager.responsiveStyleManager.unregister(currentStyleKey.value);
430
+ currentStyleKey.value = newKey;
431
+ } else if (currentStyleKey.value) {
432
+ require_responsive_style_manager.responsiveStyleManager.unregister(currentStyleKey.value);
433
+ currentStyleKey.value = null;
434
+ }
435
+ });
436
+ (0, vue.onUnmounted)(() => {
437
+ if (currentStyleKey.value) require_responsive_style_manager.responsiveStyleManager.unregister(currentStyleKey.value);
438
+ });
439
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
440
+ const __returned__ = {
441
+ _root,
442
+ attrs,
443
+ rawProps,
444
+ props,
445
+ knownProps,
446
+ getStyles,
447
+ theme,
448
+ randomClassName,
449
+ parsedStyleProps,
450
+ responsiveClassName,
451
+ rootAttrs,
452
+ mergedStyle,
453
+ mergedAttrs,
454
+ queryStyles,
455
+ queryStylesString,
456
+ currentStyleKey,
457
+ get CBox() {
458
+ return require_index.CBox;
459
+ }
460
+ };
461
+ Object.defineProperty(__returned__, "__isScriptSetup", {
462
+ enumerable: false,
463
+ value: true
464
+ });
465
+ return __returned__;
466
+ }
467
+ });
468
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
469
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs), {
470
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
471
+ _: 3
472
+ }, 16);
473
+ }
474
+ var flex_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/flex/flex.vue"]]);
475
+ //#endregion
476
+ exports.default = flex_default;
477
+
478
+ //# sourceMappingURL=flex.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.cjs","names":[],"sources":["../../../src/components/flex/flex.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onUnmounted, ref, useAttrs, watchEffect } from 'vue'\nimport {\n CBox,\n filterProps,\n hashStyleProps,\n parseStyleProps,\n responsiveStyleManager,\n stylesToString,\n useCckTheme,\n useComponentProps,\n useRandomClassName,\n useStyles,\n} from '../../core'\nimport classes from './flex.module.css'\nimport { FlexFactory, FlexProps } from './flex.types'\nimport { FLEX_STYLE_PROPS_DATA } from './flex-props'\n\ndefineOptions({\n name: 'CFlex',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<FlexProps>()\n\nconst props = useComponentProps({\n component: 'CFlex',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'gap',\n 'rowGap',\n 'columnGap',\n 'align',\n 'justify',\n 'wrap',\n 'direction',\n 'attributes',\n]\n\nconst getStyles = useStyles<FlexFactory>({\n name: 'Flex',\n classes,\n props: { ...props.value, ...attrs } as FlexProps,\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})\n\nconst theme = useCckTheme()\nconst randomClassName = useRandomClassName()\n\nconst parsedStyleProps = parseStyleProps({\n styleProps: {\n gap: props.value.gap,\n rowGap: props.value.rowGap,\n columnGap: props.value.columnGap,\n align: props.value.align,\n justify: props.value.justify,\n wrap: props.value.wrap,\n direction: props.value.direction,\n },\n theme: theme.value,\n data: FLEX_STYLE_PROPS_DATA,\n})\n\nconst responsiveClassName = parsedStyleProps.hasResponsiveStyles\n ? hashStyleProps(parsedStyleProps.styles, parsedStyleProps.media)\n : randomClassName\n\nconst rootAttrs = computed(() => getStyles('root', { className: responsiveClassName }))\n\nconst mergedStyle = computed(() => {\n const rootStyle = rootAttrs.value.style || {}\n const inlineStyles = filterProps(parsedStyleProps.inlineStyles)\n return { ...rootStyle, ...inlineStyles }\n})\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n })\n const userMod = props.value.mod\n const mergedMod = [...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean))]\n return {\n ...others,\n mod: mergedMod,\n ...rootAttrs.value,\n style: mergedStyle.value,\n }\n})\n\nconst queryStyles = {\n styles: parsedStyleProps.styles,\n media: parsedStyleProps.media,\n selector: responsiveClassName,\n}\n\nconst queryStylesString = stylesToString(queryStyles)\n\nconst currentStyleKey = ref<string | null>(null)\nwatchEffect(() => {\n if (queryStylesString) {\n const newKey = responsiveStyleManager.register(queryStylesString)\n if (currentStyleKey.value && currentStyleKey.value !== newKey) {\n responsiveStyleManager.unregister(currentStyleKey.value)\n }\n currentStyleKey.value = newKey\n } else if (currentStyleKey.value) {\n responsiveStyleManager.unregister(currentStyleKey.value)\n currentStyleKey.value = null\n }\n})\nonUnmounted(() => {\n if (currentStyleKey.value) {\n responsiveStyleManager.unregister(currentStyleKey.value)\n }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/flex/flex.module.css
3
+ var flex_module_default = { "root": "m_148db636" };
4
+ //#endregion
5
+ exports.default = flex_module_default;
6
+
7
+ //# sourceMappingURL=flex.module.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.module.cjs","names":[],"sources":["../../../src/components/flex/flex.module.css"],"sourcesContent":[".root {\n display: flex;\n}\n"],"mappings":";;AAAA,IAAA,sBAAe,EAAC,QAAO,aAAY"}
@@ -0,0 +1,13 @@
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_flex_module = require("./flex.module.cjs");
5
+ const require_flex = require("./flex.cjs");
6
+ //#region packages/@cck-ui/core/src/components/flex/index.ts
7
+ const FlexWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_flex.default, require_flex_module.default)));
8
+ const CFlex = require_install.withInstall(FlexWithStatic);
9
+ //#endregion
10
+ exports.CFlex = CFlex;
11
+ exports.default = CFlex;
12
+
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withClasses","Flex","classes","withInstall"],"sources":["../../../src/components/flex/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n} from '../../core'\nimport Flex from './flex.vue'\nimport classes from './flex.module.css'\n\nconst FlexWithStatic = withPropsFactory(withExtend(withClasses(Flex, classes)))\n\nexport const CFlex: SFCWithInstallAndClasses<typeof Flex, typeof classes> =\n withInstall(FlexWithStatic)\n\nexport default CFlex\n\nexport * from './flex.types'\n"],"mappings":";;;;;;AAUA,MAAM,iBAAiBA,gBAAAA,iBAAiBC,gBAAAA,WAAWC,gBAAAA,YAAYC,aAAAA,SAAMC,oBAAAA,OAAO,CAAC,CAAC;AAE9E,MAAa,QACXC,gBAAAA,YAAY,cAAc"}
package/cjs/index.cjs CHANGED
@@ -65,13 +65,14 @@ const require_index$8 = require("./components/transition/index.cjs");
65
65
  const require_index$9 = require("./components/button/index.cjs");
66
66
  const require_index$10 = require("./components/center/index.cjs");
67
67
  const require_index$11 = require("./components/container/index.cjs");
68
- const require_index$12 = require("./components/grid/index.cjs");
69
- const require_index$13 = require("./components/group/index.cjs");
70
- const require_index$14 = require("./components/simple-grid/index.cjs");
71
- const require_index$15 = require("./components/space/index.cjs");
72
- const require_index$16 = require("./components/splitter/index.cjs");
73
- const require_index$17 = require("./components/stack/index.cjs");
74
- const require_index$18 = require("./components/text/index.cjs");
68
+ const require_index$12 = require("./components/flex/index.cjs");
69
+ const require_index$13 = require("./components/grid/index.cjs");
70
+ const require_index$14 = require("./components/group/index.cjs");
71
+ const require_index$15 = require("./components/simple-grid/index.cjs");
72
+ const require_index$16 = require("./components/space/index.cjs");
73
+ const require_index$17 = require("./components/splitter/index.cjs");
74
+ const require_index$18 = require("./components/stack/index.cjs");
75
+ const require_index$19 = require("./components/text/index.cjs");
75
76
  let _vue_shared = require("@vue/shared");
76
77
  //#region packages/@cck-ui/core/src/index.ts
77
78
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
@@ -85,17 +86,18 @@ const components = [
85
86
  require_index$9.CButtonGroupSection,
86
87
  require_index$10.CCenter,
87
88
  require_index$4.CCloseButton,
88
- require_index$12.CCol,
89
+ require_index$13.CCol,
89
90
  require_index$11.CContainer,
90
- require_index$12.CGrid,
91
- require_index$13.CGroup,
91
+ require_index$12.CFlex,
92
+ require_index$13.CGrid,
93
+ require_index$14.CGroup,
92
94
  require_index$7.CLoader,
93
- require_index$14.CSimpleGrid,
94
- require_index$15.CSpace,
95
- require_index$16.CSplitter,
96
- require_index$16.CSplitterPane,
97
- require_index$17.CStack,
98
- require_index$18.CText,
95
+ require_index$15.CSimpleGrid,
96
+ require_index$16.CSpace,
97
+ require_index$17.CSplitter,
98
+ require_index$17.CSplitterPane,
99
+ require_index$18.CStack,
100
+ require_index$19.CText,
99
101
  require_index$8.CTransition,
100
102
  require_index$3.UnstyledButton
101
103
  ];
@@ -116,19 +118,20 @@ exports.CButtonGroupSection = require_index$9.CButtonGroupSection;
116
118
  exports.CCK_TRANSITIONS = require_transitions.transitions;
117
119
  exports.CCenter = require_index$10.CCenter;
118
120
  exports.CCloseButton = require_index$4.CCloseButton;
119
- exports.CCol = require_index$12.CCol;
121
+ exports.CCol = require_index$13.CCol;
120
122
  exports.CContainer = require_index$11.CContainer;
121
123
  exports.CDefaultLoaders = require_index$7.CDefaultLoaders;
122
- exports.CGrid = require_index$12.CGrid;
123
- exports.CGroup = require_index$13.CGroup;
124
+ exports.CFlex = require_index$12.CFlex;
125
+ exports.CGrid = require_index$13.CGrid;
126
+ exports.CGroup = require_index$14.CGroup;
124
127
  exports.CLoader = require_index$7.CLoader;
125
128
  exports.CONFIG_KEY = require_config_provider_types.CONFIG_KEY;
126
- exports.CSimpleGrid = require_index$14.CSimpleGrid;
127
- exports.CSpace = require_index$15.CSpace;
128
- exports.CSplitter = require_index$16.CSplitter;
129
- exports.CSplitterPane = require_index$16.CSplitterPane;
130
- exports.CStack = require_index$17.CStack;
131
- exports.CText = require_index$18.CText;
129
+ exports.CSimpleGrid = require_index$15.CSimpleGrid;
130
+ exports.CSpace = require_index$16.CSpace;
131
+ exports.CSplitter = require_index$17.CSplitter;
132
+ exports.CSplitterPane = require_index$17.CSplitterPane;
133
+ exports.CStack = require_index$18.CStack;
134
+ exports.CText = require_index$19.CText;
132
135
  exports.CTransition = require_index$8.CTransition;
133
136
  exports.CckConfigProvider = require_index$1.CckConfigProvider;
134
137
  exports.CckUI = CckUI;
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","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 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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,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,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","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 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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,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,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"}
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/flex/flex-props.ts
3
+ const FLEX_STYLE_PROPS_DATA = {
4
+ gap: {
5
+ type: "spacing",
6
+ property: "gap"
7
+ },
8
+ rowGap: {
9
+ type: "spacing",
10
+ property: "rowGap"
11
+ },
12
+ columnGap: {
13
+ type: "spacing",
14
+ property: "columnGap"
15
+ },
16
+ align: {
17
+ type: "identity",
18
+ property: "alignItems"
19
+ },
20
+ justify: {
21
+ type: "identity",
22
+ property: "justifyContent"
23
+ },
24
+ wrap: {
25
+ type: "identity",
26
+ property: "flexWrap"
27
+ },
28
+ direction: {
29
+ type: "identity",
30
+ property: "flexDirection"
31
+ }
32
+ };
33
+ //#endregion
34
+ export { FLEX_STYLE_PROPS_DATA };
35
+
36
+ //# sourceMappingURL=flex-props.mjs.map