Skip to content

Commit fb9b1e0

Browse files
authored
Fix export of color helpers from this package (#34)
* Fix export of color helpers from this package * Fix storybook path to color module
1 parent ce31a33 commit fb9b1e0

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed
File renamed without changes.

packages/components/src/design-tokens.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ import {
2828
errorFillAlgorithm,
2929
errorForegroundAlgorithm,
3030
foregroundOnErrorAlgorithm
31-
} from './colors';
31+
} from './color';
3232

3333
// Export design token from @microsoft/fast-components
3434
// to encapsulate them.
3535

3636
export {
37+
accentColor,
3738
accentFillActive,
3839
accentFillActiveDelta,
3940
accentFillFocus,
@@ -81,7 +82,7 @@ export {
8182
foregroundOnAccentRest,
8283
foregroundOnAccentRestLarge,
8384
InteractiveColorRecipe,
84-
InteractiveSwatchSet,
85+
neutralColor,
8586
neutralFillActive,
8687
neutralFillActiveDelta,
8788
neutralFillFocus,

packages/components/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
export { addJupyterLabThemeChangeListener } from './utilities/theme/applyTheme';
55

6+
export * from './color';
67
export * from './design-tokens';
78
export * from './jupyter-design-system';
89
export * from './custom-elements';

packages/components/src/search/search.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
FoundationElementTemplate,
1010
TextFieldOptions
1111
} from '@microsoft/fast-foundation';
12-
import { Swatch } from '../colors';
12+
import { Swatch } from '../color';
1313
import {
1414
bodyFont,
1515
controlCornerRadius,

packages/components/src/tree-item/tree-item.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
TreeItemOptions
1515
} from '@microsoft/fast-foundation';
1616
import { SystemColors } from '@microsoft/fast-web-utilities';
17-
import type { Swatch } from '../colors';
17+
import type { Swatch } from '../color';
1818
import {
1919
accentFillFocus,
2020
accentForegroundRest,

packages/components/src/utilities/storybook/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { icon, library } from '@fortawesome/fontawesome-svg-core';
55
import * as icons from '@fortawesome/free-solid-svg-icons';
66
import { parseColor } from '@microsoft/fast-colors';
7-
import { isDark, PaletteRGB, StandardLuminance, SwatchRGB } from '../../colors';
7+
import { isDark, PaletteRGB, StandardLuminance, SwatchRGB } from '../../color';
88
import { accentPalette, baseLayerLuminance } from '../../design-tokens';
99

1010
/**

packages/components/src/utilities/theme/applyTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
StandardLuminance,
1515
Swatch,
1616
SwatchRGB
17-
} from '../../colors';
17+
} from '../../color';
1818
import {
1919
accentFillHoverDelta,
2020
accentPalette,

0 commit comments

Comments
 (0)