themelia-react-ui 2.0.2 → 2.0.3
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/CHANGELOG.md +17 -7
- package/README.md +9 -13
- package/THIRD_PARTY_NOTICES.md +6 -12
- package/dist/{auth-ax2BqjrI.js → auth-BGua8ouh.js} +2 -2
- package/dist/{auth-ax2BqjrI.js.map → auth-BGua8ouh.js.map} +1 -1
- package/dist/base/cascader.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/value-inputs.js +1 -1
- package/dist/blocks/commerce.js +1 -1
- package/dist/{combobox-xCQ2RMNE.js → combobox-DaHESuiL.js} +154 -108
- package/dist/combobox-DaHESuiL.js.map +1 -0
- package/dist/{combobox-C0EQW6dr.js → combobox-Dxo2fAYQ.js} +342 -340
- package/dist/combobox-Dxo2fAYQ.js.map +1 -0
- package/dist/{comments-BYYlTA8E.js → comments-DD0DUPwJ.js} +4 -4
- package/dist/{comments-BYYlTA8E.js.map → comments-DD0DUPwJ.js.map} +1 -1
- package/dist/components/base/combobox/combobox-field.d.ts +16 -0
- package/dist/components/ui/combobox-dismiss.d.ts +16 -0
- package/dist/components/ui/combobox.d.ts +11 -6
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/{date-picker-ay0Pha_a.js → date-picker-B2K3ucWn.js} +2 -2
- package/dist/{date-picker-ay0Pha_a.js.map → date-picker-B2K3ucWn.js.map} +1 -1
- package/dist/{date-pickers-Ccw8DL2b.js → date-pickers-Ds8gLaoP.js} +3 -3
- package/dist/{date-pickers-Ccw8DL2b.js.map → date-pickers-Ds8gLaoP.js.map} +1 -1
- package/dist/features/activities.js +2 -2
- package/dist/features/async-preview.js +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +2 -2
- package/dist/features/email-composer.js +2 -2
- package/dist/features/event-calendar.js +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +1 -1
- package/dist/features/map.js +1 -1
- package/dist/features/media-library.js +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1 -1
- package/dist/features/resource-assignment.js +1 -1
- package/dist/features/schema-form.js +1 -1
- package/dist/features/suggestions.js +1 -1
- package/dist/features/theme-tweaker.js +2 -2
- package/dist/{filters-BGfvjP4d.js → filters-DJVAveHA.js} +4 -4
- package/dist/{filters-BGfvjP4d.js.map → filters-DJVAveHA.js.map} +1 -1
- package/dist/{header-CGXuhcRm.js → header-BSfIEWbI.js} +4 -4
- package/dist/{header-CGXuhcRm.js.map → header-BSfIEWbI.js.map} +1 -1
- package/dist/{hooks-Dkz0K2WT.js → hooks-ClH9thn4.js} +2 -2
- package/dist/{hooks-Dkz0K2WT.js.map → hooks-ClH9thn4.js.map} +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +6 -6
- package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
- package/dist/{mentions-utuUvH1K.js → mentions-CGlEJ15c.js} +2 -2
- package/dist/{mentions-utuUvH1K.js.map → mentions-CGlEJ15c.js.map} +1 -1
- package/dist/{overlays-DNWmZrJ4.js → overlays-tMkF-VAN.js} +270 -268
- package/dist/overlays-tMkF-VAN.js.map +1 -0
- package/dist/{page-Bgl1F560.js → page-CL9YeH_V.js} +2 -2
- package/dist/{page-Bgl1F560.js.map → page-CL9YeH_V.js.map} +1 -1
- package/dist/{popover-7_m66eYW.js → popover-gnTOhbFM.js} +62 -60
- package/dist/popover-gnTOhbFM.js.map +1 -0
- package/dist/{popover-menu-B9WWygpa.js → popover-menu-Cn9rUkdc.js} +2 -2
- package/dist/{popover-menu-B9WWygpa.js.map → popover-menu-Cn9rUkdc.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{sheet-CGpB3omz.js → sheet-ijlsjq-n.js} +70 -68
- package/dist/sheet-ijlsjq-n.js.map +1 -0
- package/dist/{sidebar-CPx_7YBa.js → sidebar-Db6gkh3U.js} +2 -2
- package/dist/{sidebar-CPx_7YBa.js.map → sidebar-Db6gkh3U.js.map} +1 -1
- package/dist/{sidebar-A0ElHINE.js → sidebar-DkTO4VTO.js} +3 -3
- package/dist/{sidebar-A0ElHINE.js.map → sidebar-DkTO4VTO.js.map} +1 -1
- package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
- package/dist/{value-inputs-DXPDjvBU.js → value-inputs-TaX4OjNk.js} +3 -3
- package/dist/{value-inputs-DXPDjvBU.js.map → value-inputs-TaX4OjNk.js.map} +1 -1
- package/dist/{workspace-Cdrg7k9f.js → workspace-B-OEm3Kf.js} +2 -2
- package/dist/{workspace-Cdrg7k9f.js.map → workspace-B-OEm3Kf.js.map} +1 -1
- package/docs/consumer-skill/SKILL.md +1 -1
- package/docs/consumer-skill/references/agents-md.md +1 -1
- package/docs/consumer-skill/references/installation.md +6 -0
- package/docs/consumer-skill/references/public-api.json +2 -2
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +5 -4
- package/package.json +3 -3
- package/dist/combobox-C0EQW6dr.js.map +0 -1
- package/dist/combobox-xCQ2RMNE.js.map +0 -1
- package/dist/overlays-DNWmZrJ4.js.map +0 -1
- package/dist/popover-7_m66eYW.js.map +0 -1
- package/dist/sheet-CGpB3omz.js.map +0 -1
|
@@ -3,7 +3,7 @@ import { d as e } from "./ui-provider-C_U0Xma4.js";
|
|
|
3
3
|
import { r as t } from "./theme-scope-BJ6eE2xt.js";
|
|
4
4
|
import { useStrings as n } from "./lib/strings.js";
|
|
5
5
|
import { t as r } from "./utils-BRhFDwuU.js";
|
|
6
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./sheet-
|
|
6
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./sheet-ijlsjq-n.js";
|
|
7
7
|
import { n as m } from "./buttons-DPZekJFu.js";
|
|
8
8
|
import { c as h } from "./typography-UTnveOEy.js";
|
|
9
9
|
import { a as g, i as _, s as v } from "./text.styles-g4He6UIW.js";
|
|
@@ -15,67 +15,69 @@ import { i as C } from "./tone-recipes-BPsRAvhu.js";
|
|
|
15
15
|
import { h as ee, p as te } from "./smart-card-DiC5aac3.js";
|
|
16
16
|
import { a as w, r as T } from "./surface-recipes-BKRVW8Os.js";
|
|
17
17
|
import { t as E } from "./overlay.recipes-8GHqmlb4.js";
|
|
18
|
+
import { t as D } from "./use-popup-focus-recovery-C0QPvgOR.js";
|
|
18
19
|
import { t as ne } from "./interaction-recipes-XR9ZpVYL.js";
|
|
19
|
-
import * as
|
|
20
|
-
import { isValidElement as re, memo as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { AlertCircle as
|
|
23
|
-
import { Dialog as
|
|
24
|
-
import { AlertDialog as
|
|
20
|
+
import * as O from "react";
|
|
21
|
+
import { isValidElement as re, memo as k, useCallback as A, useLayoutEffect as j, useMemo as M, useRef as N, useState as P } from "react";
|
|
22
|
+
import { jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
23
|
+
import { AlertCircle as L, AlertTriangle as R, CheckCircle as z, HelpCircle as B, Info as V, X as ie, XIcon as H } from "lucide-react";
|
|
24
|
+
import { Dialog as U } from "@base-ui/react/dialog";
|
|
25
|
+
import { AlertDialog as W } from "@base-ui/react/alert-dialog";
|
|
25
26
|
//#region src/components/ui/dialog.tsx
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
function G({ ...e }) {
|
|
28
|
+
return /* @__PURE__ */ F(U.Root, {
|
|
28
29
|
"data-slot": "dialog",
|
|
29
30
|
modal: "trap-focus",
|
|
30
31
|
...e
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
let n = e ? /* @__PURE__ */
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
function K({ asChild: e = !1, ...t }) {
|
|
35
|
+
let n = e ? /* @__PURE__ */ F(b, {}) : void 0;
|
|
36
|
+
return /* @__PURE__ */ F(U.Trigger, {
|
|
36
37
|
"data-slot": "dialog-trigger",
|
|
37
38
|
render: n,
|
|
38
39
|
...t
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function q({ container: e, ...n }) {
|
|
42
43
|
let r = t(e);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ F(U.Portal, {
|
|
44
45
|
container: r,
|
|
45
46
|
"data-slot": "dialog-portal",
|
|
46
47
|
...n
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
function J({ ...e }) {
|
|
51
|
+
return /* @__PURE__ */ F(U.Close, {
|
|
51
52
|
"data-slot": "dialog-close",
|
|
52
53
|
...e
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
function Y({ className: e, ...t }) {
|
|
57
|
+
return /* @__PURE__ */ F(U.Backdrop, {
|
|
57
58
|
"data-slot": "dialog-overlay",
|
|
58
59
|
className: r(E, y.backdrop, "isolate", e),
|
|
59
60
|
...t
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
let
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
container:
|
|
66
|
-
children: [/* @__PURE__ */
|
|
63
|
+
function X({ className: e, container: n, children: i, showCloseButton: a = !0, onFocusCapture: o, ...s }) {
|
|
64
|
+
let c = t(n), l = D(o);
|
|
65
|
+
return /* @__PURE__ */ I(q, {
|
|
66
|
+
container: c,
|
|
67
|
+
children: [/* @__PURE__ */ F(Y, {}), /* @__PURE__ */ I(U.Popup, {
|
|
67
68
|
"data-slot": "dialog-content",
|
|
68
69
|
className: r(y.dialog, "bg-background grid max-w-[calc(100%-2rem)] gap-space-xl rounded-radius p-surface text-sm sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none", e),
|
|
69
|
-
...
|
|
70
|
-
|
|
70
|
+
...s,
|
|
71
|
+
onFocusCapture: l,
|
|
72
|
+
children: [i, !!a && /* @__PURE__ */ I(U.Close, {
|
|
71
73
|
"data-slot": "dialog-close",
|
|
72
|
-
render: /* @__PURE__ */
|
|
74
|
+
render: /* @__PURE__ */ F(x, {
|
|
73
75
|
variant: "ghost",
|
|
74
76
|
"data-overlay-close": "",
|
|
75
77
|
className: p.close,
|
|
76
78
|
size: "icon-sm"
|
|
77
79
|
}),
|
|
78
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ F(H, {}), /* @__PURE__ */ F("span", {
|
|
79
81
|
className: "sr-only",
|
|
80
82
|
children: "Close"
|
|
81
83
|
})]
|
|
@@ -83,27 +85,27 @@ function J({ className: e, container: n, children: i, showCloseButton: a = !0, .
|
|
|
83
85
|
})]
|
|
84
86
|
});
|
|
85
87
|
}
|
|
86
|
-
function
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
+
function Z({ className: e, ...t }) {
|
|
89
|
+
return /* @__PURE__ */ F("div", {
|
|
88
90
|
"data-slot": "dialog-header",
|
|
89
91
|
className: r("flex flex-col", e),
|
|
90
92
|
...t
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
|
-
function
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
+
function Q({ className: e, showCloseButton: t = !1, children: n, ...i }) {
|
|
96
|
+
return /* @__PURE__ */ I("div", {
|
|
95
97
|
"data-slot": "dialog-footer",
|
|
96
98
|
className: r("flex flex-col-reverse sm:flex-row sm:justify-end", e),
|
|
97
99
|
...i,
|
|
98
|
-
children: [n, !!t && /* @__PURE__ */
|
|
99
|
-
render: /* @__PURE__ */
|
|
100
|
+
children: [n, !!t && /* @__PURE__ */ F(U.Close, {
|
|
101
|
+
render: /* @__PURE__ */ F(x, { variant: "outline" }),
|
|
100
102
|
children: "Close"
|
|
101
103
|
})]
|
|
102
104
|
});
|
|
103
105
|
}
|
|
104
|
-
function
|
|
105
|
-
let i = t ? /* @__PURE__ */
|
|
106
|
-
return /* @__PURE__ */
|
|
106
|
+
function ae({ className: e, asChild: t = !1, ...n }) {
|
|
107
|
+
let i = t ? /* @__PURE__ */ F(b, {}) : void 0;
|
|
108
|
+
return /* @__PURE__ */ F(U.Title, {
|
|
107
109
|
"data-slot": "dialog-title",
|
|
108
110
|
render: i,
|
|
109
111
|
className: r("leading-none font-medium", e),
|
|
@@ -111,8 +113,8 @@ function Z({ className: e, asChild: t = !1, ...n }) {
|
|
|
111
113
|
});
|
|
112
114
|
}
|
|
113
115
|
function oe({ className: e, asChild: t = !1, ...n }) {
|
|
114
|
-
let i = t ? /* @__PURE__ */
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
+
let i = t ? /* @__PURE__ */ F(b, {}) : void 0;
|
|
117
|
+
return /* @__PURE__ */ F(U.Description, {
|
|
116
118
|
"data-slot": "dialog-description",
|
|
117
119
|
render: i,
|
|
118
120
|
className: r("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", e),
|
|
@@ -121,44 +123,44 @@ function oe({ className: e, asChild: t = !1, ...n }) {
|
|
|
121
123
|
}
|
|
122
124
|
//#endregion
|
|
123
125
|
//#region src/components/base/display/dialog.tsx
|
|
124
|
-
function
|
|
126
|
+
function $(e) {
|
|
125
127
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
126
128
|
}
|
|
127
|
-
var
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
+
var se = r(g.base, v.semibold, _.snug), ce = G, le = O.forwardRef(function({ className: e, ...t }, n) {
|
|
130
|
+
return /* @__PURE__ */ F(K, {
|
|
129
131
|
ref: n,
|
|
130
132
|
className: r("dialog-trigger--component", e),
|
|
131
133
|
...t
|
|
132
134
|
});
|
|
133
135
|
});
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
return /* @__PURE__ */
|
|
136
|
+
le.displayName = "DialogTrigger";
|
|
137
|
+
var ue = O.forwardRef(function({ className: e, ...t }, n) {
|
|
138
|
+
return /* @__PURE__ */ F(J, {
|
|
137
139
|
ref: n,
|
|
138
140
|
className: r("dialog-close--component active:translate-y-0!", e),
|
|
139
141
|
...t
|
|
140
142
|
});
|
|
141
143
|
});
|
|
142
|
-
|
|
143
|
-
var
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
ue.displayName = "DialogClose";
|
|
145
|
+
var de = O.forwardRef(function({ className: e, ...t }, n) {
|
|
146
|
+
return /* @__PURE__ */ F(X, {
|
|
145
147
|
ref: n,
|
|
146
148
|
className: r("dialog-content--component flex max-h-[min(90vh,48rem)] flex-col gap-0 overflow-hidden rounded-radius bg-popover p-0 text-popover-foreground shadow-xl sm:max-w-lg [&_[data-slot=dialog-close]]:active:translate-y-0!", w.modal.shell, e),
|
|
147
149
|
...t
|
|
148
150
|
});
|
|
149
151
|
});
|
|
150
|
-
|
|
151
|
-
var
|
|
152
|
-
return /* @__PURE__ */
|
|
152
|
+
de.displayName = "DialogContent";
|
|
153
|
+
var fe = O.forwardRef(function({ className: e, textGap: t = "normal", ...n }, i) {
|
|
154
|
+
return /* @__PURE__ */ F(Z, {
|
|
153
155
|
ref: i,
|
|
154
156
|
"data-modal-region": "",
|
|
155
157
|
className: r("dialog-header--component", T.header, p.header, t === "dense" ? "gap-dense" : "gap-normal", e),
|
|
156
158
|
...n
|
|
157
159
|
});
|
|
158
160
|
});
|
|
159
|
-
|
|
160
|
-
var
|
|
161
|
-
return /* @__PURE__ */
|
|
161
|
+
fe.displayName = "DialogHeader";
|
|
162
|
+
var pe = O.forwardRef(function({ className: e, ...t }, n) {
|
|
163
|
+
return /* @__PURE__ */ F("div", {
|
|
162
164
|
ref: n,
|
|
163
165
|
"data-slot": "dialog-body",
|
|
164
166
|
"data-modal-region": "",
|
|
@@ -166,22 +168,22 @@ var fe = D.forwardRef(function({ className: e, ...t }, n) {
|
|
|
166
168
|
...t
|
|
167
169
|
});
|
|
168
170
|
});
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
pe.displayName = "DialogBody";
|
|
172
|
+
var me = O.forwardRef(function({ className: e, ...t }, n) {
|
|
173
|
+
return /* @__PURE__ */ F(Q, {
|
|
172
174
|
ref: n,
|
|
173
175
|
"data-modal-region": "",
|
|
174
176
|
className: r("dialog-footer--component", T.footer, e),
|
|
175
177
|
...t
|
|
176
178
|
});
|
|
177
179
|
});
|
|
178
|
-
|
|
179
|
-
var
|
|
180
|
-
return /* @__PURE__ */
|
|
180
|
+
me.displayName = "DialogFooter";
|
|
181
|
+
var he = O.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
182
|
+
return /* @__PURE__ */ F(ae, {
|
|
181
183
|
ref: i,
|
|
182
|
-
className: r("dialog-title--component m-0",
|
|
184
|
+
className: r("dialog-title--component m-0", se, t),
|
|
183
185
|
...n,
|
|
184
|
-
children:
|
|
186
|
+
children: $(e) ? /* @__PURE__ */ F(h, {
|
|
185
187
|
tag: "span",
|
|
186
188
|
type: "inherit",
|
|
187
189
|
size: "base",
|
|
@@ -192,13 +194,13 @@ var me = D.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
|
192
194
|
}) : e
|
|
193
195
|
});
|
|
194
196
|
});
|
|
195
|
-
|
|
196
|
-
var
|
|
197
|
-
return /* @__PURE__ */
|
|
197
|
+
he.displayName = "DialogTitle";
|
|
198
|
+
var ge = O.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
199
|
+
return /* @__PURE__ */ F(oe, {
|
|
198
200
|
ref: i,
|
|
199
201
|
className: r("dialog-description--component m-0", t),
|
|
200
202
|
...n,
|
|
201
|
-
children:
|
|
203
|
+
children: $(e) ? /* @__PURE__ */ F(h, {
|
|
202
204
|
tag: "span",
|
|
203
205
|
type: "secondary",
|
|
204
206
|
lineHeight: "relaxed",
|
|
@@ -207,10 +209,10 @@ var he = D.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
|
207
209
|
}) : e
|
|
208
210
|
});
|
|
209
211
|
});
|
|
210
|
-
|
|
212
|
+
ge.displayName = "DialogDescription";
|
|
211
213
|
//#endregion
|
|
212
214
|
//#region src/components/features/overlays/overlays.strings.ts
|
|
213
|
-
var
|
|
215
|
+
var _e = {
|
|
214
216
|
confirm: "Confirm",
|
|
215
217
|
cancel: "Cancel",
|
|
216
218
|
close: "Close",
|
|
@@ -218,7 +220,7 @@ var ge = {
|
|
|
218
220
|
dialogLabel: "Dialog",
|
|
219
221
|
drawerLabel: "Drawer",
|
|
220
222
|
alertDialogLabel: "Confirmation"
|
|
221
|
-
},
|
|
223
|
+
}, ve = {
|
|
222
224
|
confirm: "Continue",
|
|
223
225
|
cancel: "Cancel",
|
|
224
226
|
close: "Close",
|
|
@@ -229,8 +231,8 @@ var ge = {
|
|
|
229
231
|
};
|
|
230
232
|
//#endregion
|
|
231
233
|
//#region src/components/features/overlays/hooks/use-overlay-actions.ts
|
|
232
|
-
function
|
|
233
|
-
let p = n(
|
|
234
|
+
function ye({ closeDialog: e, onConfirm: t, onAsyncConfirm: r, closeOnAsyncComplete: i = !0, confirmTone: a = "primary", loading: o = !1, formId: s, onCancel: c, customStrings: l, emphasis: u = !1, tone: d = "neutral", onError: f }) {
|
|
235
|
+
let p = n(_e, l), [m, h] = P(!1), g = N(!1), _ = A(async () => {
|
|
234
236
|
if (!(o || g.current)) {
|
|
235
237
|
if (t) {
|
|
236
238
|
t(), e();
|
|
@@ -256,13 +258,13 @@ function ve({ closeDialog: e, onConfirm: t, onAsyncConfirm: r, closeOnAsyncCompl
|
|
|
256
258
|
i,
|
|
257
259
|
e,
|
|
258
260
|
f
|
|
259
|
-
]), v =
|
|
261
|
+
]), v = A(() => {
|
|
260
262
|
o || g.current || (c?.(), e());
|
|
261
263
|
}, [
|
|
262
264
|
o,
|
|
263
265
|
c,
|
|
264
266
|
e
|
|
265
|
-
]), y =
|
|
267
|
+
]), y = A(async () => {
|
|
266
268
|
if (!s || o || g.current) return;
|
|
267
269
|
let e = document.getElementById(s);
|
|
268
270
|
e instanceof HTMLFormElement && e.requestSubmit();
|
|
@@ -272,7 +274,7 @@ function ve({ closeDialog: e, onConfirm: t, onAsyncConfirm: r, closeOnAsyncCompl
|
|
|
272
274
|
isExecuting: m,
|
|
273
275
|
handleConfirm: _,
|
|
274
276
|
handleCancel: v,
|
|
275
|
-
finalConfirmTone:
|
|
277
|
+
finalConfirmTone: M(() => u ? d === "destructive" ? "destructive" : d === "warning" ? "warning" : d === "success" ? "success" : a ?? "primary" : a ?? "primary", [
|
|
276
278
|
u,
|
|
277
279
|
d,
|
|
278
280
|
a
|
|
@@ -283,22 +285,22 @@ function ve({ closeDialog: e, onConfirm: t, onAsyncConfirm: r, closeOnAsyncCompl
|
|
|
283
285
|
}
|
|
284
286
|
//#endregion
|
|
285
287
|
//#region src/components/features/overlays/hooks/use-overlay-visibility.ts
|
|
286
|
-
function
|
|
288
|
+
function be(e, t) {
|
|
287
289
|
return typeof e == "function" ? e(t) : e;
|
|
288
290
|
}
|
|
289
|
-
function
|
|
291
|
+
function xe(e, t) {
|
|
290
292
|
let n = {};
|
|
291
293
|
for (let r of e) n[r] = !!t?.[r];
|
|
292
294
|
return n;
|
|
293
295
|
}
|
|
294
|
-
function
|
|
296
|
+
function Se(e, t, n) {
|
|
295
297
|
return n.some((n) => e[n] !== t[n]);
|
|
296
298
|
}
|
|
297
|
-
function
|
|
298
|
-
let [a, o] =
|
|
299
|
+
function Ce({ defaultOpen: e = !1, open: t, onOpenChange: n, onOpen: r, onClose: i } = {}) {
|
|
300
|
+
let [a, o] = P(e), s = t !== void 0, c = s ? t : a, l = N(c);
|
|
299
301
|
l.current = c;
|
|
300
|
-
let u =
|
|
301
|
-
let t =
|
|
302
|
+
let u = A((e) => {
|
|
303
|
+
let t = be(e, l.current), a = l.current !== t;
|
|
302
304
|
s || o(t), a && (l.current = t, n?.(t), t ? r?.() : i?.());
|
|
303
305
|
}, [
|
|
304
306
|
s,
|
|
@@ -310,31 +312,31 @@ function Se({ defaultOpen: e = !1, open: t, onOpenChange: n, onOpen: r, onClose:
|
|
|
310
312
|
open: c,
|
|
311
313
|
isOpen: c,
|
|
312
314
|
setOpen: u,
|
|
313
|
-
show:
|
|
315
|
+
show: A(() => {
|
|
314
316
|
u(!0);
|
|
315
317
|
}, [u]),
|
|
316
|
-
hide:
|
|
318
|
+
hide: A(() => {
|
|
317
319
|
u(!1);
|
|
318
320
|
}, [u]),
|
|
319
|
-
toggle:
|
|
321
|
+
toggle: A(() => {
|
|
320
322
|
u((e) => !e);
|
|
321
323
|
}, [u]),
|
|
322
|
-
overlayProps:
|
|
324
|
+
overlayProps: M(() => ({
|
|
323
325
|
open: c,
|
|
324
326
|
onOpenChange: u
|
|
325
327
|
}), [c, u])
|
|
326
328
|
};
|
|
327
329
|
}
|
|
328
|
-
function
|
|
329
|
-
let a = e, [o, s] =
|
|
330
|
+
function we(e, { defaultOpen: t, open: n, onOpenChange: r, closeOthersOnOpen: i = !1 } = {}) {
|
|
331
|
+
let a = e, [o, s] = P(() => xe(a, t)), c = n !== void 0, l = xe(a, c ? n : o), u = N(l);
|
|
330
332
|
u.current = l;
|
|
331
|
-
let d =
|
|
332
|
-
let n = u.current, o =
|
|
333
|
+
let d = A((e, t) => {
|
|
334
|
+
let n = u.current, o = be(t, n[e]), l = {
|
|
333
335
|
...n,
|
|
334
336
|
[e]: o
|
|
335
337
|
};
|
|
336
338
|
if (i && o) for (let t of a) t !== e && (l[t] = !1);
|
|
337
|
-
let d =
|
|
339
|
+
let d = Se(n, l, a);
|
|
338
340
|
c || s(l), d && (u.current = l, r?.(e, o, l));
|
|
339
341
|
}, [
|
|
340
342
|
i,
|
|
@@ -342,7 +344,7 @@ function Ce(e, { defaultOpen: t, open: n, onOpenChange: r, closeOthersOnOpen: i
|
|
|
342
344
|
a,
|
|
343
345
|
r
|
|
344
346
|
]);
|
|
345
|
-
return
|
|
347
|
+
return M(() => {
|
|
346
348
|
let e = {};
|
|
347
349
|
for (let t of a) {
|
|
348
350
|
let n = l[t], r = (e) => {
|
|
@@ -370,9 +372,9 @@ function Ce(e, { defaultOpen: t, open: n, onOpenChange: r, closeOthersOnOpen: i
|
|
|
370
372
|
}
|
|
371
373
|
//#endregion
|
|
372
374
|
//#region src/components/features/overlays/hooks/use-pending-overlay-focus.ts
|
|
373
|
-
function
|
|
374
|
-
let n =
|
|
375
|
-
return
|
|
375
|
+
function Te(e, t = !0) {
|
|
376
|
+
let n = N(null);
|
|
377
|
+
return j(() => {
|
|
376
378
|
let r = n.current;
|
|
377
379
|
if (!e || !t || !r) return;
|
|
378
380
|
let i = r.ownerDocument.activeElement;
|
|
@@ -381,44 +383,44 @@ function we(e, t = !0) {
|
|
|
381
383
|
}
|
|
382
384
|
//#endregion
|
|
383
385
|
//#region src/components/features/overlays/overlay-tone-icon.tsx
|
|
384
|
-
var
|
|
386
|
+
var Ee = {
|
|
385
387
|
neutral: {
|
|
386
|
-
Glyph:
|
|
388
|
+
Glyph: B,
|
|
387
389
|
color: "text-muted-foreground",
|
|
388
390
|
surface: "bg-muted"
|
|
389
391
|
},
|
|
390
392
|
destructive: {
|
|
391
|
-
Glyph:
|
|
393
|
+
Glyph: L,
|
|
392
394
|
color: "text-destructive",
|
|
393
395
|
surface: C.destructive.tint
|
|
394
396
|
},
|
|
395
397
|
warning: {
|
|
396
|
-
Glyph:
|
|
398
|
+
Glyph: R,
|
|
397
399
|
color: "text-warning-accent",
|
|
398
400
|
surface: C.warning.tint
|
|
399
401
|
},
|
|
400
402
|
info: {
|
|
401
|
-
Glyph:
|
|
403
|
+
Glyph: V,
|
|
402
404
|
color: "text-info",
|
|
403
405
|
surface: C.info.tint
|
|
404
406
|
},
|
|
405
407
|
success: {
|
|
406
|
-
Glyph:
|
|
408
|
+
Glyph: z,
|
|
407
409
|
color: "text-success",
|
|
408
410
|
surface: C.success.tint
|
|
409
411
|
}
|
|
410
412
|
};
|
|
411
|
-
function
|
|
412
|
-
let { Glyph: t, color: n } =
|
|
413
|
-
return /* @__PURE__ */
|
|
413
|
+
function De({ tone: e }) {
|
|
414
|
+
let { Glyph: t, color: n } = Ee[e];
|
|
415
|
+
return /* @__PURE__ */ F("span", {
|
|
414
416
|
"aria-hidden": "true",
|
|
415
417
|
className: r("overlay-tone-icon--component flex h-lh shrink-0 items-center", g.base, _.snug),
|
|
416
|
-
children: /* @__PURE__ */
|
|
418
|
+
children: /* @__PURE__ */ F(t, { className: r("size-icon", n) })
|
|
417
419
|
});
|
|
418
420
|
}
|
|
419
421
|
//#endregion
|
|
420
422
|
//#region src/components/features/overlays/dialog.tsx
|
|
421
|
-
var
|
|
423
|
+
var Oe = {
|
|
422
424
|
xs: "sm:max-w-xs",
|
|
423
425
|
sm: "sm:max-w-sm",
|
|
424
426
|
md: "sm:max-w-md",
|
|
@@ -430,12 +432,12 @@ var De = {
|
|
|
430
432
|
"5xl": "sm:max-w-5xl",
|
|
431
433
|
full: "sm:max-w-[calc(100vw-2rem)]"
|
|
432
434
|
};
|
|
433
|
-
function
|
|
434
|
-
let { defaultDialogAlign: V } = e(), H = (B ?? V ?? "start") === "center", U =
|
|
435
|
+
function ke({ open: t, onOpenChange: n, onClose: i, children: a, title: o, description: s, visuallyHideHeader: c = !1, className: l, contentClassName: u, showCloseButton: d = !0, surfaceStyle: f, initialFocusRef: h, closeOnEscape: g = !0, closeOnBackdropClick: _ = !0, strings: v, showCancel: y = !0, showConfirm: b = !0, onCancel: x, onConfirm: C, onAsyncConfirm: w, onError: T, closeOnAsyncComplete: E = !0, confirmTone: D = "primary", confirmStyle: O = "solid", loading: k = !1, formId: A, footer: j, emphasis: M = !1, tone: N = "neutral", showIcon: P = !1, alertMessage: L, size: R = "lg", trigger: z, align: B }) {
|
|
436
|
+
let { defaultDialogAlign: V } = e(), H = (B ?? V ?? "start") === "center", U = Ce({
|
|
435
437
|
open: t,
|
|
436
438
|
onOpenChange: n,
|
|
437
439
|
onClose: i
|
|
438
|
-
}), { strings: W, finalConfirmTone: G, confirmButtonOnClick: K, effectiveLoading: q, handleCancel:
|
|
440
|
+
}), { strings: W, finalConfirmTone: G, confirmButtonOnClick: K, effectiveLoading: q, handleCancel: J } = ye({
|
|
439
441
|
closeDialog: U.hide,
|
|
440
442
|
onConfirm: C,
|
|
441
443
|
onAsyncConfirm: w,
|
|
@@ -448,8 +450,8 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
448
450
|
customStrings: v,
|
|
449
451
|
emphasis: M,
|
|
450
452
|
tone: N
|
|
451
|
-
}),
|
|
452
|
-
return /* @__PURE__ */
|
|
453
|
+
}), Y = Te(q), X = !!(a || L), Z = y || b || j;
|
|
454
|
+
return /* @__PURE__ */ I(ce, {
|
|
453
455
|
open: U.open,
|
|
454
456
|
modal: !0,
|
|
455
457
|
disablePointerDismissal: q || !_,
|
|
@@ -460,49 +462,49 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
460
462
|
}
|
|
461
463
|
U.setOpen(e);
|
|
462
464
|
},
|
|
463
|
-
children: [!!z && (re(z) ? /* @__PURE__ */
|
|
464
|
-
render: /* @__PURE__ */
|
|
465
|
+
children: [!!z && (re(z) ? /* @__PURE__ */ F(le, { render: z }) : /* @__PURE__ */ F(le, {
|
|
466
|
+
render: /* @__PURE__ */ F(m, {
|
|
465
467
|
type: "button",
|
|
466
468
|
tone: "secondary",
|
|
467
469
|
buttonStyle: "outline"
|
|
468
470
|
}),
|
|
469
471
|
className: "overlay-trigger--fallback",
|
|
470
472
|
children: z
|
|
471
|
-
})), /* @__PURE__ */
|
|
472
|
-
ref:
|
|
473
|
+
})), /* @__PURE__ */ I(de, {
|
|
474
|
+
ref: Y,
|
|
473
475
|
showCloseButton: !1,
|
|
474
476
|
style: f,
|
|
475
477
|
initialFocus: h,
|
|
476
478
|
"aria-label": o ? void 0 : W.dialogLabel,
|
|
477
|
-
className: r("action-dialog--component dialog--component",
|
|
479
|
+
className: r("action-dialog--component dialog--component", Oe[R], l),
|
|
478
480
|
children: [
|
|
479
|
-
!!(o || s) && /* @__PURE__ */
|
|
481
|
+
!!(o || s) && /* @__PURE__ */ F(fe, {
|
|
480
482
|
"data-align": H ? "center" : "start",
|
|
481
483
|
className: r("dialog--header", H && r("text-center", p.headerCentered), c && "sr-only"),
|
|
482
|
-
children: /* @__PURE__ */
|
|
484
|
+
children: /* @__PURE__ */ I(S, {
|
|
483
485
|
direction: H ? "vertical" : "horizontal",
|
|
484
486
|
gap: "sm",
|
|
485
487
|
align: H ? "center" : "start",
|
|
486
488
|
wrap: !1,
|
|
487
|
-
children: [!!
|
|
489
|
+
children: [!!P && /* @__PURE__ */ F(De, { tone: N }), /* @__PURE__ */ I(S, {
|
|
488
490
|
gap: "normal",
|
|
489
491
|
align: H ? "center" : void 0,
|
|
490
492
|
className: r("min-w-0", H ? "w-full" : "flex-1"),
|
|
491
|
-
children: [!!o && /* @__PURE__ */
|
|
493
|
+
children: [!!o && /* @__PURE__ */ F(he, { children: o }), !!s && /* @__PURE__ */ F(ge, { children: s })]
|
|
492
494
|
})]
|
|
493
495
|
})
|
|
494
496
|
}),
|
|
495
|
-
!!
|
|
497
|
+
!!X && /* @__PURE__ */ I(pe, {
|
|
496
498
|
className: r("dialog--body", u),
|
|
497
|
-
children: [!!L && /* @__PURE__ */
|
|
499
|
+
children: [!!L && /* @__PURE__ */ F(te, {
|
|
498
500
|
tone: N,
|
|
499
501
|
className: "mb-space-md",
|
|
500
|
-
children: /* @__PURE__ */
|
|
502
|
+
children: /* @__PURE__ */ F(ee, { children: L })
|
|
501
503
|
}), a]
|
|
502
504
|
}),
|
|
503
|
-
!!
|
|
505
|
+
!!Z && /* @__PURE__ */ F(me, {
|
|
504
506
|
className: "dialog--footer",
|
|
505
|
-
children: j ?? /* @__PURE__ */
|
|
507
|
+
children: j ?? /* @__PURE__ */ I(S, {
|
|
506
508
|
direction: {
|
|
507
509
|
base: "vertical",
|
|
508
510
|
sm: "horizontal"
|
|
@@ -514,14 +516,14 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
514
516
|
},
|
|
515
517
|
justify: H ? "center" : "end",
|
|
516
518
|
className: "w-full",
|
|
517
|
-
children: [!!y && /* @__PURE__ */
|
|
519
|
+
children: [!!y && /* @__PURE__ */ F(m, {
|
|
518
520
|
type: "button",
|
|
519
521
|
tone: "secondary",
|
|
520
522
|
buttonStyle: "outline",
|
|
521
|
-
onClick:
|
|
523
|
+
onClick: J,
|
|
522
524
|
disabled: q,
|
|
523
525
|
children: W.cancel
|
|
524
|
-
}), !!b && /* @__PURE__ */
|
|
526
|
+
}), !!b && /* @__PURE__ */ F(m, {
|
|
525
527
|
type: "button",
|
|
526
528
|
tone: G,
|
|
527
529
|
buttonStyle: O,
|
|
@@ -533,9 +535,9 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
533
535
|
})]
|
|
534
536
|
})
|
|
535
537
|
}),
|
|
536
|
-
!!d && /* @__PURE__ */
|
|
538
|
+
!!d && /* @__PURE__ */ F(ue, {
|
|
537
539
|
disabled: q,
|
|
538
|
-
render: /* @__PURE__ */
|
|
540
|
+
render: /* @__PURE__ */ F(m, {
|
|
539
541
|
type: "button",
|
|
540
542
|
tone: "secondary",
|
|
541
543
|
buttonStyle: "ghost",
|
|
@@ -543,7 +545,7 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
543
545
|
iconOnly: !0,
|
|
544
546
|
"data-overlay-close": "",
|
|
545
547
|
className: r(p.close, `z-10 text-muted-foreground ${ne.rowHover}`),
|
|
546
|
-
children: /* @__PURE__ */
|
|
548
|
+
children: /* @__PURE__ */ F(ie, { className: "size-icon" })
|
|
547
549
|
}),
|
|
548
550
|
"aria-label": W.close
|
|
549
551
|
})
|
|
@@ -551,11 +553,11 @@ function Oe({ open: t, onOpenChange: n, onClose: i, children: a, title: o, descr
|
|
|
551
553
|
})]
|
|
552
554
|
});
|
|
553
555
|
}
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
+
var Ae = k(ke);
|
|
557
|
+
Ae.displayName = "ActionDialog";
|
|
556
558
|
//#endregion
|
|
557
559
|
//#region src/components/features/overlays/drawer.tsx
|
|
558
|
-
var
|
|
560
|
+
var je = {
|
|
559
561
|
xs: "data-[side=left]:sm:max-w-xs data-[side=right]:sm:max-w-xs",
|
|
560
562
|
sm: "data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
|
|
561
563
|
md: "data-[side=left]:sm:max-w-md data-[side=right]:sm:max-w-md",
|
|
@@ -567,17 +569,17 @@ var Ae = {
|
|
|
567
569
|
"5xl": "data-[side=left]:sm:max-w-5xl data-[side=right]:sm:max-w-5xl",
|
|
568
570
|
full: "data-[side=left]:sm:max-w-[calc(100vw-2rem)] data-[side=right]:sm:max-w-[calc(100vw-2rem)]"
|
|
569
571
|
};
|
|
570
|
-
function
|
|
571
|
-
let
|
|
572
|
+
function Me({ open: e, onOpenChange: t, onClose: n, children: h, title: g, description: _, visuallyHideHeader: v = !1, showCloseButton: y = !0, className: b, contentClassName: x, surfaceStyle: C, initialFocusRef: w, closeOnEscape: T = !0, closeOnBackdropClick: E = !0, strings: D, showCancel: O = !0, showConfirm: k = !0, onCancel: A, onConfirm: j, onAsyncConfirm: M, onError: N, closeOnAsyncComplete: P = !0, confirmTone: L = "primary", confirmStyle: R = "solid", loading: z = !1, formId: B, footer: V, emphasis: H = !1, tone: U = "neutral", showIcon: W = !1, alertMessage: G, direction: K = "right", width: q = "lg", showFooter: J = !0, modal: Y = !0, trigger: X }) {
|
|
573
|
+
let Z = Ce({
|
|
572
574
|
open: e,
|
|
573
575
|
onOpenChange: t,
|
|
574
576
|
onClose: n
|
|
575
|
-
}), { strings:
|
|
576
|
-
closeDialog:
|
|
577
|
+
}), { strings: Q, finalConfirmTone: ae, confirmButtonOnClick: oe, effectiveLoading: $, handleCancel: se } = ye({
|
|
578
|
+
closeDialog: Z.hide,
|
|
577
579
|
onConfirm: j,
|
|
578
580
|
onAsyncConfirm: M,
|
|
579
581
|
onError: N,
|
|
580
|
-
closeOnAsyncComplete:
|
|
582
|
+
closeOnAsyncComplete: P,
|
|
581
583
|
confirmTone: L,
|
|
582
584
|
loading: z,
|
|
583
585
|
formId: B,
|
|
@@ -585,61 +587,61 @@ function je({ open: e, onOpenChange: t, onClose: n, children: h, title: g, descr
|
|
|
585
587
|
customStrings: D,
|
|
586
588
|
emphasis: H,
|
|
587
589
|
tone: U
|
|
588
|
-
}),
|
|
589
|
-
return /* @__PURE__ */
|
|
590
|
-
open:
|
|
591
|
-
modal:
|
|
592
|
-
disablePointerDismissal:
|
|
590
|
+
}), ce = K === "left" || K === "right", le = Te($, Y), ue = !!(h || G), de = J && (O || k || V);
|
|
591
|
+
return /* @__PURE__ */ I(f, {
|
|
592
|
+
open: Z.open,
|
|
593
|
+
modal: Y,
|
|
594
|
+
disablePointerDismissal: $ || !E || Y === !1,
|
|
593
595
|
onOpenChange: (e, t) => {
|
|
594
|
-
if (!e && (
|
|
596
|
+
if (!e && ($ || t.reason === "escape-key" && !T)) {
|
|
595
597
|
t.cancel();
|
|
596
598
|
return;
|
|
597
599
|
}
|
|
598
|
-
|
|
600
|
+
Z.setOpen(e);
|
|
599
601
|
},
|
|
600
|
-
children: [!!
|
|
601
|
-
render: /* @__PURE__ */
|
|
602
|
+
children: [!!X && (re(X) ? /* @__PURE__ */ F(s, { render: X }) : /* @__PURE__ */ F(s, {
|
|
603
|
+
render: /* @__PURE__ */ F(m, {
|
|
602
604
|
type: "button",
|
|
603
605
|
tone: "secondary",
|
|
604
606
|
buttonStyle: "outline"
|
|
605
607
|
}),
|
|
606
608
|
className: "overlay-trigger--fallback",
|
|
607
|
-
children:
|
|
608
|
-
})), /* @__PURE__ */
|
|
609
|
+
children: X
|
|
610
|
+
})), /* @__PURE__ */ I(o, {
|
|
609
611
|
ref: le,
|
|
610
612
|
side: K,
|
|
611
613
|
showCloseButton: !1,
|
|
612
614
|
style: C,
|
|
613
615
|
initialFocus: w,
|
|
614
|
-
"aria-label": g ? void 0 :
|
|
615
|
-
"data-modal":
|
|
616
|
-
className: r("action-drawer--component drawer--component",
|
|
616
|
+
"aria-label": g ? void 0 : Q.drawerLabel,
|
|
617
|
+
"data-modal": Y === !1 ? "false" : void 0,
|
|
618
|
+
className: r("action-drawer--component drawer--component", ce && "data-[side=left]:w-full data-[side=right]:w-full", ce && je[q], b),
|
|
617
619
|
children: [
|
|
618
|
-
!!(g || _) && /* @__PURE__ */
|
|
620
|
+
!!(g || _) && /* @__PURE__ */ F(d, {
|
|
619
621
|
className: r("drawer--header", v && "sr-only"),
|
|
620
|
-
children: /* @__PURE__ */
|
|
622
|
+
children: /* @__PURE__ */ I(S, {
|
|
621
623
|
direction: "horizontal",
|
|
622
624
|
gap: "sm",
|
|
623
625
|
align: "start",
|
|
624
626
|
wrap: !1,
|
|
625
|
-
children: [!!W && /* @__PURE__ */
|
|
627
|
+
children: [!!W && /* @__PURE__ */ F(De, { tone: U }), /* @__PURE__ */ I(S, {
|
|
626
628
|
gap: "normal",
|
|
627
629
|
className: "min-w-0 flex-1",
|
|
628
|
-
children: [!!g && /* @__PURE__ */
|
|
630
|
+
children: [!!g && /* @__PURE__ */ F(a, { children: g }), !!_ && /* @__PURE__ */ F(i, { children: _ })]
|
|
629
631
|
})]
|
|
630
632
|
})
|
|
631
633
|
}),
|
|
632
|
-
!!ue && /* @__PURE__ */
|
|
634
|
+
!!ue && /* @__PURE__ */ I(c, {
|
|
633
635
|
className: r("drawer--body", x),
|
|
634
|
-
children: [!!G && /* @__PURE__ */
|
|
636
|
+
children: [!!G && /* @__PURE__ */ F(te, {
|
|
635
637
|
tone: U,
|
|
636
638
|
className: "mb-space-md",
|
|
637
|
-
children: /* @__PURE__ */
|
|
639
|
+
children: /* @__PURE__ */ F(ee, { children: G })
|
|
638
640
|
}), h]
|
|
639
641
|
}),
|
|
640
|
-
!!de && /* @__PURE__ */
|
|
642
|
+
!!de && /* @__PURE__ */ F(l, {
|
|
641
643
|
className: "drawer--footer",
|
|
642
|
-
children: V ?? /* @__PURE__ */
|
|
644
|
+
children: V ?? /* @__PURE__ */ I(S, {
|
|
643
645
|
direction: {
|
|
644
646
|
base: "vertical",
|
|
645
647
|
sm: "horizontal"
|
|
@@ -651,28 +653,28 @@ function je({ open: e, onOpenChange: t, onClose: n, children: h, title: g, descr
|
|
|
651
653
|
},
|
|
652
654
|
justify: "end",
|
|
653
655
|
className: "w-full",
|
|
654
|
-
children: [!!O && /* @__PURE__ */
|
|
656
|
+
children: [!!O && /* @__PURE__ */ F(m, {
|
|
655
657
|
type: "button",
|
|
656
658
|
tone: "secondary",
|
|
657
659
|
buttonStyle: "outline",
|
|
658
|
-
onClick:
|
|
659
|
-
disabled:
|
|
660
|
-
children:
|
|
661
|
-
}), !!k && /* @__PURE__ */
|
|
660
|
+
onClick: se,
|
|
661
|
+
disabled: $,
|
|
662
|
+
children: Q.cancel
|
|
663
|
+
}), !!k && /* @__PURE__ */ F(m, {
|
|
662
664
|
type: "button",
|
|
663
|
-
tone:
|
|
665
|
+
tone: ae,
|
|
664
666
|
buttonStyle: R,
|
|
665
|
-
onClick:
|
|
666
|
-
disabled:
|
|
667
|
-
loading:
|
|
668
|
-
strings: { loading:
|
|
669
|
-
children:
|
|
667
|
+
onClick: oe,
|
|
668
|
+
disabled: $,
|
|
669
|
+
loading: $,
|
|
670
|
+
strings: { loading: Q.loading },
|
|
671
|
+
children: Q.confirm
|
|
670
672
|
})]
|
|
671
673
|
})
|
|
672
674
|
}),
|
|
673
|
-
!!y && /* @__PURE__ */
|
|
674
|
-
disabled:
|
|
675
|
-
render: /* @__PURE__ */
|
|
675
|
+
!!y && /* @__PURE__ */ F(u, {
|
|
676
|
+
disabled: $,
|
|
677
|
+
render: /* @__PURE__ */ F(m, {
|
|
676
678
|
type: "button",
|
|
677
679
|
tone: "secondary",
|
|
678
680
|
buttonStyle: "ghost",
|
|
@@ -680,50 +682,50 @@ function je({ open: e, onOpenChange: t, onClose: n, children: h, title: g, descr
|
|
|
680
682
|
iconOnly: !0,
|
|
681
683
|
"data-overlay-close": "",
|
|
682
684
|
className: r(p.close, `z-10 text-muted-foreground ${ne.rowHover}`),
|
|
683
|
-
children: /* @__PURE__ */
|
|
685
|
+
children: /* @__PURE__ */ F(ie, { className: "size-icon" })
|
|
684
686
|
}),
|
|
685
|
-
"aria-label":
|
|
687
|
+
"aria-label": Q.close
|
|
686
688
|
})
|
|
687
689
|
]
|
|
688
690
|
})]
|
|
689
691
|
});
|
|
690
692
|
}
|
|
691
|
-
var
|
|
692
|
-
|
|
693
|
+
var Ne = k(Me);
|
|
694
|
+
Ne.displayName = "ActionDrawer";
|
|
693
695
|
//#endregion
|
|
694
696
|
//#region src/components/ui/alert-dialog.tsx
|
|
695
|
-
function
|
|
696
|
-
return /* @__PURE__ */
|
|
697
|
+
function Pe({ ...e }) {
|
|
698
|
+
return /* @__PURE__ */ F(W.Root, {
|
|
697
699
|
"data-slot": "alert-dialog",
|
|
698
700
|
...e
|
|
699
701
|
});
|
|
700
702
|
}
|
|
701
|
-
function
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
+
function Fe({ ...e }) {
|
|
704
|
+
return /* @__PURE__ */ F(W.Trigger, {
|
|
703
705
|
"data-slot": "alert-dialog-trigger",
|
|
704
706
|
...e
|
|
705
707
|
});
|
|
706
708
|
}
|
|
707
|
-
function
|
|
709
|
+
function Ie({ container: e, ...n }) {
|
|
708
710
|
let r = t(e);
|
|
709
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ F(W.Portal, {
|
|
710
712
|
container: r,
|
|
711
713
|
"data-slot": "alert-dialog-portal",
|
|
712
714
|
...n
|
|
713
715
|
});
|
|
714
716
|
}
|
|
715
|
-
function
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
+
function Le({ className: e, ...t }) {
|
|
718
|
+
return /* @__PURE__ */ F(W.Backdrop, {
|
|
717
719
|
"data-slot": "alert-dialog-overlay",
|
|
718
720
|
className: r(E, y.backdrop, "isolate", e),
|
|
719
721
|
...t
|
|
720
722
|
});
|
|
721
723
|
}
|
|
722
|
-
function
|
|
724
|
+
function Re({ className: e, container: n, size: i = "default", ...a }) {
|
|
723
725
|
let o = t(n);
|
|
724
|
-
return /* @__PURE__ */
|
|
726
|
+
return /* @__PURE__ */ I(Ie, {
|
|
725
727
|
container: o,
|
|
726
|
-
children: [/* @__PURE__ */
|
|
728
|
+
children: [/* @__PURE__ */ F(Le, {}), /* @__PURE__ */ F(W.Popup, {
|
|
727
729
|
"data-slot": "alert-dialog-content",
|
|
728
730
|
"data-size": i,
|
|
729
731
|
className: r(y.dialog, "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-space-xl rounded-radius bg-popover p-surface text-popover-foreground shadow-xl outline-none data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md", e),
|
|
@@ -731,46 +733,46 @@ function Le({ className: e, container: n, size: i = "default", ...a }) {
|
|
|
731
733
|
})]
|
|
732
734
|
});
|
|
733
735
|
}
|
|
734
|
-
function
|
|
735
|
-
return /* @__PURE__ */
|
|
736
|
+
function ze({ className: e, ...t }) {
|
|
737
|
+
return /* @__PURE__ */ F("div", {
|
|
736
738
|
"data-slot": "alert-dialog-footer",
|
|
737
739
|
className: r("flex flex-col-reverse group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
738
740
|
...t
|
|
739
741
|
});
|
|
740
742
|
}
|
|
741
|
-
function
|
|
742
|
-
return /* @__PURE__ */
|
|
743
|
+
function Be({ className: e, ...t }) {
|
|
744
|
+
return /* @__PURE__ */ F("div", {
|
|
743
745
|
"data-slot": "alert-dialog-media",
|
|
744
746
|
className: r("mb-space-md inline-flex size-16 items-center justify-center rounded-full bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", e),
|
|
745
747
|
...t
|
|
746
748
|
});
|
|
747
749
|
}
|
|
748
|
-
function
|
|
749
|
-
return /* @__PURE__ */
|
|
750
|
+
function Ve({ className: e, ...t }) {
|
|
751
|
+
return /* @__PURE__ */ F(W.Title, {
|
|
750
752
|
"data-slot": "alert-dialog-title",
|
|
751
753
|
className: r("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
752
754
|
...t
|
|
753
755
|
});
|
|
754
756
|
}
|
|
755
|
-
function
|
|
756
|
-
return /* @__PURE__ */
|
|
757
|
+
function He({ className: e, ...t }) {
|
|
758
|
+
return /* @__PURE__ */ F(W.Description, {
|
|
757
759
|
"data-slot": "alert-dialog-description",
|
|
758
760
|
className: r("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
759
761
|
...t
|
|
760
762
|
});
|
|
761
763
|
}
|
|
762
|
-
function
|
|
763
|
-
return /* @__PURE__ */
|
|
764
|
+
function Ue({ className: e, ...t }) {
|
|
765
|
+
return /* @__PURE__ */ F(x, {
|
|
764
766
|
"data-slot": "alert-dialog-action",
|
|
765
767
|
className: r(e),
|
|
766
768
|
...t
|
|
767
769
|
});
|
|
768
770
|
}
|
|
769
|
-
function
|
|
770
|
-
return /* @__PURE__ */
|
|
771
|
+
function We({ className: e, variant: t = "outline", size: n = "default", ...i }) {
|
|
772
|
+
return /* @__PURE__ */ F(W.Close, {
|
|
771
773
|
"data-slot": "alert-dialog-cancel",
|
|
772
774
|
className: r(e),
|
|
773
|
-
render: /* @__PURE__ */
|
|
775
|
+
render: /* @__PURE__ */ F(x, {
|
|
774
776
|
variant: t,
|
|
775
777
|
size: n
|
|
776
778
|
}),
|
|
@@ -779,27 +781,27 @@ function Ue({ className: e, variant: t = "outline", size: n = "default", ...i })
|
|
|
779
781
|
}
|
|
780
782
|
//#endregion
|
|
781
783
|
//#region src/components/base/display/alert-dialog.tsx
|
|
782
|
-
function
|
|
784
|
+
function Ge(e) {
|
|
783
785
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
784
786
|
}
|
|
785
|
-
var
|
|
786
|
-
return /* @__PURE__ */
|
|
787
|
+
var Ke = r(g.base, v.semibold, _.snug), qe = Pe, Je = O.forwardRef(function({ className: e, ...t }, n) {
|
|
788
|
+
return /* @__PURE__ */ F(Fe, {
|
|
787
789
|
ref: n,
|
|
788
790
|
className: r("alert-dialog-trigger--component", e),
|
|
789
791
|
...t
|
|
790
792
|
});
|
|
791
793
|
});
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
return /* @__PURE__ */
|
|
794
|
+
Je.displayName = "AlertDialogTrigger";
|
|
795
|
+
var Ye = O.forwardRef(function({ className: e, ...t }, n) {
|
|
796
|
+
return /* @__PURE__ */ F(Re, {
|
|
795
797
|
ref: n,
|
|
796
798
|
className: r("alert-dialog-content--component flex max-h-[min(90vh,48rem)] flex-col gap-0 overflow-hidden rounded-radius bg-popover p-0 text-popover-foreground sm:max-w-md", w.modal.shell, e),
|
|
797
799
|
...t
|
|
798
800
|
});
|
|
799
801
|
});
|
|
800
|
-
|
|
801
|
-
var
|
|
802
|
-
return /* @__PURE__ */
|
|
802
|
+
Ye.displayName = "AlertDialogContent";
|
|
803
|
+
var Xe = O.forwardRef(function({ className: e, textGap: t = "normal", align: n = "start", ...i }, a) {
|
|
804
|
+
return /* @__PURE__ */ F("div", {
|
|
803
805
|
ref: a,
|
|
804
806
|
"data-slot": "alert-dialog-header",
|
|
805
807
|
"data-modal-region": "",
|
|
@@ -808,9 +810,9 @@ var Ye = D.forwardRef(function({ className: e, textGap: t = "normal", align: n =
|
|
|
808
810
|
...i
|
|
809
811
|
});
|
|
810
812
|
});
|
|
811
|
-
|
|
812
|
-
var
|
|
813
|
-
return /* @__PURE__ */
|
|
813
|
+
Xe.displayName = "AlertDialogHeader";
|
|
814
|
+
var Ze = O.forwardRef(function({ className: e, ...t }, n) {
|
|
815
|
+
return /* @__PURE__ */ F("div", {
|
|
814
816
|
ref: n,
|
|
815
817
|
"data-slot": "alert-dialog-body",
|
|
816
818
|
"data-modal-region": "",
|
|
@@ -818,22 +820,22 @@ var Xe = D.forwardRef(function({ className: e, ...t }, n) {
|
|
|
818
820
|
...t
|
|
819
821
|
});
|
|
820
822
|
});
|
|
821
|
-
|
|
822
|
-
var
|
|
823
|
-
return /* @__PURE__ */
|
|
823
|
+
Ze.displayName = "AlertDialogBody";
|
|
824
|
+
var Qe = O.forwardRef(function({ className: e, ...t }, n) {
|
|
825
|
+
return /* @__PURE__ */ F(ze, {
|
|
824
826
|
ref: n,
|
|
825
827
|
"data-modal-region": "",
|
|
826
828
|
className: r("alert-dialog-footer--component", T.footer, e),
|
|
827
829
|
...t
|
|
828
830
|
});
|
|
829
831
|
});
|
|
830
|
-
|
|
831
|
-
var
|
|
832
|
-
return /* @__PURE__ */
|
|
832
|
+
Qe.displayName = "AlertDialogFooter";
|
|
833
|
+
var $e = O.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
834
|
+
return /* @__PURE__ */ F(Ve, {
|
|
833
835
|
ref: i,
|
|
834
|
-
className: r("alert-dialog-title--component m-0",
|
|
836
|
+
className: r("alert-dialog-title--component m-0", Ke, t),
|
|
835
837
|
...n,
|
|
836
|
-
children:
|
|
838
|
+
children: Ge(e) ? /* @__PURE__ */ F(h, {
|
|
837
839
|
tag: "span",
|
|
838
840
|
type: "inherit",
|
|
839
841
|
size: "base",
|
|
@@ -843,13 +845,13 @@ var Qe = D.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
|
843
845
|
}) : e
|
|
844
846
|
});
|
|
845
847
|
});
|
|
846
|
-
|
|
847
|
-
var
|
|
848
|
-
return /* @__PURE__ */
|
|
848
|
+
$e.displayName = "AlertDialogTitle";
|
|
849
|
+
var et = O.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
850
|
+
return /* @__PURE__ */ F(He, {
|
|
849
851
|
ref: i,
|
|
850
852
|
className: r("alert-dialog-description--component m-0", t),
|
|
851
853
|
...n,
|
|
852
|
-
children:
|
|
854
|
+
children: Ge(e) ? /* @__PURE__ */ F(h, {
|
|
853
855
|
tag: "span",
|
|
854
856
|
type: "secondary",
|
|
855
857
|
lineHeight: "relaxed",
|
|
@@ -857,61 +859,61 @@ var $e = D.forwardRef(function({ children: e, className: t, ...n }, i) {
|
|
|
857
859
|
}) : e
|
|
858
860
|
});
|
|
859
861
|
});
|
|
860
|
-
|
|
861
|
-
var
|
|
862
|
-
return /* @__PURE__ */
|
|
862
|
+
et.displayName = "AlertDialogDescription";
|
|
863
|
+
var tt = O.forwardRef(function({ className: e, ...t }, n) {
|
|
864
|
+
return /* @__PURE__ */ F(Be, {
|
|
863
865
|
ref: n,
|
|
864
866
|
className: r("alert-dialog-media--component", e),
|
|
865
867
|
...t
|
|
866
868
|
});
|
|
867
869
|
});
|
|
868
|
-
|
|
869
|
-
var
|
|
870
|
-
return /* @__PURE__ */
|
|
870
|
+
tt.displayName = "AlertDialogMedia";
|
|
871
|
+
var nt = O.forwardRef(function({ className: e, ...t }, n) {
|
|
872
|
+
return /* @__PURE__ */ F(Ue, {
|
|
871
873
|
ref: n,
|
|
872
874
|
className: r("alert-dialog-action--component", e),
|
|
873
875
|
...t
|
|
874
876
|
});
|
|
875
877
|
});
|
|
876
|
-
|
|
877
|
-
var
|
|
878
|
-
return /* @__PURE__ */
|
|
878
|
+
nt.displayName = "AlertDialogAction";
|
|
879
|
+
var rt = O.forwardRef(function({ className: e, ...t }, n) {
|
|
880
|
+
return /* @__PURE__ */ F(We, {
|
|
879
881
|
ref: n,
|
|
880
882
|
className: r("alert-dialog-cancel--component", e),
|
|
881
883
|
...t
|
|
882
884
|
});
|
|
883
885
|
});
|
|
884
|
-
|
|
886
|
+
rt.displayName = "AlertDialogCancel";
|
|
885
887
|
//#endregion
|
|
886
888
|
//#region src/components/features/overlays/alert-dialog.tsx
|
|
887
|
-
function
|
|
888
|
-
let { defaultConfirmAlign: R } = e(), z = L ?? R ?? "center", B =
|
|
889
|
+
function it({ open: t, onOpenChange: i, onClose: a, children: o, title: s, description: c, visuallyHideHeader: l = !1, className: u, contentClassName: d, surfaceStyle: f, initialFocusRef: p, closeOnEscape: h = !0, strings: g, showCancel: _ = !0, showConfirm: v = !0, onCancel: y, onConfirm: b, onAsyncConfirm: x, onError: C, closeOnAsyncComplete: w = !0, confirmTone: T, confirmStyle: E = "solid", loading: D = !1, formId: ne, footer: O, tone: k = "neutral", showIcon: A = !1, alertMessage: j, trigger: N, destructive: P = !1, align: L }) {
|
|
890
|
+
let { defaultConfirmAlign: R } = e(), z = L ?? R ?? "center", B = Ce({
|
|
889
891
|
open: t,
|
|
890
892
|
onOpenChange: i,
|
|
891
893
|
onClose: a
|
|
892
|
-
}),
|
|
894
|
+
}), V = n(ve, g), ie = M(() => P ? "destructive" : T || {
|
|
893
895
|
neutral: "primary",
|
|
894
896
|
destructive: "destructive",
|
|
895
897
|
warning: "warning",
|
|
896
898
|
info: "primary",
|
|
897
899
|
success: "success"
|
|
898
900
|
}[k], [
|
|
899
|
-
|
|
901
|
+
P,
|
|
900
902
|
T,
|
|
901
903
|
k
|
|
902
|
-
]), { strings: H, confirmButtonOnClick: U, effectiveLoading: W, handleCancel: G } =
|
|
904
|
+
]), { strings: H, confirmButtonOnClick: U, effectiveLoading: W, handleCancel: G } = ye({
|
|
903
905
|
closeDialog: B.hide,
|
|
904
906
|
onConfirm: b,
|
|
905
907
|
onAsyncConfirm: x,
|
|
906
908
|
onError: C,
|
|
907
909
|
closeOnAsyncComplete: w,
|
|
908
|
-
confirmTone:
|
|
909
|
-
loading:
|
|
910
|
-
formId:
|
|
910
|
+
confirmTone: ie,
|
|
911
|
+
loading: D,
|
|
912
|
+
formId: ne,
|
|
911
913
|
onCancel: y,
|
|
912
|
-
customStrings:
|
|
913
|
-
}), K =
|
|
914
|
-
return /* @__PURE__ */
|
|
914
|
+
customStrings: V
|
|
915
|
+
}), K = P && k === "neutral" ? "destructive" : k, q = Ee[K], J = Te(W), Y = !!(s || c || A && !l), X = !!(o || j);
|
|
916
|
+
return /* @__PURE__ */ I(qe, {
|
|
915
917
|
open: B.open,
|
|
916
918
|
onOpenChange: (e, t) => {
|
|
917
919
|
if (!e && (W || t.reason === "escape-key" && !h)) {
|
|
@@ -920,45 +922,45 @@ function rt({ open: t, onOpenChange: i, onClose: a, children: o, title: s, descr
|
|
|
920
922
|
}
|
|
921
923
|
B.setOpen(e);
|
|
922
924
|
},
|
|
923
|
-
children: [!!N && (re(N) ? /* @__PURE__ */
|
|
924
|
-
render: /* @__PURE__ */
|
|
925
|
+
children: [!!N && (re(N) ? /* @__PURE__ */ F(Je, { render: N }) : /* @__PURE__ */ F(Je, {
|
|
926
|
+
render: /* @__PURE__ */ F(m, {
|
|
925
927
|
type: "button",
|
|
926
928
|
tone: "secondary",
|
|
927
929
|
buttonStyle: "outline"
|
|
928
930
|
}),
|
|
929
931
|
className: "overlay-trigger--fallback",
|
|
930
932
|
children: N
|
|
931
|
-
})), /* @__PURE__ */
|
|
932
|
-
ref:
|
|
933
|
+
})), /* @__PURE__ */ I(Ye, {
|
|
934
|
+
ref: J,
|
|
933
935
|
style: f,
|
|
934
936
|
initialFocus: p,
|
|
935
937
|
"aria-label": s ? void 0 : H.alertDialogLabel,
|
|
936
938
|
className: r("confirm-dialog--component alert-dialog--component", u),
|
|
937
939
|
children: [
|
|
938
|
-
!!
|
|
940
|
+
!!Y && /* @__PURE__ */ I(Xe, {
|
|
939
941
|
align: z,
|
|
940
942
|
className: r("alert-dialog--header", l && "sr-only"),
|
|
941
943
|
children: [
|
|
942
|
-
!!A && !l && /* @__PURE__ */
|
|
944
|
+
!!A && !l && /* @__PURE__ */ F("span", {
|
|
943
945
|
"aria-hidden": "true",
|
|
944
946
|
className: r("mb-space-sm flex size-avatar-lg shrink-0 items-center justify-center rounded-full", q.surface, q.color),
|
|
945
|
-
children: /* @__PURE__ */
|
|
947
|
+
children: /* @__PURE__ */ F(q.Glyph, { className: "size-icon-lg" })
|
|
946
948
|
}),
|
|
947
|
-
!!s && /* @__PURE__ */
|
|
948
|
-
!!c && /* @__PURE__ */
|
|
949
|
+
!!s && /* @__PURE__ */ F($e, { children: s }),
|
|
950
|
+
!!c && /* @__PURE__ */ F(et, { children: c })
|
|
949
951
|
]
|
|
950
952
|
}),
|
|
951
|
-
!!
|
|
953
|
+
!!X && /* @__PURE__ */ I(Ze, {
|
|
952
954
|
className: r("alert-dialog--body", d),
|
|
953
|
-
children: [!!
|
|
955
|
+
children: [!!j && /* @__PURE__ */ F(te, {
|
|
954
956
|
tone: K,
|
|
955
957
|
className: r(!!o && "mb-space-md"),
|
|
956
|
-
children: /* @__PURE__ */
|
|
958
|
+
children: /* @__PURE__ */ F(ee, { children: j })
|
|
957
959
|
}), o]
|
|
958
960
|
}),
|
|
959
|
-
!!(_ || v || O) && /* @__PURE__ */
|
|
961
|
+
!!(_ || v || O) && /* @__PURE__ */ F(Qe, {
|
|
960
962
|
className: "alert-dialog--footer",
|
|
961
|
-
children: O ?? /* @__PURE__ */
|
|
963
|
+
children: O ?? /* @__PURE__ */ I(S, {
|
|
962
964
|
direction: {
|
|
963
965
|
base: "vertical",
|
|
964
966
|
sm: "horizontal"
|
|
@@ -970,16 +972,16 @@ function rt({ open: t, onOpenChange: i, onClose: a, children: o, title: s, descr
|
|
|
970
972
|
},
|
|
971
973
|
justify: z === "center" ? "center" : "end",
|
|
972
974
|
className: "w-full",
|
|
973
|
-
children: [!!_ && /* @__PURE__ */
|
|
975
|
+
children: [!!_ && /* @__PURE__ */ F(m, {
|
|
974
976
|
type: "button",
|
|
975
977
|
tone: "secondary",
|
|
976
978
|
buttonStyle: "outline",
|
|
977
979
|
onClick: G,
|
|
978
980
|
disabled: W,
|
|
979
981
|
children: H.cancel
|
|
980
|
-
}), !!v && /* @__PURE__ */
|
|
982
|
+
}), !!v && /* @__PURE__ */ F(m, {
|
|
981
983
|
type: "button",
|
|
982
|
-
tone:
|
|
984
|
+
tone: ie,
|
|
983
985
|
buttonStyle: E,
|
|
984
986
|
onClick: U,
|
|
985
987
|
disabled: W,
|
|
@@ -993,9 +995,9 @@ function rt({ open: t, onOpenChange: i, onClose: a, children: o, title: s, descr
|
|
|
993
995
|
})]
|
|
994
996
|
});
|
|
995
997
|
}
|
|
996
|
-
var
|
|
997
|
-
|
|
998
|
+
var at = k(it);
|
|
999
|
+
at.displayName = "ConfirmDialog";
|
|
998
1000
|
//#endregion
|
|
999
|
-
export {
|
|
1001
|
+
export { we as a, _e as c, Ce as i, Ne as n, ye as o, Ae as r, ve as s, at as t };
|
|
1000
1002
|
|
|
1001
|
-
//# sourceMappingURL=overlays-
|
|
1003
|
+
//# sourceMappingURL=overlays-tMkF-VAN.js.map
|