@onesy/ui-react 1.0.143 → 1.0.144

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.
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ILine } from '../Line/Line';
3
- import { IElement, IPropsAny, IElementReference } from '../types';
3
+ import { IElement, IPropsAny } from '../types';
4
4
  export type ITimelineItem = ILine & {
5
5
  orientation?: 'vertical' | 'horizontal';
6
6
  start?: IElement;
7
7
  end?: IElement;
8
+ icon?: any;
8
9
  DividerProps?: IPropsAny;
9
- IconProps?: IPropsAny;
10
- Icon?: IElementReference;
10
+ iconProps?: IPropsAny;
11
11
  Divider?: any;
12
12
  };
13
13
  declare const TimelineItem: React.FC<ITimelineItem>;
@@ -14,7 +14,7 @@ var _Surface = _interopRequireDefault(require("../Surface"));
14
14
  var _Divider = _interopRequireDefault(require("../Divider"));
15
15
  var _Line = _interopRequireDefault(require("../Line"));
16
16
  var _utils = require("../utils");
17
- const _excluded = ["orientation", "start", "end", "DividerProps", "IconProps", "Icon", "Divider", "Component", "className", "children"];
17
+ const _excluded = ["orientation", "start", "end", "DividerProps", "iconProps", "icon", "Divider", "Component", "className", "children"];
18
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
20
  const useStyle = (0, _styleReact.style)(theme => ({
@@ -100,12 +100,12 @@ const TimelineItem = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
100
100
  tonal: 'secondary',
101
101
  color: 'neutral'
102
102
  } : undefined,
103
- IconProps = !props.Icon ? {
103
+ iconProps = !props.icon ? {
104
104
  tonal: 'secondary',
105
105
  color: 'neutral',
106
106
  version: 'filled'
107
107
  } : undefined,
108
- Icon,
108
+ icon,
109
109
  Divider: Divider_,
110
110
  Component = 'li',
111
111
  className,
@@ -139,9 +139,9 @@ const TimelineItem = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
139
139
  className: (0, _styleReact.classNames)([(0, _utils.staticClassName)('TimelineItem', theme) && ['onesy-TimelineItem-item', 'onesy-TimelineItem-middle'], classes.item, classes.middle])
140
140
  }, /*#__PURE__*/_react.default.createElement("div", {
141
141
  className: (0, _styleReact.classNames)([(0, _utils.staticClassName)('TimelineItem', theme) && ['onesy-TimelineItem-icon-wrapper'], classes.iconWrapper, classes[`iconWrapper_orientation_${orientation}`]])
142
- }, Icon ? Icon : /*#__PURE__*/_react.default.createElement(Surface, (0, _extends2.default)({}, IconProps, {
142
+ }, icon ? icon : /*#__PURE__*/_react.default.createElement(Surface, (0, _extends2.default)({}, iconProps, {
143
143
  tonal: true,
144
- className: (0, _styleReact.classNames)([(0, _utils.staticClassName)('TimelineItem', theme) && ['onesy-TimelineItem-icon'], IconProps === null || IconProps === void 0 ? void 0 : IconProps.className, classes.icon])
144
+ className: (0, _styleReact.classNames)([(0, _utils.staticClassName)('TimelineItem', theme) && ['onesy-TimelineItem-icon'], iconProps === null || iconProps === void 0 ? void 0 : iconProps.className, classes.icon])
145
145
  }))), Divider_ ? Divider_ : /*#__PURE__*/_react.default.createElement(Divider, (0, _extends2.default)({}, DividerProps, {
146
146
  className: (0, _styleReact.classNames)([(0, _utils.staticClassName)('TimelineItem', theme) && ['onesy-TimelineItem-divider'], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider, classes[`divider_orientation_${orientation}`]]),
147
147
  flex: true
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- const _excluded = ["orientation", "start", "end", "DividerProps", "IconProps", "Icon", "Divider", "Component", "className", "children"];
4
+ const _excluded = ["orientation", "start", "end", "DividerProps", "iconProps", "icon", "Divider", "Component", "className", "children"];
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import React from 'react';
@@ -81,12 +81,12 @@ const TimelineItem = /*#__PURE__*/React.forwardRef((props_, ref) => {
81
81
  tonal: 'secondary',
82
82
  color: 'neutral'
83
83
  } : undefined,
84
- IconProps = !props.Icon ? {
84
+ iconProps = !props.icon ? {
85
85
  tonal: 'secondary',
86
86
  color: 'neutral',
87
87
  version: 'filled'
88
88
  } : undefined,
89
- Icon,
89
+ icon,
90
90
  Divider: Divider_,
91
91
  Component = 'li',
92
92
  className,
@@ -120,9 +120,9 @@ const TimelineItem = /*#__PURE__*/React.forwardRef((props_, ref) => {
120
120
  className: classNames([staticClassName('TimelineItem', theme) && ['onesy-TimelineItem-item', 'onesy-TimelineItem-middle'], classes.item, classes.middle])
121
121
  }, /*#__PURE__*/React.createElement("div", {
122
122
  className: classNames([staticClassName('TimelineItem', theme) && ['onesy-TimelineItem-icon-wrapper'], classes.iconWrapper, classes[`iconWrapper_orientation_${orientation}`]])
123
- }, Icon ? Icon : /*#__PURE__*/React.createElement(Surface, _extends({}, IconProps, {
123
+ }, icon ? icon : /*#__PURE__*/React.createElement(Surface, _extends({}, iconProps, {
124
124
  tonal: true,
125
- className: classNames([staticClassName('TimelineItem', theme) && ['onesy-TimelineItem-icon'], IconProps?.className, classes.icon])
125
+ className: classNames([staticClassName('TimelineItem', theme) && ['onesy-TimelineItem-icon'], iconProps?.className, classes.icon])
126
126
  }))), Divider_ ? Divider_ : /*#__PURE__*/React.createElement(Divider, _extends({}, DividerProps, {
127
127
  className: classNames([staticClassName('TimelineItem', theme) && ['onesy-TimelineItem-divider'], DividerProps?.className, classes.divider, classes[`divider_orientation_${orientation}`]]),
128
128
  flex: true
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.142
1
+ /** @license UiReact v1.0.143
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.142
1
+ /** @license UiReact v1.0.143
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.143",
3
+ "version": "1.0.144",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",