@cambly/syntax-core 13.1.0 → 15.1.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 (177) hide show
  1. package/dist/Avatar/Avatar.d.ts +1 -1
  2. package/dist/Badge/Badge.cjs +3 -3
  3. package/dist/Badge/Badge.css +45 -69
  4. package/dist/Badge/Badge.css.map +1 -1
  5. package/dist/Badge/Badge.d.ts +3 -3
  6. package/dist/Badge/Badge.js +2 -2
  7. package/dist/Button/Button.cjs +3 -3
  8. package/dist/Button/Button.css +45 -69
  9. package/dist/Button/Button.css.map +1 -1
  10. package/dist/Button/Button.js +2 -2
  11. package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
  12. package/dist/Checkbox/Checkbox.cjs +3 -3
  13. package/dist/Checkbox/Checkbox.css +45 -69
  14. package/dist/Checkbox/Checkbox.css.map +1 -1
  15. package/dist/Checkbox/Checkbox.d.ts +1 -1
  16. package/dist/Checkbox/Checkbox.js +2 -2
  17. package/dist/Chip/Chip.cjs +3 -3
  18. package/dist/Chip/Chip.css +45 -69
  19. package/dist/Chip/Chip.css.map +1 -1
  20. package/dist/Chip/Chip.js +2 -2
  21. package/dist/Heading/Heading.cjs +3 -3
  22. package/dist/Heading/Heading.css +45 -69
  23. package/dist/Heading/Heading.css.map +1 -1
  24. package/dist/Heading/Heading.d.ts +8 -16
  25. package/dist/Heading/Heading.js +2 -2
  26. package/dist/Icon/Icon.cjs +2 -2
  27. package/dist/Icon/Icon.d.ts +1 -1
  28. package/dist/Icon/Icon.js +1 -1
  29. package/dist/LinkButton/LinkButton.cjs +3 -3
  30. package/dist/LinkButton/LinkButton.css +45 -69
  31. package/dist/LinkButton/LinkButton.css.map +1 -1
  32. package/dist/LinkButton/LinkButton.js +2 -2
  33. package/dist/Modal/Modal.cjs +4 -4
  34. package/dist/Modal/Modal.css +45 -69
  35. package/dist/Modal/Modal.css.map +1 -1
  36. package/dist/Modal/Modal.js +3 -3
  37. package/dist/RadioButton/RadioButton.cjs +3 -3
  38. package/dist/RadioButton/RadioButton.css +45 -69
  39. package/dist/RadioButton/RadioButton.css.map +1 -1
  40. package/dist/RadioButton/RadioButton.d.ts +1 -1
  41. package/dist/RadioButton/RadioButton.js +2 -2
  42. package/dist/RichSelect/RichSelectBox.cjs +9 -9
  43. package/dist/RichSelect/RichSelectBox.css +45 -69
  44. package/dist/RichSelect/RichSelectBox.css.map +1 -1
  45. package/dist/RichSelect/RichSelectBox.d.ts +1 -1
  46. package/dist/RichSelect/RichSelectBox.js +8 -8
  47. package/dist/RichSelect/RichSelectChip.cjs +4 -4
  48. package/dist/RichSelect/RichSelectChip.css +45 -69
  49. package/dist/RichSelect/RichSelectChip.css.map +1 -1
  50. package/dist/RichSelect/RichSelectChip.js +3 -3
  51. package/dist/RichSelect/RichSelectList.cjs +11 -11
  52. package/dist/RichSelect/RichSelectList.css +45 -69
  53. package/dist/RichSelect/RichSelectList.css.map +1 -1
  54. package/dist/RichSelect/RichSelectList.d.ts +1 -1
  55. package/dist/RichSelect/RichSelectList.js +10 -10
  56. package/dist/RichSelect/RichSelectRadioButton.cjs +4 -4
  57. package/dist/RichSelect/RichSelectRadioButton.css +45 -69
  58. package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
  59. package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
  60. package/dist/RichSelect/RichSelectRadioButton.js +3 -3
  61. package/dist/RichSelect/RichSelectSection.cjs +3 -3
  62. package/dist/RichSelect/RichSelectSection.css +45 -69
  63. package/dist/RichSelect/RichSelectSection.css.map +1 -1
  64. package/dist/RichSelect/RichSelectSection.js +2 -2
  65. package/dist/SelectList/SelectList.cjs +4 -4
  66. package/dist/SelectList/SelectList.css +45 -69
  67. package/dist/SelectList/SelectList.css.map +1 -1
  68. package/dist/SelectList/SelectList.js +3 -3
  69. package/dist/TapArea/TapArea.d.ts +1 -1
  70. package/dist/TextArea/TextArea.cjs +3 -3
  71. package/dist/TextArea/TextArea.css +45 -69
  72. package/dist/TextArea/TextArea.css.map +1 -1
  73. package/dist/TextArea/TextArea.js +2 -2
  74. package/dist/TextField/TextField.cjs +3 -3
  75. package/dist/TextField/TextField.css +45 -69
  76. package/dist/TextField/TextField.css.map +1 -1
  77. package/dist/TextField/TextField.js +2 -2
  78. package/dist/Tooltip/Tooltip.cjs +3 -3
  79. package/dist/Tooltip/Tooltip.css +45 -69
  80. package/dist/Tooltip/Tooltip.css.map +1 -1
  81. package/dist/Tooltip/Tooltip.js +2 -2
  82. package/dist/Typography/Typography.cjs +2 -2
  83. package/dist/Typography/Typography.css +45 -69
  84. package/dist/Typography/Typography.css.map +1 -1
  85. package/dist/Typography/Typography.d.ts +12 -18
  86. package/dist/Typography/Typography.js +1 -1
  87. package/dist/__chunks/{DR35U5KW.js → 2BA4KWES.js} +2 -2
  88. package/dist/__chunks/{2OJKC2AX.cjs → 47PGLBOS.cjs} +5 -5
  89. package/dist/__chunks/47PGLBOS.cjs.map +1 -0
  90. package/dist/__chunks/{PDVLGG4C.js → 4WK5DK6U.js} +3 -2
  91. package/dist/__chunks/{PDVLGG4C.js.map → 4WK5DK6U.js.map} +1 -1
  92. package/dist/__chunks/{NCV3QLVA.js → 54ZAQVGC.js} +3 -3
  93. package/dist/__chunks/{NCV3QLVA.js.map → 54ZAQVGC.js.map} +1 -1
  94. package/dist/__chunks/{COREQINY.js → 67BJ4PC2.js} +2 -2
  95. package/dist/__chunks/{7YBXLFIG.cjs → 67PBF26W.cjs} +5 -5
  96. package/dist/__chunks/{VTKZKP33.js → 74XKLZ4N.js} +2 -2
  97. package/dist/__chunks/{ZTK7E42P.cjs → 7BZZUMJM.cjs} +3 -3
  98. package/dist/__chunks/{7TSVTONI.cjs → BLCQNB25.cjs} +1 -1
  99. package/dist/__chunks/{7TSVTONI.cjs.map → BLCQNB25.cjs.map} +1 -1
  100. package/dist/__chunks/{XMKQJFU6.cjs → CV5CESW2.cjs} +1 -1
  101. package/dist/__chunks/{XMKQJFU6.cjs.map → CV5CESW2.cjs.map} +1 -1
  102. package/dist/__chunks/{7EM2GOIC.js → DFGY3NSE.js} +2 -2
  103. package/dist/__chunks/{Q6657TAT.js → E7IFJPHC.js} +2 -2
  104. package/dist/__chunks/{HN4N2HE2.cjs → EUBO6YEI.cjs} +10 -10
  105. package/dist/__chunks/{LLNVYX3N.cjs → FT35ULZS.cjs} +17 -17
  106. package/dist/__chunks/{D2WZPJL3.js → GGK4OCW3.js} +2 -2
  107. package/dist/__chunks/{ID2WKUNH.cjs → GJVLYIGI.cjs} +3 -3
  108. package/dist/__chunks/{LL5Q6ZDS.js → GWRAEUKW.js} +2 -2
  109. package/dist/__chunks/{S2VK4XNL.cjs → HF4V7JJP.cjs} +3 -3
  110. package/dist/__chunks/{V562ZHQ7.js → JRDHZ3QL.js} +2 -2
  111. package/dist/__chunks/JRDHZ3QL.js.map +1 -0
  112. package/dist/__chunks/{TQ7D5O7L.js → L5CT6YRH.js} +2 -2
  113. package/dist/__chunks/{3NABVL3W.js → LA6LOY5X.js} +1 -1
  114. package/dist/__chunks/{3NABVL3W.js.map → LA6LOY5X.js.map} +1 -1
  115. package/dist/__chunks/{EGLA4ZQ6.js → LMERC43E.js} +4 -4
  116. package/dist/__chunks/LMERC43E.js.map +1 -0
  117. package/dist/__chunks/{E5SFZHIE.js → LURRFB7S.js} +3 -3
  118. package/dist/__chunks/{JW7TVUPB.cjs → N5W44DQ5.cjs} +3 -3
  119. package/dist/__chunks/{7FBJ7XRE.cjs → N7ZNFTV7.cjs} +3 -3
  120. package/dist/__chunks/{7X4KKISP.cjs → ODVVI43Q.cjs} +4 -4
  121. package/dist/__chunks/{BU3EYSKD.js → ONZHIMUG.js} +2 -2
  122. package/dist/__chunks/{OQKBWMZ4.js → OTGGVIQE.js} +5 -5
  123. package/dist/__chunks/{GUACYIXB.cjs → PJLDYIB6.cjs} +2 -2
  124. package/dist/__chunks/PJLDYIB6.cjs.map +1 -0
  125. package/dist/__chunks/{CBAKJXVM.cjs → PRSQEQ5O.cjs} +6 -6
  126. package/dist/__chunks/{TVR4TJKV.js → SM7OH7FG.js} +2 -2
  127. package/dist/__chunks/{TELGW53W.js → SONYYWLY.js} +1 -1
  128. package/dist/__chunks/SONYYWLY.js.map +1 -0
  129. package/dist/__chunks/{HFWEVQNS.cjs → SZMHZR3B.cjs} +3 -3
  130. package/dist/__chunks/{HK7T4244.cjs → TJQKHHNH.cjs} +3 -3
  131. package/dist/__chunks/{HK7T4244.cjs.map → TJQKHHNH.cjs.map} +1 -1
  132. package/dist/__chunks/{HVZ5Z2YC.js → VUDLDPIN.js} +7 -7
  133. package/dist/__chunks/{W45CFJI7.cjs → XYSRAKGD.cjs} +3 -3
  134. package/dist/__chunks/{7FYS3TSR.cjs → YG47EHYS.cjs} +3 -3
  135. package/dist/__chunks/{HN2MMSUI.js → YI35INQ7.js} +2 -2
  136. package/dist/__chunks/{CQQJROZE.cjs → YVQRFDEE.cjs} +5 -4
  137. package/dist/__chunks/YVQRFDEE.cjs.map +1 -0
  138. package/dist/__chunks/{SFZ2MHPA.cjs → ZBBMY7Y7.cjs} +3 -3
  139. package/dist/index.cjs +21 -21
  140. package/dist/index.css +45 -69
  141. package/dist/index.css.map +1 -1
  142. package/dist/index.js +20 -20
  143. package/package.json +2 -2
  144. package/dist/__chunks/2OJKC2AX.cjs.map +0 -1
  145. package/dist/__chunks/CQQJROZE.cjs.map +0 -1
  146. package/dist/__chunks/EGLA4ZQ6.js.map +0 -1
  147. package/dist/__chunks/GUACYIXB.cjs.map +0 -1
  148. package/dist/__chunks/TELGW53W.js.map +0 -1
  149. package/dist/__chunks/V562ZHQ7.js.map +0 -1
  150. /package/dist/__chunks/{DR35U5KW.js.map → 2BA4KWES.js.map} +0 -0
  151. /package/dist/__chunks/{COREQINY.js.map → 67BJ4PC2.js.map} +0 -0
  152. /package/dist/__chunks/{7YBXLFIG.cjs.map → 67PBF26W.cjs.map} +0 -0
  153. /package/dist/__chunks/{VTKZKP33.js.map → 74XKLZ4N.js.map} +0 -0
  154. /package/dist/__chunks/{ZTK7E42P.cjs.map → 7BZZUMJM.cjs.map} +0 -0
  155. /package/dist/__chunks/{7EM2GOIC.js.map → DFGY3NSE.js.map} +0 -0
  156. /package/dist/__chunks/{Q6657TAT.js.map → E7IFJPHC.js.map} +0 -0
  157. /package/dist/__chunks/{HN4N2HE2.cjs.map → EUBO6YEI.cjs.map} +0 -0
  158. /package/dist/__chunks/{LLNVYX3N.cjs.map → FT35ULZS.cjs.map} +0 -0
  159. /package/dist/__chunks/{D2WZPJL3.js.map → GGK4OCW3.js.map} +0 -0
  160. /package/dist/__chunks/{ID2WKUNH.cjs.map → GJVLYIGI.cjs.map} +0 -0
  161. /package/dist/__chunks/{LL5Q6ZDS.js.map → GWRAEUKW.js.map} +0 -0
  162. /package/dist/__chunks/{S2VK4XNL.cjs.map → HF4V7JJP.cjs.map} +0 -0
  163. /package/dist/__chunks/{TQ7D5O7L.js.map → L5CT6YRH.js.map} +0 -0
  164. /package/dist/__chunks/{E5SFZHIE.js.map → LURRFB7S.js.map} +0 -0
  165. /package/dist/__chunks/{JW7TVUPB.cjs.map → N5W44DQ5.cjs.map} +0 -0
  166. /package/dist/__chunks/{7FBJ7XRE.cjs.map → N7ZNFTV7.cjs.map} +0 -0
  167. /package/dist/__chunks/{7X4KKISP.cjs.map → ODVVI43Q.cjs.map} +0 -0
  168. /package/dist/__chunks/{BU3EYSKD.js.map → ONZHIMUG.js.map} +0 -0
  169. /package/dist/__chunks/{OQKBWMZ4.js.map → OTGGVIQE.js.map} +0 -0
  170. /package/dist/__chunks/{CBAKJXVM.cjs.map → PRSQEQ5O.cjs.map} +0 -0
  171. /package/dist/__chunks/{TVR4TJKV.js.map → SM7OH7FG.js.map} +0 -0
  172. /package/dist/__chunks/{HFWEVQNS.cjs.map → SZMHZR3B.cjs.map} +0 -0
  173. /package/dist/__chunks/{HVZ5Z2YC.js.map → VUDLDPIN.js.map} +0 -0
  174. /package/dist/__chunks/{W45CFJI7.cjs.map → XYSRAKGD.cjs.map} +0 -0
  175. /package/dist/__chunks/{7FYS3TSR.cjs.map → YG47EHYS.cjs.map} +0 -0
  176. /package/dist/__chunks/{HN2MMSUI.js.map → YI35INQ7.js.map} +0 -0
  177. /package/dist/__chunks/{SFZ2MHPA.cjs.map → ZBBMY7Y7.cjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Wed, 15 May 2024 22:22:34 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Wed, 22 May 2024 17:42:07 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Typography_default
4
- } from "./V562ZHQ7.js";
4
+ } from "./JRDHZ3QL.js";
5
5
 
6
6
  // src/Heading/Heading.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ function weight({
9
9
  fontStyle,
10
10
  size
11
11
  }) {
12
- if (fontStyle === "serif" && [400, 500, 600].includes(size)) {
12
+ if (fontStyle === "serif" && size === 400) {
13
13
  return "bold";
14
14
  } else if (fontStyle === "serif") {
15
15
  return "medium";
@@ -25,7 +25,7 @@ var Heading = ({
25
25
  "data-testid": dataTestId,
26
26
  fontStyle = "sans-serif",
27
27
  lineClamp,
28
- size = 500
28
+ size = 400
29
29
  }) => {
30
30
  return /* @__PURE__ */ jsx(
31
31
  Typography_default,
@@ -47,4 +47,4 @@ var Heading_default = Heading;
47
47
  export {
48
48
  Heading_default
49
49
  };
50
- //# sourceMappingURL=EGLA4ZQ6.js.map
50
+ //# sourceMappingURL=LMERC43E.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Heading/Heading.tsx"],"sourcesContent":["import { type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport Typography from \"../Typography/Typography\";\n\nfunction weight({\n fontStyle,\n size,\n}: {\n fontStyle: ComponentProps<typeof Heading>[\"fontStyle\"];\n size: ComponentProps<typeof Heading>[\"size\"];\n}): \"bold\" | \"medium\" | \"regular\" {\n if (fontStyle === \"serif\" && size === 400) {\n return \"bold\";\n } else if (fontStyle === \"serif\") {\n return \"medium\";\n } else {\n return \"regular\";\n }\n}\n\n/**\n * [Heading](https://cambly-syntax.vercel.app/?path=/docs/components-heading--docs) enforces a consistent style & accessibility best practices for headings.\n */\nconst Heading = ({\n align = \"start\",\n as = \"h1\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n lineClamp,\n size = 400,\n}: {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"h1\"\n */\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"success\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text.\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text\n *\n * Mobile: (viewport width < 480px):\n * * `400`: 25px\n * * `700`: 38px\n * * `900`: 55px\n * * `1100`: 83px\n *\n * Desktop (viewport width >= 480px):\n * * `400`: 25px\n * * `700`: 49px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 400\n */\n size?: 400 | 700 | 900 | 1100;\n}): ReactElement => {\n return (\n <Typography\n align={align}\n as={as}\n color={color}\n fontStyle={fontStyle}\n data-testid={dataTestId}\n lineClamp={lineClamp}\n size={size}\n weight={weight({ fontStyle, size })}\n >\n {children}\n </Typography>\n );\n};\n\nexport default Heading;\n"],"mappings":";;;;;;AAmGI;AAhGJ,SAAS,OAAO;AAAA,EACd;AAAA,EACA;AACF,GAGkC;AAChC,MAAI,cAAc,WAAW,SAAS,KAAK;AACzC,WAAO;AAAA,EACT,WAAW,cAAc,SAAS;AAChC,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AAKA,IAAM,UAAU,CAAC;AAAA,EACf,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,OAAO;AACT,MAkEoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA,QAAQ,OAAO,EAAE,WAAW,KAAK,CAAC;AAAA,MAEjC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,kBAAQ;","names":[]}
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  ColorBaseDestructive700,
7
7
  ColorBaseGray800
8
- } from "./3NABVL3W.js";
8
+ } from "./LA6LOY5X.js";
9
9
  import {
10
10
  Focus_module_default
11
11
  } from "./KKADUD65.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./M36V23WR.js";
15
15
  import {
16
16
  Typography_default
17
- } from "./V562ZHQ7.js";
17
+ } from "./JRDHZ3QL.js";
18
18
  import {
19
19
  useIsHydrated
20
20
  } from "./JB65NEXK.js";
@@ -122,4 +122,4 @@ SelectList.Option = SelectOption_default;
122
122
  export {
123
123
  SelectList
124
124
  };
125
- //# sourceMappingURL=E5SFZHIE.js.map
125
+ //# sourceMappingURL=LURRFB7S.js.map
@@ -7,7 +7,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
7
7
  var _FESAFV44cjs = require('./FESAFV44.cjs');
8
8
 
9
9
 
10
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
10
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
11
11
 
12
12
 
13
13
  var _QT6IRCGWcjs = require('./QT6IRCGW.cjs');
@@ -113,7 +113,7 @@ var RadioButton = ({
113
113
  }
114
114
  ),
115
115
  label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
116
- _GUACYIXBcjs.Typography_default,
116
+ _PJLDYIB6cjs.Typography_default,
117
117
  {
118
118
  size: size === "md" ? 200 : 100,
119
119
  color: error ? "destructive-primary" : "gray900",
@@ -129,4 +129,4 @@ var RadioButton_default = RadioButton;
129
129
 
130
130
 
131
131
  exports.RadioButton_default = RadioButton_default;
132
- //# sourceMappingURL=JW7TVUPB.cjs.map
132
+ //# sourceMappingURL=N5W44DQ5.cjs.map
@@ -4,7 +4,7 @@
4
4
  var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
5
5
 
6
6
 
7
- var _JW7TVUPBcjs = require('./JW7TVUPB.cjs');
7
+ var _N5W44DQ5cjs = require('./N5W44DQ5.cjs');
8
8
 
9
9
 
10
10
 
@@ -19,7 +19,7 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
19
19
  function RichSelectRadioButton(props, ref) {
20
20
  const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
21
21
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, otherProps), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
22
- _JW7TVUPBcjs.RadioButton_default,
22
+ _N5W44DQ5cjs.RadioButton_default,
23
23
  {
24
24
  checked: isSelected,
25
25
  disabled: isDisabled,
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
37
37
 
38
38
 
39
39
  exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
40
- //# sourceMappingURL=7FBJ7XRE.cjs.map
40
+ //# sourceMappingURL=N7ZNFTV7.cjs.map
@@ -4,7 +4,7 @@
4
4
  var _FESAFV44cjs = require('./FESAFV44.cjs');
5
5
 
6
6
 
7
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
7
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
8
8
 
9
9
 
10
10
  var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
@@ -51,7 +51,7 @@ function TextField({
51
51
  }
52
52
  },
53
53
  children: [
54
- label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
54
+ label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PJLDYIB6cjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
55
55
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
56
56
  "input",
57
57
  {
@@ -70,7 +70,7 @@ function TextField({
70
70
  }
71
71
  ),
72
72
  (helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
73
- _GUACYIXBcjs.Typography_default,
73
+ _PJLDYIB6cjs.Typography_default,
74
74
  {
75
75
  size: 100,
76
76
  color: errorText ? "destructive-primary" : "gray700",
@@ -85,4 +85,4 @@ function TextField({
85
85
 
86
86
 
87
87
  exports.TextField = TextField;
88
- //# sourceMappingURL=7X4KKISP.cjs.map
88
+ //# sourceMappingURL=ODVVI43Q.cjs.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./ODMJANSX.js";
5
5
  import {
6
6
  RadioButton_default
7
- } from "./DR35U5KW.js";
7
+ } from "./2BA4KWES.js";
8
8
  import {
9
9
  __objRest,
10
10
  __spreadProps,
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
37
37
  export {
38
38
  RichSelectRadioButton_default
39
39
  };
40
- //# sourceMappingURL=BU3EYSKD.js.map
40
+ //# sourceMappingURL=ONZHIMUG.js.map
@@ -4,19 +4,19 @@ import {
4
4
  } from "./BOX3VY3Q.js";
5
5
  import {
6
6
  Button_default
7
- } from "./7EM2GOIC.js";
7
+ } from "./DFGY3NSE.js";
8
8
  import {
9
9
  Divider
10
10
  } from "./TK2EQ6QG.js";
11
11
  import {
12
12
  RichSelectChip_default
13
- } from "./TQ7D5O7L.js";
13
+ } from "./L5CT6YRH.js";
14
14
  import {
15
15
  RichSelectSection_default
16
- } from "./HN2MMSUI.js";
16
+ } from "./YI35INQ7.js";
17
17
  import {
18
18
  RichSelectRadioButton_default
19
- } from "./BU3EYSKD.js";
19
+ } from "./ONZHIMUG.js";
20
20
  import {
21
21
  RichSelectItemContext,
22
22
  RichSelect_module_default
@@ -208,4 +208,4 @@ export {
208
208
  RichSelectBoxContext,
209
209
  RichSelectBox_default
210
210
  };
211
- //# sourceMappingURL=OQKBWMZ4.js.map
211
+ //# sourceMappingURL=OTGGVIQE.js.map
@@ -8,7 +8,7 @@ var _classnames = require('classnames'); var _classnames2 = _interopRequireDefau
8
8
  var _react = require('react');
9
9
 
10
10
  // css-module:./Typography.module.css#css-module
11
- var Typography_module_default = { "typography": "_typography_737nn_1", "sansSerif": "_sansSerif_737nn_22", "serif": "_serif_737nn_27", "size100": "_size100_737nn_73", "size200": "_size200_737nn_77", "size300": "_size300_737nn_81", "size400": "_size400_737nn_85", "size500": "_size500_737nn_89", "size600": "_size600_737nn_93", "size700": "_size700_737nn_97", "size800": "_size800_737nn_101", "size900": "_size900_737nn_105", "size1000": "_size1000_737nn_146", "size1100": "_size1100_737nn_150", "center": "_center_737nn_156", "forceLeft": "_forceLeft_737nn_160", "forceRight": "_forceRight_737nn_164", "start": "_start_737nn_168", "end": "_end_737nn_172", "regular": "_regular_737nn_178", "medium": "_medium_737nn_182", "semiBold": "_semiBold_737nn_186", "bold": "_bold_737nn_190", "underline": "_underline_737nn_194", "inline": "_inline_737nn_198", "uppercase": "_uppercase_737nn_202", "lineClamp": "_lineClamp_737nn_206" };
11
+ var Typography_module_default = { "typography": "_typography_12tsg_1", "sansSerif": "_sansSerif_12tsg_22", "serif": "_serif_12tsg_27", "size0": "_size0_12tsg_73", "size100": "_size100_12tsg_77", "size200": "_size200_12tsg_81", "size300": "_size300_12tsg_85", "size400": "_size400_12tsg_89", "size700": "_size700_12tsg_93", "size900": "_size900_12tsg_97", "size1100": "_size1100_12tsg_101", "center": "_center_12tsg_125", "forceLeft": "_forceLeft_12tsg_129", "forceRight": "_forceRight_12tsg_133", "start": "_start_12tsg_137", "end": "_end_12tsg_141", "regular": "_regular_12tsg_147", "medium": "_medium_12tsg_151", "semiBold": "_semiBold_12tsg_155", "bold": "_bold_12tsg_159", "underline": "_underline_12tsg_163", "inline": "_inline_12tsg_167", "uppercase": "_uppercase_12tsg_171", "lineClamp": "_lineClamp_12tsg_175" };
12
12
 
13
13
  // src/Typography/Typography.tsx
14
14
  var _jsxruntime = require('react/jsx-runtime');
@@ -60,4 +60,4 @@ var Typography_default = Typography;
60
60
 
61
61
 
62
62
  exports.Typography_default = Typography_default;
63
- //# sourceMappingURL=GUACYIXB.cjs.map
63
+ //# sourceMappingURL=PJLDYIB6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"names":["Typography"],"mappings":";;;;;;AAAA,OAAO,gBAAgB;AACvB,SAAS,kBAAqD;;;ACDsC,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,aAAY,uBAAsB,SAAQ,mBAAkB,SAAQ,mBAAkB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,YAAW,uBAAsB,UAAS,qBAAoB,aAAY,wBAAuB,cAAa,yBAAwB,SAAQ,oBAAmB,OAAM,kBAAiB,WAAU,sBAAqB,UAAS,qBAAoB,YAAW,uBAAsB,QAAO,mBAAkB,aAAY,wBAAuB,UAAS,qBAAoB,aAAY,wBAAuB,aAAY,uBAAsB;;;ADkJh1B;AA1IJ,IAAM,aAAa,WAoHjB,SAASA,YACT;AAAA,EACE,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AACX,GACA,KACc;AACd,QAAM,MAAM;AAEZ,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,0BAAO;AAAA,QACP,0BAAO,KAAK;AAAA,QACZ,0BAAO,MAAM;AAAA,QACb,cAAc,UAAU,0BAAO,QAAQ,0BAAO;AAAA,QAC9C,UAAU,KAAK;AAAA,QACf,UAAU,0BAAO;AAAA,QACjB,0BAAO,OAAO,MAAM;AAAA,QACpB,cAAc,eAAe,0BAAO;AAAA,QACpC,aAAa,0BAAO;AAAA,QACpB,aAAa,QAAQ,0BAAO;AAAA,MAC9B;AAAA,MACA,eAAa;AAAA,MACb,OAAO;AAAA,QACL,iBAAiB;AAAA,MACnB;AAAA,MACA,OAAO;AAAA,MACP;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,qBAAQ","sourcesContent":["import classNames from \"classnames\";\nimport { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport styles from \"./Typography.module.css\";\nimport textColor from \"../colors/textColors\";\n\n/**\n * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.\n */\nconst Typography = forwardRef<\n HTMLDivElement,\n {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"div\"\n */\n as?: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The id for the element\n */\n id?: string;\n /**\n * Whether the text should flow inline with other elements.\n *\n * @defaultValue false\n */\n inline?: boolean;\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Mobile (viewport width <= 480px)::\n * * `0`: 12px\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 19px\n * * `400`: 25px\n * * `700`: 38px\n * * `900`: 55px\n * * `1100`: 83px\n *\n * Desktop (viewport width > 480px):\n * * `0`: 12px\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 20px\n * * `400`: 25px\n * * `700`: 49px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 700 | 900 | 1100;\n /**\n * The tooltip to be displayed when the user hovers the text\n */\n tooltip?: string;\n /**\n * Whether the text should be transformed to uppercase.\n *\n * @defaultValue \"none\"\n */\n transform?: \"none\" | \"uppercase\";\n /**\n * Whether the text has an underline.\n *\n * @defaultValue false\n */\n underline?: boolean;\n /**\n * Indicates the boldness of the text.\n *\n * * `regular`: 400\n * * `medium`: 510\n * * `semiBold`: 590\n * * `bold`: 710\n *\n * @defaultValue \"regular\"\n */\n weight?: \"regular\" | \"medium\" | \"semiBold\" | \"bold\";\n }\n>(function Typography(\n {\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n id,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\n },\n ref,\n): ReactElement {\n const Tag = as;\n\n return (\n <Tag\n id={id}\n className={classNames(\n styles.typography,\n styles[align],\n styles[weight],\n fontStyle === \"serif\" ? styles.serif : styles.sansSerif,\n textColor(color),\n inline && styles.inline,\n styles[`size${size}`],\n transform === \"uppercase\" && styles.uppercase,\n underline && styles.underline,\n lineClamp != null && styles.lineClamp,\n )}\n data-testid={dataTestId}\n style={{\n WebkitLineClamp: lineClamp,\n }}\n title={tooltip}\n ref={ref}\n >\n {children}\n </Tag>\n );\n});\n\nexport default Typography;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_12tsg_1\",\"sansSerif\":\"_sansSerif_12tsg_22\",\"serif\":\"_serif_12tsg_27\",\"size0\":\"_size0_12tsg_73\",\"size100\":\"_size100_12tsg_77\",\"size200\":\"_size200_12tsg_81\",\"size300\":\"_size300_12tsg_85\",\"size400\":\"_size400_12tsg_89\",\"size700\":\"_size700_12tsg_93\",\"size900\":\"_size900_12tsg_97\",\"size1100\":\"_size1100_12tsg_101\",\"center\":\"_center_12tsg_125\",\"forceLeft\":\"_forceLeft_12tsg_129\",\"forceRight\":\"_forceRight_12tsg_133\",\"start\":\"_start_12tsg_137\",\"end\":\"_end_12tsg_141\",\"regular\":\"_regular_12tsg_147\",\"medium\":\"_medium_12tsg_151\",\"semiBold\":\"_semiBold_12tsg_155\",\"bold\":\"_bold_12tsg_159\",\"underline\":\"_underline_12tsg_163\",\"inline\":\"_inline_12tsg_167\",\"uppercase\":\"_uppercase_12tsg_171\",\"lineClamp\":\"_lineClamp_12tsg_175\"}"]}
@@ -5,7 +5,7 @@ var _JVGX637Ecjs = require('./JVGX637E.cjs');
5
5
 
6
6
 
7
7
 
8
- var _7TSVTONIcjs = require('./7TSVTONI.cjs');
8
+ var _BLCQNB25cjs = require('./BLCQNB25.cjs');
9
9
 
10
10
 
11
11
  var _XLUVINJWcjs = require('./XLUVINJW.cjs');
@@ -14,7 +14,7 @@ var _XLUVINJWcjs = require('./XLUVINJW.cjs');
14
14
  var _FESAFV44cjs = require('./FESAFV44.cjs');
15
15
 
16
16
 
17
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
17
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
18
18
 
19
19
 
20
20
  var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
@@ -60,7 +60,7 @@ function SelectList({
60
60
  [SelectList_module_default.opacityOverlay]: disabled
61
61
  }),
62
62
  children: [
63
- label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
63
+ label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PJLDYIB6cjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
64
64
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
65
65
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
66
66
  "select",
@@ -98,7 +98,7 @@ function SelectList({
98
98
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
99
99
  "path",
100
100
  {
101
- fill: errorText ? _7TSVTONIcjs.ColorBaseDestructive700 : _7TSVTONIcjs.ColorBaseGray800,
101
+ fill: errorText ? _BLCQNB25cjs.ColorBaseDestructive700 : _BLCQNB25cjs.ColorBaseGray800,
102
102
  d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
103
103
  }
104
104
  )
@@ -106,7 +106,7 @@ function SelectList({
106
106
  ) })
107
107
  ] }),
108
108
  (helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
109
- _GUACYIXBcjs.Typography_default,
109
+ _PJLDYIB6cjs.Typography_default,
110
110
  {
111
111
  size: 100,
112
112
  color: errorText ? "destructive-primary" : "gray700",
@@ -122,4 +122,4 @@ SelectList.Option = _JVGX637Ecjs.SelectOption_default;
122
122
 
123
123
 
124
124
  exports.SelectList = SelectList;
125
- //# sourceMappingURL=CBAKJXVM.cjs.map
125
+ //# sourceMappingURL=PRSQEQ5O.cjs.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./KKADUD65.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./V562ZHQ7.js";
7
+ } from "./JRDHZ3QL.js";
8
8
  import {
9
9
  colors_module_default
10
10
  } from "./S6TNP7G5.js";
@@ -116,4 +116,4 @@ var Checkbox_default = Checkbox;
116
116
  export {
117
117
  Checkbox_default
118
118
  };
119
- //# sourceMappingURL=TVR4TJKV.js.map
119
+ //# sourceMappingURL=SM7OH7FG.js.map
@@ -34,4 +34,4 @@ var Icon_default = Icon;
34
34
  export {
35
35
  Icon_default
36
36
  };
37
- //# sourceMappingURL=TELGW53W.js.map
37
+ //# sourceMappingURL=SONYYWLY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * `xs`: 16px x 16px\n * * `sm`: 20px x 20px\n * * `md`: 24px x 24px\n * * `lg`: 32px x 32px\n *\n * @defaultValue \"md\"\n */\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\";\n /**\n * The svg path of the icon. You should not use this prop directly, instead use the specific icon components.\n */\n path?: string;\n};\n\n/**\n * [Icon](http://localhost:6006/?path=/docs/icons-icons--docs) is the base component that renders an icon.\n * You shouldn't use this component directly, instead use the specific icon components.\n * @example\n * `import Book from \"@cambly/syntax-icons/Book\";`\n *\n * You can click on the icon to copy the import statement!\n */\nconst Icon = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"inherit\", path, size = \"md\" }: IconProps, ref) => (\n <svg\n className={classnames(\n styles.icon,\n textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_1ku5p_1\",\"iconxs\":\"_iconxs_1ku5p_8\",\"iconsm\":\"_iconsm_1ku5p_13\",\"iconmd\":\"_iconmd_1ku5p_18\",\"iconlg\":\"_iconlg_1ku5p_23\"}"],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,UAAS,mBAAkB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,mBAAkB;;;ADkDvO;AAZN,IAAM,OAAO;AAAA,EACX,CAAC,EAAE,QAAQ,WAAW,MAAM,OAAO,KAAK,GAAc,QACpD;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,oBAAO;AAAA,QACP,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}
@@ -4,7 +4,7 @@
4
4
  var _XLUVINJWcjs = require('./XLUVINJW.cjs');
5
5
 
6
6
 
7
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
7
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
8
8
 
9
9
 
10
10
  var _QT6IRCGWcjs = require('./QT6IRCGW.cjs');
@@ -100,7 +100,7 @@ var Checkbox = ({
100
100
  }
101
101
  ),
102
102
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
103
- _GUACYIXBcjs.Typography_default,
103
+ _PJLDYIB6cjs.Typography_default,
104
104
  {
105
105
  size: typographySize[size],
106
106
  color: error ? "destructive-primary" : "gray900",
@@ -116,4 +116,4 @@ var Checkbox_default = Checkbox;
116
116
 
117
117
 
118
118
  exports.Checkbox_default = Checkbox_default;
119
- //# sourceMappingURL=HFWEVQNS.cjs.map
119
+ //# sourceMappingURL=SZMHZR3B.cjs.map
@@ -4,7 +4,7 @@
4
4
  var _THM3NAFOcjs = require('./THM3NAFO.cjs');
5
5
 
6
6
 
7
- var _2OJKC2AXcjs = require('./2OJKC2AX.cjs');
7
+ var _47PGLBOScjs = require('./47PGLBOS.cjs');
8
8
 
9
9
 
10
10
  var _HUIHS6RNcjs = require('./HUIHS6RN.cjs');
@@ -93,7 +93,7 @@ function Modal({
93
93
  ),
94
94
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _FESAFV44cjs.Box_default, { display: "flex", direction: "column", width: "100%", children: [
95
95
  image && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { children: image }),
96
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _2OJKC2AXcjs.Heading_default, { as: "h1", size: 600, fontStyle: "serif", children: header }) }),
96
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { padding: 6, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _47PGLBOScjs.Heading_default, { as: "h1", size: 700, fontStyle: "serif", children: header }) }),
97
97
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
98
98
  _FESAFV44cjs.Box_default,
99
99
  {
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
130
130
 
131
131
 
132
132
  exports.Modal = Modal;
133
- //# sourceMappingURL=HK7T4244.cjs.map
133
+ //# sourceMappingURL=TJQKHHNH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,wBAAuB;;;ACoBxK,cAsJQ,YAtJR;AATN,SAAS,MAAM,EAAE,UAAU,GAA2B;AACpD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,eAAe;AACjB,GA4DiB;AACf,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAAO;AAAA,MAClB,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [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.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"white\"\n rounding=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={600}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\n >\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n onClick={onDismiss}\n size=\"md\"\n icon={XIcon}\n />\n </Box>\n\n <Box display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={600} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n"]}
1
+ {"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,wBAAuB;;;ACoBxK,cAsJQ,YAtJR;AATN,SAAS,MAAM,EAAE,UAAU,GAA2B;AACpD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,eAAe;AACjB,GA4DiB;AACf,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAAO;AAAA,MAClB,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [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.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"white\"\n rounding=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={600}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\n >\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n onClick={onDismiss}\n size=\"md\"\n icon={XIcon}\n />\n </Box>\n\n <Box display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={700} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n"]}
@@ -3,10 +3,10 @@ import {
3
3
  RichSelectBoxContext,
4
4
  RichSelectBox_default,
5
5
  convertSelection
6
- } from "./OQKBWMZ4.js";
6
+ } from "./OTGGVIQE.js";
7
7
  import {
8
8
  RichSelectChip_default
9
- } from "./TQ7D5O7L.js";
9
+ } from "./L5CT6YRH.js";
10
10
  import {
11
11
  Popover_default
12
12
  } from "./Y67FDYEF.js";
@@ -19,19 +19,19 @@ import {
19
19
  import {
20
20
  ColorBaseDestructive700,
21
21
  ColorBaseGray800
22
- } from "./3NABVL3W.js";
22
+ } from "./LA6LOY5X.js";
23
23
  import {
24
24
  RichSelectSection_default
25
- } from "./HN2MMSUI.js";
25
+ } from "./YI35INQ7.js";
26
26
  import {
27
27
  RichSelectRadioButton_default
28
- } from "./BU3EYSKD.js";
28
+ } from "./ONZHIMUG.js";
29
29
  import {
30
30
  Box_default
31
31
  } from "./M36V23WR.js";
32
32
  import {
33
33
  Typography_default
34
- } from "./V562ZHQ7.js";
34
+ } from "./JRDHZ3QL.js";
35
35
  import {
36
36
  useIsHydrated
37
37
  } from "./JB65NEXK.js";
@@ -266,4 +266,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
266
266
  export {
267
267
  RichSelectList_default
268
268
  };
269
- //# sourceMappingURL=HVZ5Z2YC.js.map
269
+ //# sourceMappingURL=VUDLDPIN.js.map
@@ -19,7 +19,7 @@ var _C3KZXHTVcjs = require('./C3KZXHTV.cjs');
19
19
  var _RAL6R27Scjs = require('./RAL6R27S.cjs');
20
20
 
21
21
 
22
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
22
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
23
23
 
24
24
  // src/LinkButton/LinkButton.tsx
25
25
 
@@ -88,7 +88,7 @@ var LinkButton = _react.forwardRef.call(void 0,
88
88
  size
89
89
  }
90
90
  ),
91
- !loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
91
+ !loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PJLDYIB6cjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
92
92
  "span",
93
93
  {
94
94
  className: foregroundColorClass,
@@ -137,4 +137,4 @@ var LinkButton_default = LinkButton;
137
137
 
138
138
 
139
139
  exports.LinkButton_default = LinkButton_default;
140
- //# sourceMappingURL=W45CFJI7.cjs.map
140
+ //# sourceMappingURL=XYSRAKGD.cjs.map
@@ -10,7 +10,7 @@ var _IL22HCBFcjs = require('./IL22HCBF.cjs');
10
10
  var _CHDS4D44cjs = require('./CHDS4D44.cjs');
11
11
 
12
12
 
13
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
13
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
14
14
 
15
15
 
16
16
  var _QT6IRCGWcjs = require('./QT6IRCGW.cjs');
@@ -102,7 +102,7 @@ var AriaTooltip = _react.forwardRef.call(void 0, function AriaTooltip2(_a, ref)
102
102
  childrenProp,
103
103
  (children, { isEntering, isExiting }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
104
104
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipArrow, {}),
105
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color: "white", children }),
105
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PJLDYIB6cjs.Typography_default, { size: 100, color: "white", children }),
106
106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
107
107
  _E5P6WRJDcjs.OverlayVisibility,
108
108
  {
@@ -162,4 +162,4 @@ var Tooltip_default = Tooltip;
162
162
 
163
163
 
164
164
  exports.AriaTooltip = AriaTooltip; exports.Tooltip_default = Tooltip_default;
165
- //# sourceMappingURL=7FYS3TSR.cjs.map
165
+ //# sourceMappingURL=YG47EHYS.cjs.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./AVREYFSM.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./V562ZHQ7.js";
10
+ } from "./JRDHZ3QL.js";
11
11
 
12
12
  // src/RichSelect/RichSelectSection.tsx
13
13
  import { forwardRef } from "react";
@@ -50,4 +50,4 @@ var RichSelectSection_default = forwardRef(
50
50
  export {
51
51
  RichSelectSection_default
52
52
  };
53
- //# sourceMappingURL=HN2MMSUI.js.map
53
+ //# sourceMappingURL=YI35INQ7.js.map
@@ -4,7 +4,7 @@
4
4
  var _FESAFV44cjs = require('./FESAFV44.cjs');
5
5
 
6
6
 
7
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
7
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
8
8
 
9
9
  // css-module:./Badge.module.css#css-module
10
10
  var Badge_module_default = { "icon": "_icon_1g9xb_1" };
@@ -37,13 +37,14 @@ var Badge = ({
37
37
  {
38
38
  display: "inlineFlex",
39
39
  paddingX: 2,
40
+ paddingY: 1,
40
41
  rounding: "sm",
41
42
  backgroundColor: color,
42
43
  alignItems: "center",
43
44
  justifyContent: "center",
44
45
  minHeight: 24,
45
46
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
46
- _GUACYIXBcjs.Typography_default,
47
+ _PJLDYIB6cjs.Typography_default,
47
48
  {
48
49
  size: 100,
49
50
  weight: "medium",
@@ -51,7 +52,7 @@ var Badge = ({
51
52
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _FESAFV44cjs.Box_default, { display: "flex", gap: 1, alignItems: "center", justifyContent: "start", children: [
52
53
  Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: Badge_module_default.icon, size: "xs" }),
53
54
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
54
- _GUACYIXBcjs.Typography_default,
55
+ _PJLDYIB6cjs.Typography_default,
55
56
  {
56
57
  color: textColorForBackgroundColor(color),
57
58
  size: 100,
@@ -70,4 +71,4 @@ var Badge_default = Badge;
70
71
 
71
72
 
72
73
  exports.Badge_default = Badge_default;
73
- //# sourceMappingURL=CQQJROZE.cjs.map
74
+ //# sourceMappingURL=YVQRFDEE.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;;;AC+ExH,SACW,KADX;AA5DR,IAAM,8BAA8B,CAClC,UACwB;AACxB,UAAQ,OAAO;AAAA,IACb,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,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,MAiBmB;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,MACV,iBAAiB;AAAA,MACjB,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,WAAW;AAAA,MAEX;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,QAAO;AAAA,UACP,OAAO,4BAA4B,KAAK;AAAA,UAExC,+BAAC,eAAI,SAAQ,QAAO,KAAK,GAAG,YAAW,UAAS,gBAAe,SAC5D;AAAA,oBAAQ,oBAAC,QAAK,WAAW,qBAAO,MAAM,MAAK,MAAK;AAAA,YACjD;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,4BAA4B,KAAK;AAAA,gBACxC,MAAM;AAAA,gBACN,QAAO;AAAA,gBAEN;AAAA;AAAA,YACH;AAAA,aACF;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Badge/Badge.module.css\"; export default {\"icon\":\"_icon_1g9xb_1\"}","import { type ComponentProps } from \"react\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport styles from \"./Badge.module.css\";\nimport type InternalIcon from \"../Icon/Icon\";\n\nconst badgeColor = [\n \"sky\",\n \"success300\",\n \"destructive300\",\n \"orange\",\n \"tan\",\n \"gray370\",\n \"gray870\",\n \"lilac\",\n \"thistle\",\n \"pink\",\n] as const;\n\nconst textColorForBackgroundColor = (\n color: (typeof badgeColor)[number],\n): \"gray900\" | \"white\" => {\n switch (color) {\n case \"gray370\":\n case \"destructive300\":\n case \"orange\":\n case \"tan\":\n case \"success300\":\n case \"sky\":\n case \"thistle\":\n case \"pink\":\n case \"lilac\":\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 = \"sky\",\n}: {\n /**\n * The icon to be displayed. Please use a [Material Icon](https://material.io/resources/icons/)\n */\n icon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * The text to display inside the badge\n */\n text: string;\n /**\n * The color of the badge\n *\n * @defaultValue \"sky\"\n */\n color?: (typeof badgeColor)[number];\n}): JSX.Element => {\n return (\n <Box\n display=\"inlineFlex\"\n paddingX={2}\n paddingY={1}\n rounding={\"sm\"}\n backgroundColor={color}\n alignItems=\"center\"\n justifyContent=\"center\"\n minHeight={24}\n >\n <Typography\n size={100}\n weight=\"medium\"\n color={textColorForBackgroundColor(color)}\n >\n <Box display=\"flex\" gap={1} alignItems=\"center\" justifyContent=\"start\">\n {Icon && <Icon className={styles.icon} size=\"xs\" />}\n <Typography\n color={textColorForBackgroundColor(color)}\n size={100}\n weight=\"medium\"\n >\n {text}\n </Typography>\n </Box>\n </Typography>\n </Box>\n );\n};\n\nexport default Badge;\n"]}
@@ -4,7 +4,7 @@
4
4
  var _FESAFV44cjs = require('./FESAFV44.cjs');
5
5
 
6
6
 
7
- var _GUACYIXBcjs = require('./GUACYIXB.cjs');
7
+ var _PJLDYIB6cjs = require('./PJLDYIB6.cjs');
8
8
 
9
9
 
10
10
  var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
@@ -76,7 +76,7 @@ var Chip = _react.forwardRef.call(void 0,
76
76
  onClick: onChange,
77
77
  children: [
78
78
  Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: iconStyles, size: "sm" }),
79
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color, weight: "medium", children: text }) })
79
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _PJLDYIB6cjs.Typography_default, { size: 100, color, weight: "medium", children: text }) })
80
80
  ]
81
81
  }
82
82
  );
@@ -88,4 +88,4 @@ var Chip_default = Chip;
88
88
 
89
89
 
90
90
  exports.Chip_default = Chip_default;
91
- //# sourceMappingURL=SFZ2MHPA.cjs.map
91
+ //# sourceMappingURL=ZBBMY7Y7.cjs.map