@cambly/syntax-core 16.0.0 → 16.2.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 (45) hide show
  1. package/dist/Badge/Badge.d.ts +1 -1
  2. package/dist/Icon/Icon.cjs +2 -2
  3. package/dist/Icon/Icon.d.ts +11 -11
  4. package/dist/Icon/Icon.js +1 -1
  5. package/dist/RichSelect/RichSelectList.cjs +3 -3
  6. package/dist/RichSelect/RichSelectList.js +2 -2
  7. package/dist/SelectList/SelectList.cjs +3 -3
  8. package/dist/SelectList/SelectList.js +2 -2
  9. package/dist/Tabs/TabLink.cjs +2 -2
  10. package/dist/Tabs/TabLink.d.ts +1 -1
  11. package/dist/Tabs/TabLink.js +1 -1
  12. package/dist/Tabs/Tabs.cjs +3 -3
  13. package/dist/Tabs/Tabs.d.ts +1 -1
  14. package/dist/Tabs/Tabs.js +2 -2
  15. package/dist/__chunks/{DISIWYT4.js → 4LGAAZRF.js} +2 -2
  16. package/dist/__chunks/{SKVMG4AF.js → 523DPUCJ.js} +1 -1
  17. package/dist/__chunks/523DPUCJ.js.map +1 -0
  18. package/dist/__chunks/{G4CKRMFW.cjs → A2VIAMXM.cjs} +3 -3
  19. package/dist/__chunks/{BB3LT6KA.js → EY2UNCK3.js} +2 -2
  20. package/dist/__chunks/{Q2KBODSW.js → IWJLLUHI.js} +2 -2
  21. package/dist/__chunks/{6VB3H32I.cjs → J4Q24RRY.cjs} +3 -3
  22. package/dist/__chunks/{SEJ4BIQG.cjs → L5RBAKAN.cjs} +1 -1
  23. package/dist/__chunks/L5RBAKAN.cjs.map +1 -0
  24. package/dist/__chunks/{P7YFSOS7.js → M37PG54B.js} +1 -1
  25. package/dist/__chunks/M37PG54B.js.map +1 -0
  26. package/dist/__chunks/{KFQOJ7RG.cjs → SCY53TTH.cjs} +3 -3
  27. package/dist/__chunks/{43ZVOHDU.cjs → UZ2FIWJZ.cjs} +1 -1
  28. package/dist/__chunks/{43ZVOHDU.cjs.map → UZ2FIWJZ.cjs.map} +1 -1
  29. package/dist/__chunks/{HAXNGRII.js → VPWID72F.js} +1 -1
  30. package/dist/__chunks/{HAXNGRII.js.map → VPWID72F.js.map} +1 -1
  31. package/dist/__chunks/{F7FFR34L.cjs → YECKQLZS.cjs} +1 -1
  32. package/dist/__chunks/YECKQLZS.cjs.map +1 -0
  33. package/dist/index.cjs +7 -7
  34. package/dist/index.js +6 -6
  35. package/package.json +1 -1
  36. package/dist/__chunks/F7FFR34L.cjs.map +0 -1
  37. package/dist/__chunks/P7YFSOS7.js.map +0 -1
  38. package/dist/__chunks/SEJ4BIQG.cjs.map +0 -1
  39. package/dist/__chunks/SKVMG4AF.js.map +0 -1
  40. /package/dist/__chunks/{DISIWYT4.js.map → 4LGAAZRF.js.map} +0 -0
  41. /package/dist/__chunks/{G4CKRMFW.cjs.map → A2VIAMXM.cjs.map} +0 -0
  42. /package/dist/__chunks/{BB3LT6KA.js.map → EY2UNCK3.js.map} +0 -0
  43. /package/dist/__chunks/{Q2KBODSW.js.map → IWJLLUHI.js.map} +0 -0
  44. /package/dist/__chunks/{6VB3H32I.cjs.map → J4Q24RRY.cjs.map} +0 -0
  45. /package/dist/__chunks/{KFQOJ7RG.cjs.map → SCY53TTH.cjs.map} +0 -0
@@ -11,7 +11,7 @@ declare const Badge: ({ icon: Icon, text, color, }: {
11
11
  className?: string | undefined;
12
12
  }> | React.ComponentType<{
13
13
  color?: "gray700" | "gray900" | "white" | "inherit" | "primary" | "destructive-primary" | "destructive-darkBackground" | "success" | "success-darkBackground" | "white-secondary" | undefined;
14
- size?: 0 | 100 | 200 | 300 | 400 | 700 | 900 | 500 | 600 | 800 | 1000 | undefined;
14
+ size?: 100 | 200 | 300 | 400 | 700 | 900 | 500 | 600 | 800 | 1000 | undefined;
15
15
  path?: string | undefined;
16
16
  } & React.RefAttributes<SVGSVGElement>> | undefined;
17
17
  /**
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
2
2
 
3
3
 
4
- var _SEJ4BIQGcjs = require('../__chunks/SEJ4BIQG.cjs');
4
+ var _L5RBAKANcjs = require('../__chunks/L5RBAKAN.cjs');
5
5
  require('../__chunks/POMJQZKJ.cjs');
6
6
  require('../__chunks/SVA2ABQQ.cjs');
7
7
  require('../__chunks/WFVGNGEP.cjs');
8
8
  require('../__chunks/X2SDR4SD.cjs');
9
9
 
10
10
 
11
- exports.default = _SEJ4BIQGcjs.Icon_default;
11
+ exports.default = _L5RBAKANcjs.Icon_default;
12
12
  //# sourceMappingURL=Icon.cjs.map
@@ -11,20 +11,20 @@ type IconProps = {
11
11
  color?: ComponentProps<typeof Typography>["color"];
12
12
  /**
13
13
  * The size of the Icon.
14
- * * 0: 16px x 16px
15
- * * 100: 20px x 20px
16
- * * 200: 24px x 24px
17
- * * 300: 28px x 28px
18
- * * 400: 48px x 48px
19
- * * 500: 72px x 72px
20
- * * 600: 100px x 100px
21
- * * 700: 140px x 140px
22
- * * 800: 200px x 200px
23
- * * 9000: 280px x 280px
14
+ * * 100: 16px x 16px
15
+ * * 200: 20px x 20px
16
+ * * 300: 24px x 24px
17
+ * * 400: 28px x 28px
18
+ * * 500: 48px x 48px
19
+ * * 600: 72px x 72px
20
+ * * 700: 100px x 100px
21
+ * * 800: 140px x 140px
22
+ * * 900: 200px x 200px
23
+ * * 1000: 280px x 280px
24
24
  *
25
25
  * @defaultValue 200
26
26
  */
27
- size?: 0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
27
+ size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
28
28
  /**
29
29
  * The svg path of the icon. You should not use this prop directly, instead use the specific icon components.
30
30
  */
package/dist/Icon/Icon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Icon_default
4
- } from "../__chunks/SKVMG4AF.js";
4
+ } from "../__chunks/523DPUCJ.js";
5
5
  import "../__chunks/NVTSF5NY.js";
6
6
  import "../__chunks/XVUEUKXA.js";
7
7
  import "../__chunks/4U4UW4AK.js";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
2
2
 
3
3
 
4
- var _G4CKRMFWcjs = require('../__chunks/G4CKRMFW.cjs');
4
+ var _A2VIAMXMcjs = require('../__chunks/A2VIAMXM.cjs');
5
5
  require('../__chunks/32CNLC3O.cjs');
6
6
  require('../__chunks/WEOENL5J.cjs');
7
7
  require('../__chunks/J27AGJQB.cjs');
8
8
  require('../__chunks/ZGOHDWOB.cjs');
9
- require('../__chunks/43ZVOHDU.cjs');
9
+ require('../__chunks/UZ2FIWJZ.cjs');
10
10
  require('../__chunks/5IOCCDL6.cjs');
11
11
  require('../__chunks/FIPWIWEO.cjs');
12
12
  require('../__chunks/42SRFCQL.cjs');
@@ -46,5 +46,5 @@ require('../__chunks/E5P6WRJD.cjs');
46
46
  require('../__chunks/X2SDR4SD.cjs');
47
47
 
48
48
 
49
- exports.default = _G4CKRMFWcjs.RichSelectList_default;
49
+ exports.default = _A2VIAMXMcjs.RichSelectList_default;
50
50
  //# sourceMappingURL=RichSelectList.cjs.map
@@ -1,12 +1,12 @@
1
1
  "use client"
2
2
  import {
3
3
  RichSelectList_default
4
- } from "../__chunks/Q2KBODSW.js";
4
+ } from "../__chunks/IWJLLUHI.js";
5
5
  import "../__chunks/C22XFS4G.js";
6
6
  import "../__chunks/WJMQX7BT.js";
7
7
  import "../__chunks/5HEC7ASW.js";
8
8
  import "../__chunks/DJ6I4764.js";
9
- import "../__chunks/HAXNGRII.js";
9
+ import "../__chunks/VPWID72F.js";
10
10
  import "../__chunks/4C7SU3EM.js";
11
11
  import "../__chunks/2GCKYKF3.js";
12
12
  import "../__chunks/YAZOHZLW.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
2
2
 
3
3
 
4
- var _6VB3H32Icjs = require('../__chunks/6VB3H32I.cjs');
5
- require('../__chunks/43ZVOHDU.cjs');
4
+ var _J4Q24RRYcjs = require('../__chunks/J4Q24RRY.cjs');
5
+ require('../__chunks/UZ2FIWJZ.cjs');
6
6
  require('../__chunks/XLUVINJW.cjs');
7
7
  require('../__chunks/KJLBDAZH.cjs');
8
8
  require('../__chunks/JVGX637E.cjs');
@@ -18,5 +18,5 @@ require('../__chunks/NOELZTQX.cjs');
18
18
  require('../__chunks/X2SDR4SD.cjs');
19
19
 
20
20
 
21
- exports.default = _6VB3H32Icjs.SelectList;
21
+ exports.default = _J4Q24RRYcjs.SelectList;
22
22
  //# sourceMappingURL=SelectList.cjs.map
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  import {
3
3
  SelectList
4
- } from "../__chunks/DISIWYT4.js";
5
- import "../__chunks/HAXNGRII.js";
4
+ } from "../__chunks/4LGAAZRF.js";
5
+ import "../__chunks/VPWID72F.js";
6
6
  import "../__chunks/KKADUD65.js";
7
7
  import "../__chunks/65PMWIHY.js";
8
8
  import "../__chunks/SPQ7DQHG.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
2
2
 
3
3
 
4
- var _F7FFR34Lcjs = require('../__chunks/F7FFR34L.cjs');
4
+ var _YECKQLZScjs = require('../__chunks/YECKQLZS.cjs');
5
5
  require('../__chunks/JVGBP6LO.cjs');
6
6
  require('../__chunks/B3O42V6X.cjs');
7
7
  require('../__chunks/KJLBDAZH.cjs');
@@ -15,5 +15,5 @@ require('../__chunks/SVA2ABQQ.cjs');
15
15
  require('../__chunks/X2SDR4SD.cjs');
16
16
 
17
17
 
18
- exports.default = _F7FFR34Lcjs.TabLink_default;
18
+ exports.default = _YECKQLZScjs.TabLink_default;
19
19
  //# sourceMappingURL=TabLink.cjs.map
@@ -16,7 +16,7 @@ declare const TabLink: React.ForwardRefExoticComponent<{
16
16
  * The link that the Tab should route to.
17
17
  *
18
18
  */
19
- href: string;
19
+ href?: string | undefined;
20
20
  /**
21
21
  * The target attribute specifies where to open the linked document.
22
22
  *
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  TabLink_default
4
- } from "../__chunks/P7YFSOS7.js";
4
+ } from "../__chunks/M37PG54B.js";
5
5
  import "../__chunks/5JQ6C2XV.js";
6
6
  import "../__chunks/BXKO34RQ.js";
7
7
  import "../__chunks/65PMWIHY.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
2
2
 
3
3
 
4
- var _KFQOJ7RGcjs = require('../__chunks/KFQOJ7RG.cjs');
5
- require('../__chunks/F7FFR34L.cjs');
4
+ var _SCY53TTHcjs = require('../__chunks/SCY53TTH.cjs');
5
+ require('../__chunks/YECKQLZS.cjs');
6
6
  require('../__chunks/OJKBVPRV.cjs');
7
7
  require('../__chunks/3UEOKPM2.cjs');
8
8
  require('../__chunks/JVGBP6LO.cjs');
@@ -19,5 +19,5 @@ require('../__chunks/K4AUV2VK.cjs');
19
19
  require('../__chunks/X2SDR4SD.cjs');
20
20
 
21
21
 
22
- exports.default = _KFQOJ7RGcjs.Tabs;
22
+ exports.default = _SCY53TTHcjs.Tabs;
23
23
  //# sourceMappingURL=Tabs.cjs.map
@@ -33,7 +33,7 @@ declare namespace Tabs {
33
33
  on?: "lightBackground" | "darkBackground" | undefined;
34
34
  } & {
35
35
  "data-testid"?: string | undefined;
36
- href: string;
36
+ href?: string | undefined;
37
37
  target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
38
38
  rel?: string | undefined;
39
39
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
package/dist/Tabs/Tabs.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  import {
3
3
  Tabs
4
- } from "../__chunks/BB3LT6KA.js";
5
- import "../__chunks/P7YFSOS7.js";
4
+ } from "../__chunks/EY2UNCK3.js";
5
+ import "../__chunks/M37PG54B.js";
6
6
  import "../__chunks/SOR5SSPX.js";
7
7
  import "../__chunks/77FFPQY6.js";
8
8
  import "../__chunks/5JQ6C2XV.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ColorBaseDestructive700,
4
4
  ColorBaseGray800
5
- } from "./HAXNGRII.js";
5
+ } from "./VPWID72F.js";
6
6
  import {
7
7
  Focus_module_default
8
8
  } from "./KKADUD65.js";
@@ -122,4 +122,4 @@ SelectList.Option = SelectOption_default;
122
122
  export {
123
123
  SelectList
124
124
  };
125
- //# sourceMappingURL=DISIWYT4.js.map
125
+ //# sourceMappingURL=4LGAAZRF.js.map
@@ -34,4 +34,4 @@ var Icon_default = Icon;
34
34
  export {
35
35
  Icon_default
36
36
  };
37
- //# sourceMappingURL=SKVMG4AF.js.map
37
+ //# sourceMappingURL=523DPUCJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * 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 textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_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\"}"],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,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;;;ADwDra;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,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}
@@ -8,7 +8,7 @@ var _J27AGJQBcjs = require('./J27AGJQB.cjs');
8
8
 
9
9
 
10
10
 
11
- var _43ZVOHDUcjs = require('./43ZVOHDU.cjs');
11
+ var _UZ2FIWJZcjs = require('./UZ2FIWJZ.cjs');
12
12
 
13
13
 
14
14
 
@@ -232,7 +232,7 @@ function RichSelectList(props) {
232
232
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
233
233
  "path",
234
234
  {
235
- fill: errorText ? _43ZVOHDUcjs.ColorBaseDestructive700 : _43ZVOHDUcjs.ColorBaseGray800,
235
+ fill: errorText ? _UZ2FIWJZcjs.ColorBaseDestructive700 : _UZ2FIWJZcjs.ColorBaseGray800,
236
236
  d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
237
237
  }
238
238
  )
@@ -267,4 +267,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
267
267
 
268
268
 
269
269
  exports.RichSelectList_default = RichSelectList_default;
270
- //# sourceMappingURL=G4CKRMFW.cjs.map
270
+ //# sourceMappingURL=A2VIAMXM.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  TabLink_default
4
- } from "./P7YFSOS7.js";
4
+ } from "./M37PG54B.js";
5
5
  import {
6
6
  TabButton
7
7
  } from "./SOR5SSPX.js";
@@ -50,4 +50,4 @@ Tabs.Link = TabLink_default;
50
50
  export {
51
51
  Tabs
52
52
  };
53
- //# sourceMappingURL=BB3LT6KA.js.map
53
+ //# sourceMappingURL=EY2UNCK3.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  ColorBaseDestructive700,
10
10
  ColorBaseGray800
11
- } from "./HAXNGRII.js";
11
+ } from "./VPWID72F.js";
12
12
  import {
13
13
  RichSelectBoxContext,
14
14
  RichSelectBox_default,
@@ -267,4 +267,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
267
267
  export {
268
268
  RichSelectList_default
269
269
  };
270
- //# sourceMappingURL=Q2KBODSW.js.map
270
+ //# sourceMappingURL=IWJLLUHI.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _43ZVOHDUcjs = require('./43ZVOHDU.cjs');
5
+ var _UZ2FIWJZcjs = require('./UZ2FIWJZ.cjs');
6
6
 
7
7
 
8
8
  var _XLUVINJWcjs = require('./XLUVINJW.cjs');
@@ -98,7 +98,7 @@ function SelectList({
98
98
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
99
99
  "path",
100
100
  {
101
- fill: errorText ? _43ZVOHDUcjs.ColorBaseDestructive700 : _43ZVOHDUcjs.ColorBaseGray800,
101
+ fill: errorText ? _UZ2FIWJZcjs.ColorBaseDestructive700 : _UZ2FIWJZcjs.ColorBaseGray800,
102
102
  d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
103
103
  }
104
104
  )
@@ -122,4 +122,4 @@ SelectList.Option = _JVGX637Ecjs.SelectOption_default;
122
122
 
123
123
 
124
124
  exports.SelectList = SelectList;
125
- //# sourceMappingURL=6VB3H32I.cjs.map
125
+ //# sourceMappingURL=J4Q24RRY.cjs.map
@@ -34,4 +34,4 @@ var Icon_default = Icon;
34
34
 
35
35
 
36
36
  exports.Icon_default = Icon_default;
37
- //# sourceMappingURL=SEJ4BIQG.cjs.map
37
+ //# sourceMappingURL=L5RBAKAN.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"names":[],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,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;;;ADwDra;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,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ","sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * 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 textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_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\"}"]}
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
72
72
  export {
73
73
  TabLink_default
74
74
  };
75
- //# sourceMappingURL=P7YFSOS7.js.map
75
+ //# sourceMappingURL=M37PG54B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Tabs/TabLink.tsx"],"sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport TabInternal from \"./TabInternal\";\nimport classnames from \"classnames\";\nimport styles from \"./Tabs.module.css\";\nimport Box from \"../Box/Box\";\n\ntype TabLinkProps = ComponentProps<typeof TabInternal> & {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The link that the Tab should route to.\n *\n */\n href?: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\nconst TabLink = forwardRef<HTMLAnchorElement, TabLinkProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n on = \"lightBackground\",\n onClick,\n selected,\n endContent,\n itemCount,\n }: TabLinkProps,\n ref,\n ) => {\n return (\n <div\n role=\"tab\"\n className={classnames({\n [styles.unselectedTab]: !selected,\n [styles.selectedTabOnLightBackground]:\n selected && on === \"lightBackground\",\n [styles.selectedTabOnDarkBackground]:\n selected && on === \"darkBackground\",\n })}\n style={{\n height: \"100%\",\n }}\n >\n <Box display=\"flex\" alignItems=\"center\" height=\"100%\">\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n onClick={onClick}\n className={styles.link}\n >\n <TabInternal\n text={text}\n selected={selected}\n endContent={endContent}\n itemCount={itemCount}\n on={on}\n />\n </a>\n </Box>\n </div>\n );\n },\n);\n\nTabLink.displayName = \"TabLink\";\n\nexport default TabLink;\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAEP,OAAO,gBAAgB;AAsEX;AAxCZ,IAAM,UAAU;AAAA,EACd,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,WAAW;AAAA,UACpB,CAAC,oBAAO,aAAa,GAAG,CAAC;AAAA,UACzB,CAAC,oBAAO,4BAA4B,GAClC,YAAY,OAAO;AAAA,UACrB,CAAC,oBAAO,2BAA2B,GACjC,YAAY,OAAO;AAAA,QACvB,CAAC;AAAA,QACD,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QAEA,8BAAC,eAAI,SAAQ,QAAO,YAAW,UAAS,QAAO,QAC7C;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW,oBAAO;AAAA,YAElB;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;AAEtB,IAAO,kBAAQ;","names":[]}
@@ -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 _F7FFR34Lcjs = require('./F7FFR34L.cjs');
4
+ var _YECKQLZScjs = require('./YECKQLZS.cjs');
5
5
 
6
6
 
7
7
  var _OJKBVPRVcjs = require('./OJKBVPRV.cjs');
@@ -45,9 +45,9 @@ function Tabs({
45
45
  );
46
46
  }
47
47
  Tabs.Button = _OJKBVPRVcjs.TabButton;
48
- Tabs.Link = _F7FFR34Lcjs.TabLink_default;
48
+ Tabs.Link = _YECKQLZScjs.TabLink_default;
49
49
 
50
50
 
51
51
 
52
52
  exports.Tabs = Tabs;
53
- //# sourceMappingURL=KFQOJ7RG.cjs.map
53
+ //# sourceMappingURL=SCY53TTH.cjs.map
@@ -8,4 +8,4 @@ var ColorBaseGray800 = "#353535";
8
8
 
9
9
 
10
10
  exports.ColorBaseDestructive700 = ColorBaseDestructive700; exports.ColorBaseGray800 = ColorBaseGray800;
11
- //# sourceMappingURL=43ZVOHDU.cjs.map
11
+ //# sourceMappingURL=UZ2FIWJZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 14 Jun 2024 18:08:33 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 ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Wed, 26 Jun 2024 17:59:01 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 ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"]}
@@ -8,4 +8,4 @@ export {
8
8
  ColorBaseDestructive700,
9
9
  ColorBaseGray800
10
10
  };
11
- //# sourceMappingURL=HAXNGRII.js.map
11
+ //# sourceMappingURL=VPWID72F.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 14 Jun 2024 18:08:33 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 ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Wed, 26 Jun 2024 17:59:01 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 ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB;","names":[]}
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
72
72
 
73
73
 
74
74
  exports.TabLink_default = TabLink_default;
75
- //# sourceMappingURL=F7FFR34L.cjs.map
75
+ //# sourceMappingURL=YECKQLZS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Tabs/TabLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAEP,OAAO,gBAAgB;AAsEX;AAxCZ,IAAM,UAAU;AAAA,EACd,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,WAAW;AAAA,UACpB,CAAC,oBAAO,aAAa,GAAG,CAAC;AAAA,UACzB,CAAC,oBAAO,4BAA4B,GAClC,YAAY,OAAO;AAAA,UACrB,CAAC,oBAAO,2BAA2B,GACjC,YAAY,OAAO;AAAA,QACvB,CAAC;AAAA,QACD,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QAEA,8BAAC,eAAI,SAAQ,QAAO,YAAW,UAAS,QAAO,QAC7C;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW,oBAAO;AAAA,YAElB;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;AAEtB,IAAO,kBAAQ","sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport TabInternal from \"./TabInternal\";\nimport classnames from \"classnames\";\nimport styles from \"./Tabs.module.css\";\nimport Box from \"../Box/Box\";\n\ntype TabLinkProps = ComponentProps<typeof TabInternal> & {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The link that the Tab should route to.\n *\n */\n href?: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\nconst TabLink = forwardRef<HTMLAnchorElement, TabLinkProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n on = \"lightBackground\",\n onClick,\n selected,\n endContent,\n itemCount,\n }: TabLinkProps,\n ref,\n ) => {\n return (\n <div\n role=\"tab\"\n className={classnames({\n [styles.unselectedTab]: !selected,\n [styles.selectedTabOnLightBackground]:\n selected && on === \"lightBackground\",\n [styles.selectedTabOnDarkBackground]:\n selected && on === \"darkBackground\",\n })}\n style={{\n height: \"100%\",\n }}\n >\n <Box display=\"flex\" alignItems=\"center\" height=\"100%\">\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n onClick={onClick}\n className={styles.link}\n >\n <TabInternal\n text={text}\n selected={selected}\n endContent={endContent}\n itemCount={itemCount}\n on={on}\n />\n </a>\n </Box>\n </div>\n );\n },\n);\n\nTabLink.displayName = \"TabLink\";\n\nexport default TabLink;\n"]}
package/dist/index.cjs CHANGED
@@ -28,13 +28,13 @@ require('./__chunks/THM3NAFO.cjs');
28
28
  var _O54TUH3Vcjs = require('./__chunks/O54TUH3V.cjs');
29
29
 
30
30
 
31
- var _SEJ4BIQGcjs = require('./__chunks/SEJ4BIQG.cjs');
31
+ var _L5RBAKANcjs = require('./__chunks/L5RBAKAN.cjs');
32
32
 
33
33
 
34
- var _6VB3H32Icjs = require('./__chunks/6VB3H32I.cjs');
34
+ var _J4Q24RRYcjs = require('./__chunks/J4Q24RRY.cjs');
35
35
 
36
36
 
37
- var _G4CKRMFWcjs = require('./__chunks/G4CKRMFW.cjs');
37
+ var _A2VIAMXMcjs = require('./__chunks/A2VIAMXM.cjs');
38
38
 
39
39
 
40
40
  var _32CNLC3Ocjs = require('./__chunks/32CNLC3O.cjs');
@@ -43,7 +43,7 @@ require('./__chunks/J27AGJQB.cjs');
43
43
 
44
44
 
45
45
  var _ZGOHDWOBcjs = require('./__chunks/ZGOHDWOB.cjs');
46
- require('./__chunks/43ZVOHDU.cjs');
46
+ require('./__chunks/UZ2FIWJZ.cjs');
47
47
  require('./__chunks/5IOCCDL6.cjs');
48
48
 
49
49
 
@@ -78,8 +78,8 @@ var _J2D7XRV7cjs = require('./__chunks/J2D7XRV7.cjs');
78
78
  require('./__chunks/WFVGNGEP.cjs');
79
79
 
80
80
 
81
- var _KFQOJ7RGcjs = require('./__chunks/KFQOJ7RG.cjs');
82
- require('./__chunks/F7FFR34L.cjs');
81
+ var _SCY53TTHcjs = require('./__chunks/SCY53TTH.cjs');
82
+ require('./__chunks/YECKQLZS.cjs');
83
83
  require('./__chunks/OJKBVPRV.cjs');
84
84
 
85
85
 
@@ -145,5 +145,5 @@ require('./__chunks/X2SDR4SD.cjs');
145
145
 
146
146
 
147
147
 
148
- exports.Avatar = _RC7EMZ6Ncjs.Avatar_default; exports.AvatarGroup = _5COVOOB3cjs.AvatarGroup; exports.Badge = _3Z5DP4X3cjs.Badge_default; exports.Box = _KJLBDAZHcjs.Box_default; exports.Button = _FIPWIWEOcjs.Button_default; exports.ButtonGroup = _C5XPZTFOcjs.ButtonGroup_default; exports.Card = _L32D5WEGcjs.Card_default; exports.Checkbox = _BFODXGGOcjs.Checkbox_default; exports.Chip = _4ENILLBCcjs.Chip_default; exports.Divider = _42SRFCQLcjs.Divider; exports.Heading = _3TF4GQNLcjs.Heading_default; exports.Icon = _SEJ4BIQGcjs.Icon_default; exports.IconButton = _ZGOHDWOBcjs.IconButton_default; exports.LinkButton = _O54TUH3Vcjs.LinkButton_default; exports.Modal = _UHOT5ZOHcjs.Modal; exports.Popover = _32CNLC3Ocjs.Popover_default; exports.RadioButton = _Z66NM3NKcjs.RadioButton_default; exports.RichSelectList = _G4CKRMFWcjs.RichSelectList_default; exports.SelectList = _6VB3H32Icjs.SelectList; exports.Tabs = _KFQOJ7RGcjs.Tabs; exports.TapArea = _3UEOKPM2cjs.TapArea_default; exports.TextArea = _J2D7XRV7cjs.TextArea_default; exports.TextField = _B3ZOLJLGcjs.TextField; exports.ThemeProvider = _7JET5NNKcjs.ThemeProvider; exports.Tooltip = _2PWZPH3Rcjs.Tooltip_default; exports.Typography = _42SXZKBGcjs.Typography_default;
148
+ exports.Avatar = _RC7EMZ6Ncjs.Avatar_default; exports.AvatarGroup = _5COVOOB3cjs.AvatarGroup; exports.Badge = _3Z5DP4X3cjs.Badge_default; exports.Box = _KJLBDAZHcjs.Box_default; exports.Button = _FIPWIWEOcjs.Button_default; exports.ButtonGroup = _C5XPZTFOcjs.ButtonGroup_default; exports.Card = _L32D5WEGcjs.Card_default; exports.Checkbox = _BFODXGGOcjs.Checkbox_default; exports.Chip = _4ENILLBCcjs.Chip_default; exports.Divider = _42SRFCQLcjs.Divider; exports.Heading = _3TF4GQNLcjs.Heading_default; exports.Icon = _L5RBAKANcjs.Icon_default; exports.IconButton = _ZGOHDWOBcjs.IconButton_default; exports.LinkButton = _O54TUH3Vcjs.LinkButton_default; exports.Modal = _UHOT5ZOHcjs.Modal; exports.Popover = _32CNLC3Ocjs.Popover_default; exports.RadioButton = _Z66NM3NKcjs.RadioButton_default; exports.RichSelectList = _A2VIAMXMcjs.RichSelectList_default; exports.SelectList = _J4Q24RRYcjs.SelectList; exports.Tabs = _SCY53TTHcjs.Tabs; exports.TapArea = _3UEOKPM2cjs.TapArea_default; exports.TextArea = _J2D7XRV7cjs.TextArea_default; exports.TextField = _B3ZOLJLGcjs.TextField; exports.ThemeProvider = _7JET5NNKcjs.ThemeProvider; exports.Tooltip = _2PWZPH3Rcjs.Tooltip_default; exports.Typography = _42SXZKBGcjs.Typography_default;
149
149
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -28,13 +28,13 @@ import {
28
28
  } from "./__chunks/ZH4QTULO.js";
29
29
  import {
30
30
  Icon_default
31
- } from "./__chunks/SKVMG4AF.js";
31
+ } from "./__chunks/523DPUCJ.js";
32
32
  import {
33
33
  SelectList
34
- } from "./__chunks/DISIWYT4.js";
34
+ } from "./__chunks/4LGAAZRF.js";
35
35
  import {
36
36
  RichSelectList_default
37
- } from "./__chunks/Q2KBODSW.js";
37
+ } from "./__chunks/IWJLLUHI.js";
38
38
  import {
39
39
  Popover_default
40
40
  } from "./__chunks/C22XFS4G.js";
@@ -43,7 +43,7 @@ import "./__chunks/5HEC7ASW.js";
43
43
  import {
44
44
  IconButton_default
45
45
  } from "./__chunks/DJ6I4764.js";
46
- import "./__chunks/HAXNGRII.js";
46
+ import "./__chunks/VPWID72F.js";
47
47
  import "./__chunks/4C7SU3EM.js";
48
48
  import {
49
49
  Button_default
@@ -78,8 +78,8 @@ import {
78
78
  import "./__chunks/4U4UW4AK.js";
79
79
  import {
80
80
  Tabs
81
- } from "./__chunks/BB3LT6KA.js";
82
- import "./__chunks/P7YFSOS7.js";
81
+ } from "./__chunks/EY2UNCK3.js";
82
+ import "./__chunks/M37PG54B.js";
83
83
  import "./__chunks/SOR5SSPX.js";
84
84
  import {
85
85
  TapArea_default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cambly/syntax-core",
3
3
  "description": "Cambly design system core components",
4
- "version": "16.0.0",
4
+ "version": "16.2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tabs/TabLink.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAEP,OAAO,gBAAgB;AAsEX;AAxCZ,IAAM,UAAU;AAAA,EACd,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,WAAW;AAAA,UACpB,CAAC,oBAAO,aAAa,GAAG,CAAC;AAAA,UACzB,CAAC,oBAAO,4BAA4B,GAClC,YAAY,OAAO;AAAA,UACrB,CAAC,oBAAO,2BAA2B,GACjC,YAAY,OAAO;AAAA,QACvB,CAAC;AAAA,QACD,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QAEA,8BAAC,eAAI,SAAQ,QAAO,YAAW,UAAS,QAAO,QAC7C;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW,oBAAO;AAAA,YAElB;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;AAEtB,IAAO,kBAAQ","sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport TabInternal from \"./TabInternal\";\nimport classnames from \"classnames\";\nimport styles from \"./Tabs.module.css\";\nimport Box from \"../Box/Box\";\n\ntype TabLinkProps = ComponentProps<typeof TabInternal> & {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The link that the Tab should route to.\n *\n */\n href: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\nconst TabLink = forwardRef<HTMLAnchorElement, TabLinkProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n on = \"lightBackground\",\n onClick,\n selected,\n endContent,\n itemCount,\n }: TabLinkProps,\n ref,\n ) => {\n return (\n <div\n role=\"tab\"\n className={classnames({\n [styles.unselectedTab]: !selected,\n [styles.selectedTabOnLightBackground]:\n selected && on === \"lightBackground\",\n [styles.selectedTabOnDarkBackground]:\n selected && on === \"darkBackground\",\n })}\n style={{\n height: \"100%\",\n }}\n >\n <Box display=\"flex\" alignItems=\"center\" height=\"100%\">\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n onClick={onClick}\n className={styles.link}\n >\n <TabInternal\n text={text}\n selected={selected}\n endContent={endContent}\n itemCount={itemCount}\n on={on}\n />\n </a>\n </Box>\n </div>\n );\n },\n);\n\nTabLink.displayName = \"TabLink\";\n\nexport default TabLink;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tabs/TabLink.tsx"],"sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport TabInternal from \"./TabInternal\";\nimport classnames from \"classnames\";\nimport styles from \"./Tabs.module.css\";\nimport Box from \"../Box/Box\";\n\ntype TabLinkProps = ComponentProps<typeof TabInternal> & {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The link that the Tab should route to.\n *\n */\n href: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\nconst TabLink = forwardRef<HTMLAnchorElement, TabLinkProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n on = \"lightBackground\",\n onClick,\n selected,\n endContent,\n itemCount,\n }: TabLinkProps,\n ref,\n ) => {\n return (\n <div\n role=\"tab\"\n className={classnames({\n [styles.unselectedTab]: !selected,\n [styles.selectedTabOnLightBackground]:\n selected && on === \"lightBackground\",\n [styles.selectedTabOnDarkBackground]:\n selected && on === \"darkBackground\",\n })}\n style={{\n height: \"100%\",\n }}\n >\n <Box display=\"flex\" alignItems=\"center\" height=\"100%\">\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n onClick={onClick}\n className={styles.link}\n >\n <TabInternal\n text={text}\n selected={selected}\n endContent={endContent}\n itemCount={itemCount}\n on={on}\n />\n </a>\n </Box>\n </div>\n );\n },\n);\n\nTabLink.displayName = \"TabLink\";\n\nexport default TabLink;\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAEP,OAAO,gBAAgB;AAsEX;AAxCZ,IAAM,UAAU;AAAA,EACd,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,WAAW;AAAA,UACpB,CAAC,oBAAO,aAAa,GAAG,CAAC;AAAA,UACzB,CAAC,oBAAO,4BAA4B,GAClC,YAAY,OAAO;AAAA,UACrB,CAAC,oBAAO,2BAA2B,GACjC,YAAY,OAAO;AAAA,QACvB,CAAC;AAAA,QACD,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QAEA,8BAAC,eAAI,SAAQ,QAAO,YAAW,UAAS,QAAO,QAC7C;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,WAAW,oBAAO;AAAA,YAElB;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA,gBACA;AAAA;AAAA,YACF;AAAA;AAAA,QACF,GACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;AAEtB,IAAO,kBAAQ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"names":[],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,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;;;ADwDra;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,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ","sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * 0: 16px x 16px\n * * 100: 20px x 20px\n * * 200: 24px x 24px\n * * 300: 28px x 28px\n * * 400: 48px x 48px\n * * 500: 72px x 72px\n * * 600: 100px x 100px\n * * 700: 140px x 140px\n * * 800: 200px x 200px\n * * 9000: 280px x 280px\n *\n * @defaultValue 200\n */\n size?: 0 | 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 textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_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 +0,0 @@
1
- {"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * 0: 16px x 16px\n * * 100: 20px x 20px\n * * 200: 24px x 24px\n * * 300: 28px x 28px\n * * 400: 48px x 48px\n * * 500: 72px x 72px\n * * 600: 100px x 100px\n * * 700: 140px x 140px\n * * 800: 200px x 200px\n * * 9000: 280px x 280px\n *\n * @defaultValue 200\n */\n size?: 0 | 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 textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_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\"}"],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,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;;;ADwDra;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,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}