@openfin/ui-library 0.0.33

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 (76) hide show
  1. package/README.md +260 -0
  2. package/dist/components/elements/Button/button.d.ts +37 -0
  3. package/dist/components/elements/Button/button.js +91 -0
  4. package/dist/components/elements/Button/button.variants.d.ts +64 -0
  5. package/dist/components/elements/Button/button.variants.js +105 -0
  6. package/dist/components/elements/Button/index.d.ts +2 -0
  7. package/dist/components/elements/Button/index.js +14 -0
  8. package/dist/components/elements/Icon/icon.d.ts +15 -0
  9. package/dist/components/elements/Icon/icon.js +56 -0
  10. package/dist/components/elements/Icon/icon.variants.d.ts +28 -0
  11. package/dist/components/elements/Icon/icon.variants.js +60 -0
  12. package/dist/components/elements/Icon/index.d.ts +1 -0
  13. package/dist/components/elements/Icon/index.js +13 -0
  14. package/dist/components/elements/Input/index.d.ts +1 -0
  15. package/dist/components/elements/Input/index.js +13 -0
  16. package/dist/components/elements/Input/input.d.ts +8 -0
  17. package/dist/components/elements/Input/input.js +26 -0
  18. package/dist/components/elements/Toggle/index.d.ts +1 -0
  19. package/dist/components/elements/Toggle/index.js +13 -0
  20. package/dist/components/elements/Toggle/toggle.d.ts +10 -0
  21. package/dist/components/elements/Toggle/toggle.js +111 -0
  22. package/dist/components/elements/Toggle/toggle.variants.d.ts +26 -0
  23. package/dist/components/elements/Toggle/toggle.variants.js +62 -0
  24. package/dist/components/layout/Box/box.d.ts +27 -0
  25. package/dist/components/layout/Box/box.js +42 -0
  26. package/dist/components/layout/Box/index.d.ts +1 -0
  27. package/dist/components/layout/Box/index.js +13 -0
  28. package/dist/components/layout/Box/types.d.ts +7 -0
  29. package/dist/components/layout/Box/types.js +2 -0
  30. package/dist/components/system/GlobalStyles/globalStyles.d.ts +1 -0
  31. package/dist/components/system/GlobalStyles/globalStyles.js +54 -0
  32. package/dist/components/system/GlobalStyles/index.d.ts +1 -0
  33. package/dist/components/system/GlobalStyles/index.js +13 -0
  34. package/dist/components/system/ThemeProvider/index.d.ts +6 -0
  35. package/dist/components/system/ThemeProvider/index.js +18 -0
  36. package/dist/components/system/ThemeProvider/lib/config.d.ts +7 -0
  37. package/dist/components/system/ThemeProvider/lib/config.js +9 -0
  38. package/dist/components/system/ThemeProvider/lib/constants.d.ts +526 -0
  39. package/dist/components/system/ThemeProvider/lib/constants.js +269 -0
  40. package/dist/components/system/ThemeProvider/lib/font-face-base64.d.ts +2 -0
  41. package/dist/components/system/ThemeProvider/lib/font-face-base64.js +71 -0
  42. package/dist/components/system/ThemeProvider/lib/font-face-cdn.d.ts +2 -0
  43. package/dist/components/system/ThemeProvider/lib/font-face-cdn.js +48 -0
  44. package/dist/components/system/ThemeProvider/lib/helpers.d.ts +19 -0
  45. package/dist/components/system/ThemeProvider/lib/helpers.js +31 -0
  46. package/dist/components/system/ThemeProvider/lib/interface.d.ts +25 -0
  47. package/dist/components/system/ThemeProvider/lib/interface.js +2 -0
  48. package/dist/components/system/ThemeProvider/lib/palette.d.ts +28 -0
  49. package/dist/components/system/ThemeProvider/lib/palette.js +31 -0
  50. package/dist/components/system/ThemeProvider/lib/types.d.ts +49 -0
  51. package/dist/components/system/ThemeProvider/lib/types.js +2 -0
  52. package/dist/components/system/ThemeProvider/themeProvider.d.ts +20 -0
  53. package/dist/components/system/ThemeProvider/themeProvider.js +20 -0
  54. package/dist/components/system/ThemeProvider/themes/index.d.ts +1 -0
  55. package/dist/components/system/ThemeProvider/themes/index.js +13 -0
  56. package/dist/components/system/ThemeProvider/themes/openfin.d.ts +9 -0
  57. package/dist/components/system/ThemeProvider/themes/openfin.js +28 -0
  58. package/dist/components/typography/Heading/heading.d.ts +1608 -0
  59. package/dist/components/typography/Heading/heading.js +64 -0
  60. package/dist/components/typography/Heading/index.d.ts +1 -0
  61. package/dist/components/typography/Heading/index.js +13 -0
  62. package/dist/components/typography/Text/index.d.ts +1 -0
  63. package/dist/components/typography/Text/index.js +13 -0
  64. package/dist/components/typography/Text/text.d.ts +15 -0
  65. package/dist/components/typography/Text/text.js +20 -0
  66. package/dist/hooks/useColorScheme.d.ts +12 -0
  67. package/dist/hooks/useColorScheme.js +28 -0
  68. package/dist/hooks/useMediaQuery.d.ts +12 -0
  69. package/dist/hooks/useMediaQuery.js +39 -0
  70. package/dist/hooks/useTheme.d.ts +9 -0
  71. package/dist/hooks/useTheme.js +32 -0
  72. package/dist/index.d.ts +12 -0
  73. package/dist/index.js +37 -0
  74. package/dist/storybookHelpers.d.ts +84 -0
  75. package/dist/storybookHelpers.js +55 -0
  76. package/package.json +133 -0
@@ -0,0 +1,2 @@
1
+ declare const _default: import("styled-components").FlattenSimpleInterpolation;
2
+ export default _default;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styled_components_1 = require("styled-components");
4
+ const constants_1 = require("./constants");
5
+ exports.default = styled_components_1.css `
6
+ @font-face {
7
+ font-family: 'Inter';
8
+ src: url('//cdn.openfin.co/fonts/inter/Inter-Regular.woff2?v3.15')
9
+ format('woff2'),
10
+ url('//cdn.openfin.co/fonts/inter/Inter-Regular.woff?v3.15')
11
+ format('woff');
12
+ font-weight: ${constants_1.FontWeight.normal};
13
+ font-style: normal;
14
+ font-display: swap;
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'Inter';
19
+ src: url('//cdn.openfin.co/fonts/inter/Inter-Italic.woff2?v3.15')
20
+ format('woff2'),
21
+ url('//cdn.openfin.co/fonts/inter/Inter-Italic.woff?v3.15') format('woff');
22
+ font-weight: ${constants_1.FontWeight.normal};
23
+ font-style: italic;
24
+ font-display: swap;
25
+ }
26
+
27
+ @font-face {
28
+ font-family: 'Inter';
29
+ src: url('//cdn.openfin.co/fonts/inter/Inter-SemiBold.woff2?v3.15')
30
+ format('woff2'),
31
+ url('//cdn.openfin.co/fonts/inter/Inter-SemiBold.woff?v3.15')
32
+ format('woff');
33
+ font-weight: ${constants_1.FontWeight.bold};
34
+ font-style: normal;
35
+ font-display: swap;
36
+ }
37
+
38
+ @font-face {
39
+ font-family: 'Inter';
40
+ src: url('//cdn.openfin.co/fonts/inter/Inter-SemiBoldItalic.woff2?v3.15')
41
+ format('woff2'),
42
+ url('//cdn.openfin.co/fonts/inter/Inter-SemiBoldItalic.woff?v3.15')
43
+ format('woff');
44
+ font-weight: ${constants_1.FontWeight.bold};
45
+ font-style: italic;
46
+ font-display: swap;
47
+ }
48
+ `;
@@ -0,0 +1,19 @@
1
+ import { DefaultTheme, StyledProps } from 'styled-components';
2
+ export declare type ComponentVariants = {
3
+ [key: string]: {
4
+ [key: string]: any;
5
+ };
6
+ };
7
+ /**
8
+ * Get the CSS associated with a variant key
9
+ * @param variants -- Component variants data structure
10
+ * @param variantProp -- The key (enum) for looking up the variant value
11
+ * @todo This needs to be typed better
12
+ */
13
+ export declare const getVariantCSS: (variants: ComponentVariants, variantProp: string) => (props: StyledProps<any>) => any;
14
+ /**
15
+ * Lazy Load font-faces based on Theme Configuration
16
+ */
17
+ export declare const getFontFaces: ({ theme }: {
18
+ theme: DefaultTheme;
19
+ }) => import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getFontFaces = exports.getVariantCSS = void 0;
7
+ const font_face_base64_1 = __importDefault(require("./font-face-base64"));
8
+ const font_face_cdn_1 = __importDefault(require("./font-face-cdn"));
9
+ /**
10
+ * Get the CSS associated with a variant key
11
+ * @param variants -- Component variants data structure
12
+ * @param variantProp -- The key (enum) for looking up the variant value
13
+ * @todo This needs to be typed better
14
+ */
15
+ const getVariantCSS = (variants, variantProp) => (props) => {
16
+ return variants[variantProp][props[variantProp]];
17
+ };
18
+ exports.getVariantCSS = getVariantCSS;
19
+ /**
20
+ * Lazy Load font-faces based on Theme Configuration
21
+ */
22
+ const getFontFaces = ({ theme }) => {
23
+ switch (theme._config.fontLoading) {
24
+ case 'base64':
25
+ return font_face_base64_1.default;
26
+ case 'cdn':
27
+ default:
28
+ return font_face_cdn_1.default;
29
+ }
30
+ };
31
+ exports.getFontFaces = getFontFaces;
@@ -0,0 +1,25 @@
1
+ import { Color, FontSize, FontWeight, IconSize, LineHeight, Radius, Shadow, Transition, Unit, UnitPx } from './constants';
2
+ import { ConfigurationType } from './config';
3
+ import { Palette } from './palette';
4
+ declare module 'styled-components' {
5
+ interface DefaultTheme {
6
+ /**
7
+ * Register top-level theme keys here and their types
8
+ * to construct the Theme schema from discrete parts
9
+ * - Provides some validation when providing an external theme
10
+ * - Enables auto-completion in styled components.
11
+ */
12
+ _config: ConfigurationType;
13
+ _color: typeof Color;
14
+ fontSize: typeof FontSize;
15
+ fontWeight: typeof FontWeight;
16
+ lineHeight: typeof LineHeight;
17
+ iconSize: typeof IconSize;
18
+ radius: typeof Radius;
19
+ shadow: typeof Shadow;
20
+ transition: typeof Transition;
21
+ unit: typeof Unit;
22
+ px: typeof UnitPx;
23
+ palette: Record<keyof typeof Palette, string>;
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Theme Palette -- Canonical list of names we use to reference color values within a theme
3
+ */
4
+ export declare const Palette: {
5
+ readonly surfaceBottom: "surfaceBottom";
6
+ readonly surfaceMiddle: "surfaceMiddle";
7
+ readonly surfaceTop: "surfaceTop";
8
+ readonly primaryBg: "primaryBg";
9
+ readonly primaryColor: "primaryColor";
10
+ readonly primaryActive: "primaryActive";
11
+ readonly primaryDisabledBg: "primaryDisabledBg";
12
+ readonly primaryDisabledColor: "primaryDisabledColor";
13
+ readonly secondaryBg: "secondaryBg";
14
+ readonly secondaryColor: "secondaryColor";
15
+ readonly secondaryActive: "secondaryActive";
16
+ readonly secondaryDisabledBg: "secondaryDisabledBg";
17
+ readonly secondaryDisabledColor: "secondaryDisabledColor";
18
+ readonly tertiaryBg: "tertiaryBg";
19
+ readonly tertiaryColor: "tertiaryColor";
20
+ readonly tertiaryActive: "tertiaryActive";
21
+ readonly tertiaryDisabledBg: "tertiaryDisabledBg";
22
+ readonly tertiaryDisabledColor: "tertiaryDisabledColor";
23
+ readonly textDefault: "textDefault";
24
+ readonly textHelp: "textHelp";
25
+ readonly textDisabled: "textDisabled";
26
+ readonly textError: "textError";
27
+ readonly textPlaceholder: "textPlaceholder";
28
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Palette = void 0;
4
+ /**
5
+ * Theme Palette -- Canonical list of names we use to reference color values within a theme
6
+ */
7
+ exports.Palette = {
8
+ surfaceBottom: 'surfaceBottom',
9
+ surfaceMiddle: 'surfaceMiddle',
10
+ surfaceTop: 'surfaceTop',
11
+ primaryBg: 'primaryBg',
12
+ primaryColor: 'primaryColor',
13
+ primaryActive: 'primaryActive',
14
+ primaryDisabledBg: 'primaryDisabledBg',
15
+ primaryDisabledColor: 'primaryDisabledColor',
16
+ secondaryBg: 'secondaryBg',
17
+ secondaryColor: 'secondaryColor',
18
+ secondaryActive: 'secondaryActive',
19
+ secondaryDisabledBg: 'secondaryDisabledBg',
20
+ secondaryDisabledColor: 'secondaryDisabledColor',
21
+ tertiaryBg: 'tertiaryBg',
22
+ tertiaryColor: 'tertiaryColor',
23
+ tertiaryActive: 'tertiaryActive',
24
+ tertiaryDisabledBg: 'tertiaryDisabledBg',
25
+ tertiaryDisabledColor: 'tertiaryDisabledColor',
26
+ textDefault: 'textDefault',
27
+ textHelp: 'textHelp',
28
+ textDisabled: 'textDisabled',
29
+ textError: 'textError',
30
+ textPlaceholder: 'textPlaceholder',
31
+ };
@@ -0,0 +1,49 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { Color, FontSize, FontStack, FontWeight, IconSet, IconSize, LineHeight, Radius, Shadow, Size, Transition, Typography, Unit, UnitPx } from './constants';
3
+ import { Palette } from './palette';
4
+ export declare type ColorType = keyof typeof Color;
5
+ export declare type FontSizeType = keyof typeof FontSize;
6
+ export declare type FontStackType = keyof typeof FontStack;
7
+ export declare type FontWeightType = keyof typeof FontWeight;
8
+ export declare type IconSizeType = keyof typeof IconSize;
9
+ export declare type IconType = keyof typeof IconSet;
10
+ export declare type LineHeightType = keyof typeof LineHeight;
11
+ export declare type RadiusType = keyof typeof Radius;
12
+ export declare type ShadowType = keyof typeof Shadow;
13
+ export declare type SizeType = keyof typeof Size;
14
+ export declare type TransitionType = keyof typeof Transition;
15
+ export declare type TypographyType = keyof typeof Typography;
16
+ export declare type UnitPxType = keyof typeof UnitPx;
17
+ export declare type UnitType = keyof typeof Unit;
18
+ export declare type ThemeSet = {
19
+ light: DefaultTheme;
20
+ dark: DefaultTheme;
21
+ };
22
+ export declare type ThemePaletteSet = {
23
+ light: {
24
+ palette: Record<keyof typeof Palette, string>;
25
+ };
26
+ dark: {
27
+ palette: Record<keyof typeof Palette, string>;
28
+ };
29
+ };
30
+ /**
31
+ * # Utility Types
32
+ * ========================================================
33
+ */
34
+ /**
35
+ * ## ValueOf Type
36
+ *
37
+ * Convenience for ensure value is in an Object, let built-in `keyof`
38
+ * @example ValueOf<typeof someObject>
39
+ * @link https://stackoverflow.com/questions/49285864/is-there-a-valueof-similar-to-keyof-in-typescript
40
+ */
41
+ export declare type ValueOf<T> = T[keyof T];
42
+ /**
43
+ * Join a string tuple to a string with a separator.
44
+ * @example
45
+ * const array = ['hello', 'world'] as const;
46
+ * type MyArrayString = StringTupleJoin<typeof array, ', '>;
47
+ * const str: MyArrayString = "hello, world";
48
+ */
49
+ export declare type StringTupleJoin<T extends readonly string[], Separator extends string> = T extends readonly [string, ...infer Tail] ? Tail extends [string, ...string[]] ? `${T[0]}${Separator}${StringTupleJoin<Tail, Separator>}` : `${T[0]}` : never;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { FC, ReactChild } from 'react';
2
+ import { ColorScheme } from '../../../hooks/useColorScheme';
3
+ import { ConfigurationType } from './lib/config';
4
+ import { ThemePaletteSet } from './lib/types';
5
+ export declare type ThemeProviderProps = {
6
+ children: ReactChild;
7
+ themes?: ThemePaletteSet;
8
+ scheme?: keyof typeof ColorScheme;
9
+ config?: ConfigurationType;
10
+ includeGlobalStyles?: false;
11
+ };
12
+ /**
13
+ * ## OpenFin ThemeProvider
14
+ * - Extends StyledComponents ThemeProvider
15
+ * - Applies built-in OpenFin themes automatically using System Preference for Color Scheme
16
+ * - Includes global stylesheet with typography, reset, and global css vars
17
+ * - Accepts Light / Dark Mode scheme override
18
+ * - Accepts Light / Dark Mode palette override
19
+ */
20
+ export declare const ThemeProvider: FC<ThemeProviderProps>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThemeProvider = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const styled_components_1 = require("styled-components");
6
+ const useTheme_1 = require("../../../hooks/useTheme");
7
+ const GlobalStyles_1 = require("../GlobalStyles");
8
+ /**
9
+ * ## OpenFin ThemeProvider
10
+ * - Extends StyledComponents ThemeProvider
11
+ * - Applies built-in OpenFin themes automatically using System Preference for Color Scheme
12
+ * - Includes global stylesheet with typography, reset, and global css vars
13
+ * - Accepts Light / Dark Mode scheme override
14
+ * - Accepts Light / Dark Mode palette override
15
+ */
16
+ const ThemeProvider = ({ children, themes, scheme, config, includeGlobalStyles = true, }) => {
17
+ const currentTheme = useTheme_1.useTheme({ themes, scheme, config });
18
+ return (jsx_runtime_1.jsxs(styled_components_1.ThemeProvider, Object.assign({ theme: currentTheme }, { children: [includeGlobalStyles && jsx_runtime_1.jsx(GlobalStyles_1.GlobalStyles, {}, void 0), children] }), void 0));
19
+ };
20
+ exports.ThemeProvider = ThemeProvider;
@@ -0,0 +1 @@
1
+ export * from './openfin';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./openfin"), exports);
@@ -0,0 +1,9 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ /**
3
+ * Light Theme
4
+ */
5
+ export declare const OpenFinLightTheme: DefaultTheme;
6
+ /**
7
+ * Dark Theme
8
+ */
9
+ export declare const OpenFinDarkTheme: DefaultTheme;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenFinDarkTheme = exports.OpenFinLightTheme = void 0;
4
+ const config_1 = require("../lib/config");
5
+ const constants_1 = require("../lib/constants");
6
+ const palette_1 = require("../lib/palette");
7
+ const base = {
8
+ _config: config_1.Configuration,
9
+ _color: constants_1.Color,
10
+ fontSize: constants_1.FontSize,
11
+ fontWeight: constants_1.FontWeight,
12
+ lineHeight: constants_1.LineHeight,
13
+ iconSize: constants_1.IconSize,
14
+ radius: constants_1.Radius,
15
+ shadow: constants_1.Shadow,
16
+ transition: constants_1.Transition,
17
+ unit: constants_1.Unit,
18
+ px: constants_1.UnitPx,
19
+ };
20
+ const sharedPalette = {};
21
+ /**
22
+ * Light Theme
23
+ */
24
+ exports.OpenFinLightTheme = Object.assign(Object.assign({}, base), { palette: Object.assign(Object.assign({}, sharedPalette), { [palette_1.Palette.surfaceBottom]: constants_1.Color.lightGray3, [palette_1.Palette.surfaceMiddle]: constants_1.Color.lightGray2, [palette_1.Palette.surfaceTop]: constants_1.Color.lightGray1, [palette_1.Palette.primaryBg]: constants_1.Color.openFin, [palette_1.Palette.primaryColor]: constants_1.Color.white, [palette_1.Palette.primaryActive]: constants_1.Color.openFin, [palette_1.Palette.primaryDisabledBg]: constants_1.Color.lightGray4, [palette_1.Palette.primaryDisabledColor]: constants_1.Color.lightGray3, [palette_1.Palette.secondaryBg]: constants_1.Color.transparent, [palette_1.Palette.secondaryColor]: constants_1.Color.darkGray6, [palette_1.Palette.secondaryActive]: constants_1.Color.darkGray6, [palette_1.Palette.secondaryDisabledBg]: constants_1.Color.transparent, [palette_1.Palette.secondaryDisabledColor]: constants_1.Color.darkGray3, [palette_1.Palette.tertiaryBg]: constants_1.Color.darkGray6, [palette_1.Palette.tertiaryColor]: constants_1.Color.white, [palette_1.Palette.tertiaryActive]: constants_1.Color.darkGray6, [palette_1.Palette.tertiaryDisabledBg]: constants_1.Color.darkGray4, [palette_1.Palette.tertiaryDisabledColor]: constants_1.Color.darkGray3, [palette_1.Palette.textDefault]: constants_1.Color.darkGray6, [palette_1.Palette.textHelp]: constants_1.Color.darkGray4, [palette_1.Palette.textDisabled]: constants_1.Color.darkGray4, [palette_1.Palette.textError]: constants_1.Color.accent4, [palette_1.Palette.textPlaceholder]: constants_1.Color.darkGray4 }) });
25
+ /**
26
+ * Dark Theme
27
+ */
28
+ exports.OpenFinDarkTheme = Object.assign(Object.assign({}, base), { palette: Object.assign(Object.assign({}, sharedPalette), { [palette_1.Palette.surfaceBottom]: constants_1.Color.darkGray6, [palette_1.Palette.surfaceMiddle]: constants_1.Color.darkGray5, [palette_1.Palette.surfaceTop]: constants_1.Color.darkGray3, [palette_1.Palette.primaryBg]: constants_1.Color.openFin, [palette_1.Palette.primaryColor]: constants_1.Color.white, [palette_1.Palette.primaryActive]: constants_1.Color.openFin, [palette_1.Palette.primaryDisabledBg]: constants_1.Color.darkGray3, [palette_1.Palette.primaryDisabledColor]: constants_1.Color.darkGray5, [palette_1.Palette.secondaryBg]: constants_1.Color.transparent, [palette_1.Palette.secondaryColor]: constants_1.Color.white, [palette_1.Palette.secondaryActive]: constants_1.Color.white, [palette_1.Palette.secondaryDisabledBg]: constants_1.Color.transparent, [palette_1.Palette.secondaryDisabledColor]: constants_1.Color.darkGray3, [palette_1.Palette.tertiaryBg]: constants_1.Color.white, [palette_1.Palette.tertiaryColor]: constants_1.Color.darkGray6, [palette_1.Palette.tertiaryActive]: constants_1.Color.white, [palette_1.Palette.tertiaryDisabledBg]: constants_1.Color.darkGray3, [palette_1.Palette.tertiaryDisabledColor]: constants_1.Color.darkGray5, [palette_1.Palette.textDefault]: constants_1.Color.white, [palette_1.Palette.textHelp]: constants_1.Color.lightGray2, [palette_1.Palette.textDisabled]: constants_1.Color.lightGray2, [palette_1.Palette.textError]: constants_1.Color.accent4, [palette_1.Palette.textPlaceholder]: constants_1.Color.lightGray2 }) });