@cambly/syntax-core 7.11.1 → 7.13.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.
- package/dist/index.css +57 -54
- package/dist/index.css.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var import_classnames2 = __toESM(require_classnames());
|
|
|
166
166
|
var Typography_module_default = { "typography": "_typography_1vnry_1", "size100": "_size100_1vnry_8", "size200": "_size200_1vnry_12", "size300": "_size300_1vnry_16", "size500": "_size500_1vnry_20", "size600": "_size600_1vnry_24", "size700": "_size700_1vnry_28", "size800": "_size800_1vnry_32", "center": "_center_1vnry_37", "forceLeft": "_forceLeft_1vnry_41", "forceRight": "_forceRight_1vnry_45", "start": "_start_1vnry_49", "end": "_end_1vnry_53", "bold": "_bold_1vnry_58", "regular": "_regular_1vnry_62", "interactive": "_interactive_1vnry_66", "semiBold": "_semiBold_1vnry_70", "heavy": "_heavy_1vnry_74", "underline": "_underline_1vnry_78", "inline": "_inline_1vnry_82", "uppercase": "_uppercase_1vnry_86", "lineClamp": "_lineClamp_1vnry_90" };
|
|
167
167
|
|
|
168
168
|
// css-module:../colors/colors.module.css#css-module
|
|
169
|
-
var colors_module_default = { "inheritColor": "
|
|
169
|
+
var colors_module_default = { "inheritColor": "_inheritColor_11l4y_2", "destructive700Color": "_destructive700Color_11l4y_6", "gray700Color": "_gray700Color_11l4y_10", "gray900Color": "_gray900Color_11l4y_14", "primary700Color": "_primary700Color_11l4y_18", "success700Color": "_success700Color_11l4y_22", "whiteColor": "_whiteColor_11l4y_26", "blackBackgroundColor": "_blackBackgroundColor_11l4y_31", "destructive100BackgroundColor": "_destructive100BackgroundColor_11l4y_35", "destructive200BackgroundColor": "_destructive200BackgroundColor_11l4y_39", "destructive300BackgroundColor": "_destructive300BackgroundColor_11l4y_43", "destructive700BackgroundColor": "_destructive700BackgroundColor_11l4y_47", "destructive800BackgroundColor": "_destructive800BackgroundColor_11l4y_51", "destructive900BackgroundColor": "_destructive900BackgroundColor_11l4y_55", "gray10BackgroundColor": "_gray10BackgroundColor_11l4y_59", "gray30BackgroundColor": "_gray30BackgroundColor_11l4y_63", "gray60BackgroundColor": "_gray60BackgroundColor_11l4y_67", "gray80BackgroundColor": "_gray80BackgroundColor_11l4y_71", "gray100BackgroundColor": "_gray100BackgroundColor_11l4y_75", "gray200BackgroundColor": "_gray200BackgroundColor_11l4y_79", "gray300BackgroundColor": "_gray300BackgroundColor_11l4y_83", "gray700BackgroundColor": "_gray700BackgroundColor_11l4y_87", "gray800BackgroundColor": "_gray800BackgroundColor_11l4y_91", "gray900BackgroundColor": "_gray900BackgroundColor_11l4y_95", "orange100BackgroundColor": "_orange100BackgroundColor_11l4y_99", "orange200BackgroundColor": "_orange200BackgroundColor_11l4y_103", "orange300BackgroundColor": "_orange300BackgroundColor_11l4y_107", "orange700BackgroundColor": "_orange700BackgroundColor_11l4y_111", "orange800BackgroundColor": "_orange800BackgroundColor_11l4y_115", "orange900BackgroundColor": "_orange900BackgroundColor_11l4y_119", "primary100BackgroundColor": "_primary100BackgroundColor_11l4y_123", "primary200BackgroundColor": "_primary200BackgroundColor_11l4y_127", "primary300BackgroundColor": "_primary300BackgroundColor_11l4y_131", "primary700BackgroundColor": "_primary700BackgroundColor_11l4y_135", "primary800BackgroundColor": "_primary800BackgroundColor_11l4y_139", "primary900BackgroundColor": "_primary900BackgroundColor_11l4y_143", "success100BackgroundColor": "_success100BackgroundColor_11l4y_147", "success200BackgroundColor": "_success200BackgroundColor_11l4y_151", "success300BackgroundColor": "_success300BackgroundColor_11l4y_155", "success700BackgroundColor": "_success700BackgroundColor_11l4y_159", "success800BackgroundColor": "_success800BackgroundColor_11l4y_163", "success900BackgroundColor": "_success900BackgroundColor_11l4y_167", "purple100BackgroundColor": "_purple100BackgroundColor_11l4y_171", "purple200BackgroundColor": "_purple200BackgroundColor_11l4y_175", "purple300BackgroundColor": "_purple300BackgroundColor_11l4y_179", "purple700BackgroundColor": "_purple700BackgroundColor_11l4y_183", "purple800BackgroundColor": "_purple800BackgroundColor_11l4y_187", "purple900BackgroundColor": "_purple900BackgroundColor_11l4y_191", "whiteBackgroundColor": "_whiteBackgroundColor_11l4y_195", "yellow100BackgroundColor": "_yellow100BackgroundColor_11l4y_199", "yellow200BackgroundColor": "_yellow200BackgroundColor_11l4y_203", "yellow300BackgroundColor": "_yellow300BackgroundColor_11l4y_207", "yellow700BackgroundColor": "_yellow700BackgroundColor_11l4y_211", "yellow800BackgroundColor": "_yellow800BackgroundColor_11l4y_215", "yellow900BackgroundColor": "_yellow900BackgroundColor_11l4y_219" };
|
|
170
170
|
|
|
171
171
|
// src/Typography/Typography.tsx
|
|
172
172
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -182,6 +182,8 @@ function textColor(color) {
|
|
|
182
182
|
return colors_module_default.primary700Color;
|
|
183
183
|
case "destructive-primary":
|
|
184
184
|
return colors_module_default.destructive700Color;
|
|
185
|
+
case "success":
|
|
186
|
+
return colors_module_default.success700Color;
|
|
185
187
|
default:
|
|
186
188
|
return colors_module_default.gray900Color;
|
|
187
189
|
}
|
|
@@ -479,7 +481,7 @@ var import_react2 = require("react");
|
|
|
479
481
|
var import_classnames4 = __toESM(require_classnames());
|
|
480
482
|
|
|
481
483
|
// css-module:./colors.module.css#css-module
|
|
482
|
-
var colors_module_default2 = { "inheritColor": "
|
|
484
|
+
var colors_module_default2 = { "inheritColor": "_inheritColor_11l4y_2", "destructive700Color": "_destructive700Color_11l4y_6", "gray700Color": "_gray700Color_11l4y_10", "gray900Color": "_gray900Color_11l4y_14", "primary700Color": "_primary700Color_11l4y_18", "success700Color": "_success700Color_11l4y_22", "whiteColor": "_whiteColor_11l4y_26", "blackBackgroundColor": "_blackBackgroundColor_11l4y_31", "destructive100BackgroundColor": "_destructive100BackgroundColor_11l4y_35", "destructive200BackgroundColor": "_destructive200BackgroundColor_11l4y_39", "destructive300BackgroundColor": "_destructive300BackgroundColor_11l4y_43", "destructive700BackgroundColor": "_destructive700BackgroundColor_11l4y_47", "destructive800BackgroundColor": "_destructive800BackgroundColor_11l4y_51", "destructive900BackgroundColor": "_destructive900BackgroundColor_11l4y_55", "gray10BackgroundColor": "_gray10BackgroundColor_11l4y_59", "gray30BackgroundColor": "_gray30BackgroundColor_11l4y_63", "gray60BackgroundColor": "_gray60BackgroundColor_11l4y_67", "gray80BackgroundColor": "_gray80BackgroundColor_11l4y_71", "gray100BackgroundColor": "_gray100BackgroundColor_11l4y_75", "gray200BackgroundColor": "_gray200BackgroundColor_11l4y_79", "gray300BackgroundColor": "_gray300BackgroundColor_11l4y_83", "gray700BackgroundColor": "_gray700BackgroundColor_11l4y_87", "gray800BackgroundColor": "_gray800BackgroundColor_11l4y_91", "gray900BackgroundColor": "_gray900BackgroundColor_11l4y_95", "orange100BackgroundColor": "_orange100BackgroundColor_11l4y_99", "orange200BackgroundColor": "_orange200BackgroundColor_11l4y_103", "orange300BackgroundColor": "_orange300BackgroundColor_11l4y_107", "orange700BackgroundColor": "_orange700BackgroundColor_11l4y_111", "orange800BackgroundColor": "_orange800BackgroundColor_11l4y_115", "orange900BackgroundColor": "_orange900BackgroundColor_11l4y_119", "primary100BackgroundColor": "_primary100BackgroundColor_11l4y_123", "primary200BackgroundColor": "_primary200BackgroundColor_11l4y_127", "primary300BackgroundColor": "_primary300BackgroundColor_11l4y_131", "primary700BackgroundColor": "_primary700BackgroundColor_11l4y_135", "primary800BackgroundColor": "_primary800BackgroundColor_11l4y_139", "primary900BackgroundColor": "_primary900BackgroundColor_11l4y_143", "success100BackgroundColor": "_success100BackgroundColor_11l4y_147", "success200BackgroundColor": "_success200BackgroundColor_11l4y_151", "success300BackgroundColor": "_success300BackgroundColor_11l4y_155", "success700BackgroundColor": "_success700BackgroundColor_11l4y_159", "success800BackgroundColor": "_success800BackgroundColor_11l4y_163", "success900BackgroundColor": "_success900BackgroundColor_11l4y_167", "purple100BackgroundColor": "_purple100BackgroundColor_11l4y_171", "purple200BackgroundColor": "_purple200BackgroundColor_11l4y_175", "purple300BackgroundColor": "_purple300BackgroundColor_11l4y_179", "purple700BackgroundColor": "_purple700BackgroundColor_11l4y_183", "purple800BackgroundColor": "_purple800BackgroundColor_11l4y_187", "purple900BackgroundColor": "_purple900BackgroundColor_11l4y_191", "whiteBackgroundColor": "_whiteBackgroundColor_11l4y_195", "yellow100BackgroundColor": "_yellow100BackgroundColor_11l4y_199", "yellow200BackgroundColor": "_yellow200BackgroundColor_11l4y_203", "yellow300BackgroundColor": "_yellow300BackgroundColor_11l4y_207", "yellow700BackgroundColor": "_yellow700BackgroundColor_11l4y_211", "yellow800BackgroundColor": "_yellow800BackgroundColor_11l4y_215", "yellow900BackgroundColor": "_yellow900BackgroundColor_11l4y_219" };
|
|
483
485
|
|
|
484
486
|
// src/colors/backgroundColor.ts
|
|
485
487
|
function backgroundColor(color) {
|
|
@@ -1195,7 +1197,7 @@ function Layer({
|
|
|
1195
1197
|
children,
|
|
1196
1198
|
zIndex = 1
|
|
1197
1199
|
}) {
|
|
1198
|
-
return (0, import_react_dom.createPortal)(
|
|
1200
|
+
return typeof document !== "undefined" ? (0, import_react_dom.createPortal)(
|
|
1199
1201
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1200
1202
|
Box_default,
|
|
1201
1203
|
{
|
|
@@ -1208,7 +1210,7 @@ function Layer({
|
|
|
1208
1210
|
}
|
|
1209
1211
|
),
|
|
1210
1212
|
document.body
|
|
1211
|
-
);
|
|
1213
|
+
) : null;
|
|
1212
1214
|
}
|
|
1213
1215
|
|
|
1214
1216
|
// css-module:./Modal.module.css#css-module
|