@toptal/picasso-form 6.3.2-alpha-MP-669-first-batch-of-rework-a31f7fc51.14 → 6.3.3-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10
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 +0 -5
- package/dist-package/src/FieldRequirements/FieldRequirements.d.ts.map +1 -1
- package/dist-package/src/FieldRequirements/FieldRequirements.js +1 -6
- package/dist-package/src/FieldRequirements/FieldRequirements.js.map +1 -1
- package/package.json +15 -15
- package/src/FieldRequirements/FieldRequirements.tsx +2 -8
|
@@ -22,11 +22,6 @@ 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
|
-
};
|
|
30
25
|
displayName: string;
|
|
31
26
|
};
|
|
32
27
|
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;AAID,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, error, timeout, requirements, className, style, testIds, }) => {
|
|
7
|
+
export const FieldRequirements = ({ value, description, open = false, error, timeout = ANIMATION_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,11 +20,6 @@ export const FieldRequirements = ({ value, description, open, error, timeout, re
|
|
|
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
|
-
};
|
|
28
23
|
FieldRequirements.displayName = 'FieldRequirements';
|
|
29
24
|
export default FieldRequirements;
|
|
30
25
|
//# 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":"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,GAAG,KAAK,EACZ,KAAK,EACL,OAAO,GAAG,iBAAiB,EAC3B,YAAY,EACZ,SAAS,EACT,KAAK,EACL,OAAO,GACW,EAAE,EAAE;IACtB,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,IAAI,EACR,OAAO,EAAE,OAAO,iBACH,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;QAE1B;YACG,WAAW,IAAI,CACd,oBAAC,UAAU,mBACI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EACjC,OAAO,EAAC,MAAM,EACd,IAAI,EAAC,SAAS,EACd,SAAS,EAAC,aAAa,IAEtB,WAAW,CACD,CACd;YACD,oBAAC,IAAI,IACH,SAAS,EAAC,SAAS,EACnB,OAAO,EAAE,CAAC,iBACG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,IAElC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;gBAC9B,IAAI,MAAM,GAA+B,SAAS,CAAA;gBAElD,oEAAoE;gBACpE,IAAI,WAAW,CAAC,SAAS,CAAC,KAAM,CAAC,EAAE;oBACjC,MAAM,GAAG,SAAS,CAAA;iBACnB;qBAAM,IAAI,KAAK,EAAE;oBAChB,MAAM,GAAG,OAAO,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,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.
|
|
3
|
+
"version": "6.3.3-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10+7db07b500",
|
|
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.
|
|
26
|
-
"@toptal/picasso-collapse": "3.0.4-alpha-MP-669-
|
|
27
|
-
"@toptal/picasso-container": "3.1.3-alpha-MP-669-
|
|
28
|
-
"@toptal/picasso-form-label": "1.0.3-alpha-MP-669-
|
|
29
|
-
"@toptal/picasso-form-layout": "1.0.3-alpha-MP-669-
|
|
30
|
-
"@toptal/picasso-grid": "5.0.
|
|
31
|
-
"@toptal/picasso-icons": "1.12.2-alpha-MP-669-
|
|
32
|
-
"@toptal/picasso-shared": "15.0.1-alpha-MP-669-
|
|
33
|
-
"@toptal/picasso-typography": "4.0.
|
|
34
|
-
"@toptal/picasso-utils": "3.1.1-alpha-MP-669-
|
|
25
|
+
"@toptal/picasso-alert": "3.0.35-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10+7db07b500",
|
|
26
|
+
"@toptal/picasso-collapse": "3.0.4-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
27
|
+
"@toptal/picasso-container": "3.1.3-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
28
|
+
"@toptal/picasso-form-label": "1.0.3-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
29
|
+
"@toptal/picasso-form-layout": "1.0.3-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
30
|
+
"@toptal/picasso-grid": "5.0.11-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10+7db07b500",
|
|
31
|
+
"@toptal/picasso-icons": "1.12.2-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
32
|
+
"@toptal/picasso-shared": "15.0.1-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.377+7db07b500",
|
|
33
|
+
"@toptal/picasso-typography": "4.0.5-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10+7db07b500",
|
|
34
|
+
"@toptal/picasso-utils": "3.1.1-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
35
35
|
"ap-style-title-case": "^1.1.2",
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"debounce": "^1.2.1"
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
".": "./dist-package/src/index.js"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@toptal/picasso-provider": "5.0.
|
|
55
|
-
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-MP-669-
|
|
56
|
-
"@toptal/picasso-test-utils": "1.1.2-alpha-MP-669-
|
|
54
|
+
"@toptal/picasso-provider": "5.0.2-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.10+7db07b500",
|
|
55
|
+
"@toptal/picasso-tailwind-merge": "2.0.4-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
56
|
+
"@toptal/picasso-test-utils": "1.1.2-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.377+7db07b500"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"dist-package/**",
|
|
60
60
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
61
61
|
"src"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "7db07b500402a91f0c09da3be294305a194fd1e4"
|
|
64
64
|
}
|
|
@@ -33,9 +33,9 @@ const ANIMATION_TIMEOUT = 500
|
|
|
33
33
|
export const FieldRequirements = <TValueType,>({
|
|
34
34
|
value,
|
|
35
35
|
description,
|
|
36
|
-
open,
|
|
36
|
+
open = false,
|
|
37
37
|
error,
|
|
38
|
-
timeout,
|
|
38
|
+
timeout = ANIMATION_TIMEOUT,
|
|
39
39
|
requirements,
|
|
40
40
|
className,
|
|
41
41
|
style,
|
|
@@ -91,12 +91,6 @@ export const FieldRequirements = <TValueType,>({
|
|
|
91
91
|
)
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
FieldRequirements.defaultProps = {
|
|
95
|
-
open: false,
|
|
96
|
-
timeout: ANIMATION_TIMEOUT,
|
|
97
|
-
value: '',
|
|
98
|
-
}
|
|
99
|
-
|
|
100
94
|
FieldRequirements.displayName = 'FieldRequirements'
|
|
101
95
|
|
|
102
96
|
export default FieldRequirements
|