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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/README.md +7 -0
  3. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  4. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
  5. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  6. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -7
  7. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  8. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js +200 -0
  9. package/dist/cjs/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
  10. package/dist/cjs/common/Intent/index.js +7 -3
  11. package/dist/cjs/common/Intent/index.js.map +1 -1
  12. package/dist/cjs/common/utils/characters.js +82 -0
  13. package/dist/cjs/common/utils/characters.js.map +1 -0
  14. package/dist/cjs/components/Application/ApplicationTitle.js +2 -2
  15. package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
  16. package/dist/cjs/components/Badge/Badge.js +44 -0
  17. package/dist/cjs/components/Badge/Badge.js.map +1 -0
  18. package/dist/cjs/components/Depiction/Depiction.js +111 -0
  19. package/dist/cjs/components/Depiction/Depiction.js.map +1 -0
  20. package/dist/cjs/components/Grid/Grid.js +7 -2
  21. package/dist/cjs/components/Grid/Grid.js.map +1 -1
  22. package/dist/cjs/components/Grid/GridColumn.js +6 -2
  23. package/dist/cjs/components/Grid/GridColumn.js.map +1 -1
  24. package/dist/cjs/components/Grid/GridRow.js +3 -0
  25. package/dist/cjs/components/Grid/GridRow.js.map +1 -1
  26. package/dist/cjs/components/Icon/BaseIcon.js +38 -0
  27. package/dist/cjs/components/Icon/BaseIcon.js.map +1 -0
  28. package/dist/cjs/components/Icon/Icon.js +9 -24
  29. package/dist/cjs/components/Icon/Icon.js.map +1 -1
  30. package/dist/cjs/components/Icon/IconButton.js +8 -1
  31. package/dist/cjs/components/Icon/IconButton.js.map +1 -1
  32. package/dist/cjs/components/Icon/TestIcon.js +35 -0
  33. package/dist/cjs/components/Icon/TestIcon.js.map +1 -0
  34. package/dist/cjs/components/Icon/canonicalIconNames.js +123 -621
  35. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  36. package/dist/cjs/components/Icon/index.js +11 -0
  37. package/dist/cjs/components/Icon/index.js.map +1 -0
  38. package/dist/cjs/components/Menu/MenuItem.js +1 -1
  39. package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
  40. package/dist/cjs/components/MultiSelect/MultiSelect.js +56 -23
  41. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  42. package/dist/cjs/components/Notification/Notification.js +10 -2
  43. package/dist/cjs/components/Notification/Notification.js.map +1 -1
  44. package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js +24 -0
  45. package/dist/cjs/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  46. package/dist/cjs/components/Tag/Tag.js +6 -2
  47. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  48. package/dist/cjs/components/TextField/TextArea.js +4 -2
  49. package/dist/cjs/components/TextField/TextArea.js.map +1 -1
  50. package/dist/cjs/components/TextField/TextField.js +4 -2
  51. package/dist/cjs/components/TextField/TextField.js.map +1 -1
  52. package/dist/cjs/components/TextField/useTextValidation.js +84 -0
  53. package/dist/cjs/components/TextField/useTextValidation.js.map +1 -0
  54. package/dist/cjs/components/Tree/Tree.js.map +1 -1
  55. package/dist/cjs/components/Typography/Highlighter.js.map +1 -1
  56. package/dist/cjs/components/Typography/OverflowText.js.map +1 -1
  57. package/dist/cjs/components/Typography/WhiteSpaceContainer.js +35 -12
  58. package/dist/cjs/components/Typography/WhiteSpaceContainer.js.map +1 -1
  59. package/dist/cjs/components/Typography/index.js +21 -0
  60. package/dist/cjs/components/Typography/index.js.map +1 -0
  61. package/dist/cjs/components/Workspace/WorkspaceContent.js +1 -1
  62. package/dist/cjs/components/Workspace/WorkspaceContent.js.map +1 -1
  63. package/dist/cjs/components/index.js +18 -0
  64. package/dist/cjs/components/index.js.map +1 -0
  65. package/dist/cjs/index.js +7 -17
  66. package/dist/cjs/index.js.map +1 -1
  67. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  68. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +7 -2
  69. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  70. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -6
  71. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
  72. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js +194 -0
  73. package/dist/esm/cmem/react-flow/extensions/scrollOnDragHook.js.map +1 -0
  74. package/dist/esm/common/Intent/index.js +5 -13
  75. package/dist/esm/common/Intent/index.js.map +1 -1
  76. package/dist/esm/common/utils/characters.js +96 -0
  77. package/dist/esm/common/utils/characters.js.map +1 -0
  78. package/dist/esm/components/Application/ApplicationTitle.js +2 -2
  79. package/dist/esm/components/Application/ApplicationTitle.js.map +1 -1
  80. package/dist/esm/components/Badge/Badge.js +48 -0
  81. package/dist/esm/components/Badge/Badge.js.map +1 -0
  82. package/dist/esm/components/Depiction/Depiction.js +96 -0
  83. package/dist/esm/components/Depiction/Depiction.js.map +1 -0
  84. package/dist/esm/components/Grid/Grid.js +7 -2
  85. package/dist/esm/components/Grid/Grid.js.map +1 -1
  86. package/dist/esm/components/Grid/GridColumn.js +6 -2
  87. package/dist/esm/components/Grid/GridColumn.js.map +1 -1
  88. package/dist/esm/components/Grid/GridRow.js +3 -0
  89. package/dist/esm/components/Grid/GridRow.js.map +1 -1
  90. package/dist/esm/components/Icon/BaseIcon.js +44 -0
  91. package/dist/esm/components/Icon/BaseIcon.js.map +1 -0
  92. package/dist/esm/components/Icon/Icon.js +9 -24
  93. package/dist/esm/components/Icon/Icon.js.map +1 -1
  94. package/dist/esm/components/Icon/IconButton.js +8 -1
  95. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  96. package/dist/esm/components/Icon/TestIcon.js +41 -0
  97. package/dist/esm/components/Icon/TestIcon.js.map +1 -0
  98. package/dist/esm/components/Icon/canonicalIconNames.js +123 -621
  99. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  100. package/dist/esm/components/Icon/index.js +4 -0
  101. package/dist/esm/components/Icon/index.js.map +1 -0
  102. package/dist/esm/components/Menu/MenuItem.js +1 -1
  103. package/dist/esm/components/Menu/MenuItem.js.map +1 -1
  104. package/dist/esm/components/MultiSelect/MultiSelect.js +61 -44
  105. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  106. package/dist/esm/components/Notification/Notification.js +12 -4
  107. package/dist/esm/components/Notification/Notification.js.map +1 -1
  108. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js +24 -0
  109. package/dist/esm/components/OverviewItem/OverviewItemDepiction.js.map +1 -1
  110. package/dist/esm/components/Tag/Tag.js +6 -2
  111. package/dist/esm/components/Tag/Tag.js.map +1 -1
  112. package/dist/esm/components/TextField/TextArea.js +4 -2
  113. package/dist/esm/components/TextField/TextArea.js.map +1 -1
  114. package/dist/esm/components/TextField/TextField.js +4 -2
  115. package/dist/esm/components/TextField/TextField.js.map +1 -1
  116. package/dist/esm/components/TextField/useTextValidation.js +78 -0
  117. package/dist/esm/components/TextField/useTextValidation.js.map +1 -0
  118. package/dist/esm/components/Tree/Tree.js.map +1 -1
  119. package/dist/esm/components/Typography/Highlighter.js.map +1 -1
  120. package/dist/esm/components/Typography/OverflowText.js.map +1 -1
  121. package/dist/esm/components/Typography/WhiteSpaceContainer.js +16 -14
  122. package/dist/esm/components/Typography/WhiteSpaceContainer.js.map +1 -1
  123. package/dist/esm/components/Typography/index.js +12 -0
  124. package/dist/esm/components/Typography/index.js.map +1 -0
  125. package/dist/esm/components/Workspace/WorkspaceContent.js +1 -1
  126. package/dist/esm/components/Workspace/WorkspaceContent.js.map +1 -1
  127. package/dist/esm/components/index.js +6 -0
  128. package/dist/esm/components/index.js.map +1 -0
  129. package/dist/esm/index.js +5 -10
  130. package/dist/esm/index.js.map +1 -1
  131. package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +2 -1
  132. package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
  133. package/dist/types/cmem/react-flow/extensions/scrollOnDragHook.d.ts +22 -0
  134. package/dist/types/common/Intent/index.d.ts +4 -3
  135. package/dist/types/common/utils/characters.d.ts +19 -0
  136. package/dist/types/components/Badge/Badge.d.ts +42 -0
  137. package/dist/types/components/Depiction/Depiction.d.ts +71 -0
  138. package/dist/types/components/Grid/Grid.d.ts +21 -2
  139. package/dist/types/components/Grid/GridColumn.d.ts +20 -2
  140. package/dist/types/components/Grid/GridRow.d.ts +17 -1
  141. package/dist/types/components/Icon/BaseIcon.d.ts +45 -0
  142. package/dist/types/components/Icon/Icon.d.ts +7 -34
  143. package/dist/types/components/Icon/IconButton.d.ts +3 -2
  144. package/dist/types/components/Icon/TestIcon.d.ts +20 -0
  145. package/dist/types/components/Icon/canonicalIconNames.d.ts +9 -7
  146. package/dist/types/components/Icon/index.d.ts +4 -0
  147. package/dist/types/components/Menu/MenuItem.d.ts +2 -1
  148. package/dist/types/components/MultiSelect/MultiSelect.d.ts +3 -1
  149. package/dist/types/components/Notification/Notification.d.ts +13 -4
  150. package/dist/types/components/Tabs/Tab.d.ts +2 -0
  151. package/dist/types/components/Tag/Tag.d.ts +16 -3
  152. package/dist/types/components/TextField/TextArea.d.ts +7 -2
  153. package/dist/types/components/TextField/TextField.d.ts +6 -1
  154. package/dist/types/components/TextField/useTextValidation.d.ts +28 -0
  155. package/dist/types/components/Tree/Tree.d.ts +2 -1
  156. package/dist/types/components/Typography/Highlighter.d.ts +2 -2
  157. package/dist/types/components/Typography/OverflowText.d.ts +2 -2
  158. package/dist/types/components/Typography/WhiteSpaceContainer.d.ts +45 -4
  159. package/dist/types/components/Typography/index.d.ts +12 -0
  160. package/dist/types/components/index.d.ts +5 -0
  161. package/dist/types/index.d.ts +6 -11
  162. package/package.json +13 -16
  163. package/scripts/compile-sass.ts +9 -1
  164. package/src/_shame.scss +1 -1
  165. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +6 -4
  166. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +3 -2
  167. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +26 -1
  168. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +10 -6
  169. package/src/cmem/react-flow/extensions/scrollOnDragHook.ts +247 -0
  170. package/src/common/Intent/index.ts +16 -12
  171. package/src/common/utils/characters.ts +111 -0
  172. package/src/components/Accordion/accordion.scss +4 -3
  173. package/src/components/Application/ApplicationTitle.tsx +2 -2
  174. package/src/components/Application/_config.scss +1 -1
  175. package/src/components/Application/_content.scss +1 -1
  176. package/src/components/Application/_header.scss +2 -2
  177. package/src/components/Application/_sidebar.scss +2 -9
  178. package/src/components/Application/_toolbar.scss +1 -1
  179. package/src/components/Application/application.scss +4 -4
  180. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +13 -8
  181. package/src/components/Badge/Badge.stories.tsx +47 -0
  182. package/src/components/Badge/Badge.tsx +93 -0
  183. package/src/components/Badge/badge.scss +44 -0
  184. package/src/components/Depiction/Depiction.tsx +198 -0
  185. package/src/components/Depiction/depiction.scss +176 -0
  186. package/src/components/Depiction/stories/Depiction.stories.tsx +69 -0
  187. package/src/components/Depiction/stories/test-16to9.png +0 -0
  188. package/src/components/Depiction/stories/test-16to9.svg +41 -0
  189. package/src/components/Depiction/stories/test-16to9.tobase64.svg +41 -0
  190. package/src/components/Depiction/stories/test-16to9.tsx +44 -0
  191. package/src/components/Depiction/stories/test-9to16.png +0 -0
  192. package/src/components/Depiction/stories/test-9to16.svg +44 -0
  193. package/src/components/Depiction/stories/test-9to16.tobase64.svg +44 -0
  194. package/src/components/Depiction/stories/test-9to16.tsx +48 -0
  195. package/src/components/Grid/Grid.tsx +22 -4
  196. package/src/components/Grid/GridColumn.tsx +23 -6
  197. package/src/components/Grid/GridRow.tsx +17 -2
  198. package/src/components/Grid/grid.scss +8 -11
  199. package/src/components/Grid/stories/Grid.stories.tsx +27 -0
  200. package/src/components/Grid/stories/GridColumn.stories.tsx +66 -0
  201. package/src/components/Grid/stories/GridRow.stories.tsx +47 -0
  202. package/src/components/Icon/BaseIcon.tsx +84 -0
  203. package/src/components/Icon/Icon.tsx +23 -82
  204. package/src/components/Icon/IconButton.tsx +18 -14
  205. package/src/components/Icon/TestIcon.tsx +39 -0
  206. package/src/components/Icon/canonicalIconNames.tsx +132 -633
  207. package/src/components/Icon/index.ts +5 -0
  208. package/src/components/Icon/stories/Icon.stories.tsx +13 -0
  209. package/src/components/Icon/stories/IconButton.stories.tsx +14 -7
  210. package/src/components/Icon/stories/TestIcon.stories.tsx +28 -0
  211. package/src/components/Link/link.scss +2 -1
  212. package/src/components/Menu/MenuItem.tsx +14 -4
  213. package/src/components/Menu/Stories/MenuItem.stories.tsx +16 -2
  214. package/src/components/MultiSelect/MultiSelect.tsx +58 -27
  215. package/src/components/Notification/Notification.stories.tsx +4 -0
  216. package/src/components/Notification/Notification.tsx +26 -6
  217. package/src/components/OverviewItem/OverviewItemDepiction.tsx +31 -0
  218. package/src/components/OverviewItem/overviewitem.scss +2 -1
  219. package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +22 -1
  220. package/src/components/OverviewItem/stories/OverviewItemDepiction.stories.tsx +8 -3
  221. package/src/components/Pagination/pagination.scss +3 -2
  222. package/src/components/SimpleTable/simpletable.scss +11 -12
  223. package/src/components/Tag/Tag.stories.tsx +7 -2
  224. package/src/components/Tag/Tag.tsx +24 -4
  225. package/src/components/Tag/tag.scss +84 -3
  226. package/src/components/TagInput/taginput.scss +6 -0
  227. package/src/components/TextField/TextArea.tsx +10 -1
  228. package/src/components/TextField/TextField.tsx +9 -0
  229. package/src/components/TextField/stories/SearchField.stories.tsx +1 -1
  230. package/src/components/TextField/textfield.scss +12 -0
  231. package/src/components/TextField/useTextValidation.ts +103 -0
  232. package/src/components/Tooltip/tooltip.scss +1 -1
  233. package/src/components/Tree/Tree.stories.tsx +7 -1
  234. package/src/components/Tree/Tree.tsx +2 -1
  235. package/src/components/Typography/Highlighter.tsx +2 -2
  236. package/src/components/Typography/OverflowText.tsx +2 -2
  237. package/src/components/Typography/WhiteSpaceContainer.tsx +69 -21
  238. package/src/components/Typography/index.ts +25 -0
  239. package/src/components/Typography/stories/WhiteSpaceContainer.stories.tsx +55 -0
  240. package/src/components/Typography/typography.scss +3 -2
  241. package/src/components/Workspace/WorkspaceContent.tsx +1 -1
  242. package/src/components/index.scss +5 -0
  243. package/src/components/index.ts +5 -0
  244. package/src/includes/carbon-components/_components.scss +11 -0
  245. package/src/includes/carbon-components/_requisits.scss +18 -0
  246. package/src/includes/carbon-components/_variables.scss +50 -53
  247. package/src/index.scss +4 -105
  248. package/src/index.ts +6 -16
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.js","sourceRoot":"","sources":["../../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACH,IAAI,IAAI,aAAa,EAErB,QAAQ,IAAI,iBAAiB,GAEhC,MAAM,mBAAmB,CAAC;AAkC3B;IAAsC,4BAAmC;IAAzE;;IACA,CAAC;IAAD,eAAC;AAAD,CAAC,AADD,CAAsC,iBAAiB,GACtD;;AACD;IAA4C,kCAAiC;IAA7E;;IAEA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,KAAK,CAAC,SAAS,GAE1D;;AAWD;;;;GAIG;AACH,MAAM,CAAC,IAAM,IAAI,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"Tree.js","sourceRoot":"","sources":["../../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACH,IAAI,IAAI,aAAa,EAErB,QAAQ,IAAI,iBAAiB,GAEhC,MAAM,mBAAmB,CAAC;AAmC3B;IAAsC,4BAAmC;IAAzE;;IACA,CAAC;IAAD,eAAC;AAAD,CAAC,AADD,CAAsC,iBAAiB,GACtD;;AACD;IAA4C,kCAAiC;IAA7E;;IAEA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAFD,CAA4C,KAAK,CAAC,SAAS,GAE1D;;AAWD;;;;GAIG;AACH,MAAM,CAAC,IAAM,IAAI,GAAG,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Highlighter.js","sourceRoot":"","sources":["../../../../src/components/Typography/Highlighter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;GAIG;AACH,SAAS,WAAW,CAAC,EAAyC;QAAvC,KAAK,WAAA,EAAE,WAAW,iBAAA;IACrC,OAAO,0CAAG,kBAAkB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAI,CAAC;AACzD,CAAC;AAED,IAAM,kBAAkB,GAAG,UAAC,KAAc,EAAE,WAAoB;IAC5D,IAAI,CAAC,WAAW,IAAI,CAAC,KAAK,EAAE;QACxB,OAAO,KAAK,CAAC;KAChB;IAED,IAAM,iBAAiB,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC1D,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KAChB;IACD,IAAM,cAAc,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC/D,IAAM,MAAM,GAAU,EAAE,CAAC;IAEzB,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,2EAA2E;IAC3E,IAAI,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC,K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AAkB,CAAC,CAAC;IAE9C,OAAO,CACH,oBAAC,mBAAmB,CAAC,IAAI,eACjB,UAAU,IACd,SAAS,EACF,MAAM,8BAA2B;YACpC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YAClC,CAAC,QAAQ,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,MAAM,CAAC;gBACxD,CAAC,CAAC,MAAI,MAAM,yCAAsC,GAAG,QAAQ;gBAC7D,CAAC,CAAC,EAAE,CAAC;YACT,CAAC,MAAM,CAAC,CAAC,CAAC,MAAI,MAAM,sCAAmC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7D,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAI,MAAM,wCAAqC,CAAC,CAAC,CAAC,EAAE,CAAC,KAGpE,QAAQ,CACc,CAC9B,CAAC;AACN,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -22,23 +22,25 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from "react";
24
24
  import { CLASSPREFIX as eccgui } from "../../configuration/constants.js";
25
+ import * as TypographyClassNames from "./classnames.js";
26
+ /**
27
+ * Simple container to add whitespace inside and around of it without adding style attributes directly.
28
+ * This way the added whitespace keeps visually connected to the other whitespaces used in the application.
29
+ */
25
30
  function WhiteSpaceContainer(_a) {
26
- var _b = _a.className, className = _b === void 0 ? "" : _b, children = _a.children, _c = _a.marginTop, marginTop = _c === void 0 ? "" : _c, // tiny, small, regular, large, xlarge
27
- _d = _a.marginRight, // tiny, small, regular, large, xlarge
28
- marginRight = _d === void 0 ? "" : _d, _e = _a.marginBottom, marginBottom = _e === void 0 ? "" : _e, _f = _a.marginLeft, marginLeft = _f === void 0 ? "" : _f, _g = _a.paddingTop, paddingTop = _g === void 0 ? "" : _g, // tiny, small, regular, large, xlarge
29
- _h = _a.paddingRight, // tiny, small, regular, large, xlarge
30
- paddingRight = _h === void 0 ? "" : _h, _j = _a.paddingBottom, paddingBottom = _j === void 0 ? "" : _j, _k = _a.paddingLeft, paddingLeft = _k === void 0 ? "" : _k, otherProps = __rest(_a, ["className", "children", "marginTop", "marginRight", "marginBottom", "marginLeft", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft"]);
31
+ var className = _a.className, children = _a.children, marginTop = _a.marginTop, marginRight = _a.marginRight, marginBottom = _a.marginBottom, marginLeft = _a.marginLeft, paddingTop = _a.paddingTop, paddingRight = _a.paddingRight, paddingBottom = _a.paddingBottom, paddingLeft = _a.paddingLeft, _b = _a.linebreakForced, linebreakForced = _b === void 0 ? false : _b, otherDivProps = __rest(_a, ["className", "children", "marginTop", "marginRight", "marginBottom", "marginLeft", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "linebreakForced"]);
31
32
  var elementClassName = eccgui + "-typography__whitespace";
32
33
  return (React.createElement("div", __assign({ className: elementClassName +
33
- (className ? " " + className : "") +
34
- (marginTop ? " " + elementClassName + "-margintop-" + marginTop : "") +
35
- (marginRight ? " " + elementClassName + "-marginright-" + marginRight : "") +
36
- (marginBottom ? " " + elementClassName + "-marginbottom-" + marginBottom : "") +
37
- (marginLeft ? " " + elementClassName + "-marginleft-" + marginLeft : "") +
38
- (paddingTop ? " " + elementClassName + "-paddingtop-" + paddingTop : "") +
39
- (paddingRight ? " " + elementClassName + "-paddingright-" + paddingRight : "") +
40
- (paddingBottom ? " " + elementClassName + "-paddingbottom-" + paddingBottom : "") +
41
- (paddingLeft ? " " + elementClassName + "-paddingleft-" + paddingLeft : "") }, otherProps), children));
34
+ (!!className ? " " + className : "") +
35
+ (!!marginTop ? " " + elementClassName + "-margintop-" + marginTop : "") +
36
+ (!!marginRight ? " " + elementClassName + "-marginright-" + marginRight : "") +
37
+ (!!marginBottom ? " " + elementClassName + "-marginbottom-" + marginBottom : "") +
38
+ (!!marginLeft ? " " + elementClassName + "-marginleft-" + marginLeft : "") +
39
+ (!!paddingTop ? " " + elementClassName + "-paddingtop-" + paddingTop : "") +
40
+ (!!paddingRight ? " " + elementClassName + "-paddingright-" + paddingRight : "") +
41
+ (!!paddingBottom ? " " + elementClassName + "-paddingbottom-" + paddingBottom : "") +
42
+ (!!paddingLeft ? " " + elementClassName + "-paddingleft-" + paddingLeft : "") +
43
+ (linebreakForced ? " " + TypographyClassNames.FORCELINEBREAK : "") }, otherDivProps), children));
42
44
  }
43
45
  export default WhiteSpaceContainer;
44
46
  //# sourceMappingURL=WhiteSpaceContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WhiteSpaceContainer.js","sourceRoot":"","sources":["../../../../src/components/Typography/WhiteSpaceContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEtE,SAAS,mBAAmB,CAAC,EAYvB;IAXF,IAAA,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,QAAQ,cAAA,EACR,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAE,sCAAsC;IACtD,mBAAgB,EADA,sCAAsC;IACtD,WAAW,mBAAG,EAAE,KAAA,EAChB,oBAAiB,EAAjB,YAAY,mBAAG,EAAE,KAAA,EACjB,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EACf,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EAAE,sCAAsC;IACvD,oBAAiB,EADA,sCAAsC;IACvD,YAAY,mBAAG,EAAE,KAAA,EACjB,qBAAkB,EAAlB,aAAa,mBAAG,EAAE,KAAA,EAClB,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EACb,UAAU,cAXY,iJAY5B,CADgB;IAGb,IAAM,gBAAgB,GAAM,MAAM,4BAAyB,CAAC;IAE5D,OAAO,CACH,sCACI,SAAS,EACL,gBAAgB;YAChB,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG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B,WAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YACxE,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,IAElE,aAAa,GAEhB,QAAQ,CACP,CACT,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import Highlighter from "./Highlighter.js";
2
+ import { extractSearchWords, matchesAllWords, createMultiWordRegex } from "./Highlighter.js";
3
+ import HtmlContentBlock from "./HtmlContentBlock.js";
4
+ import OverflowText from "./OverflowText.js";
5
+ import WhiteSpaceContainer from "./WhiteSpaceContainer.js";
6
+ export { Highlighter, HtmlContentBlock, OverflowText, WhiteSpaceContainer, };
7
+ export var HighlighterFunctions = {
8
+ extractSearchWords: extractSearchWords,
9
+ matchesAllWords: matchesAllWords,
10
+ createMultiWordRegex: createMultiWordRegex,
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAiC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,gBAA2C,MAAM,oBAAoB,CAAC;AAC7E,OAAO,YAAmC,MAAM,gBAAgB,CAAC;AACjE,OAAO,mBAAiD,MAAM,uBAAuB,CAAC;AAStF,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GACtB,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAG;IAChC,kBAAkB,oBAAA;IAClB,eAAe,iBAAA;IACf,oBAAoB,sBAAA;CACvB,CAAC"}
@@ -28,7 +28,7 @@ import GridRow from "./../Grid/GridRow.js";
28
28
  function WorkspaceContent(_a) {
29
29
  var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, restProps = __rest(_a, ["children", "className"]);
30
30
  return (React.createElement(Grid, __assign({}, restProps, { as: 'article', className: eccgui + "-workspace__content " + className, fullWidth: true }),
31
- React.createElement(GridRow, null, children)));
31
+ React.createElement(GridRow, { dontWrapColumns: false }, children)));
32
32
  }
33
33
  export default WorkspaceContent;
34
34
  //# sourceMappingURL=WorkspaceContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceContent.js","sourceRoot":"","sources":["../../../../src/components/Workspace/WorkspaceContent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,SAAS,gBAAgB,CAAC,EAA+C;IAA7C,IAAA,QAAQ,cAAA,EAAE,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAK,SAAS,cAAxC,yBAA0C,CAAF;IAC9D,OAAO,CACH,oBAAC,IAAI,eACG,SAAS,IACb,EAAE,EAAE,SAAS,EACb,SAAS,EAAK,MAAM,yBAAsB,GAAG,SAAS,EACtD,SAAS,EAAE,IAAI;QAEf,oBAAC,OAAO,QACF,QAAQ,CACJ,CACP,CACV,CAAA;AACL,CAAC;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"WorkspaceContent.js","sourceRoot":"","sources":["../../../../src/components/Workspace/WorkspaceContent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAExC,SAAS,gBAAgB,CAAC,EAA+C;IAA7C,IAAA,QAAQ,cAAA,EAAE,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAK,SAAS,cAAxC,yBAA0C,CAAF;IAC9D,OAAO,CACH,oBAAC,IAAI,eACG,SAAS,IACb,EAAE,EAAE,SAAS,EACb,SAAS,EAAK,MAAM,yBAAsB,GAAG,SAAS,EACtD,SAAS,EAAE,IAAI;QAEf,oBAAC,OAAO,IAAC,eAAe,EAAE,KAAK,IACzB,QAAQ,CACJ,CACP,CACV,CAAA;AACL,CAAC;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./Badge/Badge.js";
2
+ export * from "./Depiction/Depiction.js";
3
+ export * from "./Icon/index.js";
4
+ export * from "./Tree/Tree.js";
5
+ export * from "./Typography/index.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/dist/esm/index.js CHANGED
@@ -11,10 +11,6 @@ import ApplicationToolbarPanel from "./components/Application/ApplicationToolbar
11
11
  import AutoSuggestion from "./components/AutoSuggestion/AutoSuggestion.js";
12
12
  import { AutoSuggestionList } from "./components/AutoSuggestion/AutoSuggestionList.js";
13
13
  import SingleLineCodeEditor from "./components/AutoSuggestion/SingleLineCodeEditor.js";
14
- import HtmlContentBlock from "./components/Typography/HtmlContentBlock.js";
15
- import OverflowText from "./components/Typography/OverflowText.js";
16
- import WhiteSpaceContainer from "./components/Typography/WhiteSpaceContainer.js";
17
- import Highlighter from "./components/Typography/Highlighter.js";
18
14
  import Grid from "./components/Grid/Grid.js";
19
15
  import GridRow from "./components/Grid/GridRow.js";
20
16
  import GridColumn from "./components/Grid/GridColumn.js";
@@ -23,7 +19,6 @@ import WorkspaceContent from "./components/Workspace/WorkspaceContent.js";
23
19
  import WorkspaceMain from "./components/Workspace/WorkspaceMain.js";
24
20
  import WorkspaceSide from "./components/Workspace/WorkspaceSide.js";
25
21
  import WorkspaceHeader from "./components/Workspace/WorkspaceHeader.js";
26
- import Icon from "./components/Icon/Icon.js";
27
22
  import IconButton from "./components/Icon/IconButton.js";
28
23
  import Label from "./components/Label/Label.js";
29
24
  import Button from "./components/Button/Button.js";
@@ -80,10 +75,10 @@ import Link from "./components/Link/Link.js";
80
75
  import Spinner from "./components/Spinner/Spinner.js";
81
76
  import InteractionGate from "./components/InteractionGate/InteractionGate.js";
82
77
  import { PropertyName, PropertyValue, PropertyValuePair, PropertyValueList } from "./components/PropertyValuePair/index.js";
83
- import * as TypographyClassNames from "./components/Typography/classnames.js";
84
78
  import { ProgressBar } from "./components/ProgressBar/ProgressBar.js";
85
79
  import List from "./components/List/List.js";
86
80
  import * as LegacyReplacements from "./legacy-replacements/index.js";
81
+ import * as TypographyClassNames from "./components/Typography/classnames.js";
87
82
  import { ClassNames as IntentClassNames } from "./common/Intent/index.js";
88
83
  import { openInNewTab } from "./common/utils/openInNewTab.js";
89
84
  import decideContrastColorValue from "./common/utils/colorDecideContrastvalue.js";
@@ -95,9 +90,9 @@ var Utilities = {
95
90
  openInNewTab: openInNewTab,
96
91
  decideContrastColorValue: decideContrastColorValue
97
92
  };
98
- export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TabPanel, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, HoverToggler, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, InteractionGate, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
99
- export * from "./components/Tree/Tree.js";
100
- export * from "./cmem/index.js";
101
- export * from "./extensions/index.js";
93
+ export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TabPanel, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, HoverToggler, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, InteractionGate, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
94
+ export * from "./components/index.js";
102
95
  export * from "./components/interfaces.js";
96
+ export * from "./extensions/index.js";
97
+ export * from "./cmem/index.js";
103
98
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AACjG,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,wBAAwB,MAAM,mDAAmD,CAAC;AACzF,OAAO,uBAAuB,MAAM,kDAAkD,CAAC;AACvF,OAAO,cAAc,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,oBAAoB,MAAM,kDAAkD,CAAC;AAEpF,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,mBAAmB,MAAM,6CAA6C,CAAC;AAC9E,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAE9D,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAAC,Y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AuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,MAAM,EACN,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,GAAG,EACH,OAAO,EACP,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,eAAe,EACf,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,kBAAkB,GACrB,CAAC;AAEF,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AACjG,OAAO,yBAAyB,MAAM,oDAA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BAAkB,GACrB,CAAC;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
@@ -4,6 +4,7 @@ import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar";
4
4
  import { SpinnerProps } from "../../components/Spinner/Spinner";
5
5
  import { ValidIconName } from "../../components/Icon/canonicalIconNames";
6
6
  import { IconProps } from "../../components/Icon/Icon";
7
+ import { TestIconProps } from "../../components/Icon/TestIcon";
7
8
  export interface IActivityControlProps extends TestableComponent {
8
9
  /**
9
10
  * The label to be shown
@@ -57,7 +58,7 @@ export interface IActivityControlProps extends TestableComponent {
57
58
  /**
58
59
  * if this is set the spinner is replaced when the progress has finished from 0 - 1
59
60
  */
60
- progressSpinnerFinishedIcon?: React.ReactElement<IconProps>;
61
+ progressSpinnerFinishedIcon?: React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
61
62
  }
62
63
  interface IActivityContextMenu extends TestableComponent {
63
64
  tooltip?: string;
@@ -5,6 +5,20 @@ export interface ReactFlowProps extends ReactFlowOriginalProps {
5
5
  * Load `ReactFlow` component with pre-configured values for `nodeTypes` and `edgeTypes`
6
6
  */
7
7
  configuration?: "unspecified" | "graph" | "workflow" | "linking";
8
+ /** If defined the canvas scrolls on all drag operations (node, selection, edge connect)
9
+ * when the mouse pointer comes near the canvas borders or goes beyond them.
10
+ * The `id` property of the ReactFlow component must be set in order for this to work.
11
+ *
12
+ * NOTE: If scrollOnDrag is defined, a ReactFlowProvider must be wrapped around this component (or a parent). */
13
+ scrollOnDrag?: {
14
+ /** Time in milliseconds to wait before the canvas scrolls the next step. */
15
+ scrollInterval: number;
16
+ /**
17
+ * The size of each scroll step.
18
+ * This should be a number between 0.0 - 1.0.
19
+ * E.g. a value of 0.25 will lead to a scroll step size of a quarter of the visible canvas. */
20
+ scrollStepSize: number;
21
+ };
8
22
  }
9
23
  /**
10
24
  * `ReactFlow` container extension that includes pre-configured nodes and edges for
@@ -0,0 +1,22 @@
1
+ import { ReactFlowProps } from "../ReactFlow/ReactFlow";
2
+ interface IProps {
3
+ /** The original react-flow props. */
4
+ reactFlowProps: ReactFlowProps;
5
+ /** If defined the canvas scrolls on all drag operations (node, selection, edge connect)
6
+ * when the mouse pointer comes near the canvas borders or goes beyond them.
7
+ * The `id` property of the ReactFlow component must be set in order for this to work. */
8
+ scrollOnDrag?: {
9
+ /** Time in milliseconds to wait before the canvas scrolls the next step. */
10
+ scrollInterval: number;
11
+ /**
12
+ * The size of each scroll step.
13
+ * This should be a number between 0.0 - 1.0.
14
+ * E.g. a value of 0.25 will lead to a scroll step size of a quarter of the visible canvas. */
15
+ scrollStepSize: number;
16
+ };
17
+ }
18
+ declare type ReturnType = Pick<ReactFlowProps, "onLoad" | "onNodeDragStart" | "onNodeDragStop" | "onConnectStart" | "onConnectStop" | "onSelectionDragStart" | "onSelectionDragStop" | "onEdgeUpdateStart" | "onEdgeUpdateEnd">;
19
+ /** Handles the scrolling of the react-flow canvas on all drag operations when the mouse pointer gets near or over the borders.
20
+ * The return value contains the wrapped react-flow callback functions that need to be handed over to the react-flow component. */
21
+ export declare const useReactFlowScrollOnDrag: ({ reactFlowProps, scrollOnDrag }: IProps) => ReturnType;
22
+ export {};
@@ -1,7 +1,8 @@
1
+ export declare type IntentTypes = "neutral" | "primary" | "accent" | "info" | "success" | "warning" | "danger";
1
2
  export declare const Definitions: {
2
- [key: string]: string;
3
+ [key: string]: IntentTypes;
3
4
  };
5
+ export declare const intentClassName: (intent: IntentTypes) => string;
4
6
  export declare const ClassNames: {
5
- [x: string]: string;
7
+ [key: string]: string;
6
8
  };
7
- export declare type IntentTypes = typeof Definitions[keyof typeof Definitions];
@@ -0,0 +1,19 @@
1
+ declare type InvisibleCharacter = {
2
+ /** Code point. */
3
+ codePoint: number;
4
+ /** Human readable label for code point. */
5
+ label: string;
6
+ /** The hex representation of the code point, e.g. "200B" */
7
+ hexString: string;
8
+ /** The label plus the hex value. */
9
+ fullLabel: string;
10
+ };
11
+ declare const moduleObject: {
12
+ invisibleZeroWidthCharacters: {
13
+ codePoints: InvisibleCharacter[];
14
+ codePointMap: Map<number, InvisibleCharacter>;
15
+ createRegex: () => RegExp;
16
+ clearString: (inputString: string) => string;
17
+ };
18
+ };
19
+ export default moduleObject;
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { TagProps } from "../Tag/Tag";
3
+ import { IconProps } from "../Icon/Icon";
4
+ import { TestIconProps } from "../Icon/TestIcon";
5
+ import { IntentTypes } from "../../common/Intent";
6
+ export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
7
+ /**
8
+ * The badge only accepts numbers, text and ions as valid content.
9
+ */
10
+ children: string | number | React.ReactElement<IconProps> | React.ReactElement<TestIconProps>;
11
+ /**
12
+ * Position relative to the parent element where the badge is displayed.
13
+ * `top-right` and `bottom-right` relate to the closest parent element that uses a `relative` or similar positioning.
14
+ */
15
+ position?: "inline" | "top-right" | "bottom-right";
16
+ /**
17
+ * Size of the badge.
18
+ */
19
+ size?: "small" | "medium" | "large";
20
+ /**
21
+ * Maximum characters used by the badge.
22
+ * Text will be ellipsed, a number is displayed for example a 99+.
23
+ * `maxLength` need to be at least 2, otherwise it's ignored.
24
+ * For text it is only a raw measurement, not always an exact character count.
25
+ */
26
+ maxLength?: number;
27
+ /**
28
+ * Meaning of the badge.
29
+ */
30
+ intent?: IntentTypes;
31
+ /**
32
+ * Internally the `<Tag/>` element is used for the badge.
33
+ * Forward other options to the tag.
34
+ * This may overwrite properties set by the badge, use it with care.
35
+ */
36
+ tagProps?: TagProps;
37
+ }
38
+ /**
39
+ * Display a badge element to add more context to another element.
40
+ * It can display icons, text and numbers.
41
+ */
42
+ export declare function Badge({ children, className, position, size, maxLength, intent, tagProps, ...spanProps }: BadgeProps): JSX.Element;
@@ -0,0 +1,71 @@
1
+ import React from "react";
2
+ import Color from "color";
3
+ import { BadgeProps } from "../Badge/Badge";
4
+ import { IconProps } from "../Icon/Icon";
5
+ import { TestIconProps } from "../Icon/TestIcon";
6
+ import { TooltipProps } from "../Tooltip/Tooltip";
7
+ export interface DepictionProps extends React.HTMLAttributes<HTMLElement> {
8
+ /**
9
+ * Image that should be used as depiction.
10
+ */
11
+ image: React.ReactElement<IconProps | TestIconProps | React.ImgHTMLAttributes<HTMLImageElement> | React.SVGProps<SVGSVGElement>>;
12
+ /**
13
+ * In case you use an SVG encoded as a data URL in the `<img />` element, then it is transformed to a inline SVG inside the DOM tree.
14
+ * Should be work with Base64 and URL encoded data URIs.
15
+ */
16
+ forceInlineSvg?: boolean;
17
+ /**
18
+ * Sets the height of the depiction, not the dimension (width x height).
19
+ */
20
+ size?: "tiny" | "small" | "medium" | "large" | "xlarge" | "source";
21
+ /**
22
+ * Resizing strategy for image to match the given ratio.
23
+ * * contain: image is fully visible in the depiction
24
+ * * cover: the image fully covers the depition area but it may displayed only partially
25
+ * * stretch: image is streched to fill the depiction area
26
+ */
27
+ resizing?: "contain" | "cover" | "stretch";
28
+ /**
29
+ * Aspect ration of the depiction.
30
+ */
31
+ ratio?: "1:1" | "source";
32
+ /**
33
+ * Use a fully rounded shape on the depiction edges.
34
+ * Combined with `ratio="1:1"` its displayed within a circular shape.
35
+ */
36
+ rounded?: boolean;
37
+ /**
38
+ * Color that is used for the depiction background.
39
+ * This may be important if you use PNG, SVG or other image types that can have transparent background areas.
40
+ */
41
+ backgroundColor?: Color | string | "light" | "dark";
42
+ /**
43
+ * The depiction is displayed with a border around it.
44
+ */
45
+ border?: boolean;
46
+ /**
47
+ * Add padding around the image inside the depiction.
48
+ * The amount of padding is defined relative to the depiction size, so a small padding on a small depiction is displayed smaller than a small padding on a large depiction.
49
+ */
50
+ padding?: "none" | "tiny" | "small" | "medium" | "large";
51
+ /**
52
+ * Description of the depiction.
53
+ */
54
+ caption?: string | JSX.Element;
55
+ /**
56
+ * How is the caption displayed.
57
+ */
58
+ captionPosition?: "none" | "tooltip";
59
+ /**
60
+ * In case of `captionPosition="tooltip"` this can be used to set the properties of the Tooltip element.
61
+ */
62
+ tooltipProps?: TooltipProps;
63
+ /**
64
+ * Attach a `<Badge />` element to the depiction.
65
+ */
66
+ badge?: React.ReactElement<BadgeProps>;
67
+ }
68
+ /**
69
+ * Display a graphical representation and attache a caption or a badge to it.
70
+ */
71
+ export declare function Depiction({ className, image, forceInlineSvg, size, resizing, ratio, caption, captionPosition, backgroundColor, border, rounded, padding, badge, tooltipProps, ...otherFigureProps }: DepictionProps): JSX.Element;
@@ -1,8 +1,27 @@
1
1
  /// <reference types="react" />
2
- import { GridDefaultProps } from "carbon-components-react/lib/components/Grid/Grid";
3
- interface GridProps extends GridDefaultProps {
2
+ import { GridDefaultProps } from "carbon-components-react";
3
+ interface GridProps extends Omit<GridDefaultProps, "fullWidth"> {
4
+ /**
5
+ * The available grid height can be distributed between multiple rows.
6
+ * To do so the `verticalStretched` property must be set for the `<GridRow />` element that need to be stretched.
7
+ * This property can be set for multiple rows, then they share the available vertical space regarding their content.
8
+ */
4
9
  verticalStretchable?: boolean;
10
+ /**
11
+ * Use the exact space defined by the parent element.
12
+ * This parent element must be displayed using a fixed, relative or absolute position.
13
+ */
5
14
  useAbsoluteSpace?: boolean;
15
+ /**
16
+ * @deprecated
17
+ * This is set always by default.
18
+ */
19
+ fullWidth?: boolean;
6
20
  }
21
+ /**
22
+ * Layouts a grid that can contain rows and columns.
23
+ * Grids can also be stacked into other grids for more complex layouts.
24
+ * A very complex level of stacked grids is a sign that something should be designed differently.
25
+ */
7
26
  declare function Grid({ children, verticalStretchable, useAbsoluteSpace, className, ...restProps }: GridProps): JSX.Element;
8
27
  export default Grid;
@@ -1,10 +1,28 @@
1
1
  /// <reference types="react" />
2
- import { ColumnDefaultProps } from "carbon-components-react/lib/components/Grid/Column";
2
+ import { ColumnDefaultProps } from "carbon-components-react";
3
3
  interface GridColumnProps extends ColumnDefaultProps {
4
+ /**
5
+ * Column width is small, using 3 (or 2, on medium viewports) parts out of 16.
6
+ * This boolean property is basically a quick switch for setting `{ md:2, lg:3 }`.
7
+ */
4
8
  small?: boolean;
9
+ /**
10
+ * Column width is medium, using 5 (or 3, on medium viewports) parts out of 16.
11
+ * This boolean property is basically a quick switch for setting `{ md:3, lg:5 }`.
12
+ */
5
13
  medium?: boolean;
14
+ /**
15
+ * Alignment of column content.
16
+ */
17
+ verticalAlign?: "top" | "center";
18
+ /**
19
+ * @deprecated
20
+ */
6
21
  full?: boolean;
7
- verticalAlign?: "center";
8
22
  }
23
+ /**
24
+ * Grid columns can be used in grid rows.
25
+ * They can contain other grids if this is necessary for more complex layouts.
26
+ */
9
27
  declare function GridColumn({ children, className, small, medium, full, verticalAlign, ...otherProps }: GridColumnProps): JSX.Element;
10
28
  export default GridColumn;
@@ -1,9 +1,25 @@
1
1
  /// <reference types="react" />
2
- import { RowDefaultProps } from "carbon-components-react/lib/components/Grid/Row";
2
+ import { RowDefaultProps } from "carbon-components-react";
3
3
  interface GridRowProps extends RowDefaultProps {
4
+ /**
5
+ * Do not wrap column children when there is not enough space available.
6
+ * This only works for grids on medium sized and larger viewports.
7
+ */
4
8
  dontWrapColumns?: boolean;
9
+ /**
10
+ * Row uses maximum height of the workview.
11
+ */
5
12
  fullHeight?: boolean;
13
+ /**
14
+ * When a row is vertically stretched then it uses the remaining spcae on the y-axis.
15
+ * Option can be used on multiple rows, then they share the available space.
16
+ * This makes only sense if the grid height is set by additional styles or properties.
17
+ * The grid must be set to `verticalStretchable=true`.
18
+ */
6
19
  verticalStretched?: boolean;
7
20
  }
21
+ /**
22
+ * Grid rows exists as children in a grid and can contain columns.
23
+ */
8
24
  declare function GridRow({ children, className, dontWrapColumns, fullHeight, verticalStretched, ...otherProps }: GridRowProps): JSX.Element;
9
25
  export default GridRow;
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ import { IconProps as CarbonIconProps } from "carbon-components-react";
3
+ import { IntentTypes } from "../../common/Intent";
4
+ import { TooltipProps } from "./../Tooltip/Tooltip";
5
+ import { CarbonIconType } from "./canonicalIconNames";
6
+ export interface BaseIconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
7
+ /**
8
+ * Carbon icon component that is used.
9
+ */
10
+ iconComponent: CarbonIconType;
11
+ /**
12
+ * Add tooltip text to icon
13
+ */
14
+ tooltipText?: string;
15
+ /**
16
+ * Intent state of icon.
17
+ * Currently only `success`, `info`, `warning` and `danger` are implemented for icons, even there are more states available.
18
+ */
19
+ intent?: IntentTypes;
20
+ /**
21
+ * Display large icon version.
22
+ */
23
+ large?: boolean;
24
+ /**
25
+ * Display small icon version.
26
+ */
27
+ small?: boolean;
28
+ /**
29
+ * Additional CSS classes.
30
+ */
31
+ className?: string;
32
+ /**
33
+ * Description for icon as accessibility fallback.
34
+ */
35
+ description?: string;
36
+ /**
37
+ * Additonal tooltip properties, e.g. `hoverOpenDelay`.
38
+ */
39
+ tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
40
+ }
41
+ /**
42
+ * The base icon provides the basic functionality that is necessary to wrap the Carbon icon component.
43
+ */
44
+ declare function BaseIcon({ iconComponent, className, large, small, tooltipText, tooltipProps, intent, description, ...restProps }: BaseIconProps): JSX.Element;
45
+ export default BaseIcon;
@@ -1,45 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { IconProps as CarbonIconProps } from "carbon-components-react";
3
- import { IntentTypes } from "../../common/Intent";
4
- import { TooltipProps } from "./../Tooltip/Tooltip";
2
+ import { BaseIconProps } from "./BaseIcon";
5
3
  import { ValidIconName } from "./canonicalIconNames";
6
- export interface IconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
4
+ export interface IconProps extends Omit<BaseIconProps, "iconComponent"> {
7
5
  /**
8
6
  * Canonical icon name, or an array of strings.
9
7
  * In case of the array the first valid icon name is used.
10
8
  */
11
9
  name: ValidIconName | string[];
12
- /**
13
- * Add tooltip text to icon
14
- */
15
- tooltipText?: string;
16
- /**
17
- * Intent state of icon.
18
- * Currently only `success`, `info`, `warning` and `danger` are implemented for icons, even there are more states available.
19
- */
20
- intent?: IntentTypes;
21
- /**
22
- * Display large icon version.
23
- */
24
- large?: boolean;
25
- /**
26
- * Display small icon version.
27
- */
28
- small?: boolean;
29
- /**
30
- * Additional CSS classes.
31
- */
32
- className?: string;
33
- /**
34
- * Description for icon as accessibility fallback.
35
- */
36
- description?: string;
37
- /**
38
- * Additonal tooltip properties, e.g. `hoverOpenDelay`.
39
- */
40
- tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
41
10
  }
42
11
  /** Returns the first icon name that exists or the fallback icon name. */
43
12
  export declare const findExistingIconName: (iconNames: string[], fallbackIconName?: ValidIconName) => ValidIconName;
44
- declare function Icon({ className, name, large, small, tooltipText, tooltipProps, intent, ...restProps }: IconProps): JSX.Element;
13
+ /**
14
+ * The icon provides a graphical symbol that is specified by a canonical name.
15
+ * This name is hard-coded to force a homegenous usage of the [Carbon icon library](https://carbondesignsystem.com/guidelines/icons/library).
16
+ */
17
+ declare function Icon({ name, ...otherBaseIconProps }: IconProps): JSX.Element;
45
18
  export default Icon;
@@ -1,12 +1,13 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { ButtonProps, AnchorOrButtonProps } from "../Button/Button";
3
+ import { TestIconProps } from "./TestIcon";
3
4
  import { ValidIconName } from "./canonicalIconNames";
4
5
  interface IconButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
5
6
  /**
6
7
  * Canonical icon name, or an array of strings.
7
8
  * In case of the array the first valid icon name is used.
8
9
  */
9
- name: ValidIconName | string[];
10
+ name: ValidIconName | string[] | React.ReactElement<TestIconProps>;
10
11
  /**
11
12
  * Button text, will be displayed as tooltip.
12
13
  */