@synerise/ds-unordered-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-unordered-list@1.1.40...@synerise/ds-unordered-list@1.1.41) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-unordered-list
9
+
10
+ ## [1.1.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-unordered-list@1.1.39...@synerise/ds-unordered-list@1.1.40) (2026-03-24)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-unordered-list
13
+
6
14
  ## [1.1.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-unordered-list@1.1.38...@synerise/ds-unordered-list@1.1.39) (2026-03-20)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-unordered-list
@@ -1,5 +1,5 @@
1
- import React, { type ReactElement } from 'react';
2
- import { type UnorderedListItem, type UnorderedListProps } from '../../Unordered-list.types';
1
+ import { default as React, ReactElement } from 'react';
2
+ import { UnorderedListItem, UnorderedListProps } from '../../Unordered-list.types';
3
3
  declare const _default: React.MemoExoticComponent<({ label, suffixel, prefixel, subMenu, indexFormatter, index, subMenuProps, text, NestedList, }: UnorderedListItem & Pick<UnorderedListProps, "indexFormatter"> & {
4
4
  NestedList?: (props: UnorderedListProps) => ReactElement;
5
5
  }) => React.JSX.Element>;
@@ -1,20 +1,28 @@
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
- subMenuProps = _ref.subMenuProps,
12
- text = _ref.text,
13
- NestedList = _ref.NestedList;
14
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.ItemWrapper, null, indexFormatter && /*#__PURE__*/React.createElement(S.IndexFormatterWrapper, null, indexFormatter(index)), prefixel, label, suffixel), !!subMenu && (subMenu == null ? void 0 : subMenu.length) > 0 && NestedList && /*#__PURE__*/React.createElement(NestedList, _extends({
15
- text: text,
16
- indexFormatter: indexFormatter,
17
- data: subMenu
18
- }, 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
+ subMenuProps,
12
+ text,
13
+ NestedList
14
+ }) => {
15
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ /* @__PURE__ */ jsxs(ItemWrapper, { children: [
17
+ indexFormatter && /* @__PURE__ */ jsx(IndexFormatterWrapper, { children: indexFormatter(index) }),
18
+ prefixel,
19
+ label,
20
+ suffixel
21
+ ] }),
22
+ !!subMenu && subMenu?.length > 0 && NestedList && /* @__PURE__ */ jsx(NestedList, { text, indexFormatter, data: subMenu, ...subMenuProps })
23
+ ] });
24
+ };
25
+ const Item$1 = React.memo(Item);
26
+ export {
27
+ Item$1 as default
19
28
  };
20
- export default /*#__PURE__*/React.memo(Item);
@@ -1,4 +1,4 @@
1
- export declare const ItemWrapper: import("styled-components").StyledComponent<"li", any, {}, never>;
2
- export declare const IndexFormatterWrapper: import("styled-components").StyledComponent<"span", any, {
1
+ export declare const ItemWrapper: import('styled-components').StyledComponent<"li", any, {}, never>;
2
+ export declare const IndexFormatterWrapper: import('styled-components').StyledComponent<"span", any, {
3
3
  listStyle?: string;
4
4
  }, 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-1u5z6ql-0"
5
5
  })(["margin:5px 0 5px 2px;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-1u5z6ql-1"
9
- })(["margin-right:6px;"]);
9
+ })(["margin-right:6px;"]);
10
+ export {
11
+ IndexFormatterWrapper,
12
+ ItemWrapper
13
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type UnorderedListProps } from './Unordered-list.types';
1
+ import { default as React } from 'react';
2
+ import { UnorderedListProps } from './Unordered-list.types';
3
3
  declare const UnorderedList: ({ data, indexFormatter, text, className, }: UnorderedListProps) => React.JSX.Element;
4
4
  export default UnorderedList;
@@ -1,30 +1,30 @@
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 './Unordered-list.styles';
8
- var _UnorderedList = function UnorderedList(_ref) {
9
- var data = _ref.data,
10
- indexFormatter = _ref.indexFormatter,
11
- text = _ref.text,
12
- className = _ref.className;
13
- return /*#__PURE__*/React.createElement("div", {
14
- className: className
15
- }, text && /*#__PURE__*/React.createElement(S.ContentAbove, null, /*#__PURE__*/React.createElement(FormFieldLabel, {
16
- label: text
17
- })), /*#__PURE__*/React.createElement(S.UnorderedList, null, data.map(function (_ref2, i) {
18
- var index = _ref2.index,
19
- item = _objectWithoutPropertiesLoose(_ref2, _excluded);
20
- return /*#__PURE__*/React.createElement(Item, _extends({
21
- index: i,
22
- key: String(item == null ? void 0 : item.id),
23
- indexFormatter: indexFormatter
24
- }, item, {
25
- // pass component to avoid circular dependencies
26
- NestedList: _UnorderedList
27
- }));
28
- })));
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, UnorderedList as UnorderedList$1 } from "./Unordered-list.styles.js";
5
+ const UnorderedList = ({
6
+ data,
7
+ indexFormatter,
8
+ text,
9
+ className
10
+ }) => {
11
+ return /* @__PURE__ */ jsxs("div", { className, children: [
12
+ text && /* @__PURE__ */ jsx(ContentAbove, { children: /* @__PURE__ */ jsx(FormFieldLabel, { label: text }) }),
13
+ /* @__PURE__ */ jsx(UnorderedList$1, { children: data.map(({
14
+ index,
15
+ ...item
16
+ }, i) => /* @__PURE__ */ jsx(
17
+ Item,
18
+ {
19
+ index: i,
20
+ indexFormatter,
21
+ ...item,
22
+ NestedList: UnorderedList
23
+ },
24
+ String(item?.id)
25
+ )) })
26
+ ] });
27
+ };
28
+ export {
29
+ UnorderedList as default
29
30
  };
30
- export default _UnorderedList;
@@ -1,5 +1,5 @@
1
- export declare const UnorderedList: import("styled-components").StyledComponent<"ul", any, {
1
+ export declare const UnorderedList: import('styled-components').StyledComponent<"ul", any, {
2
2
  listStyle?: string;
3
3
  }, never>;
4
- export declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
5
- export declare const ContentAbove: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const Label: import('styled-components').StyledComponent<"label", any, {}, never>;
5
+ export declare const ContentAbove: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,21 +1,18 @@
1
- import styled from 'styled-components';
2
- export var UnorderedList = styled.ul.withConfig({
1
+ import styled from "styled-components";
2
+ const UnorderedList = /* @__PURE__ */ styled.ul.withConfig({
3
3
  displayName: "Unordered-liststyles__UnorderedList",
4
4
  componentId: "sc-z2ys8z-0"
5
- })(["display:flex;flex-direction:column;padding:0;list-style-type:", ";list-style-position:inside;ul{margin-left:20px;padding:5px 0 5px 0;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 Label = styled.label.withConfig({
5
+ })(["display:flex;flex-direction:column;padding:0;list-style-type:", ";list-style-position:inside;ul{margin-left:20px;padding:5px 0 5px 0;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 Label = /* @__PURE__ */ styled.label.withConfig({
13
7
  displayName: "Unordered-liststyles__Label",
14
8
  componentId: "sc-z2ys8z-1"
15
- })(["color:", ";font-weight:500;display:block;"], function (props) {
16
- return props.theme.palette['grey-800'];
17
- });
18
- export var ContentAbove = styled.div.withConfig({
9
+ })(["color:", ";font-weight:500;display:block;"], (props) => props.theme.palette["grey-800"]);
10
+ const ContentAbove = /* @__PURE__ */ styled.div.withConfig({
19
11
  displayName: "Unordered-liststyles__ContentAbove",
20
12
  componentId: "sc-z2ys8z-2"
21
- })(["margin-bottom:8px;min-height:18px;"]);
13
+ })(["margin-bottom:8px;min-height:18px;"]);
14
+ export {
15
+ ContentAbove,
16
+ Label,
17
+ UnorderedList
18
+ };
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export type UnorderedListItem = {
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 './Unordered-list';
1
+ import { default as default2 } from "./Unordered-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-unordered-list",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "UnorderedList 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": "pnpm run build:js && pnpm run build:css && pnpm run defs",
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": "pnpm run build:js -- --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,13 +35,13 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-form-field": "^1.3.9",
39
- "@synerise/ds-icon": "^1.15.0"
38
+ "@synerise/ds-form-field": "^1.3.11",
39
+ "@synerise/ds-icon": "^1.15.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
43
43
  "react": ">=16.9.0 <= 18.3.1",
44
44
  "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
46
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
47
47
  }