@app-studio/web 0.1.5 → 0.1.6

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 (283) hide show
  1. package/package.json +2 -3
  2. package/src/components/Button/Button/Button.props.ts +0 -79
  3. package/src/components/Button/Button/Button.state.ts +0 -7
  4. package/src/components/Button/Button/Button.style.ts +0 -95
  5. package/src/components/Button/Button/Button.type.d.ts +0 -11
  6. package/src/components/Button/Button/Button.view.tsx +0 -113
  7. package/src/components/Button/Button.md +0 -165
  8. package/src/components/Button/Button.tsx +0 -24
  9. package/src/components/Button/examples/AutoFocusButton.tsx +0 -13
  10. package/src/components/Button/examples/BorderedButtons.tsx +0 -14
  11. package/src/components/Button/examples/ColoredButtons.tsx +0 -12
  12. package/src/components/Button/examples/DefaultButton.tsx +0 -4
  13. package/src/components/Button/examples/DisabledButton.tsx +0 -13
  14. package/src/components/Button/examples/IconButtons.tsx +0 -23
  15. package/src/components/Button/examples/LoadingButtons.tsx +0 -32
  16. package/src/components/Button/examples/ShadowButton.tsx +0 -6
  17. package/src/components/Button/examples/SizeButtons.tsx +0 -16
  18. package/src/components/Button/examples/VariantButtons.tsx +0 -20
  19. package/src/components/Button/examples/index.ts +0 -9
  20. package/src/components/Form/Checkbox/Checkbox/Checkbox.props.ts +0 -118
  21. package/src/components/Form/Checkbox/Checkbox/Checkbox.state.ts +0 -15
  22. package/src/components/Form/Checkbox/Checkbox/Checkbox.style.ts +0 -29
  23. package/src/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +0 -8
  24. package/src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx +0 -98
  25. package/src/components/Form/Checkbox/Checkbox.md +0 -128
  26. package/src/components/Form/Checkbox/Checkbox.tsx +0 -15
  27. package/src/components/Form/Checkbox/examples/ColorScheme.tsx +0 -12
  28. package/src/components/Form/Checkbox/examples/Default.tsx +0 -5
  29. package/src/components/Form/Checkbox/examples/DisabledInput.tsx +0 -5
  30. package/src/components/Form/Checkbox/examples/ErrorCheckbox.tsx +0 -5
  31. package/src/components/Form/Checkbox/examples/FormCheckout.tsx +0 -46
  32. package/src/components/Form/Checkbox/examples/IconCheckbox.tsx +0 -8
  33. package/src/components/Form/Checkbox/examples/IndeterminateCheckbox.tsx +0 -5
  34. package/src/components/Form/Checkbox/examples/ReadOnlyInput.tsx +0 -5
  35. package/src/components/Form/Checkbox/examples/Shadow.tsx +0 -11
  36. package/src/components/Form/Checkbox/examples/SizeInput.tsx +0 -18
  37. package/src/components/Form/Checkbox/examples/StylesInput.tsx +0 -22
  38. package/src/components/Form/Checkbox/examples/index.ts +0 -11
  39. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.props.ts +0 -187
  40. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.state.ts +0 -28
  41. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.style.ts +0 -17
  42. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +0 -22
  43. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.view.tsx +0 -234
  44. package/src/components/Form/CountryPicker/CountryPicker.md +0 -206
  45. package/src/components/Form/CountryPicker/CountryPicker.tsx +0 -16
  46. package/src/components/Form/CountryPicker/countries.json +0 -1453
  47. package/src/components/Form/CountryPicker/examples/Color.tsx +0 -12
  48. package/src/components/Form/CountryPicker/examples/Default.tsx +0 -4
  49. package/src/components/Form/CountryPicker/examples/Disabled.tsx +0 -5
  50. package/src/components/Form/CountryPicker/examples/Error.tsx +0 -4
  51. package/src/components/Form/CountryPicker/examples/Form.tsx +0 -23
  52. package/src/components/Form/CountryPicker/examples/Formik.tsx +0 -39
  53. package/src/components/Form/CountryPicker/examples/HelperText.tsx +0 -5
  54. package/src/components/Form/CountryPicker/examples/ReadOnlyInput.tsx +0 -5
  55. package/src/components/Form/CountryPicker/examples/Shadow.tsx +0 -4
  56. package/src/components/Form/CountryPicker/examples/Shape.tsx +0 -13
  57. package/src/components/Form/CountryPicker/examples/SizeInput.tsx +0 -16
  58. package/src/components/Form/CountryPicker/examples/StylesInput.tsx +0 -17
  59. package/src/components/Form/CountryPicker/examples/Variant.tsx +0 -13
  60. package/src/components/Form/CountryPicker/examples/index.ts +0 -12
  61. package/src/components/Form/CountryPicker/styles.css +0 -7
  62. package/src/components/Form/DatePicker/DatePicker/DatePicker.props.ts +0 -113
  63. package/src/components/Form/DatePicker/DatePicker/DatePicker.state.ts +0 -17
  64. package/src/components/Form/DatePicker/DatePicker/DatePicker.style.ts +0 -17
  65. package/src/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +0 -15
  66. package/src/components/Form/DatePicker/DatePicker/DatePicker.view.tsx +0 -118
  67. package/src/components/Form/DatePicker/DatePicker.md +0 -115
  68. package/src/components/Form/DatePicker/DatePicker.tsx +0 -15
  69. package/src/components/Form/DatePicker/examples/ColorScheme.tsx +0 -12
  70. package/src/components/Form/DatePicker/examples/Default.tsx +0 -4
  71. package/src/components/Form/DatePicker/examples/DisabledInput.tsx +0 -5
  72. package/src/components/Form/DatePicker/examples/ErrorCheckbox.tsx +0 -4
  73. package/src/components/Form/DatePicker/examples/FormCheckout.tsx +0 -23
  74. package/src/components/Form/DatePicker/examples/Formik.tsx +0 -35
  75. package/src/components/Form/DatePicker/examples/ReadOnlyInput.tsx +0 -5
  76. package/src/components/Form/DatePicker/examples/Shadow.tsx +0 -10
  77. package/src/components/Form/DatePicker/examples/SizeInput.tsx +0 -16
  78. package/src/components/Form/DatePicker/examples/StylesInput.tsx +0 -14
  79. package/src/components/Form/DatePicker/examples/helperTextDatePicker.tsx +0 -6
  80. package/src/components/Form/DatePicker/examples/index.ts +0 -11
  81. package/src/components/Form/Label/Label/Label.props.ts +0 -36
  82. package/src/components/Form/Label/Label/Label.style.ts +0 -34
  83. package/src/components/Form/Label/Label/Label.type.ts +0 -14
  84. package/src/components/Form/Label/Label/Label.view.tsx +0 -35
  85. package/src/components/Form/Label/Label.tsx +0 -8
  86. package/src/components/Form/Password/Password/Password.props.ts +0 -36
  87. package/src/components/Form/Password/Password/Password.state.ts +0 -6
  88. package/src/components/Form/Password/Password/Password.type.d.ts +0 -14
  89. package/src/components/Form/Password/Password/Password.view.tsx +0 -32
  90. package/src/components/Form/Password/Password.md +0 -108
  91. package/src/components/Form/Password/Password.tsx +0 -15
  92. package/src/components/Form/Password/example/Default.tsx +0 -9
  93. package/src/components/Form/Password/example/DisabledInput.tsx +0 -17
  94. package/src/components/Form/Password/example/ErrorInput.tsx +0 -66
  95. package/src/components/Form/Password/example/FormikErrorInput.tsx +0 -67
  96. package/src/components/Form/Password/example/FormikHelperText.tsx +0 -65
  97. package/src/components/Form/Password/example/HelperText.tsx +0 -65
  98. package/src/components/Form/Select/Select/Select.props.ts +0 -262
  99. package/src/components/Form/Select/Select/Select.state.ts +0 -19
  100. package/src/components/Form/Select/Select/Select.style.ts +0 -19
  101. package/src/components/Form/Select/Select/Select.type.d.ts +0 -15
  102. package/src/components/Form/Select/Select/Select.view.tsx +0 -337
  103. package/src/components/Form/Select/Select.md +0 -165
  104. package/src/components/Form/Select/Select.tsx +0 -16
  105. package/src/components/Form/Select/examples/Color.tsx +0 -12
  106. package/src/components/Form/Select/examples/Default.tsx +0 -4
  107. package/src/components/Form/Select/examples/Disabled.tsx +0 -5
  108. package/src/components/Form/Select/examples/Error.tsx +0 -4
  109. package/src/components/Form/Select/examples/Form.tsx +0 -23
  110. package/src/components/Form/Select/examples/Formik.tsx +0 -41
  111. package/src/components/Form/Select/examples/HelperText.tsx +0 -7
  112. package/src/components/Form/Select/examples/Multiple.tsx +0 -6
  113. package/src/components/Form/Select/examples/ReadOnlyInput.tsx +0 -5
  114. package/src/components/Form/Select/examples/Shadow.tsx +0 -11
  115. package/src/components/Form/Select/examples/SizeInput.tsx +0 -16
  116. package/src/components/Form/Select/examples/StylesInput.tsx +0 -15
  117. package/src/components/Form/Switch/Switch/Switch.props.ts +0 -91
  118. package/src/components/Form/Switch/Switch/Switch.state.ts +0 -11
  119. package/src/components/Form/Switch/Switch/Switch.style.ts +0 -72
  120. package/src/components/Form/Switch/Switch/Switch.type.d.ts +0 -6
  121. package/src/components/Form/Switch/Switch/Switch.view.tsx +0 -78
  122. package/src/components/Form/Switch/Switch.md +0 -148
  123. package/src/components/Form/Switch/Switch.tsx +0 -12
  124. package/src/components/Form/Switch/examples/ChildSwitch.tsx +0 -20
  125. package/src/components/Form/Switch/examples/ColorScheme.tsx +0 -5
  126. package/src/components/Form/Switch/examples/Default.tsx +0 -4
  127. package/src/components/Form/Switch/examples/DisabledInput.tsx +0 -7
  128. package/src/components/Form/Switch/examples/FormSwitch.tsx +0 -22
  129. package/src/components/Form/Switch/examples/Formik.tsx +0 -30
  130. package/src/components/Form/Switch/examples/ReadOnlyInput.tsx +0 -7
  131. package/src/components/Form/Switch/examples/Shadow.tsx +0 -11
  132. package/src/components/Form/Switch/examples/SizeInput.tsx +0 -21
  133. package/src/components/Form/Switch/examples/StylesInput.tsx +0 -32
  134. package/src/components/Form/TextArea/TextArea/TextArea.props.ts +0 -154
  135. package/src/components/Form/TextArea/TextArea/TextArea.state.ts +0 -21
  136. package/src/components/Form/TextArea/TextArea/TextArea.type.ts +0 -15
  137. package/src/components/Form/TextArea/TextArea/TextArea.view.tsx +0 -143
  138. package/src/components/Form/TextArea/TextArea.md +0 -169
  139. package/src/components/Form/TextArea/TextArea.tsx +0 -15
  140. package/src/components/Form/TextArea/examples/ColorScheme.tsx +0 -13
  141. package/src/components/Form/TextArea/examples/Default.tsx +0 -5
  142. package/src/components/Form/TextArea/examples/DisabledInput.tsx +0 -7
  143. package/src/components/Form/TextArea/examples/ErrorInput.tsx +0 -50
  144. package/src/components/Form/TextArea/examples/FormikErrorInput.tsx +0 -52
  145. package/src/components/Form/TextArea/examples/FormikHelperText.tsx +0 -51
  146. package/src/components/Form/TextArea/examples/HelperText.tsx +0 -49
  147. package/src/components/Form/TextArea/examples/LabelInput.tsx +0 -23
  148. package/src/components/Form/TextArea/examples/MaxRowCol.tsx +0 -7
  149. package/src/components/Form/TextArea/examples/Placeholder.tsx +0 -23
  150. package/src/components/Form/TextArea/examples/ReadOnlyInput.tsx +0 -7
  151. package/src/components/Form/TextArea/examples/ShadowArea.tsx +0 -28
  152. package/src/components/Form/TextArea/examples/ShapeInput.tsx +0 -15
  153. package/src/components/Form/TextArea/examples/SizeInput.tsx +0 -16
  154. package/src/components/Form/TextArea/examples/StylesInput.tsx +0 -32
  155. package/src/components/Form/TextArea/examples/VariantsInputs.tsx +0 -15
  156. package/src/components/Form/TextArea/examples/index.ts +0 -15
  157. package/src/components/Form/TextArea/styles.css +0 -7
  158. package/src/components/Form/TextField/TextField/TextField.props.ts +0 -134
  159. package/src/components/Form/TextField/TextField/TextField.state.ts +0 -21
  160. package/src/components/Form/TextField/TextField/TextField.type.d.ts +0 -15
  161. package/src/components/Form/TextField/TextField/TextField.view.tsx +0 -170
  162. package/src/components/Form/TextField/TextField.md +0 -193
  163. package/src/components/Form/TextField/TextField.tsx +0 -14
  164. package/src/components/Form/TextField/examples/ClearInput.tsx +0 -13
  165. package/src/components/Form/TextField/examples/ColorScheme.tsx +0 -13
  166. package/src/components/Form/TextField/examples/Default.tsx +0 -23
  167. package/src/components/Form/TextField/examples/DisabledInput.tsx +0 -7
  168. package/src/components/Form/TextField/examples/ErrorInput.tsx +0 -74
  169. package/src/components/Form/TextField/examples/FormikErrorInput.tsx +0 -76
  170. package/src/components/Form/TextField/examples/FormikHelperText.tsx +0 -62
  171. package/src/components/Form/TextField/examples/HelperText.tsx +0 -60
  172. package/src/components/Form/TextField/examples/LabelInput.tsx +0 -23
  173. package/src/components/Form/TextField/examples/LeftChild.tsx +0 -8
  174. package/src/components/Form/TextField/examples/Placeholder.tsx +0 -23
  175. package/src/components/Form/TextField/examples/ReadOnlyInput.tsx +0 -7
  176. package/src/components/Form/TextField/examples/RightChild.tsx +0 -8
  177. package/src/components/Form/TextField/examples/ShapeInput.tsx +0 -15
  178. package/src/components/Form/TextField/examples/SizeInput.tsx +0 -16
  179. package/src/components/Form/TextField/examples/StylesInput.tsx +0 -33
  180. package/src/components/Form/TextField/examples/VariantsInputs.tsx +0 -15
  181. package/src/components/Form/TextField/examples/index.ts +0 -17
  182. package/src/components/Form/TextField/styles.css +0 -7
  183. package/src/components/Layout/Center/Center/Center.props.ts +0 -18
  184. package/src/components/Layout/Center/Center/Center.view.tsx +0 -12
  185. package/src/components/Layout/Center/Center.md +0 -17
  186. package/src/components/Layout/Center/Center.tsx +0 -11
  187. package/src/components/Layout/Horizontal/Horizontal/Horizontal.props.ts +0 -26
  188. package/src/components/Layout/Horizontal/Horizontal/Horizontal.view.tsx +0 -24
  189. package/src/components/Layout/Horizontal/Horizontal.md +0 -107
  190. package/src/components/Layout/Horizontal/Horizontal.tsx +0 -11
  191. package/src/components/Layout/Horizontal/examples/Default.tsx +0 -11
  192. package/src/components/Layout/Horizontal/examples/Justify.tsx +0 -25
  193. package/src/components/Layout/Horizontal/examples/Reversed.tsx +0 -11
  194. package/src/components/Layout/Horizontal/examples/Wrap.tsx +0 -29
  195. package/src/components/Layout/Horizontal/examples/index.ts +0 -4
  196. package/src/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.ts +0 -25
  197. package/src/components/Layout/Input/FieldContainer/FieldContainer.tsx +0 -17
  198. package/src/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.ts +0 -75
  199. package/src/components/Layout/Input/FieldContent/FieldContent.tsx +0 -55
  200. package/src/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.ts +0 -12
  201. package/src/components/Layout/Input/FieldIcons/FieldIcons.tsx +0 -19
  202. package/src/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.ts +0 -31
  203. package/src/components/Layout/Input/FieldLabel/FieldLabel.tsx +0 -30
  204. package/src/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.ts +0 -29
  205. package/src/components/Layout/Input/FieldLayout/FieldLayout.tsx +0 -33
  206. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.props.ts +0 -12
  207. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.tsx +0 -11
  208. package/src/components/Layout/Input/HelperText/HelperText.props.ts +0 -21
  209. package/src/components/Layout/Input/HelperText/HelperText.tsx +0 -22
  210. package/src/components/Layout/Input/index.ts +0 -7
  211. package/src/components/Layout/Vertical/Vertical/Vertical.props.ts +0 -26
  212. package/src/components/Layout/Vertical/Vertical/Vertical.type.ts +0 -3
  213. package/src/components/Layout/Vertical/Vertical/Vertical.view.tsx +0 -23
  214. package/src/components/Layout/Vertical/Vertical.md +0 -120
  215. package/src/components/Layout/Vertical/Vertical.tsx +0 -12
  216. package/src/components/Layout/Vertical/examples/Default.tsx +0 -11
  217. package/src/components/Layout/Vertical/examples/Justify.tsx +0 -26
  218. package/src/components/Layout/Vertical/examples/Reversed.tsx +0 -11
  219. package/src/components/Layout/Vertical/examples/Wrap.tsx +0 -30
  220. package/src/components/Layout/Vertical/examples/index.tsx +0 -5
  221. package/src/components/Layout/View/View.tsx +0 -2
  222. package/src/components/Layout/configs/Input.style.ts +0 -45
  223. package/src/components/Layout/configs/Input.type.ts +0 -18
  224. package/src/components/Link/Link/Link.props.ts +0 -50
  225. package/src/components/Link/Link/Link.state.ts +0 -6
  226. package/src/components/Link/Link/Link.style.ts +0 -14
  227. package/src/components/Link/Link/Link.type.d.ts +0 -8
  228. package/src/components/Link/Link/Link.view.tsx +0 -44
  229. package/src/components/Link/Link.md +0 -61
  230. package/src/components/Link/Link.tsx +0 -15
  231. package/src/components/Link/examples/Default.tsx +0 -5
  232. package/src/components/Link/examples/IsExternal.tsx +0 -10
  233. package/src/components/Link/examples/Underline.tsx +0 -23
  234. package/src/components/Loader/Loader/Loader.props.ts +0 -105
  235. package/src/components/Loader/Loader/Loader.style.ts +0 -25
  236. package/src/components/Loader/Loader/Loader.type.d.ts +0 -4
  237. package/src/components/Loader/Loader/Loader.view.tsx +0 -138
  238. package/src/components/Loader/Loader.md +0 -111
  239. package/src/components/Loader/Loader.tsx +0 -11
  240. package/src/components/Loader/examples/ColorLoader.tsx +0 -13
  241. package/src/components/Loader/examples/DefaultLoader.tsx +0 -4
  242. package/src/components/Loader/examples/PositionLoader.tsx +0 -19
  243. package/src/components/Loader/examples/SizeLoader.tsx +0 -12
  244. package/src/components/Loader/examples/SpeedLoader.tsx +0 -12
  245. package/src/components/Loader/examples/TextLoader.tsx +0 -8
  246. package/src/components/Loader/examples/VariantLoader.tsx +0 -12
  247. package/src/components/Loader/examples/index.ts +0 -7
  248. package/src/components/Modal/Examples/BlurModal.tsx +0 -38
  249. package/src/components/Modal/Examples/CloseButtonModal.tsx +0 -44
  250. package/src/components/Modal/Examples/DefaultModal.tsx +0 -38
  251. package/src/components/Modal/Examples/FullScreenModal.tsx +0 -28
  252. package/src/components/Modal/Examples/ModalPosition.tsx +0 -61
  253. package/src/components/Modal/Examples/PreventCloseModal.tsx +0 -27
  254. package/src/components/Modal/Examples/ScrollModal.tsx +0 -41
  255. package/src/components/Modal/Examples/ShadowModal.tsx +0 -29
  256. package/src/components/Modal/Examples/VariantModal.tsx +0 -48
  257. package/src/components/Modal/Examples/index.ts +0 -9
  258. package/src/components/Modal/Modal/Modal.props.ts +0 -202
  259. package/src/components/Modal/Modal/Modal.style.ts +0 -23
  260. package/src/components/Modal/Modal/Modal.type.d.ts +0 -7
  261. package/src/components/Modal/Modal/Modal.view.tsx +0 -169
  262. package/src/components/Modal/Modal.md +0 -509
  263. package/src/components/Modal/Modal.tsx +0 -18
  264. package/src/components/Svg/ArrowDown.tsx +0 -32
  265. package/src/components/Svg/ArrowUp.tsx +0 -32
  266. package/src/components/Svg/Check.tsx +0 -28
  267. package/src/components/Svg/Close.tsx +0 -31
  268. package/src/components/Svg/CloseEye.tsx +0 -26
  269. package/src/components/Svg/DustBin.tsx +0 -29
  270. package/src/components/Svg/Edit.tsx +0 -34
  271. package/src/components/Svg/ExternalLink.tsx +0 -31
  272. package/src/components/Svg/Indeterminate.tsx +0 -21
  273. package/src/components/Svg/OpenEye.tsx +0 -26
  274. package/src/components/Svg/Profile.tsx +0 -40
  275. package/src/components/Svg/RightArrow.tsx +0 -44
  276. package/src/components/Svg/index.tsx +0 -12
  277. package/src/components/Text/Text/Text.props.ts +0 -84
  278. package/src/components/Text/Text/Text.style.ts +0 -34
  279. package/src/components/Text/Text/Text.type.d.ts +0 -14
  280. package/src/components/Text/Text/Text.view.tsx +0 -96
  281. package/src/components/Text/Text.md +0 -163
  282. package/src/components/Text/Text.tsx +0 -13
  283. package/src/components/index.tsx +0 -18
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { Field, Form, Formik } from 'formik';
3
- import { Button } from 'src/components';
4
- import { Horizontal } from 'src/components';
5
-
6
- import { DatePicker } from '../DatePicker';
7
-
8
- export const FormikDatePicker = () => {
9
- const initialValues = {
10
- selectdate: '2023-05-30',
11
- };
12
-
13
- const onSubmit = (values: any) => {
14
- alert(`${values.selectdate}`);
15
- };
16
-
17
- return (
18
- <Formik initialValues={initialValues} onSubmit={onSubmit}>
19
- {({ values, handleChange }) => (
20
- <Form>
21
- <Horizontal gap={10}>
22
- <Field
23
- id="selectdate"
24
- name="selectdate"
25
- as={DatePicker}
26
- value={values.selectdate}
27
- onChange={handleChange}
28
- />
29
- <Button type="submit">Submit</Button>
30
- </Horizontal>
31
- </Form>
32
- )}
33
- </Formik>
34
- );
35
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- import { DatePicker } from '../DatePicker';
4
-
5
- export const ReadOnlyDatePicker = () => <DatePicker name="disabled" isReadOnly />;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { DatePicker } from 'src/components';
3
-
4
- export const ShadowDatePicker = () => (
5
- <DatePicker
6
- shadow={{
7
- boxShadow: 'rgba(0, 0, 0, 0.20) 0px 3px 8px',
8
- }}
9
- />
10
- );
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { Vertical } from 'src/components/Layout/Vertical/examples';
3
-
4
- import { DatePicker } from '../DatePicker';
5
-
6
- export const SizeDatePicker = () => {
7
- return (
8
- <Vertical gap={10}>
9
- <DatePicker name="xs" size="xs" />
10
- <DatePicker name="sm" size="sm" />
11
- <DatePicker name="md" size="md" />
12
- <DatePicker name="lg" size="lg" />
13
- <DatePicker name="xl" size="xl" />
14
- </Vertical>
15
- );
16
- };
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
-
3
- import { DatePicker } from '../DatePicker';
4
-
5
- export const StyledDatePicker = () => (
6
- <DatePicker
7
- colorScheme="theme.primary"
8
- shadow={{ boxShadow: 'rgba(93, 37, 85, 0.3) 0px 3px 8px' }}
9
- styles={{
10
- box: { borderRadius: 10, borderColor: 'theme.primary' },
11
- label: { color: 'theme.primary' },
12
- }}
13
- />
14
- );
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { DatePicker } from 'src/components';
3
-
4
- export const HelperTextDatePicker = () => (
5
- <DatePicker id="error" name="error" error helperText="Please select another date" />
6
- );
@@ -1,11 +0,0 @@
1
- export * from 'src/components/Form/DatePicker/examples/ColorScheme';
2
- export * from 'src/components/Form/DatePicker/examples/Default';
3
- export * from 'src/components/Form/DatePicker/examples/DisabledInput';
4
- export * from 'src/components/Form/DatePicker/examples/ErrorCheckbox';
5
- export * from 'src/components/Form/DatePicker/examples/FormCheckout';
6
- export * from 'src/components/Form/DatePicker/examples/Formik';
7
- export * from 'src/components/Form/DatePicker/examples/helperTextDatePicker';
8
- export * from 'src/components/Form/DatePicker/examples/ReadOnlyInput';
9
- export * from 'src/components/Form/DatePicker/examples/Shadow';
10
- export * from 'src/components/Form/DatePicker/examples/SizeInput';
11
- export * from 'src/components/Form/DatePicker/examples/StylesInput';
@@ -1,36 +0,0 @@
1
- import { Headings, Sizes, TextWeights } from './Label.type';
2
-
3
- export interface LabelProps {
4
- /**
5
- * The text content
6
- */
7
- children: React.ReactNode;
8
- /**
9
- * Specify a heading html tag.
10
- */
11
- heading?: Headings;
12
- /**
13
- * If true, the text is styled in italic
14
- */
15
- isItalic?: boolean;
16
- /**
17
- * Marks up a text to indicate that it is no longer valid
18
- */
19
- isStriked?: boolean;
20
- /**
21
- * If true, it underline the text
22
- */
23
- isUnderlined?: boolean;
24
- /**
25
- * Changes the text-size
26
- */
27
- size?: Sizes | number;
28
- /**
29
- * Changes the font weight of the text
30
- */
31
- weight?: TextWeights;
32
- /**
33
- * Other properties
34
- */
35
- [x: string]: any;
36
- }
@@ -1,34 +0,0 @@
1
- import { Headings } from './Label.type';
2
-
3
- export const HeadingSizes: Record<Headings, Record<string, number | string>> = {
4
- h1: {
5
- fontSize: 96,
6
- lineHeight: 112,
7
- letterSpacing: -1.5,
8
- },
9
- h2: {
10
- fontSize: 60,
11
- lineHeight: 71,
12
- letterSpacing: -0.5,
13
- },
14
- h3: {
15
- fontSize: 48,
16
- lineHeight: 57,
17
- letterSpacing: 0,
18
- },
19
- h4: {
20
- fontSize: 34,
21
- lineHeight: 40,
22
- letterSpacing: 0.25,
23
- },
24
- h5: {
25
- fontSize: 24,
26
- lineHeight: 28,
27
- letterSpacing: 0,
28
- },
29
- h6: {
30
- fontSize: 20,
31
- lineHeight: 24,
32
- letterSpacing: 0.15,
33
- },
34
- };
@@ -1,14 +0,0 @@
1
- export type TextWeights =
2
- | 'hairline'
3
- | 'thin'
4
- | 'light'
5
- | 'normal'
6
- | 'medium'
7
- | 'semiBold'
8
- | 'bold'
9
- | 'extraBold'
10
- | 'black';
11
-
12
- export type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
13
-
14
- export type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { Element, Typography } from 'app-studio';
3
-
4
- import { LabelProps } from './Label.props';
5
- import { HeadingSizes } from './Label.style';
6
-
7
- const LabelView: React.FC<LabelProps> = ({
8
- children,
9
- heading,
10
- isItalic = false,
11
- isUnderlined = false,
12
- isStriked = false,
13
- weight = 'normal',
14
- size = 'sm',
15
- ...props
16
- }) => {
17
- const headingStyles = heading ? HeadingSizes[heading] : {};
18
-
19
- return (
20
- <Element
21
- as="label"
22
- width="100%"
23
- fontSize={size}
24
- fontStyle={isItalic ? 'italic' : 'normal'}
25
- fontWeight={Typography.fontWeights[weight]}
26
- textDecoration={isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'}
27
- {...headingStyles}
28
- {...props}
29
- >
30
- {children}
31
- </Element>
32
- );
33
- };
34
-
35
- export default LabelView;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
-
3
- import { LabelProps } from './Label/Label.props';
4
- import LabelView from './Label/Label.view';
5
-
6
- const LabelComponent: React.FC<LabelProps> = (props) => <LabelView {...props} />;
7
-
8
- export const Label = LabelComponent;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { TextFieldProps } from 'src/components/Form/TextField/TextField/TextField.props';
3
-
4
- export interface PasswordProps extends TextFieldProps {
5
- /**
6
- * The name of the input field
7
- */
8
- name?: string;
9
- /**
10
- * If true, the Input will be unusable
11
- */
12
- isDisabled?: boolean;
13
- /**
14
- * Icon to Indicate that the password is visible
15
- */
16
- visibleIcon?: React.ReactNode;
17
- /**
18
- * Icon to Indicate that the password is hidden
19
- */
20
- hiddenIcon?: React.ReactNode;
21
- /**
22
- * other properties
23
- */
24
- [x: string]: any;
25
- }
26
-
27
- export interface PasswordViewProps extends PasswordProps {
28
- /**
29
- * Optional prop to determine if the password is visible
30
- */
31
- isVisible?: boolean;
32
- /**
33
- * Optional callback prop to update the visibility state
34
- */
35
- setIsVisible?: Function;
36
- }
@@ -1,6 +0,0 @@
1
- import { useState } from 'react';
2
-
3
- export const usePasswordState = () => {
4
- const [isVisible, setIsVisible] = useState(false);
5
- return { isVisible, setIsVisible };
6
- };
@@ -1,14 +0,0 @@
1
- import { CSSProperties } from 'react';
2
-
3
- export type Variant = 'outline' | 'default' | 'unStyled';
4
-
5
- export type Shape = 'default' | 'sharp' | 'rounded' | 'pillShaped';
6
-
7
- export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
8
-
9
- export type PasswordStyles = {
10
- box?: CSSProperties;
11
- Password?: CSSProperties;
12
- label?: CSSProperties;
13
- helperText?: CSSProperties;
14
- };
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { TextField, View } from 'src/components';
3
-
4
- import { PasswordViewProps } from './Password.props';
5
-
6
- const PasswordView: React.FC<PasswordViewProps> = ({
7
- name,
8
- visibleIcon,
9
- hiddenIcon,
10
- isDisabled = false,
11
- isVisible = false,
12
- setIsVisible = () => {},
13
- ...props
14
- }) => (
15
- <TextField
16
- name={name}
17
- type={isVisible ? 'text' : 'password'}
18
- rightChild={
19
- <View
20
- onClick={() => {
21
- if (!isDisabled) setIsVisible(!isVisible);
22
- }}
23
- >
24
- {isVisible ? visibleIcon : hiddenIcon}
25
- </View>
26
- }
27
- isClearable={false}
28
- {...props}
29
- />
30
- );
31
-
32
- export default PasswordView;
@@ -1,108 +0,0 @@
1
- ### **Import**
2
-
3
- ```tsx static
4
- import { Password } from "app-studio";
5
- ```
6
-
7
- ### **Default**
8
-
9
- It has type equals to “password” and isClearable set to false. It has all the props of the TextField component.
10
-
11
- ```tsx
12
- <Password label="Password" value="123456" />
13
- ```
14
-
15
- ### **Disabled**
16
-
17
- “**_isDisabled_**” makes the field unusable.
18
-
19
- ```tsx
20
- <Password value="password" isDisabled />
21
- ```
22
-
23
- ### **Icon**
24
-
25
- “**_visibleIcon_**” and “**_hiddenIcon_**” are icons indicating whether the password is visible or hidden.
26
-
27
- ```tsx
28
- import { OpenEyeSvg } from "../../Svg/OpenEye";
29
- import { CloseEyeSvg } from "../../Svg/CloseEye";
30
-
31
- <Password
32
- visibleIcon={<OpenEyeSvg size={14} />}
33
- hiddenIcon={<CloseEyeSvg size={14} />}
34
- />;
35
- ```
36
-
37
- ### **Error**
38
-
39
- “**_error_**” if true, indicates that the text field value failed the validation criteria.
40
-
41
- ```tsx
42
- import { Vertical } from "../../Layout/Vertical/Vertical";
43
- import { Button } from "../../Button/Button";
44
- import { OpenEyeSvg } from "../../Svg/OpenEye";
45
- import { CloseEyeSvg } from "../../Svg/CloseEye";
46
-
47
- <Password
48
- placeholder="Password"
49
- colorScheme="theme.secondary"
50
- visibleIcon={<OpenEyeSvg size={14} />}
51
- hiddenIcon={<CloseEyeSvg size={14} />}
52
- error
53
- />;
54
- ```
55
-
56
- ### **HelperText**
57
-
58
- “**_helperText_**” is a string text used to inform the user that the content of the field is invalid.
59
-
60
- ```tsx
61
- import { Vertical } from "../../Layout/Vertical/Vertical";
62
- import { Button } from "../../Button/Button";
63
- import { OpenEyeSvg } from "../../Svg/OpenEye";
64
- import { CloseEyeSvg } from "../../Svg/CloseEye";
65
-
66
- <Password
67
- placeholder="Password"
68
- helperText="Incorrect password"
69
- visibleIcon={<OpenEyeSvg size={14} />}
70
- hiddenIcon={<CloseEyeSvg size={14} />}
71
- error
72
- />;
73
- ```
74
-
75
- ## **Default Values**
76
-
77
- ```tsx static
78
- const Shapes: Record<Shape, number | string> = {
79
- default: "6px 6px 0 0",
80
- sharp: 0,
81
- rounded: 4,
82
- pillShaped: 24,
83
- };
84
- ```
85
-
86
- ## Types
87
-
88
- ```tsx static
89
- type Variant = "outline" | "default" | "unStyled";
90
- ```
91
-
92
- ```tsx static
93
- type Shape = "default" | "sharp" | "rounded" | "pillShaped";
94
- ```
95
-
96
- ```tsx static
97
- type Size = "xs" | "sm" | "md" | "lg" | "xl";
98
- ```
99
-
100
- ```tsx static
101
- type TextFieldStyles = {
102
- box?: CSSProperties;
103
- field?: CSSProperties;
104
- label?: CSSProperties;
105
- helperText?: CSSProperties;
106
- text?: CSSProperties;
107
- };
108
- ```
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
-
3
- import { PasswordProps } from './Password/Password.props';
4
- import { usePasswordState } from './Password/Password.state';
5
- import PasswordView from './Password/Password.view';
6
-
7
- const PasswordComponent: React.FC<PasswordProps> = (props) => {
8
- const passwordState = usePasswordState();
9
- return <PasswordView {...passwordState} {...props} />;
10
- };
11
-
12
- /**
13
- * To allow users to securely enter sensitive information
14
- */
15
- export const Password = PasswordComponent;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { CloseEyeSvg } from 'src/components/Svg/CloseEye';
3
- import { OpenEyeSvg } from 'src/components/Svg/OpenEye';
4
-
5
- import { Password } from '../Password';
6
-
7
- export const DefaultPassword = () => (
8
- <Password visibleIcon={<OpenEyeSvg size={14} />} hiddenIcon={<CloseEyeSvg size={14} />} />
9
- );
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { CloseEyeSvg } from 'src/components/Svg/CloseEye';
3
- import { OpenEyeSvg } from 'src/components/Svg/OpenEye';
4
-
5
- import { Password } from '../Password';
6
-
7
- export const DisabledPassword = () => {
8
- return (
9
- <Password
10
- name="disabled"
11
- value="disabled"
12
- visibleIcon={<OpenEyeSvg size={14} />}
13
- hiddenIcon={<CloseEyeSvg size={14} />}
14
- isDisabled
15
- />
16
- );
17
- };
@@ -1,66 +0,0 @@
1
- import { useState } from 'react';
2
- import React from 'react';
3
- import { Button } from 'src/components';
4
- import { Password, TextField } from 'src/components';
5
- import { Vertical } from 'src/components';
6
- import { CloseEyeSvg } from 'src/components/Svg/CloseEye';
7
- import { OpenEyeSvg } from 'src/components/Svg/OpenEye';
8
-
9
- export const ErrorPassword = () => {
10
- const initialValues = {
11
- name: '',
12
- password: '',
13
- };
14
- const [formValues, setFormValues] = useState(initialValues);
15
- const [formErrors, setFormErrors] = useState(initialValues);
16
-
17
- const validate = (values: any) => {
18
- const errors: any = {};
19
-
20
- if (!values.name) {
21
- errors.name = 'Required';
22
- }
23
- if (!values.password) {
24
- errors.password = 'Required';
25
- }
26
- setFormErrors(errors);
27
- };
28
-
29
- const handleChange = (event: any) => {
30
- setFormValues({ ...formValues, [event.target.name]: event.target.value });
31
- };
32
-
33
- const handleSubmit = (event: any) => {
34
- event.preventDefault();
35
- validate(formValues);
36
- if (Object.values(formErrors).length === 0) {
37
- alert(`Hello, ${formValues.name} ${formValues.password}`);
38
- }
39
- };
40
- return (
41
- <form onSubmit={handleSubmit}>
42
- <Vertical gap={10} wrap="nowrap">
43
- <TextField
44
- name="name"
45
- placeholder="Name"
46
- error={!!formErrors.name}
47
- onChange={handleChange}
48
- colorScheme="theme.secondary"
49
- isClearable={true}
50
- />
51
- <Password
52
- name="password"
53
- placeholder="Password"
54
- error={!!formErrors.password}
55
- onChange={handleChange}
56
- colorScheme="theme.secondary"
57
- visibleIcon={<OpenEyeSvg size={14} />}
58
- hiddenIcon={<CloseEyeSvg size={14} />}
59
- />
60
- <Button type="submit" height="40px">
61
- Submit
62
- </Button>
63
- </Vertical>
64
- </form>
65
- );
66
- };
@@ -1,67 +0,0 @@
1
- import React from 'react';
2
- import { Field, Form, Formik } from 'formik';
3
- import { Button } from 'src/components';
4
- import { Password, TextField } from 'src/components';
5
- import { Vertical } from 'src/components';
6
- import { CloseEyeSvg } from 'src/components/Svg/CloseEye';
7
- import { OpenEyeSvg } from 'src/components/Svg/OpenEye';
8
-
9
- export const FormikErrorPassword = () => {
10
- const initialValues = {
11
- name: '',
12
- password: '',
13
- };
14
-
15
- const validate = (values: any) => {
16
- const errors: any = {};
17
-
18
- if (!values.name) {
19
- errors.name = 'Required';
20
- }
21
- if (!values.password) {
22
- errors.password = 'Required';
23
- }
24
-
25
- return errors;
26
- };
27
-
28
- return (
29
- <Formik
30
- initialValues={initialValues}
31
- validate={validate}
32
- onSubmit={(values, { setSubmitting }) => {
33
- setTimeout(() => {
34
- alert(JSON.stringify(values, null, 2));
35
- setSubmitting(false);
36
- }, 400);
37
- }}
38
- >
39
- {({ errors, touched, isSubmitting }) => (
40
- <Form>
41
- <Vertical gap={10}>
42
- <Field
43
- as={TextField}
44
- name="name"
45
- label="Name"
46
- error={touched.name && errors.name}
47
- colorScheme="theme.secondary"
48
- />
49
- <Field
50
- as={Password}
51
- name="password"
52
- label="Password"
53
- colorScheme="theme.secondary"
54
- visibleIcon={<OpenEyeSvg size={14} />}
55
- hiddenIcon={<CloseEyeSvg size={14} />}
56
- error={touched.password && errors.password}
57
- />
58
-
59
- <Button type="submit" isDisabled={isSubmitting}>
60
- Submit
61
- </Button>
62
- </Vertical>
63
- </Form>
64
- )}
65
- </Formik>
66
- );
67
- };