@gympass/yoga 7.114.0 → 7.114.1
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.
|
@@ -65,10 +65,20 @@ const Day = (0, import_styled_components.default)(import__.Text.Overline)`
|
|
|
65
65
|
}
|
|
66
66
|
}) => `
|
|
67
67
|
width: 40px;
|
|
68
|
-
color: ${colors.
|
|
68
|
+
color: ${colors.elements.selectionAndIcons};
|
|
69
69
|
text-align: center;
|
|
70
70
|
`}
|
|
71
71
|
`;
|
|
72
|
+
const Month = (0, import_styled_components.default)(import__.Text.Body2)`
|
|
73
|
+
${({
|
|
74
|
+
theme: {
|
|
75
|
+
yoga: { colors, v3theme }
|
|
76
|
+
}
|
|
77
|
+
}) => `
|
|
78
|
+
color: ${v3theme ? colors.primary : colors.text.primary};
|
|
79
|
+
align-self: center;
|
|
80
|
+
`}
|
|
81
|
+
`;
|
|
72
82
|
const getDayFieldColor = (selected, disabled, colors, aux) => {
|
|
73
83
|
if (selected && !disabled) {
|
|
74
84
|
return colors.white;
|
|
@@ -132,14 +142,14 @@ const DayField = import_styled_components.default.div`
|
|
|
132
142
|
display: flex;
|
|
133
143
|
align-items: center;
|
|
134
144
|
justify-content: center;
|
|
135
|
-
background: ${inRange ? colors.
|
|
145
|
+
background: ${inRange ? colors.elements.lineAndBorders : colors.white};
|
|
136
146
|
position: relative;
|
|
137
147
|
cursor: pointer;
|
|
138
148
|
${selected && inRange ? `border-radius: ${getDayFieldRadius(aux, radii)};` : ``}
|
|
139
149
|
${selected && !disabled ? `&:before {
|
|
140
150
|
content: '';
|
|
141
151
|
position: absolute;
|
|
142
|
-
background: ${colors.
|
|
152
|
+
background: ${colors.primary};
|
|
143
153
|
width: ${datepicker.width.day}px;
|
|
144
154
|
height: ${datepicker.width.day}px;
|
|
145
155
|
border-radius: ${radii.circle}px;
|
|
@@ -346,7 +356,7 @@ function Calendar({
|
|
|
346
356
|
"data-testid": "previous-month-arrow"
|
|
347
357
|
}
|
|
348
358
|
),
|
|
349
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
359
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Month, { bold: true, children: new Intl.DateTimeFormat("en-US", {
|
|
350
360
|
month: "long",
|
|
351
361
|
year: "numeric"
|
|
352
362
|
}).format(new Date(year, month, 1, 0, 0, 0)) }),
|
|
@@ -32,10 +32,20 @@ const Day = styled(Text.Overline)`
|
|
|
32
32
|
}
|
|
33
33
|
}) => `
|
|
34
34
|
width: 40px;
|
|
35
|
-
color: ${colors.
|
|
35
|
+
color: ${colors.elements.selectionAndIcons};
|
|
36
36
|
text-align: center;
|
|
37
37
|
`}
|
|
38
38
|
`;
|
|
39
|
+
const Month = styled(Text.Body2)`
|
|
40
|
+
${({
|
|
41
|
+
theme: {
|
|
42
|
+
yoga: { colors, v3theme }
|
|
43
|
+
}
|
|
44
|
+
}) => `
|
|
45
|
+
color: ${v3theme ? colors.primary : colors.text.primary};
|
|
46
|
+
align-self: center;
|
|
47
|
+
`}
|
|
48
|
+
`;
|
|
39
49
|
const getDayFieldColor = (selected, disabled, colors, aux) => {
|
|
40
50
|
if (selected && !disabled) {
|
|
41
51
|
return colors.white;
|
|
@@ -99,14 +109,14 @@ const DayField = styled.div`
|
|
|
99
109
|
display: flex;
|
|
100
110
|
align-items: center;
|
|
101
111
|
justify-content: center;
|
|
102
|
-
background: ${inRange ? colors.
|
|
112
|
+
background: ${inRange ? colors.elements.lineAndBorders : colors.white};
|
|
103
113
|
position: relative;
|
|
104
114
|
cursor: pointer;
|
|
105
115
|
${selected && inRange ? `border-radius: ${getDayFieldRadius(aux, radii)};` : ``}
|
|
106
116
|
${selected && !disabled ? `&:before {
|
|
107
117
|
content: '';
|
|
108
118
|
position: absolute;
|
|
109
|
-
background: ${colors.
|
|
119
|
+
background: ${colors.primary};
|
|
110
120
|
width: ${datepicker.width.day}px;
|
|
111
121
|
height: ${datepicker.width.day}px;
|
|
112
122
|
border-radius: ${radii.circle}px;
|
|
@@ -313,7 +323,7 @@ function Calendar({
|
|
|
313
323
|
"data-testid": "previous-month-arrow"
|
|
314
324
|
}
|
|
315
325
|
),
|
|
316
|
-
/* @__PURE__ */ jsx(
|
|
326
|
+
/* @__PURE__ */ jsx(Month, { bold: true, children: new Intl.DateTimeFormat("en-US", {
|
|
317
327
|
month: "long",
|
|
318
328
|
year: "numeric"
|
|
319
329
|
}).format(new Date(year, month, 1, 0, 0, 0)) }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.114.
|
|
3
|
+
"version": "7.114.1",
|
|
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": "5a987a21d7e3b87e6da4aaac9930dfde1155134a",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -10,46 +10,46 @@ declare const v3theme: {
|
|
|
10
10
|
length: number;
|
|
11
11
|
toString(): string;
|
|
12
12
|
toLocaleString(): string;
|
|
13
|
-
pop(): 0 |
|
|
14
|
-
push(...items: (0 |
|
|
15
|
-
concat(...items: ConcatArray<0 |
|
|
16
|
-
concat(...items: (0 |
|
|
13
|
+
pop(): 0 | 1 | 2 | undefined;
|
|
14
|
+
push(...items: (0 | 1 | 2)[]): number;
|
|
15
|
+
concat(...items: ConcatArray<0 | 1 | 2>[]): (0 | 1 | 2)[];
|
|
16
|
+
concat(...items: (0 | 1 | 2 | ConcatArray<0 | 1 | 2>)[]): (0 | 1 | 2)[];
|
|
17
17
|
join(separator?: string | undefined): string;
|
|
18
|
-
reverse(): (0 |
|
|
19
|
-
shift(): 0 |
|
|
20
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
21
|
-
sort(compareFn?: ((a: 0 |
|
|
22
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
23
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
24
|
-
unshift(...items: (0 |
|
|
25
|
-
indexOf(searchElement: 0 |
|
|
26
|
-
lastIndexOf(searchElement: 0 |
|
|
27
|
-
every<S extends 0 |
|
|
28
|
-
every(predicate: (value: 0 |
|
|
29
|
-
some(predicate: (value: 0 |
|
|
30
|
-
forEach(callbackfn: (value: 0 |
|
|
31
|
-
map<U>(callbackfn: (value: 0 |
|
|
32
|
-
filter<S_1 extends 0 |
|
|
33
|
-
filter(predicate: (value: 0 |
|
|
34
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
35
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
36
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
37
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
38
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
39
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
40
|
-
find<S_2 extends 0 |
|
|
41
|
-
find(predicate: (value: 0 |
|
|
42
|
-
findIndex(predicate: (value: 0 |
|
|
43
|
-
fill(value: 0 |
|
|
44
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
45
|
-
entries(): IterableIterator<[number, 0 |
|
|
18
|
+
reverse(): (0 | 1 | 2)[];
|
|
19
|
+
shift(): 0 | 1 | 2 | undefined;
|
|
20
|
+
slice(start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
|
|
21
|
+
sort(compareFn?: ((a: 0 | 1 | 2, b: 0 | 1 | 2) => number) | undefined): (0 | 1 | 2)[];
|
|
22
|
+
splice(start: number, deleteCount?: number | undefined): (0 | 1 | 2)[];
|
|
23
|
+
splice(start: number, deleteCount: number, ...items: (0 | 1 | 2)[]): (0 | 1 | 2)[];
|
|
24
|
+
unshift(...items: (0 | 1 | 2)[]): number;
|
|
25
|
+
indexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
|
|
26
|
+
lastIndexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
|
|
27
|
+
every<S extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S, thisArg?: any): this is S[];
|
|
28
|
+
every(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
|
|
29
|
+
some(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
|
|
30
|
+
forEach(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => void, thisArg?: any): void;
|
|
31
|
+
map<U>(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U, thisArg?: any): U[];
|
|
32
|
+
filter<S_1 extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S_1, thisArg?: any): S_1[];
|
|
33
|
+
filter(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): (0 | 1 | 2)[];
|
|
34
|
+
reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
|
|
35
|
+
reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
|
|
36
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_1, initialValue: U_1): U_1;
|
|
37
|
+
reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
|
|
38
|
+
reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
|
|
39
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_2, initialValue: U_2): U_2;
|
|
40
|
+
find<S_2 extends 0 | 1 | 2>(predicate: (this: void, value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
41
|
+
find(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): 0 | 1 | 2 | undefined;
|
|
42
|
+
findIndex(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): number;
|
|
43
|
+
fill(value: 0 | 1 | 2, start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
|
|
44
|
+
copyWithin(target: number, start: number, end?: number | undefined): (0 | 1 | 2)[];
|
|
45
|
+
entries(): IterableIterator<[number, 0 | 1 | 2]>;
|
|
46
46
|
keys(): IterableIterator<number>;
|
|
47
|
-
values(): IterableIterator<0 |
|
|
48
|
-
includes(searchElement: 0 |
|
|
49
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
47
|
+
values(): IterableIterator<0 | 1 | 2>;
|
|
48
|
+
includes(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): boolean;
|
|
49
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
50
50
|
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
51
|
-
at(index: number): 0 |
|
|
52
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
51
|
+
at(index: number): 0 | 1 | 2 | undefined;
|
|
52
|
+
[Symbol.iterator](): IterableIterator<0 | 1 | 2>;
|
|
53
53
|
[Symbol.unscopables](): {
|
|
54
54
|
copyWithin: boolean;
|
|
55
55
|
entries: boolean;
|