@reshape-biotech/design-system 0.0.41 → 0.0.43
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 +32 -15
- 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 +32 -15
- package/dist/components/button/Button.svelte +81 -81
- package/dist/components/button/Button.svelte.d.ts +18 -14
- package/dist/components/datepicker/DatePicker.svelte +13 -12
- package/dist/components/datepicker/DatePicker.svelte.d.ts +3 -3
- package/dist/components/divider/Divider.stories.svelte.d.ts +44 -23
- package/dist/components/divider/Divider.svelte.d.ts +2 -2
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +44 -23
- package/dist/components/drawer/Drawer.svelte.d.ts +7 -7
- package/dist/components/drawer/DrawerLabel.svelte +23 -25
- package/dist/components/drawer/DrawerLabel.svelte.d.ts +4 -4
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +44 -23
- package/dist/components/dropdown/Dropdown.svelte.d.ts +23 -17
- 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 +23 -25
- package/dist/components/dropdown/components/OutlinedButton.svelte.d.ts +3 -3
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +32 -15
- 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 +44 -23
- package/dist/components/input/Input.svelte +26 -32
- package/dist/components/input/Input.svelte.d.ts +22 -18
- package/dist/components/list/List.stories.svelte.d.ts +32 -15
- package/dist/components/list/List.svelte +28 -33
- package/dist/components/list/List.svelte.d.ts +24 -15
- package/dist/components/logo/Logo.stories.svelte.d.ts +44 -23
- package/dist/components/logo/Logo.svelte.d.ts +2 -2
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +44 -23
- package/dist/components/markdown/Markdown.svelte.d.ts +2 -2
- package/dist/components/modal/Modal.stories.svelte +4 -6
- package/dist/components/modal/Modal.stories.svelte.d.ts +32 -15
- package/dist/components/modal/Modal.svelte +24 -4
- package/dist/components/modal/Modal.svelte.d.ts +16 -11
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +44 -23
- 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 +6 -10
- 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 +32 -15
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +10 -6
- package/dist/components/select/Select.stories.svelte.d.ts +32 -15
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/select/Select.svelte.d.ts +81 -56
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +44 -23
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +11 -7
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte.d.ts +32 -15
- package/dist/components/skeleton-loader/components/Skeleton.svelte.d.ts +3 -3
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte.d.ts +44 -23
- package/dist/components/slider/Slider.stories.svelte.d.ts +44 -23
- package/dist/components/slider/Slider.svelte +15 -13
- package/dist/components/slider/Slider.svelte.d.ts +43 -26
- package/dist/components/spinner/Spinner.svelte.d.ts +2 -2
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +44 -23
- package/dist/components/stat-card/StatCard.svelte.d.ts +6 -6
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +32 -15
- 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 +35 -18
- package/dist/components/table/Table.svelte +5 -5
- package/dist/components/table/Table.svelte.d.ts +13 -11
- 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 +44 -23
- package/dist/components/tabs/Tabs.svelte.d.ts +10 -6
- 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 +32 -15
- package/dist/components/tag/Tag.svelte +14 -16
- package/dist/components/tag/Tag.svelte.d.ts +12 -8
- package/dist/components/toggle/Toggle.stories.svelte.d.ts +44 -23
- package/dist/components/toggle/Toggle.svelte +6 -6
- package/dist/components/toggle/Toggle.svelte.d.ts +9 -5
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +44 -23
- package/dist/components/tooltip/Tooltip.svelte +12 -10
- 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 +14 -1
- package/dist/tailwind.preset.d.ts +330 -327
- 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,49 +14,47 @@
|
|
|
14
14
|
|
|
15
15
|
<style>
|
|
16
16
|
label {
|
|
17
|
+
display: flex;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
width: 100%;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
cursor: pointer;
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
align-items: center;
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
gap: 0.25rem;
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
border-radius: 0.5rem;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
border-width: 1px;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
border-color: #12192a1a;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
--tw-bg-opacity: 1;
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
padding: 0.75rem;
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
--tw-text-opacity: 1;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
--tw-shadow: 0px 1px 4px 0px rgba(18, 25, 42, 0.04);
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
--tw-shadow-colored: 0px 1px 4px 0px var(--tw-shadow-color);
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
47
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
48
|
+
var(--tw-shadow);
|
|
49
|
+
}
|
|
50
50
|
|
|
51
51
|
label:not(:focus-within):hover {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
52
|
+
border-color: #5750ee40;
|
|
53
|
+
}
|
|
55
54
|
|
|
56
55
|
label:focus-within {
|
|
56
|
+
--tw-border-opacity: 1;
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
61
|
-
}
|
|
58
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1));
|
|
59
|
+
}
|
|
62
60
|
</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,27 +1,48 @@
|
|
|
1
1
|
export default Dropdown;
|
|
2
|
-
type Dropdown = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Dropdown = SvelteComponent<
|
|
3
|
+
{
|
|
4
|
+
[x: string]: never;
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
},
|
|
9
|
+
{}
|
|
10
|
+
> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
8
12
|
};
|
|
9
|
-
declare const Dropdown: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Dropdown: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Dropdown from './Dropdown.svelte';
|
|
15
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
Props extends Record<string, any> = any,
|
|
27
|
+
Events extends Record<string, any> = any,
|
|
28
|
+
Slots extends Record<string, any> = any,
|
|
29
|
+
Exports = {},
|
|
30
|
+
Bindings = string
|
|
31
|
+
> {
|
|
32
|
+
new (
|
|
33
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
34
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
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;
|
|
27
48
|
}
|
|
@@ -4,23 +4,29 @@ 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
|
-
|
|
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
|
+
[
|
|
15
|
+
{
|
|
16
|
+
Trigger: typeof DropdownTrigger;
|
|
17
|
+
OutlinedButton: typeof OutlinedButton;
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
>;
|
|
21
|
+
content?: Snippet<
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
DropdownContent: typeof DropdownContent;
|
|
25
|
+
DropdownMenu: typeof DropdownMenu;
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
>;
|
|
23
29
|
}
|
|
24
|
-
declare const Dropdown: import(
|
|
30
|
+
declare const Dropdown: import('svelte').Component<Props, {}, 'open'>;
|
|
25
31
|
type Dropdown = ReturnType<typeof Dropdown>;
|
|
26
32
|
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;
|
|
@@ -13,49 +13,47 @@
|
|
|
13
13
|
|
|
14
14
|
<style>
|
|
15
15
|
button {
|
|
16
|
+
display: flex;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
width: 100%;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
cursor: pointer;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
align-items: center;
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
gap: 0.25rem;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
border-radius: 0.5rem;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
border-width: 1px;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
border-color: #12192a1a;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
--tw-bg-opacity: 1;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
padding: 0.75rem;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
--tw-text-opacity: 1;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
--tw-shadow: 0px 1px 4px 0px rgba(18, 25, 42, 0.04);
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
--tw-shadow-colored: 0px 1px 4px 0px var(--tw-shadow-color);
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
46
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
47
|
+
var(--tw-shadow);
|
|
48
|
+
}
|
|
49
49
|
|
|
50
50
|
button:not(:focus-within):hover {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
51
|
+
border-color: #5750ee40;
|
|
52
|
+
}
|
|
54
53
|
|
|
55
54
|
button:focus-within {
|
|
55
|
+
--tw-border-opacity: 1;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
60
|
-
}
|
|
57
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1));
|
|
58
|
+
}
|
|
61
59
|
</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,19 +1,36 @@
|
|
|
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
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
+
Props extends Record<string, any> = any,
|
|
4
|
+
Events extends Record<string, any> = any,
|
|
5
|
+
Slots extends Record<string, any> = any,
|
|
6
|
+
Exports = {},
|
|
7
|
+
Bindings = string
|
|
8
|
+
> {
|
|
9
|
+
new (
|
|
10
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
11
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
12
|
+
$$bindings?: Bindings;
|
|
13
|
+
} & Exports;
|
|
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;
|
|
14
25
|
}
|
|
15
|
-
declare const IconButton: $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
declare const IconButton: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
+
Record<string, never>,
|
|
28
|
+
{
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
},
|
|
31
|
+
{},
|
|
32
|
+
{},
|
|
33
|
+
string
|
|
34
|
+
>;
|
|
18
35
|
type IconButton = InstanceType<typeof IconButton>;
|
|
19
36
|
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,27 +1,48 @@
|
|
|
1
1
|
export default Input;
|
|
2
|
-
type Input = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Input = SvelteComponent<
|
|
3
|
+
{
|
|
4
|
+
[x: string]: never;
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
},
|
|
9
|
+
{}
|
|
10
|
+
> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
8
12
|
};
|
|
9
|
-
declare const Input: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Input: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Input from './Input.svelte';
|
|
15
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
Props extends Record<string, any> = any,
|
|
27
|
+
Events extends Record<string, any> = any,
|
|
28
|
+
Slots extends Record<string, any> = any,
|
|
29
|
+
Exports = {},
|
|
30
|
+
Bindings = string
|
|
31
|
+
> {
|
|
32
|
+
new (
|
|
33
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
34
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
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;
|
|
27
48
|
}
|
|
@@ -123,60 +123,54 @@
|
|
|
123
123
|
<style>
|
|
124
124
|
input,
|
|
125
125
|
textarea {
|
|
126
|
+
width: 100%;
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
resize: none;
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
overflow: hidden;
|
|
130
131
|
|
|
131
|
-
|
|
132
|
+
outline: 2px solid transparent;
|
|
132
133
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
outline-offset: 2px
|
|
136
|
-
}
|
|
134
|
+
outline-offset: 2px;
|
|
135
|
+
}
|
|
137
136
|
|
|
138
137
|
div:not(:focus-within):hover {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
138
|
+
border-color: #5750ee40;
|
|
139
|
+
}
|
|
142
140
|
|
|
143
141
|
div:focus-within {
|
|
142
|
+
--tw-border-opacity: 1;
|
|
144
143
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1))
|
|
148
|
-
}
|
|
144
|
+
border-color: rgb(87 80 238 / var(--tw-border-opacity, 1));
|
|
145
|
+
}
|
|
149
146
|
|
|
150
147
|
.size-xs {
|
|
148
|
+
padding: 0.5rem;
|
|
151
149
|
|
|
152
|
-
|
|
150
|
+
font-size: 0.75rem;
|
|
153
151
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
line-height: 1rem
|
|
157
|
-
}
|
|
152
|
+
line-height: 1rem;
|
|
153
|
+
}
|
|
158
154
|
|
|
159
155
|
.size-sm {
|
|
156
|
+
padding-left: 0.75rem;
|
|
160
157
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
padding-right: 0.75rem;
|
|
158
|
+
padding-right: 0.75rem;
|
|
164
159
|
|
|
165
|
-
|
|
160
|
+
padding-top: 0.5rem;
|
|
166
161
|
|
|
167
|
-
|
|
162
|
+
padding-bottom: 0.5rem;
|
|
168
163
|
|
|
169
|
-
|
|
164
|
+
font-size: 0.875rem;
|
|
170
165
|
|
|
171
|
-
|
|
172
|
-
}
|
|
166
|
+
line-height: 1.25rem;
|
|
167
|
+
}
|
|
173
168
|
|
|
174
169
|
.size-md {
|
|
170
|
+
padding: 0.75rem;
|
|
175
171
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
font-size: 1rem;
|
|
172
|
+
font-size: 1rem;
|
|
179
173
|
|
|
180
|
-
|
|
181
|
-
}
|
|
174
|
+
line-height: 1.5rem;
|
|
175
|
+
}
|
|
182
176
|
</style>
|
|
@@ -1,21 +1,25 @@
|
|
|
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
|
-
|
|
2
|
+
declare const Input: import('svelte').Component<
|
|
3
|
+
{
|
|
4
|
+
label?: string | null;
|
|
5
|
+
value: string | number;
|
|
6
|
+
type?: 'text' | 'password' | 'textarea' | 'number';
|
|
7
|
+
required?: boolean;
|
|
8
|
+
autofocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
validator?: (a: string | number) => boolean;
|
|
12
|
+
onBlur?: (e: Event) => void;
|
|
13
|
+
onkeydown?: (e: KeyboardEvent) => void;
|
|
14
|
+
prefix?: Snippet<[any]>;
|
|
15
|
+
suffix?: Snippet;
|
|
16
|
+
error?: Snippet;
|
|
17
|
+
input?: HTMLInputElement | HTMLTextAreaElement;
|
|
18
|
+
maxlength?: number | null;
|
|
19
|
+
size?: 'xs' | 'sm' | 'md';
|
|
20
|
+
},
|
|
21
|
+
{},
|
|
22
|
+
'input' | 'value'
|
|
23
|
+
>;
|
|
20
24
|
type Input = ReturnType<typeof Input>;
|
|
21
25
|
export default Input;
|