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