@gympass/yoga 7.127.3 → 7.127.4

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 (121) 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 +15 -25
  36. package/cjs/List/web/List.js +6 -8
  37. package/cjs/Menu/web/Menu.js +1 -4
  38. package/cjs/Menu/web/MenuItem.js +2 -10
  39. package/cjs/Menu/web/MenuList.js +8 -8
  40. package/cjs/Popover/web/Popover.js +5 -14
  41. package/cjs/Progress/web/Progress.js +6 -15
  42. package/cjs/RadioGroup/web/Button/RadioButton.js +4 -7
  43. package/cjs/RadioGroup/web/Radio/Radio.js +12 -17
  44. package/cjs/RadioGroup/web/RadioGroup.js +10 -17
  45. package/cjs/Rating/web/Rating.js +16 -25
  46. package/cjs/Skeleton/web/Skeleton.js +18 -7
  47. package/cjs/Slider/web/Marker.js +14 -9
  48. package/cjs/Slider/web/Slider.js +7 -14
  49. package/cjs/Slider/web/Tooltip.js +5 -10
  50. package/cjs/Snackbar/web/Snackbar.js +11 -22
  51. package/cjs/Spinner/web/Spinner.js +24 -26
  52. package/cjs/Stepper/web/Dots.js +2 -6
  53. package/cjs/Stepper/web/Line.js +0 -4
  54. package/cjs/Stepper/web/Stepper.js +1 -6
  55. package/cjs/Tag/web/Informative.js +3 -9
  56. package/cjs/Tag/web/Tag.js +11 -6
  57. package/cjs/Text/web/Text.js +37 -10
  58. package/cjs/TextArea/web/TextArea.js +11 -21
  59. package/cjs/Theme/Provider/Provider.js +1 -4
  60. package/esm/Accordion/web/Accordion.js +4 -12
  61. package/esm/Accordion/web/Small.js +0 -1
  62. package/esm/ActionRequirement/web/ActionRequirement.js +1 -8
  63. package/esm/AutoComplete/web/AutoComplete.js +11 -25
  64. package/esm/Avatar/web/Avatar.js +15 -14
  65. package/esm/Avatar/web/AvatarCircle.js +0 -1
  66. package/esm/Banner/web/Banner.js +13 -7
  67. package/esm/Button/web/Button.js +10 -22
  68. package/esm/Button/web/Icon.js +9 -11
  69. package/esm/Button/web/Link.js +10 -8
  70. package/esm/Button/web/Text.js +1 -5
  71. package/esm/Card/web/Card/Card.js +15 -17
  72. package/esm/Card/web/PlanCard/Content.js +9 -20
  73. package/esm/Card/web/PlanCard/List.js +3 -9
  74. package/esm/Card/web/PlanCard/PlanCard.js +1 -6
  75. package/esm/Checkbox/web/Checkbox.js +4 -17
  76. package/esm/Checkbox/web/Switch.js +13 -9
  77. package/esm/Chips/web/Chips.js +6 -14
  78. package/esm/Datepicker/web/Calendar.js +4 -14
  79. package/esm/Datepicker/web/Datepicker.js +5 -22
  80. package/esm/Dialog/web/Dialog.js +3 -12
  81. package/esm/Divider/web/Divider.js +6 -8
  82. package/esm/Drawer/web/Drawer.js +16 -4
  83. package/esm/Dropdown/web/Dropdown.js +20 -11
  84. package/esm/Feedback/web/Feedback.js +13 -6
  85. package/esm/Grid/web/Col.js +0 -19
  86. package/esm/Grid/web/Hide.js +19 -1
  87. package/esm/Header/web/Header.js +1 -6
  88. package/esm/Header/web/Logo.js +1 -4
  89. package/esm/Heading/web/Heading.js +1 -6
  90. package/esm/Icon/Icon.js +1 -11
  91. package/esm/Input/web/Helper.js +0 -9
  92. package/esm/Input/web/Input.js +12 -36
  93. package/esm/Input/web/Password.js +2 -10
  94. package/esm/Input/web/Phone.js +15 -25
  95. package/esm/List/web/List.js +6 -8
  96. package/esm/Menu/web/Menu.js +1 -4
  97. package/esm/Menu/web/MenuItem.js +2 -10
  98. package/esm/Menu/web/MenuList.js +8 -8
  99. package/esm/Popover/web/Popover.js +5 -14
  100. package/esm/Progress/web/Progress.js +6 -15
  101. package/esm/RadioGroup/web/Button/RadioButton.js +4 -7
  102. package/esm/RadioGroup/web/Radio/Radio.js +12 -17
  103. package/esm/RadioGroup/web/RadioGroup.js +10 -17
  104. package/esm/Rating/web/Rating.js +16 -25
  105. package/esm/Skeleton/web/Skeleton.js +18 -7
  106. package/esm/Slider/web/Marker.js +14 -9
  107. package/esm/Slider/web/Slider.js +7 -14
  108. package/esm/Slider/web/Tooltip.js +5 -10
  109. package/esm/Snackbar/web/Snackbar.js +11 -22
  110. package/esm/Spinner/web/Spinner.js +24 -26
  111. package/esm/Stepper/web/Dots.js +2 -6
  112. package/esm/Stepper/web/Line.js +0 -4
  113. package/esm/Stepper/web/Stepper.js +1 -6
  114. package/esm/Tag/web/Informative.js +3 -9
  115. package/esm/Tag/web/Tag.js +11 -6
  116. package/esm/Text/web/Text.js +37 -10
  117. package/esm/TextArea/web/TextArea.js +11 -21
  118. package/esm/Theme/Provider/Provider.js +1 -4
  119. package/package.json +2 -2
  120. package/typings/NavigationMenu/web/Item/styles.d.ts +3 -8
  121. package/typings/index.d.ts +40 -138
@@ -250,10 +250,10 @@ const Accordion = (_a) => {
250
250
  title,
251
251
  subtitle,
252
252
  children,
253
- disabled,
254
- expanded,
255
- small,
256
- hasHorizontalPadding
253
+ disabled = false,
254
+ expanded = false,
255
+ small = false,
256
+ hasHorizontalPadding = true
257
257
  } = _b, props = __objRest(_b, [
258
258
  "title",
259
259
  "subtitle",
@@ -313,12 +313,4 @@ Accordion.propTypes = {
313
313
  small: import_prop_types.bool,
314
314
  hasHorizontalPadding: import_prop_types.bool
315
315
  };
316
- Accordion.defaultProps = {
317
- title: void 0,
318
- subtitle: void 0,
319
- disabled: false,
320
- expanded: false,
321
- small: false,
322
- hasHorizontalPadding: true
323
- };
324
316
  var Accordion_default = Accordion;
@@ -55,5 +55,4 @@ function AccordionSmall(props) {
55
55
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Accordion.default, __spreadProps(__spreadValues({}, props), { small: true }));
56
56
  }
57
57
  AccordionSmall.propTypes = import_Accordion.default.propTypes;
58
- AccordionSmall.defaultProps = import_Accordion.default.defaultProps;
59
58
  var Small_default = AccordionSmall;
@@ -98,7 +98,7 @@ function ActionRequirement(props) {
98
98
  checkable,
99
99
  illustration,
100
100
  list,
101
- titleAsTextDisplay
101
+ titleAsTextDisplay = false
102
102
  } = props;
103
103
  let primaryButton;
104
104
  let secondaryButton;
@@ -134,11 +134,4 @@ ActionRequirement.propTypes = {
134
134
  list: (0, import_prop_types.oneOfType)([(0, import_prop_types.arrayOf)(import_prop_types.node), import_prop_types.node]),
135
135
  titleAsTextDisplay: import_prop_types.bool
136
136
  };
137
- ActionRequirement.defaultProps = {
138
- children: void 0,
139
- checkable: void 0,
140
- illustration: void 0,
141
- list: void 0,
142
- titleAsTextDisplay: false
143
- };
144
137
  var ActionRequirement_default = ActionRequirement;
@@ -193,21 +193,24 @@ const Match = import_styled_components.default.mark`
193
193
  font-weight: ${autocomplete.list.font.weight.matched};
194
194
  `}
195
195
  `;
196
+ const noop = () => {
197
+ };
198
+ const emptyArr = [];
196
199
  const AutoComplete = import_react.default.forwardRef(
197
200
  (_a, ref) => {
198
201
  var _b = _a, {
199
202
  className,
200
203
  style,
201
- full,
202
- options,
203
- onChange,
204
- onClean,
205
- onSelect,
204
+ full = false,
205
+ options = emptyArr,
206
+ onChange = noop,
207
+ onClean = noop,
208
+ onSelect = noop,
206
209
  value,
207
210
  error,
208
- openSuggestionsAriaLabel,
209
- closeSuggestionsAriaLabel,
210
- shouldFilterOptions
211
+ openSuggestionsAriaLabel = "Open suggestions",
212
+ closeSuggestionsAriaLabel = "Close suggestions",
213
+ shouldFilterOptions = true
211
214
  } = _b, props = __objRest(_b, [
212
215
  "className",
213
216
  "style",
@@ -359,21 +362,4 @@ AutoComplete.propTypes = {
359
362
  /** flag to enable options filtering */
360
363
  shouldFilterOptions: import_prop_types.bool
361
364
  };
362
- AutoComplete.defaultProps = {
363
- className: void 0,
364
- full: false,
365
- options: [],
366
- style: void 0,
367
- onSelect: () => {
368
- },
369
- onChange: () => {
370
- },
371
- onClean: () => {
372
- },
373
- value: void 0,
374
- error: void 0,
375
- openSuggestionsAriaLabel: "Open suggestions",
376
- closeSuggestionsAriaLabel: "Close suggestions",
377
- shouldFilterOptions: true
378
- };
379
365
  var AutoComplete_default = AutoComplete;
@@ -81,7 +81,21 @@ const Content = ({ icon, alt, src, fill, content, stroke }) => {
81
81
  };
82
82
  const Avatar = (0, import_react.forwardRef)(
83
83
  (_a, ref) => {
84
- var _b = _a, { src, alt, fill, stroke, icon = import_yoga_icons.BuildingFilled, children } = _b, otherProps = __objRest(_b, ["src", "alt", "fill", "stroke", "icon", "children"]);
84
+ var _b = _a, {
85
+ src,
86
+ alt,
87
+ fill = "white",
88
+ stroke,
89
+ icon = import_yoga_icons.BuildingFilled,
90
+ children
91
+ } = _b, otherProps = __objRest(_b, [
92
+ "src",
93
+ "alt",
94
+ "fill",
95
+ "stroke",
96
+ "icon",
97
+ "children"
98
+ ]);
85
99
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
100
  import_Box.default,
87
101
  __spreadProps(__spreadValues({
@@ -117,12 +131,6 @@ Content.propTypes = __spreadValues({
117
131
  fill: import_prop_types.string,
118
132
  alt: import_prop_types.string
119
133
  }, import_Box.default.propTypes);
120
- Content.defaultProps = {
121
- src: void 0,
122
- fill: "white",
123
- alt: void 0,
124
- icon: void 0
125
- };
126
134
  Avatar.propTypes = __spreadValues({
127
135
  src: import_prop_types.string,
128
136
  /** Required if src is true */
@@ -152,12 +160,5 @@ Avatar.propTypes = __spreadValues({
152
160
  fill: import_prop_types.string,
153
161
  stroke: import_prop_types.string
154
162
  }, import_Box.default.propTypes);
155
- Avatar.defaultProps = __spreadValues({
156
- src: void 0,
157
- alt: void 0,
158
- icon: void 0,
159
- fill: "white",
160
- stroke: void 0
161
- }, import_Box.default.defaultProps);
162
163
  Avatar.displayName = "Avatar";
163
164
  var Avatar_default = Avatar;
@@ -78,6 +78,5 @@ const AvatarCircle = (0, import_react.forwardRef)((_a, ref) => {
78
78
  );
79
79
  });
80
80
  AvatarCircle.propTypes = import_Avatar.default.propTypes;
81
- AvatarCircle.defaultProps = import_Avatar.default.defaultProps;
82
81
  AvatarCircle.displayName = "Avatar.Circle";
83
82
  var AvatarCircle_default = AvatarCircle;
@@ -114,7 +114,19 @@ BannerActionButton.propTypes = {
114
114
  }).isRequired
115
115
  };
116
116
  const Banner = (0, import_react.forwardRef)((props, ref) => {
117
- const _a = props, { icon, variant, message, primaryButton, secondaryButton } = _a, rest = __objRest(_a, ["icon", "variant", "message", "primaryButton", "secondaryButton"]);
117
+ const _a = props, {
118
+ icon,
119
+ variant = "informative",
120
+ message,
121
+ primaryButton,
122
+ secondaryButton
123
+ } = _a, rest = __objRest(_a, [
124
+ "icon",
125
+ "variant",
126
+ "message",
127
+ "primaryButton",
128
+ "secondaryButton"
129
+ ]);
118
130
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledBanner, __spreadProps(__spreadValues({ ref, variant }, rest), { children: [
119
131
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Box.default, { display: "flex", flex: 1, alignItems: "center", children: [
120
132
  icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -173,10 +185,4 @@ Banner.propTypes = {
173
185
  );
174
186
  }
175
187
  };
176
- Banner.defaultProps = {
177
- icon: void 0,
178
- variant: "informative",
179
- primaryButton: void 0,
180
- secondaryButton: void 0
181
- };
182
188
  var Banner_default = Banner;
@@ -72,18 +72,20 @@ const SpinnerContainer = import_styled_components.default.div`
72
72
  left: 50%;
73
73
  transform: translate(-50%, -50%);
74
74
  `;
75
+ const noop = () => {
76
+ };
75
77
  const Button = (0, import_react.forwardRef)(
76
78
  (_a, ref) => {
77
79
  var _b = _a, {
78
- children,
79
- onClick,
80
- full,
81
- disabled,
82
- inverted,
83
- small,
84
- secondary,
80
+ children = "Button",
81
+ onClick = noop,
82
+ full = false,
83
+ disabled = void 0,
84
+ inverted = false,
85
+ small = false,
86
+ secondary = false,
85
87
  icon: Icon,
86
- isLoading
88
+ isLoading = false
87
89
  } = _b, props = __objRest(_b, [
88
90
  "children",
89
91
  "onClick",
@@ -135,19 +137,5 @@ Button.propTypes = {
135
137
  icon: (0, import_prop_types.oneOfType)([import_prop_types.node, import_prop_types.func]),
136
138
  href: import_prop_types.string
137
139
  };
138
- Button.defaultProps = {
139
- ariaLabel: void 0,
140
- children: "Button",
141
- disabled: void 0,
142
- full: false,
143
- inverted: false,
144
- isLoading: false,
145
- onClick: () => {
146
- },
147
- small: false,
148
- secondary: false,
149
- icon: void 0,
150
- href: void 0
151
- };
152
140
  Button.displayName = "Button";
153
141
  var Button_default = Button;
@@ -98,19 +98,25 @@ const ButtonIcon = (0, import_react.forwardRef)(
98
98
  components: { button }
99
99
  }
100
100
  },
101
- small,
101
+ small = false,
102
102
  disabled,
103
- isLoading
103
+ isLoading = false,
104
+ secondary = false,
105
+ inverted = false
104
106
  } = _b, props = __objRest(_b, [
105
107
  "icon",
106
108
  "theme",
107
109
  "small",
108
110
  "disabled",
109
- "isLoading"
111
+ "isLoading",
112
+ "secondary",
113
+ "inverted"
110
114
  ]);
111
115
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
112
116
  IconStyled,
113
117
  __spreadProps(__spreadValues({}, props), {
118
+ secondary,
119
+ inverted,
114
120
  ref,
115
121
  small,
116
122
  disabled: disabled || isLoading,
@@ -135,13 +141,5 @@ ButtonIcon.propTypes = {
135
141
  icon: (0, import_prop_types.oneOfType)([import_prop_types.node, import_prop_types.func]),
136
142
  isLoading: import_prop_types.bool
137
143
  };
138
- ButtonIcon.defaultProps = {
139
- small: false,
140
- disabled: void 0,
141
- secondary: false,
142
- inverted: false,
143
- icon: void 0,
144
- isLoading: false
145
- };
146
144
  ButtonIcon.displayName = "Button.Icon";
147
145
  var Icon_default = (0, import_styled_components.withTheme)(ButtonIcon);
@@ -146,12 +146,20 @@ const Link = (0, import_styled_components.default)(import_Button.default)`
146
146
  }}
147
147
  `;
148
148
  const ButtonLink = (0, import_react.forwardRef)((_a, ref) => {
149
- var rest = __objRest(_a, []);
149
+ var _b = _a, { secondary = false } = _b, rest = __objRest(_b, ["secondary"]);
150
150
  const props = Object.fromEntries(
151
151
  Object.entries(rest).filter(([key]) => key !== "isLoading")
152
152
  );
153
153
  const { disabled } = props;
154
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, __spreadProps(__spreadValues({}, props), { disabled, "aria-disabled": disabled, ref }));
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
+ Link,
156
+ __spreadProps(__spreadValues({}, props), {
157
+ secondary,
158
+ disabled,
159
+ "aria-disabled": disabled,
160
+ ref
161
+ })
162
+ );
155
163
  });
156
164
  ButtonLink.propTypes = {
157
165
  disabled: import_prop_types.bool,
@@ -160,11 +168,5 @@ ButtonLink.propTypes = {
160
168
  /** an Icon from yoga-icons package */
161
169
  icon: (0, import_prop_types.oneOfType)([import_prop_types.node, import_prop_types.func])
162
170
  };
163
- ButtonLink.defaultProps = {
164
- disabled: void 0,
165
- secondary: false,
166
- href: void 0,
167
- icon: void 0
168
- };
169
171
  ButtonLink.displayName = "Button.Link";
170
172
  var Link_default = ButtonLink;
@@ -168,7 +168,7 @@ const ButtonText = (0, import_react.forwardRef)((_a, ref) => {
168
168
  const props = Object.fromEntries(
169
169
  Object.entries(rest).filter(([key]) => key !== "isLoading")
170
170
  );
171
- const { secondary, inverted } = props;
171
+ const { secondary = false, inverted = false } = props;
172
172
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
173
  StyledButton,
174
174
  __spreadProps(__spreadValues({}, props), {
@@ -182,9 +182,5 @@ ButtonText.propTypes = {
182
182
  inverted: import_prop_types.bool,
183
183
  secondary: import_prop_types.bool
184
184
  };
185
- ButtonText.defaultProps = {
186
- inverted: false,
187
- secondary: false
188
- };
189
185
  ButtonText.displayName = "Button.Text";
190
186
  var Text_default = ButtonText;
@@ -78,10 +78,10 @@ const CardStyled = import_styled_components.default.section`
78
78
  }
79
79
  }) => `
80
80
  ${hasShadow ? `
81
- padding:
82
- ${card.padding.top}px
81
+ padding:
82
+ ${card.padding.top}px
83
83
  ${card.padding.right}px
84
- ${card.padding.bottom}px
84
+ ${card.padding.bottom}px
85
85
  ${card.padding.left}px;
86
86
  box-shadow: ${card.elevation};
87
87
  ` : `
@@ -110,12 +110,12 @@ const Ribbon = (0, import_styled_components.default)(import_Text.default.Tiny)`
110
110
  margin-left: -${card.padding.left}px;
111
111
  margin-bottom: ${card.padding.bottom}px;
112
112
 
113
- padding:
113
+ padding:
114
114
  ${spacing.xxxsmall}px
115
115
  ${spacing.xsmall}px
116
116
  ${spacing.xxxsmall}px
117
117
  ${spacing.small}px;
118
-
118
+
119
119
  border-top-right-radius: ${card.ribbon.radius}px;
120
120
  border-bottom-right-radius: ${card.ribbon.radius}px;
121
121
 
@@ -124,13 +124,16 @@ const Ribbon = (0, import_styled_components.default)(import_Text.default.Tiny)`
124
124
  color: ${variant ? white : text.primary};
125
125
  `}
126
126
  `;
127
- const Card = import_react.default.forwardRef((_a, ref) => {
128
- var _b = _a, { ribbon, children } = _b, rest = __objRest(_b, ["ribbon", "children"]);
129
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardStyled, __spreadProps(__spreadValues({ ref }, rest), { children: [
130
- Object.keys(ribbon).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ribbon, { variant: ribbon.variant, as: "span", children: ribbon.text }),
131
- children
132
- ] }));
133
- });
127
+ const emptyObj = {};
128
+ const Card = import_react.default.forwardRef(
129
+ (_a, ref) => {
130
+ var _b = _a, { ribbon = emptyObj, children = null, hasShadow = true } = _b, rest = __objRest(_b, ["ribbon", "children", "hasShadow"]);
131
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardStyled, __spreadProps(__spreadValues({ ref, hasShadow }, rest), { children: [
132
+ Object.keys(ribbon).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ribbon, { variant: ribbon.variant, as: "span", children: ribbon.text }),
133
+ children
134
+ ] }));
135
+ }
136
+ );
134
137
  Card.propTypes = {
135
138
  /** text: the content inside the Card Ribbon.
136
139
  * variant: style the card following the theme (primary, secondary, vibin, hope,
@@ -163,10 +166,5 @@ Card.propTypes = {
163
166
  /** applies a shadow to the card (enabled by default) */
164
167
  hasShadow: import_prop_types.bool
165
168
  };
166
- Card.defaultProps = {
167
- ribbon: {},
168
- children: null,
169
- hasShadow: true
170
- };
171
169
  Card.displayName = "Card";
172
170
  var Card_default = Card;
@@ -130,15 +130,15 @@ const EnhancePrice = (0, import_styled_components.default)(import_Text.default.M
130
130
  const PlanCardContent = (_a) => {
131
131
  var _b = _a, {
132
132
  title,
133
- badgeColor,
134
- subtitle,
135
- description,
136
- currency,
137
- suffix,
138
- price,
139
- period,
140
- extra,
141
- children
133
+ badgeColor = null,
134
+ subtitle = null,
135
+ description = null,
136
+ currency = null,
137
+ suffix = null,
138
+ price = null,
139
+ period = null,
140
+ extra = null,
141
+ children = null
142
142
  } = _b, rest = __objRest(_b, [
143
143
  "title",
144
144
  "badgeColor",
@@ -183,16 +183,5 @@ PlanCardContent.propTypes = {
183
183
  /** color of the badge attached to the title */
184
184
  badgeColor: import_prop_types.string
185
185
  };
186
- PlanCardContent.defaultProps = {
187
- children: null,
188
- description: null,
189
- subtitle: null,
190
- currency: null,
191
- suffix: null,
192
- price: null,
193
- period: null,
194
- extra: null,
195
- badgeColor: null
196
- };
197
186
  PlanCardContent.displayName = "PlanCard.Content";
198
187
  var Content_default = PlanCardContent;
@@ -129,12 +129,13 @@ const Button = import_styled_components.default.button`
129
129
 
130
130
  ${truncateStyle}
131
131
  `;
132
+ const emptyObj = {};
132
133
  const ListItem = (0, import_styled_components.withTheme)((props) => {
133
134
  const {
134
135
  text,
135
- truncate,
136
+ truncate = true,
136
137
  icon: Icon,
137
- buttonProps,
138
+ buttonProps = emptyObj,
138
139
  theme: yogaTheme,
139
140
  children,
140
141
  onClick
@@ -173,13 +174,6 @@ ListItem.propTypes = {
173
174
  children: import_prop_types.node,
174
175
  truncate: import_prop_types.bool
175
176
  };
176
- ListItem.defaultProps = {
177
- truncate: true,
178
- icon: void 0,
179
- buttonProps: {},
180
- onClick: void 0,
181
- children: void 0
182
- };
183
177
  // Annotate the CommonJS export names for ESM import in node:
184
178
  0 && (module.exports = {
185
179
  List,
@@ -167,7 +167,7 @@ const DiscountWrapper = (0, import_styled_components.default)(import_Box.default
167
167
  }}
168
168
  `;
169
169
  function PlanCard(_a) {
170
- var _b = _a, { children, discount, variant } = _b, rest = __objRest(_b, ["children", "discount", "variant"]);
170
+ var _b = _a, { children, discount, variant = "deepPurple" } = _b, rest = __objRest(_b, ["children", "discount", "variant"]);
171
171
  const hasDiscount = !!discount;
172
172
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Plan, __spreadProps(__spreadValues({}, rest), { children: [
173
173
  hasDiscount && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DiscountWrapper, { bg: variant, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Tiny, { color: "white", fontWeight: "medium", children: discount }) }),
@@ -180,11 +180,6 @@ PlanCard.propTypes = {
180
180
  discount: import_prop_types.string,
181
181
  variant: import_prop_types.string
182
182
  };
183
- PlanCard.defaultProps = {
184
- children: void 0,
185
- discount: void 0,
186
- variant: "deepPurple"
187
- };
188
183
  PlanCard.displayName = "PlanCard";
189
184
  var PlanCard_default = PlanCard;
190
185
  // Annotate the CommonJS export names for ESM import in node:
@@ -283,13 +283,13 @@ const Checkbox = (_a) => {
283
283
  value,
284
284
  label,
285
285
  helper,
286
- disabled,
287
- checked,
286
+ disabled = false,
287
+ checked = false,
288
288
  error,
289
289
  style,
290
290
  className,
291
- inverted,
292
- indeterminate,
291
+ inverted = false,
292
+ indeterminate = false,
293
293
  ariaLabel,
294
294
  theme: {
295
295
  yoga: {
@@ -392,18 +392,5 @@ Checkbox.propTypes = {
392
392
  className: import_prop_types.string,
393
393
  ariaLabel: import_prop_types.string
394
394
  };
395
- Checkbox.defaultProps = {
396
- label: void 0,
397
- value: void 0,
398
- helper: void 0,
399
- checked: false,
400
- disabled: false,
401
- inverted: false,
402
- indeterminate: false,
403
- error: void 0,
404
- style: void 0,
405
- className: void 0,
406
- ariaLabel: void 0
407
- };
408
395
  Checkbox.displayName = "Checkbox";
409
396
  var Checkbox_default = (0, import_styled_components.withTheme)(Checkbox);
@@ -166,8 +166,18 @@ const SwitchThumb = import_styled_components.default.span`
166
166
  `}
167
167
  `};
168
168
  `;
169
- const CheckboxSwitch = (_a) => {
170
- var _b = _a, { checked, disabled, onChange } = _b, rest = __objRest(_b, ["checked", "disabled", "onChange"]);
169
+ const noop = () => {
170
+ };
171
+ function CheckboxSwitch(_a) {
172
+ var _b = _a, {
173
+ checked = false,
174
+ disabled = false,
175
+ onChange = noop
176
+ } = _b, rest = __objRest(_b, [
177
+ "checked",
178
+ "disabled",
179
+ "onChange"
180
+ ]);
171
181
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SwitchTrack, __spreadProps(__spreadValues({ checked, disabled }, rest), { children: [
172
182
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
183
  SwitchInput,
@@ -183,17 +193,11 @@ const CheckboxSwitch = (_a) => {
183
193
  ),
184
194
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchThumb, { role: "button", checked, disabled })
185
195
  ] }));
186
- };
196
+ }
187
197
  CheckboxSwitch.propTypes = {
188
198
  checked: import_prop_types.bool,
189
199
  disabled: import_prop_types.bool,
190
200
  onChange: import_prop_types.func
191
201
  };
192
- CheckboxSwitch.defaultProps = {
193
- checked: false,
194
- disabled: false,
195
- onChange: () => {
196
- }
197
- };
198
202
  CheckboxSwitch.displayName = "Checkbox.Switch";
199
203
  var Switch_default = CheckboxSwitch;
@@ -122,9 +122,9 @@ const Wrapper = import_styled_components.default.button`
122
122
  p {
123
123
  color: ${colors.white};
124
124
  }
125
-
125
+
126
126
  background-color: ${colors.secondary};
127
-
127
+
128
128
 
129
129
  border-color: transparent;
130
130
 
@@ -167,14 +167,15 @@ const Wrapper = import_styled_components.default.button`
167
167
  `;
168
168
  }}
169
169
  `;
170
+ const emptyArr = [];
170
171
  const Chips = import_react.default.forwardRef(
171
172
  (_c, ref) => {
172
173
  var _d = _c, {
173
174
  children,
174
- selected,
175
+ selected = false,
175
176
  counter,
176
- icons,
177
- disabled,
177
+ icons = emptyArr,
178
+ disabled = false,
178
179
  onToggle,
179
180
  onClick = onToggle,
180
181
  theme: {
@@ -251,13 +252,4 @@ Chips.propTypes = {
251
252
  onToggle: import_prop_types.func,
252
253
  onClick: import_prop_types.func
253
254
  };
254
- Chips.defaultProps = {
255
- children: void 0,
256
- selected: false,
257
- disabled: false,
258
- counter: void 0,
259
- icons: [],
260
- onToggle: void 0,
261
- onClick: void 0
262
- };
263
255
  var Chips_default = (0, import_styled_components.withTheme)(Chips);
@@ -186,10 +186,10 @@ function Calendar({
186
186
  type,
187
187
  startDate,
188
188
  endDate,
189
- onSelectSingle,
190
- onSelectRange,
191
- disablePastDates,
192
- disableFutureDates,
189
+ onSelectSingle = null,
190
+ onSelectRange = null,
191
+ disablePastDates = false,
192
+ disableFutureDates = false,
193
193
  disablePastFrom,
194
194
  disableFutureFrom
195
195
  }) {
@@ -398,14 +398,4 @@ Calendar.propTypes = {
398
398
  disablePastFrom: (0, import_prop_types.instanceOf)(Date),
399
399
  disableFutureFrom: (0, import_prop_types.instanceOf)(Date)
400
400
  };
401
- Calendar.defaultProps = {
402
- startDate: void 0,
403
- endDate: void 0,
404
- onSelectSingle: null,
405
- onSelectRange: null,
406
- disablePastDates: false,
407
- disableFutureDates: false,
408
- disablePastFrom: void 0,
409
- disableFutureFrom: void 0
410
- };
411
401
  var Calendar_default = Calendar;