powell-react 0.0.41 → 0.0.43

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.
Files changed (90) hide show
  1. package/dist/types/index.d.ts +3380 -0
  2. package/package.json +23 -53
  3. package/dist/types/powell/api/PowellProvider.d.ts +0 -6
  4. package/dist/types/powell/api/configService.d.ts +0 -3
  5. package/dist/types/powell/api/forms.d.ts +0 -74
  6. package/dist/types/powell/api/index.d.ts +0 -5
  7. package/dist/types/powell/api/overlayEmitter.d.ts +0 -11
  8. package/dist/types/powell/api/overlayService.d.ts +0 -10
  9. package/dist/types/powell/api/powellDefaults.d.ts +0 -3
  10. package/dist/types/powell/api/primereact.d.ts +0 -981
  11. package/dist/types/powell/components/AutoComplete/AutoComplete.d.ts +0 -3
  12. package/dist/types/powell/components/AutoComplete/index.d.ts +0 -1
  13. package/dist/types/powell/components/Button/Button.d.ts +0 -3
  14. package/dist/types/powell/components/Button/index.d.ts +0 -1
  15. package/dist/types/powell/components/CascadeSelect/CascadeSelect.d.ts +0 -3
  16. package/dist/types/powell/components/CascadeSelect/index.d.ts +0 -1
  17. package/dist/types/powell/components/Checkbox/Checkbox.d.ts +0 -3
  18. package/dist/types/powell/components/Checkbox/index.d.ts +0 -1
  19. package/dist/types/powell/components/Chips/Chips.d.ts +0 -3
  20. package/dist/types/powell/components/Chips/index.d.ts +0 -1
  21. package/dist/types/powell/components/ColorPicker/ColorPicker.d.ts +0 -3
  22. package/dist/types/powell/components/ColorPicker/index.d.ts +0 -1
  23. package/dist/types/powell/components/Dialog/Dialog.d.ts +0 -3
  24. package/dist/types/powell/components/Dialog/index.d.ts +0 -1
  25. package/dist/types/powell/components/DialogForm/DialogForm.d.ts +0 -3
  26. package/dist/types/powell/components/DialogForm/index.d.ts +0 -1
  27. package/dist/types/powell/components/Dropdown/Dropdown.d.ts +0 -3
  28. package/dist/types/powell/components/Dropdown/index.d.ts +0 -1
  29. package/dist/types/powell/components/Editor/Editor.d.ts +0 -3
  30. package/dist/types/powell/components/Editor/index.d.ts +0 -1
  31. package/dist/types/powell/components/FieldControl/FieldControl.d.ts +0 -3
  32. package/dist/types/powell/components/FieldControl/index.d.ts +0 -1
  33. package/dist/types/powell/components/FieldLayout/FieldLayout.d.ts +0 -4
  34. package/dist/types/powell/components/FieldLayout/index.d.ts +0 -1
  35. package/dist/types/powell/components/FormContainer/FormContainer.d.ts +0 -4
  36. package/dist/types/powell/components/FormContainer/FormContext.d.ts +0 -5
  37. package/dist/types/powell/components/FormContainer/index.d.ts +0 -2
  38. package/dist/types/powell/components/InputMask/InputMask.d.ts +0 -3
  39. package/dist/types/powell/components/InputMask/index.d.ts +0 -1
  40. package/dist/types/powell/components/InputNumber/InputNumber.d.ts +0 -3
  41. package/dist/types/powell/components/InputNumber/index.d.ts +0 -1
  42. package/dist/types/powell/components/InputOtp/InputOtp.d.ts +0 -3
  43. package/dist/types/powell/components/InputOtp/index.d.ts +0 -1
  44. package/dist/types/powell/components/InputPassword/InputPassword.d.ts +0 -3
  45. package/dist/types/powell/components/InputPassword/index.d.ts +0 -1
  46. package/dist/types/powell/components/InputSwitch/InputSwitch.d.ts +0 -3
  47. package/dist/types/powell/components/InputSwitch/index.d.ts +0 -1
  48. package/dist/types/powell/components/InputText/InputText.d.ts +0 -3
  49. package/dist/types/powell/components/InputText/index.d.ts +0 -1
  50. package/dist/types/powell/components/InputTextarea/InputTextarea.d.ts +0 -3
  51. package/dist/types/powell/components/InputTextarea/index.d.ts +0 -1
  52. package/dist/types/powell/components/Knob/Knob.d.ts +0 -3
  53. package/dist/types/powell/components/Knob/index.d.ts +0 -1
  54. package/dist/types/powell/components/ListBox/ListBox.d.ts +0 -3
  55. package/dist/types/powell/components/ListBox/index.d.ts +0 -1
  56. package/dist/types/powell/components/Mention/Mention.d.ts +0 -3
  57. package/dist/types/powell/components/Mention/index.d.ts +0 -1
  58. package/dist/types/powell/components/MultiSelect/MultiSelect.d.ts +0 -3
  59. package/dist/types/powell/components/MultiSelect/index.d.ts +0 -1
  60. package/dist/types/powell/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +0 -3
  61. package/dist/types/powell/components/MultiStateCheckbox/index.d.ts +0 -1
  62. package/dist/types/powell/components/RadioGroup/RadioGroup.d.ts +0 -3
  63. package/dist/types/powell/components/RadioGroup/index.d.ts +0 -1
  64. package/dist/types/powell/components/Rating/Rating.d.ts +0 -3
  65. package/dist/types/powell/components/Rating/index.d.ts +0 -1
  66. package/dist/types/powell/components/SelectButton/SelectButton.d.ts +0 -3
  67. package/dist/types/powell/components/SelectButton/index.d.ts +0 -1
  68. package/dist/types/powell/components/Slider/Slider.d.ts +0 -3
  69. package/dist/types/powell/components/Slider/index.d.ts +0 -1
  70. package/dist/types/powell/components/Toast/Toast.d.ts +0 -3
  71. package/dist/types/powell/components/Toast/index.d.ts +0 -1
  72. package/dist/types/powell/components/ToggleButton/ToggleButton.d.ts +0 -3
  73. package/dist/types/powell/components/ToggleButton/index.d.ts +0 -1
  74. package/dist/types/powell/components/TreeSelect/TreeSelect.d.ts +0 -3
  75. package/dist/types/powell/components/TreeSelect/index.d.ts +0 -1
  76. package/dist/types/powell/components/TriStateCheckbox/TriStateCheckbox.d.ts +0 -3
  77. package/dist/types/powell/components/TriStateCheckbox/index.d.ts +0 -1
  78. package/dist/types/powell/hooks/index.d.ts +0 -3
  79. package/dist/types/powell/hooks/useApplyConfig.d.ts +0 -24
  80. package/dist/types/powell/hooks/useFormContext.d.ts +0 -5
  81. package/dist/types/powell/hooks/usePowellConfig.d.ts +0 -4
  82. package/dist/types/powell/index.d.ts +0 -5
  83. package/dist/types/powell/models/common.d.ts +0 -10
  84. package/dist/types/powell/models/config.d.ts +0 -16
  85. package/dist/types/powell/models/forms.d.ts +0 -28
  86. package/dist/types/powell/models/index.d.ts +0 -5
  87. package/dist/types/powell/models/overlay.d.ts +0 -222
  88. package/dist/types/powell/models/props.d.ts +0 -109
  89. package/dist/types/powell/utils/globalState.d.ts +0 -20
  90. package/dist/types/powell/utils/index.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- import { AutoCompleteProps } from '../../models/props';
2
-
3
- export declare const AutoComplete: (props: AutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './AutoComplete';
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '../../models/props';
2
-
3
- export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Button';
@@ -1,3 +0,0 @@
1
- import { CascadeSelectProps } from '../../models/props';
2
-
3
- export declare const CascadeSelect: (props: CascadeSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './CascadeSelect';
@@ -1,3 +0,0 @@
1
- import { CheckboxProps } from '../../models/props';
2
-
3
- export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Checkbox';
@@ -1,3 +0,0 @@
1
- import { ChipsProps } from '../../models/props';
2
-
3
- export declare const Chips: (props: ChipsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Chips';
@@ -1,3 +0,0 @@
1
- import { ColorPickerProps } from '../../models/props';
2
-
3
- export declare const ColorPicker: (props: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './ColorPicker';
@@ -1,3 +0,0 @@
1
- import { DialogProps } from '../../models/props';
2
-
3
- export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Dialog';
@@ -1,3 +0,0 @@
1
- import { DialogFormProps } from '../../models';
2
-
3
- export declare const DialogForm: (props: DialogFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './DialogForm';
@@ -1,3 +0,0 @@
1
- import { DropdownProps } from '../../models';
2
-
3
- export declare const Dropdown: (props: DropdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Dropdown';
@@ -1,3 +0,0 @@
1
- import { EditorProps } from '../../models';
2
-
3
- export declare const Editor: (props: EditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Editor';
@@ -1,3 +0,0 @@
1
- import { FieldControlProps } from '../../models/props';
2
-
3
- export declare const FieldControl: (props: FieldControlProps) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1 +0,0 @@
1
- export * from './FieldControl';
@@ -1,4 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { FieldLayoutProps } from '../../models/props';
3
-
4
- export declare const FieldLayout: (props: PropsWithChildren<FieldLayoutProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './FieldLayout';
@@ -1,4 +0,0 @@
1
- import { $FormikValues } from '../../api';
2
- import { FormContainerProps } from '../../models';
3
-
4
- export declare const FormContainer: import('react').ForwardRefExoticComponent<FormContainerProps<$FormikValues> & import('react').RefAttributes<HTMLFormElement>>;
@@ -1,5 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { $FormikConfig, $FormikValues } from '../../api';
3
-
4
- export declare const FormContext: import('react').Context<$FormikConfig<$FormikValues> | undefined>;
5
- export declare const FormProvider: <T extends $FormikValues>(props: PropsWithChildren<$FormikConfig<T>>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './FormContainer';
2
- export * from './FormContext';
@@ -1,3 +0,0 @@
1
- import { InputMaskProps } from '../../models';
2
-
3
- export declare const InputMask: (props: InputMaskProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputMask';
@@ -1,3 +0,0 @@
1
- import { InputNumberProps } from '../../models';
2
-
3
- export declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputNumber';
@@ -1,3 +0,0 @@
1
- import { InputOtpProps } from '../../models';
2
-
3
- export declare const InputOtp: (props: InputOtpProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputOtp';
@@ -1,3 +0,0 @@
1
- import { InputPasswordProps } from '../../models';
2
-
3
- export declare const InputPassword: (props: InputPasswordProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputPassword';
@@ -1,3 +0,0 @@
1
- import { InputSwitchProps } from '../../models';
2
-
3
- export declare const InputSwitch: (props: InputSwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputSwitch';
@@ -1,3 +0,0 @@
1
- import { InputTextProps } from '../../models/props';
2
-
3
- export declare const InputText: (props: InputTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputText';
@@ -1,3 +0,0 @@
1
- import { InputTextareaProps } from '../../models';
2
-
3
- export declare const InputTextarea: (props: InputTextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './InputTextarea';
@@ -1,3 +0,0 @@
1
- import { KnobProps } from '../../models';
2
-
3
- export declare const Knob: (props: KnobProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Knob';
@@ -1,3 +0,0 @@
1
- import { ListBoxProps } from '../../models';
2
-
3
- export declare const ListBox: (props: ListBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './ListBox';
@@ -1,3 +0,0 @@
1
- import { MentionProps } from '../../models';
2
-
3
- export declare const Mention: (props: MentionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Mention';
@@ -1,3 +0,0 @@
1
- import { MultiSelectProps } from '../../models';
2
-
3
- export declare const MultiSelect: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './MultiSelect';
@@ -1,3 +0,0 @@
1
- import { MultiStateCheckboxProps } from '../../models';
2
-
3
- export declare const MultiStateCheckbox: (props: MultiStateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './MultiStateCheckbox';
@@ -1,3 +0,0 @@
1
- import { RadioGroupProps } from '../../models';
2
-
3
- export declare const RadioGroup: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './RadioGroup';
@@ -1,3 +0,0 @@
1
- import { RatingProps } from '../../models';
2
-
3
- export declare const Rating: (props: RatingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Rating';
@@ -1,3 +0,0 @@
1
- import { SelectButtonProps } from '../../models';
2
-
3
- export declare const SelectButton: (props: SelectButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './SelectButton';
@@ -1,3 +0,0 @@
1
- import { SliderProps } from '../../models';
2
-
3
- export declare const Slider: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Slider';
@@ -1,3 +0,0 @@
1
- import { ToastProps } from '../../models';
2
-
3
- export declare const Toast: (prop: ToastProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Toast';
@@ -1,3 +0,0 @@
1
- import { ToggleButtonProps } from '../../models';
2
-
3
- export declare const ToggleButton: (props: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './ToggleButton';
@@ -1,3 +0,0 @@
1
- import { TreeSelectProps } from '../../models';
2
-
3
- export declare const TreeSelect: (props: TreeSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './TreeSelect';
@@ -1,3 +0,0 @@
1
- import { TriStateCheckboxProps } from '../../models';
2
-
3
- export declare const TriStateCheckbox: (props: TriStateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './TriStateCheckbox';
@@ -1,3 +0,0 @@
1
- export * from './useApplyConfig';
2
- export * from './useFormContext';
3
- export * from './usePowellConfig';
@@ -1,24 +0,0 @@
1
- import { PowellConfig } from '../models';
2
-
3
- interface ApplyConfigOptions<T> {
4
- isFixLabel: boolean;
5
- sizable: boolean;
6
- groups: Record<string, PropDescriptor<T>[]>;
7
- }
8
- interface CommonConfigProps {
9
- rtl?: PowellConfig["rtl"];
10
- showRequiredStar?: PowellConfig["showRequiredStar"];
11
- labelPosition?: PowellConfig["labelPosition"];
12
- inputSize?: PowellConfig["inputSize"];
13
- variant?: PowellConfig["inputStyle"];
14
- }
15
- type PropDescriptor<T> = (keyof T & string) | {
16
- key: keyof T & string;
17
- alias?: string;
18
- defaultValue?: T[keyof T] | (() => T[keyof T]);
19
- keepInRest?: boolean;
20
- };
21
- export declare const useApplyConfig: <T extends CommonConfigProps>(props: T, options: ApplyConfigOptions<T>) => Record<string, Partial<T>> & {
22
- rest: Partial<T>;
23
- };
24
- export {};
@@ -1,5 +0,0 @@
1
- import { $FormikContextType, $FormikValues } from '../api';
2
- import { SafeAny } from '../models';
3
-
4
- export declare const useFormContext: () => $FormikContextType<$FormikValues> | null;
5
- export declare function useSafeFormikContext<T = SafeAny>(): $FormikContextType<T> | undefined;
@@ -1,4 +0,0 @@
1
- import { PowellConfig } from '../models';
2
-
3
- export declare const usePowellConfig: () => [config: PowellConfig, (c: Partial<PowellConfig>) => any];
4
- export declare const applyConfigToDom: (config: PowellConfig) => void;
@@ -1,5 +0,0 @@
1
- export * from './components/Button';
2
- export * from './api';
3
- export * from './hooks';
4
- export * from './models';
5
- export * from './utils';
@@ -1,10 +0,0 @@
1
- export type Severity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger';
2
- export type ButtonAppearance = 'default' | 'text' | 'outlined' | 'link';
3
- export type Direction = 'rtl' | 'ltr';
4
- export type Size = 'small' | 'medium' | 'large';
5
- export type Orientation = 'horizontal' | 'vertical';
6
- export type Position = 'left' | 'right' | 'top' | 'bottom';
7
- export type Nullable<T = void> = T | null | undefined;
8
- export type SafeAny = any;
9
- export type CssObject = Partial<CSSStyleDeclaration>;
10
- export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center' | 'center';
@@ -1,16 +0,0 @@
1
- import { $APIOptions } from '../api';
2
- import { Size } from './common';
3
- import { FixLabelPosition, LabelPosition } from './forms';
4
-
5
- export type ThemeName = "arya-blue" | "arya-green" | "arya-orange" | "arya-purple" | "bootstrap4-dark-blue" | "bootstrap4-dark-purple" | "bootstrap4-light-blue" | "bootstrap4-light-purple" | "fluent-light" | "lara-dark-amber" | "lara-dark-blue" | "lara-dark-cyan" | "lara-dark-green" | "lara-dark-indigo" | "lara-dark-pink" | "lara-dark-purple" | "lara-dark-teal" | "lara-light-amber" | "lara-light-blue" | "lara-light-cyan" | "lara-light-green" | "lara-light-indigo" | "lara-light-pink" | "lara-light-purple" | "lara-light-teal" | "luna-amber" | "luna-blue" | "luna-green" | "luna-pink" | "md-dark-deeppurple" | "md-dark-indigo" | "md-light-deeppurple" | "md-light-indigo" | "mdc-dark-deeppurple" | "mdc-dark-indigo" | "mdc-light-deeppurple" | "mdc-light-indigo" | "mira" | "nano" | "nova" | "nova-accent" | "nova-alt" | "rhea" | "saga-blue" | "saga-green" | "saga-orange" | "saga-purple" | "soho-dark" | "soho-light" | "tailwind-light" | "vela-blue" | "vela-green" | "vela-orange" | "vela-purple" | "viva-dark" | "viva-light";
6
- type OmittedApiOptions = Omit<$APIOptions, "setAppendTo" | "setStyleContainer" | "setAutoZIndex" | "setCssTransition" | "setFilterMatchModeOptions" | "setHideOverlaysOnDocumentScrolling" | "setInputStyle" | "setLocale" | "setNonce" | "setNullSortOrder" | "setRipple" | "setZIndex" | "setPt" | "changeTheme">;
7
- export interface PowellConfig extends OmittedApiOptions {
8
- theme?: ThemeName;
9
- rtl?: boolean;
10
- showRequiredStar?: boolean;
11
- inputSize?: Size;
12
- labelPosition?: LabelPosition;
13
- fixLabelPosition?: FixLabelPosition;
14
- injectDirectionToRoot?: boolean;
15
- }
16
- export {};
@@ -1,28 +0,0 @@
1
- import { $ButtonProps, $FieldProps } from '../api';
2
- import { ButtonAppearance, Position, SafeAny } from '.';
3
- import { MouseEvent, ReactNode } from 'react';
4
-
5
- export type LabelPosition = 'float' | 'side' | 'top';
6
- export type FixLabelPosition = Exclude<LabelPosition, 'float'>;
7
- export type IconPosition = Exclude<Position, 'top' | 'bottom'>;
8
- export interface FieldControlMeta extends Partial<$FieldProps> {
9
- handleChange?: (value: SafeAny) => void;
10
- handleBlur?: (value: SafeAny) => void;
11
- isRequired?: boolean;
12
- errorElement?: ReactNode;
13
- id?: string;
14
- }
15
- export interface AddonConfig {
16
- type: 'button' | 'icon' | 'text';
17
- label?: string;
18
- severity?: $ButtonProps["severity"];
19
- appearance?: ButtonAppearance;
20
- icon?: string;
21
- iconPosition?: IconPosition;
22
- text?: string;
23
- onClick?: (event: MouseEvent<HTMLElement>) => void;
24
- }
25
- export interface Addon {
26
- before?: AddonConfig;
27
- after?: AddonConfig;
28
- }
@@ -1,5 +0,0 @@
1
- export * from './common';
2
- export * from './config';
3
- export * from './forms';
4
- export * from './overlay';
5
- export * from './props';