@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
|
@@ -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;
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
|
|
22
22
|
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
23
23
|
<!-- DaisyUI have a bug wit safari dropdown. Requires tabindex=0-->
|
|
24
|
-
<div
|
|
25
|
-
class={`dropdown-content z-[1] mb-2 rounded-md p-1 shadow-2xl ${variantClass} ${className}`}
|
|
26
|
-
tabindex="0"
|
|
27
|
-
>
|
|
24
|
+
<div class={`z-[1] mb-2 rounded-md p-1 shadow-2xl ${variantClass} ${className}`} tabindex="0">
|
|
28
25
|
{@render children?.()}
|
|
29
26
|
</div>
|
|
@@ -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;
|
|
@@ -10,35 +10,65 @@
|
|
|
10
10
|
});
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<Story name="
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
</
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
<Story name="Base">
|
|
14
|
+
<div class="flex flex-col gap-2">
|
|
15
|
+
<IconButton variant="primary">
|
|
16
|
+
<Plus />
|
|
17
|
+
</IconButton>
|
|
18
|
+
<IconButton variant="secondary">
|
|
19
|
+
<Plus />
|
|
20
|
+
</IconButton>
|
|
21
|
+
<IconButton variant="danger">
|
|
22
|
+
<Plus />
|
|
23
|
+
</IconButton>
|
|
24
|
+
<IconButton variant="transparent">
|
|
25
|
+
<Plus />
|
|
26
|
+
</IconButton>
|
|
27
|
+
</div>
|
|
27
28
|
</Story>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
|
|
30
|
+
<Story name="Sizes">
|
|
31
|
+
<div class="flex flex-col gap-2">
|
|
32
|
+
<IconButton variant="secondary" size="xs">
|
|
33
|
+
<Plus />
|
|
34
|
+
</IconButton>
|
|
35
|
+
<IconButton variant="secondary" size="sm">
|
|
36
|
+
<Plus />
|
|
37
|
+
</IconButton>
|
|
38
|
+
<IconButton variant="secondary" size="md">
|
|
39
|
+
<Plus />
|
|
40
|
+
</IconButton>
|
|
41
|
+
</div>
|
|
32
42
|
</Story>
|
|
33
|
-
<Story name="
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
43
|
+
<Story name="Not rounded base">
|
|
44
|
+
<div class="flex flex-col gap-2">
|
|
45
|
+
<IconButton variant="primary" rounded={false}>
|
|
46
|
+
<Plus />
|
|
47
|
+
</IconButton>
|
|
48
|
+
<IconButton variant="secondary" rounded={false}>
|
|
49
|
+
<Plus />
|
|
50
|
+
</IconButton>
|
|
51
|
+
<IconButton variant="danger" rounded={false}>
|
|
52
|
+
<Plus />
|
|
53
|
+
</IconButton>
|
|
54
|
+
<IconButton variant="transparent" rounded={false}>
|
|
55
|
+
<Plus />
|
|
56
|
+
</IconButton>
|
|
57
|
+
</div>
|
|
37
58
|
</Story>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
59
|
+
|
|
60
|
+
<Story name="Not rounded sizes">
|
|
61
|
+
<div class="flex flex-col gap-2">
|
|
62
|
+
<IconButton variant="secondary" size="xs" rounded={false}>
|
|
63
|
+
<Plus />
|
|
64
|
+
</IconButton>
|
|
65
|
+
<IconButton variant="secondary" size="sm" rounded={false}>
|
|
66
|
+
<Plus />
|
|
67
|
+
</IconButton>
|
|
68
|
+
<IconButton variant="secondary" size="md" rounded={false}>
|
|
69
|
+
<Plus />
|
|
70
|
+
</IconButton>
|
|
71
|
+
</div>
|
|
42
72
|
</Story>
|
|
43
73
|
<Story name="Disabled">
|
|
44
74
|
<IconButton disabled>
|
|
@@ -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;
|