@konstructio/ui 0.1.2-alpha.46 → 0.1.2-alpha.48
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/assets/icons/index.js +7 -0
- package/dist/components/Badge/Badge.js +36 -35
- package/dist/components/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/ImageUpload/ImageUpload.js +9 -9
- package/dist/components/ImageUpload/ImageUpload.variants.js +1 -1
- package/dist/components/Input/Input.js +185 -118
- package/dist/components/Input/Input.variants.js +16 -20
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +19 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +11 -15
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +18 -26
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +8 -8
- package/dist/components/MultiSelectDropdown/components/List/List.js +12 -19
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +6 -4
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +79 -65
- package/dist/components/PhoneNumberInput/components/Wrapper.js +43 -36
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/RadioGroup/RadioGroup.js +9 -9
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +11 -6
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
- package/dist/components/Typography/Typography.js +11 -13
- package/dist/components/Typography/Typography.variants.js +54 -46
- package/dist/components/VirtualizedTable/VirtualizedTable.js +14 -14
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +20 -16
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +60 -60
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +8 -8
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +32 -21
- package/dist/components/VirtualizedTable/components/Header/Header.js +15 -15
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +8 -8
- package/dist/components/index.js +96 -95
- package/dist/index.d.ts +38 -30
- package/dist/index.js +110 -109
- package/dist/package.json +4 -4
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
|
@@ -15,7 +15,8 @@ const a = e(
|
|
|
15
15
|
), o = e(
|
|
16
16
|
[
|
|
17
17
|
"border",
|
|
18
|
-
"border-
|
|
18
|
+
"border-zinc-400",
|
|
19
|
+
"dark:border-metal-600",
|
|
19
20
|
"duration-300",
|
|
20
21
|
"inline-block",
|
|
21
22
|
"rounded-full",
|
|
@@ -61,22 +62,25 @@ const a = e(
|
|
|
61
62
|
disabled: !0,
|
|
62
63
|
checked: !0,
|
|
63
64
|
class: [
|
|
64
|
-
"peer-checked:border-
|
|
65
|
-
"peer-checked:before:bg-
|
|
65
|
+
"peer-checked:border-zinc-300",
|
|
66
|
+
"peer-checked:before:bg-zinc-300",
|
|
66
67
|
"cursor-not-allowed",
|
|
67
|
-
"[&+span]:cursor-not-allowed"
|
|
68
|
+
"[&+span]:cursor-not-allowed",
|
|
69
|
+
"dark:peer-checked:before:bg-aurora-500/50",
|
|
70
|
+
"dark:peer-checked:border-aurora-500/50"
|
|
68
71
|
]
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
disabled: !0,
|
|
72
75
|
checked: !1,
|
|
73
76
|
class: [
|
|
74
|
-
"peer-checked:border-
|
|
75
|
-
"peer-checked:
|
|
76
|
-
"peer-checked:before:bg-gray-200",
|
|
77
|
+
"peer-checked:border-zinc-300",
|
|
78
|
+
"peer-checked:before:bg-zinc-50",
|
|
77
79
|
"cursor-not-allowed",
|
|
78
80
|
"[&+span]:cursor-not-allowed",
|
|
79
|
-
"bg-gray-50"
|
|
81
|
+
"bg-gray-50",
|
|
82
|
+
"dark:bg-metal-800",
|
|
83
|
+
"dark:bg-metal-800"
|
|
80
84
|
]
|
|
81
85
|
}
|
|
82
86
|
],
|
|
@@ -8,11 +8,11 @@ const y = ({
|
|
|
8
8
|
asChild: m,
|
|
9
9
|
className: s,
|
|
10
10
|
defaultChecked: c,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
direction: a,
|
|
12
|
+
name: i,
|
|
13
|
+
options: d,
|
|
14
|
+
theme: n,
|
|
15
|
+
wrapperClassName: p,
|
|
16
16
|
onValueChange: t
|
|
17
17
|
}) => {
|
|
18
18
|
const f = m ? k : "div", [l, S] = x(
|
|
@@ -27,14 +27,14 @@ const y = ({
|
|
|
27
27
|
f,
|
|
28
28
|
{
|
|
29
29
|
className: r(
|
|
30
|
-
R({ className:
|
|
30
|
+
R({ className: p, direction: a })
|
|
31
31
|
),
|
|
32
|
-
"data-theme":
|
|
33
|
-
children:
|
|
32
|
+
"data-theme": n,
|
|
33
|
+
children: d.map(({ value: o, ...N }) => /* @__PURE__ */ e(
|
|
34
34
|
G,
|
|
35
35
|
{
|
|
36
36
|
value: o,
|
|
37
|
-
name:
|
|
37
|
+
name: i,
|
|
38
38
|
className: r(s),
|
|
39
39
|
checked: l === o,
|
|
40
40
|
onChange: () => h(o),
|
|
@@ -87,7 +87,7 @@ const de = [
|
|
|
87
87
|
onClick: () => !t && j(),
|
|
88
88
|
children: [
|
|
89
89
|
v,
|
|
90
|
-
h && /* @__PURE__ */ r("span", { className: "text-red-600 ml-1", children: "*" })
|
|
90
|
+
h && /* @__PURE__ */ r("span", { className: "text-red-600 dark:text-red-500 ml-1", children: "*" })
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
) : null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const e =
|
|
1
|
+
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
+
const e = r([
|
|
3
3
|
"border",
|
|
4
4
|
"rounded",
|
|
5
5
|
"p-2.5",
|
|
@@ -7,8 +7,10 @@ const e = t([
|
|
|
7
7
|
"flex",
|
|
8
8
|
"items-center",
|
|
9
9
|
"justify-between",
|
|
10
|
+
"bg-white",
|
|
10
11
|
"border-gray-300",
|
|
11
12
|
"dark:border-metal-700",
|
|
13
|
+
"dark:bg-metal-800",
|
|
12
14
|
"cursor-pointer",
|
|
13
15
|
"transition-all",
|
|
14
16
|
"transition-duration-100",
|
|
@@ -16,7 +18,7 @@ const e = t([
|
|
|
16
18
|
"text-sm",
|
|
17
19
|
"text-slate-800",
|
|
18
20
|
"dark:text-slate-50"
|
|
19
|
-
]), a =
|
|
21
|
+
]), a = r([
|
|
20
22
|
"snap-y",
|
|
21
23
|
"snap-mandatory",
|
|
22
24
|
"overflow-y-scroll",
|
|
@@ -24,7 +26,7 @@ const e = t([
|
|
|
24
26
|
"flex",
|
|
25
27
|
"flex-col",
|
|
26
28
|
"dark:text-metal-50"
|
|
27
|
-
]), o =
|
|
29
|
+
]), o = r([
|
|
28
30
|
"w-15",
|
|
29
31
|
"h-10",
|
|
30
32
|
"snap-start",
|
|
@@ -46,8 +48,11 @@ const e = t([
|
|
|
46
48
|
"focus-within:border-blue-200",
|
|
47
49
|
"dark:focus-within:border-aurora-50",
|
|
48
50
|
"dark:data-[active=true]:bg-aurora-500",
|
|
49
|
-
"dark:data-[active=true]:
|
|
50
|
-
|
|
51
|
+
"dark:data-[active=true]:hover:border-aurora-50",
|
|
52
|
+
"dark:hover:border-transparent",
|
|
53
|
+
"dark:data-[active=true]:text-metal-900",
|
|
54
|
+
"dark:hover:bg-metal-700"
|
|
55
|
+
]), n = r([
|
|
51
56
|
"flex",
|
|
52
57
|
"items-center",
|
|
53
58
|
"justify-center",
|
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as b } from "react";
|
|
3
3
|
import { cn as t } from "../../../../utils/index.js";
|
|
4
|
-
import { buttonVariants as n, liVariants as
|
|
5
|
-
import { useTimePickerContext as
|
|
6
|
-
const
|
|
7
|
-
listClassName:
|
|
8
|
-
listItemClassName:
|
|
9
|
-
listItemButtonClassName:
|
|
4
|
+
import { buttonVariants as n, liVariants as s } from "../../TimePicker.variants.js";
|
|
5
|
+
import { useTimePickerContext as x } from "../../contexts/time-picker.hook.js";
|
|
6
|
+
const N = ({
|
|
7
|
+
listClassName: c,
|
|
8
|
+
listItemClassName: i,
|
|
9
|
+
listItemButtonClassName: l
|
|
10
10
|
}) => {
|
|
11
|
-
const { format: m, isAM:
|
|
12
|
-
(e,
|
|
13
|
-
e.currentTarget?.blur(),
|
|
11
|
+
const { format: m, isAM: a, onSelectAM: d, onSelectPM: p } = x(), o = b(
|
|
12
|
+
(e, u) => {
|
|
13
|
+
e.currentTarget?.blur(), u();
|
|
14
14
|
},
|
|
15
15
|
[]
|
|
16
16
|
);
|
|
17
17
|
return m === "24" ? null : /* @__PURE__ */ f(
|
|
18
18
|
"ul",
|
|
19
19
|
{
|
|
20
|
-
className: t("flex items-center justify-center flex-col",
|
|
20
|
+
className: t("flex items-center justify-center flex-col", c),
|
|
21
21
|
"aria-label": "meridian",
|
|
22
22
|
role: "listbox",
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ r(
|
|
25
25
|
"li",
|
|
26
26
|
{
|
|
27
|
-
className: t(
|
|
28
|
-
"data-active":
|
|
27
|
+
className: t(s({ className: i })),
|
|
28
|
+
"data-active": a,
|
|
29
29
|
role: "presentation",
|
|
30
30
|
children: /* @__PURE__ */ r(
|
|
31
31
|
"button",
|
|
32
32
|
{
|
|
33
33
|
type: "button",
|
|
34
34
|
role: "option",
|
|
35
|
-
className: t(
|
|
36
|
-
|
|
35
|
+
className: t(
|
|
36
|
+
n({ className: l }),
|
|
37
|
+
{
|
|
38
|
+
"dark:text-slate-50": !a
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
onClick: (e) => o(e, d),
|
|
37
42
|
children: "AM"
|
|
38
43
|
}
|
|
39
44
|
)
|
|
@@ -42,16 +47,21 @@ const x = ({
|
|
|
42
47
|
/* @__PURE__ */ r(
|
|
43
48
|
"li",
|
|
44
49
|
{
|
|
45
|
-
className: t(
|
|
46
|
-
"data-active": !
|
|
50
|
+
className: t(s({ className: i })),
|
|
51
|
+
"data-active": !a,
|
|
47
52
|
role: "presentation",
|
|
48
53
|
children: /* @__PURE__ */ r(
|
|
49
54
|
"button",
|
|
50
55
|
{
|
|
51
56
|
type: "button",
|
|
52
57
|
role: "option",
|
|
53
|
-
className: t(
|
|
54
|
-
|
|
58
|
+
className: t(
|
|
59
|
+
n({ className: l }),
|
|
60
|
+
{
|
|
61
|
+
"dark:text-slate-50": a
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
onClick: (e) => o(e, p),
|
|
55
65
|
children: "PM"
|
|
56
66
|
}
|
|
57
67
|
)
|
|
@@ -61,7 +71,7 @@ const x = ({
|
|
|
61
71
|
}
|
|
62
72
|
);
|
|
63
73
|
};
|
|
64
|
-
|
|
74
|
+
N.displayName = "MeridianList";
|
|
65
75
|
export {
|
|
66
|
-
|
|
76
|
+
N as MeridianList
|
|
67
77
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useId as N, useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useId as N, useState as E, useRef as L, useCallback as O, useEffect as I } from "react";
|
|
3
|
+
import { Typography as c } from "../../../Typography/Typography.js";
|
|
4
|
+
import { cn as d } from "../../../../utils/index.js";
|
|
5
|
+
import { timePickerVariants as T } from "../../TimePicker.variants.js";
|
|
5
6
|
import { WrapperList as j } from "../WrapperList/WrapperList.js";
|
|
6
7
|
import { C as P } from "../../../../chevron-down-DgT-uSF9.js";
|
|
7
8
|
import { useTimePickerContext as R } from "../../contexts/time-picker.hook.js";
|
|
8
|
-
const
|
|
9
|
-
name:
|
|
10
|
-
label:
|
|
11
|
-
|
|
12
|
-
scrollBehavior:
|
|
13
|
-
className:
|
|
9
|
+
const q = ({
|
|
10
|
+
name: p,
|
|
11
|
+
label: i,
|
|
12
|
+
isRequired: f,
|
|
13
|
+
scrollBehavior: u,
|
|
14
|
+
className: h,
|
|
14
15
|
listClassName: x,
|
|
15
|
-
listItemClassName:
|
|
16
|
-
listItemButtonClassName:
|
|
16
|
+
listItemClassName: w,
|
|
17
|
+
listItemButtonClassName: b
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
+
const g = N(), [n, r] = E(!1), l = L(null), { format: k, formattedTime: m } = R(), o = p ?? `time-${g}`, v = O(() => r((e) => !e), []);
|
|
19
20
|
return I(() => {
|
|
20
|
-
const e = new AbortController(),
|
|
21
|
-
|
|
22
|
-
}, C = (
|
|
23
|
-
|
|
21
|
+
const e = new AbortController(), y = (s) => {
|
|
22
|
+
s.key === "Escape" && r(!1);
|
|
23
|
+
}, C = (s) => {
|
|
24
|
+
l.current?.contains(s.target) || r(!1);
|
|
24
25
|
};
|
|
25
26
|
return document.addEventListener("mousedown", C, {
|
|
26
27
|
signal: e.signal
|
|
27
|
-
}), document.addEventListener("keydown",
|
|
28
|
+
}), document.addEventListener("keydown", y, {
|
|
28
29
|
signal: e.signal
|
|
29
30
|
}), () => {
|
|
30
31
|
e.abort();
|
|
@@ -32,21 +33,35 @@ const V = ({
|
|
|
32
33
|
}, []), /* @__PURE__ */ t(
|
|
33
34
|
"div",
|
|
34
35
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className:
|
|
37
|
-
"w-max
|
|
38
|
-
|
|
36
|
+
ref: l,
|
|
37
|
+
className: d(
|
|
38
|
+
"w-max",
|
|
39
|
+
"text-slate-800",
|
|
40
|
+
"text-sm",
|
|
41
|
+
"flex",
|
|
42
|
+
"flex-col",
|
|
43
|
+
"gap-2",
|
|
44
|
+
k === "12" ? "w-53 min-w-53" : "w-36 min-w-36"
|
|
39
45
|
),
|
|
40
46
|
children: [
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
i ? /* @__PURE__ */ t(
|
|
48
|
+
c,
|
|
43
49
|
{
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
component: "label",
|
|
51
|
+
variant: "labelLarge",
|
|
52
|
+
htmlFor: o,
|
|
53
|
+
className: "font-medium",
|
|
46
54
|
children: [
|
|
47
|
-
|
|
55
|
+
i,
|
|
48
56
|
" ",
|
|
49
|
-
|
|
57
|
+
f && /* @__PURE__ */ a(
|
|
58
|
+
c,
|
|
59
|
+
{
|
|
60
|
+
component: "span",
|
|
61
|
+
className: "text-red-600 dark:text-red-500 text-sm font-normal",
|
|
62
|
+
children: "*"
|
|
63
|
+
}
|
|
64
|
+
)
|
|
50
65
|
]
|
|
51
66
|
}
|
|
52
67
|
) : null,
|
|
@@ -54,13 +69,13 @@ const V = ({
|
|
|
54
69
|
/* @__PURE__ */ t(
|
|
55
70
|
"button",
|
|
56
71
|
{
|
|
57
|
-
"aria-label":
|
|
72
|
+
"aria-label": o,
|
|
58
73
|
"aria-haspopup": "listbox",
|
|
59
74
|
"aria-expanded": "true",
|
|
60
75
|
"aria-controls": "time-options",
|
|
61
|
-
className:
|
|
76
|
+
className: d(T({ className: h })),
|
|
62
77
|
"data-open": n,
|
|
63
|
-
onClick:
|
|
78
|
+
onClick: v,
|
|
64
79
|
children: [
|
|
65
80
|
m,
|
|
66
81
|
/* @__PURE__ */ a(
|
|
@@ -77,10 +92,10 @@ const V = ({
|
|
|
77
92
|
j,
|
|
78
93
|
{
|
|
79
94
|
isOpen: n,
|
|
80
|
-
scrollBehavior:
|
|
95
|
+
scrollBehavior: u,
|
|
81
96
|
listClassName: x,
|
|
82
|
-
listItemClassName:
|
|
83
|
-
listItemButtonClassName:
|
|
97
|
+
listItemClassName: w,
|
|
98
|
+
listItemButtonClassName: b
|
|
84
99
|
}
|
|
85
100
|
)
|
|
86
101
|
] }),
|
|
@@ -88,7 +103,7 @@ const V = ({
|
|
|
88
103
|
"input",
|
|
89
104
|
{
|
|
90
105
|
type: "hidden",
|
|
91
|
-
name:
|
|
106
|
+
name: o,
|
|
92
107
|
value: m,
|
|
93
108
|
className: "hidden"
|
|
94
109
|
}
|
|
@@ -98,5 +113,5 @@ const V = ({
|
|
|
98
113
|
);
|
|
99
114
|
};
|
|
100
115
|
export {
|
|
101
|
-
|
|
116
|
+
q as Wrapper
|
|
102
117
|
};
|
|
@@ -2,27 +2,25 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { cn as c } from "../../utils/index.js";
|
|
4
4
|
import { typographyVariants as f } from "./Typography.variants.js";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const h = y(({ className: r, theme: p, children: t, variant: o, component: m, ...e }, s) => {
|
|
6
|
+
const a = m ?? (o?.includes("h") ? o : "p");
|
|
7
7
|
return /* @__PURE__ */ n(
|
|
8
|
-
|
|
8
|
+
a,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
11
|
-
"data-theme":
|
|
10
|
+
ref: s,
|
|
11
|
+
"data-theme": p,
|
|
12
12
|
className: c(
|
|
13
|
-
"text-slate-800",
|
|
14
|
-
"dark:text-metal-50",
|
|
15
13
|
f({
|
|
16
|
-
className:
|
|
17
|
-
variant:
|
|
14
|
+
className: r,
|
|
15
|
+
variant: o
|
|
18
16
|
})
|
|
19
17
|
),
|
|
20
|
-
...
|
|
21
|
-
children:
|
|
18
|
+
...e,
|
|
19
|
+
children: t
|
|
22
20
|
}
|
|
23
21
|
);
|
|
24
22
|
});
|
|
25
|
-
|
|
23
|
+
h.displayName = "KonstructTypography";
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
h as Typography
|
|
28
26
|
};
|
|
@@ -1,52 +1,60 @@
|
|
|
1
1
|
import { c as t } from "../../index-D29mdTf5.js";
|
|
2
|
-
const a = t(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"text-[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
const a = t(
|
|
3
|
+
["text-slate-800", "dark:text-metal-50"],
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
h1: ["text-[57px]", "leading-16"],
|
|
8
|
+
h2: ["text-[45px]", "leading-13"],
|
|
9
|
+
h3: ["text-4xl", "leading-11"],
|
|
10
|
+
h4: ["text-[32px]", "leading-10"],
|
|
11
|
+
h5: ["text-[28px]", "leading-9"],
|
|
12
|
+
h6: ["text-2xl", "font-medium", "leading-8", "tracking-[0.15px]"],
|
|
13
|
+
subtitle1: ["text-[22px]", "leading-7"],
|
|
14
|
+
subtitle2: ["text-sm", "font-medium", "leading-6", "tracking-[0.15px]"],
|
|
15
|
+
subtitle3: [
|
|
16
|
+
"text-[14px]",
|
|
17
|
+
"font-medium",
|
|
18
|
+
"leading-5",
|
|
19
|
+
"tracking-[0.1px]"
|
|
20
|
+
],
|
|
21
|
+
labelLarge: [
|
|
22
|
+
"text-sm",
|
|
23
|
+
"font-medium",
|
|
24
|
+
"text-slate-500",
|
|
25
|
+
"dark:text-metal-50"
|
|
26
|
+
],
|
|
27
|
+
labelMedium: [
|
|
28
|
+
"text-[12px]",
|
|
29
|
+
"font-medium",
|
|
30
|
+
"leading-4",
|
|
31
|
+
"tracking-[0.5px]",
|
|
32
|
+
"uppercase"
|
|
33
|
+
],
|
|
34
|
+
labelSmall: [
|
|
35
|
+
"text-[11px]",
|
|
36
|
+
"font-medium",
|
|
37
|
+
"leading-4",
|
|
38
|
+
"tracking-[0.5px]",
|
|
39
|
+
"uppercase"
|
|
40
|
+
],
|
|
41
|
+
buttonSmall: [
|
|
42
|
+
"text-[14px]",
|
|
43
|
+
"font-semibold",
|
|
44
|
+
"leading-5",
|
|
45
|
+
"tracking-[0.25px]"
|
|
46
|
+
],
|
|
47
|
+
body1: ["text-base", "leading-6", "tracking-[0.5px]"],
|
|
48
|
+
body2: ["text-sm", "leading-5", "tracking-[0.25px]"],
|
|
49
|
+
body3: ["text-xs", "leading-4", "tracking-[0.4px]"],
|
|
50
|
+
tooltip: ["text-sm", "leading-5.5"]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
variant: "body1"
|
|
44
55
|
}
|
|
45
|
-
},
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
variant: "body1"
|
|
48
56
|
}
|
|
49
|
-
|
|
57
|
+
);
|
|
50
58
|
export {
|
|
51
59
|
a as typographyVariants
|
|
52
60
|
};
|
|
@@ -14,11 +14,11 @@ const J = ({
|
|
|
14
14
|
ariaLabel: p,
|
|
15
15
|
columns: d,
|
|
16
16
|
data: f,
|
|
17
|
-
totalItems:
|
|
18
|
-
className:
|
|
17
|
+
totalItems: u = -1 / 0,
|
|
18
|
+
className: b,
|
|
19
19
|
classNameHeaderActiveArrows: T,
|
|
20
|
-
classNameHeaderArrows:
|
|
21
|
-
classNameHeaderTable:
|
|
20
|
+
classNameHeaderArrows: N,
|
|
21
|
+
classNameHeaderTable: x,
|
|
22
22
|
classNameTable: A,
|
|
23
23
|
classNameWrapperTable: y,
|
|
24
24
|
isLoading: a,
|
|
@@ -26,8 +26,8 @@ const J = ({
|
|
|
26
26
|
queryOptions: z,
|
|
27
27
|
// Pagination
|
|
28
28
|
showPagination: B,
|
|
29
|
-
showTotalItems:
|
|
30
|
-
showDropdownPagination:
|
|
29
|
+
showTotalItems: t,
|
|
30
|
+
showDropdownPagination: i,
|
|
31
31
|
showDotPagination: l,
|
|
32
32
|
showFormPagination: m,
|
|
33
33
|
pageSizes: V,
|
|
@@ -42,8 +42,8 @@ const J = ({
|
|
|
42
42
|
}) => {
|
|
43
43
|
const e = I(
|
|
44
44
|
() => B || [
|
|
45
|
-
i,
|
|
46
45
|
t,
|
|
46
|
+
i,
|
|
47
47
|
l,
|
|
48
48
|
m
|
|
49
49
|
].some(Boolean),
|
|
@@ -56,10 +56,10 @@ const J = ({
|
|
|
56
56
|
columns: d,
|
|
57
57
|
data: f,
|
|
58
58
|
fetchData: h,
|
|
59
|
-
totalItems:
|
|
59
|
+
totalItems: u,
|
|
60
60
|
queryOptions: z,
|
|
61
61
|
isPaginationEnabled: e,
|
|
62
|
-
children: /* @__PURE__ */ s("section", { className: c("w-full min-w-fit",
|
|
62
|
+
children: /* @__PURE__ */ s("section", { className: c("w-full min-w-fit", b), children: [
|
|
63
63
|
j && /* @__PURE__ */ r(
|
|
64
64
|
M,
|
|
65
65
|
{
|
|
@@ -81,7 +81,7 @@ const J = ({
|
|
|
81
81
|
"table",
|
|
82
82
|
{
|
|
83
83
|
className: c(
|
|
84
|
-
"w-full border-collapse table-
|
|
84
|
+
"w-full border-collapse table-auto",
|
|
85
85
|
"dark:border-separate dark:border-spacing-0",
|
|
86
86
|
A
|
|
87
87
|
),
|
|
@@ -90,8 +90,8 @@ const J = ({
|
|
|
90
90
|
/* @__PURE__ */ r(
|
|
91
91
|
g,
|
|
92
92
|
{
|
|
93
|
-
className:
|
|
94
|
-
classNameArrows:
|
|
93
|
+
className: x,
|
|
94
|
+
classNameArrows: N,
|
|
95
95
|
classNameActiveArrows: T
|
|
96
96
|
}
|
|
97
97
|
),
|
|
@@ -104,8 +104,8 @@ const J = ({
|
|
|
104
104
|
e && /* @__PURE__ */ r(
|
|
105
105
|
C,
|
|
106
106
|
{
|
|
107
|
-
showTotalItems:
|
|
108
|
-
showDropdownPagination:
|
|
107
|
+
showTotalItems: t,
|
|
108
|
+
showDropdownPagination: i,
|
|
109
109
|
showDotPagination: l,
|
|
110
110
|
showFormPagination: m,
|
|
111
111
|
pageSizes: V,
|