@castlabs/ui 7.2.1 → 7.4.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 (51) hide show
  1. package/dist/castlabs-ui-editor.common.js +50 -50
  2. package/dist/castlabs-ui-editor.common.js.map +1 -1
  3. package/dist/castlabs-ui-editor.umd.js +51 -51
  4. package/dist/castlabs-ui-editor.umd.js.map +1 -1
  5. package/dist/castlabs-ui.common.js +3 -3
  6. package/dist/castlabs-ui.common.js.map +1 -1
  7. package/dist/castlabs-ui.css +3 -3
  8. package/dist/castlabs-ui.umd.js +7 -7
  9. package/dist/castlabs-ui.umd.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/components/ClAlert/style.scss +8 -4
  12. package/src/components/ClBadge/style.variables.scss +8 -6
  13. package/src/components/ClBlockquote/style.variables.scss +2 -2
  14. package/src/components/ClButton/style.scss +11 -4
  15. package/src/components/ClCard/style.variables.scss +1 -1
  16. package/src/components/ClDropdown/style.scss +1 -3
  17. package/src/components/ClFooter/style.scss +1 -2
  18. package/src/components/ClIconotron/style.scss +1 -1
  19. package/src/components/form/ClField/style.scss +8 -1
  20. package/src/components/form/ClFieldCheck/style.scss +6 -6
  21. package/src/components/form/ClFieldFile/style.scss +5 -3
  22. package/src/components/form/ClFieldGroup/style.scss +2 -2
  23. package/src/components/form/ClForm/style.scss +3 -3
  24. package/src/components/modal/ClModal/style.scss +2 -2
  25. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +17 -11
  26. package/src/components/navigation/ClNavTop/style.scss +3 -8
  27. package/src/components/section/ClSectionForm/style.scss +1 -2
  28. package/src/components/section/ClSectionHeadline/style.scss +1 -1
  29. package/src/components/table/ClTableCel/ID/style.scss +2 -3
  30. package/src/components/table/ClTableCel/Links/style.scss +3 -3
  31. package/src/components/text/ClCopy/style.scss +7 -6
  32. package/src/components/text/ClHashtag/style.scss +1 -0
  33. package/src/components/text/ClLinkExternal/style.scss +43 -35
  34. package/src/components/text/ClPlan/style.scss +1 -0
  35. package/src/components/text/ClRole/style.scss +1 -0
  36. package/src/styles/abstracts/app.scss +3 -1
  37. package/src/styles/abstracts/color.scss +149 -91
  38. package/src/styles/abstracts/fontawesome.scss +17 -7
  39. package/src/styles/abstracts/form.scss +10 -6
  40. package/src/styles/abstracts/typography.scss +84 -65
  41. package/src/styles/layout/color.scss +28 -1
  42. package/src/styles/layout/helper.scss +13 -0
  43. package/src/styles/layout/section.scss +5 -2
  44. package/src/styles/layout/typography.scss +1 -1
  45. package/src/styles/ui.scss +0 -12
  46. package/dist/assets/DMMono/index.scss +0 -41
  47. package/dist/assets/FontAwesome5/LICENSE.txt +0 -34
  48. package/dist/assets/FontAwesome5/index.scss +0 -6124
  49. package/dist/assets/NonNaturalGroteskInktrap/index.scss +0 -37
  50. /package/dist/fonts/{DM_Mono_500.3f958442.woff2 → DM_Mono_500.03f95844.woff2} +0 -0
  51. /package/dist/fonts/{fa-brands-400.5faf8763.woff2 → fa-brands-400.05faf876.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "7.2.1",
3
+ "version": "7.4.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.",
@@ -19,7 +19,7 @@
19
19
  &::after {
20
20
  @include cl-fontawesome('\f05a');
21
21
 
22
- color: $color-ci-clay;
22
+ color: $color-ci-steel;
23
23
  left: -$alert-indent;
24
24
  position: absolute;
25
25
  text-align: center;
@@ -34,15 +34,17 @@
34
34
  }
35
35
 
36
36
  &.cl-alert-danger {
37
+ color: $color-error;
38
+
37
39
  &::after {
38
- color: $color-attention;
40
+ color: $color-error;
39
41
  content: '\f057';
40
42
  }
41
43
  }
42
44
 
43
45
  &.cl-alert-warning {
44
46
  &::after {
45
- color: $color-ci-petrol;
47
+ color: $color-ci-honey;
46
48
  content: '\f06a';
47
49
  }
48
50
  }
@@ -61,6 +63,7 @@
61
63
 
62
64
  &.cl-alert-check {
63
65
  &::after {
66
+ color: $color-ci-leaf;
64
67
  content: '\f058';
65
68
  }
66
69
  }
@@ -85,7 +88,7 @@
85
88
  &::after {
86
89
  @include cl-fontawesome($icon);
87
90
 
88
- color: $color-ci-clay;
91
+ color: $color-ci-steel;
89
92
  left: -$alert-indent;
90
93
  position: absolute;
91
94
  text-align: left;
@@ -108,6 +111,7 @@
108
111
 
109
112
  background-color: transparent;
110
113
  border: 0;
114
+ border-radius: $brand-border-radius-minor;
111
115
  display: inline-block;
112
116
  font-weight: 500;
113
117
  line-height: 1;
@@ -1,7 +1,7 @@
1
1
  @use '../../styles/global' as *;
2
2
 
3
- $badge-color-fg: $color-ci-white;
4
- $badge-color-bg: $color-dark;
3
+ // $badge-color-fg: $color-ci-white;
4
+ // $badge-color-bg: $color-dark;
5
5
  $badge-padding: px(4) px(8);
6
6
  $badge-min-height: 1.642857143em; // 23px @ 14pt
7
7
 
@@ -12,6 +12,7 @@ $badge-min-height: 1.642857143em; // 23px @ 14pt
12
12
  }
13
13
 
14
14
  %cl-badge {
15
+ @include cl-colors-secondary;
15
16
  @extend %cl-p-tag;
16
17
 
17
18
  background-color: var(--cl-color-background);
@@ -26,10 +27,11 @@ $badge-min-height: 1.642857143em; // 23px @ 14pt
26
27
  white-space: nowrap;
27
28
 
28
29
  &:not([class*='cl-color-']) {
29
- #{'--cl-color-background'}: $color-ci-clay;
30
- #{'--cl-color-border'}: $color-ci-clay;
31
- #{'--cl-color-text'}: $color-ci-night;
32
- #{'--cl-color-accent'}: $color-ci-night;
30
+ // default color
31
+ #{'--cl-color-background'}: $color-ci-steel;
32
+ #{'--cl-color-border'}: $color-ci-steel;
33
+ #{'--cl-color-text'}: $color-ci-eggshell;
34
+ #{'--cl-color-accent'}: $color-ci-eggshell;
33
35
  }
34
36
 
35
37
  &.cl-badge-sm {
@@ -10,6 +10,6 @@
10
10
  %cl-blockquote {
11
11
  @include cl-accent;
12
12
 
13
- border-left: $bar-ui-width solid var(--cl-color-accent);
14
- padding-left: calc($spacing-indent - $bar-ui-width);
13
+ border-left: $brand-bar-width solid var(--cl-color-accent);
14
+ padding-left: calc($spacing-indent - $brand-bar-width);
15
15
  }
@@ -43,16 +43,23 @@
43
43
  overflow: hidden;
44
44
  padding: px(7) $spacing-medium;
45
45
  }
46
+
47
+ &.cl-color-sea {
48
+ @extend %cl-color-sea;
49
+ }
50
+ }
51
+
52
+ a.btn {
53
+ text-decoration: none !important;
46
54
  }
47
55
 
48
56
  .cl-btn-quickaction {
49
57
  @extend %cl-a-btn;
50
58
 
51
- @include typography-link($color-text, $color-ci-red, 0);
52
- @include cl-color-focus-outline(var(--cl-color-focus), 2px);
59
+ @include typography-link-invisible;
53
60
 
61
+ background-color: transparent;
54
62
  border: 0;
55
- border-radius: 0;
56
63
  font-weight: 500;
57
64
  line-height: 1;
58
65
  margin-left: $spacing-tiny;
@@ -60,7 +67,7 @@
60
67
  padding: 0;
61
68
 
62
69
  &:not(:hover) {
63
- opacity: 0.25;
70
+ color: $color-ci-steel;
64
71
  }
65
72
  }
66
73
 
@@ -53,7 +53,7 @@ $card-spacing-tight: $spacing-small;
53
53
  }
54
54
 
55
55
  a:not(.btn) {
56
- @include typography-link(var(--cl-color-link), var(--cl-color-hover));
56
+ @include typography-link;
57
57
 
58
58
  display: inline-block;
59
59
  }
@@ -94,7 +94,6 @@ $dropdown-line-height: 1.25;
94
94
  letter-spacing: 0;
95
95
  line-height: 1.4;
96
96
  margin-top: 0;
97
- opacity: $color-hover-opacity;
98
97
  }
99
98
 
100
99
  &-tiny {
@@ -166,7 +165,7 @@ div.cl-dropdown summary {
166
165
  .cl-dropdown-item {
167
166
  @extend %cl-p-nav;
168
167
 
169
- @include typography-link(var(--cl-color-text), var(--cl-color-text), 0);
168
+ @include typography-link(var(--cl-color-text), var(--cl-color-text), transparent, transparent);
170
169
  @include cl-color-focus-outline;
171
170
 
172
171
  display: block;
@@ -186,7 +185,6 @@ div.cl-dropdown summary {
186
185
  font-weight: 500;
187
186
  letter-spacing: 0;
188
187
  margin-top: 0;
189
- opacity: $color-hover-opacity;
190
188
  }
191
189
 
192
190
  > span,
@@ -14,8 +14,7 @@
14
14
  padding-top: $spacing-small;
15
15
 
16
16
  a {
17
- @include typography-link(var(--cl-color-text), $color-ci-red, 0);
18
- @include cl-color-focus-outline(var(--cl-color-focus), 2px);
17
+ @include typography-link-invisible;
19
18
 
20
19
  &:hover {
21
20
  text-decoration: underline;
@@ -78,6 +78,6 @@
78
78
  }
79
79
 
80
80
  a {
81
- @include typography-link($color-text, rgba($color-text, $color-hover-opacity));
81
+ @include typography-link;
82
82
  }
83
83
  }
@@ -10,7 +10,13 @@
10
10
 
11
11
  [invalid],
12
12
  .invalid {
13
- border-color: $color-attention !important;
13
+ border-color: $color-error !important;
14
+ color: $color-error;
15
+
16
+ &::selection {
17
+ background: $color-error;
18
+ color: $color-ci-eggshell;
19
+ }
14
20
 
15
21
  + * + .invalid-feedback,
16
22
  + .invalid-feedback {
@@ -33,6 +39,7 @@
33
39
  textarea[disabled],
34
40
  input[disabled],
35
41
  select[disabled] {
42
+ background-color: $color-ci-haze;
36
43
  color: $color-disabled;
37
44
  cursor: not-allowed;
38
45
  }
@@ -35,15 +35,15 @@ $form-check-background: $color-ci-eggshell;
35
35
  margin-top: 0.2em;
36
36
 
37
37
  &:checked {
38
- background-color: $color-selected;
38
+ background-color: $color-ci-night;
39
39
  background-image: url('#{$cl-url-prefix}checked.svg#{$cl-url-postfix}');
40
40
  border: 0;
41
41
  }
42
42
 
43
43
  &:indeterminate {
44
- background-color: $color-selected;
44
+ background-color: $color-ci-night;
45
45
  background-image: none;
46
- border-color: $color-selected;
46
+ border-color: $color-ci-night;
47
47
  box-shadow: 0 0 0 px(2) $form-check-background inset !important;
48
48
 
49
49
  &:disabled,
@@ -60,9 +60,9 @@ $form-check-background: $color-ci-eggshell;
60
60
  margin-top: 0.2em;
61
61
 
62
62
  &:checked {
63
- background-color: $color-selected;
63
+ background-color: $color-ci-night;
64
64
  background-image: none; // remove BS dot
65
- border-color: $color-selected;
65
+ border-color: $color-ci-night;
66
66
 
67
67
  &.disabled,
68
68
  &:disabled {
@@ -72,7 +72,7 @@ $form-check-background: $color-ci-eggshell;
72
72
  }
73
73
 
74
74
  &:focus-visible {
75
- @include cl-color-focus-outline($color-selected, 2px);
75
+ @include cl-color-focus-outline($color-ci-night, 2px);
76
76
  }
77
77
 
78
78
  &.disabled,
@@ -20,6 +20,7 @@
20
20
  margin: 0;
21
21
  overflow: hidden;
22
22
  padding: 0;
23
+ position: absolute;
23
24
  width: 0;
24
25
  }
25
26
 
@@ -39,8 +40,8 @@
39
40
 
40
41
  &[invalid] + .cl-file-companion,
41
42
  &.invalid + .cl-file-companion {
42
- border-color: $color-attention;
43
- color: $color-attention;
43
+ border-color: $color-error;
44
+ color: $color-error;
44
45
 
45
46
  + * + .invalid-feedback,
46
47
  + .invalid-feedback {
@@ -62,11 +63,12 @@
62
63
  .cl-file-companion {
63
64
  @extend %spacing-micro;
64
65
  @extend %form-field-box;
65
- @extend %form-field-typography-sans;
66
+ @extend %form-field-typography-monospace;
66
67
 
67
68
  @include cl-form-focus;
68
69
 
69
70
  letter-spacing: 0;
71
+ line-height: 1.6;
70
72
  text-transform: none;
71
73
  }
72
74
  }
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  &.invalid {
48
- box-shadow: -$brand-line-width 0 0 $color-attention !important; // sass-lint:disable-line no-important
48
+ box-shadow: -$brand-line-width 0 0 $color-error !important; // sass-lint:disable-line no-important
49
49
  }
50
50
  }
51
51
  }
@@ -60,7 +60,7 @@
60
60
  @extend %form-field-box;
61
61
  @extend %form-field-typography-monospace;
62
62
 
63
- background-color: $color-ci-clay;
63
+ background-color: $color-ci-haze;
64
64
  height: 100%;
65
65
  line-height: inherit;
66
66
  white-space: nowrap;
@@ -59,7 +59,7 @@
59
59
  margin-top: $spacing-micro;
60
60
 
61
61
  &::before {
62
- color: $color-ci-clay;
62
+ color: $color-ci-steel;
63
63
  content: '\f05a';
64
64
  display: inline-block;
65
65
  font-family: 'Font Awesome 5 Free';
@@ -70,11 +70,11 @@
70
70
  }
71
71
 
72
72
  .invalid-feedback {
73
- // color: $color-attention;
73
+ color: $color-error;
74
74
  display: none;
75
75
 
76
76
  &::before {
77
- color: $color-attention;
77
+ color: $color-error; // fontawesome
78
78
  content: '\f057';
79
79
  }
80
80
  }
@@ -23,7 +23,7 @@
23
23
  z-index: $layer-z-modal;
24
24
 
25
25
  a {
26
- @include typography-link(var(--cl-color-link), $color-ci-ash);
26
+ @include typography-link;
27
27
 
28
28
  display: inline-block;
29
29
  }
@@ -113,7 +113,7 @@
113
113
 
114
114
  .modal-help,
115
115
  .cl-modal-help {
116
- @include typography-link(var(--cl-color-text), $color-ci-ash);
116
+ @include typography-link-invisible;
117
117
 
118
118
  display: inline-block;
119
119
  line-height: 1;
@@ -8,9 +8,6 @@
8
8
  @use 'sass:color';
9
9
  @use '../../../../styles/global' as *;
10
10
 
11
- $sidenav-background: $color-ci-eggshell;
12
- $sidenav-color-text: $color-ci-night;
13
- $sidenav-color-background: $color-ci-eggshell;
14
11
  $sidenav-color-separator: rgba(#fff, 0.25);
15
12
 
16
13
  $sidenav-color-account: $color-ci-night;
@@ -39,8 +36,10 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
39
36
  // --- drawer ----------------------------------------------------------------
40
37
 
41
38
  .cl-nav-drawer {
42
- background-color: $sidenav-color-background;
43
- color: $sidenav-color-text;
39
+ #{'--cl-color-background'}: $color-ci-eggshell;
40
+ #{'--cl-color-text'}: $color-ci-night;
41
+ background-color: var(--cl-color-background);
42
+ color: var(--cl-color-text);
44
43
  }
45
44
 
46
45
  // --- meta/common -----------------------------------------------------------
@@ -85,7 +84,12 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
85
84
  padding: 0 $spacing-small;
86
85
 
87
86
  a {
88
- @include typography-link(var(--cl-color-text), var(--cl-color-text), 0);
87
+ @include typography-link(
88
+ var(--cl-color-text),
89
+ var(--cl-color-text),
90
+ transparent,
91
+ transparent
92
+ );
89
93
  @include cl-color-focus-outline(var(--cl-color-focus), 0);
90
94
 
91
95
  line-height: 1;
@@ -245,7 +249,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
245
249
  position: absolute;
246
250
  right: 0;
247
251
  top: 0;
248
- width: $bar-ui-width;
252
+ width: $brand-bar-width;
249
253
  }
250
254
  }
251
255
 
@@ -266,7 +270,10 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
266
270
  @extend %cl-p-label;
267
271
 
268
272
  color: var(--cl-color-accent);
273
+ font-family: $typography-monospace-font-list;
274
+ letter-spacing: 0.05em;
269
275
  margin: $spacing-medium $spacing-small $spacing-tiny;
276
+ text-transform: uppercase;
270
277
 
271
278
  hr + & {
272
279
  margin-top: $spacing-tiny;
@@ -277,7 +284,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
277
284
  // ------------------------------------------------------------
278
285
  @extend %cl-p-nav;
279
286
 
280
- @include typography-link($sidenav-color-text, $sidenav-color-text, 0);
287
+ @include typography-link(var(--cl-color-text), var(--cl-color-text), transparent, transparent);
281
288
  @include cl-color-focus-outline;
282
289
 
283
290
  display: inline-block;
@@ -312,9 +319,8 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
312
319
  }
313
320
 
314
321
  &.active {
315
- @include typography-link($color-ci-red, $color-ci-red, 0);
322
+ @include typography-link($color-ci-red, $color-ci-red, transparent, transparent);
316
323
 
317
- // color: $color-ci-red;
318
324
  display: inline-block;
319
325
  padding: $spacing-tiny $spacing-small;
320
326
  position: relative;
@@ -328,7 +334,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
328
334
  position: absolute;
329
335
  right: 0;
330
336
  top: 0;
331
- width: $bar-ui-width;
337
+ width: $brand-bar-width;
332
338
  }
333
339
  }
334
340
 
@@ -72,6 +72,7 @@ $sidenav-z-index: $layer-z-sidenav;
72
72
  .cl-logo {
73
73
  align-items: center;
74
74
  display: flex;
75
+ font-size: $header-nav-height * 0.5; // logo scales 2x
75
76
 
76
77
  span {
77
78
  @extend %cl-p-label;
@@ -166,7 +167,7 @@ $sidenav-z-index: $layer-z-sidenav;
166
167
  position: absolute;
167
168
  right: 0;
168
169
  top: 0;
169
- width: $bar-ui-width;
170
+ width: $brand-bar-width;
170
171
  }
171
172
  }
172
173
  }
@@ -201,16 +202,10 @@ $navbar-item-spacing: $spacing-medium;
201
202
  line-height: 1;
202
203
  margin: 0;
203
204
  padding: 0.5em 0;
204
-
205
- .cl-asset-logo,
206
- .cl-asset-logo-eggshell {
207
- height: 2.5 * 1em;
208
- width: 2.5 * 2.95em;
209
- }
210
205
  }
211
206
 
212
207
  .nav-link {
213
- @include typography-link($color-text, $color-ci-night, 0);
208
+ @include typography-link(var(--cl-color-text), var(--cl-color-text), transparent, transparent);
214
209
 
215
210
  display: block;
216
211
  font-weight: 500;
@@ -1,8 +1,7 @@
1
1
  @use '../../../styles/global' as *;
2
2
 
3
3
  .cl-section-form {
4
- border-bottom: $brand-line-width solid $color-ci-clay;
5
- border-top: $brand-line-width solid $color-ci-clay;
4
+ background-color: $color-ci-haze;
6
5
  padding-top: $spacing-tiny;
7
6
 
8
7
  &,
@@ -3,7 +3,7 @@
3
3
  .cl-section-dark .cl-headline-help-icon,
4
4
  .cl-section-primary .cl-headline-help-icon,
5
5
  .cl-section-secondary .cl-headline-help-icon {
6
- @include typography-link(rgba($color-ci-white, 0.5), $color-ci-white, 0);
6
+ @include typography-link-invisible;
7
7
 
8
8
  font-size: 0.5em;
9
9
  line-height: 1;
@@ -7,10 +7,9 @@
7
7
  @include typography-font(
8
8
  $typography-monospace-font-list,
9
9
  400,
10
- px(15),
10
+ px(14),
11
11
  $table-lineheight * 1.066666667,
12
- 0.025em,
13
- 80%
12
+ 0.025em
14
13
  );
15
14
 
16
15
  overflow-wrap: unset;
@@ -22,9 +22,9 @@
22
22
  right: 0;
23
23
  white-space: nowrap;
24
24
 
25
- a:not(.cl-a-primary) {
26
- @extend %cl-a-text;
27
- }
25
+ // a {
26
+ // @extend %cl-a-text;
27
+ // }
28
28
 
29
29
  :not(:first-child) {
30
30
  margin-left: $spacing-tiny;
@@ -14,14 +14,15 @@
14
14
  &::after {
15
15
  font-size: 0.75em;
16
16
  }
17
+
18
+ &:hover,
19
+ &:hover::after,
20
+ &:hover * {
21
+ color: $color-hover;
22
+ text-decoration-color: $color-hover;
23
+ }
17
24
  }
18
25
 
19
26
  .cl-copy-text {
20
- @extend %cl-a-text;
21
-
22
27
  text-decoration: underline;
23
28
  }
24
-
25
- .cl-copy-transparent {
26
- @extend %cl-a-transparent;
27
- }
@@ -15,6 +15,7 @@
15
15
  &::before {
16
16
  @include cl-fontawesome('\f292');
17
17
 
18
+ line-height: 0.5;
18
19
  margin-right: 0.2em;
19
20
  top: 0.015em;
20
21
  }