@onesy/ui-react 1.0.9 → 1.0.10
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.
@@ -26,16 +26,13 @@ const Rating_1 = __importDefault(require("../Rating"));
|
|
26
26
|
const utils_2 = require("../utils");
|
27
27
|
const useStyle = (0, style_react_1.style)(theme => ({
|
28
28
|
root: {
|
29
|
-
overflow: 'hidden'
|
30
|
-
|
31
|
-
reviews: {
|
32
|
-
overflowX: 'auto',
|
33
|
-
padding: '0px 4px 12px',
|
34
|
-
maxWidth: '100%'
|
29
|
+
overflow: 'auto hidden',
|
30
|
+
padding: '0px 16px 24px',
|
35
31
|
},
|
32
|
+
reviews: {},
|
36
33
|
review: {
|
37
|
-
|
38
|
-
|
34
|
+
background: theme.palette.background.primary.secondary,
|
35
|
+
boxShadow: '0px 4px 32px 0px rgba(0, 0, 0, 0.024)'
|
39
36
|
},
|
40
37
|
review_size_small: {
|
41
38
|
width: '240px',
|
@@ -74,14 +71,14 @@ const Element = react_1.default.forwardRef((props_, ref) => {
|
|
74
71
|
ref.current = item;
|
75
72
|
}
|
76
73
|
refs.root.current = item;
|
77
|
-
}, align: '
|
74
|
+
}, align: 'flex-start', fullWidth: true, className: (0, style_react_1.classNames)([
|
78
75
|
(0, utils_2.staticClassName)('SectionReviews', theme) && [
|
79
76
|
'onesy-SectionReviews-root',
|
80
77
|
`onesy-SectionReviews-size-${size}`
|
81
78
|
],
|
82
79
|
className,
|
83
80
|
classes.root
|
84
|
-
]) }, other, { children: (0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 2, direction: 'row', align: 'flex-start'
|
81
|
+
]) }, other, { children: (0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 2, direction: 'row', justify: 'center', align: 'flex-start' }, ReviewsProps, { className: (0, style_react_1.classNames)([
|
85
82
|
(0, utils_2.staticClassName)('SectionReviews', theme) && [
|
86
83
|
'onesy-SectionReviews-reviews'
|
87
84
|
],
|
@@ -89,7 +86,7 @@ const Element = react_1.default.forwardRef((props_, ref) => {
|
|
89
86
|
classes.reviews
|
90
87
|
]) }, { children: values.filter(Boolean).map((item, index) => {
|
91
88
|
var _a, _b, _c;
|
92
|
-
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.4, direction: 'column' }, ReviewProps, { className: (0, style_react_1.classNames)([
|
89
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.4, direction: 'column', flexNo: true }, ReviewProps, { className: (0, style_react_1.classNames)([
|
93
90
|
(0, utils_2.staticClassName)('SectionReviews', theme) && [
|
94
91
|
'onesy-SectionReviews-review'
|
95
92
|
],
|
@@ -15,16 +15,13 @@ import RatingElement from '../Rating';
|
|
15
15
|
import { staticClassName } from '../utils';
|
16
16
|
const useStyle = styleMethod(theme => ({
|
17
17
|
root: {
|
18
|
-
overflow: 'hidden'
|
19
|
-
|
20
|
-
reviews: {
|
21
|
-
overflowX: 'auto',
|
22
|
-
padding: '0px 4px 12px',
|
23
|
-
maxWidth: '100%'
|
18
|
+
overflow: 'auto hidden',
|
19
|
+
padding: '0px 16px 24px'
|
24
20
|
},
|
21
|
+
reviews: {},
|
25
22
|
review: {
|
26
|
-
|
27
|
-
|
23
|
+
background: theme.palette.background.primary.secondary,
|
24
|
+
boxShadow: '0px 4px 32px 0px rgba(0, 0, 0, 0.024)'
|
28
25
|
},
|
29
26
|
review_size_small: {
|
30
27
|
width: '240px',
|
@@ -79,19 +76,21 @@ const Element = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
79
76
|
}
|
80
77
|
refs.root.current = item;
|
81
78
|
},
|
82
|
-
align: "
|
79
|
+
align: "flex-start",
|
80
|
+
fullWidth: true,
|
83
81
|
className: classNames([staticClassName('SectionReviews', theme) && ['onesy-SectionReviews-root', `onesy-SectionReviews-size-${size}`], className, classes.root])
|
84
82
|
}, other), /*#__PURE__*/React.createElement(Line, _extends({
|
85
83
|
gap: 2,
|
86
84
|
direction: "row",
|
87
|
-
|
88
|
-
|
85
|
+
justify: "center",
|
86
|
+
align: "flex-start"
|
89
87
|
}, ReviewsProps, {
|
90
88
|
className: classNames([staticClassName('SectionReviews', theme) && ['onesy-SectionReviews-reviews'], ReviewsProps?.className, classes.reviews])
|
91
89
|
}), values.filter(Boolean).map((item, index) => /*#__PURE__*/React.createElement(Line, _extends({
|
92
90
|
key: index,
|
93
91
|
gap: 1.4,
|
94
|
-
direction: "column"
|
92
|
+
direction: "column",
|
93
|
+
flexNo: true
|
95
94
|
}, ReviewProps, {
|
96
95
|
className: classNames([staticClassName('SectionReviews', theme) && ['onesy-SectionReviews-review'], ReviewProps?.className, classes.review, classes[`review_size_${size}`]])
|
97
96
|
}), /*#__PURE__*/React.createElement(Line, {
|
package/esm/index.js
CHANGED