venice-ui 3.0.34 → 3.0.35

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.
@@ -81,19 +81,21 @@ const List = ({ theme, themeVariant = 'default', items, handleChange, handleSele
81
81
  updateParentSelection(newListOption, item.id);
82
82
  handleChange(newListOption);
83
83
  };
84
- const select = (id) => {
84
+ const selectRow = (id) => {
85
+ console.log('selectRow', id, handleSelect && isSelectable);
85
86
  if (handleSelect && isSelectable) {
87
+ console.log('action');
86
88
  handleSelect(id);
87
89
  }
88
90
  };
89
91
  const renderRow = (row, level) => {
90
92
  const rowHaveStatus = row.statusDone || row.statusError || row.statusWarning;
91
- return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: resolvedTheme },
93
+ return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: resolvedTheme, key: row.id },
92
94
  react_1.default.createElement(List_styles_1.ListRowRoot, { theme: resolvedTheme, config: checkboxConfig,
93
95
  // action={}
94
- level: level },
96
+ level: level, key: `row_${row.id}` },
95
97
  react_1.default.createElement(List_styles_1.ListRow, { theme: resolvedTheme, config: checkboxConfig, isSelected: isSelectable && selected ? selected === row.id : false, isSelectable: isSelectable, onClick: () => {
96
- select(row.id);
98
+ selectRow(row.id);
97
99
  } },
98
100
  react_1.default.createElement(react_1.default.Fragment, null,
99
101
  react_1.default.createElement(Aligment_1.Aligment, { justify: "start-flex", gap: checkboxConfig.size.gap, align: "center" },
@@ -75,19 +75,21 @@ export const List = ({ theme, themeVariant = 'default', items, handleChange, han
75
75
  updateParentSelection(newListOption, item.id);
76
76
  handleChange(newListOption);
77
77
  };
78
- const select = (id) => {
78
+ const selectRow = (id) => {
79
+ console.log('selectRow', id, handleSelect && isSelectable);
79
80
  if (handleSelect && isSelectable) {
81
+ console.log('action');
80
82
  handleSelect(id);
81
83
  }
82
84
  };
83
85
  const renderRow = (row, level) => {
84
86
  const rowHaveStatus = row.statusDone || row.statusError || row.statusWarning;
85
- return (React.createElement(ThemeProvider, { theme: resolvedTheme },
87
+ return (React.createElement(ThemeProvider, { theme: resolvedTheme, key: row.id },
86
88
  React.createElement(ListRowRoot, { theme: resolvedTheme, config: checkboxConfig,
87
89
  // action={}
88
- level: level },
90
+ level: level, key: `row_${row.id}` },
89
91
  React.createElement(ListRow, { theme: resolvedTheme, config: checkboxConfig, isSelected: isSelectable && selected ? selected === row.id : false, isSelectable: isSelectable, onClick: () => {
90
- select(row.id);
92
+ selectRow(row.id);
91
93
  } },
92
94
  React.createElement(React.Fragment, null,
93
95
  React.createElement(Aligment, { justify: "start-flex", gap: checkboxConfig.size.gap, align: "center" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "3.0.34",
3
+ "version": "3.0.35",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",