@cambly/syntax-core 4.5.0 → 4.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.
- package/dist/index.d.ts +75 -76
- package/dist/index.js +22 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -144,8 +144,9 @@ var padding_module_default = { "paddingX0": "_paddingX0_1aqye_2", "paddingX1": "
|
|
|
144
144
|
var colors_module_default = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
145
145
|
|
|
146
146
|
// src/Box/Box.tsx
|
|
147
|
+
import { forwardRef } from "react";
|
|
147
148
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
148
|
-
function Box(props) {
|
|
149
|
+
var Box_default = forwardRef(function Box(props, ref) {
|
|
149
150
|
var _c;
|
|
150
151
|
const _a = props, { as: BoxElement = "div", children } = _a, boxProps = __objRest(_a, ["as", "children"]);
|
|
151
152
|
const _b = boxProps, {
|
|
@@ -329,8 +330,8 @@ function Box(props) {
|
|
|
329
330
|
}
|
|
330
331
|
return acc;
|
|
331
332
|
}, {});
|
|
332
|
-
return /* @__PURE__ */ jsx2(BoxElement, __spreadProps(__spreadValues(__spreadValues({}, parsedProps), passthroughProps), { children }));
|
|
333
|
-
}
|
|
333
|
+
return /* @__PURE__ */ jsx2(BoxElement, __spreadProps(__spreadValues(__spreadValues({}, parsedProps), passthroughProps), { ref, children }));
|
|
334
|
+
});
|
|
334
335
|
|
|
335
336
|
// src/Button/Button.tsx
|
|
336
337
|
var import_classnames3 = __toESM(require_classnames());
|
|
@@ -632,7 +633,13 @@ var hasSetupGlobalListeners = false;
|
|
|
632
633
|
var currentModality = null;
|
|
633
634
|
var changeHandlers = /* @__PURE__ */ new Set();
|
|
634
635
|
var hasEventBeforeFocus = false;
|
|
635
|
-
var isMac =
|
|
636
|
+
var isMac = (
|
|
637
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
638
|
+
typeof window !== "undefined" && window.navigator != null ? (
|
|
639
|
+
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
640
|
+
/^Mac/.test(window.navigator.platform)
|
|
641
|
+
) : false
|
|
642
|
+
);
|
|
636
643
|
function isValidKey(e) {
|
|
637
644
|
return !(e.metaKey || !isMac && e.altKey || e.ctrlKey);
|
|
638
645
|
}
|
|
@@ -989,7 +996,7 @@ var SelectList_default = SelectList;
|
|
|
989
996
|
SelectList.Option = SelectOption_default;
|
|
990
997
|
export {
|
|
991
998
|
Avatar_default as Avatar,
|
|
992
|
-
Box,
|
|
999
|
+
Box_default as Box,
|
|
993
1000
|
Button_default as Button,
|
|
994
1001
|
ButtonGroup_default as ButtonGroup,
|
|
995
1002
|
Card_default as Card,
|