powell-react 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. package/.storybook/main.ts +28 -0
  2. package/.storybook/preview.scss +13 -0
  3. package/.storybook/preview.tsx +24 -0
  4. package/README.md +0 -321
  5. package/dist/cjs/index.js +1 -72407
  6. package/dist/cjs/types/src/components/Button/Button.d.ts +6 -0
  7. package/dist/cjs/types/src/components/Button/index.d.ts +1 -0
  8. package/dist/cjs/types/src/components/index.d.ts +1 -0
  9. package/dist/cjs/types/src/index.d.ts +1 -0
  10. package/dist/cjs/types/{api → src/powell/api}/PowellProvider.d.ts +2 -2
  11. package/dist/cjs/types/src/powell/api/configService.d.ts +2 -0
  12. package/dist/cjs/types/{api → src/powell/api}/powellDefaults.d.ts +1 -1
  13. package/dist/cjs/types/{api → src/powell/api}/primereact.d.ts +0 -14
  14. package/dist/cjs/types/{components → src/powell/components}/AutoComplete/AutoComplete.d.ts +4 -4
  15. package/dist/{esm/types → cjs/types/src/powell}/components/Button/Button.d.ts +3 -3
  16. package/dist/{esm/types → cjs/types/src/powell}/components/CascadeSelect/CascadeSelect.d.ts +4 -4
  17. package/dist/{esm/types → cjs/types/src/powell}/components/Checkbox/Checkbox.d.ts +4 -4
  18. package/dist/cjs/types/{components → src/powell/components}/Chips/Chips.d.ts +3 -3
  19. package/dist/{esm/types → cjs/types/src/powell}/components/ColorPicker/ColorPicker.d.ts +4 -4
  20. package/dist/{esm/types → cjs/types/src/powell}/components/Dropdown/Dropdown.d.ts +4 -4
  21. package/dist/{esm/types → cjs/types/src/powell}/components/Editor/Editor.d.ts +4 -4
  22. package/dist/{esm/types → cjs/types/src/powell}/components/FormContainer/FormContainer.d.ts +1 -1
  23. package/dist/cjs/types/{components → src/powell/components}/FormContainer/FormContext.d.ts +2 -2
  24. package/dist/{esm/types → cjs/types/src/powell}/components/InputMask/InputMask.d.ts +4 -4
  25. package/dist/cjs/types/{components → src/powell/components}/InputNumber/InputNumber.d.ts +4 -4
  26. package/dist/cjs/types/{components → src/powell/components}/InputOtp/InputOtp.d.ts +4 -4
  27. package/dist/cjs/types/{components → src/powell/components}/InputPassword/InputPassword.d.ts +3 -3
  28. package/dist/{esm/types → cjs/types/src/powell}/components/InputSwitch/InputSwitch.d.ts +4 -4
  29. package/dist/{esm/types → cjs/types/src/powell}/components/InputText/InputText.d.ts +4 -4
  30. package/dist/cjs/types/{components → src/powell/components}/InputTextarea/InputTextarea.d.ts +4 -4
  31. package/dist/cjs/types/{components → src/powell/components}/Knob/Knob.d.ts +3 -3
  32. package/dist/cjs/types/{components → src/powell/components}/ListBox/ListBox.d.ts +3 -3
  33. package/dist/{esm/types → cjs/types/src/powell}/components/Mention/Mention.d.ts +4 -4
  34. package/dist/cjs/types/{components → src/powell/components}/MultiSelect/MultiSelect.d.ts +4 -4
  35. package/dist/cjs/types/{components → src/powell/components}/MultiStateCheckbox/MultiStateCheckbox.d.ts +3 -3
  36. package/dist/cjs/types/{components → src/powell/components}/RadioGroup/RadioGroup.d.ts +4 -4
  37. package/dist/{esm/types → cjs/types/src/powell}/components/Rating/Rating.d.ts +4 -4
  38. package/dist/cjs/types/{components → src/powell/components}/SelectButton/SelectButton.d.ts +4 -4
  39. package/dist/{esm/types → cjs/types/src/powell}/components/Slider/Slider.d.ts +4 -4
  40. package/dist/cjs/types/{components → src/powell/components}/ToggleButton/ToggleButton.d.ts +4 -4
  41. package/dist/cjs/types/{components → src/powell/components}/TreeSelect/TreeSelect.d.ts +4 -4
  42. package/dist/cjs/types/{components → src/powell/components}/TriStateCheckbox/TriStateCheckbox.d.ts +4 -4
  43. package/dist/{esm/types → cjs/types/src/powell}/hooks/useApplyConfig.d.ts +2 -2
  44. package/dist/cjs/types/{hooks → src/powell/hooks}/useFormContext.d.ts +1 -1
  45. package/dist/cjs/types/{hooks → src/powell/hooks}/usePowellConfig.d.ts +1 -1
  46. package/dist/cjs/types/{models → src/powell/models}/config.d.ts +2 -2
  47. package/dist/cjs/types/{models → src/powell/models}/forms.d.ts +2 -2
  48. package/dist/{esm/types → cjs/types/src/powell}/utils/utilsService.d.ts +3 -3
  49. package/dist/cjs/types/vite.config.d.ts +2 -0
  50. package/dist/esm/index.js +1 -72377
  51. package/dist/esm/types/src/components/Button/Button.d.ts +6 -0
  52. package/dist/esm/types/src/components/Button/index.d.ts +1 -0
  53. package/dist/esm/types/src/components/index.d.ts +1 -0
  54. package/dist/esm/types/src/index.d.ts +1 -0
  55. package/dist/esm/types/{api → src/powell/api}/PowellProvider.d.ts +2 -2
  56. package/dist/esm/types/src/powell/api/configService.d.ts +2 -0
  57. package/dist/esm/types/{api → src/powell/api}/powellDefaults.d.ts +1 -1
  58. package/dist/esm/types/{api → src/powell/api}/primereact.d.ts +0 -14
  59. package/dist/esm/types/{components → src/powell/components}/AutoComplete/AutoComplete.d.ts +4 -4
  60. package/dist/{cjs/types → esm/types/src/powell}/components/Button/Button.d.ts +3 -3
  61. package/dist/{cjs/types → esm/types/src/powell}/components/CascadeSelect/CascadeSelect.d.ts +4 -4
  62. package/dist/{cjs/types → esm/types/src/powell}/components/Checkbox/Checkbox.d.ts +4 -4
  63. package/dist/esm/types/{components → src/powell/components}/Chips/Chips.d.ts +3 -3
  64. package/dist/{cjs/types → esm/types/src/powell}/components/ColorPicker/ColorPicker.d.ts +4 -4
  65. package/dist/{cjs/types → esm/types/src/powell}/components/Dropdown/Dropdown.d.ts +4 -4
  66. package/dist/{cjs/types → esm/types/src/powell}/components/Editor/Editor.d.ts +4 -4
  67. package/dist/{cjs/types → esm/types/src/powell}/components/FormContainer/FormContainer.d.ts +1 -1
  68. package/dist/esm/types/{components → src/powell/components}/FormContainer/FormContext.d.ts +2 -2
  69. package/dist/{cjs/types → esm/types/src/powell}/components/InputMask/InputMask.d.ts +4 -4
  70. package/dist/esm/types/{components → src/powell/components}/InputNumber/InputNumber.d.ts +4 -4
  71. package/dist/esm/types/{components → src/powell/components}/InputOtp/InputOtp.d.ts +4 -4
  72. package/dist/esm/types/{components → src/powell/components}/InputPassword/InputPassword.d.ts +3 -3
  73. package/dist/{cjs/types → esm/types/src/powell}/components/InputSwitch/InputSwitch.d.ts +4 -4
  74. package/dist/{cjs/types → esm/types/src/powell}/components/InputText/InputText.d.ts +4 -4
  75. package/dist/esm/types/{components → src/powell/components}/InputTextarea/InputTextarea.d.ts +4 -4
  76. package/dist/esm/types/{components → src/powell/components}/Knob/Knob.d.ts +3 -3
  77. package/dist/esm/types/{components → src/powell/components}/ListBox/ListBox.d.ts +3 -3
  78. package/dist/{cjs/types → esm/types/src/powell}/components/Mention/Mention.d.ts +4 -4
  79. package/dist/esm/types/{components → src/powell/components}/MultiSelect/MultiSelect.d.ts +4 -4
  80. package/dist/esm/types/{components → src/powell/components}/MultiStateCheckbox/MultiStateCheckbox.d.ts +3 -3
  81. package/dist/esm/types/{components → src/powell/components}/RadioGroup/RadioGroup.d.ts +4 -4
  82. package/dist/{cjs/types → esm/types/src/powell}/components/Rating/Rating.d.ts +4 -4
  83. package/dist/esm/types/{components → src/powell/components}/SelectButton/SelectButton.d.ts +4 -4
  84. package/dist/{cjs/types → esm/types/src/powell}/components/Slider/Slider.d.ts +4 -4
  85. package/dist/esm/types/{components → src/powell/components}/ToggleButton/ToggleButton.d.ts +4 -4
  86. package/dist/esm/types/{components → src/powell/components}/TreeSelect/TreeSelect.d.ts +4 -4
  87. package/dist/esm/types/{components → src/powell/components}/TriStateCheckbox/TriStateCheckbox.d.ts +4 -4
  88. package/dist/{cjs/types → esm/types/src/powell}/hooks/useApplyConfig.d.ts +2 -2
  89. package/dist/esm/types/{hooks → src/powell/hooks}/useFormContext.d.ts +1 -1
  90. package/dist/esm/types/{hooks → src/powell/hooks}/usePowellConfig.d.ts +1 -1
  91. package/dist/esm/types/{models → src/powell/models}/config.d.ts +2 -2
  92. package/dist/esm/types/{models → src/powell/models}/forms.d.ts +2 -2
  93. package/dist/{cjs/types → esm/types/src/powell}/utils/utilsService.d.ts +3 -3
  94. package/dist/esm/types/vite.config.d.ts +2 -0
  95. package/package.json +46 -57
  96. package/rollup.config.mjs +95 -0
  97. package/src/components/Button/Button.scss +43 -0
  98. package/src/components/Button/Button.stories.tsx +13 -0
  99. package/src/components/Button/Button.tsx +19 -0
  100. package/src/components/Button/index.ts +1 -0
  101. package/src/components/index.ts +1 -0
  102. package/src/index.ts +1 -0
  103. package/src/powell/api/PowellProvider.tsx +37 -0
  104. package/src/powell/api/configService.ts +4 -0
  105. package/src/powell/api/forms.ts +145 -0
  106. package/src/powell/api/index.ts +5 -0
  107. package/src/powell/api/powellDefaults.ts +11 -0
  108. package/src/powell/api/primereact.ts +1945 -0
  109. package/src/powell/components/AutoComplete/AutoComplete.scss +126 -0
  110. package/src/powell/components/AutoComplete/AutoComplete.tsx +190 -0
  111. package/src/powell/components/AutoComplete/index.ts +1 -0
  112. package/src/powell/components/Button/Button.tsx +90 -0
  113. package/src/powell/components/Button/index.ts +1 -0
  114. package/src/powell/components/CascadeSelect/CascadeSelect.scss +126 -0
  115. package/src/powell/components/CascadeSelect/CascadeSelect.tsx +190 -0
  116. package/src/powell/components/CascadeSelect/index.ts +1 -0
  117. package/src/powell/components/Checkbox/Checkbox.scss +32 -0
  118. package/src/powell/components/Checkbox/Checkbox.tsx +147 -0
  119. package/src/powell/components/Checkbox/index.ts +1 -0
  120. package/src/powell/components/Chips/Chips.scss +126 -0
  121. package/src/powell/components/Chips/Chips.tsx +190 -0
  122. package/src/powell/components/Chips/index.ts +1 -0
  123. package/src/powell/components/ColorPicker/ColorPicker.scss +126 -0
  124. package/src/powell/components/ColorPicker/ColorPicker.tsx +186 -0
  125. package/src/powell/components/ColorPicker/index.ts +1 -0
  126. package/src/powell/components/Dropdown/Dropdown.scss +126 -0
  127. package/src/powell/components/Dropdown/Dropdown.tsx +190 -0
  128. package/src/powell/components/Dropdown/index.ts +1 -0
  129. package/src/powell/components/Editor/Editor.scss +126 -0
  130. package/src/powell/components/Editor/Editor.tsx +183 -0
  131. package/src/powell/components/Editor/index.ts +1 -0
  132. package/src/powell/components/FormContainer/FormContainer.tsx +49 -0
  133. package/src/powell/components/FormContainer/FormContext.tsx +18 -0
  134. package/src/powell/components/FormContainer/index.ts +2 -0
  135. package/src/powell/components/InputMask/InputMask.scss +126 -0
  136. package/src/powell/components/InputMask/InputMask.tsx +190 -0
  137. package/src/powell/components/InputMask/index.ts +1 -0
  138. package/src/powell/components/InputNumber/InputNumber.scss +126 -0
  139. package/src/powell/components/InputNumber/InputNumber.tsx +190 -0
  140. package/src/powell/components/InputNumber/index.ts +1 -0
  141. package/src/powell/components/InputOtp/InputOtp.scss +126 -0
  142. package/src/powell/components/InputOtp/InputOtp.tsx +154 -0
  143. package/src/powell/components/InputOtp/index.ts +1 -0
  144. package/src/powell/components/InputPassword/InputPassword.scss +126 -0
  145. package/src/powell/components/InputPassword/InputPassword.tsx +189 -0
  146. package/src/powell/components/InputPassword/index.ts +1 -0
  147. package/src/powell/components/InputSwitch/InputSwitch.scss +32 -0
  148. package/src/powell/components/InputSwitch/InputSwitch.tsx +144 -0
  149. package/src/powell/components/InputSwitch/index.ts +1 -0
  150. package/src/powell/components/InputText/InputText.scss +126 -0
  151. package/src/powell/components/InputText/InputText.tsx +190 -0
  152. package/src/powell/components/InputText/index.ts +1 -0
  153. package/src/powell/components/InputTextarea/InputTextarea.scss +126 -0
  154. package/src/powell/components/InputTextarea/InputTextarea.tsx +187 -0
  155. package/src/powell/components/InputTextarea/index.ts +1 -0
  156. package/src/powell/components/Knob/Knob.scss +32 -0
  157. package/src/powell/components/Knob/Knob.tsx +134 -0
  158. package/src/powell/components/Knob/index.ts +1 -0
  159. package/src/powell/components/ListBox/ListBox.scss +32 -0
  160. package/src/powell/components/ListBox/ListBox.tsx +135 -0
  161. package/src/powell/components/ListBox/index.ts +1 -0
  162. package/src/powell/components/Mention/Mention.scss +126 -0
  163. package/src/powell/components/Mention/Mention.tsx +186 -0
  164. package/src/powell/components/Mention/index.ts +1 -0
  165. package/src/powell/components/MultiSelect/MultiSelect.scss +126 -0
  166. package/src/powell/components/MultiSelect/MultiSelect.tsx +190 -0
  167. package/src/powell/components/MultiSelect/index.ts +1 -0
  168. package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.scss +32 -0
  169. package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.tsx +143 -0
  170. package/src/powell/components/MultiStateCheckbox/index.ts +1 -0
  171. package/src/powell/components/RadioGroup/RadioGroup.scss +32 -0
  172. package/src/powell/components/RadioGroup/RadioGroup.tsx +167 -0
  173. package/src/powell/components/RadioGroup/index.ts +1 -0
  174. package/src/powell/components/Rating/Rating.scss +32 -0
  175. package/src/powell/components/Rating/Rating.tsx +135 -0
  176. package/src/powell/components/Rating/index.ts +1 -0
  177. package/src/powell/components/SelectButton/SelectButton.scss +32 -0
  178. package/src/powell/components/SelectButton/SelectButton.tsx +144 -0
  179. package/src/powell/components/SelectButton/index.ts +1 -0
  180. package/src/powell/components/Slider/Slider.scss +32 -0
  181. package/src/powell/components/Slider/Slider.tsx +135 -0
  182. package/src/powell/components/Slider/index.ts +1 -0
  183. package/src/powell/components/ToggleButton/ToggleButton.scss +32 -0
  184. package/src/powell/components/ToggleButton/ToggleButton.tsx +144 -0
  185. package/src/powell/components/ToggleButton/index.ts +1 -0
  186. package/src/powell/components/TreeSelect/TreeSelect.scss +126 -0
  187. package/src/powell/components/TreeSelect/TreeSelect.tsx +190 -0
  188. package/src/powell/components/TreeSelect/index.ts +1 -0
  189. package/src/powell/components/TriStateCheckbox/TriStateCheckbox.scss +32 -0
  190. package/src/powell/components/TriStateCheckbox/TriStateCheckbox.tsx +144 -0
  191. package/src/powell/components/TriStateCheckbox/index.ts +1 -0
  192. package/src/powell/hooks/index.ts +3 -0
  193. package/src/powell/hooks/useApplyConfig.ts +36 -0
  194. package/src/powell/hooks/useFormContext.ts +14 -0
  195. package/src/powell/hooks/usePowellConfig.ts +64 -0
  196. package/src/powell/index.ts +29 -0
  197. package/src/powell/models/common.ts +7 -0
  198. package/src/powell/models/config.ts +85 -0
  199. package/src/powell/models/forms.ts +33 -0
  200. package/src/powell/models/index.ts +3 -0
  201. package/src/powell/styles/common.scss +9 -0
  202. package/src/powell/styles/mixins.scss +0 -0
  203. package/src/powell/themes/arya-blue.css +1 -0
  204. package/src/powell/themes/arya-green.css +1 -0
  205. package/src/powell/themes/arya-orange.css +1 -0
  206. package/src/powell/themes/arya-purple.css +1 -0
  207. package/src/powell/themes/bootstrap4-dark-blue.css +1 -0
  208. package/src/powell/themes/bootstrap4-dark-purple.css +1 -0
  209. package/src/powell/themes/bootstrap4-light-blue.css +1 -0
  210. package/src/powell/themes/bootstrap4-light-purple.css +1 -0
  211. package/src/powell/themes/fluent-light.css +1 -0
  212. package/src/powell/themes/lara-dark-amber.css +1 -0
  213. package/src/powell/themes/lara-dark-blue.css +1 -0
  214. package/src/powell/themes/lara-dark-cyan.css +1 -0
  215. package/src/powell/themes/lara-dark-green.css +1 -0
  216. package/src/powell/themes/lara-dark-indigo.css +1 -0
  217. package/src/powell/themes/lara-dark-pink.css +1 -0
  218. package/src/powell/themes/lara-dark-purple.css +1 -0
  219. package/src/powell/themes/lara-dark-teal.css +1 -0
  220. package/src/powell/themes/lara-light-amber.css +1 -0
  221. package/src/powell/themes/lara-light-blue.css +1 -0
  222. package/src/powell/themes/lara-light-cyan.css +1 -0
  223. package/src/powell/themes/lara-light-green.css +1 -0
  224. package/src/powell/themes/lara-light-indigo.css +1 -0
  225. package/src/powell/themes/lara-light-pink.css +1 -0
  226. package/src/powell/themes/lara-light-purple.css +1 -0
  227. package/src/powell/themes/lara-light-teal.css +1 -0
  228. package/src/powell/themes/luna-amber.css +1 -0
  229. package/src/powell/themes/luna-blue.css +1 -0
  230. package/src/powell/themes/luna-green.css +1 -0
  231. package/src/powell/themes/luna-pink.css +1 -0
  232. package/src/powell/themes/md-dark-deeppurple.css +1 -0
  233. package/src/powell/themes/md-dark-indigo.css +1 -0
  234. package/src/powell/themes/md-light-deeppurple.css +1 -0
  235. package/src/powell/themes/md-light-indigo.css +1 -0
  236. package/src/powell/themes/mdc-dark-deeppurple.css +1 -0
  237. package/src/powell/themes/mdc-dark-indigo.css +1 -0
  238. package/src/powell/themes/mdc-light-deeppurple.css +1 -0
  239. package/src/powell/themes/mdc-light-indigo.css +1 -0
  240. package/src/powell/themes/mira.css +1 -0
  241. package/src/powell/themes/nano.css +1 -0
  242. package/src/powell/themes/nova-accent.css +1 -0
  243. package/src/powell/themes/nova-alt.css +1 -0
  244. package/src/powell/themes/nova.css +1 -0
  245. package/src/powell/themes/rhea.css +1 -0
  246. package/src/powell/themes/saga-blue.css +1 -0
  247. package/src/powell/themes/saga-green.css +1 -0
  248. package/src/powell/themes/saga-orange.css +1 -0
  249. package/src/powell/themes/saga-purple.css +1 -0
  250. package/src/powell/themes/soho-dark.css +1 -0
  251. package/src/powell/themes/soho-light.css +1 -0
  252. package/src/powell/themes/tailwind-light.css +1 -0
  253. package/src/powell/themes/vela-blue.css +1 -0
  254. package/src/powell/themes/vela-green.css +1 -0
  255. package/src/powell/themes/vela-orange.css +1 -0
  256. package/src/powell/themes/vela-purple.css +1 -0
  257. package/src/powell/themes/viva-dark.css +1 -0
  258. package/src/powell/themes/viva-light.css +1 -0
  259. package/src/powell/utils/globalState.ts +96 -0
  260. package/src/powell/utils/index.ts +2 -0
  261. package/src/powell/utils/utilsService.tsx +55 -0
  262. package/src/stories/Button.stories.tsx +16 -0
  263. package/tsconfig.json +55 -0
  264. package/vite.config.ts +14 -0
  265. package/dist/cjs/index.js.map +0 -1
  266. package/dist/cjs/types/api/configService.d.ts +0 -2
  267. package/dist/esm/index.js.map +0 -1
  268. package/dist/esm/types/api/configService.d.ts +0 -2
  269. package/dist/index.d.ts +0 -495
  270. /package/dist/cjs/types/{api → src/powell/api}/forms.d.ts +0 -0
  271. /package/dist/cjs/types/{api → src/powell/api}/index.d.ts +0 -0
  272. /package/dist/cjs/types/{components → src/powell/components}/AutoComplete/index.d.ts +0 -0
  273. /package/dist/cjs/types/{components → src/powell/components}/Button/index.d.ts +0 -0
  274. /package/dist/cjs/types/{components → src/powell/components}/CascadeSelect/index.d.ts +0 -0
  275. /package/dist/cjs/types/{components → src/powell/components}/Checkbox/index.d.ts +0 -0
  276. /package/dist/cjs/types/{components → src/powell/components}/Chips/index.d.ts +0 -0
  277. /package/dist/cjs/types/{components → src/powell/components}/ColorPicker/index.d.ts +0 -0
  278. /package/dist/cjs/types/{components → src/powell/components}/Dropdown/index.d.ts +0 -0
  279. /package/dist/cjs/types/{components → src/powell/components}/Editor/index.d.ts +0 -0
  280. /package/dist/cjs/types/{components → src/powell/components}/FormContainer/index.d.ts +0 -0
  281. /package/dist/cjs/types/{components → src/powell/components}/InputMask/index.d.ts +0 -0
  282. /package/dist/cjs/types/{components → src/powell/components}/InputNumber/index.d.ts +0 -0
  283. /package/dist/cjs/types/{components → src/powell/components}/InputOtp/index.d.ts +0 -0
  284. /package/dist/cjs/types/{components → src/powell/components}/InputPassword/index.d.ts +0 -0
  285. /package/dist/cjs/types/{components → src/powell/components}/InputSwitch/index.d.ts +0 -0
  286. /package/dist/cjs/types/{components → src/powell/components}/InputText/index.d.ts +0 -0
  287. /package/dist/cjs/types/{components → src/powell/components}/InputTextarea/index.d.ts +0 -0
  288. /package/dist/cjs/types/{components → src/powell/components}/Knob/index.d.ts +0 -0
  289. /package/dist/cjs/types/{components → src/powell/components}/ListBox/index.d.ts +0 -0
  290. /package/dist/cjs/types/{components → src/powell/components}/Mention/index.d.ts +0 -0
  291. /package/dist/cjs/types/{components → src/powell/components}/MultiSelect/index.d.ts +0 -0
  292. /package/dist/cjs/types/{components → src/powell/components}/MultiStateCheckbox/index.d.ts +0 -0
  293. /package/dist/cjs/types/{components → src/powell/components}/RadioGroup/index.d.ts +0 -0
  294. /package/dist/cjs/types/{components → src/powell/components}/Rating/index.d.ts +0 -0
  295. /package/dist/cjs/types/{components → src/powell/components}/SelectButton/index.d.ts +0 -0
  296. /package/dist/cjs/types/{components → src/powell/components}/Slider/index.d.ts +0 -0
  297. /package/dist/cjs/types/{components → src/powell/components}/ToggleButton/index.d.ts +0 -0
  298. /package/dist/cjs/types/{components → src/powell/components}/TreeSelect/index.d.ts +0 -0
  299. /package/dist/cjs/types/{components → src/powell/components}/TriStateCheckbox/index.d.ts +0 -0
  300. /package/dist/cjs/types/{hooks → src/powell/hooks}/index.d.ts +0 -0
  301. /package/dist/cjs/types/{index.d.ts → src/powell/index.d.ts} +0 -0
  302. /package/dist/cjs/types/{models → src/powell/models}/common.d.ts +0 -0
  303. /package/dist/cjs/types/{models → src/powell/models}/index.d.ts +0 -0
  304. /package/dist/cjs/types/{utils → src/powell/utils}/globalState.d.ts +0 -0
  305. /package/dist/cjs/types/{utils → src/powell/utils}/index.d.ts +0 -0
  306. /package/dist/esm/types/{api → src/powell/api}/forms.d.ts +0 -0
  307. /package/dist/esm/types/{api → src/powell/api}/index.d.ts +0 -0
  308. /package/dist/esm/types/{components → src/powell/components}/AutoComplete/index.d.ts +0 -0
  309. /package/dist/esm/types/{components → src/powell/components}/Button/index.d.ts +0 -0
  310. /package/dist/esm/types/{components → src/powell/components}/CascadeSelect/index.d.ts +0 -0
  311. /package/dist/esm/types/{components → src/powell/components}/Checkbox/index.d.ts +0 -0
  312. /package/dist/esm/types/{components → src/powell/components}/Chips/index.d.ts +0 -0
  313. /package/dist/esm/types/{components → src/powell/components}/ColorPicker/index.d.ts +0 -0
  314. /package/dist/esm/types/{components → src/powell/components}/Dropdown/index.d.ts +0 -0
  315. /package/dist/esm/types/{components → src/powell/components}/Editor/index.d.ts +0 -0
  316. /package/dist/esm/types/{components → src/powell/components}/FormContainer/index.d.ts +0 -0
  317. /package/dist/esm/types/{components → src/powell/components}/InputMask/index.d.ts +0 -0
  318. /package/dist/esm/types/{components → src/powell/components}/InputNumber/index.d.ts +0 -0
  319. /package/dist/esm/types/{components → src/powell/components}/InputOtp/index.d.ts +0 -0
  320. /package/dist/esm/types/{components → src/powell/components}/InputPassword/index.d.ts +0 -0
  321. /package/dist/esm/types/{components → src/powell/components}/InputSwitch/index.d.ts +0 -0
  322. /package/dist/esm/types/{components → src/powell/components}/InputText/index.d.ts +0 -0
  323. /package/dist/esm/types/{components → src/powell/components}/InputTextarea/index.d.ts +0 -0
  324. /package/dist/esm/types/{components → src/powell/components}/Knob/index.d.ts +0 -0
  325. /package/dist/esm/types/{components → src/powell/components}/ListBox/index.d.ts +0 -0
  326. /package/dist/esm/types/{components → src/powell/components}/Mention/index.d.ts +0 -0
  327. /package/dist/esm/types/{components → src/powell/components}/MultiSelect/index.d.ts +0 -0
  328. /package/dist/esm/types/{components → src/powell/components}/MultiStateCheckbox/index.d.ts +0 -0
  329. /package/dist/esm/types/{components → src/powell/components}/RadioGroup/index.d.ts +0 -0
  330. /package/dist/esm/types/{components → src/powell/components}/Rating/index.d.ts +0 -0
  331. /package/dist/esm/types/{components → src/powell/components}/SelectButton/index.d.ts +0 -0
  332. /package/dist/esm/types/{components → src/powell/components}/Slider/index.d.ts +0 -0
  333. /package/dist/esm/types/{components → src/powell/components}/ToggleButton/index.d.ts +0 -0
  334. /package/dist/esm/types/{components → src/powell/components}/TreeSelect/index.d.ts +0 -0
  335. /package/dist/esm/types/{components → src/powell/components}/TriStateCheckbox/index.d.ts +0 -0
  336. /package/dist/esm/types/{hooks → src/powell/hooks}/index.d.ts +0 -0
  337. /package/dist/esm/types/{index.d.ts → src/powell/index.d.ts} +0 -0
  338. /package/dist/esm/types/{models → src/powell/models}/common.d.ts +0 -0
  339. /package/dist/esm/types/{models → src/powell/models}/index.d.ts +0 -0
  340. /package/dist/esm/types/{utils → src/powell/utils}/globalState.d.ts +0 -0
  341. /package/dist/esm/types/{utils → src/powell/utils}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { $APIOptions } from "@api";
2
- import { FixLabelPosition, LabelPosition, Size } from "@models";
1
+ import { $APIOptions } from "@powell/api";
2
+ import { FixLabelPosition, LabelPosition, Size } from "@powell/models";
3
3
  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";
4
4
  type OmittedApiOptions = Omit<$APIOptions, "setAppendTo" | "setStyleContainer" | "setAutoZIndex" | "setCssTransition" | "setFilterMatchModeOptions" | "setHideOverlaysOnDocumentScrolling" | "setInputStyle" | "setLocale" | "setNonce" | "setNullSortOrder" | "setRipple" | "setZIndex" | "setPt" | "changeTheme">;
5
5
  export interface PowellConfig extends OmittedApiOptions {
@@ -1,5 +1,5 @@
1
- import { $ButtonProps } from "@api";
2
- import { ButtonAppearance, Nullable, Position, SafeAny } from "@models";
1
+ import { $ButtonProps } from "@powell/api";
2
+ import { ButtonAppearance, Nullable, Position, SafeAny } from "@powell/models";
3
3
  import { MouseEvent } from "react";
4
4
  export type LabelPosition = 'float' | 'fix-side' | 'fix-top';
5
5
  export type FixLabelPosition = Exclude<LabelPosition, 'float'>;
@@ -1,6 +1,6 @@
1
- import { AddonConfig, TransformOptions } from "@models";
2
- import { $FormikContextType, $FormikValues } from "@api";
3
- export declare const getAddonTemplate: (config?: AddonConfig) => import("react/jsx-runtime").JSX.Element;
1
+ import { AddonConfig, TransformOptions } from "@powell/models";
2
+ import { $FormikContextType, $FormikValues } from "@powell/api";
3
+ export declare const getAddonTemplate: (config?: AddonConfig) => import("react").JSX.Element;
4
4
  export declare const isRequiredField: (formContext: $FormikContextType<$FormikValues> | null, name: string | undefined) => any;
5
5
  export declare const transformer: <V = any, T = any>(options: TransformOptions<V, T>) => {
6
6
  value: V;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,81 +1,70 @@
1
1
  {
2
2
  "name": "powell-react",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": ""
9
+ },
10
+ "homepage": "",
4
11
  "main": "dist/cjs/index.js",
5
12
  "module": "dist/esm/index.js",
6
13
  "types": "dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
14
+ "type": "module",
15
+ "engines": {
16
+ "node": ">=18"
17
+ },
10
18
  "scripts": {
11
- "dev": "rollup -c --watch",
19
+ "start": "npm run storybook",
20
+ "prebuild": "npm version patch",
12
21
  "build": "rollup -c",
22
+ "release": "npm run build && npm publish",
13
23
  "storybook": "storybook dev -p 6006",
14
- "build-storybook": "storybook build"
24
+ "storybook:build": "storybook build"
15
25
  },
16
- "babel": {
17
- "sourceType": "unambiguous",
18
- "presets": [
19
- [
20
- "@babel/preset-env",
21
- {
22
- "targets": {
23
- "chrome": 100,
24
- "safari": 15,
25
- "firefox": 91
26
- }
27
- }
28
- ],
29
- [
30
- "@babel/preset-react",
31
- {
32
- "runtime": "automatic"
33
- }
34
- ],
35
- "@babel/preset-typescript"
36
- ]
26
+ "peerDependencies": {
27
+ "react": "18.x",
28
+ "react-dom": "18.x"
37
29
  },
38
- "author": "",
39
- "license": "ISC",
40
- "description": "",
41
30
  "devDependencies": {
42
- "@babel/core": "^7.24.6",
43
- "@babel/preset-env": "^7.24.6",
44
- "@babel/preset-react": "^7.24.6",
45
- "@babel/preset-typescript": "^7.24.6",
46
- "@chromatic-com/storybook": "1.5.0",
47
- "@rollup/plugin-commonjs": "^25.0.8",
31
+ "@chromatic-com/storybook": "^2.0.2",
32
+ "@rollup/plugin-alias": "^5.1.1",
33
+ "@rollup/plugin-commonjs": "^26.0.1",
48
34
  "@rollup/plugin-node-resolve": "^15.2.3",
49
35
  "@rollup/plugin-typescript": "^11.1.6",
50
- "@storybook/addon-essentials": "^8.1.5",
51
- "@storybook/addon-interactions": "^8.1.5",
52
- "@storybook/addon-links": "^8.1.5",
53
- "@storybook/addon-onboarding": "^8.1.5",
54
- "@storybook/addon-webpack5-compiler-swc": "1.0.3",
55
- "@storybook/blocks": "^8.1.5",
56
- "@storybook/react": "^8.1.5",
57
- "@storybook/react-webpack5": "^8.1.5",
58
- "@storybook/test": "^8.1.5",
59
- "@types/react": "^18.3.3",
60
- "postcss": "^8.4.38",
36
+ "@rollup/plugin-url": "^8.0.2",
37
+ "@storybook/addon-docs": "^8.3.1",
38
+ "@storybook/addon-essentials": "^8.3.1",
39
+ "@storybook/addon-interactions": "^8.3.1",
40
+ "@storybook/addon-links": "^8.3.1",
41
+ "@storybook/addon-onboarding": "^8.3.1",
42
+ "@storybook/blocks": "^8.3.1",
43
+ "@storybook/react": "^8.3.1",
44
+ "@storybook/react-vite": "^8.3.1",
45
+ "@storybook/test": "^8.3.1",
46
+ "@svgr/rollup": "^8.1.0",
47
+ "@types/node": "^22.5.5",
48
+ "@types/react": "^18.3.7",
49
+ "@types/react-dom": "^18.3.0",
50
+ "@vitejs/plugin-react": "^4.3.1",
61
51
  "react": "^18.3.1",
62
52
  "react-dom": "^18.3.1",
63
- "rollup": "^4.18.0",
53
+ "rimraf": "^6.0.1",
54
+ "rollup": "^4.22.4",
64
55
  "rollup-plugin-dts": "^6.1.1",
56
+ "rollup-plugin-peer-deps-external": "^2.2.4",
65
57
  "rollup-plugin-postcss": "^4.0.2",
66
- "storybook": "^8.1.5",
67
- "tslib": "^2.6.2",
68
- "typescript": "^5.4.5"
69
- },
70
- "peerDependencies": {
71
- "react": "^18.2.0"
58
+ "rollup-plugin-terser": "^7.0.2",
59
+ "sass": "^1.78.0",
60
+ "storybook": "^8.3.1",
61
+ "typescript": "5.5.4",
62
+ "vite": "^5.4.6",
63
+ "vite-plugin-svgr": "^4.2.0"
72
64
  },
73
65
  "dependencies": {
74
- "@rollup/plugin-alias": "^5.1.1",
75
66
  "formik": "^2.4.6",
76
- "primeicons": "^7.0.0",
77
67
  "primereact": "^10.8.4",
78
- "sass": "^1.80.6",
79
68
  "yup": "^1.4.0"
80
69
  }
81
70
  }
@@ -0,0 +1,95 @@
1
+ import { readFileSync } from 'fs';
2
+ import { defineConfig } from 'rollup';
3
+ import resolve from '@rollup/plugin-node-resolve';
4
+ import commonjs from '@rollup/plugin-commonjs';
5
+ import typescript from '@rollup/plugin-typescript';
6
+ import url from '@rollup/plugin-url';
7
+ import svgr from '@svgr/rollup';
8
+ import external from 'rollup-plugin-peer-deps-external';
9
+ import postcss from 'rollup-plugin-postcss';
10
+ import dts from 'rollup-plugin-dts';
11
+ import { terser } from 'rollup-plugin-terser';
12
+ import typescriptEngine from 'typescript';
13
+ import alias from '@rollup/plugin-alias';
14
+ import path from 'path';
15
+ import { fileURLToPath } from 'url';
16
+
17
+ const packageJson = JSON.parse(readFileSync('./package.json'));
18
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
19
+ const projectRootDir = path.resolve(__dirname);
20
+
21
+ export default defineConfig(
22
+ {
23
+ input: './src/index.ts',
24
+ output: [
25
+ {
26
+ file: packageJson.main,
27
+ format: 'cjs',
28
+ sourcemap: false,
29
+ exports: 'named',
30
+ name: packageJson.name,
31
+ },
32
+ {
33
+ file: packageJson.module,
34
+ format: 'es',
35
+ exports: 'named',
36
+ sourcemap: false,
37
+ },
38
+ ],
39
+ plugins: [
40
+ postcss({
41
+ plugins: [],
42
+ minimize: true,
43
+ }),
44
+ alias({
45
+ entries: [
46
+ { find: "@powell/*", replacement: path.resolve(projectRootDir, '/src/powell/*') },
47
+ ]
48
+ }),
49
+ external({ includeDependencies: true }),
50
+ resolve(),
51
+ commonjs(),
52
+ typescript({
53
+ tsconfig: './tsconfig.json',
54
+ typescript: typescriptEngine,
55
+ sourceMap: false,
56
+ exclude: [
57
+ 'coverage',
58
+ '.storybook',
59
+ 'storybook-static',
60
+ 'config',
61
+ 'dist',
62
+ 'node_modules/**',
63
+ '*.cjs',
64
+ '*.mjs',
65
+ '**/__snapshots__/*',
66
+ '**/__tests__',
67
+ '**/*.test.js+(|x)',
68
+ '**/*.test.ts+(|x)',
69
+ '**/*.mdx',
70
+ '**/*.story.ts+(|x)',
71
+ '**/*.story.js+(|x)',
72
+ '**/*.stories.ts+(|x)',
73
+ '**/*.stories.js+(|x)',
74
+ 'setupTests.ts',
75
+ 'vitest.config.ts',
76
+ ],
77
+ }),
78
+ url(),
79
+ svgr(),
80
+ terser(),
81
+ ],
82
+ onwarn: (warning, warn) => {
83
+ if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
84
+ return
85
+ }
86
+ warn(warning)
87
+ },
88
+ },
89
+ {
90
+ input: 'dist/esm/types/src/index.d.ts',
91
+ output: [{ file: 'dist/index.d.ts', format: 'esm' }],
92
+ external: [/\.(sc|sa|c)ss$/],
93
+ plugins: [dts()],
94
+ },
95
+ );
@@ -0,0 +1,43 @@
1
+ .button {
2
+ position: relative;
3
+ background-color: #4caf50;
4
+ border: none;
5
+ font-size: 28px;
6
+ color: #ffffff;
7
+ padding: 20px;
8
+ width: 200px;
9
+ text-align: center;
10
+ -webkit-transition-duration: 0.4s; /* Safari */
11
+ transition-duration: 0.4s;
12
+ text-decoration: none;
13
+ overflow: hidden;
14
+ cursor: pointer;
15
+ box-shadow:
16
+ 0 8px 16px 0 rgba(0, 0, 0, 0.2),
17
+ 0 6px 20px 0 rgba(0, 0, 0, 0.19);
18
+
19
+ &:after {
20
+ content: '';
21
+ background: #f1f1f1;
22
+ display: block;
23
+ position: absolute;
24
+ padding-top: 300%;
25
+ padding-left: 350%;
26
+ margin-left: -20px !important;
27
+ margin-top: -120%;
28
+ opacity: 0;
29
+ transition: all 0.8s;
30
+ }
31
+
32
+ &:active:after {
33
+ padding: 0;
34
+ margin: 0;
35
+ opacity: 1;
36
+ transition: 0s;
37
+ }
38
+
39
+ &--dsiabled {
40
+ opacity: 0.5;
41
+ background-color: grey;
42
+ }
43
+ }
@@ -0,0 +1,13 @@
1
+ import { Button } from './Button';
2
+
3
+ export default {
4
+ title: 'Button',
5
+ component: Button,
6
+ };
7
+
8
+ export const Default = {
9
+ args: {
10
+ disabled: false,
11
+ children: `I'm a Button`,
12
+ },
13
+ };
@@ -0,0 +1,19 @@
1
+ import React, { ButtonHTMLAttributes, FC, ReactNode } from 'react';
2
+
3
+ import './Button.scss';
4
+
5
+ export interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export const Button: FC<IButtonProps> = ({ onClick, disabled, className, children, ...rest }) => (
10
+ <button
11
+ type="button"
12
+ className={`button ${className} ${disabled && 'button--dsiabled'}`}
13
+ onClick={onClick}
14
+ disabled={disabled}
15
+ {...rest}
16
+ >
17
+ {children}
18
+ </button>
19
+ );
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1 @@
1
+ export * from './Button';
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,37 @@
1
+ import {PropsWithChildren} from "react";
2
+ import {configService, powellDefaults, $PrimeReactProvider} from "@powell/api";
3
+ import {PowellConfig, ThemeName} from "@powell/models";
4
+
5
+ const createThemeLink = () => {
6
+ const headEl = document.head;
7
+ const linkEl = document.createElement("link");
8
+ linkEl.rel = "stylesheet";
9
+ linkEl.type = "text/css";
10
+ linkEl.id = "powell-theme-link";
11
+ headEl.appendChild(linkEl);
12
+ return linkEl;
13
+ }
14
+
15
+ const applyTheme = (theme: ThemeName) => {
16
+ let themeEl: HTMLLinkElement = document.getElementById('powell-theme-link') as HTMLLinkElement;
17
+ if (!themeEl) {
18
+ themeEl = createThemeLink();
19
+ }
20
+ const themeLink = `/src/powell/themes/${theme}.css`;
21
+ themeEl.setAttribute('href', themeLink);
22
+ }
23
+
24
+ export const PowellProvider = (props: PropsWithChildren<{ config?: PowellConfig }>) => {
25
+ const {children, config} = props;
26
+ const defaultConfig: PowellConfig = {
27
+ ...powellDefaults,
28
+ ...config
29
+ };
30
+ configService.set(defaultConfig);
31
+ applyTheme(defaultConfig.theme!);
32
+ return (
33
+ <$PrimeReactProvider value={defaultConfig}>
34
+ {children}
35
+ </$PrimeReactProvider>
36
+ )
37
+ }
@@ -0,0 +1,4 @@
1
+ import {globalState} from "@powell/utils";
2
+ import {PowellConfig} from "@powell/models";
3
+
4
+ export const configService = globalState<PowellConfig>({});
@@ -0,0 +1,145 @@
1
+ import {
2
+ ArrayHelpers,
3
+ ComponentDecorator,
4
+ CompositeComponent,
5
+ connect,
6
+ ErrorMessage,
7
+ ErrorMessageProps,
8
+ FastField,
9
+ FastFieldAttributes,
10
+ FastFieldConfig,
11
+ FastFieldProps,
12
+ Field,
13
+ FieldArray,
14
+ FieldArrayConfig,
15
+ FieldArrayRenderProps,
16
+ FieldAttributes,
17
+ FieldConfig,
18
+ FieldHelperProps,
19
+ FieldHookConfig,
20
+ FieldInputProps,
21
+ FieldMetaProps,
22
+ FieldProps,
23
+ FieldValidator,
24
+ Form,
25
+ Formik,
26
+ FormikBag,
27
+ FormikComputedProps,
28
+ FormikConfig,
29
+ FormikConsumer,
30
+ FormikContext,
31
+ FormikContextType,
32
+ FormikErrors,
33
+ FormikFormProps,
34
+ FormikHandlers,
35
+ FormikHelpers,
36
+ FormikProps,
37
+ FormikProvider,
38
+ FormikRegistration,
39
+ FormikSharedConfig,
40
+ FormikState,
41
+ FormikTouched,
42
+ FormikValues,
43
+ GenericFieldHTMLAttributes,
44
+ getActiveElement,
45
+ getIn,
46
+ InferableComponentDecorator,
47
+ InjectedFormikProps,
48
+ insert,
49
+ isEmptyArray,
50
+ isEmptyChildren,
51
+ isFunction,
52
+ isInputEvent,
53
+ isInteger,
54
+ isNaN,
55
+ isObject,
56
+ isPromise,
57
+ isString,
58
+ move,
59
+ prepareDataForValidation,
60
+ replace,
61
+ setIn,
62
+ setNestedObjectValues,
63
+ SharedRenderProps,
64
+ swap,
65
+ useField,
66
+ useFormik,
67
+ useFormikContext,
68
+ validateYupSchema,
69
+ withFormik,
70
+ WithFormikConfig,
71
+ yupToFormErrors,
72
+ } from 'formik';
73
+ import * as Yup from 'yup';
74
+
75
+ export {ErrorMessage as $ErrorMessage};
76
+ export type {ErrorMessageProps as $ErrorMessageProps};
77
+ export type {FieldProps as $FieldProps};
78
+ export {Field as $Field};
79
+ export {FieldArray as $FieldArray};
80
+ export {Form as $Form};
81
+ export type {ArrayHelpers as $ArrayHelpers};
82
+ export type {FieldArrayConfig as $FieldArrayConfig};
83
+ export type {FastFieldConfig as $FastFieldConfig};
84
+ export type {FastFieldProps as $FastFieldProps};
85
+ export {FastField as $FastField};
86
+ export type {FastFieldAttributes as $FastFieldAttributes};
87
+ export type {FieldConfig as $FieldConfig};
88
+ export type {FieldAttributes as $FieldAttributes};
89
+ export type {FieldHookConfig as $FieldHookConfig};
90
+ export type {FieldInputProps as $FieldInputProps};
91
+ export type {FieldMetaProps as $FieldMetaProps};
92
+ export type {FieldHelperProps as $FieldHelperProps};
93
+ export type {FieldValidator as $FieldValidator};
94
+ export type {FieldArrayRenderProps as $FieldArrayRenderProps};
95
+ export {useField as $useField};
96
+ export type {FormikProps as $FormikProps};
97
+ export type {FormikComputedProps as $FormikComputedProps};
98
+ export type {FormikFormProps as $FormikFormProps};
99
+ export {Formik as $Formik};
100
+ export type {FormikConfig as $FormikConfig};
101
+ export type {FormikSharedConfig as $FormikSharedConfig};
102
+ export type {FormikBag as $FormikBag};
103
+ export {FormikConsumer as $FormikConsumer};
104
+ export type {FormikErrors as $FormikErrors};
105
+ export {FormikContext as $FormikContext};
106
+ export type {FormikContextType as $FormikContextType};
107
+ export type {FormikHandlers as $FormikHandlers};
108
+ export type {FormikHelpers as $FormikHelpers};
109
+ export {FormikProvider as $FormikProvider};
110
+ export type {FormikRegistration as $FormikRegistration};
111
+ export type {FormikState as $FormikState};
112
+ export type {FormikTouched as $FormikTouched};
113
+ export type {FormikValues as $FormikValues};
114
+ export {useFormikContext as $useFormikContext};
115
+ export type {WithFormikConfig as $WithFormikConfig};
116
+ export type {GenericFieldHTMLAttributes as $GenericFieldHTMLAttributes};
117
+ export type {SharedRenderProps as $SharedRenderProps};
118
+ export {connect as $connect};
119
+ export {getIn as $getIn};
120
+ export {isEmptyArray as $isEmptyArray};
121
+ export {useFormik as $useFormik};
122
+ export {withFormik as $withFormik};
123
+ export type {ComponentDecorator as $ComponentDecorator};
124
+ export type {InferableComponentDecorator as $InferableComponentDecorator};
125
+ export {insert as $insert};
126
+ export type {CompositeComponent as $CompositeComponent};
127
+ export {isEmptyChildren as $isEmptyChildren};
128
+ export {isInputEvent as $isInputEvent};
129
+ export {isNaN as $isNaN};
130
+ export type {InjectedFormikProps as $InjectedFormikProps};
131
+ export {isFunction as $isFunction};
132
+ export {move as $move};
133
+ export {isInteger as $isInteger};
134
+ export {isObject as $isObject};
135
+ export {isPromise as $isPromise};
136
+ export {isString as $isString};
137
+ export {swap as $swap};
138
+ export {replace as $replace};
139
+ export {setIn as $setIn};
140
+ export {prepareDataForValidation as $prepareDataForValidation};
141
+ export {setNestedObjectValues as $setNestedObjectValues};
142
+ export {validateYupSchema as $validateYupSchema};
143
+ export {yupToFormErrors as $yupToFormErrors};
144
+ export {getActiveElement as $getActiveElement};
145
+ 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,11 @@
1
+ import {PowellConfig} from "@powell/models";
2
+
3
+ export const powellDefaults: PowellConfig = {
4
+ theme: 'lara-light-cyan',
5
+ rtl: false,
6
+ showRequiredStar: true,
7
+ ripple: true,
8
+ inputSize: 'md',
9
+ labelPosition: 'fix-top',
10
+ fixLabelPosition: 'fix-side'
11
+ }