@cck-ui/core 0.33.0 → 0.34.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 (51) hide show
  1. package/cjs/components/card/card-section/card-section.cjs +376 -0
  2. package/cjs/components/card/card-section/card-section.cjs.map +1 -0
  3. package/cjs/components/card/card.cjs +441 -0
  4. package/cjs/components/card/card.cjs.map +1 -0
  5. package/cjs/components/card/card.constant.cjs +7 -0
  6. package/cjs/components/card/card.constant.cjs.map +1 -0
  7. package/cjs/components/card/card.module.cjs +10 -0
  8. package/cjs/components/card/card.module.cjs.map +1 -0
  9. package/cjs/components/card/card.utils.cjs +8 -0
  10. package/cjs/components/card/card.utils.cjs.map +1 -0
  11. package/cjs/components/card/index.cjs +18 -0
  12. package/cjs/components/card/index.cjs.map +1 -0
  13. package/cjs/components/paper/index.cjs +1 -1
  14. package/cjs/components/paper/paper.cjs +1 -1
  15. package/cjs/core/utils/filter-falsy-children/filter-falsy-children.cjs +17 -0
  16. package/cjs/core/utils/filter-falsy-children/filter-falsy-children.cjs.map +1 -0
  17. package/cjs/index.cjs +79 -72
  18. package/cjs/index.cjs.map +1 -1
  19. package/esm/components/card/card-section/card-section.mjs +376 -0
  20. package/esm/components/card/card-section/card-section.mjs.map +1 -0
  21. package/esm/components/card/card.constant.mjs +7 -0
  22. package/esm/components/card/card.constant.mjs.map +1 -0
  23. package/esm/components/card/card.mjs +441 -0
  24. package/esm/components/card/card.mjs.map +1 -0
  25. package/esm/components/card/card.module.mjs +10 -0
  26. package/esm/components/card/card.module.mjs.map +1 -0
  27. package/esm/components/card/card.utils.mjs +9 -0
  28. package/esm/components/card/card.utils.mjs.map +1 -0
  29. package/esm/components/card/index.mjs +15 -0
  30. package/esm/components/card/index.mjs.map +1 -0
  31. package/esm/components/paper/index.mjs +1 -1
  32. package/esm/components/paper/paper.mjs +1 -1
  33. package/esm/core/utils/filter-falsy-children/filter-falsy-children.mjs +17 -0
  34. package/esm/core/utils/filter-falsy-children/filter-falsy-children.mjs.map +1 -0
  35. package/esm/index.mjs +5 -1
  36. package/esm/index.mjs.map +1 -1
  37. package/lib/components/card/card-section/card-section.types.d.ts +15 -0
  38. package/lib/components/card/card.constant.d.ts +3 -0
  39. package/lib/components/card/card.context.d.ts +5 -0
  40. package/lib/components/card/card.types.d.ts +34 -0
  41. package/lib/components/card/card.utils.d.ts +8 -0
  42. package/lib/components/card/index.d.ts +11 -0
  43. package/lib/components/index.d.ts +1 -0
  44. package/lib/core/styles-api/styles-api.types.d.ts +2 -1
  45. package/lib/core/utils/filter-falsy-children/filter-falsy-children.d.ts +2 -0
  46. package/lib/core/utils/index.d.ts +1 -0
  47. package/package.json +1 -1
  48. package/styles/card.css +89 -0
  49. package/styles/card.layer.css +90 -0
  50. package/styles.css +90 -0
  51. package/styles.layer.css +90 -0
package/cjs/index.cjs CHANGED
@@ -4,6 +4,7 @@ Object.defineProperties(exports, {
4
4
  });
5
5
  const require_deep_merge = require("./core/utils/deep-merge/deep-merge.cjs");
6
6
  const require_camel_to_kebab_case = require("./core/utils/camel-to-kebab-case/camel-to-kebab-case.cjs");
7
+ const require_filter_falsy_children = require("./core/utils/filter-falsy-children/filter-falsy-children.cjs");
7
8
  const require_filter_props = require("./core/utils/filter-props/filter-props.cjs");
8
9
  const require_get_base_value = require("./core/utils/get-base-value/get-base-value.cjs");
9
10
  const require_px = require("./core/utils/units-converters/px.cjs");
@@ -74,26 +75,27 @@ const require_index$16 = require("./components/badge/index.cjs");
74
75
  const require_index$17 = require("./components/breadcrumbs/index.cjs");
75
76
  const require_index$18 = require("./components/burger/index.cjs");
76
77
  const require_index$19 = require("./components/button/index.cjs");
77
- const require_index$20 = require("./components/center/index.cjs");
78
- const require_index$21 = require("./components/container/index.cjs");
79
- const require_index$22 = require("./components/copy-button/index.cjs");
80
- const require_index$23 = require("./components/divider/index.cjs");
81
- const require_index$24 = require("./components/empty-state/index.cjs");
82
- const require_index$25 = require("./components/file-button/index.cjs");
83
- const require_index$26 = require("./components/flex/index.cjs");
84
- const require_index$27 = require("./components/focus-trap/index.cjs");
85
- const require_index$28 = require("./components/grid/index.cjs");
86
- const require_index$29 = require("./components/group/index.cjs");
87
- const require_index$30 = require("./components/image/index.cjs");
88
- const require_index$31 = require("./components/paper/index.cjs");
89
- const require_index$32 = require("./components/semi-circle-progress/index.cjs");
90
- const require_index$33 = require("./components/simple-grid/index.cjs");
91
- const require_index$34 = require("./components/skeleton/index.cjs");
92
- const require_index$35 = require("./components/space/index.cjs");
93
- const require_index$36 = require("./components/splitter/index.cjs");
94
- const require_index$37 = require("./components/stack/index.cjs");
95
- const require_index$38 = require("./components/typography/index.cjs");
96
- const require_index$39 = require("./components/visually-hidden/index.cjs");
78
+ const require_index$20 = require("./components/card/index.cjs");
79
+ const require_index$21 = require("./components/center/index.cjs");
80
+ const require_index$22 = require("./components/container/index.cjs");
81
+ const require_index$23 = require("./components/copy-button/index.cjs");
82
+ const require_index$24 = require("./components/divider/index.cjs");
83
+ const require_index$25 = require("./components/empty-state/index.cjs");
84
+ const require_index$26 = require("./components/file-button/index.cjs");
85
+ const require_index$27 = require("./components/flex/index.cjs");
86
+ const require_index$28 = require("./components/focus-trap/index.cjs");
87
+ const require_index$29 = require("./components/grid/index.cjs");
88
+ const require_index$30 = require("./components/group/index.cjs");
89
+ const require_index$31 = require("./components/image/index.cjs");
90
+ const require_index$32 = require("./components/paper/index.cjs");
91
+ const require_index$33 = require("./components/semi-circle-progress/index.cjs");
92
+ const require_index$34 = require("./components/simple-grid/index.cjs");
93
+ const require_index$35 = require("./components/skeleton/index.cjs");
94
+ const require_index$36 = require("./components/space/index.cjs");
95
+ const require_index$37 = require("./components/splitter/index.cjs");
96
+ const require_index$38 = require("./components/stack/index.cjs");
97
+ const require_index$39 = require("./components/typography/index.cjs");
98
+ const require_index$40 = require("./components/visually-hidden/index.cjs");
97
99
  let _vue_shared = require("@vue/shared");
98
100
  //#region packages/@cck-ui/core/src/index.ts
99
101
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
@@ -116,37 +118,39 @@ const components = [
116
118
  require_index$19.CButton,
117
119
  require_index$19.CButtonGroup,
118
120
  require_index$19.CButtonGroupSection,
119
- require_index$20.CCenter,
121
+ require_index$20.CCard,
122
+ require_index$20.CCardSection,
123
+ require_index$21.CCenter,
120
124
  require_index$9.CCloseButton,
121
- require_index$28.CCol,
122
- require_index$21.CContainer,
123
- require_index$22.CCopyButton,
124
- require_index$23.CDivider,
125
- require_index$24.CEmptyState,
126
- require_index$24.CEmptyStateActions,
127
- require_index$24.CEmptyStateDescription,
128
- require_index$24.CEmptyStateIndicator,
129
- require_index$24.CEmptyStateTitle,
130
- require_index$25.CFileButton,
131
- require_index$26.CFlex,
132
- require_index$27.CFocusTrap,
133
- require_index$28.CGrid,
134
- require_index$29.CGroup,
135
- require_index$30.CImage,
125
+ require_index$29.CCol,
126
+ require_index$22.CContainer,
127
+ require_index$23.CCopyButton,
128
+ require_index$24.CDivider,
129
+ require_index$25.CEmptyState,
130
+ require_index$25.CEmptyStateActions,
131
+ require_index$25.CEmptyStateDescription,
132
+ require_index$25.CEmptyStateIndicator,
133
+ require_index$25.CEmptyStateTitle,
134
+ require_index$26.CFileButton,
135
+ require_index$27.CFlex,
136
+ require_index$28.CFocusTrap,
137
+ require_index$29.CGrid,
138
+ require_index$30.CGroup,
139
+ require_index$31.CImage,
136
140
  require_index$4.CLoader,
137
- require_index$31.CPaper,
141
+ require_index$32.CPaper,
138
142
  require_index$7.CPortal,
139
- require_index$32.CSemiCircleProgress,
140
- require_index$33.CSimpleGrid,
141
- require_index$34.CSkeleton,
142
- require_index$35.CSpace,
143
- require_index$36.CSplitter,
144
- require_index$36.CSplitterPane,
145
- require_index$37.CStack,
143
+ require_index$33.CSemiCircleProgress,
144
+ require_index$34.CSimpleGrid,
145
+ require_index$35.CSkeleton,
146
+ require_index$36.CSpace,
147
+ require_index$37.CSplitter,
148
+ require_index$37.CSplitterPane,
149
+ require_index$38.CStack,
146
150
  require_index$11.CText,
147
151
  require_index$5.CTransition,
148
- require_index$38.CTypography,
149
- require_index$39.CVisuallyHidden,
152
+ require_index$39.CTypography,
153
+ require_index$40.CVisuallyHidden,
150
154
  require_index$3.UnstyledButton
151
155
  ];
152
156
  const CckUI = { install(app) {
@@ -175,39 +179,41 @@ exports.CButton = require_index$19.CButton;
175
179
  exports.CButtonGroup = require_index$19.CButtonGroup;
176
180
  exports.CButtonGroupSection = require_index$19.CButtonGroupSection;
177
181
  exports.CCK_TRANSITIONS = require_transitions.transitions;
178
- exports.CCenter = require_index$20.CCenter;
182
+ exports.CCard = require_index$20.CCard;
183
+ exports.CCardSection = require_index$20.CCardSection;
184
+ exports.CCenter = require_index$21.CCenter;
179
185
  exports.CCloseButton = require_index$9.CCloseButton;
180
- exports.CCol = require_index$28.CCol;
181
- exports.CContainer = require_index$21.CContainer;
182
- exports.CCopyButton = require_index$22.CCopyButton;
186
+ exports.CCol = require_index$29.CCol;
187
+ exports.CContainer = require_index$22.CContainer;
188
+ exports.CCopyButton = require_index$23.CCopyButton;
183
189
  exports.CDefaultLoaders = require_index$4.CDefaultLoaders;
184
- exports.CDivider = require_index$23.CDivider;
185
- exports.CEmptyState = require_index$24.CEmptyState;
186
- exports.CEmptyStateActions = require_index$24.CEmptyStateActions;
187
- exports.CEmptyStateDescription = require_index$24.CEmptyStateDescription;
188
- exports.CEmptyStateIndicator = require_index$24.CEmptyStateIndicator;
189
- exports.CEmptyStateTitle = require_index$24.CEmptyStateTitle;
190
- exports.CFileButton = require_index$25.CFileButton;
191
- exports.CFlex = require_index$26.CFlex;
192
- exports.CFocusTrap = require_index$27.CFocusTrap;
193
- exports.CGrid = require_index$28.CGrid;
194
- exports.CGroup = require_index$29.CGroup;
195
- exports.CImage = require_index$30.CImage;
190
+ exports.CDivider = require_index$24.CDivider;
191
+ exports.CEmptyState = require_index$25.CEmptyState;
192
+ exports.CEmptyStateActions = require_index$25.CEmptyStateActions;
193
+ exports.CEmptyStateDescription = require_index$25.CEmptyStateDescription;
194
+ exports.CEmptyStateIndicator = require_index$25.CEmptyStateIndicator;
195
+ exports.CEmptyStateTitle = require_index$25.CEmptyStateTitle;
196
+ exports.CFileButton = require_index$26.CFileButton;
197
+ exports.CFlex = require_index$27.CFlex;
198
+ exports.CFocusTrap = require_index$28.CFocusTrap;
199
+ exports.CGrid = require_index$29.CGrid;
200
+ exports.CGroup = require_index$30.CGroup;
201
+ exports.CImage = require_index$31.CImage;
196
202
  exports.CLoader = require_index$4.CLoader;
197
203
  exports.CONFIG_KEY = require_config_provider_types.CONFIG_KEY;
198
- exports.CPaper = require_index$31.CPaper;
204
+ exports.CPaper = require_index$32.CPaper;
199
205
  exports.CPortal = require_index$7.CPortal;
200
- exports.CSemiCircleProgress = require_index$32.CSemiCircleProgress;
201
- exports.CSimpleGrid = require_index$33.CSimpleGrid;
202
- exports.CSkeleton = require_index$34.CSkeleton;
203
- exports.CSpace = require_index$35.CSpace;
204
- exports.CSplitter = require_index$36.CSplitter;
205
- exports.CSplitterPane = require_index$36.CSplitterPane;
206
- exports.CStack = require_index$37.CStack;
206
+ exports.CSemiCircleProgress = require_index$33.CSemiCircleProgress;
207
+ exports.CSimpleGrid = require_index$34.CSimpleGrid;
208
+ exports.CSkeleton = require_index$35.CSkeleton;
209
+ exports.CSpace = require_index$36.CSpace;
210
+ exports.CSplitter = require_index$37.CSplitter;
211
+ exports.CSplitterPane = require_index$37.CSplitterPane;
212
+ exports.CStack = require_index$38.CStack;
207
213
  exports.CText = require_index$11.CText;
208
214
  exports.CTransition = require_index$5.CTransition;
209
- exports.CTypography = require_index$38.CTypography;
210
- exports.CVisuallyHidden = require_index$39.CVisuallyHidden;
215
+ exports.CTypography = require_index$39.CTypography;
216
+ exports.CVisuallyHidden = require_index$40.CVisuallyHidden;
211
217
  exports.CckConfigProvider = require_index$1.CckConfigProvider;
212
218
  exports.CckUI = CckUI;
213
219
  exports.default = CckUI;
@@ -227,6 +233,7 @@ exports.defaultCssVariablesResolver = require_default_css_variables_resolver.def
227
233
  exports.defaultVariantColorsResolver = require_default_variant_colors_resolver.defaultVariantColorsResolver;
228
234
  exports.em = require_rem.em;
229
235
  exports.extractStyleProps = require_extract_style_props.extractStyleProps;
236
+ exports.filterFalsyChildren = require_filter_falsy_children.filterFalsyChildren;
230
237
  exports.filterProps = require_filter_props.filterProps;
231
238
  exports.getBaseValue = require_get_base_value.getBaseValue;
232
239
  exports.getBreakpointValue = require_get_breakpoint_value.getBreakpointValue;
package/cjs/index.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CActionIcon","CActionIconGroup","CActionIconGroupSection","CAffix","CAlert","CAnchor","CAspectRatio","CAvatar","CAvatarGroup","CBackgroundImage","CBadge","CBreadcrumbs","CBurger","CButton","CButtonGroup","CButtonGroupSection","CCenter","CCloseButton","CCol","CContainer","CCopyButton","CDivider","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFileButton","CFlex","CFocusTrap","CGrid","CGroup","CImage","CLoader","CPaper","CPortal","CSemiCircleProgress","CSimpleGrid","CSkeleton","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","CTypography","CVisuallyHidden","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CCopyButton,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CCopyButton,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjBA,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
1
+ {"version":3,"file":"index.cjs","names":["CckConfigProvider","CBox","CActionIcon","CActionIconGroup","CActionIconGroupSection","CAffix","CAlert","CAnchor","CAspectRatio","CAvatar","CAvatarGroup","CBackgroundImage","CBadge","CBreadcrumbs","CBurger","CButton","CButtonGroup","CButtonGroupSection","CCard","CCardSection","CCenter","CCloseButton","CCol","CContainer","CCopyButton","CDivider","CEmptyState","CEmptyStateActions","CEmptyStateDescription","CEmptyStateIndicator","CEmptyStateTitle","CFileButton","CFlex","CFocusTrap","CGrid","CGroup","CImage","CLoader","CPaper","CPortal","CSemiCircleProgress","CSimpleGrid","CSkeleton","CSpace","CSplitter","CSplitterPane","CStack","CText","CTransition","CTypography","CVisuallyHidden","UnstyledButton"],"sources":["../src/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport {\n CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CCopyButton,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\n UnstyledButton,\n} from './components'\nimport { CckConfigProvider, CBox } from './core'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nconst components = [\n CckConfigProvider,\n CBox,\n CActionIcon,\n CActionIconGroup,\n CActionIconGroupSection,\n CAffix,\n CAlert,\n CAnchor,\n CAspectRatio,\n CAvatar,\n CAvatarGroup,\n CBackgroundImage,\n CBadge,\n CBreadcrumbs,\n CBurger,\n CButton,\n CButtonGroup,\n CButtonGroupSection,\n CCard,\n CCardSection,\n CCenter,\n CCloseButton,\n CCol,\n CContainer,\n CCopyButton,\n CDivider,\n CEmptyState,\n CEmptyStateActions,\n CEmptyStateDescription,\n CEmptyStateIndicator,\n CEmptyStateTitle,\n CFileButton,\n CFlex,\n CFocusTrap,\n CGrid,\n CGroup,\n CImage,\n CLoader,\n CPaper,\n CPortal,\n CSemiCircleProgress,\n CSimpleGrid,\n CSkeleton,\n CSpace,\n CSplitter,\n CSplitterPane,\n CStack,\n CText,\n CTransition,\n CTypography,\n CVisuallyHidden,\n UnstyledButton,\n]\n\nconst CckUI: Plugin = {\n install(app: App) {\n if ((app as any)[INSTALLED_KEY]) {\n return\n }\n ;(app as any)[INSTALLED_KEY] = true\n components.forEach((c) => {\n if (c.name) {\n app.component(c.name, c)\n }\n })\n },\n}\n\nexport default CckUI\nexport { CckUI }\n\nexport * from './components'\nexport * from './core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,MAAM,gBAAgB,OAAO,eAAe;AAE5C,MAAM,aAAa;CACjBA,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;CACAC,iBAAAA;CACAC,iBAAAA;CACAC,gBAAAA;AACF;AAEA,MAAM,QAAgB,EACpB,QAAQ,KAAU;CAChB,IAAK,IAAY,gBACf;CAED,IAAa,iBAAiB;CAC/B,WAAW,SAAS,MAAM;EACxB,IAAI,EAAE,MACJ,IAAI,UAAU,EAAE,MAAM,CAAC;CAE3B,CAAC;AACH,EACF"}
@@ -0,0 +1,376 @@
1
+ "use client";
2
+ import export_helper_default from "../../../_virtual/_/plugin-vue/export-helper.mjs";
3
+ import { useComponentProps } from "../../../core/config-provider/use-component-props/use-component-props.mjs";
4
+ import { CBox } from "../../../core/box/index.mjs";
5
+ import { CARD_CONTEXT_KEY } from "../card.constant.mjs";
6
+ import { computed, createBlock, defineComponent, inject, mergeProps, openBlock, ref, renderSlot, withCtx } from "vue";
7
+ //#region packages/@cck-ui/core/src/components/card/card-section/card-section.vue
8
+ const _sfc_main = /*@__PURE__*/ defineComponent({
9
+ name: "CCardSection",
10
+ __name: "card-section",
11
+ props: {
12
+ withBorder: {
13
+ type: Boolean,
14
+ required: false
15
+ },
16
+ inheritPadding: {
17
+ type: Boolean,
18
+ required: false
19
+ },
20
+ className: {
21
+ type: String,
22
+ required: false
23
+ },
24
+ style: {
25
+ type: [
26
+ Object,
27
+ Function,
28
+ Array
29
+ ],
30
+ required: false,
31
+ skipCheck: true
32
+ },
33
+ __vars: {
34
+ type: null,
35
+ required: false
36
+ },
37
+ __size: {
38
+ type: String,
39
+ required: false
40
+ },
41
+ hiddenFrom: {
42
+ type: null,
43
+ required: false
44
+ },
45
+ visibleFrom: {
46
+ type: null,
47
+ required: false
48
+ },
49
+ lightHidden: {
50
+ type: Boolean,
51
+ required: false
52
+ },
53
+ darkHidden: {
54
+ type: Boolean,
55
+ required: false
56
+ },
57
+ mod: {
58
+ type: [
59
+ Object,
60
+ String,
61
+ Array
62
+ ],
63
+ required: false
64
+ },
65
+ m: {
66
+ type: null,
67
+ required: false
68
+ },
69
+ my: {
70
+ type: null,
71
+ required: false
72
+ },
73
+ mx: {
74
+ type: null,
75
+ required: false
76
+ },
77
+ mt: {
78
+ type: null,
79
+ required: false
80
+ },
81
+ mb: {
82
+ type: null,
83
+ required: false
84
+ },
85
+ ms: {
86
+ type: null,
87
+ required: false
88
+ },
89
+ me: {
90
+ type: null,
91
+ required: false
92
+ },
93
+ mis: {
94
+ type: null,
95
+ required: false
96
+ },
97
+ mie: {
98
+ type: null,
99
+ required: false
100
+ },
101
+ ml: {
102
+ type: null,
103
+ required: false
104
+ },
105
+ mr: {
106
+ type: null,
107
+ required: false
108
+ },
109
+ p: {
110
+ type: null,
111
+ required: false
112
+ },
113
+ py: {
114
+ type: null,
115
+ required: false
116
+ },
117
+ px: {
118
+ type: null,
119
+ required: false
120
+ },
121
+ pt: {
122
+ type: null,
123
+ required: false
124
+ },
125
+ pb: {
126
+ type: null,
127
+ required: false
128
+ },
129
+ ps: {
130
+ type: null,
131
+ required: false
132
+ },
133
+ pe: {
134
+ type: null,
135
+ required: false
136
+ },
137
+ pis: {
138
+ type: null,
139
+ required: false
140
+ },
141
+ pie: {
142
+ type: null,
143
+ required: false
144
+ },
145
+ pl: {
146
+ type: null,
147
+ required: false
148
+ },
149
+ pr: {
150
+ type: null,
151
+ required: false
152
+ },
153
+ bd: {
154
+ type: null,
155
+ required: false
156
+ },
157
+ bdrs: {
158
+ type: null,
159
+ required: false
160
+ },
161
+ bg: {
162
+ type: null,
163
+ required: false
164
+ },
165
+ c: {
166
+ type: null,
167
+ required: false
168
+ },
169
+ opacity: {
170
+ type: [
171
+ String,
172
+ Object,
173
+ Number
174
+ ],
175
+ required: false
176
+ },
177
+ ff: {
178
+ type: [String, Object],
179
+ required: false
180
+ },
181
+ fz: {
182
+ type: null,
183
+ required: false
184
+ },
185
+ fw: {
186
+ type: null,
187
+ required: false
188
+ },
189
+ lts: {
190
+ type: null,
191
+ required: false
192
+ },
193
+ ta: {
194
+ type: [String, Object],
195
+ required: false
196
+ },
197
+ lh: {
198
+ type: null,
199
+ required: false
200
+ },
201
+ fs: {
202
+ type: null,
203
+ required: false
204
+ },
205
+ tt: {
206
+ type: [String, Object],
207
+ required: false
208
+ },
209
+ td: {
210
+ type: null,
211
+ required: false
212
+ },
213
+ w: {
214
+ type: null,
215
+ required: false
216
+ },
217
+ miw: {
218
+ type: null,
219
+ required: false
220
+ },
221
+ maw: {
222
+ type: null,
223
+ required: false
224
+ },
225
+ h: {
226
+ type: null,
227
+ required: false
228
+ },
229
+ mih: {
230
+ type: null,
231
+ required: false
232
+ },
233
+ mah: {
234
+ type: null,
235
+ required: false
236
+ },
237
+ bgsz: {
238
+ type: null,
239
+ required: false
240
+ },
241
+ bgp: {
242
+ type: null,
243
+ required: false
244
+ },
245
+ bgr: {
246
+ type: null,
247
+ required: false
248
+ },
249
+ bga: {
250
+ type: null,
251
+ required: false
252
+ },
253
+ pos: {
254
+ type: [String, Object],
255
+ required: false
256
+ },
257
+ top: {
258
+ type: null,
259
+ required: false
260
+ },
261
+ left: {
262
+ type: null,
263
+ required: false
264
+ },
265
+ bottom: {
266
+ type: null,
267
+ required: false
268
+ },
269
+ right: {
270
+ type: null,
271
+ required: false
272
+ },
273
+ inset: {
274
+ type: null,
275
+ required: false
276
+ },
277
+ display: {
278
+ type: null,
279
+ required: false
280
+ },
281
+ flex: {
282
+ type: null,
283
+ required: false
284
+ },
285
+ variant: {
286
+ type: null,
287
+ required: false
288
+ },
289
+ classNames: {
290
+ type: null,
291
+ required: false
292
+ },
293
+ styles: {
294
+ type: null,
295
+ required: false
296
+ },
297
+ vars: {
298
+ type: Function,
299
+ required: false
300
+ }
301
+ },
302
+ setup(__props, { expose: __expose }) {
303
+ const _section = ref(null);
304
+ const rawProps = __props;
305
+ const props = useComponentProps({
306
+ component: "CCardSection",
307
+ defaultProps: {},
308
+ props: rawProps
309
+ });
310
+ const knownProps = [
311
+ "classNames",
312
+ "className",
313
+ "style",
314
+ "styles",
315
+ "vars",
316
+ "withBorder",
317
+ "inheritPadding",
318
+ "mod"
319
+ ];
320
+ const cardContext = inject(CARD_CONTEXT_KEY);
321
+ if (!cardContext) throw new Error("[@cck-ui/card-section] CCardSection component should be wrapped inside CCard component.");
322
+ const modList = computed(() => [{ "with-border": props.value.withBorder }, { "inherit-padding": props.value.inheritPadding }]);
323
+ const sectionAttrs = computed(() => {
324
+ return cardContext.getStyles("section", {
325
+ className: () => props.value.className,
326
+ style: props.value.style,
327
+ classNames: props.value.classNames,
328
+ styles: props.value.styles
329
+ });
330
+ });
331
+ const mergedAttrs = computed(() => {
332
+ const others = {};
333
+ const propsValue = props.value;
334
+ Object.keys(propsValue).forEach((key) => {
335
+ if (!knownProps.includes(key)) others[key] = propsValue[key];
336
+ });
337
+ const userMod = props.value.mod;
338
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod].filter(Boolean), ...modList.value];
339
+ return {
340
+ ...others,
341
+ mod: mergedMod,
342
+ ...sectionAttrs.value
343
+ };
344
+ });
345
+ __expose({ root: computed(() => _section.value?.root ?? null) });
346
+ const __returned__ = {
347
+ _section,
348
+ rawProps,
349
+ props,
350
+ knownProps,
351
+ cardContext,
352
+ modList,
353
+ sectionAttrs,
354
+ mergedAttrs,
355
+ get CBox() {
356
+ return CBox;
357
+ }
358
+ };
359
+ Object.defineProperty(__returned__, "__isScriptSetup", {
360
+ enumerable: false,
361
+ value: true
362
+ });
363
+ return __returned__;
364
+ }
365
+ });
366
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
367
+ return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_section" }, $setup.mergedAttrs), {
368
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
369
+ _: 3
370
+ }, 16);
371
+ }
372
+ var card_section_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/card/card-section/card-section.vue"]]);
373
+ //#endregion
374
+ export { card_section_default as default };
375
+
376
+ //# sourceMappingURL=card-section.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-section.mjs","names":[],"sources":["../../../../src/components/card/card-section/card-section.vue"],"sourcesContent":["<template>\n <c-box ref=\"_section\" v-bind=\"mergedAttrs\">\n <slot />\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, ref } from 'vue'\nimport { CBox, useComponentProps } from '../../../core'\nimport { CardSectionProps } from './card-section.types'\nimport { CARD_CONTEXT_KEY } from '../card.constant'\n\ndefineOptions({\n name: 'CCardSection',\n})\n\nconst _section = ref<InstanceType<typeof CBox> | null>(null)\n\nconst rawProps = defineProps<CardSectionProps>()\n\nconst props = useComponentProps({\n component: 'CCardSection',\n defaultProps: {},\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'vars',\n 'withBorder',\n 'inheritPadding',\n 'mod',\n]\n\nconst cardContext = inject(CARD_CONTEXT_KEY)\n\nif (!cardContext) {\n throw new Error(\n '[@cck-ui/card-section] CCardSection component should be wrapped inside CCard component.'\n )\n}\n\nconst modList = computed(() => [\n { 'with-border': props.value.withBorder },\n { 'inherit-padding': props.value.inheritPadding },\n])\n\nconst sectionAttrs = computed(() => {\n return cardContext.getStyles('section', {\n className: () => props.value.className,\n style: props.value.style,\n classNames: props.value.classNames,\n styles: props.value.styles,\n })\n})\n\nconst mergedAttrs = computed(() => {\n const others: Record<string, any> = {}\n const propsValue = props.value\n Object.keys(propsValue).forEach((key) => {\n if (!knownProps.includes(key)) {\n others[key] = propsValue[key as keyof typeof propsValue]\n }\n })\n const userMod = props.value.mod\n const mergedMod = [\n ...(Array.isArray(userMod) ? userMod : [userMod].filter(Boolean)),\n ...modList.value,\n ]\n return { ...others, mod: mergedMod, ...sectionAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _section.value?.root ?? null),\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,WAAW,IAAsC,IAAI;EAE3D,MAAM,WAAW;EAEjB,MAAM,QAAQ,kBAAkB;GAC9B,WAAW;GACX,cAAc,CAAC;GACf,OAAO;EACT,CAAC;EAED,MAAM,aAAa;GACjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EAEA,MAAM,cAAc,OAAO,gBAAgB;EAE3C,IAAI,CAAC,aACH,MAAM,IAAI,MACR,yFACF;EAGF,MAAM,UAAU,eAAe,CAC7B,EAAE,eAAe,MAAM,MAAM,WAAW,GACxC,EAAE,mBAAmB,MAAM,MAAM,eAAe,CAClD,CAAC;EAED,MAAM,eAAe,eAAe;GAClC,OAAO,YAAY,UAAU,WAAW;IACtC,iBAAiB,MAAM,MAAM;IAC7B,OAAO,MAAM,MAAM;IACnB,YAAY,MAAM,MAAM;IACxB,QAAQ,MAAM,MAAM;GACtB,CAAC;EACH,CAAC;EAED,MAAM,cAAc,eAAe;GACjC,MAAM,SAA8B,CAAC;GACrC,MAAM,aAAa,MAAM;GACzB,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;IACvC,IAAI,CAAC,WAAW,SAAS,GAAG,GAC1B,OAAO,OAAO,WAAW;GAE7B,CAAC;GACD,MAAM,UAAU,MAAM,MAAM;GAC5B,MAAM,YAAY,CAChB,GAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,OAAO,GAC/D,GAAG,QAAQ,KACb;GACA,OAAO;IAAE,GAAG;IAAQ,KAAK;IAAW,GAAG,aAAa;GAAM;EAC5D,CAAC;EAED,SAAa,EACX,MAAM,eAAe,SAAS,OAAO,QAAQ,IAAI,EACnD,CAAC;;;;;;;;;;;;;;;;;;;;;;qBA5EC,YAEQ,OAAA,SAFR,WAEQ,EAFD,KAAI,WAAU,GAAS,OAAA,WAAW,GAAA;yBAC/B,CAAR,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/card/card.constant.ts
3
+ const CARD_CONTEXT_KEY = Symbol("CardContext");
4
+ //#endregion
5
+ export { CARD_CONTEXT_KEY };
6
+
7
+ //# sourceMappingURL=card.constant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.constant.mjs","names":[],"sources":["../../../src/components/card/card.constant.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\nimport { CardContextValue } from './card.context'\n\nexport const CARD_CONTEXT_KEY: InjectionKey<CardContextValue> = Symbol('CardContext')\n"],"mappings":";;AAGA,MAAa,mBAAmD,OAAO,aAAa"}