@cambly/syntax-core 22.2.0 → 22.2.2
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.
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Badge/Badge.d.ts +2 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Icon/Icon.css +14 -11
- package/dist/Icon/Icon.css.map +1 -1
- package/dist/Icon/Icon.d.ts +5 -0
- package/dist/Icon/Icon.js +1 -1
- package/dist/LinkTapArea/LinkTapArea.d.ts +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.css +21 -18
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +2 -2
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/SelectList/SelectList.css +21 -18
- package/dist/SelectList/SelectList.css.map +1 -1
- package/dist/SelectList/SelectList.js +2 -2
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/__chunks/{W6IQWQ6Z.js → APWYJJJE.js} +3 -3
- package/dist/__chunks/{W6IQWQ6Z.js.map → APWYJJJE.js.map} +1 -1
- package/dist/__chunks/{ZC7RS5V7.js → H7BNZKLN.js} +3 -3
- package/dist/__chunks/{ZC7RS5V7.js.map → H7BNZKLN.js.map} +1 -1
- package/dist/__chunks/{X3XMN7RS.js → IZR7CUJ2.js} +1 -1
- package/dist/__chunks/{X3XMN7RS.js.map → IZR7CUJ2.js.map} +1 -1
- package/dist/__chunks/{UHO7XMHJ.js → UMGPMP2M.js} +7 -4
- package/dist/__chunks/UMGPMP2M.js.map +1 -0
- package/dist/index.css +35 -29
- package/dist/index.css.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/__chunks/UHO7XMHJ.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Thu, 19 Jun 2025 02:23:15 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":[]}
|
|
@@ -8,18 +8,21 @@ import { forwardRef } from "react";
|
|
|
8
8
|
import classnames from "classnames";
|
|
9
9
|
|
|
10
10
|
// css-module:./Icon.module.css#css-module
|
|
11
|
-
var Icon_module_default = { "icon": "
|
|
11
|
+
var Icon_module_default = { "icon": "_icon_12p4o_1", "iconRtlMirror": "_iconRtlMirror_12p4o_9", "icon100": "_icon100_12p4o_13", "icon200": "_icon200_12p4o_18", "icon300": "_icon300_12p4o_23", "icon400": "_icon400_12p4o_28", "icon500": "_icon500_12p4o_33", "icon600": "_icon600_12p4o_38", "icon700": "_icon700_12p4o_43", "icon800": "_icon800_12p4o_48", "icon900": "_icon900_12p4o_53", "icon1000": "_icon1000_12p4o_58" };
|
|
12
12
|
|
|
13
13
|
// src/Icon/Icon.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
var Icon = forwardRef(
|
|
16
|
-
({ color = "inherit", path, size = 200 }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
({ color = "inherit", path, size = 200, rtlMirror = false }, ref) => /* @__PURE__ */ jsx(
|
|
17
17
|
"svg",
|
|
18
18
|
{
|
|
19
19
|
className: classnames(
|
|
20
20
|
Icon_module_default.icon,
|
|
21
21
|
colors_module_default[`${color}Color`],
|
|
22
|
-
Icon_module_default[`icon${size}`]
|
|
22
|
+
Icon_module_default[`icon${size}`],
|
|
23
|
+
{
|
|
24
|
+
[Icon_module_default.iconRtlMirror]: rtlMirror
|
|
25
|
+
}
|
|
23
26
|
),
|
|
24
27
|
ref,
|
|
25
28
|
viewBox: "0 0 24 24",
|
|
@@ -34,4 +37,4 @@ var Icon_default = Icon;
|
|
|
34
37
|
export {
|
|
35
38
|
Icon_default
|
|
36
39
|
};
|
|
37
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=UMGPMP2M.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"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 * Whether to mirror the icon in RTL mode.\n * @defaultValue false\n */\n rtlMirror?: boolean;\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 (\n { color = \"inherit\", path, size = 200, rtlMirror = false }: IconProps,\n ref,\n ) => (\n <svg\n className={classnames(\n styles.icon,\n colorStyles[`${color}Color`],\n styles[`icon${size}`],\n {\n [styles.iconRtlMirror]: rtlMirror,\n },\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_12p4o_1\",\"iconRtlMirror\":\"_iconRtlMirror_12p4o_9\",\"icon100\":\"_icon100_12p4o_13\",\"icon200\":\"_icon200_12p4o_18\",\"icon300\":\"_icon300_12p4o_23\",\"icon400\":\"_icon400_12p4o_28\",\"icon500\":\"_icon500_12p4o_33\",\"icon600\":\"_icon600_12p4o_38\",\"icon700\":\"_icon700_12p4o_43\",\"icon800\":\"_icon800_12p4o_48\",\"icon900\":\"_icon900_12p4o_53\",\"icon1000\":\"_icon1000_12p4o_58\"}"],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAC3B,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,iBAAgB,0BAAyB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,YAAW,qBAAoB;;;ADkE/c;AAlBN,IAAM,OAAO;AAAA,EACX,CACE,EAAE,QAAQ,WAAW,MAAM,OAAO,KAAK,YAAY,MAAM,GACzD,QAEA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,oBAAO;AAAA,QACP,sBAAY,GAAG,YAAY;AAAA,QAC3B,oBAAO,OAAO,MAAM;AAAA,QACpB;AAAA,UACE,CAAC,oBAAO,aAAa,GAAG;AAAA,QAC1B;AAAA,MACF;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":[]}
|
package/dist/index.css
CHANGED
|
@@ -2724,49 +2724,52 @@
|
|
|
2724
2724
|
}
|
|
2725
2725
|
|
|
2726
2726
|
/* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css/#css-module-data */
|
|
2727
|
-
.
|
|
2727
|
+
._icon_12p4o_1 {
|
|
2728
2728
|
display: inline-block;
|
|
2729
2729
|
fill: currentcolor;
|
|
2730
2730
|
flex-shrink: 0;
|
|
2731
2731
|
user-select: none;
|
|
2732
2732
|
}
|
|
2733
|
-
.
|
|
2733
|
+
[dir=rtl] ._icon_12p4o_1._iconRtlMirror_12p4o_9 {
|
|
2734
|
+
transform: scaleX(-1);
|
|
2735
|
+
}
|
|
2736
|
+
._icon100_12p4o_13 {
|
|
2734
2737
|
width: 16px;
|
|
2735
2738
|
height: 16px;
|
|
2736
2739
|
}
|
|
2737
|
-
.
|
|
2740
|
+
._icon200_12p4o_18 {
|
|
2738
2741
|
width: 20px;
|
|
2739
2742
|
height: 20px;
|
|
2740
2743
|
}
|
|
2741
|
-
.
|
|
2744
|
+
._icon300_12p4o_23 {
|
|
2742
2745
|
width: 24px;
|
|
2743
2746
|
height: 24px;
|
|
2744
2747
|
}
|
|
2745
|
-
.
|
|
2748
|
+
._icon400_12p4o_28 {
|
|
2746
2749
|
width: 32px;
|
|
2747
2750
|
height: 32px;
|
|
2748
2751
|
}
|
|
2749
|
-
.
|
|
2752
|
+
._icon500_12p4o_33 {
|
|
2750
2753
|
width: 48px;
|
|
2751
2754
|
height: 48px;
|
|
2752
2755
|
}
|
|
2753
|
-
.
|
|
2756
|
+
._icon600_12p4o_38 {
|
|
2754
2757
|
width: 72px;
|
|
2755
2758
|
height: 72px;
|
|
2756
2759
|
}
|
|
2757
|
-
.
|
|
2760
|
+
._icon700_12p4o_43 {
|
|
2758
2761
|
width: 100px;
|
|
2759
2762
|
height: 100px;
|
|
2760
2763
|
}
|
|
2761
|
-
.
|
|
2764
|
+
._icon800_12p4o_48 {
|
|
2762
2765
|
width: 140px;
|
|
2763
2766
|
height: 140px;
|
|
2764
2767
|
}
|
|
2765
|
-
.
|
|
2768
|
+
._icon900_12p4o_53 {
|
|
2766
2769
|
width: 200px;
|
|
2767
2770
|
height: 200px;
|
|
2768
2771
|
}
|
|
2769
|
-
.
|
|
2772
|
+
._icon1000_12p4o_58 {
|
|
2770
2773
|
width: 280px;
|
|
2771
2774
|
height: 280px;
|
|
2772
2775
|
}
|
|
@@ -3035,19 +3038,19 @@
|
|
|
3035
3038
|
}
|
|
3036
3039
|
|
|
3037
3040
|
/* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/SelectList/SelectList.module.css/#css-module-data */
|
|
3038
|
-
.
|
|
3041
|
+
._selectContainer_rxo2v_1 {
|
|
3039
3042
|
display: flex;
|
|
3040
3043
|
flex-direction: column;
|
|
3041
3044
|
gap: 8px;
|
|
3042
3045
|
}
|
|
3043
|
-
.
|
|
3046
|
+
._opacityOverlay_rxo2v_7 {
|
|
3044
3047
|
opacity: 0.5;
|
|
3045
3048
|
}
|
|
3046
|
-
.
|
|
3049
|
+
._selectWrapper_rxo2v_11 {
|
|
3047
3050
|
display: flex;
|
|
3048
3051
|
position: relative;
|
|
3049
3052
|
}
|
|
3050
|
-
.
|
|
3053
|
+
._selectBox_rxo2v_16 {
|
|
3051
3054
|
align-items: center;
|
|
3052
3055
|
appearance: none;
|
|
3053
3056
|
cursor: pointer;
|
|
@@ -3067,59 +3070,62 @@
|
|
|
3067
3070
|
outline: 0;
|
|
3068
3071
|
width: 100%;
|
|
3069
3072
|
}
|
|
3070
|
-
.
|
|
3073
|
+
._selectBoxCambio_rxo2v_30 {
|
|
3071
3074
|
border-radius: 8px;
|
|
3072
3075
|
box-sizing: border-box;
|
|
3073
3076
|
font-size: 16px;
|
|
3074
3077
|
height: 48px;
|
|
3075
|
-
padding: 12px
|
|
3078
|
+
padding-top: 12px;
|
|
3079
|
+
padding-bottom: 12px;
|
|
3080
|
+
padding-inline-start: 12px;
|
|
3081
|
+
padding-inline-end: 36px;
|
|
3076
3082
|
}
|
|
3077
|
-
.
|
|
3083
|
+
._selectMouseFocusStyling_rxo2v_41 {
|
|
3078
3084
|
border: 1px solid var(--color-base-primary-700);
|
|
3079
3085
|
box-shadow: 0 0 0 1px var(--color-base-primary-700);
|
|
3080
3086
|
}
|
|
3081
|
-
.
|
|
3087
|
+
._unselected_rxo2v_46 {
|
|
3082
3088
|
color: var(--color-base-gray-700);
|
|
3083
3089
|
}
|
|
3084
|
-
.
|
|
3090
|
+
._selected_rxo2v_50 {
|
|
3085
3091
|
color: var(--color-base-gray-800);
|
|
3086
3092
|
}
|
|
3087
|
-
.
|
|
3093
|
+
._darkBackground_rxo2v_54 {
|
|
3088
3094
|
background: var(--color-cambio-gray-900);
|
|
3089
3095
|
border: 1px solid var(--color-cambio-white-40);
|
|
3090
3096
|
color: var(--color-cambio-white-70);
|
|
3091
3097
|
}
|
|
3092
|
-
.
|
|
3098
|
+
._darkBackground_rxo2v_54:focus {
|
|
3093
3099
|
outline: none;
|
|
3094
3100
|
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
|
|
3095
3101
|
color: var(--color-cambio-white-100);
|
|
3096
3102
|
}
|
|
3097
|
-
.
|
|
3103
|
+
._arrowIcon_rxo2v_66 {
|
|
3098
3104
|
display: flex;
|
|
3099
3105
|
position: absolute;
|
|
3100
|
-
|
|
3106
|
+
inset-inline-end: 0;
|
|
3101
3107
|
top: 0;
|
|
3102
3108
|
bottom: 0;
|
|
3103
3109
|
padding-inline-end: 8px;
|
|
3104
3110
|
pointer-events: none;
|
|
3105
3111
|
}
|
|
3106
|
-
.
|
|
3112
|
+
._selectBox_rxo2v_16:disabled {
|
|
3107
3113
|
cursor: auto;
|
|
3108
3114
|
}
|
|
3109
|
-
.
|
|
3115
|
+
._selectErrorCambio_rxo2v_80 {
|
|
3110
3116
|
color: var(--color-cambio-destructive-900);
|
|
3111
3117
|
border-color: var(--color-cambio-destructive-700);
|
|
3112
3118
|
}
|
|
3113
|
-
.
|
|
3119
|
+
._selectColorwhite_rxo2v_86 {
|
|
3114
3120
|
background-color: var(--color-base-white);
|
|
3115
3121
|
border: 1px solid var(--color-cambio-gray-370);
|
|
3116
3122
|
color: var(--color-base-gray-700);
|
|
3117
3123
|
}
|
|
3118
|
-
.
|
|
3124
|
+
._transparentInputError_rxo2v_92 {
|
|
3119
3125
|
color: var(--color-cambio-destructive-370);
|
|
3120
3126
|
border: 1px solid var(--color-cambio-destructive-300);
|
|
3121
3127
|
}
|
|
3122
|
-
.
|
|
3128
|
+
._transparenInputError_rxo2v_97::placeholder {
|
|
3123
3129
|
color: var(--color-cambio-destructive-370);
|
|
3124
3130
|
}
|
|
3125
3131
|
|