@kivid/native-components 1.0.0-alpha.1

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 (498) hide show
  1. package/README.md +57 -0
  2. package/assets/adaptive-icon.png +0 -0
  3. package/assets/favicon.png +0 -0
  4. package/assets/fonts/Nunito-Bold.ttf +0 -0
  5. package/assets/fonts/Nunito-BoldItalic.ttf +0 -0
  6. package/assets/fonts/Nunito-Italic.ttf +0 -0
  7. package/assets/fonts/Nunito-Medium.ttf +0 -0
  8. package/assets/fonts/Nunito-MediumItalic.ttf +0 -0
  9. package/assets/fonts/Nunito-Regular.ttf +0 -0
  10. package/assets/fonts/Nunito-SemiBold.ttf +0 -0
  11. package/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
  12. package/assets/icon.png +0 -0
  13. package/assets/splash.png +0 -0
  14. package/dist/README.md +57 -0
  15. package/dist/commonjs/components/Button/assets/class-variants.js +91 -0
  16. package/dist/commonjs/components/Button/assets/class-variants.js.map +1 -0
  17. package/dist/commonjs/components/Button/assets/design-system-showcase.js +1455 -0
  18. package/dist/commonjs/components/Button/assets/design-system-showcase.js.map +1 -0
  19. package/dist/commonjs/components/Button/index.js +116 -0
  20. package/dist/commonjs/components/Button/index.js.map +1 -0
  21. package/dist/commonjs/components/Button/types.js +6 -0
  22. package/dist/commonjs/components/Button/types.js.map +1 -0
  23. package/dist/commonjs/components/Chip/assets/class-variants.js +63 -0
  24. package/dist/commonjs/components/Chip/assets/class-variants.js.map +1 -0
  25. package/dist/commonjs/components/Chip/enums/chip-size.js +12 -0
  26. package/dist/commonjs/components/Chip/enums/chip-size.js.map +1 -0
  27. package/dist/commonjs/components/Chip/enums/chip-variant.js +13 -0
  28. package/dist/commonjs/components/Chip/enums/chip-variant.js.map +1 -0
  29. package/dist/commonjs/components/Chip/enums/index.js +28 -0
  30. package/dist/commonjs/components/Chip/enums/index.js.map +1 -0
  31. package/dist/commonjs/components/Chip/index.js +38 -0
  32. package/dist/commonjs/components/Chip/index.js.map +1 -0
  33. package/dist/commonjs/components/Chip/types.js +6 -0
  34. package/dist/commonjs/components/Chip/types.js.map +1 -0
  35. package/dist/commonjs/components/HighlightedText/index.js +46 -0
  36. package/dist/commonjs/components/HighlightedText/index.js.map +1 -0
  37. package/dist/commonjs/components/HighlightedText/types.js +6 -0
  38. package/dist/commonjs/components/HighlightedText/types.js.map +1 -0
  39. package/dist/commonjs/components/InformationStatus/components/GradientAdd/index.js +74 -0
  40. package/dist/commonjs/components/InformationStatus/components/GradientAdd/index.js.map +1 -0
  41. package/dist/commonjs/components/InformationStatus/components/GradientAdd/types.js +6 -0
  42. package/dist/commonjs/components/InformationStatus/components/GradientAdd/types.js.map +1 -0
  43. package/dist/commonjs/components/InformationStatus/components/GradientAlert/index.js +79 -0
  44. package/dist/commonjs/components/InformationStatus/components/GradientAlert/index.js.map +1 -0
  45. package/dist/commonjs/components/InformationStatus/components/GradientAlert/types.js +6 -0
  46. package/dist/commonjs/components/InformationStatus/components/GradientAlert/types.js.map +1 -0
  47. package/dist/commonjs/components/InformationStatus/components/GradientCheck/index.js +74 -0
  48. package/dist/commonjs/components/InformationStatus/components/GradientCheck/index.js.map +1 -0
  49. package/dist/commonjs/components/InformationStatus/components/GradientCheck/types.js +6 -0
  50. package/dist/commonjs/components/InformationStatus/components/GradientCheck/types.js.map +1 -0
  51. package/dist/commonjs/components/InformationStatus/components/GradientClose/index.js +72 -0
  52. package/dist/commonjs/components/InformationStatus/components/GradientClose/index.js.map +1 -0
  53. package/dist/commonjs/components/InformationStatus/components/GradientClose/types.js +6 -0
  54. package/dist/commonjs/components/InformationStatus/components/GradientClose/types.js.map +1 -0
  55. package/dist/commonjs/components/InformationStatus/components/index.js +50 -0
  56. package/dist/commonjs/components/InformationStatus/components/index.js.map +1 -0
  57. package/dist/commonjs/components/InformationStatus/enums.js +14 -0
  58. package/dist/commonjs/components/InformationStatus/enums.js.map +1 -0
  59. package/dist/commonjs/components/InformationStatus/index.js +75 -0
  60. package/dist/commonjs/components/InformationStatus/index.js.map +1 -0
  61. package/dist/commonjs/components/InformationStatus/types.js +6 -0
  62. package/dist/commonjs/components/InformationStatus/types.js.map +1 -0
  63. package/dist/commonjs/components/InputCheckbox/assets/class-variants.js +64 -0
  64. package/dist/commonjs/components/InputCheckbox/assets/class-variants.js.map +1 -0
  65. package/dist/commonjs/components/InputCheckbox/enums/checkbox-variant.js +17 -0
  66. package/dist/commonjs/components/InputCheckbox/enums/checkbox-variant.js.map +1 -0
  67. package/dist/commonjs/components/InputCheckbox/enums/index.js +28 -0
  68. package/dist/commonjs/components/InputCheckbox/enums/index.js.map +1 -0
  69. package/dist/commonjs/components/InputCheckbox/enums/select-variant.js +12 -0
  70. package/dist/commonjs/components/InputCheckbox/enums/select-variant.js.map +1 -0
  71. package/dist/commonjs/components/InputCheckbox/icons/CheckIcon/index.js +28 -0
  72. package/dist/commonjs/components/InputCheckbox/icons/CheckIcon/index.js.map +1 -0
  73. package/dist/commonjs/components/InputCheckbox/icons/IndeterminateIcon/index.js +28 -0
  74. package/dist/commonjs/components/InputCheckbox/icons/IndeterminateIcon/index.js.map +1 -0
  75. package/dist/commonjs/components/InputCheckbox/icons/index.js +20 -0
  76. package/dist/commonjs/components/InputCheckbox/icons/index.js.map +1 -0
  77. package/dist/commonjs/components/InputCheckbox/index.js +53 -0
  78. package/dist/commonjs/components/InputCheckbox/index.js.map +1 -0
  79. package/dist/commonjs/components/InputCheckbox/types.js +6 -0
  80. package/dist/commonjs/components/InputCheckbox/types.js.map +1 -0
  81. package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js +93 -0
  82. package/dist/commonjs/components/InputOTP/components/InformationStatus/index.js.map +1 -0
  83. package/dist/commonjs/components/InputOTP/components/InformationStatus/types.js +6 -0
  84. package/dist/commonjs/components/InputOTP/components/InformationStatus/types.js.map +1 -0
  85. package/dist/commonjs/components/InputOTP/components/index.js +17 -0
  86. package/dist/commonjs/components/InputOTP/components/index.js.map +1 -0
  87. package/dist/commonjs/components/InputOTP/enums/index.js +17 -0
  88. package/dist/commonjs/components/InputOTP/enums/index.js.map +1 -0
  89. package/dist/commonjs/components/InputOTP/enums/information-status.js +15 -0
  90. package/dist/commonjs/components/InputOTP/enums/information-status.js.map +1 -0
  91. package/dist/commonjs/components/InputOTP/index.js +135 -0
  92. package/dist/commonjs/components/InputOTP/index.js.map +1 -0
  93. package/dist/commonjs/components/InputOTP/types.js +6 -0
  94. package/dist/commonjs/components/InputOTP/types.js.map +1 -0
  95. package/dist/commonjs/components/LoadingDots/assets/loading-button-dark.json +1 -0
  96. package/dist/commonjs/components/LoadingDots/assets/loading-button-grape.json +1 -0
  97. package/dist/commonjs/components/LoadingDots/assets/loading-button-light.json +1 -0
  98. package/dist/commonjs/components/LoadingDots/index.js +45 -0
  99. package/dist/commonjs/components/LoadingDots/index.js.map +1 -0
  100. package/dist/commonjs/components/LoadingDots/types.js +6 -0
  101. package/dist/commonjs/components/LoadingDots/types.js.map +1 -0
  102. package/dist/commonjs/components/Seal/assets/class-variants.js +64 -0
  103. package/dist/commonjs/components/Seal/assets/class-variants.js.map +1 -0
  104. package/dist/commonjs/components/Seal/components/AddIcon/index.js +32 -0
  105. package/dist/commonjs/components/Seal/components/AddIcon/index.js.map +1 -0
  106. package/dist/commonjs/components/Seal/components/AlertIcon/index.js +32 -0
  107. package/dist/commonjs/components/Seal/components/AlertIcon/index.js.map +1 -0
  108. package/dist/commonjs/components/Seal/components/ErrorIcon/index.js +32 -0
  109. package/dist/commonjs/components/Seal/components/ErrorIcon/index.js.map +1 -0
  110. package/dist/commonjs/components/Seal/components/LeftIcon/index.js +32 -0
  111. package/dist/commonjs/components/Seal/components/LeftIcon/index.js.map +1 -0
  112. package/dist/commonjs/components/Seal/components/MinusIcon/index.js +30 -0
  113. package/dist/commonjs/components/Seal/components/MinusIcon/index.js.map +1 -0
  114. package/dist/commonjs/components/Seal/components/RightIcon/index.js +32 -0
  115. package/dist/commonjs/components/Seal/components/RightIcon/index.js.map +1 -0
  116. package/dist/commonjs/components/Seal/components/SuccessIcon/index.js +32 -0
  117. package/dist/commonjs/components/Seal/components/SuccessIcon/index.js.map +1 -0
  118. package/dist/commonjs/components/Seal/components/index.js +55 -0
  119. package/dist/commonjs/components/Seal/components/index.js.map +1 -0
  120. package/dist/commonjs/components/Seal/enums/index.js +17 -0
  121. package/dist/commonjs/components/Seal/enums/index.js.map +1 -0
  122. package/dist/commonjs/components/Seal/enums/seal-variant.js +17 -0
  123. package/dist/commonjs/components/Seal/enums/seal-variant.js.map +1 -0
  124. package/dist/commonjs/components/Seal/index.js +52 -0
  125. package/dist/commonjs/components/Seal/index.js.map +1 -0
  126. package/dist/commonjs/components/Seal/types.js +6 -0
  127. package/dist/commonjs/components/Seal/types.js.map +1 -0
  128. package/dist/commonjs/components/Title/components/icon/index.js +49 -0
  129. package/dist/commonjs/components/Title/components/icon/index.js.map +1 -0
  130. package/dist/commonjs/components/Title/components/icon/types.js +15 -0
  131. package/dist/commonjs/components/Title/components/icon/types.js.map +1 -0
  132. package/dist/commonjs/components/Title/components/index.js +28 -0
  133. package/dist/commonjs/components/Title/components/index.js.map +1 -0
  134. package/dist/commonjs/components/Title/components/marker/index.js +33 -0
  135. package/dist/commonjs/components/Title/components/marker/index.js.map +1 -0
  136. package/dist/commonjs/components/Title/components/marker/types.js +2 -0
  137. package/dist/commonjs/components/Title/components/marker/types.js.map +1 -0
  138. package/dist/commonjs/components/Title/index.js +44 -0
  139. package/dist/commonjs/components/Title/index.js.map +1 -0
  140. package/dist/commonjs/components/Title/types.js +6 -0
  141. package/dist/commonjs/components/Title/types.js.map +1 -0
  142. package/dist/commonjs/components/Toggle/assets/class-variants.js +37 -0
  143. package/dist/commonjs/components/Toggle/assets/class-variants.js.map +1 -0
  144. package/dist/commonjs/components/Toggle/enums/index.js +17 -0
  145. package/dist/commonjs/components/Toggle/enums/index.js.map +1 -0
  146. package/dist/commonjs/components/Toggle/enums/variant.js +15 -0
  147. package/dist/commonjs/components/Toggle/enums/variant.js.map +1 -0
  148. package/dist/commonjs/components/Toggle/index.js +41 -0
  149. package/dist/commonjs/components/Toggle/index.js.map +1 -0
  150. package/dist/commonjs/components/Toggle/types.js +6 -0
  151. package/dist/commonjs/components/Toggle/types.js.map +1 -0
  152. package/dist/commonjs/components/Typography/index.js +52 -0
  153. package/dist/commonjs/components/Typography/index.js.map +1 -0
  154. package/dist/commonjs/components/Typography/types.js +6 -0
  155. package/dist/commonjs/components/Typography/types.js.map +1 -0
  156. package/dist/commonjs/components/index.js +127 -0
  157. package/dist/commonjs/components/index.js.map +1 -0
  158. package/dist/commonjs/hooks/index.js +17 -0
  159. package/dist/commonjs/hooks/index.js.map +1 -0
  160. package/dist/commonjs/hooks/use-fonts.js +31 -0
  161. package/dist/commonjs/hooks/use-fonts.js.map +1 -0
  162. package/dist/commonjs/iconography/Icons/index.js +97 -0
  163. package/dist/commonjs/iconography/Icons/index.js.map +1 -0
  164. package/dist/commonjs/iconography/Icons/types.js +6 -0
  165. package/dist/commonjs/iconography/Icons/types.js.map +1 -0
  166. package/dist/commonjs/index.js +17 -0
  167. package/dist/commonjs/index.js.map +1 -0
  168. package/dist/commonjs/nativewind-env.d.js +3 -0
  169. package/dist/commonjs/nativewind-env.d.js.map +1 -0
  170. package/dist/commonjs/package.json +1 -0
  171. package/dist/commonjs/welcome.mdx +3 -0
  172. package/dist/module/components/Button/assets/class-variants.js +88 -0
  173. package/dist/module/components/Button/assets/class-variants.js.map +1 -0
  174. package/dist/module/components/Button/assets/design-system-showcase.js +1451 -0
  175. package/dist/module/components/Button/assets/design-system-showcase.js.map +1 -0
  176. package/dist/module/components/Button/index.js +110 -0
  177. package/dist/module/components/Button/index.js.map +1 -0
  178. package/dist/module/components/Button/types.js +4 -0
  179. package/dist/module/components/Button/types.js.map +1 -0
  180. package/dist/module/components/Chip/assets/class-variants.js +59 -0
  181. package/dist/module/components/Chip/assets/class-variants.js.map +1 -0
  182. package/dist/module/components/Chip/enums/chip-size.js +8 -0
  183. package/dist/module/components/Chip/enums/chip-size.js.map +1 -0
  184. package/dist/module/components/Chip/enums/chip-variant.js +9 -0
  185. package/dist/module/components/Chip/enums/chip-variant.js.map +1 -0
  186. package/dist/module/components/Chip/enums/index.js +5 -0
  187. package/dist/module/components/Chip/enums/index.js.map +1 -0
  188. package/dist/module/components/Chip/index.js +34 -0
  189. package/dist/module/components/Chip/index.js.map +1 -0
  190. package/dist/module/components/Chip/types.js +4 -0
  191. package/dist/module/components/Chip/types.js.map +1 -0
  192. package/dist/module/components/HighlightedText/index.js +41 -0
  193. package/dist/module/components/HighlightedText/index.js.map +1 -0
  194. package/dist/module/components/HighlightedText/types.js +4 -0
  195. package/dist/module/components/HighlightedText/types.js.map +1 -0
  196. package/dist/module/components/InformationStatus/components/GradientAdd/index.js +69 -0
  197. package/dist/module/components/InformationStatus/components/GradientAdd/index.js.map +1 -0
  198. package/dist/module/components/InformationStatus/components/GradientAdd/types.js +4 -0
  199. package/dist/module/components/InformationStatus/components/GradientAdd/types.js.map +1 -0
  200. package/dist/module/components/InformationStatus/components/GradientAlert/index.js +74 -0
  201. package/dist/module/components/InformationStatus/components/GradientAlert/index.js.map +1 -0
  202. package/dist/module/components/InformationStatus/components/GradientAlert/types.js +4 -0
  203. package/dist/module/components/InformationStatus/components/GradientAlert/types.js.map +1 -0
  204. package/dist/module/components/InformationStatus/components/GradientCheck/index.js +69 -0
  205. package/dist/module/components/InformationStatus/components/GradientCheck/index.js.map +1 -0
  206. package/dist/module/components/InformationStatus/components/GradientCheck/types.js +4 -0
  207. package/dist/module/components/InformationStatus/components/GradientCheck/types.js.map +1 -0
  208. package/dist/module/components/InformationStatus/components/GradientClose/index.js +67 -0
  209. package/dist/module/components/InformationStatus/components/GradientClose/index.js.map +1 -0
  210. package/dist/module/components/InformationStatus/components/GradientClose/types.js +4 -0
  211. package/dist/module/components/InformationStatus/components/GradientClose/types.js.map +1 -0
  212. package/dist/module/components/InformationStatus/components/index.js +7 -0
  213. package/dist/module/components/InformationStatus/components/index.js.map +1 -0
  214. package/dist/module/components/InformationStatus/enums.js +10 -0
  215. package/dist/module/components/InformationStatus/enums.js.map +1 -0
  216. package/dist/module/components/InformationStatus/index.js +71 -0
  217. package/dist/module/components/InformationStatus/index.js.map +1 -0
  218. package/dist/module/components/InformationStatus/types.js +4 -0
  219. package/dist/module/components/InformationStatus/types.js.map +1 -0
  220. package/dist/module/components/InputCheckbox/assets/class-variants.js +60 -0
  221. package/dist/module/components/InputCheckbox/assets/class-variants.js.map +1 -0
  222. package/dist/module/components/InputCheckbox/enums/checkbox-variant.js +13 -0
  223. package/dist/module/components/InputCheckbox/enums/checkbox-variant.js.map +1 -0
  224. package/dist/module/components/InputCheckbox/enums/index.js +5 -0
  225. package/dist/module/components/InputCheckbox/enums/index.js.map +1 -0
  226. package/dist/module/components/InputCheckbox/enums/select-variant.js +8 -0
  227. package/dist/module/components/InputCheckbox/enums/select-variant.js.map +1 -0
  228. package/dist/module/components/InputCheckbox/icons/CheckIcon/index.js +22 -0
  229. package/dist/module/components/InputCheckbox/icons/CheckIcon/index.js.map +1 -0
  230. package/dist/module/components/InputCheckbox/icons/IndeterminateIcon/index.js +22 -0
  231. package/dist/module/components/InputCheckbox/icons/IndeterminateIcon/index.js.map +1 -0
  232. package/dist/module/components/InputCheckbox/icons/index.js +5 -0
  233. package/dist/module/components/InputCheckbox/icons/index.js.map +1 -0
  234. package/dist/module/components/InputCheckbox/index.js +49 -0
  235. package/dist/module/components/InputCheckbox/index.js.map +1 -0
  236. package/dist/module/components/InputCheckbox/types.js +4 -0
  237. package/dist/module/components/InputCheckbox/types.js.map +1 -0
  238. package/dist/module/components/InputOTP/components/InformationStatus/index.js +87 -0
  239. package/dist/module/components/InputOTP/components/InformationStatus/index.js.map +1 -0
  240. package/dist/module/components/InputOTP/components/InformationStatus/types.js +4 -0
  241. package/dist/module/components/InputOTP/components/InformationStatus/types.js.map +1 -0
  242. package/dist/module/components/InputOTP/components/index.js +4 -0
  243. package/dist/module/components/InputOTP/components/index.js.map +1 -0
  244. package/dist/module/components/InputOTP/enums/index.js +4 -0
  245. package/dist/module/components/InputOTP/enums/index.js.map +1 -0
  246. package/dist/module/components/InputOTP/enums/information-status.js +11 -0
  247. package/dist/module/components/InputOTP/enums/information-status.js.map +1 -0
  248. package/dist/module/components/InputOTP/index.js +130 -0
  249. package/dist/module/components/InputOTP/index.js.map +1 -0
  250. package/dist/module/components/InputOTP/types.js +4 -0
  251. package/dist/module/components/InputOTP/types.js.map +1 -0
  252. package/dist/module/components/LoadingDots/assets/loading-button-dark.json +1 -0
  253. package/dist/module/components/LoadingDots/assets/loading-button-grape.json +1 -0
  254. package/dist/module/components/LoadingDots/assets/loading-button-light.json +1 -0
  255. package/dist/module/components/LoadingDots/index.js +39 -0
  256. package/dist/module/components/LoadingDots/index.js.map +1 -0
  257. package/dist/module/components/LoadingDots/types.js +4 -0
  258. package/dist/module/components/LoadingDots/types.js.map +1 -0
  259. package/dist/module/components/Seal/assets/class-variants.js +60 -0
  260. package/dist/module/components/Seal/assets/class-variants.js.map +1 -0
  261. package/dist/module/components/Seal/components/AddIcon/index.js +27 -0
  262. package/dist/module/components/Seal/components/AddIcon/index.js.map +1 -0
  263. package/dist/module/components/Seal/components/AlertIcon/index.js +27 -0
  264. package/dist/module/components/Seal/components/AlertIcon/index.js.map +1 -0
  265. package/dist/module/components/Seal/components/ErrorIcon/index.js +27 -0
  266. package/dist/module/components/Seal/components/ErrorIcon/index.js.map +1 -0
  267. package/dist/module/components/Seal/components/LeftIcon/index.js +27 -0
  268. package/dist/module/components/Seal/components/LeftIcon/index.js.map +1 -0
  269. package/dist/module/components/Seal/components/MinusIcon/index.js +25 -0
  270. package/dist/module/components/Seal/components/MinusIcon/index.js.map +1 -0
  271. package/dist/module/components/Seal/components/RightIcon/index.js +27 -0
  272. package/dist/module/components/Seal/components/RightIcon/index.js.map +1 -0
  273. package/dist/module/components/Seal/components/SuccessIcon/index.js +27 -0
  274. package/dist/module/components/Seal/components/SuccessIcon/index.js.map +1 -0
  275. package/dist/module/components/Seal/components/index.js +10 -0
  276. package/dist/module/components/Seal/components/index.js.map +1 -0
  277. package/dist/module/components/Seal/enums/index.js +4 -0
  278. package/dist/module/components/Seal/enums/index.js.map +1 -0
  279. package/dist/module/components/Seal/enums/seal-variant.js +13 -0
  280. package/dist/module/components/Seal/enums/seal-variant.js.map +1 -0
  281. package/dist/module/components/Seal/index.js +46 -0
  282. package/dist/module/components/Seal/index.js.map +1 -0
  283. package/dist/module/components/Seal/types.js +4 -0
  284. package/dist/module/components/Seal/types.js.map +1 -0
  285. package/dist/module/components/Title/components/icon/index.js +45 -0
  286. package/dist/module/components/Title/components/icon/index.js.map +1 -0
  287. package/dist/module/components/Title/components/icon/types.js +11 -0
  288. package/dist/module/components/Title/components/icon/types.js.map +1 -0
  289. package/dist/module/components/Title/components/index.js +5 -0
  290. package/dist/module/components/Title/components/index.js.map +1 -0
  291. package/dist/module/components/Title/components/marker/index.js +29 -0
  292. package/dist/module/components/Title/components/marker/index.js.map +1 -0
  293. package/dist/module/components/Title/components/marker/types.js +2 -0
  294. package/dist/module/components/Title/components/marker/types.js.map +1 -0
  295. package/dist/module/components/Title/index.js +41 -0
  296. package/dist/module/components/Title/index.js.map +1 -0
  297. package/dist/module/components/Title/types.js +4 -0
  298. package/dist/module/components/Title/types.js.map +1 -0
  299. package/dist/module/components/Toggle/assets/class-variants.js +34 -0
  300. package/dist/module/components/Toggle/assets/class-variants.js.map +1 -0
  301. package/dist/module/components/Toggle/enums/index.js +4 -0
  302. package/dist/module/components/Toggle/enums/index.js.map +1 -0
  303. package/dist/module/components/Toggle/enums/variant.js +11 -0
  304. package/dist/module/components/Toggle/enums/variant.js.map +1 -0
  305. package/dist/module/components/Toggle/index.js +37 -0
  306. package/dist/module/components/Toggle/index.js.map +1 -0
  307. package/dist/module/components/Toggle/types.js +4 -0
  308. package/dist/module/components/Toggle/types.js.map +1 -0
  309. package/dist/module/components/Typography/index.js +47 -0
  310. package/dist/module/components/Typography/index.js.map +1 -0
  311. package/dist/module/components/Typography/types.js +4 -0
  312. package/dist/module/components/Typography/types.js.map +1 -0
  313. package/dist/module/components/index.js +14 -0
  314. package/dist/module/components/index.js.map +1 -0
  315. package/dist/module/hooks/index.js +4 -0
  316. package/dist/module/hooks/index.js.map +1 -0
  317. package/dist/module/hooks/use-fonts.js +27 -0
  318. package/dist/module/hooks/use-fonts.js.map +1 -0
  319. package/dist/module/iconography/Icons/index.js +92 -0
  320. package/dist/module/iconography/Icons/index.js.map +1 -0
  321. package/dist/module/iconography/Icons/types.js +4 -0
  322. package/dist/module/iconography/Icons/types.js.map +1 -0
  323. package/dist/module/index.js +4 -0
  324. package/dist/module/index.js.map +1 -0
  325. package/dist/module/nativewind-env.d.js +3 -0
  326. package/dist/module/nativewind-env.d.js.map +1 -0
  327. package/dist/module/package.json +1 -0
  328. package/dist/module/welcome.mdx +3 -0
  329. package/dist/package.json +57 -0
  330. package/dist/typescript/components/Button/assets/class-variants.d.ts +16 -0
  331. package/dist/typescript/components/Button/assets/design-system-showcase.d.ts +1448 -0
  332. package/dist/typescript/components/Button/index.d.ts +6 -0
  333. package/dist/typescript/components/Button/types.d.ts +16 -0
  334. package/dist/typescript/components/Chip/assets/class-variants.d.ts +5 -0
  335. package/dist/typescript/components/Chip/enums/chip-size.d.ts +4 -0
  336. package/dist/typescript/components/Chip/enums/chip-variant.d.ts +5 -0
  337. package/dist/typescript/components/Chip/enums/index.d.ts +2 -0
  338. package/dist/typescript/components/Chip/index.d.ts +2 -0
  339. package/dist/typescript/components/Chip/types.d.ts +11 -0
  340. package/dist/typescript/components/HighlightedText/index.d.ts +6 -0
  341. package/dist/typescript/components/HighlightedText/types.d.ts +9 -0
  342. package/dist/typescript/components/InformationStatus/components/GradientAdd/index.d.ts +3 -0
  343. package/dist/typescript/components/InformationStatus/components/GradientAdd/types.d.ts +5 -0
  344. package/dist/typescript/components/InformationStatus/components/GradientAlert/index.d.ts +3 -0
  345. package/dist/typescript/components/InformationStatus/components/GradientAlert/types.d.ts +5 -0
  346. package/dist/typescript/components/InformationStatus/components/GradientCheck/index.d.ts +3 -0
  347. package/dist/typescript/components/InformationStatus/components/GradientCheck/types.d.ts +5 -0
  348. package/dist/typescript/components/InformationStatus/components/GradientClose/index.d.ts +3 -0
  349. package/dist/typescript/components/InformationStatus/components/GradientClose/types.d.ts +5 -0
  350. package/dist/typescript/components/InformationStatus/components/index.d.ts +4 -0
  351. package/dist/typescript/components/InformationStatus/enums.d.ts +6 -0
  352. package/dist/typescript/components/InformationStatus/index.d.ts +2 -0
  353. package/dist/typescript/components/InformationStatus/types.d.ts +14 -0
  354. package/dist/typescript/components/InputCheckbox/assets/class-variants.d.ts +6 -0
  355. package/dist/typescript/components/InputCheckbox/enums/checkbox-variant.d.ts +9 -0
  356. package/dist/typescript/components/InputCheckbox/enums/index.d.ts +2 -0
  357. package/dist/typescript/components/InputCheckbox/enums/select-variant.d.ts +4 -0
  358. package/dist/typescript/components/InputCheckbox/icons/CheckIcon/index.d.ts +2 -0
  359. package/dist/typescript/components/InputCheckbox/icons/IndeterminateIcon/index.d.ts +2 -0
  360. package/dist/typescript/components/InputCheckbox/icons/index.d.ts +2 -0
  361. package/dist/typescript/components/InputCheckbox/index.d.ts +2 -0
  362. package/dist/typescript/components/InputCheckbox/types.d.ts +10 -0
  363. package/dist/typescript/components/InputOTP/components/InformationStatus/index.d.ts +3 -0
  364. package/dist/typescript/components/InputOTP/components/InformationStatus/types.d.ts +6 -0
  365. package/dist/typescript/components/InputOTP/components/index.d.ts +1 -0
  366. package/dist/typescript/components/InputOTP/enums/index.d.ts +1 -0
  367. package/dist/typescript/components/InputOTP/enums/information-status.d.ts +7 -0
  368. package/dist/typescript/components/InputOTP/index.d.ts +3 -0
  369. package/dist/typescript/components/InputOTP/types.d.ts +11 -0
  370. package/dist/typescript/components/LoadingDots/index.d.ts +3 -0
  371. package/dist/typescript/components/LoadingDots/types.d.ts +9 -0
  372. package/dist/typescript/components/Seal/assets/class-variants.d.ts +5 -0
  373. package/dist/typescript/components/Seal/components/AddIcon/index.d.ts +2 -0
  374. package/dist/typescript/components/Seal/components/AlertIcon/index.d.ts +2 -0
  375. package/dist/typescript/components/Seal/components/ErrorIcon/index.d.ts +2 -0
  376. package/dist/typescript/components/Seal/components/LeftIcon/index.d.ts +2 -0
  377. package/dist/typescript/components/Seal/components/MinusIcon/index.d.ts +2 -0
  378. package/dist/typescript/components/Seal/components/RightIcon/index.d.ts +2 -0
  379. package/dist/typescript/components/Seal/components/SuccessIcon/index.d.ts +2 -0
  380. package/dist/typescript/components/Seal/components/index.d.ts +7 -0
  381. package/dist/typescript/components/Seal/enums/index.d.ts +1 -0
  382. package/dist/typescript/components/Seal/enums/seal-variant.d.ts +9 -0
  383. package/dist/typescript/components/Seal/index.d.ts +3 -0
  384. package/dist/typescript/components/Seal/types.d.ts +14 -0
  385. package/dist/typescript/components/Title/components/icon/index.d.ts +2 -0
  386. package/dist/typescript/components/Title/components/icon/types.d.ts +12 -0
  387. package/dist/typescript/components/Title/components/index.d.ts +2 -0
  388. package/dist/typescript/components/Title/components/marker/index.d.ts +2 -0
  389. package/dist/typescript/components/Title/components/marker/types.d.ts +4 -0
  390. package/dist/typescript/components/Title/index.d.ts +7 -0
  391. package/dist/typescript/components/Title/types.d.ts +7 -0
  392. package/dist/typescript/components/Toggle/assets/class-variants.d.ts +6 -0
  393. package/dist/typescript/components/Toggle/enums/index.d.ts +1 -0
  394. package/dist/typescript/components/Toggle/enums/variant.d.ts +7 -0
  395. package/dist/typescript/components/Toggle/index.d.ts +2 -0
  396. package/dist/typescript/components/Toggle/types.d.ts +7 -0
  397. package/dist/typescript/components/Typography/index.d.ts +27 -0
  398. package/dist/typescript/components/Typography/types.d.ts +7 -0
  399. package/dist/typescript/components/index.d.ts +11 -0
  400. package/dist/typescript/hooks/index.d.ts +1 -0
  401. package/dist/typescript/hooks/use-fonts.d.ts +10 -0
  402. package/dist/typescript/iconography/Icons/index.d.ts +2 -0
  403. package/dist/typescript/iconography/Icons/types.d.ts +11 -0
  404. package/dist/typescript/index.d.ts +1 -0
  405. package/index.js +6 -0
  406. package/package.json +128 -0
  407. package/src/components/Button/assets/class-variants.ts +111 -0
  408. package/src/components/Button/assets/design-system-showcase.ts +1745 -0
  409. package/src/components/Button/index.stories.tsx +407 -0
  410. package/src/components/Button/index.tsx +137 -0
  411. package/src/components/Button/types.ts +31 -0
  412. package/src/components/Chip/assets/class-variants.ts +68 -0
  413. package/src/components/Chip/enums/chip-size.ts +4 -0
  414. package/src/components/Chip/enums/chip-variant.ts +5 -0
  415. package/src/components/Chip/enums/index.ts +2 -0
  416. package/src/components/Chip/index.stories.tsx +95 -0
  417. package/src/components/Chip/index.tsx +35 -0
  418. package/src/components/Chip/types.ts +13 -0
  419. package/src/components/HighlightedText/index.stories.tsx +110 -0
  420. package/src/components/HighlightedText/index.tsx +38 -0
  421. package/src/components/HighlightedText/types.ts +10 -0
  422. package/src/components/InformationStatus/components/GradientAdd/index.tsx +74 -0
  423. package/src/components/InformationStatus/components/GradientAdd/types.ts +6 -0
  424. package/src/components/InformationStatus/components/GradientAlert/index.tsx +81 -0
  425. package/src/components/InformationStatus/components/GradientAlert/types.ts +6 -0
  426. package/src/components/InformationStatus/components/GradientCheck/index.tsx +75 -0
  427. package/src/components/InformationStatus/components/GradientCheck/types.ts +6 -0
  428. package/src/components/InformationStatus/components/GradientClose/index.tsx +73 -0
  429. package/src/components/InformationStatus/components/GradientClose/types.ts +6 -0
  430. package/src/components/InformationStatus/components/index.ts +4 -0
  431. package/src/components/InformationStatus/enums.ts +6 -0
  432. package/src/components/InformationStatus/index.stories.tsx +112 -0
  433. package/src/components/InformationStatus/index.tsx +76 -0
  434. package/src/components/InformationStatus/types.ts +16 -0
  435. package/src/components/InputCheckbox/assets/class-variants.ts +90 -0
  436. package/src/components/InputCheckbox/enums/checkbox-variant.ts +9 -0
  437. package/src/components/InputCheckbox/enums/index.ts +2 -0
  438. package/src/components/InputCheckbox/enums/select-variant.ts +4 -0
  439. package/src/components/InputCheckbox/icons/CheckIcon/index.tsx +23 -0
  440. package/src/components/InputCheckbox/icons/IndeterminateIcon/index.tsx +23 -0
  441. package/src/components/InputCheckbox/icons/index.ts +2 -0
  442. package/src/components/InputCheckbox/index.stories.tsx +133 -0
  443. package/src/components/InputCheckbox/index.tsx +53 -0
  444. package/src/components/InputCheckbox/types.ts +13 -0
  445. package/src/components/InputOTP/components/InformationStatus/index.tsx +105 -0
  446. package/src/components/InputOTP/components/InformationStatus/types.ts +6 -0
  447. package/src/components/InputOTP/components/index.ts +1 -0
  448. package/src/components/InputOTP/enums/index.ts +1 -0
  449. package/src/components/InputOTP/enums/information-status.ts +7 -0
  450. package/src/components/InputOTP/index.stories.tsx +247 -0
  451. package/src/components/InputOTP/index.tsx +177 -0
  452. package/src/components/InputOTP/types.ts +12 -0
  453. package/src/components/LoadingDots/assets/loading-button-dark.json +1 -0
  454. package/src/components/LoadingDots/assets/loading-button-grape.json +1 -0
  455. package/src/components/LoadingDots/assets/loading-button-light.json +1 -0
  456. package/src/components/LoadingDots/index.stories.tsx +74 -0
  457. package/src/components/LoadingDots/index.tsx +37 -0
  458. package/src/components/LoadingDots/types.ts +10 -0
  459. package/src/components/Seal/assets/class-variants.ts +70 -0
  460. package/src/components/Seal/components/AddIcon/index.tsx +26 -0
  461. package/src/components/Seal/components/AlertIcon/index.tsx +26 -0
  462. package/src/components/Seal/components/ErrorIcon/index.tsx +26 -0
  463. package/src/components/Seal/components/LeftIcon/index.tsx +26 -0
  464. package/src/components/Seal/components/MinusIcon/index.tsx +24 -0
  465. package/src/components/Seal/components/RightIcon/index.tsx +26 -0
  466. package/src/components/Seal/components/SuccessIcon/index.tsx +26 -0
  467. package/src/components/Seal/components/index.ts +7 -0
  468. package/src/components/Seal/enums/index.ts +1 -0
  469. package/src/components/Seal/enums/seal-variant.ts +9 -0
  470. package/src/components/Seal/index.stories.tsx +124 -0
  471. package/src/components/Seal/index.tsx +53 -0
  472. package/src/components/Seal/types.ts +18 -0
  473. package/src/components/Title/components/icon/index.tsx +51 -0
  474. package/src/components/Title/components/icon/types.ts +12 -0
  475. package/src/components/Title/components/index.ts +2 -0
  476. package/src/components/Title/components/marker/index.tsx +25 -0
  477. package/src/components/Title/components/marker/types.ts +13 -0
  478. package/src/components/Title/index.stories.tsx +619 -0
  479. package/src/components/Title/index.tsx +36 -0
  480. package/src/components/Title/types.ts +7 -0
  481. package/src/components/Toggle/assets/class-variants.ts +40 -0
  482. package/src/components/Toggle/enums/index.ts +1 -0
  483. package/src/components/Toggle/enums/variant.ts +7 -0
  484. package/src/components/Toggle/index.stories.tsx +88 -0
  485. package/src/components/Toggle/index.tsx +42 -0
  486. package/src/components/Toggle/types.ts +8 -0
  487. package/src/components/Typography/index.stories.tsx +260 -0
  488. package/src/components/Typography/index.tsx +46 -0
  489. package/src/components/Typography/types.ts +8 -0
  490. package/src/components/index.ts +11 -0
  491. package/src/hooks/index.ts +1 -0
  492. package/src/hooks/use-fonts.ts +22 -0
  493. package/src/iconography/Icons/index.stories.tsx +23 -0
  494. package/src/iconography/Icons/index.tsx +89 -0
  495. package/src/iconography/Icons/types.ts +12 -0
  496. package/src/index.ts +1 -0
  497. package/src/nativewind-env.d.ts +1 -0
  498. package/src/welcome.mdx +3 -0
@@ -0,0 +1,619 @@
1
+ import type { Meta, StoryObj } from "@storybook/react-native";
2
+ import { Title } from "./index";
3
+ import { GradientDocLab200BasicPink } from "@butterfly/icons/native";
4
+
5
+ import { View } from "react-native";
6
+ import { HighlightedText } from "../HighlightedText";
7
+ import { IconVariants } from "./components/icon/types";
8
+
9
+ const meta = {
10
+ title: "Components/Title",
11
+ component: Title,
12
+ parameters: {
13
+ layout: "centered",
14
+ docs: {
15
+ description: {
16
+ component:
17
+ "Title component with multiple variants, sizes, and states matching the Figma design system.",
18
+ },
19
+ },
20
+ },
21
+ tags: ["autodocs"],
22
+ args: {
23
+ children: "Default Title",
24
+ head: <Title.Marker />,
25
+ },
26
+ } satisfies Meta<typeof Title>;
27
+
28
+ export default meta;
29
+ type Story = StoryObj<typeof meta>;
30
+
31
+ export const WithMarker: Story = {
32
+ render: () => (
33
+ <View className="flex items-center">
34
+ <Title head={<Title.Marker />}>
35
+ <HighlightedText text="Title" highlightText="with marker" />
36
+ </Title>
37
+ </View>
38
+ ),
39
+ parameters: {
40
+ docs: {
41
+ description: {
42
+ story: "Title with Marker with default value.",
43
+ },
44
+ },
45
+ },
46
+ };
47
+
48
+ export const WithIcon: Story = {
49
+ render: () => (
50
+ <View className="flex items-center">
51
+ <Title head={<Title.Icon variants={IconVariants.WARNING} />}>
52
+ <HighlightedText text="Warning" highlightText="icon" />
53
+ </Title>
54
+ </View>
55
+ ),
56
+ parameters: {
57
+ docs: {
58
+ description: {
59
+ story: "Title with Icon with default value.",
60
+ },
61
+ },
62
+ },
63
+ };
64
+
65
+ export const WithCustomIcon: Story = {
66
+ render: () => {
67
+ return (
68
+ <View className="flex items-center">
69
+ <Title
70
+ head={
71
+ <Title.Icon
72
+ size="medium"
73
+ variants={IconVariants.CUSTOM}
74
+ customIcon={<GradientDocLab200BasicPink size={48} />}
75
+ />
76
+ }
77
+ >
78
+ <HighlightedText
79
+ text="Custom"
80
+ highlightText="icon"
81
+ className="text-headline_large_300 "
82
+ highlightTextClassName="text-headline_large_700"
83
+ />
84
+ </Title>
85
+ </View>
86
+ );
87
+ },
88
+ parameters: {
89
+ docs: {
90
+ description: {
91
+ story: "Title with Icon receives a config to render a custom icon.",
92
+ },
93
+ },
94
+ },
95
+ };
96
+
97
+ export const Large2X: Story = {
98
+ render: () => {
99
+ function renderContent() {
100
+ return (
101
+ <>
102
+ <HighlightedText
103
+ text="Sub"
104
+ highlightText="highlight"
105
+ className="text-headline_large_300 "
106
+ highlightTextClassName="text-headline_large_500"
107
+ />
108
+ <HighlightedText
109
+ text="Sub"
110
+ highlightText="highlight"
111
+ className="text-headline_large_300 "
112
+ highlightTextClassName="text-headline_large_500"
113
+ />
114
+ <HighlightedText
115
+ text="Curabitur blandit tempus porttitor."
116
+ className="mt-400"
117
+ />
118
+ <HighlightedText
119
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
120
+ className="mt-400"
121
+ />
122
+ </>
123
+ );
124
+ }
125
+
126
+ return (
127
+ <View className="flex items-center gap-700">
128
+ <Title
129
+ variant="2xlarge"
130
+ head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
131
+ >
132
+ {renderContent()}
133
+ </Title>
134
+
135
+ <Title
136
+ variant="2xlarge"
137
+ head={<Title.Marker size="medium" color="chia" />}
138
+ >
139
+ {renderContent()}
140
+ </Title>
141
+ </View>
142
+ );
143
+ },
144
+ parameters: {
145
+ docs: {
146
+ description: {
147
+ story: "Title 2x large with Headline, subtitle and multiples texts",
148
+ },
149
+ },
150
+ },
151
+ };
152
+
153
+ export const LargeX: Story = {
154
+ render: () => {
155
+ function renderContent() {
156
+ return (
157
+ <>
158
+ <HighlightedText
159
+ text="Sub"
160
+ highlightText="highlight"
161
+ className="text-headline_medium_300"
162
+ highlightTextClassName="text-headline_medium_500"
163
+ />
164
+ <HighlightedText
165
+ text="Sub"
166
+ highlightText="highlight"
167
+ className="text-headline_medium_300"
168
+ highlightTextClassName="text-headline_medium_500"
169
+ />
170
+ <HighlightedText
171
+ text="Curabitur blandit tempus porttitor."
172
+ className="mt-400 text-body_medium_500"
173
+ />
174
+ <HighlightedText
175
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
176
+ className="mt-400 text-body_medium_500"
177
+ />
178
+ </>
179
+ );
180
+ }
181
+
182
+ return (
183
+ <View className="flex items-center gap-700">
184
+ <Title
185
+ variant="xlarge"
186
+ head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
187
+ >
188
+ {renderContent()}
189
+ </Title>
190
+
191
+ <Title
192
+ variant="xlarge"
193
+ head={<Title.Marker size="medium" color="chia" />}
194
+ >
195
+ {renderContent()}
196
+ </Title>
197
+ </View>
198
+ );
199
+ },
200
+ parameters: {
201
+ docs: {
202
+ description: {
203
+ story: "Title x large with Headline, subtitle and multiples texts",
204
+ },
205
+ },
206
+ },
207
+ };
208
+
209
+ export const Large: Story = {
210
+ render: () => {
211
+ function renderContent() {
212
+ return (
213
+ <>
214
+ <HighlightedText
215
+ text="Sub"
216
+ highlightText="highlight"
217
+ className="text-headline_small_300"
218
+ highlightTextClassName="text-headline_small_500"
219
+ />
220
+ <HighlightedText
221
+ text="Sub"
222
+ highlightText="highlight"
223
+ className="text-headline_small_300"
224
+ highlightTextClassName="text-headline_small_500"
225
+ />
226
+ <HighlightedText
227
+ text="Curabitur blandit tempus porttitor."
228
+ className="mt-400 text-body_medium_500"
229
+ />
230
+ <HighlightedText
231
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
232
+ className="mt-400 text-body_medium_500"
233
+ />
234
+ </>
235
+ );
236
+ }
237
+
238
+ return (
239
+ <View className="flex items-center gap-700">
240
+ <Title
241
+ variant="large"
242
+ head={<Title.Icon variants={IconVariants.SUCCESS} />}
243
+ >
244
+ {renderContent()}
245
+ </Title>
246
+
247
+ <Title variant="large" head={<Title.Marker color="chia" />}>
248
+ {renderContent()}
249
+ </Title>
250
+ </View>
251
+ );
252
+ },
253
+ parameters: {
254
+ docs: {
255
+ description: {
256
+ story: "Title large with Headline, subtitle and multiples texts",
257
+ },
258
+ },
259
+ },
260
+ };
261
+
262
+ export const Medium: Story = {
263
+ render: () => {
264
+ function renderContent() {
265
+ return (
266
+ <>
267
+ <HighlightedText
268
+ text="Sub"
269
+ highlightText="highlight"
270
+ className="text-title_large_300"
271
+ highlightTextClassName="text-title_large_500"
272
+ />
273
+ <HighlightedText
274
+ text="Sub"
275
+ highlightText="highlight"
276
+ className="text-title_large_300"
277
+ highlightTextClassName="text-title_large_500"
278
+ />
279
+ <HighlightedText
280
+ text="Curabitur blandit tempus porttitor."
281
+ className="mt-400 text-body_medium_500"
282
+ />
283
+ <HighlightedText
284
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
285
+ className="mt-400 text-body_medium_500"
286
+ />
287
+ </>
288
+ );
289
+ }
290
+
291
+ return (
292
+ <View className="flex items-center gap-700">
293
+ <Title
294
+ variant="medium"
295
+ head={<Title.Icon variants={IconVariants.SUCCESS} />}
296
+ >
297
+ {renderContent()}
298
+ </Title>
299
+
300
+ <Title variant="medium" head={<Title.Marker color="chia" />}>
301
+ {renderContent()}
302
+ </Title>
303
+ </View>
304
+ );
305
+ },
306
+ parameters: {
307
+ docs: {
308
+ description: {
309
+ story: "Title medium with Headline, subtitle and multiples texts",
310
+ },
311
+ },
312
+ },
313
+ };
314
+
315
+ export const Small: Story = {
316
+ render: () => {
317
+ function renderContent() {
318
+ return (
319
+ <>
320
+ <HighlightedText
321
+ text="Sub"
322
+ highlightText="highlight"
323
+ className="text-title_medium_300"
324
+ highlightTextClassName="text-title_medium_700"
325
+ />
326
+ <HighlightedText
327
+ text="Sub"
328
+ highlightText="highlight"
329
+ className="text-title_medium_300"
330
+ highlightTextClassName="text-title_medium_700"
331
+ />
332
+ <HighlightedText
333
+ text="Curabitur blandit tempus porttitor."
334
+ className="mt-400 text-body_small_500"
335
+ />
336
+ <HighlightedText
337
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
338
+ className="mt-400 text-body_small_500"
339
+ />
340
+ </>
341
+ );
342
+ }
343
+
344
+ return (
345
+ <View className="flex items-center gap-700">
346
+ <Title
347
+ variant="small"
348
+ head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
349
+ >
350
+ {renderContent()}
351
+ </Title>
352
+
353
+ <Title variant="small" head={<Title.Marker color="chia" />}>
354
+ {renderContent()}
355
+ </Title>
356
+ </View>
357
+ );
358
+ },
359
+ parameters: {
360
+ docs: {
361
+ description: {
362
+ story: "Title small with Headline, subtitle and multiples texts",
363
+ },
364
+ },
365
+ },
366
+ };
367
+
368
+ export const XSmall: Story = {
369
+ render: () => {
370
+ function renderContent() {
371
+ return (
372
+ <>
373
+ <HighlightedText
374
+ text="Sub"
375
+ highlightText="highlight"
376
+ className="text-title_small_300"
377
+ highlightTextClassName="text-title_small_700"
378
+ />
379
+ <HighlightedText
380
+ text="Sub"
381
+ highlightText="highlight"
382
+ className="text-title_small_300"
383
+ highlightTextClassName="text-title_small_700"
384
+ />
385
+ <HighlightedText
386
+ text="Curabitur blandit tempus porttitor."
387
+ className="mt-400 text-body_small_500"
388
+ />
389
+ <HighlightedText
390
+ text="Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis."
391
+ className="mt-400 text-body_small_500"
392
+ />
393
+ </>
394
+ );
395
+ }
396
+
397
+ return (
398
+ <View className="flex items-center gap-700">
399
+ <Title
400
+ variant="xsmall"
401
+ head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
402
+ >
403
+ {renderContent()}
404
+ </Title>
405
+
406
+ <Title variant="xsmall" head={<Title.Marker color="chia" />}>
407
+ {renderContent()}
408
+ </Title>
409
+ </View>
410
+ );
411
+ },
412
+ parameters: {
413
+ docs: {
414
+ description: {
415
+ story: "Title x small with Headline, subtitle and multiples texts",
416
+ },
417
+ },
418
+ },
419
+ };
420
+
421
+ export const MarkerSizesAndVariants: Story = {
422
+ render: () => (
423
+ <>
424
+ <View className="flex flex-column gap-400 mb-700">
425
+ <HighlightedText
426
+ text="Small"
427
+ className="text-label_small_700 text-center"
428
+ />
429
+
430
+ <View className="flex flex-row gap-300 justify-center">
431
+ <Title head={<Title.Marker color="blackberry" size="small" />}>
432
+ <HighlightedText
433
+ text="Blackberry"
434
+ className="text-label_small_700"
435
+ />
436
+ </Title>
437
+ <Title head={<Title.Marker color="chia" size="small" />}>
438
+ <HighlightedText text="Chia" className="text-label_small_700" />
439
+ </Title>
440
+ <Title head={<Title.Marker color="java" size="small" />}>
441
+ <HighlightedText text="Java" className="text-label_small_700" />
442
+ </Title>
443
+ <Title head={<Title.Marker color="grape" size="small" />}>
444
+ <HighlightedText text="Grape" className="text-label_small_700" />
445
+ </Title>
446
+ </View>
447
+
448
+ <View className="flex flex-row gap-300 justify-center">
449
+ <Title head={<Title.Marker color="mango" size="small" />}>
450
+ <HighlightedText text="Mango" className="text-label_small_700" />
451
+ </Title>
452
+ <Title head={<Title.Marker color="tangerine" size="small" />}>
453
+ <HighlightedText
454
+ text="Tangerine"
455
+ className="text-label_small_700"
456
+ />
457
+ </Title>
458
+ <Title head={<Title.Marker color="pear" size="small" />}>
459
+ <HighlightedText text="Pear" className="text-label_small_700" />
460
+ </Title>
461
+ <Title head={<Title.Marker color="ghost" size="small" />}>
462
+ <HighlightedText text="Ghost" className="text-label_small_700" />
463
+ </Title>
464
+ </View>
465
+ </View>
466
+
467
+ <View className="flex flex-column gap-400">
468
+ <HighlightedText
469
+ text="Medium"
470
+ className="text-label_medium_700 text-center"
471
+ />
472
+
473
+ <View className="flex flex-row gap-300 justify-center">
474
+ <Title head={<Title.Marker color="blackberry" />}>
475
+ <HighlightedText
476
+ text="Blackberry"
477
+ className="text-label_medium_700"
478
+ />
479
+ </Title>
480
+ <Title head={<Title.Marker color="chia" />}>
481
+ <HighlightedText text="Chia" className="text-label_medium_700" />
482
+ </Title>
483
+ <Title head={<Title.Marker color="java" />}>
484
+ <HighlightedText text="Java" className="text-label_medium_700" />
485
+ </Title>
486
+ <Title head={<Title.Marker color="grape" />}>
487
+ <HighlightedText text="Grape" className="text-label_medium_700" />
488
+ </Title>
489
+ </View>
490
+
491
+ <View className="flex flex-row gap-300 justify-center">
492
+ <Title head={<Title.Marker color="mango" />}>
493
+ <HighlightedText text="Mango" className="text-label_medium_700" />
494
+ </Title>
495
+ <Title head={<Title.Marker color="tangerine" />}>
496
+ <HighlightedText
497
+ text="Tangerine"
498
+ className="text-label_medium_700"
499
+ />
500
+ </Title>
501
+ <Title head={<Title.Marker color="pear" />}>
502
+ <HighlightedText text="Pear" className="text-label_medium_700" />
503
+ </Title>
504
+ <Title head={<Title.Marker color="ghost" />}>
505
+ <HighlightedText text="Ghost" className="text-label_medium_700" />
506
+ </Title>
507
+ </View>
508
+ </View>
509
+ </>
510
+ ),
511
+ parameters: {
512
+ docs: {
513
+ description: {
514
+ story:
515
+ "Complete showcase of the Title.Marker design system matching the Figma specifications with all variants, sizes, and states.",
516
+ },
517
+ },
518
+ },
519
+ };
520
+
521
+ export const IconSizesAndVariants: Story = {
522
+ render: () => (
523
+ <>
524
+ <View className="flex flex-column gap-300 mb-500">
525
+ <HighlightedText
526
+ text="Small"
527
+ className="text-label_small_700 text-center"
528
+ />
529
+
530
+ <View className="flex flex-row gap-300">
531
+ <Title head={<Title.Icon size="small" variants={IconVariants.ADD} />}>
532
+ <HighlightedText text="add" className="text-label_small_700" />
533
+ </Title>
534
+ <Title
535
+ head={<Title.Icon size="small" variants={IconVariants.WARNING} />}
536
+ >
537
+ <HighlightedText text="warning" className="text-label_small_700" />
538
+ </Title>
539
+ <Title
540
+ head={<Title.Icon size="small" variants={IconVariants.ERROR} />}
541
+ >
542
+ <HighlightedText text="error" className="text-label_small_700" />
543
+ </Title>
544
+ <Title
545
+ head={<Title.Icon size="small" variants={IconVariants.SUCCESS} />}
546
+ >
547
+ <HighlightedText text="success" className="text-label_small_700" />
548
+ </Title>
549
+ </View>
550
+ </View>
551
+
552
+ <View className="flex flex-column gap-300 mb-500">
553
+ <HighlightedText
554
+ text="Medium"
555
+ className="text-label_medium_700 text-center"
556
+ />
557
+
558
+ <View className="flex flex-row gap-300">
559
+ <Title
560
+ head={<Title.Icon size="medium" variants={IconVariants.ADD} />}
561
+ >
562
+ <HighlightedText text="add" className="text-label_medium_700" />
563
+ </Title>
564
+ <Title
565
+ head={<Title.Icon size="medium" variants={IconVariants.WARNING} />}
566
+ >
567
+ <HighlightedText text="warning" className="text-label_medium_700" />
568
+ </Title>
569
+ <Title
570
+ head={<Title.Icon size="medium" variants={IconVariants.ERROR} />}
571
+ >
572
+ <HighlightedText text="error" className="text-label_medium_700" />
573
+ </Title>
574
+ <Title
575
+ head={<Title.Icon size="medium" variants={IconVariants.SUCCESS} />}
576
+ >
577
+ <HighlightedText text="success" className="text-label_medium_700" />
578
+ </Title>
579
+ </View>
580
+ </View>
581
+
582
+ <View className="flex flex-column gap-300 mb-500">
583
+ <HighlightedText
584
+ text="Large"
585
+ className="text-label_large_700 text-center"
586
+ />
587
+
588
+ <View className="flex flex-row gap-300">
589
+ <Title head={<Title.Icon size="large" variants={IconVariants.ADD} />}>
590
+ <HighlightedText text="add" className="text-label_large_700" />
591
+ </Title>
592
+ <Title
593
+ head={<Title.Icon size="large" variants={IconVariants.WARNING} />}
594
+ >
595
+ <HighlightedText text="warning" className="text-label_large_700" />
596
+ </Title>
597
+ <Title
598
+ head={<Title.Icon size="large" variants={IconVariants.ERROR} />}
599
+ >
600
+ <HighlightedText text="error" className="text-label_large_700" />
601
+ </Title>
602
+ <Title
603
+ head={<Title.Icon size="large" variants={IconVariants.SUCCESS} />}
604
+ >
605
+ <HighlightedText text="success" className="text-label_large_700" />
606
+ </Title>
607
+ </View>
608
+ </View>
609
+ </>
610
+ ),
611
+ parameters: {
612
+ docs: {
613
+ description: {
614
+ story:
615
+ "Complete showcase of the Title.Marker design system matching the Figma specifications with all variants, sizes, and states.",
616
+ },
617
+ },
618
+ },
619
+ };
@@ -0,0 +1,36 @@
1
+ import { View } from "react-native";
2
+ import { Icon, Marker } from "./components";
3
+ import type { TitleProps } from "./types";
4
+ import { merge } from "@butterfly/tailwind-preset";
5
+ import { cva } from "class-variance-authority";
6
+
7
+ function Title(props: TitleProps) {
8
+ const { children, className, variant = "medium", head } = props;
9
+
10
+ const variantClass = cva("", {
11
+ variants: {
12
+ variant: {
13
+ "2xlarge": "pb-600",
14
+ xlarge: "pb-500",
15
+ large: "pb-600",
16
+ medium: "pb-600",
17
+ small: "pb-400",
18
+ xsmall: "pb-400",
19
+ },
20
+ },
21
+ })({ variant });
22
+
23
+ const mergedClassName = merge("flex flex-col max-w-[344px]", className);
24
+
25
+ return (
26
+ <View className={mergedClassName}>
27
+ <View className={`${variantClass}`}>{head}</View>
28
+ {children}
29
+ </View>
30
+ );
31
+ }
32
+
33
+ Title.Icon = Icon;
34
+ Title.Marker = Marker;
35
+
36
+ export { Title };
@@ -0,0 +1,7 @@
1
+ import type React from "react";
2
+ export interface TitleProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ variant?: "2xlarge" | "xlarge" | "large" | "medium" | "small" | "xsmall";
6
+ head: React.ReactNode;
7
+ }
@@ -0,0 +1,40 @@
1
+ import { cva } from "class-variance-authority";
2
+
3
+ const toggleVariants = cva(
4
+ [
5
+ "absolute top-100 left-100 right-100 bottom-100 transition-all duration-300 rounded-500",
6
+ ],
7
+ {
8
+ variants: {
9
+ variant: {
10
+ grape: ["bg-grape-500"],
11
+ java: ["bg-java-500"],
12
+ pear: ["bg-pear-500"],
13
+ tangerine: ["bg-tangerine-500"],
14
+ chia: ["bg-chia-800"],
15
+ },
16
+ checked: {
17
+ true: "",
18
+ false: "bg-chia-400",
19
+ },
20
+ disabled: {
21
+ true: "cursor-not-allowed opacity-50",
22
+ false: "cursor-pointer",
23
+ },
24
+ },
25
+ compoundVariants: [
26
+ {
27
+ checked: false,
28
+ variant: "chia",
29
+ class: "bg-chia-400",
30
+ },
31
+ ],
32
+ defaultVariants: {
33
+ variant: "java",
34
+ checked: false,
35
+ disabled: false,
36
+ },
37
+ }
38
+ );
39
+
40
+ export { toggleVariants };
@@ -0,0 +1 @@
1
+ export * from "./variant";