powell-react 0.0.37 → 0.0.40

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 (143) hide show
  1. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  2. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  3. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  4. package/dist/powell/api/PowellProvider.js.map +1 -0
  5. package/dist/powell/api/configService.js.map +1 -0
  6. package/dist/powell/api/overlayEmitter.js.map +1 -0
  7. package/dist/powell/api/powellDefaults.js.map +1 -0
  8. package/dist/powell/components/Button/Button.js.map +1 -0
  9. package/dist/powell/components/FormContainer/FormContainer.js.map +1 -0
  10. package/dist/powell/components/FormContainer/FormContext.js.map +1 -0
  11. package/dist/powell/components/Toast/Toast.js.map +1 -0
  12. package/dist/powell/hooks/useApplyConfig.js.map +1 -0
  13. package/dist/powell/hooks/useFormContext.js.map +1 -0
  14. package/dist/powell/hooks/usePowellConfig.js.map +1 -0
  15. package/dist/powell/utils/globalState.js.map +1 -0
  16. package/dist/types/powell/api/PowellProvider.d.ts +6 -0
  17. package/dist/types/powell/api/configService.d.ts +3 -0
  18. package/dist/types/powell/api/forms.d.ts +74 -0
  19. package/dist/types/powell/api/index.d.ts +5 -0
  20. package/dist/types/powell/api/overlayEmitter.d.ts +11 -0
  21. package/dist/types/powell/api/overlayService.d.ts +10 -0
  22. package/dist/types/powell/api/powellDefaults.d.ts +3 -0
  23. package/dist/types/powell/api/primereact.d.ts +981 -0
  24. package/dist/types/powell/components/AutoComplete/AutoComplete.d.ts +3 -0
  25. package/dist/types/powell/components/AutoComplete/index.d.ts +1 -0
  26. package/dist/types/powell/components/Button/Button.d.ts +3 -0
  27. package/dist/types/powell/components/Button/index.d.ts +1 -0
  28. package/dist/types/powell/components/CascadeSelect/CascadeSelect.d.ts +3 -0
  29. package/dist/types/powell/components/CascadeSelect/index.d.ts +1 -0
  30. package/dist/types/powell/components/Checkbox/Checkbox.d.ts +3 -0
  31. package/dist/types/powell/components/Checkbox/index.d.ts +1 -0
  32. package/dist/types/powell/components/Chips/Chips.d.ts +3 -0
  33. package/dist/types/powell/components/Chips/index.d.ts +1 -0
  34. package/dist/types/powell/components/ColorPicker/ColorPicker.d.ts +3 -0
  35. package/dist/types/powell/components/ColorPicker/index.d.ts +1 -0
  36. package/dist/types/powell/components/Dialog/Dialog.d.ts +3 -0
  37. package/dist/types/powell/components/Dialog/index.d.ts +1 -0
  38. package/dist/types/powell/components/DialogForm/DialogForm.d.ts +3 -0
  39. package/dist/types/powell/components/DialogForm/index.d.ts +1 -0
  40. package/dist/types/powell/components/Dropdown/Dropdown.d.ts +3 -0
  41. package/dist/types/powell/components/Dropdown/index.d.ts +1 -0
  42. package/dist/types/powell/components/Editor/Editor.d.ts +3 -0
  43. package/dist/types/powell/components/Editor/index.d.ts +1 -0
  44. package/dist/types/powell/components/FieldControl/FieldControl.d.ts +3 -0
  45. package/dist/types/powell/components/FieldControl/index.d.ts +1 -0
  46. package/dist/types/powell/components/FieldLayout/FieldLayout.d.ts +4 -0
  47. package/dist/types/powell/components/FieldLayout/index.d.ts +1 -0
  48. package/dist/types/powell/components/FormContainer/FormContainer.d.ts +4 -0
  49. package/dist/types/powell/components/FormContainer/FormContext.d.ts +5 -0
  50. package/dist/types/powell/components/FormContainer/index.d.ts +2 -0
  51. package/dist/types/powell/components/InputMask/InputMask.d.ts +3 -0
  52. package/dist/types/powell/components/InputMask/index.d.ts +1 -0
  53. package/dist/types/powell/components/InputNumber/InputNumber.d.ts +3 -0
  54. package/dist/types/powell/components/InputNumber/index.d.ts +1 -0
  55. package/dist/types/powell/components/InputOtp/InputOtp.d.ts +3 -0
  56. package/dist/types/powell/components/InputOtp/index.d.ts +1 -0
  57. package/dist/types/powell/components/InputPassword/InputPassword.d.ts +3 -0
  58. package/dist/types/powell/components/InputPassword/index.d.ts +1 -0
  59. package/dist/types/powell/components/InputSwitch/InputSwitch.d.ts +3 -0
  60. package/dist/types/powell/components/InputSwitch/index.d.ts +1 -0
  61. package/dist/types/powell/components/InputText/InputText.d.ts +3 -0
  62. package/dist/types/powell/components/InputText/index.d.ts +1 -0
  63. package/dist/types/powell/components/InputTextarea/InputTextarea.d.ts +3 -0
  64. package/dist/types/powell/components/InputTextarea/index.d.ts +1 -0
  65. package/dist/types/powell/components/Knob/Knob.d.ts +3 -0
  66. package/dist/types/powell/components/Knob/index.d.ts +1 -0
  67. package/dist/types/powell/components/ListBox/ListBox.d.ts +3 -0
  68. package/dist/types/powell/components/ListBox/index.d.ts +1 -0
  69. package/dist/types/powell/components/Mention/Mention.d.ts +3 -0
  70. package/dist/types/powell/components/Mention/index.d.ts +1 -0
  71. package/dist/types/powell/components/MultiSelect/MultiSelect.d.ts +3 -0
  72. package/dist/types/powell/components/MultiSelect/index.d.ts +1 -0
  73. package/dist/types/powell/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +3 -0
  74. package/dist/types/powell/components/MultiStateCheckbox/index.d.ts +1 -0
  75. package/dist/types/powell/components/RadioGroup/RadioGroup.d.ts +3 -0
  76. package/dist/types/powell/components/RadioGroup/index.d.ts +1 -0
  77. package/dist/types/powell/components/Rating/Rating.d.ts +3 -0
  78. package/dist/types/powell/components/Rating/index.d.ts +1 -0
  79. package/dist/types/powell/components/SelectButton/SelectButton.d.ts +3 -0
  80. package/dist/types/powell/components/SelectButton/index.d.ts +1 -0
  81. package/dist/types/powell/components/Slider/Slider.d.ts +3 -0
  82. package/dist/types/powell/components/Slider/index.d.ts +1 -0
  83. package/dist/types/powell/components/Toast/Toast.d.ts +3 -0
  84. package/dist/types/powell/components/Toast/index.d.ts +1 -0
  85. package/dist/types/powell/components/ToggleButton/ToggleButton.d.ts +3 -0
  86. package/dist/types/powell/components/ToggleButton/index.d.ts +1 -0
  87. package/dist/types/powell/components/TreeSelect/TreeSelect.d.ts +3 -0
  88. package/dist/types/powell/components/TreeSelect/index.d.ts +1 -0
  89. package/dist/types/powell/components/TriStateCheckbox/TriStateCheckbox.d.ts +3 -0
  90. package/dist/types/powell/components/TriStateCheckbox/index.d.ts +1 -0
  91. package/dist/types/powell/hooks/index.d.ts +3 -0
  92. package/dist/types/powell/hooks/useApplyConfig.d.ts +24 -0
  93. package/dist/types/powell/hooks/useFormContext.d.ts +5 -0
  94. package/dist/types/powell/hooks/usePowellConfig.d.ts +4 -0
  95. package/dist/types/powell/index.d.ts +5 -0
  96. package/dist/types/powell/models/common.d.ts +10 -0
  97. package/dist/types/powell/models/config.d.ts +16 -0
  98. package/dist/types/powell/models/forms.d.ts +28 -0
  99. package/dist/types/powell/models/index.d.ts +5 -0
  100. package/dist/types/powell/models/overlay.d.ts +222 -0
  101. package/dist/types/powell/models/props.d.ts +109 -0
  102. package/dist/types/powell/utils/globalState.d.ts +20 -0
  103. package/dist/types/powell/utils/index.d.ts +1 -0
  104. package/package.json +41 -1
  105. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  106. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  107. package/dist/esm/node_modules/react/jsx-runtime.js.map +0 -1
  108. package/dist/esm/powell/api/PowellProvider.js.map +0 -1
  109. package/dist/esm/powell/api/configService.js.map +0 -1
  110. package/dist/esm/powell/api/overlayEmitter.js.map +0 -1
  111. package/dist/esm/powell/api/powellDefaults.js.map +0 -1
  112. package/dist/esm/powell/components/Button/Button.js.map +0 -1
  113. package/dist/esm/powell/components/FormContainer/FormContainer.js.map +0 -1
  114. package/dist/esm/powell/components/FormContainer/FormContext.js.map +0 -1
  115. package/dist/esm/powell/components/Toast/Toast.js.map +0 -1
  116. package/dist/esm/powell/hooks/useApplyConfig.js.map +0 -1
  117. package/dist/esm/powell/hooks/useFormContext.js.map +0 -1
  118. package/dist/esm/powell/hooks/usePowellConfig.js.map +0 -1
  119. package/dist/esm/powell/utils/globalState.js.map +0 -1
  120. package/dist/types/index.d.ts +0 -1
  121. /package/dist/{esm/_virtual → _virtual}/jsx-runtime.js +0 -0
  122. /package/dist/{esm/_virtual → _virtual}/jsx-runtime.js.map +0 -0
  123. /package/dist/{esm/_virtual → _virtual}/react-jsx-runtime.development.js +0 -0
  124. /package/dist/{esm/_virtual → _virtual}/react-jsx-runtime.development.js.map +0 -0
  125. /package/dist/{esm/_virtual → _virtual}/react-jsx-runtime.production.min.js +0 -0
  126. /package/dist/{esm/_virtual → _virtual}/react-jsx-runtime.production.min.js.map +0 -0
  127. /package/dist/{esm/node_modules → node_modules}/react/cjs/react-jsx-runtime.development.js +0 -0
  128. /package/dist/{esm/node_modules → node_modules}/react/cjs/react-jsx-runtime.production.min.js +0 -0
  129. /package/dist/{esm/node_modules → node_modules}/react/jsx-runtime.js +0 -0
  130. /package/dist/{esm/powell → powell}/api/PowellProvider.js +0 -0
  131. /package/dist/{esm/powell → powell}/api/configService.js +0 -0
  132. /package/dist/{esm/powell → powell}/api/overlayEmitter.js +0 -0
  133. /package/dist/{esm/powell → powell}/api/powellDefaults.js +0 -0
  134. /package/dist/{esm/powell → powell}/components/Button/Button.js +0 -0
  135. /package/dist/{esm/powell → powell}/components/FormContainer/FormContainer.js +0 -0
  136. /package/dist/{esm/powell → powell}/components/FormContainer/FormContext.js +0 -0
  137. /package/dist/{esm/powell → powell}/components/Toast/Toast.js +0 -0
  138. /package/dist/{esm/powell → powell}/hooks/useApplyConfig.js +0 -0
  139. /package/dist/{esm/powell → powell}/hooks/useFormContext.js +0 -0
  140. /package/dist/{esm/powell → powell}/hooks/usePowellConfig.js +0 -0
  141. /package/dist/{esm/powell → powell}/index.js +0 -0
  142. /package/dist/{esm/powell → powell}/index.js.map +0 -0
  143. /package/dist/{esm/powell → powell}/utils/globalState.js +0 -0
@@ -0,0 +1,3 @@
1
+ import { AutoCompleteProps } from '../../models/props';
2
+
3
+ export declare const AutoComplete: (props: AutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './AutoComplete';
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '../../models/props';
2
+
3
+ export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,3 @@
1
+ import { CascadeSelectProps } from '../../models/props';
2
+
3
+ export declare const CascadeSelect: (props: CascadeSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './CascadeSelect';
@@ -0,0 +1,3 @@
1
+ import { CheckboxProps } from '../../models/props';
2
+
3
+ export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -0,0 +1,3 @@
1
+ import { ChipsProps } from '../../models/props';
2
+
3
+ export declare const Chips: (props: ChipsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Chips';
@@ -0,0 +1,3 @@
1
+ import { ColorPickerProps } from '../../models/props';
2
+
3
+ export declare const ColorPicker: (props: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ColorPicker';
@@ -0,0 +1,3 @@
1
+ import { DialogProps } from '../../models/props';
2
+
3
+ export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Dialog';
@@ -0,0 +1,3 @@
1
+ import { DialogFormProps } from '../../models';
2
+
3
+ export declare const DialogForm: (props: DialogFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DialogForm';
@@ -0,0 +1,3 @@
1
+ import { DropdownProps } from '../../models';
2
+
3
+ export declare const Dropdown: (props: DropdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Dropdown';
@@ -0,0 +1,3 @@
1
+ import { EditorProps } from '../../models';
2
+
3
+ export declare const Editor: (props: EditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Editor';
@@ -0,0 +1,3 @@
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;
@@ -0,0 +1 @@
1
+ export * from './FieldControl';
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1 @@
1
+ export * from './FieldLayout';
@@ -0,0 +1,4 @@
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>>;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,2 @@
1
+ export * from './FormContainer';
2
+ export * from './FormContext';
@@ -0,0 +1,3 @@
1
+ import { InputMaskProps } from '../../models';
2
+
3
+ export declare const InputMask: (props: InputMaskProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputMask';
@@ -0,0 +1,3 @@
1
+ import { InputNumberProps } from '../../models';
2
+
3
+ export declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputNumber';
@@ -0,0 +1,3 @@
1
+ import { InputOtpProps } from '../../models';
2
+
3
+ export declare const InputOtp: (props: InputOtpProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputOtp';
@@ -0,0 +1,3 @@
1
+ import { InputPasswordProps } from '../../models';
2
+
3
+ export declare const InputPassword: (props: InputPasswordProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputPassword';
@@ -0,0 +1,3 @@
1
+ import { InputSwitchProps } from '../../models';
2
+
3
+ export declare const InputSwitch: (props: InputSwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputSwitch';
@@ -0,0 +1,3 @@
1
+ import { InputTextProps } from '../../models/props';
2
+
3
+ export declare const InputText: (props: InputTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputText';
@@ -0,0 +1,3 @@
1
+ import { InputTextareaProps } from '../../models';
2
+
3
+ export declare const InputTextarea: (props: InputTextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './InputTextarea';
@@ -0,0 +1,3 @@
1
+ import { KnobProps } from '../../models';
2
+
3
+ export declare const Knob: (props: KnobProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Knob';
@@ -0,0 +1,3 @@
1
+ import { ListBoxProps } from '../../models';
2
+
3
+ export declare const ListBox: (props: ListBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ListBox';
@@ -0,0 +1,3 @@
1
+ import { MentionProps } from '../../models';
2
+
3
+ export declare const Mention: (props: MentionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Mention';
@@ -0,0 +1,3 @@
1
+ import { MultiSelectProps } from '../../models';
2
+
3
+ export declare const MultiSelect: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MultiSelect';
@@ -0,0 +1,3 @@
1
+ import { MultiStateCheckboxProps } from '../../models';
2
+
3
+ export declare const MultiStateCheckbox: (props: MultiStateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MultiStateCheckbox';
@@ -0,0 +1,3 @@
1
+ import { RadioGroupProps } from '../../models';
2
+
3
+ export declare const RadioGroup: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './RadioGroup';
@@ -0,0 +1,3 @@
1
+ import { RatingProps } from '../../models';
2
+
3
+ export declare const Rating: (props: RatingProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Rating';
@@ -0,0 +1,3 @@
1
+ import { SelectButtonProps } from '../../models';
2
+
3
+ export declare const SelectButton: (props: SelectButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SelectButton';
@@ -0,0 +1,3 @@
1
+ import { SliderProps } from '../../models';
2
+
3
+ export declare const Slider: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Slider';
@@ -0,0 +1,3 @@
1
+ import { ToastProps } from '../../models';
2
+
3
+ export declare const Toast: (prop: ToastProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Toast';
@@ -0,0 +1,3 @@
1
+ import { ToggleButtonProps } from '../../models';
2
+
3
+ export declare const ToggleButton: (props: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ToggleButton';
@@ -0,0 +1,3 @@
1
+ import { TreeSelectProps } from '../../models';
2
+
3
+ export declare const TreeSelect: (props: TreeSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TreeSelect';
@@ -0,0 +1,3 @@
1
+ import { TriStateCheckboxProps } from '../../models';
2
+
3
+ export declare const TriStateCheckbox: (props: TriStateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TriStateCheckbox';
@@ -0,0 +1,3 @@
1
+ export * from './useApplyConfig';
2
+ export * from './useFormContext';
3
+ export * from './usePowellConfig';
@@ -0,0 +1,24 @@
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 {};
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,5 @@
1
+ export * from './components/Button';
2
+ export * from './api';
3
+ export * from './hooks';
4
+ export * from './models';
5
+ export * from './utils';
@@ -0,0 +1,10 @@
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';
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,28 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ export * from './common';
2
+ export * from './config';
3
+ export * from './forms';
4
+ export * from './overlay';
5
+ export * from './props';