@ryanhe919/lumen-ui 0.2.0 → 0.2.1

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/index.d.ts CHANGED
@@ -67,7 +67,7 @@ export declare interface LMBadgeProps {
67
67
  icon?: default_2.ReactNode;
68
68
  }
69
69
 
70
- export declare type LMBadgeSize = 'xs' | 'sm' | 'md' | 'lg';
70
+ export declare type LMBadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
71
71
 
72
72
  export declare type LMBadgeVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
73
73
 
@@ -188,6 +188,8 @@ export declare interface LMDatePickerProps {
188
188
  errorMessage?: string;
189
189
  /** Custom class name */
190
190
  className?: string;
191
+ /** Enable time picker */
192
+ showTime?: boolean | TimePickerOptions;
191
193
  }
192
194
 
193
195
  export declare const LMDrawer: default_2.FC<LMDrawerProps>;
@@ -809,6 +811,72 @@ export declare interface LMTooltipProps {
809
811
  size?: ComponentSize;
810
812
  }
811
813
 
814
+ export declare const LMUpload: default_2.FC<LMUploadProps>;
815
+
816
+ export declare interface LMUploadFile {
817
+ /** Unique file ID */
818
+ uid: string;
819
+ /** File name */
820
+ name: string;
821
+ /** File size in bytes */
822
+ size: number;
823
+ /** File type */
824
+ type: string;
825
+ /** Upload status */
826
+ status: 'uploading' | 'done' | 'error';
827
+ /** Upload progress (0-100) */
828
+ percent?: number;
829
+ /** Error message */
830
+ error?: string;
831
+ /** Original file object */
832
+ originFile?: File;
833
+ /** Preview URL (for images) */
834
+ url?: string;
835
+ }
836
+
837
+ export declare interface LMUploadProps {
838
+ /** File list (controlled) */
839
+ fileList?: LMUploadFile[];
840
+ /** Default file list */
841
+ defaultFileList?: LMUploadFile[];
842
+ /** Accept file types (e.g., "image/*,.pdf") */
843
+ accept?: string;
844
+ /** Allow multiple files */
845
+ multiple?: boolean;
846
+ /** Max file count */
847
+ maxCount?: number;
848
+ /** Max file size in bytes */
849
+ maxSize?: number;
850
+ /** Disabled state */
851
+ disabled?: boolean;
852
+ /** Show file list */
853
+ showFileList?: boolean;
854
+ /** Upload mode: drag area or button */
855
+ listType?: 'text' | 'picture';
856
+ /** Component size */
857
+ size?: ComponentSize;
858
+ /** Custom upload handler */
859
+ customRequest?: (file: File) => Promise<string>;
860
+ /** Change handler */
861
+ onChange?: (fileList: LMUploadFile[]) => void;
862
+ /** Before upload hook, return false to prevent upload */
863
+ beforeUpload?: (file: File) => boolean | Promise<boolean>;
864
+ /** Remove handler */
865
+ onRemove?: (file: LMUploadFile) => void | boolean | Promise<boolean>;
866
+ /** Error state */
867
+ error?: boolean;
868
+ /** Error message */
869
+ errorMessage?: string;
870
+ /** Placeholder text */
871
+ placeholder?: string;
872
+ /** Hint text below the upload area */
873
+ hint?: string;
874
+ /** Custom class name */
875
+ className?: string;
876
+ /** Children for custom trigger */
877
+ children?: default_2.ReactNode;
878
+ }
879
+
812
880
  /** Button size config */
813
881
  export declare const SIZE_BUTTON_CONFIG: Record<ComponentSize, {
814
882
  padding: string;
@@ -866,6 +934,23 @@ export declare const SIZE_TOOLTIP_CONFIG: Record<ComponentSize, {
866
934
  maxWidth: number;
867
935
  }>;
868
936
 
937
+ export declare interface TimePickerOptions {
938
+ /** Show hour selector */
939
+ showHour?: boolean;
940
+ /** Show minute selector */
941
+ showMinute?: boolean;
942
+ /** Show second selector */
943
+ showSecond?: boolean;
944
+ /** Hour step */
945
+ hourStep?: number;
946
+ /** Minute step */
947
+ minuteStep?: number;
948
+ /** Second step */
949
+ secondStep?: number;
950
+ /** Use 12-hour format */
951
+ use12Hours?: boolean;
952
+ }
953
+
869
954
  export declare const useConfirm: () => UseConfirmReturn;
870
955
 
871
956
  export declare interface UseConfirmReturn {