@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 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, { type ReactElement } from 'react';
2
- import { type OrderedListItem, type OrderedListProps } from '../../Ordered-list.types';
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
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React from 'react';
3
- import * as S from './Item.styles';
4
- var Item = function Item(_ref) {
5
- var label = _ref.label,
6
- suffixel = _ref.suffixel,
7
- prefixel = _ref.prefixel,
8
- subMenu = _ref.subMenu,
9
- indexFormatter = _ref.indexFormatter,
10
- index = _ref.index,
11
- listStyle = _ref.listStyle,
12
- subMenuProps = _ref.subMenuProps,
13
- text = _ref.text,
14
- NestedList = _ref.NestedList;
15
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.ItemWrapper, null, /*#__PURE__*/React.createElement(S.IndexFormatterWrapper, null, indexFormatter ? indexFormatter(index) : index), prefixel, label, suffixel), !!subMenu && (subMenu == null ? void 0 : subMenu.length) > 0 && NestedList && /*#__PURE__*/React.createElement(NestedList, _extends({
16
- text: text,
17
- indexFormatter: indexFormatter,
18
- data: subMenu,
19
- listStyle: listStyle
20
- }, subMenuProps)));
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("styled-components").StyledComponent<"li", any, {}, never>;
2
- export declare const IndexFormatterWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
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 'styled-components';
2
- export var ItemWrapper = styled.li.withConfig({
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
- export var IndexFormatterWrapper = styled.span.withConfig({
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
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type OrderedListProps } from './Ordered-list.types';
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;
@@ -1,31 +1,31 @@
1
- var _excluded = ["index"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
5
- import { FormFieldLabel } from '@synerise/ds-form-field';
6
- import Item from './Elements/Item/Item';
7
- import * as S from './Ordered-list.styles';
8
- var _OrderedList = function OrderedList(_ref) {
9
- var data = _ref.data,
10
- indexFormatter = _ref.indexFormatter,
11
- listStyle = _ref.listStyle,
12
- text = _ref.text;
13
- return /*#__PURE__*/React.createElement("div", null, text && /*#__PURE__*/React.createElement(S.ContentAbove, null, /*#__PURE__*/React.createElement(FormFieldLabel, {
14
- label: text
15
- })), /*#__PURE__*/React.createElement(S.OrderedList, {
16
- listStyle: listStyle
17
- }, data.map(function (_ref2, i) {
18
- var index = _ref2.index,
19
- item = _objectWithoutPropertiesLoose(_ref2, _excluded);
20
- return /*#__PURE__*/React.createElement(Item, _extends({
21
- listStyle: listStyle,
22
- index: i,
23
- key: String(item == null ? void 0 : item.id),
24
- indexFormatter: indexFormatter
25
- }, item, {
26
- // pass the component to avoid circular dependencies
27
- NestedList: _OrderedList
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("styled-components").StyledComponent<"ol", any, {
1
+ export declare const OrderedList: import('styled-components').StyledComponent<"ol", any, {
2
2
  listStyle?: string;
3
3
  }, never>;
4
- export declare const ContentAbove: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const ContentAbove: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,15 +1,13 @@
1
- import styled from 'styled-components';
2
- export var OrderedList = styled.ol.withConfig({
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:", ";}"], function (props) {
6
- return props.listStyle ? props.listStyle : 'none';
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,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export type OrderedListItem = {
3
3
  id: string;
4
4
  label: ReactNode;
@@ -1 +1 @@
1
- export {};
1
+
package/dist/index.js CHANGED
@@ -1 +1,4 @@
1
- export { default } from './Ordered-list';
1
+ import { default as default2 } from "./Ordered-list.js";
2
+ export {
3
+ default2 as default
4
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
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.39",
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": "pnpm run build:js && pnpm run build:css && pnpm run defs",
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": "pnpm run build:js -- --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.9",
32
- "@synerise/ds-icon": "^1.15.0"
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": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
39
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
40
40
  }
package/vite.config.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { lessCompilePlugin } from '../../../scripts/vite/less-plugin';
2
+ import { createViteConfig } from '../../../vite.config.base';
3
+
4
+ export default createViteConfig('@synerise/ds-ordered-list', {
5
+ plugins: [lessCompilePlugin()],
6
+ });