@eccenca/gui-elements 23.0.0-rc.2 → 23.0.0-rc.3-unofficial.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 (165) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/dist/cjs/cmem/index.js +3 -1
  3. package/dist/cjs/cmem/index.js.map +1 -1
  4. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +64 -0
  5. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -0
  6. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
  7. package/dist/cjs/cmem/react-flow/configuration/linking.js +2 -0
  8. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
  9. package/dist/cjs/cmem/react-flow/configuration/typing.js +35 -0
  10. package/dist/cjs/cmem/react-flow/configuration/typing.js.map +1 -0
  11. package/dist/cjs/cmem/react-flow/configuration/workflow.js +2 -0
  12. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
  13. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +42 -0
  14. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -0
  15. package/dist/cjs/common/utils/CssCustomProperties.js +114 -0
  16. package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -0
  17. package/dist/cjs/common/utils/getColorConfiguration.js +21 -0
  18. package/dist/cjs/common/utils/getColorConfiguration.js.map +1 -0
  19. package/dist/cjs/components/Icon/canonicalIconNames.js +124 -114
  20. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  21. package/dist/cjs/components/Tag/Tag.js +2 -1
  22. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  23. package/dist/cjs/extensions/codemirror/CodeMirror.js +3 -3
  24. package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
  25. package/dist/cjs/extensions/react-flow/index.js +6 -1
  26. package/dist/cjs/extensions/react-flow/index.js.map +1 -1
  27. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +3 -2
  28. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  29. package/dist/cjs/extensions/react-flow/minimap/utils.js +12 -6
  30. package/dist/cjs/extensions/react-flow/minimap/utils.js.map +1 -1
  31. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +74 -25
  32. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  33. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js +10 -6
  34. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -1
  35. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +49 -0
  36. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -0
  37. package/dist/cjs/legacy-replacements/Tabs/Tabs.js +1 -1
  38. package/dist/cjs/legacy-replacements/Tabs/Tabs.js.map +1 -1
  39. package/dist/cjs/legacy-replacements/TextField/TextField.js +5 -8
  40. package/dist/cjs/legacy-replacements/TextField/TextField.js.map +1 -1
  41. package/dist/esm/cmem/index.js +1 -0
  42. package/dist/esm/cmem/index.js.map +1 -1
  43. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +89 -0
  44. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -0
  45. package/dist/esm/cmem/react-flow/configuration/graph.js +1 -1
  46. package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
  47. package/dist/esm/cmem/react-flow/configuration/linking.js +3 -1
  48. package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
  49. package/dist/esm/cmem/react-flow/configuration/typing.js +32 -0
  50. package/dist/esm/cmem/react-flow/configuration/typing.js.map +1 -0
  51. package/dist/esm/cmem/react-flow/configuration/workflow.js +3 -1
  52. package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
  53. package/dist/esm/cmem/react-flow/nodes/StickyNoteNode.js +31 -0
  54. package/dist/esm/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -0
  55. package/dist/esm/common/utils/CssCustomProperties.js +154 -0
  56. package/dist/esm/common/utils/CssCustomProperties.js.map +1 -0
  57. package/dist/esm/common/utils/getColorConfiguration.js +16 -0
  58. package/dist/esm/common/utils/getColorConfiguration.js.map +1 -0
  59. package/dist/esm/components/Icon/canonicalIconNames.js +124 -114
  60. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  61. package/dist/esm/components/Tag/Tag.js +2 -1
  62. package/dist/esm/components/Tag/Tag.js.map +1 -1
  63. package/dist/esm/extensions/codemirror/CodeMirror.js +3 -3
  64. package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
  65. package/dist/esm/extensions/react-flow/index.js +1 -0
  66. package/dist/esm/extensions/react-flow/index.js.map +1 -1
  67. package/dist/esm/extensions/react-flow/minimap/MiniMap.js +3 -2
  68. package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  69. package/dist/esm/extensions/react-flow/minimap/utils.js +10 -5
  70. package/dist/esm/extensions/react-flow/minimap/utils.js.map +1 -1
  71. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +76 -27
  72. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  73. package/dist/esm/extensions/react-flow/nodes/NodeContentExtension.js +26 -6
  74. package/dist/esm/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -1
  75. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +44 -0
  76. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -0
  77. package/dist/esm/index.js +1 -1
  78. package/dist/esm/index.js.map +1 -1
  79. package/dist/esm/legacy-replacements/Tabs/Tabs.js +1 -1
  80. package/dist/esm/legacy-replacements/Tabs/Tabs.js.map +1 -1
  81. package/dist/esm/legacy-replacements/TextField/TextField.js +2 -5
  82. package/dist/esm/legacy-replacements/TextField/TextField.js.map +1 -1
  83. package/dist/types/cmem/index.d.ts +1 -0
  84. package/dist/types/cmem/react-flow/StickyNoteModal/StickyNoteModal.d.ts +26 -0
  85. package/dist/types/cmem/react-flow/configuration/graph.d.ts +3 -8
  86. package/dist/types/cmem/react-flow/configuration/linking.d.ts +3 -9
  87. package/dist/types/cmem/react-flow/configuration/typing.d.ts +28 -0
  88. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +3 -9
  89. package/dist/types/cmem/react-flow/nodes/StickyNoteNode.d.ts +3 -0
  90. package/dist/types/common/utils/CssCustomProperties.d.ts +28 -0
  91. package/dist/types/common/utils/getColorConfiguration.d.ts +8 -0
  92. package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
  93. package/dist/types/components/Tag/Tag.d.ts +5 -1
  94. package/dist/types/extensions/codemirror/CodeMirror.d.ts +5 -1
  95. package/dist/types/extensions/react-flow/index.d.ts +1 -0
  96. package/dist/types/extensions/react-flow/minimap/MiniMap.d.ts +1 -1
  97. package/dist/types/extensions/react-flow/minimap/utils.d.ts +1 -0
  98. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +17 -1
  99. package/dist/types/extensions/react-flow/nodes/NodeContentExtension.d.ts +2 -2
  100. package/dist/types/extensions/react-flow/nodes/nodeUtils.d.ts +14 -0
  101. package/dist/types/index.d.ts +1 -1
  102. package/dist/types/legacy-replacements/Tabs/Tabs.d.ts +1 -1
  103. package/package.json +14 -13
  104. package/scripts/compile-sass.ts +9 -0
  105. package/scripts/fix-cjs-dist +5 -0
  106. package/scripts/fix-esm-dist +6 -0
  107. package/scripts/sassConfig.js +13 -0
  108. package/src/_shame.scss +17 -0
  109. package/src/cmem/index.ts +1 -0
  110. package/src/cmem/markdown/markdown.scss +1 -1
  111. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +134 -0
  112. package/src/cmem/react-flow/_index.scss +1 -1
  113. package/src/cmem/react-flow/_minimap.scss +6 -2
  114. package/src/cmem/react-flow/configuration/graph.ts +3 -5
  115. package/src/cmem/react-flow/configuration/linking.ts +5 -6
  116. package/src/cmem/react-flow/configuration/typing.ts +30 -0
  117. package/src/cmem/react-flow/configuration/workflow.ts +5 -5
  118. package/src/cmem/react-flow/nodes/StickyNoteNode.tsx +13 -0
  119. package/src/cmem/react-flow/{_nodes.scss → nodes/_colors.scss} +0 -0
  120. package/src/cmem/react-flow/nodes/_index.scss +2 -0
  121. package/src/cmem/react-flow/nodes/_stickynote.scss +72 -0
  122. package/src/common/utils/CssCustomProperties.ts +2 -2
  123. package/src/common/utils/getColorConfiguration.ts +1 -2
  124. package/src/components/Accordion/accordion.scss +11 -11
  125. package/src/components/Application/_header.scss +4 -3
  126. package/src/components/Button/button.scss +43 -6
  127. package/src/components/Card/card.scss +5 -5
  128. package/src/components/ContextOverlay/ContextMenu.stories.tsx +4 -1
  129. package/src/components/ContextOverlay/contextoverlay.scss +14 -2
  130. package/src/components/Dialog/dialog.scss +10 -8
  131. package/src/components/Form/form.scss +6 -6
  132. package/src/components/Icon/canonicalIconNames.tsx +134 -121
  133. package/src/components/Icon/icon.scss +1 -1
  134. package/src/components/Label/label.scss +2 -2
  135. package/src/components/Menu/menu.scss +6 -6
  136. package/src/components/Notification/notification.scss +3 -1
  137. package/src/components/OverviewItem/overviewitem.scss +8 -8
  138. package/src/components/PropertyValuePair/propertyvalue.scss +9 -7
  139. package/src/components/Separation/separation.scss +6 -6
  140. package/src/components/SimpleTable/simpletable.scss +5 -5
  141. package/src/components/Tabs/tabs.scss +2 -2
  142. package/src/components/Tag/Tag.tsx +6 -0
  143. package/src/components/Tag/tag.scss +36 -11
  144. package/src/components/TextField/textfield.scss +6 -4
  145. package/src/components/Tooltip/tooltip.scss +3 -3
  146. package/src/components/Typography/typography.scss +4 -4
  147. package/src/configuration/_variables.scss +11 -9
  148. package/src/extensions/codemirror/CodeMirror.tsx +9 -4
  149. package/src/extensions/react-flow/edges/_edges.scss +3 -3
  150. package/src/extensions/react-flow/handles/_handles.scss +13 -13
  151. package/src/extensions/react-flow/index.ts +1 -0
  152. package/src/extensions/react-flow/minimap/MiniMap.tsx +16 -1
  153. package/src/extensions/react-flow/minimap/_minimap.scss +6 -6
  154. package/src/extensions/react-flow/minimap/utils.ts +8 -3
  155. package/src/extensions/react-flow/nodes/NodeContent.tsx +253 -166
  156. package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +17 -11
  157. package/src/extensions/react-flow/nodes/_nodes.scss +44 -12
  158. package/src/extensions/react-flow/nodes/nodeUtils.tsx +53 -0
  159. package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +24 -13
  160. package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +39 -47
  161. package/src/includes/blueprintjs/_variables.scss +3 -1
  162. package/src/includes/carbon-components/_variables.scss +7 -5
  163. package/src/index.ts +1 -1
  164. package/src/legacy-replacements/Tabs/Tabs.tsx +3 -1
  165. package/src/legacy-replacements/TextField/TextField.tsx +7 -5
@@ -27,7 +27,7 @@ svg.#{$eccgui}-icon {
27
27
 
28
28
  .#{$ns}-button .#{$eccgui}-icon:first-child:last-child,
29
29
  .#{$ns}-button .#{$ns}-spinner + .#{$eccgui}-icon:last-child {
30
- margin: 0 (-($pt-button-height - $pt-icon-size-standard) / 2);
30
+ margin: 0 (-($pt-button-height - $pt-icon-size-standard) * 0.5);
31
31
  }
32
32
 
33
33
  .#{$eccgui}-menu__item {
@@ -41,7 +41,7 @@ $eccgui-color-label-info: rgba($eccgui-color-workspace-text, $eccgui-opacity-mut
41
41
  }
42
42
 
43
43
  .#{$eccgui}-label__text + & {
44
- margin-left: $eccgui-size-inline-whitespace / 2;
44
+ margin-left: $eccgui-size-inline-whitespace * 0.5;
45
45
  }
46
46
 
47
47
  .#{$eccgui}-typography__overflowtext--passdown > .#{$eccgui}-label > & {
@@ -58,7 +58,7 @@ $eccgui-color-label-info: rgba($eccgui-color-workspace-text, $eccgui-opacity-mut
58
58
 
59
59
  .#{$eccgui}-label__text + &,
60
60
  .#{$eccgui}-label__info + & {
61
- margin-left: $eccgui-size-inline-whitespace / 2;
61
+ margin-left: $eccgui-size-inline-whitespace * 0.5;
62
62
  }
63
63
 
64
64
  .#{$eccgui}-typography__overflowtext--passdown > .#{$eccgui}-label > & {
@@ -26,16 +26,16 @@ $minimal-button-background-color-active: rgba($gray2, 0.3) !default;
26
26
  $dark-minimal-button-background-color-hover: rgba($gray3, 0.15) !default;
27
27
  $dark-minimal-button-background-color-active: rgba($gray3, 0.3) !default;
28
28
 
29
- // $half-grid-size: $pt-grid-size / 2 !default;
29
+ // $half-grid-size: $pt-grid-size * 0.5 !default;
30
30
  // $menu-item-border-radius: $pt-border-radius - 1 !default;
31
31
  // $menu-item-line-height-factor: 1.4;
32
32
  // $menu-item-line-height: round($pt-font-size * $menu-item-line-height-factor);
33
33
  // $menu-item-line-height-large: round($pt-font-size-large * $menu-item-line-height-factor);
34
34
  $menu-min-width: 0 !default;
35
- // $menu-item-padding: ($pt-button-height - $pt-icon-size-standard) / 2 !default;
36
- // $menu-item-padding-large: ($pt-button-height-large - $pt-icon-size-large) / 2 !default;
37
- // $menu-item-padding-vertical: ($pt-button-height - $menu-item-line-height) / 2 !default;
38
- // $menu-item-padding-vertical-large: ($pt-button-height-large - $menu-item-line-height-large) / 2 !default;
35
+ // $menu-item-padding: ($pt-button-height - $pt-icon-size-standard) * 0.5 !default;
36
+ // $menu-item-padding-large: ($pt-button-height-large - $pt-icon-size-large) * 0.5 !default;
37
+ // $menu-item-padding-vertical: ($pt-button-height - $menu-item-line-height) * 0.5 !default;
38
+ // $menu-item-padding-vertical-large: ($pt-button-height-large - $menu-item-line-height-large) * 0.5 !default;
39
39
  $menu-background-color: transparent !default;
40
40
  // $dark-menu-background-color: $dark-gray4 !default;
41
41
  // $menu-item-color-hover: $minimal-button-background-color-hover !default;
@@ -49,7 +49,7 @@ $menu-background-color: transparent !default;
49
49
  padding: 0;
50
50
 
51
51
  .#{$ns}-popover2-content > & {
52
- padding: $eccgui-size-inline-whitespace / 2;
52
+ padding: $eccgui-size-inline-whitespace * 0.5;
53
53
  min-width: 10em;
54
54
  max-width: 20em;
55
55
  }
@@ -1,5 +1,7 @@
1
1
  // TODO: add vars and process them
2
2
 
3
+ @use "sass:math";
4
+
3
5
  @import "~@blueprintjs/core/src/components/toast/toast";
4
6
 
5
7
  .#{$eccgui}-notification {
@@ -10,7 +12,7 @@
10
12
  background-color: $eccgui-color-application-background;
11
13
  font-size: 1rem;
12
14
  line-height: $eccgui-size-typo-base-lineheight;
13
- min-width: 4/16 * 100vw;
15
+ min-width: math.div(4, 16) * 100vw;
14
16
  width: 100%;
15
17
  max-width: 40rem;
16
18
  margin-top: $eccgui-size-block-whitespace;
@@ -1,5 +1,5 @@
1
1
  $eccgui-color-overviewitem-divider: $ui-03 !default;
2
- $eccgui-size-overviewitem-spacing: $eccgui-size-typo-base/2 !default;
2
+ $eccgui-size-overviewitem-spacing: $eccgui-size-typo-base * 0.5 !default;
3
3
 
4
4
  $eccgui-color-overviewitem-depiction-background: $eccgui-color-workspace-text !default;
5
5
  $eccgui-color-overviewitem-depiction-text: $eccgui-color-workspace-background !default;
@@ -17,7 +17,7 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
17
17
  align-items: stretch;
18
18
 
19
19
  & > li {
20
- width: calc(1/2 * 100% - #{$eccgui-size-overviewitem-spacing});
20
+ width: calc(50% - #{$eccgui-size-overviewitem-spacing});
21
21
 
22
22
  &:nth-child(odd) {
23
23
  margin-right: $eccgui-size-overviewitem-spacing;
@@ -25,12 +25,12 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
25
25
  }
26
26
 
27
27
  &.#{$eccgui}-overviewitem__list--hasspacing {
28
- margin-left: -1 * $eccgui-size-overviewitem-spacing/2;
29
- margin-right: -1 * $eccgui-size-overviewitem-spacing/2;
28
+ margin-left: -1 * $eccgui-size-overviewitem-spacing * 0.5;
29
+ margin-right: -1 * $eccgui-size-overviewitem-spacing * 0.5;
30
30
 
31
31
  & > li {
32
32
  box-sizing: border-box;
33
- padding: $eccgui-size-overviewitem-spacing/2;
33
+ padding: $eccgui-size-overviewitem-spacing * 0.5;
34
34
  }
35
35
  }
36
36
  }
@@ -40,10 +40,10 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
40
40
  }
41
41
 
42
42
  .#{$eccgui}-overviewitem__list--hasspacing:not(.#{$eccgui}-overviewitem__list--hascolumns) > li:not(:first-child) {
43
- padding-top: $eccgui-size-overviewitem-spacing/2;
43
+ padding-top: $eccgui-size-overviewitem-spacing * 0.5;
44
44
  }
45
45
  .#{$eccgui}-overviewitem__list--hasspacing:not(.#{$eccgui}-overviewitem__list--hascolumns) > li:not(:last-child) {
46
- padding-bottom: $eccgui-size-overviewitem-spacing/2;
46
+ padding-bottom: $eccgui-size-overviewitem-spacing * 0.5;
47
47
  }
48
48
 
49
49
  .#{$eccgui}-overviewitem__item {
@@ -83,7 +83,7 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
83
83
 
84
84
  .#{$eccgui}-overviewitem__item--hasspacing {
85
85
  box-sizing: content-box;
86
- padding: $eccgui-size-overviewitem-spacing/2;
86
+ padding: $eccgui-size-overviewitem-spacing * 0.5;
87
87
 
88
88
  &.#{$eccgui}-overviewitem__item--highdensity,
89
89
  .#{$eccgui}-overviewitem__list--highdensity > li > & {
@@ -1,3 +1,5 @@
1
+ @use "sass:math";
2
+
1
3
  .#{$eccgui}-propertyvalue__list {
2
4
  display: block;
3
5
  }
@@ -13,11 +15,11 @@
13
15
  }
14
16
  &.#{$eccgui}-propertyvalue__pair--hasspacing {
15
17
  &:not(:last-child) {
16
- padding-bottom: $eccgui-size-block-whitespace / 2;
17
- margin-bottom: $eccgui-size-block-whitespace / 2;
18
+ padding-bottom: $eccgui-size-block-whitespace * 0.5;
19
+ margin-bottom: $eccgui-size-block-whitespace * 0.5;
18
20
  }
19
21
  .#{$eccgui}-propertyvalue__pair + & {
20
- margin-top: $eccgui-size-block-whitespace / 2;
22
+ margin-top: $eccgui-size-block-whitespace * 0.5;
21
23
  }
22
24
  }
23
25
  }
@@ -32,7 +34,7 @@
32
34
 
33
35
  .#{$eccgui}-propertyvalue__property {
34
36
  float: left;
35
- width: 3/16 * 100%;
37
+ width: math.div(3, 16) * 100%;
36
38
  overflow: hidden;
37
39
 
38
40
  & > div {
@@ -41,7 +43,7 @@
41
43
  }
42
44
 
43
45
  .#{$eccgui}-propertyvalue__value {
44
- margin-left: 3/16 * 100%;
46
+ margin-left: math.div(3, 16) * 100%;
45
47
  box-sizing: content-box;
46
48
 
47
49
  &:not(:last-child) {
@@ -49,8 +51,8 @@
49
51
  border-bottom: solid 1px $pt-divider-black;
50
52
  }
51
53
  .#{$eccgui}-propertyvalue__pair--hasspacing > & {
52
- padding-bottom: $eccgui-size-block-whitespace / 2;
53
- margin-bottom: $eccgui-size-block-whitespace / 2;
54
+ padding-bottom: $eccgui-size-block-whitespace * 0.5;
55
+ margin-bottom: $eccgui-size-block-whitespace * 0.5;
54
56
  }
55
57
  }
56
58
  }
@@ -25,15 +25,15 @@ $eccgui-color-separation-divider: $pt-divider-black !default;
25
25
  }
26
26
 
27
27
  &.#{$eccgui}-separation__spacing--tiny {
28
- margin: $eccgui-size-separation-spacing-medium/8 0;
28
+ margin: $eccgui-size-separation-spacing-medium * 0.125 0;
29
29
  }
30
30
 
31
31
  &.#{$eccgui}-separation__spacing--small {
32
- margin: $eccgui-size-separation-spacing-medium/4 0;
32
+ margin: $eccgui-size-separation-spacing-medium * 0.25 0;
33
33
  }
34
34
 
35
35
  &.#{$eccgui}-separation__spacing--medium {
36
- margin: $eccgui-size-separation-spacing-medium/2 0;
36
+ margin: $eccgui-size-separation-spacing-medium * 0.5 0;
37
37
  }
38
38
 
39
39
  &.#{$eccgui}-separation__spacing--large {
@@ -56,15 +56,15 @@ $eccgui-color-separation-divider: $pt-divider-black !default;
56
56
  }
57
57
 
58
58
  &.#{$eccgui}-separation__spacing--tiny {
59
- margin: 0 $eccgui-size-separation-spacing-medium/8;
59
+ margin: 0 $eccgui-size-separation-spacing-medium * 0.125;
60
60
  }
61
61
 
62
62
  &.#{$eccgui}-separation__spacing--small {
63
- margin: 0 $eccgui-size-separation-spacing-medium/4;
63
+ margin: 0 $eccgui-size-separation-spacing-medium * 0.25;
64
64
  }
65
65
 
66
66
  &.#{$eccgui}-separation__spacing--medium {
67
- margin: 0 $eccgui-size-separation-spacing-medium/2;
67
+ margin: 0 $eccgui-size-separation-spacing-medium * 0.5;
68
68
  }
69
69
 
70
70
  &.#{$eccgui}-separation__spacing--large {
@@ -1,10 +1,10 @@
1
1
  // own vars
2
2
  $eccgui-size-tablecell-height-regular: mini-units(5) !default;
3
- $eccgui-size-tablecell-padding-regular: ($eccgui-size-tablecell-height-regular - carbon--rem($eccgui-size-typo-text)) / 2 !default;
3
+ $eccgui-size-tablecell-padding-regular: ($eccgui-size-tablecell-height-regular - carbon--rem($eccgui-size-typo-text)) * 0.5 !default;
4
4
  $eccgui-size-tablecell-height-compact: mini-units(4) !default;
5
- $eccgui-size-tablecell-padding-compact: ($eccgui-size-tablecell-height-compact - carbon--rem($eccgui-size-typo-text)) / 2 !default;
5
+ $eccgui-size-tablecell-padding-compact: ($eccgui-size-tablecell-height-compact - carbon--rem($eccgui-size-typo-text)) * 0.5 !default;
6
6
  $eccgui-size-tablecell-height-tall: mini-units(6) !default;
7
- $eccgui-size-tablecell-padding-tall: ($eccgui-size-tablecell-height-tall - carbon--rem($eccgui-size-typo-text)) / 2 !default;
7
+ $eccgui-size-tablecell-padding-tall: ($eccgui-size-tablecell-height-tall - carbon--rem($eccgui-size-typo-text)) * 0.5 !default;
8
8
  $eccgui-size-tablecell-font-weight: $eccgui-font-weight-regular !default;
9
9
  $eccgui-size-tableheader-font-weight: $eccgui-font-weight-bold !default;
10
10
 
@@ -67,8 +67,8 @@ $eccgui-size-tableheader-font-weight: $eccgui-font-weight-bold !default;
67
67
 
68
68
  .#{$prefix}--data-table {
69
69
  thead th, tbody td, tbody th {
70
- padding-left: $eccgui-size-block-whitespace / 2;
71
- padding-right: $eccgui-size-block-whitespace / 2;
70
+ padding-left: $eccgui-size-block-whitespace * 0.5;
71
+ padding-right: $eccgui-size-block-whitespace * 0.5;
72
72
  }
73
73
  }
74
74
 
@@ -16,7 +16,7 @@ $tab-indicator-width: 3px !default;
16
16
  border-bottom: solid 1px $pt-divider-black;
17
17
  max-width: 100%;
18
18
  overflow: auto;
19
- column-gap: $eccgui-size-block-whitespace / 4;
19
+ column-gap: $eccgui-size-block-whitespace * 0.25;
20
20
 
21
21
  & > *:not(:last-child) {
22
22
  margin-right: 0;
@@ -49,7 +49,7 @@ $tab-indicator-width: 3px !default;
49
49
  }
50
50
 
51
51
  &::before, & > *:not(:last-child) {
52
- margin-right: $eccgui-size-block-whitespace / 4;
52
+ margin-right: $eccgui-size-block-whitespace * 0.25;
53
53
  }
54
54
  }
55
55
 
@@ -37,6 +37,10 @@ interface TagProps extends Omit<
37
37
  * display tag in a small version
38
38
  */
39
39
  small?: boolean;
40
+ /**
41
+ * display tag in a large version
42
+ */
43
+ large?: boolean;
40
44
 
41
45
  // deprecated
42
46
 
@@ -52,6 +56,7 @@ function Tag({
52
56
  emphasis = "normal",
53
57
  minimal = true,
54
58
  small = false,
59
+ large = false,
55
60
  backgroundColor,
56
61
  ...otherProps
57
62
  }: TagProps) {
@@ -79,6 +84,7 @@ function Tag({
79
84
  className={
80
85
  `${eccgui}-tag__item ${eccgui}-tag--${emphasis}emphasis` +
81
86
  (small ? ` ${eccgui}-tag--small` : '') +
87
+ (large ? ` ${eccgui}-tag--large` : '') +
82
88
  (className ? ' ' + className : '')
83
89
  }
84
90
  minimal={minimal}
@@ -3,21 +3,24 @@ $eccgui-size-typo-tag: $eccgui-size-typo-caption !default;
3
3
  $eccgui-size-typo-tag-lineheight: $eccgui-size-typo-caption-lineheight !default;
4
4
  $eccgui-size-typo-tag-large: $eccgui-size-typo-text !default;
5
5
  $eccgui-size-typo-tag-large-lineheight: $eccgui-size-typo-text-lineheight !default;
6
- $eccgui-size-margin-tag: $eccgui-size-inline-whitespace / 2 !default;
6
+ $eccgui-size-margin-tag: $eccgui-size-inline-whitespace * 0.5 !default;
7
7
  $eccgui-color-tag-background-emphasized: $eccgui-color-workspace-text !default;
8
8
  // lib vars
9
9
  $tag-default-color: $eccgui-color-tag-background-emphasized; // !default;
10
10
  // $dark-tag-default-color: $gray5 !default;
11
11
  $tag-height: $eccgui-size-typo-tag * $eccgui-size-typo-tag-lineheight; // !default;
12
12
  $tag-line-height: $eccgui-size-typo-tag; // !default;
13
- $tag-padding-top: ($tag-height - $tag-line-height) / 2; // !default;
13
+ $tag-padding-top: ($tag-height - $tag-line-height) * 0.5; // !default;
14
14
  $tag-padding: $tag-padding-top * 2; // !default;
15
15
  $tag-margin: 0; // !default;
16
+ $tag-height-small: $eccgui-size-typo-tag; // !default;
17
+ $tag-line-height-small: $tag-height-small; // !default;
18
+ $tag-padding-small: $tag-padding * 0.5; // !default;
16
19
  $tag-height-large: $eccgui-size-typo-tag-large * $eccgui-size-typo-tag-large-lineheight; // !default;
17
20
  $tag-line-height-large: $eccgui-size-typo-tag-large; // !default;
18
21
  $tag-padding-large: ($tag-height-large - $tag-line-height-large); // !default;
19
- // $tag-icon-spacing: ($tag-height - 12px) / 2 !default;
20
- // $tag-icon-spacing-large: ($tag-height-large - $pt-icon-size-standard) / 2 !default;
22
+ // $tag-icon-spacing: ($tag-height - 12px) * 0.5 !default;
23
+ // $tag-icon-spacing-large: ($tag-height-large - $pt-icon-size-standard) * 0.5 !default;
21
24
  $tag-round-adjustment: 0px !default;
22
25
 
23
26
  @import "~@blueprintjs/core/src/components/tag/tag";
@@ -25,18 +28,40 @@ $tag-round-adjustment: 0px !default;
25
28
  .#{$eccgui}-tag__item {
26
29
  flex-shrink: 0;
27
30
  flex-grow: 0;
31
+ max-height: calc(#{$tag-height} - 2px);
32
+ min-height: calc(#{$tag-height} - 2px);
33
+
34
+ &.#{$ns}-round {
35
+ border-radius: $tag-height * 0.5;
36
+ }
28
37
 
29
38
  .#{$eccgui}-overviewitem__description > & {
30
39
  max-width: 39%;
31
40
  }
32
41
 
33
42
  &.#{$eccgui}-tag--small {
34
- font-size: $eccgui-size-typo-caption;
35
- line-height: $eccgui-size-typo-caption-lineheight;
36
- max-height: calc(#{$eccgui-size-typo-caption-lineheight * $eccgui-size-typo-caption} - 2px);
37
- min-height: 0;
38
- padding-top: 0;
39
- padding-bottom: 0;
43
+ max-height: calc(#{$tag-height-small} + #{$tag-padding-small} - 2px);
44
+ min-height: calc(#{$tag-height-small} + #{$tag-padding-small} - 2px);
45
+ min-width: calc(#{$tag-height-small} + #{$tag-padding-small} - 2px);
46
+ line-height: calc(#{$tag-height-small} - 2px);
47
+ padding: $tag-padding-small * 0.5 $tag-padding-small;
48
+
49
+ &.#{$ns}-round {
50
+ border-radius: $tag-height-small * 0.5;
51
+ }
52
+ }
53
+
54
+ &.#{$eccgui}-tag--large {
55
+ max-height: calc(#{$tag-height-large} + #{$tag-padding-large} - 2px);
56
+ min-height: calc(#{$tag-height-large} + #{$tag-padding-large} - 2px);
57
+ min-width: calc(#{$tag-height-large} + #{$tag-padding-large} - 2px);
58
+ line-height: calc(#{$tag-height-large} - 2px);
59
+ font-size: $eccgui-size-typo-tag-large;
60
+ padding: $tag-padding-large * 0.5 $tag-padding-large;
61
+
62
+ &.#{$ns}-round {
63
+ border-radius: $tag-height-large * 0.5;
64
+ }
40
65
  }
41
66
 
42
67
  svg {
@@ -50,7 +75,7 @@ $tag-round-adjustment: 0px !default;
50
75
  .#{$eccgui}-tag__list,
51
76
  .#{$eccgui}-tag__list-item {
52
77
  display: inline;
53
- vertical-align: baseline;
78
+ vertical-align: middle;
54
79
  font-size: $eccgui-size-typo-tag;
55
80
  line-height: $eccgui-size-typo-tag-lineheight;
56
81
  font-weight: $eccgui-font-weight-regular;
@@ -1,10 +1,12 @@
1
+ @use "sass:math";
2
+
1
3
  // own vars
2
4
  $eccgui-size-textfield-height-small: $eccgui-size-block-whitespace * 2 !default;
3
5
  $eccgui-size-textfield-height-regular: $eccgui-size-textfield-height-small * $eccgui-size-type-levelratio !default;
4
6
  $eccgui-size-textfield-height-large: $eccgui-size-textfield-height-regular * $eccgui-size-type-levelratio *
5
7
  $eccgui-size-type-levelratio !default;
6
8
  $eccgui-size-textfield-padding-horizontal-regular: $eccgui-size-inline-whitespace !default;
7
- $eccgui-size-textfield-padding-horizontal-small: $eccgui-size-inline-whitespace / 2 !default;
9
+ $eccgui-size-textfield-padding-horizontal-small: $eccgui-size-inline-whitespace * 0.5 !default;
8
10
  $eccgui-typo-textfield-fontweight: $eccgui-font-weight-regular !default;
9
11
  $eccgui-color-textfield-text: $eccgui-color-application-text !default;
10
12
  $eccgui-color-textfield-background: white !default; // TODO define global var for it
@@ -24,9 +26,9 @@ $input-background-color: $eccgui-color-textfield-background; // !default;
24
26
  // $input-shadow-color-focus: $pt-intent-primary !default;
25
27
  // $pt-input-box-shadow: inset border-shadow(0.15), inset 0 1px 1px rgba($black, $pt-drop-shadow-opacity) !default;
26
28
  // $input-box-shadow-focus: inset 0 1px 1px rgba($black, $pt-drop-shadow-opacity) !default;
27
- $input-button-height: $eccgui-size-textfield-height-regular / $eccgui-size-type-levelratio; // !default;
28
- $input-button-height-large: $eccgui-size-textfield-height-large / $eccgui-size-type-levelratio; // !default;
29
- $input-button-height-small: $eccgui-size-textfield-height-small / $eccgui-size-type-levelratio; // !default;
29
+ $input-button-height: math.div($eccgui-size-textfield-height-regular, $eccgui-size-type-levelratio); // !default;
30
+ $input-button-height-large: math.div($eccgui-size-textfield-height-large, $eccgui-size-type-levelratio); // !default;
31
+ $input-button-height-small: math.div($eccgui-size-textfield-height-small, $eccgui-size-type-levelratio); // !default;
30
32
  // lib includes
31
33
  @import "~@blueprintjs/core/src/components/forms/input-group";
32
34
  @import "~@blueprintjs/core/src/components/forms/input";
@@ -7,8 +7,8 @@ $tooltip2-background-color: $eccgui-color-applicationheader-text; // !default;
7
7
  $tooltip2-text-color: $eccgui-color-applicationheader-background; // !default;
8
8
  // $dark-tooltip-background-color: $light-gray3 !default;
9
9
  // $dark-tooltip-text-color: $dark-gray5 !default;
10
- $tooltip2-padding-vertical: $eccgui-size-block-whitespace/4; // !default;
11
- $tooltip2-padding-horizontal: $eccgui-size-block-whitespace/2; // !default;
10
+ $tooltip2-padding-vertical: $eccgui-size-block-whitespace * 0.25; // !default;
11
+ $tooltip2-padding-horizontal: $eccgui-size-block-whitespace * 0.5; // !default;
12
12
 
13
13
  @import "~@blueprintjs/popover2/src/tooltip2";
14
14
 
@@ -20,7 +20,7 @@ $tooltip2-padding-horizontal: $eccgui-size-block-whitespace/2; // !default;
20
20
  }
21
21
 
22
22
  .#{$eccgui}-tooltip--small {
23
- max-width: $eccgui-size-tooltip-width / 2;
23
+ max-width: $eccgui-size-tooltip-width * 0.5;
24
24
  }
25
25
  .#{$eccgui}-tooltip--medium {
26
26
  max-width: $eccgui-size-tooltip-width;
@@ -161,7 +161,7 @@ li {
161
161
  &.#{$eccgui}-typography__text {
162
162
  margin-left: $eccgui-size-block-whitespace * 2;
163
163
  &:not(:last-child) {
164
- margin-bottom: $eccgui-size-block-whitespace / 2;
164
+ margin-bottom: $eccgui-size-block-whitespace * 0.5;
165
165
  }
166
166
  }
167
167
  }
@@ -181,7 +181,7 @@ pre {
181
181
  .#{$eccgui}-typography__contentblock &,
182
182
  &.#{$eccgui}-typography__text {
183
183
  background-color: $eccgui-color-workspace-background;
184
- padding: $eccgui-size-block-whitespace / 2;
184
+ padding: $eccgui-size-block-whitespace * 0.5;
185
185
  overflow-x: auto;
186
186
  }
187
187
  }
@@ -276,8 +276,8 @@ table {
276
276
  @each $whitespaceSizeName,
277
277
  $whitespaceSizeValue
278
278
  in (
279
- "tiny": $eccgui-size-typography-whitespace-regular/4,
280
- "small": $eccgui-size-typography-whitespace-regular/2,
279
+ "tiny": $eccgui-size-typography-whitespace-regular * 0.25,
280
+ "small": $eccgui-size-typography-whitespace-regular * 0.5,
281
281
  "regular": $eccgui-size-typography-whitespace-regular,
282
282
  "large": $eccgui-size-typography-whitespace-regular * 1.5,
283
283
  "xlarge": $eccgui-size-typography-whitespace-regular * 2
@@ -11,6 +11,8 @@
11
11
  variables to overwrite the default look of the application.
12
12
  */
13
13
 
14
+ @use "sass:math";
15
+
14
16
  $eccgui: "eccgui" !default;
15
17
 
16
18
  // -- Configuration stack of colors --------------------------------------------
@@ -50,7 +52,7 @@ $eccgui-font-family-fantasy: fantasy !default;
50
52
  $eccgui-font-family-default: $eccgui-font-family-sans !default;
51
53
  $eccgui-size-typo-base: 14px !default; // size including absolute unit, preferable px
52
54
  $eccgui-size-typo-base-lineheight: 1.39 !default; // only ratio to font size, no unit!
53
- $eccgui-size-type-levelratio: 7/6 !default; // ratio without unit! used to calculate different text sizes, etc ...
55
+ $eccgui-size-type-levelratio: math.div(7, 6) !default; // ratio without unit! used to calculate different text sizes, etc ...
54
56
 
55
57
  $eccgui-font-weight-light: 300 !default;
56
58
  $eccgui-font-weight-regular: 400 !default;
@@ -62,7 +64,7 @@ $eccgui-font-spacing-wide: 0.5px !default;
62
64
  // -- Configuration stack of sizes ---------------------------------------------
63
65
 
64
66
  $eccgui-size-block-whitespace: $eccgui-size-typo-base !default;
65
- $eccgui-size-inline-whitespace: $eccgui-size-typo-base / 2 !default;
67
+ $eccgui-size-inline-whitespace: $eccgui-size-typo-base * 0.5 !default;
66
68
 
67
69
  // -- Configuration stack of opacities -----------------------------------------
68
70
 
@@ -79,7 +81,7 @@ $eccgui-opacity-invisible: 0 !default;
79
81
  it is not recommended to do so.
80
82
  */
81
83
 
82
- $eccgui-size-typo-caption: 1 / $eccgui-size-type-levelratio *
84
+ $eccgui-size-typo-caption: math.div(1, $eccgui-size-type-levelratio) *
83
85
  $eccgui-size-typo-base !default;
84
86
  $eccgui-size-typo-caption-lineheight: max(
85
87
  $eccgui-size-type-levelratio * $eccgui-size-typo-base-lineheight,
@@ -93,37 +95,37 @@ $eccgui-size-typo-text-lineheight: max(
93
95
  $eccgui-size-typo-subtitle: $eccgui-size-type-levelratio *
94
96
  $eccgui-size-typo-text !default;
95
97
  $eccgui-size-typo-subtitle-lineheight: max(
96
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-text-lineheight,
98
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-text-lineheight,
97
99
  1
98
100
  ) !default;
99
101
  $eccgui-size-typo-title: $eccgui-size-type-levelratio *
100
102
  $eccgui-size-typo-subtitle !default;
101
103
  $eccgui-size-typo-title-lineheight: max(
102
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-subtitle-lineheight,
104
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-subtitle-lineheight,
103
105
  1
104
106
  ) !default;
105
107
  $eccgui-size-typo-headline: $eccgui-size-type-levelratio *
106
108
  $eccgui-size-typo-title !default;
107
109
  $eccgui-size-typo-headline-lineheight: max(
108
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-title-lineheight,
110
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-title-lineheight,
109
111
  1
110
112
  ) !default;
111
113
  $eccgui-size-typo-display-1: $eccgui-size-type-levelratio *
112
114
  $eccgui-size-typo-headline !default;
113
115
  $eccgui-size-typo-display-1-lineheight: max(
114
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-headline-lineheight,
116
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-headline-lineheight,
115
117
  1
116
118
  ) !default;
117
119
  $eccgui-size-typo-display-2: $eccgui-size-type-levelratio *
118
120
  $eccgui-size-typo-display-1 !default;
119
121
  $eccgui-size-typo-display-2-lineheight: max(
120
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-display-1-lineheight,
122
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-display-1-lineheight,
121
123
  1
122
124
  ) !default;
123
125
  $eccgui-size-typo-display-3: $eccgui-size-type-levelratio *
124
126
  $eccgui-size-typo-display-2 !default;
125
127
  $eccgui-size-typo-display-3-lineheight: max(
126
- 1 / $eccgui-size-type-levelratio * $eccgui-size-typo-display-2-lineheight,
128
+ math.div(1, $eccgui-size-type-levelratio) * $eccgui-size-typo-display-2-lineheight,
127
129
  1
128
130
  ) !default;
129
131
 
@@ -31,6 +31,10 @@ export interface CodeEditorProps {
31
31
  * Default value used first when the editor is instanciated.
32
32
  */
33
33
  defaultValue?: any;
34
+ /**
35
+ * If enabled the code editor won't show numbers before each line.
36
+ */
37
+ preventLineNumbers?: boolean;
34
38
  }
35
39
 
36
40
  /**
@@ -41,7 +45,8 @@ export const CodeEditor = ({
41
45
  name,
42
46
  id,
43
47
  mode = "undefined",
44
- defaultValue
48
+ preventLineNumbers = false,
49
+ defaultValue,
45
50
  }: CodeEditorProps) => {
46
51
  const domRef = useRef<HTMLTextAreaElement>(null);
47
52
 
@@ -49,7 +54,7 @@ export const CodeEditor = ({
49
54
  const editorInstance = CodeMirror.fromTextArea(domRef.current!, {
50
55
  mode: mode === "undefined" ? undefined : mode,
51
56
  lineWrapping: true,
52
- lineNumbers: true,
57
+ lineNumbers: !preventLineNumbers,
53
58
  tabSize: 2,
54
59
  theme: "xq-light",
55
60
  });
@@ -61,7 +66,7 @@ export const CodeEditor = ({
61
66
  return function cleanup() {
62
67
  editorInstance.toTextArea();
63
68
  };
64
- }, [onChange, mode]);
69
+ }, [onChange, mode, preventLineNumbers]);
65
70
 
66
71
  return (
67
72
  <div className={`${eccgui}-codeeditor`}>
@@ -79,4 +84,4 @@ export const CodeEditor = ({
79
84
  />
80
85
  </div>
81
86
  );
82
- }
87
+ };
@@ -3,7 +3,7 @@
3
3
  path, rect {
4
4
  shape-rendering: optimizeSpeed;
5
5
  /* TODO: transitions currently do not work like expected
6
- transition: $reactflow-transition-time/2 $reactflow-transition-function;
6
+ transition: $reactflow-transition-time * 0.5 $reactflow-transition-function;
7
7
  */
8
8
  stroke-opacity: $reactflow-edge-stroke-opacity;
9
9
  }
@@ -72,7 +72,7 @@ path.react-flow__edge-path-glow {
72
72
 
73
73
  .react-flow__edge-textwrapper {
74
74
  /* TODO: transitions currently do not work like expected
75
- transition: $reactflow-transition-time/2 $reactflow-transition-function;
75
+ transition: $reactflow-transition-time * 0.5 $reactflow-transition-function;
76
76
  */
77
77
  }
78
78
 
@@ -135,7 +135,7 @@ path.react-flow__edge-path-glow {
135
135
  }
136
136
 
137
137
  .#{$eccgui}-graphviz__edgetools-content {
138
- padding: $eccgui-size-block-whitespace / 2;
138
+ padding: $eccgui-size-block-whitespace * 0.5;
139
139
  max-width: $reactflow-node-basesize * 8;
140
140
  min-width: $reactflow-node-basesize;
141
141
  max-height: $reactflow-node-basesize * 13;