@reshape-biotech/design-system 0.0.25 → 0.0.26
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/banner/Banner.svelte +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/icon-button/IconButton.svelte +1 -1
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/image/Image.svelte +1 -1
- package/dist/components/image/index.d.ts +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/notification-popup/NotificationPopup.svelte +1 -1
- package/dist/components/pill/index.d.ts +1 -1
- package/dist/components/pill/index.js +1 -1
- package/dist/components/progress-circle/index.d.ts +1 -1
- package/dist/components/progress-circle/index.js +1 -1
- package/dist/components/segmented-control-buttons/index.d.ts +0 -1
- package/dist/components/segmented-control-buttons/index.js +0 -1
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/select/Select.svelte.d.ts +4 -4
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte +3 -29
- package/dist/components/skeleton-loader/index.d.ts +1 -1
- package/dist/components/skeleton-loader/index.js +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat-card/index.d.ts +1 -1
- package/dist/components/stat-card/index.js +1 -1
- package/dist/components/status-badge/StatusBadge.stories.svelte +4 -4
- package/dist/components/tabs/components/Tab.svelte +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/Tag.stories.svelte +1 -0
- package/dist/components/tag/Tag.svelte +1 -1
- package/dist/components/tooltip/Tooltip.stories.svelte +1 -0
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/package.json +4 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { X } from 'phosphor-svelte';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
|
-
import IconButton from '../icon-button/';
|
|
4
|
+
import { IconButton } from '../icon-button/';
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
type?: 'neutral' | 'success' | 'progress' | 'warning' | 'error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Button.svelte';
|
|
1
|
+
export { default as Button } from './Button.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Button.svelte';
|
|
1
|
+
export { default as Button } from './Button.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './IconButton.svelte';
|
|
1
|
+
export { default as IconButton } from './IconButton.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './IconButton.svelte';
|
|
1
|
+
export { default as IconButton } from './IconButton.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Image.svelte';
|
|
1
|
+
export { default as Image } from './Image.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Image.svelte';
|
|
1
|
+
export { default as Image } from './Image.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Pill.svelte';
|
|
1
|
+
export { default as Pill } from './Pill.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Pill.svelte';
|
|
1
|
+
export { default as Pill } from './Pill.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ProgressCircle.svelte';
|
|
1
|
+
export { default as ProgressCircle } from './ProgressCircle.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ProgressCircle.svelte';
|
|
1
|
+
export { default as ProgressCircle } from './ProgressCircle.svelte';
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
let className = '';
|
|
8
8
|
export { className as class };
|
|
9
9
|
import SvelteSelect from 'svelte-select';
|
|
10
|
-
import type {
|
|
10
|
+
import type { SelectItemProps } from '.';
|
|
11
11
|
|
|
12
12
|
// Docs: https://github.com/rob-balfre/svelte-select
|
|
13
13
|
|
|
14
14
|
const dispatch = createEventDispatcher();
|
|
15
15
|
|
|
16
|
-
export let items:
|
|
16
|
+
export let items: SelectItemProps[] = [];
|
|
17
17
|
export let id: string | undefined = undefined;
|
|
18
|
-
export let value:
|
|
18
|
+
export let value: SelectItemProps | SelectItemProps[] | null = null;
|
|
19
19
|
export let searchable = false;
|
|
20
20
|
export let listOpen = false;
|
|
21
21
|
export let placeholder: string | undefined = undefined;
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
export let multiple = false;
|
|
26
26
|
export let clearable = true;
|
|
27
27
|
export let required = false;
|
|
28
|
-
export let onChange: (value:
|
|
28
|
+
export let onChange: (value: SelectItemProps | SelectItemProps[]) => void = () => {};
|
|
29
29
|
|
|
30
|
-
const groupBy = withGroup ? (item:
|
|
30
|
+
const groupBy = withGroup ? (item: SelectItemProps) => item.group : undefined;
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<SvelteSelect
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectItemProps } from '.';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -19,9 +19,9 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
|
19
19
|
} : {});
|
|
20
20
|
declare const Select: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
21
21
|
class?: string;
|
|
22
|
-
items?:
|
|
22
|
+
items?: SelectItemProps[];
|
|
23
23
|
id?: string | undefined;
|
|
24
|
-
value?:
|
|
24
|
+
value?: SelectItemProps | SelectItemProps[] | null;
|
|
25
25
|
searchable?: boolean;
|
|
26
26
|
listOpen?: boolean;
|
|
27
27
|
placeholder?: string | undefined;
|
|
@@ -31,7 +31,7 @@ declare const Select: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWit
|
|
|
31
31
|
multiple?: boolean;
|
|
32
32
|
clearable?: boolean;
|
|
33
33
|
required?: boolean;
|
|
34
|
-
onChange?: (value:
|
|
34
|
+
onChange?: (value: SelectItemProps | SelectItemProps[]) => void;
|
|
35
35
|
}, {
|
|
36
36
|
'custom-selection': {
|
|
37
37
|
selection: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Select.svelte';
|
|
1
|
+
export { default as Select } from './Select.svelte';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script module>
|
|
2
|
-
import SkeletonLoader from './
|
|
3
|
-
import
|
|
2
|
+
import SkeletonLoader from './SkeletonLoader.svelte';
|
|
3
|
+
import StatcardSkeleton from './StatcardSkeleton.svelte';
|
|
4
|
+
|
|
4
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
6
|
|
|
6
7
|
const { Story } = defineMeta({
|
|
@@ -35,22 +36,6 @@
|
|
|
35
36
|
</SkeletonLoader>
|
|
36
37
|
</Story>
|
|
37
38
|
|
|
38
|
-
<Story name="HorizontalCardWithIcon">
|
|
39
|
-
<div class="flex w-[900px] flex-col gap-4">
|
|
40
|
-
<HorizontalCardSkeleton />
|
|
41
|
-
<HorizontalCardSkeleton />
|
|
42
|
-
<HorizontalCardSkeleton />
|
|
43
|
-
<HorizontalCardSkeleton />
|
|
44
|
-
</div>
|
|
45
|
-
</Story>
|
|
46
|
-
<Story name="HorizontalCardWithoutIcon">
|
|
47
|
-
<div class="flex w-[900px] flex-col gap-4">
|
|
48
|
-
<HorizontalCardSkeleton withImage={false} />
|
|
49
|
-
<HorizontalCardSkeleton withImage={false} />
|
|
50
|
-
<HorizontalCardSkeleton withImage={false} />
|
|
51
|
-
<HorizontalCardSkeleton withImage={false} />
|
|
52
|
-
</div>
|
|
53
|
-
</Story>
|
|
54
39
|
<Story name="StatCard">
|
|
55
40
|
<div class="flex w-[900px] gap-4">
|
|
56
41
|
<StatcardSkeleton />
|
|
@@ -58,14 +43,3 @@
|
|
|
58
43
|
<StatcardSkeleton />
|
|
59
44
|
</div>
|
|
60
45
|
</Story>
|
|
61
|
-
|
|
62
|
-
<Story name="ProjectCard">
|
|
63
|
-
<div class="grid grid-cols-2 justify-start gap-2">
|
|
64
|
-
<ProjectCardSkeleton />
|
|
65
|
-
<ProjectCardSkeleton />
|
|
66
|
-
<ProjectCardSkeleton />
|
|
67
|
-
<ProjectCardSkeleton />
|
|
68
|
-
<ProjectCardSkeleton />
|
|
69
|
-
<ProjectCardSkeleton />
|
|
70
|
-
</div>
|
|
71
|
-
</Story>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from './SkeletonLoader.svelte';
|
|
1
|
+
export { default as SkeletonLoader } from './SkeletonLoader.svelte';
|
|
2
2
|
export { default as StatcardSkeleton } from './StatcardSkeleton.svelte';
|
|
3
3
|
export { default as SkeletonImage } from './components/SkeletonImage.svelte';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from './SkeletonLoader.svelte';
|
|
1
|
+
export { default as SkeletonLoader } from './SkeletonLoader.svelte';
|
|
2
2
|
export { default as StatcardSkeleton } from './StatcardSkeleton.svelte';
|
|
3
3
|
export { default as SkeletonImage } from './components/SkeletonImage.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Slider.svelte';
|
|
1
|
+
export { default as Slider } from './Slider.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Slider.svelte';
|
|
1
|
+
export { default as Slider } from './Slider.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Spinner.svelte';
|
|
1
|
+
export { default as Spinner } from './Spinner.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Spinner.svelte';
|
|
1
|
+
export { default as Spinner } from './Spinner.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './StatCard.svelte';
|
|
1
|
+
export { default as StatCard } from './StatCard.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './StatCard.svelte';
|
|
1
|
+
export { default as StatCard } from './StatCard.svelte';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import StatusBadge from '
|
|
3
|
-
import Tooltip from '
|
|
4
|
-
import ProgressCircle from '
|
|
2
|
+
import StatusBadge from '../status-badge/StatusBadge.svelte';
|
|
3
|
+
import Tooltip from '../tooltip/Tooltip.svelte';
|
|
4
|
+
import ProgressCircle from '../progress-circle/ProgressCircle.svelte';
|
|
5
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
SpinnerGap,
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
WarningCircle
|
|
13
14
|
} from 'phosphor-svelte';
|
|
14
15
|
|
|
15
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
16
16
|
const { Story } = defineMeta({
|
|
17
17
|
component: StatusBadge,
|
|
18
18
|
title: 'Design System/StatusBadge',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tabs.svelte';
|
|
1
|
+
export { default as Tabs } from './Tabs.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tabs.svelte';
|
|
1
|
+
export { default as Tabs } from './Tabs.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tooltip.svelte';
|
|
1
|
+
export { default as Tooltip } from './Tooltip.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tooltip.svelte';
|
|
1
|
+
export { default as Tooltip } from './Tooltip.svelte';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reshape-biotech/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@eslint/compat": "^1.2.3",
|
|
40
|
-
"@storybook/addon-svelte-csf": "^
|
|
40
|
+
"@storybook/addon-svelte-csf": "^5.0.0-next.11",
|
|
41
41
|
"@storybook/svelte": "^8.4.7",
|
|
42
42
|
"@sveltejs/adapter-vercel": "^5.5.0",
|
|
43
43
|
"@sveltejs/kit": "^2.9.0",
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"eslint-config-prettier": "^9.1.0",
|
|
54
54
|
"eslint-plugin-svelte": "^2.36.0",
|
|
55
55
|
"globals": "^15.0.0",
|
|
56
|
+
"luxon": "^3.5.0",
|
|
57
|
+
"phosphor-svelte": "^3.0.1",
|
|
56
58
|
"postcss": "^8.4.49",
|
|
57
59
|
"prettier": "^3.3.2",
|
|
58
60
|
"prettier-plugin-svelte": "^3.2.6",
|