@wireapp/react-ui-kit 9.0.9 → 9.0.11
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/lib/Form/Button.js +3 -3
- package/lib/Form/Checkbox.js +4 -4
- package/lib/Form/CodeInput.js +1 -1
- package/lib/Form/DropFileInput.js +3 -3
- package/lib/Form/ErrorMessage.js +1 -1
- package/lib/Form/Input.js +3 -3
- package/lib/Form/InputLabel.d.ts.map +1 -1
- package/lib/Form/InputLabel.js +3 -3
- package/lib/Form/RangeInput.d.ts.map +1 -1
- package/lib/Form/RangeInput.js +1 -4
- package/lib/Form/RangeInput.styles.d.ts +1 -1
- package/lib/Form/RangeInput.styles.d.ts.map +1 -1
- package/lib/Form/RangeInput.styles.js +2 -2
- package/lib/Form/Select.d.ts.map +1 -1
- package/lib/Form/Select.js +6 -1
- package/lib/Form/SelectComponents.js +1 -1
- package/lib/Form/SelectStyles.d.ts +2 -2
- package/lib/Form/SelectStyles.js +1 -1
- package/lib/Form/ShakeBox.d.ts +3 -2
- package/lib/Form/ShakeBox.d.ts.map +1 -1
- package/lib/Form/Switch.js +1 -1
- package/lib/Form/TextArea.js +2 -2
- package/lib/Form/Tooltip.js +2 -2
- package/lib/GlobalStyle.d.ts.map +1 -1
- package/lib/GlobalStyle.js +2 -1
- package/lib/Layout/Container.d.ts +8 -8
- package/lib/Layout/Container.d.ts.map +1 -1
- package/lib/Layout/Container.js +21 -31
- package/lib/Layout/StyledApp.d.ts +1 -1
- package/lib/Layout/StyledApp.d.ts.map +1 -1
- package/lib/Layout/StyledApp.js +1 -1
- package/lib/Layout/headerMenu/MenuItems.d.ts +1 -1
- package/lib/Layout/headerMenu/MenuItems.d.ts.map +1 -1
- package/lib/Layout/headerMenu/MenuLink.d.ts +1 -1
- package/lib/Layout/headerMenu/MenuLink.d.ts.map +1 -1
- package/lib/Layout/headerMenu/MenuLink.js +2 -2
- package/lib/Layout/headerMenu/MenuOpenButton.d.ts +1 -1
- package/lib/Layout/headerMenu/MenuOpenButton.d.ts.map +1 -1
- package/lib/Layout/headerMenu/MenuSubLink.d.ts +1 -1
- package/lib/Layout/headerMenu/MenuSubLink.d.ts.map +1 -1
- package/lib/Layout/headerMenu/MenuSubLink.js +2 -2
- package/lib/Layout/index.d.ts +1 -1
- package/lib/Layout/index.d.ts.map +1 -1
- package/lib/Layout/index.js +1 -1
- package/lib/Menu/TabBar.js +1 -1
- package/lib/Misc/ButtonGroup.js +4 -4
- package/lib/Misc/Pill.js +2 -2
- package/lib/Text/Heading.js +8 -8
- package/lib/Text/Label.d.ts.map +1 -1
- package/lib/Text/Label.js +2 -2
- package/lib/Text/Link.js +2 -2
- package/lib/Text/Paragraph.js +2 -2
- package/lib/Text/Text.d.ts +6 -6
- package/lib/Text/Text.d.ts.map +1 -1
- package/lib/Text/Text.js +5 -5
- package/lib/Text/TextLink.js +1 -1
- package/lib/Text/Title.js +1 -1
- package/lib/{GlobalCssVariables.d.ts → Theme/GlobalCssVariables.d.ts} +0 -0
- package/lib/Theme/GlobalCssVariables.d.ts.map +1 -0
- package/lib/{GlobalCssVariables.js → Theme/GlobalCssVariables.js} +1 -1
- package/lib/Theme/Sizes.d.ts +9 -0
- package/lib/Theme/Sizes.d.ts.map +1 -0
- package/lib/Theme/Sizes.js +29 -0
- package/lib/{Layout → Theme}/Theme.d.ts +8 -0
- package/lib/Theme/Theme.d.ts.map +1 -0
- package/lib/{Layout → Theme}/Theme.js +4 -0
- package/package.json +2 -2
- package/lib/GlobalCssVariables.d.ts.map +0 -1
- package/lib/Layout/Theme.d.ts.map +0 -1
package/lib/Layout/Container.js
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
24
12
|
};
|
|
25
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
14
|
exports.ContainerXXS = exports.ContainerXS = exports.ContainerSM = exports.ContainerMD = exports.ContainerLG = exports.Container = void 0;
|
|
@@ -43,10 +31,9 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
43
31
|
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
44
32
|
*
|
|
45
33
|
*/
|
|
46
|
-
const
|
|
34
|
+
const react_1 = require("react");
|
|
47
35
|
const sizes_1 = require("./sizes");
|
|
48
36
|
const mediaQueries_1 = require("../mediaQueries");
|
|
49
|
-
const util_1 = require("../util");
|
|
50
37
|
const LEVEL = {
|
|
51
38
|
lg: sizes_1.WIDTH.DESKTOP_MAX,
|
|
52
39
|
md: sizes_1.WIDTH.TABLET_MAX,
|
|
@@ -67,16 +54,19 @@ const containerStyle = ({ centerText = false, level = undefined, verticalCenter
|
|
|
67
54
|
width: `${sizes_1.WIDTH.DESKTOP_MIN - sizes_1.GUTTER * 2}px`,
|
|
68
55
|
},
|
|
69
56
|
});
|
|
70
|
-
const
|
|
71
|
-
|
|
57
|
+
const Container = (_a, ref) => {
|
|
58
|
+
var { centerText, level, verticalCenter } = _a, props = __rest(_a, ["centerText", "level", "verticalCenter"]);
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref, css: containerStyle({ centerText, level, verticalCenter }) }, props)));
|
|
60
|
+
};
|
|
61
|
+
exports.Container = Container;
|
|
72
62
|
exports.Container.displayName = 'Container';
|
|
73
|
-
exports.ContainerLG =
|
|
63
|
+
exports.ContainerLG = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Container, Object.assign({ ref: ref, level: 'lg' }, props))));
|
|
74
64
|
exports.ContainerLG.displayName = 'ContainerLG';
|
|
75
|
-
exports.ContainerMD =
|
|
65
|
+
exports.ContainerMD = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Container, Object.assign({ ref: ref, level: 'md' }, props))));
|
|
76
66
|
exports.ContainerMD.displayName = 'ContainerMD';
|
|
77
|
-
exports.ContainerSM =
|
|
67
|
+
exports.ContainerSM = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Container, Object.assign({ ref: ref, level: 'sm' }, props))));
|
|
78
68
|
exports.ContainerSM.displayName = 'ContainerSM';
|
|
79
|
-
exports.ContainerXS =
|
|
69
|
+
exports.ContainerXS = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Container, Object.assign({ ref: ref, level: 'xs' }, props))));
|
|
80
70
|
exports.ContainerXS.displayName = 'ContainerXS';
|
|
81
|
-
exports.ContainerXXS =
|
|
71
|
+
exports.ContainerXXS = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Container, Object.assign({ ref: ref, level: 'xxs' }, props))));
|
|
82
72
|
exports.ContainerXXS.displayName = 'ContainerXXS';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledApp.d.ts","sourceRoot":"","sources":["../../src/Layout/StyledApp.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StyledApp.d.ts","sourceRoot":"","sources":["../../src/Layout/StyledApp.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAwB,MAAM,gBAAgB,CAAC;AAGtE,KAAK,uBAAuB,GACxB;IACE,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEN,KAAK,oBAAoB,GAAG;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,uBAAuB,GAAG,oBAAoB,CAAC;AAiB9G,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAO9C,CAAC"}
|
package/lib/Layout/StyledApp.js
CHANGED
|
@@ -13,8 +13,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.StyledApp = void 0;
|
|
15
15
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
|
-
const Theme_1 = require("./Theme");
|
|
17
16
|
const GlobalStyle_1 = require("../GlobalStyle");
|
|
17
|
+
const Theme_1 = require("../Theme/Theme");
|
|
18
18
|
const util_1 = require("../util");
|
|
19
19
|
const styledAppContainerStyle = (theme, { backgroundColor = theme.general.backgroundColor }) => ({
|
|
20
20
|
background: backgroundColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItems.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuItems.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuItems.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuItems.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5E,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,SAgB1E,CAAC;AAIH,eAAO,MAAM,SAAS,UAAW,cAAc,qDAE9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
2
|
import { LinkProps } from '../../Text';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../Theme/Theme';
|
|
4
4
|
export interface MenuLinkProps<T = HTMLAnchorElement> extends LinkProps<T> {
|
|
5
5
|
button?: boolean;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuLink.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAC,SAAS,EAA6B,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuLink.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAC,SAAS,EAA6B,MAAM,YAAY,CAAC;AACjE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,iBAAiB,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAwCxE,CAAC;AAEH,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,eAAO,MAAM,mBAAmB,UAAW,aAAa,WACU,CAAC;AAEnE,eAAO,MAAM,QAAQ,UAAW,aAAa,qDAM5C,CAAC"}
|
|
@@ -18,7 +18,7 @@ const mediaQueries_1 = require("../../mediaQueries");
|
|
|
18
18
|
const Text_1 = require("../../Text");
|
|
19
19
|
const util_1 = require("../../util");
|
|
20
20
|
const menuLinkStyle = (theme, _a) => {
|
|
21
|
-
var { bold = true, color = theme.general.color, fontSize =
|
|
21
|
+
var { bold = true, color = theme.general.color, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase', button = false } = _a, props = __rest(_a, ["bold", "color", "fontSize", "textTransform", "button"]);
|
|
22
22
|
return (Object.assign(Object.assign({}, (0, Text_1.linkStyle)(theme, Object.assign({ bold, color, fontSize, textTransform }, props))), { [mediaQueries_1.media[mediaQueries_1.QueryKeys.DESKTOP]]: {
|
|
23
23
|
'&:first-of-type': {
|
|
24
24
|
marginLeft: 0,
|
|
@@ -37,7 +37,7 @@ const menuLinkStyle = (theme, _a) => {
|
|
|
37
37
|
},
|
|
38
38
|
}, [mediaQueries_1.media[mediaQueries_1.QueryKeys.TABLET_DOWN]]: {
|
|
39
39
|
border: 'none',
|
|
40
|
-
fontSize: '
|
|
40
|
+
fontSize: '2rem !important',
|
|
41
41
|
fontWeight: 300,
|
|
42
42
|
maxWidth: '480px',
|
|
43
43
|
padding: '8px 24px',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSSObject } from '@emotion/react';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../Theme/Theme';
|
|
4
4
|
export interface MenuOpenButtonProps<T = HTMLDivElement> extends React.HTMLProps<T> {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuOpenButton.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuOpenButton.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuOpenButton.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuOpenButton.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IACjF,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,SAuBpF,CAAC;AAIH,eAAO,MAAM,cAAc,UAAW,mBAAmB,qDAMxD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
2
|
import { TextProps } from '../../Text';
|
|
3
|
-
import { Theme } from '
|
|
3
|
+
import { Theme } from '../../Theme/Theme';
|
|
4
4
|
type MenuSubLinkProps<T = HTMLDivElement> = TextProps<T>;
|
|
5
5
|
export declare const menuSubLinkStyle: <T>(theme: Theme, props: MenuSubLinkProps<T>) => CSSObject;
|
|
6
6
|
export declare const MenuSubLink: (props: MenuSubLinkProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuSubLink.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuSubLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,OAAO,EAAC,SAAS,EAAY,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"MenuSubLink.d.ts","sourceRoot":"","sources":["../../../src/Layout/headerMenu/MenuSubLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,OAAO,EAAC,SAAS,EAAY,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,KAAK,gBAAgB,CAAC,CAAC,GAAG,cAAc,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzD,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,SA8B9E,CAAC;AAEH,eAAO,MAAM,WAAW,UAAW,gBAAgB,qDAElD,CAAC"}
|
|
@@ -14,12 +14,12 @@ const menuSubLinkStyle = (theme, props) => (Object.assign(Object.assign({}, (0,
|
|
|
14
14
|
'&:last-child': {
|
|
15
15
|
marginRight: 0,
|
|
16
16
|
},
|
|
17
|
-
fontSize:
|
|
17
|
+
fontSize: theme.fontSizes.extraSmall,
|
|
18
18
|
margin: '0 26px 0 10px',
|
|
19
19
|
textTransform: 'uppercase',
|
|
20
20
|
}, [mediaQueries_1.media[mediaQueries_1.QueryKeys.TABLET_DOWN]]: {
|
|
21
21
|
border: 'none',
|
|
22
|
-
fontSize: '
|
|
22
|
+
fontSize: '2rem !important',
|
|
23
23
|
fontWeight: '300 !important',
|
|
24
24
|
maxWidth: '480px',
|
|
25
25
|
padding: '8px 24px',
|
package/lib/Layout/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAmBA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layout/index.ts"],"names":[],"mappings":"AAmBA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
package/lib/Layout/index.js
CHANGED
|
@@ -43,5 +43,5 @@ __exportStar(require("./headerMenu/index"), exports);
|
|
|
43
43
|
__exportStar(require("./MatchMedia"), exports);
|
|
44
44
|
__exportStar(require("./Spacer"), exports);
|
|
45
45
|
__exportStar(require("./StyledApp"), exports);
|
|
46
|
-
__exportStar(require("
|
|
46
|
+
__exportStar(require("../Theme/Theme"), exports);
|
|
47
47
|
__exportStar(require("./sizes"), exports);
|
package/lib/Menu/TabBar.js
CHANGED
|
@@ -29,7 +29,7 @@ const TabBar = (_a) => {
|
|
|
29
29
|
};
|
|
30
30
|
exports.TabBar = TabBar;
|
|
31
31
|
const tabBarItemStyle = (theme, _a) => {
|
|
32
|
-
var { block = true, center = true, color = theme.general.color, bold = true, active = false, fontSize =
|
|
32
|
+
var { block = true, center = true, color = theme.general.color, bold = true, active = false, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase' } = _a, props = __rest(_a, ["block", "center", "color", "bold", "active", "fontSize", "textTransform"]);
|
|
33
33
|
return Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, bold, center, color, fontSize, textTransform }, props))), { borderBottom: active ? `1px solid ${Identity_1.COLOR.GRAY_DARKEN_48}` : `1px solid ${Identity_1.COLOR.GRAY_LIGHTEN_40}`, cursor: 'pointer', display: 'flex', flexGrow: 1, justifyContent: 'center', opacity: active ? 1 : 0.56, padding: '8px 0' });
|
|
34
34
|
};
|
|
35
35
|
const TabBarItem = (_a) => {
|
package/lib/Misc/ButtonGroup.js
CHANGED
|
@@ -50,12 +50,12 @@ const ButtonGroup = ({ children }) => ((0, jsx_runtime_1.jsx)("div", Object.assi
|
|
|
50
50
|
exports.ButtonGroup = ButtonGroup;
|
|
51
51
|
const Button = (_a) => {
|
|
52
52
|
var { children, icon } = _a, props = __rest(_a, ["children", "icon"]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsxs)("button", Object.assign({ css: (theme) => buttonStyle(theme, props) }, props, { children: [icon, children && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: {
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)("button", Object.assign({ css: (theme) => buttonStyle(theme, props) }, props, { children: [icon, children && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: (theme) => ({
|
|
54
54
|
marginLeft: !!icon && '6px',
|
|
55
|
-
fontSize:
|
|
55
|
+
fontSize: theme.fontSizes.small,
|
|
56
56
|
fontWeight: 'bold',
|
|
57
|
-
lineHeight: '
|
|
57
|
+
lineHeight: '0.875rem',
|
|
58
58
|
letterSpacing: '0.25px',
|
|
59
|
-
} }, { children: children })))] })));
|
|
59
|
+
}) }, { children: children })))] })));
|
|
60
60
|
};
|
|
61
61
|
ButtonGroup.Button = Button;
|
package/lib/Misc/Pill.js
CHANGED
|
@@ -40,8 +40,8 @@ const pillStyle = (theme, { active = false, type = null }) => {
|
|
|
40
40
|
color: active ? Identity_1.COLOR.TEXT : theme.general.color,
|
|
41
41
|
cursor: active ? 'default' : undefined,
|
|
42
42
|
display: 'inline-block',
|
|
43
|
-
fontSize:
|
|
44
|
-
lineHeight: '
|
|
43
|
+
fontSize: theme.fontSizes.small,
|
|
44
|
+
lineHeight: '1rem',
|
|
45
45
|
margin: type ? '12px 0 0 0' : '0 8px',
|
|
46
46
|
minHeight: '32px',
|
|
47
47
|
padding: '8px 24px',
|
package/lib/Text/Heading.js
CHANGED
|
@@ -32,9 +32,9 @@ const Heading = (_a) => {
|
|
|
32
32
|
exports.Heading = Heading;
|
|
33
33
|
const h1Style = (theme, _a) => {
|
|
34
34
|
var { block = true, color = theme.general.color, level = '1', noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "level", "noWrap", "textTransform"]);
|
|
35
|
-
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '
|
|
36
|
-
fontSize: '
|
|
37
|
-
lineHeight: '
|
|
35
|
+
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '3rem', fontWeight: 300, lineHeight: '3.5rem', marginBottom: '64px', marginTop: 0, minHeight: '3rem', [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
36
|
+
fontSize: '2.5rem',
|
|
37
|
+
lineHeight: '3rem',
|
|
38
38
|
} }));
|
|
39
39
|
};
|
|
40
40
|
exports.h1Style = h1Style;
|
|
@@ -42,9 +42,9 @@ const H1 = (props) => ((0, jsx_runtime_1.jsx)("h1", Object.assign({ css: (theme)
|
|
|
42
42
|
exports.H1 = H1;
|
|
43
43
|
const h2Style = (theme, _a) => {
|
|
44
44
|
var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
|
|
45
|
-
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '
|
|
46
|
-
fontSize: '
|
|
47
|
-
lineHeight: '
|
|
45
|
+
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '1.25rem', fontWeight: 700, lineHeight: '1.75rem', marginBottom: '24px', marginTop: '32px', [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
46
|
+
fontSize: '1.125rem',
|
|
47
|
+
lineHeight: '1.625rem',
|
|
48
48
|
marginBottom: '20px',
|
|
49
49
|
marginTop: '26px',
|
|
50
50
|
} }));
|
|
@@ -54,14 +54,14 @@ const H2 = (props) => ((0, jsx_runtime_1.jsx)("h2", Object.assign({ css: (theme)
|
|
|
54
54
|
exports.H2 = H2;
|
|
55
55
|
const h3Style = (theme, _a) => {
|
|
56
56
|
var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
|
|
57
|
-
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize:
|
|
57
|
+
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: theme.fontSizes.base, fontWeight: 600, marginBottom: '16px' }));
|
|
58
58
|
};
|
|
59
59
|
exports.h3Style = h3Style;
|
|
60
60
|
const H3 = (props) => ((0, jsx_runtime_1.jsx)("h3", Object.assign({ css: (theme) => (0, exports.h3Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
|
61
61
|
exports.H3 = H3;
|
|
62
62
|
const h4Style = (theme, _a) => {
|
|
63
63
|
var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
|
|
64
|
-
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize:
|
|
64
|
+
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: theme.fontSizes.extraSmall, fontWeight: 300, marginBottom: '5px', marginTop: '20px' }));
|
|
65
65
|
};
|
|
66
66
|
exports.h4Style = h4Style;
|
|
67
67
|
const H4 = (props) => ((0, jsx_runtime_1.jsx)("h3", Object.assign({ css: (theme) => (0, exports.h4Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
package/lib/Text/Label.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/Text/Label.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAY,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAK7D,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAcD,eAAO,MAAM,KAAK,UAAW,UAAU,qDAEtC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/Text/Label.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAY,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAK7D,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAcD,eAAO,MAAM,KAAK,UAAW,UAAU,qDAEtC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AASjE,eAAO,MAAM,SAAS,UAAW,WAAW,iBAAiB,CAAC,qDAE7D,CAAC"}
|
package/lib/Text/Label.js
CHANGED
|
@@ -17,7 +17,7 @@ const Link_1 = require("./Link");
|
|
|
17
17
|
const Text_1 = require("./Text");
|
|
18
18
|
const Identity_1 = require("../Identity");
|
|
19
19
|
const labelStyle = (theme, _a) => {
|
|
20
|
-
var { markInvalid, bold = false, color = theme.general.color, fontSize =
|
|
20
|
+
var { markInvalid, bold = false, color = theme.general.color, fontSize = theme.fontSizes.small } = _a, props = __rest(_a, ["markInvalid", "bold", "color", "fontSize"]);
|
|
21
21
|
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ bold, color, fontSize }, props))), { '&:focus-within': {
|
|
22
22
|
color: Identity_1.COLOR.BLUE,
|
|
23
23
|
}, color: markInvalid ? Identity_1.COLOR.RED : 'initial', width: '100%' }));
|
|
@@ -25,7 +25,7 @@ const labelStyle = (theme, _a) => {
|
|
|
25
25
|
const Label = (props) => ((0, jsx_runtime_1.jsx)("label", Object.assign({ css: (theme) => labelStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
|
26
26
|
exports.Label = Label;
|
|
27
27
|
const labelLinkStyle = (theme, _a) => {
|
|
28
|
-
var { fontSize =
|
|
28
|
+
var { fontSize = theme.fontSizes.small } = _a, props = __rest(_a, ["fontSize"]);
|
|
29
29
|
return (Object.assign({}, (0, Link_1.linkStyle)(theme, Object.assign({ fontSize }, props))));
|
|
30
30
|
};
|
|
31
31
|
const LabelLink = (props) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => labelLinkStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
package/lib/Text/Link.js
CHANGED
|
@@ -22,14 +22,14 @@ var LinkVariant;
|
|
|
22
22
|
LinkVariant["SECONDARY"] = "secondary";
|
|
23
23
|
})(LinkVariant = exports.LinkVariant || (exports.LinkVariant = {}));
|
|
24
24
|
const linkStyle = (theme, _a) => {
|
|
25
|
-
var { bold = true, fontSize =
|
|
25
|
+
var { bold = true, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase', variant = LinkVariant.SECONDARY, color = theme.general.color } = _a, props = __rest(_a, ["bold", "fontSize", "textTransform", "variant", "color"]);
|
|
26
26
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ bold, color, fontSize, textTransform }, props))), { color: color, cursor: 'pointer', textDecoration: 'none', '&:visited, &:link, &:active': {
|
|
27
27
|
color: color,
|
|
28
28
|
} }), (variant === LinkVariant.PRIMARY && {
|
|
29
29
|
'&:hover, &:visited:hover, &:focus-visible': {
|
|
30
30
|
color: theme.general.primaryColor,
|
|
31
31
|
},
|
|
32
|
-
fontSize:
|
|
32
|
+
fontSize: theme.fontSizes.base,
|
|
33
33
|
fontWeight: 400,
|
|
34
34
|
textTransform: 'none',
|
|
35
35
|
textDecoration: 'underline',
|
package/lib/Text/Paragraph.js
CHANGED
|
@@ -23,9 +23,9 @@ exports.paragraphStyle = paragraphStyle;
|
|
|
23
23
|
const Paragraph = (props) => ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => (0, exports.paragraphStyle)(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
|
24
24
|
exports.Paragraph = Paragraph;
|
|
25
25
|
const leadStyle = (theme, _a) => {
|
|
26
|
-
var { block = true, center = true, fontSize =
|
|
26
|
+
var { block = true, center = true, fontSize = theme.fontSizes.extraLarge } = _a, props = __rest(_a, ["block", "center", "fontSize"]);
|
|
27
27
|
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, center, fontSize }, props))), { marginBottom: '56px', marginTop: 0, [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
28
|
-
fontSize: '
|
|
28
|
+
fontSize: '1.125rem',
|
|
29
29
|
} }));
|
|
30
30
|
};
|
|
31
31
|
exports.leadStyle = leadStyle;
|
package/lib/Text/Text.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ export interface TextProps<T = HTMLSpanElement> extends React.PropsWithRef<React
|
|
|
16
16
|
}
|
|
17
17
|
export declare const filterTextProps: (props: TextProps) => Object;
|
|
18
18
|
export declare const textStyle: <T>(theme: Theme, props: TextProps<T>) => CSSObject;
|
|
19
|
-
export declare const Text: React.
|
|
20
|
-
export declare const Bold: React.
|
|
21
|
-
export declare const Small: React.
|
|
22
|
-
export declare const Muted: React.
|
|
23
|
-
export declare const Uppercase: React.
|
|
24
|
-
export declare const Large: React.
|
|
19
|
+
export declare const Text: React.FC<TextProps>;
|
|
20
|
+
export declare const Bold: React.FC<TextProps>;
|
|
21
|
+
export declare const Small: React.FC<TextProps>;
|
|
22
|
+
export declare const Muted: React.FC<TextProps>;
|
|
23
|
+
export declare const Uppercase: React.FC<TextProps>;
|
|
24
|
+
export declare const Large: React.FC<TextProps>;
|
|
25
25
|
//# sourceMappingURL=Text.d.ts.map
|
package/lib/Text/Text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAGhC,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC5F,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,UAAW,SAAS,WAa/C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,SAwBhE,CAAC;AAEH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAGhC,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC5F,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,UAAW,SAAS,WAa/C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,SAwBhE,CAAC;AAEH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEnC,CAAC;AAGH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEnC,CAAC;AAGH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAErC,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAErC,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEzC,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAErC,CAAC"}
|
package/lib/Text/Text.js
CHANGED
|
@@ -61,7 +61,7 @@ const filterTextProps = (props) => {
|
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
exports.filterTextProps = filterTextProps;
|
|
64
|
-
const textStyle = (theme, { block = false, bold = false, center = false, color = theme.general.color, fontSize =
|
|
64
|
+
const textStyle = (theme, { block = false, bold = false, center = false, color = theme.general.color, fontSize = theme.fontSizes.base, light = false, muted = false, noWrap = false, textTransform = 'none', truncate = false, }) => ({
|
|
65
65
|
color: muted ? Identity_1.COLOR.GRAY : color,
|
|
66
66
|
display: block ? 'block' : 'inline',
|
|
67
67
|
fontSize: fontSize,
|
|
@@ -77,11 +77,11 @@ exports.Text = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("span",
|
|
|
77
77
|
exports.Text.displayName = 'Text';
|
|
78
78
|
exports.Bold = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, bold: true }, props))));
|
|
79
79
|
exports.Bold.displayName = 'Bold';
|
|
80
|
-
exports.Small = React.forwardRef((props, ref) => (
|
|
80
|
+
exports.Small = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, fontSize: '12px' }, props)));
|
|
81
81
|
exports.Small.displayName = 'Small';
|
|
82
|
-
exports.Muted = React.forwardRef((props, ref) => (
|
|
82
|
+
exports.Muted = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, muted: true }, props)));
|
|
83
83
|
exports.Muted.displayName = 'Muted';
|
|
84
|
-
exports.Uppercase = React.forwardRef((props, ref) => (
|
|
84
|
+
exports.Uppercase = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, textTransform: 'uppercase' }, props)));
|
|
85
85
|
exports.Uppercase.displayName = 'Uppercase';
|
|
86
|
-
exports.Large = React.forwardRef((props, ref) => (
|
|
86
|
+
exports.Large = React.forwardRef((props, ref) => (0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, fontSize: '48px', light: true }, props)));
|
|
87
87
|
exports.Large.displayName = 'Large';
|
package/lib/Text/TextLink.js
CHANGED
|
@@ -16,7 +16,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
16
16
|
const Link_1 = require("./Link");
|
|
17
17
|
const colors_v2_1 = require("../Identity/colors-v2");
|
|
18
18
|
const textLinkStyle = (theme, _a) => {
|
|
19
|
-
var { color = colors_v2_1.COLOR_V2.BLUE, fontSize =
|
|
19
|
+
var { color = colors_v2_1.COLOR_V2.BLUE, fontSize = theme.fontSizes.base, bold = false, textTransform = 'none' } = _a, props = __rest(_a, ["color", "fontSize", "bold", "textTransform"]);
|
|
20
20
|
return (Object.assign({}, (0, Link_1.linkStyle)(theme, Object.assign({ bold, color, fontSize, textTransform }, props))));
|
|
21
21
|
};
|
|
22
22
|
exports.textLinkStyle = textLinkStyle;
|
package/lib/Text/Title.js
CHANGED
|
@@ -16,7 +16,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
16
16
|
const Text_1 = require("./Text");
|
|
17
17
|
const Identity_1 = require("../Identity");
|
|
18
18
|
const titleStyle = (theme, _a) => {
|
|
19
|
-
var { block = true, center = true, fontSize = '
|
|
19
|
+
var { block = true, center = true, fontSize = ' 2rem', color = Identity_1.COLOR.GRAY, bold = true } = _a, props = __rest(_a, ["block", "center", "fontSize", "color", "bold"]);
|
|
20
20
|
return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, bold, center, color, fontSize }, props))), { marginBottom: '8px' }));
|
|
21
21
|
};
|
|
22
22
|
const Title = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: (theme) => titleStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalCssVariables.d.ts","sourceRoot":"","sources":["../../src/Theme/GlobalCssVariables.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AA6GzC,eAAO,MAAM,kBAAkB;iBAzGZ,SAAS;gBA4CV,SAAS;wBA4CD,SAAS;CAqBlC,CAAC"}
|