beca-ui 2.0.19-beta.78 → 2.0.19-beta.79

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 (2) hide show
  1. package/dist/beca-ui.js +43 -8
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -30321,7 +30321,7 @@ var sentinelStyle$1 = {
30321
30321
  }));
30322
30322
  });
30323
30323
  process.env.NODE_ENV !== "production" && (Panel$2.displayName = "Panel");
30324
- var Content$3 = /* @__PURE__ */ React$4.forwardRef(function(a, s) {
30324
+ var Content$4 = /* @__PURE__ */ React$4.forwardRef(function(a, s) {
30325
30325
  var c = a.prefixCls, u = a.title, d = a.style, f = a.className, p = a.visible, h = a.forceRender, m = a.destroyOnClose, g = a.motionName, y = a.ariaId, C = a.onVisibleChanged, x = a.mousePosition, _ = useRef(), E = React$4.useState(), R = _slicedToArray$1(E, 2), O = R[0], k = R[1], A = {};
30326
30326
  O && (A.transformOrigin = O);
30327
30327
  function I() {
@@ -30350,7 +30350,7 @@ var Content$3 = /* @__PURE__ */ React$4.forwardRef(function(a, s) {
30350
30350
  }));
30351
30351
  });
30352
30352
  });
30353
- Content$3.displayName = "Content";
30353
+ Content$4.displayName = "Content";
30354
30354
  var Mask$2 = function(s) {
30355
30355
  var c = s.prefixCls, u = s.style, d = s.visible, f = s.maskProps, p = s.motionName, h = s.className;
30356
30356
  return /* @__PURE__ */ React$4.createElement(CSSMotion, {
@@ -30450,7 +30450,7 @@ var Mask$2 = function(s) {
30450
30450
  ref: ge,
30451
30451
  onClick: Ve,
30452
30452
  style: pt
30453
- }, _), /* @__PURE__ */ React$4.createElement(Content$3, _extends$j({}, s, {
30453
+ }, _), /* @__PURE__ */ React$4.createElement(Content$4, _extends$j({}, s, {
30454
30454
  onMouseDown: ft,
30455
30455
  onMouseUp: It,
30456
30456
  ref: Ne,
@@ -62639,7 +62639,7 @@ const FloatButtonContent = (a) => {
62639
62639
  }, s), c && /* @__PURE__ */ React__default$1.createElement("div", {
62640
62640
  className: `${u}-description`
62641
62641
  }, c)) : f);
62642
- }, Content$2 = /* @__PURE__ */ memo(FloatButtonContent), getOffset$2 = (a) => a === 0 ? 0 : a - Math.sqrt(Math.pow(a, 2) / 2), floatButtonGroupMotion = (a) => {
62642
+ }, Content$3 = /* @__PURE__ */ memo(FloatButtonContent), getOffset$2 = (a) => a === 0 ? 0 : a - Math.sqrt(Math.pow(a, 2) / 2), floatButtonGroupMotion = (a) => {
62643
62643
  const {
62644
62644
  componentCls: s,
62645
62645
  floatButtonSize: c,
@@ -63173,7 +63173,7 @@ const floatButtonPrefixCls = "float-btn", InternalFloatButton = /* @__PURE__ */
63173
63173
  }), [k, g, m, p]);
63174
63174
  let Z = /* @__PURE__ */ React__default$1.createElement("div", {
63175
63175
  className: `${k}-body`
63176
- }, /* @__PURE__ */ React__default$1.createElement(Content$2, Object.assign({}, ee)));
63176
+ }, /* @__PURE__ */ React__default$1.createElement(Content$3, Object.assign({}, ee)));
63177
63177
  if ("badge" in a && (Z = /* @__PURE__ */ React__default$1.createElement(Badge$1, Object.assign({}, X), Z)), "tooltip" in a && (Z = /* @__PURE__ */ React__default$1.createElement(Tooltip$1, {
63178
63178
  title: y,
63179
63179
  placement: R === "rtl" ? "right" : "left"
@@ -65999,14 +65999,14 @@ const Basic = /* @__PURE__ */ React$4.forwardRef((a, s) => {
65999
65999
  suffixCls: "footer",
66000
66000
  tagName: "footer",
66001
66001
  displayName: "Footer"
66002
- })(Basic), Content$1 = generator({
66002
+ })(Basic), Content$2 = generator({
66003
66003
  suffixCls: "content",
66004
66004
  tagName: "main",
66005
66005
  displayName: "Content"
66006
66006
  })(Basic), Layout = Layout$1;
66007
66007
  Layout.Header = Header$4;
66008
66008
  Layout.Footer = Footer$4;
66009
- Layout.Content = Content$1;
66009
+ Layout.Content = Content$2;
66010
66010
  Layout.Sider = Sider;
66011
66011
  Layout._InternalSiderContext = SiderContext;
66012
66012
  const extendsObject = function() {
@@ -84044,6 +84044,9 @@ const Button = (a) => {
84044
84044
  break;
84045
84045
  }
84046
84046
  return y;
84047
+ }, Content$1 = (a) => {
84048
+ const { children: s, ...c } = a;
84049
+ return /* @__PURE__ */ jsx("div", { ...c, children: /* @__PURE__ */ jsx("div", { className: "content-wrap", children: /* @__PURE__ */ jsx("div", { className: "content", children: s }) }) });
84047
84050
  }, APPLE_FONT = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', INTER_FONT = '"Inter", sans-serif;', BVP_FONT = '"BeVietnamPro", sans-serif;', mobileWidth = 992, SYSTEM_COLORS = {
84048
84051
  colorPrimary: "#2174cd",
84049
84052
  colorSuccess: "var(--success-color-5)",
@@ -84381,6 +84384,20 @@ function useTranslation$1(a) {
84381
84384
  s.lng ? loadLanguages(f, s.lng, g, () => I()) : loadNamespaces(f, g, () => I());
84382
84385
  });
84383
84386
  }
84387
+ function I18nextProvider(a) {
84388
+ let {
84389
+ i18n: s,
84390
+ defaultNS: c,
84391
+ children: u
84392
+ } = a;
84393
+ const d = useMemo$1(() => ({
84394
+ i18n: s,
84395
+ defaultNS: c
84396
+ }), [s, c]);
84397
+ return createElement(I18nContext.Provider, {
84398
+ value: d
84399
+ }, u);
84400
+ }
84384
84401
  const consoleLogger = {
84385
84402
  type: "logger",
84386
84403
  log(a) {
@@ -86040,7 +86057,25 @@ const AppContext = createContext$1({
86040
86057
  fontFamily: ze.fontFamily
86041
86058
  }
86042
86059
  },
86043
- children: c
86060
+ children: /* @__PURE__ */ jsx(
86061
+ AppContext.Provider,
86062
+ {
86063
+ value: {
86064
+ LinkComponent: P,
86065
+ mainLayoutConfig: ve,
86066
+ mainTheme: ue,
86067
+ userConfig: ye,
86068
+ isHomeApp: ge
86069
+ },
86070
+ children: /* @__PURE__ */ jsx(I18nextProvider, { i18n, children: /* @__PURE__ */ jsx(
86071
+ Content$1,
86072
+ {
86073
+ className: `beca-main-content${k ? " collapsed" : ""}`,
86074
+ children: c
86075
+ }
86076
+ ) })
86077
+ }
86078
+ )
86044
86079
  }
86045
86080
  );
86046
86081
  }, MainLayout = forwardRef(MainLayoutComponent), DEFAULT_MAIN_LAYOUT_CONFIG = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.0.19-beta.78",
3
+ "version": "2.0.19-beta.79",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {