@toptal/picasso-form 6.3.4-alpha-MP-669-remove-more-default-props-dea487bed.0 → 6.3.4-alpha-FF-54-delete-patch-9e6253f76.0
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-package/src/FieldRequirements/FieldRequirements.d.ts +5 -0
- package/dist-package/src/FieldRequirements/FieldRequirements.d.ts.map +1 -1
- package/dist-package/src/FieldRequirements/FieldRequirements.js +6 -1
- package/dist-package/src/FieldRequirements/FieldRequirements.js.map +1 -1
- package/package.json +17 -17
- package/src/FieldRequirements/FieldRequirements.tsx +8 -2
|
@@ -22,6 +22,11 @@ export interface Props<TValueType> extends BaseProps {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const FieldRequirements: {
|
|
24
24
|
<TValueType>({ value, description, open, error, timeout, requirements, className, style, testIds, }: Props<TValueType>): JSX.Element;
|
|
25
|
+
defaultProps: {
|
|
26
|
+
open: boolean;
|
|
27
|
+
timeout: number;
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
25
30
|
displayName: string;
|
|
26
31
|
};
|
|
27
32
|
export default FieldRequirements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldRequirements.d.ts","sourceRoot":"","sources":["../../../src/FieldRequirements/FieldRequirements.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAOvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,MAAM,WAAW,KAAK,CAAC,UAAU,CAAE,SAAQ,SAAS;IAClD,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,yFAAyF;IACzF,IAAI,EAAE,OAAO,CAAA;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qEAAqE;IACrE,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,EAAE,CAAA;IAC5C,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;CACF;AAID,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"FieldRequirements.d.ts","sourceRoot":"","sources":["../../../src/FieldRequirements/FieldRequirements.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAOvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,MAAM,WAAW,KAAK,CAAC,UAAU,CAAE,SAAQ,SAAS;IAClD,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,yFAAyF;IACzF,IAAI,EAAE,OAAO,CAAA;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qEAAqE;IACrE,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,EAAE,CAAA;IAC5C,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;CACF;AAID,eAAO,MAAM,iBAAiB;;;;;;;;CA2D7B,CAAA;AAUD,eAAe,iBAAiB,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { Grid } from '@toptal/picasso-grid';
|
|
|
4
4
|
import { Collapse } from '@toptal/picasso-collapse';
|
|
5
5
|
import FieldRequirementItem from './FieldRequirementItem';
|
|
6
6
|
const ANIMATION_TIMEOUT = 500;
|
|
7
|
-
export const FieldRequirements = ({ value, description, open
|
|
7
|
+
export const FieldRequirements = ({ value, description, open, error, timeout, requirements, className, style, testIds, }) => {
|
|
8
8
|
return (React.createElement(Collapse, { style: style, className: className, in: open, timeout: timeout, "data-testid": testIds === null || testIds === void 0 ? void 0 : testIds.root },
|
|
9
9
|
React.createElement(React.Fragment, null,
|
|
10
10
|
description && (React.createElement(Typography, { "data-testid": testIds === null || testIds === void 0 ? void 0 : testIds.description, variant: 'body', size: 'xxsmall', className: 'mt-[0.4rem]' }, description)),
|
|
@@ -20,6 +20,11 @@ export const FieldRequirements = ({ value, description, open = false, error, tim
|
|
|
20
20
|
return (React.createElement(FieldRequirementItem, { key: requirement.message, status: status, testIds: requirement.testIds }, requirement.message));
|
|
21
21
|
})))));
|
|
22
22
|
};
|
|
23
|
+
FieldRequirements.defaultProps = {
|
|
24
|
+
open: false,
|
|
25
|
+
timeout: ANIMATION_TIMEOUT,
|
|
26
|
+
value: '',
|
|
27
|
+
};
|
|
23
28
|
FieldRequirements.displayName = 'FieldRequirements';
|
|
24
29
|
export default FieldRequirements;
|
|
25
30
|
//# sourceMappingURL=FieldRequirements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldRequirements.js","sourceRoot":"","sources":["../../../src/FieldRequirements/FieldRequirements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAGnD,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AAuBzD,MAAM,iBAAiB,GAAG,GAAG,CAAA;AAE7B,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAc,EAC7C,KAAK,EACL,WAAW,EACX,IAAI,
|
|
1
|
+
{"version":3,"file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O,CAAA;iBACjB;gBAED,OAAO,CACL,oBAAC,oBAAoB,IACnB,GAAG,EAAE,WAAW,CAAC,OAAO,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,CAAC,OAAO,IAE3B,WAAW,CAAC,OAAO,CACC,CACxB,CAAA;YACH,CAAC,CAAC,CACG,CACN,CACM,CACZ,CAAA;AACH,CAAC,CAAA;AAED,iBAAiB,CAAC,YAAY,GAAG;IAC/B,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,iBAAiB;IAC1B,KAAK,EAAE,EAAE;CACV,CAAA;AAED,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAEnD,eAAe,iBAAiB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-form",
|
|
3
|
-
"version": "6.3.4-alpha-
|
|
3
|
+
"version": "6.3.4-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
4
4
|
"description": "Toptal UI components library - Form",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-alert": "3.0.36-alpha-
|
|
26
|
-
"@toptal/picasso-collapse": "3.0.4-alpha-
|
|
27
|
-
"@toptal/picasso-container": "3.1.3-alpha-
|
|
28
|
-
"@toptal/picasso-grid": "5.0.12-alpha-
|
|
29
|
-
"@toptal/picasso-icons": "1.13.1-alpha-
|
|
30
|
-
"@toptal/picasso-form-label": "1.0.3-alpha-
|
|
31
|
-
"@toptal/picasso-form-layout": "1.0.3-alpha-
|
|
32
|
-
"@toptal/picasso-shared": "15.0.1-alpha-
|
|
33
|
-
"@toptal/picasso-typography": "4.0.5-alpha-
|
|
34
|
-
"@toptal/picasso-utils": "3.1.1-alpha-
|
|
25
|
+
"@toptal/picasso-alert": "3.0.36-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
26
|
+
"@toptal/picasso-collapse": "3.0.4-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
27
|
+
"@toptal/picasso-container": "3.1.3-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
28
|
+
"@toptal/picasso-grid": "5.0.12-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
29
|
+
"@toptal/picasso-icons": "1.13.1-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
30
|
+
"@toptal/picasso-form-label": "1.0.3-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
31
|
+
"@toptal/picasso-form-layout": "1.0.3-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
32
|
+
"@toptal/picasso-shared": "15.0.1-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
33
|
+
"@toptal/picasso-typography": "4.0.5-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
34
|
+
"@toptal/picasso-utils": "3.1.1-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
35
35
|
"ap-style-title-case": "^1.1.2",
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"debounce": "^1.2.1"
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@material-ui/core": "4.12.4",
|
|
45
|
-
"@toptal/picasso-provider": "5.0.2-alpha-
|
|
46
|
-
"@toptal/picasso-tailwind": "3.0.1-alpha-
|
|
47
|
-
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-
|
|
45
|
+
"@toptal/picasso-provider": "5.0.2-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
46
|
+
"@toptal/picasso-tailwind": "3.0.1-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
47
|
+
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
48
48
|
"react": ">=16.12.0 < 19.0.0"
|
|
49
49
|
},
|
|
50
50
|
"exports": {
|
|
51
51
|
".": "./dist-package/src/index.js"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-
|
|
55
|
-
"@toptal/picasso-provider": "5.0.2-alpha-
|
|
56
|
-
"@toptal/picasso-test-utils": "1.1.2-alpha-
|
|
54
|
+
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
55
|
+
"@toptal/picasso-provider": "5.0.2-alpha-FF-54-delete-patch-9e6253f76.0",
|
|
56
|
+
"@toptal/picasso-test-utils": "1.1.2-alpha-FF-54-delete-patch-9e6253f76.0"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"dist-package/**",
|
|
@@ -33,9 +33,9 @@ const ANIMATION_TIMEOUT = 500
|
|
|
33
33
|
export const FieldRequirements = <TValueType,>({
|
|
34
34
|
value,
|
|
35
35
|
description,
|
|
36
|
-
open
|
|
36
|
+
open,
|
|
37
37
|
error,
|
|
38
|
-
timeout
|
|
38
|
+
timeout,
|
|
39
39
|
requirements,
|
|
40
40
|
className,
|
|
41
41
|
style,
|
|
@@ -91,6 +91,12 @@ export const FieldRequirements = <TValueType,>({
|
|
|
91
91
|
)
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
FieldRequirements.defaultProps = {
|
|
95
|
+
open: false,
|
|
96
|
+
timeout: ANIMATION_TIMEOUT,
|
|
97
|
+
value: '',
|
|
98
|
+
}
|
|
99
|
+
|
|
94
100
|
FieldRequirements.displayName = 'FieldRequirements'
|
|
95
101
|
|
|
96
102
|
export default FieldRequirements
|