@openfin/ui-library 0.6.0 → 0.7.0-alpha.1668512924

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.
@@ -0,0 +1,6 @@
1
+ export declare const Fonts: {
2
+ regular: any;
3
+ italic: any;
4
+ semiBold: any;
5
+ semiBoldItalic: any;
6
+ };
@@ -23,7 +23,7 @@ export declare const Color: {
23
23
  readonly darkGray6: "#111214";
24
24
  readonly openFinDarkest: "#3D39CD";
25
25
  readonly openFinDarker: "#4642E0";
26
- readonly openFin: "#504CFF";
26
+ readonly openFin: "#08ABED";
27
27
  readonly openFinLight: "#5254FB";
28
28
  readonly openFinLighter: "#5C5EFE";
29
29
  readonly openFinLightest: "#6864FF";
@@ -1,12 +1,12 @@
1
1
  export declare const ColorScheme: {
2
2
  readonly dark: "dark";
3
3
  readonly light: "light";
4
+ readonly system: "system";
4
5
  };
5
6
  export declare type ColorSchemeType = keyof typeof ColorScheme;
6
- /**
7
- * ## useColorScheme
8
- * Returns system preference for Color Scheme
9
- */
10
- export declare const useColorScheme: ({ defaultScheme, }: {
11
- defaultScheme?: "dark" | "light" | undefined;
12
- }) => ColorSchemeType;
7
+ declare type UseColorSchemeProps = {
8
+ requestedScheme?: ColorSchemeType;
9
+ fallbackScheme?: Exclude<ColorSchemeType, 'system'>;
10
+ };
11
+ export declare const useColorScheme: ({ requestedScheme, fallbackScheme, }: UseColorSchemeProps) => "dark" | "light";
12
+ export {};
@@ -4,6 +4,6 @@ import { ColorScheme } from '../hooks/useColorScheme';
4
4
  import { ThemePaletteSet } from '../components/system/ThemeProvider';
5
5
  export declare const useTheme: ({ themes, scheme, config, }: {
6
6
  themes?: ThemePaletteSet | undefined;
7
- scheme?: "dark" | "light" | undefined;
7
+ scheme?: "dark" | "light" | "system" | undefined;
8
8
  config?: ConfigurationType | undefined;
9
9
  }) => DefaultTheme;
@@ -4,6 +4,7 @@ export * from './components/elements/Badge';
4
4
  export * from './components/elements/Icon';
5
5
  export * from './components/elements/IconWithBadge';
6
6
  export * from './components/elements/Loader';
7
+ export * from './components/input/BaseInput';
7
8
  export * from './components/input/RawInput';
8
9
  export * from './components/input/TextInput';
9
10
  export * from './components/input/NumberInput';
@@ -22,3 +23,4 @@ export * from './hooks/useMediaQuery';
22
23
  export * from './hooks/usePrevious';
23
24
  export * as StoryHelpers from './storybookHelpers';
24
25
  export * from './lib/whenFin';
26
+ export * from './assets/fonts';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.6.0",
4
+ "version": "0.7.0-alpha.1668512924",
5
5
  "main": "dist/openfin.ui.js",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",
@@ -9,7 +9,7 @@
9
9
  "files": [
10
10
  "dist/**/*"
11
11
  ],
12
- "license": "MIT",
12
+ "license": "UNLICENSED",
13
13
  "scripts": {
14
14
  "start": "yarn storybook",
15
15
  "build": "yarn build:clean && yarn build:src",
@@ -70,6 +70,7 @@
70
70
  "eslint-plugin-jest": "^26.5.3",
71
71
  "eslint-plugin-prettier": "^4.0.0",
72
72
  "eslint-plugin-react": "^7.30.0",
73
+ "file-loader": "^6.2.0",
73
74
  "jest": "^28.1.2",
74
75
  "jest-environment-jsdom": "^28.1.2",
75
76
  "prettier": "^2.7.1",
File without changes