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.d.mts CHANGED
@@ -79,8 +79,15 @@ type Props$6 = {
79
79
  };
80
80
  declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$6): react_jsx_runtime.JSX.Element;
81
81
 
82
- type Props$5 = {};
83
- declare function NavBar({}: Props$5): react_jsx_runtime.JSX.Element;
82
+ type NavButtonKey = "queue" | "account" | "logout";
83
+ type NavButtonConfig = {
84
+ active?: boolean;
85
+ onClick?: () => void;
86
+ };
87
+ type Props$5 = {
88
+ buttons?: Partial<Record<NavButtonKey, NavButtonConfig>>;
89
+ };
90
+ declare function NavBar({ buttons }: Props$5): react_jsx_runtime.JSX.Element;
84
91
 
85
92
  type Props$4 = {
86
93
  eventType?: EventType;
package/dist/index.d.ts CHANGED
@@ -79,8 +79,15 @@ type Props$6 = {
79
79
  };
80
80
  declare function PreviewCard({ onRead, onSelected, service, subjectLine, body, sender, source, metadata, date, onClickGoToSource, urgencyLevel, alert, }: Props$6): react_jsx_runtime.JSX.Element;
81
81
 
82
- type Props$5 = {};
83
- declare function NavBar({}: Props$5): react_jsx_runtime.JSX.Element;
82
+ type NavButtonKey = "queue" | "account" | "logout";
83
+ type NavButtonConfig = {
84
+ active?: boolean;
85
+ onClick?: () => void;
86
+ };
87
+ type Props$5 = {
88
+ buttons?: Partial<Record<NavButtonKey, NavButtonConfig>>;
89
+ };
90
+ declare function NavBar({ buttons }: Props$5): react_jsx_runtime.JSX.Element;
84
91
 
85
92
  type Props$4 = {
86
93
  eventType?: EventType;
package/dist/index.js CHANGED
@@ -15662,33 +15662,64 @@ function QTLogo({ variant }) {
15662
15662
  // src/components/molecules/buttons/nav_button/main_nav_button/main_nav_button.tsx
15663
15663
  var import_clsx5 = __toESM(require("clsx"));
15664
15664
  var import_jsx_runtime22 = require("react/jsx-runtime");
15665
- function MainNavButton({ icon, label, active }) {
15666
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "w-min h-min flex flex-none flex-col place-items-center gap-2", children: [
15667
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
15668
- "div",
15669
- {
15670
- className: (0, import_clsx5.default)(
15671
- "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl border-2 hover:border-qtpurple-500",
15672
- active ? "border-qtpurple-500 qt-drop-shadow-100 bg-qtpurple-200" : "border-qtpurple-300 bg-white"
15665
+ function MainNavButton({ icon, label, active, onClick }) {
15666
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
15667
+ "div",
15668
+ {
15669
+ className: "w-min h-min flex flex-none flex-col place-items-center gap-2",
15670
+ onClick,
15671
+ children: [
15672
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
15673
+ "div",
15674
+ {
15675
+ className: (0, import_clsx5.default)(
15676
+ "w-[44px] h-[44px] flex flex-none flex-col place-items-center place-content-center rounded-xl border-2 hover:border-qtpurple-500",
15677
+ active ? "border-qtpurple-500 qt-drop-shadow-100 bg-qtpurple-200" : "border-qtpurple-300 bg-white"
15678
+ ),
15679
+ children: icon
15680
+ }
15673
15681
  ),
15674
- children: icon
15675
- }
15676
- ),
15677
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "label-3-bold text-qtpurple-500", children: label })
15678
- ] });
15682
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "label-3-bold text-qtpurple-500", children: label })
15683
+ ]
15684
+ }
15685
+ );
15679
15686
  }
15680
15687
 
15681
15688
  // src/components/organisms/nav_bar/nav_bar.tsx
15682
15689
  var import_jsx_runtime23 = require("react/jsx-runtime");
15683
- function NavBar({}) {
15690
+ function NavBar({ buttons = {} }) {
15684
15691
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("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: [
15685
15692
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-8", children: [
15686
15693
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(QTLogo, { variant: "monogram" }),
15687
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainNavButton, { active: true, label: "Queue", icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Queue, { color: "#6558FD" }) })
15694
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
15695
+ MainNavButton,
15696
+ {
15697
+ active: buttons.queue?.active,
15698
+ label: "Queue",
15699
+ icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Queue, { color: "#6558FD" }),
15700
+ onClick: buttons.queue?.onClick
15701
+ }
15702
+ )
15688
15703
  ] }),
15689
15704
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col gap-8", children: [
15690
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainNavButton, { label: "Account", icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Gear, { color: "#6558FD" }) }),
15691
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MainNavButton, { label: "Logout", icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Logout, { color: "#6558FD" }) })
15705
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
15706
+ MainNavButton,
15707
+ {
15708
+ active: buttons.account?.active,
15709
+ label: "Account",
15710
+ icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Gear, { color: "#6558FD" }),
15711
+ onClick: buttons.account?.onClick
15712
+ }
15713
+ ),
15714
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
15715
+ MainNavButton,
15716
+ {
15717
+ active: buttons.logout?.active,
15718
+ label: "Logout",
15719
+ icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Logout, { color: "#6558FD" }),
15720
+ onClick: buttons.logout?.onClick
15721
+ }
15722
+ )
15692
15723
  ] })
15693
15724
  ] });
15694
15725
  }