@servicetitan/form 26.0.0 → 26.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/file-uploader/config.d.ts +1 -1
- package/dist/file-uploader/config.d.ts.map +1 -1
- package/dist/file-uploader/file-uploader.d.ts +1 -1
- package/dist/file-uploader/file-uploader.d.ts.map +1 -1
- package/dist/form-state-error-banner/form-state-error-banner.d.ts +1 -2
- package/dist/form-state-error-banner/form-state-error-banner.d.ts.map +1 -1
- package/dist/form-state-error-banner/form-state-error-banner.js.map +1 -1
- package/dist/number-input/number-input.d.ts +1 -2
- package/dist/number-input/number-input.d.ts.map +1 -1
- package/dist/number-input/number-input.js.map +1 -1
- package/dist/original-number-input/ordinal-number-input.d.ts +1 -1
- package/dist/original-number-input/ordinal-number-input.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/date-range-picker/date-range-picker.tsx +1 -1
- package/src/file-uploader/config.tsx +1 -1
- package/src/file-uploader/file-uploader.tsx +1 -1
- package/src/form-state-error-banner/form-state-error-banner.tsx +1 -1
- package/src/number-input/number-input.tsx +1 -1
- package/src/original-number-input/ordinal-number-input.tsx +1 -1
@@ -40,7 +40,7 @@ export declare class DateRangePicker extends Component<DateRangePickerProps> {
|
|
40
40
|
handleChange: (event: DateRangePickerChangeEvent) => void;
|
41
41
|
handleFromChange: (from?: Date) => void;
|
42
42
|
handleToChange: (to?: Date) => void;
|
43
|
-
render(): JSX.Element;
|
43
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
44
44
|
formatDate(date?: Date, inputFormat?: string): string;
|
45
45
|
handleHiddenInputChange: (ev: SyntheticEvent<HTMLInputElement>) => void;
|
46
46
|
get maxFromDate(): Date | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../src/date-range-picker/date-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,E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E,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC/D,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBACa,eAAgB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IAEpD,QAAQ,CAAC,EAAE,GAAG,CAAsB;IAChD,SAAS,UAAS;IACN,cAAc,UAAS;IACnC,aAAa,UAAS;IACtB,wBAAwB,UAAS;gBAErB,KAAK,EAAE,oBAAoB;IAMvC,SAAS,aAAc,cAAc,UAEnC;IAGF,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO;IAIzB,iBAAiB,QAAS,KAAK,UAqB7B;IAEF,0BAA0B,aAExB;IAEF,eAAe,aAUb;IAEF,iBAAiB;IAIjB,oBAAoB;IAIpB,YAAY,UAAW,0BAA0B,UAQ/C;IAEF,gBAAgB,UAAW,IAAI,UAQ7B;IAEF,cAAc,QAAS,IAAI,UAQzB;IAEF,MAAM;IAiIN,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,SAAM;IAIzC,uBAAuB,OAAQ,eAAe,gBAAgB,CAAC,UAG7D;IAEF,IAAI,WAAW,qBAad;IAED,IAAI,SAAS,qBAYZ;CACJ"}
|
@@ -12,7 +12,7 @@ export interface FileUploaderConfig {
|
|
12
12
|
errorParser?(error?: string): string;
|
13
13
|
}
|
14
14
|
export declare const FILE_UPLOADER_CONFIGURATION_TOKEN: import("@servicetitan/react-ioc").SymbolToken<FileUploaderConfig>;
|
15
|
-
interface FileUploaderConfigurationProviderProps extends PropsWithChildren {
|
15
|
+
interface FileUploaderConfigurationProviderProps extends PropsWithChildren<{}> {
|
16
16
|
value: FileUploaderConfig;
|
17
17
|
}
|
18
18
|
export declare const FileUploaderConfigurationProvider: FC<FileUploaderConfigurationProviderProps>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/file-uploader/config.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9C,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,iCAAiC,mEAE7C,CAAC;AAEF,UAAU,sCAAuC,SAAQ,iBAAiB;
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/file-uploader/config.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9C,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,iCAAiC,mEAE7C,CAAC;AAEF,UAAU,sCAAuC,SAAQ,iBAAiB,CAAC,EAAE,CAAC;IAC1E,KAAK,EAAE,kBAAkB,CAAC;CAC7B;AAED,eAAO,MAAM,iCAAiC,EAAE,EAAE,CAAC,sCAAsC,CAOxF,CAAC"}
|
@@ -39,7 +39,7 @@ export declare class FileUploader extends Component<FileUploaderProps> {
|
|
39
39
|
}) => void;
|
40
40
|
handleDelete: ({ file }: FileDescriptor) => void;
|
41
41
|
handleErrorsClose: () => void;
|
42
|
-
render(): JSX.Element | null;
|
42
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
43
43
|
}
|
44
44
|
export {};
|
45
45
|
//# sourceMappingURL=file-uploader.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../src/file-uploader/file-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,OAAO,CAAC;AAOhD,OAAO,EAAc,cAAc,EAAU,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGlG,OAAO,EAAE,kBAAkB,EAAqC,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,UAAU,WAAW;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AA4BD,aAAK,uBAAuB,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC;AAEhG,U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4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { FormState, ValidatableMapOrArray } from 'formstate';
|
3
2
|
export interface FormStateErrorBannerProps<T extends ValidatableMapOrArray> {
|
4
3
|
form: FormState<T>;
|
@@ -6,5 +5,5 @@ export interface FormStateErrorBannerProps<T extends ValidatableMapOrArray> {
|
|
6
5
|
errorTitle?: string;
|
7
6
|
successTitle?: string;
|
8
7
|
}
|
9
|
-
export declare const FormStateErrorBanner: <T extends ValidatableMapOrArray>({ form, className, errorTitle, successTitle, }: FormStateErrorBannerProps<T>) => JSX.Element;
|
8
|
+
export declare const FormStateErrorBanner: <T extends ValidatableMapOrArray>({ form, className, errorTitle, successTitle, }: FormStateErrorBannerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
10
9
|
//# sourceMappingURL=form-state-error-banner.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form-state-error-banner.d.ts","sourceRoot":"","sources":["../../src/form-state-error-banner/form-state-error-banner.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"form-state-error-banner.d.ts","sourceRoot":"","sources":["../../src/form-state-error-banner/form-state-error-banner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,qBAAqB;IACtE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,4JA6BhC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"form-state-error-banner.js","sourceRoot":"","sources":["../../src/form-state-error-banner/form-state-error-banner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CACxC,CAAkC,EAC9B,IAAI,EACJ,SAAS,EACT,UAAU,GAAG,iBAAiB,EAC9B,YAAY,GAAG,eAAe,GACH,
|
1
|
+
{"version":3,"file":"form-state-error-banner.js","sourceRoot":"","sources":["../../src/form-state-error-banner/form-state-error-banner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAUtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CACxC,CAAkC,EAC9B,IAAI,EACJ,SAAS,EACT,UAAU,GAAG,iBAAiB,EAC9B,YAAY,GAAG,eAAe,GACH,EAAE,EAAE;IAC/B,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE;QAC5C,IAAI,SAAS,CAAC,SAAS,EAAE;YACrB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;SACpC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,IAAI,CAAC,SAAS,EAAE;QAChB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC/B;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;IAC5D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC;IAC9D,OAAO,CACH,KAAC,MAAM,kBAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,QAAC,KAAK,EAAE,KAAK,gBAC3D,uBACK,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YACtB,oDAAoD;YACpD,uBAAiB,CAAC,IAAT,KAAK,CAAU,CAC3B,CAAC,GACD,IACA,CACZ,CAAC;AACN,CAAC,CACJ,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { InputProps } from '@servicetitan/design-system';
|
3
2
|
import { FormatNumber } from './get-formatted-string';
|
4
3
|
import { EmptyValue, NumberValue } from './common-interfaces';
|
@@ -13,5 +12,5 @@ export interface NumberInputProps<TEmpty extends EmptyValue> extends Omit<InputP
|
|
13
12
|
formatNumber?: FormatNumber;
|
14
13
|
onChange(value: NumberValue<TEmpty>): void;
|
15
14
|
}
|
16
|
-
export declare const NumberInput: <TEmpty extends EmptyValue>({ value, onChange, onFocus, onBlur, emptyValue, decimalPlaces, useEmptyThousandsSeparator, min, max, useKeyboardNavigation, formatNumber, ...props }: NumberInputProps<TEmpty>) => JSX.Element;
|
15
|
+
export declare const NumberInput: <TEmpty extends EmptyValue>({ value, onChange, onFocus, onBlur, emptyValue, decimalPlaces, useEmptyThousandsSeparator, min, max, useKeyboardNavigation, formatNumber, ...props }: NumberInputProps<TEmpty>) => import("react/jsx-runtime").JSX.Element;
|
17
16
|
//# sourceMappingURL=number-input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/number-input/number-input.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/number-input/number-input.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAS,UAAU,EAAqB,MAAM,6BAA6B,CAAC;AAInF,OAAO,EAAE,YAAY,EAAsB,MAAM,wBAAwB,CA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B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,qBAAqB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,IAC9D,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -9,7 +9,7 @@ export interface OrdinalNumberInputProps extends Omit<InputProps, 'onChange'> {
|
|
9
9
|
export declare class OrdinalNumberInput extends Component<OrdinalNumberInputProps> {
|
10
10
|
hasFocus: boolean;
|
11
11
|
constructor(props: OrdinalNumberInputProps);
|
12
|
-
render(): JSX.Element;
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
13
13
|
private handleFocus;
|
14
14
|
private handleBlur;
|
15
15
|
private handleChange;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ordinal-number-input.d.ts","sourceRoot":"","sources":["../../src/original-number-input/ordinal-number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,qBACa,kBAAmB,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IAC1D,QAAQ,UAAS;gBAEjB,KAAK,EAAE,uBAAuB;IAK1C,MAAM
|
1
|
+
{"version":3,"file":"ordinal-number-input.d.ts","sourceRoot":"","sources":["../../src/original-number-input/ordinal-number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,qBACa,kBAAmB,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IAC1D,QAAQ,UAAS;gBAEjB,KAAK,EAAE,uBAAuB;IAK1C,MAAM;IAeE,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,UAAU,CAAiC;IAE3D,OAAO,CAAC,YAAY,CAKlB;IAEF,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,eAAe;CAO1B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,sBAWxE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAkBjD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAkBjD"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/form",
|
3
|
-
"version": "26.
|
3
|
+
"version": "26.2.0",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/form",
|
6
6
|
"repository": {
|
@@ -16,10 +16,10 @@
|
|
16
16
|
"src"
|
17
17
|
],
|
18
18
|
"devDependencies": {
|
19
|
-
"@servicetitan/confirm": "^26.
|
20
|
-
"@servicetitan/culture": "^26.
|
19
|
+
"@servicetitan/confirm": "^26.2.0",
|
20
|
+
"@servicetitan/culture": "^26.2.0",
|
21
21
|
"@servicetitan/design-system": "~13.4.5",
|
22
|
-
"@servicetitan/form-state": "^26.
|
22
|
+
"@servicetitan/form-state": "^26.2.0",
|
23
23
|
"@servicetitan/hash-browser-router": "^23.2.1",
|
24
24
|
"@servicetitan/react-ioc": "^23.2.1",
|
25
25
|
"@servicetitan/tokens": ">=12.2.1",
|
@@ -30,23 +30,23 @@
|
|
30
30
|
"accounting": "~0.4.1",
|
31
31
|
"formstate": "^2.1.0",
|
32
32
|
"mobx": "~6.6.0",
|
33
|
-
"mobx-react": "~7.5.
|
33
|
+
"mobx-react": "~7.5.1",
|
34
34
|
"moment": "~2.29.3",
|
35
35
|
"react": "~18.2.0",
|
36
36
|
"react-dom": "~18.2.0",
|
37
37
|
"resumablejs": "~1.0.2"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|
40
|
-
"@servicetitan/confirm": "^26.
|
41
|
-
"@servicetitan/culture": "^26.
|
40
|
+
"@servicetitan/confirm": "^26.2.0",
|
41
|
+
"@servicetitan/culture": "^26.2.0",
|
42
42
|
"@servicetitan/design-system": ">=13.2.1",
|
43
|
-
"@servicetitan/form-state": "^26.
|
43
|
+
"@servicetitan/form-state": "^26.2.0",
|
44
44
|
"@servicetitan/react-ioc": ">21.0.0",
|
45
45
|
"@servicetitan/tokens": ">=12.2.1",
|
46
46
|
"accounting": "~0.4.1",
|
47
47
|
"formstate": "^2.1.0",
|
48
48
|
"mobx": "~6.6.0",
|
49
|
-
"mobx-react": "
|
49
|
+
"mobx-react": ">=7.5.1",
|
50
50
|
"moment": "~2.29.3",
|
51
51
|
"react": ">=17.0.2",
|
52
52
|
"react-dom": ">=17.0.2",
|
@@ -68,5 +68,5 @@
|
|
68
68
|
"less": true,
|
69
69
|
"webpack": false
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "2ab1ef6df0e13a53f749abeb243263b4594559ef"
|
72
72
|
}
|
@@ -19,7 +19,7 @@ export const FILE_UPLOADER_CONFIGURATION_TOKEN = symbolToken<FileUploaderConfig>
|
|
19
19
|
'FILE_UPLOADER_CONFIGURATION_TOKEN'
|
20
20
|
);
|
21
21
|
|
22
|
-
interface FileUploaderConfigurationProviderProps extends PropsWithChildren {
|
22
|
+
interface FileUploaderConfigurationProviderProps extends PropsWithChildren<{}> {
|
23
23
|
value: FileUploaderConfig;
|
24
24
|
}
|
25
25
|
|
@@ -16,7 +16,7 @@ export const FormStateErrorBanner = observer(
|
|
16
16
|
className,
|
17
17
|
errorTitle = 'Form Incomplete',
|
18
18
|
successTitle = 'Form Complete',
|
19
|
-
}: FormStateErrorBannerProps<T>)
|
19
|
+
}: FormStateErrorBannerProps<T>) => {
|
20
20
|
const errors: string[] = [];
|
21
21
|
traverseFormState(true, form, (_0, formState) => {
|
22
22
|
if (formState.formError) {
|