@itwin/itwinui-css 0.59.1 → 0.61.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 (52) hide show
  1. package/CHANGELOG.md +945 -0
  2. package/LICENSE.md +9 -0
  3. package/README.md +1 -1
  4. package/css/alert.css +2 -2
  5. package/css/all.css +376 -198
  6. package/css/anchor.css +1 -1
  7. package/css/backdrop.css +24 -0
  8. package/css/badge.css +1 -1
  9. package/css/blockquote.css +1 -1
  10. package/css/breadcrumbs.css +5 -5
  11. package/css/button.css +13 -13
  12. package/css/carousel.css +2 -2
  13. package/css/code.css +3 -6
  14. package/css/color-picker.css +1 -1
  15. package/css/date-picker.css +6 -6
  16. package/css/dialog.css +64 -97
  17. package/css/expandable-block.css +1 -1
  18. package/css/fieldset.css +2 -2
  19. package/css/footer.css +1 -1
  20. package/css/global.css +1 -1
  21. package/css/header.css +3 -3
  22. package/css/inputs.css +201 -5
  23. package/css/keyboard.css +1 -1
  24. package/css/location-marker.css +1 -1
  25. package/css/menu.css +1 -1
  26. package/css/radio-tile.css +2 -2
  27. package/css/table.css +1 -1
  28. package/css/tabs.css +31 -27
  29. package/css/tag.css +4 -11
  30. package/css/text.css +1 -1
  31. package/css/time-picker.css +2 -2
  32. package/css/toast-notification.css +2 -2
  33. package/css/tooltip.css +1 -1
  34. package/package.json +24 -55
  35. package/scss/backdrop/backdrop.scss +27 -0
  36. package/scss/backdrop/classes.scss +7 -0
  37. package/scss/backdrop/index.scss +3 -0
  38. package/scss/classes.scss +1 -0
  39. package/scss/code/codeblock.scss +0 -4
  40. package/scss/dialog/classes.scss +7 -6
  41. package/scss/dialog/dialog.scss +95 -125
  42. package/scss/index.scss +1 -0
  43. package/scss/inputs/classes.scss +20 -0
  44. package/scss/inputs/select.scss +66 -0
  45. package/scss/style/variables.scss +1 -1
  46. package/scss/tabs/borderless.scss +3 -4
  47. package/scss/tabs/classes.scss +4 -0
  48. package/scss/tabs/default.scss +3 -4
  49. package/scss/tabs/pill.scss +1 -1
  50. package/scss/tabs/tabs.scss +14 -13
  51. package/scss/tag/tag.scss +2 -2
  52. package/src/index.scss +46 -0
package/css/inputs.css CHANGED
@@ -465,7 +465,7 @@ label.iui-input-label.iui-disabled{
465
465
  font-size:14px;
466
466
  font-weight:400;
467
467
  line-height:22px;
468
- border-radius:3px;
468
+ border-radius:4px;
469
469
  -webkit-appearance:none;
470
470
  -moz-appearance:none;
471
471
  appearance:none;
@@ -562,7 +562,7 @@ label.iui-input-label.iui-disabled{
562
562
  .iui-select-button{
563
563
  width:100%;
564
564
  margin:0;
565
- border-radius:3px;
565
+ border-radius:4px;
566
566
  box-sizing:border-box;
567
567
  padding:7px 12px;
568
568
  min-height:38px;
@@ -632,6 +632,202 @@ label.iui-input-label.iui-disabled{
632
632
  color:var(--iui-text-color-placeholder);
633
633
  }
634
634
 
635
+ .iui-select-tag-container{
636
+ position:absolute;
637
+ inset:0 40px 0 12px;
638
+ height:100%;
639
+ display:flex;
640
+ align-items:center;
641
+ gap:4px;
642
+ overflow:hidden;
643
+ }
644
+ .iui-select-tag-container > * + *{
645
+ margin-left:4px;
646
+ }
647
+ @supports (gap: 4px){
648
+ .iui-select-tag-container > * + *{
649
+ margin-left:0;
650
+ }
651
+ }
652
+
653
+ .iui-select-tag{
654
+ -webkit-user-select:all;
655
+ -moz-user-select:all;
656
+ user-select:all;
657
+ text-transform:lowercase;
658
+ display:inline-flex;
659
+ height:33px;
660
+ margin-top:3px;
661
+ margin-bottom:3px;
662
+ border-radius:9999px;
663
+ box-sizing:border-box;
664
+ padding:0 2px;
665
+ align-items:center;
666
+ transition:border-color 0.2s ease-out;
667
+ font-size:14px;
668
+ text-transform:none;
669
+ cursor:default;
670
+ -webkit-tap-highlight-color:transparent;
671
+ border:1px solid rgba(0, 0, 0, 0.4);
672
+ background-color:white;
673
+ color:rgba(0, 0, 0, 0.8);
674
+ border:1px solid rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-4));
675
+ background-color:var(--iui-color-background-1);
676
+ color:var(--iui-text-color);
677
+ margin-top:0;
678
+ margin-bottom:0;
679
+ display:inline-flex;
680
+ align-items:center;
681
+ height:80%;
682
+ max-height:33px;
683
+ }
684
+ .iui-select-tag:hover{
685
+ border-color:black;
686
+ border-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
687
+ }
688
+
689
+ .iui-select-tag-label{
690
+ margin:0;
691
+ padding:0;
692
+ border:none;
693
+ vertical-align:baseline;
694
+ font-size:14px;
695
+ font-weight:400;
696
+ line-height:22px;
697
+ white-space:nowrap;
698
+ text-overflow:ellipsis;
699
+ overflow:hidden;
700
+ margin:0 4px 0 8px;
701
+ display:inline-flex;
702
+ align-items:center;
703
+ }
704
+ .iui-select-tag-label:only-child{
705
+ margin:0 8px;
706
+ }
707
+ .iui-select-button.iui-small .iui-select-tag-label{
708
+ font-size:12px;
709
+ line-height:16px;
710
+ }
711
+
712
+ .iui-select-tag-button{
713
+ --_iui-button-active-stripe-inset:initial;
714
+ --_iui-button-text-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
715
+ margin:0;
716
+ padding:0;
717
+ border:none;
718
+ vertical-align:baseline;
719
+ font-family:inherit;
720
+ display:inline-flex;
721
+ align-items:center;
722
+ vertical-align:middle;
723
+ justify-content:center;
724
+ position:relative;
725
+ box-sizing:border-box;
726
+ border-radius:4px;
727
+ line-height:22px;
728
+ box-shadow:none;
729
+ font-size:14px;
730
+ font-weight:400;
731
+ text-decoration:none;
732
+ -webkit-user-select:none;
733
+ -moz-user-select:none;
734
+ -ms-user-select:none;
735
+ user-select:none;
736
+ cursor:pointer;
737
+ white-space:nowrap;
738
+ border:1px solid transparent;
739
+ color:rgba(0, 0, 0, 0.8);
740
+ color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-2));
741
+ color:var(--_iui-button-text-color);
742
+ border-color:transparent;
743
+ background-color:transparent;
744
+ padding:0 8px;
745
+ height:38px;
746
+ gap:8px;
747
+ border-radius:50%;
748
+ padding:0 4px;
749
+ height:100%;
750
+ aspect-ratio:1/1;
751
+ }
752
+ @media (prefers-reduced-motion: no-preference){
753
+ .iui-select-tag-button{
754
+ transition:color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
755
+ }
756
+ }
757
+ .iui-select-tag-button:hover{
758
+ --_iui-button-text-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-1));
759
+ text-decoration:none;
760
+ }
761
+ .iui-select-tag-button:focus-visible{
762
+ outline:1px solid var(--iui-color-foreground-primary);
763
+ outline-offset:-1px;
764
+ }
765
+ @supports not selector(*:focus-visible){
766
+ .iui-select-tag-button:focus{
767
+ outline:1px solid var(--iui-color-foreground-primary);
768
+ outline-offset:-1px;
769
+ }
770
+ }
771
+ .iui-select-tag-button[disabled], .iui-select-tag-button:disabled{
772
+ cursor:not-allowed;
773
+ background:#edeff2;
774
+ border-color:#edeff2;
775
+ color:rgba(0, 0, 0, 0.2);
776
+ background:var(--iui-color-background-disabled);
777
+ border-color:var(--iui-color-background-disabled);
778
+ color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
779
+ }
780
+ .iui-select-tag-button > .iui-button-icon:only-child{
781
+ margin-left:3px;
782
+ margin-right:3px;
783
+ }
784
+ .iui-select-tag-button:hover{
785
+ background-color:rgba(0, 0, 0, 0.1);
786
+ border-color:transparent;
787
+ background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
788
+ border-color:transparent;
789
+ }
790
+ .iui-select-tag-button.iui-active{
791
+ background-color:rgba(0, 138, 224, 0.1);
792
+ color:#008ae0;
793
+ background-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
794
+ color:var(--iui-color-foreground-primary);
795
+ border-color:transparent;
796
+ }
797
+ .iui-select-tag-button[disabled], .iui-select-tag-button:disabled{
798
+ cursor:not-allowed;
799
+ background:#edeff2;
800
+ border-color:#edeff2;
801
+ color:rgba(0, 0, 0, 0.2);
802
+ background:var(--iui-color-background-disabled);
803
+ border-color:var(--iui-color-background-disabled);
804
+ color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-5));
805
+ background-color:transparent;
806
+ border-color:transparent;
807
+ background-color:transparent;
808
+ border-color:transparent;
809
+ }
810
+ .iui-select-tag-button[disabled].iui-active, .iui-select-tag-button:disabled.iui-active{
811
+ background-color:rgba(0, 0, 0, 0.05);
812
+ background-color:rgba(var(--iui-color-foreground-body-rgb), 0.05);
813
+ }
814
+ .iui-select-button.iui-small .iui-select-tag-button{
815
+ font-size:12px;
816
+ line-height:16px;
817
+ }
818
+
819
+ .iui-select-tag-button-icon{
820
+ width:16px;
821
+ height:16px;
822
+ transition:fill 0.2s ease-out;
823
+ fill:currentColor;
824
+ flex-shrink:0;
825
+ }
826
+ .iui-select-button.iui-small .iui-select-tag-button-icon{
827
+ width:12px;
828
+ height:12px;
829
+ }
830
+
635
831
  .iui-textarea{
636
832
  margin:0;
637
833
  padding:0;
@@ -642,7 +838,7 @@ label.iui-input-label.iui-disabled{
642
838
  font-size:14px;
643
839
  font-weight:400;
644
840
  line-height:22px;
645
- border-radius:3px;
841
+ border-radius:4px;
646
842
  -webkit-appearance:none;
647
843
  -moz-appearance:none;
648
844
  appearance:none;
@@ -834,7 +1030,7 @@ label.iui-input-label.iui-disabled{
834
1030
  width:16px;
835
1031
  height:16px;
836
1032
  position:relative;
837
- border-radius:3px;
1033
+ border-radius:4px;
838
1034
  background-color:var(--_iui-checkbox-background-color);
839
1035
  flex-shrink:0;
840
1036
  cursor:pointer;
@@ -992,7 +1188,7 @@ label.iui-input-label.iui-disabled{
992
1188
  width:16px;
993
1189
  height:16px;
994
1190
  position:relative;
995
- border-radius:3px;
1191
+ border-radius:4px;
996
1192
  background-color:var(--_iui-checkbox-background-color);
997
1193
  flex-shrink:0;
998
1194
  cursor:pointer;
package/css/keyboard.css CHANGED
@@ -7,7 +7,7 @@
7
7
  padding:0;
8
8
  border:none;
9
9
  vertical-align:baseline;
10
- border-radius:3px;
10
+ border-radius:4px;
11
11
  display:inline-block;
12
12
  font-size:12px;
13
13
  font-weight:600;
@@ -40,7 +40,7 @@
40
40
  }
41
41
  .iui-location-marker-data-rich > .iui-location-marker-data-rich-body{
42
42
  min-width:32px;
43
- border-radius:3px;
43
+ border-radius:4px;
44
44
  text-align:center;
45
45
  font-size:16px;
46
46
  padding:3px 8px;
package/css/menu.css CHANGED
@@ -36,7 +36,7 @@
36
36
  margin:0;
37
37
  width:24px;
38
38
  height:24px;
39
- border-radius:3px;
39
+ border-radius:4px;
40
40
  }
41
41
  .iui-menu.iui-scroll{
42
42
  overflow-y:auto;
@@ -8,10 +8,10 @@
8
8
  -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6));
9
9
  }
10
10
  .iui-radio-tile:first-of-type > .iui-radio-tile-content{
11
- border-radius:3px 0 0 3px;
11
+ border-radius:4px 0 0 4px;
12
12
  }
13
13
  .iui-radio-tile:last-of-type > .iui-radio-tile-content{
14
- border-radius:0 3px 3px 0;
14
+ border-radius:0 4px 4px 0;
15
15
  }
16
16
  .iui-radio-tile:not(:first-of-type) > .iui-radio-tile-content{
17
17
  margin-left:-1px;
package/css/table.css CHANGED
@@ -631,7 +631,7 @@
631
631
  justify-content:center;
632
632
  position:relative;
633
633
  box-sizing:border-box;
634
- border-radius:3px;
634
+ border-radius:4px;
635
635
  line-height:22px;
636
636
  box-shadow:none;
637
637
  font-size:14px;
package/css/tabs.css CHANGED
@@ -19,9 +19,6 @@
19
19
  .iui-tabs-wrapper.iui-horizontal .iui-tab.iui-active::after{
20
20
  height:2px;
21
21
  }
22
- .iui-tabs-wrapper.iui-vertical .iui-tabs{
23
- flex-direction:column;
24
- }
25
22
  .iui-tabs-wrapper.iui-vertical .iui-tabs li,
26
23
  .iui-tabs-wrapper.iui-vertical .iui-tabs .iui-tab{
27
24
  width:100%;
@@ -44,7 +41,6 @@
44
41
  border:none;
45
42
  vertical-align:baseline;
46
43
  position:relative;
47
- align-items:center;
48
44
  list-style:none;
49
45
  -webkit-user-select:none;
50
46
  -moz-user-select:none;
@@ -61,15 +57,13 @@
61
57
  display:flex;
62
58
  align-items:center;
63
59
  font-size:14px;
60
+ min-height:38px;
61
+ height:100%;
64
62
  cursor:pointer;
63
+ transition:background-color 0.2s ease-out;
65
64
  color:rgba(0, 0, 0, 0.8);
66
65
  color:var(--iui-text-color);
67
66
  }
68
- @media (prefers-reduced-motion: no-preference){
69
- .iui-tabs .iui-tab{
70
- transition:background-color 0.2s ease-out;
71
- }
72
- }
73
67
  .iui-tabs .iui-tab.iui-active{
74
68
  color:#008ae0;
75
69
  color:var(--iui-color-foreground-primary);
@@ -104,20 +98,14 @@
104
98
  .iui-tabs .iui-tab-icon{
105
99
  width:16px;
106
100
  height:16px;
101
+ flex-shrink:0;
102
+ transition:fill 0.2s ease-out;
107
103
  fill:rgba(0, 0, 0, 0.8);
108
104
  fill:var(--iui-icons-color-actionable);
109
105
  }
110
- @media (prefers-reduced-motion: no-preference){
111
- .iui-tabs .iui-tab-icon{
112
- transition:fill 0.2s ease-out;
113
- }
114
- }
115
106
  .iui-tabs .iui-tab-icon + .iui-tab-label{
116
107
  margin-left:8px;
117
108
  }
118
- .iui-tabs .iui-tab-label{
119
- text-align:left;
120
- }
121
109
  .iui-tabs .iui-tab-description{
122
110
  display:none;
123
111
  font-size:12px;
@@ -156,8 +144,7 @@
156
144
  background-color:var(--iui-color-foreground-positive);
157
145
  }
158
146
  .iui-tabs.iui-default .iui-tab{
159
- height:38px;
160
- padding:0 16px;
147
+ padding:4px 16px;
161
148
  box-sizing:border-box;
162
149
  background-color:#f9f9fb;
163
150
  border:1px solid #c7ccd1;
@@ -205,10 +192,10 @@
205
192
  }
206
193
 
207
194
  .iui-tabs.iui-default.iui-large .iui-tab{
208
- height:49px;
195
+ min-height:49px;
209
196
  }
210
197
  .iui-tabs.iui-default.iui-large .iui-tab-description{
211
- display:block;
198
+ display:-webkit-box;
212
199
  }
213
200
  .iui-tabs.iui-default.iui-green .iui-tab::after{
214
201
  background-color:#53a21a;
@@ -223,8 +210,7 @@
223
210
  border:1px solid var(--iui-color-background-5);
224
211
  }
225
212
  .iui-tabs.iui-borderless .iui-tab{
226
- height:38px;
227
- padding:0 24px;
213
+ padding:4px 24px;
228
214
  background-color:transparent;
229
215
  }
230
216
  .iui-tabs.iui-borderless .iui-tab::after{
@@ -258,10 +244,10 @@
258
244
  background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6));
259
245
  }
260
246
  .iui-tabs.iui-borderless.iui-large .iui-tab{
261
- height:49px;
247
+ min-height:49px;
262
248
  }
263
249
  .iui-tabs.iui-borderless.iui-large .iui-tab-description{
264
- display:block;
250
+ display:-webkit-box;
265
251
  }
266
252
  .iui-tabs.iui-borderless .iui-tab[disabled]:hover{
267
253
  background-color:transparent;
@@ -281,11 +267,11 @@
281
267
  background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6));
282
268
  }
283
269
  .iui-tabs.iui-pill .iui-tab{
284
- height:38px;
270
+ padding:4px;
285
271
  background-color:transparent;
286
272
  width:100%;
287
273
  justify-content:center;
288
- border-radius:3px;
274
+ border-radius:4px;
289
275
  }
290
276
  .iui-tabs.iui-pill .iui-tab::after{
291
277
  bottom:0;
@@ -347,4 +333,22 @@
347
333
  .iui-tabs.iui-not-animated.iui-green .iui-tab::after{
348
334
  background-color:#53a21a;
349
335
  background-color:var(--iui-color-foreground-positive);
336
+ }
337
+
338
+ .iui-tab-label{
339
+ text-align:left;
340
+ max-width:60ch;
341
+ }
342
+ .iui-tab-label > *{
343
+ overflow:hidden;
344
+ white-space:nowrap;
345
+ text-overflow:ellipsis;
346
+ }
347
+ @supports (-webkit-line-clamp: 1){
348
+ .iui-tab-label > *{
349
+ white-space:unset;
350
+ display:-webkit-box;
351
+ -webkit-line-clamp:3;
352
+ -webkit-box-orient:vertical;
353
+ }
350
354
  }
package/css/tag.css CHANGED
@@ -3,17 +3,14 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  .iui-tag{
6
- margin:0;
7
- padding:0;
8
- border:none;
9
- vertical-align:baseline;
10
6
  -webkit-user-select:all;
11
7
  -moz-user-select:all;
12
8
  user-select:all;
13
9
  text-transform:lowercase;
14
10
  display:inline-flex;
15
11
  height:33px;
16
- margin:3px 0;
12
+ margin-top:3px;
13
+ margin-bottom:3px;
17
14
  border-radius:9999px;
18
15
  box-sizing:border-box;
19
16
  padding:0 2px;
@@ -36,10 +33,6 @@
36
33
  }
37
34
 
38
35
  .iui-tag-basic{
39
- margin:0;
40
- padding:0;
41
- border:none;
42
- vertical-align:baseline;
43
36
  -webkit-user-select:all;
44
37
  -moz-user-select:all;
45
38
  user-select:all;
@@ -77,7 +70,7 @@ a.iui-tag-basic{
77
70
  -webkit-tap-highlight-color:rgba(0, 138, 224, 0.2);
78
71
  color:var(--iui-color-foreground-primary);
79
72
  -webkit-tap-highlight-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
80
- border-radius:3px;
73
+ border-radius:4px;
81
74
  box-sizing:border-box;
82
75
  cursor:pointer;
83
76
  text-decoration:none;
@@ -163,7 +156,7 @@ a.iui-tag-basic:focus-visible{
163
156
  overflow-x:scroll;
164
157
  }
165
158
  .iui-tag-container.iui-visible{
166
- border-radius:3px;
159
+ border-radius:4px;
167
160
  padding:3px 12px;
168
161
  background-color:#edeff2;
169
162
  background-color:var(--iui-color-background-3);
package/css/text.css CHANGED
@@ -74,7 +74,7 @@
74
74
  -ms-user-select:none;
75
75
  user-select:none;
76
76
  color:transparent;
77
- border-radius:3px;
77
+ border-radius:4px;
78
78
  cursor:progress;
79
79
  background:linear-gradient(292deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
80
80
  background:linear-gradient(292deg, var(--iui-text-color-muted), var(--iui-text-color-muted), var(--iui-text-color-placeholder), var(--iui-text-color-muted), var(--iui-text-color-muted));
@@ -44,7 +44,7 @@
44
44
  }
45
45
  .iui-time > ol > li{
46
46
  padding:6px 16px;
47
- border-radius:3px;
47
+ border-radius:4px;
48
48
  }
49
49
  .iui-time > ol > li:focus-visible{
50
50
  outline:1px solid var(--iui-color-foreground-primary);
@@ -103,7 +103,7 @@
103
103
  }
104
104
  .iui-period > ol > li{
105
105
  padding:6px 16px;
106
- border-radius:3px;
106
+ border-radius:4px;
107
107
  }
108
108
  .iui-period > ol > li:focus-visible{
109
109
  outline:1px solid var(--iui-color-foreground-primary);
@@ -84,7 +84,7 @@
84
84
  pointer-events:all;
85
85
  margin:0 16px 11px 16px;
86
86
  min-height:44px;
87
- border-radius:3px;
87
+ border-radius:4px;
88
88
  background-color:white;
89
89
  border:1px solid black;
90
90
  box-shadow:0 0 0 1px rgba(255, 255, 255, 0.4), 0 9px 46px rgba(0, 0, 0, 0.25);
@@ -124,7 +124,7 @@
124
124
  }
125
125
  .iui-toast-anchor{
126
126
  text-decoration:underline;
127
- border-radius:3px;
127
+ border-radius:4px;
128
128
  cursor:pointer;
129
129
  font-size:12px;
130
130
  margin-right:16px;
package/css/tooltip.css CHANGED
@@ -37,7 +37,7 @@
37
37
  vertical-align:baseline;
38
38
  display:block;
39
39
  text-align:center;
40
- border-radius:3px;
40
+ border-radius:4px;
41
41
  font-size:12px;
42
42
  overflow:hidden;
43
43
  max-width:400px;
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.59.1",
3
+ "version": "0.61.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
+ }
@@ -0,0 +1,7 @@
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 './index';
4
+
5
+ .iui-backdrop {
6
+ @include iui-backdrop;
7
+ }
@@ -0,0 +1,3 @@
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 './backdrop';