@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,174 @@
|
|
|
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 pchuwx0 {
|
|
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 pchuwx1 {
|
|
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
|
+
.pchuwx2 {
|
|
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
|
+
.pchuwx2:focus-visible {
|
|
142
|
+
outline: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.pchuwx2[data-state="open"] {
|
|
146
|
+
animation: pchuwx0 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.pchuwx2[data-state="closed"] {
|
|
150
|
+
animation: pchuwx1 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.pchuwx3 {
|
|
154
|
+
max-width: 24rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.pchuwx4 {
|
|
158
|
+
max-width: 28rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.pchuwx5 {
|
|
162
|
+
max-width: 36rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pchuwx6 {
|
|
166
|
+
max-width: 48rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.pchuwx7 {
|
|
170
|
+
top: var(--vinyasa-space3);
|
|
171
|
+
right: var(--vinyasa-space3);
|
|
172
|
+
position: absolute;
|
|
173
|
+
}
|
|
174
|
+
|
package/dist/esm/302.css
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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: #00000080;
|
|
24
|
+
position: fixed;
|
|
25
|
+
inset: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
._13owy332[data-state="open"] {
|
|
29
|
+
animation: _13owy330 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
._13owy332[data-state="closed"] {
|
|
33
|
+
animation: _13owy331 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
._13owy333 {
|
|
37
|
+
gap: var(--vinyasa-space1);
|
|
38
|
+
padding: var(--vinyasa-space4);
|
|
39
|
+
border-bottom: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
padding-right: 2.75rem;
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._13owy334 {
|
|
46
|
+
font-size: var(--vinyasa-font-size-lg);
|
|
47
|
+
font-weight: var(--vinyasa-font-weight-semibold);
|
|
48
|
+
color: var(--vinyasa-on-secondary);
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
._13owy335 {
|
|
53
|
+
font-size: var(--vinyasa-font-size-sm);
|
|
54
|
+
color: var(--vinyasa-text-muted);
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
._13owy336 {
|
|
59
|
+
border-radius: var(--vinyasa-radius-sm);
|
|
60
|
+
width: 1.75rem;
|
|
61
|
+
height: 1.75rem;
|
|
62
|
+
color: var(--vinyasa-text-muted);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
background-color: #0000;
|
|
65
|
+
border: none;
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
._13owy336:hover {
|
|
73
|
+
background-color: var(--vinyasa-secondary);
|
|
74
|
+
color: var(--vinyasa-on-secondary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
._13owy336:focus-visible {
|
|
78
|
+
border-color: var(--vinyasa-focus);
|
|
79
|
+
box-shadow: 0 0 0 1px var(--vinyasa-focus), 0 0 0 4px color-mix(in srgb, var(--vinyasa-focus) 16%, transparent);
|
|
80
|
+
outline: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
._13owy337 {
|
|
84
|
+
padding: var(--vinyasa-space4);
|
|
85
|
+
font-size: var(--vinyasa-font-size-sm);
|
|
86
|
+
color: var(--vinyasa-on-secondary);
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
._13owy338 {
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
gap: var(--vinyasa-space2);
|
|
93
|
+
padding: var(--vinyasa-space4);
|
|
94
|
+
border-top: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
|
|
95
|
+
display: flex;
|
|
96
|
+
}
|
|
97
|
+
|
package/dist/esm/302.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import "./302.css";
|
|
2
|
+
var body = '_13owy337';
|
|
3
|
+
var closeButton = '_13owy336';
|
|
4
|
+
var descriptionText = '_13owy335';
|
|
5
|
+
var footer = '_13owy338';
|
|
6
|
+
var header = '_13owy333';
|
|
7
|
+
var scrim = '_13owy332';
|
|
8
|
+
var titleText = '_13owy334';
|
|
9
|
+
function toPrimitive(t, r) {
|
|
10
|
+
if ("object" != typeof t || !t) return t;
|
|
11
|
+
var e = t[Symbol.toPrimitive];
|
|
12
|
+
if (void 0 !== e) {
|
|
13
|
+
var i = e.call(t, r || "default");
|
|
14
|
+
if ("object" != typeof i) return i;
|
|
15
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
|
+
}
|
|
17
|
+
return ("string" === r ? String : Number)(t);
|
|
18
|
+
}
|
|
19
|
+
function toPropertyKey(t) {
|
|
20
|
+
var i = toPrimitive(t, "string");
|
|
21
|
+
return "symbol" == typeof i ? i : String(i);
|
|
22
|
+
}
|
|
23
|
+
function _defineProperty(obj, key, value) {
|
|
24
|
+
key = toPropertyKey(key);
|
|
25
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
26
|
+
value: value,
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true
|
|
30
|
+
});
|
|
31
|
+
else obj[key] = value;
|
|
32
|
+
return obj;
|
|
33
|
+
}
|
|
34
|
+
function ownKeys(e, r) {
|
|
35
|
+
var t = Object.keys(e);
|
|
36
|
+
if (Object.getOwnPropertySymbols) {
|
|
37
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
38
|
+
r && (o = o.filter(function(r) {
|
|
39
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
40
|
+
})), t.push.apply(t, o);
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function _objectSpread2(e) {
|
|
45
|
+
for(var r = 1; r < arguments.length; r++){
|
|
46
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
47
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
48
|
+
_defineProperty(e, r, t[r]);
|
|
49
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
50
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return e;
|
|
54
|
+
}
|
|
55
|
+
function mapValues(input, fn) {
|
|
56
|
+
var result = {};
|
|
57
|
+
for(var _key in input)result[_key] = fn(input[_key], _key);
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
|
|
61
|
+
for (var key of Object.keys(compoundCheck)){
|
|
62
|
+
var _selections$key;
|
|
63
|
+
if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
|
|
64
|
+
}
|
|
65
|
+
return true;
|
|
66
|
+
};
|
|
67
|
+
var createRuntimeFn = (config)=>{
|
|
68
|
+
var runtimeFn = (options)=>{
|
|
69
|
+
var className = config.defaultClassName;
|
|
70
|
+
var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
|
|
71
|
+
for(var variantName in selections){
|
|
72
|
+
var _selections$variantNa;
|
|
73
|
+
var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
|
|
74
|
+
if (null != variantSelection) {
|
|
75
|
+
var selection = variantSelection;
|
|
76
|
+
if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
|
|
77
|
+
var selectionClassName = config.variantClassNames[variantName][selection];
|
|
78
|
+
if (selectionClassName) className += ' ' + selectionClassName;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
|
|
82
|
+
return className;
|
|
83
|
+
};
|
|
84
|
+
runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
|
|
85
|
+
runtimeFn.classNames = {
|
|
86
|
+
get base () {
|
|
87
|
+
return config.defaultClassName.split(' ')[0];
|
|
88
|
+
},
|
|
89
|
+
get variants () {
|
|
90
|
+
return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return runtimeFn;
|
|
94
|
+
};
|
|
95
|
+
export { body, closeButton, createRuntimeFn, descriptionText, footer, header, scrim, titleText };
|
package/dist/esm/548.css
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@keyframes _1neyrrq0 {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
to {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translate(-50%, -50%) scale(1);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes _1neyrrq1 {
|
|
14
|
+
from {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transform: translate(-50%, -50%) scale(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
to {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._1neyrrq2 {
|
|
26
|
+
z-index: var(--vinyasa-z-index-modal);
|
|
27
|
+
background-color: var(--vinyasa-surface);
|
|
28
|
+
border-radius: var(--vinyasa-radius-md);
|
|
29
|
+
width: calc(100vw - 2rem);
|
|
30
|
+
max-height: 85vh;
|
|
31
|
+
box-shadow: var(--vinyasa-elevation-modal);
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
display: flex;
|
|
34
|
+
position: fixed;
|
|
35
|
+
top: 50%;
|
|
36
|
+
left: 50%;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
._1neyrrq2:focus-visible {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._1neyrrq2[data-state="open"] {
|
|
46
|
+
animation: _1neyrrq0 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
._1neyrrq2[data-state="closed"] {
|
|
50
|
+
animation: _1neyrrq1 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._1neyrrq3 {
|
|
54
|
+
max-width: 24rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
._1neyrrq4 {
|
|
58
|
+
max-width: 28rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
._1neyrrq5 {
|
|
62
|
+
max-width: 36rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
._1neyrrq6 {
|
|
66
|
+
max-width: 48rem;
|
|
67
|
+
}
|
|
68
|
+
|
package/dist/esm/548.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import "./548.css";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { footer, body, createRuntimeFn, header, scrim, descriptionText, titleText } from "./302.js";
|
|
5
|
+
import * as __rspack_external__radix_ui_react_alert_dialog_c2bcbc55 from "@radix-ui/react-alert-dialog";
|
|
6
|
+
var content = createRuntimeFn({
|
|
7
|
+
defaultClassName: '_1neyrrq2',
|
|
8
|
+
variantClassNames: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: '_1neyrrq3',
|
|
11
|
+
md: '_1neyrrq4',
|
|
12
|
+
lg: '_1neyrrq5',
|
|
13
|
+
xl: '_1neyrrq6'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: 'md'
|
|
18
|
+
},
|
|
19
|
+
compoundVariants: []
|
|
20
|
+
});
|
|
21
|
+
const AlertDialog = __rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Root;
|
|
22
|
+
const AlertDialogTrigger = __rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Trigger;
|
|
23
|
+
const AlertDialogAction = __rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Action;
|
|
24
|
+
const AlertDialogCancel = __rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Cancel;
|
|
25
|
+
const AlertDialogContent = /*#__PURE__*/ forwardRef(({ size = 'md', className, children, ...rest }, ref)=>/*#__PURE__*/ jsxs(Fragment, {
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Overlay, {
|
|
28
|
+
className: scrim
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Content, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: className ? `${content({
|
|
33
|
+
size
|
|
34
|
+
})} ${className}` : content({
|
|
35
|
+
size
|
|
36
|
+
}),
|
|
37
|
+
...rest,
|
|
38
|
+
children: children
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}));
|
|
42
|
+
AlertDialogContent.displayName = 'AlertDialogContent';
|
|
43
|
+
const AlertDialogHeader = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
44
|
+
className: className ? `${header} ${className}` : header,
|
|
45
|
+
...rest
|
|
46
|
+
});
|
|
47
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
48
|
+
const AlertDialogBody = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
49
|
+
className: className ? `${body} ${className}` : body,
|
|
50
|
+
...rest
|
|
51
|
+
});
|
|
52
|
+
AlertDialogBody.displayName = 'AlertDialogBody';
|
|
53
|
+
const AlertDialogFooter = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
54
|
+
className: className ? `${footer} ${className}` : footer,
|
|
55
|
+
...rest
|
|
56
|
+
});
|
|
57
|
+
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
58
|
+
const AlertDialogTitle = /*#__PURE__*/ forwardRef(({ className, ...rest }, ref)=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Title, {
|
|
59
|
+
ref: ref,
|
|
60
|
+
className: className ? `${titleText} ${className}` : titleText,
|
|
61
|
+
...rest
|
|
62
|
+
}));
|
|
63
|
+
AlertDialogTitle.displayName = 'AlertDialogTitle';
|
|
64
|
+
const AlertDialogDescription = /*#__PURE__*/ forwardRef(({ className, ...rest }, ref)=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_alert_dialog_c2bcbc55.Description, {
|
|
65
|
+
ref: ref,
|
|
66
|
+
className: className ? `${descriptionText} ${className}` : descriptionText,
|
|
67
|
+
...rest
|
|
68
|
+
}));
|
|
69
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
70
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
|
package/dist/esm/649.css
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@keyframes pchuwx0 {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
to {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translate(-50%, -50%) scale(1);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes pchuwx1 {
|
|
14
|
+
from {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transform: translate(-50%, -50%) scale(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
to {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transform: translate(-50%, -48%) scale(.96);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pchuwx2 {
|
|
26
|
+
z-index: var(--vinyasa-z-index-modal);
|
|
27
|
+
background-color: var(--vinyasa-surface);
|
|
28
|
+
border-radius: var(--vinyasa-radius-md);
|
|
29
|
+
width: calc(100vw - 2rem);
|
|
30
|
+
max-height: 85vh;
|
|
31
|
+
box-shadow: var(--vinyasa-elevation-modal);
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
display: flex;
|
|
34
|
+
position: fixed;
|
|
35
|
+
top: 50%;
|
|
36
|
+
left: 50%;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pchuwx2:focus-visible {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pchuwx2[data-state="open"] {
|
|
46
|
+
animation: pchuwx0 var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-out);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pchuwx2[data-state="closed"] {
|
|
50
|
+
animation: pchuwx1 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-in);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pchuwx3 {
|
|
54
|
+
max-width: 24rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pchuwx4 {
|
|
58
|
+
max-width: 28rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pchuwx5 {
|
|
62
|
+
max-width: 36rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pchuwx6 {
|
|
66
|
+
max-width: 48rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pchuwx7 {
|
|
70
|
+
top: var(--vinyasa-space3);
|
|
71
|
+
right: var(--vinyasa-space3);
|
|
72
|
+
position: absolute;
|
|
73
|
+
}
|
|
74
|
+
|
package/dist/esm/649.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import "./649.css";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { XIcon } from "@vinyasa/icons";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { body, createRuntimeFn, closeButton, scrim, titleText, descriptionText, header, footer } from "./302.js";
|
|
6
|
+
import * as __rspack_external__radix_ui_react_dialog_6b867f3d from "@radix-ui/react-dialog";
|
|
7
|
+
var closeButtonPosition = 'pchuwx7';
|
|
8
|
+
var content = createRuntimeFn({
|
|
9
|
+
defaultClassName: 'pchuwx2',
|
|
10
|
+
variantClassNames: {
|
|
11
|
+
size: {
|
|
12
|
+
sm: 'pchuwx3',
|
|
13
|
+
md: 'pchuwx4',
|
|
14
|
+
lg: 'pchuwx5',
|
|
15
|
+
xl: 'pchuwx6'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: 'md'
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: []
|
|
22
|
+
});
|
|
23
|
+
const Dialog = __rspack_external__radix_ui_react_dialog_6b867f3d.Root;
|
|
24
|
+
const DialogTrigger = __rspack_external__radix_ui_react_dialog_6b867f3d.Trigger;
|
|
25
|
+
const DialogClose = __rspack_external__radix_ui_react_dialog_6b867f3d.Close;
|
|
26
|
+
const DialogContent = /*#__PURE__*/ forwardRef(({ size = 'md', hideCloseButton = false, className, children, ...rest }, ref)=>/*#__PURE__*/ jsxs(Fragment, {
|
|
27
|
+
children: [
|
|
28
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Overlay, {
|
|
29
|
+
className: scrim
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_6b867f3d.Content, {
|
|
32
|
+
ref: ref,
|
|
33
|
+
className: className ? `${content({
|
|
34
|
+
size
|
|
35
|
+
})} ${className}` : content({
|
|
36
|
+
size
|
|
37
|
+
}),
|
|
38
|
+
...rest,
|
|
39
|
+
children: [
|
|
40
|
+
children,
|
|
41
|
+
hideCloseButton ? null : /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Close, {
|
|
42
|
+
className: `${closeButton} ${closeButtonPosition}`,
|
|
43
|
+
"aria-label": "Close",
|
|
44
|
+
children: /*#__PURE__*/ jsx(XIcon, {})
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
}));
|
|
50
|
+
DialogContent.displayName = 'DialogContent';
|
|
51
|
+
const DialogHeader = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
52
|
+
className: className ? `${header} ${className}` : header,
|
|
53
|
+
...rest
|
|
54
|
+
});
|
|
55
|
+
DialogHeader.displayName = 'DialogHeader';
|
|
56
|
+
const DialogBody = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
57
|
+
className: className ? `${body} ${className}` : body,
|
|
58
|
+
...rest
|
|
59
|
+
});
|
|
60
|
+
DialogBody.displayName = 'DialogBody';
|
|
61
|
+
const DialogFooter = ({ className, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
62
|
+
className: className ? `${footer} ${className}` : footer,
|
|
63
|
+
...rest
|
|
64
|
+
});
|
|
65
|
+
DialogFooter.displayName = 'DialogFooter';
|
|
66
|
+
const DialogTitle = /*#__PURE__*/ forwardRef(({ className, ...rest }, ref)=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Title, {
|
|
67
|
+
ref: ref,
|
|
68
|
+
className: className ? `${titleText} ${className}` : titleText,
|
|
69
|
+
...rest
|
|
70
|
+
}));
|
|
71
|
+
DialogTitle.displayName = 'DialogTitle';
|
|
72
|
+
const DialogDescription = /*#__PURE__*/ forwardRef(({ className, ...rest }, ref)=>/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Description, {
|
|
73
|
+
ref: ref,
|
|
74
|
+
className: className ? `${descriptionText} ${className}` : descriptionText,
|
|
75
|
+
...rest
|
|
76
|
+
}));
|
|
77
|
+
DialogDescription.displayName = "DialogDescription";
|
|
78
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./548.js";
|