@gympass/yoga 7.107.1 → 7.108.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.
- package/cjs/Button/Button.theme.js +7 -2
- package/cjs/Button/native/Button.js +15 -3
- package/cjs/Button/native/Button.test.js +8 -0
- package/cjs/Button/web/Button.test.js +8 -0
- package/cjs/Button/web/StyledButton.js +3 -3
- package/cjs/Result/native/Attendances.js +11 -10
- package/cjs/Result/native/Details.js +3 -4
- package/cjs/Result/native/Rate.js +3 -5
- package/cjs/Result/native/Result.js +17 -19
- package/cjs/Result/native/Tags.js +17 -5
- package/cjs/Result/native/TinyTextIcon.js +16 -1
- package/cjs/Tag/Tag.theme.js +1 -6
- package/cjs/Tag/native/Informative.js +14 -13
- package/cjs/Tag/native/Tag.js +8 -10
- package/cjs/Tag/native/Tag.test.js +6 -0
- package/cjs/Tag/web/Informative.js +7 -14
- package/cjs/Tag/web/Tag.js +38 -13
- package/cjs/Tag/web/Tag.test.js +6 -0
- package/cjs/Theme/Provider/web/FontLoader.test.js +1 -1
- package/cjs/Theme/theme/v3theme.js +13 -0
- package/esm/Button/Button.theme.js +7 -2
- package/esm/Button/native/Button.js +15 -3
- package/esm/Button/native/Button.test.js +9 -1
- package/esm/Button/web/Button.test.js +9 -1
- package/esm/Button/web/StyledButton.js +3 -3
- package/esm/Result/native/Attendances.js +11 -10
- package/esm/Result/native/Details.js +3 -4
- package/esm/Result/native/Rate.js +3 -5
- package/esm/Result/native/Result.js +17 -19
- package/esm/Result/native/Tags.js +21 -9
- package/esm/Result/native/TinyTextIcon.js +16 -1
- package/esm/Tag/Tag.theme.js +1 -6
- package/esm/Tag/native/Informative.js +14 -13
- package/esm/Tag/native/Tag.js +8 -10
- package/esm/Tag/native/Tag.test.js +7 -1
- package/esm/Tag/web/Informative.js +7 -14
- package/esm/Tag/web/Tag.js +33 -13
- package/esm/Tag/web/Tag.test.js +7 -1
- package/esm/Theme/Provider/web/FontLoader.test.js +1 -1
- package/esm/Theme/theme/v3theme.js +13 -0
- package/fonts/Inter-600.ttf +0 -0
- package/package.json +3 -3
- package/typings/NavigationMenu/web/Item/styles.d.ts +7 -1
- package/typings/Theme/theme/v3theme.d.ts +39 -38
- package/typings/index.d.ts +7 -1
|
@@ -2,8 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { render } from "@testing-library/react-native";
|
|
4
4
|
import { Building } from "@gympass/yoga-icons";
|
|
5
|
-
import { ThemeProvider, Tag } from "../..";
|
|
5
|
+
import { ThemeProvider, Tag, v3theme } from "../..";
|
|
6
6
|
describe("<Tag />", () => {
|
|
7
|
+
it("should match snapshot when v3Theme is settled", () => {
|
|
8
|
+
const { toJSON } = render(
|
|
9
|
+
/* @__PURE__ */ jsx(ThemeProvider, { theme: v3theme, children: /* @__PURE__ */ jsx(Tag, { children: "v3Theme" }) })
|
|
10
|
+
);
|
|
11
|
+
expect(toJSON()).toMatchSnapshot();
|
|
12
|
+
});
|
|
7
13
|
it("should match snapshot", () => {
|
|
8
14
|
const { toJSON } = render(
|
|
9
15
|
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Tag, { children: "default" }) })
|
|
@@ -33,13 +33,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
33
33
|
import React from "react";
|
|
34
34
|
import styled, { withTheme } from "styled-components";
|
|
35
35
|
import { func, oneOf, node, bool } from "prop-types";
|
|
36
|
-
import {
|
|
37
|
-
import Tag from "./Tag";
|
|
36
|
+
import { StyledTag, StyledText } from "./Tag";
|
|
38
37
|
import Icon from "../../Icon";
|
|
39
|
-
const Informative = styled(
|
|
40
|
-
justify-content: center;
|
|
41
|
-
align-items: center;
|
|
42
|
-
|
|
38
|
+
const Informative = styled(StyledTag)`
|
|
43
39
|
${({
|
|
44
40
|
variant,
|
|
45
41
|
theme: {
|
|
@@ -56,17 +52,13 @@ const Informative = styled(Tag)`
|
|
|
56
52
|
color: ${text.primary};
|
|
57
53
|
border-radius: ${tag.border.radius}px;
|
|
58
54
|
border-color: ${color.light};
|
|
59
|
-
|
|
60
|
-
font-size: ${tag.font.size}px;
|
|
61
|
-
font-weight: ${tag.font.weight};
|
|
62
55
|
`}
|
|
63
|
-
|
|
64
|
-
${margins}
|
|
65
56
|
`;
|
|
66
57
|
const TagInformative = (_a) => {
|
|
67
58
|
var _b = _a, {
|
|
68
59
|
children,
|
|
69
60
|
icon,
|
|
61
|
+
variant,
|
|
70
62
|
theme: {
|
|
71
63
|
yoga: {
|
|
72
64
|
colors: { text },
|
|
@@ -75,14 +67,15 @@ const TagInformative = (_a) => {
|
|
|
75
67
|
},
|
|
76
68
|
small,
|
|
77
69
|
ellipsis
|
|
78
|
-
} = _b,
|
|
70
|
+
} = _b, rest = __objRest(_b, [
|
|
79
71
|
"children",
|
|
80
72
|
"icon",
|
|
73
|
+
"variant",
|
|
81
74
|
"theme",
|
|
82
75
|
"small",
|
|
83
76
|
"ellipsis"
|
|
84
77
|
]);
|
|
85
|
-
return /* @__PURE__ */ jsxs(Informative, __spreadProps(__spreadValues({
|
|
78
|
+
return /* @__PURE__ */ jsxs(Informative, __spreadProps(__spreadValues({ variant, small }, rest), { children: [
|
|
86
79
|
icon && /* @__PURE__ */ jsx(
|
|
87
80
|
Icon,
|
|
88
81
|
{
|
|
@@ -92,7 +85,7 @@ const TagInformative = (_a) => {
|
|
|
92
85
|
marginRight: tag.icon.margin.right
|
|
93
86
|
}
|
|
94
87
|
),
|
|
95
|
-
children
|
|
88
|
+
/* @__PURE__ */ jsx(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children })
|
|
96
89
|
] }));
|
|
97
90
|
};
|
|
98
91
|
TagInformative.propTypes = {
|
package/esm/Tag/web/Tag.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,11 +16,25 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
17
32
|
import { jsx } from "react/jsx-runtime";
|
|
18
33
|
import React from "react";
|
|
19
34
|
import styled from "styled-components";
|
|
20
35
|
import { oneOf, node, bool } from "prop-types";
|
|
21
36
|
import { margins, maxWidth } from "@gympass/yoga-system";
|
|
37
|
+
import Text from "../../Text";
|
|
22
38
|
const StyledTag = styled.div`
|
|
23
39
|
display: inline-flex;
|
|
24
40
|
justify-content: center;
|
|
@@ -29,7 +45,6 @@ const StyledTag = styled.div`
|
|
|
29
45
|
${({
|
|
30
46
|
variant,
|
|
31
47
|
small,
|
|
32
|
-
ellipsis,
|
|
33
48
|
theme: {
|
|
34
49
|
yoga: {
|
|
35
50
|
colors: {
|
|
@@ -58,27 +73,30 @@ const StyledTag = styled.div`
|
|
|
58
73
|
${tag.padding.default.left}px;
|
|
59
74
|
`}
|
|
60
75
|
|
|
61
|
-
${ellipsis ? `
|
|
62
|
-
display: block;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
text-overflow: ellipsis;
|
|
66
|
-
` : ``}
|
|
67
|
-
|
|
68
76
|
color: ${color.dark};
|
|
69
77
|
border-radius: ${tag.border.radius}px;
|
|
70
78
|
border-width: ${tag.border.width}px;
|
|
71
79
|
border-color: ${borderColor.dark};
|
|
72
|
-
|
|
73
|
-
font-size: ${tag.font.size}px;
|
|
74
|
-
line-height: ${tag.font.lineHeight}px;
|
|
75
|
-
font-weight: ${tag.font.weight};
|
|
76
80
|
`}
|
|
77
81
|
|
|
78
82
|
${margins}
|
|
79
83
|
${maxWidth}
|
|
80
84
|
`;
|
|
81
|
-
const
|
|
85
|
+
const StyledText = styled(Text.Overline)`
|
|
86
|
+
${({
|
|
87
|
+
theme: {
|
|
88
|
+
yoga: {
|
|
89
|
+
colors: { text }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}) => `
|
|
93
|
+
color: ${text.primary};
|
|
94
|
+
`}
|
|
95
|
+
`;
|
|
96
|
+
const Tag = (_a) => {
|
|
97
|
+
var _b = _a, { children, variant, small, ellipsis } = _b, rest = __objRest(_b, ["children", "variant", "small", "ellipsis"]);
|
|
98
|
+
return /* @__PURE__ */ jsx(StyledTag, __spreadProps(__spreadValues({ variant, small }, rest), { children: /* @__PURE__ */ jsx(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children }) }));
|
|
99
|
+
};
|
|
82
100
|
Tag.propTypes = {
|
|
83
101
|
/** style the tag following the theme (success, informative, attention) */
|
|
84
102
|
variant: oneOf(["", "success", "informative", "attention"]),
|
|
@@ -95,5 +113,7 @@ Tag.defaultProps = {
|
|
|
95
113
|
};
|
|
96
114
|
var Tag_default = Tag;
|
|
97
115
|
export {
|
|
116
|
+
StyledTag,
|
|
117
|
+
StyledText,
|
|
98
118
|
Tag_default as default
|
|
99
119
|
};
|
package/esm/Tag/web/Tag.test.js
CHANGED
|
@@ -2,8 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { render } from "@testing-library/react";
|
|
4
4
|
import { Building } from "@gympass/yoga-icons";
|
|
5
|
-
import { ThemeProvider, Tag } from "../..";
|
|
5
|
+
import { ThemeProvider, Tag, v3theme } from "../..";
|
|
6
6
|
describe("<Tag />", () => {
|
|
7
|
+
it("should match snapshot when v3Theme is settled", () => {
|
|
8
|
+
const { container } = render(
|
|
9
|
+
/* @__PURE__ */ jsx(ThemeProvider, { theme: v3theme, children: /* @__PURE__ */ jsx(Tag, { children: "v3Theme" }) })
|
|
10
|
+
);
|
|
11
|
+
expect(container).toMatchSnapshot();
|
|
12
|
+
});
|
|
7
13
|
it("should match snapshot", () => {
|
|
8
14
|
const { container } = render(
|
|
9
15
|
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Tag, { children: "default" }) })
|
|
@@ -10,7 +10,7 @@ describe("FontLoader component", () => {
|
|
|
10
10
|
);
|
|
11
11
|
const link = document.getElementsByTagName("link").item(0).outerHTML;
|
|
12
12
|
expect(link).toContain(
|
|
13
|
-
`<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:300,400,500,700,900,300i,400i,500i,700i,900i">`
|
|
13
|
+
`<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:300,400,500,600,700,900,300i,400i,500i,600i,700i,900i">`
|
|
14
14
|
);
|
|
15
15
|
});
|
|
16
16
|
});
|
|
@@ -205,6 +205,19 @@ const v3theme = createTheme((tokens) => ({
|
|
|
205
205
|
black: {
|
|
206
206
|
fontWeight: tokens.fontWeights.black
|
|
207
207
|
}
|
|
208
|
+
},
|
|
209
|
+
button: {
|
|
210
|
+
font: {
|
|
211
|
+
size: {
|
|
212
|
+
default: tokens.fontSizes.medium,
|
|
213
|
+
small: tokens.fontSizes.small
|
|
214
|
+
},
|
|
215
|
+
weight: tokens.fontWeights.semiBold,
|
|
216
|
+
height: {
|
|
217
|
+
default: tokens.lineHeights.medium,
|
|
218
|
+
small: tokens.lineHeights.xsmall
|
|
219
|
+
}
|
|
220
|
+
}
|
|
208
221
|
}
|
|
209
222
|
}
|
|
210
223
|
}));
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.108.1",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@gympass/yoga-icons": "^1.20.0",
|
|
32
32
|
"@gympass/yoga-illustrations": "^0.5.2",
|
|
33
33
|
"@gympass/yoga-system": "^0.11.1",
|
|
34
|
-
"@gympass/yoga-tokens": "^3.
|
|
34
|
+
"@gympass/yoga-tokens": "^3.5.0",
|
|
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": "90d26ef35fee2b0323bbbac3cef453f829f1770d",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -6,7 +6,13 @@ declare const StyledTextContainer: styled_components.StyledComponent<string, any
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}, never>;
|
|
8
8
|
declare const StyledTag: styled_components.StyledComponent<{
|
|
9
|
-
(
|
|
9
|
+
({ children, variant, small, ellipsis, ...rest }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
children: any;
|
|
12
|
+
variant: any;
|
|
13
|
+
small: any;
|
|
14
|
+
ellipsis: any;
|
|
15
|
+
}): JSX.Element;
|
|
10
16
|
propTypes: {
|
|
11
17
|
variant: prop_types.Requireable<string>;
|
|
12
18
|
children: prop_types.Validator<string | number | boolean | prop_types.ReactElementLike | prop_types.ReactNodeArray>;
|
|
@@ -99,7 +99,7 @@ declare const v3theme: {
|
|
|
99
99
|
};
|
|
100
100
|
fonts: Record<string, {
|
|
101
101
|
family: string;
|
|
102
|
-
weight: (300 | 400 | 500 | 700 | 900 | "300i" | "400i" | "500i" | "700i" | "900i")[];
|
|
102
|
+
weight: (300 | 400 | 500 | 600 | 700 | 900 | "300i" | "400i" | "500i" | "600i" | "700i" | "900i")[];
|
|
103
103
|
}>;
|
|
104
104
|
fontSizes: {
|
|
105
105
|
xxsmall: 10;
|
|
@@ -169,46 +169,46 @@ declare const v3theme: {
|
|
|
169
169
|
length: number;
|
|
170
170
|
toString(): string;
|
|
171
171
|
toLocaleString(): string;
|
|
172
|
-
pop(): 300 | 400 | 500 | 700 | 900 | undefined;
|
|
173
|
-
push(...items: (300 | 400 | 500 | 700 | 900)[]): number;
|
|
174
|
-
concat(...items: ConcatArray<300 | 400 | 500 | 700 | 900>[]): (300 | 400 | 500 | 700 | 900)[];
|
|
175
|
-
concat(...items: (300 | 400 | 500 | 700 | 900 | ConcatArray<300 | 400 | 500 | 700 | 900>)[]): (300 | 400 | 500 | 700 | 900)[];
|
|
172
|
+
pop(): 300 | 400 | 500 | 600 | 700 | 900 | undefined;
|
|
173
|
+
push(...items: (300 | 400 | 500 | 600 | 700 | 900)[]): number;
|
|
174
|
+
concat(...items: ConcatArray<300 | 400 | 500 | 600 | 700 | 900>[]): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
175
|
+
concat(...items: (300 | 400 | 500 | 600 | 700 | 900 | ConcatArray<300 | 400 | 500 | 600 | 700 | 900>)[]): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
176
176
|
join(separator?: string | undefined): string;
|
|
177
|
-
reverse(): (300 | 400 | 500 | 700 | 900)[];
|
|
178
|
-
shift(): 300 | 400 | 500 | 700 | 900 | undefined;
|
|
179
|
-
slice(start?: number | undefined, end?: number | undefined): (300 | 400 | 500 | 700 | 900)[];
|
|
180
|
-
sort(compareFn?: ((a: 300 | 400 | 500 | 700 | 900, b: 300 | 400 | 500 | 700 | 900) => number) | undefined): (300 | 400 | 500 | 700 | 900)[];
|
|
181
|
-
splice(start: number, deleteCount?: number | undefined): (300 | 400 | 500 | 700 | 900)[];
|
|
182
|
-
splice(start: number, deleteCount: number, ...items: (300 | 400 | 500 | 700 | 900)[]): (300 | 400 | 500 | 700 | 900)[];
|
|
183
|
-
unshift(...items: (300 | 400 | 500 | 700 | 900)[]): number;
|
|
184
|
-
indexOf(searchElement: 300 | 400 | 500 | 700 | 900, fromIndex?: number | undefined): number;
|
|
185
|
-
lastIndexOf(searchElement: 300 | 400 | 500 | 700 | 900, fromIndex?: number | undefined): number;
|
|
186
|
-
every<S_6 extends 300 | 400 | 500 | 700 | 900>(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => value is S_6, thisArg?: any): this is S_6[];
|
|
187
|
-
every(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => unknown, thisArg?: any): boolean;
|
|
188
|
-
some(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => unknown, thisArg?: any): boolean;
|
|
189
|
-
forEach(callbackfn: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => void, thisArg?: any): void;
|
|
190
|
-
map<U_8>(callbackfn: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => U_8, thisArg?: any): U_8[];
|
|
191
|
-
filter<S_7 extends 300 | 400 | 500 | 700 | 900>(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => value is S_7, thisArg?: any): S_7[];
|
|
192
|
-
filter(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => unknown, thisArg?: any): (300 | 400 | 500 | 700 | 900)[];
|
|
193
|
-
reduce(callbackfn: (previousValue: 300 | 400 | 500 | 700 | 900, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => 300 | 400 | 500 | 700 | 900): 300 | 400 | 500 | 700 | 900;
|
|
194
|
-
reduce(callbackfn: (previousValue: 300 | 400 | 500 | 700 | 900, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => 300 | 400 | 500 | 700 | 900, initialValue: 300 | 400 | 500 | 700 | 900): 300 | 400 | 500 | 700 | 900;
|
|
195
|
-
reduce<U_9>(callbackfn: (previousValue: U_9, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => U_9, initialValue: U_9): U_9;
|
|
196
|
-
reduceRight(callbackfn: (previousValue: 300 | 400 | 500 | 700 | 900, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => 300 | 400 | 500 | 700 | 900): 300 | 400 | 500 | 700 | 900;
|
|
197
|
-
reduceRight(callbackfn: (previousValue: 300 | 400 | 500 | 700 | 900, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => 300 | 400 | 500 | 700 | 900, initialValue: 300 | 400 | 500 | 700 | 900): 300 | 400 | 500 | 700 | 900;
|
|
198
|
-
reduceRight<U_10>(callbackfn: (previousValue: U_10, currentValue: 300 | 400 | 500 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 700 | 900)[]) => U_10, initialValue: U_10): U_10;
|
|
199
|
-
find<S_8 extends 300 | 400 | 500 | 700 | 900>(predicate: (this: void, value: 300 | 400 | 500 | 700 | 900, index: number, obj: (300 | 400 | 500 | 700 | 900)[]) => value is S_8, thisArg?: any): S_8 | undefined;
|
|
200
|
-
find(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, obj: (300 | 400 | 500 | 700 | 900)[]) => unknown, thisArg?: any): 300 | 400 | 500 | 700 | 900 | undefined;
|
|
201
|
-
findIndex(predicate: (value: 300 | 400 | 500 | 700 | 900, index: number, obj: (300 | 400 | 500 | 700 | 900)[]) => unknown, thisArg?: any): number;
|
|
202
|
-
fill(value: 300 | 400 | 500 | 700 | 900, start?: number | undefined, end?: number | undefined): (300 | 400 | 500 | 700 | 900)[];
|
|
203
|
-
copyWithin(target: number, start: number, end?: number | undefined): (300 | 400 | 500 | 700 | 900)[];
|
|
204
|
-
entries(): IterableIterator<[number, 300 | 400 | 500 | 700 | 900]>;
|
|
177
|
+
reverse(): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
178
|
+
shift(): 300 | 400 | 500 | 600 | 700 | 900 | undefined;
|
|
179
|
+
slice(start?: number | undefined, end?: number | undefined): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
180
|
+
sort(compareFn?: ((a: 300 | 400 | 500 | 600 | 700 | 900, b: 300 | 400 | 500 | 600 | 700 | 900) => number) | undefined): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
181
|
+
splice(start: number, deleteCount?: number | undefined): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
182
|
+
splice(start: number, deleteCount: number, ...items: (300 | 400 | 500 | 600 | 700 | 900)[]): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
183
|
+
unshift(...items: (300 | 400 | 500 | 600 | 700 | 900)[]): number;
|
|
184
|
+
indexOf(searchElement: 300 | 400 | 500 | 600 | 700 | 900, fromIndex?: number | undefined): number;
|
|
185
|
+
lastIndexOf(searchElement: 300 | 400 | 500 | 600 | 700 | 900, fromIndex?: number | undefined): number;
|
|
186
|
+
every<S_6 extends 300 | 400 | 500 | 600 | 700 | 900>(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => value is S_6, thisArg?: any): this is S_6[];
|
|
187
|
+
every(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => unknown, thisArg?: any): boolean;
|
|
188
|
+
some(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => unknown, thisArg?: any): boolean;
|
|
189
|
+
forEach(callbackfn: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => void, thisArg?: any): void;
|
|
190
|
+
map<U_8>(callbackfn: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => U_8, thisArg?: any): U_8[];
|
|
191
|
+
filter<S_7 extends 300 | 400 | 500 | 600 | 700 | 900>(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => value is S_7, thisArg?: any): S_7[];
|
|
192
|
+
filter(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => unknown, thisArg?: any): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
193
|
+
reduce(callbackfn: (previousValue: 300 | 400 | 500 | 600 | 700 | 900, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => 300 | 400 | 500 | 600 | 700 | 900): 300 | 400 | 500 | 600 | 700 | 900;
|
|
194
|
+
reduce(callbackfn: (previousValue: 300 | 400 | 500 | 600 | 700 | 900, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => 300 | 400 | 500 | 600 | 700 | 900, initialValue: 300 | 400 | 500 | 600 | 700 | 900): 300 | 400 | 500 | 600 | 700 | 900;
|
|
195
|
+
reduce<U_9>(callbackfn: (previousValue: U_9, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => U_9, initialValue: U_9): U_9;
|
|
196
|
+
reduceRight(callbackfn: (previousValue: 300 | 400 | 500 | 600 | 700 | 900, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => 300 | 400 | 500 | 600 | 700 | 900): 300 | 400 | 500 | 600 | 700 | 900;
|
|
197
|
+
reduceRight(callbackfn: (previousValue: 300 | 400 | 500 | 600 | 700 | 900, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => 300 | 400 | 500 | 600 | 700 | 900, initialValue: 300 | 400 | 500 | 600 | 700 | 900): 300 | 400 | 500 | 600 | 700 | 900;
|
|
198
|
+
reduceRight<U_10>(callbackfn: (previousValue: U_10, currentValue: 300 | 400 | 500 | 600 | 700 | 900, currentIndex: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => U_10, initialValue: U_10): U_10;
|
|
199
|
+
find<S_8 extends 300 | 400 | 500 | 600 | 700 | 900>(predicate: (this: void, value: 300 | 400 | 500 | 600 | 700 | 900, index: number, obj: (300 | 400 | 500 | 600 | 700 | 900)[]) => value is S_8, thisArg?: any): S_8 | undefined;
|
|
200
|
+
find(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, obj: (300 | 400 | 500 | 600 | 700 | 900)[]) => unknown, thisArg?: any): 300 | 400 | 500 | 600 | 700 | 900 | undefined;
|
|
201
|
+
findIndex(predicate: (value: 300 | 400 | 500 | 600 | 700 | 900, index: number, obj: (300 | 400 | 500 | 600 | 700 | 900)[]) => unknown, thisArg?: any): number;
|
|
202
|
+
fill(value: 300 | 400 | 500 | 600 | 700 | 900, start?: number | undefined, end?: number | undefined): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
203
|
+
copyWithin(target: number, start: number, end?: number | undefined): (300 | 400 | 500 | 600 | 700 | 900)[];
|
|
204
|
+
entries(): IterableIterator<[number, 300 | 400 | 500 | 600 | 700 | 900]>;
|
|
205
205
|
keys(): IterableIterator<number>;
|
|
206
|
-
values(): IterableIterator<300 | 400 | 500 | 700 | 900>;
|
|
207
|
-
includes(searchElement: 300 | 400 | 500 | 700 | 900, fromIndex?: number | undefined): boolean;
|
|
208
|
-
flatMap<U_11, This_2 = undefined>(callback: (this: This_2, value: 300 | 400 | 500 | 700 | 900, index: number, array: (300 | 400 | 500 | 700 | 900)[]) => U_11 | readonly U_11[], thisArg?: This_2 | undefined): U_11[];
|
|
206
|
+
values(): IterableIterator<300 | 400 | 500 | 600 | 700 | 900>;
|
|
207
|
+
includes(searchElement: 300 | 400 | 500 | 600 | 700 | 900, fromIndex?: number | undefined): boolean;
|
|
208
|
+
flatMap<U_11, This_2 = undefined>(callback: (this: This_2, value: 300 | 400 | 500 | 600 | 700 | 900, index: number, array: (300 | 400 | 500 | 600 | 700 | 900)[]) => U_11 | readonly U_11[], thisArg?: This_2 | undefined): U_11[];
|
|
209
209
|
flat<A_2, D_2 extends number = 1>(this: A_2, depth?: D_2 | undefined): FlatArray<A_2, D_2>[];
|
|
210
|
-
at(index: number): 300 | 400 | 500 | 700 | 900 | undefined;
|
|
211
|
-
[Symbol.iterator](): IterableIterator<300 | 400 | 500 | 700 | 900>;
|
|
210
|
+
at(index: number): 300 | 400 | 500 | 600 | 700 | 900 | undefined;
|
|
211
|
+
[Symbol.iterator](): IterableIterator<300 | 400 | 500 | 600 | 700 | 900>;
|
|
212
212
|
[Symbol.unscopables](): {
|
|
213
213
|
copyWithin: boolean;
|
|
214
214
|
entries: boolean;
|
|
@@ -221,6 +221,7 @@ declare const v3theme: {
|
|
|
221
221
|
light: 300;
|
|
222
222
|
regular: 400;
|
|
223
223
|
medium: 500;
|
|
224
|
+
semiBold: 600;
|
|
224
225
|
bold: 700;
|
|
225
226
|
black: 900;
|
|
226
227
|
};
|
package/typings/index.d.ts
CHANGED
|
@@ -266,7 +266,13 @@ declare const _default$4: React.ForwardRefExoticComponent<{
|
|
|
266
266
|
}>;
|
|
267
267
|
|
|
268
268
|
/** Tags should be keywords to categorize or organize an item. */
|
|
269
|
-
declare function Tag(
|
|
269
|
+
declare function Tag({ children, variant, small, ellipsis, ...rest }: {
|
|
270
|
+
[x: string]: any;
|
|
271
|
+
children: any;
|
|
272
|
+
variant: any;
|
|
273
|
+
small: any;
|
|
274
|
+
ellipsis: any;
|
|
275
|
+
}): JSX.Element;
|
|
270
276
|
declare namespace Tag {
|
|
271
277
|
namespace propTypes {
|
|
272
278
|
export const variant: prop_types.Requireable<string>;
|