@gympass/yoga 7.108.0 → 7.108.1
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/cjs/Result/native/Attendances.js +11 -10
- package/cjs/Result/native/Details.js +3 -4
- package/cjs/Result/native/Rate.js +3 -5
- package/cjs/Result/native/Result.js +17 -19
- package/cjs/Result/native/Tags.js +17 -5
- package/cjs/Result/native/TinyTextIcon.js +16 -1
- package/esm/Result/native/Attendances.js +11 -10
- package/esm/Result/native/Details.js +3 -4
- package/esm/Result/native/Rate.js +3 -5
- package/esm/Result/native/Result.js +17 -19
- package/esm/Result/native/Tags.js +21 -9
- package/esm/Result/native/TinyTextIcon.js +16 -1
- package/package.json +2 -2
|
@@ -39,17 +39,16 @@ var import_Box = __toESM(require("../../Box"));
|
|
|
39
39
|
var import_Text = __toESM(require("../../Text"));
|
|
40
40
|
var import_Rate = __toESM(require("./Rate"));
|
|
41
41
|
var import_TinyTextIcon = __toESM(require("./TinyTextIcon"));
|
|
42
|
-
const List = (0, import_styled_components.default)(import_Text.default.
|
|
42
|
+
const List = (0, import_styled_components.default)(import_Text.default.Caption).attrs({
|
|
43
43
|
numberOfLines: 1,
|
|
44
|
-
|
|
44
|
+
color: ({ color }) => color || "deep"
|
|
45
45
|
})`
|
|
46
46
|
flex: 1;
|
|
47
47
|
`;
|
|
48
48
|
const ItemSeparator = (0, import_styled_components.default)(import_Box.default).attrs({
|
|
49
|
-
width: "xxxsmall",
|
|
50
49
|
height: "zero"
|
|
51
50
|
})``;
|
|
52
|
-
const Attendances = ({ attendances, rate }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
51
|
+
const Attendances = ({ attendances, rate, color }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
53
52
|
import_Box.default,
|
|
54
53
|
{
|
|
55
54
|
display: "flex",
|
|
@@ -59,11 +58,11 @@ const Attendances = ({ attendances, rate }) => /* @__PURE__ */ (0, import_jsx_ru
|
|
|
59
58
|
flexDirection: "row",
|
|
60
59
|
mb: "xxxsmall",
|
|
61
60
|
children: [
|
|
62
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(List, { children: attendances.map(({ description, icon }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
63
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TinyTextIcon.default, { as: icon, fill: "deep" }),
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparator, {}),
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(List, { color, children: attendances.map(({ description, icon }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TinyTextIcon.default, { as: icon, marginTop: "2px", fill: color || "deep" }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparator, { w: "xxxsmall" }),
|
|
65
64
|
description,
|
|
66
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparator, {})
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemSeparator, { w: "xxsmall" })
|
|
67
66
|
] }, description)) }),
|
|
68
67
|
rate && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Rate.default, { rate })
|
|
69
68
|
]
|
|
@@ -76,9 +75,11 @@ Attendances.propTypes = {
|
|
|
76
75
|
icon: import_prop_types.func
|
|
77
76
|
})
|
|
78
77
|
).isRequired,
|
|
79
|
-
rate: import_prop_types.string
|
|
78
|
+
rate: import_prop_types.string,
|
|
79
|
+
color: import_prop_types.string
|
|
80
80
|
};
|
|
81
81
|
Attendances.defaultProps = {
|
|
82
|
-
rate: void 0
|
|
82
|
+
rate: void 0,
|
|
83
|
+
color: "deep"
|
|
83
84
|
};
|
|
84
85
|
var Attendances_default = Attendances;
|
|
@@ -64,15 +64,14 @@ var import_styled_components = __toESM(require("styled-components"));
|
|
|
64
64
|
var import_Text = __toESM(require("../../Text"));
|
|
65
65
|
var import_Box = __toESM(require("../../Box"));
|
|
66
66
|
var import_TinyTextIcon = __toESM(require("./TinyTextIcon"));
|
|
67
|
-
const Container = (0, import_styled_components.default)(import_Text.default.
|
|
67
|
+
const Container = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
68
68
|
flex: 1;
|
|
69
|
-
height: ${({ theme }) => theme.yoga.spacing.small}px;
|
|
70
69
|
`;
|
|
71
70
|
const Separator = (0, import_styled_components.default)(import_Box.default).attrs({
|
|
72
71
|
width: "xxxsmall",
|
|
73
72
|
height: "xxxsmall"
|
|
74
73
|
})``;
|
|
75
|
-
const StyledText = (0, import_styled_components.default)(import_Text.default.
|
|
74
|
+
const StyledText = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
76
75
|
${({
|
|
77
76
|
theme: {
|
|
78
77
|
yoga: {
|
|
@@ -144,6 +143,6 @@ ResultDetails.defaultProps = {
|
|
|
144
143
|
limit: void 0,
|
|
145
144
|
limitLabel: "",
|
|
146
145
|
dots: false,
|
|
147
|
-
renderItem: import_Text.default.
|
|
146
|
+
renderItem: import_Text.default.Body2
|
|
148
147
|
};
|
|
149
148
|
var Details_default = ResultDetails;
|
|
@@ -44,24 +44,22 @@ const Content = import_styled_components.default.View`
|
|
|
44
44
|
margin-left: 10px;
|
|
45
45
|
align-items: center;
|
|
46
46
|
`;
|
|
47
|
-
const RateValue = (0, import_styled_components.default)(import_Text.default.
|
|
47
|
+
const RateValue = (0, import_styled_components.default)(import_Text.default.Overline)`
|
|
48
48
|
${({
|
|
49
49
|
theme: {
|
|
50
50
|
yoga: {
|
|
51
|
-
spacing: { xxxsmall }
|
|
52
|
-
lineHeights: { xsmall }
|
|
51
|
+
spacing: { xxxsmall }
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
}) => {
|
|
56
55
|
return `
|
|
57
56
|
margin-left: ${xxxsmall}px;
|
|
58
|
-
line-height: ${xsmall}px;
|
|
59
57
|
`;
|
|
60
58
|
}}
|
|
61
59
|
`;
|
|
62
60
|
const Rate = ({ rate }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, { children: [
|
|
63
61
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: import_yoga_icons.StarFilled, fill: "deep", width: "xsmall", height: "xsmall" }),
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RateValue, { variant: "deep",
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RateValue, { variant: "deep", children: rate })
|
|
65
63
|
] });
|
|
66
64
|
Rate.propTypes = {
|
|
67
65
|
rate: import_prop_types.string.isRequired
|
|
@@ -66,19 +66,6 @@ const Content = import_styled_components.default.View`
|
|
|
66
66
|
`;
|
|
67
67
|
}}
|
|
68
68
|
`;
|
|
69
|
-
const Title = (0, import_styled_components.default)(import_Text.default.Medium)`
|
|
70
|
-
${({
|
|
71
|
-
theme: {
|
|
72
|
-
yoga: {
|
|
73
|
-
lineHeights: { medium }
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}) => {
|
|
77
|
-
return `
|
|
78
|
-
line-height: ${medium}px;
|
|
79
|
-
`;
|
|
80
|
-
}}
|
|
81
|
-
`;
|
|
82
69
|
const Result = ({
|
|
83
70
|
avatar: Avatar,
|
|
84
71
|
attendances,
|
|
@@ -86,13 +73,21 @@ const Result = ({
|
|
|
86
73
|
title,
|
|
87
74
|
subTitle,
|
|
88
75
|
divided,
|
|
89
|
-
children
|
|
76
|
+
children,
|
|
77
|
+
attendancesColor
|
|
90
78
|
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledBox, { divided, display: "flex", flexDirection: "row", children: [
|
|
91
79
|
Avatar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: (0, import_react.isValidElement)(Avatar) ? Avatar : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Avatar, {}) }),
|
|
92
80
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, { children: [
|
|
93
|
-
!!(attendances == null ? void 0 : attendances.length) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
!!(attendances == null ? void 0 : attendances.length) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
import_Attendances.default,
|
|
83
|
+
{
|
|
84
|
+
attendances,
|
|
85
|
+
rate,
|
|
86
|
+
color: attendancesColor
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body1, { numberOfLines: 1, bold: true, children: title }),
|
|
90
|
+
subTitle && subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body2, { numberOfLines: 1, color: "deep", children: subTitle }),
|
|
96
91
|
children
|
|
97
92
|
] })
|
|
98
93
|
] });
|
|
@@ -115,13 +110,16 @@ Result.propTypes = {
|
|
|
115
110
|
/** If it is to show the divide in the bottom */
|
|
116
111
|
divided: import_prop_types.bool,
|
|
117
112
|
/** The chidren necessary */
|
|
118
|
-
children: import_prop_types.node
|
|
113
|
+
children: import_prop_types.node,
|
|
114
|
+
/** The color of attendences icon and description */
|
|
115
|
+
attendancesColor: import_prop_types.string
|
|
119
116
|
};
|
|
120
117
|
Result.defaultProps = {
|
|
121
118
|
rate: void 0,
|
|
122
119
|
divided: false,
|
|
123
120
|
subTitle: void 0,
|
|
124
121
|
children: void 0,
|
|
125
|
-
attendances: void 0
|
|
122
|
+
attendances: void 0,
|
|
123
|
+
attendancesColor: void 0
|
|
126
124
|
};
|
|
127
125
|
var Result_default = Result;
|
|
@@ -81,13 +81,25 @@ const Wrapper = import_styled_components.default.ScrollView`
|
|
|
81
81
|
margin-top: ${xxsmall}px;
|
|
82
82
|
`}
|
|
83
83
|
`;
|
|
84
|
-
const ResultTags = ({ items }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
const ResultTags = ({ items, disableScroll }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
+
Wrapper,
|
|
86
|
+
{
|
|
87
|
+
horizontal: true,
|
|
88
|
+
scrollEnabled: !disableScroll,
|
|
89
|
+
showsHorizontalScrollIndicator: false,
|
|
90
|
+
children: items.map((_a, index) => {
|
|
91
|
+
var props = __objRest(_a, []);
|
|
92
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagStyled, __spreadValues({ small: true }, props), index);
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
);
|
|
88
96
|
ResultTags.displayName = "Result.Tags";
|
|
89
97
|
ResultTags.propTypes = {
|
|
90
98
|
/** Props to generate each Tag. See Tag for details */
|
|
91
|
-
items: (0, import_prop_types.arrayOf)((0, import_prop_types.shape)({})).isRequired
|
|
99
|
+
items: (0, import_prop_types.arrayOf)((0, import_prop_types.shape)({})).isRequired,
|
|
100
|
+
disableScroll: import_prop_types.bool
|
|
101
|
+
};
|
|
102
|
+
ResultTags.defaultProps = {
|
|
103
|
+
disableScroll: false
|
|
92
104
|
};
|
|
93
105
|
var Tags_default = ResultTags;
|
|
@@ -22,6 +22,18 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
25
37
|
var __export = (target, all) => {
|
|
26
38
|
for (var name in all)
|
|
27
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -52,6 +64,9 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
52
64
|
var import_react = __toESM(require("react"));
|
|
53
65
|
var import_Box = __toESM(require("../../Box"));
|
|
54
66
|
var import_Icon = __toESM(require("../../Icon"));
|
|
55
|
-
const TinyTextIcon = (
|
|
67
|
+
const TinyTextIcon = (_a) => {
|
|
68
|
+
var _b = _a, { marginTop } = _b, props = __objRest(_b, ["marginTop"]);
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { height: "xsmall", width: "xsmall", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, __spreadProps(__spreadValues({}, props), { size: "xsmall", mt: marginTop })) });
|
|
70
|
+
};
|
|
56
71
|
TinyTextIcon.propTypes = import_Icon.default.propTypes;
|
|
57
72
|
var TinyTextIcon_default = TinyTextIcon;
|
|
@@ -6,17 +6,16 @@ import Box from "../../Box";
|
|
|
6
6
|
import Text from "../../Text";
|
|
7
7
|
import Rate from "./Rate";
|
|
8
8
|
import TinyTextIcon from "./TinyTextIcon";
|
|
9
|
-
const List = styled(Text.
|
|
9
|
+
const List = styled(Text.Caption).attrs({
|
|
10
10
|
numberOfLines: 1,
|
|
11
|
-
|
|
11
|
+
color: ({ color }) => color || "deep"
|
|
12
12
|
})`
|
|
13
13
|
flex: 1;
|
|
14
14
|
`;
|
|
15
15
|
const ItemSeparator = styled(Box).attrs({
|
|
16
|
-
width: "xxxsmall",
|
|
17
16
|
height: "zero"
|
|
18
17
|
})``;
|
|
19
|
-
const Attendances = ({ attendances, rate }) => /* @__PURE__ */ jsxs(
|
|
18
|
+
const Attendances = ({ attendances, rate, color }) => /* @__PURE__ */ jsxs(
|
|
20
19
|
Box,
|
|
21
20
|
{
|
|
22
21
|
display: "flex",
|
|
@@ -26,11 +25,11 @@ const Attendances = ({ attendances, rate }) => /* @__PURE__ */ jsxs(
|
|
|
26
25
|
flexDirection: "row",
|
|
27
26
|
mb: "xxxsmall",
|
|
28
27
|
children: [
|
|
29
|
-
/* @__PURE__ */ jsx(List, { children: attendances.map(({ description, icon }) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
30
|
-
/* @__PURE__ */ jsx(TinyTextIcon, { as: icon, fill: "deep" }),
|
|
31
|
-
/* @__PURE__ */ jsx(ItemSeparator, {}),
|
|
28
|
+
/* @__PURE__ */ jsx(List, { color, children: attendances.map(({ description, icon }) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx(TinyTextIcon, { as: icon, marginTop: "2px", fill: color || "deep" }),
|
|
30
|
+
/* @__PURE__ */ jsx(ItemSeparator, { w: "xxxsmall" }),
|
|
32
31
|
description,
|
|
33
|
-
/* @__PURE__ */ jsx(ItemSeparator, {})
|
|
32
|
+
/* @__PURE__ */ jsx(ItemSeparator, { w: "xxsmall" })
|
|
34
33
|
] }, description)) }),
|
|
35
34
|
rate && /* @__PURE__ */ jsx(Rate, { rate })
|
|
36
35
|
]
|
|
@@ -43,10 +42,12 @@ Attendances.propTypes = {
|
|
|
43
42
|
icon: func
|
|
44
43
|
})
|
|
45
44
|
).isRequired,
|
|
46
|
-
rate: string
|
|
45
|
+
rate: string,
|
|
46
|
+
color: string
|
|
47
47
|
};
|
|
48
48
|
Attendances.defaultProps = {
|
|
49
|
-
rate: void 0
|
|
49
|
+
rate: void 0,
|
|
50
|
+
color: "deep"
|
|
50
51
|
};
|
|
51
52
|
var Attendances_default = Attendances;
|
|
52
53
|
export {
|
|
@@ -42,15 +42,14 @@ import styled from "styled-components";
|
|
|
42
42
|
import Text from "../../Text";
|
|
43
43
|
import Box from "../../Box";
|
|
44
44
|
import TinyTextIcon from "./TinyTextIcon";
|
|
45
|
-
const Container = styled(Text.
|
|
45
|
+
const Container = styled(Text.Body2)`
|
|
46
46
|
flex: 1;
|
|
47
|
-
height: ${({ theme }) => theme.yoga.spacing.small}px;
|
|
48
47
|
`;
|
|
49
48
|
const Separator = styled(Box).attrs({
|
|
50
49
|
width: "xxxsmall",
|
|
51
50
|
height: "xxxsmall"
|
|
52
51
|
})``;
|
|
53
|
-
const StyledText = styled(Text.
|
|
52
|
+
const StyledText = styled(Text.Body2)`
|
|
54
53
|
${({
|
|
55
54
|
theme: {
|
|
56
55
|
yoga: {
|
|
@@ -122,7 +121,7 @@ ResultDetails.defaultProps = {
|
|
|
122
121
|
limit: void 0,
|
|
123
122
|
limitLabel: "",
|
|
124
123
|
dots: false,
|
|
125
|
-
renderItem: Text.
|
|
124
|
+
renderItem: Text.Body2
|
|
126
125
|
};
|
|
127
126
|
var Details_default = ResultDetails;
|
|
128
127
|
export {
|
|
@@ -11,24 +11,22 @@ const Content = styled.View`
|
|
|
11
11
|
margin-left: 10px;
|
|
12
12
|
align-items: center;
|
|
13
13
|
`;
|
|
14
|
-
const RateValue = styled(Text.
|
|
14
|
+
const RateValue = styled(Text.Overline)`
|
|
15
15
|
${({
|
|
16
16
|
theme: {
|
|
17
17
|
yoga: {
|
|
18
|
-
spacing: { xxxsmall }
|
|
19
|
-
lineHeights: { xsmall }
|
|
18
|
+
spacing: { xxxsmall }
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
}) => {
|
|
23
22
|
return `
|
|
24
23
|
margin-left: ${xxxsmall}px;
|
|
25
|
-
line-height: ${xsmall}px;
|
|
26
24
|
`;
|
|
27
25
|
}}
|
|
28
26
|
`;
|
|
29
27
|
const Rate = ({ rate }) => /* @__PURE__ */ jsxs(Content, { children: [
|
|
30
28
|
/* @__PURE__ */ jsx(Icon, { as: StarFilled, fill: "deep", width: "xsmall", height: "xsmall" }),
|
|
31
|
-
/* @__PURE__ */ jsx(RateValue, { variant: "deep",
|
|
29
|
+
/* @__PURE__ */ jsx(RateValue, { variant: "deep", children: rate })
|
|
32
30
|
] });
|
|
33
31
|
Rate.propTypes = {
|
|
34
32
|
rate: string.isRequired
|
|
@@ -33,19 +33,6 @@ const Content = styled.View`
|
|
|
33
33
|
`;
|
|
34
34
|
}}
|
|
35
35
|
`;
|
|
36
|
-
const Title = styled(Text.Medium)`
|
|
37
|
-
${({
|
|
38
|
-
theme: {
|
|
39
|
-
yoga: {
|
|
40
|
-
lineHeights: { medium }
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}) => {
|
|
44
|
-
return `
|
|
45
|
-
line-height: ${medium}px;
|
|
46
|
-
`;
|
|
47
|
-
}}
|
|
48
|
-
`;
|
|
49
36
|
const Result = ({
|
|
50
37
|
avatar: Avatar,
|
|
51
38
|
attendances,
|
|
@@ -53,13 +40,21 @@ const Result = ({
|
|
|
53
40
|
title,
|
|
54
41
|
subTitle,
|
|
55
42
|
divided,
|
|
56
|
-
children
|
|
43
|
+
children,
|
|
44
|
+
attendancesColor
|
|
57
45
|
}) => /* @__PURE__ */ jsxs(StyledBox, { divided, display: "flex", flexDirection: "row", children: [
|
|
58
46
|
Avatar && /* @__PURE__ */ jsx(Fragment, { children: isValidElement(Avatar) ? Avatar : /* @__PURE__ */ jsx(Avatar, {}) }),
|
|
59
47
|
/* @__PURE__ */ jsxs(Content, { children: [
|
|
60
|
-
!!(attendances == null ? void 0 : attendances.length) && /* @__PURE__ */ jsx(
|
|
61
|
-
|
|
62
|
-
|
|
48
|
+
!!(attendances == null ? void 0 : attendances.length) && /* @__PURE__ */ jsx(
|
|
49
|
+
Attendances,
|
|
50
|
+
{
|
|
51
|
+
attendances,
|
|
52
|
+
rate,
|
|
53
|
+
color: attendancesColor
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ jsx(Text.Body1, { numberOfLines: 1, bold: true, children: title }),
|
|
57
|
+
subTitle && subTitle !== "" && /* @__PURE__ */ jsx(Text.Body2, { numberOfLines: 1, color: "deep", children: subTitle }),
|
|
63
58
|
children
|
|
64
59
|
] })
|
|
65
60
|
] });
|
|
@@ -82,14 +77,17 @@ Result.propTypes = {
|
|
|
82
77
|
/** If it is to show the divide in the bottom */
|
|
83
78
|
divided: bool,
|
|
84
79
|
/** The chidren necessary */
|
|
85
|
-
children: node
|
|
80
|
+
children: node,
|
|
81
|
+
/** The color of attendences icon and description */
|
|
82
|
+
attendancesColor: string
|
|
86
83
|
};
|
|
87
84
|
Result.defaultProps = {
|
|
88
85
|
rate: void 0,
|
|
89
86
|
divided: false,
|
|
90
87
|
subTitle: void 0,
|
|
91
88
|
children: void 0,
|
|
92
|
-
attendances: void 0
|
|
89
|
+
attendances: void 0,
|
|
90
|
+
attendancesColor: void 0
|
|
93
91
|
};
|
|
94
92
|
var Result_default = Result;
|
|
95
93
|
export {
|
|
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import { jsx } from "react/jsx-runtime";
|
|
30
30
|
import React from "react";
|
|
31
|
-
import { arrayOf, shape } from "prop-types";
|
|
31
|
+
import { arrayOf, shape, bool } from "prop-types";
|
|
32
32
|
import styled from "styled-components";
|
|
33
33
|
import Tag from "../../Tag";
|
|
34
34
|
const TagStyled = styled(Tag.Informative)`
|
|
@@ -47,17 +47,29 @@ const Wrapper = styled.ScrollView`
|
|
|
47
47
|
margin-top: ${xxsmall}px;
|
|
48
48
|
`}
|
|
49
49
|
`;
|
|
50
|
-
const ResultTags = ({ items }) => /* @__PURE__ */ jsx(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
const ResultTags = ({ items, disableScroll }) => /* @__PURE__ */ jsx(
|
|
51
|
+
Wrapper,
|
|
52
|
+
{
|
|
53
|
+
horizontal: true,
|
|
54
|
+
scrollEnabled: !disableScroll,
|
|
55
|
+
showsHorizontalScrollIndicator: false,
|
|
56
|
+
children: items.map((_a, index) => {
|
|
57
|
+
var props = __objRest(_a, []);
|
|
58
|
+
return (
|
|
59
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
60
|
+
/* @__PURE__ */ jsx(TagStyled, __spreadValues({ small: true }, props), index)
|
|
61
|
+
);
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
);
|
|
57
65
|
ResultTags.displayName = "Result.Tags";
|
|
58
66
|
ResultTags.propTypes = {
|
|
59
67
|
/** Props to generate each Tag. See Tag for details */
|
|
60
|
-
items: arrayOf(shape({})).isRequired
|
|
68
|
+
items: arrayOf(shape({})).isRequired,
|
|
69
|
+
disableScroll: bool
|
|
70
|
+
};
|
|
71
|
+
ResultTags.defaultProps = {
|
|
72
|
+
disableScroll: false
|
|
61
73
|
};
|
|
62
74
|
var Tags_default = ResultTags;
|
|
63
75
|
export {
|
|
@@ -17,11 +17,26 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
import { jsx } from "react/jsx-runtime";
|
|
21
33
|
import React from "react";
|
|
22
34
|
import Box from "../../Box";
|
|
23
35
|
import Icon from "../../Icon";
|
|
24
|
-
const TinyTextIcon = (
|
|
36
|
+
const TinyTextIcon = (_a) => {
|
|
37
|
+
var _b = _a, { marginTop } = _b, props = __objRest(_b, ["marginTop"]);
|
|
38
|
+
return /* @__PURE__ */ jsx(Box, { height: "xsmall", width: "xsmall", children: /* @__PURE__ */ jsx(Icon, __spreadProps(__spreadValues({}, props), { size: "xsmall", mt: marginTop })) });
|
|
39
|
+
};
|
|
25
40
|
TinyTextIcon.propTypes = Icon.propTypes;
|
|
26
41
|
var TinyTextIcon_default = TinyTextIcon;
|
|
27
42
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.108.
|
|
3
|
+
"version": "7.108.1",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-native": "0.72.3",
|
|
58
58
|
"styled-components": "^4.4.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "90d26ef35fee2b0323bbbac3cef453f829f1770d",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|