@synerise/ds-ordered-list 1.1.39 → 1.1.41
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/dist/Elements/Item/Item.d.ts +2 -2
- package/dist/Elements/Item/Item.js +28 -21
- package/dist/Elements/Item/Item.styles.d.ts +2 -2
- package/dist/Elements/Item/Item.styles.js +8 -4
- package/dist/Ordered-list.d.ts +2 -2
- package/dist/Ordered-list.js +30 -30
- package/dist/Ordered-list.styles.d.ts +2 -2
- package/dist/Ordered-list.styles.js +9 -11
- package/dist/Ordered-list.types.d.ts +1 -1
- package/dist/Ordered-list.types.js +1 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +6 -6
- package/vite.config.ts +6 -0
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.41](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@1.1.40...@synerise/ds-ordered-list@1.1.41) (2026-04-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
|
9
|
+
|
|
10
|
+
## [1.1.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@1.1.39...@synerise/ds-ordered-list@1.1.40) (2026-03-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
|
13
|
+
|
|
6
14
|
## [1.1.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@1.1.38...@synerise/ds-ordered-list@1.1.39) (2026-03-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-ordered-list
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
import { OrderedListItem, OrderedListProps } from '../../Ordered-list.types';
|
|
3
3
|
declare const _default: React.MemoExoticComponent<({ label, suffixel, prefixel, subMenu, indexFormatter, index, listStyle, subMenuProps, text, NestedList, }: OrderedListItem & Pick<OrderedListProps, "indexFormatter"> & {
|
|
4
4
|
NestedList?: (props: OrderedListProps) => ReactElement;
|
|
5
5
|
}) => React.JSX.Element>;
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import React from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ItemWrapper, IndexFormatterWrapper } from "./Item.styles.js";
|
|
4
|
+
const Item = ({
|
|
5
|
+
label,
|
|
6
|
+
suffixel,
|
|
7
|
+
prefixel,
|
|
8
|
+
subMenu,
|
|
9
|
+
indexFormatter,
|
|
10
|
+
index,
|
|
11
|
+
listStyle,
|
|
12
|
+
subMenuProps,
|
|
13
|
+
text,
|
|
14
|
+
NestedList
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(ItemWrapper, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(IndexFormatterWrapper, { children: indexFormatter ? indexFormatter(index) : index }),
|
|
19
|
+
prefixel,
|
|
20
|
+
label,
|
|
21
|
+
suffixel
|
|
22
|
+
] }),
|
|
23
|
+
!!subMenu && subMenu?.length > 0 && NestedList && /* @__PURE__ */ jsx(NestedList, { text, indexFormatter, data: subMenu, listStyle, ...subMenuProps })
|
|
24
|
+
] });
|
|
25
|
+
};
|
|
26
|
+
const Item$1 = React.memo(Item);
|
|
27
|
+
export {
|
|
28
|
+
Item$1 as default
|
|
21
29
|
};
|
|
22
|
-
export default /*#__PURE__*/React.memo(Item);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ItemWrapper: import(
|
|
2
|
-
export declare const IndexFormatterWrapper: import(
|
|
1
|
+
export declare const ItemWrapper: import('styled-components').StyledComponent<"li", any, {}, never>;
|
|
2
|
+
export declare const IndexFormatterWrapper: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const ItemWrapper = /* @__PURE__ */ styled.li.withConfig({
|
|
3
3
|
displayName: "Itemstyles__ItemWrapper",
|
|
4
4
|
componentId: "sc-11469x5-0"
|
|
5
5
|
})(["margin:5px 0 5px 0;display:list-item;justify-content:flex-start;align-items:center;"]);
|
|
6
|
-
|
|
6
|
+
const IndexFormatterWrapper = /* @__PURE__ */ styled.span.withConfig({
|
|
7
7
|
displayName: "Itemstyles__IndexFormatterWrapper",
|
|
8
8
|
componentId: "sc-11469x5-1"
|
|
9
|
-
})([""]);
|
|
9
|
+
})([""]);
|
|
10
|
+
export {
|
|
11
|
+
IndexFormatterWrapper,
|
|
12
|
+
ItemWrapper
|
|
13
|
+
};
|
package/dist/Ordered-list.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OrderedListProps } from './Ordered-list.types';
|
|
3
3
|
declare const OrderedList: ({ data, indexFormatter, listStyle, text, }: OrderedListProps) => React.JSX.Element;
|
|
4
4
|
export default OrderedList;
|
package/dist/Ordered-list.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
text
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FormFieldLabel } from "@synerise/ds-form-field";
|
|
3
|
+
import Item from "./Elements/Item/Item.js";
|
|
4
|
+
import { ContentAbove, OrderedList as OrderedList$1 } from "./Ordered-list.styles.js";
|
|
5
|
+
const OrderedList = ({
|
|
6
|
+
data,
|
|
7
|
+
indexFormatter,
|
|
8
|
+
listStyle,
|
|
9
|
+
text
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
12
|
+
text && /* @__PURE__ */ jsx(ContentAbove, { children: /* @__PURE__ */ jsx(FormFieldLabel, { label: text }) }),
|
|
13
|
+
/* @__PURE__ */ jsx(OrderedList$1, { listStyle, children: data.map(({
|
|
14
|
+
index,
|
|
15
|
+
...item
|
|
16
|
+
}, i) => /* @__PURE__ */ jsx(
|
|
17
|
+
Item,
|
|
18
|
+
{
|
|
19
|
+
listStyle,
|
|
20
|
+
index: i,
|
|
21
|
+
indexFormatter,
|
|
22
|
+
...item,
|
|
23
|
+
NestedList: OrderedList
|
|
24
|
+
},
|
|
25
|
+
String(item?.id)
|
|
26
|
+
)) })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
OrderedList as default
|
|
30
31
|
};
|
|
31
|
-
export default _OrderedList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OrderedList: import(
|
|
1
|
+
export declare const OrderedList: import('styled-components').StyledComponent<"ol", any, {
|
|
2
2
|
listStyle?: string;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const ContentAbove: import(
|
|
4
|
+
export declare const ContentAbove: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const OrderedList = /* @__PURE__ */ styled.ol.withConfig({
|
|
3
3
|
displayName: "Ordered-liststyles__OrderedList",
|
|
4
4
|
componentId: "sc-smxtrj-0"
|
|
5
|
-
})(["display:flex;flex-direction:column;padding:0;list-style-type:", ";list-style-position:inside;ol{margin-left:10px;padding:5px 0 5px 12px;list-style-type:", ";}li{margin-right:4px;list-style-type:", ";}"],
|
|
6
|
-
|
|
7
|
-
}, function (props) {
|
|
8
|
-
return props.listStyle ? props.listStyle : 'none';
|
|
9
|
-
}, function (props) {
|
|
10
|
-
return props.listStyle ? props.listStyle : 'none';
|
|
11
|
-
});
|
|
12
|
-
export var ContentAbove = styled.div.withConfig({
|
|
5
|
+
})(["display:flex;flex-direction:column;padding:0;list-style-type:", ";list-style-position:inside;ol{margin-left:10px;padding:5px 0 5px 12px;list-style-type:", ";}li{margin-right:4px;list-style-type:", ";}"], (props) => props.listStyle ? props.listStyle : "none", (props) => props.listStyle ? props.listStyle : "none", (props) => props.listStyle ? props.listStyle : "none");
|
|
6
|
+
const ContentAbove = /* @__PURE__ */ styled.div.withConfig({
|
|
13
7
|
displayName: "Ordered-liststyles__ContentAbove",
|
|
14
8
|
componentId: "sc-smxtrj-1"
|
|
15
|
-
})(["margin-bottom:8px;min-height:18px;"]);
|
|
9
|
+
})(["margin-bottom:8px;min-height:18px;"]);
|
|
10
|
+
export {
|
|
11
|
+
ContentAbove,
|
|
12
|
+
OrderedList
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
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-ordered-list",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.41",
|
|
4
4
|
"description": "OrderedList UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "vite build",
|
|
13
13
|
"build:css": "node ../../../scripts/style/less.js",
|
|
14
14
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
15
|
-
"build:watch": "
|
|
15
|
+
"build:watch": "vite build --watch",
|
|
16
16
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
17
17
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
18
18
|
"prepublish": "pnpm run build",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
],
|
|
29
29
|
"types": "dist/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@synerise/ds-form-field": "^1.3.
|
|
32
|
-
"@synerise/ds-icon": "^1.15.
|
|
31
|
+
"@synerise/ds-form-field": "^1.3.11",
|
|
32
|
+
"@synerise/ds-icon": "^1.15.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@synerise/ds-core": "*",
|
|
36
36
|
"react": ">=16.9.0 <= 18.3.1",
|
|
37
37
|
"styled-components": "^5.3.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
|
|
40
40
|
}
|
package/vite.config.ts
ADDED