@openfin/ui-library 0.1.33 → 0.1.34-alpha.1641417639

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.
@@ -37,8 +37,8 @@ const Button = (_a) => {
37
37
  exports.Button = Button;
38
38
  const ButtonElement = styled_components_1.default.button `
39
39
  /* Default values that get overridden by variants */
40
- background: ${({ theme }) => theme.palette.inputBg};
41
- border: 1px solid ${({ theme }) => theme.palette.inputBg};
40
+ background: ${({ theme }) => theme.palette.inputBackground};
41
+ border: 1px solid ${({ theme }) => theme.palette.inputBackground};
42
42
  color: ${({ theme }) => theme.palette.brandPrimaryText};
43
43
 
44
44
  /* Inject variants */
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '@modulz/radix-icons/dist/types';
3
+ export declare const FilterIcon: ({ color, ...props }: IconProps) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.FilterIcon = void 0;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const FilterIcon = (_a) => {
17
+ var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
18
+ return (jsx_runtime_1.jsx("svg", Object.assign({ width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: jsx_runtime_1.jsx("path", { d: "M4 6.5C4 6.36739 4.05268 6.24021 4.14645 6.14645C4.24021 6.05268 4.36739 6 4.5 6H7.5C7.63261 6 7.75979 6.05268 7.85355 6.14645C7.94732 6.24021 8 6.36739 8 6.5C8 6.63261 7.94732 6.75979 7.85355 6.85355C7.75979 6.94732 7.63261 7 7.5 7H4.5C4.36739 7 4.24021 6.94732 4.14645 6.85355C4.05268 6.75979 4 6.63261 4 6.5ZM2 3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H9.5C9.63261 3 9.75979 3.05268 9.85355 3.14645C9.94732 3.24021 10 3.36739 10 3.5C10 3.63261 9.94732 3.75979 9.85355 3.85355C9.75979 3.94732 9.63261 4 9.5 4H2.5C2.36739 4 2.24021 3.94732 2.14645 3.85355C2.05268 3.75979 2 3.63261 2 3.5ZM0 0.5C0 0.367392 0.0526785 0.240215 0.146447 0.146447C0.240215 0.0526785 0.367392 0 0.5 0H11.5C11.6326 0 11.7598 0.0526785 11.8536 0.146447C11.9473 0.240215 12 0.367392 12 0.5C12 0.632608 11.9473 0.759785 11.8536 0.853553C11.7598 0.947321 11.6326 1 11.5 1H0.5C0.367392 1 0.240215 0.947321 0.146447 0.853553C0.0526785 0.759785 0 0.632608 0 0.5Z", fill: color }, void 0) }), void 0));
19
+ };
20
+ exports.FilterIcon = FilterIcon;
@@ -5,3 +5,4 @@ export * from './LockedClosedFilledIcon';
5
5
  export * from './MinimizeIcon';
6
6
  export * from './LightBulbFilledIcon';
7
7
  export * from './LightBulbOutlinedIcon';
8
+ export * from './FilterIcon';
@@ -17,3 +17,4 @@ __exportStar(require("./LockedClosedFilledIcon"), exports);
17
17
  __exportStar(require("./MinimizeIcon"), exports);
18
18
  __exportStar(require("./LightBulbFilledIcon"), exports);
19
19
  __exportStar(require("./LightBulbOutlinedIcon"), exports);
20
+ __exportStar(require("./FilterIcon"), exports);
@@ -62,7 +62,7 @@ const InputContainer = styled_components_1.default(Box_1.Box) `
62
62
  exports.StyledInputField = styled_components_1.default.input `
63
63
  background: ${({ theme }) => theme.palette.background5};
64
64
  border: 1px solid ${({ theme }) => theme.palette.background6};
65
- border-color: ${({ theme, status }) => ThemeProvider_1.getStatusColor(theme, status, 'inputBg')};
65
+ border-color: ${({ theme, status }) => ThemeProvider_1.getStatusColor(theme, status, 'inputBackground')};
66
66
  border-radius: ${({ theme }) => theme.radius.small};
67
67
  box-shadow: ${({ theme }) => theme.shadow.base};
68
68
  color: ${({ theme }) => theme.palette.inputColor};
@@ -211,6 +211,7 @@ export declare const IconSet: {
211
211
  readonly MinimizeIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
212
212
  readonly LightBulbFilledIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
213
213
  readonly LightBulbOutlinedIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
214
+ readonly FilterIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
214
215
  readonly ActivityLogIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
215
216
  readonly AlignBaselineIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
216
217
  readonly AlignBottomIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
@@ -28,4 +28,4 @@ export declare const getFontFaces: ({ theme }: {
28
28
  * Retrive the correct palette value based on the provided status type.
29
29
  * Falls back to optionally provided palette key, then to 'inherit'.
30
30
  */
31
- export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType | undefined, defaultKey?: "background1" | "background2" | "background3" | "background4" | "background5" | "background6" | "brandPrimary" | "brandSecondary" | "brandPrimaryActive" | "brandPrimaryHover" | "brandPrimaryFocused" | "brandPrimaryText" | "brandSecondaryActive" | "brandSecondaryHover" | "brandSecondaryFocused" | "brandSecondaryText" | "inputBg" | "inputColor" | "inputPlaceholder" | "inputDisabled" | "inputFocused" | "statusSuccess" | "statusWarning" | "statusCritical" | "statusActive" | "textDefault" | "textHelp" | "textInactive" | undefined) => string;
31
+ export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType | undefined, defaultKey?: "background1" | "background2" | "background3" | "background4" | "background5" | "background6" | "brandPrimary" | "brandSecondary" | "brandPrimaryActive" | "brandPrimaryHover" | "brandPrimaryFocused" | "brandPrimaryText" | "brandSecondaryActive" | "brandSecondaryHover" | "brandSecondaryFocused" | "brandSecondaryText" | "inputBackground" | "inputColor" | "inputPlaceholder" | "inputDisabled" | "inputFocused" | "statusSuccess" | "statusWarning" | "statusCritical" | "statusActive" | "textDefault" | "textHelp" | "textInactive" | undefined) => string;
@@ -18,7 +18,7 @@ export declare const Palette: {
18
18
  readonly brandSecondaryHover: "brandSecondaryHover";
19
19
  readonly brandSecondaryFocused: "brandSecondaryFocused";
20
20
  readonly brandSecondaryText: "brandSecondaryText";
21
- readonly inputBg: "inputBg";
21
+ readonly inputBackground: "inputBackground";
22
22
  readonly inputColor: "inputColor";
23
23
  readonly inputPlaceholder: "inputPlaceholder";
24
24
  readonly inputDisabled: "inputDisabled";
@@ -23,7 +23,7 @@ exports.Palette = {
23
23
  brandSecondaryFocused: 'brandSecondaryFocused',
24
24
  brandSecondaryText: 'brandSecondaryText',
25
25
  // --END
26
- inputBg: 'inputBg',
26
+ inputBackground: 'inputBackground',
27
27
  inputColor: 'inputColor',
28
28
  inputPlaceholder: 'inputPlaceholder',
29
29
  inputDisabled: 'inputDisabled',
@@ -22,7 +22,7 @@ exports.OpenFinLightTheme = createTheme_1.createTheme(Object.assign(Object.assig
22
22
  // Brand
23
23
  [palette_1.Palette.brandSecondary]: constants_1.Color.darkGray5,
24
24
  // Inputs
25
- [palette_1.Palette.inputBg]: constants_1.Color.lightGray3, [palette_1.Palette.inputColor]: constants_1.Color.darkGray5, [palette_1.Palette.inputPlaceholder]: constants_1.Color.darkGray2, [palette_1.Palette.inputDisabled]: constants_1.Color.neutralGray, [palette_1.Palette.inputFocused]: constants_1.Color.lightGray5,
25
+ [palette_1.Palette.inputBackground]: constants_1.Color.lightGray3, [palette_1.Palette.inputColor]: constants_1.Color.darkGray5, [palette_1.Palette.inputPlaceholder]: constants_1.Color.darkGray2, [palette_1.Palette.inputDisabled]: constants_1.Color.neutralGray, [palette_1.Palette.inputFocused]: constants_1.Color.lightGray5,
26
26
  // Text
27
27
  [palette_1.Palette.textDefault]: constants_1.Color.darkGray5, [palette_1.Palette.textHelp]: constants_1.Color.darkGray3, [palette_1.Palette.textInactive]: constants_1.Color.neutralGray }));
28
28
  /**
@@ -34,6 +34,6 @@ exports.OpenFinDarkTheme = createTheme_1.createTheme(Object.assign(Object.assign
34
34
  // Brand
35
35
  [palette_1.Palette.brandSecondary]: constants_1.Color.darkGray2,
36
36
  // Inputs
37
- [palette_1.Palette.inputBg]: constants_1.Color.darkGray1, [palette_1.Palette.inputColor]: constants_1.Color.white, [palette_1.Palette.inputPlaceholder]: constants_1.Color.lightGray5, [palette_1.Palette.inputDisabled]: constants_1.Color.neutralGray, [palette_1.Palette.inputFocused]: constants_1.Color.lightGray5,
37
+ [palette_1.Palette.inputBackground]: constants_1.Color.darkGray1, [palette_1.Palette.inputColor]: constants_1.Color.white, [palette_1.Palette.inputPlaceholder]: constants_1.Color.lightGray5, [palette_1.Palette.inputDisabled]: constants_1.Color.neutralGray, [palette_1.Palette.inputFocused]: constants_1.Color.lightGray5,
38
38
  // Text
39
39
  [palette_1.Palette.textDefault]: constants_1.Color.white, [palette_1.Palette.textHelp]: constants_1.Color.lightGray5, [palette_1.Palette.textInactive]: constants_1.Color.neutralGray }));
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useTheme = void 0;
4
- const themes_1 = require("../components/system/ThemeProvider/themes");
4
+ const theme_1 = require("../components/system/ThemeProvider/theme");
5
5
  const useColorScheme_1 = require("../hooks/useColorScheme");
6
6
  const ThemeProvider_1 = require("../components/system/ThemeProvider");
7
7
  const Themes = {
8
- [useColorScheme_1.ColorScheme.dark]: themes_1.OpenFinDarkTheme,
9
- [useColorScheme_1.ColorScheme.light]: themes_1.OpenFinLightTheme,
8
+ [useColorScheme_1.ColorScheme.dark]: theme_1.OpenFinDarkTheme,
9
+ [useColorScheme_1.ColorScheme.light]: theme_1.OpenFinLightTheme,
10
10
  };
11
11
  const useTheme = ({ themes, scheme, config, }) => {
12
12
  // 1. Get Current Scheme
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.1.33",
4
+ "version": "0.1.34-alpha.1641417639",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",