@delightui/components 0.1.156 → 0.1.158
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/cjs/components/molecules/Search/Search.d.ts +1 -0
- package/dist/cjs/components/molecules/Search/Search.types.d.ts +6 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.presenter.d.ts +1 -1
- package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +40 -1
- package/dist/cjs/components/organisms/Dropzone/index.d.ts +2 -2
- package/dist/cjs/components/organisms/Form/DropzoneFormExample.d.ts +4 -0
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Search/Search.d.ts +1 -0
- package/dist/esm/components/molecules/Search/Search.types.d.ts +6 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.presenter.d.ts +1 -1
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +40 -1
- package/dist/esm/components/organisms/Dropzone/index.d.ts +2 -2
- package/dist/esm/components/organisms/Form/DropzoneFormExample.d.ts +4 -0
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +48 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2202,6 +2202,12 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
|
|
|
2202
2202
|
* Callback function to handle search with the query string
|
|
2203
2203
|
*/
|
|
2204
2204
|
onSearch?: SearchCallback;
|
|
2205
|
+
/**
|
|
2206
|
+
* Callback function to handle clear button click
|
|
2207
|
+
* Called when the user clicks the clear button (X icon)
|
|
2208
|
+
* This is separate from onValueChange to provide explicit clear intent
|
|
2209
|
+
*/
|
|
2210
|
+
onClear?: () => void;
|
|
2205
2211
|
/**
|
|
2206
2212
|
* Debounce delay in milliseconds for auto style
|
|
2207
2213
|
* @default 300
|
|
@@ -2243,6 +2249,7 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
|
|
|
2243
2249
|
declare const Search: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & ControlledFormComponentProps<string> & {
|
|
2244
2250
|
style?: SearchStyleEnum;
|
|
2245
2251
|
onSearch?: SearchCallback;
|
|
2252
|
+
onClear?: () => void;
|
|
2246
2253
|
debounceMs?: number;
|
|
2247
2254
|
minCharacters?: number;
|
|
2248
2255
|
showSubmitButton?: boolean;
|
|
@@ -2252,6 +2259,15 @@ declare const Search: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAt
|
|
|
2252
2259
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
2253
2260
|
|
|
2254
2261
|
type DropzoneStatus = 'Empty' | 'Loading' | 'Uploaded';
|
|
2262
|
+
/**
|
|
2263
|
+
* Metadata for uploaded files in URL mode
|
|
2264
|
+
*/
|
|
2265
|
+
type UploadedFileMetadata = {
|
|
2266
|
+
url: string;
|
|
2267
|
+
filename: string;
|
|
2268
|
+
size?: number;
|
|
2269
|
+
mimetype?: string;
|
|
2270
|
+
};
|
|
2255
2271
|
/**
|
|
2256
2272
|
* Dropzone component props
|
|
2257
2273
|
* @param empty React.ReactNode - The empty state of the dropzone.
|
|
@@ -2316,6 +2332,25 @@ type DropzoneProps<T extends File | string = File> = ControlledFormComponentProp
|
|
|
2316
2332
|
* @default 'File'
|
|
2317
2333
|
*/
|
|
2318
2334
|
type?: 'File' | 'URL';
|
|
2335
|
+
/**
|
|
2336
|
+
* Async callback for uploading files and returning URLs (URL mode only)
|
|
2337
|
+
* @param files The files to upload
|
|
2338
|
+
* @returns Promise resolving to array of uploaded file URLs
|
|
2339
|
+
*/
|
|
2340
|
+
onUpload?: (files: File[]) => Promise<string[]>;
|
|
2341
|
+
/**
|
|
2342
|
+
* Callback when files are deleted/cleared
|
|
2343
|
+
* @param value The current value being deleted
|
|
2344
|
+
* @returns Promise or void
|
|
2345
|
+
*/
|
|
2346
|
+
onDelete?: (value: T[]) => Promise<void> | void;
|
|
2347
|
+
/**
|
|
2348
|
+
* Function to resolve metadata from URLs (URL mode only)
|
|
2349
|
+
* Used when loading existing URLs to get display metadata
|
|
2350
|
+
* @param urls Array of URLs to resolve metadata for
|
|
2351
|
+
* @returns Promise or array of metadata objects
|
|
2352
|
+
*/
|
|
2353
|
+
resolveMetadata?: (urls: string[]) => Promise<UploadedFileMetadata[]> | UploadedFileMetadata[];
|
|
2319
2354
|
};
|
|
2320
2355
|
/**
|
|
2321
2356
|
* Dropzone context type
|
|
@@ -2330,7 +2365,11 @@ type DropzoneContextType<T extends File | string = File> = {
|
|
|
2330
2365
|
*/
|
|
2331
2366
|
status: DropzoneStatus;
|
|
2332
2367
|
/**
|
|
2333
|
-
* The
|
|
2368
|
+
* The type of the dropzone (File or URL mode).
|
|
2369
|
+
*/
|
|
2370
|
+
type: 'File' | 'URL';
|
|
2371
|
+
/**
|
|
2372
|
+
* The files of the dropzone (raw File objects from user selection).
|
|
2334
2373
|
*/
|
|
2335
2374
|
files: File[];
|
|
2336
2375
|
/**
|
|
@@ -2343,7 +2382,14 @@ type DropzoneContextType<T extends File | string = File> = {
|
|
|
2343
2382
|
accept: {
|
|
2344
2383
|
[key: string]: readonly string[];
|
|
2345
2384
|
};
|
|
2385
|
+
/**
|
|
2386
|
+
* The form value (File[] in File mode, string[] in URL mode).
|
|
2387
|
+
*/
|
|
2346
2388
|
value?: T[];
|
|
2389
|
+
/**
|
|
2390
|
+
* Metadata for uploaded files (primarily used in URL mode for display).
|
|
2391
|
+
*/
|
|
2392
|
+
metadata?: UploadedFileMetadata[];
|
|
2347
2393
|
/**
|
|
2348
2394
|
* The function to call to open the file dialog.
|
|
2349
2395
|
*/
|
|
@@ -2795,4 +2841,4 @@ declare const NotificationContext: React__default.Context<NotificationContextVal
|
|
|
2795
2841
|
declare const NotificationProvider: React__default.FC<NotificationProviderProps>;
|
|
2796
2842
|
declare const useNotification: () => NotificationContextValue;
|
|
2797
2843
|
|
|
2798
|
-
export { type AccessibilityActions, type AccessibilityProps, Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Checkbox, CheckboxItem, type CheckboxItemProps, type CheckboxLabelAlignmentEnum, type CheckboxProps, type CheckboxSizeEnum, type CheckboxTypeEnum, Chip, ChipInput, type ChipInputProps, type ChipProps, ConditionalView, type ConditionalViewProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, DateInput, type DateInputProps, DatePicker, type DatePickerProps, SortableItem as DraggableItem, SortableTrigger as DraggableItemTrigger, Dropzone, DropzoneClear, DropzoneContent, type DropzoneContentProps, type DropzoneContentTypeEnum, DropzoneFilename, DropzoneFilename as DropzonePreview, type DropzoneProps, DropzoneSupportedFormats as DropzoneReject, DropzoneTrigger as DropzoneRoot, DropzoneSupportedFormats, DropzoneTrigger, type FieldValidationFunction, type FieldValidators, type FieldValue, Form, type FormContextValues, type FormErrors, FormField, type FormFieldProps, type FormProps, type FormProviderProps, type FormState, type FormStateChangeHandler, type FormSubmitHandler, type FormValidator, Grid, GridItem, type GridItemProps, GridList, type GridListProps, type GridProps, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, ListItem, type ListItemProps$1 as ListItemProps, type ListProps, Modal, type ModalComponentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalProvider, type ModalProviderProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type Notification, type NotificationContainerProps, NotificationContext, type NotificationOffset, type NotificationPosition, NotificationProvider, type NotificationTrigger, Option, type OptionLike, type OptionLikeKey, type OptionProps, type OverlayDirectionEnum, Pagination, PaginationNumberField, type PaginationNumberFieldProps, type PaginationProps, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, RadioButton, RadioButtonItem, type RadioButtonItemProps, type RadioButtonLabelAlignmentEnum, type RadioButtonProps, type RadioButtonSizeEnum, RadioGroup, type RadioGroupProps, RenderStateView, type RenderStateViewProps, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Search, type SearchCallback, type SearchStyleEnum as SearchModeEnum, type SearchProps, Select, SelectListItem, type SelectListItemProps, type SelectProps, SelectProvider, SlideOutPanel, type SlideOutPanelDirectionEnum, type SlideOutPanelProps, type SlideOutPanelSizeEnum, Slider, type SliderProps, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Text, TextArea, type TextAreaProps, type TextDecorationEnum, type TextProps, type TextTypeEnum, type TextWeightEnum, ThemeContext, type ThemeContextType, ThemeProvider, type ThemeProviderProps, Toggle, ToggleButton, type ToggleButtonProps, type ToggleLabelAlignmentEnum, type ToggleProps, Tooltip, type TooltipProps, type TriggerNotificationPayload, type UseModalReturn, WrapTextNodes, type WrapTextNodesProps, applyPropsToChildren, getClickAccessibilityProps, mergeRefs, useDebounce, useDropzoneContext, useForm, useFormTyped, useInflateView, useModal, useNotification, useSelectContext, useTab };
|
|
2844
|
+
export { type AccessibilityActions, type AccessibilityProps, Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Checkbox, CheckboxItem, type CheckboxItemProps, type CheckboxLabelAlignmentEnum, type CheckboxProps, type CheckboxSizeEnum, type CheckboxTypeEnum, Chip, ChipInput, type ChipInputProps, type ChipProps, ConditionalView, type ConditionalViewProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, DateInput, type DateInputProps, DatePicker, type DatePickerProps, SortableItem as DraggableItem, SortableTrigger as DraggableItemTrigger, Dropzone, DropzoneClear, DropzoneContent, type DropzoneContentProps, type DropzoneContentTypeEnum, DropzoneFilename, DropzoneFilename as DropzonePreview, type DropzoneProps, DropzoneSupportedFormats as DropzoneReject, DropzoneTrigger as DropzoneRoot, DropzoneSupportedFormats, DropzoneTrigger, type FieldValidationFunction, type FieldValidators, type FieldValue, Form, type FormContextValues, type FormErrors, FormField, type FormFieldProps, type FormProps, type FormProviderProps, type FormState, type FormStateChangeHandler, type FormSubmitHandler, type FormValidator, Grid, GridItem, type GridItemProps, GridList, type GridListProps, type GridProps, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, ListItem, type ListItemProps$1 as ListItemProps, type ListProps, Modal, type ModalComponentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalProvider, type ModalProviderProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type Notification, type NotificationContainerProps, NotificationContext, type NotificationOffset, type NotificationPosition, NotificationProvider, type NotificationTrigger, Option, type OptionLike, type OptionLikeKey, type OptionProps, type OverlayDirectionEnum, Pagination, PaginationNumberField, type PaginationNumberFieldProps, type PaginationProps, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, RadioButton, RadioButtonItem, type RadioButtonItemProps, type RadioButtonLabelAlignmentEnum, type RadioButtonProps, type RadioButtonSizeEnum, RadioGroup, type RadioGroupProps, RenderStateView, type RenderStateViewProps, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Search, type SearchCallback, type SearchStyleEnum as SearchModeEnum, type SearchProps, Select, SelectListItem, type SelectListItemProps, type SelectProps, SelectProvider, SlideOutPanel, type SlideOutPanelDirectionEnum, type SlideOutPanelProps, type SlideOutPanelSizeEnum, Slider, type SliderProps, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Text, TextArea, type TextAreaProps, type TextDecorationEnum, type TextProps, type TextTypeEnum, type TextWeightEnum, ThemeContext, type ThemeContextType, ThemeProvider, type ThemeProviderProps, Toggle, ToggleButton, type ToggleButtonProps, type ToggleLabelAlignmentEnum, type ToggleProps, Tooltip, type TooltipProps, type TriggerNotificationPayload, type UploadedFileMetadata, type UseModalReturn, WrapTextNodes, type WrapTextNodesProps, applyPropsToChildren, getClickAccessibilityProps, mergeRefs, useDebounce, useDropzoneContext, useForm, useFormTyped, useInflateView, useModal, useNotification, useSelectContext, useTab };
|