@itwin/components-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/components-react/_target.scss +10 -0
- package/lib/cjs/components-react/datepicker/DateField.scss +19 -0
- package/lib/cjs/components-react/datepicker/DatePicker.scss +179 -0
- package/lib/cjs/components-react/datepicker/DatePickerPopupButton.scss +56 -0
- package/lib/cjs/components-react/datepicker/TimeField.scss +72 -0
- package/lib/cjs/components-react/editors/BooleanEditor.scss +22 -0
- package/lib/cjs/components-react/editors/CustomNumberEditor.scss +19 -0
- package/lib/cjs/components-react/editors/DateTimeEditor.scss +9 -0
- package/lib/cjs/components-react/editors/EditorContainer.scss +7 -0
- package/lib/cjs/components-react/editors/EnumButtonGroupEditor.scss +141 -0
- package/lib/cjs/components-react/editors/EnumEditor.scss +21 -0
- package/lib/cjs/components-react/editors/IconEditor.scss +14 -0
- package/lib/cjs/components-react/editors/ImageCheckBoxEditor.scss +24 -0
- package/lib/cjs/components-react/editors/NumericInputEditor.scss +13 -0
- package/lib/cjs/components-react/editors/PopupButton.scss +112 -0
- package/lib/cjs/components-react/editors/SliderEditor.scss +14 -0
- package/lib/cjs/components-react/editors/TextEditor.scss +19 -0
- package/lib/cjs/components-react/editors/TextareaEditor.scss +13 -0
- package/lib/cjs/components-react/editors/ToggleEditor.scss +17 -0
- package/lib/cjs/components-react/editors/variables.scss +10 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +40 -0
- package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.scss +35 -0
- package/lib/cjs/components-react/filtering/FilteringInput.scss +58 -0
- package/lib/cjs/components-react/filtering/ResultSelector.scss +66 -0
- package/lib/cjs/components-react/iconpicker/IconPickerButton.scss +74 -0
- package/lib/cjs/components-react/inputs/ParsedInput.scss +20 -0
- package/lib/cjs/components-react/properties/renderers/ActionButtonList.scss +25 -0
- package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -0
- package/lib/cjs/components-react/properties/renderers/PropertyView.scss +110 -0
- package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.scss +87 -0
- package/lib/cjs/components-react/propertygrid/component/PropertyGrid.scss +55 -0
- package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +100 -0
- package/lib/cjs/components-react/selectable-content/SelectableContent.scss +20 -0
- package/lib/cjs/components-react/toolbar/Item.scss +94 -0
- package/lib/cjs/components-react/toolbar/ItemWrapper.scss +10 -0
- package/lib/cjs/components-react/toolbar/Items.scss +96 -0
- package/lib/cjs/components-react/toolbar/Overflow.scss +57 -0
- package/lib/cjs/components-react/toolbar/OverflowPanel.scss +37 -0
- package/lib/cjs/components-react/toolbar/PopupItem.scss +81 -0
- package/lib/cjs/components-react/toolbar/Toolbar.scss +16 -0
- package/lib/cjs/components-react/toolbar/_variables.scss +34 -0
- package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.scss +44 -0
- package/lib/cjs/components-react/toolbar/groupPanel/Column.scss +9 -0
- package/lib/cjs/components-react/toolbar/groupPanel/Columns.scss +10 -0
- package/lib/cjs/components-react/toolbar/groupPanel/Panel.scss +15 -0
- package/lib/cjs/components-react/toolbar/groupPanel/Title.scss +33 -0
- package/lib/cjs/components-react/toolbar/groupPanel/_variables.scss +17 -0
- package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.scss +30 -0
- package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.scss +117 -0
- package/lib/cjs/components-react/toolbar/groupPanel/tool/_variables.scss +15 -0
- package/lib/cjs/components-react/tree/HighlightingEngine.scss +8 -0
- package/lib/cjs/components-react/tree/controlled/component/ControlledTree.scss +102 -0
- package/lib/cjs/components-react/tree/controlled/component/NodeContent.scss +27 -0
- package/lib/components-react/common/Links.d.ts +4 -0
- package/lib/components-react/common/Links.d.ts.map +1 -1
- package/lib/components-react/common/Links.js +20 -0
- package/lib/components-react/common/Links.js.map +1 -1
- package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts.map +1 -1
- package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.js +2 -10
- package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.js.map +1 -1
- package/lib/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
- package/lib/components-react/propertygrid/component/PropertyGridCommons.js +4 -9
- package/lib/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
- package/lib/esm/components-react/_target.scss +10 -0
- package/lib/esm/components-react/datepicker/DateField.scss +19 -0
- package/lib/esm/components-react/datepicker/DatePicker.scss +179 -0
- package/lib/esm/components-react/datepicker/DatePickerPopupButton.scss +56 -0
- package/lib/esm/components-react/datepicker/TimeField.scss +72 -0
- package/lib/esm/components-react/editors/BooleanEditor.scss +22 -0
- package/lib/esm/components-react/editors/CustomNumberEditor.scss +19 -0
- package/lib/esm/components-react/editors/DateTimeEditor.scss +9 -0
- package/lib/esm/components-react/editors/EditorContainer.scss +7 -0
- package/lib/esm/components-react/editors/EnumButtonGroupEditor.scss +141 -0
- package/lib/esm/components-react/editors/EnumEditor.scss +21 -0
- package/lib/esm/components-react/editors/IconEditor.scss +14 -0
- package/lib/esm/components-react/editors/ImageCheckBoxEditor.scss +24 -0
- package/lib/esm/components-react/editors/NumericInputEditor.scss +13 -0
- package/lib/esm/components-react/editors/PopupButton.scss +112 -0
- package/lib/esm/components-react/editors/SliderEditor.scss +14 -0
- package/lib/esm/components-react/editors/TextEditor.scss +19 -0
- package/lib/esm/components-react/editors/TextareaEditor.scss +13 -0
- package/lib/esm/components-react/editors/ToggleEditor.scss +17 -0
- package/lib/esm/components-react/editors/variables.scss +10 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +40 -0
- package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.scss +35 -0
- package/lib/esm/components-react/filtering/FilteringInput.scss +58 -0
- package/lib/esm/components-react/filtering/ResultSelector.scss +66 -0
- package/lib/esm/components-react/iconpicker/IconPickerButton.scss +74 -0
- package/lib/esm/components-react/inputs/ParsedInput.scss +20 -0
- package/lib/esm/components-react/properties/renderers/ActionButtonList.scss +25 -0
- package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -0
- package/lib/esm/components-react/properties/renderers/PropertyView.scss +110 -0
- package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.scss +87 -0
- package/lib/esm/components-react/propertygrid/component/PropertyGrid.scss +55 -0
- package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +100 -0
- package/lib/esm/components-react/selectable-content/SelectableContent.scss +20 -0
- package/lib/esm/components-react/toolbar/Item.scss +94 -0
- package/lib/esm/components-react/toolbar/ItemWrapper.scss +10 -0
- package/lib/esm/components-react/toolbar/Items.scss +96 -0
- package/lib/esm/components-react/toolbar/Overflow.scss +57 -0
- package/lib/esm/components-react/toolbar/OverflowPanel.scss +37 -0
- package/lib/esm/components-react/toolbar/PopupItem.scss +81 -0
- package/lib/esm/components-react/toolbar/Toolbar.scss +16 -0
- package/lib/esm/components-react/toolbar/_variables.scss +34 -0
- package/lib/esm/components-react/toolbar/groupPanel/BackArrow.scss +44 -0
- package/lib/esm/components-react/toolbar/groupPanel/Column.scss +9 -0
- package/lib/esm/components-react/toolbar/groupPanel/Columns.scss +10 -0
- package/lib/esm/components-react/toolbar/groupPanel/Panel.scss +15 -0
- package/lib/esm/components-react/toolbar/groupPanel/Title.scss +33 -0
- package/lib/esm/components-react/toolbar/groupPanel/_variables.scss +17 -0
- package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.scss +30 -0
- package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.scss +117 -0
- package/lib/esm/components-react/toolbar/groupPanel/tool/_variables.scss +15 -0
- package/lib/esm/components-react/tree/HighlightingEngine.scss +8 -0
- package/lib/esm/components-react/tree/controlled/component/ControlledTree.scss +102 -0
- package/lib/esm/components-react/tree/controlled/component/NodeContent.scss +27 -0
- package/package.json +9 -14
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
@use "../../target" as *;
|
|
7
|
+
@use "variables" as *;
|
|
8
|
+
|
|
9
|
+
.components-toolbar-item-expandable-group-backArrow {
|
|
10
|
+
$border: solid $back-arrow-thickness currentColor;
|
|
11
|
+
$size: math.sqrt($back-arrow-size-val * $back-arrow-size-val * 8) * 0.5 + px;
|
|
12
|
+
|
|
13
|
+
width: 15px;
|
|
14
|
+
height: 20px;
|
|
15
|
+
|
|
16
|
+
@include components-internal-targeted {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
&:after {
|
|
20
|
+
color: var(--iui-color-text-accent);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:after {
|
|
25
|
+
content: "";
|
|
26
|
+
display: block;
|
|
27
|
+
position: relative;
|
|
28
|
+
left: 3px;
|
|
29
|
+
top: 3px;
|
|
30
|
+
color: var(--iui-color-text);
|
|
31
|
+
width: $size;
|
|
32
|
+
height: $size;
|
|
33
|
+
border-top: $border;
|
|
34
|
+
border-left: $border;
|
|
35
|
+
margin-left: $back-arrow-thickness;
|
|
36
|
+
margin-top: $back-arrow-thickness;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
transform: rotate(-45deg);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -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
|
+
.components-toolbar-item-expandable-group-column {
|
|
6
|
+
> *:not(:last-child) {
|
|
7
|
+
margin-bottom: 9px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
.components-toolbar-item-expandable-group-columns {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-auto-columns: 1fr;
|
|
8
|
+
grid-gap: 12px;
|
|
9
|
+
grid-auto-flow: column;
|
|
10
|
+
}
|
|
@@ -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 "variables" as *;
|
|
6
|
+
|
|
7
|
+
.components-toolbar-item-expandable-group-panel {
|
|
8
|
+
line-height: normal;
|
|
9
|
+
background: var(--iui-color-background);
|
|
10
|
+
padding: 8px;
|
|
11
|
+
border-radius: var(--iui-border-radius-1);
|
|
12
|
+
pointer-events: auto;
|
|
13
|
+
border: 1px solid var(--iui-color-border);
|
|
14
|
+
font-size: $font-size;
|
|
15
|
+
}
|
|
@@ -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 "variables" as *;
|
|
6
|
+
|
|
7
|
+
.components-toolbar-item-expandable-group-title {
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
text-align: center;
|
|
10
|
+
color: var(--iui-color-text);
|
|
11
|
+
margin-bottom: 9px;
|
|
12
|
+
margin-left: $title-horizontal-margin;
|
|
13
|
+
margin-right: $title-horizontal-margin;
|
|
14
|
+
|
|
15
|
+
@include title;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.components-toolbar-item-expandable-group-nested {
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
.components-back {
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 10px;
|
|
24
|
+
top: 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .components-toolbar-item-expandable-group-title {
|
|
28
|
+
/* Contributes to space available for back arrow */
|
|
29
|
+
min-height: 14px;
|
|
30
|
+
margin-left: $title-horizontal-back-arrow-margin;
|
|
31
|
+
margin-right: $title-horizontal-back-arrow-margin;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 "~@itwin/core-react/lib/core-react/style/themecolors";
|
|
6
|
+
@forward "~@itwin/core-react/lib/core-react/typography";
|
|
7
|
+
@forward "../variables";
|
|
8
|
+
|
|
9
|
+
$panel-padding-left: 16px;
|
|
10
|
+
$panel-padding-right: 8px;
|
|
11
|
+
$panel-padding-top: $panel-padding-right;
|
|
12
|
+
$panel-padding-bottom: 12px;
|
|
13
|
+
$title-color: var(--iui-color-text);
|
|
14
|
+
$back-arrow-thickness: 2px;
|
|
15
|
+
$back-arrow-size-val: 6;
|
|
16
|
+
$title-horizontal-margin: 20px;
|
|
17
|
+
$title-horizontal-back-arrow-margin: 28px;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
@use "variables" as *;
|
|
7
|
+
|
|
8
|
+
.components-toolbar-item-expandable-group-tool-expander {
|
|
9
|
+
> .components-expansion-indicator {
|
|
10
|
+
$border: solid $expander-arrow-thickness currentColor;
|
|
11
|
+
$size: math.sqrt($expander-arrow-size-val * $expander-arrow-size-val * 8) *
|
|
12
|
+
0.5 + px;
|
|
13
|
+
|
|
14
|
+
width: $size;
|
|
15
|
+
height: $size;
|
|
16
|
+
border-top: $border;
|
|
17
|
+
border-left: $border;
|
|
18
|
+
margin-left: $expander-arrow-thickness;
|
|
19
|
+
margin-top: $expander-arrow-thickness;
|
|
20
|
+
margin-right: $space-after-expander;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
transform: rotate(135deg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:active:not(.components-disabled) {
|
|
26
|
+
> .components-expansion-indicator {
|
|
27
|
+
filter: $no-shadow;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 "~@itwin/core-react/lib/core-react/typography" as *;
|
|
6
|
+
@use "../../../target" as *;
|
|
7
|
+
@use "variables" as *;
|
|
8
|
+
|
|
9
|
+
.components-toolbar-item-expandable-group-tool-item {
|
|
10
|
+
$item-height: 32px;
|
|
11
|
+
$item-border-width: 2px;
|
|
12
|
+
$active-tool-stripe-height: 22px;
|
|
13
|
+
$active-tool-stripe-width: 2px;
|
|
14
|
+
$icon-size: 16px;
|
|
15
|
+
$space-between-icon-and-label: 32px - 16px;
|
|
16
|
+
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
height: $item-height;
|
|
19
|
+
color: var(--iui-color-text);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border-radius: var(--iui-border-radius-1);
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
@include body1;
|
|
26
|
+
|
|
27
|
+
@mixin components-active-tool {
|
|
28
|
+
&:not(.components-disabled) {
|
|
29
|
+
background: var(--iui-color-background-hover);
|
|
30
|
+
color: var(--iui-color-text-accent-hover);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
> .components-icon {
|
|
35
|
+
width: $icon-size;
|
|
36
|
+
height: $icon-size;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
margin-right: $space-between-icon-and-label;
|
|
39
|
+
margin-left: 8px;
|
|
40
|
+
position: relative;
|
|
41
|
+
|
|
42
|
+
> .components-badge {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: -8px;
|
|
45
|
+
left: -8px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> .components-label {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
margin-right: $space-after-label;
|
|
52
|
+
line-height: $item-height;
|
|
53
|
+
|
|
54
|
+
&:after {
|
|
55
|
+
display: block;
|
|
56
|
+
content: attr(title);
|
|
57
|
+
font-weight: bold;
|
|
58
|
+
height: 1px;
|
|
59
|
+
color: transparent;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
visibility: hidden;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include components-internal-targeted {
|
|
66
|
+
&:not(.components-disabled) {
|
|
67
|
+
color: var(--iui-color-text-hover);
|
|
68
|
+
|
|
69
|
+
@include body1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
@include components-active-tool;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.components-pointer-up {
|
|
82
|
+
@include components-internal-targeted {
|
|
83
|
+
@include components-active-tool;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.components-focused:not(.components-disabled) {
|
|
88
|
+
color: var(--iui-color-text-accent);
|
|
89
|
+
border-color: var(--iui-color-border-accent);
|
|
90
|
+
border-width: $item-border-width;
|
|
91
|
+
border-style: solid;
|
|
92
|
+
|
|
93
|
+
@include body1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.components-active:not(.components-disabled) {
|
|
97
|
+
color: var(--iui-color-text-accent);
|
|
98
|
+
|
|
99
|
+
@include body1;
|
|
100
|
+
|
|
101
|
+
&::before {
|
|
102
|
+
content: "";
|
|
103
|
+
background-color: var(--iui-color-border-accent);
|
|
104
|
+
display: block;
|
|
105
|
+
position: relative;
|
|
106
|
+
top: 0;
|
|
107
|
+
left: $item-border-width + 1;
|
|
108
|
+
width: $active-tool-stripe-width;
|
|
109
|
+
height: $active-tool-stripe-height;
|
|
110
|
+
border-radius: 2px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.components-disabled {
|
|
115
|
+
color: var(--iui-color-text-disabled);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -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
|
+
@forward "~@itwin/core-react/lib/core-react/style/themecolors";
|
|
6
|
+
|
|
7
|
+
$no-shadow: none;
|
|
8
|
+
$shadow: drop-shadow(
|
|
9
|
+
0 1px 0 hsl(var(--iui-color-background-hsl) / var(--iui-opacity-2))
|
|
10
|
+
);
|
|
11
|
+
$space-after-label: 16px;
|
|
12
|
+
|
|
13
|
+
$expander-arrow-thickness: 2px;
|
|
14
|
+
$expander-arrow-size-val: 6;
|
|
15
|
+
$space-after-expander: 10px;
|
|
@@ -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
|
+
|
|
6
|
+
.components-activehighlight {
|
|
7
|
+
background-color: orange;
|
|
8
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 "~@itwin/core-react/lib/core-react/scrollbar" as *;
|
|
6
|
+
|
|
7
|
+
.components-controlledTree-loader {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: block;
|
|
10
|
+
left: calc(50% - 24px);
|
|
11
|
+
top: calc(50% - 24px);
|
|
12
|
+
height: 48px;
|
|
13
|
+
width: 48px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.components-controlledTree-errorMessage {
|
|
17
|
+
font-style: italic;
|
|
18
|
+
color: var(--iui-color-text-muted);
|
|
19
|
+
margin: 0 20%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.components-controlledTree {
|
|
24
|
+
color: var(--iui-color-text);
|
|
25
|
+
background-color: var(--iui-color-background);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Workaround for horizontal scroll issue.
|
|
29
|
+
* based on https://github.com/bvaughn/react-window/issues/681
|
|
30
|
+
*/
|
|
31
|
+
.ReactVirtualized__Grid,
|
|
32
|
+
.ReactWindow__VariableSizeList {
|
|
33
|
+
overflow: scroll !important;
|
|
34
|
+
background-color: inherit;
|
|
35
|
+
|
|
36
|
+
@include uicore-scrollbar;
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> div {
|
|
43
|
+
overflow: visible !important;
|
|
44
|
+
max-width: none !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.node-wrapper {
|
|
49
|
+
// The virtualized list wants to use absolute layout, but we
|
|
50
|
+
// need the inner container to grow in width based on the widest
|
|
51
|
+
// node. To workaround, we use relative layout with 0 heigh nodes.
|
|
52
|
+
position: relative !important;
|
|
53
|
+
height: 0 !important;
|
|
54
|
+
width: fit-content !important;
|
|
55
|
+
min-width: 100% !important;
|
|
56
|
+
overflow: visible !important;
|
|
57
|
+
|
|
58
|
+
&.is-selected {
|
|
59
|
+
// Prevent selected node's borders from being overdrawn by non-selected neighbors
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.core-tree-node {
|
|
64
|
+
&.is-focused,
|
|
65
|
+
&:focus {
|
|
66
|
+
outline: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin enable-border($edge) {
|
|
72
|
+
border-#{$edge}: 1px solid var(--iui-color-icon-accent);
|
|
73
|
+
padding-#{$edge}: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.node-wrapper.is-selected {
|
|
77
|
+
.core-tree-node {
|
|
78
|
+
background: var(--iui-color-background-accent-muted);
|
|
79
|
+
@include enable-border("left");
|
|
80
|
+
@include enable-border("right");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.node-wrapper.is-selected:first-child,
|
|
85
|
+
.node-wrapper:not(.is-selected) + .node-wrapper.is-selected {
|
|
86
|
+
.core-tree-node {
|
|
87
|
+
@include enable-border("top");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.node-wrapper.is-selected + .node-wrapper:not(.is-selected) {
|
|
92
|
+
.core-tree-node {
|
|
93
|
+
@include enable-border("top");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.node-wrapper.is-selected:last-child {
|
|
98
|
+
.core-tree-node {
|
|
99
|
+
@include enable-border("bottom");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -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
|
+
|
|
6
|
+
.components-controlledTree-node-description {
|
|
7
|
+
color: var(--iui-color-text-muted);
|
|
8
|
+
font-size: var(--iui-font-size-0);
|
|
9
|
+
margin-top: 4px;
|
|
10
|
+
|
|
11
|
+
&.with-editor {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding-top: 1px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.components-controlledTree-node-content {
|
|
18
|
+
height: 24px;
|
|
19
|
+
line-height: var(--iui-font-size-0);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
&.with-description {
|
|
25
|
+
height: 43px;
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/components-react",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.3",
|
|
4
4
|
"description": "A react component library of iTwin.js UI data-oriented components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/components-react.d.ts",
|
|
@@ -37,14 +37,11 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@itwin/appui-abstract": "^4.0.0",
|
|
39
39
|
"@itwin/core-bentley": "^4.0.0",
|
|
40
|
-
"@itwin/core-react": "^5.0.0-dev.
|
|
40
|
+
"@itwin/core-react": "^5.0.0-dev.3",
|
|
41
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
41
42
|
"react": "^18.0.0",
|
|
42
43
|
"react-dom": "^18.0.0"
|
|
43
44
|
},
|
|
44
|
-
"//devDependencies": [
|
|
45
|
-
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
46
|
-
"NOTE: All tools used by scripts in this package must be listed as devDependencies"
|
|
47
|
-
],
|
|
48
45
|
"devDependencies": {
|
|
49
46
|
"@itwin/appui-abstract": "^4.0.0",
|
|
50
47
|
"@itwin/build-tools": "4.10.0-dev.31",
|
|
@@ -53,6 +50,7 @@
|
|
|
53
50
|
"@itwin/core-geometry": "^4.0.0",
|
|
54
51
|
"@itwin/core-i18n": "^4.0.0",
|
|
55
52
|
"@itwin/eslint-plugin": "^4.1.1",
|
|
53
|
+
"@itwin/itwinui-react": "^3.15.0",
|
|
56
54
|
"@testing-library/dom": "^10.1.0",
|
|
57
55
|
"@testing-library/react": "^15.0.7",
|
|
58
56
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -80,17 +78,11 @@
|
|
|
80
78
|
"typescript": "~5.3.3",
|
|
81
79
|
"upath": "^2.0.1",
|
|
82
80
|
"vitest": "^1.6.0",
|
|
83
|
-
"@itwin/core-react": "5.0.0-dev.
|
|
81
|
+
"@itwin/core-react": "5.0.0-dev.3"
|
|
84
82
|
},
|
|
85
|
-
"//dependencies": [
|
|
86
|
-
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
87
|
-
"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"
|
|
88
|
-
],
|
|
89
83
|
"dependencies": {
|
|
90
84
|
"@bentley/icons-generic": "^1.0.34",
|
|
91
|
-
"@itwin/itwinui-variables": "^3.0.0",
|
|
92
85
|
"@itwin/itwinui-icons-react": "^2.8.0",
|
|
93
|
-
"@itwin/itwinui-react": "^3.11.2",
|
|
94
86
|
"classnames": "2.5.1",
|
|
95
87
|
"immer": "^10.1.1",
|
|
96
88
|
"linkify-it": "~2.2.0",
|
|
@@ -101,9 +93,12 @@
|
|
|
101
93
|
},
|
|
102
94
|
"scripts": {
|
|
103
95
|
"start": "run-p -l \"build -- -w\" \"copy:** -- -w\"",
|
|
104
|
-
"build": "npm run copy:css && npm run copy:locale && tsc",
|
|
96
|
+
"build": "npm run copy:css && npm run compat:css && npm run copy:locale && tsc",
|
|
105
97
|
"copy:css": "cpx \"./src/**/*.*css\" ./lib",
|
|
106
98
|
"copy:locale": "cpx ./src/components-react/UiComponents.json ./lib/public/locales/en",
|
|
99
|
+
"compat:css": "npm run compat:cjs && npm run compat:esm",
|
|
100
|
+
"compat:cjs": "cpx \"./src/**/*.{*css,svg}\" ./lib/cjs",
|
|
101
|
+
"compat:esm": "cpx \"./src/**/*.{*css,svg}\" ./lib/esm",
|
|
107
102
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
108
103
|
"cover": "vitest run --coverage",
|
|
109
104
|
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|