@cambly/syntax-core 9.6.0 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/Avatar/Avatar.css +28 -0
  2. package/dist/Avatar/Avatar.css.map +1 -0
  3. package/dist/Avatar/Avatar.d.ts +27 -0
  4. package/dist/Avatar/Avatar.js +8 -0
  5. package/dist/Avatar/Avatar.js.map +1 -0
  6. package/dist/Avatar/Avatar.mjs +8 -0
  7. package/dist/Avatar/Avatar.mjs.map +1 -0
  8. package/dist/Badge/Badge.css +1870 -0
  9. package/dist/Badge/Badge.css.map +1 -0
  10. package/dist/Badge/Badge.d.ts +25 -0
  11. package/dist/Badge/Badge.js +13 -0
  12. package/dist/Badge/Badge.js.map +1 -0
  13. package/dist/Badge/Badge.mjs +13 -0
  14. package/dist/Badge/Badge.mjs.map +1 -0
  15. package/dist/Box/Box.css +1783 -0
  16. package/dist/Box/Box.css.map +1 -0
  17. package/dist/Box/Box.d.ts +371 -0
  18. package/dist/Box/Box.js +11 -0
  19. package/dist/Box/Box.js.map +1 -0
  20. package/dist/Box/Box.mjs +11 -0
  21. package/dist/Box/Box.mjs.map +1 -0
  22. package/dist/Button/Button.css +1956 -0
  23. package/dist/Button/Button.css.map +1 -0
  24. package/dist/Button/Button.d.ts +85 -0
  25. package/dist/Button/Button.js +21 -0
  26. package/dist/Button/Button.js.map +1 -0
  27. package/dist/Button/Button.mjs +21 -0
  28. package/dist/Button/Button.mjs.map +1 -0
  29. package/dist/Button/constants/iconSize.css +92 -0
  30. package/dist/Button/constants/iconSize.css.map +1 -0
  31. package/dist/Button/constants/iconSize.d.ts +7 -0
  32. package/dist/Button/constants/iconSize.js +8 -0
  33. package/dist/Button/constants/iconSize.js.map +1 -0
  34. package/dist/Button/constants/iconSize.mjs +8 -0
  35. package/dist/Button/constants/iconSize.mjs.map +1 -0
  36. package/dist/Button/constants/loadingIconSize.d.ts +7 -0
  37. package/dist/Button/constants/loadingIconSize.js +8 -0
  38. package/dist/Button/constants/loadingIconSize.js.map +1 -0
  39. package/dist/Button/constants/loadingIconSize.mjs +8 -0
  40. package/dist/Button/constants/loadingIconSize.mjs.map +1 -0
  41. package/dist/Button/constants/textVariant.d.ts +7 -0
  42. package/dist/Button/constants/textVariant.js +8 -0
  43. package/dist/Button/constants/textVariant.js.map +1 -0
  44. package/dist/Button/constants/textVariant.mjs +8 -0
  45. package/dist/Button/constants/textVariant.mjs.map +1 -0
  46. package/dist/ButtonGroup/ButtonGroup.css +20 -0
  47. package/dist/ButtonGroup/ButtonGroup.css.map +1 -0
  48. package/dist/ButtonGroup/ButtonGroup.d.ts +29 -0
  49. package/dist/ButtonGroup/ButtonGroup.js +8 -0
  50. package/dist/ButtonGroup/ButtonGroup.js.map +1 -0
  51. package/dist/ButtonGroup/ButtonGroup.mjs +8 -0
  52. package/dist/ButtonGroup/ButtonGroup.mjs.map +1 -0
  53. package/dist/Card/Card.css +1783 -0
  54. package/dist/Card/Card.css.map +1 -0
  55. package/dist/Card/Card.d.ts +27 -0
  56. package/dist/Card/Card.js +12 -0
  57. package/dist/Card/Card.js.map +1 -0
  58. package/dist/Card/Card.mjs +12 -0
  59. package/dist/Card/Card.mjs.map +1 -0
  60. package/dist/Checkbox/Checkbox.css +313 -0
  61. package/dist/Checkbox/Checkbox.css.map +1 -0
  62. package/dist/Checkbox/Checkbox.d.ts +48 -0
  63. package/dist/Checkbox/Checkbox.js +14 -0
  64. package/dist/Checkbox/Checkbox.js.map +1 -0
  65. package/dist/Checkbox/Checkbox.mjs +14 -0
  66. package/dist/Checkbox/Checkbox.mjs.map +1 -0
  67. package/dist/Chip/Chip.css +1902 -0
  68. package/dist/Chip/Chip.css.map +1 -0
  69. package/dist/Chip/Chip.d.ts +45 -0
  70. package/dist/Chip/Chip.js +14 -0
  71. package/dist/Chip/Chip.js.map +1 -0
  72. package/dist/Chip/Chip.mjs +14 -0
  73. package/dist/Chip/Chip.mjs.map +1 -0
  74. package/dist/Divider/Divider.css +10 -0
  75. package/dist/Divider/Divider.css.map +1 -0
  76. package/dist/Divider/Divider.d.ts +9 -0
  77. package/dist/Divider/Divider.js +8 -0
  78. package/dist/Divider/Divider.js.map +1 -0
  79. package/dist/Divider/Divider.mjs +8 -0
  80. package/dist/Divider/Divider.mjs.map +1 -0
  81. package/dist/Heading/Heading.css +248 -0
  82. package/dist/Heading/Heading.css.map +1 -0
  83. package/dist/Heading/Heading.d.ts +52 -0
  84. package/dist/Heading/Heading.js +11 -0
  85. package/dist/Heading/Heading.js.map +1 -0
  86. package/dist/Heading/Heading.mjs +11 -0
  87. package/dist/Heading/Heading.mjs.map +1 -0
  88. package/dist/IconButton/IconButton.css +227 -0
  89. package/dist/IconButton/IconButton.css.map +1 -0
  90. package/dist/IconButton/IconButton.d.ts +55 -0
  91. package/dist/IconButton/IconButton.js +13 -0
  92. package/dist/IconButton/IconButton.js.map +1 -0
  93. package/dist/IconButton/IconButton.mjs +13 -0
  94. package/dist/IconButton/IconButton.mjs.map +1 -0
  95. package/dist/LinkButton/LinkButton.css +353 -0
  96. package/dist/LinkButton/LinkButton.css.map +1 -0
  97. package/dist/LinkButton/LinkButton.d.ts +72 -0
  98. package/dist/LinkButton/LinkButton.js +17 -0
  99. package/dist/LinkButton/LinkButton.js.map +1 -0
  100. package/dist/LinkButton/LinkButton.mjs +17 -0
  101. package/dist/LinkButton/LinkButton.mjs.map +1 -0
  102. package/dist/Modal/FocusTrap.d.ts +10 -0
  103. package/dist/Modal/FocusTrap.js +8 -0
  104. package/dist/Modal/FocusTrap.js.map +1 -0
  105. package/dist/Modal/FocusTrap.mjs +8 -0
  106. package/dist/Modal/FocusTrap.mjs.map +1 -0
  107. package/dist/Modal/Layer.css +1783 -0
  108. package/dist/Modal/Layer.css.map +1 -0
  109. package/dist/Modal/Layer.d.ts +8 -0
  110. package/dist/Modal/Layer.js +12 -0
  111. package/dist/Modal/Layer.js.map +1 -0
  112. package/dist/Modal/Layer.mjs +12 -0
  113. package/dist/Modal/Layer.mjs.map +1 -0
  114. package/dist/Modal/Modal.css +1898 -0
  115. package/dist/Modal/Modal.css.map +1 -0
  116. package/dist/Modal/Modal.d.ts +113 -0
  117. package/dist/Modal/Modal.js +17 -0
  118. package/dist/Modal/Modal.js.map +1 -0
  119. package/dist/Modal/Modal.mjs +17 -0
  120. package/dist/Modal/Modal.mjs.map +1 -0
  121. package/dist/Modal/StopScroll.d.ts +7 -0
  122. package/dist/Modal/StopScroll.js +8 -0
  123. package/dist/Modal/StopScroll.js.map +1 -0
  124. package/dist/Modal/StopScroll.mjs +8 -0
  125. package/dist/Modal/StopScroll.mjs.map +1 -0
  126. package/dist/RadioButton/RadioButton.css +318 -0
  127. package/dist/RadioButton/RadioButton.css.map +1 -0
  128. package/dist/RadioButton/RadioButton.d.ts +60 -0
  129. package/dist/RadioButton/RadioButton.js +14 -0
  130. package/dist/RadioButton/RadioButton.js.map +1 -0
  131. package/dist/RadioButton/RadioButton.mjs +14 -0
  132. package/dist/RadioButton/RadioButton.mjs.map +1 -0
  133. package/dist/SelectList/SelectList.css +335 -0
  134. package/dist/SelectList/SelectList.css.map +1 -0
  135. package/dist/SelectList/SelectList.d.ts +72 -0
  136. package/dist/SelectList/SelectList.js +15 -0
  137. package/dist/SelectList/SelectList.js.map +1 -0
  138. package/dist/SelectList/SelectList.mjs +15 -0
  139. package/dist/SelectList/SelectList.mjs.map +1 -0
  140. package/dist/SelectList/SelectOption.d.ts +10 -0
  141. package/dist/SelectList/SelectOption.js +8 -0
  142. package/dist/SelectList/SelectOption.js.map +1 -0
  143. package/dist/SelectList/SelectOption.mjs +8 -0
  144. package/dist/SelectList/SelectOption.mjs.map +1 -0
  145. package/dist/TapArea/TapArea.css +53 -0
  146. package/dist/TapArea/TapArea.css.map +1 -0
  147. package/dist/TapArea/TapArea.d.ts +53 -0
  148. package/dist/TapArea/TapArea.js +10 -0
  149. package/dist/TapArea/TapArea.js.map +1 -0
  150. package/dist/TapArea/TapArea.mjs +10 -0
  151. package/dist/TapArea/TapArea.mjs.map +1 -0
  152. package/dist/TextField/TextField.css +1913 -0
  153. package/dist/TextField/TextField.css.map +1 -0
  154. package/dist/TextField/TextField.d.ts +68 -0
  155. package/dist/TextField/TextField.js +14 -0
  156. package/dist/TextField/TextField.js.map +1 -0
  157. package/dist/TextField/TextField.mjs +14 -0
  158. package/dist/TextField/TextField.mjs.map +1 -0
  159. package/dist/Typography/Typography.css +248 -0
  160. package/dist/Typography/Typography.css.map +1 -0
  161. package/dist/Typography/Typography.d.ts +83 -0
  162. package/dist/Typography/Typography.js +10 -0
  163. package/dist/Typography/Typography.js.map +1 -0
  164. package/dist/Typography/Typography.mjs +10 -0
  165. package/dist/Typography/Typography.mjs.map +1 -0
  166. package/dist/__chunks/2JWMSFS7.js +31 -0
  167. package/dist/__chunks/2JWMSFS7.js.map +1 -0
  168. package/dist/__chunks/2O6FDRTF.js +7 -0
  169. package/dist/__chunks/2O6FDRTF.js.map +1 -0
  170. package/dist/__chunks/2PHVTRWC.js +86 -0
  171. package/dist/__chunks/2PHVTRWC.js.map +1 -0
  172. package/dist/__chunks/37CQV3RS.js +111 -0
  173. package/dist/__chunks/37CQV3RS.js.map +1 -0
  174. package/dist/__chunks/3PCHHAIY.mjs +7 -0
  175. package/dist/__chunks/3PCHHAIY.mjs.map +1 -0
  176. package/dist/__chunks/3VUMTAUX.js +68 -0
  177. package/dist/__chunks/3VUMTAUX.js.map +1 -0
  178. package/dist/__chunks/42YPEAFS.js +70 -0
  179. package/dist/__chunks/42YPEAFS.js.map +1 -0
  180. package/dist/__chunks/4PWSK5GI.js +15 -0
  181. package/dist/__chunks/4PWSK5GI.js.map +1 -0
  182. package/dist/__chunks/5AR53MHD.js +1 -0
  183. package/dist/__chunks/5AR53MHD.js.map +1 -0
  184. package/dist/__chunks/5DBWL6IK.js +12 -0
  185. package/dist/__chunks/5DBWL6IK.js.map +1 -0
  186. package/dist/__chunks/5R6HCJP6.mjs +68 -0
  187. package/dist/__chunks/5R6HCJP6.mjs.map +1 -0
  188. package/dist/__chunks/6VWFOSQZ.js +14 -0
  189. package/dist/__chunks/6VWFOSQZ.js.map +1 -0
  190. package/dist/__chunks/A7UVLRKG.mjs +15 -0
  191. package/dist/__chunks/A7UVLRKG.mjs.map +1 -0
  192. package/dist/__chunks/AFINOME7.js +17 -0
  193. package/dist/__chunks/AFINOME7.js.map +1 -0
  194. package/dist/__chunks/AGAHNSZM.js +127 -0
  195. package/dist/__chunks/AGAHNSZM.js.map +1 -0
  196. package/dist/__chunks/AMBZXKUQ.mjs +12 -0
  197. package/dist/__chunks/AMBZXKUQ.mjs.map +1 -0
  198. package/dist/__chunks/BCWLWS7W.mjs +74 -0
  199. package/dist/__chunks/BCWLWS7W.mjs.map +1 -0
  200. package/dist/__chunks/BJXYKZMK.mjs +53 -0
  201. package/dist/__chunks/BJXYKZMK.mjs.map +1 -0
  202. package/dist/__chunks/BSFWQWVJ.js +36 -0
  203. package/dist/__chunks/BSFWQWVJ.js.map +1 -0
  204. package/dist/__chunks/BSWWGQAS.js +111 -0
  205. package/dist/__chunks/BSWWGQAS.js.map +1 -0
  206. package/dist/__chunks/BWTLHCW3.mjs +111 -0
  207. package/dist/__chunks/BWTLHCW3.mjs.map +1 -0
  208. package/dist/__chunks/CATJI2RJ.js +26 -0
  209. package/dist/__chunks/CATJI2RJ.js.map +1 -0
  210. package/dist/__chunks/CGGEM6XS.mjs +96 -0
  211. package/dist/__chunks/CGGEM6XS.mjs.map +1 -0
  212. package/dist/__chunks/CPBWDVD4.mjs +110 -0
  213. package/dist/__chunks/CPBWDVD4.mjs.map +1 -0
  214. package/dist/__chunks/CQ2HIJ62.js +35 -0
  215. package/dist/__chunks/CQ2HIJ62.js.map +1 -0
  216. package/dist/__chunks/CUDAH5IW.mjs +38 -0
  217. package/dist/__chunks/CUDAH5IW.mjs.map +1 -0
  218. package/dist/__chunks/D24RSGYP.js +7 -0
  219. package/dist/__chunks/D24RSGYP.js.map +1 -0
  220. package/dist/__chunks/DVVFHZBW.mjs +120 -0
  221. package/dist/__chunks/DVVFHZBW.mjs.map +1 -0
  222. package/dist/__chunks/EKJ4XOIM.mjs +12 -0
  223. package/dist/__chunks/EKJ4XOIM.mjs.map +1 -0
  224. package/dist/__chunks/ERJ5XXDH.js +96 -0
  225. package/dist/__chunks/ERJ5XXDH.js.map +1 -0
  226. package/dist/__chunks/ERXGNP37.js +7 -0
  227. package/dist/__chunks/ERXGNP37.js.map +1 -0
  228. package/dist/__chunks/F3ZST4RL.js +74 -0
  229. package/dist/__chunks/F3ZST4RL.js.map +1 -0
  230. package/dist/__chunks/FCX7QDZS.mjs +94 -0
  231. package/dist/__chunks/FCX7QDZS.mjs.map +1 -0
  232. package/dist/__chunks/FOTKCGZZ.js +53 -0
  233. package/dist/__chunks/FOTKCGZZ.js.map +1 -0
  234. package/dist/__chunks/FUBK3VZO.js +28 -0
  235. package/dist/__chunks/FUBK3VZO.js.map +1 -0
  236. package/dist/__chunks/FWVHWU47.mjs +7 -0
  237. package/dist/__chunks/FWVHWU47.mjs.map +1 -0
  238. package/dist/__chunks/G4DDTGDI.js +31 -0
  239. package/dist/__chunks/G4DDTGDI.js.map +1 -0
  240. package/dist/__chunks/GPS2XNQI.js +120 -0
  241. package/dist/__chunks/GPS2XNQI.js.map +1 -0
  242. package/dist/__chunks/GVNDZZAU.mjs +14 -0
  243. package/dist/__chunks/GVNDZZAU.mjs.map +1 -0
  244. package/dist/__chunks/HAZN2FCY.mjs +28 -0
  245. package/dist/__chunks/HAZN2FCY.mjs.map +1 -0
  246. package/dist/__chunks/HOUO3WV6.js +14 -0
  247. package/dist/__chunks/HOUO3WV6.js.map +1 -0
  248. package/dist/__chunks/HQVZUEWO.js +22 -0
  249. package/dist/__chunks/HQVZUEWO.js.map +1 -0
  250. package/dist/__chunks/IXDA4ZXP.mjs +1 -0
  251. package/dist/__chunks/IXDA4ZXP.mjs.map +1 -0
  252. package/dist/__chunks/JSEHOGL7.mjs +7 -0
  253. package/dist/__chunks/JSEHOGL7.mjs.map +1 -0
  254. package/dist/__chunks/LJHH6KUW.js +28 -0
  255. package/dist/__chunks/LJHH6KUW.js.map +1 -0
  256. package/dist/__chunks/LKQ7PJ4S.mjs +229 -0
  257. package/dist/__chunks/LKQ7PJ4S.mjs.map +1 -0
  258. package/dist/__chunks/LULBCTQR.js +38 -0
  259. package/dist/__chunks/LULBCTQR.js.map +1 -0
  260. package/dist/__chunks/LZSDWT4M.mjs +110 -0
  261. package/dist/__chunks/LZSDWT4M.mjs.map +1 -0
  262. package/dist/__chunks/M6YFAP6P.mjs +28 -0
  263. package/dist/__chunks/M6YFAP6P.mjs.map +1 -0
  264. package/dist/__chunks/MX7C572C.mjs +36 -0
  265. package/dist/__chunks/MX7C572C.mjs.map +1 -0
  266. package/dist/__chunks/MZEIZAZH.mjs +35 -0
  267. package/dist/__chunks/MZEIZAZH.mjs.map +1 -0
  268. package/dist/__chunks/OGJDUOWP.js +94 -0
  269. package/dist/__chunks/OGJDUOWP.js.map +1 -0
  270. package/dist/__chunks/OQ26OWU4.mjs +111 -0
  271. package/dist/__chunks/OQ26OWU4.mjs.map +1 -0
  272. package/dist/__chunks/PGVLU6C3.mjs +70 -0
  273. package/dist/__chunks/PGVLU6C3.mjs.map +1 -0
  274. package/dist/__chunks/PYNS67IV.js +229 -0
  275. package/dist/__chunks/PYNS67IV.js.map +1 -0
  276. package/dist/__chunks/Q2TIB7ZC.mjs +26 -0
  277. package/dist/__chunks/Q2TIB7ZC.mjs.map +1 -0
  278. package/dist/__chunks/R6CDK4GP.mjs +31 -0
  279. package/dist/__chunks/R6CDK4GP.mjs.map +1 -0
  280. package/dist/__chunks/RRE7PRE5.mjs +86 -0
  281. package/dist/__chunks/RRE7PRE5.mjs.map +1 -0
  282. package/dist/__chunks/RSU3GDHB.mjs +73 -0
  283. package/dist/__chunks/RSU3GDHB.mjs.map +1 -0
  284. package/dist/__chunks/RVT6EXR3.mjs +31 -0
  285. package/dist/__chunks/RVT6EXR3.mjs.map +1 -0
  286. package/dist/__chunks/SAEVPDUP.js +12 -0
  287. package/dist/__chunks/SAEVPDUP.js.map +1 -0
  288. package/dist/__chunks/SXTRSFG5.mjs +14 -0
  289. package/dist/__chunks/SXTRSFG5.mjs.map +1 -0
  290. package/dist/__chunks/TKYRBLSM.js +110 -0
  291. package/dist/__chunks/TKYRBLSM.js.map +1 -0
  292. package/dist/__chunks/TPMQI44L.js +7 -0
  293. package/dist/__chunks/TPMQI44L.js.map +1 -0
  294. package/dist/__chunks/UCMB6MFN.mjs +17 -0
  295. package/dist/__chunks/UCMB6MFN.mjs.map +1 -0
  296. package/dist/__chunks/UNIBFDXV.js +73 -0
  297. package/dist/__chunks/UNIBFDXV.js.map +1 -0
  298. package/dist/__chunks/WCEOAOUO.mjs +127 -0
  299. package/dist/__chunks/WCEOAOUO.mjs.map +1 -0
  300. package/dist/__chunks/WJDAVT5R.mjs +7 -0
  301. package/dist/__chunks/WJDAVT5R.mjs.map +1 -0
  302. package/dist/__chunks/X74O4HUS.js +110 -0
  303. package/dist/__chunks/X74O4HUS.js.map +1 -0
  304. package/dist/__chunks/XFKGXL73.mjs +14 -0
  305. package/dist/__chunks/XFKGXL73.mjs.map +1 -0
  306. package/dist/__chunks/XN5AALLC.mjs +22 -0
  307. package/dist/__chunks/XN5AALLC.mjs.map +1 -0
  308. package/dist/__chunks/YJ7YDIGB.js +14 -0
  309. package/dist/__chunks/YJ7YDIGB.js.map +1 -0
  310. package/dist/colors/allColors.d.ts +3 -0
  311. package/dist/colors/allColors.js +58 -0
  312. package/dist/colors/allColors.js.map +1 -0
  313. package/dist/colors/allColors.mjs +58 -0
  314. package/dist/colors/allColors.mjs.map +1 -0
  315. package/dist/colors/backgroundColor.css +167 -0
  316. package/dist/colors/backgroundColor.css.map +1 -0
  317. package/dist/colors/backgroundColor.d.ts +5 -0
  318. package/dist/colors/backgroundColor.js +10 -0
  319. package/dist/colors/backgroundColor.js.map +1 -0
  320. package/dist/colors/backgroundColor.mjs +10 -0
  321. package/dist/colors/backgroundColor.mjs.map +1 -0
  322. package/dist/colors/foregroundColor.css +167 -0
  323. package/dist/colors/foregroundColor.css.map +1 -0
  324. package/dist/colors/foregroundColor.d.ts +5 -0
  325. package/dist/colors/foregroundColor.js +10 -0
  326. package/dist/colors/foregroundColor.js.map +1 -0
  327. package/dist/colors/foregroundColor.mjs +10 -0
  328. package/dist/colors/foregroundColor.mjs.map +1 -0
  329. package/dist/colors/foregroundTypographyColor.d.ts +5 -0
  330. package/dist/colors/foregroundTypographyColor.js +8 -0
  331. package/dist/colors/foregroundTypographyColor.js.map +1 -0
  332. package/dist/colors/foregroundTypographyColor.mjs +8 -0
  333. package/dist/colors/foregroundTypographyColor.mjs.map +1 -0
  334. package/dist/constants.d.ts +4 -0
  335. package/dist/constants.js +26 -0
  336. package/dist/constants.js.map +1 -0
  337. package/dist/constants.mjs +26 -0
  338. package/dist/constants.mjs.map +1 -0
  339. package/dist/index.d.ts +21 -1250
  340. package/dist/index.js +38 -1676
  341. package/dist/index.js.map +1 -1
  342. package/dist/index.mjs +70 -1682
  343. package/dist/index.mjs.map +1 -1
  344. package/dist/useFocusVisible.d.ts +5 -0
  345. package/dist/useFocusVisible.js +8 -0
  346. package/dist/useFocusVisible.js.map +1 -0
  347. package/dist/useFocusVisible.mjs +8 -0
  348. package/dist/useFocusVisible.mjs.map +1 -0
  349. package/dist/useIsHydrated.d.ts +3 -0
  350. package/dist/useIsHydrated.js +8 -0
  351. package/dist/useIsHydrated.js.map +1 -0
  352. package/dist/useIsHydrated.mjs +8 -0
  353. package/dist/useIsHydrated.mjs.map +1 -0
  354. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,1250 +1,21 @@
1
- import * as React$1 from 'react';
2
- import React__default, { ReactNode, AriaRole, ReactElement, HtmlHTMLAttributes, HTMLInputTypeAttribute } from 'react';
3
-
4
- /**
5
- * [Avatar](https://cambly-syntax.vercel.app/?path=/docs/components-avatar--docs) is a circular image that represents a user.
6
- */
7
- declare const Avatar: ({ src, accessibilityLabel, size, }: {
8
- /**
9
- * URL of the image to display as the avatar.
10
- */
11
- src: string;
12
- /**
13
- * Alt text to use for the image.
14
- * This should describe the image to people using screen readers.
15
- */
16
- accessibilityLabel: string;
17
- /**
18
- * Size of the avatar.
19
- *
20
- * * `sm`: 24px
21
- * * `md`: 40px
22
- * * `lg`: 72px
23
- * * `xl`: 128px
24
- *
25
- * @defaultValue `md`
26
- */
27
- size?: "sm" | "md" | "lg" | "xl" | undefined;
28
- }) => JSX.Element;
29
-
30
- /**
31
- * [Badge](https://cambly-syntax.vercel.app/?path=/docs/components-badge--docs) is a component to display short text and give additional context to features and other components.
32
- */
33
- declare const Badge: ({ icon: Icon, text, color, }: {
34
- /**
35
- * The icon to be displayed. Please use a [Material Icon](https://material.io/resources/icons/)
36
- */
37
- icon?: React$1.ComponentType<{
38
- className?: string | undefined;
39
- }> | undefined;
40
- /**
41
- * The text to display inside the badge
42
- */
43
- text: string;
44
- /**
45
- * The color of the badge
46
- *
47
- * @defaultValue "primary700"
48
- */
49
- color?: "gray200" | "gray900" | "destructive700" | "orange700" | "yellow700" | "success700" | "primary700" | "purple700" | undefined;
50
- }) => JSX.Element;
51
-
52
- declare const colors: readonly ["black", "destructive100", "destructive200", "destructive300", "destructive700", "destructive800", "destructive900", "gray10", "gray100", "gray200", "gray30", "gray60", "gray300", "gray700", "gray80", "gray800", "gray900", "orange100", "orange200", "orange300", "orange700", "orange800", "orange900", "primary100", "primary200", "primary300", "primary700", "primary800", "primary900", "purple100", "purple200", "purple300", "purple700", "purple800", "purple900", "success100", "success200", "success300", "success700", "success800", "success900", "white", "yellow100", "yellow200", "yellow300", "yellow700", "yellow800", "yellow900"];
53
-
54
- type AlignItems = "baseline" | "center" | "end" | "start" | "stretch";
55
- type As = "article" | "aside" | "caption" | "div" | "figcaption" | "figure" | "footer" | "header" | "main" | "nav" | "section" | "summary";
56
- type Dimension = number | string;
57
- type Direction = "row" | "column";
58
- type Display = "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
59
- type Gap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
60
- type JustifyContent = "start" | "end" | "center" | "between" | "around" | "evenly";
61
- type Margin = -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "auto";
62
- type Padding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
63
- type Overflow = "visible" | "hidden" | "scroll" | "auto" | "inherit" | "initial";
64
- type BoxProps = {
65
- /**
66
- * The alignment of the box on the cross axis.
67
- *
68
- * Responsive props:
69
- * * `smAlignItems`
70
- * * `lgAlignItems`
71
- */
72
- alignItems?: AlignItems;
73
- /**
74
- * Allows the default alignment (or the one specified by align-items) to be overridden for individual flex items.
75
- */
76
- alignSelf?: "auto" | "start" | "end" | "center" | "baseline" | "stretch";
77
- /**
78
- * The underlying DOM element usually set for accessibility or SEO reasons.
79
- *
80
- * @defaultValue "div"
81
- */
82
- as?: As;
83
- /**
84
- * The background color of the box.
85
- */
86
- backgroundColor?: (typeof colors)[number];
87
- /**
88
- * The children to be rendered inside the box.
89
- */
90
- children?: ReactNode;
91
- /**
92
- * An "escape hatch" used to apply styles not otherwise available on Box.
93
- *
94
- * Please use this sparingly and only when you have a good reason to.
95
- */
96
- dangerouslySetInlineStyle?: {
97
- __style: Record<string, string | number | null>;
98
- };
99
- /**
100
- * The flex direction of the box.
101
- *
102
- * Responsive props:
103
- * * `smDirection`
104
- * * `lgDirection`
105
- *
106
- * @defaultValue `row`
107
- */
108
- direction?: Direction;
109
- /**
110
- * The display property specifies the display behavior (the type of rendering box) of an element.
111
- *
112
- * Responsive props:
113
- * * `smDisplay`
114
- * * `lgDisplay`
115
- *
116
- * @defaultValue `block`
117
- */
118
- display?: Display;
119
- /**
120
- * Sets the flex behavior of a flex item.
121
- *
122
- * * `none`: The item will not grow or shrink
123
- * * `shrink`: The item will shrink if necessary (default browser behavior)
124
- * * `grow`: The item will grow if necessary
125
- *
126
- * @defaultValue `shrink`
127
- */
128
- flex?: "none" | "shrink" | "grow";
129
- /**
130
- * By default, flex items will all try to fit onto one line. But if you specify `flexWrap="wrap"`, the flex items will wrap onto multiple lines.
131
- *
132
- * @defaultValue `nowrap`
133
- */
134
- flexWrap?: "wrap" | "nowrap";
135
- /**
136
- * The gap between the children of the box.
137
- */
138
- gap?: Gap;
139
- /**
140
- * The id of the element.
141
- */
142
- id?: string;
143
- /**
144
- * The alignment of the box on the cross axis on lg (960px) or larger viewports.
145
- */
146
- lgAlignItems?: AlignItems;
147
- /**
148
- * The flex direction on lg (960px) or larger viewports.
149
- */
150
- lgDirection?: Direction;
151
- /**
152
- * The display style on lg (960px) or larger viewports.
153
- */
154
- lgDisplay?: Display;
155
- /**
156
- * The alignment of the box on the cross axis on lg (960px) or larger viewports.
157
- */
158
- lgJustifyContent?: JustifyContent;
159
- /**
160
- * Margin on lg (960px) or larger viewports.
161
- */
162
- lgMargin?: Margin;
163
- /**
164
- * Bottom margin on lg (960px) or larger viewports.
165
- */
166
- lgMarginBottom?: Margin;
167
- /**
168
- * Margin to the right in left-to-right languages, and to the left in right-to-left languages on lg (960px) or larger viewports.
169
- */
170
- lgMarginEnd?: Margin;
171
- /**
172
- * Margin to the left in left-to-right languages, and to the right in right-to-left languages on lg (960px) or larger viewports.
173
- */
174
- lgMarginStart?: Margin;
175
- /**
176
- * Top margin on lg (960px) or larger viewports.
177
- */
178
- lgMarginTop?: Margin;
179
- /**
180
- * The padding of the box on lg (960px) or larger viewports.
181
- */
182
- lgPadding?: Padding;
183
- /**
184
- * The padding of the box on the x-axis on lg (960px) or larger viewports.
185
- */
186
- lgPaddingX?: Padding;
187
- /**
188
- * The padding of the box on the y-axis on lg (960px) or larger viewports.
189
- */
190
- lgPaddingY?: Padding;
191
- /**
192
- * The margin of the box.
193
- *
194
- * Responsive props:
195
- * * `smMargin`
196
- * * `lgMargin`
197
- *
198
- * @defaultValue 0
199
- */
200
- margin?: Margin;
201
- /**
202
- * Bottom margin of the box.
203
- *
204
- * Responsive props:
205
- * * `smMarginBottom`
206
- * * `lgMarginBottom`
207
- *
208
- */
209
- marginBottom?: Margin;
210
- /**
211
- * Margin to the right in left-to-right languages, and to the left in right-to-left languages.
212
- *
213
- * Responsive props:
214
- * * `smMarginEnd`
215
- * * `lgMarginEnd`
216
- *
217
- */
218
- marginEnd?: Margin;
219
- /**
220
- * Margin to the left in left-to-right languages, and to the right in right-to-left languages.
221
- *
222
- * Responsive props:
223
- * * `smMarginStart`
224
- * * `lgMarginStart`
225
- *
226
- */
227
- marginStart?: Margin;
228
- /**
229
- * Top margin of the box.
230
- *
231
- * Responsive props:
232
- * * `smMarginTop`
233
- * * `lgMarginTop`
234
- *
235
- */
236
- marginTop?: Margin;
237
- /**
238
- * The maximum height of the box.
239
- */
240
- maxHeight?: Dimension;
241
- /**
242
- * The maximum width of the box.
243
- */
244
- maxWidth?: Dimension;
245
- /**
246
- * The minimum height of the box.
247
- */
248
- minHeight?: Dimension;
249
- /**
250
- * The minimum width of the box.
251
- */
252
- minWidth?: Dimension;
253
- /**
254
- * The height of the box.
255
- */
256
- height?: Dimension;
257
- /**
258
- * The alignment of the box on the main axis.
259
- *
260
- * Responsive props:
261
- * * `smJustifyContent`
262
- * * `lgJustifyContent`
263
- *
264
- * @defaultValue "start"
265
- */
266
- justifyContent?: JustifyContent;
267
- /**
268
- * How box behaves when content does not fit in the box on both axes.
269
- *
270
- * * `visible`
271
- * * `hidden`
272
- * * `scroll`
273
- * * `auto`
274
- * * `inherit`
275
- * * `initial`
276
- *
277
- * @defaultValue "visible"
278
- */
279
- overflow?: Overflow;
280
- /**
281
- * How box behaves when content does not fit in the box on the X axis.
282
- *
283
- * * `visible`
284
- * * `hidden`
285
- * * `scroll`
286
- * * `auto`
287
- * * `inherit`
288
- * * `initial`
289
- *
290
- * @defaultValue "visible"
291
- */
292
- overflowX?: Overflow;
293
- /**
294
- * How box behaves when content does not fit in the box on the Y axis.
295
- *
296
- * * `visible`
297
- * * `hidden`
298
- * * `scroll`
299
- * * `auto`
300
- * * `inherit`
301
- * * `initial`
302
- *
303
- * @defaultValue "visible"
304
- */
305
- overflowY?: Overflow;
306
- /**
307
- * The padding of the box.
308
- *
309
- * Responsive props:
310
- * * `smPadding`
311
- * * `lgPadding`
312
- *
313
- * @defaultValue 0
314
- */
315
- padding?: Padding;
316
- /**
317
- * The padding of the box on the x-axis.
318
- *
319
- * Responsive props:
320
- * * `smPaddingX`
321
- * * `lgPaddingX`
322
- *
323
- */
324
- paddingX?: Padding;
325
- /**
326
- * The padding of the box on the y-axis.
327
- *
328
- * Responsive props:
329
- * * `smPaddingY`
330
- * * `lgPaddingY`
331
- */
332
- paddingY?: Padding;
333
- /**
334
- * The position of the box.
335
- *
336
- * @defaultValue "static"
337
- */
338
- position?: "absolute" | "fixed" | "relative" | "static" | "sticky";
339
- /**
340
- * The role attribute of the box.
341
- *
342
- * See [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the list of valid roles.
343
- */
344
- role?: AriaRole;
345
- /**
346
- * Border radius of the box.
347
- *
348
- * * `none`: 0px
349
- * * `sm`: 8px
350
- * * `md`: 12px
351
- * * `lg`: 16px
352
- * * `xl`: 24px
353
- * * `full`: 999px
354
- *
355
- * @defaultValue "none"
356
- */
357
- rounding?: "xl" | "lg" | "md" | "sm" | "full" | "none";
358
- /**
359
- * The alignment of the box on the cross axis on sm (480px) or larger viewports.
360
- */
361
- smAlignItems?: AlignItems;
362
- /**
363
- * The flex direction on sm (480px) or larger viewports.
364
- */
365
- smDirection?: Direction;
366
- /**
367
- * The display style on sm (480px) or larger viewports.
368
- */
369
- smDisplay?: Display;
370
- /**
371
- * The alignment of the box on the main axis on sm (480px) or larger viewports.
372
- */
373
- smJustifyContent?: JustifyContent;
374
- /**
375
- * Margin on sm (480px) or larger viewports.
376
- */
377
- smMargin?: Margin;
378
- /**
379
- * Bottom margin on sm (480px) or larger viewports.
380
- */
381
- smMarginBottom?: Margin;
382
- /**
383
- * Margin to the right in left-to-right languages, and to the left in right-to-left languages on sm (480px) or larger viewports.
384
- */
385
- smMarginEnd?: Margin;
386
- /**
387
- * Margin to the left in left-to-right languages, and to the right in right-to-left languages on sm (480px) or larger viewports.
388
- */
389
- smMarginStart?: Margin;
390
- /**
391
- * Top margin on sm (480px) or larger viewports.
392
- */
393
- smMarginTop?: Margin;
394
- /**
395
- * The padding of the box on sm (480px) or larger viewports.
396
- */
397
- smPadding?: Padding;
398
- /**
399
- * The padding of the box on the x-axis on sm (480px) or larger viewports.
400
- */
401
- smPaddingX?: Padding;
402
- /**
403
- * The padding of the box on the y-axis on sm (480px) or larger viewports.
404
- */
405
- smPaddingY?: Padding;
406
- /**
407
- * The width of the box.
408
- */
409
- width?: Dimension;
410
- };
411
- /**
412
- * [Box](https://cambly-syntax.vercel.app/?path=/docs/components-box--docs) is primitive design component and is used by lots of other components. It keeps details like spacing, borders and colors consistent across all of Syntax.
413
- *
414
- * Passthrough props:
415
- * * `aria-*`
416
- * * `data-testid`
417
- */
418
- declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
419
-
420
- declare const Color: readonly ["primary", "secondary", "tertiary", "branded", "inverse", "destructive-primary", "destructive-secondary", "destructive-tertiary", "success", "gray200", "gray700", "gray800", "gray900", "white", "inherit"];
421
- declare const Size: readonly ["sm", "md", "lg"];
422
-
423
- type ButtonProps = {
424
- /**
425
- * Test id for the button
426
- */
427
- "data-testid"?: string;
428
- /**
429
- * The text to be displayed inside the button
430
- */
431
- text: string;
432
- /**
433
- * The text to be displayed inside the button when it is in a loading state
434
- */
435
- loadingText?: string;
436
- /**
437
- * The color of the button
438
- *
439
- * @defaultValue "primary"
440
- */
441
- color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse";
442
- /**
443
- * The size of the button
444
- *
445
- * * `sm`: 32px
446
- * * `md`: 40px
447
- * * `lg`: 48px
448
- *
449
- * @defaultValue "md"
450
- */
451
- size?: (typeof Size)[number];
452
- /**
453
- * The label to be used for accessibility
454
- */
455
- accessibilityLabel?: string;
456
- /**
457
- * If `true`, the button will be disabled
458
- *
459
- * @defaultValue false
460
- */
461
- disabled?: boolean;
462
- /**
463
- * If `true`, the button will be in a loading state
464
- *
465
- * @defaultValue false
466
- */
467
- loading?: boolean;
468
- /**
469
- * If `true`, the button will take up the full width of its container
470
- *
471
- * @defaultValue false
472
- */
473
- fullWidth?: boolean;
474
- /**
475
- * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
476
- */
477
- startIcon?: React__default.ComponentType<{
478
- className?: string;
479
- }>;
480
- /**
481
- * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
482
- */
483
- endIcon?: React__default.ComponentType<{
484
- className?: string;
485
- }>;
486
- /**
487
- * The callback to be called when the button is clicked
488
- */
489
- onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
490
- /**
491
- * The tooltip to be displayed when the user hovers over the button
492
- */
493
- tooltip?: string;
494
- /**
495
- * The type you want to set for the primitive <button/>
496
- */
497
- type?: "button" | "submit" | "reset";
498
- };
499
- /**
500
- * [Button](https://cambly-syntax.vercel.app/?path=/docs/components-button--docs) is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
501
- */
502
- declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
503
-
504
- /**
505
- * [ButtonGroup](https://cambly-syntax.vercel.app/?path=/docs/components-buttongroup--docs) groups buttons in a row or column with consistent spacing between each button.
506
- */
507
- declare const ButtonGroup: ({ orientation, size, children, }: {
508
- /**
509
- * The orientation of the button group
510
- *
511
- * @defaultValue "horizontal"
512
- */
513
- orientation?: "horizontal" | "vertical" | undefined;
514
- /**
515
- * The size of the button group defines the spacing between each button
516
- *
517
- * * `sm`: 8px
518
- * * `md`: 12px
519
- * * `lg`: 16px
520
- *
521
- * @defaultValue "md"
522
- */
523
- size?: "sm" | "md" | "lg" | undefined;
524
- /**
525
- * Buttons to be rendered inside the button group
526
- */
527
- children?: ReactNode;
528
- }) => ReactElement;
529
-
530
- declare const DeprecatedCardSizes: readonly ["sm", "lg"];
531
- type CardType = {
532
- /**
533
- * Test id for the button
534
- */
535
- "data-testid"?: string;
536
- /**
537
- * The child components to render within Card.
538
- */
539
- children: JSX.Element;
540
- /**
541
- * The size of the card
542
- *
543
- * `sm`: 352px
544
- * `lg`: 744px
545
- *
546
- * @deprecated Card width should be controlled by the parent container
547
- * @defaultValue `undefined`
548
- */
549
- size?: (typeof DeprecatedCardSizes)[number];
550
- };
551
- /**
552
- * [Card](https://cambly-syntax.vercel.app/?path=/docs/components-card--docs) is a basic container component to apply consistent styling and render child components.
553
- */
554
- declare function Card({ children, size, "data-testid": dataTestId, }: CardType): JSX.Element;
555
-
556
- /**
557
- * [Checkbox](https://cambly-syntax.vercel.app/?path=/docs/components-checkbox--docs) is a clickable element that will show if an option has been selected or not.
558
- */
559
- declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disabledProp, size, label, error, onChange, }: {
560
- /**
561
- * Whether or not the box has been clicked
562
- *
563
- * @defaultValue false
564
- */
565
- checked: boolean;
566
- /**
567
- * Test id for the checkbox
568
- */
569
- "data-testid"?: string | undefined;
570
- /**
571
- * The callback to be called when the checkbox value changes
572
- */
573
- onChange: React__default.ChangeEventHandler<HTMLInputElement>;
574
- /**
575
- * Whether or not the box is disabled
576
- *
577
- * @defaultValue false
578
- */
579
- disabled?: boolean | undefined;
580
- /**
581
- * The size of the checkbox and icon
582
- *
583
- * * `sm`: 16px
584
- * * `md`: 24px
585
- *
586
- * @defaultValue "md"
587
- */
588
- size?: "sm" | "md" | undefined;
589
- /**
590
- * The text accompanying the checkbox
591
- */
592
- label: string;
593
- /**
594
- * Whether or not there is an error with the input
595
- *
596
- * @defaultValue false
597
- */
598
- error?: boolean | undefined;
599
- }) => ReactElement;
600
-
601
- type ChipProps = {
602
- /**
603
- * Sets the initial status of this chip component.
604
- * * `true` will display a grey chip.
605
- * * `false` will display a premium800 color chip.
606
- *
607
- * @defaultValue "false"
608
- */
609
- selected?: boolean;
610
- /**
611
- * Test id for the button
612
- */
613
- "data-testid"?: string;
614
- /**
615
- * Size of the chip.
616
- *
617
- * * `sm`: 32px
618
- * * `lg`: 48px
619
- *
620
- * @defaultValue sm
621
- */
622
- size?: "sm" | "lg";
623
- /**
624
- * The text to be displayed on the chip
625
- */
626
- text: string;
627
- /**
628
- * The callback to be called when the chip is clicked
629
- */
630
- onChange: React__default.MouseEventHandler<HTMLButtonElement>;
631
- /**
632
- * The icon to be displayed.
633
- */
634
- icon?: React__default.ComponentType<{
635
- className?: string;
636
- }>;
637
- };
638
- /**
639
- * [Chip](https://cambly-syntax.vercel.app/?path=/docs/components-chip--docs) is used to show status (selected/not selected) like a toggle button.
640
- */
641
- declare const Chip: React__default.ForwardRefExoticComponent<ChipProps & React__default.RefAttributes<HTMLButtonElement>>;
642
-
643
- /**
644
- * [Divider](https://cambly-syntax.vercel.app/?path=/docs/components-divider--docs) is a thin horizontal line to group content in lists and layouts.
645
- */
646
- declare function Divider(): React.ReactElement;
647
- declare namespace Divider {
648
- var displayName: string;
649
- }
650
-
651
- /**
652
- * [Heading](https://cambly-syntax.vercel.app/?path=/docs/components-heading--docs) enforces a consistent style & accessibility best practices for headings.
653
- */
654
- declare const Heading: ({ align, as, children, color, "data-testid": dataTestId, lineClamp, size, }: {
655
- /**
656
- * Aligns the text to the left, right, or center of the container.
657
- * * `start` and `end` will align the text to the left or right of the container depending on the locale.
658
- * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).
659
- *
660
- * @defaultValue "start"
661
- */
662
- align?: "start" | "end" | "forceLeft" | "center" | "forceRight" | undefined;
663
- /**
664
- * DOM element to render as.
665
- *
666
- * @defaultValue "h1"
667
- */
668
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
669
- /**
670
- * The text to be rendered
671
- */
672
- children?: ReactNode;
673
- /**
674
- * The color of the text.
675
- *
676
- * @defaultValue "gray900"
677
- */
678
- color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
679
- /**
680
- * Test id for the text.
681
- */
682
- "data-testid"?: string | undefined;
683
- /**
684
- * The number of lines we should truncate the text at
685
- */
686
- lineClamp?: number | undefined;
687
- /**
688
- * Size of the text.
689
- *
690
- * * `500`: 20px
691
- * * `600`: 28px
692
- * * `700`: 40px
693
- * * `800`: 64px
694
- *
695
- * @defaultValue 500
696
- */
697
- size?: 500 | 600 | 700 | 800 | undefined;
698
- }) => ReactElement;
699
-
700
- type IconButtonProps = {
701
- /**
702
- * The color of the button
703
- *
704
- * @defaultValue "primary"
705
- */
706
- color?: (typeof Color)[number];
707
- /**
708
- * Test id for the button
709
- */
710
- "data-testid"?: string;
711
- /**
712
- * The size of the button
713
- *
714
- * * `sm`: 32px
715
- * * `md`: 40px
716
- * * `lg`: 48px
717
- *
718
- * @defaultValue "md"
719
- */
720
- size?: (typeof Size)[number];
721
- /**
722
- * The label to be used for accessibility
723
- */
724
- accessibilityLabel: string;
725
- /**
726
- * The icon to be displayed. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
727
- */
728
- icon: React__default.ComponentType<{
729
- className?: string;
730
- }>;
731
- /**
732
- * If `true`, the button will be disabled
733
- *
734
- * @defaultValue false
735
- */
736
- disabled?: boolean;
737
- /**
738
- * The callback to be called when the button is clicked
739
- */
740
- onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
741
- /**
742
- * The tooltip to be displayed when the user hovers over the button
743
- */
744
- tooltip?: string;
745
- };
746
- /**
747
- * [IconButton](https://cambly-syntax.vercel.app/?path=/docs/components-iconbutton--docs) is a clickable element that is used to perform an action.
748
- */
749
- declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
750
-
751
- type LinkButtonProps = {
752
- /**
753
- * Test id for the button
754
- */
755
- "data-testid"?: string;
756
- /**
757
- * The text to be displayed inside the button
758
- */
759
- text: string;
760
- /**
761
- * The link that the LinkButton should route to.
762
- *
763
- */
764
- href?: string;
765
- /**
766
- * The target attribute specifies where to open the linked document.
767
- *
768
- */
769
- target?: "_blank" | "_self" | "_parent" | "_top";
770
- /**
771
- * The rel attribute specifies the relationship between the document and the link.
772
- *
773
- */
774
- rel?: HtmlHTMLAttributes<HTMLAnchorElement>["rel"];
775
- /**
776
- * The color of the button
777
- *
778
- * @defaultValue "primary"
779
- */
780
- color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success";
781
- /**
782
- * The size of the button
783
- *
784
- * * `sm`: 32px
785
- * * `md`: 40px
786
- * * `lg`: 48px
787
- *
788
- * @defaultValue "md"
789
- */
790
- size?: (typeof Size)[number];
791
- /**
792
- * If `true`, the button will take up the full width of its container
793
- *
794
- * @defaultValue false
795
- */
796
- fullWidth?: boolean;
797
- /**
798
- * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
799
- */
800
- startIcon?: React__default.ComponentType<{
801
- className?: string;
802
- }>;
803
- /**
804
- * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
805
- */
806
- endIcon?: React__default.ComponentType<{
807
- className?: string;
808
- }>;
809
- /**
810
- * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).
811
- */
812
- onClick?: React__default.MouseEventHandler<HTMLAnchorElement>;
813
- };
814
- /**
815
- * [LinkButton](https://cambly-syntax.vercel.app/?path=/docs/components-linkbutton--docs) is a "variation" of Button that should look identical to Button, but should be used to render links instead.
816
- */
817
- declare const LinkButton: React__default.ForwardRefExoticComponent<LinkButtonProps & React__default.RefAttributes<HTMLAnchorElement>>;
818
-
819
- declare const sizeWidth: {
820
- readonly sm: 400;
821
- readonly lg: 600;
822
- };
823
- /**
824
- * [Modal](https://cambly-syntax.vercel.app/?path=/docs/components-modal--docs) is a dialog that appears on top of the main content and locks user interaction within the modal.
825
- *
826
- ```
827
- const [showModal, setShowModal] = useState(false)
828
-
829
- return (
830
- <>
831
- {showModal && <Modal
832
- header="header text"
833
- onDismiss={() => setShowModal(false)}
834
- footer={
835
- <>
836
- <Button
837
- text="Cancel"
838
- color="secondary"
839
- onClick={() => {}}
840
- />
841
- <Button
842
- text="Confirm"
843
- onClick={() => {}}
844
- />
845
- </>
846
- }
847
- >
848
- <Typography>
849
- Body text goes here!
850
- </Typography>
851
- </Modal> }
852
- </>
853
- )
854
- ```
855
- */
856
- declare function Modal({ header, children, image, onDismiss, footer, accessibilityCloseLabel, size, zIndex, "data-testid": dataTestId, }: {
857
- /**
858
- * The modal's main content. Should typically take in `Typography`'d text.
859
- */
860
- children: JSX.Element;
861
- /**
862
- * The header inside a modal as a string.
863
- */
864
- header: string;
865
- /**
866
- * What the X button (or clicking out of the modal area) does.
867
- * Typically used for closing the Modal
868
- */
869
- onDismiss: () => void;
870
- /**
871
- * The optional image rendered above the Modal.
872
- * Image size should be 400w x 200h.
873
- * If images aren't that sized, should ask design to give another image.
874
- */
875
- image?: JSX.Element;
876
- /**
877
- * The footer for the bottom area of the Modal. Typically used for rendering buttons.
878
- * * Use Syntax `Button` and pass it into footer.
879
- * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)
880
- * * If two(2) buttons, put primary button _second_.
881
- *
882
- <>
883
- <Button
884
- text="Cancel"
885
- color="secondary"
886
- onClick={() => {}}
887
- />
888
- <Button
889
- text="Confirm"
890
- onClick={() => {}}
891
- />
892
- </>
893
- */
894
- footer?: JSX.Element;
895
- /**
896
- * The accessibilty text on the close button.
897
- * (Sets the aria-label of the button)
898
- *
899
- *
900
- * @defaultValue close modal
901
- */
902
- accessibilityCloseLabel?: string;
903
- /**
904
- * The size of the card
905
- *
906
- * * `sm`: 400px
907
- * * `lg`: 600px
908
- *
909
- *
910
- * @defaultValue sm
911
- */
912
- size?: keyof typeof sizeWidth;
913
- /**
914
- * The z-index for the modal.
915
- * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.
916
- *
917
- * @defaultValue 0
918
- */
919
- zIndex?: number;
920
- /**
921
- * Test id for the modal
922
- */
923
- "data-testid"?: string;
924
- }): ReactElement;
925
- declare namespace Modal {
926
- var displayName: string;
927
- }
928
-
929
- /**
930
- * [RadioButton](https://cambly-syntax.vercel.app/?path=/docs/components-radiobutton--docs) is a radio button with accompanying text
931
- */
932
- declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled: disabledProp, error, id, label, name, onChange, size, value, }: {
933
- /**
934
- * Whether or not the radio button is checked
935
- *
936
- * @defaultValue false
937
- */
938
- checked?: boolean | undefined;
939
- /**
940
- * Test id for the radio button
941
- */
942
- "data-testid"?: string | undefined;
943
- /**
944
- * Whether or not the radio button is disabled
945
- *
946
- * @defaultValue false
947
- */
948
- disabled?: boolean | undefined;
949
- /**
950
- * Whether to show error color schema
951
- *
952
- * @defaultValue false
953
- */
954
- error?: boolean | undefined;
955
- /**
956
- * Id for the the radio button
957
- */
958
- id?: string | undefined;
959
- /**
960
- * Value to show end user
961
- */
962
- label: string;
963
- /**
964
- * The name of the grouping the radio buttons are in
965
- */
966
- name: string;
967
- /**
968
- * The callback to be called when the radio button is clicked
969
- */
970
- onChange: React__default.ChangeEventHandler<HTMLInputElement>;
971
- /**
972
- * Size of the components
973
- *
974
- * * `sm`: 16px
975
- * * `md`: 24px
976
- *
977
- * @defaultValue "md"
978
- */
979
- size?: "sm" | "md" | undefined;
980
- /**
981
- * Value of the selected radio option
982
- */
983
- value: string | number;
984
- }) => ReactElement;
985
-
986
- /**
987
- * [SelectList](https://cambly-syntax.vercel.app/?path=/docs/components-selectlist--docs) is a dropdown menu that allows users to select one option from a list.
988
- */
989
- declare function SelectList({ children, "data-testid": dataTestId, disabled: disabledProp, errorText, helperText, id, label, onChange, onClick, placeholderText, selectedValue, size, }: {
990
- /**
991
- * One or more SelectList.Option components.
992
- */
993
- children: ReactNode;
994
- /**
995
- * Test id for the select element
996
- */
997
- "data-testid"?: string;
998
- /**
999
- * true if the select dropdown is disabled
1000
- * @defaultValue false
1001
- */
1002
- disabled?: boolean;
1003
- /**
1004
- * Callback to be called when select is clicked
1005
- */
1006
- onClick?: React__default.MouseEventHandler<HTMLSelectElement>;
1007
- /**
1008
- * Text shown below select box if there is an input error.
1009
- */
1010
- errorText?: string;
1011
- /**
1012
- * Text shown below select box
1013
- */
1014
- helperText?: string;
1015
- /**
1016
- * Id of the select element
1017
- */
1018
- id?: string;
1019
- /**
1020
- * Text shown above select box
1021
- */
1022
- label: string;
1023
- /**
1024
- * The callback to be called when an option is selected
1025
- */
1026
- onChange: React__default.ChangeEventHandler<HTMLSelectElement>;
1027
- /**
1028
- * Text showing in select box if no option has been chosen.
1029
- * We should always have a placeholder unless there is a default option selected
1030
- */
1031
- placeholderText?: string;
1032
- /**
1033
- * Value of the currently selected option
1034
- */
1035
- selectedValue?: string;
1036
- /**
1037
- * Size of the select box
1038
- * * `sm`: 32px
1039
- * * `md`: 40px
1040
- * * `lg`: 48px
1041
- *
1042
- * @defaultValue "md"
1043
- */
1044
- size?: "sm" | "md" | "lg";
1045
- }): ReactElement;
1046
- declare namespace SelectList {
1047
- var Option: ({ "data-testid": dataTestId, value, label, disabled, }: {
1048
- "data-testid"?: string | undefined;
1049
- value: string;
1050
- label: string;
1051
- disabled?: boolean | undefined;
1052
- }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
1053
- }
1054
-
1055
- type TapAreaProps = {
1056
- /**
1057
- * The children to be rendered inside the tap area.
1058
- */
1059
- children?: ReactNode;
1060
- /**
1061
- * The label to be used for accessibility
1062
- */
1063
- accessibilityLabel?: string;
1064
- /**
1065
- * Test id for the tap area
1066
- */
1067
- "data-testid"?: string;
1068
- /**
1069
- * If `true`, the tap area will be disabled
1070
- *
1071
- * @defaultValue false
1072
- */
1073
- disabled?: boolean;
1074
- /**
1075
- * If `true`, the tap area will be full width
1076
- */
1077
- fullWidth?: boolean;
1078
- /**
1079
- * The callback to be called when the tap area is clicked
1080
- */
1081
- onClick: (event: React__default.SyntheticEvent<HTMLDivElement>) => void;
1082
- /**
1083
- * Border radius of the tap area.
1084
- *
1085
- * * `none`: 0px
1086
- * * `sm`: 8px
1087
- * * `md`: 12px
1088
- * * `lg`: 16px
1089
- * * `xl`: 32px
1090
- * * `full`: 999px
1091
- *
1092
- * @defaultValue "none"
1093
- */
1094
- rounding?: "xl" | "lg" | "md" | "sm" | "full" | "none";
1095
- /**
1096
- * The tab index of the tap area
1097
- */
1098
- tabIndex?: 0 | -1;
1099
- };
1100
- /**
1101
- * [TapArea](https://cambly-syntax.vercel.app/?path=/docs/components-taparea--docs) allows components to be clickable and touchable in an accessible way.
1102
- */
1103
- declare const TapArea: React__default.ForwardRefExoticComponent<TapAreaProps & React__default.RefAttributes<HTMLDivElement>>;
1104
-
1105
- /**
1106
- * [TextField](https://cambly-syntax.vercel.app/?path=/docs/components-textfield--docs) is a component that allows users to enter text.
1107
- */
1108
- declare function TextField({ autoComplete, "data-testid": dataTestId, disabled: disabledProp, errorText, helperText, id, label, onChange, placeholder, size, type, value, }: {
1109
- /**
1110
- * The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.
1111
- *
1112
- * Feel free to add new values from the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) as needed
1113
- */
1114
- autoComplete?: "current-password" | "new-password" | "off" | "on" | "email";
1115
- /**
1116
- * A data-testid to make querying for the TextField easier.
1117
- */
1118
- "data-testid"?: string;
1119
- /**
1120
- * If true, the TextField will be disabled.
1121
- *
1122
- * @defaultValue false
1123
- */
1124
- disabled?: boolean;
1125
- /**
1126
- * Text shown below TextField if there is an input error.
1127
- */
1128
- errorText?: string;
1129
- /**
1130
- * Informative helper text shown below TextField
1131
- */
1132
- helperText?: string;
1133
- /**
1134
- * TextField id, if not provided, a unique id will be generated
1135
- */
1136
- id?: string;
1137
- /**
1138
- * TextField visible label
1139
- */
1140
- label: string;
1141
- /**
1142
- * The callback to be called the input changes
1143
- */
1144
- onChange: React__default.ChangeEventHandler<HTMLInputElement>;
1145
- /**
1146
- * Optional TextField placeholder text
1147
- */
1148
- placeholder?: string;
1149
- /**
1150
- * Size of the TextField
1151
- * * `sm`: 32px
1152
- * * `md`: 40px
1153
- * * `lg`: 48px
1154
- *
1155
- * @defaultValue "md"
1156
- */
1157
- size?: "sm" | "md" | "lg";
1158
- /**
1159
- * Input type of the TextField
1160
- *
1161
- * See [full list of input types](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types)
1162
- */
1163
- type?: HTMLInputTypeAttribute;
1164
- /**
1165
- * Value of the TextField
1166
- */
1167
- value: string;
1168
- }): ReactElement;
1169
-
1170
- /**
1171
- * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.
1172
- */
1173
- declare const Typography: ({ align, as, children, color, "data-testid": dataTestId, inline, lineClamp, size, tooltip, transform, underline, weight, }: {
1174
- /**
1175
- * Aligns the text to the left, right, or center of the container.
1176
- * * `start` and `end` will align the text to the left or right of the container depending on the locale.
1177
- * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).
1178
- *
1179
- * @defaultValue "start"
1180
- */
1181
- align?: "start" | "end" | "forceLeft" | "center" | "forceRight" | undefined;
1182
- /**
1183
- * DOM element to render as.
1184
- *
1185
- * @defaultValue "div"
1186
- */
1187
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | undefined;
1188
- /**
1189
- * The text to be rendered
1190
- */
1191
- children?: ReactNode;
1192
- /**
1193
- * The color of the text.
1194
- *
1195
- * @defaultValue "gray900"
1196
- */
1197
- color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
1198
- /**
1199
- * Test id for the text
1200
- */
1201
- "data-testid"?: string | undefined;
1202
- /**
1203
- * Whether the text should flow inline with other elements.
1204
- *
1205
- * @defaultValue false
1206
- */
1207
- inline?: boolean | undefined;
1208
- /**
1209
- * The number of lines we should truncate the text at
1210
- */
1211
- lineClamp?: number | undefined;
1212
- /**
1213
- * Size of the text.
1214
- *
1215
- * * `100`: 12px
1216
- * * `200`: 14px
1217
- * * `300`: 16px
1218
- * * `500`: 20px
1219
- * * `600`: 28px
1220
- * * `700`: 40px
1221
- * * `800`: 64px
1222
- *
1223
- * @defaultValue 200
1224
- */
1225
- size?: 500 | 600 | 700 | 800 | 100 | 200 | 300 | undefined;
1226
- /**
1227
- * The tooltip to be displayed when the user hovers the text
1228
- */
1229
- tooltip?: string | undefined;
1230
- /**
1231
- * Whether the text should be transformed to uppercase.
1232
- *
1233
- * @defaultValue "none"
1234
- */
1235
- transform?: "none" | "uppercase" | undefined;
1236
- /**
1237
- * Whether the text has an underline.
1238
- *
1239
- * @defaultValue false
1240
- */
1241
- underline?: boolean | undefined;
1242
- /**
1243
- * Indicates the boldness of the text.
1244
- *
1245
- * @defaultValue "regular"
1246
- */
1247
- weight?: "regular" | "interactive" | "semiBold" | "bold" | "heavy" | undefined;
1248
- }) => ReactElement;
1249
-
1250
- export { Avatar, Badge, Box, Button, ButtonGroup, Card, Checkbox, Chip, Divider, Heading, IconButton, LinkButton, Modal, RadioButton, SelectList, TapArea, TextField, Typography };
1
+ export { default as Avatar } from './Avatar/Avatar.js';
2
+ export { default as Badge } from './Badge/Badge.js';
3
+ export { default as Box } from './Box/Box.js';
4
+ export { default as Button } from './Button/Button.js';
5
+ export { default as ButtonGroup } from './ButtonGroup/ButtonGroup.js';
6
+ export { default as Card } from './Card/Card.js';
7
+ export { default as Checkbox } from './Checkbox/Checkbox.js';
8
+ export { default as Chip } from './Chip/Chip.js';
9
+ export { default as Divider } from './Divider/Divider.js';
10
+ export { default as Heading } from './Heading/Heading.js';
11
+ export { default as IconButton } from './IconButton/IconButton.js';
12
+ export { default as LinkButton } from './LinkButton/LinkButton.js';
13
+ export { default as Modal } from './Modal/Modal.js';
14
+ export { default as RadioButton } from './RadioButton/RadioButton.js';
15
+ export { default as SelectList } from './SelectList/SelectList.js';
16
+ export { default as TapArea } from './TapArea/TapArea.js';
17
+ export { default as TextField } from './TextField/TextField.js';
18
+ export { default as Typography } from './Typography/Typography.js';
19
+ import 'react';
20
+ import './colors/allColors.js';
21
+ import './constants.js';