@yuno-payments/dashboard-design-system 0.0.110 → 0.0.111
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/components/atoms/combobox/combobox.js +1 -1
- package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
- package/dist/components/atoms/field/field.js +7 -7
- package/dist/components/atoms/filter/filter.js +1 -1
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +1 -1
- package/dist/components/atoms/search-field/search-field.js +1 -1
- package/dist/components/atoms/select/search-select.js +1 -1
- package/dist/components/molecules/breadcrumb/breadcrumb.js +7 -7
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +4 -4
- package/dist/components/organisms/sheet/sheet.js +6 -6
- package/dist/components/organisms/tutorial/tutorial.js +8 -8
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +174 -170
- package/dist/lib/notification-alert.d.ts +41 -0
- package/dist/lib/notification-alert.js +72 -0
- package/dist/lib/notification-toaster.d.ts +26 -0
- package/dist/lib/notification-toaster.js +28 -0
- package/dist/vendor/shadcn/select.js +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { forwardRef as Y, useState as y, useRef as Z, useEffect as I } from "react";
|
|
3
3
|
import { cn as m } from "../../../lib/utils.js";
|
|
4
4
|
import { Combobox as _, ComboboxTrigger as A, ComboboxContent as W } from "../../../vendor/shadcn/combobox.js";
|
|
5
|
+
import { Icon as $ } from "../icon/icon.js";
|
|
5
6
|
import { Label as P } from "../../../vendor/shadcn/label.js";
|
|
6
7
|
import { Typography as C } from "../typography/typography.js";
|
|
7
8
|
import { Badge as N } from "../badge/badge.js";
|
|
8
|
-
import { Icon as $ } from "../icon/icon.js";
|
|
9
9
|
import { Checkbox as ee } from "../checkbox/checkbox.js";
|
|
10
10
|
const te = ({ message: n = "No results" }) => /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsx(C, { variant: "sm", className: "text-muted-foreground", children: n }) }), se = Y(
|
|
11
11
|
({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import * as h from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { DropdownMenu as x, DropdownMenuTrigger as f, DropdownMenuContent as j, DropdownMenuItem as w } from "../dropdown-menu/dropdown-menu.js";
|
|
5
|
-
import { Button as g } from "../button/button.js";
|
|
3
|
+
import { Button as x } from "../button/button.js";
|
|
6
4
|
import { Icon as c } from "../icon/icon.js";
|
|
5
|
+
import { cn as l } from "../../../lib/utils.js";
|
|
6
|
+
import { DropdownMenu as f, DropdownMenuTrigger as j, DropdownMenuContent as w, DropdownMenuItem as g } from "../dropdown-menu/dropdown-menu.js";
|
|
7
7
|
import { Tooltip as C } from "../tooltip/tooltip.js";
|
|
8
8
|
const k = ({
|
|
9
9
|
allowed: r,
|
|
@@ -24,9 +24,9 @@ const k = ({
|
|
|
24
24
|
if (!r.actions || r.actions.length === 0)
|
|
25
25
|
return null;
|
|
26
26
|
const p = {};
|
|
27
|
-
return i !== void 0 && (p.marginBottom = `${i}px`), /* @__PURE__ */ e.jsx("div", { className: l("inline-flex relative", a), style: p, children: /* @__PURE__ */ e.jsxs(
|
|
28
|
-
/* @__PURE__ */ e.jsx(
|
|
29
|
-
|
|
27
|
+
return i !== void 0 && (p.marginBottom = `${i}px`), /* @__PURE__ */ e.jsx("div", { className: l("inline-flex relative", a), style: p, children: /* @__PURE__ */ e.jsxs(f, { open: o, onOpenChange: d, children: [
|
|
28
|
+
/* @__PURE__ */ e.jsx(j, { asChild: !0, disabled: t, children: /* @__PURE__ */ e.jsx(
|
|
29
|
+
x,
|
|
30
30
|
{
|
|
31
31
|
disabled: t,
|
|
32
32
|
variant: "ghost",
|
|
@@ -50,7 +50,7 @@ const k = ({
|
|
|
50
50
|
}
|
|
51
51
|
) }),
|
|
52
52
|
/* @__PURE__ */ e.jsx(
|
|
53
|
-
|
|
53
|
+
w,
|
|
54
54
|
{
|
|
55
55
|
id: "dots-menu",
|
|
56
56
|
align: "end",
|
|
@@ -60,7 +60,7 @@ const k = ({
|
|
|
60
60
|
{
|
|
61
61
|
allowed: s.allowed ?? !0,
|
|
62
62
|
children: /* @__PURE__ */ e.jsxs(
|
|
63
|
-
|
|
63
|
+
g,
|
|
64
64
|
{
|
|
65
65
|
onClick: () => u(s),
|
|
66
66
|
disabled: !s.allowed,
|
|
@@ -2,9 +2,9 @@ import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { forwardRef as $, useId as E } from "react";
|
|
3
3
|
import { InputGroup as G, InputGroupAddon as f, InputGroupInput as b } from "../../../vendor/shadcn/input-group.js";
|
|
4
4
|
import { cn as a } from "../../../lib/utils.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Button as w } from "../button/button.js";
|
|
6
6
|
import { Icon as j } from "../icon/icon.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Field as y, FieldLabel as z, FieldDescription as B, FieldError as I } from "../../../vendor/shadcn/field.js";
|
|
8
8
|
const R = $(
|
|
9
9
|
({
|
|
10
10
|
className: p,
|
|
@@ -24,14 +24,14 @@ const R = $(
|
|
|
24
24
|
}, g) => {
|
|
25
25
|
const F = E(), s = h || t?.id || F, n = !!i;
|
|
26
26
|
return /* @__PURE__ */ e.jsxs(
|
|
27
|
-
|
|
27
|
+
y,
|
|
28
28
|
{
|
|
29
29
|
orientation: N,
|
|
30
30
|
"data-invalid": n,
|
|
31
31
|
className: a("w-full", p),
|
|
32
32
|
children: [
|
|
33
33
|
c && /* @__PURE__ */ e.jsx(
|
|
34
|
-
|
|
34
|
+
z,
|
|
35
35
|
{
|
|
36
36
|
htmlFor: s,
|
|
37
37
|
className: a(d && "text-muted-foreground"),
|
|
@@ -82,10 +82,10 @@ const R = $(
|
|
|
82
82
|
}
|
|
83
83
|
) })
|
|
84
84
|
] }),
|
|
85
|
-
o && /* @__PURE__ */ e.jsx(
|
|
85
|
+
o && /* @__PURE__ */ e.jsx(w, { disabled: d, ...o })
|
|
86
86
|
] }),
|
|
87
|
-
l && !i && /* @__PURE__ */ e.jsx(
|
|
88
|
-
i && /* @__PURE__ */ e.jsx(
|
|
87
|
+
l && !i && /* @__PURE__ */ e.jsx(B, { id: `${s}-description`, children: l }),
|
|
88
|
+
i && /* @__PURE__ */ e.jsx(I, { id: `${s}-description`, children: i })
|
|
89
89
|
] })
|
|
90
90
|
]
|
|
91
91
|
}
|
|
@@ -5,8 +5,8 @@ import { Badge as C } from "../../../vendor/shadcn/badge.js";
|
|
|
5
5
|
import { Separator as p } from "../../../vendor/shadcn/separator.js";
|
|
6
6
|
import { Checkbox as Q } from "../../../vendor/shadcn/checkbox.js";
|
|
7
7
|
import { RadioGroup as E, RadioGroupItem as L } from "../../../vendor/shadcn/radio-group.js";
|
|
8
|
-
import { cn as u } from "../../../lib/utils.js";
|
|
9
8
|
import { Icon as y } from "../icon/icon.js";
|
|
9
|
+
import { cn as u } from "../../../lib/utils.js";
|
|
10
10
|
import { Field as k } from "../field/field.js";
|
|
11
11
|
import { Tooltip as v } from "../tooltip/tooltip.js";
|
|
12
12
|
const F = x(
|
|
@@ -3,10 +3,10 @@ import { forwardRef as C, useState as D, useRef as H, useCallback as K, useEffec
|
|
|
3
3
|
import { Button as E } from "../../../vendor/shadcn/button.js";
|
|
4
4
|
import { Separator as F } from "../../../vendor/shadcn/separator.js";
|
|
5
5
|
import { Badge as T } from "../../../vendor/shadcn/badge.js";
|
|
6
|
+
import { Icon as g } from "../icon/icon.js";
|
|
6
7
|
import { FilterSection as k } from "../filter/filter.js";
|
|
7
8
|
import { FilterDateRange as $ } from "../filter/filter-date-range.js";
|
|
8
9
|
import { cn as d } from "../../../lib/utils.js";
|
|
9
|
-
import { Icon as g } from "../icon/icon.js";
|
|
10
10
|
const S = C(
|
|
11
11
|
({ icon: s, label: h, isActive: r = !1, showChevron: m = !1, className: u, ...l }, b) => /* @__PURE__ */ t.jsxs(
|
|
12
12
|
"button",
|
|
@@ -2,9 +2,9 @@ import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import { forwardRef as U, useId as Y, useState as l, useRef as V, useEffect as z } from "react";
|
|
3
3
|
import { cn as r } from "../../../lib/utils.js";
|
|
4
4
|
import { Input as Z } from "../../../vendor/shadcn/input.js";
|
|
5
|
+
import { Icon as w } from "../icon/icon.js";
|
|
5
6
|
import { cva as D } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
6
7
|
import { Label as K } from "../../../vendor/shadcn/label.js";
|
|
7
|
-
import { Icon as w } from "../icon/icon.js";
|
|
8
8
|
const P = D("flex gap-2 w-full", {
|
|
9
9
|
variants: {
|
|
10
10
|
layout: {
|
|
@@ -2,10 +2,10 @@ import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { cn as a } from "../../../lib/utils.js";
|
|
4
4
|
import { FieldLabel as A } from "../../../vendor/shadcn/field.js";
|
|
5
|
+
import { Icon as b } from "../icon/icon.js";
|
|
5
6
|
import { Combobox as B, ComboboxTrigger as H, ComboboxContent as J } from "../../../vendor/shadcn/combobox.js";
|
|
6
7
|
import { Command as K, CommandInput as M, CommandList as P, CommandEmpty as Q, CommandGroup as U, CommandItem as k } from "../../../vendor/shadcn/command.js";
|
|
7
8
|
import { Typography as x } from "../typography/typography.js";
|
|
8
|
-
import { Icon as b } from "../icon/icon.js";
|
|
9
9
|
const W = n.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
label: j,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as r } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { forwardRef as L, Fragment as i } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Icon as C } from "../../atoms/icon/icon.js";
|
|
4
|
+
import { Breadcrumb as M, BreadcrumbList as E, BreadcrumbItem as h, BreadcrumbEllipsis as I, BreadcrumbSeparator as N, BreadcrumbPage as V, BreadcrumbLink as k } from "../../../vendor/shadcn/breadcrumb.js";
|
|
4
5
|
import { DropdownMenu as u, DropdownMenuTrigger as x, DropdownMenuContent as j, DropdownMenuItem as p } from "../../../vendor/shadcn/dropdown-menu.js";
|
|
5
|
-
import { Icon as k } from "../../atoms/icon/icon.js";
|
|
6
6
|
const v = L(
|
|
7
7
|
({ items: s, separator: b, maxItems: l = 0, className: f }, m) => {
|
|
8
8
|
const a = l > 0 && s.length > l, c = a ? [
|
|
@@ -16,20 +16,20 @@ const v = L(
|
|
|
16
16
|
for (let n = e.length - 1; n >= 0; n--)
|
|
17
17
|
if (e[n]) return n;
|
|
18
18
|
return -1;
|
|
19
|
-
})(c), t = () => /* @__PURE__ */ r.jsx(
|
|
19
|
+
})(c), t = () => /* @__PURE__ */ r.jsx(N, { children: b }), B = (e) => /* @__PURE__ */ r.jsxs(u, { children: [
|
|
20
20
|
/* @__PURE__ */ r.jsxs(x, { className: "flex items-center gap-1 text-sm text-neutral-500 hover:text-neutral-700 transition-colors", children: [
|
|
21
21
|
e.label,
|
|
22
|
-
/* @__PURE__ */ r.jsx(
|
|
22
|
+
/* @__PURE__ */ r.jsx(C, { name: "CaretDown", className: "size-4" })
|
|
23
23
|
] }),
|
|
24
24
|
/* @__PURE__ */ r.jsx(j, { children: e.dropdown?.map((n, o) => /* @__PURE__ */ r.jsx(p, { asChild: !0, children: /* @__PURE__ */ r.jsx("a", { href: n.href, children: n.label }) }, o)) })
|
|
25
|
-
] }), w = (e, n) => n ? /* @__PURE__ */ r.jsx(
|
|
25
|
+
] }), w = (e, n) => n ? /* @__PURE__ */ r.jsx(V, { children: e.label }) : /* @__PURE__ */ r.jsx(k, { href: e.href, children: e.label }), D = () => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26
26
|
/* @__PURE__ */ r.jsx(h, { children: /* @__PURE__ */ r.jsxs(u, { children: [
|
|
27
|
-
/* @__PURE__ */ r.jsx(x, { children: /* @__PURE__ */ r.jsx(
|
|
27
|
+
/* @__PURE__ */ r.jsx(x, { children: /* @__PURE__ */ r.jsx(I, {}) }),
|
|
28
28
|
/* @__PURE__ */ r.jsx(j, { children: d.map((e, n) => /* @__PURE__ */ r.jsx(p, { asChild: !0, children: /* @__PURE__ */ r.jsx("a", { href: e.href, children: e.label }) }, n)) })
|
|
29
29
|
] }) }),
|
|
30
30
|
t()
|
|
31
31
|
] });
|
|
32
|
-
return /* @__PURE__ */ r.jsx(
|
|
32
|
+
return /* @__PURE__ */ r.jsx(M, { ref: m, className: f, children: /* @__PURE__ */ r.jsx(E, { children: c.map((e, n) => {
|
|
33
33
|
if (e === null && d.length > 0)
|
|
34
34
|
return /* @__PURE__ */ r.jsx(i, { children: D() }, n);
|
|
35
35
|
if (!e) return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "../../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { Icon as o } from "../../../../atoms/icon/icon.js";
|
|
2
3
|
import { cn as u } from "../../../../../lib/utils.js";
|
|
3
4
|
import { DataTableSortIndicator as f } from "./data-table-sort-indicator.js";
|
|
4
5
|
import { COLUMN_HEADER_CONFIG as t } from "../../utils/data-table-constants.js";
|
|
5
|
-
import { Icon as o } from "../../../../atoms/icon/icon.js";
|
|
6
6
|
import { DropdownMenuTrigger as d } from "../../../../atoms/dropdown-menu/dropdown-menu.js";
|
|
7
7
|
function N({
|
|
8
8
|
title: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Icon as n } from "../../../../atoms/icon/icon.js";
|
|
3
|
+
import { DropdownMenuContent as g, DropdownMenuItem as i, DropdownMenuSeparator as o } from "../../../../atoms/dropdown-menu/dropdown-menu.js";
|
|
4
4
|
function p({
|
|
5
5
|
column: s,
|
|
6
6
|
isLastVisibleColumn: r,
|
|
@@ -9,63 +9,63 @@ function p({
|
|
|
9
9
|
const l = s.getCanSort(), d = s.getCanPin(), x = s.getCanHide(), t = s.getIsPinned(), c = s.getIsSorted();
|
|
10
10
|
return /* @__PURE__ */ e.jsxs(g, { align: "start", children: [
|
|
11
11
|
l && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
12
|
-
/* @__PURE__ */ e.jsxs(
|
|
13
|
-
/* @__PURE__ */ e.jsx(
|
|
12
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: () => s.toggleSorting(!1), children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx(n, { name: "ArrowUp", size: "sm" }),
|
|
14
14
|
"Ascending"
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */ e.jsxs(
|
|
17
|
-
/* @__PURE__ */ e.jsx(
|
|
16
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: () => s.toggleSorting(!0), children: [
|
|
17
|
+
/* @__PURE__ */ e.jsx(n, { name: "ArrowDown", size: "sm" }),
|
|
18
18
|
"Descending"
|
|
19
19
|
] }),
|
|
20
|
-
c && /* @__PURE__ */ e.jsxs(
|
|
21
|
-
/* @__PURE__ */ e.jsx(
|
|
20
|
+
c && /* @__PURE__ */ e.jsxs(i, { onClick: () => s.clearSorting(), children: [
|
|
21
|
+
/* @__PURE__ */ e.jsx(n, { name: "X", size: "sm" }),
|
|
22
22
|
"Clear sorting"
|
|
23
23
|
] }),
|
|
24
24
|
/* @__PURE__ */ e.jsx(o, {})
|
|
25
25
|
] }),
|
|
26
26
|
d && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
27
27
|
/* @__PURE__ */ e.jsxs(
|
|
28
|
-
|
|
28
|
+
i,
|
|
29
29
|
{
|
|
30
30
|
onClick: () => s.pin("left"),
|
|
31
31
|
disabled: t === "left",
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ e.jsx(
|
|
33
|
+
/* @__PURE__ */ e.jsx(n, { name: "PushPinSimple", size: "sm" }),
|
|
34
34
|
"Pin to the left"
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
38
|
/* @__PURE__ */ e.jsxs(
|
|
39
|
-
|
|
39
|
+
i,
|
|
40
40
|
{
|
|
41
41
|
onClick: () => s.pin("right"),
|
|
42
42
|
disabled: t === "right",
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e.jsx(
|
|
44
|
+
/* @__PURE__ */ e.jsx(n, { name: "PushPinSimple", size: "sm" }),
|
|
45
45
|
"Pin to the right"
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
t && /* @__PURE__ */ e.jsxs(
|
|
50
|
-
/* @__PURE__ */ e.jsx(
|
|
49
|
+
t && /* @__PURE__ */ e.jsxs(i, { onClick: () => s.pin(!1), children: [
|
|
50
|
+
/* @__PURE__ */ e.jsx(n, { name: "PushPinSimpleSlash", size: "sm" }),
|
|
51
51
|
"Unpin"
|
|
52
52
|
] }),
|
|
53
53
|
/* @__PURE__ */ e.jsx(o, {})
|
|
54
54
|
] }),
|
|
55
55
|
x && /* @__PURE__ */ e.jsxs(
|
|
56
|
-
|
|
56
|
+
i,
|
|
57
57
|
{
|
|
58
58
|
onClick: () => s.toggleVisibility(!1),
|
|
59
59
|
disabled: r,
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ e.jsx(
|
|
61
|
+
/* @__PURE__ */ e.jsx(n, { name: "EyeSlash", size: "sm" }),
|
|
62
62
|
"Hide",
|
|
63
63
|
r && /* @__PURE__ */ e.jsx("span", { className: "ml-auto text-xs text-muted-foreground", children: "(Last column)" })
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ e.jsxs(
|
|
68
|
-
/* @__PURE__ */ e.jsx(
|
|
67
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: a, children: [
|
|
68
|
+
/* @__PURE__ */ e.jsx(n, { name: "Columns", size: "sm" }),
|
|
69
69
|
"Manage columns"
|
|
70
70
|
] })
|
|
71
71
|
] });
|
package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { Icon as b } from "../../../../atoms/icon/icon.js";
|
|
2
3
|
import { cn as m } from "../../../../../lib/utils.js";
|
|
3
|
-
import { useColumnHeader as
|
|
4
|
-
import { DataTableColumnHeaderMenu as
|
|
5
|
-
import { DataTableManageColumnsDialog as
|
|
6
|
-
import { DataTableColumnHeaderContent as
|
|
7
|
-
import { Icon as H } from "../../../../atoms/icon/icon.js";
|
|
4
|
+
import { useColumnHeader as D } from "../../hooks/use-column-header.js";
|
|
5
|
+
import { DataTableColumnHeaderMenu as O } from "./data-table-column-header-menu.js";
|
|
6
|
+
import { DataTableManageColumnsDialog as v } from "../dialogs/data-table-manage-columns-dialog.js";
|
|
7
|
+
import { DataTableColumnHeaderContent as H } from "./data-table-column-header-content.js";
|
|
8
8
|
import { DropdownMenu as I } from "../../../../atoms/dropdown-menu/dropdown-menu.js";
|
|
9
9
|
function z({
|
|
10
10
|
column: o,
|
|
@@ -28,10 +28,10 @@ function z({
|
|
|
28
28
|
visibleColumnsCount: j,
|
|
29
29
|
isLastVisibleColumn: M,
|
|
30
30
|
handleManageColumnsClick: h
|
|
31
|
-
} =
|
|
31
|
+
} = D(o, l);
|
|
32
32
|
return !i && !x ? /* @__PURE__ */ e.jsxs("div", { className: m("flex items-center gap-2", a), children: [
|
|
33
33
|
n && /* @__PURE__ */ e.jsx(
|
|
34
|
-
|
|
34
|
+
b,
|
|
35
35
|
{
|
|
36
36
|
name: "Info",
|
|
37
37
|
size: "sm",
|
|
@@ -43,7 +43,7 @@ function z({
|
|
|
43
43
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
44
44
|
/* @__PURE__ */ e.jsx("div", { className: m("flex items-center gap-2", a), children: /* @__PURE__ */ e.jsxs(I, { open: t, onOpenChange: p, children: [
|
|
45
45
|
/* @__PURE__ */ e.jsx(
|
|
46
|
-
|
|
46
|
+
H,
|
|
47
47
|
{
|
|
48
48
|
title: s,
|
|
49
49
|
info: n,
|
|
@@ -57,7 +57,7 @@ function z({
|
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
/* @__PURE__ */ e.jsx(
|
|
60
|
-
|
|
60
|
+
O,
|
|
61
61
|
{
|
|
62
62
|
column: o,
|
|
63
63
|
isLastVisibleColumn: M,
|
|
@@ -66,7 +66,7 @@ function z({
|
|
|
66
66
|
)
|
|
67
67
|
] }) }),
|
|
68
68
|
/* @__PURE__ */ e.jsx(
|
|
69
|
-
|
|
69
|
+
v,
|
|
70
70
|
{
|
|
71
71
|
isOpen: d,
|
|
72
72
|
onOpenChange: C,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import * as C from "react";
|
|
3
|
+
import { Button as S } from "../../../atoms/button/button.js";
|
|
3
4
|
import { DataTableColumnHeader as f } from "../components/column-header/data-table-column-header.js";
|
|
4
|
-
import { isHeaderConfig as
|
|
5
|
+
import { isHeaderConfig as h } from "../utils/data-table-utils.js";
|
|
5
6
|
import { ACTIONS_COLUMN_CONFIG as c } from "../utils/data-table-constants.js";
|
|
6
7
|
import { Checkbox as u } from "../../../atoms/checkbox/checkbox.js";
|
|
7
|
-
import { Button as h } from "../../../atoms/button/button.js";
|
|
8
8
|
function P({
|
|
9
9
|
columns: g,
|
|
10
10
|
checkboxSelection: d = !1,
|
|
@@ -24,7 +24,7 @@ function P({
|
|
|
24
24
|
title: e
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
|
-
} :
|
|
27
|
+
} : h(e) ? {
|
|
28
28
|
...o,
|
|
29
29
|
enablePinning: i,
|
|
30
30
|
header: ({ column: s, table: m }) => /* @__PURE__ */ n.jsx(
|
|
@@ -65,7 +65,7 @@ function P({
|
|
|
65
65
|
id: "actions",
|
|
66
66
|
header: "",
|
|
67
67
|
cell: ({ row: e }) => a.render ? /* @__PURE__ */ n.jsx(n.Fragment, { children: a.render(e.original) }) : /* @__PURE__ */ n.jsx(
|
|
68
|
-
|
|
68
|
+
S,
|
|
69
69
|
{
|
|
70
70
|
variant: "ghost",
|
|
71
71
|
size: "icon",
|
|
@@ -5,9 +5,9 @@ import { cva as g } from "../../../node_modules/class-variance-authority/dist/in
|
|
|
5
5
|
import { normalizeDimension as p, cn as r } from "../../../lib/utils.js";
|
|
6
6
|
import { useBodyScrollLock as M } from "../../../hooks/use-body-scroll-lock.js";
|
|
7
7
|
import { useEscapeKey as R } from "../../../hooks/use-escape-key.js";
|
|
8
|
-
import { Typography as x } from "../../atoms/typography/typography.js";
|
|
9
|
-
import { Button as b } from "../../atoms/button/button.js";
|
|
10
8
|
import { Icon as W } from "../../atoms/icon/icon.js";
|
|
9
|
+
import { Button as x } from "../../atoms/button/button.js";
|
|
10
|
+
import { Typography as b } from "../../atoms/typography/typography.js";
|
|
11
11
|
const D = g(
|
|
12
12
|
"fixed z-[1000000] bg-background shadow-lg transition-transform duration-300 ease-in-out",
|
|
13
13
|
{
|
|
@@ -117,7 +117,7 @@ const D = g(
|
|
|
117
117
|
children: [
|
|
118
118
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
119
119
|
l && /* @__PURE__ */ e.jsx(
|
|
120
|
-
|
|
120
|
+
b,
|
|
121
121
|
{
|
|
122
122
|
id: "sheet-title",
|
|
123
123
|
as: "h2",
|
|
@@ -127,7 +127,7 @@ const D = g(
|
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
o && /* @__PURE__ */ e.jsx(
|
|
130
|
-
|
|
130
|
+
b,
|
|
131
131
|
{
|
|
132
132
|
id: "sheet-description",
|
|
133
133
|
variant: "muted",
|
|
@@ -137,7 +137,7 @@ const D = g(
|
|
|
137
137
|
)
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ e.jsx(
|
|
140
|
-
|
|
140
|
+
x,
|
|
141
141
|
{
|
|
142
142
|
variant: "ghost",
|
|
143
143
|
size: "icon",
|
|
@@ -159,7 +159,7 @@ const D = g(
|
|
|
159
159
|
z
|
|
160
160
|
),
|
|
161
161
|
children: c.map((t, C) => /* @__PURE__ */ e.jsx(
|
|
162
|
-
|
|
162
|
+
x,
|
|
163
163
|
{
|
|
164
164
|
disabled: T || t.disabled,
|
|
165
165
|
...t
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { forwardRef as C } from "react";
|
|
3
3
|
import { cn as j } from "../../../lib/utils.js";
|
|
4
|
-
import {
|
|
5
|
-
import { Button as x } from "../../atoms/button/button.js";
|
|
4
|
+
import { Button as c } from "../../atoms/button/button.js";
|
|
6
5
|
import { Icon as y } from "../../atoms/icon/icon.js";
|
|
6
|
+
import { Typography as x } from "../../atoms/typography/typography.js";
|
|
7
7
|
import { Link as b } from "../../atoms/link/link.js";
|
|
8
8
|
import { Badge as w } from "../../atoms/badge/badge.js";
|
|
9
9
|
const B = C(
|
|
@@ -46,9 +46,9 @@ const B = C(
|
|
|
46
46
|
style: i ? { maxWidth: `${i}px` } : void 0,
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between gap-4 mb-3", children: [
|
|
49
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: a.title && /* @__PURE__ */ e.jsx(
|
|
49
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: a.title && /* @__PURE__ */ e.jsx(x, { variant: "h4", className: "text-base font-semibold", children: a.title }) }),
|
|
50
50
|
!a.hideCloseButton && /* @__PURE__ */ e.jsx(
|
|
51
|
-
|
|
51
|
+
c,
|
|
52
52
|
{
|
|
53
53
|
variant: "ghost",
|
|
54
54
|
size: "icon",
|
|
@@ -58,7 +58,7 @@ const B = C(
|
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
61
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-5", children: /* @__PURE__ */ e.jsx(
|
|
61
|
+
/* @__PURE__ */ e.jsx("div", { className: "mb-5", children: /* @__PURE__ */ e.jsx(x, { variant: "sm", className: "text-muted-foreground font-normal", children: a.content }) }),
|
|
62
62
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
63
63
|
t && h !== (d ?? 0) - 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsx(
|
|
64
64
|
b,
|
|
@@ -70,13 +70,13 @@ const B = C(
|
|
|
70
70
|
children: t.title
|
|
71
71
|
}
|
|
72
72
|
) }),
|
|
73
|
-
(d ?? 0) > 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsxs(
|
|
73
|
+
(d ?? 0) > 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsxs(x, { variant: "xs", className: "text-muted-foreground mr-6", children: [
|
|
74
74
|
"Step ",
|
|
75
75
|
(h ?? 0) + 1,
|
|
76
76
|
" of ",
|
|
77
77
|
d
|
|
78
78
|
] }) }),
|
|
79
|
-
o && n && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
79
|
+
o && n && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(c, { size: "default", ...n, children: n.title }) })
|
|
80
80
|
] }),
|
|
81
81
|
!o && r.length > 0 && /* @__PURE__ */ e.jsxs(
|
|
82
82
|
"div",
|
|
@@ -88,7 +88,7 @@ const B = C(
|
|
|
88
88
|
children: [
|
|
89
89
|
v && f && /* @__PURE__ */ e.jsx(w, { variant: "default", className: "bg-green-100 text-green-800", children: f }),
|
|
90
90
|
r.map((s, m) => /* @__PURE__ */ e.jsx(
|
|
91
|
-
|
|
91
|
+
c,
|
|
92
92
|
{
|
|
93
93
|
variant: s.variant || "default",
|
|
94
94
|
size: s.size || "default",
|