@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
|
|
2
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
};
|
|
4
|
-
declare const Logo: import(
|
|
4
|
+
declare const Logo: import("svelte").Component<Props, {}, "">;
|
|
5
5
|
type Logo = ReturnType<typeof Logo>;
|
|
6
6
|
export default Logo;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Markdown;
|
|
2
|
-
type Markdown = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Markdown = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Markdown: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Markdown: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Markdown from './Markdown.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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
2
|
+
markdown: string;
|
|
3
3
|
}
|
|
4
|
-
declare const Markdown: import(
|
|
4
|
+
declare const Markdown: import("svelte").Component<Props, {}, "">;
|
|
5
5
|
type Markdown = ReturnType<typeof Markdown>;
|
|
6
6
|
export default Markdown;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import Modal from '../modal/Modal.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 Modal: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type Modal = InstanceType<typeof Modal>;
|
|
36
19
|
export default Modal;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<div class="modal-box {modalClass}">
|
|
46
46
|
{#if withClose}
|
|
47
47
|
<div class="close-button">
|
|
48
|
-
<IconButton onclick={closeModal} size="md"
|
|
48
|
+
<IconButton onclick={closeModal} size="md" variant="secondary">
|
|
49
49
|
<X />
|
|
50
50
|
</IconButton>
|
|
51
51
|
</div>
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
|
|
62
62
|
<style>
|
|
63
63
|
.modal-box {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
position: relative;
|
|
65
|
+
max-width: 100%;
|
|
66
|
+
border-radius: 0.75rem;
|
|
67
|
+
--tw-bg-opacity: 1;
|
|
68
|
+
background-color: rgb(243 250 252 / var(--tw-bg-opacity, 1))
|
|
69
|
+
}
|
|
70
70
|
.close-button {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: 0px;
|
|
73
|
+
top: 0px;
|
|
74
|
+
padding: 1.5rem
|
|
75
|
+
}
|
|
76
76
|
</style>
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type ModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id?: string;
|
|
15
|
-
withClose?: boolean;
|
|
16
|
-
closeOnClickOutside?: boolean;
|
|
17
|
-
class?: string;
|
|
3
|
+
Trigger?: Snippet<[{
|
|
4
|
+
openModal: () => void;
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
}]>;
|
|
7
|
+
Content: Snippet;
|
|
8
|
+
onclose?: () => void;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
withClose?: boolean;
|
|
12
|
+
closeOnClickOutside?: boolean;
|
|
13
|
+
class?: string;
|
|
18
14
|
};
|
|
19
|
-
declare const Modal: import(
|
|
15
|
+
declare const Modal: import("svelte").Component<ModalProps, {}, "">;
|
|
20
16
|
type Modal = ReturnType<typeof Modal>;
|
|
21
17
|
export default Modal;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default NotificationPopup;
|
|
2
|
-
type NotificationPopup = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type NotificationPopup = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import NotificationPopup from './NotificationPopup.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
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
children?: Snippet;
|
|
8
8
|
}
|
|
9
|
-
declare const NotificationPopup: import(
|
|
9
|
+
declare const NotificationPopup: import("svelte").Component<Props, {}, "">;
|
|
10
10
|
type NotificationPopup = ReturnType<typeof NotificationPopup>;
|
|
11
11
|
export default NotificationPopup;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
button {
|
|
22
22
|
gap: 0.5rem;
|
|
23
23
|
border-radius: 9999px;
|
|
24
|
-
background-color: #
|
|
24
|
+
background-color: #5750ee1A;
|
|
25
25
|
padding-left: 1rem;
|
|
26
26
|
padding-right: 1rem;
|
|
27
27
|
padding-top: 0px;
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
white-space: nowrap;
|
|
35
35
|
height: 32px;
|
|
36
36
|
|
|
37
|
-
align-items: center
|
|
38
|
-
|
|
37
|
+
align-items: center
|
|
38
|
+
}
|
|
39
39
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
class?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
type?: 'button' | 'submit';
|
|
5
|
+
testID?: string;
|
|
6
|
+
onclick?: () => void;
|
|
7
7
|
}
|
|
8
|
-
declare const Pill: import(
|
|
8
|
+
declare const Pill: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type Pill = ReturnType<typeof Pill>;
|
|
10
10
|
export default Pill;
|
|
@@ -43,31 +43,35 @@
|
|
|
43
43
|
|
|
44
44
|
<style>
|
|
45
45
|
.progress-wrapper {
|
|
46
|
+
|
|
46
47
|
position: relative;
|
|
47
48
|
|
|
48
49
|
display: inline-block;
|
|
49
50
|
|
|
50
51
|
aspect-ratio: 1;
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
}
|
|
53
|
+
.progress-wrapper.md {
|
|
54
|
+
|
|
53
55
|
width: 1.25rem;
|
|
54
56
|
|
|
55
57
|
height: 1.25rem;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
}
|
|
59
|
+
.progress-wrapper.sm {
|
|
60
|
+
|
|
58
61
|
width: 1rem;
|
|
59
62
|
|
|
60
63
|
height: 1rem;
|
|
61
|
-
|
|
64
|
+
}
|
|
62
65
|
|
|
63
66
|
svg {
|
|
67
|
+
|
|
64
68
|
position: absolute;
|
|
65
69
|
|
|
66
70
|
inset: 0px;
|
|
67
71
|
width: 100%;
|
|
68
72
|
height: 100%;
|
|
69
73
|
display: block;
|
|
70
|
-
|
|
74
|
+
}
|
|
71
75
|
|
|
72
76
|
path {
|
|
73
77
|
--pathLength: 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
progress: number;
|
|
3
|
+
size?: 'md' | 'sm';
|
|
4
4
|
};
|
|
5
|
-
declare const ProgressCircle: import(
|
|
5
|
+
declare const ProgressCircle: import("svelte").Component<Props, {}, "progress">;
|
|
6
6
|
type ProgressCircle = ReturnType<typeof ProgressCircle>;
|
|
7
7
|
export default ProgressCircle;
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
|
|
46
46
|
<style>
|
|
47
47
|
.primary.active {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
--tw-bg-opacity: 1;
|
|
49
|
+
background-color: rgb(87 80 238 / var(--tw-bg-opacity, 1));
|
|
50
|
+
--tw-text-opacity: 1;
|
|
51
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
|
52
|
+
}
|
|
53
53
|
.secondary.active {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
--tw-bg-opacity: 1;
|
|
55
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
56
|
+
--tw-text-opacity: 1;
|
|
57
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1))
|
|
58
|
+
}
|
|
59
59
|
</style>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type Color = 'primary' | 'secondary';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
class?: string;
|
|
5
|
+
color?: Color;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
onclick?: () => void;
|
|
10
|
+
children?: Snippet;
|
|
11
11
|
}
|
|
12
|
-
declare const ControlButton: import(
|
|
12
|
+
declare const ControlButton: import("svelte").Component<Props, {}, "">;
|
|
13
13
|
type ControlButton = ReturnType<typeof ControlButton>;
|
|
14
14
|
export default ControlButton;
|
package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import SegmentedControlButtons from './SegmentedControlButtons.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 SegmentedControlButtons: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const SegmentedControlButtons: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type SegmentedControlButtons = InstanceType<typeof SegmentedControlButtons>;
|
|
36
19
|
export default SegmentedControlButtons;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import ControlButton from './ControlButton.svelte';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ControlButton: typeof ControlButton;
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
>;
|
|
4
|
+
class?: string;
|
|
5
|
+
size?: 'md' | 'lg';
|
|
6
|
+
children?: Snippet<[{
|
|
7
|
+
ControlButton: typeof ControlButton;
|
|
8
|
+
}]>;
|
|
13
9
|
}
|
|
14
|
-
declare const SegmentedControlButtons: import(
|
|
10
|
+
declare const SegmentedControlButtons: import("svelte").Component<Props, {}, "">;
|
|
15
11
|
type SegmentedControlButtons = ReturnType<typeof SegmentedControlButtons>;
|
|
16
12
|
export default SegmentedControlButtons;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import Select from './Select.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 Select: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const Select: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type Select = InstanceType<typeof Select>;
|
|
36
19
|
export default Select;
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
:global(.svelte-select .item.active) {
|
|
120
|
-
background-color: #
|
|
121
|
-
|
|
120
|
+
background-color: #5750ee1A;
|
|
121
|
+
}
|
|
122
122
|
|
|
123
123
|
:global(.svelte-select .list-item:not(:first-of-type) > .list-group-title) {
|
|
124
124
|
padding-top: 0.5rem;
|
|
125
|
-
|
|
125
|
+
}
|
|
126
126
|
|
|
127
127
|
:global(.svelte-select .list-item:not(:first-of-type) > .list-group-title)::before {
|
|
128
128
|
position: relative;
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
clear: both;
|
|
132
132
|
display: block;
|
|
133
133
|
border-top-width: 1px;
|
|
134
|
-
border-color: #
|
|
134
|
+
border-color: #12192A26;
|
|
135
135
|
--tw-content: '';
|
|
136
136
|
content: var(--tw-content);
|
|
137
|
-
|
|
137
|
+
}
|
|
138
138
|
</style>
|