@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
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# @vinyasa/overlay
|
|
2
|
+
|
|
3
|
+
Overlay primitives: Dialog (+ `Modal` alias), Alert Dialog, Drawer, Sheet, Popover, Tooltip, Hover Card, Context Menu, Dropdown Menu, Command Palette. Delivered in phases — this package currently ships Dialog and Modal.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @vinyasa/overlay @vinyasa/layout @vinyasa/typography @vinyasa/icons @vinyasa/button @vinyasa/tokens react react-dom
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Rendering requires a `VinyasaProvider` (from `@vinyasa/tokens`) above these components in the tree. None of these components render through a portal — `VinyasaProvider` injects theme tokens as an inline style on its own wrapper element (not `:root`), so anything portaled to `document.body` would fall outside that subtree and lose every `var(--vinyasa-*)` token. Each overlay's content instead uses `position: fixed` to float above the rest of the page while staying inside the themed subtree — the same fix already used by `@vinyasa/form`'s Select/Combobox/Date Picker/Color Picker and `@vinyasa/feedback`'s Toaster. This means your app must not wrap `VinyasaProvider`'s subtree in an ancestor with its own `transform`/`filter`/`perspective` (which would give `position: fixed` descendants a new containing block other than the viewport).
|
|
12
|
+
|
|
13
|
+
## Composition
|
|
14
|
+
|
|
15
|
+
Every component in this package is **compound**, not a single props-driven component — the same shape `@radix-ui/react-dialog` (and shadcn/ui, built on top of it) already use, and the standard for every overlay this package ships. `Dialog`/`DialogTrigger` are Radix's own primitives re-exported directly; `DialogContent`/`DialogHeader`/`DialogBody`/`DialogFooter`/`DialogTitle`/`DialogDescription` compose them with this system's own styling. An earlier single-`<Dialog trigger= title= footer=>` shape was tried and dropped — it couldn't express something as simple as an icon next to the title without stuffing a whole layout primitive into the `title` prop; assembling the pieces by hand instead handles that naturally.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
### Dialog
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
<Dialog>
|
|
23
|
+
<DialogTrigger asChild>
|
|
24
|
+
<Button>Open dialog</Button>
|
|
25
|
+
</DialogTrigger>
|
|
26
|
+
<DialogContent size="lg">
|
|
27
|
+
<DialogHeader>
|
|
28
|
+
<DialogTitle>Edit profile</DialogTitle>
|
|
29
|
+
<DialogDescription>Make changes to your profile here.</DialogDescription>
|
|
30
|
+
</DialogHeader>
|
|
31
|
+
<DialogBody>
|
|
32
|
+
<Input label="Name" />
|
|
33
|
+
</DialogBody>
|
|
34
|
+
<DialogFooter>
|
|
35
|
+
<DialogClose asChild>
|
|
36
|
+
<Button variant="outline">Cancel</Button>
|
|
37
|
+
</DialogClose>
|
|
38
|
+
<Button>Save changes</Button>
|
|
39
|
+
</DialogFooter>
|
|
40
|
+
</DialogContent>
|
|
41
|
+
</Dialog>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
- `size` on `DialogContent` picks a max-width preset: `'sm' | 'md' | 'lg' | 'xl'` (defaults to `'md'`, 28rem).
|
|
45
|
+
- `DialogContent` renders its own close (X) button in the corner automatically; pass `hideCloseButton` to omit it.
|
|
46
|
+
- `DialogClose asChild` wraps any element (typically a `Button`) to close the dialog on click without wiring your own `onClick`/state — useful for a footer's "Cancel" button.
|
|
47
|
+
- Every part accepts its own `className`, merged onto (not replacing) the built-in styling.
|
|
48
|
+
- Uncontrolled by default (`DialogTrigger` opens it); pass `open`/`onOpenChange` to `Dialog` to control it yourself, e.g. to open it from somewhere other than its own trigger (see the `SavingState` story).
|
|
49
|
+
|
|
50
|
+
Also available with `Modal`/`ModalTrigger`/`ModalContent`/`ModalHeader`/`ModalBody`/`ModalFooter`/`ModalTitle`/`ModalDescription`/`ModalClose` — `Modal` and `Dialog` are the same implementation under two names, not two components.
|
|
51
|
+
|
|
52
|
+
## Subpath imports
|
|
53
|
+
|
|
54
|
+
Every component also has its own subpath export for finer-grained bundling, e.g. `import { Dialog, DialogTrigger, DialogContent } from '@vinyasa/overlay/dialog'`.
|
|
@@ -0,0 +1,339 @@
|
|
|
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
|
+
});
|
|
42
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
43
|
+
const react_alert_dialog_namespaceObject = require("@radix-ui/react-alert-dialog");
|
|
44
|
+
const external_react_namespaceObject = require("react");
|
|
45
|
+
var body = '_13owy337';
|
|
46
|
+
var descriptionText = '_13owy335';
|
|
47
|
+
var footer = '_13owy338';
|
|
48
|
+
var header = '_13owy333';
|
|
49
|
+
var scrim = '_13owy332';
|
|
50
|
+
var titleText = '_13owy334';
|
|
51
|
+
function toPrimitive(t, r) {
|
|
52
|
+
if ("object" != typeof t || !t) return t;
|
|
53
|
+
var e = t[Symbol.toPrimitive];
|
|
54
|
+
if (void 0 !== e) {
|
|
55
|
+
var i = e.call(t, r || "default");
|
|
56
|
+
if ("object" != typeof i) return i;
|
|
57
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58
|
+
}
|
|
59
|
+
return ("string" === r ? String : Number)(t);
|
|
60
|
+
}
|
|
61
|
+
function toPropertyKey(t) {
|
|
62
|
+
var i = toPrimitive(t, "string");
|
|
63
|
+
return "symbol" == typeof i ? i : String(i);
|
|
64
|
+
}
|
|
65
|
+
function _defineProperty(obj, key, value) {
|
|
66
|
+
key = toPropertyKey(key);
|
|
67
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
68
|
+
value: value,
|
|
69
|
+
enumerable: true,
|
|
70
|
+
configurable: true,
|
|
71
|
+
writable: true
|
|
72
|
+
});
|
|
73
|
+
else obj[key] = value;
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
function createRuntimeFn_62c9670f_esm_ownKeys(e, r) {
|
|
77
|
+
var t = Object.keys(e);
|
|
78
|
+
if (Object.getOwnPropertySymbols) {
|
|
79
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
80
|
+
r && (o = o.filter(function(r) {
|
|
81
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
82
|
+
})), t.push.apply(t, o);
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
}
|
|
86
|
+
function _objectSpread2(e) {
|
|
87
|
+
for(var r = 1; r < arguments.length; r++){
|
|
88
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
89
|
+
r % 2 ? createRuntimeFn_62c9670f_esm_ownKeys(Object(t), !0).forEach(function(r) {
|
|
90
|
+
_defineProperty(e, r, t[r]);
|
|
91
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : createRuntimeFn_62c9670f_esm_ownKeys(Object(t)).forEach(function(r) {
|
|
92
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return e;
|
|
96
|
+
}
|
|
97
|
+
function mapValues(input, fn) {
|
|
98
|
+
var result = {};
|
|
99
|
+
for(var _key in input)result[_key] = fn(input[_key], _key);
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
|
|
103
|
+
for (var key of Object.keys(compoundCheck)){
|
|
104
|
+
var _selections$key;
|
|
105
|
+
if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
};
|
|
109
|
+
var createRuntimeFn = (config)=>{
|
|
110
|
+
var runtimeFn = (options)=>{
|
|
111
|
+
var className = config.defaultClassName;
|
|
112
|
+
var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
|
|
113
|
+
for(var variantName in selections){
|
|
114
|
+
var _selections$variantNa;
|
|
115
|
+
var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
|
|
116
|
+
if (null != variantSelection) {
|
|
117
|
+
var selection = variantSelection;
|
|
118
|
+
if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
|
|
119
|
+
var selectionClassName = config.variantClassNames[variantName][selection];
|
|
120
|
+
if (selectionClassName) className += ' ' + selectionClassName;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
|
|
124
|
+
return className;
|
|
125
|
+
};
|
|
126
|
+
runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
|
|
127
|
+
runtimeFn.classNames = {
|
|
128
|
+
get base () {
|
|
129
|
+
return config.defaultClassName.split(' ')[0];
|
|
130
|
+
},
|
|
131
|
+
get variants () {
|
|
132
|
+
return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return runtimeFn;
|
|
136
|
+
};
|
|
137
|
+
var content = createRuntimeFn({
|
|
138
|
+
defaultClassName: '_1neyrrq2',
|
|
139
|
+
variantClassNames: {
|
|
140
|
+
size: {
|
|
141
|
+
sm: '_1neyrrq3',
|
|
142
|
+
md: '_1neyrrq4',
|
|
143
|
+
lg: '_1neyrrq5',
|
|
144
|
+
xl: '_1neyrrq6'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
defaultVariants: {
|
|
148
|
+
size: 'md'
|
|
149
|
+
},
|
|
150
|
+
compoundVariants: []
|
|
151
|
+
});
|
|
152
|
+
function _define_property(obj, key, value) {
|
|
153
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
154
|
+
value: value,
|
|
155
|
+
enumerable: true,
|
|
156
|
+
configurable: true,
|
|
157
|
+
writable: true
|
|
158
|
+
});
|
|
159
|
+
else obj[key] = value;
|
|
160
|
+
return obj;
|
|
161
|
+
}
|
|
162
|
+
function _object_spread(target) {
|
|
163
|
+
for(var i = 1; i < arguments.length; i++){
|
|
164
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
165
|
+
var ownKeys = Object.keys(source);
|
|
166
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
167
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
168
|
+
}));
|
|
169
|
+
ownKeys.forEach(function(key) {
|
|
170
|
+
_define_property(target, key, source[key]);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
return target;
|
|
174
|
+
}
|
|
175
|
+
function AlertDialog_ownKeys(object, enumerableOnly) {
|
|
176
|
+
var keys = Object.keys(object);
|
|
177
|
+
if (Object.getOwnPropertySymbols) {
|
|
178
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
179
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
180
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
181
|
+
});
|
|
182
|
+
keys.push.apply(keys, symbols);
|
|
183
|
+
}
|
|
184
|
+
return keys;
|
|
185
|
+
}
|
|
186
|
+
function _object_spread_props(target, source) {
|
|
187
|
+
source = null != source ? source : {};
|
|
188
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
189
|
+
else AlertDialog_ownKeys(Object(source)).forEach(function(key) {
|
|
190
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
191
|
+
});
|
|
192
|
+
return target;
|
|
193
|
+
}
|
|
194
|
+
function _object_without_properties(source, excluded) {
|
|
195
|
+
if (null == source) return {};
|
|
196
|
+
var target = {}, sourceKeys, key, i;
|
|
197
|
+
if ("u" > typeof Reflect && Reflect.ownKeys) {
|
|
198
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
199
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
200
|
+
key = sourceKeys[i];
|
|
201
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
202
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return target;
|
|
206
|
+
}
|
|
207
|
+
target = _object_without_properties_loose(source, excluded);
|
|
208
|
+
if (Object.getOwnPropertySymbols) {
|
|
209
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
210
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
211
|
+
key = sourceKeys[i];
|
|
212
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
213
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return target;
|
|
218
|
+
}
|
|
219
|
+
function _object_without_properties_loose(source, excluded) {
|
|
220
|
+
if (null == source) return {};
|
|
221
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
222
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
223
|
+
key = sourceKeys[i];
|
|
224
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
225
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return target;
|
|
229
|
+
}
|
|
230
|
+
const AlertDialog = react_alert_dialog_namespaceObject.Root;
|
|
231
|
+
const AlertDialogTrigger = react_alert_dialog_namespaceObject.Trigger;
|
|
232
|
+
const AlertDialogAction = react_alert_dialog_namespaceObject.Action;
|
|
233
|
+
const AlertDialogCancel = react_alert_dialog_namespaceObject.Cancel;
|
|
234
|
+
const AlertDialogContent = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
235
|
+
let _ref = [
|
|
236
|
+
_0,
|
|
237
|
+
_1
|
|
238
|
+
], [_ref1, ..._rest] = _ref, { size = 'md', className, children } = _ref1, rest = _object_without_properties(_ref1, [
|
|
239
|
+
"size",
|
|
240
|
+
"className",
|
|
241
|
+
"children"
|
|
242
|
+
]), [ref] = _rest;
|
|
243
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
244
|
+
children: [
|
|
245
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay, {
|
|
246
|
+
className: scrim
|
|
247
|
+
}),
|
|
248
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, _object_spread_props(_object_spread({
|
|
249
|
+
ref: ref,
|
|
250
|
+
className: className ? `${content({
|
|
251
|
+
size
|
|
252
|
+
})} ${className}` : content({
|
|
253
|
+
size
|
|
254
|
+
})
|
|
255
|
+
}, rest), {
|
|
256
|
+
children: children
|
|
257
|
+
}))
|
|
258
|
+
]
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
AlertDialogContent.displayName = 'AlertDialogContent';
|
|
262
|
+
const AlertDialogHeader = (_0)=>{
|
|
263
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
264
|
+
"className"
|
|
265
|
+
]);
|
|
266
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
267
|
+
className: className ? `${header} ${className}` : header
|
|
268
|
+
}, rest));
|
|
269
|
+
};
|
|
270
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
271
|
+
const AlertDialogBody = (_0)=>{
|
|
272
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
273
|
+
"className"
|
|
274
|
+
]);
|
|
275
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
276
|
+
className: className ? `${body} ${className}` : body
|
|
277
|
+
}, rest));
|
|
278
|
+
};
|
|
279
|
+
AlertDialogBody.displayName = 'AlertDialogBody';
|
|
280
|
+
const AlertDialogFooter = (_0)=>{
|
|
281
|
+
let { className } = _0, rest = _object_without_properties(_0, [
|
|
282
|
+
"className"
|
|
283
|
+
]);
|
|
284
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
|
|
285
|
+
className: className ? `${footer} ${className}` : footer
|
|
286
|
+
}, rest));
|
|
287
|
+
};
|
|
288
|
+
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
289
|
+
const AlertDialogTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
290
|
+
let _ref = [
|
|
291
|
+
_0,
|
|
292
|
+
_1
|
|
293
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
|
|
294
|
+
"className"
|
|
295
|
+
]), [ref] = _rest;
|
|
296
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, _object_spread({
|
|
297
|
+
ref: ref,
|
|
298
|
+
className: className ? `${titleText} ${className}` : titleText
|
|
299
|
+
}, rest));
|
|
300
|
+
});
|
|
301
|
+
AlertDialogTitle.displayName = 'AlertDialogTitle';
|
|
302
|
+
const AlertDialogDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
|
|
303
|
+
let _ref = [
|
|
304
|
+
_0,
|
|
305
|
+
_1
|
|
306
|
+
], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
|
|
307
|
+
"className"
|
|
308
|
+
]), [ref] = _rest;
|
|
309
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, _object_spread({
|
|
310
|
+
ref: ref,
|
|
311
|
+
className: className ? `${descriptionText} ${className}` : descriptionText
|
|
312
|
+
}, rest));
|
|
313
|
+
});
|
|
314
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
315
|
+
exports.AlertDialog = __webpack_exports__.AlertDialog;
|
|
316
|
+
exports.AlertDialogAction = __webpack_exports__.AlertDialogAction;
|
|
317
|
+
exports.AlertDialogBody = __webpack_exports__.AlertDialogBody;
|
|
318
|
+
exports.AlertDialogCancel = __webpack_exports__.AlertDialogCancel;
|
|
319
|
+
exports.AlertDialogContent = __webpack_exports__.AlertDialogContent;
|
|
320
|
+
exports.AlertDialogDescription = __webpack_exports__.AlertDialogDescription;
|
|
321
|
+
exports.AlertDialogFooter = __webpack_exports__.AlertDialogFooter;
|
|
322
|
+
exports.AlertDialogHeader = __webpack_exports__.AlertDialogHeader;
|
|
323
|
+
exports.AlertDialogTitle = __webpack_exports__.AlertDialogTitle;
|
|
324
|
+
exports.AlertDialogTrigger = __webpack_exports__.AlertDialogTrigger;
|
|
325
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
326
|
+
"AlertDialog",
|
|
327
|
+
"AlertDialogAction",
|
|
328
|
+
"AlertDialogBody",
|
|
329
|
+
"AlertDialogCancel",
|
|
330
|
+
"AlertDialogContent",
|
|
331
|
+
"AlertDialogDescription",
|
|
332
|
+
"AlertDialogFooter",
|
|
333
|
+
"AlertDialogHeader",
|
|
334
|
+
"AlertDialogTitle",
|
|
335
|
+
"AlertDialogTrigger"
|
|
336
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
337
|
+
Object.defineProperty(exports, '__esModule', {
|
|
338
|
+
value: true
|
|
339
|
+
});
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@keyframes _13owy330 {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
to {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes _13owy331 {
|
|
12
|
+
from {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
to {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._13owy332 {
|
|
22
|
+
z-index: var(--vinyasa-z-index-overlay);
|
|
23
|
+
background-color: rgba(0, 0, 0, .5);
|
|
24
|
+
position: fixed;
|
|
25
|
+
top: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
._13owy332[data-state="open"] {
|
|
32
|
+
animation: _13owy330 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._13owy332[data-state="closed"] {
|
|
36
|
+
animation: _13owy331 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
._13owy333 {
|
|
40
|
+
gap: var(--vinyasa-space1);
|
|
41
|
+
padding: var(--vinyasa-space4);
|
|
42
|
+
border-bottom: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
padding-right: 2.75rem;
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
._13owy334 {
|
|
49
|
+
font-size: var(--vinyasa-font-size-lg);
|
|
50
|
+
font-weight: var(--vinyasa-font-weight-semibold);
|
|
51
|
+
color: var(--vinyasa-on-secondary);
|
|
52
|
+
margin: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
._13owy335 {
|
|
56
|
+
font-size: var(--vinyasa-font-size-sm);
|
|
57
|
+
color: var(--vinyasa-text-muted);
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
._13owy336 {
|
|
62
|
+
border-radius: var(--vinyasa-radius-sm);
|
|
63
|
+
width: 1.75rem;
|
|
64
|
+
height: 1.75rem;
|
|
65
|
+
color: var(--vinyasa-text-muted);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
background-color: rgba(0, 0, 0, 0);
|
|
68
|
+
border: none;
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
._13owy336:hover {
|
|
76
|
+
background-color: var(--vinyasa-secondary);
|
|
77
|
+
color: var(--vinyasa-on-secondary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
._13owy336:focus-visible {
|
|
81
|
+
border-color: var(--vinyasa-focus);
|
|
82
|
+
box-shadow: 0 0 0 1px var(--vinyasa-focus), 0 0 0 4px color-mix(in srgb, var(--vinyasa-focus) 16%, transparent);
|
|
83
|
+
outline: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
._13owy337 {
|
|
87
|
+
padding: var(--vinyasa-space4);
|
|
88
|
+
font-size: var(--vinyasa-font-size-sm);
|
|
89
|
+
color: var(--vinyasa-on-secondary);
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
._13owy338 {
|
|
94
|
+
justify-content: flex-end;
|
|
95
|
+
gap: var(--vinyasa-space2);
|
|
96
|
+
padding: var(--vinyasa-space4);
|
|
97
|
+
border-top: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
|
|
98
|
+
display: flex;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@keyframes _1neyrrq0 {
|
|
102
|
+
from {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
to {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
transform: translate(-50%, -50%) scale(1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes _1neyrrq1 {
|
|
114
|
+
from {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
transform: translate(-50%, -50%) scale(1);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
to {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
._1neyrrq2 {
|
|
126
|
+
z-index: var(--vinyasa-z-index-modal);
|
|
127
|
+
background-color: var(--vinyasa-surface);
|
|
128
|
+
border-radius: var(--vinyasa-radius-md);
|
|
129
|
+
width: calc(100vw - 2rem);
|
|
130
|
+
max-height: 85vh;
|
|
131
|
+
box-shadow: var(--vinyasa-elevation-modal);
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
display: flex;
|
|
134
|
+
position: fixed;
|
|
135
|
+
top: 50%;
|
|
136
|
+
left: 50%;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
transform: translate(-50%, -50%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
._1neyrrq2:focus-visible {
|
|
142
|
+
outline: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
._1neyrrq2[data-state="open"] {
|
|
146
|
+
animation: _1neyrrq0 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
._1neyrrq2[data-state="closed"] {
|
|
150
|
+
animation: _1neyrrq1 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
._1neyrrq3 {
|
|
154
|
+
max-width: 24rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
._1neyrrq4 {
|
|
158
|
+
max-width: 28rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
._1neyrrq5 {
|
|
162
|
+
max-width: 36rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
._1neyrrq6 {
|
|
166
|
+
max-width: 48rem;
|
|
167
|
+
}
|
|
168
|
+
|