@carbon/styles 0.17.0 → 1.0.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.
Files changed (99) hide show
  1. package/package.json +23 -10
  2. package/scss/__tests__/__snapshots__/colors-test.js.snap +404 -0
  3. package/scss/__tests__/__snapshots__/config-test.js.snap +44 -0
  4. package/scss/__tests__/__snapshots__/motion-test.js.snap +39 -0
  5. package/scss/__tests__/breakpoint-test.js +42 -0
  6. package/scss/__tests__/colors-test.js +28 -0
  7. package/scss/__tests__/config-test.js +53 -0
  8. package/scss/__tests__/grid-test.js +48 -0
  9. package/scss/__tests__/layer-test.js +82 -0
  10. package/scss/__tests__/motion-test.js +37 -0
  11. package/scss/__tests__/reset-test.js +28 -0
  12. package/scss/__tests__/theme-test.js +151 -0
  13. package/scss/__tests__/themes-test.js +36 -0
  14. package/scss/__tests__/type-test.js +77 -0
  15. package/scss/_breakpoint.scss +2 -1
  16. package/scss/_config.scss +9 -2
  17. package/scss/_spacing.scss +1 -1
  18. package/scss/_theme.scss +4 -4
  19. package/scss/_themes.scss +2 -1
  20. package/scss/components/__tests__/accordion-test.js +47 -0
  21. package/scss/components/__tests__/breadcrumb-test.js +27 -0
  22. package/scss/components/__tests__/button-test.js +71 -0
  23. package/scss/components/__tests__/checkbox-test.js +27 -0
  24. package/scss/components/__tests__/code-snippet-test.js +44 -0
  25. package/scss/components/__tests__/combo-box-test.js +27 -0
  26. package/scss/components/__tests__/content-switcher-test.js +27 -0
  27. package/scss/components/__tests__/copy-button-test.js +27 -0
  28. package/scss/components/__tests__/data-table-test.js +85 -0
  29. package/scss/components/__tests__/date-picker-test.js +26 -0
  30. package/scss/components/__tests__/dropdown-test.js +27 -0
  31. package/scss/components/__tests__/file-uploader.js +27 -0
  32. package/scss/components/__tests__/form-test.js +43 -0
  33. package/scss/components/__tests__/inline-loading-test.js +26 -0
  34. package/scss/components/__tests__/link-test.js +26 -0
  35. package/scss/components/__tests__/list-box-test.js +36 -0
  36. package/scss/components/__tests__/list-test.js +26 -0
  37. package/scss/components/__tests__/loading-test.js +26 -0
  38. package/scss/components/__tests__/menu-test.js +27 -0
  39. package/scss/components/__tests__/modal-test.js +27 -0
  40. package/scss/components/__tests__/multiselect-test.js +27 -0
  41. package/scss/components/__tests__/notification-test.js +49 -0
  42. package/scss/components/__tests__/number-input-test.js +27 -0
  43. package/scss/components/__tests__/overflow-menu-test.js +27 -0
  44. package/scss/components/__tests__/pagination-nav-test.js +26 -0
  45. package/scss/components/__tests__/pagination-test.js +26 -0
  46. package/scss/components/__tests__/progress-bar-test.js +26 -0
  47. package/scss/components/__tests__/progress-indicator-test.js +26 -0
  48. package/scss/components/__tests__/radio-button-test.js +25 -0
  49. package/scss/components/__tests__/search-test.js +25 -0
  50. package/scss/components/__tests__/select-test.js +26 -0
  51. package/scss/components/__tests__/skeleton-test.js +26 -0
  52. package/scss/components/__tests__/slider-test.js +26 -0
  53. package/scss/components/__tests__/structured-list-test.js +27 -0
  54. package/scss/components/__tests__/tabs-test.js +27 -0
  55. package/scss/components/__tests__/tag-test.js +25 -0
  56. package/scss/components/__tests__/text-area-test.js +26 -0
  57. package/scss/components/__tests__/text-input-test.js +26 -0
  58. package/scss/components/__tests__/tile-test.js +26 -0
  59. package/scss/components/__tests__/time-picker-test.js +26 -0
  60. package/scss/components/__tests__/toggle-test.js +27 -0
  61. package/scss/components/__tests__/tooltip-test.js +25 -0
  62. package/scss/components/__tests__/treeview-test.js +25 -0
  63. package/scss/components/__tests__/ui-shell-test.js +27 -0
  64. package/scss/components/accordion/_accordion.scss +1 -1
  65. package/scss/components/aspect-ratio/_aspect-ratio.scss +2 -2
  66. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  67. package/scss/components/button/_button.scss +1 -5
  68. package/scss/components/button/_tokens.scss +1 -0
  69. package/scss/components/code-snippet/_code-snippet.scss +32 -47
  70. package/scss/components/content-switcher/_content-switcher.scss +0 -2
  71. package/scss/components/copy-button/_copy-button.scss +0 -59
  72. package/scss/components/dropdown/_dropdown.scss +0 -1
  73. package/scss/components/modal/_modal.scss +1 -1
  74. package/scss/components/notification/_actionable-notification.scss +58 -19
  75. package/scss/components/notification/_inline-notification.scss +9 -21
  76. package/scss/components/notification/_toast-notification.scss +29 -58
  77. package/scss/components/notification/_tokens.scss +2 -1
  78. package/scss/components/pagination/_unstable_pagination.scss +1 -1
  79. package/scss/components/progress-indicator/_progress-indicator.scss +5 -5
  80. package/scss/components/radio-button/_radio-button.scss +2 -10
  81. package/scss/components/tabs/_tabs.scss +1 -1
  82. package/scss/components/tag/_tokens.scss +1 -0
  83. package/scss/components/text-input/_text-input.scss +7 -22
  84. package/scss/components/tile/_tile.scss +60 -29
  85. package/scss/components/toggletip/_toggletip.scss +1 -2
  86. package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +269 -0
  87. package/scss/fonts/__tests__/fonts-test.js +197 -0
  88. package/scss/fonts/_src.scss +42 -31
  89. package/scss/grid/_css-grid.scss +11 -0
  90. package/scss/grid/_flexbox.scss +1 -1
  91. package/scss/grid/_index.scss +7 -2
  92. package/scss/grid/_mixins.scss +9 -0
  93. package/scss/type/_reset.scss +1 -1
  94. package/scss/utilities/__tests__/custom-property-test.js +50 -0
  95. package/scss/utilities/_component-tokens.scss +2 -1
  96. package/scss/utilities/_convert.scss +2 -4
  97. package/scss/utilities/_high-contrast-mode.scss +2 -4
  98. package/docs/sass.md +0 -462
  99. package/scss/grid/_config.scss +0 -18
@@ -0,0 +1,27 @@
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
+ * @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/overflow-menu', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../overflow-menu';
22
+
23
+ $_: get('mixin', meta.mixin-exists('overflow-menu', 'overflow-menu'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,26 @@
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
+ * @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/pagination-nav', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../pagination-nav';
21
+
22
+ $_: get('mixin', meta.mixin-exists('pagination-nav', 'pagination-nav'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/pagination', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../pagination';
21
+
22
+ $_: get('mixin', meta.mixin-exists('pagination', 'pagination'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/progress-bar', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../progress-bar';
21
+
22
+ $_: get('mixin', meta.mixin-exists('progress-bar', 'progress-bar'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/progress-indicator', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../progress-indicator';
21
+
22
+ $_: get('mixin', meta.mixin-exists('progress-indicator', 'progress-indicator'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,25 @@
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
+ * @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/radio-button', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../radio-button/radio-button';
21
+ $_: get('mixin', meta.mixin-exists('radio-button', 'radio-button'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ * @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/search', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../search';
21
+ $_: get('mixin', meta.mixin-exists('search', 'search'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,26 @@
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
+ * @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/select', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../select';
21
+
22
+ $_: get('mixin', meta.mixin-exists('select', 'select'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/skeleton-styles', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../skeleton-styles';
21
+
22
+ $_: get('mixin', meta.mixin-exists('skeleton-styles', 'skeleton-styles'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/slider', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../slider';
21
+
22
+ $_: get('mixin', meta.mixin-exists('slider', 'slider'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,27 @@
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
+ * @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/structured-list', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../structured-list';
22
+
23
+ $_: get('mixin', meta.mixin-exists('structured-list', 'structured-list'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
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
+ * @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/tabs', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../tabs';
22
+
23
+ $_: get('mixin', meta.mixin-exists('tabs', 'tabs'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,25 @@
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
+ * @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/tag', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tag/tag';
21
+ $_: get('mixin', meta.mixin-exists('tag', 'tag'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,26 @@
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
+ * @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/text-area', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../text-area';
21
+
22
+ $_: get('mixin', meta.mixin-exists('text-area', 'text-area'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/text-input', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../text-input';
21
+
22
+ $_: get('mixin', meta.mixin-exists('text-input', 'text-input'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/tile', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tile';
21
+
22
+ $_: get('mixin', meta.mixin-exists('tile', 'tile'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
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
+ * @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/time-picker', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../time-picker';
21
+
22
+ $_: get('mixin', meta.mixin-exists('time-picker', 'time-picker'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,27 @@
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
+ * @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/toggle', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../toggle';
22
+
23
+ $_: get('mixin', meta.mixin-exists('toggle', 'toggle'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,25 @@
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
+ * @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/tooltip', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tooltip/tooltip';
21
+ $_: get('mixin', meta.mixin-exists('tooltip', 'tooltip'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ * @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/treeview', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../treeview';
21
+ $_: get('mixin', meta.mixin-exists('treeview', 'treeview'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,27 @@
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
+ * @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/ui-shell', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../ui-shell';
22
+
23
+ $_: get('mixin', meta.mixin-exists('ui-shell', 'ui-shell'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -5,8 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @use '../../breakpoint' as *;
9
8
  @use '../../config' as *;
9
+ @use '../../breakpoint' as *;
10
10
  @use '../../motion' as *;
11
11
  @use '../../theme' as *;
12
12
  @use '../../spacing' as *;
@@ -15,7 +15,7 @@
15
15
  /// @type List
16
16
  /// @access public
17
17
  /// @group @carbon/grid
18
- $carbon--aspect-ratios: (
18
+ $aspect-ratios: (
19
19
  (16, 9),
20
20
  (9, 16),
21
21
  (2, 1),
@@ -39,7 +39,7 @@ $carbon--aspect-ratios: (
39
39
  /// @param {Number} $height height from an aspect ratio
40
40
  /// @access private
41
41
  /// @group @carbon/grid
42
- @mixin aspect-ratio($aspect-ratios: $carbon--aspect-ratios) {
42
+ @mixin aspect-ratio($aspect-ratios: $aspect-ratios) {
43
43
  .#{$prefix}--aspect-ratio {
44
44
  position: relative;
45
45
  }
@@ -5,8 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @use '../../breakpoint' as *;
9
8
  @use '../../config' as *;
9
+ @use '../../breakpoint' as *;
10
10
  @use '../../motion' as *;
11
11
  @use '../../spacing' as *;
12
12
  @use '../../theme' as *;
@@ -5,9 +5,9 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
+ @use '../../config' as *;
8
9
  @use 'vars' as *;
9
10
  @use 'mixins' as *;
10
- @use '../../config' as *;
11
11
  @use '../../spacing' as *;
12
12
  @use '../../theme' as *;
13
13
  @use '../../type' as *;
@@ -219,8 +219,6 @@
219
219
  color: $text-on-color;
220
220
  }
221
221
 
222
- // TODO: deprecate single dash tertiary
223
- &-tertiary,
224
222
  &--tertiary {
225
223
  @include button-theme(
226
224
  transparent,
@@ -259,8 +257,6 @@
259
257
  }
260
258
  }
261
259
 
262
- // TODO: deprecate single dash ghost
263
- &-ghost,
264
260
  &--ghost {
265
261
  @include button-theme(
266
262
  transparent,
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  @use 'sass:map';
9
+ @use '../../config';
9
10
  @use '../../themes';
10
11
  @use '../../utilities/component-tokens';
11
12