@wireapp/react-ui-kit 9.17.9 → 9.18.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/lib/Form/Button.js +1 -15
- package/lib/Form/Button.styles.js +157 -110
- package/lib/Form/ButtonLink.d.ts.map +1 -1
- package/lib/Form/ButtonLink.js +5 -16
- package/lib/Form/Checkbox.js +75 -45
- package/lib/Form/CodeInput.js +17 -6
- package/lib/Form/DropFileInput.js +5 -14
- package/lib/Form/ErrorMessage.js +8 -19
- package/lib/Form/Form.d.ts.map +1 -1
- package/lib/Form/Form.js +2 -2
- package/lib/Form/IndicatorRangeInput.js +6 -19
- package/lib/Form/IndicatorRangeInput.styles.js +36 -6
- package/lib/Form/Input.js +21 -18
- package/lib/Form/InputBlock.d.ts +1 -1
- package/lib/Form/InputBlock.d.ts.map +1 -1
- package/lib/Form/InputBlock.js +1 -1
- package/lib/Form/InputLabel.js +6 -20
- package/lib/Form/InputSubmitCombo.js +22 -25
- package/lib/Form/RangeInput.d.ts +0 -1
- package/lib/Form/RangeInput.d.ts.map +1 -1
- package/lib/Form/RangeInput.js +2 -14
- package/lib/Form/RangeInput.styles.js +26 -14
- package/lib/Form/RoundIconButton.js +14 -16
- package/lib/Form/Select.d.ts.map +1 -1
- package/lib/Form/Select.js +9 -16
- package/lib/Form/SelectComponents.d.ts.map +1 -1
- package/lib/Form/SelectComponents.js +21 -35
- package/lib/Form/SelectStyles.js +164 -82
- package/lib/Form/TextArea.js +11 -4
- package/lib/Form/Tooltip.js +2 -14
- package/lib/GlobalStyle.d.ts +0 -1
- package/lib/GlobalStyle.d.ts.map +1 -1
- package/lib/GlobalStyle.js +17 -3
- package/lib/Icon/AddPeopleIcon.js +1 -15
- package/lib/Icon/ArchiveIcon.js +1 -1
- package/lib/Icon/ArrowDown.js +1 -15
- package/lib/Icon/ArrowIcon.js +1 -15
- package/lib/Icon/AttachmentIcon.js +1 -1
- package/lib/Icon/AudioVideoIcon.js +1 -1
- package/lib/Icon/BlockIcon.js +1 -1
- package/lib/Icon/Brand/AndroidIcon.js +1 -1
- package/lib/Icon/Brand/AppleIcon.js +1 -1
- package/lib/Icon/Brand/ChromeIcon.js +1 -1
- package/lib/Icon/Brand/FacebookIcon.js +1 -1
- package/lib/Icon/Brand/GitHubIcon.js +1 -1
- package/lib/Icon/Brand/LinkedInIcon.js +1 -1
- package/lib/Icon/Brand/LinuxIcon.js +1 -1
- package/lib/Icon/Brand/MicrosoftIcon.js +1 -1
- package/lib/Icon/Brand/TwitterIcon.js +1 -1
- package/lib/Icon/CallIcon.js +1 -1
- package/lib/Icon/CamIcon.js +1 -1
- package/lib/Icon/CameraIcon.js +1 -15
- package/lib/Icon/CertificateExpired.js +1 -1
- package/lib/Icon/CertificateRevoked.js +1 -1
- package/lib/Icon/CheckIcon.js +1 -1
- package/lib/Icon/CheckRoundIcon.js +1 -1
- package/lib/Icon/ChevronIcon.js +1 -15
- package/lib/Icon/CircleCloseIcon.js +1 -1
- package/lib/Icon/CloseIcon.js +1 -1
- package/lib/Icon/CopyIcon.js +1 -1
- package/lib/Icon/DeviceIcon.js +1 -1
- package/lib/Icon/DownloadIcon.js +1 -1
- package/lib/Icon/EditDocumentIcon.js +1 -15
- package/lib/Icon/EditIcon.js +1 -1
- package/lib/Icon/EnterIcon.js +1 -1
- package/lib/Icon/ErrorIcon.js +1 -1
- package/lib/Icon/ExpiresSoon.js +1 -1
- package/lib/Icon/FileIcon.js +1 -1
- package/lib/Icon/GifIcon.js +1 -1
- package/lib/Icon/GridIcon.js +1 -15
- package/lib/Icon/GroupIcon.js +1 -1
- package/lib/Icon/HangupIcon.js +1 -1
- package/lib/Icon/HideIcon.js +1 -1
- package/lib/Icon/ImageIcon.js +1 -1
- package/lib/Icon/InfoIcon.js +1 -1
- package/lib/Icon/InviteIcon.js +1 -1
- package/lib/Icon/LeaveIcon.js +1 -1
- package/lib/Icon/LinkIcon.js +1 -15
- package/lib/Icon/ListIcon.js +1 -1
- package/lib/Icon/LockIcon.js +1 -1
- package/lib/Icon/MLSVerified.js +1 -1
- package/lib/Icon/MessageIcon.js +1 -1
- package/lib/Icon/MinusIcon.js +1 -1
- package/lib/Icon/MoreIcon.js +1 -1
- package/lib/Icon/MuteIcon.js +1 -1
- package/lib/Icon/NotificationIcon.js +1 -1
- package/lib/Icon/NotificationOffIcon.js +1 -1
- package/lib/Icon/OptionsIcon.js +1 -1
- package/lib/Icon/OutlineCheck.d.ts +3 -0
- package/lib/Icon/OutlineCheck.d.ts.map +1 -0
- package/lib/Icon/OutlineCheck.js +25 -0
- package/lib/Icon/PeopleIcon.js +1 -15
- package/lib/Icon/PingIcon.js +1 -1
- package/lib/Icon/PlaneIcon.js +1 -1
- package/lib/Icon/PlusIcon.js +1 -1
- package/lib/Icon/ProfileIcon.js +1 -1
- package/lib/Icon/ProteusVerified.js +1 -1
- package/lib/Icon/RecordBoldIcon.js +4 -18
- package/lib/Icon/RecordIcon.js +1 -1
- package/lib/Icon/RecordPendingIcon.js +1 -1
- package/lib/Icon/ReloadIcon.js +1 -1
- package/lib/Icon/SVGIcon.js +2 -14
- package/lib/Icon/ScreenshareIcon.js +1 -1
- package/lib/Icon/SearchIcon.js +1 -1
- package/lib/Icon/ServicesIcon.js +1 -1
- package/lib/Icon/SettingsIcon.js +1 -1
- package/lib/Icon/ShowIcon.js +1 -1
- package/lib/Icon/SignIcon.js +1 -1
- package/lib/Icon/SpeakerIcon.js +1 -1
- package/lib/Icon/StarIcon.js +1 -1
- package/lib/Icon/SupportIcon.js +1 -1
- package/lib/Icon/TeamIcon.js +1 -1
- package/lib/Icon/TimedIcon.js +1 -1
- package/lib/Icon/TrashCrossIcon.js +1 -1
- package/lib/Icon/TrashIcon.js +1 -1
- package/lib/Icon/TriangleIcon.js +1 -15
- package/lib/Icon/UploadIcon.js +1 -1
- package/lib/Icon/VerificationShieldIcon.js +1 -4
- package/lib/Icon/WireIcon.js +1 -1
- package/lib/Icon/index.d.ts +1 -0
- package/lib/Icon/index.d.ts.map +1 -1
- package/lib/Icon/index.js +1 -0
- package/lib/Identity/Animation.js +62 -88
- package/lib/Identity/Avatar.js +2 -2
- package/lib/Identity/AvatarGrid.js +4 -16
- package/lib/Identity/Logo.js +1 -15
- package/lib/Identity/colors-v2.js +25 -3
- package/lib/Identity/colors.js +11 -2
- package/lib/Layout/Box.d.ts +1 -1
- package/lib/Layout/Box.d.ts.map +1 -1
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Column.d.ts +1 -1
- package/lib/Layout/Column.d.ts.map +1 -1
- package/lib/Layout/Column.js +2 -2
- package/lib/Layout/Container.js +6 -20
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/Content.d.ts.map +1 -1
- package/lib/Layout/Content.js +1 -1
- package/lib/Layout/FlexBox.js +1 -1
- package/lib/Layout/Footer.d.ts.map +1 -1
- package/lib/Layout/Footer.js +1 -1
- package/lib/Layout/Header.d.ts +1 -1
- package/lib/Layout/Header.d.ts.map +1 -1
- package/lib/Layout/Header.js +1 -1
- package/lib/Layout/MatchMedia.js +8 -8
- package/lib/Layout/Spacer.js +1 -2
- package/lib/Layout/StyledApp.js +2 -16
- package/lib/Layout/headerMenu/HeaderMenu.js +2 -14
- package/lib/Layout/headerMenu/HeaderSubMenu.d.ts +1 -1
- package/lib/Layout/headerMenu/HeaderSubMenu.d.ts.map +1 -1
- package/lib/Layout/headerMenu/HeaderSubMenu.js +4 -16
- package/lib/Layout/headerMenu/MenuContent.js +14 -2
- package/lib/Layout/headerMenu/MenuItems.js +1 -1
- package/lib/Layout/headerMenu/MenuLink.js +28 -35
- package/lib/Layout/headerMenu/MenuOpenButton.js +1 -1
- package/lib/Layout/headerMenu/MenuScrollableItems.js +1 -1
- package/lib/Layout/headerMenu/MenuSubLink.js +15 -5
- package/lib/Menu/MenuModal.d.ts.map +1 -1
- package/lib/Menu/MenuModal.js +28 -35
- package/lib/Menu/TabBar.d.ts +1 -1
- package/lib/Menu/TabBar.d.ts.map +1 -1
- package/lib/Menu/TabBar.js +13 -22
- package/lib/Misc/ButtonGroup.js +38 -35
- package/lib/Misc/IconButton.js +63 -50
- package/lib/Misc/IsInViewport.js +2 -14
- package/lib/Misc/Loading.js +3 -15
- package/lib/Misc/Pagination.js +2 -14
- package/lib/Misc/Pill.js +1 -1
- package/lib/Misc/childrenWithDefaultProps.d.ts.map +1 -1
- package/lib/Misc/childrenWithDefaultProps.js +1 -1
- package/lib/Modal/Modal.js +11 -22
- package/lib/Modal/Overlay.d.ts +2 -2
- package/lib/Modal/Overlay.d.ts.map +1 -1
- package/lib/Modal/Overlay.js +5 -19
- package/lib/Text/Heading.js +49 -45
- package/lib/Text/Label.d.ts.map +1 -1
- package/lib/Text/Label.js +13 -23
- package/lib/Text/Line.js +1 -1
- package/lib/Text/Link.js +26 -31
- package/lib/Text/Paragraph.js +15 -23
- package/lib/Text/Text.js +6 -6
- package/lib/Text/TextLink.d.ts.map +1 -1
- package/lib/Text/TextLink.js +4 -16
- package/lib/Text/Title.js +5 -16
- package/lib/Theme/Theme.js +1 -1
- package/lib/mediaQueries.js +1 -1
- package/lib/util.js +1 -1
- package/package.json +3 -3
package/lib/Modal/Overlay.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { CSSObject } from '@emotion/react';
|
|
3
3
|
export type OverlayWrapperProps<T = HTMLDivElement> = React.HTMLProps<T>;
|
|
4
4
|
export declare const overlayWrapperStyle: <T>(props: OverlayWrapperProps<T>) => CSSObject;
|
|
5
|
-
export declare const OverlayWrapper: (props: OverlayWrapperProps
|
|
5
|
+
export declare const OverlayWrapper: (props: OverlayWrapperProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const OverlayContent: (props: React.HTMLProps<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export type OverlayBackgroundProps<T = HTMLDivElement> = React.HTMLProps<T>;
|
|
8
8
|
export declare const overlayBackgroundStyle: <T>(props: OverlayBackgroundProps<T>) => CSSObject;
|
|
9
|
-
export declare const OverlayBackground: (props: OverlayBackgroundProps
|
|
9
|
+
export declare const OverlayBackground: (props: OverlayBackgroundProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
10
|
export interface OverlayProps<T = HTMLDivElement> extends React.HTMLProps<T> {
|
|
11
11
|
onBackgroundClick?: () => void;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Modal/Overlay.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAOzC,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,SAUtE,CAAC;AAEH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Modal/Overlay.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAOzC,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,SAUtE,CAAC;AAEH,eAAO,MAAM,cAAc,UAAW,mBAAmB,qDAAiD,CAAC;AAE3G,eAAO,MAAM,cAAc,UAAW,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,qDAsBpE,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,SAS5E,CAAC;AAEH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,qDAAoD,CAAC;AAEpH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,OAAO,8CAA2D,YAAY,qDAK1F,CAAC"}
|
package/lib/Modal/Overlay.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Overlay = exports.OverlayBackground = exports.overlayBackgroundStyle = exports.OverlayContent = exports.OverlayWrapper = exports.overlayWrapperStyle = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -29,9 +18,9 @@ const overlayWrapperStyle = () => ({
|
|
|
29
18
|
zIndex: 9997,
|
|
30
19
|
});
|
|
31
20
|
exports.overlayWrapperStyle = overlayWrapperStyle;
|
|
32
|
-
const OverlayWrapper = (props) => (0, jsx_runtime_1.jsx)("div",
|
|
21
|
+
const OverlayWrapper = (props) => (0, jsx_runtime_1.jsx)("div", { css: exports.overlayWrapperStyle, ...props });
|
|
33
22
|
exports.OverlayWrapper = OverlayWrapper;
|
|
34
|
-
const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div",
|
|
23
|
+
const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div", { css: {
|
|
35
24
|
'*': {
|
|
36
25
|
color: Identity_1.COLOR.WHITE,
|
|
37
26
|
},
|
|
@@ -48,7 +37,7 @@ const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({
|
|
|
48
37
|
[mediaQueries_1.media[mediaQueries_1.QueryKeys.TABLET_DOWN]]: {
|
|
49
38
|
width: '100%',
|
|
50
39
|
},
|
|
51
|
-
}
|
|
40
|
+
}, ...props }));
|
|
52
41
|
exports.OverlayContent = OverlayContent;
|
|
53
42
|
const overlayBackgroundStyle = () => ({
|
|
54
43
|
animation: `${motions_1.ANIMATION.fadeIn} ${motions_1.DURATION.PROACTIVE_SLOW}ms ${motions_1.EASE.QUART}`,
|
|
@@ -61,10 +50,7 @@ const overlayBackgroundStyle = () => ({
|
|
|
61
50
|
zIndex: 9998,
|
|
62
51
|
});
|
|
63
52
|
exports.overlayBackgroundStyle = overlayBackgroundStyle;
|
|
64
|
-
const OverlayBackground = (props) => (0, jsx_runtime_1.jsx)("div",
|
|
53
|
+
const OverlayBackground = (props) => (0, jsx_runtime_1.jsx)("div", { css: exports.overlayBackgroundStyle, ...props });
|
|
65
54
|
exports.OverlayBackground = OverlayBackground;
|
|
66
|
-
const Overlay = (
|
|
67
|
-
var { onBackgroundClick = util_1.noop, children = null } = _a, props = __rest(_a, ["onBackgroundClick", "children"]);
|
|
68
|
-
return ((0, jsx_runtime_1.jsxs)(exports.OverlayWrapper, Object.assign({}, props, { "data-uie-name": "modal", children: [(0, jsx_runtime_1.jsx)(exports.OverlayContent, { children: children }), (0, jsx_runtime_1.jsx)(exports.OverlayBackground, { onClick: onBackgroundClick, "data-uie-name": "overlay-background" })] })));
|
|
69
|
-
};
|
|
55
|
+
const Overlay = ({ onBackgroundClick = util_1.noop, children = null, ...props }) => ((0, jsx_runtime_1.jsxs)(exports.OverlayWrapper, { ...props, "data-uie-name": "modal", children: [(0, jsx_runtime_1.jsx)(exports.OverlayContent, { children: children }), (0, jsx_runtime_1.jsx)(exports.OverlayBackground, { onClick: onBackgroundClick, "data-uie-name": "overlay-background" })] }));
|
|
70
56
|
exports.Overlay = Overlay;
|
package/lib/Text/Heading.js
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.H4 = exports.h4Style = exports.H3 = exports.h3Style = exports.H2 = exports.h2Style = exports.H1 = exports.h1Style = exports.Heading = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
5
|
const Text_1 = require("./Text");
|
|
17
6
|
const mediaQueries_1 = require("../mediaQueries");
|
|
18
|
-
const Heading = (
|
|
19
|
-
var { level } = _a, props = __rest(_a, ["level"]);
|
|
7
|
+
const Heading = ({ level, ...props }) => {
|
|
20
8
|
switch (level) {
|
|
21
9
|
case '2':
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(exports.H2,
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(exports.H2, { ...props });
|
|
23
11
|
case '3':
|
|
24
|
-
return (0, jsx_runtime_1.jsx)(exports.H3,
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(exports.H3, { ...props });
|
|
25
13
|
case '4':
|
|
26
|
-
return (0, jsx_runtime_1.jsx)(exports.H4,
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(exports.H4, { ...props });
|
|
27
15
|
case '1':
|
|
28
16
|
default:
|
|
29
|
-
return (0, jsx_runtime_1.jsx)(exports.H1,
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(exports.H1, { ...props });
|
|
30
18
|
}
|
|
31
19
|
};
|
|
32
20
|
exports.Heading = Heading;
|
|
33
|
-
const h1Style = (theme,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
21
|
+
const h1Style = (theme, { block = true, color = theme.general.color, level = '1', noWrap = false, textTransform = 'none', ...props }) => ({
|
|
22
|
+
...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
|
|
23
|
+
fontSize: '3rem',
|
|
24
|
+
fontWeight: 400,
|
|
25
|
+
lineHeight: '3.5rem',
|
|
26
|
+
marginBottom: '64px',
|
|
27
|
+
marginTop: 0,
|
|
28
|
+
minHeight: '3rem',
|
|
29
|
+
[mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
30
|
+
fontSize: '2.5rem',
|
|
31
|
+
lineHeight: '3rem',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
40
34
|
exports.h1Style = h1Style;
|
|
41
|
-
const H1 = (props) => ((0, jsx_runtime_1.jsx)("h1",
|
|
35
|
+
const H1 = (props) => ((0, jsx_runtime_1.jsx)("h1", { css: (theme) => (0, exports.h1Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
42
36
|
exports.H1 = H1;
|
|
43
|
-
const h2Style = (theme,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
const h2Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
|
|
38
|
+
...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
|
|
39
|
+
fontSize: '1.25rem',
|
|
40
|
+
fontWeight: 700,
|
|
41
|
+
lineHeight: '1.75rem',
|
|
42
|
+
marginBottom: '24px',
|
|
43
|
+
marginTop: '32px',
|
|
44
|
+
[mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
45
|
+
fontSize: '1.125rem',
|
|
46
|
+
lineHeight: '1.625rem',
|
|
47
|
+
marginBottom: '20px',
|
|
48
|
+
marginTop: '26px',
|
|
49
|
+
},
|
|
50
|
+
});
|
|
52
51
|
exports.h2Style = h2Style;
|
|
53
|
-
const H2 = (props) => ((0, jsx_runtime_1.jsx)("h2",
|
|
52
|
+
const H2 = (props) => ((0, jsx_runtime_1.jsx)("h2", { css: (theme) => (0, exports.h2Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
54
53
|
exports.H2 = H2;
|
|
55
|
-
const h3Style = (theme,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
const h3Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
|
|
55
|
+
...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
|
|
56
|
+
fontSize: theme.fontSizes.base,
|
|
57
|
+
fontWeight: 600,
|
|
58
|
+
marginBottom: '16px',
|
|
59
|
+
});
|
|
59
60
|
exports.h3Style = h3Style;
|
|
60
|
-
const H3 = (props) => ((0, jsx_runtime_1.jsx)("h3",
|
|
61
|
+
const H3 = (props) => ((0, jsx_runtime_1.jsx)("h3", { css: (theme) => (0, exports.h3Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
61
62
|
exports.H3 = H3;
|
|
62
|
-
const h4Style = (theme,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
const h4Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
|
|
64
|
+
...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
|
|
65
|
+
fontSize: theme.fontSizes.extraSmall,
|
|
66
|
+
fontWeight: 400,
|
|
67
|
+
marginBottom: '5px',
|
|
68
|
+
marginTop: '20px',
|
|
69
|
+
});
|
|
66
70
|
exports.h4Style = h4Style;
|
|
67
|
-
const H4 = (props) => ((0, jsx_runtime_1.jsx)("h3",
|
|
71
|
+
const H4 = (props) => ((0, jsx_runtime_1.jsx)("h3", { css: (theme) => (0, exports.h4Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
68
72
|
exports.H4 = H4;
|
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;AASjE,eAAO,MAAM,SAAS,UAAW,
|
|
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,UAAU,CAAC,iBAAiB,CAAC,qDAE7D,CAAC"}
|
package/lib/Text/Label.js
CHANGED
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.LabelLink = exports.Label = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
5
|
const Link_1 = require("./Link");
|
|
17
6
|
const Text_1 = require("./Text");
|
|
18
7
|
const Identity_1 = require("../Identity");
|
|
19
|
-
const labelStyle = (theme,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
const labelStyle = (theme, { markInvalid, bold = false, color = theme.general.color, fontSize = theme.fontSizes.small, ...props }) => ({
|
|
9
|
+
...(0, Text_1.textStyle)(theme, { bold, color, fontSize, ...props }),
|
|
10
|
+
'&:focus-within': {
|
|
11
|
+
color: Identity_1.COLOR.BLUE,
|
|
12
|
+
},
|
|
13
|
+
color: markInvalid ? Identity_1.COLOR.RED : 'initial',
|
|
14
|
+
width: '100%',
|
|
15
|
+
});
|
|
16
|
+
const Label = (props) => ((0, jsx_runtime_1.jsx)("label", { css: (theme) => labelStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
26
17
|
exports.Label = Label;
|
|
27
|
-
const labelLinkStyle = (theme,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
const LabelLink = (props) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => labelLinkStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
|
|
18
|
+
const labelLinkStyle = (theme, { fontSize = theme.fontSizes.small, ...props }) => ({
|
|
19
|
+
...(0, Link_1.linkStyle)(theme, { fontSize, ...props }),
|
|
20
|
+
});
|
|
21
|
+
const LabelLink = (props) => ((0, jsx_runtime_1.jsx)("a", { css: (theme) => labelLinkStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
32
22
|
exports.LabelLink = LabelLink;
|
package/lib/Text/Line.js
CHANGED
|
@@ -11,5 +11,5 @@ const lineStyle = ({ color = Identity_1.COLOR.GRAY_LIGHTEN_72 }) => ({
|
|
|
11
11
|
marginTop: `${sizes_1.GUTTER}px`,
|
|
12
12
|
});
|
|
13
13
|
exports.lineStyle = lineStyle;
|
|
14
|
-
const Line = (props) => (0, jsx_runtime_1.jsx)("hr",
|
|
14
|
+
const Line = (props) => (0, jsx_runtime_1.jsx)("hr", { css: (0, exports.lineStyle)(props), ...props });
|
|
15
15
|
exports.Line = Line;
|
package/lib/Text/Link.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Link = exports.filterLinkProps = exports.linkStyle = exports.LinkVariant = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -21,31 +10,37 @@ var LinkVariant;
|
|
|
21
10
|
LinkVariant["PRIMARY"] = "primary";
|
|
22
11
|
LinkVariant["SECONDARY"] = "secondary";
|
|
23
12
|
})(LinkVariant || (exports.LinkVariant = LinkVariant = {}));
|
|
24
|
-
const linkStyle = (theme,
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
const linkStyle = (theme, { bold = true, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase', variant = LinkVariant.SECONDARY, color = theme.general.color, ...props }) => {
|
|
14
|
+
return {
|
|
15
|
+
...(0, Text_1.textStyle)(theme, { bold, color, fontSize, textTransform, ...props }),
|
|
16
|
+
color: color,
|
|
17
|
+
cursor: 'pointer',
|
|
18
|
+
textDecoration: 'none',
|
|
19
|
+
'&:visited, &:link, &:active': {
|
|
27
20
|
color: color,
|
|
28
|
-
} }), (variant === LinkVariant.PRIMARY && {
|
|
29
|
-
'&:hover, &:visited:hover, &:focus-visible': {
|
|
30
|
-
color: theme.general.primaryColor,
|
|
31
|
-
},
|
|
32
|
-
fontSize: theme.fontSizes.base,
|
|
33
|
-
fontWeight: 400,
|
|
34
|
-
textTransform: 'none',
|
|
35
|
-
textDecoration: 'underline',
|
|
36
|
-
textUnderlineOffset: '2px',
|
|
37
|
-
})), (variant === LinkVariant.SECONDARY && {
|
|
38
|
-
transition: motions_1.defaultTransition,
|
|
39
|
-
'&:hover': {
|
|
40
|
-
filter: 'brightness(70%)',
|
|
41
21
|
},
|
|
42
|
-
|
|
22
|
+
...(variant === LinkVariant.PRIMARY && {
|
|
23
|
+
'&:hover, &:visited:hover, &:focus-visible': {
|
|
24
|
+
color: theme.general.primaryColor,
|
|
25
|
+
},
|
|
26
|
+
fontSize: theme.fontSizes.base,
|
|
27
|
+
fontWeight: 400,
|
|
28
|
+
textTransform: 'none',
|
|
29
|
+
textDecoration: 'underline',
|
|
30
|
+
textUnderlineOffset: '2px',
|
|
31
|
+
}),
|
|
32
|
+
...(variant === LinkVariant.SECONDARY && {
|
|
33
|
+
transition: motions_1.defaultTransition,
|
|
34
|
+
'&:hover': {
|
|
35
|
+
filter: 'brightness(70%)',
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
43
39
|
};
|
|
44
40
|
exports.linkStyle = linkStyle;
|
|
45
41
|
const filterLinkProps = (props) => (0, util_1.filterProps)((0, Text_1.filterTextProps)(props), []);
|
|
46
42
|
exports.filterLinkProps = filterLinkProps;
|
|
47
|
-
const Link = (
|
|
48
|
-
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => (0, exports.linkStyle)(theme, props), target: targetBlank && '_blank', rel: "noopener noreferrer" }, (0, exports.filterLinkProps)(props), { children: props.children })));
|
|
43
|
+
const Link = ({ targetBlank, ...props }) => {
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)("a", { css: (theme) => (0, exports.linkStyle)(theme, props), target: targetBlank && '_blank', rel: "noopener noreferrer", ...(0, exports.filterLinkProps)(props), children: props.children }));
|
|
50
45
|
};
|
|
51
46
|
exports.Link = Link;
|
package/lib/Text/Paragraph.js
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Lead = exports.leadStyle = exports.Paragraph = exports.paragraphStyle = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
5
|
const Text_1 = require("./Text");
|
|
17
6
|
const mediaQueries_1 = require("../mediaQueries");
|
|
18
|
-
const paragraphStyle = (theme,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
const paragraphStyle = (theme, { block = true, ...props }) => ({
|
|
8
|
+
...(0, Text_1.textStyle)(theme, { block, ...props }),
|
|
9
|
+
marginBottom: '16px',
|
|
10
|
+
marginTop: 0,
|
|
11
|
+
});
|
|
22
12
|
exports.paragraphStyle = paragraphStyle;
|
|
23
|
-
const Paragraph = (props) => ((0, jsx_runtime_1.jsx)("p",
|
|
13
|
+
const Paragraph = (props) => ((0, jsx_runtime_1.jsx)("p", { css: (theme) => (0, exports.paragraphStyle)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
24
14
|
exports.Paragraph = Paragraph;
|
|
25
|
-
const leadStyle = (theme,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
const leadStyle = (theme, { block = true, center = true, fontSize = theme.fontSizes.extraLarge, ...props }) => ({
|
|
16
|
+
...(0, Text_1.textStyle)(theme, { block, center, fontSize, ...props }),
|
|
17
|
+
marginBottom: '56px',
|
|
18
|
+
marginTop: 0,
|
|
19
|
+
[mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
|
|
20
|
+
fontSize: '1.125rem',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
31
23
|
exports.leadStyle = leadStyle;
|
|
32
|
-
const Lead = (props) => ((0, jsx_runtime_1.jsx)("p",
|
|
24
|
+
const Lead = (props) => ((0, jsx_runtime_1.jsx)("p", { css: (theme) => (0, exports.leadStyle)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
33
25
|
exports.Lead = Lead;
|
package/lib/Text/Text.js
CHANGED
|
@@ -73,15 +73,15 @@ const textStyle = (theme, { block = false, bold = false, center = false, color =
|
|
|
73
73
|
whiteSpace: noWrap ? 'nowrap' : undefined,
|
|
74
74
|
});
|
|
75
75
|
exports.textStyle = textStyle;
|
|
76
|
-
exports.Text = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("span",
|
|
76
|
+
exports.Text = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("span", { ref: ref, css: (theme) => (0, exports.textStyle)(theme, props), ...(0, exports.filterTextProps)(props) })));
|
|
77
77
|
exports.Text.displayName = 'Text';
|
|
78
|
-
exports.Bold = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text,
|
|
78
|
+
exports.Bold = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, bold: true, ...props })));
|
|
79
79
|
exports.Bold.displayName = 'Bold';
|
|
80
|
-
exports.Small = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text,
|
|
80
|
+
exports.Small = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, fontSize: '12px', ...props })));
|
|
81
81
|
exports.Small.displayName = 'Small';
|
|
82
|
-
exports.Muted = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text,
|
|
82
|
+
exports.Muted = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, muted: true, ...props })));
|
|
83
83
|
exports.Muted.displayName = 'Muted';
|
|
84
|
-
exports.Uppercase = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text,
|
|
84
|
+
exports.Uppercase = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, textTransform: 'uppercase', ...props })));
|
|
85
85
|
exports.Uppercase.displayName = 'Uppercase';
|
|
86
|
-
exports.Large = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text,
|
|
86
|
+
exports.Large = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, fontSize: '48px', light: true, ...props })));
|
|
87
87
|
exports.Large.displayName = 'Large';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../src/Text/TextLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAKxE,CAAC;AAEH,eAAO,MAAM,QAAQ,UAAW,
|
|
1
|
+
{"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../src/Text/TextLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAKxE,CAAC;AAEH,eAAO,MAAM,QAAQ,UAAW,aAAa,CAAC,iBAAiB,CAAC,qDAE/D,CAAC"}
|
package/lib/Text/TextLink.js
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.TextLink = exports.textLinkStyle = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
5
|
const Link_1 = require("./Link");
|
|
17
6
|
const colors_v2_1 = require("../Identity/colors-v2");
|
|
18
|
-
const textLinkStyle = (theme,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
7
|
+
const textLinkStyle = (theme, { color = colors_v2_1.COLOR_V2.BLUE, fontSize = theme.fontSizes.base, bold = false, textTransform = 'none', ...props }) => ({
|
|
8
|
+
...(0, Link_1.linkStyle)(theme, { bold, color, fontSize, textTransform, ...props }),
|
|
9
|
+
});
|
|
22
10
|
exports.textLinkStyle = textLinkStyle;
|
|
23
|
-
const TextLink = (props) => ((0, jsx_runtime_1.jsx)("a",
|
|
11
|
+
const TextLink = (props) => ((0, jsx_runtime_1.jsx)("a", { css: (theme) => (0, exports.textLinkStyle)(theme, props), rel: "noopener noreferrer", ...(0, Link_1.filterLinkProps)(props) }));
|
|
24
12
|
exports.TextLink = TextLink;
|
package/lib/Text/Title.js
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
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;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Title = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
16
5
|
const Text_1 = require("./Text");
|
|
17
6
|
const Identity_1 = require("../Identity");
|
|
18
|
-
const titleStyle = (theme,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
const Title = (props) => ((0, jsx_runtime_1.jsx)("div",
|
|
7
|
+
const titleStyle = (theme, { block = true, center = true, fontSize = ' 2rem', color = Identity_1.COLOR.GRAY, bold = true, ...props }) => ({
|
|
8
|
+
...(0, Text_1.textStyle)(theme, { block, bold, center, color, fontSize, ...props }),
|
|
9
|
+
marginBottom: '8px',
|
|
10
|
+
});
|
|
11
|
+
const Title = (props) => ((0, jsx_runtime_1.jsx)("div", { css: (theme) => titleStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
|
|
23
12
|
exports.Title = Title;
|
package/lib/Theme/Theme.js
CHANGED
|
@@ -239,5 +239,5 @@ exports.themes = {
|
|
|
239
239
|
},
|
|
240
240
|
},
|
|
241
241
|
};
|
|
242
|
-
const ThemeProvider = (props) => (0, jsx_runtime_1.jsx)(react_1.ThemeProvider,
|
|
242
|
+
const ThemeProvider = (props) => (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { ...props, theme: props.theme });
|
|
243
243
|
exports.ThemeProvider = ThemeProvider;
|
package/lib/mediaQueries.js
CHANGED
|
@@ -41,4 +41,4 @@ exports.QUERY = {
|
|
|
41
41
|
[QueryKeys.TABLET_DOWN]: `max-width: ${sizes_1.WIDTH.TABLET_MAX}px`,
|
|
42
42
|
[QueryKeys.TABLET_UP]: `min-width: ${sizes_1.WIDTH.TABLET_MIN}px`,
|
|
43
43
|
};
|
|
44
|
-
exports.media = Object.entries(exports.QUERY).reduce((accumulator, [key, value]) => (
|
|
44
|
+
exports.media = Object.entries(exports.QUERY).reduce((accumulator, [key, value]) => ({ ...accumulator, [key]: `@media (${value})` }), {});
|
package/lib/util.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.noop = noop;
|
|
|
24
24
|
const inlineSVG = (svg) => `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;
|
|
25
25
|
exports.inlineSVG = inlineSVG;
|
|
26
26
|
const filterProps = (props, propsToFilter) => {
|
|
27
|
-
return Object.entries(props).reduce((accumulator, [key, value]) => (!propsToFilter.includes(key) ?
|
|
27
|
+
return Object.entries(props).reduce((accumulator, [key, value]) => (!propsToFilter.includes(key) ? { ...accumulator, [key]: value } : accumulator), {});
|
|
28
28
|
};
|
|
29
29
|
exports.filterProps = filterProps;
|
|
30
30
|
const manySelectors = (selectors, css) => selectors.reduce((acc, selector) => {
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-dom": "18.3.1",
|
|
43
43
|
"react-helmet": "6.1.0",
|
|
44
44
|
"react-hot-loader": "4.13.1",
|
|
45
|
-
"react-styleguidist": "13.1.
|
|
45
|
+
"react-styleguidist": "13.1.3",
|
|
46
46
|
"react-test-renderer": "18.3.1",
|
|
47
47
|
"rimraf": "5.0.7",
|
|
48
48
|
"typescript": "^5.0.4",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"test:watch": "jest --watch",
|
|
71
71
|
"test:update": "jest --updateSnapshot"
|
|
72
72
|
},
|
|
73
|
-
"version": "9.
|
|
74
|
-
"gitHead": "
|
|
73
|
+
"version": "9.18.1",
|
|
74
|
+
"gitHead": "66832e5bcf50be7819022bfdd5e608204c6e7f06"
|
|
75
75
|
}
|