@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,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
+ }
@@ -0,0 +1,239 @@
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
+ .core-popup {
8
+ top: 0;
9
+ left: 0;
10
+ display: block;
11
+ box-sizing: border-box;
12
+ position: absolute;
13
+ border-radius: var(--iui-border-radius-1);
14
+ border: 1px solid var(--iui-color-border);
15
+ background: var(--iui-color-background);
16
+ color: var(--iui-color-text);
17
+ animation-duration: var(--iui-duration-1);
18
+ animation-timing-function: ease;
19
+ animation-fill-mode: forwards;
20
+ cursor: default;
21
+
22
+ @include uicore-z-index(dialog-popup);
23
+
24
+ &.core-popup-animation-none {
25
+ animation-duration: 0s;
26
+ }
27
+
28
+ &.core-popup-hidden {
29
+ display: none;
30
+ }
31
+
32
+ &.core-animation-ended {
33
+ animation-name: none;
34
+ }
35
+ }
36
+
37
+ .core-popup.arrow::after,
38
+ .core-popup.arrow::before {
39
+ border: solid transparent;
40
+ content: " ";
41
+ height: 0;
42
+ width: 0;
43
+ position: absolute;
44
+ pointer-events: none;
45
+ color: var(--iui-color-background);
46
+ }
47
+
48
+ .core-popup.core-popup-bottom-left.arrow::after,
49
+ .core-popup.core-popup-bottom-left.arrow::before {
50
+ bottom: 100%;
51
+ left: 25%;
52
+ }
53
+
54
+ .core-popup.core-popup-bottom-right.arrow::after,
55
+ .core-popup.core-popup-bottom-right.arrow::before {
56
+ bottom: 100%;
57
+ left: 75%;
58
+ }
59
+
60
+ .core-popup.core-popup-bottom.arrow::after,
61
+ .core-popup.core-popup-bottom.arrow::before {
62
+ bottom: 100%;
63
+ left: 50%;
64
+ }
65
+
66
+ .core-popup.core-popup-top.arrow::after,
67
+ .core-popup.core-popup-top.arrow::before {
68
+ top: 100%;
69
+ left: 50%;
70
+ }
71
+
72
+ .core-popup.core-popup-top-left.arrow::after,
73
+ .core-popup.core-popup-top-left.arrow::before {
74
+ top: 100%;
75
+ left: 25%;
76
+ }
77
+
78
+ .core-popup.core-popup-top-right.arrow::after,
79
+ .core-popup.core-popup-top-right.arrow::before {
80
+ top: 100%;
81
+ left: 75%;
82
+ }
83
+
84
+ .core-popup.core-popup-left.arrow::after,
85
+ .core-popup.core-popup-left.arrow::before {
86
+ top: 50%;
87
+ left: 100%;
88
+ }
89
+
90
+ .core-popup.core-popup-right.arrow::after,
91
+ .core-popup.core-popup-right.arrow::before {
92
+ top: 50%;
93
+ right: 100%;
94
+ }
95
+
96
+ .core-popup.core-popup-bottom.arrow::before,
97
+ .core-popup.core-popup-bottom-left.arrow::before,
98
+ .core-popup.core-popup-bottom-right.arrow::before {
99
+ border-bottom-color: inherit;
100
+ border-width: 9px;
101
+ margin-left: -9px;
102
+ }
103
+
104
+ .core-popup.core-popup-top.arrow::before,
105
+ .core-popup.core-popup-top-left.arrow::before,
106
+ .core-popup.core-popup-top-right.arrow::before {
107
+ border-top-color: inherit;
108
+ border-width: 9px;
109
+ margin-left: -9px;
110
+ }
111
+
112
+ .core-popup.core-popup-left.arrow::before {
113
+ border-left-color: inherit;
114
+ border-width: 9px;
115
+ margin-top: -9px;
116
+ }
117
+
118
+ .core-popup.core-popup-right.arrow::before {
119
+ border-right-color: inherit;
120
+ border-width: 9px;
121
+ margin-top: -9px;
122
+ }
123
+
124
+ .core-popup.core-popup-bottom.arrow::after,
125
+ .core-popup.core-popup-bottom-left.arrow::after,
126
+ .core-popup.core-popup-bottom-right.arrow::after {
127
+ border-bottom-color: currentColor;
128
+ border-width: 8px;
129
+ margin-left: -8px;
130
+ }
131
+
132
+ .core-popup.core-popup-top.arrow::after,
133
+ .core-popup.core-popup-top-left.arrow::after,
134
+ .core-popup.core-popup-top-right.arrow::after {
135
+ border-top-color: currentColor;
136
+ border-width: 8px;
137
+ margin-left: -8px;
138
+ }
139
+
140
+ .core-popup.core-popup-left.arrow::after {
141
+ border-left-color: currentColor;
142
+ border-width: 8px;
143
+ margin-top: -8px;
144
+ }
145
+
146
+ .core-popup.core-popup-right.arrow::after {
147
+ border-right-color: currentColor;
148
+ border-width: 8px;
149
+ margin-top: -8px;
150
+ }
151
+
152
+ .core-popup-shadow {
153
+ -webkit-box-shadow: var(--iui-shadow-4);
154
+ box-shadow: var(--iui-shadow-4);
155
+ background-clip: padding-box;
156
+ }
157
+
158
+ .core-popup-top-left {
159
+ transform-origin: left bottom 0px;
160
+ animation-name: animate-corner;
161
+ }
162
+
163
+ .core-popup-top-right {
164
+ transform-origin: right bottom 0px;
165
+ animation-name: animate-corner;
166
+ }
167
+
168
+ .core-popup-bottom-left {
169
+ transform-origin: left top 0px;
170
+ animation-name: animate-corner;
171
+ }
172
+
173
+ .core-popup-bottom-right {
174
+ transform-origin: right top 0px;
175
+ animation-name: animate-corner;
176
+ }
177
+
178
+ .core-popup-left {
179
+ transform-origin: right;
180
+ animation-name: animate-horizontal;
181
+ }
182
+
183
+ .core-popup-left-top {
184
+ transform-origin: right top 0px;
185
+ animation-name: animate-corner;
186
+ }
187
+
188
+ .core-popup-right {
189
+ transform-origin: left;
190
+ animation-name: animate-horizontal;
191
+ }
192
+
193
+ .core-popup-right-top {
194
+ transform-origin: left top 0px;
195
+ animation-name: animate-corner;
196
+ }
197
+
198
+ .core-popup-top {
199
+ transform-origin: bottom;
200
+ animation-name: animate-vertical;
201
+ }
202
+
203
+ .core-popup-bottom {
204
+ transform-origin: top;
205
+ animation-name: animate-vertical;
206
+ }
207
+
208
+ @keyframes animate-vertical {
209
+ from {
210
+ visibility: hidden;
211
+ transform: scale(1, 0.5);
212
+ }
213
+ to {
214
+ visibility: visible;
215
+ transform: scale(1);
216
+ }
217
+ }
218
+
219
+ @keyframes animate-corner {
220
+ from {
221
+ visibility: hidden;
222
+ transform: scale(0.5, 0.5);
223
+ }
224
+ to {
225
+ visibility: visible;
226
+ transform: scale(1, 1);
227
+ }
228
+ }
229
+
230
+ @keyframes animate-horizontal {
231
+ from {
232
+ visibility: hidden;
233
+ transform: scale(0.5, 1);
234
+ }
235
+ to {
236
+ visibility: visible;
237
+ transform: scale(1, 1);
238
+ }
239
+ }
@@ -0,0 +1,55 @@
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
+ @use "../icons/variables" as *;
7
+
8
+ .core-radial-menu {
9
+ visibility: hidden;
10
+ position: fixed;
11
+
12
+ @include uicore-z-index(dialog);
13
+
14
+ &.opened {
15
+ visibility: inherit;
16
+ }
17
+
18
+ > .core-radial-menu-container {
19
+ margin-left: -50%;
20
+ margin-top: -50%;
21
+
22
+ .core-radial-menu-sector {
23
+ stroke: var(--iui-color-background-disabled);
24
+ fill: var(--iui-color-background);
25
+ stroke-width: 1px;
26
+
27
+ &.selected {
28
+ fill: var(--iui-color-background-accent-muted);
29
+ }
30
+ }
31
+
32
+ .core-radial-menu-button-svg {
33
+ .core-radial-menu-button-container {
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+
38
+ .core-radial-menu-button-icon {
39
+ height: $uicore-icons-small;
40
+ width: $uicore-icons-small;
41
+ line-height: $uicore-icons-small;
42
+ color: var(--iui-color-text);
43
+ }
44
+
45
+ .core-radial-menu-button-content {
46
+ cursor: default;
47
+ color: var(--iui-color-text);
48
+ font-size: var(--iui-font-size-0);
49
+ user-select: none;
50
+ -webkit-user-select: none;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,45 @@
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-searchbox {
6
+ font-family: var(--iui-font-sans);
7
+ display: flex;
8
+ align-items: center;
9
+ position: relative;
10
+ //default values (height, width, font-size, color)
11
+ height: 28px;
12
+ width: 12em;
13
+ font-size: var(--iui-font-size-1);
14
+ color: var(--iui-color-text);
15
+
16
+ input {
17
+ min-height: 28px;
18
+ padding: var(--iui-size-3xs) 2em var(--iui-size-3xs) 12px; //12px from design guide
19
+ height: 100%;
20
+ margin: 0;
21
+ color: inherit;
22
+ font-size: inherit;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ .core-searchbox-button {
27
+ position: absolute;
28
+ height: 100%;
29
+ right: 0;
30
+ width: 2em;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ overflow: hidden;
35
+ cursor: pointer;
36
+
37
+ &:hover span {
38
+ color: var(--iui-color-text-accent);
39
+ }
40
+
41
+ &:focus {
42
+ outline: none;
43
+ }
44
+ }
45
+ }