@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
@@ -63,7 +63,14 @@ const StyledMenuList = (0, import_styled_components.default)(import_react_dropdo
63
63
  }}
64
64
  `;
65
65
  const MenuList = (0, import_react.forwardRef)(
66
- ({ children, align, alignOffset, side, sideOffset, zIndex }, ref) => {
66
+ ({
67
+ children,
68
+ align = "start",
69
+ alignOffset = 0,
70
+ side = "bottom",
71
+ sideOffset = 4,
72
+ zIndex = "auto"
73
+ }, ref) => {
67
74
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_dropdown_menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
68
75
  StyledMenuList,
69
76
  {
@@ -92,12 +99,5 @@ MenuList.propTypes = {
92
99
  /** Add z-index value to Menu.List. Set to 'auto' by default */
93
100
  zIndex: import_prop_types.string || import_prop_types.number
94
101
  };
95
- MenuList.defaultProps = {
96
- align: "start",
97
- alignOffset: 0,
98
- side: "bottom",
99
- sideOffset: 4,
100
- zIndex: "auto"
101
- };
102
102
  MenuList.displayName = "Menu.List";
103
103
  var MenuList_default = MenuList;
@@ -72,12 +72,12 @@ const Popover = import_react.default.forwardRef(
72
72
  children,
73
73
  title,
74
74
  description,
75
- position,
76
- width,
77
- height,
78
- zIndex,
75
+ position = "bottom-center",
76
+ width = 265,
77
+ height = 200,
78
+ zIndex = 1,
79
79
  a11yId,
80
- hover
80
+ hover = false
81
81
  } = _b, props = __objRest(_b, [
82
82
  "children",
83
83
  "title",
@@ -165,13 +165,4 @@ Popover.propTypes = {
165
165
  zIndex: import_prop_types.number,
166
166
  hover: import_prop_types.bool
167
167
  };
168
- Popover.defaultProps = {
169
- a11yId: void 0,
170
- title: void 0,
171
- position: "bottom-center",
172
- width: 265,
173
- height: 200,
174
- zIndex: 1,
175
- hover: false
176
- };
177
168
  var Popover_default = Popover;
@@ -132,8 +132,8 @@ const Wrapper = import_styled_components.default.div`
132
132
  width: 100%;
133
133
 
134
134
  ${({
135
- isNumber,
136
- align,
135
+ isNumber = false,
136
+ align = "left",
137
137
  theme: {
138
138
  yoga: { spacing }
139
139
  }
@@ -173,13 +173,13 @@ Wrapper.propTypes = {
173
173
  align: (0, import_prop_types.oneOf)(["left", "right"]),
174
174
  isNumber: import_prop_types.bool
175
175
  };
176
- Wrapper.defaultProps = {
177
- align: "left",
178
- isNumber: false
176
+ const defaultLabel = {
177
+ value: void 0,
178
+ placement: "left"
179
179
  };
180
180
  const Progress = import_react.default.forwardRef(
181
181
  (_a, ref) => {
182
- var _b = _a, { label, max, value, variant } = _b, props = __objRest(_b, ["label", "max", "value", "variant"]);
182
+ var _b = _a, { label = defaultLabel, max = 1, value, variant = "verve" } = _b, props = __objRest(_b, ["label", "max", "value", "variant"]);
183
183
  const isNumber = !/[a-zA-Z]/g.test(label.value);
184
184
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Wrapper, __spreadProps(__spreadValues({ isNumber, align: label.placement, ref }, props), { children: [
185
185
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressBar, { max, value, variant }),
@@ -227,13 +227,4 @@ Progress.propTypes = {
227
227
  "white"
228
228
  ])
229
229
  };
230
- Progress.defaultProps = {
231
- label: {
232
- value: void 0,
233
- placement: "left"
234
- },
235
- max: 1,
236
- value: void 0,
237
- variant: "verve"
238
- };
239
230
  var Progress_default = Progress;
@@ -122,10 +122,10 @@ const ButtonWrapper = import_styled_components.default.div`
122
122
  border-color: ${radiogroup.button.border.color};
123
123
  border-top-width: ${radiogroup.button.border.width}px;
124
124
  border-bottom-width: ${radiogroup.button.border.width}px;
125
-
125
+
126
126
  border-left: none;
127
127
  border-right: none;
128
-
128
+
129
129
  &:first-child {
130
130
  border-right-width: 0;
131
131
  border-left-width: ${radiogroup.button.border.width}px;
@@ -135,7 +135,7 @@ const ButtonWrapper = import_styled_components.default.div`
135
135
  border-top-left-radius: ${radiogroup.button.border.radius}px;
136
136
  border-bottom-left-radius: ${radiogroup.button.border.radius}px;
137
137
  }
138
-
138
+
139
139
  &:last-child {
140
140
  border-left-width: 0;
141
141
 
@@ -150,7 +150,7 @@ const ButtonWrapper = import_styled_components.default.div`
150
150
  `;
151
151
  const RadioGroupButton = import_react.default.forwardRef(
152
152
  (_a, ref) => {
153
- var _b = _a, { children, value } = _b, rest = __objRest(_b, ["children", "value"]);
153
+ var _b = _a, { children, value = "" } = _b, rest = __objRest(_b, ["children", "value"]);
154
154
  const _a2 = (0, import_react.useContext)(import_RadioGroupContext.default), { name, onChange, small, selectedValue } = _a2, context = __objRest(_a2, ["name", "onChange", "small", "selectedValue"]);
155
155
  const inputValue = value || children;
156
156
  const checked = inputValue === selectedValue;
@@ -175,7 +175,4 @@ RadioGroupButton.propTypes = {
175
175
  children: (0, import_prop_types.oneOfType)([import_prop_types.string, import_prop_types.number]).isRequired,
176
176
  value: (0, import_prop_types.oneOfType)([import_prop_types.string, import_prop_types.number])
177
177
  };
178
- RadioGroupButton.defaultProps = {
179
- value: ""
180
- };
181
178
  var RadioButton_default = RadioGroupButton;
@@ -85,7 +85,7 @@ const Radio = import_styled_components.default.span`
85
85
  width: ${radio.size}px;
86
86
  height: ${radio.size}px;
87
87
 
88
- border-width: ${radio.size * 0.1}px;
88
+ border-width: ${radio.size * 0.1}px;
89
89
  border-style: solid;
90
90
  border-color: ${radio.backgroundColor};
91
91
  border-radius: ${radio.border.radius}px;
@@ -138,28 +138,28 @@ const Wrapper = import_styled_components.default.div`
138
138
  }
139
139
 
140
140
  ${checked ? `
141
-
141
+
142
142
  &:hover {
143
143
  ${Radio} {
144
144
  background-color: ${stateColors.hover};
145
- box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
145
+ box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
146
146
  ${stateColors.hover};
147
147
  }
148
148
  }
149
-
149
+
150
150
  &:focus-within {
151
151
  ${Radio} {
152
152
  z-index: 1;
153
153
  background-color: ${stateColors.focusWithin};
154
- box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
154
+ box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
155
155
  ${stateColors.focusWithin};
156
156
  }
157
157
  }
158
-
158
+
159
159
  &:active {
160
160
  ${Radio} {
161
161
  background-color: ${stateColors.active};
162
- box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
162
+ box-shadow: 0 0 0 ${radiogroup.radio.size * 0.4}px
163
163
  ${stateColors.active};
164
164
  }
165
165
  }
@@ -174,12 +174,12 @@ const Wrapper = import_styled_components.default.div`
174
174
 
175
175
  width: ${radiogroup.radio.size * 0.5}px;
176
176
  height: ${radiogroup.radio.size * 0.5}px;
177
-
177
+
178
178
  border-radius: 100%;
179
179
  background-color: ${radiogroup.checked.backgroundColor};
180
-
180
+
181
181
  transform: translate(-50%, -50%);
182
-
182
+
183
183
  content: '';
184
184
  }
185
185
  }
@@ -208,9 +208,10 @@ const Wrapper = import_styled_components.default.div`
208
208
  `;
209
209
  }}
210
210
  `;
211
+ const emptyObj = {};
211
212
  const RadioGroupRadio = import_react.default.forwardRef(
212
213
  (_a, ref) => {
213
- var _b = _a, { value, disabled, style, className } = _b, rest = __objRest(_b, ["value", "disabled", "style", "className"]);
214
+ var _b = _a, { value = "", disabled = false, style = emptyObj, className } = _b, rest = __objRest(_b, ["value", "disabled", "style", "className"]);
214
215
  const _a2 = (0, import_react.useContext)(import_RadioGroupContext.default), { name, onChange, selectedValue } = _a2, context = __objRest(_a2, ["name", "onChange", "selectedValue"]);
215
216
  const inputValue = value;
216
217
  const checked = inputValue === selectedValue;
@@ -250,10 +251,4 @@ RadioGroupRadio.propTypes = {
250
251
  style: (0, import_prop_types.shape)({}),
251
252
  value: (0, import_prop_types.oneOfType)([import_prop_types.string, import_prop_types.number])
252
253
  };
253
- RadioGroupRadio.defaultProps = {
254
- className: void 0,
255
- disabled: false,
256
- style: {},
257
- value: ""
258
- };
259
254
  var Radio_default = RadioGroupRadio;
@@ -76,15 +76,18 @@ const Group = import_styled_components.default.div.attrs({
76
76
  ${full ? `width: 100%;` : ``}
77
77
  `}
78
78
  `;
79
+ const noop = () => {
80
+ };
81
+ const emptyObj = {};
79
82
  const RadioGroup = (_a) => {
80
83
  var _b = _a, {
81
- name,
82
- onChange,
83
- selectedValue,
84
- small,
85
- full,
86
- children,
87
- style
84
+ name = "",
85
+ onChange = noop,
86
+ selectedValue = "",
87
+ small = false,
88
+ full = false,
89
+ children = null,
90
+ style = emptyObj
88
91
  } = _b, rest = __objRest(_b, [
89
92
  "name",
90
93
  "onChange",
@@ -116,14 +119,4 @@ RadioGroup.propTypes = {
116
119
  children: import_prop_types.node,
117
120
  style: (0, import_prop_types.shape)({})
118
121
  };
119
- RadioGroup.defaultProps = {
120
- name: "",
121
- onChange: () => {
122
- },
123
- selectedValue: "",
124
- small: false,
125
- full: false,
126
- children: null,
127
- style: {}
128
- };
129
122
  var RadioGroup_default = RadioGroup;
@@ -84,22 +84,31 @@ const RatingWrapper = import_styled_components.default.div`
84
84
  ${readOnly ? "pointer-events: none;" : ""}
85
85
  `}
86
86
  `;
87
+ const noop = () => {
88
+ };
89
+ const defaultIcon = {
90
+ type: import_yoga_icons.StarFilled,
91
+ size: 12
92
+ };
87
93
  const Rating = (_a) => {
88
94
  var _b = _a, {
89
95
  value,
90
- max,
91
- readOnly,
92
- onRate,
93
- onMouseOver,
94
- onMouseMove,
95
- onMouseLeave,
96
+ max = 5,
97
+ readOnly = true,
98
+ onRate = noop,
99
+ onMouseOver = noop,
100
+ onMouseMove = noop,
101
+ onMouseLeave = noop,
96
102
  theme: {
97
103
  yoga: {
98
104
  colors,
99
105
  components: { rating }
100
106
  }
101
107
  },
102
- icon: { type: Icon = import_yoga_icons.StarFilled, size: iconSize = rating.icon.size }
108
+ icon: {
109
+ type: Icon = import_yoga_icons.StarFilled,
110
+ size: iconSize = rating.icon.size
111
+ } = defaultIcon
103
112
  } = _b, rest = __objRest(_b, [
104
113
  "value",
105
114
  "max",
@@ -215,22 +224,4 @@ Rating.propTypes = {
215
224
  onMouseMove: import_prop_types.func,
216
225
  onMouseLeave: import_prop_types.func
217
226
  };
218
- Rating.defaultProps = {
219
- value: void 0,
220
- icon: {
221
- type: import_yoga_icons.StarFilled,
222
- size: 12
223
- },
224
- max: 5,
225
- readOnly: true,
226
- onRate: (rating) => {
227
- },
228
- // eslint-disable-line no-unused-vars
229
- onMouseOver: () => {
230
- },
231
- onMouseMove: () => {
232
- },
233
- onMouseLeave: () => {
234
- }
235
- };
236
227
  var Rating_default = (0, import_styled_components.withTheme)(Rating);
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
9
  var __getProtoOf = Object.getPrototypeOf;
@@ -19,6 +21,19 @@ var __spreadValues = (a, b) => {
19
21
  }
20
22
  return a;
21
23
  };
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
+ };
22
37
  var __export = (target, all) => {
23
38
  for (var name in all)
24
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -96,8 +111,9 @@ const StyledSkeleton = import_styled_components.default.div`
96
111
  }
97
112
  `}
98
113
  `;
99
- function Skeleton(props) {
100
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSkeleton, __spreadValues({}, props));
114
+ function Skeleton(_a) {
115
+ var _b = _a, { animation = "pulse", color = "primary" } = _b, rest = __objRest(_b, ["animation", "color"]);
116
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSkeleton, __spreadProps(__spreadValues({}, rest), { animation, color }));
101
117
  }
102
118
  Skeleton.propTypes = {
103
119
  /**
@@ -148,9 +164,4 @@ Skeleton.propTypes = {
148
164
  */
149
165
  animation: (0, import_prop_types.oneOf)(["pulse", false])
150
166
  };
151
- Skeleton.defaultProps = {
152
- variant: void 0,
153
- animation: "pulse",
154
- color: "primary"
155
- };
156
167
  var Skeleton_default = Skeleton;
@@ -90,8 +90,19 @@ const Circle = (0, import_styled_components.default)(import_Handle.default)`
90
90
  0 0 0 8px ${(0, import_yoga_common.hexToRgb)(slider.marker.backgroundColor, 0.2)}` : slider.marker.shadow};
91
91
  `}
92
92
  `;
93
- const Marker = (_a) => {
94
- var _b = _a, { values, dragging, index, tooltip } = _b, props = __objRest(_b, ["values", "dragging", "index", "tooltip"]);
93
+ const defaultValues = [0];
94
+ function Marker(_a) {
95
+ var _b = _a, {
96
+ values = defaultValues,
97
+ dragging = false,
98
+ index = 0,
99
+ tooltip
100
+ } = _b, props = __objRest(_b, [
101
+ "values",
102
+ "dragging",
103
+ "index",
104
+ "tooltip"
105
+ ]);
95
106
  const renderTooltip = () => {
96
107
  if (!dragging) {
97
108
  return false;
@@ -104,7 +115,7 @@ const Marker = (_a) => {
104
115
  })[0];
105
116
  };
106
117
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Circle, __spreadProps(__spreadValues({ "data-dragging": Boolean(dragging) }, props), { children: dragging && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tooltip.default, { data: renderTooltip() }) }));
107
- };
118
+ }
108
119
  Marker.propTypes = {
109
120
  values: (0, import_prop_types.arrayOf)(import_prop_types.number),
110
121
  dragging: import_prop_types.bool,
@@ -119,10 +130,4 @@ Marker.propTypes = {
119
130
  })
120
131
  )
121
132
  };
122
- Marker.defaultProps = {
123
- values: [0],
124
- dragging: false,
125
- index: 0,
126
- tooltip: void 0
127
- };
128
133
  var Marker_default = Marker;
@@ -91,14 +91,16 @@ const StyledRange = (0, import_styled_components.default)(import_Range.default)`
91
91
  box-sizing: border-box;
92
92
  }
93
93
  `;
94
+ const emptyArr = [];
95
+ const defaultValues = [0];
94
96
  const Slider = (_a) => {
95
97
  var _b = _a, {
96
- snapped,
97
- tooltip,
98
- values,
99
- max,
98
+ snapped = false,
99
+ tooltip = emptyArr,
100
+ values = defaultValues,
101
+ max = 10,
100
102
  maxLabel,
101
- min,
103
+ min = 0,
102
104
  minLabel,
103
105
  theme: {
104
106
  yoga: {
@@ -245,14 +247,5 @@ Slider.propTypes = {
245
247
  /** an array that accepts one or two numbers, this determines how many markers will be displayed */
246
248
  values: (0, import_prop_types.arrayOf)(import_prop_types.number)
247
249
  };
248
- Slider.defaultProps = {
249
- max: 10,
250
- maxLabel: void 0,
251
- min: 0,
252
- minLabel: void 0,
253
- snapped: false,
254
- tooltip: [],
255
- values: [0]
256
- };
257
250
  Slider.displayName = "Slider";
258
251
  var Slider_default = (0, import_styled_components.withTheme)(Slider);
@@ -74,7 +74,7 @@ const Wrapper = import_styled_components.default.div`
74
74
  transform: translateX(-50%);
75
75
 
76
76
  ${({
77
- hasRibbon,
77
+ hasRibbon = false,
78
78
  theme: {
79
79
  yoga: {
80
80
  components: { slider }
@@ -89,9 +89,6 @@ const Wrapper = import_styled_components.default.div`
89
89
  Wrapper.propTypes = {
90
90
  hasRibbon: import_prop_types.bool
91
91
  };
92
- Wrapper.defaultProps = {
93
- hasRibbon: false
94
- };
95
92
  const Tip = import_styled_components.default.div`
96
93
  position: relative;
97
94
  z-index: 3;
@@ -189,8 +186,9 @@ const Description = (0, import_styled_components.default)(import_Text.default.Bo
189
186
  font-weight: ${slider.tooltip.font.description.weight};
190
187
  `}
191
188
  `;
192
- const Tooltip = (_a) => {
193
- var _b = _a, { data } = _b, props = __objRest(_b, ["data"]);
189
+ const emptyObj = {};
190
+ function Tooltip(_a) {
191
+ var _b = _a, { data = emptyObj } = _b, props = __objRest(_b, ["data"]);
194
192
  return Object.keys(data).length ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Wrapper, __spreadProps(__spreadValues({ hasRibbon: Boolean(data.ribbon) }, props), { children: [
195
193
  data.ribbon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ribbon, { as: "span", children: data.ribbon }),
196
194
  (data.title || data.description) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Tip, { children: [
@@ -199,7 +197,7 @@ const Tooltip = (_a) => {
199
197
  ] }),
200
198
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {})
201
199
  ] })) : null;
202
- };
200
+ }
203
201
  Tooltip.propTypes = {
204
202
  data: (0, import_prop_types.shape)({
205
203
  ribbon: import_prop_types.string,
@@ -207,7 +205,4 @@ Tooltip.propTypes = {
207
205
  description: import_prop_types.string
208
206
  })
209
207
  };
210
- Tooltip.defaultProps = {
211
- data: {}
212
- };
213
208
  var Tooltip_default = Tooltip;
@@ -120,22 +120,22 @@ const StyledSnackbar = import_styled_components.default.div`
120
120
  align-items: center;
121
121
  justify-content: space-between;
122
122
  box-sizing: border-box;
123
-
123
+
124
124
  position: fixed;
125
125
  bottom: ${snackbar.position.mobile.bottom}px;
126
126
  right: ${snackbar.position.mobile.right}px;
127
127
  left: ${snackbar.position.mobile.left}px;
128
-
128
+
129
129
  min-width: ${snackbar.minWidth.mobile}px;
130
130
  max-width: ${snackbar.maxWidth.default}px;
131
-
131
+
132
132
  min-height: ${snackbar.height.min}px;
133
133
  max-height: ${snackbar.height.max}px;
134
-
134
+
135
135
  padding: ${snackbar.padding.default}px;
136
-
136
+
137
137
  border-radius: ${snackbar.border.radius}px;
138
-
138
+
139
139
  box-shadow: ${snackbar.shadow.default};
140
140
 
141
141
  background-color: ${snackbar.variant.color[variant]};
@@ -165,17 +165,17 @@ const AnimatedSnackbar = (0, import_styled_components.default)(StyledSnackbar)`
165
165
  const Snackbar = import_react.default.forwardRef(
166
166
  (_a, ref) => {
167
167
  var _b = _a, {
168
- open,
168
+ open = false,
169
169
  duration,
170
- variant,
171
- hideIcon,
170
+ variant = "success",
171
+ hideIcon = false,
172
172
  message,
173
173
  actionLabel,
174
174
  onAction,
175
175
  onClose,
176
- hideCloseButton,
176
+ hideCloseButton = false,
177
177
  ariaLabelClose,
178
- dataTestId,
178
+ dataTestId = "snackbar",
179
179
  theme: {
180
180
  yoga: {
181
181
  components: { snackbar }
@@ -278,15 +278,4 @@ Snackbar.propTypes = {
278
278
  /* A unique identifier for the Snackbar component, used for testing purposes with tools like Jest and Testing Library. */
279
279
  dataTestId: import_prop_types.string
280
280
  };
281
- Snackbar.defaultProps = {
282
- open: false,
283
- duration: void 0,
284
- actionLabel: void 0,
285
- hideIcon: false,
286
- onAction: void 0,
287
- variant: "success",
288
- hideCloseButton: false,
289
- ariaLabelClose: void 0,
290
- dataTestId: "snackbar"
291
- };
292
281
  var Snackbar_default = (0, import_react.memo)((0, import_styled_components.withTheme)(Snackbar));
@@ -82,28 +82,30 @@ const StyledSpinner = import_styled_components.default.span`
82
82
  }
83
83
  `}
84
84
  `;
85
- const Spinner = import_react.default.forwardRef(({ size, color, theme }, ref) => {
86
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
- StyledSpinner,
88
- {
89
- color: (0, import_lodash.default)(theme.yoga.colors, color, color),
90
- size: (0, import_lodash.default)(theme.yoga.spacing, size, size),
91
- ref,
92
- "aria-label": "loading-icon",
93
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "spinner", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "circular", viewBox: "22 22 44 44", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
94
- "circle",
95
- {
96
- className: "path",
97
- fill: "none",
98
- strokeWidth: "3.6",
99
- cx: "44",
100
- cy: "44",
101
- r: "20.2"
102
- }
103
- ) }) })
104
- }
105
- );
106
- });
85
+ const Spinner = import_react.default.forwardRef(
86
+ ({ size = "medium", color = "primary", theme }, ref) => {
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ StyledSpinner,
89
+ {
90
+ color: (0, import_lodash.default)(theme.yoga.colors, color, color),
91
+ size: (0, import_lodash.default)(theme.yoga.spacing, size, size),
92
+ ref,
93
+ "aria-label": "loading-icon",
94
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "spinner", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "circular", viewBox: "22 22 44 44", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
95
+ "circle",
96
+ {
97
+ className: "path",
98
+ fill: "none",
99
+ strokeWidth: "3.6",
100
+ cx: "44",
101
+ cy: "44",
102
+ r: "20.2"
103
+ }
104
+ ) }) })
105
+ }
106
+ );
107
+ }
108
+ );
107
109
  const commonSizes = [
108
110
  "xxxsmall",
109
111
  "xxsmall",
@@ -121,8 +123,4 @@ Spinner.propTypes = {
121
123
  size: (0, import_prop_types.oneOfType)([(0, import_prop_types.oneOf)(commonSizes), import_prop_types.string, import_prop_types.number]),
122
124
  color: import_prop_types.string
123
125
  };
124
- Spinner.defaultProps = {
125
- size: "medium",
126
- color: "primary"
127
- };
128
126
  var Spinner_default = (0, import_styled_components.withTheme)(Spinner);
@@ -94,7 +94,8 @@ const Wrapper = import_styled_components.default.div`
94
94
  display: flex;
95
95
  justify-content: space-between;
96
96
  `;
97
- function Dots({ activeStep, labels, secondary }) {
97
+ const emptyArr = [];
98
+ function Dots({ activeStep = 0, labels = emptyArr, secondary = false }) {
98
99
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrapper, { children: labels.map((label, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
99
100
  DotWrapper,
100
101
  {
@@ -113,9 +114,4 @@ Dots.propTypes = {
113
114
  labels: (0, import_prop_types.arrayOf)(import_prop_types.string),
114
115
  secondary: import_prop_types.bool
115
116
  };
116
- Dots.defaultProps = {
117
- activeStep: 0,
118
- labels: [],
119
- secondary: false
120
- };
121
117
  var Dots_default = Dots;
@@ -63,8 +63,4 @@ Line.propTypes = {
63
63
  activeStep: import_prop_types.number,
64
64
  totalSteps: import_prop_types.number
65
65
  };
66
- Line.defaultProps = {
67
- activeStep: 0,
68
- totalSteps: 0
69
- };
70
66
  var Line_default = Line;