@deskpro/deskpro-ui 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/AttachmentTag/AttachmentTag.js +2 -2
- package/dist/cjs/components/AttachmentTag/AttachmentTag.js.map +1 -1
- package/dist/cjs/components/Avatar/AvatarGroup.js +1 -1
- package/dist/cjs/components/Avatar/AvatarGroup.js.map +1 -1
- package/dist/cjs/components/Badge/Badge.js +2 -3
- package/dist/cjs/components/Badge/Badge.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +9 -2
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Button/styles.js.map +1 -1
- package/dist/cjs/components/Input/Input.js +6 -6
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/Input/styles.js +2 -2
- package/dist/cjs/components/Input/styles.js.map +1 -1
- package/dist/cjs/components/Label/Label.js +11 -27
- package/dist/cjs/components/Label/Label.js.map +1 -1
- package/dist/cjs/components/LabelTag/Tag.js +6 -4
- package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
- package/dist/cjs/components/Modal/Modal.js +1 -1
- package/dist/cjs/components/Modal/Modal.js.map +1 -1
- package/dist/cjs/components/OptionTag/OptionTag.js +2 -3
- package/dist/cjs/components/OptionTag/OptionTag.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +2 -2
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/Pill/Pill.js +4 -4
- package/dist/cjs/components/Pill/Pill.js.map +1 -1
- package/dist/cjs/components/Radio/Radio.js +2 -2
- package/dist/cjs/components/Radio/Radio.js.map +1 -1
- package/dist/cjs/components/TabBar/TabBar.js +3 -3
- package/dist/cjs/components/TabBar/TabBar.js.map +1 -1
- package/dist/cjs/components/TabbedSection/Tabs.js +2 -6
- package/dist/cjs/components/TabbedSection/Tabs.js.map +1 -1
- package/dist/cjs/components/TextArea/styles.js +2 -2
- package/dist/cjs/components/TextArea/styles.js.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.js +2 -2
- package/dist/cjs/components/Toggle/Toggle.js.map +1 -1
- package/dist/cjs/components/Typography/Typography.js +112 -95
- package/dist/cjs/components/Typography/Typography.js.map +1 -1
- package/dist/cjs/structure/AppSidebar/AppSidebar.js +2 -4
- package/dist/cjs/structure/AppSidebar/AppSidebar.js.map +1 -1
- package/dist/deskpro-ui.d.ts +136 -60
- package/dist/esm/components/AttachmentTag/AttachmentTag.js +3 -3
- package/dist/esm/components/AttachmentTag/AttachmentTag.js.map +1 -1
- package/dist/esm/components/Avatar/AvatarGroup.js +2 -2
- package/dist/esm/components/Avatar/AvatarGroup.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js +3 -4
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/Button/Button.js +9 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Button/styles.js.map +1 -1
- package/dist/esm/components/Input/Input.js +6 -6
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Input/styles.js +2 -2
- package/dist/esm/components/Input/styles.js.map +1 -1
- package/dist/esm/components/Label/Label.js +12 -28
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/LabelTag/Tag.js +6 -4
- package/dist/esm/components/LabelTag/Tag.js.map +1 -1
- package/dist/esm/components/Modal/Modal.js +2 -2
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/OptionTag/OptionTag.js +3 -4
- package/dist/esm/components/OptionTag/OptionTag.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +3 -3
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Pill/Pill.js +5 -5
- package/dist/esm/components/Pill/Pill.js.map +1 -1
- package/dist/esm/components/Radio/Radio.js +3 -3
- package/dist/esm/components/Radio/Radio.js.map +1 -1
- package/dist/esm/components/TabBar/TabBar.js +4 -4
- package/dist/esm/components/TabBar/TabBar.js.map +1 -1
- package/dist/esm/components/TabbedSection/Tabs.js +3 -7
- package/dist/esm/components/TabbedSection/Tabs.js.map +1 -1
- package/dist/esm/components/TextArea/styles.js +3 -3
- package/dist/esm/components/TextArea/styles.js.map +1 -1
- package/dist/esm/components/Toggle/Toggle.js +3 -3
- package/dist/esm/components/Toggle/Toggle.js.map +1 -1
- package/dist/esm/components/Typography/Typography.js +111 -68
- package/dist/esm/components/Typography/Typography.js.map +1 -1
- package/dist/esm/structure/AppSidebar/AppSidebar.js +3 -5
- package/dist/esm/structure/AppSidebar/AppSidebar.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import styled from "styled-components";
|
|
3
|
-
import {
|
|
3
|
+
import { TSpan } from "../Typography";
|
|
4
4
|
import { dpNameProp } from "../../utils/dpName";
|
|
5
5
|
const HiddenRadio = styled.input `
|
|
6
6
|
position: absolute;
|
|
@@ -56,11 +56,11 @@ const InnerCircle = styled.div `
|
|
|
56
56
|
*/
|
|
57
57
|
export function Radio({ label, labelIsPrefix = false, checked, id, isDisplayOnly, style, disabled, ...rest }) {
|
|
58
58
|
return (React.createElement(LabelStyled, { ...dpNameProp("Radio"), style: style },
|
|
59
|
-
label && labelIsPrefix && React.createElement(
|
|
59
|
+
label && labelIsPrefix && React.createElement(TSpan, { type: "p5" }, label),
|
|
60
60
|
React.createElement(RadioContainer, null,
|
|
61
61
|
!isDisplayOnly && (React.createElement(HiddenRadio, { role: "radio", type: "radio", ...rest, id: id, disabled: disabled, checked: checked })),
|
|
62
62
|
React.createElement(StyledRadio, { checked: checked, disabled: disabled },
|
|
63
63
|
React.createElement(InnerCircle, { checked: checked }))),
|
|
64
|
-
label && !labelIsPrefix && React.createElement(
|
|
64
|
+
label && !labelIsPrefix && React.createElement(TSpan, { type: "p5" }, label)));
|
|
65
65
|
}
|
|
66
66
|
//# sourceMappingURL=Radio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;CAM/B,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAA;;;;CAI/B,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOhC,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAA2C;;;;;;;MAOnE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;;aAEjF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;;;;gBAIrC,CAAC,KAAK,EAAE,EAAE,CACtB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;YAClE,CAAC,EAAE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AAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import styled from "styled-components";
|
|
3
|
-
import {
|
|
3
|
+
import { TSpan } from "../Typography";
|
|
4
4
|
import { Icon } from "../Icon";
|
|
5
5
|
import { dpNameProp } from "../../utils/dpName";
|
|
6
6
|
import styles from "./styles";
|
|
@@ -20,9 +20,9 @@ const TabBarTabIcon = styled.span `
|
|
|
20
20
|
padding-right: 8px;
|
|
21
21
|
font-size: 11px;
|
|
22
22
|
`;
|
|
23
|
-
const TabBarTabLabel = styled(
|
|
23
|
+
const TabBarTabLabel = styled(TSpan).attrs({ type: "h4" }) `
|
|
24
24
|
color: ${({ theme, active }) => (active ? theme.colors.grey_black100 : theme.colors.grey80)};
|
|
25
|
-
${({
|
|
25
|
+
${({ tabType }) => { var _a, _b, _c; return (_c = (_b = (_a = styles[tabType]).label) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : ""; }}
|
|
26
26
|
`;
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
@@ -33,5 +33,5 @@ export const TabBarTab = ({ icon, label, onClick, type, tooltip, tooltipStyle, t
|
|
|
33
33
|
React.createElement(TabBarTabInner, { type: type, ...props },
|
|
34
34
|
icon && (React.createElement(TabBarTabIcon, null,
|
|
35
35
|
React.createElement(Icon, { icon: icon }))),
|
|
36
|
-
React.createElement(TabBarTabLabel, {
|
|
36
|
+
React.createElement(TabBarTabLabel, { tabType: type, active: props.active }, label)))));
|
|
37
37
|
//# sourceMappingURL=TabBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../../../../src/components/TabBar/TabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,MAAyB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TabBar.js","sourceRoot":"","s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O,EACP,YAAY,EACZ,gBAAgB,EAChB,GAAG,KAAK,EACO,EAAE,EAAE,CAAC,CACpB,oBAAC,OAAO,IACN,QAAQ,EAAE,CAAC,OAAO,EAClB,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,OAAO;IAEhB,oBAAC,kBAAkB,IAAC,IAAI,EAAE,IAAI,KAAM,UAAU,CAAC,WAAW,CAAC,KAAM,KAAK,EAAE,OAAO,EAAE,OAAO;QACtF,oBAAC,cAAc,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK;YAClC,IAAI,IAAI,CACP,oBAAC,aAAa;gBACZ,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CACN,CACjB;YACD,oBAAC,cAAc,IAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAChD,KAAK,CACS,CACF,CACE,CACb,CACX,CAAC"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Stack } from "../../layout/Stack";
|
|
3
3
|
import styled, { css } from "styled-components";
|
|
4
|
-
import { headingStyles } from "../Typography";
|
|
4
|
+
import { headingStyles, TSpan } from "../Typography";
|
|
5
5
|
import { dpNameProp } from "../../utils/dpName";
|
|
6
6
|
const TabWrapperCSS = css `
|
|
7
7
|
${({ active, isTicketHistory }) => active && isTicketHistory ? headingStyles.h1 : headingStyles.h2}
|
|
8
8
|
`;
|
|
9
9
|
const TabWrapper = styled(Stack) `
|
|
10
|
-
font-family: ${({ theme }) => theme.fonts.headingPrimary};
|
|
11
|
-
font-style: normal;
|
|
12
|
-
font-weight: ${({ active: actived }) => (actived ? `500` : `400`)};
|
|
13
|
-
font-size: 11px;
|
|
14
|
-
line-height: 110%;
|
|
15
10
|
cursor: default;
|
|
16
11
|
align-items: center;
|
|
17
12
|
justify-content: center;
|
|
@@ -64,7 +59,8 @@ export function TabbedSectionTabs({ tabs, activeTab, onTabChange, children, tabs
|
|
|
64
59
|
tabs.map((tab, index) => {
|
|
65
60
|
return (React.createElement(TabWrapper, { key: index, disabled: tab.disabled, active: tab.id === activeTab, onClick: () => {
|
|
66
61
|
onTabChange(tab);
|
|
67
|
-
}, tabStyle: tabType, role: "tab", "aria-selected": tab.id === activeTab, "aria-controls": tab.controls },
|
|
62
|
+
}, tabStyle: tabType, role: "tab", "aria-selected": tab.id === activeTab, "aria-controls": tab.controls },
|
|
63
|
+
React.createElement(TSpan, { type: tab.id === activeTab ? "h1" : "h2" }, tab.title)));
|
|
68
64
|
}),
|
|
69
65
|
rightElement),
|
|
70
66
|
children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/TabbedSection/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/TabbedSection/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,aAAa,GAAG,GAAG,CAAA;IACrB,CAAC,EAAE,MAAM,EAAE,eAAe,EAAkD,EAAE,EAAE,CAChF,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,C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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
export const InputGroup = styled.div `
|
|
2
|
+
import { TSpan } from "../Typography";
|
|
3
|
+
export const InputGroup = styled(TSpan).attrs({ type: "p1", as: "div" }) `
|
|
4
4
|
position: relative;
|
|
5
5
|
width: 100%;
|
|
6
|
-
${paragraphStyled.p1};
|
|
7
6
|
line-height: 0;
|
|
8
7
|
outline: none;
|
|
8
|
+
max-width: initial;
|
|
9
9
|
`;
|
|
10
10
|
export const RightElement = styled.span `
|
|
11
11
|
display: block;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/TextArea/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/TextArea/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;;;;;;CAMvE,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;gBAOvB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAEhD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;WAGtB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;sBACxB,CAAC,KA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* as React from "react";
|
|
|
2
2
|
import { useLayoutEffect, useRef } from "react";
|
|
3
3
|
import { faLock } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import styled, { css } from "styled-components";
|
|
5
|
-
import {
|
|
5
|
+
import { TSpan } from "../Typography";
|
|
6
6
|
import { getSVGURI } from "../../utils/getSVGURI";
|
|
7
7
|
import { dpNameProp } from "../../utils/dpName";
|
|
8
8
|
const SliderStyled = styled.span `
|
|
@@ -95,10 +95,10 @@ export function Toggle({ id, checked, className, style, disabled, size = "medium
|
|
|
95
95
|
}, [indeterminate]);
|
|
96
96
|
return (React.createElement(LabelStyled, { ...dpNameProp("Toggle") },
|
|
97
97
|
customLabel && labelIsPrefix && (React.createElement(TSpan, { type: "p1", themeColor: "grey100" }, customLabel)),
|
|
98
|
-
label && labelIsPrefix && React.createElement(
|
|
98
|
+
label && labelIsPrefix && React.createElement(TSpan, { type: "p5" }, label),
|
|
99
99
|
React.createElement(ToggleContainer, { style: style, className: `${className} toggle`, size: size, indeterminate: indeterminate, disabled: disabled, readOnly: rest.readOnly },
|
|
100
100
|
React.createElement(InputStyled, { id: id, checked: !!checked, disabled: isLocked || disabled, ref: ref, ...rest }),
|
|
101
101
|
React.createElement(SliderStyled, { size: size, isLocked: isLocked, indeterminate: indeterminate })),
|
|
102
|
-
label && !labelIsPrefix && React.createElement(
|
|
102
|
+
label && !labelIsPrefix && React.createElement(TSpan, { type: "p5" }, label)));
|
|
103
103
|
}
|
|
104
104
|
//# sourceMappingURL=Toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkC,eAAe,EAAE,MAAM,EAAiB,MAAM,OAAO,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,MAAM,EA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E;YACf,IAAI,aAAa,EAAE;gBACjB,GAAG,CAAC,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;aAClC;iBAAM;gBACL,GAAG,CAAC,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC;aACnC;SACF;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,OAAO,CACL,oBAAC,WAAW,OAAK,UAAU,CAAC,QAAQ,CAAC;QAClC,WAAW,IAAI,aAAa,IAAI,CAC/B,oBAAC,KAAK,IAAC,IAAI,EAAC,IAAI,EAAC,UAAU,EAAC,SAAS,IAClC,WAAW,CACN,CACT;QACA,KAAK,IAAI,aAAa,IAAI,oBAAC,KAAK,IAAC,IAAI,EAAC,IAAI,IAAE,KAAK,CAAS;QAC3D,oBAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,GAAG,SAAS,SAAS,EAChC,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,oBAAC,WAAW,IACV,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAClB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,GAAG,EAAE,GAAG,KACJ,IAAI,GACR;YACF,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,GAAI,CAC9D;QACjB,KAAK,IAAI,CAAC,aAAa,IAAI,oBAAC,KAAK,IAAC,IAAI,EAAC,IAAI,IAAE,KAAK,CAAS,CAChD,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from "styled-components";
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
8
|
// Heading Text
|
|
11
9
|
const h0 = css `
|
|
12
10
|
font-size: 14px;
|
|
@@ -62,8 +60,27 @@ const h8 = css `
|
|
|
62
60
|
font-family: ${(props) => props.theme.fonts.inter};
|
|
63
61
|
line-height: 150%;
|
|
64
62
|
`;
|
|
63
|
+
const h9 = css `
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
67
|
+
line-height: 100%;
|
|
68
|
+
`;
|
|
69
|
+
const h10 = css `
|
|
70
|
+
font-size: 16px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
73
|
+
line-height: 112%;
|
|
74
|
+
`;
|
|
75
|
+
const h11 = css `
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
font-family: ${(props) => props.theme.fonts.headingPrimary};
|
|
79
|
+
line-height: 120%;
|
|
80
|
+
`;
|
|
65
81
|
/**
|
|
66
82
|
* @public
|
|
83
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="h0" /> or <H0 />
|
|
67
84
|
*/
|
|
68
85
|
export const headingStyles = {
|
|
69
86
|
h0,
|
|
@@ -75,83 +92,98 @@ export const headingStyles = {
|
|
|
75
92
|
h6,
|
|
76
93
|
h7,
|
|
77
94
|
h8,
|
|
95
|
+
h9,
|
|
96
|
+
h10,
|
|
97
|
+
h11,
|
|
78
98
|
};
|
|
79
99
|
const common = css `
|
|
80
100
|
margin: 0;
|
|
81
101
|
padding: 0;
|
|
82
102
|
`;
|
|
83
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export const H0 = styled.h1.attrs({ type: "h0" }) `
|
|
84
107
|
${common};
|
|
85
108
|
${headingStyles.h0}
|
|
86
109
|
`;
|
|
87
110
|
/**
|
|
88
111
|
* @public
|
|
89
112
|
*/
|
|
90
|
-
export const
|
|
91
|
-
const StyledH1 = styled.h1 `
|
|
113
|
+
export const H1 = styled.h1.attrs({ type: "h1" }) `
|
|
92
114
|
${common};
|
|
93
115
|
${headingStyles.h1}
|
|
94
116
|
`;
|
|
95
117
|
/**
|
|
96
118
|
* @public
|
|
97
119
|
*/
|
|
98
|
-
export const
|
|
99
|
-
const StyledH2 = styled.h2 `
|
|
120
|
+
export const H2 = styled.h2.attrs({ type: "h2" }) `
|
|
100
121
|
${common};
|
|
101
122
|
${headingStyles.h2}
|
|
102
123
|
`;
|
|
103
124
|
/**
|
|
104
125
|
* @public
|
|
105
126
|
*/
|
|
106
|
-
export const
|
|
107
|
-
const StyledH3 = styled.h3 `
|
|
127
|
+
export const H3 = styled.h3.attrs({ type: "h3" }) `
|
|
108
128
|
${common};
|
|
109
129
|
${headingStyles.h3}
|
|
110
130
|
`;
|
|
111
131
|
/**
|
|
112
132
|
* @public
|
|
113
133
|
*/
|
|
114
|
-
export const
|
|
115
|
-
const StyledH4 = styled.h4 `
|
|
134
|
+
export const H4 = styled.h4.attrs({ type: "h4" }) `
|
|
116
135
|
${common};
|
|
117
136
|
${headingStyles.h4}
|
|
118
137
|
`;
|
|
119
138
|
/**
|
|
120
139
|
* @public
|
|
121
140
|
*/
|
|
122
|
-
export const
|
|
123
|
-
const StyledH5 = styled.h5 `
|
|
141
|
+
export const H5 = styled.h5.attrs({ type: "h5" }) `
|
|
124
142
|
${common};
|
|
125
143
|
${headingStyles.h5}
|
|
126
144
|
`;
|
|
127
145
|
/**
|
|
128
146
|
* @public
|
|
129
147
|
*/
|
|
130
|
-
export const
|
|
131
|
-
const StyledH6 = styled.h6 `
|
|
148
|
+
export const H6 = styled.h6.attrs({ type: "h6" }) `
|
|
132
149
|
${common};
|
|
133
150
|
${headingStyles.h6}
|
|
134
151
|
`;
|
|
135
152
|
/**
|
|
136
153
|
* @public
|
|
137
154
|
*/
|
|
138
|
-
export const
|
|
139
|
-
const StyledH7 = styled.h6 `
|
|
155
|
+
export const H7 = styled.h6.attrs({ type: "h7" }) `
|
|
140
156
|
${common};
|
|
141
157
|
${headingStyles.h7}
|
|
142
158
|
`;
|
|
143
159
|
/**
|
|
144
160
|
* @public
|
|
145
161
|
*/
|
|
146
|
-
export const
|
|
147
|
-
const StyledH8 = styled.h6 `
|
|
162
|
+
export const H8 = styled.h6.attrs({ type: "h8" }) `
|
|
148
163
|
${common};
|
|
149
164
|
${headingStyles.h8}
|
|
150
165
|
`;
|
|
151
166
|
/**
|
|
152
167
|
* @public
|
|
153
168
|
*/
|
|
154
|
-
export const
|
|
169
|
+
export const H9 = styled.h1.attrs({ type: "h9" }) `
|
|
170
|
+
${common};
|
|
171
|
+
${headingStyles.h9}
|
|
172
|
+
`;
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export const H10 = styled.h1.attrs({ type: "h10" }) `
|
|
177
|
+
${common};
|
|
178
|
+
${headingStyles.h10}
|
|
179
|
+
`;
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
export const H11 = styled.h1.attrs({ type: "h11" }) `
|
|
184
|
+
${common};
|
|
185
|
+
${headingStyles.h11}
|
|
186
|
+
`;
|
|
155
187
|
// Paragraph Text
|
|
156
188
|
const p1 = css `
|
|
157
189
|
font-size: 12px;
|
|
@@ -249,8 +281,21 @@ const p16 = css `
|
|
|
249
281
|
font-family: ${(props) => props.theme.fonts.inter};
|
|
250
282
|
line-height: 150%;
|
|
251
283
|
`;
|
|
284
|
+
const p17 = css `
|
|
285
|
+
font-size: 13px;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
288
|
+
line-height: 100%;
|
|
289
|
+
`;
|
|
290
|
+
const p18 = css `
|
|
291
|
+
font-size: 11px;
|
|
292
|
+
font-weight: 500;
|
|
293
|
+
font-family: ${(props) => props.theme.fonts.primary};
|
|
294
|
+
line-height: 120%;
|
|
295
|
+
`;
|
|
252
296
|
/**
|
|
253
297
|
* @public
|
|
298
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="p1" /> or <P1 />
|
|
254
299
|
*/
|
|
255
300
|
export const paragraphStyled = {
|
|
256
301
|
p1,
|
|
@@ -269,153 +314,151 @@ export const paragraphStyled = {
|
|
|
269
314
|
p14,
|
|
270
315
|
p15,
|
|
271
316
|
p16,
|
|
317
|
+
p17,
|
|
318
|
+
p18,
|
|
272
319
|
};
|
|
273
|
-
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export const P1 = styled.p.attrs({ type: "p1" }) `
|
|
274
324
|
${common};
|
|
275
325
|
${paragraphStyled.p1}
|
|
276
326
|
`;
|
|
277
327
|
/**
|
|
278
328
|
* @public
|
|
279
329
|
*/
|
|
280
|
-
export const
|
|
281
|
-
const StyledP2 = styled.p `
|
|
330
|
+
export const P2 = styled.p.attrs({ type: "p2" }) `
|
|
282
331
|
${common};
|
|
283
332
|
${paragraphStyled.p2}
|
|
284
333
|
`;
|
|
285
334
|
/**
|
|
286
335
|
* @public
|
|
287
336
|
*/
|
|
288
|
-
export const
|
|
289
|
-
const StyledP3 = styled.p `
|
|
337
|
+
export const P3 = styled.p.attrs({ type: "p3" }) `
|
|
290
338
|
${common};
|
|
291
339
|
${paragraphStyled.p3}
|
|
292
340
|
`;
|
|
293
341
|
/**
|
|
294
342
|
* @public
|
|
295
343
|
*/
|
|
296
|
-
export const
|
|
297
|
-
const StyledP4 = styled.p `
|
|
344
|
+
export const P4 = styled.p.attrs({ type: "p4" }) `
|
|
298
345
|
${common};
|
|
299
346
|
${paragraphStyled.p4}
|
|
300
347
|
`;
|
|
301
348
|
/**
|
|
302
349
|
* @public
|
|
303
350
|
*/
|
|
304
|
-
export const
|
|
305
|
-
const StyledP5 = styled.p `
|
|
351
|
+
export const P5 = styled.p.attrs({ type: "p5" }) `
|
|
306
352
|
${common};
|
|
307
353
|
${paragraphStyled.p5}
|
|
308
354
|
`;
|
|
309
355
|
/**
|
|
310
356
|
* @public
|
|
311
357
|
*/
|
|
312
|
-
export const
|
|
313
|
-
const StyledP6 = styled.p `
|
|
358
|
+
export const P6 = styled.p.attrs({ type: "p6" }) `
|
|
314
359
|
${common};
|
|
315
360
|
${paragraphStyled.p6}
|
|
316
361
|
`;
|
|
317
362
|
/**
|
|
318
363
|
* @public
|
|
319
364
|
*/
|
|
320
|
-
export const
|
|
321
|
-
const StyledP7 = styled.p `
|
|
365
|
+
export const P7 = styled.p.attrs({ type: "p7" }) `
|
|
322
366
|
${common};
|
|
323
367
|
${paragraphStyled.p7}
|
|
324
368
|
`;
|
|
325
369
|
/**
|
|
326
370
|
* @public
|
|
327
371
|
*/
|
|
328
|
-
export const
|
|
329
|
-
const StyledP8 = styled.p `
|
|
372
|
+
export const P8 = styled.p.attrs({ type: "p8" }) `
|
|
330
373
|
${common};
|
|
331
374
|
${paragraphStyled.p8}
|
|
332
375
|
`;
|
|
333
376
|
/**
|
|
334
377
|
* @public
|
|
335
378
|
*/
|
|
336
|
-
export const
|
|
337
|
-
const StyledP9 = styled.p `
|
|
379
|
+
export const P9 = styled.p.attrs({ type: "p9" }) `
|
|
338
380
|
${common};
|
|
339
381
|
${paragraphStyled.p9}
|
|
340
382
|
`;
|
|
341
383
|
/**
|
|
342
384
|
* @public
|
|
343
385
|
*/
|
|
344
|
-
export const
|
|
345
|
-
const StyledP10 = styled.p `
|
|
386
|
+
export const P10 = styled.p.attrs({ type: "p10" }) `
|
|
346
387
|
${common};
|
|
347
388
|
${paragraphStyled.p10}
|
|
348
389
|
`;
|
|
349
390
|
/**
|
|
350
391
|
* @public
|
|
351
392
|
*/
|
|
352
|
-
export const
|
|
353
|
-
const StyledP11 = styled.p `
|
|
393
|
+
export const P11 = styled.p.attrs({ type: "p11" }) `
|
|
354
394
|
${common};
|
|
355
395
|
${paragraphStyled.p11}
|
|
356
396
|
`;
|
|
357
397
|
/**
|
|
358
398
|
* @public
|
|
359
399
|
*/
|
|
360
|
-
export const
|
|
361
|
-
const StyledP12 = styled.p `
|
|
400
|
+
export const P12 = styled.p.attrs({ type: "p12" }) `
|
|
362
401
|
${common};
|
|
363
402
|
${paragraphStyled.p12}
|
|
364
403
|
`;
|
|
365
404
|
/**
|
|
366
405
|
* @public
|
|
367
406
|
*/
|
|
368
|
-
export const
|
|
369
|
-
const StyledP13 = styled.p `
|
|
407
|
+
export const P13 = styled.p.attrs({ type: "p13" }) `
|
|
370
408
|
${common};
|
|
371
409
|
${paragraphStyled.p13}
|
|
372
410
|
`;
|
|
373
411
|
/**
|
|
374
412
|
* @public
|
|
375
413
|
*/
|
|
376
|
-
export const
|
|
377
|
-
const StyledCode = styled.code `
|
|
414
|
+
export const Code = styled.code `
|
|
378
415
|
${common};
|
|
379
416
|
${p13}
|
|
380
417
|
`;
|
|
381
418
|
/**
|
|
382
419
|
* @public
|
|
383
420
|
*/
|
|
384
|
-
export const
|
|
385
|
-
const StyledP14 = styled.code `
|
|
421
|
+
export const P14 = styled.code `
|
|
386
422
|
${common};
|
|
387
423
|
${p14}
|
|
388
424
|
`;
|
|
389
425
|
/**
|
|
390
426
|
* @public
|
|
391
427
|
*/
|
|
392
|
-
export const
|
|
393
|
-
const StyledP15 = styled.code `
|
|
428
|
+
export const P15 = styled.code `
|
|
394
429
|
${common};
|
|
395
430
|
${p15}
|
|
396
431
|
`;
|
|
397
432
|
/**
|
|
398
433
|
* @public
|
|
399
434
|
*/
|
|
400
|
-
export const
|
|
401
|
-
const StyledP16 = styled.code `
|
|
435
|
+
export const P16 = styled.p.attrs({ type: "p16" }) `
|
|
402
436
|
${common};
|
|
403
437
|
${p16}
|
|
404
438
|
`;
|
|
405
439
|
/**
|
|
406
440
|
* @public
|
|
407
441
|
*/
|
|
408
|
-
export const
|
|
442
|
+
export const P17 = styled.p.attrs({ type: "p17" }) `
|
|
443
|
+
${common};
|
|
444
|
+
${p17}
|
|
445
|
+
`;
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
*/
|
|
449
|
+
export const P18 = styled.p.attrs({ type: "p18" }) `
|
|
450
|
+
${common};
|
|
451
|
+
${p18}
|
|
452
|
+
`;
|
|
409
453
|
/**
|
|
410
454
|
* @public
|
|
411
455
|
*/
|
|
412
|
-
export const TSpan =
|
|
413
|
-
const StyledTSpan = styled(forwardRef(({ children, ...props }, ref) => (React.createElement("span", { ...props, ref: ref }, children)))) `
|
|
456
|
+
export const TSpan = styled("span") `
|
|
414
457
|
${common};
|
|
415
458
|
color: ${(props) => { var _a;
|
|
416
459
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
417
|
-
return (_a = props.theme.colors[props
|
|
418
|
-
flex: ${(props) => (props
|
|
460
|
+
return (_a = props.theme.colors[props.themeColor]) !== null && _a !== void 0 ? _a : "inherit"; }};
|
|
461
|
+
flex: ${(props) => (props.flex ? props.flex : undefined)};
|
|
419
462
|
${(props) => props.$fill
|
|
420
463
|
? css `
|
|
421
464
|
flex-grow: 1;
|
|
@@ -423,32 +466,32 @@ return (_a = props.theme.colors[props.$themeColor]) !== null && _a !== void 0 ?
|
|
|
423
466
|
: css `
|
|
424
467
|
max-width: max-content;
|
|
425
468
|
`}
|
|
426
|
-
${(props) => props
|
|
469
|
+
${(props) => props.overflow
|
|
427
470
|
? css `
|
|
428
471
|
width: 100%;
|
|
429
472
|
overflow: hidden;
|
|
430
473
|
white-space: nowrap;
|
|
431
|
-
text-overflow: ${props
|
|
474
|
+
text-overflow: ${props.overflow};
|
|
432
475
|
`
|
|
433
476
|
: undefined}
|
|
434
477
|
|
|
435
478
|
${(props) =>
|
|
436
479
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
437
|
-
paragraphStyled[props
|
|
438
|
-
headingStyles[props
|
|
480
|
+
paragraphStyled[props.type] ||
|
|
481
|
+
headingStyles[props.type]}
|
|
439
482
|
|
|
440
|
-
${(props) => props
|
|
483
|
+
${(props) => props.font &&
|
|
441
484
|
css `
|
|
442
|
-
font-family: ${props
|
|
485
|
+
font-family: ${props.font};
|
|
443
486
|
`};
|
|
444
|
-
${(props) => props
|
|
487
|
+
${(props) => props.transform &&
|
|
445
488
|
css `
|
|
446
|
-
text-transform: ${props
|
|
489
|
+
text-transform: ${props.transform};
|
|
447
490
|
`}
|
|
448
491
|
|
|
449
|
-
${(props) => props
|
|
492
|
+
${(props) => props.textAlign &&
|
|
450
493
|
css `
|
|
451
|
-
text-align: ${props
|
|
494
|
+
text-align: ${props.textAlign};
|
|
452
495
|
`};
|
|
453
496
|
`;
|
|
454
497
|
//# sourceMappingURL=Typography.js.map
|