@deskpro/deskpro-ui 4.1.0 → 4.1.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/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 +1 -1
- 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/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 +1 -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 +110 -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 +73 -58
- 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 +1 -1
- 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/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 +2 -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 +109 -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
|
@@ -49,7 +49,7 @@ const IconContainer = (0, styled_components_1.default)(layout_1.Stack) `
|
|
|
49
49
|
font-size: 8px;
|
|
50
50
|
width: 16px;
|
|
51
51
|
`;
|
|
52
|
-
const LabelText = (0, styled_components_1.default)(Typography_1.
|
|
52
|
+
const LabelText = (0, styled_components_1.default)(Typography_1.TSpan) `
|
|
53
53
|
line-height: unset;
|
|
54
54
|
text-transform: capitalize;
|
|
55
55
|
white-space: nowrap;
|
|
@@ -65,14 +65,14 @@ const LabelText = (0, styled_components_1.default)(Typography_1.P11) `
|
|
|
65
65
|
/**
|
|
66
66
|
* @public
|
|
67
67
|
*/
|
|
68
|
-
function Pill({ label, icon, subStatus, backgroundColor, textColor, subStatusBackgroudcolor, isCompact, border, themeColor, ...rest }) {
|
|
68
|
+
function Pill({ label, icon, subStatus, backgroundColor, textColor, subStatusBackgroudcolor, isCompact, border, themeColor, type = "p11", ...rest }) {
|
|
69
69
|
return (React.createElement(Wrapper, { ...(0, dpName_1.dpNameProp)("Pill"), ...rest },
|
|
70
70
|
React.createElement(Container, { backgroundColor: backgroundColor, textColor: textColor, noLabel: !label || !!isCompact, noIcon: !icon, border: border },
|
|
71
71
|
icon && (React.createElement(IconContainer, { align: "center", justify: "center" },
|
|
72
72
|
React.createElement(Icon_1.Icon, { icon: icon, themeColor: themeColor }))),
|
|
73
|
-
!isCompact && label && React.createElement(LabelText,
|
|
73
|
+
!isCompact && label && React.createElement(LabelText, { type: type }, label)),
|
|
74
74
|
subStatus && (React.createElement(SubStatus, { backgroundColor: subStatusBackgroudcolor || "", bordercolor: backgroundColor },
|
|
75
|
-
React.createElement(LabelText, { isCompact: isCompact }, subStatus)))));
|
|
75
|
+
React.createElement(LabelText, { type: type, isCompact: isCompact }, subStatus)))));
|
|
76
76
|
}
|
|
77
77
|
exports.Pill = Pill;
|
|
78
78
|
//# sourceMappingURL=Pill.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.js","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAAuC;AACvC,kCAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"Pill.js","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAAuC;AACvC,kCAAwC;AACxC,8CAA8C;AAC9C,yCAAqC;AAErC,+CAAgD;AAEhD,MAAM,OAAO,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;CAQzB,CAAC;AAUF,MAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,CAAgB;;;;;sBAKtB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe;YAC1C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM;WACxB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;aACxB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;;;;;CAKvF,CAAC;AAEF,MAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,CAAkD;;sBAExD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;WAEvC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;;;;sBAI1B,CAAC,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CACX,CAAC;AACJ,CAAC;AAtCD,oBAsCC"}
|
|
@@ -59,12 +59,12 @@ const InnerCircle = styled_components_1.default.div `
|
|
|
59
59
|
*/
|
|
60
60
|
function Radio({ label, labelIsPrefix = false, checked, id, isDisplayOnly, style, disabled, ...rest }) {
|
|
61
61
|
return (React.createElement(LabelStyled, { ...(0, dpName_1.dpNameProp)("Radio"), style: style },
|
|
62
|
-
label && labelIsPrefix && React.createElement(Typography_1.
|
|
62
|
+
label && labelIsPrefix && React.createElement(Typography_1.TSpan, { type: "p5" }, label),
|
|
63
63
|
React.createElement(RadioContainer, null,
|
|
64
64
|
!isDisplayOnly && (React.createElement(HiddenRadio, { role: "radio", type: "radio", ...rest, id: id, disabled: disabled, checked: checked })),
|
|
65
65
|
React.createElement(StyledRadio, { checked: checked, disabled: disabled },
|
|
66
66
|
React.createElement(InnerCircle, { checked: checked }))),
|
|
67
|
-
label && !labelIsPrefix && React.createElement(Typography_1.
|
|
67
|
+
label && !labelIsPrefix && React.createElement(Typography_1.TSpan, { type: "p5" }, label)));
|
|
68
68
|
}
|
|
69
69
|
exports.Radio = Radio;
|
|
70
70
|
//# sourceMappingURL=Radio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAAuC;AACvC,8CAAsC;AACtC,+CAAgD;AAEhD,MAAM,WAAW,GAAG,2BAAM,CAAC,KAAK,CAAA;;;;;;CAM/B,CAAC;AAEF,MAAM,WAAW,GAAG,2BAAM,CAAC,KAAK,CAAA;;;;CAI/B,CAAC;AAEF,MAAM,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;CAOhC,CAAC;AAE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AE,KAAK,EAAE,KAAK;QAC/C,KAAK,IAAI,aAAa,IAAI,oBAAC,kBAAK,IAAC,IAAI,EAAC,IAAI,IAAE,KAAK,CAAS;QAC3D,oBAAC,cAAc;YACZ,CAAC,aAAa,IAAI,CACjB,oBAAC,WAAW,IACV,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,OAAO,KACT,IAAI,EACR,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH;YACD,oBAAC,WAAW,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;gBAC/C,oBAAC,WAAW,IAAC,OAAO,EAAE,OAAO,GAAI,CACrB,CACC;QAChB,KAAK,IAAI,CAAC,aAAa,IAAI,oBAAC,kBAAK,IAAC,IAAI,EAAC,IAAI,IAAE,KAAK,CAAS,CAChD,CACf,CAAC;AACJ,CAAC;AA/BD,sBA+BC"}
|
|
@@ -23,9 +23,9 @@ const TabBarTabIcon = styled_components_1.default.span `
|
|
|
23
23
|
padding-right: 8px;
|
|
24
24
|
font-size: 11px;
|
|
25
25
|
`;
|
|
26
|
-
const TabBarTabLabel = (0, styled_components_1.default)(Typography_1.
|
|
26
|
+
const TabBarTabLabel = (0, styled_components_1.default)(Typography_1.TSpan).attrs({ type: "h4" }) `
|
|
27
27
|
color: ${({ theme, active }) => (active ? theme.colors.grey_black100 : theme.colors.grey80)};
|
|
28
|
-
${({
|
|
28
|
+
${({ tabType }) => { var _a, _b, _c; return (_c = (_b = (_a = styles_1.default[tabType]).label) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : ""; }}
|
|
29
29
|
`;
|
|
30
30
|
/**
|
|
31
31
|
* @public
|
|
@@ -37,6 +37,6 @@ const TabBarTab = ({ icon, label, onClick, type, tooltip, tooltipStyle, tooltipP
|
|
|
37
37
|
React.createElement(exports.TabBarTabInner, { type: type, ...props },
|
|
38
38
|
icon && (React.createElement(TabBarTabIcon, null,
|
|
39
39
|
React.createElement(Icon_1.Icon, { icon: icon }))),
|
|
40
|
-
React.createElement(TabBarTabLabel, {
|
|
40
|
+
React.createElement(TabBarTabLabel, { tabType: type, active: props.active }, label)))));
|
|
41
41
|
exports.TabBarTab = TabBarTab;
|
|
42
42
|
//# sourceMappingURL=TabBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../../../../src/components/TabBar/TabBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"TabBar.js","sourceRoot":"","sources":["../../../../src/components/TabBar/TabBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,yDAA0D;AAC1D,8CAAsC;AACtC,kCAAwC;AACxC,+CAAgD;AAChD,qCAA8B;AAC9B,8CAA2C;AAC3C,gDAA6C;AAgChC,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,aAAK,CAAC,CAAmB;;IAE3D,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,mBAAC,OAAA,MAAA,MAAA,MAAA,gBAAM,CAAC,IAAI,CAAC,EAAC,SAAS,kDAAI,mCAAI,EAAE,CAAA,EAAA;CACjD,CAAC;AACW,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,CAAqC;IAC7E,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,mBAAC,OAAA,MAAA,MAAA,MAAA,gBAAM,CAAC,IAAI,CAAC,EAAC,YAAY,mDAAG,EAAE,MAAM,EAAE,CAAC,mCAAI,EAAE,CAAA,EAAA;CACtE,CAAC;AACW,QAAA,cAAc,GAAG,IAAA,2BAAM,EAAC,aAAK,CAAC,CAAqC;IAC5E,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,mBAAC,OAAA,MAAA,MAAA,MAAA,gBAAM,CAAC,IAAI,CAAC,EAAC,QAAQ,mDAAG,EA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,EAAE,eAAe,GAChC,CACH,CAAC,CACc,CACnB,CAAC;AAhCW,QAAA,MAAM,UAgCjB;AAkBK,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,OAAO,EACP,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,GAAG,KAAK,EACO,EAAE,EAAE,CAAC,CACpB,oBAAC,iBAAO,IACN,QAAQ,EAAE,CAAC,OAAO,EAClB,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,OAAO;IAEhB,oBAAC,0BAAkB,IAAC,IAAI,EAAE,IAAI,KAAM,IAAA,mBAAU,EAAC,WAAW,CAAC,KAAM,KAAK,EAAE,OAAO,EAAE,OAAO;QACtF,oBAAC,sBAAc,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK;YAClC,IAAI,IAAI,CACP,oBAAC,aAAa;gBACZ,oBAAC,WAAI,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;AA7BW,QAAA,SAAS,aA6BpB"}
|
|
@@ -10,11 +10,6 @@ const TabWrapperCSS = (0, styled_components_1.css) `
|
|
|
10
10
|
${({ active, isTicketHistory }) => active && isTicketHistory ? Typography_1.headingStyles.h1 : Typography_1.headingStyles.h2}
|
|
11
11
|
`;
|
|
12
12
|
const TabWrapper = (0, styled_components_1.default)(Stack_1.Stack) `
|
|
13
|
-
font-family: ${({ theme }) => theme.fonts.headingPrimary};
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: ${({ active: actived }) => (actived ? `500` : `400`)};
|
|
16
|
-
font-size: 11px;
|
|
17
|
-
line-height: 110%;
|
|
18
13
|
cursor: default;
|
|
19
14
|
align-items: center;
|
|
20
15
|
justify-content: center;
|
|
@@ -67,7 +62,8 @@ function TabbedSectionTabs({ tabs, activeTab, onTabChange, children, tabsWrapper
|
|
|
67
62
|
tabs.map((tab, index) => {
|
|
68
63
|
return (React.createElement(TabWrapper, { key: index, disabled: tab.disabled, active: tab.id === activeTab, onClick: () => {
|
|
69
64
|
onTabChange(tab);
|
|
70
|
-
}, tabStyle: tabType, role: "tab", "aria-selected": tab.id === activeTab, "aria-controls": tab.controls },
|
|
65
|
+
}, tabStyle: tabType, role: "tab", "aria-selected": tab.id === activeTab, "aria-controls": tab.controls },
|
|
66
|
+
React.createElement(Typography_1.TSpan, { type: tab.id === activeTab ? "h1" : "h2" }, tab.title)));
|
|
71
67
|
}),
|
|
72
68
|
rightElement),
|
|
73
69
|
children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/TabbedSection/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,8CAA2C;AAC3C,yDAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/TabbedSection/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,8CAA2C;AAC3C,yDAAgD;AAEhD,8CAAqD;AACrD,+CAAgD;AAEhD,MAAM,aAAa,GAAG,IAAA,uBAAG,EAAA;IACrB,CAAC,EAAE,MAAM,EAAE,eAAe,EAAkD,EAAE,EAAE,CAChF,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,0BAAa,CAAC,EAAE,CAAC,CAAC,CAAC,0BAAa,CAAC,EAAE;CAClE,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,2BAAM,EAAC,aAAK,CAAC,CAK9B;;;;oBAIkB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;WAC1D,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,MAAM;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EG;AACH,SAAgB,iBAAiB,CAAiB,EAChD,IAAI,EACJ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,OAAO,GAAG,KAAK,EACf,SAAS,GACiB;IAC1B,OAAO,CACL;QACE,oBAAC,YAAY,OACP,IAAA,mBAAU,EAAC,mBAAmB,CAAC,EACnC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,SAAS;YAEb,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBACvB,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,GAAG,CAAC,QAAQ,EACtB,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,SAAS,EAC5B,OAAO,EAAE,GAAG,EAAE;wBACZ,WAAW,CAAC,GAAG,CAAC,CAAC;oBACnB,CAAC,EACD,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAC,KAAK,mBACK,GAAG,CAAC,EAAE,KAAK,SAAS,mBACpB,GAAG,CAAC,QAAQ;oBAE3B,oBAAC,kBAAK,IAAC,IAAI,EAAE,GAAG,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAG,GAAG,CAAC,KAAK,CAAS,CACzD,CACd,CAAC;YACJ,CAAC,CAAC;YACD,YAAY,CACA;QACd,QAAQ,CACR,CACJ,CAAC;AACJ,CAAC;AA3CD,8CA2CC"}
|
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DisplayTextInner = exports.DisplayText = exports.baseInlineDisplayTextStyle = exports.errorInput = exports.baseInlineStyleBorder = exports.baseInlineStyle = exports.baseInputStyle = exports.RightElement = exports.InputGroup = void 0;
|
|
4
4
|
const styled_components_1 = require("styled-components");
|
|
5
5
|
const Typography_1 = require("../Typography");
|
|
6
|
-
exports.InputGroup = styled_components_1.default.div `
|
|
6
|
+
exports.InputGroup = (0, styled_components_1.default)(Typography_1.TSpan).attrs({ type: "p1", as: "div" }) `
|
|
7
7
|
position: relative;
|
|
8
8
|
width: 100%;
|
|
9
|
-
${Typography_1.paragraphStyled.p1};
|
|
10
9
|
line-height: 0;
|
|
11
10
|
outline: none;
|
|
12
11
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/TextArea/styles.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/TextArea/styles.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;AAChD,8CAAsC;AAEzB,QAAA,UAAU,GAAG,IAAA,2BAAM,EAAC,kBAAK,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;;;;;CAKvE,CAAC;AAEW,QAAA,YAAY,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;gBAOvB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAEhD,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,uBAAG,EAAA;;;WAGtB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;sBACxB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;;sBAGnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;;;;;oBAKpC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;;;;mBAInC,CAAC,KAAK,EAAE,EAA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BACX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;;oBAGjC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;;;oBAInC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;4BAC1B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5D,CAAC;AAEW,QAAA,0BAA0B,GAAG,IAAA,uBAAG,EAAA;;;kBAG3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;;;;;;;;;;;oBAY/B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAEpD,CAAC;AAEW,QAAA,WAAW,GAAG,2BAAM,CAAC,IAAI,CAEpC;;aAEW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,CAC1C,KAAK,IAAI,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;;CAEvE,CAAC;AACW,QAAA,gBAAgB,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;CAM1C,CAAC"}
|
|
@@ -98,11 +98,11 @@ function Toggle({ id, checked, className, style, disabled, size = "medium", isLo
|
|
|
98
98
|
}, [indeterminate]);
|
|
99
99
|
return (React.createElement(LabelStyled, { ...(0, dpName_1.dpNameProp)("Toggle") },
|
|
100
100
|
customLabel && labelIsPrefix && (React.createElement(Typography_1.TSpan, { type: "p1", themeColor: "grey100" }, customLabel)),
|
|
101
|
-
label && labelIsPrefix && React.createElement(Typography_1.
|
|
101
|
+
label && labelIsPrefix && React.createElement(Typography_1.TSpan, { type: "p5" }, label),
|
|
102
102
|
React.createElement(ToggleContainer, { style: style, className: `${className} toggle`, size: size, indeterminate: indeterminate, disabled: disabled, readOnly: rest.readOnly },
|
|
103
103
|
React.createElement(InputStyled, { id: id, checked: !!checked, disabled: isLocked || disabled, ref: ref, ...rest }),
|
|
104
104
|
React.createElement(SliderStyled, { size: size, isLocked: isLocked, indeterminate: indeterminate })),
|
|
105
|
-
label && !labelIsPrefix && React.createElement(Typography_1.
|
|
105
|
+
label && !labelIsPrefix && React.createElement(Typography_1.TSpan, { type: "p5" }, label)));
|
|
106
106
|
}
|
|
107
107
|
exports.Toggle = Toggle;
|
|
108
108
|
//# sourceMappingURL=Toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAA+F;AAC/F,4EAA2D;AAC3D,yDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAA+F;AAC/F,4EAA2D;AAC3D,yDAAgD;AAChD,8CAAsC;AACtC,qDAAkD;AAClD,+CAAgD;AAQhD,MAAM,YAAY,GAAG,2BAAM,CAAC,IAAI,CAAmB;;YAEvC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;sBAK7C,CAAC,KAAK,EAAE,EAAE,CAC5B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;;;;;;;wBAOzD,CAAC,KAAK,EAAE,EAAE,CAC5B,OAAO,KAAK,CAAC,QAAQ,KAAK,SAAS;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AAa,GAAI,CAC9D;QACjB,KAAK,IAAI,CAAC,aAAa,IAAI,oBAAC,kBAAK,IAAC,IAAI,EAAC,IAAI,IAAE,KAAK,CAAS,CAChD,CACf,CAAC;AACJ,CAAC;AAtDD,wBAsDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TSpan = exports.P16 = exports.P15 = exports.P14 = exports.Code = exports.P13 = exports.P12 = exports.P11 = exports.P10 = exports.P9 = exports.P8 = exports.P7 = exports.P6 = exports.P5 = exports.P4 = exports.P3 = exports.P2 = exports.P1 = exports.paragraphStyled = exports.H8 = exports.H7 = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.H0 = exports.headingStyles = void 0;
|
|
3
|
+
exports.TSpan = exports.P18 = exports.P17 = exports.P16 = exports.P15 = exports.P14 = exports.Code = exports.P13 = exports.P12 = exports.P11 = exports.P10 = exports.P9 = exports.P8 = exports.P7 = exports.P6 = exports.P5 = exports.P4 = exports.P3 = exports.P2 = exports.P1 = exports.paragraphStyled = exports.H11 = exports.H10 = exports.H9 = exports.H8 = exports.H7 = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.H0 = exports.headingStyles = void 0;
|
|
4
4
|
/**
|
|
5
5
|
</Stack>
|
|
6
6
|
* Typography
|
|
@@ -8,8 +8,6 @@ exports.TSpan = exports.P16 = exports.P15 = exports.P14 = exports.Code = exports
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
const styled_components_1 = require("styled-components");
|
|
11
|
-
const React = require("react");
|
|
12
|
-
const react_1 = require("react");
|
|
13
11
|
// Heading Text
|
|
14
12
|
const h0 = (0, styled_components_1.css) `
|
|
15
13
|
font-size: 14px;
|
|
@@ -65,6 +63,24 @@ const h8 = (0, styled_components_1.css) `
|
|
|
65
63
|
font-family: ${(props) => props.theme.fonts.inter};
|
|
66
64
|
line-height: 150%;
|
|
67
65
|
`;
|
|
66
|
+
const h9 = (0, styled_components_1.css) `
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
70
|
+
line-height: 100%;
|
|
71
|
+
`;
|
|
72
|
+
const h10 = (0, styled_components_1.css) `
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
76
|
+
line-height: 112%;
|
|
77
|
+
`;
|
|
78
|
+
const h11 = (0, styled_components_1.css) `
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
font-family: ${(props) => props.theme.fonts.headingPrimary};
|
|
82
|
+
line-height: 120%;
|
|
83
|
+
`;
|
|
68
84
|
/**
|
|
69
85
|
* @public
|
|
70
86
|
*/
|
|
@@ -78,92 +94,98 @@ exports.headingStyles = {
|
|
|
78
94
|
h6,
|
|
79
95
|
h7,
|
|
80
96
|
h8,
|
|
97
|
+
h9,
|
|
98
|
+
h10,
|
|
99
|
+
h11,
|
|
81
100
|
};
|
|
82
101
|
const common = (0, styled_components_1.css) `
|
|
83
102
|
margin: 0;
|
|
84
103
|
padding: 0;
|
|
85
104
|
`;
|
|
86
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
exports.H0 = styled_components_1.default.h1 `
|
|
87
109
|
${common};
|
|
88
110
|
${exports.headingStyles.h0}
|
|
89
111
|
`;
|
|
90
112
|
/**
|
|
91
113
|
* @public
|
|
92
114
|
*/
|
|
93
|
-
|
|
94
|
-
exports.H0 = H0;
|
|
95
|
-
const StyledH1 = styled_components_1.default.h1 `
|
|
115
|
+
exports.H1 = styled_components_1.default.h1 `
|
|
96
116
|
${common};
|
|
97
117
|
${exports.headingStyles.h1}
|
|
98
118
|
`;
|
|
99
119
|
/**
|
|
100
120
|
* @public
|
|
101
121
|
*/
|
|
102
|
-
|
|
103
|
-
exports.H1 = H1;
|
|
104
|
-
const StyledH2 = styled_components_1.default.h2 `
|
|
122
|
+
exports.H2 = styled_components_1.default.h2 `
|
|
105
123
|
${common};
|
|
106
124
|
${exports.headingStyles.h2}
|
|
107
125
|
`;
|
|
108
126
|
/**
|
|
109
127
|
* @public
|
|
110
128
|
*/
|
|
111
|
-
|
|
112
|
-
exports.H2 = H2;
|
|
113
|
-
const StyledH3 = styled_components_1.default.h3 `
|
|
129
|
+
exports.H3 = styled_components_1.default.h3 `
|
|
114
130
|
${common};
|
|
115
131
|
${exports.headingStyles.h3}
|
|
116
132
|
`;
|
|
117
133
|
/**
|
|
118
134
|
* @public
|
|
119
135
|
*/
|
|
120
|
-
|
|
121
|
-
exports.H3 = H3;
|
|
122
|
-
const StyledH4 = styled_components_1.default.h4 `
|
|
136
|
+
exports.H4 = styled_components_1.default.h4 `
|
|
123
137
|
${common};
|
|
124
138
|
${exports.headingStyles.h4}
|
|
125
139
|
`;
|
|
126
140
|
/**
|
|
127
141
|
* @public
|
|
128
142
|
*/
|
|
129
|
-
|
|
130
|
-
exports.H4 = H4;
|
|
131
|
-
const StyledH5 = styled_components_1.default.h5 `
|
|
143
|
+
exports.H5 = styled_components_1.default.h5 `
|
|
132
144
|
${common};
|
|
133
145
|
${exports.headingStyles.h5}
|
|
134
146
|
`;
|
|
135
147
|
/**
|
|
136
148
|
* @public
|
|
137
149
|
*/
|
|
138
|
-
|
|
139
|
-
exports.H5 = H5;
|
|
140
|
-
const StyledH6 = styled_components_1.default.h6 `
|
|
150
|
+
exports.H6 = styled_components_1.default.h6 `
|
|
141
151
|
${common};
|
|
142
152
|
${exports.headingStyles.h6}
|
|
143
153
|
`;
|
|
144
154
|
/**
|
|
145
155
|
* @public
|
|
146
156
|
*/
|
|
147
|
-
|
|
148
|
-
exports.H6 = H6;
|
|
149
|
-
const StyledH7 = styled_components_1.default.h6 `
|
|
157
|
+
exports.H7 = styled_components_1.default.h6 `
|
|
150
158
|
${common};
|
|
151
159
|
${exports.headingStyles.h7}
|
|
152
160
|
`;
|
|
153
161
|
/**
|
|
154
162
|
* @public
|
|
155
163
|
*/
|
|
156
|
-
|
|
157
|
-
exports.H7 = H7;
|
|
158
|
-
const StyledH8 = styled_components_1.default.h6 `
|
|
164
|
+
exports.H8 = styled_components_1.default.h6 `
|
|
159
165
|
${common};
|
|
160
166
|
${exports.headingStyles.h8}
|
|
161
167
|
`;
|
|
162
168
|
/**
|
|
163
169
|
* @public
|
|
164
170
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
171
|
+
exports.H9 = styled_components_1.default.h1 `
|
|
172
|
+
${common};
|
|
173
|
+
${exports.headingStyles.h9}
|
|
174
|
+
`;
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
exports.H10 = styled_components_1.default.h1 `
|
|
179
|
+
${common};
|
|
180
|
+
${exports.headingStyles.h10}
|
|
181
|
+
`;
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
exports.H11 = styled_components_1.default.h1 `
|
|
186
|
+
${common};
|
|
187
|
+
${exports.headingStyles.h11}
|
|
188
|
+
`;
|
|
167
189
|
// Paragraph Text
|
|
168
190
|
const p1 = (0, styled_components_1.css) `
|
|
169
191
|
font-size: 12px;
|
|
@@ -261,6 +283,18 @@ const p16 = (0, styled_components_1.css) `
|
|
|
261
283
|
font-family: ${(props) => props.theme.fonts.inter};
|
|
262
284
|
line-height: 150%;
|
|
263
285
|
`;
|
|
286
|
+
const p17 = (0, styled_components_1.css) `
|
|
287
|
+
font-size: 13px;
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
font-family: ${(props) => props.theme.fonts.inter};
|
|
290
|
+
line-height: 100%;
|
|
291
|
+
`;
|
|
292
|
+
const p18 = (0, styled_components_1.css) `
|
|
293
|
+
font-size: 11px;
|
|
294
|
+
font-weight: 500;
|
|
295
|
+
font-family: ${(props) => props.theme.fonts.primary};
|
|
296
|
+
line-height: 120%;
|
|
297
|
+
`;
|
|
264
298
|
/**
|
|
265
299
|
* @public
|
|
266
300
|
*/
|
|
@@ -281,170 +315,151 @@ exports.paragraphStyled = {
|
|
|
281
315
|
p14,
|
|
282
316
|
p15,
|
|
283
317
|
p16,
|
|
318
|
+
p17,
|
|
319
|
+
p18,
|
|
284
320
|
};
|
|
285
|
-
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
*/
|
|
324
|
+
exports.P1 = styled_components_1.default.p `
|
|
286
325
|
${common};
|
|
287
326
|
${exports.paragraphStyled.p1}
|
|
288
327
|
`;
|
|
289
328
|
/**
|
|
290
329
|
* @public
|
|
291
330
|
*/
|
|
292
|
-
|
|
293
|
-
exports.P1 = P1;
|
|
294
|
-
const StyledP2 = styled_components_1.default.p `
|
|
331
|
+
exports.P2 = styled_components_1.default.p `
|
|
295
332
|
${common};
|
|
296
333
|
${exports.paragraphStyled.p2}
|
|
297
334
|
`;
|
|
298
335
|
/**
|
|
299
336
|
* @public
|
|
300
337
|
*/
|
|
301
|
-
|
|
302
|
-
exports.P2 = P2;
|
|
303
|
-
const StyledP3 = styled_components_1.default.p `
|
|
338
|
+
exports.P3 = styled_components_1.default.p `
|
|
304
339
|
${common};
|
|
305
340
|
${exports.paragraphStyled.p3}
|
|
306
341
|
`;
|
|
307
342
|
/**
|
|
308
343
|
* @public
|
|
309
344
|
*/
|
|
310
|
-
|
|
311
|
-
exports.P3 = P3;
|
|
312
|
-
const StyledP4 = styled_components_1.default.p `
|
|
345
|
+
exports.P4 = styled_components_1.default.p `
|
|
313
346
|
${common};
|
|
314
347
|
${exports.paragraphStyled.p4}
|
|
315
348
|
`;
|
|
316
349
|
/**
|
|
317
350
|
* @public
|
|
318
351
|
*/
|
|
319
|
-
|
|
320
|
-
exports.P4 = P4;
|
|
321
|
-
const StyledP5 = styled_components_1.default.p `
|
|
352
|
+
exports.P5 = styled_components_1.default.p `
|
|
322
353
|
${common};
|
|
323
354
|
${exports.paragraphStyled.p5}
|
|
324
355
|
`;
|
|
325
356
|
/**
|
|
326
357
|
* @public
|
|
327
358
|
*/
|
|
328
|
-
|
|
329
|
-
exports.P5 = P5;
|
|
330
|
-
const StyledP6 = styled_components_1.default.p `
|
|
359
|
+
exports.P6 = styled_components_1.default.p `
|
|
331
360
|
${common};
|
|
332
361
|
${exports.paragraphStyled.p6}
|
|
333
362
|
`;
|
|
334
363
|
/**
|
|
335
364
|
* @public
|
|
336
365
|
*/
|
|
337
|
-
|
|
338
|
-
exports.P6 = P6;
|
|
339
|
-
const StyledP7 = styled_components_1.default.p `
|
|
366
|
+
exports.P7 = styled_components_1.default.p `
|
|
340
367
|
${common};
|
|
341
368
|
${exports.paragraphStyled.p7}
|
|
342
369
|
`;
|
|
343
370
|
/**
|
|
344
371
|
* @public
|
|
345
372
|
*/
|
|
346
|
-
|
|
347
|
-
exports.P7 = P7;
|
|
348
|
-
const StyledP8 = styled_components_1.default.p `
|
|
373
|
+
exports.P8 = styled_components_1.default.p `
|
|
349
374
|
${common};
|
|
350
375
|
${exports.paragraphStyled.p8}
|
|
351
376
|
`;
|
|
352
377
|
/**
|
|
353
378
|
* @public
|
|
354
379
|
*/
|
|
355
|
-
|
|
356
|
-
exports.P8 = P8;
|
|
357
|
-
const StyledP9 = styled_components_1.default.p `
|
|
380
|
+
exports.P9 = styled_components_1.default.p `
|
|
358
381
|
${common};
|
|
359
382
|
${exports.paragraphStyled.p9}
|
|
360
383
|
`;
|
|
361
384
|
/**
|
|
362
385
|
* @public
|
|
363
386
|
*/
|
|
364
|
-
|
|
365
|
-
exports.P9 = P9;
|
|
366
|
-
const StyledP10 = styled_components_1.default.p `
|
|
387
|
+
exports.P10 = styled_components_1.default.p `
|
|
367
388
|
${common};
|
|
368
389
|
${exports.paragraphStyled.p10}
|
|
369
390
|
`;
|
|
370
391
|
/**
|
|
371
392
|
* @public
|
|
372
393
|
*/
|
|
373
|
-
|
|
374
|
-
exports.P10 = P10;
|
|
375
|
-
const StyledP11 = styled_components_1.default.p `
|
|
394
|
+
exports.P11 = styled_components_1.default.p `
|
|
376
395
|
${common};
|
|
377
396
|
${exports.paragraphStyled.p11}
|
|
378
397
|
`;
|
|
379
398
|
/**
|
|
380
399
|
* @public
|
|
381
400
|
*/
|
|
382
|
-
|
|
383
|
-
exports.P11 = P11;
|
|
384
|
-
const StyledP12 = styled_components_1.default.p `
|
|
401
|
+
exports.P12 = styled_components_1.default.p `
|
|
385
402
|
${common};
|
|
386
403
|
${exports.paragraphStyled.p12}
|
|
387
404
|
`;
|
|
388
405
|
/**
|
|
389
406
|
* @public
|
|
390
407
|
*/
|
|
391
|
-
|
|
392
|
-
exports.P12 = P12;
|
|
393
|
-
const StyledP13 = styled_components_1.default.p `
|
|
408
|
+
exports.P13 = styled_components_1.default.p `
|
|
394
409
|
${common};
|
|
395
410
|
${exports.paragraphStyled.p13}
|
|
396
411
|
`;
|
|
397
412
|
/**
|
|
398
413
|
* @public
|
|
399
414
|
*/
|
|
400
|
-
|
|
401
|
-
exports.P13 = P13;
|
|
402
|
-
const StyledCode = styled_components_1.default.code `
|
|
415
|
+
exports.Code = styled_components_1.default.code `
|
|
403
416
|
${common};
|
|
404
417
|
${p13}
|
|
405
418
|
`;
|
|
406
419
|
/**
|
|
407
420
|
* @public
|
|
408
421
|
*/
|
|
409
|
-
|
|
410
|
-
exports.Code = Code;
|
|
411
|
-
const StyledP14 = styled_components_1.default.code `
|
|
422
|
+
exports.P14 = styled_components_1.default.code `
|
|
412
423
|
${common};
|
|
413
424
|
${p14}
|
|
414
425
|
`;
|
|
415
426
|
/**
|
|
416
427
|
* @public
|
|
417
428
|
*/
|
|
418
|
-
|
|
419
|
-
exports.P14 = P14;
|
|
420
|
-
const StyledP15 = styled_components_1.default.code `
|
|
429
|
+
exports.P15 = styled_components_1.default.code `
|
|
421
430
|
${common};
|
|
422
431
|
${p15}
|
|
423
432
|
`;
|
|
424
433
|
/**
|
|
425
434
|
* @public
|
|
426
435
|
*/
|
|
427
|
-
|
|
428
|
-
exports.P15 = P15;
|
|
429
|
-
const StyledP16 = styled_components_1.default.code `
|
|
436
|
+
exports.P16 = styled_components_1.default.p `
|
|
430
437
|
${common};
|
|
431
438
|
${p16}
|
|
432
439
|
`;
|
|
433
440
|
/**
|
|
434
441
|
* @public
|
|
435
442
|
*/
|
|
436
|
-
|
|
437
|
-
|
|
443
|
+
exports.P17 = styled_components_1.default.p `
|
|
444
|
+
${common};
|
|
445
|
+
${p17}
|
|
446
|
+
`;
|
|
447
|
+
/**
|
|
448
|
+
* @public
|
|
449
|
+
*/
|
|
450
|
+
exports.P18 = styled_components_1.default.p `
|
|
451
|
+
${common};
|
|
452
|
+
${p18}
|
|
453
|
+
`;
|
|
438
454
|
/**
|
|
439
455
|
* @public
|
|
440
456
|
*/
|
|
441
|
-
exports.TSpan = (0,
|
|
442
|
-
const StyledTSpan = (0, styled_components_1.default)((0, react_1.forwardRef)(({ children, ...props }, ref) => (React.createElement("span", { ...props, ref: ref }, children)))) `
|
|
457
|
+
exports.TSpan = (0, styled_components_1.default)("span") `
|
|
443
458
|
${common};
|
|
444
459
|
color: ${(props) => { var _a;
|
|
445
460
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
446
|
-
return (_a = props.theme.colors[props
|
|
447
|
-
flex: ${(props) => (props
|
|
461
|
+
return (_a = props.theme.colors[props.themeColor]) !== null && _a !== void 0 ? _a : "inherit"; }};
|
|
462
|
+
flex: ${(props) => (props.flex ? props.flex : undefined)};
|
|
448
463
|
${(props) => props.$fill
|
|
449
464
|
? (0, styled_components_1.css) `
|
|
450
465
|
flex-grow: 1;
|
|
@@ -452,32 +467,32 @@ return (_a = props.theme.colors[props.$themeColor]) !== null && _a !== void 0 ?
|
|
|
452
467
|
: (0, styled_components_1.css) `
|
|
453
468
|
max-width: max-content;
|
|
454
469
|
`}
|
|
455
|
-
${(props) => props
|
|
470
|
+
${(props) => props.overflow
|
|
456
471
|
? (0, styled_components_1.css) `
|
|
457
472
|
width: 100%;
|
|
458
473
|
overflow: hidden;
|
|
459
474
|
white-space: nowrap;
|
|
460
|
-
text-overflow: ${props
|
|
475
|
+
text-overflow: ${props.overflow};
|
|
461
476
|
`
|
|
462
477
|
: undefined}
|
|
463
478
|
|
|
464
479
|
${(props) =>
|
|
465
480
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
466
|
-
exports.paragraphStyled[props
|
|
467
|
-
exports.headingStyles[props
|
|
481
|
+
exports.paragraphStyled[props.type] ||
|
|
482
|
+
exports.headingStyles[props.type]}
|
|
468
483
|
|
|
469
|
-
${(props) => props
|
|
484
|
+
${(props) => props.font &&
|
|
470
485
|
(0, styled_components_1.css) `
|
|
471
|
-
font-family: ${props
|
|
486
|
+
font-family: ${props.font};
|
|
472
487
|
`};
|
|
473
|
-
${(props) => props
|
|
488
|
+
${(props) => props.transform &&
|
|
474
489
|
(0, styled_components_1.css) `
|
|
475
|
-
text-transform: ${props
|
|
490
|
+
text-transform: ${props.transform};
|
|
476
491
|
`}
|
|
477
492
|
|
|
478
|
-
${(props) => props
|
|
493
|
+
${(props) => props.textAlign &&
|
|
479
494
|
(0, styled_components_1.css) `
|
|
480
|
-
text-align: ${props
|
|
495
|
+
text-align: ${props.textAlign};
|
|
481
496
|
`};
|
|
482
497
|
`;
|
|
483
498
|
//# sourceMappingURL=Typography.js.map
|