@delightui/components 0.1.73 → 0.1.75
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/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/dist/cjs/components/atoms/Checkbox/Checkbox.types.d.ts +6 -0
- package/dist/cjs/components/molecules/ChipInput/ChipInput.utils.d.ts +2 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +9 -8
- package/dist/cjs/library.css +2033 -62
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +6 -0
- package/dist/esm/components/molecules/ChipInput/ChipInput.utils.d.ts +2 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +9 -8
- package/dist/esm/library.css +2033 -62
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +17 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -680,6 +680,7 @@ declare const Chip: (props: ChipProps) => React__default.JSX.Element;
|
|
|
680
680
|
|
|
681
681
|
type CheckboxSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
682
682
|
type CheckboxLabelAlignmentEnum = 'Left' | 'Right';
|
|
683
|
+
type CheckboxTypeEnum = 'Default' | 'Inverse';
|
|
683
684
|
type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value' | 'size'> & {
|
|
684
685
|
/**
|
|
685
686
|
* The label of the checkbox.
|
|
@@ -690,6 +691,11 @@ type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'check
|
|
|
690
691
|
* @default 'Medium'
|
|
691
692
|
*/
|
|
692
693
|
size?: CheckboxSizeEnum;
|
|
694
|
+
/**
|
|
695
|
+
* The type of the checkbox for inverse colors
|
|
696
|
+
* @default 'Default'
|
|
697
|
+
*/
|
|
698
|
+
type?: CheckboxTypeEnum;
|
|
693
699
|
/**
|
|
694
700
|
* The checked state of the checkbox.
|
|
695
701
|
*/
|
|
@@ -727,6 +733,7 @@ type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'check
|
|
|
727
733
|
declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type" | "size"> & {
|
|
728
734
|
children?: React__default.ReactNode;
|
|
729
735
|
size?: CheckboxSizeEnum;
|
|
736
|
+
type?: CheckboxTypeEnum;
|
|
730
737
|
checked?: boolean;
|
|
731
738
|
onValueChanged?: (value: boolean) => void;
|
|
732
739
|
defaultChecked?: boolean;
|
|
@@ -2110,10 +2117,11 @@ type ChipInputProps = {
|
|
|
2110
2117
|
|
|
2111
2118
|
declare const _default: React__default.NamedExoticComponent<ChipInputProps>;
|
|
2112
2119
|
|
|
2120
|
+
type DropzoneStatus = 'Empty' | 'Loading' | 'Uploaded';
|
|
2113
2121
|
/**
|
|
2114
2122
|
* Dropzone component props
|
|
2115
|
-
* @param
|
|
2116
|
-
* @param
|
|
2123
|
+
* @param empty React.ReactNode - The empty state of the dropzone.
|
|
2124
|
+
* @param loading React.ReactNode - The loading state of the dropzone.
|
|
2117
2125
|
* @param uploaded React.ReactNode - The uploaded state of the dropzone.
|
|
2118
2126
|
* @param accept { [key: string]: readonly string[] } - The accepted file types.
|
|
2119
2127
|
* @param maxSize number - The maximum size of the file in bytes.
|
|
@@ -2124,13 +2132,13 @@ declare const _default: React__default.NamedExoticComponent<ChipInputProps>;
|
|
|
2124
2132
|
type DropzoneProps = {
|
|
2125
2133
|
className?: string;
|
|
2126
2134
|
/**
|
|
2127
|
-
* The
|
|
2135
|
+
* The empty state of the dropzone.
|
|
2128
2136
|
*/
|
|
2129
|
-
|
|
2137
|
+
empty?: React.ReactNode;
|
|
2130
2138
|
/**
|
|
2131
|
-
* The
|
|
2139
|
+
* The loading state of the dropzone.
|
|
2132
2140
|
*/
|
|
2133
|
-
|
|
2141
|
+
loading?: React.ReactNode;
|
|
2134
2142
|
/**
|
|
2135
2143
|
* The uploaded state of the dropzone.
|
|
2136
2144
|
*/
|
|
@@ -2167,7 +2175,7 @@ type DropzoneProps = {
|
|
|
2167
2175
|
};
|
|
2168
2176
|
/**
|
|
2169
2177
|
* Dropzone context type
|
|
2170
|
-
* @param status
|
|
2178
|
+
* @param status DropzoneStatus - The status of the dropzone.
|
|
2171
2179
|
* @param file File | null - The file of the dropzone.
|
|
2172
2180
|
* @param selectFile () => void - The function to call when the file is selected.
|
|
2173
2181
|
* @param resetUpload () => void - The function to call when the file is reset.
|
|
@@ -2176,7 +2184,7 @@ type DropzoneContextType = {
|
|
|
2176
2184
|
/**
|
|
2177
2185
|
* The status of the dropzone.
|
|
2178
2186
|
*/
|
|
2179
|
-
status:
|
|
2187
|
+
status: DropzoneStatus;
|
|
2180
2188
|
/**
|
|
2181
2189
|
* The files of the dropzone.
|
|
2182
2190
|
*/
|
|
@@ -2443,4 +2451,4 @@ declare const NotificationContext: React__default.Context<NotificationContextVal
|
|
|
2443
2451
|
declare const NotificationProvider: React__default.FC<NotificationProviderProps>;
|
|
2444
2452
|
declare const useNotification: () => NotificationContextValue;
|
|
2445
2453
|
|
|
2446
|
-
export { 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, Chip, _default as ChipInput, type ChipInputProps, type ChipListItemProps, type ChipListItemTypeEnum, type ChipProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, 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 FormFieldPropsWithProvider, 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, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type NotificationContainerProps, NotificationContext, NotificationProvider, Option, 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, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, 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, useDropzoneContext, useField, useNotification, useSelectContext, useTab };
|
|
2454
|
+
export { 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, _default as ChipInput, type ChipInputProps, type ChipListItemProps, type ChipListItemTypeEnum, type ChipProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, 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 FormFieldPropsWithProvider, 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, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type NotificationContainerProps, NotificationContext, NotificationProvider, Option, 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, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, 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, useDropzoneContext, useField, useNotification, useSelectContext, useTab };
|