@linzjs/lui 17.16.2 → 17.16.3-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/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +428 -8126
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +427 -8115
- package/dist/lui.esm.js.map +1 -1
- package/package.json +22 -20
- package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +0 -23
- package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.d.ts +0 -9
- package/dist/components/LuiFormikForms/LuiFormikForm.d.ts +0 -10
- package/dist/components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel.d.ts +0 -8
- package/dist/components/LuiFormikForms/LuiFormikFormSubmitButton/LuiFormikFormSubmitButton.d.ts +0 -6
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.d.ts +0 -8
- package/dist/components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup.d.ts +0 -7
- package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.d.ts +0 -11
- package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.16.
|
|
2
|
+
"version": "17.16.3-1",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -33,9 +33,11 @@
|
|
|
33
33
|
"prettier:fix-changed": "pretty-quick",
|
|
34
34
|
"clear-cache": "jest --clearCache",
|
|
35
35
|
"watch-storybook": "start-storybook --port=6006 --static-dir ./src/assets",
|
|
36
|
-
"generate-svgs": "echo 'CHECK THAT YOUR SVG HAS A VIEW BOX, otherwise it will not work'; node ./svg-generator"
|
|
36
|
+
"generate-svgs": "echo 'CHECK THAT YOUR SVG HAS A VIEW BOX, otherwise it will not work'; node ./svg-generator",
|
|
37
|
+
"install-react-17": "npm i react@^17 react-dom@^17 && npm i @testing-library/react@^12 @types/react@^17 framer-motion@^4.1"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
40
|
+
"framer-motion": ">=4.1",
|
|
39
41
|
"react": ">=16",
|
|
40
42
|
"react-dom": ">=16"
|
|
41
43
|
},
|
|
@@ -47,13 +49,12 @@
|
|
|
47
49
|
"name": "@linzjs/lui",
|
|
48
50
|
"module": "dist/lui.esm.js",
|
|
49
51
|
"jest": {
|
|
52
|
+
"preset": "ts-jest",
|
|
53
|
+
"testEnvironment": "jsdom",
|
|
50
54
|
"moduleNameMapper": {
|
|
51
55
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js",
|
|
52
56
|
"\\.(css|less|scss)$": "<rootDir>/src/__mocks__/styleMock.js"
|
|
53
57
|
},
|
|
54
|
-
"transform": {
|
|
55
|
-
"^.+\\.tsx?$": "esbuild-jest"
|
|
56
|
-
},
|
|
57
58
|
"setupFilesAfterEnv": [
|
|
58
59
|
"./setupTests.ts"
|
|
59
60
|
],
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@geometricpanda/storybook-addon-badges": "^0.2.1",
|
|
76
77
|
"@linzjs/style": "^3.9.0",
|
|
78
|
+
"@mdx-js/react": "^2.1.3",
|
|
77
79
|
"@react-types/shared": "^3.14.0",
|
|
78
80
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
79
81
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -82,46 +84,47 @@
|
|
|
82
84
|
"@semantic-release/git": "^9.0.0",
|
|
83
85
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
84
86
|
"@storybook/addon-a11y": "^6.5.0",
|
|
85
|
-
"@storybook/addon-docs": "^6.5.
|
|
87
|
+
"@storybook/addon-docs": "^6.5.12",
|
|
86
88
|
"@storybook/addon-essentials": "^6.5.0",
|
|
87
89
|
"@storybook/addon-info": "^5.3.21",
|
|
88
90
|
"@storybook/addon-links": "^6.5.0",
|
|
89
91
|
"@storybook/addon-storysource": "6.4.19",
|
|
90
92
|
"@storybook/addons": "^6.5.0",
|
|
93
|
+
"@storybook/mdx2-csf": "^0.0.3",
|
|
91
94
|
"@storybook/preset-scss": "^1.0.3",
|
|
92
|
-
"@storybook/react": "^6.5.
|
|
95
|
+
"@storybook/react": "^6.5.12",
|
|
93
96
|
"@storybook/theming": "^6.5.0",
|
|
94
97
|
"@testing-library/jest-dom": "^5.8.0",
|
|
95
|
-
"@testing-library/react": "^
|
|
96
|
-
"@testing-library/user-event": "^
|
|
98
|
+
"@testing-library/react": "^13.0.0",
|
|
99
|
+
"@testing-library/user-event": "^14.0.0",
|
|
97
100
|
"@types/camelcase": "^5.2.0",
|
|
98
|
-
"@types/jest": "^
|
|
101
|
+
"@types/jest": "^27.4.1",
|
|
99
102
|
"@types/jest-axe": "^3.5.0",
|
|
100
|
-
"@types/react": "^
|
|
103
|
+
"@types/react": "^18.0.21",
|
|
101
104
|
"@types/react-dom": "^16.9.9",
|
|
102
105
|
"@types/react-helmet": "^6.1.2",
|
|
103
|
-
"@types/react-modal": "^3.
|
|
106
|
+
"@types/react-modal": "^3.13.1",
|
|
104
107
|
"@types/sass": "^1.16.0",
|
|
105
108
|
"@types/uuid": "^8.3.1",
|
|
106
109
|
"@types/yup": "0.29.13",
|
|
107
110
|
"chromatic": "^4.0.3",
|
|
108
111
|
"conventional-changelog-conventionalcommits": "^4.6.1",
|
|
109
112
|
"css-loader": "^3.6.0",
|
|
110
|
-
"esbuild": "^0.15.5",
|
|
111
|
-
"esbuild-jest": "^0.5.0",
|
|
112
113
|
"eslint-config-prettier": "8.3.0",
|
|
113
114
|
"eslint-config-react-app": "^7.0.0",
|
|
114
115
|
"eslint-plugin-prettier": "4.0.0",
|
|
115
116
|
"fetch-mock": "^9.11.0",
|
|
117
|
+
"framer-motion": "^7.5.2",
|
|
116
118
|
"html-loader": "^1.1.0",
|
|
117
119
|
"husky": "^4.3.0",
|
|
120
|
+
"jest": "^27.5.1",
|
|
118
121
|
"jest-axe": "^3.5.0",
|
|
119
122
|
"jest-canvas-mock": "2.3.1",
|
|
120
123
|
"msw": "^0.22.2",
|
|
121
124
|
"npm-run-all": "^4.1.5",
|
|
122
125
|
"pretty-quick": "^3.1.1",
|
|
123
|
-
"react": "^
|
|
124
|
-
"react-dom": "^
|
|
126
|
+
"react": "^18.2.0",
|
|
127
|
+
"react-dom": "^18.2.0",
|
|
125
128
|
"react-helmet": "^6.1.0",
|
|
126
129
|
"react-is": "^17.0.1",
|
|
127
130
|
"rollup": "^2.56.3",
|
|
@@ -138,6 +141,7 @@
|
|
|
138
141
|
"stylelint-config-standard": "^25.0.0",
|
|
139
142
|
"stylelint-scss": "^4.1.0",
|
|
140
143
|
"stylelint-suitcss": "^5.0.0",
|
|
144
|
+
"ts-jest": "^27.1.3",
|
|
141
145
|
"typescript": "^4.7.4",
|
|
142
146
|
"whatwg-fetch": "^3.4.1",
|
|
143
147
|
"yup": "^0.29.0"
|
|
@@ -148,15 +152,13 @@
|
|
|
148
152
|
"@react-aria/listbox": "^3.6.0",
|
|
149
153
|
"@react-aria/utils": "^3.13.2",
|
|
150
154
|
"@react-stately/list": "^3.5.2",
|
|
151
|
-
"@szhsin/react-menu": "^
|
|
155
|
+
"@szhsin/react-menu": "^3.1.2",
|
|
152
156
|
"camelcase": "^6.0.0",
|
|
153
157
|
"clsx": "^1.1.0",
|
|
154
158
|
"container-query-polyfill": "0.1.2",
|
|
155
|
-
"formik": "^2.1.4",
|
|
156
|
-
"framer-motion": "4.1.17",
|
|
157
159
|
"lottie-web": "^5.9.1",
|
|
158
160
|
"react-loading-skeleton": "^3.1.0",
|
|
159
|
-
"react-modal": "^3.
|
|
161
|
+
"react-modal": "^3.15.1",
|
|
160
162
|
"react-query": "2.26.3",
|
|
161
163
|
"react-select": "^5.1.0",
|
|
162
164
|
"resolve-url-loader": "^5.0.0",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { LuiCommonInputProps } from '../LuiFormikForms/LuiFormikForm';
|
|
3
|
-
interface LuiBearingInputProps {
|
|
4
|
-
name: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
helperInfo?: ReactNode;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
value: string;
|
|
9
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
-
validationError?: string;
|
|
11
|
-
onValidate?: (error: string | null) => void;
|
|
12
|
-
/** If true, validationError prop takes precedence over the internalError value. */
|
|
13
|
-
preferValidationError?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const LuiBearingInput: React.FC<React.PropsWithChildren<LuiBearingInputProps & LuiCommonInputProps>>;
|
|
16
|
-
interface LuiBearingFormikInputProps {
|
|
17
|
-
name: string;
|
|
18
|
-
label: string;
|
|
19
|
-
/** If true, validationError prop takes precedence over the LuiBearingInput internalError value. */
|
|
20
|
-
preferValidationError?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const LuiBearingFormikInput: React.FC<React.PropsWithChildren<LuiBearingFormikInputProps & LuiCommonInputProps>>;
|
|
23
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
3
|
-
export declare function LuiFormikCheckbox(props: {
|
|
4
|
-
name: string;
|
|
5
|
-
value: string;
|
|
6
|
-
label: ReactNode;
|
|
7
|
-
htmlFor?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
} & LuiCommonInputProps): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormikConfig, FormikValues } from 'formik';
|
|
3
|
-
export declare function LuiFormikForm<Values extends FormikValues = FormikValues, ExtraProps = {}>(props: FormikConfig<Values> & ExtraProps & {
|
|
4
|
-
className?: string;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
export interface LuiCommonInputProps {
|
|
7
|
-
inputProps?: object;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
3
|
-
export declare const LuiFormikSelect: React.ComponentType<{
|
|
4
|
-
name: string;
|
|
5
|
-
label: string;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
defaultValue?: string | undefined;
|
|
8
|
-
helperInfo?: (() => React.Component) | undefined;
|
|
9
|
-
tooltip?: string | undefined;
|
|
10
|
-
validate?: ((value: string) => string | undefined) | undefined;
|
|
11
|
-
} & LuiCommonInputProps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FormikContextType } from 'formik';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
4
|
-
export declare const LuiFormikTextInput: React.ComponentType<{
|
|
5
|
-
name: string;
|
|
6
|
-
label?: string | undefined;
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
helperInfo?: ReactNode;
|
|
9
|
-
tooltip?: string | undefined;
|
|
10
|
-
validate?: ((value: string) => string | undefined) | undefined;
|
|
11
|
-
onValueChange?: ((newValue: {
|
|
12
|
-
value: string;
|
|
13
|
-
formik: FormikContextType<any>;
|
|
14
|
-
}) => void) | undefined;
|
|
15
|
-
validateOnChange?: boolean | undefined;
|
|
16
|
-
multiLine?: boolean | undefined;
|
|
17
|
-
} & LuiCommonInputProps>;
|