vanilla-jui 1.7.32 → 1.7.34
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/package.json
CHANGED
|
@@ -162,8 +162,6 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.j-btn:not(:disabled):active {
|
|
165
|
-
/* opacity: var(--opacity-active); */
|
|
166
|
-
/* transform: scale(0.95); */
|
|
167
165
|
transform: translateY(1px);
|
|
168
166
|
}
|
|
169
167
|
|
|
@@ -171,29 +169,21 @@
|
|
|
171
169
|
--btn-border-color: var(--tone-solid);
|
|
172
170
|
}
|
|
173
171
|
|
|
174
|
-
/* .j-btn:not(:disabled):focus-within, */
|
|
175
172
|
.j-btn:not(:disabled):focus-visible {
|
|
176
173
|
--btn-border-color: var(--tone-solid);
|
|
177
174
|
--btn-box-shadow: 0 0 0 3px var(--tone-ring);
|
|
178
175
|
}
|
|
179
176
|
|
|
180
177
|
.j-btn.is-reverse:not(:disabled).is-active,
|
|
181
|
-
/* .j-btn.is-reverse:not(:disabled):focus-within, */
|
|
182
178
|
.j-btn.is-reverse:not(:disabled):focus-visible {
|
|
183
179
|
--btn-border-color: transparent;
|
|
184
180
|
--btn-box-shadow: 0 0 0 3px var(--tone-card-active);
|
|
185
181
|
}
|
|
186
182
|
|
|
187
|
-
/* .j-btn.is-ghost:not(:disabled):focus-within {
|
|
188
|
-
--btn-border-color: transparent;
|
|
189
|
-
--btn-box-shadow: none;
|
|
190
|
-
} */
|
|
191
|
-
|
|
192
183
|
.j-btn.is-info:not(:disabled).is-active {
|
|
193
184
|
--btn-border-color: var(--state-info-muted);
|
|
194
185
|
}
|
|
195
186
|
|
|
196
|
-
/* .j-btn.is-info:not(:disabled):focus-within, */
|
|
197
187
|
.j-btn.is-info:not(:disabled):focus-visible {
|
|
198
188
|
--btn-border-color: var(--state-info);
|
|
199
189
|
--btn-box-shadow: 0 0 0 3px var(--state-info-ring);
|
|
@@ -203,7 +193,6 @@
|
|
|
203
193
|
--btn-border-color: var(--state-success-muted);
|
|
204
194
|
}
|
|
205
195
|
|
|
206
|
-
/* .j-btn.is-success:not(:disabled):focus-within, */
|
|
207
196
|
.j-btn.is-success:not(:disabled):focus-visible {
|
|
208
197
|
--btn-border-color: var(--state-success);
|
|
209
198
|
--btn-box-shadow: 0 0 0 3px var(--state-success-ring);
|
|
@@ -213,7 +202,6 @@
|
|
|
213
202
|
--btn-border-color: var(--state-warning-muted);
|
|
214
203
|
}
|
|
215
204
|
|
|
216
|
-
/* .j-btn.is-warning:not(:disabled):focus-within, */
|
|
217
205
|
.j-btn.is-warning:not(:disabled):focus-visible {
|
|
218
206
|
--btn-border-color: var(--state-warning);
|
|
219
207
|
--btn-box-shadow: 0 0 0 3px var(--state-warning-ring);
|
|
@@ -223,18 +211,11 @@
|
|
|
223
211
|
--btn-border-color: var(--state-error-muted);
|
|
224
212
|
}
|
|
225
213
|
|
|
226
|
-
/* .j-btn.is-error:not(:disabled):focus-within, */
|
|
227
214
|
.j-btn.is-error:not(:disabled):focus-visible {
|
|
228
215
|
--btn-border-color: var(--state-error);
|
|
229
216
|
--btn-box-shadow: 0 0 0 3px var(--state-error-ring);
|
|
230
217
|
}
|
|
231
218
|
|
|
232
|
-
.j-btn.is-default:hover:not(:disabled),
|
|
233
|
-
.j-btn.is-outline:hover:not(:disabled),
|
|
234
|
-
.j-btn.is-ghost:hover:not(:disabled) {
|
|
235
|
-
--btn-bg: var(--ui-bg-subtle);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
219
|
.j-btn.is-text:not(:disabled).is-active,
|
|
239
220
|
.j-btn.is-text:not(:disabled):active,
|
|
240
221
|
.j-btn.is-text:not(:disabled):focus-visible {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.j-tip {
|
|
3
3
|
--tip-border-color: var(--ui-border-subtle);
|
|
4
|
+
--tip-bg: var(--ui-bg);
|
|
4
5
|
--tip-icon-shadow: var(--ui-bg-soft);
|
|
5
6
|
--tip-icon-bg: var(--ui-bg-soft);
|
|
6
7
|
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
|
|
62
63
|
.j-tip .tip-content {
|
|
63
64
|
grid-column-start: 2;
|
|
64
|
-
color: var(--
|
|
65
|
+
color: var(--tone-body);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.j-tip .tip-content p {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.j-toast-container {
|
|
3
3
|
top: 16px;
|
|
4
4
|
right: 16px;
|
|
5
|
-
gap:
|
|
5
|
+
gap: 8px;
|
|
6
6
|
|
|
7
7
|
position: fixed;
|
|
8
8
|
z-index: var(--z-toast);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
body:has(#wpadminbar) .j-toast-container {
|
|
18
|
-
top:
|
|
18
|
+
top: 40px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.j-toast {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
color: var(--ui-bg);
|
|
108
108
|
background: var(--ui-fg);
|
|
109
109
|
border-radius: var(--radius-md);
|
|
110
|
-
padding:
|
|
110
|
+
padding: 8px 12px;
|
|
111
111
|
max-width: 288px;
|
|
112
112
|
z-index: var(--z-toast);
|
|
113
113
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.j-toast.is-confirm {
|
|
126
|
-
gap:
|
|
126
|
+
gap: 8px;
|
|
127
127
|
min-width: 280px;
|
|
128
128
|
padding: 1rem;
|
|
129
129
|
|
package/src/primitives/toast.ts
CHANGED
|
@@ -523,7 +523,7 @@ function confirm(message = '', props: ConfirmToastOptions = {}): HTMLElement {
|
|
|
523
523
|
const closeText = props.text?.close || translate('Close');
|
|
524
524
|
const confirmText = props.text?.confirm || translate('Confirm');
|
|
525
525
|
validateParam('once', once, 'boolean', 'Toast.confirm');
|
|
526
|
-
const duration = props.duration ??
|
|
526
|
+
const duration = props.duration ?? 0;
|
|
527
527
|
const theme = props.theme ?? '';
|
|
528
528
|
validateParam('duration', duration, TOAST_DURATION_RULE, 'Toast.confirm');
|
|
529
529
|
validateParam('theme', theme, TOAST_THEME_RULE, 'Toast.confirm');
|