@gympass/yoga 7.115.6 → 7.116.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.
@@ -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 = (tokens) => {
54
- const { colors, baseFont, baseFontSize } = tokens;
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({}, tokens), {
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
- informative: [tokens.colors.neutral, tokens.colors.relax],
79
- attention: [tokens.colors.attention, tokens.colors.verve],
80
- neutral: [tokens.colors.light, tokens.colors.medium]
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,
@@ -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 = (tokens) => {
23
- const { colors, baseFont, baseFontSize } = tokens;
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({}, tokens), {
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
- informative: [tokens.colors.neutral, tokens.colors.relax],
48
- attention: [tokens.colors.attention, tokens.colors.verve],
49
- neutral: [tokens.colors.light, tokens.colors.medium]
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.115.6",
3
+ "version": "7.116.1",
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.3.1",
29
+ "@gympass/yoga-common": "^1.4.0",
30
30
  "@gympass/yoga-helpers": "^1.1.1",
31
- "@gympass/yoga-icons": "^1.24.0",
31
+ "@gympass/yoga-icons": "^1.25.0",
32
32
  "@gympass/yoga-illustrations": "^0.7.1",
33
- "@gympass/yoga-system": "^0.23.1",
34
- "@gympass/yoga-tokens": "^3.6.1",
33
+ "@gympass/yoga-system": "^0.24.0",
34
+ "@gympass/yoga-tokens": "^3.6.3",
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": "7f3c203db52c0b9c0589b19826e0b0e8044afa00",
60
+ "gitHead": "1f1416d5280d5888e482fcb80b49516b1d096846",
61
61
  "module": "./esm",
62
62
  "private": false,
63
63
  "react-native": "./cjs/index.native.js"
@@ -1,3 +1,85 @@
1
- declare const NavigationMenu: (theme: any) => any;
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 };
@@ -1,7 +1,7 @@
1
- import YogaTokens from '@gympass/yoga-tokens';
1
+ import yogaTokens from '@gympass/yoga-tokens';
2
2
 
3
3
  declare type ThemeVars = {
4
- (tokens: typeof YogaTokens): {};
4
+ (tokens: typeof yogaTokens): {};
5
5
  isFromThemeBuilder?: boolean;
6
6
  };
7
7
  /**
@@ -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 };