@app-studio/web 0.1.0

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 (546) hide show
  1. package/LICENSE +448 -0
  2. package/README.md +50 -0
  3. package/dist/App.d.ts +3 -0
  4. package/dist/components/Button/Button/Button.props.d.ts +77 -0
  5. package/dist/components/Button/Button/Button.state.d.ts +5 -0
  6. package/dist/components/Button/Button/Button.style.d.ts +5 -0
  7. package/dist/components/Button/Button/Button.view.d.ts +4 -0
  8. package/dist/components/Button/Button.d.ts +6 -0
  9. package/dist/components/Button/examples/AutoFocusButton.d.ts +2 -0
  10. package/dist/components/Button/examples/BorderedButtons.d.ts +2 -0
  11. package/dist/components/Button/examples/ColoredButtons.d.ts +2 -0
  12. package/dist/components/Button/examples/DefaultButton.d.ts +2 -0
  13. package/dist/components/Button/examples/DisabledButton.d.ts +2 -0
  14. package/dist/components/Button/examples/IconButtons.d.ts +2 -0
  15. package/dist/components/Button/examples/LoadingButtons.d.ts +2 -0
  16. package/dist/components/Button/examples/ShadowButton.d.ts +2 -0
  17. package/dist/components/Button/examples/SizeButtons.d.ts +2 -0
  18. package/dist/components/Button/examples/VariantButtons.d.ts +2 -0
  19. package/dist/components/Button/examples/index.d.ts +9 -0
  20. package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +97 -0
  21. package/dist/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +8 -0
  22. package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +4 -0
  23. package/dist/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +4 -0
  24. package/dist/components/Form/Checkbox/Checkbox.d.ts +6 -0
  25. package/dist/components/Form/Checkbox/examples/ColorScheme.d.ts +2 -0
  26. package/dist/components/Form/Checkbox/examples/Default.d.ts +2 -0
  27. package/dist/components/Form/Checkbox/examples/DisabledInput.d.ts +2 -0
  28. package/dist/components/Form/Checkbox/examples/ErrorCheckbox.d.ts +2 -0
  29. package/dist/components/Form/Checkbox/examples/FormCheckout.d.ts +2 -0
  30. package/dist/components/Form/Checkbox/examples/IconCheckbox.d.ts +2 -0
  31. package/dist/components/Form/Checkbox/examples/IndeterminateCheckbox.d.ts +2 -0
  32. package/dist/components/Form/Checkbox/examples/ReadOnlyInput.d.ts +2 -0
  33. package/dist/components/Form/Checkbox/examples/Shadow.d.ts +2 -0
  34. package/dist/components/Form/Checkbox/examples/SizeInput.d.ts +2 -0
  35. package/dist/components/Form/Checkbox/examples/StylesInput.d.ts +2 -0
  36. package/dist/components/Form/Checkbox/examples/index.d.ts +11 -0
  37. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +173 -0
  38. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +15 -0
  39. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.style.d.ts +3 -0
  40. package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +6 -0
  41. package/dist/components/Form/CountryPicker/CountryPicker.d.ts +6 -0
  42. package/dist/components/Form/CountryPicker/examples/Color.d.ts +2 -0
  43. package/dist/components/Form/CountryPicker/examples/Default.d.ts +2 -0
  44. package/dist/components/Form/CountryPicker/examples/Disabled.d.ts +2 -0
  45. package/dist/components/Form/CountryPicker/examples/Error.d.ts +2 -0
  46. package/dist/components/Form/CountryPicker/examples/Form.d.ts +2 -0
  47. package/dist/components/Form/CountryPicker/examples/Formik.d.ts +2 -0
  48. package/dist/components/Form/CountryPicker/examples/HelperText.d.ts +2 -0
  49. package/dist/components/Form/CountryPicker/examples/ReadOnlyInput.d.ts +2 -0
  50. package/dist/components/Form/CountryPicker/examples/Shadow.d.ts +2 -0
  51. package/dist/components/Form/CountryPicker/examples/Shape.d.ts +2 -0
  52. package/dist/components/Form/CountryPicker/examples/SizeInput.d.ts +2 -0
  53. package/dist/components/Form/CountryPicker/examples/StylesInput.d.ts +2 -0
  54. package/dist/components/Form/CountryPicker/examples/Variant.d.ts +2 -0
  55. package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -0
  56. package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +103 -0
  57. package/dist/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +9 -0
  58. package/dist/components/Form/DatePicker/DatePicker/DatePicker.style.d.ts +3 -0
  59. package/dist/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +4 -0
  60. package/dist/components/Form/DatePicker/DatePicker.d.ts +6 -0
  61. package/dist/components/Form/DatePicker/examples/ColorScheme.d.ts +2 -0
  62. package/dist/components/Form/DatePicker/examples/Default.d.ts +2 -0
  63. package/dist/components/Form/DatePicker/examples/DisabledInput.d.ts +2 -0
  64. package/dist/components/Form/DatePicker/examples/ErrorCheckbox.d.ts +2 -0
  65. package/dist/components/Form/DatePicker/examples/FormCheckout.d.ts +2 -0
  66. package/dist/components/Form/DatePicker/examples/Formik.d.ts +2 -0
  67. package/dist/components/Form/DatePicker/examples/ReadOnlyInput.d.ts +2 -0
  68. package/dist/components/Form/DatePicker/examples/Shadow.d.ts +2 -0
  69. package/dist/components/Form/DatePicker/examples/SizeInput.d.ts +2 -0
  70. package/dist/components/Form/DatePicker/examples/StylesInput.d.ts +2 -0
  71. package/dist/components/Form/DatePicker/examples/helperTextDatePicker.d.ts +2 -0
  72. package/dist/components/Form/DatePicker/examples/index.d.ts +11 -0
  73. package/dist/components/Form/Label/Label/Label.props.d.ts +36 -0
  74. package/dist/components/Form/Label/Label/Label.style.d.ts +2 -0
  75. package/dist/components/Form/Label/Label/Label.type.d.ts +3 -0
  76. package/dist/components/Form/Label/Label/Label.view.d.ts +4 -0
  77. package/dist/components/Form/Label/Label.d.ts +3 -0
  78. package/dist/components/Form/Password/Password/Password.props.d.ts +34 -0
  79. package/dist/components/Form/Password/Password/Password.state.d.ts +5 -0
  80. package/dist/components/Form/Password/Password/Password.view.d.ts +4 -0
  81. package/dist/components/Form/Password/Password.d.ts +6 -0
  82. package/dist/components/Form/Password/example/Default.d.ts +2 -0
  83. package/dist/components/Form/Password/example/DisabledInput.d.ts +2 -0
  84. package/dist/components/Form/Password/example/ErrorInput.d.ts +2 -0
  85. package/dist/components/Form/Password/example/FormikErrorInput.d.ts +2 -0
  86. package/dist/components/Form/Password/example/FormikHelperText.d.ts +2 -0
  87. package/dist/components/Form/Password/example/HelperText.d.ts +2 -0
  88. package/dist/components/Form/Select/Select/Select.props.d.ts +234 -0
  89. package/dist/components/Form/Select/Select/Select.state.d.ts +16 -0
  90. package/dist/components/Form/Select/Select/Select.style.d.ts +4 -0
  91. package/dist/components/Form/Select/Select/Select.view.d.ts +5 -0
  92. package/dist/components/Form/Select/Select.d.ts +6 -0
  93. package/dist/components/Form/Select/examples/Color.d.ts +2 -0
  94. package/dist/components/Form/Select/examples/Default.d.ts +2 -0
  95. package/dist/components/Form/Select/examples/Disabled.d.ts +2 -0
  96. package/dist/components/Form/Select/examples/Error.d.ts +2 -0
  97. package/dist/components/Form/Select/examples/Form.d.ts +2 -0
  98. package/dist/components/Form/Select/examples/Formik.d.ts +2 -0
  99. package/dist/components/Form/Select/examples/HelperText.d.ts +2 -0
  100. package/dist/components/Form/Select/examples/Multiple.d.ts +2 -0
  101. package/dist/components/Form/Select/examples/ReadOnlyInput.d.ts +2 -0
  102. package/dist/components/Form/Select/examples/Shadow.d.ts +2 -0
  103. package/dist/components/Form/Select/examples/SizeInput.d.ts +2 -0
  104. package/dist/components/Form/Select/examples/StylesInput.d.ts +2 -0
  105. package/dist/components/Form/Switch/Switch/Switch.props.d.ts +72 -0
  106. package/dist/components/Form/Switch/Switch/Switch.state.d.ts +8 -0
  107. package/dist/components/Form/Switch/Switch/Switch.style.d.ts +5 -0
  108. package/dist/components/Form/Switch/Switch/Switch.view.d.ts +4 -0
  109. package/dist/components/Form/Switch/Switch.d.ts +3 -0
  110. package/dist/components/Form/Switch/examples/ChildSwitch.d.ts +2 -0
  111. package/dist/components/Form/Switch/examples/ColorScheme.d.ts +2 -0
  112. package/dist/components/Form/Switch/examples/Default.d.ts +2 -0
  113. package/dist/components/Form/Switch/examples/DisabledInput.d.ts +2 -0
  114. package/dist/components/Form/Switch/examples/FormSwitch.d.ts +2 -0
  115. package/dist/components/Form/Switch/examples/Formik.d.ts +2 -0
  116. package/dist/components/Form/Switch/examples/ReadOnlyInput.d.ts +2 -0
  117. package/dist/components/Form/Switch/examples/Shadow.d.ts +2 -0
  118. package/dist/components/Form/Switch/examples/SizeInput.d.ts +2 -0
  119. package/dist/components/Form/Switch/examples/StylesInput.d.ts +2 -0
  120. package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +144 -0
  121. package/dist/components/Form/TextArea/TextArea/TextArea.state.d.ts +12 -0
  122. package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +11 -0
  123. package/dist/components/Form/TextArea/TextArea/TextArea.view.d.ts +4 -0
  124. package/dist/components/Form/TextArea/TextArea.d.ts +6 -0
  125. package/dist/components/Form/TextArea/examples/ColorScheme.d.ts +2 -0
  126. package/dist/components/Form/TextArea/examples/Default.d.ts +2 -0
  127. package/dist/components/Form/TextArea/examples/DisabledInput.d.ts +2 -0
  128. package/dist/components/Form/TextArea/examples/ErrorInput.d.ts +2 -0
  129. package/dist/components/Form/TextArea/examples/FormikErrorInput.d.ts +2 -0
  130. package/dist/components/Form/TextArea/examples/FormikHelperText.d.ts +2 -0
  131. package/dist/components/Form/TextArea/examples/HelperText.d.ts +2 -0
  132. package/dist/components/Form/TextArea/examples/LabelInput.d.ts +2 -0
  133. package/dist/components/Form/TextArea/examples/MaxRowCol.d.ts +2 -0
  134. package/dist/components/Form/TextArea/examples/Placeholder.d.ts +2 -0
  135. package/dist/components/Form/TextArea/examples/ReadOnlyInput.d.ts +2 -0
  136. package/dist/components/Form/TextArea/examples/ShadowArea.d.ts +2 -0
  137. package/dist/components/Form/TextArea/examples/ShapeInput.d.ts +2 -0
  138. package/dist/components/Form/TextArea/examples/SizeInput.d.ts +2 -0
  139. package/dist/components/Form/TextArea/examples/StylesInput.d.ts +2 -0
  140. package/dist/components/Form/TextArea/examples/VariantsInputs.d.ts +2 -0
  141. package/dist/components/Form/TextArea/examples/index.d.ts +15 -0
  142. package/dist/components/Form/TextField/TextField/TextField.props.d.ts +124 -0
  143. package/dist/components/Form/TextField/TextField/TextField.state.d.ts +12 -0
  144. package/dist/components/Form/TextField/TextField/TextField.view.d.ts +4 -0
  145. package/dist/components/Form/TextField/TextField.d.ts +6 -0
  146. package/dist/components/Form/TextField/examples/ClearInput.d.ts +2 -0
  147. package/dist/components/Form/TextField/examples/ColorScheme.d.ts +2 -0
  148. package/dist/components/Form/TextField/examples/Default.d.ts +2 -0
  149. package/dist/components/Form/TextField/examples/DisabledInput.d.ts +2 -0
  150. package/dist/components/Form/TextField/examples/ErrorInput.d.ts +2 -0
  151. package/dist/components/Form/TextField/examples/FormikErrorInput.d.ts +2 -0
  152. package/dist/components/Form/TextField/examples/FormikHelperText.d.ts +2 -0
  153. package/dist/components/Form/TextField/examples/HelperText.d.ts +2 -0
  154. package/dist/components/Form/TextField/examples/LabelInput.d.ts +2 -0
  155. package/dist/components/Form/TextField/examples/LeftChild.d.ts +2 -0
  156. package/dist/components/Form/TextField/examples/Placeholder.d.ts +2 -0
  157. package/dist/components/Form/TextField/examples/ReadOnlyInput.d.ts +2 -0
  158. package/dist/components/Form/TextField/examples/RightChild.d.ts +2 -0
  159. package/dist/components/Form/TextField/examples/ShapeInput.d.ts +2 -0
  160. package/dist/components/Form/TextField/examples/SizeInput.d.ts +2 -0
  161. package/dist/components/Form/TextField/examples/StylesInput.d.ts +2 -0
  162. package/dist/components/Form/TextField/examples/VariantsInputs.d.ts +2 -0
  163. package/dist/components/Form/TextField/examples/index.d.ts +17 -0
  164. package/dist/components/Layout/Center/Center/Center.props.d.ts +16 -0
  165. package/dist/components/Layout/Center/Center/Center.view.d.ts +4 -0
  166. package/dist/components/Layout/Center/Center.d.ts +3 -0
  167. package/dist/components/Layout/Horizontal/Horizontal/Horizontal.props.d.ts +24 -0
  168. package/dist/components/Layout/Horizontal/Horizontal/Horizontal.view.d.ts +4 -0
  169. package/dist/components/Layout/Horizontal/Horizontal.d.ts +3 -0
  170. package/dist/components/Layout/Horizontal/examples/Default.d.ts +2 -0
  171. package/dist/components/Layout/Horizontal/examples/Justify.d.ts +2 -0
  172. package/dist/components/Layout/Horizontal/examples/Reversed.d.ts +2 -0
  173. package/dist/components/Layout/Horizontal/examples/Wrap.d.ts +2 -0
  174. package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -0
  175. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +24 -0
  176. package/dist/components/Layout/Input/FieldContainer/FieldContainer.d.ts +3 -0
  177. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +74 -0
  178. package/dist/components/Layout/Input/FieldContent/FieldContent.d.ts +3 -0
  179. package/dist/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +11 -0
  180. package/dist/components/Layout/Input/FieldIcons/FieldIcons.d.ts +3 -0
  181. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +30 -0
  182. package/dist/components/Layout/Input/FieldLabel/FieldLabel.d.ts +3 -0
  183. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +28 -0
  184. package/dist/components/Layout/Input/FieldLayout/FieldLayout.d.ts +3 -0
  185. package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.d.ts +3 -0
  186. package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.props.d.ts +11 -0
  187. package/dist/components/Layout/Input/HelperText/HelperText.d.ts +3 -0
  188. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +20 -0
  189. package/dist/components/Layout/Input/index.d.ts +7 -0
  190. package/dist/components/Layout/Vertical/Vertical/Vertical.props.d.ts +24 -0
  191. package/dist/components/Layout/Vertical/Vertical/Vertical.type.d.ts +2 -0
  192. package/dist/components/Layout/Vertical/Vertical/Vertical.view.d.ts +4 -0
  193. package/dist/components/Layout/Vertical/Vertical.d.ts +3 -0
  194. package/dist/components/Layout/Vertical/examples/Default.d.ts +2 -0
  195. package/dist/components/Layout/Vertical/examples/Justify.d.ts +2 -0
  196. package/dist/components/Layout/Vertical/examples/Reversed.d.ts +2 -0
  197. package/dist/components/Layout/Vertical/examples/Wrap.d.ts +2 -0
  198. package/dist/components/Layout/Vertical/examples/index.d.ts +5 -0
  199. package/dist/components/Layout/View/View.d.ts +2 -0
  200. package/dist/components/Layout/configs/Input.style.d.ts +16 -0
  201. package/dist/components/Layout/configs/Input.type.d.ts +12 -0
  202. package/dist/components/Link/Link/Link.props.d.ts +47 -0
  203. package/dist/components/Link/Link/Link.state.d.ts +5 -0
  204. package/dist/components/Link/Link/Link.style.d.ts +2 -0
  205. package/dist/components/Link/Link/Link.view.d.ts +4 -0
  206. package/dist/components/Link/Link.d.ts +6 -0
  207. package/dist/components/Link/examples/Default.d.ts +2 -0
  208. package/dist/components/Link/examples/IsExternal.d.ts +2 -0
  209. package/dist/components/Link/examples/Underline.d.ts +2 -0
  210. package/dist/components/Loader/Loader/Loader.props.d.ts +93 -0
  211. package/dist/components/Loader/Loader/Loader.style.d.ts +4 -0
  212. package/dist/components/Loader/Loader/Loader.view.d.ts +4 -0
  213. package/dist/components/Loader/Loader.d.ts +6 -0
  214. package/dist/components/Loader/examples/ColorLoader.d.ts +2 -0
  215. package/dist/components/Loader/examples/DefaultLoader.d.ts +2 -0
  216. package/dist/components/Loader/examples/PositionLoader.d.ts +2 -0
  217. package/dist/components/Loader/examples/SizeLoader.d.ts +2 -0
  218. package/dist/components/Loader/examples/SpeedLoader.d.ts +2 -0
  219. package/dist/components/Loader/examples/TextLoader.d.ts +2 -0
  220. package/dist/components/Loader/examples/VariantLoader.d.ts +2 -0
  221. package/dist/components/Loader/examples/index.d.ts +7 -0
  222. package/dist/components/Modal/Examples/BlurModal.d.ts +2 -0
  223. package/dist/components/Modal/Examples/CloseButtonModal.d.ts +2 -0
  224. package/dist/components/Modal/Examples/DefaultModal.d.ts +2 -0
  225. package/dist/components/Modal/Examples/FullScreenModal.d.ts +2 -0
  226. package/dist/components/Modal/Examples/ModalPosition.d.ts +2 -0
  227. package/dist/components/Modal/Examples/PreventCloseModal.d.ts +2 -0
  228. package/dist/components/Modal/Examples/ScrollModal.d.ts +2 -0
  229. package/dist/components/Modal/Examples/ShadowModal.d.ts +2 -0
  230. package/dist/components/Modal/Examples/VariantModal.d.ts +2 -0
  231. package/dist/components/Modal/Examples/index.d.ts +9 -0
  232. package/dist/components/Modal/Modal/Modal.props.d.ts +178 -0
  233. package/dist/components/Modal/Modal/Modal.style.d.ts +5 -0
  234. package/dist/components/Modal/Modal/Modal.view.d.ts +7 -0
  235. package/dist/components/Modal/Modal.d.ts +6 -0
  236. package/dist/components/Svg/ArrowDown.d.ts +8 -0
  237. package/dist/components/Svg/ArrowUp.d.ts +8 -0
  238. package/dist/components/Svg/Check.d.ts +8 -0
  239. package/dist/components/Svg/Close.d.ts +8 -0
  240. package/dist/components/Svg/CloseEye.d.ts +8 -0
  241. package/dist/components/Svg/DustBin.d.ts +7 -0
  242. package/dist/components/Svg/Edit.d.ts +8 -0
  243. package/dist/components/Svg/ExternalLink.d.ts +8 -0
  244. package/dist/components/Svg/Indeterminate.d.ts +8 -0
  245. package/dist/components/Svg/OpenEye.d.ts +8 -0
  246. package/dist/components/Svg/Profile.d.ts +8 -0
  247. package/dist/components/Svg/RightArrow.d.ts +8 -0
  248. package/dist/components/Svg/index.d.ts +12 -0
  249. package/dist/components/Text/Text/Text.props.d.ts +77 -0
  250. package/dist/components/Text/Text/Text.style.d.ts +2 -0
  251. package/dist/components/Text/Text/Text.view.d.ts +4 -0
  252. package/dist/components/Text/Text.d.ts +6 -0
  253. package/dist/components/Wrapper.d.ts +6 -0
  254. package/dist/components/index.d.ts +18 -0
  255. package/dist/index.d.ts +1 -0
  256. package/dist/index.js +8 -0
  257. package/dist/web.cjs.development.js +27 -0
  258. package/dist/web.cjs.development.js.map +1 -0
  259. package/dist/web.cjs.production.min.js +2 -0
  260. package/dist/web.cjs.production.min.js.map +1 -0
  261. package/dist/web.esm.js +23 -0
  262. package/dist/web.esm.js.map +1 -0
  263. package/package.json +153 -0
  264. package/src/components/Button/Button/Button.props.ts +79 -0
  265. package/src/components/Button/Button/Button.state.ts +7 -0
  266. package/src/components/Button/Button/Button.style.ts +95 -0
  267. package/src/components/Button/Button/Button.type.d.ts +11 -0
  268. package/src/components/Button/Button/Button.view.tsx +116 -0
  269. package/src/components/Button/Button.md +165 -0
  270. package/src/components/Button/Button.tsx +24 -0
  271. package/src/components/Button/examples/AutoFocusButton.tsx +13 -0
  272. package/src/components/Button/examples/BorderedButtons.tsx +14 -0
  273. package/src/components/Button/examples/ColoredButtons.tsx +12 -0
  274. package/src/components/Button/examples/DefaultButton.tsx +4 -0
  275. package/src/components/Button/examples/DisabledButton.tsx +13 -0
  276. package/src/components/Button/examples/IconButtons.tsx +23 -0
  277. package/src/components/Button/examples/LoadingButtons.tsx +28 -0
  278. package/src/components/Button/examples/ShadowButton.tsx +6 -0
  279. package/src/components/Button/examples/SizeButtons.tsx +16 -0
  280. package/src/components/Button/examples/VariantButtons.tsx +20 -0
  281. package/src/components/Button/examples/index.ts +9 -0
  282. package/src/components/Form/Checkbox/Checkbox/Checkbox.props.ts +118 -0
  283. package/src/components/Form/Checkbox/Checkbox/Checkbox.state.ts +15 -0
  284. package/src/components/Form/Checkbox/Checkbox/Checkbox.style.ts +29 -0
  285. package/src/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
  286. package/src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx +98 -0
  287. package/src/components/Form/Checkbox/Checkbox.md +128 -0
  288. package/src/components/Form/Checkbox/Checkbox.tsx +15 -0
  289. package/src/components/Form/Checkbox/examples/ColorScheme.tsx +12 -0
  290. package/src/components/Form/Checkbox/examples/Default.tsx +5 -0
  291. package/src/components/Form/Checkbox/examples/DisabledInput.tsx +5 -0
  292. package/src/components/Form/Checkbox/examples/ErrorCheckbox.tsx +5 -0
  293. package/src/components/Form/Checkbox/examples/FormCheckout.tsx +46 -0
  294. package/src/components/Form/Checkbox/examples/IconCheckbox.tsx +8 -0
  295. package/src/components/Form/Checkbox/examples/IndeterminateCheckbox.tsx +5 -0
  296. package/src/components/Form/Checkbox/examples/ReadOnlyInput.tsx +5 -0
  297. package/src/components/Form/Checkbox/examples/Shadow.tsx +11 -0
  298. package/src/components/Form/Checkbox/examples/SizeInput.tsx +18 -0
  299. package/src/components/Form/Checkbox/examples/StylesInput.tsx +22 -0
  300. package/src/components/Form/Checkbox/examples/index.ts +11 -0
  301. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.props.ts +187 -0
  302. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.state.ts +28 -0
  303. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.style.ts +17 -0
  304. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +22 -0
  305. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.view.tsx +234 -0
  306. package/src/components/Form/CountryPicker/CountryPicker.md +206 -0
  307. package/src/components/Form/CountryPicker/CountryPicker.tsx +16 -0
  308. package/src/components/Form/CountryPicker/countries.json +1453 -0
  309. package/src/components/Form/CountryPicker/examples/Color.tsx +12 -0
  310. package/src/components/Form/CountryPicker/examples/Default.tsx +4 -0
  311. package/src/components/Form/CountryPicker/examples/Disabled.tsx +5 -0
  312. package/src/components/Form/CountryPicker/examples/Error.tsx +4 -0
  313. package/src/components/Form/CountryPicker/examples/Form.tsx +23 -0
  314. package/src/components/Form/CountryPicker/examples/Formik.tsx +39 -0
  315. package/src/components/Form/CountryPicker/examples/HelperText.tsx +5 -0
  316. package/src/components/Form/CountryPicker/examples/ReadOnlyInput.tsx +5 -0
  317. package/src/components/Form/CountryPicker/examples/Shadow.tsx +4 -0
  318. package/src/components/Form/CountryPicker/examples/Shape.tsx +13 -0
  319. package/src/components/Form/CountryPicker/examples/SizeInput.tsx +16 -0
  320. package/src/components/Form/CountryPicker/examples/StylesInput.tsx +19 -0
  321. package/src/components/Form/CountryPicker/examples/Variant.tsx +13 -0
  322. package/src/components/Form/CountryPicker/examples/index.ts +12 -0
  323. package/src/components/Form/CountryPicker/styles.css +7 -0
  324. package/src/components/Form/DatePicker/DatePicker/DatePicker.props.ts +113 -0
  325. package/src/components/Form/DatePicker/DatePicker/DatePicker.state.ts +17 -0
  326. package/src/components/Form/DatePicker/DatePicker/DatePicker.style.ts +17 -0
  327. package/src/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +15 -0
  328. package/src/components/Form/DatePicker/DatePicker/DatePicker.view.tsx +118 -0
  329. package/src/components/Form/DatePicker/DatePicker.md +115 -0
  330. package/src/components/Form/DatePicker/DatePicker.tsx +15 -0
  331. package/src/components/Form/DatePicker/examples/ColorScheme.tsx +12 -0
  332. package/src/components/Form/DatePicker/examples/Default.tsx +4 -0
  333. package/src/components/Form/DatePicker/examples/DisabledInput.tsx +5 -0
  334. package/src/components/Form/DatePicker/examples/ErrorCheckbox.tsx +4 -0
  335. package/src/components/Form/DatePicker/examples/FormCheckout.tsx +23 -0
  336. package/src/components/Form/DatePicker/examples/Formik.tsx +35 -0
  337. package/src/components/Form/DatePicker/examples/ReadOnlyInput.tsx +5 -0
  338. package/src/components/Form/DatePicker/examples/Shadow.tsx +10 -0
  339. package/src/components/Form/DatePicker/examples/SizeInput.tsx +16 -0
  340. package/src/components/Form/DatePicker/examples/StylesInput.tsx +14 -0
  341. package/src/components/Form/DatePicker/examples/helperTextDatePicker.tsx +6 -0
  342. package/src/components/Form/DatePicker/examples/index.ts +11 -0
  343. package/src/components/Form/Label/Label/Label.props.ts +36 -0
  344. package/src/components/Form/Label/Label/Label.style.ts +35 -0
  345. package/src/components/Form/Label/Label/Label.type.ts +14 -0
  346. package/src/components/Form/Label/Label/Label.view.tsx +35 -0
  347. package/src/components/Form/Label/Label.tsx +8 -0
  348. package/src/components/Form/Password/Password/Password.props.ts +36 -0
  349. package/src/components/Form/Password/Password/Password.state.ts +6 -0
  350. package/src/components/Form/Password/Password/Password.type.d.ts +14 -0
  351. package/src/components/Form/Password/Password/Password.view.tsx +32 -0
  352. package/src/components/Form/Password/Password.md +108 -0
  353. package/src/components/Form/Password/Password.tsx +15 -0
  354. package/src/components/Form/Password/example/Default.tsx +9 -0
  355. package/src/components/Form/Password/example/DisabledInput.tsx +17 -0
  356. package/src/components/Form/Password/example/ErrorInput.tsx +66 -0
  357. package/src/components/Form/Password/example/FormikErrorInput.tsx +61 -0
  358. package/src/components/Form/Password/example/FormikHelperText.tsx +65 -0
  359. package/src/components/Form/Password/example/HelperText.tsx +65 -0
  360. package/src/components/Form/Select/Select/Select.props.ts +262 -0
  361. package/src/components/Form/Select/Select/Select.state.ts +19 -0
  362. package/src/components/Form/Select/Select/Select.style.ts +19 -0
  363. package/src/components/Form/Select/Select/Select.type.d.ts +15 -0
  364. package/src/components/Form/Select/Select/Select.view.tsx +342 -0
  365. package/src/components/Form/Select/Select.md +165 -0
  366. package/src/components/Form/Select/Select.tsx +16 -0
  367. package/src/components/Form/Select/examples/Color.tsx +12 -0
  368. package/src/components/Form/Select/examples/Default.tsx +4 -0
  369. package/src/components/Form/Select/examples/Disabled.tsx +5 -0
  370. package/src/components/Form/Select/examples/Error.tsx +4 -0
  371. package/src/components/Form/Select/examples/Form.tsx +23 -0
  372. package/src/components/Form/Select/examples/Formik.tsx +41 -0
  373. package/src/components/Form/Select/examples/HelperText.tsx +7 -0
  374. package/src/components/Form/Select/examples/Multiple.tsx +6 -0
  375. package/src/components/Form/Select/examples/ReadOnlyInput.tsx +5 -0
  376. package/src/components/Form/Select/examples/Shadow.tsx +11 -0
  377. package/src/components/Form/Select/examples/SizeInput.tsx +16 -0
  378. package/src/components/Form/Select/examples/StylesInput.tsx +15 -0
  379. package/src/components/Form/Switch/Switch/Switch.props.ts +91 -0
  380. package/src/components/Form/Switch/Switch/Switch.state.ts +11 -0
  381. package/src/components/Form/Switch/Switch/Switch.style.ts +72 -0
  382. package/src/components/Form/Switch/Switch/Switch.type.d.ts +6 -0
  383. package/src/components/Form/Switch/Switch/Switch.view.tsx +78 -0
  384. package/src/components/Form/Switch/Switch.md +148 -0
  385. package/src/components/Form/Switch/Switch.tsx +12 -0
  386. package/src/components/Form/Switch/examples/ChildSwitch.tsx +20 -0
  387. package/src/components/Form/Switch/examples/ColorScheme.tsx +5 -0
  388. package/src/components/Form/Switch/examples/Default.tsx +4 -0
  389. package/src/components/Form/Switch/examples/DisabledInput.tsx +7 -0
  390. package/src/components/Form/Switch/examples/FormSwitch.tsx +22 -0
  391. package/src/components/Form/Switch/examples/Formik.tsx +30 -0
  392. package/src/components/Form/Switch/examples/ReadOnlyInput.tsx +7 -0
  393. package/src/components/Form/Switch/examples/Shadow.tsx +11 -0
  394. package/src/components/Form/Switch/examples/SizeInput.tsx +21 -0
  395. package/src/components/Form/Switch/examples/StylesInput.tsx +34 -0
  396. package/src/components/Form/TextArea/TextArea/TextArea.props.ts +154 -0
  397. package/src/components/Form/TextArea/TextArea/TextArea.state.ts +21 -0
  398. package/src/components/Form/TextArea/TextArea/TextArea.type.ts +15 -0
  399. package/src/components/Form/TextArea/TextArea/TextArea.view.tsx +143 -0
  400. package/src/components/Form/TextArea/TextArea.md +169 -0
  401. package/src/components/Form/TextArea/TextArea.tsx +15 -0
  402. package/src/components/Form/TextArea/examples/ColorScheme.tsx +13 -0
  403. package/src/components/Form/TextArea/examples/Default.tsx +5 -0
  404. package/src/components/Form/TextArea/examples/DisabledInput.tsx +7 -0
  405. package/src/components/Form/TextArea/examples/ErrorInput.tsx +50 -0
  406. package/src/components/Form/TextArea/examples/FormikErrorInput.tsx +52 -0
  407. package/src/components/Form/TextArea/examples/FormikHelperText.tsx +51 -0
  408. package/src/components/Form/TextArea/examples/HelperText.tsx +49 -0
  409. package/src/components/Form/TextArea/examples/LabelInput.tsx +23 -0
  410. package/src/components/Form/TextArea/examples/MaxRowCol.tsx +7 -0
  411. package/src/components/Form/TextArea/examples/Placeholder.tsx +23 -0
  412. package/src/components/Form/TextArea/examples/ReadOnlyInput.tsx +7 -0
  413. package/src/components/Form/TextArea/examples/ShadowArea.tsx +28 -0
  414. package/src/components/Form/TextArea/examples/ShapeInput.tsx +15 -0
  415. package/src/components/Form/TextArea/examples/SizeInput.tsx +16 -0
  416. package/src/components/Form/TextArea/examples/StylesInput.tsx +34 -0
  417. package/src/components/Form/TextArea/examples/VariantsInputs.tsx +15 -0
  418. package/src/components/Form/TextArea/examples/index.ts +15 -0
  419. package/src/components/Form/TextArea/styles.css +7 -0
  420. package/src/components/Form/TextField/TextField/TextField.props.ts +134 -0
  421. package/src/components/Form/TextField/TextField/TextField.state.ts +21 -0
  422. package/src/components/Form/TextField/TextField/TextField.type.d.ts +15 -0
  423. package/src/components/Form/TextField/TextField/TextField.view.tsx +170 -0
  424. package/src/components/Form/TextField/TextField.md +193 -0
  425. package/src/components/Form/TextField/TextField.tsx +14 -0
  426. package/src/components/Form/TextField/examples/ClearInput.tsx +13 -0
  427. package/src/components/Form/TextField/examples/ColorScheme.tsx +13 -0
  428. package/src/components/Form/TextField/examples/Default.tsx +23 -0
  429. package/src/components/Form/TextField/examples/DisabledInput.tsx +7 -0
  430. package/src/components/Form/TextField/examples/ErrorInput.tsx +74 -0
  431. package/src/components/Form/TextField/examples/FormikErrorInput.tsx +76 -0
  432. package/src/components/Form/TextField/examples/FormikHelperText.tsx +62 -0
  433. package/src/components/Form/TextField/examples/HelperText.tsx +60 -0
  434. package/src/components/Form/TextField/examples/LabelInput.tsx +23 -0
  435. package/src/components/Form/TextField/examples/LeftChild.tsx +8 -0
  436. package/src/components/Form/TextField/examples/Placeholder.tsx +23 -0
  437. package/src/components/Form/TextField/examples/ReadOnlyInput.tsx +7 -0
  438. package/src/components/Form/TextField/examples/RightChild.tsx +8 -0
  439. package/src/components/Form/TextField/examples/ShapeInput.tsx +15 -0
  440. package/src/components/Form/TextField/examples/SizeInput.tsx +16 -0
  441. package/src/components/Form/TextField/examples/StylesInput.tsx +35 -0
  442. package/src/components/Form/TextField/examples/VariantsInputs.tsx +15 -0
  443. package/src/components/Form/TextField/examples/index.ts +17 -0
  444. package/src/components/Form/TextField/styles.css +7 -0
  445. package/src/components/Layout/Center/Center/Center.props.ts +18 -0
  446. package/src/components/Layout/Center/Center/Center.view.tsx +12 -0
  447. package/src/components/Layout/Center/Center.md +17 -0
  448. package/src/components/Layout/Center/Center.tsx +11 -0
  449. package/src/components/Layout/Horizontal/Horizontal/Horizontal.props.ts +26 -0
  450. package/src/components/Layout/Horizontal/Horizontal/Horizontal.view.tsx +24 -0
  451. package/src/components/Layout/Horizontal/Horizontal.md +107 -0
  452. package/src/components/Layout/Horizontal/Horizontal.tsx +11 -0
  453. package/src/components/Layout/Horizontal/examples/Default.tsx +11 -0
  454. package/src/components/Layout/Horizontal/examples/Justify.tsx +25 -0
  455. package/src/components/Layout/Horizontal/examples/Reversed.tsx +11 -0
  456. package/src/components/Layout/Horizontal/examples/Wrap.tsx +29 -0
  457. package/src/components/Layout/Horizontal/examples/index.ts +4 -0
  458. package/src/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.ts +25 -0
  459. package/src/components/Layout/Input/FieldContainer/FieldContainer.tsx +17 -0
  460. package/src/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.ts +75 -0
  461. package/src/components/Layout/Input/FieldContent/FieldContent.tsx +55 -0
  462. package/src/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.ts +12 -0
  463. package/src/components/Layout/Input/FieldIcons/FieldIcons.tsx +19 -0
  464. package/src/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.ts +31 -0
  465. package/src/components/Layout/Input/FieldLabel/FieldLabel.tsx +30 -0
  466. package/src/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.ts +29 -0
  467. package/src/components/Layout/Input/FieldLayout/FieldLayout.tsx +33 -0
  468. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.props.ts +12 -0
  469. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.tsx +11 -0
  470. package/src/components/Layout/Input/HelperText/HelperText.props.ts +21 -0
  471. package/src/components/Layout/Input/HelperText/HelperText.tsx +22 -0
  472. package/src/components/Layout/Input/index.ts +7 -0
  473. package/src/components/Layout/Vertical/Vertical/Vertical.props.ts +26 -0
  474. package/src/components/Layout/Vertical/Vertical/Vertical.type.ts +3 -0
  475. package/src/components/Layout/Vertical/Vertical/Vertical.view.tsx +23 -0
  476. package/src/components/Layout/Vertical/Vertical.md +120 -0
  477. package/src/components/Layout/Vertical/Vertical.tsx +12 -0
  478. package/src/components/Layout/Vertical/examples/Default.tsx +11 -0
  479. package/src/components/Layout/Vertical/examples/Justify.tsx +26 -0
  480. package/src/components/Layout/Vertical/examples/Reversed.tsx +11 -0
  481. package/src/components/Layout/Vertical/examples/Wrap.tsx +30 -0
  482. package/src/components/Layout/Vertical/examples/index.tsx +5 -0
  483. package/src/components/Layout/View/View.tsx +2 -0
  484. package/src/components/Layout/configs/Input.style.ts +45 -0
  485. package/src/components/Layout/configs/Input.type.ts +18 -0
  486. package/src/components/Link/Link/Link.props.ts +50 -0
  487. package/src/components/Link/Link/Link.state.ts +6 -0
  488. package/src/components/Link/Link/Link.style.ts +14 -0
  489. package/src/components/Link/Link/Link.type.d.ts +8 -0
  490. package/src/components/Link/Link/Link.view.tsx +44 -0
  491. package/src/components/Link/Link.md +61 -0
  492. package/src/components/Link/Link.tsx +15 -0
  493. package/src/components/Link/examples/Default.tsx +5 -0
  494. package/src/components/Link/examples/IsExternal.tsx +10 -0
  495. package/src/components/Link/examples/Underline.tsx +23 -0
  496. package/src/components/Loader/Loader/Loader.props.ts +105 -0
  497. package/src/components/Loader/Loader/Loader.style.ts +25 -0
  498. package/src/components/Loader/Loader/Loader.type.d.ts +4 -0
  499. package/src/components/Loader/Loader/Loader.view.tsx +138 -0
  500. package/src/components/Loader/Loader.md +111 -0
  501. package/src/components/Loader/Loader.tsx +11 -0
  502. package/src/components/Loader/examples/ColorLoader.tsx +13 -0
  503. package/src/components/Loader/examples/DefaultLoader.tsx +4 -0
  504. package/src/components/Loader/examples/PositionLoader.tsx +19 -0
  505. package/src/components/Loader/examples/SizeLoader.tsx +12 -0
  506. package/src/components/Loader/examples/SpeedLoader.tsx +12 -0
  507. package/src/components/Loader/examples/TextLoader.tsx +8 -0
  508. package/src/components/Loader/examples/VariantLoader.tsx +12 -0
  509. package/src/components/Loader/examples/index.ts +7 -0
  510. package/src/components/Modal/Examples/BlurModal.tsx +38 -0
  511. package/src/components/Modal/Examples/CloseButtonModal.tsx +44 -0
  512. package/src/components/Modal/Examples/DefaultModal.tsx +38 -0
  513. package/src/components/Modal/Examples/FullScreenModal.tsx +28 -0
  514. package/src/components/Modal/Examples/ModalPosition.tsx +61 -0
  515. package/src/components/Modal/Examples/PreventCloseModal.tsx +27 -0
  516. package/src/components/Modal/Examples/ScrollModal.tsx +41 -0
  517. package/src/components/Modal/Examples/ShadowModal.tsx +29 -0
  518. package/src/components/Modal/Examples/VariantModal.tsx +48 -0
  519. package/src/components/Modal/Examples/index.ts +9 -0
  520. package/src/components/Modal/Modal/Modal.props.ts +202 -0
  521. package/src/components/Modal/Modal/Modal.style.ts +23 -0
  522. package/src/components/Modal/Modal/Modal.type.d.ts +7 -0
  523. package/src/components/Modal/Modal/Modal.view.tsx +169 -0
  524. package/src/components/Modal/Modal.md +509 -0
  525. package/src/components/Modal/Modal.tsx +18 -0
  526. package/src/components/Svg/ArrowDown.tsx +32 -0
  527. package/src/components/Svg/ArrowUp.tsx +32 -0
  528. package/src/components/Svg/Check.tsx +28 -0
  529. package/src/components/Svg/Close.tsx +31 -0
  530. package/src/components/Svg/CloseEye.tsx +26 -0
  531. package/src/components/Svg/DustBin.tsx +29 -0
  532. package/src/components/Svg/Edit.tsx +34 -0
  533. package/src/components/Svg/ExternalLink.tsx +31 -0
  534. package/src/components/Svg/Indeterminate.tsx +21 -0
  535. package/src/components/Svg/OpenEye.tsx +26 -0
  536. package/src/components/Svg/Profile.tsx +40 -0
  537. package/src/components/Svg/RightArrow.tsx +44 -0
  538. package/src/components/Svg/index.tsx +12 -0
  539. package/src/components/Text/Text/Text.props.ts +84 -0
  540. package/src/components/Text/Text/Text.style.ts +34 -0
  541. package/src/components/Text/Text/Text.type.d.ts +14 -0
  542. package/src/components/Text/Text/Text.view.tsx +96 -0
  543. package/src/components/Text/Text.md +163 -0
  544. package/src/components/Text/Text.tsx +13 -0
  545. package/src/components/Wrapper.tsx +19 -0
  546. package/src/components/index.tsx +18 -0
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
3
+
4
+ import { CountryPicker } from '../CountryPicker';
5
+
6
+ export const ColorCountryPicker = () => (
7
+ <Vertical gap={15}>
8
+ {['theme.primary', 'theme.secondary', 'theme.error', 'theme.success', 'theme.warning'].map((color) => (
9
+ <CountryPicker key={color} label={color} colorScheme={color} />
10
+ ))}
11
+ </Vertical>
12
+ );
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CountryPicker } from 'src/components';
3
+
4
+ export const DefaultCountryPicker = () => <CountryPicker label="Country" />;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ import { CountryPicker } from '../CountryPicker';
4
+
5
+ export const DisabledCountryPicker = () => <CountryPicker isDisabled />;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CountryPicker } from 'src/components';
3
+
4
+ export const ErrorCountryPicker = () => <CountryPicker id="error" label="Country" error />;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Button } from 'src/components';
3
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
4
+
5
+ import { CountryPicker } from '../CountryPicker';
6
+
7
+ export const FormCountryPicker = () => {
8
+ const handleSubmit = (event: any) => {
9
+ event.preventDefault();
10
+ const formData = new FormData(event.target);
11
+ alert(`You CountryPickered: ${formData.getAll('formItem')}`);
12
+ };
13
+ return (
14
+ <form onSubmit={handleSubmit}>
15
+ <Vertical gap={10} width="100%">
16
+ <CountryPicker id="formItem" name="formItem" placeholder="CountryPicker an item..." />
17
+ <Button type="submit" alignSelf="center">
18
+ Submit
19
+ </Button>
20
+ </Vertical>
21
+ </form>
22
+ );
23
+ };
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { Field, Form, Formik } from 'formik';
3
+ import { Button } from 'src/components';
4
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
5
+
6
+ import { CountryPicker } from '../CountryPicker';
7
+
8
+ export const FormikCountryPicker = () => {
9
+ const initialValues = {
10
+ country: '',
11
+ };
12
+
13
+ const onSubmit = (values: any) => {
14
+ alert(`${values.country}`);
15
+ };
16
+
17
+ return (
18
+ <Formik initialValues={initialValues} onSubmit={onSubmit}>
19
+ {({ values, handleChange }) => (
20
+ <Form>
21
+ <Vertical gap={10}>
22
+ <Field
23
+ id="country"
24
+ name="country"
25
+ as={CountryPicker}
26
+ value={values.country}
27
+ onChange={handleChange}
28
+ placeholder="CountryPicker an item..."
29
+ />
30
+
31
+ <Button type="submit" alignSelf="center">
32
+ Submit
33
+ </Button>
34
+ </Vertical>
35
+ </Form>
36
+ )}
37
+ </Formik>
38
+ );
39
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ import { CountryPicker } from '../CountryPicker';
4
+
5
+ export const HelperTextCountryPicker = () => <CountryPicker helperText="CountryPicker one item!" error />;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ import { CountryPicker } from '../CountryPicker';
4
+
5
+ export const ReadOnlyCountryPicker = () => <CountryPicker isReadOnly />;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CountryPicker } from 'src/components';
3
+
4
+ export const ShadowCountryPicker = () => <CountryPicker shadow={{ boxShadow: 'rgba(0, 0, 0, 0.20) 0px 3px 8px' }} />;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { CountryPicker } from 'src/components';
3
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
4
+
5
+ import { Shape } from '../CountryPicker/CountryPicker.type';
6
+
7
+ export const ShapeCountryPicker = () => (
8
+ <Vertical gap={10}>
9
+ {['default', 'sharp', 'rounded', 'pillShaped'].map((shape) => (
10
+ <CountryPicker key={shape} label={shape} shape={shape as Shape} placeholder="Select a country..." />
11
+ ))}
12
+ </Vertical>
13
+ );
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
3
+
4
+ import { CountryPicker } from '../CountryPicker';
5
+
6
+ export const SizeCountryPicker = () => {
7
+ return (
8
+ <Vertical gap={10}>
9
+ <CountryPicker name="xs" size="xs" label="xs" />
10
+ <CountryPicker name="sm" size="sm" label="sm" />
11
+ <CountryPicker name="md" size="md" label="md" />
12
+ <CountryPicker name="lg" size="lg" label="lg" />
13
+ <CountryPicker name="xl" size="xl" label="xl" />
14
+ </Vertical>
15
+ );
16
+ };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+
3
+ import { CountryPicker } from '../CountryPicker';
4
+
5
+ export const StyledCountryPicker = () => (
6
+ <CountryPicker
7
+ name="colorScheme"
8
+ colorScheme="theme.primary"
9
+ styles={{
10
+ box: { borderRadius: 10, borderColor: 'theme.primary',
11
+ borderStyle: 'solid',
12
+ borderWidth: 1, },
13
+ text: { color: 'theme.primary' },
14
+ label: { fontWeight: 'bold', color: 'theme.primary' },
15
+ dropDown: { color: 'theme.primary' },
16
+ field: { color: 'theme.primary' },
17
+ }}
18
+ />
19
+ );
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { CountryPicker } from 'src/components';
3
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
4
+
5
+ import { Variant } from '../CountryPicker/CountryPicker.type';
6
+
7
+ export const VariantCountryPicker = () => (
8
+ <Vertical gap={10}>
9
+ {['outline', 'default', 'unStyled'].map((variant) => (
10
+ <CountryPicker key={variant} variant={variant as Variant} label={variant} placeholder="Select a country..." />
11
+ ))}
12
+ </Vertical>
13
+ );
@@ -0,0 +1,12 @@
1
+ export * from 'src/components/Form/CountryPicker/examples/Color';
2
+ export * from 'src/components/Form/CountryPicker/examples/Default';
3
+ export * from 'src/components/Form/CountryPicker/examples/Disabled';
4
+ export * from 'src/components/Form/CountryPicker/examples/Error';
5
+ export * from 'src/components/Form/CountryPicker/examples/Form';
6
+ export * from 'src/components/Form/CountryPicker/examples/HelperText';
7
+ export * from 'src/components/Form/CountryPicker/examples/ReadOnlyInput';
8
+ export * from 'src/components/Form/CountryPicker/examples/Shadow';
9
+ export * from 'src/components/Form/CountryPicker/examples/Shape';
10
+ export * from 'src/components/Form/CountryPicker/examples/SizeInput';
11
+ export * from 'src/components/Form/CountryPicker/examples/StylesInput';
12
+ export * from 'src/components/Form/CountryPicker/examples/Variant';
@@ -0,0 +1,7 @@
1
+ input::-webkit-contacts-auto-fill-button {
2
+ visibility: hidden;
3
+ display: none !important;
4
+ pointer-events: none;
5
+ position: absolute;
6
+ right: 0;
7
+ }
@@ -0,0 +1,113 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { Elevation } from 'src/utils/elevation';
3
+ import { Shadow } from 'app-studio';
4
+
5
+ import { DatePickerStyles, Shape, Size, Variant } from './DatePicker.type';
6
+
7
+ export interface DatePickerProps {
8
+ /**
9
+ * The identifier for the DatePicker component.
10
+ */
11
+ id?: string;
12
+ /**
13
+ * Custom icon to display when the DatePicker is checked.
14
+ */
15
+ icon?: React.ReactNode;
16
+ /**
17
+ * Indicates whether the DatePicker has an error.
18
+ */
19
+ error?: boolean;
20
+ /**
21
+ * Additional helper text that provides information about the field.
22
+ */
23
+ helperText?: string;
24
+ /**
25
+ * The name of the toggle.
26
+ */
27
+ name?: string;
28
+
29
+ /**
30
+ * The color scheme that changes the background color of the DatePicker.
31
+ */
32
+ colorScheme?: string;
33
+ /**
34
+ * If true, the DatePicker cannot be selected.
35
+ */
36
+ isReadOnly?: boolean;
37
+ /**
38
+ * If true, the DatePicker will be unusable.
39
+ */
40
+ isDisabled?: boolean;
41
+
42
+ /**
43
+ * The label text for the field.
44
+ */
45
+ label?: string;
46
+ /**
47
+ * Callback function triggered when the DatePicker value changes.
48
+ */
49
+ onChange?: (value: any) => void;
50
+ /**
51
+ * Callback function triggered when the DatePicker value changes for IOS and Android.
52
+ */
53
+ onChangeText?: (text: string) => void;
54
+ /**
55
+ * CSS styles for the DatePicker container and label.
56
+ */
57
+ styles?: DatePickerStyles;
58
+ /**
59
+ * The shape that changes the outlines of the field.
60
+ */
61
+ shape?: Shape;
62
+ /**
63
+ * Changes the style of the field.
64
+ */
65
+ variant?: Variant;
66
+ /**
67
+ * The size that sets the height and width of the DatePicker.
68
+ */
69
+ size?: Size;
70
+ /**
71
+ * Adds a shadow effect to the DatePicker.
72
+ */
73
+ shadow?: Shadow | Elevation | CSSProperties;
74
+ /**
75
+ * Other properties that can be passed to the component.
76
+ */
77
+ [x: string]: any;
78
+ }
79
+
80
+ export interface DatePickerViewProps extends DatePickerProps {
81
+ /**
82
+ * The selected date value as a string.
83
+ */
84
+ date: string;
85
+
86
+ /**
87
+ * A function to set the selected date value.
88
+ * @param {string} newDate - The new date value to set.
89
+ */
90
+ setDate: (newDate: string) => void;
91
+
92
+ /**
93
+ * Flag indicating if the date picker is currently being hovered.
94
+ */
95
+ isHovered: boolean;
96
+
97
+ /**
98
+ * A function to set the hovered state of the date picker.
99
+ * @param {boolean} hovered - The hovered state to set.
100
+ */
101
+ setIsHovered: (hovered: boolean) => void;
102
+
103
+ /**
104
+ * Flag indicating if the date picker is currently focused.
105
+ */
106
+ isFocused: boolean;
107
+
108
+ /**
109
+ * A function to set the focus state of the date picker.
110
+ * @param {boolean} focused - The focus state to set.
111
+ */
112
+ setIsFocused: (focused: boolean) => void;
113
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import format from 'date-fns/format';
3
+
4
+ export const useDatePickerState = () => {
5
+ const [isHovered, setIsHovered] = React.useState(false);
6
+ const [isFocused, setIsFocused] = React.useState(false);
7
+ const [date, setDate] = React.useState(format(new Date(), 'yyyy-MM-dd'));
8
+
9
+ return {
10
+ date,
11
+ setDate,
12
+ isHovered,
13
+ setIsHovered,
14
+ isFocused,
15
+ setIsFocused,
16
+ };
17
+ };
@@ -0,0 +1,17 @@
1
+ import { Size } from './DatePicker.type';
2
+
3
+ export const IconSizes: Record<Size, string> = {
4
+ xs: '8px',
5
+ sm: '10px',
6
+ md: '12px',
7
+ lg: '14px',
8
+ xl: '16px',
9
+ };
10
+
11
+ export const LabelSizes: Record<Size, number> = {
12
+ xs: 8,
13
+ sm: 10,
14
+ md: 12,
15
+ lg: 14,
16
+ xl: 16,
17
+ };
@@ -0,0 +1,15 @@
1
+ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
+
3
+ export type DatePickerStyles = {
4
+ box?: CSSProperties;
5
+ text?: CSSProperties;
6
+ label?: CSSProperties;
7
+ helperText?: CSSProperties;
8
+ field?: CSSProperties;
9
+ };
10
+
11
+ export type Position = 'top' | 'left' | 'right' | 'bottom';
12
+
13
+ export type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
14
+
15
+ export type Variant = 'default' | 'outline' | 'unStyled';
@@ -0,0 +1,118 @@
1
+ import React from 'react';
2
+ import { Input,Typography } from 'app-studio';
3
+ import { FieldContainer } from 'src/components/Layout/Input/FieldContainer/FieldContainer';
4
+ import { FieldContent } from 'src/components/Layout/Input/FieldContent/FieldContent';
5
+ import { FieldLabel } from 'src/components/Layout/Input/FieldLabel/FieldLabel';
6
+ import { FieldWrapper } from 'src/components/Layout/Input/FieldWrapper/FieldWrapper';
7
+
8
+ import { DatePickerViewProps } from './DatePicker.props';
9
+
10
+ const DatePickerContent = (props: any) => <Input type="date" {...props} />;
11
+
12
+ const DatePickerView: React.FC<DatePickerViewProps> = ({
13
+ id,
14
+ icon,
15
+ name,
16
+ label,
17
+ date,
18
+ children,
19
+ helperText,
20
+ shadow = {},
21
+ size = 'md',
22
+ variant = 'default',
23
+ shape = 'default',
24
+ colorScheme = 'theme.primary',
25
+ styles = { box: {}, label: {}, helperText: {}, text: {}, field: {} },
26
+ error = false,
27
+ isHovered = false,
28
+ isFocused = false,
29
+ isDisabled = false,
30
+ isReadOnly = false,
31
+ setDate = () => {},
32
+ setIsFocused = () => {},
33
+ setIsHovered = () => {},
34
+ onChange,
35
+ onChangeText,
36
+ ...props
37
+ }) => {
38
+ const isWithLabel = !!(isFocused && label);
39
+
40
+ const handleHover = () => setIsHovered(!isHovered);
41
+ const handleFocus = () => setIsFocused(true);
42
+
43
+ const handleDateChange = (event: any) => {
44
+ if (typeof event === 'string') {
45
+ setDate(event);
46
+ if (onChangeText) onChangeText(event);
47
+ } else {
48
+ setDate(event.target.value);
49
+ if (onChange) onChange(event);
50
+ }
51
+ };
52
+
53
+ const fieldStyles = {
54
+ margin: 0,
55
+ paddingVertical: 8,
56
+ paddingHorizontal: 0,
57
+ width: '100%',
58
+ heigth: '100%',
59
+ border: 'none',
60
+ on: {
61
+ focus: {
62
+ outline: 'none',
63
+ backgroundColor: 'transparent',
64
+ },
65
+ },
66
+ fontSize: Typography.fontSizes[size],
67
+ backgroundColor: 'transparent',
68
+ color: isDisabled ? 'trueGray.600' : 'blueGray.700',
69
+ cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer',
70
+ ...styles['field'],
71
+ };
72
+
73
+ return (
74
+ <FieldContainer helperText={helperText} error={error} styles={styles}>
75
+ <FieldContent
76
+ label={label}
77
+ size={size}
78
+ error={error}
79
+ shape={shape}
80
+ styles={styles}
81
+ shadow={shadow}
82
+ variant={variant}
83
+ value={date}
84
+ color={colorScheme}
85
+ isHovered={isHovered}
86
+ isDisabled={isDisabled}
87
+ isReadOnly={isReadOnly}
88
+ isFocused={isFocused}
89
+ isWithLabel={isWithLabel}
90
+ colorScheme={colorScheme}
91
+ onMouseEnter={handleHover}
92
+ onMouseLeave={handleHover}
93
+ >
94
+ <FieldWrapper>
95
+ {isWithLabel && (
96
+ <FieldLabel htmlFor={id} color={colorScheme} error={error} {...styles}>
97
+ {label}
98
+ </FieldLabel>
99
+ )}
100
+ <DatePickerContent
101
+ id={id}
102
+ name={name}
103
+ value={date}
104
+ onFocus={handleFocus}
105
+ onChange={handleDateChange}
106
+ disabled={isDisabled}
107
+ readOnly={isReadOnly}
108
+ {...fieldStyles}
109
+ {...(onChangeText && { onChangeText: handleDateChange })}
110
+ {...props}
111
+ />
112
+ </FieldWrapper>
113
+ </FieldContent>
114
+ </FieldContainer>
115
+ );
116
+ };
117
+
118
+ export default DatePickerView;
@@ -0,0 +1,115 @@
1
+ ### **Default**
2
+
3
+ ```jsx
4
+ <DatePicker />
5
+ ```
6
+
7
+ ### **Disabled**
8
+
9
+ “**_isDisabled_**” makes the field unusable and unwritable.
10
+
11
+ ```tsx
12
+ <DatePicker name="disabled" isDisabled />
13
+ ```
14
+
15
+ ### **Read Only**
16
+
17
+ “**_isReadOnly_**” makes the field readable but not writable. Can only read the the date.
18
+
19
+ ```tsx
20
+ <DatePicker name="readOnly" isReadOnly />
21
+ ```
22
+
23
+ ### **Size**
24
+
25
+ “**_size_**” modifies the date picker's font size and label. The default value is "md.
26
+
27
+ ```tsx
28
+ import { Vertical } from "../../Layout/Vertical/Vertical";
29
+
30
+ <Vertical gap={10}>
31
+ <DatePicker name="xs" size="xs" />
32
+ <DatePicker name="sm" size="sm" />
33
+ <DatePicker name="md" size="md" />
34
+ <DatePicker name="lg" size="lg" />
35
+ <DatePicker name="xl" size="xl" />
36
+ </Vertical>;
37
+ ```
38
+
39
+ ### **Color Scheme**
40
+
41
+ “**_colorScheme_**” property modifies the background color of the datePicker.
42
+
43
+ ```jsx
44
+ import { Vertical } from "../../Layout/Vertical/Vertical";
45
+
46
+ <Vertical gap={15}>
47
+ {["theme.primary", "theme.secondary", "theme.error", "theme.success", "warning"].map((color) => (
48
+ <DatePicker key={color} name={color} colorScheme={color} />
49
+ ))}
50
+ </Vertical>;
51
+ ```
52
+
53
+ ### **Error**
54
+
55
+ “**_error_**” indicate the presence of an issue or problem with the field
56
+
57
+ ```tsx
58
+ <DatePicker id="error" name="error" error />
59
+ ```
60
+
61
+ ### **Helper Text**
62
+
63
+ “**_helperTex_**t” a text to provides additional information about the field.
64
+
65
+ ```jsx
66
+ <DatePicker
67
+ id="helper"
68
+ name="helper"
69
+ helperText="Please select another date"
70
+ error
71
+ />
72
+ ```
73
+
74
+ ### **Shadow**
75
+
76
+ “**_shadow_**” applies a shadow effects to the date picker.
77
+
78
+ ```tsx
79
+ <DatePicker
80
+ name="shadow"
81
+ shadow={{
82
+ boxShadow: "rgba(0, 0, 0, 0.20) 0px 3px 8px",
83
+ }}
84
+ />
85
+ ```
86
+
87
+ ### **Styles**
88
+
89
+ “**_styles”_** is used to customize the appearance of both the DatePicker and its associated label.
90
+
91
+ ```tsx
92
+ <DatePicker
93
+ colorScheme="theme.primary"
94
+ styles={{
95
+ datePicker: { borderRadius: 10, borderColor: "color.purple" },
96
+ label: { color: "color.purple" },
97
+ }}
98
+ />
99
+ ```
100
+
101
+ ## Types
102
+
103
+ ```tsx static
104
+ type Size = "sm" | "md" | "lg" | "xl";
105
+ ```
106
+
107
+ ```jsx static
108
+ type Styles = {
109
+ box?: CSSProperties,
110
+ text?: CSSProperties,
111
+ label?: CSSProperties,
112
+ helperText?: CSSProperties,
113
+ field?: CSSProperties,ssss
114
+ };
115
+ ```
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ import { DatePickerProps } from './DatePicker/DatePicker.props';
4
+ import { useDatePickerState } from './DatePicker/DatePicker.state';
5
+ import DatePickerView from './DatePicker/DatePicker.view';
6
+
7
+ const DatePickerComponent: React.FC<DatePickerProps> = (props) => {
8
+ const datePickerStates = useDatePickerState();
9
+ return <DatePickerView {...datePickerStates} {...props} />;
10
+ };
11
+
12
+ /**
13
+ * Date picker allows users to select a date from a calendar view.
14
+ */
15
+ export const DatePicker = DatePickerComponent;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Vertical } from 'src/components/Layout/Vertical/examples';
3
+
4
+ import { DatePicker } from '../DatePicker';
5
+
6
+ export const ColorDatePicker = () => (
7
+ <Vertical gap={15}>
8
+ {['theme.primary', 'theme.secondary', 'theme.error', 'theme.success', 'theme.warning'].map((color) => (
9
+ <DatePicker key={color} name="name" colorScheme={color} label="Select a date:" />
10
+ ))}
11
+ </Vertical>
12
+ );
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DatePicker } from 'src/components';
3
+
4
+ export const DefaultDatePicker = () => <DatePicker label="Select a date" />;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ import { DatePicker } from '../DatePicker';
4
+
5
+ export const DisabledDatePicker = () => <DatePicker name="disabled" isDisabled />;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DatePicker } from 'src/components';
3
+
4
+ export const ErrorDatePicker = () => <DatePicker id="error" name="error" error />;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Button } from 'src/components';
3
+ import { Horizontal } from 'src/components';
4
+
5
+ import { DatePicker } from '../DatePicker';
6
+
7
+ export const FormDatePicker = () => {
8
+ const handleSubmit = (event: any) => {
9
+ event.preventDefault();
10
+ const formData = new FormData(event.target);
11
+ alert(`You selected: ${formData.getAll('datePicker')}`);
12
+ };
13
+ return (
14
+ <form onSubmit={handleSubmit}>
15
+ <Horizontal gap={10}>
16
+ <DatePicker id="date" name="datePicker" />
17
+ <Button type="submit" marginTop={10}>
18
+ Submit
19
+ </Button>
20
+ </Horizontal>
21
+ </form>
22
+ );
23
+ };