@gympass/yoga 7.131.0 → 7.131.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.
Files changed (107) hide show
  1. package/cjs/Accordion/web/Accordion.js +4 -4
  2. package/cjs/Accordion/web/Accordion.test.js +14 -0
  3. package/cjs/ActionRequirement/native/ActionRequirement.js +29 -16
  4. package/cjs/Avatar/native/Avatar.js +12 -18
  5. package/cjs/Banner/native/Banner.js +44 -36
  6. package/cjs/Button/native/Button.js +79 -81
  7. package/cjs/Button/native/Icon.js +6 -14
  8. package/cjs/Button/native/Link.js +18 -5
  9. package/cjs/Button/native/Outline.js +11 -17
  10. package/cjs/Button/native/withTouchable.js +5 -11
  11. package/cjs/Card/native/Card/Card.js +2 -8
  12. package/cjs/Card/native/EventCard/EventCard.js +13 -18
  13. package/cjs/Card/native/GymCard/CheckIn/CheckIn.js +1 -4
  14. package/cjs/Card/native/PlanCard/Content.js +7 -14
  15. package/cjs/Card/native/PlanCard/List.js +3 -8
  16. package/cjs/Card/native/PlanCard/PlanCard.js +7 -5
  17. package/cjs/Checkbox/native/Checkbox.js +11 -22
  18. package/cjs/Checkbox/native/Switch.js +3 -8
  19. package/cjs/Chips/native/Chips.js +6 -15
  20. package/cjs/Divider/native/Divider.js +1 -4
  21. package/cjs/Dropdown/native/Backdrop.js +4 -9
  22. package/cjs/Dropdown/native/Dropdown.js +8 -17
  23. package/cjs/Dropdown/native/Options.android.js +2 -6
  24. package/cjs/Dropdown/native/Options.ios.js +5 -10
  25. package/cjs/Input/native/Helper.js +8 -18
  26. package/cjs/Input/native/Input.js +18 -35
  27. package/cjs/Input/native/Password.js +7 -14
  28. package/cjs/List/native/ListItem.js +3 -8
  29. package/cjs/Progress/native/Progress.js +14 -10
  30. package/cjs/RadioGroup/native/Button/RadioButton.js +1 -4
  31. package/cjs/RadioGroup/native/Radio/Radio.js +1 -5
  32. package/cjs/RadioGroup/native/RadioGroup.js +12 -7
  33. package/cjs/Rating/native/Rating.js +8 -17
  34. package/cjs/Result/native/Attendances.js +1 -5
  35. package/cjs/Result/native/Details.js +4 -9
  36. package/cjs/Result/native/Result/index.js +7 -16
  37. package/cjs/Result/native/Tags.js +1 -4
  38. package/cjs/Skeleton/native/Skeleton.js +10 -7
  39. package/cjs/Slider/native/Label.js +1 -4
  40. package/cjs/Slider/native/Marker.js +15 -20
  41. package/cjs/Slider/native/Slider.js +8 -18
  42. package/cjs/Slider/native/Step.js +1 -4
  43. package/cjs/Slider/native/Tooltip.js +9 -6
  44. package/cjs/Snackbar/native/Snackbar.js +9 -20
  45. package/cjs/Snackbar/native/SnackbarAnimationWrapper.js +1 -4
  46. package/cjs/Stepper/native/Dots.js +1 -6
  47. package/cjs/Stepper/native/Line.js +1 -6
  48. package/cjs/Stepper/native/Stepper.js +1 -6
  49. package/cjs/Tag/native/Informative.js +4 -10
  50. package/cjs/Tag/native/Tag.js +11 -6
  51. package/cjs/Text/native/Text.js +40 -9
  52. package/cjs/TextArea/native/TextArea.js +38 -17
  53. package/esm/Accordion/web/Accordion.js +4 -4
  54. package/esm/Accordion/web/Accordion.test.js +15 -1
  55. package/esm/ActionRequirement/native/ActionRequirement.js +29 -16
  56. package/esm/Avatar/native/Avatar.js +12 -18
  57. package/esm/Banner/native/Banner.js +44 -36
  58. package/esm/Button/native/Button.js +79 -81
  59. package/esm/Button/native/Icon.js +6 -14
  60. package/esm/Button/native/Link.js +18 -5
  61. package/esm/Button/native/Outline.js +11 -17
  62. package/esm/Button/native/withTouchable.js +5 -11
  63. package/esm/Card/native/Card/Card.js +2 -8
  64. package/esm/Card/native/EventCard/EventCard.js +13 -18
  65. package/esm/Card/native/GymCard/CheckIn/CheckIn.js +1 -4
  66. package/esm/Card/native/PlanCard/Content.js +7 -14
  67. package/esm/Card/native/PlanCard/List.js +3 -8
  68. package/esm/Card/native/PlanCard/PlanCard.js +7 -5
  69. package/esm/Checkbox/native/Checkbox.js +11 -22
  70. package/esm/Checkbox/native/Switch.js +3 -8
  71. package/esm/Chips/native/Chips.js +6 -15
  72. package/esm/Divider/native/Divider.js +1 -4
  73. package/esm/Dropdown/native/Backdrop.js +4 -9
  74. package/esm/Dropdown/native/Dropdown.js +8 -17
  75. package/esm/Dropdown/native/Options.android.js +2 -6
  76. package/esm/Dropdown/native/Options.ios.js +5 -10
  77. package/esm/Input/native/Helper.js +8 -18
  78. package/esm/Input/native/Input.js +18 -35
  79. package/esm/Input/native/Password.js +7 -14
  80. package/esm/List/native/ListItem.js +3 -8
  81. package/esm/Progress/native/Progress.js +14 -10
  82. package/esm/RadioGroup/native/Button/RadioButton.js +1 -4
  83. package/esm/RadioGroup/native/Radio/Radio.js +1 -5
  84. package/esm/RadioGroup/native/RadioGroup.js +12 -7
  85. package/esm/Rating/native/Rating.js +8 -17
  86. package/esm/Result/native/Attendances.js +1 -5
  87. package/esm/Result/native/Details.js +4 -9
  88. package/esm/Result/native/Result/index.js +7 -16
  89. package/esm/Result/native/Tags.js +1 -4
  90. package/esm/Skeleton/native/Skeleton.js +10 -7
  91. package/esm/Slider/native/Label.js +1 -4
  92. package/esm/Slider/native/Marker.js +15 -20
  93. package/esm/Slider/native/Slider.js +8 -18
  94. package/esm/Slider/native/Step.js +1 -4
  95. package/esm/Slider/native/Tooltip.js +9 -6
  96. package/esm/Snackbar/native/Snackbar.js +9 -20
  97. package/esm/Snackbar/native/SnackbarAnimationWrapper.js +1 -4
  98. package/esm/Stepper/native/Dots.js +1 -6
  99. package/esm/Stepper/native/Line.js +1 -6
  100. package/esm/Stepper/native/Stepper.js +1 -6
  101. package/esm/Tag/native/Informative.js +4 -10
  102. package/esm/Tag/native/Tag.js +11 -6
  103. package/esm/Text/native/Text.js +40 -9
  104. package/esm/TextArea/native/TextArea.js +38 -17
  105. package/package.json +2 -2
  106. package/typings/Theme/theme/theme.d.ts +37 -37
  107. package/typings/Theme/theme/v3theme.d.ts +37 -37
@@ -15,7 +15,7 @@ const List = styled(Text.Caption).attrs({
15
15
  const ItemSeparator = styled(Box).attrs({
16
16
  height: "zero"
17
17
  })``;
18
- const Attendances = ({ attendances, rate, color }) => /* @__PURE__ */ jsxs(
18
+ const Attendances = ({ attendances, rate = void 0, color = "deep" }) => /* @__PURE__ */ jsxs(
19
19
  Box,
20
20
  {
21
21
  display: "flex",
@@ -45,10 +45,6 @@ Attendances.propTypes = {
45
45
  rate: string,
46
46
  color: string
47
47
  };
48
- Attendances.defaultProps = {
49
- rate: void 0,
50
- color: "deep"
51
- };
52
48
  var Attendances_default = Attendances;
53
49
  export {
54
50
  Attendances_default as default
@@ -64,12 +64,13 @@ const StyledText = styled(Text.Body2)`
64
64
  const ResultDetails = ({
65
65
  items,
66
66
  limit,
67
- limitLabel,
68
- dots,
69
- renderItem: Item
67
+ limitLabel = "",
68
+ dots = false,
69
+ renderItem = Text.Body2
70
70
  }) => {
71
71
  const refinedList = limit !== 0 ? items.slice(0, limit) : items;
72
72
  const numberOfItemsLeft = items.length - limit;
73
+ const Item = renderItem;
73
74
  return /* @__PURE__ */ jsx(Box, { flexDirection: "row", alignItems: "center", mt: "xxxsmall", children: /* @__PURE__ */ jsx(Container, { numberOfLines: 1, children: refinedList == null ? void 0 : refinedList.map(
74
75
  (_a, index) => {
75
76
  var _b = _a, { icon: IconComponent, variant } = _b, props = __objRest(_b, ["icon", "variant"]);
@@ -117,12 +118,6 @@ ResultDetails.propTypes = {
117
118
  /** The component to render as the item of the list. */
118
119
  renderItem: oneOfType([node, func, shape({ render: func.isRequired })])
119
120
  };
120
- ResultDetails.defaultProps = {
121
- limit: void 0,
122
- limitLabel: "",
123
- dots: false,
124
- renderItem: Text.Body2
125
- };
126
121
  var Details_default = ResultDetails;
127
122
  export {
128
123
  Details_default as default
@@ -8,14 +8,14 @@ import { Content, StyledBox } from "./styles";
8
8
  import TextWithBadge from "./TextWithBadge";
9
9
  const Result = ({
10
10
  avatar: Avatar,
11
- attendances,
12
- rate,
11
+ attendances = void 0,
12
+ rate = void 0,
13
13
  title,
14
- subTitle,
15
- divided,
16
- children,
17
- attendancesColor,
18
- badgeIcon
14
+ subTitle = void 0,
15
+ divided = false,
16
+ children = void 0,
17
+ attendancesColor = void 0,
18
+ badgeIcon = void 0
19
19
  }) => {
20
20
  return /* @__PURE__ */ jsxs(StyledBox, { divided, display: "flex", flexDirection: "row", children: [
21
21
  Avatar && /* @__PURE__ */ jsx(Fragment, { children: isValidElement(Avatar) ? Avatar : /* @__PURE__ */ jsx(Avatar, {}) }),
@@ -59,15 +59,6 @@ Result.propTypes = {
59
59
  /** The property that defines a whether a badge should be shown and which icon should be rendered */
60
60
  badgeIcon: node
61
61
  };
62
- Result.defaultProps = {
63
- rate: void 0,
64
- divided: false,
65
- subTitle: void 0,
66
- children: void 0,
67
- attendances: void 0,
68
- attendancesColor: void 0,
69
- badgeIcon: void 0
70
- };
71
62
  var Result_default = Result;
72
63
  export {
73
64
  Result_default as default
@@ -47,7 +47,7 @@ const Wrapper = styled.ScrollView`
47
47
  margin-top: ${xxsmall}px;
48
48
  `}
49
49
  `;
50
- const ResultTags = ({ items, disableScroll }) => /* @__PURE__ */ jsx(
50
+ const ResultTags = ({ items, disableScroll = false }) => /* @__PURE__ */ jsx(
51
51
  Wrapper,
52
52
  {
53
53
  horizontal: true,
@@ -68,9 +68,6 @@ ResultTags.propTypes = {
68
68
  items: arrayOf(shape({})).isRequired,
69
69
  disableScroll: bool
70
70
  };
71
- ResultTags.defaultProps = {
72
- disableScroll: false
73
- };
74
71
  var Tags_default = ResultTags;
75
72
  export {
76
73
  Tags_default as default
@@ -64,7 +64,15 @@ const StyledSkeleton = styled.View`
64
64
  `}
65
65
  `;
66
66
  function Skeleton(_a) {
67
- var _b = _a, { animation = "pulse" } = _b, props = __objRest(_b, ["animation"]);
67
+ var _b = _a, {
68
+ animation = "pulse",
69
+ variant = void 0,
70
+ color = "primary"
71
+ } = _b, rest = __objRest(_b, [
72
+ "animation",
73
+ "variant",
74
+ "color"
75
+ ]);
68
76
  const [opacity] = useState(new Animated.Value(0.4));
69
77
  useEffect(() => {
70
78
  if (animation) {
@@ -87,7 +95,7 @@ function Skeleton(_a) {
87
95
  ).start();
88
96
  }
89
97
  }, [opacity]);
90
- return /* @__PURE__ */ jsx(Animated.View, { style: { opacity }, children: /* @__PURE__ */ jsx(StyledSkeleton, __spreadValues({}, props)) });
98
+ return /* @__PURE__ */ jsx(Animated.View, { style: { opacity }, children: /* @__PURE__ */ jsx(StyledSkeleton, __spreadValues({ variant, color }, rest)) });
91
99
  }
92
100
  Skeleton.propTypes = {
93
101
  /**
@@ -138,11 +146,6 @@ Skeleton.propTypes = {
138
146
  */
139
147
  animation: oneOf(["pulse", false])
140
148
  };
141
- Skeleton.defaultProps = {
142
- variant: void 0,
143
- animation: "pulse",
144
- color: "primary"
145
- };
146
149
  var Skeleton_default = Skeleton;
147
150
  export {
148
151
  Skeleton_default as default
@@ -7,7 +7,7 @@ const LabelView = styled.View`
7
7
  `;
8
8
  const LabelText = styled.Text(
9
9
  ({
10
- placement,
10
+ placement = "left",
11
11
  theme: {
12
12
  yoga: { baseFont }
13
13
  }
@@ -24,9 +24,6 @@ const LabelText = styled.Text(
24
24
  LabelText.propTypes = {
25
25
  placement: oneOf(["left", "right"])
26
26
  };
27
- LabelText.defaultProps = {
28
- placement: "left"
29
- };
30
27
  export {
31
28
  LabelText,
32
29
  LabelView
@@ -28,7 +28,7 @@ const Circle = styled(Box).attrs(
28
28
  )``;
29
29
  const CirclePressed = styled(Circle)(
30
30
  ({
31
- pressed,
31
+ pressed = false,
32
32
  theme: {
33
33
  yoga: {
34
34
  components: { slider }
@@ -49,21 +49,20 @@ const CirclePressed = styled(Circle)(
49
49
  CirclePressed.propTypes = {
50
50
  pressed: bool
51
51
  };
52
- CirclePressed.defaultProps = {
53
- pressed: false
54
- };
55
- const Marker = ({ pressed, tooltip }) => /* @__PURE__ */ jsxs(Fragment, { children: [
56
- pressed && tooltip && /* @__PURE__ */ jsx(
57
- Tooltip,
58
- {
59
- description: tooltip.description,
60
- title: tooltip.title,
61
- ribbon: tooltip.ribbon
62
- }
63
- ),
64
- /* @__PURE__ */ jsx(CirclePressed, { as: View, pressed }),
65
- /* @__PURE__ */ jsx(Circle, { accessible: true, accessibilityRole: "adjustable" })
66
- ] });
52
+ function Marker({ pressed = false, tooltip }) {
53
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
54
+ pressed && tooltip && /* @__PURE__ */ jsx(
55
+ Tooltip,
56
+ {
57
+ description: tooltip.description,
58
+ title: tooltip.title,
59
+ ribbon: tooltip.ribbon
60
+ }
61
+ ),
62
+ /* @__PURE__ */ jsx(CirclePressed, { as: View, pressed }),
63
+ /* @__PURE__ */ jsx(Circle, { accessible: true, accessibilityRole: "adjustable" })
64
+ ] });
65
+ }
67
66
  Marker.propTypes = {
68
67
  pressed: bool,
69
68
  tooltip: shape({
@@ -74,10 +73,6 @@ Marker.propTypes = {
74
73
  step: number
75
74
  })
76
75
  };
77
- Marker.defaultProps = {
78
- pressed: false,
79
- tooltip: void 0
80
- };
81
76
  var Marker_default = Marker;
82
77
  export {
83
78
  Marker_default as default
@@ -40,14 +40,14 @@ import Marker from "./Marker";
40
40
  import Step from "./Step";
41
41
  const Slider = (_a) => {
42
42
  var _b = _a, {
43
- max,
44
- maxLabel,
45
- min,
46
- minLabel,
47
- snapped,
48
- values,
49
- tooltip,
50
- sliderLength,
43
+ max = 10,
44
+ maxLabel = void 0,
45
+ min = 0,
46
+ minLabel = void 0,
47
+ snapped = false,
48
+ values = [0],
49
+ tooltip = [],
50
+ sliderLength = 280,
51
51
  theme: {
52
52
  yoga: {
53
53
  components: { slider }
@@ -152,16 +152,6 @@ Slider.propTypes = {
152
152
  /** an array that accepts one or two numbers, this determines how many markers will be displayed */
153
153
  values: arrayOf(number)
154
154
  };
155
- Slider.defaultProps = {
156
- max: 10,
157
- maxLabel: void 0,
158
- min: 0,
159
- minLabel: void 0,
160
- sliderLength: 280,
161
- snapped: false,
162
- tooltip: [],
163
- values: [0]
164
- };
165
155
  Slider.displayName = "Slider";
166
156
  var Slider_default = withTheme(Slider);
167
157
  export {
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  import { bool } from "prop-types";
3
3
  const Step = styled.View(
4
4
  ({
5
- active,
5
+ active = false,
6
6
  theme: {
7
7
  yoga: {
8
8
  components: { slider }
@@ -18,9 +18,6 @@ const Step = styled.View(
18
18
  Step.propTypes = {
19
19
  active: bool
20
20
  };
21
- Step.defaultProps = {
22
- active: false
23
- };
24
21
  var Step_default = Step;
25
22
  export {
26
23
  Step_default as default
@@ -154,7 +154,15 @@ Ribbon.propTypes = {
154
154
  children: node.isRequired
155
155
  };
156
156
  const Tooltip = (_c) => {
157
- var _d = _c, { title, description, ribbon } = _d, props = __objRest(_d, ["title", "description", "ribbon"]);
157
+ var _d = _c, {
158
+ title = void 0,
159
+ description = void 0,
160
+ ribbon = void 0
161
+ } = _d, props = __objRest(_d, [
162
+ "title",
163
+ "description",
164
+ "ribbon"
165
+ ]);
158
166
  return /* @__PURE__ */ jsxs(Wrapper, { children: [
159
167
  /* @__PURE__ */ jsx(Arrow, {}),
160
168
  ribbon && /* @__PURE__ */ jsx(Ribbon, { children: ribbon }),
@@ -169,11 +177,6 @@ Tooltip.propTypes = {
169
177
  description: string,
170
178
  ribbon: string
171
179
  };
172
- Tooltip.defaultProps = {
173
- title: void 0,
174
- description: void 0,
175
- ribbon: void 0
176
- };
177
180
  var Tooltip_default = Tooltip;
178
181
  export {
179
182
  Tooltip_default as default
@@ -77,15 +77,15 @@ const SnackbarContainer = styled.View`
77
77
  `;
78
78
  const Snackbar = forwardRef((props, ref) => {
79
79
  const _a = props, {
80
- icon,
81
- message,
82
- actionLabel,
83
- onAction,
84
- variant,
85
- onSnackbarClose,
86
- duration,
87
- bottomOffset,
88
- dataTestId
80
+ icon = void 0,
81
+ message = "",
82
+ actionLabel = void 0,
83
+ onAction = void 0,
84
+ variant = "success",
85
+ onSnackbarClose = void 0,
86
+ duration = "default",
87
+ bottomOffset = 0,
88
+ dataTestId = "snackbar"
89
89
  } = _a, rest = __objRest(_a, [
90
90
  "icon",
91
91
  "message",
@@ -234,17 +234,6 @@ Snackbar.propTypes = {
234
234
  /* A unique identifier for the Snackbar component, used for testing purposes with tools like Jest and Testing Library. */
235
235
  dataTestId: string
236
236
  };
237
- Snackbar.defaultProps = {
238
- variant: "success",
239
- icon: void 0,
240
- message: "",
241
- actionLabel: void 0,
242
- onAction: void 0,
243
- onSnackbarClose: void 0,
244
- duration: "default",
245
- bottomOffset: 0,
246
- dataTestId: "snackbar"
247
- };
248
237
  var Snackbar_default = Snackbar;
249
238
  export {
250
239
  Snackbar_default as default
@@ -23,7 +23,7 @@ const Wrapper = styled(Animated.View)(
23
23
  `
24
24
  );
25
25
  const SnackbarAnimationWrapper = forwardRef(
26
- ({ onSnackbarClose, children, duration }, ref) => {
26
+ ({ onSnackbarClose = void 0, children, duration }, ref) => {
27
27
  const { height: windowHeight } = useWindowDimensions();
28
28
  const [childrenHeight, setChildrenHeight] = useState();
29
29
  const translateY = useRef(new Animated.Value(windowHeight)).current;
@@ -105,9 +105,6 @@ SnackbarAnimationWrapper.propTypes = {
105
105
  children: node.isRequired,
106
106
  duration: oneOf(["fast", "default", "slow", "indefinite"]).isRequired
107
107
  };
108
- SnackbarAnimationWrapper.defaultProps = {
109
- onSnackbarClose: void 0
110
- };
111
108
  var SnackbarAnimationWrapper_default = SnackbarAnimationWrapper;
112
109
  export {
113
110
  SnackbarAnimationWrapper_default as default
@@ -52,7 +52,7 @@ const Label = styled(Text.Overline)(
52
52
  `;
53
53
  }
54
54
  );
55
- function Dots({ activeStep, labels, secondary }) {
55
+ function Dots({ activeStep = 0, labels = [], secondary = false }) {
56
56
  return /* @__PURE__ */ jsx(Wrapper, { children: labels.map((label, index) => /* @__PURE__ */ jsxs(DotWrapper, { children: [
57
57
  /* @__PURE__ */ jsx(Dot, { active: activeDot(index, activeStep), secondary }),
58
58
  /* @__PURE__ */ jsx(Label, { active: activeDot(index, activeStep), secondary, children: label })
@@ -63,11 +63,6 @@ Dots.propTypes = {
63
63
  labels: arrayOf(string),
64
64
  secondary: bool
65
65
  };
66
- Dots.defaultProps = {
67
- activeStep: 0,
68
- labels: [],
69
- secondary: false
70
- };
71
66
  var Dots_default = Dots;
72
67
  export {
73
68
  Dots_default as default
@@ -40,7 +40,7 @@ const ActiveLine = styled.View(
40
40
  height: 4px;
41
41
  `
42
42
  );
43
- function Line({ activeStep, totalSteps, secondary }) {
43
+ function Line({ activeStep = 0, totalSteps = 0, secondary = false }) {
44
44
  return /* @__PURE__ */ jsxs(Wrapper, { children: [
45
45
  /* @__PURE__ */ jsx(InactiveLine, {}),
46
46
  /* @__PURE__ */ jsx(
@@ -57,11 +57,6 @@ Line.propTypes = {
57
57
  totalSteps: number,
58
58
  secondary: bool
59
59
  };
60
- Line.defaultProps = {
61
- activeStep: 0,
62
- totalSteps: 0,
63
- secondary: false
64
- };
65
60
  var Line_default = Line;
66
61
  export {
67
62
  Line_default as default
@@ -53,7 +53,7 @@ const LineWrapper = styled.View(
53
53
  `
54
54
  );
55
55
  function Stepper(_a) {
56
- var _b = _a, { children, activeStep, secondary } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
56
+ var _b = _a, { children, activeStep = 0, secondary = false } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
57
57
  return /* @__PURE__ */ jsxs(Wrapper, __spreadProps(__spreadValues({}, rest), { children: [
58
58
  /* @__PURE__ */ jsxs(LineWrapper, { children: [
59
59
  /* @__PURE__ */ jsx(
@@ -86,11 +86,6 @@ Stepper.propTypes = {
86
86
  /** Use secondary color */
87
87
  secondary: bool
88
88
  };
89
- Stepper.defaultProps = {
90
- children: void 0,
91
- activeStep: 0,
92
- secondary: false
93
- };
94
89
  var Stepper_default = Stepper;
95
90
  export {
96
91
  Stepper_default as default
@@ -75,16 +75,16 @@ const StyledTextInformative = styled(StyledText)`
75
75
  const TagInformative = (_a) => {
76
76
  var _b = _a, {
77
77
  children,
78
- icon,
79
- ellipsis,
78
+ icon = void 0,
79
+ ellipsis = false,
80
80
  theme: {
81
81
  yoga: {
82
82
  colors: { text },
83
83
  components: { tag }
84
84
  }
85
85
  },
86
- small,
87
- variant
86
+ small = false,
87
+ variant = "neutral"
88
88
  } = _b, rest = __objRest(_b, [
89
89
  "children",
90
90
  "icon",
@@ -115,12 +115,6 @@ TagInformative.propTypes = {
115
115
  small: bool,
116
116
  ellipsis: bool
117
117
  };
118
- TagInformative.defaultProps = {
119
- variant: "neutral",
120
- icon: void 0,
121
- small: false,
122
- ellipsis: false
123
- };
124
118
  TagInformative.displayName = "Tag.Informative";
125
119
  var Informative_default = withTheme(TagInformative);
126
120
  export {
@@ -95,7 +95,17 @@ const StyledText = styled((_a) => {
95
95
  `}
96
96
  `;
97
97
  const Tag = (_c) => {
98
- var _d = _c, { children, variant, small, ellipsis } = _d, rest = __objRest(_d, ["children", "variant", "small", "ellipsis"]);
98
+ var _d = _c, {
99
+ children,
100
+ variant = "",
101
+ small = false,
102
+ ellipsis = false
103
+ } = _d, rest = __objRest(_d, [
104
+ "children",
105
+ "variant",
106
+ "small",
107
+ "ellipsis"
108
+ ]);
99
109
  return /* @__PURE__ */ jsx(StyledTag, __spreadProps(__spreadValues({ variant, small }, rest), { children: /* @__PURE__ */ jsx(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children }) }));
100
110
  };
101
111
  Tag.propTypes = {
@@ -106,11 +116,6 @@ Tag.propTypes = {
106
116
  children: node.isRequired,
107
117
  ellipsis: bool
108
118
  };
109
- Tag.defaultProps = {
110
- variant: "",
111
- small: false,
112
- ellipsis: false
113
- };
114
119
  var Tag_default = Tag;
115
120
  export {
116
121
  StyledTag,
@@ -14,6 +14,18 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ var __objRest = (source, exclude) => {
18
+ var target = {};
19
+ for (var prop in source)
20
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
21
+ target[prop] = source[prop];
22
+ if (source != null && __getOwnPropSymbols)
23
+ for (var prop of __getOwnPropSymbols(source)) {
24
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
25
+ target[prop] = source[prop];
26
+ }
27
+ return target;
28
+ };
17
29
  import { jsx } from "react/jsx-runtime";
18
30
  import React from "react";
19
31
  import styled from "styled-components";
@@ -72,7 +84,34 @@ Bold.displayName = "Text.Bold";
72
84
  const Black = styledText("black");
73
85
  Black.displayName = "Text.Black";
74
86
  const TextRenderer = styledText("p");
75
- const Text = (props) => /* @__PURE__ */ jsx(TextRenderer, __spreadValues({}, props));
87
+ const Text = (_a) => {
88
+ var _b = _a, {
89
+ inverted = false,
90
+ variant = void 0,
91
+ size = void 0,
92
+ fontSize = "medium",
93
+ light = false,
94
+ bold = false
95
+ } = _b, rest = __objRest(_b, [
96
+ "inverted",
97
+ "variant",
98
+ "size",
99
+ "fontSize",
100
+ "light",
101
+ "bold"
102
+ ]);
103
+ return /* @__PURE__ */ jsx(
104
+ TextRenderer,
105
+ __spreadValues({
106
+ inverted,
107
+ variant,
108
+ size,
109
+ fontSize,
110
+ light,
111
+ bold
112
+ }, rest)
113
+ );
114
+ };
76
115
  Text.displayName = "Text";
77
116
  Text.Display1 = Display1;
78
117
  Text.Display2 = Display2;
@@ -139,14 +178,6 @@ Text.propTypes = {
139
178
  bold: bool,
140
179
  fontSize: fontSizes
141
180
  };
142
- Text.defaultProps = {
143
- inverted: false,
144
- variant: void 0,
145
- size: void 0,
146
- fontSize: "medium",
147
- light: false,
148
- bold: false
149
- };
150
181
  export {
151
182
  Black,
152
183
  Body1,
@@ -25,7 +25,44 @@ import Input from "../../Input";
25
25
  const StyledInput = styled(Input)`
26
26
  height: 88px;
27
27
  `;
28
- const TextArea = (props) => /* @__PURE__ */ jsx(StyledInput, __spreadProps(__spreadValues({}, props), { textAlignVertical: "top", multiline: true, cleanable: false }));
28
+ const TextArea = ({
29
+ disabled = false,
30
+ error = void 0,
31
+ full = false,
32
+ helper = void 0,
33
+ label = "",
34
+ maxLength = void 0,
35
+ readOnly = false,
36
+ value = "",
37
+ onBlur = () => {
38
+ },
39
+ onChangeText = () => {
40
+ },
41
+ onFocus = () => {
42
+ }
43
+ }) => {
44
+ const props = {
45
+ disabled,
46
+ error,
47
+ full,
48
+ helper,
49
+ label,
50
+ maxLength,
51
+ readOnly,
52
+ value,
53
+ onBlur,
54
+ onChangeText,
55
+ onFocus
56
+ };
57
+ return /* @__PURE__ */ jsx(
58
+ StyledInput,
59
+ __spreadProps(__spreadValues({}, props), {
60
+ textAlignVertical: "top",
61
+ multiline: true,
62
+ cleanable: false
63
+ })
64
+ );
65
+ };
29
66
  TextArea.propTypes = {
30
67
  disabled: bool,
31
68
  /** A error text to be displayed below field */
@@ -42,22 +79,6 @@ TextArea.propTypes = {
42
79
  onChangeText: func,
43
80
  onFocus: func
44
81
  };
45
- TextArea.defaultProps = {
46
- disabled: false,
47
- error: void 0,
48
- full: false,
49
- helper: void 0,
50
- label: "",
51
- maxLength: void 0,
52
- readOnly: false,
53
- value: "",
54
- onBlur: () => {
55
- },
56
- onChangeText: () => {
57
- },
58
- onFocus: () => {
59
- }
60
- };
61
82
  var TextArea_default = TextArea;
62
83
  export {
63
84
  TextArea_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.131.0",
3
+ "version": "7.131.2",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "types": "./typings/index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "react-native": "0.72.3",
60
60
  "styled-components": "^4.4.0"
61
61
  },
62
- "gitHead": "26df123dcfe659e0e80491e56d38db3ce457296c",
62
+ "gitHead": "818a0a624ed180aa9fa5244cd848c279f45b445e",
63
63
  "module": "./esm",
64
64
  "private": false,
65
65
  "react-native": "./cjs/index.native.js"