qt-ui-kit 1.0.29 → 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 +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +88 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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(
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
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:
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
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(
|
|
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(
|
|
15664
|
-
|
|
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
|
}
|
|
@@ -16306,22 +16337,58 @@ function Search({
|
|
|
16306
16337
|
case 16:
|
|
16307
16338
|
return {
|
|
16308
16339
|
viewBox: "0 0 16 16",
|
|
16309
|
-
path: /* @__PURE__ */ jsx37(
|
|
16340
|
+
path: /* @__PURE__ */ jsx37(
|
|
16341
|
+
"path",
|
|
16342
|
+
{
|
|
16343
|
+
d: "M14 14L10 10M11.3333 6.66667C11.3333 9.244 9.244 11.3333 6.66667 11.3333C4.08934 11.3333 2 9.244 2 6.66667C2 4.08934 4.08934 2 6.66667 2C9.244 2 11.3333 4.08934 11.3333 6.66667Z",
|
|
16344
|
+
stroke: color,
|
|
16345
|
+
strokeWidth: "1.25",
|
|
16346
|
+
strokeLinecap: "round",
|
|
16347
|
+
strokeLinejoin: "round"
|
|
16348
|
+
}
|
|
16349
|
+
)
|
|
16310
16350
|
};
|
|
16311
16351
|
case 20:
|
|
16312
16352
|
return {
|
|
16313
16353
|
viewBox: "0 0 20 20",
|
|
16314
|
-
path: /* @__PURE__ */ jsx37(
|
|
16354
|
+
path: /* @__PURE__ */ jsx37(
|
|
16355
|
+
"path",
|
|
16356
|
+
{
|
|
16357
|
+
d: "M17.5 17.5L12.5 12.5M14.1667 8.33333C14.1667 11.555 11.555 14.1667 8.33333 14.1667C5.11167 14.1667 2.5 11.555 2.5 8.33333C2.5 5.11167 5.11167 2.5 8.33333 2.5C11.555 2.5 14.1667 5.11167 14.1667 8.33333Z",
|
|
16358
|
+
stroke: color,
|
|
16359
|
+
strokeWidth: "1.5",
|
|
16360
|
+
strokeLinecap: "round",
|
|
16361
|
+
strokeLinejoin: "round"
|
|
16362
|
+
}
|
|
16363
|
+
)
|
|
16315
16364
|
};
|
|
16316
16365
|
case 24:
|
|
16317
16366
|
return {
|
|
16318
16367
|
viewBox: "0 0 24 24",
|
|
16319
|
-
path: /* @__PURE__ */ jsx37(
|
|
16368
|
+
path: /* @__PURE__ */ jsx37(
|
|
16369
|
+
"path",
|
|
16370
|
+
{
|
|
16371
|
+
d: "M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",
|
|
16372
|
+
stroke: color,
|
|
16373
|
+
strokeWidth: "2",
|
|
16374
|
+
strokeLinecap: "round",
|
|
16375
|
+
strokeLinejoin: "round"
|
|
16376
|
+
}
|
|
16377
|
+
)
|
|
16320
16378
|
};
|
|
16321
16379
|
case 36:
|
|
16322
16380
|
return {
|
|
16323
16381
|
viewBox: "0 0 36 36",
|
|
16324
|
-
path: /* @__PURE__ */ jsx37(
|
|
16382
|
+
path: /* @__PURE__ */ jsx37(
|
|
16383
|
+
"path",
|
|
16384
|
+
{
|
|
16385
|
+
d: "M31.5 31.5L22.5 22.5M25.5 15C25.5 20.799 20.799 25.5 15 25.5C9.20101 25.5 4.5 20.799 4.5 15C4.5 9.20101 9.20101 4.5 15 4.5C20.799 4.5 25.5 9.20101 25.5 15Z",
|
|
16386
|
+
stroke: color,
|
|
16387
|
+
strokeWidth: "2.25",
|
|
16388
|
+
strokeLinecap: "round",
|
|
16389
|
+
strokeLinejoin: "round"
|
|
16390
|
+
}
|
|
16391
|
+
)
|
|
16325
16392
|
};
|
|
16326
16393
|
}
|
|
16327
16394
|
};
|