@itwin/components-react 5.0.0-dev.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/CHANGELOG.md +55 -1
  2. package/lib/cjs/components-react/_target.scss +10 -0
  3. package/lib/cjs/components-react/datepicker/DateField.scss +19 -0
  4. package/lib/cjs/components-react/datepicker/DatePicker.scss +179 -0
  5. package/lib/cjs/components-react/datepicker/DatePickerPopupButton.scss +56 -0
  6. package/lib/cjs/components-react/datepicker/TimeField.scss +72 -0
  7. package/lib/cjs/components-react/editors/BooleanEditor.scss +22 -0
  8. package/lib/cjs/components-react/editors/CustomNumberEditor.scss +19 -0
  9. package/lib/cjs/components-react/editors/DateTimeEditor.scss +9 -0
  10. package/lib/cjs/components-react/editors/EditorContainer.scss +7 -0
  11. package/lib/cjs/components-react/editors/EnumButtonGroupEditor.scss +141 -0
  12. package/lib/cjs/components-react/editors/EnumEditor.scss +21 -0
  13. package/lib/cjs/components-react/editors/IconEditor.scss +14 -0
  14. package/lib/cjs/components-react/editors/ImageCheckBoxEditor.scss +24 -0
  15. package/lib/cjs/components-react/editors/NumericInputEditor.scss +13 -0
  16. package/lib/cjs/components-react/editors/PopupButton.scss +112 -0
  17. package/lib/cjs/components-react/editors/SliderEditor.scss +14 -0
  18. package/lib/cjs/components-react/editors/TextEditor.scss +19 -0
  19. package/lib/cjs/components-react/editors/TextareaEditor.scss +13 -0
  20. package/lib/cjs/components-react/editors/ToggleEditor.scss +17 -0
  21. package/lib/cjs/components-react/editors/variables.scss +10 -0
  22. package/lib/cjs/components-react/filter-builder/FilterBuilderRule.scss +40 -0
  23. package/lib/cjs/components-react/filter-builder/FilterBuilderRuleGroup.scss +35 -0
  24. package/lib/cjs/components-react/filtering/FilteringInput.scss +58 -0
  25. package/lib/cjs/components-react/filtering/ResultSelector.scss +66 -0
  26. package/lib/cjs/components-react/iconpicker/IconPickerButton.scss +74 -0
  27. package/lib/cjs/components-react/inputs/ParsedInput.scss +20 -0
  28. package/lib/cjs/components-react/properties/renderers/ActionButtonList.scss +25 -0
  29. package/lib/cjs/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -0
  30. package/lib/cjs/components-react/properties/renderers/PropertyView.scss +110 -0
  31. package/lib/cjs/components-react/properties/renderers/label/PropertyLabelRenderer.scss +87 -0
  32. package/lib/cjs/components-react/propertygrid/component/PropertyGrid.scss +55 -0
  33. package/lib/cjs/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +100 -0
  34. package/lib/cjs/components-react/selectable-content/SelectableContent.scss +20 -0
  35. package/lib/cjs/components-react/toolbar/Item.scss +94 -0
  36. package/lib/cjs/components-react/toolbar/ItemWrapper.scss +10 -0
  37. package/lib/cjs/components-react/toolbar/Items.scss +96 -0
  38. package/lib/cjs/components-react/toolbar/Overflow.scss +57 -0
  39. package/lib/cjs/components-react/toolbar/OverflowPanel.scss +37 -0
  40. package/lib/cjs/components-react/toolbar/PopupItem.scss +81 -0
  41. package/lib/cjs/components-react/toolbar/Toolbar.scss +16 -0
  42. package/lib/cjs/components-react/toolbar/_variables.scss +34 -0
  43. package/lib/cjs/components-react/toolbar/groupPanel/BackArrow.scss +44 -0
  44. package/lib/cjs/components-react/toolbar/groupPanel/Column.scss +9 -0
  45. package/lib/cjs/components-react/toolbar/groupPanel/Columns.scss +10 -0
  46. package/lib/cjs/components-react/toolbar/groupPanel/Panel.scss +15 -0
  47. package/lib/cjs/components-react/toolbar/groupPanel/Title.scss +33 -0
  48. package/lib/cjs/components-react/toolbar/groupPanel/_variables.scss +17 -0
  49. package/lib/cjs/components-react/toolbar/groupPanel/tool/Expander.scss +30 -0
  50. package/lib/cjs/components-react/toolbar/groupPanel/tool/Tool.scss +117 -0
  51. package/lib/cjs/components-react/toolbar/groupPanel/tool/_variables.scss +15 -0
  52. package/lib/cjs/components-react/tree/HighlightingEngine.scss +8 -0
  53. package/lib/cjs/components-react/tree/controlled/component/ControlledTree.scss +102 -0
  54. package/lib/cjs/components-react/tree/controlled/component/NodeContent.scss +27 -0
  55. package/lib/components-react/common/Links.d.ts +4 -0
  56. package/lib/components-react/common/Links.d.ts.map +1 -1
  57. package/lib/components-react/common/Links.js +20 -0
  58. package/lib/components-react/common/Links.js.map +1 -1
  59. package/lib/components-react/editors/EditorContainer.d.ts +2 -0
  60. package/lib/components-react/editors/EditorContainer.d.ts.map +1 -1
  61. package/lib/components-react/editors/EditorContainer.js +7 -3
  62. package/lib/components-react/editors/EditorContainer.js.map +1 -1
  63. package/lib/components-react/editors/EnumButtonGroupEditor.d.ts.map +1 -1
  64. package/lib/components-react/editors/EnumButtonGroupEditor.js +3 -3
  65. package/lib/components-react/editors/EnumButtonGroupEditor.js.map +1 -1
  66. package/lib/components-react/properties/renderers/PropertyRenderer.d.ts +4 -0
  67. package/lib/components-react/properties/renderers/PropertyRenderer.d.ts.map +1 -1
  68. package/lib/components-react/properties/renderers/PropertyRenderer.js +12 -3
  69. package/lib/components-react/properties/renderers/PropertyRenderer.js.map +1 -1
  70. package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.d.ts.map +1 -1
  71. package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.js +2 -10
  72. package/lib/components-react/properties/renderers/value/UrlPropertyValueRenderer.js.map +1 -1
  73. package/lib/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.d.ts.map +1 -1
  74. package/lib/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.js +5 -3
  75. package/lib/components-react/propertygrid/component/ColumnResizingPropertyListPropsSupplier.js.map +1 -1
  76. package/lib/components-react/propertygrid/component/PropertyGridCommons.d.ts +2 -0
  77. package/lib/components-react/propertygrid/component/PropertyGridCommons.d.ts.map +1 -1
  78. package/lib/components-react/propertygrid/component/PropertyGridCommons.js +4 -9
  79. package/lib/components-react/propertygrid/component/PropertyGridCommons.js.map +1 -1
  80. package/lib/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts +1 -1
  81. package/lib/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.d.ts.map +1 -1
  82. package/lib/components-react/propertygrid/component/PropertyGridEventsRelatedPropsSupplier.js.map +1 -1
  83. package/lib/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts +2 -0
  84. package/lib/components-react/propertygrid/component/VirtualizedPropertyGrid.d.ts.map +1 -1
  85. package/lib/components-react/propertygrid/component/VirtualizedPropertyGrid.js +3 -1
  86. package/lib/components-react/propertygrid/component/VirtualizedPropertyGrid.js.map +1 -1
  87. package/lib/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts +3 -0
  88. package/lib/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.d.ts.map +1 -1
  89. package/lib/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js +9 -5
  90. package/lib/components-react/propertygrid/internal/flat-properties/FlatPropertyRenderer.js.map +1 -1
  91. package/lib/esm/components-react/_target.scss +10 -0
  92. package/lib/esm/components-react/datepicker/DateField.scss +19 -0
  93. package/lib/esm/components-react/datepicker/DatePicker.scss +179 -0
  94. package/lib/esm/components-react/datepicker/DatePickerPopupButton.scss +56 -0
  95. package/lib/esm/components-react/datepicker/TimeField.scss +72 -0
  96. package/lib/esm/components-react/editors/BooleanEditor.scss +22 -0
  97. package/lib/esm/components-react/editors/CustomNumberEditor.scss +19 -0
  98. package/lib/esm/components-react/editors/DateTimeEditor.scss +9 -0
  99. package/lib/esm/components-react/editors/EditorContainer.scss +7 -0
  100. package/lib/esm/components-react/editors/EnumButtonGroupEditor.scss +141 -0
  101. package/lib/esm/components-react/editors/EnumEditor.scss +21 -0
  102. package/lib/esm/components-react/editors/IconEditor.scss +14 -0
  103. package/lib/esm/components-react/editors/ImageCheckBoxEditor.scss +24 -0
  104. package/lib/esm/components-react/editors/NumericInputEditor.scss +13 -0
  105. package/lib/esm/components-react/editors/PopupButton.scss +112 -0
  106. package/lib/esm/components-react/editors/SliderEditor.scss +14 -0
  107. package/lib/esm/components-react/editors/TextEditor.scss +19 -0
  108. package/lib/esm/components-react/editors/TextareaEditor.scss +13 -0
  109. package/lib/esm/components-react/editors/ToggleEditor.scss +17 -0
  110. package/lib/esm/components-react/editors/variables.scss +10 -0
  111. package/lib/esm/components-react/filter-builder/FilterBuilderRule.scss +40 -0
  112. package/lib/esm/components-react/filter-builder/FilterBuilderRuleGroup.scss +35 -0
  113. package/lib/esm/components-react/filtering/FilteringInput.scss +58 -0
  114. package/lib/esm/components-react/filtering/ResultSelector.scss +66 -0
  115. package/lib/esm/components-react/iconpicker/IconPickerButton.scss +74 -0
  116. package/lib/esm/components-react/inputs/ParsedInput.scss +20 -0
  117. package/lib/esm/components-react/properties/renderers/ActionButtonList.scss +25 -0
  118. package/lib/esm/components-react/properties/renderers/NonPrimitivePropertyRenderer.scss +17 -0
  119. package/lib/esm/components-react/properties/renderers/PropertyView.scss +110 -0
  120. package/lib/esm/components-react/properties/renderers/label/PropertyLabelRenderer.scss +87 -0
  121. package/lib/esm/components-react/propertygrid/component/PropertyGrid.scss +55 -0
  122. package/lib/esm/components-react/propertygrid/component/VirtualizedPropertyGrid.scss +100 -0
  123. package/lib/esm/components-react/selectable-content/SelectableContent.scss +20 -0
  124. package/lib/esm/components-react/toolbar/Item.scss +94 -0
  125. package/lib/esm/components-react/toolbar/ItemWrapper.scss +10 -0
  126. package/lib/esm/components-react/toolbar/Items.scss +96 -0
  127. package/lib/esm/components-react/toolbar/Overflow.scss +57 -0
  128. package/lib/esm/components-react/toolbar/OverflowPanel.scss +37 -0
  129. package/lib/esm/components-react/toolbar/PopupItem.scss +81 -0
  130. package/lib/esm/components-react/toolbar/Toolbar.scss +16 -0
  131. package/lib/esm/components-react/toolbar/_variables.scss +34 -0
  132. package/lib/esm/components-react/toolbar/groupPanel/BackArrow.scss +44 -0
  133. package/lib/esm/components-react/toolbar/groupPanel/Column.scss +9 -0
  134. package/lib/esm/components-react/toolbar/groupPanel/Columns.scss +10 -0
  135. package/lib/esm/components-react/toolbar/groupPanel/Panel.scss +15 -0
  136. package/lib/esm/components-react/toolbar/groupPanel/Title.scss +33 -0
  137. package/lib/esm/components-react/toolbar/groupPanel/_variables.scss +17 -0
  138. package/lib/esm/components-react/toolbar/groupPanel/tool/Expander.scss +30 -0
  139. package/lib/esm/components-react/toolbar/groupPanel/tool/Tool.scss +117 -0
  140. package/lib/esm/components-react/toolbar/groupPanel/tool/_variables.scss +15 -0
  141. package/lib/esm/components-react/tree/HighlightingEngine.scss +8 -0
  142. package/lib/esm/components-react/tree/controlled/component/ControlledTree.scss +102 -0
  143. package/lib/esm/components-react/tree/controlled/component/NodeContent.scss +27 -0
  144. package/package.json +9 -16
package/CHANGELOG.md CHANGED
@@ -1,6 +1,60 @@
1
1
  # Change Log - @itwin/components-react
2
2
 
3
- This log was last generated on Thu, 19 Sep 2024 12:50:53 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 16 Dec 2024 11:43:27 GMT and should not be manually modified.
4
+
5
+ ## 5.0.0
6
+ Mon, 16 Dec 2024 11:43:27 GMT
7
+
8
+ ### Updates
9
+
10
+ - Add MergingPropertyDataProvider which combines multiple property data providers into a single one.
11
+ - Removed some references on @bentley/icons-generic
12
+ - Remove `@itwin/core-geometry` usage from `@itwin/components-react`
13
+ - Drop support for CommonJS modules.
14
+ - Drop support for iTwin.js 3.x.
15
+ - Drop support for React 17.x.
16
+ - Remove `@internal` API exports from the barrel file.
17
+ - Move @itwin/itwinui-react to peerDependencies.
18
+ - Added a callback to `VirtualizedPropertyGrid` which determines which editors should always be visible
19
+ - Update FilterBuilder UI according to UX team's new specs
20
+ - Provide file extension in import declarations.
21
+ - Add `exports` field to `package.json`.
22
+ - Replaced SCSS `@import` rules with `@use` rules.
23
+ - Replace buic variables with iTwinUI CSS variables.
24
+
25
+ ## 4.17.6
26
+ Wed, 20 Nov 2024 14:27:46 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 4.17.5
31
+ Thu, 14 Nov 2024 08:22:04 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 4.17.4
36
+ Fri, 08 Nov 2024 14:41:23 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 4.17.3
41
+ Wed, 06 Nov 2024 09:04:20 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 4.17.2
46
+ Wed, 30 Oct 2024 14:46:15 GMT
47
+
48
+ ### Updates
49
+
50
+ - Fixed `pw:` links handling in property grid.
51
+
52
+ ## 4.17.1
53
+ Wed, 09 Oct 2024 10:50:47 GMT
54
+
55
+ ### Updates
56
+
57
+ - Update FilterBuilder UI according to UX team's new specs
4
58
 
5
59
  ## 4.17.0
6
60
  Thu, 19 Sep 2024 12:50:53 GMT
@@ -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
+ @mixin components-internal-targeted {
6
+ &:hover,
7
+ &.components-targeted {
8
+ @content;
9
+ }
10
+ }
@@ -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 "~@itwin/core-react/lib/core-react/inputs/variables" as *;
6
+
7
+ .components-date-input {
8
+ width: auto;
9
+ padding: $uicore-iui-input-padding;
10
+
11
+ &.components-date-has-error {
12
+ color: var(--iui-color-text-negative);
13
+ }
14
+
15
+ &[disabled] {
16
+ color: var(--iui-color-text);
17
+ opacity: 0.65;
18
+ }
19
+ }
@@ -0,0 +1,179 @@
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
+ $date-picker-m: 16px;
6
+ $date-picker-icons-color-actionable: rgba(
7
+ var(--iui-color-text),
8
+ var(--iui-opacity-2)
9
+ );
10
+ $date-picker-icons-color-actionable-hover: rgba(
11
+ var(--iui-color-text),
12
+ var(--iui-opacity-1)
13
+ );
14
+ $date-picker-outside-month-color: var(--iui-color-text-disabled);
15
+ $outline-size: 2px;
16
+
17
+ .components-date-picker-calendar {
18
+ border-radius: var(--iui-border-radius-1) var(--iui-border-radius-1) 0 0;
19
+ background-color: var(--iui-color-background);
20
+ color: var(--iui-color-text);
21
+ font-size: 14px;
22
+
23
+ * {
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ .components-date-picker-calendar-header-months {
28
+ display: inline-flex;
29
+ width: calc(100% - 12px);
30
+ align-items: center;
31
+ justify-content: space-between;
32
+ padding: 6px;
33
+
34
+ button.components-previous-month,
35
+ button.components-next-month {
36
+ background-color: var(--iui-color-background);
37
+ border: none;
38
+ cursor: pointer;
39
+ padding: 5px;
40
+ font-size: var(--iui-font-size-2);
41
+ user-select: none;
42
+ -webkit-user-select: none;
43
+ color: $date-picker-icons-color-actionable;
44
+
45
+ &:focus {
46
+ outline: 0px;
47
+
48
+ &.showFocusOutline {
49
+ outline: 0px;
50
+ border: 0px solid var(--iui-color-border-foreground);
51
+ border-radius: var(--iui-border-radius-1);
52
+ border-color: hsl(
53
+ var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
54
+ );
55
+ box-shadow: hsl(var(--iui-color-accent-hsl) / 0) 0px 1px 1px,
56
+ hsl(var(--iui-color-accent-hsl) / 0.65) 0px 0px 0px 2px;
57
+ }
58
+ }
59
+
60
+ &:hover {
61
+ color: var(--iui-color-text-accent);
62
+ }
63
+ }
64
+
65
+ .components-next-month {
66
+ text-align: right;
67
+ }
68
+
69
+ .components-month-year {
70
+ flex: 2;
71
+ font-weight: var(--iui-font-weight-bold);
72
+ text-align: center;
73
+ }
74
+ }
75
+
76
+ .components-date-picker-calendar-header-weekdays {
77
+ display: grid;
78
+ background-color: var(--iui-color-background-hover);
79
+ padding-inline-start: 8px;
80
+ padding-inline-end: 8px;
81
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
82
+ align-items: center;
83
+
84
+ .components-date-picker-calendar-header-day-short {
85
+ text-align: center;
86
+ text-decoration: none;
87
+ font-weight: var(--iui-font-weight-bold);
88
+ height: 32px;
89
+ width: 32px;
90
+ display: inline-flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ }
94
+ }
95
+
96
+ ul.components-date-picker-calendar-month {
97
+ margin: 1px;
98
+ padding: 4px 5px;
99
+ list-style: none;
100
+ display: grid;
101
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
102
+ text-align: center;
103
+ align-items: center;
104
+ align-self: center;
105
+
106
+ &:focus {
107
+ outline: 0px;
108
+
109
+ &.showFocusOutline {
110
+ border: 0px solid var(--iui-color-border-foreground);
111
+ border-radius: var(--iui-border-radius-1);
112
+ border-color: hsl(
113
+ var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
114
+ );
115
+ box-shadow: hsl(var(--iui-color-accent-hsl) / 0) 0px 1px 1px,
116
+ hsl(var(--iui-color-accent-hsl) / 0.65) 0px 0px 0px 2px;
117
+
118
+ .components-date-picker-calendar-day.focused {
119
+ outline: 0px;
120
+ border: 1px solid var(--iui-color-border-foreground);
121
+ border-radius: var(--iui-border-radius-1);
122
+ border-color: hsl(
123
+ var(--iui-color-foreground-hsl) / var(--iui-opacity-4)
124
+ );
125
+ box-shadow: hsl(var(--iui-color-accent-hsl) / 0) 0px 1px 1px,
126
+ hsl(var(--iui-color-accent-hsl) / 0.65) 0px 0px 0px 2px;
127
+ z-index: 1;
128
+ }
129
+ }
130
+ }
131
+
132
+ .components-date-picker-calendar-day {
133
+ box-sizing: border-box;
134
+ text-align: center;
135
+ white-space: nowrap;
136
+ cursor: pointer;
137
+ height: 32px;
138
+ width: 32px;
139
+ display: inline-flex;
140
+ align-items: center;
141
+ justify-content: center;
142
+
143
+ &:focus {
144
+ outline: 0px;
145
+ }
146
+
147
+ &:hover:not(.selected) {
148
+ background-color: var(--iui-color-background-hover);
149
+ border-radius: var(--iui-border-radius-1);
150
+ font-weight: var(--iui-font-weight-semibold);
151
+ }
152
+
153
+ &.selected {
154
+ background-color: var(--iui-color-background-accent);
155
+ color: var(--iui-color-white);
156
+ font-weight: var(--iui-font-weight-semibold);
157
+ border-radius: var(--iui-border-radius-1);
158
+
159
+ &:hover {
160
+ background-color: var(--iui-color-background-hover);
161
+ color: var(--iui-color-text);
162
+ }
163
+ }
164
+
165
+ &.today {
166
+ background-color: rgba(var(--iui-color-text), var(--iui-opacity-6));
167
+ font-weight: var(--iui-font-weight-semibold);
168
+ border-radius: 50%;
169
+ }
170
+
171
+ &.notCurrentMonth {
172
+ &:not(.selected) {
173
+ color: $date-picker-outside-month-color;
174
+ font-weight: var(--iui-font-weight-light);
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
@@ -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
+ .components-date-picker-calendar-popup-button {
6
+ color: var(--iui-color-text);
7
+ font-size: var(--iui-font-size-1);
8
+ background-color: transparent;
9
+ height: 2.2em;
10
+ border: none;
11
+ margin-right: 2px;
12
+
13
+ .datepicker-button {
14
+ width: 16px;
15
+ height: 16px;
16
+ }
17
+
18
+ svg {
19
+ fill: var(--iui-color-icon);
20
+ }
21
+
22
+ &:hover {
23
+ color: var(--iui-color-text-accent-hover);
24
+ cursor: auto;
25
+
26
+ svg {
27
+ fill: var(--iui-color-text-accent-hover);
28
+ }
29
+ }
30
+
31
+ &:focus {
32
+ box-shadow: hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-4)) 0px 0px
33
+ 0px 2px;
34
+ outline: none;
35
+ }
36
+ }
37
+
38
+ .components-date-picker-calendar-popup-panel {
39
+ display: flex;
40
+ flex-direction: column;
41
+ background-color: var(--iui-color-background);
42
+
43
+ .time-container {
44
+ display: flex;
45
+ flex-direction: row;
46
+ align-items: center;
47
+ justify-content: center;
48
+ border-top: 2px solid var(--iui-color-border-foreground);
49
+ padding-top: 8px;
50
+ padding-bottom: 8px;
51
+
52
+ .time-label {
53
+ margin-right: 4px;
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,72 @@
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/inputs/variables" as *;
6
+
7
+ .components-time {
8
+ display: inline-flex;
9
+ flex-direction: row;
10
+ align-items: center;
11
+ justify-content: flex-start;
12
+ background-color: var(--iui-color-background);
13
+ border: 1px solid var(--iui-color-border-foreground);
14
+ border-radius: var(--iui-border-radius-1);
15
+ box-shadow: var(--iui-focus-box-shadow) 0px 1px 1px inset;
16
+ box-sizing: border-box;
17
+
18
+ &.has-error {
19
+ color: var(--iui-color-text-negative);
20
+ }
21
+
22
+ .components-time-input {
23
+ box-sizing: border-box;
24
+ width: 2.5em;
25
+ text-align: center;
26
+ border: none;
27
+ box-shadow: none;
28
+ margin: 0;
29
+ padding-left: 0;
30
+ padding-right: 0;
31
+
32
+ &:focus {
33
+ outline: 0px;
34
+ border: 1px solid var(--iui-color-border-foreground);
35
+ border-radius: var(--iui-border-radius-1);
36
+ border-color: hsl(var(--iui-color-foreground-hsl) / var(--iui-opacity-4));
37
+ box-shadow: hsl(var(--iui-color-accent-hsl) / 0) 0px 1px 1px,
38
+ hsl(var(--iui-color-accent-hsl) / 0.65) 0px 0px 0px 2px;
39
+ z-index: 1;
40
+ /* bump z-index so drop shadow in not cut off by AM/PM */
41
+ }
42
+ }
43
+
44
+ .components-time-period-input {
45
+ box-sizing: border-box;
46
+ width: 3em;
47
+ text-align: center;
48
+ border: none;
49
+ padding-left: 0;
50
+ padding-right: 0;
51
+ box-shadow: none;
52
+ margin: 0;
53
+
54
+ &:focus {
55
+ outline: 0px;
56
+ border: 1px solid var(--iui-color-border-foreground);
57
+ border-radius: var(--iui-border-radius-1);
58
+ border-color: hsl(var(--iui-color-foreground-hsl) / var(--iui-opacity-4));
59
+ box-shadow: hsl(var(--iui-color-accent-hsl) / 0) 0px 1px 1px,
60
+ hsl(var(--iui-color-accent-hsl) / 0.65) 0px 0px 0px 2px;
61
+ }
62
+ }
63
+
64
+ .component-time-separator {
65
+ margin: 0;
66
+ padding: 0 1px;
67
+ }
68
+
69
+ .components-input {
70
+ padding: $uicore-iui-input-padding;
71
+ }
72
+ }
@@ -0,0 +1,22 @@
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
+ $checkbox-size: calc(var(--iui-font-size-1) * 1.2);
7
+
8
+ .components-boolean-editor {
9
+ height: $checkbox-size;
10
+ width: $checkbox-size;
11
+ margin-left: 0px;
12
+
13
+ &.components-cell-editor {
14
+ border: none;
15
+ }
16
+ }
17
+
18
+ .components-property-list--horizontal {
19
+ .components-boolean-editor {
20
+ margin-left: var(--iui-size-xs); // Clear the resizer in the PropertyGrid
21
+ }
22
+ }
@@ -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
+ .components-customnumber-editor {
8
+ width: 100%;
9
+ height: 100%;
10
+ margin: 0;
11
+ }
12
+
13
+ .components-smallEditor-host {
14
+ .components-customnumber-editor {
15
+ min-height: $editor-component-height-small !important;
16
+ padding-top: 1px !important;
17
+ padding-bottom: 1px !important;
18
+ }
19
+ }
@@ -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
+ // cSpell:ignore datetime
6
+
7
+ .components-datetime-editor {
8
+ min-width: 100%;
9
+ }
@@ -0,0 +1,7 @@
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-editor-container {
6
+ width: 100%;
7
+ }
@@ -0,0 +1,141 @@
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
+ $desktop-tool-stripe-width: 2px;
7
+ $desktop-tool-stripe-height: 22px;
8
+
9
+ $icon-size: 16px;
10
+
11
+ $components-enumbuttongroup-editor-item-width: 32px;
12
+ $components-enumbuttongroup-editor-item-height: 32px;
13
+
14
+ $components-enumbuttongroup-editor-item-border-width: 1px;
15
+ $components-enumbuttongroup-editor-space-between-toolbar-items: 1px;
16
+
17
+ .components-enumbuttongroup-editor {
18
+ font-family: var(--iui-font-sans);
19
+ font-size: var(--iui-font-size-1);
20
+ background: var(--iui-color-background);
21
+ width: fit-content;
22
+ border-color: var(--iui-color-border-foreground);
23
+ border-width: $components-enumbuttongroup-editor-item-border-width;
24
+ border-radius: var(--iui-border-radius-1);
25
+ border-style: solid;
26
+ overflow: hidden;
27
+ display: flex;
28
+ vertical-align: bottom;
29
+ box-sizing: border-box;
30
+
31
+ height: $components-enumbuttongroup-editor-item-height;
32
+
33
+ > * {
34
+ display: inline-block;
35
+ height: 100%;
36
+ width: $components-enumbuttongroup-editor-item-width;
37
+
38
+ &:not(:first-child) {
39
+ margin-left: $components-enumbuttongroup-editor-space-between-toolbar-items;
40
+
41
+ &:before {
42
+ content: "";
43
+ background-color: var(--iui-color-border-foreground);
44
+ display: block;
45
+ position: absolute;
46
+ pointer-events: none;
47
+ width: $components-enumbuttongroup-editor-space-between-toolbar-items;
48
+ height: 100%;
49
+ left: -$components-enumbuttongroup-editor-space-between-toolbar-items;
50
+ top: 0;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ .components-enumbuttongroup-button {
57
+ border-width: 0;
58
+ background-color: var(--iui-color-background);
59
+ background-origin: border-box;
60
+ border-color: var(--iui-color-border);
61
+ border-style: solid;
62
+ cursor: pointer;
63
+ transition-property: background-color, color;
64
+ transition-duration: 500ms;
65
+ transition-timing-function: ease;
66
+ position: relative;
67
+ height: $components-enumbuttongroup-editor-item-height;
68
+ width: $components-enumbuttongroup-editor-item-width;
69
+
70
+ > i {
71
+ font-size: $icon-size;
72
+ width: 100%;
73
+ height: 100%;
74
+ display: grid;
75
+ align-content: center;
76
+ justify-content: center;
77
+ margin: 0;
78
+ color: var(--iui-color-icon);
79
+ transition: all 500ms ease;
80
+
81
+ img {
82
+ width: 100%;
83
+ height: 100%;
84
+ }
85
+ }
86
+
87
+ &:hover {
88
+ > i {
89
+ color: var(--iui-color-text-accent-hover);
90
+ transition-duration: 150ms;
91
+ }
92
+ }
93
+
94
+ &.nz-is-active {
95
+ background: var(--iui-color-background);
96
+
97
+ &:not(.nz-is-disabled) {
98
+ transition-duration: 0s;
99
+
100
+ > i {
101
+ color: var(--iui-color-icon-accent);
102
+ transition-duration: 150ms;
103
+ transition-timing-function: cubic-bezier(1, 0.1, 1, 0.5);
104
+ }
105
+
106
+ &:after {
107
+ content: "";
108
+ display: block;
109
+ position: absolute;
110
+ background: var(--iui-color-border-accent);
111
+ left: 3px;
112
+ top: (
113
+ $components-enumbuttongroup-editor-item-height -
114
+ $desktop-tool-stripe-height
115
+ ) * 0.5;
116
+ border-radius: 2px;
117
+ width: $desktop-tool-stripe-width;
118
+ height: $desktop-tool-stripe-height;
119
+ }
120
+ }
121
+ }
122
+
123
+ &.nz-is-disabled {
124
+ pointer-events: none;
125
+ background-color: var(--iui-color-background-disabled);
126
+ border-color: var(--iui-color-border-disabled);
127
+ cursor: not-allowed;
128
+
129
+ > i {
130
+ color: var(--iui-color-icon-disabled);
131
+ }
132
+
133
+ &:hover {
134
+ cursor: auto;
135
+ }
136
+
137
+ &:active {
138
+ pointer-events: none;
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,21 @@
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-enum-editor {
8
+ width: 100%;
9
+ height: 100%;
10
+ margin: 0;
11
+ }
12
+
13
+ .components-smallEditor-host {
14
+ .components-enum-editor {
15
+ > .components-button {
16
+ min-height: $editor-component-height-small !important;
17
+ padding-top: 0px !important;
18
+ padding-bottom: 0px !important;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,14 @@
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-color-editor-item-height: 100%;
6
+
7
+ .components-icon-editor {
8
+ font-family: var(--iui-font-sans);
9
+ font-size: var(--iui-font-size-1);
10
+ color: var(--iui-color-text);
11
+ border: none;
12
+ box-sizing: border-box;
13
+ height: $components-color-editor-item-height;
14
+ }
@@ -0,0 +1,24 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ $image-checkbox-size: 32px;
7
+
8
+ .components-image-checkbox-editor {
9
+ height: $image-checkbox-size;
10
+ width: $image-checkbox-size;
11
+ margin-left: 0px;
12
+
13
+ &.components-cell-editor {
14
+ border: none;
15
+ }
16
+ }
17
+
18
+ .components-property-list--horizontal {
19
+ .components-image-checkbox-editor {
20
+ margin-left: var(
21
+ --iui-font-size-1
22
+ ); // Clear the resizer in the PropertyGrid
23
+ }
24
+ }
@@ -0,0 +1,13 @@
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-smallEditor-host {
8
+ .components-numeric-input-editor {
9
+ min-height: $editor-component-height-small !important;
10
+ padding-top: 0px !important;
11
+ padding-bottom: 0px !important;
12
+ }
13
+ }