@cambly/syntax-core 21.2.0 → 21.4.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 (117) hide show
  1. package/dist/Badge/Badge.css +46 -46
  2. package/dist/Badge/Badge.css.map +1 -1
  3. package/dist/Badge/Badge.js +2 -2
  4. package/dist/Button/Button.css +46 -46
  5. package/dist/Button/Button.css.map +1 -1
  6. package/dist/Button/Button.js +2 -2
  7. package/dist/Checkbox/Checkbox.css +46 -46
  8. package/dist/Checkbox/Checkbox.css.map +1 -1
  9. package/dist/Checkbox/Checkbox.js +2 -2
  10. package/dist/Chip/Chip.css +46 -46
  11. package/dist/Chip/Chip.css.map +1 -1
  12. package/dist/Chip/Chip.js +2 -2
  13. package/dist/Heading/Heading.css +46 -46
  14. package/dist/Heading/Heading.css.map +1 -1
  15. package/dist/Heading/Heading.js +2 -2
  16. package/dist/LinkButton/LinkButton.css +46 -46
  17. package/dist/LinkButton/LinkButton.css.map +1 -1
  18. package/dist/LinkButton/LinkButton.js +2 -2
  19. package/dist/Modal/Modal.css +46 -46
  20. package/dist/Modal/Modal.css.map +1 -1
  21. package/dist/Modal/Modal.js +3 -3
  22. package/dist/RadioButton/RadioButton.css +46 -46
  23. package/dist/RadioButton/RadioButton.css.map +1 -1
  24. package/dist/RadioButton/RadioButton.js +2 -2
  25. package/dist/RichSelect/RichSelectBox.css +46 -46
  26. package/dist/RichSelect/RichSelectBox.css.map +1 -1
  27. package/dist/RichSelect/RichSelectBox.js +8 -8
  28. package/dist/RichSelect/RichSelectChip.css +46 -46
  29. package/dist/RichSelect/RichSelectChip.css.map +1 -1
  30. package/dist/RichSelect/RichSelectChip.js +3 -3
  31. package/dist/RichSelect/RichSelectList.css +46 -46
  32. package/dist/RichSelect/RichSelectList.css.map +1 -1
  33. package/dist/RichSelect/RichSelectList.js +10 -10
  34. package/dist/RichSelect/RichSelectRadioButton.css +46 -46
  35. package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
  36. package/dist/RichSelect/RichSelectRadioButton.js +3 -3
  37. package/dist/RichSelect/RichSelectSection.css +46 -46
  38. package/dist/RichSelect/RichSelectSection.css.map +1 -1
  39. package/dist/RichSelect/RichSelectSection.js +2 -2
  40. package/dist/SelectList/SelectList.css +46 -46
  41. package/dist/SelectList/SelectList.css.map +1 -1
  42. package/dist/SelectList/SelectList.js +3 -3
  43. package/dist/TabButton/TabButton.css +46 -46
  44. package/dist/TabButton/TabButton.css.map +1 -1
  45. package/dist/TabButton/TabButton.js +3 -3
  46. package/dist/TabLink/TabLink.css +46 -46
  47. package/dist/TabLink/TabLink.css.map +1 -1
  48. package/dist/TabLink/TabLink.js +3 -3
  49. package/dist/Tabs/TabInternal.css +46 -46
  50. package/dist/Tabs/TabInternal.css.map +1 -1
  51. package/dist/Tabs/TabInternal.js +2 -2
  52. package/dist/TextArea/TextArea.css +46 -46
  53. package/dist/TextArea/TextArea.css.map +1 -1
  54. package/dist/TextArea/TextArea.js +2 -2
  55. package/dist/TextField/TextField.css +46 -46
  56. package/dist/TextField/TextField.css.map +1 -1
  57. package/dist/TextField/TextField.js +3 -3
  58. package/dist/Tooltip/Tooltip.css +46 -46
  59. package/dist/Tooltip/Tooltip.css.map +1 -1
  60. package/dist/Tooltip/Tooltip.js +2 -2
  61. package/dist/Typography/Typography.css +46 -46
  62. package/dist/Typography/Typography.css.map +1 -1
  63. package/dist/Typography/Typography.d.ts +1 -1
  64. package/dist/Typography/Typography.js +1 -1
  65. package/dist/WordConfetti/WordConfetti.css +46 -46
  66. package/dist/WordConfetti/WordConfetti.css.map +1 -1
  67. package/dist/WordConfetti/WordConfetti.js +2 -2
  68. package/dist/__chunks/{TIF2TGI4.js → 27WWAT4I.js} +2 -2
  69. package/dist/__chunks/{N2BHZQOQ.js → 4GROQ4CJ.js} +7 -7
  70. package/dist/__chunks/{HUZ7DUK2.js → 4XSFT3XH.js} +3 -3
  71. package/dist/__chunks/{DZNR7V5P.js → 5SJY6YA2.js} +2 -2
  72. package/dist/__chunks/{X4DRRDFO.js → EVESNLOD.js} +2 -2
  73. package/dist/__chunks/{44OIIPEP.js → F3F5WL6P.js} +2 -2
  74. package/dist/__chunks/{I2TGRWBJ.js → FGIRARDP.js} +2 -2
  75. package/dist/__chunks/{67NXLQQ3.js → H4ML7IJW.js} +2 -2
  76. package/dist/__chunks/{22TVX5F4.js → L2B4DFFI.js} +2 -2
  77. package/dist/__chunks/{NCY5ER37.js → LWMC6EQB.js} +2 -2
  78. package/dist/__chunks/{ZAYQ4QHT.js → MN23VGSA.js} +2 -2
  79. package/dist/__chunks/{NVTCDO3W.js → MZPV6KFZ.js} +2 -2
  80. package/dist/__chunks/{RVPSNO77.js → O5NTP5KC.js} +2 -2
  81. package/dist/__chunks/{RVPSNO77.js.map → O5NTP5KC.js.map} +1 -1
  82. package/dist/__chunks/{GHPAVZWL.js → T4YHKCPK.js} +1 -1
  83. package/dist/__chunks/{GHPAVZWL.js.map → T4YHKCPK.js.map} +1 -1
  84. package/dist/__chunks/{L45IICHC.js → TPSWKGXZ.js} +2 -2
  85. package/dist/__chunks/{AKETYCNW.js → TQKSGWFO.js} +3 -2
  86. package/dist/__chunks/{AKETYCNW.js.map → TQKSGWFO.js.map} +1 -1
  87. package/dist/__chunks/{RJS7BKZD.js → VNZQBFJ3.js} +5 -5
  88. package/dist/__chunks/{L6DEFAVZ.js → VVNR2CNY.js} +2 -2
  89. package/dist/__chunks/{WQ4ENJC7.js → WHFJPKC5.js} +2 -2
  90. package/dist/__chunks/{C3KCRIBA.js → WIND6RNT.js} +2 -2
  91. package/dist/__chunks/{4JGJPX37.js → XKFXXZXQ.js} +3 -3
  92. package/dist/__chunks/{5R4TON7U.js → YKVUQLMW.js} +2 -2
  93. package/dist/__chunks/{NTFNQNV5.js → ZUM2R77X.js} +2 -2
  94. package/dist/index.css +46 -46
  95. package/dist/index.css.map +1 -1
  96. package/dist/index.js +23 -23
  97. package/package.json +1 -1
  98. /package/dist/__chunks/{TIF2TGI4.js.map → 27WWAT4I.js.map} +0 -0
  99. /package/dist/__chunks/{N2BHZQOQ.js.map → 4GROQ4CJ.js.map} +0 -0
  100. /package/dist/__chunks/{HUZ7DUK2.js.map → 4XSFT3XH.js.map} +0 -0
  101. /package/dist/__chunks/{DZNR7V5P.js.map → 5SJY6YA2.js.map} +0 -0
  102. /package/dist/__chunks/{X4DRRDFO.js.map → EVESNLOD.js.map} +0 -0
  103. /package/dist/__chunks/{44OIIPEP.js.map → F3F5WL6P.js.map} +0 -0
  104. /package/dist/__chunks/{I2TGRWBJ.js.map → FGIRARDP.js.map} +0 -0
  105. /package/dist/__chunks/{67NXLQQ3.js.map → H4ML7IJW.js.map} +0 -0
  106. /package/dist/__chunks/{22TVX5F4.js.map → L2B4DFFI.js.map} +0 -0
  107. /package/dist/__chunks/{NCY5ER37.js.map → LWMC6EQB.js.map} +0 -0
  108. /package/dist/__chunks/{ZAYQ4QHT.js.map → MN23VGSA.js.map} +0 -0
  109. /package/dist/__chunks/{NVTCDO3W.js.map → MZPV6KFZ.js.map} +0 -0
  110. /package/dist/__chunks/{L45IICHC.js.map → TPSWKGXZ.js.map} +0 -0
  111. /package/dist/__chunks/{RJS7BKZD.js.map → VNZQBFJ3.js.map} +0 -0
  112. /package/dist/__chunks/{L6DEFAVZ.js.map → VVNR2CNY.js.map} +0 -0
  113. /package/dist/__chunks/{WQ4ENJC7.js.map → WHFJPKC5.js.map} +0 -0
  114. /package/dist/__chunks/{C3KCRIBA.js.map → WIND6RNT.js.map} +0 -0
  115. /package/dist/__chunks/{4JGJPX37.js.map → XKFXXZXQ.js.map} +0 -0
  116. /package/dist/__chunks/{5R4TON7U.js.map → YKVUQLMW.js.map} +0 -0
  117. /package/dist/__chunks/{NTFNQNV5.js.map → ZUM2R77X.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Typography_default
4
- } from "./RVPSNO77.js";
4
+ } from "./O5NTP5KC.js";
5
5
 
6
6
  // src/Heading/Heading.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -47,4 +47,4 @@ var Heading_default = Heading;
47
47
  export {
48
48
  Heading_default
49
49
  };
50
- //# sourceMappingURL=X4DRRDFO.js.map
50
+ //# sourceMappingURL=EVESNLOD.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Heading_default
4
- } from "./X4DRRDFO.js";
4
+ } from "./EVESNLOD.js";
5
5
  import {
6
6
  StopScroll
7
7
  } from "./QQT35OLE.js";
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
130
130
  export {
131
131
  Modal
132
132
  };
133
- //# sourceMappingURL=44OIIPEP.js.map
133
+ //# sourceMappingURL=F3F5WL6P.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./AVREYFSM.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./RVPSNO77.js";
10
+ } from "./O5NTP5KC.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=I2TGRWBJ.js.map
53
+ //# sourceMappingURL=FGIRARDP.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./KKADUD65.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -114,4 +114,4 @@ var Checkbox_default = Checkbox;
114
114
  export {
115
115
  Checkbox_default
116
116
  };
117
- //# sourceMappingURL=67NXLQQ3.js.map
117
+ //# sourceMappingURL=H4ML7IJW.js.map
@@ -23,7 +23,7 @@ import {
23
23
  } from "./YGON3SJ5.js";
24
24
  import {
25
25
  Typography_default
26
- } from "./RVPSNO77.js";
26
+ } from "./O5NTP5KC.js";
27
27
 
28
28
  // src/LinkButton/LinkButton.tsx
29
29
  import {
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
138
138
  export {
139
139
  LinkButton_default
140
140
  };
141
- //# sourceMappingURL=22TVX5F4.js.map
141
+ //# sourceMappingURL=L2B4DFFI.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./IB6JZQF3.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -99,4 +99,4 @@ var TextArea_default = TextArea;
99
99
  export {
100
100
  TextArea_default
101
101
  };
102
- //# sourceMappingURL=NCY5ER37.js.map
102
+ //# sourceMappingURL=LWMC6EQB.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  RadioButton_default
4
- } from "./TIF2TGI4.js";
4
+ } from "./27WWAT4I.js";
5
5
  import {
6
6
  RichSelectItem_default
7
7
  } from "./ODMJANSX.js";
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
37
37
  export {
38
38
  RichSelectRadioButton_default
39
39
  };
40
- //# sourceMappingURL=ZAYQ4QHT.js.map
40
+ //# sourceMappingURL=MN23VGSA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./IB6JZQF3.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -88,4 +88,4 @@ var Chip_default = Chip;
88
88
  export {
89
89
  Chip_default
90
90
  };
91
- //# sourceMappingURL=NVTCDO3W.js.map
91
+ //# sourceMappingURL=MZPV6KFZ.js.map
@@ -8,7 +8,7 @@ import classNames from "classnames";
8
8
  import { forwardRef } from "react";
9
9
 
10
10
  // css-module:./Typography.module.css#css-module
11
- var Typography_module_default = { "typography": "_typography_15w34_1", "sansSerif": "_sansSerif_15w34_22", "serif": "_serif_15w34_27", "size0": "_size0_15w34_73", "size100": "_size100_15w34_77", "size200": "_size200_15w34_81", "size300": "_size300_15w34_85", "size400": "_size400_15w34_89", "size500": "_size500_15w34_93", "size700": "_size700_15w34_97", "size800": "_size800_15w34_101", "size900": "_size900_15w34_105", "size1100": "_size1100_15w34_109", "center": "_center_15w34_137", "forceLeft": "_forceLeft_15w34_141", "forceRight": "_forceRight_15w34_145", "start": "_start_15w34_149", "end": "_end_15w34_153", "regular": "_regular_15w34_159", "medium": "_medium_15w34_163", "semiBold": "_semiBold_15w34_167", "bold": "_bold_15w34_171", "underline": "_underline_15w34_175", "inline": "_inline_15w34_179", "uppercase": "_uppercase_15w34_183", "lineClamp": "_lineClamp_15w34_187", "p100": "_p100_15w34_196", "p200": "_p200_15w34_200", "p300": "_p300_15w34_204", "p400": "_p400_15w34_208", "p500": "_p500_15w34_212" };
11
+ var Typography_module_default = { "typography": "_typography_bp3g5_1", "sansSerif": "_sansSerif_bp3g5_22", "serif": "_serif_bp3g5_27", "size0": "_size0_bp3g5_73", "size100": "_size100_bp3g5_77", "size200": "_size200_bp3g5_81", "size300": "_size300_bp3g5_85", "size400": "_size400_bp3g5_89", "size500": "_size500_bp3g5_93", "size700": "_size700_bp3g5_97", "size800": "_size800_bp3g5_101", "size900": "_size900_bp3g5_105", "size1100": "_size1100_bp3g5_109", "center": "_center_bp3g5_137", "forceLeft": "_forceLeft_bp3g5_141", "forceRight": "_forceRight_bp3g5_145", "start": "_start_bp3g5_149", "end": "_end_bp3g5_153", "regular": "_regular_bp3g5_159", "medium": "_medium_bp3g5_163", "semiBold": "_semiBold_bp3g5_167", "bold": "_bold_bp3g5_171", "underline": "_underline_bp3g5_175", "inline": "_inline_bp3g5_179", "uppercase": "_uppercase_bp3g5_183", "lineClamp": "_lineClamp_bp3g5_187", "p100": "_p100_bp3g5_196", "p200": "_p200_bp3g5_200", "p300": "_p300_bp3g5_204", "p400": "_p400_bp3g5_208", "p500": "_p500_bp3g5_212" };
12
12
 
13
13
  // src/Typography/Typography.tsx
14
14
  import { jsx } from "react/jsx-runtime";
@@ -61,4 +61,4 @@ var Typography_default = Typography;
61
61
  export {
62
62
  Typography_default
63
63
  };
64
- //# sourceMappingURL=RVPSNO77.js.map
64
+ //# sourceMappingURL=O5NTP5KC.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"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\" | \"p\";\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 | \"destructive-lightBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"white-secondary\"\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 * * `500`: 32px\n * * `700`: 38px\n * * `800`: 46px\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 * * `500`: 32px\n * * `700`: 49px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 500 | 700 | 800 | 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 as === \"p\" && styles[`p${size}`],\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_15w34_1\",\"sansSerif\":\"_sansSerif_15w34_22\",\"serif\":\"_serif_15w34_27\",\"size0\":\"_size0_15w34_73\",\"size100\":\"_size100_15w34_77\",\"size200\":\"_size200_15w34_81\",\"size300\":\"_size300_15w34_85\",\"size400\":\"_size400_15w34_89\",\"size500\":\"_size500_15w34_93\",\"size700\":\"_size700_15w34_97\",\"size800\":\"_size800_15w34_101\",\"size900\":\"_size900_15w34_105\",\"size1100\":\"_size1100_15w34_109\",\"center\":\"_center_15w34_137\",\"forceLeft\":\"_forceLeft_15w34_141\",\"forceRight\":\"_forceRight_15w34_145\",\"start\":\"_start_15w34_149\",\"end\":\"_end_15w34_153\",\"regular\":\"_regular_15w34_159\",\"medium\":\"_medium_15w34_163\",\"semiBold\":\"_semiBold_15w34_167\",\"bold\":\"_bold_15w34_171\",\"underline\":\"_underline_15w34_175\",\"inline\":\"_inline_15w34_179\",\"uppercase\":\"_uppercase_15w34_183\",\"lineClamp\":\"_lineClamp_15w34_187\",\"p100\":\"_p100_15w34_196\",\"p200\":\"_p200_15w34_200\",\"p300\":\"_p300_15w34_204\",\"p400\":\"_p400_15w34_208\",\"p500\":\"_p500_15w34_212\"}"],"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,WAAU,sBAAqB,WAAU,sBAAqB,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,wBAAuB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,kBAAiB;;;ADwJ3gC;AAhJJ,IAAM,aAAa,WA0HjB,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,QAC5B,OAAO,OAAO,0BAAO,IAAI,MAAM;AAAA,MACjC;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;","names":["Typography"]}
1
+ {"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"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\" | \"p\";\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 | \"destructive-lightBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"white-secondary\"\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 * * `500`: 32px\n * * `700`: 38px\n * * `800`: 46px\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 * * `500`: 32px\n * * `700`: 44px\n * * `800`: 63px\n * * `900`: 76px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 0 | 100 | 200 | 300 | 400 | 500 | 700 | 800 | 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 as === \"p\" && styles[`p${size}`],\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_bp3g5_1\",\"sansSerif\":\"_sansSerif_bp3g5_22\",\"serif\":\"_serif_bp3g5_27\",\"size0\":\"_size0_bp3g5_73\",\"size100\":\"_size100_bp3g5_77\",\"size200\":\"_size200_bp3g5_81\",\"size300\":\"_size300_bp3g5_85\",\"size400\":\"_size400_bp3g5_89\",\"size500\":\"_size500_bp3g5_93\",\"size700\":\"_size700_bp3g5_97\",\"size800\":\"_size800_bp3g5_101\",\"size900\":\"_size900_bp3g5_105\",\"size1100\":\"_size1100_bp3g5_109\",\"center\":\"_center_bp3g5_137\",\"forceLeft\":\"_forceLeft_bp3g5_141\",\"forceRight\":\"_forceRight_bp3g5_145\",\"start\":\"_start_bp3g5_149\",\"end\":\"_end_bp3g5_153\",\"regular\":\"_regular_bp3g5_159\",\"medium\":\"_medium_bp3g5_163\",\"semiBold\":\"_semiBold_bp3g5_167\",\"bold\":\"_bold_bp3g5_171\",\"underline\":\"_underline_bp3g5_175\",\"inline\":\"_inline_bp3g5_179\",\"uppercase\":\"_uppercase_bp3g5_183\",\"lineClamp\":\"_lineClamp_bp3g5_187\",\"p100\":\"_p100_bp3g5_196\",\"p200\":\"_p200_bp3g5_200\",\"p300\":\"_p300_bp3g5_204\",\"p400\":\"_p400_bp3g5_208\",\"p500\":\"_p500_bp3g5_212\"}"],"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,WAAU,sBAAqB,WAAU,sBAAqB,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,wBAAuB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,mBAAkB,QAAO,kBAAiB;;;ADwJ3gC;AAhJJ,IAAM,aAAa,WA0HjB,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,QAC5B,OAAO,OAAO,0BAAO,IAAI,MAAM;AAAA,MACjC;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;","names":["Typography"]}
@@ -10,4 +10,4 @@ export {
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
12
  };
13
- //# sourceMappingURL=GHPAVZWL.js.map
13
+ //# sourceMappingURL=T4YHKCPK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Tue, 15 Oct 2024 22:39:14 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 ColorCambioWhite40 = \"#ffffff\";\nexport const ColorCambioWhite70 = \"#ffffff\";\nexport const ColorCambioWhite100 = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray270 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#5e5952\";\nexport const ColorCambioGray800 = \"#363432\";\nexport const ColorCambioGray870 = \"#5e5952\";\nexport const ColorCambioGray900 = \"#262625\";\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\";\nexport const ShadowInteractive = \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB;","names":[]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Tue, 22 Oct 2024 21:44:10 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 ColorCambioWhite40 = \"#ffffff\";\nexport const ColorCambioWhite70 = \"#ffffff\";\nexport const ColorCambioWhite100 = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray270 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#5e5952\";\nexport const ColorCambioGray800 = \"#363432\";\nexport const ColorCambioGray870 = \"#5e5952\";\nexport const ColorCambioGray900 = \"#262625\";\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\";\nexport const ShadowInteractive = \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB;","names":[]}
@@ -4,7 +4,7 @@ import {
4
4
  } from "./IB6JZQF3.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
  import {
9
9
  colors_module_default
10
10
  } from "./XSYKMCV5.js";
@@ -98,4 +98,4 @@ function TabInternal({
98
98
  export {
99
99
  TabInternal
100
100
  };
101
- //# sourceMappingURL=L45IICHC.js.map
101
+ //# sourceMappingURL=TPSWKGXZ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./IB6JZQF3.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
 
9
9
  // css-module:./Badge.module.css#css-module
10
10
  var Badge_module_default = { "icon": "_icon_1g9xb_1" };
@@ -59,6 +59,7 @@ var Badge = ({
59
59
  color: textColorForBackgroundColor(color),
60
60
  size: 100,
61
61
  weight: "medium",
62
+ transform: "uppercase",
62
63
  children: text
63
64
  }
64
65
  )
@@ -73,4 +74,4 @@ var Badge_default = Badge;
73
74
  export {
74
75
  Badge_default
75
76
  };
76
- //# sourceMappingURL=AKETYCNW.js.map
77
+ //# sourceMappingURL=TQKSGWFO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["css-module:./Badge.module.css#css-module","../../src/Badge/Badge.tsx"],"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 \"cream\",\n \"yellow700\",\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 case \"cream\":\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 = \"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={100} />}\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"],"mappings":";;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,QAAO,gBAAe;;;ACmFxH,SACW,KADX;AA9DR,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;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,MAAM,KAAK;AAAA,YAClD;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;","names":[]}
1
+ {"version":3,"sources":["css-module:./Badge.module.css#css-module","../../src/Badge/Badge.tsx"],"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 \"cream\",\n \"yellow700\",\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 case \"cream\":\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 = \"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={100} />}\n <Typography\n color={textColorForBackgroundColor(color)}\n size={100}\n weight=\"medium\"\n transform=\"uppercase\"\n >\n {text}\n </Typography>\n </Box>\n </Typography>\n </Box>\n );\n};\n\nexport default Badge;\n"],"mappings":";;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,QAAO,gBAAe;;;ACmFxH,SACW,KADX;AA9DR,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;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,MAAM,KAAK;AAAA,YAClD;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,4BAA4B,KAAK;AAAA,gBACxC,MAAM;AAAA,gBACN,QAAO;AAAA,gBACP,WAAU;AAAA,gBAET;AAAA;AAAA,YACH;AAAA,aACF;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;","names":[]}
@@ -4,19 +4,19 @@ import {
4
4
  } from "./36DG472B.js";
5
5
  import {
6
6
  Button_default
7
- } from "./DZNR7V5P.js";
7
+ } from "./5SJY6YA2.js";
8
8
  import {
9
9
  Divider
10
10
  } from "./M4W3IFMV.js";
11
11
  import {
12
12
  RichSelectSection_default
13
- } from "./I2TGRWBJ.js";
13
+ } from "./FGIRARDP.js";
14
14
  import {
15
15
  RichSelectRadioButton_default
16
- } from "./ZAYQ4QHT.js";
16
+ } from "./MN23VGSA.js";
17
17
  import {
18
18
  RichSelectChip_default
19
- } from "./WQ4ENJC7.js";
19
+ } from "./WHFJPKC5.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=RJS7BKZD.js.map
211
+ //# sourceMappingURL=VNZQBFJ3.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./VV2NJABK.js";
8
8
  import {
9
9
  TabInternal
10
- } from "./L45IICHC.js";
10
+ } from "./TPSWKGXZ.js";
11
11
  import {
12
12
  Box_default
13
13
  } from "./IB6JZQF3.js";
@@ -64,4 +64,4 @@ function TabButton({
64
64
  export {
65
65
  TabButton
66
66
  };
67
- //# sourceMappingURL=L6DEFAVZ.js.map
67
+ //# sourceMappingURL=VVNR2CNY.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Chip_default
4
- } from "./NVTCDO3W.js";
4
+ } from "./MZPV6KFZ.js";
5
5
  import {
6
6
  RichSelectItem_default
7
7
  } from "./ODMJANSX.js";
@@ -31,4 +31,4 @@ var RichSelectChip_default = forwardRef(
31
31
  export {
32
32
  RichSelectChip_default
33
33
  };
34
- //# sourceMappingURL=WQ4ENJC7.js.map
34
+ //# sourceMappingURL=WHFJPKC5.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./VV2NJABK.js";
5
5
  import {
6
6
  TabInternal
7
- } from "./L45IICHC.js";
7
+ } from "./TPSWKGXZ.js";
8
8
  import {
9
9
  Box_default
10
10
  } from "./IB6JZQF3.js";
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
72
72
  export {
73
73
  TabLink_default
74
74
  };
75
- //# sourceMappingURL=C3KCRIBA.js.map
75
+ //# sourceMappingURL=WIND6RNT.js.map
@@ -1,13 +1,13 @@
1
1
  "use client"
2
2
  import {
3
3
  Badge_default
4
- } from "./AKETYCNW.js";
4
+ } from "./TQKSGWFO.js";
5
5
  import {
6
6
  Box_default
7
7
  } from "./IB6JZQF3.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./RVPSNO77.js";
10
+ } from "./O5NTP5KC.js";
11
11
  import {
12
12
  useIsHydrated
13
13
  } from "./JB65NEXK.js";
@@ -118,4 +118,4 @@ function TextField({
118
118
  export {
119
119
  TextField
120
120
  };
121
- //# sourceMappingURL=4JGJPX37.js.map
121
+ //# sourceMappingURL=XKFXXZXQ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./IB6JZQF3.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./RVPSNO77.js";
7
+ } from "./O5NTP5KC.js";
8
8
 
9
9
  // src/WordConfetti/WordConfetti.tsx
10
10
  import { forwardRef } from "react";
@@ -106,4 +106,4 @@ var WordConfetti_default = WordConfetti;
106
106
  export {
107
107
  WordConfetti_default
108
108
  };
109
- //# sourceMappingURL=5R4TON7U.js.map
109
+ //# sourceMappingURL=YKVUQLMW.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./KBIW5XV4.js";
11
11
  import {
12
12
  Typography_default
13
- } from "./RVPSNO77.js";
13
+ } from "./O5NTP5KC.js";
14
14
  import {
15
15
  colors_module_default
16
16
  } from "./XSYKMCV5.js";
@@ -166,4 +166,4 @@ export {
166
166
  AriaTooltip,
167
167
  Tooltip_default
168
168
  };
169
- //# sourceMappingURL=NTFNQNV5.js.map
169
+ //# sourceMappingURL=ZUM2R77X.js.map
package/dist/index.css CHANGED
@@ -2290,7 +2290,7 @@
2290
2290
  }
2291
2291
 
2292
2292
  /* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css/#css-module-data */
2293
- ._typography_15w34_1 {
2293
+ ._typography_bp3g5_1 {
2294
2294
  line-height: initial;
2295
2295
  margin: 0;
2296
2296
  }
@@ -2306,130 +2306,130 @@
2306
2306
  font-weight: 700;
2307
2307
  src: local("GT-Super-Text-Bold"), url(https://static.cambly.com/fonts/gt-super-text-bold-final.woff2);
2308
2308
  }
2309
- ._sansSerif_15w34_22 {
2309
+ ._sansSerif_bp3g5_22 {
2310
2310
  font-family: var(--syntax-font-sans-serif);
2311
2311
  margin: 0;
2312
2312
  }
2313
- ._serif_15w34_27 {
2313
+ ._serif_bp3g5_27 {
2314
2314
  font-family: var( --syntax-font-sans-serif );
2315
2315
  }
2316
- :lang(en) ._serif_15w34_27,
2317
- :lang(az) ._serif_15w34_27,
2318
- :lang(fr) ._serif_15w34_27,
2319
- :lang(de) ._serif_15w34_27,
2320
- :lang(es) ._serif_15w34_27,
2321
- :lang(it) ._serif_15w34_27,
2322
- :lang(pl) ._serif_15w34_27,
2323
- :lang(pt) ._serif_15w34_27,
2324
- :lang(tr) ._serif_15w34_27 {
2316
+ :lang(en) ._serif_bp3g5_27,
2317
+ :lang(az) ._serif_bp3g5_27,
2318
+ :lang(fr) ._serif_bp3g5_27,
2319
+ :lang(de) ._serif_bp3g5_27,
2320
+ :lang(es) ._serif_bp3g5_27,
2321
+ :lang(it) ._serif_bp3g5_27,
2322
+ :lang(pl) ._serif_bp3g5_27,
2323
+ :lang(pt) ._serif_bp3g5_27,
2324
+ :lang(tr) ._serif_bp3g5_27 {
2325
2325
  font-family: "GT Super", var(--syntax-font-sans-serif);
2326
2326
  -webkit-font-smoothing: antialiased;
2327
2327
  letter-spacing: -0.02em;
2328
2328
  line-height: 1.15em;
2329
2329
  }
2330
- ._size0_15w34_73 {
2330
+ ._size0_bp3g5_73 {
2331
2331
  font-size: 12px;
2332
2332
  }
2333
- ._size100_15w34_77 {
2333
+ ._size100_bp3g5_77 {
2334
2334
  font-size: 13px;
2335
2335
  }
2336
- ._size200_15w34_81 {
2336
+ ._size200_bp3g5_81 {
2337
2337
  font-size: 16px;
2338
2338
  }
2339
- ._size300_15w34_85 {
2339
+ ._size300_bp3g5_85 {
2340
2340
  font-size: 19px;
2341
2341
  }
2342
- ._size400_15w34_89 {
2342
+ ._size400_bp3g5_89 {
2343
2343
  font-size: 25px;
2344
2344
  }
2345
- ._size500_15w34_93 {
2345
+ ._size500_bp3g5_93 {
2346
2346
  font-size: 32px;
2347
2347
  }
2348
- ._size700_15w34_97 {
2348
+ ._size700_bp3g5_97 {
2349
2349
  font-size: 38px;
2350
2350
  }
2351
- ._size800_15w34_101 {
2351
+ ._size800_bp3g5_101 {
2352
2352
  font-size: 46px;
2353
2353
  }
2354
- ._size900_15w34_105 {
2354
+ ._size900_bp3g5_105 {
2355
2355
  font-size: 55px;
2356
2356
  }
2357
- ._size1100_15w34_109 {
2357
+ ._size1100_bp3g5_109 {
2358
2358
  font-size: 83px;
2359
2359
  }
2360
2360
  @media (min-width: 480px) {
2361
- ._size300_15w34_85 {
2361
+ ._size300_bp3g5_85 {
2362
2362
  font-size: 20px;
2363
2363
  }
2364
- ._size700_15w34_97 {
2365
- font-size: 49px;
2364
+ ._size700_bp3g5_97 {
2365
+ font-size: 44px;
2366
2366
  }
2367
- ._size800_15w34_101 {
2367
+ ._size800_bp3g5_101 {
2368
2368
  font-size: 63px;
2369
2369
  }
2370
- ._size900_15w34_105 {
2370
+ ._size900_bp3g5_105 {
2371
2371
  font-size: 76px;
2372
2372
  }
2373
- ._size1100_15w34_109 {
2373
+ ._size1100_bp3g5_109 {
2374
2374
  font-size: 119px;
2375
2375
  }
2376
2376
  }
2377
- ._center_15w34_137 {
2377
+ ._center_bp3g5_137 {
2378
2378
  text-align: center;
2379
2379
  }
2380
- ._forceLeft_15w34_141 {
2380
+ ._forceLeft_bp3g5_141 {
2381
2381
  text-align: left;
2382
2382
  }
2383
- ._forceRight_15w34_145 {
2383
+ ._forceRight_bp3g5_145 {
2384
2384
  text-align: right;
2385
2385
  }
2386
- ._start_15w34_149 {
2386
+ ._start_bp3g5_149 {
2387
2387
  text-align: start;
2388
2388
  }
2389
- ._end_15w34_153 {
2389
+ ._end_bp3g5_153 {
2390
2390
  text-align: end;
2391
2391
  }
2392
- ._regular_15w34_159 {
2392
+ ._regular_bp3g5_159 {
2393
2393
  font-weight: 400;
2394
2394
  }
2395
- ._medium_15w34_163 {
2395
+ ._medium_bp3g5_163 {
2396
2396
  font-weight: 510;
2397
2397
  }
2398
- ._semiBold_15w34_167 {
2398
+ ._semiBold_bp3g5_167 {
2399
2399
  font-weight: 590;
2400
2400
  }
2401
- ._bold_15w34_171 {
2401
+ ._bold_bp3g5_171 {
2402
2402
  font-weight: 700;
2403
2403
  }
2404
- ._underline_15w34_175 {
2404
+ ._underline_bp3g5_175 {
2405
2405
  text-decoration: underline;
2406
2406
  }
2407
- ._inline_15w34_179 {
2407
+ ._inline_bp3g5_179 {
2408
2408
  display: inline;
2409
2409
  }
2410
- ._uppercase_15w34_183 {
2410
+ ._uppercase_bp3g5_183 {
2411
2411
  text-transform: uppercase;
2412
2412
  }
2413
- ._lineClamp_15w34_187 {
2413
+ ._lineClamp_bp3g5_187 {
2414
2414
  -webkit-box-orient: vertical;
2415
2415
  display: -webkit-box;
2416
2416
  max-width: 100%;
2417
2417
  overflow: hidden;
2418
2418
  word-break: break-word;
2419
2419
  }
2420
- ._p100_15w34_196 {
2420
+ ._p100_bp3g5_196 {
2421
2421
  line-height: 150%;
2422
2422
  }
2423
- ._p200_15w34_200 {
2423
+ ._p200_bp3g5_200 {
2424
2424
  line-height: 150%;
2425
2425
  }
2426
- ._p300_15w34_204 {
2426
+ ._p300_bp3g5_204 {
2427
2427
  line-height: 140%;
2428
2428
  }
2429
- ._p400_15w34_208 {
2429
+ ._p400_bp3g5_208 {
2430
2430
  line-height: 130%;
2431
2431
  }
2432
- ._p500_15w34_212 {
2432
+ ._p500_bp3g5_212 {
2433
2433
  line-height: 115%;
2434
2434
  }
2435
2435