@reshape-biotech/design-system 0.0.30 → 0.0.32

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.
@@ -17,4 +17,6 @@ export const sizing: string[];
17
17
  export const positioning: string[];
18
18
  export const cursors: string[];
19
19
  export const misc: string[];
20
+ export const daisyui: string[];
20
21
  export const safelist: string[];
22
+ export const responsive: string[];
@@ -126,23 +126,43 @@ export const display = [
126
126
  'py-1'
127
127
  ];
128
128
 
129
- export const rounded = ['rounded-full', 'rounded'];
129
+ export const rounded = [
130
+ 'rounded',
131
+ 'rounded-full',
132
+ 'rounded-lg',
133
+ 'rounded-xl',
134
+ 'rounded-2xl',
135
+ 'rounded-md'
136
+ ];
130
137
 
131
138
  export const tables = ['table-fixed', 'table-auto'];
132
139
 
133
140
  export const flexLayout = [
134
141
  'flex',
135
142
  'inline-flex',
143
+ 'block',
144
+ 'inline-block',
136
145
  'items-center',
146
+ 'items-start',
147
+ 'items-end',
137
148
  'justify-center',
138
149
  'justify-between',
139
150
  'justify-start',
151
+ 'justify-end',
140
152
  'flex-1',
141
153
  'flex-row',
142
154
  'flex-col',
155
+ 'gap-1',
143
156
  'gap-2',
144
157
  'gap-3',
158
+ 'gap-4',
159
+ 'space-x-1',
160
+ 'space-x-2',
161
+ 'space-x-3',
162
+ 'space-x-4',
163
+ 'space-y-1',
145
164
  'space-y-2',
165
+ 'space-y-3',
146
166
  'space-y-4'
147
167
  ];
148
168
 
@@ -169,6 +189,7 @@ export const sizing = [
169
189
  'h-4',
170
190
  'h-5',
171
191
  'h-6',
192
+ 'h-7',
172
193
  'h-8',
173
194
  'h-10',
174
195
  'h-11',
@@ -184,7 +205,10 @@ export const sizing = [
184
205
  'w-full',
185
206
  'min-w-5',
186
207
  'min-w-7',
187
- 'size-5'
208
+ 'size-4',
209
+ 'size-5',
210
+ 'size-6',
211
+ 'sm:w-[460px]'
188
212
  ];
189
213
 
190
214
  export const positioning = ['absolute', 'relative', 'top-20', 'left-18', 'z-10', 'z-[1]'];
@@ -204,6 +228,162 @@ export const misc = [
204
228
  '[&>svg]:h-5'
205
229
  ];
206
230
 
231
+ // Setting all daisyui classes here so we can add them to the safelist
232
+ export const daisyui = [
233
+ // Actions
234
+ 'btn',
235
+ 'btn-primary',
236
+ 'btn-secondary',
237
+ 'btn-accent',
238
+ 'btn-info',
239
+ 'btn-success',
240
+ 'btn-warning',
241
+ 'btn-error',
242
+ 'btn-ghost',
243
+ 'btn-link',
244
+ 'btn-outline',
245
+ 'btn-active',
246
+ 'btn-disabled',
247
+ 'btn-lg',
248
+ 'btn-md',
249
+ 'btn-sm',
250
+ 'btn-xs',
251
+ 'btn-circle',
252
+ 'btn-square',
253
+
254
+ // Dropdown
255
+ 'dropdown',
256
+ 'dropdown-content',
257
+ 'dropdown-end',
258
+ 'dropdown-top',
259
+ 'dropdown-bottom',
260
+ 'dropdown-left',
261
+ 'dropdown-right',
262
+ 'dropdown-hover',
263
+ 'dropdown-open',
264
+
265
+ // Modal
266
+ 'modal',
267
+ 'modal-box',
268
+ 'modal-action',
269
+ 'modal-backdrop',
270
+ 'modal-open',
271
+ 'modal-toggle',
272
+
273
+ // Data Display
274
+ 'avatar',
275
+ 'avatar-group',
276
+ 'badge',
277
+ 'badge-primary',
278
+ 'badge-secondary',
279
+ 'badge-accent',
280
+ 'badge-outline',
281
+ 'card',
282
+ 'card-title',
283
+ 'card-body',
284
+ 'card-actions',
285
+ 'carousel',
286
+ 'carousel-item',
287
+ 'collapse',
288
+ 'collapse-title',
289
+ 'collapse-content',
290
+ 'table',
291
+ 'table-zebra',
292
+ 'table-pin-rows',
293
+ 'table-pin-cols',
294
+
295
+ // Navigation
296
+ 'menu',
297
+ 'menu-title',
298
+ 'menu-dropdown',
299
+ 'menu-horizontal',
300
+ 'menu-vertical',
301
+ 'navbar',
302
+ 'navbar-start',
303
+ 'navbar-center',
304
+ 'navbar-end',
305
+ 'tabs',
306
+ 'tab',
307
+ 'tab-active',
308
+ 'tab-disabled',
309
+
310
+ // Feedback
311
+ 'alert',
312
+ 'alert-info',
313
+ 'alert-success',
314
+ 'alert-warning',
315
+ 'alert-error',
316
+ 'loading',
317
+ 'skeleton',
318
+ 'progress',
319
+ 'radial-progress',
320
+ 'toast',
321
+ 'toast-start',
322
+ 'toast-center',
323
+ 'toast-end',
324
+ 'tooltip',
325
+ 'tooltip-open',
326
+
327
+ // Data Input
328
+ 'checkbox',
329
+ 'checkbox-primary',
330
+ 'checkbox-secondary',
331
+ 'checkbox-accent',
332
+ 'input',
333
+ 'input-bordered',
334
+ 'input-primary',
335
+ 'input-secondary',
336
+ 'input-accent',
337
+ 'input-error',
338
+ 'input-disabled',
339
+ 'input-lg',
340
+ 'input-md',
341
+ 'input-sm',
342
+ 'input-xs',
343
+ 'radio',
344
+ 'radio-primary',
345
+ 'radio-secondary',
346
+ 'radio-accent',
347
+ 'range',
348
+ 'range-primary',
349
+ 'range-secondary',
350
+ 'range-accent',
351
+ 'select',
352
+ 'select-bordered',
353
+ 'select-primary',
354
+ 'select-secondary',
355
+ 'select-accent',
356
+ 'toggle',
357
+ 'toggle-primary',
358
+ 'toggle-secondary',
359
+ 'toggle-accent',
360
+
361
+ // Layout
362
+ 'drawer',
363
+ 'drawer-toggle',
364
+ 'drawer-content',
365
+ 'drawer-side',
366
+ 'drawer-overlay',
367
+ 'drawer-end',
368
+ 'footer',
369
+ 'footer-title',
370
+ 'footer-center',
371
+ 'hero',
372
+ 'hero-content',
373
+ 'hero-overlay',
374
+ 'indicator',
375
+ 'indicator-item',
376
+ 'indicator-start',
377
+ 'indicator-center',
378
+ 'indicator-end',
379
+ 'divider',
380
+ 'divider-horizontal',
381
+ 'divider-vertical',
382
+ 'join',
383
+ 'join-item',
384
+ 'stack'
385
+ ];
386
+
207
387
  // Export all arrays as a single safelist
208
388
  export const safelist = [
209
389
  ...textColors,
@@ -224,5 +404,8 @@ export const safelist = [
224
404
  ...sizing,
225
405
  ...positioning,
226
406
  ...cursors,
227
- ...misc
407
+ ...misc,
408
+ ...daisyui
228
409
  ];
410
+
411
+ export const responsive = ['sm:w-[460px]', 'md:flex', 'lg:block', 'sm:gap-2'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",