@spscommerce/ds-react 5.10.5 → 5.12.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.
@@ -17,11 +17,12 @@ declare const propTypes: {
17
17
  value: PropTypes.Requireable<string>;
18
18
  zeroState: PropTypes.Requireable<string>;
19
19
  loading: PropTypes.Requireable<boolean>;
20
+ maxHeightOptionList: PropTypes.Requireable<number>;
20
21
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
21
22
  className: PropTypes.Requireable<string>;
22
23
  "data-testid": PropTypes.Requireable<string>;
23
24
  unsafelyReplaceClassName: PropTypes.Requireable<string>;
24
25
  };
25
26
  export declare type SpsAutocompleteProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
26
- export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, loading, ...rest }: SpsAutocompleteProps): JSX.Element;
27
+ export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, loading, maxHeightOptionList, ...rest }: SpsAutocompleteProps): JSX.Element;
27
28
  export {};
@@ -14,5 +14,5 @@ declare const propTypes: {
14
14
  unsafelyReplaceClassName: PropTypes.Requireable<string>;
15
15
  };
16
16
  export declare type SpsDatepickerV2Props = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
17
- export declare function SpsDatepickerV2({ children, className, disabled, formMeta, id, maxDate, minDate, onChange, value, ...rest }: SpsDatepickerV2Props): JSX.Element;
17
+ export declare function SpsDatepickerV2({ children, className, disabled, formMeta, id, maxDate, minDate, onChange, value, "data-testid": testId, ...rest }: SpsDatepickerV2Props): JSX.Element;
18
18
  export {};
@@ -14,6 +14,7 @@ declare const propTypes: {
14
14
  onOpen: PropTypes.Requireable<() => void>;
15
15
  onClose: PropTypes.Requireable<() => void>;
16
16
  loading: PropTypes.Requireable<boolean>;
17
+ maxHeightOptionList: PropTypes.Requireable<number>;
17
18
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
19
  className: PropTypes.Requireable<string>;
19
20
  "data-testid": PropTypes.Requireable<string>;
@@ -17,6 +17,7 @@ export declare abstract class SpsFormMetaBase<T> {
17
17
  setValidators(newValidators: Array<SpsValidator<T>>): SpsFormMetaBase<T>;
18
18
  validate(newValue: T): SpsFormMetaBase<T>;
19
19
  isValid(): boolean;
20
+ hasErrors(): boolean;
20
21
  isVisibilyInvalid(): boolean;
21
22
  hasError(errorKey: string): any;
22
23
  hasPreventativeError(errorKey: string): boolean;
@@ -54,6 +55,7 @@ export declare abstract class SpsFormSetMeta<T extends SpsFormSetValue, U extend
54
55
  private rollup;
55
56
  isFocused(): boolean;
56
57
  isValid(): boolean;
58
+ hasErrors(): boolean;
57
59
  contentsAreValid(): boolean;
58
60
  isPristine(): boolean;
59
61
  markAsPristine(): this;