@widergy/energy-ui 3.67.2 → 3.68.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 +14 -0
- package/dist/components/UTCheckList/versions/V1/README.MD +1 -0
- package/dist/components/UTCheckList/versions/V1/index.js +6 -0
- package/dist/components/UTCheckbox/versions/V1/README.md +1 -0
- package/dist/components/UTCheckbox/versions/V1/index.js +3 -1
- package/dist/components/UTStatusMessage/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.68.1](https://github.com/widergy/energy-ui/compare/v3.68.0...v3.68.1) (2025-03-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add markdown ([#595](https://github.com/widergy/energy-ui/issues/595)) ([76262f8](https://github.com/widergy/energy-ui/commit/76262f83da5cc9877ce1d6d3862c7baf7659fb04))
|
|
7
|
+
|
|
8
|
+
# [3.68.0](https://github.com/widergy/energy-ui/compare/v3.67.2...v3.68.0) (2025-03-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* [UGENSA-1520] added customrow to checklist v1 ([#592](https://github.com/widergy/energy-ui/issues/592)) ([1823fb2](https://github.com/widergy/energy-ui/commit/1823fb20ea2c9f9a2e0179c890519a22bf4e15e5))
|
|
14
|
+
|
|
1
15
|
## [3.67.2](https://github.com/widergy/energy-ui/compare/v3.67.1...v3.67.2) (2025-03-25)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| ----------------- | ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
11
11
|
| actions | object | | Actions to render within `UTFieldLabel`. |
|
|
12
12
|
| classNames | objectOf(string) | | Custom class names to apply to different elements of the checklist (`root`, `header`, `checkboxesContainer`, `item`, `selectAll`). |
|
|
13
|
+
| CustomRow | elementType | | Custom component to render data of every checkbox |
|
|
13
14
|
| disabled | bool | false | Disables all checkboxes in the checklist when true. |
|
|
14
15
|
| |
|
|
15
16
|
| error | string | | Error message to display. |
|
|
@@ -23,6 +23,7 @@ const UTCheckList = _ref => {
|
|
|
23
23
|
let {
|
|
24
24
|
actions,
|
|
25
25
|
classNames = {},
|
|
26
|
+
CustomRow,
|
|
26
27
|
dataTestId,
|
|
27
28
|
disabled,
|
|
28
29
|
error,
|
|
@@ -125,6 +126,10 @@ const UTCheckList = _ref => {
|
|
|
125
126
|
weight: "medium"
|
|
126
127
|
}, category.toUpperCase()), categoryOptions.map((item, index) => /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, {
|
|
127
128
|
classNames: classNames.item,
|
|
129
|
+
CustomComponent: CustomRow ? /*#__PURE__*/_react.default.createElement(CustomRow, {
|
|
130
|
+
item: item,
|
|
131
|
+
isChecked: (0, _utils2.isChecked)(item, value)
|
|
132
|
+
}) : undefined,
|
|
128
133
|
dataTestId: itemDataTestId ? "".concat(itemDataTestId, ".category_").concat(catIndex, ".").concat(index) : null,
|
|
129
134
|
disabled: item.disabled || disabled,
|
|
130
135
|
isSimple: isSimple,
|
|
@@ -142,6 +147,7 @@ const UTCheckList = _ref => {
|
|
|
142
147
|
UTCheckList.propTypes = {
|
|
143
148
|
actions: (0, _propTypes.arrayOf)(_buttonTypes.buttonTypes),
|
|
144
149
|
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
150
|
+
CustomRow: _propTypes.elementType,
|
|
145
151
|
dataTestId: _propTypes.string,
|
|
146
152
|
disabled: _propTypes.bool,
|
|
147
153
|
error: _propTypes.string,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| actions | object | | Actions to render within `UTFieldLabel`. |
|
|
12
12
|
| checkboxDataTestId | string | | Box `data-testid`. |
|
|
13
13
|
| classNames | objectOf(string) | | Additional class names to apply for further styling. |
|
|
14
|
+
| CustomComponent | elementType | | Custom component to render data next to the checkbox |
|
|
14
15
|
| dataTestId | string | | Whole component `data-testid`. |
|
|
15
16
|
| disabled | bool | false | Disables the checkbox, making it unclickable. |
|
|
16
17
|
| indeterminate | bool | false | Indicates if the checkbox is in an indeterminate state. |
|
|
@@ -29,6 +29,7 @@ const UTCheckbox = _ref => {
|
|
|
29
29
|
checkboxDataTestId,
|
|
30
30
|
classes: theme,
|
|
31
31
|
classNames,
|
|
32
|
+
CustomComponent,
|
|
32
33
|
dataTestId,
|
|
33
34
|
disabled,
|
|
34
35
|
indeterminate,
|
|
@@ -85,7 +86,7 @@ const UTCheckbox = _ref => {
|
|
|
85
86
|
colorTheme: "light",
|
|
86
87
|
name: iconName,
|
|
87
88
|
size: 16
|
|
88
|
-
})))), /*#__PURE__*/_react.default.createElement(_UTFieldLabel.default, {
|
|
89
|
+
})))), CustomComponent || /*#__PURE__*/_react.default.createElement(_UTFieldLabel.default, {
|
|
89
90
|
className: classes.title,
|
|
90
91
|
highlighted: shouldHighlightLabel,
|
|
91
92
|
required: required
|
|
@@ -99,6 +100,7 @@ UTCheckbox.propTypes = {
|
|
|
99
100
|
checkboxDataTestId: _propTypes.string,
|
|
100
101
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
101
102
|
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
103
|
+
CustomComponent: _propTypes.elementType,
|
|
102
104
|
dataTestId: _propTypes.string,
|
|
103
105
|
disabled: _propTypes.bool,
|
|
104
106
|
indeterminate: _propTypes.bool,
|
|
@@ -72,6 +72,7 @@ const UTStatusMessage = _ref => {
|
|
|
72
72
|
className: _stylesModule.default.label,
|
|
73
73
|
colorTheme: "gray",
|
|
74
74
|
dataTestId: descriptionId,
|
|
75
|
+
withMarkdown: true,
|
|
75
76
|
variant: "body"
|
|
76
77
|
}, descriptionProps), description), helpText && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
77
78
|
className: _stylesModule.default.label,
|