@tuspe/components 1.8.12 → 1.8.14
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/README.md +0 -1
- package/dist/Checkbox.svelte +2 -23
- package/dist/Checkbox.svelte.d.ts +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/Checkbox.svelte
CHANGED
|
@@ -9,33 +9,17 @@
|
|
|
9
9
|
disabled?: boolean
|
|
10
10
|
group?: boolean
|
|
11
11
|
id?: string
|
|
12
|
-
noLineHeight?: boolean
|
|
13
12
|
outerClass?: string
|
|
14
13
|
required?: boolean
|
|
15
14
|
value?: number | string
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
let {
|
|
19
|
-
children,
|
|
20
|
-
onchange,
|
|
21
|
-
checked = $bindable(false),
|
|
22
|
-
disabled,
|
|
23
|
-
group = $bindable(),
|
|
24
|
-
id,
|
|
25
|
-
noLineHeight = false,
|
|
26
|
-
outerClass,
|
|
27
|
-
required,
|
|
28
|
-
value,
|
|
29
|
-
...props
|
|
30
|
-
}: Props = $props()
|
|
17
|
+
let {children, onchange, checked = $bindable(false), disabled, group = $bindable(), id, outerClass, required, value, ...props}: Props = $props()
|
|
31
18
|
|
|
32
19
|
let classes = $state('input-checkbox')
|
|
33
20
|
if (outerClass) {
|
|
34
21
|
classes += ` ${outerClass}`
|
|
35
22
|
}
|
|
36
|
-
if (noLineHeight) {
|
|
37
|
-
classes += ' lh-none'
|
|
38
|
-
}
|
|
39
23
|
</script>
|
|
40
24
|
|
|
41
25
|
<label class={classes}>
|
|
@@ -51,8 +35,8 @@
|
|
|
51
35
|
accent-color: var(--color-primary);
|
|
52
36
|
border: 1px solid var(--color-border);
|
|
53
37
|
height: 20px;
|
|
38
|
+
margin-top: 3px;
|
|
54
39
|
outline: none;
|
|
55
|
-
vertical-align: middle;
|
|
56
40
|
width: 20px;
|
|
57
41
|
}
|
|
58
42
|
|
|
@@ -67,7 +51,6 @@
|
|
|
67
51
|
}
|
|
68
52
|
|
|
69
53
|
label {
|
|
70
|
-
align-items: center;
|
|
71
54
|
cursor: pointer;
|
|
72
55
|
display: grid;
|
|
73
56
|
font-size: 1rem;
|
|
@@ -75,10 +58,6 @@
|
|
|
75
58
|
grid-template-columns: 20px 1fr;
|
|
76
59
|
}
|
|
77
60
|
|
|
78
|
-
label:not(.lh-none) {
|
|
79
|
-
line-height: 1.25;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
61
|
sup {
|
|
83
62
|
color: darkred;
|
|
84
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuspe/components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.14",
|
|
4
4
|
"description": "A reusable SvelteKit component library for form elements, breadcrumbs, prices and images.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelteKit",
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
"typescript": "^5.8.3",
|
|
80
80
|
"vite": "^6.3.5"
|
|
81
81
|
}
|
|
82
|
-
}
|
|
82
|
+
}
|