@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.
- package/cjs/Accordion/web/Accordion.js +4 -12
- package/cjs/Accordion/web/Small.js +0 -1
- package/cjs/ActionRequirement/web/ActionRequirement.js +1 -8
- package/cjs/AutoComplete/web/AutoComplete.js +11 -25
- package/cjs/Avatar/web/Avatar.js +15 -14
- package/cjs/Avatar/web/AvatarCircle.js +0 -1
- package/cjs/Banner/web/Banner.js +13 -7
- package/cjs/Button/web/Button.js +10 -22
- package/cjs/Button/web/Icon.js +9 -11
- package/cjs/Button/web/Link.js +10 -8
- package/cjs/Button/web/Text.js +1 -5
- package/cjs/Card/web/Card/Card.js +15 -17
- package/cjs/Card/web/PlanCard/Content.js +9 -20
- package/cjs/Card/web/PlanCard/List.js +3 -9
- package/cjs/Card/web/PlanCard/PlanCard.js +1 -6
- package/cjs/Checkbox/web/Checkbox.js +4 -17
- package/cjs/Checkbox/web/Switch.js +13 -9
- package/cjs/Chips/web/Chips.js +6 -14
- package/cjs/Datepicker/web/Calendar.js +4 -14
- package/cjs/Datepicker/web/Datepicker.js +5 -22
- package/cjs/Dialog/web/Dialog.js +3 -12
- package/cjs/Divider/web/Divider.js +6 -8
- package/cjs/Drawer/web/Drawer.js +16 -4
- package/cjs/Dropdown/web/Dropdown.js +20 -11
- package/cjs/Feedback/web/Feedback.js +13 -6
- package/cjs/Grid/web/Col.js +0 -19
- package/cjs/Grid/web/Hide.js +19 -1
- package/cjs/Header/web/Header.js +1 -6
- package/cjs/Header/web/Logo.js +1 -4
- package/cjs/Heading/web/Heading.js +1 -6
- package/cjs/Icon/Icon.js +1 -11
- package/cjs/Input/web/Helper.js +0 -9
- package/cjs/Input/web/Input.js +12 -36
- package/cjs/Input/web/Password.js +2 -10
- package/cjs/Input/web/Phone.js +24 -27
- package/cjs/Input/web/Phone.test.js +15 -0
- package/cjs/List/web/List.js +6 -8
- package/cjs/Menu/web/Menu.js +1 -4
- package/cjs/Menu/web/MenuItem.js +2 -10
- package/cjs/Menu/web/MenuList.js +8 -8
- package/cjs/Popover/web/Popover.js +5 -14
- package/cjs/Progress/web/Progress.js +6 -15
- package/cjs/RadioGroup/web/Button/RadioButton.js +4 -7
- package/cjs/RadioGroup/web/Radio/Radio.js +12 -17
- package/cjs/RadioGroup/web/RadioGroup.js +10 -17
- package/cjs/Rating/web/Rating.js +16 -25
- package/cjs/Skeleton/web/Skeleton.js +18 -7
- package/cjs/Slider/web/Marker.js +14 -9
- package/cjs/Slider/web/Slider.js +7 -14
- package/cjs/Slider/web/Tooltip.js +5 -10
- package/cjs/Snackbar/web/Snackbar.js +11 -22
- package/cjs/Spinner/web/Spinner.js +24 -26
- package/cjs/Stepper/web/Dots.js +2 -6
- package/cjs/Stepper/web/Line.js +0 -4
- package/cjs/Stepper/web/Stepper.js +1 -6
- package/cjs/Tag/web/Informative.js +3 -9
- package/cjs/Tag/web/Tag.js +11 -6
- package/cjs/Text/web/Text.js +37 -10
- package/cjs/TextArea/web/TextArea.js +11 -21
- package/cjs/Theme/Provider/Provider.js +1 -4
- package/esm/Accordion/web/Accordion.js +4 -12
- package/esm/Accordion/web/Small.js +0 -1
- package/esm/ActionRequirement/web/ActionRequirement.js +1 -8
- package/esm/AutoComplete/web/AutoComplete.js +11 -25
- package/esm/Avatar/web/Avatar.js +15 -14
- package/esm/Avatar/web/AvatarCircle.js +0 -1
- package/esm/Banner/web/Banner.js +13 -7
- package/esm/Button/web/Button.js +10 -22
- package/esm/Button/web/Icon.js +9 -11
- package/esm/Button/web/Link.js +10 -8
- package/esm/Button/web/Text.js +1 -5
- package/esm/Card/web/Card/Card.js +15 -17
- package/esm/Card/web/PlanCard/Content.js +9 -20
- package/esm/Card/web/PlanCard/List.js +3 -9
- package/esm/Card/web/PlanCard/PlanCard.js +1 -6
- package/esm/Checkbox/web/Checkbox.js +4 -17
- package/esm/Checkbox/web/Switch.js +13 -9
- package/esm/Chips/web/Chips.js +6 -14
- package/esm/Datepicker/web/Calendar.js +4 -14
- package/esm/Datepicker/web/Datepicker.js +5 -22
- package/esm/Dialog/web/Dialog.js +3 -12
- package/esm/Divider/web/Divider.js +6 -8
- package/esm/Drawer/web/Drawer.js +16 -4
- package/esm/Dropdown/web/Dropdown.js +20 -11
- package/esm/Feedback/web/Feedback.js +13 -6
- package/esm/Grid/web/Col.js +0 -19
- package/esm/Grid/web/Hide.js +19 -1
- package/esm/Header/web/Header.js +1 -6
- package/esm/Header/web/Logo.js +1 -4
- package/esm/Heading/web/Heading.js +1 -6
- package/esm/Icon/Icon.js +1 -11
- package/esm/Input/web/Helper.js +0 -9
- package/esm/Input/web/Input.js +12 -36
- package/esm/Input/web/Password.js +2 -10
- package/esm/Input/web/Phone.js +24 -27
- package/esm/Input/web/Phone.test.js +15 -0
- package/esm/List/web/List.js +6 -8
- package/esm/Menu/web/Menu.js +1 -4
- package/esm/Menu/web/MenuItem.js +2 -10
- package/esm/Menu/web/MenuList.js +8 -8
- package/esm/Popover/web/Popover.js +5 -14
- package/esm/Progress/web/Progress.js +6 -15
- package/esm/RadioGroup/web/Button/RadioButton.js +4 -7
- package/esm/RadioGroup/web/Radio/Radio.js +12 -17
- package/esm/RadioGroup/web/RadioGroup.js +10 -17
- package/esm/Rating/web/Rating.js +16 -25
- package/esm/Skeleton/web/Skeleton.js +18 -7
- package/esm/Slider/web/Marker.js +14 -9
- package/esm/Slider/web/Slider.js +7 -14
- package/esm/Slider/web/Tooltip.js +5 -10
- package/esm/Snackbar/web/Snackbar.js +11 -22
- package/esm/Spinner/web/Spinner.js +24 -26
- package/esm/Stepper/web/Dots.js +2 -6
- package/esm/Stepper/web/Line.js +0 -4
- package/esm/Stepper/web/Stepper.js +1 -6
- package/esm/Tag/web/Informative.js +3 -9
- package/esm/Tag/web/Tag.js +11 -6
- package/esm/Text/web/Text.js +37 -10
- package/esm/TextArea/web/TextArea.js +11 -21
- package/esm/Theme/Provider/Provider.js +1 -4
- package/package.json +2 -2
- package/typings/NavigationMenu/web/Item/styles.d.ts +3 -8
- package/typings/index.d.ts +40 -138
|
@@ -99,15 +99,15 @@ const EnhancePrice = styled(Text.Medium)`
|
|
|
99
99
|
const PlanCardContent = (_a) => {
|
|
100
100
|
var _b = _a, {
|
|
101
101
|
title,
|
|
102
|
-
badgeColor,
|
|
103
|
-
subtitle,
|
|
104
|
-
description,
|
|
105
|
-
currency,
|
|
106
|
-
suffix,
|
|
107
|
-
price,
|
|
108
|
-
period,
|
|
109
|
-
extra,
|
|
110
|
-
children
|
|
102
|
+
badgeColor = null,
|
|
103
|
+
subtitle = null,
|
|
104
|
+
description = null,
|
|
105
|
+
currency = null,
|
|
106
|
+
suffix = null,
|
|
107
|
+
price = null,
|
|
108
|
+
period = null,
|
|
109
|
+
extra = null,
|
|
110
|
+
children = null
|
|
111
111
|
} = _b, rest = __objRest(_b, [
|
|
112
112
|
"title",
|
|
113
113
|
"badgeColor",
|
|
@@ -152,17 +152,6 @@ PlanCardContent.propTypes = {
|
|
|
152
152
|
/** color of the badge attached to the title */
|
|
153
153
|
badgeColor: string
|
|
154
154
|
};
|
|
155
|
-
PlanCardContent.defaultProps = {
|
|
156
|
-
children: null,
|
|
157
|
-
description: null,
|
|
158
|
-
subtitle: null,
|
|
159
|
-
currency: null,
|
|
160
|
-
suffix: null,
|
|
161
|
-
price: null,
|
|
162
|
-
period: null,
|
|
163
|
-
extra: null,
|
|
164
|
-
badgeColor: null
|
|
165
|
-
};
|
|
166
155
|
PlanCardContent.displayName = "PlanCard.Content";
|
|
167
156
|
var Content_default = PlanCardContent;
|
|
168
157
|
export {
|
|
@@ -97,12 +97,13 @@ const Button = styled.button`
|
|
|
97
97
|
|
|
98
98
|
${truncateStyle}
|
|
99
99
|
`;
|
|
100
|
+
const emptyObj = {};
|
|
100
101
|
const ListItem = withTheme((props) => {
|
|
101
102
|
const {
|
|
102
103
|
text,
|
|
103
|
-
truncate,
|
|
104
|
+
truncate = true,
|
|
104
105
|
icon: Icon,
|
|
105
|
-
buttonProps,
|
|
106
|
+
buttonProps = emptyObj,
|
|
106
107
|
theme: yogaTheme,
|
|
107
108
|
children,
|
|
108
109
|
onClick
|
|
@@ -141,13 +142,6 @@ ListItem.propTypes = {
|
|
|
141
142
|
children: node,
|
|
142
143
|
truncate: bool
|
|
143
144
|
};
|
|
144
|
-
ListItem.defaultProps = {
|
|
145
|
-
truncate: true,
|
|
146
|
-
icon: void 0,
|
|
147
|
-
buttonProps: {},
|
|
148
|
-
onClick: void 0,
|
|
149
|
-
children: void 0
|
|
150
|
-
};
|
|
151
145
|
export {
|
|
152
146
|
List,
|
|
153
147
|
ListItem
|
|
@@ -135,7 +135,7 @@ const DiscountWrapper = styled(Box).attrs({
|
|
|
135
135
|
}}
|
|
136
136
|
`;
|
|
137
137
|
function PlanCard(_a) {
|
|
138
|
-
var _b = _a, { children, discount, variant } = _b, rest = __objRest(_b, ["children", "discount", "variant"]);
|
|
138
|
+
var _b = _a, { children, discount, variant = "deepPurple" } = _b, rest = __objRest(_b, ["children", "discount", "variant"]);
|
|
139
139
|
const hasDiscount = !!discount;
|
|
140
140
|
return /* @__PURE__ */ jsxs(Plan, __spreadProps(__spreadValues({}, rest), { children: [
|
|
141
141
|
hasDiscount && /* @__PURE__ */ jsx(DiscountWrapper, { bg: variant, children: /* @__PURE__ */ jsx(Text.Tiny, { color: "white", fontWeight: "medium", children: discount }) }),
|
|
@@ -148,11 +148,6 @@ PlanCard.propTypes = {
|
|
|
148
148
|
discount: string,
|
|
149
149
|
variant: string
|
|
150
150
|
};
|
|
151
|
-
PlanCard.defaultProps = {
|
|
152
|
-
children: void 0,
|
|
153
|
-
discount: void 0,
|
|
154
|
-
variant: "deepPurple"
|
|
155
|
-
};
|
|
156
151
|
PlanCard.displayName = "PlanCard";
|
|
157
152
|
var PlanCard_default = PlanCard;
|
|
158
153
|
export {
|
|
@@ -252,13 +252,13 @@ const Checkbox = (_a) => {
|
|
|
252
252
|
value,
|
|
253
253
|
label,
|
|
254
254
|
helper,
|
|
255
|
-
disabled,
|
|
256
|
-
checked,
|
|
255
|
+
disabled = false,
|
|
256
|
+
checked = false,
|
|
257
257
|
error,
|
|
258
258
|
style,
|
|
259
259
|
className,
|
|
260
|
-
inverted,
|
|
261
|
-
indeterminate,
|
|
260
|
+
inverted = false,
|
|
261
|
+
indeterminate = false,
|
|
262
262
|
ariaLabel,
|
|
263
263
|
theme: {
|
|
264
264
|
yoga: {
|
|
@@ -361,19 +361,6 @@ Checkbox.propTypes = {
|
|
|
361
361
|
className: string,
|
|
362
362
|
ariaLabel: string
|
|
363
363
|
};
|
|
364
|
-
Checkbox.defaultProps = {
|
|
365
|
-
label: void 0,
|
|
366
|
-
value: void 0,
|
|
367
|
-
helper: void 0,
|
|
368
|
-
checked: false,
|
|
369
|
-
disabled: false,
|
|
370
|
-
inverted: false,
|
|
371
|
-
indeterminate: false,
|
|
372
|
-
error: void 0,
|
|
373
|
-
style: void 0,
|
|
374
|
-
className: void 0,
|
|
375
|
-
ariaLabel: void 0
|
|
376
|
-
};
|
|
377
364
|
Checkbox.displayName = "Checkbox";
|
|
378
365
|
var Checkbox_default = withTheme(Checkbox);
|
|
379
366
|
export {
|
|
@@ -135,8 +135,18 @@ const SwitchThumb = styled.span`
|
|
|
135
135
|
`}
|
|
136
136
|
`};
|
|
137
137
|
`;
|
|
138
|
-
const
|
|
139
|
-
|
|
138
|
+
const noop = () => {
|
|
139
|
+
};
|
|
140
|
+
function CheckboxSwitch(_a) {
|
|
141
|
+
var _b = _a, {
|
|
142
|
+
checked = false,
|
|
143
|
+
disabled = false,
|
|
144
|
+
onChange = noop
|
|
145
|
+
} = _b, rest = __objRest(_b, [
|
|
146
|
+
"checked",
|
|
147
|
+
"disabled",
|
|
148
|
+
"onChange"
|
|
149
|
+
]);
|
|
140
150
|
return /* @__PURE__ */ jsxs(SwitchTrack, __spreadProps(__spreadValues({ checked, disabled }, rest), { children: [
|
|
141
151
|
/* @__PURE__ */ jsx(
|
|
142
152
|
SwitchInput,
|
|
@@ -152,18 +162,12 @@ const CheckboxSwitch = (_a) => {
|
|
|
152
162
|
),
|
|
153
163
|
/* @__PURE__ */ jsx(SwitchThumb, { role: "button", checked, disabled })
|
|
154
164
|
] }));
|
|
155
|
-
}
|
|
165
|
+
}
|
|
156
166
|
CheckboxSwitch.propTypes = {
|
|
157
167
|
checked: bool,
|
|
158
168
|
disabled: bool,
|
|
159
169
|
onChange: func
|
|
160
170
|
};
|
|
161
|
-
CheckboxSwitch.defaultProps = {
|
|
162
|
-
checked: false,
|
|
163
|
-
disabled: false,
|
|
164
|
-
onChange: () => {
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
171
|
CheckboxSwitch.displayName = "Checkbox.Switch";
|
|
168
172
|
var Switch_default = CheckboxSwitch;
|
|
169
173
|
export {
|
package/esm/Chips/web/Chips.js
CHANGED
|
@@ -91,9 +91,9 @@ const Wrapper = styled.button`
|
|
|
91
91
|
p {
|
|
92
92
|
color: ${colors.white};
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
background-color: ${colors.secondary};
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
|
|
98
98
|
border-color: transparent;
|
|
99
99
|
|
|
@@ -136,14 +136,15 @@ const Wrapper = styled.button`
|
|
|
136
136
|
`;
|
|
137
137
|
}}
|
|
138
138
|
`;
|
|
139
|
+
const emptyArr = [];
|
|
139
140
|
const Chips = React.forwardRef(
|
|
140
141
|
(_c, ref) => {
|
|
141
142
|
var _d = _c, {
|
|
142
143
|
children,
|
|
143
|
-
selected,
|
|
144
|
+
selected = false,
|
|
144
145
|
counter,
|
|
145
|
-
icons,
|
|
146
|
-
disabled,
|
|
146
|
+
icons = emptyArr,
|
|
147
|
+
disabled = false,
|
|
147
148
|
onToggle,
|
|
148
149
|
onClick = onToggle,
|
|
149
150
|
theme: {
|
|
@@ -220,15 +221,6 @@ Chips.propTypes = {
|
|
|
220
221
|
onToggle: func,
|
|
221
222
|
onClick: func
|
|
222
223
|
};
|
|
223
|
-
Chips.defaultProps = {
|
|
224
|
-
children: void 0,
|
|
225
|
-
selected: false,
|
|
226
|
-
disabled: false,
|
|
227
|
-
counter: void 0,
|
|
228
|
-
icons: [],
|
|
229
|
-
onToggle: void 0,
|
|
230
|
-
onClick: void 0
|
|
231
|
-
};
|
|
232
224
|
var Chips_default = withTheme(Chips);
|
|
233
225
|
export {
|
|
234
226
|
Chips_default as default
|
|
@@ -153,10 +153,10 @@ function Calendar({
|
|
|
153
153
|
type,
|
|
154
154
|
startDate,
|
|
155
155
|
endDate,
|
|
156
|
-
onSelectSingle,
|
|
157
|
-
onSelectRange,
|
|
158
|
-
disablePastDates,
|
|
159
|
-
disableFutureDates,
|
|
156
|
+
onSelectSingle = null,
|
|
157
|
+
onSelectRange = null,
|
|
158
|
+
disablePastDates = false,
|
|
159
|
+
disableFutureDates = false,
|
|
160
160
|
disablePastFrom,
|
|
161
161
|
disableFutureFrom
|
|
162
162
|
}) {
|
|
@@ -365,16 +365,6 @@ Calendar.propTypes = {
|
|
|
365
365
|
disablePastFrom: instanceOf(Date),
|
|
366
366
|
disableFutureFrom: instanceOf(Date)
|
|
367
367
|
};
|
|
368
|
-
Calendar.defaultProps = {
|
|
369
|
-
startDate: void 0,
|
|
370
|
-
endDate: void 0,
|
|
371
|
-
onSelectSingle: null,
|
|
372
|
-
onSelectRange: null,
|
|
373
|
-
disablePastDates: false,
|
|
374
|
-
disableFutureDates: false,
|
|
375
|
-
disablePastFrom: void 0,
|
|
376
|
-
disableFutureFrom: void 0
|
|
377
|
-
};
|
|
378
368
|
var Calendar_default = Calendar;
|
|
379
369
|
export {
|
|
380
370
|
Calendar_default as default
|
|
@@ -183,22 +183,22 @@ const toUTC = (date) => {
|
|
|
183
183
|
};
|
|
184
184
|
function Datepicker(_c) {
|
|
185
185
|
var _d = _c, {
|
|
186
|
-
fullWidth,
|
|
186
|
+
fullWidth = false,
|
|
187
187
|
type,
|
|
188
188
|
placeholder,
|
|
189
189
|
startDate,
|
|
190
190
|
endDate,
|
|
191
191
|
onSelectSingle,
|
|
192
|
-
disabled,
|
|
192
|
+
disabled = false,
|
|
193
193
|
onSelectRange,
|
|
194
194
|
customOnSelectRange,
|
|
195
|
-
disablePastDates,
|
|
196
|
-
disableFutureDates,
|
|
195
|
+
disablePastDates = false,
|
|
196
|
+
disableFutureDates = false,
|
|
197
197
|
disablePastFrom,
|
|
198
198
|
disableFutureFrom,
|
|
199
199
|
error,
|
|
200
200
|
onOpen,
|
|
201
|
-
displayEndDateOnly
|
|
201
|
+
displayEndDateOnly = false
|
|
202
202
|
} = _d, props = __objRest(_d, [
|
|
203
203
|
"fullWidth",
|
|
204
204
|
"type",
|
|
@@ -357,23 +357,6 @@ Datepicker.propTypes = {
|
|
|
357
357
|
onOpen: func,
|
|
358
358
|
displayEndDateOnly: bool
|
|
359
359
|
};
|
|
360
|
-
Datepicker.defaultProps = {
|
|
361
|
-
fullWidth: false,
|
|
362
|
-
placeholder: void 0,
|
|
363
|
-
startDate: void 0,
|
|
364
|
-
endDate: void 0,
|
|
365
|
-
disabled: false,
|
|
366
|
-
onSelectSingle: void 0,
|
|
367
|
-
onSelectRange: void 0,
|
|
368
|
-
customOnSelectRange: void 0,
|
|
369
|
-
disablePastDates: false,
|
|
370
|
-
disableFutureDates: false,
|
|
371
|
-
disablePastFrom: void 0,
|
|
372
|
-
disableFutureFrom: void 0,
|
|
373
|
-
error: void 0,
|
|
374
|
-
onOpen: void 0,
|
|
375
|
-
displayEndDateOnly: false
|
|
376
|
-
};
|
|
377
360
|
var Datepicker_default = Datepicker;
|
|
378
361
|
export {
|
|
379
362
|
Datepicker_default as default,
|
package/esm/Dialog/web/Dialog.js
CHANGED
|
@@ -104,12 +104,12 @@ const CloseButton = styled(Button.Icon)`
|
|
|
104
104
|
const Dialog = React.forwardRef(
|
|
105
105
|
(_a, forwardedRef) => {
|
|
106
106
|
var _b = _a, {
|
|
107
|
-
isOpen,
|
|
108
|
-
hideCloseButton,
|
|
107
|
+
isOpen = false,
|
|
108
|
+
hideCloseButton = false,
|
|
109
109
|
children,
|
|
110
110
|
dialogId,
|
|
111
111
|
onClose,
|
|
112
|
-
zIndex,
|
|
112
|
+
zIndex = 3,
|
|
113
113
|
closeLabel,
|
|
114
114
|
className
|
|
115
115
|
} = _b, props = __objRest(_b, [
|
|
@@ -204,15 +204,6 @@ Dialog.propTypes = {
|
|
|
204
204
|
zIndex: number,
|
|
205
205
|
children: node.isRequired
|
|
206
206
|
};
|
|
207
|
-
Dialog.defaultProps = {
|
|
208
|
-
isOpen: false,
|
|
209
|
-
hideCloseButton: false,
|
|
210
|
-
onClose: void 0,
|
|
211
|
-
closeLabel: void 0,
|
|
212
|
-
className: void 0,
|
|
213
|
-
zIndex: 3,
|
|
214
|
-
dialogId: void 0
|
|
215
|
-
};
|
|
216
207
|
Dialog.displayName = "Dialog";
|
|
217
208
|
var Dialog_default = Dialog;
|
|
218
209
|
export {
|
|
@@ -47,19 +47,17 @@ const StyledDivider = styled.hr`
|
|
|
47
47
|
`;
|
|
48
48
|
}}
|
|
49
49
|
`;
|
|
50
|
-
const Divider = React.forwardRef(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
50
|
+
const Divider = React.forwardRef(
|
|
51
|
+
(_a, ref) => {
|
|
52
|
+
var _b = _a, { vertical = false, style } = _b, props = __objRest(_b, ["vertical", "style"]);
|
|
53
|
+
return /* @__PURE__ */ jsx(StyledDivider, __spreadValues({ vertical, ref, style }, props));
|
|
54
|
+
}
|
|
55
|
+
);
|
|
54
56
|
Divider.propTypes = {
|
|
55
57
|
/** If this value is defined, the divider will be in vertical if the flexDirection is row type */
|
|
56
58
|
vertical: bool,
|
|
57
59
|
style: shape({})
|
|
58
60
|
};
|
|
59
|
-
Divider.defaultProps = {
|
|
60
|
-
vertical: false,
|
|
61
|
-
style: void 0
|
|
62
|
-
};
|
|
63
61
|
var Divider_default = withTheme(Divider);
|
|
64
62
|
export {
|
|
65
63
|
Divider_default as default
|
package/esm/Drawer/web/Drawer.js
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
import { jsx } from "react/jsx-runtime";
|
|
21
33
|
import React from "react";
|
|
22
34
|
import styled from "styled-components";
|
|
@@ -48,14 +60,14 @@ const StyledDrawer = styled(Dialog)`
|
|
|
48
60
|
}
|
|
49
61
|
}
|
|
50
62
|
`;
|
|
51
|
-
const Drawer = React.forwardRef((
|
|
63
|
+
const Drawer = React.forwardRef((_a, forwardedRef) => {
|
|
64
|
+
var _b = _a, { zIndex = 3 } = _b, rest = __objRest(_b, ["zIndex"]);
|
|
65
|
+
return /* @__PURE__ */ jsx(StyledDrawer, __spreadProps(__spreadValues({}, rest), { zIndex, ref: forwardedRef }));
|
|
66
|
+
});
|
|
52
67
|
Drawer.propTypes = {
|
|
53
68
|
children: node.isRequired,
|
|
54
69
|
zIndex: number
|
|
55
70
|
};
|
|
56
|
-
Drawer.defaultProps = {
|
|
57
|
-
zIndex: 3
|
|
58
|
-
};
|
|
59
71
|
var Drawer_default = Drawer;
|
|
60
72
|
export {
|
|
61
73
|
Drawer_default as default
|
|
@@ -57,7 +57,7 @@ const Wrapper = styled.div`
|
|
|
57
57
|
position: relative;
|
|
58
58
|
display: inline-block;
|
|
59
59
|
vertical-align: top;
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
width: ${full ? "100%" : `${dropdown.width}px`};
|
|
62
62
|
`}
|
|
63
63
|
`;
|
|
@@ -255,9 +255,27 @@ const ArrowIcon = styled((_a) => {
|
|
|
255
255
|
transform: rotate(${isOpen ? "180deg" : "0"});
|
|
256
256
|
`}
|
|
257
257
|
`;
|
|
258
|
+
const noop = () => {
|
|
259
|
+
};
|
|
258
260
|
const Dropdown = React.forwardRef(
|
|
259
261
|
(_c, ref) => {
|
|
260
|
-
var _d = _c, {
|
|
262
|
+
var _d = _c, {
|
|
263
|
+
error,
|
|
264
|
+
label = "",
|
|
265
|
+
disabled = false,
|
|
266
|
+
full = false,
|
|
267
|
+
options,
|
|
268
|
+
onChange = noop,
|
|
269
|
+
isMaxHeight = true
|
|
270
|
+
} = _d, rest = __objRest(_d, [
|
|
271
|
+
"error",
|
|
272
|
+
"label",
|
|
273
|
+
"disabled",
|
|
274
|
+
"full",
|
|
275
|
+
"options",
|
|
276
|
+
"onChange",
|
|
277
|
+
"isMaxHeight"
|
|
278
|
+
]);
|
|
261
279
|
const inputRef = ref || React.useRef(null);
|
|
262
280
|
const selectedOption = options.find((item) => item.selected === true);
|
|
263
281
|
const [localSelectedItem, setLocalSelectedItem] = useState(selectedOption);
|
|
@@ -370,15 +388,6 @@ Dropdown.propTypes = {
|
|
|
370
388
|
onChange: func,
|
|
371
389
|
isMaxHeight: bool
|
|
372
390
|
};
|
|
373
|
-
Dropdown.defaultProps = {
|
|
374
|
-
label: "",
|
|
375
|
-
error: void 0,
|
|
376
|
-
full: false,
|
|
377
|
-
disabled: false,
|
|
378
|
-
onChange: () => {
|
|
379
|
-
},
|
|
380
|
-
isMaxHeight: true
|
|
381
|
-
};
|
|
382
391
|
var Dropdown_default = Dropdown;
|
|
383
392
|
export {
|
|
384
393
|
Dropdown_default as default
|
|
@@ -64,7 +64,19 @@ function isChildFromComponent(child, component) {
|
|
|
64
64
|
return child.type.displayName === component.displayName;
|
|
65
65
|
}
|
|
66
66
|
function Feedback(_a) {
|
|
67
|
-
var _b = _a, {
|
|
67
|
+
var _b = _a, {
|
|
68
|
+
variant,
|
|
69
|
+
title,
|
|
70
|
+
description,
|
|
71
|
+
children,
|
|
72
|
+
center = true
|
|
73
|
+
} = _b, props = __objRest(_b, [
|
|
74
|
+
"variant",
|
|
75
|
+
"title",
|
|
76
|
+
"description",
|
|
77
|
+
"children",
|
|
78
|
+
"center"
|
|
79
|
+
]);
|
|
68
80
|
const iconProps = VARIANT_ICONS[variant];
|
|
69
81
|
let primaryButton;
|
|
70
82
|
let secondaryButton;
|
|
@@ -125,11 +137,6 @@ Feedback.propTypes = {
|
|
|
125
137
|
/** Center the component vertically */
|
|
126
138
|
center: bool
|
|
127
139
|
};
|
|
128
|
-
Feedback.defaultProps = {
|
|
129
|
-
title: void 0,
|
|
130
|
-
children: void 0,
|
|
131
|
-
center: true
|
|
132
|
-
};
|
|
133
140
|
var Feedback_default = Feedback;
|
|
134
141
|
export {
|
|
135
142
|
Feedback_default as default
|
package/esm/Grid/web/Col.js
CHANGED
|
@@ -47,25 +47,6 @@ Col.propTypes = {
|
|
|
47
47
|
"xxl-start": number,
|
|
48
48
|
"xxxl-start": number
|
|
49
49
|
};
|
|
50
|
-
Col.defaultProps = {
|
|
51
|
-
hide: void 0,
|
|
52
|
-
xxs: void 0,
|
|
53
|
-
xs: void 0,
|
|
54
|
-
sm: void 0,
|
|
55
|
-
md: void 0,
|
|
56
|
-
lg: void 0,
|
|
57
|
-
xl: void 0,
|
|
58
|
-
xxl: void 0,
|
|
59
|
-
xxxl: void 0,
|
|
60
|
-
"xxs-start": void 0,
|
|
61
|
-
"xs-start": void 0,
|
|
62
|
-
"sm-start": void 0,
|
|
63
|
-
"md-start": void 0,
|
|
64
|
-
"lg-start": void 0,
|
|
65
|
-
"xl-start": void 0,
|
|
66
|
-
"xxl-start": void 0,
|
|
67
|
-
"xxxl-start": void 0
|
|
68
|
-
};
|
|
69
50
|
var Col_default = Col;
|
|
70
51
|
export {
|
|
71
52
|
Col_default as default
|
package/esm/Grid/web/Hide.js
CHANGED
|
@@ -3,8 +3,26 @@ import styled from "styled-components";
|
|
|
3
3
|
import tokens from "@gympass/yoga-tokens";
|
|
4
4
|
import { media } from "@gympass/yoga-helpers";
|
|
5
5
|
const { breakpoints } = tokens;
|
|
6
|
+
const defaultProps = {
|
|
7
|
+
xxs: void 0,
|
|
8
|
+
xs: void 0,
|
|
9
|
+
sm: void 0,
|
|
10
|
+
md: void 0,
|
|
11
|
+
lg: void 0,
|
|
12
|
+
xl: void 0,
|
|
13
|
+
xxl: void 0,
|
|
14
|
+
xxxl: void 0,
|
|
15
|
+
"xxs-start": void 0,
|
|
16
|
+
"xs-start": void 0,
|
|
17
|
+
"sm-start": void 0,
|
|
18
|
+
"md-start": void 0,
|
|
19
|
+
"lg-start": void 0,
|
|
20
|
+
"xl-start": void 0,
|
|
21
|
+
"xxl-start": void 0,
|
|
22
|
+
"xxxl-start": void 0
|
|
23
|
+
};
|
|
6
24
|
const Hide = styled.div`
|
|
7
|
-
${(props) => Object.keys(props).filter((prop) => props[prop] && Object.keys(breakpoints).includes(prop)).map((breakpoint) => media.hide[breakpoint])}
|
|
25
|
+
${(props = defaultProps) => Object.keys(props).filter((prop) => props[prop] && Object.keys(breakpoints).includes(prop)).map((breakpoint) => media.hide[breakpoint])}
|
|
8
26
|
|
|
9
27
|
${(props) => Object.keys(props).filter((prop) => props[`${prop}-start`]).map((breakpoint) => media.hide[`${breakpoint}-start`])}
|
|
10
28
|
`;
|
package/esm/Header/web/Header.js
CHANGED
|
@@ -54,7 +54,7 @@ const StyledHeader = styled(Box)`
|
|
|
54
54
|
`}
|
|
55
55
|
`;
|
|
56
56
|
const Header = (_a) => {
|
|
57
|
-
var _b = _a, { link, logo, children } = _b, props = __objRest(_b, ["link", "logo", "children"]);
|
|
57
|
+
var _b = _a, { link = null, logo = null, children = null } = _b, props = __objRest(_b, ["link", "logo", "children"]);
|
|
58
58
|
return /* @__PURE__ */ jsxs(
|
|
59
59
|
StyledHeader,
|
|
60
60
|
__spreadProps(__spreadValues({
|
|
@@ -80,11 +80,6 @@ Header.propTypes = {
|
|
|
80
80
|
/** Use logo to change headers image */
|
|
81
81
|
logo: elementType
|
|
82
82
|
};
|
|
83
|
-
Header.defaultProps = {
|
|
84
|
-
link: null,
|
|
85
|
-
children: null,
|
|
86
|
-
logo: null
|
|
87
|
-
};
|
|
88
83
|
var Header_default = Header;
|
|
89
84
|
export {
|
|
90
85
|
Header_default as default
|
package/esm/Header/web/Logo.js
CHANGED
|
@@ -2,13 +2,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { elementType } from "prop-types";
|
|
4
4
|
import GympassLogo from "./GympassLogo";
|
|
5
|
-
const Logo = ({ customLogo: CustomLogo }) => CustomLogo ? /* @__PURE__ */ jsx(CustomLogo, {}) : /* @__PURE__ */ jsx(GympassLogo, {});
|
|
5
|
+
const Logo = ({ customLogo: CustomLogo = null }) => CustomLogo ? /* @__PURE__ */ jsx(CustomLogo, {}) : /* @__PURE__ */ jsx(GympassLogo, {});
|
|
6
6
|
Logo.propTypes = {
|
|
7
7
|
customLogo: elementType
|
|
8
8
|
};
|
|
9
|
-
Logo.defaultProps = {
|
|
10
|
-
customLogo: null
|
|
11
|
-
};
|
|
12
9
|
var Logo_default = Logo;
|
|
13
10
|
export {
|
|
14
11
|
Logo_default as default
|
|
@@ -38,7 +38,7 @@ import Title from "./Title";
|
|
|
38
38
|
import BackButton from "./BackButton";
|
|
39
39
|
import RightButton from "./RightButton";
|
|
40
40
|
const Heading = (_a) => {
|
|
41
|
-
var _b = _a, { children, noPadding } = _b, props = __objRest(_b, ["children", "noPadding"]);
|
|
41
|
+
var _b = _a, { children, noPadding = false } = _b, props = __objRest(_b, ["children", "noPadding"]);
|
|
42
42
|
let backButton = null;
|
|
43
43
|
let title = null;
|
|
44
44
|
const rightButtons = [];
|
|
@@ -71,11 +71,6 @@ Heading.propTypes = {
|
|
|
71
71
|
noPadding: bool,
|
|
72
72
|
bg: PropTypes.string
|
|
73
73
|
};
|
|
74
|
-
Heading.defaultProps = {
|
|
75
|
-
children: void 0,
|
|
76
|
-
noPadding: false,
|
|
77
|
-
bg: void 0
|
|
78
|
-
};
|
|
79
74
|
var Heading_default = Heading;
|
|
80
75
|
export {
|
|
81
76
|
Heading_default as default
|
package/esm/Icon/Icon.js
CHANGED
|
@@ -45,7 +45,7 @@ import Box from "../Box";
|
|
|
45
45
|
const Icon = (_a) => {
|
|
46
46
|
var _b = _a, {
|
|
47
47
|
as: Component,
|
|
48
|
-
size,
|
|
48
|
+
size = 12,
|
|
49
49
|
width = size,
|
|
50
50
|
height = size,
|
|
51
51
|
fill,
|
|
@@ -156,16 +156,6 @@ Icon.propTypes = {
|
|
|
156
156
|
* Use it as one of theme.spacing tokens (xxsmall, small, medium...) */
|
|
157
157
|
size: oneOfType([oneOf(commonSizes), string, number])
|
|
158
158
|
};
|
|
159
|
-
Icon.defaultProps = {
|
|
160
|
-
fill: void 0,
|
|
161
|
-
stroke: void 0,
|
|
162
|
-
title: void 0,
|
|
163
|
-
description: void 0,
|
|
164
|
-
ariaLabel: void 0,
|
|
165
|
-
width: void 0,
|
|
166
|
-
height: void 0,
|
|
167
|
-
size: 12
|
|
168
|
-
};
|
|
169
159
|
var Icon_default = withTheme(Icon);
|
|
170
160
|
export {
|
|
171
161
|
Icon_default as default
|
package/esm/Input/web/Helper.js
CHANGED
|
@@ -79,15 +79,6 @@ Helper.propTypes = {
|
|
|
79
79
|
hideMaxLength: bool,
|
|
80
80
|
a11yId: string
|
|
81
81
|
};
|
|
82
|
-
Helper.defaultProps = {
|
|
83
|
-
disabled: void 0,
|
|
84
|
-
error: void 0,
|
|
85
|
-
helper: void 0,
|
|
86
|
-
maxLength: void 0,
|
|
87
|
-
length: void 0,
|
|
88
|
-
hideMaxLength: void 0,
|
|
89
|
-
a11yId: void 0
|
|
90
|
-
};
|
|
91
82
|
var Helper_default = Helper;
|
|
92
83
|
export {
|
|
93
84
|
Wrapper,
|