@gympass/yoga 7.127.3 → 7.128.0

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 (123) hide show
  1. package/cjs/Accordion/web/Accordion.js +4 -12
  2. package/cjs/Accordion/web/Small.js +0 -1
  3. package/cjs/ActionRequirement/web/ActionRequirement.js +1 -8
  4. package/cjs/AutoComplete/web/AutoComplete.js +11 -25
  5. package/cjs/Avatar/web/Avatar.js +15 -14
  6. package/cjs/Avatar/web/AvatarCircle.js +0 -1
  7. package/cjs/Banner/web/Banner.js +13 -7
  8. package/cjs/Button/web/Button.js +10 -22
  9. package/cjs/Button/web/Icon.js +9 -11
  10. package/cjs/Button/web/Link.js +10 -8
  11. package/cjs/Button/web/Text.js +1 -5
  12. package/cjs/Card/web/Card/Card.js +15 -17
  13. package/cjs/Card/web/PlanCard/Content.js +9 -20
  14. package/cjs/Card/web/PlanCard/List.js +3 -9
  15. package/cjs/Card/web/PlanCard/PlanCard.js +1 -6
  16. package/cjs/Checkbox/web/Checkbox.js +4 -17
  17. package/cjs/Checkbox/web/Switch.js +13 -9
  18. package/cjs/Chips/web/Chips.js +6 -14
  19. package/cjs/Datepicker/web/Calendar.js +4 -14
  20. package/cjs/Datepicker/web/Datepicker.js +5 -22
  21. package/cjs/Dialog/web/Dialog.js +3 -12
  22. package/cjs/Divider/web/Divider.js +6 -8
  23. package/cjs/Drawer/web/Drawer.js +16 -4
  24. package/cjs/Dropdown/web/Dropdown.js +20 -11
  25. package/cjs/Feedback/web/Feedback.js +13 -6
  26. package/cjs/Grid/web/Col.js +0 -19
  27. package/cjs/Grid/web/Hide.js +19 -1
  28. package/cjs/Header/web/Header.js +1 -6
  29. package/cjs/Header/web/Logo.js +1 -4
  30. package/cjs/Heading/web/Heading.js +1 -6
  31. package/cjs/Icon/Icon.js +1 -11
  32. package/cjs/Input/web/Helper.js +0 -9
  33. package/cjs/Input/web/Input.js +12 -36
  34. package/cjs/Input/web/Password.js +2 -10
  35. package/cjs/Input/web/Phone.js +24 -27
  36. package/cjs/Input/web/Phone.test.js +15 -0
  37. package/cjs/List/web/List.js +6 -8
  38. package/cjs/Menu/web/Menu.js +1 -4
  39. package/cjs/Menu/web/MenuItem.js +2 -10
  40. package/cjs/Menu/web/MenuList.js +8 -8
  41. package/cjs/Popover/web/Popover.js +5 -14
  42. package/cjs/Progress/web/Progress.js +6 -15
  43. package/cjs/RadioGroup/web/Button/RadioButton.js +4 -7
  44. package/cjs/RadioGroup/web/Radio/Radio.js +12 -17
  45. package/cjs/RadioGroup/web/RadioGroup.js +10 -17
  46. package/cjs/Rating/web/Rating.js +16 -25
  47. package/cjs/Skeleton/web/Skeleton.js +18 -7
  48. package/cjs/Slider/web/Marker.js +14 -9
  49. package/cjs/Slider/web/Slider.js +7 -14
  50. package/cjs/Slider/web/Tooltip.js +5 -10
  51. package/cjs/Snackbar/web/Snackbar.js +11 -22
  52. package/cjs/Spinner/web/Spinner.js +24 -26
  53. package/cjs/Stepper/web/Dots.js +2 -6
  54. package/cjs/Stepper/web/Line.js +0 -4
  55. package/cjs/Stepper/web/Stepper.js +1 -6
  56. package/cjs/Tag/web/Informative.js +3 -9
  57. package/cjs/Tag/web/Tag.js +11 -6
  58. package/cjs/Text/web/Text.js +37 -10
  59. package/cjs/TextArea/web/TextArea.js +11 -21
  60. package/cjs/Theme/Provider/Provider.js +1 -4
  61. package/esm/Accordion/web/Accordion.js +4 -12
  62. package/esm/Accordion/web/Small.js +0 -1
  63. package/esm/ActionRequirement/web/ActionRequirement.js +1 -8
  64. package/esm/AutoComplete/web/AutoComplete.js +11 -25
  65. package/esm/Avatar/web/Avatar.js +15 -14
  66. package/esm/Avatar/web/AvatarCircle.js +0 -1
  67. package/esm/Banner/web/Banner.js +13 -7
  68. package/esm/Button/web/Button.js +10 -22
  69. package/esm/Button/web/Icon.js +9 -11
  70. package/esm/Button/web/Link.js +10 -8
  71. package/esm/Button/web/Text.js +1 -5
  72. package/esm/Card/web/Card/Card.js +15 -17
  73. package/esm/Card/web/PlanCard/Content.js +9 -20
  74. package/esm/Card/web/PlanCard/List.js +3 -9
  75. package/esm/Card/web/PlanCard/PlanCard.js +1 -6
  76. package/esm/Checkbox/web/Checkbox.js +4 -17
  77. package/esm/Checkbox/web/Switch.js +13 -9
  78. package/esm/Chips/web/Chips.js +6 -14
  79. package/esm/Datepicker/web/Calendar.js +4 -14
  80. package/esm/Datepicker/web/Datepicker.js +5 -22
  81. package/esm/Dialog/web/Dialog.js +3 -12
  82. package/esm/Divider/web/Divider.js +6 -8
  83. package/esm/Drawer/web/Drawer.js +16 -4
  84. package/esm/Dropdown/web/Dropdown.js +20 -11
  85. package/esm/Feedback/web/Feedback.js +13 -6
  86. package/esm/Grid/web/Col.js +0 -19
  87. package/esm/Grid/web/Hide.js +19 -1
  88. package/esm/Header/web/Header.js +1 -6
  89. package/esm/Header/web/Logo.js +1 -4
  90. package/esm/Heading/web/Heading.js +1 -6
  91. package/esm/Icon/Icon.js +1 -11
  92. package/esm/Input/web/Helper.js +0 -9
  93. package/esm/Input/web/Input.js +12 -36
  94. package/esm/Input/web/Password.js +2 -10
  95. package/esm/Input/web/Phone.js +24 -27
  96. package/esm/Input/web/Phone.test.js +15 -0
  97. package/esm/List/web/List.js +6 -8
  98. package/esm/Menu/web/Menu.js +1 -4
  99. package/esm/Menu/web/MenuItem.js +2 -10
  100. package/esm/Menu/web/MenuList.js +8 -8
  101. package/esm/Popover/web/Popover.js +5 -14
  102. package/esm/Progress/web/Progress.js +6 -15
  103. package/esm/RadioGroup/web/Button/RadioButton.js +4 -7
  104. package/esm/RadioGroup/web/Radio/Radio.js +12 -17
  105. package/esm/RadioGroup/web/RadioGroup.js +10 -17
  106. package/esm/Rating/web/Rating.js +16 -25
  107. package/esm/Skeleton/web/Skeleton.js +18 -7
  108. package/esm/Slider/web/Marker.js +14 -9
  109. package/esm/Slider/web/Slider.js +7 -14
  110. package/esm/Slider/web/Tooltip.js +5 -10
  111. package/esm/Snackbar/web/Snackbar.js +11 -22
  112. package/esm/Spinner/web/Spinner.js +24 -26
  113. package/esm/Stepper/web/Dots.js +2 -6
  114. package/esm/Stepper/web/Line.js +0 -4
  115. package/esm/Stepper/web/Stepper.js +1 -6
  116. package/esm/Tag/web/Informative.js +3 -9
  117. package/esm/Tag/web/Tag.js +11 -6
  118. package/esm/Text/web/Text.js +37 -10
  119. package/esm/TextArea/web/TextArea.js +11 -21
  120. package/esm/Theme/Provider/Provider.js +1 -4
  121. package/package.json +2 -2
  122. package/typings/NavigationMenu/web/Item/styles.d.ts +3 -8
  123. package/typings/index.d.ts +40 -138
@@ -59,8 +59,19 @@ const Circle = styled(RCHandle)`
59
59
  0 0 0 8px ${hexToRgb(slider.marker.backgroundColor, 0.2)}` : slider.marker.shadow};
60
60
  `}
61
61
  `;
62
- const Marker = (_a) => {
63
- var _b = _a, { values, dragging, index, tooltip } = _b, props = __objRest(_b, ["values", "dragging", "index", "tooltip"]);
62
+ const defaultValues = [0];
63
+ function Marker(_a) {
64
+ var _b = _a, {
65
+ values = defaultValues,
66
+ dragging = false,
67
+ index = 0,
68
+ tooltip
69
+ } = _b, props = __objRest(_b, [
70
+ "values",
71
+ "dragging",
72
+ "index",
73
+ "tooltip"
74
+ ]);
64
75
  const renderTooltip = () => {
65
76
  if (!dragging) {
66
77
  return false;
@@ -73,7 +84,7 @@ const Marker = (_a) => {
73
84
  })[0];
74
85
  };
75
86
  return /* @__PURE__ */ jsx(Circle, __spreadProps(__spreadValues({ "data-dragging": Boolean(dragging) }, props), { children: dragging && /* @__PURE__ */ jsx(Tooltip, { data: renderTooltip() }) }));
76
- };
87
+ }
77
88
  Marker.propTypes = {
78
89
  values: arrayOf(number),
79
90
  dragging: bool,
@@ -88,12 +99,6 @@ Marker.propTypes = {
88
99
  })
89
100
  )
90
101
  };
91
- Marker.defaultProps = {
92
- values: [0],
93
- dragging: false,
94
- index: 0,
95
- tooltip: void 0
96
- };
97
102
  var Marker_default = Marker;
98
103
  export {
99
104
  Marker_default as default
@@ -60,14 +60,16 @@ const StyledRange = styled(RCRange)`
60
60
  box-sizing: border-box;
61
61
  }
62
62
  `;
63
+ const emptyArr = [];
64
+ const defaultValues = [0];
63
65
  const Slider = (_a) => {
64
66
  var _b = _a, {
65
- snapped,
66
- tooltip,
67
- values,
68
- max,
67
+ snapped = false,
68
+ tooltip = emptyArr,
69
+ values = defaultValues,
70
+ max = 10,
69
71
  maxLabel,
70
- min,
72
+ min = 0,
71
73
  minLabel,
72
74
  theme: {
73
75
  yoga: {
@@ -214,15 +216,6 @@ Slider.propTypes = {
214
216
  /** an array that accepts one or two numbers, this determines how many markers will be displayed */
215
217
  values: arrayOf(number)
216
218
  };
217
- Slider.defaultProps = {
218
- max: 10,
219
- maxLabel: void 0,
220
- min: 0,
221
- minLabel: void 0,
222
- snapped: false,
223
- tooltip: [],
224
- values: [0]
225
- };
226
219
  Slider.displayName = "Slider";
227
220
  var Slider_default = withTheme(Slider);
228
221
  export {
@@ -43,7 +43,7 @@ const Wrapper = styled.div`
43
43
  transform: translateX(-50%);
44
44
 
45
45
  ${({
46
- hasRibbon,
46
+ hasRibbon = false,
47
47
  theme: {
48
48
  yoga: {
49
49
  components: { slider }
@@ -58,9 +58,6 @@ const Wrapper = styled.div`
58
58
  Wrapper.propTypes = {
59
59
  hasRibbon: bool
60
60
  };
61
- Wrapper.defaultProps = {
62
- hasRibbon: false
63
- };
64
61
  const Tip = styled.div`
65
62
  position: relative;
66
63
  z-index: 3;
@@ -158,8 +155,9 @@ const Description = styled(Text.Body2)`
158
155
  font-weight: ${slider.tooltip.font.description.weight};
159
156
  `}
160
157
  `;
161
- const Tooltip = (_a) => {
162
- var _b = _a, { data } = _b, props = __objRest(_b, ["data"]);
158
+ const emptyObj = {};
159
+ function Tooltip(_a) {
160
+ var _b = _a, { data = emptyObj } = _b, props = __objRest(_b, ["data"]);
163
161
  return Object.keys(data).length ? /* @__PURE__ */ jsxs(Wrapper, __spreadProps(__spreadValues({ hasRibbon: Boolean(data.ribbon) }, props), { children: [
164
162
  data.ribbon && /* @__PURE__ */ jsx(Ribbon, { as: "span", children: data.ribbon }),
165
163
  (data.title || data.description) && /* @__PURE__ */ jsxs(Tip, { children: [
@@ -168,7 +166,7 @@ const Tooltip = (_a) => {
168
166
  ] }),
169
167
  /* @__PURE__ */ jsx(Arrow, {})
170
168
  ] })) : null;
171
- };
169
+ }
172
170
  Tooltip.propTypes = {
173
171
  data: shape({
174
172
  ribbon: string,
@@ -176,9 +174,6 @@ Tooltip.propTypes = {
176
174
  description: string
177
175
  })
178
176
  };
179
- Tooltip.defaultProps = {
180
- data: {}
181
- };
182
177
  var Tooltip_default = Tooltip;
183
178
  export {
184
179
  Tooltip_default as default
@@ -89,22 +89,22 @@ const StyledSnackbar = styled.div`
89
89
  align-items: center;
90
90
  justify-content: space-between;
91
91
  box-sizing: border-box;
92
-
92
+
93
93
  position: fixed;
94
94
  bottom: ${snackbar.position.mobile.bottom}px;
95
95
  right: ${snackbar.position.mobile.right}px;
96
96
  left: ${snackbar.position.mobile.left}px;
97
-
97
+
98
98
  min-width: ${snackbar.minWidth.mobile}px;
99
99
  max-width: ${snackbar.maxWidth.default}px;
100
-
100
+
101
101
  min-height: ${snackbar.height.min}px;
102
102
  max-height: ${snackbar.height.max}px;
103
-
103
+
104
104
  padding: ${snackbar.padding.default}px;
105
-
105
+
106
106
  border-radius: ${snackbar.border.radius}px;
107
-
107
+
108
108
  box-shadow: ${snackbar.shadow.default};
109
109
 
110
110
  background-color: ${snackbar.variant.color[variant]};
@@ -134,17 +134,17 @@ const AnimatedSnackbar = styled(StyledSnackbar)`
134
134
  const Snackbar = React.forwardRef(
135
135
  (_a, ref) => {
136
136
  var _b = _a, {
137
- open,
137
+ open = false,
138
138
  duration,
139
- variant,
140
- hideIcon,
139
+ variant = "success",
140
+ hideIcon = false,
141
141
  message,
142
142
  actionLabel,
143
143
  onAction,
144
144
  onClose,
145
- hideCloseButton,
145
+ hideCloseButton = false,
146
146
  ariaLabelClose,
147
- dataTestId,
147
+ dataTestId = "snackbar",
148
148
  theme: {
149
149
  yoga: {
150
150
  components: { snackbar }
@@ -247,17 +247,6 @@ Snackbar.propTypes = {
247
247
  /* A unique identifier for the Snackbar component, used for testing purposes with tools like Jest and Testing Library. */
248
248
  dataTestId: string
249
249
  };
250
- Snackbar.defaultProps = {
251
- open: false,
252
- duration: void 0,
253
- actionLabel: void 0,
254
- hideIcon: false,
255
- onAction: void 0,
256
- variant: "success",
257
- hideCloseButton: false,
258
- ariaLabelClose: void 0,
259
- dataTestId: "snackbar"
260
- };
261
250
  var Snackbar_default = memo(withTheme(Snackbar));
262
251
  export {
263
252
  Snackbar_default as default
@@ -49,28 +49,30 @@ const StyledSpinner = styled.span`
49
49
  }
50
50
  `}
51
51
  `;
52
- const Spinner = React.forwardRef(({ size, color, theme }, ref) => {
53
- return /* @__PURE__ */ jsx(
54
- StyledSpinner,
55
- {
56
- color: get(theme.yoga.colors, color, color),
57
- size: get(theme.yoga.spacing, size, size),
58
- ref,
59
- "aria-label": "loading-icon",
60
- children: /* @__PURE__ */ jsx("span", { className: "spinner", children: /* @__PURE__ */ jsx("svg", { className: "circular", viewBox: "22 22 44 44", children: /* @__PURE__ */ jsx(
61
- "circle",
62
- {
63
- className: "path",
64
- fill: "none",
65
- strokeWidth: "3.6",
66
- cx: "44",
67
- cy: "44",
68
- r: "20.2"
69
- }
70
- ) }) })
71
- }
72
- );
73
- });
52
+ const Spinner = React.forwardRef(
53
+ ({ size = "medium", color = "primary", theme }, ref) => {
54
+ return /* @__PURE__ */ jsx(
55
+ StyledSpinner,
56
+ {
57
+ color: get(theme.yoga.colors, color, color),
58
+ size: get(theme.yoga.spacing, size, size),
59
+ ref,
60
+ "aria-label": "loading-icon",
61
+ children: /* @__PURE__ */ jsx("span", { className: "spinner", children: /* @__PURE__ */ jsx("svg", { className: "circular", viewBox: "22 22 44 44", children: /* @__PURE__ */ jsx(
62
+ "circle",
63
+ {
64
+ className: "path",
65
+ fill: "none",
66
+ strokeWidth: "3.6",
67
+ cx: "44",
68
+ cy: "44",
69
+ r: "20.2"
70
+ }
71
+ ) }) })
72
+ }
73
+ );
74
+ }
75
+ );
74
76
  const commonSizes = [
75
77
  "xxxsmall",
76
78
  "xxsmall",
@@ -88,10 +90,6 @@ Spinner.propTypes = {
88
90
  size: oneOfType([oneOf(commonSizes), string, number]),
89
91
  color: string
90
92
  };
91
- Spinner.defaultProps = {
92
- size: "medium",
93
- color: "primary"
94
- };
95
93
  var Spinner_default = withTheme(Spinner);
96
94
  export {
97
95
  Spinner_default as default
@@ -61,7 +61,8 @@ const Wrapper = styled.div`
61
61
  display: flex;
62
62
  justify-content: space-between;
63
63
  `;
64
- function Dots({ activeStep, labels, secondary }) {
64
+ const emptyArr = [];
65
+ function Dots({ activeStep = 0, labels = emptyArr, secondary = false }) {
65
66
  return /* @__PURE__ */ jsx(Wrapper, { children: labels.map((label, index) => /* @__PURE__ */ jsxs(
66
67
  DotWrapper,
67
68
  {
@@ -80,11 +81,6 @@ Dots.propTypes = {
80
81
  labels: arrayOf(string),
81
82
  secondary: bool
82
83
  };
83
- Dots.defaultProps = {
84
- activeStep: 0,
85
- labels: [],
86
- secondary: false
87
- };
88
84
  var Dots_default = Dots;
89
85
  export {
90
86
  Dots_default as default
@@ -30,10 +30,6 @@ Line.propTypes = {
30
30
  activeStep: number,
31
31
  totalSteps: number
32
32
  };
33
- Line.defaultProps = {
34
- activeStep: 0,
35
- totalSteps: 0
36
- };
37
33
  var Line_default = Line;
38
34
  export {
39
35
  Line_default as default
@@ -59,7 +59,7 @@ const LineWrapper = styled.div`
59
59
  `}
60
60
  `;
61
61
  function Stepper(_a) {
62
- var _b = _a, { children, activeStep, secondary } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
62
+ var _b = _a, { children, activeStep = 0, secondary = false } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
63
63
  return /* @__PURE__ */ jsxs(Root, __spreadProps(__spreadValues({}, rest), { children: [
64
64
  /* @__PURE__ */ jsxs(LineWrapper, { children: [
65
65
  /* @__PURE__ */ jsx(
@@ -90,11 +90,6 @@ Stepper.propTypes = {
90
90
  activeStep: limitChildren,
91
91
  secondary: bool
92
92
  };
93
- Stepper.defaultProps = {
94
- children: void 0,
95
- activeStep: 0,
96
- secondary: false
97
- };
98
93
  var Stepper_default = Stepper;
99
94
  export {
100
95
  Stepper_default as default
@@ -58,15 +58,15 @@ const TagInformative = (_a) => {
58
58
  var _b = _a, {
59
59
  children,
60
60
  icon,
61
- variant,
61
+ variant = "neutral",
62
62
  theme: {
63
63
  yoga: {
64
64
  colors: { text },
65
65
  components: { tag }
66
66
  }
67
67
  },
68
- small,
69
- ellipsis
68
+ small = false,
69
+ ellipsis = false
70
70
  } = _b, rest = __objRest(_b, [
71
71
  "children",
72
72
  "icon",
@@ -100,12 +100,6 @@ TagInformative.propTypes = {
100
100
  /** After set a max-width can put ellipses for large texts */
101
101
  ellipsis: bool
102
102
  };
103
- TagInformative.defaultProps = {
104
- icon: void 0,
105
- small: false,
106
- variant: "neutral",
107
- ellipsis: false
108
- };
109
103
  TagInformative.displayName = "Tag.Informative";
110
104
  var Informative_default = withTheme(TagInformative);
111
105
  export {
@@ -94,7 +94,17 @@ const StyledText = styled(Text.Overline)`
94
94
  `}
95
95
  `;
96
96
  const Tag = (_a) => {
97
- var _b = _a, { children, variant, small, ellipsis } = _b, rest = __objRest(_b, ["children", "variant", "small", "ellipsis"]);
97
+ var _b = _a, {
98
+ children,
99
+ variant = "",
100
+ small = false,
101
+ ellipsis = false
102
+ } = _b, rest = __objRest(_b, [
103
+ "children",
104
+ "variant",
105
+ "small",
106
+ "ellipsis"
107
+ ]);
98
108
  return /* @__PURE__ */ jsx(StyledTag, __spreadProps(__spreadValues({ variant, small }, rest), { children: /* @__PURE__ */ jsx(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children }) }));
99
109
  };
100
110
  Tag.propTypes = {
@@ -106,11 +116,6 @@ Tag.propTypes = {
106
116
  /** After set a max-width can put ellipses for large texts */
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,
@@ -1,4 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -14,6 +16,19 @@ var __spreadValues = (a, b) => {
14
16
  }
15
17
  return a;
16
18
  };
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
+ };
17
32
  import { jsx } from "react/jsx-runtime";
18
33
  import React from "react";
19
34
  import styled from "styled-components";
@@ -74,7 +89,28 @@ Bold.displayName = "Text.Bold";
74
89
  const Black = styledText("black");
75
90
  Black.displayName = "Text.Black";
76
91
  const TextRenderer = styledText("p");
77
- const Text = (props) => /* @__PURE__ */ jsx(TextRenderer, __spreadValues({}, props));
92
+ const Text = (_a) => {
93
+ var _b = _a, {
94
+ inverted = false,
95
+ fontSize = "medium",
96
+ light = false,
97
+ bold = false
98
+ } = _b, rest = __objRest(_b, [
99
+ "inverted",
100
+ "fontSize",
101
+ "light",
102
+ "bold"
103
+ ]);
104
+ return /* @__PURE__ */ jsx(
105
+ TextRenderer,
106
+ __spreadProps(__spreadValues({}, rest), {
107
+ inverted,
108
+ fontSize,
109
+ light,
110
+ bold
111
+ })
112
+ );
113
+ };
78
114
  Text.displayName = "Text";
79
115
  Text.Display1 = Display1;
80
116
  Text.Display2 = Display2;
@@ -142,15 +178,6 @@ Text.propTypes = {
142
178
  bold: bool,
143
179
  fontSize: fontSizes
144
180
  };
145
- Text.defaultProps = {
146
- inverted: false,
147
- variant: void 0,
148
- size: void 0,
149
- fontSize: "medium",
150
- numberOfLines: void 0,
151
- light: false,
152
- bold: false
153
- };
154
181
  export {
155
182
  Black,
156
183
  Body1,
@@ -55,19 +55,22 @@ const StyledField = styled(Field)`
55
55
  resize: none;
56
56
  height: 100%;
57
57
  `;
58
+ const noop = () => {
59
+ };
58
60
  const TextArea = React.forwardRef(
59
61
  (_a, ref) => {
60
62
  var _b = _a, {
61
- disabled,
63
+ disabled = false,
62
64
  error,
63
- full,
65
+ full = false,
64
66
  helper,
65
- label,
67
+ label = "",
66
68
  maxLength,
67
69
  className,
68
70
  style,
69
- value,
70
- onChange
71
+ value = "",
72
+ onChange = noop,
73
+ readOnly = false
71
74
  } = _b, props = __objRest(_b, [
72
75
  "disabled",
73
76
  "error",
@@ -78,7 +81,8 @@ const TextArea = React.forwardRef(
78
81
  "className",
79
82
  "style",
80
83
  "value",
81
- "onChange"
84
+ "onChange",
85
+ "readOnly"
82
86
  ]);
83
87
  const [textAreaValue, setTextAreaValue] = useState(value);
84
88
  const [typed, setTyped] = useState(Boolean(value));
@@ -106,6 +110,7 @@ const TextArea = React.forwardRef(
106
110
  /* @__PURE__ */ jsx(
107
111
  StyledField,
108
112
  __spreadProps(__spreadValues({}, props), {
113
+ readOnly,
109
114
  disabled,
110
115
  full,
111
116
  label,
@@ -160,21 +165,6 @@ TextArea.propTypes = {
160
165
  value: string,
161
166
  onChange: func
162
167
  };
163
- TextArea.defaultProps = {
164
- className: void 0,
165
- disabled: false,
166
- error: void 0,
167
- full: false,
168
- helper: void 0,
169
- label: "",
170
- maxLength: void 0,
171
- placeholder: void 0,
172
- readOnly: false,
173
- style: void 0,
174
- value: "",
175
- onChange: () => {
176
- }
177
- };
178
168
  var TextArea_default = TextArea;
179
169
  export {
180
170
  TextArea_default as default
@@ -60,15 +60,12 @@ const getTheme = ({ locale, theme }) => {
60
60
  return yogaThemeBuilder(tokens, customTokens);
61
61
  };
62
62
  const Provider = (_a) => {
63
- var _b = _a, { locale, theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
63
+ var _b = _a, { locale = "pt-BR", theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
64
64
  return /* @__PURE__ */ jsx(ThemeProvider, __spreadValues({ theme: { yoga: getTheme({ locale, theme }) } }, rest));
65
65
  };
66
66
  Provider.propTypes = {
67
67
  locale: PropTypes.string
68
68
  };
69
- Provider.defaultProps = {
70
- locale: "pt-BR"
71
- };
72
69
  var Provider_default = Provider;
73
70
  export {
74
71
  Provider_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.127.3",
3
+ "version": "7.128.0",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "types": "./typings/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "react-native": "0.72.3",
59
59
  "styled-components": "^4.4.0"
60
60
  },
61
- "gitHead": "e6138656f7f27ae5ff47cc8264906b11fc06edc1",
61
+ "gitHead": "d3904daa0d594a33c0687a0f6ad8baa3df9d156b",
62
62
  "module": "./esm",
63
63
  "private": false,
64
64
  "react-native": "./cjs/index.native.js"
@@ -9,9 +9,9 @@ declare const StyledTag: styled_components.StyledComponent<{
9
9
  ({ children, variant, small, ellipsis, ...rest }: {
10
10
  [x: string]: any;
11
11
  children: any;
12
- variant: any;
13
- small: any;
14
- ellipsis: any;
12
+ variant?: string | undefined;
13
+ small?: boolean | undefined;
14
+ ellipsis?: boolean | undefined;
15
15
  }): JSX.Element;
16
16
  propTypes: {
17
17
  variant: prop_types.Requireable<string>;
@@ -19,11 +19,6 @@ declare const StyledTag: styled_components.StyledComponent<{
19
19
  small: prop_types.Requireable<boolean>;
20
20
  ellipsis: prop_types.Requireable<boolean>;
21
21
  };
22
- defaultProps: {
23
- variant: string;
24
- small: boolean;
25
- ellipsis: boolean;
26
- };
27
22
  }, any, {}, never>;
28
23
  declare const StyledText: styled_components.StyledComponent<string, any, {}, never>;
29
24
  declare const StyledItem: styled_components.StyledComponent<string, any, {