@cambly/syntax-core 10.2.0 → 10.2.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 (412) hide show
  1. package/dist/Avatar/Avatar.cjs +13 -0
  2. package/dist/Avatar/Avatar.cjs.map +1 -0
  3. package/dist/Avatar/Avatar.js +12 -12
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/AvatarGroup/AvatarGroup.cjs +14 -0
  6. package/dist/AvatarGroup/AvatarGroup.cjs.map +1 -0
  7. package/dist/AvatarGroup/AvatarGroup.js +13 -13
  8. package/dist/AvatarGroup/AvatarGroup.js.map +1 -1
  9. package/dist/Badge/Badge.cjs +13 -0
  10. package/dist/Badge/Badge.cjs.map +1 -0
  11. package/dist/Badge/Badge.js +12 -12
  12. package/dist/Badge/Badge.js.map +1 -1
  13. package/dist/Box/Box.cjs +11 -0
  14. package/dist/Box/Box.cjs.map +1 -0
  15. package/dist/Box/Box.js +10 -10
  16. package/dist/Box/Box.js.map +1 -1
  17. package/dist/Button/Button.cjs +21 -0
  18. package/dist/Button/Button.cjs.map +1 -0
  19. package/dist/Button/Button.js +20 -20
  20. package/dist/Button/Button.js.map +1 -1
  21. package/dist/Button/constants/iconSize.cjs +8 -0
  22. package/dist/Button/constants/iconSize.cjs.map +1 -0
  23. package/dist/Button/constants/iconSize.js +7 -7
  24. package/dist/Button/constants/iconSize.js.map +1 -1
  25. package/dist/Button/constants/loadingIconSize.cjs +8 -0
  26. package/dist/Button/constants/loadingIconSize.cjs.map +1 -0
  27. package/dist/Button/constants/loadingIconSize.js +7 -7
  28. package/dist/Button/constants/loadingIconSize.js.map +1 -1
  29. package/dist/Button/constants/textVariant.cjs +8 -0
  30. package/dist/Button/constants/textVariant.cjs.map +1 -0
  31. package/dist/Button/constants/textVariant.js +7 -7
  32. package/dist/Button/constants/textVariant.js.map +1 -1
  33. package/dist/ButtonGroup/ButtonGroup.cjs +8 -0
  34. package/dist/ButtonGroup/ButtonGroup.cjs.map +1 -0
  35. package/dist/ButtonGroup/ButtonGroup.js +7 -7
  36. package/dist/ButtonGroup/ButtonGroup.js.map +1 -1
  37. package/dist/Card/Card.cjs +12 -0
  38. package/dist/Card/Card.cjs.map +1 -0
  39. package/dist/Card/Card.js +11 -11
  40. package/dist/Card/Card.js.map +1 -1
  41. package/dist/Checkbox/Checkbox.cjs +14 -0
  42. package/dist/Checkbox/Checkbox.cjs.map +1 -0
  43. package/dist/Checkbox/Checkbox.js +13 -13
  44. package/dist/Checkbox/Checkbox.js.map +1 -1
  45. package/dist/Chip/Chip.cjs +14 -0
  46. package/dist/Chip/Chip.cjs.map +1 -0
  47. package/dist/Chip/Chip.js +13 -13
  48. package/dist/Chip/Chip.js.map +1 -1
  49. package/dist/Divider/Divider.cjs +8 -0
  50. package/dist/Divider/Divider.cjs.map +1 -0
  51. package/dist/Divider/Divider.js +7 -7
  52. package/dist/Divider/Divider.js.map +1 -1
  53. package/dist/Heading/Heading.cjs +11 -0
  54. package/dist/Heading/Heading.cjs.map +1 -0
  55. package/dist/Heading/Heading.js +10 -10
  56. package/dist/Heading/Heading.js.map +1 -1
  57. package/dist/IconButton/IconButton.cjs +13 -0
  58. package/dist/IconButton/IconButton.cjs.map +1 -0
  59. package/dist/IconButton/IconButton.js +12 -12
  60. package/dist/IconButton/IconButton.js.map +1 -1
  61. package/dist/LinkButton/LinkButton.cjs +17 -0
  62. package/dist/LinkButton/LinkButton.cjs.map +1 -0
  63. package/dist/LinkButton/LinkButton.js +16 -16
  64. package/dist/LinkButton/LinkButton.js.map +1 -1
  65. package/dist/Modal/FocusTrap.cjs +8 -0
  66. package/dist/Modal/FocusTrap.cjs.map +1 -0
  67. package/dist/Modal/FocusTrap.js +7 -7
  68. package/dist/Modal/FocusTrap.js.map +1 -1
  69. package/dist/Modal/Layer.cjs +12 -0
  70. package/dist/Modal/Layer.cjs.map +1 -0
  71. package/dist/Modal/Layer.js +11 -11
  72. package/dist/Modal/Layer.js.map +1 -1
  73. package/dist/Modal/Modal.cjs +17 -0
  74. package/dist/Modal/Modal.cjs.map +1 -0
  75. package/dist/Modal/Modal.js +16 -16
  76. package/dist/Modal/Modal.js.map +1 -1
  77. package/dist/Modal/StopScroll.cjs +8 -0
  78. package/dist/Modal/StopScroll.cjs.map +1 -0
  79. package/dist/Modal/StopScroll.js +7 -7
  80. package/dist/Modal/StopScroll.js.map +1 -1
  81. package/dist/RadioButton/RadioButton.cjs +14 -0
  82. package/dist/RadioButton/RadioButton.cjs.map +1 -0
  83. package/dist/RadioButton/RadioButton.js +13 -13
  84. package/dist/RadioButton/RadioButton.js.map +1 -1
  85. package/dist/SelectList/SelectList.cjs +15 -0
  86. package/dist/SelectList/SelectList.cjs.map +1 -0
  87. package/dist/SelectList/SelectList.js +14 -14
  88. package/dist/SelectList/SelectList.js.map +1 -1
  89. package/dist/SelectList/SelectOption.cjs +8 -0
  90. package/dist/SelectList/SelectOption.cjs.map +1 -0
  91. package/dist/SelectList/SelectOption.js +7 -7
  92. package/dist/SelectList/SelectOption.js.map +1 -1
  93. package/dist/TapArea/TapArea.cjs +10 -0
  94. package/dist/TapArea/TapArea.cjs.map +1 -0
  95. package/dist/TapArea/TapArea.js +9 -9
  96. package/dist/TapArea/TapArea.js.map +1 -1
  97. package/dist/TextArea/TextArea.cjs +15 -0
  98. package/dist/TextArea/TextArea.cjs.map +1 -0
  99. package/dist/TextArea/TextArea.js +14 -14
  100. package/dist/TextArea/TextArea.js.map +1 -1
  101. package/dist/TextField/TextField.cjs +15 -0
  102. package/dist/TextField/TextField.cjs.map +1 -0
  103. package/dist/TextField/TextField.js +14 -14
  104. package/dist/TextField/TextField.js.map +1 -1
  105. package/dist/Typography/Typography.cjs +10 -0
  106. package/dist/Typography/Typography.cjs.map +1 -0
  107. package/dist/Typography/Typography.js +9 -9
  108. package/dist/Typography/Typography.js.map +1 -1
  109. package/dist/__chunks/2JWMSFS7.js +11 -11
  110. package/dist/__chunks/2JWMSFS7.js.map +1 -1
  111. package/dist/__chunks/2O6FDRTF.js +4 -4
  112. package/dist/__chunks/2O6FDRTF.js.map +1 -1
  113. package/dist/__chunks/36B62A3Z.cjs +12 -0
  114. package/dist/__chunks/36B62A3Z.cjs.map +1 -0
  115. package/dist/__chunks/37CQV3RS.js +28 -28
  116. package/dist/__chunks/37CQV3RS.js.map +1 -1
  117. package/dist/__chunks/3F5U7W73.cjs +31 -0
  118. package/dist/__chunks/3F5U7W73.cjs.map +1 -0
  119. package/dist/__chunks/{A7UVLRKG.mjs → 3HVG5AGO.cjs} +5 -5
  120. package/dist/__chunks/3HVG5AGO.cjs.map +1 -0
  121. package/dist/__chunks/3TXXNWWA.cjs +14 -0
  122. package/dist/__chunks/3TXXNWWA.cjs.map +1 -0
  123. package/dist/__chunks/3VUMTAUX.js +22 -22
  124. package/dist/__chunks/3VUMTAUX.js.map +1 -1
  125. package/dist/__chunks/42YPEAFS.js +10 -10
  126. package/dist/__chunks/42YPEAFS.js.map +1 -1
  127. package/dist/__chunks/4ICD552D.cjs +31 -0
  128. package/dist/__chunks/4ICD552D.cjs.map +1 -0
  129. package/dist/__chunks/4PWSK5GI.js +4 -4
  130. package/dist/__chunks/4PWSK5GI.js.map +1 -1
  131. package/dist/__chunks/5AR53MHD.js +1 -1
  132. package/dist/__chunks/5AR53MHD.js.map +1 -1
  133. package/dist/__chunks/5DBWL6IK.js +4 -4
  134. package/dist/__chunks/5DBWL6IK.js.map +1 -1
  135. package/dist/__chunks/6VWFOSQZ.js +6 -6
  136. package/dist/__chunks/6VWFOSQZ.js.map +1 -1
  137. package/dist/__chunks/{3PCHHAIY.mjs → 7GJ2SD7O.cjs} +5 -5
  138. package/dist/__chunks/7GJ2SD7O.cjs.map +1 -0
  139. package/dist/__chunks/AFINOME7.js +6 -6
  140. package/dist/__chunks/AFINOME7.js.map +1 -1
  141. package/dist/__chunks/{BCWLWS7W.mjs → ARYAYAXH.cjs} +18 -18
  142. package/dist/__chunks/ARYAYAXH.cjs.map +1 -0
  143. package/dist/__chunks/BSFWQWVJ.js +9 -9
  144. package/dist/__chunks/BSFWQWVJ.js.map +1 -1
  145. package/dist/__chunks/BSWWGQAS.js +33 -33
  146. package/dist/__chunks/BSWWGQAS.js.map +1 -1
  147. package/dist/__chunks/{RDGPEEEH.mjs → C5IESDXE.cjs} +26 -26
  148. package/dist/__chunks/C5IESDXE.cjs.map +1 -0
  149. package/dist/__chunks/CATJI2RJ.js +11 -11
  150. package/dist/__chunks/CATJI2RJ.js.map +1 -1
  151. package/dist/__chunks/{MX7C572C.mjs → CEWOAFV2.cjs} +10 -10
  152. package/dist/__chunks/CEWOAFV2.cjs.map +1 -0
  153. package/dist/__chunks/{OQ26OWU4.mjs → CGUZFFJ2.cjs} +29 -29
  154. package/dist/__chunks/CGUZFFJ2.cjs.map +1 -0
  155. package/dist/__chunks/CQ2HIJ62.js +9 -9
  156. package/dist/__chunks/CQ2HIJ62.js.map +1 -1
  157. package/dist/__chunks/CWNH5WDG.cjs +73 -0
  158. package/dist/__chunks/CWNH5WDG.cjs.map +1 -0
  159. package/dist/__chunks/{LKQ7PJ4S.mjs → CY6YL5T4.cjs} +26 -26
  160. package/dist/__chunks/CY6YL5T4.cjs.map +1 -0
  161. package/dist/__chunks/D24RSGYP.js +4 -4
  162. package/dist/__chunks/D24RSGYP.js.map +1 -1
  163. package/dist/__chunks/ERJ5XXDH.js +37 -37
  164. package/dist/__chunks/ERJ5XXDH.js.map +1 -1
  165. package/dist/__chunks/ERXGNP37.js +4 -4
  166. package/dist/__chunks/ERXGNP37.js.map +1 -1
  167. package/dist/__chunks/{LZSDWT4M.mjs → EXYF6BLV.cjs} +33 -33
  168. package/dist/__chunks/{LZSDWT4M.mjs.map → EXYF6BLV.cjs.map} +1 -1
  169. package/dist/__chunks/F3ZST4RL.js +17 -17
  170. package/dist/__chunks/F3ZST4RL.js.map +1 -1
  171. package/dist/__chunks/FOTKCGZZ.js +16 -16
  172. package/dist/__chunks/FOTKCGZZ.js.map +1 -1
  173. package/dist/__chunks/FZRIE7EX.cjs +14 -0
  174. package/dist/__chunks/FZRIE7EX.cjs.map +1 -0
  175. package/dist/__chunks/G4DDTGDI.js +14 -14
  176. package/dist/__chunks/G4DDTGDI.js.map +1 -1
  177. package/dist/__chunks/G6TO2NCY.js +16 -16
  178. package/dist/__chunks/G6TO2NCY.js.map +1 -1
  179. package/dist/__chunks/GBJX7OPK.cjs +53 -0
  180. package/dist/__chunks/GBJX7OPK.cjs.map +1 -0
  181. package/dist/__chunks/GKECCWR3.cjs +14 -0
  182. package/dist/__chunks/GKECCWR3.cjs.map +1 -0
  183. package/dist/__chunks/GPS2XNQI.js +51 -51
  184. package/dist/__chunks/GPS2XNQI.js.map +1 -1
  185. package/dist/__chunks/GPWBSPBL.js +25 -25
  186. package/dist/__chunks/GPWBSPBL.js.map +1 -1
  187. package/dist/__chunks/{FCX7QDZS.mjs → GVEA7SLQ.cjs} +8 -8
  188. package/dist/__chunks/GVEA7SLQ.cjs.map +1 -0
  189. package/dist/__chunks/HOUO3WV6.js +6 -6
  190. package/dist/__chunks/HOUO3WV6.js.map +1 -1
  191. package/dist/__chunks/HQVZUEWO.js +4 -4
  192. package/dist/__chunks/HQVZUEWO.js.map +1 -1
  193. package/dist/__chunks/{CUDAH5IW.mjs → I64JGYX7.cjs} +7 -7
  194. package/dist/__chunks/I64JGYX7.cjs.map +1 -0
  195. package/dist/__chunks/{MZEIZAZH.mjs → IFJ2YOEG.cjs} +10 -10
  196. package/dist/__chunks/IFJ2YOEG.cjs.map +1 -0
  197. package/dist/__chunks/{GHUSRGIN.js → IVRMVGR2.cjs} +12 -12
  198. package/dist/__chunks/{GHUSRGIN.js.map → IVRMVGR2.cjs.map} +1 -1
  199. package/dist/__chunks/JMKXHLVZ.cjs +41 -0
  200. package/dist/__chunks/JMKXHLVZ.cjs.map +1 -0
  201. package/dist/__chunks/LJHH6KUW.js +8 -8
  202. package/dist/__chunks/LJHH6KUW.js.map +1 -1
  203. package/dist/__chunks/LTM57QMY.cjs +7 -0
  204. package/dist/__chunks/LTM57QMY.cjs.map +1 -0
  205. package/dist/__chunks/LULBCTQR.js +6 -6
  206. package/dist/__chunks/LULBCTQR.js.map +1 -1
  207. package/dist/__chunks/{LTFV2ABG.mjs → MUHQ73PC.cjs} +28 -28
  208. package/dist/__chunks/MUHQ73PC.cjs.map +1 -0
  209. package/dist/__chunks/{5R6HCJP6.mjs → N3EZP6VG.cjs} +23 -23
  210. package/dist/__chunks/N3EZP6VG.cjs.map +1 -0
  211. package/dist/__chunks/{JSEHOGL7.mjs → NGUJFGAC.cjs} +5 -5
  212. package/dist/__chunks/NGUJFGAC.cjs.map +1 -0
  213. package/dist/__chunks/NHSTGALH.cjs +110 -0
  214. package/dist/__chunks/NHSTGALH.cjs.map +1 -0
  215. package/dist/__chunks/OGJDUOWP.js +7 -7
  216. package/dist/__chunks/OGJDUOWP.js.map +1 -1
  217. package/dist/__chunks/{HAZN2FCY.mjs → PBOQIXCB.cjs} +9 -9
  218. package/dist/__chunks/PBOQIXCB.cjs.map +1 -0
  219. package/dist/__chunks/{UCMB6MFN.mjs → PBWG2BB5.cjs} +7 -7
  220. package/dist/__chunks/PBWG2BB5.cjs.map +1 -0
  221. package/dist/__chunks/PQIPUPQ2.cjs +26 -0
  222. package/dist/__chunks/PQIPUPQ2.cjs.map +1 -0
  223. package/dist/__chunks/PYNS67IV.js +25 -25
  224. package/dist/__chunks/PYNS67IV.js.map +1 -1
  225. package/dist/__chunks/REM5SMMZ.js +26 -26
  226. package/dist/__chunks/REM5SMMZ.js.map +1 -1
  227. package/dist/__chunks/{FWVHWU47.mjs → RLYKYCEU.cjs} +5 -5
  228. package/dist/__chunks/RLYKYCEU.cjs.map +1 -0
  229. package/dist/__chunks/SAEVPDUP.js +4 -4
  230. package/dist/__chunks/SAEVPDUP.js.map +1 -1
  231. package/dist/__chunks/{PGVLU6C3.mjs → SJFWRAOP.cjs} +11 -11
  232. package/dist/__chunks/SJFWRAOP.cjs.map +1 -0
  233. package/dist/__chunks/TBAJ7VLZ.cjs +12 -0
  234. package/dist/__chunks/TBAJ7VLZ.cjs.map +1 -0
  235. package/dist/__chunks/{XN5AALLC.mjs → TEJLBWXV.cjs} +5 -5
  236. package/dist/__chunks/TEJLBWXV.cjs.map +1 -0
  237. package/dist/__chunks/THEUR2KP.cjs +120 -0
  238. package/dist/__chunks/THEUR2KP.cjs.map +1 -0
  239. package/dist/__chunks/TKYRBLSM.js +33 -33
  240. package/dist/__chunks/TKYRBLSM.js.map +1 -1
  241. package/dist/__chunks/TPMQI44L.js +4 -4
  242. package/dist/__chunks/TPMQI44L.js.map +1 -1
  243. package/dist/__chunks/UNIBFDXV.js +23 -23
  244. package/dist/__chunks/UNIBFDXV.js.map +1 -1
  245. package/dist/__chunks/VUANIQYP.cjs +1 -0
  246. package/dist/__chunks/VUANIQYP.cjs.map +1 -0
  247. package/dist/__chunks/{UCVYFO4M.mjs → WHMEF44N.js} +6 -6
  248. package/dist/__chunks/{UCVYFO4M.mjs.map → WHMEF44N.js.map} +1 -1
  249. package/dist/__chunks/X74O4HUS.js +32 -32
  250. package/dist/__chunks/X74O4HUS.js.map +1 -1
  251. package/dist/__chunks/X7UNBJA5.js +27 -27
  252. package/dist/__chunks/X7UNBJA5.js.map +1 -1
  253. package/dist/__chunks/{CGGEM6XS.mjs → XBWCYGQ2.cjs} +38 -38
  254. package/dist/__chunks/XBWCYGQ2.cjs.map +1 -0
  255. package/dist/__chunks/{BWTLHCW3.mjs → XLVKNLN7.cjs} +34 -34
  256. package/dist/__chunks/XLVKNLN7.cjs.map +1 -0
  257. package/dist/__chunks/{X3PMVSGX.mjs → YGVUSAB6.cjs} +27 -27
  258. package/dist/__chunks/YGVUSAB6.cjs.map +1 -0
  259. package/dist/__chunks/YJ7YDIGB.js +7 -7
  260. package/dist/__chunks/YJ7YDIGB.js.map +1 -1
  261. package/dist/colors/{allColors.mjs → allColors.cjs} +5 -5
  262. package/dist/colors/allColors.cjs.map +1 -0
  263. package/dist/colors/allColors.js +4 -4
  264. package/dist/colors/allColors.js.map +1 -1
  265. package/dist/colors/backgroundColor.cjs +10 -0
  266. package/dist/colors/backgroundColor.cjs.map +1 -0
  267. package/dist/colors/backgroundColor.js +9 -9
  268. package/dist/colors/backgroundColor.js.map +1 -1
  269. package/dist/colors/foregroundColor.cjs +10 -0
  270. package/dist/colors/foregroundColor.cjs.map +1 -0
  271. package/dist/colors/foregroundColor.js +9 -9
  272. package/dist/colors/foregroundColor.js.map +1 -1
  273. package/dist/colors/foregroundTypographyColor.cjs +8 -0
  274. package/dist/colors/foregroundTypographyColor.cjs.map +1 -0
  275. package/dist/colors/foregroundTypographyColor.js +7 -7
  276. package/dist/colors/foregroundTypographyColor.js.map +1 -1
  277. package/dist/{constants.mjs → constants.cjs} +6 -6
  278. package/dist/constants.cjs.map +1 -0
  279. package/dist/constants.js +5 -5
  280. package/dist/constants.js.map +1 -1
  281. package/dist/index.cjs +102 -0
  282. package/dist/index.cjs.map +1 -0
  283. package/dist/index.js +101 -101
  284. package/dist/index.js.map +1 -1
  285. package/dist/useFocusVisible.cjs +8 -0
  286. package/dist/useFocusVisible.cjs.map +1 -0
  287. package/dist/useFocusVisible.js +7 -7
  288. package/dist/useFocusVisible.js.map +1 -1
  289. package/dist/useIsHydrated.cjs +8 -0
  290. package/dist/useIsHydrated.cjs.map +1 -0
  291. package/dist/useIsHydrated.js +7 -7
  292. package/dist/useIsHydrated.js.map +1 -1
  293. package/package.json +5 -4
  294. package/dist/Avatar/Avatar.mjs +0 -13
  295. package/dist/Avatar/Avatar.mjs.map +0 -1
  296. package/dist/AvatarGroup/AvatarGroup.mjs +0 -14
  297. package/dist/AvatarGroup/AvatarGroup.mjs.map +0 -1
  298. package/dist/Badge/Badge.mjs +0 -13
  299. package/dist/Badge/Badge.mjs.map +0 -1
  300. package/dist/Box/Box.mjs +0 -11
  301. package/dist/Box/Box.mjs.map +0 -1
  302. package/dist/Button/Button.mjs +0 -21
  303. package/dist/Button/Button.mjs.map +0 -1
  304. package/dist/Button/constants/iconSize.mjs +0 -8
  305. package/dist/Button/constants/iconSize.mjs.map +0 -1
  306. package/dist/Button/constants/loadingIconSize.mjs +0 -8
  307. package/dist/Button/constants/loadingIconSize.mjs.map +0 -1
  308. package/dist/Button/constants/textVariant.mjs +0 -8
  309. package/dist/Button/constants/textVariant.mjs.map +0 -1
  310. package/dist/ButtonGroup/ButtonGroup.mjs +0 -8
  311. package/dist/ButtonGroup/ButtonGroup.mjs.map +0 -1
  312. package/dist/Card/Card.mjs +0 -12
  313. package/dist/Card/Card.mjs.map +0 -1
  314. package/dist/Checkbox/Checkbox.mjs +0 -14
  315. package/dist/Checkbox/Checkbox.mjs.map +0 -1
  316. package/dist/Chip/Chip.mjs +0 -14
  317. package/dist/Chip/Chip.mjs.map +0 -1
  318. package/dist/Divider/Divider.mjs +0 -8
  319. package/dist/Divider/Divider.mjs.map +0 -1
  320. package/dist/Heading/Heading.mjs +0 -11
  321. package/dist/Heading/Heading.mjs.map +0 -1
  322. package/dist/IconButton/IconButton.mjs +0 -13
  323. package/dist/IconButton/IconButton.mjs.map +0 -1
  324. package/dist/LinkButton/LinkButton.mjs +0 -17
  325. package/dist/LinkButton/LinkButton.mjs.map +0 -1
  326. package/dist/Modal/FocusTrap.mjs +0 -8
  327. package/dist/Modal/FocusTrap.mjs.map +0 -1
  328. package/dist/Modal/Layer.mjs +0 -12
  329. package/dist/Modal/Layer.mjs.map +0 -1
  330. package/dist/Modal/Modal.mjs +0 -17
  331. package/dist/Modal/Modal.mjs.map +0 -1
  332. package/dist/Modal/StopScroll.mjs +0 -8
  333. package/dist/Modal/StopScroll.mjs.map +0 -1
  334. package/dist/RadioButton/RadioButton.mjs +0 -14
  335. package/dist/RadioButton/RadioButton.mjs.map +0 -1
  336. package/dist/SelectList/SelectList.mjs +0 -15
  337. package/dist/SelectList/SelectList.mjs.map +0 -1
  338. package/dist/SelectList/SelectOption.mjs +0 -8
  339. package/dist/SelectList/SelectOption.mjs.map +0 -1
  340. package/dist/TapArea/TapArea.mjs +0 -10
  341. package/dist/TapArea/TapArea.mjs.map +0 -1
  342. package/dist/TextArea/TextArea.mjs +0 -15
  343. package/dist/TextArea/TextArea.mjs.map +0 -1
  344. package/dist/TextField/TextField.mjs +0 -15
  345. package/dist/TextField/TextField.mjs.map +0 -1
  346. package/dist/Typography/Typography.mjs +0 -10
  347. package/dist/Typography/Typography.mjs.map +0 -1
  348. package/dist/__chunks/3PCHHAIY.mjs.map +0 -1
  349. package/dist/__chunks/5R6HCJP6.mjs.map +0 -1
  350. package/dist/__chunks/A7UVLRKG.mjs.map +0 -1
  351. package/dist/__chunks/AMBZXKUQ.mjs +0 -12
  352. package/dist/__chunks/AMBZXKUQ.mjs.map +0 -1
  353. package/dist/__chunks/BCWLWS7W.mjs.map +0 -1
  354. package/dist/__chunks/BJXYKZMK.mjs +0 -53
  355. package/dist/__chunks/BJXYKZMK.mjs.map +0 -1
  356. package/dist/__chunks/BWTLHCW3.mjs.map +0 -1
  357. package/dist/__chunks/CGGEM6XS.mjs.map +0 -1
  358. package/dist/__chunks/CPBWDVD4.mjs +0 -110
  359. package/dist/__chunks/CPBWDVD4.mjs.map +0 -1
  360. package/dist/__chunks/CUDAH5IW.mjs.map +0 -1
  361. package/dist/__chunks/DVVFHZBW.mjs +0 -120
  362. package/dist/__chunks/DVVFHZBW.mjs.map +0 -1
  363. package/dist/__chunks/EKJ4XOIM.mjs +0 -12
  364. package/dist/__chunks/EKJ4XOIM.mjs.map +0 -1
  365. package/dist/__chunks/FCX7QDZS.mjs.map +0 -1
  366. package/dist/__chunks/FWVHWU47.mjs.map +0 -1
  367. package/dist/__chunks/GVNDZZAU.mjs +0 -14
  368. package/dist/__chunks/GVNDZZAU.mjs.map +0 -1
  369. package/dist/__chunks/HAZN2FCY.mjs.map +0 -1
  370. package/dist/__chunks/IXDA4ZXP.mjs +0 -1
  371. package/dist/__chunks/IXDA4ZXP.mjs.map +0 -1
  372. package/dist/__chunks/JSEHOGL7.mjs.map +0 -1
  373. package/dist/__chunks/LKQ7PJ4S.mjs.map +0 -1
  374. package/dist/__chunks/LTFV2ABG.mjs.map +0 -1
  375. package/dist/__chunks/MX7C572C.mjs.map +0 -1
  376. package/dist/__chunks/MZEIZAZH.mjs.map +0 -1
  377. package/dist/__chunks/OQ26OWU4.mjs.map +0 -1
  378. package/dist/__chunks/PGVLU6C3.mjs.map +0 -1
  379. package/dist/__chunks/Q2TIB7ZC.mjs +0 -26
  380. package/dist/__chunks/Q2TIB7ZC.mjs.map +0 -1
  381. package/dist/__chunks/R6CDK4GP.mjs +0 -31
  382. package/dist/__chunks/R6CDK4GP.mjs.map +0 -1
  383. package/dist/__chunks/RDGPEEEH.mjs.map +0 -1
  384. package/dist/__chunks/RPJTOFY4.mjs +0 -41
  385. package/dist/__chunks/RPJTOFY4.mjs.map +0 -1
  386. package/dist/__chunks/RSU3GDHB.mjs +0 -73
  387. package/dist/__chunks/RSU3GDHB.mjs.map +0 -1
  388. package/dist/__chunks/RVT6EXR3.mjs +0 -31
  389. package/dist/__chunks/RVT6EXR3.mjs.map +0 -1
  390. package/dist/__chunks/SXTRSFG5.mjs +0 -14
  391. package/dist/__chunks/SXTRSFG5.mjs.map +0 -1
  392. package/dist/__chunks/UCMB6MFN.mjs.map +0 -1
  393. package/dist/__chunks/WJDAVT5R.mjs +0 -7
  394. package/dist/__chunks/WJDAVT5R.mjs.map +0 -1
  395. package/dist/__chunks/X3PMVSGX.mjs.map +0 -1
  396. package/dist/__chunks/XFKGXL73.mjs +0 -14
  397. package/dist/__chunks/XFKGXL73.mjs.map +0 -1
  398. package/dist/__chunks/XN5AALLC.mjs.map +0 -1
  399. package/dist/colors/allColors.mjs.map +0 -1
  400. package/dist/colors/backgroundColor.mjs +0 -10
  401. package/dist/colors/backgroundColor.mjs.map +0 -1
  402. package/dist/colors/foregroundColor.mjs +0 -10
  403. package/dist/colors/foregroundColor.mjs.map +0 -1
  404. package/dist/colors/foregroundTypographyColor.mjs +0 -8
  405. package/dist/colors/foregroundTypographyColor.mjs.map +0 -1
  406. package/dist/constants.mjs.map +0 -1
  407. package/dist/index.mjs +0 -102
  408. package/dist/index.mjs.map +0 -1
  409. package/dist/useFocusVisible.mjs +0 -8
  410. package/dist/useFocusVisible.mjs.map +0 -1
  411. package/dist/useIsHydrated.mjs +0 -8
  412. package/dist/useIsHydrated.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/colors/backgroundColor.ts"],"names":[],"mappings":";;;;;AAGe,SAAR,gBAAiC,OAAuC;AAC7E,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB;AACE,aAAO,sBAAO;AAAA,EAClB;AACF","sourcesContent":["import { type Color } from \"../constants\";\nimport styles from \"./colors.module.css\";\n\nexport default function backgroundColor(color: (typeof Color)[number]): string {\n switch (color) {\n case \"secondary\":\n return styles.primary100BackgroundColor;\n case \"destructive-primary\":\n return styles.destructive700BackgroundColor;\n case \"destructive-secondary\":\n return styles.destructive100BackgroundColor;\n case \"success\":\n return styles.success700BackgroundColor;\n case \"tertiary\":\n case \"destructive-tertiary\":\n return styles.whiteBackgroundColor;\n case \"branded\":\n return styles.yellow700BackgroundColor;\n case \"inverse\":\n return styles.gray60BackgroundColor;\n default:\n return styles.primary700BackgroundColor;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/colors/backgroundColor.ts"],"sourcesContent":["import { type Color } from \"../constants\";\nimport styles from \"./colors.module.css\";\n\nexport default function backgroundColor(color: (typeof Color)[number]): string {\n switch (color) {\n case \"secondary\":\n return styles.primary100BackgroundColor;\n case \"destructive-primary\":\n return styles.destructive700BackgroundColor;\n case \"destructive-secondary\":\n return styles.destructive100BackgroundColor;\n case \"success\":\n return styles.success700BackgroundColor;\n case \"tertiary\":\n case \"destructive-tertiary\":\n return styles.whiteBackgroundColor;\n case \"branded\":\n return styles.yellow700BackgroundColor;\n case \"inverse\":\n return styles.gray60BackgroundColor;\n default:\n return styles.primary700BackgroundColor;\n }\n}\n"],"mappings":";;;;;AAGe,SAAR,gBAAiC,OAAuC;AAC7E,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB,KAAK;AACH,aAAO,sBAAO;AAAA,IAChB;AACE,aAAO,sBAAO;AAAA,EAClB;AACF;","names":[]}
@@ -1,16 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _PYNS67IVjs = require('./PYNS67IV.js');
1
+ import {
2
+ Box_default
3
+ } from "./PYNS67IV.js";
4
4
 
5
5
  // src/AvatarGroup/AvatarGroup.tsx
6
-
7
-
8
-
9
- var _react = require('react');
10
- var _jsxruntime = require('react/jsx-runtime');
11
- var AvatarGroupContext = _react.createContext.call(void 0, null);
6
+ import {
7
+ createContext,
8
+ useContext
9
+ } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var AvatarGroupContext = createContext(null);
12
12
  function useAvatarGroup() {
13
- const context = _react.useContext.call(void 0, AvatarGroupContext);
13
+ const context = useContext(AvatarGroupContext);
14
14
  return !context ? null : context;
15
15
  }
16
16
  function AvatarGroup({
@@ -18,8 +18,8 @@ function AvatarGroup({
18
18
  orientation = "standard",
19
19
  children
20
20
  }) {
21
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarGroupContext.Provider, { value: { size, orientation }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22
- _PYNS67IVjs.Box_default,
21
+ return /* @__PURE__ */ jsx(AvatarGroupContext.Provider, { value: { size, orientation }, children: /* @__PURE__ */ jsx(
22
+ Box_default,
23
23
  {
24
24
  display: "flex",
25
25
  justifyContent: orientation === "standard" ? "start" : "end",
@@ -34,8 +34,8 @@ function AvatarGroup({
34
34
  }
35
35
  AvatarGroup.displayName = "AvatarGroup";
36
36
 
37
-
38
-
39
-
40
- exports.useAvatarGroup = useAvatarGroup; exports.AvatarGroup = AvatarGroup;
37
+ export {
38
+ useAvatarGroup,
39
+ AvatarGroup
40
+ };
41
41
  //# sourceMappingURL=G6TO2NCY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":";;;;;AAAA;AAAA,EAEE;AAAA,EACA;AAAA,OAEK;AAgED;AArDN,IAAM,qBAAqB,cAA6C,IAAI;AAErE,SAAS,iBAAgD;AAC9D,QAAM,UAAU,WAAW,kBAAkB;AAC7C,SAAO,CAAC,UAAU,OAAO;AAC3B;AAgBe,SAAR,YAA6B;AAAA,EAClC,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AACF,GAyBiB;AACf,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,MAAM,YAAY,GACtD;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,gBAAgB,gBAAgB,aAAa,UAAU;AAAA,MACvD,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,eAAe,gBAAgB,aAAa,QAAQ;AAAA,QACtD;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH,GACF;AAEJ;AAEA,YAAY,cAAc","sourcesContent":["import {\n type ReactNode,\n createContext,\n useContext,\n type ReactElement,\n} from \"react\";\nimport Box from \"../Box/Box\";\n\ntype Size = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype Orientation = \"standard\" | \"reverse\";\n\ntype AvatarGroupContextType = {\n size: Size;\n orientation: Orientation;\n};\n\nconst AvatarGroupContext = createContext<AvatarGroupContextType | null>(null);\n\nexport function useAvatarGroup(): AvatarGroupContextType | null {\n const context = useContext(AvatarGroupContext);\n return !context ? null : context;\n}\n\n/**\n * [AvatarGroup](https://cambly-syntax.vercel.app/?path=/docs/components-avatargroup--docs) is a stack of avatars to represent a group of people\n *\n * Pass in Avatar components as children to the AvatarGroup component. The size prop that is passed into the AvatarGroup component will override Avatar's size prop..\n *\n * Usage:\n *\n * <AvatarGroup size=\"xl\" orientation=\"standard\">\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * </AvatarGroup>\n *\n */\nexport default function AvatarGroup({\n size = \"md\",\n orientation = \"standard\",\n children,\n}: {\n /**\n * Size of the avatars in the AvatarGroup.\n *\n * * `sm`: 24px\n * * `md`: 40px\n * * `lg`: 72px\n * * `xl`: 128px\n *\n * @defaultValue `md`\n */\n size?: Size;\n /**\n * Orientation of the AvatarGroup.\n * This describes the order of rendering of the Avatar components.\n * Standard renders the Avatar components with the right component on top.\n * Reverse renders the Avatar components with the left component on top.\n *\n * @defaultValue `standard`\n */\n orientation?: Orientation;\n /**\n * Avatars to be rendered within the AvatarGroup.\n */\n children: ReactNode;\n}): ReactElement {\n return (\n <AvatarGroupContext.Provider value={{ size, orientation }}>\n <Box\n display=\"flex\"\n justifyContent={orientation === \"standard\" ? \"start\" : \"end\"}\n dangerouslySetInlineStyle={{\n __style: {\n flexDirection: orientation === \"standard\" ? \"row\" : \"row-reverse\",\n },\n }}\n >\n {children}\n </Box>\n </AvatarGroupContext.Provider>\n );\n}\n\nAvatarGroup.displayName = \"AvatarGroup\";\n"]}
1
+ {"version":3,"sources":["../../src/AvatarGroup/AvatarGroup.tsx"],"sourcesContent":["import {\n type ReactNode,\n createContext,\n useContext,\n type ReactElement,\n} from \"react\";\nimport Box from \"../Box/Box\";\n\ntype Size = \"sm\" | \"md\" | \"lg\" | \"xl\";\ntype Orientation = \"standard\" | \"reverse\";\n\ntype AvatarGroupContextType = {\n size: Size;\n orientation: Orientation;\n};\n\nconst AvatarGroupContext = createContext<AvatarGroupContextType | null>(null);\n\nexport function useAvatarGroup(): AvatarGroupContextType | null {\n const context = useContext(AvatarGroupContext);\n return !context ? null : context;\n}\n\n/**\n * [AvatarGroup](https://cambly-syntax.vercel.app/?path=/docs/components-avatargroup--docs) is a stack of avatars to represent a group of people\n *\n * Pass in Avatar components as children to the AvatarGroup component. The size prop that is passed into the AvatarGroup component will override Avatar's size prop..\n *\n * Usage:\n *\n * <AvatarGroup size=\"xl\" orientation=\"standard\">\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * <Avatar accessibilityLabel=\"Joseph Liotta\" src=\"image.png\" />\n * </AvatarGroup>\n *\n */\nexport default function AvatarGroup({\n size = \"md\",\n orientation = \"standard\",\n children,\n}: {\n /**\n * Size of the avatars in the AvatarGroup.\n *\n * * `sm`: 24px\n * * `md`: 40px\n * * `lg`: 72px\n * * `xl`: 128px\n *\n * @defaultValue `md`\n */\n size?: Size;\n /**\n * Orientation of the AvatarGroup.\n * This describes the order of rendering of the Avatar components.\n * Standard renders the Avatar components with the right component on top.\n * Reverse renders the Avatar components with the left component on top.\n *\n * @defaultValue `standard`\n */\n orientation?: Orientation;\n /**\n * Avatars to be rendered within the AvatarGroup.\n */\n children: ReactNode;\n}): ReactElement {\n return (\n <AvatarGroupContext.Provider value={{ size, orientation }}>\n <Box\n display=\"flex\"\n justifyContent={orientation === \"standard\" ? \"start\" : \"end\"}\n dangerouslySetInlineStyle={{\n __style: {\n flexDirection: orientation === \"standard\" ? \"row\" : \"row-reverse\",\n },\n }}\n >\n {children}\n </Box>\n </AvatarGroupContext.Provider>\n );\n}\n\nAvatarGroup.displayName = \"AvatarGroup\";\n"],"mappings":";;;;;AAAA;AAAA,EAEE;AAAA,EACA;AAAA,OAEK;AAgED;AArDN,IAAM,qBAAqB,cAA6C,IAAI;AAErE,SAAS,iBAAgD;AAC9D,QAAM,UAAU,WAAW,kBAAkB;AAC7C,SAAO,CAAC,UAAU,OAAO;AAC3B;AAgBe,SAAR,YAA6B;AAAA,EAClC,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AACF,GAyBiB;AACf,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,MAAM,YAAY,GACtD;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,gBAAgB,gBAAgB,aAAa,UAAU;AAAA,MACvD,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,eAAe,gBAAgB,aAAa,QAAQ;AAAA,QACtD;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH,GACF;AAEJ;AAEA,YAAY,cAAc;","names":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _CY6YL5T4cjs = require('./CY6YL5T4.cjs');
4
+
5
+
6
+ var _ARYAYAXHcjs = require('./ARYAYAXH.cjs');
7
+
8
+ // css-module:./Badge.module.css#css-module
9
+ var Badge_module_default = { "icon": "_icon_1g9xb_1" };
10
+
11
+ // src/Badge/Badge.tsx
12
+ var _jsxruntime = require('react/jsx-runtime');
13
+ var textColorForBackgroundColor = (color) => {
14
+ switch (color) {
15
+ case "gray200":
16
+ case "yellow700":
17
+ return "gray900";
18
+ default:
19
+ return "white";
20
+ }
21
+ };
22
+ var Badge = ({
23
+ icon: Icon,
24
+ text,
25
+ color = "primary700"
26
+ }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27
+ _CY6YL5T4cjs.Box_default,
28
+ {
29
+ display: "inlineBlock",
30
+ paddingX: 2,
31
+ paddingY: 1,
32
+ rounding: "full",
33
+ backgroundColor: color,
34
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ARYAYAXHcjs.Typography_default, { color: textColorForBackgroundColor(color), size: 100, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _CY6YL5T4cjs.Box_default, { display: "flex", gap: 1, alignItems: "center", justifyContent: "start", children: [
35
+ Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: Badge_module_default.icon }),
36
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
37
+ _ARYAYAXHcjs.Typography_default,
38
+ {
39
+ color: textColorForBackgroundColor(color),
40
+ size: 100,
41
+ weight: "bold",
42
+ children: text
43
+ }
44
+ )
45
+ ] }) })
46
+ }
47
+ );
48
+ var Badge_default = Badge;
49
+
50
+
51
+
52
+ exports.Badge_default = Badge_default;
53
+ //# sourceMappingURL=GBJX7OPK.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["css-module:./Badge.module.css#css-module","../../src/Badge/Badge.tsx"],"names":[],"mappings":";;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,QAAO,gBAAe;;;AC0D1H,SACW,KADX;AA3CN,IAAM,8BAA8B,CAClC,UACwB;AACxB,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAKA,IAAM,QAAQ,CAAC;AAAA,EACb,MAAM;AAAA,EACN;AAAA,EACA,QAAQ;AACV,MAgBE;AAAA,EAAC;AAAA;AAAA,IACC,SAAQ;AAAA,IACR,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAS;AAAA,IACT,iBAAiB;AAAA,IAEjB,8BAAC,sBAAW,OAAO,4BAA4B,KAAK,GAAG,MAAM,KAC3D,+BAAC,eAAI,SAAQ,QAAO,KAAK,GAAG,YAAW,UAAS,gBAAe,SAC5D;AAAA,cAAQ,oBAAC,QAAK,WAAW,qBAAO,MAAM;AAAA,MACvC;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,4BAA4B,KAAK;AAAA,UACxC,MAAM;AAAA,UACN,QAAO;AAAA,UAEN;AAAA;AAAA,MACH;AAAA,OACF,GACF;AAAA;AACF;AAGF,IAAO,gBAAQ","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Badge/Badge.module.css\"; export default {\"icon\":\"_icon_1g9xb_1\"}","import Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport styles from \"./Badge.module.css\";\n\nconst BadgeColor = [\n \"gray200\",\n \"gray900\",\n \"destructive700\",\n \"orange700\",\n \"yellow700\",\n \"success700\",\n \"primary700\",\n \"purple700\",\n] as const;\n\nconst textColorForBackgroundColor = (\n color: (typeof BadgeColor)[number],\n): \"gray900\" | \"white\" => {\n switch (color) {\n case \"gray200\":\n case \"yellow700\":\n return \"gray900\";\n default:\n return \"white\";\n }\n};\n\n/**\n * [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.\n */\nconst Badge = ({\n icon: Icon,\n text,\n color = \"primary700\",\n}: {\n /**\n * The icon to be displayed. Please use a [Material Icon](https://material.io/resources/icons/)\n */\n icon?: React.ComponentType<{ className?: string }>;\n /**\n * The text to display inside the badge\n */\n text: string;\n /**\n * The color of the badge\n *\n * @defaultValue \"primary700\"\n */\n color?: (typeof BadgeColor)[number];\n}): JSX.Element => (\n <Box\n display=\"inlineBlock\"\n paddingX={2}\n paddingY={1}\n rounding=\"full\"\n backgroundColor={color}\n >\n <Typography color={textColorForBackgroundColor(color)} size={100}>\n <Box display=\"flex\" gap={1} alignItems=\"center\" justifyContent=\"start\">\n {Icon && <Icon className={styles.icon} />}\n <Typography\n color={textColorForBackgroundColor(color)}\n size={100}\n weight=\"bold\"\n >\n {text}\n </Typography>\n </Box>\n </Typography>\n </Box>\n);\n\nexport default Badge;\n"]}
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/SelectList/SelectOption.tsx
2
+ var _jsxruntime = require('react/jsx-runtime');
3
+ var SelectOption = ({
4
+ "data-testid": dataTestId,
5
+ value,
6
+ label,
7
+ disabled = false
8
+ }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { "data-testid": dataTestId, value, disabled, children: label });
9
+ var SelectOption_default = SelectOption;
10
+
11
+
12
+
13
+ exports.SelectOption_default = SelectOption_default;
14
+ //# sourceMappingURL=GKECCWR3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"names":[],"mappings":";AAaE;AAXF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAME,oBAAC,YAAO,eAAa,YAAY,OAAc,UAC5C,iBACH;AAGF,IAAO,uBAAQ","sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n}: {\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option data-testid={dataTestId} value={value} disabled={disabled}>\n {label}\n </option>\n);\n\nexport default SelectOption;\n"]}
@@ -1,41 +1,41 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
-
3
- var _SAEVPDUPjs = require('./SAEVPDUP.js');
4
-
5
-
6
- var _5DBWL6IKjs = require('./5DBWL6IK.js');
7
-
8
-
9
- var _4PWSK5GIjs = require('./4PWSK5GI.js');
10
-
11
-
12
- var _PYNS67IVjs = require('./PYNS67IV.js');
13
-
14
-
15
- var _F3ZST4RLjs = require('./F3ZST4RL.js');
16
-
17
-
18
- var _YJ7YDIGBjs = require('./YJ7YDIGB.js');
19
-
20
-
21
- var _HQVZUEWOjs = require('./HQVZUEWO.js');
22
-
23
-
24
- var _CATJI2RJjs = require('./CATJI2RJ.js');
25
-
26
-
27
- var _G4DDTGDIjs = require('./G4DDTGDI.js');
1
+ import {
2
+ loadingIconSize_default
3
+ } from "./SAEVPDUP.js";
4
+ import {
5
+ textVariant_default
6
+ } from "./5DBWL6IK.js";
7
+ import {
8
+ iconSize_default
9
+ } from "./4PWSK5GI.js";
10
+ import {
11
+ Box_default
12
+ } from "./PYNS67IV.js";
13
+ import {
14
+ Typography_default
15
+ } from "./F3ZST4RL.js";
16
+ import {
17
+ useIsHydrated
18
+ } from "./YJ7YDIGB.js";
19
+ import {
20
+ foregroundTypographyColor
21
+ } from "./HQVZUEWO.js";
22
+ import {
23
+ foregroundColor
24
+ } from "./CATJI2RJ.js";
25
+ import {
26
+ backgroundColor
27
+ } from "./G4DDTGDI.js";
28
28
 
29
29
  // src/Button/Button.tsx
30
- var _react = require('react');
31
- var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
30
+ import { forwardRef } from "react";
31
+ import classNames from "classnames";
32
32
 
33
33
  // css-module:./Button.module.css#css-module
34
34
  var Button_module_default = { "button": "_button_1iunh_1", "buttonGap": "_buttonGap_1iunh_9", "fullWidth": "_fullWidth_1iunh_50", "sm": "_sm_1iunh_54", "md": "_md_1iunh_61", "lg": "_lg_1iunh_68", "icon": "_icon_1iunh_75", "smIcon": "_smIcon_1iunh_79", "mdIcon": "_mdIcon_1iunh_86", "lgIcon": "_lgIcon_1iunh_93", "secondaryBorder": "_secondaryBorder_1iunh_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1iunh_104", "loading": "_loading_1iunh_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1iunh_1", "loadingCircle": "_loadingCircle_1iunh_122" };
35
35
 
36
36
  // src/Button/Button.tsx
37
- var _jsxruntime = require('react/jsx-runtime');
38
- var Button = _react.forwardRef.call(void 0,
37
+ import { jsx, jsxs } from "react/jsx-runtime";
38
+ var Button = forwardRef(
39
39
  ({
40
40
  "data-testid": dataTestId,
41
41
  text,
@@ -52,8 +52,8 @@ var Button = _react.forwardRef.call(void 0,
52
52
  tooltip,
53
53
  type = "button"
54
54
  }, ref) => {
55
- const isHydrated = _YJ7YDIGBjs.useIsHydrated.call(void 0, );
56
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
55
+ const isHydrated = useIsHydrated();
56
+ return /* @__PURE__ */ jsxs(
57
57
  "button",
58
58
  {
59
59
  "data-testid": dataTestId,
@@ -63,10 +63,10 @@ var Button = _react.forwardRef.call(void 0,
63
63
  title: tooltip,
64
64
  disabled: !isHydrated || disabled || loading,
65
65
  onClick,
66
- className: _classnames2.default.call(void 0,
66
+ className: classNames(
67
67
  Button_module_default.button,
68
- _CATJI2RJjs.foregroundColor.call(void 0, color),
69
- _G4DDTGDIjs.backgroundColor.call(void 0, color),
68
+ foregroundColor(color),
69
+ backgroundColor(color),
70
70
  Button_module_default[size],
71
71
  {
72
72
  [Button_module_default.fullWidth]: fullWidth,
@@ -76,24 +76,24 @@ var Button = _react.forwardRef.call(void 0,
76
76
  }
77
77
  ),
78
78
  children: [
79
- !loading && StartIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StartIcon, { className: _classnames2.default.call(void 0, Button_module_default.icon, _4PWSK5GIjs.iconSize_default[size]) }),
80
- (loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PYNS67IVjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
81
- _F3ZST4RLjs.Typography_default,
79
+ !loading && StartIcon && /* @__PURE__ */ jsx(StartIcon, { className: classNames(Button_module_default.icon, iconSize_default[size]) }),
80
+ (loading && loadingText || !loading && text) && /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(
81
+ Typography_default,
82
82
  {
83
- size: _5DBWL6IKjs.textVariant_default[size],
84
- color: _HQVZUEWOjs.foregroundTypographyColor.call(void 0, color),
85
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: 500 }, children: loading ? loadingText : text })
83
+ size: textVariant_default[size],
84
+ color: foregroundTypographyColor(color),
85
+ children: /* @__PURE__ */ jsx("span", { style: { fontWeight: 500 }, children: loading ? loadingText : text })
86
86
  }
87
87
  ) }),
88
- !loading && EndIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EndIcon, { className: _classnames2.default.call(void 0, Button_module_default.icon, _4PWSK5GIjs.iconSize_default[size]) }),
89
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
88
+ !loading && EndIcon && /* @__PURE__ */ jsx(EndIcon, { className: classNames(Button_module_default.icon, iconSize_default[size]) }),
89
+ loading && /* @__PURE__ */ jsx(
90
90
  "svg",
91
91
  {
92
- className: _classnames2.default.call(void 0, Button_module_default.loading, _CATJI2RJjs.foregroundColor.call(void 0, color)),
92
+ className: classNames(Button_module_default.loading, foregroundColor(color)),
93
93
  viewBox: "22 22 44 44",
94
- width: _SAEVPDUPjs.loadingIconSize_default[size],
95
- height: _SAEVPDUPjs.loadingIconSize_default[size],
96
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
94
+ width: loadingIconSize_default[size],
95
+ height: loadingIconSize_default[size],
96
+ children: /* @__PURE__ */ jsx(
97
97
  "circle",
98
98
  {
99
99
  className: Button_module_default.loadingCircle,
@@ -114,7 +114,7 @@ var Button = _react.forwardRef.call(void 0,
114
114
  Button.displayName = "Button";
115
115
  var Button_default = Button;
116
116
 
117
-
118
-
119
- exports.Button_default = Button_default;
117
+ export {
118
+ Button_default
119
+ };
120
120
  //# sourceMappingURL=GPS2XNQI.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Button/Button.tsx","css-module:./Button.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDqE,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,mBAAkB,8BAA6B,8BAA6B,yCAAwC,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;AD4H1mB,SAuBI,KAvBJ;AAvBN,IAAM,SAAS;AAAA,EACb,CACE;AAAA,IACE,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,OAAO;AAAA,EACT,GACA,QACG;AACH,UAAM,aAAa,cAAc;AAEjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb;AAAA,QACA,cAAY;AAAA,QACZ;AAAA,QACA,OAAO;AAAA,QACP,UAAU,CAAC,cAAc,YAAY;AAAA,QACrC;AAAA,QACA,WAAW;AAAA,UACT,sBAAO;AAAA,UACP,gBAAgB,KAAK;AAAA,UACrB,gBAAgB,KAAK;AAAA,UACrB,sBAAO,IAAI;AAAA,UACX;AAAA,YACE,CAAC,sBAAO,SAAS,GAAG;AAAA,YACpB,CAAC,sBAAO,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YAC9C,CAAC,sBAAO,eAAe,GAAG,UAAU;AAAA,YACpC,CAAC,sBAAO,0BAA0B,GAChC,UAAU;AAAA,UACd;AAAA,QACF;AAAA,QAEC;AAAA,WAAC,WAAW,aACX,oBAAC,aAAU,WAAW,WAAW,sBAAO,MAAM,iBAAS,IAAI,CAAC,GAAG;AAAA,WAE9D,WAAW,eAAiB,CAAC,WAAW,SACzC,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,oBAAY,IAAI;AAAA,cACtB,OAAO,0BAA0B,KAAK;AAAA,cAEtC,8BAAC,UAAK,OAAO,EAAE,YAAY,IAAI,GAC5B,oBAAU,cAAc,MAC3B;AAAA;AAAA,UACF,GACF;AAAA,UAED,CAAC,WAAW,WACX,oBAAC,WAAQ,WAAW,WAAW,sBAAO,MAAM,iBAAS,IAAI,CAAC,GAAG;AAAA,UAE9D,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAO,SAAS,gBAAgB,KAAK,CAAC;AAAA,cAC5D,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAO;AAAA,kBAClB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;AAErB,IAAO,iBAAQ","sourcesContent":["import React, { forwardRef } from \"react\";\nimport classNames from \"classnames\";\n\nimport backgroundColor from \"../colors//backgroundColor\";\nimport foregroundColor from \"../colors/foregroundColor\";\nimport foregroundTypographyColor from \"../colors/foregroundTypographyColor\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\n\nimport iconSize from \"./constants/iconSize\";\nimport textVariant from \"./constants/textVariant\";\nimport loadingIconSize from \"./constants/loadingIconSize\";\nimport styles from \"./Button.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype ButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The text to be displayed inside the button when it is in a loading state\n */\n loadingText?: string;\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success\"\n | \"inverse\";\n /**\n * The size of the button\n *\n * * `sm`: 32px\n * * `md`: 40px\n * * `lg`: 48px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * The label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The callback to be called when the button is clicked\n */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The tooltip to be displayed when the user hovers over the button\n */\n tooltip?: string;\n /**\n * The type you want to set for the primitive <button/>\n */\n type?: \"button\" | \"submit\" | \"reset\";\n};\n\n/**\n * [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.\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n \"data-testid\": dataTestId,\n text,\n loadingText,\n color = \"primary\",\n size = \"md\",\n accessibilityLabel,\n disabled = false,\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n onClick,\n tooltip,\n type = \"button\",\n }: ButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n\n return (\n <button\n data-testid={dataTestId}\n ref={ref}\n aria-label={accessibilityLabel}\n type={type}\n title={tooltip}\n disabled={!isHydrated || disabled || loading}\n onClick={onClick}\n className={classNames(\n styles.button,\n foregroundColor(color),\n backgroundColor(color),\n styles[size],\n {\n [styles.fullWidth]: fullWidth,\n [styles.buttonGap]: size === \"lg\" || size === \"md\",\n [styles.secondaryBorder]: color === \"secondary\",\n [styles.secondaryDestructiveBorder]:\n color === \"destructive-secondary\",\n },\n )}\n >\n {!loading && StartIcon && (\n <StartIcon className={classNames(styles.icon, iconSize[size])} />\n )}\n {((loading && loadingText) || (!loading && text)) && (\n <Box paddingX={1}>\n <Typography\n size={textVariant[size]}\n color={foregroundTypographyColor(color)}\n >\n <span style={{ fontWeight: 500 }}>\n {loading ? loadingText : text}\n </span>\n </Typography>\n </Box>\n )}\n {!loading && EndIcon && (\n <EndIcon className={classNames(styles.icon, iconSize[size])} />\n )}\n {loading && (\n <svg\n className={classNames(styles.loading, foregroundColor(color))}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={styles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </button>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport default Button;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_1iunh_1\",\"buttonGap\":\"_buttonGap_1iunh_9\",\"fullWidth\":\"_fullWidth_1iunh_50\",\"sm\":\"_sm_1iunh_54\",\"md\":\"_md_1iunh_61\",\"lg\":\"_lg_1iunh_68\",\"icon\":\"_icon_1iunh_75\",\"smIcon\":\"_smIcon_1iunh_79\",\"mdIcon\":\"_mdIcon_1iunh_86\",\"lgIcon\":\"_lgIcon_1iunh_93\",\"secondaryBorder\":\"_secondaryBorder_1iunh_100\",\"secondaryDestructiveBorder\":\"_secondaryDestructiveBorder_1iunh_104\",\"loading\":\"_loading_1iunh_118\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_1iunh_1\",\"loadingCircle\":\"_loadingCircle_1iunh_122\"}"]}
1
+ {"version":3,"sources":["../../src/Button/Button.tsx","css-module:./Button.module.css#css-module"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport classNames from \"classnames\";\n\nimport backgroundColor from \"../colors//backgroundColor\";\nimport foregroundColor from \"../colors/foregroundColor\";\nimport foregroundTypographyColor from \"../colors/foregroundTypographyColor\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\n\nimport iconSize from \"./constants/iconSize\";\nimport textVariant from \"./constants/textVariant\";\nimport loadingIconSize from \"./constants/loadingIconSize\";\nimport styles from \"./Button.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype ButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The text to be displayed inside the button when it is in a loading state\n */\n loadingText?: string;\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success\"\n | \"inverse\";\n /**\n * The size of the button\n *\n * * `sm`: 32px\n * * `md`: 40px\n * * `lg`: 48px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * The label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?: React.ComponentType<{ className?: string }>;\n /**\n * The callback to be called when the button is clicked\n */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The tooltip to be displayed when the user hovers over the button\n */\n tooltip?: string;\n /**\n * The type you want to set for the primitive <button/>\n */\n type?: \"button\" | \"submit\" | \"reset\";\n};\n\n/**\n * [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.\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n \"data-testid\": dataTestId,\n text,\n loadingText,\n color = \"primary\",\n size = \"md\",\n accessibilityLabel,\n disabled = false,\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n onClick,\n tooltip,\n type = \"button\",\n }: ButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n\n return (\n <button\n data-testid={dataTestId}\n ref={ref}\n aria-label={accessibilityLabel}\n type={type}\n title={tooltip}\n disabled={!isHydrated || disabled || loading}\n onClick={onClick}\n className={classNames(\n styles.button,\n foregroundColor(color),\n backgroundColor(color),\n styles[size],\n {\n [styles.fullWidth]: fullWidth,\n [styles.buttonGap]: size === \"lg\" || size === \"md\",\n [styles.secondaryBorder]: color === \"secondary\",\n [styles.secondaryDestructiveBorder]:\n color === \"destructive-secondary\",\n },\n )}\n >\n {!loading && StartIcon && (\n <StartIcon className={classNames(styles.icon, iconSize[size])} />\n )}\n {((loading && loadingText) || (!loading && text)) && (\n <Box paddingX={1}>\n <Typography\n size={textVariant[size]}\n color={foregroundTypographyColor(color)}\n >\n <span style={{ fontWeight: 500 }}>\n {loading ? loadingText : text}\n </span>\n </Typography>\n </Box>\n )}\n {!loading && EndIcon && (\n <EndIcon className={classNames(styles.icon, iconSize[size])} />\n )}\n {loading && (\n <svg\n className={classNames(styles.loading, foregroundColor(color))}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={styles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </button>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport default Button;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_1iunh_1\",\"buttonGap\":\"_buttonGap_1iunh_9\",\"fullWidth\":\"_fullWidth_1iunh_50\",\"sm\":\"_sm_1iunh_54\",\"md\":\"_md_1iunh_61\",\"lg\":\"_lg_1iunh_68\",\"icon\":\"_icon_1iunh_75\",\"smIcon\":\"_smIcon_1iunh_79\",\"mdIcon\":\"_mdIcon_1iunh_86\",\"lgIcon\":\"_lgIcon_1iunh_93\",\"secondaryBorder\":\"_secondaryBorder_1iunh_100\",\"secondaryDestructiveBorder\":\"_secondaryDestructiveBorder_1iunh_104\",\"loading\":\"_loading_1iunh_118\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_1iunh_1\",\"loadingCircle\":\"_loadingCircle_1iunh_122\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAClC,OAAO,gBAAgB;;;ACDqE,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,mBAAkB,8BAA6B,8BAA6B,yCAAwC,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;AD4H1mB,SAuBI,KAvBJ;AAvBN,IAAM,SAAS;AAAA,EACb,CACE;AAAA,IACE,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,OAAO;AAAA,EACT,GACA,QACG;AACH,UAAM,aAAa,cAAc;AAEjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb;AAAA,QACA,cAAY;AAAA,QACZ;AAAA,QACA,OAAO;AAAA,QACP,UAAU,CAAC,cAAc,YAAY;AAAA,QACrC;AAAA,QACA,WAAW;AAAA,UACT,sBAAO;AAAA,UACP,gBAAgB,KAAK;AAAA,UACrB,gBAAgB,KAAK;AAAA,UACrB,sBAAO,IAAI;AAAA,UACX;AAAA,YACE,CAAC,sBAAO,SAAS,GAAG;AAAA,YACpB,CAAC,sBAAO,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YAC9C,CAAC,sBAAO,eAAe,GAAG,UAAU;AAAA,YACpC,CAAC,sBAAO,0BAA0B,GAChC,UAAU;AAAA,UACd;AAAA,QACF;AAAA,QAEC;AAAA,WAAC,WAAW,aACX,oBAAC,aAAU,WAAW,WAAW,sBAAO,MAAM,iBAAS,IAAI,CAAC,GAAG;AAAA,WAE9D,WAAW,eAAiB,CAAC,WAAW,SACzC,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM,oBAAY,IAAI;AAAA,cACtB,OAAO,0BAA0B,KAAK;AAAA,cAEtC,8BAAC,UAAK,OAAO,EAAE,YAAY,IAAI,GAC5B,oBAAU,cAAc,MAC3B;AAAA;AAAA,UACF,GACF;AAAA,UAED,CAAC,WAAW,WACX,oBAAC,WAAQ,WAAW,WAAW,sBAAO,MAAM,iBAAS,IAAI,CAAC,GAAG;AAAA,UAE9D,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAO,SAAS,gBAAgB,KAAK,CAAC;AAAA,cAC5D,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAO;AAAA,kBAClB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;AAErB,IAAO,iBAAQ;","names":[]}
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
-
3
- var _PYNS67IVjs = require('./PYNS67IV.js');
4
-
5
-
6
- var _F3ZST4RLjs = require('./F3ZST4RL.js');
7
-
8
-
9
- var _YJ7YDIGBjs = require('./YJ7YDIGB.js');
1
+ import {
2
+ Box_default
3
+ } from "./PYNS67IV.js";
4
+ import {
5
+ Typography_default
6
+ } from "./F3ZST4RL.js";
7
+ import {
8
+ useIsHydrated
9
+ } from "./YJ7YDIGB.js";
10
10
 
11
11
  // src/TextArea/TextArea.tsx
12
- var _react = require('react');
12
+ import { useId, forwardRef } from "react";
13
13
 
14
14
  // css-module:./TextArea.module.css#css-module
15
15
  var TextArea_module_default = { "textarea": "_textarea_11ro9_1", "sm": "_sm_11ro9_5", "md": "_md_11ro9_10", "lg": "_lg_11ro9_15" };
@@ -18,9 +18,9 @@ var TextArea_module_default = { "textarea": "_textarea_11ro9_1", "sm": "_sm_11ro
18
18
  var TextField_module_default = { "textfield": "_textfield_bmndn_1", "label": "_label_bmndn_20", "sm": "_sm_bmndn_24", "smHeight": "_smHeight_bmndn_31", "md": "_md_bmndn_35", "mdHeight": "_mdHeight_bmndn_42", "lg": "_lg_bmndn_46", "lgHeight": "_lgHeight_bmndn_53", "inputError": "_inputError_bmndn_57" };
19
19
 
20
20
  // src/TextArea/TextArea.tsx
21
- var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
22
- var _jsxruntime = require('react/jsx-runtime');
23
- var TextArea = _react.forwardRef.call(void 0,
21
+ import classNames from "classnames";
22
+ import { jsx, jsxs } from "react/jsx-runtime";
23
+ var TextArea = forwardRef(
24
24
  function TextArea2({
25
25
  "data-testid": dataTestId,
26
26
  disabled: disabledProp = false,
@@ -35,12 +35,12 @@ var TextArea = _react.forwardRef.call(void 0,
35
35
  value = "",
36
36
  onChange
37
37
  }, forwardedRef) {
38
- const isHydrated = _YJ7YDIGBjs.useIsHydrated.call(void 0, );
38
+ const isHydrated = useIsHydrated();
39
39
  const disabled = !isHydrated || disabledProp;
40
- const reactId = _react.useId.call(void 0, );
40
+ const reactId = useId();
41
41
  const inputId = id != null ? id : reactId;
42
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
43
- _PYNS67IVjs.Box_default,
42
+ return /* @__PURE__ */ jsxs(
43
+ Box_default,
44
44
  {
45
45
  display: "flex",
46
46
  direction: "column",
@@ -52,13 +52,13 @@ var TextArea = _react.forwardRef.call(void 0,
52
52
  }
53
53
  },
54
54
  children: [
55
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PYNS67IVjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _F3ZST4RLjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
56
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _F3ZST4RLjs.Typography_default, { size: 200, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
55
+ /* @__PURE__ */ jsx("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(Typography_default, { size: 100, color: "gray700", children: label }) }) }),
56
+ /* @__PURE__ */ jsx(Typography_default, { size: 200, children: /* @__PURE__ */ jsx(
57
57
  "textarea",
58
58
  {
59
59
  "data-testid": dataTestId,
60
60
  ref: forwardedRef,
61
- className: _classnames2.default.call(void 0,
61
+ className: classNames(
62
62
  TextField_module_default.textfield,
63
63
  TextField_module_default[size],
64
64
  TextArea_module_default.textarea,
@@ -76,8 +76,8 @@ var TextArea = _react.forwardRef.call(void 0,
76
76
  disabled
77
77
  }
78
78
  ) }),
79
- (helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PYNS67IVjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
80
- _F3ZST4RLjs.Typography_default,
79
+ (helperText || errorText) && /* @__PURE__ */ jsx(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx(
80
+ Typography_default,
81
81
  {
82
82
  size: 100,
83
83
  color: errorText ? "destructive-primary" : "gray700",
@@ -91,7 +91,7 @@ var TextArea = _react.forwardRef.call(void 0,
91
91
  );
92
92
  var TextArea_default = TextArea;
93
93
 
94
-
95
-
96
- exports.TextArea_default = TextArea_default;
94
+ export {
95
+ TextArea_default
96
+ };
97
97
  //# sourceMappingURL=GPWBSPBL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/TextArea/TextArea.tsx","css-module:./TextArea.module.css#css-module","css-module:../TextField/TextField.module.css#css-module"],"names":["TextArea"],"mappings":";;;;;;;;;;;AAEA,SAAmC,OAAO,kBAAkB;;;ACFoC,IAAO,0BAAQ,EAAC,YAAW,qBAAoB,MAAK,eAAc,MAAK,gBAAe,MAAK,eAAc;;;ACAvG,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,SAAQ,mBAAkB,MAAK,gBAAe,YAAW,sBAAqB,MAAK,gBAAe,YAAW,sBAAqB,MAAK,gBAAe,YAAW,sBAAqB,cAAa,uBAAsB;;;AFK5W,OAAO,gBAAgB;AAmFjB,SAaM,KAbN;AAxBN,IAAM,WAAW;AAAA,EACf,SAASA,UACP;AAAA,IACE,eAAe;AAAA,IACf,UAAU,eAAe;AAAA,IACzB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR;AAAA,EACF,GACA,cACc;AACd,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAChC,UAAM,UAAU,MAAM;AACtB,UAAM,UAAU,kBAAM;AAEtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAM;AAAA,QACN,2BAA2B;AAAA,UACzB,SAAS;AAAA,YACP,SAAS,WAAW,MAAM;AAAA,UAC5B;AAAA,QACF;AAAA,QAEA;AAAA,8BAAC,WAAM,WAAW,yBAAgB,OAAO,SAAS,SAChD,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,UACA,oBAAC,sBAAW,MAAM,KAChB;AAAA,YAAC;AAAA;AAAA,cACC,eAAa;AAAA,cACb,KAAK;AAAA,cACL,WAAW;AAAA,gBACT,yBAAgB;AAAA,gBAChB,yBAAgB,IAAI;AAAA,gBACpB,wBAAO;AAAA,gBACP,wBAAO,IAAI;AAAA,gBACX;AAAA,kBACE,CAAC,yBAAgB,UAAU,GAAG;AAAA,gBAChC;AAAA,cACF;AAAA,cACA,IAAI;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF,GACF;AAAA,WACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,OAAO,YAAY,wBAAwB;AAAA,cAE1C,uBAAa;AAAA;AAAA,UAChB,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ","sourcesContent":["import Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport React, { type ReactElement, useId, forwardRef } from \"react\";\nimport styles from \"./TextArea.module.css\";\nimport textFieldStyles from \"../TextField/TextField.module.css\";\nimport classNames from \"classnames\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype TextAreaProps = {\n /**\n * A data-testid to make querying for the TextArea easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextArea will be disabled.\n */\n disabled?: boolean;\n /**\n * Text shown below TextArea if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextArea\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextArea visible label\n */\n label: string;\n /**\n * Maximum number of characters allowed in the TextArea\n */\n maxLength?: number;\n /**\n * Callback fired when the value is changed.\n */\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n /**\n * Placeholder text to display when TextArea is empty\n */\n placeholder?: string;\n /**\n * Size of the TextArea. Defines the font size and padding.\n *\n * @defaultValue \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n /**\n * Number of rows to display\n */\n rows?: number;\n /**\n * Value of the TextArea\n */\n value: string;\n};\n\n/**\n * [TextArea](https://cambly-syntax.vercel.app/?path=/docs/components-textarea--docs) allows users to enter multiple lines of text.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength = 1024,\n placeholder = \"\",\n rows = 3,\n size = \"md\",\n value = \"\",\n onChange,\n }: TextAreaProps,\n forwardedRef,\n ): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\n\n return (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={2}\n width=\"100%\"\n dangerouslySetInlineStyle={{\n __style: {\n opacity: disabled ? 0.5 : 1,\n },\n }}\n >\n <label className={textFieldStyles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n <Typography size={200}>\n <textarea\n data-testid={dataTestId}\n ref={forwardedRef}\n className={classNames(\n textFieldStyles.textfield,\n textFieldStyles[size],\n styles.textarea,\n styles[size],\n {\n [textFieldStyles.inputError]: errorText,\n },\n )}\n id={inputId}\n placeholder={placeholder}\n maxLength={maxLength}\n onChange={onChange}\n rows={rows}\n value={value}\n disabled={disabled}\n />\n </Typography>\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-primary\" : \"gray700\"}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nexport default TextArea;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextArea/TextArea.module.css\"; export default {\"textarea\":\"_textarea_11ro9_1\",\"sm\":\"_sm_11ro9_5\",\"md\":\"_md_11ro9_10\",\"lg\":\"_lg_11ro9_15\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_bmndn_1\",\"label\":\"_label_bmndn_20\",\"sm\":\"_sm_bmndn_24\",\"smHeight\":\"_smHeight_bmndn_31\",\"md\":\"_md_bmndn_35\",\"mdHeight\":\"_mdHeight_bmndn_42\",\"lg\":\"_lg_bmndn_46\",\"lgHeight\":\"_lgHeight_bmndn_53\",\"inputError\":\"_inputError_bmndn_57\"}"]}
1
+ {"version":3,"sources":["../../src/TextArea/TextArea.tsx","css-module:./TextArea.module.css#css-module","css-module:../TextField/TextField.module.css#css-module"],"sourcesContent":["import Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport React, { type ReactElement, useId, forwardRef } from \"react\";\nimport styles from \"./TextArea.module.css\";\nimport textFieldStyles from \"../TextField/TextField.module.css\";\nimport classNames from \"classnames\";\nimport useIsHydrated from \"../useIsHydrated\";\n\ntype TextAreaProps = {\n /**\n * A data-testid to make querying for the TextArea easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextArea will be disabled.\n */\n disabled?: boolean;\n /**\n * Text shown below TextArea if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextArea\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextArea visible label\n */\n label: string;\n /**\n * Maximum number of characters allowed in the TextArea\n */\n maxLength?: number;\n /**\n * Callback fired when the value is changed.\n */\n onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n /**\n * Placeholder text to display when TextArea is empty\n */\n placeholder?: string;\n /**\n * Size of the TextArea. Defines the font size and padding.\n *\n * @defaultValue \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n /**\n * Number of rows to display\n */\n rows?: number;\n /**\n * Value of the TextArea\n */\n value: string;\n};\n\n/**\n * [TextArea](https://cambly-syntax.vercel.app/?path=/docs/components-textarea--docs) allows users to enter multiple lines of text.\n */\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n {\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength = 1024,\n placeholder = \"\",\n rows = 3,\n size = \"md\",\n value = \"\",\n onChange,\n }: TextAreaProps,\n forwardedRef,\n ): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\n\n return (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={2}\n width=\"100%\"\n dangerouslySetInlineStyle={{\n __style: {\n opacity: disabled ? 0.5 : 1,\n },\n }}\n >\n <label className={textFieldStyles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n <Typography size={200}>\n <textarea\n data-testid={dataTestId}\n ref={forwardedRef}\n className={classNames(\n textFieldStyles.textfield,\n textFieldStyles[size],\n styles.textarea,\n styles[size],\n {\n [textFieldStyles.inputError]: errorText,\n },\n )}\n id={inputId}\n placeholder={placeholder}\n maxLength={maxLength}\n onChange={onChange}\n rows={rows}\n value={value}\n disabled={disabled}\n />\n </Typography>\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-primary\" : \"gray700\"}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n },\n);\n\nexport default TextArea;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextArea/TextArea.module.css\"; export default {\"textarea\":\"_textarea_11ro9_1\",\"sm\":\"_sm_11ro9_5\",\"md\":\"_md_11ro9_10\",\"lg\":\"_lg_11ro9_15\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_bmndn_1\",\"label\":\"_label_bmndn_20\",\"sm\":\"_sm_bmndn_24\",\"smHeight\":\"_smHeight_bmndn_31\",\"md\":\"_md_bmndn_35\",\"mdHeight\":\"_mdHeight_bmndn_42\",\"lg\":\"_lg_bmndn_46\",\"lgHeight\":\"_lgHeight_bmndn_53\",\"inputError\":\"_inputError_bmndn_57\"}"],"mappings":";;;;;;;;;;;AAEA,SAAmC,OAAO,kBAAkB;;;ACFoC,IAAO,0BAAQ,EAAC,YAAW,qBAAoB,MAAK,eAAc,MAAK,gBAAe,MAAK,eAAc;;;ACAvG,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,SAAQ,mBAAkB,MAAK,gBAAe,YAAW,sBAAqB,MAAK,gBAAe,YAAW,sBAAqB,MAAK,gBAAe,YAAW,sBAAqB,cAAa,uBAAsB;;;AFK5W,OAAO,gBAAgB;AAmFjB,SAaM,KAbN;AAxBN,IAAM,WAAW;AAAA,EACf,SAASA,UACP;AAAA,IACE,eAAe;AAAA,IACf,UAAU,eAAe;AAAA,IACzB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR;AAAA,EACF,GACA,cACc;AACd,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAChC,UAAM,UAAU,MAAM;AACtB,UAAM,UAAU,kBAAM;AAEtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,KAAK;AAAA,QACL,OAAM;AAAA,QACN,2BAA2B;AAAA,UACzB,SAAS;AAAA,YACP,SAAS,WAAW,MAAM;AAAA,UAC5B;AAAA,QACF;AAAA,QAEA;AAAA,8BAAC,WAAM,WAAW,yBAAgB,OAAO,SAAS,SAChD,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,UACA,oBAAC,sBAAW,MAAM,KAChB;AAAA,YAAC;AAAA;AAAA,cACC,eAAa;AAAA,cACb,KAAK;AAAA,cACL,WAAW;AAAA,gBACT,yBAAgB;AAAA,gBAChB,yBAAgB,IAAI;AAAA,gBACpB,wBAAO;AAAA,gBACP,wBAAO,IAAI;AAAA,gBACX;AAAA,kBACE,CAAC,yBAAgB,UAAU,GAAG;AAAA,gBAChC;AAAA,cACF;AAAA,cACA,IAAI;AAAA,cACJ;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACF,GACF;AAAA,WACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,YAAC;AAAA;AAAA,cACC,MAAM;AAAA,cACN,OAAO,YAAY,wBAAwB;AAAA,cAE1C,uBAAa;AAAA;AAAA,UAChB,GACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;","names":["TextArea"]}
@@ -1,5 +1,5 @@
1
- // src/useFocusVisible.tsx
2
- import { useState, useEffect } from "react";
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/useFocusVisible.tsx
2
+ var _react = require('react');
3
3
  var hasSetupGlobalListeners = false;
4
4
  var currentModality = null;
5
5
  var changeHandlers = /* @__PURE__ */ new Set();
@@ -75,8 +75,8 @@ function setupGlobalFocusEvents() {
75
75
  }
76
76
  function useFocusVisible() {
77
77
  setupGlobalFocusEvents();
78
- const [isFocusVisibleState, setFocusVisible] = useState(isFocusVisible());
79
- useEffect(() => {
78
+ const [isFocusVisibleState, setFocusVisible] = _react.useState.call(void 0, isFocusVisible());
79
+ _react.useEffect.call(void 0, () => {
80
80
  const handler = () => {
81
81
  setFocusVisible(isFocusVisible());
82
82
  };
@@ -88,7 +88,7 @@ function useFocusVisible() {
88
88
  return { isFocusVisible: isFocusVisibleState };
89
89
  }
90
90
 
91
- export {
92
- useFocusVisible
93
- };
94
- //# sourceMappingURL=FCX7QDZS.mjs.map
91
+
92
+
93
+ exports.useFocusVisible = useFocusVisible;
94
+ //# sourceMappingURL=GVEA7SLQ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/useFocusVisible.tsx"],"names":[],"mappings":";AAIA,SAAS,UAAU,iBAAiB;AAMpC,IAAI,0BAA0B;AAC9B,IAAI,kBAAmC;AACvC,IAAM,iBAAiB,oBAAI,IAAa;AACxC,IAAI,sBAAsB;AAE1B,IAAM;AAAA;AAAA,EAEJ,OAAO,WAAW,eAAe,OAAO,aAAa;AAAA;AAAA,IAEjD,OAAO,KAAK,OAAO,UAAU,QAAQ;AAAA,MACrC;AAAA;AAEN,SAAS,WAAW,GAAkB;AACpC,SAAO,EAAE,EAAE,WAAY,CAAC,SAAS,EAAE,UAAW,EAAE;AAClD;AAEA,SAAS,sBAAsB,UAAoB,GAAiB;AAClE,iBAAe,QAAQ,CAAC,YAAY;AAClC,YAAQ,UAAU,CAAC;AAAA,EACrB,CAAC;AACH;AAEA,SAAS,oBAAoB,GAAkB;AAC7C,wBAAsB;AACtB,MAAI,WAAW,CAAC,GAAG;AACjB,sBAAkB;AAClB,0BAAsB,YAAY,CAAC;AAAA,EACrC;AACF;AAEA,SAAS,mBAAmB,GAA8B;AACxD,oBAAkB;AAClB,MAAI,EAAE,SAAS,eAAe,EAAE,SAAS,eAAe;AACtD,0BAAsB;AACtB,0BAAsB,WAAW,CAAC;AAAA,EACpC;AACF;AAEA,SAAS,iBAAiB,GAAe;AAIvC,MAAI,EAAE,WAAW,UAAU,EAAE,WAAW,UAAU;AAChD;AAAA,EACF;AAIA,MAAI,CAAC,qBAAqB;AACxB,sBAAkB;AAClB,0BAAsB,YAAY,CAAC;AAAA,EACrC;AAEA,wBAAsB;AACxB;AAEA,SAAS,mBAAmB;AAG1B,wBAAsB;AACxB;AAEA,SAAS,iBAA0B;AACjC,SAAO,oBAAoB;AAC7B;AAEA,SAAS,yBAAyB;AAChC,MAAI,OAAO,WAAW,eAAe,yBAAyB;AAC5D;AAAA,EACF;AAQA,QAAM,EAAE,MAAM,IAAI,YAAY;AAE9B,cAAY,UAAU,QAAQ,SAAS,gBAAgB,MAAM;AAC3D,0BAAsB;AACtB,UAAM,MAAM,MAAM,IAAI;AAAA,EACxB;AAEA,WAAS,iBAAiB,WAAW,qBAAqB,IAAI;AAC9D,WAAS,iBAAiB,SAAS,qBAAqB,IAAI;AAI5D,SAAO,iBAAiB,SAAS,kBAAkB,IAAI;AACvD,SAAO,iBAAiB,QAAQ,kBAAkB,KAAK;AAEvD,MAAI,OAAO,iBAAiB,aAAa;AACvC,aAAS,iBAAiB,eAAe,oBAAoB,IAAI;AACjE,aAAS,iBAAiB,eAAe,oBAAoB,IAAI;AACjE,aAAS,iBAAiB,aAAa,oBAAoB,IAAI;AAAA,EACjE,OAAO;AACL,aAAS,iBAAiB,aAAa,oBAAoB,IAAI;AAC/D,aAAS,iBAAiB,aAAa,oBAAoB,IAAI;AAC/D,aAAS,iBAAiB,WAAW,oBAAoB,IAAI;AAAA,EAC/D;AAEA,4BAA0B;AAC5B;AAEe,SAAR,kBAEL;AACA,yBAAuB;AACvB,QAAM,CAAC,qBAAqB,eAAe,IAAI,SAAS,eAAe,CAAC;AACxE,YAAU,MAAM;AACd,UAAM,UAAU,MAAM;AACpB,sBAAgB,eAAe,CAAC;AAAA,IAClC;AAEA,mBAAe,IAAI,OAAO;AAC1B,WAAO,MAAM;AACX,qBAAe,OAAO,OAAO;AAAA,IAC/B;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SAAO,EAAE,gBAAgB,oBAAoB;AAC/C","sourcesContent":["// Portions of the code in this file are based on code from react & react-spectrum:\n// https://github.com/facebook/react/blob/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions/events/src/dom/create-event-handle/Focus.js\n// https://github.com/adobe/react-spectrum/blob/c700898916bbd076bcc63e49d77c16d80623a8e7/packages/@react-aria/interactions/src/useFocusVisible.ts\n\nimport { useState, useEffect } from \"react\";\n\ntype Modality = \"keyboard\" | \"pointer\";\ntype HandlerEvent = PointerEvent | MouseEvent | KeyboardEvent | FocusEvent;\ntype Handler = (modality: Modality, e: HandlerEvent) => void;\n\nlet hasSetupGlobalListeners = false;\nlet currentModality: Modality | null = null;\nconst changeHandlers = new Set<Handler>();\nlet hasEventBeforeFocus = false;\n\nconst isMac =\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n typeof window !== \"undefined\" && window.navigator != null\n ? // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with\n /^Mac/.test(window.navigator.platform)\n : false;\n\nfunction isValidKey(e: KeyboardEvent) {\n return !(e.metaKey || (!isMac && e.altKey) || e.ctrlKey);\n}\n\nfunction triggerChangeHandlers(modality: Modality, e: HandlerEvent) {\n changeHandlers.forEach((handler) => {\n handler(modality, e);\n });\n}\n\nfunction handleKeyboardEvent(e: KeyboardEvent) {\n hasEventBeforeFocus = true;\n if (isValidKey(e)) {\n currentModality = \"keyboard\";\n triggerChangeHandlers(\"keyboard\", e);\n }\n}\n\nfunction handlePointerEvent(e: PointerEvent | MouseEvent) {\n currentModality = \"pointer\";\n if (e.type === \"mousedown\" || e.type === \"pointerdown\") {\n hasEventBeforeFocus = true;\n triggerChangeHandlers(\"pointer\", e);\n }\n}\n\nfunction handleFocusEvent(e: FocusEvent) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document) {\n return;\n }\n\n // If a focus event occurs without a preceding keyboard or pointer event, switch to keyboard modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!hasEventBeforeFocus) {\n currentModality = \"keyboard\";\n triggerChangeHandlers(\"keyboard\", e);\n }\n\n hasEventBeforeFocus = false;\n}\n\nfunction handleWindowBlur() {\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n hasEventBeforeFocus = false;\n}\n\nfunction isFocusVisible(): boolean {\n return currentModality !== \"pointer\";\n}\n\nfunction setupGlobalFocusEvents() {\n if (typeof window === \"undefined\" || hasSetupGlobalListeners) {\n return;\n }\n\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n // $FlowExpectedError[method-unbinding]\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { focus } = HTMLElement.prototype;\n // $FlowIssue[cannot-write]\n HTMLElement.prototype.focus = function focusElement(...args) {\n hasEventBeforeFocus = true;\n focus.apply(this, args);\n };\n\n document.addEventListener(\"keydown\", handleKeyboardEvent, true);\n document.addEventListener(\"keyup\", handleKeyboardEvent, true);\n\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n window.addEventListener(\"focus\", handleFocusEvent, true);\n window.addEventListener(\"blur\", handleWindowBlur, false);\n\n if (typeof PointerEvent !== \"undefined\") {\n document.addEventListener(\"pointerdown\", handlePointerEvent, true);\n document.addEventListener(\"pointermove\", handlePointerEvent, true);\n document.addEventListener(\"pointerup\", handlePointerEvent, true);\n } else {\n document.addEventListener(\"mousedown\", handlePointerEvent, true);\n document.addEventListener(\"mousemove\", handlePointerEvent, true);\n document.addEventListener(\"mouseup\", handlePointerEvent, true);\n }\n\n hasSetupGlobalListeners = true;\n}\n\nexport default function useFocusVisible(): {\n isFocusVisible: boolean;\n} {\n setupGlobalFocusEvents();\n const [isFocusVisibleState, setFocusVisible] = useState(isFocusVisible());\n useEffect(() => {\n const handler = () => {\n setFocusVisible(isFocusVisible());\n };\n\n changeHandlers.add(handler);\n return () => {\n changeHandlers.delete(handler);\n };\n }, []);\n\n return { isFocusVisible: isFocusVisibleState };\n}\n"]}
@@ -1,14 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/SelectList/SelectOption.tsx
2
- var _jsxruntime = require('react/jsx-runtime');
1
+ // src/SelectList/SelectOption.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
3
  var SelectOption = ({
4
4
  "data-testid": dataTestId,
5
5
  value,
6
6
  label,
7
7
  disabled = false
8
- }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "option", { "data-testid": dataTestId, value, disabled, children: label });
8
+ }) => /* @__PURE__ */ jsx("option", { "data-testid": dataTestId, value, disabled, children: label });
9
9
  var SelectOption_default = SelectOption;
10
10
 
11
-
12
-
13
- exports.SelectOption_default = SelectOption_default;
11
+ export {
12
+ SelectOption_default
13
+ };
14
14
  //# sourceMappingURL=HOUO3WV6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"names":[],"mappings":";AAaE;AAXF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAME,oBAAC,YAAO,eAAa,YAAY,OAAc,UAC5C,iBACH;AAGF,IAAO,uBAAQ","sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n}: {\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option data-testid={dataTestId} value={value} disabled={disabled}>\n {label}\n </option>\n);\n\nexport default SelectOption;\n"]}
1
+ {"version":3,"sources":["../../src/SelectList/SelectOption.tsx"],"sourcesContent":["import React, { type ReactElement } from \"react\";\n\nconst SelectOption = ({\n \"data-testid\": dataTestId,\n value,\n label,\n disabled = false,\n}: {\n \"data-testid\"?: string;\n value: string;\n label: string;\n disabled?: boolean;\n}): ReactElement => (\n <option data-testid={dataTestId} value={value} disabled={disabled}>\n {label}\n </option>\n);\n\nexport default SelectOption;\n"],"mappings":";AAaE;AAXF,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAME,oBAAC,YAAO,eAAa,YAAY,OAAc,UAC5C,iBACH;AAGF,IAAO,uBAAQ;","names":[]}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/colors/foregroundTypographyColor.ts
1
+ // src/colors/foregroundTypographyColor.ts
2
2
  function foregroundTypographyColor(color) {
3
3
  switch (color) {
4
4
  case "secondary":
@@ -16,7 +16,7 @@ function foregroundTypographyColor(color) {
16
16
  }
17
17
  }
18
18
 
19
-
20
-
21
- exports.foregroundTypographyColor = foregroundTypographyColor;
19
+ export {
20
+ foregroundTypographyColor
21
+ };
22
22
  //# sourceMappingURL=HQVZUEWO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/colors/foregroundTypographyColor.ts"],"names":[],"mappings":";AAEe,SAAR,0BACL,OACwB;AACxB,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF","sourcesContent":["import { type Color } from \"../constants\";\n\nexport default function foregroundTypographyColor(\n color: (typeof Color)[number],\n): (typeof Color)[number] {\n switch (color) {\n case \"secondary\":\n case \"tertiary\":\n return \"primary\";\n case \"destructive-secondary\":\n case \"destructive-tertiary\":\n return \"destructive-primary\";\n case \"branded\":\n return \"gray900\";\n case \"inverse\":\n return \"white\";\n default:\n return \"white\";\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/colors/foregroundTypographyColor.ts"],"sourcesContent":["import { type Color } from \"../constants\";\n\nexport default function foregroundTypographyColor(\n color: (typeof Color)[number],\n): (typeof Color)[number] {\n switch (color) {\n case \"secondary\":\n case \"tertiary\":\n return \"primary\";\n case \"destructive-secondary\":\n case \"destructive-tertiary\":\n return \"destructive-primary\";\n case \"branded\":\n return \"gray900\";\n case \"inverse\":\n return \"white\";\n default:\n return \"white\";\n }\n}\n"],"mappings":";AAEe,SAAR,0BACL,OACwB;AACxB,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;","names":[]}
@@ -1,4 +1,4 @@
1
- var __defProp = Object.defineProperty;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
2
  var __defProps = Object.defineProperties;
3
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -30,9 +30,9 @@ var __objRest = (source, exclude) => {
30
30
  return target;
31
31
  };
32
32
 
33
- export {
34
- __spreadValues,
35
- __spreadProps,
36
- __objRest
37
- };
38
- //# sourceMappingURL=CUDAH5IW.mjs.map
33
+
34
+
35
+
36
+
37
+ exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps; exports.__objRest = __objRest;
38
+ //# sourceMappingURL=I64JGYX7.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}