@delightui/components 0.1.97 → 0.1.99
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/index.d.ts +1 -0
- package/dist/cjs/components/utils/RenderStateView/RenderStateView.types.d.ts +1 -0
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/utils/RenderStateView/RenderStateView.types.d.ts +1 -0
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +44 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2183,6 +2183,49 @@ type SlideOutPanelProps = Omit<ModalProps, 'size' | 'header' | 'footer' | 'compo
|
|
|
2183
2183
|
|
|
2184
2184
|
declare const SlideOutPanel: (props: SlideOutPanelProps) => react_jsx_runtime.JSX.Element;
|
|
2185
2185
|
|
|
2186
|
+
type ConditionalViewProps = {
|
|
2187
|
+
condition: ReactNode | undefined;
|
|
2188
|
+
children: ReactNode;
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
declare const ConditionalView: ({ condition, children }: ConditionalViewProps) => React$1.ReactNode;
|
|
2192
|
+
|
|
2193
|
+
type WrapTextNodesProps = Omit<TextProps, 'className'>;
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* Wraps string and number children in a <Text> component.
|
|
2197
|
+
*/
|
|
2198
|
+
declare const WrapTextNodes: React__default.FC<WrapTextNodesProps>;
|
|
2199
|
+
|
|
2200
|
+
type RenderStateViewProps<T = unknown> = {
|
|
2201
|
+
className?: string;
|
|
2202
|
+
data: T | null | undefined;
|
|
2203
|
+
isLoading: boolean;
|
|
2204
|
+
Filled: React.ComponentType<{
|
|
2205
|
+
data: T;
|
|
2206
|
+
}>;
|
|
2207
|
+
Empty: React.ComponentType;
|
|
2208
|
+
Loading: React.ComponentType;
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
declare const RenderStateView: <T = unknown>(props: RenderStateViewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* Clones valid React elements and applies additional props to them.
|
|
2215
|
+
*
|
|
2216
|
+
* @param children - The child nodes to process.
|
|
2217
|
+
* @param extraProps - Additional props to be passed to valid React elements.
|
|
2218
|
+
* @returns A ReactNode with extra props applied to valid elements, leaving others unchanged.
|
|
2219
|
+
*/
|
|
2220
|
+
declare const applyPropsToChildren: (children: ReactNode, extraProps?: Record<string, any>) => ReactNode;
|
|
2221
|
+
/**
|
|
2222
|
+
* Utility function to merge multiple refs into a single ref callback function.
|
|
2223
|
+
*
|
|
2224
|
+
* @param refs - Refs to be merged.
|
|
2225
|
+
* @returns A callback function that sets the value on all merged refs.
|
|
2226
|
+
*/
|
|
2227
|
+
declare const mergeRefs: <T>(...refs: (Ref<T> | undefined)[]) => Ref<T>;
|
|
2228
|
+
|
|
2186
2229
|
type ThemeContextType = {
|
|
2187
2230
|
theme: string;
|
|
2188
2231
|
updateTheme: (theme: string) => void;
|
|
@@ -2237,4 +2280,4 @@ declare const NotificationContext: React__default.Context<NotificationContextVal
|
|
|
2237
2280
|
declare const NotificationProvider: React__default.FC<NotificationProviderProps>;
|
|
2238
2281
|
declare const useNotification: () => NotificationContextValue;
|
|
2239
2282
|
|
|
2240
|
-
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 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, useNotification, useSelectContext, useTab };
|
|
2283
|
+
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, ConditionalView, type ConditionalViewProps, 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 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, RenderStateView, type RenderStateViewProps, 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, WrapTextNodes, type WrapTextNodesProps, applyPropsToChildren, mergeRefs, useDropzoneContext, useNotification, useSelectContext, useTab };
|