@chayns-components/core 5.0.0-beta.970 → 5.0.0-beta.972
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/lib/cjs/components/file-input/FileInput.js +12 -8
- package/lib/cjs/components/file-input/FileInput.js.map +1 -1
- package/lib/cjs/components/list/list-item/ListItem.js +16 -14
- package/lib/cjs/components/list/list-item/ListItem.js.map +1 -1
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.js +6 -6
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/cjs/index.js +7 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/file-input/FileInput.js +12 -8
- package/lib/esm/components/file-input/FileInput.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.js +16 -14
- package/lib/esm/components/list/list-item/ListItem.js.map +1 -1
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.js +6 -6
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/components/file-input/FileInput.d.ts +4 -0
- package/lib/types/components/list/list-item/ListItem.d.ts +17 -11
- package/lib/types/components/list/list-item/list-item-head/ListItemHead.d.ts +3 -3
- package/lib/types/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -28,14 +28,19 @@ export type ListItemProps = {
|
|
|
28
28
|
* This can be used to automatically expand the `ListItem` during the first render.
|
|
29
29
|
*/
|
|
30
30
|
isDefaultOpen?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* This overrides the internal opening state of the item and makes it controlled.
|
|
33
|
+
*/
|
|
34
|
+
isOpen?: boolean;
|
|
31
35
|
/**
|
|
32
36
|
* Whether the ListItem locks disabled but has full functionality.
|
|
33
37
|
*/
|
|
34
38
|
isTitleGreyed?: boolean;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Elements that are displayed on the left side of the header. If multiple
|
|
41
|
+
* elements are specified, they are displayed one aside the other.
|
|
37
42
|
*/
|
|
38
|
-
|
|
43
|
+
leftElements?: ListItemElements;
|
|
39
44
|
/**
|
|
40
45
|
* Function to be executed when the header of the `ListItem` was clicked
|
|
41
46
|
*/
|
|
@@ -53,11 +58,6 @@ export type ListItemProps = {
|
|
|
53
58
|
* Function to be executed when the ListItem is opened.
|
|
54
59
|
*/
|
|
55
60
|
onOpen?: VoidFunction;
|
|
56
|
-
/**
|
|
57
|
-
* Elements that are displayed on the left side of the header. If multiple
|
|
58
|
-
* elements are specified, they are displayed one aside the other.
|
|
59
|
-
*/
|
|
60
|
-
leftElements?: ListItemElements;
|
|
61
61
|
/**
|
|
62
62
|
* Elements that are displayed on the right side of the header. If multiple
|
|
63
63
|
* elements are specified, they are displayed one below the other.
|
|
@@ -67,15 +67,15 @@ export type ListItemProps = {
|
|
|
67
67
|
* This will force the background color of the ListItem to be used even if it is closed and not hovered.
|
|
68
68
|
*/
|
|
69
69
|
shouldForceBackground?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the bottom line should be hidden.
|
|
72
|
+
*/
|
|
73
|
+
shouldHideBottomLine?: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* Whether the background and border of the shape on which the image or icon of the element is displayed should be
|
|
72
76
|
* hidden.
|
|
73
77
|
*/
|
|
74
78
|
shouldHideImageOrIconBackground?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the bottom line should be hidden.
|
|
77
|
-
*/
|
|
78
|
-
shouldHideBottomLine?: boolean;
|
|
79
79
|
/**
|
|
80
80
|
* If the `ListItem` is expandable, the indicator is displayed on the left
|
|
81
81
|
* side of the header. If this property is set to true, the indicator is
|
|
@@ -86,6 +86,12 @@ export type ListItemProps = {
|
|
|
86
86
|
* Whether the image should be opened on click.
|
|
87
87
|
*/
|
|
88
88
|
shouldOpenImageOnClick?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the layout animation should be prevented. This is useful when the
|
|
91
|
+
* `ListItem` is used in a list with a lot of items and the layout animation
|
|
92
|
+
* is not desired.
|
|
93
|
+
*/
|
|
94
|
+
shouldPreventLayoutAnimation?: boolean;
|
|
89
95
|
/**
|
|
90
96
|
* Whether the image or icon should be displayed in a round shape. This should be always used for images of persons.
|
|
91
97
|
*/
|
|
@@ -7,18 +7,18 @@ type ListItemHeadProps = {
|
|
|
7
7
|
isAnyItemExpandable: boolean;
|
|
8
8
|
isExpandable: boolean;
|
|
9
9
|
isOpen: boolean;
|
|
10
|
+
isTitleGreyed?: boolean;
|
|
10
11
|
leftElements?: ReactNode;
|
|
11
12
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
12
13
|
onLongPress?: TouchEventHandler<HTMLDivElement>;
|
|
13
14
|
rightElements?: IListItemRightElements;
|
|
14
15
|
shouldHideImageOrIconBackground?: boolean;
|
|
15
16
|
shouldHideIndicator?: boolean;
|
|
16
|
-
|
|
17
|
+
shouldOpenImageOnClick: boolean;
|
|
17
18
|
shouldShowRoundImageOrIcon?: boolean;
|
|
19
|
+
subtitle?: ReactNode;
|
|
18
20
|
title: ReactNode;
|
|
19
21
|
titleElement?: ReactNode;
|
|
20
|
-
isDisabledButNotReallyDisabled?: boolean;
|
|
21
|
-
shouldOpenImageOnClick: boolean;
|
|
22
22
|
};
|
|
23
23
|
declare const ListItemHead: FC<ListItemHeadProps>;
|
|
24
24
|
export default ListItemHead;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as FilterButton } from './components/filter-buttons/filter-butt
|
|
|
19
19
|
export { default as FilterButtons } from './components/filter-buttons/FilterButtons';
|
|
20
20
|
export { default as GridImage } from './components/grid-image/GridImage';
|
|
21
21
|
export { default as Icon } from './components/icon/Icon';
|
|
22
|
-
export { default as Input } from './components/input/Input';
|
|
22
|
+
export { default as Input, InputSize } from './components/input/Input';
|
|
23
23
|
export { default as List } from './components/list/List';
|
|
24
24
|
export { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';
|
|
25
25
|
export { default as ListItem, type ListItemElements, type ListItemProps, } from './components/list/list-item/ListItem';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.972",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"lerna": "^8.1.9",
|
|
67
67
|
"react": "^18.3.1",
|
|
68
68
|
"react-dom": "^18.3.1",
|
|
69
|
-
"styled-components": "^6.1.
|
|
70
|
-
"typescript": "^5.7.
|
|
69
|
+
"styled-components": "^6.1.14",
|
|
70
|
+
"typescript": "^5.7.3"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@chayns/colors": "^2.0.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "5abe106c0c747ac66568fe087ae10e28185a0e98"
|
|
91
91
|
}
|