@vinyasa/overlay 1.0.23
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/README.md +54 -0
- package/dist/cjs/alert-dialog.cjs +339 -0
- package/dist/cjs/alert-dialog.css +168 -0
- package/dist/cjs/dialog.cjs +346 -0
- package/dist/cjs/dialog.css +174 -0
- package/dist/cjs/index.cjs +582 -0
- package/dist/cjs/index.css +242 -0
- package/dist/cjs/modal.cjs +346 -0
- package/dist/cjs/modal.css +174 -0
- package/dist/esm/302.css +97 -0
- package/dist/esm/302.js +95 -0
- package/dist/esm/548.css +68 -0
- package/dist/esm/548.js +70 -0
- package/dist/esm/649.css +74 -0
- package/dist/esm/649.js +78 -0
- package/dist/esm/alert-dialog.d.ts +2 -0
- package/dist/esm/alert-dialog.js +1 -0
- package/dist/esm/components/alert-dialog/AlertDialog.css.d.ts +16 -0
- package/dist/esm/components/alert-dialog/AlertDialog.d.ts +25 -0
- package/dist/esm/components/alert-dialog/index.d.ts +1 -0
- package/dist/esm/components/dialog/Dialog.css.d.ts +17 -0
- package/dist/esm/components/dialog/Dialog.d.ts +26 -0
- package/dist/esm/components/dialog/index.d.ts +1 -0
- package/dist/esm/components/modal/index.d.ts +1 -0
- package/dist/esm/dialog.d.ts +2 -0
- package/dist/esm/dialog.js +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/modal.d.ts +2 -0
- package/dist/esm/modal.js +1 -0
- package/dist/esm/overlayShell.css.d.ts +7 -0
- package/package.json +98 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
+
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.r = (exports1)=>{
|
|
20
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
+
value: 'Module'
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
var __webpack_exports__ = {};
|
|
29
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
AlertDialog: ()=>AlertDialog,
|
|
32
|
+
AlertDialogAction: ()=>AlertDialogAction,
|
|
33
|
+
AlertDialogBody: ()=>AlertDialogBody,
|
|
34
|
+
AlertDialogCancel: ()=>AlertDialogCancel,
|
|
35
|
+
AlertDialogContent: ()=>AlertDialogContent,
|
|
36
|
+
AlertDialogDescription: ()=>AlertDialogDescription,
|
|
37
|
+
AlertDialogFooter: ()=>AlertDialogFooter,
|
|
38
|
+
AlertDialogHeader: ()=>AlertDialogHeader,
|
|
39
|
+
AlertDialogTitle: ()=>AlertDialogTitle,
|
|
40
|
+
AlertDialogTrigger: ()=>AlertDialogTrigger,
|
|
41
|
+
Dialog: ()=>Dialog,
|
|
42
|
+
DialogBody: ()=>DialogBody,
|
|
43
|
+
DialogClose: ()=>DialogClose,
|
|
44
|
+
DialogContent: ()=>DialogContent,
|
|
45
|
+
DialogDescription: ()=>DialogDescription,
|
|
46
|
+
DialogFooter: ()=>DialogFooter,
|
|
47
|
+
DialogHeader: ()=>DialogHeader,
|
|
48
|
+
DialogTitle: ()=>DialogTitle,
|
|
49
|
+
DialogTrigger: ()=>DialogTrigger,
|
|
50
|
+
Modal: ()=>Dialog,
|
|
51
|
+
ModalBody: ()=>DialogBody,
|
|
52
|
+
ModalClose: ()=>DialogClose,
|
|
53
|
+
ModalContent: ()=>DialogContent,
|
|
54
|
+
ModalDescription: ()=>DialogDescription,
|
|
55
|
+
ModalFooter: ()=>DialogFooter,
|
|
56
|
+
ModalHeader: ()=>DialogHeader,
|
|
57
|
+
ModalTitle: ()=>DialogTitle,
|
|
58
|
+
ModalTrigger: ()=>DialogTrigger
|
|
59
|
+
});
|
|
60
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
61
|
+
const react_alert_dialog_namespaceObject = require("@radix-ui/react-alert-dialog");
|
|
62
|
+
const external_react_namespaceObject = require("react");
|
|
63
|
+
var body = '_13owy337';
|
|
64
|
+
var closeButton = '_13owy336';
|
|
65
|
+
var descriptionText = '_13owy335';
|
|
66
|
+
var footer = '_13owy338';
|
|
67
|
+
var header = '_13owy333';
|
|
68
|
+
var scrim = '_13owy332';
|
|
69
|
+
var titleText = '_13owy334';
|
|
70
|
+
function toPrimitive(t, r) {
|
|
71
|
+
if ("object" != typeof t || !t) return t;
|
|
72
|
+
var e = t[Symbol.toPrimitive];
|
|
73
|
+
if (void 0 !== e) {
|
|
74
|
+
var i = e.call(t, r || "default");
|
|
75
|
+
if ("object" != typeof i) return i;
|
|
76
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
77
|
+
}
|
|
78
|
+
return ("string" === r ? String : Number)(t);
|
|
79
|
+
}
|
|
80
|
+
function toPropertyKey(t) {
|
|
81
|
+
var i = toPrimitive(t, "string");
|
|
82
|
+
return "symbol" == typeof i ? i : String(i);
|
|
83
|
+
}
|
|
84
|
+
function _defineProperty(obj, key, value) {
|
|
85
|
+
key = toPropertyKey(key);
|
|
86
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
87
|
+
value: value,
|
|
88
|
+
enumerable: true,
|
|
89
|
+
configurable: true,
|
|
90
|
+
writable: true
|
|
91
|
+
});
|
|
92
|
+
else obj[key] = value;
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
function createRuntimeFn_62c9670f_esm_ownKeys(e, r) {
|
|
96
|
+
var t = Object.keys(e);
|
|
97
|
+
if (Object.getOwnPropertySymbols) {
|
|
98
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
99
|
+
r && (o = o.filter(function(r) {
|
|
100
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
101
|
+
})), t.push.apply(t, o);
|
|
102
|
+
}
|
|
103
|
+
return t;
|
|
104
|
+
}
|
|
105
|
+
function _objectSpread2(e) {
|
|
106
|
+
for(var r = 1; r < arguments.length; r++){
|
|
107
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
108
|
+
r % 2 ? createRuntimeFn_62c9670f_esm_ownKeys(Object(t), !0).forEach(function(r) {
|
|
109
|
+
_defineProperty(e, r, t[r]);
|
|
110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : createRuntimeFn_62c9670f_esm_ownKeys(Object(t)).forEach(function(r) {
|
|
111
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
function mapValues(input, fn) {
|
|
117
|
+
var result = {};
|
|
118
|
+
for(var _key in input)result[_key] = fn(input[_key], _key);
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
|
|
122
|
+
for (var key of Object.keys(compoundCheck)){
|
|
123
|
+
var _selections$key;
|
|
124
|
+
if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
|
|
125
|
+
}
|
|
126
|
+
return true;
|
|
127
|
+
};
|
|
128
|
+
var createRuntimeFn = (config)=>{
|
|
129
|
+
var runtimeFn = (options)=>{
|
|
130
|
+
var className = config.defaultClassName;
|
|
131
|
+
var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
|
|
132
|
+
for(var variantName in selections){
|
|
133
|
+
var _selections$variantNa;
|
|
134
|
+
var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
|
|
135
|
+
if (null != variantSelection) {
|
|
136
|
+
var selection = variantSelection;
|
|
137
|
+
if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
|
|
138
|
+
var selectionClassName = config.variantClassNames[variantName][selection];
|
|
139
|
+
if (selectionClassName) className += ' ' + selectionClassName;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
|
|
143
|
+
return className;
|
|
144
|
+
};
|
|
145
|
+
runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
|
|
146
|
+
runtimeFn.classNames = {
|
|
147
|
+
get base () {
|
|
148
|
+
return config.defaultClassName.split(' ')[0];
|
|
149
|
+
},
|
|
150
|
+
get variants () {
|
|
151
|
+
return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
return runtimeFn;
|
|
155
|
+
};
|
|
156
|
+
var content = createRuntimeFn({
|
|
157
|
+
defaultClassName: '_1neyrrq2',
|
|
158
|
+
variantClassNames: {
|
|
159
|
+
size: {
|
|
160
|
+
sm: '_1neyrrq3',
|
|
161
|
+
md: '_1neyrrq4',
|
|
162
|
+
lg: '_1neyrrq5',
|
|
163
|
+
xl: '_1neyrrq6'
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
defaultVariants: {
|
|
167
|
+
size: 'md'
|
|
168
|
+
},
|
|
169
|
+
compoundVariants: []
|
|
170
|
+
});
|
|
171
|
+
function _define_property(obj, key, value) {
|
|
172
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
173
|
+
value: value,
|
|
174
|
+
enumerable: true,
|
|
175
|
+
configurable: true,
|
|
176
|
+
writable: true
|
|
177
|
+
});
|
|
178
|
+
else obj[key] = value;
|
|
179
|
+
return obj;
|
|
180
|
+
}
|
|
181
|
+
function _object_spread(target) {
|
|
182
|
+
for(var i = 1; i < arguments.length; i++){
|
|
183
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
184
|
+
var ownKeys = Object.keys(source);
|
|
185
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
186
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
187
|
+
}));
|
|
188
|
+
ownKeys.forEach(function(key) {
|
|
189
|
+
_define_property(target, key, source[key]);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return target;
|
|
193
|
+
}
|
|
194
|
+
function AlertDialog_ownKeys(object, enumerableOnly) {
|
|
195
|
+
var keys = Object.keys(object);
|
|
196
|
+
if (Object.getOwnPropertySymbols) {
|
|
197
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
198
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
199
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
200
|
+
});
|
|
201
|
+
keys.push.apply(keys, symbols);
|
|
202
|
+
}
|
|
203
|
+
return keys;
|
|
204
|
+
}
|
|
205
|
+
function _object_spread_props(target, source) {
|
|
206
|
+
source = null != source ? source : {};
|
|
207
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
208
|
+
else AlertDialog_ownKeys(Object(source)).forEach(function(key) {
|
|
209
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
210
|
+
});
|
|
211
|
+
return target;
|
|
212
|
+
}
|
|
213
|
+
function _object_without_properties(source, excluded) {
|
|
214
|
+
if (null == source) return {};
|
|
215
|
+
var target = {}, sourceKeys, key, i;
|
|
216
|
+
if ("u" > typeof Reflect && Reflect.ownKeys) {
|
|
217
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
218
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
219
|
+
key = sourceKeys[i];
|
|
220
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
221
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return target;
|
|
225
|
+
}
|
|
226
|
+
target = _object_without_properties_loose(source, excluded);
|
|
227
|
+
if (Object.getOwnPropertySymbols) {
|
|
228
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
229
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
230
|
+
key = sourceKeys[i];
|
|
231
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
232
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return target;
|
|
237
|
+
}
|
|
238
|
+
function _object_without_properties_loose(source, excluded) {
|
|
239
|
+
if (null == source) return {};
|
|
240
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
241
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
242
|
+
key = sourceKeys[i];
|
|
243
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
244
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return target;
|
|
248
|
+
}
|
|
249
|
+
const AlertDialog = react_alert_dialog_namespaceObject.Root;
|
|
250
|
+
const AlertDialogTrigger = react_alert_dialog_namespaceObject.Trigger;
|
|
251
|
+
const AlertDialogAction = react_alert_dialog_namespaceObject.Action;
|
|
252
|
+
const AlertDialogCancel = react_alert_dialog_namespaceObject.Cancel;
|
|
253
|
+
const AlertDialogContent = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
254
|
+
let _ref = [
|
|
255
|
+
_0,
|
|
256
|
+
_1
|
|
257
|
+
], [_ref1, ..._rest] = _ref, { size = 'md', className, children } = _ref1, rest = _object_without_properties(_ref1, [
|
|
258
|
+
"size",
|
|
259
|
+
"className",
|
|
260
|
+
"children"
|
|
261
|
+
]), [ref] = _rest;
|
|
262
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
263
|
+
children: [
|
|
264
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay, {
|
|
265
|
+
className: scrim
|
|
266
|
+
}),
|
|
267
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, _object_spread_props(_object_spread({
|
|
268
|
+
ref: ref,
|
|
269
|
+
className: className ? `${content({
|
|
270
|
+
size
|
|
271
|
+
})} ${className}` : content({
|
|
272
|
+
size
|
|
273
|
+
})
|
|
274
|
+
}, rest), {
|
|
275
|
+
children: children
|
|
276
|
+
}))
|
|
277
|
+
]
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
AlertDialogContent.displayName = 'AlertDialogContent';
|
|
281
|
+
const AlertDialogHeader = (_0)=>{
|
|
282
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
283
|
+
"className"
|
|
284
|
+
]);
|
|
285
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
286
|
+
className: className ? `${header} ${className}` : header
|
|
287
|
+
}, rest));
|
|
288
|
+
};
|
|
289
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
290
|
+
const AlertDialogBody = (_0)=>{
|
|
291
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
292
|
+
"className"
|
|
293
|
+
]);
|
|
294
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
295
|
+
className: className ? `${body} ${className}` : body
|
|
296
|
+
}, rest));
|
|
297
|
+
};
|
|
298
|
+
AlertDialogBody.displayName = 'AlertDialogBody';
|
|
299
|
+
const AlertDialogFooter = (_0)=>{
|
|
300
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
301
|
+
"className"
|
|
302
|
+
]);
|
|
303
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
304
|
+
className: className ? `${footer} ${className}` : footer
|
|
305
|
+
}, rest));
|
|
306
|
+
};
|
|
307
|
+
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
308
|
+
const AlertDialogTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
309
|
+
let _ref = [
|
|
310
|
+
_0,
|
|
311
|
+
_1
|
|
312
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
|
|
313
|
+
"className"
|
|
314
|
+
]), [ref] = _rest;
|
|
315
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, _object_spread({
|
|
316
|
+
ref: ref,
|
|
317
|
+
className: className ? `${titleText} ${className}` : titleText
|
|
318
|
+
}, rest));
|
|
319
|
+
});
|
|
320
|
+
AlertDialogTitle.displayName = 'AlertDialogTitle';
|
|
321
|
+
const AlertDialogDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
322
|
+
let _ref = [
|
|
323
|
+
_0,
|
|
324
|
+
_1
|
|
325
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
|
|
326
|
+
"className"
|
|
327
|
+
]), [ref] = _rest;
|
|
328
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, _object_spread({
|
|
329
|
+
ref: ref,
|
|
330
|
+
className: className ? `${descriptionText} ${className}` : descriptionText
|
|
331
|
+
}, rest));
|
|
332
|
+
});
|
|
333
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
334
|
+
const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
|
|
335
|
+
const icons_namespaceObject = require("@vinyasa/icons");
|
|
336
|
+
var closeButtonPosition = 'pchuwx7';
|
|
337
|
+
var Dialog_css_content = createRuntimeFn({
|
|
338
|
+
defaultClassName: 'pchuwx2',
|
|
339
|
+
variantClassNames: {
|
|
340
|
+
size: {
|
|
341
|
+
sm: 'pchuwx3',
|
|
342
|
+
md: 'pchuwx4',
|
|
343
|
+
lg: 'pchuwx5',
|
|
344
|
+
xl: 'pchuwx6'
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
defaultVariants: {
|
|
348
|
+
size: 'md'
|
|
349
|
+
},
|
|
350
|
+
compoundVariants: []
|
|
351
|
+
});
|
|
352
|
+
function Dialog_define_property(obj, key, value) {
|
|
353
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
354
|
+
value: value,
|
|
355
|
+
enumerable: true,
|
|
356
|
+
configurable: true,
|
|
357
|
+
writable: true
|
|
358
|
+
});
|
|
359
|
+
else obj[key] = value;
|
|
360
|
+
return obj;
|
|
361
|
+
}
|
|
362
|
+
function Dialog_object_spread(target) {
|
|
363
|
+
for(var i = 1; i < arguments.length; i++){
|
|
364
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
365
|
+
var ownKeys = Object.keys(source);
|
|
366
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
367
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
368
|
+
}));
|
|
369
|
+
ownKeys.forEach(function(key) {
|
|
370
|
+
Dialog_define_property(target, key, source[key]);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
return target;
|
|
374
|
+
}
|
|
375
|
+
function Dialog_ownKeys(object, enumerableOnly) {
|
|
376
|
+
var keys = Object.keys(object);
|
|
377
|
+
if (Object.getOwnPropertySymbols) {
|
|
378
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
379
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
380
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
381
|
+
});
|
|
382
|
+
keys.push.apply(keys, symbols);
|
|
383
|
+
}
|
|
384
|
+
return keys;
|
|
385
|
+
}
|
|
386
|
+
function Dialog_object_spread_props(target, source) {
|
|
387
|
+
source = null != source ? source : {};
|
|
388
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
389
|
+
else Dialog_ownKeys(Object(source)).forEach(function(key) {
|
|
390
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
391
|
+
});
|
|
392
|
+
return target;
|
|
393
|
+
}
|
|
394
|
+
function Dialog_object_without_properties(source, excluded) {
|
|
395
|
+
if (null == source) return {};
|
|
396
|
+
var target = {}, sourceKeys, key, i;
|
|
397
|
+
if ("u" > typeof Reflect && Reflect.ownKeys) {
|
|
398
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
399
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
400
|
+
key = sourceKeys[i];
|
|
401
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
402
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return target;
|
|
406
|
+
}
|
|
407
|
+
target = Dialog_object_without_properties_loose(source, excluded);
|
|
408
|
+
if (Object.getOwnPropertySymbols) {
|
|
409
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
410
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
411
|
+
key = sourceKeys[i];
|
|
412
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
413
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return target;
|
|
418
|
+
}
|
|
419
|
+
function Dialog_object_without_properties_loose(source, excluded) {
|
|
420
|
+
if (null == source) return {};
|
|
421
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
422
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
423
|
+
key = sourceKeys[i];
|
|
424
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
425
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return target;
|
|
429
|
+
}
|
|
430
|
+
const Dialog = react_dialog_namespaceObject.Root;
|
|
431
|
+
const DialogTrigger = react_dialog_namespaceObject.Trigger;
|
|
432
|
+
const DialogClose = react_dialog_namespaceObject.Close;
|
|
433
|
+
const DialogContent = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
434
|
+
let _ref = [
|
|
435
|
+
_0,
|
|
436
|
+
_1
|
|
437
|
+
], [_ref1, ..._rest] = _ref, { size = 'md', hideCloseButton = false, className, children } = _ref1, rest = Dialog_object_without_properties(_ref1, [
|
|
438
|
+
"size",
|
|
439
|
+
"hideCloseButton",
|
|
440
|
+
"className",
|
|
441
|
+
"children"
|
|
442
|
+
]), [ref] = _rest;
|
|
443
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
444
|
+
children: [
|
|
445
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay, {
|
|
446
|
+
className: scrim
|
|
447
|
+
}),
|
|
448
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, Dialog_object_spread_props(Dialog_object_spread({
|
|
449
|
+
ref: ref,
|
|
450
|
+
className: className ? `${Dialog_css_content({
|
|
451
|
+
size
|
|
452
|
+
})} ${className}` : Dialog_css_content({
|
|
453
|
+
size
|
|
454
|
+
})
|
|
455
|
+
}, rest), {
|
|
456
|
+
children: [
|
|
457
|
+
children,
|
|
458
|
+
hideCloseButton ? null : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close, {
|
|
459
|
+
className: `${closeButton} ${closeButtonPosition}`,
|
|
460
|
+
"aria-label": "Close",
|
|
461
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.XIcon, {})
|
|
462
|
+
})
|
|
463
|
+
]
|
|
464
|
+
}))
|
|
465
|
+
]
|
|
466
|
+
});
|
|
467
|
+
});
|
|
468
|
+
DialogContent.displayName = 'DialogContent';
|
|
469
|
+
const DialogHeader = (_0)=>{
|
|
470
|
+
let { className } = _0, rest = Dialog_object_without_properties(_0, [
|
|
471
|
+
"className"
|
|
472
|
+
]);
|
|
473
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", Dialog_object_spread({
|
|
474
|
+
className: className ? `${header} ${className}` : header
|
|
475
|
+
}, rest));
|
|
476
|
+
};
|
|
477
|
+
DialogHeader.displayName = 'DialogHeader';
|
|
478
|
+
const DialogBody = (_0)=>{
|
|
479
|
+
let { className } = _0, rest = Dialog_object_without_properties(_0, [
|
|
480
|
+
"className"
|
|
481
|
+
]);
|
|
482
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", Dialog_object_spread({
|
|
483
|
+
className: className ? `${body} ${className}` : body
|
|
484
|
+
}, rest));
|
|
485
|
+
};
|
|
486
|
+
DialogBody.displayName = 'DialogBody';
|
|
487
|
+
const DialogFooter = (_0)=>{
|
|
488
|
+
let { className } = _0, rest = Dialog_object_without_properties(_0, [
|
|
489
|
+
"className"
|
|
490
|
+
]);
|
|
491
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", Dialog_object_spread({
|
|
492
|
+
className: className ? `${footer} ${className}` : footer
|
|
493
|
+
}, rest));
|
|
494
|
+
};
|
|
495
|
+
DialogFooter.displayName = 'DialogFooter';
|
|
496
|
+
const DialogTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
497
|
+
let _ref = [
|
|
498
|
+
_0,
|
|
499
|
+
_1
|
|
500
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = Dialog_object_without_properties(_ref1, [
|
|
501
|
+
"className"
|
|
502
|
+
]), [ref] = _rest;
|
|
503
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title, Dialog_object_spread({
|
|
504
|
+
ref: ref,
|
|
505
|
+
className: className ? `${titleText} ${className}` : titleText
|
|
506
|
+
}, rest));
|
|
507
|
+
});
|
|
508
|
+
DialogTitle.displayName = 'DialogTitle';
|
|
509
|
+
const DialogDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
510
|
+
let _ref = [
|
|
511
|
+
_0,
|
|
512
|
+
_1
|
|
513
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = Dialog_object_without_properties(_ref1, [
|
|
514
|
+
"className"
|
|
515
|
+
]), [ref] = _rest;
|
|
516
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description, Dialog_object_spread({
|
|
517
|
+
ref: ref,
|
|
518
|
+
className: className ? `${descriptionText} ${className}` : descriptionText
|
|
519
|
+
}, rest));
|
|
520
|
+
});
|
|
521
|
+
DialogDescription.displayName = "DialogDescription";
|
|
522
|
+
exports.AlertDialog = __webpack_exports__.AlertDialog;
|
|
523
|
+
exports.AlertDialogAction = __webpack_exports__.AlertDialogAction;
|
|
524
|
+
exports.AlertDialogBody = __webpack_exports__.AlertDialogBody;
|
|
525
|
+
exports.AlertDialogCancel = __webpack_exports__.AlertDialogCancel;
|
|
526
|
+
exports.AlertDialogContent = __webpack_exports__.AlertDialogContent;
|
|
527
|
+
exports.AlertDialogDescription = __webpack_exports__.AlertDialogDescription;
|
|
528
|
+
exports.AlertDialogFooter = __webpack_exports__.AlertDialogFooter;
|
|
529
|
+
exports.AlertDialogHeader = __webpack_exports__.AlertDialogHeader;
|
|
530
|
+
exports.AlertDialogTitle = __webpack_exports__.AlertDialogTitle;
|
|
531
|
+
exports.AlertDialogTrigger = __webpack_exports__.AlertDialogTrigger;
|
|
532
|
+
exports.Dialog = __webpack_exports__.Dialog;
|
|
533
|
+
exports.DialogBody = __webpack_exports__.DialogBody;
|
|
534
|
+
exports.DialogClose = __webpack_exports__.DialogClose;
|
|
535
|
+
exports.DialogContent = __webpack_exports__.DialogContent;
|
|
536
|
+
exports.DialogDescription = __webpack_exports__.DialogDescription;
|
|
537
|
+
exports.DialogFooter = __webpack_exports__.DialogFooter;
|
|
538
|
+
exports.DialogHeader = __webpack_exports__.DialogHeader;
|
|
539
|
+
exports.DialogTitle = __webpack_exports__.DialogTitle;
|
|
540
|
+
exports.DialogTrigger = __webpack_exports__.DialogTrigger;
|
|
541
|
+
exports.Modal = __webpack_exports__.Modal;
|
|
542
|
+
exports.ModalBody = __webpack_exports__.ModalBody;
|
|
543
|
+
exports.ModalClose = __webpack_exports__.ModalClose;
|
|
544
|
+
exports.ModalContent = __webpack_exports__.ModalContent;
|
|
545
|
+
exports.ModalDescription = __webpack_exports__.ModalDescription;
|
|
546
|
+
exports.ModalFooter = __webpack_exports__.ModalFooter;
|
|
547
|
+
exports.ModalHeader = __webpack_exports__.ModalHeader;
|
|
548
|
+
exports.ModalTitle = __webpack_exports__.ModalTitle;
|
|
549
|
+
exports.ModalTrigger = __webpack_exports__.ModalTrigger;
|
|
550
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
551
|
+
"AlertDialog",
|
|
552
|
+
"AlertDialogAction",
|
|
553
|
+
"AlertDialogBody",
|
|
554
|
+
"AlertDialogCancel",
|
|
555
|
+
"AlertDialogContent",
|
|
556
|
+
"AlertDialogDescription",
|
|
557
|
+
"AlertDialogFooter",
|
|
558
|
+
"AlertDialogHeader",
|
|
559
|
+
"AlertDialogTitle",
|
|
560
|
+
"AlertDialogTrigger",
|
|
561
|
+
"Dialog",
|
|
562
|
+
"DialogBody",
|
|
563
|
+
"DialogClose",
|
|
564
|
+
"DialogContent",
|
|
565
|
+
"DialogDescription",
|
|
566
|
+
"DialogFooter",
|
|
567
|
+
"DialogHeader",
|
|
568
|
+
"DialogTitle",
|
|
569
|
+
"DialogTrigger",
|
|
570
|
+
"Modal",
|
|
571
|
+
"ModalBody",
|
|
572
|
+
"ModalClose",
|
|
573
|
+
"ModalContent",
|
|
574
|
+
"ModalDescription",
|
|
575
|
+
"ModalFooter",
|
|
576
|
+
"ModalHeader",
|
|
577
|
+
"ModalTitle",
|
|
578
|
+
"ModalTrigger"
|
|
579
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
580
|
+
Object.defineProperty(exports, '__esModule', {
|
|
581
|
+
value: true
|
|
582
|
+
});
|