@itwin/itwinui-css 0.54.1 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/all.css CHANGED
@@ -648,6 +648,19 @@ html.iui-theme-dark-hc{
648
648
  text-decoration:none;
649
649
  }
650
650
 
651
+ .iui-visually-hidden{
652
+ -webkit-clip-path:inset(50%);
653
+ clip-path:inset(50%);
654
+ overflow:hidden;
655
+ position:absolute;
656
+ white-space:nowrap;
657
+ height:1px;
658
+ width:1px;
659
+ padding:0;
660
+ margin:-1px;
661
+ border-width:0;
662
+ }
663
+
651
664
  [class*=iui-],
652
665
  [class*=iui-] *{
653
666
  scrollbar-color:rgba(0, 0, 0, 0.4) transparent;
@@ -3225,7 +3238,6 @@ html.iui-theme-dark-hc{
3225
3238
  height:100%;
3226
3239
  border-radius:0;
3227
3240
  overflow:hidden;
3228
- padding-right:8px;
3229
3241
  }
3230
3242
  .iui-page-header .iui-header-button.iui-header-button:focus{
3231
3243
  box-shadow:none;
@@ -3336,6 +3348,9 @@ html.iui-theme-dark-hc{
3336
3348
  padding:0;
3337
3349
  }
3338
3350
 
3351
+ .iui-page-header .iui-header-dropdown-button.iui-header-dropdown-button{
3352
+ padding-right:8px;
3353
+ }
3339
3354
  .iui-page-header .iui-header-split-button{
3340
3355
  max-width:25vw;
3341
3356
  }
@@ -3355,7 +3370,6 @@ html.iui-theme-dark-hc{
3355
3370
  height:100%;
3356
3371
  border-radius:0;
3357
3372
  overflow:hidden;
3358
- padding-right:8px;
3359
3373
  padding:0 4px;
3360
3374
  }
3361
3375
  .iui-page-header .iui-header-split-button .iui-button:focus{
@@ -5602,6 +5616,27 @@ label.iui-input-label.iui-disabled{
5602
5616
  fill:rgba(0, 0, 0, 0.2);
5603
5617
  fill:var(--iui-icons-color-actionable-disabled);
5604
5618
  }
5619
+ .iui-menu-item-skeleton{
5620
+ --iui-menu-item-content-skeleton-max-width:30%;
5621
+ cursor:auto;
5622
+ }
5623
+ .iui-menu-item-skeleton .iui-content{
5624
+ max-width:var(--iui-menu-item-content-skeleton-max-width);
5625
+ }
5626
+ .iui-menu-item-skeleton .iui-menu-label{
5627
+ width:100%;
5628
+ height:14px;
5629
+ vertical-align:middle;
5630
+ }
5631
+ .iui-menu-item-skeleton .iui-menu-description{
5632
+ width:70%;
5633
+ height:12px;
5634
+ vertical-align:middle;
5635
+ margin-top:4px;
5636
+ }
5637
+ .iui-menu-item-skeleton:hover{
5638
+ background-color:unset;
5639
+ }
5605
5640
 
5606
5641
  .iui-menu-content{
5607
5642
  padding:11px 13px;
@@ -6099,8 +6134,8 @@ label.iui-input-label.iui-disabled{
6099
6134
  all:revert;
6100
6135
  }
6101
6136
  .iui-popover.tippy-box[data-reference-hidden]{
6102
- visibility:visible;
6103
- pointer-events:auto;
6137
+ visibility:hidden;
6138
+ pointer-events:none;
6104
6139
  }
6105
6140
  .iui-popover .tippy-content{
6106
6141
  all:revert;
@@ -7908,31 +7943,17 @@ label.iui-input-label.iui-disabled{
7908
7943
  user-select:all;
7909
7944
  text-transform:lowercase;
7910
7945
  display:inline-flex;
7911
- }
7912
- .iui-tag:focus-visible{
7913
- outline:2px solid var(--iui-color-foreground-primary);
7914
- outline-offset:-2px;
7915
- }
7916
- @supports not selector(*:focus-visible){
7917
- .iui-tag:focus{
7918
- outline:2px solid var(--iui-color-foreground-primary);
7919
- outline-offset:-2px;
7920
- }
7921
- }
7922
- .iui-tag:not(a){
7923
- color:rgba(0, 0, 0, 0.4);
7924
- color:var(--iui-text-color-muted);
7925
- }
7926
- .iui-tag:not(.iui-basic){
7927
7946
  height:33px;
7928
7947
  margin:3px 0;
7929
- border-radius:16.5px;
7948
+ border-radius:9999px;
7930
7949
  box-sizing:border-box;
7931
7950
  padding:0 2px;
7932
7951
  align-items:center;
7952
+ transition:border-color 0.2s ease-out;
7933
7953
  font-size:14px;
7934
7954
  text-transform:none;
7935
7955
  cursor:default;
7956
+ -webkit-tap-highlight-color:transparent;
7936
7957
  border:1px solid rgba(0, 0, 0, 0.4);
7937
7958
  background-color:white;
7938
7959
  color:rgba(0, 0, 0, 0.8);
@@ -7940,12 +7961,28 @@ label.iui-input-label.iui-disabled{
7940
7961
  background-color:var(--iui-color-background-1);
7941
7962
  color:var(--iui-text-color);
7942
7963
  }
7943
- @media (prefers-reduced-motion: no-preference){
7944
- .iui-tag:not(.iui-basic){
7945
- transition:border 0.2s ease-out;
7946
- }
7964
+ .iui-tag:hover{
7965
+ border-color:black;
7966
+ border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
7967
+ }
7968
+
7969
+ .iui-tag-basic{
7970
+ margin:0;
7971
+ padding:0;
7972
+ border:none;
7973
+ vertical-align:baseline;
7974
+ -webkit-user-select:all;
7975
+ -moz-user-select:all;
7976
+ user-select:all;
7977
+ text-transform:lowercase;
7978
+ display:inline-flex;
7979
+ }
7980
+ .iui-tag-basic:not(a){
7981
+ color:rgba(0, 0, 0, 0.4);
7982
+ color:var(--iui-text-color-muted);
7947
7983
  }
7948
- .iui-tag:not(.iui-basic) > .iui-label{
7984
+
7985
+ .iui-tag-label{
7949
7986
  margin:0;
7950
7987
  padding:0;
7951
7988
  border:none;
@@ -7958,21 +7995,15 @@ label.iui-input-label.iui-disabled{
7958
7995
  overflow:hidden;
7959
7996
  margin:0 4px 0 8px;
7960
7997
  }
7961
- .iui-tag:not(.iui-basic) > .iui-label:only-child{
7998
+ .iui-tag-label:only-child{
7962
7999
  margin:0 8px;
7963
8000
  }
7964
- .iui-tag:not(.iui-basic) > .iui-button{
8001
+
8002
+ .iui-tag-button{
7965
8003
  border-radius:50%;
7966
8004
  }
7967
- .iui-tag:not(.iui-basic):hover{
7968
- border-color:black;
7969
- border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
7970
- }
7971
- .iui-tag.iui-basic{
7972
- outline-offset:1px;
7973
- }
7974
8005
 
7975
- a.iui-tag{
8006
+ a.iui-tag-basic{
7976
8007
  --_iui-anchor-external-svg:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
7977
8008
  color:#008ae0;
7978
8009
  -webkit-tap-highlight-color:rgba(0, 138, 224, 0.2);
@@ -7982,21 +8013,21 @@ a.iui-tag{
7982
8013
  cursor:pointer;
7983
8014
  text-decoration:none;
7984
8015
  }
7985
- a.iui-tag:focus-visible{
8016
+ a.iui-tag-basic:focus-visible{
7986
8017
  outline:1px solid var(--iui-color-foreground-primary);
7987
8018
  outline-offset:1px;
7988
8019
  }
7989
8020
  @supports not selector(*:focus-visible){
7990
- a.iui-tag:focus{
8021
+ a.iui-tag-basic:focus{
7991
8022
  outline:1px solid var(--iui-color-foreground-primary);
7992
8023
  outline-offset:1px;
7993
8024
  }
7994
8025
  }
7995
- a.iui-tag:hover{
8026
+ a.iui-tag-basic:hover{
7996
8027
  color:#006bad;
7997
8028
  color:var(--iui-color-foreground-primary-overlay);
7998
8029
  }
7999
- a.iui-tag-external::after{
8030
+ a.iui-tag-basic-external::after{
8000
8031
  content:"";
8001
8032
  display:inline-block;
8002
8033
  width:1.5ch;
@@ -8008,46 +8039,57 @@ a.iui-tag-external::after{
8008
8039
  mask:var(--_iui-anchor-external-svg);
8009
8040
  }
8010
8041
  @media (forced-colors: active){
8011
- a.iui-tag-external::after{
8042
+ a.iui-tag-basic-external::after{
8012
8043
  background-color:LinkText;
8013
8044
  }
8014
8045
  }
8015
- a.iui-tag:hover{
8046
+ a.iui-tag-basic:hover{
8016
8047
  text-decoration:underline;
8017
8048
  }
8018
8049
  @media (prefers-contrast: more){
8019
- a.iui-tag{
8050
+ a.iui-tag-basic{
8020
8051
  text-decoration:underline;
8021
8052
  }
8022
- a.iui-tag:hover{
8053
+ a.iui-tag-basic:hover{
8023
8054
  text-decoration:none;
8024
8055
  }
8025
8056
  }
8026
- .iui-theme-light a.iui-tag, .iui-theme-dark a.iui-tag{
8057
+ .iui-theme-light a.iui-tag-basic, .iui-theme-dark a.iui-tag-basic{
8027
8058
  text-decoration:none;
8028
8059
  }
8029
- .iui-theme-light a.iui-tag:hover, .iui-theme-dark a.iui-tag:hover{
8060
+ .iui-theme-light a.iui-tag-basic:hover, .iui-theme-dark a.iui-tag-basic:hover{
8030
8061
  text-decoration:underline;
8031
8062
  }
8032
8063
 
8033
- .iui-theme-light-hc a.iui-tag, .iui-theme-dark-hc a.iui-tag{
8064
+ .iui-theme-light-hc a.iui-tag-basic, .iui-theme-dark-hc a.iui-tag-basic{
8034
8065
  text-decoration:underline;
8035
8066
  }
8036
- .iui-theme-light-hc a.iui-tag:hover, .iui-theme-dark-hc a.iui-tag:hover{
8067
+ .iui-theme-light-hc a.iui-tag-basic:hover, .iui-theme-dark-hc a.iui-tag-basic:hover{
8037
8068
  text-decoration:none;
8038
8069
  }
8039
8070
 
8071
+ a.iui-tag-basic:focus-visible{
8072
+ outline:1px solid var(--iui-color-foreground-primary);
8073
+ outline-offset:1px;
8074
+ }
8075
+ @supports not selector(*:focus-visible){
8076
+ a.iui-tag-basic:focus{
8077
+ outline:1px solid var(--iui-color-foreground-primary);
8078
+ outline-offset:1px;
8079
+ }
8080
+ }
8081
+
8040
8082
  .iui-tag-container{
8041
8083
  color:rgba(0, 0, 0, 0.4);
8042
8084
  color:var(--iui-text-color-muted);
8043
8085
  }
8044
- .iui-tag-container > a.iui-basic{
8086
+ .iui-tag-container > a.iui-tag-basic{
8045
8087
  margin:2px;
8046
8088
  }
8047
- .iui-tag-container > .iui-tag:not(:last-child){
8089
+ .iui-tag-container > *:not(last-child){
8048
8090
  margin-right:4px;
8049
8091
  }
8050
- .iui-tag-container > .iui-basic:not(:last-child)::after{
8092
+ .iui-tag-container > .iui-tag-basic:not(:last-child)::after{
8051
8093
  content:",";
8052
8094
  }
8053
8095
  .iui-tag-container.iui-truncate{
@@ -8070,8 +8112,8 @@ a.iui-tag:hover{
8070
8112
  .iui-tag-container.iui-visible{
8071
8113
  border-radius:3px;
8072
8114
  padding:3px 12px;
8073
- background-color:#f9f9fb;
8074
- background-color:var(--iui-color-background-2);
8115
+ background-color:#edeff2;
8116
+ background-color:var(--iui-color-background-3);
8075
8117
  }
8076
8118
 
8077
8119
  .iui-text-headline{
@@ -8191,25 +8233,23 @@ a.iui-tag:hover{
8191
8233
  padding:0;
8192
8234
  border:none;
8193
8235
  vertical-align:baseline;
8236
+ --iui-surface-background-color:var(--iui-color-background-1);
8237
+ --iui-surface-border-radius:0;
8238
+ --iui-surface-elevation:0 1px 5px rgba(0, 0, 0, 0.25);
8239
+ background-color:var(--iui-surface-background-color);
8240
+ border-radius:var(--iui-surface-border-radius);
8241
+ box-shadow:var(--iui-surface-elevation);
8242
+ box-sizing:border-box;
8243
+ color:var(--iui-text-color);
8194
8244
  display:inline-flex;
8195
8245
  flex-direction:column;
8196
8246
  width:288px;
8197
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
8198
8247
  -webkit-backface-visibility:hidden;
8199
8248
  backface-visibility:hidden;
8200
- background-color:white;
8201
- color:rgba(0, 0, 0, 0.8);
8202
- background-color:var(--iui-color-background-1);
8203
- color:var(--iui-text-color);
8204
8249
  }
8205
- .iui-tile:focus-visible{
8206
- outline:2px solid var(--iui-color-foreground-primary);
8207
- outline-offset:2px;
8208
- }
8209
- @supports not selector(*:focus-visible){
8210
- .iui-tile:focus{
8211
- outline:2px solid var(--iui-color-foreground-primary);
8212
- outline-offset:2px;
8250
+ @media (forced-colors: active){
8251
+ .iui-tile{
8252
+ border:1px solid transparent;
8213
8253
  }
8214
8254
  }
8215
8255
  .iui-tile:hover .iui-tile-more-options, .iui-tile:focus-within .iui-tile-more-options{
@@ -8227,9 +8267,6 @@ a.iui-tag:hover{
8227
8267
  .iui-tile:hover .iui-tile-metadata:not(:last-child), .iui-tile:focus-within .iui-tile-metadata:not(:last-child){
8228
8268
  width:calc(100% - 32px);
8229
8269
  }
8230
- .iui-tile:hover .iui-tile-thumbnail-picture, .iui-tile:focus-within .iui-tile-thumbnail-picture{
8231
- transform:translateZ(0) scale(1.1);
8232
- }
8233
8270
  .iui-tile.iui-new .iui-tile-name,
8234
8271
  .iui-tile.iui-new .iui-tile-description{
8235
8272
  font-weight:600;
@@ -8250,7 +8287,24 @@ a.iui-tag:hover{
8250
8287
  outline-offset:0;
8251
8288
  }
8252
8289
  }
8253
- .iui-tile.iui-selected .iui-tile-thumbnail-picture{
8290
+ .iui-tile.iui-actionable{
8291
+ cursor:pointer;
8292
+ transition:box-shadow 0.2s ease-in-out;
8293
+ }
8294
+ .iui-tile.iui-actionable:focus-visible{
8295
+ outline:2px solid var(--iui-color-foreground-primary);
8296
+ outline-offset:2px;
8297
+ }
8298
+ @supports not selector(*:focus-visible){
8299
+ .iui-tile.iui-actionable:focus{
8300
+ outline:2px solid var(--iui-color-foreground-primary);
8301
+ outline-offset:2px;
8302
+ }
8303
+ }
8304
+ .iui-tile.iui-actionable:hover{
8305
+ box-shadow:0 3px 14px rgba(0, 0, 0, 0.25);
8306
+ }
8307
+ .iui-tile.iui-actionable:hover .iui-tile-thumbnail-picture, .iui-tile.iui-actionable:focus-within .iui-tile-thumbnail-picture, .iui-tile.iui-actionable.iui-selected .iui-tile-thumbnail-picture{
8254
8308
  transform:translateZ(0) scale(1.1);
8255
8309
  }
8256
8310
  .iui-tile.iui-folder{
package/css/global.css CHANGED
@@ -647,6 +647,19 @@ html.iui-theme-dark-hc{
647
647
  text-decoration:none;
648
648
  }
649
649
 
650
+ .iui-visually-hidden{
651
+ -webkit-clip-path:inset(50%);
652
+ clip-path:inset(50%);
653
+ overflow:hidden;
654
+ position:absolute;
655
+ white-space:nowrap;
656
+ height:1px;
657
+ width:1px;
658
+ padding:0;
659
+ margin:-1px;
660
+ border-width:0;
661
+ }
662
+
650
663
  [class*=iui-],
651
664
  [class*=iui-] *{
652
665
  scrollbar-color:rgba(0, 0, 0, 0.4) transparent;
package/css/header.css CHANGED
@@ -56,7 +56,6 @@
56
56
  height:100%;
57
57
  border-radius:0;
58
58
  overflow:hidden;
59
- padding-right:8px;
60
59
  }
61
60
  .iui-page-header .iui-header-button.iui-header-button:focus{
62
61
  box-shadow:none;
@@ -167,6 +166,9 @@
167
166
  padding:0;
168
167
  }
169
168
 
169
+ .iui-page-header .iui-header-dropdown-button.iui-header-dropdown-button{
170
+ padding-right:8px;
171
+ }
170
172
  .iui-page-header .iui-header-split-button{
171
173
  max-width:25vw;
172
174
  }
@@ -186,7 +188,6 @@
186
188
  height:100%;
187
189
  border-radius:0;
188
190
  overflow:hidden;
189
- padding-right:8px;
190
191
  padding:0 4px;
191
192
  }
192
193
  .iui-page-header .iui-header-split-button .iui-button:focus{
package/css/menu.css CHANGED
@@ -142,6 +142,27 @@
142
142
  fill:rgba(0, 0, 0, 0.2);
143
143
  fill:var(--iui-icons-color-actionable-disabled);
144
144
  }
145
+ .iui-menu-item-skeleton{
146
+ --iui-menu-item-content-skeleton-max-width:30%;
147
+ cursor:auto;
148
+ }
149
+ .iui-menu-item-skeleton .iui-content{
150
+ max-width:var(--iui-menu-item-content-skeleton-max-width);
151
+ }
152
+ .iui-menu-item-skeleton .iui-menu-label{
153
+ width:100%;
154
+ height:14px;
155
+ vertical-align:middle;
156
+ }
157
+ .iui-menu-item-skeleton .iui-menu-description{
158
+ width:70%;
159
+ height:12px;
160
+ vertical-align:middle;
161
+ margin-top:4px;
162
+ }
163
+ .iui-menu-item-skeleton:hover{
164
+ background-color:unset;
165
+ }
145
166
 
146
167
  .iui-menu-content{
147
168
  padding:11px 13px;
package/css/popover.css CHANGED
@@ -6,8 +6,8 @@
6
6
  all:revert;
7
7
  }
8
8
  .iui-popover.tippy-box[data-reference-hidden]{
9
- visibility:visible;
10
- pointer-events:auto;
9
+ visibility:hidden;
10
+ pointer-events:none;
11
11
  }
12
12
  .iui-popover .tippy-content{
13
13
  all:revert;
package/css/tag.css CHANGED
@@ -12,31 +12,17 @@
12
12
  user-select:all;
13
13
  text-transform:lowercase;
14
14
  display:inline-flex;
15
- }
16
- .iui-tag:focus-visible{
17
- outline:2px solid var(--iui-color-foreground-primary);
18
- outline-offset:-2px;
19
- }
20
- @supports not selector(*:focus-visible){
21
- .iui-tag:focus{
22
- outline:2px solid var(--iui-color-foreground-primary);
23
- outline-offset:-2px;
24
- }
25
- }
26
- .iui-tag:not(a){
27
- color:rgba(0, 0, 0, 0.4);
28
- color:var(--iui-text-color-muted);
29
- }
30
- .iui-tag:not(.iui-basic){
31
15
  height:33px;
32
16
  margin:3px 0;
33
- border-radius:16.5px;
17
+ border-radius:9999px;
34
18
  box-sizing:border-box;
35
19
  padding:0 2px;
36
20
  align-items:center;
21
+ transition:border-color 0.2s ease-out;
37
22
  font-size:14px;
38
23
  text-transform:none;
39
24
  cursor:default;
25
+ -webkit-tap-highlight-color:transparent;
40
26
  border:1px solid rgba(0, 0, 0, 0.4);
41
27
  background-color:white;
42
28
  color:rgba(0, 0, 0, 0.8);
@@ -44,12 +30,28 @@
44
30
  background-color:var(--iui-color-background-1);
45
31
  color:var(--iui-text-color);
46
32
  }
47
- @media (prefers-reduced-motion: no-preference){
48
- .iui-tag:not(.iui-basic){
49
- transition:border 0.2s ease-out;
50
- }
33
+ .iui-tag:hover{
34
+ border-color:black;
35
+ border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
51
36
  }
52
- .iui-tag:not(.iui-basic) > .iui-label{
37
+
38
+ .iui-tag-basic{
39
+ margin:0;
40
+ padding:0;
41
+ border:none;
42
+ vertical-align:baseline;
43
+ -webkit-user-select:all;
44
+ -moz-user-select:all;
45
+ user-select:all;
46
+ text-transform:lowercase;
47
+ display:inline-flex;
48
+ }
49
+ .iui-tag-basic:not(a){
50
+ color:rgba(0, 0, 0, 0.4);
51
+ color:var(--iui-text-color-muted);
52
+ }
53
+
54
+ .iui-tag-label{
53
55
  margin:0;
54
56
  padding:0;
55
57
  border:none;
@@ -62,21 +64,15 @@
62
64
  overflow:hidden;
63
65
  margin:0 4px 0 8px;
64
66
  }
65
- .iui-tag:not(.iui-basic) > .iui-label:only-child{
67
+ .iui-tag-label:only-child{
66
68
  margin:0 8px;
67
69
  }
68
- .iui-tag:not(.iui-basic) > .iui-button{
70
+
71
+ .iui-tag-button{
69
72
  border-radius:50%;
70
73
  }
71
- .iui-tag:not(.iui-basic):hover{
72
- border-color:black;
73
- border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
74
- }
75
- .iui-tag.iui-basic{
76
- outline-offset:1px;
77
- }
78
74
 
79
- a.iui-tag{
75
+ a.iui-tag-basic{
80
76
  --_iui-anchor-external-svg:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m16 0v5.4l-1.9-2-8.4 8.4-1.5-1.5 8.3-8.4-1.9-1.9m5.4 16v-9h-1v8h-14v-14h8v-1h-9v16z' /></svg>");
81
77
  color:#008ae0;
82
78
  -webkit-tap-highlight-color:rgba(0, 138, 224, 0.2);
@@ -86,21 +82,21 @@ a.iui-tag{
86
82
  cursor:pointer;
87
83
  text-decoration:none;
88
84
  }
89
- a.iui-tag:focus-visible{
85
+ a.iui-tag-basic:focus-visible{
90
86
  outline:1px solid var(--iui-color-foreground-primary);
91
87
  outline-offset:1px;
92
88
  }
93
89
  @supports not selector(*:focus-visible){
94
- a.iui-tag:focus{
90
+ a.iui-tag-basic:focus{
95
91
  outline:1px solid var(--iui-color-foreground-primary);
96
92
  outline-offset:1px;
97
93
  }
98
94
  }
99
- a.iui-tag:hover{
95
+ a.iui-tag-basic:hover{
100
96
  color:#006bad;
101
97
  color:var(--iui-color-foreground-primary-overlay);
102
98
  }
103
- a.iui-tag-external::after{
99
+ a.iui-tag-basic-external::after{
104
100
  content:"";
105
101
  display:inline-block;
106
102
  width:1.5ch;
@@ -112,46 +108,57 @@ a.iui-tag-external::after{
112
108
  mask:var(--_iui-anchor-external-svg);
113
109
  }
114
110
  @media (forced-colors: active){
115
- a.iui-tag-external::after{
111
+ a.iui-tag-basic-external::after{
116
112
  background-color:LinkText;
117
113
  }
118
114
  }
119
- a.iui-tag:hover{
115
+ a.iui-tag-basic:hover{
120
116
  text-decoration:underline;
121
117
  }
122
118
  @media (prefers-contrast: more){
123
- a.iui-tag{
119
+ a.iui-tag-basic{
124
120
  text-decoration:underline;
125
121
  }
126
- a.iui-tag:hover{
122
+ a.iui-tag-basic:hover{
127
123
  text-decoration:none;
128
124
  }
129
125
  }
130
- .iui-theme-light a.iui-tag, .iui-theme-dark a.iui-tag{
126
+ .iui-theme-light a.iui-tag-basic, .iui-theme-dark a.iui-tag-basic{
131
127
  text-decoration:none;
132
128
  }
133
- .iui-theme-light a.iui-tag:hover, .iui-theme-dark a.iui-tag:hover{
129
+ .iui-theme-light a.iui-tag-basic:hover, .iui-theme-dark a.iui-tag-basic:hover{
134
130
  text-decoration:underline;
135
131
  }
136
132
 
137
- .iui-theme-light-hc a.iui-tag, .iui-theme-dark-hc a.iui-tag{
133
+ .iui-theme-light-hc a.iui-tag-basic, .iui-theme-dark-hc a.iui-tag-basic{
138
134
  text-decoration:underline;
139
135
  }
140
- .iui-theme-light-hc a.iui-tag:hover, .iui-theme-dark-hc a.iui-tag:hover{
136
+ .iui-theme-light-hc a.iui-tag-basic:hover, .iui-theme-dark-hc a.iui-tag-basic:hover{
141
137
  text-decoration:none;
142
138
  }
143
139
 
140
+ a.iui-tag-basic:focus-visible{
141
+ outline:1px solid var(--iui-color-foreground-primary);
142
+ outline-offset:1px;
143
+ }
144
+ @supports not selector(*:focus-visible){
145
+ a.iui-tag-basic:focus{
146
+ outline:1px solid var(--iui-color-foreground-primary);
147
+ outline-offset:1px;
148
+ }
149
+ }
150
+
144
151
  .iui-tag-container{
145
152
  color:rgba(0, 0, 0, 0.4);
146
153
  color:var(--iui-text-color-muted);
147
154
  }
148
- .iui-tag-container > a.iui-basic{
155
+ .iui-tag-container > a.iui-tag-basic{
149
156
  margin:2px;
150
157
  }
151
- .iui-tag-container > .iui-tag:not(:last-child){
158
+ .iui-tag-container > *:not(last-child){
152
159
  margin-right:4px;
153
160
  }
154
- .iui-tag-container > .iui-basic:not(:last-child)::after{
161
+ .iui-tag-container > .iui-tag-basic:not(:last-child)::after{
155
162
  content:",";
156
163
  }
157
164
  .iui-tag-container.iui-truncate{
@@ -174,6 +181,6 @@ a.iui-tag:hover{
174
181
  .iui-tag-container.iui-visible{
175
182
  border-radius:3px;
176
183
  padding:3px 12px;
177
- background-color:#f9f9fb;
178
- background-color:var(--iui-color-background-2);
184
+ background-color:#edeff2;
185
+ background-color:var(--iui-color-background-3);
179
186
  }
package/css/tile.css CHANGED
@@ -7,25 +7,23 @@
7
7
  padding:0;
8
8
  border:none;
9
9
  vertical-align:baseline;
10
+ --iui-surface-background-color:var(--iui-color-background-1);
11
+ --iui-surface-border-radius:0;
12
+ --iui-surface-elevation:0 1px 5px rgba(0, 0, 0, 0.25);
13
+ background-color:var(--iui-surface-background-color);
14
+ border-radius:var(--iui-surface-border-radius);
15
+ box-shadow:var(--iui-surface-elevation);
16
+ box-sizing:border-box;
17
+ color:var(--iui-text-color);
10
18
  display:inline-flex;
11
19
  flex-direction:column;
12
20
  width:288px;
13
- box-shadow:0 1px 5px rgba(0, 0, 0, 0.25);
14
21
  -webkit-backface-visibility:hidden;
15
22
  backface-visibility:hidden;
16
- background-color:white;
17
- color:rgba(0, 0, 0, 0.8);
18
- background-color:var(--iui-color-background-1);
19
- color:var(--iui-text-color);
20
- }
21
- .iui-tile:focus-visible{
22
- outline:2px solid var(--iui-color-foreground-primary);
23
- outline-offset:2px;
24
23
  }
25
- @supports not selector(*:focus-visible){
26
- .iui-tile:focus{
27
- outline:2px solid var(--iui-color-foreground-primary);
28
- outline-offset:2px;
24
+ @media (forced-colors: active){
25
+ .iui-tile{
26
+ border:1px solid transparent;
29
27
  }
30
28
  }
31
29
  .iui-tile:hover .iui-tile-more-options, .iui-tile:focus-within .iui-tile-more-options{
@@ -43,9 +41,6 @@
43
41
  .iui-tile:hover .iui-tile-metadata:not(:last-child), .iui-tile:focus-within .iui-tile-metadata:not(:last-child){
44
42
  width:calc(100% - 32px);
45
43
  }
46
- .iui-tile:hover .iui-tile-thumbnail-picture, .iui-tile:focus-within .iui-tile-thumbnail-picture{
47
- transform:translateZ(0) scale(1.1);
48
- }
49
44
  .iui-tile.iui-new .iui-tile-name,
50
45
  .iui-tile.iui-new .iui-tile-description{
51
46
  font-weight:600;
@@ -66,7 +61,24 @@
66
61
  outline-offset:0;
67
62
  }
68
63
  }
69
- .iui-tile.iui-selected .iui-tile-thumbnail-picture{
64
+ .iui-tile.iui-actionable{
65
+ cursor:pointer;
66
+ transition:box-shadow 0.2s ease-in-out;
67
+ }
68
+ .iui-tile.iui-actionable:focus-visible{
69
+ outline:2px solid var(--iui-color-foreground-primary);
70
+ outline-offset:2px;
71
+ }
72
+ @supports not selector(*:focus-visible){
73
+ .iui-tile.iui-actionable:focus{
74
+ outline:2px solid var(--iui-color-foreground-primary);
75
+ outline-offset:2px;
76
+ }
77
+ }
78
+ .iui-tile.iui-actionable:hover{
79
+ box-shadow:0 3px 14px rgba(0, 0, 0, 0.25);
80
+ }
81
+ .iui-tile.iui-actionable:hover .iui-tile-thumbnail-picture, .iui-tile.iui-actionable:focus-within .iui-tile-thumbnail-picture, .iui-tile.iui-actionable.iui-selected .iui-tile-thumbnail-picture{
70
82
  transform:translateZ(0) scale(1.1);
71
83
  }
72
84
  .iui-tile.iui-folder{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.54.1",
3
+ "version": "0.55.0",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -55,7 +55,8 @@
55
55
  "test:ci": "backstop --config=./backstop/backstop.js test --docker",
56
56
  "clean:images": "node scripts/removeOldTestImages.js",
57
57
  "print": "node scripts/print.js",
58
- "audit:ci": "audit-ci --moderate --report-type=full"
58
+ "audit:ci": "audit-ci --moderate --report-type=full",
59
+ "build-docker": "node scripts/buildDocker.js"
59
60
  },
60
61
  "devDependencies": {
61
62
  "audit-ci": "^4.0.0",
@@ -85,6 +86,7 @@
85
86
  "jpeg-js": "^0.4.3",
86
87
  "set-value": "^4.1.0",
87
88
  "ansi-regex": "^5.0.1",
88
- "node-fetch": "^2.6.7"
89
+ "node-fetch": "^2.6.7",
90
+ "async": "^3.2.2"
89
91
  }
90
92
  }
@@ -161,6 +161,10 @@
161
161
  @include iui-header-button;
162
162
  }
163
163
 
164
+ .iui-header-dropdown-button.iui-header-dropdown-button {
165
+ @include iui-header-dropdown-button;
166
+ }
167
+
164
168
  .iui-header-split-button {
165
169
  @include iui-header-split-button;
166
170
  }
@@ -239,7 +243,6 @@
239
243
  height: 100%;
240
244
  border-radius: 0;
241
245
  overflow: hidden;
242
- padding-right: $iui-s;
243
246
 
244
247
  @include iui-header-button-focus;
245
248
 
@@ -313,6 +316,10 @@
313
316
  }
314
317
  }
315
318
 
319
+ @mixin iui-header-dropdown-button {
320
+ padding-right: $iui-s;
321
+ }
322
+
316
323
  @mixin iui-header-split-button {
317
324
  &,
318
325
  > * {
@@ -2,6 +2,7 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
4
  @import '../icon/index';
5
+ @import '../text/index';
5
6
 
6
7
  $iui-active-outline: thin solid t(iui-color-foreground-primary);
7
8
 
@@ -149,6 +150,32 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
149
150
  }
150
151
  }
151
152
  }
153
+
154
+ &-skeleton {
155
+ --iui-menu-item-content-skeleton-max-width: 30%;
156
+ cursor: auto;
157
+
158
+ .iui-content {
159
+ max-width: var(--iui-menu-item-content-skeleton-max-width);
160
+ }
161
+
162
+ .iui-menu-label {
163
+ width: 100%;
164
+ height: $iui-font-size;
165
+ vertical-align: middle;
166
+ }
167
+
168
+ .iui-menu-description {
169
+ width: 70%;
170
+ height: $iui-font-size-small;
171
+ vertical-align: middle;
172
+ margin-top: $iui-xs;
173
+ }
174
+
175
+ &:hover {
176
+ background-color: unset;
177
+ }
178
+ }
152
179
  }
153
180
 
154
181
  @mixin iui-menu-content {
@@ -7,8 +7,8 @@
7
7
  @mixin iui-popover {
8
8
  &.tippy-box {
9
9
  &[data-reference-hidden] {
10
- visibility: visible;
11
- pointer-events: auto;
10
+ visibility: hidden;
11
+ pointer-events: none;
12
12
  }
13
13
 
14
14
  // Resets tippy.js default stylings that interfere with our own
@@ -56,6 +56,10 @@ html {
56
56
  @include iui-anchor;
57
57
  }
58
58
 
59
+ .iui-visually-hidden {
60
+ @include visually-hidden;
61
+ }
62
+
59
63
  [class*='iui-'],
60
64
  [class*='iui-'] * {
61
65
  // Text highlight
@@ -7,8 +7,21 @@
7
7
  @include iui-tag;
8
8
  }
9
9
 
10
- a.iui-tag {
10
+ .iui-tag-basic {
11
+ @include iui-tag-basic;
12
+ }
13
+
14
+ .iui-tag-label {
15
+ @include iui-tag-label;
16
+ }
17
+
18
+ .iui-tag-button {
19
+ @include iui-tag-button;
20
+ }
21
+
22
+ a.iui-tag-basic {
11
23
  @include iui-anchor;
24
+ @include iui-focus($offset: 1px);
12
25
  }
13
26
 
14
27
  .iui-tag-container {
package/scss/tag/tag.scss CHANGED
@@ -1,67 +1,66 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../icon/index';
5
4
  @import '../text/mixins';
5
+ @import '../button/index';
6
6
 
7
- @mixin iui-tag {
7
+ @mixin iui-tag-base {
8
8
  @include iui-reset;
9
- @include iui-focus($offset: -2px, $thickness: 2px);
10
9
  user-select: all;
11
10
  text-transform: lowercase;
12
11
  display: inline-flex;
12
+ }
13
+
14
+ @mixin iui-tag-basic {
15
+ @include iui-tag-base;
13
16
 
14
17
  &:not(a) {
15
18
  @include themed {
16
19
  color: t(iui-text-color-muted);
17
20
  }
18
21
  }
22
+ }
19
23
 
20
- &:not(.iui-basic) {
21
- height: $iui-baseline * 3;
22
- margin: $iui-component-offset 0;
23
- border-radius: ($iui-baseline * 3) * 0.5;
24
- box-sizing: border-box;
25
- padding: 0 $iui-xxs;
26
- align-items: center;
27
- @media (prefers-reduced-motion: no-preference) {
28
- transition: border $iui-speed-fast ease-out;
29
- }
30
- font-size: $iui-font-size;
31
- text-transform: none;
32
- cursor: default;
33
- @include themed {
34
- border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
35
- background-color: t(iui-color-background-1);
36
- color: t(iui-text-color);
37
- }
38
-
39
- > .iui-label {
40
- @include iui-text;
41
- white-space: nowrap;
42
- text-overflow: ellipsis;
43
- overflow: hidden;
44
- margin: 0 $iui-xs 0 $iui-s;
24
+ @mixin iui-tag {
25
+ @include iui-tag-base;
26
+ height: $iui-baseline * 3;
27
+ margin: $iui-component-offset 0;
28
+ border-radius: $iui-border-radius-round;
29
+ box-sizing: border-box;
30
+ padding: 0 $iui-xxs;
31
+ align-items: center;
32
+ transition: border-color $iui-speed-fast ease-out;
33
+ font-size: $iui-font-size;
34
+ text-transform: none;
35
+ cursor: default;
36
+ -webkit-tap-highlight-color: transparent;
37
+ @include themed {
38
+ border: 1px solid rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
39
+ background-color: t(iui-color-background-1);
40
+ color: t(iui-text-color);
41
+ }
45
42
 
46
- &:only-child {
47
- margin: 0 $iui-s;
48
- }
43
+ &:hover {
44
+ @include themed {
45
+ border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
49
46
  }
47
+ }
48
+ }
50
49
 
51
- > .iui-button {
52
- border-radius: 50%;
53
- }
50
+ @mixin iui-tag-label {
51
+ @include iui-text;
52
+ white-space: nowrap;
53
+ text-overflow: ellipsis;
54
+ overflow: hidden;
55
+ margin: 0 $iui-xs 0 $iui-s;
54
56
 
55
- &:hover {
56
- @include themed {
57
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
58
- }
59
- }
57
+ &:only-child {
58
+ margin: 0 $iui-s;
60
59
  }
60
+ }
61
61
 
62
- &.iui-basic {
63
- outline-offset: 1px;
64
- }
62
+ @mixin iui-tag-button {
63
+ border-radius: 50%;
65
64
  }
66
65
 
67
66
  @mixin iui-tag-container {
@@ -69,15 +68,15 @@
69
68
  color: t(iui-text-color-muted);
70
69
  }
71
70
 
72
- > a.iui-basic {
71
+ > a.iui-tag-basic {
73
72
  margin: $iui-xxs;
74
73
  }
75
74
 
76
- > .iui-tag:not(:last-child) {
75
+ > *:not(last-child) {
77
76
  margin-right: $iui-xs;
78
77
  }
79
78
 
80
- > .iui-basic:not(:last-child)::after {
79
+ > .iui-tag-basic:not(:last-child)::after {
81
80
  content: ',';
82
81
  }
83
82
 
@@ -94,7 +93,7 @@
94
93
  border-radius: $iui-border-radius;
95
94
  padding: $iui-component-offset $iui-sm;
96
95
  @include themed {
97
- background-color: t(iui-color-background-2);
96
+ background-color: t(iui-color-background-3);
98
97
  }
99
98
  }
100
99
  }
@@ -1,21 +1,17 @@
1
1
  // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import '../style/index';
4
- @import '../icon/index';
5
4
  @import '../button/index';
5
+ @import '../icon/index';
6
+ @import '../surface/index';
6
7
 
7
8
  @mixin iui-tile {
8
9
  @include iui-reset;
10
+ @include iui-surface;
9
11
  display: inline-flex;
10
12
  flex-direction: column;
11
13
  width: $iui-3xl * 3;
12
- box-shadow: $iui-elevation-2;
13
14
  backface-visibility: hidden;
14
- @include iui-focus($offset: $iui-xxs, $thickness: $iui-xxs);
15
- @include themed() {
16
- background-color: t(iui-color-background-1);
17
- color: t(iui-text-color);
18
- }
19
15
 
20
16
  &:hover,
21
17
  &:focus-within {
@@ -27,10 +23,6 @@
27
23
  .iui-tile-metadata:not(:last-child) {
28
24
  width: calc(100% - #{$iui-xl});
29
25
  }
30
-
31
- .iui-tile-thumbnail-picture {
32
- transform: translateZ(0) scale(1.1);
33
- }
34
26
  }
35
27
 
36
28
  &.iui-new {
@@ -50,9 +42,23 @@
50
42
  ),
51
43
  linear-gradient(t(iui-color-background-1), t(iui-color-background-1));
52
44
  }
45
+ }
46
+
47
+ &.iui-actionable {
48
+ @include iui-focus($offset: $iui-xxs, $thickness: $iui-xxs);
49
+ cursor: pointer;
50
+ transition: box-shadow $iui-speed-fast ease-in-out;
51
+
52
+ &:hover {
53
+ box-shadow: $iui-elevation-8;
54
+ }
53
55
 
54
- .iui-tile-thumbnail-picture {
55
- transform: translateZ(0) scale(1.1);
56
+ &:hover,
57
+ &:focus-within,
58
+ &.iui-selected {
59
+ .iui-tile-thumbnail-picture {
60
+ transform: translateZ(0) scale(1.1);
61
+ }
56
62
  }
57
63
  }
58
64