@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.
Files changed (25) hide show
  1. package/LICENSE.md +5 -5
  2. package/README.md +211 -211
  3. package/dist/assets/fonts/index.js +1 -1
  4. package/dist/components/elements/Icon/openfin/ExclamationCircledFilledIcon.d.ts +4 -3
  5. package/dist/components/input/BaseInput/baseInput.d.ts +0 -3
  6. package/dist/components/input/Checkbox/checkbox.d.ts +0 -1
  7. package/dist/components/input/RadioInput/radioInput.d.ts +0 -3
  8. package/dist/components/input/TextInput/textInput.d.ts +0 -1
  9. package/dist/components/system/ThemeProvider/lib/constants.d.ts +2 -3
  10. package/dist/index.d.ts +0 -3
  11. package/dist/index.js +414 -520
  12. package/package.json +186 -184
  13. package/dist/components/controls/ClickableNavigation/clickableNavigation.d.ts +0 -11
  14. package/dist/components/controls/ClickableNavigation/index.d.ts +0 -1
  15. package/dist/components/controls/CollapsibleCard/cardContainer.d.ts +0 -6
  16. package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +0 -10
  17. package/dist/components/controls/CollapsibleCard/index.d.ts +0 -1
  18. package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +0 -7
  19. package/dist/components/input/CheckboxGroup/index.d.ts +0 -1
  20. package/dist/components/input/TextArea/index.d.ts +0 -1
  21. package/dist/components/input/TextArea/textArea.d.ts +0 -8
  22. package/dist/components/layout/HamburgerNavigation/hamburgerNavigation.d.ts +0 -13
  23. package/dist/components/layout/HamburgerNavigation/index.d.ts +0 -2
  24. package/dist/components/layout/HamburgerNavigation/sidebarMenu.d.ts +0 -12
  25. 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.19.2-alpha.1687871109",
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
- }
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,6 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export type CardContainerProps = {
3
- maxHeight: number | string;
4
- children: ReactNode;
5
- };
6
- export declare const CardContainer: FC<CardContainerProps>;
@@ -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,2 +0,0 @@
1
- export * from './hamburgerNavigation';
2
- export * from './sidebarMenu';
@@ -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
- */