@carbon/styles 1.19.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.
- package/css/styles.css +3731 -3348
- package/css/styles.min.css +1 -1
- package/package.json +8 -8
- package/scss/components/__tests__/fluid-combo-box-test.js +27 -0
- package/scss/components/__tests__/fluid-date-picker-test.js +27 -0
- package/scss/components/__tests__/fluid-dropdown-test.js +27 -0
- package/scss/components/__tests__/fluid-list-box-test.js +27 -0
- package/scss/components/__tests__/fluid-multiselect-test.js +27 -0
- package/scss/components/__tests__/fluid-number-input-test.js +27 -0
- package/scss/components/__tests__/fluid-search-test.js +27 -0
- package/scss/components/__tests__/fluid-select-test.js +27 -0
- package/scss/components/__tests__/fluid-text-area-test.js +27 -0
- package/scss/components/__tests__/fluid-text-input-test.js +27 -0
- package/scss/components/__tests__/fluid-time-picker-test.js +27 -0
- package/scss/components/_index.scss +2 -0
- package/scss/components/contained-list/_contained-list.scss +8 -2
- package/scss/components/data-table/sort/_data-table-sort.scss +5 -0
- package/scss/components/file-uploader/_file-uploader.scss +4 -0
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +19 -0
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +1 -1
- package/scss/components/fluid-number-input/_fluid-number-input.scss +273 -0
- package/scss/components/fluid-number-input/_index.scss +11 -0
- package/scss/components/fluid-search/_fluid-search.scss +141 -0
- package/scss/components/fluid-search/_index.scss +11 -0
- package/scss/components/fluid-select/_fluid-select.scss +17 -0
- package/scss/components/fluid-text-area/_fluid-text-area.scss +19 -0
- package/scss/components/fluid-text-input/_fluid-text-input.scss +14 -4
- package/scss/components/form/_form.scss +1 -1
- package/scss/components/modal/_modal.scss +4 -4
- package/scss/components/number-input/_number-input.scss +2 -2
- package/scss/components/popover/_popover.scss +1 -0
- package/scss/components/slider/_slider.scss +4 -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.
|
|
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.
|
|
35
|
+
"@carbon/colors": "^11.11.0",
|
|
36
36
|
"@carbon/feature-flags": "^0.11.0",
|
|
37
|
-
"@carbon/grid": "^11.
|
|
38
|
-
"@carbon/layout": "^11.
|
|
39
|
-
"@carbon/motion": "^11.
|
|
40
|
-
"@carbon/themes": "^11.
|
|
41
|
-
"@carbon/type": "^11.
|
|
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": "
|
|
62
|
+
"gitHead": "b115fef8c7d19ed31ed3aeeb2b7f95f8be0738b6"
|
|
63
63
|
}
|
|
@@ -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
|
+
});
|
|
@@ -127,14 +127,20 @@
|
|
|
127
127
|
|
|
128
128
|
.#{$prefix}--contained-list-item:not(:last-of-type)::before {
|
|
129
129
|
position: absolute;
|
|
130
|
-
right:
|
|
130
|
+
right: 0;
|
|
131
131
|
bottom: 0;
|
|
132
|
-
left:
|
|
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;
|
|
@@ -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);
|