@sveltia/ui 0.10.2 → 0.10.4
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.
|
@@ -299,15 +299,16 @@ button:global(.link) {
|
|
|
299
299
|
border-radius: 0 !important;
|
|
300
300
|
padding: 0 !important;
|
|
301
301
|
height: auto !important;
|
|
302
|
-
color: var(--sui-primary-accent-color-text);
|
|
302
|
+
color: var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));
|
|
303
303
|
}
|
|
304
304
|
button:global(.link) :global(.label) {
|
|
305
305
|
padding: 0;
|
|
306
306
|
line-height: var(--sui-line-height-compact);
|
|
307
|
+
text-decoration: var(--sui-button-link-text-decoration, none);
|
|
307
308
|
white-space: normal;
|
|
308
309
|
}
|
|
309
310
|
button:global(.link):hover :global(.label), button:global(.link):focus :global(.label), button:global(.link):active :global(.label) {
|
|
310
|
-
text-decoration: underline;
|
|
311
|
+
text-decoration: var(--sui-button-link-text-decoration-focus, underline);
|
|
311
312
|
}
|
|
312
313
|
button:global(.small) {
|
|
313
314
|
border-radius: var(--sui-button-small-border-radius);
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
transform: scale(90%);
|
|
201
201
|
}
|
|
202
202
|
.content.small {
|
|
203
|
-
width: 400px;
|
|
204
|
-
max-height: 400px;
|
|
203
|
+
width: var(--sui-dialog-small-content-width, 400px);
|
|
204
|
+
max-height: var(--sui-dialog-small-content-max-height, 400px);
|
|
205
205
|
}
|
|
206
206
|
@media (max-height: 400px) {
|
|
207
207
|
.content.small {
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
.content.medium {
|
|
212
|
-
width: 600px;
|
|
213
|
-
max-height: 600px;
|
|
212
|
+
width: var(--sui-dialog-medium-content-width, 600px);
|
|
213
|
+
max-height: var(--sui-dialog-medium-content-max-height, 600px);
|
|
214
214
|
}
|
|
215
215
|
@media (max-height: 600px) {
|
|
216
216
|
.content.medium {
|
|
@@ -218,8 +218,8 @@
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
.content.large {
|
|
221
|
-
width: 800px;
|
|
222
|
-
max-height: 800px;
|
|
221
|
+
width: var(--sui-dialog-large-content-width, 800px);
|
|
222
|
+
max-height: var(--sui-dialog-large-content-max-height, 800px);
|
|
223
223
|
}
|
|
224
224
|
@media (max-height: 800px) {
|
|
225
225
|
.content.large {
|
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
.content.x-large {
|
|
230
|
-
width: 1000px;
|
|
231
|
-
max-height: 1000px;
|
|
230
|
+
width: var(--sui-dialog-x-large-content-width, 1000px);
|
|
231
|
+
max-height: var(--sui-dialog-x-large-content-max-height, 1000px);
|
|
232
232
|
}
|
|
233
233
|
@media (max-height: 1000px) {
|
|
234
234
|
.content.x-large {
|
|
@@ -174,6 +174,9 @@
|
|
|
174
174
|
inset: 0 0 0 auto;
|
|
175
175
|
border-radius: var(--sui-drawer-right-content-border-radius, var(--sui-drawer-content-border-radius, 4px 0 0 4px));
|
|
176
176
|
}
|
|
177
|
+
.content.right.full {
|
|
178
|
+
border-radius: var(--sui-drawer-right-full-content-border-radius, 0);
|
|
179
|
+
}
|
|
177
180
|
.content.right .extra-control {
|
|
178
181
|
inset: 0 100% auto auto;
|
|
179
182
|
}
|
|
@@ -184,6 +187,9 @@
|
|
|
184
187
|
inset: 0 auto 0 0;
|
|
185
188
|
border-radius: var(--sui-drawer-left-content-border-radius, var(--sui-drawer-content-border-radius, 0 4px 4px 0));
|
|
186
189
|
}
|
|
190
|
+
.content.left.full {
|
|
191
|
+
border-radius: var(--sui-drawer-left-full-content-border-radius, 0);
|
|
192
|
+
}
|
|
187
193
|
.content.left .extra-control {
|
|
188
194
|
inset: 0 auto auto 100%;
|
|
189
195
|
}
|
|
@@ -191,34 +197,36 @@
|
|
|
191
197
|
transform: translateX(-105%);
|
|
192
198
|
}
|
|
193
199
|
.content.vertical {
|
|
194
|
-
|
|
195
|
-
|
|
200
|
+
max-width: var(--sui-drawer-vertical-max-width, calc(100dvw - 56px));
|
|
201
|
+
height: var(--sui-drawer-vertical-height, 100dvh);
|
|
196
202
|
}
|
|
197
203
|
:global(dialog.open) .content.vertical {
|
|
198
|
-
max-width: calc(100dvw - 56px);
|
|
199
204
|
transform: translateX(0%);
|
|
200
205
|
}
|
|
201
206
|
.content.vertical.small {
|
|
202
|
-
width: 400px;
|
|
207
|
+
width: var(--sui-drawer-vertical-small-width, 400px);
|
|
203
208
|
}
|
|
204
209
|
.content.vertical.medium {
|
|
205
|
-
width: 600px;
|
|
210
|
+
width: var(--sui-drawer-vertical-medium-width, 600px);
|
|
206
211
|
}
|
|
207
212
|
.content.vertical.large {
|
|
208
|
-
width: 800px;
|
|
213
|
+
width: var(--sui-drawer-vertical-large-width, 800px);
|
|
209
214
|
}
|
|
210
215
|
.content.vertical.x-large {
|
|
211
|
-
width: 1000px;
|
|
216
|
+
width: var(--sui-drawer-vertical-x-large-width, 1000px);
|
|
212
217
|
}
|
|
213
218
|
.content.vertical.full {
|
|
214
|
-
border-radius: 0 !important;
|
|
215
219
|
width: 100dvw;
|
|
216
|
-
max-width:
|
|
220
|
+
max-width: 100dvw;
|
|
221
|
+
height: 100dvh;
|
|
217
222
|
}
|
|
218
223
|
.content.top {
|
|
219
224
|
inset: 0 0 auto 0;
|
|
220
225
|
border-radius: var(--sui-drawer-top-content-border-radius, var(--sui-drawer-content-border-radius, 0 0 4px 4px));
|
|
221
226
|
}
|
|
227
|
+
.content.top.full {
|
|
228
|
+
border-radius: var(--sui-drawer-top-full-content-border-radius, 0);
|
|
229
|
+
}
|
|
222
230
|
.content.top .extra-control {
|
|
223
231
|
inset: 100% 0 auto auto;
|
|
224
232
|
}
|
|
@@ -229,6 +237,9 @@
|
|
|
229
237
|
inset: auto 0 0 0;
|
|
230
238
|
border-radius: var(--sui-drawer-bottom-content-border-radius, var(--sui-drawer-content-border-radius, 4px 4px 0 0));
|
|
231
239
|
}
|
|
240
|
+
.content.bottom.full {
|
|
241
|
+
border-radius: var(--sui-drawer-bottom-full-content-border-radius, 0);
|
|
242
|
+
}
|
|
232
243
|
.content.bottom .extra-control {
|
|
233
244
|
inset: auto 0 100% auto;
|
|
234
245
|
}
|
|
@@ -236,29 +247,28 @@
|
|
|
236
247
|
transform: translateY(105%);
|
|
237
248
|
}
|
|
238
249
|
.content.horizontal {
|
|
239
|
-
width:
|
|
240
|
-
max-height: 100dvh;
|
|
250
|
+
width: var(--sui-drawer-horizontal-width, 100dvw);
|
|
251
|
+
max-height: var(--sui-drawer-horizontal-max-height, calc(100dvh - 56px));
|
|
241
252
|
}
|
|
242
253
|
:global(dialog.open) .content.horizontal {
|
|
243
|
-
max-height: calc(100dvh - 56px);
|
|
244
254
|
transform: translateY(0%);
|
|
245
255
|
}
|
|
246
256
|
.content.horizontal.small {
|
|
247
|
-
height: 400px;
|
|
257
|
+
height: var(--sui-drawer-horizontal-small-height, 400px);
|
|
248
258
|
}
|
|
249
259
|
.content.horizontal.medium {
|
|
250
|
-
height: 600px;
|
|
260
|
+
height: var(--sui-drawer-horizontal-medium-height, 600px);
|
|
251
261
|
}
|
|
252
262
|
.content.horizontal.large {
|
|
253
|
-
height: 800px;
|
|
263
|
+
height: var(--sui-drawer-horizontal-large-height, 800px);
|
|
254
264
|
}
|
|
255
265
|
.content.horizontal.x-large {
|
|
256
|
-
height: 1000px;
|
|
266
|
+
height: var(--sui-drawer-horizontal-x-large-height, 1000px);
|
|
257
267
|
}
|
|
258
268
|
.content.horizontal.full {
|
|
259
|
-
|
|
269
|
+
width: 100dvw;
|
|
260
270
|
height: 100dvh;
|
|
261
|
-
max-height:
|
|
271
|
+
max-height: 100dvh;
|
|
262
272
|
}
|
|
263
273
|
|
|
264
274
|
.header,
|
|
@@ -164,6 +164,7 @@ input {
|
|
|
164
164
|
font-weight: var(--sui-textbox-font-weight, normal);
|
|
165
165
|
text-align: var(--sui-textbox-text-align, left);
|
|
166
166
|
text-indent: var(--sui-textbox-text-indent, 0);
|
|
167
|
+
text-transform: var(--sui-textbox-text-transform, none);
|
|
167
168
|
letter-spacing: var(--sui-textbox-letter-spacing, normal);
|
|
168
169
|
transition: all 200ms;
|
|
169
170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"test:unit": "vitest"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"svelte": "^4.2.
|
|
26
|
+
"svelte": "^4.2.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@playwright/test": "^1.
|
|
30
|
-
"@sveltejs/adapter-auto": "^3.1.
|
|
31
|
-
"@sveltejs/kit": "^2.
|
|
32
|
-
"@sveltejs/package": "^2.2.
|
|
29
|
+
"@playwright/test": "^1.41.1",
|
|
30
|
+
"@sveltejs/adapter-auto": "^3.1.1",
|
|
31
|
+
"@sveltejs/kit": "^2.4.1",
|
|
32
|
+
"@sveltejs/package": "^2.2.6",
|
|
33
33
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
|
34
34
|
"cspell": "^8.3.2",
|
|
35
35
|
"eslint": "^8.56.0",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"npm-run-all": "^4.1.5",
|
|
42
42
|
"postcss": "^8.4.33",
|
|
43
43
|
"postcss-html": "^1.6.0",
|
|
44
|
-
"prettier": "^3.2.
|
|
44
|
+
"prettier": "^3.2.4",
|
|
45
45
|
"prettier-plugin-svelte": "^3.1.2",
|
|
46
|
-
"sass": "^1.
|
|
47
|
-
"stylelint": "^16.
|
|
46
|
+
"sass": "^1.70.0",
|
|
47
|
+
"stylelint": "^16.2.0",
|
|
48
48
|
"stylelint-config-recommended-scss": "^14.0.0",
|
|
49
49
|
"stylelint-scss": "^6.0.0",
|
|
50
50
|
"svelte-check": "^3.6.3",
|
|
51
51
|
"svelte-i18n": "^4.0.0",
|
|
52
52
|
"svelte-preprocess": "^5.1.3",
|
|
53
53
|
"tslib": "^2.6.2",
|
|
54
|
-
"vite": "^5.0.
|
|
55
|
-
"vitest": "^1.2.
|
|
54
|
+
"vite": "^5.0.12",
|
|
55
|
+
"vitest": "^1.2.1"
|
|
56
56
|
},
|
|
57
57
|
"exports": {
|
|
58
58
|
"./package.json": "./package.json",
|