@pdg/react-form 1.0.60 → 1.0.61

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.
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import { CommonSxProps, FormMultipleValueItemCommands } from '../../@types';
3
3
  import { FormArrayValueItemCommands, FormItemsValueItemCommands, FormLoadingValueItemCommands, FormValueItemBaseCommands, FormValueItemProps } from '../../@types';
4
4
  import { FormTextFieldProps } from '../../FormItemTextFieldBase';
5
- export type FormAutocompleteSingleValue = string | number;
5
+ export type FormAutocompleteSingleValue = string | number | boolean;
6
6
  export interface FormAutocompleteItem<T extends FormAutocompleteSingleValue> {
7
7
  label: string;
8
8
  value: T;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CommonSxProps, FormItemsValueItemCommands, FormLoadingValueItemCommands, FormValueItemBaseCommands, FormValueItemProps } from '../../@types';
3
- export type FormRadioGroupSingleValue = string | number;
3
+ export type FormRadioGroupSingleValue = string | number | boolean;
4
4
  export interface FormRadioGroupItem<T extends FormRadioGroupSingleValue> {
5
5
  label: ReactNode;
6
6
  value: T;
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { ToggleButtonProps } from '@mui/material';
3
3
  import { PartialPick, CommonSxProps, FormMultipleValueItemCommands, FormArrayValueItemCommands, FormItemsValueItemCommands, FormLoadingValueItemCommands, FormValueItemBaseCommands, FormValueItemProps } from '../../@types';
4
4
  import { FormItemBaseProps } from '../FormItemBase';
5
- export type FormToggleButtonGroupSingleValue = string | number;
5
+ export type FormToggleButtonGroupSingleValue = string | number | boolean;
6
6
  export interface FormToggleButtonGroupItem<T extends FormToggleButtonGroupSingleValue> {
7
7
  label: ReactNode;
8
8
  value: T;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { FormArrayValueItemCommands, FormItemsValueItemCommands, FormLoadingValueItemCommands, FormValueItemBaseCommands, FormMultipleValueItemCommands } from '../../@types';
3
3
  import { FormTextFieldProps } from '../FormTextField';
4
- export type FormSelectSingleValue = string | number;
4
+ export type FormSelectSingleValue = string | number | boolean;
5
5
  export type FormSelectValue<T extends FormSelectSingleValue, Multiple extends boolean | undefined> = [
6
6
  Multiple
7
7
  ] extends [true] ? T[] : '' | T;