@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,37 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { TextInputProps as RNTextInputProps } from 'react-native';
3
+ import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
4
+ export type TextAreaSize = 'lg' | 'xl';
5
+ export type TextAreaVariant = 'default' | 'filled';
6
+ export interface TextAreaProps extends Omit<RNTextInputProps, 'style' | 'multiline'>, CommonStyleProps, BaseAccessibilityProps {
7
+ /** Size preset controlling font size, border radius, and padding. @default 'lg' */
8
+ size?: TextAreaSize;
9
+ /** Visual variant. @default 'default' */
10
+ variant?: TextAreaVariant;
11
+ /** Number of visible text lines. Sets the initial height. @default 3 */
12
+ rows?: number;
13
+ /** Maximum number of rows before scrolling when autoGrow is enabled. */
14
+ maxRows?: number;
15
+ /** Whether the textarea automatically grows with content. @default true */
16
+ autoGrow?: boolean;
17
+ /** Whether the input is disabled. @default false */
18
+ disabled?: boolean;
19
+ /** Error message shown below the textarea. When present, error border styling is applied. */
20
+ errorMessage?: string;
21
+ /** Label text rendered above the textarea. */
22
+ label?: string;
23
+ /** Helper text rendered below the textarea (hidden when errorMessage is present). */
24
+ helperText?: string;
25
+ /** Show character count next to the label. Requires `maxLength` to be set. @default false */
26
+ showCount?: boolean;
27
+ /** Show a required indicator next to the label. Pass `true` for default "*" or a custom ReactElement. @default false */
28
+ requiredIndicator?: boolean | ReactElement;
29
+ /** Custom renderer for the character counter. Overrides the default `{length}/{maxLength}` display. */
30
+ renderCounter?: (info: {
31
+ length: number;
32
+ maxLength: number;
33
+ }) => ReactNode;
34
+ /** Set to `true` when this textarea is rendered inside a BottomSheet. Swaps the underlying input to BottomSheetTextInput for proper keyboard handling. @default false */
35
+ insideBottomSheet?: boolean;
36
+ }
37
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,26 @@
1
+ import type { TextInputSize } from './types';
2
+ export interface TextInputSizeConfig {
3
+ /** Input field height in dp. */
4
+ height: number;
5
+ /** Border radius in dp. */
6
+ borderRadius: number;
7
+ /** Placeholder / input text font size in dp. */
8
+ fontSize: number;
9
+ /** Horizontal padding inside the input in dp. */
10
+ paddingHorizontal: number;
11
+ /** Font size for the label text above the input. */
12
+ labelFontSize: number;
13
+ /** Line height for label text. */
14
+ labelLineHeight: number;
15
+ /** Letter spacing for label text. */
16
+ labelLetterSpacing: number;
17
+ /** Line height for placeholder / input text. */
18
+ inputLineHeight: number;
19
+ /** Icon width & height in dp. */
20
+ iconSize: number;
21
+ /** Gap between icon and text inside the input. */
22
+ iconTextGap: number;
23
+ }
24
+ /** Resolved size config for a given text-input size. */
25
+ export declare const getSizeConfig: (size: TextInputSize) => TextInputSizeConfig;
26
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { TextInput } from './text-input';
2
+ export type { TextInputProps, TextInputSize, TextInputVariant } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,43 @@
1
+ /** Static layout styles — no theme colors here. Theme-dependent styles go in helpers or component. */
2
+ export declare const styles: {
3
+ container: {
4
+ position: "relative";
5
+ width: "100%";
6
+ };
7
+ fullWidth: {
8
+ width: "100%";
9
+ };
10
+ inputWrapper: {
11
+ position: "relative";
12
+ width: "100%";
13
+ borderWidth: number;
14
+ borderStyle: "solid";
15
+ flexDirection: "row";
16
+ alignItems: "center";
17
+ };
18
+ textInput: {
19
+ outlineStyle?: string | undefined;
20
+ outlineWidth?: number | undefined;
21
+ outlineColor?: string | undefined;
22
+ flex: number;
23
+ margin: number;
24
+ padding: number;
25
+ borderWidth: number;
26
+ backgroundColor: string;
27
+ textAlignVertical: "center";
28
+ };
29
+ iconContainer: {
30
+ justifyContent: "center";
31
+ alignItems: "center";
32
+ };
33
+ labelRow: {
34
+ flexDirection: "row";
35
+ justifyContent: "space-between";
36
+ alignItems: "center";
37
+ };
38
+ labelWithIndicator: {
39
+ flexDirection: "row";
40
+ alignItems: "center";
41
+ };
42
+ };
43
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { TextInput as RNTextInput } from 'react-native';
3
+ import type { TextInputProps } from './types';
4
+ /** Themed text input with size/variant presets, icon slots, label, error state, and helper text. */
5
+ export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<RNTextInput>>;
6
+ //# sourceMappingURL=text-input.d.ts.map
@@ -0,0 +1,38 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { TextInputProps as RNTextInputProps } from 'react-native';
3
+ import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
4
+ export type TextInputSize = 'lg' | 'xl';
5
+ export type TextInputVariant = 'default' | 'filled';
6
+ export interface TextInputProps extends Omit<RNTextInputProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
7
+ /** Size preset controlling height, font size, and icon dimensions. @default 'lg' */
8
+ size?: TextInputSize;
9
+ /** Visual variant. @default 'default' */
10
+ variant?: TextInputVariant;
11
+ /** Icon rendered inside the input on the left. */
12
+ leftIcon?: ReactElement;
13
+ /** Icon rendered inside the input on the right. */
14
+ rightIcon?: ReactElement;
15
+ /** Arbitrary element rendered on the right (outside the icon slot). */
16
+ rightElement?: ReactElement;
17
+ /** Arbitrary element rendered on the left (outside the icon slot). */
18
+ leftElement?: ReactElement;
19
+ disabled?: boolean;
20
+ /** Error message shown below the input. When present, error border styling is applied automatically. */
21
+ errorMessage?: string;
22
+ /** Label text rendered above the input. */
23
+ label?: string;
24
+ /** Helper text rendered below the input (hidden when errorMessage is present). */
25
+ helperText?: string;
26
+ /** Show character count next to the label. Requires `maxLength` to be set. @default false */
27
+ showCount?: boolean;
28
+ /** Show a required indicator next to the label. Pass `true` for default "*" or a custom ReactElement. @default false */
29
+ requiredIndicator?: boolean | ReactElement;
30
+ /** Custom renderer for the character counter. Overrides the default `{length}/{maxLength}` display. */
31
+ renderCounter?: (info: {
32
+ length: number;
33
+ maxLength: number;
34
+ }) => ReactNode;
35
+ /** Set to `true` when this input is rendered inside a BottomSheet. Swaps the underlying input to BottomSheetTextInput for proper keyboard handling. @default false */
36
+ insideBottomSheet?: boolean;
37
+ }
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,209 @@
1
+ export interface ThemeColors {
2
+ primary: string;
3
+ secondary: string;
4
+ accent50: string;
5
+ accent100: string;
6
+ accent200: string;
7
+ accent300: string;
8
+ accent400: string;
9
+ accent500: string;
10
+ accent600: string;
11
+ accent700: string;
12
+ accent800: string;
13
+ accent900: string;
14
+ primary50: string;
15
+ primary100: string;
16
+ primary200: string;
17
+ primary300: string;
18
+ primary400: string;
19
+ primary500: string;
20
+ primary600: string;
21
+ primary700: string;
22
+ primary800: string;
23
+ primary900: string;
24
+ warning50: string;
25
+ warning100: string;
26
+ warning200: string;
27
+ warning300: string;
28
+ warning400: string;
29
+ warning500: string;
30
+ warning600: string;
31
+ warning700: string;
32
+ warning800: string;
33
+ warning900: string;
34
+ highlight50: string;
35
+ highlight100: string;
36
+ highlight200: string;
37
+ highlight300: string;
38
+ highlight400: string;
39
+ highlight500: string;
40
+ highlight600: string;
41
+ highlight700: string;
42
+ highlight800: string;
43
+ highlight900: string;
44
+ positive50: string;
45
+ positive100: string;
46
+ positive200: string;
47
+ positive300: string;
48
+ positive400: string;
49
+ positive500: string;
50
+ positive600: string;
51
+ positive700: string;
52
+ positive800: string;
53
+ positive900: string;
54
+ secondary50: string;
55
+ secondary100: string;
56
+ secondary200: string;
57
+ secondary300: string;
58
+ secondary400: string;
59
+ secondary500: string;
60
+ secondary600: string;
61
+ secondary700: string;
62
+ secondary800: string;
63
+ secondary900: string;
64
+ negative50: string;
65
+ negative100: string;
66
+ negative200: string;
67
+ negative300: string;
68
+ negative400: string;
69
+ negative500: string;
70
+ negative600: string;
71
+ negative700: string;
72
+ negative800: string;
73
+ negative900: string;
74
+ neutral50: string;
75
+ neutral100: string;
76
+ neutral200: string;
77
+ neutral300: string;
78
+ neutral400: string;
79
+ neutral500: string;
80
+ neutral600: string;
81
+ neutral700: string;
82
+ neutral800: string;
83
+ neutral900: string;
84
+ black50: string;
85
+ black100: string;
86
+ black200: string;
87
+ black300: string;
88
+ black400: string;
89
+ black500: string;
90
+ black600: string;
91
+ black700: string;
92
+ black800: string;
93
+ black900: string;
94
+ white50: string;
95
+ white100: string;
96
+ white200: string;
97
+ white300: string;
98
+ white400: string;
99
+ white500: string;
100
+ white600: string;
101
+ white700: string;
102
+ white800: string;
103
+ white900: string;
104
+ }
105
+ /** Space tokens in dp (density-independent pixels). Key is a scale number. */
106
+ export interface ThemeSpace {
107
+ [key: string]: number;
108
+ }
109
+ /** Font size tokens in dp. */
110
+ export interface ThemeFontSizes {
111
+ xxs: number;
112
+ xs: number;
113
+ sm: number;
114
+ md: number;
115
+ lg: number;
116
+ xl: number;
117
+ '2xl': number;
118
+ '3xl': number;
119
+ '4xl': number;
120
+ '5xl': number;
121
+ }
122
+ /** Font family tokens. */
123
+ export interface ThemeFonts {
124
+ regular: string;
125
+ medium: string;
126
+ bold: string;
127
+ }
128
+ /** Font weight tokens (React Native expects string values). */
129
+ export interface ThemeFontWeights {
130
+ [key: string]: string;
131
+ }
132
+ /** Line height tokens in dp. */
133
+ export interface ThemeLineHeights {
134
+ xxs: number;
135
+ xs: number;
136
+ sm: number;
137
+ md: number;
138
+ lg: number;
139
+ xl: number;
140
+ '2xl': number;
141
+ '3xl': number;
142
+ '4xl': number;
143
+ }
144
+ /** Letter spacing tokens in dp. */
145
+ export interface ThemeLetterSpacings {
146
+ [key: string]: number;
147
+ }
148
+ /** Component size tokens in dp. */
149
+ export interface ThemeSizes {
150
+ [key: string]: number;
151
+ }
152
+ /** Border width tokens in dp. */
153
+ export interface ThemeBorderWidths {
154
+ xs: number;
155
+ sm: number;
156
+ md: number;
157
+ lg: number;
158
+ xl: number;
159
+ }
160
+ /** Border style tokens. */
161
+ export interface ThemeBorderStyles {
162
+ [key: string]: string;
163
+ }
164
+ /** Border radius tokens in dp. `round` and `pill` use 9999. */
165
+ export interface ThemeRadii {
166
+ none: number;
167
+ xs: number;
168
+ sm: number;
169
+ md: number;
170
+ lg: number;
171
+ xl: number;
172
+ '2xl': number;
173
+ '3xl': number;
174
+ '4xl': number;
175
+ round: number;
176
+ pill: number;
177
+ }
178
+ /** Shadow tokens (React Native shadow objects serialised as strings). */
179
+ export interface ThemeShadows {
180
+ [key: string]: string;
181
+ }
182
+ /** Z-index tokens. */
183
+ export interface ThemeZIndices {
184
+ [key: string]: number;
185
+ }
186
+ /** Transition duration tokens in milliseconds. */
187
+ export interface ThemeTransitions {
188
+ [key: string]: number;
189
+ }
190
+ /** Complete theme object consumed by all Twigs components via `useTheme()`. */
191
+ export interface TwigsTheme {
192
+ colors: ThemeColors;
193
+ space: ThemeSpace;
194
+ fontSizes: ThemeFontSizes;
195
+ fonts: ThemeFonts;
196
+ fontWeights: ThemeFontWeights;
197
+ lineHeights: ThemeLineHeights;
198
+ letterSpacings: ThemeLetterSpacings;
199
+ sizes: ThemeSizes;
200
+ borderWidths: ThemeBorderWidths;
201
+ borderStyles: ThemeBorderStyles;
202
+ radii: ThemeRadii;
203
+ shadows: ThemeShadows;
204
+ zIndices: ThemeZIndices;
205
+ transitions: ThemeTransitions;
206
+ }
207
+ /** Default theme values. All dimension tokens are React Native dp numbers. */
208
+ export declare const defaultTheme: TwigsTheme;
209
+ //# sourceMappingURL=default-theme.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { defaultTheme } from './default-theme';
2
+ export { defaultTheme as theme } from './default-theme';
3
+ export type { TwigsTheme, ThemeColors, ThemeSpace, ThemeFontSizes, ThemeFonts, ThemeFontWeights, ThemeLineHeights, ThemeLetterSpacings, ThemeSizes, ThemeBorderWidths, ThemeBorderStyles, ThemeRadii, ThemeShadows, ThemeZIndices, ThemeTransitions, } from './default-theme';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,42 @@
1
+ import type { ToastVariant, ToastPosition } from './types';
2
+ interface VariantColorConfig {
3
+ background: string;
4
+ text: string;
5
+ icon: string;
6
+ actionText: string;
7
+ }
8
+ export declare const VARIANT_COLORS: Record<ToastVariant, VariantColorConfig>;
9
+ export declare const TOAST_ICON_SIZE = 24;
10
+ export declare const TOAST_BORDER_RADIUS = 8;
11
+ export declare const TOAST_PADDING_HORIZONTAL = 16;
12
+ export declare const TOAST_PADDING_VERTICAL = 12;
13
+ export declare const TOAST_CONTAINER_GAP = 16;
14
+ export declare const TOAST_CONTENT_GAP = 8;
15
+ export declare const TOAST_MAX_WIDTH = 400;
16
+ export declare const TOAST_MIN_HEIGHT = 48;
17
+ export declare const TOAST_TITLE_FONT_SIZE = 14;
18
+ export declare const TOAST_TITLE_LINE_HEIGHT = 20;
19
+ export declare const TOAST_DESCRIPTION_FONT_SIZE = 12;
20
+ export declare const TOAST_DESCRIPTION_LINE_HEIGHT = 16;
21
+ export declare const DEFAULT_VARIANT: ToastVariant;
22
+ export declare const DEFAULT_DURATION = 4000;
23
+ export declare const DEFAULT_POSITION: ToastPosition;
24
+ export declare const DEFAULT_MAX_TOASTS = 3;
25
+ export declare const DEFAULT_GAP = 8;
26
+ export declare const DEFAULT_OFFSET = 40;
27
+ export declare const ANIMATION_DURATION = 300;
28
+ export declare const SWIPE_THRESHOLD = 24;
29
+ export declare const SWIPE_ELASTIC_RESISTANCE = 0.4;
30
+ export declare const SWIPE_DISMISS_OFFSET = -300;
31
+ export declare const ENTRY_SPRING_CONFIG: {
32
+ damping: number;
33
+ stiffness: number;
34
+ mass: number;
35
+ };
36
+ export declare const PAN_ACTIVE_OFFSET_Y: [number, number];
37
+ export declare const PAN_FAIL_OFFSET_X: [number, number];
38
+ export declare const POSITION_STYLES: Record<ToastPosition, {
39
+ vertical: 'top' | 'bottom';
40
+ }>;
41
+ export {};
42
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,16 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { TwigsTheme } from '../theme';
3
+ import type { ToastVariant, ToastPosition } from './types';
4
+ export declare function generateToastId(): string;
5
+ export declare function getVariantContainerStyles(theme: TwigsTheme, variant: ToastVariant): ViewStyle;
6
+ export declare function getIconColor(theme: TwigsTheme, variant: ToastVariant): string;
7
+ export declare function getBackgroundColor(theme: TwigsTheme, variant: ToastVariant): string;
8
+ export declare function getTitleStyles(theme: TwigsTheme, variant: ToastVariant): TextStyle;
9
+ export declare function getDescriptionStyles(theme: TwigsTheme, variant: ToastVariant): TextStyle;
10
+ /**
11
+ * Applies elastic resistance to a swipe distance (Reanimated worklet).
12
+ * Returns a dampened value that decreases progressively as distance grows.
13
+ */
14
+ export declare function elasticResistance(distance: number): number;
15
+ export declare function getPositionContainerStyle(position: ToastPosition, offset: number): ViewStyle;
16
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ToastIconProps, ToastInfoIconProps } from './types';
3
+ /** Filled check-circle icon for success/default variants. */
4
+ export declare const CheckCircleFilledIcon: ({ size, color }: ToastIconProps) => React.JSX.Element;
5
+ /** Filled alert-triangle icon for error variant. */
6
+ export declare const AlertFilledIcon: ({ size, color }: ToastIconProps) => React.JSX.Element;
7
+ /** Filled info-circle icon with inner cutout color for the "i" glyph. */
8
+ export declare const InfoCircleFilledIcon: ({ size, color, innerColor }: ToastInfoIconProps) => React.JSX.Element;
9
+ export declare const VARIANT_ICONS: Record<string, React.FC<ToastIconProps>>;
10
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1,5 @@
1
+ export { ToastProvider } from './toast-provider';
2
+ export { toast } from './toast';
3
+ export { useToast } from './use-toast';
4
+ export type { ToastOptions, ToastProviderProps, ToastVariant, ToastPosition, ToastState, ToastContextType, ToastItemProps, ToastContainerProps, ToastContentProps, ToastIconProps, ToastInfoIconProps, UseToastReturn, } from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,47 @@
1
+ export declare const styles: {
2
+ overlay: {
3
+ position: "absolute";
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ };
9
+ gestureRoot: {
10
+ flex: number;
11
+ };
12
+ stackContainer: {
13
+ width: "100%";
14
+ };
15
+ toastWrapper: {
16
+ width: "100%";
17
+ alignItems: "center";
18
+ };
19
+ container: {
20
+ flexDirection: "row";
21
+ alignItems: "center";
22
+ };
23
+ contentSection: {
24
+ flexDirection: "row";
25
+ flex: number;
26
+ alignItems: "center";
27
+ gap: number;
28
+ };
29
+ iconContainer: {
30
+ alignItems: "center";
31
+ justifyContent: "center";
32
+ };
33
+ textContainer: {
34
+ flex: number;
35
+ };
36
+ title: {
37
+ flexShrink: number;
38
+ };
39
+ description: {
40
+ flexShrink: number;
41
+ };
42
+ actionContainer: {
43
+ alignItems: "center";
44
+ justifyContent: "center";
45
+ };
46
+ };
47
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ToastContainerProps } from './types';
3
+ export declare const ToastContainer: (props: ToastContainerProps) => React.JSX.Element;
4
+ //# sourceMappingURL=toast-container.d.ts.map
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { ToastContentProps } from './types';
3
+ /**
4
+ * Visual content renderer for a single toast. Consumed by ToastItem.
5
+ * Not exported from the public API — consumers interact via toast() and ToastProvider.
6
+ */
7
+ export declare const ToastContent: ({ title, description, variant: variantProp, icon, action, }: ToastContentProps) => React.JSX.Element;
8
+ //# sourceMappingURL=toast-content.d.ts.map
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { ToastItemProps } from './types';
3
+ export declare const ToastItem: React.NamedExoticComponent<ToastItemProps>;
4
+ //# sourceMappingURL=toast-item.d.ts.map
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { ToastProviderProps } from './types';
3
+ /**
4
+ * Provides toast infrastructure for the app. Must be placed inside TwigsProvider
5
+ * so toast renderers can access the theme.
6
+ *
7
+ * Manages the toast queue and renders stacked toast containers per position.
8
+ */
9
+ export declare const ToastProvider: {
10
+ ({ children, defaultPosition, defaultDuration, maxToasts, gap, offset, }: ToastProviderProps): React.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ //# sourceMappingURL=toast-provider.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { toast } from './use-toast';
2
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1,123 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ /** Toast variant determines the visual appearance and default icon */
3
+ export type ToastVariant = 'default' | 'secondary' | 'success' | 'error' | 'warning' | 'loading';
4
+ /** Toast display position */
5
+ export type ToastPosition = 'top-center' | 'bottom-center';
6
+ /** Options for the imperative toast() function */
7
+ export interface ToastOptions {
8
+ /** Unique identifier — auto-generated if omitted, pass to update an existing toast */
9
+ id?: string;
10
+ /** Primary text shown in the toast */
11
+ title: string;
12
+ /** Secondary text below the title */
13
+ description?: string;
14
+ /** Visual variant that controls colors and default icon */
15
+ variant?: ToastVariant;
16
+ /** Custom icon element — overrides the default variant icon */
17
+ icon?: ReactElement;
18
+ /** Action element rendered on the right side (e.g. LinkButton, IconButton) */
19
+ action?: ReactElement;
20
+ /** Auto-dismiss duration in milliseconds (Infinity for no auto-dismiss) */
21
+ duration?: number;
22
+ /** Display position */
23
+ position?: ToastPosition;
24
+ /** Callback when the toast body is pressed */
25
+ onPress?: () => void;
26
+ /** Callback when the toast becomes visible */
27
+ onShow?: () => void;
28
+ /** Callback when the toast is dismissed */
29
+ onDismiss?: () => void;
30
+ }
31
+ /** Internal toast state tracked by the provider */
32
+ export interface ToastState extends Required<Omit<ToastOptions, 'icon' | 'action' | 'onPress' | 'onShow' | 'onDismiss'>> {
33
+ id: string;
34
+ icon: ReactElement | null;
35
+ action: ReactElement | null;
36
+ createdAt: number;
37
+ onPress?: () => void;
38
+ onShow?: () => void;
39
+ onDismiss?: () => void;
40
+ }
41
+ /** Props for the ToastProvider component */
42
+ export interface ToastProviderProps {
43
+ children: ReactNode;
44
+ /** Default position for all toasts */
45
+ defaultPosition?: ToastPosition;
46
+ /** Default auto-dismiss duration in milliseconds */
47
+ defaultDuration?: number;
48
+ /** Maximum number of visible toasts per position */
49
+ maxToasts?: number;
50
+ /** Gap between stacked toasts in dp */
51
+ gap?: number;
52
+ /** Offset from the screen edge in dp */
53
+ offset?: number;
54
+ }
55
+ /** Context type for toast operations */
56
+ export interface ToastContextType {
57
+ add: (options: ToastOptions) => {
58
+ id: string;
59
+ dismiss: () => void;
60
+ };
61
+ dismiss: (id?: string) => void;
62
+ update: (id: string, options: Partial<ToastOptions>) => void;
63
+ toasts: ToastState[];
64
+ }
65
+ /** Props for individual ToastItem component */
66
+ export interface ToastItemProps extends ToastState {
67
+ onRemove: (id: string) => void;
68
+ }
69
+ /** Props for the ToastContainer and PositionedStack */
70
+ export interface ToastContainerProps {
71
+ toasts: ToastState[];
72
+ position: ToastPosition;
73
+ offset: number;
74
+ gap: number;
75
+ onRemove: (id: string) => void;
76
+ }
77
+ /** Props for the ToastContent visual renderer */
78
+ export interface ToastContentProps {
79
+ title: string;
80
+ description?: string;
81
+ variant?: ToastVariant;
82
+ icon?: ReactElement | null;
83
+ action?: ReactElement | null;
84
+ }
85
+ /** Props for toast SVG icons */
86
+ export interface ToastIconProps {
87
+ size: number;
88
+ color: string;
89
+ }
90
+ /** Props for the info-circle icon with inner cutout color */
91
+ export interface ToastInfoIconProps extends ToastIconProps {
92
+ innerColor: string;
93
+ }
94
+ /** Return type of the useToast hook */
95
+ export interface UseToastReturn {
96
+ show: (options: ToastOptions) => {
97
+ id: string;
98
+ dismiss: () => void;
99
+ };
100
+ secondary: (arg: string | Omit<ToastOptions, 'variant'>) => {
101
+ id: string;
102
+ dismiss: () => void;
103
+ };
104
+ success: (arg: string | Omit<ToastOptions, 'variant'>) => {
105
+ id: string;
106
+ dismiss: () => void;
107
+ };
108
+ error: (arg: string | Omit<ToastOptions, 'variant'>) => {
109
+ id: string;
110
+ dismiss: () => void;
111
+ };
112
+ warning: (arg: string | Omit<ToastOptions, 'variant'>) => {
113
+ id: string;
114
+ dismiss: () => void;
115
+ };
116
+ loading: (arg: string | Omit<ToastOptions, 'variant'>) => {
117
+ id: string;
118
+ dismiss: () => void;
119
+ };
120
+ dismiss: (id?: string) => void;
121
+ update: (id: string, options: Partial<ToastOptions>) => void;
122
+ }
123
+ //# sourceMappingURL=types.d.ts.map