@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,32 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const ArrowDownSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg viewBox="0 -4.5 20 20" version="1.1" fill="#000000" {...props}>
14
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
15
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
16
+ <g id="SVGRepo_iconCarrier">
17
+ <title>arrow_down [#338]</title> <desc>Created with Sketch.</desc>
18
+ <defs> </defs>
19
+ <g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
20
+ <g id="Dribbble-Light-Preview" transform="translate(-220.000000, -6684.000000)" fill="#000000">
21
+ <g id="icons" transform="translate(56.000000, 160.000000)">
22
+ <path
23
+ d="M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583"
24
+ id="arrow_down-[#338]"
25
+ ></path>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </g>
30
+ </svg>
31
+ </Center>
32
+ );
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const ArrowUpSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg width={`${size}px`} height={`${size}px`} viewBox="0 -4.5 20 20" version="1.1" fill="#000000" {...props}>
14
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
15
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
16
+ <g id="SVGRepo_iconCarrier">
17
+ <title>arrow_up [#337]</title> <desc>Created with Sketch.</desc>
18
+ <defs> </defs>
19
+ <g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
20
+ <g id="Dribbble-Light-Preview" transform="translate(-260.000000, -6684.000000)" fill="#000000">
21
+ <g id="icons" transform="translate(56.000000, 160.000000)">
22
+ <path
23
+ d="M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378"
24
+ id="arrow_up-[#337]"
25
+ ></path>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </g>
30
+ </svg>
31
+ </Center>
32
+ );
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const CheckSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ viewBox="0 0 24 24"
17
+ fill="none"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ {...props}
20
+ >
21
+ <g id="SVGRepo_bgCarrier" strokeWidth="0" />
22
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round" stroke="#CCCCCC" strokeWidth="0.048" />
23
+ <g id="SVGRepo_iconCarrier">
24
+ <path d="M17.0001 9L10 16L7 13" stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
25
+ </g>
26
+ </svg>
27
+ </Center>
28
+ );
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const CloseSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ viewBox="0 0 1024 1024"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ fill="#000000"
19
+ {...props}
20
+ >
21
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
22
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
23
+ <g id="SVGRepo_iconCarrier">
24
+ <path
25
+ fill={color}
26
+ d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
27
+ ></path>
28
+ </g>
29
+ </svg>
30
+ </Center>
31
+ );
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const CloseEyeSvg: React.FC<SvgProps> = ({ size = 64, color = '#2F4858', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
14
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
15
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
16
+ <g id="SVGRepo_iconCarrier">
17
+ <path
18
+ fillRule="evenodd"
19
+ clipRule="evenodd"
20
+ d="M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z"
21
+ fill={color}
22
+ ></path>
23
+ </g>
24
+ </svg>
25
+ </Center>
26
+ );
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ [x: string]: any;
8
+ }
9
+
10
+ export const DustBinSvg: React.FC<SvgProps> = ({ size = 64, ...props }) => (
11
+ <Center width={`${size}px`} height={`${size}px`}>
12
+ <svg
13
+ fill="#ffffff"
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ version="1.1"
17
+ id="Capa_1"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ viewBox="0 0 197.516 197.516"
20
+ {...props}
21
+ >
22
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
23
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
24
+ <g id="SVGRepo_iconCarrier">
25
+ <path d="M68.758,170.083V72.649h15v97.434H68.758z M128.758,72.649h-15v97.434h15V72.649z M140.539,0v12.631h34.885v47.746h-10.525 v137.139H32.617V60.377H22.092V12.631h34.883V0H140.539z M149.898,60.377H47.617v122.139h102.281V60.377z M125.539,27.631V15H71.975 v12.631H37.092v17.585h123.332V27.631H125.539z"></path>
26
+ </g>
27
+ </svg>
28
+ </Center>
29
+ );
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const EditSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ viewBox="0 0 24 24"
17
+ fill="none"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ {...props}
20
+ >
21
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
22
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
23
+ <g id="SVGRepo_iconCarrier">
24
+ <path
25
+ d="M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"
26
+ stroke={color}
27
+ strokeWidth="2"
28
+ strokeLinecap="round"
29
+ strokeLinejoin="round"
30
+ ></path>
31
+ </g>
32
+ </svg>
33
+ </Center>
34
+ );
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const ExternalLinkSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ fill={color}
15
+ width={`${size}px`}
16
+ height={`${size}px`}
17
+ viewBox="0 0 50 50"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ stroke={color}
20
+ {...props}
21
+ >
22
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
23
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
24
+ <g id="SVGRepo_iconCarrier">
25
+ <path d="M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"></path>
26
+ <path d="M40 20h-2v-8h-8v-2h10z"></path>
27
+ <path d="M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"></path>
28
+ </g>
29
+ </svg>
30
+ </Center>
31
+ );
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const IndeterminateSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
14
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
15
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
16
+ <g id="SVGRepo_iconCarrier">
17
+ <path d="M7 12L17 12" stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"></path>{' '}
18
+ </g>
19
+ </svg>
20
+ </Center>
21
+ );
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const OpenEyeSvg: React.FC<SvgProps> = ({ size = 64, color = '#2F4858', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
14
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
15
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
16
+ <g id="SVGRepo_iconCarrier">
17
+ <path
18
+ fillRule="evenodd"
19
+ clipRule="evenodd"
20
+ d="M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z"
21
+ fill={color}
22
+ ></path>
23
+ </g>
24
+ </svg>
25
+ </Center>
26
+ );
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const ProfileSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ viewBox="0 0 20 20"
17
+ version="1.1"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ fill="#000000"
20
+ {...props}
21
+ >
22
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
23
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
24
+ <g id="SVGRepo_iconCarrier">
25
+ <title>profile_round [#1342]</title> <desc>Created with Sketch.</desc>
26
+ <defs> </defs>
27
+ <g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
28
+ <g id="Dribbble-Light-Preview" transform="translate(-140.000000, -2159.000000)" fill={color}>
29
+ <g id="icons" transform="translate(56.000000, 160.000000)">
30
+ <path
31
+ d="M100.562548,2016.99998 L87.4381713,2016.99998 C86.7317804,2016.99998 86.2101535,2016.30298 86.4765813,2015.66198 C87.7127655,2012.69798 90.6169306,2010.99998 93.9998492,2010.99998 C97.3837885,2010.99998 100.287954,2012.69798 101.524138,2015.66198 C101.790566,2016.30298 101.268939,2016.99998 100.562548,2016.99998 M89.9166645,2004.99998 C89.9166645,2002.79398 91.7489936,2000.99998 93.9998492,2000.99998 C96.2517256,2000.99998 98.0830339,2002.79398 98.0830339,2004.99998 C98.0830339,2007.20598 96.2517256,2008.99998 93.9998492,2008.99998 C91.7489936,2008.99998 89.9166645,2007.20598 89.9166645,2004.99998 M103.955674,2016.63598 C103.213556,2013.27698 100.892265,2010.79798 97.837022,2009.67298 C99.4560048,2008.39598 100.400241,2006.33098 100.053171,2004.06998 C99.6509769,2001.44698 97.4235996,1999.34798 94.7348224,1999.04198 C91.0232075,1998.61898 87.8750721,2001.44898 87.8750721,2004.99998 C87.8750721,2006.88998 88.7692896,2008.57398 90.1636971,2009.67298 C87.1074334,2010.79798 84.7871636,2013.27698 84.044024,2016.63598 C83.7745338,2017.85698 84.7789973,2018.99998 86.0539717,2018.99998 L101.945727,2018.99998 C103.221722,2018.99998 104.226185,2017.85698 103.955674,2016.63598"
32
+ id="profile_round-[#1342]"
33
+ ></path>
34
+ </g>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>
39
+ </Center>
40
+ );
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+
3
+ import { Center } from '../Layout/Center/Center';
4
+
5
+ interface SvgProps {
6
+ size?: number;
7
+ color?: string;
8
+ [x: string]: any;
9
+ }
10
+
11
+ export const RightArrowSvg: React.FC<SvgProps> = ({ size = 64, color = 'white', ...props }) => (
12
+ <Center width={`${size}px`} height={`${size}px`}>
13
+ <svg
14
+ width={`${size}px`}
15
+ height={`${size}px`}
16
+ viewBox="0 -6.5 36 36"
17
+ version="1.1"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ fill="#000000"
20
+ {...props}
21
+ >
22
+ <g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
23
+ <g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
24
+ <g id="SVGRepo_iconCarrier">
25
+ <title>right-arrow</title> <desc>Created with Sketch.</desc>
26
+ <g id="icons" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
27
+ <g
28
+ id="ui-gambling-website-lined-icnos-casinoshunter"
29
+ transform="translate(-212.000000, -159.000000)"
30
+ fill={color}
31
+ fillRule="nonzero"
32
+ >
33
+ <g id="square-filled" transform="translate(50.000000, 120.000000)">
34
+ <path
35
+ d="M187.108012,39.2902857 L197.649804,49.7417043 L197.708994,49.7959169 C197.889141,49.9745543 197.986143,50.2044182 198,50.4382227 L198,50.5617773 C197.986143,50.7955818 197.889141,51.0254457 197.708994,51.2040831 L197.6571,51.2479803 L187.108012,61.7097143 C186.717694,62.0967619 186.084865,62.0967619 185.694547,61.7097143 C185.30423,61.3226668 185.30423,60.6951387 185.694547,60.3080911 L194.702666,51.3738496 L162.99947,51.3746291 C162.447478,51.3746291 162,50.9308997 162,50.3835318 C162,49.8361639 162.447478,49.3924345 162.99947,49.3924345 L194.46779,49.3916551 L185.694547,40.6919089 C185.30423,40.3048613 185.30423,39.6773332 185.694547,39.2902857 C186.084865,38.9032381 186.717694,38.9032381 187.108012,39.2902857 Z M197.115357,50.382693 L186.401279,61.0089027 L197.002151,50.5002046 L197.002252,50.4963719 L196.943142,50.442585 L196.882737,50.382693 L197.115357,50.382693 Z"
36
+ id="right-arrow"
37
+ ></path>
38
+ </g>
39
+ </g>
40
+ </g>
41
+ </g>
42
+ </svg>
43
+ </Center>
44
+ );
@@ -0,0 +1,12 @@
1
+ export * from './ArrowDown';
2
+ export * from './ArrowUp';
3
+ export * from './Check';
4
+ export * from './Close';
5
+ export * from './CloseEye';
6
+ export * from './DustBin';
7
+ export * from './Edit';
8
+ export * from './ExternalLink';
9
+ export * from './Indeterminate';
10
+ export * from './OpenEye';
11
+ export * from './Profile';
12
+ export * from './RightArrow';
@@ -0,0 +1,84 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { TextProps as TextAppProps } from 'app-studio';
3
+
4
+ import { Headings, Size, TextWeights } from './Text.type';
5
+
6
+ export interface TextProps extends Omit<TextAppProps, 'children' | 'style' | 'pointerEvents'>, CSSProperties {
7
+ /**
8
+ * The content of the text.
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Specifies the HTML heading tag to use.
13
+ */
14
+ heading?: Headings;
15
+ /**
16
+ * Determines whether the text should be displayed in italic style.
17
+ */
18
+ isItalic?: boolean;
19
+ /**
20
+ * Indicates that the text is no longer valid by applying a strikethrough style.
21
+ */
22
+ isStriked?: boolean;
23
+ /**
24
+ * Adds an underline to the text.
25
+ */
26
+ isUnderlined?: boolean;
27
+ /**
28
+ * Truncates the text and adds an ellipsis at the end if it exceeds the available space.
29
+ */
30
+ isTruncated?: boolean;
31
+ /**
32
+ * Displays the text slightly below the baseline of the surrounding text.
33
+ */
34
+ isSub?: boolean;
35
+ /**
36
+ * Displays the text slightly above the surrounding text.
37
+ */
38
+ isSup?: boolean;
39
+ /**
40
+ * The maximum number of lines to display when using text truncation.
41
+ */
42
+ maxLines?: number;
43
+ /**
44
+ * Adjusts the size of the text. Can be a predefined size or a custom number.
45
+ */
46
+ size?: Size;
47
+ /**
48
+ * Specifies the font weight of the text.
49
+ */
50
+ weight?: TextWeights;
51
+ /**
52
+ * Additional properties for customization and extension.
53
+ */
54
+ [x: string]: any;
55
+ }
56
+
57
+ export interface ContentProps {
58
+ /**
59
+ * The content to be rendered within the component.
60
+ */
61
+ children: React.ReactNode | string;
62
+
63
+ /**
64
+ * Optional prop indicating if the content should be displayed as a subtext.
65
+ */
66
+ isSub?: boolean;
67
+
68
+ /**
69
+ * Optional prop indicating if the content should be displayed as a supertext.
70
+ */
71
+ isSup?: boolean;
72
+ }
73
+
74
+ export interface TruncateTextProps {
75
+ /**
76
+ * The text to be truncated.
77
+ */
78
+ text: string;
79
+
80
+ /**
81
+ * The maximum number of lines to display before truncating the text.
82
+ */
83
+ maxLines?: number;
84
+ }
@@ -0,0 +1,34 @@
1
+ import { Headings } from './Text.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
+ };
@@ -0,0 +1,14 @@
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 Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
13
+
14
+ export type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -0,0 +1,96 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ import { Element,Typography } from 'app-studio';
3
+
4
+ import { ContentProps, TextProps, TruncateTextProps } from './Text.props';
5
+ import { HeadingSizes } from './Text.style';
6
+
7
+ const TextContent: React.FC<ContentProps> = ({ children, isSub, isSup }) => (
8
+ <>
9
+ {typeof children === 'string' ? (
10
+ <>
11
+ {isSub && <sup>{children}</sup>}
12
+ {isSup && <sup>{children}</sup>}
13
+ {!isSub && !isSup && <>{children}</>}
14
+ </>
15
+ ) : (
16
+ children
17
+ )}
18
+ </>
19
+ );
20
+
21
+ const TruncateText: React.FC<TruncateTextProps> = ({ text, maxLines = 1 }) => {
22
+ const containerRef = useRef<HTMLDivElement>(null);
23
+ const [content, setContent] = useState(text);
24
+
25
+ useEffect(() => {
26
+ let textContent = content;
27
+ const textNode = containerRef.current;
28
+
29
+ if (textNode) {
30
+ const contentHeight = textNode.offsetHeight;
31
+
32
+ const comLineHeight = getComputedStyle(textNode).lineHeight;
33
+
34
+ const lineHeight: number = comLineHeight !== 'normal' ? parseFloat(comLineHeight) : 20;
35
+
36
+ const maxHeight = Math.ceil(lineHeight * maxLines);
37
+
38
+ if (contentHeight > maxHeight) {
39
+ textContent = textContent.slice(0, -1);
40
+ } else if (contentHeight === maxHeight) {
41
+ if (content.length !== text.length) {
42
+ textContent = textContent.slice(0, -3) + '...';
43
+ }
44
+ }
45
+
46
+ setContent(textContent);
47
+ }
48
+ }, [maxLines, text, containerRef, content]);
49
+
50
+ return <div ref={containerRef}>{content}</div>;
51
+ };
52
+
53
+ const TextView: React.FC<TextProps> = ({
54
+ children,
55
+ heading,
56
+ maxLines,
57
+ isItalic = false,
58
+ isUnderlined = false,
59
+ isSub = false,
60
+ isSup = false,
61
+ isStriked = false,
62
+ isTruncated = false,
63
+ weight = 'normal',
64
+ size = 'md',
65
+ ...props
66
+ }) => {
67
+ const headingStyles = heading ? HeadingSizes[heading] : {};
68
+
69
+ const noLineBreak = isSub || isSup ? { display: 'inline' } : {};
70
+
71
+ const fontSize = Typography.fontSizes[size];
72
+
73
+ return (
74
+ <Element
75
+ role="text"
76
+ fontSize={fontSize}
77
+ lineHeight={Typography.lineHeights[size]}
78
+ fontStyle={isItalic ? 'italic' : 'normal'}
79
+ fontWeight={Typography.fontWeights[weight]}
80
+ textDecoration={isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'}
81
+ {...noLineBreak}
82
+ {...headingStyles}
83
+ {...props}
84
+ >
85
+ {isTruncated && maxLines && typeof children === 'string' ? (
86
+ <TruncateText text={children} maxLines={maxLines} />
87
+ ) : (
88
+ <TextContent isSub={isSub} isSup={isSup} {...props}>
89
+ {children}
90
+ </TextContent>
91
+ )}
92
+ </Element>
93
+ );
94
+ };
95
+
96
+ export default TextView;