@openfin/ui-library 0.1.39 → 0.1.40-alpha.1656492755

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
+ /// <reference types="react" />
2
+ import { IconProps } from '@modulz/radix-icons/dist/types';
3
+ /**
4
+ * Floppy Disc Icon
5
+ */
6
+ export declare const FloppyDiskIcon: ({ color, ...props }: IconProps) => JSX.Element;
@@ -11,13 +11,13 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.SavePageIcon = void 0;
14
+ exports.FloppyDiskIcon = void 0;
15
15
  const jsx_runtime_1 = require("react/jsx-runtime");
16
16
  /**
17
- * Save Page - Floppy Disc Icon
17
+ * Floppy Disc Icon
18
18
  */
19
- const SavePageIcon = (_a) => {
19
+ const FloppyDiskIcon = (_a) => {
20
20
  var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
21
21
  return (jsx_runtime_1.jsx("svg", Object.assign({ width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: jsx_runtime_1.jsx("path", { d: "M1.875 2.1875C1.875 2.15298 1.90298 2.125 1.9375 2.125H8.23039C8.24697 2.125 8.26287 2.13158 8.27459 2.14331L9.98169 3.85041C9.99341 3.86213 10 3.87803 10 3.89461V10.1875C10 10.222 9.97202 10.25 9.9375 10.25H1.9375C1.90298 10.25 1.875 10.222 1.875 10.1875V2.1875ZM1.9375 1.25C1.41973 1.25 1 1.66973 1 2.1875V10.1875C1 10.7053 1.41973 11.125 1.9375 11.125H9.9375C10.4553 11.125 10.875 10.7053 10.875 10.1875V3.89461C10.875 3.64597 10.7762 3.40751 10.6004 3.23169L8.89331 1.52459C8.71749 1.34877 8.47903 1.25 8.23039 1.25H1.9375ZM2.84924 3.4081C2.84924 3.23754 2.98751 3.09927 3.15807 3.09927H7.4816C7.65215 3.09927 7.79042 3.23754 7.79042 3.4081V4.64339C7.79042 4.81395 7.65215 4.95221 7.4816 4.95221H3.15807C2.98751 4.95221 2.84924 4.81395 2.84924 4.64339V3.4081ZM4.5368 6.63977C4.82638 6.35019 5.21913 6.18751 5.62865 6.18751C6.03818 6.18751 6.43093 6.35019 6.72051 6.63977C7.01009 6.92935 7.17277 7.3221 7.17277 7.73163C7.17277 8.14115 7.01009 8.5339 6.72051 8.82348C6.43093 9.11306 6.03818 9.27574 5.62865 9.27574C5.21913 9.27574 4.82638 9.11306 4.5368 8.82348C4.24722 8.5339 4.08454 8.14115 4.08454 7.73163C4.08454 7.3221 4.24722 6.92935 4.5368 6.63977Z", fill: color, role: "img" }, void 0) }), void 0));
22
22
  };
23
- exports.SavePageIcon = SavePageIcon;
23
+ exports.FloppyDiskIcon = FloppyDiskIcon;
@@ -7,4 +7,4 @@ export * from './LightBulbFilledIcon';
7
7
  export * from './LightBulbOutlinedIcon';
8
8
  export * from './FilterIcon';
9
9
  export * from './BrokenLinkIcon';
10
- export * from './SavePageIcon';
10
+ export * from './FloppyDiskIcon';
@@ -19,4 +19,4 @@ __exportStar(require("./LightBulbFilledIcon"), exports);
19
19
  __exportStar(require("./LightBulbOutlinedIcon"), exports);
20
20
  __exportStar(require("./FilterIcon"), exports);
21
21
  __exportStar(require("./BrokenLinkIcon"), exports);
22
- __exportStar(require("./SavePageIcon"), exports);
22
+ __exportStar(require("./FloppyDiskIcon"), exports);
@@ -43,7 +43,7 @@ exports.NumberInput = react_1.forwardRef((_a, ref) => {
43
43
  return (jsx_runtime_1.jsx(BaseInput_1.BaseInput, Object.assign({ type: "number" }, props, { renderInput: (_a) => {
44
44
  var inputProps = __rest(_a, []);
45
45
  return (jsx_runtime_1.jsx(StyledNumberInput, Object.assign({ ref: ref, onIncrement: () => takeStep(Direction.Up), onDecrement: () => takeStep(Direction.Down), onChange: (event) => {
46
- const { value } = event === null || event === void 0 ? void 0 : event.target;
46
+ const { value } = event.target;
47
47
  if (value) {
48
48
  setNum(Number(value));
49
49
  }
@@ -219,7 +219,7 @@ export declare const IconSet: {
219
219
  readonly LightBulbOutlinedIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
220
220
  readonly FilterIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
221
221
  readonly BrokenLinkIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
222
- readonly SavePageIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
222
+ readonly FloppyDiskIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
223
223
  readonly ActivityLogIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
224
224
  readonly AlignBaselineIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
225
225
  readonly AlignBottomIcon: ({ color, ...props }: import("@modulz/radix-icons/dist/types").IconProps) => JSX.Element;
@@ -15,7 +15,7 @@ const getColorForName = (name = '') => {
15
15
  let total = 0;
16
16
  for (let i = 0; i < name.length; i++) {
17
17
  const code = name.codePointAt(i);
18
- total += code;
18
+ total += code || 0;
19
19
  }
20
20
  return colors[total % colors.length];
21
21
  };
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.39",
4
+ "version": "0.1.40-alpha.1656492755",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",
@@ -22,12 +22,14 @@
22
22
  "@babel/core": "^7.15.5",
23
23
  "@babel/preset-env": "^7.15.6",
24
24
  "@babel/preset-typescript": "^7.15.0",
25
- "@storybook/addon-actions": "^6.3.8",
26
- "@storybook/addon-essentials": "^6.3.8",
27
- "@storybook/addon-links": "^6.3.8",
28
- "@storybook/node-logger": "^6.3.8",
29
- "@storybook/preset-create-react-app": "^3.2.0",
30
- "@storybook/react": "^6.3.8",
25
+ "@storybook/addon-actions": "^6.5.9",
26
+ "@storybook/addon-essentials": "^6.5.9",
27
+ "@storybook/addon-links": "^6.5.9",
28
+ "@storybook/builder-webpack5": "^6.5.9",
29
+ "@storybook/manager-webpack5": "^6.5.9",
30
+ "@storybook/node-logger": "^6.5.9",
31
+ "@storybook/preset-create-react-app": "^4.1.2",
32
+ "@storybook/react": "^6.5.9",
31
33
  "@testing-library/jest-dom": "^5.11.9",
32
34
  "@testing-library/react": "^11.2.3",
33
35
  "@testing-library/user-event": "^12.6.2",
@@ -40,21 +42,21 @@
40
42
  "@types/react-dom": "^17.0.2",
41
43
  "@types/styled-components": "^5.1.9",
42
44
  "@types/tinycolor2": "^1.4.2",
43
- "@typescript-eslint/eslint-plugin": "^4.17.0",
44
- "@typescript-eslint/parser": "^4.17.0",
45
+ "@typescript-eslint/eslint-plugin": "^5.28.0",
46
+ "@typescript-eslint/parser": "^5.28.0",
45
47
  "babel-plugin-styled-components": "^1.13.2",
46
48
  "cross-env": "^7.0.3",
47
- "eslint": "^7.21.0",
48
- "eslint-config-prettier": "^8.1.0",
49
- "eslint-plugin-jest": "^24.2.1",
50
- "eslint-plugin-prettier": "^3.3.1",
51
- "eslint-plugin-react": "^7.22.0",
49
+ "eslint": "^8.18.0",
50
+ "eslint-config-prettier": "^8.5.0",
51
+ "eslint-plugin-jest": "^26.5.3",
52
+ "eslint-plugin-prettier": "^4.0.0",
53
+ "eslint-plugin-react": "^7.30.0",
52
54
  "faker": "^5.4.0",
53
55
  "husky": "^6.0.0",
54
- "prettier": "^2.2.1",
56
+ "prettier": "^2.7.1",
55
57
  "react": "^17.0.1",
56
58
  "react-dom": "^17.0.1",
57
- "react-scripts": "4.0.1",
59
+ "react-scripts": "^5.0.1",
58
60
  "rimraf": "^3.0.2",
59
61
  "storybook-addon-performance": "^0.16.1",
60
62
  "styled-components": "4.4.1",
@@ -64,7 +66,8 @@
64
66
  "stylelint-processor-styled-components": "^1.10.0",
65
67
  "tsconfig-paths-webpack-plugin": "^3.3.0",
66
68
  "typescript": "^4.2.4",
67
- "web-vitals": "^1.1.0"
69
+ "web-vitals": "^1.1.0",
70
+ "webpack": "5"
68
71
  },
69
72
  "scripts": {
70
73
  "start": "yarn storybook",
@@ -106,16 +109,30 @@
106
109
  },
107
110
  "eslintConfig": {
108
111
  "extends": [
112
+ "plugin:@typescript-eslint/recommended",
113
+ "prettier",
109
114
  "eslint:recommended",
110
115
  "plugin:react/recommended",
111
116
  "plugin:jest/recommended"
112
117
  ],
113
118
  "parser": "@typescript-eslint/parser",
119
+ "parserOptions": {
120
+ "project": "./*/tsconfig.json"
121
+ },
114
122
  "plugins": [
115
123
  "@typescript-eslint",
116
124
  "jest"
117
125
  ],
118
126
  "rules": {
127
+ "@typescript-eslint/ban-types": [
128
+ "error",
129
+ {
130
+ "types": {
131
+ "Function": false
132
+ },
133
+ "extendDefaults": true
134
+ }
135
+ ],
119
136
  "dot-notation": "error",
120
137
  "react/prop-types": "off",
121
138
  "react/jsx-uses-react": "off",
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconProps } from '@modulz/radix-icons/dist/types';
3
- /**
4
- * Save Page - Floppy Disc Icon
5
- */
6
- export declare const SavePageIcon: ({ color, ...props }: IconProps) => JSX.Element;