@cambly/syntax-core 20.5.0 → 20.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/Avatar/Avatar.d.ts +1 -1
  2. package/dist/Badge/Badge.d.ts +1 -1
  3. package/dist/Button/Button.cjs +3 -3
  4. package/dist/Button/Button.js +2 -2
  5. package/dist/Button/constants/iconSize.cjs +2 -2
  6. package/dist/Button/constants/iconSize.d.ts +2 -2
  7. package/dist/Button/constants/iconSize.js +1 -1
  8. package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
  9. package/dist/Checkbox/Checkbox.d.ts +1 -1
  10. package/dist/Dialog/ModalDialog.cjs +4 -4
  11. package/dist/Dialog/ModalDialog.js +3 -3
  12. package/dist/Heading/Heading.d.ts +1 -1
  13. package/dist/Icon/Icon.cjs +2 -2
  14. package/dist/Icon/Icon.d.ts +1 -1
  15. package/dist/Icon/Icon.js +1 -1
  16. package/dist/IconButton/IconButton.cjs +3 -3
  17. package/dist/IconButton/IconButton.js +2 -2
  18. package/dist/IconLinkButton/IconLinkButton.cjs +3 -3
  19. package/dist/IconLinkButton/IconLinkButton.js +2 -2
  20. package/dist/LinkButton/LinkButton.cjs +3 -3
  21. package/dist/LinkButton/LinkButton.js +2 -2
  22. package/dist/Modal/Modal.cjs +4 -4
  23. package/dist/Modal/Modal.js +3 -3
  24. package/dist/Popover/Popover.cjs +5 -5
  25. package/dist/Popover/Popover.js +4 -4
  26. package/dist/RadioButton/RadioButton.d.ts +1 -1
  27. package/dist/RichSelect/RichSelectBox.cjs +4 -4
  28. package/dist/RichSelect/RichSelectBox.d.ts +1 -1
  29. package/dist/RichSelect/RichSelectBox.js +3 -3
  30. package/dist/RichSelect/RichSelectList.cjs +9 -9
  31. package/dist/RichSelect/RichSelectList.d.ts +1 -1
  32. package/dist/RichSelect/RichSelectList.js +8 -8
  33. package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
  34. package/dist/SelectList/SelectList.cjs +3 -3
  35. package/dist/SelectList/SelectList.js +2 -2
  36. package/dist/TapArea/TapArea.d.ts +1 -1
  37. package/dist/Typography/Typography.d.ts +3 -3
  38. package/dist/WordConfetti/WordConfetti.cjs +2 -2
  39. package/dist/WordConfetti/WordConfetti.js +1 -1
  40. package/dist/__chunks/{GQIVAGZ2.js → 22TVX5F4.js} +2 -2
  41. package/dist/__chunks/{TTUGZZPV.cjs → 4UT6BROB.cjs} +6 -6
  42. package/dist/__chunks/{YGFJ2STL.cjs → 5ITNEIMC.cjs} +32 -27
  43. package/dist/__chunks/5ITNEIMC.cjs.map +1 -0
  44. package/dist/__chunks/{OPDVLDRQ.js → 5R4TON7U.js} +33 -28
  45. package/dist/__chunks/5R4TON7U.js.map +1 -0
  46. package/dist/__chunks/{64WM4STC.js → 6TM2ES2T.js} +3 -3
  47. package/dist/__chunks/{64WM4STC.js.map → 6TM2ES2T.js.map} +1 -1
  48. package/dist/__chunks/{FF5D2AVT.cjs → 7VI7DO7P.cjs} +1 -1
  49. package/dist/__chunks/{FF5D2AVT.cjs.map → 7VI7DO7P.cjs.map} +1 -1
  50. package/dist/__chunks/{6FA2AYTD.cjs → AFOQ6JVB.cjs} +4 -4
  51. package/dist/__chunks/{67PPAFHW.cjs → AHM6QK6U.cjs} +3 -3
  52. package/dist/__chunks/{44EISWI2.cjs → BVNFNAUO.cjs} +6 -6
  53. package/dist/__chunks/{5J43UL2N.js → DZNR7V5P.js} +2 -2
  54. package/dist/__chunks/{JVLEQ5LB.js → FJXL3BLK.js} +2 -2
  55. package/dist/__chunks/{IBT4YOI5.cjs → HRTHCEIF.cjs} +1 -1
  56. package/dist/__chunks/{IBT4YOI5.cjs.map → HRTHCEIF.cjs.map} +1 -1
  57. package/dist/__chunks/{EP7RK5MC.cjs → IFPLOCSV.cjs} +5 -5
  58. package/dist/__chunks/{34KWYODX.cjs → IJHKE2Y3.cjs} +3 -3
  59. package/dist/__chunks/{IKOJX6EH.js → IUMHK3GF.js} +2 -2
  60. package/dist/__chunks/{CN7ZX34L.js → JGDLN47H.js} +1 -1
  61. package/dist/__chunks/{CN7ZX34L.js.map → JGDLN47H.js.map} +1 -1
  62. package/dist/__chunks/{VJWLFFAD.cjs → KFNK5PLG.cjs} +4 -4
  63. package/dist/__chunks/{RUXLZWRZ.cjs → R7BL4JYZ.cjs} +4 -4
  64. package/dist/__chunks/{Z74J5XCF.js → RB35TGSP.js} +2 -2
  65. package/dist/__chunks/{P3YRUAAE.cjs → RHJARLXB.cjs} +3 -3
  66. package/dist/__chunks/{MOUGFIY7.js → RJS7BKZD.js} +2 -2
  67. package/dist/__chunks/{E4PTHQYC.cjs → RZSHTFXZ.cjs} +12 -12
  68. package/dist/__chunks/{WPQECZRJ.js → SIKGAUYF.js} +1 -1
  69. package/dist/__chunks/{WPQECZRJ.js.map → SIKGAUYF.js.map} +1 -1
  70. package/dist/__chunks/{GDXRRA57.js → SZTZ3IZ5.js} +2 -2
  71. package/dist/__chunks/{65BTPZZT.cjs → UEY7FXLX.cjs} +3 -3
  72. package/dist/__chunks/{65BTPZZT.cjs.map → UEY7FXLX.cjs.map} +1 -1
  73. package/dist/__chunks/{YN2ORRKZ.js → VZUFYOET.js} +2 -2
  74. package/dist/__chunks/{VC6ETUE2.js → WCHW3AYL.js} +2 -2
  75. package/dist/__chunks/{YISFHYJW.js → WIKMZ7QF.js} +4 -4
  76. package/dist/index.cjs +15 -15
  77. package/dist/index.js +14 -14
  78. package/package.json +1 -1
  79. package/dist/__chunks/OPDVLDRQ.js.map +0 -1
  80. package/dist/__chunks/YGFJ2STL.cjs.map +0 -1
  81. /package/dist/__chunks/{GQIVAGZ2.js.map → 22TVX5F4.js.map} +0 -0
  82. /package/dist/__chunks/{TTUGZZPV.cjs.map → 4UT6BROB.cjs.map} +0 -0
  83. /package/dist/__chunks/{6FA2AYTD.cjs.map → AFOQ6JVB.cjs.map} +0 -0
  84. /package/dist/__chunks/{67PPAFHW.cjs.map → AHM6QK6U.cjs.map} +0 -0
  85. /package/dist/__chunks/{44EISWI2.cjs.map → BVNFNAUO.cjs.map} +0 -0
  86. /package/dist/__chunks/{5J43UL2N.js.map → DZNR7V5P.js.map} +0 -0
  87. /package/dist/__chunks/{JVLEQ5LB.js.map → FJXL3BLK.js.map} +0 -0
  88. /package/dist/__chunks/{EP7RK5MC.cjs.map → IFPLOCSV.cjs.map} +0 -0
  89. /package/dist/__chunks/{34KWYODX.cjs.map → IJHKE2Y3.cjs.map} +0 -0
  90. /package/dist/__chunks/{IKOJX6EH.js.map → IUMHK3GF.js.map} +0 -0
  91. /package/dist/__chunks/{VJWLFFAD.cjs.map → KFNK5PLG.cjs.map} +0 -0
  92. /package/dist/__chunks/{RUXLZWRZ.cjs.map → R7BL4JYZ.cjs.map} +0 -0
  93. /package/dist/__chunks/{Z74J5XCF.js.map → RB35TGSP.js.map} +0 -0
  94. /package/dist/__chunks/{P3YRUAAE.cjs.map → RHJARLXB.cjs.map} +0 -0
  95. /package/dist/__chunks/{MOUGFIY7.js.map → RJS7BKZD.js.map} +0 -0
  96. /package/dist/__chunks/{E4PTHQYC.cjs.map → RZSHTFXZ.cjs.map} +0 -0
  97. /package/dist/__chunks/{GDXRRA57.js.map → SZTZ3IZ5.js.map} +0 -0
  98. /package/dist/__chunks/{YN2ORRKZ.js.map → VZUFYOET.js.map} +0 -0
  99. /package/dist/__chunks/{VC6ETUE2.js.map → WCHW3AYL.js.map} +0 -0
  100. /package/dist/__chunks/{YISFHYJW.js.map → WIKMZ7QF.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  WordConfetti_default
4
- } from "../__chunks/OPDVLDRQ.js";
4
+ } from "../__chunks/5R4TON7U.js";
5
5
  import "../__chunks/IB6JZQF3.js";
6
6
  import "../__chunks/4U4UW4AK.js";
7
7
  import "../__chunks/4U4UW4AK.js";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  internalIconSize,
13
13
  materialIconSize
14
- } from "./64WM4STC.js";
14
+ } from "./6TM2ES2T.js";
15
15
  import {
16
16
  foregroundColor
17
17
  } from "./JCQUY624.js";
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
138
138
  export {
139
139
  LinkButton_default
140
140
  };
141
- //# sourceMappingURL=GQIVAGZ2.js.map
141
+ //# sourceMappingURL=22TVX5F4.js.map
@@ -11,7 +11,7 @@ var _3P2PWHOUcjs = require('./3P2PWHOU.cjs');
11
11
 
12
12
 
13
13
 
14
- var _65BTPZZTcjs = require('./65BTPZZT.cjs');
14
+ var _UEY7FXLXcjs = require('./UEY7FXLX.cjs');
15
15
 
16
16
 
17
17
  var _RXQBNEFRcjs = require('./RXQBNEFR.cjs');
@@ -83,10 +83,10 @@ var LinkButton = _react.forwardRef.call(void 0,
83
83
  {
84
84
  className: _classnames2.default.call(void 0,
85
85
  _TH4TA3JNcjs.Button_module_default.icon,
86
- _65BTPZZTcjs.materialIconSize[size],
86
+ _UEY7FXLXcjs.materialIconSize[size],
87
87
  foregroundColorClass
88
88
  ),
89
- size: _65BTPZZTcjs.internalIconSize[size]
89
+ size: _UEY7FXLXcjs.internalIconSize[size]
90
90
  }
91
91
  ),
92
92
  !loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4TYOP5XMcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -101,10 +101,10 @@ var LinkButton = _react.forwardRef.call(void 0,
101
101
  {
102
102
  className: _classnames2.default.call(void 0,
103
103
  _TH4TA3JNcjs.Button_module_default.icon,
104
- _65BTPZZTcjs.materialIconSize[size],
104
+ _UEY7FXLXcjs.materialIconSize[size],
105
105
  foregroundColorClass
106
106
  ),
107
- size: _65BTPZZTcjs.internalIconSize[size]
107
+ size: _UEY7FXLXcjs.internalIconSize[size]
108
108
  }
109
109
  ),
110
110
  loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
138
138
 
139
139
 
140
140
  exports.LinkButton_default = LinkButton_default;
141
- //# sourceMappingURL=TTUGZZPV.cjs.map
141
+ //# sourceMappingURL=4UT6BROB.cjs.map
@@ -14,7 +14,7 @@ var themeBackgroundColors = {
14
14
  cool: ["sky", "slate", "teal"],
15
15
  warm: ["red", "tan", "orange"]
16
16
  };
17
- var degreeOfTiltOptions = [-6, -6, -3, -3, 0, 3, 3, 6, 6];
17
+ var degreeOfTiltOptions = [-6, -3, 0, 3, 6];
18
18
  var paddings = {
19
19
  300: "16px 20px 16px 20px",
20
20
  400: "20px 24px 20px 24px",
@@ -31,15 +31,30 @@ var gaps = {
31
31
  900: 9,
32
32
  1100: 10
33
33
  };
34
+ var hashWord = (string) => {
35
+ let hash = 0;
36
+ if (string.length === 0)
37
+ return hash;
38
+ for (let i = 0; i < string.length; i++) {
39
+ const char = string.charCodeAt(i);
40
+ hash = (hash << 5) - hash + char;
41
+ hash |= 0;
42
+ }
43
+ return Math.abs(hash);
44
+ };
34
45
  var WordConfetto = ({
35
- backgroundColor,
36
- rotation,
46
+ "data-testid": dataTestId,
37
47
  size,
38
- text
48
+ text,
49
+ theme
39
50
  }) => {
51
+ const hash = hashWord(text);
52
+ const backgroundColor = themeBackgroundColors[theme][hash % Object.values(themeBackgroundColors[theme]).length];
53
+ const rotation = degreeOfTiltOptions[hash % degreeOfTiltOptions.length];
40
54
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
41
55
  _QODNNCT2cjs.Box_default,
42
56
  {
57
+ "data-testid": dataTestId,
43
58
  backgroundColor,
44
59
  dangerouslySetInlineStyle: {
45
60
  __style: {
@@ -61,14 +76,6 @@ var WordConfetti = _react.forwardRef.call(void 0,
61
76
  theme,
62
77
  words
63
78
  } = props;
64
- const styledWords = _react.useMemo.call(void 0,
65
- () => words.map((word) => ({
66
- text: word,
67
- backgroundColor: themeBackgroundColors[theme][Math.floor(Math.random() * 3)],
68
- rotation: degreeOfTiltOptions[Math.floor(Math.random() * 9)]
69
- })),
70
- [theme, words]
71
- );
72
79
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
73
80
  _QODNNCT2cjs.Box_default,
74
81
  {
@@ -78,20 +85,18 @@ var WordConfetti = _react.forwardRef.call(void 0,
78
85
  "data-testid": dataTestId,
79
86
  ref,
80
87
  gap: gaps[size],
81
- children: styledWords.map(
82
- ({ text, backgroundColor, rotation }, index) => {
83
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
84
- WordConfetto,
85
- {
86
- backgroundColor,
87
- rotation,
88
- size,
89
- text
90
- },
91
- `${text}+${index}`
92
- );
93
- }
94
- )
88
+ children: words.map((word, index) => {
89
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
90
+ WordConfetto,
91
+ {
92
+ "data-testid": dataTestId ? `${dataTestId}-${index}` : void 0,
93
+ size,
94
+ text: word,
95
+ theme
96
+ },
97
+ `${word}${index}`
98
+ );
99
+ })
95
100
  }
96
101
  );
97
102
  }
@@ -101,4 +106,4 @@ var WordConfetti_default = WordConfetti;
101
106
 
102
107
 
103
108
  exports.WordConfetti_default = WordConfetti_default;
104
- //# sourceMappingURL=YGFJ2STL.cjs.map
109
+ //# sourceMappingURL=5ITNEIMC.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/WordConfetti/WordConfetti.tsx"],"names":["WordConfetti"],"mappings":";;;;;;;;;AAAA,SAAyB,kBAAqC;AAuExD;AAnEN,IAAM,wBAAwB;AAAA,EAC5B,SAAS,CAAC,QAAQ,SAAS,SAAS;AAAA,EACpC,MAAM,CAAC,OAAO,SAAS,MAAM;AAAA,EAC7B,MAAM,CAAC,OAAO,OAAO,QAAQ;AAC/B;AAEA,IAAM,sBAAsB,CAAC,IAAI,IAAI,GAAG,GAAG,CAAC;AAE5C,IAAM,WAAW;AAAA,EACf,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AACR;AAEA,IAAM,OAAO;AAAA,EACX,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AACR;AAEA,IAAM,WAAW,CAAC,WAA2B;AAC3C,MAAI,OAAO;AACX,MAAI,OAAO,WAAW;AAAG,WAAO;AAChC,WAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,UAAM,OAAO,OAAO,WAAW,CAAC;AAChC,YAAQ,QAAQ,KAAK,OAAO;AAC5B,YAAQ;AAAA,EACV;AACA,SAAO,KAAK,IAAI,IAAI;AACtB;AAEA,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AACF,MAKoB;AAClB,QAAM,OAAO,SAAS,IAAI;AAC1B,QAAM,kBACJ,sBAAsB,KAAK,EACzB,OAAO,OAAO,OAAO,sBAAsB,KAAK,CAAC,EAAE,MACrD;AACF,QAAM,WAAW,oBAAoB,OAAO,oBAAoB,MAAM;AAEtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb;AAAA,MACA,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,SAAS,SAAS,IAAI;AAAA,UACtB,WAAW,UAAU;AAAA,QACvB;AAAA,MACF;AAAA,MACA,OAAM;AAAA,MAEN,8BAAC,sBAAW,MAAY,QAAO,QAAO,WAAU,SAC7C,gBACH;AAAA;AAAA,EACF;AAEJ;AA8BA,IAAM,eAAe;AAAA,EACnB,SAASA,cAAa,OAA0B,KAAkB;AAChE,UAAM;AAAA,MACJ,eAAe;AAAA,MACf,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR;AAAA,QACA,UAAS;AAAA,QACT,eAAa;AAAA,QACb;AAAA,QACA,KAAK,KAAK,IAAI;AAAA,QAEb,gBAAM,IAAI,CAAC,MAAM,UAAqB;AACrC,iBACE;AAAA,YAAC;AAAA;AAAA,cACC,eAAa,aAAa,GAAG,cAAc,UAAU;AAAA,cAErD;AAAA,cACA,MAAM;AAAA,cACN;AAAA;AAAA,YAHK,GAAG,OAAO;AAAA,UAIjB;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,uBAAQ","sourcesContent":["import { type ReactNode, forwardRef, type ReactElement } from \"react\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\n\nconst themeBackgroundColors = {\n neutral: [\"pink\", \"lilac\", \"thistle\"],\n cool: [\"sky\", \"slate\", \"teal\"],\n warm: [\"red\", \"tan\", \"orange\"],\n} as const;\n\nconst degreeOfTiltOptions = [-6, -3, 0, 3, 6] as const;\n\nconst paddings = {\n 300: \"16px 20px 16px 20px\",\n 400: \"20px 24px 20px 24px\",\n 700: \"24px 28px 24px 28px\",\n 800: \"28px 40px 28px 40px\",\n 900: \"32px 48px 32px 48px\",\n 1100: \"36px 56px 36px 56px\",\n};\n\nconst gaps = {\n 300: 3,\n 400: 4,\n 700: 6,\n 800: 6,\n 900: 9,\n 1100: 10,\n} as const;\n\nconst hashWord = (string: string): number => {\n let hash = 0;\n if (string.length === 0) return hash;\n for (let i = 0; i < string.length; i++) {\n const char = string.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash |= 0; // Convert to 32bit integer\n }\n return Math.abs(hash);\n};\n\nconst WordConfetto = ({\n \"data-testid\": dataTestId,\n size,\n text,\n theme,\n}: {\n \"data-testid\"?: string;\n size: 300 | 400 | 700 | 800 | 900 | 1100;\n text: string;\n theme: \"neutral\" | \"cool\" | \"warm\";\n}): ReactElement => {\n const hash = hashWord(text);\n const backgroundColor =\n themeBackgroundColors[theme][\n hash % Object.values(themeBackgroundColors[theme]).length\n ];\n const rotation = degreeOfTiltOptions[hash % degreeOfTiltOptions.length];\n\n return (\n <Box\n data-testid={dataTestId}\n backgroundColor={backgroundColor}\n dangerouslySetInlineStyle={{\n __style: {\n padding: paddings[size],\n transform: `rotate(${rotation}deg)`,\n },\n }}\n width=\"fit-content\"\n >\n <Typography size={size} weight=\"bold\" fontStyle=\"serif\">\n {text}\n </Typography>\n </Box>\n );\n};\n\ntype Direction = \"row\" | \"column\";\ntype WordConfettiProps = {\n /**\n * Test id for the confetti\n */\n \"data-testid\"?: string;\n /**\n * The direction to display the words.\n * @defaultValue row\n */\n direction?: Direction;\n /**\n * The size of the font in the confetti.\n */\n size: 300 | 400 | 700 | 800 | 900 | 1100;\n /**\n * The theme for the background colors of the confetti.\n */\n theme: \"neutral\" | \"cool\" | \"warm\";\n /**\n * The words to display as confetti.\n */\n words: string[];\n};\n\n/**\n * [WordConfetti](https://cambly-syntax.vercel.app/?path=/docs/components-wordconfetti--docs) is a container for displaying words in different color themes and fun offset angles.\n */\nconst WordConfetti = forwardRef<HTMLDivElement, WordConfettiProps>(\n function WordConfetti(props: WordConfettiProps, ref): JSX.Element {\n const {\n \"data-testid\": dataTestId,\n direction = \"row\",\n size,\n theme,\n words,\n } = props;\n\n return (\n <Box\n display=\"flex\"\n direction={direction}\n flexWrap=\"wrap\"\n data-testid={dataTestId}\n ref={ref}\n gap={gaps[size]}\n >\n {words.map((word, index): ReactNode => {\n return (\n <WordConfetto\n data-testid={dataTestId ? `${dataTestId}-${index}` : undefined}\n key={`${word}${index}`}\n size={size}\n text={word}\n theme={theme}\n />\n );\n })}\n </Box>\n );\n },\n);\n\nexport default WordConfetti;\n"]}
@@ -7,14 +7,14 @@ import {
7
7
  } from "./RVPSNO77.js";
8
8
 
9
9
  // src/WordConfetti/WordConfetti.tsx
10
- import { forwardRef, useMemo } from "react";
10
+ import { forwardRef } from "react";
11
11
  import { jsx } from "react/jsx-runtime";
12
12
  var themeBackgroundColors = {
13
13
  neutral: ["pink", "lilac", "thistle"],
14
14
  cool: ["sky", "slate", "teal"],
15
15
  warm: ["red", "tan", "orange"]
16
16
  };
17
- var degreeOfTiltOptions = [-6, -6, -3, -3, 0, 3, 3, 6, 6];
17
+ var degreeOfTiltOptions = [-6, -3, 0, 3, 6];
18
18
  var paddings = {
19
19
  300: "16px 20px 16px 20px",
20
20
  400: "20px 24px 20px 24px",
@@ -31,15 +31,30 @@ var gaps = {
31
31
  900: 9,
32
32
  1100: 10
33
33
  };
34
+ var hashWord = (string) => {
35
+ let hash = 0;
36
+ if (string.length === 0)
37
+ return hash;
38
+ for (let i = 0; i < string.length; i++) {
39
+ const char = string.charCodeAt(i);
40
+ hash = (hash << 5) - hash + char;
41
+ hash |= 0;
42
+ }
43
+ return Math.abs(hash);
44
+ };
34
45
  var WordConfetto = ({
35
- backgroundColor,
36
- rotation,
46
+ "data-testid": dataTestId,
37
47
  size,
38
- text
48
+ text,
49
+ theme
39
50
  }) => {
51
+ const hash = hashWord(text);
52
+ const backgroundColor = themeBackgroundColors[theme][hash % Object.values(themeBackgroundColors[theme]).length];
53
+ const rotation = degreeOfTiltOptions[hash % degreeOfTiltOptions.length];
40
54
  return /* @__PURE__ */ jsx(
41
55
  Box_default,
42
56
  {
57
+ "data-testid": dataTestId,
43
58
  backgroundColor,
44
59
  dangerouslySetInlineStyle: {
45
60
  __style: {
@@ -61,14 +76,6 @@ var WordConfetti = forwardRef(
61
76
  theme,
62
77
  words
63
78
  } = props;
64
- const styledWords = useMemo(
65
- () => words.map((word) => ({
66
- text: word,
67
- backgroundColor: themeBackgroundColors[theme][Math.floor(Math.random() * 3)],
68
- rotation: degreeOfTiltOptions[Math.floor(Math.random() * 9)]
69
- })),
70
- [theme, words]
71
- );
72
79
  return /* @__PURE__ */ jsx(
73
80
  Box_default,
74
81
  {
@@ -78,20 +85,18 @@ var WordConfetti = forwardRef(
78
85
  "data-testid": dataTestId,
79
86
  ref,
80
87
  gap: gaps[size],
81
- children: styledWords.map(
82
- ({ text, backgroundColor, rotation }, index) => {
83
- return /* @__PURE__ */ jsx(
84
- WordConfetto,
85
- {
86
- backgroundColor,
87
- rotation,
88
- size,
89
- text
90
- },
91
- `${text}+${index}`
92
- );
93
- }
94
- )
88
+ children: words.map((word, index) => {
89
+ return /* @__PURE__ */ jsx(
90
+ WordConfetto,
91
+ {
92
+ "data-testid": dataTestId ? `${dataTestId}-${index}` : void 0,
93
+ size,
94
+ text: word,
95
+ theme
96
+ },
97
+ `${word}${index}`
98
+ );
99
+ })
95
100
  }
96
101
  );
97
102
  }
@@ -101,4 +106,4 @@ var WordConfetti_default = WordConfetti;
101
106
  export {
102
107
  WordConfetti_default
103
108
  };
104
- //# sourceMappingURL=OPDVLDRQ.js.map
109
+ //# sourceMappingURL=5R4TON7U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/WordConfetti/WordConfetti.tsx"],"sourcesContent":["import { type ReactNode, forwardRef, type ReactElement } from \"react\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\n\nconst themeBackgroundColors = {\n neutral: [\"pink\", \"lilac\", \"thistle\"],\n cool: [\"sky\", \"slate\", \"teal\"],\n warm: [\"red\", \"tan\", \"orange\"],\n} as const;\n\nconst degreeOfTiltOptions = [-6, -3, 0, 3, 6] as const;\n\nconst paddings = {\n 300: \"16px 20px 16px 20px\",\n 400: \"20px 24px 20px 24px\",\n 700: \"24px 28px 24px 28px\",\n 800: \"28px 40px 28px 40px\",\n 900: \"32px 48px 32px 48px\",\n 1100: \"36px 56px 36px 56px\",\n};\n\nconst gaps = {\n 300: 3,\n 400: 4,\n 700: 6,\n 800: 6,\n 900: 9,\n 1100: 10,\n} as const;\n\nconst hashWord = (string: string): number => {\n let hash = 0;\n if (string.length === 0) return hash;\n for (let i = 0; i < string.length; i++) {\n const char = string.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash |= 0; // Convert to 32bit integer\n }\n return Math.abs(hash);\n};\n\nconst WordConfetto = ({\n \"data-testid\": dataTestId,\n size,\n text,\n theme,\n}: {\n \"data-testid\"?: string;\n size: 300 | 400 | 700 | 800 | 900 | 1100;\n text: string;\n theme: \"neutral\" | \"cool\" | \"warm\";\n}): ReactElement => {\n const hash = hashWord(text);\n const backgroundColor =\n themeBackgroundColors[theme][\n hash % Object.values(themeBackgroundColors[theme]).length\n ];\n const rotation = degreeOfTiltOptions[hash % degreeOfTiltOptions.length];\n\n return (\n <Box\n data-testid={dataTestId}\n backgroundColor={backgroundColor}\n dangerouslySetInlineStyle={{\n __style: {\n padding: paddings[size],\n transform: `rotate(${rotation}deg)`,\n },\n }}\n width=\"fit-content\"\n >\n <Typography size={size} weight=\"bold\" fontStyle=\"serif\">\n {text}\n </Typography>\n </Box>\n );\n};\n\ntype Direction = \"row\" | \"column\";\ntype WordConfettiProps = {\n /**\n * Test id for the confetti\n */\n \"data-testid\"?: string;\n /**\n * The direction to display the words.\n * @defaultValue row\n */\n direction?: Direction;\n /**\n * The size of the font in the confetti.\n */\n size: 300 | 400 | 700 | 800 | 900 | 1100;\n /**\n * The theme for the background colors of the confetti.\n */\n theme: \"neutral\" | \"cool\" | \"warm\";\n /**\n * The words to display as confetti.\n */\n words: string[];\n};\n\n/**\n * [WordConfetti](https://cambly-syntax.vercel.app/?path=/docs/components-wordconfetti--docs) is a container for displaying words in different color themes and fun offset angles.\n */\nconst WordConfetti = forwardRef<HTMLDivElement, WordConfettiProps>(\n function WordConfetti(props: WordConfettiProps, ref): JSX.Element {\n const {\n \"data-testid\": dataTestId,\n direction = \"row\",\n size,\n theme,\n words,\n } = props;\n\n return (\n <Box\n display=\"flex\"\n direction={direction}\n flexWrap=\"wrap\"\n data-testid={dataTestId}\n ref={ref}\n gap={gaps[size]}\n >\n {words.map((word, index): ReactNode => {\n return (\n <WordConfetto\n data-testid={dataTestId ? `${dataTestId}-${index}` : undefined}\n key={`${word}${index}`}\n size={size}\n text={word}\n theme={theme}\n />\n );\n })}\n </Box>\n );\n },\n);\n\nexport default WordConfetti;\n"],"mappings":";;;;;;;;;AAAA,SAAyB,kBAAqC;AAuExD;AAnEN,IAAM,wBAAwB;AAAA,EAC5B,SAAS,CAAC,QAAQ,SAAS,SAAS;AAAA,EACpC,MAAM,CAAC,OAAO,SAAS,MAAM;AAAA,EAC7B,MAAM,CAAC,OAAO,OAAO,QAAQ;AAC/B;AAEA,IAAM,sBAAsB,CAAC,IAAI,IAAI,GAAG,GAAG,CAAC;AAE5C,IAAM,WAAW;AAAA,EACf,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AACR;AAEA,IAAM,OAAO;AAAA,EACX,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AACR;AAEA,IAAM,WAAW,CAAC,WAA2B;AAC3C,MAAI,OAAO;AACX,MAAI,OAAO,WAAW;AAAG,WAAO;AAChC,WAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,UAAM,OAAO,OAAO,WAAW,CAAC;AAChC,YAAQ,QAAQ,KAAK,OAAO;AAC5B,YAAQ;AAAA,EACV;AACA,SAAO,KAAK,IAAI,IAAI;AACtB;AAEA,IAAM,eAAe,CAAC;AAAA,EACpB,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AACF,MAKoB;AAClB,QAAM,OAAO,SAAS,IAAI;AAC1B,QAAM,kBACJ,sBAAsB,KAAK,EACzB,OAAO,OAAO,OAAO,sBAAsB,KAAK,CAAC,EAAE,MACrD;AACF,QAAM,WAAW,oBAAoB,OAAO,oBAAoB,MAAM;AAEtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb;AAAA,MACA,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,SAAS,SAAS,IAAI;AAAA,UACtB,WAAW,UAAU;AAAA,QACvB;AAAA,MACF;AAAA,MACA,OAAM;AAAA,MAEN,8BAAC,sBAAW,MAAY,QAAO,QAAO,WAAU,SAC7C,gBACH;AAAA;AAAA,EACF;AAEJ;AA8BA,IAAM,eAAe;AAAA,EACnB,SAASA,cAAa,OAA0B,KAAkB;AAChE,UAAM;AAAA,MACJ,eAAe;AAAA,MACf,YAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR;AAAA,QACA,UAAS;AAAA,QACT,eAAa;AAAA,QACb;AAAA,QACA,KAAK,KAAK,IAAI;AAAA,QAEb,gBAAM,IAAI,CAAC,MAAM,UAAqB;AACrC,iBACE;AAAA,YAAC;AAAA;AAAA,cACC,eAAa,aAAa,GAAG,cAAc,UAAU;AAAA,cAErD;AAAA,cACA,MAAM;AAAA,cACN;AAAA;AAAA,YAHK,GAAG,OAAO;AAAA,UAIjB;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,uBAAQ;","names":["WordConfetti"]}
@@ -11,12 +11,12 @@ var materialIconSize = {
11
11
  };
12
12
  var internalIconSize = {
13
13
  sm: 100,
14
- md: 200,
15
- lg: 300
14
+ md: 300,
15
+ lg: 400
16
16
  };
17
17
 
18
18
  export {
19
19
  materialIconSize,
20
20
  internalIconSize
21
21
  };
22
- //# sourceMappingURL=64WM4STC.js.map
22
+ //# sourceMappingURL=6TM2ES2T.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_v2jgj_1\",\"buttonGap\":\"_buttonGap_v2jgj_8\",\"disabled\":\"_disabled_v2jgj_42\",\"disabledPrimary\":\"_disabledPrimary_v2jgj_57\",\"fullWidth\":\"_fullWidth_v2jgj_61\",\"sm\":\"_sm_v2jgj_65\",\"md\":\"_md_v2jgj_72\",\"lg\":\"_lg_v2jgj_79\",\"icon\":\"_icon_v2jgj_86\",\"smIcon\":\"_smIcon_v2jgj_90\",\"mdIcon\":\"_mdIcon_v2jgj_97\",\"lgIcon\":\"_lgIcon_v2jgj_104\",\"loading\":\"_loading_v2jgj_121\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_v2jgj_1\",\"loadingCircle\":\"_loadingCircle_v2jgj_125\"}","import styles from \"../Button.module.css\";\n\nexport const materialIconSize = {\n sm: styles.smIcon,\n md: styles.mdIcon,\n lg: styles.lgIcon,\n};\n\nexport const internalIconSize = {\n sm: 100,\n md: 200,\n lg: 300,\n} as const;\n"],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,qBAAoB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACEpkB,IAAM,mBAAmB;AAAA,EAC9B,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEO,IAAM,mBAAmB;AAAA,EAC9B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;","names":[]}
1
+ {"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_v2jgj_1\",\"buttonGap\":\"_buttonGap_v2jgj_8\",\"disabled\":\"_disabled_v2jgj_42\",\"disabledPrimary\":\"_disabledPrimary_v2jgj_57\",\"fullWidth\":\"_fullWidth_v2jgj_61\",\"sm\":\"_sm_v2jgj_65\",\"md\":\"_md_v2jgj_72\",\"lg\":\"_lg_v2jgj_79\",\"icon\":\"_icon_v2jgj_86\",\"smIcon\":\"_smIcon_v2jgj_90\",\"mdIcon\":\"_mdIcon_v2jgj_97\",\"lgIcon\":\"_lgIcon_v2jgj_104\",\"loading\":\"_loading_v2jgj_121\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_v2jgj_1\",\"loadingCircle\":\"_loadingCircle_v2jgj_125\"}","import styles from \"../Button.module.css\";\n\nexport const materialIconSize = {\n sm: styles.smIcon,\n md: styles.mdIcon,\n lg: styles.lgIcon,\n};\n\nexport const internalIconSize = {\n sm: 100,\n md: 300,\n lg: 400,\n} as const;\n"],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,qBAAoB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACEpkB,IAAM,mBAAmB;AAAA,EAC9B,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEO,IAAM,mBAAmB;AAAA,EAC9B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;","names":[]}
@@ -10,4 +10,4 @@ var ColorCambioWhite100 = "#ffffff";
10
10
 
11
11
 
12
12
  exports.ColorBaseDestructive700 = ColorBaseDestructive700; exports.ColorBaseGray700 = ColorBaseGray700; exports.ColorCambioWhite100 = ColorCambioWhite100;
13
- //# sourceMappingURL=FF5D2AVT.cjs.map
13
+ //# sourceMappingURL=7VI7DO7P.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 23 Sep 2024 23:54:48 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"]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Tue, 01 Oct 2024 21:18:21 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"]}
@@ -4,7 +4,7 @@
4
4
  var _6KSVCCCBcjs = require('./6KSVCCCB.cjs');
5
5
 
6
6
 
7
- var _44EISWI2cjs = require('./44EISWI2.cjs');
7
+ var _BVNFNAUOcjs = require('./BVNFNAUO.cjs');
8
8
 
9
9
 
10
10
  var _A3B4YKGNcjs = require('./A3B4YKGN.cjs');
@@ -169,7 +169,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
169
169
  justifyContent: "end",
170
170
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _6KSVCCCBcjs.ButtonGroup_default, { orientation: "horizontal", children: [
171
171
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
172
- _44EISWI2cjs.Button_default,
172
+ _BVNFNAUOcjs.Button_default,
173
173
  {
174
174
  onClick: clearChanges,
175
175
  color: "secondary",
@@ -179,7 +179,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
179
179
  }
180
180
  ),
181
181
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
182
- _44EISWI2cjs.Button_default,
182
+ _BVNFNAUOcjs.Button_default,
183
183
  {
184
184
  onClick: saveChanges,
185
185
  text: primaryButtonText,
@@ -208,4 +208,4 @@ var RichSelectBox_default = Object.assign(RichSelectBox, {
208
208
 
209
209
 
210
210
  exports.convertSelection = convertSelection; exports.RichSelectBoxContext = RichSelectBoxContext; exports.RichSelectBox_default = RichSelectBox_default;
211
- //# sourceMappingURL=6FA2AYTD.cjs.map
211
+ //# sourceMappingURL=AFOQ6JVB.cjs.map
@@ -13,7 +13,7 @@ var _7KH536I2cjs = require('./7KH536I2.cjs');
13
13
  var _THM3NAFOcjs = require('./THM3NAFO.cjs');
14
14
 
15
15
 
16
- var _VJWLFFADcjs = require('./VJWLFFAD.cjs');
16
+ var _KFNK5PLGcjs = require('./KFNK5PLG.cjs');
17
17
 
18
18
 
19
19
  var _QODNNCT2cjs = require('./QODNNCT2.cjs');
@@ -79,7 +79,7 @@ function Modal({
79
79
  __style: { top: 4, right: 4 }
80
80
  },
81
81
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
82
- _VJWLFFADcjs.IconButton_default,
82
+ _KFNK5PLGcjs.IconButton_default,
83
83
  {
84
84
  accessibilityLabel: accessibilityCloseLabel,
85
85
  color: image ? "primary" : "tertiary",
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
130
130
 
131
131
 
132
132
  exports.Modal = Modal;
133
- //# sourceMappingURL=67PPAFHW.cjs.map
133
+ //# sourceMappingURL=AHM6QK6U.cjs.map
@@ -8,7 +8,7 @@ var _3P2PWHOUcjs = require('./3P2PWHOU.cjs');
8
8
 
9
9
 
10
10
 
11
- var _65BTPZZTcjs = require('./65BTPZZT.cjs');
11
+ var _UEY7FXLXcjs = require('./UEY7FXLX.cjs');
12
12
 
13
13
 
14
14
  var _RXQBNEFRcjs = require('./RXQBNEFR.cjs');
@@ -88,10 +88,10 @@ var Button = _react.forwardRef.call(void 0,
88
88
  {
89
89
  className: _classnames2.default.call(void 0,
90
90
  Button_module_default.icon,
91
- _65BTPZZTcjs.materialIconSize[size],
91
+ _UEY7FXLXcjs.materialIconSize[size],
92
92
  disabledPrimary && Button_module_default.disabledPrimary
93
93
  ),
94
- size: _65BTPZZTcjs.internalIconSize[size]
94
+ size: _UEY7FXLXcjs.internalIconSize[size]
95
95
  }
96
96
  ),
97
97
  (loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _QODNNCT2cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _4TYOP5XMcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -109,10 +109,10 @@ var Button = _react.forwardRef.call(void 0,
109
109
  {
110
110
  className: _classnames2.default.call(void 0,
111
111
  Button_module_default.icon,
112
- _65BTPZZTcjs.materialIconSize[size],
112
+ _UEY7FXLXcjs.materialIconSize[size],
113
113
  disabledPrimary && Button_module_default.disabledPrimary
114
114
  ),
115
- size: _65BTPZZTcjs.internalIconSize[size]
115
+ size: _UEY7FXLXcjs.internalIconSize[size]
116
116
  }
117
117
  ),
118
118
  loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -146,4 +146,4 @@ var Button_default = Button;
146
146
 
147
147
 
148
148
  exports.Button_default = Button_default;
149
- //# sourceMappingURL=44EISWI2.cjs.map
149
+ //# sourceMappingURL=BVNFNAUO.cjs.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  internalIconSize,
10
10
  materialIconSize
11
- } from "./64WM4STC.js";
11
+ } from "./6TM2ES2T.js";
12
12
  import {
13
13
  foregroundColor
14
14
  } from "./JCQUY624.js";
@@ -146,4 +146,4 @@ var Button_default = Button;
146
146
  export {
147
147
  Button_default
148
148
  };
149
- //# sourceMappingURL=5J43UL2N.js.map
149
+ //# sourceMappingURL=DZNR7V5P.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  internalIconSize,
7
7
  materialIconSize
8
- } from "./64WM4STC.js";
8
+ } from "./6TM2ES2T.js";
9
9
  import {
10
10
  foregroundColor
11
11
  } from "./JCQUY624.js";
@@ -80,4 +80,4 @@ var IconLinkButton_default = IconLinkButton;
80
80
  export {
81
81
  IconLinkButton_default
82
82
  };
83
- //# sourceMappingURL=JVLEQ5LB.js.map
83
+ //# sourceMappingURL=FJXL3BLK.js.map
@@ -34,4 +34,4 @@ var Icon_default = Icon;
34
34
 
35
35
 
36
36
  exports.Icon_default = Icon_default;
37
- //# sourceMappingURL=IBT4YOI5.cjs.map
37
+ //# sourceMappingURL=HRTHCEIF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"names":[],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAC3B,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,WAAU,oBAAmB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,YAAW,qBAAoB;;;ADuDra;AAZN,IAAM,OAAO;AAAA,EACX,CAAC,EAAE,QAAQ,WAAW,MAAM,OAAO,IAAI,GAAc,QACnD;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,oBAAO;AAAA,QACP,sBAAY,GAAG,YAAY;AAAA,QAC3B,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","sourcesContent":["import { forwardRef } from \"react\";\nimport classnames from \"classnames\";\nimport colorStyles from \"../colors/colors.module.css\";\nimport styles from \"./Icon.module.css\";\nimport type allColors from \"../colors/allColors\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"inherit\"\n */\n color?: (typeof allColors)[number];\n /**\n * The size of the Icon.\n * * 100: 16px x 16px\n * * 200: 20px x 20px\n * * 300: 24px x 24px\n * * 400: 28px x 28px\n * * 500: 48px x 48px\n * * 600: 72px x 72px\n * * 700: 100px x 100px\n * * 800: 140px x 140px\n * * 900: 200px x 200px\n * * 1000: 280px x 280px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\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 = 200 }: IconProps, ref) => (\n <svg\n className={classnames(\n styles.icon,\n colorStyles[`${color}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_1vyva_1\",\"icon100\":\"_icon100_1vyva_8\",\"icon200\":\"_icon200_1vyva_13\",\"icon300\":\"_icon300_1vyva_18\",\"icon400\":\"_icon400_1vyva_23\",\"icon500\":\"_icon500_1vyva_28\",\"icon600\":\"_icon600_1vyva_33\",\"icon700\":\"_icon700_1vyva_38\",\"icon800\":\"_icon800_1vyva_43\",\"icon900\":\"_icon900_1vyva_48\",\"icon1000\":\"_icon1000_1vyva_53\"}"]}
1
+ {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"names":[],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAC3B,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,WAAU,oBAAmB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,YAAW,qBAAoB;;;ADuDra;AAZN,IAAM,OAAO;AAAA,EACX,CAAC,EAAE,QAAQ,WAAW,MAAM,OAAO,IAAI,GAAc,QACnD;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,oBAAO;AAAA,QACP,sBAAY,GAAG,YAAY;AAAA,QAC3B,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","sourcesContent":["import { forwardRef } from \"react\";\nimport classnames from \"classnames\";\nimport colorStyles from \"../colors/colors.module.css\";\nimport styles from \"./Icon.module.css\";\nimport type allColors from \"../colors/allColors\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"inherit\"\n */\n color?: (typeof allColors)[number];\n /**\n * The size of the Icon.\n * * 100: 16px x 16px\n * * 200: 20px x 20px\n * * 300: 24px x 24px\n * * 400: 32px x 32px\n * * 500: 48px x 48px\n * * 600: 72px x 72px\n * * 700: 100px x 100px\n * * 800: 140px x 140px\n * * 900: 200px x 200px\n * * 1000: 280px x 280px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\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 = 200 }: IconProps, ref) => (\n <svg\n className={classnames(\n styles.icon,\n colorStyles[`${color}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_1vyva_1\",\"icon100\":\"_icon100_1vyva_8\",\"icon200\":\"_icon200_1vyva_13\",\"icon300\":\"_icon300_1vyva_18\",\"icon400\":\"_icon400_1vyva_23\",\"icon500\":\"_icon500_1vyva_28\",\"icon600\":\"_icon600_1vyva_33\",\"icon700\":\"_icon700_1vyva_38\",\"icon800\":\"_icon800_1vyva_43\",\"icon900\":\"_icon900_1vyva_48\",\"icon1000\":\"_icon1000_1vyva_53\"}"]}
@@ -6,7 +6,7 @@ var _JVGX637Ecjs = require('./JVGX637E.cjs');
6
6
 
7
7
 
8
8
 
9
- var _FF5D2AVTcjs = require('./FF5D2AVT.cjs');
9
+ var _7VI7DO7Pcjs = require('./7VI7DO7P.cjs');
10
10
 
11
11
 
12
12
  var _XLUVINJWcjs = require('./XLUVINJW.cjs');
@@ -66,12 +66,12 @@ function SelectList({
66
66
  };
67
67
  const getArrowIconColor = () => {
68
68
  if (errorText) {
69
- return _FF5D2AVTcjs.ColorBaseDestructive700;
69
+ return _7VI7DO7Pcjs.ColorBaseDestructive700;
70
70
  } else {
71
71
  if (on === "darkBackground") {
72
- return _FF5D2AVTcjs.ColorCambioWhite100;
72
+ return _7VI7DO7Pcjs.ColorCambioWhite100;
73
73
  } else {
74
- return _FF5D2AVTcjs.ColorBaseGray700;
74
+ return _7VI7DO7Pcjs.ColorBaseGray700;
75
75
  }
76
76
  }
77
77
  };
@@ -140,4 +140,4 @@ SelectList.Option = _JVGX637Ecjs.SelectOption_default;
140
140
 
141
141
 
142
142
  exports.SelectList = SelectList;
143
- //# sourceMappingURL=EP7RK5MC.cjs.map
143
+ //# sourceMappingURL=IFPLOCSV.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
2
2
 
3
3
 
4
- var _P3YRUAAEcjs = require('./P3YRUAAE.cjs');
4
+ var _RHJARLXBcjs = require('./RHJARLXB.cjs');
5
5
 
6
6
 
7
7
  var _OKT24L6Dcjs = require('./OKT24L6D.cjs');
@@ -100,7 +100,7 @@ var Popover = _react.forwardRef.call(void 0, function Popover2(props, ref) {
100
100
  } = props;
101
101
  const modal = !children || modalProp;
102
102
  const modalNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
103
- _P3YRUAAEcjs.ModalDialog_default,
103
+ _RHJARLXBcjs.ModalDialog_default,
104
104
  {
105
105
  accessibilityLabel,
106
106
  accessibilityCloseLabel,
@@ -141,4 +141,4 @@ var Popover_default = Popover;
141
141
 
142
142
 
143
143
  exports.AriaPopover = AriaPopover; exports.Popover_default = Popover_default;
144
- //# sourceMappingURL=34KWYODX.cjs.map
144
+ //# sourceMappingURL=IJHKE2Y3.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  ModalDialog_default
4
- } from "./YN2ORRKZ.js";
4
+ } from "./VZUFYOET.js";
5
5
  import {
6
6
  Dialog_default
7
7
  } from "./QVK3VV5M.js";
@@ -141,4 +141,4 @@ export {
141
141
  AriaPopover,
142
142
  Popover_default
143
143
  };
144
- //# sourceMappingURL=IKOJX6EH.js.map
144
+ //# sourceMappingURL=IUMHK3GF.js.map
@@ -10,4 +10,4 @@ export {
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
12
  };
13
- //# sourceMappingURL=CN7ZX34L.js.map
13
+ //# sourceMappingURL=JGDLN47H.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 23 Sep 2024 23:54:48 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, 01 Oct 2024 21:18:21 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":[]}