@castlabs/ui 7.6.2 → 7.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "7.6.2",
3
+ "version": "7.7.0",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -169,8 +169,7 @@ $card-spacing-tight: $spacing-small;
169
169
  }
170
170
 
171
171
  &.cl-card-max {
172
- height: 100%; // cards in responsive grid colums should have full height
173
- margin-top: 0;
172
+ height: calc(100% - $spacing-small); // cards in responsive grid colums should have full height
174
173
  }
175
174
 
176
175
  + .card {
@@ -14,7 +14,7 @@
14
14
  // hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
15
15
 
16
16
  .progress {
17
- @extend %cl-color-sky;
17
+ @extend %cl-color-petrol;
18
18
 
19
19
  background-color: $color-ci-clay;
20
20
  border-radius: $brand-border-radius;
@@ -31,17 +31,28 @@
31
31
 
32
32
  // --- disabled fields -------------------------------------------------------
33
33
 
34
+ .form-label:has(+ [disabled], + .disabled),
34
35
  .form-label.disabled,
35
36
  .valid-feedback.disabled {
36
37
  color: $color-disabled;
37
38
  }
38
39
 
39
40
  textarea[disabled],
41
+ textarea.disabled,
40
42
  input[disabled],
41
- select[disabled] {
43
+ input.disabled,
44
+ select[disabled],
45
+ select.disabled {
42
46
  background-color: $color-ci-haze;
43
47
  color: $color-disabled;
44
48
  cursor: not-allowed;
49
+
50
+ + .invalid-feedback,
51
+ + .valid-feedback,
52
+ + .invalid-feedback + .valid-feedback,
53
+ + .valid-feedback + .invalid-feedback {
54
+ color: $color-disabled;
55
+ }
45
56
  }
46
57
 
47
58
  select[disabled] {
@@ -37,14 +37,9 @@
37
37
  // trick to share one ][ border between 2 inputs
38
38
  &:not(.btn) {
39
39
  border-left-width: 0;
40
-
41
- &:focus-visible,
42
- &.invalid:focus-visible {
43
- box-shadow: 0 0 0 1px $color-ci-berry inset !important;
44
- }
45
40
  }
46
41
 
47
- &.invalid {
42
+ &:not(:focus, :focus-visible).invalid {
48
43
  box-shadow: -$brand-line-width 0 0 $color-error !important; // sass-lint:disable-line no-important
49
44
  }
50
45
  }
@@ -117,6 +112,21 @@
117
112
 
118
113
  &:not(.btn) {
119
114
  border-right-color: $color-ci-clay;
115
+
116
+ &:has(+ :focus),
117
+ &:has(+ :focus-visible),
118
+ &:has(+ p + :focus),
119
+ &:has(+ p + :focus-visible),
120
+ &:has(+ p + p + :focus),
121
+ &:has(+ p + p + :focus-visible),
122
+ &:has(+ .invalid:focus),
123
+ &:has(+ [invalid]:focus-visible),
124
+ &:has(+ p + .invalid:focus),
125
+ &:has(+ p + [invalid]:focus-visible),
126
+ &:has(+ p + p + .invalid:focus),
127
+ &:has(+ p + p + [invalid]:focus-visible) {
128
+ border-right-color: $color-focus !important;
129
+ }
120
130
  }
121
131
  }
122
132
  }
@@ -38,7 +38,7 @@
38
38
  @extend %form-field-box;
39
39
  @extend %form-field-typography-monospace;
40
40
 
41
- @include cl-form-focus;
41
+ @include cl-form-focus(true);
42
42
 
43
43
  &.form-control-plaintext {
44
44
  background-color: transparent;
@@ -1,9 +1,18 @@
1
1
  @use '../../../../styles/global' as *;
2
+ @use '../../ClTable/style.variables' as *;
2
3
 
3
4
  .cl-table-data {
4
5
  @include media-breakpoint-up($grid-table-responsive) {
5
6
  .cl-th-currency,
6
7
  .cl-td-currency {
8
+ @include typography-font(
9
+ $typography-monospace-font-list,
10
+ 400,
11
+ px(14),
12
+ $table-lineheight * 1.066666667,
13
+ 0.025em
14
+ );
15
+
7
16
  overflow-wrap: unset;
8
17
  text-align: end;
9
18
  }
@@ -0,0 +1,16 @@
1
+ @use '../../../../styles/global' as *;
2
+ @use '../../ClTable/style.variables' as *;
3
+
4
+ .cl-table-data {
5
+ @include media-breakpoint-up($grid-table-responsive) {
6
+ .cl-td-time {
7
+ @include typography-font(
8
+ $typography-monospace-font-list,
9
+ 400,
10
+ px(14),
11
+ $table-lineheight * 1.066666667,
12
+ 0.025em
13
+ );
14
+ }
15
+ }
16
+ }
@@ -489,7 +489,7 @@ $typography-responsive-scale: 0.8;
489
489
 
490
490
  border: $brand-line-width solid var(--cl-color-text);
491
491
  border-radius: $brand-border-radius;
492
- clip-path: inset(0 round 20px);
492
+ clip-path: inset(-1px round 22px);
493
493
  font-size: px(15);
494
494
  line-height: 1.4;
495
495
  margin-top: $spacing-small;
@@ -87,6 +87,8 @@ h6.cl-faded,
87
87
  width: auto;
88
88
  }
89
89
 
90
+ // --- alignment ---------------------------------------------------------------
91
+
90
92
  .cl-text-start,
91
93
  .text-start {
92
94
  text-align: left;
@@ -102,18 +104,129 @@ h6.cl-faded,
102
104
  text-align: right;
103
105
  }
104
106
 
105
- .cl-flex-center-center, // deprecated v5 class
106
- .cl-align-center-center {
107
- align-items: center;
107
+ %cl-align {
108
108
  display: flex;
109
109
  height: 100%;
110
- justify-content: center;
111
110
  width: 100%;
112
111
  }
113
112
 
114
- .cl-flex-bottom, // deprecated v5 class
115
- .cl-align-bottom {
116
- display: flex;
117
- flex-direction: column;
118
- justify-content: end;
113
+ :not(td) {
114
+ &.cl-flex-center-center, // deprecated v5 class
115
+ &.cl-align-center-center {
116
+ @extend %cl-align;
117
+
118
+ align-items: center;
119
+ justify-content: center;
120
+ }
121
+
122
+ &.cl-align-center-left {
123
+ @extend %cl-align;
124
+
125
+ align-items: center;
126
+ justify-content: start;
127
+ }
128
+
129
+ &.cl-align-center-right {
130
+ @extend %cl-align;
131
+
132
+ align-items: center;
133
+ justify-content: end;
134
+ }
135
+
136
+ &.cl-align-top-left {
137
+ @extend %cl-align;
138
+
139
+ align-items: start;
140
+ justify-content: start;
141
+ }
142
+
143
+ &.cl-align-top-center {
144
+ @extend %cl-align;
145
+
146
+ align-items: start;
147
+ justify-content: center;
148
+ }
149
+
150
+ &.cl-align-top-right {
151
+ @extend %cl-align;
152
+
153
+ align-items: start;
154
+ justify-content: end;
155
+ }
156
+
157
+ &.cl-align-bottom-left {
158
+ @extend %cl-align;
159
+
160
+ align-items: end;
161
+ justify-content: start;
162
+ }
163
+
164
+ &.cl-align-bottom-center {
165
+ @extend %cl-align;
166
+
167
+ align-items: end;
168
+ justify-content: center;
169
+ }
170
+
171
+ &.cl-align-bottom-right {
172
+ @extend %cl-align;
173
+
174
+ align-items: end;
175
+ justify-content: end;
176
+ }
177
+
178
+ &.cl-flex-bottom, // deprecated v5 class
179
+ &.cl-align-bottom {
180
+ display: flex;
181
+ flex-direction: column;
182
+ justify-content: end;
183
+ }
184
+ }
185
+
186
+ td {
187
+ &.cl-flex-center-center, // deprecated v5 class
188
+ &.cl-align-center-center {
189
+ text-align: center;
190
+ vertical-align: middle;
191
+ }
192
+
193
+ &.cl-align-center-left {
194
+ text-align: start;
195
+ vertical-align: middle;
196
+ }
197
+
198
+ &.cl-align-center-right {
199
+ text-align: end;
200
+ vertical-align: middle;
201
+ }
202
+
203
+ &.cl-align-top-left {
204
+ text-align: start;
205
+ vertical-align: top;
206
+ }
207
+
208
+ &.cl-align-top-center {
209
+ text-align: center;
210
+ vertical-align: top;
211
+ }
212
+
213
+ &.cl-align-top-right {
214
+ text-align: end;
215
+ vertical-align: top;
216
+ }
217
+
218
+ &.cl-align-bottom-left {
219
+ text-align: start;
220
+ vertical-align: bottom;
221
+ }
222
+
223
+ &.cl-align-bottom-center {
224
+ text-align: center;
225
+ vertical-align: bottom;
226
+ }
227
+
228
+ &.cl-align-bottom-right {
229
+ text-align: end;
230
+ vertical-align: bottom;
231
+ }
119
232
  }
@@ -88,6 +88,7 @@ $castlabs-ui-asset-postfix: '' !default;
88
88
  @use '../components/table/ClTableCel/ID/style' as *;
89
89
  @use '../components/table/ClTableCel/Links/style' as *;
90
90
  @use '../components/table/ClTableCel/style' as *;
91
+ @use '../components/table/ClTableCel/Time/style' as *;
91
92
  @use '../components/table/ClTableFootChecked/style' as *;
92
93
  @use '../components/table/ClTableHead/style' as *;
93
94
  @use '../components/text/ClCopy/style' as *;