aq-fe-framework 0.1.142 → 0.1.144

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.
@@ -599,15 +599,9 @@ function MyActionIconViewPDF(_a) {
599
599
  // src/components/ActionIcons/SwitchTheme/MySwitchTheme.tsx
600
600
  import { ActionIcon as ActionIcon7, useComputedColorScheme, useMantineColorScheme } from "@mantine/core";
601
601
  import { IconMoon, IconSun } from "@tabler/icons-react";
602
- import cx from "clsx";
603
-
604
- // src/components/ActionIcons/SwitchTheme/css.module.css
605
- var css_default = {};
606
-
607
- // src/components/ActionIcons/SwitchTheme/MySwitchTheme.tsx
608
602
  import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
609
603
  function MySwitchTheme() {
610
- const { setColorScheme } = useMantineColorScheme();
604
+ const { setColorScheme, colorScheme } = useMantineColorScheme();
611
605
  const computedColorScheme = useComputedColorScheme("light", { getInitialValueInEffect: true });
612
606
  return /* @__PURE__ */ jsxs7(
613
607
  ActionIcon7,
@@ -616,10 +610,10 @@ function MySwitchTheme() {
616
610
  variant: "default",
617
611
  size: "lg",
618
612
  radius: "md",
619
- "aria-label": "Toggle color scheme",
613
+ "aria-label": "Toggle color scheme ",
620
614
  children: [
621
- /* @__PURE__ */ jsx15(IconSun, { className: cx(css_default.icon, css_default.light), stroke: 1.5 }),
622
- /* @__PURE__ */ jsx15(IconMoon, { className: cx(css_default.icon, css_default.dark), stroke: 1.5 })
615
+ colorScheme == "dark" && /* @__PURE__ */ jsx15(IconSun, { width: "22px", height: "22px", stroke: 1.5 }),
616
+ colorScheme == "light" && /* @__PURE__ */ jsx15(IconMoon, { width: "22px", height: "22px", stroke: 1.5 })
623
617
  ]
624
618
  }
625
619
  );
@@ -7287,7 +7281,7 @@ import {
7287
7281
  import Link4 from "next/link";
7288
7282
 
7289
7283
  // src/components/Layouts/HeaderMegaMenu/css.module.css
7290
- var css_default2 = {};
7284
+ var css_default = {};
7291
7285
 
7292
7286
  // src/components/Layouts/HeaderMegaMenu/HeaderMegaMenuStore.ts
7293
7287
  var useStore4 = createGenericStore({
@@ -7338,7 +7332,7 @@ function HeaderMegaMenu({ children, menus }) {
7338
7332
  const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
7339
7333
  const HeaderMegaMenuStore = useHeaderMegaMenuStore();
7340
7334
  const theme = useMantineTheme();
7341
- const links = mockdata.map((item) => /* @__PURE__ */ jsx53(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs29(Group14, { wrap: "nowrap", align: "flex-start", children: [
7335
+ const links = mockdata.map((item) => /* @__PURE__ */ jsx53(UnstyledButton, { className: css_default.subLink, children: /* @__PURE__ */ jsxs29(Group14, { wrap: "nowrap", align: "flex-start", children: [
7342
7336
  /* @__PURE__ */ jsx53(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx53(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
7343
7337
  /* @__PURE__ */ jsxs29("div", { children: [
7344
7338
  /* @__PURE__ */ jsx53(Text14, { size: "sm", fw: 500, children: item.title }),
@@ -7346,7 +7340,7 @@ function HeaderMegaMenu({ children, menus }) {
7346
7340
  ] })
7347
7341
  ] }) }, item.title));
7348
7342
  return /* @__PURE__ */ jsxs29(Box5, { children: [
7349
- /* @__PURE__ */ jsx53("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs29(Group14, { justify: "space-between", h: "100%", children: [
7343
+ /* @__PURE__ */ jsx53("header", { className: css_default.header, children: /* @__PURE__ */ jsxs29(Group14, { justify: "space-between", h: "100%", children: [
7350
7344
  /* @__PURE__ */ jsxs29(Group14, { children: [
7351
7345
  /* @__PURE__ */ jsx53(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
7352
7346
  /* @__PURE__ */ jsx53(Group14, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx53(Button16, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
@@ -1,21 +1,3 @@
1
- /* src/components/ActionIcons/SwitchTheme/css.module.css */
2
- .icon {
3
- width: calc(1.375rem * var(--mantine-scale));
4
- height: calc(1.375rem * var(--mantine-scale));
5
- }
6
- [data-mantine-color-scheme=dark] .dark {
7
- display: none;
8
- }
9
- [data-mantine-color-scheme=light] .dark {
10
- display: block;
11
- }
12
- [data-mantine-color-scheme=light] .light {
13
- display: none;
14
- }
15
- [data-mantine-color-scheme=dark] .light {
16
- display: block;
17
- }
18
-
19
1
  /* src/components/Layouts/HeaderMegaMenu/css.module.css */
20
2
  .header {
21
3
  position: sticky;
@@ -66,7 +66,7 @@ import {
66
66
  useS_BasicAppShell,
67
67
  useS_ButtonImport,
68
68
  utils_layout_getItemsWithoutLinks
69
- } from "../chunk-A2YHFDYY.mjs";
69
+ } from "../chunk-MOP3KCFQ.mjs";
70
70
  import "../chunk-Z6OQG54Q.mjs";
71
71
  import "../chunk-Y3YGC5IH.mjs";
72
72
  import "../chunk-5U2JSHSJ.mjs";
@@ -1,21 +1,3 @@
1
- /* src/components/ActionIcons/SwitchTheme/css.module.css */
2
- .icon {
3
- width: calc(1.375rem * var(--mantine-scale));
4
- height: calc(1.375rem * var(--mantine-scale));
5
- }
6
- [data-mantine-color-scheme=dark] .dark {
7
- display: none;
8
- }
9
- [data-mantine-color-scheme=light] .dark {
10
- display: block;
11
- }
12
- [data-mantine-color-scheme=light] .light {
13
- display: none;
14
- }
15
- [data-mantine-color-scheme=dark] .light {
16
- display: block;
17
- }
18
-
19
1
  /* src/components/Layouts/HeaderMegaMenu/css.module.css */
20
2
  .header {
21
3
  position: sticky;
@@ -24,7 +24,7 @@ import {
24
24
  groupToTwoLevels,
25
25
  useS_authenticate,
26
26
  utils_layout_getItemsWithoutLinks
27
- } from "../chunk-A2YHFDYY.mjs";
27
+ } from "../chunk-MOP3KCFQ.mjs";
28
28
  import {
29
29
  baseAxios_default,
30
30
  useQ_AQ_GetAQModule
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.142",
25
+ "version": "0.1.144",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"