@gympass/yoga 7.130.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 (105) 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/Input/web/Input.js +9 -3
  27. package/cjs/Input/web/Input.test.js +9 -0
  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/ActionRequirement/native/ActionRequirement.js +29 -16
  54. package/esm/Avatar/native/Avatar.js +12 -18
  55. package/esm/Banner/native/Banner.js +44 -36
  56. package/esm/Button/native/Button.js +79 -81
  57. package/esm/Button/native/Icon.js +6 -14
  58. package/esm/Button/native/Link.js +18 -5
  59. package/esm/Button/native/Outline.js +11 -17
  60. package/esm/Button/native/withTouchable.js +5 -11
  61. package/esm/Card/native/Card/Card.js +2 -8
  62. package/esm/Card/native/EventCard/EventCard.js +13 -18
  63. package/esm/Card/native/GymCard/CheckIn/CheckIn.js +1 -4
  64. package/esm/Card/native/PlanCard/Content.js +7 -14
  65. package/esm/Card/native/PlanCard/List.js +3 -8
  66. package/esm/Card/native/PlanCard/PlanCard.js +7 -5
  67. package/esm/Checkbox/native/Checkbox.js +11 -22
  68. package/esm/Checkbox/native/Switch.js +3 -8
  69. package/esm/Chips/native/Chips.js +6 -15
  70. package/esm/Divider/native/Divider.js +1 -4
  71. package/esm/Dropdown/native/Backdrop.js +4 -9
  72. package/esm/Dropdown/native/Dropdown.js +8 -17
  73. package/esm/Dropdown/native/Options.android.js +2 -6
  74. package/esm/Dropdown/native/Options.ios.js +5 -10
  75. package/esm/Input/native/Helper.js +8 -18
  76. package/esm/Input/native/Input.js +18 -35
  77. package/esm/Input/native/Password.js +7 -14
  78. package/esm/Input/web/Input.js +9 -3
  79. package/esm/Input/web/Input.test.js +9 -0
  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
@@ -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 });
@@ -57,17 +69,25 @@ var import_Box = __toESM(require("../../Box"));
57
69
  var import_ActionRequirementStyles = require("./ActionRequirementStyles");
58
70
  var import_Text = __toESM(require("../../Text"));
59
71
  const StyledActionRequirement = import_native.default.View``;
60
- function ActionRequirement(props) {
61
- const {
72
+ function ActionRequirement(_a) {
73
+ var _b = _a, {
62
74
  title,
63
75
  description,
64
- children,
65
- checkable,
66
- illustration,
67
- list,
68
- titleAsTextDisplay
69
- } = props;
70
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledActionRequirement, __spreadProps(__spreadValues({}, props), { children: [
76
+ children = void 0,
77
+ checkable = void 0,
78
+ illustration = void 0,
79
+ list = void 0,
80
+ titleAsTextDisplay = false
81
+ } = _b, rest = __objRest(_b, [
82
+ "title",
83
+ "description",
84
+ "children",
85
+ "checkable",
86
+ "illustration",
87
+ "list",
88
+ "titleAsTextDisplay"
89
+ ]);
90
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledActionRequirement, __spreadProps(__spreadValues({}, rest), { children: [
71
91
  illustration && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { children: illustration }),
72
92
  titleAsTextDisplay ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Display2, { children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionRequirementStyles.Title, { children: title }),
73
93
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body1, { mt: "small", color: "deep", children: description }),
@@ -85,11 +105,4 @@ ActionRequirement.propTypes = {
85
105
  list: (0, import_prop_types.oneOfType)([(0, import_prop_types.arrayOf)(import_prop_types.node), import_prop_types.node]),
86
106
  titleAsTextDisplay: import_prop_types.bool
87
107
  };
88
- ActionRequirement.defaultProps = {
89
- children: void 0,
90
- checkable: void 0,
91
- illustration: void 0,
92
- list: void 0,
93
- titleAsTextDisplay: false
94
- };
95
108
  var ActionRequirement_default = ActionRequirement;
@@ -80,7 +80,13 @@ const BorderImage = (0, import_styled_components.default)(import_Box.default).at
80
80
  })`
81
81
  position: absolute;
82
82
  `;
83
- const Content = ({ icon, src, fill, content, stroke }) => {
83
+ const Content = ({
84
+ icon = import_yoga_icons.BuildingFilled,
85
+ src = void 0,
86
+ fill = "white",
87
+ content,
88
+ stroke
89
+ }) => {
84
90
  if (src) {
85
91
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { as: import_react_native.Image, width: "100%", height: "100%", source: src });
86
92
  }
@@ -93,13 +99,13 @@ const Avatar = (0, import_react.forwardRef)(
93
99
  (_a, ref) => {
94
100
  var _b = _a, {
95
101
  icon = import_yoga_icons.BuildingFilled,
96
- src,
102
+ src = void 0,
97
103
  children,
98
- fill,
104
+ fill = "white",
99
105
  stroke,
100
- borderRadius,
101
- width,
102
- height
106
+ borderRadius = "small",
107
+ width = 48,
108
+ height = 48
103
109
  } = _b, props = __objRest(_b, [
104
110
  "icon",
105
111
  "src",
@@ -145,11 +151,6 @@ Content.propTypes = __spreadValues({
145
151
  icon: import_prop_types.func,
146
152
  fill: import_prop_types.string
147
153
  }, import_Box.default.propTypes);
148
- Content.defaultProps = {
149
- src: void 0,
150
- fill: "white",
151
- icon: import_yoga_icons.BuildingFilled
152
- };
153
154
  Avatar.propTypes = __spreadValues({
154
155
  src: import_deprecated_react_native_prop_types.ImagePropTypes.source,
155
156
  icon: import_prop_types.func,
@@ -158,12 +159,5 @@ Avatar.propTypes = __spreadValues({
158
159
  height: import_prop_types.number,
159
160
  borderRadius: import_prop_types.string
160
161
  }, import_Box.default.propTypes);
161
- Avatar.defaultProps = __spreadValues({
162
- src: void 0,
163
- fill: "white",
164
- width: 48,
165
- height: 48,
166
- borderRadius: "small"
167
- }, import_Box.default.defaultProps);
168
162
  Avatar.displayName = "Avatar";
169
163
  var Avatar_default = Avatar;
@@ -111,38 +111,52 @@ BannerActionButton.propTypes = {
111
111
  action: import_prop_types.func.isRequired
112
112
  }).isRequired
113
113
  };
114
- const Banner = (0, import_react.forwardRef)((props, ref) => {
115
- const _a = props, { icon, variant, message, primaryButton, secondaryButton } = _a, rest = __objRest(_a, ["icon", "variant", "message", "primaryButton", "secondaryButton"]);
116
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledBanner, __spreadProps(__spreadValues({ ref, variant }, rest), { children: [
117
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Box.default, { flexDirection: "row", flex: 1, alignItems: "center", children: [
118
- icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
119
- import_Icon.default,
114
+ const Banner = (0, import_react.forwardRef)(
115
+ (_c, ref) => {
116
+ var _d = _c, {
117
+ icon = void 0,
118
+ variant = "informative",
119
+ message,
120
+ primaryButton = void 0,
121
+ secondaryButton = void 0
122
+ } = _d, rest = __objRest(_d, [
123
+ "icon",
124
+ "variant",
125
+ "message",
126
+ "primaryButton",
127
+ "secondaryButton"
128
+ ]);
129
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledBanner, __spreadProps(__spreadValues({ ref, variant }, rest), { children: [
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Box.default, { flexDirection: "row", flex: 1, alignItems: "center", children: [
131
+ icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
+ import_Icon.default,
133
+ {
134
+ as: icon,
135
+ size: "medium",
136
+ fill: "secondary",
137
+ marginRight: "xxsmall"
138
+ }
139
+ ),
140
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body2, { flex: 1, marginTop: "xxsmall", marginBottom: "xxsmall", children: message }),
141
+ primaryButton && !secondaryButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: primaryButton, marginLeft: "xxsmall" })
142
+ ] }),
143
+ primaryButton && secondaryButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
144
+ import_Box.default,
120
145
  {
121
- as: icon,
122
- size: "medium",
123
- fill: "secondary",
124
- marginRight: "xxsmall"
146
+ display: "flex",
147
+ flex: 1,
148
+ justifyContent: "flex-end",
149
+ flexDirection: "row",
150
+ marginBottom: "xxsmall",
151
+ children: [
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: primaryButton, marginRight: "xxxsmall" }),
153
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: secondaryButton })
154
+ ]
125
155
  }
126
- ),
127
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body2, { flex: 1, marginTop: "xxsmall", marginBottom: "xxsmall", children: message }),
128
- primaryButton && !secondaryButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: primaryButton, marginLeft: "xxsmall" })
129
- ] }),
130
- primaryButton && secondaryButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
131
- import_Box.default,
132
- {
133
- display: "flex",
134
- flex: 1,
135
- justifyContent: "flex-end",
136
- flexDirection: "row",
137
- marginBottom: "xxsmall",
138
- children: [
139
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: primaryButton, marginRight: "xxxsmall" }),
140
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BannerActionButton, { button: secondaryButton })
141
- ]
142
- }
143
- )
144
- ] }));
145
- });
156
+ )
157
+ ] }));
158
+ }
159
+ );
146
160
  const BannerActionButtonType = (0, import_prop_types.shape)({
147
161
  label: import_prop_types.string.isRequired,
148
162
  action: import_prop_types.func.isRequired
@@ -172,10 +186,4 @@ Banner.propTypes = {
172
186
  );
173
187
  }
174
188
  };
175
- Banner.defaultProps = {
176
- icon: void 0,
177
- variant: "informative",
178
- primaryButton: void 0,
179
- secondaryButton: void 0
180
- };
181
189
  var Banner_default = Banner;
@@ -136,83 +136,91 @@ const ButtonContainer = import_styled_components.default.View`
136
136
  `;
137
137
  }}
138
138
  `;
139
- const Button = (0, import_react.forwardRef)(
140
- (_a, ref) => {
141
- var _b = _a, {
142
- children,
139
+ const Button = (0, import_react.forwardRef)((props, ref) => {
140
+ const defaultValues = {
141
+ children: "Button",
142
+ full: false,
143
+ disabled: false,
144
+ small: false,
145
+ pressed: false,
146
+ inverted: false,
147
+ secondary: false,
148
+ icon: void 0
149
+ };
150
+ const _a = __spreadValues(__spreadValues({}, defaultValues), props), {
151
+ children,
152
+ full,
153
+ disabled,
154
+ small,
155
+ pressed,
156
+ inverted,
157
+ secondary,
158
+ icon: Icon,
159
+ theme: {
160
+ yoga: {
161
+ components: { button }
162
+ }
163
+ }
164
+ } = _a, rest = __objRest(_a, [
165
+ "children",
166
+ "full",
167
+ "disabled",
168
+ "small",
169
+ "pressed",
170
+ "inverted",
171
+ "secondary",
172
+ "icon",
173
+ "theme"
174
+ ]);
175
+ const state = secondary ? "secondary" : "primary";
176
+ let textColor = button.types.contained.font.default.color;
177
+ if (disabled) {
178
+ textColor = button.types.contained.font.disabled.color;
179
+ } else if (inverted) {
180
+ textColor = button.types.contained.backgroundColor[state].default;
181
+ if (pressed) {
182
+ textColor = button.types.contained.backgroundColor[state].pressed;
183
+ }
184
+ } else if (pressed) {
185
+ textColor = button.types.contained.font.pressed.color;
186
+ }
187
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
188
+ ButtonContainer,
189
+ __spreadProps(__spreadValues({}, rest), {
143
190
  full,
191
+ pressed,
144
192
  disabled,
145
193
  small,
146
- pressed,
147
194
  inverted,
148
195
  secondary,
149
- icon: Icon,
150
- theme: {
151
- yoga: {
152
- components: { button }
153
- }
154
- }
155
- } = _b, rest = __objRest(_b, [
156
- "children",
157
- "full",
158
- "disabled",
159
- "small",
160
- "pressed",
161
- "inverted",
162
- "secondary",
163
- "icon",
164
- "theme"
165
- ]);
166
- const state = secondary ? "secondary" : "primary";
167
- let textColor = button.types.contained.font.default.color;
168
- if (disabled) {
169
- textColor = button.types.contained.font.disabled.color;
170
- } else if (inverted) {
171
- textColor = button.types.contained.backgroundColor[state].default;
172
- if (pressed) {
173
- textColor = button.types.contained.backgroundColor[state].pressed;
174
- }
175
- } else if (pressed) {
176
- textColor = button.types.contained.font.pressed.color;
177
- }
178
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
179
- ButtonContainer,
180
- __spreadProps(__spreadValues({}, rest), {
181
- full,
182
- pressed,
183
- disabled,
184
- small,
185
- inverted,
186
- secondary,
187
- ref,
188
- children: [
189
- Icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
190
- Icon,
191
- {
192
- width: small ? button.icon.size.small : button.icon.size.default,
193
- height: small ? button.icon.size.small : button.icon.size.default,
194
- fill: textColor,
195
- style: {
196
- marginRight: button.icon.margin.right
197
- }
196
+ ref,
197
+ children: [
198
+ Icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
199
+ Icon,
200
+ {
201
+ width: small ? button.icon.size.small : button.icon.size.default,
202
+ height: small ? button.icon.size.small : button.icon.size.default,
203
+ fill: textColor,
204
+ style: {
205
+ marginRight: button.icon.margin.right
198
206
  }
199
- ),
200
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
201
- Label,
202
- {
203
- disabled,
204
- pressed,
205
- inverted,
206
- small,
207
- color: textColor,
208
- children
209
- }
210
- )
211
- ]
212
- })
213
- );
214
- }
215
- );
207
+ }
208
+ ),
209
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
210
+ Label,
211
+ {
212
+ disabled,
213
+ pressed,
214
+ inverted,
215
+ small,
216
+ color: textColor,
217
+ children
218
+ }
219
+ )
220
+ ]
221
+ })
222
+ );
223
+ });
216
224
  Button.propTypes = {
217
225
  children: import_prop_types.node,
218
226
  full: import_prop_types.bool,
@@ -224,16 +232,6 @@ Button.propTypes = {
224
232
  /** an Icon from yoga-icons package */
225
233
  icon: (0, import_prop_types.oneOfType)([import_prop_types.bool, import_prop_types.func])
226
234
  };
227
- Button.defaultProps = {
228
- children: "Button",
229
- full: false,
230
- disabled: false,
231
- small: false,
232
- pressed: false,
233
- inverted: false,
234
- secondary: false,
235
- icon: void 0
236
- };
237
235
  const ButtonWithTouchable = (0, import_withTouchable.default)((0, import_styled_components.withTheme)(Button));
238
236
  var Button_default = ButtonWithTouchable;
239
237
  // Annotate the CommonJS export names for ESM import in node:
@@ -109,17 +109,17 @@ const ButtonContainer = import_styled_components.default.View`
109
109
  const ButtonIcon = (0, import_react.forwardRef)(
110
110
  (_a, ref) => {
111
111
  var _b = _a, {
112
- icon,
112
+ icon = void 0,
113
113
  theme: {
114
114
  yoga: {
115
115
  components: { button }
116
116
  }
117
117
  },
118
- small,
119
- pressed,
120
- disabled,
121
- inverted,
122
- secondary
118
+ small = false,
119
+ pressed = false,
120
+ disabled = false,
121
+ inverted = false,
122
+ secondary = false
123
123
  } = _b, props = __objRest(_b, [
124
124
  "icon",
125
125
  "theme",
@@ -172,13 +172,5 @@ ButtonIcon.propTypes = {
172
172
  secondary: import_prop_types.bool,
173
173
  icon: (0, import_prop_types.oneOfType)([import_prop_types.node, import_prop_types.func])
174
174
  };
175
- ButtonIcon.defaultProps = {
176
- small: false,
177
- disabled: false,
178
- pressed: false,
179
- inverted: false,
180
- secondary: false,
181
- icon: void 0
182
- };
183
175
  ButtonIcon.displayName = "Button.Icon";
184
176
  var Icon_default = (0, import_withTouchable.default)((0, import_styled_components.withTheme)(ButtonIcon));
@@ -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 });
@@ -83,14 +95,15 @@ const Link = (0, import_styled_components.default)(import_Button.Label)`
83
95
  `;
84
96
  }}
85
97
  `;
86
- const ButtonLink = (0, import_react.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, __spreadProps(__spreadValues({}, props), { ref })));
98
+ const ButtonLink = (0, import_react.forwardRef)(
99
+ (_a, ref) => {
100
+ var _b = _a, { disabled = false, secondary = false } = _b, props = __objRest(_b, ["disabled", "secondary"]);
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, __spreadProps(__spreadValues({ disabled, secondary }, props), { ref }));
102
+ }
103
+ );
87
104
  ButtonLink.propTypes = {
88
105
  disabled: import_prop_types.bool,
89
106
  secondary: import_prop_types.bool
90
107
  };
91
- ButtonLink.defaultProps = {
92
- disabled: false,
93
- secondary: false
94
- };
95
108
  ButtonLink.displayName = "Button.Link";
96
109
  var Link_default = (0, import_withTouchable.default)(ButtonLink);
@@ -138,12 +138,13 @@ const ButtonContainerOutline = (0, import_styled_components.default)(import_Butt
138
138
  const ButtonOutline = (0, import_react.forwardRef)(
139
139
  (_a, ref) => {
140
140
  var _b = _a, {
141
- children,
142
- disabled,
143
- pressed,
144
- small,
145
- secondary,
146
- inverted,
141
+ children = "Button",
142
+ full = false,
143
+ disabled = false,
144
+ small = false,
145
+ pressed = false,
146
+ inverted = false,
147
+ secondary = false,
147
148
  theme: {
148
149
  yoga: {
149
150
  colors,
@@ -156,11 +157,12 @@ const ButtonOutline = (0, import_react.forwardRef)(
156
157
  }
157
158
  } = _b, rest = __objRest(_b, [
158
159
  "children",
160
+ "full",
159
161
  "disabled",
160
- "pressed",
161
162
  "small",
162
- "secondary",
163
+ "pressed",
163
164
  "inverted",
165
+ "secondary",
164
166
  "theme"
165
167
  ]);
166
168
  const state = secondary ? "secondary" : "primary";
@@ -178,6 +180,7 @@ const ButtonOutline = (0, import_react.forwardRef)(
178
180
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
179
181
  ButtonContainerOutline,
180
182
  __spreadProps(__spreadValues({}, rest), {
183
+ full,
181
184
  disabled,
182
185
  pressed,
183
186
  small,
@@ -210,13 +213,4 @@ ButtonOutline.propTypes = {
210
213
  inverted: import_prop_types.bool,
211
214
  secondary: import_prop_types.bool
212
215
  };
213
- ButtonOutline.defaultProps = {
214
- children: "Button",
215
- full: false,
216
- disabled: false,
217
- small: false,
218
- pressed: false,
219
- inverted: false,
220
- secondary: false
221
- };
222
216
  var Outline_default = (0, import_withTouchable.default)((0, import_styled_components.withTheme)(ButtonOutline));
@@ -67,9 +67,11 @@ var import_prop_types = require("prop-types");
67
67
  const withTouchable = (Component) => {
68
68
  const WithTouchable = (_a) => {
69
69
  var _b = _a, {
70
- onPressIn,
71
- onPressOut,
72
- onChange,
70
+ onPressIn = () => {
71
+ },
72
+ onPressOut = () => {
73
+ },
74
+ onChange = void 0,
73
75
  onPress = onChange
74
76
  } = _b, rest = __objRest(_b, [
75
77
  "onPressIn",
@@ -101,14 +103,6 @@ const withTouchable = (Component) => {
101
103
  onChange: import_prop_types.func,
102
104
  onPress: import_prop_types.func
103
105
  };
104
- WithTouchable.defaultProps = {
105
- onPressIn: () => {
106
- },
107
- onPressOut: () => {
108
- },
109
- onChange: void 0,
110
- onPress: void 0
111
- };
112
106
  return WithTouchable;
113
107
  };
114
108
  withTouchable.propTypes = {
@@ -144,9 +144,9 @@ const RibbonText = (0, import_styled_components.default)(import_Text.default.Tin
144
144
  `;
145
145
  const Card = import_react.default.forwardRef(
146
146
  (_a, ref) => {
147
- var _b = _a, { ribbon, children, hasShadow } = _b, rest = __objRest(_b, ["ribbon", "children", "hasShadow"]);
147
+ var _b = _a, { ribbon = {}, children = null, variant = "", hasShadow = true } = _b, rest = __objRest(_b, ["ribbon", "children", "variant", "hasShadow"]);
148
148
  const CardWrapper = hasShadow ? CardShadow : import_Box.default;
149
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardStyled, __spreadProps(__spreadValues({ ref }, rest), { hasShadow, children: [
149
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardStyled, __spreadProps(__spreadValues({ ref }, rest), { variant, hasShadow, children: [
150
150
  Object.keys(ribbon).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ribbon, { variant: ribbon.variant, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RibbonText, { variant: ribbon.variant, children: ribbon.text }) }),
151
151
  children
152
152
  ] })) });
@@ -207,11 +207,5 @@ Card.propTypes = {
207
207
  /** applies a shadow to the card (enabled by default) */
208
208
  hasShadow: import_prop_types.bool
209
209
  };
210
- Card.defaultProps = {
211
- ribbon: {},
212
- children: null,
213
- variant: "",
214
- hasShadow: true
215
- };
216
210
  Card.displayName = "Card";
217
211
  var Card_default = Card;
@@ -144,9 +144,9 @@ const ButtonLink = (0, import_styled_components.default)(import_Button.default.L
144
144
  `;
145
145
  const SmallCard = ({
146
146
  date: { month, day, dayOfWeek },
147
- active,
148
- event,
149
- onPress
147
+ active = false,
148
+ event = void 0,
149
+ onPress = void 0
150
150
  }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DateInfo, { small: true, active, pv: "medium", bg: active ? "primary" : "white", children: [
151
151
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Top, { children: onPress ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
152
  Indicator,
@@ -192,8 +192,16 @@ const FullCard = (0, import_styled_components.withTheme)(
192
192
  ] })
193
193
  ] })
194
194
  );
195
- const EventCard = (_a) => {
196
- var _b = _a, { onPress, small } = _b, rest = __objRest(_b, ["onPress", "small"]);
195
+ const EventCard = (props) => {
196
+ const defaultValues = {
197
+ small: false,
198
+ active: false,
199
+ event: void 0,
200
+ link: "",
201
+ onLinkPress: void 0,
202
+ onPress: void 0
203
+ };
204
+ const _a = __spreadValues(__spreadValues({}, defaultValues), props), { onPress, small } = _a, rest = __objRest(_a, ["onPress", "small"]);
197
205
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.TouchableWithoutFeedback, { onPress, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Event, __spreadProps(__spreadValues({ small }, rest), { children: small ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SmallCard, __spreadValues({ onPress }, rest)) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FullCard, __spreadValues({}, rest)) })) });
198
206
  };
199
207
  EventCard.propTypes = {
@@ -218,14 +226,6 @@ EventCard.propTypes = {
218
226
  onLinkPress: import_prop_types.func,
219
227
  onPress: import_prop_types.func
220
228
  };
221
- EventCard.defaultProps = {
222
- small: false,
223
- active: false,
224
- event: void 0,
225
- link: "",
226
- onLinkPress: void 0,
227
- onPress: void 0
228
- };
229
229
  SmallCard.propTypes = {
230
230
  date: (0, import_prop_types.shape)({
231
231
  day: import_prop_types.string,
@@ -243,11 +243,6 @@ SmallCard.propTypes = {
243
243
  ]),
244
244
  onPress: import_prop_types.func
245
245
  };
246
- SmallCard.defaultProps = {
247
- active: false,
248
- event: void 0,
249
- onPress: void 0
250
- };
251
246
  FullCard.propTypes = EventCard.propTypes;
252
247
  EventCard.displayName = "EventCard";
253
248
  var EventCard_default = EventCard;
@@ -98,7 +98,7 @@ const CheckIn = (_a) => {
98
98
  var _b = _a, {
99
99
  name,
100
100
  address,
101
- avatar,
101
+ avatar = void 0,
102
102
  distance,
103
103
  rating,
104
104
  theme: {
@@ -134,8 +134,5 @@ CheckIn.propTypes = {
134
134
  distance: import_prop_types.string.isRequired,
135
135
  rating: import_prop_types.number.isRequired
136
136
  };
137
- CheckIn.defaultProps = {
138
- avatar: void 0
139
- };
140
137
  CheckIn.displayName = "GymCard.CheckIn";
141
138
  var CheckIn_default = (0, import_styled_components.withTheme)(CheckIn);