@launchpad-ui/form 0.6.5-alpha.0 → 0.6.5-alpha.2
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/Checkbox.d.ts +19 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/CompactTextField.d.ts +20 -0
- package/dist/CompactTextField.d.ts.map +1 -0
- package/dist/FieldError.d.ts +12 -0
- package/dist/FieldError.d.ts.map +1 -0
- package/dist/FieldSet.d.ts +9 -0
- package/dist/FieldSet.d.ts.map +1 -0
- package/dist/Form.d.ts +11 -0
- package/dist/Form.d.ts.map +1 -0
- package/dist/FormField.d.ts +20 -0
- package/dist/FormField.d.ts.map +1 -0
- package/dist/FormGroup.d.ts +12 -0
- package/dist/FormGroup.d.ts.map +1 -0
- package/dist/FormHint.d.ts +9 -0
- package/dist/FormHint.d.ts.map +1 -0
- package/dist/IconField.d.ts +12 -0
- package/dist/IconField.d.ts.map +1 -0
- package/dist/Label.d.ts +12 -0
- package/dist/Label.d.ts.map +1 -0
- package/dist/Radio.d.ts +11 -0
- package/dist/Radio.d.ts.map +1 -0
- package/dist/RadioGroup.d.ts +42 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RequiredAsterisk.d.ts +9 -0
- package/dist/RequiredAsterisk.d.ts.map +1 -0
- package/dist/Select.d.ts +9 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/TextArea.d.ts +11 -0
- package/dist/TextArea.d.ts.map +1 -0
- package/dist/TextField.d.ts +17 -0
- package/dist/TextField.d.ts.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +468 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +468 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +402 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
/**
|
|
5
|
+
* The className to pass into the Checkbox's Label component
|
|
6
|
+
*/
|
|
7
|
+
labelClassName?: string;
|
|
8
|
+
'data-test-id'?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
11
|
+
/**
|
|
12
|
+
* The className to pass into the Checkbox's Label component
|
|
13
|
+
*/
|
|
14
|
+
labelClassName?: string | undefined;
|
|
15
|
+
'data-test-id'?: string | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
|
+
export { Checkbox };
|
|
18
|
+
export type { CheckboxProps };
|
|
19
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,mBAAmB,CAAC;AAE3B,aAAK,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC3D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,QAAQ;IAPZ;;OAEG;;;oDA4CJ,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TextFieldProps } from './TextField';
|
|
3
|
+
import './styles/CompactTextField.css';
|
|
4
|
+
import './styles/FormInput.css';
|
|
5
|
+
declare type CompactTextFieldProps = TextFieldProps & {
|
|
6
|
+
label: string;
|
|
7
|
+
needsErrorFeedback?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const CompactTextField: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
10
|
+
suffix?: string | undefined;
|
|
11
|
+
tiny?: boolean | undefined;
|
|
12
|
+
overrideWidth?: string | undefined;
|
|
13
|
+
'data-test-id'?: string | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
label: string;
|
|
16
|
+
needsErrorFeedback?: boolean | undefined;
|
|
17
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export { CompactTextField };
|
|
19
|
+
export type { CompactTextFieldProps };
|
|
20
|
+
//# sourceMappingURL=CompactTextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompactTextField.d.ts","sourceRoot":"","sources":["../src/CompactTextField.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAQlD,OAAO,+BAA+B,CAAC;AACvC,OAAO,wBAAwB,CAAC;AAEhC,aAAK,qBAAqB,GAAG,cAAc,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;WAJb,MAAM;;oDA2Dd,CAAC;AAIF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FieldPath } from './utils';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import './styles/Form.css';
|
|
4
|
+
declare type FieldErrorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
name: FieldPath;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
'data-test-id'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const FieldError: ({ name, errorMessage, className, "data-test-id": testId, ...rest }: FieldErrorProps) => JSX.Element | null;
|
|
10
|
+
export { FieldError };
|
|
11
|
+
export type { FieldErrorProps };
|
|
12
|
+
//# sourceMappingURL=FieldError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../src/FieldError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,mBAAmB,CAAC;AAG3B,aAAK,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IACvD,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,UAAU,uEAMb,eAAe,uBAgBjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import './styles/FieldSet.css';
|
|
3
|
+
declare type FieldSetProps = HTMLAttributes<HTMLFieldSetElement> & {
|
|
4
|
+
'data-test-id'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const FieldSet: ({ children, className, "data-test-id": testId, ...rest }: FieldSetProps) => JSX.Element;
|
|
7
|
+
export { FieldSet };
|
|
8
|
+
export type { FieldSetProps };
|
|
9
|
+
//# sourceMappingURL=FieldSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldSet.d.ts","sourceRoot":"","sources":["../src/FieldSet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,uBAAuB,CAAC;AAE/B,aAAK,aAAa,GAAG,cAAc,CAAC,mBAAmB,CAAC,GAAG;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,QAAQ,6DAKX,aAAa,gBAQf,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/Form.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type FormProps = FormHTMLAttributes<HTMLFormElement> & {
|
|
4
|
+
inline?: boolean;
|
|
5
|
+
hasIncreasedErrorMargin?: boolean;
|
|
6
|
+
'data-test-id'?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Form: (props: FormProps) => JSX.Element;
|
|
9
|
+
export { Form };
|
|
10
|
+
export type { FormProps };
|
|
11
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../src/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAIhD,OAAO,mBAAmB,CAAC;AAE3B,aAAK,SAAS,GAAG,kBAAkB,CAAC,eAAe,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,IAAI,UAAW,SAAS,gBAsB7B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './styles/FormField.css';
|
|
3
|
+
declare type FormFieldProps = {
|
|
4
|
+
isRequired: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
htmlFor: string;
|
|
8
|
+
hint?: string;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
ignoreValidation?: boolean;
|
|
11
|
+
isInvalid?: boolean;
|
|
12
|
+
children: JSX.Element;
|
|
13
|
+
className?: string;
|
|
14
|
+
onBlur?: (field: string) => void;
|
|
15
|
+
'data-test-id'?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const FormField: ({ isRequired, label, name, htmlFor, hint, errorMessage, ignoreValidation, isInvalid, children, className, onBlur, "data-test-id": testId, }: FormFieldProps) => JSX.Element;
|
|
18
|
+
export type { FormFieldProps };
|
|
19
|
+
export { FormField };
|
|
20
|
+
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../src/FormField.tsx"],"names":[],"mappings":";AAMA,OAAO,wBAAwB,CAAC;AAEhC,aAAK,cAAc,GAAG;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS,gJAaZ,cAAc,gBAyBhB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type FormGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
name?: string | string[];
|
|
5
|
+
ignoreValidation?: boolean;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
'data-test-id'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const FormGroup: (props: FormGroupProps) => JSX.Element;
|
|
10
|
+
export { FormGroup };
|
|
11
|
+
export type { FormGroupProps };
|
|
12
|
+
//# sourceMappingURL=FormGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../src/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,mBAAmB,CAAC;AAE3B,aAAK,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS,UAAW,cAAc,gBAkBvC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import './styles/FormHint.css';
|
|
3
|
+
declare type FormHintProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
'data-test-id'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const FormHint: ({ className, children, "data-test-id": testId, ...rest }: FormHintProps) => JSX.Element;
|
|
7
|
+
export { FormHint };
|
|
8
|
+
export type { FormHintProps };
|
|
9
|
+
//# sourceMappingURL=FormHint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormHint.d.ts","sourceRoot":"","sources":["../src/FormHint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,uBAAuB,CAAC;AAE/B,aAAK,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,QAAQ,6DAKX,aAAa,gBAQf,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconProps } from '@launchpad-ui/icons';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import './styles/IconField.css';
|
|
4
|
+
declare type IconFieldProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
icon(args: IconProps): JSX.Element;
|
|
6
|
+
children: JSX.Element | JSX.Element[];
|
|
7
|
+
'data-test-id'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const IconField: ({ icon, children, className, "data-test-id": testId, ...rest }: IconFieldProps) => JSX.Element;
|
|
10
|
+
export { IconField };
|
|
11
|
+
export type { IconFieldProps };
|
|
12
|
+
//# sourceMappingURL=IconField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconField.d.ts","sourceRoot":"","sources":["../src/IconField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,wBAAwB,CAAC;AAEhC,aAAK,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACrD,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;IACnC,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS,mEAMZ,cAAc,gBAWhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/Label.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LabelHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
'data-test-id'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Label: ({ disabled, className, children, required, optional, "data-test-id": testId, ...rest }: LabelProps) => JSX.Element;
|
|
10
|
+
export { Label };
|
|
11
|
+
export type { LabelProps };
|
|
12
|
+
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../src/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,mBAAmB,CAAC;AAE3B,aAAK,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,KAAK,2FAQR,UAAU,gBAUZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/Radio.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CSSProperties, InputHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
4
|
+
labelClassName?: string;
|
|
5
|
+
labelStyle?: CSSProperties;
|
|
6
|
+
'data-test-id'?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Radio: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, checked, children, className, disabled, id, labelClassName, labelStyle, "data-test-id": testId, ...rest }: RadioProps) => JSX.Element;
|
|
9
|
+
export { Radio };
|
|
10
|
+
export type { RadioProps };
|
|
11
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../src/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAKhE,OAAO,mBAAmB,CAAC;AAE3B,aAAK,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,KAAK,4KAYR,UAAU,gBA2BZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ChangeEvent, FormEvent, ReactNode } from 'react';
|
|
2
|
+
import './styles/Form.css';
|
|
3
|
+
declare type RadioGroupProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The legend that describes this groups of radio buttons. The legend
|
|
6
|
+
* is important for screen reader users.
|
|
7
|
+
*/
|
|
8
|
+
legend?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The children passed into the RadioGroup.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Custom classname(s) passed to the fieldset inner div.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Set the underlying Radio to disabled if the Radio's disabled prop is undefined.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The RadioGroup's id.
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name to apply to the underlying Radio. The same name value is passed to each Radio when grouping in a RadioGroup for screen reader support.
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* This function is passed into each Radio onChange synthetic event handler.
|
|
31
|
+
*/
|
|
32
|
+
onChange?(e: ChangeEvent | FormEvent<HTMLInputElement>): void;
|
|
33
|
+
/**
|
|
34
|
+
* The value to compare against the Radio's value to determine if the Radio will be checked.
|
|
35
|
+
*/
|
|
36
|
+
value: string;
|
|
37
|
+
'data-test-id'?: string;
|
|
38
|
+
};
|
|
39
|
+
declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
|
|
40
|
+
export { RadioGroup };
|
|
41
|
+
export type { RadioGroupProps };
|
|
42
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAO7E,OAAO,mBAAmB,CAAC;AAE3B,aAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC9D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,UAAU,UAAW,eAAe,gBAoEzC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import './styles/RequiredAsterisk.css';
|
|
3
|
+
declare type RequiredAsteriskProps = HTMLAttributes<HTMLSpanElement> & {
|
|
4
|
+
'data-test-id'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const RequiredAsterisk: ({ className, "data-test-id": testId, ...rest }: RequiredAsteriskProps) => JSX.Element;
|
|
7
|
+
export { RequiredAsterisk };
|
|
8
|
+
export type { RequiredAsteriskProps };
|
|
9
|
+
//# sourceMappingURL=RequiredAsterisk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequiredAsterisk.d.ts","sourceRoot":"","sources":["../src/RequiredAsterisk.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,+BAA+B,CAAC;AAEvC,aAAK,qBAAqB,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,gBAAgB,mDAInB,qBAAqB,gBAQvB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
package/dist/Select.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SelectHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/FormInput.css';
|
|
3
|
+
declare type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
4
|
+
'data-test-id'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const Select: ({ className, children, "data-test-id": testId, ...rest }: SelectProps) => JSX.Element;
|
|
7
|
+
export { Select };
|
|
8
|
+
export type { SelectProps };
|
|
9
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIlD,OAAO,wBAAwB,CAAC;AAEhC,aAAK,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,MAAM,6DAKT,WAAW,gBAQb,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/FormInput.css';
|
|
3
|
+
declare type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
4
|
+
'data-test-id'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const TextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
7
|
+
'data-test-id'?: string | undefined;
|
|
8
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
export { TextArea };
|
|
10
|
+
export type { TextAreaProps };
|
|
11
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKnE,OAAO,wBAAwB,CAAC;AAGhC,aAAK,aAAa,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,GAAG;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,QAAQ;;uDA2Bb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
import './styles/FormInput.css';
|
|
3
|
+
declare type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
suffix?: string;
|
|
5
|
+
tiny?: boolean;
|
|
6
|
+
overrideWidth?: string;
|
|
7
|
+
'data-test-id'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const TextField: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
10
|
+
suffix?: string | undefined;
|
|
11
|
+
tiny?: boolean | undefined;
|
|
12
|
+
overrideWidth?: string | undefined;
|
|
13
|
+
'data-test-id'?: string | undefined;
|
|
14
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export { TextField };
|
|
16
|
+
export type { TextFieldProps };
|
|
17
|
+
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../src/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,wBAAwB,CAAC;AAGhC,aAAK,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;oDA0Dd,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type { CheckboxProps } from './Checkbox';
|
|
2
|
+
export type { CompactTextFieldProps } from './CompactTextField';
|
|
3
|
+
export type { FieldErrorProps } from './FieldError';
|
|
4
|
+
export type { FieldSetProps } from './FieldSet';
|
|
5
|
+
export type { FormProps } from './Form';
|
|
6
|
+
export type { FormFieldProps } from './FormField';
|
|
7
|
+
export type { FormGroupProps } from './FormGroup';
|
|
8
|
+
export type { FormHintProps } from './FormHint';
|
|
9
|
+
export type { IconFieldProps } from './IconField';
|
|
10
|
+
export type { LabelProps } from './Label';
|
|
11
|
+
export type { RadioProps } from './Radio';
|
|
12
|
+
export type { RadioGroupProps } from './RadioGroup';
|
|
13
|
+
export type { RequiredAsteriskProps } from './RequiredAsterisk';
|
|
14
|
+
export type { SelectProps } from './Select';
|
|
15
|
+
export type { TextAreaProps } from './TextArea';
|
|
16
|
+
export type { TextFieldProps } from './TextField';
|
|
17
|
+
export { Checkbox } from './Checkbox';
|
|
18
|
+
export { CompactTextField } from './CompactTextField';
|
|
19
|
+
export { FieldError } from './FieldError';
|
|
20
|
+
export { FieldSet } from './FieldSet';
|
|
21
|
+
export { Form } from './Form';
|
|
22
|
+
export { FormField } from './FormField';
|
|
23
|
+
export { FormGroup } from './FormGroup';
|
|
24
|
+
export { FormHint } from './FormHint';
|
|
25
|
+
export { IconField } from './IconField';
|
|
26
|
+
export { Label } from './Label';
|
|
27
|
+
export { Radio } from './Radio';
|
|
28
|
+
export { RadioGroup } from './RadioGroup';
|
|
29
|
+
export { RequiredAsterisk } from './RequiredAsterisk';
|
|
30
|
+
export { Select } from './Select';
|
|
31
|
+
export { TextArea } from './TextArea';
|
|
32
|
+
export { TextField } from './TextField';
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|