@gympass/yoga 7.108.0 → 7.108.2

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.
@@ -108,11 +108,7 @@ const Wrapper = import_styled_components.default.View.attrs(({ theme: { yoga } }
108
108
  ` : ""}
109
109
  `;
110
110
  const StyledChips = (0, import_styled_components.default)(import_Text.default)`
111
- font-size: ${import_Theme.theme.fontSizes.xsmall}px;
112
- line-height: ${import_Theme.theme.lineHeights.xsmall}px;
113
-
114
111
  flex-shrink: 1;
115
-
116
112
  ${({ disabled }) => disabled ? import_styled_components.css`
117
113
  color: ${import_Theme.theme.colors.text.disabled};
118
114
  ` : ""}
@@ -178,7 +174,7 @@ const Chips = import_react.default.forwardRef(
178
174
  StyledChips,
179
175
  {
180
176
  disabled,
181
- as: selected ? import_Text.default.Bold : import_Text.default,
177
+ as: selected || disabled ? import_Text.default.Overline : import_Text.default.Caption,
182
178
  selected,
183
179
  numberOfLines: 1,
184
180
  children
@@ -68,16 +68,9 @@ var import_yoga_common = require("@gympass/yoga-common");
68
68
  var import_Theme = require("../../Theme");
69
69
  var import_Icon = __toESM(require("../../Icon"));
70
70
  var import_Counter = __toESM(require("./Counter"));
71
+ var import_Text = __toESM(require("../../Text"));
71
72
  const BORDER_OPACITY = 0.4;
72
73
  const BORDER_PRESSED_OPACITY = 0.6;
73
- const Text = import_styled_components.default.span`
74
- display: inline-block;
75
- box-sizing: border-box;
76
-
77
- white-space: nowrap;
78
- overflow: hidden;
79
- text-overflow: ellipsis;
80
- `;
81
74
  const Wrapper = import_styled_components.default.button`
82
75
  height: 32px;
83
76
  max-width: 216px;
@@ -92,16 +85,7 @@ const Wrapper = import_styled_components.default.button`
92
85
 
93
86
  ${(_a) => {
94
87
  var _b = _a, { selected, justAnIcon } = _b, props = __objRest(_b, ["selected", "justAnIcon"]);
95
- const {
96
- spacing,
97
- borders,
98
- colors,
99
- radii,
100
- baseFont,
101
- fontSizes,
102
- fontWeights,
103
- lineHeights
104
- } = (0, import_Theme.theme)(props);
88
+ const { spacing, borders, colors, radii } = (0, import_Theme.theme)(props);
105
89
  const commonStyles = `
106
90
 
107
91
  padding: ${justAnIcon ? `${spacing.xxsmall}px` : `${spacing.xxsmall}px ${spacing.xsmall}px`};
@@ -109,18 +93,15 @@ const Wrapper = import_styled_components.default.button`
109
93
  border-radius: ${radii.circle}px;
110
94
  border-width: ${borders.small}px;
111
95
 
112
- font-family: ${baseFont.family};
113
- font-size: ${fontSizes.xsmall}px;
114
- line-height: ${lineHeights.xsmall}px;
115
-
116
96
  :not(:last-child) {
117
97
  margin-right: ${spacing.xxsmall}px;
118
98
  }
119
99
 
120
100
  &[disabled] {
121
101
  background-color: ${colors.elements.backgroundAndDisabled};
122
- color: ${colors.text.disabled};
123
-
102
+ p {
103
+ color: ${colors.text.disabled};
104
+ }
124
105
  border-color: ${colors.elements.backgroundAndDisabled};
125
106
 
126
107
  cursor: not-allowed;
@@ -138,13 +119,15 @@ const Wrapper = import_styled_components.default.button`
138
119
  return `
139
120
  ${commonStyles}
140
121
 
122
+ p {
123
+ color: ${colors.white};
124
+ }
125
+
141
126
  background-color: ${colors.secondary};
142
- color: ${colors.white};
127
+
143
128
 
144
129
  border-color: transparent;
145
130
 
146
- font-weight: ${fontWeights.bold};
147
-
148
131
  &:hover:enabled {
149
132
  border-color: ${colors.secondary};
150
133
  }
@@ -164,17 +147,18 @@ const Wrapper = import_styled_components.default.button`
164
147
  border-color: ${(0, import_yoga_common.hexToRgb)(colors.secondary, BORDER_OPACITY)};
165
148
 
166
149
  background-color: ${colors.white};
167
- color: ${colors.secondary};
168
-
169
- font-weight: ${fontWeights.regular};
170
-
150
+ p {
151
+ color: ${colors.secondary};
152
+ }
171
153
  &:hover:enabled {
172
154
  border-color: ${colors.secondary};
173
155
  }
174
156
 
175
157
  &:active:enabled {
176
158
  border-color: ${(0, import_yoga_common.hexToRgb)(colors.secondary, BORDER_PRESSED_OPACITY)};
177
- color: ${(0, import_yoga_common.hexToRgb)(colors.secondary, BORDER_PRESSED_OPACITY)};
159
+ p {
160
+ color: ${(0, import_yoga_common.hexToRgb)(colors.secondary, BORDER_PRESSED_OPACITY)};
161
+ }
178
162
 
179
163
  svg {
180
164
  fill: ${(0, import_yoga_common.hexToRgb)(colors.secondary, BORDER_PRESSED_OPACITY)};
@@ -208,6 +192,7 @@ const Chips = import_react.default.forwardRef(
208
192
  ]);
209
193
  const [FirstIcon, SecondIcon] = icons;
210
194
  const justAnIcon = (icons[0] || icons[1]) && !children;
195
+ const TextComponent = selected || disabled ? import_Text.default.Overline : import_Text.default.Caption;
211
196
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
212
197
  Wrapper,
213
198
  __spreadProps(__spreadValues({
@@ -231,7 +216,7 @@ const Chips = import_react.default.forwardRef(
231
216
  }
232
217
  }
233
218
  ),
234
- children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children }),
219
+ children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextComponent, { children }),
235
220
  selected && counter && !disabled && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Counter.default, { value: counter }),
236
221
  FirstIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
237
222
  import_Icon.default,
@@ -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.Tiny).attrs({
42
+ const List = (0, import_styled_components.default)(import_Text.default.Caption).attrs({
43
43
  numberOfLines: 1,
44
- variant: "deep"
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.Tiny)`
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.Tiny)`
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.Tiny
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.Medium)`
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", size: "xsmall", children: rate })
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)(import_Attendances.default, { attendances, rate }),
94
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title, { numberOfLines: 1, children: title }),
95
- subTitle && subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Small, { numberOfLines: 1, variant: "stamina", children: subTitle }),
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)(Wrapper, { horizontal: true, showsHorizontalScrollIndicator: false, children: items.map((_a, index) => {
85
- var props = __objRest(_a, []);
86
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagStyled, __spreadValues({ small: true }, props), index);
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 = (props) => /* @__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: "2px" })) });
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;
@@ -77,11 +77,7 @@ const Wrapper = styled.View.attrs(({ theme: { yoga } }) => {
77
77
  ` : ""}
78
78
  `;
79
79
  const StyledChips = styled(Text)`
80
- font-size: ${theme.fontSizes.xsmall}px;
81
- line-height: ${theme.lineHeights.xsmall}px;
82
-
83
80
  flex-shrink: 1;
84
-
85
81
  ${({ disabled }) => disabled ? css`
86
82
  color: ${theme.colors.text.disabled};
87
83
  ` : ""}
@@ -147,7 +143,7 @@ const Chips = React.forwardRef(
147
143
  StyledChips,
148
144
  {
149
145
  disabled,
150
- as: selected ? Text.Bold : Text,
146
+ as: selected || disabled ? Text.Overline : Text.Caption,
151
147
  selected,
152
148
  numberOfLines: 1,
153
149
  children
@@ -37,16 +37,9 @@ import { hexToRgb } from "@gympass/yoga-common";
37
37
  import { theme } from "../../Theme";
38
38
  import Icon from "../../Icon";
39
39
  import Counter from "./Counter";
40
+ import Text from "../../Text";
40
41
  const BORDER_OPACITY = 0.4;
41
42
  const BORDER_PRESSED_OPACITY = 0.6;
42
- const Text = styled.span`
43
- display: inline-block;
44
- box-sizing: border-box;
45
-
46
- white-space: nowrap;
47
- overflow: hidden;
48
- text-overflow: ellipsis;
49
- `;
50
43
  const Wrapper = styled.button`
51
44
  height: 32px;
52
45
  max-width: 216px;
@@ -61,16 +54,7 @@ const Wrapper = styled.button`
61
54
 
62
55
  ${(_a) => {
63
56
  var _b = _a, { selected, justAnIcon } = _b, props = __objRest(_b, ["selected", "justAnIcon"]);
64
- const {
65
- spacing,
66
- borders,
67
- colors,
68
- radii,
69
- baseFont,
70
- fontSizes,
71
- fontWeights,
72
- lineHeights
73
- } = theme(props);
57
+ const { spacing, borders, colors, radii } = theme(props);
74
58
  const commonStyles = `
75
59
 
76
60
  padding: ${justAnIcon ? `${spacing.xxsmall}px` : `${spacing.xxsmall}px ${spacing.xsmall}px`};
@@ -78,18 +62,15 @@ const Wrapper = styled.button`
78
62
  border-radius: ${radii.circle}px;
79
63
  border-width: ${borders.small}px;
80
64
 
81
- font-family: ${baseFont.family};
82
- font-size: ${fontSizes.xsmall}px;
83
- line-height: ${lineHeights.xsmall}px;
84
-
85
65
  :not(:last-child) {
86
66
  margin-right: ${spacing.xxsmall}px;
87
67
  }
88
68
 
89
69
  &[disabled] {
90
70
  background-color: ${colors.elements.backgroundAndDisabled};
91
- color: ${colors.text.disabled};
92
-
71
+ p {
72
+ color: ${colors.text.disabled};
73
+ }
93
74
  border-color: ${colors.elements.backgroundAndDisabled};
94
75
 
95
76
  cursor: not-allowed;
@@ -107,13 +88,15 @@ const Wrapper = styled.button`
107
88
  return `
108
89
  ${commonStyles}
109
90
 
91
+ p {
92
+ color: ${colors.white};
93
+ }
94
+
110
95
  background-color: ${colors.secondary};
111
- color: ${colors.white};
96
+
112
97
 
113
98
  border-color: transparent;
114
99
 
115
- font-weight: ${fontWeights.bold};
116
-
117
100
  &:hover:enabled {
118
101
  border-color: ${colors.secondary};
119
102
  }
@@ -133,17 +116,18 @@ const Wrapper = styled.button`
133
116
  border-color: ${hexToRgb(colors.secondary, BORDER_OPACITY)};
134
117
 
135
118
  background-color: ${colors.white};
136
- color: ${colors.secondary};
137
-
138
- font-weight: ${fontWeights.regular};
139
-
119
+ p {
120
+ color: ${colors.secondary};
121
+ }
140
122
  &:hover:enabled {
141
123
  border-color: ${colors.secondary};
142
124
  }
143
125
 
144
126
  &:active:enabled {
145
127
  border-color: ${hexToRgb(colors.secondary, BORDER_PRESSED_OPACITY)};
146
- color: ${hexToRgb(colors.secondary, BORDER_PRESSED_OPACITY)};
128
+ p {
129
+ color: ${hexToRgb(colors.secondary, BORDER_PRESSED_OPACITY)};
130
+ }
147
131
 
148
132
  svg {
149
133
  fill: ${hexToRgb(colors.secondary, BORDER_PRESSED_OPACITY)};
@@ -177,6 +161,7 @@ const Chips = React.forwardRef(
177
161
  ]);
178
162
  const [FirstIcon, SecondIcon] = icons;
179
163
  const justAnIcon = (icons[0] || icons[1]) && !children;
164
+ const TextComponent = selected || disabled ? Text.Overline : Text.Caption;
180
165
  return /* @__PURE__ */ jsxs(
181
166
  Wrapper,
182
167
  __spreadProps(__spreadValues({
@@ -200,7 +185,7 @@ const Chips = React.forwardRef(
200
185
  }
201
186
  }
202
187
  ),
203
- children && /* @__PURE__ */ jsx(Text, { children }),
188
+ children && /* @__PURE__ */ jsx(TextComponent, { children }),
204
189
  selected && counter && !disabled && /* @__PURE__ */ jsx(Counter, { value: counter }),
205
190
  FirstIcon && /* @__PURE__ */ jsx(
206
191
  Icon,
@@ -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.Tiny).attrs({
9
+ const List = styled(Text.Caption).attrs({
10
10
  numberOfLines: 1,
11
- variant: "deep"
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.Tiny)`
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.Tiny)`
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.Tiny
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.Medium)`
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", size: "xsmall", children: rate })
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(Attendances, { attendances, rate }),
61
- /* @__PURE__ */ jsx(Title, { numberOfLines: 1, children: title }),
62
- subTitle && subTitle !== "" && /* @__PURE__ */ jsx(Text.Small, { numberOfLines: 1, variant: "stamina", children: subTitle }),
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(Wrapper, { horizontal: true, showsHorizontalScrollIndicator: false, children: items.map((_a, index) => {
51
- var props = __objRest(_a, []);
52
- return (
53
- // eslint-disable-next-line react/no-array-index-key
54
- /* @__PURE__ */ jsx(TagStyled, __spreadValues({ small: true }, props), index)
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 = (props) => /* @__PURE__ */ jsx(Box, { height: "xsmall", width: "xsmall", children: /* @__PURE__ */ jsx(Icon, __spreadProps(__spreadValues({}, props), { size: "xsmall", mt: "2px" })) });
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.0",
3
+ "version": "7.108.2",
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": "f2472b24c7657c24192dd8dc0f29ce63f2cf76d3",
60
+ "gitHead": "332b0673dc10bf427dc8664aa774d0f7ea3156ee",
61
61
  "module": "./esm",
62
62
  "private": false,
63
63
  "react-native": "./cjs/index.native.js"