@algorithm-shift/design-system 1.2.53 → 1.2.55
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.css +25 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -26545,8 +26545,9 @@ var __iconNode1634 = [
|
|
|
26545
26545
|
var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
|
|
26546
26546
|
|
|
26547
26547
|
// src/components/Basic/Breadcrumb/Breadcrumb.tsx
|
|
26548
|
+
import Link3 from "next/link";
|
|
26548
26549
|
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
26549
|
-
var Breadcrumb = ({ list = [], className, style
|
|
26550
|
+
var Breadcrumb = ({ list = [], className, style }) => {
|
|
26550
26551
|
return /* @__PURE__ */ jsx10(
|
|
26551
26552
|
"nav",
|
|
26552
26553
|
{
|
|
@@ -26556,8 +26557,8 @@ var Breadcrumb = ({ list = [], className, style, LinkComponent }) => {
|
|
|
26556
26557
|
children: list.map((item, index) => {
|
|
26557
26558
|
const isLast = index === list.length - 1;
|
|
26558
26559
|
return /* @__PURE__ */ jsxs3("div", { className: "flex items-center", children: [
|
|
26559
|
-
item.url && !isLast
|
|
26560
|
-
|
|
26560
|
+
item.url && !isLast ? /* @__PURE__ */ jsx10(
|
|
26561
|
+
Link3,
|
|
26561
26562
|
{
|
|
26562
26563
|
href: item.url,
|
|
26563
26564
|
className: "hover:text-foreground transition-colors",
|
|
@@ -26675,8 +26676,9 @@ function DropdownMenuSubContent({
|
|
|
26675
26676
|
}
|
|
26676
26677
|
|
|
26677
26678
|
// src/components/Basic/ButtonGroup/ButtonGroup.tsx
|
|
26679
|
+
import Link4 from "next/link";
|
|
26678
26680
|
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
26679
|
-
function SplitButton({ style, textContent, className, list = []
|
|
26681
|
+
function SplitButton({ style, textContent, className, list = [] }) {
|
|
26680
26682
|
const bgColor = style?.backgroundColor || "";
|
|
26681
26683
|
return /* @__PURE__ */ jsxs5("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
|
|
26682
26684
|
/* @__PURE__ */ jsx12(
|
|
@@ -26697,7 +26699,7 @@ function SplitButton({ style, textContent, className, list = [], LinkComponent }
|
|
|
26697
26699
|
children: /* @__PURE__ */ jsx12(ChevronDown, { className: "w-4 h-4" })
|
|
26698
26700
|
}
|
|
26699
26701
|
) }),
|
|
26700
|
-
/* @__PURE__ */ jsx12(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ jsx12(DropdownMenuItem, { className: "text-black", children:
|
|
26702
|
+
/* @__PURE__ */ jsx12(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ jsx12(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx12(Link4, { href: item.url || "#", children: item.header }) }, item.id)) })
|
|
26701
26703
|
] })
|
|
26702
26704
|
] });
|
|
26703
26705
|
}
|
|
@@ -27923,7 +27925,7 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27923
27925
|
id: "date",
|
|
27924
27926
|
variant: "outline",
|
|
27925
27927
|
className: cn(
|
|
27926
|
-
"w-
|
|
27928
|
+
"w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
|
|
27927
27929
|
!date && "text-muted-foreground"
|
|
27928
27930
|
),
|
|
27929
27931
|
children: date?.from ? date.to ? /* @__PURE__ */ jsxs23(Fragment14, { children: [
|
|
@@ -28444,8 +28446,9 @@ var Table4 = ({
|
|
|
28444
28446
|
var Table_default = Table4;
|
|
28445
28447
|
|
|
28446
28448
|
// src/components/Navigation/Tabs/Tabs.tsx
|
|
28449
|
+
import Link5 from "next/link";
|
|
28447
28450
|
import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
28448
|
-
var Tabs = ({ className, style, tabs, verticalMenu,
|
|
28451
|
+
var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
28449
28452
|
const rawTabs = Array.isArray(tabs) ? tabs : [];
|
|
28450
28453
|
const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
|
|
28451
28454
|
const activeClasses = "bg-white/10 text-white";
|
|
@@ -28473,7 +28476,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28473
28476
|
{
|
|
28474
28477
|
asChild: true,
|
|
28475
28478
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
|
|
28476
|
-
children:
|
|
28479
|
+
children: /* @__PURE__ */ jsx47(Link5, { href: item.url || "#", children: item.header })
|
|
28477
28480
|
},
|
|
28478
28481
|
item.id
|
|
28479
28482
|
))
|
|
@@ -28481,7 +28484,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28481
28484
|
)
|
|
28482
28485
|
] }, index);
|
|
28483
28486
|
}
|
|
28484
|
-
return tab.url
|
|
28487
|
+
return tab.url ? /* @__PURE__ */ jsx47(Link5, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ jsx47("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
|
|
28485
28488
|
};
|
|
28486
28489
|
const renderMobileMenu = () => /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
|
|
28487
28490
|
/* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
|
|
@@ -28504,7 +28507,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28504
28507
|
{
|
|
28505
28508
|
asChild: true,
|
|
28506
28509
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
|
|
28507
|
-
children:
|
|
28510
|
+
children: /* @__PURE__ */ jsx47(Link5, { href: item.url || "#", children: item.header })
|
|
28508
28511
|
},
|
|
28509
28512
|
item.id
|
|
28510
28513
|
)) })
|
|
@@ -28515,7 +28518,7 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28515
28518
|
{
|
|
28516
28519
|
asChild: true,
|
|
28517
28520
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
|
|
28518
|
-
children:
|
|
28521
|
+
children: /* @__PURE__ */ jsx47(Link5, { href: tab.url || "#", children: tab.header })
|
|
28519
28522
|
},
|
|
28520
28523
|
i
|
|
28521
28524
|
);
|
|
@@ -28610,6 +28613,8 @@ var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
28610
28613
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
28611
28614
|
|
|
28612
28615
|
// src/components/Navigation/Navbar/Navbar.tsx
|
|
28616
|
+
import Link6 from "next/link";
|
|
28617
|
+
import Image3 from "next/image";
|
|
28613
28618
|
import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
28614
28619
|
function Navbar({
|
|
28615
28620
|
style,
|
|
@@ -28621,16 +28626,14 @@ function Navbar({
|
|
|
28621
28626
|
imageUrl,
|
|
28622
28627
|
altText = "Logo",
|
|
28623
28628
|
canvasMode = "desktop",
|
|
28624
|
-
LinkComponent,
|
|
28625
|
-
ImageComponent,
|
|
28626
28629
|
list = [],
|
|
28627
28630
|
userName = "Guest User"
|
|
28628
28631
|
}) {
|
|
28629
28632
|
const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28630
28633
|
return /* @__PURE__ */ jsx54("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ jsxs33("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-2", children: [
|
|
28631
|
-
|
|
28632
|
-
!isMobileView &&
|
|
28633
|
-
|
|
28634
|
+
/* @__PURE__ */ jsx54(Link6, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ jsx54(Image3, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ jsx54("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
|
|
28635
|
+
!isMobileView && /* @__PURE__ */ jsx54("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx54(
|
|
28636
|
+
Link6,
|
|
28634
28637
|
{
|
|
28635
28638
|
href: item.url || "#",
|
|
28636
28639
|
className: "text-sm font-medium text-gray-600 hover:text-gray-900 transition-colors",
|
|
@@ -28685,7 +28688,7 @@ function Navbar({
|
|
|
28685
28688
|
}
|
|
28686
28689
|
)
|
|
28687
28690
|
] }) }),
|
|
28688
|
-
/* @__PURE__ */ jsx54(DropdownMenuContent, { align: "end", className: "bg-white", children:
|
|
28691
|
+
/* @__PURE__ */ jsx54(DropdownMenuContent, { align: "end", className: "bg-white", children: list && list.length > 0 && /* @__PURE__ */ jsx54(Fragment17, { children: list.map((item) => /* @__PURE__ */ jsx54(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx54(Link6, { href: item.url || "#", children: item.header }) }, item.id)) }) })
|
|
28689
28692
|
] })
|
|
28690
28693
|
] })
|
|
28691
28694
|
] }) });
|