@instructure/ui-form-field 8.13.1-snapshot.9 → 8.14.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/CHANGELOG.md +4 -0
- package/es/FormField/index.js +3 -2
- package/es/FormField/props.js +0 -15
- package/es/FormFieldGroup/index.js +14 -10
- package/es/FormFieldGroup/props.js +0 -19
- package/es/FormFieldLabel/index.js +13 -7
- package/es/FormFieldLabel/props.js +2 -2
- package/es/FormFieldLayout/index.js +15 -10
- package/es/FormFieldLayout/props.js +5 -24
- package/es/FormFieldLayout/styles.js +1 -1
- package/es/FormFieldMessage/index.js +12 -8
- package/es/FormFieldMessages/index.js +11 -6
- package/es/FormFieldMessages/props.js +0 -6
- package/lib/FormField/index.js +3 -2
- package/lib/FormField/props.js +0 -15
- package/lib/FormFieldGroup/index.js +14 -10
- package/lib/FormFieldGroup/props.js +0 -19
- package/lib/FormFieldLabel/index.js +13 -7
- package/lib/FormFieldLabel/props.js +2 -2
- package/lib/FormFieldLayout/index.js +15 -10
- package/lib/FormFieldLayout/props.js +5 -24
- package/lib/FormFieldLayout/styles.js +1 -1
- package/lib/FormFieldMessage/index.js +12 -8
- package/lib/FormFieldMessages/index.js +11 -6
- package/lib/FormFieldMessages/props.js +0 -6
- package/package.json +15 -16
- package/src/FormField/index.tsx +3 -3
- package/src/FormField/props.ts +17 -14
- package/src/FormFieldGroup/index.tsx +6 -10
- package/src/FormFieldGroup/props.ts +24 -17
- package/src/FormFieldLabel/index.tsx +4 -6
- package/src/FormFieldLabel/props.ts +3 -3
- package/src/FormFieldLayout/index.tsx +10 -16
- package/src/FormFieldLayout/props.ts +30 -20
- package/src/FormFieldLayout/styles.ts +1 -2
- package/src/FormFieldMessage/index.tsx +5 -8
- package/src/FormFieldMessages/index.tsx +4 -6
- package/src/FormFieldMessages/props.ts +6 -6
- package/src/index.ts +1 -1
- package/tsconfig.build.json +19 -2
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/FormField/index.d.ts +4 -30
- package/types/FormField/index.d.ts.map +1 -1
- package/types/FormField/props.d.ts +17 -2
- package/types/FormField/props.d.ts.map +1 -1
- package/types/FormFieldGroup/index.d.ts +4 -4
- package/types/FormFieldGroup/index.d.ts.map +1 -1
- package/types/FormFieldGroup/props.d.ts +18 -2
- package/types/FormFieldGroup/props.d.ts.map +1 -1
- package/types/FormFieldLabel/index.d.ts +4 -3
- package/types/FormFieldLabel/index.d.ts.map +1 -1
- package/types/FormFieldLabel/props.d.ts +1 -1
- package/types/FormFieldLabel/props.d.ts.map +1 -1
- package/types/FormFieldLayout/index.d.ts +7 -32
- package/types/FormFieldLayout/index.d.ts.map +1 -1
- package/types/FormFieldLayout/props.d.ts +21 -2
- package/types/FormFieldLayout/props.d.ts.map +1 -1
- package/types/FormFieldLayout/styles.d.ts +1 -1
- package/types/FormFieldLayout/styles.d.ts.map +1 -1
- package/types/FormFieldMessage/index.d.ts +2 -2
- package/types/FormFieldMessage/index.d.ts.map +1 -1
- package/types/FormFieldMessages/index.d.ts +2 -1
- package/types/FormFieldMessages/index.d.ts.map +1 -1
- package/types/FormFieldMessages/props.d.ts +6 -0
- package/types/FormFieldMessages/props.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/LICENSE.md +0 -27
|
@@ -6,6 +6,7 @@ import type { FormFieldGroupProps, FormFieldGroupStyleProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
category: components
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
**/
|
|
10
11
|
declare class FormFieldGroup extends Component<FormFieldGroupProps> {
|
|
11
12
|
static readonly componentId = "FormFieldGroup";
|
|
@@ -20,7 +21,7 @@ declare class FormFieldGroup extends Component<FormFieldGroupProps> {
|
|
|
20
21
|
rowSpacing?: "small" | "none" | "medium" | "large" | undefined;
|
|
21
22
|
colSpacing?: "small" | "none" | "medium" | "large" | undefined;
|
|
22
23
|
vAlign?: "middle" | "bottom" | "top" | undefined;
|
|
23
|
-
startAt?:
|
|
24
|
+
startAt?: "small" | "medium" | "large" | "x-large" | null | undefined;
|
|
24
25
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
25
26
|
}>;
|
|
26
27
|
static allowedProps: readonly (keyof {
|
|
@@ -34,11 +35,10 @@ declare class FormFieldGroup extends Component<FormFieldGroupProps> {
|
|
|
34
35
|
rowSpacing?: "small" | "none" | "medium" | "large" | undefined;
|
|
35
36
|
colSpacing?: "small" | "none" | "medium" | "large" | undefined;
|
|
36
37
|
vAlign?: "middle" | "bottom" | "top" | undefined;
|
|
37
|
-
startAt?:
|
|
38
|
+
startAt?: "small" | "medium" | "large" | "x-large" | null | undefined;
|
|
38
39
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
39
40
|
})[];
|
|
40
41
|
static defaultProps: {
|
|
41
|
-
children: null;
|
|
42
42
|
as: string;
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
rowSpacing: string;
|
|
@@ -48,7 +48,7 @@ declare class FormFieldGroup extends Component<FormFieldGroupProps> {
|
|
|
48
48
|
ref: Element | null;
|
|
49
49
|
handleRef: (el: Element | null) => void;
|
|
50
50
|
componentDidMount(): void;
|
|
51
|
-
componentDidUpdate(
|
|
51
|
+
componentDidUpdate(): void;
|
|
52
52
|
get makeStylesVariables(): FormFieldGroupStyleProps;
|
|
53
53
|
get invalid(): boolean;
|
|
54
54
|
renderColumns(): jsx.JSX.Element[] | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldGroup/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAIzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE5E
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldGroup/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAIzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE5E;;;;;GAKG;AACH,cACM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAmB;IAE9C,MAAM,CAAC,SAAS;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,mBAAmB,IAAI,wBAAwB,CAElD;IAED,IAAI,OAAO,YAOV;IAED,aAAa;IAiBb,cAAc;IAgBd,YAAY;IAUZ,MAAM;CAkBP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AsElementType, PropValidators, FormFieldGroupTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
|
+
import type { FormFieldLayoutOwnProps } from '../FormFieldLayout/props';
|
|
4
5
|
import type { FormMessage } from '../FormPropTypes';
|
|
5
6
|
declare type FormFieldGroupOwnProps = {
|
|
6
7
|
description: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* the element type to render as
|
|
10
|
+
*/
|
|
7
11
|
as?: AsElementType;
|
|
12
|
+
/**
|
|
13
|
+
* Array of objects with shape: `{
|
|
14
|
+
* text: React.ReactNode,
|
|
15
|
+
* type: One of: ['error', 'hint', 'success', 'screenreader-only']
|
|
16
|
+
* }`
|
|
17
|
+
*/
|
|
8
18
|
messages?: FormMessage[];
|
|
19
|
+
/**
|
|
20
|
+
* id for the form field messages
|
|
21
|
+
*/
|
|
9
22
|
messagesId?: string;
|
|
10
23
|
disabled?: boolean;
|
|
11
24
|
children?: React.ReactNode;
|
|
@@ -13,7 +26,10 @@ declare type FormFieldGroupOwnProps = {
|
|
|
13
26
|
rowSpacing?: 'none' | 'small' | 'medium' | 'large';
|
|
14
27
|
colSpacing?: 'none' | 'small' | 'medium' | 'large';
|
|
15
28
|
vAlign?: 'top' | 'middle' | 'bottom';
|
|
16
|
-
startAt?:
|
|
29
|
+
startAt?: 'small' | 'medium' | 'large' | 'x-large' | null;
|
|
30
|
+
/**
|
|
31
|
+
* provides a reference to the underlying html root element
|
|
32
|
+
*/
|
|
17
33
|
elementRef?: (element: Element | null) => void;
|
|
18
34
|
};
|
|
19
35
|
declare type FormFieldGroupStyleProps = {
|
|
@@ -21,7 +37,7 @@ declare type FormFieldGroupStyleProps = {
|
|
|
21
37
|
};
|
|
22
38
|
declare type PropKeys = keyof FormFieldGroupOwnProps;
|
|
23
39
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
24
|
-
declare type FormFieldGroupProps = FormFieldGroupOwnProps & WithStyleProps<FormFieldGroupTheme, FormFieldGroupStyle> & OtherHTMLAttributes<FormFieldGroupOwnProps>;
|
|
40
|
+
declare type FormFieldGroupProps = FormFieldGroupOwnProps & WithStyleProps<FormFieldGroupTheme, FormFieldGroupStyle> & OtherHTMLAttributes<FormFieldGroupOwnProps> & Omit<FormFieldLayoutOwnProps, 'messages' | 'messagesId' | 'vAlign' | 'layout' | 'label' | 'children'>;
|
|
25
41
|
declare type FormFieldGroupStyle = ComponentStyle<'formFieldGroup'>;
|
|
26
42
|
declare const propTypes: PropValidators<PropKeys>;
|
|
27
43
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldGroup/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,aAAK,sBAAsB,GAAG;IAC5B,WAAW,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;IACzC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACpC,OAAO,CAAC,EAAE,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldGroup/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,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O,GAAG,UAAU,CACvE,CAAA;AAEH,aAAK,mBAAmB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAE3D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAavC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EACV,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACpB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -6,6 +6,7 @@ import type { FormFieldLabelProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
parent: FormField
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
|
|
10
11
|
This is a helper component that is used by most of the custom form
|
|
11
12
|
components. In most cases it shouldn't be used directly.
|
|
@@ -21,12 +22,12 @@ example: true
|
|
|
21
22
|
declare class FormFieldLabel extends Component<FormFieldLabelProps> {
|
|
22
23
|
static readonly componentId = "FormFieldLabel";
|
|
23
24
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
24
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
25
25
|
children: import("react").ReactNode;
|
|
26
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
26
27
|
}>;
|
|
27
28
|
static allowedProps: readonly (keyof {
|
|
28
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
29
29
|
children: import("react").ReactNode;
|
|
30
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
30
31
|
})[];
|
|
31
32
|
static defaultProps: {
|
|
32
33
|
readonly as: "span";
|
|
@@ -34,7 +35,7 @@ declare class FormFieldLabel extends Component<FormFieldLabelProps> {
|
|
|
34
35
|
ref: Element | null;
|
|
35
36
|
handleRef: (el: Element | null) => void;
|
|
36
37
|
componentDidMount(): void;
|
|
37
|
-
componentDidUpdate(
|
|
38
|
+
componentDidUpdate(): void;
|
|
38
39
|
render(): jsx.JSX.Element;
|
|
39
40
|
}
|
|
40
41
|
export default FormFieldLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldLabel/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldLabel/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;;;;;;;;;;;;GAgBG;AACH,cACM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAmB;IAE9C,MAAM,CAAC,SAAS;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;SAAe;IAClC,MAAM,CAAC,YAAY;;MAET;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAgBP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type { AsElementType, PropValidators, FormFieldLabelTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type FormFieldLabelOwnProps = {
|
|
5
|
-
as?: AsElementType;
|
|
6
5
|
children: React.ReactNode;
|
|
6
|
+
as?: AsElementType;
|
|
7
7
|
};
|
|
8
8
|
declare type PropKeys = keyof FormFieldLabelOwnProps;
|
|
9
9
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldLabel/props.ts"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldLabel/props.ts"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,EAAE,CAAC,EAAE,aAAa,CAAA;CACnB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,aAAK,mBAAmB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAE3D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAGvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAoC,CAAA;AAExD,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -6,54 +6,29 @@ import type { FormFieldLayoutProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
parent: FormField
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
**/
|
|
10
11
|
declare class FormFieldLayout extends Component<FormFieldLayoutProps> {
|
|
11
12
|
static readonly componentId = "FormFieldLayout";
|
|
12
|
-
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof
|
|
13
|
-
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
16
|
-
messages?: import("../FormPropTypes").FormMessage[] | undefined;
|
|
17
|
-
messagesId?: string | undefined;
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
inline?: boolean | undefined;
|
|
20
|
-
layout?: "inline" | "stacked" | undefined;
|
|
21
|
-
labelAlign?: "start" | "end" | undefined;
|
|
22
|
-
width?: string | undefined;
|
|
23
|
-
inputContainerRef?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
elementRef?: ((element: Element | null) => void) | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
static allowedProps: readonly (keyof {
|
|
27
|
-
label: import("react").ReactNode;
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
30
|
-
messages?: import("../FormPropTypes").FormMessage[] | undefined;
|
|
31
|
-
messagesId?: string | undefined;
|
|
32
|
-
children?: import("react").ReactNode;
|
|
33
|
-
inline?: boolean | undefined;
|
|
34
|
-
layout?: "inline" | "stacked" | undefined;
|
|
35
|
-
labelAlign?: "start" | "end" | undefined;
|
|
36
|
-
width?: string | undefined;
|
|
37
|
-
inputContainerRef?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
elementRef?: ((element: Element | null) => void) | undefined;
|
|
39
|
-
})[];
|
|
13
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof import("./props").FormFieldLayoutOwnProps>;
|
|
14
|
+
static allowedProps: readonly (keyof import("./props").FormFieldLayoutOwnProps)[];
|
|
40
15
|
static defaultProps: {
|
|
41
|
-
readonly children: null;
|
|
42
16
|
readonly inline: false;
|
|
43
17
|
readonly layout: "stacked";
|
|
44
18
|
readonly as: "label";
|
|
45
19
|
readonly labelAlign: "end";
|
|
46
20
|
};
|
|
47
|
-
constructor(props:
|
|
21
|
+
constructor(props: FormFieldLayoutProps);
|
|
22
|
+
private _messagesId;
|
|
48
23
|
ref: Element | null;
|
|
49
24
|
handleRef: (el: Element | null) => void;
|
|
50
25
|
componentDidMount(): void;
|
|
51
|
-
componentDidUpdate(
|
|
26
|
+
componentDidUpdate(): void;
|
|
52
27
|
get hasVisibleLabel(): boolean | "" | 0 | null | undefined;
|
|
53
28
|
get hasMessages(): boolean | undefined;
|
|
54
29
|
get elementType(): import("@instructure/shared-types/types/CommonProps").AsElementType;
|
|
55
30
|
get inlineContainerAndLabel(): boolean | undefined;
|
|
56
|
-
handleInputContainerRef: (node:
|
|
31
|
+
handleInputContainerRef: (node: HTMLSpanElement | null) => void;
|
|
57
32
|
renderLabel(): import("react").ReactNode;
|
|
58
33
|
renderLegend(): jsx.JSX.Element;
|
|
59
34
|
renderVisibleMessages(): jsx.JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldLayout/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldLayout/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;;GAKG;AACH,cACM,eAAgB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS,yHAAY;IAC5B,MAAM,CAAC,YAAY,+DAAe;IAClC,MAAM,CAAC,YAAY;;;;;MAKT;gBAEE,KAAK,EAAE,oBAAoB;IAcvC,OAAO,CAAC,WAAW,CAAQ;IAE3B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,eAAe,wCAElB;IAED,IAAI,WAAW,wBAEd;IAED,IAAI,WAAW,wEAEd;IAED,IAAI,uBAAuB,wBAG1B;IAED,uBAAuB,SAAU,eAAe,GAAG,IAAI,UAItD;IAED,WAAW;IAsBX,YAAY;IAaZ,qBAAqB;IAgBrB,MAAM;CAwCP;AAED,eAAe,eAAe,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -4,16 +4,35 @@ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
|
4
4
|
import type { FormMessage } from '../FormPropTypes';
|
|
5
5
|
declare type FormFieldLayoutOwnProps = {
|
|
6
6
|
label: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* the id of the input (to link it to its label for a11y)
|
|
9
|
+
*/
|
|
7
10
|
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* the element type to render as
|
|
13
|
+
*/
|
|
8
14
|
as?: AsElementType;
|
|
15
|
+
/**
|
|
16
|
+
* Array of objects with shape: `{
|
|
17
|
+
* text: React.ReactNode,
|
|
18
|
+
* type: One of: ['error', 'hint', 'success', 'screenreader-only']
|
|
19
|
+
* }`
|
|
20
|
+
*/
|
|
9
21
|
messages?: FormMessage[];
|
|
22
|
+
/**
|
|
23
|
+
* id for the form field messages
|
|
24
|
+
*/
|
|
10
25
|
messagesId?: string;
|
|
11
26
|
children?: React.ReactNode;
|
|
12
27
|
inline?: boolean;
|
|
13
28
|
layout?: 'stacked' | 'inline';
|
|
14
29
|
labelAlign?: 'start' | 'end';
|
|
30
|
+
vAlign?: 'top' | 'middle' | 'bottom';
|
|
15
31
|
width?: string;
|
|
16
|
-
inputContainerRef?: (
|
|
32
|
+
inputContainerRef?: (element: HTMLSpanElement | null) => void;
|
|
33
|
+
/**
|
|
34
|
+
* provides a reference to the underlying html root element
|
|
35
|
+
*/
|
|
17
36
|
elementRef?: (element: Element | null) => void;
|
|
18
37
|
};
|
|
19
38
|
declare type PropKeys = keyof FormFieldLayoutOwnProps;
|
|
@@ -22,6 +41,6 @@ declare type FormFieldLayoutProps = FormFieldLayoutOwnProps & WithStyleProps<nul
|
|
|
22
41
|
declare type FormFieldLayoutStyle = ComponentStyle<'formFieldLayout'>;
|
|
23
42
|
declare const propTypes: PropValidators<PropKeys>;
|
|
24
43
|
declare const allowedProps: AllowedPropKeys;
|
|
25
|
-
export type { FormFieldLayoutProps, FormFieldLayoutStyle };
|
|
44
|
+
export type { FormFieldLayoutProps, FormFieldLayoutStyle, FormFieldLayoutOwnProps };
|
|
26
45
|
export { propTypes, allowedProps };
|
|
27
46
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldLayout/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO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AAO,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC5B,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7D;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,uBAAuB,CAAA;AAE7C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,oBAAoB,GAAG,uBAAuB,GACjD,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,GAC1C,mBAAmB,CAAC,uBAAuB,CAAC,CAAA;AAE9C,aAAK,oBAAoB,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAE7D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAcvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAiBnB,CAAA;AAED,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACxB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -9,6 +9,6 @@ import type { FormFieldLayoutProps, FormFieldLayoutStyle } from './props';
|
|
|
9
9
|
* @param {Object} state the state of the component, the style is applied to
|
|
10
10
|
* @return {Object} The final style object, which will be used in the component
|
|
11
11
|
*/
|
|
12
|
-
declare const generateStyle: (
|
|
12
|
+
declare const generateStyle: (_componentTheme: null, props: FormFieldLayoutProps) => FormFieldLayoutStyle;
|
|
13
13
|
export default generateStyle;
|
|
14
14
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/FormFieldLayout/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEzE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/FormFieldLayout/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEzE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,oBACA,IAAI,SACd,oBAAoB,KAC1B,oBAwBF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -6,6 +6,7 @@ import type { FormFieldMessageProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
parent: FormField
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
|
|
10
11
|
This is a helper component that is used by most of the custom form
|
|
11
12
|
components. In most cases it shouldn't be used directly.
|
|
@@ -29,12 +30,11 @@ declare class FormFieldMessage extends Component<FormFieldMessageProps> {
|
|
|
29
30
|
})[];
|
|
30
31
|
static defaultProps: {
|
|
31
32
|
variant: string;
|
|
32
|
-
children: null;
|
|
33
33
|
};
|
|
34
34
|
ref: Element | null;
|
|
35
35
|
handleRef: (el: Element | null) => void;
|
|
36
36
|
componentDidMount(): void;
|
|
37
|
-
componentDidUpdate(
|
|
37
|
+
componentDidUpdate(): void;
|
|
38
38
|
render(): jsx.JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export default FormFieldMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessage/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessage/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,cACM,gBAAiB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IAC7D,MAAM,CAAC,QAAQ,CAAC,WAAW,sBAAqB;IAEhD,MAAM,CAAC,SAAS;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;SAAe;IAClC,MAAM,CAAC,YAAY;;MAElB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAaP;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -6,6 +6,7 @@ import type { FormFieldMessagesProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
parent: FormField
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
|
|
10
11
|
A FormFieldMessages component
|
|
11
12
|
|
|
@@ -28,7 +29,7 @@ declare class FormFieldMessages extends Component<FormFieldMessagesProps> {
|
|
|
28
29
|
ref: Element | null;
|
|
29
30
|
handleRef: (el: Element | null) => void;
|
|
30
31
|
componentDidMount(): void;
|
|
31
|
-
componentDidUpdate(
|
|
32
|
+
componentDidUpdate(): void;
|
|
32
33
|
render(): jsx.JSX.Element | null;
|
|
33
34
|
}
|
|
34
35
|
export default FormFieldMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessages/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessages/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,cACM,iBAAkB,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAC/D,MAAM,CAAC,QAAQ,CAAC,WAAW,uBAAsB;IAEjD,MAAM,CAAC,SAAS,oFAAY;IAC5B,MAAM,CAAC,YAAY,wBAAe;IAClC,MAAM,CAAC,YAAY,KAAK;IAExB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAmBP;AAED,eAAe,iBAAiB,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -2,6 +2,12 @@ import type { PropValidators, FormFieldMessagesTheme, OtherHTMLAttributes } from
|
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
3
|
import type { FormMessage } from '../FormPropTypes';
|
|
4
4
|
declare type FormFieldMessagesOwnProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Array of objects with shape: `{
|
|
7
|
+
* text: React.ReactNode,
|
|
8
|
+
* type: One of: ['error', 'hint', 'success', 'screenreader-only']
|
|
9
|
+
* }`
|
|
10
|
+
*/
|
|
5
11
|
messages?: FormMessage[];
|
|
6
12
|
};
|
|
7
13
|
declare type PropKeys = keyof FormFieldMessagesOwnProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessages/props.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,aAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;CACzB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,yBAAyB,CAAA;AAE/C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,sBAAsB,GAAG,yBAAyB,GACrD,cAAc,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,GAC9D,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;AAEhD,aAAK,sBAAsB,GAAG,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;AAE7E,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/FormFieldMessages/props.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,aAAK,yBAAyB,GAAG;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;CACzB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,yBAAyB,CAAA;AAE/C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,sBAAsB,GAAG,yBAAyB,GACrD,cAAc,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,GAC9D,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;AAEhD,aAAK,sBAAsB,GAAG,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;AAE7E,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAEvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAA8B,CAAA;AAElD,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { FormFieldLayout } from './FormFieldLayout';
|
|
|
6
6
|
export { FormFieldGroup } from './FormFieldGroup';
|
|
7
7
|
export { FormPropTypes } from './FormPropTypes';
|
|
8
8
|
export type { FormMessageType, FormMessage } from './FormPropTypes';
|
|
9
|
-
export type { FormFieldProps } from './FormField/props';
|
|
9
|
+
export type { FormFieldOwnProps, FormFieldProps } from './FormField/props';
|
|
10
10
|
export type { FormFieldLabelProps } from './FormFieldLabel/props';
|
|
11
11
|
export type { FormFieldMessageProps } from './FormFieldMessage/props';
|
|
12
12
|
export type { FormFieldMessagesProps } from './FormFieldMessages/props';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,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ENSE.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|