@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IType } from '../Type/Type';
3
3
  export declare type ILink = IType & {
4
- underline?: true | 'hover';
4
+ underline?: boolean | 'hover';
5
5
  href?: string;
6
6
  target?: string;
7
7
  };
@@ -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 = 'div',
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({
@@ -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 = 'div',
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
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.199
1
+ /** @license UiReact v1.0.200
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.199
1
+ /** @license UiReact v1.0.200
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",