@cck-ui/core 0.2.0 → 0.3.3

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 (225) hide show
  1. package/cjs/components/button/button-group/button-group.cjs +1 -1
  2. package/cjs/components/button/button-group/button-group.cjs.map +1 -1
  3. package/cjs/components/button/button-group/use-button-group.cjs +2 -1
  4. package/cjs/components/button/button-group/use-button-group.cjs.map +1 -1
  5. package/cjs/components/button/button-group-section/button-group-section.cjs +1 -1
  6. package/cjs/components/button/button-group-section/button-group-section.cjs.map +1 -1
  7. package/cjs/components/button/button.cjs +99 -68
  8. package/cjs/components/button/button.cjs.map +1 -1
  9. package/cjs/components/button/button.module.cjs.map +1 -1
  10. package/cjs/components/grid/col/col-custom.cjs +2 -3
  11. package/cjs/components/grid/col/col-custom.cjs.map +1 -1
  12. package/cjs/components/grid/col/col.cjs +31 -23
  13. package/cjs/components/grid/col/col.cjs.map +1 -1
  14. package/cjs/components/grid/grid-custom.cjs +2 -3
  15. package/cjs/components/grid/grid-custom.cjs.map +1 -1
  16. package/cjs/components/grid/grid.cjs +50 -38
  17. package/cjs/components/grid/grid.cjs.map +1 -1
  18. package/cjs/components/group/group.cjs +1 -1
  19. package/cjs/components/group/group.cjs.map +1 -1
  20. package/cjs/components/loader/loader.cjs +44 -36
  21. package/cjs/components/loader/loader.cjs.map +1 -1
  22. package/cjs/components/loader/loaders/bars.cjs +1 -1
  23. package/cjs/components/loader/loaders/bars.cjs.map +1 -1
  24. package/cjs/components/loader/loaders/dots.cjs +1 -1
  25. package/cjs/components/loader/loaders/dots.cjs.map +1 -1
  26. package/cjs/components/loader/loaders/oval.cjs +1 -1
  27. package/cjs/components/loader/loaders/oval.cjs.map +1 -1
  28. package/cjs/components/simple-grid/simple-grid-custom.cjs +2 -3
  29. package/cjs/components/simple-grid/simple-grid-custom.cjs.map +1 -1
  30. package/cjs/components/simple-grid/simple-grid.cjs +35 -30
  31. package/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
  32. package/cjs/components/text/text.cjs +50 -43
  33. package/cjs/components/text/text.cjs.map +1 -1
  34. package/cjs/components/text/text.module.cjs.map +1 -1
  35. package/cjs/components/transition/get-transition-props/get-transition-props.cjs +17 -0
  36. package/cjs/components/transition/get-transition-props/get-transition-props.cjs.map +1 -0
  37. package/cjs/components/transition/get-transition-styles/get-transition-styles.cjs +37 -0
  38. package/cjs/components/transition/get-transition-styles/get-transition-styles.cjs.map +1 -0
  39. package/cjs/components/transition/index.cjs +14 -0
  40. package/cjs/components/transition/index.cjs.map +1 -0
  41. package/cjs/components/transition/transition.cjs +140 -0
  42. package/cjs/components/transition/transition.cjs.map +1 -0
  43. package/cjs/components/transition/transitions.cjs +220 -0
  44. package/cjs/components/transition/transitions.cjs.map +1 -0
  45. package/cjs/components/transition/use-transition.cjs +84 -0
  46. package/cjs/components/transition/use-transition.cjs.map +1 -0
  47. package/cjs/components/unstyled-button/unstyled-button.cjs +32 -22
  48. package/cjs/components/unstyled-button/unstyled-button.cjs.map +1 -1
  49. package/cjs/core/box/box.cjs +40 -46
  50. package/cjs/core/box/box.cjs.map +1 -1
  51. package/cjs/core/box/get-box-mod/get-box-mod.cjs.map +1 -1
  52. package/cjs/core/box/style-props/parse-style-props/parse-style-props.cjs +1 -1
  53. package/cjs/core/box/style-props/parse-style-props/parse-style-props.cjs.map +1 -1
  54. package/cjs/core/config-provider/baseline.cjs +1 -0
  55. package/cjs/core/config-provider/cck-css-variables/default-css-variables-resolver.cjs +138 -0
  56. package/cjs/core/config-provider/cck-css-variables/default-css-variables-resolver.cjs.map +1 -0
  57. package/cjs/core/config-provider/cck-css-variables/get-css-color-variables.cjs +64 -0
  58. package/cjs/core/config-provider/cck-css-variables/get-css-color-variables.cjs.map +1 -0
  59. package/cjs/core/config-provider/cck-css-variables/virtual-color/virtual-color.cjs +39 -0
  60. package/cjs/core/config-provider/cck-css-variables/virtual-color/virtual-color.cjs.map +1 -0
  61. package/cjs/core/config-provider/color-functions/colors-tuple/colors-tuple.cjs +10 -0
  62. package/cjs/core/config-provider/color-functions/colors-tuple/colors-tuple.cjs.map +1 -0
  63. package/cjs/core/config-provider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.cjs +22 -0
  64. package/cjs/core/config-provider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.cjs.map +1 -1
  65. package/cjs/core/config-provider/color-functions/get-contrast-color/get-contrast-color.cjs +39 -0
  66. package/cjs/core/config-provider/color-functions/get-contrast-color/get-contrast-color.cjs.map +1 -0
  67. package/cjs/core/config-provider/color-functions/parse-theme-color/parse-theme-color.cjs.map +1 -1
  68. package/cjs/core/config-provider/color-scheme-managers/is-cck-color-scheme.cjs +9 -0
  69. package/cjs/core/config-provider/color-scheme-managers/is-cck-color-scheme.cjs.map +1 -0
  70. package/cjs/core/config-provider/color-scheme-managers/local-storage-manager.cjs +40 -0
  71. package/cjs/core/config-provider/color-scheme-managers/local-storage-manager.cjs.map +1 -0
  72. package/cjs/core/config-provider/config-provider.cjs +65 -11
  73. package/cjs/core/config-provider/config-provider.cjs.map +1 -1
  74. package/cjs/core/config-provider/config-provider.context.cjs +5 -0
  75. package/cjs/core/config-provider/config-provider.context.cjs.map +1 -1
  76. package/cjs/core/config-provider/config-provider.types.cjs +1 -1
  77. package/cjs/core/config-provider/config-provider.types.cjs.map +1 -1
  78. package/cjs/core/config-provider/create-theme/create-theme.cjs +8 -0
  79. package/cjs/core/config-provider/create-theme/create-theme.cjs.map +1 -0
  80. package/cjs/core/config-provider/default-css-variables.cjs +1 -0
  81. package/cjs/core/config-provider/global.cjs +1 -0
  82. package/cjs/core/config-provider/index.cjs +18 -2
  83. package/cjs/core/config-provider/index.cjs.map +1 -1
  84. package/cjs/core/config-provider/merge-cck-theme/merge-cck-theme.cjs +35 -0
  85. package/cjs/core/config-provider/merge-cck-theme/merge-cck-theme.cjs.map +1 -0
  86. package/cjs/core/config-provider/use-cck-color-scheme/use-cck-color-scheme.cjs +84 -0
  87. package/cjs/core/config-provider/use-cck-color-scheme/use-cck-color-scheme.cjs.map +1 -0
  88. package/cjs/core/config-provider/use-cck-color-scheme/use-provider-color-scheme.cjs +59 -0
  89. package/cjs/core/config-provider/use-cck-color-scheme/use-provider-color-scheme.cjs.map +1 -0
  90. package/cjs/core/config-provider/use-respect-reduce-motion/use-respect-reduce-motion.cjs +14 -0
  91. package/cjs/core/config-provider/use-respect-reduce-motion/use-respect-reduce-motion.cjs.map +1 -0
  92. package/cjs/core/styles-api/use-styles/use-styles.cjs +1 -4
  93. package/cjs/core/styles-api/use-styles/use-styles.cjs.map +1 -1
  94. package/cjs/index.cjs +39 -17
  95. package/esm/components/button/button-group/button-group.mjs +1 -1
  96. package/esm/components/button/button-group/button-group.mjs.map +1 -1
  97. package/esm/components/button/button-group/use-button-group.mjs +2 -1
  98. package/esm/components/button/button-group/use-button-group.mjs.map +1 -1
  99. package/esm/components/button/button-group-section/button-group-section.mjs +1 -1
  100. package/esm/components/button/button-group-section/button-group-section.mjs.map +1 -1
  101. package/esm/components/button/button.mjs +100 -69
  102. package/esm/components/button/button.mjs.map +1 -1
  103. package/esm/components/button/button.module.mjs.map +1 -1
  104. package/esm/components/grid/col/col-custom.mjs +3 -4
  105. package/esm/components/grid/col/col-custom.mjs.map +1 -1
  106. package/esm/components/grid/col/col.mjs +32 -24
  107. package/esm/components/grid/col/col.mjs.map +1 -1
  108. package/esm/components/grid/grid-custom.mjs +3 -4
  109. package/esm/components/grid/grid-custom.mjs.map +1 -1
  110. package/esm/components/grid/grid.mjs +51 -39
  111. package/esm/components/grid/grid.mjs.map +1 -1
  112. package/esm/components/group/group.mjs +1 -1
  113. package/esm/components/group/group.mjs.map +1 -1
  114. package/esm/components/loader/loader.mjs +43 -35
  115. package/esm/components/loader/loader.mjs.map +1 -1
  116. package/esm/components/loader/loaders/bars.mjs +1 -1
  117. package/esm/components/loader/loaders/bars.mjs.map +1 -1
  118. package/esm/components/loader/loaders/dots.mjs +1 -1
  119. package/esm/components/loader/loaders/dots.mjs.map +1 -1
  120. package/esm/components/loader/loaders/oval.mjs +1 -1
  121. package/esm/components/loader/loaders/oval.mjs.map +1 -1
  122. package/esm/components/simple-grid/simple-grid-custom.mjs +3 -4
  123. package/esm/components/simple-grid/simple-grid-custom.mjs.map +1 -1
  124. package/esm/components/simple-grid/simple-grid.mjs +35 -30
  125. package/esm/components/simple-grid/simple-grid.mjs.map +1 -1
  126. package/esm/components/text/text.mjs +50 -43
  127. package/esm/components/text/text.mjs.map +1 -1
  128. package/esm/components/text/text.module.mjs.map +1 -1
  129. package/esm/components/transition/get-transition-props/get-transition-props.mjs +17 -0
  130. package/esm/components/transition/get-transition-props/get-transition-props.mjs.map +1 -0
  131. package/esm/components/transition/get-transition-styles/get-transition-styles.mjs +37 -0
  132. package/esm/components/transition/get-transition-styles/get-transition-styles.mjs.map +1 -0
  133. package/esm/components/transition/index.mjs +11 -0
  134. package/esm/components/transition/index.mjs.map +1 -0
  135. package/esm/components/transition/transition.mjs +140 -0
  136. package/esm/components/transition/transition.mjs.map +1 -0
  137. package/esm/components/transition/transitions.mjs +220 -0
  138. package/esm/components/transition/transitions.mjs.map +1 -0
  139. package/esm/components/transition/use-transition.mjs +84 -0
  140. package/esm/components/transition/use-transition.mjs.map +1 -0
  141. package/esm/components/unstyled-button/unstyled-button.mjs +33 -23
  142. package/esm/components/unstyled-button/unstyled-button.mjs.map +1 -1
  143. package/esm/core/box/box.mjs +41 -47
  144. package/esm/core/box/box.mjs.map +1 -1
  145. package/esm/core/box/get-box-mod/get-box-mod.mjs.map +1 -1
  146. package/esm/core/box/style-props/parse-style-props/parse-style-props.mjs +1 -1
  147. package/esm/core/box/style-props/parse-style-props/parse-style-props.mjs.map +1 -1
  148. package/esm/core/config-provider/baseline.mjs +1 -0
  149. package/esm/core/config-provider/cck-css-variables/default-css-variables-resolver.mjs +138 -0
  150. package/esm/core/config-provider/cck-css-variables/default-css-variables-resolver.mjs.map +1 -0
  151. package/esm/core/config-provider/cck-css-variables/get-css-color-variables.mjs +64 -0
  152. package/esm/core/config-provider/cck-css-variables/get-css-color-variables.mjs.map +1 -0
  153. package/esm/core/config-provider/cck-css-variables/virtual-color/virtual-color.mjs +38 -0
  154. package/esm/core/config-provider/cck-css-variables/virtual-color/virtual-color.mjs.map +1 -0
  155. package/esm/core/config-provider/color-functions/colors-tuple/colors-tuple.mjs +10 -0
  156. package/esm/core/config-provider/color-functions/colors-tuple/colors-tuple.mjs.map +1 -0
  157. package/esm/core/config-provider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.mjs +22 -0
  158. package/esm/core/config-provider/color-functions/default-variant-colors-resolver/default-variant-colors-resolver.mjs.map +1 -1
  159. package/esm/core/config-provider/color-functions/get-contrast-color/get-contrast-color.mjs +37 -0
  160. package/esm/core/config-provider/color-functions/get-contrast-color/get-contrast-color.mjs.map +1 -0
  161. package/esm/core/config-provider/color-functions/parse-theme-color/parse-theme-color.mjs.map +1 -1
  162. package/esm/core/config-provider/color-scheme-managers/is-cck-color-scheme.mjs +9 -0
  163. package/esm/core/config-provider/color-scheme-managers/is-cck-color-scheme.mjs.map +1 -0
  164. package/esm/core/config-provider/color-scheme-managers/local-storage-manager.mjs +40 -0
  165. package/esm/core/config-provider/color-scheme-managers/local-storage-manager.mjs.map +1 -0
  166. package/esm/core/config-provider/config-provider.context.mjs +7 -3
  167. package/esm/core/config-provider/config-provider.context.mjs.map +1 -1
  168. package/esm/core/config-provider/config-provider.mjs +66 -12
  169. package/esm/core/config-provider/config-provider.mjs.map +1 -1
  170. package/esm/core/config-provider/config-provider.types.mjs +1 -1
  171. package/esm/core/config-provider/config-provider.types.mjs.map +1 -1
  172. package/esm/core/config-provider/create-theme/create-theme.mjs +8 -0
  173. package/esm/core/config-provider/create-theme/create-theme.mjs.map +1 -0
  174. package/esm/core/config-provider/default-css-variables.mjs +1 -0
  175. package/esm/core/config-provider/global.mjs +1 -0
  176. package/esm/core/config-provider/index.mjs +10 -3
  177. package/esm/core/config-provider/index.mjs.map +1 -1
  178. package/esm/core/config-provider/merge-cck-theme/merge-cck-theme.mjs +32 -0
  179. package/esm/core/config-provider/merge-cck-theme/merge-cck-theme.mjs.map +1 -0
  180. package/esm/core/config-provider/use-cck-color-scheme/use-cck-color-scheme.mjs +84 -0
  181. package/esm/core/config-provider/use-cck-color-scheme/use-cck-color-scheme.mjs.map +1 -0
  182. package/esm/core/config-provider/use-cck-color-scheme/use-provider-color-scheme.mjs +59 -0
  183. package/esm/core/config-provider/use-cck-color-scheme/use-provider-color-scheme.mjs.map +1 -0
  184. package/esm/core/config-provider/use-respect-reduce-motion/use-respect-reduce-motion.mjs +14 -0
  185. package/esm/core/config-provider/use-respect-reduce-motion/use-respect-reduce-motion.mjs.map +1 -0
  186. package/esm/core/styles-api/use-styles/use-styles.mjs +2 -5
  187. package/esm/core/styles-api/use-styles/use-styles.mjs.map +1 -1
  188. package/esm/index.mjs +13 -3
  189. package/lib/components/button/button.types.d.ts +1 -11
  190. package/lib/components/index.d.ts +1 -0
  191. package/lib/components/text/text.types.d.ts +1 -1
  192. package/lib/components/transition/get-transition-props/get-transition-props.d.ts +5 -0
  193. package/lib/components/transition/get-transition-styles/get-transition-styles.d.ts +17 -0
  194. package/lib/components/transition/index.d.ts +8 -0
  195. package/lib/components/transition/transition.types.d.ts +66 -0
  196. package/lib/components/transition/transitions.d.ts +10 -0
  197. package/lib/components/transition/use-transition.d.ts +20 -0
  198. package/lib/core/box/style-props/parse-style-props/parse-style-props.d.ts +1 -1
  199. package/lib/core/config-provider/cck-css-variables/index.d.ts +3 -0
  200. package/lib/core/config-provider/cck-css-variables/virtual-color/virtual-color.d.ts +1 -1
  201. package/lib/core/config-provider/color-functions/index.d.ts +2 -1
  202. package/lib/core/config-provider/color-functions/parse-theme-color/parse-theme-color.d.ts +1 -1
  203. package/lib/core/config-provider/color-scheme-managers/index.d.ts +4 -0
  204. package/lib/core/config-provider/color-scheme-managers/is-cck-color-scheme.d.ts +2 -0
  205. package/lib/core/config-provider/color-scheme-managers/local-storage-manager.d.ts +5 -0
  206. package/lib/core/config-provider/color-scheme-managers/types.d.ts +30 -0
  207. package/lib/core/config-provider/config-provider.context.d.ts +4 -3
  208. package/lib/core/config-provider/config-provider.types.d.ts +10 -4
  209. package/lib/core/config-provider/create-theme/create-theme.d.ts +2 -0
  210. package/lib/core/config-provider/index.d.ts +3 -0
  211. package/lib/core/config-provider/merge-cck-theme/index.d.ts +1 -0
  212. package/lib/core/config-provider/merge-cck-theme/merge-cck-theme.d.ts +5 -0
  213. package/lib/core/config-provider/use-cck-color-scheme/index.d.ts +2 -0
  214. package/lib/core/config-provider/use-cck-color-scheme/use-cck-color-scheme.d.ts +10 -0
  215. package/lib/core/config-provider/use-cck-color-scheme/use-provider-color-scheme.d.ts +15 -0
  216. package/lib/core/config-provider/use-respect-reduce-motion/use-respect-reduce-motion.d.ts +7 -0
  217. package/package.json +3 -1
  218. package/styles/button.css +5 -9
  219. package/styles/button.layer.css +5 -9
  220. package/styles/default-css-variables.css +30 -30
  221. package/styles/default-css-variables.layer.css +30 -30
  222. package/styles/text.css +10 -0
  223. package/styles/text.layer.css +10 -0
  224. package/styles.css +1482 -232
  225. package/styles.layer.css +1483 -233
@@ -336,26 +336,45 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
336
336
  setup(__props, { expose: __expose }) {
337
337
  __expose();
338
338
  const props = __props;
339
- const { classNames, className, style, styles, unstyled, vars, cols, verticalSpacing, spacing, type, minColWidth, autoFlow, autoRows, attributes, ...others } = props;
339
+ const knownProps = [
340
+ "classNames",
341
+ "className",
342
+ "style",
343
+ "styles",
344
+ "unstyled",
345
+ "vars",
346
+ "cols",
347
+ "verticalSpacing",
348
+ "spacing",
349
+ "type",
350
+ "minColWidth",
351
+ "autoFlow",
352
+ "autoRows",
353
+ "attributes"
354
+ ];
340
355
  const getStyles = require_use_styles.useStyles({
341
356
  name: "SimpleGrid",
342
357
  classes: require_simple_grid_module.default,
343
358
  props,
344
- className,
345
- style,
346
- classNames,
347
- styles,
348
- unstyled,
349
- attributes,
350
- vars
359
+ className: props.className,
360
+ style: props.style,
361
+ classNames: props.classNames,
362
+ styles: props.styles,
363
+ unstyled: props.unstyled,
364
+ attributes: props.attributes,
365
+ vars: props.vars
351
366
  });
352
367
  const responsiveClassname = require_use_random_classname.useRandomClassName();
353
- const autoColsAttr = minColWidth !== void 0 ? autoFlow || "auto-fill" : void 0;
368
+ const autoColsAttr = props.minColWidth !== void 0 ? props.autoFlow || "auto-fill" : void 0;
354
369
  const rootAttrs = (0, vue.computed)(() => getStyles("root", { className: responsiveClassname }));
355
- const mergedRootAttrs = (0, vue.computed)(() => ({
356
- ...others,
357
- ...rootAttrs.value
358
- }));
370
+ const mergedRootAttrs = (0, vue.computed)(() => {
371
+ const others = {};
372
+ for (const key in props) if (!knownProps.includes(key)) others[key] = props[key];
373
+ return {
374
+ ...others,
375
+ ...rootAttrs.value
376
+ };
377
+ });
359
378
  const containerAttrs = (0, vue.computed)(() => getStyles("container"));
360
379
  const gridStyle = require_simple_grid_custom.useSimpleGridStyle({
361
380
  selector: responsiveClassname,
@@ -378,21 +397,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
378
397
  });
379
398
  const __returned__ = {
380
399
  props,
381
- classNames,
382
- className,
383
- style,
384
- styles,
385
- unstyled,
386
- vars,
387
- cols,
388
- verticalSpacing,
389
- spacing,
390
- type,
391
- minColWidth,
392
- autoFlow,
393
- autoRows,
394
- attributes,
395
- others,
400
+ knownProps,
396
401
  getStyles,
397
402
  responsiveClassname,
398
403
  autoColsAttr,
@@ -413,7 +418,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
413
418
  }
414
419
  });
415
420
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
416
- return $setup.type === "container" ? ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 0 }, $setup.containerAttrs)), {
421
+ return $props.type === "container" ? ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 0 }, $setup.containerAttrs)), {
417
422
  default: (0, vue.withCtx)(() => [(0, vue.createVNode)($setup["CBox"], (0, vue.mergeProps)($setup.mergedRootAttrs, { "data-auto-cols": $setup.autoColsAttr }), {
418
423
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
419
424
  _: 3
@@ -424,7 +429,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
424
429
  _: 3
425
430
  }, 16, ["data-auto-cols"]));
426
431
  }
427
- var simple_grid_default = /*#__PURE__*/ require_export_helper.default(_sfc_main, [["render", _sfc_render], ["__file", "D:\\work\\jackatlas\\cck-ui\\packages\\@cck-ui\\core\\src\\components\\simple-grid\\simple-grid.vue"]]);
432
+ var simple_grid_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/simple-grid/simple-grid.vue"]]);
428
433
  //#endregion
429
434
  exports.default = simple_grid_default;
430
435
 
@@ -1 +1 @@
1
- {"version":3,"file":"simple-grid.cjs","names":[],"sources":["../../../src/components/simple-grid/simple-grid.vue","../../../src/components/simple-grid/simple-grid.vue"],"sourcesContent":["<template>\n <c-box v-if=\"type === 'container'\" v-bind=\"containerAttrs\">\n <c-box v-bind=\"mergedRootAttrs\" :data-auto-cols=\"autoColsAttr\">\n <slot />\n </c-box>\n </c-box>\n <template v-else>\n <c-box v-bind=\"mergedRootAttrs\" :data-auto-cols=\"autoColsAttr\">\n <slot />\n </c-box>\n </template>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onUnmounted, ref, watchEffect } from 'vue'\nimport { CBox, responsiveStyleManager, useRandomClassName, useStyles } from '../../core'\nimport type { SimpleGridFactory, SimpleGridProps } from './simple-grid.types'\nimport classes from './simple-grid.module.css'\nimport { useSimpleGridStyle } from './simple-grid-custom'\n\ndefineOptions({\n name: 'CSimpleGrid',\n})\n\nconst props = withDefaults(defineProps<SimpleGridProps>(), {\n cols: 1,\n spacing: 'md',\n type: 'media',\n})\n\nconst {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n cols,\n verticalSpacing,\n spacing,\n type,\n minColWidth,\n autoFlow,\n autoRows,\n attributes,\n ...others\n} = props\n\nconst getStyles = useStyles<SimpleGridFactory>({\n name: 'SimpleGrid',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n attributes,\n vars,\n})\n\nconst responsiveClassname = useRandomClassName()\n\nconst autoColsAttr = minColWidth !== undefined ? autoFlow || 'auto-fill' : undefined\n\nconst rootAttrs = computed(() => getStyles('root', { className: responsiveClassname }))\nconst mergedRootAttrs = computed(() => ({ ...others, ...rootAttrs.value }))\n\nconst containerAttrs = computed(() => getStyles('container'))\n\nconst gridStyle = useSimpleGridStyle({\n selector: responsiveClassname,\n ...props,\n})\n\nconst currentStyleKey = ref<string | null>(null)\nwatchEffect(() => {\n const cssText = gridStyle.value.queryStylesString\n if (cssText) {\n const newKey = responsiveStyleManager.register(cssText)\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</script>\n",null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,uBAAuB,WAAW,gBAAgB,KAAK;EAE3D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QC5Fc,OAAA,SAAI,gBAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAIT,OAAA,UAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,WAAA,CAAA,EAAA,KAAA,EAAA,GAJmC,OAAA,cAAc,CAAA,GAAA;kCAG/C,EAAA,GAAA,IAAA,YAAA,CAAA,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,OAFO,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;mCACnD,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA;;;;uDAMF,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAAA,KAAA,EAAA,GAFO,OAAA,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;kCACnD,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"simple-grid.cjs","names":[],"sources":["../../../src/components/simple-grid/simple-grid.vue"],"sourcesContent":["<template>\n <c-box v-if=\"type === 'container'\" v-bind=\"containerAttrs\">\n <c-box v-bind=\"mergedRootAttrs\" :data-auto-cols=\"autoColsAttr\">\n <slot />\n </c-box>\n </c-box>\n <template v-else>\n <c-box v-bind=\"mergedRootAttrs\" :data-auto-cols=\"autoColsAttr\">\n <slot />\n </c-box>\n </template>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onUnmounted, ref, watchEffect } from 'vue'\nimport { CBox, responsiveStyleManager, useRandomClassName, useStyles } from '../../core'\nimport type { SimpleGridFactory, SimpleGridProps } from './simple-grid.types'\nimport classes from './simple-grid.module.css'\nimport { useSimpleGridStyle } from './simple-grid-custom'\n\ndefineOptions({\n name: 'CSimpleGrid',\n})\n\nconst props = withDefaults(defineProps<SimpleGridProps>(), {\n cols: 1,\n spacing: 'md',\n type: 'media',\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'cols',\n 'verticalSpacing',\n 'spacing',\n 'type',\n 'minColWidth',\n 'autoFlow',\n 'autoRows',\n 'attributes',\n]\n\nconst getStyles = useStyles<SimpleGridFactory>({\n name: 'SimpleGrid',\n classes,\n props,\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})\n\nconst responsiveClassname = useRandomClassName()\n\nconst autoColsAttr = props.minColWidth !== undefined ? props.autoFlow || 'auto-fill' : undefined\n\nconst rootAttrs = computed(() => getStyles('root', { className: responsiveClassname }))\nconst mergedRootAttrs = 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\nconst containerAttrs = computed(() => getStyles('container'))\n\nconst gridStyle = useSimpleGridStyle({\n selector: responsiveClassname,\n ...props,\n})\n\nconst currentStyleKey = ref<string | null>(null)\nwatchEffect(() => {\n const cssText = gridStyle.value.queryStylesString\n if (cssText) {\n const newKey = responsiveStyleManager.register(cssText)\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</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,uBAAuB,SAAS,OAAO;IACtD,IAAI,gBAAgB,SAAS,gBAAgB,UAAU,QACrD,iCAAA,uBAAuB,WAAW,gBAAgB,KAAK;IAEzD,gBAAgB,QAAQ;GAC1B,OAAO,IAAI,gBAAgB,OAAO;IAChC,iCAAA,uBAAuB,WAAW,gBAAgB,KAAK;IACvD,gBAAgB,QAAQ;GAC1B;EACF,CAAC;EACD,CAAA,GAAA,IAAA,YAAA,OAAkB;GAChB,IAAI,gBAAgB,OAClB,iCAAA,uBAAuB,WAAW,gBAAgB,KAAK;EAE3D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;QAnGc,OAAA,SAAI,gBAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAIT,OAAA,UAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,WAAA,CAAA,EAAA,KAAA,EAAA,GAJmC,OAAA,cAAc,CAAA,GAAA;kCAG/C,EAAA,GAAA,IAAA,YAAA,CAAA,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,OAFO,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;mCACnD,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA;;;;uDAMF,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAAA,KAAA,EAAA,GAFO,OAAA,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;kCACnD,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  const require_get_size = require("../../core/utils/get-size/get-size.cjs");
3
- const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
4
3
  const require_get_gradient = require("../../core/config-provider/color-functions/get-gradient/get-gradient.cjs");
4
+ const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
5
5
  const require_index = require("../../core/box/index.cjs");
6
6
  const require_create_vars_resolver = require("../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs");
7
7
  const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
@@ -341,11 +341,36 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
341
341
  setup(__props, { expose: __expose }) {
342
342
  __expose();
343
343
  const props = __props;
344
- const { lineClamp, truncate, inline, inherit, gradient, span, textWrap, __staticSelector, vars, className, style, classNames, styles, unstyled, variant, mod, size, attributes, ...others } = props;
345
344
  function getTextTruncate(truncate) {
346
345
  if (truncate === "start") return "start";
347
346
  if (truncate === "end" || truncate) return "end";
348
347
  }
348
+ const knownProps = [
349
+ "lineClamp",
350
+ "truncate",
351
+ "inline",
352
+ "inherit",
353
+ "gradient",
354
+ "span",
355
+ "textWrap",
356
+ "__staticSelector",
357
+ "vars",
358
+ "className",
359
+ "style",
360
+ "classNames",
361
+ "styles",
362
+ "unstyled",
363
+ "variant",
364
+ "mod",
365
+ "size",
366
+ "attributes"
367
+ ];
368
+ 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]);
349
374
  const varsResolver = require_create_vars_resolver.createVarsResolver((theme, { gradient, lineClamp, size, textWrap, variant }) => ({ root: {
350
375
  "--text-fz": require_get_size.getFontSize(size),
351
376
  "--text-lh": require_get_size.getLineHeight(size),
@@ -354,48 +379,35 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
354
379
  "--text-text-wrap": textWrap
355
380
  } }));
356
381
  const getStyles = require_use_styles.useStyles({
357
- name: ["Text", __staticSelector],
382
+ name: ["Text", props.__staticSelector],
358
383
  props,
359
384
  classes: require_text_module.default,
360
- className,
361
- style,
362
- classNames,
363
- styles,
364
- unstyled,
365
- attributes,
366
- vars,
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,
367
392
  varsResolver
368
393
  });
369
394
  const rootAttrs = (0, vue.computed)(() => getStyles("root", { focusable: true }));
370
395
  const __returned__ = {
371
396
  props,
372
- lineClamp,
373
- truncate,
374
- inline,
375
- inherit,
376
- gradient,
377
- span,
378
- textWrap,
379
- __staticSelector,
380
- vars,
381
- className,
382
- style,
383
- classNames,
384
- styles,
385
- unstyled,
386
- variant,
387
- mod,
388
- size,
389
- attributes,
390
- others,
391
397
  getTextTruncate,
398
+ knownProps,
399
+ modList,
392
400
  varsResolver,
393
401
  getStyles,
394
402
  rootAttrs,
395
- mergedAttrs: (0, vue.computed)(() => ({
396
- ...others,
397
- ...rootAttrs.value
398
- })),
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
+ }),
399
411
  get CBox() {
400
412
  return require_index.CBox;
401
413
  }
@@ -409,15 +421,10 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
409
421
  });
410
422
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
411
423
  return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)($setup.mergedAttrs, {
412
- mod: [{
413
- "data-truncate": $setup.getTextTruncate($setup.truncate),
414
- "data-line-clamp": typeof $setup.lineClamp === "number",
415
- "data-inline": $setup.inline,
416
- "data-inherit": $setup.inherit
417
- }, $setup.mod],
418
- size: $setup.size,
419
- tag: $setup.span ? "span" : "p",
420
- variant: $setup.variant
424
+ mod: $setup.modList,
425
+ size: $setup.props.size,
426
+ tag: $setup.props.span ? "span" : "p",
427
+ variant: $setup.props.variant
421
428
  }), {
422
429
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
423
430
  _: 3
@@ -428,7 +435,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
428
435
  "variant"
429
436
  ]);
430
437
  }
431
- var text_default = /*#__PURE__*/ require_export_helper.default(_sfc_main, [["render", _sfc_render], ["__file", "D:\\work\\jackatlas\\cck-ui\\packages\\@cck-ui\\core\\src\\components\\text\\text.vue"]]);
438
+ var text_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/text/text.vue"]]);
432
439
  //#endregion
433
440
  exports.default = text_default;
434
441
 
@@ -1 +1 @@
1
- {"version":3,"file":"text.cjs","names":[],"sources":["../../../src/components/text/text.vue","../../../src/components/text/text.vue"],"sourcesContent":["<template>\n <c-box\n v-bind=\"mergedAttrs\"\n :mod=\"[\n {\n 'data-truncate': getTextTruncate(truncate),\n 'data-line-clamp': typeof lineClamp === 'number',\n 'data-inline': inline,\n 'data-inherit': inherit,\n },\n mod,\n ]\"\n :size=\"size\"\n :tag=\"span ? 'span' : 'p'\"\n :variant=\"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\nconst {\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 ...others\n} = props\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 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', __staticSelector],\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n attributes,\n vars,\n varsResolver,\n})\n\nconst rootAttrs = computed(() => getStyles('root', { focusable: true }))\n\nconst mergedAttrs = computed(() => ({ ...others, ...rootAttrs.value }))\n</script>\n",null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCA,MAAM,QAAQ;EAEd,MAAM,EACJ,WACA,UACA,QACA,SACA,UACA,MACA,UACA,kBACA,MACA,WACA,OACA,YACA,QACA,UACA,SACA,KACA,MACA,YACA,GAAG,WACD;EAEJ,SAAS,gBAAgB,UAAoC;GAC3D,IAAI,aAAa,SACf,OAAO;GAGT,IAAI,aAAa,SAAS,UACxB,OAAO;EAIX;EAEA,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,gBAAgB;GAC/B;GACA,SAAA,oBAAA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;yCAEnC;IAAE,GAAG;IAAQ,GAAG,UAAU;GAAM,EAAA;;;;;;;;;;;;;mDCpF1D,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,OAfE,aAAW;EAClB,KAAG,CAAA;oBAAqC,OAAA,gBAAgB,OAAA,QAAQ;6BAAqC,OAAA,cAAS;kBAAsC,OAAA;mBAAgC,OAAA;KAAwB,OAAA,GAAA;EAS5M,MAAM,OAAA;EACN,KAAK,OAAA,OAAI,SAAA;EACT,SAAS,OAAA;;kCAEF,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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AChB,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 +1 @@
1
- {"version":3,"file":"text.module.cjs","names":[],"sources":["../../../src/components/text/text.module.css"],"sourcesContent":[".root {\n -webkit-tap-highlight-color: transparent;\n text-decoration: none;\n font-size: var(--text-fz, var(--c-font-size-md));\n line-height: var(--text-lh, var(--c-line-height-md));\n font-weight: var(--c-font-weight-regular);\n text-wrap: var(--text-text-wrap, var(--c-text-wrap));\n margin: 0;\n padding: 0;\n\n &:where([data-truncate]) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:where([data-variant='gradient']) {\n background-image: var(--text-gradient);\n -webkit-text-fill-color: transparent;\n -webkit-background-clip: text;\n background-clip: text;\n }\n\n &:where([data-line-clamp]) {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: var(--text-line-clamp);\n -webkit-box-orient: vertical;\n }\n\n &:where([data-inherit]) {\n line-height: inherit;\n font-weight: inherit;\n font-size: inherit;\n }\n\n &:where([data-inline]) {\n line-height: 1;\n }\n}\n"],"mappings":";;AAAA,IAAA,sBAAe,EAAC,QAAO,aAAY"}
1
+ {"version":3,"file":"text.module.cjs","names":[],"sources":["../../../src/components/text/text.module.css"],"sourcesContent":[".root {\n -webkit-tap-highlight-color: transparent;\n text-decoration: none;\n font-size: var(--text-fz, var(--c-font-size-md));\n line-height: var(--text-lh, var(--c-line-height-md));\n font-weight: var(--c-font-weight-regular);\n text-wrap: var(--text-text-wrap, var(--c-text-wrap));\n margin: 0;\n padding: 0;\n\n &:where([data-truncate]) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:where([data-truncate='start']) {\n direction: rtl;\n text-align: end;\n\n @mixin where-rtl {\n direction: ltr;\n text-align: start;\n }\n }\n\n &:where([data-variant='gradient']) {\n background-image: var(--text-gradient);\n -webkit-text-fill-color: transparent;\n -webkit-background-clip: text;\n background-clip: text;\n }\n\n &:where([data-line-clamp]) {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: var(--text-line-clamp);\n -webkit-box-orient: vertical;\n }\n\n &:where([data-inherit]) {\n line-height: inherit;\n font-weight: inherit;\n font-size: inherit;\n }\n\n &:where([data-inline]) {\n line-height: 1;\n }\n}\n"],"mappings":";;AAAA,IAAA,sBAAe,EAAC,QAAO,aAAY"}
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/transition/get-transition-props/get-transition-props.ts
3
+ const defaultTransition = {
4
+ duration: 100,
5
+ transition: "fade"
6
+ };
7
+ function getTransitionProps(transitionProps, componentTransition) {
8
+ return {
9
+ ...defaultTransition,
10
+ ...componentTransition,
11
+ ...transitionProps
12
+ };
13
+ }
14
+ //#endregion
15
+ exports.getTransitionProps = getTransitionProps;
16
+
17
+ //# sourceMappingURL=get-transition-props.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transition-props.cjs","names":[],"sources":["../../../../src/components/transition/get-transition-props/get-transition-props.ts"],"sourcesContent":["import type { SetRequired } from 'type-fest'\nimport type { TransitionOverride } from '../transition.types'\n\ntype MinimalTransitionOverride = SetRequired<TransitionOverride, 'duration' | 'transition'>\n\nconst defaultTransition: MinimalTransitionOverride = {\n duration: 100,\n transition: 'fade',\n}\n\nexport function getTransitionProps(\n transitionProps: TransitionOverride | undefined,\n componentTransition: TransitionOverride | undefined\n): MinimalTransitionOverride {\n return { ...defaultTransition, ...componentTransition, ...transitionProps }\n}\n"],"mappings":";;AAKA,MAAM,oBAA+C;CACnD,UAAU;CACV,YAAY;AACd;AAEA,SAAgB,mBACd,iBACA,qBAC2B;CAC3B,OAAO;EAAE,GAAG;EAAmB,GAAG;EAAqB,GAAG;CAAgB;AAC5E"}
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ const require_transitions = require("../transitions.cjs");
3
+ //#region packages/@cck-ui/core/src/components/transition/get-transition-styles/get-transition-styles.ts
4
+ const transitionStatuses = {
5
+ entering: "in",
6
+ entered: "in",
7
+ exiting: "out",
8
+ exited: "out",
9
+ "pre-exiting": "out",
10
+ "pre-entering": "out"
11
+ };
12
+ function getTransitionStyles({ transition, state, duration, timingFunction }) {
13
+ const shared = {
14
+ WebkitBackfaceVisibility: "hidden",
15
+ transitionDuration: `${duration}ms`,
16
+ transitionTimingFunction: timingFunction
17
+ };
18
+ if (typeof transition === "string") {
19
+ if (!(transition in require_transitions.transitions)) return {};
20
+ return {
21
+ transitionProperty: require_transitions.transitions[transition].transitionProperty,
22
+ ...shared,
23
+ ...require_transitions.transitions[transition].common,
24
+ ...require_transitions.transitions[transition][transitionStatuses[state]]
25
+ };
26
+ }
27
+ return {
28
+ transitionProperty: transition.transitionProperty,
29
+ ...shared,
30
+ ...transition.common,
31
+ ...transition[transitionStatuses[state]]
32
+ };
33
+ }
34
+ //#endregion
35
+ exports.getTransitionStyles = getTransitionStyles;
36
+
37
+ //# sourceMappingURL=get-transition-styles.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transition-styles.cjs","names":["transitions"],"sources":["../../../../src/components/transition/get-transition-styles/get-transition-styles.ts"],"sourcesContent":["import { Properties } from 'csstype'\nimport { CTransition, transitions } from '../transitions'\n\nconst transitionStatuses = {\n entering: 'in',\n entered: 'in',\n exiting: 'out',\n exited: 'out',\n 'pre-exiting': 'out',\n 'pre-entering': 'out',\n} as const\n\nexport function getTransitionStyles({\n transition,\n state,\n duration,\n timingFunction,\n}: {\n transition: CTransition\n state: keyof typeof transitionStatuses\n duration: number\n timingFunction: Properties['transitionTimingFunction']\n}): Properties {\n const shared: Properties = {\n WebkitBackfaceVisibility: 'hidden',\n transitionDuration: `${duration}ms`,\n transitionTimingFunction: timingFunction,\n }\n\n if (typeof transition === 'string') {\n if (!(transition in transitions)) {\n return {}\n }\n\n return {\n transitionProperty: transitions[transition].transitionProperty,\n ...shared,\n ...transitions[transition].common,\n ...transitions[transition][transitionStatuses[state]],\n }\n }\n\n return {\n transitionProperty: transition.transitionProperty,\n ...shared,\n ...transition.common,\n ...transition[transitionStatuses[state]],\n }\n}\n"],"mappings":";;;AAGA,MAAM,qBAAqB;CACzB,UAAU;CACV,SAAS;CACT,SAAS;CACT,QAAQ;CACR,eAAe;CACf,gBAAgB;AAClB;AAEA,SAAgB,oBAAoB,EAClC,YACA,OACA,UACA,kBAMa;CACb,MAAM,SAAqB;EACzB,0BAA0B;EAC1B,oBAAoB,GAAG,SAAS;EAChC,0BAA0B;CAC5B;CAEA,IAAI,OAAO,eAAe,UAAU;EAClC,IAAI,EAAE,cAAcA,oBAAAA,cAClB,OAAO,CAAC;EAGV,OAAO;GACL,oBAAoBA,oBAAAA,YAAY,WAAW,CAAC;GAC5C,GAAG;GACH,GAAGA,oBAAAA,YAAY,WAAW,CAAC;GAC3B,GAAGA,oBAAAA,YAAY,WAAW,CAAC,mBAAmB;EAChD;CACF;CAEA,OAAO;EACL,oBAAoB,WAAW;EAC/B,GAAG;EACH,GAAG,WAAW;EACd,GAAG,WAAW,mBAAmB;CACnC;AACF"}
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ const require_install = require("../../core/utils/vue/install.cjs");
3
+ const require_transitions = require("./transitions.cjs");
4
+ const require_transition = require("./transition.cjs");
5
+ const require_get_transition_props = require("./get-transition-props/get-transition-props.cjs");
6
+ //#region packages/@cck-ui/core/src/components/transition/index.ts
7
+ const CTransition = require_install.withInstall(require_transition.default);
8
+ //#endregion
9
+ exports.CCK_TRANSITIONS = require_transitions.transitions;
10
+ exports.CTransition = CTransition;
11
+ exports.default = CTransition;
12
+ exports.getTransitionProps = require_get_transition_props.getTransitionProps;
13
+
14
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["withInstall","Transition"],"sources":["../../../src/components/transition/index.ts"],"sourcesContent":["import { SFCWithInstall, withInstall } from '../../core'\nimport Transition from './transition.vue'\nexport { transitions as CCK_TRANSITIONS } from './transitions'\nexport type { CTransition as CckTransition } from './transitions'\nexport { getTransitionProps } from './get-transition-props/get-transition-props'\n\nexport const CTransition: SFCWithInstall<typeof Transition> = withInstall(Transition)\nexport default CTransition\n\nexport * from './transition.types'\n"],"mappings":";;;;;;AAMA,MAAa,cAAiDA,gBAAAA,YAAYC,mBAAAA,OAAU"}
@@ -0,0 +1,140 @@
1
+ "use client";
2
+ const require_export_helper = require("../../_virtual/_/plugin-vue/export-helper.cjs");
3
+ const require_config_provider_context = require("../../core/config-provider/config-provider.context.cjs");
4
+ const require_use_transition = require("./use-transition.cjs");
5
+ const require_get_transition_styles = require("./get-transition-styles/get-transition-styles.cjs");
6
+ let vue = require("vue");
7
+ //#region packages/@cck-ui/core/src/components/transition/transition.vue
8
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
9
+ name: "CTransition",
10
+ __name: "transition",
11
+ props: {
12
+ keepMounted: {
13
+ type: Boolean,
14
+ required: false
15
+ },
16
+ keepMountedMode: {
17
+ type: String,
18
+ required: false,
19
+ default: "activity"
20
+ },
21
+ transition: {
22
+ type: [String, Object],
23
+ required: false,
24
+ default: "fade"
25
+ },
26
+ duration: {
27
+ type: Number,
28
+ required: false,
29
+ default: 250
30
+ },
31
+ exitDuration: {
32
+ type: Number,
33
+ required: false
34
+ },
35
+ timingFunction: {
36
+ type: String,
37
+ required: false,
38
+ default: "ease"
39
+ },
40
+ mounted: {
41
+ type: Boolean,
42
+ required: true
43
+ },
44
+ onExited: {
45
+ type: Function,
46
+ required: false
47
+ },
48
+ onExit: {
49
+ type: Function,
50
+ required: false
51
+ },
52
+ onEnter: {
53
+ type: Function,
54
+ required: false
55
+ },
56
+ onEntered: {
57
+ type: Function,
58
+ required: false
59
+ },
60
+ enterDelay: {
61
+ type: Number,
62
+ required: false
63
+ },
64
+ exitDelay: {
65
+ type: Number,
66
+ required: false
67
+ }
68
+ },
69
+ setup(__props, { expose: __expose }) {
70
+ __expose();
71
+ const props = __props;
72
+ const env = require_config_provider_context.useCckEnv();
73
+ const mountedRef = (0, vue.toRef)(props, "mounted");
74
+ const { transitionDuration, transitionStatus, transitionTimingFunction } = require_use_transition.useTransition({
75
+ mounted: mountedRef,
76
+ exitDuration: props.exitDuration ?? props.duration,
77
+ duration: props.duration,
78
+ timingFunction: props.timingFunction,
79
+ onEnter: props.onEnter,
80
+ onEntered: props.onEntered,
81
+ onExit: props.onExit,
82
+ onExited: props.onExited,
83
+ enterDelay: props.enterDelay,
84
+ exitDelay: props.exitDelay
85
+ });
86
+ const __returned__ = {
87
+ props,
88
+ env,
89
+ mountedRef,
90
+ transitionDuration,
91
+ transitionStatus,
92
+ transitionTimingFunction,
93
+ shouldRenderSlot: (0, vue.computed)(() => {
94
+ if (props.keepMounted) return true;
95
+ return transitionStatus.value !== "exited";
96
+ }),
97
+ computedStyles: (0, vue.computed)(() => {
98
+ if (env === "test") return props.mounted ? {} : props.keepMounted ? { display: "none" } : void 0;
99
+ const dur = transitionDuration.value;
100
+ const status = transitionStatus.value;
101
+ if (dur === 0) {
102
+ if (props.keepMounted) return props.mounted ? {} : { display: "none" };
103
+ return props.mounted ? {} : void 0;
104
+ }
105
+ const isExited = status === "exited";
106
+ if (props.keepMounted) {
107
+ if (isExited) return { display: "none" };
108
+ return require_get_transition_styles.getTransitionStyles({
109
+ transition: props.transition,
110
+ duration: dur,
111
+ state: status,
112
+ timingFunction: transitionTimingFunction
113
+ });
114
+ }
115
+ return isExited ? void 0 : require_get_transition_styles.getTransitionStyles({
116
+ transition: props.transition,
117
+ duration: dur,
118
+ state: status,
119
+ timingFunction: transitionTimingFunction
120
+ });
121
+ })
122
+ };
123
+ Object.defineProperty(__returned__, "__isScriptSetup", {
124
+ enumerable: false,
125
+ value: true
126
+ });
127
+ return __returned__;
128
+ }
129
+ });
130
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
131
+ return $setup.shouldRenderSlot ? (0, vue.renderSlot)(_ctx.$slots, "default", {
132
+ key: 0,
133
+ styles: $setup.computedStyles
134
+ }) : (0, vue.createCommentVNode)("v-if", true);
135
+ }
136
+ var transition_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/transition/transition.vue"]]);
137
+ //#endregion
138
+ exports.default = transition_default;
139
+
140
+ //# sourceMappingURL=transition.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.cjs","names":[],"sources":["../../../src/components/transition/transition.vue"],"sourcesContent":["<template>\n <template v-if=\"shouldRenderSlot\">\n <slot :styles=\"computedStyles\" />\n </template>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, toRef } from 'vue'\nimport { useCckEnv } from '../../core'\nimport { TransitionProps } from './transition.types'\nimport { useTransition } from './use-transition'\nimport { getTransitionStyles } from './get-transition-styles/get-transition-styles'\n\ndefineOptions({\n name: 'CTransition',\n})\n\nconst props = withDefaults(defineProps<TransitionProps>(), {\n keepMountedMode: 'activity',\n transition: 'fade',\n duration: 250,\n timingFunction: 'ease',\n})\n\nconst env = useCckEnv()\n\nconst mountedRef = toRef(props, 'mounted')\n\nconst { transitionDuration, transitionStatus, transitionTimingFunction } = useTransition({\n mounted: mountedRef,\n exitDuration: props.exitDuration ?? props.duration,\n duration: props.duration,\n timingFunction: props.timingFunction,\n onEnter: props.onEnter,\n onEntered: props.onEntered,\n onExit: props.onExit,\n onExited: props.onExited,\n enterDelay: props.enterDelay,\n exitDelay: props.exitDelay,\n})\n\nconst shouldRenderSlot = computed(() => {\n if (props.keepMounted) {\n return true\n }\n const status = transitionStatus.value\n return status !== 'exited'\n})\n\nconst computedStyles = computed(() => {\n if (env === 'test') {\n return props.mounted ? {} : props.keepMounted ? { display: 'none' } : undefined\n }\n\n const dur = transitionDuration.value\n const status = transitionStatus.value\n\n if (dur === 0) {\n if (props.keepMounted) {\n return props.mounted ? {} : { display: 'none' }\n }\n return props.mounted ? {} : undefined\n }\n\n const isExited = status === 'exited'\n\n if (props.keepMounted) {\n if (isExited) {\n return { display: 'none' }\n }\n\n return getTransitionStyles({\n transition: props.transition,\n duration: dur,\n state: status,\n timingFunction: transitionTimingFunction,\n })\n }\n\n return isExited\n ? undefined\n : getTransitionStyles({\n transition: props.transition,\n duration: dur,\n state: status,\n timingFunction: transitionTimingFunction,\n })\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBA,MAAM,QAAQ;EAOd,MAAM,MAAM,gCAAA,UAAU;EAEtB,MAAM,cAAA,GAAA,IAAA,MAAA,CAAmB,OAAO,SAAS;EAEzC,MAAM,EAAE,oBAAoB,kBAAkB,6BAA6B,uBAAA,cAAc;GACvF,SAAS;GACT,cAAc,MAAM,gBAAgB,MAAM;GAC1C,UAAU,MAAM;GAChB,gBAAgB,MAAM;GACtB,SAAS,MAAM;GACf,WAAW,MAAM;GACjB,QAAQ,MAAM;GACd,UAAU,MAAM;GAChB,YAAY,MAAM;GAClB,WAAW,MAAM;EACnB,CAAC;;;;;;;;6CAEuC;IACtC,IAAI,MAAM,aACR,OAAO;IAGT,OADe,iBAAiB,UACd;GACpB,CAAA;2CAEsC;IACpC,IAAI,QAAQ,QACV,OAAO,MAAM,UAAU,CAAC,IAAI,MAAM,cAAc,EAAE,SAAS,OAAO,IAAI,KAAA;IAGxE,MAAM,MAAM,mBAAmB;IAC/B,MAAM,SAAS,iBAAiB;IAEhC,IAAI,QA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