@tuspe/components 1.9.0 → 1.9.2
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/Breadcrumbs.svelte +7 -4
- package/dist/Button.svelte +3 -3
- package/dist/Button.svelte.d.ts +2 -2
- package/dist/Checkbox.svelte +1 -1
- package/dist/Checkbox.svelte.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +10 -9
package/dist/Breadcrumbs.svelte
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import {page} from '$app/state'
|
|
3
3
|
import {onMount} from 'svelte'
|
|
4
|
-
import {validateArray} from './
|
|
5
|
-
import type {Breadcrumb} from './
|
|
4
|
+
import {validateArray} from './'
|
|
5
|
+
import type {Breadcrumb} from './'
|
|
6
6
|
import type {BreadcrumbView} from './types'
|
|
7
7
|
|
|
8
8
|
let {homeName = 'Etusivu', homeSlug = '', onlyMeta = false, outerClass, values}: BreadcrumbView = $props()
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
onMount(() => {
|
|
39
|
-
|
|
39
|
+
if (outerClass) {
|
|
40
|
+
classes += ` ${outerClass}`
|
|
41
|
+
}
|
|
40
42
|
})
|
|
41
43
|
</script>
|
|
42
44
|
|
|
@@ -63,8 +65,9 @@
|
|
|
63
65
|
|
|
64
66
|
<style scoped>
|
|
65
67
|
#breadcrumb {
|
|
66
|
-
|
|
68
|
+
overflow: hidden;
|
|
67
69
|
text-overflow: ellipsis;
|
|
70
|
+
white-space: nowrap;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
#breadcrumb li {
|
package/dist/Button.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {loading} from './
|
|
3
|
-
import type {ButtonView} from './types
|
|
2
|
+
import {loading} from './'
|
|
3
|
+
import type {ButtonView} from './types'
|
|
4
4
|
|
|
5
5
|
let {
|
|
6
6
|
ariaControls,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color = 'white',
|
|
14
14
|
colorBg = 'primary',
|
|
15
15
|
control,
|
|
16
|
-
disabled,
|
|
16
|
+
disabled = $bindable(),
|
|
17
17
|
extraClass,
|
|
18
18
|
fill,
|
|
19
19
|
fontWeight = 'bold',
|
package/dist/Button.svelte.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ButtonView } from './types
|
|
2
|
-
declare const Button: import("svelte").Component<ButtonView, {}, "">;
|
|
1
|
+
import type { ButtonView } from './types';
|
|
2
|
+
declare const Button: import("svelte").Component<ButtonView, {}, "disabled">;
|
|
3
3
|
type Button = ReturnType<typeof Button>;
|
|
4
4
|
export default Button;
|
package/dist/Checkbox.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CheckboxView } from './types';
|
|
2
|
-
declare const Checkbox: import("svelte").Component<CheckboxView, {}, "checked" | "group">;
|
|
2
|
+
declare const Checkbox: import("svelte").Component<CheckboxView, {}, "disabled" | "checked" | "group">;
|
|
3
3
|
type Checkbox = ReturnType<typeof Checkbox>;
|
|
4
4
|
export default Checkbox;
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuspe/components",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "A reusable SvelteKit component library for form elements, breadcrumbs, prices and images.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelteKit",
|
|
@@ -48,22 +48,23 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@eslint/compat": "^1.2.9",
|
|
51
|
-
"@eslint/js": "^9.
|
|
51
|
+
"@eslint/js": "^9.27.0",
|
|
52
52
|
"@sveltejs/adapter-static": "^3.0.8",
|
|
53
|
-
"@sveltejs/
|
|
53
|
+
"@sveltejs/enhanced-img": "^0.6.0",
|
|
54
|
+
"@sveltejs/kit": "^2.21.1",
|
|
54
55
|
"@sveltejs/package": "^2.3.11",
|
|
55
56
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
57
|
+
"eslint": "^9.27.0",
|
|
56
58
|
"eslint-config-prettier": "^10.1.5",
|
|
57
|
-
"eslint-plugin-svelte": "^3.
|
|
58
|
-
"eslint": "^9.26.0",
|
|
59
|
+
"eslint-plugin-svelte": "^3.8.1",
|
|
59
60
|
"globals": "^16.1.0",
|
|
60
|
-
"prettier-plugin-svelte": "^3.3.3",
|
|
61
61
|
"prettier": "^3.5.3",
|
|
62
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
62
63
|
"publint": "^0.3.12",
|
|
63
|
-
"svelte
|
|
64
|
-
"svelte": "^
|
|
65
|
-
"typescript-eslint": "^8.32.1",
|
|
64
|
+
"svelte": "^5.30.2",
|
|
65
|
+
"svelte-check": "^4.2.1",
|
|
66
66
|
"typescript": "^5.8.3",
|
|
67
|
+
"typescript-eslint": "^8.32.1",
|
|
67
68
|
"vite": "^6.3.5"
|
|
68
69
|
},
|
|
69
70
|
"scripts": {
|