uisv 0.0.7 → 0.0.9
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/package.json +38 -37
- package/dist/components/accordion.svelte +0 -108
- package/dist/components/accordion.svelte.d.ts +0 -58
- package/dist/components/alert.svelte +0 -272
- package/dist/components/alert.svelte.d.ts +0 -24
- package/dist/components/badge.svelte +0 -227
- package/dist/components/badge.svelte.d.ts +0 -19
- package/dist/components/banner.svelte +0 -255
- package/dist/components/banner.svelte.d.ts +0 -24
- package/dist/components/button.svelte +0 -384
- package/dist/components/button.svelte.d.ts +0 -49
- package/dist/components/card.svelte +0 -70
- package/dist/components/card.svelte.d.ts +0 -17
- package/dist/components/checkbox.svelte +0 -175
- package/dist/components/checkbox.svelte.d.ts +0 -27
- package/dist/components/checkboxgroup.svelte +0 -259
- package/dist/components/checkboxgroup.svelte.d.ts +0 -26
- package/dist/components/chip.svelte +0 -82
- package/dist/components/chip.svelte.d.ts +0 -17
- package/dist/components/h1.svelte +0 -28
- package/dist/components/h1.svelte.d.ts +0 -11
- package/dist/components/h2.svelte +0 -30
- package/dist/components/h2.svelte.d.ts +0 -11
- package/dist/components/index.d.ts +0 -34
- package/dist/components/index.js +0 -34
- package/dist/components/kbd.svelte +0 -239
- package/dist/components/kbd.svelte.d.ts +0 -40
- package/dist/components/p.svelte +0 -22
- package/dist/components/p.svelte.d.ts +0 -11
- package/dist/components/pin-input.svelte +0 -162
- package/dist/components/pin-input.svelte.d.ts +0 -25
- package/dist/components/placeholder.svelte +0 -32
- package/dist/components/placeholder.svelte.d.ts +0 -7
- package/dist/components/progress.svelte +0 -124
- package/dist/components/progress.svelte.d.ts +0 -21
- package/dist/components/slider.svelte +0 -172
- package/dist/components/slider.svelte.d.ts +0 -44
- package/dist/components/switch.svelte +0 -180
- package/dist/components/switch.svelte.d.ts +0 -27
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -3
- package/dist/utils/common.d.ts +0 -13
- package/dist/utils/common.js +0 -16
- package/dist/vite.d.ts +0 -38
- package/dist/vite.js +0 -57
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type PropColor } from '../index.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
-
import type { Component } from 'vitest-browser-svelte';
|
|
5
|
-
export type CheckboxProps = {
|
|
6
|
-
value?: boolean | 'intermediate';
|
|
7
|
-
color?: PropColor;
|
|
8
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
icon?: string | Snippet | Component;
|
|
11
|
-
intermediateicon?: string | Snippet | Component;
|
|
12
|
-
label?: string | Snippet;
|
|
13
|
-
description?: string | Snippet;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
indicator?: 'start' | 'end' | 'hidden';
|
|
16
|
-
as?: string;
|
|
17
|
-
ui?: {
|
|
18
|
-
root?: ClassNameValue;
|
|
19
|
-
container?: ClassNameValue;
|
|
20
|
-
icon?: ClassNameValue;
|
|
21
|
-
label?: ClassNameValue;
|
|
22
|
-
description?: ClassNameValue;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
declare const Checkbox: import("svelte").Component<CheckboxProps, {}, "value">;
|
|
26
|
-
type Checkbox = ReturnType<typeof Checkbox>;
|
|
27
|
-
export default Checkbox;
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
3
|
-
import { tv } from 'tailwind-variants';
|
|
4
|
-
import { Checkbox } from './index.js';
|
|
5
|
-
import type { Component, Snippet } from 'svelte';
|
|
6
|
-
import { type PropColor, isComponent, isSnippet } from '../index.js';
|
|
7
|
-
|
|
8
|
-
/* eslint @typescript-eslint/no-explicit-any: 0 */
|
|
9
|
-
|
|
10
|
-
export type CheckboxGroupProps = {
|
|
11
|
-
color?: PropColor;
|
|
12
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
|
-
icon?: string | Snippet | Component;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
indicator?: 'start' | 'end' | 'hidden';
|
|
16
|
-
value?: any[];
|
|
17
|
-
valuekey?: string;
|
|
18
|
-
variant?: 'list' | 'card' | 'table';
|
|
19
|
-
items: Array<any>;
|
|
20
|
-
labelkey?: string;
|
|
21
|
-
descriptionkey?: string;
|
|
22
|
-
legend?: string | Snippet | Component;
|
|
23
|
-
orientation?: 'horizontal' | 'vertical';
|
|
24
|
-
ui?: {
|
|
25
|
-
root?: ClassNameValue;
|
|
26
|
-
container?: ClassNameValue;
|
|
27
|
-
checkbox?: ClassNameValue;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<script lang="ts">
|
|
33
|
-
let {
|
|
34
|
-
value = $bindable([]),
|
|
35
|
-
valuekey = 'value',
|
|
36
|
-
color = 'primary',
|
|
37
|
-
size = 'md',
|
|
38
|
-
variant = 'list',
|
|
39
|
-
items = [],
|
|
40
|
-
labelkey = 'label',
|
|
41
|
-
descriptionkey = 'description',
|
|
42
|
-
legend,
|
|
43
|
-
orientation = 'horizontal',
|
|
44
|
-
ui = {},
|
|
45
|
-
...props
|
|
46
|
-
}: CheckboxGroupProps = $props();
|
|
47
|
-
|
|
48
|
-
const classes = $derived.by(() =>
|
|
49
|
-
tv({
|
|
50
|
-
slots: {
|
|
51
|
-
root: '',
|
|
52
|
-
container: 'flex',
|
|
53
|
-
checkbox: ''
|
|
54
|
-
},
|
|
55
|
-
variants: {
|
|
56
|
-
color: {
|
|
57
|
-
primary: {
|
|
58
|
-
container: []
|
|
59
|
-
},
|
|
60
|
-
secondary: {
|
|
61
|
-
container: []
|
|
62
|
-
},
|
|
63
|
-
info: {
|
|
64
|
-
container: []
|
|
65
|
-
},
|
|
66
|
-
success: {
|
|
67
|
-
container: []
|
|
68
|
-
},
|
|
69
|
-
warning: {
|
|
70
|
-
container: []
|
|
71
|
-
},
|
|
72
|
-
error: {
|
|
73
|
-
container: []
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
xs: {
|
|
78
|
-
container: '',
|
|
79
|
-
icon: 'size-3'
|
|
80
|
-
},
|
|
81
|
-
sm: {
|
|
82
|
-
container: '',
|
|
83
|
-
icon: 'size-3.5'
|
|
84
|
-
},
|
|
85
|
-
md: {
|
|
86
|
-
container: '',
|
|
87
|
-
icon: 'size-4'
|
|
88
|
-
},
|
|
89
|
-
lg: {
|
|
90
|
-
container: '',
|
|
91
|
-
icon: 'size-4.5'
|
|
92
|
-
},
|
|
93
|
-
xl: {
|
|
94
|
-
container: '',
|
|
95
|
-
icon: 'size-5'
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
variant: {
|
|
99
|
-
list: { container: 'gap-2' },
|
|
100
|
-
card: { container: 'gap-2', checkbox: 'p-4 rounded-lg border border-neutral-200' },
|
|
101
|
-
table: {
|
|
102
|
-
container: 'gap-0 ',
|
|
103
|
-
checkbox: 'border border-neutral-200 p-4 data-[state=checked]:z-1'
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
orientation: {
|
|
107
|
-
horizontal: {
|
|
108
|
-
container: 'flex-row',
|
|
109
|
-
checkbox:
|
|
110
|
-
'[&:not(:last-child)]:(-me-px ms-0) first-of-type:rounded-s-lg last-of-type:rounded-e-lg'
|
|
111
|
-
},
|
|
112
|
-
vertical: {
|
|
113
|
-
container: 'flex-col -space-y-px'
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
selected: { true: '', false: '' }
|
|
117
|
-
},
|
|
118
|
-
compoundVariants: [
|
|
119
|
-
{
|
|
120
|
-
color: 'primary',
|
|
121
|
-
selected: true,
|
|
122
|
-
variant: ['table', 'card'],
|
|
123
|
-
class: {
|
|
124
|
-
checkbox: 'border-primary-500'
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
color: 'secondary',
|
|
129
|
-
selected: true,
|
|
130
|
-
variant: ['table', 'card'],
|
|
131
|
-
class: {
|
|
132
|
-
checkbox: 'border-secondary-500'
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
color: 'info',
|
|
137
|
-
selected: true,
|
|
138
|
-
variant: ['table', 'card'],
|
|
139
|
-
class: {
|
|
140
|
-
checkbox: 'border-info-500'
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
color: 'success',
|
|
145
|
-
selected: true,
|
|
146
|
-
variant: ['table', 'card'],
|
|
147
|
-
class: {
|
|
148
|
-
checkbox: 'border-success-500'
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
color: 'warning',
|
|
153
|
-
selected: true,
|
|
154
|
-
variant: ['table', 'card'],
|
|
155
|
-
class: {
|
|
156
|
-
checkbox: 'border-warning-500'
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
color: 'error',
|
|
161
|
-
selected: true,
|
|
162
|
-
variant: ['table', 'card'],
|
|
163
|
-
class: {
|
|
164
|
-
checkbox: 'border-error-500'
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
{
|
|
169
|
-
color: 'primary',
|
|
170
|
-
selected: true,
|
|
171
|
-
variant: ['table'],
|
|
172
|
-
class: {
|
|
173
|
-
checkbox: 'bg-primary-100'
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
color: 'secondary',
|
|
178
|
-
selected: true,
|
|
179
|
-
variant: ['table'],
|
|
180
|
-
class: {
|
|
181
|
-
checkbox: 'bg-secondary-100'
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
color: 'info',
|
|
186
|
-
selected: true,
|
|
187
|
-
variant: ['table'],
|
|
188
|
-
class: {
|
|
189
|
-
checkbox: 'bg-info-100'
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
color: 'success',
|
|
194
|
-
selected: true,
|
|
195
|
-
variant: ['table'],
|
|
196
|
-
class: {
|
|
197
|
-
checkbox: 'bg-success-100'
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
color: 'warning',
|
|
202
|
-
selected: true,
|
|
203
|
-
variant: ['table'],
|
|
204
|
-
class: {
|
|
205
|
-
checkbox: 'bg-warning-100'
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
color: 'error',
|
|
210
|
-
selected: true,
|
|
211
|
-
variant: ['table'],
|
|
212
|
-
class: {
|
|
213
|
-
checkbox: 'bg-error-100'
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
})({ color, size, variant, orientation })
|
|
218
|
-
);
|
|
219
|
-
</script>
|
|
220
|
-
|
|
221
|
-
<div class={classes.root({ class: [ui.root] })}>
|
|
222
|
-
{#if typeof legend === 'string'}
|
|
223
|
-
<legend>{legend}</legend>
|
|
224
|
-
{:else if isSnippet(legend)}
|
|
225
|
-
{@render legend()}
|
|
226
|
-
{:else if isComponent(legend)}
|
|
227
|
-
{@const Legend = legend}
|
|
228
|
-
<Legend />
|
|
229
|
-
{/if}
|
|
230
|
-
|
|
231
|
-
<fieldset class={classes.container({ class: [ui.container] })}>
|
|
232
|
-
{#each items as item, index (index)}
|
|
233
|
-
{@const key = typeof item === 'object' ? item[valuekey] : item}
|
|
234
|
-
|
|
235
|
-
<Checkbox
|
|
236
|
-
{...props}
|
|
237
|
-
{color}
|
|
238
|
-
as={variant === 'list' ? 'div' : 'label'}
|
|
239
|
-
ui={{
|
|
240
|
-
root: classes.checkbox({
|
|
241
|
-
class: [ui.checkbox],
|
|
242
|
-
selected: value.includes(key)
|
|
243
|
-
})
|
|
244
|
-
}}
|
|
245
|
-
bind:value={
|
|
246
|
-
() => value.includes(key),
|
|
247
|
-
(v) => {
|
|
248
|
-
if (v) return value.push(key);
|
|
249
|
-
const index = value.findIndex((x) => x === key);
|
|
250
|
-
if (index < 0) return;
|
|
251
|
-
value.splice(index, 1);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
description={typeof item === 'object' ? item[descriptionkey] : undefined}
|
|
255
|
-
label={typeof item === 'object' ? item[labelkey] : item}
|
|
256
|
-
/>
|
|
257
|
-
{/each}
|
|
258
|
-
</fieldset>
|
|
259
|
-
</div>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
2
|
-
import type { Component, Snippet } from 'svelte';
|
|
3
|
-
import { type PropColor } from '../index.js';
|
|
4
|
-
export type CheckboxGroupProps = {
|
|
5
|
-
color?: PropColor;
|
|
6
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
icon?: string | Snippet | Component;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
indicator?: 'start' | 'end' | 'hidden';
|
|
10
|
-
value?: any[];
|
|
11
|
-
valuekey?: string;
|
|
12
|
-
variant?: 'list' | 'card' | 'table';
|
|
13
|
-
items: Array<any>;
|
|
14
|
-
labelkey?: string;
|
|
15
|
-
descriptionkey?: string;
|
|
16
|
-
legend?: string | Snippet | Component;
|
|
17
|
-
orientation?: 'horizontal' | 'vertical';
|
|
18
|
-
ui?: {
|
|
19
|
-
root?: ClassNameValue;
|
|
20
|
-
container?: ClassNameValue;
|
|
21
|
-
checkbox?: ClassNameValue;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
declare const Checkboxgroup: Component<CheckboxGroupProps, {}, "value">;
|
|
25
|
-
type Checkboxgroup = ReturnType<typeof Checkboxgroup>;
|
|
26
|
-
export default Checkboxgroup;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import type { PropColor } from '../index.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
5
|
-
import { tv } from 'tailwind-variants';
|
|
6
|
-
|
|
7
|
-
export type ChipProps = {
|
|
8
|
-
children: Snippet;
|
|
9
|
-
text?: string;
|
|
10
|
-
color?: PropColor;
|
|
11
|
-
position?: 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
12
|
-
size?: number;
|
|
13
|
-
ui?: {
|
|
14
|
-
base?: ClassNameValue;
|
|
15
|
-
chip?: ClassNameValue;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<script lang="ts">
|
|
21
|
-
let {
|
|
22
|
-
children,
|
|
23
|
-
text,
|
|
24
|
-
color = 'primary',
|
|
25
|
-
position = 'top-right',
|
|
26
|
-
size = 8,
|
|
27
|
-
ui = {}
|
|
28
|
-
}: ChipProps = $props();
|
|
29
|
-
|
|
30
|
-
const classes = $derived.by(() =>
|
|
31
|
-
tv({
|
|
32
|
-
slots: {
|
|
33
|
-
base: 'relative inline-flex items-center justify-center shrink-0',
|
|
34
|
-
chip: [
|
|
35
|
-
'absolute rounded-full ring ring-white flex items-center justify-center text-white font-medium whitespace-nowrap',
|
|
36
|
-
'-translate-y-1/2 translate-x-1/2 px-0.5'
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
variants: {
|
|
40
|
-
color: {
|
|
41
|
-
primary: {
|
|
42
|
-
chip: 'bg-primary'
|
|
43
|
-
},
|
|
44
|
-
secondary: {
|
|
45
|
-
chip: 'bg-secondary'
|
|
46
|
-
},
|
|
47
|
-
success: {
|
|
48
|
-
chip: 'bg-success'
|
|
49
|
-
},
|
|
50
|
-
info: {
|
|
51
|
-
chip: 'bg-info'
|
|
52
|
-
},
|
|
53
|
-
warning: {
|
|
54
|
-
chip: 'bg-warning'
|
|
55
|
-
},
|
|
56
|
-
error: {
|
|
57
|
-
chip: 'bg-error'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
position: {
|
|
61
|
-
'top-right': { chip: 'top-0 right-0' },
|
|
62
|
-
'bottom-right': { chip: 'bottom-0 right-0' },
|
|
63
|
-
'top-left': { chip: 'top-0 left-0' },
|
|
64
|
-
'bottom-left': { chip: 'bottom-0 left-0' }
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
})({ color, position })
|
|
68
|
-
);
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<div class={classes.base({ class: [ui.base] })}>
|
|
72
|
-
{@render children()}
|
|
73
|
-
|
|
74
|
-
<span
|
|
75
|
-
class={classes.chip({ class: ui.chip })}
|
|
76
|
-
style:height="{size}px"
|
|
77
|
-
style:min-width="{size}px"
|
|
78
|
-
style:font-size="{size}px"
|
|
79
|
-
>
|
|
80
|
-
{text}
|
|
81
|
-
</span>
|
|
82
|
-
</div>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PropColor } from '../index.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
-
export type ChipProps = {
|
|
5
|
-
children: Snippet;
|
|
6
|
-
text?: string;
|
|
7
|
-
color?: PropColor;
|
|
8
|
-
position?: 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
9
|
-
size?: number;
|
|
10
|
-
ui?: {
|
|
11
|
-
base?: ClassNameValue;
|
|
12
|
-
chip?: ClassNameValue;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const Chip: import("svelte").Component<ChipProps, {}, "">;
|
|
16
|
-
type Chip = ReturnType<typeof Chip>;
|
|
17
|
-
export default Chip;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
-
import { tv } from 'tailwind-variants';
|
|
5
|
-
|
|
6
|
-
export type H1Props = {
|
|
7
|
-
children: Snippet;
|
|
8
|
-
ui?: { root?: ClassNameValue };
|
|
9
|
-
};
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
const { children, ui = {} }: H1Props = $props();
|
|
14
|
-
|
|
15
|
-
const classes = $derived(
|
|
16
|
-
tv({
|
|
17
|
-
variants: {
|
|
18
|
-
slots: {
|
|
19
|
-
root: 'text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
})({ class: ui.root })
|
|
23
|
-
);
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<h1 class={classes}>
|
|
27
|
-
{@render children()}
|
|
28
|
-
</h1>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
3
|
-
export type H1Props = {
|
|
4
|
-
children: Snippet;
|
|
5
|
-
ui?: {
|
|
6
|
-
root?: ClassNameValue;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare const H1: import("svelte").Component<H1Props, {}, "">;
|
|
10
|
-
type H1 = ReturnType<typeof H1>;
|
|
11
|
-
export default H1;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
-
import { tv } from 'tailwind-variants';
|
|
5
|
-
|
|
6
|
-
export type H2Props = {
|
|
7
|
-
children: Snippet;
|
|
8
|
-
ui?: { root?: ClassNameValue };
|
|
9
|
-
};
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
const { children, ui = {} }: H2Props = $props();
|
|
14
|
-
|
|
15
|
-
const classes = $derived(
|
|
16
|
-
tv({
|
|
17
|
-
base: [
|
|
18
|
-
'relative text-2xl text-highlighted font-bold mt-12 mb-6',
|
|
19
|
-
'scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))]',
|
|
20
|
-
'hover:[&>a>code]:(border-primary text-primary)',
|
|
21
|
-
'[&>a>code]:(transition-colors text-xl/7 font-bold border-dashed)',
|
|
22
|
-
'[&>a]:focus-visible:outline-primary'
|
|
23
|
-
]
|
|
24
|
-
})({ class: ui.root })
|
|
25
|
-
);
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<h1 class={classes}>
|
|
29
|
-
{@render children()}
|
|
30
|
-
</h1>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
import type { ClassNameValue } from 'tailwind-merge';
|
|
3
|
-
export type H2Props = {
|
|
4
|
-
children: Snippet;
|
|
5
|
-
ui?: {
|
|
6
|
-
root?: ClassNameValue;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare const H2: import("svelte").Component<H2Props, {}, "">;
|
|
10
|
-
type H2 = ReturnType<typeof H2>;
|
|
11
|
-
export default H2;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './button.svelte';
|
|
2
|
-
export { default as Button } from './button.svelte';
|
|
3
|
-
export * from './badge.svelte';
|
|
4
|
-
export { default as Badge } from './badge.svelte';
|
|
5
|
-
export * from './alert.svelte';
|
|
6
|
-
export { default as Alert } from './alert.svelte';
|
|
7
|
-
export * from './banner.svelte';
|
|
8
|
-
export { default as Banner } from './banner.svelte';
|
|
9
|
-
export * from './progress.svelte';
|
|
10
|
-
export { default as Progress } from './progress.svelte';
|
|
11
|
-
export * from './card.svelte';
|
|
12
|
-
export { default as Card } from './card.svelte';
|
|
13
|
-
export * from './chip.svelte';
|
|
14
|
-
export { default as Chip } from './chip.svelte';
|
|
15
|
-
export * from './switch.svelte';
|
|
16
|
-
export { default as Switch } from './switch.svelte';
|
|
17
|
-
export * from './slider.svelte';
|
|
18
|
-
export { default as Slider } from './slider.svelte';
|
|
19
|
-
export * from './checkbox.svelte';
|
|
20
|
-
export { default as Checkbox } from './checkbox.svelte';
|
|
21
|
-
export * from './checkboxgroup.svelte';
|
|
22
|
-
export { default as CheckboxGroup } from './checkboxgroup.svelte';
|
|
23
|
-
export * from './h1.svelte';
|
|
24
|
-
export { default as H1 } from './h1.svelte';
|
|
25
|
-
export * from './h2.svelte';
|
|
26
|
-
export { default as H2 } from './h2.svelte';
|
|
27
|
-
export * from './p.svelte';
|
|
28
|
-
export { default as P } from './p.svelte';
|
|
29
|
-
export * from './pin-input.svelte';
|
|
30
|
-
export { default as PinInput } from './pin-input.svelte';
|
|
31
|
-
export * from './accordion.svelte';
|
|
32
|
-
export { default as Accordion } from './accordion.svelte';
|
|
33
|
-
export * from './kbd.svelte';
|
|
34
|
-
export { default as KBD } from './kbd.svelte';
|
package/dist/components/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './button.svelte';
|
|
2
|
-
export { default as Button } from './button.svelte';
|
|
3
|
-
export * from './badge.svelte';
|
|
4
|
-
export { default as Badge } from './badge.svelte';
|
|
5
|
-
export * from './alert.svelte';
|
|
6
|
-
export { default as Alert } from './alert.svelte';
|
|
7
|
-
export * from './banner.svelte';
|
|
8
|
-
export { default as Banner } from './banner.svelte';
|
|
9
|
-
export * from './progress.svelte';
|
|
10
|
-
export { default as Progress } from './progress.svelte';
|
|
11
|
-
export * from './card.svelte';
|
|
12
|
-
export { default as Card } from './card.svelte';
|
|
13
|
-
export * from './chip.svelte';
|
|
14
|
-
export { default as Chip } from './chip.svelte';
|
|
15
|
-
export * from './switch.svelte';
|
|
16
|
-
export { default as Switch } from './switch.svelte';
|
|
17
|
-
export * from './slider.svelte';
|
|
18
|
-
export { default as Slider } from './slider.svelte';
|
|
19
|
-
export * from './checkbox.svelte';
|
|
20
|
-
export { default as Checkbox } from './checkbox.svelte';
|
|
21
|
-
export * from './checkboxgroup.svelte';
|
|
22
|
-
export { default as CheckboxGroup } from './checkboxgroup.svelte';
|
|
23
|
-
export * from './h1.svelte';
|
|
24
|
-
export { default as H1 } from './h1.svelte';
|
|
25
|
-
export * from './h2.svelte';
|
|
26
|
-
export { default as H2 } from './h2.svelte';
|
|
27
|
-
export * from './p.svelte';
|
|
28
|
-
export { default as P } from './p.svelte';
|
|
29
|
-
export * from './pin-input.svelte';
|
|
30
|
-
export { default as PinInput } from './pin-input.svelte';
|
|
31
|
-
export * from './accordion.svelte';
|
|
32
|
-
export { default as Accordion } from './accordion.svelte';
|
|
33
|
-
export * from './kbd.svelte';
|
|
34
|
-
export { default as KBD } from './kbd.svelte';
|