@gympass/yoga 7.104.1 → 7.106.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/Checkbox/web/Checkbox.js +2 -2
- package/cjs/NavigationMenu/NavigationMenu.theme.js +124 -41
- package/cjs/NavigationMenu/web/BottomItems/BottomItem.js +7 -2
- package/cjs/NavigationMenu/web/BottomItems/BottomItems.js +5 -4
- package/cjs/NavigationMenu/web/Item/styles.js +6 -16
- package/cjs/NavigationMenu/web/Menu/Menu.js +91 -26
- package/cjs/NavigationMenu/web/NavigationMenu.js +7 -5
- package/cjs/NavigationMenu/web/Switcher/Actions.js +9 -5
- package/cjs/NavigationMenu/web/Switcher/Switcher.js +3 -3
- package/cjs/Text/Text.theme.js +74 -35
- package/cjs/Text/native/Text.test.js +88 -59
- package/cjs/Text/textStyle.android.js +12 -15
- package/cjs/Text/textStyle.ios.js +11 -11
- package/cjs/Text/textStyle.web.js +11 -10
- package/cjs/Text/web/Text.test.js +87 -57
- package/cjs/Theme/theme/v3theme.js +158 -1
- package/esm/Checkbox/web/Checkbox.js +2 -2
- package/esm/NavigationMenu/NavigationMenu.theme.js +124 -41
- package/esm/NavigationMenu/web/BottomItems/BottomItem.js +7 -2
- package/esm/NavigationMenu/web/BottomItems/BottomItems.js +5 -4
- package/esm/NavigationMenu/web/Item/styles.js +6 -16
- package/esm/NavigationMenu/web/Menu/Menu.js +92 -27
- package/esm/NavigationMenu/web/NavigationMenu.js +7 -5
- package/esm/NavigationMenu/web/Switcher/Actions.js +9 -5
- package/esm/NavigationMenu/web/Switcher/Switcher.js +3 -3
- package/esm/Text/Text.theme.js +74 -35
- package/esm/Text/native/Text.test.js +30 -1
- package/esm/Text/textStyle.android.js +12 -15
- package/esm/Text/textStyle.ios.js +11 -11
- package/esm/Text/textStyle.web.js +11 -10
- package/esm/Text/web/Text.test.js +31 -1
- package/esm/Theme/theme/v3theme.js +158 -1
- package/package.json +2 -2
- package/typings/{Actions-cd7fac99.d.ts → Actions-752d7514.d.ts} +2 -2
- package/typings/NavigationMenu/NavigationMenu.theme.d.ts +1 -71
- package/typings/NavigationMenu/index.d.ts +2 -2
- package/typings/NavigationMenu/web/BottomItems/index.d.ts +2 -1
- package/typings/NavigationMenu/web/Menu/index.d.ts +3 -1
- package/typings/NavigationMenu/web/Switcher/index.d.ts +1 -1
- package/typings/NavigationMenu/web/index.d.ts +2 -2
- package/typings/{NavigationMenu-57b14b2b.d.ts → NavigationMenu-8c022497.d.ts} +9 -11
- package/typings/Theme/theme/v3theme.d.ts +37 -37
- package/typings/index.d.ts +2 -2
|
@@ -10,15 +10,18 @@ const textStyle = (type) => () => css`
|
|
|
10
10
|
theme: {
|
|
11
11
|
yoga: {
|
|
12
12
|
baseFont,
|
|
13
|
-
|
|
14
|
-
components: {
|
|
15
|
-
text: {
|
|
16
|
-
[type]: { fontFamily, fontWeight }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
13
|
+
components: { text }
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
16
|
}) => {
|
|
17
|
+
const themeFontFamily = text[type].fontFamily ? `${text[type].fontFamily}, ` : "";
|
|
18
|
+
let finalFontWeight = text[type].fontWeight;
|
|
19
|
+
if (light && text[`${type}-light`]) {
|
|
20
|
+
finalFontWeight = text[`${type}-light`].fontWeight;
|
|
21
|
+
}
|
|
22
|
+
if (bold && text[`${type}-bold`]) {
|
|
23
|
+
finalFontWeight = text[`${type}-bold`].fontWeight;
|
|
24
|
+
}
|
|
22
25
|
return css`
|
|
23
26
|
${numberOfLines ? `
|
|
24
27
|
display: -webkit-box;
|
|
@@ -27,10 +30,8 @@ const textStyle = (type) => () => css`
|
|
|
27
30
|
overflow: hidden;
|
|
28
31
|
` : ""}
|
|
29
32
|
|
|
30
|
-
font-family: ${
|
|
31
|
-
${
|
|
32
|
-
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
33
|
-
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
33
|
+
font-family: ${`${themeFontFamily}${baseFont.family}`};
|
|
34
|
+
${finalFontWeight ? `font-weight: ${finalFontWeight};` : ""}
|
|
34
35
|
`;
|
|
35
36
|
}}
|
|
36
37
|
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { render } from "@testing-library/react";
|
|
4
|
-
import { ThemeProvider } from "../..";
|
|
5
4
|
import { Text } from ".";
|
|
5
|
+
import { ThemeProvider, v3theme } from "../..";
|
|
6
6
|
describe("<Text />", () => {
|
|
7
7
|
describe("Snapshots", () => {
|
|
8
8
|
it("should match snapshot with Text", () => {
|
|
@@ -35,6 +35,36 @@ describe("<Text />", () => {
|
|
|
35
35
|
);
|
|
36
36
|
expect(container).toMatchSnapshot();
|
|
37
37
|
});
|
|
38
|
+
it("should match snapshot with Text when v3theme is settled", () => {
|
|
39
|
+
const { container } = render(
|
|
40
|
+
/* @__PURE__ */ jsxs(ThemeProvider, { theme: v3theme, children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Text.Display1, { children: "Text Display1" }),
|
|
42
|
+
/* @__PURE__ */ jsx(Text.Display2, { children: "Text Display2" }),
|
|
43
|
+
/* @__PURE__ */ jsx(Text.Display3, { children: "Text Display3" }),
|
|
44
|
+
/* @__PURE__ */ jsx(Text.Display4, { children: "Text Display4" }),
|
|
45
|
+
/* @__PURE__ */ jsx(Text.DisplayNumber, { children: "Text DisplayNumber" }),
|
|
46
|
+
/* @__PURE__ */ jsx(Text.H1, { children: "Text H1" }),
|
|
47
|
+
/* @__PURE__ */ jsx(Text.H2, { children: "Text H2" }),
|
|
48
|
+
/* @__PURE__ */ jsx(Text.H3, { children: "Text H3" }),
|
|
49
|
+
/* @__PURE__ */ jsx(Text.H4, { children: "Text H4" }),
|
|
50
|
+
/* @__PURE__ */ jsx(Text.H5, { children: "Text H5" }),
|
|
51
|
+
/* @__PURE__ */ jsx(Text.Body1, { children: "Text Body1" }),
|
|
52
|
+
/* @__PURE__ */ jsx(Text.Body2, { children: "Text Body2" }),
|
|
53
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: "Text Caption" }),
|
|
54
|
+
/* @__PURE__ */ jsx(Text.Overline, { children: "Text Overline" }),
|
|
55
|
+
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Text SectionTitle" }),
|
|
56
|
+
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Text SmallestException" }),
|
|
57
|
+
/* @__PURE__ */ jsx(Text, { children: "Text" }),
|
|
58
|
+
/* @__PURE__ */ jsx(Text.Small, { children: "Text Small" }),
|
|
59
|
+
/* @__PURE__ */ jsx(Text.Tiny, { children: "Text Tiny" }),
|
|
60
|
+
/* @__PURE__ */ jsx(Text.Regular, { children: "Text Regular" }),
|
|
61
|
+
/* @__PURE__ */ jsx(Text.Medium, { children: "Text Medium" }),
|
|
62
|
+
/* @__PURE__ */ jsx(Text.Bold, { children: "Text Bold" }),
|
|
63
|
+
/* @__PURE__ */ jsx(Text.Black, { children: "Text Black" })
|
|
64
|
+
] })
|
|
65
|
+
);
|
|
66
|
+
expect(container).toMatchSnapshot();
|
|
67
|
+
});
|
|
38
68
|
it("should match snapshot with Text variant", () => {
|
|
39
69
|
const { container } = render(
|
|
40
70
|
/* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
@@ -49,7 +49,164 @@ const v3theme = createTheme((tokens) => ({
|
|
|
49
49
|
backgroundAndDisabled: tokens.colors.clearNew
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
baseFont: tokens.fonts.inter
|
|
52
|
+
baseFont: tokens.fonts.inter,
|
|
53
|
+
components: {
|
|
54
|
+
text: {
|
|
55
|
+
display1: {
|
|
56
|
+
fontFamily: "NaN Holo Condensed",
|
|
57
|
+
fontsize: tokens.fontSizes.xhuge,
|
|
58
|
+
fontWeight: tokens.fontWeights.bold,
|
|
59
|
+
lineHeight: tokens.lineHeights.xhuge
|
|
60
|
+
},
|
|
61
|
+
display2: {
|
|
62
|
+
fontFamily: "NaN Holo Condensed",
|
|
63
|
+
fontsize: tokens.fontSizes.xxxlarge,
|
|
64
|
+
fontWeight: tokens.fontWeights.bold,
|
|
65
|
+
lineHeight: tokens.lineHeights.xxlarge
|
|
66
|
+
},
|
|
67
|
+
display3: {
|
|
68
|
+
fontFamily: "NaN Holo Condensed",
|
|
69
|
+
fontsize: tokens.fontSizes.xxlarge,
|
|
70
|
+
fontWeight: tokens.fontWeights.bold,
|
|
71
|
+
lineHeight: tokens.lineHeights.xlarge
|
|
72
|
+
},
|
|
73
|
+
display4: {
|
|
74
|
+
fontFamily: "NaN Holo Condensed",
|
|
75
|
+
fontsize: tokens.fontSizes.xlarge,
|
|
76
|
+
fontWeight: tokens.fontWeights.bold,
|
|
77
|
+
lineHeight: tokens.lineHeights.medium
|
|
78
|
+
},
|
|
79
|
+
displayNumber: {
|
|
80
|
+
fontFamily: "NaN Holo Condensed",
|
|
81
|
+
fontsize: tokens.fontSizes.xxxlarge,
|
|
82
|
+
fontWeight: tokens.fontWeights.bold,
|
|
83
|
+
lineHeight: tokens.lineHeights.xxlarge
|
|
84
|
+
},
|
|
85
|
+
h1: {
|
|
86
|
+
fontsize: tokens.fontSizes.huge,
|
|
87
|
+
fontWeight: tokens.fontWeights.medium,
|
|
88
|
+
lineHeight: tokens.lineHeights.huge
|
|
89
|
+
},
|
|
90
|
+
"h1-light": null,
|
|
91
|
+
"h1-bold": {
|
|
92
|
+
fontWeight: tokens.fontWeights.bold
|
|
93
|
+
},
|
|
94
|
+
h2: {
|
|
95
|
+
fontsize: tokens.fontSizes.xxxlarge,
|
|
96
|
+
fontWeight: tokens.fontWeights.medium,
|
|
97
|
+
lineHeight: tokens.lineHeights.xxxlarge
|
|
98
|
+
},
|
|
99
|
+
"h2-light": null,
|
|
100
|
+
"h2-bold": {
|
|
101
|
+
fontWeight: tokens.fontWeights.bold
|
|
102
|
+
},
|
|
103
|
+
h3: {
|
|
104
|
+
fontsize: tokens.fontSizes.xxlarge,
|
|
105
|
+
lineHeight: tokens.lineHeights.xxlarge,
|
|
106
|
+
fontWeight: tokens.fontWeights.medium
|
|
107
|
+
},
|
|
108
|
+
"h3-light": null,
|
|
109
|
+
"h3-bold": {
|
|
110
|
+
fontWeight: tokens.fontWeights.bold
|
|
111
|
+
},
|
|
112
|
+
h4: {
|
|
113
|
+
fontsize: tokens.fontSizes.xlarge,
|
|
114
|
+
fontWeight: tokens.fontWeights.medium,
|
|
115
|
+
lineHeight: tokens.lineHeights.xlarge
|
|
116
|
+
},
|
|
117
|
+
"h4-light": null,
|
|
118
|
+
"h4-bold": {
|
|
119
|
+
fontWeight: tokens.fontWeights.bold
|
|
120
|
+
},
|
|
121
|
+
h5: {
|
|
122
|
+
fontsize: tokens.fontSizes.large,
|
|
123
|
+
fontWeight: tokens.fontWeights.medium,
|
|
124
|
+
lineHeight: tokens.lineHeights.large
|
|
125
|
+
},
|
|
126
|
+
"h5-light": null,
|
|
127
|
+
"h5-bold": {
|
|
128
|
+
fontWeight: tokens.fontWeights.bold
|
|
129
|
+
},
|
|
130
|
+
body1: {
|
|
131
|
+
fontsize: tokens.fontSizes.medium,
|
|
132
|
+
fontWeight: tokens.fontWeights.medium,
|
|
133
|
+
lineHeight: tokens.lineHeights.medium
|
|
134
|
+
},
|
|
135
|
+
"body1-bold": {
|
|
136
|
+
fontWeight: tokens.fontWeights.bold
|
|
137
|
+
},
|
|
138
|
+
body2: {
|
|
139
|
+
fontsize: tokens.fontSizes.small,
|
|
140
|
+
fontWeight: tokens.fontWeights.medium,
|
|
141
|
+
lineHeight: tokens.lineHeights.small
|
|
142
|
+
},
|
|
143
|
+
"body2-bold": {
|
|
144
|
+
fontWeight: tokens.fontWeights.bold
|
|
145
|
+
},
|
|
146
|
+
caption: {
|
|
147
|
+
fontsize: tokens.fontSizes.xsmall,
|
|
148
|
+
fontWeight: tokens.fontWeights.regular,
|
|
149
|
+
lineHeight: tokens.lineHeights.xsmall
|
|
150
|
+
},
|
|
151
|
+
overline: {
|
|
152
|
+
fontsize: tokens.fontSizes.xsmall,
|
|
153
|
+
fontWeight: tokens.fontWeights.bold,
|
|
154
|
+
lineHeight: tokens.lineHeights.xsmall
|
|
155
|
+
},
|
|
156
|
+
sectionTitle: {
|
|
157
|
+
fontsize: tokens.fontSizes.xsmall,
|
|
158
|
+
fontWeight: tokens.fontWeights.medium,
|
|
159
|
+
lineHeight: tokens.lineHeights.xsmall,
|
|
160
|
+
letterSpacing: 1,
|
|
161
|
+
textTransform: "uppercase"
|
|
162
|
+
},
|
|
163
|
+
smallestException: {
|
|
164
|
+
fontsize: tokens.fontSizes.xxsmall,
|
|
165
|
+
fontWeight: tokens.fontWeights.regular,
|
|
166
|
+
lineHeight: tokens.lineHeights.xxsmall
|
|
167
|
+
},
|
|
168
|
+
// deprecated, please don't use
|
|
169
|
+
p: {
|
|
170
|
+
fontsize: tokens.fontSizes.medium,
|
|
171
|
+
fontWeight: tokens.fontWeights.medium,
|
|
172
|
+
lineHeight: tokens.lineHeights.medium
|
|
173
|
+
},
|
|
174
|
+
"p-light": null,
|
|
175
|
+
"p-bold": {
|
|
176
|
+
fontWeight: tokens.fontWeights.bold
|
|
177
|
+
},
|
|
178
|
+
small: {
|
|
179
|
+
fontsize: tokens.fontSizes.small,
|
|
180
|
+
fontWeight: tokens.fontWeights.medium,
|
|
181
|
+
lineHeight: tokens.lineHeights.small
|
|
182
|
+
},
|
|
183
|
+
"small-light": null,
|
|
184
|
+
"small-bold": {
|
|
185
|
+
fontWeight: tokens.fontWeights.bold
|
|
186
|
+
},
|
|
187
|
+
tiny: {
|
|
188
|
+
fontsize: tokens.fontSizes.xsmall,
|
|
189
|
+
fontWeight: tokens.fontWeights.regular,
|
|
190
|
+
lineHeight: tokens.lineHeights.xsmall
|
|
191
|
+
},
|
|
192
|
+
"tiny-light": null,
|
|
193
|
+
light: {
|
|
194
|
+
fontWeight: tokens.fontWeights.light
|
|
195
|
+
},
|
|
196
|
+
regular: {
|
|
197
|
+
fontWeight: tokens.fontWeights.regular
|
|
198
|
+
},
|
|
199
|
+
medium: {
|
|
200
|
+
fontWeight: tokens.fontWeights.medium
|
|
201
|
+
},
|
|
202
|
+
bold: {
|
|
203
|
+
fontWeight: tokens.fontWeights.bold
|
|
204
|
+
},
|
|
205
|
+
black: {
|
|
206
|
+
fontWeight: tokens.fontWeights.black
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
53
210
|
}));
|
|
54
211
|
export {
|
|
55
212
|
v3theme
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.106.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": "22aaf247b6ebdfa5b26898a21afbfddb3e604445",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -6,8 +6,8 @@ declare type SwitcherActionsProps = {
|
|
|
6
6
|
declare type ActionsProps = {
|
|
7
7
|
actions?: SwitcherActionsProps[];
|
|
8
8
|
sideOffset?: number;
|
|
9
|
-
|
|
9
|
+
zIndex?: number;
|
|
10
10
|
};
|
|
11
|
-
declare function Actions({ actions, sideOffset,
|
|
11
|
+
declare function Actions({ actions, sideOffset, zIndex }: ActionsProps): JSX.Element | null;
|
|
12
12
|
|
|
13
13
|
export { ActionsProps as A, Actions as a };
|
|
@@ -1,73 +1,3 @@
|
|
|
1
|
-
declare const NavigationMenu: (
|
|
2
|
-
colors: any;
|
|
3
|
-
fontWeights: any;
|
|
4
|
-
radii: any;
|
|
5
|
-
spacing: any;
|
|
6
|
-
}) => {
|
|
7
|
-
avatar: {
|
|
8
|
-
height: any;
|
|
9
|
-
width: any;
|
|
10
|
-
};
|
|
11
|
-
backgroundColor: {
|
|
12
|
-
default: any;
|
|
13
|
-
hover: any;
|
|
14
|
-
stamina: any;
|
|
15
|
-
yoga: any;
|
|
16
|
-
white: any;
|
|
17
|
-
};
|
|
18
|
-
border: {
|
|
19
|
-
color: {
|
|
20
|
-
default: any;
|
|
21
|
-
white: any;
|
|
22
|
-
};
|
|
23
|
-
radius: {
|
|
24
|
-
default: any;
|
|
25
|
-
circle: any;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
font: {
|
|
29
|
-
color: {
|
|
30
|
-
default: any;
|
|
31
|
-
active: any;
|
|
32
|
-
hover: any;
|
|
33
|
-
};
|
|
34
|
-
weight: {
|
|
35
|
-
medium: any;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
gap: {
|
|
39
|
-
xxxsmall: any;
|
|
40
|
-
xxsmall: any;
|
|
41
|
-
medium: any;
|
|
42
|
-
};
|
|
43
|
-
height: {
|
|
44
|
-
xxlarge: any;
|
|
45
|
-
xlarge: any;
|
|
46
|
-
};
|
|
47
|
-
icon: {
|
|
48
|
-
height: any;
|
|
49
|
-
width: any;
|
|
50
|
-
fill: {
|
|
51
|
-
default: any;
|
|
52
|
-
active: any;
|
|
53
|
-
hover: any;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
padding: {
|
|
57
|
-
xxxsmall: any;
|
|
58
|
-
xxsmall: any;
|
|
59
|
-
xsmall: any;
|
|
60
|
-
small: any;
|
|
61
|
-
};
|
|
62
|
-
tag: {
|
|
63
|
-
color: {
|
|
64
|
-
default: any;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
width: {
|
|
68
|
-
xxlarge: any;
|
|
69
|
-
xlarge: any;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
1
|
+
declare const NavigationMenu: (theme: any) => any;
|
|
72
2
|
|
|
73
3
|
export { NavigationMenu as default };
|
|
@@ -3,8 +3,9 @@ import React from 'react';
|
|
|
3
3
|
declare type BottomItemsStyledProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
4
4
|
$zIndex?: number;
|
|
5
5
|
};
|
|
6
|
-
declare type BottomItemsProps = BottomItemsStyledProps & {
|
|
6
|
+
declare type BottomItemsProps = Omit<BottomItemsStyledProps, '$zIndex'> & {
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
+
zIndex: number;
|
|
8
9
|
};
|
|
9
10
|
declare const BottomItems: ({ children, ...containerProps }: BottomItemsProps) => JSX.Element;
|
|
10
11
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { _ as _default } from '../../../Icon-19f6da82.js';
|
|
2
3
|
|
|
3
4
|
declare type MenuProps = {
|
|
4
5
|
avatar: React.ReactElement;
|
|
5
6
|
subtitle?: string;
|
|
6
7
|
title?: string;
|
|
7
8
|
onClick?: () => void;
|
|
9
|
+
icon?: React.ComponentProps<typeof _default>['as'];
|
|
8
10
|
};
|
|
9
|
-
declare const Menu: ({ avatar: Avatar, subtitle, title, onClick }: MenuProps) => JSX.Element;
|
|
11
|
+
declare const Menu: ({ avatar: Avatar, icon, subtitle, title, onClick, }: MenuProps) => JSX.Element;
|
|
10
12
|
|
|
11
13
|
export { Menu as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NavigationMenu } from '../../NavigationMenu-
|
|
2
|
-
import '../../Actions-
|
|
1
|
+
import { N as NavigationMenu } from '../../NavigationMenu-8c022497.js';
|
|
2
|
+
import '../../Actions-752d7514.js';
|
|
3
3
|
import 'styled-components';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { A as ActionsProps } from './Actions-
|
|
1
|
+
import { A as ActionsProps } from './Actions-752d7514.js';
|
|
2
2
|
import * as styled_components from 'styled-components';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
declare type
|
|
6
|
-
isOpenOnMobile: boolean;
|
|
7
|
-
isResponsive: boolean;
|
|
8
|
-
$zIndex?: number;
|
|
9
|
-
};
|
|
10
|
-
declare type NavigationMenuProps = Pick<NavigationMenuStyledProps, '$zIndex'> & {
|
|
5
|
+
declare type NavigationMenuProps = {
|
|
11
6
|
children: React.ReactNode;
|
|
12
7
|
openOnMobile?: boolean;
|
|
13
8
|
responsive?: boolean;
|
|
9
|
+
zIndex: number;
|
|
14
10
|
};
|
|
15
11
|
declare const NavigationMenu: {
|
|
16
|
-
({ children, openOnMobile, responsive, ...htmlAttributes }: NavigationMenuProps): JSX.Element;
|
|
12
|
+
({ children, openOnMobile, responsive, zIndex, ...htmlAttributes }: NavigationMenuProps): JSX.Element;
|
|
17
13
|
Header: styled_components.StyledComponent<string, any, {}, never>;
|
|
18
|
-
Menu: ({ avatar: Avatar, subtitle, title, onClick }: {
|
|
14
|
+
Menu: ({ avatar: Avatar, icon, subtitle, title, onClick, }: {
|
|
19
15
|
avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
20
16
|
subtitle?: string | undefined;
|
|
21
17
|
title?: string | undefined;
|
|
22
18
|
onClick?: (() => void) | undefined;
|
|
19
|
+
icon?: any;
|
|
23
20
|
}) => JSX.Element;
|
|
24
21
|
Switcher: ({ actions, avatar: Avatar, fill, isLoading, subtitle, title, ...actionsProps }: ActionsProps & {
|
|
25
22
|
avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -53,10 +50,11 @@ declare const NavigationMenu: {
|
|
|
53
50
|
label: string;
|
|
54
51
|
wrapper: React.FunctionComponent<any>;
|
|
55
52
|
}) => JSX.Element;
|
|
56
|
-
BottomItems: ({ children, ...containerProps }: React.HTMLAttributes<HTMLUListElement> & {
|
|
53
|
+
BottomItems: ({ children, ...containerProps }: Omit<React.HTMLAttributes<HTMLUListElement> & {
|
|
57
54
|
$zIndex?: number | undefined;
|
|
58
|
-
} & {
|
|
55
|
+
}, "$zIndex"> & {
|
|
59
56
|
children: React.ReactNode;
|
|
57
|
+
zIndex: number;
|
|
60
58
|
}) => JSX.Element;
|
|
61
59
|
BottomItem: ({ active, icon, label, wrapper: Wrapper, }: {
|
|
62
60
|
active?: boolean | undefined;
|
|
@@ -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 | 2 | 1 | undefined;
|
|
14
|
+
push(...items: (0 | 2 | 1)[]): number;
|
|
15
|
+
concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
|
|
16
|
+
concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
|
|
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 | 2 | 1)[];
|
|
19
|
+
shift(): 0 | 2 | 1 | undefined;
|
|
20
|
+
slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
21
|
+
sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
|
|
22
|
+
splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
|
|
23
|
+
splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
|
|
24
|
+
unshift(...items: (0 | 2 | 1)[]): number;
|
|
25
|
+
indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
26
|
+
lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
|
|
27
|
+
every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
|
|
28
|
+
every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
29
|
+
some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
|
|
30
|
+
forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
|
|
31
|
+
map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
|
|
32
|
+
filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
|
|
33
|
+
filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
|
|
34
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
35
|
+
reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
36
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
|
|
37
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
|
|
38
|
+
reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
|
|
39
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
|
|
40
|
+
find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
41
|
+
find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
|
|
42
|
+
findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
|
|
43
|
+
fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
|
|
44
|
+
copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
|
|
45
|
+
entries(): IterableIterator<[number, 0 | 2 | 1]>;
|
|
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 | 2 | 1>;
|
|
48
|
+
includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
|
|
49
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => 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 | 2 | 1 | undefined;
|
|
52
|
+
[Symbol.iterator](): IterableIterator<0 | 2 | 1>;
|
|
53
53
|
[Symbol.unscopables](): {
|
|
54
54
|
copyWithin: boolean;
|
|
55
55
|
entries: boolean;
|
package/typings/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export { v3theme } from './Theme/theme/v3theme.js';
|
|
|
5
5
|
export { default as createTheme } from './Theme/helpers/themeGenerator/themeGenerator.js';
|
|
6
6
|
import * as styled_components from 'styled-components';
|
|
7
7
|
export { _ as Icon } from './Icon-19f6da82.js';
|
|
8
|
-
export { N as NavigationMenu } from './NavigationMenu-
|
|
8
|
+
export { N as NavigationMenu } from './NavigationMenu-8c022497.js';
|
|
9
9
|
import '@gympass/yoga-tokens/global/transition';
|
|
10
10
|
import '@gympass/yoga-tokens/global/breakpoints';
|
|
11
11
|
import '@gympass/yoga-tokens';
|
|
12
|
-
import './Actions-
|
|
12
|
+
import './Actions-752d7514.js';
|
|
13
13
|
|
|
14
14
|
/** This component provides a theme to all React components underneath itself via the context API. */
|
|
15
15
|
declare function ThemeProvider({ children, ...rest }: {
|