@cryptlex/web-components 1.3.3 → 1.3.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/dist/components/data-table/column-picker.es.js +15 -17
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +60 -57
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +19 -23
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +21 -24
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +21 -17
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js +8 -9
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +1 -1
- package/dist/components/data-table/table-utils/types.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +85 -0
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
- package/dist/components/sidebar/app-layout.es.js +14 -27
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/nav-main.es.js +44 -42
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +6 -6
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +12 -14
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/button.es.js +11 -10
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +48 -59
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/collapsible.es.js +1 -0
- package/dist/components/ui/collapsible.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +72 -0
- package/dist/components/ui/copy-button.es.js.map +1 -0
- package/dist/components/ui/dialog.es.js +23 -22
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +21 -57
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/form.es.js +28 -29
- package/dist/components/ui/form.es.js.map +1 -1
- package/dist/components/ui/link-button.es.js +22 -0
- package/dist/components/ui/link-button.es.js.map +1 -0
- package/dist/components/ui/mutli-select.es.js +15 -15
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +20 -20
- package/dist/components/ui/password-input.es.js +9 -8
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/search-input.es.js +5 -4
- package/dist/components/ui/search-input.es.js.map +1 -1
- package/dist/components/ui/select.es.js +17 -22
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/separator.es.js +17 -18
- package/dist/components/ui/separator.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +1 -0
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sonner.es.js +3 -2
- package/dist/components/ui/sonner.es.js.map +1 -1
- package/dist/components/ui/table.es.js +19 -19
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +9 -8
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/index.es.d.ts +55 -82
- package/dist/index.es.js +215 -220
- package/dist/utils/index.es.js +19 -14
- package/dist/utils/index.es.js.map +1 -1
- package/package.json +10 -6
- package/tailwind.preset.ts +55 -47
- package/dist/components/data-table/table-utils/fetch.es.js +0 -40
- package/dist/components/data-table/table-utils/fetch.es.js.map +0 -1
- package/dist/components/info-card/info-card.es.js +0 -74
- package/dist/components/info-card/info-card.es.js.map +0 -1
- package/dist/components/ui/dynamic-input.es.js +0 -141
- package/dist/components/ui/dynamic-input.es.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { ChevronLeftIcon as c, ChevronRightIcon as m, DotsHorizontalIcon as p } from "@radix-ui/react-icons";
|
|
4
4
|
import { cn as e } from "../../utils/index.es.js";
|
|
5
5
|
import { buttonVariants as g } from "./button.es.js";
|
|
6
|
-
const
|
|
6
|
+
const d = ({ className: i, ...a }) => /* @__PURE__ */ n(
|
|
7
7
|
"nav",
|
|
8
8
|
{
|
|
9
9
|
role: "navigation",
|
|
@@ -12,22 +12,22 @@ const N = ({ className: i, ...a }) => /* @__PURE__ */ n(
|
|
|
12
12
|
...a
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
d.displayName = "Pagination";
|
|
16
|
+
const N = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ n(
|
|
17
17
|
"ul",
|
|
18
18
|
{
|
|
19
|
-
ref:
|
|
19
|
+
ref: t,
|
|
20
20
|
className: e("flex flex-row items-center gap-1", i),
|
|
21
21
|
...a
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
|
|
25
|
-
const f = l.forwardRef(({ className: i, ...a },
|
|
24
|
+
N.displayName = "PaginationContent";
|
|
25
|
+
const f = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ n("li", { ref: t, className: e("", i), ...a }));
|
|
26
26
|
f.displayName = "PaginationItem";
|
|
27
27
|
const s = ({
|
|
28
28
|
className: i,
|
|
29
29
|
isActive: a,
|
|
30
|
-
size:
|
|
30
|
+
size: t = "icon",
|
|
31
31
|
...r
|
|
32
32
|
}) => /* @__PURE__ */ n(
|
|
33
33
|
"a",
|
|
@@ -36,7 +36,7 @@ const s = ({
|
|
|
36
36
|
className: e(
|
|
37
37
|
g({
|
|
38
38
|
variant: a ? "outline" : "ghost",
|
|
39
|
-
size:
|
|
39
|
+
size: t
|
|
40
40
|
}),
|
|
41
41
|
i
|
|
42
42
|
),
|
|
@@ -47,7 +47,7 @@ s.displayName = "PaginationLink";
|
|
|
47
47
|
const P = ({
|
|
48
48
|
className: i,
|
|
49
49
|
...a
|
|
50
|
-
}) => /* @__PURE__ */
|
|
50
|
+
}) => /* @__PURE__ */ o(
|
|
51
51
|
s,
|
|
52
52
|
{
|
|
53
53
|
"aria-label": "Go to previous page",
|
|
@@ -61,10 +61,10 @@ const P = ({
|
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
P.displayName = "PaginationPrevious";
|
|
64
|
-
const
|
|
64
|
+
const u = ({
|
|
65
65
|
className: i,
|
|
66
66
|
...a
|
|
67
|
-
}) => /* @__PURE__ */
|
|
67
|
+
}) => /* @__PURE__ */ o(
|
|
68
68
|
s,
|
|
69
69
|
{
|
|
70
70
|
"aria-label": "Go to next page",
|
|
@@ -77,11 +77,11 @@ const h = ({
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
80
|
+
u.displayName = "PaginationNext";
|
|
81
|
+
const h = ({
|
|
82
82
|
className: i,
|
|
83
83
|
...a
|
|
84
|
-
}) => /* @__PURE__ */
|
|
84
|
+
}) => /* @__PURE__ */ o(
|
|
85
85
|
"span",
|
|
86
86
|
{
|
|
87
87
|
"aria-hidden": !0,
|
|
@@ -93,14 +93,14 @@ const u = ({
|
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
h.displayName = "PaginationEllipsis";
|
|
97
97
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
d as Pagination,
|
|
99
|
+
N as PaginationContent,
|
|
100
|
+
h as PaginationEllipsis,
|
|
101
101
|
f as PaginationItem,
|
|
102
102
|
s as PaginationLink,
|
|
103
|
-
|
|
103
|
+
u as PaginationNext,
|
|
104
104
|
P as PaginationPrevious
|
|
105
105
|
};
|
|
106
106
|
//# sourceMappingURL=pagination.es.js.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
3
|
import * as o from "react";
|
|
3
4
|
import { EyeIcon as d, EyeOffIcon as m } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
({ className:
|
|
5
|
+
import { Button as i } from "./button.es.js";
|
|
6
|
+
import { Input as u } from "./input.es.js";
|
|
7
|
+
const c = o.forwardRef(
|
|
8
|
+
({ className: l, ...r }, s) => {
|
|
8
9
|
const [t, a] = o.useState(!1);
|
|
9
10
|
return /* @__PURE__ */ n("div", { className: "flex flex-row items-center relative", children: [
|
|
10
|
-
/* @__PURE__ */ e(
|
|
11
|
+
/* @__PURE__ */ e(u, { type: t ? "text" : "password", ref: s, ...r }),
|
|
11
12
|
/* @__PURE__ */ e(
|
|
12
|
-
|
|
13
|
+
i,
|
|
13
14
|
{
|
|
14
15
|
type: "button",
|
|
15
16
|
className: "absolute right-0 top-0 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none",
|
|
@@ -20,8 +21,8 @@ const u = o.forwardRef(
|
|
|
20
21
|
] });
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
|
-
|
|
24
|
+
c.displayName = "PasswordInput";
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
c as PasswordInput
|
|
26
27
|
};
|
|
27
28
|
//# sourceMappingURL=password-input.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.es.js","sources":["../../../lib/components/ui/password-input.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"password-input.es.js","sources":["../../../lib/components/ui/password-input.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\n\nimport { EyeIcon, EyeOffIcon } from 'lucide-react';\nimport { Button } from './button';\nimport { Input, InputProps } from './input';\n\nconst PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, ...props }, ref) => {\n const [showPassword, setShowPassword] = React.useState<boolean>(false);\n return (\n <div className=\"flex flex-row items-center relative\">\n <Input type={showPassword ? 'text' : 'password'} ref={ref} {...props} />\n <Button\n type=\"button\"\n className=\"absolute right-0 top-0 rounded-md bg-transparent p-2 text-muted-foreground hover:bg-muted/5 focus:outline-none\"\n onClick={() => setShowPassword(!showPassword)}\n >\n {!showPassword ? (\n <EyeIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n ) : (\n <EyeOffIcon className=\"h-4 w-4\" aria-hidden=\"true\" />\n )}\n </Button>\n </div>\n );\n },\n);\nPasswordInput.displayName = 'PasswordInput';\n\nexport { PasswordInput };\n"],"names":["PasswordInput","React","className","props","ref","showPassword","setShowPassword","jsxs","jsx","Input","Button","EyeOffIcon","EyeIcon"],"mappings":";;;;;;AAOA,MAAMA,IAAgBC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAAQ;AAChC,UAAM,CAACC,GAAcC,CAAe,IAAIL,EAAM,SAAkB,EAAK;AAEnE,WAAA,gBAAAM,EAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAM,MAAMJ,IAAe,SAAS,YAAY,KAAAD,GAAW,GAAGD,GAAO;AAAA,MACtE,gBAAAK;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAMJ,EAAgB,CAACD,CAAY;AAAA,UAE3C,UAACA,IAGC,gBAAAG,EAAAG,GAAA,EAAW,WAAU,WAAU,eAAY,OAAO,CAAA,IAFlD,gBAAAH,EAAAI,GAAA,EAAQ,WAAU,WAAU,eAAY,OAAO,CAAA;AAAA,QAEG;AAAA,MAAA;AAAA,IAEvD,GACF;AAAA,EAAA;AAGN;AACAZ,EAAc,cAAc;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import { Search as u, X as n } from "lucide-react";
|
|
3
4
|
import { useState as f } from "react";
|
|
4
5
|
import { Input as d } from "./input.es.js";
|
|
5
|
-
const N = ({ onChange: t, ...
|
|
6
|
+
const N = ({ onChange: t, ...o }) => {
|
|
6
7
|
const [a, l] = f(""), i = (e) => {
|
|
7
|
-
const
|
|
8
|
-
l(
|
|
8
|
+
const c = e.target.value;
|
|
9
|
+
l(c), t == null || t(c);
|
|
9
10
|
}, s = () => {
|
|
10
11
|
l(""), t == null || t("");
|
|
11
12
|
}, m = (e) => {
|
|
@@ -16,7 +17,7 @@ const N = ({ onChange: t, ...c }) => {
|
|
|
16
17
|
/* @__PURE__ */ r(
|
|
17
18
|
d,
|
|
18
19
|
{
|
|
19
|
-
...
|
|
20
|
+
...o,
|
|
20
21
|
value: a,
|
|
21
22
|
onChange: i,
|
|
22
23
|
className: "w-[200px] pl-7 pr-7"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.es.js","sources":["../../../lib/components/ui/search-input.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"search-input.es.js","sources":["../../../lib/components/ui/search-input.tsx"],"sourcesContent":["'use client';\nimport { Search, X } from 'lucide-react'; // Assuming LucideIcon is the type of your icons\nimport React, { useState } from 'react';\nimport { Input, InputProps } from './input'; // Adjust based on your Input import path\n\ninterface SearchInputProps extends Omit<InputProps, 'onChange'> {\n onChange?: (value: string) => void; // Function to handle input value changes\n}\n\nconst SearchInput: React.FC<SearchInputProps> = ({ onChange, ...props }) => {\n const [value, setValue] = useState<string>('');\n\n const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n setValue(newValue);\n onChange?.(newValue); // Call the custom onChange handler with the new value\n };\n\n const handleClearClick = () => {\n setValue('');\n onChange?.(''); // Notify the parent that the input has been cleared\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<SVGElement>) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n handleClearClick(); // Trigger the clear action on Enter or Space key press\n }\n };\n\n return (\n <div className=\"relative flex items-center\">\n {/* Search Icon */}\n <div className=\"absolute left-2 top-1/2 transform -translate-y-1/2\">\n <Search className=\"h-4 w-4\" />\n </div>\n\n {/* Input Field */}\n <Input\n {...props}\n value={value}\n onChange={handleInputChange} // Use the internal handler\n className={`w-[200px] pl-7 pr-7`}\n />\n\n {/* Clear (X) Icon */}\n {value && (\n <X\n onClick={handleClearClick}\n onKeyDown={handleKeyDown}\n tabIndex={0}\n role=\"button\" // Announce it as a button for assistive technologies\n aria-label=\"Clear search input\" // Accessible label\n className=\"absolute right-1 top-1/2 transform -translate-y-1/2 cursor-pointer\"\n />\n )}\n </div>\n );\n};\n\nexport { SearchInput };\n"],"names":["SearchInput","onChange","props","value","setValue","useState","handleInputChange","event","newValue","handleClearClick","handleKeyDown","jsxs","jsx","Search","Input","X"],"mappings":";;;;;AASA,MAAMA,IAA0C,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAAY;AAC1E,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAiB,EAAE,GAEvCC,IAAoB,CAACC,MAA+C;AAClE,UAAAC,IAAWD,EAAM,OAAO;AAC9B,IAAAH,EAASI,CAAQ,GACjBP,KAAA,QAAAA,EAAWO;AAAA,EACb,GAEMC,IAAmB,MAAM;AAC7B,IAAAL,EAAS,EAAE,GACXH,KAAA,QAAAA,EAAW;AAAA,EACb,GAEMS,IAAgB,CAACH,MAA2C;AAChE,KAAIA,EAAM,QAAQ,WAAWA,EAAM,QAAQ,SACzCA,EAAM,eAAe,GACJE,EAAA;AAAA,EAErB;AAGE,SAAA,gBAAAE,EAAC,OAAI,EAAA,WAAU,8BAEb,UAAA;AAAA,IAAA,gBAAAC,EAAC,SAAI,WAAU,sDACb,4BAACC,GAAO,EAAA,WAAU,WAAU,EAC9B,CAAA;AAAA,IAGA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACE,GAAGZ;AAAA,QACJ,OAAAC;AAAA,QACA,UAAUG;AAAA,QACV,WAAW;AAAA,MAAA;AAAA,IACb;AAAA,IAGCH,KACC,gBAAAS;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,SAASN;AAAA,QACT,WAAWC;AAAA,QACX,UAAU;AAAA,QACV,MAAK;AAAA,QACL,cAAW;AAAA,QACX,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ,GAEJ;AAEJ;"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import * as s from "react";
|
|
3
3
|
import { CaretSortIcon as p, ChevronUpIcon as f, ChevronDownIcon as u, CheckIcon as h } from "@radix-ui/react-icons";
|
|
4
4
|
import * as e from "@radix-ui/react-select";
|
|
5
|
+
import * as s from "react";
|
|
5
6
|
import { cn as l } from "../../utils/index.es.js";
|
|
6
7
|
const I = e.Root, R = e.Group, C = e.Value, y = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
|
|
7
8
|
e.Trigger,
|
|
8
9
|
{
|
|
9
10
|
ref: d,
|
|
10
11
|
className: l(
|
|
11
|
-
"flex h-
|
|
12
|
+
"flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-body shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
12
13
|
o
|
|
13
14
|
),
|
|
14
15
|
...a,
|
|
@@ -23,10 +24,7 @@ const i = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
|
23
24
|
e.ScrollUpButton,
|
|
24
25
|
{
|
|
25
26
|
ref: a,
|
|
26
|
-
className: l(
|
|
27
|
-
"flex cursor-default items-center justify-center py-1",
|
|
28
|
-
o
|
|
29
|
-
),
|
|
27
|
+
className: l("flex cursor-default items-center justify-center py-1", o),
|
|
30
28
|
...r,
|
|
31
29
|
children: /* @__PURE__ */ t(f, {})
|
|
32
30
|
}
|
|
@@ -36,16 +34,13 @@ const c = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
|
36
34
|
e.ScrollDownButton,
|
|
37
35
|
{
|
|
38
36
|
ref: a,
|
|
39
|
-
className: l(
|
|
40
|
-
"flex cursor-default items-center justify-center py-1",
|
|
41
|
-
o
|
|
42
|
-
),
|
|
37
|
+
className: l("flex cursor-default items-center justify-center py-1", o),
|
|
43
38
|
...r,
|
|
44
39
|
children: /* @__PURE__ */ t(u, {})
|
|
45
40
|
}
|
|
46
41
|
));
|
|
47
42
|
c.displayName = e.ScrollDownButton.displayName;
|
|
48
|
-
const
|
|
43
|
+
const g = s.forwardRef(({ className: o, children: r, position: a = "popper", ...d }, m) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ n(
|
|
49
44
|
e.Content,
|
|
50
45
|
{
|
|
51
46
|
ref: m,
|
|
@@ -72,8 +67,8 @@ const w = s.forwardRef(({ className: o, children: r, position: a = "popper", ...
|
|
|
72
67
|
]
|
|
73
68
|
}
|
|
74
69
|
) }));
|
|
75
|
-
|
|
76
|
-
const
|
|
70
|
+
g.displayName = e.Content.displayName;
|
|
71
|
+
const w = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
77
72
|
e.Label,
|
|
78
73
|
{
|
|
79
74
|
ref: a,
|
|
@@ -81,8 +76,8 @@ const g = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
|
81
76
|
...r
|
|
82
77
|
}
|
|
83
78
|
));
|
|
84
|
-
|
|
85
|
-
const
|
|
79
|
+
w.displayName = e.Label.displayName;
|
|
80
|
+
const b = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ n(
|
|
86
81
|
e.Item,
|
|
87
82
|
{
|
|
88
83
|
ref: d,
|
|
@@ -97,8 +92,8 @@ const N = s.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__
|
|
|
97
92
|
]
|
|
98
93
|
}
|
|
99
94
|
));
|
|
100
|
-
|
|
101
|
-
const
|
|
95
|
+
b.displayName = e.Item.displayName;
|
|
96
|
+
const N = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
102
97
|
e.Separator,
|
|
103
98
|
{
|
|
104
99
|
ref: a,
|
|
@@ -106,16 +101,16 @@ const b = s.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
|
|
|
106
101
|
...r
|
|
107
102
|
}
|
|
108
103
|
));
|
|
109
|
-
|
|
104
|
+
N.displayName = e.Separator.displayName;
|
|
110
105
|
export {
|
|
111
106
|
I as Select,
|
|
112
|
-
|
|
107
|
+
g as SelectContent,
|
|
113
108
|
R as SelectGroup,
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
b as SelectItem,
|
|
110
|
+
w as SelectLabel,
|
|
116
111
|
c as SelectScrollDownButton,
|
|
117
112
|
i as SelectScrollUpButton,
|
|
118
|
-
|
|
113
|
+
N as SelectSeparator,
|
|
119
114
|
y as SelectTrigger,
|
|
120
115
|
C as SelectValue
|
|
121
116
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.es.js","sources":["../../../lib/components/ui/select.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"select.es.js","sources":["../../../lib/components/ui/select.tsx"],"sourcesContent":["'use client';\nimport { CaretSortIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport * as React from 'react';\n\nimport { cn } from '@/utils';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-background px-3 py-2 text-body shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <CaretSortIcon className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-body font-semibold', className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-body outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","CaretSortIcon","SelectScrollUpButton","ChevronUpIcon","SelectScrollDownButton","ChevronDownIcon","SelectContent","position","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"mappings":";;;;;;AAOA,MAAMA,IAASC,EAAgB,MAEzBC,IAAcD,EAAgB,OAE9BE,IAAcF,EAAgB,OAE9BG,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACD,gBAAAK,EAACX,EAAgB,MAAhB,EAAqB,SAAO,IAC3B,UAAC,gBAAAW,EAAAC,GAAA,EAAc,WAAU,qBAAqB,CAAA,EAChD,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,CACD;AACDT,EAAc,cAAcH,EAAgB,QAAQ;AAE9C,MAAAa,IAAuBT,EAAM,WAGjC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1B,gBAAAG;AAAA,EAACX,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,wDAAwDL,CAAS;AA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IACA,WAAWE,EAAG,uCAAuCL,CAAS;AAAA,IAC7D,GAAGE;AAAA,EAAA;AACN,CACD;AACDY,EAAY,cAAcnB,EAAgB,MAAM;AAE1C,MAAAoB,IAAahB,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACT,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAI,EAAC,QAAK,EAAA,WAAU,iEACd,UAAA,gBAAAA,EAACX,EAAgB,eAAhB,EACC,UAAA,gBAAAW,EAACU,GAAU,EAAA,WAAU,UAAU,CAAA,EACjC,CAAA,GACF;AAAA,MACC,gBAAAV,EAAAX,EAAgB,UAAhB,EAA0B,UAAAM,EAAS,CAAA;AAAA,IAAA;AAAA,EAAA;AACtC,CACD;AACDc,EAAW,cAAcpB,EAAgB,KAAK;AAExC,MAAAsB,IAAkBlB,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1B,gBAAAG;AAAA,EAACX,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AACN,CACD;AACDe,EAAgB,cAActB,EAAgB,UAAU;"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "@radix-ui/react-separator";
|
|
4
|
+
import * as p from "react";
|
|
4
5
|
import { cn as l } from "../../utils/index.es.js";
|
|
5
|
-
const s =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
)
|
|
20
|
-
);
|
|
6
|
+
const s = p.forwardRef(({ className: a, orientation: r = "horizontal", decorative: t = !0, ...e }, m) => /* @__PURE__ */ i(
|
|
7
|
+
o.Root,
|
|
8
|
+
{
|
|
9
|
+
ref: m,
|
|
10
|
+
decorative: t,
|
|
11
|
+
orientation: r,
|
|
12
|
+
className: l(
|
|
13
|
+
"shrink-0 bg-border",
|
|
14
|
+
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
15
|
+
a
|
|
16
|
+
),
|
|
17
|
+
...e
|
|
18
|
+
}
|
|
19
|
+
));
|
|
21
20
|
s.displayName = o.Root.displayName;
|
|
22
21
|
export {
|
|
23
22
|
s as Separator
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.es.js","sources":["../../../lib/components/ui/separator.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"separator.es.js","sources":["../../../lib/components/ui/separator.tsx"],"sourcesContent":["'use client';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport * as React from 'react';\n\nimport { cn } from '@/utils';\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-border',\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n className,\n )}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive","cn"],"mappings":";;;;;AAMA,MAAMA,IAAYC,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAC,IAAc,cAAc,YAAAC,IAAa,IAAM,GAAGC,KAASC,MACzE,gBAAAC;AAAA,EAACC,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAF;AAAA,IACA,YAAAF;AAAA,IACA,aAAAD;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAN,MAAgB,eAAe,mBAAmB;AAAA,MAClDD;AAAA,IACF;AAAA,IACC,GAAGG;AAAA,EAAA;AACN,CACD;AACDL,EAAU,cAAcQ,EAAmB,KAAK;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.es.js","sources":["../../../lib/components/ui/sheet.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"sheet.es.js","sources":["../../../lib/components/ui/sheet.tsx"],"sourcesContent":["'use client';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '@/utils';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n },\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <Cross2Icon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-heading-3 font-semibold text-foreground', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-body text-muted-foreground', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetOverlay,\n SheetPortal,\n SheetTitle,\n SheetTrigger,\n};\n"],"names":["Sheet","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","React","className","props","ref","jsx","cn","sheetVariants","cva","SheetContent","side","children","jsxs","Cross2Icon","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":";;;;;;;AAQA,MAAMA,IAAQC,EAAe,MAEvBC,IAAeD,EAAe,SAE9BE,IAAaF,EAAe,OAE5BG,IAAcH,EAAe,QAE7BI,IAAeC,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACT,EAAe;AAAA,EAAf;AAAA,IACC,WAAWU;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AACF,CACD;AACDJ,EAAa,cAAcJ,EAAe,QAAQ;AAElD,MAAMW,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,QACE;AAAA,QACF,MAAM;AAAA,QACN,OACE;AAAA,MAAA;AAAA,IAEN;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IAAA;A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AAcpB,EAAe,MAAM;AAExC,MAAAqB,IAAmBhB,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAACT,EAAe;AAAA,EAAf;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,mCAAmCJ,CAAS;AAAA,IACzD,GAAGC;AAAA,EAAA;AACN,CACD;AACDc,EAAiB,cAAcrB,EAAe,YAAY;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
3
|
import { Toaster as r } from "sonner";
|
|
3
|
-
const
|
|
4
|
+
const a = ({ ...t }) => /* @__PURE__ */ o(
|
|
4
5
|
r,
|
|
5
6
|
{
|
|
6
7
|
className: "toaster group",
|
|
@@ -16,6 +17,6 @@ const s = ({ ...t }) => /* @__PURE__ */ o(
|
|
|
16
17
|
}
|
|
17
18
|
);
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as Toaster
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=sonner.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.es.js","sources":["../../../lib/components/ui/sonner.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"sonner.es.js","sources":["../../../lib/components/ui/sonner.tsx"],"sourcesContent":["'use client';\nimport { Toaster as Sonner } from 'sonner';\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>;\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n return (\n <Sonner\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n description: 'group-[.toast]:text-muted-foreground',\n actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n },\n }}\n {...props}\n />\n );\n};\n\nexport { Toaster };\n"],"names":["Toaster","props","jsx","Sonner"],"mappings":";;;AAKA,MAAMA,IAAU,CAAC,EAAE,GAAGC,QAElB,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,cAAc;AAAA,MACZ,YAAY;AAAA,QACV,OACE;AAAA,QACF,aAAa;AAAA,QACb,cAAc;AAAA,QACd,cAAc;AAAA,MAAA;AAAA,IAElB;AAAA,IACC,GAAGF;AAAA,EAAA;AACN;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
3
|
+
import { cn as d } from "../../utils/index.es.js";
|
|
4
|
+
const l = t.forwardRef(
|
|
5
5
|
({ className: e, ...a }, r) => /* @__PURE__ */ o("div", { className: "w-full", children: /* @__PURE__ */ o(
|
|
6
6
|
"table",
|
|
7
7
|
{
|
|
8
8
|
ref: r,
|
|
9
|
-
className:
|
|
9
|
+
className: d(
|
|
10
10
|
"w-full caption-bottom text-sm [&_tr:last-child]:border-0 my-0 overflow-x-auto whitespace-nowrap",
|
|
11
11
|
e
|
|
12
12
|
),
|
|
@@ -14,12 +14,12 @@ const d = t.forwardRef(
|
|
|
14
14
|
}
|
|
15
15
|
) })
|
|
16
16
|
);
|
|
17
|
-
|
|
17
|
+
l.displayName = "Table";
|
|
18
18
|
const s = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
19
19
|
"thead",
|
|
20
20
|
{
|
|
21
21
|
ref: r,
|
|
22
|
-
className:
|
|
22
|
+
className: d("[&_tr]:border-b border-b", e),
|
|
23
23
|
...a
|
|
24
24
|
}
|
|
25
25
|
));
|
|
@@ -28,7 +28,7 @@ const b = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
|
28
28
|
"tbody",
|
|
29
29
|
{
|
|
30
30
|
ref: r,
|
|
31
|
-
className:
|
|
31
|
+
className: d(
|
|
32
32
|
"[&_tr:last-child]:border-b-2 [&_tr:last-child]:border-dotted",
|
|
33
33
|
// Updated to 2px dotted border for the last row
|
|
34
34
|
e
|
|
@@ -37,34 +37,34 @@ const b = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
|
37
37
|
}
|
|
38
38
|
));
|
|
39
39
|
b.displayName = "TableBody";
|
|
40
|
-
const
|
|
40
|
+
const m = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
41
41
|
"tfoot",
|
|
42
42
|
{
|
|
43
43
|
ref: r,
|
|
44
|
-
className:
|
|
44
|
+
className: d("border-t bg-card/50 font-medium [&>tr]:last:border-b-0", e),
|
|
45
45
|
...a
|
|
46
46
|
}
|
|
47
47
|
));
|
|
48
|
-
|
|
49
|
-
const
|
|
48
|
+
m.displayName = "TableFooter";
|
|
49
|
+
const c = t.forwardRef(
|
|
50
50
|
({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
51
51
|
"tr",
|
|
52
52
|
{
|
|
53
53
|
ref: r,
|
|
54
|
-
className:
|
|
55
|
-
"border-b
|
|
54
|
+
className: d(
|
|
55
|
+
"border-b border-card cursor-pointer transition-colors data-[state=selected]:bg-muted-foreground/20 hover:bg-muted-foreground/30",
|
|
56
56
|
e
|
|
57
57
|
),
|
|
58
58
|
...a
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
|
-
|
|
62
|
+
c.displayName = "TableRow";
|
|
63
63
|
const i = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
64
64
|
"th",
|
|
65
65
|
{
|
|
66
66
|
ref: r,
|
|
67
|
-
className:
|
|
67
|
+
className: d(
|
|
68
68
|
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
69
69
|
e
|
|
70
70
|
),
|
|
@@ -76,7 +76,7 @@ const f = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
|
76
76
|
"td",
|
|
77
77
|
{
|
|
78
78
|
ref: r,
|
|
79
|
-
className:
|
|
79
|
+
className: d(
|
|
80
80
|
"p-4 align-middle [&:has([role=checkbox])]:pr-0 border-b [&_tr:last-child]:border-dotted",
|
|
81
81
|
e
|
|
82
82
|
),
|
|
@@ -84,16 +84,16 @@ const f = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
|
|
|
84
84
|
}
|
|
85
85
|
));
|
|
86
86
|
f.displayName = "TableCell";
|
|
87
|
-
const n = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o("caption", { ref: r, className:
|
|
87
|
+
const n = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o("caption", { ref: r, className: d("mt-4 text-sm text-muted-foreground", e), ...a }));
|
|
88
88
|
n.displayName = "TableCaption";
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
l as Table,
|
|
91
91
|
b as TableBody,
|
|
92
92
|
n as TableCaption,
|
|
93
93
|
f as TableCell,
|
|
94
|
-
|
|
94
|
+
m as TableFooter,
|
|
95
95
|
i as TableHead,
|
|
96
96
|
s as TableHeader,
|
|
97
|
-
|
|
97
|
+
c as TableRow
|
|
98
98
|
};
|
|
99
99
|
//# sourceMappingURL=table.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.es.js","sources":["../../../lib/components/ui/table.tsx"],"sourcesContent":["import * as React from
|
|
1
|
+
{"version":3,"file":"table.es.js","sources":["../../../lib/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/utils';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"w-full\">\n <table\n ref={ref}\n className={cn(\n 'w-full caption-bottom text-sm [&_tr:last-child]:border-0 my-0 overflow-x-auto whitespace-nowrap',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn('[&_tr]:border-b border-b', className)} // Added border-b to apply a bottom border\n {...props}\n />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\n '[&_tr:last-child]:border-b-2 [&_tr:last-child]:border-dotted', // Updated to 2px dotted border for the last row\n className,\n )}\n {...props}\n />\n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-t bg-card/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'border-b border-card cursor-pointer transition-colors data-[state=selected]:bg-muted-foreground/20 hover:bg-muted-foreground/30',\n className,\n )}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0 border-b [&_tr:last-child]:border-dotted',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };\n"],"names":["Table","React","className","props","ref","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":";;;AAIA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAI,EAAA,WAAU,UACb,UAAA,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA,EAER,CAAA;AAEJ;AACAH,EAAM,cAAc;AAEd,MAAAO,IAAcN,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,4BAA4BJ,CAAS;AAAA,IAClD,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAY,cAAc;AAEpB,MAAAC,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAU,cAAc;AAElB,MAAAC,IAAcR,EAAM,WAG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