@itwin/core-react 5.0.0-dev.2 → 5.0.0-dev.3

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 (157) hide show
  1. package/lib/cjs/core-react/_geometry.scss +70 -0
  2. package/lib/cjs/core-react/_helpers.scss +54 -0
  3. package/lib/cjs/core-react/_math.scss +13 -0
  4. package/lib/cjs/core-react/_scrollbar.scss +57 -0
  5. package/lib/cjs/core-react/_typography.scss +44 -0
  6. package/lib/cjs/core-react/_z-index.scss +51 -0
  7. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -0
  8. package/lib/cjs/core-react/badge/DeprecatedBadge.scss +11 -0
  9. package/lib/cjs/core-react/badge/NewBadge.scss +12 -0
  10. package/lib/cjs/core-react/badge/TechnicalPreviewBadge.scss +11 -0
  11. package/lib/cjs/core-react/base/base.scss +44 -0
  12. package/lib/cjs/core-react/base/classes.scss +27 -0
  13. package/lib/cjs/core-react/base/index.scss +5 -0
  14. package/lib/cjs/core-react/button/UnderlinedButton.scss +29 -0
  15. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +22 -0
  16. package/lib/cjs/core-react/classes.scss +9 -0
  17. package/lib/cjs/core-react/colorthemes.scss +12 -0
  18. package/lib/cjs/core-react/colorvariables.scss +139 -0
  19. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +226 -0
  20. package/lib/cjs/core-react/contextmenu/PopupContextMenu.scss +8 -0
  21. package/lib/cjs/core-react/dialog/Dialog.scss +57 -0
  22. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +93 -0
  23. package/lib/cjs/core-react/icons/IconComponent.scss +19 -0
  24. package/lib/cjs/core-react/icons/SvgPath.scss +15 -0
  25. package/lib/cjs/core-react/icons/WebFontIcon.scss +15 -0
  26. package/lib/cjs/core-react/icons/classes.scss +18 -0
  27. package/lib/cjs/core-react/icons/index.scss +6 -0
  28. package/lib/cjs/core-react/icons/mixins.scss +27 -0
  29. package/lib/cjs/core-react/icons/variables.scss +12 -0
  30. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
  31. package/lib/cjs/core-react/index.scss +18 -0
  32. package/lib/cjs/core-react/inputs/classes.scss +12 -0
  33. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +33 -0
  34. package/lib/cjs/core-react/inputs/index.scss +9 -0
  35. package/lib/cjs/core-react/inputs/input-label.scss +95 -0
  36. package/lib/cjs/core-react/inputs/input.scss +56 -0
  37. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -0
  38. package/lib/cjs/core-react/inputs/variables.scss +41 -0
  39. package/lib/cjs/core-react/layout-variables.scss +15 -0
  40. package/lib/cjs/core-react/listbox/Listbox.scss +54 -0
  41. package/lib/cjs/core-react/loading/LoadingBar.scss +27 -0
  42. package/lib/cjs/core-react/loading/LoadingPrompt.scss +29 -0
  43. package/lib/cjs/core-react/loading/LoadingSpinner.scss +24 -0
  44. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -0
  45. package/lib/cjs/core-react/loading/index.scss +5 -0
  46. package/lib/cjs/core-react/loading/mixins.scss +57 -0
  47. package/lib/cjs/core-react/messagebox/MessageBox.scss +52 -0
  48. package/lib/cjs/core-react/popup/Popup.scss +239 -0
  49. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -0
  50. package/lib/cjs/core-react/searchbox/SearchBox.scss +45 -0
  51. package/lib/cjs/core-react/settings/SettingsContainer.scss +65 -0
  52. package/lib/cjs/core-react/style/baseline.scss +11 -0
  53. package/lib/cjs/core-react/style/breakpoints.scss +59 -0
  54. package/lib/cjs/core-react/style/colors.scss +77 -0
  55. package/lib/cjs/core-react/style/index.scss +10 -0
  56. package/lib/cjs/core-react/style/mixins.scss +23 -0
  57. package/lib/cjs/core-react/style/opacity.scss +16 -0
  58. package/lib/cjs/core-react/style/themecolors.scss +133 -0
  59. package/lib/cjs/core-react/tabs/classes.scss +9 -0
  60. package/lib/cjs/core-react/tabs/index.scss +5 -0
  61. package/lib/cjs/core-react/tabs/tabs.scss +99 -0
  62. package/lib/cjs/core-react/tabs/vertical.scss +53 -0
  63. package/lib/cjs/core-react/text/FilteredText.scss +8 -0
  64. package/lib/cjs/core-react/text/block.scss +15 -0
  65. package/lib/cjs/core-react/text/body.scss +13 -0
  66. package/lib/cjs/core-react/text/classes.scss +18 -0
  67. package/lib/cjs/core-react/text/disabled.scss +7 -0
  68. package/lib/cjs/core-react/text/index.scss +10 -0
  69. package/lib/cjs/core-react/text/mixins.scss +26 -0
  70. package/lib/cjs/core-react/text/muted.scss +7 -0
  71. package/lib/cjs/core-react/tree/Branch.scss +13 -0
  72. package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -0
  73. package/lib/cjs/core-react/tree/Node.scss +68 -0
  74. package/lib/cjs/core-react/tree/Placeholder.scss +17 -0
  75. package/lib/cjs/core-react/tree/Tree.scss +22 -0
  76. package/lib/core-react/messagebox/MessageBox.d.ts.map +1 -1
  77. package/lib/core-react/messagebox/MessageBox.js +41 -29
  78. package/lib/core-react/messagebox/MessageBox.js.map +1 -1
  79. package/lib/core-react/messagebox/MessageBox.scss +3 -6
  80. package/lib/core-react/popup/Popup.js +6 -6
  81. package/lib/core-react/popup/Popup.js.map +1 -1
  82. package/lib/esm/core-react/_geometry.scss +70 -0
  83. package/lib/esm/core-react/_helpers.scss +54 -0
  84. package/lib/esm/core-react/_math.scss +13 -0
  85. package/lib/esm/core-react/_scrollbar.scss +57 -0
  86. package/lib/esm/core-react/_typography.scss +44 -0
  87. package/lib/esm/core-react/_z-index.scss +51 -0
  88. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -0
  89. package/lib/esm/core-react/badge/DeprecatedBadge.scss +11 -0
  90. package/lib/esm/core-react/badge/NewBadge.scss +12 -0
  91. package/lib/esm/core-react/badge/TechnicalPreviewBadge.scss +11 -0
  92. package/lib/esm/core-react/base/base.scss +44 -0
  93. package/lib/esm/core-react/base/classes.scss +27 -0
  94. package/lib/esm/core-react/base/index.scss +5 -0
  95. package/lib/esm/core-react/button/UnderlinedButton.scss +29 -0
  96. package/lib/esm/core-react/checklistbox/CheckListBox.scss +22 -0
  97. package/lib/esm/core-react/classes.scss +9 -0
  98. package/lib/esm/core-react/colorthemes.scss +12 -0
  99. package/lib/esm/core-react/colorvariables.scss +139 -0
  100. package/lib/esm/core-react/contextmenu/ContextMenu.scss +226 -0
  101. package/lib/esm/core-react/contextmenu/PopupContextMenu.scss +8 -0
  102. package/lib/esm/core-react/dialog/Dialog.scss +57 -0
  103. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +93 -0
  104. package/lib/esm/core-react/icons/IconComponent.scss +19 -0
  105. package/lib/esm/core-react/icons/SvgPath.scss +15 -0
  106. package/lib/esm/core-react/icons/WebFontIcon.scss +15 -0
  107. package/lib/esm/core-react/icons/classes.scss +18 -0
  108. package/lib/esm/core-react/icons/index.scss +6 -0
  109. package/lib/esm/core-react/icons/mixins.scss +27 -0
  110. package/lib/esm/core-react/icons/variables.scss +12 -0
  111. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
  112. package/lib/esm/core-react/index.scss +18 -0
  113. package/lib/esm/core-react/inputs/classes.scss +12 -0
  114. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +33 -0
  115. package/lib/esm/core-react/inputs/index.scss +9 -0
  116. package/lib/esm/core-react/inputs/input-label.scss +95 -0
  117. package/lib/esm/core-react/inputs/input.scss +56 -0
  118. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -0
  119. package/lib/esm/core-react/inputs/variables.scss +41 -0
  120. package/lib/esm/core-react/layout-variables.scss +15 -0
  121. package/lib/esm/core-react/listbox/Listbox.scss +54 -0
  122. package/lib/esm/core-react/loading/LoadingBar.scss +27 -0
  123. package/lib/esm/core-react/loading/LoadingPrompt.scss +29 -0
  124. package/lib/esm/core-react/loading/LoadingSpinner.scss +24 -0
  125. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -0
  126. package/lib/esm/core-react/loading/index.scss +5 -0
  127. package/lib/esm/core-react/loading/mixins.scss +57 -0
  128. package/lib/esm/core-react/messagebox/MessageBox.scss +52 -0
  129. package/lib/esm/core-react/popup/Popup.scss +239 -0
  130. package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -0
  131. package/lib/esm/core-react/searchbox/SearchBox.scss +45 -0
  132. package/lib/esm/core-react/settings/SettingsContainer.scss +65 -0
  133. package/lib/esm/core-react/style/baseline.scss +11 -0
  134. package/lib/esm/core-react/style/breakpoints.scss +59 -0
  135. package/lib/esm/core-react/style/colors.scss +77 -0
  136. package/lib/esm/core-react/style/index.scss +10 -0
  137. package/lib/esm/core-react/style/mixins.scss +23 -0
  138. package/lib/esm/core-react/style/opacity.scss +16 -0
  139. package/lib/esm/core-react/style/themecolors.scss +133 -0
  140. package/lib/esm/core-react/tabs/classes.scss +9 -0
  141. package/lib/esm/core-react/tabs/index.scss +5 -0
  142. package/lib/esm/core-react/tabs/tabs.scss +99 -0
  143. package/lib/esm/core-react/tabs/vertical.scss +53 -0
  144. package/lib/esm/core-react/text/FilteredText.scss +8 -0
  145. package/lib/esm/core-react/text/block.scss +15 -0
  146. package/lib/esm/core-react/text/body.scss +13 -0
  147. package/lib/esm/core-react/text/classes.scss +18 -0
  148. package/lib/esm/core-react/text/disabled.scss +7 -0
  149. package/lib/esm/core-react/text/index.scss +10 -0
  150. package/lib/esm/core-react/text/mixins.scss +26 -0
  151. package/lib/esm/core-react/text/muted.scss +7 -0
  152. package/lib/esm/core-react/tree/Branch.scss +13 -0
  153. package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -0
  154. package/lib/esm/core-react/tree/Node.scss +68 -0
  155. package/lib/esm/core-react/tree/Placeholder.scss +17 -0
  156. package/lib/esm/core-react/tree/Tree.scss +22 -0
  157. package/package.json +7 -12
@@ -0,0 +1,70 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @mixin triangle-common {
6
+ width: 0;
7
+ height: 0;
8
+ border-style: solid;
9
+ }
10
+
11
+ @mixin triangle-left-color($color) {
12
+ border-color: transparent $color transparent transparent;
13
+ }
14
+
15
+ @mixin triangle-left($height, $width: $height, $color: currentColor) {
16
+ border-width: ($height * 0.5) $width ($height * 0.5) 0;
17
+
18
+ @include triangle-common;
19
+ @include triangle-left-color($color);
20
+ }
21
+
22
+ @mixin triangle-top-color($color) {
23
+ border-color: transparent transparent $color transparent;
24
+ }
25
+
26
+ @mixin triangle-top($height, $width: $height, $color: currentColor) {
27
+ border-width: 0 ($width * 0.5) $height ($width * 0.5);
28
+
29
+ @include triangle-common;
30
+ @include triangle-top-color($color);
31
+ }
32
+
33
+ @mixin triangle-right-color($color) {
34
+ border-color: transparent transparent transparent $color;
35
+ }
36
+
37
+ @mixin triangle-right($height, $width: $height, $color: currentColor) {
38
+ border-width: ($height * 0.5) 0 ($height * 0.5) $width;
39
+
40
+ @include triangle-common;
41
+ @include triangle-right-color($color);
42
+ }
43
+
44
+ @mixin triangle-bottom-color($color) {
45
+ border-color: $color transparent transparent transparent;
46
+ }
47
+
48
+ @mixin triangle-bottom($height, $width: $height, $color: currentColor) {
49
+ border-width: $height ($width * 0.5) 0 ($width * 0.5);
50
+
51
+ @include triangle-common;
52
+ @include triangle-bottom-color($color);
53
+ }
54
+
55
+ @mixin triangle-bottom-right-color($color) {
56
+ border-color: transparent transparent $color transparent;
57
+ }
58
+
59
+ @mixin triangle-bottom-right($height, $width: $height, $color: currentColor) {
60
+ border-width: 0 0 $height $width;
61
+
62
+ @include triangle-common;
63
+ @include triangle-bottom-right-color($color);
64
+ }
65
+
66
+ @mixin oval($width, $height: $width) {
67
+ width: $width;
68
+ height: $height;
69
+ border-radius: #{$width * 0.5} / #{$height * 0.5};
70
+ }
@@ -0,0 +1,54 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "sass:map";
6
+ @use "sass:meta";
7
+
8
+ // Generates map from array.
9
+ // Key of each entry is ($array entry value: result of $fn call).
10
+ // $fn is called with specified $args.
11
+ // Usage example:
12
+ /*
13
+ $counter: 0;
14
+ @function step($step) {
15
+ $counter: $counter + $step !global;
16
+ @return $counter;
17
+ }
18
+ uicore-map-from-array($array, step, 1000);
19
+ */
20
+ @function uicore-map-from-array($array, $fn, $args...) {
21
+ $map: ();
22
+ @each $item in $array {
23
+ $kvp: (
24
+ $item: meta.call($fn, $args...),
25
+ );
26
+ $map: map.merge($map, $kvp);
27
+ }
28
+ @return $map;
29
+ }
30
+
31
+ // Generates map from array.
32
+ // Key of each entry is ($array entry value: result of $fn call).
33
+ // $fn is called with one argument:
34
+ // 1. First entry with $initialArg
35
+ // 2. Other entries with previous result of $fn call.
36
+ // Usage example:
37
+ /*
38
+ @function step($counter) {
39
+ @return $counter + 1000;
40
+ }
41
+ uicore-map-from-array-with-result-arg($array, step, 0);
42
+ */
43
+ @function uicore-map-from-array-with-result-arg($array, $fn, $initialArg) {
44
+ $map: ();
45
+ $result: $initialArg;
46
+ @each $item in $array {
47
+ $result: meta.call($fn, $result);
48
+ $kvp: (
49
+ $item: $result,
50
+ );
51
+ $map: map.merge($map, $kvp);
52
+ }
53
+ @return $map;
54
+ }
@@ -0,0 +1,13 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @function sqrt($x, $iterations: 10) {
6
+ $sqr: 1;
7
+
8
+ @for $i from 1 through $iterations {
9
+ $sqr: ($sqr - ($sqr * $sqr - $x) / (2 * $sqr));
10
+ }
11
+
12
+ @return $sqr;
13
+ }
@@ -0,0 +1,57 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @forward "./style/themecolors";
6
+
7
+ $uicore-scrollbar-width: 12px;
8
+ $uicore-scrollbar-padding: 2px;
9
+
10
+ @mixin uicore-scrollbar(
11
+ $color: hsl(var(--iui-color-foreground-hsl) / var(--iui-opacity-4)),
12
+ $width: $uicore-scrollbar-width,
13
+ $padding: $uicore-scrollbar-padding
14
+ ) {
15
+ &::-webkit-scrollbar {
16
+ width: $width;
17
+ height: $width;
18
+ }
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ border-radius: $width;
22
+ background-color: $color;
23
+ background-clip: content-box;
24
+ border-style: solid;
25
+ border-color: transparent;
26
+ border-width: $padding;
27
+
28
+ &:hover {
29
+ background-color: hsl(
30
+ var(--iui-color-foreground-hsl) / var(--iui-opacity-3)
31
+ );
32
+ }
33
+ }
34
+
35
+ &::-webkit-scrollbar-corner {
36
+ background-color: transparent;
37
+ }
38
+
39
+ &::-webkit-scrollbar-track-piece:corner-present {
40
+ margin-bottom: -2 * $padding;
41
+ margin-right: -2 * $padding;
42
+ }
43
+ }
44
+
45
+ @mixin uicore-hidden-scrollbar {
46
+ &::-webkit-scrollbar {
47
+ width: 0;
48
+ height: 0;
49
+ }
50
+ }
51
+
52
+ @mixin uicore-touch-scrolling {
53
+ @supports (-webkit-overflow-scrolling: touch) {
54
+ overflow-y: scroll; /* overflow-y has to be scroll, not auto */
55
+ -webkit-overflow-scrolling: touch;
56
+ }
57
+ }
@@ -0,0 +1,44 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @forward "./style/opacity";
6
+
7
+ $title-weight: var(--iui-font-weight-normal);
8
+ $title-size: var(--iui-font-size-2);
9
+ $title-opacity: var(--iui-opacity-1);
10
+
11
+ $body-weight: var(--iui-font-weight-light);
12
+ $body-size: var(--iui-font-size-1);
13
+ $body-opacity: var(--iui-opacity-2);
14
+
15
+ $body1-weight: var(--iui-font-weight-normal);
16
+ $body1-size: var(--iui-font-size-1);
17
+ $body1-opacity: var(--iui-opacity-2);
18
+
19
+ @mixin title($rgb: unset) {
20
+ font-weight: $title-weight;
21
+ font-size: $title-size;
22
+
23
+ @if $rgb != unset {
24
+ color: rgba($rgb, $title-opacity);
25
+ }
26
+ }
27
+
28
+ @mixin body($rgb: unset) {
29
+ font-weight: $body-weight;
30
+ font-size: $body-size;
31
+
32
+ @if $rgb != unset {
33
+ color: rgba($rgb, $body-opacity);
34
+ }
35
+ }
36
+
37
+ @mixin body1($rgb: unset) {
38
+ font-weight: $body1-weight;
39
+ font-size: $body1-size;
40
+
41
+ @if $rgb != unset {
42
+ color: rgba($rgb, $body1-opacity);
43
+ }
44
+ }
@@ -0,0 +1,51 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "sass:map";
6
+ @use "sass:meta";
7
+ @use "_helpers";
8
+
9
+ @forward "_helpers";
10
+
11
+ // Order matters, last is top-most on screen.
12
+ $uicore-internal-z-index-layers: view-overlay, view-content-dialog,
13
+ content-card-popup, widget-grip, drop-target, dragged-widget, zone-target,
14
+ zone-outline, toolbar-panels, tool-settings-popup, status-overflow-popup,
15
+ status-popup, modal-frontstage-overlay, modal-frontstage, dialog, dialog-popup,
16
+ status-message, tooltip, context-menu-z, dragdrop, cursor-overlay, drag-target,
17
+ drag-preview, backstage-overlay, backstage, keyin-palette-overlay;
18
+
19
+ $uicore-z-index-step: 1000;
20
+
21
+ @function uicore-internal-get-next-z-index-step($counter) {
22
+ @return $counter + $uicore-z-index-step;
23
+ }
24
+
25
+ $uicore-internal-z-index-layer-map: helpers.uicore-map-from-array-with-result-arg(
26
+ $uicore-internal-z-index-layers,
27
+ meta.get-function(uicore-internal-get-next-z-index-step),
28
+ 0
29
+ );
30
+
31
+ // Use this to get z-index value
32
+ @function uicore-get-z-index($layer) {
33
+ @if map.has-key($uicore-internal-z-index-layer-map, $layer) {
34
+ @return map.get($uicore-internal-z-index-layer-map, $layer);
35
+ } @else {
36
+ @error "Failed to get z-index for $layer: #{$layer}";
37
+ }
38
+ }
39
+
40
+ // Use this to add z-index property
41
+ @mixin uicore-z-index($layer) {
42
+ z-index: uicore-get-z-index($layer);
43
+ }
44
+
45
+ // Use this to add a CSS variable for each z-index layer
46
+ @mixin uicore-z-index-variables() {
47
+ @each $layer in $uicore-internal-z-index-layers {
48
+ $z-index: uicore-get-z-index($layer);
49
+ --uicore-z-index-#{$layer}: #{$z-index};
50
+ }
51
+ }
@@ -0,0 +1,79 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "../scrollbar" as *;
6
+ @use "../inputs/variables" as *;
7
+
8
+ .uicore-autosuggest__container {
9
+ position: relative;
10
+ }
11
+
12
+ .uicore-autosuggest__input {
13
+ min-height: 28px !important;
14
+ padding: $uicore-iui-input-padding !important;
15
+ }
16
+
17
+ .uicore-autosuggest__input--focused {
18
+ outline: none;
19
+ }
20
+
21
+ .uicore-autosuggest__input::-ms-clear {
22
+ display: none;
23
+ }
24
+
25
+ .uicore-autosuggest__input--open {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+
30
+ .uicore-autosuggest__suggestions-container {
31
+ display: none;
32
+ }
33
+
34
+ .uicore-autosuggest__suggestions-container--open {
35
+ display: block;
36
+ position: absolute;
37
+ width: 100%;
38
+ border: 1px solid var(--iui-color-border-foreground);
39
+ border-top: 0;
40
+ background-color: var(--iui-color-background);
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ box-sizing: border-box;
44
+ max-height: 400px;
45
+ overflow-y: auto;
46
+ z-index: 2;
47
+
48
+ @include uicore-touch-scrolling;
49
+ @include uicore-scrollbar();
50
+ }
51
+
52
+ .uicore-autosuggest__suggestions-list {
53
+ margin: 0;
54
+ padding: 0;
55
+ list-style-type: none;
56
+ }
57
+
58
+ .uicore-autosuggest__suggestion {
59
+ cursor: pointer;
60
+ padding: 5px 10px;
61
+ }
62
+
63
+ .uicore-autosuggest__suggestion--highlighted {
64
+ background-color: var(--iui-color-background-accent-muted);
65
+ }
66
+
67
+ .uicore-autosuggest__section-container {
68
+ border-top: 1px dashed var(--iui-color-background-backdrop-hover);
69
+ }
70
+
71
+ .uicore-autosuggest__section-container--first {
72
+ border-top: 0;
73
+ }
74
+
75
+ .uicore-autosuggest__section-title {
76
+ padding: 10px 0 0 10px;
77
+ font-size: var(--iui-font-size-0);
78
+ color: var(--iui-color-background-backdrop-hover);
79
+ }
@@ -0,0 +1,11 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .core-badge-deprecatedBadge {
6
+ transform: rotate(270deg);
7
+
8
+ svg {
9
+ fill: rgba(0, 0, 0, 0.85);
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .core-badge-newBadge {
6
+ color: var(--iui-color-text-positive);
7
+ transform: rotate(270deg);
8
+
9
+ svg {
10
+ fill: currentColor;
11
+ }
12
+ }
@@ -0,0 +1,11 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .core-badge-technicalPreviewBadge {
6
+ transform: rotate(270deg);
7
+
8
+ svg {
9
+ fill: rgba(0, 0, 0, 0.85);
10
+ }
11
+ }
@@ -0,0 +1,44 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "../_scrollbar";
6
+
7
+ @forward "../_scrollbar";
8
+
9
+ @mixin uicore-centered {
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ }
14
+
15
+ @mixin uicore-full-height {
16
+ height: 100%;
17
+ }
18
+
19
+ @mixin uicore-full-width {
20
+ width: 100%;
21
+ }
22
+
23
+ @mixin uicore-full-size {
24
+ @include uicore-full-height;
25
+ @include uicore-full-width;
26
+ }
27
+
28
+ @mixin uicore-fill-centered {
29
+ @include uicore-centered;
30
+ @include uicore-full-size;
31
+ }
32
+
33
+ @mixin uicore-scrollview {
34
+ @include uicore-full-size;
35
+ overflow-y: auto;
36
+
37
+ @include scrollbar.uicore-touch-scrolling;
38
+ @include scrollbar.uicore-scrollbar();
39
+ }
40
+
41
+ @mixin uicore-flex-wrap-container {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ }
@@ -0,0 +1,27 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "./index" as *;
6
+
7
+ .uicore-centered {
8
+ @include uicore-centered;
9
+ }
10
+ .uicore-full-height {
11
+ @include uicore-full-height;
12
+ }
13
+ .uicore-full-width {
14
+ @include uicore-full-width;
15
+ }
16
+ .uicore-full-size {
17
+ @include uicore-full-size;
18
+ }
19
+ .uicore-fill-centered {
20
+ @include uicore-fill-centered;
21
+ }
22
+ .uicore-scrollview {
23
+ @include uicore-scrollview;
24
+ }
25
+ .uicore-flex-wrap-container {
26
+ @include uicore-flex-wrap-container;
27
+ }
@@ -0,0 +1,5 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @forward "./base";
@@ -0,0 +1,29 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ $color: var(--iui-color-icon-accent);
6
+ $hoverColor: var(--iui-color-text-accent-hover);
7
+
8
+ .core-underlined-button {
9
+ background: transparent;
10
+ color: $color;
11
+ border: 0px solid $color;
12
+ border-bottom-width: 1px;
13
+
14
+ width: fit-content;
15
+
16
+ cursor: pointer;
17
+
18
+ &:hover {
19
+ color: $hoverColor;
20
+ border-color: $hoverColor;
21
+ }
22
+
23
+ &:focus {
24
+ color: $hoverColor;
25
+ border-color: $hoverColor;
26
+ background-color: hsl(var(--iui-opacity-6));
27
+ outline: none;
28
+ }
29
+ }
@@ -0,0 +1,22 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ .core-chk-listbox {
7
+ margin: 0;
8
+ padding: 0;
9
+ list-style: none;
10
+ position: relative;
11
+
12
+ > li > .core-chk-listboxitem-checkbox {
13
+ margin: 4px 0;
14
+ }
15
+
16
+ > .core-chk-listbox-separator {
17
+ height: 1px;
18
+ background: var(--iui-color-border-foreground);
19
+ margin: 4px 0;
20
+ pointer-events: none;
21
+ }
22
+ }
@@ -0,0 +1,9 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @use "./base/classes" as *;
6
+ @use "./icons/classes" as *;
7
+ @use "./inputs/classes" as *;
8
+ @use "./tabs/classes" as *;
9
+ @use "./text/classes" as *;
@@ -0,0 +1,12 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ // cspell:ignore colorvariables
6
+
7
+ /** @note: This file should only be imported by UiCore.ts.
8
+ * It should NOT be imported by any *.scss or other ui-core files.
9
+ */
10
+
11
+ $background: var(--iui-color-background);
12
+ $accent: var(--iui-color-background-accent);