@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.
- package/CHANGELOG.md +49 -1
- package/lib/cjs/core-react/_geometry.scss +70 -0
- package/lib/cjs/core-react/_helpers.scss +54 -0
- package/lib/cjs/core-react/_math.scss +13 -0
- package/lib/cjs/core-react/_scrollbar.scss +57 -0
- package/lib/cjs/core-react/_typography.scss +44 -0
- package/lib/cjs/core-react/_z-index.scss +51 -0
- package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -0
- package/lib/cjs/core-react/badge/DeprecatedBadge.scss +11 -0
- package/lib/cjs/core-react/badge/NewBadge.scss +12 -0
- package/lib/cjs/core-react/badge/TechnicalPreviewBadge.scss +11 -0
- package/lib/cjs/core-react/base/base.scss +44 -0
- package/lib/cjs/core-react/base/classes.scss +27 -0
- package/lib/cjs/core-react/base/index.scss +5 -0
- package/lib/cjs/core-react/button/UnderlinedButton.scss +29 -0
- package/lib/cjs/core-react/checklistbox/CheckListBox.scss +22 -0
- package/lib/cjs/core-react/classes.scss +9 -0
- package/lib/cjs/core-react/colorthemes.scss +12 -0
- package/lib/cjs/core-react/colorvariables.scss +139 -0
- package/lib/cjs/core-react/contextmenu/ContextMenu.scss +226 -0
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.scss +8 -0
- package/lib/cjs/core-react/dialog/Dialog.scss +57 -0
- package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +93 -0
- package/lib/cjs/core-react/icons/IconComponent.scss +19 -0
- package/lib/cjs/core-react/icons/SvgPath.scss +15 -0
- package/lib/cjs/core-react/icons/WebFontIcon.scss +15 -0
- package/lib/cjs/core-react/icons/classes.scss +18 -0
- package/lib/cjs/core-react/icons/index.scss +6 -0
- package/lib/cjs/core-react/icons/mixins.scss +27 -0
- package/lib/cjs/core-react/icons/variables.scss +12 -0
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
- package/lib/cjs/core-react/index.scss +18 -0
- package/lib/cjs/core-react/inputs/classes.scss +12 -0
- package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +33 -0
- package/lib/cjs/core-react/inputs/index.scss +9 -0
- package/lib/cjs/core-react/inputs/input-label.scss +95 -0
- package/lib/cjs/core-react/inputs/input.scss +56 -0
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -0
- package/lib/cjs/core-react/inputs/variables.scss +41 -0
- package/lib/cjs/core-react/layout-variables.scss +15 -0
- package/lib/cjs/core-react/listbox/Listbox.scss +54 -0
- package/lib/cjs/core-react/loading/LoadingBar.scss +27 -0
- package/lib/cjs/core-react/loading/LoadingPrompt.scss +29 -0
- package/lib/cjs/core-react/loading/LoadingSpinner.scss +24 -0
- package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -0
- package/lib/cjs/core-react/loading/index.scss +5 -0
- package/lib/cjs/core-react/loading/mixins.scss +57 -0
- package/lib/cjs/core-react/messagebox/MessageBox.scss +52 -0
- package/lib/cjs/core-react/popup/Popup.scss +239 -0
- package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -0
- package/lib/cjs/core-react/searchbox/SearchBox.scss +45 -0
- package/lib/cjs/core-react/settings/SettingsContainer.scss +65 -0
- package/lib/cjs/core-react/style/baseline.scss +11 -0
- package/lib/cjs/core-react/style/breakpoints.scss +59 -0
- package/lib/cjs/core-react/style/colors.scss +77 -0
- package/lib/cjs/core-react/style/index.scss +10 -0
- package/lib/cjs/core-react/style/mixins.scss +23 -0
- package/lib/cjs/core-react/style/opacity.scss +16 -0
- package/lib/cjs/core-react/style/themecolors.scss +133 -0
- package/lib/cjs/core-react/tabs/classes.scss +9 -0
- package/lib/cjs/core-react/tabs/index.scss +5 -0
- package/lib/cjs/core-react/tabs/tabs.scss +99 -0
- package/lib/cjs/core-react/tabs/vertical.scss +53 -0
- package/lib/cjs/core-react/text/FilteredText.scss +8 -0
- package/lib/cjs/core-react/text/block.scss +15 -0
- package/lib/cjs/core-react/text/body.scss +13 -0
- package/lib/cjs/core-react/text/classes.scss +18 -0
- package/lib/cjs/core-react/text/disabled.scss +7 -0
- package/lib/cjs/core-react/text/index.scss +10 -0
- package/lib/cjs/core-react/text/mixins.scss +26 -0
- package/lib/cjs/core-react/text/muted.scss +7 -0
- package/lib/cjs/core-react/tree/Branch.scss +13 -0
- package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -0
- package/lib/cjs/core-react/tree/Node.scss +68 -0
- package/lib/cjs/core-react/tree/Placeholder.scss +17 -0
- package/lib/cjs/core-react/tree/Tree.scss +22 -0
- package/lib/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/core-react/messagebox/MessageBox.js +41 -29
- package/lib/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/core-react/messagebox/MessageBox.scss +3 -6
- package/lib/core-react/popup/Popup.js +6 -6
- package/lib/core-react/popup/Popup.js.map +1 -1
- package/lib/esm/core-react/_geometry.scss +70 -0
- package/lib/esm/core-react/_helpers.scss +54 -0
- package/lib/esm/core-react/_math.scss +13 -0
- package/lib/esm/core-react/_scrollbar.scss +57 -0
- package/lib/esm/core-react/_typography.scss +44 -0
- package/lib/esm/core-react/_z-index.scss +51 -0
- package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -0
- package/lib/esm/core-react/badge/DeprecatedBadge.scss +11 -0
- package/lib/esm/core-react/badge/NewBadge.scss +12 -0
- package/lib/esm/core-react/badge/TechnicalPreviewBadge.scss +11 -0
- package/lib/esm/core-react/base/base.scss +44 -0
- package/lib/esm/core-react/base/classes.scss +27 -0
- package/lib/esm/core-react/base/index.scss +5 -0
- package/lib/esm/core-react/button/UnderlinedButton.scss +29 -0
- package/lib/esm/core-react/checklistbox/CheckListBox.scss +22 -0
- package/lib/esm/core-react/classes.scss +9 -0
- package/lib/esm/core-react/colorthemes.scss +12 -0
- package/lib/esm/core-react/colorvariables.scss +139 -0
- package/lib/esm/core-react/contextmenu/ContextMenu.scss +226 -0
- package/lib/esm/core-react/contextmenu/PopupContextMenu.scss +8 -0
- package/lib/esm/core-react/dialog/Dialog.scss +57 -0
- package/lib/esm/core-react/elementseparator/ElementSeparator.scss +93 -0
- package/lib/esm/core-react/icons/IconComponent.scss +19 -0
- package/lib/esm/core-react/icons/SvgPath.scss +15 -0
- package/lib/esm/core-react/icons/WebFontIcon.scss +15 -0
- package/lib/esm/core-react/icons/classes.scss +18 -0
- package/lib/esm/core-react/icons/index.scss +6 -0
- package/lib/esm/core-react/icons/mixins.scss +27 -0
- package/lib/esm/core-react/icons/variables.scss +12 -0
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
- package/lib/esm/core-react/index.scss +18 -0
- package/lib/esm/core-react/inputs/classes.scss +12 -0
- package/lib/esm/core-react/inputs/iconinput/IconInput.scss +33 -0
- package/lib/esm/core-react/inputs/index.scss +9 -0
- package/lib/esm/core-react/inputs/input-label.scss +95 -0
- package/lib/esm/core-react/inputs/input.scss +56 -0
- package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -0
- package/lib/esm/core-react/inputs/variables.scss +41 -0
- package/lib/esm/core-react/layout-variables.scss +15 -0
- package/lib/esm/core-react/listbox/Listbox.scss +54 -0
- package/lib/esm/core-react/loading/LoadingBar.scss +27 -0
- package/lib/esm/core-react/loading/LoadingPrompt.scss +29 -0
- package/lib/esm/core-react/loading/LoadingSpinner.scss +24 -0
- package/lib/esm/core-react/loading/LoadingStatus.scss +20 -0
- package/lib/esm/core-react/loading/index.scss +5 -0
- package/lib/esm/core-react/loading/mixins.scss +57 -0
- package/lib/esm/core-react/messagebox/MessageBox.scss +52 -0
- package/lib/esm/core-react/popup/Popup.scss +239 -0
- package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -0
- package/lib/esm/core-react/searchbox/SearchBox.scss +45 -0
- package/lib/esm/core-react/settings/SettingsContainer.scss +65 -0
- package/lib/esm/core-react/style/baseline.scss +11 -0
- package/lib/esm/core-react/style/breakpoints.scss +59 -0
- package/lib/esm/core-react/style/colors.scss +77 -0
- package/lib/esm/core-react/style/index.scss +10 -0
- package/lib/esm/core-react/style/mixins.scss +23 -0
- package/lib/esm/core-react/style/opacity.scss +16 -0
- package/lib/esm/core-react/style/themecolors.scss +133 -0
- package/lib/esm/core-react/tabs/classes.scss +9 -0
- package/lib/esm/core-react/tabs/index.scss +5 -0
- package/lib/esm/core-react/tabs/tabs.scss +99 -0
- package/lib/esm/core-react/tabs/vertical.scss +53 -0
- package/lib/esm/core-react/text/FilteredText.scss +8 -0
- package/lib/esm/core-react/text/block.scss +15 -0
- package/lib/esm/core-react/text/body.scss +13 -0
- package/lib/esm/core-react/text/classes.scss +18 -0
- package/lib/esm/core-react/text/disabled.scss +7 -0
- package/lib/esm/core-react/text/index.scss +10 -0
- package/lib/esm/core-react/text/mixins.scss +26 -0
- package/lib/esm/core-react/text/muted.scss +7 -0
- package/lib/esm/core-react/tree/Branch.scss +13 -0
- package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -0
- package/lib/esm/core-react/tree/Node.scss +68 -0
- package/lib/esm/core-react/tree/Placeholder.scss +17 -0
- package/lib/esm/core-react/tree/Tree.scss +22 -0
- package/package.json +7 -13
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
// cspell:ignore mediumgray titlebar toolbutton outoffocus
|
|
7
|
+
|
|
8
|
+
/** @note: This file should only be imported by UiCore.ts.
|
|
9
|
+
* It should NOT be imported by any *.scss or other ui-core files.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
[data-root-container="appui-root-id"] {
|
|
13
|
+
// NEEDSWORK - Need to deprecate these accessory colors
|
|
14
|
+
--buic-accessory-hollow: rgb(255, 255, 255);
|
|
15
|
+
--buic-accessory-primary: rgb(000, 139, 225);
|
|
16
|
+
--buic-accessory-success: rgb(083, 162, 026);
|
|
17
|
+
--buic-accessory-alert: rgb(211, 010, 010);
|
|
18
|
+
--buic-accessory-warning: rgb(241, 139, 018);
|
|
19
|
+
--buic-accessory-primary-tint: rgb(165, 215, 245);
|
|
20
|
+
--buic-accessory-success-tint: rgb(195, 225, 175);
|
|
21
|
+
--buic-accessory-alert-tint: rgb(239, 169, 169);
|
|
22
|
+
--buic-accessory-warning-tint: rgb(249, 215, 171);
|
|
23
|
+
|
|
24
|
+
--buic-background-1: var(--iui-color-background);
|
|
25
|
+
--buic-background-2: var(--iui-color-background-hover);
|
|
26
|
+
--buic-background-3: var(--iui-color-background-backdrop);
|
|
27
|
+
--buic-background-4: var(--iui-color-background-backdrop-hover);
|
|
28
|
+
--buic-background-5: var(--iui-color-background-disabled);
|
|
29
|
+
--buic-background-editable: var(--iui-color-background);
|
|
30
|
+
--buic-background-primary: var(--iui-color-background-accent);
|
|
31
|
+
--buic-background-tooltip: hsl(var(--iui-color-background-hsl) / 0.9);
|
|
32
|
+
--buic-background-scrollbar: hsl(
|
|
33
|
+
var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
|
|
34
|
+
);
|
|
35
|
+
--buic-background-scrollbar-hover: hsl(
|
|
36
|
+
var(--iui-color-foreground-hsl) / var(--iui-opacity-3)
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
--buic-foreground-body-rgb: var(--iui-color-foreground-hsl);
|
|
40
|
+
--buic-foreground-body: var(--iui-color-text);
|
|
41
|
+
|
|
42
|
+
--buic-foreground-body-reverse-rgb: var(--iui-color-foreground-hsl);
|
|
43
|
+
--buic-foreground-body-reverse: hsl(
|
|
44
|
+
var(--iui-color-background-hsl) / var(--iui-opacity-2)
|
|
45
|
+
);
|
|
46
|
+
--buic-foreground-muted: var(--iui-color-text-muted);
|
|
47
|
+
--buic-foreground-disabled: var(--iui-color-text-disabled);
|
|
48
|
+
--buic-foreground-activehover: var(--iui-color-text);
|
|
49
|
+
|
|
50
|
+
--buic-inputs-border: hsl(
|
|
51
|
+
var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
|
|
52
|
+
);
|
|
53
|
+
--buic-inputs-boxshadow: var(--iui-focus-box-shadow);
|
|
54
|
+
--buic-popup-boxshadow: var(--buic-inputs-boxshadow);
|
|
55
|
+
|
|
56
|
+
--buic-foreground-primary: var(--iui-color-icon-accent);
|
|
57
|
+
--buic-foreground-primary-tone: var(--iui-color-text-accent-hover);
|
|
58
|
+
--buic-foreground-focus: var(--iui-color-text-accent-hover);
|
|
59
|
+
--buic-foreground-focus-border: var(--buic-inputs-border);
|
|
60
|
+
--buic-focus-boxshadow: hsl(
|
|
61
|
+
var(--iui-color-accent-hsl) / var(--iui-opacity-4)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
// The following two are still in use by DatePicker and there is no itwinui equivalent
|
|
65
|
+
--buic-focus-boxshadow-gradient1: hsl(
|
|
66
|
+
var(--buic-foreground-primary-tone-rgb) / 0
|
|
67
|
+
);
|
|
68
|
+
--buic-focus-boxshadow-gradient2: hsl(
|
|
69
|
+
var(--buic-foreground-primary-rgb) / 0.65
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
--buic-foreground-accessory: var(--iui-color-white);
|
|
73
|
+
--buic-foreground-success: var(--iui-color-text-positive);
|
|
74
|
+
--buic-foreground-positive: var(--iui-color-text-positive);
|
|
75
|
+
--buic-foreground-positive-rgb: var(--iui-color-positive-hsl);
|
|
76
|
+
--buic-foreground-alert: var(--iui-color-text-negative);
|
|
77
|
+
--buic-foreground-negative: var(--iui-color-text-negative);
|
|
78
|
+
--buic-foreground-negative-rgb: var(--iui-color-negative-hsl);
|
|
79
|
+
--buic-foreground-warning: var(--iui-color-text-warning);
|
|
80
|
+
--buic-foreground-warning-rgb: var(--iui-color-warning-hsl);
|
|
81
|
+
|
|
82
|
+
--buic-background-focus-overlay: hsl(var(--iui-opacity-6));
|
|
83
|
+
--buic-background-hover-overlay: hsl(
|
|
84
|
+
var(--iui-color-accent-hsl) / var(--iui-opacity-5)
|
|
85
|
+
);
|
|
86
|
+
--buic-background-active-overlay: hsl(
|
|
87
|
+
var(--iui-color-accent-hsl) / var(--iui-opacity-5)
|
|
88
|
+
);
|
|
89
|
+
--buic-background-pressed-overlay: hsl(var(--iui-color-accent-hsl) / 0.3);
|
|
90
|
+
|
|
91
|
+
--buic-background-card: var(--buic-background-tooltip);
|
|
92
|
+
--buic-background-striped_row: hsl(var(--iui-color-foreground-hsl) / 0.03);
|
|
93
|
+
|
|
94
|
+
/** background.5 */
|
|
95
|
+
--buic-background-titlebar: var(--buic-background-5);
|
|
96
|
+
--buic-background-dialog-stroke: var(--buic-background-5);
|
|
97
|
+
--buic-background-widget-stroke: var(--buic-background-5);
|
|
98
|
+
--buic-background-control-stroke: var(--buic-background-5);
|
|
99
|
+
--buic-background-panel-stroke: var(--buic-background-5);
|
|
100
|
+
--buic-background-toolbutton-stroke: var(--buic-background-5);
|
|
101
|
+
|
|
102
|
+
/** background.4 */
|
|
103
|
+
--buic-background-titlebar-outoffocus: var(--buic-background-4);
|
|
104
|
+
--buic-background-divider: var(--buic-background-4);
|
|
105
|
+
--buic-background-widget-element-stroke: var(--buic-background-4);
|
|
106
|
+
--buic-background-statusbar: var(--buic-background-4);
|
|
107
|
+
--buic-background-table-header: var(--buic-background-4);
|
|
108
|
+
--buic-background-control-stroke-disabled: var(--buic-background-4);
|
|
109
|
+
|
|
110
|
+
/** background.3 */
|
|
111
|
+
--buic-background-tab-inactive: var(--buic-background-3);
|
|
112
|
+
--buic-background-toolbutton-inactive: var(--buic-background-3);
|
|
113
|
+
--buic-background-context-menu: var(--buic-background-3);
|
|
114
|
+
--buic-background-widget-panel: var(--buic-background-3);
|
|
115
|
+
--buic-background-placeholder: var(--buic-background-3);
|
|
116
|
+
--buic-background-control-disabled: var(--buic-background-3);
|
|
117
|
+
|
|
118
|
+
/** background.2 */
|
|
119
|
+
--buic-background-tab-active: var(--buic-background-2);
|
|
120
|
+
--buic-background-dialog: var(--buic-background-2);
|
|
121
|
+
--buic-background-widget: var(--buic-background-2);
|
|
122
|
+
--buic-background-window: var(--buic-background-2);
|
|
123
|
+
--buic-background-toolbar: var(--buic-background-2);
|
|
124
|
+
--buic-background-panel: var(--buic-background-2);
|
|
125
|
+
|
|
126
|
+
/** background.1 */
|
|
127
|
+
--buic-background-control: var(--buic-background-1);
|
|
128
|
+
|
|
129
|
+
// Color variables
|
|
130
|
+
--buic-row-selection: var(--iui-color-background-accent-muted);
|
|
131
|
+
--buic-row-hover: var(--iui-color-background-hover);
|
|
132
|
+
|
|
133
|
+
/* Unused gradient variables, left for backwards compatibility */
|
|
134
|
+
--buic-button-gradient1: rgba(var(--iui-color-foreground-body-invert-rgb), 0);
|
|
135
|
+
--buic-button-gradient2: rgba(
|
|
136
|
+
var(--iui-color-foreground-body-invert-rgb),
|
|
137
|
+
0.25
|
|
138
|
+
);
|
|
139
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
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
|
+
@use "../z-index" as *;
|
|
8
|
+
|
|
9
|
+
$uicore-menu-padding: $uicore-bordered-padding;
|
|
10
|
+
$uicore-menu-top-bottom-padding: calc(#{$uicore-menu-padding} * 0.6667);
|
|
11
|
+
|
|
12
|
+
.core-context-menu-global {
|
|
13
|
+
position: fixed;
|
|
14
|
+
width: 0px;
|
|
15
|
+
height: 0px;
|
|
16
|
+
|
|
17
|
+
@include uicore-z-index(context-menu-z);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.core-context-menu {
|
|
21
|
+
color: var(--iui-color-text);
|
|
22
|
+
width: 0px;
|
|
23
|
+
height: 0px;
|
|
24
|
+
position: relative;
|
|
25
|
+
|
|
26
|
+
@include uicore-z-index(context-menu-z);
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: var(--iui-color-text-hover);
|
|
30
|
+
cursor: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.core-context-menu-container {
|
|
34
|
+
position: absolute;
|
|
35
|
+
border-radius: var(--iui-border-radius-1);
|
|
36
|
+
padding: 4px 0;
|
|
37
|
+
box-shadow: var(--iui-shadow-1);
|
|
38
|
+
background-color: var(--iui-color-background);
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
min-width: max-content;
|
|
41
|
+
max-width: 350px;
|
|
42
|
+
visibility: hidden;
|
|
43
|
+
transform: scaleY(0);
|
|
44
|
+
display: table;
|
|
45
|
+
border: 1px solid var(--iui-color-border);
|
|
46
|
+
|
|
47
|
+
&.core-context-menu-floating {
|
|
48
|
+
position: fixed;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.core-context-menu-opened {
|
|
52
|
+
visibility: inherit;
|
|
53
|
+
transform-origin: top;
|
|
54
|
+
transform: scaleY(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.core-context-menu-center {
|
|
58
|
+
transform: translate(-50%, -50%);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.core-context-menu-right {
|
|
62
|
+
transform: translate(0%, -50%);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.core-context-menu-left {
|
|
66
|
+
transform: translate(-100%, -50%);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.core-context-menu-top {
|
|
70
|
+
transform: translate(-50%, -100%);
|
|
71
|
+
|
|
72
|
+
&.core-context-menu-right {
|
|
73
|
+
transform: translate(0%, -100%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.core-context-menu-left {
|
|
77
|
+
transform: translate(-100%, -100%);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.core-context-menu-bottom {
|
|
82
|
+
transform: translate(-50%, 0%);
|
|
83
|
+
|
|
84
|
+
&.core-context-menu-right {
|
|
85
|
+
transform: translate(0%, 0%);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.core-context-menu-left {
|
|
89
|
+
transform: translate(-100%, 0%);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.core-context-menu-item {
|
|
94
|
+
display: flex;
|
|
95
|
+
cursor: default;
|
|
96
|
+
padding: $uicore-menu-top-bottom-padding $uicore-menu-padding;
|
|
97
|
+
width: calc(100% - 2 * #{$uicore-menu-padding});
|
|
98
|
+
align-items: center;
|
|
99
|
+
position: relative;
|
|
100
|
+
box-sizing: content-box;
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: var(--iui-color-background-hover);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.core-context-menu-is-selected {
|
|
107
|
+
background-color: var(--iui-color-background-accent-muted);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.core-context-menu-disabled {
|
|
111
|
+
color: var(--iui-color-text-disabled);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.core-context-menu-hidden {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
> .core-context-menu-icon {
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
flex-grow: 0;
|
|
121
|
+
width: $uicore-icons-small;
|
|
122
|
+
height: var(--iui-size-l);
|
|
123
|
+
font-size: var(--iui-font-size-2);
|
|
124
|
+
line-height: var(--iui-size-l);
|
|
125
|
+
text-align: center;
|
|
126
|
+
margin-right: $uicore-unbordered-padding;
|
|
127
|
+
opacity: var(--iui-opacity-2);
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
|
|
131
|
+
&.core-context-menu-icon-right {
|
|
132
|
+
margin-left: $uicore-unbordered-padding;
|
|
133
|
+
margin-right: 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
> .core-context-menu-content {
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
flex-grow: 1;
|
|
140
|
+
font-size: var(--iui-font-size-1);
|
|
141
|
+
text-align: left;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
> .core-context-menu-badge {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 0;
|
|
147
|
+
left: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:focus {
|
|
151
|
+
outline: none;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:focus {
|
|
156
|
+
border: 1px solid var(--iui-color-background-backdrop-hover);
|
|
157
|
+
box-shadow: var(--iui-shadow-1);
|
|
158
|
+
outline: 0px;
|
|
159
|
+
|
|
160
|
+
> .core-context-menu-item.is-selected,
|
|
161
|
+
> .context-submenu > .core-context-menu-item.is-selected {
|
|
162
|
+
// .is-selected being applied on hover, overriding with hover color
|
|
163
|
+
background-color: var(--iui-color-background-hover);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.core-context-submenu {
|
|
168
|
+
display: flex;
|
|
169
|
+
|
|
170
|
+
&.core-context-menu-top {
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
align-items: center;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.core-context-menu-left {
|
|
176
|
+
flex-direction: row-reverse;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.core-context-menu-right {
|
|
181
|
+
flex-direction: row;
|
|
182
|
+
align-items: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.core-context-menu-center {
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
align-items: center;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.core-context-menu-top.core-context-menu-left {
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
align-items: flex-start;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.core-context-menu-top.core-context-menu-right {
|
|
196
|
+
flex-direction: row;
|
|
197
|
+
align-items: flex-end;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&.core-context-menu-bottom.core-context-menu-left {
|
|
201
|
+
flex-direction: row-reverse;
|
|
202
|
+
align-items: flex-start;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.core-context-menu-bottom.core-context-menu-right {
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
align-items: flex-start;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.core-context-submenu-container .core-context-submenu-arrow {
|
|
211
|
+
margin-left: var(--iui-size-s);
|
|
212
|
+
margin-top: var(--iui-size-3xs);
|
|
213
|
+
margin-bottom: calc(var(--iui-size-3xs) * -1);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.core-context-menu-divider {
|
|
219
|
+
border-bottom: 1px solid var(--iui-color-border-foreground);
|
|
220
|
+
height: 0px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.core-context-submenu-popup {
|
|
224
|
+
transform: translateY(-5px); // Compensate for the vertical padding
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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-contextMenu-popupContextMenu_menu {
|
|
6
|
+
// Fix an issue where iTwinUI Popover i.e. <Select /> is rendered below ContextMenu.
|
|
7
|
+
z-index: initial;
|
|
8
|
+
}
|
|
@@ -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
|
+
@use "../z-index" as *;
|
|
6
|
+
|
|
7
|
+
.core-dialog {
|
|
8
|
+
@include uicore-z-index(dialog);
|
|
9
|
+
|
|
10
|
+
.core-dialog-main {
|
|
11
|
+
&.core-align-top-left {
|
|
12
|
+
top: 0px;
|
|
13
|
+
left: 0px;
|
|
14
|
+
transform: none;
|
|
15
|
+
}
|
|
16
|
+
&.core-align-top {
|
|
17
|
+
top: 0px;
|
|
18
|
+
left: 50%;
|
|
19
|
+
transform: translateX(-50%);
|
|
20
|
+
}
|
|
21
|
+
&.core-align-top-right {
|
|
22
|
+
top: 0px;
|
|
23
|
+
left: 100%;
|
|
24
|
+
transform: translateX(-100%);
|
|
25
|
+
}
|
|
26
|
+
&.core-align-left {
|
|
27
|
+
top: 50%;
|
|
28
|
+
left: 0px;
|
|
29
|
+
transform: translateY(-50%);
|
|
30
|
+
}
|
|
31
|
+
&.core-align-center {
|
|
32
|
+
top: 50%;
|
|
33
|
+
left: 50%;
|
|
34
|
+
transform: translate(-50%, -50%);
|
|
35
|
+
}
|
|
36
|
+
&.core-align-right {
|
|
37
|
+
top: 50%;
|
|
38
|
+
left: 100%;
|
|
39
|
+
transform: translate(-100%, -50%);
|
|
40
|
+
}
|
|
41
|
+
&.core-align-bottom-left {
|
|
42
|
+
top: 100%;
|
|
43
|
+
left: 0px;
|
|
44
|
+
transform: translateY(-100%);
|
|
45
|
+
}
|
|
46
|
+
&.core-align-bottom {
|
|
47
|
+
top: 100%;
|
|
48
|
+
left: 50%;
|
|
49
|
+
transform: translate(-50%, -100%);
|
|
50
|
+
}
|
|
51
|
+
&.core-align-bottom-right {
|
|
52
|
+
top: 100%;
|
|
53
|
+
left: 100%;
|
|
54
|
+
transform: translate(-100%, -100%);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 background-line($orientation) {
|
|
6
|
+
@return linear-gradient(
|
|
7
|
+
$orientation,
|
|
8
|
+
transparent calc(50% - 1px),
|
|
9
|
+
var(--iui-color-icon-accent) calc(50%),
|
|
10
|
+
transparent calc(50% + 1px)
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin keyframes($animation-name) {
|
|
15
|
+
@-webkit-keyframes #{$animation-name} {
|
|
16
|
+
@content;
|
|
17
|
+
}
|
|
18
|
+
@-moz-keyframes #{$animation-name} {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
@-ms-keyframes #{$animation-name} {
|
|
22
|
+
@content;
|
|
23
|
+
}
|
|
24
|
+
@-o-keyframes #{$animation-name} {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
@keyframes #{$animation-name} {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin animation($str) {
|
|
33
|
+
-webkit-animation: #{$str};
|
|
34
|
+
-moz-animation: #{$str};
|
|
35
|
+
-ms-animation: #{$str};
|
|
36
|
+
-o-animation: #{$str};
|
|
37
|
+
animation: #{$str};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include keyframes(fade-in) {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
to {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include keyframes(fade-out) {
|
|
50
|
+
from {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
to {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.core-element-separator {
|
|
59
|
+
touch-action: none;
|
|
60
|
+
display: inline-block;
|
|
61
|
+
border-style: none;
|
|
62
|
+
padding: 0px;
|
|
63
|
+
opacity: 0;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
user-select: none;
|
|
66
|
+
-webkit-user-select: none;
|
|
67
|
+
|
|
68
|
+
&--vertical {
|
|
69
|
+
width: 100%;
|
|
70
|
+
cursor: row-resize;
|
|
71
|
+
background: background-line(to bottom);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&--horizontal {
|
|
75
|
+
height: 100%;
|
|
76
|
+
cursor: col-resize;
|
|
77
|
+
background: background-line(to right);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.core-element-separator-group-hovered {
|
|
81
|
+
@include animation("fade-in 0.2s");
|
|
82
|
+
opacity: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.core-element-separator-group-unhovered {
|
|
86
|
+
@include animation("fade-out 0.2s");
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:focus {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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" as *;
|
|
6
|
+
|
|
7
|
+
.core-svg-icon {
|
|
8
|
+
width: $uicore-icons-small;
|
|
9
|
+
height: $uicore-icons-small;
|
|
10
|
+
svg {
|
|
11
|
+
width: $uicore-icons-small;
|
|
12
|
+
height: $uicore-icons-small;
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.icon.core-menuitem-icon {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
}
|
|
@@ -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
|
+
.core-icons-svgPath {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
border: none;
|
|
10
|
+
padding: auto;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
stroke: transparent;
|
|
15
|
+
}
|
|
@@ -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
|
+
.bui-webfont-icon {
|
|
6
|
+
font-family: bentley-icons-generic-webfont !important;
|
|
7
|
+
speak: none;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: normal !important;
|
|
10
|
+
font-variant: normal;
|
|
11
|
+
text-transform: none;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
}
|
|
@@ -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
|
+
@use "./index" as *;
|
|
6
|
+
|
|
7
|
+
.uicore-icons-large {
|
|
8
|
+
@include uicore-icons-large;
|
|
9
|
+
}
|
|
10
|
+
.uicore-icons-medium {
|
|
11
|
+
@include uicore-icons-medium;
|
|
12
|
+
}
|
|
13
|
+
.uicore-icons-small {
|
|
14
|
+
@include uicore-icons-small;
|
|
15
|
+
}
|
|
16
|
+
.uicore-icons-x-large {
|
|
17
|
+
@include uicore-icons-x-large;
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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 "./variables";
|
|
6
|
+
@forward "./mixins";
|
|
@@ -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 "./variables";
|
|
6
|
+
|
|
7
|
+
@forward "./variables";
|
|
8
|
+
|
|
9
|
+
@mixin uicore-icons-small {
|
|
10
|
+
width: variables.$uicore-icons-small;
|
|
11
|
+
height: variables.$uicore-icons-small;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin uicore-icons-medium {
|
|
15
|
+
width: variables.$uicore-icons-medium;
|
|
16
|
+
height: variables.$uicore-icons-medium;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin uicore-icons-large {
|
|
20
|
+
width: variables.$uicore-icons-large;
|
|
21
|
+
height: variables.$uicore-icons-large;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin uicore-icons-x-large {
|
|
25
|
+
width: variables.$uicore-icons-x-large;
|
|
26
|
+
height: variables.$uicore-icons-x-large;
|
|
27
|
+
}
|
|
@@ -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
|
+
|
|
6
|
+
// Sizes
|
|
7
|
+
$uicore-icons-x-small: 12px;
|
|
8
|
+
$uicore-icons-smaller: 14px;
|
|
9
|
+
$uicore-icons-small: 16px;
|
|
10
|
+
$uicore-icons-medium: 2 * $uicore-icons-small;
|
|
11
|
+
$uicore-icons-large: 3 * $uicore-icons-small;
|
|
12
|
+
$uicore-icons-x-large: 4 * $uicore-icons-small;
|
|
@@ -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
|
+
.core-image-checkbox {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 1em;
|
|
10
|
+
width: 1em;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
|
|
13
|
+
input[type="checkbox"]:not(:checked),
|
|
14
|
+
input[type="checkbox"]:checked {
|
|
15
|
+
position: absolute;
|
|
16
|
+
z-index: -1;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
input[type="checkbox"]:checked + .image {
|
|
21
|
+
color: var(--iui-color-text-accent);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input[type="checkbox"]:not(:checked) + .image {
|
|
25
|
+
color: var(--iui-color-text);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input[type="checkbox"] + .image {
|
|
29
|
+
opacity: 0.65;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
input[type="checkbox"]:disabled:not(:checked) + .image,
|
|
37
|
+
input[type="checkbox"]:disabled:checked + .image {
|
|
38
|
+
opacity: 0.25;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* accessibility */
|
|
42
|
+
[type="checkbox"]:focus + .image:before {
|
|
43
|
+
outline: 1px dotted currentColor;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.image-checkbox-border {
|
|
47
|
+
border: 1px solid var(--iui-color-text-disabled);
|
|
48
|
+
background-color: var(--iui-color-background);
|
|
49
|
+
border-radius: var(--iui-border-radius-1);
|
|
50
|
+
padding: 1px 3px 0 2px;
|
|
51
|
+
}
|