@openfin/ui-library 0.1.32 → 0.1.33-alpha.1640206493
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.
- package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.d.ts +3 -0
- package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.js +21 -0
- package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.d.ts +3 -0
- package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.js +20 -0
- package/dist/components/elements/Icon/openfin/index.d.ts +2 -0
- package/dist/components/elements/Icon/openfin/index.js +2 -0
- package/dist/components/system/ThemeProvider/lib/constants.d.ts +3 -1
- package/dist/components/system/ThemeProvider/lib/constants.js +1 -1
- package/dist/hooks/useTheme.js +3 -3
- package/package.json +1 -1
- /package/dist/components/system/ThemeProvider/{themes → theme}/index.d.ts +0 -0
- /package/dist/components/system/ThemeProvider/{themes → theme}/index.js +0 -0
- /package/dist/components/system/ThemeProvider/{themes → theme}/openfin.d.ts +0 -0
- /package/dist/components/system/ThemeProvider/{themes → theme}/openfin.js +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
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.LightBulbFilledIcon = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const LightBulbFilledIcon = (_a) => {
|
|
17
|
+
var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
|
|
18
|
+
return (jsx_runtime_1.jsxs("svg", Object.assign({ width: "10", height: "12", viewBox: "0 0 10 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [jsx_runtime_1.jsx("path", { d: "M1.83 1.31008C2.24409 0.891667 2.73768 0.560307 3.28174 0.335504C3.82581 0.110701 4.40934 -0.00300333 4.998 0.00108291C6.18628 -0.00310785 7.32905 0.457733 8.182 1.28508C8.59881 1.68719 8.93046 2.16903 9.15723 2.70194C9.384 3.23485 9.50125 3.80793 9.502 4.38708C9.502 5.68008 8.917 6.83008 7.883 7.82508L7.577 9.00008H2.466L2.236 8.03708C1.154 6.90708 0.556 5.81908 0.5 4.58208V4.54408C0.54 3.24808 1.033 2.12108 1.831 1.31108L1.83 1.31008Z", fill: color }, void 0),
|
|
19
|
+
jsx_runtime_1.jsx("path", { d: "M2.7041 10L2.9371 10.978L2.9451 11C3.0451 11.297 3.2371 11.544 3.4791 11.717C3.7301 11.897 4.0371 11.999 4.3611 11.999H4.3631L5.7461 11.995L5.7671 11.993C6.07587 11.9669 6.36913 11.8465 6.6071 11.648C6.8381 11.454 7.0131 11.188 7.0871 10.874L7.3161 10H2.7041V10Z", fill: color }, void 0)] }), void 0));
|
|
20
|
+
};
|
|
21
|
+
exports.LightBulbFilledIcon = LightBulbFilledIcon;
|
|
@@ -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.LightBulbOutlinedIcon = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const LightBulbOutlinedIcon = (_a) => {
|
|
17
|
+
var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
|
|
18
|
+
return (jsx_runtime_1.jsx("svg", Object.assign({ width: "10", height: "12", viewBox: "0 0 10 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: jsx_runtime_1.jsx("path", { d: "M4.99766 0.00100149C3.76866 0.00100149 2.64766 0.482002 1.82966 1.311C1.03166 2.121 0.539657 3.248 0.499657 4.544L0.498657 4.563V4.583C0.555657 5.819 1.15366 6.907 2.23566 8.037L2.93766 10.978L2.94466 11C3.04466 11.297 3.23666 11.544 3.47866 11.717C3.72966 11.897 4.03666 11.999 4.36166 11.999L5.74566 11.995L5.76666 11.993C6.07542 11.9669 6.36869 11.8465 6.60666 11.648C6.83766 11.454 7.01266 11.188 7.08666 10.874L7.88266 7.824C8.91666 6.83 9.50066 5.68 9.50066 4.387C9.49991 3.80785 9.38266 3.23477 9.15589 2.70186C8.92912 2.16895 8.59746 1.68711 8.18066 1.285C7.32796 0.457894 6.18559 -0.00292788 4.99766 0.00100149ZM2.54266 2.013C2.86344 1.68871 3.24596 1.43198 3.66762 1.258C4.08928 1.08401 4.54153 0.996283 4.99766 1C5.92514 0.995784 6.81744 1.35471 7.48366 2C7.80471 2.30904 8.06023 2.67957 8.23496 3.08951C8.40969 3.49945 8.50005 3.94038 8.50066 4.386C8.50066 5.377 8.04766 6.312 7.09666 7.191L6.98866 7.291L6.54266 9H3.49366L3.14466 7.536L3.04766 7.436C1.99966 6.372 1.54766 5.48 1.49866 4.557C1.53666 3.509 1.93266 2.632 2.54266 2.014V2.013ZM3.73266 10H6.28266L6.11766 10.627L6.11466 10.64C6.09211 10.7342 6.03944 10.8185 5.96466 10.88C5.88873 10.9435 5.79595 10.9834 5.69766 10.995L4.36066 11C4.25321 11.0003 4.14833 10.9671 4.06066 10.905C3.9877 10.8536 3.93139 10.782 3.89866 10.699L3.73166 10H3.73266Z", fill: color }, void 0) }), void 0));
|
|
19
|
+
};
|
|
20
|
+
exports.LightBulbOutlinedIcon = LightBulbOutlinedIcon;
|
|
@@ -15,3 +15,5 @@ __exportStar(require("./BellIcon"), exports);
|
|
|
15
15
|
__exportStar(require("./WorkspaceIcon"), exports);
|
|
16
16
|
__exportStar(require("./LockedClosedFilledIcon"), exports);
|
|
17
17
|
__exportStar(require("./MinimizeIcon"), exports);
|
|
18
|
+
__exportStar(require("./LightBulbFilledIcon"), exports);
|
|
19
|
+
__exportStar(require("./LightBulbOutlinedIcon"), exports);
|
|
@@ -27,7 +27,7 @@ export declare const Color: {
|
|
|
27
27
|
readonly openFinLight: "#5254FB";
|
|
28
28
|
readonly openFinLighter: "#5C5EFE";
|
|
29
29
|
readonly openFinLightest: "#6864FF";
|
|
30
|
-
readonly blue: "#
|
|
30
|
+
readonly blue: "#037AC9";
|
|
31
31
|
readonly green: "#35C759";
|
|
32
32
|
readonly orange: "#F48F00";
|
|
33
33
|
readonly red: "#C93400";
|
|
@@ -209,6 +209,8 @@ export declare const IconSet: {
|
|
|
209
209
|
readonly WorkspaceIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
210
210
|
readonly LockedClosedFilledIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
211
211
|
readonly MinimizeIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
212
|
+
readonly LightBulbFilledIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
213
|
+
readonly LightBulbOutlinedIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
212
214
|
readonly ActivityLogIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
213
215
|
readonly AlignBaselineIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
|
214
216
|
readonly AlignBottomIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
|
package/dist/hooks/useTheme.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useTheme = void 0;
|
|
4
|
-
const
|
|
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]:
|
|
9
|
-
[useColorScheme_1.ColorScheme.light]:
|
|
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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|