@gympass/yoga 7.131.2 → 7.131.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.
- package/cjs/Button/native/Button.js +74 -82
- package/cjs/Card/native/EventCard/EventCard.js +45 -11
- package/cjs/TextArea/native/TextArea.js +54 -34
- package/esm/Button/native/Button.js +74 -82
- package/esm/Card/native/EventCard/EventCard.js +45 -11
- package/esm/TextArea/native/TextArea.js +54 -34
- package/package.json +3 -3
- package/typings/Theme/theme/theme.d.ts +37 -37
- package/typings/Theme/theme/v3theme.d.ts +37 -37
|
@@ -136,91 +136,83 @@ const ButtonContainer = import_styled_components.default.View`
|
|
|
136
136
|
`;
|
|
137
137
|
}}
|
|
138
138
|
`;
|
|
139
|
-
const Button = (0, import_react.forwardRef)(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
small,
|
|
155
|
-
pressed,
|
|
156
|
-
inverted,
|
|
157
|
-
secondary,
|
|
158
|
-
icon: Icon,
|
|
159
|
-
theme: {
|
|
160
|
-
yoga: {
|
|
161
|
-
components: { button }
|
|
139
|
+
const Button = (0, import_react.forwardRef)(
|
|
140
|
+
(_a, ref) => {
|
|
141
|
+
var _b = _a, {
|
|
142
|
+
children = "Button",
|
|
143
|
+
full = false,
|
|
144
|
+
disabled = false,
|
|
145
|
+
small = false,
|
|
146
|
+
pressed = false,
|
|
147
|
+
inverted = false,
|
|
148
|
+
secondary = false,
|
|
149
|
+
icon: Icon,
|
|
150
|
+
theme: {
|
|
151
|
+
yoga: {
|
|
152
|
+
components: { button }
|
|
153
|
+
}
|
|
162
154
|
}
|
|
155
|
+
} = _b, rest = __objRest(_b, [
|
|
156
|
+
"children",
|
|
157
|
+
"full",
|
|
158
|
+
"disabled",
|
|
159
|
+
"small",
|
|
160
|
+
"pressed",
|
|
161
|
+
"inverted",
|
|
162
|
+
"secondary",
|
|
163
|
+
"icon",
|
|
164
|
+
"theme"
|
|
165
|
+
]);
|
|
166
|
+
const state = secondary ? "secondary" : "primary";
|
|
167
|
+
let textColor = button.types.contained.font.default.color;
|
|
168
|
+
if (disabled) {
|
|
169
|
+
textColor = button.types.contained.font.disabled.color;
|
|
170
|
+
} else if (inverted) {
|
|
171
|
+
textColor = button.types.contained.backgroundColor[state].default;
|
|
172
|
+
if (pressed) {
|
|
173
|
+
textColor = button.types.contained.backgroundColor[state].pressed;
|
|
174
|
+
}
|
|
175
|
+
} else if (pressed) {
|
|
176
|
+
textColor = button.types.contained.font.pressed.color;
|
|
163
177
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
} else if (pressed) {
|
|
185
|
-
textColor = button.types.contained.font.pressed.color;
|
|
186
|
-
}
|
|
187
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
188
|
-
ButtonContainer,
|
|
189
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
190
|
-
full,
|
|
191
|
-
pressed,
|
|
192
|
-
disabled,
|
|
193
|
-
small,
|
|
194
|
-
inverted,
|
|
195
|
-
secondary,
|
|
196
|
-
ref,
|
|
197
|
-
children: [
|
|
198
|
-
Icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
199
|
-
Icon,
|
|
200
|
-
{
|
|
201
|
-
width: small ? button.icon.size.small : button.icon.size.default,
|
|
202
|
-
height: small ? button.icon.size.small : button.icon.size.default,
|
|
203
|
-
fill: textColor,
|
|
204
|
-
style: {
|
|
205
|
-
marginRight: button.icon.margin.right
|
|
178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
179
|
+
ButtonContainer,
|
|
180
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
181
|
+
full,
|
|
182
|
+
pressed,
|
|
183
|
+
disabled,
|
|
184
|
+
small,
|
|
185
|
+
inverted,
|
|
186
|
+
secondary,
|
|
187
|
+
ref,
|
|
188
|
+
children: [
|
|
189
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
190
|
+
Icon,
|
|
191
|
+
{
|
|
192
|
+
width: small ? button.icon.size.small : button.icon.size.default,
|
|
193
|
+
height: small ? button.icon.size.small : button.icon.size.default,
|
|
194
|
+
fill: textColor,
|
|
195
|
+
style: {
|
|
196
|
+
marginRight: button.icon.margin.right
|
|
197
|
+
}
|
|
206
198
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
201
|
+
Label,
|
|
202
|
+
{
|
|
203
|
+
disabled,
|
|
204
|
+
pressed,
|
|
205
|
+
inverted,
|
|
206
|
+
small,
|
|
207
|
+
color: textColor,
|
|
208
|
+
children
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
]
|
|
212
|
+
})
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
);
|
|
224
216
|
Button.propTypes = {
|
|
225
217
|
children: import_prop_types.node,
|
|
226
218
|
full: import_prop_types.bool,
|
|
@@ -192,17 +192,51 @@ const FullCard = (0, import_styled_components.withTheme)(
|
|
|
192
192
|
] })
|
|
193
193
|
] })
|
|
194
194
|
);
|
|
195
|
-
const EventCard = (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
195
|
+
const EventCard = (_a) => {
|
|
196
|
+
var _b = _a, {
|
|
197
|
+
onPress,
|
|
198
|
+
small = false,
|
|
199
|
+
active = false,
|
|
200
|
+
event,
|
|
201
|
+
link = "",
|
|
202
|
+
onLinkPress
|
|
203
|
+
} = _b, rest = __objRest(_b, [
|
|
204
|
+
"onPress",
|
|
205
|
+
"small",
|
|
206
|
+
"active",
|
|
207
|
+
"event",
|
|
208
|
+
"link",
|
|
209
|
+
"onLinkPress"
|
|
210
|
+
]);
|
|
211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.TouchableWithoutFeedback, { onPress, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
212
|
+
Event,
|
|
213
|
+
__spreadProps(__spreadValues({
|
|
214
|
+
small,
|
|
215
|
+
active,
|
|
216
|
+
link,
|
|
217
|
+
event,
|
|
218
|
+
onLinkPress
|
|
219
|
+
}, rest), {
|
|
220
|
+
children: small ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
221
|
+
SmallCard,
|
|
222
|
+
__spreadValues({
|
|
223
|
+
onPress,
|
|
224
|
+
active,
|
|
225
|
+
link,
|
|
226
|
+
onLinkPress,
|
|
227
|
+
event
|
|
228
|
+
}, rest)
|
|
229
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
230
|
+
FullCard,
|
|
231
|
+
__spreadValues({
|
|
232
|
+
active,
|
|
233
|
+
link,
|
|
234
|
+
onLinkPress,
|
|
235
|
+
event
|
|
236
|
+
}, rest)
|
|
237
|
+
)
|
|
238
|
+
})
|
|
239
|
+
) });
|
|
206
240
|
};
|
|
207
241
|
EventCard.propTypes = {
|
|
208
242
|
/** event information: { name (string), place (string), time (string) } */
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -21,7 +19,18 @@ var __spreadValues = (a, b) => {
|
|
|
21
19
|
}
|
|
22
20
|
return a;
|
|
23
21
|
};
|
|
24
|
-
var
|
|
22
|
+
var __objRest = (source, exclude) => {
|
|
23
|
+
var target = {};
|
|
24
|
+
for (var prop in source)
|
|
25
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
+
target[prop] = source[prop];
|
|
27
|
+
if (source != null && __getOwnPropSymbols)
|
|
28
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
25
34
|
var __export = (target, all) => {
|
|
26
35
|
for (var name in all)
|
|
27
36
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -56,42 +65,53 @@ var import_Input = __toESM(require("../../Input"));
|
|
|
56
65
|
const StyledInput = (0, import_styled_components.default)(import_Input.default)`
|
|
57
66
|
height: 88px;
|
|
58
67
|
`;
|
|
59
|
-
const TextArea = ({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
disabled,
|
|
77
|
-
error,
|
|
78
|
-
full,
|
|
79
|
-
helper,
|
|
80
|
-
label,
|
|
81
|
-
maxLength,
|
|
82
|
-
readOnly,
|
|
83
|
-
value,
|
|
84
|
-
onBlur,
|
|
85
|
-
onChangeText,
|
|
86
|
-
onFocus
|
|
87
|
-
|
|
68
|
+
const TextArea = (_a) => {
|
|
69
|
+
var _b = _a, {
|
|
70
|
+
disabled = false,
|
|
71
|
+
error = void 0,
|
|
72
|
+
full = false,
|
|
73
|
+
helper = void 0,
|
|
74
|
+
label = "",
|
|
75
|
+
maxLength = void 0,
|
|
76
|
+
readOnly = false,
|
|
77
|
+
value = "",
|
|
78
|
+
onBlur = () => {
|
|
79
|
+
},
|
|
80
|
+
onChangeText = () => {
|
|
81
|
+
},
|
|
82
|
+
onFocus = () => {
|
|
83
|
+
}
|
|
84
|
+
} = _b, rest = __objRest(_b, [
|
|
85
|
+
"disabled",
|
|
86
|
+
"error",
|
|
87
|
+
"full",
|
|
88
|
+
"helper",
|
|
89
|
+
"label",
|
|
90
|
+
"maxLength",
|
|
91
|
+
"readOnly",
|
|
92
|
+
"value",
|
|
93
|
+
"onBlur",
|
|
94
|
+
"onChangeText",
|
|
95
|
+
"onFocus"
|
|
96
|
+
]);
|
|
88
97
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
98
|
StyledInput,
|
|
90
|
-
|
|
99
|
+
__spreadValues({
|
|
100
|
+
disabled,
|
|
101
|
+
error,
|
|
102
|
+
full,
|
|
103
|
+
helper,
|
|
104
|
+
label,
|
|
105
|
+
maxLength,
|
|
106
|
+
readOnly,
|
|
107
|
+
value,
|
|
108
|
+
onBlur,
|
|
109
|
+
onChangeText,
|
|
110
|
+
onFocus,
|
|
91
111
|
textAlignVertical: "top",
|
|
92
112
|
multiline: true,
|
|
93
113
|
cleanable: false
|
|
94
|
-
})
|
|
114
|
+
}, rest)
|
|
95
115
|
);
|
|
96
116
|
};
|
|
97
117
|
TextArea.propTypes = {
|
|
@@ -103,91 +103,83 @@ const ButtonContainer = styled.View`
|
|
|
103
103
|
`;
|
|
104
104
|
}}
|
|
105
105
|
`;
|
|
106
|
-
const Button = forwardRef(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
small,
|
|
122
|
-
pressed,
|
|
123
|
-
inverted,
|
|
124
|
-
secondary,
|
|
125
|
-
icon: Icon,
|
|
126
|
-
theme: {
|
|
127
|
-
yoga: {
|
|
128
|
-
components: { button }
|
|
106
|
+
const Button = forwardRef(
|
|
107
|
+
(_a, ref) => {
|
|
108
|
+
var _b = _a, {
|
|
109
|
+
children = "Button",
|
|
110
|
+
full = false,
|
|
111
|
+
disabled = false,
|
|
112
|
+
small = false,
|
|
113
|
+
pressed = false,
|
|
114
|
+
inverted = false,
|
|
115
|
+
secondary = false,
|
|
116
|
+
icon: Icon,
|
|
117
|
+
theme: {
|
|
118
|
+
yoga: {
|
|
119
|
+
components: { button }
|
|
120
|
+
}
|
|
129
121
|
}
|
|
122
|
+
} = _b, rest = __objRest(_b, [
|
|
123
|
+
"children",
|
|
124
|
+
"full",
|
|
125
|
+
"disabled",
|
|
126
|
+
"small",
|
|
127
|
+
"pressed",
|
|
128
|
+
"inverted",
|
|
129
|
+
"secondary",
|
|
130
|
+
"icon",
|
|
131
|
+
"theme"
|
|
132
|
+
]);
|
|
133
|
+
const state = secondary ? "secondary" : "primary";
|
|
134
|
+
let textColor = button.types.contained.font.default.color;
|
|
135
|
+
if (disabled) {
|
|
136
|
+
textColor = button.types.contained.font.disabled.color;
|
|
137
|
+
} else if (inverted) {
|
|
138
|
+
textColor = button.types.contained.backgroundColor[state].default;
|
|
139
|
+
if (pressed) {
|
|
140
|
+
textColor = button.types.contained.backgroundColor[state].pressed;
|
|
141
|
+
}
|
|
142
|
+
} else if (pressed) {
|
|
143
|
+
textColor = button.types.contained.font.pressed.color;
|
|
130
144
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
} else if (pressed) {
|
|
152
|
-
textColor = button.types.contained.font.pressed.color;
|
|
153
|
-
}
|
|
154
|
-
return /* @__PURE__ */ jsxs(
|
|
155
|
-
ButtonContainer,
|
|
156
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
157
|
-
full,
|
|
158
|
-
pressed,
|
|
159
|
-
disabled,
|
|
160
|
-
small,
|
|
161
|
-
inverted,
|
|
162
|
-
secondary,
|
|
163
|
-
ref,
|
|
164
|
-
children: [
|
|
165
|
-
Icon && /* @__PURE__ */ jsx(
|
|
166
|
-
Icon,
|
|
167
|
-
{
|
|
168
|
-
width: small ? button.icon.size.small : button.icon.size.default,
|
|
169
|
-
height: small ? button.icon.size.small : button.icon.size.default,
|
|
170
|
-
fill: textColor,
|
|
171
|
-
style: {
|
|
172
|
-
marginRight: button.icon.margin.right
|
|
145
|
+
return /* @__PURE__ */ jsxs(
|
|
146
|
+
ButtonContainer,
|
|
147
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
148
|
+
full,
|
|
149
|
+
pressed,
|
|
150
|
+
disabled,
|
|
151
|
+
small,
|
|
152
|
+
inverted,
|
|
153
|
+
secondary,
|
|
154
|
+
ref,
|
|
155
|
+
children: [
|
|
156
|
+
Icon && /* @__PURE__ */ jsx(
|
|
157
|
+
Icon,
|
|
158
|
+
{
|
|
159
|
+
width: small ? button.icon.size.small : button.icon.size.default,
|
|
160
|
+
height: small ? button.icon.size.small : button.icon.size.default,
|
|
161
|
+
fill: textColor,
|
|
162
|
+
style: {
|
|
163
|
+
marginRight: button.icon.margin.right
|
|
164
|
+
}
|
|
173
165
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ jsx(
|
|
168
|
+
Label,
|
|
169
|
+
{
|
|
170
|
+
disabled,
|
|
171
|
+
pressed,
|
|
172
|
+
inverted,
|
|
173
|
+
small,
|
|
174
|
+
color: textColor,
|
|
175
|
+
children
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
]
|
|
179
|
+
})
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
);
|
|
191
183
|
Button.propTypes = {
|
|
192
184
|
children: node,
|
|
193
185
|
full: bool,
|
|
@@ -161,17 +161,51 @@ const FullCard = withTheme(
|
|
|
161
161
|
] })
|
|
162
162
|
] })
|
|
163
163
|
);
|
|
164
|
-
const EventCard = (
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
const EventCard = (_a) => {
|
|
165
|
+
var _b = _a, {
|
|
166
|
+
onPress,
|
|
167
|
+
small = false,
|
|
168
|
+
active = false,
|
|
169
|
+
event,
|
|
170
|
+
link = "",
|
|
171
|
+
onLinkPress
|
|
172
|
+
} = _b, rest = __objRest(_b, [
|
|
173
|
+
"onPress",
|
|
174
|
+
"small",
|
|
175
|
+
"active",
|
|
176
|
+
"event",
|
|
177
|
+
"link",
|
|
178
|
+
"onLinkPress"
|
|
179
|
+
]);
|
|
180
|
+
return /* @__PURE__ */ jsx(TouchableWithoutFeedback, { onPress, children: /* @__PURE__ */ jsx(
|
|
181
|
+
Event,
|
|
182
|
+
__spreadProps(__spreadValues({
|
|
183
|
+
small,
|
|
184
|
+
active,
|
|
185
|
+
link,
|
|
186
|
+
event,
|
|
187
|
+
onLinkPress
|
|
188
|
+
}, rest), {
|
|
189
|
+
children: small ? /* @__PURE__ */ jsx(
|
|
190
|
+
SmallCard,
|
|
191
|
+
__spreadValues({
|
|
192
|
+
onPress,
|
|
193
|
+
active,
|
|
194
|
+
link,
|
|
195
|
+
onLinkPress,
|
|
196
|
+
event
|
|
197
|
+
}, rest)
|
|
198
|
+
) : /* @__PURE__ */ jsx(
|
|
199
|
+
FullCard,
|
|
200
|
+
__spreadValues({
|
|
201
|
+
active,
|
|
202
|
+
link,
|
|
203
|
+
onLinkPress,
|
|
204
|
+
event
|
|
205
|
+
}, rest)
|
|
206
|
+
)
|
|
207
|
+
})
|
|
208
|
+
) });
|
|
175
209
|
};
|
|
176
210
|
EventCard.propTypes = {
|
|
177
211
|
/** event information: { name (string), place (string), time (string) } */
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
2
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
3
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
4
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -16,7 +14,18 @@ var __spreadValues = (a, b) => {
|
|
|
16
14
|
}
|
|
17
15
|
return a;
|
|
18
16
|
};
|
|
19
|
-
var
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
20
29
|
import { jsx } from "react/jsx-runtime";
|
|
21
30
|
import React from "react";
|
|
22
31
|
import styled from "styled-components";
|
|
@@ -25,42 +34,53 @@ import Input from "../../Input";
|
|
|
25
34
|
const StyledInput = styled(Input)`
|
|
26
35
|
height: 88px;
|
|
27
36
|
`;
|
|
28
|
-
const TextArea = ({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
disabled,
|
|
46
|
-
error,
|
|
47
|
-
full,
|
|
48
|
-
helper,
|
|
49
|
-
label,
|
|
50
|
-
maxLength,
|
|
51
|
-
readOnly,
|
|
52
|
-
value,
|
|
53
|
-
onBlur,
|
|
54
|
-
onChangeText,
|
|
55
|
-
onFocus
|
|
56
|
-
|
|
37
|
+
const TextArea = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
disabled = false,
|
|
40
|
+
error = void 0,
|
|
41
|
+
full = false,
|
|
42
|
+
helper = void 0,
|
|
43
|
+
label = "",
|
|
44
|
+
maxLength = void 0,
|
|
45
|
+
readOnly = false,
|
|
46
|
+
value = "",
|
|
47
|
+
onBlur = () => {
|
|
48
|
+
},
|
|
49
|
+
onChangeText = () => {
|
|
50
|
+
},
|
|
51
|
+
onFocus = () => {
|
|
52
|
+
}
|
|
53
|
+
} = _b, rest = __objRest(_b, [
|
|
54
|
+
"disabled",
|
|
55
|
+
"error",
|
|
56
|
+
"full",
|
|
57
|
+
"helper",
|
|
58
|
+
"label",
|
|
59
|
+
"maxLength",
|
|
60
|
+
"readOnly",
|
|
61
|
+
"value",
|
|
62
|
+
"onBlur",
|
|
63
|
+
"onChangeText",
|
|
64
|
+
"onFocus"
|
|
65
|
+
]);
|
|
57
66
|
return /* @__PURE__ */ jsx(
|
|
58
67
|
StyledInput,
|
|
59
|
-
|
|
68
|
+
__spreadValues({
|
|
69
|
+
disabled,
|
|
70
|
+
error,
|
|
71
|
+
full,
|
|
72
|
+
helper,
|
|
73
|
+
label,
|
|
74
|
+
maxLength,
|
|
75
|
+
readOnly,
|
|
76
|
+
value,
|
|
77
|
+
onBlur,
|
|
78
|
+
onChangeText,
|
|
79
|
+
onFocus,
|
|
60
80
|
textAlignVertical: "top",
|
|
61
81
|
multiline: true,
|
|
62
82
|
cleanable: false
|
|
63
|
-
})
|
|
83
|
+
}, rest)
|
|
64
84
|
);
|
|
65
85
|
};
|
|
66
86
|
TextArea.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.131.
|
|
3
|
+
"version": "7.131.4",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-phone-input-2": "^2.15.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gympass/yoga-icons": "^1.
|
|
48
|
+
"@gympass/yoga-icons": "^1.30.0",
|
|
49
49
|
"@react-native-community/eslint-config": "^3.0.1",
|
|
50
50
|
"@types/styled-components": "^5.1.34",
|
|
51
51
|
"babel-plugin-inline-react-svg": "^1.1.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-native": "0.72.3",
|
|
60
60
|
"styled-components": "^4.4.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "cb6422e46b193b8c1b1ad16371e1205444554d2a",
|
|
63
63
|
"module": "./esm",
|
|
64
64
|
"private": false,
|
|
65
65
|
"react-native": "./cjs/index.native.js"
|
|
@@ -1638,46 +1638,46 @@ declare const composeTheme: (tokens: typeof yogaTokens, customTheming?: {}) => {
|
|
|
1638
1638
|
length: number;
|
|
1639
1639
|
toString(): string;
|
|
1640
1640
|
toLocaleString(): string;
|
|
1641
|
-
pop(): 0 |
|
|
1642
|
-
push(...items: (0 |
|
|
1643
|
-
concat(...items: ConcatArray<0 |
|
|
1644
|
-
concat(...items: (0 |
|
|
1641
|
+
pop(): 0 | 2 | 1 | undefined;
|
|
1642
|
+
push(...items: (0 | 2 | 1)[]): number;
|
|
1643
|
+
concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
|
|
1644
|
+
concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
|
|
1645
1645
|
join(separator?: string | undefined): string;
|
|
1646
|
-
reverse(): (0 |
|
|
1647
|
-
shift(): 0 |
|
|
1648
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
1649
|
-
sort(compareFn?: ((a: 0 |
|
|
1650
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
1651
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
1652
|
-
unshift(...items: (0 |
|
|
1653
|
-
indexOf(searchElement: 0 |
|
|
1654
|
-
lastIndexOf(searchElement: 0 |
|
|
1655
|
-
every<S extends 0 |
|
|
1656
|
-
every(predicate: (value: 0 |
|
|
1657
|
-
some(predicate: (value: 0 |
|
|
1658
|
-
forEach(callbackfn: (value: 0 |
|
|
1659
|
-
map<U>(callbackfn: (value: 0 |
|
|
1660
|
-
filter<S_1 extends 0 |
|
|
1661
|
-
filter(predicate: (value: 0 |
|
|
1662
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1663
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1664
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
1665
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1666
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1667
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
1668
|
-
find<S_2 extends 0 |
|
|
1669
|
-
find(predicate: (value: 0 |
|
|
1670
|
-
findIndex(predicate: (value: 0 |
|
|
1671
|
-
fill(value: 0 |
|
|
1672
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
1673
|
-
entries(): IterableIterator<[number, 0 |
|
|
1646
|
+
reverse(): (0 | 2 | 1)[];
|
|
1647
|
+
shift(): 0 | 2 | 1 | undefined;
|
|
1648
|
+
slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
1649
|
+
sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
|
|
1650
|
+
splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
|
|
1651
|
+
splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
|
|
1652
|
+
unshift(...items: (0 | 2 | 1)[]): number;
|
|
1653
|
+
indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
1654
|
+
lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
1655
|
+
every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
|
|
1656
|
+
every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
1657
|
+
some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
1658
|
+
forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
|
|
1659
|
+
map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
|
|
1660
|
+
filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
|
|
1661
|
+
filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
|
|
1662
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
1663
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
1664
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
|
|
1665
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
1666
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
1667
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
|
|
1668
|
+
find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
1669
|
+
find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
|
|
1670
|
+
findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
|
|
1671
|
+
fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
1672
|
+
copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
|
|
1673
|
+
entries(): IterableIterator<[number, 0 | 2 | 1]>;
|
|
1674
1674
|
keys(): IterableIterator<number>;
|
|
1675
|
-
values(): IterableIterator<0 |
|
|
1676
|
-
includes(searchElement: 0 |
|
|
1677
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
1675
|
+
values(): IterableIterator<0 | 2 | 1>;
|
|
1676
|
+
includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
|
|
1677
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
1678
1678
|
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
1679
|
-
at(index: number): 0 |
|
|
1680
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
1679
|
+
at(index: number): 0 | 2 | 1 | undefined;
|
|
1680
|
+
[Symbol.iterator](): IterableIterator<0 | 2 | 1>;
|
|
1681
1681
|
[Symbol.unscopables](): {
|
|
1682
1682
|
copyWithin: boolean;
|
|
1683
1683
|
entries: boolean;
|
|
@@ -9,46 +9,46 @@ declare const v3theme: {
|
|
|
9
9
|
length: number;
|
|
10
10
|
toString(): string;
|
|
11
11
|
toLocaleString(): string;
|
|
12
|
-
pop(): 0 |
|
|
13
|
-
push(...items: (0 |
|
|
14
|
-
concat(...items: ConcatArray<0 |
|
|
15
|
-
concat(...items: (0 |
|
|
12
|
+
pop(): 0 | 2 | 1 | undefined;
|
|
13
|
+
push(...items: (0 | 2 | 1)[]): number;
|
|
14
|
+
concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
|
|
15
|
+
concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
|
|
16
16
|
join(separator?: string | undefined): string;
|
|
17
|
-
reverse(): (0 |
|
|
18
|
-
shift(): 0 |
|
|
19
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
20
|
-
sort(compareFn?: ((a: 0 |
|
|
21
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
22
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
23
|
-
unshift(...items: (0 |
|
|
24
|
-
indexOf(searchElement: 0 |
|
|
25
|
-
lastIndexOf(searchElement: 0 |
|
|
26
|
-
every<S extends 0 |
|
|
27
|
-
every(predicate: (value: 0 |
|
|
28
|
-
some(predicate: (value: 0 |
|
|
29
|
-
forEach(callbackfn: (value: 0 |
|
|
30
|
-
map<U>(callbackfn: (value: 0 |
|
|
31
|
-
filter<S_1 extends 0 |
|
|
32
|
-
filter(predicate: (value: 0 |
|
|
33
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
34
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
35
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
36
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
37
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
38
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
39
|
-
find<S_2 extends 0 |
|
|
40
|
-
find(predicate: (value: 0 |
|
|
41
|
-
findIndex(predicate: (value: 0 |
|
|
42
|
-
fill(value: 0 |
|
|
43
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
44
|
-
entries(): IterableIterator<[number, 0 |
|
|
17
|
+
reverse(): (0 | 2 | 1)[];
|
|
18
|
+
shift(): 0 | 2 | 1 | undefined;
|
|
19
|
+
slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
20
|
+
sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
|
|
21
|
+
splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
|
|
22
|
+
splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
|
|
23
|
+
unshift(...items: (0 | 2 | 1)[]): number;
|
|
24
|
+
indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
25
|
+
lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
26
|
+
every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
|
|
27
|
+
every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
28
|
+
some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
29
|
+
forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
|
|
30
|
+
map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
|
|
31
|
+
filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
|
|
32
|
+
filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
|
|
33
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
34
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
35
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
|
|
36
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
37
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
38
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
|
|
39
|
+
find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
40
|
+
find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
|
|
41
|
+
findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
|
|
42
|
+
fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
43
|
+
copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
|
|
44
|
+
entries(): IterableIterator<[number, 0 | 2 | 1]>;
|
|
45
45
|
keys(): IterableIterator<number>;
|
|
46
|
-
values(): IterableIterator<0 |
|
|
47
|
-
includes(searchElement: 0 |
|
|
48
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
46
|
+
values(): IterableIterator<0 | 2 | 1>;
|
|
47
|
+
includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
|
|
48
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
49
49
|
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
50
|
-
at(index: number): 0 |
|
|
51
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
50
|
+
at(index: number): 0 | 2 | 1 | undefined;
|
|
51
|
+
[Symbol.iterator](): IterableIterator<0 | 2 | 1>;
|
|
52
52
|
[Symbol.unscopables](): {
|
|
53
53
|
copyWithin: boolean;
|
|
54
54
|
entries: boolean;
|