qt-ui-kit 1.0.30 → 1.0.31

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.mjs CHANGED
@@ -15635,33 +15635,64 @@ function QTLogo({ variant }) {
15635
15635
  // src/components/molecules/buttons/nav_button/main_nav_button/main_nav_button.tsx
15636
15636
  import clsx5 from "clsx";
15637
15637
  import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
15638
- function MainNavButton({ icon, label, active }) {
15639
- return /* @__PURE__ */ jsxs15("div", { className: "w-min h-min flex flex-none flex-col place-items-center gap-2", children: [
15640
- /* @__PURE__ */ jsx22(
15641
- "div",
15642
- {
15643
- className: clsx5(
15644
- "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl border-2 hover:border-qtpurple-500",
15645
- active ? "border-qtpurple-500 qt-drop-shadow-100 bg-qtpurple-200" : "border-qtpurple-300 bg-white"
15638
+ function MainNavButton({ icon, label, active, onClick }) {
15639
+ return /* @__PURE__ */ jsxs15(
15640
+ "div",
15641
+ {
15642
+ className: "w-min h-min flex flex-none flex-col place-items-center gap-2",
15643
+ onClick,
15644
+ children: [
15645
+ /* @__PURE__ */ jsx22(
15646
+ "div",
15647
+ {
15648
+ className: clsx5(
15649
+ "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl border-2 hover:border-qtpurple-500",
15650
+ active ? "border-qtpurple-500 qt-drop-shadow-100 bg-qtpurple-200" : "border-qtpurple-300 bg-white"
15651
+ ),
15652
+ children: icon
15653
+ }
15646
15654
  ),
15647
- children: icon
15648
- }
15649
- ),
15650
- /* @__PURE__ */ jsx22("div", { className: "label-3-bold text-qtpurple-500", children: label })
15651
- ] });
15655
+ /* @__PURE__ */ jsx22("div", { className: "label-3-bold text-qtpurple-500", children: label })
15656
+ ]
15657
+ }
15658
+ );
15652
15659
  }
15653
15660
 
15654
15661
  // src/components/organisms/nav_bar/nav_bar.tsx
15655
15662
  import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
15656
- function NavBar({}) {
15663
+ function NavBar({ buttons = {} }) {
15657
15664
  return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col w-[66px] bg-qtneutral-100 navbar-shadow h-full py-12 place-items-center place-content-between gap-8", children: [
15658
15665
  /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-8", children: [
15659
15666
  /* @__PURE__ */ jsx23(QTLogo, { variant: "monogram" }),
15660
- /* @__PURE__ */ jsx23(MainNavButton, { active: true, label: "Queue", icon: /* @__PURE__ */ jsx23(Queue, { color: "#6558FD" }) })
15667
+ /* @__PURE__ */ jsx23(
15668
+ MainNavButton,
15669
+ {
15670
+ active: buttons.queue?.active,
15671
+ label: "Queue",
15672
+ icon: /* @__PURE__ */ jsx23(Queue, { color: "#6558FD" }),
15673
+ onClick: buttons.queue?.onClick
15674
+ }
15675
+ )
15661
15676
  ] }),
15662
15677
  /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-8", children: [
15663
- /* @__PURE__ */ jsx23(MainNavButton, { label: "Account", icon: /* @__PURE__ */ jsx23(Gear, { color: "#6558FD" }) }),
15664
- /* @__PURE__ */ jsx23(MainNavButton, { label: "Logout", icon: /* @__PURE__ */ jsx23(Logout, { color: "#6558FD" }) })
15678
+ /* @__PURE__ */ jsx23(
15679
+ MainNavButton,
15680
+ {
15681
+ active: buttons.account?.active,
15682
+ label: "Account",
15683
+ icon: /* @__PURE__ */ jsx23(Gear, { color: "#6558FD" }),
15684
+ onClick: buttons.account?.onClick
15685
+ }
15686
+ ),
15687
+ /* @__PURE__ */ jsx23(
15688
+ MainNavButton,
15689
+ {
15690
+ active: buttons.logout?.active,
15691
+ label: "Logout",
15692
+ icon: /* @__PURE__ */ jsx23(Logout, { color: "#6558FD" }),
15693
+ onClick: buttons.logout?.onClick
15694
+ }
15695
+ )
15665
15696
  ] })
15666
15697
  ] });
15667
15698
  }