@konstructio/ui 0.1.2-alpha.41 → 0.1.2-alpha.43
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/{Modal-CtAG97Ts.js → Modal-CjC-CIJ8.js} +2 -2
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/{chevron-up-CRyLc5Ml.js → chevron-up-DEfvgPCw.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +75 -49
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +31 -30
- package/dist/components/Badge/Badge.variants.js +53 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.variants.js +4 -5
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.variants.js +5 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1231 -1047
- package/dist/components/Dropdown/Dropdown.variants.js +3 -2
- package/dist/components/Dropdown/components/List/List.js +1 -1
- package/dist/components/Dropdown/components/Wrapper.js +42 -28
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +6 -5
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -46
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +28 -14
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +2 -2
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +358 -315
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +58 -58
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -2
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +4 -4
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +3 -2
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +20 -13
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +23 -16
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
- package/dist/components/Toast/Toast.js +8 -8
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +11 -9
- package/dist/components/VirtualizedTable/VirtualizedTable.js +58 -54
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +58 -26
- package/dist/components/VirtualizedTable/components/Body/Body.js +72 -46
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +80 -77
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +37 -40
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +19 -18
- package/dist/components/VirtualizedTable/components/Header/Header.js +49 -31
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +36 -23
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +74 -35
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-mPY_8Y5v.js → index-AV6ZtGhy.js} +1 -1
- package/dist/{index-CigKKiZS.js → index-BG8O18ZY.js} +5 -3
- package/dist/{index-DrWQH0QF.js → index-BKjcReYh.js} +2 -2
- package/dist/{index--V_ZsiQe.js → index-BOE_3f_Z.js} +4 -4
- package/dist/{index-Dbt2vBmS.js → index-BlSRBdPy.js} +1 -1
- package/dist/{index-C3tHPg8y.js → index-BmVmDQGH.js} +2 -2
- package/dist/{index-BtQfgaSF.js → index-BvoZGpli.js} +2 -2
- package/dist/{index-2hB40Iuc.js → index-Byr10W8m.js} +6 -6
- package/dist/index-CPU02rhe.js +134 -0
- package/dist/{index-Ds6U2x4Z.js → index-CeZcoQDw.js} +11 -11
- package/dist/{index-CdwPV0FE.js → index-D9SSJ6om.js} +3 -3
- package/dist/{index-CIAmiWcw.js → index-DKfEnhKr.js} +2 -2
- package/dist/{index-CSFe9uC5.js → index-DMb4KD0b.js} +1 -1
- package/dist/{index-ohdbKsws.js → index-DtEcCIrM.js} +1 -1
- package/dist/{index-BbQkJE5L.js → index-Dy59FQl5.js} +1 -1
- package/dist/{index-DpW9ExsS.js → index-gSPwC-1I.js} +3 -3
- package/dist/{index-DH2Fnov1.js → index-vcSp8YRZ.js} +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/{libphonenumber-_7ZyKWA7.js → libphonenumber-FTwQ9nyV.js} +11 -11
- package/dist/package.json +21 -21
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +11 -10
- package/dist/{x-DPU9OdYH.js → x-Eoa9FJjA.js} +1 -1
- package/package.json +21 -21
- package/dist/chevron-left-C4LEg1fH.js +0 -7
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/index-C65LtGuU.js +0 -137
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useId as N, useState as y, useRef as E, useCallback as O, useEffect as I } from "react";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as c } from "../../../../utils/index.js";
|
|
4
4
|
import { timePickerVariants as L } from "../../TimePicker.variants.js";
|
|
5
5
|
import { WrapperList as j } from "../WrapperList/WrapperList.js";
|
|
6
6
|
import { C as P } from "../../../../chevron-down-DgT-uSF9.js";
|
|
7
7
|
import { useTimePickerContext as R } from "../../contexts/time-picker.hook.js";
|
|
8
8
|
const V = ({
|
|
9
9
|
name: d,
|
|
10
|
-
label:
|
|
10
|
+
label: l,
|
|
11
11
|
required: p,
|
|
12
12
|
scrollBehavior: f,
|
|
13
13
|
className: u,
|
|
@@ -15,12 +15,12 @@ const V = ({
|
|
|
15
15
|
listItemClassName: h,
|
|
16
16
|
listItemButtonClassName: w
|
|
17
17
|
}) => {
|
|
18
|
-
const b = N(), [n, r] = y(!1),
|
|
18
|
+
const b = N(), [n, r] = y(!1), i = E(null), { format: k, formattedTime: m } = R(), s = d ?? `time-${b}`, g = O(() => r((e) => !e), []);
|
|
19
19
|
return I(() => {
|
|
20
20
|
const e = new AbortController(), v = (o) => {
|
|
21
21
|
o.key === "Escape" && r(!1);
|
|
22
22
|
}, C = (o) => {
|
|
23
|
-
|
|
23
|
+
i.current?.contains(o.target) || r(!1);
|
|
24
24
|
};
|
|
25
25
|
return document.addEventListener("mousedown", C, {
|
|
26
26
|
signal: e.signal
|
|
@@ -32,17 +32,24 @@ const V = ({
|
|
|
32
32
|
}, []), /* @__PURE__ */ t(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className:
|
|
35
|
+
ref: i,
|
|
36
|
+
className: c(
|
|
37
37
|
"w-max text-slate-800 text-sm flex flex-col gap-2",
|
|
38
|
-
|
|
38
|
+
k === "12" ? "w-52" : "w-[140px]"
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
l ? /* @__PURE__ */ t(
|
|
42
|
+
"label",
|
|
43
|
+
{
|
|
44
|
+
htmlFor: s,
|
|
45
|
+
className: "text-slate-500 dark:text-metal-50 font-medium",
|
|
46
|
+
children: [
|
|
47
|
+
l,
|
|
48
|
+
" ",
|
|
49
|
+
p && /* @__PURE__ */ a("span", { className: "text-red-600", children: "*" })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
) : null,
|
|
46
53
|
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
47
54
|
/* @__PURE__ */ t(
|
|
48
55
|
"button",
|
|
@@ -51,11 +58,11 @@ const V = ({
|
|
|
51
58
|
"aria-haspopup": "listbox",
|
|
52
59
|
"aria-expanded": "true",
|
|
53
60
|
"aria-controls": "time-options",
|
|
54
|
-
className:
|
|
61
|
+
className: c(L({ className: u })),
|
|
55
62
|
"data-open": n,
|
|
56
|
-
onClick:
|
|
63
|
+
onClick: g,
|
|
57
64
|
children: [
|
|
58
|
-
|
|
65
|
+
m,
|
|
59
66
|
/* @__PURE__ */ a(
|
|
60
67
|
P,
|
|
61
68
|
{
|
|
@@ -82,7 +89,7 @@ const V = ({
|
|
|
82
89
|
{
|
|
83
90
|
type: "hidden",
|
|
84
91
|
name: s,
|
|
85
|
-
value:
|
|
92
|
+
value: m,
|
|
86
93
|
className: "hidden"
|
|
87
94
|
}
|
|
88
95
|
)
|
|
@@ -1,51 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as n } from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { getHours as
|
|
5
|
-
import { HoursList as
|
|
6
|
-
import { MeridianList as
|
|
7
|
-
import { MinutesList as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
scrollBehavior: p,
|
|
3
|
+
import { cn as c } from "../../../../utils/index.js";
|
|
4
|
+
import { getHours as s, getMinutes as x } from "../../utils/index.js";
|
|
5
|
+
import { HoursList as g } from "../HoursList/HoursList.js";
|
|
6
|
+
import { MeridianList as b } from "../MeridianList/MeridianList.js";
|
|
7
|
+
import { MinutesList as M } from "../MinutesList/MinutesList.js";
|
|
8
|
+
import { useTimePickerContext as h } from "../../contexts/time-picker.hook.js";
|
|
9
|
+
const T = ({
|
|
10
|
+
isOpen: d,
|
|
11
|
+
scrollBehavior: m,
|
|
13
12
|
listClassName: o,
|
|
14
|
-
listItemClassName:
|
|
15
|
-
listItemButtonClassName:
|
|
13
|
+
listItemClassName: e,
|
|
14
|
+
listItemButtonClassName: i
|
|
16
15
|
}) => {
|
|
17
|
-
const { time: r } =
|
|
18
|
-
return
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
16
|
+
const { time: r } = h(), p = n(() => s(r), [r]), u = n(() => x(r), [r]);
|
|
17
|
+
return d ? /* @__PURE__ */ f(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
role: "group",
|
|
21
|
+
className: c(
|
|
22
|
+
"flex gap-1.5 p-2 rounded-md shadow w-full max-h-[216px] absolute mt-1 bg-white z-10 animate-in fade-in-0 zoom-in-95 dark:bg-metal-800 dark:border dark:border-metal-700"
|
|
23
|
+
),
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
|
+
g,
|
|
27
|
+
{
|
|
28
|
+
hours: p,
|
|
29
|
+
scrollBehavior: m,
|
|
30
|
+
listClassName: o,
|
|
31
|
+
listItemClassName: e,
|
|
32
|
+
listItemButtonClassName: i
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
M,
|
|
37
|
+
{
|
|
38
|
+
minutes: u,
|
|
39
|
+
scrollBehavior: m,
|
|
40
|
+
listClassName: o,
|
|
41
|
+
listItemClassName: e,
|
|
42
|
+
listItemButtonClassName: i
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ t(
|
|
46
|
+
b,
|
|
47
|
+
{
|
|
48
|
+
listClassName: o,
|
|
49
|
+
listItemClassName: e,
|
|
50
|
+
listItemButtonClassName: i
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
) : null;
|
|
48
56
|
};
|
|
49
57
|
export {
|
|
50
|
-
|
|
58
|
+
T as WrapperList
|
|
51
59
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as i, jsxs as A, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { S as B } from "../../index-
|
|
2
|
+
import { S as B } from "../../index-BvoZGpli.js";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { useRef as xe, useEffect as be, useMemo as re, isValidElement as ne, useCallback as ge } from "react";
|
|
5
5
|
import * as Se from "react-dom";
|
|
6
|
-
import { P as D, c as Ne, a as Ie, b as x, d as Ae, u as De } from "../../index-
|
|
6
|
+
import { P as D, c as Ne, a as Ie, b as x, d as Ae, u as De } from "../../index-DKfEnhKr.js";
|
|
7
7
|
import { u as ie } from "../../index-DLcqcWxM.js";
|
|
8
|
-
import { c as _e } from "../../index-
|
|
9
|
-
import { B as Fe, R as Le } from "../../index-
|
|
10
|
-
import { P as Me } from "../../index-
|
|
11
|
-
import { P as Oe } from "../../index-
|
|
8
|
+
import { c as _e } from "../../index-BG8O18ZY.js";
|
|
9
|
+
import { B as Fe, R as Le } from "../../index-BlSRBdPy.js";
|
|
10
|
+
import { P as Me } from "../../index-DMb4KD0b.js";
|
|
11
|
+
import { P as Oe } from "../../index-AV6ZtGhy.js";
|
|
12
12
|
import { u as X } from "../../index-0ioNhtNM.js";
|
|
13
|
-
import { R as ke } from "../../index-
|
|
13
|
+
import { R as ke } from "../../index-BKjcReYh.js";
|
|
14
14
|
import { cn as j } from "../../utils/index.js";
|
|
15
15
|
import { closeToastVariants as Ve, toastVariants as Ke, viewportToastVariants as He } from "./Toast.variants.js";
|
|
16
|
-
import { X as We } from "../../x-
|
|
16
|
+
import { X as We } from "../../x-Eoa9FJjA.js";
|
|
17
17
|
var Ue = Object.freeze({
|
|
18
18
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
19
19
|
position: "absolute",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { S as u } from "../../index-
|
|
2
|
+
import { S as u } from "../../index-BvoZGpli.js";
|
|
3
3
|
import { forwardRef as v, useRef as N, useImperativeHandle as h, useMemo as w, isValidElement as x } from "react";
|
|
4
4
|
import { cn as o } from "../../utils/index.js";
|
|
5
5
|
import { arrowVariants as R, tooltipVariants as V } from "./Tooltip.variants.js";
|
|
@@ -2,27 +2,29 @@ import { jsx as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
3
|
import { cn as n } from "../../utils/index.js";
|
|
4
4
|
import { typographyVariants as c } from "./Typography.variants.js";
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
const s =
|
|
5
|
+
const d = f(
|
|
6
|
+
({ className: t, theme: r, children: p, variant: o, component: e, ...m }, a) => {
|
|
7
|
+
const s = e ?? (o?.includes("h") ? o : "p");
|
|
8
8
|
return /* @__PURE__ */ y(
|
|
9
9
|
s,
|
|
10
10
|
{
|
|
11
11
|
ref: a,
|
|
12
|
-
"data-theme":
|
|
12
|
+
"data-theme": r,
|
|
13
13
|
className: n(
|
|
14
|
+
"text-slate-800",
|
|
15
|
+
"dark:text-metal-50",
|
|
14
16
|
c({
|
|
15
|
-
className:
|
|
17
|
+
className: t,
|
|
16
18
|
variant: o
|
|
17
19
|
})
|
|
18
20
|
),
|
|
19
|
-
...
|
|
20
|
-
children:
|
|
21
|
+
...m,
|
|
22
|
+
children: p
|
|
21
23
|
}
|
|
22
24
|
);
|
|
23
25
|
}
|
|
24
26
|
);
|
|
25
|
-
|
|
27
|
+
d.displayName = "Typography";
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
d as Typography
|
|
28
30
|
};
|
|
@@ -1,121 +1,125 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as I } from "react";
|
|
3
3
|
import { cn as c } from "../../utils/index.js";
|
|
4
|
-
import { TableProvider as
|
|
5
|
-
import { Filter as
|
|
6
|
-
import { WrapperBody as
|
|
7
|
-
import { Header as
|
|
8
|
-
import { Body as
|
|
9
|
-
import { Pagination as
|
|
10
|
-
import { TruncateText as
|
|
11
|
-
import { Actions as
|
|
12
|
-
const
|
|
4
|
+
import { TableProvider as K } from "./contexts/table.provider.js";
|
|
5
|
+
import { Filter as M } from "./components/Filter/Filter.js";
|
|
6
|
+
import { WrapperBody as W } from "./components/WrapperBody/WrapperBody.js";
|
|
7
|
+
import { Header as g } from "./components/Header/Header.js";
|
|
8
|
+
import { Body as q } from "./components/Body/Body.js";
|
|
9
|
+
import { Pagination as C } from "./components/Pagination/Pagination.js";
|
|
10
|
+
import { TruncateText as F } from "./components/TruncateText/TruncateText.js";
|
|
11
|
+
import { Actions as G } from "./components/Actions/Actions.js";
|
|
12
|
+
const J = ({
|
|
13
13
|
id: n,
|
|
14
|
-
ariaLabel:
|
|
15
|
-
columns:
|
|
16
|
-
data:
|
|
17
|
-
totalItems:
|
|
18
|
-
className:
|
|
14
|
+
ariaLabel: p,
|
|
15
|
+
columns: d,
|
|
16
|
+
data: f,
|
|
17
|
+
totalItems: b = -1 / 0,
|
|
18
|
+
className: u,
|
|
19
19
|
classNameHeaderActiveArrows: T,
|
|
20
20
|
classNameHeaderArrows: x,
|
|
21
21
|
classNameHeaderTable: N,
|
|
22
22
|
classNameTable: A,
|
|
23
23
|
classNameWrapperTable: y,
|
|
24
|
-
isLoading:
|
|
24
|
+
isLoading: a,
|
|
25
25
|
fetchData: h,
|
|
26
26
|
queryOptions: z,
|
|
27
27
|
// Pagination
|
|
28
28
|
showPagination: B,
|
|
29
|
-
showTotalItems:
|
|
30
|
-
showDropdownPagination:
|
|
29
|
+
showTotalItems: i,
|
|
30
|
+
showDropdownPagination: t,
|
|
31
31
|
showDotPagination: l,
|
|
32
32
|
showFormPagination: m,
|
|
33
33
|
pageSizes: V,
|
|
34
34
|
// Filter
|
|
35
35
|
showFilter: j = !1,
|
|
36
|
-
showFilterInput:
|
|
37
|
-
filterSearchPlaceholder:
|
|
38
|
-
multiSelectFilter:
|
|
39
|
-
filterActions:
|
|
40
|
-
showResetButton:
|
|
41
|
-
resetButtonClassName:
|
|
36
|
+
showFilterInput: k,
|
|
37
|
+
filterSearchPlaceholder: v = "",
|
|
38
|
+
multiSelectFilter: w,
|
|
39
|
+
filterActions: P,
|
|
40
|
+
showResetButton: E = !0,
|
|
41
|
+
resetButtonClassName: H
|
|
42
42
|
}) => {
|
|
43
|
-
const e =
|
|
43
|
+
const e = I(
|
|
44
44
|
() => B || [
|
|
45
|
+
i,
|
|
45
46
|
t,
|
|
46
|
-
a,
|
|
47
47
|
l,
|
|
48
48
|
m
|
|
49
49
|
].some(Boolean),
|
|
50
50
|
[]
|
|
51
51
|
);
|
|
52
52
|
return /* @__PURE__ */ r(
|
|
53
|
-
|
|
53
|
+
K,
|
|
54
54
|
{
|
|
55
55
|
id: n,
|
|
56
|
-
columns:
|
|
57
|
-
data:
|
|
56
|
+
columns: d,
|
|
57
|
+
data: f,
|
|
58
58
|
fetchData: h,
|
|
59
|
-
totalItems:
|
|
59
|
+
totalItems: b,
|
|
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", u), children: [
|
|
63
63
|
j && /* @__PURE__ */ r(
|
|
64
|
-
|
|
64
|
+
M,
|
|
65
65
|
{
|
|
66
|
-
actions:
|
|
67
|
-
multiSelectFilter:
|
|
68
|
-
placeholder:
|
|
69
|
-
showFilterInput:
|
|
70
|
-
showResetButton:
|
|
71
|
-
resetButtonClassName:
|
|
66
|
+
actions: P,
|
|
67
|
+
multiSelectFilter: w,
|
|
68
|
+
placeholder: v,
|
|
69
|
+
showFilterInput: k,
|
|
70
|
+
showResetButton: E,
|
|
71
|
+
resetButtonClassName: H
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ r(
|
|
75
|
-
|
|
75
|
+
W,
|
|
76
76
|
{
|
|
77
77
|
showPagination: e,
|
|
78
78
|
classNameWrapperTable: y,
|
|
79
|
-
isLoading:
|
|
79
|
+
isLoading: a,
|
|
80
80
|
children: /* @__PURE__ */ s(
|
|
81
81
|
"table",
|
|
82
82
|
{
|
|
83
|
-
className: c(
|
|
84
|
-
|
|
83
|
+
className: c(
|
|
84
|
+
"w-full border-collapse table-fixed",
|
|
85
|
+
"dark:border-separate dark:border-spacing-0",
|
|
86
|
+
A
|
|
87
|
+
),
|
|
88
|
+
"aria-label": p,
|
|
85
89
|
children: [
|
|
86
90
|
/* @__PURE__ */ r(
|
|
87
|
-
|
|
91
|
+
g,
|
|
88
92
|
{
|
|
89
93
|
className: N,
|
|
90
94
|
classNameArrows: x,
|
|
91
95
|
classNameActiveArrows: T
|
|
92
96
|
}
|
|
93
97
|
),
|
|
94
|
-
/* @__PURE__ */ r(
|
|
98
|
+
/* @__PURE__ */ r(q, { isLoading: a, showPagination: e })
|
|
95
99
|
]
|
|
96
100
|
}
|
|
97
101
|
)
|
|
98
102
|
}
|
|
99
103
|
),
|
|
100
104
|
e && /* @__PURE__ */ r(
|
|
101
|
-
|
|
105
|
+
C,
|
|
102
106
|
{
|
|
103
|
-
showTotalItems:
|
|
104
|
-
showDropdownPagination:
|
|
107
|
+
showTotalItems: i,
|
|
108
|
+
showDropdownPagination: t,
|
|
105
109
|
showDotPagination: l,
|
|
106
110
|
showFormPagination: m,
|
|
107
111
|
pageSizes: V,
|
|
108
|
-
isLoading:
|
|
112
|
+
isLoading: a
|
|
109
113
|
}
|
|
110
114
|
)
|
|
111
115
|
] })
|
|
112
116
|
}
|
|
113
117
|
);
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
}, o = J;
|
|
119
|
+
o.displayName = "KonstructVirtualizedTable";
|
|
120
|
+
o.TruncateText = F;
|
|
121
|
+
o.Actions = G;
|
|
118
122
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
F as TruncateText,
|
|
124
|
+
o as VirtualizedTable
|
|
121
125
|
};
|
|
@@ -1,64 +1,96 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Button as t } from "../../../Button/Button.js";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { E as
|
|
5
|
-
const
|
|
3
|
+
import { cn as e } from "../../../../utils/index.js";
|
|
4
|
+
import { E as m } from "../../../../ellipsis-vertical-BVPtjl5f.js";
|
|
5
|
+
const b = ({
|
|
6
6
|
actions: a,
|
|
7
7
|
wrapperClassName: l,
|
|
8
8
|
triggerButtonClassName: s,
|
|
9
9
|
iconTriggerButtonClassName: n,
|
|
10
|
-
wrapperActionsClassName:
|
|
11
|
-
wrapperContentActionsClassName:
|
|
10
|
+
wrapperActionsClassName: d,
|
|
11
|
+
wrapperContentActionsClassName: c,
|
|
12
12
|
...h
|
|
13
|
-
}) => a ? /* @__PURE__ */ i("div", { className:
|
|
13
|
+
}) => a ? /* @__PURE__ */ i("div", { className: e("relative group", l), children: [
|
|
14
14
|
/* @__PURE__ */ i(
|
|
15
15
|
t,
|
|
16
16
|
{
|
|
17
17
|
variant: "text",
|
|
18
18
|
shape: "circle",
|
|
19
19
|
size: "large",
|
|
20
|
-
className:
|
|
21
|
-
"text-slate-400
|
|
20
|
+
className: e(
|
|
21
|
+
"text-slate-400",
|
|
22
|
+
"group-hover:text-slate-800",
|
|
23
|
+
"group-hover:bg-aurora-50",
|
|
24
|
+
"dark:text-metal-400",
|
|
25
|
+
"dark:group-hover:text-aurora-500",
|
|
26
|
+
"dark:group-hover:bg-aurora-900",
|
|
22
27
|
s
|
|
23
28
|
),
|
|
24
29
|
role: "presentation",
|
|
25
30
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
m,
|
|
28
33
|
{
|
|
29
34
|
"aria-hidden": "true",
|
|
30
|
-
className:
|
|
35
|
+
className: e("w-7 h-7", n)
|
|
31
36
|
}
|
|
32
37
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Show Actions" })
|
|
34
39
|
]
|
|
35
40
|
}
|
|
36
41
|
),
|
|
37
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ r(
|
|
38
43
|
"div",
|
|
39
44
|
{
|
|
40
|
-
className:
|
|
41
|
-
"absolute
|
|
42
|
-
|
|
45
|
+
className: e(
|
|
46
|
+
"absolute",
|
|
47
|
+
"top-full",
|
|
48
|
+
"right-0",
|
|
49
|
+
"w-[215px]",
|
|
50
|
+
"hidden",
|
|
51
|
+
"group-hover:block",
|
|
52
|
+
"z-10",
|
|
53
|
+
d
|
|
43
54
|
),
|
|
44
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ r(
|
|
45
56
|
"div",
|
|
46
57
|
{
|
|
47
|
-
className:
|
|
48
|
-
"bg-white
|
|
49
|
-
|
|
58
|
+
className: e(
|
|
59
|
+
"bg-white",
|
|
60
|
+
"mt-0.5",
|
|
61
|
+
"py-2",
|
|
62
|
+
"rounded-lg",
|
|
63
|
+
"shadow-lg",
|
|
64
|
+
"border",
|
|
65
|
+
"border-zinc-100",
|
|
66
|
+
"animate-in",
|
|
67
|
+
"fade-in-0",
|
|
68
|
+
c
|
|
50
69
|
),
|
|
51
|
-
children: a.map(({ label: o, className: p, onClick:
|
|
70
|
+
children: a.map(({ label: o, className: p, onClick: u }) => /* @__PURE__ */ r(
|
|
52
71
|
t,
|
|
53
72
|
{
|
|
54
|
-
className:
|
|
55
|
-
"w-full
|
|
73
|
+
className: e(
|
|
74
|
+
"w-full",
|
|
75
|
+
"text-slate-800",
|
|
76
|
+
"cursor-pointer",
|
|
77
|
+
"p-0",
|
|
78
|
+
"h-9",
|
|
79
|
+
"flex",
|
|
80
|
+
"gap-2",
|
|
81
|
+
"text-sm",
|
|
82
|
+
"font-normal",
|
|
83
|
+
"justify-start",
|
|
84
|
+
"hover:bg-gray-50",
|
|
85
|
+
"hover:text-slate-800",
|
|
86
|
+
"rounded-none",
|
|
87
|
+
"px-6",
|
|
56
88
|
p
|
|
57
89
|
),
|
|
58
90
|
variant: "text",
|
|
59
91
|
asChild: !0,
|
|
60
92
|
role: "presentation",
|
|
61
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ r(t, { onClick: () => u(h.row.original), children: o })
|
|
62
94
|
},
|
|
63
95
|
o
|
|
64
96
|
))
|
|
@@ -68,5 +100,5 @@ const w = ({
|
|
|
68
100
|
)
|
|
69
101
|
] }) : null;
|
|
70
102
|
export {
|
|
71
|
-
|
|
103
|
+
b as Actions
|
|
72
104
|
};
|