@itwin/itwinui-css 0.61.0 → 0.63.1

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/css/tile.css CHANGED
@@ -102,6 +102,92 @@
102
102
  margin-bottom:0;
103
103
  -webkit-line-clamp:2;
104
104
  }
105
+ .iui-tile.iui-progress{
106
+ cursor:progress;
107
+ font-style:italic;
108
+ }
109
+ .iui-tile[aria-disabled=true]{
110
+ cursor:not-allowed;
111
+ }
112
+ .iui-tile[aria-disabled=true] .iui-tile-name-label{
113
+ color:var(--iui-text-color-muted);
114
+ }
115
+ .iui-tile[aria-disabled=true] .iui-thumbnail-icon,
116
+ .iui-tile[aria-disabled=true] .iui-tile-thumbnail-picture{
117
+ filter:grayscale(100%);
118
+ }
119
+ .iui-tile[aria-disabled=true]:hover .iui-tile-thumbnail-picture, .iui-tile[aria-disabled=true]:focus-within .iui-tile-thumbnail-picture{
120
+ transform:none;
121
+ }
122
+ .iui-tile[aria-disabled=true] .iui-tile-more-options{
123
+ display:none;
124
+ }
125
+ .iui-tile.iui-positive::-moz-selection, .iui-tile.iui-positive *::-moz-selection{
126
+ background-color:rgba(83, 162, 26, 0.2);
127
+ background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
128
+ }
129
+ .iui-tile.iui-positive::selection,
130
+ .iui-tile.iui-positive *::selection{
131
+ background-color:rgba(83, 162, 26, 0.2);
132
+ background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-5));
133
+ }
134
+ .iui-tile.iui-positive .iui-tile-thumbnail{
135
+ box-shadow:0 4px 0 var(--iui-color-foreground-positive);
136
+ }
137
+ .iui-tile.iui-positive.iui-folder .iui-tile-thumbnail{
138
+ box-shadow:4px 0 0 var(--iui-color-foreground-positive);
139
+ }
140
+
141
+ .iui-tile.iui-positive .iui-tile-name-label{
142
+ color:var(--iui-color-foreground-positive);
143
+ }
144
+ .iui-tile.iui-positive .iui-tile-status-icon{
145
+ fill:var(--iui-color-foreground-positive);
146
+ }
147
+ .iui-tile.iui-warning::-moz-selection, .iui-tile.iui-warning *::-moz-selection{
148
+ background-color:rgba(241, 141, 19, 0.2);
149
+ background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
150
+ }
151
+ .iui-tile.iui-warning::selection,
152
+ .iui-tile.iui-warning *::selection{
153
+ background-color:rgba(241, 141, 19, 0.2);
154
+ background-color:rgba(var(--iui-color-foreground-warning-rgb), var(--iui-opacity-5));
155
+ }
156
+ .iui-tile.iui-warning .iui-tile-thumbnail{
157
+ box-shadow:0 4px 0 var(--iui-color-foreground-warning);
158
+ }
159
+ .iui-tile.iui-warning.iui-folder .iui-tile-thumbnail{
160
+ box-shadow:4px 0 0 var(--iui-color-foreground-warning);
161
+ }
162
+
163
+ .iui-tile.iui-warning .iui-tile-name-label{
164
+ color:var(--iui-color-foreground-warning);
165
+ }
166
+ .iui-tile.iui-warning .iui-tile-status-icon{
167
+ fill:var(--iui-color-foreground-warning);
168
+ }
169
+ .iui-tile.iui-negative::-moz-selection, .iui-tile.iui-negative *::-moz-selection{
170
+ background-color:rgba(209, 10, 10, 0.2);
171
+ background-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
172
+ }
173
+ .iui-tile.iui-negative::selection,
174
+ .iui-tile.iui-negative *::selection{
175
+ background-color:rgba(209, 10, 10, 0.2);
176
+ background-color:rgba(var(--iui-color-foreground-negative-rgb), var(--iui-opacity-5));
177
+ }
178
+ .iui-tile.iui-negative .iui-tile-thumbnail{
179
+ box-shadow:0 4px 0 var(--iui-color-foreground-negative);
180
+ }
181
+ .iui-tile.iui-negative.iui-folder .iui-tile-thumbnail{
182
+ box-shadow:4px 0 0 var(--iui-color-foreground-negative);
183
+ }
184
+
185
+ .iui-tile.iui-negative .iui-tile-name-label{
186
+ color:var(--iui-color-foreground-negative);
187
+ }
188
+ .iui-tile.iui-negative .iui-tile-status-icon{
189
+ fill:var(--iui-color-foreground-negative);
190
+ }
105
191
 
106
192
  .iui-tile-thumbnail-type-indicator{
107
193
  border-color:transparent;
@@ -269,6 +355,11 @@
269
355
  width:64px;
270
356
  height:64px;
271
357
  }
358
+ @media (forced-colors: active){
359
+ .iui-tile-thumbnail .iui-thumbnail-icon{
360
+ fill:CanvasText;
361
+ }
362
+ }
272
363
  .iui-tile-thumbnail .iui-thumbnail-icon.iui-informational{
273
364
  fill:#008ae0;
274
365
  fill:var(--iui-icons-color-primary);
@@ -386,6 +477,11 @@ div.iui-tile-thumbnail-picture{
386
477
  margin-right:8px;
387
478
  flex-shrink:0;
388
479
  }
480
+ @media (forced-colors: active){
481
+ .iui-tile-content .iui-tile-status-icon{
482
+ fill:CanvasText;
483
+ }
484
+ }
389
485
  .iui-tile-content .iui-tile-status-icon.iui-informational{
390
486
  fill:#008ae0;
391
487
  fill:var(--iui-icons-color-primary);
@@ -449,6 +545,12 @@ div.iui-tile-thumbnail-picture{
449
545
  margin-right:8px;
450
546
  flex-shrink:0;
451
547
  }
548
+ @media (forced-colors: active){
549
+ .iui-tile-content .iui-tile-metadata > svg,
550
+ .iui-tile-content .iui-tile-metadata .iui-tile-metadata-icon{
551
+ fill:CanvasText;
552
+ }
553
+ }
452
554
  .iui-tile-content .iui-tile-metadata > svg.iui-informational,
453
555
  .iui-tile-content .iui-tile-metadata .iui-tile-metadata-icon.iui-informational{
454
556
  fill:#008ae0;
package/css/tree.css CHANGED
@@ -70,6 +70,11 @@
70
70
  margin:0 6px;
71
71
  flex-shrink:0;
72
72
  }
73
+ @media (forced-colors: active){
74
+ .iui-tree-node-content-icon{
75
+ fill:CanvasText;
76
+ }
77
+ }
73
78
  .iui-tree-node-content-icon.iui-informational{
74
79
  fill:#008ae0;
75
80
  fill:var(--iui-icons-color-primary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.61.0",
3
+ "version": "0.63.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -29,33 +29,37 @@
29
29
  ],
30
30
  "dependencies": {},
31
31
  "devDependencies": {
32
+ "@itwin/itwinui-icons-elements": "0.2.0",
32
33
  "autoprefixer": "^10.4.1",
33
34
  "backstopjs": "~6.0.4",
34
35
  "html-minifier": "^4.0.0",
36
+ "npm-run-all": "^4.1.5",
35
37
  "postcss": "^8.4.5",
36
38
  "postcss-discard-comments": "^5.0.1",
37
39
  "postcss-scss": "^4.0.3",
38
40
  "sass-embedded": "^1.49.9",
41
+ "serve": "^14.0.1",
39
42
  "stylelint": "^14.2.0",
40
- "stylelint-config-sass-guidelines": "^9.0.1"
43
+ "stylelint-config-sass-guidelines": "^9.0.1",
44
+ "vite": "^3.0.0"
41
45
  },
42
46
  "scripts": {
43
47
  "build": "yarn clean && yarn build:scss && yarn build:css && node ../shared/copyrightLinter.js --fix css/* && yarn build:html",
44
48
  "build:scss": "cpx \"./src/**/*.scss\" ./scss",
45
49
  "build:css": "node ./scripts/generateCss.js src css",
46
- "build:html": "node ./scripts/generateHtml.js backstop/tests backstop/minified",
47
- "build:watch": "yarn build && concurrently -n scss,html -k \"yarn build:watch:scss\" \"yarn build:watch:html\"",
50
+ "build:html": "vite build backstop/tests --config vite.config.ts",
48
51
  "build:watch:scss": "chokidar \"src/**/*\" -c \"yarn build:scss && yarn build:css\"",
49
- "build:watch:html": "chokidar \"backstop/tests/**/*\" -c \"yarn build:html\"",
50
52
  "createComponent": "node ./scripts/createComponent.js",
51
53
  "clean": "rimraf ./css ./scss ./backstop/results/bitmaps_test",
52
- "dev": "yarn build:watch",
54
+ "dev": "concurrently -n scss,html -k \"yarn build:watch:scss\" \"yarn vite backstop/tests --config vite.config.ts\"",
55
+ "preview": "serve backstop/minified -p 3050",
53
56
  "lint": "stylelint \"src/**/*.scss\"",
54
57
  "approve": "backstop --config=./backstop/backstop.js approve",
55
- "test": "backstop --config=./backstop/backstop.js test --docker",
58
+ "test:only": "backstop --config=./backstop/backstop.js test --docker",
59
+ "test": "npm-run-all -p -r \"preview\" \"test:only {1}\" --",
56
60
  "clean:images": "node scripts/removeOldTestImages.js",
57
61
  "print": "node scripts/print.js",
58
62
  "audit:ci": "audit-ci --moderate --report-type=full",
59
- "build-docker": "node scripts/buildDocker.js"
63
+ "push-docker": "node scripts/pushDocker.js"
60
64
  }
61
65
  }
@@ -28,6 +28,7 @@
28
28
 
29
29
  > .iui-codeblock-content {
30
30
  margin: 0;
31
+ display: grid;
31
32
  overflow-x: auto;
32
33
  overflow-y: auto;
33
34
  border-radius: 0 0 $iui-border-radius $iui-border-radius;
@@ -183,45 +183,49 @@ $iui-hover-box-shadow: 0 0 1px $iui-xxs + 1 rgba(var(--iui-color-foreground-body
183
183
  }
184
184
 
185
185
  @mixin iui-hue-slider {
186
- .iui-slider-rail {
187
- height: $iui-s;
188
- forced-color-adjust: none;
189
- @include themed {
190
- background: linear-gradient(
191
- to right,
192
- $iui-color-system-red 0%,
193
- $iui-color-system-yellow 17%,
194
- rgb(0, 255, 0) 33%,
195
- rgb(0, 255, 255) 50%,
196
- $iui-color-system-blue 67%,
197
- $iui-color-system-magenta 83%,
198
- $iui-color-system-red 100%
199
- );
186
+ .iui-slider-container {
187
+ .iui-slider-rail {
188
+ height: $iui-s;
189
+ forced-color-adjust: none;
190
+ @include themed {
191
+ background: linear-gradient(
192
+ to right,
193
+ $iui-color-system-red 0%,
194
+ $iui-color-system-yellow 17%,
195
+ rgb(0, 255, 0) 33%,
196
+ rgb(0, 255, 255) 50%,
197
+ $iui-color-system-blue 67%,
198
+ $iui-color-system-magenta 83%,
199
+ $iui-color-system-red 100%
200
+ );
201
+ }
200
202
  }
201
- }
202
203
 
203
- .iui-slider-thumb {
204
- top: 7px;
204
+ .iui-slider-thumb {
205
+ top: 7px;
206
+ }
205
207
  }
206
208
  }
207
209
 
208
210
  @mixin iui-opacity-slider {
209
- .iui-slider-rail {
210
- height: $iui-s;
211
- forced-color-adjust: none;
212
- @include iui-transparent-background($size: $iui-s);
213
-
214
- &::before {
215
- display: block;
216
- content: '';
217
- width: 100%;
218
- height: 100%;
219
- background-image: linear-gradient(to right, transparent 0%, var(--iui-color-picker-selected-color) 100%);
211
+ .iui-slider-container {
212
+ .iui-slider-rail {
213
+ height: $iui-s;
214
+ forced-color-adjust: none;
215
+ @include iui-transparent-background($size: $iui-s);
216
+
217
+ &::before {
218
+ display: block;
219
+ content: '';
220
+ width: 100%;
221
+ height: 100%;
222
+ background-image: linear-gradient(to right, transparent 0%, var(--iui-color-picker-selected-color) 100%);
223
+ }
220
224
  }
221
- }
222
225
 
223
- .iui-slider-thumb {
224
- top: 7px;
226
+ .iui-slider-thumb {
227
+ top: 7px;
228
+ }
225
229
  }
226
230
  }
227
231
 
@@ -137,18 +137,20 @@ $iui-dialog-width: 380px;
137
137
  }
138
138
 
139
139
  @mixin iui-dialog-title {
140
+ display: flex;
141
+ align-items: center;
140
142
  font-size: inherit;
141
143
  white-space: nowrap;
142
144
  overflow: hidden;
143
145
  text-overflow: ellipsis;
144
146
  line-height: 1.5;
147
+ margin-right: auto;
145
148
  }
146
149
 
147
150
  @mixin iui-dialog-title-bar {
148
151
  display: flex;
149
152
  align-items: center;
150
153
  margin-bottom: $iui-baseline;
151
- justify-content: space-between;
152
154
  box-sizing: border-box;
153
155
  font-size: $iui-font-size-subheading;
154
156
  }
@@ -5,3 +5,19 @@
5
5
  .iui-legal-footer {
6
6
  @include iui-legal-footer;
7
7
  }
8
+
9
+ .iui-legal-footer-list {
10
+ @include iui-legal-footer-list;
11
+ }
12
+
13
+ .iui-legal-footer-item {
14
+ @include iui-legal-footer-item;
15
+ }
16
+
17
+ .iui-legal-footer-separator {
18
+ @include iui-legal-footer-separator;
19
+ }
20
+
21
+ .iui-legal-footer-developer {
22
+ @include iui-legal-footer-developer;
23
+ }
@@ -10,56 +10,53 @@
10
10
  width: 100%;
11
11
  padding: $iui-baseline 0;
12
12
  font-size: $iui-font-size-small;
13
+ }
13
14
 
14
- > ul {
15
- list-style-type: none;
16
- margin: 0 auto;
17
- padding: 0;
18
- display: flex;
19
- justify-content: center;
20
- align-items: center;
21
- flex-wrap: wrap;
22
-
23
- > li {
24
- display: inline-block;
25
- user-select: none;
26
- white-space: nowrap;
27
- word-break: keep-all;
28
-
29
- @include themed {
30
- color: t(iui-text-color-muted);
31
- }
15
+ @mixin iui-legal-footer-list {
16
+ list-style-type: none;
17
+ margin: 0 auto;
18
+ padding: 0;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ flex-wrap: wrap;
23
+ }
32
24
 
33
- .iui-separator {
34
- margin: 0 $iui-s;
35
- width: 1px;
36
- height: $iui-baseline;
37
- display: inline-table;
25
+ @mixin iui-legal-footer-item {
26
+ display: flex;
27
+ align-items: center;
28
+ user-select: none;
29
+ white-space: nowrap;
30
+ word-break: keep-all;
38
31
 
39
- @include themed {
40
- background-color: t(iui-text-color-muted);
41
- }
42
- }
32
+ @include themed {
33
+ color: t(iui-text-color-muted);
34
+ }
43
35
 
44
- > a {
45
- @include iui-anchor;
36
+ > a {
37
+ @include iui-anchor;
46
38
 
47
- &,
48
- &:hover {
49
- @include themed {
50
- color: t(iui-text-color-muted);
51
- }
52
- }
39
+ &,
40
+ &:hover {
41
+ @include themed {
42
+ color: t(iui-text-color-muted);
53
43
  }
54
44
  }
55
45
  }
46
+ }
56
47
 
57
- > .iui-legal-footer-developer {
58
- display: block;
59
- user-select: all;
48
+ @mixin iui-legal-footer-separator {
49
+ margin: 0 $iui-s;
50
+ width: 1px;
51
+ height: $iui-baseline;
60
52
 
61
- @include themed {
62
- color: t(iui-text-color-muted);
63
- }
53
+ @include themed {
54
+ background-color: t(iui-text-color-muted);
55
+ }
56
+ }
57
+
58
+ @mixin iui-legal-footer-developer {
59
+ @include themed {
60
+ color: t(iui-text-color-muted);
64
61
  }
65
62
  }
@@ -48,6 +48,9 @@
48
48
  @include themed {
49
49
  fill: t(iui-icons-color);
50
50
  }
51
+ @media (forced-colors: active) {
52
+ fill: CanvasText;
53
+ }
51
54
 
52
55
  &.iui-informational {
53
56
  @include themed {
@@ -2,6 +2,14 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './index';
4
4
 
5
+ .iui-slider-horizontal {
6
+ @include iui-slider-horizontal;
7
+ }
8
+
9
+ .iui-slider-vertical {
10
+ @include iui-slider-vertical;
11
+ }
12
+
5
13
  .iui-slider-component-container {
6
14
  @include iui-slider-component-container;
7
15
  }
@@ -25,3 +33,8 @@
25
33
  .iui-slider-track {
26
34
  @include iui-slider-track;
27
35
  }
36
+
37
+ .iui-slider-min,
38
+ .iui-slider-max {
39
+ @include iui-slider-endpoints;
40
+ }