@onesy/ui-react 1.0.200 → 1.0.201
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/Link/Link.d.ts +1 -1
- package/ListItem/ListItem.js +4 -3
- package/esm/ListItem/ListItem.js +4 -3
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/Link/Link.d.ts
CHANGED
package/ListItem/ListItem.js
CHANGED
|
@@ -41,7 +41,8 @@ const useStyle = (0, _styleReact.style)(theme => {
|
|
|
41
41
|
boxSizing: 'border-box',
|
|
42
42
|
position: 'relative',
|
|
43
43
|
display: 'inline-flex',
|
|
44
|
-
width: '100%'
|
|
44
|
+
width: '100%',
|
|
45
|
+
textAlign: 'left'
|
|
45
46
|
},
|
|
46
47
|
shape_round_position_both: {
|
|
47
48
|
borderRadius: theme.methods.shape.radius.value(40, 'px')
|
|
@@ -265,7 +266,7 @@ const ListItem = props_ => {
|
|
|
265
266
|
onMouseEnter,
|
|
266
267
|
onMouseLeave,
|
|
267
268
|
onClose: onClose_,
|
|
268
|
-
RootComponent: RootComponentProps
|
|
269
|
+
RootComponent: RootComponentProps,
|
|
269
270
|
WrapperProps,
|
|
270
271
|
RootProps,
|
|
271
272
|
InteractionProps,
|
|
@@ -313,7 +314,7 @@ const ListItem = props_ => {
|
|
|
313
314
|
secondary: {},
|
|
314
315
|
tertiary: {}
|
|
315
316
|
};
|
|
316
|
-
let RootComponent = RootComponentProps;
|
|
317
|
+
let RootComponent = RootComponentProps || (button || interaction ? 'button' : 'div');
|
|
317
318
|
if (href) RootComponent = 'a';
|
|
318
319
|
const colorToUse = selected ? colorSelected : color;
|
|
319
320
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Surface, _objectSpread(_objectSpread(_objectSpread({
|
package/esm/ListItem/ListItem.js
CHANGED
|
@@ -34,7 +34,8 @@ const useStyle = styleMethod(theme => {
|
|
|
34
34
|
boxSizing: 'border-box',
|
|
35
35
|
position: 'relative',
|
|
36
36
|
display: 'inline-flex',
|
|
37
|
-
width: '100%'
|
|
37
|
+
width: '100%',
|
|
38
|
+
textAlign: 'left'
|
|
38
39
|
},
|
|
39
40
|
shape_round_position_both: {
|
|
40
41
|
borderRadius: theme.methods.shape.radius.value(40, 'px')
|
|
@@ -257,7 +258,7 @@ const ListItem = props_ => {
|
|
|
257
258
|
onMouseEnter,
|
|
258
259
|
onMouseLeave,
|
|
259
260
|
onClose: onClose_,
|
|
260
|
-
RootComponent: RootComponentProps
|
|
261
|
+
RootComponent: RootComponentProps,
|
|
261
262
|
WrapperProps,
|
|
262
263
|
RootProps,
|
|
263
264
|
InteractionProps,
|
|
@@ -305,7 +306,7 @@ const ListItem = props_ => {
|
|
|
305
306
|
secondary: {},
|
|
306
307
|
tertiary: {}
|
|
307
308
|
};
|
|
308
|
-
let RootComponent = RootComponentProps;
|
|
309
|
+
let RootComponent = RootComponentProps || (button || interaction ? 'button' : 'div');
|
|
309
310
|
if (href) RootComponent = 'a';
|
|
310
311
|
const colorToUse = selected ? colorSelected : color;
|
|
311
312
|
return /*#__PURE__*/_jsxs(Surface, _objectSpread(_objectSpread(_objectSpread({
|
package/esm/index.js
CHANGED
package/index.js
CHANGED