@gympass/yoga 7.115.7 → 7.116.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/Theme/theme/theme.js +19 -11
- package/esm/Theme/theme/theme.js +19 -11
- package/package.json +5 -5
- package/typings/NavigationMenu/NavigationMenu.theme.d.ts +83 -1
- package/typings/Theme/helpers/themeGenerator/themeGenerator.d.ts +2 -2
- package/typings/Theme/index.d.ts +14 -0
- package/typings/Theme/theme/index.d.ts +10 -0
- package/typings/Theme/theme/theme.d.ts +2059 -0
- package/typings/index-477f01b8.d.ts +25 -0
- package/typings/index.d.ts +5 -26
package/cjs/Theme/theme/theme.js
CHANGED
|
@@ -50,13 +50,13 @@ __export(theme_exports, {
|
|
|
50
50
|
module.exports = __toCommonJS(theme_exports);
|
|
51
51
|
var import_yoga_common = require("@gympass/yoga-common");
|
|
52
52
|
var import_componentThemes = __toESM(require("./componentThemes"));
|
|
53
|
-
const getComponentThemes = (
|
|
54
|
-
const { colors, baseFont, baseFontSize } =
|
|
53
|
+
const getComponentThemes = (theme2) => {
|
|
54
|
+
const { colors, baseFont, baseFontSize } = theme2;
|
|
55
55
|
const components = Object.entries(import_componentThemes.default).reduce(
|
|
56
56
|
(componentsStyles, [names, themed]) => {
|
|
57
57
|
const name = names.toLowerCase();
|
|
58
58
|
return __spreadProps(__spreadValues({}, componentsStyles), {
|
|
59
|
-
[name]: themed(__spreadProps(__spreadValues({},
|
|
59
|
+
[name]: themed(__spreadProps(__spreadValues({}, theme2), {
|
|
60
60
|
colors,
|
|
61
61
|
baseFont,
|
|
62
62
|
baseFontSize
|
|
@@ -74,10 +74,22 @@ const theme = (tokens) => {
|
|
|
74
74
|
primary: tokens.colors.vibin,
|
|
75
75
|
secondary: tokens.colors.stamina,
|
|
76
76
|
feedback: {
|
|
77
|
-
success: [tokens.colors.success, tokens.colors.hope],
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
success: Object.assign([tokens.colors.success, tokens.colors.hope], {
|
|
78
|
+
light: tokens.colors.success,
|
|
79
|
+
dark: tokens.colors.hope
|
|
80
|
+
}),
|
|
81
|
+
informative: Object.assign([tokens.colors.neutral, tokens.colors.relax], {
|
|
82
|
+
light: tokens.colors.neutral,
|
|
83
|
+
dark: tokens.colors.relax
|
|
84
|
+
}),
|
|
85
|
+
attention: Object.assign([tokens.colors.attention, tokens.colors.verve], {
|
|
86
|
+
light: tokens.colors.attention,
|
|
87
|
+
dark: tokens.colors.verve
|
|
88
|
+
}),
|
|
89
|
+
neutral: Object.assign([tokens.colors.light, tokens.colors.medium], {
|
|
90
|
+
light: tokens.colors.light,
|
|
91
|
+
dark: tokens.colors.medium
|
|
92
|
+
})
|
|
81
93
|
},
|
|
82
94
|
text: {
|
|
83
95
|
primary: tokens.colors.stamina,
|
|
@@ -90,10 +102,6 @@ const theme = (tokens) => {
|
|
|
90
102
|
backgroundAndDisabled: tokens.colors.clear
|
|
91
103
|
}
|
|
92
104
|
});
|
|
93
|
-
[colors.feedback.success.light, colors.feedback.success.dark] = colors.feedback.success;
|
|
94
|
-
[colors.feedback.informative.light, colors.feedback.informative.dark] = colors.feedback.informative;
|
|
95
|
-
[colors.feedback.attention.light, colors.feedback.attention.dark] = colors.feedback.attention;
|
|
96
|
-
[colors.feedback.neutral.light, colors.feedback.neutral.dark] = colors.feedback.neutral;
|
|
97
105
|
return __spreadProps(__spreadValues({}, tokens), {
|
|
98
106
|
colors,
|
|
99
107
|
baseFont,
|
package/esm/Theme/theme/theme.js
CHANGED
|
@@ -19,13 +19,13 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { merge } from "@gympass/yoga-common";
|
|
21
21
|
import componentThemes from "./componentThemes";
|
|
22
|
-
const getComponentThemes = (
|
|
23
|
-
const { colors, baseFont, baseFontSize } =
|
|
22
|
+
const getComponentThemes = (theme2) => {
|
|
23
|
+
const { colors, baseFont, baseFontSize } = theme2;
|
|
24
24
|
const components = Object.entries(componentThemes).reduce(
|
|
25
25
|
(componentsStyles, [names, themed]) => {
|
|
26
26
|
const name = names.toLowerCase();
|
|
27
27
|
return __spreadProps(__spreadValues({}, componentsStyles), {
|
|
28
|
-
[name]: themed(__spreadProps(__spreadValues({},
|
|
28
|
+
[name]: themed(__spreadProps(__spreadValues({}, theme2), {
|
|
29
29
|
colors,
|
|
30
30
|
baseFont,
|
|
31
31
|
baseFontSize
|
|
@@ -43,10 +43,22 @@ const theme = (tokens) => {
|
|
|
43
43
|
primary: tokens.colors.vibin,
|
|
44
44
|
secondary: tokens.colors.stamina,
|
|
45
45
|
feedback: {
|
|
46
|
-
success: [tokens.colors.success, tokens.colors.hope],
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
success: Object.assign([tokens.colors.success, tokens.colors.hope], {
|
|
47
|
+
light: tokens.colors.success,
|
|
48
|
+
dark: tokens.colors.hope
|
|
49
|
+
}),
|
|
50
|
+
informative: Object.assign([tokens.colors.neutral, tokens.colors.relax], {
|
|
51
|
+
light: tokens.colors.neutral,
|
|
52
|
+
dark: tokens.colors.relax
|
|
53
|
+
}),
|
|
54
|
+
attention: Object.assign([tokens.colors.attention, tokens.colors.verve], {
|
|
55
|
+
light: tokens.colors.attention,
|
|
56
|
+
dark: tokens.colors.verve
|
|
57
|
+
}),
|
|
58
|
+
neutral: Object.assign([tokens.colors.light, tokens.colors.medium], {
|
|
59
|
+
light: tokens.colors.light,
|
|
60
|
+
dark: tokens.colors.medium
|
|
61
|
+
})
|
|
50
62
|
},
|
|
51
63
|
text: {
|
|
52
64
|
primary: tokens.colors.stamina,
|
|
@@ -59,10 +71,6 @@ const theme = (tokens) => {
|
|
|
59
71
|
backgroundAndDisabled: tokens.colors.clear
|
|
60
72
|
}
|
|
61
73
|
});
|
|
62
|
-
[colors.feedback.success.light, colors.feedback.success.dark] = colors.feedback.success;
|
|
63
|
-
[colors.feedback.informative.light, colors.feedback.informative.dark] = colors.feedback.informative;
|
|
64
|
-
[colors.feedback.attention.light, colors.feedback.attention.dark] = colors.feedback.attention;
|
|
65
|
-
[colors.feedback.neutral.light, colors.feedback.neutral.dark] = colors.feedback.neutral;
|
|
66
74
|
return __spreadProps(__spreadValues({}, tokens), {
|
|
67
75
|
colors,
|
|
68
76
|
baseFont,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.116.2",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"url": "https://github.com/Gympass/yoga/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@gympass/yoga-common": "^1.
|
|
29
|
+
"@gympass/yoga-common": "^1.4.1",
|
|
30
30
|
"@gympass/yoga-helpers": "^1.1.1",
|
|
31
31
|
"@gympass/yoga-icons": "^1.25.0",
|
|
32
32
|
"@gympass/yoga-illustrations": "^0.7.1",
|
|
33
|
-
"@gympass/yoga-system": "^0.
|
|
34
|
-
"@gympass/yoga-tokens": "^3.6.
|
|
33
|
+
"@gympass/yoga-system": "^0.24.0",
|
|
34
|
+
"@gympass/yoga-tokens": "^3.6.4",
|
|
35
35
|
"@ptomasroos/react-native-multi-slider": "^2.1.1",
|
|
36
36
|
"@radix-ui/react-dropdown-menu": "^2.0.1",
|
|
37
37
|
"date-fns": "^2.29.2",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-native": "0.72.3",
|
|
58
58
|
"styled-components": "^4.4.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "a0fb25fa6b6313cf83a16287235519c989d1a2b5",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
import * as styled_components from 'styled-components';
|
|
2
|
+
|
|
3
|
+
declare const NavigationMenu: (theme: any) => {
|
|
4
|
+
avatar: {
|
|
5
|
+
height: any;
|
|
6
|
+
width: any;
|
|
7
|
+
};
|
|
8
|
+
backgroundColor: {
|
|
9
|
+
contextMenu: any;
|
|
10
|
+
default: any;
|
|
11
|
+
hover: any;
|
|
12
|
+
active: any;
|
|
13
|
+
tag: any;
|
|
14
|
+
bottomMenu: any;
|
|
15
|
+
};
|
|
16
|
+
border: {
|
|
17
|
+
color: {
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
radius: {
|
|
21
|
+
default: any;
|
|
22
|
+
circle: any;
|
|
23
|
+
tag: any;
|
|
24
|
+
action: any;
|
|
25
|
+
contextMenu: any;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
font: {
|
|
29
|
+
color: {
|
|
30
|
+
default: any;
|
|
31
|
+
active: any;
|
|
32
|
+
hover: any;
|
|
33
|
+
};
|
|
34
|
+
weight: {
|
|
35
|
+
bold: any;
|
|
36
|
+
medium: any;
|
|
37
|
+
};
|
|
38
|
+
size: {
|
|
39
|
+
contextMenu: {
|
|
40
|
+
title: any;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
gap: {
|
|
45
|
+
xxxsmall: any;
|
|
46
|
+
xxsmall: any;
|
|
47
|
+
medium: any;
|
|
48
|
+
};
|
|
49
|
+
height: {
|
|
50
|
+
xxlarge: any;
|
|
51
|
+
xlarge: any;
|
|
52
|
+
contextMenu: number;
|
|
53
|
+
bottomMenu: any;
|
|
54
|
+
};
|
|
55
|
+
hover: {
|
|
56
|
+
contextMenu: styled_components.FlattenSimpleInterpolation;
|
|
57
|
+
};
|
|
58
|
+
icon: {
|
|
59
|
+
height: any;
|
|
60
|
+
width: any;
|
|
61
|
+
fill: {
|
|
62
|
+
default: any;
|
|
63
|
+
actions: any;
|
|
64
|
+
active: any;
|
|
65
|
+
hover: any;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
padding: {
|
|
69
|
+
xxxsmall: any;
|
|
70
|
+
xxsmall: any;
|
|
71
|
+
xsmall: any;
|
|
72
|
+
small: any;
|
|
73
|
+
};
|
|
74
|
+
tag: {
|
|
75
|
+
color: {
|
|
76
|
+
default: any;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
width: {
|
|
80
|
+
xxlarge: any;
|
|
81
|
+
xlarge: any;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
2
84
|
|
|
3
85
|
export { NavigationMenu as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { T as ThemeProvider } from '../index-477f01b8.js';
|
|
2
|
+
export { _ as FontLoader, a as theme } from '../index-477f01b8.js';
|
|
3
|
+
export { Theme, default as yogaTheme } from './theme/theme.js';
|
|
4
|
+
export { v3theme } from './theme/v3theme.js';
|
|
5
|
+
export { default as createTheme } from './helpers/themeGenerator/themeGenerator.js';
|
|
6
|
+
import 'prop-types';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '@gympass/yoga-tokens/global/transition';
|
|
9
|
+
import 'styled-components';
|
|
10
|
+
import '@gympass/yoga-tokens';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export { ThemeProvider, ThemeProvider as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import composeTheme from './theme.js';
|
|
2
|
+
export { Theme } from './theme.js';
|
|
3
|
+
export { v3theme } from './v3theme.js';
|
|
4
|
+
import '@gympass/yoga-tokens/global/transition';
|
|
5
|
+
import 'styled-components';
|
|
6
|
+
import '@gympass/yoga-tokens';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export { composeTheme as default };
|