@delightui/components 0.1.18 → 0.1.19
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 +2 -1
- package/dist/cjs/components/atoms/List/List.d.ts +2 -1
- package/dist/cjs/components/atoms/List/components/ListItem.d.ts +2 -1
- package/dist/cjs/components/atoms/List/components/RootList.d.ts +2 -1
- package/dist/cjs/components/atoms/List/components/SortableList.d.ts +2 -1
- package/dist/cjs/components/atoms/List/components/SortableListItem.d.ts +2 -1
- package/dist/cjs/library.js +2 -2
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +2 -1
- package/dist/esm/components/atoms/List/List.d.ts +2 -1
- package/dist/esm/components/atoms/List/components/ListItem.d.ts +2 -1
- package/dist/esm/components/atoms/List/components/RootList.d.ts +2 -1
- package/dist/esm/components/atoms/List/components/SortableList.d.ts +2 -1
- package/dist/esm/components/atoms/List/components/SortableListItem.d.ts +2 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +44 -45
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ListItemType, ListProps } from './List.types';
|
|
2
3
|
/**
|
|
3
4
|
* A wrapper component that manages the rendering of either a sortable or regular list based on the provided props.
|
|
@@ -6,5 +7,5 @@ import type { ListItemType, ListProps } from './List.types';
|
|
|
6
7
|
* @param {ListProps<T>} props - The properties for the list wrapper.
|
|
7
8
|
* @returns {JSX.Element} The rendered list component.
|
|
8
9
|
*/
|
|
9
|
-
declare const List: <T extends ListItemType>(props: ListProps<T>) =>
|
|
10
|
+
declare const List: <T extends ListItemType>(props: ListProps<T>) => React.JSX.Element;
|
|
10
11
|
export default List;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ListItemProps, ListItemType } from "../List.types";
|
|
2
3
|
/**
|
|
3
4
|
* A list item component that renders a single item.
|
|
@@ -6,4 +7,4 @@ import { ListItemProps, ListItemType } from "../List.types";
|
|
|
6
7
|
* @param {ListItemProps<T>} props - The properties for the list item.
|
|
7
8
|
* @returns {JSX.Element} The rendered list item.
|
|
8
9
|
*/
|
|
9
|
-
export declare const ListItem: <T extends ListItemType>(props: ListItemProps<T>) =>
|
|
10
|
+
export declare const ListItem: <T extends ListItemType>(props: ListItemProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ListItemType, RootListProps } from "../List.types";
|
|
2
3
|
/**
|
|
3
4
|
* A root list component that provides layout and styling for list items.
|
|
@@ -6,4 +7,4 @@ import { ListItemType, RootListProps } from "../List.types";
|
|
|
6
7
|
* @param {RootListProps<T>} props - The properties for the root list.
|
|
7
8
|
* @returns {JSX.Element} The rendered root list.
|
|
8
9
|
*/
|
|
9
|
-
export declare const RootList: <T extends ListItemType>(props: RootListProps<T>) =>
|
|
10
|
+
export declare const RootList: <T extends ListItemType>(props: RootListProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SortableListProps } from "../List.types";
|
|
2
3
|
/**
|
|
3
4
|
* A sortable list component that allows drag-and-drop reordering of items.
|
|
@@ -8,4 +9,4 @@ import { SortableListProps } from "../List.types";
|
|
|
8
9
|
*/
|
|
9
10
|
export declare const SortableList: <T extends {
|
|
10
11
|
id: string | number;
|
|
11
|
-
}>(props: SortableListProps<T>) =>
|
|
12
|
+
}>(props: SortableListProps<T>) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ListItemProps, ListItemType } from "../List.types";
|
|
2
3
|
/**
|
|
3
4
|
* A sortable item component that integrates with the dnd-kit library for drag-and-drop functionality.
|
|
@@ -6,4 +7,4 @@ import { ListItemProps, ListItemType } from "../List.types";
|
|
|
6
7
|
* @param {ListItemProps<T>} props - The properties for the sortable item.
|
|
7
8
|
* @returns {JSX.Element} The rendered sortable item.
|
|
8
9
|
*/
|
|
9
|
-
export declare const SortableItem: <T extends ListItemType>(props: ListItemProps<T>) =>
|
|
10
|
+
export declare const SortableItem: <T extends ListItemType>(props: ListItemProps<T>) => React.JSX.Element;
|