@konstructio/ui 0.1.2-alpha.119 → 0.1.2-alpha.120
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/Breadcrumb-DDRmDlWK.js +93 -0
- package/dist/{Checkbox-DRdyrKjk.js → Checkbox-DrounE52.js} +2 -2
- package/dist/{CollapsedSteps-CR7oCTRC.js → CollapsedSteps-DvBeYShi.js} +3 -3
- package/dist/{CommandInput-Du2o616y.js → CommandInput-_vujzQ6B.js} +2 -2
- package/dist/{Counter-DMkXIsOO.js → Counter-LQ5_uh06.js} +2 -2
- package/dist/{DayPicker-BtpJg2q3.js → DayPicker-D7KFB2bI.js} +383 -383
- package/dist/DropdownButton-BWfWN4fg.js +121 -0
- package/dist/{HamburgerTrigger-BgeS_nBA.js → HamburgerTrigger-CfrAnhmG.js} +10 -10
- package/dist/{Input-2M2I_H60.js → Input-O2bqyJKW.js} +2 -2
- package/dist/Modal-B-l4ii6w.js +84 -0
- package/dist/{Wrapper-JmStmade.js → Wrapper-B5PmrW4J.js} +3 -3
- package/dist/{Wrapper-ThpRi_Gg.js → Wrapper-CZCSSCLm.js} +2 -2
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +7 -5
- package/dist/components/CopyButton/CopyButton.variants.js +3 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +1 -1
- package/dist/components/Drawer/Drawer.js +78 -58
- package/dist/components/Drawer/Drawer.variants.js +40 -22
- package/dist/components/Drawer/components/Footer/Footer.js +5 -5
- package/dist/components/Drawer/constants/index.js +5 -4
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/DropdownButton/components/ActionSheet/ActionSheet.js +34 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/utils/index.js +2 -2
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -0
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +12 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +1 -1
- package/dist/components/Select/Select.variants.js +2 -0
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Sheet/Sheet.js +130 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +103 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +13 -13
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TextArea/TextArea.variants.js +1 -0
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +7 -7
- package/dist/components/VirtualizedTable/components/Body/Body.js +47 -44
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +68 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +38 -31
- package/dist/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.js +75 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +42 -35
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +72 -72
- package/dist/components/VirtualizedTable/components/index.js +14 -12
- package/dist/components/VirtualizedTable/constants/index.js +5 -3
- package/dist/components/VirtualizedTable/constants/responsive.js +10 -0
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +4 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +8 -4
- package/dist/components/VirtualizedTable/utils/pinned-columns/index.js +6 -0
- package/dist/components/VirtualizedTable/utils/pinned-columns/pinned-columns.js +32 -0
- package/dist/components/index.js +147 -145
- package/dist/{components-B_SWqhCL.js → components-Bq71eyUH.js} +1 -1
- package/dist/{country-locale-map-DbrJ3bEE.js → country-locale-map-BQYYErun.js} +1407 -1407
- package/dist/{debounce-dMRJxNsT.js → debounce-DhCY9mXz.js} +2 -2
- package/dist/{dist-Dg3vyTx9.js → dist-BCqfbYE9.js} +1356 -1317
- package/dist/dist-CMqY_9n-.js +445 -0
- package/dist/{es2015-B_07N-UL.js → es2015-BvX7Yq5Q.js} +2 -2
- package/dist/index.js +158 -156
- package/dist/{isSymbol-BG9higgO.js → isSymbol-CcfkyZfq.js} +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +10 -0
- package/dist/lib/components/Drawer/Drawer.variants.d.ts +1 -0
- package/dist/lib/components/Drawer/constants/index.d.ts +1 -0
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +2 -1
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +25 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.d.ts +7 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.types.d.ts +12 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -0
- package/dist/lib/components/Sheet/Sheet.d.ts +21 -0
- package/dist/lib/components/Sheet/Sheet.types.d.ts +39 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +11 -2
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/pinned-columns.d.ts +23 -0
- package/dist/lib/components/index.d.ts +3 -1
- package/dist/{libphonenumber-DtibHRPP.js → libphonenumber-BIeQOhzl.js} +196 -164
- package/dist/package.json +18 -18
- package/dist/{phone-number.provider-DnuL-yYF.js → phone-number.provider-CJeivoDY.js} +2 -2
- package/dist/{prop-types-BCUW56rg.js → prop-types-qsAjMBb1.js} +1 -1
- package/dist/{rolldown-runtime-Dw9YIBcH.js → rolldown-runtime-B28h4lGi.js} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CzfMGbe4.js → table.provider-QUo2buYX.js} +561 -523
- package/dist/{x-Vur_9PXW.js → x-BmNOD9Gr.js} +2 -2
- package/package.json +18 -18
- package/dist/Breadcrumb-CpXRb08J.js +0 -93
- package/dist/DropdownButton-JilCRLJY.js +0 -92
- package/dist/Modal-0Wp5szX4.js +0 -84
- package/dist/dist-BCoDIdCt.js +0 -429
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { o as M } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
|
+
import { t as I } from "./prop-types-qsAjMBb1.js";
|
|
3
|
+
import { t as d } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { LoaderIcon as R } from "./assets/icons/components/Loader.js";
|
|
5
|
+
import { Button as P } from "./components/Button/Button.js";
|
|
6
|
+
import { useMediaQuery as T } from "./hooks/useMediaQuery.js";
|
|
7
|
+
import { a as W, i as B, n as L, r as A, t as F } from "./dist-CMqY_9n-.js";
|
|
8
|
+
import { ActionSheet as Q } from "./components/DropdownButton/components/ActionSheet/ActionSheet.js";
|
|
9
|
+
import k, { Fragment as U, forwardRef as $, useState as q } from "react";
|
|
10
|
+
import { jsx as s, jsxs as l } from "react/jsx-runtime";
|
|
11
|
+
var m = /* @__PURE__ */ M(I());
|
|
12
|
+
function f() {
|
|
13
|
+
return f = Object.assign || function(e) {
|
|
14
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
15
|
+
var t = arguments[n];
|
|
16
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
17
|
+
}
|
|
18
|
+
return e;
|
|
19
|
+
}, f.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
function H(e, n) {
|
|
22
|
+
if (e == null) return {};
|
|
23
|
+
var t = Y(e, n), r, a;
|
|
24
|
+
if (Object.getOwnPropertySymbols) {
|
|
25
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
26
|
+
for (a = 0; a < o.length; a++)
|
|
27
|
+
r = o[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function Y(e, n) {
|
|
32
|
+
if (e == null) return {};
|
|
33
|
+
for (var t = {}, r = Object.keys(e), a, o = 0; o < r.length; o++)
|
|
34
|
+
a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
35
|
+
return t;
|
|
36
|
+
}
|
|
37
|
+
var h = $(function(e, n) {
|
|
38
|
+
var t = e.color, r = t === void 0 ? "currentColor" : t, a = e.size, o = a === void 0 ? 24 : a, p = H(e, ["color", "size"]);
|
|
39
|
+
return /* @__PURE__ */ k.createElement("svg", f({
|
|
40
|
+
ref: n,
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
width: o,
|
|
43
|
+
height: o,
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
fill: "none",
|
|
46
|
+
stroke: r,
|
|
47
|
+
strokeWidth: "2",
|
|
48
|
+
strokeLinecap: "round",
|
|
49
|
+
strokeLinejoin: "round"
|
|
50
|
+
}, p), /* @__PURE__ */ k.createElement("polyline", { points: "6 9 12 15 18 9" }));
|
|
51
|
+
});
|
|
52
|
+
h.propTypes = {
|
|
53
|
+
color: m.default.string,
|
|
54
|
+
size: m.default.oneOfType([m.default.string, m.default.number])
|
|
55
|
+
};
|
|
56
|
+
h.displayName = "ChevronDown";
|
|
57
|
+
var G = "(max-width: 767.98px), (pointer: coarse)", ne = ({ align: e = "start", appearance: n, buttonClassName: t, className: r, disabled: a = !1, isLoading: o = !1, itemClassName: p, label: O = "Download Invoice as", listClassName: j, options: b, sheetTitle: g, sheetQuery: D = G, sheetPosition: S = "bottom", theme: v, variant: _, version: E }) => {
|
|
58
|
+
const [c, w] = q(!1), N = T(D), u = g !== void 0 && N, y = a || o, x = /* @__PURE__ */ l(P, {
|
|
59
|
+
appearance: n,
|
|
60
|
+
variant: _,
|
|
61
|
+
version: E,
|
|
62
|
+
disabled: y,
|
|
63
|
+
"aria-busy": o || void 0,
|
|
64
|
+
className: d("group flex gap-2 items-center justify-between w-full", t),
|
|
65
|
+
...u ? {
|
|
66
|
+
"aria-haspopup": "dialog",
|
|
67
|
+
"aria-expanded": c,
|
|
68
|
+
onClick: () => w(!0)
|
|
69
|
+
} : {},
|
|
70
|
+
children: [O, o ? /* @__PURE__ */ s(R, {
|
|
71
|
+
size: 16,
|
|
72
|
+
className: "animate-spin shrink-0"
|
|
73
|
+
}) : /* @__PURE__ */ s(h, { className: d("transition-transform duration-200 group-data-[state=open]:rotate-180", u && c && "rotate-180") })]
|
|
74
|
+
});
|
|
75
|
+
return u ? /* @__PURE__ */ l("div", {
|
|
76
|
+
className: d("relative w-full", r),
|
|
77
|
+
children: [x, /* @__PURE__ */ s(Q, {
|
|
78
|
+
isOpen: c,
|
|
79
|
+
onClose: () => w(!1),
|
|
80
|
+
title: g,
|
|
81
|
+
options: b,
|
|
82
|
+
itemClassName: p,
|
|
83
|
+
position: S,
|
|
84
|
+
theme: v
|
|
85
|
+
})]
|
|
86
|
+
}) : /* @__PURE__ */ s(F, {
|
|
87
|
+
modal: !1,
|
|
88
|
+
children: /* @__PURE__ */ l("div", {
|
|
89
|
+
className: d("relative w-full", r),
|
|
90
|
+
"data-theme": v,
|
|
91
|
+
children: [/* @__PURE__ */ s(W, {
|
|
92
|
+
asChild: !0,
|
|
93
|
+
disabled: y,
|
|
94
|
+
children: x
|
|
95
|
+
}), /* @__PURE__ */ s(L, {
|
|
96
|
+
align: e,
|
|
97
|
+
sideOffset: 4,
|
|
98
|
+
loop: !0,
|
|
99
|
+
className: d("z-10 bg-white border border-gray-200 rounded shadow-xs animate-in fade-in-0 py-2", "dark:bg-metal-800 dark:border-metal-700 dark:text-metal-50", j),
|
|
100
|
+
style: { minWidth: "var(--radix-dropdown-menu-trigger-width)" },
|
|
101
|
+
children: b.map((i, z) => {
|
|
102
|
+
const C = i.disabled || !!i.disabledReason;
|
|
103
|
+
return /* @__PURE__ */ l(U, { children: [i.separator && /* @__PURE__ */ s(B, { className: "my-2 border-t border-gray-200 dark:border-metal-700" }), /* @__PURE__ */ l(A, {
|
|
104
|
+
disabled: C,
|
|
105
|
+
className: d("flex items-center justify-between gap-4 whitespace-nowrap outline-none px-6 py-1.5", "hover:bg-gray-50 focus:bg-gray-50 hover:cursor-pointer", "dark:text-metal-50 dark:hover:bg-metal-700 dark:focus:bg-metal-700", "data-[disabled]:cursor-not-allowed data-[disabled]:text-gray-400 data-[disabled]:hover:bg-transparent", "dark:data-[disabled]:text-metal-400", i.destructive && "text-red-600 dark:text-red-400", p),
|
|
106
|
+
onSelect: () => {
|
|
107
|
+
i.onClick?.();
|
|
108
|
+
},
|
|
109
|
+
children: [/* @__PURE__ */ s("span", { children: i.label }), i.disabledReason && /* @__PURE__ */ s("span", {
|
|
110
|
+
className: "shrink-0 text-xs text-gray-400 dark:text-metal-400",
|
|
111
|
+
children: i.disabledReason
|
|
112
|
+
})]
|
|
113
|
+
})] }, z);
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
ne as t
|
|
121
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { o as m } from "./rolldown-runtime-
|
|
2
|
-
import { t as c } from "./prop-types-
|
|
1
|
+
import { o as m } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
|
+
import { t as c } from "./prop-types-qsAjMBb1.js";
|
|
3
3
|
import { t as g } from "./dist-C_jtUTU9.js";
|
|
4
4
|
import { t as d } from "./utils-DnIJruo0.js";
|
|
5
5
|
import { hamburgerTriggerVariants as y } from "./components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js";
|
|
6
6
|
import a, { forwardRef as v } from "react";
|
|
7
7
|
import { jsx as u, jsxs as b } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
return
|
|
8
|
+
var l = /* @__PURE__ */ m(c());
|
|
9
|
+
function s() {
|
|
10
|
+
return s = Object.assign || function(r) {
|
|
11
11
|
for (var n = 1; n < arguments.length; n++) {
|
|
12
12
|
var t = arguments[n];
|
|
13
13
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
14
14
|
}
|
|
15
15
|
return r;
|
|
16
|
-
},
|
|
16
|
+
}, s.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
function h(r, n) {
|
|
19
19
|
if (r == null) return {};
|
|
@@ -33,7 +33,7 @@ function x(r, n) {
|
|
|
33
33
|
}
|
|
34
34
|
var p = v(function(r, n) {
|
|
35
35
|
var t = r.color, e = t === void 0 ? "currentColor" : t, o = r.size, i = o === void 0 ? 24 : o, f = h(r, ["color", "size"]);
|
|
36
|
-
return /* @__PURE__ */ a.createElement("svg",
|
|
36
|
+
return /* @__PURE__ */ a.createElement("svg", s({
|
|
37
37
|
ref: n,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
width: i,
|
|
@@ -62,15 +62,15 @@ var p = v(function(r, n) {
|
|
|
62
62
|
}));
|
|
63
63
|
});
|
|
64
64
|
p.propTypes = {
|
|
65
|
-
color:
|
|
66
|
-
size:
|
|
65
|
+
color: l.default.string,
|
|
66
|
+
size: l.default.oneOfType([l.default.string, l.default.number])
|
|
67
67
|
};
|
|
68
68
|
p.displayName = "Menu";
|
|
69
69
|
var O = ({ isOpen: r, onClick: n, className: t, openNavigationLabel: e = "Open navigation" }) => /* @__PURE__ */ b("button", {
|
|
70
70
|
type: "button",
|
|
71
71
|
"aria-label": e,
|
|
72
72
|
"aria-expanded": r,
|
|
73
|
-
"aria-haspopup": "
|
|
73
|
+
"aria-haspopup": "dialog",
|
|
74
74
|
className: d(y({ className: t })),
|
|
75
75
|
onClick: n,
|
|
76
76
|
children: [/* @__PURE__ */ u(p, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as R } from "./rolldown-runtime-
|
|
2
|
-
import { t as q } from "./prop-types-
|
|
1
|
+
import { o as R } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
|
+
import { t as q } from "./prop-types-qsAjMBb1.js";
|
|
3
3
|
import { n as D, t as l } from "./utils-DnIJruo0.js";
|
|
4
4
|
import { SearchIcon as F } from "./assets/icons/components/Search.js";
|
|
5
5
|
import { WarningIcon as K } from "./assets/icons/components/Warning.js";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { t as A } from "./x-BmNOD9Gr.js";
|
|
2
|
+
import { t as H } from "./dist-C_jtUTU9.js";
|
|
3
|
+
import { t as h } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { t as B } from "./Combination-CnMM05mt.js";
|
|
5
|
+
import { Body as C } from "./components/Modal/components/Body/Body.js";
|
|
6
|
+
import { Footer as E } from "./components/Modal/components/Footer/Footer.js";
|
|
7
|
+
import { Header as R } from "./components/Modal/components/Header/Header.js";
|
|
8
|
+
import { t as V } from "./es2015-BvX7Yq5Q.js";
|
|
9
|
+
import { buttonCloseVariants as j, modalVariants as D } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
10
|
+
import { Children as m, isValidElement as l, useEffect as g, useRef as S, useState as z } from "react";
|
|
11
|
+
import { createPortal as I } from "react-dom";
|
|
12
|
+
import { Fragment as K, jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
13
|
+
import { motion as L } from "motion/react";
|
|
14
|
+
var M = ({ animateResize: f = !1, ariaLabel: n, ariaLabelledBy: i, autoFocus: s = !0, closeOnOverlayClick: u = !0, buttonCloseClassName: d, children: a, className: p, containerClassName: r, showCloseButton: y = !0, theme: b, transition: F, onClose: v }) => {
|
|
15
|
+
const N = m.toArray(a).find((e) => l(e) && e.type === t.Header), k = m.toArray(a).find((e) => l(e) && e.type === t.Body), w = m.toArray(a).find((e) => l(e) && e.type === t.Footer), x = m.toArray(a).filter((e) => !l(e) || ![
|
|
16
|
+
t.Header,
|
|
17
|
+
t.Body,
|
|
18
|
+
t.Footer
|
|
19
|
+
].includes(e.type));
|
|
20
|
+
return /* @__PURE__ */ o(B, { children: /* @__PURE__ */ c("div", {
|
|
21
|
+
className: h("fixed inset-0 grid grid-cols-[minmax(0,calc(100%-2rem))] place-content-center justify-items-center", r),
|
|
22
|
+
"data-theme": b,
|
|
23
|
+
children: [/* @__PURE__ */ o("div", {
|
|
24
|
+
className: "absolute inset-0 bg-black opacity-70 dark:opacity-85 animate-in fade-in-0",
|
|
25
|
+
onClick: u ? v : void 0,
|
|
26
|
+
role: "presentation"
|
|
27
|
+
}), /* @__PURE__ */ o(V, {
|
|
28
|
+
returnFocus: !0,
|
|
29
|
+
autoFocus: s,
|
|
30
|
+
className: "contents",
|
|
31
|
+
children: /* @__PURE__ */ c(L.div, {
|
|
32
|
+
className: h(D({ className: p })),
|
|
33
|
+
role: "dialog",
|
|
34
|
+
"aria-modal": "true",
|
|
35
|
+
"aria-label": n,
|
|
36
|
+
"aria-labelledby": i,
|
|
37
|
+
layout: f ? "size" : void 0,
|
|
38
|
+
transition: F ?? {
|
|
39
|
+
duration: 0.25,
|
|
40
|
+
ease: "easeInOut"
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
N,
|
|
44
|
+
y && /* @__PURE__ */ c("button", {
|
|
45
|
+
className: h(j({ className: d })),
|
|
46
|
+
onClick: v,
|
|
47
|
+
children: [/* @__PURE__ */ o(A, {}), /* @__PURE__ */ o(H, { children: "Dismiss modal" })]
|
|
48
|
+
}),
|
|
49
|
+
k ?? x,
|
|
50
|
+
w
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
})]
|
|
54
|
+
}) });
|
|
55
|
+
}, t = ({ isOpen: f, onClose: n, container: i, theme: s, ...u }) => {
|
|
56
|
+
const d = S(null), [a, p] = z(null);
|
|
57
|
+
return g(() => {
|
|
58
|
+
if (!d.current || s || i) return;
|
|
59
|
+
const r = d.current.closest("[data-theme]");
|
|
60
|
+
r && p(r);
|
|
61
|
+
}, [s, i]), g(() => {
|
|
62
|
+
const r = new AbortController(), y = (b) => {
|
|
63
|
+
b.code === "Escape" && n?.();
|
|
64
|
+
};
|
|
65
|
+
return window.addEventListener("keydown", y, { signal: r.signal }), () => {
|
|
66
|
+
r.abort();
|
|
67
|
+
};
|
|
68
|
+
}, [n]), /* @__PURE__ */ c(K, { children: [/* @__PURE__ */ o("span", {
|
|
69
|
+
ref: d,
|
|
70
|
+
"data-testid": "modal-anchor",
|
|
71
|
+
hidden: !0
|
|
72
|
+
}), f && I(/* @__PURE__ */ o(M, {
|
|
73
|
+
...u,
|
|
74
|
+
theme: s,
|
|
75
|
+
onClose: n
|
|
76
|
+
}), i || a || document.body)] });
|
|
77
|
+
};
|
|
78
|
+
t.Header = R;
|
|
79
|
+
t.Body = C;
|
|
80
|
+
t.Footer = E;
|
|
81
|
+
export {
|
|
82
|
+
M as n,
|
|
83
|
+
t
|
|
84
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as k } from "./rolldown-runtime-
|
|
2
|
-
import { t as _ } from "./prop-types-
|
|
3
|
-
import { t as T } from "./x-
|
|
1
|
+
import { o as k } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
|
+
import { t as _ } from "./prop-types-qsAjMBb1.js";
|
|
3
|
+
import { t as T } from "./x-BmNOD9Gr.js";
|
|
4
4
|
import { t as l } from "./utils-DnIJruo0.js";
|
|
5
5
|
import { Tag as S } from "./components/Tag/Tag.js";
|
|
6
6
|
import { useTagSelect as C } from "./components/TagSelect/contexts/TagSelect.hook.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as Ne } from "./rolldown-runtime-
|
|
1
|
+
import { o as Ne } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
2
|
import { n as Be, t as X } from "./utils-DnIJruo0.js";
|
|
3
3
|
import { useClickOutside as Re } from "./hooks/useClickOutside.js";
|
|
4
4
|
import { Typography as ee } from "./components/Typography/Typography.js";
|
|
5
5
|
import { labelVariants as Ge, phoneNumberInputVariants as Le } from "./components/PhoneNumberInput/PhoneNumberInput.variants.js";
|
|
6
6
|
import { getPhoneMask as xe } from "./components/PhoneNumberInput/utils/index.js";
|
|
7
|
-
import { n as Ve } from "./phone-number.provider-
|
|
7
|
+
import { n as Ve } from "./phone-number.provider-CJeivoDY.js";
|
|
8
8
|
import { usePhoneNumberContext as Ke } from "./components/PhoneNumberInput/contexts/phone-number.hook.js";
|
|
9
9
|
import { FlagContent as De } from "./components/PhoneNumberInput/components/FlagContent/FlagContent.js";
|
|
10
10
|
import { FlagSelectorWrapper as Fe } from "./components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as v } from "../../x-
|
|
2
|
+
import { t as v } from "../../x-BmNOD9Gr.js";
|
|
3
3
|
import { t as I } from "../../dist-C_jtUTU9.js";
|
|
4
4
|
import { t } from "../../utils-DnIJruo0.js";
|
|
5
5
|
import { CheckCircleFilledIcon as N } from "../../assets/icons/components/CheckCircleFilled.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../x-
|
|
1
|
+
import { t as r } from "../../../x-BmNOD9Gr.js";
|
|
2
2
|
import { t as d } from "../../../utils-DnIJruo0.js";
|
|
3
3
|
import { n as l, o as m, r as o } from "../../../dist-BqDJX7m1.js";
|
|
4
4
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../CommandInput-
|
|
1
|
+
import { t as o } from "../../../CommandInput-_vujzQ6B.js";
|
|
2
2
|
import { CommandEmpty as t } from "./CommandEmpty.js";
|
|
3
3
|
import { CommandGroup as a } from "./CommandGroup.js";
|
|
4
4
|
import { CommandItem as n } from "./CommandItem.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as K } from "../../Input-
|
|
1
|
+
import { t as K } from "../../Input-O2bqyJKW.js";
|
|
2
2
|
import { t as g } from "../../utils-DnIJruo0.js";
|
|
3
3
|
import { WarningIcon as T } from "../../assets/icons/components/Warning.js";
|
|
4
4
|
import { Button as C } from "../Button/Button.js";
|
|
5
5
|
import { Typography as d } from "../Typography/Typography.js";
|
|
6
6
|
import { CopyButton as V } from "../CopyButton/CopyButton.js";
|
|
7
|
-
import { t as l } from "../../Modal-
|
|
7
|
+
import { t as l } from "../../Modal-B-l4ii6w.js";
|
|
8
8
|
import { useEffect as W, useId as A, useState as G } from "react";
|
|
9
9
|
import { Fragment as J, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
10
|
-
var L = ({ autoFocus:
|
|
10
|
+
var L = ({ autoFocus: v, cancelLabel: N = "Cancel", children: k, className: I, confirmationInputClassName: w, confirmationInputLabel: B, confirmationPrompt: j, confirmationText: a, confirmLabel: n = "Confirm", containerClassName: D, copyLabel: F = "Copy", description: i, icon: c, isOpen: o, isPending: t = !1, pendingLabel: S, theme: $, title: M, variant: f = "danger", onClose: q, onConfirm: z }) => {
|
|
11
11
|
const s = A(), p = `${s}-title`, [u, h] = G(""), x = !!a, y = !x || u === a;
|
|
12
12
|
W(() => {
|
|
13
13
|
o && h("");
|
|
@@ -24,8 +24,9 @@ var L = ({ autoFocus: N, cancelLabel: v = "Cancel", children: k, className: I, c
|
|
|
24
24
|
return /* @__PURE__ */ e(l, {
|
|
25
25
|
isOpen: o,
|
|
26
26
|
theme: $,
|
|
27
|
-
autoFocus:
|
|
27
|
+
autoFocus: v,
|
|
28
28
|
showCloseButton: !1,
|
|
29
|
+
closeOnOverlayClick: !1,
|
|
29
30
|
ariaLabelledBy: p,
|
|
30
31
|
containerClassName: D,
|
|
31
32
|
className: g("max-w-125 min-h-0 min-w-0 gap-0 p-6", I),
|
|
@@ -91,8 +92,9 @@ var L = ({ autoFocus: N, cancelLabel: v = "Cancel", children: k, className: I, c
|
|
|
91
92
|
type: "button",
|
|
92
93
|
variant: "secondary",
|
|
93
94
|
disabled: t,
|
|
95
|
+
"data-autofocus": !0,
|
|
94
96
|
onClick: b,
|
|
95
|
-
children:
|
|
97
|
+
children: N
|
|
96
98
|
}), /* @__PURE__ */ e(C, {
|
|
97
99
|
type: "submit",
|
|
98
100
|
form: s,
|
|
@@ -11,7 +11,9 @@ var i = e([
|
|
|
11
11
|
"focus-visible:ring-1",
|
|
12
12
|
"focus-visible:ring-ring",
|
|
13
13
|
"disabled:pointer-events-none",
|
|
14
|
-
"disabled:opacity-45"
|
|
14
|
+
"disabled:opacity-45",
|
|
15
|
+
"pointer-coarse:min-h-11",
|
|
16
|
+
"pointer-coarse:min-w-11"
|
|
15
17
|
], {
|
|
16
18
|
variants: { iconOnly: {
|
|
17
19
|
true: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as n } from "../../../../../../../../constants-q2QnJrOb.js";
|
|
2
|
-
import { t as d } from "../../../../../../../../DayPicker-
|
|
2
|
+
import { t as d } from "../../../../../../../../DayPicker-D7KFB2bI.js";
|
|
3
3
|
import { useMemo as c } from "react";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
var f = ({ month: r, range: e, onRangeSelect: o, disabled: t, disabledMatcher: m, showOutsideDays: s, classNames: a }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as F } from "../../../../../../Input-
|
|
1
|
+
import { t as F } from "../../../../../../Input-O2bqyJKW.js";
|
|
2
2
|
import { t as e } from "../../../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { Typography as p } from "../../../../../Typography/Typography.js";
|
|
4
4
|
import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as F } from "../../../../../../Input-
|
|
1
|
+
import { t as F } from "../../../../../../Input-O2bqyJKW.js";
|
|
2
2
|
import { t } from "../../../../../../utils-DnIJruo0.js";
|
|
3
3
|
import { Typography as p } from "../../../../../Typography/Typography.js";
|
|
4
4
|
import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
|
|
@@ -3,7 +3,7 @@ import { t as h } from "../../../../chevron-left-B1zWfqll.js";
|
|
|
3
3
|
import { t as f } from "../../../../chevron-right-D4OkgIIT.js";
|
|
4
4
|
import { datePickerVariants as p } from "../../DatePicker.variants.js";
|
|
5
5
|
import '../../../../style.css';/* empty css */
|
|
6
|
-
import { t as k } from "../../../../DayPicker-
|
|
6
|
+
import { t as k } from "../../../../DayPicker-D7KFB2bI.js";
|
|
7
7
|
import { useState as g } from "react";
|
|
8
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
9
9
|
var w = ({ className: o, showOutsideDays: l = !0, animate: n = !0, arrowClassName: d, monthsClassName: s, defaultSelected: i, onSelect: m, ...u }) => {
|
|
@@ -1,83 +1,103 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t } from "../../utils-DnIJruo0.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { DrawerContext as
|
|
8
|
-
import { Header as
|
|
9
|
-
import { Body as
|
|
10
|
-
import { Footer as
|
|
11
|
-
import { buttonCloseVariants as
|
|
2
|
+
import { t as Y } from "../../x-BmNOD9Gr.js";
|
|
3
|
+
import { t as _ } from "../../dist-C_jtUTU9.js";
|
|
4
|
+
import { t as o } from "../../utils-DnIJruo0.js";
|
|
5
|
+
import { t as j } from "../../Combination-CnMM05mt.js";
|
|
6
|
+
import { t as k } from "../../es2015-BvX7Yq5Q.js";
|
|
7
|
+
import { DrawerContext as A } from "./contexts/Drawer.context.js";
|
|
8
|
+
import { Header as K } from "./components/Header/Header.js";
|
|
9
|
+
import { Body as L } from "./components/Body/Body.js";
|
|
10
|
+
import { Footer as O } from "./components/Footer/Footer.js";
|
|
11
|
+
import { buttonCloseVariants as U, drawerVariants as W, overlayVariants as q, resizeHandleVariants as G } from "./Drawer.variants.js";
|
|
12
12
|
import "./constants/index.js";
|
|
13
|
-
import { useDrawer as
|
|
14
|
-
import { useId as
|
|
15
|
-
import { createPortal as
|
|
16
|
-
import { jsx as e, jsxs as
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
import { useDrawer as J } from "./hooks/useDrawer.js";
|
|
14
|
+
import { useId as N, useMemo as Q, useRef as Z } from "react";
|
|
15
|
+
import { createPortal as $ } from "react-dom";
|
|
16
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
17
|
+
var f = ({ canResize: i = !1, children: y, className: w, classNames: t, container: b, defaultWidth: h = 500, isOpen: x, maxWidth: v, minWidth: D, position: n = "right", showCloseButton: H = !0, closeOnSwipe: T = !0, fullScreenOnMobile: V = !0, initialFocus: S = "first", theme: E, onClose: a }) => {
|
|
18
|
+
const l = N(), c = Z(null), I = (d) => {
|
|
19
|
+
const r = d.touches?.[0];
|
|
20
|
+
c.current = r ? {
|
|
21
|
+
x: r.clientX,
|
|
22
|
+
y: r.clientY
|
|
23
|
+
} : null;
|
|
24
|
+
}, M = (d) => {
|
|
25
|
+
const r = c.current, s = d.changedTouches?.[0];
|
|
26
|
+
if (c.current = null, !T || !r || !s) return;
|
|
27
|
+
const u = s.clientX - r.x, P = s.clientY - r.y;
|
|
28
|
+
(n === "left" ? u <= -60 : u >= 60) && Math.abs(u) > Math.abs(P) && a?.();
|
|
29
|
+
}, { handleKeyDown: g, handleMouseDown: F, isAnimating: p, isVisible: R, translateClass: X, width: z } = J({
|
|
30
|
+
canResize: i,
|
|
31
|
+
defaultWidth: h,
|
|
32
|
+
isOpen: x,
|
|
33
|
+
maxWidth: v,
|
|
34
|
+
minWidth: D,
|
|
35
|
+
position: n,
|
|
36
|
+
onClose: a
|
|
37
|
+
}), B = Q(() => ({
|
|
38
|
+
classNames: t,
|
|
39
|
+
headerId: l
|
|
40
|
+
}), [t, l]);
|
|
41
|
+
if (!R) return null;
|
|
42
|
+
const C = /* @__PURE__ */ e(A.Provider, {
|
|
43
|
+
value: B,
|
|
44
|
+
children: /* @__PURE__ */ e(j, { children: /* @__PURE__ */ m("div", {
|
|
45
|
+
className: o("fixed inset-0 z-40", t?.root),
|
|
46
|
+
"data-theme": E,
|
|
36
47
|
children: [/* @__PURE__ */ e("div", {
|
|
37
|
-
className:
|
|
38
|
-
"opacity-
|
|
39
|
-
"opacity-0": !
|
|
40
|
-
},
|
|
48
|
+
className: o(q(), {
|
|
49
|
+
"opacity-55": p,
|
|
50
|
+
"opacity-0": !p
|
|
51
|
+
}, t?.overlay),
|
|
41
52
|
"aria-hidden": "true",
|
|
42
|
-
onClick:
|
|
53
|
+
onClick: a,
|
|
43
54
|
role: "presentation"
|
|
44
|
-
}), /* @__PURE__ */ e(
|
|
55
|
+
}), /* @__PURE__ */ e(k, {
|
|
45
56
|
returnFocus: !0,
|
|
46
57
|
className: "contents",
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
className:
|
|
49
|
-
|
|
58
|
+
children: /* @__PURE__ */ m("div", {
|
|
59
|
+
className: o(W({
|
|
60
|
+
position: n,
|
|
61
|
+
fullScreenOnMobile: V
|
|
62
|
+
}), X, t?.panel, w),
|
|
63
|
+
style: { width: i ? z : h },
|
|
64
|
+
onTouchStart: I,
|
|
65
|
+
onTouchEnd: M,
|
|
50
66
|
role: "dialog",
|
|
51
67
|
"aria-modal": "true",
|
|
52
|
-
"aria-labelledby":
|
|
68
|
+
"aria-labelledby": l,
|
|
69
|
+
...S === "panel" ? {
|
|
70
|
+
tabIndex: -1,
|
|
71
|
+
"data-autofocus": !0
|
|
72
|
+
} : {},
|
|
53
73
|
children: [
|
|
54
|
-
|
|
74
|
+
i && /* @__PURE__ */ e("button", {
|
|
55
75
|
type: "button",
|
|
56
76
|
"aria-label": "Resize drawer",
|
|
57
|
-
className:
|
|
58
|
-
onMouseDown:
|
|
59
|
-
onKeyDown:
|
|
77
|
+
className: o(G({ position: n }), t?.resizeHandle),
|
|
78
|
+
onMouseDown: F,
|
|
79
|
+
onKeyDown: g
|
|
60
80
|
}),
|
|
61
|
-
|
|
62
|
-
className:
|
|
63
|
-
onClick:
|
|
81
|
+
H && /* @__PURE__ */ m("button", {
|
|
82
|
+
className: o(U(), t?.closeButton),
|
|
83
|
+
onClick: a,
|
|
64
84
|
type: "button",
|
|
65
|
-
children: [/* @__PURE__ */ e(
|
|
85
|
+
children: [/* @__PURE__ */ e(Y, { size: 20 }), /* @__PURE__ */ e(_, { children: "Dismiss drawer" })]
|
|
66
86
|
}),
|
|
67
87
|
/* @__PURE__ */ e("div", {
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
88
|
+
className: o("flex flex-1 flex-col h-full overflow-hidden", t?.content),
|
|
89
|
+
children: y
|
|
70
90
|
})
|
|
71
91
|
]
|
|
72
92
|
})
|
|
73
93
|
})]
|
|
74
94
|
}) })
|
|
75
95
|
});
|
|
76
|
-
return
|
|
96
|
+
return $(C, b || document.body);
|
|
77
97
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
98
|
+
f.Header = K;
|
|
99
|
+
f.Body = L;
|
|
100
|
+
f.Footer = O;
|
|
81
101
|
export {
|
|
82
|
-
|
|
102
|
+
f as Drawer
|
|
83
103
|
};
|