@pdg/react-form 1.2.15 → 1.2.17

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,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { PFormItemBaseProps as Props } from './PFormItemBase.types';
3
3
  import './PFormItemBase.scss';
4
- declare const PFormItemBase: ({ ref, variant: initVariant, size: initSize, color: initColor, fullWidth: initFullWidth, control, controlHeight, controlSingleHeight, controlVerticalCenter, controlContainerStyle, required, labelIcon, label, focused, helperText, helperTextProps, error, hideLabel, hidden, autoSize, className, style, sx, }: Props) => React.JSX.Element;
4
+ declare const PFormItemBase: ({ ref, variant: initVariant, size: initSize, color: initColor, fullWidth: initFullWidth, control, controlHeight, controlSingleHeight, controlVerticalCenter, controlContainerStyle, required, labelIcon, label, focused, helperText, helperTextProps, error, errorHelperText, errorHelperTextProps, hideLabel, hidden, autoSize, className, style, sx, }: Props) => React.JSX.Element;
5
5
  export default PFormItemBase;
@@ -17,6 +17,8 @@ export interface PFormItemBaseProps extends PCommonSxProps, PartialPick<PFormCon
17
17
  focused?: boolean;
18
18
  helperText?: ReactNode;
19
19
  helperTextProps?: FormHelperTextProps;
20
+ errorHelperText?: ReactNode;
21
+ errorHelperTextProps?: FormHelperTextProps;
20
22
  error?: boolean;
21
23
  hideLabel?: boolean;
22
24
  hidden?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PFormRadioGroupProps, PFormRadioGroupSingleValue, PFormRadioGroupItems } from './PFormRadioGroup.types';
3
+ import './PFormRadioGroup.scss';
3
4
  declare function PFormRadioGroup<BaseValue extends PFormRadioGroupSingleValue, Items extends PFormRadioGroupItems<BaseValue> = PFormRadioGroupItems<BaseValue>>({ ref,
4
5
  /********************************************************************************************************************/
5
6
  variant: initVariant, size: initSize, color: initColor, focused: initFocused, fullWidth: initFullWidth, hidden: initHidden, startAdornment, endAdornment,
@@ -5,7 +5,7 @@ declare function PFormTextField<T = PFormTextFieldValue, AllowUndefinedValue ext
5
5
  /********************************************************************************************************************/
6
6
  variant: initVariant, size: initSize, color: initColor, focused: initFocused, labelShrink: initLabelShrink, fullWidth: initFullWidth, submitWhenReturnKey: initSubmitWhenReturnKey,
7
7
  /********************************************************************************************************************/
8
- name, required, value: initValue, data: initData, icon, labelIcon, label: initLabel, error: initError, helperText, exceptValue, readOnly, tabIndex, disabled: initDisabled, placeholder, maxLength, clear, width, slotProps: initSlotProps, inputRef: initInputRef, select, multiline, validPattern, invalidPattern, startAdornment, endAdornment, noFormValueItem, hidden: initHidden, disableReturnKey,
8
+ name, required, value: initValue, data: initData, icon, labelIcon, label: initLabel, error: initError, helperText, errorHelperText: initErrorHelperText, exceptValue, readOnly, tabIndex, disabled: initDisabled, placeholder, maxLength, clear, width, slotProps: initSlotProps, inputRef: initInputRef, select, multiline, validPattern, invalidPattern, startAdornment, endAdornment, noFormValueItem, noValidationCheck, hidden: initHidden, disableReturnKey, defaultRequiredErrorHelperText, defaultPatternErrorHelperText,
9
9
  /********************************************************************************************************************/
10
10
  onChange, onValue, onValidate, onBlur, onKeyDown,
11
11
  /********************************************************************************************************************/
@@ -15,7 +15,11 @@ export interface PFormTextFieldProps<T = PFormTextFieldValue, AllowUndefinedValu
15
15
  startAdornment?: ReactNode;
16
16
  endAdornment?: ReactNode;
17
17
  noFormValueItem?: boolean;
18
+ noValidationCheck?: boolean;
18
19
  disableReturnKey?: boolean;
19
20
  submitWhenReturnKey?: boolean;
21
+ errorHelperText?: ReactNode;
22
+ defaultRequiredErrorHelperText?: ReactNode;
23
+ defaultPatternErrorHelperText?: ReactNode;
20
24
  onValue?: (value: V) => V;
21
25
  }