@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.
- 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 -12
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|