@reshape-biotech/design-system 0.0.28 → 0.0.30

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/app.css CHANGED
@@ -7,17 +7,17 @@
7
7
  font-family: 'MD System Mono';
8
8
  font-style: normal;
9
9
  font-weight: 400;
10
- src: url('./fonts/MDSystemMono-Regular.woff2') format('woff2');
10
+ src: url('/fonts/MDSystemMono-Regular.woff2') format('woff2');
11
11
  }
12
12
  @font-face {
13
13
  font-family: 'MD System';
14
14
  font-style: normal;
15
15
  font-weight: 400;
16
- src: url('./fonts/MDSystem-Regular.woff2') format('woff2');
16
+ src: url('/fonts/MDSystem-Regular.woff2') format('woff2');
17
17
  }
18
18
  @font-face {
19
19
  font-family: 'MD System';
20
- src: url('./fonts/MDSystem-Medium.woff2') format('woff2');
20
+ src: url('/fonts/MDSystem-Medium.woff2') format('woff2');
21
21
  font-weight: 500;
22
22
  font-style: normal;
23
23
  }
@@ -25,7 +25,7 @@
25
25
  font-family: 'MD System';
26
26
  font-style: normal;
27
27
  font-weight: 600;
28
- src: url('./fonts/MDSystem-Semibold.woff2') format('woff2');
28
+ src: url('/fonts/MDSystem-Semibold.woff2') format('woff2');
29
29
  }
30
30
  body {
31
31
  background-color: theme('backgroundColor.base');
@@ -54,29 +54,6 @@
54
54
  </div>
55
55
  </Story>
56
56
 
57
- <Story name="With Button">
58
- <div class="py-12">
59
- <Drawer id="my-drawer" controlled bind:open>
60
- {#snippet trigger()}
61
- <div>
62
- <Button
63
- onClick={() => {
64
- open = !open;
65
- }}>Export</Button
66
- >
67
- </div>
68
- {/snippet}
69
- {#snippet content()}
70
- <div>
71
- <div>
72
- <p>Drawer content here</p>
73
- </div>
74
- </div>
75
- {/snippet}
76
- </Drawer>
77
- </div>
78
- </Story>
79
-
80
57
  <Story name="Open Left">
81
58
  <div class="py-12">
82
59
  <Drawer id="my-drawer" side="left">
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  <div class="drawer-side" inert={controlled ? !open : false}>
40
40
  <label for={id} aria-label="close sidebar" class="drawer-overlay"></label>
41
- <div class="h-screen w-full bg-base sm:w-[460px]">
41
+ <div class="h-screen bg-base sm:w-[460px]">
42
42
  {@render content?.()}
43
43
  </div>
44
44
  </div>
@@ -11,4 +11,10 @@ export const sizes: string[];
11
11
  export const display: string[];
12
12
  export const rounded: string[];
13
13
  export const tables: string[];
14
+ export const flexLayout: string[];
15
+ export const spacing: string[];
16
+ export const sizing: string[];
17
+ export const positioning: string[];
18
+ export const cursors: string[];
19
+ export const misc: string[];
14
20
  export const safelist: string[];
@@ -130,6 +130,80 @@ export const rounded = ['rounded-full', 'rounded'];
130
130
 
131
131
  export const tables = ['table-fixed', 'table-auto'];
132
132
 
133
+ export const flexLayout = [
134
+ 'flex',
135
+ 'inline-flex',
136
+ 'items-center',
137
+ 'justify-center',
138
+ 'justify-between',
139
+ 'justify-start',
140
+ 'flex-1',
141
+ 'flex-row',
142
+ 'flex-col',
143
+ 'gap-2',
144
+ 'gap-3',
145
+ 'space-y-2',
146
+ 'space-y-4'
147
+ ];
148
+
149
+ export const spacing = [
150
+ 'p-1',
151
+ 'p-2',
152
+ 'p-3',
153
+ 'p-4',
154
+ 'px-0',
155
+ 'px-2',
156
+ 'px-3',
157
+ 'px-5',
158
+ 'px-6',
159
+ 'py-0',
160
+ 'py-1',
161
+ 'py-2',
162
+ 'py-3',
163
+ 'py-4',
164
+ 'py-12',
165
+ 'mb-2'
166
+ ];
167
+
168
+ export const sizing = [
169
+ 'h-4',
170
+ 'h-5',
171
+ 'h-6',
172
+ 'h-8',
173
+ 'h-10',
174
+ 'h-11',
175
+ 'h-12',
176
+ 'h-28',
177
+ 'h-screen',
178
+ 'w-4',
179
+ 'w-5',
180
+ 'w-6',
181
+ 'w-7',
182
+ 'w-8',
183
+ 'w-10',
184
+ 'w-full',
185
+ 'min-w-5',
186
+ 'min-w-7',
187
+ 'size-5'
188
+ ];
189
+
190
+ export const positioning = ['absolute', 'relative', 'top-20', 'left-18', 'z-10', 'z-[1]'];
191
+
192
+ export const cursors = ['cursor-pointer', 'cursor-wait', 'cursor-default'];
193
+
194
+ export const misc = [
195
+ 'overflow-hidden',
196
+ 'overflow-x-auto',
197
+ 'duration-150',
198
+ 'active:red',
199
+ 'active:bg-neutral',
200
+ 'active:bg-neutral-inverse',
201
+ '[&>svg]:w-4',
202
+ '[&>svg]:h-4',
203
+ '[&>svg]:w-5',
204
+ '[&>svg]:h-5'
205
+ ];
206
+
133
207
  // Export all arrays as a single safelist
134
208
  export const safelist = [
135
209
  ...textColors,
@@ -144,5 +218,11 @@ export const safelist = [
144
218
  ...sizes,
145
219
  ...display,
146
220
  ...rounded,
147
- ...tables
221
+ ...tables,
222
+ ...flexLayout,
223
+ ...spacing,
224
+ ...sizing,
225
+ ...positioning,
226
+ ...cursors,
227
+ ...misc
148
228
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",