@reshape-biotech/design-system 0.0.42 → 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.d.ts +32 -15
- package/dist/components/modal/Modal.svelte +19 -3
- package/dist/components/modal/Modal.svelte.d.ts +16 -12
- 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
|
@@ -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 TBody: import(
|
|
6
|
+
declare const TBody: import('svelte').Component<Props, {}, ''>;
|
|
7
7
|
type TBody = ReturnType<typeof TBody>;
|
|
8
8
|
export default TBody;
|
|
@@ -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 THead: import(
|
|
6
|
+
declare const THead: import('svelte').Component<Props, {}, ''>;
|
|
7
7
|
type THead = ReturnType<typeof THead>;
|
|
8
8
|
export default THead;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
dataTestId?: string;
|
|
4
|
+
children?: Snippet;
|
|
5
5
|
}
|
|
6
|
-
declare const Td: import(
|
|
6
|
+
declare const Td: import('svelte').Component<Props, {}, ''>;
|
|
7
7
|
type Td = ReturnType<typeof Td>;
|
|
8
8
|
export default Td;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Width } from '../../../tailwind';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
class?: Width | '';
|
|
5
|
+
children?: Snippet;
|
|
6
6
|
}
|
|
7
|
-
declare const Th: import(
|
|
7
|
+
declare const Th: import('svelte').Component<Props, {}, ''>;
|
|
8
8
|
type Th = ReturnType<typeof Th>;
|
|
9
9
|
export default Th;
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
<style>
|
|
17
17
|
:global(td) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
:global(td):first-child {
|
|
22
|
-
|
|
23
|
-
}
|
|
18
|
+
padding-top: 1rem;
|
|
19
|
+
padding-bottom: 1rem;
|
|
20
|
+
}
|
|
21
|
+
:global(td):first-child {
|
|
22
|
+
padding-left: 0.5rem;
|
|
23
|
+
}
|
|
24
24
|
:global(th) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
25
|
+
padding-top: 1rem;
|
|
26
|
+
padding-bottom: 1rem;
|
|
27
|
+
}
|
|
28
28
|
:global(th):first-child {
|
|
29
|
-
|
|
30
|
-
}
|
|
29
|
+
padding-left: 0.5rem;
|
|
30
|
+
}
|
|
31
31
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
children?: Snippet;
|
|
5
5
|
}
|
|
6
|
-
declare const Tr: import(
|
|
6
|
+
declare const Tr: import('svelte').Component<Props, {}, ''>;
|
|
7
7
|
type Tr = ReturnType<typeof Tr>;
|
|
8
8
|
export default Tr;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default Tabs;
|
|
2
|
-
type Tabs = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Tabs = 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 Tabs: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Tabs: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Tabs from './Tabs.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
|
}
|
|
@@ -3,12 +3,16 @@ import Content from './components/Content.svelte';
|
|
|
3
3
|
import Tab from './components/Tab.svelte';
|
|
4
4
|
import Tabs from './components/Tabs.svelte';
|
|
5
5
|
interface Props {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
children?: Snippet<
|
|
7
|
+
[
|
|
8
|
+
{
|
|
9
|
+
Tabs: typeof Tabs;
|
|
10
|
+
Tab: typeof Tab;
|
|
11
|
+
Content: typeof Content;
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
>;
|
|
11
15
|
}
|
|
12
|
-
declare const Tabs: import(
|
|
16
|
+
declare const Tabs: import('svelte').Component<Props, {}, ''>;
|
|
13
17
|
type Tabs = ReturnType<typeof Tabs>;
|
|
14
18
|
export default Tabs;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
class?: string;
|
|
4
|
+
show?: boolean;
|
|
5
|
+
children?: Snippet;
|
|
6
6
|
}
|
|
7
|
-
declare const Content: import(
|
|
7
|
+
declare const Content: import('svelte').Component<Props, {}, ''>;
|
|
8
8
|
type Content = ReturnType<typeof Content>;
|
|
9
9
|
export default Content;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
active?: boolean;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
class?: string;
|
|
6
|
+
children?: Snippet;
|
|
7
7
|
}
|
|
8
|
-
declare const Tab: import(
|
|
8
|
+
declare const Tab: import('svelte').Component<Props, {}, ''>;
|
|
9
9
|
type Tab = ReturnType<typeof Tab>;
|
|
10
10
|
export default Tab;
|
|
@@ -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 Tabs: import(
|
|
6
|
+
declare const Tabs: import('svelte').Component<Props, {}, ''>;
|
|
7
7
|
type Tabs = ReturnType<typeof Tabs>;
|
|
8
8
|
export default Tabs;
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import Tag from './Tag.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 Tag: $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
declare const Tag: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
+
Record<string, never>,
|
|
28
|
+
{
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
},
|
|
31
|
+
{},
|
|
32
|
+
{},
|
|
33
|
+
string
|
|
34
|
+
>;
|
|
18
35
|
type Tag = InstanceType<typeof Tag>;
|
|
19
36
|
export default Tag;
|
|
@@ -73,32 +73,30 @@
|
|
|
73
73
|
|
|
74
74
|
<style>
|
|
75
75
|
.outer {
|
|
76
|
+
display: flex;
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
align-items: center;
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
gap: 0.5rem;
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
overflow: hidden;
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
text-overflow: ellipsis;
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
white-space: nowrap;
|
|
86
87
|
|
|
87
|
-
|
|
88
|
+
border-radius: 0.25rem;
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
padding: 0.25rem
|
|
92
|
-
}
|
|
90
|
+
padding: 0.25rem;
|
|
91
|
+
}
|
|
93
92
|
|
|
94
93
|
svg {
|
|
94
|
+
height: 1rem;
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
width: 1rem;
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
--tw-text-opacity: 1;
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
103
|
-
}
|
|
100
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1));
|
|
101
|
+
}
|
|
104
102
|
</style>
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
declare const Tag: import(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
declare const Tag: import('svelte').Component<
|
|
3
|
+
{
|
|
4
|
+
children: Snippet;
|
|
5
|
+
variant?: 'default' | 'outline' | 'transparent';
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
onclick?: (event: MouseEvent) => void;
|
|
9
|
+
class?: string;
|
|
10
|
+
},
|
|
11
|
+
{},
|
|
12
|
+
''
|
|
13
|
+
>;
|
|
10
14
|
type Tag = ReturnType<typeof Tag>;
|
|
11
15
|
export default Tag;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default Toggle;
|
|
2
|
-
type Toggle = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Toggle = 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 Toggle: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Toggle: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Toggle from './Toggle.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
|
}
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
display: inline-block;
|
|
21
21
|
height: 1.25rem;
|
|
22
22
|
width: 2.25rem;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
/* Hide default HTML checkbox */
|
|
26
26
|
.switch input {
|
|
27
27
|
height: 0px;
|
|
28
28
|
width: 0px;
|
|
29
29
|
opacity: 0;
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
31
|
|
|
32
32
|
/* The slider */
|
|
33
33
|
.slider {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
right: 0;
|
|
39
39
|
bottom: 0;
|
|
40
40
|
transition: 0.1s;
|
|
41
|
-
background-color: #
|
|
41
|
+
background-color: #12192a26;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.slider:before {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
input:checked + .slider {
|
|
57
57
|
--tw-bg-opacity: 1;
|
|
58
58
|
background-color: rgb(87 80 238 / var(--tw-bg-opacity, 1));
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
60
|
|
|
61
61
|
input:checked + .slider:before {
|
|
62
62
|
transform: translateX(16px);
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
/* Rounded sliders */
|
|
66
66
|
.slider.round {
|
|
67
67
|
border-radius: var(--rounded-badge, 1.9rem);
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
|
|
70
70
|
.slider.round:before {
|
|
71
71
|
border-radius: 9999px;
|
|
72
|
-
}
|
|
72
|
+
}
|
|
73
73
|
</style>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare const Toggle: import(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare const Toggle: import('svelte').Component<
|
|
2
|
+
{
|
|
3
|
+
value?: boolean;
|
|
4
|
+
onclick?: (event?: MouseEvent) => void;
|
|
5
|
+
id: string;
|
|
6
|
+
},
|
|
7
|
+
{},
|
|
8
|
+
'value'
|
|
9
|
+
>;
|
|
6
10
|
type Toggle = ReturnType<typeof Toggle>;
|
|
7
11
|
export default Toggle;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default Tooltip;
|
|
2
|
-
type Tooltip = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Tooltip = 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 Tooltip: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Tooltip: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Tooltip from './Tooltip.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
|
}
|
|
@@ -36,14 +36,16 @@
|
|
|
36
36
|
<style>
|
|
37
37
|
/* Hack to get the arrow styling to work */
|
|
38
38
|
:global(.tooltip.with-arrow > :last-child) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
position: absolute;
|
|
41
|
+
display: block;
|
|
42
|
+
height: 0.5rem;
|
|
43
|
+
width: 0.5rem;
|
|
44
|
+
--tw-rotate: 45deg;
|
|
45
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate))
|
|
46
|
+
skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x))
|
|
47
|
+
scaleY(var(--tw-scale-y));
|
|
48
|
+
border-color: inherit;
|
|
49
|
+
background-color: inherit;
|
|
50
|
+
}
|
|
49
51
|
</style>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Tooltip } from 'flowbite-svelte';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
class?: string;
|
|
5
|
+
forceOpen?: boolean;
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
+
trigger?: Snippet;
|
|
9
|
+
content?: Snippet;
|
|
10
10
|
}
|
|
11
|
-
declare const Tooltip: import(
|
|
11
|
+
declare const Tooltip: import('svelte').Component<Props, {}, ''>;
|
|
12
12
|
type Tooltip = ReturnType<typeof Tooltip>;
|
|
13
13
|
export default Tooltip;
|
package/dist/fonts/index.d.ts
CHANGED
package/dist/fonts/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import MDSystemRegular from './MDSystem-Regular.woff2';
|
|
|
3
3
|
import MDSystemMedium from './MDSystem-Medium.woff2';
|
|
4
4
|
import MDSystemSemibold from './MDSystem-Semibold.woff2';
|
|
5
5
|
export const fonts = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
MDSystemMonoRegular,
|
|
7
|
+
MDSystemRegular,
|
|
8
|
+
MDSystemMedium,
|
|
9
|
+
MDSystemSemibold
|
|
10
10
|
};
|