@sveltia/ui 0.22.2 → 0.22.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.
- package/dist/components/checkbox/checkbox.svelte +1 -1
- package/dist/components/select/combobox.svelte +1 -2
- package/dist/components/text-field/text-input.svelte +1 -0
- package/dist/components/util/app-shell.svelte +3 -5
- package/dist/styles/core.scss +0 -6
- package/dist/typedefs.d.ts +3 -3
- package/dist/typedefs.js +2 -2
- package/package.json +4 -4
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
color: var(--sui-error-foreground-color);
|
|
180
180
|
}
|
|
181
181
|
.checkbox :global(button[aria-checked="true"][aria-invalid="true"]) {
|
|
182
|
-
background-color: var(--sui-
|
|
182
|
+
background-color: var(--sui-checkbox-background-color);
|
|
183
183
|
}
|
|
184
184
|
.checkbox label {
|
|
185
185
|
cursor: inherit;
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
{position}
|
|
183
183
|
touchOptimized={true}
|
|
184
184
|
bind:open={isPopupOpen}
|
|
185
|
-
|
|
185
|
+
onOpen={() => {
|
|
186
186
|
showFilter = (popupContent?.querySelectorAll('[role="option"]')?.length ?? 0) > 5;
|
|
187
187
|
searchTerms = '';
|
|
188
188
|
}}
|
|
@@ -284,7 +284,6 @@
|
|
|
284
284
|
}
|
|
285
285
|
.combobox div[role=combobox][aria-invalid=true] {
|
|
286
286
|
border-color: var(--sui-error-border-color);
|
|
287
|
-
background-color: var(--sui-error-background-color);
|
|
288
287
|
}
|
|
289
288
|
.combobox div[role=combobox] .label {
|
|
290
289
|
display: block;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
} = $props();
|
|
27
27
|
|
|
28
28
|
const stylesheets = [
|
|
29
|
-
// https://fonts.google.com/share?selection.family=Merriweather
|
|
30
|
-
'https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;
|
|
29
|
+
// https://fonts.google.com/share?selection.family=Merriweather+Sans:ital,wght@0,300..800;1,300..800|Noto+Sans+Mono:wght@100..900
|
|
30
|
+
'https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap',
|
|
31
31
|
// https://fonts.google.com/icons?icon.set=Material+Symbols
|
|
32
32
|
// Use `font-display: block;` @see https://stackoverflow.com/q/41710834
|
|
33
33
|
'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block',
|
|
@@ -98,9 +98,7 @@
|
|
|
98
98
|
{@render children?.()}
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
|
-
<style
|
|
102
|
-
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");
|
|
103
|
-
:global(:root),
|
|
101
|
+
<style>:global(:root),
|
|
104
102
|
:global(:host) {
|
|
105
103
|
--sui-base-hue: 210;
|
|
106
104
|
--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));
|
package/dist/styles/core.scss
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
@use "variables.scss";
|
|
2
2
|
|
|
3
|
-
// https://fonts.google.com/share?selection.family=Merriweather+Sans:ital,wght@0,300..800;1,300..800|Noto+Sans+Mono:wght@100..900
|
|
4
|
-
@import url("https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap");
|
|
5
|
-
// https://fonts.google.com/icons?icon.set=Material+Symbols
|
|
6
|
-
// Use `font-display: block;` @see https://stackoverflow.com/q/41710834
|
|
7
|
-
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");
|
|
8
|
-
|
|
9
3
|
:global {
|
|
10
4
|
.material-symbols-outlined {
|
|
11
5
|
font-variation-settings:
|
package/dist/typedefs.d.ts
CHANGED
|
@@ -387,10 +387,10 @@ export type TextInputProps = {
|
|
|
387
387
|
*/
|
|
388
388
|
element?: HTMLInputElement | undefined;
|
|
389
389
|
/**
|
|
390
|
-
* - The `role`
|
|
391
|
-
* the `<input>` element.
|
|
390
|
+
* - The `role`
|
|
391
|
+
* attribute on the `<input>` element.
|
|
392
392
|
*/
|
|
393
|
-
role?: "textbox" | "searchbox" | "combobox" | "spinbutton" | undefined;
|
|
393
|
+
role?: "textbox" | "searchbox" | "combobox" | "spinbutton" | "gridcell" | undefined;
|
|
394
394
|
/**
|
|
395
395
|
* - Keyboard shortcuts. An alias of the
|
|
396
396
|
* `aria-keyshortcuts` attribute. Accepts the special `Accel` key, which will be replaced with
|
package/dist/typedefs.js
CHANGED
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
/**
|
|
131
131
|
* @typedef {object} TextInputProps
|
|
132
132
|
* @property {HTMLInputElement} [element] - Reference to the `<input>` element.
|
|
133
|
-
* @property {'textbox' | 'searchbox' | 'combobox' | 'spinbutton'} [role] - The `role`
|
|
134
|
-
* the `<input>` element.
|
|
133
|
+
* @property {'textbox' | 'searchbox' | 'combobox' | 'spinbutton' | 'gridcell'} [role] - The `role`
|
|
134
|
+
* attribute on the `<input>` element.
|
|
135
135
|
* @property {string} [keyShortcuts] - Keyboard shortcuts. An alias of the
|
|
136
136
|
* `aria-keyshortcuts` attribute. Accepts the special `Accel` key, which will be replaced with
|
|
137
137
|
* `Control` or `Meta` depending on the user’s operating system.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@playwright/test": "^1.49.1",
|
|
50
50
|
"@sveltejs/adapter-auto": "^3.3.1",
|
|
51
|
-
"@sveltejs/kit": "^2.15.
|
|
51
|
+
"@sveltejs/kit": "^2.15.1",
|
|
52
52
|
"@sveltejs/package": "^2.3.7",
|
|
53
53
|
"@sveltejs/vite-plugin-svelte": "5.0.3",
|
|
54
54
|
"cspell": "^8.17.1",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"stylelint": "^16.12.0",
|
|
67
67
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
68
68
|
"stylelint-scss": "^6.10.0",
|
|
69
|
-
"svelte": "5.
|
|
69
|
+
"svelte": "5.16.0",
|
|
70
70
|
"svelte-check": "^4.1.1",
|
|
71
71
|
"svelte-i18n": "^4.0.1",
|
|
72
72
|
"svelte-preprocess": "^6.0.3",
|
|
73
73
|
"tslib": "^2.8.1",
|
|
74
|
-
"vite": "^6.0.
|
|
74
|
+
"vite": "^6.0.6",
|
|
75
75
|
"vitest": "^2.1.8"
|
|
76
76
|
},
|
|
77
77
|
"exports": {
|