@synerise/ds-list 1.1.25 → 1.1.27
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 +8 -0
- package/README.md +4 -4
- package/dist/Elements/Divider/Divider.d.ts +1 -1
- package/dist/Elements/Divider/Divider.js +8 -14
- package/dist/Elements/Divider/Divider.styles.d.ts +1 -1
- package/dist/Elements/Divider/Divider.styles.js +6 -3
- package/dist/Elements/ItemWrapper/ItemWrapper.d.ts +1 -1
- package/dist/Elements/ItemWrapper/ItemWrapper.js +7 -6
- package/dist/Elements/ItemWrapper/ItemWrapper.styles.d.ts +1 -1
- package/dist/Elements/ItemWrapper/ItemWrapper.styles.js +6 -3
- package/dist/Elements/Text/Text.d.ts +2 -2
- package/dist/Elements/Text/Text.js +22 -30
- package/dist/Elements/Text/Text.styles.d.ts +4 -4
- package/dist/Elements/Text/Text.styles.js +30 -31
- package/dist/Elements/index.js +8 -3
- package/dist/List.d.ts +2 -4
- package/dist/List.js +49 -69
- package/dist/List.types.d.ts +2 -2
- package/dist/List.types.js +1 -1
- package/dist/assets/style/index-tn0RQdqM.css +0 -0
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +7 -7
- package/dist/__spec__/List.spec.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [1.1.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@1.1.26...@synerise/ds-list@1.1.27) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-list
|
|
9
|
+
|
|
10
|
+
## [1.1.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@1.1.25...@synerise/ds-list@1.1.26) (2026-03-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-list
|
|
13
|
+
|
|
6
14
|
## [1.1.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list@1.1.24...@synerise/ds-list@1.1.25) (2026-03-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-list
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ List UI Component
|
|
|
16
16
|
| Property | Description | Type | Default |
|
|
17
17
|
| ---------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------- | -------------------- |
|
|
18
18
|
| bordered | Toggles rendering of the border around the list | boolean | `false` |
|
|
19
|
-
| dataSource | DataSource array of arrays for list
|
|
19
|
+
| dataSource | DataSource array or array of arrays for list | `T[] \| T[][]` | - |
|
|
20
20
|
| dashed | Define type of divider line | boolean | `true` |
|
|
21
21
|
| grid | The grid type of list. You can set grid to something like {gutter: 16, column: 4} | object | - |
|
|
22
22
|
| header | List header renderer | string | - |
|
|
@@ -31,16 +31,16 @@ List UI Component
|
|
|
31
31
|
| rowKey | Item's unique key, could be a string or function that returns a string | string / (record) = > string | key |
|
|
32
32
|
| radio | Whether or not list should be wrapper with radio group | boolean | - |
|
|
33
33
|
|
|
34
|
-
### List.
|
|
34
|
+
### List.Item
|
|
35
35
|
|
|
36
36
|
| Property | Description | Type | Default |
|
|
37
37
|
| -------- | --------------------------------------------------------- | --------------------- | ---------------------------- | --- |
|
|
38
38
|
| disabled | If element is disabled | boolean | - |
|
|
39
|
-
| icon | Item will be prefixed with this element |
|
|
39
|
+
| icon | Item will be prefixed with this element | JSX.Element | - |
|
|
40
40
|
| danger | If element should be marked as danger action (ie. delete) | boolean | - |
|
|
41
41
|
| actions | Actions for item, will be rendered at the end of the row | React.ReactNode | - |
|
|
42
42
|
| onSelect | Callback for selecting item | (e?: React.MouseEvent | React.KeyboardEvent) => void | - |
|
|
43
|
-
| size | Size of item in list | `small` / `medium` | `
|
|
43
|
+
| size | Size of item in list | `small` / `medium` | `small` |
|
|
44
44
|
|
|
45
45
|
### List.Divider
|
|
46
46
|
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Divider from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, /*#__PURE__*/React.createElement(Divider, {
|
|
10
|
-
dashed: dashed,
|
|
11
|
-
marginBottom: 8,
|
|
12
|
-
marginTop: 8
|
|
13
|
-
}));
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import Divider from "@synerise/ds-divider";
|
|
3
|
+
import { Wrapper } from "./Divider.styles.js";
|
|
4
|
+
const ListDivider = ({
|
|
5
|
+
dashed = true
|
|
6
|
+
}) => /* @__PURE__ */ jsx(Wrapper, { className: "ant-divider-wrapper", children: /* @__PURE__ */ jsx(Divider, { dashed, marginBottom: 8, marginTop: 8 }) });
|
|
7
|
+
export {
|
|
8
|
+
ListDivider as default
|
|
14
9
|
};
|
|
15
|
-
export default ListDivider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Wrapper: import(
|
|
1
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Dividerstyles__Wrapper",
|
|
4
4
|
componentId: "sc-7qo69v-0"
|
|
5
|
-
})(["padding:0 20px;"]);
|
|
5
|
+
})(["padding:0 20px;"]);
|
|
6
|
+
export {
|
|
7
|
+
Wrapper
|
|
8
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Wrapper } from "./ItemWrapper.styles.js";
|
|
3
|
+
const ItemWrapper = ({
|
|
4
|
+
children
|
|
5
|
+
}) => /* @__PURE__ */ jsx(Wrapper, { children });
|
|
6
|
+
export {
|
|
7
|
+
ItemWrapper as default
|
|
6
8
|
};
|
|
7
|
-
export default ItemWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Wrapper: import(
|
|
1
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "ItemWrapperstyles__Wrapper",
|
|
4
4
|
componentId: "sc-1fjxuxn-0"
|
|
5
|
-
})(["padding:8px 12px;"]);
|
|
5
|
+
})(["padding:8px 12px;"]);
|
|
6
|
+
export {
|
|
7
|
+
Wrapper
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
3
|
import * as S from './Text.styles';
|
|
4
4
|
export type TextProps = WithHTMLAttributes<HTMLLIElement, {
|
|
5
5
|
disabled?: boolean;
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onKeyUp: onKeyUpHandler,
|
|
24
|
-
danger: danger,
|
|
25
|
-
icon: icon,
|
|
26
|
-
size: size
|
|
27
|
-
}, htmlAttributes), icon && /*#__PURE__*/React.createElement(S.IconWrapper, null, icon), /*#__PURE__*/React.createElement(S.ContentWrapper, {
|
|
28
|
-
icon: icon
|
|
29
|
-
}, children), /*#__PURE__*/React.createElement(S.ActionWraper, null, actions && actions));
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { Wrapper, IconWrapper, ContentWrapper, ActionWraper } from "./Text.styles.js";
|
|
4
|
+
const Text = ({
|
|
5
|
+
disabled,
|
|
6
|
+
icon,
|
|
7
|
+
onSelect,
|
|
8
|
+
danger,
|
|
9
|
+
actions,
|
|
10
|
+
children,
|
|
11
|
+
size = "small",
|
|
12
|
+
...htmlAttributes
|
|
13
|
+
}) => {
|
|
14
|
+
const onKeyUpHandler = useCallback((event) => event.nativeEvent.code === "Space" && onSelect && onSelect(event), [onSelect]);
|
|
15
|
+
return /* @__PURE__ */ jsxs(Wrapper, { disabled, tabIndex: !disabled ? 0 : void 0, onClick: onSelect, onKeyUp: onKeyUpHandler, danger, icon, size, ...htmlAttributes, children: [
|
|
16
|
+
icon && /* @__PURE__ */ jsx(IconWrapper, { children: icon }),
|
|
17
|
+
/* @__PURE__ */ jsx(ContentWrapper, { icon, children }),
|
|
18
|
+
/* @__PURE__ */ jsx(ActionWraper, { children: actions && actions })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
Text as default
|
|
30
23
|
};
|
|
31
|
-
export default Text;
|
|
@@ -8,8 +8,8 @@ type ContentWrapperProps = {
|
|
|
8
8
|
icon?: JSX.Element;
|
|
9
9
|
};
|
|
10
10
|
export type ListItemType = 'small' | 'medium';
|
|
11
|
-
export declare const IconWrapper: import(
|
|
12
|
-
export declare const Wrapper: import(
|
|
13
|
-
export declare const ContentWrapper: import(
|
|
14
|
-
export declare const ActionWraper: import(
|
|
11
|
+
export declare const IconWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"li", any, WrapperProps, never>;
|
|
13
|
+
export declare const ContentWrapper: import('styled-components').StyledComponent<"div", any, ContentWrapperProps, never>;
|
|
14
|
+
export declare const ActionWraper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
15
15
|
export {};
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Textstyles__IconWrapper",
|
|
4
4
|
componentId: "sc-ztsq94-0"
|
|
5
5
|
})([""]);
|
|
6
|
-
|
|
6
|
+
const Wrapper = /* @__PURE__ */ styled.li.withConfig({
|
|
7
7
|
displayName: "Textstyles__Wrapper",
|
|
8
8
|
componentId: "sc-ztsq94-1"
|
|
9
|
-
})(["color:", ";opacity:", ";cursor:", ";font-weight:500;border-radius:3px;display:flex;align-items:center;", " ", " ", "{svg{", "}}&:hover{", " span{color:", ";}}&:focus{box-shadow:inset 0 0 0 2px ", ";}"],
|
|
9
|
+
})(["color:", ";opacity:", ";cursor:", ";font-weight:500;border-radius:3px;display:flex;align-items:center;", " ", " ", "{svg{", "}}&:hover{", " span{color:", ";}}&:focus{box-shadow:inset 0 0 0 2px ", ";}"], (props) => {
|
|
10
10
|
if (props.danger) {
|
|
11
|
-
return props.theme.palette[
|
|
11
|
+
return props.theme.palette["red-600"];
|
|
12
12
|
}
|
|
13
13
|
if (props.disabled) {
|
|
14
|
-
return props.theme.palette[
|
|
14
|
+
return props.theme.palette["grey-700"];
|
|
15
15
|
}
|
|
16
|
-
return props.theme.palette[
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
return theme.palette['blue-600'];
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return props.theme.palette['blue-600'];
|
|
34
|
-
});
|
|
35
|
-
export var ContentWrapper = styled.div.withConfig({
|
|
16
|
+
return props.theme.palette["grey-700"];
|
|
17
|
+
}, (props) => props.disabled ? "0.4" : "1", (props) => props.disabled ? "not-allowed" : "pointer", (props) => props.size === "small" && css(["padding:5px 12px 4px 7px;"]), (props) => props.size === "medium" && css(["padding:12px;padding-left:", ";"], props.icon ? "12px" : "16px"), IconWrapper, (props) => !props.disabled && `
|
|
18
|
+
fill: ${props.danger ? props.theme.palette["red-600"] : props.theme.palette["grey-600"]};
|
|
19
|
+
`, (props) => !props.disabled && `
|
|
20
|
+
${IconWrapper} {
|
|
21
|
+
svg {
|
|
22
|
+
fill: ${props.danger ? props.theme.palette["red-600"] : props.theme.palette["blue-600"]};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
color: ${props.danger ? props.theme.palette["red-600"] : props.theme.palette["blue-600"]};
|
|
26
|
+
background: ${props.danger ? props.theme.palette["red-050"] : props.theme.palette["grey-050"]};
|
|
27
|
+
`, ({
|
|
28
|
+
theme
|
|
29
|
+
}) => theme.palette["blue-600"], (props) => props.theme.palette["blue-600"]);
|
|
30
|
+
const ContentWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
36
31
|
displayName: "Textstyles__ContentWrapper",
|
|
37
32
|
componentId: "sc-ztsq94-2"
|
|
38
|
-
})(["overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap;font-size:14px;padding-left:", ";"],
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
export var ActionWraper = styled.div.withConfig({
|
|
33
|
+
})(["overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap;font-size:14px;padding-left:", ";"], (props) => props.icon ? "12px" : "0");
|
|
34
|
+
const ActionWraper = /* @__PURE__ */ styled.div.withConfig({
|
|
42
35
|
displayName: "Textstyles__ActionWraper",
|
|
43
36
|
componentId: "sc-ztsq94-3"
|
|
44
|
-
})(["flex:1;"]);
|
|
37
|
+
})(["flex:1;"]);
|
|
38
|
+
export {
|
|
39
|
+
ActionWraper,
|
|
40
|
+
ContentWrapper,
|
|
41
|
+
IconWrapper,
|
|
42
|
+
Wrapper
|
|
43
|
+
};
|
package/dist/Elements/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { default as default2 } from "./Text/Text.js";
|
|
2
|
+
import { default as default3 } from "./ItemWrapper/ItemWrapper.js";
|
|
3
|
+
import { default as default4 } from "./Divider/Divider.js";
|
|
4
|
+
export {
|
|
5
|
+
default3 as ItemWrapper,
|
|
6
|
+
default4 as ListDivider,
|
|
7
|
+
default2 as TextItem
|
|
8
|
+
};
|
package/dist/List.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@synerise/ds-core/dist/js/style';
|
|
1
|
+
import { default as React } from 'react';
|
|
3
2
|
import { ItemWrapper, ListDivider, TextItem } from './Elements';
|
|
4
|
-
import {
|
|
5
|
-
import './style/index.less';
|
|
3
|
+
import { ListPropsType } from './List.types';
|
|
6
4
|
export declare const isNestedArray: <V>(array: V[] | V[][]) => boolean;
|
|
7
5
|
declare class List<T> extends React.PureComponent<ListPropsType<T>> {
|
|
8
6
|
static ItemWrapper: typeof ItemWrapper;
|
package/dist/List.js
CHANGED
|
@@ -1,79 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import '@synerise/ds-core/dist/js/style';
|
|
10
|
-
import Radio from '@synerise/ds-radio';
|
|
11
|
-
import { ItemWrapper, ListDivider, TextItem } from './Elements';
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import AntdList from "antd/lib/list";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { v4 } from "uuid";
|
|
5
|
+
import Radio from "@synerise/ds-radio";
|
|
6
|
+
import Text from "./Elements/Text/Text.js";
|
|
7
|
+
import ItemWrapper from "./Elements/ItemWrapper/ItemWrapper.js";
|
|
8
|
+
import ListDivider from "./Elements/Divider/Divider.js";
|
|
12
9
|
import "./style/index.css";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export var isNestedArray = function isNestedArray(array) {
|
|
10
|
+
const RadioGroupWrapper = ({
|
|
11
|
+
children,
|
|
12
|
+
options
|
|
13
|
+
}) => /* @__PURE__ */ jsx(Radio.Group, { ...options, children });
|
|
14
|
+
const isNestedArray = (array) => {
|
|
19
15
|
return !!array.length && array[0] instanceof Array;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.uuidKey = uuid();
|
|
26
|
-
return _this;
|
|
17
|
+
const _List = class _List extends React.PureComponent {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super(props);
|
|
20
|
+
this.uuidKey = v4();
|
|
27
21
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var ReadyList;
|
|
22
|
+
render() {
|
|
23
|
+
const {
|
|
24
|
+
dataSource,
|
|
25
|
+
radio,
|
|
26
|
+
options,
|
|
27
|
+
dashed,
|
|
28
|
+
...rest
|
|
29
|
+
} = this.props;
|
|
30
|
+
let ReadyList;
|
|
38
31
|
if (isNestedArray(dataSource)) {
|
|
39
|
-
ReadyList = !!dataSource &&
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var isLastItem = dataSource.length === index + 1;
|
|
32
|
+
ReadyList = !!dataSource && // @ts-expect-error type mismatch
|
|
33
|
+
dataSource.map((singleDataSource, index) => {
|
|
34
|
+
const isLastItem = dataSource.length === index + 1;
|
|
43
35
|
if (index === 0) {
|
|
44
|
-
return
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})), !isLastItem && /*#__PURE__*/React.createElement(ListDivider, {
|
|
49
|
-
dashed: !!dashed,
|
|
50
|
-
"data-testid": "divider"
|
|
51
|
-
}));
|
|
36
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx(AntdList, { ...rest, dataSource: singleDataSource }),
|
|
38
|
+
!isLastItem && /* @__PURE__ */ jsx(ListDivider, { dashed: !!dashed, "data-testid": "divider" })
|
|
39
|
+
] }, v4());
|
|
52
40
|
}
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
dataSource: singleDataSource
|
|
58
|
-
})), !isLastItem && /*#__PURE__*/React.createElement(ListDivider, {
|
|
59
|
-
dashed: !!dashed,
|
|
60
|
-
"data-testid": "divider"
|
|
61
|
-
}));
|
|
41
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(AntdList, { ...rest, header: null, dataSource: singleDataSource }),
|
|
43
|
+
!isLastItem && /* @__PURE__ */ jsx(ListDivider, { dashed: !!dashed, "data-testid": "divider" })
|
|
44
|
+
] }, v4());
|
|
62
45
|
});
|
|
63
46
|
} else {
|
|
64
|
-
ReadyList =
|
|
65
|
-
key: this.uuidKey || uuid()
|
|
66
|
-
}, /*#__PURE__*/React.createElement(AntdList, _extends({}, rest, {
|
|
67
|
-
dataSource: dataSource
|
|
68
|
-
})));
|
|
47
|
+
ReadyList = /* @__PURE__ */ jsx(React.Fragment, { children: /* @__PURE__ */ jsx(AntdList, { ...rest, dataSource }) }, this.uuidKey || v4());
|
|
69
48
|
}
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
List
|
|
77
|
-
|
|
78
|
-
List
|
|
79
|
-
|
|
49
|
+
return /* @__PURE__ */ jsx(Fragment, { children: radio ? /* @__PURE__ */ jsx(RadioGroupWrapper, { options, children: ReadyList }) : ReadyList });
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
_List.ItemWrapper = ItemWrapper;
|
|
53
|
+
_List.Item = Text;
|
|
54
|
+
_List.Divider = ListDivider;
|
|
55
|
+
let List = _List;
|
|
56
|
+
export {
|
|
57
|
+
List as default,
|
|
58
|
+
isNestedArray
|
|
59
|
+
};
|
package/dist/List.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ListProps } from 'antd/lib/list';
|
|
2
|
+
import { RadioGroupProps } from 'antd/lib/radio';
|
|
3
3
|
export type ListPropsType<T> = Omit<ListProps<T>, 'dataSource' | 'footer'> & {
|
|
4
4
|
dataSource: T[] | T[][];
|
|
5
5
|
radio?: boolean;
|
package/dist/List.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
File without changes
|
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-list",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
4
4
|
"description": "List UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "vite build",
|
|
20
20
|
"build:css": "node ../../../scripts/style/less.js",
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "
|
|
22
|
+
"build:watch": "vite build --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
24
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "pnpm run build",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-divider": "^1.3.
|
|
39
|
-
"@synerise/ds-radio": "^1.1.
|
|
40
|
-
"@synerise/ds-utils": "^1.
|
|
38
|
+
"@synerise/ds-divider": "^1.3.2",
|
|
39
|
+
"@synerise/ds-radio": "^1.1.3",
|
|
40
|
+
"@synerise/ds-utils": "^1.7.1",
|
|
41
41
|
"uuid": "^8.3.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=16.9.0 <= 18.3.1",
|
|
47
47
|
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
50
50
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|