@onesy/ui-react 1.0.3 → 1.0.5

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/Tree/Tree.js CHANGED
@@ -38,7 +38,7 @@ const useStyle = (0, style_react_1.style)(theme => ({
38
38
  insetInlineStart: '-12px',
39
39
  height: '100%',
40
40
  width: '2px',
41
- background: theme.palette.light ? theme.palette.color.neutral['90'] : theme.palette.color.neutral['20']
41
+ background: theme.palette.light ? theme.palette.color.neutral[90] : theme.palette.color.neutral[40]
42
42
  },
43
43
  '&:last-of-type': {
44
44
  '&::before': {
@@ -68,8 +68,7 @@ const useStyle = (0, style_react_1.style)(theme => ({
68
68
  height: '14px',
69
69
  borderLeft: '2px solid',
70
70
  borderBottom: '2px solid',
71
- color: theme.palette.color.neutral['90'],
72
- borderColor: theme.palette.light ? theme.palette.color.neutral['90'] : theme.palette.color.neutral['20'],
71
+ borderColor: theme.palette.light ? theme.palette.color.default[90] : theme.palette.color.default[40],
73
72
  borderBottomLeftRadius: '6px',
74
73
  transform: `rotateY(${theme.direction === 'ltr' ? 0 : 180}deg)`
75
74
  }
@@ -123,7 +122,7 @@ const Tree = react_1.default.forwardRef((props_, ref) => {
123
122
  const Fade = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Fade) || Fade_1.default; }, [theme]);
124
123
  const Expand = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Expand) || Expand_1.default; }, [theme]);
125
124
  const Interaction = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Interaction) || Interaction_1.default; }, [theme]);
126
- const { tonal = true, color = 'default', version = 'text', open: open_, openDefault, onChange, selected, line, indicator, arrow = true, checkbox, indicatorPosition = 'start', level = 0, icon, iconOpen, start: start_, middle, end: end_, button = true, noTransition, noExpand, noPadding, parentDisabled, disabled, ExpandProps, MainProps: MainProps_, StartProps, MiddleProps, EndProps, IndicatorProps, TransitionComponentProps: TransitionComponentProps_, TreeProps, IconArrow = IconMaterialExpandMoreW100_1.default, TransitionComponent: TransitionComponent_ = Fade, Component = 'div', className, style, children: children_ } = props, other = __rest(props, ["tonal", "color", "version", "open", "openDefault", "onChange", "selected", "line", "indicator", "arrow", "checkbox", "indicatorPosition", "level", "icon", "iconOpen", "start", "middle", "end", "button", "noTransition", "noExpand", "noPadding", "parentDisabled", "disabled", "ExpandProps", "MainProps", "StartProps", "MiddleProps", "EndProps", "IndicatorProps", "TransitionComponentProps", "TreeProps", "IconArrow", "TransitionComponent", "Component", "className", "style", "children"]);
125
+ const { tonal = true, color = 'inherit', version = 'text', open: open_, openDefault, onChange, selected, line, indicator, arrow = true, checkbox, indicatorPosition = 'start', level = 0, icon, iconOpen, start: start_, middle, end: end_, button = true, noTransition, noExpand, noPadding, parentDisabled, disabled, ExpandProps, MainProps: MainProps_, StartProps, MiddleProps, EndProps, IndicatorProps, TransitionComponentProps: TransitionComponentProps_, TreeProps, IconArrow = IconMaterialExpandMoreW100_1.default, TransitionComponent: TransitionComponent_ = Fade, Component = 'div', className, style, children: children_ } = props, other = __rest(props, ["tonal", "color", "version", "open", "openDefault", "onChange", "selected", "line", "indicator", "arrow", "checkbox", "indicatorPosition", "level", "icon", "iconOpen", "start", "middle", "end", "button", "noTransition", "noExpand", "noPadding", "parentDisabled", "disabled", "ExpandProps", "MainProps", "StartProps", "MiddleProps", "EndProps", "IndicatorProps", "TransitionComponentProps", "TreeProps", "IconArrow", "TransitionComponent", "Component", "className", "style", "children"]);
127
126
  const { classes } = useStyle();
128
127
  const [init, setInit] = react_1.default.useState(false);
129
128
  const [focus, setFocus] = react_1.default.useState(false);
package/esm/Tree/Tree.js CHANGED
@@ -27,7 +27,7 @@ const useStyle = styleMethod(theme => ({
27
27
  insetInlineStart: '-12px',
28
28
  height: '100%',
29
29
  width: '2px',
30
- background: theme.palette.light ? theme.palette.color.neutral['90'] : theme.palette.color.neutral['20']
30
+ background: theme.palette.light ? theme.palette.color.neutral[90] : theme.palette.color.neutral[40]
31
31
  },
32
32
  '&:last-of-type': {
33
33
  '&::before': {
@@ -57,8 +57,7 @@ const useStyle = styleMethod(theme => ({
57
57
  height: '14px',
58
58
  borderLeft: '2px solid',
59
59
  borderBottom: '2px solid',
60
- color: theme.palette.color.neutral['90'],
61
- borderColor: theme.palette.light ? theme.palette.color.neutral['90'] : theme.palette.color.neutral['20'],
60
+ borderColor: theme.palette.light ? theme.palette.color.default[90] : theme.palette.color.default[40],
62
61
  borderBottomLeftRadius: '6px',
63
62
  transform: `rotateY(${theme.direction === 'ltr' ? 0 : 180}deg)`
64
63
  }
@@ -116,7 +115,7 @@ const Tree = /*#__PURE__*/React.forwardRef((props_, ref) => {
116
115
  const Interaction = React.useMemo(() => theme?.elements?.Interaction || InteractionElement, [theme]);
117
116
  const {
118
117
  tonal = true,
119
- color = 'default',
118
+ color = 'inherit',
120
119
  version = 'text',
121
120
  open: open_,
122
121
  openDefault,
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.3
1
+ /** @license UiReact v1.0.5
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.3",
3
+ "version": "1.0.5",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-org/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@onesy/date": "^1.0.0",
40
40
  "@onesy/errors": "^1.0.0",
41
- "@onesy/icons-material-rounded-react": "^1.0.1",
41
+ "@onesy/icons-material-rounded-react": "^1.0.2",
42
42
  "@onesy/log": "^1.0.0",
43
43
  "@onesy/subscription": "^1.0.0",
44
44
  "@onesy/utils": "^1.0.0"