beca-ui 2.0.0-beta.55 → 2.0.0-beta.57

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/beca-ui.js CHANGED
@@ -92791,76 +92791,87 @@ const AppContext = createContext$1({}), MainLayout = (a) => {
92791
92791
  ne > 10 ? W(!0) : W(!1);
92792
92792
  };
92793
92793
  return /* @__PURE__ */ jsx(
92794
- AppContext.Provider,
92794
+ ConfigProvider$1,
92795
92795
  {
92796
- value: {
92797
- LinkComponent: P
92796
+ language: k ?? "vi",
92797
+ theme: {
92798
+ token: {
92799
+ fontFamily: "'Inter', sans-serif"
92800
+ }
92798
92801
  },
92799
- children: /* @__PURE__ */ jsx(I18nextProvider, { i18n, children: /* @__PURE__ */ jsxs("div", { className: "beca-main-layout", children: [
92800
- S,
92801
- !S && B.length > 0 && /* @__PURE__ */ jsx(
92802
- SideBarMenu,
92803
- {
92804
- collapsed: E,
92805
- toggleCollapse: X,
92806
- sideBarMenus: B,
92807
- activeMenu: c,
92808
- openMenuKeys: u,
92809
- pathname: p,
92810
- isMobile: K,
92811
- homePageUrl: R,
92812
- LinkComponent: P,
92813
- logoUrl: g
92814
- }
92815
- ),
92816
- /* @__PURE__ */ jsxs(
92817
- Layout$1,
92818
- {
92819
- className: classNames$4(
92820
- "layout-content-wrapper",
92821
- K && "is-mobile",
92822
- S && "custom-sidebar-layout"
92802
+ children: /* @__PURE__ */ jsx(
92803
+ AppContext.Provider,
92804
+ {
92805
+ value: {
92806
+ LinkComponent: P
92807
+ },
92808
+ children: /* @__PURE__ */ jsx(I18nextProvider, { i18n, children: /* @__PURE__ */ jsxs("div", { className: "beca-main-layout", children: [
92809
+ S,
92810
+ !S && B.length > 0 && /* @__PURE__ */ jsx(
92811
+ SideBarMenu,
92812
+ {
92813
+ collapsed: E,
92814
+ toggleCollapse: X,
92815
+ sideBarMenus: B,
92816
+ activeMenu: c,
92817
+ openMenuKeys: u,
92818
+ pathname: p,
92819
+ isMobile: K,
92820
+ homePageUrl: R,
92821
+ LinkComponent: P,
92822
+ logoUrl: g
92823
+ }
92823
92824
  ),
92824
- onScroll: (ne) => G(ne.currentTarget.scrollTop),
92825
- children: [
92826
- /* @__PURE__ */ jsx(
92827
- Header$3,
92828
- {
92829
- notification: I,
92830
- collapsed: E,
92831
- toggleCollapse: X,
92832
- avatarUrl: h,
92833
- avatarThumbnailUrl: m,
92834
- logoUrl: g,
92835
- applicationsCardData: v,
92836
- currentApp: C,
92837
- isMobile: K,
92838
- isShowCollapseButton: B.length > 0 || S !== void 0,
92839
- headerTitle: b,
92840
- profileMenuItems: _,
92841
- homePageUrl: R,
92842
- customHeader: T,
92843
- supportContactData: f,
92844
- LinkComponent: P,
92845
- isSwitchTheme: O,
92846
- theme: M,
92847
- onChangeLocale: F,
92848
- lang: k,
92849
- onSwitchedTheme: D,
92850
- scrolled: V
92851
- }
92852
- ),
92853
- /* @__PURE__ */ jsx(
92854
- Content$1,
92855
- {
92856
- className: `beca-main-content${E ? " collapsed" : ""}`,
92857
- children: s
92858
- }
92859
- )
92860
- ]
92861
- }
92862
- )
92863
- ] }) })
92825
+ /* @__PURE__ */ jsxs(
92826
+ Layout$1,
92827
+ {
92828
+ className: classNames$4(
92829
+ "layout-content-wrapper",
92830
+ K && "is-mobile",
92831
+ S && "custom-sidebar-layout"
92832
+ ),
92833
+ onScroll: (ne) => G(ne.currentTarget.scrollTop),
92834
+ children: [
92835
+ /* @__PURE__ */ jsx(
92836
+ Header$3,
92837
+ {
92838
+ notification: I,
92839
+ collapsed: E,
92840
+ toggleCollapse: X,
92841
+ avatarUrl: h,
92842
+ avatarThumbnailUrl: m,
92843
+ logoUrl: g,
92844
+ applicationsCardData: v,
92845
+ currentApp: C,
92846
+ isMobile: K,
92847
+ isShowCollapseButton: B.length > 0 || S !== void 0,
92848
+ headerTitle: b,
92849
+ profileMenuItems: _,
92850
+ homePageUrl: R,
92851
+ customHeader: T,
92852
+ supportContactData: f,
92853
+ LinkComponent: P,
92854
+ isSwitchTheme: O,
92855
+ theme: M,
92856
+ onChangeLocale: F,
92857
+ lang: k,
92858
+ onSwitchedTheme: D,
92859
+ scrolled: V
92860
+ }
92861
+ ),
92862
+ /* @__PURE__ */ jsx(
92863
+ Content$1,
92864
+ {
92865
+ className: `beca-main-content${E ? " collapsed" : ""}`,
92866
+ children: s
92867
+ }
92868
+ )
92869
+ ]
92870
+ }
92871
+ )
92872
+ ] }) })
92873
+ }
92874
+ )
92864
92875
  }
92865
92876
  );
92866
92877
  }, getClassName$H = (a) => {