@eccenca/gui-elements 23.0.0 → 23.1.0-rc.2

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 (248) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/README.md +7 -0
  3. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  4. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
  5. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  6. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -7
  7. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  8. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +200 -0
  9. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
  10. package/dist/cjs/common/Intent/index.js +7 -3
  11. package/dist/cjs/common/Intent/index.js.map +1 -1
  12. package/dist/cjs/common/utils/characters.js +82 -0
  13. package/dist/cjs/common/utils/characters.js.map +1 -0
  14. package/dist/cjs/components/Application/ApplicationTitle.js +2 -2
  15. package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
  16. package/dist/cjs/components/Badge/Badge.js +44 -0
  17. package/dist/cjs/components/Badge/Badge.js.map +1 -0
  18. package/dist/cjs/components/Depiction/Depiction.js +111 -0
  19. package/dist/cjs/components/Depiction/Depiction.js.map +1 -0
  20. package/dist/cjs/components/Grid/Grid.js +7 -2
  21. package/dist/cjs/components/Grid/Grid.js.map +1 -1
  22. package/dist/cjs/components/Grid/GridColumn.js +6 -2
  23. package/dist/cjs/components/Grid/GridColumn.js.map +1 -1
  24. package/dist/cjs/components/Grid/GridRow.js +3 -0
  25. package/dist/cjs/components/Grid/GridRow.js.map +1 -1
  26. package/dist/cjs/components/Icon/BaseIcon.js +38 -0
  27. package/dist/cjs/components/Icon/BaseIcon.js.map +1 -0
  28. package/dist/cjs/components/Icon/Icon.js +9 -24
  29. package/dist/cjs/components/Icon/Icon.js.map +1 -1
  30. package/dist/cjs/components/Icon/IconButton.js +8 -1
  31. package/dist/cjs/components/Icon/IconButton.js.map +1 -1
  32. package/dist/cjs/components/Icon/TestIcon.js +35 -0
  33. package/dist/cjs/components/Icon/TestIcon.js.map +1 -0
  34. package/dist/cjs/components/Icon/canonicalIconNames.js +123 -621
  35. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  36. package/dist/cjs/components/Icon/index.js +11 -0
  37. package/dist/cjs/components/Icon/index.js.map +1 -0
  38. package/dist/cjs/components/Menu/MenuItem.js +1 -1
  39. package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
  40. package/dist/cjs/components/MultiSelect/MultiSelect.js +56 -23
  41. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  42. package/dist/cjs/components/Notification/Notification.js +10 -2
  43. package/dist/cjs/components/Notification/Notification.js.map +1 -1
  44. package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js +24 -0
  45. package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  46. package/dist/cjs/components/Tag/Tag.js +6 -2
  47. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  48. package/dist/cjs/components/TextField/TextArea.js +4 -2
  49. package/dist/cjs/components/TextField/TextArea.js.map +1 -1
  50. package/dist/cjs/components/TextField/TextField.js +4 -2
  51. package/dist/cjs/components/TextField/TextField.js.map +1 -1
  52. package/dist/cjs/components/TextField/useTextValidation.js +84 -0
  53. package/dist/cjs/components/TextField/useTextValidation.js.map +1 -0
  54. package/dist/cjs/components/Tree/Tree.js.map +1 -1
  55. package/dist/cjs/components/Typography/Highlighter.js.map +1 -1
  56. package/dist/cjs/components/Typography/OverflowText.js.map +1 -1
  57. package/dist/cjs/components/Typography/WhiteSpaceContainer.js +35 -12
  58. package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
  59. package/dist/cjs/components/Typography/index.js +21 -0
  60. package/dist/cjs/components/Typography/index.js.map +1 -0
  61. package/dist/cjs/components/Workspace/WorkspaceContent.js +1 -1
  62. package/dist/cjs/components/Workspace/WorkspaceContent.js.map +1 -1
  63. package/dist/cjs/components/index.js +18 -0
  64. package/dist/cjs/components/index.js.map +1 -0
  65. package/dist/cjs/index.js +7 -17
  66. package/dist/cjs/index.js.map +1 -1
  67. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  68. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
  69. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  70. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -6
  71. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  72. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js +194 -0
  73. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
  74. package/dist/esm/common/Intent/index.js +5 -13
  75. package/dist/esm/common/Intent/index.js.map +1 -1
  76. package/dist/esm/common/utils/characters.js +96 -0
  77. package/dist/esm/common/utils/characters.js.map +1 -0
  78. package/dist/esm/components/Application/ApplicationTitle.js +2 -2
  79. package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
  80. package/dist/esm/components/Badge/Badge.js +48 -0
  81. package/dist/esm/components/Badge/Badge.js.map +1 -0
  82. package/dist/esm/components/Depiction/Depiction.js +96 -0
  83. package/dist/esm/components/Depiction/Depiction.js.map +1 -0
  84. package/dist/esm/components/Grid/Grid.js +7 -2
  85. package/dist/esm/components/Grid/Grid.js.map +1 -1
  86. package/dist/esm/components/Grid/GridColumn.js +6 -2
  87. package/dist/esm/components/Grid/GridColumn.js.map +1 -1
  88. package/dist/esm/components/Grid/GridRow.js +3 -0
  89. package/dist/esm/components/Grid/GridRow.js.map +1 -1
  90. package/dist/esm/components/Icon/BaseIcon.js +44 -0
  91. package/dist/esm/components/Icon/BaseIcon.js.map +1 -0
  92. package/dist/esm/components/Icon/Icon.js +9 -24
  93. package/dist/esm/components/Icon/Icon.js.map +1 -1
  94. package/dist/esm/components/Icon/IconButton.js +8 -1
  95. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  96. package/dist/esm/components/Icon/TestIcon.js +41 -0
  97. package/dist/esm/components/Icon/TestIcon.js.map +1 -0
  98. package/dist/esm/components/Icon/canonicalIconNames.js +123 -621
  99. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  100. package/dist/esm/components/Icon/index.js +4 -0
  101. package/dist/esm/components/Icon/index.js.map +1 -0
  102. package/dist/esm/components/Menu/MenuItem.js +1 -1
  103. package/dist/esm/components/Menu/MenuItem.js.map +1 -1
  104. package/dist/esm/components/MultiSelect/MultiSelect.js +61 -44
  105. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  106. package/dist/esm/components/Notification/Notification.js +12 -4
  107. package/dist/esm/components/Notification/Notification.js.map +1 -1
  108. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js +24 -0
  109. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  110. package/dist/esm/components/Tag/Tag.js +6 -2
  111. package/dist/esm/components/Tag/Tag.js.map +1 -1
  112. package/dist/esm/components/TextField/TextArea.js +4 -2
  113. package/dist/esm/components/TextField/TextArea.js.map +1 -1
  114. package/dist/esm/components/TextField/TextField.js +4 -2
  115. package/dist/esm/components/TextField/TextField.js.map +1 -1
  116. package/dist/esm/components/TextField/useTextValidation.js +78 -0
  117. package/dist/esm/components/TextField/useTextValidation.js.map +1 -0
  118. package/dist/esm/components/Tree/Tree.js.map +1 -1
  119. package/dist/esm/components/Typography/Highlighter.js.map +1 -1
  120. package/dist/esm/components/Typography/OverflowText.js.map +1 -1
  121. package/dist/esm/components/Typography/WhiteSpaceContainer.js +16 -14
  122. package/dist/esm/components/Typography/WhiteSpaceContainer.js.map +1 -1
  123. package/dist/esm/components/Typography/index.js +12 -0
  124. package/dist/esm/components/Typography/index.js.map +1 -0
  125. package/dist/esm/components/Workspace/WorkspaceContent.js +1 -1
  126. package/dist/esm/components/Workspace/WorkspaceContent.js.map +1 -1
  127. package/dist/esm/components/index.js +6 -0
  128. package/dist/esm/components/index.js.map +1 -0
  129. package/dist/esm/index.js +5 -10
  130. package/dist/esm/index.js.map +1 -1
  131. package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +2 -1
  132. package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
  133. package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +22 -0
  134. package/dist/types/common/Intent/index.d.ts +4 -3
  135. package/dist/types/common/utils/characters.d.ts +19 -0
  136. package/dist/types/components/Badge/Badge.d.ts +42 -0
  137. package/dist/types/components/Depiction/Depiction.d.ts +71 -0
  138. package/dist/types/components/Grid/Grid.d.ts +21 -2
  139. package/dist/types/components/Grid/GridColumn.d.ts +20 -2
  140. package/dist/types/components/Grid/GridRow.d.ts +17 -1
  141. package/dist/types/components/Icon/BaseIcon.d.ts +45 -0
  142. package/dist/types/components/Icon/Icon.d.ts +7 -34
  143. package/dist/types/components/Icon/IconButton.d.ts +3 -2
  144. package/dist/types/components/Icon/TestIcon.d.ts +20 -0
  145. package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -7
  146. package/dist/types/components/Icon/index.d.ts +4 -0
  147. package/dist/types/components/Menu/MenuItem.d.ts +2 -1
  148. package/dist/types/components/MultiSelect/MultiSelect.d.ts +3 -1
  149. package/dist/types/components/Notification/Notification.d.ts +13 -4
  150. package/dist/types/components/Tabs/Tab.d.ts +2 -0
  151. package/dist/types/components/Tag/Tag.d.ts +16 -3
  152. package/dist/types/components/TextField/TextArea.d.ts +7 -2
  153. package/dist/types/components/TextField/TextField.d.ts +6 -1
  154. package/dist/types/components/TextField/useTextValidation.d.ts +28 -0
  155. package/dist/types/components/Tree/Tree.d.ts +2 -1
  156. package/dist/types/components/Typography/Highlighter.d.ts +2 -2
  157. package/dist/types/components/Typography/OverflowText.d.ts +2 -2
  158. package/dist/types/components/Typography/WhiteSpaceContainer.d.ts +45 -4
  159. package/dist/types/components/Typography/index.d.ts +12 -0
  160. package/dist/types/components/index.d.ts +5 -0
  161. package/dist/types/index.d.ts +6 -11
  162. package/package.json +13 -16
  163. package/scripts/compile-sass.ts +9 -1
  164. package/src/_shame.scss +1 -1
  165. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +6 -4
  166. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +3 -2
  167. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +26 -1
  168. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +10 -6
  169. package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +247 -0
  170. package/src/common/Intent/index.ts +16 -12
  171. package/src/common/utils/characters.ts +111 -0
  172. package/src/components/Accordion/accordion.scss +4 -3
  173. package/src/components/Application/ApplicationTitle.tsx +2 -2
  174. package/src/components/Application/_config.scss +1 -1
  175. package/src/components/Application/_content.scss +1 -1
  176. package/src/components/Application/_header.scss +2 -2
  177. package/src/components/Application/_sidebar.scss +2 -9
  178. package/src/components/Application/_toolbar.scss +1 -1
  179. package/src/components/Application/application.scss +4 -4
  180. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +13 -8
  181. package/src/components/Badge/Badge.stories.tsx +47 -0
  182. package/src/components/Badge/Badge.tsx +93 -0
  183. package/src/components/Badge/badge.scss +44 -0
  184. package/src/components/Depiction/Depiction.tsx +198 -0
  185. package/src/components/Depiction/depiction.scss +176 -0
  186. package/src/components/Depiction/stories/Depiction.stories.tsx +69 -0
  187. package/src/components/Depiction/stories/test-16to9.png +0 -0
  188. package/src/components/Depiction/stories/test-16to9.svg +41 -0
  189. package/src/components/Depiction/stories/test-16to9.tobase64.svg +41 -0
  190. package/src/components/Depiction/stories/test-16to9.tsx +44 -0
  191. package/src/components/Depiction/stories/test-9to16.png +0 -0
  192. package/src/components/Depiction/stories/test-9to16.svg +44 -0
  193. package/src/components/Depiction/stories/test-9to16.tobase64.svg +44 -0
  194. package/src/components/Depiction/stories/test-9to16.tsx +48 -0
  195. package/src/components/Grid/Grid.tsx +22 -4
  196. package/src/components/Grid/GridColumn.tsx +23 -6
  197. package/src/components/Grid/GridRow.tsx +17 -2
  198. package/src/components/Grid/grid.scss +14 -13
  199. package/src/components/Grid/stories/Grid.stories.tsx +27 -0
  200. package/src/components/Grid/stories/GridColumn.stories.tsx +66 -0
  201. package/src/components/Grid/stories/GridRow.stories.tsx +47 -0
  202. package/src/components/Icon/BaseIcon.tsx +84 -0
  203. package/src/components/Icon/Icon.tsx +23 -82
  204. package/src/components/Icon/IconButton.tsx +18 -14
  205. package/src/components/Icon/TestIcon.tsx +39 -0
  206. package/src/components/Icon/canonicalIconNames.tsx +132 -633
  207. package/src/components/Icon/index.ts +5 -0
  208. package/src/components/Icon/stories/Icon.stories.tsx +13 -0
  209. package/src/components/Icon/stories/IconButton.stories.tsx +14 -7
  210. package/src/components/Icon/stories/TestIcon.stories.tsx +28 -0
  211. package/src/components/Link/link.scss +2 -1
  212. package/src/components/Menu/MenuItem.tsx +14 -4
  213. package/src/components/Menu/Stories/MenuItem.stories.tsx +16 -2
  214. package/src/components/MultiSelect/MultiSelect.tsx +58 -27
  215. package/src/components/Notification/Notification.stories.tsx +4 -0
  216. package/src/components/Notification/Notification.tsx +26 -6
  217. package/src/components/OverviewItem/OverviewItemDepiction.tsx +31 -0
  218. package/src/components/OverviewItem/overviewitem.scss +2 -1
  219. package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +22 -1
  220. package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +8 -3
  221. package/src/components/Pagination/pagination.scss +3 -2
  222. package/src/components/SimpleTable/simpletable.scss +11 -12
  223. package/src/components/Tag/Tag.stories.tsx +7 -2
  224. package/src/components/Tag/Tag.tsx +24 -4
  225. package/src/components/Tag/tag.scss +84 -3
  226. package/src/components/TagInput/taginput.scss +6 -0
  227. package/src/components/TextField/TextArea.tsx +10 -1
  228. package/src/components/TextField/TextField.tsx +9 -0
  229. package/src/components/TextField/stories/SearchField.stories.tsx +1 -1
  230. package/src/components/TextField/textfield.scss +12 -0
  231. package/src/components/TextField/useTextValidation.ts +103 -0
  232. package/src/components/Tooltip/tooltip.scss +1 -1
  233. package/src/components/Tree/Tree.stories.tsx +7 -1
  234. package/src/components/Tree/Tree.tsx +2 -1
  235. package/src/components/Typography/Highlighter.tsx +2 -2
  236. package/src/components/Typography/OverflowText.tsx +2 -2
  237. package/src/components/Typography/WhiteSpaceContainer.tsx +69 -21
  238. package/src/components/Typography/index.ts +25 -0
  239. package/src/components/Typography/stories/WhiteSpaceContainer.stories.tsx +55 -0
  240. package/src/components/Typography/typography.scss +3 -2
  241. package/src/components/Workspace/WorkspaceContent.tsx +1 -1
  242. package/src/components/index.scss +5 -0
  243. package/src/components/index.ts +5 -0
  244. package/src/includes/carbon-components/_components.scss +11 -0
  245. package/src/includes/carbon-components/_requisits.scss +18 -0
  246. package/src/includes/carbon-components/_variables.scss +50 -53
  247. package/src/index.scss +4 -105
  248. package/src/index.ts +6 -16
@@ -1,4 +1,5 @@
1
1
  import * as icons from "@carbon/icons-react";
2
+ import { IconProps as CarbonIconProps } from "carbon-components-react";
2
3
 
3
4
  /** Valid icon names. */
4
5
  export type ValidIconName =
@@ -124,652 +125,150 @@ export type ValidIconName =
124
125
  | "toggler-star-empty"
125
126
  | "toggler-star-filled"
126
127
  | "toggler-tree"
127
- | "undefined"
128
- | "Undefined";
128
+ | "undefined";
129
129
 
130
- export interface IconSized {
131
- small: (props: any) => JSX.Element | null;
132
- normal: (props: any) => JSX.Element | null;
133
- large: (props: any) => JSX.Element | null;
134
- }
135
- const canonicalIconNames: Record<ValidIconName, IconSized> = {
136
- "application-dataintegration": {
137
- small: icons.DataUnstructured16,
138
- normal: icons.DataUnstructured20,
139
- large: icons.DataUnstructured32,
140
- },
141
- "application-homepage": {
142
- small: icons.Workspace16,
143
- normal: icons.Workspace20,
144
- large: icons.Workspace32,
145
- },
146
- "application-useraccount": {
147
- small: icons.UserAvatar16,
148
- normal: icons.UserAvatar20,
149
- large: icons.UserAvatar32,
150
- },
151
- "application-warning": {
152
- small: icons.WarningAlt16,
153
- normal: icons.WarningAlt20,
154
- large: icons.WarningAlt32,
155
- },
156
- "application-mapping": {
157
- small: icons.ModelBuilder16,
158
- normal: icons.ModelBuilder20,
159
- large: icons.ModelBuilder32,
160
- },
161
- "application-explore": {
162
- small: icons.Explore16,
163
- normal: icons.Explore20,
164
- large: icons.Explore32,
165
- },
166
- "application-vocabularies": {
167
- small: icons.Catalog16,
168
- normal: icons.Catalog20,
169
- large: icons.Catalog32,
170
- },
171
- "application-queries": {
172
- small: icons.DataView16,
173
- normal: icons.DataView20,
174
- large: icons.DataView32,
175
- },
176
- "application-legacygui": {
177
- small: icons.ResetAlt16,
178
- normal: icons.ResetAlt20,
179
- large: icons.ResetAlt32,
180
- },
181
- "application-activities": {
182
- small: icons.Activity16,
183
- normal: icons.Activity20,
184
- large: icons.Activity32,
185
- },
186
- "module-timetracker": {
187
- small: icons.Timer16,
188
- normal: icons.Timer20,
189
- large: icons.Timer32,
190
- },
191
- "module-accesscontrol": {
192
- small: icons.UserAdmin16,
193
- normal: icons.UserAdmin20,
194
- large: icons.UserAdmin32,
195
- },
196
- "module-annotation": {
197
- small: icons.WatsonHealthTextAnnotationToggle16,
198
- normal: icons.WatsonHealthTextAnnotationToggle20,
199
- large: icons.WatsonHealthTextAnnotationToggle32,
200
- },
201
- "module-dashboard": {
202
- small: icons.Dashboard16,
203
- normal: icons.Dashboard20,
204
- large: icons.Dashboard32,
205
- },
206
- "module-search": {
207
- small: icons.Search16,
208
- normal: icons.Search20,
209
- large: icons.Search32,
210
- },
211
- "module-visualization": {
212
- small: icons.DataVis_116,
213
- normal: icons.DataVis_120,
214
- large: icons.DataVis_132,
215
- },
216
- "module-reports": {
217
- small: icons.ReportData16,
218
- normal: icons.ReportData20,
219
- large: icons.ReportData32,
220
- },
221
- "module-thesauri": {
222
- small: icons.Book16,
223
- normal: icons.Book20,
224
- large: icons.Book32,
225
- },
226
- "module-linkedrules": {
227
- small: icons.Connect16,
228
- normal: icons.Connect20,
229
- large: icons.Connect32,
230
- },
231
- "module-integrations": {
232
- small: icons.AppConnectivity16,
233
- normal: icons.AppConnectivity20,
234
- large: icons.AppConnectivity32,
235
- },
236
- "module-gdprsearch": {
237
- small: icons.UserProfile16,
238
- normal: icons.UserProfile20,
239
- large: icons.UserProfile32,
240
- },
241
- "toggler-showmore": {
242
- small: icons.ChevronDown16,
243
- normal: icons.ChevronDown20,
244
- large: icons.ChevronDown32,
245
- },
246
- "toggler-showless": {
247
- small: icons.ChevronUp16,
248
- normal: icons.ChevronUp20,
249
- large: icons.ChevronUp32,
250
- },
251
- "toggler-moveright": {
252
- small: icons.ChevronRight16,
253
- normal: icons.ChevronRight20,
254
- large: icons.ChevronRight32,
255
- },
256
- "toggler-moveleft": {
257
- small: icons.ChevronLeft16,
258
- normal: icons.ChevronLeft20,
259
- large: icons.ChevronLeft32,
260
- },
261
- "toggler-maximize": {
262
- small: icons.Maximize16,
263
- normal: icons.Maximize20,
264
- large: icons.Maximize32,
265
- },
266
- "toggler-minimize": {
267
- small: icons.Minimize16,
268
- normal: icons.Minimize20,
269
- large: icons.Minimize32,
270
- },
271
- "toggler-tree": {
272
- small: icons.TreeViewAlt16,
273
- normal: icons.TreeViewAlt20,
274
- large: icons.TreeViewAlt32,
275
- },
130
+ export type CarbonIconType = React.ComponentType<CarbonIconProps>;
276
131
 
277
- "navigation-back": {
278
- small: icons.ArrowLeft16,
279
- normal: icons.ArrowLeft20,
280
- large: icons.ArrowLeft32,
281
- },
282
- "navigation-forth": {
283
- small: icons.ArrowRight16,
284
- normal: icons.ArrowRight20,
285
- large: icons.ArrowRight32,
286
- },
287
- "navigation-close": {
288
- small: icons.Close16,
289
- normal: icons.Close20,
290
- large: icons.Close32,
291
- },
292
- "navigation-jump": {
293
- small: icons.JumpLink16,
294
- normal: icons.JumpLink20,
295
- large: icons.JumpLink32,
296
- },
297
- "navigation-last": {
298
- small: icons.PageLast16,
299
- normal: icons.PageLast20,
300
- large: icons.PageLast32,
301
- },
302
- "navigation-previous": {
303
- small: icons.ChevronLeft16,
304
- normal: icons.ChevronLeft20,
305
- large: icons.ChevronLeft32,
306
- },
307
- "navigation-next": {
308
- small: icons.ChevronRight16,
309
- normal: icons.ChevronRight20,
310
- large: icons.ChevronRight32,
311
- },
312
- "navigation-first": {
313
- small: icons.PageFirst16,
314
- normal: icons.PageFirst20,
315
- large: icons.PageFirst32,
316
- },
132
+ /**
133
+ * @deprecated
134
+ * use CarbonIconType instead
135
+ */
136
+ export type IconSized = CarbonIconType;
317
137
 
318
- "item-moremenu": {
319
- small: icons.OverflowMenuVertical16,
320
- normal: icons.OverflowMenuVertical20,
321
- large: icons.OverflowMenuVertical32,
322
- },
323
- "item-vertmenu": {
324
- small: icons.OverflowMenuHorizontal16,
325
- normal: icons.OverflowMenuHorizontal20,
326
- large: icons.OverflowMenuHorizontal32,
327
- },
328
- "item-viewdetails": {
329
- small: icons.View16,
330
- normal: icons.View20,
331
- large: icons.View32,
332
- },
333
- "item-clone": {
334
- small: icons.Copy16,
335
- normal: icons.Copy20,
336
- large: icons.Copy32,
337
- },
338
- "item-edit": {
339
- small: icons.Edit16,
340
- normal: icons.Edit20,
341
- large: icons.Edit32,
342
- },
343
- "item-evaluation": {
344
- small: icons.Analytics16,
345
- normal: icons.Analytics20,
346
- large: icons.Analytics32,
347
- },
348
- "item-execution": {
349
- small: icons.Run16,
350
- normal: icons.Run20,
351
- large: icons.Run32,
352
- },
353
- "item-info": {
354
- small: icons.Information16,
355
- normal: icons.Information20,
356
- large: icons.Information32,
357
- },
358
- "item-remove": {
359
- small: icons.TrashCan16,
360
- normal: icons.TrashCan20,
361
- large: icons.TrashCan32,
362
- },
363
- "item-add-artefact": {
364
- small: icons.AddAlt16,
365
- normal: icons.AddAlt20,
366
- large: icons.AddAlt32,
367
- },
368
- "item-launch": {
369
- small: icons.Launch16,
370
- normal: icons.Launch20,
371
- large: icons.Launch32,
372
- },
373
- "item-download": {
374
- small: icons.Download16,
375
- normal: icons.Download20,
376
- large: icons.Download32,
377
- },
378
- "item-upload": {
379
- small: icons.Upload16,
380
- normal: icons.Upload20,
381
- large: icons.Upload32,
382
- },
383
- "item-question": {
384
- small: icons.Help16,
385
- normal: icons.Help20,
386
- large: icons.Help32,
387
- },
388
- "item-copy": {
389
- small: icons.CopyFile16,
390
- normal: icons.CopyFile20,
391
- large: icons.CopyFile32,
392
- },
393
- "item-save": {
394
- small: icons.Save16,
395
- normal: icons.Save20,
396
- large: icons.Save32,
397
- },
398
- "item-start": {
399
- small: icons.PlayFilledAlt16,
400
- normal: icons.PlayFilledAlt20,
401
- large: icons.PlayFilledAlt32,
402
- },
403
- "item-stop": {
404
- small: icons.StopFilledAlt16,
405
- normal: icons.StopFilledAlt20,
406
- large: icons.StopFilledAlt32,
407
- },
408
- "item-reload": {
409
- small: icons.Renew16,
410
- normal: icons.Renew20,
411
- large: icons.Renew32,
412
- },
413
- "item-reset": {
414
- small: icons.Reset16,
415
- normal: icons.Reset20,
416
- large: icons.Reset32,
417
- },
418
- "item-comment": {
419
- small: icons.AddComment16,
420
- normal: icons.AddComment20,
421
- large: icons.AddComment32,
422
- },
423
- "item-shuffle": {
424
- small: icons.Shuffle16,
425
- normal: icons.Shuffle20,
426
- large: icons.Shuffle32,
427
- },
428
- "item-draggable": {
429
- small: icons.Draggable16,
430
- normal: icons.Draggable20,
431
- large: icons.Draggable32,
432
- },
433
- "item-settings": {
434
- small: icons.Settings16,
435
- normal: icons.Settings20,
436
- large: icons.Settings32,
437
- },
138
+ const canonicalIconNames: Record<ValidIconName, CarbonIconType> = {
139
+ "application-activities": icons.Activity,
140
+ "application-dataintegration": icons.DataUnstructured,
141
+ "application-explore": icons.Explore,
142
+ "application-homepage": icons.Workspace,
143
+ "application-legacygui": icons.ResetAlt,
144
+ "application-mapping": icons.ModelBuilder,
145
+ "application-queries": icons.DataView,
146
+ "application-useraccount": icons.UserAvatar,
147
+ "application-vocabularies": icons.Catalog,
148
+ "application-warning": icons.WarningAlt,
438
149
 
439
- "operation-search": {
440
- small: icons.Search16,
441
- normal: icons.Search20,
442
- large: icons.Search32,
443
- },
444
- "operation-clear": {
445
- small: icons.Close16,
446
- normal: icons.Close20,
447
- large: icons.Close32,
448
- },
449
- "operation-undo": {
450
- small: icons.Undo16,
451
- normal: icons.Undo20,
452
- large: icons.Undo32,
453
- },
454
- "operation-redo": {
455
- small: icons.Redo16,
456
- normal: icons.Redo20,
457
- large: icons.Redo32,
458
- },
459
- "operation-logout": {
460
- small: icons.Logout16,
461
- normal: icons.Logout20,
462
- large: icons.Logout32,
463
- },
464
- "operation-filter": {
465
- small: icons.Filter16,
466
- normal: icons.Filter20,
467
- large: icons.Filter32,
468
- },
469
- "operation-filteredit": {
470
- small: icons.FilterEdit16,
471
- normal: icons.FilterEdit20,
472
- large: icons.FilterEdit32,
473
- },
474
- "operation-transform": {
475
- small: icons.Calculation16,
476
- normal: icons.Calculation20,
477
- large: icons.Calculation32,
478
- },
479
- "operation-comparison": {
480
- small: icons.Compare16,
481
- normal: icons.Compare20,
482
- large: icons.Compare32,
483
- },
484
- "operation-aggregation": {
485
- small: icons.DataCollection16,
486
- normal: icons.DataCollection20,
487
- large: icons.DataCollection32,
488
- },
489
- "operation-commit": {
490
- small: icons.Commit16,
491
- normal: icons.Commit20,
492
- large: icons.Commit32
493
- },
494
- "operation-sharelink": {
495
- small: icons.CopyLink16,
496
- normal: icons.CopyLink20,
497
- large: icons.CopyLink32
498
- },
150
+ "artefact-commit": icons.Commit,
151
+ "artefact-customtask": icons.Script,
152
+ "artefact-dataset-csv": icons.Csv,
153
+ "artefact-dataset-eccencadataplatform": icons.DataVis_1,
154
+ "artefact-dataset-excel": icons.Xls,
155
+ "artefact-dataset-file": icons.DataVis_1,
156
+ "artefact-dataset": icons.Data_2,
157
+ "artefact-dataset-jdbc": icons.Sql,
158
+ "artefact-dataset-json": icons.Json,
159
+ "artefact-dataset-multicsv": icons.Csv,
160
+ "artefact-dataset-neo4j": icons.DataVis_1,
161
+ "artefact-dataset-sparkview": icons.Sql,
162
+ "artefact-dataset-sparqlendpoint": icons.DataVis_1,
163
+ "artefact-dataset-sqlendpoint": icons.Sql,
164
+ "artefact-dataset-xml": icons.Xml,
165
+ "artefact-deprecated": icons.WarningSquare,
166
+ "artefact-embedded": icons.DataBase,
167
+ "artefact-errorlog": icons.WarningOther, // FIXME: we may check for a better icon
168
+ "artefact-file": icons.Document,
169
+ "artefact-linking": icons.Connect,
170
+ "artefact-project": icons.Folder,
171
+ "artefact-rawdata": icons.ScriptReference,
172
+ "artefact-remote": icons.VirtualMachine,
173
+ "artefact-report": icons.Report,
174
+ "artefact-task": icons.Script,
175
+ "artefact-transform": icons.DataRefinery,
176
+ "artefact-uncategorized": icons.Unknown,
177
+ "artefact-workflow": icons.ModelBuilder,
499
178
 
500
- "data-sourcepath": {
501
- small: icons.Data_216,
502
- normal: icons.Data_220,
503
- large: icons.Data_232,
504
- },
505
- "data-targetpath": {
506
- small: icons.Data_116,
507
- normal: icons.Data_120,
508
- large: icons.Data_132,
509
- },
179
+ "data-sourcepath": icons.Data_2,
180
+ "data-targetpath": icons.Data_1,
510
181
 
511
- "list-sort": {
512
- small: icons.ArrowsVertical16,
513
- normal: icons.ArrowsVertical20,
514
- large: icons.ArrowsVertical32,
515
- },
516
- "list-sortasc": {
517
- small: icons.ArrowDown16,
518
- normal: icons.ArrowDown20,
519
- large: icons.ArrowDown32,
520
- },
521
- "list-sortdesc": {
522
- small: icons.ArrowUp16,
523
- normal: icons.ArrowUp20,
524
- large: icons.ArrowUp32,
525
- },
182
+ "item-add-artefact": icons.AddAlt,
183
+ "item-clone": icons.Copy,
184
+ "item-comment": icons.AddComment,
185
+ "item-copy": icons.CopyFile,
186
+ "item-download": icons.Download,
187
+ "item-draggable": icons.Draggable,
188
+ "item-edit": icons.Edit,
189
+ "item-evaluation": icons.Analytics,
190
+ "item-execution": icons.Run,
191
+ "item-info": icons.Information,
192
+ "item-launch": icons.Launch,
193
+ "item-moremenu": icons.OverflowMenuVertical,
194
+ "item-question": icons.Help,
195
+ "item-reload": icons.Renew,
196
+ "item-remove": icons.TrashCan,
197
+ "item-reset": icons.Reset,
198
+ "item-save": icons.Save,
199
+ "item-settings": icons.Settings,
200
+ "item-shuffle": icons.Shuffle,
201
+ "item-start": icons.PlayFilledAlt,
202
+ "item-stop": icons.StopFilledAlt,
203
+ "item-upload": icons.Upload,
204
+ "item-vertmenu": icons.OverflowMenuHorizontal,
205
+ "item-viewdetails": icons.View,
526
206
 
527
- "state-info": {
528
- small: icons.InformationFilled16,
529
- normal: icons.InformationFilled20,
530
- large: icons.InformationFilled32,
531
- },
532
- "state-success": {
533
- small: icons.CheckmarkFilled16,
534
- normal: icons.CheckmarkFilled20,
535
- large: icons.CheckmarkFilled32,
536
- },
537
- "state-warning": {
538
- small: icons.WarningAltFilled16,
539
- normal: icons.WarningAltFilled20,
540
- large: icons.WarningAltFilled32,
541
- },
542
- "state-danger": {
543
- small: icons.ErrorFilled16,
544
- normal: icons.ErrorFilled20,
545
- large: icons.ErrorFilled32,
546
- },
547
- "state-unchecked": {
548
- small: icons.Checkbox16,
549
- normal: icons.Checkbox20,
550
- large: icons.Checkbox32,
551
- },
552
- "state-checked": {
553
- small: icons.CheckboxChecked16,
554
- normal: icons.CheckboxChecked20,
555
- large: icons.CheckboxChecked32,
556
- },
557
- "state-checkedsimple": {
558
- small: icons.Checkmark16,
559
- normal: icons.Checkmark20,
560
- large: icons.Checkmark32,
561
- },
562
- "state-partlychecked": {
563
- small: icons.CheckboxIndeterminate16,
564
- normal: icons.CheckboxIndeterminate20,
565
- large: icons.CheckboxIndeterminate32,
566
- },
567
- "state-declined": {
568
- small: icons.ThumbsDown16,
569
- normal: icons.ThumbsDown20,
570
- large: icons.ThumbsDown32
571
- },
572
- "state-confirmed": {
573
- small: icons.ThumbsUp16,
574
- normal: icons.ThumbsUp20,
575
- large: icons.ThumbsUp32
576
- },
207
+ "list-sortasc": icons.ArrowDown,
208
+ "list-sortdesc": icons.ArrowUp,
209
+ "list-sort": icons.ArrowsVertical,
577
210
 
211
+ "module-accesscontrol": icons.UserAdmin,
212
+ "module-annotation": icons.WatsonHealthTextAnnotationToggle,
213
+ "module-dashboard": icons.Dashboard,
214
+ "module-gdprsearch": icons.UserProfile,
215
+ "module-integrations": icons.AppConnectivity,
216
+ "module-linkedrules": icons.Connect,
217
+ "module-reports": icons.ReportData,
218
+ "module-search": icons.Search,
219
+ "module-thesauri": icons.Book,
220
+ "module-timetracker": icons.Timer,
221
+ "module-visualization": icons.DataVis_1,
578
222
 
579
- "artefact-project": {
580
- small: icons.Folder16,
581
- normal: icons.Folder20,
582
- large: icons.Folder32,
583
- },
584
- "artefact-workflow": {
585
- small: icons.ModelBuilder16,
586
- normal: icons.ModelBuilder20,
587
- large: icons.ModelBuilder32,
588
- },
589
- "artefact-dataset": {
590
- small: icons.Data_216,
591
- normal: icons.Data_220,
592
- large: icons.Data_232,
593
- },
594
- "artefact-dataset-csv": {
595
- small: icons.Csv16,
596
- normal: icons.Csv20,
597
- large: icons.Csv32,
598
- },
599
- "artefact-dataset-multicsv": {
600
- small: icons.Csv16,
601
- normal: icons.Csv20,
602
- large: icons.Csv32,
603
- },
604
- "artefact-dataset-sparkview": {
605
- small: icons.Sql16,
606
- normal: icons.Sql20,
607
- large: icons.Sql32,
608
- },
609
- "artefact-dataset-sqlendpoint": {
610
- small: icons.Sql16,
611
- normal: icons.Sql20,
612
- large: icons.Sql32,
613
- },
614
- "artefact-dataset-jdbc": {
615
- small: icons.Sql16,
616
- normal: icons.Sql20,
617
- large: icons.Sql32,
618
- },
619
- "artefact-dataset-xml": {
620
- small: icons.Xml16,
621
- normal: icons.Xml20,
622
- large: icons.Xml32,
623
- },
624
- "artefact-dataset-json": {
625
- small: icons.Json16,
626
- normal: icons.Json20,
627
- large: icons.Json32,
628
- },
629
- "artefact-dataset-excel": {
630
- small: icons.Xls16,
631
- normal: icons.Xls20,
632
- large: icons.Xls32,
633
- },
634
- "artefact-dataset-file": {
635
- small: icons.DataVis_116,
636
- normal: icons.DataVis_120,
637
- large: icons.DataVis_132,
638
- },
639
- "artefact-dataset-eccencadataplatform": {
640
- small: icons.DataVis_116,
641
- normal: icons.DataVis_120,
642
- large: icons.DataVis_132,
643
- },
644
- "artefact-dataset-sparqlendpoint": {
645
- small: icons.DataVis_116,
646
- normal: icons.DataVis_120,
647
- large: icons.DataVis_132,
648
- },
649
- "artefact-dataset-neo4j": {
650
- small: icons.DataVis_116,
651
- normal: icons.DataVis_120,
652
- large: icons.DataVis_132,
653
- },
654
- "artefact-transform": {
655
- small: icons.DataRefinery16,
656
- normal: icons.DataRefinery20,
657
- large: icons.DataRefinery32,
658
- },
659
- "artefact-linking": {
660
- small: icons.Connect16,
661
- normal: icons.Connect20,
662
- large: icons.Connect32,
663
- },
664
- "artefact-task": {
665
- small: icons.Script16,
666
- normal: icons.Script20,
667
- large: icons.Script32,
668
- },
669
- "artefact-customtask": {
670
- small: icons.Script16,
671
- normal: icons.Script20,
672
- large: icons.Script32,
673
- },
674
- "artefact-file": {
675
- small: icons.Document16,
676
- normal: icons.Document20,
677
- large: icons.Document32,
678
- },
679
- "artefact-embedded": {
680
- small: icons.DataBase16,
681
- normal: icons.DataBase20,
682
- large: icons.DataBase32,
683
- },
684
- "artefact-remote": {
685
- small: icons.VirtualMachine16,
686
- normal: icons.VirtualMachine20,
687
- large: icons.VirtualMachine32,
688
- },
689
- "artefact-deprecated": {
690
- small: icons.WarningSquare16,
691
- normal: icons.WarningSquare20,
692
- large: icons.WarningSquare32,
693
- },
694
- "artefact-uncategorized": {
695
- small: icons.Unknown16,
696
- normal: icons.Unknown20,
697
- large: icons.Unknown32,
698
- },
699
- "artefact-rawdata": {
700
- small: icons.ScriptReference16,
701
- normal: icons.ScriptReference20,
702
- large: icons.ScriptReference32,
703
- },
704
- "artefact-report": {
705
- small: icons.Report16,
706
- normal: icons.Report20,
707
- large: icons.Report32,
708
- },
709
- "artefact-commit": {
710
- small: icons.Commit16,
711
- normal: icons.Commit20,
712
- large: icons.Commit32
713
- },
223
+ "navigation-back": icons.ArrowLeft,
224
+ "navigation-close": icons.Close,
225
+ "navigation-first": icons.PageFirst,
226
+ "navigation-forth": icons.ArrowRight,
227
+ "navigation-jump": icons.JumpLink,
228
+ "navigation-last": icons.PageLast,
229
+ "navigation-next": icons.ChevronRight,
230
+ "navigation-previous": icons.ChevronLeft,
714
231
 
715
- "artefact-errorlog": {
716
- // FIXME: we may check for a better icon
717
- small: icons.WarningOther16,
718
- normal: icons.WarningOther20,
719
- large: icons.WarningOther32,
720
- },
232
+ "operation-aggregation": icons.DataCollection,
233
+ "operation-autolayout": icons.ChartNetwork,
234
+ "operation-clear": icons.Close,
235
+ "operation-commit": icons.Commit,
236
+ "operation-comparison": icons.Compare,
237
+ "operation-filteredit": icons.FilterEdit,
238
+ "operation-filter": icons.Filter,
239
+ "operation-link": icons.Link,
240
+ "operation-logout": icons.Logout,
241
+ "operation-redo": icons.Redo,
242
+ "operation-search": icons.Search,
243
+ "operation-sharelink": icons.CopyLink,
244
+ "operation-transform": icons.Calculation,
245
+ "operation-undo": icons.Undo,
246
+ "operation-unlink": icons.Unlink,
721
247
 
722
- "toggler-caret": {
723
- small: icons.CaretSort16,
724
- normal: icons.CaretSort20,
725
- large: icons.CaretSort32,
726
- },
248
+ "state-checked": icons.CheckboxChecked,
249
+ "state-checkedsimple": icons.Checkmark,
250
+ "state-confirmed": icons.ThumbsUp,
251
+ "state-danger": icons.ErrorFilled,
252
+ "state-declined": icons.ThumbsDown,
253
+ "state-info": icons.InformationFilled,
254
+ "state-partlychecked": icons.CheckboxIndeterminate,
255
+ "state-protected": icons.DocumentProtected,
256
+ "state-success": icons.CheckmarkFilled,
257
+ "state-unchecked": icons.Checkbox,
258
+ "state-warning": icons.WarningAltFilled,
727
259
 
728
- "operation-link": {
729
- small: icons.Link16,
730
- normal: icons.Link20,
731
- large: icons.Link32,
732
- },
733
- "operation-unlink": {
734
- small: icons.Unlink16,
735
- normal: icons.Unlink20,
736
- large: icons.Unlink32,
737
- },
260
+ "toggler-caret": icons.CaretSort,
261
+ "toggler-maximize": icons.Maximize,
262
+ "toggler-minimize": icons.Minimize,
263
+ "toggler-moveleft": icons.ChevronLeft,
264
+ "toggler-moveright": icons.ChevronRight,
265
+ "toggler-showless": icons.ChevronUp,
266
+ "toggler-showmore": icons.ChevronDown,
267
+ "toggler-star-empty": icons.Star,
268
+ "toggler-star-filled": icons.StarFilled,
269
+ "toggler-tree": icons.TreeViewAlt,
738
270
 
739
- "operation-autolayout": {
740
- small: icons.ChartNetwork16,
741
- normal: icons.ChartNetwork20,
742
- large: icons.ChartNetwork32,
743
- },
744
-
745
- "state-protected": {
746
- small: icons.DocumentProtected16,
747
- normal: icons.DocumentProtected20,
748
- large: icons.DocumentProtected32,
749
- },
750
-
751
- "toggler-star-empty": {
752
- small: icons.Star16,
753
- normal: icons.Star20,
754
- large: icons.Star32
755
- },
756
-
757
- "toggler-star-filled": {
758
- small: icons.StarFilled16,
759
- normal: icons.StarFilled20,
760
- large: icons.StarFilled32
761
- },
762
-
763
- undefined: {
764
- small: icons.Undefined16,
765
- normal: icons.Undefined20,
766
- large: icons.Undefined32,
767
- },
768
- Undefined: {
769
- small: icons.Undefined16,
770
- normal: icons.Undefined20,
771
- large: icons.Undefined32,
772
- },
271
+ undefined: icons.Undefined,
773
272
  };
774
273
 
775
274
  export default canonicalIconNames;