@synerise/ds-editable-items-list 1.1.0 → 1.1.1
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 +4 -0
- package/README.md +5 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-editable-items-list@1.1.0...@synerise/ds-editable-items-list@1.1.1) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-editable-items-list
|
|
9
|
+
|
|
6
10
|
# [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-editable-items-list@1.0.44...@synerise/ds-editable-items-list@1.1.0) (2026-03-09)
|
|
7
11
|
|
|
8
12
|
### Features
|
package/README.md
CHANGED
|
@@ -30,13 +30,13 @@ import EditableItemsList from '@synerise/ds-editable-items-list'
|
|
|
30
30
|
|
|
31
31
|
| Property | Description | Type | Default |
|
|
32
32
|
| ---------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- | ------- |
|
|
33
|
-
| renderRowElement | Function to render each row. Invoked with item index and item object. | (index: number, item: T) => ReactElement | -
|
|
34
|
-
| items | Array of items to be rendered, each should have a unique id. | T[] |
|
|
33
|
+
| renderRowElement | Function to render each row. Invoked with item index and item object. | (index: number, item: T) => ReactElement \| null | - |
|
|
34
|
+
| items | Array of items to be rendered, each should have a unique id. | T[] | `[]` |
|
|
35
35
|
| addButtonLabel | Text or custom component for the "Add" button. | string \| ReactNode | - |
|
|
36
|
-
| addButtonIcon | Custom icon for the "Add" button. |
|
|
36
|
+
| addButtonIcon | Custom icon for the "Add" button. | ReactNode | - |
|
|
37
37
|
| addButtonProps | Additional props for the "Add" button. It can override default style. | Partial<ButtonProps> | - |
|
|
38
|
-
| onAdd | Callback function called when the "Add" button is clicked. |
|
|
39
|
-
| minRowLength | The minimum number of rows to display.
|
|
38
|
+
| onAdd | Callback function called when the "Add" button is clicked. | MouseEventHandler<HTMLElement> | - |
|
|
39
|
+
| minRowLength | The minimum number of rows to display. Delete button hidden while at or below this count. | number | 1 |
|
|
40
40
|
| maxRowLength | The maximum number of rows allowed. | number | - |
|
|
41
41
|
| deleteTooltip | Tooltip text for the delete button. | string | - |
|
|
42
42
|
| onDelete | Callback function called when a row's delete button is clicked. It receives the ID and index of the row to delete. | (id: string, index: number) => void | - |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-editable-items-list",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "EditableItemsList UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -23,8 +23,8 @@
|
|
|
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",
|
|
26
|
-
"test": "vitest",
|
|
27
|
-
"test:watch": "
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
28
|
"types": "tsc --noEmit",
|
|
29
29
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
30
30
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-cruds": "^1.1.
|
|
40
|
-
"@synerise/ds-icon": "^1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.17",
|
|
39
|
+
"@synerise/ds-cruds": "^1.1.1",
|
|
40
|
+
"@synerise/ds-icon": "^1.15.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"vitest": "4"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react": ">=16.9.0 <= 18.3.1",
|
|
48
48
|
"styled-components": "^5.3.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
|
|
51
51
|
}
|