@gympass/yoga 7.102.4 → 7.104.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/NavigationMenu/web/BottomItems/BottomItems.js +34 -4
- package/cjs/NavigationMenu/web/NavigationMenu.js +44 -10
- package/cjs/NavigationMenu/web/Switcher/Actions.js +17 -7
- package/cjs/NavigationMenu/web/Switcher/Switcher.js +43 -10
- package/cjs/Text/Text.theme.js +33 -12
- package/cjs/Text/native/Text.js +44 -22
- package/cjs/Text/native/Text.test.js +17 -3
- package/cjs/Text/native/index.js +8 -0
- package/cjs/Text/textStyle.android.js +2 -0
- package/cjs/Text/textStyle.ios.js +2 -0
- package/cjs/Text/textStyle.web.js +2 -0
- package/cjs/Text/web/Text.js +44 -22
- package/cjs/Text/web/Text.test.js +13 -3
- package/cjs/Text/web/index.js +8 -0
- package/cjs/Theme/theme/theme.js +3 -2
- package/cjs/Theme/theme/v3theme.js +1 -0
- package/esm/NavigationMenu/web/BottomItems/BottomItems.js +36 -4
- package/esm/NavigationMenu/web/NavigationMenu.js +46 -10
- package/esm/NavigationMenu/web/Switcher/Actions.js +17 -7
- package/esm/NavigationMenu/web/Switcher/Switcher.js +45 -10
- package/esm/Text/Text.theme.js +33 -12
- package/esm/Text/native/Text.js +40 -22
- package/esm/Text/native/Text.test.js +17 -3
- package/esm/Text/native/index.js +17 -9
- package/esm/Text/textStyle.android.js +2 -0
- package/esm/Text/textStyle.ios.js +2 -0
- package/esm/Text/textStyle.web.js +2 -0
- package/esm/Text/web/Text.js +40 -22
- package/esm/Text/web/Text.test.js +13 -3
- package/esm/Text/web/index.js +17 -9
- package/esm/Theme/theme/theme.js +3 -2
- package/esm/Theme/theme/v3theme.js +1 -0
- package/package.json +2 -2
- package/typings/Actions-cd7fac99.d.ts +13 -0
- package/typings/NavigationMenu/index.d.ts +3 -3
- package/typings/NavigationMenu/web/BottomItems/index.d.ts +5 -2
- package/typings/NavigationMenu/web/Item/styles.d.ts +13 -7
- package/typings/NavigationMenu/web/Switcher/index.d.ts +10 -3
- package/typings/NavigationMenu/web/index.d.ts +3 -3
- package/typings/{NavigationMenu-4912428a.d.ts → NavigationMenu-57b14b2b.d.ts} +15 -8
- package/typings/index.d.ts +31 -21
- package/typings/Switcher-a8dff781.d.ts +0 -19
|
@@ -17,15 +17,19 @@ describe("<Text />", () => {
|
|
|
17
17
|
/* @__PURE__ */ jsx(Text.H2, { children: "Live the mission" }),
|
|
18
18
|
/* @__PURE__ */ jsx(Text.H3, { children: "Live the mission" }),
|
|
19
19
|
/* @__PURE__ */ jsx(Text.H4, { children: "Live the mission" }),
|
|
20
|
+
/* @__PURE__ */ jsx(Text.Body1, { children: "Live the mission" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Text.Body2, { children: "Live the mission" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: "Live the mission" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Text.Overline, { children: "Live the mission" }),
|
|
24
|
+
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" }),
|
|
20
26
|
/* @__PURE__ */ jsx(Text, { children: "Live the mission" }),
|
|
21
27
|
/* @__PURE__ */ jsx(Text.Small, { children: "Live the mission" }),
|
|
22
28
|
/* @__PURE__ */ jsx(Text.Tiny, { children: "Live the mission" }),
|
|
23
29
|
/* @__PURE__ */ jsx(Text.Regular, { children: "Live the mission" }),
|
|
24
30
|
/* @__PURE__ */ jsx(Text.Medium, { children: "Live the mission" }),
|
|
25
31
|
/* @__PURE__ */ jsx(Text.Bold, { children: "Live the mission" }),
|
|
26
|
-
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
27
|
-
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
28
|
-
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" })
|
|
32
|
+
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
29
33
|
] })
|
|
30
34
|
);
|
|
31
35
|
expect(toJSON()).toMatchSnapshot();
|
|
@@ -151,5 +155,15 @@ describe("<Text />", () => {
|
|
|
151
155
|
);
|
|
152
156
|
expect(toJSON()).toMatchSnapshot();
|
|
153
157
|
});
|
|
158
|
+
it("should match snapshot with Text bold", () => {
|
|
159
|
+
const { toJSON } = render(
|
|
160
|
+
/* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
161
|
+
/* @__PURE__ */ jsx(Text.H1, { bold: true, children: "Live the mission" }),
|
|
162
|
+
/* @__PURE__ */ jsx(Text.H2, { bold: true, children: "Live the mission" }),
|
|
163
|
+
/* @__PURE__ */ jsx(Text.H3, { bold: true, children: "Live the mission" })
|
|
164
|
+
] })
|
|
165
|
+
);
|
|
166
|
+
expect(toJSON()).toMatchSnapshot();
|
|
167
|
+
});
|
|
154
168
|
});
|
|
155
169
|
});
|
package/esm/Text/native/index.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Display1,
|
|
3
|
+
Display2,
|
|
4
|
+
Display3,
|
|
5
|
+
Display4,
|
|
6
|
+
DisplayNumber,
|
|
3
7
|
H1,
|
|
4
8
|
H2,
|
|
5
9
|
H3,
|
|
6
10
|
H4,
|
|
7
11
|
H5,
|
|
12
|
+
Body1,
|
|
13
|
+
Body2,
|
|
14
|
+
Caption,
|
|
15
|
+
Overline,
|
|
16
|
+
SectionTitle,
|
|
17
|
+
SmallestException,
|
|
18
|
+
Text,
|
|
8
19
|
Small,
|
|
9
20
|
Tiny,
|
|
10
21
|
Light,
|
|
11
22
|
Regular,
|
|
12
23
|
Medium,
|
|
13
24
|
Bold,
|
|
14
|
-
Black
|
|
15
|
-
SectionTitle,
|
|
16
|
-
SmallestException,
|
|
17
|
-
Display1,
|
|
18
|
-
Display2,
|
|
19
|
-
Display3,
|
|
20
|
-
Display4,
|
|
21
|
-
DisplayNumber
|
|
25
|
+
Black
|
|
22
26
|
} from "./Text";
|
|
23
27
|
export {
|
|
24
28
|
Black,
|
|
29
|
+
Body1,
|
|
30
|
+
Body2,
|
|
25
31
|
Bold,
|
|
32
|
+
Caption,
|
|
26
33
|
Display1,
|
|
27
34
|
Display2,
|
|
28
35
|
Display3,
|
|
@@ -35,6 +42,7 @@ export {
|
|
|
35
42
|
H5,
|
|
36
43
|
Light,
|
|
37
44
|
Medium,
|
|
45
|
+
Overline,
|
|
38
46
|
Regular,
|
|
39
47
|
SectionTitle,
|
|
40
48
|
Small,
|
|
@@ -4,6 +4,7 @@ const textStyle = (type) => () => css`
|
|
|
4
4
|
${defaultStyle(type)};
|
|
5
5
|
${({
|
|
6
6
|
light,
|
|
7
|
+
bold,
|
|
7
8
|
theme: {
|
|
8
9
|
yoga: {
|
|
9
10
|
baseFont,
|
|
@@ -26,6 +27,7 @@ const textStyle = (type) => () => css`
|
|
|
26
27
|
font-family: '${finalFontFamily}';
|
|
27
28
|
|
|
28
29
|
${light ? `font-family: ${baseFont.family}-${fontWeights.light};` : ""}
|
|
30
|
+
${bold ? `font-family: ${baseFont.family}-${fontWeights.bold};` : ""}
|
|
29
31
|
`;
|
|
30
32
|
}}
|
|
31
33
|
`;
|
|
@@ -4,6 +4,7 @@ const textStyle = (type) => () => css`
|
|
|
4
4
|
${defaultStyle(type)};
|
|
5
5
|
${({
|
|
6
6
|
light,
|
|
7
|
+
bold,
|
|
7
8
|
theme: {
|
|
8
9
|
yoga: {
|
|
9
10
|
baseFont,
|
|
@@ -21,6 +22,7 @@ const textStyle = (type) => () => css`
|
|
|
21
22
|
font-family: ${finalFontFamily};
|
|
22
23
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
23
24
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
25
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
24
26
|
`;
|
|
25
27
|
}}
|
|
26
28
|
`;
|
|
@@ -5,6 +5,7 @@ const textStyle = (type) => () => css`
|
|
|
5
5
|
|
|
6
6
|
${({
|
|
7
7
|
light,
|
|
8
|
+
bold,
|
|
8
9
|
numberOfLines,
|
|
9
10
|
theme: {
|
|
10
11
|
yoga: {
|
|
@@ -29,6 +30,7 @@ const textStyle = (type) => () => css`
|
|
|
29
30
|
font-family: ${fontFamily ? `${fontFamily}, ` : ""}${baseFont.family};
|
|
30
31
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
31
32
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
33
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
32
34
|
`;
|
|
33
35
|
}}
|
|
34
36
|
`;
|
package/esm/Text/web/Text.js
CHANGED
|
@@ -27,6 +27,16 @@ const styledText = (type, element = false) => (element ? styled[type] : styled.p
|
|
|
27
27
|
${textStyle(type)}
|
|
28
28
|
${system}
|
|
29
29
|
`;
|
|
30
|
+
const Display1 = styledText("display1");
|
|
31
|
+
Display1.displayName = "Text.Display1";
|
|
32
|
+
const Display2 = styledText("display2");
|
|
33
|
+
Display2.displayName = "Text.Display2";
|
|
34
|
+
const Display3 = styledText("display3");
|
|
35
|
+
Display3.displayName = "Text.Display3";
|
|
36
|
+
const Display4 = styledText("display4");
|
|
37
|
+
Display4.displayName = "Text.Display4";
|
|
38
|
+
const DisplayNumber = styledText("displayNumber");
|
|
39
|
+
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
30
40
|
const H1 = styledText("h1", true);
|
|
31
41
|
H1.displayName = "Text.H1";
|
|
32
42
|
const H2 = styledText("h2", true);
|
|
@@ -37,6 +47,18 @@ const H4 = styledText("h4", true);
|
|
|
37
47
|
H4.displayName = "Text.H4";
|
|
38
48
|
const H5 = styledText("h5", true);
|
|
39
49
|
H5.displayName = "Text.H5";
|
|
50
|
+
const Body1 = styledText("body1");
|
|
51
|
+
Body1.displayName = "Text.Body1";
|
|
52
|
+
const Body2 = styledText("body2");
|
|
53
|
+
Body2.displayName = "Text.Body2";
|
|
54
|
+
const Caption = styledText("caption");
|
|
55
|
+
Caption.displayName = "Text.caption";
|
|
56
|
+
const Overline = styledText("overline");
|
|
57
|
+
Overline.overline = "Text.DisplayNumber";
|
|
58
|
+
const SectionTitle = styledText("sectionTitle");
|
|
59
|
+
SectionTitle.displayName = "Text.SectionTitle";
|
|
60
|
+
const SmallestException = styledText("smallestException");
|
|
61
|
+
SmallestException.displayName = "Text.SmallestException";
|
|
40
62
|
const Small = styledText("small");
|
|
41
63
|
Small.displayName = "Text.Small";
|
|
42
64
|
const Tiny = styledText("tiny");
|
|
@@ -51,28 +73,25 @@ const Bold = styledText("bold");
|
|
|
51
73
|
Bold.displayName = "Text.Bold";
|
|
52
74
|
const Black = styledText("black");
|
|
53
75
|
Black.displayName = "Text.Black";
|
|
54
|
-
const SectionTitle = styledText("sectionTitle");
|
|
55
|
-
SectionTitle.displayName = "Text.SectionTitle";
|
|
56
|
-
const SmallestException = styledText("smallestException");
|
|
57
|
-
SmallestException.displayName = "Text.SmallestException";
|
|
58
|
-
const Display1 = styledText("display1");
|
|
59
|
-
Display1.displayName = "Text.Display1";
|
|
60
|
-
const Display2 = styledText("display2");
|
|
61
|
-
Display2.displayName = "Text.Display2";
|
|
62
|
-
const Display3 = styledText("display3");
|
|
63
|
-
Display3.displayName = "Text.Display3";
|
|
64
|
-
const Display4 = styledText("display4");
|
|
65
|
-
Display4.displayName = "Text.Display4";
|
|
66
|
-
const DisplayNumber = styledText("displayNumber");
|
|
67
|
-
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
68
76
|
const TextRenderer = styledText("p");
|
|
69
77
|
const Text = (props) => /* @__PURE__ */ jsx(TextRenderer, __spreadValues({}, props));
|
|
70
78
|
Text.displayName = "Text";
|
|
79
|
+
Text.Display1 = Display1;
|
|
80
|
+
Text.Display2 = Display2;
|
|
81
|
+
Text.Display3 = Display3;
|
|
82
|
+
Text.Display4 = Display4;
|
|
83
|
+
Text.DisplayNumber = DisplayNumber;
|
|
71
84
|
Text.H1 = H1;
|
|
72
85
|
Text.H2 = H2;
|
|
73
86
|
Text.H3 = H3;
|
|
74
87
|
Text.H4 = H4;
|
|
75
88
|
Text.H5 = H5;
|
|
89
|
+
Text.Body1 = Body1;
|
|
90
|
+
Text.Body2 = Body2;
|
|
91
|
+
Text.Caption = Caption;
|
|
92
|
+
Text.Overline = Overline;
|
|
93
|
+
Text.SectionTitle = SectionTitle;
|
|
94
|
+
Text.SmallestException = SmallestException;
|
|
76
95
|
Text.Small = Small;
|
|
77
96
|
Text.Tiny = Tiny;
|
|
78
97
|
Text.Light = Light;
|
|
@@ -80,13 +99,6 @@ Text.Regular = Regular;
|
|
|
80
99
|
Text.Medium = Medium;
|
|
81
100
|
Text.Bold = Bold;
|
|
82
101
|
Text.Black = Black;
|
|
83
|
-
Text.SectionTitle = SectionTitle;
|
|
84
|
-
Text.SmallestException = SmallestException;
|
|
85
|
-
Text.Display1 = Display1;
|
|
86
|
-
Text.Display2 = Display2;
|
|
87
|
-
Text.Display3 = Display3;
|
|
88
|
-
Text.Display4 = Display4;
|
|
89
|
-
Text.DisplayNumber = DisplayNumber;
|
|
90
102
|
const fontSizes = oneOf([
|
|
91
103
|
"xxsmall",
|
|
92
104
|
"xsmall",
|
|
@@ -127,6 +139,7 @@ Text.propTypes = {
|
|
|
127
139
|
size: deprecated(fontSizes, "Use `fontSize` system prop instead"),
|
|
128
140
|
/** set the font-weight to regular */
|
|
129
141
|
light: bool,
|
|
142
|
+
bold: bool,
|
|
130
143
|
fontSize: fontSizes
|
|
131
144
|
};
|
|
132
145
|
Text.defaultProps = {
|
|
@@ -135,11 +148,15 @@ Text.defaultProps = {
|
|
|
135
148
|
size: void 0,
|
|
136
149
|
fontSize: "medium",
|
|
137
150
|
numberOfLines: void 0,
|
|
138
|
-
light: false
|
|
151
|
+
light: false,
|
|
152
|
+
bold: false
|
|
139
153
|
};
|
|
140
154
|
export {
|
|
141
155
|
Black,
|
|
156
|
+
Body1,
|
|
157
|
+
Body2,
|
|
142
158
|
Bold,
|
|
159
|
+
Caption,
|
|
143
160
|
Display1,
|
|
144
161
|
Display2,
|
|
145
162
|
Display3,
|
|
@@ -152,6 +169,7 @@ export {
|
|
|
152
169
|
H5,
|
|
153
170
|
Light,
|
|
154
171
|
Medium,
|
|
172
|
+
Overline,
|
|
155
173
|
Regular,
|
|
156
174
|
SectionTitle,
|
|
157
175
|
Small,
|
|
@@ -18,15 +18,19 @@ describe("<Text />", () => {
|
|
|
18
18
|
/* @__PURE__ */ jsx(Text.H3, { children: "Live the mission" }),
|
|
19
19
|
/* @__PURE__ */ jsx(Text.H4, { children: "Live the mission" }),
|
|
20
20
|
/* @__PURE__ */ jsx(Text.H5, { children: "Live the mission" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Text.Body1, { children: "Live the mission" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Text.Body2, { children: "Live the mission" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: "Live the mission" }),
|
|
24
|
+
/* @__PURE__ */ jsx(Text.Overline, { children: "Live the mission" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
26
|
+
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" }),
|
|
21
27
|
/* @__PURE__ */ jsx(Text, { children: "Live the mission" }),
|
|
22
28
|
/* @__PURE__ */ jsx(Text.Small, { children: "Live the mission" }),
|
|
23
29
|
/* @__PURE__ */ jsx(Text.Tiny, { children: "Live the mission" }),
|
|
24
30
|
/* @__PURE__ */ jsx(Text.Regular, { children: "Live the mission" }),
|
|
25
31
|
/* @__PURE__ */ jsx(Text.Medium, { children: "Live the mission" }),
|
|
26
32
|
/* @__PURE__ */ jsx(Text.Bold, { children: "Live the mission" }),
|
|
27
|
-
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
28
|
-
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
29
|
-
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" })
|
|
33
|
+
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
30
34
|
] })
|
|
31
35
|
);
|
|
32
36
|
expect(container).toMatchSnapshot();
|
|
@@ -152,5 +156,11 @@ describe("<Text />", () => {
|
|
|
152
156
|
);
|
|
153
157
|
expect(container).toMatchSnapshot();
|
|
154
158
|
});
|
|
159
|
+
it("should match snapshot with Text bold", () => {
|
|
160
|
+
const { container } = render(
|
|
161
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Text.H1, { bold: true, children: "Live the mission" }) })
|
|
162
|
+
);
|
|
163
|
+
expect(container).toMatchSnapshot();
|
|
164
|
+
});
|
|
155
165
|
});
|
|
156
166
|
});
|
package/esm/Text/web/index.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Display1,
|
|
3
|
+
Display2,
|
|
4
|
+
Display3,
|
|
5
|
+
Display4,
|
|
6
|
+
DisplayNumber,
|
|
3
7
|
H1,
|
|
4
8
|
H2,
|
|
5
9
|
H3,
|
|
6
10
|
H4,
|
|
7
11
|
H5,
|
|
12
|
+
Body1,
|
|
13
|
+
Body2,
|
|
14
|
+
Caption,
|
|
15
|
+
Overline,
|
|
16
|
+
SectionTitle,
|
|
17
|
+
SmallestException,
|
|
18
|
+
Text,
|
|
8
19
|
Small,
|
|
9
20
|
Tiny,
|
|
10
21
|
Light,
|
|
11
22
|
Regular,
|
|
12
23
|
Medium,
|
|
13
24
|
Bold,
|
|
14
|
-
Black
|
|
15
|
-
SectionTitle,
|
|
16
|
-
SmallestException,
|
|
17
|
-
Display1,
|
|
18
|
-
Display2,
|
|
19
|
-
Display3,
|
|
20
|
-
Display4,
|
|
21
|
-
DisplayNumber
|
|
25
|
+
Black
|
|
22
26
|
} from "./Text";
|
|
23
27
|
export {
|
|
24
28
|
Black,
|
|
29
|
+
Body1,
|
|
30
|
+
Body2,
|
|
25
31
|
Bold,
|
|
32
|
+
Caption,
|
|
26
33
|
Display1,
|
|
27
34
|
Display2,
|
|
28
35
|
Display3,
|
|
@@ -35,6 +42,7 @@ export {
|
|
|
35
42
|
H5,
|
|
36
43
|
Light,
|
|
37
44
|
Medium,
|
|
45
|
+
Overline,
|
|
38
46
|
Regular,
|
|
39
47
|
SectionTitle,
|
|
40
48
|
Small,
|
package/esm/Theme/theme/theme.js
CHANGED
|
@@ -66,14 +66,15 @@ const theme = (tokens) => {
|
|
|
66
66
|
return __spreadProps(__spreadValues({}, tokens), {
|
|
67
67
|
colors,
|
|
68
68
|
baseFont,
|
|
69
|
-
baseFontSize
|
|
69
|
+
baseFontSize,
|
|
70
|
+
v3theme: false
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
const composeTheme = (tokens, customTheming = {}) => {
|
|
73
74
|
const baseTheme = theme(tokens);
|
|
74
75
|
const customTheme = merge(baseTheme, customTheming);
|
|
75
76
|
const componentTheming = getComponentThemes(customTheme);
|
|
76
|
-
return merge(
|
|
77
|
+
return merge(componentTheming, customTheme);
|
|
77
78
|
};
|
|
78
79
|
var theme_default = composeTheme;
|
|
79
80
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.104.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": "89d776e82d74a009e4fbca47fb21a00461e234b6",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type SwitcherActionsProps = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
declare type ActionsProps = {
|
|
7
|
+
actions?: SwitcherActionsProps[];
|
|
8
|
+
sideOffset?: number;
|
|
9
|
+
$zIndex?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function Actions({ actions, sideOffset, $zIndex }: ActionsProps): JSX.Element | null;
|
|
12
|
+
|
|
13
|
+
export { ActionsProps as A, Actions as a };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as NavigationMenu } from '../NavigationMenu-
|
|
2
|
-
import '../
|
|
3
|
-
import 'react';
|
|
1
|
+
import { N as NavigationMenu } from '../NavigationMenu-57b14b2b.js';
|
|
2
|
+
import '../Actions-cd7fac99.js';
|
|
4
3
|
import 'styled-components';
|
|
4
|
+
import 'react';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
declare type
|
|
3
|
+
declare type BottomItemsStyledProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
4
|
+
$zIndex?: number;
|
|
5
|
+
};
|
|
6
|
+
declare type BottomItemsProps = BottomItemsStyledProps & {
|
|
4
7
|
children: React.ReactNode;
|
|
5
8
|
};
|
|
6
|
-
declare const BottomItems: ({ children }: BottomItemsProps) => JSX.Element;
|
|
9
|
+
declare const BottomItems: ({ children, ...containerProps }: BottomItemsProps) => JSX.Element;
|
|
7
10
|
|
|
8
11
|
declare type BottomItemProps = {
|
|
9
12
|
active?: boolean;
|
|
@@ -22,11 +22,22 @@ declare const StyledTag: styled_components.StyledComponent<{
|
|
|
22
22
|
declare const StyledText: styled_components.StyledComponent<{
|
|
23
23
|
(props: any): JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
|
+
Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
26
|
+
Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
27
|
+
Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
28
|
+
Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
|
+
DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
25
30
|
H1: styled_components.StyledComponent<string, any, {}, never>;
|
|
26
31
|
H2: styled_components.StyledComponent<string, any, {}, never>;
|
|
27
32
|
H3: styled_components.StyledComponent<string, any, {}, never>;
|
|
28
33
|
H4: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
34
|
H5: styled_components.StyledComponent<string, any, {}, never>;
|
|
35
|
+
Body1: styled_components.StyledComponent<string, any, {}, never>;
|
|
36
|
+
Body2: styled_components.StyledComponent<string, any, {}, never>;
|
|
37
|
+
Caption: styled_components.StyledComponent<string, any, {}, never>;
|
|
38
|
+
Overline: styled_components.StyledComponent<string, any, {}, never>;
|
|
39
|
+
SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
40
|
+
SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
30
41
|
Small: styled_components.StyledComponent<string, any, {}, never>;
|
|
31
42
|
Tiny: styled_components.StyledComponent<string, any, {}, never>;
|
|
32
43
|
Light: styled_components.StyledComponent<string, any, {}, never>;
|
|
@@ -34,19 +45,13 @@ declare const StyledText: styled_components.StyledComponent<{
|
|
|
34
45
|
Medium: styled_components.StyledComponent<string, any, {}, never>;
|
|
35
46
|
Bold: styled_components.StyledComponent<string, any, {}, never>;
|
|
36
47
|
Black: styled_components.StyledComponent<string, any, {}, never>;
|
|
37
|
-
SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
38
|
-
SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
39
|
-
Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
40
|
-
Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
41
|
-
Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
42
|
-
Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
43
|
-
DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
44
48
|
propTypes: {
|
|
45
49
|
inverted: prop_types.Requireable<boolean>;
|
|
46
50
|
numberOfLines: prop_types.Requireable<number>;
|
|
47
51
|
variant: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
48
52
|
size: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
49
53
|
light: prop_types.Requireable<boolean>;
|
|
54
|
+
bold: prop_types.Requireable<boolean>;
|
|
50
55
|
fontSize: prop_types.Requireable<string>;
|
|
51
56
|
};
|
|
52
57
|
defaultProps: {
|
|
@@ -56,6 +61,7 @@ declare const StyledText: styled_components.StyledComponent<{
|
|
|
56
61
|
fontSize: string;
|
|
57
62
|
numberOfLines: undefined;
|
|
58
63
|
light: boolean;
|
|
64
|
+
bold: boolean;
|
|
59
65
|
};
|
|
60
66
|
}, any, {}, never>;
|
|
61
67
|
declare const StyledItem: styled_components.StyledComponent<string, any, {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { a as Actions } from '../../../Actions-cd7fac99.js';
|
|
4
3
|
|
|
4
|
+
declare type SwitcherProps = React.ComponentProps<typeof Actions> & {
|
|
5
|
+
avatar: React.ReactElement;
|
|
6
|
+
fill?: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const Switcher: ({ actions, avatar: Avatar, fill, isLoading, subtitle, title, ...actionsProps }: SwitcherProps) => JSX.Element;
|
|
5
12
|
|
|
6
13
|
export { Switcher as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as NavigationMenu } from '../../NavigationMenu-
|
|
2
|
-
import '../../
|
|
3
|
-
import 'react';
|
|
1
|
+
import { N as NavigationMenu } from '../../NavigationMenu-57b14b2b.js';
|
|
2
|
+
import '../../Actions-cd7fac99.js';
|
|
4
3
|
import 'styled-components';
|
|
4
|
+
import 'react';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ActionsProps } from './Actions-cd7fac99.js';
|
|
2
2
|
import * as styled_components from 'styled-components';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
declare type
|
|
5
|
+
declare type NavigationMenuStyledProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
isOpenOnMobile: boolean;
|
|
7
|
+
isResponsive: boolean;
|
|
8
|
+
$zIndex?: number;
|
|
9
|
+
};
|
|
10
|
+
declare type NavigationMenuProps = Pick<NavigationMenuStyledProps, '$zIndex'> & {
|
|
6
11
|
children: React.ReactNode;
|
|
7
12
|
openOnMobile?: boolean;
|
|
8
13
|
responsive?: boolean;
|
|
9
14
|
};
|
|
10
15
|
declare const NavigationMenu: {
|
|
11
|
-
({ children, openOnMobile, responsive, }: NavigationMenuProps): JSX.Element;
|
|
16
|
+
({ children, openOnMobile, responsive, ...htmlAttributes }: NavigationMenuProps): JSX.Element;
|
|
12
17
|
Header: styled_components.StyledComponent<string, any, {}, never>;
|
|
13
18
|
Menu: ({ avatar: Avatar, subtitle, title, onClick }: {
|
|
14
19
|
avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -16,17 +21,17 @@ declare const NavigationMenu: {
|
|
|
16
21
|
title?: string | undefined;
|
|
17
22
|
onClick?: (() => void) | undefined;
|
|
18
23
|
}) => JSX.Element;
|
|
19
|
-
Switcher: ({ actions, avatar: Avatar, fill, isLoading,
|
|
20
|
-
actions?: SwitcherActionsProps[] | undefined;
|
|
24
|
+
Switcher: ({ actions, avatar: Avatar, fill, isLoading, subtitle, title, ...actionsProps }: ActionsProps & {
|
|
21
25
|
avatar: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
22
26
|
fill?: string | undefined;
|
|
23
27
|
isLoading?: boolean | undefined;
|
|
24
|
-
sideOffset?: number | undefined;
|
|
25
28
|
subtitle?: string | undefined;
|
|
26
29
|
title?: string | undefined;
|
|
27
30
|
}) => JSX.Element;
|
|
28
31
|
Items: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
|
-
ItemsGroup: styled_components.StyledComponent<string, any, {
|
|
32
|
+
ItemsGroup: styled_components.StyledComponent<string, any, {
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}, never>;
|
|
30
35
|
Item: ({ active, children, expanded, icon: Icon, label, responsive, tag, wrapper: Wrapper, }: {
|
|
31
36
|
active?: boolean | undefined;
|
|
32
37
|
children?: React.ReactNode;
|
|
@@ -48,7 +53,9 @@ declare const NavigationMenu: {
|
|
|
48
53
|
label: string;
|
|
49
54
|
wrapper: React.FunctionComponent<any>;
|
|
50
55
|
}) => JSX.Element;
|
|
51
|
-
BottomItems: ({ children }: {
|
|
56
|
+
BottomItems: ({ children, ...containerProps }: React.HTMLAttributes<HTMLUListElement> & {
|
|
57
|
+
$zIndex?: number | undefined;
|
|
58
|
+
} & {
|
|
52
59
|
children: React.ReactNode;
|
|
53
60
|
}) => JSX.Element;
|
|
54
61
|
BottomItem: ({ active, icon, label, wrapper: Wrapper, }: {
|