@eccenca/gui-elements 25.1.0-rc.4 → 25.2.0-featuredarkthemesupportcmem7503.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 (580) hide show
  1. package/CHANGELOG.md +1005 -946
  2. package/README.md +27 -27
  3. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +21 -23
  4. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  5. package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +28 -12
  6. package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
  7. package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +17 -7
  8. package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
  9. package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
  10. package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
  11. package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js +29 -13
  12. package/dist/cjs/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
  13. package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +21 -6
  14. package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
  15. package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +17 -7
  16. package/dist/cjs/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +1 -1
  17. package/dist/cjs/cmem/markdown/Markdown.js +2 -2
  18. package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
  19. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +17 -7
  20. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  21. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
  22. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  23. package/dist/cjs/cmem/react-flow/configuration/graph.js +0 -2
  24. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
  25. package/dist/cjs/cmem/react-flow/configuration/linking.js +0 -2
  26. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
  27. package/dist/cjs/cmem/react-flow/configuration/workflow.js +0 -2
  28. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
  29. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +17 -7
  30. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
  31. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +17 -7
  32. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -1
  33. package/dist/cjs/common/utils/colorCalculateDistance.js.map +1 -1
  34. package/dist/cjs/common/utils/colorDecideContrastvalue.js +2 -1
  35. package/dist/cjs/common/utils/colorDecideContrastvalue.js.map +1 -1
  36. package/dist/cjs/common/utils/colorHash.js +3 -7
  37. package/dist/cjs/common/utils/colorHash.js.map +1 -1
  38. package/dist/cjs/common/utils/reduceToText.js +17 -7
  39. package/dist/cjs/common/utils/reduceToText.js.map +1 -1
  40. package/dist/cjs/components/Accordion/AccordionItem.js.map +1 -1
  41. package/dist/cjs/components/Application/ApplicationContainer.js +3 -2
  42. package/dist/cjs/components/Application/ApplicationContainer.js.map +1 -1
  43. package/dist/cjs/components/Application/ApplicationSidebarNavigation.js.map +1 -1
  44. package/dist/cjs/components/Application/ApplicationTitle.js +1 -1
  45. package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
  46. package/dist/cjs/components/Application/ApplicationToolbarAction.js.map +1 -1
  47. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +27 -13
  48. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  49. package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
  50. package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js +1 -1
  51. package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
  52. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +19 -16
  53. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  54. package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
  55. package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +17 -7
  56. package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
  57. package/dist/cjs/components/Button/Button.js +5 -1
  58. package/dist/cjs/components/Button/Button.js.map +1 -1
  59. package/dist/cjs/components/Card/CardContent.js +1 -1
  60. package/dist/cjs/components/Card/CardContent.js.map +1 -1
  61. package/dist/cjs/components/Chat/ChatArea.js.map +1 -1
  62. package/dist/cjs/components/ColorField/ColorField.js +1 -1
  63. package/dist/cjs/components/ColorField/ColorField.js.map +1 -1
  64. package/dist/cjs/components/ContentGroup/ContentGroup.js +19 -19
  65. package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -1
  66. package/dist/cjs/components/ContextOverlay/ContextMenu.js +4 -4
  67. package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
  68. package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -5
  69. package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
  70. package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js +6 -5
  71. package/dist/cjs/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
  72. package/dist/cjs/components/Depiction/Depiction.js +18 -8
  73. package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
  74. package/dist/cjs/components/Dialog/Modal.js.map +1 -1
  75. package/dist/cjs/components/Dialog/ModalContext.js +3 -3
  76. package/dist/cjs/components/Dialog/ModalContext.js.map +1 -1
  77. package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js +17 -7
  78. package/dist/cjs/components/FlexibleLayout/FlexibleLayoutContainer.js.map +1 -1
  79. package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js +17 -7
  80. package/dist/cjs/components/FlexibleLayout/FlexibleLayoutItem.js.map +1 -1
  81. package/dist/cjs/components/Grid/Grid.js.map +1 -1
  82. package/dist/cjs/components/Icon/IconButton.js +2 -2
  83. package/dist/cjs/components/Icon/IconButton.js.map +1 -1
  84. package/dist/cjs/components/Icon/canonicalIconNames.js +25 -8
  85. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  86. package/dist/cjs/components/Icon/transformIcon.js.map +1 -1
  87. package/dist/cjs/components/Iframe/Iframe.js +17 -7
  88. package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
  89. package/dist/cjs/components/InteractionGate/InteractionGate.js +17 -7
  90. package/dist/cjs/components/InteractionGate/InteractionGate.js.map +1 -1
  91. package/dist/cjs/components/List/List.js +17 -7
  92. package/dist/cjs/components/List/List.js.map +1 -1
  93. package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
  94. package/dist/cjs/components/MultiSelect/MultiSelect.js +55 -25
  95. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  96. package/dist/cjs/components/NotAvailable/NotAvailable.js +42 -0
  97. package/dist/cjs/components/NotAvailable/NotAvailable.js.map +1 -0
  98. package/dist/cjs/components/Notification/Notification.js.map +1 -1
  99. package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  100. package/dist/cjs/components/Pagination/Pagination.js +17 -7
  101. package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
  102. package/dist/cjs/components/Select/Select.js +6 -4
  103. package/dist/cjs/components/Select/Select.js.map +1 -1
  104. package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -1
  105. package/dist/cjs/components/Spinner/Spinner.js +17 -7
  106. package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
  107. package/dist/cjs/components/Switch/Switch.js +17 -7
  108. package/dist/cjs/components/Switch/Switch.js.map +1 -1
  109. package/dist/cjs/components/Table/Table.js.map +1 -1
  110. package/dist/cjs/components/Table/TableContainer.js +1 -1
  111. package/dist/cjs/components/Table/TableContainer.js.map +1 -1
  112. package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -1
  113. package/dist/cjs/components/Table/TableExpandRow.js +2 -2
  114. package/dist/cjs/components/Table/TableExpandRow.js.map +1 -1
  115. package/dist/cjs/components/Tabs/Tab.js.map +1 -1
  116. package/dist/cjs/components/Tabs/Tabs.js +17 -7
  117. package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
  118. package/dist/cjs/components/Tag/Tag.js +1 -1
  119. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  120. package/dist/cjs/components/TextField/TextArea.js.map +1 -1
  121. package/dist/cjs/components/TextField/TextField.js.map +1 -1
  122. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  123. package/dist/cjs/components/Tree/Tree.js +17 -7
  124. package/dist/cjs/components/Tree/Tree.js.map +1 -1
  125. package/dist/cjs/components/Typography/HtmlContentBlock.js +17 -7
  126. package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
  127. package/dist/cjs/components/Typography/WhiteSpaceContainer.js +17 -7
  128. package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
  129. package/dist/cjs/components/VisualTour/VisualTour.js +7 -5
  130. package/dist/cjs/components/VisualTour/VisualTour.js.map +1 -1
  131. package/dist/cjs/components/index.js +1 -0
  132. package/dist/cjs/components/index.js.map +1 -1
  133. package/dist/cjs/extensions/codemirror/CodeMirror.js +43 -19
  134. package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
  135. package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
  136. package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
  137. package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
  138. package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
  139. package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js +17 -7
  140. package/dist/cjs/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
  141. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +17 -7
  142. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  143. package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js +17 -7
  144. package/dist/cjs/extensions/react-flow/edges/EdgeDefaultV12.js.map +1 -1
  145. package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +25 -10
  146. package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
  147. package/dist/cjs/extensions/react-flow/edges/EdgeNew.js +14 -8
  148. package/dist/cjs/extensions/react-flow/edges/EdgeNew.js.map +1 -1
  149. package/dist/cjs/extensions/react-flow/edges/EdgeStep.js +17 -7
  150. package/dist/cjs/extensions/react-flow/edges/EdgeStep.js.map +1 -1
  151. package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +19 -9
  152. package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
  153. package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
  154. package/dist/cjs/extensions/react-flow/handles/HandleContent.js +22 -9
  155. package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
  156. package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +20 -8
  157. package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
  158. package/dist/cjs/extensions/react-flow/handles/HandleTools.js +2 -2
  159. package/dist/cjs/extensions/react-flow/handles/HandleTools.js.map +1 -1
  160. package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
  161. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +17 -7
  162. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  163. package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js +17 -7
  164. package/dist/cjs/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
  165. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +11 -9
  166. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  167. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +21 -8
  168. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  169. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +23 -9
  170. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  171. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +6 -1
  172. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
  173. package/dist/cjs/index.js +17 -7
  174. package/dist/cjs/index.js.map +1 -1
  175. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +7 -9
  176. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  177. package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +6 -3
  178. package/dist/esm/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
  179. package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +2 -2
  180. package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
  181. package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js +2 -1
  182. package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -1
  183. package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js +8 -5
  184. package/dist/esm/cmem/ContentBlobToggler/ContentBlobToggler.js.map +1 -1
  185. package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +28 -3
  186. package/dist/esm/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
  187. package/dist/esm/cmem/markdown/Markdown.js +1 -1
  188. package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
  189. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlowV9.js.map +1 -1
  190. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  191. package/dist/esm/cmem/react-flow/configuration/graph.js +0 -2
  192. package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
  193. package/dist/esm/cmem/react-flow/configuration/linking.js +0 -2
  194. package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
  195. package/dist/esm/cmem/react-flow/configuration/workflow.js +0 -2
  196. package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
  197. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -1
  198. package/dist/esm/common/utils/colorCalculateDistance.js.map +1 -1
  199. package/dist/esm/common/utils/colorDecideContrastvalue.js +2 -1
  200. package/dist/esm/common/utils/colorDecideContrastvalue.js.map +1 -1
  201. package/dist/esm/common/utils/colorHash.js +3 -7
  202. package/dist/esm/common/utils/colorHash.js.map +1 -1
  203. package/dist/esm/common/utils/reduceToText.js +1 -1
  204. package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
  205. package/dist/esm/components/Application/ApplicationContainer.js +3 -2
  206. package/dist/esm/components/Application/ApplicationContainer.js.map +1 -1
  207. package/dist/esm/components/Application/ApplicationSidebarNavigation.js.map +1 -1
  208. package/dist/esm/components/Application/ApplicationTitle.js +1 -1
  209. package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
  210. package/dist/esm/components/Application/ApplicationToolbarAction.js.map +1 -1
  211. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +12 -8
  212. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  213. package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
  214. package/dist/esm/components/AutocompleteField/AutoCompleteField.js +11 -18
  215. package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  216. package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
  217. package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
  218. package/dist/esm/components/Button/Button.js +5 -1
  219. package/dist/esm/components/Button/Button.js.map +1 -1
  220. package/dist/esm/components/Card/CardContent.js +1 -1
  221. package/dist/esm/components/Card/CardContent.js.map +1 -1
  222. package/dist/esm/components/Chat/ChatArea.js.map +1 -1
  223. package/dist/esm/components/ColorField/ColorField.js +1 -1
  224. package/dist/esm/components/ColorField/ColorField.js.map +1 -1
  225. package/dist/esm/components/ContentGroup/ContentGroup.js +1 -1
  226. package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -1
  227. package/dist/esm/components/ContextOverlay/ContextMenu.js +4 -4
  228. package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
  229. package/dist/esm/components/ContextOverlay/ContextOverlay.js +3 -2
  230. package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
  231. package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js +3 -2
  232. package/dist/esm/components/DecoupledOverlay/DecoupledOverlay.js.map +1 -1
  233. package/dist/esm/components/Depiction/Depiction.js +1 -1
  234. package/dist/esm/components/Depiction/Depiction.js.map +1 -1
  235. package/dist/esm/components/Dialog/Modal.js.map +1 -1
  236. package/dist/esm/components/Dialog/ModalContext.js +2 -2
  237. package/dist/esm/components/Dialog/ModalContext.js.map +1 -1
  238. package/dist/esm/components/Grid/Grid.js.map +1 -1
  239. package/dist/esm/components/Icon/IconButton.js +2 -2
  240. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  241. package/dist/esm/components/Icon/canonicalIconNames.js +8 -1
  242. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  243. package/dist/esm/components/Icon/transformIcon.js.map +1 -1
  244. package/dist/esm/components/Menu/MenuItem.js.map +1 -1
  245. package/dist/esm/components/MultiSelect/MultiSelect.js +42 -22
  246. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  247. package/dist/esm/components/NotAvailable/NotAvailable.js +46 -0
  248. package/dist/esm/components/NotAvailable/NotAvailable.js.map +1 -0
  249. package/dist/esm/components/Notification/Notification.js.map +1 -1
  250. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  251. package/dist/esm/components/Select/Select.js +4 -2
  252. package/dist/esm/components/Select/Select.js.map +1 -1
  253. package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
  254. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  255. package/dist/esm/components/Table/Table.js.map +1 -1
  256. package/dist/esm/components/Table/TableContainer.js +1 -1
  257. package/dist/esm/components/Table/TableContainer.js.map +1 -1
  258. package/dist/esm/components/Table/TableExpandHeader.js.map +1 -1
  259. package/dist/esm/components/Table/TableExpandRow.js +1 -1
  260. package/dist/esm/components/Table/TableExpandRow.js.map +1 -1
  261. package/dist/esm/components/Tabs/Tab.js.map +1 -1
  262. package/dist/esm/components/Tag/Tag.js +1 -1
  263. package/dist/esm/components/Tag/Tag.js.map +1 -1
  264. package/dist/esm/components/TextField/TextArea.js.map +1 -1
  265. package/dist/esm/components/TextField/TextField.js.map +1 -1
  266. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  267. package/dist/esm/components/VisualTour/VisualTour.js +7 -5
  268. package/dist/esm/components/VisualTour/VisualTour.js.map +1 -1
  269. package/dist/esm/components/index.js +1 -0
  270. package/dist/esm/components/index.js.map +1 -1
  271. package/dist/esm/extensions/codemirror/CodeMirror.js +26 -12
  272. package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
  273. package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +5 -3
  274. package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
  275. package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +1 -1
  276. package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
  277. package/dist/esm/extensions/react-flow/edges/EdgeBezier.js.map +1 -1
  278. package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +3 -1
  279. package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -1
  280. package/dist/esm/extensions/react-flow/edges/EdgeNew.js +11 -5
  281. package/dist/esm/extensions/react-flow/edges/EdgeNew.js.map +1 -1
  282. package/dist/esm/extensions/react-flow/edges/EdgeTools.js +1 -1
  283. package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
  284. package/dist/esm/extensions/react-flow/edges/utils.js.map +1 -1
  285. package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
  286. package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
  287. package/dist/esm/extensions/react-flow/handles/HandleDefault.js +3 -1
  288. package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
  289. package/dist/esm/extensions/react-flow/handles/HandleTools.js +1 -1
  290. package/dist/esm/extensions/react-flow/handles/HandleTools.js.map +1 -1
  291. package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -1
  292. package/dist/esm/extensions/react-flow/minimap/MiniMap.js +1 -1
  293. package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  294. package/dist/esm/extensions/react-flow/minimap/MiniMapV12.js.map +1 -1
  295. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +8 -6
  296. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  297. package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +1 -1
  298. package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  299. package/dist/esm/extensions/react-flow/nodes/NodeTools.js +2 -1
  300. package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  301. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +6 -1
  302. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
  303. package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +5 -5
  304. package/dist/types/cmem/ActivityControl/ActivityExecutionErrorReportModal.d.ts +1 -1
  305. package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +4 -4
  306. package/dist/types/cmem/ConfidenceValue/ConfidenceValue.d.ts +2 -2
  307. package/dist/types/cmem/ContentBlobToggler/ContentBlobToggler.d.ts +5 -1
  308. package/dist/types/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.d.ts +3 -3
  309. package/dist/types/cmem/markdown/Markdown.d.ts +2 -1
  310. package/dist/types/cmem/react-flow/configuration/graph.d.ts +2 -1
  311. package/dist/types/cmem/react-flow/configuration/linking.d.ts +2 -1
  312. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +2 -1
  313. package/dist/types/common/utils/colorCalculateDistance.d.ts +2 -2
  314. package/dist/types/common/utils/colorDecideContrastvalue.d.ts +2 -2
  315. package/dist/types/common/utils/colorHash.d.ts +3 -3
  316. package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
  317. package/dist/types/components/Application/ApplicationContainer.d.ts +6 -1
  318. package/dist/types/components/Application/ApplicationSidebarNavigation.d.ts +2 -0
  319. package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +6 -3
  320. package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +1 -1
  321. package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +2 -12
  322. package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +1 -1
  323. package/dist/types/components/Button/Button.d.ts +3 -3
  324. package/dist/types/components/Card/CardHeader.d.ts +1 -1
  325. package/dist/types/components/ColorField/ColorField.d.ts +2 -5
  326. package/dist/types/components/ContentGroup/ContentGroup.d.ts +1 -1
  327. package/dist/types/components/ContextOverlay/ContextMenu.d.ts +9 -3
  328. package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +2 -2
  329. package/dist/types/components/DecoupledOverlay/DecoupledOverlay.d.ts +3 -1
  330. package/dist/types/components/Depiction/Depiction.d.ts +3 -3
  331. package/dist/types/components/Dialog/SimpleDialog.d.ts +1 -1
  332. package/dist/types/components/Form/FieldItem.d.ts +1 -1
  333. package/dist/types/components/Form/FieldSet.d.ts +3 -3
  334. package/dist/types/components/HoverToggler/HoverToggler.d.ts +2 -2
  335. package/dist/types/components/Icon/canonicalIconNames.d.ts +8 -1
  336. package/dist/types/components/Label/Label.d.ts +3 -3
  337. package/dist/types/components/Menu/MenuItem.d.ts +1 -1
  338. package/dist/types/components/MultiSelect/MultiSelect.d.ts +15 -4
  339. package/dist/types/components/NotAvailable/NotAvailable.d.ts +32 -0
  340. package/dist/types/components/Notification/Notification.d.ts +2 -2
  341. package/dist/types/components/OverviewItem/OverviewItemActions.d.ts +1 -1
  342. package/dist/types/components/PropertyValuePair/PropertyValueList.d.ts +1 -1
  343. package/dist/types/components/Select/Select.d.ts +2 -1
  344. package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
  345. package/dist/types/components/Spinner/Spinner.d.ts +2 -2
  346. package/dist/types/components/Structure/TitleSubsection.d.ts +2 -5
  347. package/dist/types/components/SuggestField/index.d.ts +2 -2
  348. package/dist/types/components/Table/TableContainer.d.ts +3 -3
  349. package/dist/types/components/Table/index.d.ts +1 -1
  350. package/dist/types/components/Tabs/Tab.d.ts +180 -186
  351. package/dist/types/components/Tabs/TabTitle.d.ts +1 -1
  352. package/dist/types/components/Tag/Tag.d.ts +2 -2
  353. package/dist/types/components/TextField/TextArea.d.ts +6 -1
  354. package/dist/types/components/index.d.ts +1 -0
  355. package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +3 -3
  356. package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +1 -1
  357. package/dist/types/extensions/react-flow/handles/HandleContent.d.ts +2 -2
  358. package/dist/types/extensions/react-flow/handles/HandleTools.d.ts +2 -2
  359. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +3 -3
  360. package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
  361. package/dist/types/extensions/react-flow/nodes/sharedTypes.d.ts +2 -2
  362. package/package.json +67 -66
  363. package/scripts/compile-sass.ts +2 -0
  364. package/scripts/sassConfig.js +1 -1
  365. package/scripts/sassDeprecationConfig.js +3 -0
  366. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +4 -9
  367. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +33 -35
  368. package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +5 -2
  369. package/src/cmem/ActivityControl/SilkActivityControl.tsx +28 -32
  370. package/src/cmem/ActivityControl/tests/ActivityControlWidget.test.tsx +1 -1
  371. package/src/cmem/ConfidenceValue/ConfidenceValue.tsx +6 -5
  372. package/src/cmem/ContentBlobToggler/ContentBlobToggler.tsx +17 -7
  373. package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +12 -4
  374. package/src/cmem/ContentBlobToggler/tests/StringPreviewContentBlobToggler.test.tsx +10 -10
  375. package/src/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.tsx +2 -2
  376. package/src/cmem/DateTimeDisplay/tests/ElapsedDateTimeDisplay.test.tsx +2 -2
  377. package/src/cmem/markdown/Markdown.stories.tsx +11 -0
  378. package/src/cmem/markdown/Markdown.tsx +2 -1
  379. package/src/cmem/markdown/highlightSearchWords.test.ts +1 -1
  380. package/src/cmem/markdown/markdown.scss +1 -1
  381. package/src/cmem/markdown/markdownutils.test.ts +2 -2
  382. package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +3 -3
  383. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -2
  384. package/src/cmem/react-flow/ReactFlow/ReactFlowV12.tsx +1 -1
  385. package/src/cmem/react-flow/ReactFlow/ReactFlowV9.tsx +2 -5
  386. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +6 -3
  387. package/src/cmem/react-flow/configuration/graph.ts +3 -3
  388. package/src/cmem/react-flow/configuration/linking.ts +3 -3
  389. package/src/cmem/react-flow/configuration/workflow.ts +3 -3
  390. package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +14 -14
  391. package/src/common/scss/_color-functions.scss +151 -5
  392. package/src/common/utils/CssCustomProperties.ts +1 -1
  393. package/src/common/utils/characters.ts +2 -2
  394. package/src/common/utils/colorCalculateDistance.ts +2 -2
  395. package/src/common/utils/colorDecideContrastvalue.ts +4 -3
  396. package/src/common/utils/colorHash.ts +13 -17
  397. package/src/common/utils/getColorConfiguration.ts +2 -2
  398. package/src/common/utils/openInNewTab.ts +1 -1
  399. package/src/common/utils/reduceToText.tsx +1 -1
  400. package/src/components/Accordion/AccordionItem.tsx +3 -2
  401. package/src/components/Accordion/Stories/AccordionItem.stories.tsx +1 -1
  402. package/src/components/Application/ApplicationContainer.tsx +15 -2
  403. package/src/components/Application/ApplicationSidebarNavigation.tsx +6 -2
  404. package/src/components/Application/ApplicationTitle.tsx +9 -1
  405. package/src/components/Application/ApplicationToolbarAction.tsx +2 -1
  406. package/src/components/Application/_colors.scss +27 -3
  407. package/src/components/Application/_container.scss +5 -0
  408. package/src/components/Application/_header.scss +13 -10
  409. package/src/components/Application/_sidebar.scss +2 -0
  410. package/src/components/Application/application.scss +1 -0
  411. package/src/components/Application/stories/Application.stories.tsx +13 -1
  412. package/src/components/Application/stories/ColorPalettes.stories.tsx +23 -19
  413. package/src/components/Application/tests/ApplicationViewability.test.tsx +1 -7
  414. package/src/components/AutoSuggestion/AutoSuggestion.tsx +30 -23
  415. package/src/components/AutoSuggestion/AutoSuggestionList.tsx +5 -3
  416. package/src/components/AutoSuggestion/ExtendedCodeEditor.tsx +2 -2
  417. package/src/components/AutoSuggestion/extensions/markText.ts +1 -1
  418. package/src/components/AutocompleteField/AutoCompleteField.tsx +16 -25
  419. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +7 -3
  420. package/src/components/Badge/Badge.stories.tsx +1 -1
  421. package/src/components/Breadcrumb/BreadcrumbList.tsx +4 -3
  422. package/src/components/Breadcrumb/breadcrumb.scss +2 -2
  423. package/src/components/Button/Button.test.tsx +2 -2
  424. package/src/components/Button/Button.tsx +13 -11
  425. package/src/components/Button/button.scss +4 -3
  426. package/src/components/Card/CardContent.tsx +17 -20
  427. package/src/components/Card/CardHeader.tsx +1 -1
  428. package/src/components/Card/card.scss +8 -4
  429. package/src/components/Card/stories/Card.stories.tsx +1 -1
  430. package/src/components/Chat/ChatArea.tsx +1 -2
  431. package/src/components/Chat/_chat.scss +2 -2
  432. package/src/components/Checkbox/Stories/Checkbox.stories.tsx +1 -1
  433. package/src/components/Checkbox/checkbox.scss +9 -0
  434. package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +9 -3
  435. package/src/components/ColorField/ColorField.test.tsx +1 -1
  436. package/src/components/ColorField/ColorField.tsx +6 -6
  437. package/src/components/ContentGroup/ContentGroup.stories.tsx +1 -1
  438. package/src/components/ContentGroup/ContentGroup.tsx +6 -6
  439. package/src/components/ContextOverlay/ContextMenu.tsx +10 -4
  440. package/src/components/ContextOverlay/ContextOverlay.stories.tsx +1 -1
  441. package/src/components/ContextOverlay/ContextOverlay.tsx +16 -11
  442. package/src/components/ContextOverlay/tests/ContextOverlay.test.tsx +2 -2
  443. package/src/components/DecoupledOverlay/DecoupledOverlay.tsx +11 -4
  444. package/src/components/Depiction/Depiction.tsx +6 -6
  445. package/src/components/Dialog/Modal.tsx +9 -7
  446. package/src/components/Dialog/ModalContext.tsx +6 -6
  447. package/src/components/Dialog/SimpleDialog.tsx +1 -1
  448. package/src/components/Dialog/stories/AlertDialog.stories.tsx +1 -1
  449. package/src/components/Dialog/stories/Modal.stories.tsx +2 -2
  450. package/src/components/Dialog/stories/SimpleDialog.stories.tsx +1 -1
  451. package/src/components/FlexibleLayout/FlexibleLayoutContainer.tsx +2 -2
  452. package/src/components/FlexibleLayout/FlexibleLayoutItem.tsx +2 -2
  453. package/src/components/Form/FieldItem.tsx +1 -1
  454. package/src/components/Form/FieldSet.tsx +3 -3
  455. package/src/components/Form/Stories/FieldItem.stories.tsx +1 -1
  456. package/src/components/Form/Stories/FieldSet.stories.tsx +1 -1
  457. package/src/components/Form/form.scss +2 -2
  458. package/src/components/Grid/Grid.tsx +4 -2
  459. package/src/components/Grid/stories/GridColumn.stories.tsx +1 -1
  460. package/src/components/Grid/stories/GridRow.stories.tsx +1 -1
  461. package/src/components/HoverToggler/HoverToggler.tsx +2 -2
  462. package/src/components/Icon/Icon.tsx +1 -1
  463. package/src/components/Icon/IconButton.tsx +3 -3
  464. package/src/components/Icon/canonicalIconNames.tsx +10 -2
  465. package/src/components/Icon/icon.scss +4 -4
  466. package/src/components/Icon/stories/Icon.stories.tsx +1 -1
  467. package/src/components/Icon/stories/IconButton.stories.tsx +1 -1
  468. package/src/components/Icon/stories/TestIcon.stories.tsx +1 -1
  469. package/src/components/Icon/transformIcon.tsx +11 -9
  470. package/src/components/Iframe/Iframe.tsx +2 -2
  471. package/src/components/Iframe/iframe.scss +8 -0
  472. package/src/components/Label/Label.tsx +4 -4
  473. package/src/components/List/List.tsx +1 -1
  474. package/src/components/Menu/MenuItem.tsx +3 -2
  475. package/src/components/Menu/Stories/MenuItem.stories.tsx +1 -1
  476. package/src/components/Menu/menu.scss +1 -0
  477. package/src/components/MultiSelect/MultiSelect.tsx +62 -26
  478. package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +1 -1
  479. package/src/components/MultiSuggestField/index.ts +1 -1
  480. package/src/components/MultiSuggestField/tests/MultiSuggestField.test.tsx +24 -57
  481. package/src/components/NotAvailable/NotAvailable.stories.tsx +15 -0
  482. package/src/components/NotAvailable/NotAvailable.tsx +69 -0
  483. package/src/components/Notification/Notification.stories.tsx +2 -1
  484. package/src/components/Notification/Notification.tsx +5 -4
  485. package/src/components/OverviewItem/OverviewItemActions.tsx +1 -1
  486. package/src/components/OverviewItem/OverviewItemDepiction.tsx +1 -1
  487. package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +1 -1
  488. package/src/components/OverviewItem/stories/OverviewItemActions.stories.tsx +1 -1
  489. package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +1 -1
  490. package/src/components/OverviewItem/stories/OverviewItemDescription.stories.tsx +1 -1
  491. package/src/components/OverviewItem/stories/OverviewItemListPerformance.tsx +2 -2
  492. package/src/components/Pagination/Pagination.tsx +2 -2
  493. package/src/components/Pagination/Stories/Pagination.stories.tsx +32 -0
  494. package/src/components/Pagination/pagination.scss +55 -5
  495. package/src/components/PropertyValuePair/PropertyValueList.tsx +1 -1
  496. package/src/components/RadioButton/Stories/RadioButton.stories.tsx +1 -1
  497. package/src/components/RadioButton/radiobutton.scss +9 -0
  498. package/src/components/Select/Select.stories.tsx +1 -1
  499. package/src/components/Select/Select.tsx +7 -4
  500. package/src/components/Skeleton/Skeleton.tsx +2 -2
  501. package/src/components/Spinner/Spinner.tsx +2 -2
  502. package/src/components/Sticky/StickyTarget.tsx +1 -1
  503. package/src/components/Sticky/stories/StickyTarget.stories.tsx +2 -2
  504. package/src/components/Structure/TitleSubsection.tsx +2 -2
  505. package/src/components/SuggestField/SuggestField.stories.tsx +2 -2
  506. package/src/components/Table/Table.tsx +3 -2
  507. package/src/components/Table/TableContainer.tsx +11 -6
  508. package/src/components/Table/TableExpandHeader.tsx +2 -1
  509. package/src/components/Table/TableExpandRow.tsx +3 -2
  510. package/src/components/Table/index.tsx +7 -1
  511. package/src/components/Tabs/Tab.tsx +2 -2
  512. package/src/components/Tabs/TabTitle.tsx +1 -1
  513. package/src/components/Tabs/tabs.scss +2 -2
  514. package/src/components/Tag/Tag.tsx +9 -10
  515. package/src/components/Tag/stories/Tag.stories.tsx +1 -1
  516. package/src/components/Tag/stories/TagList.stories.tsx +1 -1
  517. package/src/components/TextField/TextArea.tsx +12 -7
  518. package/src/components/TextField/TextField.tsx +4 -3
  519. package/src/components/TextField/stories/TextArea.stories.tsx +1 -1
  520. package/src/components/TextField/stories/TextField.stories.tsx +1 -3
  521. package/src/components/TextField/useTextValidation.ts +4 -4
  522. package/src/components/TextReducer/TextReducer.stories.tsx +4 -1
  523. package/src/components/TextReducer/TextReducer.test.tsx +2 -2
  524. package/src/components/Toolbar/toolbar.scss +1 -2
  525. package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
  526. package/src/components/Tooltip/Tooltip.test.tsx +5 -5
  527. package/src/components/Tooltip/Tooltip.tsx +5 -5
  528. package/src/components/Typography/_reset.scss +1 -0
  529. package/src/components/Typography/stories/OverflowText.stories.tsx +1 -1
  530. package/src/components/Typography/typography.scss +25 -3
  531. package/src/components/VisualTour/VisualTour.tsx +10 -10
  532. package/src/components/Workspace/workspace.scss +0 -5
  533. package/src/components/index.ts +1 -0
  534. package/src/configuration/_palettes.scss +66 -2
  535. package/src/configuration/_variables.scss +3 -1
  536. package/src/configuration/stories/customproperties.stories.tsx +45 -7
  537. package/src/extensions/codemirror/CodeMirror.tsx +131 -79
  538. package/src/extensions/codemirror/_codemirror.scss +59 -0
  539. package/src/extensions/codemirror/debouncedLinter.ts +2 -2
  540. package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +9 -5
  541. package/src/extensions/codemirror/tests/CodeEditor.test.tsx +4 -4
  542. package/src/extensions/codemirror/tests/EditorAppearanceConfigMenu.test.tsx +5 -5
  543. package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +12 -12
  544. package/src/extensions/codemirror/toolbars/commands/markdown.command.ts +6 -6
  545. package/src/extensions/react-flow/_react-flow_v12.scss +38 -19
  546. package/src/extensions/react-flow/edges/EdgeBezier.tsx +1 -2
  547. package/src/extensions/react-flow/edges/EdgeDefault.tsx +4 -4
  548. package/src/extensions/react-flow/edges/EdgeDefaultV12.tsx +5 -5
  549. package/src/extensions/react-flow/edges/EdgeLabel.tsx +10 -8
  550. package/src/extensions/react-flow/edges/EdgeNew.tsx +29 -31
  551. package/src/extensions/react-flow/edges/EdgeTools.tsx +2 -3
  552. package/src/extensions/react-flow/edges/_edges.scss +1 -0
  553. package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +1 -1
  554. package/src/extensions/react-flow/edges/stories/EdgeDefaultV12.stories.tsx +1 -1
  555. package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +2 -1
  556. package/src/extensions/react-flow/edges/utils.ts +5 -3
  557. package/src/extensions/react-flow/handles/HandleContent.tsx +3 -3
  558. package/src/extensions/react-flow/handles/HandleDefault.tsx +56 -46
  559. package/src/extensions/react-flow/handles/HandleTools.tsx +4 -5
  560. package/src/extensions/react-flow/handles/_handles.scss +3 -3
  561. package/src/extensions/react-flow/handles/stories/HandleDefault.stories.tsx +2 -7
  562. package/src/extensions/react-flow/index.ts +1 -1
  563. package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +2 -2
  564. package/src/extensions/react-flow/minimap/MiniMap.tsx +17 -20
  565. package/src/extensions/react-flow/minimap/MiniMapV12.tsx +2 -3
  566. package/src/extensions/react-flow/nodes/NodeContent.tsx +65 -57
  567. package/src/extensions/react-flow/nodes/NodeDefault.tsx +6 -3
  568. package/src/extensions/react-flow/nodes/NodeDefaultV12.tsx +1 -1
  569. package/src/extensions/react-flow/nodes/NodeTools.tsx +5 -5
  570. package/src/extensions/react-flow/nodes/_nodes.scss +2 -1
  571. package/src/extensions/react-flow/nodes/nodeUtils.tsx +10 -5
  572. package/src/extensions/react-flow/nodes/sharedTypes.ts +2 -2
  573. package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +38 -24
  574. package/src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx +1 -1
  575. package/src/extensions/react-flow/nodes/stories/NodeDefault.stories.tsx +1 -1
  576. package/src/includes/blueprintjs/_variables.scss +1 -0
  577. package/src/includes/carbon-components/_requisits.scss +13 -1
  578. package/src/includes/carbon-components/_variables.scss +2 -1
  579. package/src/index.scss +2 -2
  580. package/src/test/setupTests.js +1 -1
@@ -19,7 +19,7 @@
19
19
  @error "Need at least 1 color to create color tints.";
20
20
  }
21
21
 
22
- // we asume that it correct to give only start and end of tint weights
22
+ // we assume that it correct to give only start and end of tint weights
23
23
  // only echo debug message if we have a 1, 3 or 4 color values
24
24
  @if $count-colors != 2 {
25
25
  @debug "Got only #{$count-colors} tints: #{$colorset}";
@@ -92,16 +92,163 @@
92
92
  }
93
93
 
94
94
  @if $alpha > 0 {
95
- @return eccgui-color-mix($color 100% * $alpha, transparent);
95
+ @if math.is-unitless($alpha) {
96
+ $alpha: 100% * $alpha;
97
+ }
98
+
99
+ @return eccgui-color-mix($color $alpha, transparent);
96
100
  } @else {
97
101
  // workaround: we need to prevent `0%` because it will reduced to `0` by some CSS minifiers and leads to invalid color-mix values
98
102
  @return eccgui-color-mix($color, transparent 100%);
99
103
  }
100
104
  }
101
105
 
106
+ /**
107
+ * Reverse alpha compositing ("remove" a background color from a color).
108
+ *
109
+ * Given an opaque $color that visually results from compositing an unknown
110
+ * semi-transparent foreground color over $background, this returns that
111
+ * foreground color including the alpha channel, so that
112
+ * compositing the result over $background reproduces $color again.
113
+ *
114
+ * For every channel the minimal alpha is determined that keeps the resulting
115
+ * foreground channel inside the valid [0, 255] range; the largest of these
116
+ * per-channel alphas is used for all channels. This yields the most
117
+ * transparent foreground color possible for the given $background.
118
+ */
119
+ @function eccgui-color-subtract-background($color, $background) {
120
+ @if meta.type-of($color) != "color" or meta.type-of($background) != "color" {
121
+ @error "eccgui-color-subtract-background() expects SASS color values for $color and $background.";
122
+ }
123
+
124
+ $channels: "red" "green" "blue";
125
+ $alpha: 0;
126
+
127
+ // determine the minimal alpha that keeps every foreground channel in range
128
+ @each $channel in $channels {
129
+ $target: color.channel($color, $channel, $space: rgb);
130
+ $base: color.channel($background, $channel, $space: rgb);
131
+ $channel-alpha: 0;
132
+
133
+ @if $target > $base {
134
+ // foreground channel goes towards 255, limited by the headroom (255 - base)
135
+ $channel-alpha: math.div($target - $base, 255 - $base);
136
+ } @else if $target < $base {
137
+ // foreground channel goes towards 0, limited by the available range (base)
138
+ $channel-alpha: math.div($base - $target, $base);
139
+ }
140
+
141
+ @if $channel-alpha > $alpha {
142
+ $alpha: $channel-alpha;
143
+ }
144
+ }
145
+
146
+ @if $alpha <= 0 {
147
+ // $color equals $background, the foreground is fully transparent
148
+ @return transparent;
149
+ }
150
+
151
+ // recover the foreground channels: foreground = base + (target - base) / alpha
152
+ $foreground: ();
153
+
154
+ @each $channel in $channels {
155
+ $target: color.channel($color, $channel, $space: rgb);
156
+ $base: color.channel($background, $channel, $space: rgb);
157
+ $foreground: list.append($foreground, $base + math.div($target - $base, $alpha));
158
+ }
159
+
160
+ @return color.change(
161
+ rgb(list.nth($foreground, 1), list.nth($foreground, 2), list.nth($foreground, 3)),
162
+ $alpha: $alpha
163
+ );
164
+ }
165
+
166
+ /**
167
+ * Alpha compositing ("flatten" a semi-transparent color onto a background).
168
+ *
169
+ * Given a $color that may carry an alpha channel and an opaque $background,
170
+ * this composites $color over $background and returns the resulting opaque
171
+ * color. It is the inverse of eccgui-color-subtract-background().
172
+ *
173
+ * Per channel: result = foreground * alpha + background * (1 - alpha).
174
+ */
175
+ @function eccgui-color-flatten-foreground($color, $background) {
176
+ @if meta.type-of($color) != "color" or meta.type-of($background) != "color" {
177
+ @error "eccgui-color-blend-onto-background() expects SASS color values for $color and $background.";
178
+ }
179
+
180
+ $alpha: color.alpha($color);
181
+
182
+ @if $alpha >= 1 {
183
+ // fully opaque foreground, background has no influence
184
+ @return color.change($color, $alpha: 1);
185
+ }
186
+
187
+ $channels: "red" "green" "blue";
188
+ $blended: ();
189
+
190
+ @each $channel in $channels {
191
+ $foreground: color.channel($color, $channel, $space: rgb);
192
+ $base: color.channel($background, $channel, $space: rgb);
193
+ $blended: list.append($blended, $foreground * $alpha + $base * (1 - $alpha));
194
+ }
195
+
196
+ @return rgb(list.nth($blended, 1), list.nth($blended, 2), list.nth($blended, 3));
197
+ }
198
+
199
+ /**
200
+ * Switch the background color for a color value.
201
+ */
202
+ @function eccgui-color-switch-background($color, $bg_old, $bg_new) {
203
+ @return eccgui-color-flatten-foreground(eccgui-color-subtract-background($color, $bg_old), $bg_new);
204
+ }
205
+
206
+ /**
207
+ * Process a color from a light palette to get used in a dark palette.
208
+ */
209
+ @function eccgui-color-darkify($color) {
210
+ // very simple process, only invert lightness
211
+ $color-dark-simple: color.change($color, $lightness: 100% - color.channel($color, "lightness", $space: hsl));
212
+
213
+ // read values for lightness and saturation
214
+ // use them to improve the final darkified color
215
+ $l: color.channel($color-dark-simple, "lightness", $space: hsl);
216
+ $s: color.channel($color-dark-simple, "saturation", $space: hsl);
217
+
218
+ // improve color perception
219
+ // for light and saturated colors bring back a bit of the original color
220
+ @if $l > 45% and $s > 70% {
221
+ $color-dark-simple: color.mix($color, $color-dark-simple, 25%);
222
+ $l: color.channel($color-dark-simple, "lightness", $space: hsl);
223
+ $s: color.channel($color-dark-simple, "saturation", $space: hsl);
224
+ }
225
+
226
+ // improve lightness
227
+ // make dark colors a bit lighter again
228
+ @if $l < 50% {
229
+ $l: $l + (10% * math.div(50% - $l, 50%));
230
+ }
231
+
232
+ // improve saturation
233
+ // decrease it gradually based on lightness and saturation to prevent straining "neon" effects
234
+ $s: $s * (1 - 0.1 * math.div($l, 100%) - 0.1 * math.div($s, 100%));
235
+
236
+ // return improved darkified color, round rgb values
237
+ $color-dark-improved: color.change($color-dark-simple, $lightness: $l, $saturation: $s);
238
+
239
+ @return color.change(
240
+ $color-dark-improved,
241
+ $red: math.round(color.channel($color-dark-improved, "red")),
242
+ $green: math.round(color.channel($color-dark-improved, "green")),
243
+ $blue: math.round(color.channel($color-dark-improved, "blue"))
244
+ );
245
+ }
246
+
102
247
  $debug-rgba-values: "yes";
103
248
 
104
249
  /**
250
+ * Overwrite SCSS built-in rgba function
251
+ * TODO: we need to check if this is future proof, maybe this behaviour is not planned by Dart Sass library.
105
252
  * Split between rgba(red, green, blue, alpha) and rgba(color, alpha).
106
253
  */
107
254
  @function rgba($r, $g, $b: "undefined", $a: 1) {
@@ -113,15 +260,14 @@ $debug-rgba-values: "yes";
113
260
  } @else {
114
261
  // rgba(r, g, b, a) is used -> rgb(r g b / a)
115
262
  // @see https://developer.mozilla.org/de/docs/Web/CSS/color_value/rgb
116
- $color-new-notation: rgb(#{$r} #{$g} #{$b} / #{$a});
263
+ $color-new-notation: #{"rgb(" + $r + " " + $g + " " + $b + " / " + $a + ")"};
117
264
 
118
265
  @return $color-new-notation;
119
266
  }
120
267
  }
121
268
 
122
269
  /**
123
- * Overwrite SCSS built-in rgba function to support colors by custom properties and CSS color methods.
124
- * TODO: we need to check if this is future proof, maybe this bahaviour is not planned by Dart Sass library.
270
+ * Support colors by custom properties and CSS color methods.
125
271
  */
126
272
  @function rgba-extended($color, $alpha) {
127
273
  @if meta.type-of($color) == "color" {
@@ -105,7 +105,7 @@ export default class CssCustomProperties {
105
105
  };
106
106
 
107
107
  static listCustomProperties = (
108
- props: getCustomPropertiesProps = {}
108
+ props: getCustomPropertiesProps = {},
109
109
  ): [string, string][] | Record<string, string> => {
110
110
  const { removeDashPrefix = true, returnObject = true, filterName = () => true, ...filterProps } = props;
111
111
 
@@ -64,13 +64,13 @@ const invisibleZeroWidthCharacterCodePoints: InvisibleCharacter[] = internalInvi
64
64
  const createInvisibleZeroWidthCharacterCodePointsRegex = () => {
65
65
  return new RegExp(
66
66
  `([${invisibleZeroWidthCharacterCodePoints.map((cp) => `\\u{${cp.hexString}}`).join("")}])`,
67
- "ug"
67
+ "ug",
68
68
  );
69
69
  };
70
70
 
71
71
  /** Map from codepoint to invisible character. */
72
72
  const invisibleZeroWidthCharacterCodePointsMap: Map<number, InvisibleCharacter> = new Map(
73
- invisibleZeroWidthCharacterCodePoints.map((cp) => [cp.codePoint, cp])
73
+ invisibleZeroWidthCharacterCodePoints.map((cp) => [cp.codePoint, cp]),
74
74
  );
75
75
 
76
76
  const clearStringFromInvisibleCharacters = (inputString: string): string => {
@@ -1,6 +1,6 @@
1
- import Color from "color";
1
+ import Color, { ColorLike } from "color";
2
2
 
3
- export type colorValue = Color | string;
3
+ export type colorValue = ColorLike;
4
4
 
5
5
  export interface colorCalculateDistanceProps {
6
6
  // Color used to calculate distance to other color.
@@ -1,6 +1,6 @@
1
- import Color from "color";
1
+ import Color, { ColorLike } from "color";
2
2
 
3
- export type colorValue = Color | string;
3
+ export type colorValue = ColorLike;
4
4
 
5
5
  export interface decideContrastColorValueProps {
6
6
  // The color that is used to test if it need a light or dark color as contrast value.
@@ -21,7 +21,8 @@ const decideContrastColorValue = ({
21
21
  contrastColor = Color(testColor).isLight()
22
22
  ? Color(darkColor).rgb().toString()
23
23
  : Color(lightColor).rgb().toString();
24
- } catch (ex) {
24
+ } catch {
25
+ // eslint-disable-next-line no-console
25
26
  console.warn("Received invalid colors", { testColor, lightColor, darkColor });
26
27
  }
27
28
  return contrastColor;
@@ -1,11 +1,11 @@
1
- import Color from "color";
1
+ import Color, { ColorInstance } from "color";
2
2
 
3
3
  import { CLASSPREFIX as eccgui, COLORMINDISTANCE } from "../../configuration/constants";
4
4
 
5
5
  import { colorCalculateDistance } from "./colorCalculateDistance";
6
6
  import CssCustomProperties from "./CssCustomProperties";
7
7
 
8
- type ColorOrFalse = Color | false;
8
+ type ColorOrFalse = ColorInstance | false;
9
9
  export type ColorWeight = 100 | 300 | 500 | 700 | 900;
10
10
  export type PaletteGroup = "identity" | "semantic" | "layout" | "extra";
11
11
 
@@ -20,10 +20,10 @@ export interface getEnabledColorsProps {
20
20
  // includeMixedColors?: boolean;
21
21
  }
22
22
 
23
- const getEnabledColorsFromPaletteCache = new Map<string, Color[]>();
23
+ const getEnabledColorsFromPaletteCache = new Map<string, ColorInstance[]>();
24
24
  const getEnabledColorPropertiesFromPaletteCache = new Map<string, [string, string][]>();
25
25
 
26
- export function getEnabledColorsFromPalette(props: getEnabledColorsProps): Color[] {
26
+ export function getEnabledColorsFromPalette(props: getEnabledColorsProps): ColorInstance[] {
27
27
  const configId = JSON.stringify({
28
28
  includePaletteGroup: props.includePaletteGroup,
29
29
  includeColorWeight: props.includeColorWeight,
@@ -39,7 +39,7 @@ export function getEnabledColorsFromPalette(props: getEnabledColorsProps): Color
39
39
  configId,
40
40
  colorPropertiesFromPalette.map((color) => {
41
41
  return Color(color[1]);
42
- })
42
+ }),
43
43
  );
44
44
 
45
45
  return getEnabledColorsFromPaletteCache.get(configId)!;
@@ -108,7 +108,7 @@ function getColorcode(text: string): ColorOrFalse {
108
108
 
109
109
  interface textToColorOptions {
110
110
  /** Stack of colors that are allowed to be returned. */
111
- enabledColors: Color[] | "all" | getEnabledColorsProps;
111
+ enabledColors: ColorInstance[] | "all" | getEnabledColorsProps;
112
112
  /** Return input text if it represents a valid color string, e.g. `#000` or `black`. */
113
113
  returnValidColorsDirectly: boolean;
114
114
  }
@@ -138,7 +138,7 @@ export function textToColorHash({
138
138
  }
139
139
 
140
140
  if (!color) {
141
- color = getColorcode(stringToHexColorHash(text)) as Color;
141
+ color = getColorcode(stringToHexColorHash(text)) as ColorInstance;
142
142
  }
143
143
 
144
144
  if (options.enabledColors === "all" && color) {
@@ -146,13 +146,9 @@ export function textToColorHash({
146
146
  return color.hex().toString();
147
147
  }
148
148
 
149
- let enabledColors = [] as Color[];
150
-
151
- if (Array.isArray(options.enabledColors)) {
152
- enabledColors = options.enabledColors;
153
- } else {
154
- enabledColors = getEnabledColorsFromPalette(options.enabledColors as getEnabledColorsProps);
155
- }
149
+ const enabledColors = Array.isArray(options.enabledColors)
150
+ ? options.enabledColors
151
+ : getEnabledColorsFromPalette(options.enabledColors as getEnabledColorsProps);
156
152
 
157
153
  if (enabledColors.length === 0) {
158
154
  // eslint-disable-next-line no-console
@@ -160,7 +156,7 @@ export function textToColorHash({
160
156
  return false;
161
157
  }
162
158
 
163
- return nearestColorNeighbour(color, enabledColors as Color[])
159
+ return nearestColorNeighbour(color, enabledColors as ColorInstance[])
164
160
  .hex()
165
161
  .toString();
166
162
  }
@@ -190,7 +186,7 @@ function stringToHexColorHash(inputString: string): string {
190
186
  return integerToHexColor(integerHash);
191
187
  }
192
188
 
193
- function nearestColorNeighbour(color: Color, enabledColors: Color[]): Color {
189
+ function nearestColorNeighbour(color: ColorInstance, enabledColors: ColorInstance[]): ColorInstance {
194
190
  const nearestNeighbour = enabledColors.reduce(
195
191
  (nearestColor, enabledColorsItem) => {
196
192
  const distance = colorCalculateDistance({
@@ -207,7 +203,7 @@ function nearestColorNeighbour(color: Color, enabledColors: Color[]): Color {
207
203
  {
208
204
  distance: Number.POSITIVE_INFINITY,
209
205
  color: enabledColors[0],
210
- }
206
+ },
211
207
  );
212
208
  return nearestNeighbour.color;
213
209
  }
@@ -57,8 +57,8 @@ const getColorConfiguration = (configId: colorconfigs): Record<string, string> =
57
57
  } catch {
58
58
  return [setting[0], undefined];
59
59
  }
60
- })
61
- ) as Record<string, string>
60
+ }),
61
+ ) as Record<string, string>,
62
62
  );
63
63
  }
64
64
  return colorConfigurationMemo.get(configId)!;
@@ -3,7 +3,7 @@
3
3
  export const openInNewTab = (
4
4
  event: React.MouseEvent<HTMLAnchorElement>,
5
5
  handler?: (e: React.MouseEvent<HTMLAnchorElement>) => void,
6
- url?: string
6
+ url?: string,
7
7
  ) => {
8
8
  //if ctrl key or cmd key bypass click handler and delegation open in the background new tab
9
9
  if (url && (event.ctrlKey || event.metaKey)) {
@@ -11,7 +11,7 @@ export interface ReduceToTextFuncType {
11
11
  * Component or text to reduce HTML markup content to plain text.
12
12
  */
13
13
  input: React.ReactNode | React.ReactNode[] | string,
14
- options?: Pick<TextReducerProps, "maxNodes" | "maxLength" | "decodeHtmlEntities" | "decodeHtmlEntitiesOptions">
14
+ options?: Pick<TextReducerProps, "maxNodes" | "maxLength" | "decodeHtmlEntities" | "decodeHtmlEntitiesOptions">,
15
15
  ): string;
16
16
  }
17
17
 
@@ -9,7 +9,8 @@ type sizeOptions = "none" | "small" | "medium" | "large";
9
9
  // workaround to get type/interface
10
10
  type CarbonAccordionItemProps = React.ComponentProps<typeof CarbonAccordionItem>;
11
11
  export interface AccordionItemProps
12
- extends Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando">,
12
+ extends
13
+ Omit<CarbonAccordionItemProps, "title" | "iconDescription" | "renderExpando">,
13
14
  Omit<React.LiHTMLAttributes<HTMLLIElement>, "title"> {
14
15
  /**
15
16
  * additional user class name
@@ -18,7 +19,7 @@ export interface AccordionItemProps
18
19
  /**
19
20
  * header of accordion item
20
21
  */
21
- label: string | JSX.Element;
22
+ label: string | React.JSX.Element;
22
23
  /**
23
24
  * use full available width for content
24
25
  */
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { LoremIpsum } from "react-lorem-ipsum";
3
3
  import { Meta, StoryFn } from "@storybook/react";
4
4
 
5
- import { Accordion, AccordionItem, HtmlContentBlock } from "../../../../index";
5
+ import { Accordion, AccordionItem, HtmlContentBlock } from "../../../components";
6
6
 
7
7
  export default {
8
8
  title: "Components/Accordion/AccordionItem",
@@ -11,20 +11,33 @@ export interface ApplicationContainerProps extends React.HTMLAttributes<HTMLDivE
11
11
  * This need to match with a `dropzone-for` data attribute on available dropzones for dragged elements.
12
12
  */
13
13
  monitorDropzonesFor?: string[];
14
+ /**
15
+ * Use a light or dark color palette for the GUI.
16
+ * On `auto` it depends on the system configuration.
17
+ */
18
+ themeMode?: "dark" | "light" | "auto";
14
19
  }
15
20
 
16
21
  export const ApplicationContainer = ({
17
22
  children,
18
23
  className = "",
19
24
  monitorDropzonesFor = [],
25
+ themeMode = "auto",
20
26
  ...otherDivProps
21
27
  }: ApplicationContainerProps) => {
22
- const containerRef = React.useRef<any>(null);
28
+ const containerRef = React.useRef(null);
23
29
  useDropzoneMonitor(monitorDropzonesFor);
24
30
 
25
31
  return (
26
32
  <OverlaysProvider>
27
- <div ref={containerRef} className={`${eccgui}-application__container ${className}`} {...otherDivProps}>
33
+ <div
34
+ ref={containerRef}
35
+ className={
36
+ `${eccgui}-application__container ${eccgui}-palette--${themeMode}` +
37
+ (className ? ` ${className}` : "")
38
+ }
39
+ {...otherDivProps}
40
+ >
28
41
  {children}
29
42
  </div>
30
43
  </OverlaysProvider>
@@ -4,8 +4,12 @@ import { SideNav as CarbonSideNav, SideNavProps as CarbonSideNavProps } from "@c
4
4
  import { CLASSPREFIX as eccgui } from "../../configuration/constants";
5
5
 
6
6
  export interface ApplicationSidebarNavigationProps
7
- extends Omit<CarbonSideNavProps, "ref" | "defaultExpanded" | "isPersistent" | "isFixedNav" | "isChildOfHeader">,
8
- React.HTMLAttributes<HTMLElement> {}
7
+ extends
8
+ Omit<CarbonSideNavProps, "ref" | "defaultExpanded" | "isPersistent" | "isFixedNav" | "isChildOfHeader">,
9
+ React.HTMLAttributes<HTMLElement> {
10
+ children: React.ReactNode;
11
+ className?: string;
12
+ }
9
13
 
10
14
  export const ApplicationSidebarNavigation = ({
11
15
  children,
@@ -60,7 +60,15 @@ export const ApplicationTitle = ({
60
60
  <span className={`${eccgui}-application__title--content`}>
61
61
  {!!depiction && (
62
62
  <>
63
- <span className={`${eccgui}-application__title--depiction`}>{depiction}</span>
63
+ <span className={`${eccgui}-application__title--depiction`}>
64
+ {React.isValidElement(depiction) ? (
65
+ depiction
66
+ ) : depiction instanceof HTMLElement ? (
67
+ <>{depiction.outerHTML}</>
68
+ ) : (
69
+ depiction
70
+ )}
71
+ </span>
64
72
  </>
65
73
  )}
66
74
  {!!prefix && (
@@ -7,7 +7,8 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
7
7
  // workaround to get type/interface
8
8
  type CarbonHeaderGlobalActionProps = React.ComponentProps<typeof CarbonHeaderGlobalAction>;
9
9
  export interface ApplicationToolbarActionProps
10
- extends CarbonHeaderGlobalActionProps,
10
+ extends
11
+ CarbonHeaderGlobalActionProps,
11
12
  Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick"> {}
12
13
 
13
14
  export const ApplicationToolbarAction = ({
@@ -1,9 +1,11 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
3
 
4
- :root {
5
- // creating css custom properties from palette colors
6
- @each $palette-group-name, $palette-group-tints in $eccgui-color-palette-light {
4
+ /**
5
+ * creating css custom properties from palette colors
6
+ */
7
+ @mixin eccgui-custom-property-palette($color-palette) {
8
+ @each $palette-group-name, $palette-group-tints in $color-palette {
7
9
  @each $palette-tint-name, $palette-tint-colors in $palette-group-tints {
8
10
  @for $i from 1 through list.length($palette-tint-colors) {
9
11
  $css-property-name: #{eccgui-color-name($palette-group-name, $palette-tint-name, ($i * 2 - 1) * 100)};
@@ -13,6 +15,16 @@
13
15
  }
14
16
  }
15
17
  }
18
+ }
19
+
20
+ :root {
21
+ // css custom properties for light palette
22
+ @include eccgui-custom-property-palette($eccgui-color-palette-light);
23
+
24
+ @media (prefers-color-scheme: dark) {
25
+ // css custom properties for dark palette
26
+ @include eccgui-custom-property-palette($eccgui-color-palette-dark);
27
+ }
16
28
 
17
29
  // set aliases for base colors
18
30
  --#{$eccgui}-color-primary: #{$eccgui-color-primary};
@@ -28,3 +40,15 @@
28
40
  --#{$eccgui}-color-danger-foreground: #{$eccgui-color-danger-text};
29
41
  --#{$eccgui}-color-danger-background: #{$eccgui-color-danger-background};
30
42
  }
43
+
44
+ .#{$eccgui}-palette--light,
45
+ html:has(.#{$eccgui}-application__container.#{$eccgui}-palette--light) {
46
+ // css custom properties for a forced light palette
47
+ @include eccgui-custom-property-palette($eccgui-color-palette-light);
48
+ }
49
+
50
+ .#{$eccgui}-palette--dark,
51
+ html:has(.#{$eccgui}-application__container.#{$eccgui}-palette--dark) {
52
+ // css custom properties for a forced dark palette
53
+ @include eccgui-custom-property-palette($eccgui-color-palette-dark);
54
+ }
@@ -0,0 +1,5 @@
1
+ html,
2
+ .#{$eccgui}-application__container {
3
+ color: $eccgui-color-workspace-text;
4
+ background-color: $eccgui-color-workspace-background;
5
+ }
@@ -52,19 +52,22 @@ $shell-header-icon-03: $eccgui-color-applicationheader-text !default;
52
52
  /// Item link
53
53
  $shell-header-link: $blue-60 !default;
54
54
 
55
+ /// Height
56
+ $shell-header-height: mini-units(8) !default;
57
+
55
58
  // load library sub component
56
59
  @import "~@carbon/react/scss/components/ui-shell/header/index";
57
60
 
58
61
  // tweak original layout
59
62
 
60
63
  .#{$prefix}--header {
61
- height: mini-units(8);
64
+ height: $shell-header-height;
62
65
  }
63
66
 
64
67
  .#{$prefix}--header__action,
65
68
  .#{$prefix}--header__action.#{$prefix}--btn--icon-only {
66
- width: mini-units(8);
67
- height: mini-units(8);
69
+ width: $shell-header-height;
70
+ height: $shell-header-height;
68
71
  padding-block-start: 0;
69
72
  background-color: transparent;
70
73
 
@@ -128,7 +131,7 @@ span.#{$prefix}--header__name {
128
131
  }
129
132
 
130
133
  .#{$prefix}--header__menu .#{$prefix}--header__menu-item {
131
- height: mini-units(8);
134
+ height: $shell-header-height;
132
135
  }
133
136
 
134
137
  // tweak original colors (as long as config does not work properly)
@@ -267,15 +270,15 @@ a.#{$prefix}--header__menu-item:focus > svg {
267
270
  // adjust position of all other modal dialogs
268
271
 
269
272
  .#{$ns}-dialog-container {
270
- top: mini-units(8);
271
- left: mini-units(8);
272
- width: calc(100% - #{mini-units(8)});
273
- min-height: calc(100% - #{mini-units(8)});
273
+ top: $shell-header-height;
274
+ left: $shell-header-height;
275
+ width: calc(100% - #{$shell-header-height});
276
+ min-height: calc(100% - #{$shell-header-height});
274
277
  }
275
278
 
276
279
  .#{$eccgui}-dialog__wrapper {
277
- max-width: calc(100vw - #{mini-units(8)} - #{2 * $eccgui-size-block-whitespace});
278
- max-height: calc(100vh - #{mini-units(8)} - #{2 * $eccgui-size-block-whitespace});
280
+ max-width: calc(100vw - #{$shell-header-height} - #{2 * $eccgui-size-block-whitespace});
281
+ max-height: calc(100vh - #{$shell-header-height} - #{2 * $eccgui-size-block-whitespace});
279
282
  margin: 0;
280
283
  }
281
284
  }
@@ -26,6 +26,8 @@ $ui-02: $eccgui-color-workspace-background !default;
26
26
 
27
27
  .#{$prefix}--side-nav__navigation {
28
28
  padding: $eccgui-size-block-whitespace calc(0.5 * (#{mini-units(8)} - 30px));
29
+ color: eccgui-color-var("identity", "text", "900");
30
+ background-color: eccgui-color-var("identity", "background", "100");
29
31
  transition: none;
30
32
  }
31
33
 
@@ -1,5 +1,6 @@
1
1
  // @import 'config';
2
2
  @import "colors";
3
+ @import "container";
3
4
  @import "header";
4
5
  @import "toolbar";
5
6
 
@@ -26,6 +26,7 @@ interface ApplicationBasicExampleProps {
26
26
  openUserMenu: boolean;
27
27
  countNotifications: number;
28
28
  colorBackgroundHeader?: string;
29
+ themeMode?: "light" | "dark" | "auto";
29
30
  }
30
31
 
31
32
  function ApplicationBasicExample(args: ApplicationBasicExampleProps) {
@@ -50,11 +51,15 @@ export default {
50
51
  colorBackgroundHeader: {
51
52
  control: { type: "color" },
52
53
  },
54
+ themeMode: {
55
+ control: "select",
56
+ options: ["auto", "light", "dark"],
57
+ },
53
58
  },
54
59
  } as Meta<typeof ApplicationBasicExample>;
55
60
 
56
61
  const TemplateBasicExample: StoryFn<typeof ApplicationBasicExample> = (args) => (
57
- <ApplicationContainer>
62
+ <ApplicationContainer themeMode={args.themeMode}>
58
63
  <ApplicationHeader
59
64
  aria-label={"Application"}
60
65
  style={
@@ -147,3 +152,10 @@ BasicExample.args = {
147
152
  openUserMenu: false,
148
153
  countNotifications: 234,
149
154
  };
155
+ BasicExample.decorators = [
156
+ (Story) => (
157
+ <div style={{ margin: "calc(-1 * var(--eccgui-size-block-whitespace) - 8px)" }}>
158
+ <Story />
159
+ </div>
160
+ ),
161
+ ];