@gympass/yoga 7.102.2 → 7.102.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.
|
@@ -303,6 +303,7 @@ const Checkbox = (_a) => {
|
|
|
303
303
|
"theme"
|
|
304
304
|
]);
|
|
305
305
|
const inputRef = (0, import_react.useRef)(null);
|
|
306
|
+
const _a2 = rest, { onChange, onClick } = _a2, restWithoutEvents = __objRest(_a2, ["onChange", "onClick"]);
|
|
306
307
|
(0, import_react.useEffect)(() => {
|
|
307
308
|
if (inputRef.current) {
|
|
308
309
|
inputRef.current.indeterminate = indeterminate;
|
|
@@ -314,7 +315,7 @@ const Checkbox = (_a) => {
|
|
|
314
315
|
style,
|
|
315
316
|
className,
|
|
316
317
|
disabled
|
|
317
|
-
},
|
|
318
|
+
}, restWithoutEvents), {
|
|
318
319
|
children: [
|
|
319
320
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
320
321
|
CheckboxStyled,
|
|
@@ -342,12 +343,15 @@ const Checkbox = (_a) => {
|
|
|
342
343
|
),
|
|
343
344
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
344
345
|
import_shared.HiddenInput,
|
|
345
|
-
|
|
346
|
+
__spreadProps(__spreadValues({
|
|
346
347
|
type: "checkbox",
|
|
347
348
|
ref: inputRef,
|
|
348
349
|
checked,
|
|
349
350
|
disabled
|
|
350
|
-
}, value ? { value } : {}),
|
|
351
|
+
}, value ? { value } : {}), {
|
|
352
|
+
onChange,
|
|
353
|
+
onClick
|
|
354
|
+
})
|
|
351
355
|
),
|
|
352
356
|
label
|
|
353
357
|
] })
|
|
@@ -40,17 +40,16 @@ var import_Attendances = __toESM(require("./Attendances"));
|
|
|
40
40
|
var import_Box = __toESM(require("../../Box"));
|
|
41
41
|
const StyledBox = (0, import_styled_components.default)(import_Box.default)`
|
|
42
42
|
width: 100%;
|
|
43
|
-
${({
|
|
44
|
-
|
|
43
|
+
border-bottom-width: ${({ divided }) => divided ? 1 : 0}px;
|
|
44
|
+
border-bottom-color: ${({
|
|
45
45
|
theme: {
|
|
46
46
|
yoga: {
|
|
47
|
-
colors: {
|
|
47
|
+
colors: {
|
|
48
|
+
elements: { lineAndBorders }
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
|
-
}) =>
|
|
51
|
-
border-bottom-width: 1px;
|
|
52
|
-
border-bottom-color: ${light};
|
|
53
|
-
` : ""}
|
|
52
|
+
}) => lineAndBorders};
|
|
54
53
|
`;
|
|
55
54
|
const Content = import_styled_components.default.View`
|
|
56
55
|
flex: 1;
|
|
@@ -272,6 +272,7 @@ const Checkbox = (_a) => {
|
|
|
272
272
|
"theme"
|
|
273
273
|
]);
|
|
274
274
|
const inputRef = useRef(null);
|
|
275
|
+
const _a2 = rest, { onChange, onClick } = _a2, restWithoutEvents = __objRest(_a2, ["onChange", "onClick"]);
|
|
275
276
|
useEffect(() => {
|
|
276
277
|
if (inputRef.current) {
|
|
277
278
|
inputRef.current.indeterminate = indeterminate;
|
|
@@ -283,7 +284,7 @@ const Checkbox = (_a) => {
|
|
|
283
284
|
style,
|
|
284
285
|
className,
|
|
285
286
|
disabled
|
|
286
|
-
},
|
|
287
|
+
}, restWithoutEvents), {
|
|
287
288
|
children: [
|
|
288
289
|
/* @__PURE__ */ jsx(
|
|
289
290
|
CheckboxStyled,
|
|
@@ -311,12 +312,15 @@ const Checkbox = (_a) => {
|
|
|
311
312
|
),
|
|
312
313
|
/* @__PURE__ */ jsx(
|
|
313
314
|
HiddenInput,
|
|
314
|
-
|
|
315
|
+
__spreadProps(__spreadValues({
|
|
315
316
|
type: "checkbox",
|
|
316
317
|
ref: inputRef,
|
|
317
318
|
checked,
|
|
318
319
|
disabled
|
|
319
|
-
}, value ? { value } : {}),
|
|
320
|
+
}, value ? { value } : {}), {
|
|
321
|
+
onChange,
|
|
322
|
+
onClick
|
|
323
|
+
})
|
|
320
324
|
),
|
|
321
325
|
label
|
|
322
326
|
] })
|
|
@@ -7,17 +7,16 @@ import Attendances from "./Attendances";
|
|
|
7
7
|
import Box from "../../Box";
|
|
8
8
|
const StyledBox = styled(Box)`
|
|
9
9
|
width: 100%;
|
|
10
|
-
${({
|
|
11
|
-
|
|
10
|
+
border-bottom-width: ${({ divided }) => divided ? 1 : 0}px;
|
|
11
|
+
border-bottom-color: ${({
|
|
12
12
|
theme: {
|
|
13
13
|
yoga: {
|
|
14
|
-
colors: {
|
|
14
|
+
colors: {
|
|
15
|
+
elements: { lineAndBorders }
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
|
-
}) =>
|
|
18
|
-
border-bottom-width: 1px;
|
|
19
|
-
border-bottom-color: ${light};
|
|
20
|
-
` : ""}
|
|
19
|
+
}) => lineAndBorders};
|
|
21
20
|
`;
|
|
22
21
|
const Content = styled.View`
|
|
23
22
|
flex: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.102.
|
|
3
|
+
"version": "7.102.4",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-native": "0.72.3",
|
|
58
58
|
"styled-components": "^4.4.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b05cd21c48aa81f1a3a58dd32a48080b5206721d",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|