@openfin/ui-library 0.19.2-alpha.1687871109 → 0.20.0-alpha.1
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/LICENSE.md +5 -5
- package/README.md +211 -211
- package/dist/assets/fonts/index.js +1 -1
- package/dist/components/elements/Icon/openfin/ExclamationCircledFilledIcon.d.ts +4 -3
- package/dist/components/input/BaseInput/baseInput.d.ts +0 -3
- package/dist/components/input/Checkbox/checkbox.d.ts +0 -1
- package/dist/components/input/RadioInput/radioInput.d.ts +0 -3
- package/dist/components/input/TextInput/textInput.d.ts +0 -1
- package/dist/components/system/ThemeProvider/lib/constants.d.ts +2 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +414 -520
- package/package.json +186 -184
- package/dist/components/controls/ClickableNavigation/clickableNavigation.d.ts +0 -11
- package/dist/components/controls/ClickableNavigation/index.d.ts +0 -1
- package/dist/components/controls/CollapsibleCard/cardContainer.d.ts +0 -6
- package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +0 -10
- package/dist/components/controls/CollapsibleCard/index.d.ts +0 -1
- package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +0 -7
- package/dist/components/input/CheckboxGroup/index.d.ts +0 -1
- package/dist/components/input/TextArea/index.d.ts +0 -1
- package/dist/components/input/TextArea/textArea.d.ts +0 -8
- package/dist/components/layout/HamburgerNavigation/hamburgerNavigation.d.ts +0 -13
- package/dist/components/layout/HamburgerNavigation/index.d.ts +0 -2
- package/dist/components/layout/HamburgerNavigation/sidebarMenu.d.ts +0 -12
- package/dist/index.js.LICENSE.txt +0 -24
package/package.json
CHANGED
|
@@ -1,184 +1,186 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@openfin/ui-library",
|
|
3
|
-
"description": "OpenFin UI Component Library",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"build
|
|
18
|
-
"build:
|
|
19
|
-
"build:
|
|
20
|
-
"
|
|
21
|
-
"test": "jest
|
|
22
|
-
"
|
|
23
|
-
"lint
|
|
24
|
-
"lint:
|
|
25
|
-
"
|
|
26
|
-
"storybook
|
|
27
|
-
"storybook:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"react
|
|
35
|
-
"react-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@
|
|
43
|
-
"@storybook/addon-
|
|
44
|
-
"@storybook/addon-
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/
|
|
47
|
-
"@storybook/
|
|
48
|
-
"@storybook/react
|
|
49
|
-
"@
|
|
50
|
-
"@testing-library/
|
|
51
|
-
"@testing-library/
|
|
52
|
-
"@testing-library/
|
|
53
|
-
"@
|
|
54
|
-
"@types/
|
|
55
|
-
"@types/
|
|
56
|
-
"@types/
|
|
57
|
-
"@types/react
|
|
58
|
-
"@types/react-
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/
|
|
61
|
-
"@
|
|
62
|
-
"@typescript-eslint/
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"eslint
|
|
69
|
-
"eslint-
|
|
70
|
-
"eslint-plugin-
|
|
71
|
-
"eslint-plugin-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"jest
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"react-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"storybook
|
|
83
|
-
"
|
|
84
|
-
"stylelint
|
|
85
|
-
"
|
|
86
|
-
"ts-
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"webpack
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"last 1
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"eslint
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
"react/
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
"<rootDir>/src/**/*.
|
|
181
|
-
"<rootDir>/src/**/*.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@openfin/ui-library",
|
|
3
|
+
"description": "OpenFin UI Component Library",
|
|
4
|
+
"version": "0.20.0-alpha.1",
|
|
5
|
+
"author": "OpenFin Inc.",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"repository": "github:openfin/ui-library",
|
|
9
|
+
"homepage": "https://cdn.openfin.co/workspace/storybook",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*"
|
|
12
|
+
],
|
|
13
|
+
"license": "SEE LICENSE IN LICENSE.MD",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"start": "npm run storybook",
|
|
16
|
+
"typecheck": "npx tsc --noEmit",
|
|
17
|
+
"build": "npm run build:clean && npm run build:src",
|
|
18
|
+
"build:src": "webpack build --config webpack.config.js --mode production",
|
|
19
|
+
"build:clean": "rimraf dist",
|
|
20
|
+
"build:dev": "webpack build --config webpack.config.js --mode development && yalc push",
|
|
21
|
+
"test:ci": "jest",
|
|
22
|
+
"test": "jest --watch",
|
|
23
|
+
"lint": "npm run lint:typescript && npm run lint:styles",
|
|
24
|
+
"lint:typescript": "eslint \"./src/**/*.{ts,tsx}\"",
|
|
25
|
+
"lint:styles": "stylelint \"./src/**/*.{ts,tsx}\"",
|
|
26
|
+
"storybook": "storybook dev -p 6006 -s public",
|
|
27
|
+
"storybook:build": "storybook build -s public",
|
|
28
|
+
"storybook:cache-clear": "rimraf ./node_modules/.cache/storybook"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@modulz/radix-icons": "=>4.0.0 <5.0.0",
|
|
32
|
+
"focus-trap-react": "=>10.0.1 <11.0.0",
|
|
33
|
+
"framer-motion": "=>4.1.5 <7.0.0",
|
|
34
|
+
"react": "=>17.0.1 <18.0.0",
|
|
35
|
+
"react-calendar": "=>4.0.0 <5.0.0",
|
|
36
|
+
"react-dom": "=>17.0.1 <18.0.0",
|
|
37
|
+
"require-from-string": "=>2.0.2 <3.0.0",
|
|
38
|
+
"styled-components": "=>4.4.1 <6.0.0",
|
|
39
|
+
"tinycolor2": "=>1.4.2 <2.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "^7.18.6",
|
|
43
|
+
"@storybook/addon-actions": "^7.0.12",
|
|
44
|
+
"@storybook/addon-essentials": "^7.0.12",
|
|
45
|
+
"@storybook/addon-interactions": "^7.0.12",
|
|
46
|
+
"@storybook/addon-links": "^7.0.12",
|
|
47
|
+
"@storybook/node-logger": "^7.0.12",
|
|
48
|
+
"@storybook/react": "^7.0.12",
|
|
49
|
+
"@storybook/react-webpack5": "^7.0.12",
|
|
50
|
+
"@testing-library/dom": "^8.14.0",
|
|
51
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
52
|
+
"@testing-library/react": "^12.1.5",
|
|
53
|
+
"@testing-library/user-event": "^14.2.1",
|
|
54
|
+
"@types/jest": "^28.1.3",
|
|
55
|
+
"@types/lodash.defaultsdeep": "^4.6.7",
|
|
56
|
+
"@types/node": "^18.15.12",
|
|
57
|
+
"@types/react": "^17.0.3",
|
|
58
|
+
"@types/react-calendar": "^3.9.0",
|
|
59
|
+
"@types/react-dom": "^17.0.2",
|
|
60
|
+
"@types/styled-components": "^5.1.25",
|
|
61
|
+
"@types/tinycolor2": "^1.4.3",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
63
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
64
|
+
"babel-loader": "^8.2.5",
|
|
65
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
66
|
+
"cross-env": "^7.0.3",
|
|
67
|
+
"css-loader": "^6.7.3",
|
|
68
|
+
"eslint": "^8.40.0",
|
|
69
|
+
"eslint-config-prettier": "^8.8.0",
|
|
70
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
71
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
72
|
+
"eslint-plugin-react": "^7.32.2",
|
|
73
|
+
"file-loader": "^6.2.0",
|
|
74
|
+
"identity-obj-proxy": "^3.0.0",
|
|
75
|
+
"jest": "^28.1.2",
|
|
76
|
+
"jest-environment-jsdom": "^28.1.2",
|
|
77
|
+
"postcss-styled-syntax": "^0.4.0",
|
|
78
|
+
"prettier": "^2.8.8",
|
|
79
|
+
"react-is": "^17.0.2",
|
|
80
|
+
"react-refresh": "^0.14.0",
|
|
81
|
+
"rimraf": "^5.0.0",
|
|
82
|
+
"storybook": "^7.0.11",
|
|
83
|
+
"storybook-addon-performance": "^0.17.1",
|
|
84
|
+
"stylelint": "^15.6.1",
|
|
85
|
+
"stylelint-config-recommended": "^12.0.0",
|
|
86
|
+
"ts-jest": "^28.0.5",
|
|
87
|
+
"ts-loader": "^9.3.1",
|
|
88
|
+
"typescript": "^5.0.4",
|
|
89
|
+
"webpack": "^5.82.1",
|
|
90
|
+
"webpack-cli": "^5.1.1",
|
|
91
|
+
"webpack-node-externals": "^3.0.0"
|
|
92
|
+
},
|
|
93
|
+
"browserslist": {
|
|
94
|
+
"production": [
|
|
95
|
+
">0.2%",
|
|
96
|
+
"not dead",
|
|
97
|
+
"not op_mini all"
|
|
98
|
+
],
|
|
99
|
+
"development": [
|
|
100
|
+
"last 1 chrome version",
|
|
101
|
+
"last 1 firefox version",
|
|
102
|
+
"last 1 safari version"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"eslintConfig": {
|
|
106
|
+
"extends": [
|
|
107
|
+
"plugin:@typescript-eslint/recommended",
|
|
108
|
+
"prettier",
|
|
109
|
+
"eslint:recommended",
|
|
110
|
+
"plugin:react/recommended",
|
|
111
|
+
"plugin:jest/recommended"
|
|
112
|
+
],
|
|
113
|
+
"parser": "@typescript-eslint/parser",
|
|
114
|
+
"parserOptions": {
|
|
115
|
+
"project": "./*/tsconfig.json"
|
|
116
|
+
},
|
|
117
|
+
"plugins": [
|
|
118
|
+
"@typescript-eslint",
|
|
119
|
+
"jest"
|
|
120
|
+
],
|
|
121
|
+
"rules": {
|
|
122
|
+
"@typescript-eslint/ban-types": [
|
|
123
|
+
"error",
|
|
124
|
+
{
|
|
125
|
+
"types": {
|
|
126
|
+
"Function": false
|
|
127
|
+
},
|
|
128
|
+
"extendDefaults": true
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"dot-notation": "error",
|
|
132
|
+
"react/prop-types": "off",
|
|
133
|
+
"react/jsx-uses-react": "off",
|
|
134
|
+
"react/react-in-jsx-scope": "off",
|
|
135
|
+
"no-unused-vars": "off",
|
|
136
|
+
"@typescript-eslint/no-unused-vars": "error",
|
|
137
|
+
"@typescript-eslint/no-explicit-any": "error"
|
|
138
|
+
},
|
|
139
|
+
"globals": {
|
|
140
|
+
"JSX": "readonly"
|
|
141
|
+
},
|
|
142
|
+
"settings": {
|
|
143
|
+
"react": {
|
|
144
|
+
"version": "detect"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"env": {
|
|
148
|
+
"browser": true,
|
|
149
|
+
"node": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"stylelint": {
|
|
153
|
+
"customSyntax": "postcss-styled-syntax",
|
|
154
|
+
"extends": [
|
|
155
|
+
"stylelint-config-recommended"
|
|
156
|
+
],
|
|
157
|
+
"rules": {
|
|
158
|
+
"no-empty-source": null
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"prettier": {
|
|
162
|
+
"endOfLine": "lf",
|
|
163
|
+
"semi": true,
|
|
164
|
+
"singleQuote": true,
|
|
165
|
+
"tabWidth": 2,
|
|
166
|
+
"trailingComma": "es5",
|
|
167
|
+
"arrowParens": "always",
|
|
168
|
+
"printWidth": 100
|
|
169
|
+
},
|
|
170
|
+
"jest": {
|
|
171
|
+
"preset": "ts-jest",
|
|
172
|
+
"setupFilesAfterEnv": [
|
|
173
|
+
"<rootDir>/src/setupTests.ts"
|
|
174
|
+
],
|
|
175
|
+
"moduleNameMapper": {
|
|
176
|
+
"\\.(css)$": "<rootDir>/src/test/mocks/styleMock.js"
|
|
177
|
+
},
|
|
178
|
+
"testEnvironment": "jsdom",
|
|
179
|
+
"testMatch": [
|
|
180
|
+
"<rootDir>/src/**/*.test.tsx",
|
|
181
|
+
"<rootDir>/src/**/*.test.ts",
|
|
182
|
+
"<rootDir>/src/**/*.spec.ts",
|
|
183
|
+
"<rootDir>/src/**/*.spec.tsx"
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export type ClickableNavigationButtonProps = {
|
|
3
|
-
onClick?: () => void;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export type ClickableNavigationLinkProps = {
|
|
7
|
-
to?: string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
};
|
|
10
|
-
export declare const ClickableNavigationLink: FC<ClickableNavigationLinkProps>;
|
|
11
|
-
export declare const ClickableNavigationButton: FC<ClickableNavigationButtonProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './clickableNavigation';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export type CollapsibleCardProps = {
|
|
3
|
-
title: string | ReactNode;
|
|
4
|
-
badgeText?: number;
|
|
5
|
-
maxHeight?: number;
|
|
6
|
-
fixedHeader?: boolean;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
expanded?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const CollapsibleCard: FC<CollapsibleCardProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './collapsibleCard';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { UnitPxType } from '../../system/ThemeProvider';
|
|
3
|
-
export type CheckboxGroupProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
-
gap?: UnitPxType;
|
|
5
|
-
message?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './checkboxGroup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textArea';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ChangeEvent } from 'react';
|
|
2
|
-
import { WithStatusProps } from '../../system/HOC';
|
|
3
|
-
export type TextAreaProps = InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
4
|
-
onChange?: (e?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
5
|
-
} & WithStatusProps;
|
|
6
|
-
export declare const TextArea: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
7
|
-
onChange?: ((e?: ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
8
|
-
} & WithStatusProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export type HamburgerNavigationProps = {
|
|
3
|
-
children: (closeFunction: () => void) => ReactNode;
|
|
4
|
-
document?: Document;
|
|
5
|
-
};
|
|
6
|
-
export type HamburgerIconProps = {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* - Sidebar Menu opens and closes on Hamburger Icon click and when the user selects items from sidebar menu
|
|
11
|
-
*/
|
|
12
|
-
export declare const HamburgerNavigation: FC<HamburgerNavigationProps>;
|
|
13
|
-
export declare const StyledHamburgerIcon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, HamburgerIconProps, never>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type SidebarMenuProps = {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
document?: Document;
|
|
6
|
-
};
|
|
7
|
-
export type SidebarMenuContainerProps = {
|
|
8
|
-
open?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const SidebarMenu: ({ open, children, document }: SidebarMenuProps) => JSX.Element;
|
|
11
|
-
export declare const StyledSidebarMenuContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SidebarMenuContainerProps, never>;
|
|
12
|
-
export declare const StyledMenuItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* focus-trap 7.3.1
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/*!
|
|
13
|
-
* tabbable 6.1.1
|
|
14
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/** @license React v17.0.2
|
|
18
|
-
* react-jsx-runtime.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/
|