powell-react 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/cjs/index.js +36892 -59
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/api/PowellProvider.d.ts +5 -0
  4. package/dist/cjs/types/api/configService.d.ts +2 -0
  5. package/dist/cjs/types/api/forms.d.ts +73 -0
  6. package/dist/cjs/types/api/index.d.ts +5 -0
  7. package/dist/cjs/types/api/powellDefaults.d.ts +2 -0
  8. package/dist/cjs/types/api/primereact.d.ts +981 -0
  9. package/dist/cjs/types/components/AutoComplete/AutoComplete.d.ts +24 -0
  10. package/dist/cjs/types/components/AutoComplete/index.d.ts +1 -0
  11. package/dist/cjs/types/components/Button/Button.d.ts +21 -6
  12. package/dist/cjs/types/components/Button/index.d.ts +1 -2
  13. package/dist/cjs/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
  14. package/dist/cjs/types/components/CascadeSelect/index.d.ts +1 -0
  15. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +21 -0
  16. package/dist/cjs/types/components/Checkbox/index.d.ts +1 -0
  17. package/dist/cjs/types/components/Chips/Chips.d.ts +24 -0
  18. package/dist/cjs/types/components/Chips/index.d.ts +1 -0
  19. package/dist/cjs/types/components/ColorPicker/ColorPicker.d.ts +24 -0
  20. package/dist/cjs/types/components/ColorPicker/index.d.ts +1 -0
  21. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +24 -0
  22. package/dist/cjs/types/components/Dropdown/index.d.ts +1 -0
  23. package/dist/cjs/types/components/Editor/Editor.d.ts +23 -0
  24. package/dist/cjs/types/components/Editor/index.d.ts +1 -0
  25. package/dist/cjs/types/components/FormContainer/FormContainer.d.ts +7 -0
  26. package/dist/cjs/types/components/FormContainer/FormContext.d.ts +4 -0
  27. package/dist/cjs/types/components/FormContainer/index.d.ts +2 -0
  28. package/dist/cjs/types/components/InputMask/InputMask.d.ts +24 -0
  29. package/dist/cjs/types/components/InputMask/index.d.ts +1 -0
  30. package/dist/cjs/types/components/InputNumber/InputNumber.d.ts +24 -0
  31. package/dist/cjs/types/components/InputNumber/index.d.ts +1 -0
  32. package/dist/cjs/types/components/InputOtp/InputOtp.d.ts +21 -0
  33. package/dist/cjs/types/components/InputOtp/index.d.ts +1 -0
  34. package/dist/cjs/types/components/InputPassword/InputPassword.d.ts +24 -0
  35. package/dist/cjs/types/components/InputPassword/index.d.ts +1 -0
  36. package/dist/cjs/types/components/InputSwitch/InputSwitch.d.ts +21 -0
  37. package/dist/cjs/types/components/InputSwitch/index.d.ts +1 -0
  38. package/dist/cjs/types/components/InputText/InputText.d.ts +24 -0
  39. package/dist/cjs/types/components/InputText/index.d.ts +1 -0
  40. package/dist/cjs/types/components/InputTextarea/InputTextarea.d.ts +23 -0
  41. package/dist/cjs/types/components/InputTextarea/index.d.ts +1 -0
  42. package/dist/cjs/types/components/Knob/Knob.d.ts +21 -0
  43. package/dist/cjs/types/components/Knob/index.d.ts +1 -0
  44. package/dist/cjs/types/components/ListBox/ListBox.d.ts +21 -0
  45. package/dist/cjs/types/components/ListBox/index.d.ts +1 -0
  46. package/dist/cjs/types/components/Mention/Mention.d.ts +24 -0
  47. package/dist/cjs/types/components/Mention/index.d.ts +1 -0
  48. package/dist/cjs/types/components/MultiSelect/MultiSelect.d.ts +24 -0
  49. package/dist/cjs/types/components/MultiSelect/index.d.ts +1 -0
  50. package/dist/cjs/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
  51. package/dist/cjs/types/components/MultiStateCheckbox/index.d.ts +1 -0
  52. package/dist/cjs/types/components/RadioGroup/RadioGroup.d.ts +24 -0
  53. package/dist/cjs/types/components/RadioGroup/index.d.ts +1 -0
  54. package/dist/cjs/types/components/Rating/Rating.d.ts +21 -0
  55. package/dist/cjs/types/components/Rating/index.d.ts +1 -0
  56. package/dist/cjs/types/components/SelectButton/SelectButton.d.ts +21 -0
  57. package/dist/cjs/types/components/SelectButton/index.d.ts +1 -0
  58. package/dist/cjs/types/components/Slider/Slider.d.ts +21 -0
  59. package/dist/cjs/types/components/Slider/index.d.ts +1 -0
  60. package/dist/cjs/types/components/ToggleButton/ToggleButton.d.ts +21 -0
  61. package/dist/cjs/types/components/ToggleButton/index.d.ts +1 -0
  62. package/dist/cjs/types/components/TreeSelect/TreeSelect.d.ts +24 -0
  63. package/dist/cjs/types/components/TreeSelect/index.d.ts +1 -0
  64. package/dist/cjs/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
  65. package/dist/cjs/types/components/TriStateCheckbox/index.d.ts +1 -0
  66. package/dist/cjs/types/components22/Button/Button.d.ts +7 -0
  67. package/dist/cjs/types/components22/Button/index.d.ts +2 -0
  68. package/dist/cjs/types/hooks/index.d.ts +3 -0
  69. package/dist/cjs/types/hooks/useApplyConfig.d.ts +17 -0
  70. package/dist/cjs/types/hooks/useFormContext.d.ts +2 -0
  71. package/dist/cjs/types/hooks/usePowellConfig.d.ts +2 -0
  72. package/dist/cjs/types/index.d.ts +1 -1
  73. package/dist/cjs/types/models/common.d.ts +7 -0
  74. package/dist/cjs/types/models/config.d.ts +13 -0
  75. package/dist/cjs/types/models/forms.d.ts +28 -0
  76. package/dist/cjs/types/models/index.d.ts +3 -0
  77. package/dist/cjs/types/utils/globalState.d.ts +19 -0
  78. package/dist/cjs/types/utils/index.d.ts +2 -0
  79. package/dist/cjs/types/utils/utilsService.d.ts +8 -0
  80. package/dist/esm/index.js +36893 -59
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/types/api/PowellProvider.d.ts +5 -0
  83. package/dist/esm/types/api/configService.d.ts +2 -0
  84. package/dist/esm/types/api/forms.d.ts +73 -0
  85. package/dist/esm/types/api/index.d.ts +5 -0
  86. package/dist/esm/types/api/powellDefaults.d.ts +2 -0
  87. package/dist/esm/types/api/primereact.d.ts +981 -0
  88. package/dist/esm/types/components/AutoComplete/AutoComplete.d.ts +24 -0
  89. package/dist/esm/types/components/AutoComplete/index.d.ts +1 -0
  90. package/dist/esm/types/components/Button/Button.d.ts +21 -6
  91. package/dist/esm/types/components/Button/index.d.ts +1 -2
  92. package/dist/esm/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
  93. package/dist/esm/types/components/CascadeSelect/index.d.ts +1 -0
  94. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +21 -0
  95. package/dist/esm/types/components/Checkbox/index.d.ts +1 -0
  96. package/dist/esm/types/components/Chips/Chips.d.ts +24 -0
  97. package/dist/esm/types/components/Chips/index.d.ts +1 -0
  98. package/dist/esm/types/components/ColorPicker/ColorPicker.d.ts +24 -0
  99. package/dist/esm/types/components/ColorPicker/index.d.ts +1 -0
  100. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +24 -0
  101. package/dist/esm/types/components/Dropdown/index.d.ts +1 -0
  102. package/dist/esm/types/components/Editor/Editor.d.ts +23 -0
  103. package/dist/esm/types/components/Editor/index.d.ts +1 -0
  104. package/dist/esm/types/components/FormContainer/FormContainer.d.ts +7 -0
  105. package/dist/esm/types/components/FormContainer/FormContext.d.ts +4 -0
  106. package/dist/esm/types/components/FormContainer/index.d.ts +2 -0
  107. package/dist/esm/types/components/InputMask/InputMask.d.ts +24 -0
  108. package/dist/esm/types/components/InputMask/index.d.ts +1 -0
  109. package/dist/esm/types/components/InputNumber/InputNumber.d.ts +24 -0
  110. package/dist/esm/types/components/InputNumber/index.d.ts +1 -0
  111. package/dist/esm/types/components/InputOtp/InputOtp.d.ts +21 -0
  112. package/dist/esm/types/components/InputOtp/index.d.ts +1 -0
  113. package/dist/esm/types/components/InputPassword/InputPassword.d.ts +24 -0
  114. package/dist/esm/types/components/InputPassword/index.d.ts +1 -0
  115. package/dist/esm/types/components/InputSwitch/InputSwitch.d.ts +21 -0
  116. package/dist/esm/types/components/InputSwitch/index.d.ts +1 -0
  117. package/dist/esm/types/components/InputText/InputText.d.ts +24 -0
  118. package/dist/esm/types/components/InputText/index.d.ts +1 -0
  119. package/dist/esm/types/components/InputTextarea/InputTextarea.d.ts +23 -0
  120. package/dist/esm/types/components/InputTextarea/index.d.ts +1 -0
  121. package/dist/esm/types/components/Knob/Knob.d.ts +21 -0
  122. package/dist/esm/types/components/Knob/index.d.ts +1 -0
  123. package/dist/esm/types/components/ListBox/ListBox.d.ts +21 -0
  124. package/dist/esm/types/components/ListBox/index.d.ts +1 -0
  125. package/dist/esm/types/components/Mention/Mention.d.ts +24 -0
  126. package/dist/esm/types/components/Mention/index.d.ts +1 -0
  127. package/dist/esm/types/components/MultiSelect/MultiSelect.d.ts +24 -0
  128. package/dist/esm/types/components/MultiSelect/index.d.ts +1 -0
  129. package/dist/esm/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
  130. package/dist/esm/types/components/MultiStateCheckbox/index.d.ts +1 -0
  131. package/dist/esm/types/components/RadioGroup/RadioGroup.d.ts +24 -0
  132. package/dist/esm/types/components/RadioGroup/index.d.ts +1 -0
  133. package/dist/esm/types/components/Rating/Rating.d.ts +21 -0
  134. package/dist/esm/types/components/Rating/index.d.ts +1 -0
  135. package/dist/esm/types/components/SelectButton/SelectButton.d.ts +21 -0
  136. package/dist/esm/types/components/SelectButton/index.d.ts +1 -0
  137. package/dist/esm/types/components/Slider/Slider.d.ts +21 -0
  138. package/dist/esm/types/components/Slider/index.d.ts +1 -0
  139. package/dist/esm/types/components/ToggleButton/ToggleButton.d.ts +21 -0
  140. package/dist/esm/types/components/ToggleButton/index.d.ts +1 -0
  141. package/dist/esm/types/components/TreeSelect/TreeSelect.d.ts +24 -0
  142. package/dist/esm/types/components/TreeSelect/index.d.ts +1 -0
  143. package/dist/esm/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
  144. package/dist/esm/types/components/TriStateCheckbox/index.d.ts +1 -0
  145. package/dist/esm/types/components22/Button/Button.d.ts +7 -0
  146. package/dist/esm/types/components22/Button/index.d.ts +2 -0
  147. package/dist/esm/types/hooks/index.d.ts +3 -0
  148. package/dist/esm/types/hooks/useApplyConfig.d.ts +17 -0
  149. package/dist/esm/types/hooks/useFormContext.d.ts +2 -0
  150. package/dist/esm/types/hooks/usePowellConfig.d.ts +2 -0
  151. package/dist/esm/types/index.d.ts +1 -1
  152. package/dist/esm/types/models/common.d.ts +7 -0
  153. package/dist/esm/types/models/config.d.ts +13 -0
  154. package/dist/esm/types/models/forms.d.ts +28 -0
  155. package/dist/esm/types/models/index.d.ts +3 -0
  156. package/dist/esm/types/utils/globalState.d.ts +19 -0
  157. package/dist/esm/types/utils/index.d.ts +2 -0
  158. package/dist/esm/types/utils/utilsService.d.ts +8 -0
  159. package/dist/index.d.ts +22 -7
  160. package/package.json +1 -1
  161. /package/dist/cjs/types/{components → components22}/Input/Input.d.ts +0 -0
  162. /package/dist/cjs/types/{components → components22}/Input/index.d.ts +0 -0
  163. /package/dist/cjs/types/{components → components22}/index.d.ts +0 -0
  164. /package/dist/esm/types/{components → components22}/Input/Input.d.ts +0 -0
  165. /package/dist/esm/types/{components → components22}/Input/index.d.ts +0 -0
  166. /package/dist/esm/types/{components → components22}/index.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { PowellConfig } from "@models";
3
+ export declare const PowellProvider: (props: PropsWithChildren<{
4
+ config?: PowellConfig;
5
+ }>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { PowellConfig } from "@models";
2
+ export declare const configService: import("@utils").StateWithValue<PowellConfig>;
@@ -0,0 +1,73 @@
1
+ import { ArrayHelpers, ComponentDecorator, CompositeComponent, connect, ErrorMessage, ErrorMessageProps, FastField, FastFieldAttributes, FastFieldConfig, FastFieldProps, Field, FieldArray, FieldArrayConfig, FieldArrayRenderProps, FieldAttributes, FieldConfig, FieldHelperProps, FieldHookConfig, FieldInputProps, FieldMetaProps, FieldProps, FieldValidator, Form, Formik, FormikBag, FormikComputedProps, FormikConfig, FormikConsumer, FormikContext, FormikContextType, FormikErrors, FormikFormProps, FormikHandlers, FormikHelpers, FormikProps, FormikProvider, FormikRegistration, FormikSharedConfig, FormikState, FormikTouched, FormikValues, GenericFieldHTMLAttributes, getActiveElement, getIn, InferableComponentDecorator, InjectedFormikProps, insert, isEmptyArray, isEmptyChildren, isFunction, isInputEvent, isInteger, isNaN, isObject, isPromise, isString, move, prepareDataForValidation, replace, setIn, setNestedObjectValues, SharedRenderProps, swap, useField, useFormik, useFormikContext, validateYupSchema, withFormik, WithFormikConfig, yupToFormErrors } from 'formik';
2
+ import * as Yup from 'yup';
3
+ export { ErrorMessage as $ErrorMessage };
4
+ export type { ErrorMessageProps as $ErrorMessageProps };
5
+ export type { FieldProps as $FieldProps };
6
+ export { Field as $Field };
7
+ export { FieldArray as $FieldArray };
8
+ export { Form as $Form };
9
+ export type { ArrayHelpers as $ArrayHelpers };
10
+ export type { FieldArrayConfig as $FieldArrayConfig };
11
+ export type { FastFieldConfig as $FastFieldConfig };
12
+ export type { FastFieldProps as $FastFieldProps };
13
+ export { FastField as $FastField };
14
+ export type { FastFieldAttributes as $FastFieldAttributes };
15
+ export type { FieldConfig as $FieldConfig };
16
+ export type { FieldAttributes as $FieldAttributes };
17
+ export type { FieldHookConfig as $FieldHookConfig };
18
+ export type { FieldInputProps as $FieldInputProps };
19
+ export type { FieldMetaProps as $FieldMetaProps };
20
+ export type { FieldHelperProps as $FieldHelperProps };
21
+ export type { FieldValidator as $FieldValidator };
22
+ export type { FieldArrayRenderProps as $FieldArrayRenderProps };
23
+ export { useField as $useField };
24
+ export type { FormikProps as $FormikProps };
25
+ export type { FormikComputedProps as $FormikComputedProps };
26
+ export type { FormikFormProps as $FormikFormProps };
27
+ export { Formik as $Formik };
28
+ export type { FormikConfig as $FormikConfig };
29
+ export type { FormikSharedConfig as $FormikSharedConfig };
30
+ export type { FormikBag as $FormikBag };
31
+ export { FormikConsumer as $FormikConsumer };
32
+ export type { FormikErrors as $FormikErrors };
33
+ export { FormikContext as $FormikContext };
34
+ export type { FormikContextType as $FormikContextType };
35
+ export type { FormikHandlers as $FormikHandlers };
36
+ export type { FormikHelpers as $FormikHelpers };
37
+ export { FormikProvider as $FormikProvider };
38
+ export type { FormikRegistration as $FormikRegistration };
39
+ export type { FormikState as $FormikState };
40
+ export type { FormikTouched as $FormikTouched };
41
+ export type { FormikValues as $FormikValues };
42
+ export { useFormikContext as $useFormikContext };
43
+ export type { WithFormikConfig as $WithFormikConfig };
44
+ export type { GenericFieldHTMLAttributes as $GenericFieldHTMLAttributes };
45
+ export type { SharedRenderProps as $SharedRenderProps };
46
+ export { connect as $connect };
47
+ export { getIn as $getIn };
48
+ export { isEmptyArray as $isEmptyArray };
49
+ export { useFormik as $useFormik };
50
+ export { withFormik as $withFormik };
51
+ export type { ComponentDecorator as $ComponentDecorator };
52
+ export type { InferableComponentDecorator as $InferableComponentDecorator };
53
+ export { insert as $insert };
54
+ export type { CompositeComponent as $CompositeComponent };
55
+ export { isEmptyChildren as $isEmptyChildren };
56
+ export { isInputEvent as $isInputEvent };
57
+ export { isNaN as $isNaN };
58
+ export type { InjectedFormikProps as $InjectedFormikProps };
59
+ export { isFunction as $isFunction };
60
+ export { move as $move };
61
+ export { isInteger as $isInteger };
62
+ export { isObject as $isObject };
63
+ export { isPromise as $isPromise };
64
+ export { isString as $isString };
65
+ export { swap as $swap };
66
+ export { replace as $replace };
67
+ export { setIn as $setIn };
68
+ export { prepareDataForValidation as $prepareDataForValidation };
69
+ export { setNestedObjectValues as $setNestedObjectValues };
70
+ export { validateYupSchema as $validateYupSchema };
71
+ export { yupToFormErrors as $yupToFormErrors };
72
+ export { getActiveElement as $getActiveElement };
73
+ export { Yup as $Yup };
@@ -0,0 +1,5 @@
1
+ export * from './configService';
2
+ export * from './forms';
3
+ export * from './powellDefaults';
4
+ export * from './PowellProvider';
5
+ export * from './primereact';
@@ -0,0 +1,2 @@
1
+ import { PowellConfig } from "@models";
2
+ export declare const powellDefaults: PowellConfig;