@eccenca/gui-elements 23.0.0 → 23.1.0-easynav.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 (274) 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/extensions/react-flow/handles/HandleDefault.js +4 -3
  66. package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
  67. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +29 -25
  68. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  69. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +2 -2
  70. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  71. package/dist/cjs/extensions/react-flow/versionsupport.js +3 -0
  72. package/dist/cjs/extensions/react-flow/versionsupport.js.map +1 -0
  73. package/dist/cjs/index.js +7 -17
  74. package/dist/cjs/index.js.map +1 -1
  75. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  76. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
  77. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  78. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -6
  79. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  80. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js +194 -0
  81. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
  82. package/dist/esm/common/Intent/index.js +5 -13
  83. package/dist/esm/common/Intent/index.js.map +1 -1
  84. package/dist/esm/common/utils/characters.js +96 -0
  85. package/dist/esm/common/utils/characters.js.map +1 -0
  86. package/dist/esm/components/Application/ApplicationTitle.js +2 -2
  87. package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
  88. package/dist/esm/components/Badge/Badge.js +48 -0
  89. package/dist/esm/components/Badge/Badge.js.map +1 -0
  90. package/dist/esm/components/Depiction/Depiction.js +96 -0
  91. package/dist/esm/components/Depiction/Depiction.js.map +1 -0
  92. package/dist/esm/components/Grid/Grid.js +7 -2
  93. package/dist/esm/components/Grid/Grid.js.map +1 -1
  94. package/dist/esm/components/Grid/GridColumn.js +6 -2
  95. package/dist/esm/components/Grid/GridColumn.js.map +1 -1
  96. package/dist/esm/components/Grid/GridRow.js +3 -0
  97. package/dist/esm/components/Grid/GridRow.js.map +1 -1
  98. package/dist/esm/components/Icon/BaseIcon.js +44 -0
  99. package/dist/esm/components/Icon/BaseIcon.js.map +1 -0
  100. package/dist/esm/components/Icon/Icon.js +9 -24
  101. package/dist/esm/components/Icon/Icon.js.map +1 -1
  102. package/dist/esm/components/Icon/IconButton.js +8 -1
  103. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  104. package/dist/esm/components/Icon/TestIcon.js +41 -0
  105. package/dist/esm/components/Icon/TestIcon.js.map +1 -0
  106. package/dist/esm/components/Icon/canonicalIconNames.js +123 -621
  107. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  108. package/dist/esm/components/Icon/index.js +4 -0
  109. package/dist/esm/components/Icon/index.js.map +1 -0
  110. package/dist/esm/components/Menu/MenuItem.js +1 -1
  111. package/dist/esm/components/Menu/MenuItem.js.map +1 -1
  112. package/dist/esm/components/MultiSelect/MultiSelect.js +61 -44
  113. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  114. package/dist/esm/components/Notification/Notification.js +12 -4
  115. package/dist/esm/components/Notification/Notification.js.map +1 -1
  116. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js +24 -0
  117. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  118. package/dist/esm/components/Tag/Tag.js +6 -2
  119. package/dist/esm/components/Tag/Tag.js.map +1 -1
  120. package/dist/esm/components/TextField/TextArea.js +4 -2
  121. package/dist/esm/components/TextField/TextArea.js.map +1 -1
  122. package/dist/esm/components/TextField/TextField.js +4 -2
  123. package/dist/esm/components/TextField/TextField.js.map +1 -1
  124. package/dist/esm/components/TextField/useTextValidation.js +78 -0
  125. package/dist/esm/components/TextField/useTextValidation.js.map +1 -0
  126. package/dist/esm/components/Tree/Tree.js.map +1 -1
  127. package/dist/esm/components/Typography/Highlighter.js.map +1 -1
  128. package/dist/esm/components/Typography/OverflowText.js.map +1 -1
  129. package/dist/esm/components/Typography/WhiteSpaceContainer.js +16 -14
  130. package/dist/esm/components/Typography/WhiteSpaceContainer.js.map +1 -1
  131. package/dist/esm/components/Typography/index.js +12 -0
  132. package/dist/esm/components/Typography/index.js.map +1 -0
  133. package/dist/esm/components/Workspace/WorkspaceContent.js +1 -1
  134. package/dist/esm/components/Workspace/WorkspaceContent.js.map +1 -1
  135. package/dist/esm/components/index.js +6 -0
  136. package/dist/esm/components/index.js.map +1 -0
  137. package/dist/esm/extensions/react-flow/handles/HandleDefault.js +5 -4
  138. package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
  139. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +37 -32
  140. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  141. package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +2 -2
  142. package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  143. package/dist/esm/extensions/react-flow/versionsupport.js +2 -0
  144. package/dist/esm/extensions/react-flow/versionsupport.js.map +1 -0
  145. package/dist/esm/index.js +5 -10
  146. package/dist/esm/index.js.map +1 -1
  147. package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +2 -1
  148. package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
  149. package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +22 -0
  150. package/dist/types/common/Intent/index.d.ts +4 -3
  151. package/dist/types/common/utils/characters.d.ts +19 -0
  152. package/dist/types/components/Badge/Badge.d.ts +42 -0
  153. package/dist/types/components/Depiction/Depiction.d.ts +71 -0
  154. package/dist/types/components/Grid/Grid.d.ts +21 -2
  155. package/dist/types/components/Grid/GridColumn.d.ts +21 -3
  156. package/dist/types/components/Grid/GridRow.d.ts +18 -2
  157. package/dist/types/components/Icon/BaseIcon.d.ts +45 -0
  158. package/dist/types/components/Icon/Icon.d.ts +7 -34
  159. package/dist/types/components/Icon/IconButton.d.ts +3 -2
  160. package/dist/types/components/Icon/TestIcon.d.ts +20 -0
  161. package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -7
  162. package/dist/types/components/Icon/index.d.ts +4 -0
  163. package/dist/types/components/Menu/MenuItem.d.ts +2 -1
  164. package/dist/types/components/MultiSelect/MultiSelect.d.ts +3 -1
  165. package/dist/types/components/Notification/Notification.d.ts +13 -4
  166. package/dist/types/components/Tabs/Tab.d.ts +2 -0
  167. package/dist/types/components/Tag/Tag.d.ts +16 -3
  168. package/dist/types/components/TextField/TextArea.d.ts +7 -2
  169. package/dist/types/components/TextField/TextField.d.ts +6 -1
  170. package/dist/types/components/TextField/useTextValidation.d.ts +28 -0
  171. package/dist/types/components/Tree/Tree.d.ts +2 -1
  172. package/dist/types/components/Typography/Highlighter.d.ts +2 -2
  173. package/dist/types/components/Typography/OverflowText.d.ts +2 -2
  174. package/dist/types/components/Typography/WhiteSpaceContainer.d.ts +45 -4
  175. package/dist/types/components/Typography/index.d.ts +12 -0
  176. package/dist/types/components/index.d.ts +5 -0
  177. package/dist/types/extensions/react-flow/handles/HandleDefault.d.ts +11 -3
  178. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +16 -6
  179. package/dist/types/extensions/react-flow/nodes/NodeDefault.d.ts +2 -1
  180. package/dist/types/extensions/react-flow/versionsupport.d.ts +6 -0
  181. package/dist/types/index.d.ts +6 -11
  182. package/package.json +14 -16
  183. package/scripts/compile-sass.ts +9 -1
  184. package/src/_shame.scss +1 -1
  185. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +6 -4
  186. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +3 -2
  187. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +26 -1
  188. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +10 -6
  189. package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +247 -0
  190. package/src/common/Intent/index.ts +16 -12
  191. package/src/common/utils/characters.ts +111 -0
  192. package/src/components/Accordion/accordion.scss +4 -3
  193. package/src/components/Application/ApplicationTitle.tsx +2 -2
  194. package/src/components/Application/_config.scss +1 -1
  195. package/src/components/Application/_content.scss +1 -1
  196. package/src/components/Application/_header.scss +2 -2
  197. package/src/components/Application/_sidebar.scss +2 -9
  198. package/src/components/Application/_toolbar.scss +1 -1
  199. package/src/components/Application/application.scss +4 -4
  200. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +13 -8
  201. package/src/components/Badge/Badge.stories.tsx +47 -0
  202. package/src/components/Badge/Badge.tsx +93 -0
  203. package/src/components/Badge/badge.scss +44 -0
  204. package/src/components/Depiction/Depiction.tsx +198 -0
  205. package/src/components/Depiction/depiction.scss +176 -0
  206. package/src/components/Depiction/stories/Depiction.stories.tsx +69 -0
  207. package/src/components/Depiction/stories/test-16to9.png +0 -0
  208. package/src/components/Depiction/stories/test-16to9.svg +41 -0
  209. package/src/components/Depiction/stories/test-16to9.tobase64.svg +41 -0
  210. package/src/components/Depiction/stories/test-16to9.tsx +44 -0
  211. package/src/components/Depiction/stories/test-9to16.png +0 -0
  212. package/src/components/Depiction/stories/test-9to16.svg +44 -0
  213. package/src/components/Depiction/stories/test-9to16.tobase64.svg +44 -0
  214. package/src/components/Depiction/stories/test-9to16.tsx +48 -0
  215. package/src/components/Grid/Grid.tsx +22 -4
  216. package/src/components/Grid/GridColumn.tsx +24 -7
  217. package/src/components/Grid/GridRow.tsx +18 -3
  218. package/src/components/Grid/grid.scss +14 -13
  219. package/src/components/Grid/stories/Grid.stories.tsx +27 -0
  220. package/src/components/Grid/stories/GridColumn.stories.tsx +66 -0
  221. package/src/components/Grid/stories/GridRow.stories.tsx +47 -0
  222. package/src/components/Icon/BaseIcon.tsx +84 -0
  223. package/src/components/Icon/Icon.tsx +23 -82
  224. package/src/components/Icon/IconButton.tsx +18 -14
  225. package/src/components/Icon/TestIcon.tsx +39 -0
  226. package/src/components/Icon/canonicalIconNames.tsx +132 -633
  227. package/src/components/Icon/index.ts +5 -0
  228. package/src/components/Icon/stories/Icon.stories.tsx +13 -0
  229. package/src/components/Icon/stories/IconButton.stories.tsx +14 -7
  230. package/src/components/Icon/stories/TestIcon.stories.tsx +28 -0
  231. package/src/components/Link/link.scss +2 -1
  232. package/src/components/Menu/MenuItem.tsx +14 -4
  233. package/src/components/Menu/Stories/MenuItem.stories.tsx +16 -2
  234. package/src/components/MultiSelect/MultiSelect.tsx +58 -27
  235. package/src/components/Notification/Notification.stories.tsx +4 -0
  236. package/src/components/Notification/Notification.tsx +26 -6
  237. package/src/components/OverviewItem/OverviewItemDepiction.tsx +31 -0
  238. package/src/components/OverviewItem/overviewitem.scss +2 -1
  239. package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +22 -1
  240. package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +8 -3
  241. package/src/components/Pagination/pagination.scss +3 -2
  242. package/src/components/SimpleTable/simpletable.scss +11 -12
  243. package/src/components/Tag/Tag.stories.tsx +7 -2
  244. package/src/components/Tag/Tag.tsx +24 -4
  245. package/src/components/Tag/tag.scss +84 -3
  246. package/src/components/TagInput/taginput.scss +6 -0
  247. package/src/components/TextField/TextArea.tsx +10 -1
  248. package/src/components/TextField/TextField.tsx +9 -0
  249. package/src/components/TextField/stories/SearchField.stories.tsx +1 -1
  250. package/src/components/TextField/textfield.scss +12 -0
  251. package/src/components/TextField/useTextValidation.ts +103 -0
  252. package/src/components/Tooltip/tooltip.scss +1 -1
  253. package/src/components/Tree/Tree.stories.tsx +7 -1
  254. package/src/components/Tree/Tree.tsx +2 -1
  255. package/src/components/Typography/Highlighter.tsx +2 -2
  256. package/src/components/Typography/OverflowText.tsx +2 -2
  257. package/src/components/Typography/WhiteSpaceContainer.tsx +69 -21
  258. package/src/components/Typography/index.ts +25 -0
  259. package/src/components/Typography/stories/WhiteSpaceContainer.stories.tsx +55 -0
  260. package/src/components/Typography/typography.scss +3 -2
  261. package/src/components/Workspace/WorkspaceContent.tsx +1 -1
  262. package/src/components/index.scss +5 -0
  263. package/src/components/index.ts +5 -0
  264. package/src/extensions/react-flow/handles/HandleDefault.tsx +31 -10
  265. package/src/extensions/react-flow/nodes/NodeContent.tsx +69 -39
  266. package/src/extensions/react-flow/nodes/NodeDefault.tsx +4 -2
  267. package/src/extensions/react-flow/nodes/_nodes.scss +13 -7
  268. package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +5 -0
  269. package/src/extensions/react-flow/versionsupport.ts +6 -0
  270. package/src/includes/carbon-components/_components.scss +11 -0
  271. package/src/includes/carbon-components/_requisits.scss +18 -0
  272. package/src/includes/carbon-components/_variables.scss +50 -53
  273. package/src/index.scss +4 -105
  274. package/src/index.ts +6 -16
@@ -0,0 +1,25 @@
1
+ import Highlighter, { HighlighterProps } from "./Highlighter";
2
+ import { extractSearchWords, matchesAllWords, createMultiWordRegex } from "./Highlighter";
3
+ import HtmlContentBlock, { HtmlContentBlockProps } from "./HtmlContentBlock";
4
+ import OverflowText, { OverflowTextProps } from "./OverflowText";
5
+ import WhiteSpaceContainer, { WhiteSpaceContainerProps } from "./WhiteSpaceContainer";
6
+
7
+ export type {
8
+ HighlighterProps,
9
+ HtmlContentBlockProps,
10
+ OverflowTextProps,
11
+ WhiteSpaceContainerProps
12
+ };
13
+
14
+ export {
15
+ Highlighter,
16
+ HtmlContentBlock,
17
+ OverflowText,
18
+ WhiteSpaceContainer,
19
+ };
20
+
21
+ export const HighlighterFunctions = {
22
+ extractSearchWords,
23
+ matchesAllWords,
24
+ createMultiWordRegex,
25
+ };
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ import { loremIpsum } from "react-lorem-ipsum";
4
+ import { WhiteSpaceContainer as WhiteSpaceContainerElement } from "../../../index";
5
+
6
+ const whiteSpaceSizeOptions = {
7
+ control: "select",
8
+ options: {
9
+ "not set": undefined,
10
+ "tiny": "tiny",
11
+ "small": "small",
12
+ "regular": "regular",
13
+ "large": "large",
14
+ "xlarge": "xlarge"
15
+ }
16
+ }
17
+
18
+ export default {
19
+ title: "Components/Typography",
20
+ component: WhiteSpaceContainerElement,
21
+ argTypes: {
22
+ children: { control: "none" },
23
+ marginTop: {...whiteSpaceSizeOptions},
24
+ marginRight: {...whiteSpaceSizeOptions},
25
+ marginBottom: {...whiteSpaceSizeOptions},
26
+ marginLeft: {...whiteSpaceSizeOptions},
27
+ paddingTop: {...whiteSpaceSizeOptions},
28
+ paddingRight: {...whiteSpaceSizeOptions},
29
+ paddingBottom: {...whiteSpaceSizeOptions},
30
+ paddingLeft: {...whiteSpaceSizeOptions},
31
+ },
32
+ } as ComponentMeta<typeof WhiteSpaceContainerElement>;
33
+
34
+ const Template: ComponentStory<typeof WhiteSpaceContainerElement> = (args) => (
35
+ <WhiteSpaceContainerElement {...args} style={{background: "#eee"}}/>
36
+ );
37
+
38
+ const testContent = loremIpsum({
39
+ p: 2,
40
+ avgSentencesPerParagraph: 4,
41
+ random: false
42
+ }).toString()
43
+
44
+ export const WhiteSpaceContainer = Template.bind({});
45
+ WhiteSpaceContainer.args = {
46
+ children: [
47
+ <p>{ testContent }</p>,
48
+ <p><strong>{ testContent.replaceAll(" ", "") }</strong></p>,
49
+ <p>{ testContent }</p>
50
+ ],
51
+ paddingTop: "tiny",
52
+ paddingRight: "small",
53
+ paddingBottom: "regular",
54
+ paddingLeft: "large",
55
+ }
@@ -205,7 +205,7 @@ table {
205
205
  .#{$eccgui}-typography__overflowtext--passdown * {
206
206
  overflow: hidden;
207
207
  text-overflow: ellipsis;
208
- word-wrap: normal;
208
+ overflow-wrap: normal;
209
209
  white-space: nowrap;
210
210
  // display: inherit;
211
211
  max-width: 100%;
@@ -254,7 +254,8 @@ table {
254
254
  }
255
255
 
256
256
  .#{$eccgui}-typography--forcelinebreak {
257
- word-break: break-all;
257
+ word-break: normal;
258
+ overflow-wrap: anywhere;
258
259
  }
259
260
 
260
261
  .#{$eccgui}-typography--preventlinebreak {
@@ -12,7 +12,7 @@ function WorkspaceContent({ children, className = '', ...restProps }: any) {
12
12
  className={`${eccgui}-workspace__content ` + className}
13
13
  fullWidth={true}
14
14
  >
15
- <GridRow>
15
+ <GridRow dontWrapColumns={false}>
16
16
  { children }
17
17
  </GridRow>
18
18
  </Grid>
@@ -0,0 +1,5 @@
1
+ @import "./Badge/badge";
2
+ @import "./Depiction/depiction";
3
+ @import "./Icon/icon";
4
+ @import "./Tree/tree";
5
+ @import "./Typography/typography";
@@ -0,0 +1,5 @@
1
+ export * from "./Badge/Badge";
2
+ export * from "./Depiction/Depiction";
3
+ export * from "./Icon";
4
+ export * from "./Tree/Tree";
5
+ export * from "./Typography";
@@ -1,29 +1,50 @@
1
1
  import React, {memo} from 'react';
2
2
  import {
3
- HandleProps as ReactFlowHandleProps,
4
- Handle,
3
+ HandleProps as ReactFlowHandleLegacyProps,
4
+ Handle as HandleLegacy,
5
5
  } from "react-flow-renderer";
6
+ import {
7
+ HandleProps as ReactFlowHandleNextProps,
8
+ Handle as HandleNext,
9
+ } from "react-flow-renderer-lts";
6
10
  import { HandleContent, HandleContentProps } from "./HandleContent";
11
+ import { ReacFlowVersionSupportProps } from "../versionsupport";
7
12
 
8
- export interface HandleProps extends ReactFlowHandleProps {
13
+ interface HandleExtensionProps extends ReacFlowVersionSupportProps {
9
14
  data?: HandleContentProps;
10
15
  tooltip?: string;
11
16
  children?: JSX.Element | string;
17
+ onClick?: () => void;
18
+ }
19
+
20
+ export interface HandleProps extends HandleExtensionProps, ReactFlowHandleLegacyProps {
21
+ }
22
+
23
+ export interface HandleNextProps extends HandleExtensionProps, ReactFlowHandleNextProps {
12
24
  }
13
25
 
14
26
  export const HandleDefault = memo(({
27
+ flowVersion = "legacy",
15
28
  data,
16
29
  tooltip,
17
30
  children,
18
31
  ...handleProps
19
- }: HandleProps) => {
32
+ }: HandleProps | HandleNextProps) => {
20
33
  const tooltipTitle = !!tooltip ? { title: tooltip } : {};
21
34
 
22
- return (
23
- <Handle {...handleProps} {...tooltipTitle}>
24
- <HandleContent {...data}>
25
- { children }
26
- </HandleContent>
27
- </Handle>
35
+ const handleContent = (
36
+ <HandleContent {...data}>
37
+ { children }
38
+ </HandleContent>
39
+ );
40
+
41
+ return flowVersion === "legacy" ? (
42
+ <HandleLegacy {...handleProps} {...tooltipTitle}>
43
+ { handleContent }
44
+ </HandleLegacy>
45
+ ) : (
46
+ <HandleNext {...handleProps} {...tooltipTitle}>
47
+ { handleContent }
48
+ </HandleNext>
28
49
  );
29
50
  });
@@ -1,9 +1,12 @@
1
1
  import React from "react";
2
- import { Position, useStoreState } from "react-flow-renderer";
3
- import { Icon, Tooltip } from "../../../index";
2
+ import { Position, useStoreState as useStoreStateFlowLegacy } from "react-flow-renderer";
3
+ import { useStore as useStoreStateFlowNext } from "react-flow-renderer-lts";
4
+ import { Icon, Depiction } from "../../../index";
4
5
  import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
5
6
  import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
6
- import { HandleDefault, HandleProps } from "./../handles/HandleDefault";
7
+ import { DepictionProps } from "../../../components/Depiction/Depiction";
8
+ import { ReacFlowVersionSupportProps } from "../versionsupport";
9
+ import { HandleDefault, HandleProps, HandleNextProps } from "./../handles/HandleDefault";
7
10
  import { NodeProps } from "./NodeDefault";
8
11
  import { NodeContentExtensionProps } from "./NodeContentExtension";
9
12
  import { Resizable } from "re-resizable";
@@ -14,6 +17,10 @@ export interface IHandleProps extends HandleProps {
14
17
  category?: "configuration";
15
18
  }
16
19
 
20
+ interface NodeContentHandleNextProps extends HandleNextProps {
21
+ category?: "configuration";
22
+ }
23
+
17
24
  export type NodeDimensions = {
18
25
  width: number;
19
26
  height: number;
@@ -26,9 +33,14 @@ interface NodeContentData<CONTENT_PROPS = any> {
26
33
  */
27
34
  iconName?: ValidIconName;
28
35
  /**
29
- * Valid and accessible URL or `data-uri` for an image that should be displayed before the node label.
36
+ * Depiction element that should be displayed before the node label.
37
+ * As alternative a valid and accessible URL or `data-uri` for an image can be set, then the Depiction element is created automatically.
38
+ */
39
+ depiction?: string | React.ReactElement<DepictionProps>;
40
+ /**
41
+ * Any element that should be displayed as depiction before the node label.
30
42
  */
31
- depiction?: string;
43
+ leftElement?: JSX.Element;
32
44
  /**
33
45
  * Label that is displayed in the node header.
34
46
  */
@@ -48,7 +60,7 @@ interface NodeContentData<CONTENT_PROPS = any> {
48
60
  }
49
61
 
50
62
  export interface NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS = any>
51
- extends NodeContentData,
63
+ extends NodeContentData, ReacFlowVersionSupportProps,
52
64
  React.HTMLAttributes<HTMLDivElement> {
53
65
  /**
54
66
  * Size of the node.
@@ -90,7 +102,7 @@ export interface NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS = any>
90
102
  * Array of property definition objects for `Handle` components that need to be created for the node.
91
103
  * @see https://reactflow.dev/docs/api/handle/
92
104
  */
93
- handles?: IHandleProps[];
105
+ handles?: IHandleProps[] | NodeContentHandleNextProps[];
94
106
  /**
95
107
  * Set the minimal number of handles on left or right side of the node to activate the recalculation of the minimal height of the node.
96
108
  */
@@ -153,13 +165,22 @@ export interface NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS = any>
153
165
  nodeDimensions?: NodeDimensions;
154
166
  }
155
167
 
156
- interface MemoHandlerProps extends HandleProps {
168
+ interface MemoHandlerLegacyProps extends HandleProps {
157
169
  posdirection: string;
158
170
  style: {
159
171
  [key: string]: string | undefined;
160
172
  };
161
173
  }
162
174
 
175
+ interface MemoHandlerNextProps extends HandleNextProps {
176
+ posdirection: string;
177
+ style: {
178
+ [key: string]: string | undefined;
179
+ };
180
+ }
181
+
182
+ type MemoHandlerProps = MemoHandlerLegacyProps | MemoHandlerNextProps;
183
+
163
184
  const defaultHandles = [{ type: "target" }, { type: "source" }] as IHandleProps[];
164
185
 
165
186
  const getDefaultMinimalTooltipData = (node: any) => {
@@ -171,7 +192,7 @@ const getDefaultMinimalTooltipData = (node: any) => {
171
192
  };
172
193
  };
173
194
 
174
- const addHandles = (handles: any, position: any, posDirection: any, isConnectable: any, nodeStyle: any) => {
195
+ const addHandles = (handles: any, position: any, posDirection: any, isConnectable: any, nodeStyle: any, flowVersion: any = "legacy") => {
175
196
  return handles[position].map((handle: any, idx: any) => {
176
197
  const { className, style = {}, category } = handle;
177
198
  const styleAdditions: { [key: string]: string } = {
@@ -191,22 +212,10 @@ const addHandles = (handles: any, position: any, posDirection: any, isConnectabl
191
212
  : className,
192
213
  },
193
214
  };
194
- return <MemoHandler {...handleProperties} key={"handle" + idx} />;
215
+ return <MemoHandler flowVersion={flowVersion} {...handleProperties} key={"handle" + idx} />;
195
216
  });
196
217
  };
197
218
 
198
- const imgWithTooltip = (imgEl: any, tooltipText: any) => {
199
- if (!!tooltipText) {
200
- return (
201
- <Tooltip content={tooltipText}>
202
- <span>{imgEl}</span>
203
- </Tooltip>
204
- );
205
- }
206
-
207
- return imgEl;
208
- };
209
-
210
219
  export const gethighlightedStateClasses = (state: any, baseClassName: any) => {
211
220
  let hightlights = typeof state === "string" ? [state] : state;
212
221
  //@ts-ignore
@@ -226,8 +235,10 @@ const MemoHandler = React.memo(
226
235
  * This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
227
236
  */
228
237
  export function NodeContent<CONTENT_PROPS = any>({
238
+ flowVersion = "legacy",
229
239
  iconName,
230
240
  depiction,
241
+ leftElement,
231
242
  typeLabel,
232
243
  label,
233
244
  showExecutionButtons = true,
@@ -261,14 +272,16 @@ export function NodeContent<CONTENT_PROPS = any>({
261
272
  }: NodeContentProps<any>) {
262
273
  const [width, setWidth] = React.useState<number>(nodeDimensions?.width ?? 0);
263
274
  const [height, setHeight] = React.useState<number>(nodeDimensions?.height ?? 0);
264
- const [, , zoom] = useStoreState((state) => state.transform);
275
+ const [, , zoom] = flowVersion === "legacy"
276
+ ? useStoreStateFlowLegacy((state) => state.transform)
277
+ : useStoreStateFlowNext((state) => state.transform);
265
278
  const [adjustedContentProps, setAdjustedContentProps] = React.useState<Partial<CONTENT_PROPS>>({});
266
279
  const nodeContentRef = React.useRef<any>();
267
- const handleStack: { [key: string]: IHandleProps[] } = {};
268
- handleStack[Position.Top] = [] as IHandleProps[];
269
- handleStack[Position.Right] = [] as IHandleProps[];
270
- handleStack[Position.Bottom] = [] as IHandleProps[];
271
- handleStack[Position.Left] = [] as IHandleProps[];
280
+ const handleStack = flowVersion==="legacy" ? {} as { [key: string]: IHandleProps[] } : {} as { [key: string]: NodeContentHandleNextProps[] };
281
+ handleStack[Position.Top] = flowVersion==="legacy" ? [] as IHandleProps[] : [] as NodeContentHandleNextProps[];
282
+ handleStack[Position.Right] = flowVersion==="legacy" ? [] as IHandleProps[] : [] as NodeContentHandleNextProps[];
283
+ handleStack[Position.Bottom] = flowVersion==="legacy" ? [] as IHandleProps[] : [] as NodeContentHandleNextProps[];
284
+ handleStack[Position.Left] = flowVersion==="legacy" ? [] as IHandleProps[] : [] as NodeContentHandleNextProps[];
272
285
 
273
286
  // initial dimension before resize
274
287
  React.useEffect(() => {
@@ -342,14 +355,31 @@ export function NodeContent<CONTENT_PROPS = any>({
342
355
  }
343
356
  >
344
357
  <header className={`${eccgui}-graphviz__node__header`}>
345
- {(!!iconName || !!depiction) && (
358
+ {(!!iconName || !!depiction || !!leftElement) && (
346
359
  <span className={`${eccgui}-graphviz__node__header-depiction`}>
347
- {!!depiction &&
348
- imgWithTooltip(
349
- <img src={depiction} alt="" />,
350
- minimalShape === "none" || selected ? typeLabel : undefined
351
- )}
352
- {!!iconName && !depiction && (
360
+ { leftElement }
361
+ {!!depiction && !leftElement && typeof depiction === "string" && (
362
+ <Depiction
363
+ image={<img src={depiction} alt="" />}
364
+ caption={minimalShape === "none" || selected ? typeLabel : undefined}
365
+ captionPosition="tooltip"
366
+ padding="tiny"
367
+ ratio="1:1"
368
+ resizing="contain"
369
+ forceInlineSvg
370
+ />
371
+ )}
372
+ {!!depiction && !leftElement && typeof depiction !== "string" && (
373
+ React.cloneElement(depiction, {
374
+ caption: minimalShape === "none" || selected ? typeLabel : undefined,
375
+ captionPosition: "tooltip",
376
+ padding: "tiny",
377
+ ratio: "1:1",
378
+ resizing: "contain",
379
+ forceInlineSvg: true,
380
+ })
381
+ )}
382
+ {!!iconName && !leftElement && !depiction && (
353
383
  <Icon
354
384
  name={iconName}
355
385
  tooltipText={minimalShape === "none" || selected ? typeLabel : undefined}
@@ -383,10 +413,10 @@ export function NodeContent<CONTENT_PROPS = any>({
383
413
  </section>
384
414
  {!!handles && (
385
415
  <>
386
- {addHandles(handleStack, Position.Top, "left", isConnectable, style)}
387
- {addHandles(handleStack, Position.Right, "top", isConnectable, style)}
388
- {addHandles(handleStack, Position.Bottom, "left", isConnectable, style)}
389
- {addHandles(handleStack, Position.Left, "top", isConnectable, style)}
416
+ {addHandles(handleStack, Position.Top, "left", isConnectable, style, flowVersion)}
417
+ {addHandles(handleStack, Position.Right, "top", isConnectable, style, flowVersion)}
418
+ {addHandles(handleStack, Position.Bottom, "left", isConnectable, style, flowVersion)}
419
+ {addHandles(handleStack, Position.Left, "top", isConnectable, style, flowVersion)}
390
420
  </>
391
421
  )}
392
422
  </>
@@ -5,8 +5,9 @@ import {
5
5
  } from "react-flow-renderer";
6
6
  import { Tooltip } from "../../../index";
7
7
  import { NodeContent, NodeContentProps } from "./NodeContent";
8
+ import { ReacFlowVersionSupportProps } from "../versionsupport";
8
9
 
9
- export interface NodeProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReactFlowNodeProps {
10
+ export interface NodeProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReacFlowVersionSupportProps, ReactFlowNodeProps {
10
11
  /**
11
12
  * Contains all properties for our implementation of the React-Flow node.
12
13
  * For details pls see the `NodeContent` element documentation.
@@ -22,6 +23,7 @@ export interface NodeProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReactFlo
22
23
  export const NodeDefault = memo(
23
24
  (node: NodeProps<any>) => {
24
25
  const {
26
+ flowVersion,
25
27
  data,
26
28
  targetPosition = Position.Left,
27
29
  sourcePosition = Position.Right,
@@ -29,7 +31,7 @@ export const NodeDefault = memo(
29
31
  selected
30
32
  } = node;
31
33
 
32
- const nodeEl = <NodeContent {...{...data, targetPosition, sourcePosition, isConnectable, selected}} />
34
+ const nodeEl = <NodeContent {...{flowVersion, ...data, targetPosition, sourcePosition, isConnectable, selected}} />
33
35
 
34
36
  if (!selected && data?.minimalShape !== "none" && !!data?.getMinimalTooltipData) {
35
37
  const tooltipData = data?.getMinimalTooltipData(node);
@@ -151,13 +151,19 @@
151
151
  justify-content: center;
152
152
  align-items: center;
153
153
 
154
- img {
155
- max-width: calc(2 * (#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width}));
156
- max-height: calc(#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width});
157
- height: auto;
158
- width: auto;
159
- display: inline-block;
160
- pointer-events: none;
154
+ & .#{$eccgui}-depiction {
155
+ flex-grow: 0;
156
+ flex-shrink: 0;
157
+ align-self: stretch;
158
+
159
+ /*
160
+ Fix for Firefox,
161
+ the width of .#{$eccgui}-depiction container is not reduced to its content
162
+ when .#{$eccgui}-depiction__image updated to the available height.
163
+ */
164
+ .#{$eccgui}-depiction__image {
165
+ height: calc(#{$reactflow-node-basesize} - #{2 * $reactflow-node-border-width});
166
+ }
161
167
  }
162
168
  }
163
169
 
@@ -6,6 +6,7 @@ import {
6
6
  OverflowText,
7
7
  HtmlContentBlock,
8
8
  } from "./../../../../index";
9
+ import canonicalIcons from "./../../../../components/Icon/canonicalIconNames";
9
10
 
10
11
  import { NodeContent } from "./../NodeContent";
11
12
  import { nodeTypes } from "./../nodeTypes";
@@ -29,6 +30,10 @@ export default {
29
30
  "Slide out example": <NodeContentExtension {...ContentExtensionExampleSlideOut.args} />,
30
31
  },
31
32
  },
33
+ iconName: {
34
+ control: "select",
35
+ options: [...(Object.keys(canonicalIcons))],
36
+ },
32
37
  content: { control: "none" },
33
38
  footerContent: { control: "none" },
34
39
  isConnectable: { table: { disable: true } },
@@ -0,0 +1,6 @@
1
+ export interface ReacFlowVersionSupportProps {
2
+ /**
3
+ * Spevifies the context of the react flow renderer version that is used for the component.
4
+ */
5
+ flowVersion?: "legacy" | "next";
6
+ }
@@ -0,0 +1,11 @@
1
+ /*
2
+ FIXME:
3
+ it's probably not necessary to include those elements because they should be included by
4
+ the Carbon components itself when they are necessary as sub components. We may remove this
5
+ file later when we haven't experiences any problems.
6
+ */
7
+ // @use "~@carbon/styles/scss/components/select/index" as select;
8
+ // @use "~@carbon/styles/scss/components/list-box/index" as list-box;
9
+ // @use "~@carbon/styles/scss/components/dropdown/index" as dropdown;
10
+
11
+ @use "~@carbon/styles/scss/components/popover/index" as popover; // necessary for pagination
@@ -0,0 +1,18 @@
1
+ @use "~@carbon/styles/scss/config" with (
2
+ $css--body: $css--body,
3
+ $css--font-face: $css--font-face,
4
+ $css--reset: $css--reset,
5
+ $css--default-type: $css--default-type,
6
+ $prefix: $prefix,
7
+ $flex-grid-columns: $flex-grid-columns,
8
+ $use-flexbox-grid: $use-flexbox-grid
9
+ );
10
+ @use "~@carbon/styles/scss/utilities/_visually-hidden";
11
+ @import "~@carbon/styles/scss/feature-flags";
12
+ @import "~@carbon/styles/scss/colors";
13
+ @import "~@carbon/styles/scss/theme";
14
+ :root {
15
+ @include theme;
16
+ }
17
+ @import "~@carbon/styles/scss/spacing";
18
+ @import "~@carbon/styles/scss/utilities/z-index";
@@ -3,6 +3,11 @@
3
3
  // Stack of Carbon variables that are necessary to use their framework
4
4
  // TODO: calculate them from own configuration variables, all unchanged variables are commented out
5
5
 
6
+ $prefix: "cds" !default;
7
+
8
+ $flex-grid-columns: 16 !default;
9
+ $use-flexbox-grid: true !default;
10
+
6
11
  /// If true, includes font face mixins in `_css--font-face.scss` depending on the `css--plex` feature flag
7
12
  $css--font-face: false !default;
8
13
 
@@ -24,86 +29,78 @@ $css--default-type: false !default;
24
29
  /// Used with `css--font-face` feature flag, if true, uses Plex font families instead of Helvetica
25
30
  $css--plex: false !default;
26
31
 
27
- $feature-flags: (
28
- ui-shell: true,
29
- grid-columns-16: true,
30
- // not necessary, we include 16 columns grid directly
31
- ) !default;
32
-
33
- // Manage deprecations
34
- $deprecations--entry: true;
35
- $deprecations--reasons: ();
36
- $deprecations--message: "Deprecated code was found, this code will be removed before the next release of Carbon.";
32
+ $base-font-size: $eccgui-size-typo-base !default;
33
+ @import "~@carbon/styles/scss/utilities/convert";
37
34
 
38
- $carbon--base-font-size: $eccgui-size-typo-base !default;
39
- @import "~carbon-components/scss/globals/scss/vendor/@carbon/type/scss/vendor/@carbon/layout/convert";
40
-
41
- $caption-01: (
42
- font-size: carbon--rem($eccgui-size-typo-caption),
43
- line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
44
- ) !default;
45
35
  $label-01: (
46
- font-size: carbon--rem($eccgui-size-typo-caption),
36
+ font-size: rem($eccgui-size-typo-caption),
47
37
  line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
48
38
  ) !default;
49
39
  $helper-text-01: (
50
- font-size: carbon--rem($eccgui-size-typo-caption),
40
+ font-size: rem($eccgui-size-typo-caption),
51
41
  line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
52
42
  ) !default;
53
43
  $body-short-01: (
54
- font-size: carbon--rem($eccgui-size-typo-text),
55
- line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
56
- ) !default;
57
- $body-long-01: (
58
- font-size: carbon--rem($eccgui-size-typo-text),
59
- line-height: $eccgui-size-typo-text-lineheight,
60
- ) !default;
61
- $code-01: (
62
- font-family: $eccgui-font-family-monospace,
63
- font-size: carbon--rem($eccgui-size-typo-caption),
44
+ font-size: rem($eccgui-size-typo-text),
64
45
  line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
65
46
  ) !default;
66
- $heading-01: (
67
- font-size: carbon--rem($eccgui-size-typo-text),
68
- font-weight: 600,
47
+ $body-short-02: (
48
+ font-size: rem($eccgui-size-typo-subtitle),
69
49
  line-height: $eccgui-size-typo-text-lineheight,
70
50
  ) !default;
71
-
72
- $body-short-02: (
73
- font-size: carbon--rem($eccgui-size-typo-subtitle),
51
+ $body-long-01: (
52
+ font-size: rem($eccgui-size-typo-text),
74
53
  line-height: $eccgui-size-typo-text-lineheight,
75
54
  ) !default;
76
55
  $body-long-02: (
77
- font-size: carbon--rem($eccgui-size-typo-subtitle),
56
+ font-size: rem($eccgui-size-typo-subtitle),
78
57
  line-height: $eccgui-size-typo-text-lineheight * $eccgui-size-type-levelratio,
79
58
  ) !default;
59
+ $code-01: (
60
+ font-family: $eccgui-font-family-monospace,
61
+ font-size: rem($eccgui-size-typo-caption),
62
+ line-height: math.div($eccgui-size-typo-text-lineheight, $eccgui-size-type-levelratio),
63
+ ) !default;
80
64
  $code-02: (
81
65
  font-family: $eccgui-font-family-monospace,
82
- font-size: carbon--rem($eccgui-size-typo-text),
66
+ font-size: rem($eccgui-size-typo-text),
67
+ line-height: $eccgui-size-typo-text-lineheight,
68
+ ) !default;
69
+ $heading-01: (
70
+ font-size: rem($eccgui-size-typo-text),
71
+ font-weight: 600,
83
72
  line-height: $eccgui-size-typo-text-lineheight,
84
73
  ) !default;
85
74
  $heading-02: (
86
- font-size: carbon--rem($eccgui-size-typo-subtitle),
75
+ font-size: rem($eccgui-size-typo-subtitle),
87
76
  font-weight: 600,
88
77
  line-height: $eccgui-size-typo-text-lineheight * $eccgui-size-type-levelratio,
89
78
  ) !default;
90
79
 
91
- $ui-01: transparent !default;
92
- $ui-02: $eccgui-color-workspace-background !default;
80
+ $layer-01: transparent !default;
81
+ $layer-02: $eccgui-color-workspace-background !default;
93
82
  $ui-03: $pt-divider-black !default;
94
- $text-01: $eccgui-color-applicationheader-text !default;
95
- $text-02: $eccgui-color-workspace-text !default;
96
- $link-01: $eccgui-color-accent !default;
97
- $hover-primary-text: $eccgui-color-info-text !default;
98
- $hover-field: $button-background-color-hover !default;
99
- $hover-ui: $hover-field !default;
100
- $visited-link: purple !default;
101
- $disabled-02: rgba($text-01, $eccgui-opacity-disabled) !default;
102
-
103
- $layout-04: carbon--rem(
104
- $eccgui-size-block-whitespace * 2 * $eccgui-size-type-levelratio
105
- ) !default; // regular height of text input
106
- $spacing-05: carbon--rem($eccgui-size-inline-whitespace) !default;
83
+ $layer-accent-01: $ui-03 !default;
84
+ $border-subtle-01: $ui-03 !default;
85
+ $text-primary: $eccgui-color-applicationheader-text !default;
86
+ $text-secondary: $eccgui-color-workspace-text !default;
87
+ $link-primary: $eccgui-color-accent !default;
88
+ $link-primary-hover: $eccgui-color-info-text !default;
89
+ $link-visited: purple !default;
90
+ $hover-ui: $button-background-color-hover !default;
91
+ $background-hover: $hover-ui !default;
92
+ $layer-hover-01: $hover-ui !default;
93
+ $field-hover-01: $hover-ui !default;
94
+ $field-hover-02: $hover-ui !default;
95
+ $disabled-02: rgba($text-primary, $eccgui-opacity-disabled) !default;
96
+ $text-disabled: $disabled-02 !default;
97
+ $icon-disabled: $disabled-02 !default;
98
+ $button-disabled: $disabled-02 !default;
99
+ $border-disabled: $disabled-02 !default;
100
+ $spacing-05: rem($eccgui-size-inline-whitespace) !default;
101
+ $spacing-09: rem($eccgui-size-block-whitespace * 2 * $eccgui-size-type-levelratio) !default;
102
+
103
+ $data-table-zebra-color: $layer-02 !default;
107
104
 
108
105
  // FIXME: for some unknown reasons it is not possible to set the $layer* vars here, for example they are used to color the tables
109
106