@versini/ui-table 0.0.0
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/components/Table/Table.js +12 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +716 -0
- package/dist/style.css +1 -0
- package/dist/style.js +0 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Arno Versini
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { Table as b, TableBody as T, TableCell as r, TableCellSort as t, TableFooter as m, TableHead as p, TableRow as d } from "../../index.js";
|
|
3
|
+
import "react";
|
|
4
|
+
export {
|
|
5
|
+
b as Table,
|
|
6
|
+
T as TableBody,
|
|
7
|
+
r as TableCell,
|
|
8
|
+
t as TableCellSort,
|
|
9
|
+
m as TableFooter,
|
|
10
|
+
p as TableHead,
|
|
11
|
+
d as TableRow
|
|
12
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { SpacingProps } from '@versini/ui-private/dist/utilities';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const TableCellSortDirections: {
|
|
6
|
+
ASC: string;
|
|
7
|
+
DESC: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type TableProps = {
|
|
11
|
+
/**
|
|
12
|
+
* This attribute defines the caption (or title) of a table.
|
|
13
|
+
*/
|
|
14
|
+
caption?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* If true, the table will be smaller.
|
|
17
|
+
*/
|
|
18
|
+
compact?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The max height of the table. It follows the CSS max-height property.
|
|
21
|
+
* Note: It is required to configure 'maxHeight' prop for the prop
|
|
22
|
+
* 'stickyHeader' to work.
|
|
23
|
+
*/
|
|
24
|
+
maxHeight?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The mode of table. It defines the color of the table.
|
|
27
|
+
*/
|
|
28
|
+
mode?: "dark" | "light" | "system" | "alt-system";
|
|
29
|
+
/**
|
|
30
|
+
* If true, the table footer will be sticky.
|
|
31
|
+
* Note: It is required to configure 'maxHeight' prop for the prop
|
|
32
|
+
* 'stickyHeader' to work.
|
|
33
|
+
*/
|
|
34
|
+
stickyFooter?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If true, the table header will be sticky.
|
|
37
|
+
* Note: It is required to configure 'maxHeight' prop for the prop
|
|
38
|
+
* 'stickyHeader' to work.
|
|
39
|
+
*/
|
|
40
|
+
stickyHeader?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* This attribute defines an alternative text that summarizes
|
|
43
|
+
* the content of the table. It is not visible but will be
|
|
44
|
+
* read out loud by screen readers to represent the table.
|
|
45
|
+
*/
|
|
46
|
+
summary?: string;
|
|
47
|
+
/**
|
|
48
|
+
* CSS class to apply to the table wrapper.
|
|
49
|
+
*/
|
|
50
|
+
wrapperClassName?: string;
|
|
51
|
+
} & SpacingProps &
|
|
52
|
+
React.HTMLAttributes<HTMLTableElement>;
|
|
53
|
+
|
|
54
|
+
type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
|
|
55
|
+
type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
56
|
+
type TableHeadProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
57
|
+
|
|
58
|
+
type TableCellProps = {
|
|
59
|
+
/**
|
|
60
|
+
* The type of cell.
|
|
61
|
+
* @default "td"
|
|
62
|
+
*/
|
|
63
|
+
component?: "td" | "th";
|
|
64
|
+
} & React.ThHTMLAttributes<HTMLTableCellElement> &
|
|
65
|
+
React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
66
|
+
|
|
67
|
+
type TableCellSortProps = {
|
|
68
|
+
/**
|
|
69
|
+
* Unique identifier for the cell. This string will have to be onClick
|
|
70
|
+
* handler to sort on this particular cell.
|
|
71
|
+
*/
|
|
72
|
+
cellId: string;
|
|
73
|
+
/**
|
|
74
|
+
* The label of the cell.
|
|
75
|
+
*/
|
|
76
|
+
children: string;
|
|
77
|
+
/**
|
|
78
|
+
* The handler to be called when the cell is clicked.
|
|
79
|
+
*/
|
|
80
|
+
onClick: (event: React.MouseEvent<unknown>) => void;
|
|
81
|
+
/**
|
|
82
|
+
* The direction of the sort.
|
|
83
|
+
*/
|
|
84
|
+
sortDirection:
|
|
85
|
+
| typeof TableCellSortDirections.ASC
|
|
86
|
+
| typeof TableCellSortDirections.DESC
|
|
87
|
+
| false;
|
|
88
|
+
/**
|
|
89
|
+
* The cellId that is currently sorted.
|
|
90
|
+
*/
|
|
91
|
+
sortedCell: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether to align the cell content to the left, center, or right.
|
|
94
|
+
*/
|
|
95
|
+
align?: "left" | "center" | "right";
|
|
96
|
+
/**
|
|
97
|
+
* The type of cell.
|
|
98
|
+
* @default "td"
|
|
99
|
+
*/
|
|
100
|
+
component?: "td" | "th";
|
|
101
|
+
/**
|
|
102
|
+
* Pass through to the underlying ButtonIcon.
|
|
103
|
+
* The type of focus for the Button. This will change the color
|
|
104
|
+
* of the focus ring around the Button.
|
|
105
|
+
*/
|
|
106
|
+
focusMode?: "system" | "light" | "dark" | "alt-system";
|
|
107
|
+
/**
|
|
108
|
+
* Pass through to the underlying ButtonIcon.
|
|
109
|
+
* The mode of Button. This will change the color of the Button.
|
|
110
|
+
*/
|
|
111
|
+
mode?: "system" | "light" | "dark" | "alt-system";
|
|
112
|
+
} & React.ThHTMLAttributes<HTMLTableCellElement> &
|
|
113
|
+
React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
114
|
+
|
|
115
|
+
declare const Table: ({ children, mode, caption, compact, summary, className, wrapperClassName, maxHeight, stickyHeader, stickyFooter, spacing, ...otherProps }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare const TableHead: ({ children, className, ...otherProps }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare const TableFooter: ({ children, className, ...otherProps }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
118
|
+
declare const TableBody: ({ children, ...otherProps }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
119
|
+
declare const TableRow: ({ children, className, ...otherProps }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
120
|
+
declare const TableCell: ({ children, component, className, ...otherProps }: TableCellProps) => react_jsx_runtime.JSX.Element;
|
|
121
|
+
declare const TableCellSort: ({ align, children, className, component, focusMode, mode, onClick, sortDirection, sortedCell, cellId, ...otherProps }: TableCellSortProps) => react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
export { Table, TableBody, TableCell, TableCellSort, TableCellSortDirections, TableFooter, TableHead, TableRow };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,716 @@
|
|
|
1
|
+
import l from "clsx";
|
|
2
|
+
import { jsx as d, jsxs as v, Fragment as U } from "react/jsx-runtime";
|
|
3
|
+
import N, { useContext as y } from "react";
|
|
4
|
+
/*!
|
|
5
|
+
@versini/ui-table v0.0.0
|
|
6
|
+
© 2024 gizmette.com
|
|
7
|
+
*/
|
|
8
|
+
try {
|
|
9
|
+
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
10
|
+
version: "0.0.0",
|
|
11
|
+
buildTime: "09/17/2024 07:15 PM EDT",
|
|
12
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
13
|
+
license: "MIT"
|
|
14
|
+
});
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
const $ = (e) => {
|
|
18
|
+
let a = "";
|
|
19
|
+
if (typeof e == "number" || typeof e == "string")
|
|
20
|
+
a = "m-" + e;
|
|
21
|
+
else {
|
|
22
|
+
const t = [];
|
|
23
|
+
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), a = t.join(" ");
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
}, _ = "thead", T = "tfoot", p = "tbody", f = {
|
|
27
|
+
ASC: "asc",
|
|
28
|
+
DESC: "desc"
|
|
29
|
+
}, A = ({
|
|
30
|
+
mode: e,
|
|
31
|
+
className: a,
|
|
32
|
+
wrapperClassName: t,
|
|
33
|
+
stickyHeader: r,
|
|
34
|
+
stickyFooter: o,
|
|
35
|
+
spacing: i
|
|
36
|
+
}) => ({
|
|
37
|
+
wrapper: l(
|
|
38
|
+
"not-prose relative w-full rounded-lg shadow-md",
|
|
39
|
+
$(i),
|
|
40
|
+
{
|
|
41
|
+
"overflow-x-auto": !r && !o,
|
|
42
|
+
"overflow-y-scroll": r || o,
|
|
43
|
+
"bg-surface-darker text-copy-light": e === "dark",
|
|
44
|
+
"bg-surface-light text-copy-dark": e === "light",
|
|
45
|
+
"bg-surface-darker text-copy-light dark:bg-surface-light dark:text-copy-dark": e === "system",
|
|
46
|
+
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-light": e === "alt-system"
|
|
47
|
+
},
|
|
48
|
+
t
|
|
49
|
+
),
|
|
50
|
+
table: l("my-0 w-full text-left text-sm", a, {
|
|
51
|
+
"text-copy-light": e === "dark",
|
|
52
|
+
"text-copy-dark": e === "light",
|
|
53
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
54
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
55
|
+
}),
|
|
56
|
+
caption: l("py-2 text-sm font-bold", {
|
|
57
|
+
"text-copy-light": e === "dark",
|
|
58
|
+
"text-copy-dark": e === "light",
|
|
59
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
60
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
61
|
+
})
|
|
62
|
+
}), j = ({
|
|
63
|
+
className: e,
|
|
64
|
+
stickyHeader: a,
|
|
65
|
+
mode: t
|
|
66
|
+
}) => l(e, {
|
|
67
|
+
"sticky top-0 z-10": a,
|
|
68
|
+
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "dark",
|
|
69
|
+
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "system",
|
|
70
|
+
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "light",
|
|
71
|
+
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "alt-system"
|
|
72
|
+
}), W = ({
|
|
73
|
+
className: e,
|
|
74
|
+
stickyFooter: a,
|
|
75
|
+
mode: t
|
|
76
|
+
}) => l(e, {
|
|
77
|
+
"sticky bottom-0 z-10": a,
|
|
78
|
+
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "dark",
|
|
79
|
+
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "system",
|
|
80
|
+
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "light",
|
|
81
|
+
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "alt-system"
|
|
82
|
+
}), D = ({
|
|
83
|
+
mode: e,
|
|
84
|
+
className: a,
|
|
85
|
+
cellWrapper: t
|
|
86
|
+
}) => t === _ || t === T ? l({
|
|
87
|
+
"bg-table-head-dark": e === "dark",
|
|
88
|
+
"bg-table-head-light": e === "light",
|
|
89
|
+
"bg-table-head-dark dark:bg-table-head-light": e === "system",
|
|
90
|
+
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
91
|
+
}) : l("border-b last:border-0", a, {
|
|
92
|
+
"border-table-dark": e === "dark",
|
|
93
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === p && e === "dark",
|
|
94
|
+
"border-table-light": e === "light",
|
|
95
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === p && e === "light",
|
|
96
|
+
"border-table-dark dark:border-table-light": e === "system",
|
|
97
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === p && e === "system",
|
|
98
|
+
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
99
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === p && e === "alt-system"
|
|
100
|
+
}), O = ({
|
|
101
|
+
cellWrapper: e,
|
|
102
|
+
className: a,
|
|
103
|
+
compact: t,
|
|
104
|
+
mode: r
|
|
105
|
+
}) => l(a, {
|
|
106
|
+
"text-copy-light": r === "dark",
|
|
107
|
+
"text-copy-dark": r === "light",
|
|
108
|
+
"text-copy-light dark:text-copy-dark": r === "system",
|
|
109
|
+
"text-copy-dark dark:text-copy-light": r === "alt-system",
|
|
110
|
+
"px-4 py-3": !t && (e === _ || e === T),
|
|
111
|
+
"p-4": !t && e === p,
|
|
112
|
+
"px-4 py-1": t
|
|
113
|
+
}), B = "av-button", F = (e) => {
|
|
114
|
+
let a = "";
|
|
115
|
+
if (typeof e == "number" || typeof e == "string")
|
|
116
|
+
a = "m-" + e;
|
|
117
|
+
else {
|
|
118
|
+
const t = [];
|
|
119
|
+
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), a = t.join(" ");
|
|
120
|
+
}
|
|
121
|
+
return a;
|
|
122
|
+
}, E = "icon", Y = "button", q = "link", G = ({
|
|
123
|
+
type: e,
|
|
124
|
+
size: a,
|
|
125
|
+
labelRight: t,
|
|
126
|
+
labelLeft: r,
|
|
127
|
+
align: o
|
|
128
|
+
}) => {
|
|
129
|
+
const i = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
|
|
130
|
+
switch (e) {
|
|
131
|
+
case Y:
|
|
132
|
+
return l("px-4", {
|
|
133
|
+
[i]: a === "small",
|
|
134
|
+
[c]: a === "medium",
|
|
135
|
+
[s]: a === "large"
|
|
136
|
+
});
|
|
137
|
+
case q:
|
|
138
|
+
return l("px-4 text-center", {
|
|
139
|
+
[i]: a === "small",
|
|
140
|
+
[c]: a === "medium",
|
|
141
|
+
[s]: a === "large"
|
|
142
|
+
});
|
|
143
|
+
case E:
|
|
144
|
+
return l("inline-flex items-center", {
|
|
145
|
+
"justify-center": o === "center",
|
|
146
|
+
"justify-start": o === "left",
|
|
147
|
+
"justify-end": o === "right",
|
|
148
|
+
"h-6 w-6 p-0": a === "small" && !(t || r),
|
|
149
|
+
"h-6 px-4 text-sm font-medium": a === "small" && (t || r),
|
|
150
|
+
"h-8 w-8 p-1": a === "medium" && !(t || r),
|
|
151
|
+
"h-8 px-4 text-base font-medium": a === "medium" && (t || r),
|
|
152
|
+
"h-12 w-12 p-2": a === "large" && !(t || r),
|
|
153
|
+
"h-12 px-4 text-lg font-medium": a === "large" && (t || r)
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}, J = ({
|
|
157
|
+
mode: e,
|
|
158
|
+
noBackground: a,
|
|
159
|
+
noTruncate: t,
|
|
160
|
+
variant: r
|
|
161
|
+
}) => {
|
|
162
|
+
if (a)
|
|
163
|
+
return "not-prose rounded-full";
|
|
164
|
+
if (r === "primary")
|
|
165
|
+
return l("not-prose rounded-full", {
|
|
166
|
+
truncate: !t,
|
|
167
|
+
"bg-action-dark text-copy-light": e === "dark",
|
|
168
|
+
"bg-action-light text-copy-lighter": e === "light",
|
|
169
|
+
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "system",
|
|
170
|
+
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
171
|
+
});
|
|
172
|
+
if (r === "secondary")
|
|
173
|
+
return l("not-prose rounded-full", {
|
|
174
|
+
truncate: !t,
|
|
175
|
+
"bg-action-dark text-copy-light": e === "light",
|
|
176
|
+
"bg-action-light text-copy-lighter": e === "dark",
|
|
177
|
+
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "alt-system",
|
|
178
|
+
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
179
|
+
});
|
|
180
|
+
if (r === "danger")
|
|
181
|
+
return l("not-prose rounded-full", {
|
|
182
|
+
truncate: !t,
|
|
183
|
+
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
184
|
+
"bg-action-danger-light text-copy-lighter": e === "light",
|
|
185
|
+
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
186
|
+
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
187
|
+
});
|
|
188
|
+
}, K = ({
|
|
189
|
+
mode: e,
|
|
190
|
+
disabled: a,
|
|
191
|
+
variant: t
|
|
192
|
+
}) => {
|
|
193
|
+
if (a)
|
|
194
|
+
return "";
|
|
195
|
+
if (t === "primary")
|
|
196
|
+
return l("hover:text-copy-light-hover", {
|
|
197
|
+
"hover:bg-action-dark-hover": e === "dark",
|
|
198
|
+
"hover:bg-action-light-hover": e === "light",
|
|
199
|
+
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
200
|
+
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
201
|
+
});
|
|
202
|
+
if (t === "secondary")
|
|
203
|
+
return l("hover:text-copy-light-hover", {
|
|
204
|
+
"hover:bg-action-dark-hover": e === "light",
|
|
205
|
+
"hover:bg-action-light-hover": e === "dark",
|
|
206
|
+
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
207
|
+
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
208
|
+
});
|
|
209
|
+
if (t === "danger")
|
|
210
|
+
return l("hover:text-copy-light-hover", {
|
|
211
|
+
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
212
|
+
"hover:bg-action-danger-light-hover": e === "light",
|
|
213
|
+
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
214
|
+
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
215
|
+
});
|
|
216
|
+
}, Q = ({
|
|
217
|
+
mode: e,
|
|
218
|
+
disabled: a,
|
|
219
|
+
variant: t
|
|
220
|
+
}) => {
|
|
221
|
+
if (a)
|
|
222
|
+
return "";
|
|
223
|
+
if (t === "primary")
|
|
224
|
+
return l("active:text-copy-light-active", {
|
|
225
|
+
"active:bg-action-dark-active": e === "dark",
|
|
226
|
+
"active:bg-action-light-active": e === "light",
|
|
227
|
+
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
228
|
+
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
229
|
+
});
|
|
230
|
+
if (t === "secondary")
|
|
231
|
+
return l("active:text-copy-light-active", {
|
|
232
|
+
"active:bg-action-dark-active": e === "light",
|
|
233
|
+
"active:bg-action-light-active": e === "dark",
|
|
234
|
+
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
235
|
+
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
236
|
+
});
|
|
237
|
+
if (t === "danger")
|
|
238
|
+
return l("active:text-copy-lighter-active", {
|
|
239
|
+
"active:bg-action-danger-dark-active": e === "dark",
|
|
240
|
+
"active:bg-action-danger-light-active": e === "light",
|
|
241
|
+
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
242
|
+
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
243
|
+
});
|
|
244
|
+
}, X = ({
|
|
245
|
+
mode: e,
|
|
246
|
+
noBorder: a,
|
|
247
|
+
variant: t
|
|
248
|
+
}) => {
|
|
249
|
+
if (a)
|
|
250
|
+
return "border border-transparent";
|
|
251
|
+
if (t === "primary")
|
|
252
|
+
return l("border", {
|
|
253
|
+
"border-border-dark": e === "dark",
|
|
254
|
+
"border-border-accent": e === "light",
|
|
255
|
+
"border-border-dark dark:border-border-accent": e === "system",
|
|
256
|
+
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
257
|
+
});
|
|
258
|
+
if (t === "secondary")
|
|
259
|
+
return l("border", {
|
|
260
|
+
"border-border-dark": e === "light",
|
|
261
|
+
"border-border-accent": e === "dark",
|
|
262
|
+
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
263
|
+
"border-border-accent dark:border-border-dark": e === "system"
|
|
264
|
+
});
|
|
265
|
+
if (t === "danger")
|
|
266
|
+
return l("border", {
|
|
267
|
+
"border-border-danger-dark": e === "dark",
|
|
268
|
+
"border-border-danger-medium": e === "light",
|
|
269
|
+
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
270
|
+
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
271
|
+
});
|
|
272
|
+
}, Z = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
273
|
+
"focus:outline-focus-dark": e === "dark",
|
|
274
|
+
"focus:outline-focus-light": e === "light",
|
|
275
|
+
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
276
|
+
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
277
|
+
}), ee = ({
|
|
278
|
+
type: e,
|
|
279
|
+
className: a,
|
|
280
|
+
raw: t,
|
|
281
|
+
mode: r,
|
|
282
|
+
focusMode: o,
|
|
283
|
+
disabled: i,
|
|
284
|
+
fullWidth: c,
|
|
285
|
+
size: s,
|
|
286
|
+
noBorder: n,
|
|
287
|
+
labelRight: g,
|
|
288
|
+
labelLeft: b,
|
|
289
|
+
spacing: u,
|
|
290
|
+
noBackground: m,
|
|
291
|
+
variant: h,
|
|
292
|
+
noTruncate: x,
|
|
293
|
+
align: w
|
|
294
|
+
}) => (h || (h = "primary"), t ? l(B, a) : l(
|
|
295
|
+
B,
|
|
296
|
+
a,
|
|
297
|
+
F(u),
|
|
298
|
+
J({ mode: r, variant: h, noBackground: m, noTruncate: x }),
|
|
299
|
+
G({ type: e, size: s, labelRight: g, labelLeft: b, align: w }),
|
|
300
|
+
X({ mode: r, variant: h, noBorder: n }),
|
|
301
|
+
Z({ focusMode: o }),
|
|
302
|
+
K({ mode: r, variant: h, disabled: i }),
|
|
303
|
+
Q({ mode: r, variant: h, disabled: i }),
|
|
304
|
+
{
|
|
305
|
+
"w-full": c,
|
|
306
|
+
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
307
|
+
}
|
|
308
|
+
)), te = (e, a, t) => {
|
|
309
|
+
var r;
|
|
310
|
+
!a && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((r = e == null ? void 0 : e.currentTarget) == null ? void 0 : r.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
311
|
+
}, I = N.forwardRef((e, a) => {
|
|
312
|
+
const { onClick: t, noInternalClick: r = !1, ...o } = e;
|
|
313
|
+
return /* @__PURE__ */ d(
|
|
314
|
+
"button",
|
|
315
|
+
{
|
|
316
|
+
ref: a,
|
|
317
|
+
onClick: (i) => {
|
|
318
|
+
te(i, r, t);
|
|
319
|
+
},
|
|
320
|
+
...o
|
|
321
|
+
}
|
|
322
|
+
);
|
|
323
|
+
});
|
|
324
|
+
I.displayName = "BaseButton";
|
|
325
|
+
/*!
|
|
326
|
+
@versini/ui-button v1.1.0
|
|
327
|
+
© 2024 gizmette.com
|
|
328
|
+
*/
|
|
329
|
+
try {
|
|
330
|
+
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
331
|
+
version: "1.1.0",
|
|
332
|
+
buildTime: "09/17/2024 07:14 PM EDT",
|
|
333
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
334
|
+
license: "MIT"
|
|
335
|
+
});
|
|
336
|
+
} catch {
|
|
337
|
+
}
|
|
338
|
+
const R = N.forwardRef(
|
|
339
|
+
({
|
|
340
|
+
children: e,
|
|
341
|
+
disabled: a = !1,
|
|
342
|
+
mode: t = "system",
|
|
343
|
+
focusMode: r = "system",
|
|
344
|
+
fullWidth: o = !1,
|
|
345
|
+
className: i,
|
|
346
|
+
type: c = "button",
|
|
347
|
+
raw: s = !1,
|
|
348
|
+
noBorder: n = !1,
|
|
349
|
+
"aria-label": g,
|
|
350
|
+
label: b,
|
|
351
|
+
size: u = "medium",
|
|
352
|
+
labelRight: m,
|
|
353
|
+
labelLeft: h,
|
|
354
|
+
spacing: x,
|
|
355
|
+
noBackground: w = !1,
|
|
356
|
+
align: z = "center",
|
|
357
|
+
active: S = !1,
|
|
358
|
+
...V
|
|
359
|
+
}, L) => {
|
|
360
|
+
const M = ee({
|
|
361
|
+
type: E,
|
|
362
|
+
mode: t,
|
|
363
|
+
focusMode: r,
|
|
364
|
+
fullWidth: o,
|
|
365
|
+
disabled: a,
|
|
366
|
+
raw: s,
|
|
367
|
+
className: i,
|
|
368
|
+
noBorder: n,
|
|
369
|
+
size: u,
|
|
370
|
+
labelRight: m,
|
|
371
|
+
labelLeft: h,
|
|
372
|
+
spacing: x,
|
|
373
|
+
noBackground: w,
|
|
374
|
+
align: z
|
|
375
|
+
}), H = l({
|
|
376
|
+
"text-copy-accent-dark": t === "light" && !s,
|
|
377
|
+
"text-copy-light": t === "dark" && !s,
|
|
378
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
379
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
380
|
+
}), P = S ? l(
|
|
381
|
+
"relative",
|
|
382
|
+
"focus-within:static",
|
|
383
|
+
"focus-within:after:border-transparent",
|
|
384
|
+
"after:absolute",
|
|
385
|
+
"after:content-['']",
|
|
386
|
+
"after:border-b-2",
|
|
387
|
+
"after:bottom-[-4px]",
|
|
388
|
+
"after:left-0",
|
|
389
|
+
"after:right-0",
|
|
390
|
+
{
|
|
391
|
+
"after:border-table-dark": t === "dark",
|
|
392
|
+
"after:border-table-light": t === "light",
|
|
393
|
+
"after:border-table-dark dark:after:border-table-light": t === "system",
|
|
394
|
+
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
395
|
+
}
|
|
396
|
+
) : "";
|
|
397
|
+
return /* @__PURE__ */ d("div", { className: P, children: /* @__PURE__ */ v(
|
|
398
|
+
I,
|
|
399
|
+
{
|
|
400
|
+
ref: L,
|
|
401
|
+
className: M,
|
|
402
|
+
disabled: a,
|
|
403
|
+
type: c,
|
|
404
|
+
"aria-label": g || b,
|
|
405
|
+
...V,
|
|
406
|
+
children: [
|
|
407
|
+
h && /* @__PURE__ */ d("span", { className: "pr-2", children: h }),
|
|
408
|
+
/* @__PURE__ */ d("div", { className: H, children: e }),
|
|
409
|
+
m && /* @__PURE__ */ d("span", { className: "pl-2", children: m })
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
) });
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
R.displayName = "ButtonSort";
|
|
416
|
+
const ae = (e) => {
|
|
417
|
+
let a = "";
|
|
418
|
+
if (typeof e == "number" || typeof e == "string")
|
|
419
|
+
a = "m-" + e;
|
|
420
|
+
else {
|
|
421
|
+
const t = [];
|
|
422
|
+
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), a = t.join(" ");
|
|
423
|
+
}
|
|
424
|
+
return a;
|
|
425
|
+
}, C = ({
|
|
426
|
+
children: e,
|
|
427
|
+
fill: a,
|
|
428
|
+
viewBox: t,
|
|
429
|
+
className: r,
|
|
430
|
+
defaultViewBox: o,
|
|
431
|
+
defaultClassName: i,
|
|
432
|
+
spacing: c,
|
|
433
|
+
title: s,
|
|
434
|
+
semantic: n = !1,
|
|
435
|
+
...g
|
|
436
|
+
}) => {
|
|
437
|
+
const b = ae(c), u = l(
|
|
438
|
+
b,
|
|
439
|
+
r || i
|
|
440
|
+
);
|
|
441
|
+
return /* @__PURE__ */ v(U, { children: [
|
|
442
|
+
/* @__PURE__ */ d(
|
|
443
|
+
"svg",
|
|
444
|
+
{
|
|
445
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
446
|
+
className: u,
|
|
447
|
+
viewBox: t || o,
|
|
448
|
+
fill: a || "currentColor",
|
|
449
|
+
role: "img",
|
|
450
|
+
"aria-hidden": !n,
|
|
451
|
+
focusable: !1,
|
|
452
|
+
...g,
|
|
453
|
+
children: e
|
|
454
|
+
}
|
|
455
|
+
),
|
|
456
|
+
s && n && /* @__PURE__ */ d("span", { className: "sr-only", children: s })
|
|
457
|
+
] });
|
|
458
|
+
};
|
|
459
|
+
/*!
|
|
460
|
+
@versini/ui-private v1.4.9
|
|
461
|
+
© 2024 gizmette.com
|
|
462
|
+
*/
|
|
463
|
+
try {
|
|
464
|
+
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
465
|
+
version: "1.4.9",
|
|
466
|
+
buildTime: "09/17/2024 07:14 PM EDT",
|
|
467
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
468
|
+
license: "MIT"
|
|
469
|
+
});
|
|
470
|
+
} catch {
|
|
471
|
+
}
|
|
472
|
+
const re = ({
|
|
473
|
+
className: e,
|
|
474
|
+
viewBox: a,
|
|
475
|
+
spacing: t,
|
|
476
|
+
title: r,
|
|
477
|
+
monotone: o,
|
|
478
|
+
...i
|
|
479
|
+
}) => /* @__PURE__ */ v(
|
|
480
|
+
C,
|
|
481
|
+
{
|
|
482
|
+
defaultViewBox: "0 0 576 512",
|
|
483
|
+
defaultClassName: "size-5",
|
|
484
|
+
viewBox: a,
|
|
485
|
+
className: e,
|
|
486
|
+
spacing: t,
|
|
487
|
+
title: r || "Sort",
|
|
488
|
+
...i,
|
|
489
|
+
children: [
|
|
490
|
+
/* @__PURE__ */ d(
|
|
491
|
+
"path",
|
|
492
|
+
{
|
|
493
|
+
opacity: o ? "1" : "0.4",
|
|
494
|
+
d: "M393.4 41.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V141.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96z"
|
|
495
|
+
}
|
|
496
|
+
),
|
|
497
|
+
/* @__PURE__ */ d("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
), oe = ({
|
|
501
|
+
className: e,
|
|
502
|
+
viewBox: a,
|
|
503
|
+
spacing: t,
|
|
504
|
+
title: r,
|
|
505
|
+
monotone: o,
|
|
506
|
+
...i
|
|
507
|
+
}) => /* @__PURE__ */ v(
|
|
508
|
+
C,
|
|
509
|
+
{
|
|
510
|
+
defaultViewBox: "0 0 576 512",
|
|
511
|
+
defaultClassName: "size-5",
|
|
512
|
+
viewBox: a,
|
|
513
|
+
className: e,
|
|
514
|
+
spacing: t,
|
|
515
|
+
title: r || "Sort Down",
|
|
516
|
+
...i,
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ d(
|
|
519
|
+
"path",
|
|
520
|
+
{
|
|
521
|
+
opacity: o ? "1" : "0.4",
|
|
522
|
+
d: "M288 448c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32z"
|
|
523
|
+
}
|
|
524
|
+
),
|
|
525
|
+
/* @__PURE__ */ d("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
), le = ({
|
|
529
|
+
className: e,
|
|
530
|
+
viewBox: a,
|
|
531
|
+
spacing: t,
|
|
532
|
+
title: r,
|
|
533
|
+
monotone: o,
|
|
534
|
+
...i
|
|
535
|
+
}) => /* @__PURE__ */ v(
|
|
536
|
+
C,
|
|
537
|
+
{
|
|
538
|
+
defaultViewBox: "0 0 576 512",
|
|
539
|
+
defaultClassName: "size-5",
|
|
540
|
+
viewBox: a,
|
|
541
|
+
className: e,
|
|
542
|
+
spacing: t,
|
|
543
|
+
title: r || "Sort Up",
|
|
544
|
+
...i,
|
|
545
|
+
children: [
|
|
546
|
+
/* @__PURE__ */ d(
|
|
547
|
+
"path",
|
|
548
|
+
{
|
|
549
|
+
opacity: o ? "1" : "0.4",
|
|
550
|
+
d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32z"
|
|
551
|
+
}
|
|
552
|
+
),
|
|
553
|
+
/* @__PURE__ */ d("path", { d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
);
|
|
557
|
+
/*!
|
|
558
|
+
@versini/ui-icons v1.12.1
|
|
559
|
+
© 2024 gizmette.com
|
|
560
|
+
*/
|
|
561
|
+
try {
|
|
562
|
+
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
563
|
+
version: "1.12.1",
|
|
564
|
+
buildTime: "09/17/2024 07:14 PM EDT",
|
|
565
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
566
|
+
license: "MIT"
|
|
567
|
+
});
|
|
568
|
+
} catch {
|
|
569
|
+
}
|
|
570
|
+
const k = N.createContext({
|
|
571
|
+
mode: "light",
|
|
572
|
+
cellWrapper: "thead",
|
|
573
|
+
stickyHeader: !1,
|
|
574
|
+
stickyFooter: !1,
|
|
575
|
+
compact: !1
|
|
576
|
+
}), ce = ({
|
|
577
|
+
children: e,
|
|
578
|
+
mode: a = "system",
|
|
579
|
+
caption: t,
|
|
580
|
+
compact: r,
|
|
581
|
+
summary: o,
|
|
582
|
+
className: i,
|
|
583
|
+
wrapperClassName: c,
|
|
584
|
+
maxHeight: s,
|
|
585
|
+
stickyHeader: n,
|
|
586
|
+
stickyFooter: g,
|
|
587
|
+
spacing: b,
|
|
588
|
+
...u
|
|
589
|
+
}) => {
|
|
590
|
+
const m = A({
|
|
591
|
+
mode: a,
|
|
592
|
+
className: i,
|
|
593
|
+
wrapperClassName: c,
|
|
594
|
+
stickyHeader: n,
|
|
595
|
+
stickyFooter: g,
|
|
596
|
+
spacing: b
|
|
597
|
+
});
|
|
598
|
+
return /* @__PURE__ */ d(
|
|
599
|
+
k.Provider,
|
|
600
|
+
{
|
|
601
|
+
value: { mode: a, stickyHeader: n, stickyFooter: g, compact: r },
|
|
602
|
+
children: /* @__PURE__ */ d(
|
|
603
|
+
"div",
|
|
604
|
+
{
|
|
605
|
+
className: m.wrapper,
|
|
606
|
+
...s && {
|
|
607
|
+
style: { maxHeight: s }
|
|
608
|
+
},
|
|
609
|
+
children: /* @__PURE__ */ v("table", { className: m.table, summary: o, ...u, children: [
|
|
610
|
+
t && /* @__PURE__ */ d("caption", { className: m.caption, children: t }),
|
|
611
|
+
e
|
|
612
|
+
] })
|
|
613
|
+
}
|
|
614
|
+
)
|
|
615
|
+
}
|
|
616
|
+
);
|
|
617
|
+
}, ge = ({
|
|
618
|
+
children: e,
|
|
619
|
+
className: a,
|
|
620
|
+
...t
|
|
621
|
+
}) => {
|
|
622
|
+
const r = y(k);
|
|
623
|
+
r.cellWrapper = _;
|
|
624
|
+
const o = j({
|
|
625
|
+
className: a,
|
|
626
|
+
mode: r.mode,
|
|
627
|
+
stickyHeader: r.stickyHeader
|
|
628
|
+
});
|
|
629
|
+
return /* @__PURE__ */ d("thead", { className: o, ...t, children: e });
|
|
630
|
+
}, he = ({
|
|
631
|
+
children: e,
|
|
632
|
+
className: a,
|
|
633
|
+
...t
|
|
634
|
+
}) => {
|
|
635
|
+
const r = y(k);
|
|
636
|
+
r.cellWrapper = T;
|
|
637
|
+
const o = W({
|
|
638
|
+
className: a,
|
|
639
|
+
mode: r.mode,
|
|
640
|
+
stickyFooter: r.stickyFooter
|
|
641
|
+
});
|
|
642
|
+
return /* @__PURE__ */ d("tfoot", { className: o, ...t, children: e });
|
|
643
|
+
}, be = ({ children: e, ...a }) => {
|
|
644
|
+
const t = y(k);
|
|
645
|
+
return t.cellWrapper = p, /* @__PURE__ */ d("tbody", { ...a, children: e });
|
|
646
|
+
}, me = ({
|
|
647
|
+
children: e,
|
|
648
|
+
className: a,
|
|
649
|
+
...t
|
|
650
|
+
}) => {
|
|
651
|
+
const r = y(k), o = D({
|
|
652
|
+
mode: r.mode,
|
|
653
|
+
cellWrapper: r.cellWrapper,
|
|
654
|
+
className: a
|
|
655
|
+
});
|
|
656
|
+
return /* @__PURE__ */ d("tr", { className: o, ...t, children: e });
|
|
657
|
+
}, ie = ({
|
|
658
|
+
children: e,
|
|
659
|
+
component: a,
|
|
660
|
+
className: t,
|
|
661
|
+
...r
|
|
662
|
+
}) => {
|
|
663
|
+
const o = y(k), i = a || (o.cellWrapper === _ ? "th" : "td"), c = O({
|
|
664
|
+
cellWrapper: o.cellWrapper,
|
|
665
|
+
className: t,
|
|
666
|
+
mode: o.mode,
|
|
667
|
+
compact: o.compact
|
|
668
|
+
});
|
|
669
|
+
return /* @__PURE__ */ d(i, { className: c, ...r, children: e });
|
|
670
|
+
}, ue = ({
|
|
671
|
+
align: e,
|
|
672
|
+
children: a,
|
|
673
|
+
className: t,
|
|
674
|
+
component: r,
|
|
675
|
+
focusMode: o = "alt-system",
|
|
676
|
+
mode: i = "alt-system",
|
|
677
|
+
onClick: c,
|
|
678
|
+
sortDirection: s,
|
|
679
|
+
sortedCell: n,
|
|
680
|
+
cellId: g,
|
|
681
|
+
...b
|
|
682
|
+
}) => /* @__PURE__ */ d(
|
|
683
|
+
ie,
|
|
684
|
+
{
|
|
685
|
+
component: r,
|
|
686
|
+
className: t,
|
|
687
|
+
role: "columnheader",
|
|
688
|
+
"aria-sort": s === f.ASC && n === g ? "ascending" : s === f.DESC && n === g ? "descending" : "other",
|
|
689
|
+
...b,
|
|
690
|
+
children: /* @__PURE__ */ d(
|
|
691
|
+
R,
|
|
692
|
+
{
|
|
693
|
+
active: n === g,
|
|
694
|
+
className: "rounded-none text-sm",
|
|
695
|
+
onClick: c,
|
|
696
|
+
align: e,
|
|
697
|
+
noBorder: !0,
|
|
698
|
+
focusMode: o,
|
|
699
|
+
mode: i,
|
|
700
|
+
fullWidth: !0,
|
|
701
|
+
labelRight: a,
|
|
702
|
+
children: s === f.ASC && n === g ? /* @__PURE__ */ d(le, { className: "size-4", monotone: !0 }) : s === f.DESC && n === g ? /* @__PURE__ */ d(oe, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ d(re, { className: "size-4", monotone: !0 })
|
|
703
|
+
}
|
|
704
|
+
)
|
|
705
|
+
}
|
|
706
|
+
);
|
|
707
|
+
export {
|
|
708
|
+
ce as Table,
|
|
709
|
+
be as TableBody,
|
|
710
|
+
ie as TableCell,
|
|
711
|
+
ue as TableCellSort,
|
|
712
|
+
f as TableCellSortDirections,
|
|
713
|
+
he as TableFooter,
|
|
714
|
+
ge as TableHead,
|
|
715
|
+
me as TableRow
|
|
716
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-ms-input-placeholder,textarea::-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }@keyframes blink{50%{fill:transparent}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.bottom-0{bottom:0}.top-0{top:0}.z-10{z-index:10}.m-0{margin:0}.m-1{margin:.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.m-2{margin:.5rem}.m-20{margin:5rem}.m-24{margin:6rem}.m-28{margin:7rem}.m-3{margin:.75rem}.m-32{margin:8rem}.m-36{margin:9rem}.m-4{margin:1rem}.m-44{margin:11rem}.m-48{margin:12rem}.m-5{margin:1.25rem}.m-52{margin:13rem}.m-56{margin:14rem}.m-6{margin:1.5rem}.m-60{margin:15rem}.m-64{margin:16rem}.m-7{margin:1.75rem}.m-72{margin:18rem}.m-8{margin:2rem}.m-80{margin:20rem}.m-9{margin:2.25rem}.m-96{margin:24rem}.my-0{margin-top:0;margin-bottom:0}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-11{margin-bottom:2.75rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-28{margin-bottom:7rem}.mb-3{margin-bottom:.75rem}.mb-32{margin-bottom:8rem}.mb-36{margin-bottom:9rem}.mb-4{margin-bottom:1rem}.mb-44{margin-bottom:11rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.mb-52{margin-bottom:13rem}.mb-56{margin-bottom:14rem}.mb-6{margin-bottom:1.5rem}.mb-60{margin-bottom:15rem}.mb-64{margin-bottom:16rem}.mb-7{margin-bottom:1.75rem}.mb-72{margin-bottom:18rem}.mb-8{margin-bottom:2rem}.mb-80{margin-bottom:20rem}.mb-9{margin-bottom:2.25rem}.mb-96{margin-bottom:24rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-10{margin-left:2.5rem}.ml-11{margin-left:2.75rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-44{margin-left:11rem}.ml-48{margin-left:12rem}.ml-5{margin-left:1.25rem}.ml-52{margin-left:13rem}.ml-56{margin-left:14rem}.ml-6{margin-left:1.5rem}.ml-60{margin-left:15rem}.ml-64{margin-left:16rem}.ml-7{margin-left:1.75rem}.ml-72{margin-left:18rem}.ml-8{margin-left:2rem}.ml-80{margin-left:20rem}.ml-9{margin-left:2.25rem}.ml-96{margin-left:24rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-11{margin-right:2.75rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-20{margin-right:5rem}.mr-24{margin-right:6rem}.mr-28{margin-right:7rem}.mr-3{margin-right:.75rem}.mr-32{margin-right:8rem}.mr-36{margin-right:9rem}.mr-4{margin-right:1rem}.mr-44{margin-right:11rem}.mr-48{margin-right:12rem}.mr-5{margin-right:1.25rem}.mr-52{margin-right:13rem}.mr-56{margin-right:14rem}.mr-6{margin-right:1.5rem}.mr-60{margin-right:15rem}.mr-64{margin-right:16rem}.mr-7{margin-right:1.75rem}.mr-72{margin-right:18rem}.mr-8{margin-right:2rem}.mr-80{margin-right:20rem}.mr-9{margin-right:2.25rem}.mr-96{margin-right:24rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-44{margin-top:11rem}.mt-48{margin-top:12rem}.mt-5{margin-top:1.25rem}.mt-52{margin-top:13rem}.mt-56{margin-top:14rem}.mt-6{margin-top:1.5rem}.mt-60{margin-top:15rem}.mt-64{margin-top:16rem}.mt-7{margin-top:1.75rem}.mt-72{margin-top:18rem}.mt-8{margin-top:2rem}.mt-80{margin-top:20rem}.mt-9{margin-top:2.25rem}.mt-96{margin-top:24rem}.table{display:table}.table-cell{display:table-cell}.table-row{display:table-row}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-full{height:100%}.max-h-\[75vh\]{max-height:75vh}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-x-auto{overflow-x:auto}.overflow-y-scroll{overflow-y:scroll}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.border-b{border-bottom-width:1px}.border-table-dark{--tw-border-opacity: 1;border-color:var(--av-table-dark, rgb(55 65 81 / var(--tw-border-opacity)))}.border-table-light{--tw-border-opacity: 1;border-color:var(--av-table-light, rgb(243 244 246 / var(--tw-border-opacity)))}.bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.bg-table-dark-even{--tw-bg-opacity: 1;background-color:var(--av-table-dark-even, rgb(17 24 39 / var(--tw-bg-opacity)))}.bg-table-head-dark{--tw-bg-opacity: 1;background-color:var(--av-table-head-dark, rgb(3 7 18 / var(--tw-bg-opacity)))}.bg-table-head-light{--tw-bg-opacity: 1;background-color:var(--av-table-head-light, rgb(243 244 246 / var(--tw-bg-opacity)))}.bg-table-light-even{--tw-bg-opacity: 1;background-color:var(--av-table-light-even, rgb(209 213 219 / var(--tw-bg-opacity)))}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-left{text-align:left}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity)))}.shadow-\[rgb\(190_190_190_\/20\%\)_0_-0\.5rem_1rem\]{--tw-shadow: rgb(190 190 190 /20%) 0 -.5rem 1rem;--tw-shadow-colored: 0 -.5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[rgb\(190_190_190_\/20\%\)_0_0\.5rem_1rem\]{--tw-shadow: rgb(190 190 190 /20%) 0 .5rem 1rem;--tw-shadow-colored: 0 .5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[rgb\(65_65_65_\/30\%\)_-0_0\.5rem_1rem\]{--tw-shadow: rgb(65 65 65 /30%) -0 .5rem 1rem;--tw-shadow-colored: -0 .5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[rgb\(65_65_65_\/30\%\)_0_-0\.5rem_1rem\]{--tw-shadow: rgb(65 65 65 /30%) 0 -.5rem 1rem;--tw-shadow-colored: 0 -.5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[rgb\(65_65_65_\/30\%\)_0_0\.5rem_1rem\]{--tw-shadow: rgb(65 65 65 /30%) 0 .5rem 1rem;--tw-shadow-colored: 0 .5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.last\:border-0:last-child{border-width:0px}.odd\:bg-table-dark-odd:nth-child(odd){--tw-bg-opacity: 1;background-color:var(--av-table-dark-odd, rgb(31 41 55 / var(--tw-bg-opacity)))}.odd\:bg-table-light-odd:nth-child(odd){--tw-bg-opacity: 1;background-color:var(--av-table-light-odd, rgb(229 231 235 / var(--tw-bg-opacity)))}.even\:bg-table-dark-even:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--av-table-dark-even, rgb(17 24 39 / var(--tw-bg-opacity)))}.even\:bg-table-light-even:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--av-table-light-even, rgb(209 213 219 / var(--tw-bg-opacity)))}@media (prefers-color-scheme: dark){.dark\:border-table-dark{--tw-border-opacity: 1;border-color:var(--av-table-dark, rgb(55 65 81 / var(--tw-border-opacity)))}.dark\:border-table-light{--tw-border-opacity: 1;border-color:var(--av-table-light, rgb(243 244 246 / var(--tw-border-opacity)))}.dark\:bg-surface-darker{--tw-bg-opacity: 1;background-color:var(--av-surface-darker, rgb(15 23 42 / var(--tw-bg-opacity)))}.dark\:bg-surface-light{--tw-bg-opacity: 1;background-color:var(--av-surface-light, rgb(203 213 225 / var(--tw-bg-opacity)))}.dark\:bg-table-head-dark{--tw-bg-opacity: 1;background-color:var(--av-table-head-dark, rgb(3 7 18 / var(--tw-bg-opacity)))}.dark\:bg-table-head-light{--tw-bg-opacity: 1;background-color:var(--av-table-head-light, rgb(243 244 246 / var(--tw-bg-opacity)))}.dark\:text-copy-dark{--tw-text-opacity: 1;color:var(--av-copy-dark, rgb(15 23 42 / var(--tw-text-opacity)))}.dark\:text-copy-light{--tw-text-opacity: 1;color:var(--av-copy-light, rgb(226 232 240 / var(--tw-text-opacity)))}.dark\:shadow-\[rgb\(190_190_190_\/20\%\)_0_-0\.5rem_1rem\]{--tw-shadow: rgb(190 190 190 /20%) 0 -.5rem 1rem;--tw-shadow-colored: 0 -.5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-\[rgb\(190_190_190_\/20\%\)_0_0\.5rem_1rem\]{--tw-shadow: rgb(190 190 190 /20%) 0 .5rem 1rem;--tw-shadow-colored: 0 .5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-\[rgb\(65_65_65_\/30\%\)_0_-0\.5rem_1rem\]{--tw-shadow: rgb(65 65 65 /30%) 0 -.5rem 1rem;--tw-shadow-colored: 0 -.5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:shadow-\[rgb\(65_65_65_\/30\%\)_0_0\.5rem_1rem\]{--tw-shadow: rgb(65 65 65 /30%) 0 .5rem 1rem;--tw-shadow-colored: 0 .5rem 1rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:odd\:bg-table-dark-odd:nth-child(odd){--tw-bg-opacity: 1;background-color:var(--av-table-dark-odd, rgb(31 41 55 / var(--tw-bg-opacity)))}.dark\:odd\:bg-table-light-odd:nth-child(odd){--tw-bg-opacity: 1;background-color:var(--av-table-light-odd, rgb(229 231 235 / var(--tw-bg-opacity)))}.dark\:even\:bg-table-dark-even:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--av-table-dark-even, rgb(17 24 39 / var(--tw-bg-opacity)))}.dark\:even\:bg-table-light-even:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--av-table-light-even, rgb(209 213 219 / var(--tw-bg-opacity)))}}
|
package/dist/style.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@versini/ui-table",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Arno Versini",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/aversini/ui-components",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git@github.com:aversini/ui-components.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build:check": "tsc",
|
|
22
|
+
"build:js": "vite build",
|
|
23
|
+
"build:types": "tsup",
|
|
24
|
+
"build": "npm-run-all --serial clean build:check build:js build:types",
|
|
25
|
+
"clean": "rimraf dist tmp",
|
|
26
|
+
"dev:js": "vite build --watch --mode development",
|
|
27
|
+
"dev:types": "tsup --watch src",
|
|
28
|
+
"dev": "npm-run-all clean --parallel dev:js dev:types",
|
|
29
|
+
"lint": "biome lint src",
|
|
30
|
+
"start": "static-server dist --port 5173",
|
|
31
|
+
"test:coverage:ui": "vitest --coverage --ui",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
33
|
+
"test:watch": "vitest",
|
|
34
|
+
"test": "vitest run"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^18.3.1",
|
|
38
|
+
"react-dom": "^18.3.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@versini/ui-styles": "1.9.7"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@floating-ui/react": "0.26.24",
|
|
45
|
+
"@tailwindcss/typography": "0.5.15",
|
|
46
|
+
"@versini/ui-button": "1.1.0",
|
|
47
|
+
"@versini/ui-icons": "1.12.1",
|
|
48
|
+
"@versini/ui-private": "1.4.9",
|
|
49
|
+
"clsx": "2.1.1",
|
|
50
|
+
"tailwindcss": "3.4.11"
|
|
51
|
+
},
|
|
52
|
+
"sideEffects": [
|
|
53
|
+
"**/*.css"
|
|
54
|
+
],
|
|
55
|
+
"gitHead": "d2ad0f568557c3fb409caa048c1f7a9a105763b9"
|
|
56
|
+
}
|