powell-react 0.0.41 → 0.0.45

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 (181) hide show
  1. package/dist/{_virtual → cjs/_virtual}/jsx-runtime.js +0 -2
  2. package/dist/{_virtual → cjs/_virtual}/jsx-runtime.js.map +1 -1
  3. package/dist/{_virtual → cjs/_virtual}/react-jsx-runtime.development.js +0 -2
  4. package/dist/{_virtual → cjs/_virtual}/react-jsx-runtime.development.js.map +1 -1
  5. package/dist/{_virtual → cjs/_virtual}/react-jsx-runtime.production.min.js +0 -2
  6. package/dist/{_virtual → cjs/_virtual}/react-jsx-runtime.production.min.js.map +1 -1
  7. package/dist/{node_modules → cjs/node_modules}/react/cjs/react-jsx-runtime.development.js +2 -4
  8. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  9. package/dist/{node_modules → cjs/node_modules}/react/cjs/react-jsx-runtime.production.min.js +2 -4
  10. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  11. package/dist/{node_modules → cjs/node_modules}/react/jsx-runtime.js +3 -5
  12. package/dist/cjs/node_modules/react/jsx-runtime.js.map +1 -0
  13. package/dist/{powell → cjs/powell}/api/PowellProvider.js +22 -23
  14. package/dist/cjs/powell/api/PowellProvider.js.map +1 -0
  15. package/dist/{powell → cjs/powell}/api/configService.js +1 -3
  16. package/dist/cjs/powell/api/configService.js.map +1 -0
  17. package/dist/{powell → cjs/powell}/api/overlayEmitter.js +2 -4
  18. package/dist/cjs/powell/api/overlayEmitter.js.map +1 -0
  19. package/dist/{powell → cjs/powell}/api/powellDefaults.js +5 -7
  20. package/dist/cjs/powell/api/powellDefaults.js.map +1 -0
  21. package/dist/{powell → cjs/powell}/components/Button/Button.js +36 -40
  22. package/dist/cjs/powell/components/Button/Button.js.map +1 -0
  23. package/dist/cjs/powell/components/FormContainer/FormContext.js +9 -0
  24. package/dist/cjs/powell/components/FormContainer/FormContext.js.map +1 -0
  25. package/dist/{powell → cjs/powell}/components/Toast/Toast.js +10 -11
  26. package/dist/cjs/powell/components/Toast/Toast.js.map +1 -0
  27. package/dist/{powell → cjs/powell}/hooks/useApplyConfig.js +14 -10
  28. package/dist/cjs/powell/hooks/useApplyConfig.js.map +1 -0
  29. package/dist/{powell → cjs/powell}/hooks/useFormContext.js +10 -10
  30. package/dist/cjs/powell/hooks/useFormContext.js.map +1 -0
  31. package/dist/{powell → cjs/powell}/hooks/usePowellConfig.js +34 -33
  32. package/dist/cjs/powell/hooks/usePowellConfig.js.map +1 -0
  33. package/dist/cjs/powell/index.js +768 -0
  34. package/dist/{powell → cjs/powell}/index.js.map +1 -1
  35. package/dist/{powell → cjs/powell}/utils/globalState.js +3 -5
  36. package/dist/cjs/powell/utils/globalState.js.map +1 -0
  37. package/dist/esm/_virtual/jsx-runtime.js +4 -0
  38. package/dist/esm/_virtual/jsx-runtime.js.map +1 -0
  39. package/dist/esm/_virtual/react-jsx-runtime.development.js +4 -0
  40. package/dist/esm/_virtual/react-jsx-runtime.development.js.map +1 -0
  41. package/dist/esm/_virtual/react-jsx-runtime.production.min.js +4 -0
  42. package/dist/esm/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  43. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
  44. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  45. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
  46. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  47. package/dist/esm/node_modules/react/jsx-runtime.js +14 -0
  48. package/dist/esm/node_modules/react/jsx-runtime.js.map +1 -0
  49. package/dist/esm/powell/api/PowellProvider.js +141 -0
  50. package/dist/esm/powell/api/PowellProvider.js.map +1 -0
  51. package/dist/esm/powell/api/configService.js +6 -0
  52. package/dist/esm/powell/api/configService.js.map +1 -0
  53. package/dist/esm/powell/api/overlayEmitter.js +22 -0
  54. package/dist/esm/powell/api/overlayEmitter.js.map +1 -0
  55. package/dist/esm/powell/api/powellDefaults.js +14 -0
  56. package/dist/esm/powell/api/powellDefaults.js.map +1 -0
  57. package/dist/esm/powell/components/Button/Button.js +161 -0
  58. package/dist/esm/powell/components/Button/Button.js.map +1 -0
  59. package/dist/esm/powell/components/FormContainer/FormContext.js +7 -0
  60. package/dist/esm/powell/components/FormContainer/FormContext.js.map +1 -0
  61. package/dist/esm/powell/components/Toast/Toast.js +120 -0
  62. package/dist/esm/powell/components/Toast/Toast.js.map +1 -0
  63. package/dist/esm/powell/hooks/useApplyConfig.js +57 -0
  64. package/dist/esm/powell/hooks/useApplyConfig.js.map +1 -0
  65. package/dist/esm/powell/hooks/useFormContext.js +125 -0
  66. package/dist/esm/powell/hooks/useFormContext.js.map +1 -0
  67. package/dist/esm/powell/hooks/usePowellConfig.js +199 -0
  68. package/dist/esm/powell/hooks/usePowellConfig.js.map +1 -0
  69. package/dist/esm/powell/index.js +106 -0
  70. package/dist/esm/powell/index.js.map +1 -0
  71. package/dist/esm/powell/utils/globalState.js +59 -0
  72. package/dist/esm/powell/utils/globalState.js.map +1 -0
  73. package/dist/types/index.d.ts +539 -0
  74. package/package.json +42 -93
  75. package/dist/assets/style-nnktSJs6.css +0 -1163
  76. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  77. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  78. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  79. package/dist/powell/api/PowellProvider.js.map +0 -1
  80. package/dist/powell/api/configService.js.map +0 -1
  81. package/dist/powell/api/overlayEmitter.js.map +0 -1
  82. package/dist/powell/api/powellDefaults.js.map +0 -1
  83. package/dist/powell/components/Button/Button.js.map +0 -1
  84. package/dist/powell/components/FormContainer/FormContainer.js +0 -120
  85. package/dist/powell/components/FormContainer/FormContainer.js.map +0 -1
  86. package/dist/powell/components/FormContainer/FormContext.js +0 -16
  87. package/dist/powell/components/FormContainer/FormContext.js.map +0 -1
  88. package/dist/powell/components/Toast/Toast.js.map +0 -1
  89. package/dist/powell/hooks/useApplyConfig.js.map +0 -1
  90. package/dist/powell/hooks/useFormContext.js.map +0 -1
  91. package/dist/powell/hooks/usePowellConfig.js.map +0 -1
  92. package/dist/powell/index.js +0 -771
  93. package/dist/powell/utils/globalState.js.map +0 -1
  94. package/dist/types/powell/api/PowellProvider.d.ts +0 -6
  95. package/dist/types/powell/api/configService.d.ts +0 -3
  96. package/dist/types/powell/api/forms.d.ts +0 -74
  97. package/dist/types/powell/api/index.d.ts +0 -5
  98. package/dist/types/powell/api/overlayEmitter.d.ts +0 -11
  99. package/dist/types/powell/api/overlayService.d.ts +0 -10
  100. package/dist/types/powell/api/powellDefaults.d.ts +0 -3
  101. package/dist/types/powell/api/primereact.d.ts +0 -981
  102. package/dist/types/powell/components/AutoComplete/AutoComplete.d.ts +0 -3
  103. package/dist/types/powell/components/AutoComplete/index.d.ts +0 -1
  104. package/dist/types/powell/components/Button/Button.d.ts +0 -3
  105. package/dist/types/powell/components/Button/index.d.ts +0 -1
  106. package/dist/types/powell/components/CascadeSelect/CascadeSelect.d.ts +0 -3
  107. package/dist/types/powell/components/CascadeSelect/index.d.ts +0 -1
  108. package/dist/types/powell/components/Checkbox/Checkbox.d.ts +0 -3
  109. package/dist/types/powell/components/Checkbox/index.d.ts +0 -1
  110. package/dist/types/powell/components/Chips/Chips.d.ts +0 -3
  111. package/dist/types/powell/components/Chips/index.d.ts +0 -1
  112. package/dist/types/powell/components/ColorPicker/ColorPicker.d.ts +0 -3
  113. package/dist/types/powell/components/ColorPicker/index.d.ts +0 -1
  114. package/dist/types/powell/components/Dialog/Dialog.d.ts +0 -3
  115. package/dist/types/powell/components/Dialog/index.d.ts +0 -1
  116. package/dist/types/powell/components/DialogForm/DialogForm.d.ts +0 -3
  117. package/dist/types/powell/components/DialogForm/index.d.ts +0 -1
  118. package/dist/types/powell/components/Dropdown/Dropdown.d.ts +0 -3
  119. package/dist/types/powell/components/Dropdown/index.d.ts +0 -1
  120. package/dist/types/powell/components/Editor/Editor.d.ts +0 -3
  121. package/dist/types/powell/components/Editor/index.d.ts +0 -1
  122. package/dist/types/powell/components/FieldControl/FieldControl.d.ts +0 -3
  123. package/dist/types/powell/components/FieldControl/index.d.ts +0 -1
  124. package/dist/types/powell/components/FieldLayout/FieldLayout.d.ts +0 -4
  125. package/dist/types/powell/components/FieldLayout/index.d.ts +0 -1
  126. package/dist/types/powell/components/FormContainer/FormContainer.d.ts +0 -4
  127. package/dist/types/powell/components/FormContainer/FormContext.d.ts +0 -5
  128. package/dist/types/powell/components/FormContainer/index.d.ts +0 -2
  129. package/dist/types/powell/components/InputMask/InputMask.d.ts +0 -3
  130. package/dist/types/powell/components/InputMask/index.d.ts +0 -1
  131. package/dist/types/powell/components/InputNumber/InputNumber.d.ts +0 -3
  132. package/dist/types/powell/components/InputNumber/index.d.ts +0 -1
  133. package/dist/types/powell/components/InputOtp/InputOtp.d.ts +0 -3
  134. package/dist/types/powell/components/InputOtp/index.d.ts +0 -1
  135. package/dist/types/powell/components/InputPassword/InputPassword.d.ts +0 -3
  136. package/dist/types/powell/components/InputPassword/index.d.ts +0 -1
  137. package/dist/types/powell/components/InputSwitch/InputSwitch.d.ts +0 -3
  138. package/dist/types/powell/components/InputSwitch/index.d.ts +0 -1
  139. package/dist/types/powell/components/InputText/InputText.d.ts +0 -3
  140. package/dist/types/powell/components/InputText/index.d.ts +0 -1
  141. package/dist/types/powell/components/InputTextarea/InputTextarea.d.ts +0 -3
  142. package/dist/types/powell/components/InputTextarea/index.d.ts +0 -1
  143. package/dist/types/powell/components/Knob/Knob.d.ts +0 -3
  144. package/dist/types/powell/components/Knob/index.d.ts +0 -1
  145. package/dist/types/powell/components/ListBox/ListBox.d.ts +0 -3
  146. package/dist/types/powell/components/ListBox/index.d.ts +0 -1
  147. package/dist/types/powell/components/Mention/Mention.d.ts +0 -3
  148. package/dist/types/powell/components/Mention/index.d.ts +0 -1
  149. package/dist/types/powell/components/MultiSelect/MultiSelect.d.ts +0 -3
  150. package/dist/types/powell/components/MultiSelect/index.d.ts +0 -1
  151. package/dist/types/powell/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +0 -3
  152. package/dist/types/powell/components/MultiStateCheckbox/index.d.ts +0 -1
  153. package/dist/types/powell/components/RadioGroup/RadioGroup.d.ts +0 -3
  154. package/dist/types/powell/components/RadioGroup/index.d.ts +0 -1
  155. package/dist/types/powell/components/Rating/Rating.d.ts +0 -3
  156. package/dist/types/powell/components/Rating/index.d.ts +0 -1
  157. package/dist/types/powell/components/SelectButton/SelectButton.d.ts +0 -3
  158. package/dist/types/powell/components/SelectButton/index.d.ts +0 -1
  159. package/dist/types/powell/components/Slider/Slider.d.ts +0 -3
  160. package/dist/types/powell/components/Slider/index.d.ts +0 -1
  161. package/dist/types/powell/components/Toast/Toast.d.ts +0 -3
  162. package/dist/types/powell/components/Toast/index.d.ts +0 -1
  163. package/dist/types/powell/components/ToggleButton/ToggleButton.d.ts +0 -3
  164. package/dist/types/powell/components/ToggleButton/index.d.ts +0 -1
  165. package/dist/types/powell/components/TreeSelect/TreeSelect.d.ts +0 -3
  166. package/dist/types/powell/components/TreeSelect/index.d.ts +0 -1
  167. package/dist/types/powell/components/TriStateCheckbox/TriStateCheckbox.d.ts +0 -3
  168. package/dist/types/powell/components/TriStateCheckbox/index.d.ts +0 -1
  169. package/dist/types/powell/hooks/index.d.ts +0 -3
  170. package/dist/types/powell/hooks/useApplyConfig.d.ts +0 -24
  171. package/dist/types/powell/hooks/useFormContext.d.ts +0 -5
  172. package/dist/types/powell/hooks/usePowellConfig.d.ts +0 -4
  173. package/dist/types/powell/index.d.ts +0 -5
  174. package/dist/types/powell/models/common.d.ts +0 -10
  175. package/dist/types/powell/models/config.d.ts +0 -16
  176. package/dist/types/powell/models/forms.d.ts +0 -28
  177. package/dist/types/powell/models/index.d.ts +0 -5
  178. package/dist/types/powell/models/overlay.d.ts +0 -222
  179. package/dist/types/powell/models/props.d.ts +0 -109
  180. package/dist/types/powell/utils/globalState.d.ts +0 -20
  181. 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';