@reapit/elements 5.0.0-beta.67 → 5.0.0-beta.68
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/js/{anchor-positioning-CmSZkNof.cjs → anchor-positioning-B-1bVP2v.cjs} +7 -7
- package/dist/js/{anchor-positioning-B3GGsbFM.js → anchor-positioning-mAfJClCi.js} +39 -36
- package/dist/js/{app-switcher-DNyr8R9j.js → app-switcher-B3Gme35H.js} +3 -3
- package/dist/js/{app-switcher-Da0jpH_0.cjs → app-switcher-alq1ioRt.cjs} +1 -1
- package/dist/js/{at-a-glance-N68VKcxo.cjs → at-a-glance-Bowg_R7J.cjs} +1 -1
- package/dist/js/{at-a-glance-B0WukTyX.js → at-a-glance-Bvs_m_s8.js} +1 -1
- package/dist/js/{autocomplete-Cbhl4kCC.cjs → autocomplete-BXNYfkuS.cjs} +1 -1
- package/dist/js/{autocomplete-Cjqj5b4A.js → autocomplete-BY50e2OI.js} +2 -2
- package/dist/js/{autocomplete-control-B1yvpZcw.cjs → autocomplete-control-7AtK271I.cjs} +1 -1
- package/dist/js/{autocomplete-control-tyu0N1_5.js → autocomplete-control-D3qPiyZB.js} +1 -1
- package/dist/js/{badge-C9eQWVc1.cjs → badge-BvLnt-2S.cjs} +1 -1
- package/dist/js/{badge-BH7WvutW.js → badge-C_Za5PMD.js} +1 -1
- package/dist/js/{bottom-bar-CiDA0QAt.js → bottom-bar-DIdKkbsi.js} +1 -1
- package/dist/js/{bottom-bar-y_VAqgE3.cjs → bottom-bar-DeODIkXt.cjs} +1 -1
- package/dist/js/{combobox-BMcjE-Hz.js → combobox-1az8akBD.js} +43 -45
- package/dist/js/combobox-DEZrdZM-.cjs +1 -0
- package/dist/js/{compact-select-CGGyCX2N.cjs → compact-select-BAqO95r3.cjs} +1 -1
- package/dist/js/{compact-select-B-fRAGbk.js → compact-select-Cj_eJ_Gk.js} +3 -3
- package/dist/js/core/app-switcher.cjs +1 -1
- package/dist/js/core/app-switcher.js +1 -1
- package/dist/js/core/at-a-glance.cjs +1 -1
- package/dist/js/core/at-a-glance.js +1 -1
- package/dist/js/core/autocomplete-control.cjs +1 -1
- package/dist/js/core/autocomplete-control.js +1 -1
- package/dist/js/core/autocomplete.cjs +1 -1
- package/dist/js/core/autocomplete.js +1 -1
- package/dist/js/core/badge.cjs +1 -1
- package/dist/js/core/badge.js +1 -1
- package/dist/js/core/bottom-bar.cjs +1 -1
- package/dist/js/core/bottom-bar.js +1 -1
- package/dist/js/core/combobox.cjs +1 -1
- package/dist/js/core/combobox.js +30 -31
- package/dist/js/core/compact-select.cjs +1 -1
- package/dist/js/core/compact-select.js +1 -1
- package/dist/js/core/dialog.cjs +1 -1
- package/dist/js/core/dialog.js +3 -3
- package/dist/js/core/drawer.cjs +1 -1
- package/dist/js/core/drawer.js +12 -12
- package/dist/js/core/features.cjs +1 -1
- package/dist/js/core/features.js +1 -1
- package/dist/js/core/menu.cjs +1 -1
- package/dist/js/core/menu.js +1 -1
- package/dist/js/core/office-switcher.cjs +1 -1
- package/dist/js/core/office-switcher.js +128 -34
- package/dist/js/core/section-message.cjs +1 -1
- package/dist/js/core/section-message.js +1 -1
- package/dist/js/core/select-control.cjs +1 -1
- package/dist/js/core/select-control.js +1 -1
- package/dist/js/core/select.cjs +1 -1
- package/dist/js/core/select.js +1 -1
- package/dist/js/core/side-bar.cjs +1 -1
- package/dist/js/core/side-bar.js +1 -1
- package/dist/js/core/split-button.cjs +1 -1
- package/dist/js/core/split-button.js +1 -1
- package/dist/js/core/table.cjs +1 -1
- package/dist/js/core/table.js +1 -1
- package/dist/js/core/tooltip.cjs +1 -1
- package/dist/js/core/tooltip.js +1 -1
- package/dist/js/core/top-bar.cjs +1 -1
- package/dist/js/core/top-bar.js +1 -1
- package/dist/js/dialog-X9q5RTrQ.js +121 -0
- package/dist/js/dialog-j6m9UOwL.cjs +1 -0
- package/dist/js/drawer-DeMe2YSy.cjs +1 -0
- package/dist/js/drawer-n8sZIGeL.js +202 -0
- package/dist/js/{features-xa9s_F2X.cjs → features-DDWY0bS-.cjs} +1 -1
- package/dist/js/{features-DPy7FK5b.js → features-xSaxyxVa.js} +1 -1
- package/dist/js/index.cjs +1 -1
- package/dist/js/index.js +473 -472
- package/dist/js/lab/select-custom.cjs +1 -1
- package/dist/js/lab/select-custom.js +2 -2
- package/dist/js/{line-clamp-CcqDlxOD.js → line-clamp-B8Z8vzU2.js} +1 -1
- package/dist/js/{line-clamp-BHxcW-g_.cjs → line-clamp-xEX76LvR.cjs} +1 -1
- package/dist/js/{listbox-DaqNCLTr.js → listbox-LxpZYH0B.js} +7 -7
- package/dist/js/listbox-uSbN6RQG.cjs +1 -0
- package/dist/js/{menu-BB1lyDsI.cjs → menu-C5zczNsx.cjs} +1 -1
- package/dist/js/{menu-DUQjcwNM.js → menu-CP0Bep1V.js} +1 -1
- package/dist/js/popover-Xyg0sgru.cjs +1 -0
- package/dist/js/{popover-BWnbK_dO.js → popover-dzUc2bK7.js} +21 -19
- package/dist/js/{section-message-79DbPIVf.cjs → section-message-Bn33yi2F.cjs} +1 -1
- package/dist/js/{section-message-DhkYCDQk.js → section-message-CEzwuyor.js} +1 -1
- package/dist/js/{select-C9m1ujim.js → select-BUeFgouh.js} +2 -2
- package/dist/js/{select-C8XEaJmE.cjs → select-BlpaGf5-.cjs} +1 -1
- package/dist/js/{select-control-CNKEx3wt.js → select-control-BlU3KNOJ.js} +3 -3
- package/dist/js/{select-control-C5inPWYx.cjs → select-control-DlaKfZ3x.cjs} +1 -1
- package/dist/js/{side-bar-q0Dapddc.cjs → side-bar-BkE4eONG.cjs} +1 -1
- package/dist/js/{side-bar-CsPEFLGc.js → side-bar-D6aRZHCV.js} +1 -1
- package/dist/js/{split-button-GzVuhKx-.cjs → split-button-Bnyv8DHF.cjs} +1 -1
- package/dist/js/{split-button-DHHUZ-41.js → split-button-CrofNP3Q.js} +1 -1
- package/dist/js/style.css +1 -1
- package/dist/js/{table-BVLzp-xe.js → table-2CxL0Pev.js} +1 -1
- package/dist/js/{table-skEBWgL8.cjs → table-WHyA-HQG.cjs} +1 -1
- package/dist/js/{tooltip-9vKZqx5w.cjs → tooltip-BU8hYqZ9.cjs} +1 -1
- package/dist/js/{tooltip-C2y49rDB.js → tooltip-Bj7DqYdo.js} +1 -1
- package/dist/js/{top-bar-BnR_HVWD.js → top-bar-BvxpBZri.js} +2 -2
- package/dist/js/{top-bar-CXJfqax_.cjs → top-bar-CjUR7fhL.cjs} +1 -1
- package/dist/js/utils/anchor-positioning.cjs +1 -1
- package/dist/js/utils/anchor-positioning.js +1 -1
- package/dist/js/utils/dialog.cjs +1 -0
- package/dist/js/utils/dialog.js +9 -0
- package/dist/js/utils/line-clamp.cjs +1 -1
- package/dist/js/utils/line-clamp.js +1 -1
- package/dist/js/utils/listbox.cjs +1 -1
- package/dist/js/utils/listbox.js +1 -1
- package/dist/js/utils/popover.cjs +1 -1
- package/dist/js/utils/popover.js +2 -2
- package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts +0 -15
- package/dist/types/core/combobox/popup-dialog/event-handlers.d.ts.map +1 -1
- package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts.map +1 -1
- package/dist/types/core/dialog/dialog.d.ts +13 -18
- package/dist/types/core/dialog/dialog.d.ts.map +1 -1
- package/dist/types/core/dialog/dialog.stories.d.ts +25 -0
- package/dist/types/core/dialog/dialog.stories.d.ts.map +1 -1
- package/dist/types/core/dialog/styles.d.ts +1 -6
- package/dist/types/core/dialog/styles.d.ts.map +1 -1
- package/dist/types/core/drawer/drawer.d.ts +13 -18
- package/dist/types/core/drawer/drawer.d.ts.map +1 -1
- package/dist/types/core/drawer/drawer.stories.d.ts +25 -0
- package/dist/types/core/drawer/drawer.stories.d.ts.map +1 -1
- package/dist/types/core/drawer/styles.d.ts +1 -1
- package/dist/types/core/drawer/styles.d.ts.map +1 -1
- package/dist/types/core/office-switcher/__tests__/office-switcher-select-optgroup.test.d.ts +2 -0
- package/dist/types/core/office-switcher/__tests__/office-switcher-select-optgroup.test.d.ts.map +1 -0
- package/dist/types/core/office-switcher/__tests__/office-switcher-select-option.test.d.ts +2 -0
- package/dist/types/core/office-switcher/__tests__/office-switcher-select-option.test.d.ts.map +1 -0
- package/dist/types/core/office-switcher/index.d.ts +4 -0
- package/dist/types/core/office-switcher/index.d.ts.map +1 -1
- package/dist/types/core/office-switcher/office-group/__tests__/office-group-summary.test.d.ts +2 -0
- package/dist/types/core/office-switcher/office-group/__tests__/office-group-summary.test.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/__tests__/office-group.test.d.ts +2 -0
- package/dist/types/core/office-switcher/office-group/__tests__/office-group.test.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/index.d.ts +4 -0
- package/dist/types/core/office-switcher/office-group/index.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/office-group-summary.d.ts +22 -0
- package/dist/types/core/office-switcher/office-group/office-group-summary.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/office-group.d.ts +20 -0
- package/dist/types/core/office-switcher/office-group/office-group.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/office-group.stories.d.ts +20 -0
- package/dist/types/core/office-switcher/office-group/office-group.stories.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-group/styles.d.ts +5 -0
- package/dist/types/core/office-switcher/office-group/styles.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-item/__tests__/office-item.test.d.ts +2 -0
- package/dist/types/core/office-switcher/office-item/__tests__/office-item.test.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-item/index.d.ts +3 -0
- package/dist/types/core/office-switcher/office-item/index.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-item/office-item.d.ts +18 -0
- package/dist/types/core/office-switcher/office-item/office-item.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-item/office-item.stories.d.ts +42 -0
- package/dist/types/core/office-switcher/office-item/office-item.stories.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-item/styles.d.ts +6 -0
- package/dist/types/core/office-switcher/office-item/styles.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-popup.figma.d.ts +2 -0
- package/dist/types/core/office-switcher/office-switcher-popup.figma.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-select-optgroup.d.ts +24 -0
- package/dist/types/core/office-switcher/office-switcher-select-optgroup.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-select-optgroup.figma.d.ts +2 -0
- package/dist/types/core/office-switcher/office-switcher-select-optgroup.figma.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-select-option.d.ts +15 -0
- package/dist/types/core/office-switcher/office-switcher-select-option.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-select-option.figma.d.ts +2 -0
- package/dist/types/core/office-switcher/office-switcher-select-option.figma.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher-select.figma.d.ts +2 -0
- package/dist/types/core/office-switcher/office-switcher-select.figma.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher.d.ts +23 -3
- package/dist/types/core/office-switcher/office-switcher.d.ts.map +1 -1
- package/dist/types/core/office-switcher/office-switcher.figma.d.ts +2 -0
- package/dist/types/core/office-switcher/office-switcher.figma.d.ts.map +1 -0
- package/dist/types/core/office-switcher/office-switcher.stories.d.ts +4 -0
- package/dist/types/core/office-switcher/office-switcher.stories.d.ts.map +1 -1
- package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts +1 -1
- package/dist/types/utils/anchor-positioning/anchor-positioning.d.ts.map +1 -1
- package/dist/types/utils/anchor-positioning/anchor-positioning.stories.d.ts.map +1 -1
- package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts +5 -1
- package/dist/types/utils/anchor-positioning/build-anchor-positioning-css.d.ts.map +1 -1
- package/dist/types/utils/dialog/__tests__/close-on-backdrop-click.test.d.ts +2 -0
- package/dist/types/utils/dialog/__tests__/close-on-backdrop-click.test.d.ts.map +1 -0
- package/dist/types/utils/dialog/close-on-backdrop-click.d.ts +24 -0
- package/dist/types/utils/dialog/close-on-backdrop-click.d.ts.map +1 -0
- package/dist/types/utils/dialog/index.d.ts +2 -0
- package/dist/types/utils/dialog/index.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/listbox/dom-helpers/selectors.d.ts +8 -2
- package/dist/types/utils/listbox/dom-helpers/selectors.d.ts.map +1 -1
- package/dist/types/utils/popover/popover.d.ts +6 -2
- package/dist/types/utils/popover/popover.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/js/combobox-ykwrJ8qP.cjs +0 -1
- package/dist/js/dialog-CjN2Nll1.js +0 -116
- package/dist/js/dialog-oPE93fe0.cjs +0 -1
- package/dist/js/drawer-DcgSXF1g.cjs +0 -1
- package/dist/js/drawer-GNG7AmHl.js +0 -197
- package/dist/js/listbox-BGrp52Hs.cjs +0 -1
- package/dist/js/popover-CA0t-z5e.cjs +0 -1
|
@@ -1,43 +1,137 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../index-BsMVp4qF.js";
|
|
3
|
+
import { s as o } from "../index-AHmiDD3r.js";
|
|
4
|
+
import { ChevronDownIcon as I } from "../icons/chevron-down.js";
|
|
5
|
+
import { useId as p } from "react";
|
|
6
|
+
import { CheckIcon as S } from "../icons/check.js";
|
|
7
|
+
import { o as u } from "../combobox-1az8akBD.js";
|
|
3
8
|
import "../button-base-BxF98pDk.js";
|
|
4
|
-
import "
|
|
5
|
-
import "../listbox-DaqNCLTr.js";
|
|
9
|
+
import { d } from "../listbox-LxpZYH0B.js";
|
|
6
10
|
import "../icons/close.js";
|
|
7
|
-
import "../icons/chevron-down.js";
|
|
8
11
|
import "../search-input-BlrBgOkw.js";
|
|
9
|
-
import { C as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
import { C as f } from "../compact-select-Cj_eJ_Gk.js";
|
|
13
|
+
const b = "el-office-switcher-office-group", w = "el-office-switcher-office-group-summary", C = /* @__PURE__ */ o("span")({
|
|
14
|
+
name: "ElOfficeSwitcherOfficeGroupLabel",
|
|
15
|
+
class: "el-office-switcher-office-group-label",
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), g = /* @__PURE__ */ o("span")({
|
|
18
|
+
name: "ElOfficeSwitcherOfficeGroupChevron",
|
|
19
|
+
class: "el-office-switcher-office-group-chevron",
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
});
|
|
22
|
+
function E({
|
|
23
|
+
"aria-labelledby": e,
|
|
24
|
+
children: c,
|
|
25
|
+
className: r,
|
|
26
|
+
id: n,
|
|
27
|
+
...s
|
|
28
|
+
}) {
|
|
29
|
+
const a = e ?? p();
|
|
30
|
+
return /* @__PURE__ */ l("summary", { ...s, "aria-labelledby": a, className: m(w, r), id: n, children: [
|
|
31
|
+
/* @__PURE__ */ t(C, { id: a, children: c }),
|
|
32
|
+
/* @__PURE__ */ t(g, { "aria-hidden": !0, children: /* @__PURE__ */ t(I, {}) })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
function x({
|
|
36
|
+
"aria-labelledby": e,
|
|
37
|
+
children: c,
|
|
38
|
+
className: r,
|
|
39
|
+
label: n,
|
|
40
|
+
...s
|
|
41
|
+
}) {
|
|
42
|
+
const a = e ?? p();
|
|
43
|
+
return /* @__PURE__ */ l("details", { ...s, "aria-labelledby": a, className: m(b, r), children: [
|
|
44
|
+
/* @__PURE__ */ t(E, { id: a, children: n }),
|
|
45
|
+
c
|
|
46
|
+
] });
|
|
47
|
+
}
|
|
48
|
+
const y = /* @__PURE__ */ o("button")({
|
|
49
|
+
name: "ElOfficeItem",
|
|
50
|
+
class: "el-office-item",
|
|
51
|
+
propsAsIs: !1
|
|
52
|
+
}), L = /* @__PURE__ */ o("span")({
|
|
53
|
+
name: "ElOfficeItemLeftContent",
|
|
54
|
+
class: "el-office-item-left-content",
|
|
55
|
+
propsAsIs: !1
|
|
56
|
+
}), v = /* @__PURE__ */ o("span")({
|
|
57
|
+
name: "ElOfficeItemTextContainer",
|
|
58
|
+
class: "el-office-item-text-container",
|
|
59
|
+
propsAsIs: !1
|
|
60
|
+
}), A = /* @__PURE__ */ o("span")({
|
|
61
|
+
name: "ElOfficeItemBadgeContainer",
|
|
62
|
+
class: "el-office-item-badge-container",
|
|
63
|
+
propsAsIs: !1
|
|
64
|
+
}), G = /* @__PURE__ */ o("span")({
|
|
65
|
+
name: "ElOfficeItemCheckIconContainer",
|
|
66
|
+
class: "el-office-item-check-icon-container",
|
|
67
|
+
propsAsIs: !1
|
|
68
|
+
});
|
|
69
|
+
function D({ badge: e, children: c, ...r }) {
|
|
70
|
+
const n = p(), s = p();
|
|
71
|
+
return (
|
|
72
|
+
// NOTE: aria-labelledby is important as it doesn't just provide good a11y, it also provides
|
|
73
|
+
// compatibility with the Combobox primitives, which this component is used with (via Select)
|
|
74
|
+
/* @__PURE__ */ l(y, { ...r, "aria-labelledby": s, "aria-details": e ? n : void 0, role: "option", type: "button", children: [
|
|
75
|
+
/* @__PURE__ */ l(L, { children: [
|
|
76
|
+
/* @__PURE__ */ t(v, { id: s, children: c }),
|
|
77
|
+
e && /* @__PURE__ */ t(A, { id: n, children: e })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ t(G, { "aria-hidden": !0, children: /* @__PURE__ */ t(S, {}) })
|
|
80
|
+
] })
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
const P = /* @__PURE__ */ o("div")({
|
|
12
84
|
name: "ElOfficeSwitcher",
|
|
13
85
|
class: "el-office-switcher",
|
|
14
86
|
propsAsIs: !1
|
|
15
|
-
}),
|
|
16
|
-
function
|
|
17
|
-
closeOnSelection:
|
|
18
|
-
maxWidth:
|
|
19
|
-
...
|
|
87
|
+
}), k = "fit-content";
|
|
88
|
+
function B({
|
|
89
|
+
closeOnSelection: e = "auto",
|
|
90
|
+
maxWidth: c = k,
|
|
91
|
+
...r
|
|
20
92
|
}) {
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
}
|
|
23
|
-
function
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
}
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
t.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
t
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
93
|
+
return /* @__PURE__ */ t(u.Popup, { ...r, closeOnSelection: e, maxWidth: c });
|
|
94
|
+
}
|
|
95
|
+
function N(e) {
|
|
96
|
+
return /* @__PURE__ */ t(f, { ...e });
|
|
97
|
+
}
|
|
98
|
+
function O(e) {
|
|
99
|
+
return /* @__PURE__ */ t(d.Optgroup, { as: x, ...e });
|
|
100
|
+
}
|
|
101
|
+
O.displayName = "OfficeSwitcher.Optgroup";
|
|
102
|
+
function h(e) {
|
|
103
|
+
return /* @__PURE__ */ t(d.Option, { as: D, ...e });
|
|
104
|
+
}
|
|
105
|
+
h.displayName = "OfficeSwitcher.Option";
|
|
106
|
+
function i({ children: e, ...c }) {
|
|
107
|
+
return /* @__PURE__ */ t(P, { ...c, children: e });
|
|
108
|
+
}
|
|
109
|
+
i.getValue = f.getValue;
|
|
110
|
+
i.getListboxId = f.getListboxId;
|
|
111
|
+
i.getPopupId = f.getPopupId;
|
|
112
|
+
i.Button = f.Button;
|
|
113
|
+
i.Divider = f.Divider;
|
|
114
|
+
i.Listbox = f.Listbox;
|
|
115
|
+
i.Option = h;
|
|
116
|
+
i.Optgroup = O;
|
|
117
|
+
i.Popup = B;
|
|
118
|
+
i.SearchInput = u.SearchInput;
|
|
119
|
+
i.Select = N;
|
|
120
|
+
i.useState = f.useState;
|
|
41
121
|
export {
|
|
42
|
-
|
|
122
|
+
y as ElOfficeItem,
|
|
123
|
+
A as ElOfficeItemBadgeContainer,
|
|
124
|
+
G as ElOfficeItemCheckIconContainer,
|
|
125
|
+
L as ElOfficeItemLeftContent,
|
|
126
|
+
v as ElOfficeItemTextContainer,
|
|
127
|
+
g as ElOfficeSwitcherOfficeGroupChevron,
|
|
128
|
+
C as ElOfficeSwitcherOfficeGroupLabel,
|
|
129
|
+
D as OfficeItem,
|
|
130
|
+
i as OfficeSwitcher,
|
|
131
|
+
x as OfficeSwitcherOfficeGroup,
|
|
132
|
+
E as OfficeSwitcherOfficeGroupSummary,
|
|
133
|
+
O as OfficeSwitcherSelectOptgroup,
|
|
134
|
+
h as OfficeSwitcherSelectOption,
|
|
135
|
+
b as elOfficeSwitcherOfficeGroup,
|
|
136
|
+
w as elOfficeSwitcherOfficeGroupSummary
|
|
43
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../section-message-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../section-message-Bn33yi2F.cjs");exports.ElSectionMessage=e.ElSectionMessage;exports.ElSectionMessageActions=e.ElSectionMessageActions;exports.ElSectionMessageDescription=e.ElSectionMessageDescription;exports.ElSectionMessageIconContainer=e.ElSectionMessageIconContainer;exports.ElSectionMessageTitle=e.ElSectionMessageTitle;exports.SectionMessage=e.SectionMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../select-control-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../select-control-DlaKfZ3x.cjs");exports.SelectControl=e.SelectControl;
|
package/dist/js/core/select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../select-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../select-BlpaGf5-.cjs");exports.Select=e.Select;exports.SelectButton=e.SelectButton;exports.SelectPopup=e.SelectPopup;
|
package/dist/js/core/select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../side-bar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../side-bar-BkE4eONG.cjs");exports.ElSideBar=e.ElSideBar;exports.ElSideBarBody=e.ElSideBarBody;exports.ElSideBarCollapseButton=e.ElSideBarCollapseButton;exports.ElSideBarCollapseButtonIcon=e.ElSideBarCollapseButtonIcon;exports.ElSideBarCollapseLabel=e.ElSideBarCollapseLabel;exports.ElSideBarFooter=e.ElSideBarFooter;exports.ElSideBarMenuGroupSummaryDropdownIcon=e.ElSideBarMenuGroupSummaryDropdownIcon;exports.ElSideBarMenuGroupSummaryIcon=e.ElSideBarMenuGroupSummaryIcon;exports.ElSideBarMenuGroupSummaryLabel=e.ElSideBarMenuGroupSummaryLabel;exports.ElSideBarMenuItemIcon=e.ElSideBarMenuItemIcon;exports.ElSideBarMenuItemLabel=e.ElSideBarMenuItemLabel;exports.ElSideBarMenuList=e.ElSideBarMenuList;exports.ElSideBarMenuListItem=e.ElSideBarMenuListItem;exports.ElSideBarSubmenuItemLabel=e.ElSideBarSubmenuItemLabel;exports.ElSideBarSubmenuList=e.ElSideBarSubmenuList;exports.ElSideBarSubmenuListItem=e.ElSideBarSubmenuListItem;exports.SideBar=e.SideBar;exports.SideBarCollapseButton=e.SideBarCollapseButton;exports.SideBarContext=e.SideBarContext;exports.SideBarContextPublisher=e.SideBarContextPublisher;exports.SideBarMenuGroup=e.SideBarMenuGroup;exports.SideBarMenuGroupSummary=e.SideBarMenuGroupSummary;exports.SideBarMenuItem=e.SideBarMenuItem;exports.SideBarMenuList=e.SideBarMenuList;exports.SideBarSubmenu=e.SideBarSubmenu;exports.SideBarSubmenuItem=e.SideBarSubmenuItem;exports.determineSideBarStateFromViewport=e.determineSideBarStateFromViewport;exports.elSideBarMenuGroup=e.elSideBarMenuGroup;exports.elSideBarMenuGroupSummary=e.elSideBarMenuGroupSummary;exports.elSideBarMenuItem=e.elSideBarMenuItem;exports.elSideBarSubmenuItem=e.elSideBarSubmenuItem;exports.shouldBeOpen=e.shouldBeOpen;exports.useSideBar=e.useSideBar;exports.useSideBarContext=e.useSideBarContext;exports.useSideBarKeyboardNavigation=e.useSideBarKeyboardNavigation;exports.useSideBarMatchMediaEffect=e.useSideBarMatchMediaEffect;
|
package/dist/js/core/side-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as r, w as s, E as u, a as S, b as i, x as d, i as B, g as t, h as l, l as n, k as o, n as m, o as E, B as p, y as M, z as I, q as b, S as L, r as y, t as C, c as G, d as c, m as x, p as f, A as h, D as w, I as F, e as g, f as v, j as D, C as j, s as k, G as q, u as z, F as A, H } from "../side-bar-
|
|
1
|
+
import { v as r, w as s, E as u, a as S, b as i, x as d, i as B, g as t, h as l, l as n, k as o, n as m, o as E, B as p, y as M, z as I, q as b, S as L, r as y, t as C, c as G, d as c, m as x, p as f, A as h, D as w, I as F, e as g, f as v, j as D, C as j, s as k, G as q, u as z, F as A, H } from "../side-bar-D6aRZHCV.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ElSideBar,
|
|
4
4
|
s as ElSideBarBody,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../split-button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../split-button-Bnyv8DHF.cjs");exports.ElSplitButton=t.ElSplitButton;exports.SplitButton=t.SplitButton;exports.SplitButtonAction=t.SplitButtonAction;exports.SplitButtonAnchorAction=t.SplitButtonAnchorAction;exports.SplitButtonContext=t.SplitButtonContext;exports.SplitButtonMenuButton=t.SplitButtonMenuButton;exports.elSplitButtonAction=t.elSplitButtonAction;exports.elSplitButtonMenuButton=t.elSplitButtonMenuButton;exports.useSplitButtonContext=t.useSplitButtonContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as o, f as u, S as i, a as l, b as B, c as a, e as p, d as s, u as S } from "../split-button-
|
|
1
|
+
import { E as o, f as u, S as i, a as l, b as B, c as a, e as p, d as s, u as S } from "../split-button-CrofNP3Q.js";
|
|
2
2
|
export {
|
|
3
3
|
o as ElSplitButton,
|
|
4
4
|
u as SplitButton,
|
package/dist/js/core/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../table-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../table-WHyA-HQG.cjs");exports.ElTableCellDoubleLineLayout=e.ElTableCellDoubleLineLayout;exports.ElTableCellDoubleLineLayoutMediaItem=e.ElTableCellDoubleLineLayoutMediaItem;exports.ElTableCellDoubleLineLayoutPrimaryData=e.ElTableCellDoubleLineLayoutPrimaryData;exports.ElTableCellDoubleLineLayoutSupplementaryData=e.ElTableCellDoubleLineLayoutSupplementaryData;exports.ElTableCellPrimaryData=e.ElTableCellPrimaryData;exports.ElTableCellPrimaryDataContentContainer=e.ElTableCellPrimaryDataContentContainer;exports.ElTableCellPrimaryDataIconContainer=e.ElTableCellPrimaryDataIconContainer;exports.ElTableToolbar=e.ElTableToolbar;exports.ElTableToolbarLeftContent=e.ElTableToolbarLeftContent;exports.ElTableToolbarRightContent=e.ElTableToolbarRightContent;exports.TABLE_ROW_INTERACTIVE_ELEMENT_Z_INDEX=e.TABLE_ROW_INTERACTIVE_ELEMENT_Z_INDEX;exports.TABLE_ROW_PRIMARY_ACTION_Z_INDEX=e.TABLE_ROW_PRIMARY_ACTION_Z_INDEX;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableBodyCell=e.TableBodyCell;exports.TableBodyRow=e.TableBodyRow;exports.TableCellCheckbox=e.TableCellCheckbox;exports.TableCellDoubleLineLayout=e.TableCellDoubleLineLayout;exports.TableCellPrimaryData=e.TableCellPrimaryData;exports.TableCellSortButton=e.TableCellSortButton;exports.TableHead=e.TableHead;exports.TableHeaderCell=e.TableHeaderCell;exports.TableHeaderRow=e.TableHeaderRow;exports.TableRowMoreActions=e.TableRowMoreActions;exports.TableRowMoreActionsButton=e.TableRowMoreActionsButton;exports.TableRowPrimaryAction=e.TableRowPrimaryAction;exports.TableToolbar=e.TableToolbar;exports.elTableBody=e.elTableBody;exports.elTableBodyCell=e.elTableBodyCell;exports.elTableBodyRow=e.elTableBodyRow;exports.elTableCellCheckbox=e.elTableCellCheckbox;exports.elTableCellSortButton=e.elTableCellSortButton;exports.elTableCellSortButtonIcon=e.elTableCellSortButtonIcon;exports.elTableHead=e.elTableHead;exports.elTableHeaderCell=e.elTableHeaderCell;exports.elTableHeaderRow=e.elTableHeaderRow;exports.elTableRowMoreActionsButton=e.elTableRowMoreActionsButton;exports.elTableRowPrimaryAction=e.elTableRowPrimaryAction;exports.getNextSortDirection=e.getNextSortDirection;exports.parseSortDirection=e.parseSortDirection;
|
package/dist/js/core/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as l, m as o, k as t, l as b, z as T, A as s, B as r, J as n, K as C, L as i, a as y, T as E, I as u, b as D, c as L, f as R, h as d, j as B, y as c, C as m, n as A, p as w, r as I, t as _, u as P, w as H, M, e as N, d as S, g as p, i as x, G as h, H as f, o as g, q as k, s as O, v as W, x as X, F as Z, D as j } from "../table-
|
|
1
|
+
import { E as l, m as o, k as t, l as b, z as T, A as s, B as r, J as n, K as C, L as i, a as y, T as E, I as u, b as D, c as L, f as R, h as d, j as B, y as c, C as m, n as A, p as w, r as I, t as _, u as P, w as H, M, e as N, d as S, g as p, i as x, G as h, H as f, o as g, q as k, s as O, v as W, x as X, F as Z, D as j } from "../table-2CxL0Pev.js";
|
|
2
2
|
export {
|
|
3
3
|
l as ElTableCellDoubleLineLayout,
|
|
4
4
|
o as ElTableCellDoubleLineLayoutMediaItem,
|
package/dist/js/core/tooltip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-BU8hYqZ9.cjs");exports.Tooltip=o.Tooltip;exports.elTooltip=o.elTooltip;exports.getTooltipTriggerProps=o.getTooltipTriggerProps;exports.isTooltipNeeded=o.isTooltipNeeded;exports.useTooltipController=o.useTooltipController;
|
package/dist/js/core/tooltip.js
CHANGED
package/dist/js/core/top-bar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../top-bar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../top-bar-CjUR7fhL.cjs");exports.AppLogo=a.AppLogo;exports.BrandLogo=a.BrandLogo;exports.ElBrandLogo=a.ElBrandLogo;exports.ElTopBar=a.ElTopBar;exports.ElTopBarAppSwitcherContainer=a.ElTopBarAppSwitcherContainer;exports.ElTopBarAvatarContainer=a.ElTopBarAvatarContainer;exports.ElTopBarContentContainer=a.ElTopBarContentContainer;exports.ElTopBarLogoContainer=a.ElTopBarLogoContainer;exports.ElTopBarMainNavContainer=a.ElTopBarMainNavContainer;exports.ElTopBarMenuContainer=a.ElTopBarMenuContainer;exports.ElTopBarNavDropdownButtonIcon=a.ElTopBarNavDropdownButtonIcon;exports.ElTopBarNavDropdownButtonLabel=a.ElTopBarNavDropdownButtonLabel;exports.ElTopBarNavIconItemBadge=a.ElTopBarNavIconItemBadge;exports.ElTopBarNavIconItemIcon=a.ElTopBarNavIconItemIcon;exports.ElTopBarNavItemLabel=a.ElTopBarNavItemLabel;exports.ElTopBarNavSearch=a.ElTopBarNavSearch;exports.ElTopBarNavSearchButton=a.ElTopBarNavSearchButton;exports.ElTopBarNavSearchButtonContainer=a.ElTopBarNavSearchButtonContainer;exports.ElTopBarNavSearchButtonIcon=a.ElTopBarNavSearchButtonIcon;exports.ElTopBarNavSearchButtonPlaceholder=a.ElTopBarNavSearchButtonPlaceholder;exports.ElTopBarNavSearchButtonShortcutText=a.ElTopBarNavSearchButtonShortcutText;exports.ElTopBarNavSearchIconItemContainer=a.ElTopBarNavSearchIconItemContainer;exports.ElTopBarSearchContainer=a.ElTopBarSearchContainer;exports.ElTopBarSecondaryNav=a.ElTopBarSecondaryNav;exports.ElTopBarSecondaryNavContainer=a.ElTopBarSecondaryNavContainer;exports.ElTopBarSecondaryNavList=a.ElTopBarSecondaryNavList;exports.ElTopBarSecondaryNavListItem=a.ElTopBarSecondaryNavListItem;exports.TopBar=a.TopBar;exports.TopBarAvatarAnchor=a.TopBarAvatarAnchor;exports.TopBarAvatarBase=a.TopBarAvatarBase;exports.TopBarAvatarButton=a.TopBarAvatarButton;exports.TopBarAvatarMenu=a.TopBarAvatarMenu;exports.TopBarMainNav=a.TopBarMainNav;exports.TopBarMainNavListItem=a.TopBarMainNavListItem;exports.TopBarMainNavMenuListItem=a.TopBarMainNavMenuListItem;exports.TopBarNavDropdownButton=a.TopBarNavDropdownButton;exports.TopBarNavIconItem=a.TopBarNavIconItem;exports.TopBarNavIconItemBase=a.TopBarNavIconItemBase;exports.TopBarNavIconItemButton=a.TopBarNavIconItemButton;exports.TopBarNavItem=a.TopBarNavItem;exports.TopBarNavSearch=a.TopBarNavSearch;exports.TopBarNavSearchButton=a.TopBarNavSearchButton;exports.TopBarNavSearchIconItem=a.TopBarNavSearchIconItem;exports.TopBarSecondaryNav=a.TopBarSecondaryNav;exports.TopBarSecondaryNavListItem=a.TopBarSecondaryNavListItem;exports.TopBarSecondaryNavMenuListItem=a.TopBarSecondaryNavMenuListItem;exports.elTopBarAvatarBase=a.elTopBarAvatarBase;exports.elTopBarMenuPopover=a.elTopBarMenuPopover;exports.elTopBarNavDropdownButton=a.elTopBarNavDropdownButton;exports.elTopBarNavIconItem=a.elTopBarNavIconItem;exports.elTopBarNavItem=a.elTopBarNavItem;exports.supportedAppNames=a.supportedAppNames;
|
package/dist/js/core/top-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as t, E as e, O as n, Q as B, S as s, P as p, R as T, U as v, X as N, k as l, j as c, q as I, p as E, u as i, w as S, C as u, x as m, D as d, F as h, G as L, y as C, W as A, L as M, V as y, M as g, N as w, Z as D, T as b, a as x, b as P, c as f, d as j, f as k, g as q, h as z, l as F, n as G, m as H, r as J, v as K, z as O, H as Q, I as R, J as U, K as V, e as W, Y as X, i as Y, o as Z, t as _, s as $ } from "../top-bar-
|
|
1
|
+
import { A as r, B as t, E as e, O as n, Q as B, S as s, P as p, R as T, U as v, X as N, k as l, j as c, q as I, p as E, u as i, w as S, C as u, x as m, D as d, F as h, G as L, y as C, W as A, L as M, V as y, M as g, N as w, Z as D, T as b, a as x, b as P, c as f, d as j, f as k, g as q, h as z, l as F, n as G, m as H, r as J, v as K, z as O, H as Q, I as R, J as U, K as V, e as W, Y as X, i as Y, o as Z, t as _, s as $ } from "../top-bar-BvxpBZri.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppLogo,
|
|
4
4
|
t as BrandLogo,
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
2
|
+
import { c as v } from "./index-BsMVp4qF.js";
|
|
3
|
+
import { s as t } from "./index-AHmiDD3r.js";
|
|
4
|
+
import { createContext as F, useContext as N, useId as k } from "react";
|
|
5
|
+
import "./button-base-BxF98pDk.js";
|
|
6
|
+
import { B as O } from "./button-DYIdjjTt.js";
|
|
7
|
+
import { CloseIcon as q } from "./icons/close.js";
|
|
8
|
+
import { s as j, t as w, r as z, v as P, q as T } from "./drawer-n8sZIGeL.js";
|
|
9
|
+
import { maybeCloseOnBackdropClick as _ } from "./utils/dialog.js";
|
|
10
|
+
const L = /* @__PURE__ */ t("article")({
|
|
11
|
+
name: "ElDialogBody",
|
|
12
|
+
class: "el-dialog-body",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
});
|
|
15
|
+
function m({ children: e, ...a }) {
|
|
16
|
+
return /* @__PURE__ */ o(L, { ...a, children: e });
|
|
17
|
+
}
|
|
18
|
+
m.displayName = "Dialog.Body";
|
|
19
|
+
const d = F(null);
|
|
20
|
+
function C() {
|
|
21
|
+
const e = N(d);
|
|
22
|
+
if (!e)
|
|
23
|
+
throw new Error("DialogContext not defined: useDialogContext can only be used in a child of DialogContext");
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
const M = /* @__PURE__ */ t("footer")({
|
|
27
|
+
name: "ElDialogFooter",
|
|
28
|
+
class: "el-dialog-footer",
|
|
29
|
+
propsAsIs: !1
|
|
30
|
+
});
|
|
31
|
+
function p({ children: e, ...a }) {
|
|
32
|
+
return /* @__PURE__ */ o(M, { ...a, children: e });
|
|
33
|
+
}
|
|
34
|
+
p.displayName = "Dialog.Footer";
|
|
35
|
+
function D() {
|
|
36
|
+
return /* @__PURE__ */ o("form", { children: /* @__PURE__ */ o(
|
|
37
|
+
O,
|
|
38
|
+
{
|
|
39
|
+
autoFocus: !0,
|
|
40
|
+
"aria-label": "Close",
|
|
41
|
+
formMethod: "dialog",
|
|
42
|
+
iconLeft: /* @__PURE__ */ o(q, { "aria-hidden": !0 }),
|
|
43
|
+
size: "large",
|
|
44
|
+
type: "submit",
|
|
45
|
+
variant: "tertiary"
|
|
46
|
+
}
|
|
47
|
+
) });
|
|
48
|
+
}
|
|
49
|
+
D.displayName = "Dialog.HeaderCloseButton";
|
|
50
|
+
const R = /* @__PURE__ */ t("header")({
|
|
51
|
+
name: "ElDialogHeader",
|
|
52
|
+
class: "el-dialog-header",
|
|
53
|
+
propsAsIs: !1
|
|
54
|
+
}), S = /* @__PURE__ */ t("div")({
|
|
55
|
+
name: "ElDialogHeaderContentContainer",
|
|
56
|
+
class: "el-dialog-header-content-container",
|
|
57
|
+
propsAsIs: !1
|
|
58
|
+
}), W = /* @__PURE__ */ t("div")({
|
|
59
|
+
name: "ElDialogHeaderAction",
|
|
60
|
+
class: "el-dialog-header-action",
|
|
61
|
+
propsAsIs: !1
|
|
62
|
+
}), G = /* @__PURE__ */ t("h2")({
|
|
63
|
+
name: "ElDialogHeaderTitle",
|
|
64
|
+
class: "el-dialog-header-title",
|
|
65
|
+
propsAsIs: !1
|
|
66
|
+
});
|
|
67
|
+
function n({ action: e, children: a, "aria-label": r, ...s }) {
|
|
68
|
+
const { titleId: i } = C();
|
|
69
|
+
return (
|
|
70
|
+
// NOTE: If we don't have a visible title, we should have an aria-label on this root element.
|
|
71
|
+
/* @__PURE__ */ o(R, { ...s, "aria-label": r, id: a ? void 0 : i, children: /* @__PURE__ */ A(S, { children: [
|
|
72
|
+
e && /* @__PURE__ */ o(W, { children: e }),
|
|
73
|
+
a && /* @__PURE__ */ o(G, { id: i, children: a })
|
|
74
|
+
] }) })
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
n.displayName = "Dialog.Header";
|
|
78
|
+
n.CloseButton = D;
|
|
79
|
+
const J = "el-dialog";
|
|
80
|
+
function l({
|
|
81
|
+
"aria-labelledby": e,
|
|
82
|
+
children: a,
|
|
83
|
+
className: r,
|
|
84
|
+
closedBy: s = "closerequest",
|
|
85
|
+
isOpen: i,
|
|
86
|
+
onCancel: f,
|
|
87
|
+
onClose: y,
|
|
88
|
+
onClick: h,
|
|
89
|
+
size: E,
|
|
90
|
+
...x
|
|
91
|
+
}) {
|
|
92
|
+
const c = j(i), H = w(c), g = k(), b = z(s, f), B = P(y), I = (u) => {
|
|
93
|
+
h?.(u), _(u);
|
|
94
|
+
};
|
|
95
|
+
return /* @__PURE__ */ o(
|
|
96
|
+
"dialog",
|
|
97
|
+
{
|
|
98
|
+
...x,
|
|
99
|
+
"aria-labelledby": e ?? g,
|
|
100
|
+
"data-size": E,
|
|
101
|
+
className: v(J, r),
|
|
102
|
+
closedby: s,
|
|
103
|
+
ref: c,
|
|
104
|
+
onCancel: b,
|
|
105
|
+
onClose: B,
|
|
106
|
+
onClick: I,
|
|
107
|
+
children: /* @__PURE__ */ o(d.Provider, { value: { titleId: g }, children: H && a })
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
l.Body = m;
|
|
112
|
+
l.Footer = p;
|
|
113
|
+
l.Header = n;
|
|
114
|
+
l.HeaderCloseButton = n.CloseButton;
|
|
115
|
+
l.Context = d;
|
|
116
|
+
l.useContext = C;
|
|
117
|
+
l.getClosestDialogElement = T;
|
|
118
|
+
export {
|
|
119
|
+
l as D,
|
|
120
|
+
J as e
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),A=require("./index-8ctufnBx.cjs"),a=require("./index-BAGJrh44.cjs"),c=require("react");require("./button-base-BR_9696S.cjs");const v=require("./button-DwYL4ezg.cjs"),F=require("./icons/close.cjs"),s=require("./drawer-DeMe2YSy.cjs"),N=require("./utils/dialog.cjs"),k=a.styled_default("article")({name:"ElDialogBody",class:"el-dialog-body",propsAsIs:!1});function f({children:e,...l}){return o.jsx(k,{...l,children:e})}f.displayName="Dialog.Body";const u=c.createContext(null);function x(){const e=c.useContext(u);if(!e)throw new Error("DialogContext not defined: useDialogContext can only be used in a child of DialogContext");return e}const O=a.styled_default("footer")({name:"ElDialogFooter",class:"el-dialog-footer",propsAsIs:!1});function p({children:e,...l}){return o.jsx(O,{...l,children:e})}p.displayName="Dialog.Footer";function y(){return o.jsx("form",{children:o.jsx(v.Button,{autoFocus:!0,"aria-label":"Close",formMethod:"dialog",iconLeft:o.jsx(F.CloseIcon,{"aria-hidden":!0}),size:"large",type:"submit",variant:"tertiary"})})}y.displayName="Dialog.HeaderCloseButton";const w=a.styled_default("header")({name:"ElDialogHeader",class:"el-dialog-header",propsAsIs:!1}),R=a.styled_default("div")({name:"ElDialogHeaderContentContainer",class:"el-dialog-header-content-container",propsAsIs:!1}),z=a.styled_default("div")({name:"ElDialogHeaderAction",class:"el-dialog-header-action",propsAsIs:!1}),P=a.styled_default("h2")({name:"ElDialogHeaderTitle",class:"el-dialog-header-title",propsAsIs:!1});function r({action:e,children:l,"aria-label":d,...i}){const{titleId:n}=x();return o.jsx(w,{...i,"aria-label":d,id:l?void 0:n,children:o.jsxs(R,{children:[e&&o.jsx(z,{children:e}),l&&o.jsx(P,{id:n,children:l})]})})}r.displayName="Dialog.Header";r.CloseButton=y;const m="el-dialog";function t({"aria-labelledby":e,children:l,className:d,closedBy:i="closerequest",isOpen:n,onCancel:h,onClose:E,onClick:b,size:H,...j}){const g=s.useDialogController(n),q=s.useDialogObserver(g),C=c.useId(),B=s.useCancelCloseRequests(i,h),I=s.useWithStopPropagation(E),_=D=>{b?.(D),N.maybeCloseOnBackdropClick(D)};return o.jsx("dialog",{...j,"aria-labelledby":e??C,"data-size":H,className:A.cx_default(m,d),closedby:i,ref:g,onCancel:B,onClose:I,onClick:_,children:o.jsx(u.Provider,{value:{titleId:C},children:q&&l})})}t.Body=f;t.Footer=p;t.Header=r;t.HeaderCloseButton=r.CloseButton;t.Context=u;t.useContext=x;t.getClosestDialogElement=s.getClosestDialogElement;exports.Dialog=t;exports.elDialog=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),z=require("./index-8ctufnBx.cjs"),o=require("./index-BAGJrh44.cjs"),s=require("react");require("./button-base-BR_9696S.cjs");const $=require("./button-DwYL4ezg.cjs"),G=require("./icons/close.cjs"),J=require("./utils/dialog.cjs"),x=o.styled_default("article")({name:"ElDrawerBody",class:"el-drawer-body",propsAsIs:!1});function D({children:e,...r}){return a.jsx(x,{...r,children:e})}D.displayName="Drawer.Body";const c=s.createContext(null);function f(){const e=s.useContext(c);if(!e)throw new Error("useDrawerContext requires a Drawer ancestor");return e}const m=o.styled_default("footer")({name:"ElDrawerFooter",class:"el-drawer-footer",propsAsIs:!1});function C({children:e,...r}){return a.jsx(m,{...r,children:e})}C.displayName="Drawer.Footer";function p(){return a.jsx("form",{children:a.jsx($.Button,{autoFocus:!0,"aria-label":"Close",formMethod:"dialog",iconLeft:a.jsx(G.CloseIcon,{"aria-hidden":!0}),size:"large",type:"submit",variant:"tertiary"})})}p.displayName="Drawer.HeaderCloseButton";const K="drawer-header",h=o.styled_default("header")({name:"ElDrawerHeader",class:"el-drawer-header",propsAsIs:!1}),g=o.styled_default("div")({name:"ElDrawerHeaderTabsContainer",class:"el-drawer-header-tabs-container",propsAsIs:!1}),b=o.styled_default("div")({name:"ElDrawerHeaderContentContainer",class:"el-drawer-header-content-container",propsAsIs:!1}),A=o.styled_default("div")({name:"ElDrawerHeaderTitleContainer",class:"el-drawer-header-title-container",propsAsIs:!1}),_=o.styled_default("div")({name:"ElDrawerHeaderAction",class:"el-drawer-header-action",propsAsIs:!1}),I=o.styled_default("div")({name:"ElDrawerHeaderOverline",class:"el-drawer-header-overline",propsAsIs:!1}),j=o.styled_default("h2")({name:"ElDrawerHeaderTitle",class:"el-drawer-header-title",propsAsIs:!1}),v=o.styled_default("div")({name:"ElDrawerHeaderSupplementaryInfo",class:"el-drawer-header-supplementary-info",propsAsIs:!1});function d({action:e,overline:r,children:t,supplementaryInfo:n,tabs:l,...u}){const{titleId:w}=f()??{};return a.jsx(h,{...u,children:a.jsxs(b,{children:[a.jsxs(A,{children:[e&&a.jsx(_,{children:e}),r&&a.jsx(I,{children:r}),a.jsx(j,{id:w,children:t}),n&&a.jsx(v,{children:n})]}),l&&a.jsx(g,{children:l})]})})}d.displayName="Drawer.Header";d.CloseButton=p;const B="el-drawer";function R(e){return e.closest("dialog")}function q(e,r){return s.useCallback(t=>{t.stopPropagation(),e==="none"&&t.target===t.currentTarget?t.preventDefault():r?.(t)},[e,r])}function O(e){const r=s.useRef(null);return s.useLayoutEffect(function(){!r.current||e===void 0||(e?r.current.showModal():r.current.close())},[e]),r}function T(e){const[r,t]=s.useState(!1);return s.useLayoutEffect(()=>{if(!e.current)return;const n=e.current;t(n.open);const l=new MutationObserver(()=>{t(n.open)});return l.observe(n,{attributeFilter:["open"]}),()=>l.disconnect()},[e,t]),r}function N(e){return s.useCallback(r=>{r.stopPropagation(),e?.(r)},[e])}function i({"aria-label":e,"aria-labelledby":r,children:t,className:n,closedBy:l="closerequest",isOpen:u,onCancel:w,onClick:S,onClose:F,...k}){const E=O(u),M=T(E),H=s.useId(),P=q(l,w),W=N(F),L=y=>{S?.(y),J.maybeCloseOnBackdropClick(y)};return a.jsx("dialog",{...k,"aria-label":e,"aria-labelledby":e?void 0:r??H,className:z.cx_default(B,n),closedby:l,ref:E,onCancel:P,onClick:L,onClose:W,children:a.jsx(c.Provider,{value:{titleId:H},children:M&&t})})}i.Body=D;i.Footer=C;i.Header=d;i.HeaderCloseButton=d.CloseButton;i.Context=c;i.useContext=f;i.getClosestDialogElement=R;exports.DRAWER_HEADER_CSS_CONTAINER_NAME=K;exports.Drawer=i;exports.DrawerBody=D;exports.DrawerContext=c;exports.DrawerFooter=C;exports.DrawerHeader=d;exports.DrawerHeaderCloseButton=p;exports.ElDrawerBody=x;exports.ElDrawerFooter=m;exports.ElDrawerHeader=h;exports.ElDrawerHeaderAction=_;exports.ElDrawerHeaderContentContainer=b;exports.ElDrawerHeaderOverline=I;exports.ElDrawerHeaderSupplementaryInfo=v;exports.ElDrawerHeaderTabsContainer=g;exports.ElDrawerHeaderTitle=j;exports.ElDrawerHeaderTitleContainer=A;exports.elDrawer=B;exports.getClosestDialogElement=R;exports.useCancelCloseRequests=q;exports.useDialogController=O;exports.useDialogObserver=T;exports.useDrawerContext=f;exports.useWithStopPropagation=N;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { c as O } from "./index-BsMVp4qF.js";
|
|
3
|
+
import { s } from "./index-AHmiDD3r.js";
|
|
4
|
+
import { createContext as N, useContext as T, useCallback as m, useRef as F, useLayoutEffect as C, useState as k, useId as R } from "react";
|
|
5
|
+
import "./button-base-BxF98pDk.js";
|
|
6
|
+
import { B as S } from "./button-DYIdjjTt.js";
|
|
7
|
+
import { CloseIcon as _ } from "./icons/close.js";
|
|
8
|
+
import { maybeCloseOnBackdropClick as q } from "./utils/dialog.js";
|
|
9
|
+
const M = /* @__PURE__ */ s("article")({
|
|
10
|
+
name: "ElDrawerBody",
|
|
11
|
+
class: "el-drawer-body",
|
|
12
|
+
propsAsIs: !1
|
|
13
|
+
});
|
|
14
|
+
function E({ children: e, ...r }) {
|
|
15
|
+
return /* @__PURE__ */ o(M, { ...r, children: e });
|
|
16
|
+
}
|
|
17
|
+
E.displayName = "Drawer.Body";
|
|
18
|
+
const u = N(null);
|
|
19
|
+
function h() {
|
|
20
|
+
const e = T(u);
|
|
21
|
+
if (!e)
|
|
22
|
+
throw new Error("useDrawerContext requires a Drawer ancestor");
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
const P = /* @__PURE__ */ s("footer")({
|
|
26
|
+
name: "ElDrawerFooter",
|
|
27
|
+
class: "el-drawer-footer",
|
|
28
|
+
propsAsIs: !1
|
|
29
|
+
});
|
|
30
|
+
function H({ children: e, ...r }) {
|
|
31
|
+
return /* @__PURE__ */ o(P, { ...r, children: e });
|
|
32
|
+
}
|
|
33
|
+
H.displayName = "Drawer.Footer";
|
|
34
|
+
function b() {
|
|
35
|
+
return /* @__PURE__ */ o("form", { children: /* @__PURE__ */ o(
|
|
36
|
+
S,
|
|
37
|
+
{
|
|
38
|
+
autoFocus: !0,
|
|
39
|
+
"aria-label": "Close",
|
|
40
|
+
formMethod: "dialog",
|
|
41
|
+
iconLeft: /* @__PURE__ */ o(_, { "aria-hidden": !0 }),
|
|
42
|
+
size: "large",
|
|
43
|
+
type: "submit",
|
|
44
|
+
variant: "tertiary"
|
|
45
|
+
}
|
|
46
|
+
) });
|
|
47
|
+
}
|
|
48
|
+
b.displayName = "Drawer.HeaderCloseButton";
|
|
49
|
+
const ie = "drawer-header", j = /* @__PURE__ */ s("header")({
|
|
50
|
+
name: "ElDrawerHeader",
|
|
51
|
+
class: "el-drawer-header",
|
|
52
|
+
propsAsIs: !1
|
|
53
|
+
}), W = /* @__PURE__ */ s("div")({
|
|
54
|
+
name: "ElDrawerHeaderTabsContainer",
|
|
55
|
+
class: "el-drawer-header-tabs-container",
|
|
56
|
+
propsAsIs: !1
|
|
57
|
+
}), z = /* @__PURE__ */ s("div")({
|
|
58
|
+
name: "ElDrawerHeaderContentContainer",
|
|
59
|
+
class: "el-drawer-header-content-container",
|
|
60
|
+
propsAsIs: !1
|
|
61
|
+
}), L = /* @__PURE__ */ s("div")({
|
|
62
|
+
name: "ElDrawerHeaderTitleContainer",
|
|
63
|
+
class: "el-drawer-header-title-container",
|
|
64
|
+
propsAsIs: !1
|
|
65
|
+
}), G = /* @__PURE__ */ s("div")({
|
|
66
|
+
name: "ElDrawerHeaderAction",
|
|
67
|
+
class: "el-drawer-header-action",
|
|
68
|
+
propsAsIs: !1
|
|
69
|
+
}), J = /* @__PURE__ */ s("div")({
|
|
70
|
+
name: "ElDrawerHeaderOverline",
|
|
71
|
+
class: "el-drawer-header-overline",
|
|
72
|
+
propsAsIs: !1
|
|
73
|
+
}), K = /* @__PURE__ */ s("h2")({
|
|
74
|
+
name: "ElDrawerHeaderTitle",
|
|
75
|
+
class: "el-drawer-header-title",
|
|
76
|
+
propsAsIs: !1
|
|
77
|
+
}), Q = /* @__PURE__ */ s("div")({
|
|
78
|
+
name: "ElDrawerHeaderSupplementaryInfo",
|
|
79
|
+
class: "el-drawer-header-supplementary-info",
|
|
80
|
+
propsAsIs: !1
|
|
81
|
+
});
|
|
82
|
+
function i({ action: e, overline: r, children: a, supplementaryInfo: t, tabs: n, ...c }) {
|
|
83
|
+
const { titleId: d } = h() ?? {};
|
|
84
|
+
return /* @__PURE__ */ o(j, { ...c, children: /* @__PURE__ */ D(z, { children: [
|
|
85
|
+
/* @__PURE__ */ D(L, { children: [
|
|
86
|
+
e && /* @__PURE__ */ o(G, { children: e }),
|
|
87
|
+
r && /* @__PURE__ */ o(J, { children: r }),
|
|
88
|
+
/* @__PURE__ */ o(K, { id: d, children: a }),
|
|
89
|
+
t && /* @__PURE__ */ o(Q, { children: t })
|
|
90
|
+
] }),
|
|
91
|
+
n && /* @__PURE__ */ o(W, { children: n })
|
|
92
|
+
] }) });
|
|
93
|
+
}
|
|
94
|
+
i.displayName = "Drawer.Header";
|
|
95
|
+
i.CloseButton = b;
|
|
96
|
+
const U = "el-drawer";
|
|
97
|
+
function V(e) {
|
|
98
|
+
return e.closest("dialog");
|
|
99
|
+
}
|
|
100
|
+
function X(e, r) {
|
|
101
|
+
return m(
|
|
102
|
+
(a) => {
|
|
103
|
+
a.stopPropagation(), e === "none" && a.target === a.currentTarget ? a.preventDefault() : r?.(a);
|
|
104
|
+
},
|
|
105
|
+
[e, r]
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function Y(e) {
|
|
109
|
+
const r = F(null);
|
|
110
|
+
return C(
|
|
111
|
+
function() {
|
|
112
|
+
!r.current || e === void 0 || (e ? r.current.showModal() : r.current.close());
|
|
113
|
+
},
|
|
114
|
+
[e]
|
|
115
|
+
), r;
|
|
116
|
+
}
|
|
117
|
+
function Z(e) {
|
|
118
|
+
const [r, a] = k(!1);
|
|
119
|
+
return C(() => {
|
|
120
|
+
if (!e.current) return;
|
|
121
|
+
const t = e.current;
|
|
122
|
+
a(t.open);
|
|
123
|
+
const n = new MutationObserver(() => {
|
|
124
|
+
a(t.open);
|
|
125
|
+
});
|
|
126
|
+
return n.observe(t, {
|
|
127
|
+
attributeFilter: ["open"]
|
|
128
|
+
}), () => n.disconnect();
|
|
129
|
+
}, [e, a]), r;
|
|
130
|
+
}
|
|
131
|
+
function $(e) {
|
|
132
|
+
return m(
|
|
133
|
+
(r) => {
|
|
134
|
+
r.stopPropagation(), e?.(r);
|
|
135
|
+
},
|
|
136
|
+
[e]
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function l({
|
|
140
|
+
"aria-label": e,
|
|
141
|
+
"aria-labelledby": r,
|
|
142
|
+
children: a,
|
|
143
|
+
className: t,
|
|
144
|
+
closedBy: n = "closerequest",
|
|
145
|
+
isOpen: c,
|
|
146
|
+
onCancel: d,
|
|
147
|
+
onClick: g,
|
|
148
|
+
onClose: y,
|
|
149
|
+
...I
|
|
150
|
+
}) {
|
|
151
|
+
const p = Y(c), A = Z(p), w = R(), v = X(n, d), x = $(y), B = (f) => {
|
|
152
|
+
g?.(f), q(f);
|
|
153
|
+
};
|
|
154
|
+
return /* @__PURE__ */ o(
|
|
155
|
+
"dialog",
|
|
156
|
+
{
|
|
157
|
+
...I,
|
|
158
|
+
"aria-label": e,
|
|
159
|
+
"aria-labelledby": e ? void 0 : r ?? w,
|
|
160
|
+
className: O(U, t),
|
|
161
|
+
closedby: n,
|
|
162
|
+
ref: p,
|
|
163
|
+
onCancel: v,
|
|
164
|
+
onClick: B,
|
|
165
|
+
onClose: x,
|
|
166
|
+
children: /* @__PURE__ */ o(u.Provider, { value: { titleId: w }, children: A && a })
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
l.Body = E;
|
|
171
|
+
l.Footer = H;
|
|
172
|
+
l.Header = i;
|
|
173
|
+
l.HeaderCloseButton = i.CloseButton;
|
|
174
|
+
l.Context = u;
|
|
175
|
+
l.useContext = h;
|
|
176
|
+
l.getClosestDialogElement = V;
|
|
177
|
+
export {
|
|
178
|
+
E as D,
|
|
179
|
+
M as E,
|
|
180
|
+
u as a,
|
|
181
|
+
l as b,
|
|
182
|
+
H as c,
|
|
183
|
+
P as d,
|
|
184
|
+
b as e,
|
|
185
|
+
i as f,
|
|
186
|
+
ie as g,
|
|
187
|
+
j as h,
|
|
188
|
+
W as i,
|
|
189
|
+
z as j,
|
|
190
|
+
L as k,
|
|
191
|
+
G as l,
|
|
192
|
+
J as m,
|
|
193
|
+
K as n,
|
|
194
|
+
Q as o,
|
|
195
|
+
U as p,
|
|
196
|
+
V as q,
|
|
197
|
+
X as r,
|
|
198
|
+
Y as s,
|
|
199
|
+
Z as t,
|
|
200
|
+
h as u,
|
|
201
|
+
$ as v
|
|
202
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./index-BAGJrh44.cjs"),h=require("./tooltip-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("./index-BAGJrh44.cjs"),h=require("./tooltip-BU8hYqZ9.cjs"),c=require("react"),B=require("./icons/bath.cjs"),b=require("./icons/bed.cjs"),q=require("./icons/car.cjs"),S=require("./icons/land-size.cjs"),i=r.styled_default("div")({name:"ElFeatureItem",class:"el-feature-item",propsAsIs:!1}),d=r.styled_default("dt")({name:"ElFeatureItemIcon",class:"el-feature-item-icon",propsAsIs:!1}),m=r.styled_default("dd")({name:"ElFeatureItemValue",class:"el-feature-item-value",propsAsIs:!1});function s({icon:t,id:n,label:o,value:j,...E}){const u=c.useId(),l=n??c.useId();return e.jsxs(i,{...E,id:l,children:[e.jsx(d,{"aria-labelledby":u,children:t}),e.jsx(m,{children:j}),e.jsx(h.Tooltip,{id:u,placement:"top",triggerId:l,children:o})]})}s.displayName="Features.Item";function I({value:t}){return e.jsx(s,{icon:e.jsx(B.BathIcon,{}),label:"Bathrooms",value:t})}function F({value:t}){return e.jsx(s,{icon:e.jsx(b.BedIcon,{}),label:"Bedrooms",value:t})}function p({value:t}){return e.jsx(s,{icon:e.jsx(q.CarIcon,{}),label:"Car spaces",value:t})}function f({value:t}){return e.jsx(s,{icon:e.jsx(S.LandSizeIcon,{}),label:"Land size",value:t})}const x=r.styled_default("dl")({name:"ElFeatures",class:"el-features",propsAsIs:!1});function a({size:t,wrap:n,...o}){return e.jsx(x,{...o,"data-size":t,"data-wrap":n})}a.Bathrooms=I;a.Bedrooms=F;a.CarSpaces=p;a.LandSize=f;a.Item=s;exports.ElFeatureItem=i;exports.ElFeatureItemIcon=d;exports.ElFeatureItemValue=m;exports.ElFeatures=x;exports.FeatureItem=s;exports.Features=a;exports.FeaturesBathroomsItem=I;exports.FeaturesBedroomsItem=F;exports.FeaturesCarSpacesItem=p;exports.FeaturesLandSizeItem=f;
|