@carbon/styles 1.19.0-rc.0 → 1.20.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 (38) hide show
  1. package/css/styles.css +3751 -3348
  2. package/css/styles.min.css +1 -1
  3. package/package.json +9 -9
  4. package/scss/__tests__/theme-test.js +4 -0
  5. package/scss/_feature-flags.scss +1 -0
  6. package/scss/components/__tests__/fluid-combo-box-test.js +27 -0
  7. package/scss/components/__tests__/fluid-date-picker-test.js +27 -0
  8. package/scss/components/__tests__/fluid-dropdown-test.js +27 -0
  9. package/scss/components/__tests__/fluid-list-box-test.js +27 -0
  10. package/scss/components/__tests__/fluid-multiselect-test.js +27 -0
  11. package/scss/components/__tests__/fluid-number-input-test.js +27 -0
  12. package/scss/components/__tests__/fluid-search-test.js +27 -0
  13. package/scss/components/__tests__/fluid-select-test.js +27 -0
  14. package/scss/components/__tests__/fluid-text-area-test.js +27 -0
  15. package/scss/components/__tests__/fluid-text-input-test.js +27 -0
  16. package/scss/components/__tests__/fluid-time-picker-test.js +27 -0
  17. package/scss/components/_index.scss +2 -0
  18. package/scss/components/contained-list/_contained-list.scss +8 -2
  19. package/scss/components/data-table/sort/_data-table-sort.scss +5 -0
  20. package/scss/components/file-uploader/_file-uploader.scss +4 -0
  21. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -0
  22. package/scss/components/fluid-list-box/_fluid-list-box.scss +19 -0
  23. package/scss/components/fluid-multiselect/_fluid-multiselect.scss +1 -1
  24. package/scss/components/fluid-number-input/_fluid-number-input.scss +273 -0
  25. package/scss/components/fluid-number-input/_index.scss +11 -0
  26. package/scss/components/fluid-search/_fluid-search.scss +141 -0
  27. package/scss/components/fluid-search/_index.scss +11 -0
  28. package/scss/components/fluid-select/_fluid-select.scss +17 -0
  29. package/scss/components/fluid-text-area/_fluid-text-area.scss +19 -0
  30. package/scss/components/fluid-text-input/_fluid-text-input.scss +14 -4
  31. package/scss/components/form/_form.scss +1 -1
  32. package/scss/components/modal/_modal.scss +4 -4
  33. package/scss/components/number-input/_number-input.scss +2 -2
  34. package/scss/components/popover/_popover.scss +1 -0
  35. package/scss/components/slider/_slider.scss +4 -0
  36. package/scss/components/tile/_tile.scss +23 -1
  37. package/scss/layer/_layer-sets.scss +5 -0
  38. package/scss/theme/_theme.scss +1 -0
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.19.0-rc.0",
4
+ "version": "1.20.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -32,13 +32,13 @@
32
32
  "sass": "^1.33.0"
33
33
  },
34
34
  "dependencies": {
35
- "@carbon/colors": "^11.10.0-rc.0",
36
- "@carbon/feature-flags": "^0.11.0-rc.0",
37
- "@carbon/grid": "^11.9.0-rc.0",
38
- "@carbon/layout": "^11.9.0-rc.0",
39
- "@carbon/motion": "^11.7.0-rc.0",
40
- "@carbon/themes": "^11.14.0-rc.0",
41
- "@carbon/type": "^11.13.0-rc.0",
35
+ "@carbon/colors": "^11.11.0",
36
+ "@carbon/feature-flags": "^0.11.0",
37
+ "@carbon/grid": "^11.10.0",
38
+ "@carbon/layout": "^11.10.0",
39
+ "@carbon/motion": "^11.8.0",
40
+ "@carbon/themes": "^11.15.0",
41
+ "@carbon/type": "^11.14.0",
42
42
  "@ibm/plex": "6.0.0-next.6"
43
43
  },
44
44
  "devDependencies": {
@@ -59,5 +59,5 @@
59
59
  "scss/**/*.css",
60
60
  "css/**/*.css"
61
61
  ],
62
- "gitHead": "a9d6ab5cc79665453f218fd5821c65c399337c15"
62
+ "gitHead": "b115fef8c7d19ed31ed3aeeb2b7f95f8be0738b6"
63
63
  }
@@ -87,6 +87,9 @@ describe('@carbon/styles/scss/theme', () => {
87
87
  "border-strong-01",
88
88
  "border-strong-02",
89
89
  "border-strong-03",
90
+ "border-tile-01",
91
+ "border-tile-02",
92
+ "border-tile-03",
90
93
  "border-inverse",
91
94
  "border-interactive",
92
95
  "border-disabled",
@@ -145,6 +148,7 @@ describe('@carbon/styles/scss/theme', () => {
145
148
  "border-subtle",
146
149
  "border-subtle-selected",
147
150
  "border-strong",
151
+ "border-tile",
148
152
  ]
149
153
  `);
150
154
  });
@@ -11,6 +11,7 @@
11
11
  'enable-use-controlled-state-with-value': true,
12
12
  'enable-css-grid': true,
13
13
  'enable-v11-release': true,
14
+ 'enable-experimental-tile-contrast': false,
14
15
  )
15
16
  !default
16
17
  );
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-combo-box', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-combo-box';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-combo-box', 'fluid-combo-box'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-date-picker', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-date-picker';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-date-picker', 'fluid-date-picker'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-dropdown', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-dropdown';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-dropdown', 'fluid-dropdown'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-list-box', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-list-box';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-list-box', 'fluid-list-box'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-multiselect', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-multiselect';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-multiselect', 'fluid-multiselect'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-number-input', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-number-input';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-number-input', 'fluid-number-input'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-search', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-search';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-search', 'fluid-search'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-select', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-select';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-select', 'fluid-select'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-text-area', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-text-area';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-text-area', 'fluid-text-area'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-text-input', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-text-input';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-text-input', 'fluid-text-input'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022
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
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/fluid-time-picker', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../fluid-time-picker';
22
+
23
+ $_: get('mixin', meta.mixin-exists('fluid-time-picker', 'fluid-time-picker'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -28,6 +28,8 @@
28
28
  @use 'fluid-dropdown';
29
29
  @use 'fluid-list-box';
30
30
  @use 'fluid-multiselect';
31
+ @use 'fluid-number-input';
32
+ @use 'fluid-search';
31
33
  @use 'fluid-select';
32
34
  @use 'fluid-text-area';
33
35
  @use 'fluid-text-input';
@@ -127,14 +127,20 @@
127
127
 
128
128
  .#{$prefix}--contained-list-item:not(:last-of-type)::before {
129
129
  position: absolute;
130
- right: $spacing-05;
130
+ right: 0;
131
131
  bottom: 0;
132
- left: $spacing-05;
132
+ left: 0;
133
133
  height: 1px;
134
134
  background-color: $border-subtle;
135
135
  content: '';
136
136
  }
137
137
 
138
+ .#{$prefix}--contained-list--inset-rulers
139
+ .#{$prefix}--contained-list-item:not(:last-of-type)::before {
140
+ right: $spacing-05;
141
+ left: $spacing-05;
142
+ }
143
+
138
144
  .#{$prefix}--contained-list-item--clickable
139
145
  .#{$prefix}--contained-list-item__content:not(:disabled):hover {
140
146
  background-color: $layer-hover;
@@ -29,6 +29,11 @@
29
29
  border-bottom: none;
30
30
  }
31
31
 
32
+ // hidden sort description
33
+ .#{$prefix}--table-sort__description {
34
+ display: none;
35
+ }
36
+
32
37
  // -------------------------------------
33
38
  // Th > Button
34
39
  // -------------------------------------
@@ -119,6 +119,10 @@
119
119
  color: $text-disabled;
120
120
  }
121
121
 
122
+ .#{$prefix}--file-container--drop {
123
+ width: 100%;
124
+ }
125
+
122
126
  // For backwards compatibility
123
127
  .#{$prefix}--file-btn ~ .#{$prefix}--file-container {
124
128
  margin-top: $spacing-06;
@@ -36,11 +36,30 @@
36
36
  top: rem(13px);
37
37
  left: $spacing-05;
38
38
  display: flex;
39
+ width: calc(100% - 2rem);
39
40
  height: rem(16px);
40
41
  align-items: center;
41
42
  margin: 0;
42
43
  }
43
44
 
45
+ .#{$prefix}--date-picker--fluid .#{$prefix}--label::-webkit-scrollbar,
46
+ .#{$prefix}--date-picker--fluid
47
+ .#{$prefix}--label
48
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
49
+ display: none;
50
+ }
51
+
52
+ .#{$prefix}--date-picker--fluid
53
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
54
+ .#{$prefix}--date-picker--fluid
55
+ .#{$prefix}--label
56
+ .#{$prefix}--toggletip-label {
57
+ -ms-overflow-style: none;
58
+ overflow-x: scroll;
59
+ scrollbar-width: none;
60
+ white-space: nowrap;
61
+ }
62
+
44
63
  .#{$prefix}--date-picker--fluid
45
64
  .#{$prefix}--date-picker-input__wrapper
46
65
  .#{$prefix}--date-picker__input {
@@ -36,11 +36,30 @@
36
36
  top: rem(13px);
37
37
  left: $spacing-05;
38
38
  display: flex;
39
+ width: calc(100% - 2rem);
39
40
  height: rem(16px);
40
41
  align-items: center;
41
42
  margin: 0;
42
43
  }
43
44
 
45
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--label::-webkit-scrollbar,
46
+ .#{$prefix}--list-box__wrapper--fluid
47
+ .#{$prefix}--label
48
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
49
+ display: none;
50
+ }
51
+
52
+ .#{$prefix}--list-box__wrapper--fluid
53
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
54
+ .#{$prefix}--list-box__wrapper--fluid
55
+ .#{$prefix}--label
56
+ .#{$prefix}--toggletip-label {
57
+ -ms-overflow-style: none;
58
+ overflow-x: scroll;
59
+ scrollbar-width: none;
60
+ white-space: nowrap;
61
+ }
62
+
44
63
  .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__field {
45
64
  padding-top: rem(33px);
46
65
  padding-bottom: rem(13px);
@@ -6,7 +6,7 @@
6
6
  //
7
7
 
8
8
  //-----------------------------
9
- // Fluid ComboBox
9
+ // Fluid Multiselect
10
10
  //-----------------------------
11
11
  @use '../../config' as *;
12
12
  @use '../../motion' as *;