@reshape-biotech/design-system 0.0.43 → 0.0.45
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/avatar/Avatar.svelte.d.ts +4 -4
- package/dist/components/banner/Banner.stories.svelte.d.ts +15 -32
- package/dist/components/banner/Banner.svelte +6 -6
- package/dist/components/banner/Banner.svelte.d.ts +6 -6
- package/dist/components/button/Button.stories.svelte.d.ts +15 -32
- package/dist/components/button/Button.svelte +89 -89
- package/dist/components/button/Button.svelte.d.ts +14 -18
- package/dist/components/datepicker/DatePicker.svelte +12 -13
- package/dist/components/datepicker/DatePicker.svelte.d.ts +3 -3
- package/dist/components/divider/Divider.stories.svelte.d.ts +23 -44
- package/dist/components/divider/Divider.svelte.d.ts +2 -2
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +23 -44
- package/dist/components/drawer/Drawer.svelte.d.ts +7 -7
- package/dist/components/drawer/DrawerLabel.svelte +25 -23
- package/dist/components/drawer/DrawerLabel.svelte.d.ts +4 -4
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +23 -44
- package/dist/components/dropdown/Dropdown.svelte.d.ts +17 -23
- package/dist/components/dropdown/components/DropdownContent.svelte +1 -4
- package/dist/components/dropdown/components/DropdownContent.svelte.d.ts +4 -4
- package/dist/components/dropdown/components/DropdownMenu.svelte +2 -2
- package/dist/components/dropdown/components/DropdownMenu.svelte.d.ts +3 -3
- package/dist/components/dropdown/components/DropdownTrigger.svelte.d.ts +6 -6
- package/dist/components/dropdown/components/OutlinedButton.svelte +29 -27
- package/dist/components/dropdown/components/OutlinedButton.svelte.d.ts +3 -3
- package/dist/components/icon-button/IconButton.stories.svelte +56 -26
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +15 -32
- package/dist/components/icon-button/IconButton.svelte +96 -29
- package/dist/components/icon-button/IconButton.svelte.d.ts +11 -9
- package/dist/components/image/Image.svelte +3 -3
- package/dist/components/image/Image.svelte.d.ts +3 -3
- package/dist/components/input/Input.stories.svelte.d.ts +23 -44
- package/dist/components/input/Input.svelte +32 -26
- package/dist/components/input/Input.svelte.d.ts +18 -22
- package/dist/components/list/List.stories.svelte.d.ts +15 -32
- package/dist/components/list/List.svelte +33 -28
- package/dist/components/list/List.svelte.d.ts +15 -24
- package/dist/components/logo/Logo.stories.svelte.d.ts +23 -44
- package/dist/components/logo/Logo.svelte.d.ts +2 -2
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +23 -44
- package/dist/components/markdown/Markdown.svelte.d.ts +2 -2
- package/dist/components/modal/Modal.stories.svelte.d.ts +15 -32
- package/dist/components/modal/Modal.svelte +12 -12
- package/dist/components/modal/Modal.svelte.d.ts +12 -16
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +23 -44
- package/dist/components/notification-popup/NotificationPopup.svelte.d.ts +6 -6
- package/dist/components/pill/Pill.svelte +3 -3
- package/dist/components/pill/Pill.svelte.d.ts +6 -6
- package/dist/components/progress-circle/ProgressCircle.svelte +10 -6
- package/dist/components/progress-circle/ProgressCircle.svelte.d.ts +3 -3
- package/dist/components/segmented-control-buttons/ControlButton.svelte +10 -10
- package/dist/components/segmented-control-buttons/ControlButton.svelte.d.ts +8 -8
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts +15 -32
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +6 -10
- package/dist/components/select/Select.stories.svelte.d.ts +15 -32
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/select/Select.svelte.d.ts +56 -81
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +23 -44
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +7 -11
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte.d.ts +15 -32
- package/dist/components/skeleton-loader/components/Skeleton.svelte.d.ts +3 -3
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte.d.ts +23 -44
- package/dist/components/slider/Slider.stories.svelte.d.ts +23 -44
- package/dist/components/slider/Slider.svelte +13 -15
- package/dist/components/slider/Slider.svelte.d.ts +26 -43
- package/dist/components/spinner/Spinner.svelte.d.ts +2 -2
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +23 -44
- package/dist/components/stat-card/StatCard.svelte.d.ts +6 -6
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +15 -32
- package/dist/components/status-badge/StatusBadge.svelte +73 -73
- package/dist/components/status-badge/StatusBadge.svelte.d.ts +7 -7
- package/dist/components/table/Table.stories.svelte.d.ts +18 -35
- package/dist/components/table/Table.svelte +5 -5
- package/dist/components/table/Table.svelte.d.ts +11 -13
- package/dist/components/table/components/TBody.svelte.d.ts +3 -3
- package/dist/components/table/components/THead.svelte.d.ts +3 -3
- package/dist/components/table/components/Td.svelte.d.ts +3 -3
- package/dist/components/table/components/Th.svelte.d.ts +3 -3
- package/dist/components/table/components/Tr.svelte +11 -11
- package/dist/components/table/components/Tr.svelte.d.ts +3 -3
- package/dist/components/tabs/Tabs.stories.svelte.d.ts +23 -44
- package/dist/components/tabs/Tabs.svelte.d.ts +6 -10
- package/dist/components/tabs/components/Content.svelte.d.ts +4 -4
- package/dist/components/tabs/components/Tab.svelte.d.ts +5 -5
- package/dist/components/tabs/components/Tabs.svelte.d.ts +3 -3
- package/dist/components/tag/Tag.stories.svelte.d.ts +15 -32
- package/dist/components/tag/Tag.svelte +16 -14
- package/dist/components/tag/Tag.svelte.d.ts +8 -12
- package/dist/components/toggle/Toggle.stories.svelte.d.ts +23 -44
- package/dist/components/toggle/Toggle.svelte +6 -6
- package/dist/components/toggle/Toggle.svelte.d.ts +5 -9
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +23 -44
- package/dist/components/tooltip/Tooltip.svelte +10 -12
- package/dist/components/tooltip/Tooltip.svelte.d.ts +7 -7
- package/dist/fonts/index.d.ts +4 -4
- package/dist/fonts/index.js +4 -4
- package/dist/tailwind.d.ts +1 -14
- package/dist/tailwind.preset.d.ts +327 -330
- package/dist/tailwind.preset.js +47 -47
- package/dist/tokens.d.ts +558 -558
- package/dist/tokens.js +237 -237
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import { Spinner } from '../spinner/';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type Variant = 'primary' | 'secondary' | 'transparent' | 'danger';
|
|
6
6
|
interface Props {
|
|
7
|
-
|
|
7
|
+
variant?: Variant;
|
|
8
8
|
type?: 'button' | 'submit' | 'reset' | null | undefined;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
@@ -12,34 +12,23 @@
|
|
|
12
12
|
children?: Snippet;
|
|
13
13
|
onclick?: () => void;
|
|
14
14
|
tabindex?: number | undefined;
|
|
15
|
+
rounded?: boolean;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
let {
|
|
18
|
-
|
|
19
|
+
variant = 'transparent',
|
|
19
20
|
type = 'button',
|
|
20
21
|
loading = false,
|
|
21
22
|
disabled = false,
|
|
22
23
|
size = 'sm',
|
|
23
24
|
children,
|
|
24
25
|
onclick,
|
|
25
|
-
tabindex
|
|
26
|
+
tabindex,
|
|
27
|
+
rounded = true
|
|
26
28
|
}: Props = $props();
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
sm: 'h-8 w-8 [&>svg]:w-4 [&>svg]:h-4',
|
|
31
|
-
md: 'h-10 w-10 [&>svg]:w-5 [&>svg]:h-5',
|
|
32
|
-
lg: 'h-8 w-8 '
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const colors: Record<Color, string> = {
|
|
36
|
-
primary: 'bg-accent-inverse text-icon-primary-inverse hover:bg-accent-inverse-hover ',
|
|
37
|
-
secondary: 'bg-neutral text-icon-primary hover:bg-neutral-hover ',
|
|
38
|
-
transparent: 'bg-transparent text-icon-primary hover:bg-neutral-hover ',
|
|
39
|
-
danger: 'bg-danger-inverse text-icon-primary-inverse hover:bg-danger-inverse-hover '
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const baseStyle = 'flex justify-center items-center rounded-full';
|
|
30
|
+
let sizeClass = $derived(`size-${size}`);
|
|
31
|
+
let variantClass = $derived(`color-${variant}`);
|
|
43
32
|
</script>
|
|
44
33
|
|
|
45
34
|
{#if disabled || loading}
|
|
@@ -49,9 +38,8 @@
|
|
|
49
38
|
}}
|
|
50
39
|
{type}
|
|
51
40
|
{disabled}
|
|
52
|
-
class="
|
|
53
|
-
|
|
54
|
-
]} cursor-default {colors['secondary']}"
|
|
41
|
+
class="{sizeClass} {variantClass} disabled"
|
|
42
|
+
class:rounded
|
|
55
43
|
>
|
|
56
44
|
{#if loading}
|
|
57
45
|
<Spinner />
|
|
@@ -60,13 +48,92 @@
|
|
|
60
48
|
{/if}
|
|
61
49
|
</button>
|
|
62
50
|
{:else}
|
|
63
|
-
<button
|
|
64
|
-
{onclick}
|
|
65
|
-
{type}
|
|
66
|
-
{disabled}
|
|
67
|
-
{tabindex}
|
|
68
|
-
class="{colors[color]} {sizeClass[size]} {baseStyle} cursor-pointer"
|
|
69
|
-
>
|
|
51
|
+
<button {onclick} {type} {disabled} {tabindex} class="{sizeClass} {variantClass}" class:rounded>
|
|
70
52
|
{@render children?.()}
|
|
71
53
|
</button>
|
|
72
54
|
{/if}
|
|
55
|
+
|
|
56
|
+
<style>
|
|
57
|
+
button {
|
|
58
|
+
display: flex;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
border-radius: 0.125rem
|
|
63
|
+
}
|
|
64
|
+
.rounded {
|
|
65
|
+
border-radius: 9999px
|
|
66
|
+
}
|
|
67
|
+
.disabled {
|
|
68
|
+
cursor: default
|
|
69
|
+
}
|
|
70
|
+
.disabled:disabled {
|
|
71
|
+
background-color: #12192a0d;
|
|
72
|
+
--tw-text-opacity: 1;
|
|
73
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.size-xs {
|
|
77
|
+
height: 1.5rem;
|
|
78
|
+
width: 1.5rem
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.size-xs :global(svg) {
|
|
82
|
+
height: 1rem;
|
|
83
|
+
width: 1rem
|
|
84
|
+
}
|
|
85
|
+
.size-sm {
|
|
86
|
+
height: 2rem;
|
|
87
|
+
width: 2rem
|
|
88
|
+
}
|
|
89
|
+
.size-sm :global(svg) {
|
|
90
|
+
height: 1rem;
|
|
91
|
+
width: 1rem
|
|
92
|
+
}
|
|
93
|
+
.size-md {
|
|
94
|
+
height: 2.5rem;
|
|
95
|
+
width: 2.5rem
|
|
96
|
+
}
|
|
97
|
+
.size-md :global(svg) {
|
|
98
|
+
height: 1.25rem;
|
|
99
|
+
width: 1.25rem
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.color-primary {
|
|
103
|
+
--tw-bg-opacity: 1;
|
|
104
|
+
background-color: rgb(87 80 238 / var(--tw-bg-opacity, 1));
|
|
105
|
+
--tw-text-opacity: 1;
|
|
106
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.color-primary:hover {
|
|
110
|
+
--tw-bg-opacity: 1;
|
|
111
|
+
background-color: rgb(71 65 193 / var(--tw-bg-opacity, 1))
|
|
112
|
+
}
|
|
113
|
+
.color-secondary {
|
|
114
|
+
background-color: #12192a0d;
|
|
115
|
+
--tw-text-opacity: 1;
|
|
116
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1))
|
|
117
|
+
}
|
|
118
|
+
.color-secondary:hover {
|
|
119
|
+
background-color: #12192A1A
|
|
120
|
+
}
|
|
121
|
+
.color-transparent {
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
--tw-text-opacity: 1;
|
|
124
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1))
|
|
125
|
+
}
|
|
126
|
+
.color-transparent:hover {
|
|
127
|
+
background-color: #12192A1A
|
|
128
|
+
}
|
|
129
|
+
.color-danger {
|
|
130
|
+
--tw-bg-opacity: 1;
|
|
131
|
+
background-color: rgb(235 70 71 / var(--tw-bg-opacity, 1));
|
|
132
|
+
--tw-text-opacity: 1;
|
|
133
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
|
134
|
+
}
|
|
135
|
+
.color-danger:hover {
|
|
136
|
+
--tw-bg-opacity: 1;
|
|
137
|
+
background-color: rgb(191 57 58 / var(--tw-bg-opacity, 1))
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
+
type Variant = 'primary' | 'secondary' | 'transparent' | 'danger';
|
|
2
3
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
variant?: Variant;
|
|
5
|
+
type?: 'button' | 'submit' | 'reset' | null | undefined;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: 'xs' | 'sm' | 'md';
|
|
9
|
+
children?: Snippet;
|
|
10
|
+
onclick?: () => void;
|
|
11
|
+
tabindex?: number | undefined;
|
|
12
|
+
rounded?: boolean;
|
|
11
13
|
}
|
|
12
|
-
declare const IconButton: import(
|
|
14
|
+
declare const IconButton: import("svelte").Component<Props, {}, "">;
|
|
13
15
|
type IconButton = ReturnType<typeof IconButton>;
|
|
14
16
|
export default IconButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
src: string;
|
|
3
|
+
alt: string;
|
|
4
4
|
}
|
|
5
|
-
declare const Image: import(
|
|
5
|
+
declare const Image: import("svelte").Component<Props, {}, "">;
|
|
6
6
|
type Image = ReturnType<typeof Image>;
|
|
7
7
|
export default Image;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Input;
|
|
2
|
-
type Input = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Input = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Input: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Input: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Input from './Input.svelte';
|
|
25
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
internal: unknown,
|
|
39
|
-
props: {
|
|
40
|
-
$$events?: Events;
|
|
41
|
-
$$slots?: Slots;
|
|
42
|
-
}
|
|
43
|
-
): Exports & {
|
|
44
|
-
$set?: any;
|
|
45
|
-
$on?: any;
|
|
46
|
-
};
|
|
47
|
-
z_$$bindings?: Bindings;
|
|
15
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
48
27
|
}
|
|
@@ -123,54 +123,60 @@
|
|
|
123
123
|
<style>
|
|
124
124
|
input,
|
|
125
125
|
textarea {
|
|
126
|
-
width: 100%;
|
|
127
126
|
|
|
128
|
-
|
|
127
|
+
width: 100%;
|
|
129
128
|
|
|
130
|
-
|
|
129
|
+
resize: none;
|
|
131
130
|
|
|
132
|
-
|
|
131
|
+
overflow: hidden;
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
outline: 2px solid transparent;
|
|
134
|
+
|
|
135
|
+
outline-offset: 2px
|
|
136
|
+
}
|
|
136
137
|
|
|
137
138
|
div:not(:focus-within):hover {
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
|
|
140
|
+
border-color: #5750ee40
|
|
141
|
+
}
|
|
140
142
|
|
|
141
143
|
div:focus-within {
|
|
142
|
-
--tw-border-opacity: 1;
|
|
143
144
|
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
--tw-border-opacity: 1;
|
|
146
|
+
|
|
147
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
148
|
+
}
|
|
146
149
|
|
|
147
150
|
.size-xs {
|
|
148
|
-
padding: 0.5rem;
|
|
149
151
|
|
|
150
|
-
|
|
152
|
+
padding: 0.5rem;
|
|
151
153
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
font-size: 0.75rem;
|
|
155
|
+
|
|
156
|
+
line-height: 1rem
|
|
157
|
+
}
|
|
154
158
|
|
|
155
159
|
.size-sm {
|
|
156
|
-
padding-left: 0.75rem;
|
|
157
160
|
|
|
158
|
-
|
|
161
|
+
padding-left: 0.75rem;
|
|
159
162
|
|
|
160
|
-
|
|
163
|
+
padding-right: 0.75rem;
|
|
161
164
|
|
|
162
|
-
|
|
165
|
+
padding-top: 0.5rem;
|
|
163
166
|
|
|
164
|
-
|
|
167
|
+
padding-bottom: 0.5rem;
|
|
165
168
|
|
|
166
|
-
|
|
167
|
-
|
|
169
|
+
font-size: 0.875rem;
|
|
170
|
+
|
|
171
|
+
line-height: 1.25rem
|
|
172
|
+
}
|
|
168
173
|
|
|
169
174
|
.size-md {
|
|
170
|
-
padding: 0.75rem;
|
|
171
175
|
|
|
172
|
-
|
|
176
|
+
padding: 0.75rem;
|
|
173
177
|
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
font-size: 1rem;
|
|
179
|
+
|
|
180
|
+
line-height: 1.5rem
|
|
181
|
+
}
|
|
176
182
|
</style>
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
declare const Input: import(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
{},
|
|
22
|
-
'input' | 'value'
|
|
23
|
-
>;
|
|
2
|
+
declare const Input: import("svelte").Component<{
|
|
3
|
+
label?: string | null;
|
|
4
|
+
value: string | number;
|
|
5
|
+
type?: "text" | "password" | "textarea" | "number";
|
|
6
|
+
required?: boolean;
|
|
7
|
+
autofocus?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
validator?: (a: string | number) => boolean;
|
|
11
|
+
onBlur?: (e: Event) => void;
|
|
12
|
+
onkeydown?: (e: KeyboardEvent) => void;
|
|
13
|
+
prefix?: Snippet<[any]>;
|
|
14
|
+
suffix?: Snippet;
|
|
15
|
+
error?: Snippet;
|
|
16
|
+
input?: HTMLInputElement | HTMLTextAreaElement;
|
|
17
|
+
maxlength?: number | null;
|
|
18
|
+
size?: "xs" | "sm" | "md";
|
|
19
|
+
}, {}, "input" | "value">;
|
|
24
20
|
type Input = ReturnType<typeof Input>;
|
|
25
21
|
export default Input;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import List from './List.svelte';
|
|
2
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
internal: unknown,
|
|
16
|
-
props: {
|
|
17
|
-
$$events?: Events;
|
|
18
|
-
$$slots?: Slots;
|
|
19
|
-
}
|
|
20
|
-
): Exports & {
|
|
21
|
-
$set?: any;
|
|
22
|
-
$on?: any;
|
|
23
|
-
};
|
|
24
|
-
z_$$bindings?: Bindings;
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
25
14
|
}
|
|
26
|
-
declare const List: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const List: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type List = InstanceType<typeof List>;
|
|
36
19
|
export default List;
|
|
@@ -21,50 +21,55 @@
|
|
|
21
21
|
|
|
22
22
|
<style>
|
|
23
23
|
.listStyles {
|
|
24
|
-
display: flex;
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
display: flex;
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
height: 100%;
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
flex-direction: column;
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
align-items: flex-start;
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
}
|
|
33
|
+
align-self: stretch;
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
35
|
+
border-radius: 0.25rem
|
|
36
|
+
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
gap: 0px;
|
|
38
|
+
.listStyles.default {
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
gap: 0.5rem
|
|
41
|
+
}
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
.listStyles.compact {
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
gap: 0px;
|
|
49
46
|
|
|
50
|
-
|
|
47
|
+
--tw-bg-opacity: 1;
|
|
51
48
|
|
|
52
|
-
|
|
49
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
}
|
|
51
|
+
padding-bottom: 0.5rem;
|
|
56
52
|
|
|
57
|
-
|
|
58
|
-
border-bottom-width: 1px;
|
|
53
|
+
padding-left: 1.5rem;
|
|
59
54
|
|
|
60
|
-
|
|
55
|
+
padding-right: 1.5rem;
|
|
61
56
|
|
|
62
|
-
|
|
57
|
+
padding-top: 0.5rem
|
|
58
|
+
}
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
}
|
|
60
|
+
.listStyles.compact :global(> .item:not(:last-child)) {
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
border-bottom-width: 1px;
|
|
63
|
+
|
|
64
|
+
border-style: solid;
|
|
65
|
+
|
|
66
|
+
--tw-border-opacity: 1;
|
|
67
|
+
|
|
68
|
+
border-color: var(--fallback-n,oklch(var(--n)/var(--tw-border-opacity, 1)))
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.listStyles :global(.item) {
|
|
72
|
+
|
|
73
|
+
align-self: stretch
|
|
74
|
+
}
|
|
70
75
|
</style>
|
|
@@ -1,32 +1,23 @@
|
|
|
1
1
|
import type { Overflow } from '../../tailwind';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
declare class __sveltets_Render<T> {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
props(): {
|
|
5
|
+
items: T[];
|
|
6
|
+
item: Snippet<[T]>;
|
|
7
|
+
overflow?: Overflow;
|
|
8
|
+
variant?: "compact" | "default";
|
|
9
|
+
};
|
|
10
|
+
events(): {};
|
|
11
|
+
slots(): {};
|
|
12
|
+
bindings(): "";
|
|
13
|
+
exports(): {};
|
|
14
14
|
}
|
|
15
15
|
interface $$IsomorphicComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ReturnType<__sveltets_Render<T>['slots']>
|
|
22
|
-
> & {
|
|
23
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
24
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
25
|
-
<T>(
|
|
26
|
-
internal: unknown,
|
|
27
|
-
props: ReturnType<__sveltets_Render<T>['props']> & {}
|
|
28
|
-
): ReturnType<__sveltets_Render<T>['exports']>;
|
|
29
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
16
|
+
new <T>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
17
|
+
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
18
|
+
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
19
|
+
<T>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
20
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
30
21
|
}
|
|
31
22
|
declare const List: $$IsomorphicComponent;
|
|
32
23
|
type List<T> = InstanceType<typeof List<T>>;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Logo;
|
|
2
|
-
type Logo = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Logo = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Logo: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Logo: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Logo from './Logo.svelte';
|
|
25
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
internal: unknown,
|
|
39
|
-
props: {
|
|
40
|
-
$$events?: Events;
|
|
41
|
-
$$slots?: Slots;
|
|
42
|
-
}
|
|
43
|
-
): Exports & {
|
|
44
|
-
$set?: any;
|
|
45
|
-
$on?: any;
|
|
46
|
-
};
|
|
47
|
-
z_$$bindings?: Bindings;
|
|
15
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
48
27
|
}
|