@itwin/core-react 5.0.0-dev.2 → 5.0.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 (158) hide show
  1. package/CHANGELOG.md +49 -1
  2. package/lib/cjs/core-react/_geometry.scss +70 -0
  3. package/lib/cjs/core-react/_helpers.scss +54 -0
  4. package/lib/cjs/core-react/_math.scss +13 -0
  5. package/lib/cjs/core-react/_scrollbar.scss +57 -0
  6. package/lib/cjs/core-react/_typography.scss +44 -0
  7. package/lib/cjs/core-react/_z-index.scss +51 -0
  8. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -0
  9. package/lib/cjs/core-react/badge/DeprecatedBadge.scss +11 -0
  10. package/lib/cjs/core-react/badge/NewBadge.scss +12 -0
  11. package/lib/cjs/core-react/badge/TechnicalPreviewBadge.scss +11 -0
  12. package/lib/cjs/core-react/base/base.scss +44 -0
  13. package/lib/cjs/core-react/base/classes.scss +27 -0
  14. package/lib/cjs/core-react/base/index.scss +5 -0
  15. package/lib/cjs/core-react/button/UnderlinedButton.scss +29 -0
  16. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +22 -0
  17. package/lib/cjs/core-react/classes.scss +9 -0
  18. package/lib/cjs/core-react/colorthemes.scss +12 -0
  19. package/lib/cjs/core-react/colorvariables.scss +139 -0
  20. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +226 -0
  21. package/lib/cjs/core-react/contextmenu/PopupContextMenu.scss +8 -0
  22. package/lib/cjs/core-react/dialog/Dialog.scss +57 -0
  23. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +93 -0
  24. package/lib/cjs/core-react/icons/IconComponent.scss +19 -0
  25. package/lib/cjs/core-react/icons/SvgPath.scss +15 -0
  26. package/lib/cjs/core-react/icons/WebFontIcon.scss +15 -0
  27. package/lib/cjs/core-react/icons/classes.scss +18 -0
  28. package/lib/cjs/core-react/icons/index.scss +6 -0
  29. package/lib/cjs/core-react/icons/mixins.scss +27 -0
  30. package/lib/cjs/core-react/icons/variables.scss +12 -0
  31. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
  32. package/lib/cjs/core-react/index.scss +18 -0
  33. package/lib/cjs/core-react/inputs/classes.scss +12 -0
  34. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +33 -0
  35. package/lib/cjs/core-react/inputs/index.scss +9 -0
  36. package/lib/cjs/core-react/inputs/input-label.scss +95 -0
  37. package/lib/cjs/core-react/inputs/input.scss +56 -0
  38. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -0
  39. package/lib/cjs/core-react/inputs/variables.scss +41 -0
  40. package/lib/cjs/core-react/layout-variables.scss +15 -0
  41. package/lib/cjs/core-react/listbox/Listbox.scss +54 -0
  42. package/lib/cjs/core-react/loading/LoadingBar.scss +27 -0
  43. package/lib/cjs/core-react/loading/LoadingPrompt.scss +29 -0
  44. package/lib/cjs/core-react/loading/LoadingSpinner.scss +24 -0
  45. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -0
  46. package/lib/cjs/core-react/loading/index.scss +5 -0
  47. package/lib/cjs/core-react/loading/mixins.scss +57 -0
  48. package/lib/cjs/core-react/messagebox/MessageBox.scss +52 -0
  49. package/lib/cjs/core-react/popup/Popup.scss +239 -0
  50. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -0
  51. package/lib/cjs/core-react/searchbox/SearchBox.scss +45 -0
  52. package/lib/cjs/core-react/settings/SettingsContainer.scss +65 -0
  53. package/lib/cjs/core-react/style/baseline.scss +11 -0
  54. package/lib/cjs/core-react/style/breakpoints.scss +59 -0
  55. package/lib/cjs/core-react/style/colors.scss +77 -0
  56. package/lib/cjs/core-react/style/index.scss +10 -0
  57. package/lib/cjs/core-react/style/mixins.scss +23 -0
  58. package/lib/cjs/core-react/style/opacity.scss +16 -0
  59. package/lib/cjs/core-react/style/themecolors.scss +133 -0
  60. package/lib/cjs/core-react/tabs/classes.scss +9 -0
  61. package/lib/cjs/core-react/tabs/index.scss +5 -0
  62. package/lib/cjs/core-react/tabs/tabs.scss +99 -0
  63. package/lib/cjs/core-react/tabs/vertical.scss +53 -0
  64. package/lib/cjs/core-react/text/FilteredText.scss +8 -0
  65. package/lib/cjs/core-react/text/block.scss +15 -0
  66. package/lib/cjs/core-react/text/body.scss +13 -0
  67. package/lib/cjs/core-react/text/classes.scss +18 -0
  68. package/lib/cjs/core-react/text/disabled.scss +7 -0
  69. package/lib/cjs/core-react/text/index.scss +10 -0
  70. package/lib/cjs/core-react/text/mixins.scss +26 -0
  71. package/lib/cjs/core-react/text/muted.scss +7 -0
  72. package/lib/cjs/core-react/tree/Branch.scss +13 -0
  73. package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -0
  74. package/lib/cjs/core-react/tree/Node.scss +68 -0
  75. package/lib/cjs/core-react/tree/Placeholder.scss +17 -0
  76. package/lib/cjs/core-react/tree/Tree.scss +22 -0
  77. package/lib/core-react/messagebox/MessageBox.d.ts.map +1 -1
  78. package/lib/core-react/messagebox/MessageBox.js +41 -29
  79. package/lib/core-react/messagebox/MessageBox.js.map +1 -1
  80. package/lib/core-react/messagebox/MessageBox.scss +3 -6
  81. package/lib/core-react/popup/Popup.js +6 -6
  82. package/lib/core-react/popup/Popup.js.map +1 -1
  83. package/lib/esm/core-react/_geometry.scss +70 -0
  84. package/lib/esm/core-react/_helpers.scss +54 -0
  85. package/lib/esm/core-react/_math.scss +13 -0
  86. package/lib/esm/core-react/_scrollbar.scss +57 -0
  87. package/lib/esm/core-react/_typography.scss +44 -0
  88. package/lib/esm/core-react/_z-index.scss +51 -0
  89. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -0
  90. package/lib/esm/core-react/badge/DeprecatedBadge.scss +11 -0
  91. package/lib/esm/core-react/badge/NewBadge.scss +12 -0
  92. package/lib/esm/core-react/badge/TechnicalPreviewBadge.scss +11 -0
  93. package/lib/esm/core-react/base/base.scss +44 -0
  94. package/lib/esm/core-react/base/classes.scss +27 -0
  95. package/lib/esm/core-react/base/index.scss +5 -0
  96. package/lib/esm/core-react/button/UnderlinedButton.scss +29 -0
  97. package/lib/esm/core-react/checklistbox/CheckListBox.scss +22 -0
  98. package/lib/esm/core-react/classes.scss +9 -0
  99. package/lib/esm/core-react/colorthemes.scss +12 -0
  100. package/lib/esm/core-react/colorvariables.scss +139 -0
  101. package/lib/esm/core-react/contextmenu/ContextMenu.scss +226 -0
  102. package/lib/esm/core-react/contextmenu/PopupContextMenu.scss +8 -0
  103. package/lib/esm/core-react/dialog/Dialog.scss +57 -0
  104. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +93 -0
  105. package/lib/esm/core-react/icons/IconComponent.scss +19 -0
  106. package/lib/esm/core-react/icons/SvgPath.scss +15 -0
  107. package/lib/esm/core-react/icons/WebFontIcon.scss +15 -0
  108. package/lib/esm/core-react/icons/classes.scss +18 -0
  109. package/lib/esm/core-react/icons/index.scss +6 -0
  110. package/lib/esm/core-react/icons/mixins.scss +27 -0
  111. package/lib/esm/core-react/icons/variables.scss +12 -0
  112. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
  113. package/lib/esm/core-react/index.scss +18 -0
  114. package/lib/esm/core-react/inputs/classes.scss +12 -0
  115. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +33 -0
  116. package/lib/esm/core-react/inputs/index.scss +9 -0
  117. package/lib/esm/core-react/inputs/input-label.scss +95 -0
  118. package/lib/esm/core-react/inputs/input.scss +56 -0
  119. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -0
  120. package/lib/esm/core-react/inputs/variables.scss +41 -0
  121. package/lib/esm/core-react/layout-variables.scss +15 -0
  122. package/lib/esm/core-react/listbox/Listbox.scss +54 -0
  123. package/lib/esm/core-react/loading/LoadingBar.scss +27 -0
  124. package/lib/esm/core-react/loading/LoadingPrompt.scss +29 -0
  125. package/lib/esm/core-react/loading/LoadingSpinner.scss +24 -0
  126. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -0
  127. package/lib/esm/core-react/loading/index.scss +5 -0
  128. package/lib/esm/core-react/loading/mixins.scss +57 -0
  129. package/lib/esm/core-react/messagebox/MessageBox.scss +52 -0
  130. package/lib/esm/core-react/popup/Popup.scss +239 -0
  131. package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -0
  132. package/lib/esm/core-react/searchbox/SearchBox.scss +45 -0
  133. package/lib/esm/core-react/settings/SettingsContainer.scss +65 -0
  134. package/lib/esm/core-react/style/baseline.scss +11 -0
  135. package/lib/esm/core-react/style/breakpoints.scss +59 -0
  136. package/lib/esm/core-react/style/colors.scss +77 -0
  137. package/lib/esm/core-react/style/index.scss +10 -0
  138. package/lib/esm/core-react/style/mixins.scss +23 -0
  139. package/lib/esm/core-react/style/opacity.scss +16 -0
  140. package/lib/esm/core-react/style/themecolors.scss +133 -0
  141. package/lib/esm/core-react/tabs/classes.scss +9 -0
  142. package/lib/esm/core-react/tabs/index.scss +5 -0
  143. package/lib/esm/core-react/tabs/tabs.scss +99 -0
  144. package/lib/esm/core-react/tabs/vertical.scss +53 -0
  145. package/lib/esm/core-react/text/FilteredText.scss +8 -0
  146. package/lib/esm/core-react/text/block.scss +15 -0
  147. package/lib/esm/core-react/text/body.scss +13 -0
  148. package/lib/esm/core-react/text/classes.scss +18 -0
  149. package/lib/esm/core-react/text/disabled.scss +7 -0
  150. package/lib/esm/core-react/text/index.scss +10 -0
  151. package/lib/esm/core-react/text/mixins.scss +26 -0
  152. package/lib/esm/core-react/text/muted.scss +7 -0
  153. package/lib/esm/core-react/tree/Branch.scss +13 -0
  154. package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -0
  155. package/lib/esm/core-react/tree/Node.scss +68 -0
  156. package/lib/esm/core-react/tree/Placeholder.scss +17 -0
  157. package/lib/esm/core-react/tree/Tree.scss +22 -0
  158. package/package.json +7 -13
@@ -0,0 +1,18 @@
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/index";
6
+
7
+ @forward "./_scrollbar";
8
+ @forward "./_z-index";
9
+ @forward "./_geometry";
10
+ @forward "./_math";
11
+ @forward "./_typography";
12
+
13
+ @forward "./base/index";
14
+ @forward "./icons/index";
15
+ @forward "./inputs/index";
16
+ @forward "./loading/index";
17
+ @forward "./tabs/index";
18
+ @forward "./text/index";
@@ -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
+ @use "./index" as *;
6
+
7
+ .uicore-inputs-input {
8
+ @include uicore-inputs-input;
9
+ }
10
+ .uicore-inputs-labeled-input {
11
+ @include uicore-inputs-labeled-input;
12
+ }
@@ -0,0 +1,33 @@
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/base" as *;
6
+
7
+ .core-iconInput-container {
8
+ position: relative;
9
+ padding: 0;
10
+ margin: 0;
11
+
12
+ .core-input {
13
+ margin: 0;
14
+ padding-left: 30px;
15
+ }
16
+
17
+ .core-iconInput-icon {
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ width: 30px;
22
+ height: 100%;
23
+ @include uicore-centered;
24
+
25
+ .icon {
26
+ width: 16px;
27
+ height: 16px;
28
+
29
+ margin-top: 2px;
30
+ @include uicore-centered;
31
+ }
32
+ }
33
+ }
@@ -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
+ @forward "../style/index";
6
+
7
+ @forward "./variables";
8
+ @forward "./input";
9
+ @forward "./input-label";
@@ -0,0 +1,95 @@
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 "../style/baseline";
6
+
7
+ @forward "../style/index";
8
+
9
+ @mixin uicore-inputs-labeled-input {
10
+ display: block;
11
+ padding: 0;
12
+ margin: 0 0 baseline.$uicore-unbordered-padding;
13
+ text-align: left;
14
+ font-size: var(--iui-font-size-1);
15
+ font-weight: var(--iui-font-weight-normal);
16
+ cursor: pointer;
17
+
18
+ > .uicore-label {
19
+ padding: 0;
20
+ margin: 0;
21
+ border: 0 none transparent;
22
+ display: block;
23
+ font-size: var(--iui-font-size-1);
24
+ font-weight: var(--iui-font-weight-semibold);
25
+ line-height: var(--iui-size-l);
26
+ text-align: left;
27
+ color: var(--iui-color-text);
28
+ }
29
+
30
+ > .input {
31
+ position: relative;
32
+ /// Needed to vertically align the icon:
33
+ display: inline-block;
34
+ width: 100%;
35
+
36
+ &.with-icon {
37
+ > input {
38
+ padding-right: calc(
39
+ #{baseline.$uicore-bordered-padding} + var(--iui-size-l)
40
+ );
41
+ margin-right: calc(
42
+ #{baseline.$uicore-bordered-padding} + var(--iui-size-l)
43
+ );
44
+ }
45
+ }
46
+
47
+ > .icon {
48
+ display: flex;
49
+ align-items: center;
50
+ position: absolute;
51
+ right: 0;
52
+ top: 0;
53
+ bottom: 0;
54
+ padding: baseline.$uicore-bordered-padding;
55
+
56
+ font-size: var(--iui-font-size-1);
57
+ font-weight: normal;
58
+ }
59
+ }
60
+
61
+ > .uicore-message {
62
+ display: block;
63
+ font-size: var(--iui-font-size-0);
64
+ line-height: var(--iui-size-l);
65
+ color: var(--iui-color-text-muted);
66
+ }
67
+
68
+ /// Status colors ----------------------------------------------------------
69
+
70
+ $status-colors: (
71
+ success: var(--iui-color-positive-hsl),
72
+ warning: var(--iui-color-warning-hsl),
73
+ error: var(--iui-color-negative-hsl),
74
+ );
75
+
76
+ @each $status, $color in $status-colors {
77
+ &.#{$status},
78
+ &.#{$status} > .uicore-message {
79
+ color: rgb($color);
80
+ }
81
+
82
+ &.#{$status} > .input {
83
+ > input,
84
+ > .uicore-inputs-input {
85
+ border-color: rgb($color);
86
+ box-shadow: var(--iui-focus-box-shadow) 0px 1px 1px inset;
87
+
88
+ &:focus {
89
+ border-color: rgb($color);
90
+ box-shadow: rgba($color, var(--iui-opacity-4)) 0px 0px 0px 2px;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,56 @@
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 "./variables";
6
+
7
+ @forward "../style/index";
8
+ @forward "./variables";
9
+
10
+ @mixin uicore-inputs-input {
11
+ display: block;
12
+ width: 100%;
13
+ padding: variables.$uicore-iui-input-padding;
14
+ margin: variables.$uicore-inputs-margin 0;
15
+ font-family: var(--iui-font-sans);
16
+ font-size: var(--iui-font-size-1);
17
+ line-height: normal;
18
+ color: var(--iui-color-text);
19
+ background-color: var(--iui-color-background);
20
+ background-image: none;
21
+ border: 1px solid var(--iui-color-border-foreground);
22
+ border-radius: var(--iui-border-radius-1);
23
+ box-shadow: var(--iui-focus-box-shadow) 0px 1px 1px inset;
24
+ box-sizing: border-box;
25
+ transition: border-color var(--iui-duration-1) ease-in-out,
26
+ box-shadow var(--iui-duration-1) ease-in-out;
27
+
28
+ &:-ms-input-placeholder {
29
+ color: var(--iui-color-text-disabled);
30
+ }
31
+ &::-webkit-input-placeholder {
32
+ color: var(--iui-color-text-disabled);
33
+ }
34
+ &::placeholder {
35
+ color: var(--iui-color-text-disabled);
36
+ }
37
+
38
+ &[disabled] {
39
+ background-color: var(--iui-color-background-backdrop);
40
+ border-color: var(--iui-color-text-disabled);
41
+ color: var(--iui-color-text-disabled);
42
+ cursor: not-allowed;
43
+ opacity: var(--iui-opacity-4);
44
+ }
45
+
46
+ &[readonly] {
47
+ color: var(--iui-color-text-muted);
48
+ cursor: default;
49
+ }
50
+
51
+ &:focus {
52
+ outline: 0px;
53
+ border-color: hsl(var(--iui-color-foreground-hsl) / var(--iui-opacity-4));
54
+ box-shadow: variables.$uicore-inputs-focus-boxshadow;
55
+ }
56
+ }
@@ -0,0 +1,88 @@
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/base" as *;
6
+ @use "../variables" as *;
7
+
8
+ .core-number-input-container {
9
+ position: relative;
10
+ padding: 0;
11
+ margin: 0;
12
+ box-sizing: border-box;
13
+
14
+ input {
15
+ margin: 0;
16
+ padding-right: 1.5em;
17
+
18
+ &.core-input {
19
+ padding: $uicore-iui-input-padding;
20
+ }
21
+ }
22
+
23
+ &.core-number-buttons-for-touch {
24
+ input {
25
+ padding-right: 3.5em;
26
+ }
27
+ }
28
+
29
+ .core-number-input-buttons-container {
30
+ position: absolute;
31
+ top: 0;
32
+ right: 0;
33
+ width: 20px;
34
+ height: 100%;
35
+ @include uicore-centered;
36
+ flex-direction: column;
37
+
38
+ .core-number-input-button {
39
+ font-size: 8px;
40
+ outline: none;
41
+ height: 100%;
42
+ width: 100%;
43
+ @include uicore-centered;
44
+ &:hover {
45
+ color: var(--iui-color-text-accent-hover);
46
+ transition-duration: 150ms;
47
+ }
48
+ &.core-number-input-button-up {
49
+ padding-top: 1px;
50
+ }
51
+ &.core-number-input-button-down {
52
+ padding-top: 1px;
53
+ }
54
+ }
55
+
56
+ &.core-number-buttons-for-touch {
57
+ width: 3.5em;
58
+ flex-direction: row-reverse;
59
+
60
+ .core-number-input-button {
61
+ font-size: 1em;
62
+
63
+ &:hover {
64
+ color: unset;
65
+ transition-duration: unset;
66
+ }
67
+
68
+ &.core-number-input-button-up {
69
+ padding-top: 2px;
70
+ }
71
+ &.core-number-input-button-down {
72
+ padding-top: 2px;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ &.core-number-input-disabled {
78
+ .core-number-input-button-up {
79
+ pointer-events: none;
80
+ color: var(--iui-color-text-disabled);
81
+ }
82
+
83
+ .core-number-input-button-down {
84
+ pointer-events: none;
85
+ color: var(--iui-color-text-disabled);
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,41 @@
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/baseline";
6
+ @forward "../style/themecolors";
7
+
8
+ // cspell:ignore unbordered
9
+
10
+ $uicore-inputs-height: 22px;
11
+ $uicore-inputs-height-large: 40px;
12
+ $uicore-line-height: calc(var(--iui-size-s) * 1.4);
13
+
14
+ $uicore-inputs-padding: calc(
15
+ (#{$uicore-inputs-height} - #{$uicore-line-height}) * 0.5
16
+ );
17
+ $uicore-inputs-padding-large: calc(
18
+ (#{$uicore-inputs-height-large} - #{$uicore-line-height}) * 0.5
19
+ );
20
+ $uicore-inputs-padding-bordered: calc(#{$uicore-inputs-padding} - 2px);
21
+ $uicore-inputs-padding-bordered-large: calc(
22
+ #{$uicore-inputs-padding-large} - 2px
23
+ );
24
+
25
+ $uicore-inputs-margin: calc(
26
+ (#{$uicore-line-height} * 2 - #{$uicore-inputs-height}) * 0.5
27
+ );
28
+ $uicore-inputs-margin-large: calc(
29
+ (#{$uicore-line-height} * 3 - #{$uicore-inputs-height-large}) * 0.5
30
+ );
31
+
32
+ $uicore-inputs-border-color: hsl(
33
+ var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
34
+ );
35
+
36
+ $uicore-inputs-focus-boxshadow: hsl(
37
+ var(--iui-color-accent-hsl) / var(--iui-opacity-4)
38
+ )
39
+ 0px 0px 0px 2px;
40
+
41
+ $uicore-iui-input-padding: var(--iui-size-3xs) var(--iui-size-xs);
@@ -0,0 +1,15 @@
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 "./z-index" as *;
6
+
7
+ :root {
8
+ /** Default Widget Opacity */
9
+ --buic-widget-opacity: 0.9;
10
+ /** Default Toolbar Opacity */
11
+ --buic-toolbar-opacity: 0.5;
12
+
13
+ /** CSS variables for each z-index layer */
14
+ @include uicore-z-index-variables();
15
+ }
@@ -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 "../index" as *;
6
+
7
+ $uicore-list-item-height: calc(var(--iui-size-s) * 2);
8
+
9
+ ul.core-listbox {
10
+ list-style: none;
11
+ outline: none;
12
+ padding: 0;
13
+ margin: 0;
14
+ box-sizing: border-box;
15
+ width: 100%;
16
+ height: 100%;
17
+ display: flex;
18
+ flex-direction: column;
19
+ overflow: auto;
20
+ color: var(--iui-color-text);
21
+ border: 1px solid var(--iui-color-border);
22
+ position: relative; // required to properly set scrollTop position
23
+
24
+ @include uicore-touch-scrolling;
25
+ @include uicore-scrollbar();
26
+
27
+ &:focus {
28
+ border-color: var(--iui-color-border-accent);
29
+
30
+ li.core-listbox-item.focused {
31
+ background-color: var(--iui-color-background-accent-muted);
32
+ border: 1px solid var(--iui-color-border-accent);
33
+ }
34
+ }
35
+
36
+ li.core-listbox-item {
37
+ display: inline-flex;
38
+ line-height: $uicore-list-item-height;
39
+ padding-left: 4px;
40
+
41
+ &[aria-selected="true"] {
42
+ background-color: var(--iui-color-background-accent-muted);
43
+ }
44
+
45
+ &[aria-disabled="true"] {
46
+ pointer-events: none;
47
+ color: var(--iui-color-text-disabled);
48
+ }
49
+
50
+ &:hover {
51
+ background-color: var(--iui-color-background-hover);
52
+ }
53
+ }
54
+ }
@@ -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
+ .core-lb {
6
+ display: flex;
7
+ align-items: center;
8
+
9
+ > .lb-container {
10
+ background-color: var(--iui-color-background-disabled);
11
+ flex: 1;
12
+
13
+ > .fill {
14
+ height: 100%;
15
+ background-color: var(--iui-color-icon-accent);
16
+ transition: width 0.3s linear;
17
+ }
18
+ }
19
+
20
+ > .percent {
21
+ flex: initial;
22
+ opacity: 0.85;
23
+ width: 3em;
24
+ font-size: 0.9em;
25
+ margin-left: 0.3em;
26
+ }
27
+ }
@@ -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
+ .core-loadingprompt {
6
+ height: 100%;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ flex-direction: column;
11
+
12
+ .title {
13
+ font-size: 32px;
14
+ font-weight: 600;
15
+ margin-bottom: 10px;
16
+ color: var(--iui-color-text);
17
+ }
18
+
19
+ .message {
20
+ font-size: 14px;
21
+ margin-bottom: 1.75em;
22
+ color: var(--iui-color-text);
23
+ }
24
+ }
25
+
26
+ /* cancel button */
27
+ .loading-prompt-cancel {
28
+ margin-top: 2em;
29
+ }
@@ -0,0 +1,24 @@
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-ls {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ flex-direction: column;
10
+
11
+ .ls-message {
12
+ color: var(--iui-color-text);
13
+ }
14
+
15
+ .ls-message-top {
16
+ @extend .ls-message;
17
+ margin-bottom: var(--iui-size-s);
18
+ }
19
+
20
+ .ls-message-bottom {
21
+ @extend .ls-message;
22
+ margin-top: var(--iui-size-s);
23
+ }
24
+ }
@@ -0,0 +1,20 @@
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
+ .loading-status-container {
7
+ display: flex;
8
+ align-items: center;
9
+ opacity: 0.9;
10
+ font-size: 12px;
11
+ }
12
+
13
+ .loading-status-message {
14
+ flex: 1;
15
+ }
16
+
17
+ .loading-status-percent {
18
+ flex: initial;
19
+ margin-right: auto;
20
+ }
@@ -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 "./mixins";
@@ -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/index";
6
+
7
+ @mixin uicore-spinner(
8
+ $size,
9
+ $borderSize: $size * 0.125,
10
+ $activeColor: var(--iui-color-icon-accent),
11
+ $selector: "&::after",
12
+ $time: 1.5s
13
+ ) {
14
+ // Animation Keyframes
15
+ @keyframes uicoreSpinner {
16
+ 0% {
17
+ transform: translate3d(-50%, -50%, 0) rotate(0deg);
18
+ }
19
+ 100% {
20
+ transform: translate3d(-50%, -50%, 0) rotate(360deg);
21
+ }
22
+ }
23
+
24
+ display: inline-block;
25
+ position: relative;
26
+
27
+ width: $size;
28
+ height: $size;
29
+
30
+ // Styles to fade out spinner when loaded
31
+ &.-loaded {
32
+ opacity: 0;
33
+ transition: opacity linear 0.1s;
34
+ }
35
+
36
+ // Spinner
37
+ #{$selector} {
38
+ height: $size;
39
+ width: $size;
40
+
41
+ border: solid $borderSize var(--iui-color-background-disabled);
42
+ border-bottom-color: #{$activeColor};
43
+ border-radius: 50%;
44
+ box-sizing: border-box;
45
+
46
+ content: "";
47
+ opacity: inherit;
48
+ position: absolute;
49
+ left: 50%;
50
+ top: 50%;
51
+
52
+ animation: $time 0.1s linear infinite uicoreSpinner;
53
+ transform: translate3d(-50%, -50%, 0);
54
+ transform-origin: center;
55
+ will-change: transform;
56
+ }
57
+ }
@@ -0,0 +1,52 @@
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 "../icons/variables" as *;
6
+ @use "../style/baseline" as *;
7
+
8
+ .core-message-box-container {
9
+ display: flex;
10
+ color: var(--iui-color-text);
11
+ gap: var(--iui-size-m);
12
+
13
+ .core-message-box-icon {
14
+ font-size: $uicore-icons-medium;
15
+ }
16
+
17
+ .core-message-box-content {
18
+ display: flex;
19
+ flex: 1;
20
+ flex-direction: column;
21
+
22
+ a {
23
+ // iTwinUI anchor link style
24
+ color: var(--iui-color-text-accent);
25
+ -webkit-tap-highlight-color: hsl(
26
+ var(--iui-color-accent-hsl) / var(--iui-opacity-6)
27
+ );
28
+ border-radius: var(--iui-border-radius-1);
29
+ cursor: pointer;
30
+ text-decoration: none;
31
+ }
32
+ }
33
+ }
34
+
35
+ .core-message-box-success {
36
+ color: var(--iui-color-text-positive);
37
+ }
38
+ .core-message-box-information,
39
+ .core-message-box-question {
40
+ color: var(--iui-color-text-informational);
41
+ }
42
+ .core-message-box-warning {
43
+ color: var(--iui-color-text-warning);
44
+ }
45
+ .core-message-box-error,
46
+ .core-message-box-fatal {
47
+ color: var(--iui-color-text-negative);
48
+ }
49
+
50
+ .notifymessage-icon {
51
+ margin-right: 6px;
52
+ }