@reshape-biotech/design-system 1.2.6 → 1.2.7
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/README.md +3 -1
- package/dist/app.css +97 -97
- package/dist/components/activity/Activity.stories.svelte +104 -104
- package/dist/components/activity/Activity.svelte +112 -112
- package/dist/components/avatar/Avatar.stories.svelte +23 -23
- package/dist/components/avatar/Avatar.svelte +54 -54
- package/dist/components/banner/Banner.stories.svelte +105 -105
- package/dist/components/banner/Banner.svelte +42 -42
- package/dist/components/button/Button.stories.svelte +61 -61
- package/dist/components/button/Button.svelte +95 -95
- package/dist/components/card/Card.stories.svelte +112 -112
- package/dist/components/card/Card.svelte +18 -18
- package/dist/components/checkbox/Checkbox.stories.svelte +8 -8
- package/dist/components/checkbox/Checkbox.svelte +17 -17
- package/dist/components/collapsible/Collapsible.stories.svelte +26 -26
- package/dist/components/collapsible/components/collapsible-content.svelte +20 -20
- package/dist/components/collapsible/components/collapsible-trigger.svelte +12 -12
- package/dist/components/combobox/Combobox.stories.svelte +412 -412
- package/dist/components/combobox/components/combobox-add.svelte +8 -8
- package/dist/components/combobox/components/combobox-content.svelte +39 -39
- package/dist/components/combobox/components/combobox-indicator.svelte +1 -1
- package/dist/components/datepicker/DatePicker.stories.svelte +196 -196
- package/dist/components/datepicker/DatePicker.svelte +173 -173
- package/dist/components/divider/Divider.stories.svelte +7 -7
- package/dist/components/divider/Divider.svelte +9 -9
- package/dist/components/drawer/Drawer.stories.svelte +51 -51
- package/dist/components/drawer/Drawer.svelte +33 -33
- package/dist/components/drawer/DrawerLabel.svelte +10 -10
- package/dist/components/dropdown/Dropdown.stories.svelte +210 -210
- package/dist/components/dropdown/Dropdown.svelte +57 -57
- package/dist/components/dropdown/components/DropdownContent.svelte +16 -16
- package/dist/components/dropdown/components/DropdownMenu.svelte +10 -10
- package/dist/components/dropdown/components/DropdownTrigger.svelte +37 -37
- package/dist/components/dropdown/components/OutlinedButton.svelte +9 -9
- package/dist/components/empty-content/EmptyContent.stories.svelte +38 -38
- package/dist/components/empty-content/EmptyContent.svelte +12 -12
- package/dist/components/graphs/bar-chart/BarChart.stories.svelte +91 -91
- package/dist/components/graphs/bar-chart/BarChart.svelte +147 -147
- package/dist/components/graphs/bar-chart/StackedBarChart.stories.svelte +57 -57
- package/dist/components/graphs/bar-chart/StackedBarChart.svelte +198 -199
- package/dist/components/graphs/chart/Chart.stories.svelte +96 -96
- package/dist/components/graphs/chart/Chart.svelte +207 -207
- package/dist/components/graphs/line/LineChart.stories.svelte +138 -138
- package/dist/components/graphs/line/LineChart.svelte +140 -142
- package/dist/components/graphs/matrix/Matrix.stories.svelte +117 -117
- package/dist/components/graphs/matrix/Matrix.svelte +141 -141
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +168 -168
- package/dist/components/graphs/multiline/MultiLineChart.svelte +236 -236
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte +84 -84
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +302 -302
- package/dist/components/graphs/utils/duration.d.ts +1 -0
- package/dist/components/graphs/utils/duration.js +33 -0
- package/dist/components/graphs/utils/tooltipFormatter.js +1 -1
- package/dist/components/icon-button/IconButton.stories.svelte +64 -64
- package/dist/components/icon-button/IconButton.svelte +88 -88
- package/dist/components/icons/AnalysisIcon.stories.svelte +18 -18
- package/dist/components/icons/AnalysisIcon.svelte +96 -96
- package/dist/components/icons/Icon.stories.svelte +111 -111
- package/dist/components/icons/Icon.svelte +17 -17
- package/dist/components/icons/PrincipalIcon.svelte +59 -59
- package/dist/components/icons/custom/Halo.svelte +31 -31
- package/dist/components/icons/custom/Well.svelte +27 -27
- package/dist/components/icons/index.js +1 -1
- package/dist/components/image/Image.svelte +42 -42
- package/dist/components/input/Input.stories.svelte +55 -55
- package/dist/components/input/Input.svelte +121 -121
- package/dist/components/label/Label.stories.svelte +18 -18
- package/dist/components/label/Label.svelte +11 -11
- package/dist/components/list/List.stories.svelte +84 -84
- package/dist/components/list/List.svelte +20 -20
- package/dist/components/logo/Logo.stories.svelte +15 -15
- package/dist/components/logo/Logo.svelte +30 -30
- package/dist/components/manual-cfu-counter/ManualCFUCounter.stories.svelte +102 -102
- package/dist/components/manual-cfu-counter/ManualCFUCounter.svelte +557 -557
- package/dist/components/manual-cfu-counter/test/ManualCFUCounterTestWrapper.svelte +11 -11
- package/dist/components/markdown/Markdown.stories.svelte +10 -10
- package/dist/components/markdown/Markdown.svelte +6 -6
- package/dist/components/modal/Modal.stories.svelte +29 -29
- package/dist/components/modal/Modal.svelte +71 -71
- package/dist/components/multi-cfu-counter/MultiCFUCounter.stories.svelte +201 -201
- package/dist/components/multi-cfu-counter/MultiCFUCounter.svelte +606 -606
- package/dist/components/multi-cfu-counter/test/MultiCFUCounterTestWrapper.svelte +17 -17
- package/dist/components/notification-popup/NotificationPopup.stories.svelte +18 -18
- package/dist/components/notification-popup/NotificationPopup.svelte +26 -26
- package/dist/components/notifications/Notifications.stories.svelte +101 -101
- package/dist/components/notifications/Notifications.svelte +9 -9
- package/dist/components/pill/Pill.stories.svelte +8 -8
- package/dist/components/pill/Pill.svelte +27 -27
- package/dist/components/progress-circle/ProgressCircle.stories.svelte +8 -8
- package/dist/components/progress-circle/ProgressCircle.svelte +54 -54
- package/dist/components/required-status-indicator/RequiredStatusIndicator.stories.svelte +18 -18
- package/dist/components/required-status-indicator/RequiredStatusIndicator.svelte +14 -14
- package/dist/components/segmented-control-buttons/ControlButton.svelte +36 -36
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +35 -35
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte +13 -13
- package/dist/components/select/Select.stories.svelte +77 -77
- package/dist/components/select/Select.svelte +114 -114
- package/dist/components/select-new/Select.stories.svelte +188 -188
- package/dist/components/select-new/components/Group.svelte +17 -17
- package/dist/components/select-new/components/MultiSelectTrigger.svelte +57 -57
- package/dist/components/select-new/components/SelectContent.svelte +22 -22
- package/dist/components/select-new/components/SelectGroupHeading.svelte +10 -10
- package/dist/components/select-new/components/SelectItem.svelte +25 -25
- package/dist/components/select-new/components/SelectTrigger.svelte +38 -38
- package/dist/components/sjsf-wrappers/SjsfNumberInputWrapper.svelte +76 -76
- package/dist/components/sjsf-wrappers/SjsfNumberInputWrapper.svelte.d.ts +1 -1
- package/dist/components/sjsf-wrappers/SjsfTextInputWrapper.svelte +53 -53
- package/dist/components/sjsf-wrappers/SjsfTextInputWrapper.svelte.d.ts +1 -1
- package/dist/components/sjsf-wrappers/sjsfCustomTheme.js +1 -1
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte +32 -32
- package/dist/components/skeleton-loader/SkeletonLoader.svelte +10 -10
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte +9 -9
- package/dist/components/skeleton-loader/components/Skeleton.svelte +7 -7
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte +12 -12
- package/dist/components/slider/Slider.stories.svelte +23 -23
- package/dist/components/slider/Slider.svelte +107 -107
- package/dist/components/spinner/Spinner.stories.svelte +8 -8
- package/dist/components/spinner/Spinner.svelte +18 -18
- package/dist/components/stat-card/StatCard.stories.svelte +26 -26
- package/dist/components/stat-card/StatCard.svelte +128 -128
- package/dist/components/status-badge/StatusBadge.stories.svelte +365 -365
- package/dist/components/status-badge/StatusBadge.svelte +54 -54
- package/dist/components/stepper/Stepper.stories.svelte +219 -219
- package/dist/components/stepper/components/stepper-root.svelte +12 -12
- package/dist/components/stepper/components/stepper-step.svelte +83 -83
- package/dist/components/table/Table.stories.svelte +87 -87
- package/dist/components/table/Table.svelte +32 -32
- package/dist/components/table/components/TBody.svelte +7 -7
- package/dist/components/table/components/THead.svelte +7 -7
- package/dist/components/table/components/Td.svelte +8 -8
- package/dist/components/table/components/Th.svelte +8 -8
- package/dist/components/table/components/Tr.svelte +11 -11
- package/dist/components/tabs/Tabs.stories.svelte +20 -20
- package/dist/components/tabs/Tabs.svelte +8 -8
- package/dist/components/tabs/components/Content.svelte +8 -8
- package/dist/components/tabs/components/Tab.svelte +14 -14
- package/dist/components/tabs/components/Tabs.svelte +7 -7
- package/dist/components/tag/Tag.stories.svelte +57 -57
- package/dist/components/tag/Tag.svelte +95 -95
- package/dist/components/textarea/Textarea.stories.svelte +70 -70
- package/dist/components/textarea/Textarea.svelte +76 -76
- package/dist/components/toast/Toast.stories.svelte +204 -204
- package/dist/components/toast/Toast.svelte +53 -53
- package/dist/components/toggle/Toggle.stories.svelte +9 -9
- package/dist/components/toggle/Toggle.svelte +53 -53
- package/dist/components/toggle-icon-button/ToggleIconButton.stories.svelte +152 -152
- package/dist/components/toggle-icon-button/ToggleIconButton.svelte +99 -99
- package/dist/components/tooltip/Tooltip.stories.svelte +105 -105
- package/dist/components/tooltip/Tooltip.svelte +26 -26
- package/dist/fonts/index.js +1 -1
- package/dist/notifications.d.ts +1 -4
- package/dist/notifications.js +1 -1
- package/dist/tailwind-safelist.js +406 -406
- package/dist/tailwind.preset.js +10 -10
- package/dist/tokens/colors.js +18 -18
- package/dist/tokens/typography.js +6 -6
- package/dist/tokens.js +19 -19
- package/dist/types/fonts.d.ts +2 -2
- package/package.json +199 -198
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { type Notification, notifications } from '../../notifications';
|
|
3
|
+
import Icon from '../icons/Icon.svelte';
|
|
4
|
+
import { type IconColor } from '../icons';
|
|
5
|
+
import { tokens } from '../../tokens';
|
|
6
|
+
import IconButton from '../icon-button/IconButton.svelte';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
let { notification }: { notification: Notification } = $props();
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const color = {
|
|
11
|
+
danger: tokens.backgroundColor['danger-inverse'],
|
|
12
|
+
success: tokens.backgroundColor['success-inverse-hover'],
|
|
13
|
+
warning: tokens.backgroundColor['warning-inverse-hover'],
|
|
14
|
+
info: tokens.backgroundColor['blue-inverse'],
|
|
15
|
+
default: tokens.backgroundColor.surface,
|
|
16
|
+
};
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const textColor: Record<string, IconColor | 'inherit'> = {
|
|
19
|
+
danger: 'primary-inverse',
|
|
20
|
+
success: 'primary-inverse',
|
|
21
|
+
warning: 'primary-inverse',
|
|
22
|
+
info: 'primary-inverse',
|
|
23
|
+
default: 'inherit',
|
|
24
|
+
};
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<div
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
class="my-1 flex min-h-10 min-w-80 flex-row items-center rounded-lg px-2 shadow-md"
|
|
29
|
+
style="background: {color[notification.type]}"
|
|
30
|
+
class:border={notification.type === 'default'}
|
|
31
|
+
class:border-base-200={notification.type === 'default'}
|
|
32
32
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
33
|
+
{#if notification.icon}
|
|
34
|
+
<Icon
|
|
35
|
+
color={textColor[notification.type]}
|
|
36
|
+
size={'14'}
|
|
37
|
+
iconName={notification.icon}
|
|
38
|
+
class="flex h-6 w-6 items-center justify-center rounded-md {notification.type !== 'default'
|
|
39
|
+
? 'bg-neutral-inverse-hover'
|
|
40
|
+
: 'bg-neutral'} p-1 {textColor[notification.type]}"
|
|
41
|
+
/>
|
|
42
|
+
{/if}
|
|
43
|
+
<div
|
|
44
|
+
class="p-2 font-medium"
|
|
45
|
+
style="display:block"
|
|
46
|
+
class:text-base-white-default={notification.type !== 'default'}
|
|
47
|
+
>
|
|
48
|
+
{notification.message}
|
|
49
|
+
</div>
|
|
50
|
+
{#if notification.dismissable}
|
|
51
|
+
<div class="grow"></div>
|
|
52
|
+
<div class="py-2">
|
|
53
|
+
<IconButton rounded={false} size="xs" onclick={() => notifications.dismiss(notification.id)}>
|
|
54
|
+
<Icon
|
|
55
|
+
color={textColor[notification.type]}
|
|
56
|
+
iconName={'X'}
|
|
57
|
+
class="rounded-md {textColor[notification.type]}"
|
|
58
|
+
/>
|
|
59
|
+
</IconButton>
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
62
|
</div>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script module>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import Toggle from './Toggle.svelte';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
title: 'Design System/Toggle',
|
|
8
|
+
component: Toggle,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
});
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<Story name="Base" asChild>
|
|
14
|
-
|
|
14
|
+
<Toggle id="toggle-1" />
|
|
15
15
|
</Story>
|
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
interface Props {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
onclick?: (event?: MouseEvent) => void;
|
|
5
|
+
id: string;
|
|
6
|
+
'data-testid'?: string;
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
let { value = $bindable(false), onclick, id, 'data-testid': testId }: Props = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<label class="switch">
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<input type="checkbox" bind:checked={value} {onclick} {id} data-testid={testId} />
|
|
14
|
+
<span class="slider round"></span>
|
|
15
15
|
</label>
|
|
16
16
|
|
|
17
17
|
<style>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
/* The switch - the box around the slider */
|
|
19
|
+
.switch {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
height: 1.25rem;
|
|
23
|
+
width: 2.25rem;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
/* Hide default HTML checkbox */
|
|
27
|
+
.switch input {
|
|
28
|
+
height: 0px;
|
|
29
|
+
width: 0px;
|
|
30
|
+
opacity: 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
/* The slider */
|
|
34
|
+
.slider {
|
|
35
|
+
position: absolute;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
transition: 0.1s;
|
|
42
|
+
background-color: #12192A26;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
.slider:before {
|
|
46
|
+
content: '';
|
|
47
|
+
left: 2px;
|
|
48
|
+
bottom: 2px;
|
|
49
|
+
transition: 0.1s;
|
|
50
|
+
position: absolute;
|
|
51
|
+
height: 1rem;
|
|
52
|
+
width: 1rem;
|
|
53
|
+
--tw-bg-opacity: 1;
|
|
54
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
55
|
+
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
input:checked + .slider {
|
|
58
|
+
--tw-bg-opacity: 1;
|
|
59
|
+
background-color: rgb(87 80 238 / var(--tw-bg-opacity, 1));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
input:checked + .slider:before {
|
|
63
|
+
transform: translateX(16px);
|
|
64
|
+
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
/* Rounded sliders */
|
|
67
|
+
.slider.round {
|
|
68
|
+
border-radius: var(--rounded-badge, 1.9rem);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
.slider.round:before {
|
|
72
|
+
border-radius: 9999px;
|
|
73
73
|
}
|
|
74
74
|
</style>
|
|
@@ -1,173 +1,173 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import ToggleIconButton from './ToggleIconButton.svelte';
|
|
4
|
+
import { Icon } from '../icons';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
component: ToggleIconButton,
|
|
8
|
+
title: 'Design System/ToggleIconButton',
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
});
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<Story name="States" asChild>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
<div class="flex flex-col gap-4">
|
|
15
|
+
<div class="bg-neutral-dark flex gap-4 p-4">
|
|
16
|
+
<div class="flex flex-col items-center gap-2">
|
|
17
|
+
<p class="text-sm">Normal</p>
|
|
18
|
+
<ToggleIconButton variant="primary-inverse">
|
|
19
|
+
<Icon iconName="DownloadSimple" />
|
|
20
|
+
</ToggleIconButton>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="flex flex-col items-center gap-2">
|
|
23
|
+
<p class="text-sm">Active</p>
|
|
24
|
+
<ToggleIconButton variant="primary-inverse" isActive={true}>
|
|
25
|
+
<Icon iconName="DownloadSimple" />
|
|
26
|
+
</ToggleIconButton>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
30
|
</Story>
|
|
31
31
|
|
|
32
32
|
<Story name="Variants" asChild>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
<div class="flex flex-col gap-4">
|
|
34
|
+
<div class="flex gap-8">
|
|
35
|
+
<div class="flex flex-col gap-2">
|
|
36
|
+
<p class="text-sm">Primary Inverse</p>
|
|
37
|
+
<div class="flex gap-4">
|
|
38
|
+
<ToggleIconButton variant="primary-inverse">
|
|
39
|
+
<Icon iconName="DownloadSimple" />
|
|
40
|
+
</ToggleIconButton>
|
|
41
|
+
<ToggleIconButton variant="primary-inverse" isActive={true}>
|
|
42
|
+
<Icon iconName="DownloadSimple" />
|
|
43
|
+
</ToggleIconButton>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="flex gap-8">
|
|
48
|
+
<div class="flex flex-col gap-2">
|
|
49
|
+
<p class="text-sm">Secondary</p>
|
|
50
|
+
<div class="flex gap-4">
|
|
51
|
+
<ToggleIconButton variant="secondary">
|
|
52
|
+
<Icon iconName="DownloadSimple" />
|
|
53
|
+
</ToggleIconButton>
|
|
54
|
+
<ToggleIconButton variant="secondary" isActive={true}>
|
|
55
|
+
<Icon iconName="DownloadSimple" />
|
|
56
|
+
</ToggleIconButton>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
61
|
</Story>
|
|
62
62
|
|
|
63
63
|
<Story name="Sizes" asChild>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
64
|
+
<div class="flex gap-8">
|
|
65
|
+
<div class="flex flex-col items-center gap-2">
|
|
66
|
+
<p class="text-sm">XS</p>
|
|
67
|
+
<div class="flex gap-4">
|
|
68
|
+
<ToggleIconButton variant="primary-inverse" size="xs">
|
|
69
|
+
<Icon iconName="DownloadSimple" />
|
|
70
|
+
</ToggleIconButton>
|
|
71
|
+
<ToggleIconButton variant="primary-inverse" size="xs" isActive={true}>
|
|
72
|
+
<Icon iconName="DownloadSimple" />
|
|
73
|
+
</ToggleIconButton>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="flex flex-col items-center gap-2">
|
|
77
|
+
<p class="text-sm">SM</p>
|
|
78
|
+
<div class="flex gap-4">
|
|
79
|
+
<ToggleIconButton variant="primary-inverse" size="sm">
|
|
80
|
+
<Icon iconName="DownloadSimple" />
|
|
81
|
+
</ToggleIconButton>
|
|
82
|
+
<ToggleIconButton variant="primary-inverse" size="sm" isActive={true}>
|
|
83
|
+
<Icon iconName="DownloadSimple" />
|
|
84
|
+
</ToggleIconButton>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="flex flex-col items-center gap-2">
|
|
88
|
+
<p class="text-sm">MD</p>
|
|
89
|
+
<div class="flex gap-4">
|
|
90
|
+
<ToggleIconButton variant="primary-inverse" size="md">
|
|
91
|
+
<Icon iconName="DownloadSimple" />
|
|
92
|
+
</ToggleIconButton>
|
|
93
|
+
<ToggleIconButton variant="primary-inverse" size="md" isActive={true}>
|
|
94
|
+
<Icon iconName="DownloadSimple" />
|
|
95
|
+
</ToggleIconButton>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="flex flex-col items-center gap-2">
|
|
99
|
+
<p class="text-sm">LG</p>
|
|
100
|
+
<div class="flex gap-4">
|
|
101
|
+
<ToggleIconButton variant="primary-inverse" size="lg">
|
|
102
|
+
<Icon iconName="DownloadSimple" />
|
|
103
|
+
</ToggleIconButton>
|
|
104
|
+
<ToggleIconButton variant="primary-inverse" size="lg" isActive={true}>
|
|
105
|
+
<Icon iconName="DownloadSimple" />
|
|
106
|
+
</ToggleIconButton>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
110
|
</Story>
|
|
111
111
|
|
|
112
112
|
<Story name="Rounded vs Square" asChild>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
113
|
+
<div class="flex gap-8">
|
|
114
|
+
<div class="flex flex-col items-center gap-2">
|
|
115
|
+
<p class="text-sm">Rounded</p>
|
|
116
|
+
<div class="flex gap-4">
|
|
117
|
+
<ToggleIconButton variant="primary-inverse" rounded>
|
|
118
|
+
<Icon iconName="DownloadSimple" />
|
|
119
|
+
</ToggleIconButton>
|
|
120
|
+
<ToggleIconButton variant="primary-inverse" rounded isActive={true}>
|
|
121
|
+
<Icon iconName="DownloadSimple" />
|
|
122
|
+
</ToggleIconButton>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="flex flex-col items-center gap-2">
|
|
126
|
+
<p class="text-sm">Square</p>
|
|
127
|
+
<div class="flex gap-4">
|
|
128
|
+
<ToggleIconButton variant="primary-inverse" rounded={false}>
|
|
129
|
+
<Icon iconName="DownloadSimple" />
|
|
130
|
+
</ToggleIconButton>
|
|
131
|
+
<ToggleIconButton variant="primary-inverse" rounded={false} isActive={true}>
|
|
132
|
+
<Icon iconName="DownloadSimple" />
|
|
133
|
+
</ToggleIconButton>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
137
|
</Story>
|
|
138
138
|
|
|
139
139
|
<Story name="Primary Inverse Example" asChild>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
140
|
+
<div class="bg-neutral-dark p-8">
|
|
141
|
+
<div class="flex gap-8">
|
|
142
|
+
<div class="flex flex-col items-center gap-2">
|
|
143
|
+
<p class="text-neutral-light text-sm">Normal</p>
|
|
144
|
+
<ToggleIconButton variant="primary-inverse">
|
|
145
|
+
<Icon iconName="DownloadSimple" />
|
|
146
|
+
</ToggleIconButton>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="flex flex-col items-center gap-2">
|
|
149
|
+
<p class="text-neutral-light text-sm">Active</p>
|
|
150
|
+
<ToggleIconButton variant="primary-inverse" isActive={true}>
|
|
151
|
+
<Icon iconName="DownloadSimple" />
|
|
152
|
+
</ToggleIconButton>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
156
|
</Story>
|
|
157
157
|
|
|
158
158
|
<Story name="Disabled and Loading" asChild>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
159
|
+
<div class="flex gap-8">
|
|
160
|
+
<div class="flex flex-col items-center gap-2">
|
|
161
|
+
<p class="text-sm">Disabled</p>
|
|
162
|
+
<ToggleIconButton disabled>
|
|
163
|
+
<Icon iconName="DownloadSimple" />
|
|
164
|
+
</ToggleIconButton>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="flex flex-col items-center gap-2">
|
|
167
|
+
<p class="text-sm">Loading</p>
|
|
168
|
+
<ToggleIconButton loading>
|
|
169
|
+
<Icon iconName="DownloadSimple" />
|
|
170
|
+
</ToggleIconButton>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
173
|
</Story>
|