@gympass/yoga 7.111.1 → 7.113.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/Dropdown/Dropdown.theme.js +1 -1
- package/cjs/Dropdown/native/Dropdown.js +1 -1
- package/cjs/Dropdown/native/Options.android.js +2 -2
- package/cjs/Stepper/Stepper.theme.js +4 -8
- package/cjs/Stepper/native/Dots.js +2 -3
- package/cjs/Stepper/web/Dots.js +4 -14
- package/cjs/Theme/theme/v3theme.js +33 -0
- package/esm/Dropdown/Dropdown.theme.js +1 -1
- package/esm/Dropdown/native/Dropdown.js +1 -1
- package/esm/Dropdown/native/Options.android.js +2 -2
- package/esm/Stepper/Stepper.theme.js +4 -8
- package/esm/Stepper/native/Dots.js +2 -3
- package/esm/Stepper/web/Dots.js +5 -15
- package/esm/Theme/theme/v3theme.js +33 -0
- package/package.json +2 -2
|
@@ -104,7 +104,7 @@ const Selector = import_styled_components.default.View`
|
|
|
104
104
|
${selected ? `border-color: ${dropdown.selected.selector.border.color};` : ""};
|
|
105
105
|
`}
|
|
106
106
|
`;
|
|
107
|
-
const Label = (0, import_styled_components.default)(import_Text.default)`
|
|
107
|
+
const Label = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
108
108
|
${({
|
|
109
109
|
disabled,
|
|
110
110
|
selected,
|
|
@@ -57,7 +57,7 @@ const Option = (0, import_styled_components.default)(import_List.default.Item)`
|
|
|
57
57
|
background-color: ${isSelected ? `${dropdown.hover.option.backgroundColor}` : "transparent"};
|
|
58
58
|
`}
|
|
59
59
|
`;
|
|
60
|
-
const OptionText = import_styled_components.default.
|
|
60
|
+
const OptionText = (0, import_styled_components.default)(import_Text.default.Body2)`
|
|
61
61
|
${({
|
|
62
62
|
isSelected,
|
|
63
63
|
theme: {
|
|
@@ -85,7 +85,7 @@ const Options = ({ options, selectedOption, onSelect }) => /* @__PURE__ */ (0, i
|
|
|
85
85
|
OptionText,
|
|
86
86
|
{
|
|
87
87
|
isSelected: selectedOption && selectedOption.value === item.value,
|
|
88
|
-
|
|
88
|
+
bold: selectedOption && selectedOption.value === item.value,
|
|
89
89
|
children: item.label
|
|
90
90
|
}
|
|
91
91
|
)
|
|
@@ -21,7 +21,7 @@ __export(Stepper_theme_exports, {
|
|
|
21
21
|
default: () => Stepper_theme_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Stepper_theme_exports);
|
|
24
|
-
const Stepper = ({ colors, spacing,
|
|
24
|
+
const Stepper = ({ colors, spacing, radii }) => ({
|
|
25
25
|
padding: {
|
|
26
26
|
left: spacing.xxlarge,
|
|
27
27
|
right: spacing.xxlarge
|
|
@@ -30,7 +30,7 @@ const Stepper = ({ colors, spacing, fontSizes, fontWeights, radii }) => ({
|
|
|
30
30
|
backgroundColor: {
|
|
31
31
|
active: colors.primary,
|
|
32
32
|
inactive: colors.elements.backgroundAndDisabled,
|
|
33
|
-
secondary: colors.
|
|
33
|
+
secondary: colors.secondary
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
dot: {
|
|
@@ -38,18 +38,14 @@ const Stepper = ({ colors, spacing, fontSizes, fontWeights, radii }) => ({
|
|
|
38
38
|
backgroundColor: {
|
|
39
39
|
active: colors.primary,
|
|
40
40
|
inactive: colors.elements.backgroundAndDisabled,
|
|
41
|
-
secondary: colors.
|
|
41
|
+
secondary: colors.secondary
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
label: {
|
|
45
|
-
font: {
|
|
46
|
-
weight: fontWeights.bold,
|
|
47
|
-
size: fontSizes.xsmall
|
|
48
|
-
},
|
|
49
45
|
color: {
|
|
50
46
|
active: colors.primary,
|
|
51
47
|
inactive: colors.elements.selectionAndIcons,
|
|
52
|
-
secondary: colors.
|
|
48
|
+
secondary: colors.secondary
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
});
|
|
@@ -32,8 +32,8 @@ __export(Dots_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(Dots_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_prop_types = require("prop-types");
|
|
36
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_prop_types = require("prop-types");
|
|
37
37
|
var import_styled_components = __toESM(require("styled-components"));
|
|
38
38
|
var import_Text = __toESM(require("../../Text"));
|
|
39
39
|
var import_activeDot = __toESM(require("../activeDot"));
|
|
@@ -65,7 +65,7 @@ const Dot = import_styled_components.default.View(
|
|
|
65
65
|
`;
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
|
-
const Label = (0, import_styled_components.default)(import_Text.default.
|
|
68
|
+
const Label = (0, import_styled_components.default)(import_Text.default.Overline)(
|
|
69
69
|
({
|
|
70
70
|
active,
|
|
71
71
|
secondary,
|
|
@@ -81,7 +81,6 @@ const Label = (0, import_styled_components.default)(import_Text.default.Bold)(
|
|
|
81
81
|
margin-top: 10px;
|
|
82
82
|
margin-left: -40px;
|
|
83
83
|
color: ${active ? stepper.label.color[state] : stepper.label.color.inactive};
|
|
84
|
-
font-size: ${stepper.label.font.size}px;
|
|
85
84
|
text-align: center;
|
|
86
85
|
`;
|
|
87
86
|
}
|
package/cjs/Stepper/web/Dots.js
CHANGED
|
@@ -35,8 +35,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_prop_types = require("prop-types");
|
|
37
37
|
var import_styled_components = __toESM(require("styled-components"));
|
|
38
|
-
var import_activeDot = __toESM(require("../activeDot"));
|
|
39
38
|
var import_Text = __toESM(require("../../Text"));
|
|
39
|
+
var import_activeDot = __toESM(require("../activeDot"));
|
|
40
40
|
const Dot = import_styled_components.default.div`
|
|
41
41
|
${({
|
|
42
42
|
theme: {
|
|
@@ -51,20 +51,10 @@ const Dot = import_styled_components.default.div`
|
|
|
51
51
|
border-radius: ${stepper.dot.radius}px;
|
|
52
52
|
`}
|
|
53
53
|
`;
|
|
54
|
-
const Label = (0, import_styled_components.default)(import_Text.default.
|
|
55
|
-
|
|
56
|
-
theme: {
|
|
57
|
-
yoga: {
|
|
58
|
-
components: { stepper }
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}) => import_styled_components.css`
|
|
62
|
-
width: 95px;
|
|
54
|
+
const Label = (0, import_styled_components.default)(import_Text.default.Overline)`
|
|
55
|
+
width: 95px;
|
|
63
56
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
transform: translateX(-50%);
|
|
67
|
-
`}
|
|
57
|
+
transform: translateX(-50%);
|
|
68
58
|
`;
|
|
69
59
|
const DotWrapper = import_styled_components.default.div`
|
|
70
60
|
${({
|
|
@@ -261,6 +261,39 @@ const v3theme = (0, import_themeGenerator.default)((tokens) => ({
|
|
|
261
261
|
weight: tokens.fontWeights.medium
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
+
},
|
|
265
|
+
dropdown: {
|
|
266
|
+
input: {
|
|
267
|
+
font: {
|
|
268
|
+
size: tokens.fontSizes.small,
|
|
269
|
+
lineHeight: tokens.lineHeights.small
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
option: {
|
|
273
|
+
font: {
|
|
274
|
+
size: tokens.fontSizes.small,
|
|
275
|
+
lineHeight: tokens.lineHeights.small,
|
|
276
|
+
weight: tokens.fontWeights.medium
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
backdrop: {
|
|
280
|
+
content: {
|
|
281
|
+
title: {
|
|
282
|
+
font: {
|
|
283
|
+
weight: tokens.fontWeights.bold,
|
|
284
|
+
size: tokens.fontSizes.medium
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
selected: {
|
|
290
|
+
option: {
|
|
291
|
+
font: {
|
|
292
|
+
weight: tokens.fontWeights.bold,
|
|
293
|
+
size: tokens.fontSizes.small
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
264
297
|
}
|
|
265
298
|
}
|
|
266
299
|
}));
|
|
@@ -24,7 +24,7 @@ const Option = styled(List.Item)`
|
|
|
24
24
|
background-color: ${isSelected ? `${dropdown.hover.option.backgroundColor}` : "transparent"};
|
|
25
25
|
`}
|
|
26
26
|
`;
|
|
27
|
-
const OptionText = styled.
|
|
27
|
+
const OptionText = styled(Text.Body2)`
|
|
28
28
|
${({
|
|
29
29
|
isSelected,
|
|
30
30
|
theme: {
|
|
@@ -52,7 +52,7 @@ const Options = ({ options, selectedOption, onSelect }) => /* @__PURE__ */ jsx(
|
|
|
52
52
|
OptionText,
|
|
53
53
|
{
|
|
54
54
|
isSelected: selectedOption && selectedOption.value === item.value,
|
|
55
|
-
|
|
55
|
+
bold: selectedOption && selectedOption.value === item.value,
|
|
56
56
|
children: item.label
|
|
57
57
|
}
|
|
58
58
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const Stepper = ({ colors, spacing,
|
|
1
|
+
const Stepper = ({ colors, spacing, radii }) => ({
|
|
2
2
|
padding: {
|
|
3
3
|
left: spacing.xxlarge,
|
|
4
4
|
right: spacing.xxlarge
|
|
@@ -7,7 +7,7 @@ const Stepper = ({ colors, spacing, fontSizes, fontWeights, radii }) => ({
|
|
|
7
7
|
backgroundColor: {
|
|
8
8
|
active: colors.primary,
|
|
9
9
|
inactive: colors.elements.backgroundAndDisabled,
|
|
10
|
-
secondary: colors.
|
|
10
|
+
secondary: colors.secondary
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
dot: {
|
|
@@ -15,18 +15,14 @@ const Stepper = ({ colors, spacing, fontSizes, fontWeights, radii }) => ({
|
|
|
15
15
|
backgroundColor: {
|
|
16
16
|
active: colors.primary,
|
|
17
17
|
inactive: colors.elements.backgroundAndDisabled,
|
|
18
|
-
secondary: colors.
|
|
18
|
+
secondary: colors.secondary
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
label: {
|
|
22
|
-
font: {
|
|
23
|
-
weight: fontWeights.bold,
|
|
24
|
-
size: fontSizes.xsmall
|
|
25
|
-
},
|
|
26
22
|
color: {
|
|
27
23
|
active: colors.primary,
|
|
28
24
|
inactive: colors.elements.selectionAndIcons,
|
|
29
|
-
secondary: colors.
|
|
25
|
+
secondary: colors.secondary
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { arrayOf, bool, number, string } from "prop-types";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { arrayOf, bool, number, string } from "prop-types";
|
|
4
4
|
import styled, { css } from "styled-components";
|
|
5
5
|
import Text from "../../Text";
|
|
6
6
|
import activeDot from "../activeDot";
|
|
@@ -32,7 +32,7 @@ const Dot = styled.View(
|
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
|
-
const Label = styled(Text.
|
|
35
|
+
const Label = styled(Text.Overline)(
|
|
36
36
|
({
|
|
37
37
|
active,
|
|
38
38
|
secondary,
|
|
@@ -48,7 +48,6 @@ const Label = styled(Text.Bold)(
|
|
|
48
48
|
margin-top: 10px;
|
|
49
49
|
margin-left: -40px;
|
|
50
50
|
color: ${active ? stepper.label.color[state] : stepper.label.color.inactive};
|
|
51
|
-
font-size: ${stepper.label.font.size}px;
|
|
52
51
|
text-align: center;
|
|
53
52
|
`;
|
|
54
53
|
}
|
package/esm/Stepper/web/Dots.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { arrayOf, bool, number, string } from "prop-types";
|
|
4
4
|
import styled, { css } from "styled-components";
|
|
5
|
-
import activeDot from "../activeDot";
|
|
6
5
|
import Text from "../../Text";
|
|
6
|
+
import activeDot from "../activeDot";
|
|
7
7
|
const Dot = styled.div`
|
|
8
8
|
${({
|
|
9
9
|
theme: {
|
|
@@ -18,20 +18,10 @@ const Dot = styled.div`
|
|
|
18
18
|
border-radius: ${stepper.dot.radius}px;
|
|
19
19
|
`}
|
|
20
20
|
`;
|
|
21
|
-
const Label = styled(Text.
|
|
22
|
-
|
|
23
|
-
theme: {
|
|
24
|
-
yoga: {
|
|
25
|
-
components: { stepper }
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}) => css`
|
|
29
|
-
width: 95px;
|
|
21
|
+
const Label = styled(Text.Overline)`
|
|
22
|
+
width: 95px;
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
transform: translateX(-50%);
|
|
34
|
-
`}
|
|
24
|
+
transform: translateX(-50%);
|
|
35
25
|
`;
|
|
36
26
|
const DotWrapper = styled.div`
|
|
37
27
|
${({
|
|
@@ -228,6 +228,39 @@ const v3theme = createTheme((tokens) => ({
|
|
|
228
228
|
weight: tokens.fontWeights.medium
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
+
},
|
|
232
|
+
dropdown: {
|
|
233
|
+
input: {
|
|
234
|
+
font: {
|
|
235
|
+
size: tokens.fontSizes.small,
|
|
236
|
+
lineHeight: tokens.lineHeights.small
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
option: {
|
|
240
|
+
font: {
|
|
241
|
+
size: tokens.fontSizes.small,
|
|
242
|
+
lineHeight: tokens.lineHeights.small,
|
|
243
|
+
weight: tokens.fontWeights.medium
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
backdrop: {
|
|
247
|
+
content: {
|
|
248
|
+
title: {
|
|
249
|
+
font: {
|
|
250
|
+
weight: tokens.fontWeights.bold,
|
|
251
|
+
size: tokens.fontSizes.medium
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
selected: {
|
|
257
|
+
option: {
|
|
258
|
+
font: {
|
|
259
|
+
weight: tokens.fontWeights.bold,
|
|
260
|
+
size: tokens.fontSizes.small
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
231
264
|
}
|
|
232
265
|
}
|
|
233
266
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.113.0",
|
|
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": "4e633d4c26ba8948f69ac53f785e4210e2e82db8",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|