@reshape-biotech/design-system 0.0.33 → 0.0.35

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.
Files changed (38) hide show
  1. package/dist/components/banner/Banner.stories.svelte.d.ts +19 -0
  2. package/dist/components/button/Button.stories.svelte.d.ts +19 -0
  3. package/dist/components/divider/Divider.stories.svelte.d.ts +27 -0
  4. package/dist/components/drawer/Drawer.stories.svelte.d.ts +27 -0
  5. package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +27 -0
  6. package/dist/components/dropdown/Dropdown.svelte +4 -2
  7. package/dist/components/dropdown/Dropdown.svelte.d.ts +14 -2
  8. package/dist/components/icon-button/IconButton.stories.svelte.d.ts +19 -0
  9. package/dist/components/input/Input.stories.svelte.d.ts +27 -0
  10. package/dist/components/list/List.stories.svelte.d.ts +19 -0
  11. package/dist/components/markdown/Markdown.stories.svelte.d.ts +27 -0
  12. package/dist/components/modal/Modal.stories.svelte.d.ts +19 -0
  13. package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +27 -0
  14. package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +3 -3
  15. package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts +19 -0
  16. package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte +2 -2
  17. package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +3 -1
  18. package/dist/components/select/Select.stories.svelte.d.ts +19 -0
  19. package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +27 -0
  20. package/dist/components/skeleton-loader/SkeletonLoader.svelte +1 -1
  21. package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +6 -1
  22. package/dist/components/slider/Slider.stories.svelte.d.ts +27 -0
  23. package/dist/components/stat-card/StatCard.stories.svelte.d.ts +27 -0
  24. package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +19 -0
  25. package/dist/components/table/Table.stories.svelte.d.ts +24 -0
  26. package/dist/components/table/Table.svelte +1 -1
  27. package/dist/components/table/Table.svelte.d.ts +10 -1
  28. package/dist/components/tabs/Tabs.stories.svelte.d.ts +27 -0
  29. package/dist/components/tag/Tag.stories.svelte.d.ts +19 -0
  30. package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +27 -0
  31. package/dist/tailwind-safelist.js +4 -1
  32. package/dist/tailwind.d.ts +11 -0
  33. package/dist/tailwind.js +1 -0
  34. package/package.json +3 -4
  35. package/dist/components/toast/Toast.svelte +0 -66
  36. package/dist/components/toast/Toast.svelte.d.ts +0 -5
  37. package/dist/components/toast/index.d.ts +0 -1
  38. package/dist/components/toast/index.js +0 -1
@@ -0,0 +1,19 @@
1
+ import Banner from './Banner.svelte';
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;
14
+ }
15
+ declare const Banner: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Banner = InstanceType<typeof Banner>;
19
+ export default Banner;
@@ -0,0 +1,19 @@
1
+ import Button from './Button.svelte';
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;
14
+ }
15
+ declare const Button: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Button = InstanceType<typeof Button>;
19
+ export default Button;
@@ -0,0 +1,27 @@
1
+ export default Divider;
2
+ type Divider = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Divider: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Divider from './Divider.svelte';
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;
27
+ }
@@ -0,0 +1,27 @@
1
+ export default Drawer;
2
+ type Drawer = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Drawer: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Drawer from './Drawer.svelte';
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;
27
+ }
@@ -0,0 +1,27 @@
1
+ export default Dropdown;
2
+ type Dropdown = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Dropdown: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Dropdown from './Dropdown.svelte';
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;
27
+ }
@@ -11,8 +11,10 @@
11
11
  openOnHover?: boolean;
12
12
  closeOnItemClick?: boolean;
13
13
  class?: string;
14
- trigger?: Snippet<[any]>;
15
- content?: Snippet<[any]>;
14
+ trigger?: Snippet<[{ Trigger: typeof DropdownTrigger }]>;
15
+ content?: Snippet<
16
+ [{ C: { DropdownContent: typeof DropdownContent; DropdownMenu: typeof DropdownMenu } }]
17
+ >;
16
18
  }
17
19
 
18
20
  let {
@@ -1,4 +1,7 @@
1
1
  import type { Snippet } from 'svelte';
2
+ import DropdownContent from './components/DropdownContent.svelte';
3
+ import DropdownMenu from './components/DropdownMenu.svelte';
4
+ import DropdownTrigger from './components/DropdownTrigger.svelte';
2
5
  interface Props {
3
6
  side?: 'dropdown-top' | 'dropdown-bottom' | 'dropdown-left' | 'dropdown-right';
4
7
  open?: boolean;
@@ -6,8 +9,17 @@ interface Props {
6
9
  openOnHover?: boolean;
7
10
  closeOnItemClick?: boolean;
8
11
  class?: string;
9
- trigger?: Snippet<[any]>;
10
- content?: Snippet<[any]>;
12
+ trigger?: Snippet<[{
13
+ Trigger: typeof DropdownTrigger;
14
+ }]>;
15
+ content?: Snippet<[
16
+ {
17
+ C: {
18
+ DropdownContent: typeof DropdownContent;
19
+ DropdownMenu: typeof DropdownMenu;
20
+ };
21
+ }
22
+ ]>;
11
23
  }
12
24
  declare const Dropdown: import("svelte").Component<Props, {}, "open">;
13
25
  type Dropdown = ReturnType<typeof Dropdown>;
@@ -0,0 +1,19 @@
1
+ import IconButton from '../icon-button/IconButton.svelte';
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;
14
+ }
15
+ declare const IconButton: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type IconButton = InstanceType<typeof IconButton>;
19
+ export default IconButton;
@@ -0,0 +1,27 @@
1
+ export default Input;
2
+ type Input = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Input: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Input from './Input.svelte';
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;
27
+ }
@@ -0,0 +1,19 @@
1
+ import List from './List.svelte';
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;
14
+ }
15
+ declare const List: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type List = InstanceType<typeof List>;
19
+ export default List;
@@ -0,0 +1,27 @@
1
+ export default Markdown;
2
+ type Markdown = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Markdown: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Markdown from './Markdown.svelte';
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;
27
+ }
@@ -0,0 +1,19 @@
1
+ import Modal from '../modal/Modal.svelte';
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;
14
+ }
15
+ declare const Modal: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Modal = InstanceType<typeof Modal>;
19
+ export default Modal;
@@ -0,0 +1,27 @@
1
+ export default NotificationPopup;
2
+ type NotificationPopup = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import NotificationPopup from './NotificationPopup.svelte';
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;
27
+ }
@@ -12,7 +12,7 @@
12
12
 
13
13
  <Story name="Primary">
14
14
  <SegmentedControlButtons class="w-[350px]">
15
- {#snippet children(ControlButton)}
15
+ {#snippet children({ ControlButton })}
16
16
  <ControlButton active><Star /> Low</ControlButton>
17
17
  <ControlButton><Star /> Medium</ControlButton>
18
18
  <ControlButton disabled><Star /> High</ControlButton>
@@ -21,7 +21,7 @@
21
21
  </Story>
22
22
  <Story name="Large">
23
23
  <SegmentedControlButtons size="lg" class="w-[350px]">
24
- {#snippet children(ControlButton)}
24
+ {#snippet children({ ControlButton })}
25
25
  <ControlButton active><Star /> Low</ControlButton>
26
26
  <ControlButton><Star /> Medium</ControlButton>
27
27
  <ControlButton disabled><Star /> High</ControlButton>
@@ -30,7 +30,7 @@
30
30
  </Story>
31
31
  <Story name="Secondary">
32
32
  <SegmentedControlButtons class="w-[350px]">
33
- {#snippet children(ControlButton)}
33
+ {#snippet children({ ControlButton })}
34
34
  <ControlButton active color="secondary">
35
35
  <Star /> Low
36
36
  </ControlButton>
@@ -0,0 +1,19 @@
1
+ import SegmentedControlButtons from './SegmentedControlButtons.svelte';
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;
14
+ }
15
+ declare const SegmentedControlButtons: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type SegmentedControlButtons = InstanceType<typeof SegmentedControlButtons>;
19
+ export default SegmentedControlButtons;
@@ -5,7 +5,7 @@
5
5
  interface Props {
6
6
  class?: string;
7
7
  size?: 'md' | 'lg';
8
- children?: Snippet<[typeof ControlButton]>;
8
+ children?: Snippet<[{ ControlButton: typeof ControlButton }]>;
9
9
  }
10
10
 
11
11
  let { class: className = '', size = 'md', children }: Props = $props();
@@ -17,5 +17,5 @@
17
17
  </script>
18
18
 
19
19
  <div class={`join flex gap-1 rounded-lg bg-neutral p-1 ${sizes[size]} ${size} ${className}`}>
20
- {@render children?.(ControlButton)}
20
+ {@render children?.({ ControlButton })}
21
21
  </div>
@@ -3,7 +3,9 @@ import ControlButton from './ControlButton.svelte';
3
3
  interface Props {
4
4
  class?: string;
5
5
  size?: 'md' | 'lg';
6
- children?: Snippet<[typeof ControlButton]>;
6
+ children?: Snippet<[{
7
+ ControlButton: typeof ControlButton;
8
+ }]>;
7
9
  }
8
10
  declare const SegmentedControlButtons: import("svelte").Component<Props, {}, "">;
9
11
  type SegmentedControlButtons = ReturnType<typeof SegmentedControlButtons>;
@@ -0,0 +1,19 @@
1
+ import Select from './Select.svelte';
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;
14
+ }
15
+ declare const Select: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Select = InstanceType<typeof Select>;
19
+ export default Select;
@@ -0,0 +1,27 @@
1
+ export default SkeletonLoader;
2
+ type SkeletonLoader = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const SkeletonLoader: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import SkeletonLoader from './SkeletonLoader.svelte';
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;
27
+ }
@@ -6,7 +6,7 @@
6
6
  interface Props {
7
7
  class?: string;
8
8
  dataTestId?: string;
9
- children?: Snippet<[any]>;
9
+ children?: Snippet<[{ Skeleton: typeof Skeleton; SkeletonImage: typeof SkeletonImage }]>;
10
10
  }
11
11
 
12
12
  let { class: className = '', dataTestId = '', children }: Props = $props();
@@ -1,8 +1,13 @@
1
1
  import type { Snippet } from 'svelte';
2
+ import Skeleton from './components/Skeleton.svelte';
3
+ import SkeletonImage from './components/SkeletonImage.svelte';
2
4
  interface Props {
3
5
  class?: string;
4
6
  dataTestId?: string;
5
- children?: Snippet<[any]>;
7
+ children?: Snippet<[{
8
+ Skeleton: typeof Skeleton;
9
+ SkeletonImage: typeof SkeletonImage;
10
+ }]>;
6
11
  }
7
12
  declare const SkeletonLoader: import("svelte").Component<Props, {}, "">;
8
13
  type SkeletonLoader = ReturnType<typeof SkeletonLoader>;
@@ -0,0 +1,27 @@
1
+ export default Slider;
2
+ type Slider = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Slider: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Slider from './Slider.svelte';
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;
27
+ }
@@ -0,0 +1,27 @@
1
+ export default StatCard;
2
+ type StatCard = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const StatCard: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import StatCard from './StatCard.svelte';
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;
27
+ }
@@ -0,0 +1,19 @@
1
+ import StatusBadge from '../status-badge/StatusBadge.svelte';
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;
14
+ }
15
+ declare const StatusBadge: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type StatusBadge = InstanceType<typeof StatusBadge>;
19
+ export default StatusBadge;
@@ -0,0 +1,24 @@
1
+ import Table from './Table.svelte';
2
+ export declare const users: {
3
+ name: string;
4
+ age: number;
5
+ role: string;
6
+ }[];
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;
19
+ }
20
+ declare const Table: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
21
+ [evt: string]: CustomEvent<any>;
22
+ }, {}, {}, string>;
23
+ type Table = InstanceType<typeof Table>;
24
+ export default Table;
@@ -6,7 +6,7 @@
6
6
 
7
7
  interface Props {
8
8
  tableLayout?: 'fixed' | 'auto';
9
- children?: Snippet<[any]>;
9
+ children?: Snippet<[{ C: { Tr: typeof Tr; Th: typeof Th; Td: typeof Td } }]>;
10
10
  }
11
11
 
12
12
  let { tableLayout = 'fixed', children }: Props = $props();
@@ -1,7 +1,16 @@
1
1
  import type { Snippet } from 'svelte';
2
+ import Td from './components/Td.svelte';
3
+ import Th from './components/Th.svelte';
4
+ import Tr from './components/Tr.svelte';
2
5
  interface Props {
3
6
  tableLayout?: 'fixed' | 'auto';
4
- children?: Snippet<[any]>;
7
+ children?: Snippet<[{
8
+ C: {
9
+ Tr: typeof Tr;
10
+ Th: typeof Th;
11
+ Td: typeof Td;
12
+ };
13
+ }]>;
5
14
  }
6
15
  declare const Table: import("svelte").Component<Props, {}, "">;
7
16
  type Table = ReturnType<typeof Table>;
@@ -0,0 +1,27 @@
1
+ export default Tabs;
2
+ type Tabs = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Tabs: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Tabs from './Tabs.svelte';
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;
27
+ }
@@ -0,0 +1,19 @@
1
+ import Tag from './Tag.svelte';
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;
14
+ }
15
+ declare const Tag: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type Tag = InstanceType<typeof Tag>;
19
+ export default Tag;
@@ -0,0 +1,27 @@
1
+ export default Tooltip;
2
+ type Tooltip = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Tooltip: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import Tooltip from './Tooltip.svelte';
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;
27
+ }
@@ -100,7 +100,7 @@ export const textSizes = [
100
100
  'text-4xl'
101
101
  ];
102
102
 
103
- export const fonts = ['font-medium', 'font-semibold', 'font-bold'];
103
+ export const fonts = ['font-medium', 'font-semibold', 'font-bold', 'font-normal'];
104
104
 
105
105
  export const badges = [
106
106
  'badge-neutral',
@@ -152,6 +152,9 @@ export const flexLayout = [
152
152
  'flex-1',
153
153
  'flex-row',
154
154
  'flex-col',
155
+ 'text-left',
156
+ 'text-right',
157
+ 'text-center',
155
158
  'gap-1',
156
159
  'gap-2',
157
160
  'gap-3',
@@ -0,0 +1,11 @@
1
+ import type { Tailwindest } from 'tailwindest';
2
+ export type Overflow = Tailwindest['overflow'];
3
+ export type Width = Tailwindest['width'];
4
+ export type MinWidth = Tailwindest['minWidth'];
5
+ export type Height = Tailwindest['height'];
6
+ export type MaxHeight = Tailwindest['maxHeight'];
7
+ export type Margin = Tailwindest['margin'];
8
+ export type Padding = Tailwindest['padding'];
9
+ export type JustifyContent = Tailwindest['justifyContent'];
10
+ export type Rounding = Tailwindest['borderRadius'];
11
+ export type ButtonVariant = 'btn-neutral' | 'btn-primary' | 'btn-secondary' | 'btn-accent' | 'btn-info' | 'btn-success' | 'btn-warning' | 'btn-error' | 'btn-ghost' | 'btn-link' | 'btn-outline' | 'btn-active' | 'btn-disabled';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
- "build": "vite build && npm run package",
6
+ "build": "vite build",
7
7
  "package": "svelte-package --input ./src/lib --output ./dist",
8
8
  "check": "svelte-check",
9
9
  "test": "vitest run",
@@ -40,8 +40,6 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@eslint/compat": "^1.2.3",
43
- "@storybook/addon-svelte-csf": "^5.0.0-next.11",
44
- "@storybook/svelte": "^8.4.7",
45
43
  "@sveltejs/adapter-vercel": "^5.5.0",
46
44
  "@sveltejs/kit": "^2.9.0",
47
45
  "@sveltejs/package": "^2.0.0",
@@ -67,6 +65,7 @@
67
65
  "svelte-check": "^4.0.0",
68
66
  "svelte-select": "^5.8.1",
69
67
  "tailwindcss": "^3.4.9",
68
+ "tailwindest": "^2.3.0",
70
69
  "typescript": "^5.0.0",
71
70
  "typescript-eslint": "^8.0.0",
72
71
  "vite": "^5.4.4",
@@ -1,66 +0,0 @@
1
- <script lang="ts">
2
- import { flip } from 'svelte/animate';
3
- import { fly } from 'svelte/transition';
4
- import { notifications } from '../../notifications';
5
-
6
- /**
7
- * @typedef {Object} Props
8
- * @property {any} [themes]
9
- */
10
-
11
- /** @type {Props} */
12
- let {
13
- themes = {
14
- danger: '#E26D69',
15
- success: '#84C991',
16
- warning: '#f0ad4e',
17
- info: '#5bc0de',
18
- default: '#aaaaaa'
19
- }
20
- } = $props();
21
- </script>
22
-
23
- <div class="notifications">
24
- {#each $notifications as notification (notification.id)}
25
- <div
26
- animate:flip
27
- class="toast-custom"
28
- style="background: {themes[notification.type]};"
29
- transition:fly={{ y: 30 }}
30
- >
31
- <div class="content">{notification.message}</div>
32
- {#if notification.icon}<i class={notification.icon}></i>{/if}
33
- </div>
34
- {/each}
35
- </div>
36
-
37
- <style>
38
- .notifications {
39
- position: fixed;
40
- top: 10px;
41
- left: 0;
42
- right: 0;
43
- margin: 0 auto;
44
- padding: 0;
45
- z-index: 9999;
46
- display: flex;
47
- flex-direction: column;
48
- justify-content: flex-start;
49
- align-items: center;
50
- pointer-events: none;
51
- }
52
-
53
- .toast-custom {
54
- flex: 0 0 auto;
55
- padding: 0 16px;
56
- margin-bottom: 10px;
57
- border-radius: 100px;
58
- }
59
-
60
- .content {
61
- padding: 10px;
62
- display: block;
63
- color: white;
64
- font-weight: 500;
65
- }
66
- </style>
@@ -1,5 +0,0 @@
1
- declare const Toast: import("svelte").Component<{
2
- themes?: Record<string, any>;
3
- }, {}, "">;
4
- type Toast = ReturnType<typeof Toast>;
5
- export default Toast;
@@ -1 +0,0 @@
1
- export { default as Toast } from './Toast.svelte';
@@ -1 +0,0 @@
1
- export { default as Toast } from './Toast.svelte';