@itwin/itwinui-css 0.59.0 → 0.60.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/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ # MIT License
2
+
3
+ Copyright © Bentley Systems, Incorporated. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -77,4 +77,4 @@ Please read our [CONTRIBUTING.md](https://github.com/iTwin/iTwinUI/blob/main/CON
77
77
 
78
78
  ## Changelog
79
79
 
80
- Read our [CHANGELOG.md](https://github.com/iTwin/iTwinUI/blob/main/CHANGELOG.md) to find recent changes.
80
+ Read our [CHANGELOG.md](https://github.com/iTwin/iTwinUI/blob/main/packages/itwinui-css/CHANGELOG.md) to find recent changes.
package/css/all.css CHANGED
@@ -1045,6 +1045,27 @@ html.iui-theme-dark-hc{
1045
1045
  font-weight:600;
1046
1046
  }
1047
1047
 
1048
+ .iui-backdrop{
1049
+ z-index:998;
1050
+ isolation:isolate;
1051
+ position:absolute;
1052
+ top:0;
1053
+ left:0;
1054
+ width:100%;
1055
+ height:100%;
1056
+ background-color:rgba(0, 0, 0, 0.4);
1057
+ background-color:rgba(0, 0, 0, var(--iui-opacity-4));
1058
+ transition:visibility 0s linear, opacity 0.2s ease-out;
1059
+ transition-delay:0.2s, 0s;
1060
+ }
1061
+ .iui-backdrop:not(.iui-backdrop-visible){
1062
+ visibility:hidden;
1063
+ opacity:0;
1064
+ }
1065
+ .iui-backdrop.iui-backdrop-visible{
1066
+ transition-delay:0s;
1067
+ }
1068
+
1048
1069
  .iui-blockquote{
1049
1070
  margin:0;
1050
1071
  padding:0;
@@ -2166,9 +2187,6 @@ a.iui-breadcrumbs-text:focus{
2166
2187
  .iui-codeblock > .iui-title-bar > .iui-button{
2167
2188
  margin-left:auto;
2168
2189
  }
2169
- .iui-codeblock .iui-button{
2170
- gap:0;
2171
- }
2172
2190
  .iui-codeblock > .iui-codeblock-content{
2173
2191
  margin:0;
2174
2192
  overflow-x:auto;
@@ -2949,115 +2967,86 @@ a.iui-breadcrumbs-text:focus{
2949
2967
  border-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
2950
2968
  }
2951
2969
 
2952
- .iui-dialog-backdrop{
2953
- margin:0;
2954
- padding:0;
2955
- border:none;
2956
- vertical-align:baseline;
2957
- z-index:999;
2958
- isolation:isolate;
2959
- position:fixed;
2970
+ .iui-dialog-wrapper{
2971
+ position:relative;
2972
+ overflow:hidden;
2960
2973
  top:0;
2961
2974
  left:0;
2962
2975
  width:100%;
2963
2976
  height:100%;
2964
- background-color:rgba(0, 0, 0, 0.4);
2965
- background-color:rgba(0, 0, 0, var(--iui-opacity-4));
2966
- visibility:hidden;
2967
- opacity:0;
2968
- transition:visibility 0s linear 0.2s, opacity 0.2s ease-out;
2969
- }
2970
- .iui-dialog-backdrop.iui-dialog-visible{
2971
- visibility:visible;
2972
- opacity:1;
2973
- transition-delay:0s;
2974
- }
2975
- .iui-dialog-backdrop.iui-dialog-backdrop-relative{
2976
- position:relative;
2977
- overflow:hidden;
2977
+ pointer-events:none;
2978
+ transform:translateX(0);
2978
2979
  }
2979
2980
 
2980
2981
  .iui-dialog{
2982
+ z-index:999;
2983
+ isolation:isolate;
2981
2984
  border-radius:3px;
2982
2985
  box-shadow:0 9px 46px rgba(0, 0, 0, 0.25);
2983
2986
  box-sizing:border-box;
2984
- position:absolute;
2987
+ position:fixed;
2985
2988
  padding:11px 16px;
2986
2989
  box-sizing:border-box;
2987
2990
  padding:11px 16px;
2988
2991
  overflow:hidden;
2989
- background-color:white;
2992
+ pointer-events:auto;
2993
+ background-color:#FFF;
2990
2994
  background-color:var(--iui-color-background-1);
2995
+ transition:visibility 0s linear, opacity 0.2s ease-out;
2996
+ transition-delay:0.2s, 0s;
2991
2997
  }
2992
2998
  @media (forced-colors: active){
2993
2999
  .iui-dialog{
2994
3000
  border:1px solid;
2995
3001
  }
2996
3002
  }
3003
+ .iui-dialog:not(.iui-dialog-visible){
3004
+ visibility:hidden;
3005
+ opacity:0;
3006
+ }
3007
+ .iui-dialog.iui-dialog-visible{
3008
+ transition-delay:0s;
3009
+ }
2997
3010
 
2998
- .iui-dialog-default .iui-dialog{
3011
+ .iui-dialog-default{
2999
3012
  left:50%;
3000
3013
  top:33%;
3001
3014
  transform:translate(-50%, -33%);
3002
- max-width:50%;
3015
+ max-width:max(50%, 380px);
3003
3016
  min-width:380px;
3004
3017
  max-height:100vh;
3005
3018
  }
3006
- @media screen and (max-width: 400px){
3007
- .iui-dialog-default .iui-dialog{
3008
- max-width:95%;
3009
- width:95%;
3010
- min-width:95%;
3011
- }
3012
- }
3013
3019
 
3014
- @media (prefers-reduced-motion: no-preference){
3015
- .iui-dialog-full-page{
3016
- transition:visibility 0s linear 0.8s, opacity 0.4s ease-out 0.2s;
3017
- }
3018
- }
3019
- .iui-dialog-full-page .iui-dialog{
3020
+ .iui-dialog-full-page{
3020
3021
  border-radius:0;
3021
3022
  height:100vh;
3023
+ height:100dvh;
3022
3024
  width:100vw;
3023
3025
  top:0;
3024
3026
  left:0;
3025
- max-width:initial;
3026
- min-width:initial;
3027
3027
  display:flex;
3028
3028
  flex-direction:column;
3029
3029
  will-change:transform;
3030
3030
  }
3031
+ .iui-dialog-full-page:not(.iui-dialog-visible){
3032
+ transform:translateY(100%);
3033
+ }
3031
3034
  @media (prefers-reduced-motion: no-preference){
3032
- .iui-dialog-full-page .iui-dialog{
3033
- transform:translateY(100%);
3035
+ .iui-dialog-full-page{
3034
3036
  transition:visibility 0s linear 0.4s, opacity 0s linear 0.4s, transform 0.2s ease-in;
3035
3037
  }
3036
- }
3037
- .iui-dialog-full-page.iui-dialog-visible .iui-dialog{
3038
- transform:translateY(0);
3039
- }
3040
- @media (prefers-reduced-motion: no-preference){
3041
- .iui-dialog-full-page.iui-dialog-visible .iui-dialog{
3038
+ .iui-dialog-full-page.iui-dialog-visible{
3042
3039
  transition:transform 0.4s ease-out;
3043
3040
  }
3044
3041
  }
3045
3042
 
3046
3043
  .iui-dialog-draggable{
3047
- background-color:transparent;
3048
- pointer-events:none;
3049
- z-index:998;
3050
- }
3051
- .iui-dialog-draggable .iui-dialog{
3052
- pointer-events:initial;
3053
- max-width:100vw;
3044
+ max-width:100%;
3054
3045
  max-height:100vh;
3055
3046
  min-width:380px;
3056
3047
  min-height:144px;
3057
3048
  display:flex;
3058
3049
  flex-direction:column;
3059
- padding:0;
3060
- border:1px solid #c7ccd1;
3061
3050
  border:1px solid var(--iui-color-background-border);
3062
3051
  }
3063
3052
 
@@ -3077,21 +3066,17 @@ a.iui-breadcrumbs-text:focus{
3077
3066
  box-sizing:border-box;
3078
3067
  font-size:18px;
3079
3068
  }
3080
- .iui-dialog-draggable .iui-dialog-title-bar{
3081
- -webkit-user-select:none;
3082
- -moz-user-select:none;
3083
- -ms-user-select:none;
3084
- user-select:none;
3069
+
3070
+ .iui-dialog-title-bar-filled{
3085
3071
  font-size:16px;
3086
3072
  padding:6px 16px;
3073
+ margin:-11px -16px 11px -16px;
3087
3074
  cursor:-webkit-grab;
3088
3075
  cursor:grab;
3089
- background-color:#edeff2;
3090
- border-bottom:1px solid #c7ccd1;
3091
3076
  background-color:var(--iui-color-background-3);
3092
3077
  border-bottom:1px solid var(--iui-color-background-border);
3093
3078
  }
3094
- .iui-dialog-draggable .iui-dialog-title-bar:active{
3079
+ .iui-dialog-title-bar-filled:active{
3095
3080
  cursor:-webkit-grabbing;
3096
3081
  cursor:grabbing;
3097
3082
  }
@@ -3103,49 +3088,23 @@ a.iui-breadcrumbs-text:focus{
3103
3088
  overflow-y:auto;
3104
3089
  overflow-y:overlay;
3105
3090
  }
3106
- .iui-dialog-draggable .iui-dialog-content{
3107
- margin:0;
3108
- }
3109
3091
 
3110
3092
  .iui-dialog-button-bar{
3111
3093
  margin-top:11px;
3112
3094
  display:flex;
3113
3095
  align-items:center;
3114
3096
  justify-content:flex-end;
3115
- }
3116
- .iui-dialog-draggable .iui-dialog-button-bar{
3117
- padding:0 16px 11px 16px;
3118
- }
3119
-
3120
- .iui-dialog-button-bar > .iui-button:not(:last-child){
3121
- margin-right:8px;
3122
- }
3123
- @supports ((-moz-column-gap: 8px) or (column-gap: 8px)){
3124
- .iui-dialog-button-bar{
3125
- -moz-column-gap:8px;
3126
- column-gap:8px;
3127
- }
3128
- .iui-dialog-button-bar > .iui-button:not(:last-child){
3129
- margin-right:0;
3130
- }
3097
+ gap:8px;
3131
3098
  }
3132
3099
 
3133
- .iui-dialog-animation-enter .iui-dialog-full-page .iui-dialog{
3100
+ .iui-dialog-animation-enter{
3134
3101
  transform:translateY(100%);
3135
3102
  opacity:0;
3136
3103
  }
3137
- .iui-dialog-animation-enter-active .iui-dialog-full-page .iui-dialog{
3104
+ .iui-dialog-animation-enter-active{
3138
3105
  transform:translateY(0);
3139
3106
  opacity:1;
3140
3107
  }
3141
- .iui-dialog-animation-enter .iui-dialog-backdrop{
3142
- visibility:hidden;
3143
- opacity:0;
3144
- }
3145
- .iui-dialog-animation-enter-active .iui-dialog-backdrop{
3146
- visibility:visible;
3147
- opacity:1;
3148
- }
3149
3108
 
3150
3109
  .iui-expandable-block{
3151
3110
  margin:0;
@@ -7559,7 +7518,7 @@ label.iui-input-label.iui-disabled{
7559
7518
  .iui-table-body.iui-scroll-snapping .iui-row{
7560
7519
  scroll-snap-align:start none;
7561
7520
  }
7562
- .iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected){
7521
+ .iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected) .iui-cell{
7563
7522
  background-color:rgba(0, 0, 0, 0.02);
7564
7523
  background-color:rgba(var(--iui-color-foreground-body-rgb), 0.02);
7565
7524
  }
@@ -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
+ .iui-backdrop{
6
+ z-index:998;
7
+ isolation:isolate;
8
+ position:absolute;
9
+ top:0;
10
+ left:0;
11
+ width:100%;
12
+ height:100%;
13
+ background-color:rgba(0, 0, 0, 0.4);
14
+ background-color:rgba(0, 0, 0, var(--iui-opacity-4));
15
+ transition:visibility 0s linear, opacity 0.2s ease-out;
16
+ transition-delay:0.2s, 0s;
17
+ }
18
+ .iui-backdrop:not(.iui-backdrop-visible){
19
+ visibility:hidden;
20
+ opacity:0;
21
+ }
22
+ .iui-backdrop.iui-backdrop-visible{
23
+ transition-delay:0s;
24
+ }
package/css/code.css CHANGED
@@ -44,9 +44,6 @@
44
44
  .iui-codeblock > .iui-title-bar > .iui-button{
45
45
  margin-left:auto;
46
46
  }
47
- .iui-codeblock .iui-button{
48
- gap:0;
49
- }
50
47
  .iui-codeblock > .iui-codeblock-content{
51
48
  margin:0;
52
49
  overflow-x:auto;
package/css/dialog.css CHANGED
@@ -2,115 +2,86 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- .iui-dialog-backdrop{
6
- margin:0;
7
- padding:0;
8
- border:none;
9
- vertical-align:baseline;
10
- z-index:999;
11
- isolation:isolate;
12
- position:fixed;
5
+ .iui-dialog-wrapper{
6
+ position:relative;
7
+ overflow:hidden;
13
8
  top:0;
14
9
  left:0;
15
10
  width:100%;
16
11
  height:100%;
17
- background-color:rgba(0, 0, 0, 0.4);
18
- background-color:rgba(0, 0, 0, var(--iui-opacity-4));
19
- visibility:hidden;
20
- opacity:0;
21
- transition:visibility 0s linear 0.2s, opacity 0.2s ease-out;
22
- }
23
- .iui-dialog-backdrop.iui-dialog-visible{
24
- visibility:visible;
25
- opacity:1;
26
- transition-delay:0s;
27
- }
28
- .iui-dialog-backdrop.iui-dialog-backdrop-relative{
29
- position:relative;
30
- overflow:hidden;
12
+ pointer-events:none;
13
+ transform:translateX(0);
31
14
  }
32
15
 
33
16
  .iui-dialog{
17
+ z-index:999;
18
+ isolation:isolate;
34
19
  border-radius:3px;
35
20
  box-shadow:0 9px 46px rgba(0, 0, 0, 0.25);
36
21
  box-sizing:border-box;
37
- position:absolute;
22
+ position:fixed;
38
23
  padding:11px 16px;
39
24
  box-sizing:border-box;
40
25
  padding:11px 16px;
41
26
  overflow:hidden;
42
- background-color:white;
27
+ pointer-events:auto;
28
+ background-color:#FFF;
43
29
  background-color:var(--iui-color-background-1);
30
+ transition:visibility 0s linear, opacity 0.2s ease-out;
31
+ transition-delay:0.2s, 0s;
44
32
  }
45
33
  @media (forced-colors: active){
46
34
  .iui-dialog{
47
35
  border:1px solid;
48
36
  }
49
37
  }
38
+ .iui-dialog:not(.iui-dialog-visible){
39
+ visibility:hidden;
40
+ opacity:0;
41
+ }
42
+ .iui-dialog.iui-dialog-visible{
43
+ transition-delay:0s;
44
+ }
50
45
 
51
- .iui-dialog-default .iui-dialog{
46
+ .iui-dialog-default{
52
47
  left:50%;
53
48
  top:33%;
54
49
  transform:translate(-50%, -33%);
55
- max-width:50%;
50
+ max-width:max(50%, 380px);
56
51
  min-width:380px;
57
52
  max-height:100vh;
58
53
  }
59
- @media screen and (max-width: 400px){
60
- .iui-dialog-default .iui-dialog{
61
- max-width:95%;
62
- width:95%;
63
- min-width:95%;
64
- }
65
- }
66
54
 
67
- @media (prefers-reduced-motion: no-preference){
68
- .iui-dialog-full-page{
69
- transition:visibility 0s linear 0.8s, opacity 0.4s ease-out 0.2s;
70
- }
71
- }
72
- .iui-dialog-full-page .iui-dialog{
55
+ .iui-dialog-full-page{
73
56
  border-radius:0;
74
57
  height:100vh;
58
+ height:100dvh;
75
59
  width:100vw;
76
60
  top:0;
77
61
  left:0;
78
- max-width:initial;
79
- min-width:initial;
80
62
  display:flex;
81
63
  flex-direction:column;
82
64
  will-change:transform;
83
65
  }
66
+ .iui-dialog-full-page:not(.iui-dialog-visible){
67
+ transform:translateY(100%);
68
+ }
84
69
  @media (prefers-reduced-motion: no-preference){
85
- .iui-dialog-full-page .iui-dialog{
86
- transform:translateY(100%);
70
+ .iui-dialog-full-page{
87
71
  transition:visibility 0s linear 0.4s, opacity 0s linear 0.4s, transform 0.2s ease-in;
88
72
  }
89
- }
90
- .iui-dialog-full-page.iui-dialog-visible .iui-dialog{
91
- transform:translateY(0);
92
- }
93
- @media (prefers-reduced-motion: no-preference){
94
- .iui-dialog-full-page.iui-dialog-visible .iui-dialog{
73
+ .iui-dialog-full-page.iui-dialog-visible{
95
74
  transition:transform 0.4s ease-out;
96
75
  }
97
76
  }
98
77
 
99
78
  .iui-dialog-draggable{
100
- background-color:transparent;
101
- pointer-events:none;
102
- z-index:998;
103
- }
104
- .iui-dialog-draggable .iui-dialog{
105
- pointer-events:initial;
106
- max-width:100vw;
79
+ max-width:100%;
107
80
  max-height:100vh;
108
81
  min-width:380px;
109
82
  min-height:144px;
110
83
  display:flex;
111
84
  flex-direction:column;
112
- padding:0;
113
- border:1px solid #c7ccd1;
114
85
  border:1px solid var(--iui-color-background-border);
115
86
  }
116
87
 
@@ -130,21 +101,17 @@
130
101
  box-sizing:border-box;
131
102
  font-size:18px;
132
103
  }
133
- .iui-dialog-draggable .iui-dialog-title-bar{
134
- -webkit-user-select:none;
135
- -moz-user-select:none;
136
- -ms-user-select:none;
137
- user-select:none;
104
+
105
+ .iui-dialog-title-bar-filled{
138
106
  font-size:16px;
139
107
  padding:6px 16px;
108
+ margin:-11px -16px 11px -16px;
140
109
  cursor:-webkit-grab;
141
110
  cursor:grab;
142
- background-color:#edeff2;
143
- border-bottom:1px solid #c7ccd1;
144
111
  background-color:var(--iui-color-background-3);
145
112
  border-bottom:1px solid var(--iui-color-background-border);
146
113
  }
147
- .iui-dialog-draggable .iui-dialog-title-bar:active{
114
+ .iui-dialog-title-bar-filled:active{
148
115
  cursor:-webkit-grabbing;
149
116
  cursor:grabbing;
150
117
  }
@@ -156,46 +123,20 @@
156
123
  overflow-y:auto;
157
124
  overflow-y:overlay;
158
125
  }
159
- .iui-dialog-draggable .iui-dialog-content{
160
- margin:0;
161
- }
162
126
 
163
127
  .iui-dialog-button-bar{
164
128
  margin-top:11px;
165
129
  display:flex;
166
130
  align-items:center;
167
131
  justify-content:flex-end;
168
- }
169
- .iui-dialog-draggable .iui-dialog-button-bar{
170
- padding:0 16px 11px 16px;
171
- }
172
-
173
- .iui-dialog-button-bar > .iui-button:not(:last-child){
174
- margin-right:8px;
175
- }
176
- @supports ((-moz-column-gap: 8px) or (column-gap: 8px)){
177
- .iui-dialog-button-bar{
178
- -moz-column-gap:8px;
179
- column-gap:8px;
180
- }
181
- .iui-dialog-button-bar > .iui-button:not(:last-child){
182
- margin-right:0;
183
- }
132
+ gap:8px;
184
133
  }
185
134
 
186
- .iui-dialog-animation-enter .iui-dialog-full-page .iui-dialog{
135
+ .iui-dialog-animation-enter{
187
136
  transform:translateY(100%);
188
137
  opacity:0;
189
138
  }
190
- .iui-dialog-animation-enter-active .iui-dialog-full-page .iui-dialog{
139
+ .iui-dialog-animation-enter-active{
191
140
  transform:translateY(0);
192
141
  opacity:1;
193
- }
194
- .iui-dialog-animation-enter .iui-dialog-backdrop{
195
- visibility:hidden;
196
- opacity:0;
197
- }
198
- .iui-dialog-animation-enter-active .iui-dialog-backdrop{
199
- visibility:visible;
200
- opacity:1;
201
142
  }
package/css/table.css CHANGED
@@ -215,7 +215,7 @@
215
215
  .iui-table-body.iui-scroll-snapping .iui-row{
216
216
  scroll-snap-align:start none;
217
217
  }
218
- .iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected){
218
+ .iui-table-body.iui-zebra-striping .iui-row:nth-child(even):not(.iui-selected) .iui-cell{
219
219
  background-color:rgba(0, 0, 0, 0.02);
220
220
  background-color:rgba(var(--iui-color-foreground-body-rgb), 0.02);
221
221
  }
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
7
+ "files": [
8
+ "css",
9
+ "scss",
10
+ "CHANGELOG.md",
11
+ "LICENSE.md"
12
+ ],
7
13
  "description": "CSS (Sass/SCSS) library for building beautiful and well working web UI components within Bentley Systems & iTwin.js applications.",
8
14
  "homepage": "https://github.com/iTwin/iTwinUI",
9
15
  "keywords": [
@@ -21,72 +27,35 @@
21
27
  "bentley systems",
22
28
  "itwin"
23
29
  ],
24
- "husky": {
25
- "hooks": {
26
- "pre-commit": "lint-staged"
27
- }
28
- },
29
- "lint-staged": {
30
- "*.{scss}": [
31
- "prettier --write"
32
- ],
33
- "*.{scss,html}": [
34
- "stylelint --fix"
35
- ],
36
- "*.{scss,html,js}": [
37
- "yarn lint:copyright --fix"
38
- ]
30
+ "dependencies": {},
31
+ "devDependencies": {
32
+ "autoprefixer": "^10.4.1",
33
+ "backstopjs": "~6.0.4",
34
+ "html-minifier": "^4.0.0",
35
+ "postcss": "^8.4.5",
36
+ "postcss-discard-comments": "^5.0.1",
37
+ "postcss-scss": "^4.0.3",
38
+ "sass-embedded": "^1.49.9",
39
+ "stylelint": "^14.2.0",
40
+ "stylelint-config-sass-guidelines": "^9.0.1"
39
41
  },
40
42
  "scripts": {
41
- "build": "yarn clean && yarn build:scss && yarn build:css && yarn lint:copyright --fix lib/css/* && yarn build:html && yarn copy-files",
42
- "build:scss": "cpx \"./src/**/*.scss\" ./lib/scss",
43
- "build:css": "node ./scripts/generateCss.js src lib/css",
43
+ "build": "yarn clean && yarn build:scss && yarn build:css && node ../shared/copyrightLinter.js --fix css/* && yarn build:html",
44
+ "build:scss": "cpx \"./src/**/*.scss\" ./scss",
45
+ "build:css": "node ./scripts/generateCss.js src css",
44
46
  "build:html": "node ./scripts/generateHtml.js backstop/tests backstop/minified",
45
47
  "build:watch": "yarn build && concurrently -n scss,html -k \"yarn build:watch:scss\" \"yarn build:watch:html\"",
46
48
  "build:watch:scss": "chokidar \"src/**/*\" -c \"yarn build:scss && yarn build:css\"",
47
49
  "build:watch:html": "chokidar \"backstop/tests/**/*\" -c \"yarn build:html\"",
48
- "copy-files": "cpx package.json lib && cpx README.md lib",
49
50
  "createComponent": "node ./scripts/createComponent.js",
50
- "clean": "rimraf ./lib ./backstop/results/bitmaps_test",
51
+ "clean": "rimraf ./css ./scss ./backstop/results/bitmaps_test",
52
+ "dev": "yarn build:watch",
51
53
  "lint": "stylelint \"src/**/*.scss\"",
52
- "lint:copyright": "node scripts/copyrightLinter.js",
53
54
  "approve": "backstop --config=./backstop/backstop.js approve",
54
- "test": "yarn build && yarn test:ci",
55
- "test:ci": "backstop --config=./backstop/backstop.js test --docker",
55
+ "test": "backstop --config=./backstop/backstop.js test --docker",
56
56
  "clean:images": "node scripts/removeOldTestImages.js",
57
57
  "print": "node scripts/print.js",
58
58
  "audit:ci": "audit-ci --moderate --report-type=full",
59
59
  "build-docker": "node scripts/buildDocker.js"
60
- },
61
- "devDependencies": {
62
- "audit-ci": "^4.0.0",
63
- "autoprefixer": "^10.4.1",
64
- "backstopjs": "~6.0.4",
65
- "chokidar-cli": "^2.1.0",
66
- "concurrently": "^6.0.0",
67
- "cpx": "^1.5.0",
68
- "html-minifier": "^4.0.0",
69
- "husky": "=4",
70
- "lint-staged": "^11.2.6",
71
- "postcss": "^8.4.5",
72
- "postcss-discard-comments": "^5.0.1",
73
- "postcss-scss": "^4.0.3",
74
- "prettier": "^2.4.1",
75
- "rimraf": "^3.0.2",
76
- "sass-embedded": "^1.49.9",
77
- "stylelint": "^14.2.0",
78
- "stylelint-config-sass-guidelines": "^9.0.1"
79
- },
80
- "resolutions": {
81
- "braces": "^2.3.1",
82
- "hosted-git-info": ">=3.0.8",
83
- "jimp": ">=0.16.1",
84
- "trim-newlines": "^3.0.1",
85
- "glob-parent": "^5.1.2",
86
- "jpeg-js": "^0.4.3",
87
- "set-value": "^4.1.0",
88
- "ansi-regex": "^5.0.1",
89
- "node-fetch": "^2.6.7",
90
- "async": "^3.2.2"
91
60
  }
92
61
  }
@@ -0,0 +1,27 @@
1
+ // Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2
+ // See LICENSE.md in the project root for license terms and full copyright notice.
3
+ @import '../style/index';
4
+
5
+ @mixin iui-backdrop {
6
+ z-index: 998;
7
+ isolation: isolate;
8
+ position: absolute;
9
+ top: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ background-color: rgba(0, 0, 0, 0.4); // IE fallback
14
+ background-color: rgba(0, 0, 0, var(--iui-opacity-4));
15
+
16
+ &:not(.iui-backdrop-visible) {
17
+ visibility: hidden;
18
+ opacity: 0;
19
+ }
20
+
21
+ transition: visibility $iui-speed-instant linear, opacity $iui-speed-fast ease-out;
22
+ transition-delay: $iui-speed-fast, $iui-speed-instant;
23
+
24
+ &.iui-backdrop-visible {
25
+ transition-delay: $iui-speed-instant; // remove delay for entry animation
26
+ }
27
+ }