@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
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx as i, Fragment as O, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { forwardRef as I } from "react";
|
|
4
|
+
import { c as x, b as M } from "./index-DKfEnhKr.js";
|
|
5
|
+
import { u } from "./index-DLcqcWxM.js";
|
|
6
|
+
import { c as A, T as L, R as $, P as F, O as B, W as G, C as W, d as j, e as Y, b as f } from "./index-CeZcoQDw.js";
|
|
7
|
+
import { Button as k } from "./components/Button/Button.js";
|
|
8
|
+
import { cn as q } from "./utils/index.js";
|
|
9
|
+
var H = /* @__PURE__ */ Symbol("radix.slottable");
|
|
10
|
+
// @__NO_SIDE_EFFECTS__
|
|
11
|
+
function V(r) {
|
|
12
|
+
const e = ({ children: o }) => /* @__PURE__ */ i(O, { children: o });
|
|
13
|
+
return e.displayName = `${r}.Slottable`, e.__radixId = H, e;
|
|
14
|
+
}
|
|
15
|
+
var v = "AlertDialog", [z, pe] = x(v, [
|
|
16
|
+
A
|
|
17
|
+
]), s = A(), m = (r) => {
|
|
18
|
+
const { __scopeAlertDialog: e, ...o } = r, t = s(e);
|
|
19
|
+
return /* @__PURE__ */ i($, { ...t, ...o, modal: !0 });
|
|
20
|
+
};
|
|
21
|
+
m.displayName = v;
|
|
22
|
+
var J = "AlertDialogTrigger", D = l.forwardRef(
|
|
23
|
+
(r, e) => {
|
|
24
|
+
const { __scopeAlertDialog: o, ...t } = r, a = s(o);
|
|
25
|
+
return /* @__PURE__ */ i(L, { ...a, ...t, ref: e });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
D.displayName = J;
|
|
29
|
+
var K = "AlertDialogPortal", _ = (r) => {
|
|
30
|
+
const { __scopeAlertDialog: e, ...o } = r, t = s(e);
|
|
31
|
+
return /* @__PURE__ */ i(F, { ...t, ...o });
|
|
32
|
+
};
|
|
33
|
+
_.displayName = K;
|
|
34
|
+
var Q = "AlertDialogOverlay", y = l.forwardRef(
|
|
35
|
+
(r, e) => {
|
|
36
|
+
const { __scopeAlertDialog: o, ...t } = r, a = s(o);
|
|
37
|
+
return /* @__PURE__ */ i(B, { ...a, ...t, ref: e });
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
y.displayName = Q;
|
|
41
|
+
var n = "AlertDialogContent", [U, X] = z(n), Z = /* @__PURE__ */ V("AlertDialogContent"), N = l.forwardRef(
|
|
42
|
+
(r, e) => {
|
|
43
|
+
const { __scopeAlertDialog: o, children: t, ...a } = r, d = s(o), p = l.useRef(null), P = u(e, p), g = l.useRef(null);
|
|
44
|
+
return /* @__PURE__ */ i(
|
|
45
|
+
G,
|
|
46
|
+
{
|
|
47
|
+
contentName: n,
|
|
48
|
+
titleName: R,
|
|
49
|
+
docsSlug: "alert-dialog",
|
|
50
|
+
children: /* @__PURE__ */ i(U, { scope: o, cancelRef: g, children: /* @__PURE__ */ w(
|
|
51
|
+
W,
|
|
52
|
+
{
|
|
53
|
+
role: "alertdialog",
|
|
54
|
+
...d,
|
|
55
|
+
...a,
|
|
56
|
+
ref: P,
|
|
57
|
+
onOpenAutoFocus: M(a.onOpenAutoFocus, (c) => {
|
|
58
|
+
c.preventDefault(), g.current?.focus({ preventScroll: !0 });
|
|
59
|
+
}),
|
|
60
|
+
onPointerDownOutside: (c) => c.preventDefault(),
|
|
61
|
+
onInteractOutside: (c) => c.preventDefault(),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ i(Z, { children: t }),
|
|
64
|
+
/* @__PURE__ */ i(re, { contentRef: p })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
) })
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
N.displayName = n;
|
|
73
|
+
var R = "AlertDialogTitle", h = l.forwardRef(
|
|
74
|
+
(r, e) => {
|
|
75
|
+
const { __scopeAlertDialog: o, ...t } = r, a = s(o);
|
|
76
|
+
return /* @__PURE__ */ i(j, { ...a, ...t, ref: e });
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
h.displayName = R;
|
|
80
|
+
var C = "AlertDialogDescription", S = l.forwardRef((r, e) => {
|
|
81
|
+
const { __scopeAlertDialog: o, ...t } = r, a = s(o);
|
|
82
|
+
return /* @__PURE__ */ i(Y, { ...a, ...t, ref: e });
|
|
83
|
+
});
|
|
84
|
+
S.displayName = C;
|
|
85
|
+
var ee = "AlertDialogAction", E = l.forwardRef(
|
|
86
|
+
(r, e) => {
|
|
87
|
+
const { __scopeAlertDialog: o, ...t } = r, a = s(o);
|
|
88
|
+
return /* @__PURE__ */ i(f, { ...a, ...t, ref: e });
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
E.displayName = ee;
|
|
92
|
+
var T = "AlertDialogCancel", b = l.forwardRef(
|
|
93
|
+
(r, e) => {
|
|
94
|
+
const { __scopeAlertDialog: o, ...t } = r, { cancelRef: a } = X(T, o), d = s(o), p = u(e, a);
|
|
95
|
+
return /* @__PURE__ */ i(f, { ...d, ...t, ref: p });
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
b.displayName = T;
|
|
99
|
+
var re = ({ contentRef: r }) => {
|
|
100
|
+
const e = `\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
101
|
+
|
|
102
|
+
You can add a description to the \`${n}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
103
|
+
|
|
104
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
105
|
+
|
|
106
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
107
|
+
return l.useEffect(() => {
|
|
108
|
+
document.getElementById(
|
|
109
|
+
r.current?.getAttribute("aria-describedby")
|
|
110
|
+
) || console.warn(e);
|
|
111
|
+
}, [e, r]), null;
|
|
112
|
+
}, de = m, oe = D, ge = _, ue = y, Ae = N, fe = E, ve = b, me = h, De = S;
|
|
113
|
+
const _e = I(({ "data-theme": r, className: e, text: o, onOpen: t }, a) => /* @__PURE__ */ i(oe, { asChild: !0, children: /* @__PURE__ */ i(
|
|
114
|
+
k,
|
|
115
|
+
{
|
|
116
|
+
ref: a,
|
|
117
|
+
type: "button",
|
|
118
|
+
"data-theme": r,
|
|
119
|
+
className: q(e),
|
|
120
|
+
onClick: t,
|
|
121
|
+
children: o
|
|
122
|
+
}
|
|
123
|
+
) }));
|
|
124
|
+
export {
|
|
125
|
+
_e as A,
|
|
126
|
+
Ae as C,
|
|
127
|
+
De as D,
|
|
128
|
+
ue as O,
|
|
129
|
+
ge as P,
|
|
130
|
+
de as R,
|
|
131
|
+
me as T,
|
|
132
|
+
ve as a,
|
|
133
|
+
fe as b
|
|
134
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { P as O,
|
|
2
|
+
import { P as O, c as Ee, b as _, a as ye, e as he } from "./index-DKfEnhKr.js";
|
|
3
3
|
import { u as F, c as Ce } from "./index-DLcqcWxM.js";
|
|
4
|
-
import { u as w } from "./index-
|
|
5
|
-
import { D as De } from "./index-
|
|
4
|
+
import { u as w } from "./index-Dy59FQl5.js";
|
|
5
|
+
import { D as De } from "./index-BlSRBdPy.js";
|
|
6
6
|
import { u as $ } from "./index-0ioNhtNM.js";
|
|
7
7
|
import { jsx as u, jsxs as j, Fragment as B } from "react/jsx-runtime";
|
|
8
|
-
import { P as be } from "./index-
|
|
9
|
-
import { P as U } from "./index-
|
|
8
|
+
import { P as be } from "./index-DMb4KD0b.js";
|
|
9
|
+
import { P as U } from "./index-AV6ZtGhy.js";
|
|
10
10
|
import { R as Re } from "./Combination-BtmnusWq.js";
|
|
11
11
|
var x = "focusScope.autoFocusOnMount", W = "focusScope.autoFocusOnUnmount", q = { bubbles: !1, cancelable: !0 }, Ae = "FocusScope", Q = i.forwardRef((e, t) => {
|
|
12
12
|
const {
|
|
@@ -222,7 +222,7 @@ function Le(e) {
|
|
|
222
222
|
});
|
|
223
223
|
return t.displayName = `${e}.SlotClone`, t;
|
|
224
224
|
}
|
|
225
|
-
var ke = Symbol("radix.slottable");
|
|
225
|
+
var ke = /* @__PURE__ */ Symbol("radix.slottable");
|
|
226
226
|
function Ue(e) {
|
|
227
227
|
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ke;
|
|
228
228
|
}
|
|
@@ -241,7 +241,7 @@ function Ge(e) {
|
|
|
241
241
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
242
242
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
243
243
|
}
|
|
244
|
-
var M = "Dialog", [te, st] =
|
|
244
|
+
var M = "Dialog", [te, st] = Ee(M), [Ve, y] = te(M), ne = (e) => {
|
|
245
245
|
const {
|
|
246
246
|
__scopeDialog: t,
|
|
247
247
|
children: n,
|
|
@@ -249,7 +249,7 @@ var M = "Dialog", [te, st] = ye(M), [Ve, y] = te(M), ne = (e) => {
|
|
|
249
249
|
defaultOpen: r,
|
|
250
250
|
onOpenChange: a,
|
|
251
251
|
modal: l = !0
|
|
252
|
-
} = e, s = i.useRef(null), m = i.useRef(null), [p, E] =
|
|
252
|
+
} = e, s = i.useRef(null), m = i.useRef(null), [p, E] = ye({
|
|
253
253
|
prop: o,
|
|
254
254
|
defaultProp: r ?? !1,
|
|
255
255
|
onChange: a,
|
|
@@ -469,11 +469,11 @@ export {
|
|
|
469
469
|
ft as O,
|
|
470
470
|
lt as P,
|
|
471
471
|
ct as R,
|
|
472
|
-
|
|
472
|
+
ut as T,
|
|
473
473
|
it as W,
|
|
474
474
|
se as a,
|
|
475
475
|
vt as b,
|
|
476
476
|
st as c,
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
pt as d,
|
|
478
|
+
mt as e
|
|
479
479
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-
|
|
1
|
+
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-CeZcoQDw.js";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { P as C } from "./index-
|
|
4
|
-
import { u as P } from "./index-
|
|
3
|
+
import { P as C } from "./index-DKfEnhKr.js";
|
|
4
|
+
import { u as P } from "./index-Dy59FQl5.js";
|
|
5
5
|
import { c as j } from "./index-DLcqcWxM.js";
|
|
6
6
|
var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
|
|
7
7
|
function ee(t, l, r, f, u, c, d) {
|
|
@@ -142,7 +142,7 @@ function $(e) {
|
|
|
142
142
|
});
|
|
143
143
|
return t.displayName = `${e}.SlotClone`, t;
|
|
144
144
|
}
|
|
145
|
-
var _ = Symbol("radix.slottable");
|
|
145
|
+
var _ = /* @__PURE__ */ Symbol("radix.slottable");
|
|
146
146
|
function O(e) {
|
|
147
147
|
return r.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === _;
|
|
148
148
|
}
|
|
@@ -182,7 +182,7 @@ var I = [
|
|
|
182
182
|
], L = I.reduce((e, t) => {
|
|
183
183
|
const n = /* @__PURE__ */ R(`Primitive.${t}`), s = r.forwardRef((o, i) => {
|
|
184
184
|
const { asChild: u, ...c } = o, l = u ? n : t;
|
|
185
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(l, { ...c, ref: i });
|
|
185
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ m(l, { ...c, ref: i });
|
|
186
186
|
});
|
|
187
187
|
return s.displayName = `Primitive.${t}`, { ...e, [t]: s };
|
|
188
188
|
}, {});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import m from "react-dom";
|
|
3
|
-
import { u as c, P as f } from "./index-
|
|
3
|
+
import { u as c, P as f } from "./index-DKfEnhKr.js";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
var u = "Portal", p = o.forwardRef((r, a) => {
|
|
6
6
|
const { container: e, ...s } = r, [n, i] = o.useState(!1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { a as ce, c as le, b as _, P as T } from "./index-
|
|
2
|
+
import { a as ce, c as le, b as _, P as T } from "./index-DKfEnhKr.js";
|
|
3
3
|
import { u as M } from "./index-DLcqcWxM.js";
|
|
4
4
|
import { u as de } from "./index-BdMNhZnh.js";
|
|
5
5
|
import { u as ue } from "./index-BZPx6jYI.js";
|
|
6
|
-
import { u as fe } from "./index-
|
|
7
|
-
import { c as me } from "./index-
|
|
6
|
+
import { u as fe } from "./index-DtEcCIrM.js";
|
|
7
|
+
import { c as me } from "./index-BG8O18ZY.js";
|
|
8
8
|
import { jsx as g, jsxs as Se } from "react/jsx-runtime";
|
|
9
9
|
function $(e, [t, n]) {
|
|
10
10
|
return Math.min(n, Math.max(t, e));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { c as K, P as C, b as I, a as L } from "./index-
|
|
3
|
-
import { c as ce } from "./index-
|
|
2
|
+
import { c as K, P as C, b as I, a as L } from "./index-DKfEnhKr.js";
|
|
3
|
+
import { c as ce } from "./index-BG8O18ZY.js";
|
|
4
4
|
import { u as ie } from "./index-DLcqcWxM.js";
|
|
5
|
-
import { u as O } from "./index-
|
|
5
|
+
import { u as O } from "./index-Dy59FQl5.js";
|
|
6
6
|
import { u as ue } from "./index-0ioNhtNM.js";
|
|
7
7
|
import { u as k } from "./index-BdMNhZnh.js";
|
|
8
8
|
import { jsx as l } from "react/jsx-runtime";
|
|
9
|
-
import { P as le } from "./index-
|
|
9
|
+
import { P as le } from "./index-AV6ZtGhy.js";
|
|
10
10
|
var N = "rovingFocusGroup.onEntryFocus", de = { bubbles: !1, cancelable: !0 }, h = "RovingFocusGroup", [D, V, fe] = ce(h), [ve, U] = K(
|
|
11
11
|
h,
|
|
12
12
|
[fe]
|
package/dist/index.d.ts
CHANGED
|
@@ -100,12 +100,13 @@ declare type BadgeProps = VariantProps<typeof badgeVariants> & {
|
|
|
100
100
|
label: string;
|
|
101
101
|
leftIcon?: ReactNode;
|
|
102
102
|
loading?: boolean;
|
|
103
|
+
isSelectable?: boolean;
|
|
103
104
|
onClick?: VoidFunction;
|
|
104
105
|
onDismiss?: VoidFunction;
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
declare const badgeVariants: (props?: ({
|
|
108
|
-
variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | null | undefined;
|
|
109
|
+
variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | "orange" | null | undefined;
|
|
109
110
|
size?: "default" | null | undefined;
|
|
110
111
|
} & ClassProp) | undefined) => string;
|
|
111
112
|
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { BadgeMultiSelect as M } from "./components/Filter/components/BadgeDropd
|
|
|
16
16
|
import { DateFilterDropdown as F } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
17
17
|
import { Input as I } from "./components/Input/Input.js";
|
|
18
18
|
import { Loading as y } from "./components/Loading/Loading.js";
|
|
19
|
-
import { M as O } from "./Modal-
|
|
19
|
+
import { M as O } from "./Modal-CjC-CIJ8.js";
|
|
20
20
|
import { MultiSelectDropdown as j } from "./components/MultiSelectDropdown/MultiSelectDropdown.js";
|
|
21
21
|
import { NumberInput as E } from "./components/NumberInput/NumberInput.js";
|
|
22
22
|
import { PhoneNumberInput as J } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
@@ -4,11 +4,11 @@ function commonjsRequire(e) {
|
|
|
4
4
|
}
|
|
5
5
|
var libphonenumber = { exports: {} }, hasRequiredLibphonenumber;
|
|
6
6
|
function requireLibphonenumber() {
|
|
7
|
-
return hasRequiredLibphonenumber || (hasRequiredLibphonenumber = 1, function(module, exports) {
|
|
7
|
+
return hasRequiredLibphonenumber || (hasRequiredLibphonenumber = 1, (function(module, exports) {
|
|
8
8
|
(function(e) {
|
|
9
9
|
module.exports = e();
|
|
10
10
|
})(function() {
|
|
11
|
-
return (/* @__PURE__ */ function() {
|
|
11
|
+
return (/* @__PURE__ */ (function() {
|
|
12
12
|
function e(t, o, r) {
|
|
13
13
|
function n(s, g) {
|
|
14
14
|
if (!o[s]) {
|
|
@@ -31,7 +31,7 @@ function requireLibphonenumber() {
|
|
|
31
31
|
return n;
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
|
-
}())({ 1: [function(require, module, exports) {
|
|
34
|
+
})())({ 1: [function(require, module, exports) {
|
|
35
35
|
(function(global) {
|
|
36
36
|
(function() {
|
|
37
37
|
var $jscomp = $jscomp || {};
|
|
@@ -67,7 +67,7 @@ function requireLibphonenumber() {
|
|
|
67
67
|
if (o && o.Math == Math) return o;
|
|
68
68
|
}
|
|
69
69
|
throw Error("Cannot find global object");
|
|
70
|
-
}, $jscomp.global = $jscomp.getGlobal(this), $jscomp.IS_SYMBOL_NATIVE = typeof Symbol == "function" && typeof Symbol("x") == "symbol", $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE, $jscomp.polyfills = {}, $jscomp.propertyToPolyfillSymbol = {}, $jscomp.POLYFILL_PREFIX = "$jscp$", $jscomp.polyfill = function(e, t, o, r) {
|
|
70
|
+
}, $jscomp.global = $jscomp.getGlobal(this), $jscomp.IS_SYMBOL_NATIVE = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol("x") == "symbol", $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE, $jscomp.polyfills = {}, $jscomp.propertyToPolyfillSymbol = {}, $jscomp.POLYFILL_PREFIX = "$jscp$", $jscomp.polyfill = function(e, t, o, r) {
|
|
71
71
|
t && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(e, t, o, r) : $jscomp.polyfillUnisolated(e, t, o, r));
|
|
72
72
|
}, $jscomp.polyfillUnisolated = function(e, t, o, r) {
|
|
73
73
|
for (o = $jscomp.global, e = e.split("."), r = 0; r < e.length - 1; r++) {
|
|
@@ -138,7 +138,7 @@ function requireLibphonenumber() {
|
|
|
138
138
|
"Symbol.iterator",
|
|
139
139
|
function(e) {
|
|
140
140
|
if (e) return e;
|
|
141
|
-
e = Symbol("Symbol.iterator");
|
|
141
|
+
e = /* @__PURE__ */ Symbol("Symbol.iterator");
|
|
142
142
|
for (var t = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), o = 0; o < t.length; o++) {
|
|
143
143
|
var r = $jscomp.global[t[o]];
|
|
144
144
|
typeof r == "function" && typeof r.prototype[e] != "function" && $jscomp.defineProperty(r.prototype, e, { configurable: !0, writable: !0, value: function() {
|
|
@@ -1195,9 +1195,9 @@ function requireLibphonenumber() {
|
|
|
1195
1195
|
return e = t ? t.createScript(e) : e, new module$contents$goog$html$SafeScript_SafeScript(e, module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
1196
1196
|
}, goog.DEBUG && (module$contents$goog$html$SafeScript_SafeScript.prototype.toString = function() {
|
|
1197
1197
|
return "SafeScript{" + this.privateDoNotAccessOrElseSafeScriptWrappedValue_ + "}";
|
|
1198
|
-
}), module$contents$goog$html$SafeScript_SafeScript.EMPTY = function() {
|
|
1198
|
+
}), module$contents$goog$html$SafeScript_SafeScript.EMPTY = (function() {
|
|
1199
1199
|
return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");
|
|
1200
|
-
}(), goog.html.SafeScript = module$contents$goog$html$SafeScript_SafeScript, goog.fs = {}, goog.fs.url = {}, goog.fs.url.createObjectUrl = function(e) {
|
|
1200
|
+
})(), goog.html.SafeScript = module$contents$goog$html$SafeScript_SafeScript, goog.fs = {}, goog.fs.url = {}, goog.fs.url.createObjectUrl = function(e) {
|
|
1201
1201
|
return goog.fs.url.getUrlObject_().createObjectURL(e);
|
|
1202
1202
|
}, goog.fs.url.revokeObjectUrl = function(e) {
|
|
1203
1203
|
goog.fs.url.getUrlObject_().revokeObjectURL(e);
|
|
@@ -1747,11 +1747,11 @@ function requireLibphonenumber() {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
return r;
|
|
1750
|
-
}, goog.html.SafeHtml.DOCTYPE_HTML = function() {
|
|
1750
|
+
}, goog.html.SafeHtml.DOCTYPE_HTML = (function() {
|
|
1751
1751
|
return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>", goog.i18n.bidi.Dir.NEUTRAL);
|
|
1752
|
-
}(), goog.html.SafeHtml.EMPTY = new goog.html.SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", goog.i18n.bidi.Dir.NEUTRAL, goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_), goog.html.SafeHtml.BR = function() {
|
|
1752
|
+
})(), goog.html.SafeHtml.EMPTY = new goog.html.SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", goog.i18n.bidi.Dir.NEUTRAL, goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_), goog.html.SafeHtml.BR = (function() {
|
|
1753
1753
|
return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>", goog.i18n.bidi.Dir.NEUTRAL);
|
|
1754
|
-
}(), goog.html.uncheckedconversions = {}, goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract = function(e, t, o) {
|
|
1754
|
+
})(), goog.html.uncheckedconversions = {}, goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract = function(e, t, o) {
|
|
1755
1755
|
return goog.asserts.assertString(goog.string.Const.unwrap(e), "must provide justification"), goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)), "must provide non-empty justification"), goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t, o || null);
|
|
1756
1756
|
}, goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract = function(e, t) {
|
|
1757
1757
|
return goog.asserts.assertString(goog.string.Const.unwrap(e), "must provide justification"), goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)), "must provide non-empty justification"), module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t);
|
|
@@ -11541,7 +11541,7 @@ function requireLibphonenumber() {
|
|
|
11541
11541
|
}).call(this, typeof commonjsGlobal < "u" ? commonjsGlobal : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
11542
11542
|
}, {}] }, {}, [1])(1);
|
|
11543
11543
|
});
|
|
11544
|
-
}(libphonenumber)), libphonenumber.exports;
|
|
11544
|
+
})(libphonenumber)), libphonenumber.exports;
|
|
11545
11545
|
}
|
|
11546
11546
|
var libphonenumberExports = /* @__PURE__ */ requireLibphonenumber();
|
|
11547
11547
|
export {
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.42",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
68
68
|
"@react-input/mask": "^2.0.4",
|
|
69
69
|
"@tanstack/react-table": "^8.21.3",
|
|
70
|
-
"@tanstack/react-virtual": "^3.13.
|
|
70
|
+
"@tanstack/react-virtual": "^3.13.17",
|
|
71
71
|
"chart.js": "^4.5.1",
|
|
72
72
|
"class-variance-authority": "^0.7.1",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"google-libphonenumber": "^3.2.43",
|
|
78
78
|
"i18n-iso-countries": "^7.14.0",
|
|
79
79
|
"js-cookie": "^3.0.5",
|
|
80
|
-
"lucide-react": "^0.
|
|
80
|
+
"lucide-react": "^0.562.0",
|
|
81
81
|
"react-chartjs-2": "^5.3.1",
|
|
82
|
-
"react-day-picker": "^9.
|
|
82
|
+
"react-day-picker": "^9.13.0",
|
|
83
83
|
"react-feather": "^2.0.10",
|
|
84
84
|
"react-focus-lock": "^2.13.7",
|
|
85
85
|
"react-remove-scroll": "^2.7.2",
|
|
@@ -118,15 +118,15 @@
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@faker-js/faker": "^10.
|
|
121
|
+
"@faker-js/faker": "^10.2.0",
|
|
122
122
|
"@rollup/plugin-alias": "^6.0.0",
|
|
123
|
-
"@storybook/addon-docs": "^10.1.
|
|
124
|
-
"@storybook/addon-links": "^10.1.
|
|
125
|
-
"@storybook/react-vite": "^10.1.
|
|
126
|
-
"@tailwindcss/vite": "^4.1.
|
|
127
|
-
"@tanstack/react-query": "^5.90.
|
|
123
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
124
|
+
"@storybook/addon-links": "^10.1.11",
|
|
125
|
+
"@storybook/react-vite": "^10.1.11",
|
|
126
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
127
|
+
"@tanstack/react-query": "^5.90.16",
|
|
128
128
|
"@testing-library/jest-dom": "^6.9.1",
|
|
129
|
-
"@testing-library/react": "^16.3.
|
|
129
|
+
"@testing-library/react": "^16.3.1",
|
|
130
130
|
"@testing-library/user-event": "^14.6.1",
|
|
131
131
|
"@types/google-libphonenumber": "^7.4.30",
|
|
132
132
|
"@types/jest-axe": "^3.5.9",
|
|
@@ -134,12 +134,12 @@
|
|
|
134
134
|
"@types/lodash": "^4.17.21",
|
|
135
135
|
"@types/react": "^19.2.7",
|
|
136
136
|
"@types/react-dom": "^19.2.3",
|
|
137
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
138
|
-
"@typescript-eslint/parser": "^8.
|
|
139
|
-
"@vitejs/plugin-react": "^5.1.
|
|
137
|
+
"@typescript-eslint/eslint-plugin": "^8.52.0",
|
|
138
|
+
"@typescript-eslint/parser": "^8.52.0",
|
|
139
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
140
140
|
"@vitest/coverage-v8": "^3.2.4",
|
|
141
|
-
"autoprefixer": "^10.4.
|
|
142
|
-
"eslint": "^9.39.
|
|
141
|
+
"autoprefixer": "^10.4.23",
|
|
142
|
+
"eslint": "^9.39.2",
|
|
143
143
|
"eslint-plugin-react": "^7.37.5",
|
|
144
144
|
"eslint-plugin-react-hooks": "^6.1.1",
|
|
145
145
|
"eslint-plugin-react-refresh": "^0.4.23",
|
|
@@ -148,16 +148,16 @@
|
|
|
148
148
|
"glob": "^13.0.0",
|
|
149
149
|
"husky": "^9.1.7",
|
|
150
150
|
"jest-axe": "^10.0.0",
|
|
151
|
-
"jsdom": "^27.
|
|
151
|
+
"jsdom": "^27.4.0",
|
|
152
152
|
"lodash": "^4.17.21",
|
|
153
153
|
"postcss": "^8.5.6",
|
|
154
|
-
"prettier": "^3.7.
|
|
154
|
+
"prettier": "^3.7.4",
|
|
155
155
|
"rimraf": "^6.1.2",
|
|
156
|
-
"storybook": "^10.1.
|
|
157
|
-
"tailwindcss": "^4.1.
|
|
156
|
+
"storybook": "^10.1.11",
|
|
157
|
+
"tailwindcss": "^4.1.18",
|
|
158
158
|
"ts-node": "^10.9.2",
|
|
159
159
|
"typescript": "^5.9.3",
|
|
160
|
-
"vite": "^7.
|
|
160
|
+
"vite": "^7.3.1",
|
|
161
161
|
"vite-plugin-dts": "^4.5.4",
|
|
162
162
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
163
163
|
"vite-plugin-svgr": "^4.5.0",
|