@synerise/ds-list 0.6.87 → 0.7.0
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/CHANGELOG.md +19 -0
- package/dist/Elements/Text/Text.d.ts +7 -6
- package/dist/Elements/Text/Text.js +2 -2
- package/dist/List.types.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.7.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@0.6.88...@synerise/ds-list@0.7.0) (2024-10-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **storybook7:** added list stories ([913fa2e](https://github.com/Synerise/synerise-design/commit/913fa2ebf13111a67379b85521a2025ef3892527))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.6.88](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@0.6.87...@synerise/ds-list@0.6.88) (2024-10-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-list
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.6.87](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@0.6.86...@synerise/ds-list@0.6.87) (2024-10-01)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-list
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode, KeyboardEvent, MouseEvent } from 'react';
|
|
2
2
|
import * as S from './Text.styles';
|
|
3
|
-
|
|
3
|
+
export type TextProps = {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
icon?: JSX.Element;
|
|
6
6
|
danger?: boolean;
|
|
7
|
-
actions?:
|
|
8
|
-
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
onSelect?: (e?: MouseEvent | KeyboardEvent) => void;
|
|
9
10
|
size?: S.ListItemType;
|
|
10
|
-
}
|
|
11
|
-
declare const Text: React.
|
|
11
|
+
};
|
|
12
|
+
declare const Text: ({ disabled, icon, onSelect, danger, actions, children, size }: TextProps) => React.JSX.Element;
|
|
12
13
|
export default Text;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
2
|
import * as S from './Text.styles';
|
|
3
3
|
|
|
4
4
|
var Text = function Text(_ref) {
|
|
@@ -10,7 +10,7 @@ var Text = function Text(_ref) {
|
|
|
10
10
|
children = _ref.children,
|
|
11
11
|
_ref$size = _ref.size,
|
|
12
12
|
size = _ref$size === void 0 ? 'small' : _ref$size;
|
|
13
|
-
var onKeyUpHandler =
|
|
13
|
+
var onKeyUpHandler = useCallback(function (event) {
|
|
14
14
|
return event.nativeEvent.code === 'Space' && onSelect && onSelect(event);
|
|
15
15
|
}, [onSelect]);
|
|
16
16
|
return /*#__PURE__*/React.createElement(S.Wrapper, {
|
package/dist/List.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListProps } from 'antd/lib/list';
|
|
2
2
|
import { RadioGroupProps } from 'antd/lib/radio';
|
|
3
|
-
export
|
|
3
|
+
export type ListPropsType<T> = Omit<ListProps<T>, 'dataSource' | 'footer'> & {
|
|
4
4
|
dataSource: T[] | T[][];
|
|
5
5
|
radio?: boolean;
|
|
6
6
|
options?: RadioGroupProps;
|
|
7
7
|
dashed?: boolean;
|
|
8
|
-
}
|
|
8
|
+
};
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-list",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "List UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-divider": "^0.7.
|
|
38
|
-
"@synerise/ds-radio": "^0.12.
|
|
37
|
+
"@synerise/ds-divider": "^0.7.9",
|
|
38
|
+
"@synerise/ds-radio": "^0.12.7",
|
|
39
39
|
"@synerise/ds-utils": "^0.30.0",
|
|
40
40
|
"uuid": "^8.3.2"
|
|
41
41
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react": ">=16.9.0 <= 17.0.2",
|
|
46
46
|
"styled-components": "5.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e8e5f3ad6ef7c84de801b5097c715e0320c12350"
|
|
49
49
|
}
|