@cck-ui/core 0.34.1 → 0.36.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 (71) hide show
  1. package/cjs/components/color-swatch/color-swatch.cjs +439 -0
  2. package/cjs/components/color-swatch/color-swatch.cjs.map +1 -0
  3. package/cjs/components/color-swatch/color-swatch.module.cjs +13 -0
  4. package/cjs/components/color-swatch/color-swatch.module.cjs.map +1 -0
  5. package/cjs/components/color-swatch/color-swatch.utils.cjs +12 -0
  6. package/cjs/components/color-swatch/color-swatch.utils.cjs.map +1 -0
  7. package/cjs/components/color-swatch/index.cjs +14 -0
  8. package/cjs/components/color-swatch/index.cjs.map +1 -0
  9. package/cjs/components/data-list/data-list-item/data-list-item.cjs +364 -0
  10. package/cjs/components/data-list/data-list-item/data-list-item.cjs.map +1 -0
  11. package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs +367 -0
  12. package/cjs/components/data-list/data-list-item-label/data-list-item-label.cjs.map +1 -0
  13. package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs +367 -0
  14. package/cjs/components/data-list/data-list-item-value/data-list-item-value.cjs.map +1 -0
  15. package/cjs/components/data-list/data-list.cjs +421 -0
  16. package/cjs/components/data-list/data-list.cjs.map +1 -0
  17. package/cjs/components/data-list/data-list.constant.cjs +7 -0
  18. package/cjs/components/data-list/data-list.constant.cjs.map +1 -0
  19. package/cjs/components/data-list/data-list.module.cjs +12 -0
  20. package/cjs/components/data-list/data-list.module.cjs.map +1 -0
  21. package/cjs/components/data-list/data-list.utils.cjs +13 -0
  22. package/cjs/components/data-list/data-list.utils.cjs.map +1 -0
  23. package/cjs/components/data-list/index.cjs +30 -0
  24. package/cjs/components/data-list/index.cjs.map +1 -0
  25. package/cjs/index.cjs +81 -69
  26. package/cjs/index.cjs.map +1 -1
  27. package/esm/components/color-swatch/color-swatch.mjs +439 -0
  28. package/esm/components/color-swatch/color-swatch.mjs.map +1 -0
  29. package/esm/components/color-swatch/color-swatch.module.mjs +13 -0
  30. package/esm/components/color-swatch/color-swatch.module.mjs.map +1 -0
  31. package/esm/components/color-swatch/color-swatch.utils.mjs +13 -0
  32. package/esm/components/color-swatch/color-swatch.utils.mjs.map +1 -0
  33. package/esm/components/color-swatch/index.mjs +11 -0
  34. package/esm/components/color-swatch/index.mjs.map +1 -0
  35. package/esm/components/data-list/data-list-item/data-list-item.mjs +364 -0
  36. package/esm/components/data-list/data-list-item/data-list-item.mjs.map +1 -0
  37. package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs +367 -0
  38. package/esm/components/data-list/data-list-item-label/data-list-item-label.mjs.map +1 -0
  39. package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs +367 -0
  40. package/esm/components/data-list/data-list-item-value/data-list-item-value.mjs.map +1 -0
  41. package/esm/components/data-list/data-list.constant.mjs +7 -0
  42. package/esm/components/data-list/data-list.constant.mjs.map +1 -0
  43. package/esm/components/data-list/data-list.mjs +421 -0
  44. package/esm/components/data-list/data-list.mjs.map +1 -0
  45. package/esm/components/data-list/data-list.module.mjs +12 -0
  46. package/esm/components/data-list/data-list.module.mjs.map +1 -0
  47. package/esm/components/data-list/data-list.utils.mjs +14 -0
  48. package/esm/components/data-list/data-list.utils.mjs.map +1 -0
  49. package/esm/components/data-list/index.mjs +26 -0
  50. package/esm/components/data-list/index.mjs.map +1 -0
  51. package/esm/index.mjs +8 -1
  52. package/esm/index.mjs.map +1 -1
  53. package/lib/components/color-swatch/color-swatch.types.d.ts +29 -0
  54. package/lib/components/color-swatch/color-swatch.utils.d.ts +7 -0
  55. package/lib/components/color-swatch/index.d.ts +6 -0
  56. package/lib/components/data-list/data-list-item/data-list-item.types.d.ts +10 -0
  57. package/lib/components/data-list/data-list-item-label/data-list-item-label.types.d.ts +10 -0
  58. package/lib/components/data-list/data-list-item-value/data-list-item-value.types.d.ts +10 -0
  59. package/lib/components/data-list/data-list.constant.d.ts +3 -0
  60. package/lib/components/data-list/data-list.context.d.ts +5 -0
  61. package/lib/components/data-list/data-list.types.d.ts +50 -0
  62. package/lib/components/data-list/data-list.utils.d.ts +11 -0
  63. package/lib/components/data-list/index.d.ts +18 -0
  64. package/lib/components/index.d.ts +2 -0
  65. package/package.json +1 -1
  66. package/styles/color-swatch.css +71 -0
  67. package/styles/color-swatch.layer.css +72 -0
  68. package/styles/data-list.css +54 -0
  69. package/styles/data-list.layer.css +55 -0
  70. package/styles.css +127 -0
  71. package/styles.layer.css +127 -0
package/cjs/index.cjs CHANGED
@@ -77,25 +77,27 @@ const require_index$18 = require("./components/burger/index.cjs");
77
77
  const require_index$19 = require("./components/button/index.cjs");
78
78
  const require_index$20 = require("./components/card/index.cjs");
79
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");
80
+ const require_index$22 = require("./components/color-swatch/index.cjs");
81
+ const require_index$23 = require("./components/container/index.cjs");
82
+ const require_index$24 = require("./components/copy-button/index.cjs");
83
+ const require_index$25 = require("./components/data-list/index.cjs");
84
+ const require_index$26 = require("./components/divider/index.cjs");
85
+ const require_index$27 = require("./components/empty-state/index.cjs");
86
+ const require_index$28 = require("./components/file-button/index.cjs");
87
+ const require_index$29 = require("./components/flex/index.cjs");
88
+ const require_index$30 = require("./components/focus-trap/index.cjs");
89
+ const require_index$31 = require("./components/grid/index.cjs");
90
+ const require_index$32 = require("./components/group/index.cjs");
91
+ const require_index$33 = require("./components/image/index.cjs");
92
+ const require_index$34 = require("./components/paper/index.cjs");
93
+ const require_index$35 = require("./components/semi-circle-progress/index.cjs");
94
+ const require_index$36 = require("./components/simple-grid/index.cjs");
95
+ const require_index$37 = require("./components/skeleton/index.cjs");
96
+ const require_index$38 = require("./components/space/index.cjs");
97
+ const require_index$39 = require("./components/splitter/index.cjs");
98
+ const require_index$40 = require("./components/stack/index.cjs");
99
+ const require_index$41 = require("./components/typography/index.cjs");
100
+ const require_index$42 = require("./components/visually-hidden/index.cjs");
99
101
  let _vue_shared = require("@vue/shared");
100
102
  //#region packages/@cck-ui/core/src/index.ts
101
103
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
@@ -122,35 +124,40 @@ const components = [
122
124
  require_index$20.CCardSection,
123
125
  require_index$21.CCenter,
124
126
  require_index$9.CCloseButton,
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,
127
+ require_index$31.CCol,
128
+ require_index$22.CColorSwatch,
129
+ require_index$23.CContainer,
130
+ require_index$24.CCopyButton,
131
+ require_index$25.CDataList,
132
+ require_index$25.CDataListItem,
133
+ require_index$25.CDataListItemLabel,
134
+ require_index$25.CDataListItemValue,
135
+ require_index$26.CDivider,
136
+ require_index$27.CEmptyState,
137
+ require_index$27.CEmptyStateActions,
138
+ require_index$27.CEmptyStateDescription,
139
+ require_index$27.CEmptyStateIndicator,
140
+ require_index$27.CEmptyStateTitle,
141
+ require_index$28.CFileButton,
142
+ require_index$29.CFlex,
143
+ require_index$30.CFocusTrap,
144
+ require_index$31.CGrid,
145
+ require_index$32.CGroup,
146
+ require_index$33.CImage,
140
147
  require_index$4.CLoader,
141
- require_index$32.CPaper,
148
+ require_index$34.CPaper,
142
149
  require_index$7.CPortal,
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,
150
+ require_index$35.CSemiCircleProgress,
151
+ require_index$36.CSimpleGrid,
152
+ require_index$37.CSkeleton,
153
+ require_index$38.CSpace,
154
+ require_index$39.CSplitter,
155
+ require_index$39.CSplitterPane,
156
+ require_index$40.CStack,
150
157
  require_index$11.CText,
151
158
  require_index$5.CTransition,
152
- require_index$39.CTypography,
153
- require_index$40.CVisuallyHidden,
159
+ require_index$41.CTypography,
160
+ require_index$42.CVisuallyHidden,
154
161
  require_index$3.UnstyledButton
155
162
  ];
156
163
  const CckUI = { install(app) {
@@ -183,37 +190,42 @@ exports.CCard = require_index$20.CCard;
183
190
  exports.CCardSection = require_index$20.CCardSection;
184
191
  exports.CCenter = require_index$21.CCenter;
185
192
  exports.CCloseButton = require_index$9.CCloseButton;
186
- exports.CCol = require_index$29.CCol;
187
- exports.CContainer = require_index$22.CContainer;
188
- exports.CCopyButton = require_index$23.CCopyButton;
193
+ exports.CCol = require_index$31.CCol;
194
+ exports.CColorSwatch = require_index$22.CColorSwatch;
195
+ exports.CContainer = require_index$23.CContainer;
196
+ exports.CCopyButton = require_index$24.CCopyButton;
197
+ exports.CDataList = require_index$25.CDataList;
198
+ exports.CDataListItem = require_index$25.CDataListItem;
199
+ exports.CDataListItemLabel = require_index$25.CDataListItemLabel;
200
+ exports.CDataListItemValue = require_index$25.CDataListItemValue;
189
201
  exports.CDefaultLoaders = require_index$4.CDefaultLoaders;
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;
202
+ exports.CDivider = require_index$26.CDivider;
203
+ exports.CEmptyState = require_index$27.CEmptyState;
204
+ exports.CEmptyStateActions = require_index$27.CEmptyStateActions;
205
+ exports.CEmptyStateDescription = require_index$27.CEmptyStateDescription;
206
+ exports.CEmptyStateIndicator = require_index$27.CEmptyStateIndicator;
207
+ exports.CEmptyStateTitle = require_index$27.CEmptyStateTitle;
208
+ exports.CFileButton = require_index$28.CFileButton;
209
+ exports.CFlex = require_index$29.CFlex;
210
+ exports.CFocusTrap = require_index$30.CFocusTrap;
211
+ exports.CGrid = require_index$31.CGrid;
212
+ exports.CGroup = require_index$32.CGroup;
213
+ exports.CImage = require_index$33.CImage;
202
214
  exports.CLoader = require_index$4.CLoader;
203
215
  exports.CONFIG_KEY = require_config_provider_types.CONFIG_KEY;
204
- exports.CPaper = require_index$32.CPaper;
216
+ exports.CPaper = require_index$34.CPaper;
205
217
  exports.CPortal = require_index$7.CPortal;
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;
218
+ exports.CSemiCircleProgress = require_index$35.CSemiCircleProgress;
219
+ exports.CSimpleGrid = require_index$36.CSimpleGrid;
220
+ exports.CSkeleton = require_index$37.CSkeleton;
221
+ exports.CSpace = require_index$38.CSpace;
222
+ exports.CSplitter = require_index$39.CSplitter;
223
+ exports.CSplitterPane = require_index$39.CSplitterPane;
224
+ exports.CStack = require_index$40.CStack;
213
225
  exports.CText = require_index$11.CText;
214
226
  exports.CTransition = require_index$5.CTransition;
215
- exports.CTypography = require_index$39.CTypography;
216
- exports.CVisuallyHidden = require_index$40.CVisuallyHidden;
227
+ exports.CTypography = require_index$41.CTypography;
228
+ exports.CVisuallyHidden = require_index$42.CVisuallyHidden;
217
229
  exports.CckConfigProvider = require_index$1.CckConfigProvider;
218
230
  exports.CckUI = CckUI;
219
231
  exports.default = CckUI;
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","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"}
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","CColorSwatch","CContainer","CCopyButton","CDataList","CDataListItem","CDataListItemLabel","CDataListItemValue","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 CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\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 CColorSwatch,\n CContainer,\n CCopyButton,\n CDataList,\n CDataListItem,\n CDataListItemLabel,\n CDataListItemValue,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,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,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,439 @@
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 { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
6
+ import color_swatch_module_default from "./color-swatch.module.mjs";
7
+ import { varsResolver } from "./color-swatch.utils.mjs";
8
+ import { computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, useAttrs, withCtx } from "vue";
9
+ //#region packages/@cck-ui/core/src/components/color-swatch/color-swatch.vue
10
+ const _sfc_main = /*@__PURE__*/ defineComponent({
11
+ name: "CColorSwatch",
12
+ __name: "color-swatch",
13
+ props: {
14
+ color: {
15
+ type: String,
16
+ required: true
17
+ },
18
+ size: {
19
+ type: null,
20
+ required: false
21
+ },
22
+ radius: {
23
+ type: null,
24
+ required: false
25
+ },
26
+ withShadow: {
27
+ type: Boolean,
28
+ required: false
29
+ },
30
+ className: {
31
+ type: String,
32
+ required: false
33
+ },
34
+ style: {
35
+ type: [
36
+ Object,
37
+ Function,
38
+ Array
39
+ ],
40
+ required: false,
41
+ skipCheck: true
42
+ },
43
+ __vars: {
44
+ type: null,
45
+ required: false
46
+ },
47
+ __size: {
48
+ type: String,
49
+ required: false
50
+ },
51
+ hiddenFrom: {
52
+ type: null,
53
+ required: false
54
+ },
55
+ visibleFrom: {
56
+ type: null,
57
+ required: false
58
+ },
59
+ lightHidden: {
60
+ type: Boolean,
61
+ required: false
62
+ },
63
+ darkHidden: {
64
+ type: Boolean,
65
+ required: false
66
+ },
67
+ mod: {
68
+ type: [
69
+ Object,
70
+ String,
71
+ Array
72
+ ],
73
+ required: false
74
+ },
75
+ m: {
76
+ type: null,
77
+ required: false
78
+ },
79
+ my: {
80
+ type: null,
81
+ required: false
82
+ },
83
+ mx: {
84
+ type: null,
85
+ required: false
86
+ },
87
+ mt: {
88
+ type: null,
89
+ required: false
90
+ },
91
+ mb: {
92
+ type: null,
93
+ required: false
94
+ },
95
+ ms: {
96
+ type: null,
97
+ required: false
98
+ },
99
+ me: {
100
+ type: null,
101
+ required: false
102
+ },
103
+ mis: {
104
+ type: null,
105
+ required: false
106
+ },
107
+ mie: {
108
+ type: null,
109
+ required: false
110
+ },
111
+ ml: {
112
+ type: null,
113
+ required: false
114
+ },
115
+ mr: {
116
+ type: null,
117
+ required: false
118
+ },
119
+ p: {
120
+ type: null,
121
+ required: false
122
+ },
123
+ py: {
124
+ type: null,
125
+ required: false
126
+ },
127
+ px: {
128
+ type: null,
129
+ required: false
130
+ },
131
+ pt: {
132
+ type: null,
133
+ required: false
134
+ },
135
+ pb: {
136
+ type: null,
137
+ required: false
138
+ },
139
+ ps: {
140
+ type: null,
141
+ required: false
142
+ },
143
+ pe: {
144
+ type: null,
145
+ required: false
146
+ },
147
+ pis: {
148
+ type: null,
149
+ required: false
150
+ },
151
+ pie: {
152
+ type: null,
153
+ required: false
154
+ },
155
+ pl: {
156
+ type: null,
157
+ required: false
158
+ },
159
+ pr: {
160
+ type: null,
161
+ required: false
162
+ },
163
+ bd: {
164
+ type: null,
165
+ required: false
166
+ },
167
+ bdrs: {
168
+ type: null,
169
+ required: false
170
+ },
171
+ bg: {
172
+ type: null,
173
+ required: false
174
+ },
175
+ c: {
176
+ type: null,
177
+ required: false
178
+ },
179
+ opacity: {
180
+ type: [
181
+ String,
182
+ Object,
183
+ Number
184
+ ],
185
+ required: false
186
+ },
187
+ ff: {
188
+ type: [String, Object],
189
+ required: false
190
+ },
191
+ fz: {
192
+ type: null,
193
+ required: false
194
+ },
195
+ fw: {
196
+ type: null,
197
+ required: false
198
+ },
199
+ lts: {
200
+ type: null,
201
+ required: false
202
+ },
203
+ ta: {
204
+ type: [String, Object],
205
+ required: false
206
+ },
207
+ lh: {
208
+ type: null,
209
+ required: false
210
+ },
211
+ fs: {
212
+ type: null,
213
+ required: false
214
+ },
215
+ tt: {
216
+ type: [String, Object],
217
+ required: false
218
+ },
219
+ td: {
220
+ type: null,
221
+ required: false
222
+ },
223
+ w: {
224
+ type: null,
225
+ required: false
226
+ },
227
+ miw: {
228
+ type: null,
229
+ required: false
230
+ },
231
+ maw: {
232
+ type: null,
233
+ required: false
234
+ },
235
+ h: {
236
+ type: null,
237
+ required: false
238
+ },
239
+ mih: {
240
+ type: null,
241
+ required: false
242
+ },
243
+ mah: {
244
+ type: null,
245
+ required: false
246
+ },
247
+ bgsz: {
248
+ type: null,
249
+ required: false
250
+ },
251
+ bgp: {
252
+ type: null,
253
+ required: false
254
+ },
255
+ bgr: {
256
+ type: null,
257
+ required: false
258
+ },
259
+ bga: {
260
+ type: null,
261
+ required: false
262
+ },
263
+ pos: {
264
+ type: [String, Object],
265
+ required: false
266
+ },
267
+ top: {
268
+ type: null,
269
+ required: false
270
+ },
271
+ left: {
272
+ type: null,
273
+ required: false
274
+ },
275
+ bottom: {
276
+ type: null,
277
+ required: false
278
+ },
279
+ right: {
280
+ type: null,
281
+ required: false
282
+ },
283
+ inset: {
284
+ type: null,
285
+ required: false
286
+ },
287
+ display: {
288
+ type: null,
289
+ required: false
290
+ },
291
+ flex: {
292
+ type: null,
293
+ required: false
294
+ },
295
+ unstyled: {
296
+ type: Boolean,
297
+ required: false
298
+ },
299
+ variant: {
300
+ type: null,
301
+ required: false
302
+ },
303
+ classNames: {
304
+ type: null,
305
+ required: false
306
+ },
307
+ styles: {
308
+ type: null,
309
+ required: false
310
+ },
311
+ vars: {
312
+ type: Function,
313
+ required: false
314
+ },
315
+ attributes: {
316
+ type: null,
317
+ required: false
318
+ }
319
+ },
320
+ setup(__props, { expose: __expose }) {
321
+ const _root = ref(null);
322
+ const _alpha = ref(null);
323
+ const _shadow = ref(null);
324
+ const _color = ref(null);
325
+ const _children = ref(null);
326
+ const attrs = useAttrs();
327
+ const rawProps = __props;
328
+ const defaultProps = { withShadow: true };
329
+ const props = useComponentProps({
330
+ component: "CColorSwatch",
331
+ defaultProps,
332
+ props: rawProps
333
+ });
334
+ const knownProps = [
335
+ "classNames",
336
+ "className",
337
+ "style",
338
+ "styles",
339
+ "unstyled",
340
+ "vars",
341
+ "color",
342
+ "radius",
343
+ "withShadow",
344
+ "attributes"
345
+ ];
346
+ const styleProps = computed(() => ({
347
+ ...props.value,
348
+ ...attrs,
349
+ style: attrs.style ?? props.value.style
350
+ }));
351
+ const getStyles = useStyles({
352
+ name: "ColorSwatch",
353
+ props: styleProps,
354
+ classes: color_swatch_module_default,
355
+ className: () => props.value.className,
356
+ style: () => props.value.style,
357
+ classNames: props.value.classNames,
358
+ styles: props.value.styles,
359
+ unstyled: props.value.unstyled,
360
+ attributes: props.value.attributes,
361
+ vars: props.value.vars,
362
+ varsResolver
363
+ });
364
+ const rootAttrs = computed(() => getStyles("root", { focusable: true }));
365
+ const alphaAttrs = computed(() => getStyles("alphaOverlay"));
366
+ const shadowAttrs = computed(() => getStyles("shadowOverlay"));
367
+ const colorAttrs = computed(() => getStyles("colorOverlay", { style: { backgroundColor: props.value.color } }));
368
+ const childrenAttrs = computed(() => getStyles("childrenOverlay"));
369
+ const mergedRootAttrs = computed(() => {
370
+ const others = {};
371
+ const propsValue = props.value;
372
+ for (const key in propsValue) if (!knownProps.includes(key)) others[key] = propsValue[key];
373
+ const userMod = props.value.mod;
374
+ const mergedMod = [...Array.isArray(userMod) ? userMod : [userMod]];
375
+ return {
376
+ ...others,
377
+ mod: mergedMod,
378
+ ...rootAttrs.value
379
+ };
380
+ });
381
+ __expose({
382
+ root: computed(() => _root.value?.root ?? null),
383
+ alphaOverlay: computed(() => _alpha.value?.root ?? null),
384
+ shadowOverlay: computed(() => _shadow.value?.root ?? null),
385
+ colorOverlay: computed(() => _color.value?.root ?? null),
386
+ childrenOverlay: computed(() => _children.value?.root ?? null)
387
+ });
388
+ const __returned__ = {
389
+ _root,
390
+ _alpha,
391
+ _shadow,
392
+ _color,
393
+ _children,
394
+ attrs,
395
+ rawProps,
396
+ defaultProps,
397
+ props,
398
+ knownProps,
399
+ styleProps,
400
+ getStyles,
401
+ rootAttrs,
402
+ alphaAttrs,
403
+ shadowAttrs,
404
+ colorAttrs,
405
+ childrenAttrs,
406
+ mergedRootAttrs,
407
+ get CBox() {
408
+ return CBox;
409
+ }
410
+ };
411
+ Object.defineProperty(__returned__, "__isScriptSetup", {
412
+ enumerable: false,
413
+ value: true
414
+ });
415
+ return __returned__;
416
+ }
417
+ });
418
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
419
+ return openBlock(), createBlock($setup["CBox"], mergeProps({ ref: "_root" }, $setup.mergedRootAttrs), {
420
+ default: withCtx(() => [
421
+ createVNode($setup["CBox"], mergeProps({ tag: "span" }, $setup.alphaAttrs), null, 16),
422
+ $setup.props.withShadow ? (openBlock(), createBlock($setup["CBox"], mergeProps({
423
+ key: 0,
424
+ tag: "span"
425
+ }, $setup.shadowAttrs), null, 16)) : createCommentVNode("v-if", true),
426
+ createVNode($setup["CBox"], mergeProps({ tag: "span" }, $setup.colorAttrs), null, 16),
427
+ createVNode($setup["CBox"], mergeProps({ tag: "span" }, $setup.childrenAttrs), {
428
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
429
+ _: 3
430
+ }, 16)
431
+ ]),
432
+ _: 3
433
+ }, 16);
434
+ }
435
+ var color_swatch_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/cck-ui/cck-ui/packages/@cck-ui/core/src/components/color-swatch/color-swatch.vue"]]);
436
+ //#endregion
437
+ export { color_swatch_default as default };
438
+
439
+ //# sourceMappingURL=color-swatch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-swatch.mjs","names":[],"sources":["../../../src/components/color-swatch/color-swatch.vue"],"sourcesContent":["<template>\n <c-box ref=\"_root\" v-bind=\"mergedRootAttrs\">\n <c-box tag=\"span\" v-bind=\"alphaAttrs\"></c-box>\n <c-box tag=\"span\" v-bind=\"shadowAttrs\" v-if=\"props.withShadow\"></c-box>\n <c-box tag=\"span\" v-bind=\"colorAttrs\"></c-box>\n <c-box tag=\"span\" v-bind=\"childrenAttrs\">\n <slot />\n </c-box>\n </c-box>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useAttrs } from 'vue'\nimport { CBox, CStyleProp, useComponentProps, useStyles } from '../../core'\nimport { ColorSwatchFactory, ColorSwatchProps } from './color-swatch.types'\nimport classes from './color-swatch.module.css'\nimport { varsResolver } from './color-swatch.utils'\n\ndefineOptions({\n name: 'CColorSwatch',\n})\n\nconst _root = ref<InstanceType<typeof CBox> | null>(null)\nconst _alpha = ref<InstanceType<typeof CBox> | null>(null)\nconst _shadow = ref<InstanceType<typeof CBox> | null>(null)\nconst _color = ref<InstanceType<typeof CBox> | null>(null)\nconst _children = ref<InstanceType<typeof CBox> | null>(null)\n\nconst attrs = useAttrs()\n\nconst rawProps = defineProps<ColorSwatchProps>()\n\nconst defaultProps = {\n withShadow: true,\n} satisfies Partial<ColorSwatchProps>\n\nconst props = useComponentProps({\n component: 'CColorSwatch',\n defaultProps,\n props: rawProps,\n})\n\nconst knownProps = [\n 'classNames',\n 'className',\n 'style',\n 'styles',\n 'unstyled',\n 'vars',\n 'color',\n 'radius',\n 'withShadow',\n 'attributes',\n]\n\nconst styleProps = computed(() => ({\n ...props.value,\n ...attrs,\n style: (attrs.style ?? props.value.style) as CStyleProp,\n}))\n\nconst getStyles = useStyles<ColorSwatchFactory>({\n name: 'ColorSwatch',\n props: styleProps,\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 }))\nconst alphaAttrs = computed(() => getStyles('alphaOverlay'))\nconst shadowAttrs = computed(() => getStyles('shadowOverlay'))\nconst colorAttrs = computed(() =>\n getStyles('colorOverlay', { style: { backgroundColor: props.value.color } })\n)\nconst childrenAttrs = computed(() => getStyles('childrenOverlay'))\n\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])]\n return { ...others, mod: mergedMod, ...rootAttrs.value }\n})\n\ndefineExpose({\n root: computed(() => _root.value?.root ?? null),\n alphaOverlay: computed(() => _alpha.value?.root ?? null),\n shadowOverlay: computed(() => _shadow.value?.root ?? null),\n colorOverlay: computed(() => _color.value?.root ?? null),\n childrenOverlay: computed(() => _children.value?.root ?? null),\n})\n</script>\n"],"mappings":"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"}
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ //#region packages/@cck-ui/core/src/components/color-swatch/color-swatch.module.css
3
+ var color_swatch_module_default = {
4
+ "root": "m_c2451869",
5
+ "colorOverlay": "m_169647f4",
6
+ "shadowOverlay": "m_1528cf69",
7
+ "alphaOverlay": "m_25d7a599",
8
+ "childrenOverlay": "m_5065cf6a"
9
+ };
10
+ //#endregion
11
+ export { color_swatch_module_default as default };
12
+
13
+ //# sourceMappingURL=color-swatch.module.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-swatch.module.mjs","names":[],"sources":["../../../src/components/color-swatch/color-swatch.module.css"],"sourcesContent":[".root {\n --cs-size: 28px;\n --cs-radius: 1000px;\n\n -webkit-tap-highlight-color: transparent;\n border: none;\n appearance: none;\n display: block;\n line-height: 1;\n position: relative;\n width: var(--cs-size);\n height: var(--cs-size);\n min-width: var(--cs-size);\n min-height: var(--cs-size);\n border-radius: var(--cs-radius);\n color: inherit;\n text-decoration: none;\n\n @mixin light {\n --alpha-overlay-color: var(--c-color-gray-3);\n --alpha-overlay-bg: var(--c-color-white);\n }\n\n @mixin dark {\n --alpha-overlay-color: var(--c-color-dark-4);\n --alpha-overlay-bg: var(--c-color-dark-7);\n }\n}\n\n.colorOverlay {\n position: absolute;\n inset: 0;\n border-radius: var(--cs-radius);\n}\n\n.shadowOverlay {\n position: absolute;\n inset: 0;\n border-radius: var(--cs-radius);\n z-index: 1;\n box-shadow:\n rgba(0, 0, 0, 0.1) 0 0 0 rem(1px) inset,\n rgb(0, 0, 0, 0.15) 0 0 rem(4px) inset;\n}\n\n.alphaOverlay {\n position: absolute;\n inset: 0;\n border-radius: var(--cs-radius);\n background-size: 8px 8px;\n background-position:\n 0 0,\n 0 4px,\n 4px -4px,\n -4px 0;\n background-image:\n linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%),\n linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%),\n linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);\n}\n\n.childrenOverlay {\n position: absolute;\n inset: 0;\n border-radius: var(--cs-radius);\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n"],"mappings":";;AAAA,IAAA,8BAAe;CAAC,QAAO;CAAa,gBAAe;CAAa,iBAAgB;CAAa,gBAAe;CAAa,mBAAkB;AAAY"}