@reshape-biotech/design-system 0.0.43 → 0.0.44
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 +81 -81
- 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.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.d.ts +15 -32
- 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 +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 +11 -11
- 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,48 +1,27 @@
|
|
|
1
1
|
export default Slider;
|
|
2
|
-
type Slider = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Slider = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Slider: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Slider from './Slider.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
|
}
|
|
@@ -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,16 +87,14 @@
|
|
|
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
|
-
|
|
92
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
93
|
-
var(--tw-shadow);
|
|
90
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
91
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
input[type='range'] {
|
|
97
95
|
-webkit-appearance: none;
|
|
98
96
|
-moz-appearance: none;
|
|
99
|
-
|
|
97
|
+
appearance: none;
|
|
100
98
|
position: relative;
|
|
101
99
|
cursor: pointer;
|
|
102
100
|
height: 2.5rem;
|
|
@@ -105,15 +103,15 @@
|
|
|
105
103
|
}
|
|
106
104
|
|
|
107
105
|
input[type='range']::-webkit-slider-thumb {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
-webkit-appearance: none;
|
|
107
|
+
appearance: none;
|
|
108
|
+
width: 0;
|
|
109
|
+
height: 0;
|
|
110
|
+
}
|
|
113
111
|
|
|
114
112
|
input[type='range']::-moz-range-thumb {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
width: 0;
|
|
114
|
+
height: 0;
|
|
115
|
+
border: none;
|
|
116
|
+
}
|
|
119
117
|
</style>
|
|
@@ -1,46 +1,29 @@
|
|
|
1
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
24
13
|
}
|
|
25
|
-
declare const Slider: $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
[evt: string]: CustomEvent<any>;
|
|
40
|
-
},
|
|
41
|
-
{},
|
|
42
|
-
{},
|
|
43
|
-
string
|
|
44
|
-
>;
|
|
14
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
class?: string;
|
|
16
|
+
value?: number;
|
|
17
|
+
max: number;
|
|
18
|
+
buffer?: number;
|
|
19
|
+
bufferMin?: number;
|
|
20
|
+
bufferColorClass?: string;
|
|
21
|
+
showSteps?: boolean;
|
|
22
|
+
onMousedown?: () => void;
|
|
23
|
+
onMouseup?: () => void;
|
|
24
|
+
id?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
}, {}, {}, string>;
|
|
45
28
|
type Slider = InstanceType<typeof Slider>;
|
|
46
29
|
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,48 +1,27 @@
|
|
|
1
1
|
export default StatCard;
|
|
2
|
-
type StatCard = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type StatCard = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const StatCard: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const StatCard: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import StatCard from './StatCard.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,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,36 +1,19 @@
|
|
|
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
|
-
|
|
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 StatusBadge: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const StatusBadge: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type StatusBadge = InstanceType<typeof StatusBadge>;
|
|
36
19
|
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,41 +1,24 @@
|
|
|
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
|
-
|
|
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;
|
|
7
|
+
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> {
|
|
8
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
9
|
+
$$bindings?: Bindings;
|
|
10
|
+
} & Exports;
|
|
11
|
+
(internal: unknown, props: {
|
|
12
|
+
$$events?: Events;
|
|
13
|
+
$$slots?: Slots;
|
|
14
|
+
}): Exports & {
|
|
15
|
+
$set?: any;
|
|
16
|
+
$on?: any;
|
|
17
|
+
};
|
|
18
|
+
z_$$bindings?: Bindings;
|
|
30
19
|
}
|
|
31
|
-
declare const Table: $$__sveltets_2_IsomorphicComponent<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[evt: string]: CustomEvent<any>;
|
|
35
|
-
},
|
|
36
|
-
{},
|
|
37
|
-
{},
|
|
38
|
-
string
|
|
39
|
-
>;
|
|
20
|
+
declare const Table: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
}, {}, {}, string>;
|
|
40
23
|
type Table = InstanceType<typeof Table>;
|
|
41
24
|
export default Table;
|
|
@@ -5,19 +5,17 @@ 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
|
-
|
|
18
|
-
]
|
|
19
|
-
>;
|
|
8
|
+
tableLayout?: 'fixed' | 'auto';
|
|
9
|
+
children?: Snippet<[
|
|
10
|
+
{
|
|
11
|
+
THead: typeof THead;
|
|
12
|
+
TBody: typeof TBody;
|
|
13
|
+
Tr: typeof Tr;
|
|
14
|
+
Th: typeof Th;
|
|
15
|
+
Td: typeof Td;
|
|
16
|
+
}
|
|
17
|
+
]>;
|
|
20
18
|
}
|
|
21
|
-
declare const Table: import(
|
|
19
|
+
declare const Table: import("svelte").Component<Props, {}, "">;
|
|
22
20
|
type Table = ReturnType<typeof Table>;
|
|
23
21
|
export default Table;
|