@loadsmart/miranda-react 2.14.0 → 2.14.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/dist/index.js +5 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1187,10 +1187,11 @@ function ToggleGroup(props) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
ref.current.value = value;
|
|
1189
1189
|
}, [value]);
|
|
1190
|
-
return (jsx(WiredToggleGroup, { ref: ref, disabled: disabled, ...rest, children: children
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1190
|
+
return (jsx(WiredToggleGroup, { ref: ref, disabled: disabled, ...rest, children: children ??
|
|
1191
|
+
(options || []).map(function renderOption(option) {
|
|
1192
|
+
const { label, value: optionValue, ...others } = option;
|
|
1193
|
+
return (jsx(Toggle, { ...others, disabled: Boolean(disabled || option.disabled), value: optionValue, children: label }, optionValue));
|
|
1194
|
+
}) }));
|
|
1194
1195
|
}
|
|
1195
1196
|
|
|
1196
1197
|
const WiredTooltip = createComponent({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@loadsmart/miranda-tokens": "3.14.
|
|
44
|
-
"@loadsmart/miranda-wc": "2.14.
|
|
43
|
+
"@loadsmart/miranda-tokens": "3.14.2",
|
|
44
|
+
"@loadsmart/miranda-wc": "2.14.1",
|
|
45
45
|
"@lit/react": "^1.0.5"
|
|
46
46
|
},
|
|
47
47
|
"directories": {
|