@sveltia/ui 0.42.0 → 0.42.1
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/dist/components/alert/alert.svelte +30 -36
- package/dist/components/alert/infobar.svelte +45 -55
- package/dist/components/bottom-navigation/bottom-navigation.svelte +15 -21
- package/dist/components/button/button-group.svelte +5 -7
- package/dist/components/button/button.svelte +175 -274
- package/dist/components/button/floating-action-button-wrapper.svelte +18 -23
- package/dist/components/button/select-button-group.svelte +41 -57
- package/dist/components/button/split-button.svelte +18 -25
- package/dist/components/calendar/calendar.svelte +80 -103
- package/dist/components/checkbox/checkbox-group.svelte +19 -22
- package/dist/components/checkbox/checkbox.svelte +63 -91
- package/dist/components/dialog/dialog.svelte +87 -105
- package/dist/components/dialog/prompt-dialog.svelte +3 -5
- package/dist/components/disclosure/disclosure.svelte +21 -34
- package/dist/components/divider/divider.svelte +14 -18
- package/dist/components/divider/spacer.svelte +8 -13
- package/dist/components/drawer/drawer.svelte +190 -343
- package/dist/components/grid/grid-body.svelte +14 -16
- package/dist/components/grid/grid-cell.svelte +3 -5
- package/dist/components/grid/grid-col-header.svelte +3 -5
- package/dist/components/grid/grid-foot.svelte +3 -5
- package/dist/components/grid/grid-head.svelte +3 -5
- package/dist/components/grid/grid-row-header.svelte +4 -6
- package/dist/components/grid/grid-row.svelte +4 -6
- package/dist/components/grid/grid.svelte +12 -18
- package/dist/components/icon/icon.svelte +5 -7
- package/dist/components/listbox/listbox.svelte +61 -78
- package/dist/components/listbox/option-group.svelte +11 -15
- package/dist/components/listbox/option.svelte +39 -54
- package/dist/components/menu/menu-item-group.svelte +3 -5
- package/dist/components/menu/menu-item.svelte +51 -67
- package/dist/components/menu/menu.svelte +17 -21
- package/dist/components/progressbar/progressbar.svelte +15 -24
- package/dist/components/radio/radio-group.svelte +31 -40
- package/dist/components/radio/radio.svelte +63 -81
- package/dist/components/resizable-pane/resizable-handle.svelte +48 -60
- package/dist/components/resizable-pane/resizable-pane-group.svelte +14 -18
- package/dist/components/select/combobox.svelte +112 -135
- package/dist/components/select/select-tags.svelte +57 -73
- package/dist/components/slider/slider.svelte +74 -94
- package/dist/components/switch/switch.svelte +81 -115
- package/dist/components/table/table-body.svelte +14 -16
- package/dist/components/table/table-cell.svelte +3 -5
- package/dist/components/table/table-col-header.svelte +3 -5
- package/dist/components/table/table-foot.svelte +3 -5
- package/dist/components/table/table-head.svelte +3 -5
- package/dist/components/table/table-row-header.svelte +4 -6
- package/dist/components/table/table-row.svelte +4 -6
- package/dist/components/table/table.svelte +12 -18
- package/dist/components/tabs/tab-box.svelte +6 -9
- package/dist/components/tabs/tab-list.svelte +73 -91
- package/dist/components/tabs/tab-panel.svelte +7 -11
- package/dist/components/tabs/tab-panels.svelte +14 -19
- package/dist/components/text-editor/code-editor.svelte +7 -10
- package/dist/components/text-editor/lexical-root.svelte +160 -221
- package/dist/components/text-editor/text-editor.svelte +18 -25
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +37 -44
- package/dist/components/text-field/number-input.svelte +68 -87
- package/dist/components/text-field/password-input.svelte +42 -52
- package/dist/components/text-field/search-bar.svelte +53 -64
- package/dist/components/text-field/secret-input.svelte +46 -61
- package/dist/components/text-field/text-area.svelte +68 -80
- package/dist/components/text-field/text-input.svelte +106 -138
- package/dist/components/toast/toast.svelte +89 -104
- package/dist/components/toolbar/toolbar.svelte +54 -70
- package/dist/components/typography/truncated-text.svelte +7 -9
- package/dist/components/util/app-shell.svelte +493 -35
- package/dist/components/util/empty-state.svelte +11 -13
- package/dist/components/util/group.svelte +3 -5
- package/dist/components/util/modal.svelte +48 -59
- package/dist/components/util/popup.svelte +67 -87
- package/package.json +1 -1
|
@@ -180,110 +180,87 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
</div>
|
|
182
182
|
|
|
183
|
-
<style
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
<style>[role=group] {
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: 8px;
|
|
187
|
+
-webkit-user-select: none;
|
|
188
|
+
user-select: none;
|
|
189
|
+
cursor: default;
|
|
190
|
+
}
|
|
191
|
+
[role=group] > * {
|
|
192
|
+
flex: none;
|
|
193
|
+
}
|
|
191
194
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
:is(.header, .footer) {
|
|
196
|
+
display: flex;
|
|
197
|
+
gap: 8px;
|
|
198
|
+
height: 24px;
|
|
199
|
+
align-items: center;
|
|
200
|
+
}
|
|
201
|
+
:is(.header, .footer) :global(button.secondary) {
|
|
202
|
+
width: 100px;
|
|
203
|
+
flex: auto;
|
|
204
|
+
}
|
|
196
205
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
.grid {
|
|
207
|
+
display: grid !important;
|
|
208
|
+
grid-template-columns: repeat(auto-fill, 24px);
|
|
209
|
+
gap: 2px;
|
|
210
|
+
width: 180px;
|
|
211
|
+
}
|
|
212
|
+
.grid div {
|
|
213
|
+
display: flex;
|
|
214
|
+
justify-content: center;
|
|
215
|
+
align-items: center;
|
|
216
|
+
width: 24px;
|
|
217
|
+
height: 24px;
|
|
218
|
+
font-size: var(--sui-font-size-small);
|
|
219
|
+
}
|
|
220
|
+
.grid div.weekday {
|
|
221
|
+
color: var(--sui-secondary-foreground-color);
|
|
222
|
+
}
|
|
223
|
+
.grid div.other-month {
|
|
224
|
+
color: var(--sui-tertiary-foreground-color);
|
|
225
|
+
}
|
|
226
|
+
.grid div :global(.today) :global(button) {
|
|
227
|
+
color: var(--sui-highlight-foreground-color);
|
|
228
|
+
background-color: var(--sui-primary-accent-color);
|
|
229
|
+
}
|
|
230
|
+
.grid div :global(button) {
|
|
231
|
+
justify-content: center;
|
|
232
|
+
margin: 0 !important;
|
|
233
|
+
width: 100%;
|
|
234
|
+
height: 24px;
|
|
235
|
+
border-radius: 50%;
|
|
236
|
+
}
|
|
237
|
+
.grid div :global(button:hover) {
|
|
238
|
+
background-color: var(--sui-hover-background-color);
|
|
239
|
+
}
|
|
240
|
+
.grid div :global(button:focus) {
|
|
241
|
+
border-width: 1px;
|
|
242
|
+
border-color: var(--sui-primary-accent-color-light);
|
|
243
|
+
}
|
|
202
244
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
flex: auto;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
245
|
+
.footer :global(button) {
|
|
246
|
+
font-size: var(--sui-font-size-small);
|
|
247
|
+
}
|
|
210
248
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
&.other-month {
|
|
230
|
-
color: var(--sui-tertiary-foreground-color);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
:global {
|
|
234
|
-
&.today button {
|
|
235
|
-
color: var(--sui-highlight-foreground-color);
|
|
236
|
-
background-color: var(--sui-primary-accent-color);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
button {
|
|
240
|
-
justify-content: center;
|
|
241
|
-
margin: 0 !important;
|
|
242
|
-
width: 100%;
|
|
243
|
-
height: 24px;
|
|
244
|
-
border-radius: 50%;
|
|
245
|
-
|
|
246
|
-
&:hover {
|
|
247
|
-
background-color: var(--sui-hover-background-color);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&:focus {
|
|
251
|
-
border-width: 1px;
|
|
252
|
-
border-color: var(--sui-primary-accent-color-light);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.footer {
|
|
260
|
-
:global {
|
|
261
|
-
button {
|
|
262
|
-
font-size: var(--sui-font-size-small);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.popup-inner {
|
|
268
|
-
display: flex;
|
|
269
|
-
gap: 8px;
|
|
270
|
-
padding: 8px;
|
|
271
|
-
|
|
272
|
-
[role='group'] {
|
|
273
|
-
gap: 0;
|
|
274
|
-
|
|
275
|
-
.header {
|
|
276
|
-
justify-content: center;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.grid {
|
|
281
|
-
grid-template-columns: repeat(auto-fill, 48px);
|
|
282
|
-
width: calc(48px * 2 + 2px);
|
|
283
|
-
|
|
284
|
-
& > div {
|
|
285
|
-
width: 48px;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
</style>
|
|
249
|
+
.popup-inner {
|
|
250
|
+
display: flex;
|
|
251
|
+
gap: 8px;
|
|
252
|
+
padding: 8px;
|
|
253
|
+
}
|
|
254
|
+
.popup-inner [role=group] {
|
|
255
|
+
gap: 0;
|
|
256
|
+
}
|
|
257
|
+
.popup-inner [role=group] .header {
|
|
258
|
+
justify-content: center;
|
|
259
|
+
}
|
|
260
|
+
.popup-inner .grid {
|
|
261
|
+
grid-template-columns: repeat(auto-fill, 48px);
|
|
262
|
+
width: 98px;
|
|
263
|
+
}
|
|
264
|
+
.popup-inner .grid > div {
|
|
265
|
+
width: 48px;
|
|
266
|
+
}</style>
|
|
@@ -50,27 +50,24 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
|
-
<style
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
gap: 8px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
53
|
+
<style>.checkbox-group {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
}
|
|
56
|
+
.checkbox-group.horizontal {
|
|
57
|
+
gap: 8px;
|
|
58
|
+
align-items: center;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
}
|
|
61
|
+
.checkbox-group.vertical {
|
|
62
|
+
gap: 4px;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
@media (pointer: coarse) {
|
|
66
|
+
.checkbox-group.vertical {
|
|
67
|
+
gap: 8px;
|
|
71
68
|
}
|
|
69
|
+
}
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</style>
|
|
71
|
+
.inner {
|
|
72
|
+
display: contents;
|
|
73
|
+
}</style>
|
|
@@ -157,94 +157,66 @@
|
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
|
|
160
|
-
<style
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
var(--sui-primary-accent-color)
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&[aria-invalid='true'] {
|
|
228
|
-
border-color: var(--sui-error-border-color);
|
|
229
|
-
color: var(--sui-error-foreground-color);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&[aria-checked='true'][aria-invalid='true'] {
|
|
233
|
-
background-color: var(--sui-checkbox-background-color);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.icon {
|
|
237
|
-
font-size: calc(var(--sui-checkbox-height) - 2px);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
label {
|
|
243
|
-
cursor: inherit;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.inner {
|
|
248
|
-
display: contents;
|
|
249
|
-
}
|
|
250
|
-
</style>
|
|
160
|
+
<style>.checkbox {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: 8px;
|
|
164
|
+
margin: var(--sui-focus-ring-width);
|
|
165
|
+
color: var(--sui-control-foreground-color);
|
|
166
|
+
font-family: var(--sui-control-font-family);
|
|
167
|
+
font-size: var(--sui-control-font-size);
|
|
168
|
+
line-height: var(--sui-control-line-height);
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
-webkit-user-select: none;
|
|
171
|
+
user-select: none;
|
|
172
|
+
}
|
|
173
|
+
.checkbox:hover :global(button) {
|
|
174
|
+
background-color: var(--sui-hover-background-color);
|
|
175
|
+
}
|
|
176
|
+
.checkbox:hover :global(button[aria-checked=true]) {
|
|
177
|
+
background-color: var(--sui-primary-accent-color-light);
|
|
178
|
+
}
|
|
179
|
+
.checkbox:active :global(button) {
|
|
180
|
+
background-color: var(--sui-active-background-color);
|
|
181
|
+
}
|
|
182
|
+
.checkbox:active :global(button[aria-checked=true]) {
|
|
183
|
+
background-color: var(--sui-primary-accent-color-dark);
|
|
184
|
+
}
|
|
185
|
+
.checkbox :global(button) {
|
|
186
|
+
flex: none;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
margin: 0 !important;
|
|
191
|
+
border-width: var(--sui-checkbox-border-width, 1.5px);
|
|
192
|
+
border-color: var(--sui-checkbox-border-color);
|
|
193
|
+
border-radius: var(--sui-checkbox-border-radius);
|
|
194
|
+
padding: 0;
|
|
195
|
+
width: var(--sui-checkbox-height);
|
|
196
|
+
height: var(--sui-checkbox-height);
|
|
197
|
+
color: var(--sui-primary-accent-text-color);
|
|
198
|
+
background-color: var(--sui-checkbox-background-color);
|
|
199
|
+
transition: all 200ms;
|
|
200
|
+
}
|
|
201
|
+
.checkbox :global(button[aria-checked=true]) {
|
|
202
|
+
border-color: var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));
|
|
203
|
+
color: var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));
|
|
204
|
+
background-color: var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));
|
|
205
|
+
}
|
|
206
|
+
.checkbox :global(button[aria-invalid=true]) {
|
|
207
|
+
border-color: var(--sui-error-border-color);
|
|
208
|
+
color: var(--sui-error-foreground-color);
|
|
209
|
+
}
|
|
210
|
+
.checkbox :global(button[aria-checked=true][aria-invalid=true]) {
|
|
211
|
+
background-color: var(--sui-checkbox-background-color);
|
|
212
|
+
}
|
|
213
|
+
.checkbox :global(button) :global(.icon) {
|
|
214
|
+
font-size: calc(var(--sui-checkbox-height) - 2px);
|
|
215
|
+
}
|
|
216
|
+
.checkbox label {
|
|
217
|
+
cursor: inherit;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.inner {
|
|
221
|
+
display: contents;
|
|
222
|
+
}</style>
|
|
@@ -176,118 +176,100 @@
|
|
|
176
176
|
</div>
|
|
177
177
|
</Modal>
|
|
178
178
|
|
|
179
|
-
<style
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
width: var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));
|
|
208
|
-
max-height: var(
|
|
209
|
-
--sui-dialog-small-content-max-height,
|
|
210
|
-
var(--sui-dialog-content-max-height, 400px)
|
|
211
|
-
);
|
|
212
|
-
|
|
213
|
-
@media (max-height: 400px) {
|
|
214
|
-
max-height: calc(100dvh - 32px);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&.medium {
|
|
219
|
-
width: var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));
|
|
220
|
-
max-height: var(
|
|
221
|
-
--sui-dialog-medium-content-max-height,
|
|
222
|
-
var(--sui-dialog-content-max-height, 600px)
|
|
223
|
-
);
|
|
224
|
-
|
|
225
|
-
@media (max-height: 600px) {
|
|
226
|
-
max-height: calc(100dvh - 32px);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&.large {
|
|
231
|
-
width: var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));
|
|
232
|
-
max-height: var(
|
|
233
|
-
--sui-dialog-large-content-max-height,
|
|
234
|
-
var(--sui-dialog-content-max-height, 800px)
|
|
235
|
-
);
|
|
236
|
-
|
|
237
|
-
@media (max-height: 800px) {
|
|
238
|
-
max-height: calc(100dvh - 32px);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&.x-large {
|
|
243
|
-
width: var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));
|
|
244
|
-
max-height: var(
|
|
245
|
-
--sui-dialog-x-large-content-max-height,
|
|
246
|
-
var(--sui-dialog-content-max-height, 1000px)
|
|
247
|
-
);
|
|
248
|
-
|
|
249
|
-
@media (max-height: 1000px) {
|
|
250
|
-
max-height: calc(100dvh - 32px);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
179
|
+
<style>.content {
|
|
180
|
+
position: relative;
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
border-radius: var(--sui-dialog-content-border-radius, 4px);
|
|
185
|
+
max-width: calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);
|
|
186
|
+
background-color: var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));
|
|
187
|
+
box-shadow: var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));
|
|
188
|
+
-webkit-backdrop-filter: var(--sui-dialog-content-backdrop-filter, blur(16px));
|
|
189
|
+
backdrop-filter: var(--sui-dialog-content-backdrop-filter, blur(16px));
|
|
190
|
+
transition-property: transform;
|
|
191
|
+
}
|
|
192
|
+
:global(dialog.open) .content {
|
|
193
|
+
transition-duration: 150ms;
|
|
194
|
+
transform: scale(100%);
|
|
195
|
+
}
|
|
196
|
+
:global(dialog:not(.open)) .content {
|
|
197
|
+
transition-duration: 300ms;
|
|
198
|
+
transform: scale(90%);
|
|
199
|
+
}
|
|
200
|
+
.content.small {
|
|
201
|
+
width: var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));
|
|
202
|
+
max-height: var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));
|
|
203
|
+
}
|
|
204
|
+
@media (max-height: 400px) {
|
|
205
|
+
.content.small {
|
|
206
|
+
max-height: calc(100dvh - 32px);
|
|
253
207
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
208
|
+
}
|
|
209
|
+
.content.medium {
|
|
210
|
+
width: var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));
|
|
211
|
+
max-height: var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));
|
|
212
|
+
}
|
|
213
|
+
@media (max-height: 600px) {
|
|
214
|
+
.content.medium {
|
|
215
|
+
max-height: calc(100dvh - 32px);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
.content.large {
|
|
219
|
+
width: var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));
|
|
220
|
+
max-height: var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));
|
|
221
|
+
}
|
|
222
|
+
@media (max-height: 800px) {
|
|
223
|
+
.content.large {
|
|
224
|
+
max-height: calc(100dvh - 32px);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
.content.x-large {
|
|
228
|
+
width: var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));
|
|
229
|
+
max-height: var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));
|
|
230
|
+
}
|
|
231
|
+
@media (max-height: 1000px) {
|
|
232
|
+
.content.x-large {
|
|
233
|
+
max-height: calc(100dvh - 32px);
|
|
259
234
|
}
|
|
235
|
+
}
|
|
260
236
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
padding: var(--sui-dialog-header-padding, 16px 8px);
|
|
267
|
-
height: var(--sui-dialog-header-height, 32px);
|
|
237
|
+
:is(.header, .footer) {
|
|
238
|
+
display: flex;
|
|
239
|
+
align-items: center;
|
|
240
|
+
gap: 4px;
|
|
241
|
+
}
|
|
268
242
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
243
|
+
.header {
|
|
244
|
+
box-sizing: content-box;
|
|
245
|
+
margin: var(--sui-dialog-header-margin, 0 16px);
|
|
246
|
+
border-width: var(--sui-dialog-header-border-width, 0 0 1px);
|
|
247
|
+
border-color: var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));
|
|
248
|
+
padding: var(--sui-dialog-header-padding, 16px 8px);
|
|
249
|
+
height: var(--sui-dialog-header-height, 32px);
|
|
250
|
+
}
|
|
251
|
+
.header .title {
|
|
252
|
+
font-size: var(--sui-font-size-large);
|
|
253
|
+
font-weight: var(--sui-font-weight-bold);
|
|
254
|
+
}
|
|
274
255
|
|
|
256
|
+
.footer {
|
|
257
|
+
margin: var(--sui-dialog-footer-margin, 0 24px 24px);
|
|
258
|
+
}
|
|
259
|
+
@media (width < 768px) {
|
|
275
260
|
.footer {
|
|
276
|
-
margin: var(--sui-dialog-footer-margin, 0
|
|
277
|
-
|
|
278
|
-
@media (width < 768px) {
|
|
279
|
-
margin: var(--sui-dialog-footer-margin, 0 16px 16px);
|
|
280
|
-
}
|
|
261
|
+
margin: var(--sui-dialog-footer-margin, 0 16px 16px);
|
|
281
262
|
}
|
|
263
|
+
}
|
|
282
264
|
|
|
265
|
+
.body {
|
|
266
|
+
overflow: auto;
|
|
267
|
+
margin: var(--sui-dialog-body-margin, 24px 24px);
|
|
268
|
+
white-space: normal;
|
|
269
|
+
line-height: var(--sui-line-height-compact);
|
|
270
|
+
}
|
|
271
|
+
@media (width < 768px) {
|
|
283
272
|
.body {
|
|
284
|
-
|
|
285
|
-
margin: var(--sui-dialog-body-margin, 24px 24px);
|
|
286
|
-
white-space: normal;
|
|
287
|
-
line-height: var(--sui-line-height-compact);
|
|
288
|
-
|
|
289
|
-
@media (width < 768px) {
|
|
290
|
-
margin: var(--sui-dialog-body-margin, 16px 16px);
|
|
291
|
-
}
|
|
273
|
+
margin: var(--sui-dialog-body-margin, 16px 16px);
|
|
292
274
|
}
|
|
293
|
-
</style>
|
|
275
|
+
}</style>
|
|
@@ -85,39 +85,26 @@
|
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
|
-
<style
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
<style>.disclosure :global(button) {
|
|
89
|
+
display: flex;
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.disclosure :global(button) :global(.icon) {
|
|
93
|
+
transition: all 200ms;
|
|
94
|
+
}
|
|
95
|
+
.disclosure :global(button[aria-expanded=false]) :global(.icon:dir(ltr)) {
|
|
96
|
+
transform: rotate(-90deg);
|
|
97
|
+
}
|
|
98
|
+
.disclosure :global(button[aria-expanded=false]) :global(.icon:dir(rtl)) {
|
|
99
|
+
transform: rotate(90deg);
|
|
100
|
+
}
|
|
94
101
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
.inner {
|
|
103
|
+
display: contents;
|
|
104
|
+
}
|
|
98
105
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
&:dir(rtl) {
|
|
105
|
-
transform: rotate(90deg);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.inner {
|
|
113
|
-
display: contents;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.content {
|
|
117
|
-
&[hidden] {
|
|
118
|
-
display: block;
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
height: 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</style>
|
|
106
|
+
.content[hidden] {
|
|
107
|
+
display: block;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
height: 0;
|
|
110
|
+
}</style>
|