@itwin/itwinui-css 0.52.0 → 0.53.2

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 (76) hide show
  1. package/css/alert.css +44 -44
  2. package/css/all.css +2170 -1431
  3. package/css/badge.css +1 -1
  4. package/css/blockquote.css +2 -2
  5. package/css/breadcrumbs.css +12 -12
  6. package/css/button.css +40 -39
  7. package/css/carousel.css +24 -36
  8. package/css/code.css +5 -5
  9. package/css/color-picker.css +14 -10
  10. package/css/date-picker.css +402 -46
  11. package/css/expandable-block.css +19 -19
  12. package/css/fieldset.css +4 -4
  13. package/css/file-upload.css +11 -11
  14. package/css/footer.css +2 -2
  15. package/css/global.css +539 -208
  16. package/css/header.css +50 -38
  17. package/css/icon.css +24 -24
  18. package/css/information-panel.css +15 -8
  19. package/css/inputs.css +72 -72
  20. package/css/keyboard.css +4 -4
  21. package/css/location-marker.css +9 -9
  22. package/css/menu.css +25 -12
  23. package/css/modal.css +14 -14
  24. package/css/notification-marker.css +28 -28
  25. package/css/progress-indicator.css +32 -32
  26. package/css/side-navigation.css +18 -18
  27. package/css/skip-to-content.css +5 -3
  28. package/css/slider.css +13 -13
  29. package/css/surface.css +19 -0
  30. package/css/table.css +78 -74
  31. package/css/tabs.css +23 -23
  32. package/css/tag.css +4 -4
  33. package/css/text.css +1 -1
  34. package/css/tile.css +35 -35
  35. package/css/time-picker.css +15 -15
  36. package/css/toast-notification.css +34 -34
  37. package/css/tooltip.css +3 -1
  38. package/css/tree.css +7 -7
  39. package/css/user-icon.css +21 -18
  40. package/css/wizard.css +26 -26
  41. package/package.json +1 -1
  42. package/scss/button/button-group.scss +5 -3
  43. package/scss/button/classes.scss +4 -0
  44. package/scss/carousel/carousel.scss +22 -28
  45. package/scss/classes.scss +1 -0
  46. package/scss/color-picker/color-picker.scss +2 -2
  47. package/scss/date-picker/classes.scss +20 -0
  48. package/scss/date-picker/date-picker.scss +194 -33
  49. package/scss/fieldset/fieldset.scss +1 -1
  50. package/scss/header/header.scss +15 -10
  51. package/scss/index.scss +1 -0
  52. package/scss/information-panel/information-panel.scss +10 -3
  53. package/scss/menu/classes.scss +2 -1
  54. package/scss/menu/menu.scss +8 -11
  55. package/scss/modal/classes.scss +4 -0
  56. package/scss/modal/modal.scss +23 -19
  57. package/scss/progress-indicator/linear.scss +1 -1
  58. package/scss/progress-indicator/radial.scss +1 -1
  59. package/scss/side-navigation/side-navigation.scss +5 -5
  60. package/scss/skip-to-content/skip-to-content.scss +6 -3
  61. package/scss/slider/slider.scss +2 -2
  62. package/scss/style/elevation.scss +5 -5
  63. package/scss/style/global.scss +32 -21
  64. package/scss/style/mixins.scss +1 -1
  65. package/scss/style/theme.scss +248 -65
  66. package/scss/surface/classes.scss +7 -0
  67. package/scss/surface/index.scss +3 -0
  68. package/scss/surface/surface.scss +18 -0
  69. package/scss/table/column-filter.scss +2 -2
  70. package/scss/table/table.scss +3 -3
  71. package/scss/tile/tile.scss +5 -5
  72. package/scss/time-picker/time-picker.scss +2 -2
  73. package/scss/tooltip/tooltip.scss +1 -0
  74. package/scss/user-icon/sizes.scss +8 -0
  75. package/scss/user-icon/user-icon.scss +2 -2
  76. package/scss/wizard/wizard.scss +1 -1
@@ -11,6 +11,7 @@
11
11
  @mixin iui-information-panel {
12
12
  position: absolute;
13
13
  opacity: 0;
14
+ visibility: hidden;
14
15
  display: flex;
15
16
  flex-direction: column;
16
17
  box-sizing: border-box;
@@ -18,7 +19,8 @@
18
19
  max-height: 100%;
19
20
  z-index: 2; // Needs to be higher than table's column resizers.
20
21
  @media (prefers-reduced-motion: no-preference) {
21
- transition: transform $iui-speed-fast ease-out, opacity $iui-speed-fast ease;
22
+ transition: visibility $iui-speed-instant $iui-speed-fast ease-in, transform $iui-speed-fast ease-out,
23
+ opacity $iui-speed-fast ease;
22
24
  }
23
25
 
24
26
  @include themed {
@@ -32,7 +34,7 @@
32
34
 
33
35
  > .iui-resizer-bar {
34
36
  @include themed {
35
- background-color: t(iui-color-background-5);
37
+ background-color: t(iui-color-background-border);
36
38
  }
37
39
  }
38
40
 
@@ -100,7 +102,7 @@
100
102
 
101
103
  > hr {
102
104
  @include themed {
103
- border-color: t(iui-color-background-4);
105
+ border-color: t(iui-color-background-border);
104
106
  }
105
107
  }
106
108
  }
@@ -108,8 +110,13 @@
108
110
 
109
111
  @mixin iui-information-panel-visible {
110
112
  opacity: 1;
113
+ visibility: visible;
111
114
  transform: translate(0);
112
115
 
116
+ @media (prefers-reduced-motion: no-preference) {
117
+ transition: transform $iui-speed-fast ease-out, opacity $iui-speed-fast ease;
118
+ }
119
+
113
120
  > .iui-resizer {
114
121
  display: flex;
115
122
  }
@@ -1,9 +1,10 @@
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 './index';
4
+ @import '../surface/index';
4
5
 
5
6
  .iui-menu {
6
- @include iui-dropdown;
7
+ @include iui-surface;
7
8
  @include iui-list-menu;
8
9
  }
9
10
 
@@ -5,16 +5,8 @@
5
5
 
6
6
  $iui-active-outline: thin solid t(iui-color-foreground-primary);
7
7
 
8
- @mixin iui-dropdown {
9
- @include iui-reset;
10
- box-shadow: $iui-elevation-2;
11
- @include themed {
12
- background-color: t(iui-color-background-1);
13
- color: t(iui-text-color);
14
- }
15
- }
16
-
17
8
  @mixin iui-list-menu {
9
+ @include iui-reset;
18
10
  list-style-type: none;
19
11
  user-select: none;
20
12
  width: 100%;
@@ -111,12 +103,17 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
111
103
  &,
112
104
  &:hover {
113
105
  @include themed {
114
- background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-5));
106
+ background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
107
+ color: t(iui-color-foreground-primary);
115
108
  outline: $iui-active-outline;
116
109
  outline-offset: -1px;
117
110
  }
118
111
  }
119
112
 
113
+ .iui-menu-description {
114
+ opacity: 1;
115
+ }
116
+
120
117
  > .iui-icon {
121
118
  @include themed {
122
119
  fill: t(iui-icons-color-primary);
@@ -163,7 +160,7 @@ $iui-active-outline: thin solid t(iui-color-foreground-primary);
163
160
  width: calc(100% - #{$iui-l});
164
161
  margin: 1px auto;
165
162
  @include themed {
166
- background-color: t(iui-color-background-4);
163
+ background-color: t(iui-color-background-border);
167
164
  }
168
165
  }
169
166
 
@@ -8,4 +8,8 @@
8
8
  &-full-page {
9
9
  @include iui-modal-full-page;
10
10
  }
11
+
12
+ &-animation {
13
+ @include iui-modal-animation;
14
+ }
11
15
  }
@@ -30,18 +30,6 @@
30
30
  }
31
31
  // #endregion Small Modal Animations for CSS
32
32
 
33
- // #region Small Modal Animations for React
34
- &.iui-modal-animation-enter {
35
- visibility: hidden;
36
- opacity: 0;
37
- }
38
-
39
- &.iui-modal-animation-enter-active {
40
- visibility: visible;
41
- opacity: 1;
42
- }
43
- // #endregion Full Page Modal Animations for React
44
-
45
33
  > .iui-modal-dialog {
46
34
  position: absolute;
47
35
  left: 50%;
@@ -103,6 +91,9 @@
103
91
  }
104
92
 
105
93
  @mixin iui-modal-full-page {
94
+ $iui-full-page-modal-slide-in-speed: 0.3s;
95
+ $iui-full-page-modal-slide-out-speed: 0.25s;
96
+
106
97
  > .iui-modal-dialog {
107
98
  display: flex;
108
99
  flex-direction: column;
@@ -119,33 +110,46 @@
119
110
 
120
111
  // #region Full Page Modal Animations for CSS
121
112
  @media (prefers-reduced-motion: no-preference) {
122
- transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed ease-out $iui-speed-fast;
113
+ transition: visibility $iui-speed-instant linear $iui-speed-slow, opacity $iui-speed ease-out $iui-speed-fast;
123
114
  }
124
115
 
125
116
  > .iui-modal-dialog {
126
117
  transform: translateY(100%);
127
118
  @media (prefers-reduced-motion: no-preference) {
128
- transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed, transform $iui-speed ease-in;
119
+ transition: visibility $iui-speed-instant linear $iui-speed, opacity $iui-speed-instant linear $iui-speed,
120
+ transform $iui-full-page-modal-slide-out-speed ease-in;
129
121
  }
130
122
  }
131
123
 
132
124
  &.iui-modal-visible > .iui-modal-dialog {
133
125
  transform: translateY(0);
134
126
  @media (prefers-reduced-motion: no-preference) {
135
- transition: transform $iui-speed ease-out;
127
+ transition: transform $iui-full-page-modal-slide-in-speed ease-out;
136
128
  }
137
129
  }
138
130
  // #endregion Full Page Modal Animations for CSS
131
+ }
139
132
 
140
- // #region Full Page Modal Animations for React
141
- &.iui-modal-animation-enter > .iui-modal-dialog {
133
+ @mixin iui-modal-animation {
134
+ // Full Page Modal Animations for React
135
+ &-enter .iui-modal-full-page .iui-modal-dialog {
142
136
  transform: translateY(100%);
143
137
  opacity: 0;
144
138
  }
145
139
 
146
- &.iui-modal-animation-enter-active > .iui-modal-dialog {
140
+ &-enter-active .iui-modal-full-page .iui-modal-dialog {
147
141
  transform: translateY(0);
148
142
  opacity: 1;
149
143
  }
150
- // #endregion Full Page Modal Animations for React
144
+
145
+ // Small Modal Animations for React
146
+ &-enter .iui-modal {
147
+ visibility: hidden;
148
+ opacity: 0;
149
+ }
150
+
151
+ &-enter-active .iui-modal {
152
+ visibility: visible;
153
+ opacity: 1;
154
+ }
151
155
  }
@@ -13,7 +13,7 @@
13
13
  overflow: hidden;
14
14
 
15
15
  @include themed {
16
- background-color: t(iui-color-background-5);
16
+ background-color: t(iui-color-background-border);
17
17
  }
18
18
 
19
19
  > .iui-fill {
@@ -27,7 +27,7 @@
27
27
  animation: dash $iui-speed-slow linear infinite;
28
28
 
29
29
  @include themed {
30
- border-bottom-color: t(iui-color-background-5);
30
+ border-bottom-color: t(iui-color-background-border);
31
31
  }
32
32
  }
33
33
 
@@ -14,7 +14,7 @@
14
14
  }
15
15
  @include themed {
16
16
  background-color: t(iui-color-background-3);
17
- border-right: 1px solid t(iui-color-background-5);
17
+ border-right: 1px solid t(iui-color-background-border);
18
18
  }
19
19
 
20
20
  > .iui-sidenav-content {
@@ -51,7 +51,7 @@
51
51
  + .iui-sidenav-button.iui-expand {
52
52
  border: none;
53
53
  @include themed {
54
- border-top: 1px solid t(iui-color-background-5);
54
+ border-top: 1px solid t(iui-color-background-border);
55
55
  }
56
56
  }
57
57
  }
@@ -105,7 +105,7 @@
105
105
  &:hover,
106
106
  &[disabled] {
107
107
  @include themed {
108
- border-color: t(iui-color-background-5);
108
+ border-color: t(iui-color-background-border);
109
109
  }
110
110
  }
111
111
 
@@ -133,7 +133,7 @@
133
133
  justify-content: center;
134
134
  border: none;
135
135
  @include themed {
136
- border-bottom: 1px solid t(iui-color-background-5);
136
+ border-bottom: 1px solid t(iui-color-background-border);
137
137
  }
138
138
 
139
139
  > .iui-button-icon {
@@ -157,7 +157,7 @@
157
157
  resize: horizontal;
158
158
  @include themed {
159
159
  background-color: t(iui-color-background-1);
160
- border-right: 1px solid t(iui-color-background-5);
160
+ border-right: 1px solid t(iui-color-background-border);
161
161
  }
162
162
 
163
163
  @include iui-transition-group;
@@ -15,12 +15,13 @@
15
15
  position: fixed;
16
16
  text-align: center;
17
17
  left: 50%;
18
+ opacity: 0;
18
19
  top: $iui-baseline * 2;
19
20
  transform: translateX(-50%) translateY(-170%);
20
21
  transition: background-color $iui-speed-fast ease-in-out;
21
22
  @media (prefers-reduced-motion: no-preference) {
22
- transition: background-color $iui-speed-fast ease-in-out, transform $iui-speed-slow ease-in-out,
23
- box-shadow $iui-speed-fast ease-in-out;
23
+ transition: opacity $iui-speed-slow ease-in-out, background-color $iui-speed-slow ease-in-out,
24
+ transform $iui-speed-slow ease-in-out, box-shadow $iui-speed-slow ease-in-out;
24
25
  }
25
26
 
26
27
  &:hover {
@@ -28,10 +29,12 @@
28
29
  }
29
30
 
30
31
  &:focus {
32
+ opacity: 1;
31
33
  transform: translateX(-50%) translateY(0);
32
34
  box-shadow: $iui-elevation-16;
33
35
  @media (prefers-reduced-motion: no-preference) {
34
- transition: transform $iui-speed-fast ease-in-out;
36
+ transition: opacity $iui-speed-instant ease-in-out, background-color $iui-speed-fast ease-in-out,
37
+ transform $iui-speed-fast ease-in-out, box-shadow $iui-speed-fast ease-in-out;
35
38
  }
36
39
  }
37
40
  }
@@ -53,7 +53,7 @@ $tick-height: $iui-baseline; // 11px
53
53
  height: $track-height;
54
54
  top: $iui-sm;
55
55
  @include themed {
56
- background-color: t(iui-color-background-4);
56
+ background-color: t(iui-color-background-border);
57
57
  }
58
58
  }
59
59
 
@@ -71,7 +71,7 @@ $tick-height: $iui-baseline; // 11px
71
71
  @include iui-focus($thickness: 2px);
72
72
  @include themed {
73
73
  background: t(iui-color-background-1);
74
- border: 1px solid t(iui-color-background-5);
74
+ border: 1px solid t(iui-color-background-border);
75
75
  }
76
76
 
77
77
  &:active {
@@ -3,8 +3,8 @@
3
3
  /// Elevations:
4
4
 
5
5
  $iui-elevation-0: 0;
6
- $iui-elevation-2: 0 1px 5px rgba(0, 0, 0, 0.25);
7
- $iui-elevation-4: 0 1px 10px rgba(0, 0, 0, 0.25);
8
- $iui-elevation-8: 0 3px 14px rgba(0, 0, 0, 0.25);
9
- $iui-elevation-16: 0 6px 30px rgba(0, 0, 0, 0.25);
10
- $iui-elevation-24: 0 9px 46px rgba(0, 0, 0, 0.25);
6
+ $iui-elevation-2: 0 1px 5px hsla(200, 12%, 0%, 0.25);
7
+ $iui-elevation-4: 0 1px 10px hsla(200, 12%, 0%, 0.25);
8
+ $iui-elevation-8: 0 3px 14px hsla(200, 12%, 0%, 0.25);
9
+ $iui-elevation-16: 0 6px 30px hsla(200, 12%, 0%, 0.25);
10
+ $iui-elevation-24: 0 9px 46px hsla(200, 12%, 0%, 0.25);
@@ -2,6 +2,38 @@
2
2
  // See LICENSE.md in the project root for license terms and full copyright notice.
3
3
  @import './index';
4
4
 
5
+ html {
6
+ @include theme-variables(light);
7
+
8
+ @media (prefers-color-scheme: dark) {
9
+ @include theme-variables(dark);
10
+ }
11
+
12
+ @media (prefers-color-scheme: light) and (prefers-contrast: more) {
13
+ @include theme-variables(light-hc);
14
+ }
15
+
16
+ @media (prefers-color-scheme: dark) and (prefers-contrast: more) {
17
+ @include theme-variables(dark-hc);
18
+ }
19
+
20
+ &.iui-theme-light {
21
+ @include theme-variables(light);
22
+ }
23
+
24
+ &.iui-theme-dark {
25
+ @include theme-variables(dark);
26
+ }
27
+
28
+ &.iui-theme-light-hc {
29
+ @include theme-variables(light-hc);
30
+ }
31
+
32
+ &.iui-theme-dark-hc {
33
+ @include theme-variables(dark-hc);
34
+ }
35
+ }
36
+
5
37
  .iui-body {
6
38
  @include themed {
7
39
  background-color: t(iui-color-background-2);
@@ -31,24 +63,3 @@
31
63
  // Scrollbar
32
64
  @include iui-scrollbar;
33
65
  }
34
-
35
- html {
36
- &,
37
- &.iui-theme-light {
38
- @include theme-variables(light);
39
- }
40
-
41
- &.iui-theme-dark {
42
- @include theme-variables(dark);
43
- }
44
-
45
- @media (prefers-color-scheme: light) {
46
- // fall back to default - light theme variables
47
- }
48
-
49
- @media (prefers-color-scheme: dark) {
50
- &:not([class*='iui-theme-']) {
51
- @include theme-variables(dark);
52
- }
53
- }
54
- }
@@ -67,7 +67,7 @@
67
67
  &::selection,
68
68
  *::selection {
69
69
  @include themed {
70
- background-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-4));
70
+ background-color: rgba(t(iui-color-foreground-#{$status}-rgb), t(iui-opacity-5));
71
71
  }
72
72
  }
73
73
  }