@toptal/picasso-form 1.1.2 → 1.1.3

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.
@@ -1,14 +1,8 @@
1
- import { Form } from '../Form';
2
- import { FormError } from '../FormError';
3
- import { FormField } from '../FormField';
4
- import { FormHint } from '../FormHint';
5
- import { FormLabel } from '../FormLabel';
6
- declare type FormCompoundType = typeof Form & {
7
- Field: typeof FormField;
8
- Hint: typeof FormHint;
9
- Error: typeof FormError;
10
- Label: typeof FormLabel;
1
+ /// <reference types="react" />
2
+ export declare const FormCompound: import("react").ForwardRefExoticComponent<import("../Form/Form").Props & import("react").RefAttributes<HTMLFormElement>> & {
3
+ Field: import("react").ForwardRefExoticComponent<import("../FormField/FormField").Props & import("react").RefAttributes<HTMLDivElement>>;
4
+ Hint: import("react").ForwardRefExoticComponent<import("../FormHint/FormHint").Props & import("react").RefAttributes<HTMLDivElement>>;
5
+ Error: import("react").ForwardRefExoticComponent<import("../FormError/FormError").Props & import("react").RefAttributes<HTMLDivElement>>;
6
+ Label: import("react").ForwardRefExoticComponent<import("../FormLabel/FormLabel").Props & import("react").RefAttributes<HTMLLabelElement>>;
11
7
  };
12
- export declare const FormCompound: FormCompoundType;
13
- export {};
14
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,aAAK,gBAAgB,GAAG,OAAO,IAAI,GAAG;IACpC,KAAK,EAAE,OAAO,SAAS,CAAA;IACvB,IAAI,EAAE,OAAO,QAAQ,CAAA;IACrB,KAAK,EAAE,OAAO,SAAS,CAAA;IACvB,KAAK,EAAE,OAAO,SAAS,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,gBAKzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormCompound/index.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY;;;;;CAKvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/FormCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,MAAM,CAAC,MAAM,YAAY,GAAqB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;IAChE,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/FormCompound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;IAC9C,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-form",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Toptal UI components library - Form",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,7 +23,7 @@
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
25
  "@toptal/picasso-container": "1.0.2",
26
- "@toptal/picasso-grid": "1.0.3",
26
+ "@toptal/picasso-grid": "1.0.4",
27
27
  "@toptal/picasso-icons": "1.0.2",
28
28
  "@toptal/picasso-shared": "14.0.1",
29
29
  "@toptal/picasso-typography": "1.0.2",
@@ -4,14 +4,7 @@ import { FormField } from '../FormField'
4
4
  import { FormHint } from '../FormHint'
5
5
  import { FormLabel } from '../FormLabel'
6
6
 
7
- type FormCompoundType = typeof Form & {
8
- Field: typeof FormField
9
- Hint: typeof FormHint
10
- Error: typeof FormError
11
- Label: typeof FormLabel
12
- }
13
-
14
- export const FormCompound: FormCompoundType = Object.assign(Form, {
7
+ export const FormCompound = Object.assign(Form, {
15
8
  Field: FormField,
16
9
  Hint: FormHint,
17
10
  Error: FormError,