@carbon/styles 1.2.0 → 1.4.0-rc.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.2.0",
4
+ "version": "1.4.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -27,24 +27,24 @@
27
27
  "sass": "^1.33.0"
28
28
  },
29
29
  "dependencies": {
30
- "@carbon/colors": "^11.1.0",
30
+ "@carbon/colors": "^11.2.0-rc.0",
31
31
  "@carbon/feature-flags": "^0.7.0",
32
- "@carbon/grid": "^11.1.0",
33
- "@carbon/layout": "^11.1.0",
34
- "@carbon/motion": "^11.0.0",
35
- "@carbon/themes": "^11.2.0",
36
- "@carbon/type": "^11.2.0",
32
+ "@carbon/grid": "^11.2.0-rc.0",
33
+ "@carbon/layout": "^11.2.0-rc.0",
34
+ "@carbon/motion": "^11.1.0-rc.0",
35
+ "@carbon/themes": "^11.3.0-rc.0",
36
+ "@carbon/type": "^11.3.0-rc.0",
37
37
  "@ibm/plex": "6.0.0-next.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@carbon/test-utils": "^10.23.0",
40
+ "@carbon/test-utils": "^10.24.0-rc.0",
41
41
  "css": "^3.0.0",
42
- "sass": "^1.45.0"
42
+ "sass": "^1.51.0"
43
43
  },
44
44
  "sideEffects": [
45
45
  "index.scss",
46
46
  "scss/**/*.scss",
47
47
  "scss/**/*.css"
48
48
  ],
49
- "gitHead": "28cf6f75d268e3103a23a3ce1d50127189703964"
49
+ "gitHead": "b5930a4a638221e39b1dbce9c6b79e41dc340f68"
50
50
  }
@@ -27,19 +27,27 @@ describe('@carbon/styles/scss/type', () => {
27
27
  reset: meta.mixin-exists('reset', 'type'),
28
28
  type-style: meta.mixin-exists('type-style', 'type'),
29
29
  font-family: meta.mixin-exists('font-family', 'type'),
30
+ font-weight: meta.mixin-exists('font-family', 'type'),
30
31
  default-type: meta.mixin-exists('default-type', 'type'),
31
32
  type-classes: meta.mixin-exists('type-classes', 'type'),
32
33
  ),
34
+ functions: (
35
+ font-weight: meta.function-exists('font-family', 'type'),
36
+ ),
33
37
  ));
34
38
  `);
35
39
 
36
40
  const { value: api } = get('api');
41
+ expect(api.functions).toEqual({
42
+ 'font-weight': true,
43
+ });
37
44
  expect(api.mixins).toEqual({
38
45
  reset: true,
39
46
  'type-style': true,
40
47
  'font-family': true,
41
48
  'default-type': true,
42
49
  'type-classes': true,
50
+ 'font-weight': true,
43
51
  });
44
52
  expect(api.variables).toMatchInlineSnapshot(`
45
53
  Array [
@@ -73,6 +81,8 @@ describe('@carbon/styles/scss/type', () => {
73
81
  "display-02",
74
82
  "display-03",
75
83
  "display-04",
84
+ "font-families",
85
+ "font-weights",
76
86
  "tokens",
77
87
  ]
78
88
  `);
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright IBM Corp. 2018, 2018
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use 'breadcrumb';
9
+
10
+ @include breadcrumb.breadcrumb;
@@ -6,6 +6,5 @@
6
6
  //
7
7
 
8
8
  @forward 'breadcrumb';
9
- @use 'breadcrumb';
10
-
11
- @include breadcrumb.breadcrumb;
9
+ @use 'css';
10
+ @use '../link';
@@ -123,8 +123,8 @@
123
123
  .#{$prefix}--checkbox:indeterminate + .#{$prefix}--checkbox-label::before,
124
124
  .#{$prefix}--checkbox-label[data-contained-checkbox-state='true']::before,
125
125
  .#{$prefix}--checkbox-label[data-contained-checkbox-state='mixed']::before {
126
+ border: none;
126
127
  border-width: 1px;
127
- border-color: $icon-primary;
128
128
  background-color: $icon-primary;
129
129
  }
130
130
 
@@ -67,6 +67,10 @@
67
67
  display: block;
68
68
  }
69
69
 
70
+ &.#{$prefix}--copy-btn--animating::before {
71
+ border: none;
72
+ }
73
+
70
74
  &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-out::before,
71
75
  &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-out
72
76
  .#{$prefix}--copy-btn__feedback {
@@ -108,6 +108,10 @@
108
108
  @include breakpoint(xlg) {
109
109
  width: 48%;
110
110
  }
111
+
112
+ .#{$prefix}--modal-container-body {
113
+ display: contents;
114
+ }
111
115
  }
112
116
 
113
117
  // -----------------------------
@@ -20,14 +20,23 @@
20
20
  .#{$prefix}--progress-bar__label {
21
21
  @include type-style('body-compact-01');
22
22
 
23
- display: block;
23
+ display: flex;
24
+ min-width: rem(48px);
25
+ justify-content: space-between;
24
26
  margin-bottom: $spacing-03;
25
27
  color: $text-primary;
26
28
  }
27
29
 
30
+ .#{$prefix}--progress-bar__label-text {
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ }
35
+
28
36
  .#{$prefix}--progress-bar__track {
29
37
  position: relative;
30
38
  width: 100%;
39
+ min-width: rem(48px);
31
40
  height: rem(8px);
32
41
  background-color: $layer;
33
42
  }
@@ -44,7 +53,8 @@
44
53
  display: block;
45
54
  width: 100%;
46
55
  height: 100%;
47
- background-color: $interactive;
56
+ background-color: currentColor;
57
+ color: $interactive;
48
58
  transform: scaleX(0);
49
59
  transform-origin: 0 center #{'/*rtl:100% center*/'};
50
60
  transition: transform $duration-fast-02 motion(standard, productive);
@@ -74,10 +84,47 @@
74
84
  .#{$prefix}--progress-bar__helper-text {
75
85
  @include type-style('helper-text-01');
76
86
 
77
- margin-top: $spacing-02;
87
+ margin-top: $spacing-03;
78
88
  color: $text-secondary;
79
89
  }
80
90
 
91
+ .#{$prefix}--progress-bar__status-icon {
92
+ flex-shrink: 0;
93
+ margin-left: $spacing-05;
94
+ }
95
+
96
+ .#{$prefix}--progress-bar--finished .#{$prefix}--progress-bar__bar,
97
+ .#{$prefix}--progress-bar--finished .#{$prefix}--progress-bar__status-icon {
98
+ color: $support-success;
99
+ }
100
+
101
+ .#{$prefix}--progress-bar--error .#{$prefix}--progress-bar__bar,
102
+ .#{$prefix}--progress-bar--error .#{$prefix}--progress-bar__status-icon,
103
+ .#{$prefix}--progress-bar--error .#{$prefix}--progress-bar__helper-text {
104
+ color: $support-error;
105
+ }
106
+
107
+ .#{$prefix}--progress-bar--finished .#{$prefix}--progress-bar__bar,
108
+ .#{$prefix}--progress-bar--error .#{$prefix}--progress-bar__bar {
109
+ transform: scaleX(1);
110
+ }
111
+
112
+ .#{$prefix}--progress-bar--finished.#{$prefix}--progress-bar--inline
113
+ .#{$prefix}--progress-bar__track,
114
+ .#{$prefix}--progress-bar--error.#{$prefix}--progress-bar--inline
115
+ .#{$prefix}--progress-bar__track {
116
+ @include visually-hidden;
117
+ }
118
+
119
+ .#{$prefix}--progress-bar--finished.#{$prefix}--progress-bar--inline
120
+ .#{$prefix}--progress-bar__label,
121
+ .#{$prefix}--progress-bar--error.#{$prefix}--progress-bar--inline
122
+ .#{$prefix}--progress-bar__label {
123
+ flex-shrink: 1;
124
+ justify-content: flex-start;
125
+ margin-right: 0;
126
+ }
127
+
81
128
  @keyframes progress-bar-indeterminate {
82
129
  0% {
83
130
  background-position-x: 25%;
@@ -100,6 +147,11 @@
100
147
  margin-inline-end: $spacing-05;
101
148
  }
102
149
 
150
+ .#{$prefix}--progress-bar--inline .#{$prefix}--progress-bar__track {
151
+ flex-basis: 0;
152
+ flex-grow: 1;
153
+ }
154
+
103
155
  .#{$prefix}--progress-bar--inline .#{$prefix}--progress-bar__helper-text {
104
156
  @include visually-hidden;
105
157
  }
@@ -83,7 +83,7 @@
83
83
  display: table-row;
84
84
  border-bottom: 1px solid $border-subtle;
85
85
  transition: background-color motion.$duration-fast-02
86
- motion(standard, productive);
86
+ motion.motion(standard, productive);
87
87
  }
88
88
 
89
89
  .#{$prefix}--structured-list--selection
@@ -162,7 +162,8 @@
162
162
  border-top: 1px solid $border-subtle;
163
163
  }
164
164
 
165
- transition: color motion.$duration-fast-02 motion(standard, productive);
165
+ transition: color motion.$duration-fast-02
166
+ motion.motion(standard, productive);
166
167
  }
167
168
 
168
169
  .#{$prefix}--structured-list-content--nowrap {
@@ -172,7 +173,7 @@
172
173
  .#{$prefix}--structured-list-svg {
173
174
  display: inline-block;
174
175
  fill: transparent;
175
- transition: all motion.$duration-fast-02 motion(standard, productive);
176
+ transition: all motion.$duration-fast-02 motion.motion(standard, productive);
176
177
  vertical-align: middle;
177
178
  }
178
179
 
@@ -91,6 +91,7 @@
91
91
  .#{$prefix}--tile--clickable.#{$prefix}--link--disabled,
92
92
  .#{$prefix}--tile--clickable:hover.#{$prefix}--link--disabled {
93
93
  display: block;
94
+ padding: $spacing-05;
94
95
  background-color: $layer;
95
96
  color: $text-disabled;
96
97
  }
@@ -113,6 +113,8 @@
113
113
  position: absolute;
114
114
  top: rem(6px);
115
115
  right: rem(5px);
116
+ width: rem(6px);
117
+ height: rem(5px);
116
118
  fill: $support-success;
117
119
  visibility: hidden;
118
120
  }
@@ -13,6 +13,7 @@
13
13
  font-family,
14
14
  default-type,
15
15
  type-classes,
16
+ font-weight,
16
17
 
17
18
  // Variables
18
19
  $caption-01,
@@ -46,6 +47,8 @@
46
47
  $display-02,
47
48
  $display-03,
48
49
  $display-04,
50
+ $font-families,
51
+ $font-weights,
49
52
  $tokens;
50
53
 
51
54
  @use '@carbon/type';