@sparrowengg/twigs-mobile 0.0.4 → 0.1.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 (575) hide show
  1. package/README.md +217 -0
  2. package/lib/commonjs/alert/alert.js +1 -0
  3. package/lib/commonjs/alert/constants.js +1 -0
  4. package/lib/commonjs/alert/helpers.js +1 -0
  5. package/lib/commonjs/alert/icons.js +1 -0
  6. package/lib/commonjs/alert/index.js +1 -0
  7. package/lib/commonjs/alert/styles.js +1 -0
  8. package/lib/commonjs/alert/types.js +1 -0
  9. package/lib/commonjs/avatar/avatar-group.constants.js +1 -0
  10. package/lib/commonjs/avatar/avatar-group.helpers.js +1 -0
  11. package/lib/commonjs/avatar/avatar-group.js +1 -0
  12. package/lib/commonjs/avatar/avatar-group.styles.js +1 -0
  13. package/lib/commonjs/avatar/avatar-group.types.js +1 -0
  14. package/lib/commonjs/avatar/avatar.js +1 -0
  15. package/lib/commonjs/avatar/constants.js +1 -0
  16. package/lib/commonjs/avatar/helpers.js +1 -0
  17. package/lib/commonjs/avatar/index.js +1 -0
  18. package/lib/commonjs/avatar/styles.js +1 -0
  19. package/lib/commonjs/avatar/types.js +1 -0
  20. package/lib/commonjs/badge/badge.js +1 -0
  21. package/lib/commonjs/badge/constants.js +1 -0
  22. package/lib/commonjs/badge/helpers.js +1 -0
  23. package/lib/commonjs/badge/index.js +1 -0
  24. package/lib/commonjs/badge/styles.js +1 -0
  25. package/lib/commonjs/badge/types.js +1 -0
  26. package/lib/commonjs/bottom-sheet/bottom-sheet-header.js +1 -0
  27. package/lib/commonjs/bottom-sheet/bottom-sheet-modal.js +1 -0
  28. package/lib/commonjs/bottom-sheet/bottom-sheet.js +1 -0
  29. package/lib/commonjs/bottom-sheet/constants.js +1 -0
  30. package/lib/commonjs/bottom-sheet/index.js +1 -0
  31. package/lib/commonjs/bottom-sheet/styles.js +1 -0
  32. package/lib/commonjs/bottom-sheet/types.js +1 -0
  33. package/lib/commonjs/box/box.js +1 -0
  34. package/lib/commonjs/box/index.js +1 -0
  35. package/lib/commonjs/box/types.js +1 -0
  36. package/lib/commonjs/button/button.js +1 -0
  37. package/lib/commonjs/button/constants.js +1 -0
  38. package/lib/commonjs/button/helpers.js +1 -0
  39. package/lib/commonjs/button/index.js +1 -0
  40. package/lib/commonjs/button/styles.js +1 -0
  41. package/lib/commonjs/button/types.js +1 -0
  42. package/lib/commonjs/checkbox/checkbox.js +1 -0
  43. package/lib/commonjs/checkbox/constants.js +1 -0
  44. package/lib/commonjs/checkbox/icons.js +1 -0
  45. package/lib/commonjs/checkbox/index.js +1 -0
  46. package/lib/commonjs/checkbox/styles.js +1 -0
  47. package/lib/commonjs/checkbox/types.js +1 -0
  48. package/lib/commonjs/chip/chip.js +1 -0
  49. package/lib/commonjs/chip/constants.js +1 -0
  50. package/lib/commonjs/chip/helpers.js +1 -0
  51. package/lib/commonjs/chip/index.js +1 -0
  52. package/lib/commonjs/chip/styles.js +1 -0
  53. package/lib/commonjs/chip/types.js +1 -0
  54. package/lib/commonjs/context/index.js +1 -0
  55. package/lib/commonjs/context/theme-context.js +1 -0
  56. package/lib/commonjs/dropdown/constants.js +1 -0
  57. package/lib/commonjs/dropdown/dropdown-context.js +1 -0
  58. package/lib/commonjs/dropdown/dropdown-menu-content.js +1 -0
  59. package/lib/commonjs/dropdown/dropdown-menu-item.js +1 -0
  60. package/lib/commonjs/dropdown/dropdown-menu-label.js +1 -0
  61. package/lib/commonjs/dropdown/dropdown-menu-separator.js +1 -0
  62. package/lib/commonjs/dropdown/dropdown-menu-trigger.js +1 -0
  63. package/lib/commonjs/dropdown/dropdown-menu.js +1 -0
  64. package/lib/commonjs/dropdown/helpers.js +1 -0
  65. package/lib/commonjs/dropdown/index.js +1 -0
  66. package/lib/commonjs/dropdown/styles.js +1 -0
  67. package/lib/commonjs/dropdown/types.js +1 -0
  68. package/lib/commonjs/flex/flex.js +1 -0
  69. package/lib/commonjs/flex/index.js +1 -0
  70. package/lib/commonjs/flex/types.js +1 -0
  71. package/lib/commonjs/icon-button/constants.js +1 -0
  72. package/lib/commonjs/icon-button/helpers.js +1 -0
  73. package/lib/commonjs/icon-button/icon-button.js +1 -0
  74. package/lib/commonjs/icon-button/index.js +1 -0
  75. package/lib/commonjs/icon-button/types.js +1 -0
  76. package/lib/commonjs/index.js +1 -0
  77. package/lib/commonjs/link-button/constants.js +1 -0
  78. package/lib/commonjs/link-button/helpers.js +1 -0
  79. package/lib/commonjs/link-button/index.js +1 -0
  80. package/lib/commonjs/link-button/link-button.js +1 -0
  81. package/lib/commonjs/link-button/types.js +1 -0
  82. package/lib/commonjs/loader/circle-loader.js +1 -0
  83. package/lib/commonjs/loader/constants.js +1 -0
  84. package/lib/commonjs/loader/helpers.js +1 -0
  85. package/lib/commonjs/loader/index.js +1 -0
  86. package/lib/commonjs/loader/line-loader.js +1 -0
  87. package/lib/commonjs/loader/types.js +1 -0
  88. package/lib/commonjs/modal/constants.js +1 -0
  89. package/lib/commonjs/modal/helpers.js +1 -0
  90. package/lib/commonjs/modal/index.js +1 -0
  91. package/lib/commonjs/modal/modal-body.js +1 -0
  92. package/lib/commonjs/modal/modal-content.js +1 -0
  93. package/lib/commonjs/modal/modal-description.js +1 -0
  94. package/lib/commonjs/modal/modal-footer.js +1 -0
  95. package/lib/commonjs/modal/modal-header.js +1 -0
  96. package/lib/commonjs/modal/modal-title.js +1 -0
  97. package/lib/commonjs/modal/modal.js +1 -0
  98. package/lib/commonjs/modal/styles.js +1 -0
  99. package/lib/commonjs/modal/types.js +1 -0
  100. package/lib/commonjs/radio/constants.js +1 -0
  101. package/lib/commonjs/radio/index.js +1 -0
  102. package/lib/commonjs/radio/radio.js +1 -0
  103. package/lib/commonjs/radio/styles.js +1 -0
  104. package/lib/commonjs/radio/types.js +1 -0
  105. package/lib/commonjs/segmented-button/constants.js +1 -0
  106. package/lib/commonjs/segmented-button/helpers.js +1 -0
  107. package/lib/commonjs/segmented-button/index.js +1 -0
  108. package/lib/commonjs/segmented-button/segmented-button.js +1 -0
  109. package/lib/commonjs/segmented-button/styles.js +1 -0
  110. package/lib/commonjs/segmented-button/types.js +1 -0
  111. package/lib/commonjs/separator/index.js +1 -0
  112. package/lib/commonjs/separator/separator.js +1 -0
  113. package/lib/commonjs/separator/types.js +1 -0
  114. package/lib/commonjs/stepper/constants.js +1 -0
  115. package/lib/commonjs/stepper/helpers.js +1 -0
  116. package/lib/commonjs/stepper/icons.js +1 -0
  117. package/lib/commonjs/stepper/index.js +1 -0
  118. package/lib/commonjs/stepper/stepper-connector.js +1 -0
  119. package/lib/commonjs/stepper/stepper-context.js +1 -0
  120. package/lib/commonjs/stepper/stepper-item.js +1 -0
  121. package/lib/commonjs/stepper/stepper-trigger.js +1 -0
  122. package/lib/commonjs/stepper/stepper.js +1 -0
  123. package/lib/commonjs/stepper/styles.js +1 -0
  124. package/lib/commonjs/stepper/types.js +1 -0
  125. package/lib/commonjs/switch/constants.js +1 -0
  126. package/lib/commonjs/switch/index.js +1 -0
  127. package/lib/commonjs/switch/styles.js +1 -0
  128. package/lib/commonjs/switch/switch.js +1 -0
  129. package/lib/commonjs/switch/types.js +1 -0
  130. package/lib/commonjs/tabs/constants.js +1 -0
  131. package/lib/commonjs/tabs/helpers.js +1 -0
  132. package/lib/commonjs/tabs/index.js +1 -0
  133. package/lib/commonjs/tabs/styles.js +1 -0
  134. package/lib/commonjs/tabs/tabs-content.js +1 -0
  135. package/lib/commonjs/tabs/tabs-context.js +1 -0
  136. package/lib/commonjs/tabs/tabs-list.js +1 -0
  137. package/lib/commonjs/tabs/tabs-trigger.js +1 -0
  138. package/lib/commonjs/tabs/tabs.js +1 -0
  139. package/lib/commonjs/tabs/types.js +1 -0
  140. package/lib/commonjs/text/constants.js +1 -0
  141. package/lib/commonjs/text/helpers.js +1 -0
  142. package/lib/commonjs/text/index.js +1 -0
  143. package/lib/commonjs/text/text.js +1 -0
  144. package/lib/commonjs/text/types.js +1 -0
  145. package/lib/commonjs/text-area/constants.js +1 -0
  146. package/lib/commonjs/text-area/index.js +1 -0
  147. package/lib/commonjs/text-area/styles.js +1 -0
  148. package/lib/commonjs/text-area/text-area.js +1 -0
  149. package/lib/commonjs/text-area/types.js +1 -0
  150. package/lib/commonjs/text-input/constants.js +1 -0
  151. package/lib/commonjs/text-input/index.js +1 -0
  152. package/lib/commonjs/text-input/styles.js +1 -0
  153. package/lib/commonjs/text-input/text-input.js +1 -0
  154. package/lib/commonjs/text-input/types.js +1 -0
  155. package/lib/commonjs/theme/default-theme.js +1 -0
  156. package/lib/commonjs/theme/index.js +1 -0
  157. package/lib/commonjs/toast/constants.js +1 -0
  158. package/lib/commonjs/toast/helpers.js +1 -0
  159. package/lib/commonjs/toast/icons.js +1 -0
  160. package/lib/commonjs/toast/index.js +1 -0
  161. package/lib/commonjs/toast/styles.js +1 -0
  162. package/lib/commonjs/toast/toast-container.js +1 -0
  163. package/lib/commonjs/toast/toast-content.js +1 -0
  164. package/lib/commonjs/toast/toast-item.js +1 -0
  165. package/lib/commonjs/toast/toast-provider.js +1 -0
  166. package/lib/commonjs/toast/toast.js +1 -0
  167. package/lib/commonjs/toast/types.js +1 -0
  168. package/lib/commonjs/toast/use-toast.js +1 -0
  169. package/lib/commonjs/tooltip/constants.js +1 -0
  170. package/lib/commonjs/tooltip/helpers.js +1 -0
  171. package/lib/commonjs/tooltip/index.js +1 -0
  172. package/lib/commonjs/tooltip/styles.js +1 -0
  173. package/lib/commonjs/tooltip/tooltip.js +1 -0
  174. package/lib/commonjs/tooltip/types.js +1 -0
  175. package/lib/commonjs/utils/index.js +1 -0
  176. package/lib/module/alert/alert.js +1 -0
  177. package/lib/module/alert/constants.js +1 -0
  178. package/lib/module/alert/helpers.js +1 -0
  179. package/lib/module/alert/icons.js +1 -0
  180. package/lib/module/alert/index.js +1 -0
  181. package/lib/module/alert/styles.js +1 -0
  182. package/lib/module/alert/types.js +1 -0
  183. package/lib/module/avatar/avatar-group.constants.js +1 -0
  184. package/lib/module/avatar/avatar-group.helpers.js +1 -0
  185. package/lib/module/avatar/avatar-group.js +1 -0
  186. package/lib/module/avatar/avatar-group.styles.js +1 -0
  187. package/lib/module/avatar/avatar-group.types.js +1 -0
  188. package/lib/module/avatar/avatar.js +1 -0
  189. package/lib/module/avatar/constants.js +1 -0
  190. package/lib/module/avatar/helpers.js +1 -0
  191. package/lib/module/avatar/index.js +1 -0
  192. package/lib/module/avatar/styles.js +1 -0
  193. package/lib/module/avatar/types.js +1 -0
  194. package/lib/module/badge/badge.js +1 -0
  195. package/lib/module/badge/constants.js +1 -0
  196. package/lib/module/badge/helpers.js +1 -0
  197. package/lib/module/badge/index.js +1 -0
  198. package/lib/module/badge/styles.js +1 -0
  199. package/lib/module/badge/types.js +1 -0
  200. package/lib/module/bottom-sheet/bottom-sheet-header.js +1 -0
  201. package/lib/module/bottom-sheet/bottom-sheet-modal.js +1 -0
  202. package/lib/module/bottom-sheet/bottom-sheet.js +1 -0
  203. package/lib/module/bottom-sheet/constants.js +1 -0
  204. package/lib/module/bottom-sheet/index.js +1 -0
  205. package/lib/module/bottom-sheet/styles.js +1 -0
  206. package/lib/module/bottom-sheet/types.js +1 -0
  207. package/lib/module/box/box.js +1 -0
  208. package/lib/module/box/index.js +1 -0
  209. package/lib/module/box/types.js +1 -0
  210. package/lib/module/button/button.js +1 -0
  211. package/lib/module/button/constants.js +1 -0
  212. package/lib/module/button/helpers.js +1 -0
  213. package/lib/module/button/index.js +1 -0
  214. package/lib/module/button/styles.js +1 -0
  215. package/lib/module/button/types.js +1 -0
  216. package/lib/module/checkbox/checkbox.js +1 -0
  217. package/lib/module/checkbox/constants.js +1 -0
  218. package/lib/module/checkbox/icons.js +1 -0
  219. package/lib/module/checkbox/index.js +1 -0
  220. package/lib/module/checkbox/styles.js +1 -0
  221. package/lib/module/checkbox/types.js +1 -0
  222. package/lib/module/chip/chip.js +1 -0
  223. package/lib/module/chip/constants.js +1 -0
  224. package/lib/module/chip/helpers.js +1 -0
  225. package/lib/module/chip/index.js +1 -0
  226. package/lib/module/chip/styles.js +1 -0
  227. package/lib/module/chip/types.js +1 -0
  228. package/lib/module/context/index.js +1 -0
  229. package/lib/module/context/theme-context.js +1 -0
  230. package/lib/module/dropdown/constants.js +1 -0
  231. package/lib/module/dropdown/dropdown-context.js +1 -0
  232. package/lib/module/dropdown/dropdown-menu-content.js +1 -0
  233. package/lib/module/dropdown/dropdown-menu-item.js +1 -0
  234. package/lib/module/dropdown/dropdown-menu-label.js +1 -0
  235. package/lib/module/dropdown/dropdown-menu-separator.js +1 -0
  236. package/lib/module/dropdown/dropdown-menu-trigger.js +1 -0
  237. package/lib/module/dropdown/dropdown-menu.js +1 -0
  238. package/lib/module/dropdown/helpers.js +1 -0
  239. package/lib/module/dropdown/index.js +1 -0
  240. package/lib/module/dropdown/styles.js +1 -0
  241. package/lib/module/dropdown/types.js +1 -0
  242. package/lib/module/flex/flex.js +1 -0
  243. package/lib/module/flex/index.js +1 -0
  244. package/lib/module/flex/types.js +1 -0
  245. package/lib/module/icon-button/constants.js +1 -0
  246. package/lib/module/icon-button/helpers.js +1 -0
  247. package/lib/module/icon-button/icon-button.js +1 -0
  248. package/lib/module/icon-button/index.js +1 -0
  249. package/lib/module/icon-button/types.js +1 -0
  250. package/lib/module/index.js +1 -0
  251. package/lib/module/link-button/constants.js +1 -0
  252. package/lib/module/link-button/helpers.js +1 -0
  253. package/lib/module/link-button/index.js +1 -0
  254. package/lib/module/link-button/link-button.js +1 -0
  255. package/lib/module/link-button/types.js +1 -0
  256. package/lib/module/loader/circle-loader.js +1 -0
  257. package/lib/module/loader/constants.js +1 -0
  258. package/lib/module/loader/helpers.js +1 -0
  259. package/lib/module/loader/index.js +1 -0
  260. package/lib/module/loader/line-loader.js +1 -0
  261. package/lib/module/loader/types.js +1 -0
  262. package/lib/module/modal/constants.js +1 -0
  263. package/lib/module/modal/helpers.js +1 -0
  264. package/lib/module/modal/index.js +1 -0
  265. package/lib/module/modal/modal-body.js +1 -0
  266. package/lib/module/modal/modal-content.js +1 -0
  267. package/lib/module/modal/modal-description.js +1 -0
  268. package/lib/module/modal/modal-footer.js +1 -0
  269. package/lib/module/modal/modal-header.js +1 -0
  270. package/lib/module/modal/modal-title.js +1 -0
  271. package/lib/module/modal/modal.js +1 -0
  272. package/lib/module/modal/styles.js +1 -0
  273. package/lib/module/modal/types.js +1 -0
  274. package/lib/module/radio/constants.js +1 -0
  275. package/lib/module/radio/index.js +1 -0
  276. package/lib/module/radio/radio.js +1 -0
  277. package/lib/module/radio/styles.js +1 -0
  278. package/lib/module/radio/types.js +1 -0
  279. package/lib/module/segmented-button/constants.js +1 -0
  280. package/lib/module/segmented-button/helpers.js +1 -0
  281. package/lib/module/segmented-button/index.js +1 -0
  282. package/lib/module/segmented-button/segmented-button.js +1 -0
  283. package/lib/module/segmented-button/styles.js +1 -0
  284. package/lib/module/segmented-button/types.js +1 -0
  285. package/lib/module/separator/index.js +1 -0
  286. package/lib/module/separator/separator.js +1 -0
  287. package/lib/module/separator/types.js +1 -0
  288. package/lib/module/stepper/constants.js +1 -0
  289. package/lib/module/stepper/helpers.js +1 -0
  290. package/lib/module/stepper/icons.js +1 -0
  291. package/lib/module/stepper/index.js +1 -0
  292. package/lib/module/stepper/stepper-connector.js +1 -0
  293. package/lib/module/stepper/stepper-context.js +1 -0
  294. package/lib/module/stepper/stepper-item.js +1 -0
  295. package/lib/module/stepper/stepper-trigger.js +1 -0
  296. package/lib/module/stepper/stepper.js +1 -0
  297. package/lib/module/stepper/styles.js +1 -0
  298. package/lib/module/stepper/types.js +1 -0
  299. package/lib/module/switch/constants.js +1 -0
  300. package/lib/module/switch/index.js +1 -0
  301. package/lib/module/switch/styles.js +1 -0
  302. package/lib/module/switch/switch.js +1 -0
  303. package/lib/module/switch/types.js +1 -0
  304. package/lib/module/tabs/constants.js +1 -0
  305. package/lib/module/tabs/helpers.js +1 -0
  306. package/lib/module/tabs/index.js +1 -0
  307. package/lib/module/tabs/styles.js +1 -0
  308. package/lib/module/tabs/tabs-content.js +1 -0
  309. package/lib/module/tabs/tabs-context.js +1 -0
  310. package/lib/module/tabs/tabs-list.js +1 -0
  311. package/lib/module/tabs/tabs-trigger.js +1 -0
  312. package/lib/module/tabs/tabs.js +1 -0
  313. package/lib/module/tabs/types.js +1 -0
  314. package/lib/module/text/constants.js +1 -0
  315. package/lib/module/text/helpers.js +1 -0
  316. package/lib/module/text/index.js +1 -0
  317. package/lib/module/text/text.js +1 -0
  318. package/lib/module/text/types.js +1 -0
  319. package/lib/module/text-area/constants.js +1 -0
  320. package/lib/module/text-area/index.js +1 -0
  321. package/lib/module/text-area/styles.js +1 -0
  322. package/lib/module/text-area/text-area.js +1 -0
  323. package/lib/module/text-area/types.js +1 -0
  324. package/lib/module/text-input/constants.js +1 -0
  325. package/lib/module/text-input/index.js +1 -0
  326. package/lib/module/text-input/styles.js +1 -0
  327. package/lib/module/text-input/text-input.js +1 -0
  328. package/lib/module/text-input/types.js +1 -0
  329. package/lib/module/theme/default-theme.js +1 -0
  330. package/lib/module/theme/index.js +1 -0
  331. package/lib/module/toast/constants.js +1 -0
  332. package/lib/module/toast/helpers.js +1 -0
  333. package/lib/module/toast/icons.js +1 -0
  334. package/lib/module/toast/index.js +1 -0
  335. package/lib/module/toast/styles.js +1 -0
  336. package/lib/module/toast/toast-container.js +1 -0
  337. package/lib/module/toast/toast-content.js +1 -0
  338. package/lib/module/toast/toast-item.js +1 -0
  339. package/lib/module/toast/toast-provider.js +1 -0
  340. package/lib/module/toast/toast.js +1 -0
  341. package/lib/module/toast/types.js +1 -0
  342. package/lib/module/toast/use-toast.js +1 -0
  343. package/lib/module/tooltip/constants.js +1 -0
  344. package/lib/module/tooltip/helpers.js +1 -0
  345. package/lib/module/tooltip/index.js +1 -0
  346. package/lib/module/tooltip/styles.js +1 -0
  347. package/lib/module/tooltip/tooltip.js +1 -0
  348. package/lib/module/tooltip/types.js +1 -0
  349. package/lib/module/utils/index.js +1 -0
  350. package/lib/typescript/alert/alert.d.ts +6 -0
  351. package/lib/typescript/alert/constants.d.ts +18 -0
  352. package/lib/typescript/alert/helpers.d.ts +7 -0
  353. package/lib/typescript/alert/icons.d.ts +25 -0
  354. package/lib/typescript/alert/index.d.ts +3 -0
  355. package/lib/typescript/alert/styles.d.ts +25 -0
  356. package/lib/typescript/alert/types.d.ts +20 -0
  357. package/lib/typescript/avatar/avatar-group.constants.d.ts +18 -0
  358. package/lib/typescript/avatar/avatar-group.d.ts +6 -0
  359. package/lib/typescript/avatar/avatar-group.helpers.d.ts +12 -0
  360. package/lib/typescript/avatar/avatar-group.styles.d.ts +20 -0
  361. package/lib/typescript/avatar/avatar-group.types.d.ts +18 -0
  362. package/lib/typescript/avatar/avatar.d.ts +6 -0
  363. package/lib/typescript/avatar/constants.d.ts +10 -0
  364. package/lib/typescript/avatar/helpers.d.ts +6 -0
  365. package/lib/typescript/avatar/index.d.ts +5 -0
  366. package/lib/typescript/avatar/styles.d.ts +9 -0
  367. package/lib/typescript/avatar/types.d.ts +27 -0
  368. package/lib/typescript/badge/badge.d.ts +6 -0
  369. package/lib/typescript/badge/constants.d.ts +21 -0
  370. package/lib/typescript/badge/helpers.d.ts +9 -0
  371. package/lib/typescript/badge/index.d.ts +3 -0
  372. package/lib/typescript/badge/styles.d.ts +19 -0
  373. package/lib/typescript/badge/types.d.ts +24 -0
  374. package/lib/typescript/bottom-sheet/bottom-sheet-header.d.ts +4 -0
  375. package/lib/typescript/bottom-sheet/bottom-sheet-modal.d.ts +6 -0
  376. package/lib/typescript/bottom-sheet/bottom-sheet.d.ts +5 -0
  377. package/lib/typescript/bottom-sheet/constants.d.ts +10 -0
  378. package/lib/typescript/bottom-sheet/index.d.ts +7 -0
  379. package/lib/typescript/bottom-sheet/styles.d.ts +11 -0
  380. package/lib/typescript/bottom-sheet/types.d.ts +35 -0
  381. package/lib/typescript/box/box.d.ts +6 -0
  382. package/lib/typescript/box/index.d.ts +3 -0
  383. package/lib/typescript/box/types.d.ts +8 -0
  384. package/lib/typescript/button/button.d.ts +9 -0
  385. package/lib/typescript/button/constants.d.ts +30 -0
  386. package/lib/typescript/button/helpers.d.ts +39 -0
  387. package/lib/typescript/button/index.d.ts +3 -0
  388. package/lib/typescript/button/styles.d.ts +12 -0
  389. package/lib/typescript/button/types.d.ts +38 -0
  390. package/lib/typescript/checkbox/checkbox.d.ts +6 -0
  391. package/lib/typescript/checkbox/constants.d.ts +10 -0
  392. package/lib/typescript/checkbox/icons.d.ts +9 -0
  393. package/lib/typescript/checkbox/index.d.ts +3 -0
  394. package/lib/typescript/checkbox/styles.d.ts +25 -0
  395. package/lib/typescript/checkbox/types.d.ts +25 -0
  396. package/lib/typescript/chip/chip.d.ts +6 -0
  397. package/lib/typescript/chip/constants.d.ts +31 -0
  398. package/lib/typescript/chip/helpers.d.ts +11 -0
  399. package/lib/typescript/chip/index.d.ts +3 -0
  400. package/lib/typescript/chip/styles.d.ts +22 -0
  401. package/lib/typescript/chip/types.d.ts +31 -0
  402. package/lib/typescript/context/index.d.ts +2 -0
  403. package/lib/typescript/context/theme-context.d.ts +17 -0
  404. package/lib/typescript/dropdown/constants.d.ts +23 -0
  405. package/lib/typescript/dropdown/dropdown-context.d.ts +18 -0
  406. package/lib/typescript/dropdown/dropdown-menu-content.d.ts +6 -0
  407. package/lib/typescript/dropdown/dropdown-menu-item.d.ts +5 -0
  408. package/lib/typescript/dropdown/dropdown-menu-label.d.ts +6 -0
  409. package/lib/typescript/dropdown/dropdown-menu-separator.d.ts +6 -0
  410. package/lib/typescript/dropdown/dropdown-menu-trigger.d.ts +6 -0
  411. package/lib/typescript/dropdown/dropdown-menu.d.ts +5 -0
  412. package/lib/typescript/dropdown/helpers.d.ts +11 -0
  413. package/lib/typescript/dropdown/index.d.ts +8 -0
  414. package/lib/typescript/dropdown/styles.d.ts +32 -0
  415. package/lib/typescript/dropdown/types.d.ts +54 -0
  416. package/lib/typescript/flex/flex.d.ts +6 -0
  417. package/lib/typescript/flex/index.d.ts +3 -0
  418. package/lib/typescript/flex/types.d.ts +22 -0
  419. package/lib/typescript/icon-button/constants.d.ts +20 -0
  420. package/lib/typescript/icon-button/helpers.d.ts +13 -0
  421. package/lib/typescript/icon-button/icon-button.d.ts +6 -0
  422. package/lib/typescript/icon-button/index.d.ts +3 -0
  423. package/lib/typescript/icon-button/types.d.ts +31 -0
  424. package/lib/typescript/index.d.ts +57 -0
  425. package/lib/typescript/link-button/constants.d.ts +22 -0
  426. package/lib/typescript/link-button/helpers.d.ts +12 -0
  427. package/lib/typescript/link-button/index.d.ts +3 -0
  428. package/lib/typescript/link-button/link-button.d.ts +9 -0
  429. package/lib/typescript/link-button/types.d.ts +25 -0
  430. package/lib/typescript/loader/circle-loader.d.ts +6 -0
  431. package/lib/typescript/loader/constants.d.ts +8 -0
  432. package/lib/typescript/loader/helpers.d.ts +9 -0
  433. package/lib/typescript/loader/index.d.ts +4 -0
  434. package/lib/typescript/loader/line-loader.d.ts +6 -0
  435. package/lib/typescript/loader/types.d.ts +19 -0
  436. package/lib/typescript/modal/constants.d.ts +26 -0
  437. package/lib/typescript/modal/helpers.d.ts +8 -0
  438. package/lib/typescript/modal/index.d.ts +9 -0
  439. package/lib/typescript/modal/modal-body.d.ts +9 -0
  440. package/lib/typescript/modal/modal-content.d.ts +9 -0
  441. package/lib/typescript/modal/modal-description.d.ts +7 -0
  442. package/lib/typescript/modal/modal-footer.d.ts +9 -0
  443. package/lib/typescript/modal/modal-header.d.ts +9 -0
  444. package/lib/typescript/modal/modal-title.d.ts +7 -0
  445. package/lib/typescript/modal/modal.d.ts +12 -0
  446. package/lib/typescript/modal/styles.d.ts +38 -0
  447. package/lib/typescript/modal/types.d.ts +87 -0
  448. package/lib/typescript/radio/constants.d.ts +9 -0
  449. package/lib/typescript/radio/index.d.ts +3 -0
  450. package/lib/typescript/radio/radio.d.ts +6 -0
  451. package/lib/typescript/radio/styles.d.ts +24 -0
  452. package/lib/typescript/radio/types.d.ts +23 -0
  453. package/lib/typescript/segmented-button/constants.d.ts +21 -0
  454. package/lib/typescript/segmented-button/helpers.d.ts +8 -0
  455. package/lib/typescript/segmented-button/index.d.ts +3 -0
  456. package/lib/typescript/segmented-button/segmented-button.d.ts +6 -0
  457. package/lib/typescript/segmented-button/styles.d.ts +24 -0
  458. package/lib/typescript/segmented-button/types.d.ts +30 -0
  459. package/lib/typescript/separator/index.d.ts +3 -0
  460. package/lib/typescript/separator/separator.d.ts +6 -0
  461. package/lib/typescript/separator/types.d.ts +21 -0
  462. package/lib/typescript/stepper/constants.d.ts +23 -0
  463. package/lib/typescript/stepper/helpers.d.ts +10 -0
  464. package/lib/typescript/stepper/icons.d.ts +8 -0
  465. package/lib/typescript/stepper/index.d.ts +5 -0
  466. package/lib/typescript/stepper/stepper-connector.d.ts +3 -0
  467. package/lib/typescript/stepper/stepper-context.d.ts +12 -0
  468. package/lib/typescript/stepper/stepper-item.d.ts +6 -0
  469. package/lib/typescript/stepper/stepper-trigger.d.ts +14 -0
  470. package/lib/typescript/stepper/stepper.d.ts +6 -0
  471. package/lib/typescript/stepper/styles.d.ts +51 -0
  472. package/lib/typescript/stepper/types.d.ts +25 -0
  473. package/lib/typescript/switch/constants.d.ts +17 -0
  474. package/lib/typescript/switch/index.d.ts +3 -0
  475. package/lib/typescript/switch/styles.d.ts +12 -0
  476. package/lib/typescript/switch/switch.d.ts +6 -0
  477. package/lib/typescript/switch/types.d.ts +29 -0
  478. package/lib/typescript/tabs/constants.d.ts +18 -0
  479. package/lib/typescript/tabs/helpers.d.ts +13 -0
  480. package/lib/typescript/tabs/index.d.ts +6 -0
  481. package/lib/typescript/tabs/styles.d.ts +39 -0
  482. package/lib/typescript/tabs/tabs-content.d.ts +6 -0
  483. package/lib/typescript/tabs/tabs-context.d.ts +23 -0
  484. package/lib/typescript/tabs/tabs-list.d.ts +6 -0
  485. package/lib/typescript/tabs/tabs-trigger.d.ts +5 -0
  486. package/lib/typescript/tabs/tabs.d.ts +6 -0
  487. package/lib/typescript/tabs/types.d.ts +43 -0
  488. package/lib/typescript/text/constants.d.ts +2 -0
  489. package/lib/typescript/text/helpers.d.ts +10 -0
  490. package/lib/typescript/text/index.d.ts +3 -0
  491. package/lib/typescript/text/text.d.ts +6 -0
  492. package/lib/typescript/text/types.d.ts +51 -0
  493. package/lib/typescript/text-area/constants.d.ts +24 -0
  494. package/lib/typescript/text-area/index.d.ts +3 -0
  495. package/lib/typescript/text-area/styles.d.ts +37 -0
  496. package/lib/typescript/text-area/text-area.d.ts +6 -0
  497. package/lib/typescript/text-area/types.d.ts +37 -0
  498. package/lib/typescript/text-input/constants.d.ts +26 -0
  499. package/lib/typescript/text-input/index.d.ts +3 -0
  500. package/lib/typescript/text-input/styles.d.ts +43 -0
  501. package/lib/typescript/text-input/text-input.d.ts +6 -0
  502. package/lib/typescript/text-input/types.d.ts +38 -0
  503. package/lib/typescript/theme/default-theme.d.ts +209 -0
  504. package/lib/typescript/theme/index.d.ts +4 -0
  505. package/lib/typescript/toast/constants.d.ts +42 -0
  506. package/lib/typescript/toast/helpers.d.ts +16 -0
  507. package/lib/typescript/toast/icons.d.ts +10 -0
  508. package/lib/typescript/toast/index.d.ts +5 -0
  509. package/lib/typescript/toast/styles.d.ts +47 -0
  510. package/lib/typescript/toast/toast-container.d.ts +4 -0
  511. package/lib/typescript/toast/toast-content.d.ts +8 -0
  512. package/lib/typescript/toast/toast-item.d.ts +4 -0
  513. package/lib/typescript/toast/toast-provider.d.ts +13 -0
  514. package/lib/typescript/toast/toast.d.ts +2 -0
  515. package/lib/typescript/toast/types.d.ts +123 -0
  516. package/lib/typescript/toast/use-toast.d.ts +56 -0
  517. package/lib/typescript/tooltip/constants.d.ts +20 -0
  518. package/lib/typescript/tooltip/helpers.d.ts +31 -0
  519. package/lib/typescript/tooltip/index.d.ts +3 -0
  520. package/lib/typescript/tooltip/styles.d.ts +24 -0
  521. package/lib/typescript/tooltip/tooltip.d.ts +6 -0
  522. package/lib/typescript/tooltip/types.d.ts +39 -0
  523. package/lib/typescript/utils/index.d.ts +98 -0
  524. package/package.json +135 -27
  525. package/dist/commonjs/Box/box.js +0 -83
  526. package/dist/commonjs/Box/box.js.map +0 -1
  527. package/dist/commonjs/Box/index.js +0 -17
  528. package/dist/commonjs/Box/index.js.map +0 -1
  529. package/dist/commonjs/ThemeProvider/TwigsThemeProvider.js +0 -20
  530. package/dist/commonjs/ThemeProvider/TwigsThemeProvider.js.map +0 -1
  531. package/dist/commonjs/ThemeProvider/index.js +0 -17
  532. package/dist/commonjs/ThemeProvider/index.js.map +0 -1
  533. package/dist/commonjs/config/theme.js +0 -201
  534. package/dist/commonjs/config/theme.js.map +0 -1
  535. package/dist/commonjs/index.js +0 -28
  536. package/dist/commonjs/index.js.map +0 -1
  537. package/dist/commonjs/utils/index.js +0 -2
  538. package/dist/commonjs/utils/index.js.map +0 -1
  539. package/dist/module/Box/box.js +0 -77
  540. package/dist/module/Box/box.js.map +0 -1
  541. package/dist/module/Box/index.js +0 -4
  542. package/dist/module/Box/index.js.map +0 -1
  543. package/dist/module/ThemeProvider/TwigsThemeProvider.js +0 -14
  544. package/dist/module/ThemeProvider/TwigsThemeProvider.js.map +0 -1
  545. package/dist/module/ThemeProvider/index.js +0 -4
  546. package/dist/module/ThemeProvider/index.js.map +0 -1
  547. package/dist/module/config/theme.js +0 -197
  548. package/dist/module/config/theme.js.map +0 -1
  549. package/dist/module/index.js +0 -5
  550. package/dist/module/index.js.map +0 -1
  551. package/dist/module/utils/index.js +0 -2
  552. package/dist/module/utils/index.js.map +0 -1
  553. package/dist/types/Box/box.d.ts +0 -23
  554. package/dist/types/Box/box.d.ts.map +0 -1
  555. package/dist/types/Box/index.d.ts +0 -2
  556. package/dist/types/Box/index.d.ts.map +0 -1
  557. package/dist/types/ThemeProvider/TwigsThemeProvider.d.ts +0 -8
  558. package/dist/types/ThemeProvider/TwigsThemeProvider.d.ts.map +0 -1
  559. package/dist/types/ThemeProvider/index.d.ts +0 -2
  560. package/dist/types/ThemeProvider/index.d.ts.map +0 -1
  561. package/dist/types/config/theme.d.ts +0 -195
  562. package/dist/types/config/theme.d.ts.map +0 -1
  563. package/dist/types/index.d.ts +0 -3
  564. package/dist/types/index.d.ts.map +0 -1
  565. package/dist/types/utils/index.d.ts +0 -1
  566. package/dist/types/utils/index.d.ts.map +0 -1
  567. package/src/Box/box.tsx +0 -82
  568. package/src/Box/index.tsx +0 -1
  569. package/src/ThemeProvider/TwigsThemeProvider.tsx +0 -13
  570. package/src/ThemeProvider/index.ts +0 -1
  571. package/src/config/theme.ts +0 -195
  572. package/src/index.ts +0 -2
  573. package/src/utils/index.ts +0 -0
  574. /package/{dist → lib}/commonjs/package.json +0 -0
  575. /package/{dist → lib}/module/package.json +0 -0
@@ -0,0 +1,56 @@
1
+ import type { ToastOptions, ToastContextType, UseToastReturn } from './types';
2
+ export declare const ToastContext: import("react").Context<ToastContextType | null>;
3
+ /** Returns the toast context — throws if called outside ToastProvider. */
4
+ export declare function useToastContext(): ToastContextType;
5
+ type ShorthandArg = string | Omit<ToastOptions, 'variant'>;
6
+ /** React hook providing the full toast API — must be used inside ToastProvider */
7
+ export declare function useToast(): UseToastReturn;
8
+ declare let globalAdd: ToastContextType['add'] | null;
9
+ declare let globalDismiss: ToastContextType['dismiss'] | null;
10
+ declare let globalUpdate: ToastContextType['update'] | null;
11
+ /** Registers global toast handlers — called internally by ToastProvider on mount. */
12
+ export declare function setGlobalToastHandlers(add: typeof globalAdd, dismiss: typeof globalDismiss, update: typeof globalUpdate): void;
13
+ declare function showToast(options: ToastOptions): {
14
+ id: string;
15
+ dismiss: () => void;
16
+ };
17
+ /**
18
+ * Imperative toast API — works inside and outside React components.
19
+ *
20
+ * @example
21
+ * toast({ title: 'Hello', variant: 'success' });
22
+ * toast.secondary('Info');
23
+ * toast.success('Saved!');
24
+ * toast.error('Failed!');
25
+ * toast.warning('Careful');
26
+ * toast.loading('Processing...');
27
+ * toast.dismiss();
28
+ * toast.dismiss(id);
29
+ * toast.update(id, { title: 'Updated!' });
30
+ */
31
+ export declare const toast: typeof showToast & {
32
+ secondary: (arg: ShorthandArg) => {
33
+ id: string;
34
+ dismiss: () => void;
35
+ };
36
+ success: (arg: ShorthandArg) => {
37
+ id: string;
38
+ dismiss: () => void;
39
+ };
40
+ error: (arg: ShorthandArg) => {
41
+ id: string;
42
+ dismiss: () => void;
43
+ };
44
+ warning: (arg: ShorthandArg) => {
45
+ id: string;
46
+ dismiss: () => void;
47
+ };
48
+ loading: (arg: ShorthandArg) => {
49
+ id: string;
50
+ dismiss: () => void;
51
+ };
52
+ dismiss: (id?: string) => void | undefined;
53
+ update: (id: string, options: Partial<ToastOptions>) => void | undefined;
54
+ };
55
+ export {};
56
+ //# sourceMappingURL=use-toast.d.ts.map
@@ -0,0 +1,20 @@
1
+ import type { TooltipSide } from './types';
2
+ export declare const TOOLTIP_CONFIG: {
3
+ paddingHorizontal: number;
4
+ paddingVertical: number;
5
+ fontSize: number;
6
+ fontFamily: "medium";
7
+ lineHeight: number;
8
+ borderRadius: number;
9
+ maxWidth: number;
10
+ };
11
+ export declare const ARROW_SIZE: {
12
+ width: number;
13
+ height: number;
14
+ };
15
+ /** Arrow inset from tooltip edge for start/end alignments (Figma: 8dp). */
16
+ export declare const ARROW_EDGE_OFFSET = 8;
17
+ export declare const DEFAULT_SIDE: TooltipSide;
18
+ export declare const DEFAULT_SIDE_OFFSET = 6;
19
+ export declare const ANIMATION_DURATION = 150;
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,31 @@
1
+ import type { Placement } from '@floating-ui/react-native';
2
+ import type { TextStyle, ViewStyle } from 'react-native';
3
+ import type { TwigsTheme } from '../theme';
4
+ import type { TooltipSide, TooltipAlign } from './types';
5
+ export declare function toPlacement(side: TooltipSide, align: TooltipAlign): Placement;
6
+ /**
7
+ * Calculates the cross-axis shift needed for the tooltip's arrow to point at the trigger's center,
8
+ * used for left/right sides with start/end alignment.
9
+ */
10
+ export declare function getCrossAxisOffset(side: TooltipSide, align: TooltipAlign, refSize: number): number;
11
+ export declare function getContentStyles(theme: TwigsTheme): ViewStyle;
12
+ export declare function getTextStyles(theme: TwigsTheme): TextStyle;
13
+ export declare function getArrowPath(side: TooltipSide): string;
14
+ /** Swaps width/height for left/right sides since the arrow rotates 90°. */
15
+ export declare function getArrowDimensions(side: TooltipSide): {
16
+ width: number;
17
+ height: number;
18
+ };
19
+ /**
20
+ * For `center` alignment, uses floating-ui's computed coordinate.
21
+ * For `start`/`end`, pins the arrow at `ARROW_EDGE_OFFSET` from the
22
+ * corresponding tooltip edge (Figma spec: 8dp).
23
+ */
24
+ export declare function getArrowPositionStyle(side: TooltipSide, align: TooltipAlign, arrowDims: {
25
+ width: number;
26
+ height: number;
27
+ }, arrowMiddleware: {
28
+ x?: number;
29
+ y?: number;
30
+ } | undefined): ViewStyle;
31
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { Tooltip } from './tooltip';
2
+ export type { TooltipProps, TooltipSide, TooltipAlign } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,24 @@
1
+ export declare const styles: {
2
+ overlay: {
3
+ zIndex: number;
4
+ position: "absolute";
5
+ left: 0;
6
+ right: 0;
7
+ top: 0;
8
+ bottom: 0;
9
+ };
10
+ backdropPressable: {
11
+ position: "absolute";
12
+ left: 0;
13
+ right: 0;
14
+ top: 0;
15
+ bottom: 0;
16
+ };
17
+ contentWrapper: {
18
+ position: "absolute";
19
+ };
20
+ arrowContainer: {
21
+ position: "absolute";
22
+ };
23
+ };
24
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { View } from 'react-native';
3
+ import type { TooltipProps } from './types';
4
+ /** Floating content bubble anchored to a trigger element with arrow pointer. */
5
+ export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<View>>;
6
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
4
+ /** Side of the reference element where the tooltip appears */
5
+ export type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
6
+ /** Alignment of the tooltip along the side axis */
7
+ export type TooltipAlign = 'start' | 'center' | 'end';
8
+ /**
9
+ * Props for the Tooltip component.
10
+ * Renders a floating content bubble anchored to a trigger element.
11
+ *
12
+ * Mobile deviation: Uses onPress/onLongPress instead of hover/focus trigger.
13
+ * Mobile deviation: Adds autoHideDuration for auto-dismiss (web uses delayDuration for hover delay).
14
+ */
15
+ export interface TooltipProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
16
+ /** Tooltip content — text string or ReactNode */
17
+ content: ReactNode;
18
+ /** Trigger element that the tooltip anchors to */
19
+ children: ReactNode;
20
+ /** Which side of the trigger the tooltip appears on (default: 'top') */
21
+ side?: TooltipSide;
22
+ /** Alignment along the side axis (default: 'center') */
23
+ align?: TooltipAlign;
24
+ /** Controlled open state */
25
+ open?: boolean;
26
+ /** Default open state for uncontrolled usage */
27
+ defaultOpen?: boolean;
28
+ /** Called when open state changes */
29
+ onOpenChange?: (open: boolean) => void;
30
+ /** Distance in dp between tooltip and trigger (default: 6) */
31
+ sideOffset?: number;
32
+ /** Auto-dismiss duration in ms; 0 = no auto-dismiss (default: 0) */
33
+ autoHideDuration?: number;
34
+ /** Whether to show the arrow pointer (default: true) */
35
+ hasArrow?: boolean;
36
+ /** Trigger interaction: 'press' opens on tap, 'longPress' opens on long press (default: 'press') */
37
+ triggerAction?: 'press' | 'longPress';
38
+ }
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,98 @@
1
+ import type { AccessibilityRole, ViewProps, ViewStyle, TextStyle } from 'react-native';
2
+ import { TextInput as RNTextInput } from 'react-native';
3
+ import type { AnimatedProps } from 'react-native-reanimated';
4
+ /** @see https://reactnative.dev/docs/accessibility */
5
+ export interface BaseAccessibilityProps {
6
+ /**
7
+ * Used to locate a component in end-to-end tests.
8
+ * @see https://reactnative.dev/docs/view#testid
9
+ */
10
+ testID?: string;
11
+ accessible?: boolean;
12
+ accessibilityRole?: AccessibilityRole;
13
+ accessibilityLabel?: string;
14
+ accessibilityHint?: string;
15
+ accessibilityState?: {
16
+ disabled?: boolean;
17
+ selected?: boolean;
18
+ checked?: boolean | 'mixed';
19
+ busy?: boolean;
20
+ expanded?: boolean;
21
+ };
22
+ accessibilityValue?: {
23
+ min?: number;
24
+ max?: number;
25
+ now?: number;
26
+ text?: string;
27
+ };
28
+ /** iOS only */
29
+ accessibilityViewIsModal?: boolean;
30
+ /** iOS only */
31
+ accessibilityElementsHidden?: boolean;
32
+ /** Android only */
33
+ accessibilityLiveRegion?: 'none' | 'polite' | 'assertive';
34
+ /** iOS only */
35
+ accessibilityIgnoresInvertColors?: boolean;
36
+ /** Android only */
37
+ importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants';
38
+ }
39
+ export interface MarginProps {
40
+ margin?: number;
41
+ marginHorizontal?: number;
42
+ marginVertical?: number;
43
+ marginTop?: number;
44
+ marginBottom?: number;
45
+ marginLeft?: number;
46
+ marginRight?: number;
47
+ }
48
+ export interface PaddingProps {
49
+ padding?: number;
50
+ paddingHorizontal?: number;
51
+ paddingVertical?: number;
52
+ paddingTop?: number;
53
+ paddingBottom?: number;
54
+ paddingLeft?: number;
55
+ paddingRight?: number;
56
+ }
57
+ export interface ResolvedSpacing {
58
+ top: number;
59
+ bottom: number;
60
+ left: number;
61
+ right: number;
62
+ }
63
+ /**
64
+ * Provides `css` and `style` props for component style overrides.
65
+ * `css` is applied before `style`, allowing layered customization.
66
+ */
67
+ export interface CommonStyleProps {
68
+ css?: ViewStyle;
69
+ style?: ViewStyle;
70
+ }
71
+ /** Type-safe wrapper around `Animated.View` from react-native-reanimated. */
72
+ type AnimatedViewComponent = React.FC<AnimatedProps<ViewProps>>;
73
+ export declare const AnimatedView: AnimatedViewComponent;
74
+ /** Resolves margin shorthand props into individual top/bottom/left/right values. */
75
+ export declare const resolveMargin: (props: MarginProps, defaultSpacing?: number) => ResolvedSpacing;
76
+ /** Resolves padding shorthand props into individual top/bottom/left/right values. */
77
+ export declare const resolvePadding: (props: PaddingProps, defaultSpacing?: number) => ResolvedSpacing;
78
+ /**
79
+ * Returns a hex color string with the given opacity applied as an alpha channel.
80
+ *
81
+ * @param color Hex color (#RGB, #RRGGBB, or #RRGGBBAA — existing alpha is stripped)
82
+ * @param opacity Opacity between 0 (fully transparent) and 1 (fully opaque)
83
+ * @returns Hex color with alpha channel (#RRGGBBAA)
84
+ *
85
+ * @example
86
+ * colorOpacity('#00828D', 0.1) // '#00828D1A'
87
+ * colorOpacity('#64748B', 0.8) // '#64748BCC'
88
+ */
89
+ export declare const colorOpacity: (color: string, opacity: number) => string;
90
+ /**
91
+ * Builds a platform-safe text style. On the system font, `fontWeight` is
92
+ * included directly; on custom fonts the weight is baked into the family
93
+ * name so the property is omitted to avoid Android rendering issues.
94
+ */
95
+ export declare const createTextStyle: (fontFamily: string, fontWeight?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "normal" | "bold") => Pick<TextStyle, "fontFamily" | "fontWeight">;
96
+ export declare function getBottomSheetTextInput(): typeof RNTextInput;
97
+ export {};
98
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,48 +1,156 @@
1
1
  {
2
2
  "name": "@sparrowengg/twigs-mobile",
3
- "version": "0.0.4",
4
- "main": "dist/commonjs/index.js",
5
- "module": "dist/module/index.js",
6
- "types": "dist/types/index.d.ts",
7
- "react-native": "src/index.ts",
3
+ "version": "0.1.1",
4
+ "description": "Twigs React Native component library",
5
+ "main": "./lib/commonjs/index.js",
6
+ "module": "./lib/module/index.js",
7
+ "types": "./lib/typescript/index.d.ts",
8
+ "react-native": "./lib/commonjs/index.js",
9
+ "source": "./src/index.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./lib/typescript/index.d.ts",
13
+ "import": "./lib/module/index.js",
14
+ "require": "./lib/commonjs/index.js"
15
+ },
16
+ "./theme": {
17
+ "types": "./lib/typescript/theme/index.d.ts",
18
+ "import": "./lib/module/theme/index.js",
19
+ "require": "./lib/commonjs/theme/index.js"
20
+ }
21
+ },
8
22
  "files": [
9
- "dist",
10
- "src"
23
+ "lib",
24
+ "!**/__tests__",
25
+ "!**/__fixtures__",
26
+ "!**/__mocks__",
27
+ "!**/*.stories.*",
28
+ "!**/*.map"
11
29
  ],
12
30
  "scripts": {
13
31
  "build": "bob build",
14
- "clean": "rimraf dist"
32
+ "prepack": "bob build",
33
+ "example": "npm start --prefix example",
34
+ "example:ios": "npm run ios --prefix example",
35
+ "example:android": "npm run android --prefix example",
36
+ "lint": "eslint src/**/*.{ts,tsx}",
37
+ "lint:fix": "eslint src/**/*.{ts,tsx} --fix",
38
+ "format": "prettier --write \"src/**/*.{ts,tsx,json}\"",
39
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,json}\"",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "jest",
42
+ "test:watch": "jest --watch",
43
+ "test:coverage": "jest --coverage",
44
+ "release": "release-it",
45
+ "release:dry": "release-it --dry-run"
46
+ },
47
+ "publishConfig": {
48
+ "registry": "https://registry.npmjs.org/",
49
+ "access": "public"
15
50
  },
16
51
  "keywords": [
17
- "react",
18
52
  "react-native",
19
- "components",
53
+ "expo",
54
+ "twigs",
55
+ "twigs-mobile",
56
+ "surveysparrow",
20
57
  "ui",
21
- "design",
22
- "library",
23
- "expo"
58
+ "component-library"
24
59
  ],
25
- "author": "Meenakshi Sundaram",
26
- "license": "ISC",
27
- "description": "",
28
- "dependencies": {
29
- "@types/react": "^19.0.0",
30
- "@types/react-native": "^0.73.0",
31
- "react": "^19.0.0",
32
- "react-native": "^0.76.3",
33
- "styled-components": "^6.1.13",
34
- "typescript": "^5.7.2"
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/surveysparrow/twigs-mobile.git"
63
+ },
64
+ "homepage": "https://github.com/surveysparrow/twigs-mobile#readme",
65
+ "bugs": {
66
+ "url": "https://github.com/surveysparrow/twigs-mobile/issues"
67
+ },
68
+ "author": "SurveySparrow",
69
+ "license": "MIT",
70
+ "engines": {
71
+ "node": ">=18.20.1"
72
+ },
73
+ "peerDependencies": {
74
+ "@gorhom/bottom-sheet": ">=5.0.0",
75
+ "react": ">=18.0.0",
76
+ "react-native": ">=0.71.0",
77
+ "react-native-gesture-handler": ">=2.0.0",
78
+ "react-native-reanimated": ">=3.0.0",
79
+ "react-native-safe-area-context": ">=4.0.0",
80
+ "react-native-screens": ">=3.0.0",
81
+ "react-native-svg": ">=13.0.0"
35
82
  },
36
83
  "devDependencies": {
37
- "react-native-builder-bob": "^0.35.0"
84
+ "@gorhom/bottom-sheet": "^5.2.6",
85
+ "@react-native/babel-preset": "^0.83.1",
86
+ "@release-it/conventional-changelog": "^10.0.5",
87
+ "@testing-library/jest-native": "^5.4.3",
88
+ "@testing-library/react-native": "^13.3.3",
89
+ "@types/jest": "^30.0.0",
90
+ "@types/react": "^18.2.48",
91
+ "@types/react-native": "^0.73.0",
92
+ "@types/react-test-renderer": "18",
93
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
94
+ "@typescript-eslint/parser": "^7.0.0",
95
+ "eslint": "^8.56.0",
96
+ "eslint-plugin-react": "^7.33.2",
97
+ "eslint-plugin-react-hooks": "^4.6.0",
98
+ "eslint-plugin-react-native": "^4.1.0",
99
+ "husky": "^9.0.0",
100
+ "jest": "^30.2.0",
101
+ "lint-staged": "^15.2.0",
102
+ "prettier": "^3.2.0",
103
+ "react": "^18.3.1",
104
+ "react-native": "^0.76.0",
105
+ "react-native-builder-bob": "^0.30.2",
106
+ "react-native-gesture-handler": "~2.20.2",
107
+ "react-native-reanimated": "~3.16.1",
108
+ "react-native-safe-area-context": "~4.14.0",
109
+ "react-native-screens": "~4.4.0",
110
+ "react-native-svg": "~15.8.0",
111
+ "react-test-renderer": "18.3.1",
112
+ "release-it": "^19.2.4",
113
+ "ts-jest": "^29.4.6",
114
+ "typescript": "^5.3.3"
115
+ },
116
+ "lint-staged": {
117
+ "src/**/*.{ts,tsx}": [
118
+ "eslint --fix",
119
+ "prettier --write"
120
+ ],
121
+ "src/**/*.{json,md}": [
122
+ "prettier --write"
123
+ ]
38
124
  },
125
+ "workspaces": [
126
+ "example"
127
+ ],
39
128
  "react-native-builder-bob": {
40
129
  "source": "src",
41
- "output": "dist",
130
+ "output": "lib",
131
+ "exclude": [
132
+ "**/{__tests__,__fixtures__,__mocks__}/**",
133
+ "**/*.stories.{ts,tsx}"
134
+ ],
42
135
  "targets": [
43
- "commonjs",
44
- "module",
136
+ [
137
+ "commonjs",
138
+ {
139
+ "configFile": true,
140
+ "sourceMaps": false
141
+ }
142
+ ],
143
+ [
144
+ "module",
145
+ {
146
+ "configFile": true,
147
+ "sourceMaps": false
148
+ }
149
+ ],
45
150
  "typescript"
46
151
  ]
152
+ },
153
+ "dependencies": {
154
+ "@floating-ui/react-native": "^0.10.9"
47
155
  }
48
156
  }
@@ -1,83 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Box = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _native = _interopRequireDefault(require("styled-components/native"));
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- const DEFAULT_SPACING = 0;
12
- const resolveMargin = ({
13
- margin,
14
- marginHorizontal,
15
- marginVertical,
16
- marginTop,
17
- marginBottom,
18
- marginLeft,
19
- marginRight
20
- }) => ({
21
- top: marginTop ?? marginVertical ?? margin ?? DEFAULT_SPACING,
22
- bottom: marginBottom ?? marginVertical ?? margin ?? DEFAULT_SPACING,
23
- left: marginLeft ?? marginHorizontal ?? margin ?? DEFAULT_SPACING,
24
- right: marginRight ?? marginHorizontal ?? margin ?? DEFAULT_SPACING
25
- });
26
- const resolvePadding = ({
27
- padding,
28
- paddingHorizontal,
29
- paddingVertical,
30
- paddingTop,
31
- paddingBottom,
32
- paddingLeft,
33
- paddingRight
34
- }) => ({
35
- top: paddingTop ?? paddingVertical ?? padding ?? DEFAULT_SPACING,
36
- bottom: paddingBottom ?? paddingVertical ?? padding ?? DEFAULT_SPACING,
37
- left: paddingLeft ?? paddingHorizontal ?? padding ?? DEFAULT_SPACING,
38
- right: paddingRight ?? paddingHorizontal ?? padding ?? DEFAULT_SPACING
39
- });
40
- const StyledBox = _native.default.View`
41
- ${({
42
- margin = 0,
43
- ...rest
44
- }) => {
45
- const resolvedMargin = resolveMargin({
46
- margin,
47
- ...rest
48
- });
49
- return `
50
- margin-top: ${resolvedMargin.top}px;
51
- margin-bottom: ${resolvedMargin.bottom}px;
52
- margin-left: ${resolvedMargin.left}px;
53
- margin-right: ${resolvedMargin.right}px;
54
- `;
55
- }}
56
-
57
- ${({
58
- padding = 0,
59
- ...rest
60
- }) => {
61
- const resolvedPadding = resolvePadding({
62
- padding,
63
- ...rest
64
- });
65
- return `
66
- padding-top: ${resolvedPadding.top}px;
67
- padding-bottom: ${resolvedPadding.bottom}px;
68
- padding-left: ${resolvedPadding.left}px;
69
- padding-right: ${resolvedPadding.right}px;
70
- `;
71
- }}
72
- `;
73
- const Box = ({
74
- style,
75
- children,
76
- ...rest
77
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledBox, {
78
- style: style,
79
- ...rest,
80
- children: children
81
- });
82
- exports.Box = Box;
83
- //# sourceMappingURL=box.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_native","_jsxRuntime","e","__esModule","default","DEFAULT_SPACING","resolveMargin","margin","marginHorizontal","marginVertical","marginTop","marginBottom","marginLeft","marginRight","top","bottom","left","right","resolvePadding","padding","paddingHorizontal","paddingVertical","paddingTop","paddingBottom","paddingLeft","paddingRight","StyledBox","styled","View","rest","resolvedMargin","resolvedPadding","Box","style","children","jsx","exports"],"sourceRoot":"../../../src","sources":["Box/box.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA8C,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9C,MAAMG,eAAe,GAAG,CAAC;AAEzB,MAAMC,aAAa,GAAGA,CAAC;EACrBC,MAAM;EACNC,gBAAgB;EAChBC,cAAc;EACdC,SAAS;EACTC,YAAY;EACZC,UAAU;EACVC;AACiB,CAAC,MAAM;EACxBC,GAAG,EAAEJ,SAAS,IAAID,cAAc,IAAIF,MAAM,IAAIF,eAAe;EAC7DU,MAAM,EAAEJ,YAAY,IAAIF,cAAc,IAAIF,MAAM,IAAIF,eAAe;EACnEW,IAAI,EAAEJ,UAAU,IAAIJ,gBAAgB,IAAID,MAAM,IAAIF,eAAe;EACjEY,KAAK,EAAEJ,WAAW,IAAIL,gBAAgB,IAAID,MAAM,IAAIF;AACtD,CAAC,CAAC;AAEF,MAAMa,cAAc,GAAGA,CAAC;EACtBC,OAAO;EACPC,iBAAiB;EACjBC,eAAe;EACfC,UAAU;EACVC,aAAa;EACbC,WAAW;EACXC;AACiB,CAAC,MAAM;EACxBX,GAAG,EAAEQ,UAAU,IAAID,eAAe,IAAIF,OAAO,IAAId,eAAe;EAChEU,MAAM,EAAEQ,aAAa,IAAIF,eAAe,IAAIF,OAAO,IAAId,eAAe;EACtEW,IAAI,EAAEQ,WAAW,IAAIJ,iBAAiB,IAAID,OAAO,IAAId,eAAe;EACpEY,KAAK,EAAEQ,YAAY,IAAIL,iBAAiB,IAAID,OAAO,IAAId;AACzD,CAAC,CAAC;AAqBF,MAAMqB,SAAS,GAAGC,eAAM,CAACC,IAAc;AACvC,IAAI,CAAC;EAAErB,MAAM,GAAG,CAAC;EAAE,GAAGsB;AAAK,CAAC,KAAK;EAC7B,MAAMC,cAAc,GAAGxB,aAAa,CAAC;IAAEC,MAAM;IAAE,GAAGsB;EAAK,CAAC,CAAC;EACzD,OAAO;AACX,oBAAoBC,cAAc,CAAChB,GAAG;AACtC,uBAAuBgB,cAAc,CAACf,MAAM;AAC5C,qBAAqBe,cAAc,CAACd,IAAI;AACxC,sBAAsBc,cAAc,CAACb,KAAK;AAC1C,KAAK;AACH,CAAC;AACH;AACA,IAAI,CAAC;EAAEE,OAAO,GAAG,CAAC;EAAE,GAAGU;AAAK,CAAC,KAAK;EAC9B,MAAME,eAAe,GAAGb,cAAc,CAAC;IAAEC,OAAO;IAAE,GAAGU;EAAK,CAAC,CAAC;EAC5D,OAAO;AACX,qBAAqBE,eAAe,CAACjB,GAAG;AACxC,wBAAwBiB,eAAe,CAAChB,MAAM;AAC9C,sBAAsBgB,eAAe,CAACf,IAAI;AAC1C,uBAAuBe,eAAe,CAACd,KAAK;AAC5C,KAAK;AACH,CAAC;AACH,CAAC;AAEM,MAAMe,GAAG,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGL;AAAgB,CAAC,kBACzD,IAAA5B,WAAA,CAAAkC,GAAA,EAACT,SAAS;EAACO,KAAK,EAAEA,KAAM;EAAA,GAAKJ,IAAI;EAAAK,QAAA,EAC9BA;AAAQ,CACA,CACZ;AAACE,OAAA,CAAAJ,GAAA,GAAAA,GAAA","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _box = require("./box");
7
- Object.keys(_box).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _box[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _box[key];
14
- }
15
- });
16
- });
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_box","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["Box/index.tsx"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TwigsThemeProvider = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _native = require("styled-components/native");
9
- var _theme = require("../config/theme");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const TwigsThemeProvider = ({
13
- children,
14
- theme = _theme.defaultTheme
15
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ThemeProvider, {
16
- theme: theme,
17
- children: children
18
- });
19
- exports.TwigsThemeProvider = TwigsThemeProvider;
20
- //# sourceMappingURL=TwigsThemeProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_native","_theme","_jsxRuntime","e","__esModule","default","TwigsThemeProvider","children","theme","defaultTheme","jsx","ThemeProvider","exports"],"sourceRoot":"../../../src","sources":["ThemeProvider/TwigsThemeProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQtC,MAAMG,kBAAqD,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK,GAAGC;AAAa,CAAC,kBACtG,IAAAP,WAAA,CAAAQ,GAAA,EAACV,OAAA,CAAAW,aAAa;EAACH,KAAK,EAAEA,KAAM;EAAAD,QAAA,EAAEA;AAAQ,CAAgB,CACvD;AAACK,OAAA,CAAAN,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _TwigsThemeProvider = require("./TwigsThemeProvider");
7
- Object.keys(_TwigsThemeProvider).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _TwigsThemeProvider[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _TwigsThemeProvider[key];
14
- }
15
- });
16
- });
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_TwigsThemeProvider","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["ThemeProvider/index.ts"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}