@makolabs/ripple 0.0.1-dev.22 → 0.0.1-dev.24

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.
@@ -70,8 +70,12 @@
70
70
  <label
71
71
  class={cn(
72
72
  'group relative block rounded-[32px] border-2 border-dashed p-12 text-center transition-colors',
73
- isDragging ? 'border-primary-400 bg-primary-50' : 'border-default-200 bg-white',
74
- disabled ? 'cursor-not-allowed opacity-50' : 'hover:bg-default-50 cursor-pointer',
73
+ {
74
+ 'border-primary-400 bg-primary-50': isDragging,
75
+ 'border-default-200 bg-white': !isDragging,
76
+ 'cursor-not-allowed opacity-50': disabled,
77
+ 'hover:bg-default-50 cursor-pointer': !disabled
78
+ },
75
79
  dropzoneClass
76
80
  )}
77
81
  ondragenter={handleDragEnter}
@@ -107,13 +111,13 @@
107
111
  </div>
108
112
 
109
113
  <!-- Upload Text -->
110
- <div class="text-lg">
114
+ <div class="text-sm">
111
115
  <span class="text-primary-500 font-medium">Click here</span>
112
116
  <span class="text-default-600"> to upload your file or drag and drop.</span>
113
117
  </div>
114
118
 
115
119
  <!-- File Type Info -->
116
- <div class="text-default-500 text-sm">
120
+ <div class="text-default-500 text-xs">
117
121
  Supported Format: {allowedMimeTypes.length ? allowedMimeTypes.join(', ') : 'SVG, JPG, PNG'}
118
122
  {#if maxSize}
119
123
  ({formatFileSize(maxSize)} each)
package/dist/index.d.ts CHANGED
@@ -459,7 +459,7 @@ export interface FileUploadProps {
459
459
  */
460
460
  allowedMimeTypes?: string[];
461
461
  /**
462
- * Maximum file size in bytes;
462
+ * Maximum file size in bytes
463
463
  */
464
464
  maxSize?: number;
465
465
  /**
@@ -475,10 +475,6 @@ export interface FileUploadProps {
475
475
  * CSS class for the dropzone
476
476
  */
477
477
  dropzoneClass?: string;
478
- /**
479
- * CSS class for the preview area
480
- */
481
- previewClass?: string;
482
478
  /**
483
479
  * ID for the file input element
484
480
  * @default 'file-upload'
@@ -488,34 +484,6 @@ export interface FileUploadProps {
488
484
  * Callback when files are selected or dropped
489
485
  */
490
486
  onfiles?: (files: FileList | File[]) => void;
491
- /**
492
- * Callback when a file is deleted
493
- */
494
- ondelete?: (fileId: string, index: number) => void;
495
- /**
496
- * Current files array to display
497
- */
498
- files?: UploadedFile[];
499
- /**
500
- * API URL for file upload
501
- */
502
- apiUrl?: string;
503
- /**
504
- * Authorization token for API requests
505
- */
506
- apiToken?: string;
507
- /**
508
- * Handler for unsuccessful file uploads
509
- */
510
- onerror?: (error: string) => void;
511
- /**
512
- * Expired time in days
513
- */
514
- expiry?: `${string}d`;
515
- /**
516
- * Additional metadata to be sent with the file
517
- */
518
- metadata?: Record<string, string>;
519
487
  }
520
488
  export interface FilePreviewProps {
521
489
  files: UploadedFile[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "0.0.1-dev.22",
3
+ "version": "0.0.1-dev.24",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "repository": {
6
6
  "type": "git",