@reshape-biotech/design-system 1.2.1 → 1.2.3
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/graphs/chart/Chart.svelte +1 -1
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +36 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +1 -0
- package/dist/components/notifications/Notifications.stories.svelte +1 -1
- package/dist/components/notifications/Notifications.svelte +0 -18
- package/dist/components/select-new/index.d.ts +1 -1
- package/dist/components/tag/Tag.stories.svelte +1 -0
- package/dist/components/tag/Tag.svelte +1 -0
- package/package.json +1 -1
|
@@ -51,6 +51,28 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function handleMouseOut() {}
|
|
54
|
+
|
|
55
|
+
const generateHugeDataset = () => {
|
|
56
|
+
const hugeData = [];
|
|
57
|
+
for (let i = 1; i <= 96; i++) {
|
|
58
|
+
const series = [];
|
|
59
|
+
const baseValue = i * 10;
|
|
60
|
+
const increment = i * 0.1;
|
|
61
|
+
|
|
62
|
+
for (let j = 0; j < 200; j++) {
|
|
63
|
+
const value = baseValue + j * increment;
|
|
64
|
+
series.push(Number(value.toFixed(2)));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
hugeData.push({
|
|
68
|
+
key: `Series ${i}`,
|
|
69
|
+
series
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return hugeData;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const hugeDataset = generateHugeDataset();
|
|
54
76
|
</script>
|
|
55
77
|
|
|
56
78
|
<Story name="Base" asChild>
|
|
@@ -162,3 +184,17 @@
|
|
|
162
184
|
<MultiLineChart {xAxisName} {yAxisName} {data} timeIndex={15} withFocus />
|
|
163
185
|
</div>
|
|
164
186
|
</Story>
|
|
187
|
+
|
|
188
|
+
<Story name="Huge Dataset" asChild>
|
|
189
|
+
<div class="h-[400px] w-full">
|
|
190
|
+
<MultiLineChart
|
|
191
|
+
{xAxisName}
|
|
192
|
+
{yAxisName}
|
|
193
|
+
data={hugeDataset}
|
|
194
|
+
withFocus={true}
|
|
195
|
+
onitemclick={handleItemClick}
|
|
196
|
+
onmouseover={handleMouseOver}
|
|
197
|
+
onmouseout={handleMouseOut}
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</Story>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { notifications } from '
|
|
2
|
+
import { notifications } from '../../notifications';
|
|
3
3
|
import Button from '../button/Button.svelte';
|
|
4
4
|
import Notifications from '../notifications/Notifications.svelte';
|
|
5
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
@@ -2,25 +2,7 @@
|
|
|
2
2
|
import { flip } from 'svelte/animate';
|
|
3
3
|
import { fly } from 'svelte/transition';
|
|
4
4
|
import { notifications } from '../../notifications';
|
|
5
|
-
import { type IconColor } from '../icons';
|
|
6
|
-
import { tokens } from '../../tokens';
|
|
7
5
|
import Toast from '../toast/Toast.svelte';
|
|
8
|
-
|
|
9
|
-
const color = {
|
|
10
|
-
danger: tokens.backgroundColor['danger-inverse'],
|
|
11
|
-
success: tokens.backgroundColor['success-inverse-hover'],
|
|
12
|
-
warning: tokens.backgroundColor['warning-inverse-hover'],
|
|
13
|
-
info: tokens.backgroundColor['blue-inverse'],
|
|
14
|
-
default: tokens.backgroundColor.surface
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const textColor: Record<string, IconColor | 'inherit'> = {
|
|
18
|
-
danger: 'primary-inverse',
|
|
19
|
-
success: 'primary-inverse',
|
|
20
|
-
warning: 'primary-inverse',
|
|
21
|
-
info: 'primary-inverse',
|
|
22
|
-
default: 'inherit'
|
|
23
|
-
};
|
|
24
6
|
</script>
|
|
25
7
|
|
|
26
8
|
<div class="fixed left-0 right-0 top-2 z-50 mx-auto flex w-fit flex-col items-center justify-start">
|
|
@@ -4,7 +4,7 @@ import GroupHeading from './components/SelectGroupHeading.svelte';
|
|
|
4
4
|
import Trigger from './components/SelectTrigger.svelte';
|
|
5
5
|
import MultiSelectTrigger from './components/MultiSelectTrigger.svelte';
|
|
6
6
|
import Group from './components/Group.svelte';
|
|
7
|
-
export declare const Root: import("svelte").Component<import("bits-ui").
|
|
7
|
+
export declare const Root: import("svelte").Component<import("bits-ui").ComboboxRootPropsWithoutHTML, {}, "open" | "value">;
|
|
8
8
|
export declare const Portal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
|
|
9
9
|
export { Content, Item, Group, GroupHeading, Trigger, MultiSelectTrigger };
|
|
10
10
|
export * from './types';
|