@app-studio/web 0.1.4 → 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 (300) hide show
  1. package/dist/components/Button/examples/index.d.ts +9 -9
  2. package/dist/components/Form/Checkbox/examples/index.d.ts +11 -11
  3. package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -12
  4. package/dist/components/Form/DatePicker/examples/index.d.ts +11 -11
  5. package/dist/components/Form/Password/Password/Password.props.d.ts +1 -1
  6. package/dist/components/Form/TextArea/examples/index.d.ts +15 -15
  7. package/dist/components/Form/TextField/examples/index.d.ts +17 -17
  8. package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -4
  9. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
  10. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
  11. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
  12. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
  13. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
  14. package/dist/components/Layout/Input/index.d.ts +7 -7
  15. package/dist/components/Loader/examples/index.d.ts +7 -7
  16. package/dist/components/Modal/Examples/index.d.ts +9 -9
  17. package/dist/components/index.d.ts +18 -18
  18. package/package.json +6 -7
  19. package/src/components/Button/Button/Button.props.ts +0 -79
  20. package/src/components/Button/Button/Button.state.ts +0 -7
  21. package/src/components/Button/Button/Button.style.ts +0 -95
  22. package/src/components/Button/Button/Button.type.d.ts +0 -11
  23. package/src/components/Button/Button/Button.view.tsx +0 -113
  24. package/src/components/Button/Button.md +0 -165
  25. package/src/components/Button/Button.tsx +0 -24
  26. package/src/components/Button/examples/AutoFocusButton.tsx +0 -13
  27. package/src/components/Button/examples/BorderedButtons.tsx +0 -14
  28. package/src/components/Button/examples/ColoredButtons.tsx +0 -12
  29. package/src/components/Button/examples/DefaultButton.tsx +0 -4
  30. package/src/components/Button/examples/DisabledButton.tsx +0 -13
  31. package/src/components/Button/examples/IconButtons.tsx +0 -23
  32. package/src/components/Button/examples/LoadingButtons.tsx +0 -32
  33. package/src/components/Button/examples/ShadowButton.tsx +0 -6
  34. package/src/components/Button/examples/SizeButtons.tsx +0 -16
  35. package/src/components/Button/examples/VariantButtons.tsx +0 -20
  36. package/src/components/Button/examples/index.ts +0 -9
  37. package/src/components/Form/Checkbox/Checkbox/Checkbox.props.ts +0 -118
  38. package/src/components/Form/Checkbox/Checkbox/Checkbox.state.ts +0 -15
  39. package/src/components/Form/Checkbox/Checkbox/Checkbox.style.ts +0 -29
  40. package/src/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +0 -8
  41. package/src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx +0 -98
  42. package/src/components/Form/Checkbox/Checkbox.md +0 -128
  43. package/src/components/Form/Checkbox/Checkbox.tsx +0 -15
  44. package/src/components/Form/Checkbox/examples/ColorScheme.tsx +0 -12
  45. package/src/components/Form/Checkbox/examples/Default.tsx +0 -5
  46. package/src/components/Form/Checkbox/examples/DisabledInput.tsx +0 -5
  47. package/src/components/Form/Checkbox/examples/ErrorCheckbox.tsx +0 -5
  48. package/src/components/Form/Checkbox/examples/FormCheckout.tsx +0 -46
  49. package/src/components/Form/Checkbox/examples/IconCheckbox.tsx +0 -8
  50. package/src/components/Form/Checkbox/examples/IndeterminateCheckbox.tsx +0 -5
  51. package/src/components/Form/Checkbox/examples/ReadOnlyInput.tsx +0 -5
  52. package/src/components/Form/Checkbox/examples/Shadow.tsx +0 -11
  53. package/src/components/Form/Checkbox/examples/SizeInput.tsx +0 -18
  54. package/src/components/Form/Checkbox/examples/StylesInput.tsx +0 -22
  55. package/src/components/Form/Checkbox/examples/index.ts +0 -11
  56. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.props.ts +0 -187
  57. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.state.ts +0 -28
  58. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.style.ts +0 -17
  59. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +0 -22
  60. package/src/components/Form/CountryPicker/CountryPicker/CountryPicker.view.tsx +0 -234
  61. package/src/components/Form/CountryPicker/CountryPicker.md +0 -206
  62. package/src/components/Form/CountryPicker/CountryPicker.tsx +0 -16
  63. package/src/components/Form/CountryPicker/countries.json +0 -1453
  64. package/src/components/Form/CountryPicker/examples/Color.tsx +0 -12
  65. package/src/components/Form/CountryPicker/examples/Default.tsx +0 -4
  66. package/src/components/Form/CountryPicker/examples/Disabled.tsx +0 -5
  67. package/src/components/Form/CountryPicker/examples/Error.tsx +0 -4
  68. package/src/components/Form/CountryPicker/examples/Form.tsx +0 -23
  69. package/src/components/Form/CountryPicker/examples/Formik.tsx +0 -39
  70. package/src/components/Form/CountryPicker/examples/HelperText.tsx +0 -5
  71. package/src/components/Form/CountryPicker/examples/ReadOnlyInput.tsx +0 -5
  72. package/src/components/Form/CountryPicker/examples/Shadow.tsx +0 -4
  73. package/src/components/Form/CountryPicker/examples/Shape.tsx +0 -13
  74. package/src/components/Form/CountryPicker/examples/SizeInput.tsx +0 -16
  75. package/src/components/Form/CountryPicker/examples/StylesInput.tsx +0 -17
  76. package/src/components/Form/CountryPicker/examples/Variant.tsx +0 -13
  77. package/src/components/Form/CountryPicker/examples/index.ts +0 -12
  78. package/src/components/Form/CountryPicker/styles.css +0 -7
  79. package/src/components/Form/DatePicker/DatePicker/DatePicker.props.ts +0 -113
  80. package/src/components/Form/DatePicker/DatePicker/DatePicker.state.ts +0 -17
  81. package/src/components/Form/DatePicker/DatePicker/DatePicker.style.ts +0 -17
  82. package/src/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +0 -15
  83. package/src/components/Form/DatePicker/DatePicker/DatePicker.view.tsx +0 -118
  84. package/src/components/Form/DatePicker/DatePicker.md +0 -115
  85. package/src/components/Form/DatePicker/DatePicker.tsx +0 -15
  86. package/src/components/Form/DatePicker/examples/ColorScheme.tsx +0 -12
  87. package/src/components/Form/DatePicker/examples/Default.tsx +0 -4
  88. package/src/components/Form/DatePicker/examples/DisabledInput.tsx +0 -5
  89. package/src/components/Form/DatePicker/examples/ErrorCheckbox.tsx +0 -4
  90. package/src/components/Form/DatePicker/examples/FormCheckout.tsx +0 -23
  91. package/src/components/Form/DatePicker/examples/Formik.tsx +0 -35
  92. package/src/components/Form/DatePicker/examples/ReadOnlyInput.tsx +0 -5
  93. package/src/components/Form/DatePicker/examples/Shadow.tsx +0 -10
  94. package/src/components/Form/DatePicker/examples/SizeInput.tsx +0 -16
  95. package/src/components/Form/DatePicker/examples/StylesInput.tsx +0 -14
  96. package/src/components/Form/DatePicker/examples/helperTextDatePicker.tsx +0 -6
  97. package/src/components/Form/DatePicker/examples/index.ts +0 -11
  98. package/src/components/Form/Label/Label/Label.props.ts +0 -36
  99. package/src/components/Form/Label/Label/Label.style.ts +0 -34
  100. package/src/components/Form/Label/Label/Label.type.ts +0 -14
  101. package/src/components/Form/Label/Label/Label.view.tsx +0 -35
  102. package/src/components/Form/Label/Label.tsx +0 -8
  103. package/src/components/Form/Password/Password/Password.props.ts +0 -36
  104. package/src/components/Form/Password/Password/Password.state.ts +0 -6
  105. package/src/components/Form/Password/Password/Password.type.d.ts +0 -14
  106. package/src/components/Form/Password/Password/Password.view.tsx +0 -32
  107. package/src/components/Form/Password/Password.md +0 -108
  108. package/src/components/Form/Password/Password.tsx +0 -15
  109. package/src/components/Form/Password/example/Default.tsx +0 -9
  110. package/src/components/Form/Password/example/DisabledInput.tsx +0 -17
  111. package/src/components/Form/Password/example/ErrorInput.tsx +0 -66
  112. package/src/components/Form/Password/example/FormikErrorInput.tsx +0 -67
  113. package/src/components/Form/Password/example/FormikHelperText.tsx +0 -65
  114. package/src/components/Form/Password/example/HelperText.tsx +0 -65
  115. package/src/components/Form/Select/Select/Select.props.ts +0 -262
  116. package/src/components/Form/Select/Select/Select.state.ts +0 -19
  117. package/src/components/Form/Select/Select/Select.style.ts +0 -19
  118. package/src/components/Form/Select/Select/Select.type.d.ts +0 -15
  119. package/src/components/Form/Select/Select/Select.view.tsx +0 -337
  120. package/src/components/Form/Select/Select.md +0 -165
  121. package/src/components/Form/Select/Select.tsx +0 -16
  122. package/src/components/Form/Select/examples/Color.tsx +0 -12
  123. package/src/components/Form/Select/examples/Default.tsx +0 -4
  124. package/src/components/Form/Select/examples/Disabled.tsx +0 -5
  125. package/src/components/Form/Select/examples/Error.tsx +0 -4
  126. package/src/components/Form/Select/examples/Form.tsx +0 -23
  127. package/src/components/Form/Select/examples/Formik.tsx +0 -41
  128. package/src/components/Form/Select/examples/HelperText.tsx +0 -7
  129. package/src/components/Form/Select/examples/Multiple.tsx +0 -6
  130. package/src/components/Form/Select/examples/ReadOnlyInput.tsx +0 -5
  131. package/src/components/Form/Select/examples/Shadow.tsx +0 -11
  132. package/src/components/Form/Select/examples/SizeInput.tsx +0 -16
  133. package/src/components/Form/Select/examples/StylesInput.tsx +0 -15
  134. package/src/components/Form/Switch/Switch/Switch.props.ts +0 -91
  135. package/src/components/Form/Switch/Switch/Switch.state.ts +0 -11
  136. package/src/components/Form/Switch/Switch/Switch.style.ts +0 -72
  137. package/src/components/Form/Switch/Switch/Switch.type.d.ts +0 -6
  138. package/src/components/Form/Switch/Switch/Switch.view.tsx +0 -78
  139. package/src/components/Form/Switch/Switch.md +0 -148
  140. package/src/components/Form/Switch/Switch.tsx +0 -12
  141. package/src/components/Form/Switch/examples/ChildSwitch.tsx +0 -20
  142. package/src/components/Form/Switch/examples/ColorScheme.tsx +0 -5
  143. package/src/components/Form/Switch/examples/Default.tsx +0 -4
  144. package/src/components/Form/Switch/examples/DisabledInput.tsx +0 -7
  145. package/src/components/Form/Switch/examples/FormSwitch.tsx +0 -22
  146. package/src/components/Form/Switch/examples/Formik.tsx +0 -30
  147. package/src/components/Form/Switch/examples/ReadOnlyInput.tsx +0 -7
  148. package/src/components/Form/Switch/examples/Shadow.tsx +0 -11
  149. package/src/components/Form/Switch/examples/SizeInput.tsx +0 -21
  150. package/src/components/Form/Switch/examples/StylesInput.tsx +0 -32
  151. package/src/components/Form/TextArea/TextArea/TextArea.props.ts +0 -154
  152. package/src/components/Form/TextArea/TextArea/TextArea.state.ts +0 -21
  153. package/src/components/Form/TextArea/TextArea/TextArea.type.ts +0 -15
  154. package/src/components/Form/TextArea/TextArea/TextArea.view.tsx +0 -143
  155. package/src/components/Form/TextArea/TextArea.md +0 -169
  156. package/src/components/Form/TextArea/TextArea.tsx +0 -15
  157. package/src/components/Form/TextArea/examples/ColorScheme.tsx +0 -13
  158. package/src/components/Form/TextArea/examples/Default.tsx +0 -5
  159. package/src/components/Form/TextArea/examples/DisabledInput.tsx +0 -7
  160. package/src/components/Form/TextArea/examples/ErrorInput.tsx +0 -50
  161. package/src/components/Form/TextArea/examples/FormikErrorInput.tsx +0 -52
  162. package/src/components/Form/TextArea/examples/FormikHelperText.tsx +0 -51
  163. package/src/components/Form/TextArea/examples/HelperText.tsx +0 -49
  164. package/src/components/Form/TextArea/examples/LabelInput.tsx +0 -23
  165. package/src/components/Form/TextArea/examples/MaxRowCol.tsx +0 -7
  166. package/src/components/Form/TextArea/examples/Placeholder.tsx +0 -23
  167. package/src/components/Form/TextArea/examples/ReadOnlyInput.tsx +0 -7
  168. package/src/components/Form/TextArea/examples/ShadowArea.tsx +0 -28
  169. package/src/components/Form/TextArea/examples/ShapeInput.tsx +0 -15
  170. package/src/components/Form/TextArea/examples/SizeInput.tsx +0 -16
  171. package/src/components/Form/TextArea/examples/StylesInput.tsx +0 -32
  172. package/src/components/Form/TextArea/examples/VariantsInputs.tsx +0 -15
  173. package/src/components/Form/TextArea/examples/index.ts +0 -15
  174. package/src/components/Form/TextArea/styles.css +0 -7
  175. package/src/components/Form/TextField/TextField/TextField.props.ts +0 -134
  176. package/src/components/Form/TextField/TextField/TextField.state.ts +0 -21
  177. package/src/components/Form/TextField/TextField/TextField.type.d.ts +0 -15
  178. package/src/components/Form/TextField/TextField/TextField.view.tsx +0 -170
  179. package/src/components/Form/TextField/TextField.md +0 -193
  180. package/src/components/Form/TextField/TextField.tsx +0 -14
  181. package/src/components/Form/TextField/examples/ClearInput.tsx +0 -13
  182. package/src/components/Form/TextField/examples/ColorScheme.tsx +0 -13
  183. package/src/components/Form/TextField/examples/Default.tsx +0 -23
  184. package/src/components/Form/TextField/examples/DisabledInput.tsx +0 -7
  185. package/src/components/Form/TextField/examples/ErrorInput.tsx +0 -74
  186. package/src/components/Form/TextField/examples/FormikErrorInput.tsx +0 -76
  187. package/src/components/Form/TextField/examples/FormikHelperText.tsx +0 -62
  188. package/src/components/Form/TextField/examples/HelperText.tsx +0 -60
  189. package/src/components/Form/TextField/examples/LabelInput.tsx +0 -23
  190. package/src/components/Form/TextField/examples/LeftChild.tsx +0 -8
  191. package/src/components/Form/TextField/examples/Placeholder.tsx +0 -23
  192. package/src/components/Form/TextField/examples/ReadOnlyInput.tsx +0 -7
  193. package/src/components/Form/TextField/examples/RightChild.tsx +0 -8
  194. package/src/components/Form/TextField/examples/ShapeInput.tsx +0 -15
  195. package/src/components/Form/TextField/examples/SizeInput.tsx +0 -16
  196. package/src/components/Form/TextField/examples/StylesInput.tsx +0 -33
  197. package/src/components/Form/TextField/examples/VariantsInputs.tsx +0 -15
  198. package/src/components/Form/TextField/examples/index.ts +0 -17
  199. package/src/components/Form/TextField/styles.css +0 -7
  200. package/src/components/Layout/Center/Center/Center.props.ts +0 -18
  201. package/src/components/Layout/Center/Center/Center.view.tsx +0 -12
  202. package/src/components/Layout/Center/Center.md +0 -17
  203. package/src/components/Layout/Center/Center.tsx +0 -11
  204. package/src/components/Layout/Horizontal/Horizontal/Horizontal.props.ts +0 -26
  205. package/src/components/Layout/Horizontal/Horizontal/Horizontal.view.tsx +0 -24
  206. package/src/components/Layout/Horizontal/Horizontal.md +0 -107
  207. package/src/components/Layout/Horizontal/Horizontal.tsx +0 -11
  208. package/src/components/Layout/Horizontal/examples/Default.tsx +0 -11
  209. package/src/components/Layout/Horizontal/examples/Justify.tsx +0 -25
  210. package/src/components/Layout/Horizontal/examples/Reversed.tsx +0 -11
  211. package/src/components/Layout/Horizontal/examples/Wrap.tsx +0 -29
  212. package/src/components/Layout/Horizontal/examples/index.ts +0 -4
  213. package/src/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.ts +0 -25
  214. package/src/components/Layout/Input/FieldContainer/FieldContainer.tsx +0 -17
  215. package/src/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.ts +0 -75
  216. package/src/components/Layout/Input/FieldContent/FieldContent.tsx +0 -55
  217. package/src/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.ts +0 -12
  218. package/src/components/Layout/Input/FieldIcons/FieldIcons.tsx +0 -19
  219. package/src/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.ts +0 -31
  220. package/src/components/Layout/Input/FieldLabel/FieldLabel.tsx +0 -30
  221. package/src/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.ts +0 -29
  222. package/src/components/Layout/Input/FieldLayout/FieldLayout.tsx +0 -33
  223. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.props.ts +0 -12
  224. package/src/components/Layout/Input/FieldWrapper/FieldWrapper.tsx +0 -11
  225. package/src/components/Layout/Input/HelperText/HelperText.props.ts +0 -21
  226. package/src/components/Layout/Input/HelperText/HelperText.tsx +0 -22
  227. package/src/components/Layout/Input/index.ts +0 -7
  228. package/src/components/Layout/Vertical/Vertical/Vertical.props.ts +0 -26
  229. package/src/components/Layout/Vertical/Vertical/Vertical.type.ts +0 -3
  230. package/src/components/Layout/Vertical/Vertical/Vertical.view.tsx +0 -23
  231. package/src/components/Layout/Vertical/Vertical.md +0 -120
  232. package/src/components/Layout/Vertical/Vertical.tsx +0 -12
  233. package/src/components/Layout/Vertical/examples/Default.tsx +0 -11
  234. package/src/components/Layout/Vertical/examples/Justify.tsx +0 -26
  235. package/src/components/Layout/Vertical/examples/Reversed.tsx +0 -11
  236. package/src/components/Layout/Vertical/examples/Wrap.tsx +0 -30
  237. package/src/components/Layout/Vertical/examples/index.tsx +0 -5
  238. package/src/components/Layout/View/View.tsx +0 -2
  239. package/src/components/Layout/configs/Input.style.ts +0 -45
  240. package/src/components/Layout/configs/Input.type.ts +0 -18
  241. package/src/components/Link/Link/Link.props.ts +0 -50
  242. package/src/components/Link/Link/Link.state.ts +0 -6
  243. package/src/components/Link/Link/Link.style.ts +0 -14
  244. package/src/components/Link/Link/Link.type.d.ts +0 -8
  245. package/src/components/Link/Link/Link.view.tsx +0 -44
  246. package/src/components/Link/Link.md +0 -61
  247. package/src/components/Link/Link.tsx +0 -15
  248. package/src/components/Link/examples/Default.tsx +0 -5
  249. package/src/components/Link/examples/IsExternal.tsx +0 -10
  250. package/src/components/Link/examples/Underline.tsx +0 -23
  251. package/src/components/Loader/Loader/Loader.props.ts +0 -105
  252. package/src/components/Loader/Loader/Loader.style.ts +0 -25
  253. package/src/components/Loader/Loader/Loader.type.d.ts +0 -4
  254. package/src/components/Loader/Loader/Loader.view.tsx +0 -138
  255. package/src/components/Loader/Loader.md +0 -111
  256. package/src/components/Loader/Loader.tsx +0 -11
  257. package/src/components/Loader/examples/ColorLoader.tsx +0 -13
  258. package/src/components/Loader/examples/DefaultLoader.tsx +0 -4
  259. package/src/components/Loader/examples/PositionLoader.tsx +0 -19
  260. package/src/components/Loader/examples/SizeLoader.tsx +0 -12
  261. package/src/components/Loader/examples/SpeedLoader.tsx +0 -12
  262. package/src/components/Loader/examples/TextLoader.tsx +0 -8
  263. package/src/components/Loader/examples/VariantLoader.tsx +0 -12
  264. package/src/components/Loader/examples/index.ts +0 -7
  265. package/src/components/Modal/Examples/BlurModal.tsx +0 -38
  266. package/src/components/Modal/Examples/CloseButtonModal.tsx +0 -44
  267. package/src/components/Modal/Examples/DefaultModal.tsx +0 -38
  268. package/src/components/Modal/Examples/FullScreenModal.tsx +0 -28
  269. package/src/components/Modal/Examples/ModalPosition.tsx +0 -61
  270. package/src/components/Modal/Examples/PreventCloseModal.tsx +0 -27
  271. package/src/components/Modal/Examples/ScrollModal.tsx +0 -41
  272. package/src/components/Modal/Examples/ShadowModal.tsx +0 -29
  273. package/src/components/Modal/Examples/VariantModal.tsx +0 -48
  274. package/src/components/Modal/Examples/index.ts +0 -9
  275. package/src/components/Modal/Modal/Modal.props.ts +0 -202
  276. package/src/components/Modal/Modal/Modal.style.ts +0 -23
  277. package/src/components/Modal/Modal/Modal.type.d.ts +0 -7
  278. package/src/components/Modal/Modal/Modal.view.tsx +0 -169
  279. package/src/components/Modal/Modal.md +0 -509
  280. package/src/components/Modal/Modal.tsx +0 -18
  281. package/src/components/Svg/ArrowDown.tsx +0 -32
  282. package/src/components/Svg/ArrowUp.tsx +0 -32
  283. package/src/components/Svg/Check.tsx +0 -28
  284. package/src/components/Svg/Close.tsx +0 -31
  285. package/src/components/Svg/CloseEye.tsx +0 -26
  286. package/src/components/Svg/DustBin.tsx +0 -29
  287. package/src/components/Svg/Edit.tsx +0 -34
  288. package/src/components/Svg/ExternalLink.tsx +0 -31
  289. package/src/components/Svg/Indeterminate.tsx +0 -21
  290. package/src/components/Svg/OpenEye.tsx +0 -26
  291. package/src/components/Svg/Profile.tsx +0 -40
  292. package/src/components/Svg/RightArrow.tsx +0 -44
  293. package/src/components/Svg/index.tsx +0 -12
  294. package/src/components/Text/Text/Text.props.ts +0 -84
  295. package/src/components/Text/Text/Text.style.ts +0 -34
  296. package/src/components/Text/Text/Text.type.d.ts +0 -14
  297. package/src/components/Text/Text/Text.view.tsx +0 -96
  298. package/src/components/Text/Text.md +0 -163
  299. package/src/components/Text/Text.tsx +0 -13
  300. package/src/components/index.tsx +0 -18
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Text } from 'src/components';
3
-
4
- import { Link } from '../Link';
5
-
6
- export const ExternalLink = () => (
7
- <Link href={'https://www.npmjs.com/package/app-studio'} isExternal iconSize="md">
8
- <Text size="2xl">External</Text>
9
- </Link>
10
- );
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { Text, Vertical } from 'src/components';
3
-
4
- import { Link } from '../Link';
5
-
6
- export const UnderlineLink = () => (
7
- <Vertical gap={10}>
8
- <Link href={'https://www.npmjs.com/package/app-studio'} underline="default">
9
- Default
10
- </Link>
11
- <Link href={'https://www.npmjs.com/package/app-studio'} underline="hover">
12
- Hover
13
- </Link>
14
- <Link
15
- href={'https://www.npmjs.com/package/app-studio'}
16
- underline="underline"
17
- color="theme.primary"
18
- textDecorationColor="theme.primary"
19
- >
20
- <Text>Underline</Text>
21
- </Link>
22
- </Vertical>
23
- );
@@ -1,105 +0,0 @@
1
- import React from 'react';
2
-
3
- import { LoaderType, Size, Speed, TextPosition } from './Loader.type';
4
-
5
- /**
6
- * Props for the Loader component.
7
- */
8
- export interface LoaderProps {
9
- /**
10
- * The text content.
11
- */
12
- children?: React.ReactNode;
13
-
14
- /**
15
- * The color of the loader.
16
- */
17
- loaderColor?: string;
18
-
19
- /**
20
- * The type of loader.
21
- */
22
- type?: LoaderType;
23
-
24
- /**
25
- * The color of the text.
26
- */
27
- textColor?: string;
28
-
29
- /**
30
- * The position where to place the children.
31
- */
32
- textPosition?: TextPosition;
33
-
34
- /**
35
- * The width and height of the loader.
36
- */
37
- size?: number | Size;
38
-
39
- /**
40
- * The rotation speed of the loader.
41
- */
42
- speed?: Speed;
43
-
44
- /**
45
- * Additional properties.
46
- */
47
- [x: string]: any;
48
- }
49
-
50
- export interface DefaultSpinnerProps {
51
- /**
52
- * To set the spinner height and width
53
- */
54
- size?: number | Size;
55
- /**
56
- * To set the rate at which the spinner moves
57
- */
58
- speed?: Speed;
59
- /**
60
- * To change the spinner color
61
- */
62
- color?: string;
63
- /**
64
- * Other props
65
- * */
66
- [x: string]: any;
67
- }
68
-
69
- export interface DottedProps {
70
- /**
71
- * To set the spinner height and width
72
- */
73
- size?: number | Size;
74
- /**
75
- * To set the rate at which the spinner moves
76
- */
77
- speed?: Speed;
78
- /**
79
- * To change the spinner color
80
- */
81
- color?: string;
82
- /**
83
- * Other properties
84
- */
85
- [x: string]: any;
86
- }
87
-
88
- export interface QuarterProps {
89
- /**
90
- * To set the spinner height and width
91
- */
92
- size?: number | Size;
93
- /**
94
- * To set the rate at which the spinner moves
95
- */
96
- speed?: Speed;
97
- /**
98
- * To change the spinner color
99
- */
100
- color?: string;
101
- /**
102
- *Other properties
103
- */
104
- [x: string]: any;
105
- }
@@ -1,25 +0,0 @@
1
- import { Size, Speed } from './Loader.type';
2
-
3
- export const DefaultEllipsisSpeeds: Record<Speed, number> = {
4
- fast: 0.4,
5
- normal: 0.6,
6
- slow: 0.8,
7
- };
8
-
9
- export const DefaultSizes: Record<Size, number> = {
10
- xs: 14,
11
- sm: 18,
12
- md: 22,
13
- lg: 26,
14
- xl: 30,
15
- '2xl': 40,
16
- '3xl': 50,
17
- '4xl': 60,
18
- '5xl': 70,
19
- '6xl': 80,
20
- };
21
- export const DefaultSpeeds: Record<Speed, number> = {
22
- fast: 50,
23
- normal: 100,
24
- slow: 300,
25
- };
@@ -1,4 +0,0 @@
1
- export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
2
- export type LoaderType = 'default' | 'dotted' | 'quarter';
3
- export type TextPosition = 'right' | 'left' | 'top' | 'bottom';
4
- export type Speed = 'fast' | 'normal' | 'slow';
@@ -1,138 +0,0 @@
1
- import React, { useEffect, useState } from 'react';
2
- import { useTheme } from 'app-studio';
3
- import { Center, View } from 'src/components';
4
-
5
- import { DefaultSpinnerProps, DottedProps, LoaderProps, QuarterProps } from '../Loader/Loader.props';
6
-
7
- import { DefaultSizes, DefaultSpeeds } from './Loader.style';
8
-
9
- const DefaultSpinner: React.FC<DefaultSpinnerProps> = ({
10
- size = 'md',
11
- speed = 'normal',
12
- color = 'theme.loading',
13
- ...props
14
- }) => {
15
- const theme = useTheme();
16
- const colorStyle = theme.getColor(color);
17
- const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
18
-
19
- const [angle, setAngle] = useState(0);
20
-
21
- useEffect(() => {
22
- const intervalId = setInterval(() => {
23
- setAngle((prevAngle) => prevAngle + 45);
24
- }, DefaultSpeeds[speed]);
25
-
26
- return () => clearInterval(intervalId);
27
- }, [speed]);
28
-
29
- return (
30
- <svg
31
- xmlns="http://www.w3.org/2000/svg"
32
- width={`${sizeStyle}px`}
33
- height={`${sizeStyle}px`}
34
- viewBox="0 0 24 24"
35
- fill="none"
36
- stroke={colorStyle}
37
- strokeWidth="2"
38
- strokeLinecap="round"
39
- strokeLinejoin="round"
40
- style={{ transform: `rotate(${angle}deg)` }}
41
- {...props}
42
- >
43
- <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
44
- <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
45
- <g id="SVGRepo_iconCarrier">
46
- <path d="M21 12a9 9 0 11-6.219-8.56"></path>
47
- </g>
48
- </svg>
49
- );
50
- };
51
-
52
- const Dotted: React.FC<DottedProps> = ({ size = 'md', speed = 'normal', color = 'theme.loading', ...props }) => {
53
- const theme = useTheme();
54
- const colorStyle = theme.getColor(color);
55
- const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
56
-
57
- const [angle, setAngle] = useState(0);
58
-
59
- useEffect(() => {
60
- const intervalId = setInterval(() => {
61
- setAngle((prevAngle) => prevAngle + 45);
62
- }, DefaultSpeeds[speed]);
63
-
64
- return () => clearInterval(intervalId);
65
- }, [speed]);
66
-
67
- return (
68
- <svg
69
- xmlns="http://www.w3.org/2000/svg"
70
- viewBox="0 0 50 50"
71
- width={`${sizeStyle}px`}
72
- height={`${sizeStyle}px`}
73
- style={{ transform: `rotate(${angle}deg)` }}
74
- {...props}
75
- >
76
- <circle cx="10" cy="25" r="4" fill={colorStyle} />
77
- <circle cx="25" cy="25" r="4" fill={colorStyle} />
78
- <circle cx="40" cy="25" r="4" fill={colorStyle} />
79
- </svg>
80
- );
81
- };
82
-
83
- const Quarter: React.FC<QuarterProps> = ({ size = 'md', speed = 'normal', color = 'theme.loading', ...props }) => {
84
- const theme = useTheme();
85
- const colorStyle = theme.getColor(color);
86
- const sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
87
-
88
- const [angle, setAngle] = useState(0);
89
-
90
- useEffect(() => {
91
- const intervalId = setInterval(() => {
92
- setAngle((prevAngle) => prevAngle + 45);
93
- }, DefaultSpeeds[speed]);
94
-
95
- return () => clearInterval(intervalId);
96
- }, [speed]);
97
-
98
- return (
99
- <svg
100
- xmlns="http://www.w3.org/2000/svg"
101
- viewBox="0 0 50 50"
102
- width={`${sizeStyle}px`}
103
- height={`${sizeStyle}px`}
104
- style={{ transform: `rotate(${angle}deg)` }}
105
- {...props}
106
- >
107
- <circle cx="25" cy="25" r="20" fill="none" stroke={colorStyle} strokeWidth="5" strokeDasharray="1,10" />
108
- </svg>
109
- );
110
- };
111
- const LoaderView: React.FC<LoaderProps> = ({
112
- size,
113
- children,
114
- textColor,
115
- loaderColor,
116
- type = 'default',
117
- speed = 'normal',
118
- textPosition = 'right',
119
- ...props
120
- }) => {
121
- const style = { size, speed, color: loaderColor };
122
-
123
- const variants = {
124
- default: <DefaultSpinner {...style} />,
125
- dotted: <Dotted {...style} />,
126
- quarter: <Quarter {...style} />,
127
- };
128
-
129
- return (
130
- <Center gap={10} flexDirection={textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'} {...props}>
131
- {(textPosition === 'left' || textPosition === 'top') && children && <View color={textColor}>{children}</View>}
132
- {variants[type]}
133
- {(textPosition === 'right' || textPosition === 'bottom') && children && <View color={textColor}>{children}</View>}
134
- </Center>
135
- );
136
- };
137
-
138
- export default LoaderView;
@@ -1,111 +0,0 @@
1
- ### Import
2
-
3
- ```tsx static
4
- import { Loading } from 'app-studio';
5
- ```
6
-
7
- ### Default
8
-
9
- ```tsx
10
- <Loading />
11
- ```
12
-
13
- ### Sizes
14
-
15
- “**_size_**” changes the the loader size. It has type “Size” with a default value of “_md_”.
16
-
17
- ```tsx
18
- import { Horizontal } from '../Layout/Horizontal/Horizontal';
19
-
20
- <Horizontal wrap="nowrap">
21
- {['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'].map((size) => (
22
- <Loading key={size} size={size} />
23
- ))}
24
- </Horizontal>;
25
- ```
26
-
27
- ### Types
28
-
29
- “**_type_**” property is used to change the default loader. It has a type "LoaderType”.
30
-
31
- ```tsx
32
- import { Horizontal } from '../Layout/Horizontal/Horizontal';
33
-
34
- <Horizontal justifyContent="space-evenly">
35
- {['default', 'quarter', 'dotted'].map((type) => (
36
- <Loading key={type} type={type} />
37
- ))}
38
- </Horizontal>;
39
- ```
40
-
41
- ### Speed
42
-
43
- “**_speed_**” makes the loader rotate faster. It has a type “[Speed”](https://www.notion.so/c8ba3ae395a0419c8e55a250b7744f69).
44
-
45
- ```tsx
46
- import { Horizontal } from '../Layout/Horizontal/Horizontal';
47
-
48
- <Horizontal justifyContent="space-evenly">
49
- {['slow', 'normal', 'fast'].map((speed) => (
50
- <Loading key={speed} speed={speed} />
51
- ))}
52
- </Horizontal>;
53
- ```
54
-
55
- ### Color
56
-
57
- “**_color_**” changes the style colour of the text and the loader.
58
-
59
- ```tsx
60
- import { Horizontal } from '../Layout/Horizontal/Horizontal';
61
-
62
- <Horizontal justifyContent="space-evenly">
63
- <Loading loaderColor="black" textColor="black">
64
- Submitting
65
- </Loading>
66
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="left">
67
- Submitting
68
- </Loading>
69
- </Horizontal>;
70
- ```
71
-
72
- ### TextPosition
73
-
74
- “**_text_**” includes a description with the loader.
75
-
76
- ```tsx
77
- import { Horizontal } from '../Layout/Horizontal/Horizontal';
78
-
79
- <Horizontal justifyContent="space-evenly">
80
- <Loading loaderColor="black" textColor="black">
81
- Submitting
82
- </Loading>
83
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="top">
84
- Submitting
85
- </Loading>
86
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="bottom">
87
- Submitting
88
- </Loading>
89
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="left">
90
- Submitting
91
- </Loading>
92
- </Horizontal>;
93
- ```
94
-
95
- ## Types
96
-
97
- ```tsx static
98
- type LoaderType = 'default' | 'quarter' | 'dotted';
99
- ```
100
-
101
- ```tsx static
102
- type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
103
- ```
104
-
105
- ```tsx static
106
- type TextPosition = 'top' | 'right' | 'bottom' | 'left';
107
- ```
108
-
109
- ```tsx static
110
- type Speed = 'fast' | 'normal' | 'slow';
111
- ```
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
-
3
- import { LoaderProps } from './Loader/Loader.props';
4
- import LoaderView from './Loader/Loader.view';
5
-
6
- const LoadingComponent: React.FC<LoaderProps> = (props) => <LoaderView {...props} />;
7
-
8
- /**
9
- * It gives the user an insight about an action being processed. It may have an undefined waiting time or display the process length.
10
- */
11
- export const Loading = LoadingComponent;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { Horizontal, Loading } from 'src/components';
3
-
4
- export const StyleLoader = () => (
5
- <Horizontal gap={15} wrap="nowrap">
6
- <Loading loaderColor="black" textColor="black">
7
- Submitting
8
- </Loading>
9
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="left">
10
- Submitting
11
- </Loading>
12
- </Horizontal>
13
- );
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { Loading } from 'src/components';
3
-
4
- export const DefaultLoader = () => <Loading />;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Loading, Vertical } from 'src/components';
3
-
4
- export const PositionLoader = () => (
5
- <Vertical gap={15}>
6
- <Loading loaderColor="black" textColor="black">
7
- Submitting
8
- </Loading>
9
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="top">
10
- Submitting
11
- </Loading>
12
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="bottom">
13
- Submitting
14
- </Loading>
15
- <Loading loaderColor="theme.primary" textColor="theme.primary" textPosition="left">
16
- Submitting
17
- </Loading>
18
- </Vertical>
19
- );
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { Loading, Vertical } from 'src/components';
3
-
4
- import { Size } from '../Loader/Loader.type';
5
-
6
- export const SizeLoader = () => (
7
- <Vertical wrap="nowrap">
8
- {['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'].map((size) => (
9
- <Loading key={size} size={size as Size} />
10
- ))}
11
- </Vertical>
12
- );
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { Horizontal, Loading } from 'src/components';
3
-
4
- import { Speed } from '../Loader/Loader.type';
5
-
6
- export const SpeedLoader = () => (
7
- <Horizontal justifyContent="space-evenly">
8
- {['slow', 'normal', 'fast'].map((speed) => (
9
- <Loading key={speed} speed={speed as Speed} />
10
- ))}
11
- </Horizontal>
12
- );
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Loading } from 'src/components';
3
-
4
- export const TextLoader = () => (
5
- <Loading textColor="theme.secondary" textPosition="left" loaderColor="theme.secondary">
6
- Loading
7
- </Loading>
8
- );
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { Horizontal, Loading } from 'src/components';
3
-
4
- import { LoaderType } from '../Loader/Loader.type';
5
-
6
- export const TypeLoader = () => (
7
- <Horizontal justifyContent="space-evenly">
8
- {['default', 'quarter', 'dotted'].map((type) => (
9
- <Loading key={type} type={type as LoaderType} />
10
- ))}
11
- </Horizontal>
12
- );
@@ -1,7 +0,0 @@
1
- export { StyleLoader } from 'src/components/Loader/examples/ColorLoader';
2
- export { DefaultLoader } from 'src/components/Loader/examples/DefaultLoader';
3
- export { PositionLoader } from 'src/components/Loader/examples/PositionLoader';
4
- export { SizeLoader } from 'src/components/Loader/examples/SizeLoader';
5
- export { SpeedLoader } from 'src/components/Loader/examples/SpeedLoader';
6
- export { TextLoader } from 'src/components/Loader/examples/TextLoader';
7
- export { TypeLoader } from 'src/components/Loader/examples/VariantLoader';
@@ -1,38 +0,0 @@
1
- import { useState } from 'react';
2
- import React from 'react';
3
- import { Button, Text } from 'src/components';
4
-
5
- import Modal from '../Modal';
6
-
7
- export const BlurModal = () => {
8
- const [show, setShow] = useState(false);
9
- return (
10
- <>
11
- <Button onClick={() => setShow(true)} isAuto>
12
- Blur Overlay
13
- </Button>
14
-
15
- {show && (
16
- <Modal.Overlay isOpen={show} onClose={() => setShow(false)} blur={10}>
17
- <Modal.Container>
18
- <Modal.Header buttonPosition="none">
19
- <Text size="lg" weight="semiBold">
20
- Title
21
- </Text>
22
- </Modal.Header>
23
- <Modal.Body>
24
- <Text isTruncated maxLines={2}>
25
- Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
26
- quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel
27
- scelerisque nisl consectetur et.
28
- </Text>
29
- </Modal.Body>
30
- <Modal.Footer>
31
- <Button onClick={() => setShow(false)}>Cancel</Button>
32
- </Modal.Footer>
33
- </Modal.Container>
34
- </Modal.Overlay>
35
- )}
36
- </>
37
- );
38
- };
@@ -1,44 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { Button, Horizontal } from 'src/components';
3
-
4
- import Modal from '../Modal';
5
-
6
- export const CloseButtonModal = () => {
7
- const [showWith, setShowWith] = useState(false);
8
- const [showWithout, setShowWithout] = useState(false);
9
-
10
- return (
11
- <>
12
- <Horizontal gap={10}>
13
- <Button onClick={() => setShowWith(true)} isAuto>
14
- With Close Button
15
- </Button>
16
- <Button onClick={() => setShowWithout(true)} isAuto>
17
- Without Close Button
18
- </Button>
19
- </Horizontal>
20
- {showWith && (
21
- <Modal.Overlay isOpen={showWith} onClose={() => setShowWith(false)}>
22
- <Modal.Container>
23
- <Modal.Header buttonPosition="left" />
24
- <Modal.Body>Cras mattis consectetur purus sit amet fermentum.</Modal.Body>
25
- <Modal.Footer>
26
- <Button onClick={() => setShowWith(false)}>Cancel</Button>
27
- </Modal.Footer>
28
- </Modal.Container>
29
- </Modal.Overlay>
30
- )}
31
- {showWithout && (
32
- <Modal.Overlay isOpen={showWithout} onClose={() => setShowWithout(false)}>
33
- <Modal.Container>
34
- <Modal.Header buttonPosition="none">Without Close Button</Modal.Header>
35
- <Modal.Body>Cras mattis consectetur purus sit amet fermentum.</Modal.Body>
36
- <Modal.Footer>
37
- <Button onClick={() => setShowWithout(false)}>Cancel</Button>
38
- </Modal.Footer>
39
- </Modal.Container>
40
- </Modal.Overlay>
41
- )}
42
- </>
43
- );
44
- };
@@ -1,38 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { Button, Text } from 'src/components';
3
-
4
- import Modal from '../Modal';
5
-
6
- export const DefaultModal = () => {
7
- const [show, setShow] = useState(false);
8
-
9
- return (
10
- <>
11
- <Button onClick={() => setShow(true)} isAuto>
12
- Blur Overlay
13
- </Button>
14
-
15
- {show && (
16
- <Modal.Overlay isOpen={show} onClose={() => setShow(false)}>
17
- <Modal.Container>
18
- <Modal.Header>
19
- <Text size="lg" weight="semiBold">
20
- Title
21
- </Text>
22
- </Modal.Header>
23
- <Modal.Body>
24
- <Text>
25
- Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
26
- quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel
27
- scelerisque nisl consectetur et.
28
- </Text>
29
- </Modal.Body>
30
- <Modal.Footer>
31
- <Button onClick={() => setShow(false)}>Cancel</Button>
32
- </Modal.Footer>
33
- </Modal.Container>
34
- </Modal.Overlay>
35
- )}
36
- </>
37
- );
38
- };