@vkzstudio/muza-ui 1.0.1 → 1.0.3
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/CLAUDE_CONSUMER.md +238 -238
- package/README.md +168 -168
- package/dist/components/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +33 -31
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.js +162 -157
- package/dist/components/ExpandableTable/Table.d.ts +4 -1
- package/dist/components/ExpandableTable/Table.d.ts.map +1 -1
- package/dist/components/ExpandableTable/Table.js +82 -78
- package/dist/components/Loader/Loader.js +6 -6
- package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.js +64 -54
- package/dist/components/Searchbar/Searchbar.stories.d.ts.map +1 -1
- package/dist/muza-ui.css +1 -1
- package/package.json +3 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useIsMinSm as
|
|
5
|
-
import { Table as
|
|
6
|
-
import { Typography as
|
|
1
|
+
import { jsxs as m, jsx as t, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as j, useMemo as N, Fragment as M } from "react";
|
|
3
|
+
import { cva as z } from "class-variance-authority";
|
|
4
|
+
import { useIsMinSm as A, useIsMinMd as C, useIsMinLg as H } from "../../hooks/use-is-breakpoint.js";
|
|
5
|
+
import { Table as O, TableHeader as _, TableRow as k, TableHead as q, TableBody as G, TableCell as E } from "./Table.js";
|
|
6
|
+
import { Typography as h } from "../Typography/Typography.js";
|
|
7
7
|
import { Flex as B } from "../Flex/Flex.js";
|
|
8
|
-
import { cn as
|
|
9
|
-
import { AltArrowDownOutline as
|
|
10
|
-
const
|
|
8
|
+
import { cn as v } from "../../utils/cn.js";
|
|
9
|
+
import { AltArrowDownOutline as J } from "@solar-icons/react-perf";
|
|
10
|
+
const F = z("", {
|
|
11
11
|
variants: {
|
|
12
12
|
responsive: {
|
|
13
13
|
xs: "",
|
|
@@ -22,89 +22,95 @@ const b = A("", {
|
|
|
22
22
|
lg: "lg:hidden"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
26
|
-
data:
|
|
27
|
-
columns:
|
|
25
|
+
}), Q = (o, a, s, n) => !o || o === "xs" ? !0 : o === "sm" ? a : o === "md" ? s : o === "lg" ? n : !0, w = ({
|
|
26
|
+
data: o,
|
|
27
|
+
columns: a,
|
|
28
28
|
expandableRowSections: s
|
|
29
29
|
}) => {
|
|
30
|
-
const [
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
return
|
|
30
|
+
const [n, L] = j(/* @__PURE__ */ new Set()), T = (e) => {
|
|
31
|
+
L((i) => {
|
|
32
|
+
const d = new Set(i);
|
|
33
|
+
return d.has(e) ? d.delete(e) : d.add(e), d;
|
|
34
34
|
});
|
|
35
|
-
},
|
|
36
|
-
const e =
|
|
35
|
+
}, p = N(() => {
|
|
36
|
+
const e = a.filter((i) => i.responsive).map((i) => i.responsive);
|
|
37
37
|
return e.includes("lg") ? "lg" : e.includes("md") ? "md" : e.includes("sm") ? "sm" : e.includes("xs") ? "xs" : null;
|
|
38
|
-
}, [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
}, [a]), g = A(), u = C(), b = H(), K = N(() => p ? p === "lg" ? b : p === "md" ? u : p === "sm" ? g : !1 : !1, [p, g, u, b]), { firstVisibleIndex: V, lastVisibleIndex: P } = N(() => {
|
|
39
|
+
let e = -1, i = -1;
|
|
40
|
+
return a.forEach((d, r) => {
|
|
41
|
+
Q(d.responsive, g, u, b) && (e === -1 && (e = r), i = r);
|
|
42
|
+
}), { firstVisibleIndex: e, lastVisibleIndex: i };
|
|
43
|
+
}, [a, g, u, b]), c = !s && !!p && !K;
|
|
44
|
+
return /* @__PURE__ */ m(O, { children: [
|
|
45
|
+
/* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(k, { className: "[&>th]:border-0 [&>th]:bg-transparent", children: a.map((e, i) => /* @__PURE__ */ t(
|
|
46
|
+
q,
|
|
42
47
|
{
|
|
43
|
-
className:
|
|
48
|
+
className: v(
|
|
44
49
|
e.className,
|
|
45
|
-
|
|
50
|
+
F({ responsive: e.responsive })
|
|
46
51
|
),
|
|
47
52
|
children: e.title
|
|
48
53
|
},
|
|
49
|
-
|
|
54
|
+
i
|
|
50
55
|
)) }) }),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
var
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
56
|
+
/* @__PURE__ */ t(G, { children: o.map((e, i) => {
|
|
57
|
+
var d;
|
|
58
|
+
return /* @__PURE__ */ m(M, { children: [
|
|
59
|
+
/* @__PURE__ */ m(
|
|
60
|
+
k,
|
|
56
61
|
{
|
|
57
|
-
hideBottomSpacing:
|
|
58
|
-
isExpanded:
|
|
59
|
-
colNumber:
|
|
60
|
-
expandablePosition: s &&
|
|
61
|
-
className:
|
|
62
|
+
hideBottomSpacing: n.has(i) || c,
|
|
63
|
+
isExpanded: n.has(i) || c,
|
|
64
|
+
colNumber: a.length + 1,
|
|
65
|
+
expandablePosition: s && n.has(i) || c ? "top" : "none",
|
|
66
|
+
className: v("group focus-visible-default", {
|
|
62
67
|
"cursor-pointer": s,
|
|
63
|
-
"hover:
|
|
68
|
+
"[&>td]:hover:bg-surface-base-primary": !s
|
|
64
69
|
}),
|
|
65
|
-
onClick: s ? () =>
|
|
66
|
-
onKeyDown: s ? (
|
|
67
|
-
(
|
|
70
|
+
onClick: s ? () => T(i) : void 0,
|
|
71
|
+
onKeyDown: s ? (r) => {
|
|
72
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), T(i));
|
|
68
73
|
} : void 0,
|
|
69
74
|
tabIndex: s ? 0 : void 0,
|
|
70
75
|
role: s ? "button" : void 0,
|
|
71
|
-
"aria-expanded": s ?
|
|
76
|
+
"aria-expanded": s ? n.has(i) : void 0,
|
|
72
77
|
children: [
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
a.map((r, l) => /* @__PURE__ */ t(
|
|
79
|
+
E,
|
|
75
80
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
isFirst: l === V,
|
|
82
|
+
isLast: l === P && !s,
|
|
83
|
+
expandablePosition: s && n.has(i) ? "top" : "none",
|
|
84
|
+
className: v(
|
|
85
|
+
r.className,
|
|
86
|
+
F({ responsive: r.responsive })
|
|
80
87
|
),
|
|
81
|
-
children:
|
|
82
|
-
|
|
88
|
+
children: r.render ? r.render(e[r.dataKey], e) : /* @__PURE__ */ t(
|
|
89
|
+
h,
|
|
83
90
|
{
|
|
84
91
|
variant: "body",
|
|
85
92
|
size: "base",
|
|
86
93
|
weight: "medium",
|
|
87
94
|
component: "span",
|
|
88
|
-
children: e[
|
|
95
|
+
children: e[r.dataKey]
|
|
89
96
|
}
|
|
90
97
|
)
|
|
91
98
|
},
|
|
92
|
-
|
|
99
|
+
l
|
|
93
100
|
)),
|
|
94
|
-
s && /* @__PURE__ */
|
|
95
|
-
|
|
101
|
+
s && /* @__PURE__ */ t(
|
|
102
|
+
E,
|
|
96
103
|
{
|
|
97
104
|
className: "w-[68px]",
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
isFirst: !1,
|
|
106
|
+
isLast: !0,
|
|
107
|
+
expandablePosition: n.has(i) ? "top" : "none",
|
|
108
|
+
children: /* @__PURE__ */ t(
|
|
109
|
+
J,
|
|
101
110
|
{
|
|
102
|
-
className:
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
"rotate-180": t.has(r)
|
|
106
|
-
}
|
|
107
|
-
)
|
|
111
|
+
className: v("text-text-brand-def", {
|
|
112
|
+
"rotate-180": n.has(i)
|
|
113
|
+
})
|
|
108
114
|
}
|
|
109
115
|
)
|
|
110
116
|
}
|
|
@@ -112,120 +118,119 @@ const b = A("", {
|
|
|
112
118
|
]
|
|
113
119
|
}
|
|
114
120
|
),
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
121
|
+
(n.has(i) || c) && /* @__PURE__ */ t(
|
|
122
|
+
k,
|
|
117
123
|
{
|
|
118
|
-
hideBottomSpacing: s && !
|
|
124
|
+
hideBottomSpacing: s && !n.has(i) || !s && !c,
|
|
119
125
|
expandablePosition: "bottom",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
children: /* @__PURE__ */ a(
|
|
124
|
-
v,
|
|
126
|
+
children: /* @__PURE__ */ t(
|
|
127
|
+
E,
|
|
125
128
|
{
|
|
126
|
-
colSpan:
|
|
129
|
+
colSpan: a.length + 1,
|
|
127
130
|
padding: "none",
|
|
131
|
+
isFirst: !0,
|
|
132
|
+
isLast: !0,
|
|
128
133
|
expandablePosition: "bottom",
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
!E && /* @__PURE__ */ n(j, { children: [
|
|
139
|
-
/* @__PURE__ */ a(
|
|
134
|
+
children: /* @__PURE__ */ m("div", { className: "grid grid-cols-1 gap-2xl overflow-hidden px-comp-table-p py-2xl md:grid-cols-[auto_1fr]", children: [
|
|
135
|
+
!K && /* @__PURE__ */ m($, { children: [
|
|
136
|
+
/* @__PURE__ */ t(
|
|
137
|
+
B,
|
|
138
|
+
{
|
|
139
|
+
gap: "md",
|
|
140
|
+
direction: "column",
|
|
141
|
+
className: "col-span-full",
|
|
142
|
+
children: a.map((r, l) => /* @__PURE__ */ m(
|
|
140
143
|
B,
|
|
141
144
|
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
reverse: i.responsive
|
|
153
|
-
}),
|
|
154
|
-
children: [
|
|
155
|
-
/* @__PURE__ */ a(p, { variant: "body", component: "span", children: i.title }),
|
|
156
|
-
i.render ? i.render(e[i.dataKey], e) : /* @__PURE__ */ a(
|
|
157
|
-
p,
|
|
158
|
-
{
|
|
159
|
-
variant: "body",
|
|
160
|
-
weight: "medium",
|
|
161
|
-
size: "base",
|
|
162
|
-
component: "span",
|
|
163
|
-
children: e[i.dataKey]
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
]
|
|
167
|
-
},
|
|
168
|
-
o
|
|
169
|
-
))
|
|
170
|
-
}
|
|
171
|
-
),
|
|
172
|
-
s && /* @__PURE__ */ a("hr", { className: "col-span-full text-stroke-base-secondary md:col-span-2" })
|
|
173
|
-
] }),
|
|
174
|
-
(l = typeof s == "function" ? s(e) : s) == null ? void 0 : l.map((i, o) => {
|
|
175
|
-
if (!s) return null;
|
|
176
|
-
const $ = typeof s == "function" ? s(e).length : s.length;
|
|
177
|
-
return /* @__PURE__ */ n(M, { children: [
|
|
178
|
-
/* @__PURE__ */ n("div", { className: "col-span-full grid grid-cols-1 gap-y-xl md:col-span-2 md:grid-cols-subgrid", children: [
|
|
179
|
-
i.title && /* @__PURE__ */ a(
|
|
180
|
-
p,
|
|
181
|
-
{
|
|
182
|
-
variant: "body",
|
|
183
|
-
uppercase: !0,
|
|
184
|
-
size: "sm",
|
|
185
|
-
weight: "medium",
|
|
186
|
-
component: "p",
|
|
187
|
-
className: "text-text-brand-def md:col-span-2",
|
|
188
|
-
children: i.title
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
/* @__PURE__ */ a("div", { className: "col-span-full grid grid-cols-1 gap-x-3xl md:col-span-2 md:grid-cols-subgrid md:gap-y-md", children: i.cells.flatMap((f, g) => [
|
|
192
|
-
/* @__PURE__ */ a(
|
|
193
|
-
p,
|
|
194
|
-
{
|
|
195
|
-
component: "span",
|
|
196
|
-
variant: "body",
|
|
197
|
-
className: "mb-xs text-text-dark-primary-def md:mb-0",
|
|
198
|
-
children: f.title
|
|
199
|
-
},
|
|
200
|
-
`${g}-label`
|
|
201
|
-
),
|
|
202
|
-
f.render ? /* @__PURE__ */ a("div", { children: f.render(e[f.dataKey], e) }, `${g}-value`) : /* @__PURE__ */ a(
|
|
203
|
-
p,
|
|
145
|
+
align: "center",
|
|
146
|
+
justify: "between",
|
|
147
|
+
direction: "row",
|
|
148
|
+
className: F({
|
|
149
|
+
reverse: r.responsive
|
|
150
|
+
}),
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ t(h, { variant: "body", component: "span", children: r.title }),
|
|
153
|
+
r.render ? r.render(e[r.dataKey], e) : /* @__PURE__ */ t(
|
|
154
|
+
h,
|
|
204
155
|
{
|
|
205
156
|
variant: "body",
|
|
206
157
|
weight: "medium",
|
|
158
|
+
size: "base",
|
|
207
159
|
component: "span",
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
`${g}-value`
|
|
160
|
+
children: e[r.dataKey]
|
|
161
|
+
}
|
|
212
162
|
)
|
|
213
|
-
]
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
l
|
|
166
|
+
))
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
s && /* @__PURE__ */ t("hr", { className: "col-span-full text-stroke-base-secondary md:col-span-2" })
|
|
170
|
+
] }),
|
|
171
|
+
(d = typeof s == "function" ? s(e) : s) == null ? void 0 : d.map((r, l) => {
|
|
172
|
+
if (!s) return null;
|
|
173
|
+
const x = typeof s == "function" ? s(e).length : s.length;
|
|
174
|
+
return /* @__PURE__ */ m(M, { children: [
|
|
175
|
+
/* @__PURE__ */ m("div", { className: "col-span-full grid grid-cols-1 gap-y-xl md:col-span-2 md:grid-cols-subgrid", children: [
|
|
176
|
+
r.title && /* @__PURE__ */ t(
|
|
177
|
+
h,
|
|
178
|
+
{
|
|
179
|
+
variant: "body",
|
|
180
|
+
uppercase: !0,
|
|
181
|
+
size: "sm",
|
|
182
|
+
weight: "medium",
|
|
183
|
+
component: "p",
|
|
184
|
+
className: "text-text-brand-def md:col-span-2",
|
|
185
|
+
children: r.title
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
/* @__PURE__ */ t("div", { className: "col-span-full grid grid-cols-1 gap-x-3xl md:col-span-2 md:grid-cols-subgrid md:gap-y-md", children: r.cells.flatMap((f, y) => [
|
|
189
|
+
/* @__PURE__ */ t(
|
|
190
|
+
h,
|
|
191
|
+
{
|
|
192
|
+
component: "span",
|
|
193
|
+
variant: "body",
|
|
194
|
+
className: "mb-xs text-text-dark-primary-def md:mb-0",
|
|
195
|
+
children: f.title
|
|
196
|
+
},
|
|
197
|
+
`${y}-label`
|
|
198
|
+
),
|
|
199
|
+
f.render ? /* @__PURE__ */ t(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: "mb-md block last-of-type:mb-0 md:mb-0",
|
|
203
|
+
children: f.render(
|
|
204
|
+
e[f.dataKey],
|
|
205
|
+
e
|
|
206
|
+
)
|
|
207
|
+
},
|
|
208
|
+
`${y}-value`
|
|
209
|
+
) : /* @__PURE__ */ t(
|
|
210
|
+
h,
|
|
211
|
+
{
|
|
212
|
+
variant: "body",
|
|
213
|
+
weight: "medium",
|
|
214
|
+
component: "span",
|
|
215
|
+
className: "mb-md block last-of-type:mb-0 md:mb-0",
|
|
216
|
+
children: e[f.dataKey]
|
|
217
|
+
},
|
|
218
|
+
`${y}-value`
|
|
219
|
+
)
|
|
220
|
+
]) })
|
|
221
|
+
] }),
|
|
222
|
+
l < x - 1 && /* @__PURE__ */ t("hr", { className: "col-span-full text-stroke-base-secondary md:col-span-2" })
|
|
223
|
+
] }, l);
|
|
224
|
+
})
|
|
225
|
+
] })
|
|
221
226
|
}
|
|
222
227
|
)
|
|
223
228
|
}
|
|
224
229
|
)
|
|
225
|
-
] },
|
|
230
|
+
] }, i);
|
|
226
231
|
}) })
|
|
227
232
|
] });
|
|
228
233
|
};
|
|
229
234
|
export {
|
|
230
|
-
|
|
235
|
+
w as ExpandableTable
|
|
231
236
|
};
|
|
@@ -13,6 +13,9 @@ declare const TableHead: import('react').ForwardRefExoticComponent<import('react
|
|
|
13
13
|
declare const TableCell: import('react').ForwardRefExoticComponent<import('react').TdHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: ({
|
|
14
14
|
padding?: "none" | "default" | null | undefined;
|
|
15
15
|
expandablePosition?: "none" | "bottom" | "top" | null | undefined;
|
|
16
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> &
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
17
|
+
isFirst?: boolean;
|
|
18
|
+
isLast?: boolean;
|
|
19
|
+
} & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
17
20
|
export { Table, TableHeader, TableBody, TableHead, TableRow, TableCell };
|
|
18
21
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/ExpandableTable/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,KAAK,+IAST,CAAA;AAGF,QAAA,MAAM,WAAW,6JAKf,CAAA;AAGF,QAAA,MAAM,SAAS,6JAKb,CAAA;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/ExpandableTable/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,KAAK,+IAST,CAAA;AAGF,QAAA,MAAM,WAAW,6JAKf,CAAA;AAGF,QAAA,MAAM,SAAS,6JAKb,CAAA;AAgBF,QAAA,MAAM,QAAQ;;;wBAIY,OAAO;gBACf,MAAM;iBACL,OAAO;uDAkCzB,CAAA;AAGD,QAAA,MAAM,SAAS,yJAkBb,CAAA;AAwBF,QAAA,MAAM,SAAS;;;;cAIC,OAAO;aACR,OAAO;wDA6BrB,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,77 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { typographyVariants as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as p, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { cva as c } from "class-variance-authority";
|
|
4
|
+
import { typographyVariants as i } from "../Typography/Typography.js";
|
|
5
|
+
import { cn as d } from "../../utils/cn.js";
|
|
6
|
+
const u = t(({ className: a, ...r }, e) => /* @__PURE__ */ o(
|
|
7
7
|
"table",
|
|
8
8
|
{
|
|
9
9
|
ref: e,
|
|
10
|
-
className:
|
|
10
|
+
className: d("w-full border-separate border-spacing-0", a),
|
|
11
11
|
...r
|
|
12
12
|
}
|
|
13
13
|
));
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
top: "after:rounded-tl-xl after:rounded-tr-xl after:rounded-br-none after:rounded-bl-none after:border-b-0",
|
|
26
|
-
bottom: "after:rounded-tl-none after:rounded-tr-none after:rounded-br-xl after:rounded-bl-xl after:border-t-0"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
expandablePosition: "none"
|
|
14
|
+
u.displayName = "Table";
|
|
15
|
+
const y = t(({ className: a, ...r }, e) => /* @__PURE__ */ o("thead", { ref: e, className: a, ...r }));
|
|
16
|
+
y.displayName = "TableHeader";
|
|
17
|
+
const f = t(({ className: a, ...r }, e) => /* @__PURE__ */ o("tbody", { ref: e, className: a, ...r }));
|
|
18
|
+
f.displayName = "TableBody";
|
|
19
|
+
const h = c("", {
|
|
20
|
+
variants: {
|
|
21
|
+
expandablePosition: {
|
|
22
|
+
none: "",
|
|
23
|
+
top: "",
|
|
24
|
+
bottom: ""
|
|
31
25
|
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
expandablePosition: "none"
|
|
32
29
|
}
|
|
33
|
-
),
|
|
30
|
+
}), x = t(
|
|
34
31
|
({
|
|
35
32
|
className: a,
|
|
36
33
|
hideBottomSpacing: r,
|
|
37
34
|
colNumber: e,
|
|
38
|
-
expandablePosition:
|
|
39
|
-
isExpanded:
|
|
40
|
-
...
|
|
41
|
-
},
|
|
42
|
-
/* @__PURE__ */
|
|
35
|
+
expandablePosition: l,
|
|
36
|
+
isExpanded: n,
|
|
37
|
+
...s
|
|
38
|
+
}, b) => /* @__PURE__ */ p(m, { children: [
|
|
39
|
+
/* @__PURE__ */ o(
|
|
43
40
|
"tr",
|
|
44
41
|
{
|
|
45
|
-
ref:
|
|
46
|
-
className:
|
|
47
|
-
...
|
|
42
|
+
ref: b,
|
|
43
|
+
className: d(h({ expandablePosition: l }), a),
|
|
44
|
+
...s
|
|
48
45
|
}
|
|
49
46
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ o("tr", { className: d("h-md bg-transparent", { hidden: r }), children: /* @__PURE__ */ o("td", { colSpan: e }) }),
|
|
48
|
+
/* @__PURE__ */ o(
|
|
51
49
|
"tr",
|
|
52
50
|
{
|
|
53
|
-
className:
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
/* @__PURE__ */ t(
|
|
58
|
-
"tr",
|
|
59
|
-
{
|
|
60
|
-
className: o("bg-surface-base-secondary", {
|
|
61
|
-
collapse: !l
|
|
51
|
+
className: d("bg-surface-base-secondary", {
|
|
52
|
+
collapse: !n
|
|
62
53
|
}),
|
|
63
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ o("td", { colSpan: e, className: "h-0 px-comp-table-p", children: /* @__PURE__ */ o("div", { className: "border-t-1 border-stroke-base-secondary" }) })
|
|
64
55
|
}
|
|
65
56
|
)
|
|
66
57
|
] })
|
|
67
58
|
);
|
|
68
|
-
|
|
69
|
-
const
|
|
59
|
+
x.displayName = "TableRow";
|
|
60
|
+
const N = t(({ className: a, ...r }, e) => /* @__PURE__ */ o(
|
|
70
61
|
"th",
|
|
71
62
|
{
|
|
72
63
|
ref: e,
|
|
73
|
-
className:
|
|
74
|
-
|
|
64
|
+
className: d(
|
|
65
|
+
i({
|
|
75
66
|
size: "sm",
|
|
76
67
|
uppercase: !0,
|
|
77
68
|
variant: "body",
|
|
@@ -83,40 +74,53 @@ const h = n(({ className: a, ...r }, e) => /* @__PURE__ */ t(
|
|
|
83
74
|
...r
|
|
84
75
|
}
|
|
85
76
|
));
|
|
86
|
-
|
|
87
|
-
const T =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
N.displayName = "TableHead";
|
|
78
|
+
const T = c(
|
|
79
|
+
"h-comp-table-h border-y-1 border-stroke-base-secondary bg-surface-base-secondary transition-colors",
|
|
80
|
+
{
|
|
81
|
+
variants: {
|
|
82
|
+
padding: {
|
|
83
|
+
default: "px-comp-table-p",
|
|
84
|
+
none: "p-0"
|
|
85
|
+
},
|
|
86
|
+
expandablePosition: {
|
|
87
|
+
none: "",
|
|
88
|
+
top: "border-b-0",
|
|
89
|
+
bottom: "border-t-0"
|
|
90
|
+
}
|
|
92
91
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
bottom: "rounded-tl-none rounded-tr-none rounded-br-xl rounded-bl-xl"
|
|
92
|
+
defaultVariants: {
|
|
93
|
+
padding: "default",
|
|
94
|
+
expandablePosition: "none"
|
|
97
95
|
}
|
|
98
|
-
},
|
|
99
|
-
defaultVariants: {
|
|
100
|
-
padding: "default",
|
|
101
|
-
expandablePosition: "none"
|
|
102
96
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
), g = t(
|
|
98
|
+
({ className: a, padding: r, expandablePosition: e, isFirst: l, isLast: n, ...s }, b) => /* @__PURE__ */ o(
|
|
99
|
+
"td",
|
|
100
|
+
{
|
|
101
|
+
ref: b,
|
|
102
|
+
className: d(
|
|
103
|
+
T({ padding: r, expandablePosition: e }),
|
|
104
|
+
{
|
|
105
|
+
"rounded-l-xl border-l-1": l && e === "none",
|
|
106
|
+
"rounded-tl-xl rounded-bl-none border-l-1": l && e === "top",
|
|
107
|
+
"rounded-tl-none rounded-bl-xl border-l-1": l && e === "bottom",
|
|
108
|
+
"rounded-r-xl border-r-1": n && e === "none",
|
|
109
|
+
"rounded-tr-xl rounded-br-none border-r-1": n && e === "top",
|
|
110
|
+
"rounded-tr-none rounded-br-xl border-r-1": n && e === "bottom"
|
|
111
|
+
},
|
|
112
|
+
a
|
|
113
|
+
),
|
|
114
|
+
...s
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
);
|
|
114
118
|
g.displayName = "TableCell";
|
|
115
119
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
u as Table,
|
|
121
|
+
f as TableBody,
|
|
118
122
|
g as TableCell,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
N as TableHead,
|
|
124
|
+
y as TableHeader,
|
|
125
|
+
x as TableRow
|
|
122
126
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
const a = ({ ...r }) => /* @__PURE__ */ t(
|
|
3
3
|
"svg",
|
|
4
4
|
{
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,20 +7,20 @@ const i = ({ ...t }) => /* @__PURE__ */ e(
|
|
|
7
7
|
height: "64",
|
|
8
8
|
viewBox: "0 0 64 64",
|
|
9
9
|
fill: "none",
|
|
10
|
-
...
|
|
10
|
+
...r,
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ C(
|
|
13
13
|
"path",
|
|
14
14
|
{
|
|
15
15
|
d: "M60 32C60 47.464 47.464 60 32 60C16.536 60 4 47.464 4 32C4 16.536 16.536 4 32 4C47.464 4 60 16.536 60 32ZM7.92 32C7.92 45.299 18.701 56.08 32 56.08C45.299 56.08 56.08 45.299 56.08 32C56.08 18.701 45.299 7.92 32 7.92C18.701 7.92 7.92 18.701 7.92 32Z",
|
|
16
|
-
|
|
16
|
+
className: "fill-surface-brand-brand-tertiary"
|
|
17
17
|
}
|
|
18
18
|
),
|
|
19
19
|
/* @__PURE__ */ C(
|
|
20
20
|
"path",
|
|
21
21
|
{
|
|
22
22
|
d: "M58.04 32C59.1225 32 60.0071 32.8786 59.9314 33.9585C59.6537 37.9197 58.5358 41.7845 56.6436 45.2927C54.4405 49.3769 51.2569 52.8496 47.379 55.3985C43.501 57.9473 39.0504 59.4923 34.4273 59.8946C29.8042 60.2969 25.1536 59.5438 20.8937 57.7031C16.6338 55.8624 12.8982 52.9918 10.0228 49.3495C7.14743 45.7071 5.2224 41.4072 4.42085 36.8364C3.6193 32.2655 3.96636 27.5672 5.43083 23.1637C6.68871 19.3815 8.73708 15.9188 11.4314 13.0017C12.1659 12.2065 13.412 12.2486 14.1539 13.0369C14.8958 13.8252 14.8514 15.0606 14.126 15.8641C11.9 18.3299 10.2033 21.2352 9.15052 24.4008C7.89107 28.1878 7.5926 32.2284 8.28193 36.1593C8.97126 40.0902 10.6268 43.7881 13.0996 46.9205C15.5725 50.053 18.7851 52.5217 22.4486 54.1047C26.1121 55.6877 30.1116 56.3353 34.0875 55.9893C38.0634 55.6434 41.8909 54.3147 45.2259 52.1227C48.5609 49.9307 51.2988 46.9442 53.1935 43.4317C54.7772 40.4955 55.7302 37.2688 56.0003 33.9579C56.0883 32.879 56.9575 32 58.04 32Z",
|
|
23
|
-
|
|
23
|
+
className: "fill-surface-brand-primary",
|
|
24
24
|
children: /* @__PURE__ */ C(
|
|
25
25
|
"animateTransform",
|
|
26
26
|
{
|
|
@@ -39,5 +39,5 @@ const i = ({ ...t }) => /* @__PURE__ */ e(
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
a as Loader
|
|
43
43
|
};
|