@medha-analytics/medha-one-access-react 1.0.3 → 1.0.5
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/README.md +132 -132
- package/dist/MedhaOneAccess.d.ts.map +1 -1
- package/dist/components/dialogs/UserDialog.d.ts +1 -1
- package/dist/components/dialogs/UserDialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +4 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +5 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +126 -111
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -8587,7 +8587,7 @@ function Uh({ className: e, variant: t = "default", ...n }) {
|
|
|
8587
8587
|
function Wh({ className: e, ...t }) {
|
|
8588
8588
|
return /* @__PURE__ */ g(pm, {
|
|
8589
8589
|
"data-slot": "tabs-trigger",
|
|
8590
|
-
className: H("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
8590
|
+
className: H("relative inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
8591
8591
|
...t
|
|
8592
8592
|
});
|
|
8593
8593
|
}
|
|
@@ -8600,14 +8600,14 @@ function Gh({ className: e, ...t }) {
|
|
|
8600
8600
|
}
|
|
8601
8601
|
//#endregion
|
|
8602
8602
|
//#region src/components/ui/button.tsx
|
|
8603
|
-
var Kh = On("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
8603
|
+
var Kh = On("group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
8604
8604
|
variants: {
|
|
8605
8605
|
variant: {
|
|
8606
8606
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
8607
8607
|
outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
8608
8608
|
secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
8609
8609
|
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
8610
|
-
destructive: "bg-destructive
|
|
8610
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
|
|
8611
8611
|
link: "text-primary underline-offset-4 hover:underline"
|
|
8612
8612
|
},
|
|
8613
8613
|
size: {
|
|
@@ -8625,20 +8625,19 @@ var Kh = On("group/button inline-flex shrink-0 items-center justify-center round
|
|
|
8625
8625
|
variant: "default",
|
|
8626
8626
|
size: "default"
|
|
8627
8627
|
}
|
|
8628
|
-
})
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
}
|
|
8628
|
+
}), qh = e.forwardRef(({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }, a) => /* @__PURE__ */ g(r ? Nn : "button", {
|
|
8629
|
+
ref: a,
|
|
8630
|
+
"data-slot": "button",
|
|
8631
|
+
"data-variant": t,
|
|
8632
|
+
"data-size": n,
|
|
8633
|
+
className: H(Kh({
|
|
8634
|
+
variant: t,
|
|
8635
|
+
size: n,
|
|
8636
|
+
className: e
|
|
8637
|
+
})),
|
|
8638
|
+
...i
|
|
8639
|
+
}));
|
|
8640
|
+
qh.displayName = "Button";
|
|
8642
8641
|
//#endregion
|
|
8643
8642
|
//#region src/components/ui/badge.tsx
|
|
8644
8643
|
var Jh = On("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
@@ -8652,15 +8651,14 @@ var Jh = On("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-cen
|
|
|
8652
8651
|
success: "bg-green-600 text-white dark:bg-green-600 dark:text-white"
|
|
8653
8652
|
} },
|
|
8654
8653
|
defaultVariants: { variant: "default" }
|
|
8655
|
-
})
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
}
|
|
8654
|
+
}), Yh = e.forwardRef(({ className: e, variant: t = "default", asChild: n = !1, ...r }, i) => /* @__PURE__ */ g(n ? Nn : "span", {
|
|
8655
|
+
ref: i,
|
|
8656
|
+
"data-slot": "badge",
|
|
8657
|
+
"data-variant": t,
|
|
8658
|
+
className: H(Jh({ variant: t }), e),
|
|
8659
|
+
...r
|
|
8660
|
+
}));
|
|
8661
|
+
Yh.displayName = "Badge";
|
|
8664
8662
|
//#endregion
|
|
8665
8663
|
//#region src/components/ui/dropdown-menu.tsx
|
|
8666
8664
|
function Xh({ ...e }) {
|
|
@@ -8676,11 +8674,14 @@ function Zh({ ...e }) {
|
|
|
8676
8674
|
});
|
|
8677
8675
|
}
|
|
8678
8676
|
function Qh({ className: e, sideOffset: t = 4, ...n }) {
|
|
8679
|
-
return /* @__PURE__ */ g(wf, { children: /* @__PURE__ */ g(
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8677
|
+
return /* @__PURE__ */ g(wf, { children: /* @__PURE__ */ g("div", {
|
|
8678
|
+
className: "moa",
|
|
8679
|
+
children: /* @__PURE__ */ g(Tf, {
|
|
8680
|
+
"data-slot": "dropdown-menu-content",
|
|
8681
|
+
sideOffset: t,
|
|
8682
|
+
className: H("z-50 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
|
|
8683
|
+
...n
|
|
8684
|
+
})
|
|
8684
8685
|
}) });
|
|
8685
8686
|
}
|
|
8686
8687
|
function $h({ className: e, ...t }) {
|
|
@@ -8766,7 +8767,7 @@ function lg({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
8766
8767
|
return /* @__PURE__ */ _(Jf, {
|
|
8767
8768
|
"data-slot": "select-trigger",
|
|
8768
8769
|
"data-size": t,
|
|
8769
|
-
className: H("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
8770
|
+
className: H("flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
8770
8771
|
...r,
|
|
8771
8772
|
children: [n, /* @__PURE__ */ g(Qf, {
|
|
8772
8773
|
asChild: !0,
|
|
@@ -8775,22 +8776,25 @@ function lg({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
8775
8776
|
});
|
|
8776
8777
|
}
|
|
8777
8778
|
function ug({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
8778
|
-
return /* @__PURE__ */ g(np, { children: /* @__PURE__ */
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8779
|
+
return /* @__PURE__ */ g(np, { children: /* @__PURE__ */ g("div", {
|
|
8780
|
+
className: "moa",
|
|
8781
|
+
children: /* @__PURE__ */ _(ip, {
|
|
8782
|
+
"data-slot": "select-content",
|
|
8783
|
+
"data-align-trigger": n === "item-aligned",
|
|
8784
|
+
className: H("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
8785
|
+
position: n,
|
|
8786
|
+
align: r,
|
|
8787
|
+
...i,
|
|
8788
|
+
children: [
|
|
8789
|
+
/* @__PURE__ */ g(fg, {}),
|
|
8790
|
+
/* @__PURE__ */ g(yp, {
|
|
8791
|
+
"data-position": n,
|
|
8792
|
+
className: H("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", n === "popper" && ""),
|
|
8793
|
+
children: t
|
|
8794
|
+
}),
|
|
8795
|
+
/* @__PURE__ */ g(pg, {})
|
|
8796
|
+
]
|
|
8797
|
+
})
|
|
8794
8798
|
}) });
|
|
8795
8799
|
}
|
|
8796
8800
|
function dg({ className: e, children: t, ...n }) {
|
|
@@ -8873,7 +8877,7 @@ function hg({ columns: e, data: t, totalCount: n, isLoading: r = !1, emptyMessag
|
|
|
8873
8877
|
"inactive"
|
|
8874
8878
|
].map((e) => /* @__PURE__ */ g("button", {
|
|
8875
8879
|
onClick: () => m(e),
|
|
8876
|
-
className: H("px-3 py-1.5 text-xs font-medium capitalize transition-colors first:rounded-l-md last:rounded-r-md", p === e ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"),
|
|
8880
|
+
className: H("cursor-pointer px-3 py-1.5 text-xs font-medium capitalize transition-colors first:rounded-l-md last:rounded-r-md", p === e ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"),
|
|
8877
8881
|
children: e
|
|
8878
8882
|
}, e))
|
|
8879
8883
|
}),
|
|
@@ -8975,12 +8979,15 @@ function vg({ className: e, ...t }) {
|
|
|
8975
8979
|
}
|
|
8976
8980
|
function yg({ className: e, size: t = "default", ...n }) {
|
|
8977
8981
|
return /* @__PURE__ */ _(_g, { children: [/* @__PURE__ */ g(vg, {}), /* @__PURE__ */ g("div", {
|
|
8978
|
-
className: "
|
|
8979
|
-
children: /* @__PURE__ */ g(
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8982
|
+
className: "moa",
|
|
8983
|
+
children: /* @__PURE__ */ g("div", {
|
|
8984
|
+
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
8985
|
+
children: /* @__PURE__ */ g(Jo, {
|
|
8986
|
+
"data-slot": "alert-dialog-content",
|
|
8987
|
+
"data-size": t,
|
|
8988
|
+
className: H("group/alert-dialog-content grid w-full gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
|
|
8989
|
+
...n
|
|
8990
|
+
})
|
|
8984
8991
|
})
|
|
8985
8992
|
})] });
|
|
8986
8993
|
}
|
|
@@ -9095,7 +9102,7 @@ function Ng({ node: e, depth: t = 0 }) {
|
|
|
9095
9102
|
children: [/* @__PURE__ */ g(Og, {
|
|
9096
9103
|
asChild: !0,
|
|
9097
9104
|
children: /* @__PURE__ */ _("button", {
|
|
9098
|
-
className: "flex items-center gap-1.5 w-full rounded px-2 py-1.5 text-sm hover:bg-accent text-left",
|
|
9105
|
+
className: "flex cursor-pointer items-center gap-1.5 w-full rounded px-2 py-1.5 text-sm hover:bg-accent text-left",
|
|
9099
9106
|
onClick: () => i && r((e) => !e),
|
|
9100
9107
|
children: [
|
|
9101
9108
|
/* @__PURE__ */ g("span", {
|
|
@@ -13004,25 +13011,28 @@ function Jy({ className: e, ...t }) {
|
|
|
13004
13011
|
}
|
|
13005
13012
|
function Yy({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
13006
13013
|
return /* @__PURE__ */ _(qy, { children: [/* @__PURE__ */ g(Jy, {}), /* @__PURE__ */ g("div", {
|
|
13007
|
-
className: "
|
|
13008
|
-
children: /* @__PURE__ */
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
children: "
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13014
|
+
className: "moa",
|
|
13015
|
+
children: /* @__PURE__ */ g("div", {
|
|
13016
|
+
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
13017
|
+
children: /* @__PURE__ */ _(go, {
|
|
13018
|
+
"data-slot": "dialog-content",
|
|
13019
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
13020
|
+
className: H("grid max-h-[85vh] w-full max-w-[calc(100%-2rem)] gap-6 overflow-y-auto rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
|
|
13021
|
+
...r,
|
|
13022
|
+
children: [t, n && /* @__PURE__ */ g(yo, {
|
|
13023
|
+
"data-slot": "dialog-close",
|
|
13024
|
+
asChild: !0,
|
|
13025
|
+
children: /* @__PURE__ */ _(qh, {
|
|
13026
|
+
variant: "ghost",
|
|
13027
|
+
className: "absolute top-4 right-4",
|
|
13028
|
+
size: "icon-sm",
|
|
13029
|
+
children: [/* @__PURE__ */ g(Ee, {}), /* @__PURE__ */ g("span", {
|
|
13030
|
+
className: "sr-only",
|
|
13031
|
+
children: "Close"
|
|
13032
|
+
})]
|
|
13033
|
+
})
|
|
13034
|
+
})]
|
|
13035
|
+
})
|
|
13026
13036
|
})
|
|
13027
13037
|
})] });
|
|
13028
13038
|
}
|
|
@@ -18958,7 +18968,7 @@ function kw({ id: e, label: t, value: n, onChange: r, suggestions: i }) {
|
|
|
18958
18968
|
className: "absolute z-50 w-full bg-popover border border-border rounded-md shadow-md max-h-40 overflow-y-auto",
|
|
18959
18969
|
children: s.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g("button", {
|
|
18960
18970
|
type: "button",
|
|
18961
|
-
className: "w-full text-left px-3 py-2 text-sm hover:bg-accent",
|
|
18971
|
+
className: "w-full cursor-pointer text-left px-3 py-2 text-sm hover:bg-accent",
|
|
18962
18972
|
onMouseDown: () => {
|
|
18963
18973
|
r(e), o(!1);
|
|
18964
18974
|
},
|
|
@@ -19399,7 +19409,7 @@ function Ww({ type: e, value: t, onChange: n, label: r, required: i }) {
|
|
|
19399
19409
|
/* @__PURE__ */ g("button", {
|
|
19400
19410
|
type: "button",
|
|
19401
19411
|
onClick: () => D(t),
|
|
19402
|
-
className: "hover:opacity-70",
|
|
19412
|
+
className: "cursor-pointer hover:opacity-70",
|
|
19403
19413
|
title: "Toggle include/exclude",
|
|
19404
19414
|
children: e.operator === "+" ? /* @__PURE__ */ g(be, { className: "h-3 w-3" }) : /* @__PURE__ */ g(ve, { className: "h-3 w-3" })
|
|
19405
19415
|
}),
|
|
@@ -19410,7 +19420,7 @@ function Ww({ type: e, value: t, onChange: n, label: r, required: i }) {
|
|
|
19410
19420
|
/* @__PURE__ */ g("button", {
|
|
19411
19421
|
type: "button",
|
|
19412
19422
|
onClick: () => E(t),
|
|
19413
|
-
className: "hover:opacity-70 ml-0.5",
|
|
19423
|
+
className: "cursor-pointer hover:opacity-70 ml-0.5",
|
|
19414
19424
|
"aria-label": `Remove ${e.entity}`,
|
|
19415
19425
|
children: /* @__PURE__ */ g(Ee, { className: "h-3 w-3" })
|
|
19416
19426
|
})
|
|
@@ -19443,7 +19453,7 @@ function Ww({ type: e, value: t, onChange: n, label: r, required: i }) {
|
|
|
19443
19453
|
className: "max-h-48 overflow-y-auto",
|
|
19444
19454
|
children: C.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _("button", {
|
|
19445
19455
|
type: "button",
|
|
19446
|
-
className: "w-full text-left px-3 py-2 text-sm hover:bg-accent flex items-center gap-2",
|
|
19456
|
+
className: "w-full cursor-pointer text-left px-3 py-2 text-sm hover:bg-accent flex items-center gap-2",
|
|
19447
19457
|
onMouseDown: () => T(e.id, e.label, x),
|
|
19448
19458
|
children: [
|
|
19449
19459
|
/* @__PURE__ */ g("span", {
|
|
@@ -20424,6 +20434,7 @@ function hT({ open: e, onClose: t, artifact: n, currentApplication: r, isAdmin:
|
|
|
20424
20434
|
type: "button",
|
|
20425
20435
|
"aria-label": `Remove ${e.key}`,
|
|
20426
20436
|
onClick: () => A(t),
|
|
20437
|
+
className: "cursor-pointer",
|
|
20427
20438
|
children: /* @__PURE__ */ g(Ee, { className: "h-3 w-3" })
|
|
20428
20439
|
})
|
|
20429
20440
|
]
|
|
@@ -20914,7 +20925,7 @@ function yT({ open: e, onClose: t, rule: n, currentApplication: r, isAdmin: i })
|
|
|
20914
20925
|
children: l.map((e) => /* @__PURE__ */ g("button", {
|
|
20915
20926
|
type: "button",
|
|
20916
20927
|
onClick: () => C(e),
|
|
20917
|
-
className: `px-3 py-1 rounded-md text-sm border transition-colors ${S?.includes(e) ? "bg-primary text-primary-foreground border-primary" : "bg-background border-input hover:bg-accent"}`,
|
|
20928
|
+
className: `cursor-pointer px-3 py-1 rounded-md text-sm border transition-colors ${S?.includes(e) ? "bg-primary text-primary-foreground border-primary" : "bg-background border-input hover:bg-accent"}`,
|
|
20918
20929
|
children: e
|
|
20919
20930
|
}, e))
|
|
20920
20931
|
}),
|
|
@@ -21220,39 +21231,43 @@ var xT = [
|
|
|
21220
21231
|
];
|
|
21221
21232
|
function ST() {
|
|
21222
21233
|
let [e, t] = f("users");
|
|
21223
|
-
return /* @__PURE__ */
|
|
21224
|
-
className: "
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21234
|
+
return /* @__PURE__ */ g("div", {
|
|
21235
|
+
className: "moa",
|
|
21236
|
+
style: { display: "contents" },
|
|
21237
|
+
children: /* @__PURE__ */ _("div", {
|
|
21238
|
+
className: "flex h-full bg-background",
|
|
21239
|
+
children: [
|
|
21240
|
+
/* @__PURE__ */ _("aside", {
|
|
21241
|
+
className: "w-56 shrink-0 border-r bg-muted/40 p-4 flex flex-col gap-1",
|
|
21242
|
+
children: [/* @__PURE__ */ g("div", {
|
|
21243
|
+
className: "mb-4 px-2",
|
|
21244
|
+
children: /* @__PURE__ */ g("p", {
|
|
21245
|
+
className: "text-sm font-bold text-slate-600 uppercase tracking-wider",
|
|
21246
|
+
children: "Access Control"
|
|
21247
|
+
})
|
|
21248
|
+
}), xT.map(({ id: n, label: r, Icon: i }) => /* @__PURE__ */ _("button", {
|
|
21249
|
+
onClick: () => t(n),
|
|
21250
|
+
className: H("flex cursor-pointer items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium transition-colors text-left w-full", e === n ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:bg-background/60 hover:text-foreground"),
|
|
21251
|
+
children: [/* @__PURE__ */ g(i, { className: "h-4 w-4 shrink-0" }), r]
|
|
21252
|
+
}, n))]
|
|
21253
|
+
}),
|
|
21254
|
+
/* @__PURE__ */ g("main", {
|
|
21255
|
+
className: "flex-1 min-h-0 p-6 overflow-auto",
|
|
21256
|
+
children: /* @__PURE__ */ _("div", {
|
|
21257
|
+
className: "max-w-7xl mx-auto",
|
|
21258
|
+
children: [
|
|
21259
|
+
e === "users" && /* @__PURE__ */ g(pT, {}),
|
|
21260
|
+
e === "artifacts" && /* @__PURE__ */ g(gT, {}),
|
|
21261
|
+
e === "access-rules" && /* @__PURE__ */ g(bT, {})
|
|
21262
|
+
]
|
|
21233
21263
|
})
|
|
21234
|
-
}),
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
}, n))]
|
|
21239
|
-
}),
|
|
21240
|
-
/* @__PURE__ */ g("main", {
|
|
21241
|
-
className: "flex-1 p-6 overflow-auto",
|
|
21242
|
-
children: /* @__PURE__ */ _("div", {
|
|
21243
|
-
className: "max-w-7xl mx-auto",
|
|
21244
|
-
children: [
|
|
21245
|
-
e === "users" && /* @__PURE__ */ g(pT, {}),
|
|
21246
|
-
e === "artifacts" && /* @__PURE__ */ g(gT, {}),
|
|
21247
|
-
e === "access-rules" && /* @__PURE__ */ g(bT, {})
|
|
21248
|
-
]
|
|
21264
|
+
}),
|
|
21265
|
+
/* @__PURE__ */ g(nt, {
|
|
21266
|
+
richColors: !0,
|
|
21267
|
+
position: "top-right"
|
|
21249
21268
|
})
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
richColors: !0,
|
|
21253
|
-
position: "top-right"
|
|
21254
|
-
})
|
|
21255
|
-
]
|
|
21269
|
+
]
|
|
21270
|
+
})
|
|
21256
21271
|
});
|
|
21257
21272
|
}
|
|
21258
21273
|
//#endregion
|