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