@castlabs/ui 7.8.0 → 7.9.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/dist/castlabs-ui.common.js +3 -3
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +1 -1
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.js +1 -1
- package/dist/castlabs-ui.umd.js +4 -4
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClAlert/style.scss +2 -2
- package/src/components/ClCard/style.scss +1 -0
- package/src/components/form/ClField/style.scss +9 -0
- package/src/components/form/ClFieldInput/style.scss +2 -2
- package/src/components/form/ClForm/style.scss +16 -1
- package/src/components/section/ClSectionForm/style.scss +0 -1
- package/src/styles/abstracts/color.scss +61 -37
- package/src/styles/abstracts/form.scss +4 -5
- package/src/styles/layout/meta.scss +1 -1
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
&::after {
|
|
20
20
|
@include cl-fontawesome('\f05a');
|
|
21
21
|
|
|
22
|
-
color:
|
|
22
|
+
color: var(--cl-color-icon);
|
|
23
23
|
left: -$alert-indent;
|
|
24
24
|
position: absolute;
|
|
25
25
|
text-align: center;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
&::after {
|
|
89
89
|
@include cl-fontawesome($icon);
|
|
90
90
|
|
|
91
|
-
color:
|
|
91
|
+
color: var(--cl-color-icon);
|
|
92
92
|
left: -$alert-indent;
|
|
93
93
|
position: absolute;
|
|
94
94
|
text-align: left;
|
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
+ .valid-feedback {
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
.cl-color-brick & {
|
|
32
|
+
border-color: $color-ci-eggshell !important;
|
|
33
|
+
|
|
34
|
+
&::selection {
|
|
35
|
+
background: $color-ci-eggshell;
|
|
36
|
+
color: $color-error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
30
39
|
}
|
|
31
40
|
|
|
32
41
|
// --- disabled fields -------------------------------------------------------
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
margin-top: $spacing-micro;
|
|
60
60
|
|
|
61
61
|
&::before {
|
|
62
|
-
color:
|
|
62
|
+
color: var(--cl-color-icon);
|
|
63
63
|
content: '\f05a';
|
|
64
64
|
display: inline-block;
|
|
65
65
|
font-family: 'Font Awesome 5 Free';
|
|
@@ -77,6 +77,21 @@
|
|
|
77
77
|
color: $color-error; // fontawesome
|
|
78
78
|
content: '\f057';
|
|
79
79
|
}
|
|
80
|
+
|
|
81
|
+
.cl-color-petrol &,
|
|
82
|
+
.cl-color-red &,
|
|
83
|
+
.cl-color-berry & {
|
|
84
|
+
color: $color-ci-eggshell;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cl-color-brick &,
|
|
88
|
+
.cl-color-orchid & {
|
|
89
|
+
color: $color-ci-eggshell;
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
color: $color-ci-eggshell; // fontawesome
|
|
93
|
+
}
|
|
94
|
+
}
|
|
80
95
|
}
|
|
81
96
|
|
|
82
97
|
.valid-feedback.valid-feedback-none {
|
|
@@ -206,52 +206,63 @@ $color-opacity-active: 0.8;
|
|
|
206
206
|
|
|
207
207
|
%cl-color-root {
|
|
208
208
|
// default colors = outline-night
|
|
209
|
-
#{'--cl-color-background'}: $color-ci-eggshell;
|
|
210
|
-
#{'--cl-color-border'}: $color-ci-night;
|
|
211
|
-
#{'--cl-color-text'}: $color-ci-night;
|
|
212
|
-
#{'--cl-color-line'}: $color-line;
|
|
213
209
|
#{'--cl-color-accent'}: $color-accent;
|
|
214
|
-
#{'--cl-color-link'}: $color-link;
|
|
215
210
|
#{'--cl-color-active'}: $color-ci-berry;
|
|
216
|
-
#{'--cl-color-
|
|
217
|
-
#{'--cl-color-
|
|
211
|
+
#{'--cl-color-background'}: $color-ci-eggshell;
|
|
212
|
+
#{'--cl-color-border'}: $color-ci-night;
|
|
218
213
|
#{'--cl-color-disabled-background'}: $color-disabled;
|
|
219
214
|
#{'--cl-color-disabled-border'}: $color-disabled;
|
|
220
215
|
#{'--cl-color-disabled-text'}: $color-ci-eggshell;
|
|
216
|
+
#{'--cl-color-focus'}: $color-ci-night;
|
|
217
|
+
#{'--cl-color-hover'}: $color-hover;
|
|
218
|
+
#{'--cl-color-input-background'}: transparent;
|
|
219
|
+
#{'--cl-color-input-border'}: $color-ci-ash;
|
|
220
|
+
#{'--cl-color-line'}: $color-line;
|
|
221
|
+
#{'--cl-color-icon'}: $color-ci-steel;
|
|
222
|
+
#{'--cl-color-link'}: $color-link;
|
|
223
|
+
#{'--cl-color-text'}: $color-ci-night;
|
|
221
224
|
#{'--cl-opacity-active'}: $color-opacity-active;
|
|
222
225
|
}
|
|
223
226
|
|
|
224
227
|
%cl-color-night-outline {
|
|
225
228
|
// order is important: must be first!
|
|
229
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
226
230
|
#{'--cl-color-background'}: $color-ci-eggshell;
|
|
227
231
|
#{'--cl-color-border'}: $color-ci-night;
|
|
228
|
-
#{'--cl-color-text'}: $color-ci-night;
|
|
229
|
-
#{'--cl-color-line'}: $color-line;
|
|
230
|
-
#{'--cl-color-accent'}: $color-accent;
|
|
231
|
-
#{'--cl-color-link'}: inherit;
|
|
232
|
-
#{'--cl-color-focus'}: $color-ci-night;
|
|
233
232
|
#{'--cl-color-disabled-background'}: transparent;
|
|
234
233
|
#{'--cl-color-disabled-border'}: $color-disabled;
|
|
235
234
|
#{'--cl-color-disabled-text'}: $color-disabled;
|
|
235
|
+
#{'--cl-color-focus'}: $color-ci-night;
|
|
236
|
+
#{'--cl-color-input-background'}: transparent;
|
|
237
|
+
#{'--cl-color-input-border'}: $color-ci-ash;
|
|
238
|
+
#{'--cl-color-line'}: $color-line;
|
|
239
|
+
#{'--cl-color-link'}: inherit;
|
|
240
|
+
#{'--cl-color-text'}: $color-ci-night;
|
|
236
241
|
#{'--cl-opacity-active'}: $color-opacity-active * 0.9;
|
|
237
242
|
}
|
|
238
243
|
|
|
239
244
|
%cl-color-text-light {
|
|
240
245
|
// for backgrounds that require 'white' text
|
|
241
|
-
#{'--cl-color-text'}: $color-ci-eggshell;
|
|
242
|
-
#{'--cl-color-line'}: $color-ci-eggshell;
|
|
243
246
|
#{'--cl-color-accent'}: $color-ci-eggshell;
|
|
244
|
-
#{'--cl-color-link'}: $color-ci-eggshell;
|
|
245
247
|
#{'--cl-color-focus'}: $color-ci-eggshell;
|
|
248
|
+
#{'--cl-color-icon'}: $color-ci-eggshell;
|
|
249
|
+
#{'--cl-color-input-background'}: transparent;
|
|
250
|
+
#{'--cl-color-input-border'}: $color-ci-eggshell;
|
|
251
|
+
#{'--cl-color-line'}: $color-ci-eggshell;
|
|
252
|
+
#{'--cl-color-link'}: $color-ci-eggshell;
|
|
253
|
+
#{'--cl-color-text'}: $color-ci-eggshell;
|
|
246
254
|
}
|
|
247
255
|
|
|
248
256
|
%cl-color-text-dark {
|
|
249
257
|
// for backgrounds that require 'black' text
|
|
250
|
-
#{'--cl-color-text'}: $color-ci-night;
|
|
251
|
-
#{'--cl-color-line'}: $color-ci-night;
|
|
252
258
|
#{'--cl-color-accent'}: $color-ci-night;
|
|
253
|
-
#{'--cl-color-link'}: $color-ci-night;
|
|
254
259
|
#{'--cl-color-focus'}: $color-ci-night;
|
|
260
|
+
#{'--cl-color-icon'}: $color-ci-night;
|
|
261
|
+
#{'--cl-color-input-background'}: transparent;
|
|
262
|
+
#{'--cl-color-input-border'}: $color-ci-night;
|
|
263
|
+
#{'--cl-color-line'}: $color-ci-night;
|
|
264
|
+
#{'--cl-color-link'}: $color-ci-night;
|
|
265
|
+
#{'--cl-color-text'}: $color-ci-night;
|
|
255
266
|
}
|
|
256
267
|
|
|
257
268
|
%cl-color-red {
|
|
@@ -263,15 +274,17 @@ $color-opacity-active: 0.8;
|
|
|
263
274
|
}
|
|
264
275
|
|
|
265
276
|
%cl-color-red-outline {
|
|
266
|
-
#{'--cl-color-border'}: $color-ci-red;
|
|
267
|
-
#{'--cl-color-text'}: $color-ci-red;
|
|
268
|
-
#{'--cl-color-line'}: $color-line;
|
|
269
277
|
#{'--cl-color-accent'}: $color-ci-red;
|
|
270
|
-
#{'--cl-color-
|
|
271
|
-
#{'--cl-color-focus'}: $color-ci-red;
|
|
278
|
+
#{'--cl-color-border'}: $color-ci-red;
|
|
272
279
|
#{'--cl-color-disabled-background'}: transparent;
|
|
273
280
|
#{'--cl-color-disabled-border'}: $color-disabled;
|
|
274
281
|
#{'--cl-color-disabled-text'}: $color-disabled;
|
|
282
|
+
#{'--cl-color-focus'}: $color-ci-red;
|
|
283
|
+
#{'--cl-color-input-background'}: transparent;
|
|
284
|
+
#{'--cl-color-input-border'}: $color-ci-ash;
|
|
285
|
+
#{'--cl-color-line'}: $color-line;
|
|
286
|
+
#{'--cl-color-link'}: inherit;
|
|
287
|
+
#{'--cl-color-text'}: $color-ci-red;
|
|
275
288
|
}
|
|
276
289
|
|
|
277
290
|
%cl-color-sky {
|
|
@@ -279,6 +292,7 @@ $color-opacity-active: 0.8;
|
|
|
279
292
|
|
|
280
293
|
#{'--cl-color-background'}: $color-ci-sky;
|
|
281
294
|
#{'--cl-color-border'}: $color-ci-sky;
|
|
295
|
+
#{'--cl-color-input-background'}: $color-ci-eggshell;
|
|
282
296
|
}
|
|
283
297
|
|
|
284
298
|
%cl-color-night {
|
|
@@ -289,19 +303,22 @@ $color-opacity-active: 0.8;
|
|
|
289
303
|
}
|
|
290
304
|
|
|
291
305
|
%cl-color-eggshell {
|
|
306
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
292
307
|
#{'--cl-color-background'}: $color-ci-eggshell;
|
|
293
308
|
#{'--cl-color-border'}: $color-ci-eggshell;
|
|
294
|
-
#{'--cl-color-
|
|
309
|
+
#{'--cl-color-focus'}: $color-ci-night;
|
|
310
|
+
#{'--cl-color-input-background'}: transparent;
|
|
311
|
+
#{'--cl-color-input-border'}: $color-ci-ash;
|
|
295
312
|
#{'--cl-color-line'}: $color-line;
|
|
296
|
-
#{'--cl-color-accent'}: $color-accent;
|
|
297
313
|
#{'--cl-color-link'}: inherit;
|
|
298
|
-
#{'--cl-color-
|
|
314
|
+
#{'--cl-color-text'}: $color-ci-night;
|
|
299
315
|
}
|
|
300
316
|
|
|
301
317
|
%cl-color-haze {
|
|
302
318
|
@extend %cl-color-night-outline;
|
|
303
319
|
|
|
304
320
|
#{'--cl-color-background'}: $color-ci-haze;
|
|
321
|
+
#{'--cl-color-input-background'}: $color-ci-eggshell;
|
|
305
322
|
}
|
|
306
323
|
|
|
307
324
|
%cl-color-clay {
|
|
@@ -309,6 +326,7 @@ $color-opacity-active: 0.8;
|
|
|
309
326
|
|
|
310
327
|
#{'--cl-color-background'}: $color-ci-clay;
|
|
311
328
|
#{'--cl-color-border'}: $color-ci-clay;
|
|
329
|
+
#{'--cl-color-input-background'}: $color-ci-eggshell;
|
|
312
330
|
}
|
|
313
331
|
|
|
314
332
|
%cl-color-ash {
|
|
@@ -375,44 +393,50 @@ $color-opacity-active: 0.8;
|
|
|
375
393
|
}
|
|
376
394
|
|
|
377
395
|
%cl-color-transparent {
|
|
396
|
+
#{'--cl-color-accent'}: var(--cl-color-text);
|
|
378
397
|
#{'--cl-color-background'}: transparent;
|
|
379
398
|
#{'--cl-color-border'}: var(--cl-color-text);
|
|
380
399
|
#{'--cl-color-disabled-background'}: transparent;
|
|
381
400
|
#{'--cl-color-disabled-border'}: $color-disabled;
|
|
382
401
|
#{'--cl-color-disabled-text'}: $color-disabled;
|
|
383
|
-
#{'--cl-
|
|
402
|
+
#{'--cl-color-focus'}: var(--cl-color-text);
|
|
403
|
+
#{'--cl-color-input-background'}: transparent;
|
|
404
|
+
#{'--cl-color-input-border'}: var(--cl-color-text);
|
|
384
405
|
#{'--cl-color-line'}: var(--cl-color-text);
|
|
385
|
-
#{'--cl-color-accent'}: var(--cl-color-text);
|
|
386
406
|
#{'--cl-color-link'}: var(--cl-color-text);
|
|
387
|
-
#{'--cl-
|
|
407
|
+
#{'--cl-opacity-active'}: $color-opacity-active * 0.9;
|
|
388
408
|
}
|
|
389
409
|
|
|
390
410
|
%cl-color-disabled {
|
|
411
|
+
#{'--cl-color-accent'}: $color-disabled;
|
|
391
412
|
#{'--cl-color-background'}: transparent;
|
|
392
413
|
#{'--cl-color-border'}: $color-disabled;
|
|
393
|
-
#{'--cl-color-
|
|
414
|
+
#{'--cl-color-focus'}: $color-ci-eggshell;
|
|
415
|
+
#{'--cl-color-input-background'}: transparent;
|
|
416
|
+
#{'--cl-color-input-border'}: $color-disabled;
|
|
394
417
|
#{'--cl-color-line'}: $color-disabled;
|
|
395
|
-
#{'--cl-color-accent'}: $color-disabled;
|
|
396
418
|
#{'--cl-color-link'}: inherit;
|
|
397
|
-
#{'--cl-color-
|
|
419
|
+
#{'--cl-color-text'}: $color-disabled;
|
|
398
420
|
}
|
|
399
421
|
|
|
400
422
|
%cl-color-faded {
|
|
423
|
+
#{'--cl-color-accent'}: $color-ci-ash;
|
|
401
424
|
#{'--cl-color-background'}: transparent;
|
|
402
425
|
#{'--cl-color-border'}: $color-ci-ash;
|
|
403
|
-
#{'--cl-color-
|
|
426
|
+
#{'--cl-color-focus'}: $color-ci-ash;
|
|
427
|
+
#{'--cl-color-input-background'}: transparent;
|
|
428
|
+
#{'--cl-color-input-border'}: $color-ci-ash;
|
|
404
429
|
#{'--cl-color-line'}: $color-line;
|
|
405
|
-
#{'--cl-color-accent'}: $color-ci-ash;
|
|
406
430
|
#{'--cl-color-link'}: inherit;
|
|
407
|
-
#{'--cl-color-
|
|
431
|
+
#{'--cl-color-text'}: $color-ci-ash;
|
|
408
432
|
}
|
|
409
433
|
|
|
410
434
|
%cl-color-none {
|
|
411
435
|
#{'--cl-color-background'}: transparent;
|
|
412
436
|
#{'--cl-color-border'}: transparent;
|
|
413
|
-
#{'--cl-color-link'}: $color-ci-eggshell;
|
|
414
|
-
#{'--cl-color-focus'}: $color-ci-eggshell;
|
|
415
437
|
#{'--cl-color-disabled-background'}: transparent;
|
|
416
438
|
#{'--cl-color-disabled-border'}: transparent;
|
|
417
439
|
#{'--cl-color-disabled-text'}: $color-disabled;
|
|
440
|
+
#{'--cl-color-focus'}: $color-ci-eggshell;
|
|
441
|
+
#{'--cl-color-link'}: $color-ci-eggshell;
|
|
418
442
|
}
|
|
@@ -14,22 +14,21 @@
|
|
|
14
14
|
$form-field-fontsize: px(16);
|
|
15
15
|
$form-field-line-height: 1.375;
|
|
16
16
|
$form-field-min-height: px(36);
|
|
17
|
-
$form-field-border
|
|
18
|
-
$form-field-border: $brand-line-width solid $form-field-border-color;
|
|
17
|
+
$form-field-border: $brand-line-width solid var(--cl-color-input-border);
|
|
19
18
|
$form-spacing-label-input: px(2);
|
|
20
19
|
|
|
21
20
|
%form-field-box {
|
|
22
|
-
background-color:
|
|
21
|
+
background-color: var(--cl-color-input-background);
|
|
23
22
|
border: $form-field-border;
|
|
24
23
|
border-radius: $brand-border-radius;
|
|
25
|
-
color:
|
|
24
|
+
color: var(--cl-color-text);
|
|
26
25
|
min-height: $form-field-min-height;
|
|
27
26
|
padding: $spacing-micro - 0.0625rem $spacing-tiny + $spacing-micro; // remove .0625rem=1px border each
|
|
28
27
|
width: 100%;
|
|
29
28
|
|
|
30
29
|
&:disabled,
|
|
31
30
|
&.disabled {
|
|
32
|
-
background-color:
|
|
31
|
+
background-color: var(--cl-color-input-background);
|
|
33
32
|
border-color: $color-disabled;
|
|
34
33
|
}
|
|
35
34
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const ClInfo: DefineComponent
|
|
|
17
17
|
export const ClMockRouterLink: DefineComponent
|
|
18
18
|
export const ClModal: DefineComponent
|
|
19
19
|
export const ClModalConfirm: DefineComponent
|
|
20
|
+
export const ClModalForm: DefineComponent
|
|
20
21
|
export const ClModalOk: DefineComponent
|
|
21
22
|
export const ClNavSide: DefineComponent
|
|
22
23
|
export const ClNavTop: DefineComponent
|