@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,27 +1,48 @@
|
|
|
1
1
|
export default Slider;
|
|
2
|
-
type Slider = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Slider = 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 Slider: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Slider from './Slider.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
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
margin-right: 1rem;
|
|
71
71
|
height: 0.5rem;
|
|
72
72
|
border-radius: 9999px;
|
|
73
|
-
background-color: #
|
|
73
|
+
background-color: #12192a26;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.thumb-overlay {
|
|
@@ -87,14 +87,16 @@
|
|
|
87
87
|
--tw-bg-opacity: 1;
|
|
88
88
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
89
89
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
90
|
-
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),
|
|
91
|
-
|
|
90
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),
|
|
91
|
+
0 4px 6px -4px var(--tw-shadow-color);
|
|
92
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
93
|
+
var(--tw-shadow);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
input[type='range'] {
|
|
95
97
|
-webkit-appearance: none;
|
|
96
98
|
-moz-appearance: none;
|
|
97
|
-
|
|
99
|
+
appearance: none;
|
|
98
100
|
position: relative;
|
|
99
101
|
cursor: pointer;
|
|
100
102
|
height: 2.5rem;
|
|
@@ -103,15 +105,15 @@
|
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
input[type='range']::-webkit-slider-thumb {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
-webkit-appearance: none;
|
|
109
|
+
appearance: none;
|
|
110
|
+
width: 0;
|
|
111
|
+
height: 0;
|
|
112
|
+
}
|
|
111
113
|
|
|
112
114
|
input[type='range']::-moz-range-thumb {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
width: 0;
|
|
116
|
+
height: 0;
|
|
117
|
+
border: none;
|
|
118
|
+
}
|
|
117
119
|
</style>
|
|
@@ -1,29 +1,46 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
2
|
+
Props extends Record<string, any> = any,
|
|
3
|
+
Events extends Record<string, any> = any,
|
|
4
|
+
Slots extends Record<string, any> = any,
|
|
5
|
+
Exports = {},
|
|
6
|
+
Bindings = string
|
|
7
|
+
> {
|
|
8
|
+
new (
|
|
9
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
10
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
11
|
+
$$bindings?: Bindings;
|
|
12
|
+
} & Exports;
|
|
13
|
+
(
|
|
14
|
+
internal: unknown,
|
|
15
|
+
props: Props & {
|
|
16
|
+
$$events?: Events;
|
|
17
|
+
$$slots?: Slots;
|
|
18
|
+
}
|
|
19
|
+
): Exports & {
|
|
20
|
+
$set?: any;
|
|
21
|
+
$on?: any;
|
|
22
|
+
};
|
|
23
|
+
z_$$bindings?: Bindings;
|
|
13
24
|
}
|
|
14
|
-
declare const Slider: $$__sveltets_2_IsomorphicComponent<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
{
|
|
27
|
+
class?: string;
|
|
28
|
+
value?: number;
|
|
29
|
+
max: number;
|
|
30
|
+
buffer?: number;
|
|
31
|
+
bufferMin?: number;
|
|
32
|
+
bufferColorClass?: string;
|
|
33
|
+
showSteps?: boolean;
|
|
34
|
+
onMousedown?: () => void;
|
|
35
|
+
onMouseup?: () => void;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
[evt: string]: CustomEvent<any>;
|
|
40
|
+
},
|
|
41
|
+
{},
|
|
42
|
+
{},
|
|
43
|
+
string
|
|
44
|
+
>;
|
|
28
45
|
type Slider = InstanceType<typeof Slider>;
|
|
29
46
|
export default Slider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
2
|
+
testID?: string;
|
|
3
3
|
}
|
|
4
|
-
declare const Spinner: import(
|
|
4
|
+
declare const Spinner: import('svelte').Component<Props, {}, ''>;
|
|
5
5
|
type Spinner = ReturnType<typeof Spinner>;
|
|
6
6
|
export default Spinner;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default StatCard;
|
|
2
|
-
type StatCard = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type StatCard = 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 StatCard: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const StatCard: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import StatCard from './StatCard.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
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
title: string;
|
|
3
|
+
value?: string | number | null;
|
|
4
|
+
unit?: string | null;
|
|
5
|
+
titleTooltip?: string;
|
|
6
|
+
showTitleTooltip?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const StatCard: import(
|
|
8
|
+
declare const StatCard: import('svelte').Component<Props, {}, ''>;
|
|
9
9
|
type StatCard = ReturnType<typeof StatCard>;
|
|
10
10
|
export default StatCard;
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import StatusBadge from '../status-badge/StatusBadge.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 StatusBadge: $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
declare const StatusBadge: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
+
Record<string, never>,
|
|
28
|
+
{
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
},
|
|
31
|
+
{},
|
|
32
|
+
{},
|
|
33
|
+
string
|
|
34
|
+
>;
|
|
18
35
|
type StatusBadge = InstanceType<typeof StatusBadge>;
|
|
19
36
|
export default StatusBadge;
|
|
@@ -39,109 +39,109 @@
|
|
|
39
39
|
|
|
40
40
|
<style>
|
|
41
41
|
.badge {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
42
|
+
gap: 0.5rem;
|
|
43
|
+
border-style: none;
|
|
44
|
+
--tw-text-opacity: 1;
|
|
45
|
+
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
46
|
+
}
|
|
47
47
|
.badge-md {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
48
|
+
height: 2rem;
|
|
49
|
+
padding-top: 0.5rem;
|
|
50
|
+
padding-bottom: 0.5rem;
|
|
51
|
+
padding-left: 0.5rem;
|
|
52
|
+
padding-right: 0.75rem;
|
|
53
|
+
}
|
|
54
54
|
.badge-md .icon {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
55
|
+
width: 1.25rem;
|
|
56
|
+
height: 1.25rem;
|
|
57
|
+
}
|
|
58
58
|
|
|
59
59
|
.badge-sm {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
60
|
+
height: 1.5rem;
|
|
61
|
+
gap: 0.25rem;
|
|
62
|
+
padding-left: 0.25rem;
|
|
63
|
+
padding-right: 0.5rem;
|
|
64
|
+
}
|
|
65
65
|
|
|
66
66
|
.badge-sm .icon {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
67
|
+
width: 1rem;
|
|
68
|
+
height: 1rem;
|
|
69
|
+
}
|
|
70
70
|
.badge-icon-only {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
71
|
+
width: 2rem;
|
|
72
|
+
height: 2rem;
|
|
73
|
+
gap: 0px;
|
|
74
|
+
padding: 0px;
|
|
75
|
+
}
|
|
76
76
|
|
|
77
77
|
.badge-sm.badge-icon-only {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
78
|
+
width: 1.5rem;
|
|
79
|
+
height: 1.5rem;
|
|
80
|
+
padding: 0px;
|
|
81
|
+
}
|
|
82
82
|
|
|
83
83
|
.badge-neutral {
|
|
84
|
-
|
|
85
|
-
}
|
|
84
|
+
background-color: #12192a0d;
|
|
85
|
+
}
|
|
86
86
|
|
|
87
87
|
.badge-neutral:hover {
|
|
88
|
-
|
|
89
|
-
}
|
|
88
|
+
background-color: #12192a1a;
|
|
89
|
+
}
|
|
90
90
|
|
|
91
91
|
.badge-neutral .icon {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
92
|
+
--tw-text-opacity: 1;
|
|
93
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1));
|
|
94
|
+
}
|
|
95
95
|
|
|
96
96
|
.badge-success {
|
|
97
|
-
|
|
98
|
-
}
|
|
97
|
+
background-color: #0aad6e1a;
|
|
98
|
+
}
|
|
99
99
|
|
|
100
100
|
.badge-success:hover {
|
|
101
|
-
|
|
102
|
-
}
|
|
101
|
+
background-color: #0aad6e40;
|
|
102
|
+
}
|
|
103
103
|
|
|
104
104
|
.badge-success .icon {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
105
|
+
--tw-text-opacity: 1;
|
|
106
|
+
color: rgb(10 173 110 / var(--tw-text-opacity, 1));
|
|
107
|
+
}
|
|
108
108
|
.badge-progress {
|
|
109
|
-
|
|
110
|
-
}
|
|
109
|
+
background-color: #5750ee1a;
|
|
110
|
+
}
|
|
111
111
|
.badge-progress:hover {
|
|
112
|
-
|
|
113
|
-
}
|
|
112
|
+
background-color: #5750ee40;
|
|
113
|
+
}
|
|
114
114
|
.badge-progress .icon {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
115
|
+
--tw-text-opacity: 1;
|
|
116
|
+
color: rgb(71 65 193 / var(--tw-text-opacity, 1));
|
|
117
|
+
}
|
|
118
118
|
.badge-warning {
|
|
119
|
-
|
|
120
|
-
}
|
|
119
|
+
background-color: #f1b1231a;
|
|
120
|
+
}
|
|
121
121
|
.badge-warning:hover {
|
|
122
|
-
|
|
123
|
-
}
|
|
122
|
+
background-color: #f1b12340;
|
|
123
|
+
}
|
|
124
124
|
.badge-warning .icon {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
125
|
+
--tw-text-opacity: 1;
|
|
126
|
+
color: rgb(241 177 35 / var(--tw-text-opacity, 1));
|
|
127
|
+
}
|
|
128
128
|
.badge-error {
|
|
129
|
-
|
|
130
|
-
}
|
|
129
|
+
background-color: #eb46471a;
|
|
130
|
+
}
|
|
131
131
|
.badge-error:hover {
|
|
132
|
-
|
|
133
|
-
}
|
|
132
|
+
background-color: #eb464740;
|
|
133
|
+
}
|
|
134
134
|
.badge-error .icon {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
135
|
+
--tw-text-opacity: 1;
|
|
136
|
+
color: rgb(235 70 71 / var(--tw-text-opacity, 1));
|
|
137
|
+
}
|
|
138
138
|
|
|
139
139
|
:global(.badge > div) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
140
|
+
display: flex;
|
|
141
|
+
height: 100%;
|
|
142
|
+
flex-direction: row;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
147
|
</style>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
type?: 'neutral' | 'success' | 'progress' | 'warning' | 'error';
|
|
4
|
+
size?: 'md' | 'sm';
|
|
5
|
+
content?: Snippet;
|
|
6
|
+
progress?: Snippet;
|
|
7
|
+
icon?: Snippet;
|
|
8
|
+
iconOnly?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const StatusBadge: import(
|
|
10
|
+
declare const StatusBadge: import('svelte').Component<Props, {}, ''>;
|
|
11
11
|
type StatusBadge = ReturnType<typeof StatusBadge>;
|
|
12
12
|
export default StatusBadge;
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
import Table from './Table.svelte';
|
|
2
2
|
export declare const users: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
name: string;
|
|
4
|
+
age: number;
|
|
5
|
+
role: string;
|
|
6
6
|
}[];
|
|
7
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
8
|
+
Props extends Record<string, any> = any,
|
|
9
|
+
Events extends Record<string, any> = any,
|
|
10
|
+
Slots extends Record<string, any> = any,
|
|
11
|
+
Exports = {},
|
|
12
|
+
Bindings = string
|
|
13
|
+
> {
|
|
14
|
+
new (
|
|
15
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
16
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(
|
|
20
|
+
internal: unknown,
|
|
21
|
+
props: {
|
|
22
|
+
$$events?: Events;
|
|
23
|
+
$$slots?: Slots;
|
|
24
|
+
}
|
|
25
|
+
): Exports & {
|
|
26
|
+
$set?: any;
|
|
27
|
+
$on?: any;
|
|
28
|
+
};
|
|
29
|
+
z_$$bindings?: Bindings;
|
|
19
30
|
}
|
|
20
|
-
declare const Table: $$__sveltets_2_IsomorphicComponent<
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
declare const Table: $$__sveltets_2_IsomorphicComponent<
|
|
32
|
+
Record<string, never>,
|
|
33
|
+
{
|
|
34
|
+
[evt: string]: CustomEvent<any>;
|
|
35
|
+
},
|
|
36
|
+
{},
|
|
37
|
+
{},
|
|
38
|
+
string
|
|
39
|
+
>;
|
|
23
40
|
type Table = InstanceType<typeof Table>;
|
|
24
41
|
export default Table;
|
|
@@ -5,17 +5,19 @@ import Tr from './components/Tr.svelte';
|
|
|
5
5
|
import THead from './components/THead.svelte';
|
|
6
6
|
import TBody from './components/TBody.svelte';
|
|
7
7
|
interface Props {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
tableLayout?: 'fixed' | 'auto';
|
|
9
|
+
children?: Snippet<
|
|
10
|
+
[
|
|
11
|
+
{
|
|
12
|
+
THead: typeof THead;
|
|
13
|
+
TBody: typeof TBody;
|
|
14
|
+
Tr: typeof Tr;
|
|
15
|
+
Th: typeof Th;
|
|
16
|
+
Td: typeof Td;
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
>;
|
|
18
20
|
}
|
|
19
|
-
declare const Table: import(
|
|
21
|
+
declare const Table: import('svelte').Component<Props, {}, ''>;
|
|
20
22
|
type Table = ReturnType<typeof Table>;
|
|
21
23
|
export default Table;
|