@central-design-system/components 3.0.0-beta.8 → 3.0.0-rc.1

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 (246) hide show
  1. package/dist/cds.css +1 -1
  2. package/dist/cds.d.ts +9 -2
  3. package/dist/cds.es.js +18620 -13172
  4. package/dist/cds.umd.js +7 -3
  5. package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +93 -89
  6. package/dist/components/CdsBadge/CdsBadge.vue.d.ts +27 -12
  7. package/dist/components/CdsBreadcrumbs/CdsBreadcrumbs.vue.d.ts +11 -0
  8. package/dist/components/CdsBreadcrumbs/CdsBreadcrumbsItem.vue.d.ts +14 -3
  9. package/dist/components/CdsButton/CdsButton.vue.d.ts +40 -29
  10. package/dist/components/CdsButton/CdsFunctionalButton.vue.d.ts +73 -0
  11. package/dist/components/CdsButton/index.d.ts +1 -0
  12. package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +19 -0
  13. package/dist/components/CdsCheckbox/CdsCheckboxGroup.vue.d.ts +13 -0
  14. package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +326 -213
  15. package/dist/components/CdsContainer/CdsContainer.vue.d.ts +43 -26
  16. package/dist/components/CdsContainer/context.d.ts +1 -1
  17. package/dist/components/CdsContentSwitcher/CdsContentSwitcher.vue.d.ts +11 -0
  18. package/dist/components/CdsContentSwitcher/CdsContentSwitcherItem.vue.d.ts +27 -27
  19. package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +12 -1
  20. package/dist/components/CdsDatePicker/composable/calendar.d.ts +4 -4
  21. package/dist/components/CdsDivider/CdsDivider.vue.d.ts +45 -0
  22. package/dist/components/CdsDivider/index.d.ts +1 -0
  23. package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +70 -4
  24. package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +248 -177
  25. package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +4 -4
  26. package/dist/components/CdsExpandablePanel/CdsExpandablePanel.vue.d.ts +13 -13
  27. package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.vue.d.ts +10 -10
  28. package/dist/components/CdsExpandablePanel/CdsExpandablePanels.vue.d.ts +19 -8
  29. package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +3 -3
  30. package/dist/components/CdsFooter/CdsFooter.vue.d.ts +23 -3
  31. package/dist/components/CdsForm/CdsForm.vue.d.ts +11 -0
  32. package/dist/components/CdsGrid/composable/column.d.ts +1 -1
  33. package/dist/components/CdsGrid/composable/subgrid.d.ts +1 -1
  34. package/dist/components/CdsGrid/mode/CSSGrid.d.ts +1 -1
  35. package/dist/components/CdsGrid/mode/FlexGrid.d.ts +1 -1
  36. package/dist/components/CdsHeader/CdsHeader.vue.d.ts +23 -3
  37. package/dist/components/CdsIcon/CdsIcon.vue.d.ts +33 -3
  38. package/dist/components/CdsImage/CdsImage.vue.d.ts +264 -0
  39. package/dist/components/CdsImage/components/CdsResponsive.vue.d.ts +87 -0
  40. package/dist/components/CdsImage/components/index.d.ts +1 -0
  41. package/dist/components/CdsImage/composable/image.d.ts +134 -0
  42. package/dist/components/CdsImage/composable/index.d.ts +2 -0
  43. package/dist/components/CdsImage/composable/responsive.d.ts +35 -0
  44. package/dist/components/CdsImage/index.d.ts +2 -0
  45. package/dist/components/CdsInput/CdsInput.vue.d.ts +27 -22
  46. package/dist/components/CdsInput/CdsInputDescription.vue.d.ts +3 -3
  47. package/dist/components/CdsInput/CdsInputLabel.vue.d.ts +15 -4
  48. package/dist/components/CdsLayout/CdsLayout.vue.d.ts +12 -1
  49. package/dist/components/CdsLayout/context.d.ts +1 -1
  50. package/dist/components/CdsLink/CdsLink.vue.d.ts +13 -11
  51. package/dist/components/CdsList/CdsList.vue.d.ts +22 -40
  52. package/dist/components/CdsList/CdsListGroup.vue.d.ts +7 -7
  53. package/dist/components/CdsList/CdsListItem.vue.d.ts +12 -12
  54. package/dist/components/CdsList/composable/list.d.ts +1 -1
  55. package/dist/components/CdsLoader/CdsLoader.vue.d.ts +12 -0
  56. package/dist/components/CdsMenu/CdsMenu.vue.d.ts +59 -14
  57. package/dist/components/CdsModal/CdsModal.vue.d.ts +41 -8
  58. package/dist/components/CdsNotification/CdsNotification.vue.d.ts +34 -27
  59. package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +53 -24
  60. package/dist/components/CdsNotification/composable/notification.d.ts +4 -4
  61. package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +35 -3
  62. package/dist/components/CdsOverlay/composable/activator.d.ts +19 -6
  63. package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +6 -5
  64. package/dist/components/CdsOverlay/composable/scrollStrategies.d.ts +1 -1
  65. package/dist/components/CdsOverlay/composable/teleport.d.ts +25 -1
  66. package/dist/components/CdsOverlay/constants.d.ts +2 -0
  67. package/dist/components/CdsPagination/CdsPagination.vue.d.ts +37 -2
  68. package/dist/components/CdsProgress/CdsProgress.vue.d.ts +11 -0
  69. package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +27 -12
  70. package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +13 -0
  71. package/dist/components/CdsSelect/CdsSelect.vue.d.ts +93 -63
  72. package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +15 -7
  73. package/dist/components/CdsSkeletonLoader/CdsSkeletonLoader.vue.d.ts +14 -3
  74. package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +19 -19
  75. package/dist/components/CdsStages/CdsStages.vue.d.ts +13 -1
  76. package/dist/components/CdsStatus/CdsStatus.vue.d.ts +38 -19
  77. package/dist/components/CdsSteps/CdsSteps.vue.d.ts +12 -65
  78. package/dist/components/CdsSteps/CdsStepsItem.vue.d.ts +5 -5
  79. package/dist/components/CdsSteps/context.d.ts +3 -2
  80. package/dist/components/CdsTable/CdsTable.vue.d.ts +108 -31
  81. package/dist/components/CdsTable/components/Footer/Footer.d.ts +1 -1
  82. package/dist/components/CdsTable/components/Header/DragHandle.d.ts +1 -1
  83. package/dist/components/CdsTable/components/Icons/ExpandIcon.d.ts +2 -1
  84. package/dist/components/CdsTable/components/Table/InternalTable.d.ts +98 -23
  85. package/dist/components/CdsTable/components/TableProvider.d.ts +110 -24
  86. package/dist/components/CdsTable/composable/filter.d.ts +1 -1
  87. package/dist/components/CdsTable/composable/flat.d.ts +1 -1
  88. package/dist/components/CdsTable/composable/pagination.d.ts +4 -2
  89. package/dist/components/CdsTable/composable/scroll.d.ts +1 -1
  90. package/dist/components/CdsTable/composable/selection.d.ts +1 -1
  91. package/dist/components/CdsTable/composable/sorter.d.ts +1 -1
  92. package/dist/components/CdsTable/composable/sticky.d.ts +1 -1
  93. package/dist/components/CdsTable/composable/table.d.ts +56 -10
  94. package/dist/components/CdsTable/constants.d.ts +1 -0
  95. package/dist/components/CdsTable/context/summary.d.ts +1 -1
  96. package/dist/components/CdsTable/context/table.d.ts +1 -1
  97. package/dist/components/CdsTable/interface.d.ts +11 -7
  98. package/dist/components/CdsTable/utils/column.d.ts +1 -3
  99. package/dist/components/CdsTable/utils/index.d.ts +1 -1
  100. package/dist/components/CdsTable/utils/vnode.d.ts +10 -0
  101. package/dist/components/CdsTabs/CdsTab.vue.d.ts +14 -14
  102. package/dist/components/CdsTabs/CdsTabs.vue.d.ts +38 -32
  103. package/dist/components/CdsTag/CdsTag.vue.d.ts +55 -39
  104. package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +105 -87
  105. package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +101 -63
  106. package/dist/components/CdsTimePicker/CdsTimePicker.vue.d.ts +11 -0
  107. package/dist/components/CdsTimePicker/composable/time.d.ts +2 -2
  108. package/dist/components/CdsToggle/CdsToggle.vue.d.ts +13 -8
  109. package/dist/components/CdsToolbar/CdsToolbar.vue.d.ts +53 -0
  110. package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +39 -10
  111. package/dist/components/CdsTree/CdsTree.vue.d.ts +708 -0
  112. package/dist/components/CdsTree/CdsTreeDirectory.vue.d.ts +446 -0
  113. package/dist/components/CdsTree/CdsTreeNode.vue.d.ts +119 -0
  114. package/dist/components/CdsTree/components/DropIndicator.d.ts +9 -0
  115. package/dist/components/CdsTree/components/Indent.d.ts +10 -0
  116. package/dist/components/CdsTree/components/MotionTreeNode.d.ts +128 -0
  117. package/dist/components/CdsTree/components/NodeList.d.ts +191 -0
  118. package/dist/components/CdsTree/components/SwitcherIcon.d.ts +12 -0
  119. package/dist/components/CdsTree/components/TreeContext.d.ts +81 -0
  120. package/dist/components/CdsTree/components/TreeProvider.d.ts +619 -0
  121. package/dist/components/CdsTree/components/VirtualList/Filler.d.ts +12 -0
  122. package/dist/components/CdsTree/components/VirtualList/Item.d.ts +6 -0
  123. package/dist/components/CdsTree/components/VirtualList/ScrollBar.d.ts +33 -0
  124. package/dist/components/CdsTree/components/VirtualList/VirtualList.d.ts +84 -0
  125. package/dist/components/CdsTree/components/VirtualList/features/index.d.ts +5 -0
  126. package/dist/components/CdsTree/components/VirtualList/features/useFrameWheel.d.ts +10 -0
  127. package/dist/components/CdsTree/components/VirtualList/features/useHeights.d.ts +9 -0
  128. package/dist/components/CdsTree/components/VirtualList/features/useMobileTouchMove.d.ts +2 -0
  129. package/dist/components/CdsTree/components/VirtualList/features/useOriginScroll.d.ts +2 -0
  130. package/dist/components/CdsTree/components/VirtualList/features/useScrollTo.d.ts +4 -0
  131. package/dist/components/CdsTree/components/VirtualList/index.d.ts +2 -0
  132. package/dist/components/CdsTree/components/VirtualList/interface.d.ts +10 -0
  133. package/dist/components/CdsTree/composable/events.d.ts +133 -0
  134. package/dist/components/CdsTree/composable/index.d.ts +2 -0
  135. package/dist/components/CdsTree/composable/tree.d.ts +273 -0
  136. package/dist/components/CdsTree/composable/treeNode.d.ts +75 -0
  137. package/dist/components/CdsTree/index.d.ts +5 -0
  138. package/dist/components/CdsTree/interface.d.ts +104 -4
  139. package/dist/components/CdsTree/utils/conduct.d.ts +1 -1
  140. package/dist/components/CdsTree/utils/data.d.ts +70 -0
  141. package/dist/components/CdsTree/utils/diff.d.ts +6 -0
  142. package/dist/components/CdsTree/utils/directory.d.ts +9 -0
  143. package/dist/components/CdsTree/utils/index.d.ts +2 -0
  144. package/dist/components/CdsUploader/CdsUploader.vue.d.ts +642 -39
  145. package/dist/components/CdsUploader/components/AjaxUploader.d.ts +603 -15
  146. package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +37 -19
  147. package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +36 -18
  148. package/dist/components/CdsUploader/composable/upload.d.ts +221 -9
  149. package/dist/components/CdsUploader/index.d.ts +1 -0
  150. package/dist/components/CdsUploader/interface.d.ts +1 -1
  151. package/dist/components/index.d.ts +10 -1
  152. package/dist/composable/appearance.d.ts +4 -4
  153. package/dist/composable/color.d.ts +17 -6
  154. package/dist/composable/datetime.d.ts +4 -4
  155. package/dist/composable/delay.d.ts +3 -2
  156. package/dist/composable/direction.d.ts +1 -1
  157. package/dist/composable/display.d.ts +2 -0
  158. package/dist/composable/domObserver.d.ts +5 -0
  159. package/dist/composable/field.d.ts +17 -5
  160. package/dist/composable/filter.d.ts +30 -0
  161. package/dist/composable/form.d.ts +2 -2
  162. package/dist/composable/group.d.ts +3 -3
  163. package/dist/composable/icon.d.ts +3 -3
  164. package/dist/composable/index.d.ts +5 -1
  165. package/dist/composable/invertColor.d.ts +19 -0
  166. package/dist/composable/layout.d.ts +20 -20
  167. package/dist/composable/loading.d.ts +2 -2
  168. package/dist/composable/menu.d.ts +3 -1
  169. package/dist/composable/nested/nested.d.ts +2 -2
  170. package/dist/composable/overlay.d.ts +9 -1
  171. package/dist/{components/CdsDropdown/composable → composable}/scrolling.d.ts +2 -2
  172. package/dist/composable/select.d.ts +18 -21
  173. package/dist/composable/size.d.ts +1 -1
  174. package/dist/composable/text.d.ts +2 -2
  175. package/dist/composable/theme.d.ts +73 -0
  176. package/dist/composable/transition.d.ts +2 -0
  177. package/dist/composable/transparent.d.ts +19 -0
  178. package/dist/composable/validation.d.ts +2 -2
  179. package/dist/composable/variant.d.ts +2 -5
  180. package/dist/create.d.ts +7 -1
  181. package/dist/globals.d.ts +7 -0
  182. package/dist/locale/index.d.ts +4 -1
  183. package/dist/themes/b2bDark.d.ts +190 -0
  184. package/dist/themes/b2bLight.d.ts +190 -0
  185. package/dist/themes/cdsDark.d.ts +190 -0
  186. package/dist/themes/cdsLight.d.ts +190 -0
  187. package/dist/themes/colors.d.ts +458 -0
  188. package/dist/themes/index.d.ts +6 -0
  189. package/dist/themes/themes.d.ts +10 -0
  190. package/dist/transitions/collapseTransition.d.ts +11 -0
  191. package/dist/transitions/index.d.ts +1 -0
  192. package/dist/utils/colorsUtils/APCA.d.ts +7 -0
  193. package/dist/utils/colorsUtils/index.d.ts +1 -0
  194. package/dist/utils/colorsUtils/transformCIELAB.d.ts +3 -0
  195. package/dist/utils/colorsUtils/transformSRGB.d.ts +3 -0
  196. package/dist/utils/colorsUtils/utils.d.ts +42 -0
  197. package/dist/utils/date/date.d.ts +1 -0
  198. package/dist/utils/dom/bindProps.d.ts +2 -0
  199. package/dist/utils/dom/box.d.ts +1 -0
  200. package/dist/utils/helpers.d.ts +31 -6
  201. package/dist/utils/index.d.ts +4 -0
  202. package/dist/utils/propsFactory.d.ts +1 -1
  203. package/dist/utils/use/flattenChildren.d.ts +3 -0
  204. package/nuxt.js +2 -1
  205. package/package.json +5 -1
  206. package/src/scss/index.scss +0 -2
  207. package/src/scss/mixins/layout/_shadow.scss +43 -2
  208. package/src/scss/mixins/layout/_spacing.scss +13 -12
  209. package/src/scss/mixins/layout/index.scss +1 -0
  210. package/src/scss/mixins/typo.scss +261 -58
  211. package/src/scss/modules/_reset.scss +5 -4
  212. package/src/scss/modules/_transition.scss +31 -0
  213. package/src/scss/modules/_typography.scss +6 -2
  214. package/src/scss/modules/grid/_css-grid.scss +12 -19
  215. package/src/scss/modules/grid/_flex-grid.scss +9 -5
  216. package/src/scss/modules/grid/_mixins.scss +23 -31
  217. package/src/scss/themes/.deprecated +1 -0
  218. package/src/scss/themes/b2b/tokens.json +104 -104
  219. package/src/scss/themes/b2b/variables.css +142 -0
  220. package/src/scss/themes/cds/tokens.json +104 -104
  221. package/src/scss/themes/cds/variables.css +173 -31
  222. package/src/scss/themes/index.ts +1 -1
  223. package/src/scss/utility/index.scss +1 -0
  224. package/src/scss/utility/lists.scss +1 -1
  225. package/src/scss/utility/typography.scss +63 -0
  226. package/src/scss/utility/variables/exports/_display.scss +4 -4
  227. package/src/scss/utility/variables/exports/_typography.scss +22 -0
  228. package/src/scss/utility/variables/index.scss +1 -0
  229. package/src/scss/utility/variables/typography.scss +93 -0
  230. package/src/themes/b2bDark.ts +191 -0
  231. package/src/themes/b2bLight.ts +191 -0
  232. package/src/themes/cdsDark.ts +191 -0
  233. package/src/themes/cdsLight.ts +191 -0
  234. package/src/themes/colors.ts +492 -0
  235. package/src/themes/css/b2bDark.css +184 -0
  236. package/src/themes/css/b2bLight.css +184 -0
  237. package/src/themes/css/cdsDark.css +184 -0
  238. package/src/themes/css/cdsLight.css +184 -0
  239. package/src/themes/index.ts +8 -0
  240. package/src/themes/themes.d.ts +10 -0
  241. package/dist/components/CdsDropdown/composable/index.d.ts +0 -1
  242. package/dist/components/CdsSteps/svg/_CdsStepCurrentIcon.vue.d.ts +0 -2
  243. package/dist/components/CdsSteps/svg/_CdsStepsIconIncomplete.vue.d.ts +0 -2
  244. package/dist/composable/dark.d.ts +0 -19
  245. package/dist/plugins/index.d.ts +0 -2
  246. /package/dist/{components/CdsTable/utils → utils/use}/listener.d.ts +0 -0
@@ -0,0 +1,458 @@
1
+ /**
2
+ * Automatically generated by CDS CLI from CDS Server
3
+ * Generated on 1/27/2025, 7:21:39 AM
4
+ * Updated on 2024-12-25T14:30:52.638Z
5
+ **/
6
+ declare const _default: {
7
+ red: Readonly<{
8
+ light10: "#FFE9E3";
9
+ light50: "#FFD1C6";
10
+ light100: "#FEC0B2";
11
+ light200: "#FFAE9E";
12
+ light300: "#FE9585";
13
+ light400: "#FE8071";
14
+ light500: "#F46A5D";
15
+ light600: "#E4594F";
16
+ light700: "#D1453F";
17
+ light800: "#9D2124";
18
+ light900: "#831118";
19
+ light950: "#470500";
20
+ dark10: "#4C1715";
21
+ dark50: "#822825";
22
+ dark100: "#A5302F";
23
+ dark200: "#B8423D";
24
+ dark300: "#D15850";
25
+ dark400: "#DF655C";
26
+ dark500: "#F0786D";
27
+ dark600: "#F9887C";
28
+ dark700: "#FF9E92";
29
+ dark800: "#FFC4BA";
30
+ dark900: "#FFD2CC";
31
+ dark950: "#FFE8E4";
32
+ }>;
33
+ chocolate: Readonly<{
34
+ light10: "#FAEBDF";
35
+ light50: "#E7D9CC";
36
+ light100: "#E0CBBB";
37
+ light200: "#D8BEA9";
38
+ light300: "#CDAD93";
39
+ light400: "#C4A082";
40
+ light500: "#B78F6D";
41
+ light600: "#AC7F58";
42
+ light700: "#9E6D41";
43
+ light800: "#7F470D";
44
+ light900: "#693803";
45
+ light950: "#361D01";
46
+ dark10: "#3F2301";
47
+ dark50: "#6E3B01";
48
+ dark100: "#874E0A";
49
+ dark200: "#985E1F";
50
+ dark300: "#AF7134";
51
+ dark400: "#BB7F42";
52
+ dark500: "#CA915C";
53
+ dark600: "#D49E6D";
54
+ dark700: "#E1AE7F";
55
+ dark800: "#F1CBA7";
56
+ dark900: "#F4D8BE";
57
+ dark950: "#FAEADB";
58
+ }>;
59
+ orange: Readonly<{
60
+ light10: "#FEEAD9";
61
+ light50: "#FBD5B5";
62
+ light100: "#FBC398";
63
+ light200: "#FBB27C";
64
+ light300: "#FB9A57";
65
+ light400: "#F38A4A";
66
+ light500: "#E17B44";
67
+ light600: "#D16C39";
68
+ light700: "#BD5B2D";
69
+ light800: "#8F3810";
70
+ light900: "#782A0A";
71
+ light950: "#431502";
72
+ dark10: "#471D07";
73
+ dark50: "#793213";
74
+ dark100: "#9A3F15";
75
+ dark200: "#AC5025";
76
+ dark300: "#C36438";
77
+ dark400: "#D27144";
78
+ dark500: "#E48255";
79
+ dark600: "#EE9165";
80
+ dark700: "#F5A57F";
81
+ dark800: "#FAC7B0";
82
+ dark900: "#FBD5C4";
83
+ dark950: "#FEE8DE";
84
+ }>;
85
+ yellow: Readonly<{
86
+ light10: "#FBEDBE";
87
+ light50: "#F2DB82";
88
+ light100: "#EACD60";
89
+ light200: "#DEC048";
90
+ light300: "#D1AF30";
91
+ light400: "#C6A221";
92
+ light500: "#B69210";
93
+ light600: "#A6840A";
94
+ light700: "#937305";
95
+ light800: "#6B5100";
96
+ light900: "#584001";
97
+ light950: "#312300";
98
+ dark10: "#382601";
99
+ dark50: "#614301";
100
+ dark100: "#785501";
101
+ dark200: "#8A6502";
102
+ dark300: "#A07914";
103
+ dark400: "#AE8624";
104
+ dark500: "#BE9737";
105
+ dark600: "#C9A449";
106
+ dark700: "#D4B56A";
107
+ dark800: "#E5D0A0";
108
+ dark900: "#EADBBA";
109
+ dark950: "#F4EBD9";
110
+ }>;
111
+ lemon: Readonly<{
112
+ light10: "#F4EFBE";
113
+ light50: "#E6DF83";
114
+ light100: "#D8D268";
115
+ light200: "#CBC65F";
116
+ light300: "#BAB726";
117
+ light400: "#ADAB26";
118
+ light500: "#9D9B25";
119
+ light600: "#8E8C23";
120
+ light700: "#7D7A1F";
121
+ light800: "#5A571C";
122
+ light900: "#494619";
123
+ light950: "#282601";
124
+ dark10: "#2A2C01";
125
+ dark50: "#484C01";
126
+ dark100: "#5C6101";
127
+ dark200: "#6A7100";
128
+ dark300: "#7F8505";
129
+ dark400: "#8C921D";
130
+ dark500: "#9DA235";
131
+ dark600: "#ABAE48";
132
+ dark700: "#BBBD6A";
133
+ dark800: "#D6D5A1";
134
+ dark900: "#E0DFBA";
135
+ dark950: "#EEEED9";
136
+ }>;
137
+ lime: Readonly<{
138
+ light10: "#EAF2C4";
139
+ light50: "#D4E490";
140
+ light100: "#C4D878";
141
+ light200: "#B6CC65";
142
+ light300: "#A1BE40";
143
+ light400: "#93B230";
144
+ light500: "#85A12D";
145
+ light600: "#78922C";
146
+ light700: "#6A8029";
147
+ light800: "#4C5B21";
148
+ light900: "#3E4A1D";
149
+ light950: "#202901";
150
+ dark10: "#242D01";
151
+ dark50: "#3D4F00";
152
+ dark100: "#4E6401";
153
+ dark200: "#5B7400";
154
+ dark300: "#6E8913";
155
+ dark400: "#7C9624";
156
+ dark500: "#8DA63B";
157
+ dark600: "#9BB24D";
158
+ dark700: "#AEC06D";
159
+ dark800: "#CDD7A3";
160
+ dark900: "#D9E0BB";
161
+ dark950: "#EBEED8";
162
+ }>;
163
+ green: Readonly<{
164
+ light10: "#DCF5D0";
165
+ light50: "#BCE8AB";
166
+ light100: "#A5DD98";
167
+ light200: "#97D283";
168
+ light300: "#7DC470";
169
+ light400: "#6EB85A";
170
+ light500: "#50A946";
171
+ light600: "#3C9C2C";
172
+ light700: "#2C8926";
173
+ light800: "#026309";
174
+ light900: "#005005";
175
+ light950: "#0B2C01";
176
+ dark10: "#093107";
177
+ dark50: "#0D5512";
178
+ dark100: "#016B12";
179
+ dark200: "#1F7C22";
180
+ dark300: "#399136";
181
+ dark400: "#479E43";
182
+ dark500: "#5DAF55";
183
+ dark600: "#6EBA66";
184
+ dark700: "#89C880";
185
+ dark800: "#B6DCAF";
186
+ dark900: "#CAE4C4";
187
+ dark950: "#E1F1DE";
188
+ }>;
189
+ cyan: Readonly<{
190
+ light10: "#D4F5EC";
191
+ light50: "#9FEBD8";
192
+ light100: "#6FE3CA";
193
+ light200: "#58D8BE";
194
+ light300: "#51C5AE";
195
+ light400: "#4FB9A3";
196
+ light500: "#48A692";
197
+ light600: "#439786";
198
+ light700: "#3C8475";
199
+ light800: "#2A5F54";
200
+ light900: "#204D44";
201
+ light950: "#052B24";
202
+ dark10: "#013126";
203
+ dark50: "#005348";
204
+ dark100: "#026959";
205
+ dark200: "#067A69";
206
+ dark300: "#04917C";
207
+ dark400: "#029E88";
208
+ dark500: "#0AB098";
209
+ dark600: "#0ABEA3";
210
+ dark700: "#45CCB2";
211
+ dark800: "#96E0CE";
212
+ dark900: "#B6E7DB";
213
+ dark950: "#D5F3EB";
214
+ }>;
215
+ teal: Readonly<{
216
+ light10: "#D4F4F7";
217
+ light50: "#A1E9E9";
218
+ light100: "#74DFE3";
219
+ light200: "#48D6DB";
220
+ light300: "#44C4CC";
221
+ light400: "#41B7BF";
222
+ light500: "#3CA5AD";
223
+ light600: "#3A969E";
224
+ light700: "#34838A";
225
+ light800: "#2A5D62";
226
+ light900: "#254C50";
227
+ light950: "#022B2F";
228
+ dark10: "#012F37";
229
+ dark50: "#04525B";
230
+ dark100: "#046672";
231
+ dark200: "#007886";
232
+ dark300: "#028D9C";
233
+ dark400: "#059BAC";
234
+ dark500: "#01ACBF";
235
+ dark600: "#0ABACE";
236
+ dark700: "#31C9DD";
237
+ dark800: "#91DEEB";
238
+ dark900: "#B3E6EF";
239
+ dark950: "#D4F2F7";
240
+ }>;
241
+ sky: Readonly<{
242
+ light10: "#E2EFFF";
243
+ light50: "#C3DFFF";
244
+ light100: "#A9D3FF";
245
+ light200: "#90C8FF";
246
+ light300: "#71B7F7";
247
+ light400: "#4CAEF8";
248
+ light500: "#2B9DE9";
249
+ light600: "#198FD8";
250
+ light700: "#1D7DBC";
251
+ light800: "#06598B";
252
+ light900: "#004871";
253
+ light950: "#012740";
254
+ dark10: "#002D47";
255
+ dark50: "#014F77";
256
+ dark100: "#016193";
257
+ dark200: "#0172AC";
258
+ dark300: "#0287CA";
259
+ dark400: "#0394DD";
260
+ dark500: "#0EA4F8";
261
+ dark600: "#4DB1FF";
262
+ dark700: "#77BEFE";
263
+ dark800: "#B0D6FF";
264
+ dark900: "#C7E0FF";
265
+ dark950: "#E2EEFE";
266
+ }>;
267
+ blue: Readonly<{
268
+ light10: "#E6EEFF";
269
+ light50: "#CBDDFD";
270
+ light100: "#B6D0FD";
271
+ light200: "#A4C5FE";
272
+ light300: "#85B4FB";
273
+ light400: "#6EA9FC";
274
+ light500: "#4D98F9";
275
+ light600: "#3D8AEC";
276
+ light700: "#2978D4";
277
+ light800: "#14559C";
278
+ light900: "#11447D";
279
+ light950: "#072649";
280
+ dark10: "#142955";
281
+ dark50: "#1D4790";
282
+ dark100: "#1159B5";
283
+ dark200: "#3368C8";
284
+ dark300: "#417FE1";
285
+ dark400: "#4A8DEF";
286
+ dark500: "#5D9DFC";
287
+ dark600: "#76ABFF";
288
+ dark700: "#92BAFE";
289
+ dark800: "#BBD4FE";
290
+ dark900: "#CDDEFF";
291
+ dark950: "#E4EDFE";
292
+ }>;
293
+ indigo: Readonly<{
294
+ light10: "#EEECFF";
295
+ light50: "#DDD9FC";
296
+ light100: "#CFCAF7";
297
+ light200: "#C3BDF9";
298
+ light300: "#B1ABF1";
299
+ light400: "#A49FF1";
300
+ light500: "#918DEC";
301
+ light600: "#807EEC";
302
+ light700: "#6B6CD8";
303
+ light800: "#4649AF";
304
+ light900: "#353799";
305
+ light950: "#1F1F55";
306
+ dark10: "#212753";
307
+ dark50: "#40428D";
308
+ dark100: "#5350B0";
309
+ dark200: "#6362C5";
310
+ dark300: "#7477DC";
311
+ dark400: "#7E83EA";
312
+ dark500: "#8B95F9";
313
+ dark600: "#96A4FF";
314
+ dark700: "#A6B5FE";
315
+ dark800: "#C7D0FE";
316
+ dark900: "#D7DBFE";
317
+ dark950: "#EBEBFF";
318
+ }>;
319
+ purple: Readonly<{
320
+ light10: "#F5E9FE";
321
+ light50: "#E8D5F6";
322
+ light100: "#DEC5F1";
323
+ light200: "#D6B8EF";
324
+ light300: "#C9A4E9";
325
+ light400: "#C195E7";
326
+ light500: "#B381E1";
327
+ light600: "#A96FDE";
328
+ light700: "#955EC8";
329
+ light800: "#6D3BA0";
330
+ light900: "#59288A";
331
+ light950: "#2F0F50";
332
+ dark10: "#31224F";
333
+ dark50: "#5E3882";
334
+ dark100: "#7346A5";
335
+ dark200: "#8457B8";
336
+ dark300: "#946DD2";
337
+ dark400: "#9D7AE0";
338
+ dark500: "#AE8BEE";
339
+ dark600: "#B79AF5";
340
+ dark700: "#C0AEF8";
341
+ dark800: "#D7CCFA";
342
+ dark900: "#E1D8FC";
343
+ dark950: "#F3E9FE";
344
+ }>;
345
+ pink: Readonly<{
346
+ light10: "#F7E9FF";
347
+ light50: "#F8D1F2";
348
+ light100: "#F6BEEC";
349
+ light200: "#F3ACE7";
350
+ light300: "#F094DF";
351
+ light400: "#ED81D8";
352
+ light500: "#DB70C4";
353
+ light600: "#D25CB8";
354
+ light700: "#BD49A2";
355
+ light800: "#941A79";
356
+ light900: "#7C0164";
357
+ light950: "#420D35";
358
+ dark10: "#47173D";
359
+ dark50: "#7A2869";
360
+ dark100: "#992F84";
361
+ dark200: "#AC4296";
362
+ dark300: "#C358AB";
363
+ dark400: "#D164B8";
364
+ dark500: "#E078C7";
365
+ dark600: "#E889D1";
366
+ dark700: "#ECA1D8";
367
+ dark800: "#F4C5E7";
368
+ dark900: "#F7D3EC";
369
+ dark950: "#FDE6F6";
370
+ }>;
371
+ silver: Readonly<{
372
+ light10: "#ECEEF2";
373
+ light50: "#DADDE2";
374
+ light100: "#CCCFD6";
375
+ light200: "#C0C3CB";
376
+ light300: "#AFB3BD";
377
+ light400: "#A3A7B2";
378
+ light500: "#9298A4";
379
+ light600: "#828A97";
380
+ light700: "#727987";
381
+ light800: "#4F5666";
382
+ light900: "#404653";
383
+ light950: "#212631";
384
+ dark10: "#272A30";
385
+ dark50: "#454951";
386
+ dark100: "#565D67";
387
+ dark200: "#666C79";
388
+ dark300: "#7A808E";
389
+ dark400: "#868C99";
390
+ dark500: "#989DA8";
391
+ dark600: "#A5A9B2";
392
+ dark700: "#B5B7C0";
393
+ dark800: "#CFD2D7";
394
+ dark900: "#DCDDE3";
395
+ dark950: "#ECECEF";
396
+ dark25: "#33373F";
397
+ }>;
398
+ gray: Readonly<{
399
+ light10: "#EEEEEE";
400
+ light50: "#DCDCDC";
401
+ light100: "#CFCFCF";
402
+ light200: "#C3C3C3";
403
+ light300: "#B3B3B3";
404
+ light400: "#A7A7A7";
405
+ light500: "#989898";
406
+ light600: "#898989";
407
+ light700: "#797979";
408
+ light800: "#565656";
409
+ light900: "#454545";
410
+ light950: "#262626";
411
+ dark10: "#2A2A2A";
412
+ dark50: "#494949";
413
+ dark100: "#5C5C5C";
414
+ dark200: "#6C6C6C";
415
+ dark300: "#808080";
416
+ dark400: "#8C8C8C";
417
+ dark500: "#9D9D9D";
418
+ dark600: "#A9A9A9";
419
+ dark700: "#B8B8B8";
420
+ dark800: "#D2D2D2";
421
+ dark900: "#DDDDDD";
422
+ dark950: "#ECECEC";
423
+ light0: "#FFFFFF";
424
+ light1000: "#000000";
425
+ dark0: "#1A1A1A";
426
+ dark1000: "#F9F9FC";
427
+ }>;
428
+ alpha: Readonly<{
429
+ dark500: "#272A3080";
430
+ dark400: "#272A3066";
431
+ dark300: "#272A304D";
432
+ dark200: "#272A3033";
433
+ dark100: "#272A301A";
434
+ light100: "#FFFFFF1A";
435
+ light200: "#FFFFFF33";
436
+ light300: "#FFFFFF4D";
437
+ light400: "#FFFFFF66";
438
+ light500: "#FFFFFF80";
439
+ silver100: "#828A971A";
440
+ silver200: "#828A9733";
441
+ silver300: "#828A974D";
442
+ silver400: "#828A9766";
443
+ silver500: "#828A9780";
444
+ light0: "#FFFFFF00";
445
+ dark0: "#272A3000";
446
+ silver0: "#828A9700";
447
+ dark600: "#272A3099";
448
+ dark700: "#272A30B2";
449
+ dark800: "#272A30CC";
450
+ silver600: "#828A9799";
451
+ silver700: "#828A97B2";
452
+ silver800: "#828A97CC";
453
+ light600: "#FFFFFF99";
454
+ light700: "#FFFFFFB2";
455
+ light800: "#FFFFFFCC";
456
+ }>;
457
+ };
458
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export * from './themes.d';
2
+ export { default as cdsLight } from './cdsLight';
3
+ export { default as cdsDark } from './cdsDark';
4
+ export { default as b2bLight } from './b2bLight';
5
+ export { default as b2bDark } from './b2bDark';
6
+ export { default as colors } from './colors';
@@ -0,0 +1,10 @@
1
+ import type { ThemeDefinition } from '../composable';
2
+
3
+ export interface IThemes {
4
+ cdsLight: ThemeDefinition;
5
+ cdsDark: ThemeDefinition;
6
+ b2bLight: ThemeDefinition;
7
+ b2bDark: ThemeDefinition;
8
+ }
9
+
10
+ export type TThemes = keyof IThemes;
@@ -0,0 +1,11 @@
1
+ export declare const CdsTransitionCollapse: (name?: string, appear?: boolean) => {
2
+ name: string;
3
+ appear: boolean;
4
+ css: boolean;
5
+ onBeforeEnter: (node: HTMLDivElement) => void;
6
+ onEnter: (node: HTMLDivElement) => void;
7
+ onAfterEnter: (node: HTMLDivElement) => void;
8
+ onBeforeLeave: (node: HTMLDivElement) => void;
9
+ onLeave: (node: HTMLDivElement) => void;
10
+ onAfterLeave: (node: HTMLDivElement) => void;
11
+ };
@@ -13,6 +13,7 @@ export declare const CdsTransitionExpandX: import("vue").DefineComponent<{
13
13
  mode: import("vue").Prop<"default" | "in-out" | "out-in", "default" | "in-out" | "out-in">;
14
14
  }>>, {}>;
15
15
  export { CdsTransitionModal } from './modalTransition';
16
+ export { CdsTransitionCollapse } from './collapseTransition';
16
17
  export declare const CdsTransitionFade: import("vue").DefineComponent<{
17
18
  group: import("vue").PropType<boolean>;
18
19
  hideOnLeave: import("vue").PropType<boolean>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * WCAG 3.0 APCA perceptual contrast algorithm from https://github.com/Myndex/SAPC-APCA
3
+ * @licence https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
4
+ * @see https://www.w3.org/WAI/GL/task-forces/silver/wiki/Visual_Contrast_of_Text_Subgroup
5
+ */
6
+ import type { RGB } from './utils';
7
+ export declare function APCAcontrast(text: RGB, background: RGB): number;
@@ -0,0 +1 @@
1
+ export * from './utils';
@@ -0,0 +1,3 @@
1
+ import type { LAB, XYZ } from './utils';
2
+ export declare function fromXYZ(xyz: XYZ): LAB;
3
+ export declare function toXYZ(lab: LAB): XYZ;
@@ -0,0 +1,3 @@
1
+ import type { RGB, XYZ } from './utils';
2
+ export declare function fromXYZ(xyz: XYZ): RGB;
3
+ export declare function toXYZ({ r, g, b }: RGB): XYZ;
@@ -0,0 +1,42 @@
1
+ export declare type XYZ = [number, number, number];
2
+ export declare type LAB = [number, number, number];
3
+ export declare type HSV = {
4
+ h: number;
5
+ s: number;
6
+ v: number;
7
+ a?: number;
8
+ };
9
+ export declare type RGB = {
10
+ r: number;
11
+ g: number;
12
+ b: number;
13
+ a?: number;
14
+ };
15
+ export declare type HSL = {
16
+ h: number;
17
+ s: number;
18
+ l: number;
19
+ a?: number;
20
+ };
21
+ export declare type Hex = string & {
22
+ __hexBrand: never;
23
+ };
24
+ export declare type Color = string | number | HSV | RGB | HSL;
25
+ export declare function isCssColor(color?: string | null | false): boolean;
26
+ export declare function parseColor(color: Color): RGB;
27
+ export declare function lighten(value: RGB, amount: number): RGB;
28
+ export declare function darken(value: RGB, amount: number): RGB;
29
+ export declare function RGBtoHex({ r, g, b, a }: RGB): Hex;
30
+ export declare function HexToRGB(hex: Hex): RGB;
31
+ export declare function parseHex(hex: string): Hex;
32
+ export declare function HSLtoHSV(hsl: HSL): HSV;
33
+ /** Converts HSVA to RGBA. Based on formula from https://en.wikipedia.org/wiki/HSL_and_HSV */
34
+ export declare function HSVtoRGB(hsva: HSV): RGB;
35
+ export declare function HSLtoRGB(hsla: HSL): RGB;
36
+ /**
37
+ * Calculate the relative luminance of a given color
38
+ * @see https://www.w3.org/TR/WCAG20/#relativeluminancedef
39
+ */
40
+ export declare function getLuma(color: Color): number;
41
+ export declare function getForeground(color: Color): "#fff" | "#000";
42
+ export declare function rgbToColorString(color: RGB): string;
@@ -18,6 +18,7 @@ export declare type TDateLocale = {
18
18
  months: string[];
19
19
  monthsLong: string[];
20
20
  monthsShort: string[];
21
+ today: string;
21
22
  firstDayOfWeek: number;
22
23
  format24h: boolean;
23
24
  pluralDay: (day?: number) => string;
@@ -0,0 +1,2 @@
1
+ export declare function bindProps(el: HTMLElement, props: Record<string, any>): void;
2
+ export declare function unbindProps(el: HTMLElement, props: Record<string, any>): void;
@@ -24,3 +24,4 @@ export declare function getOverflow(a: Box, b: Box): {
24
24
  after: number;
25
25
  };
26
26
  };
27
+ export declare function getTargetBox(target: HTMLElement | [x: number, y: number]): Box;
@@ -1,5 +1,6 @@
1
- import type { ComponentPublicInstance, ComponentInternalInstance, ComputedGetter, InjectionKey, PropType, Ref, ToRefs, VNodeProps, VNodeChild, AllowedComponentProps, Component } from 'vue';
1
+ import { type VNode } from 'vue';
2
2
  import type { TItemKey } from '../composable';
3
+ import type { ComponentPublicInstance, ComponentInternalInstance, ComputedGetter, InjectionKey, PropType, Ref, ToRefs, VNodeProps, VNodeChild, AllowedComponentProps, Component } from 'vue';
3
4
  export declare const preventedScrollClass = "cds-scroll-blocked";
4
5
  export declare const keyNames: Readonly<{
5
6
  enter: "Enter";
@@ -99,6 +100,22 @@ export declare function getNestedValue(obj: any, path: (string | number)[], fall
99
100
  * @param fallback
100
101
  */
101
102
  export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
103
+ /**
104
+ * This function is used to get the value of a property from an item. The property can be a string, an array, a function, or a boolean.
105
+ * If the property is a string, it will be used as a path to retrieve the value from the item.
106
+ * If the property is an array, it will be used as a nested path to retrieve the value from the item.
107
+ * If the property is a function, it will be called with the item and the fallback value as arguments, and its return value will be used.
108
+ * If the property is a boolean, and it's true, the item itself will be returned.
109
+ * If the property is null, undefined, or a boolean that's not true, the fallback value will be returned.
110
+ * If the item is not an object, and the property is not a function, the fallback value will be returned.
111
+ * If the property is not a string, an array, or a function, the fallback value will be returned.
112
+ * If the value retrieved from the item is undefined, the fallback value will be returned.
113
+ *
114
+ * @param item - The item from which to get the property value.
115
+ * @param property - The property to get from the item. Can be a string, an array, a function, or a boolean.
116
+ * @param fallback - The value to return if the property is not found or its value is undefined.
117
+ * @returns The value of the property from the item, or the fallback value.
118
+ */
102
119
  export declare function getPropertyFromItem(item: any, property: SelectItemKey, fallback?: any): any;
103
120
  /**
104
121
  * This function is used to return the scroll position of the given element.
@@ -123,6 +140,7 @@ export declare function destructComputed<T extends object>(getter: ComputedGette
123
140
  * @param val
124
141
  */
125
142
  export declare function includes(arr: readonly any[], val: any): boolean;
143
+ export declare function eventName(propName: string): string;
126
144
  export declare function convertToUnit(str: number, unit?: string): string;
127
145
  export declare function convertToUnit(str: string | number | null | undefined, unit?: string): string | undefined;
128
146
  export declare function convertRemToPx(value: string): number;
@@ -134,17 +152,14 @@ export declare function convertRemToPx(value: string): number;
134
152
  */
135
153
  export declare function clamp(value: number, min?: number, max?: number): number;
136
154
  export declare function createRange(length: number, start?: number): number[];
137
- /**
138
- * Is value an like event
139
- * @param key
140
- */
141
155
  export declare const isOn: (key: string) => boolean;
142
156
  export declare const EventProp: PropType<(...args: any[]) => any>;
143
157
  export declare function isComponentInstance(obj: any): obj is ComponentPublicInstance;
144
158
  export declare function isFixedPosition(el?: HTMLElement): boolean;
159
+ export declare function padEnd(str: string, length: number, char?: string): string;
145
160
  export declare function padStart(string: number | string, targetLength: number, padString: string): string;
146
161
  export declare function pad(n: string | number, length?: number): string;
147
- export declare function refElement<T extends Record<string, any> | undefined>(obj: T): Exclude<T, ComponentPublicInstance> | HTMLElement;
162
+ export declare function refElement(obj: ComponentPublicInstance<any> | HTMLElement): HTMLElement | undefined;
148
163
  export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
149
164
  export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild | {
150
165
  [key: string]: any;
@@ -169,11 +184,21 @@ export declare function debounce(fn: Function, delay: number): (...args: any[])
169
184
  * @param opts
170
185
  */
171
186
  export declare function plurals(n: number, opts: string[]): string;
187
+ /**
188
+ * Chunk a string into an array of strings.
189
+ * @param str
190
+ * @param size
191
+ */
192
+ export declare function chunk(str: string, size?: number): string[];
193
+ export declare function defer(timeout: number, cb: () => void): () => void;
194
+ export declare function isValidElement(element: any): any;
172
195
  export declare function noop(): void;
173
196
  /**
174
197
  * Types
175
198
  */
176
199
  export declare type MaybeRef<T> = T | Ref<T>;
200
+ declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
201
+ export declare type VueNode = VNodeChildAtom | VNodeChildAtom[] | JSX.Element;
177
202
  export declare type SelectItemKey = TItemKey;
178
203
  export declare type MaybePick<T extends object, U extends Extract<keyof T, string>> = Record<string, unknown> extends T ? Partial<Pick<T, U>> : Pick<T, U>;
179
204
  export declare type EventProp<T = (...args: any[]) => any> = T;
@@ -6,6 +6,8 @@ export * from './use/eagerComputed';
6
6
  export * from './use/pickAttrs';
7
7
  export * from './use/cache';
8
8
  export * from './use/copyToClipboard';
9
+ export * from './use/flattenChildren';
10
+ export * from './use/listener';
9
11
  export * from './changeCase/noCase';
10
12
  export * from './changeCase/lowerCase';
11
13
  export * from './changeCase/pascalCase';
@@ -22,3 +24,5 @@ export * from './dom/wrapperRaf';
22
24
  export * from './dom/warn';
23
25
  export * from './dom/classNames';
24
26
  export * from './dom/hRender';
27
+ export * from './dom/bindProps';
28
+ export * from './colorsUtils';