@cck-ui/core 0.4.10 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) 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/button.cjs +71 -63
  10. package/cjs/components/button/button.cjs.map +1 -1
  11. package/cjs/components/button/button.utils.cjs +28 -0
  12. package/cjs/components/button/button.utils.cjs.map +1 -0
  13. package/cjs/components/button/index.cjs +13 -5
  14. package/cjs/components/button/index.cjs.map +1 -1
  15. package/cjs/components/grid/col/col.cjs +33 -16
  16. package/cjs/components/grid/col/col.cjs.map +1 -1
  17. package/cjs/components/grid/grid.cjs +63 -34
  18. package/cjs/components/grid/grid.cjs.map +1 -1
  19. package/cjs/components/grid/grid.constants.cjs.map +1 -1
  20. package/cjs/components/grid/grid.utils.cjs +11 -0
  21. package/cjs/components/grid/grid.utils.cjs.map +1 -0
  22. package/cjs/components/grid/index.cjs +7 -2
  23. package/cjs/components/grid/index.cjs.map +1 -1
  24. package/cjs/components/group/group.cjs +78 -62
  25. package/cjs/components/group/group.cjs.map +1 -1
  26. package/cjs/components/group/group.utils.cjs +14 -0
  27. package/cjs/components/group/group.utils.cjs.map +1 -0
  28. package/cjs/components/group/index.cjs +5 -1
  29. package/cjs/components/group/index.cjs.map +1 -1
  30. package/cjs/components/loader/index.cjs +5 -1
  31. package/cjs/components/loader/index.cjs.map +1 -1
  32. package/cjs/components/loader/loader.cjs +50 -41
  33. package/cjs/components/loader/loader.cjs.map +1 -1
  34. package/cjs/components/loader/loader.module.cjs.map +1 -1
  35. package/cjs/components/loader/loader.utils.cjs +12 -0
  36. package/cjs/components/loader/loader.utils.cjs.map +1 -0
  37. package/cjs/components/loader/loaders/bars.cjs +6 -3
  38. package/cjs/components/loader/loaders/bars.cjs.map +1 -1
  39. package/cjs/components/loader/loaders/dots.cjs +6 -3
  40. package/cjs/components/loader/loaders/dots.cjs.map +1 -1
  41. package/cjs/components/loader/loaders/oval.cjs +6 -3
  42. package/cjs/components/loader/loaders/oval.cjs.map +1 -1
  43. package/cjs/components/simple-grid/index.cjs +4 -1
  44. package/cjs/components/simple-grid/index.cjs.map +1 -1
  45. package/cjs/components/simple-grid/simple-grid.cjs +46 -21
  46. package/cjs/components/simple-grid/simple-grid.cjs.map +1 -1
  47. package/cjs/components/text/index.cjs +5 -1
  48. package/cjs/components/text/index.cjs.map +1 -1
  49. package/cjs/components/text/text.cjs +46 -39
  50. package/cjs/components/text/text.cjs.map +1 -1
  51. package/cjs/components/text/text.utils.cjs +15 -0
  52. package/cjs/components/text/text.utils.cjs.map +1 -0
  53. package/cjs/components/unstyled-button/index.cjs +4 -1
  54. package/cjs/components/unstyled-button/index.cjs.map +1 -1
  55. package/cjs/components/unstyled-button/unstyled-button.cjs +37 -22
  56. package/cjs/components/unstyled-button/unstyled-button.cjs.map +1 -1
  57. package/cjs/core/box/box.cjs +39 -27
  58. package/cjs/core/box/box.cjs.map +1 -1
  59. package/cjs/core/box/get-box-style/get-box-style.cjs.map +1 -1
  60. package/cjs/core/box/style-props/extract-style-props/extract-style-props.cjs.map +1 -1
  61. package/cjs/core/box/style-props/parse-style-props/sort-media-queries.cjs.map +1 -1
  62. package/cjs/core/box/style-props/resolvers/border-resolver/border-resolver.cjs.map +1 -1
  63. package/cjs/core/box/style-props/resolvers/color-resolver/color-resolver.cjs.map +1 -1
  64. package/cjs/core/box/style-props/resolvers/font-family-resolver/font-family-resolver.cjs.map +1 -1
  65. package/cjs/core/box/style-props/resolvers/index.cjs.map +1 -1
  66. package/cjs/core/box/style-props/style-props-data.cjs.map +1 -1
  67. package/cjs/core/config-provider/color-functions/get-gradient/get-gradient.cjs +3 -3
  68. package/cjs/core/config-provider/color-functions/get-gradient/get-gradient.cjs.map +1 -1
  69. package/cjs/core/config-provider/color-functions/rgba/rgba.cjs +8 -0
  70. package/cjs/core/config-provider/color-functions/rgba/rgba.cjs.map +1 -1
  71. package/cjs/core/config-provider/color-functions/to-rgba/to-rgba.cjs.map +1 -1
  72. package/cjs/core/config-provider/config-provider.cjs +33 -22
  73. package/cjs/core/config-provider/config-provider.cjs.map +1 -1
  74. package/cjs/core/config-provider/default-colors.cjs.map +1 -1
  75. package/cjs/core/config-provider/index.cjs +5 -0
  76. package/cjs/core/config-provider/index.cjs.map +1 -1
  77. package/cjs/core/config-provider/merge-cck-theme/merge-cck-theme.cjs +2 -2
  78. package/cjs/core/config-provider/merge-cck-theme/merge-cck-theme.cjs.map +1 -1
  79. package/cjs/core/config-provider/merge-theme-overrides/merge-theme-overrides.cjs +10 -0
  80. package/cjs/core/config-provider/merge-theme-overrides/merge-theme-overrides.cjs.map +1 -0
  81. package/cjs/core/config-provider/use-component-props/use-component-props.cjs +35 -0
  82. package/cjs/core/config-provider/use-component-props/use-component-props.cjs.map +1 -0
  83. package/cjs/core/responsive-style-manager/css-object-to-string/css-object-to-string.cjs.map +1 -1
  84. package/cjs/core/responsive-style-manager/normalize-number-like-string-prop/normalize-number-like-string-prop.cjs +1 -1
  85. package/cjs/core/responsive-style-manager/normalize-number-like-string-prop/normalize-number-like-string-prop.cjs.map +1 -1
  86. package/cjs/core/responsive-style-manager/responsive-style-manager.cjs.map +1 -1
  87. package/cjs/core/responsive-style-manager/styles-to-string/styles-to-string.cjs.map +1 -1
  88. package/cjs/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.cjs.map +1 -1
  89. package/cjs/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.cjs.map +1 -1
  90. package/cjs/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.cjs.map +1 -1
  91. package/cjs/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.cjs.map +1 -1
  92. package/cjs/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.cjs.map +1 -1
  93. package/cjs/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.cjs.map +1 -1
  94. package/cjs/core/utils/deep-merge/deep-merge.cjs +18 -0
  95. package/cjs/core/utils/deep-merge/deep-merge.cjs.map +1 -0
  96. package/cjs/core/utils/get-breakpoint-value/get-breakpoint-value.cjs.map +1 -1
  97. package/cjs/core/utils/get-size/get-size.cjs +2 -2
  98. package/cjs/core/utils/get-size/get-size.cjs.map +1 -1
  99. package/cjs/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.cjs.map +1 -1
  100. package/cjs/core/utils/number-like-string-to-number/number-like-string-to-number.cjs.map +1 -1
  101. package/cjs/core/utils/units-converters/px.cjs.map +1 -1
  102. package/cjs/core/utils/units-converters/rem.cjs.map +1 -1
  103. package/cjs/core/utils/vue/component.cjs.map +1 -1
  104. package/cjs/core/utils/vue/install.cjs +3 -3
  105. package/cjs/core/utils/vue/install.cjs.map +1 -1
  106. package/cjs/core/utils/vue/statics.cjs +38 -0
  107. package/cjs/core/utils/vue/statics.cjs.map +1 -0
  108. package/cjs/index.cjs +12 -6
  109. package/cjs/index.cjs.map +1 -1
  110. package/esm/components/button/button-group/button-group.mjs +61 -35
  111. package/esm/components/button/button-group/button-group.mjs.map +1 -1
  112. package/esm/components/button/button-group/button-group.utils.mjs +9 -0
  113. package/esm/components/button/button-group/button-group.utils.mjs.map +1 -0
  114. package/esm/components/button/button-group-section/button-group-section.mjs +55 -50
  115. package/esm/components/button/button-group-section/button-group-section.mjs.map +1 -1
  116. package/esm/components/button/button-group-section/button-group-section.utils.mjs +26 -0
  117. package/esm/components/button/button-group-section/button-group-section.utils.mjs.map +1 -0
  118. package/esm/components/button/button.mjs +71 -63
  119. package/esm/components/button/button.mjs.map +1 -1
  120. package/esm/components/button/button.utils.mjs +29 -0
  121. package/esm/components/button/button.utils.mjs.map +1 -0
  122. package/esm/components/button/index.mjs +13 -5
  123. package/esm/components/button/index.mjs.map +1 -1
  124. package/esm/components/grid/col/col.mjs +34 -17
  125. package/esm/components/grid/col/col.mjs.map +1 -1
  126. package/esm/components/grid/grid.constants.mjs.map +1 -1
  127. package/esm/components/grid/grid.mjs +63 -34
  128. package/esm/components/grid/grid.mjs.map +1 -1
  129. package/esm/components/grid/grid.utils.mjs +12 -0
  130. package/esm/components/grid/grid.utils.mjs.map +1 -0
  131. package/esm/components/grid/index.mjs +6 -2
  132. package/esm/components/grid/index.mjs.map +1 -1
  133. package/esm/components/group/group.mjs +78 -62
  134. package/esm/components/group/group.mjs.map +1 -1
  135. package/esm/components/group/group.utils.mjs +15 -0
  136. package/esm/components/group/group.utils.mjs.map +1 -0
  137. package/esm/components/group/index.mjs +4 -2
  138. package/esm/components/group/index.mjs.map +1 -1
  139. package/esm/components/loader/index.mjs +4 -1
  140. package/esm/components/loader/index.mjs.map +1 -1
  141. package/esm/components/loader/loader.mjs +50 -41
  142. package/esm/components/loader/loader.mjs.map +1 -1
  143. package/esm/components/loader/loader.module.mjs.map +1 -1
  144. package/esm/components/loader/loader.utils.mjs +13 -0
  145. package/esm/components/loader/loader.utils.mjs.map +1 -0
  146. package/esm/components/loader/loaders/bars.mjs +7 -4
  147. package/esm/components/loader/loaders/bars.mjs.map +1 -1
  148. package/esm/components/loader/loaders/dots.mjs +7 -4
  149. package/esm/components/loader/loaders/dots.mjs.map +1 -1
  150. package/esm/components/loader/loaders/oval.mjs +7 -4
  151. package/esm/components/loader/loaders/oval.mjs.map +1 -1
  152. package/esm/components/simple-grid/index.mjs +3 -2
  153. package/esm/components/simple-grid/index.mjs.map +1 -1
  154. package/esm/components/simple-grid/simple-grid.mjs +47 -22
  155. package/esm/components/simple-grid/simple-grid.mjs.map +1 -1
  156. package/esm/components/text/index.mjs +4 -2
  157. package/esm/components/text/index.mjs.map +1 -1
  158. package/esm/components/text/text.mjs +46 -39
  159. package/esm/components/text/text.mjs.map +1 -1
  160. package/esm/components/text/text.utils.mjs +16 -0
  161. package/esm/components/text/text.utils.mjs.map +1 -0
  162. package/esm/components/unstyled-button/index.mjs +3 -2
  163. package/esm/components/unstyled-button/index.mjs.map +1 -1
  164. package/esm/components/unstyled-button/unstyled-button.mjs +38 -23
  165. package/esm/components/unstyled-button/unstyled-button.mjs.map +1 -1
  166. package/esm/core/box/box.mjs +40 -28
  167. package/esm/core/box/box.mjs.map +1 -1
  168. package/esm/core/box/get-box-style/get-box-style.mjs.map +1 -1
  169. package/esm/core/box/style-props/extract-style-props/extract-style-props.mjs.map +1 -1
  170. package/esm/core/box/style-props/parse-style-props/sort-media-queries.mjs.map +1 -1
  171. package/esm/core/box/style-props/resolvers/border-resolver/border-resolver.mjs.map +1 -1
  172. package/esm/core/box/style-props/resolvers/color-resolver/color-resolver.mjs.map +1 -1
  173. package/esm/core/box/style-props/resolvers/font-family-resolver/font-family-resolver.mjs.map +1 -1
  174. package/esm/core/box/style-props/resolvers/index.mjs.map +1 -1
  175. package/esm/core/box/style-props/style-props-data.mjs.map +1 -1
  176. package/esm/core/config-provider/color-functions/get-gradient/get-gradient.mjs +3 -3
  177. package/esm/core/config-provider/color-functions/get-gradient/get-gradient.mjs.map +1 -1
  178. package/esm/core/config-provider/color-functions/rgba/rgba.mjs +8 -1
  179. package/esm/core/config-provider/color-functions/rgba/rgba.mjs.map +1 -1
  180. package/esm/core/config-provider/color-functions/to-rgba/to-rgba.mjs.map +1 -1
  181. package/esm/core/config-provider/config-provider.mjs +33 -22
  182. package/esm/core/config-provider/config-provider.mjs.map +1 -1
  183. package/esm/core/config-provider/default-colors.mjs.map +1 -1
  184. package/esm/core/config-provider/index.mjs +4 -2
  185. package/esm/core/config-provider/index.mjs.map +1 -1
  186. package/esm/core/config-provider/merge-cck-theme/merge-cck-theme.mjs +2 -2
  187. package/esm/core/config-provider/merge-cck-theme/merge-cck-theme.mjs.map +1 -1
  188. package/esm/core/config-provider/merge-theme-overrides/merge-theme-overrides.mjs +10 -0
  189. package/esm/core/config-provider/merge-theme-overrides/merge-theme-overrides.mjs.map +1 -0
  190. package/esm/core/config-provider/use-component-props/use-component-props.mjs +35 -0
  191. package/esm/core/config-provider/use-component-props/use-component-props.mjs.map +1 -0
  192. package/esm/core/responsive-style-manager/css-object-to-string/css-object-to-string.mjs.map +1 -1
  193. package/esm/core/responsive-style-manager/normalize-number-like-string-prop/normalize-number-like-string-prop.mjs +1 -1
  194. package/esm/core/responsive-style-manager/normalize-number-like-string-prop/normalize-number-like-string-prop.mjs.map +1 -1
  195. package/esm/core/responsive-style-manager/responsive-style-manager.mjs.map +1 -1
  196. package/esm/core/responsive-style-manager/styles-to-string/styles-to-string.mjs.map +1 -1
  197. package/esm/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.mjs.map +1 -1
  198. package/esm/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.mjs.map +1 -1
  199. package/esm/core/styles-api/use-styles/get-class-name/get-root-class-name/get-root-class-name.mjs.map +1 -1
  200. package/esm/core/styles-api/use-styles/get-class-name/get-selector-class-name/get-selector-class-name.mjs.map +1 -1
  201. package/esm/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.mjs.map +1 -1
  202. package/esm/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.mjs.map +1 -1
  203. package/esm/core/utils/deep-merge/deep-merge.mjs +18 -0
  204. package/esm/core/utils/deep-merge/deep-merge.mjs.map +1 -0
  205. package/esm/core/utils/get-breakpoint-value/get-breakpoint-value.mjs.map +1 -1
  206. package/esm/core/utils/get-size/get-size.mjs +2 -2
  207. package/esm/core/utils/get-size/get-size.mjs.map +1 -1
  208. package/esm/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.mjs.map +1 -1
  209. package/esm/core/utils/number-like-string-to-number/number-like-string-to-number.mjs.map +1 -1
  210. package/esm/core/utils/units-converters/px.mjs.map +1 -1
  211. package/esm/core/utils/units-converters/rem.mjs.map +1 -1
  212. package/esm/core/utils/vue/component.mjs.map +1 -1
  213. package/esm/core/utils/vue/install.mjs +2 -2
  214. package/esm/core/utils/vue/install.mjs.map +1 -1
  215. package/esm/core/utils/vue/statics.mjs +35 -0
  216. package/esm/core/utils/vue/statics.mjs.map +1 -0
  217. package/esm/index.mjs +6 -4
  218. package/esm/index.mjs.map +1 -1
  219. package/lib/components/button/button-group/button-group.utils.d.ts +6 -0
  220. package/lib/components/button/button-group-section/button-group-section.utils.d.ts +7 -0
  221. package/lib/components/button/button.utils.d.ts +9 -0
  222. package/lib/components/button/index.d.ts +7 -7
  223. package/lib/components/grid/grid.utils.d.ts +9 -0
  224. package/lib/components/grid/index.d.ts +6 -5
  225. package/lib/components/group/group.utils.d.ts +7 -0
  226. package/lib/components/group/index.d.ts +3 -2
  227. package/lib/components/loader/index.d.ts +3 -2
  228. package/lib/components/loader/loader.utils.d.ts +9 -0
  229. package/lib/components/simple-grid/index.d.ts +3 -2
  230. package/lib/components/stack/index.d.ts +6 -0
  231. package/lib/components/stack/stack.types.d.ts +29 -0
  232. package/lib/components/stack/stack.utils.d.ts +6 -0
  233. package/lib/components/text/index.d.ts +3 -2
  234. package/lib/components/text/text.utils.d.ts +8 -0
  235. package/lib/components/unstyled-button/index.d.ts +3 -2
  236. package/lib/core/config-provider/color-functions/index.d.ts +1 -1
  237. package/lib/core/config-provider/color-functions/rgba/rgba.d.ts +1 -0
  238. package/lib/core/config-provider/index.d.ts +2 -0
  239. package/lib/core/config-provider/merge-theme-overrides/merge-theme-overrides.d.ts +2 -0
  240. package/lib/core/config-provider/use-component-props/use-component-props.d.ts +7 -0
  241. package/lib/core/responsive-style-manager/responsive-style-manager.d.ts +1 -0
  242. package/lib/core/styles-api/index.d.ts +1 -1
  243. package/lib/core/styles-api/use-styles/get-class-name/get-options-class-names/get-options-class-names.d.ts +1 -1
  244. package/lib/core/styles-api/use-styles/get-class-name/get-resolved-class-names/get-resolved-class-names.d.ts +1 -1
  245. package/lib/core/styles-api/use-styles/get-class-name/get-static-class-names/get-static-class-names.d.ts +1 -1
  246. package/lib/core/styles-api/use-styles/get-class-name/get-variant-class-name/get-variant-class-name.d.ts +1 -1
  247. package/lib/core/utils/deep-merge/deep-merge.d.ts +1 -0
  248. package/lib/core/utils/index.d.ts +4 -5
  249. package/lib/core/utils/vue/index.d.ts +1 -0
  250. package/lib/core/utils/vue/statics.d.ts +14 -0
  251. package/lib/core/utils/vue/typescript.d.ts +8 -0
  252. package/package.json +2 -1
  253. package/styles/loader.css +1 -2
  254. package/styles/loader.layer.css +1 -2
  255. package/styles/stack.css +7 -0
  256. package/styles/stack.layer.css +8 -0
  257. package/styles.css +9 -2
  258. package/styles.layer.css +9 -2
  259. package/cjs/components/loader/use-loader.cjs +0 -10
  260. package/cjs/components/loader/use-loader.cjs.map +0 -1
  261. package/cjs/core/utils/color.cjs +0 -112
  262. package/cjs/core/utils/color.cjs.map +0 -1
  263. package/cjs/core/utils/dom/style.cjs +0 -13
  264. package/cjs/core/utils/dom/style.cjs.map +0 -1
  265. package/esm/components/loader/use-loader.mjs +0 -10
  266. package/esm/components/loader/use-loader.mjs.map +0 -1
  267. package/esm/core/utils/color.mjs +0 -110
  268. package/esm/core/utils/color.mjs.map +0 -1
  269. package/esm/core/utils/dom/style.mjs +0 -12
  270. package/esm/core/utils/dom/style.mjs.map +0 -1
  271. package/lib/core/utils/color.d.ts +0 -11
  272. package/lib/core/utils/dom/index.d.ts +0 -1
  273. package/lib/core/utils/dom/style.d.ts +0 -1
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require_export_helper = require("../../../_virtual/_/plugin-vue/export-helper.cjs");
4
+ const require_index = require("../../../core/box/index.cjs");
4
5
  const require_loader_module = require("../loader.module.cjs");
5
6
  let vue = require("vue");
6
7
  let clsx = require("clsx");
@@ -323,7 +324,10 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
323
324
  __expose();
324
325
  const __returned__ = {
325
326
  others: (0, vue.createPropsRestProxy)(__props, ["className", "attributes"]),
326
- loaderClass: (0, clsx.default)(require_loader_module.default.ovalLoader, __props.className)
327
+ loaderClass: (0, clsx.default)(require_loader_module.default.ovalLoader, __props.className),
328
+ get CBox() {
329
+ return require_index.CBox;
330
+ }
327
331
  };
328
332
  Object.defineProperty(__returned__, "__isScriptSetup", {
329
333
  enumerable: false,
@@ -333,8 +337,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
333
337
  }
334
338
  });
335
339
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
336
- const _component_c_box = (0, vue.resolveComponent)("c-box");
337
- return (0, vue.openBlock)(), (0, vue.createBlock)(_component_c_box, (0, vue.mergeProps)({ tag: "span" }, $setup.others, { class: $setup.loaderClass }), null, 16, ["class"]);
340
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ tag: "span" }, $setup.others, { className: $setup.loaderClass }), null, 16, ["className"]);
338
341
  }
339
342
  var oval_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/loader/loaders/oval.vue"]]);
340
343
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"oval.cjs","names":[],"sources":["../../../../src/components/loader/loaders/oval.vue"],"sourcesContent":["<template>\n <c-box tag=\"span\" v-bind=\"others\" :class=\"loaderClass\" />\n</template>\n\n<script setup lang=\"ts\">\nimport cx from 'clsx'\nimport type { LoaderProps } from '../loader.types'\nimport classes from '../loader.module.css'\n\nconst { className, attributes, ...others } = defineProps<LoaderProps>()\n\nconst loaderClass = cx(classes.ovalLoader, className)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAS6C,SAAA,CAAA,aAAA,YAAA,CAAA;kCAEtB,sBAAA,QAAQ,YAAY,QAAA,SAAA;;;;;;;;;;;mDAVgB,mBAAA,GAAA,IAAA,WAAA,CAAA,EAAlD,KAAI,OAAM,GAAS,OAAA,QAAM,EAAG,OAAO,OAAA,YAAW,CAAA,GAAA,MAAA,IAAA,CAAA,OAAA,CAAA"}
1
+ {"version":3,"file":"oval.cjs","names":[],"sources":["../../../../src/components/loader/loaders/oval.vue"],"sourcesContent":["<template>\n <c-box tag=\"span\" v-bind=\"others\" :className=\"loaderClass\" />\n</template>\n\n<script setup lang=\"ts\">\nimport cx from 'clsx'\nimport { CBox } from '../../../core'\nimport type { LoaderProps } from '../loader.types'\nimport classes from '../loader.module.css'\n\nconst { className, attributes, ...others } = defineProps<LoaderProps>()\n\nconst loaderClass = cx(classes.ovalLoader, className)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAU6C,SAAA,CAAA,aAAA,YAAA,CAAA;kCAEtB,sBAAA,QAAQ,YAAY,QAAA,SAAA;;;;;;;;;;;;;mDAXoB,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAAtD,KAAI,OAAM,GAAS,OAAA,QAAM,EAAG,WAAW,OAAA,YAAW,CAAA,GAAA,MAAA,IAAA,CAAA,WAAA,CAAA"}
@@ -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_simple_grid_module = require("./simple-grid.module.cjs");
3
5
  const require_simple_grid = require("./simple-grid.cjs");
4
6
  //#region packages/@cck-ui/core/src/components/simple-grid/index.ts
5
- const CSimpleGrid = require_install.withInstall(require_simple_grid.default);
7
+ const SimpleGridWithStatic = require_statics.withPropsFactory(require_statics.withExtend(require_statics.withClasses(require_simple_grid.default, require_simple_grid_module.default)));
8
+ const CSimpleGrid = require_install.withInstall(SimpleGridWithStatic);
6
9
  //#endregion
7
10
  exports.CSimpleGrid = CSimpleGrid;
8
11
  exports.default = CSimpleGrid;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["withInstall","SimpleGrid"],"sources":["../../../src/components/simple-grid/index.ts"],"sourcesContent":["import { SFCWithInstall, withInstall } from '../../core'\nimport SimpleGrid from './simple-grid.vue'\n\nexport const CSimpleGrid: SFCWithInstall<typeof SimpleGrid> = withInstall(SimpleGrid)\nexport default CSimpleGrid\n\nexport * from './simple-grid.types'\n"],"mappings":";;;;AAGA,MAAa,cAAiDA,gBAAAA,YAAYC,oBAAAA,OAAU"}
1
+ {"version":3,"file":"index.cjs","names":["withPropsFactory","withExtend","withClasses","SimpleGrid","classes","withInstall"],"sources":["../../../src/components/simple-grid/index.ts"],"sourcesContent":["import {\n SFCWithInstallAndClasses,\n withClasses,\n withExtend,\n withInstall,\n withPropsFactory,\n} from '../../core'\nimport SimpleGrid from './simple-grid.vue'\nimport classes from './simple-grid.module.css'\n\nconst SimpleGridWithStatic = withPropsFactory(withExtend(withClasses(SimpleGrid, classes)))\n\nexport const CSimpleGrid: SFCWithInstallAndClasses<typeof SimpleGrid, typeof classes> =\n withInstall(SimpleGridWithStatic)\nexport default CSimpleGrid\n\nexport * from './simple-grid.types'\n"],"mappings":";;;;;;AAUA,MAAM,uBAAuBA,gBAAAA,iBAAiBC,gBAAAA,WAAWC,gBAAAA,YAAYC,oBAAAA,SAAYC,2BAAAA,OAAO,CAAC,CAAC;AAE1F,MAAa,cACXC,gBAAAA,YAAY,oBAAoB"}
@@ -1,5 +1,6 @@
1
1
  "use client";
2
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");
3
4
  const require_responsive_style_manager = require("../../core/responsive-style-manager/responsive-style-manager.cjs");
4
5
  const require_use_random_classname = require("../../core/box/use-random-classname/use-random-classname.cjs");
5
6
  const require_index = require("../../core/box/index.cjs");
@@ -14,13 +15,11 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
14
15
  props: {
15
16
  cols: {
16
17
  type: null,
17
- required: false,
18
- default: 1
18
+ required: false
19
19
  },
20
20
  spacing: {
21
21
  type: null,
22
- required: false,
23
- default: "md"
22
+ required: false
24
23
  },
25
24
  verticalSpacing: {
26
25
  type: null,
@@ -28,8 +27,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
28
27
  },
29
28
  type: {
30
29
  type: String,
31
- required: false,
32
- default: "media"
30
+ required: false
33
31
  },
34
32
  minColWidth: {
35
33
  type: null,
@@ -334,8 +332,15 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
334
332
  }
335
333
  },
336
334
  setup(__props, { expose: __expose }) {
337
- __expose();
338
- const props = __props;
335
+ const _container = (0, vue.ref)(null);
336
+ const _root = (0, vue.ref)(null);
337
+ const attrs = (0, vue.useAttrs)();
338
+ const rawProps = __props;
339
+ const props = require_use_component_props.useComponentProps({
340
+ component: "CSimpleGrid",
341
+ defaultProps: {},
342
+ props: rawProps
343
+ });
339
344
  const knownProps = [
340
345
  "classNames",
341
346
  "className",
@@ -355,21 +360,27 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
355
360
  const getStyles = require_use_styles.useStyles({
356
361
  name: "SimpleGrid",
357
362
  classes: require_simple_grid_module.default,
358
- props,
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
363
+ props: {
364
+ ...props.value,
365
+ ...attrs
366
+ },
367
+ className: props.value.className,
368
+ style: props.value.style,
369
+ classNames: props.value.classNames,
370
+ styles: props.value.styles,
371
+ unstyled: props.value.unstyled,
372
+ attributes: props.value.attributes,
373
+ vars: props.value.vars
366
374
  });
367
375
  const responsiveClassname = require_use_random_classname.useRandomClassName();
368
- const autoColsAttr = props.minColWidth !== void 0 ? props.autoFlow || "auto-fill" : void 0;
376
+ const autoColsAttr = props.value.minColWidth !== void 0 ? props.value.autoFlow || "auto-fill" : void 0;
369
377
  const rootAttrs = (0, vue.computed)(() => getStyles("root", { className: responsiveClassname }));
370
378
  const mergedRootAttrs = (0, vue.computed)(() => {
371
379
  const others = {};
372
- for (const key in props) if (!knownProps.includes(key)) others[key] = props[key];
380
+ const propsValue = props.value;
381
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
382
+ const userMod = props.value.mod;
383
+ [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)];
373
384
  return {
374
385
  ...others,
375
386
  ...rootAttrs.value
@@ -395,7 +406,15 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
395
406
  (0, vue.onUnmounted)(() => {
396
407
  if (currentStyleKey.value) require_responsive_style_manager.responsiveStyleManager.unregister(currentStyleKey.value);
397
408
  });
409
+ __expose({
410
+ root: (0, vue.computed)(() => _root.value?.root ?? null),
411
+ container: (0, vue.computed)(() => _container.value?.root ?? null)
412
+ });
398
413
  const __returned__ = {
414
+ _container,
415
+ _root,
416
+ attrs,
417
+ rawProps,
399
418
  props,
400
419
  knownProps,
401
420
  getStyles,
@@ -418,13 +437,19 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
418
437
  }
419
438
  });
420
439
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
421
- return $props.type === "container" ? ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.normalizeProps)((0, vue.mergeProps)({ key: 0 }, $setup.containerAttrs)), {
422
- default: (0, vue.withCtx)(() => [(0, vue.createVNode)($setup["CBox"], (0, vue.mergeProps)($setup.mergedRootAttrs, { "data-auto-cols": $setup.autoColsAttr }), {
440
+ return $props.type === "container" ? ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({
441
+ key: 0,
442
+ ref: "_container"
443
+ }, $setup.containerAttrs), {
444
+ default: (0, vue.withCtx)(() => [(0, vue.createVNode)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedRootAttrs, { "data-auto-cols": $setup.autoColsAttr }), {
423
445
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
424
446
  _: 3
425
447
  }, 16, ["data-auto-cols"])]),
426
448
  _: 3
427
- }, 16)) : ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ key: 1 }, $setup.mergedRootAttrs, { "data-auto-cols": $setup.autoColsAttr }), {
449
+ }, 16)) : ((0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({
450
+ key: 1,
451
+ ref: "_root"
452
+ }, $setup.mergedRootAttrs, { "data-auto-cols": $setup.autoColsAttr }), {
428
453
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
429
454
  _: 3
430
455
  }, 16, ["data-auto-cols"]));
@@ -1 +1 @@
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBA,MAAM,QAAQ;EAMd,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,YAAY,mBAAA,UAA6B;GAC7C,MAAM;GACN,SAAA,2BAAA;GACA;GACA,WAAW,MAAM;GACjB,OAAO,MAAM;GACb,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,UAAU,MAAM;GAChB,YAAY,MAAM;GAClB,MAAM,MAAM;EACd,CAAC;EAED,MAAM,sBAAsB,6BAAA,mBAAmB;EAE/C,MAA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G/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 ref=\"_container\" v-if=\"type === 'container'\" v-bind=\"containerAttrs\">\n <c-box ref=\"_root\" v-bind=\"mergedRootAttrs\" :data-auto-cols=\"autoColsAttr\">\n <slot />\n </c-box>\n </c-box>\n <template v-else>\n <c-box ref=\"_root\" 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, useAttrs, watchEffect } from 'vue'\nimport {\n CBox,\n responsiveStyleManager,\n useComponentProps,\n useRandomClassName,\n useStyles,\n} 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 _container = ref<InstanceType<typeof CBox> | null>(null)\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<SimpleGridProps>()\n\nconst props = useComponentProps({\n component: 'CSimpleGrid',\n defaultProps: {},\n props: rawProps,\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: { ...props.value, ...attrs } as SimpleGridProps,\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 responsiveClassname = useRandomClassName()\n\nconst autoColsAttr =\n props.value.minColWidth !== undefined ? props.value.autoFlow || 'auto-fill' : undefined\n\nconst rootAttrs = computed(() => getStyles('root', { className: responsiveClassname }))\nconst mergedRootAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n for (const key in propsValue) {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n }\n const userMod = props.value.mod\n const mergedMod = [...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean))]\n return { ...others, ...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\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n container: computed(() => _container.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAJD,KAAI;IAAiD,OAAA,cAAc,GAAA;kCAGhE,EAAA,GAAA,IAAA,YAAA,CAAA,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,EAFD,KAAI,QAAO,GAAS,OAAA,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;mCAC/D,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA;;;;uDAMF,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA;;EAFD,KAAI;IAAgB,OAAA,iBAAe,EAAG,kBAAgB,OAAA,aAAY,CAAA,GAAA;kCAC/D,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM;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"}
@@ -1,5 +1,6 @@
1
1
  "use client";
2
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");
3
4
  const require_index = require("../../core/box/index.cjs");
4
5
  const require_use_styles = require("../../core/styles-api/use-styles/use-styles.cjs");
5
6
  const require_unstyled_button_module = require("./unstyled-button.module.cjs");
@@ -11,8 +12,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
11
12
  props: {
12
13
  __staticSelector: {
13
14
  type: String,
14
- required: false,
15
- default: "UnstyledButton"
15
+ required: false
16
16
  },
17
17
  size: {
18
18
  type: [String, Number],
@@ -313,9 +313,15 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
313
313
  }
314
314
  },
315
315
  setup(__props, { expose: __expose }) {
316
- __expose();
317
- const props = __props;
318
- const { tag = "button" } = props;
316
+ const attrs = (0, vue.useAttrs)();
317
+ const rawProps = __props;
318
+ const props = require_use_component_props.useComponentProps({
319
+ component: "UnstyledButton",
320
+ defaultProps: { __staticSelector: "UnstyledButton" },
321
+ props: rawProps
322
+ });
323
+ const { tag = "button" } = props.value;
324
+ const _root = (0, vue.ref)(null);
319
325
  const knownProps = [
320
326
  "className",
321
327
  "tag",
@@ -327,31 +333,40 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
327
333
  "attributes"
328
334
  ];
329
335
  const getStyles = require_use_styles.useStyles({
330
- name: props.__staticSelector,
331
- props,
336
+ name: props.value.__staticSelector,
337
+ props: {
338
+ ...props.value,
339
+ ...attrs
340
+ },
332
341
  classes: require_unstyled_button_module.default,
333
- className: props.className,
334
- style: props.style,
335
- classNames: props.classNames,
336
- styles: props.styles,
337
- unstyled: props.unstyled,
338
- attributes: props.attributes
342
+ className: props.value.className,
343
+ style: props.value.style,
344
+ classNames: props.value.classNames,
345
+ styles: props.value.styles,
346
+ unstyled: props.value.unstyled,
347
+ attributes: props.value.attributes
339
348
  });
340
349
  const rootAttrs = (0, vue.computed)(() => getStyles("root", { focusable: true }));
350
+ const mergedAttrs = (0, vue.computed)(() => {
351
+ const others = {};
352
+ const propsValue = props.value;
353
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
354
+ return {
355
+ ...others,
356
+ ...rootAttrs.value
357
+ };
358
+ });
359
+ __expose({ root: (0, vue.computed)(() => _root.value?.root ?? null) });
341
360
  const __returned__ = {
361
+ attrs,
362
+ rawProps,
342
363
  props,
343
364
  tag,
365
+ _root,
344
366
  knownProps,
345
367
  getStyles,
346
368
  rootAttrs,
347
- mergedAttrs: (0, vue.computed)(() => {
348
- const others = {};
349
- for (const key in props) if (!knownProps.includes(key)) others[key] = props[key];
350
- return {
351
- ...others,
352
- ...rootAttrs.value
353
- };
354
- }),
369
+ mergedAttrs,
355
370
  get CBox() {
356
371
  return require_index.CBox;
357
372
  }
@@ -364,7 +379,7 @@ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
364
379
  }
365
380
  });
366
381
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
367
- return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)($setup.mergedAttrs, {
382
+ return (0, vue.openBlock)(), (0, vue.createBlock)($setup["CBox"], (0, vue.mergeProps)({ ref: "_root" }, $setup.mergedAttrs, {
368
383
  tag: $setup.tag,
369
384
  type: $setup.tag === "button" ? "button" : void 0
370
385
  }), {
@@ -1 +1 @@
1
- {"version":3,"file":"unstyled-button.cjs","names":[],"sources":["../../../src/components/unstyled-button/unstyled-button.vue"],"sourcesContent":["<template>\n <c-box v-bind=\"mergedAttrs\" :tag=\"tag\" :type=\"tag === 'button' ? 'button' : undefined\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { CBox, useStyles } from '../../core'\nimport type { UnstyledButtonFactory, UnstyledButtonProps } from './unstyled-button.types'\nimport classes from './unstyled-button.module.css'\n\ndefineOptions({\n name: 'UnstyledButton',\n})\n\nconst props = withDefaults(defineProps<UnstyledButtonProps>(), {\n __staticSelector: 'UnstyledButton',\n})\n\nconst { tag = 'button' } = props\n\nconst knownProps = [\n 'className',\n 'tag',\n '__staticSelector',\n 'unstyled',\n 'classNames',\n 'styles',\n 'style',\n 'attributes',\n]\n\nconst getStyles = useStyles<UnstyledButtonFactory>({\n name: 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})\n\nconst rootAttrs = computed(() => getStyles('root', { focusable: true }))\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,QAAQ;EAId,MAAM,EAAE,MAAM,aAAa;EAE3B,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,YAAY,mBAAA,UAAiC;GACjD,MAAM,MAAM;GACZ;GACA,SAAA,+BAAA;GACA,WAAW,MAAM;GACjB,OAAO,MAAM;GACb,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,UAAU,MAAM;GAChB,YAAY,MAAM;EACpB,CAAC;EAED,MAAM,aAAA,GAAA,IAAA,SAAA,OAA2B,UAAU,QAAQ,EAAE,WAAW,KAAK,CAAC,CAAC;;;;;;;wCACpC;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;;;;;;;;;;;;;mDAnDU,OAAA,UAAA,GAAA,IAAA,WAAA,CAAA,OAFO,aAAW;EAAG,KAAK,OAAA;EAAM,MAAM,OAAA,QAAG,WAAA,WAA2B,KAAA;;kCAClE,EAAA,GAAA,IAAA,WAAA,CAAA,KAAA,QAAA,SAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"unstyled-button.cjs","names":[],"sources":["../../../src/components/unstyled-button/unstyled-button.vue"],"sourcesContent":["<template>\n <c-box\n ref=\"_root\"\n v-bind=\"mergedAttrs\"\n :tag=\"tag\"\n :type=\"tag === 'button' ? 'button' : undefined\"\n >\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, useComponentProps, useStyles } from '../../core'\nimport type { UnstyledButtonFactory, UnstyledButtonProps } from './unstyled-button.types'\nimport classes from './unstyled-button.module.css'\n\ndefineOptions({\n name: 'UnstyledButton',\n})\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<UnstyledButtonProps>()\n\nconst props = useComponentProps({\n component: 'UnstyledButton',\n defaultProps: {\n __staticSelector: 'UnstyledButton',\n },\n props: rawProps,\n})\n\nconst { tag = 'button' } = props.value\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\n\nconst knownProps = [\n 'className',\n 'tag',\n '__staticSelector',\n 'unstyled',\n 'classNames',\n 'styles',\n 'style',\n 'attributes',\n]\n\nconst getStyles = useStyles<UnstyledButtonFactory>({\n name: props.value.__staticSelector!,\n props: { ...props.value, ...attrs } as UnstyledButtonProps,\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})\n\nconst rootAttrs = computed(() => getStyles('root', { focusable: true }))\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 return { ...others, ...rootAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBA,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,WAAW;EAEjB,MAAM,QAAQ,4BAAA,kBAAkB;GAC9B,WAAW;GACX,cAAc,EACZ,kBAAkB,iBACpB;GACA,OAAO;EACT,CAAC;EAED,MAAM,EAAE,MAAM,aAAa,MAAM;EAEjC,MAAM,SAAA,GAAA,IAAA,IAAA,CAA8C,IAAI;EAExD,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,YAAY,mBAAA,UAAiC;GACjD,MAAM,MAAM,MAAM;GAClB,OAAO;IAAE,GAAG,MAAM;IAAO,GAAG;GAAM;GAClC,SAAA,+BAAA;GACA,WAAW,MAAM,MAAM;GACvB,OAAO,MAAM,MAAM;GACnB,YAAY,MAAM,MAAM;GACxB,QAAQ,MAAM,MAAM;GACpB,UAAU,MAAM,MAAM;GACtB,YAAY,MAAM,MAAM;EAC1B,CAAC;EAED,M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