@reshape-biotech/design-system 0.0.43 → 0.0.44
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 +81 -81
- 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.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.d.ts +15 -32
- package/dist/components/icon-button/IconButton.svelte.d.ts +9 -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 +11 -11
- 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
|
@@ -14,47 +14,49 @@
|
|
|
14
14
|
|
|
15
15
|
<style>
|
|
16
16
|
label {
|
|
17
|
-
display: flex;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
display: flex;
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
width: 100%;
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
cursor: pointer;
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
align-items: center;
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
gap: 0.25rem;
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
border-radius: 0.5rem;
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
border-width: 1px;
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
border-color: #12192A1A;
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
--tw-bg-opacity: 1;
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
padding: 0.75rem;
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
--tw-text-opacity: 1;
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
--tw-shadow: 0px 1px 4px 0px rgba(18, 25, 42, 0.04);
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
--tw-shadow-colored: 0px 1px 4px 0px var(--tw-shadow-color);
|
|
47
|
+
|
|
48
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
49
|
+
}
|
|
50
50
|
|
|
51
51
|
label:not(:focus-within):hover {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
|
|
53
|
+
border-color: #5750ee40
|
|
54
|
+
}
|
|
54
55
|
|
|
55
56
|
label:focus-within {
|
|
56
|
-
--tw-border-opacity: 1;
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
--tw-border-opacity: 1;
|
|
59
|
+
|
|
60
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
61
|
+
}
|
|
60
62
|
</style>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
classes?: string;
|
|
5
|
+
children: Snippet;
|
|
6
6
|
}
|
|
7
|
-
declare const DrawerLabel: import(
|
|
7
|
+
declare const DrawerLabel: import("svelte").Component<Props, {}, "">;
|
|
8
8
|
type DrawerLabel = ReturnType<typeof DrawerLabel>;
|
|
9
9
|
export default DrawerLabel;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Dropdown;
|
|
2
|
-
type Dropdown = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Dropdown = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Dropdown: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Dropdown: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Dropdown from './Dropdown.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
|
}
|
|
@@ -4,29 +4,23 @@ import DropdownMenu from './components/DropdownMenu.svelte';
|
|
|
4
4
|
import DropdownTrigger from './components/DropdownTrigger.svelte';
|
|
5
5
|
import OutlinedButton from './components/OutlinedButton.svelte';
|
|
6
6
|
interface Props {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
DropdownContent: typeof DropdownContent;
|
|
25
|
-
DropdownMenu: typeof DropdownMenu;
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
>;
|
|
7
|
+
side?: 'dropdown-top' | 'dropdown-bottom' | 'dropdown-left' | 'dropdown-right';
|
|
8
|
+
open?: boolean;
|
|
9
|
+
alignEnd?: boolean;
|
|
10
|
+
openOnHover?: boolean;
|
|
11
|
+
closeOnItemClick?: boolean;
|
|
12
|
+
class?: string;
|
|
13
|
+
trigger?: Snippet<[{
|
|
14
|
+
Trigger: typeof DropdownTrigger;
|
|
15
|
+
OutlinedButton: typeof OutlinedButton;
|
|
16
|
+
}]>;
|
|
17
|
+
content?: Snippet<[
|
|
18
|
+
{
|
|
19
|
+
DropdownContent: typeof DropdownContent;
|
|
20
|
+
DropdownMenu: typeof DropdownMenu;
|
|
21
|
+
}
|
|
22
|
+
]>;
|
|
29
23
|
}
|
|
30
|
-
declare const Dropdown: import(
|
|
24
|
+
declare const Dropdown: import("svelte").Component<Props, {}, "open">;
|
|
31
25
|
type Dropdown = ReturnType<typeof Dropdown>;
|
|
32
26
|
export default Dropdown;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type Variant = 'primary' | 'secondary';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
class?: string;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
children?: Snippet;
|
|
7
7
|
}
|
|
8
|
-
declare const DropdownContent: import(
|
|
8
|
+
declare const DropdownContent: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type DropdownContent = ReturnType<typeof DropdownContent>;
|
|
10
10
|
export default DropdownContent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
class?: string;
|
|
4
|
+
children?: Snippet;
|
|
5
5
|
}
|
|
6
|
-
declare const DropdownMenu: import(
|
|
6
|
+
declare const DropdownMenu: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type DropdownMenu = ReturnType<typeof DropdownMenu>;
|
|
8
8
|
export default DropdownMenu;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type Color = 'primary' | 'secondary' | 'transparent' | 'danger';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
class?: string;
|
|
6
|
+
variant?: Color;
|
|
7
|
+
children?: Snippet;
|
|
8
|
+
noPadding?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const DropdownTrigger: import(
|
|
10
|
+
declare const DropdownTrigger: import("svelte").Component<Props, {}, "">;
|
|
11
11
|
type DropdownTrigger = ReturnType<typeof DropdownTrigger>;
|
|
12
12
|
export default DropdownTrigger;
|
|
@@ -9,51 +9,53 @@
|
|
|
9
9
|
let { class: className = '', children }: Props = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<button class={`${className}`}>{@render children()}</
|
|
12
|
+
<div role="button" tabindex="0" class={`${className}`}>{@render children()}</div>
|
|
13
13
|
|
|
14
14
|
<style>
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
15
|
+
div {
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
display: flex;
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
width: 100%;
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
cursor: pointer;
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
align-items: center;
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
gap: 0.25rem;
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
border-radius: 0.5rem;
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
border-width: 1px;
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
border-color: #12192A1A;
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
--tw-bg-opacity: 1;
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
padding: 0.75rem;
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
--tw-text-opacity: 1;
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
--tw-shadow: 0px 1px 4px 0px rgba(18, 25, 42, 0.04);
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
var(--tw-shadow);
|
|
48
|
-
}
|
|
45
|
+
--tw-shadow-colored: 0px 1px 4px 0px var(--tw-shadow-color);
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
47
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
48
|
+
}
|
|
53
49
|
|
|
54
|
-
|
|
55
|
-
--tw-border-opacity: 1;
|
|
50
|
+
div:not(:focus-within):hover {
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
border-color: #5750ee40
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
div:focus-within {
|
|
56
|
+
|
|
57
|
+
--tw-border-opacity: 1;
|
|
58
|
+
|
|
59
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
60
|
+
}
|
|
59
61
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
class?: string;
|
|
4
|
+
children: Snippet;
|
|
5
5
|
}
|
|
6
|
-
declare const OutlinedButton: import(
|
|
6
|
+
declare const OutlinedButton: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type OutlinedButton = ReturnType<typeof OutlinedButton>;
|
|
8
8
|
export default OutlinedButton;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import IconButton from '../icon-button/IconButton.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 IconButton: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const IconButton: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type IconButton = InstanceType<typeof IconButton>;
|
|
36
19
|
export default IconButton;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
color?: 'primary' | 'transparent' | 'secondary' | 'danger';
|
|
4
|
+
type?: 'button' | 'submit' | 'reset' | null | undefined;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
size?: 'xs' | 'sm' | 'md';
|
|
8
|
+
children?: Snippet;
|
|
9
|
+
onclick?: () => void;
|
|
10
|
+
tabindex?: number | undefined;
|
|
11
11
|
}
|
|
12
|
-
declare const IconButton: import(
|
|
12
|
+
declare const IconButton: import("svelte").Component<Props, {}, "">;
|
|
13
13
|
type IconButton = ReturnType<typeof IconButton>;
|
|
14
14
|
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>
|