@reshape-biotech/design-system 0.0.51 → 0.0.52

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.
@@ -0,0 +1,47 @@
1
+ <script module>
2
+ import { defineMeta } from '@storybook/addon-svelte-csf';
3
+ import EmptyContent from './EmptyContent.svelte';
4
+ import { Icon } from '../../components/icons';
5
+
6
+ const { Story } = defineMeta({
7
+ component: EmptyContent,
8
+ title: 'Design System/EmptyContent',
9
+ tags: ['autodocs']
10
+ });
11
+ </script>
12
+
13
+ <Story name="Default">
14
+ <div class="w-full bg-surface p-12">
15
+ <EmptyContent>
16
+ {#snippet icon()}
17
+ <Icon
18
+ iconName="ClockCountdown"
19
+ color="icon-tertiary"
20
+ width={48}
21
+ height={48}
22
+ weight="light"
23
+ />
24
+ {/snippet}
25
+ <h6>No activity</h6>
26
+ <p class="text-center text-sm">Nothing has been logged for this job.</p>
27
+ </EmptyContent>
28
+ </div>
29
+ </Story>
30
+
31
+ <Story name="With Different Icon">
32
+ <div class="w-full bg-surface p-12">
33
+ <EmptyContent>
34
+ {#snippet icon()}
35
+ <Icon
36
+ iconName="MagnifyingGlass"
37
+ color="icon-tertiary"
38
+ width={48}
39
+ height={48}
40
+ weight="light"
41
+ />
42
+ {/snippet}
43
+ <h6>No results found</h6>
44
+ <p class="text-center text-sm">Try adjusting your search or filters.</p>
45
+ </EmptyContent>
46
+ </div>
47
+ </Story>
@@ -0,0 +1,27 @@
1
+ export default EmptyContent;
2
+ type EmptyContent = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const EmptyContent: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ import EmptyContent from './EmptyContent.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 @@
1
+ export { default as EmptyContent } from './EmptyContent.svelte';
@@ -0,0 +1 @@
1
+ export { default as EmptyContent } from './EmptyContent.svelte';
@@ -2,7 +2,7 @@ import type { IconComponentProps } from 'phosphor-svelte';
2
2
  import type { Component } from 'svelte';
3
3
  import type { textColor } from './../../tokens';
4
4
  export type PhosphorIconProps = Component<IconComponentProps, object, ''>;
5
- export type IconName = 'ArrowFatLineRight' | 'ArrowRight' | 'ArrowUpRight' | 'Barcode' | 'BookOpen' | 'BookOpenText' | 'BowlingBall' | 'CalendarBlank' | 'CameraSlash' | 'CaretDown' | 'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretUpDown' | 'ChatTeardropDots' | 'Check' | 'CheckCircle' | 'CheckFat' | 'Circle' | 'CircleDashed' | 'CircleHalf' | 'CirclesFour' | 'CirclesThreePlus' | 'Clock' | 'ClockCountdown' | 'Copy' | 'Crop' | 'Cube' | 'Database' | 'DotsThree' | 'DotsThreeOutlineVertical' | 'DownloadSimple' | 'Drop' | 'EnvelopeSimple' | 'Eye' | 'Eyedropper' | 'FileCsv' | 'Flag' | 'Flask' | 'Folder' | 'FolderDashed' | 'FolderSimplePlus' | 'FunnelSimple' | 'Gear' | 'GlobeSimple' | 'GlobeSimpleX' | 'GridFour' | 'Hash' | 'House' | 'ImageSquare' | 'ImagesSquare' | 'Info' | 'Lock' | 'List' | 'MagnifyingGlass' | 'MegaphoneSimple' | 'Moon' | 'Pause' | 'Pencil' | 'PencilSimple' | 'Percent' | 'Phone' | 'Plant' | 'Play' | 'Plus' | 'PlusMinus' | 'Question' | 'SealQuestion' | 'Share' | 'SidebarSimple' | 'SkipBack' | 'SkipForward' | 'Sparkle' | 'SpinnerGap' | 'SquaresFour' | 'Star' | 'Stop' | 'StopCircle' | 'Sun' | 'Table' | 'Tag' | 'TestTube' | 'Trash' | 'TrashSimple' | 'UserPlus' | 'Video' | 'Warning' | 'WarningCircle' | 'WifiSlash' | 'X';
5
+ export type IconName = 'ArrowFatLineRight' | 'ArrowRight' | 'ArrowUpRight' | 'Barcode' | 'Bell' | 'BookOpen' | 'BookOpenText' | 'BowlingBall' | 'Calendar' | 'CalendarBlank' | 'CameraSlash' | 'CaretDown' | 'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretUpDown' | 'ChatTeardropDots' | 'Check' | 'CheckCircle' | 'CheckFat' | 'Circle' | 'CircleDashed' | 'CircleHalf' | 'CirclesFour' | 'CirclesThreePlus' | 'Clock' | 'ClockCountdown' | 'Copy' | 'Crop' | 'Cube' | 'Database' | 'DotsThree' | 'DotsThreeOutlineVertical' | 'DownloadSimple' | 'Drop' | 'EnvelopeSimple' | 'Eye' | 'Eyedropper' | 'FileCsv' | 'Flag' | 'Flask' | 'Folder' | 'FolderDashed' | 'FolderSimplePlus' | 'FunnelSimple' | 'Gear' | 'GlobeSimple' | 'GlobeSimpleX' | 'GridFour' | 'Hash' | 'House' | 'ImageSquare' | 'ImagesSquare' | 'Info' | 'Lock' | 'LineSegments' | 'List' | 'MagnifyingGlass' | 'MegaphoneSimple' | 'Moon' | 'Pause' | 'Pencil' | 'PencilSimple' | 'Percent' | 'Phone' | 'Plant' | 'Play' | 'Plus' | 'PlusMinus' | 'Question' | 'RadioButton' | 'SealQuestion' | 'SelectionAll' | 'Share' | 'SidebarSimple' | 'SkipBack' | 'SkipForward' | 'SortAscending' | 'Sparkle' | 'SpinnerGap' | 'SquaresFour' | 'Star' | 'Stop' | 'StopCircle' | 'Sun' | 'Table' | 'Tag' | 'TestTube' | 'Trash' | 'TrashSimple' | 'UserCircle' | 'UserPlus' | 'Video' | 'Warning' | 'WarningCircle' | 'WifiSlash' | 'X';
6
6
  export declare const iconMap: Record<IconName, PhosphorIconProps>;
7
7
  export declare function renderIcon(iconName: keyof typeof iconMap): PhosphorIconProps;
8
8
  export type IconColor = keyof typeof textColor;
@@ -2,9 +2,11 @@ import ArrowFatLineRight from 'phosphor-svelte/lib/ArrowFatLineRight';
2
2
  import ArrowRight from 'phosphor-svelte/lib/ArrowRight';
3
3
  import ArrowUpRight from 'phosphor-svelte/lib/ArrowUpRight';
4
4
  import Barcode from 'phosphor-svelte/lib/Barcode';
5
+ import Bell from 'phosphor-svelte/lib/Bell';
5
6
  import BookOpen from 'phosphor-svelte/lib/BookOpen';
6
7
  import BookOpenText from 'phosphor-svelte/lib/BookOpenText';
7
8
  import BowlingBall from 'phosphor-svelte/lib/BowlingBall';
9
+ import Calendar from 'phosphor-svelte/lib/Calendar';
8
10
  import CalendarBlank from 'phosphor-svelte/lib/CalendarBlank';
9
11
  import CameraSlash from 'phosphor-svelte/lib/CameraSlash';
10
12
  import CaretDown from 'phosphor-svelte/lib/CaretDown';
@@ -51,6 +53,7 @@ import ImageSquare from 'phosphor-svelte/lib/ImageSquare';
51
53
  import ImagesSquare from 'phosphor-svelte/lib/ImagesSquare';
52
54
  import Info from 'phosphor-svelte/lib/Info';
53
55
  import Lock from 'phosphor-svelte/lib/Lock';
56
+ import LineSegments from 'phosphor-svelte/lib/LineSegments';
54
57
  import List from 'phosphor-svelte/lib/List';
55
58
  import MagnifyingGlass from 'phosphor-svelte/lib/MagnifyingGlass';
56
59
  import MegaphoneSimple from 'phosphor-svelte/lib/MegaphoneSimple';
@@ -65,11 +68,14 @@ import Play from 'phosphor-svelte/lib/Play';
65
68
  import Plus from 'phosphor-svelte/lib/Plus';
66
69
  import PlusMinus from 'phosphor-svelte/lib/PlusMinus';
67
70
  import Question from 'phosphor-svelte/lib/Question';
71
+ import RadioButton from 'phosphor-svelte/lib/RadioButton';
68
72
  import SealQuestion from 'phosphor-svelte/lib/SealQuestion';
73
+ import SelectionAll from 'phosphor-svelte/lib/SelectionAll';
69
74
  import Share from 'phosphor-svelte/lib/Share';
70
75
  import SidebarSimple from 'phosphor-svelte/lib/SidebarSimple';
71
76
  import SkipBack from 'phosphor-svelte/lib/SkipBack';
72
77
  import SkipForward from 'phosphor-svelte/lib/SkipForward';
78
+ import SortAscending from 'phosphor-svelte/lib/SortAscending';
73
79
  import Sparkle from 'phosphor-svelte/lib/Sparkle';
74
80
  import SpinnerGap from 'phosphor-svelte/lib/SpinnerGap';
75
81
  import SquaresFour from 'phosphor-svelte/lib/SquaresFour';
@@ -82,6 +88,7 @@ import Tag from 'phosphor-svelte/lib/Tag';
82
88
  import TestTube from 'phosphor-svelte/lib/TestTube';
83
89
  import Trash from 'phosphor-svelte/lib/Trash';
84
90
  import TrashSimple from 'phosphor-svelte/lib/TrashSimple';
91
+ import UserCircle from 'phosphor-svelte/lib/UserCircle';
85
92
  import UserPlus from 'phosphor-svelte/lib/UserPlus';
86
93
  import Video from 'phosphor-svelte/lib/Video';
87
94
  import Warning from 'phosphor-svelte/lib/Warning';
@@ -93,9 +100,11 @@ export const iconMap = {
93
100
  ArrowRight,
94
101
  ArrowUpRight,
95
102
  Barcode,
103
+ Bell,
96
104
  BookOpen,
97
105
  BookOpenText,
98
106
  BowlingBall,
107
+ Calendar,
99
108
  CalendarBlank,
100
109
  CameraSlash,
101
110
  CaretDown,
@@ -142,6 +151,7 @@ export const iconMap = {
142
151
  ImagesSquare,
143
152
  Info,
144
153
  Lock,
154
+ LineSegments,
145
155
  List,
146
156
  MagnifyingGlass,
147
157
  MegaphoneSimple,
@@ -155,12 +165,15 @@ export const iconMap = {
155
165
  Play,
156
166
  Plus,
157
167
  PlusMinus,
168
+ RadioButton,
158
169
  Question,
159
170
  SealQuestion,
171
+ SelectionAll,
160
172
  Share,
161
173
  SidebarSimple,
162
174
  SkipBack,
163
175
  SkipForward,
176
+ SortAscending,
164
177
  Sparkle,
165
178
  SpinnerGap,
166
179
  SquaresFour,
@@ -173,6 +186,7 @@ export const iconMap = {
173
186
  TestTube,
174
187
  Trash,
175
188
  TrashSimple,
189
+ UserCircle,
176
190
  UserPlus,
177
191
  Video,
178
192
  Warning,
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './components/divider/';
10
10
  export * from './components/drawer/';
11
11
  export * from './components/drawer/';
12
12
  export * from './components/dropdown/';
13
+ export * from './components/empty-content/';
13
14
  export * from './components/icons/';
14
15
  export * from './components/icon-button/';
15
16
  export * from './components/image';
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './components/divider/';
11
11
  export * from './components/drawer/';
12
12
  export * from './components/drawer/';
13
13
  export * from './components/dropdown/';
14
+ export * from './components/empty-content/';
14
15
  export * from './components/icons/';
15
16
  export * from './components/icon-button/';
16
17
  export * from './components/image';
@@ -23,5 +23,6 @@ export const hoverVariants: string[];
23
23
  export const focusVariants: string[];
24
24
  export const disabledVariants: string[];
25
25
  export const activeVariants: string[];
26
+ export const groupVariants: string[];
26
27
  export const safelist: string[];
27
28
  export const responsive: string[];
@@ -121,6 +121,7 @@ export const sizes = ['h-5', 'w-5', 'min-w-5', 'h-7', 'w-7', 'min-w-7'];
121
121
 
122
122
  export const display = [
123
123
  'flex',
124
+ 'grow',
124
125
  'items-center',
125
126
  'justify-center',
126
127
  'flex-row',
@@ -206,6 +207,7 @@ export const sizing = [
206
207
  'h-16',
207
208
  'h-28',
208
209
  'h-screen',
210
+ 'w-0.5',
209
211
  'w-4',
210
212
  'w-5',
211
213
  'w-6',
@@ -444,6 +446,9 @@ export const activeVariants = [
444
446
  'active:transform'
445
447
  ];
446
448
 
449
+ // Add group variants
450
+ export const groupVariants = ['group-first:invisible', 'group-last:invisible'];
451
+
447
452
  // Export all arrays as a single safelist
448
453
  export const safelist = [
449
454
  ...textColors,
@@ -469,7 +474,8 @@ export const safelist = [
469
474
  ...hoverVariants,
470
475
  ...focusVariants,
471
476
  ...disabledVariants,
472
- ...activeVariants
477
+ ...activeVariants,
478
+ ...groupVariants
473
479
  ];
474
480
 
475
481
  export const responsive = ['sm:w-[460px]', 'md:flex', 'lg:block', 'sm:gap-2'];
@@ -380,6 +380,7 @@ declare const config: {
380
380
  'icon-lilac': string;
381
381
  'icon-lime': string;
382
382
  'icon-pear': string;
383
+ 'icon-white': string;
383
384
  'dark-primary': string;
384
385
  'dark-secondary': string;
385
386
  'dark-tertiary': string;
package/dist/tokens.d.ts CHANGED
@@ -273,6 +273,7 @@ export declare const textColor: {
273
273
  'icon-lilac': string;
274
274
  'icon-lime': string;
275
275
  'icon-pear': string;
276
+ 'icon-white': string;
276
277
  'dark-primary': string;
277
278
  'dark-secondary': string;
278
279
  'dark-tertiary': string;
@@ -705,6 +706,7 @@ export declare const tokens: {
705
706
  'icon-lilac': string;
706
707
  'icon-lime': string;
707
708
  'icon-pear': string;
709
+ 'icon-white': string;
708
710
  'dark-primary': string;
709
711
  'dark-secondary': string;
710
712
  'dark-tertiary': string;
package/dist/tokens.js CHANGED
@@ -174,7 +174,8 @@ const lightIconColor = {
174
174
  'icon-plum': colors.plum[5].default,
175
175
  'icon-lilac': colors.lilac[5].default,
176
176
  'icon-lime': colors.lime[5].default,
177
- 'icon-pear': colors.pear[5].default
177
+ 'icon-pear': colors.pear[5].default,
178
+ 'icon-white': colors.base.white.default
178
179
  };
179
180
  const lightBorderColor = {
180
181
  static: colors.base.midnight[8],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",