@gympass/yoga 7.131.0 → 7.131.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.
Files changed (101) hide show
  1. package/cjs/ActionRequirement/native/ActionRequirement.js +29 -16
  2. package/cjs/Avatar/native/Avatar.js +12 -18
  3. package/cjs/Banner/native/Banner.js +44 -36
  4. package/cjs/Button/native/Button.js +79 -81
  5. package/cjs/Button/native/Icon.js +6 -14
  6. package/cjs/Button/native/Link.js +18 -5
  7. package/cjs/Button/native/Outline.js +11 -17
  8. package/cjs/Button/native/withTouchable.js +5 -11
  9. package/cjs/Card/native/Card/Card.js +2 -8
  10. package/cjs/Card/native/EventCard/EventCard.js +13 -18
  11. package/cjs/Card/native/GymCard/CheckIn/CheckIn.js +1 -4
  12. package/cjs/Card/native/PlanCard/Content.js +7 -14
  13. package/cjs/Card/native/PlanCard/List.js +3 -8
  14. package/cjs/Card/native/PlanCard/PlanCard.js +7 -5
  15. package/cjs/Checkbox/native/Checkbox.js +11 -22
  16. package/cjs/Checkbox/native/Switch.js +3 -8
  17. package/cjs/Chips/native/Chips.js +6 -15
  18. package/cjs/Divider/native/Divider.js +1 -4
  19. package/cjs/Dropdown/native/Backdrop.js +4 -9
  20. package/cjs/Dropdown/native/Dropdown.js +8 -17
  21. package/cjs/Dropdown/native/Options.android.js +2 -6
  22. package/cjs/Dropdown/native/Options.ios.js +5 -10
  23. package/cjs/Input/native/Helper.js +8 -18
  24. package/cjs/Input/native/Input.js +18 -35
  25. package/cjs/Input/native/Password.js +7 -14
  26. package/cjs/List/native/ListItem.js +3 -8
  27. package/cjs/Progress/native/Progress.js +14 -10
  28. package/cjs/RadioGroup/native/Button/RadioButton.js +1 -4
  29. package/cjs/RadioGroup/native/Radio/Radio.js +1 -5
  30. package/cjs/RadioGroup/native/RadioGroup.js +12 -7
  31. package/cjs/Rating/native/Rating.js +8 -17
  32. package/cjs/Result/native/Attendances.js +1 -5
  33. package/cjs/Result/native/Details.js +4 -9
  34. package/cjs/Result/native/Result/index.js +7 -16
  35. package/cjs/Result/native/Tags.js +1 -4
  36. package/cjs/Skeleton/native/Skeleton.js +10 -7
  37. package/cjs/Slider/native/Label.js +1 -4
  38. package/cjs/Slider/native/Marker.js +15 -20
  39. package/cjs/Slider/native/Slider.js +8 -18
  40. package/cjs/Slider/native/Step.js +1 -4
  41. package/cjs/Slider/native/Tooltip.js +9 -6
  42. package/cjs/Snackbar/native/Snackbar.js +9 -20
  43. package/cjs/Snackbar/native/SnackbarAnimationWrapper.js +1 -4
  44. package/cjs/Stepper/native/Dots.js +1 -6
  45. package/cjs/Stepper/native/Line.js +1 -6
  46. package/cjs/Stepper/native/Stepper.js +1 -6
  47. package/cjs/Tag/native/Informative.js +4 -10
  48. package/cjs/Tag/native/Tag.js +11 -6
  49. package/cjs/Text/native/Text.js +40 -9
  50. package/cjs/TextArea/native/TextArea.js +38 -17
  51. package/esm/ActionRequirement/native/ActionRequirement.js +29 -16
  52. package/esm/Avatar/native/Avatar.js +12 -18
  53. package/esm/Banner/native/Banner.js +44 -36
  54. package/esm/Button/native/Button.js +79 -81
  55. package/esm/Button/native/Icon.js +6 -14
  56. package/esm/Button/native/Link.js +18 -5
  57. package/esm/Button/native/Outline.js +11 -17
  58. package/esm/Button/native/withTouchable.js +5 -11
  59. package/esm/Card/native/Card/Card.js +2 -8
  60. package/esm/Card/native/EventCard/EventCard.js +13 -18
  61. package/esm/Card/native/GymCard/CheckIn/CheckIn.js +1 -4
  62. package/esm/Card/native/PlanCard/Content.js +7 -14
  63. package/esm/Card/native/PlanCard/List.js +3 -8
  64. package/esm/Card/native/PlanCard/PlanCard.js +7 -5
  65. package/esm/Checkbox/native/Checkbox.js +11 -22
  66. package/esm/Checkbox/native/Switch.js +3 -8
  67. package/esm/Chips/native/Chips.js +6 -15
  68. package/esm/Divider/native/Divider.js +1 -4
  69. package/esm/Dropdown/native/Backdrop.js +4 -9
  70. package/esm/Dropdown/native/Dropdown.js +8 -17
  71. package/esm/Dropdown/native/Options.android.js +2 -6
  72. package/esm/Dropdown/native/Options.ios.js +5 -10
  73. package/esm/Input/native/Helper.js +8 -18
  74. package/esm/Input/native/Input.js +18 -35
  75. package/esm/Input/native/Password.js +7 -14
  76. package/esm/List/native/ListItem.js +3 -8
  77. package/esm/Progress/native/Progress.js +14 -10
  78. package/esm/RadioGroup/native/Button/RadioButton.js +1 -4
  79. package/esm/RadioGroup/native/Radio/Radio.js +1 -5
  80. package/esm/RadioGroup/native/RadioGroup.js +12 -7
  81. package/esm/Rating/native/Rating.js +8 -17
  82. package/esm/Result/native/Attendances.js +1 -5
  83. package/esm/Result/native/Details.js +4 -9
  84. package/esm/Result/native/Result/index.js +7 -16
  85. package/esm/Result/native/Tags.js +1 -4
  86. package/esm/Skeleton/native/Skeleton.js +10 -7
  87. package/esm/Slider/native/Label.js +1 -4
  88. package/esm/Slider/native/Marker.js +15 -20
  89. package/esm/Slider/native/Slider.js +8 -18
  90. package/esm/Slider/native/Step.js +1 -4
  91. package/esm/Slider/native/Tooltip.js +9 -6
  92. package/esm/Snackbar/native/Snackbar.js +9 -20
  93. package/esm/Snackbar/native/SnackbarAnimationWrapper.js +1 -4
  94. package/esm/Stepper/native/Dots.js +1 -6
  95. package/esm/Stepper/native/Line.js +1 -6
  96. package/esm/Stepper/native/Stepper.js +1 -6
  97. package/esm/Tag/native/Informative.js +4 -10
  98. package/esm/Tag/native/Tag.js +11 -6
  99. package/esm/Text/native/Text.js +40 -9
  100. package/esm/TextArea/native/TextArea.js +38 -17
  101. package/package.json +2 -2
@@ -106,21 +106,21 @@ const EnhancePrice = import_styled_components.default.View`
106
106
  const PlanCardContent = (_a) => {
107
107
  var _b = _a, {
108
108
  title,
109
- subtitle,
110
- description,
111
- currency,
112
- suffix,
113
109
  price,
114
110
  period,
115
- children
111
+ subtitle = null,
112
+ description = null,
113
+ currency = null,
114
+ suffix = null,
115
+ children = null
116
116
  } = _b, rest = __objRest(_b, [
117
117
  "title",
118
+ "price",
119
+ "period",
118
120
  "subtitle",
119
121
  "description",
120
122
  "currency",
121
123
  "suffix",
122
- "price",
123
- "period",
124
124
  "children"
125
125
  ]);
126
126
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Content.default, __spreadProps(__spreadValues({}, rest), { children: [
@@ -151,12 +151,5 @@ PlanCardContent.propTypes = {
151
151
  subtitle: import_prop_types.string,
152
152
  children: import_prop_types.node
153
153
  };
154
- PlanCardContent.defaultProps = {
155
- children: null,
156
- description: null,
157
- subtitle: null,
158
- currency: null,
159
- suffix: null
160
- };
161
154
  PlanCardContent.displayName = "PlanCard.Content";
162
155
  var Content_default = PlanCardContent;
@@ -98,10 +98,10 @@ const ListItem = (0, import_styled_components.withTheme)(
98
98
  (_a) => {
99
99
  var {
100
100
  text,
101
- variant,
101
+ variant = void 0,
102
102
  theme: yogaTheme,
103
- icon,
104
- buttonProps: _b
103
+ icon = void 0,
104
+ buttonProps: _b = {}
105
105
  } = _a, _c = _b, { children } = _c, buttonProps = __objRest(_c, ["children"]);
106
106
  const itemColor = (0, import_lodash.default)(yogaTheme.yoga.colors, variant);
107
107
  if (variant && !itemColor)
@@ -134,11 +134,6 @@ ListItem.propTypes = {
134
134
  */
135
135
  variant: import_prop_types.string
136
136
  };
137
- ListItem.defaultProps = {
138
- icon: void 0,
139
- buttonProps: {},
140
- variant: void 0
141
- };
142
137
  // Annotate the CommonJS export names for ESM import in node:
143
138
  0 && (module.exports = {
144
139
  List,
@@ -103,7 +103,13 @@ const Border = import_styled_components.default.View`
103
103
  }) => color};
104
104
  `;
105
105
  const PlanCard = (_a) => {
106
- var _b = _a, { children, variant } = _b, rest = __objRest(_b, ["children", "variant"]);
106
+ var _b = _a, {
107
+ children = void 0,
108
+ variant = "deepPurple"
109
+ } = _b, rest = __objRest(_b, [
110
+ "children",
111
+ "variant"
112
+ ]);
107
113
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Plan, __spreadProps(__spreadValues({}, rest), { children: [
108
114
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Border, { variant }),
109
115
  children
@@ -134,10 +140,6 @@ PlanCard.propTypes = {
134
140
  "white"
135
141
  ])
136
142
  };
137
- PlanCard.defaultProps = {
138
- children: void 0,
139
- variant: "deepPurple"
140
- };
141
143
  PlanCard.displayName = "PlanCard";
142
144
  var PlanCard_default = PlanCard;
143
145
  // Annotate the CommonJS export names for ESM import in node:
@@ -204,15 +204,17 @@ const CheckArea = import_styled_components.default.View(
204
204
  );
205
205
  const Checkbox = (_a) => {
206
206
  var _b = _a, {
207
- label,
208
- helper,
209
- disabled,
210
- checked,
211
- error,
212
- style,
213
- onPressIn,
214
- onPressOut,
215
- inverted,
207
+ label = void 0,
208
+ helper = void 0,
209
+ disabled = false,
210
+ checked = false,
211
+ error = void 0,
212
+ style = {},
213
+ onPressIn = () => {
214
+ },
215
+ onPressOut = () => {
216
+ },
217
+ inverted = false,
216
218
  theme: {
217
219
  yoga: {
218
220
  components: { checkbox },
@@ -287,18 +289,5 @@ Checkbox.propTypes = {
287
289
  onPressIn: import_prop_types.func,
288
290
  onPressOut: import_prop_types.func
289
291
  };
290
- Checkbox.defaultProps = {
291
- label: void 0,
292
- helper: void 0,
293
- checked: false,
294
- disabled: false,
295
- inverted: false,
296
- error: void 0,
297
- style: {},
298
- onPressIn: () => {
299
- },
300
- onPressOut: () => {
301
- }
302
- };
303
292
  Checkbox.displayName = "Checkbox";
304
293
  var Checkbox_default = (0, import_styled_components.withTheme)(Checkbox);
@@ -98,9 +98,9 @@ const SwitchThumb = (0, import_styled_components.default)(import_Box.default).at
98
98
  })
99
99
  )``;
100
100
  const CheckboxSwitch = ({
101
- checked,
102
- pressed,
103
- disabled,
101
+ checked = false,
102
+ pressed = false,
103
+ disabled = false,
104
104
  theme: {
105
105
  yoga: {
106
106
  components: { checkboxswitch }
@@ -187,10 +187,5 @@ CheckboxSwitch.propTypes = {
187
187
  disabled: import_prop_types.bool,
188
188
  pressed: import_prop_types.bool
189
189
  };
190
- CheckboxSwitch.defaultProps = {
191
- checked: false,
192
- disabled: false,
193
- pressed: false
194
- };
195
190
  CheckboxSwitch.displayName = "Checkbox.Switch";
196
191
  var Switch_default = (0, import_withTouchable.default)((0, import_styled_components.withTheme)(CheckboxSwitch));
@@ -120,12 +120,12 @@ const StyledChips = (0, import_styled_components.default)(import_Text.default)`
120
120
  const Chips = import_react.default.forwardRef(
121
121
  (_a, ref) => {
122
122
  var _b = _a, {
123
- children,
124
- selected,
125
- counter,
126
- icons,
127
- disabled,
128
- onToggle,
123
+ children = void 0,
124
+ selected = false,
125
+ counter = void 0,
126
+ icons = [],
127
+ disabled = false,
128
+ onToggle = void 0,
129
129
  onPress = onToggle,
130
130
  theme: {
131
131
  yoga: { spacing, colors }
@@ -216,13 +216,4 @@ Chips.propTypes = {
216
216
  onToggle: import_prop_types.func,
217
217
  onPress: import_prop_types.func
218
218
  };
219
- Chips.defaultProps = {
220
- children: void 0,
221
- selected: false,
222
- disabled: false,
223
- counter: void 0,
224
- icons: [],
225
- onToggle: void 0,
226
- onPress: void 0
227
- };
228
219
  var Chips_default = (0, import_styled_components.withTheme)(Chips);
@@ -50,14 +50,11 @@ const StyledDivider = import_styled_components.default.View`
50
50
  `;
51
51
  }}
52
52
  `;
53
- const Divider = import_react.default.forwardRef(({ vertical }, ref) => {
53
+ const Divider = import_react.default.forwardRef(({ vertical = false }, ref) => {
54
54
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledDivider, { vertical, ref });
55
55
  });
56
56
  Divider.propTypes = {
57
57
  /** If this value is defined, the divider will be in vertical when the flexDirection is row type */
58
58
  vertical: import_prop_types.bool
59
59
  };
60
- Divider.defaultProps = {
61
- vertical: false
62
- };
63
60
  var Divider_default = (0, import_styled_components.withTheme)(Divider);
@@ -123,10 +123,11 @@ const Title = (0, import_styled_components.default)(import_Text.default.Bold)`
123
123
  `;
124
124
  const Backdrop = (_a) => {
125
125
  var _b = _a, {
126
- visible,
127
- title,
126
+ visible = false,
127
+ title = null,
128
128
  children,
129
- onClose,
129
+ onClose = () => {
130
+ },
130
131
  theme: {
131
132
  yoga: {
132
133
  transition,
@@ -171,10 +172,4 @@ Backdrop.propTypes = {
171
172
  children: import_prop_types.node.isRequired,
172
173
  onClose: import_prop_types.func
173
174
  };
174
- Backdrop.defaultProps = {
175
- visible: false,
176
- title: null,
177
- onClose: () => {
178
- }
179
- };
180
175
  var Backdrop_default = (0, import_styled_components.withTheme)(Backdrop);
@@ -123,14 +123,15 @@ const getSelectedOption = (options) => options.find((item) => item.selected ===
123
123
  const Dropdown = import_react.default.forwardRef(
124
124
  (_a, ref) => {
125
125
  var _b = _a, {
126
- error,
127
- label,
128
- disabled,
129
- full,
126
+ error = void 0,
127
+ label = "",
128
+ disabled = false,
129
+ full = false,
130
130
  options,
131
- cancelActionLabel,
132
- confirmActionLabel,
133
- onChange,
131
+ cancelActionLabel = "Cancel",
132
+ confirmActionLabel = "Confirm",
133
+ onChange = () => {
134
+ },
134
135
  theme: {
135
136
  yoga: {
136
137
  components: { dropdown }
@@ -227,14 +228,4 @@ Dropdown.propTypes = {
227
228
  confirmActionLabel: import_prop_types.string,
228
229
  onChange: import_prop_types.func
229
230
  };
230
- Dropdown.defaultProps = {
231
- label: "",
232
- error: void 0,
233
- full: false,
234
- cancelActionLabel: "Cancel",
235
- confirmActionLabel: "Confirm",
236
- disabled: false,
237
- onChange: () => {
238
- }
239
- };
240
231
  var Dropdown_default = (0, import_styled_components.withTheme)(Dropdown);
@@ -71,7 +71,8 @@ const OptionText = (0, import_styled_components.default)(import_Text.default.Bod
71
71
  color: ${isSelected ? `${dropdown.selected.option.font.color}` : `${dropdown.option.font.color}`};
72
72
  `}
73
73
  `;
74
- const Options = ({ options, selectedOption, onSelect }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ const Options = ({ options, selectedOption = null, onSelect = () => {
75
+ } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
75
76
  import_List.default,
76
77
  {
77
78
  style: { height: 60 * 3.6 },
@@ -103,9 +104,4 @@ Options.propTypes = {
103
104
  selectedOption: (0, import_prop_types.shape)(optionShape),
104
105
  onSelect: import_prop_types.func
105
106
  };
106
- Options.defaultProps = {
107
- selectedOption: null,
108
- onSelect: () => {
109
- }
110
- };
111
107
  var Options_android_default = Options;
@@ -75,11 +75,13 @@ const PickerActions = import_styled_components.default.View`
75
75
  `;
76
76
  const Options = ({
77
77
  options,
78
- selectedOption,
78
+ selectedOption = null,
79
79
  cancelActionLabel,
80
80
  confirmActionLabel,
81
- onSelect,
82
- onClose,
81
+ onSelect = () => {
82
+ },
83
+ onClose = () => {
84
+ },
83
85
  theme: {
84
86
  yoga: { baseFont }
85
87
  }
@@ -115,11 +117,4 @@ Options.propTypes = {
115
117
  onSelect: import_prop_types.func,
116
118
  onClose: import_prop_types.func
117
119
  };
118
- Options.defaultProps = {
119
- selectedOption: null,
120
- onSelect: () => {
121
- },
122
- onClose: () => {
123
- }
124
- };
125
120
  var Options_ios_default = (0, import_styled_components.withTheme)(Options);
@@ -78,14 +78,14 @@ const Info = (0, import_styled_components.default)(import_Text.default.Caption)(
78
78
  );
79
79
  const Helper = import_react.default.forwardRef(
80
80
  ({
81
- full,
82
- error,
83
- helper,
84
- disabled,
85
- focused,
86
- maxLength,
87
- length,
88
- hideMaxLength
81
+ full = false,
82
+ error = void 0,
83
+ helper = void 0,
84
+ disabled = void 0,
85
+ focused = false,
86
+ maxLength = void 0,
87
+ length = void 0,
88
+ hideMaxLength = false
89
89
  }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(HelperWrapper, { ref, full, disabled, children: [
90
90
  (error || helper) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Info, { disabled, focused, error, children: error || helper }),
91
91
  !hideMaxLength && maxLength && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Info, { disabled, focused, error, children: [
@@ -105,14 +105,4 @@ Helper.propTypes = {
105
105
  length: import_prop_types.number,
106
106
  hideMaxLength: import_prop_types.bool
107
107
  };
108
- Helper.defaultProps = {
109
- disabled: void 0,
110
- error: void 0,
111
- focused: false,
112
- full: false,
113
- helper: void 0,
114
- maxLength: void 0,
115
- length: void 0,
116
- hideMaxLength: false
117
- };
118
108
  var Helper_default = Helper;
@@ -194,21 +194,24 @@ const CloseIcon = import_styled_components.default.View(
194
194
  const Input = import_react.default.forwardRef(
195
195
  (_a, ref) => {
196
196
  var _b = _a, {
197
- cleanable,
198
- disabled,
199
- error,
200
- full,
201
- helper,
202
- label,
203
- maxLength,
204
- readOnly,
205
- style,
206
- textContentType,
207
- value,
208
- onBlur,
209
- onClean,
210
- onFocus,
211
- hideMaxLength,
197
+ cleanable = true,
198
+ disabled = false,
199
+ error = void 0,
200
+ full = false,
201
+ helper = void 0,
202
+ label = "",
203
+ maxLength = void 0,
204
+ readOnly = false,
205
+ style = {},
206
+ textContentType = void 0,
207
+ value = "",
208
+ onBlur = () => {
209
+ },
210
+ onClean = () => {
211
+ },
212
+ onFocus = () => {
213
+ },
214
+ hideMaxLength = false,
212
215
  theme: {
213
216
  yoga: {
214
217
  colors,
@@ -367,24 +370,4 @@ Input.propTypes = {
367
370
  onFocus: import_prop_types.func,
368
371
  hideMaxLength: import_prop_types.bool
369
372
  };
370
- Input.defaultProps = {
371
- cleanable: true,
372
- disabled: false,
373
- error: void 0,
374
- full: false,
375
- helper: void 0,
376
- label: "",
377
- maxLength: void 0,
378
- readOnly: false,
379
- style: {},
380
- textContentType: void 0,
381
- value: "",
382
- onBlur: () => {
383
- },
384
- onClean: () => {
385
- },
386
- onFocus: () => {
387
- },
388
- hideMaxLength: false
389
- };
390
373
  var Input_default = (0, import_styled_components.withTheme)(Input);
@@ -98,11 +98,13 @@ const IconWrapper = import_styled_components.default.View(
98
98
  const Password = import_react.default.forwardRef(
99
99
  (_a, ref) => {
100
100
  var _b = _a, {
101
- disabled,
102
- style,
103
- full,
104
- onBlur,
105
- onFocus,
101
+ disabled = false,
102
+ style = void 0,
103
+ full = false,
104
+ onBlur = () => {
105
+ },
106
+ onFocus = () => {
107
+ },
106
108
  theme: {
107
109
  yoga: {
108
110
  colors,
@@ -182,13 +184,4 @@ Password.propTypes = {
182
184
  onBlur: import_prop_types.func,
183
185
  onFocus: import_prop_types.func
184
186
  };
185
- Password.defaultProps = {
186
- disabled: false,
187
- full: false,
188
- style: void 0,
189
- onBlur: () => {
190
- },
191
- onFocus: () => {
192
- }
193
- };
194
187
  var Password_default = (0, import_styled_components.withTheme)(Password);
@@ -101,9 +101,9 @@ const ListItem = (_a) => {
101
101
  }
102
102
  }
103
103
  },
104
- small,
105
- divided,
106
- onPress
104
+ small = false,
105
+ divided = true,
106
+ onPress = void 0
107
107
  } = _b, rest = __objRest(_b, [
108
108
  "theme",
109
109
  "small",
@@ -128,10 +128,5 @@ ListItem.propTypes = {
128
128
  divided: import_prop_types.default.bool,
129
129
  onPress: import_prop_types.default.func
130
130
  };
131
- ListItem.defaultProps = {
132
- small: false,
133
- divided: true,
134
- onPress: void 0
135
- };
136
131
  ListItem.displayName = "List.Item";
137
132
  var ListItem_default = (0, import_styled_components.withTheme)(ListItem);
@@ -158,7 +158,20 @@ const Label = import_styled_components.default.Text`
158
158
  `;
159
159
  const Progress = import_react.default.forwardRef(
160
160
  (_a, ref) => {
161
- var _b = _a, { label, max, value, variant } = _b, props = __objRest(_b, ["label", "max", "value", "variant"]);
161
+ var _b = _a, {
162
+ label = {
163
+ value: void 0,
164
+ placement: "left"
165
+ },
166
+ max = 1,
167
+ value = void 0,
168
+ variant = "verve"
169
+ } = _b, props = __objRest(_b, [
170
+ "label",
171
+ "max",
172
+ "value",
173
+ "variant"
174
+ ]);
162
175
  const isNumber = !/[a-zA-Z]/g.test(label.value);
163
176
  const align = label.placement || "left";
164
177
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ProgressWrapper, __spreadProps(__spreadValues({ ref }, props), { isNumber, align, children: [
@@ -207,13 +220,4 @@ Progress.propTypes = {
207
220
  "white"
208
221
  ])
209
222
  };
210
- Progress.defaultProps = {
211
- label: {
212
- value: void 0,
213
- placement: "left"
214
- },
215
- max: 1,
216
- value: void 0,
217
- variant: "verve"
218
- };
219
223
  var Progress_default = Progress;
@@ -114,7 +114,7 @@ const Text = import_styled_components.default.Text(
114
114
  );
115
115
  const RadioGroupButton = import_react.default.forwardRef(
116
116
  (_a, ref) => {
117
- var _b = _a, { value, children } = _b, rest = __objRest(_b, ["value", "children"]);
117
+ var _b = _a, { value = "", children } = _b, rest = __objRest(_b, ["value", "children"]);
118
118
  const _a2 = (0, import_react.useContext)(import_RadioGroupContext.default), { onChange, small, selectedValue } = _a2, context = __objRest(_a2, ["onChange", "small", "selectedValue"]);
119
119
  const inputValue = value || children;
120
120
  const checked = inputValue === selectedValue;
@@ -135,7 +135,4 @@ RadioGroupButton.propTypes = {
135
135
  value: (0, import_prop_types.oneOfType)([import_prop_types.string, import_prop_types.number]),
136
136
  children: import_prop_types.node.isRequired
137
137
  };
138
- RadioGroupButton.defaultProps = {
139
- value: ""
140
- };
141
138
  var RadioButton_default = RadioGroupButton;
@@ -150,7 +150,7 @@ const Shadow = import_styled_components.default.View(
150
150
  );
151
151
  const RadioGroupRadio = import_react.default.forwardRef(
152
152
  (_a, ref) => {
153
- var _b = _a, { value, disabled } = _b, rest = __objRest(_b, ["value", "disabled"]);
153
+ var _b = _a, { value = "", disabled = false } = _b, rest = __objRest(_b, ["value", "disabled"]);
154
154
  const _a2 = (0, import_react.useContext)(import_RadioGroupContext.default), { onChange, small, selectedValue } = _a2, context = __objRest(_a2, ["onChange", "small", "selectedValue"]);
155
155
  const [pressing, togglePressing] = (0, import_react.useState)(false);
156
156
  const inputValue = value;
@@ -192,8 +192,4 @@ RadioGroupRadio.propTypes = {
192
192
  disabled: import_prop_types.bool,
193
193
  value: (0, import_prop_types.oneOfType)([import_prop_types.string, import_prop_types.number])
194
194
  };
195
- RadioGroupRadio.defaultProps = {
196
- disabled: false,
197
- value: ""
198
- };
199
195
  var Radio_default = RadioGroupRadio;
@@ -90,7 +90,18 @@ const GrayLine = import_styled_components.default.View(
90
90
  `
91
91
  );
92
92
  const RadioGroup = (_a) => {
93
- var _b = _a, { onChange, selectedValue, small, children } = _b, rest = __objRest(_b, ["onChange", "selectedValue", "small", "children"]);
93
+ var _b = _a, {
94
+ onChange = () => {
95
+ },
96
+ selectedValue = "",
97
+ small = false,
98
+ children
99
+ } = _b, rest = __objRest(_b, [
100
+ "onChange",
101
+ "selectedValue",
102
+ "small",
103
+ "children"
104
+ ]);
94
105
  const [groupSize, setGroupSize] = (0, import_react.useState)(0);
95
106
  const isButton = import_react.default.Children.map(children, (child) => child.type).every(
96
107
  (child) => child === import_RadioButton.default
@@ -126,10 +137,4 @@ RadioGroup.propTypes = {
126
137
  small: import_prop_types.bool,
127
138
  children: import_prop_types.node.isRequired
128
139
  };
129
- RadioGroup.defaultProps = {
130
- onChange: () => {
131
- },
132
- selectedValue: "",
133
- small: false
134
- };
135
140
  var RadioGroup_default = RadioGroup;
@@ -80,17 +80,20 @@ const RatingWrapper = import_styled_components.default.View`
80
80
  `;
81
81
  const Rating = (_a) => {
82
82
  var _b = _a, {
83
- value,
84
- max,
85
- readOnly,
86
- onRate,
83
+ value = void 0,
84
+ max = 5,
85
+ readOnly = true,
86
+ onRate = {},
87
87
  theme: {
88
88
  yoga: {
89
89
  colors,
90
90
  components: { rating }
91
91
  }
92
92
  },
93
- icon: { type: Icon = import_yoga_icons.StarFilled, size: iconSize = 24 }
93
+ icon: { type: Icon = import_yoga_icons.StarFilled, size: iconSize = 24 } = {
94
+ type: import_yoga_icons.StarFilled,
95
+ size: 24
96
+ }
94
97
  } = _b, rest = __objRest(_b, [
95
98
  "value",
96
99
  "max",
@@ -210,16 +213,4 @@ Rating.propTypes = {
210
213
  /** Event to be fired on click */
211
214
  onRate: import_prop_types.func
212
215
  };
213
- Rating.defaultProps = {
214
- value: void 0,
215
- icon: {
216
- type: import_yoga_icons.StarFilled,
217
- size: 24
218
- },
219
- max: 5,
220
- readOnly: true,
221
- onRate: (rating) => {
222
- }
223
- // eslint-disable-line no-unused-vars
224
- };
225
216
  var Rating_default = (0, import_styled_components.withTheme)(Rating);
@@ -48,7 +48,7 @@ const List = (0, import_styled_components.default)(import_Text.default.Caption).
48
48
  const ItemSeparator = (0, import_styled_components.default)(import_Box.default).attrs({
49
49
  height: "zero"
50
50
  })``;
51
- const Attendances = ({ attendances, rate, color }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
51
+ const Attendances = ({ attendances, rate = void 0, color = "deep" }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
52
52
  import_Box.default,
53
53
  {
54
54
  display: "flex",
@@ -78,8 +78,4 @@ Attendances.propTypes = {
78
78
  rate: import_prop_types.string,
79
79
  color: import_prop_types.string
80
80
  };
81
- Attendances.defaultProps = {
82
- rate: void 0,
83
- color: "deep"
84
- };
85
81
  var Attendances_default = Attendances;