@laerdal/life-react-components 3.6.0-dev.1.full → 3.6.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/Accordion/__tests__/AccordionMenu.test.tsx +42 -0
- package/dist/Accordion/__tests__/ContentAccordion.test.tsx +150 -0
- package/dist/AuthPage/__tests__/AuthPage.test.tsx +27 -0
- package/dist/Banners/__tests__/Banner.test.tsx +47 -0
- package/dist/Banners/__tests__/OverviewBanner.test.tsx +20 -0
- package/dist/Breadcrumb/__tests__/Breadcrumb.test.tsx +78 -0
- package/dist/Button/TextButton.cjs +648 -0
- package/dist/Button/TextButton.cjs.map +1 -0
- package/dist/Button/TextButton.d.ts +77 -0
- package/dist/Button/TextButton.js +640 -0
- package/dist/Button/TextButton.js.map +1 -0
- package/dist/Button/__tests__/BackButton.test.tsx +32 -0
- package/dist/Button/__tests__/Button.test.tsx +45 -0
- package/dist/Button/__tests__/DualButton.test.tsx +119 -0
- package/dist/Button/__tests__/TextButton.test.tsx +45 -0
- package/dist/Card/HorizontalCard/__tests__/HorizontalCard.test.tsx +71 -0
- package/dist/Card/HorizontalCard/__tests__/VerticalCard.test.tsx +124 -0
- package/dist/Card/VerticalCard/VerticalCard.cjs +187 -0
- package/dist/Card/VerticalCard/VerticalCard.cjs.map +1 -0
- package/dist/Card/VerticalCard/VerticalCard.d.ts +25 -0
- package/dist/Card/VerticalCard/VerticalCard.js +178 -0
- package/dist/Card/VerticalCard/VerticalCard.js.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardBottomSection.cjs +261 -0
- package/dist/Card/VerticalCard/VerticalCardBottomSection.cjs.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardBottomSection.d.ts +53 -0
- package/dist/Card/VerticalCard/VerticalCardBottomSection.js +252 -0
- package/dist/Card/VerticalCard/VerticalCardBottomSection.js.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardMiddleSection.cjs +145 -0
- package/dist/Card/VerticalCard/VerticalCardMiddleSection.cjs.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardMiddleSection.d.ts +42 -0
- package/dist/Card/VerticalCard/VerticalCardMiddleSection.js +136 -0
- package/dist/Card/VerticalCard/VerticalCardMiddleSection.js.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardTopSection.cjs +165 -0
- package/dist/Card/VerticalCard/VerticalCardTopSection.cjs.map +1 -0
- package/dist/Card/VerticalCard/VerticalCardTopSection.d.ts +45 -0
- package/dist/Card/VerticalCard/VerticalCardTopSection.js +156 -0
- package/dist/Card/VerticalCard/VerticalCardTopSection.js.map +1 -0
- package/dist/Card/VerticalCard/__tests__/VerticalCard.test.tsx +124 -0
- package/dist/Card/__tests__/Card.test.tsx +146 -0
- package/dist/Chips/ChoiceChips.cjs +0 -1
- package/dist/Chips/ChoiceChips.cjs.map +1 -1
- package/dist/Chips/ChoiceChips.js +0 -1
- package/dist/Chips/ChoiceChips.js.map +1 -1
- package/dist/Chips/__tests__/ActionChip.test.tsx +94 -0
- package/dist/Chips/__tests__/ChoiceChips.test.tsx +79 -0
- package/dist/Chips/__tests__/FilterChip.test.tsx +95 -0
- package/dist/Chips/__tests__/InputChip.test.tsx +155 -0
- package/dist/ChipsInput/ChipDropdownInput.cjs +1 -1
- package/dist/ChipsInput/ChipDropdownInput.cjs.map +1 -1
- package/dist/ChipsInput/ChipDropdownInput.js +1 -1
- package/dist/ChipsInput/ChipDropdownInput.js.map +1 -1
- package/dist/ChipsInput/__tests__/ChipDropdownInput.test.tsx +100 -0
- package/dist/ChipsInput/__tests__/ChipInputFields.test.tsx +155 -0
- package/dist/Dropdown/BasicDropdown.cjs +0 -2
- package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
- package/dist/Dropdown/BasicDropdown.js +0 -2
- package/dist/Dropdown/BasicDropdown.js.map +1 -1
- package/dist/Dropdown/DropdownButton.cjs +0 -4
- package/dist/Dropdown/DropdownButton.cjs.map +1 -1
- package/dist/Dropdown/DropdownButton.js +0 -4
- package/dist/Dropdown/DropdownButton.js.map +1 -1
- package/dist/Dropdown/DropdownContent.cjs +1 -1
- package/dist/Dropdown/DropdownContent.cjs.map +1 -1
- package/dist/Dropdown/DropdownContent.js +1 -1
- package/dist/Dropdown/DropdownContent.js.map +1 -1
- package/dist/Dropdown/DropdownFilter.cjs +0 -2
- package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
- package/dist/Dropdown/DropdownFilter.js +0 -2
- package/dist/Dropdown/DropdownFilter.js.map +1 -1
- package/dist/Dropdown/__tests__/DropdownFilter.test.tsx +39 -0
- package/dist/Footer/__tests__/Footer.test.tsx +182 -0
- package/dist/GlobalNavigationBar/__tests__/Logo.test.tsx +31 -0
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs +1 -0
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +1 -0
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.cjs +1 -0
- package/dist/GlobalNavigationBar/desktop/SubMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js +1 -0
- package/dist/GlobalNavigationBar/desktop/SubMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/__tests__/DesktopActions.test.tsx +108 -0
- package/dist/GlobalNavigationBar/desktop/__tests__/ExtendedMainMenu.test.tsx +28 -0
- package/dist/GlobalNavigationBar/desktop/__tests__/MainMenu.test.tsx +55 -0
- package/dist/GlobalNavigationBar/desktop/__tests__/RightSideNav.test.tsx +45 -0
- package/dist/GlobalNavigationBar/desktop/__tests__/UserMenu.test.tsx +125 -0
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenu.test.tsx +317 -0
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuContent.test.tsx +294 -0
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuHeader.test.tsx +195 -0
- package/dist/InputFields/QuickSearch.cjs +1 -1
- package/dist/InputFields/QuickSearch.cjs.map +1 -1
- package/dist/InputFields/QuickSearch.js +1 -1
- package/dist/InputFields/QuickSearch.js.map +1 -1
- package/dist/InputFields/__tests__/NumberField.test.tsx +67 -0
- package/dist/InputFields/__tests__/NumberInput.test.tsx +68 -0
- package/dist/InputFields/__tests__/QuickSearch.test.tsx +42 -0
- package/dist/LinearProgress/__tests__/LinearProgress.test.tsx +25 -0
- package/dist/List/__tests__/ListRow.test.tsx +18 -0
- package/dist/LoadingPage/__tests__/GlobalLoadingPage.test.tsx +23 -0
- package/dist/Modals/__tests__/Modal.test.tsx +169 -0
- package/dist/Modals/__tests__/ModalContainer.test.tsx +77 -0
- package/dist/Modals/__tests__/ModalContent.test.tsx +126 -0
- package/dist/NavItem/__tests__/NavItem.test.ts +6 -0
- package/dist/Navigation/NavigationProvider.cjs +43 -0
- package/dist/Navigation/NavigationProvider.cjs.map +1 -0
- package/dist/Navigation/NavigationProvider.d.ts +15 -0
- package/dist/Navigation/NavigationProvider.js +32 -0
- package/dist/Navigation/NavigationProvider.js.map +1 -0
- package/dist/Navigation/index.cjs +19 -0
- package/dist/Navigation/index.cjs.map +1 -0
- package/dist/Navigation/index.d.ts +2 -0
- package/dist/Navigation/index.js +2 -0
- package/dist/Navigation/index.js.map +1 -0
- package/dist/NotificationDot/__tests__/NotificationDot.test.tsx +33 -0
- package/dist/Paginator/__tests__/Paginator.test.tsx +33 -0
- package/dist/Popover/__tests__/Popover.test.tsx +64 -0
- package/dist/ProfileButton/__tests__/ProfileButton.test.tsx +31 -0
- package/dist/QuizButton/__tests__/QuizButton.test.tsx +53 -0
- package/dist/SegmentControl/__tests__/SegmentControl.test.tsx +145 -0
- package/dist/SideMenu/__tests__/SideMenu.test.tsx +99 -0
- package/dist/Switcher/__tests__/SwitcherMenuItem.tsx +14 -0
- package/dist/Table/Table.cjs +3 -1
- package/dist/Table/Table.cjs.map +1 -1
- package/dist/Table/Table.js +3 -1
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.cjs.map +1 -1
- package/dist/Table/TableBody.js +1 -1
- package/dist/Table/TableBody.js.map +1 -1
- package/dist/Table/TableFooter.cjs +0 -2
- package/dist/Table/TableFooter.cjs.map +1 -1
- package/dist/Table/TableFooter.js +0 -2
- package/dist/Table/TableFooter.js.map +1 -1
- package/dist/Table/__tests__/Table.test.tsx +499 -0
- package/dist/Tabs/__tests__/HorizontalTabs.test.tsx +95 -0
- package/dist/Tabs/__tests__/TabLink.test.tsx +40 -0
- package/dist/Tabs/__tests__/Tablist.test.tsx +37 -0
- package/dist/Tag/__tests__/Tag.test.tsx +86 -0
- package/dist/Toasters/__tests__/Toast.test.tsx +74 -0
- package/dist/Toggles/__tests__/ToggleButton.test.tsx +53 -0
- package/dist/Toggles/__tests__/ToggleSwitch.test.tsx +87 -0
- package/dist/Tooltips/__tests__/TooltipWrapper.test.tsx +16 -0
- package/dist/icons/systemicons/CreditCard.cjs +43 -0
- package/dist/icons/systemicons/CreditCard.cjs.map +1 -0
- package/dist/icons/systemicons/CreditCard.d.ts +3 -0
- package/dist/icons/systemicons/CreditCard.js +33 -0
- package/dist/icons/systemicons/CreditCard.js.map +1 -0
- package/dist/icons/systemicons/Discount.cjs +43 -0
- package/dist/icons/systemicons/Discount.cjs.map +1 -0
- package/dist/icons/systemicons/Discount.d.ts +3 -0
- package/dist/icons/systemicons/Discount.js +33 -0
- package/dist/icons/systemicons/Discount.js.map +1 -0
- package/dist/icons/systemicons/DocumentComplete.cjs +43 -0
- package/dist/icons/systemicons/DocumentComplete.cjs.map +1 -0
- package/dist/icons/systemicons/DocumentComplete.d.ts +3 -0
- package/dist/icons/systemicons/DocumentComplete.js +33 -0
- package/dist/icons/systemicons/DocumentComplete.js.map +1 -0
- package/dist/icons/systemicons/Folder.cjs +43 -0
- package/dist/icons/systemicons/Folder.cjs.map +1 -0
- package/dist/icons/systemicons/Folder.d.ts +3 -0
- package/dist/icons/systemicons/Folder.js +33 -0
- package/dist/icons/systemicons/Folder.js.map +1 -0
- package/dist/icons/systemicons/FolderNew.cjs +43 -0
- package/dist/icons/systemicons/FolderNew.cjs.map +1 -0
- package/dist/icons/systemicons/FolderNew.d.ts +3 -0
- package/dist/icons/systemicons/FolderNew.js +33 -0
- package/dist/icons/systemicons/FolderNew.js.map +1 -0
- package/dist/icons/systemicons/MoodHappy.cjs +43 -0
- package/dist/icons/systemicons/MoodHappy.cjs.map +1 -0
- package/dist/icons/systemicons/MoodHappy.d.ts +3 -0
- package/dist/icons/systemicons/MoodHappy.js +33 -0
- package/dist/icons/systemicons/MoodHappy.js.map +1 -0
- package/dist/icons/systemicons/MoodIndifferent.cjs +43 -0
- package/dist/icons/systemicons/MoodIndifferent.cjs.map +1 -0
- package/dist/icons/systemicons/MoodIndifferent.d.ts +3 -0
- package/dist/icons/systemicons/MoodIndifferent.js +33 -0
- package/dist/icons/systemicons/MoodIndifferent.js.map +1 -0
- package/dist/icons/systemicons/MoodSad.cjs +43 -0
- package/dist/icons/systemicons/MoodSad.cjs.map +1 -0
- package/dist/icons/systemicons/MoodSad.d.ts +3 -0
- package/dist/icons/systemicons/MoodSad.js +33 -0
- package/dist/icons/systemicons/MoodSad.js.map +1 -0
- package/dist/icons/systemicons/MoodVeryHappy.cjs +43 -0
- package/dist/icons/systemicons/MoodVeryHappy.cjs.map +1 -0
- package/dist/icons/systemicons/MoodVeryHappy.d.ts +3 -0
- package/dist/icons/systemicons/MoodVeryHappy.js +33 -0
- package/dist/icons/systemicons/MoodVeryHappy.js.map +1 -0
- package/dist/icons/systemicons/MoodVerySad.cjs +43 -0
- package/dist/icons/systemicons/MoodVerySad.cjs.map +1 -0
- package/dist/icons/systemicons/MoodVerySad.d.ts +3 -0
- package/dist/icons/systemicons/MoodVerySad.js +33 -0
- package/dist/icons/systemicons/MoodVerySad.js.map +1 -0
- package/dist/icons/systemicons/Orders.cjs +43 -0
- package/dist/icons/systemicons/Orders.cjs.map +1 -0
- package/dist/icons/systemicons/Orders.d.ts +3 -0
- package/dist/icons/systemicons/Orders.js +33 -0
- package/dist/icons/systemicons/Orders.js.map +1 -0
- package/dist/icons/systemicons/Palette.cjs +43 -0
- package/dist/icons/systemicons/Palette.cjs.map +1 -0
- package/dist/icons/systemicons/Palette.d.ts +3 -0
- package/dist/icons/systemicons/Palette.js +33 -0
- package/dist/icons/systemicons/Palette.js.map +1 -0
- package/dist/icons/systemicons/Stack.cjs +43 -0
- package/dist/icons/systemicons/Stack.cjs.map +1 -0
- package/dist/icons/systemicons/Stack.d.ts +3 -0
- package/dist/icons/systemicons/Stack.js +33 -0
- package/dist/icons/systemicons/Stack.js.map +1 -0
- package/dist/styles/design-tokens/dark/tokens.css +481 -0
- package/dist/styles/design-tokens/light/tokens.css +481 -0
- package/dist/styles/design-tokens/rqi_dark/tokens.css +481 -0
- package/dist/styles/design-tokens/rqi_light/tokens.css +481 -0
- package/dist/styles/react-datepicker.css +766 -0
- package/dist/styles/typography.cjs +35 -59
- package/dist/styles/typography.cjs.map +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +35 -59
- package/dist/styles/typography.js.map +1 -1
- package/dist/test-utils.cjs +16 -10
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.d.ts +5 -5
- package/dist/test-utils.js +14 -8
- package/dist/test-utils.js.map +1 -1
- package/dist/utils/color-tokens.cjs +91 -0
- package/dist/utils/color-tokens.cjs.map +1 -0
- package/dist/utils/color-tokens.d.ts +19 -0
- package/dist/utils/color-tokens.js +82 -0
- package/dist/utils/color-tokens.js.map +1 -0
- package/package.json +1 -1
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.UpperCaseTypography = exports.UpperCase = exports.TypographyBase = exports.Typography = exports.QuoteTypography = exports.Quote = exports.NoteTypography = exports.Note = exports.ComponentXXSStyling = exports.ComponentXXS = exports.ComponentXSStyling = exports.ComponentXS = exports.ComponentXLStyling = exports.ComponentXL = exports.ComponentTextStyle = exports.ComponentSStyling = exports.ComponentS = exports.ComponentResponsive = exports.ComponentMStyling = exports.ComponentM = exports.ComponentLStyling = exports.ComponentL = void 0;
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -15,18 +13,9 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
15
13
|
var _ = require(".");
|
|
16
14
|
var _types = require("../types");
|
|
17
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var _excluded = ["color", "textStyle", "children", "className"],
|
|
19
|
-
_excluded2 = ["color", "textStyle", "children", "className"],
|
|
20
|
-
_excluded3 = ["color", "textStyle", "children", "className"],
|
|
21
|
-
_excluded4 = ["color", "textStyle", "children", "className"],
|
|
22
|
-
_excluded5 = ["color", "textStyle", "children", "className"],
|
|
23
|
-
_excluded6 = ["color", "textStyle", "children", "className"],
|
|
24
|
-
_excluded7 = ["color", "textStyle", "children", "size", "width"];
|
|
25
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
26
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
19
|
var TypographyBase = (0, _styledComponents["default"])('div')(function (_ref) {
|
|
31
20
|
var $color = _ref.$color,
|
|
32
21
|
lineHeight = _ref.lineHeight,
|
|
@@ -82,20 +71,18 @@ var ComponentXL = function ComponentXL(_ref2) {
|
|
|
82
71
|
var color = _ref2.color,
|
|
83
72
|
textStyle = _ref2.textStyle,
|
|
84
73
|
children = _ref2.children,
|
|
85
|
-
className = _ref2.className
|
|
86
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
|
74
|
+
className = _ref2.className;
|
|
87
75
|
var fontWeight = componentFontWeight(textStyle);
|
|
88
76
|
var fontStyle = componentFontStyle(textStyle);
|
|
89
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
77
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
90
78
|
className: className,
|
|
91
79
|
$color: color,
|
|
92
80
|
lineHeight: 28,
|
|
93
81
|
$fontSize: 24,
|
|
94
82
|
$fontWeight: fontWeight,
|
|
95
|
-
$fontStyle: fontStyle
|
|
96
|
-
}, rest), {}, {
|
|
83
|
+
$fontStyle: fontStyle,
|
|
97
84
|
children: children
|
|
98
|
-
})
|
|
85
|
+
});
|
|
99
86
|
};
|
|
100
87
|
exports.ComponentXL = ComponentXL;
|
|
101
88
|
ComponentXL.propTypes = {
|
|
@@ -112,20 +99,18 @@ var ComponentL = function ComponentL(_ref3) {
|
|
|
112
99
|
var color = _ref3.color,
|
|
113
100
|
textStyle = _ref3.textStyle,
|
|
114
101
|
children = _ref3.children,
|
|
115
|
-
className = _ref3.className
|
|
116
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref3, _excluded2);
|
|
102
|
+
className = _ref3.className;
|
|
117
103
|
var fontWeight = componentFontWeight(textStyle);
|
|
118
104
|
var fontStyle = componentFontStyle(textStyle);
|
|
119
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
105
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
120
106
|
className: className,
|
|
121
107
|
$color: color,
|
|
122
108
|
lineHeight: 24,
|
|
123
109
|
$fontSize: 20,
|
|
124
110
|
$fontWeight: fontWeight,
|
|
125
|
-
$fontStyle: fontStyle
|
|
126
|
-
}, rest), {}, {
|
|
111
|
+
$fontStyle: fontStyle,
|
|
127
112
|
children: children
|
|
128
|
-
})
|
|
113
|
+
});
|
|
129
114
|
};
|
|
130
115
|
exports.ComponentL = ComponentL;
|
|
131
116
|
ComponentL.propTypes = {
|
|
@@ -142,20 +127,18 @@ var ComponentM = function ComponentM(_ref4) {
|
|
|
142
127
|
var color = _ref4.color,
|
|
143
128
|
textStyle = _ref4.textStyle,
|
|
144
129
|
children = _ref4.children,
|
|
145
|
-
className = _ref4.className
|
|
146
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref4, _excluded3);
|
|
130
|
+
className = _ref4.className;
|
|
147
131
|
var fontWeight = componentFontWeight(textStyle);
|
|
148
132
|
var fontStyle = componentFontStyle(textStyle);
|
|
149
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
150
134
|
className: className,
|
|
151
135
|
$color: color,
|
|
152
136
|
lineHeight: 24,
|
|
153
137
|
$fontSize: 18,
|
|
154
138
|
$fontWeight: fontWeight,
|
|
155
|
-
$fontStyle: fontStyle
|
|
156
|
-
}, rest), {}, {
|
|
139
|
+
$fontStyle: fontStyle,
|
|
157
140
|
children: children
|
|
158
|
-
})
|
|
141
|
+
});
|
|
159
142
|
};
|
|
160
143
|
exports.ComponentM = ComponentM;
|
|
161
144
|
ComponentM.propTypes = {
|
|
@@ -172,20 +155,18 @@ var ComponentS = function ComponentS(_ref5) {
|
|
|
172
155
|
var color = _ref5.color,
|
|
173
156
|
textStyle = _ref5.textStyle,
|
|
174
157
|
children = _ref5.children,
|
|
175
|
-
className = _ref5.className
|
|
176
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref5, _excluded4);
|
|
158
|
+
className = _ref5.className;
|
|
177
159
|
var fontWeight = componentFontWeight(textStyle);
|
|
178
160
|
var fontStyle = componentFontStyle(textStyle);
|
|
179
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
161
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
180
162
|
className: className,
|
|
181
163
|
$color: color,
|
|
182
164
|
lineHeight: 20,
|
|
183
165
|
$fontSize: 16,
|
|
184
166
|
$fontWeight: fontWeight,
|
|
185
|
-
$fontStyle: fontStyle
|
|
186
|
-
}, rest), {}, {
|
|
167
|
+
$fontStyle: fontStyle,
|
|
187
168
|
children: children
|
|
188
|
-
})
|
|
169
|
+
});
|
|
189
170
|
};
|
|
190
171
|
exports.ComponentS = ComponentS;
|
|
191
172
|
ComponentS.propTypes = {
|
|
@@ -202,22 +183,20 @@ var ComponentXS = function ComponentXS(_ref6) {
|
|
|
202
183
|
var color = _ref6.color,
|
|
203
184
|
textStyle = _ref6.textStyle,
|
|
204
185
|
children = _ref6.children,
|
|
205
|
-
className = _ref6.className
|
|
206
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref6, _excluded5);
|
|
186
|
+
className = _ref6.className;
|
|
207
187
|
var fontWeight = componentFontWeight(textStyle);
|
|
208
188
|
var fontStyle = componentFontStyle(textStyle);
|
|
209
189
|
var textTransform = componentTextTransformation(textStyle);
|
|
210
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
190
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
211
191
|
className: className,
|
|
212
192
|
$color: color,
|
|
213
193
|
lineHeight: 16,
|
|
214
194
|
$fontSize: 14,
|
|
215
195
|
$fontWeight: fontWeight,
|
|
216
196
|
$fontStyle: fontStyle,
|
|
217
|
-
textTransform: textTransform
|
|
218
|
-
}, rest), {}, {
|
|
197
|
+
textTransform: textTransform,
|
|
219
198
|
children: children
|
|
220
|
-
})
|
|
199
|
+
});
|
|
221
200
|
};
|
|
222
201
|
exports.ComponentXS = ComponentXS;
|
|
223
202
|
ComponentXS.propTypes = {
|
|
@@ -234,22 +213,20 @@ var ComponentXXS = function ComponentXXS(_ref7) {
|
|
|
234
213
|
var color = _ref7.color,
|
|
235
214
|
textStyle = _ref7.textStyle,
|
|
236
215
|
children = _ref7.children,
|
|
237
|
-
className = _ref7.className
|
|
238
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref7, _excluded6);
|
|
216
|
+
className = _ref7.className;
|
|
239
217
|
var fontWeight = componentFontWeight(textStyle);
|
|
240
218
|
var fontStyle = componentFontStyle(textStyle);
|
|
241
219
|
var textTransform = componentTextTransformation(textStyle);
|
|
242
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase,
|
|
220
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
243
221
|
className: className,
|
|
244
222
|
$color: color,
|
|
245
223
|
lineHeight: 16,
|
|
246
224
|
$fontSize: 12,
|
|
247
225
|
$fontWeight: fontWeight,
|
|
248
226
|
$fontStyle: fontStyle,
|
|
249
|
-
textTransform: textTransform
|
|
250
|
-
}, rest), {}, {
|
|
227
|
+
textTransform: textTransform,
|
|
251
228
|
children: children
|
|
252
|
-
})
|
|
229
|
+
});
|
|
253
230
|
};
|
|
254
231
|
exports.ComponentXXS = ComponentXXS;
|
|
255
232
|
ComponentXXS.propTypes = {
|
|
@@ -263,8 +240,7 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
|
|
|
263
240
|
textStyle = _ref8.textStyle,
|
|
264
241
|
children = _ref8.children,
|
|
265
242
|
size = _ref8.size,
|
|
266
|
-
width = _ref8.width
|
|
267
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref8, _excluded7);
|
|
243
|
+
width = _ref8.width;
|
|
268
244
|
var fontsize = size;
|
|
269
245
|
if (!size) {
|
|
270
246
|
if (width == -1) {
|
|
@@ -279,36 +255,36 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
|
|
|
279
255
|
}
|
|
280
256
|
switch (fontsize) {
|
|
281
257
|
case _types.Size.XXSmall:
|
|
282
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS,
|
|
258
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS, {
|
|
283
259
|
color: color,
|
|
284
260
|
textStyle: textStyle,
|
|
285
261
|
children: children
|
|
286
|
-
}
|
|
262
|
+
});
|
|
287
263
|
case _types.Size.XSmall:
|
|
288
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS,
|
|
264
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS, {
|
|
289
265
|
color: color,
|
|
290
266
|
textStyle: textStyle,
|
|
291
267
|
children: children
|
|
292
|
-
}
|
|
268
|
+
});
|
|
293
269
|
case _types.Size.Small:
|
|
294
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS,
|
|
270
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS, {
|
|
295
271
|
color: color,
|
|
296
272
|
textStyle: textStyle,
|
|
297
273
|
children: children
|
|
298
|
-
}
|
|
274
|
+
});
|
|
299
275
|
case _types.Size.Medium:
|
|
300
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM,
|
|
276
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM, {
|
|
301
277
|
color: color,
|
|
302
278
|
textStyle: textStyle,
|
|
303
279
|
children: children
|
|
304
|
-
}
|
|
280
|
+
});
|
|
305
281
|
case _types.Size.Large:
|
|
306
282
|
default:
|
|
307
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL,
|
|
283
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL, {
|
|
308
284
|
color: color,
|
|
309
285
|
textStyle: textStyle,
|
|
310
286
|
children: children
|
|
311
|
-
}
|
|
287
|
+
});
|
|
312
288
|
}
|
|
313
289
|
};
|
|
314
290
|
exports.ComponentResponsive = ComponentResponsive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.cjs","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_","_types","_jsxRuntime","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","TypographyBase","styled","_ref","$color","lineHeight","$fontSize","$fontWeight","$fontStyle","textTransform","textDecorationLine","fontSize","fontWeight","fontStyle","color","COLORS","black","exports","ComponentTextStyle","componentFontWeight","textStyle","Bold","UppercaseBold","componentFontStyle","Italic","componentTextTransformation","ComponentStyling","css","_taggedTemplateLiteral2","props","concat","getColor","theme","ComponentXLStyling","ComponentXL","_ref2","children","className","rest","_objectWithoutProperties2","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref3","ComponentMStyling","ComponentM","_ref4","ComponentSStyling","ComponentS","_ref5","ComponentXSStyling","ComponentXS","_ref6","ComponentXXSStyling","ComponentXXS","_ref7","ComponentResponsive","_ref8","size","width","fontsize","Size","Medium","Small","Large","XXSmall","XSmall","Typography","QuoteTypography","NoteTypography","UpperCaseTypography","Note","p","Quote","UpperCase"],"sources":["../../src/styles/typography.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\r\nimport styled, {css} from 'styled-components';\r\nimport {COLORS} from '.';\r\nimport {Property} from 'csstype';\r\nimport {Size} from '../types';\r\n\r\ninterface ITypographyBase {\r\n $color?: string;\r\n lineHeight: number;\r\n $fontSize: number;\r\n $fontWeight: number;\r\n $fontStyle?: string;\r\n textTransform?: Property.TextTransform;\r\n textDecorationLine?: Property.TextDecorationLine;\r\n}\r\n\r\nexport const TypographyBase = styled('div')<ITypographyBase>(({\r\n $color,\r\n lineHeight,\r\n $fontSize,\r\n $fontWeight,\r\n $fontStyle,\r\n textTransform,\r\n textDecorationLine\r\n }) => ({\r\n fontSize: $fontSize,\r\n fontWeight: $fontWeight,\r\n lineHeight: lineHeight + 'px',\r\n textTransform: textTransform ? textTransform : 'none',\r\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\r\n fontStyle: $fontStyle ? $fontStyle : 'normal',\r\n color: $color ? $color : COLORS.black,\r\n}));\r\n\r\nenum ComponentTextStyle {\r\n Regular = 1,\r\n Bold,\r\n Italic,\r\n UppercaseBold,\r\n}\r\n\r\ntype ComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'className' | 'children'> & {\r\n color?: string;\r\n className?: string;\r\n textStyle?: ComponentTextStyle;\r\n children?: React.ReactNode;\r\n};\r\n\r\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\r\n let fontWeight = 400;\r\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\r\n fontWeight = 700;\r\n }\r\n return fontWeight;\r\n};\r\n\r\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\r\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\r\n return fontStyle;\r\n};\r\n\r\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\r\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\r\n return fontStyle;\r\n};\r\n\r\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\r\n return css`\r\n font-size: ${fontSize};\r\n font-weight: ${componentFontWeight(textStyle)};\r\n line-height: ${lineHeight};\r\n font-style: ${componentFontStyle(textStyle)};\r\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\r\n `;\r\n};\r\n\r\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\r\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\r\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\r\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\r\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\r\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\r\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\r\n color,\r\n textStyle,\r\n children,\r\n size,\r\n width, \r\n ...rest\r\n }) => {\r\n let fontsize = size;\r\n if (!size) {\r\n if (width == -1) {\r\n fontsize = Size.Medium;\r\n } else if (width < 768) {\r\n fontsize = Size.Small;\r\n } else if (width < 992) {\r\n fontsize = Size.Medium;\r\n } else {\r\n fontsize = Size.Large;\r\n }\r\n }\r\n switch (fontsize) {\r\n case Size.XXSmall:\r\n return <ComponentXXS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.XSmall:\r\n return <ComponentXS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Small:\r\n return <ComponentS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Medium:\r\n return <ComponentM color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Large:\r\n default:\r\n return <ComponentL color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n }\r\n};\r\n\r\nexport const Typography = css`\r\n html {\r\n font-size: 100%;\r\n }\r\n\r\n @media (min-width: 48rem) {\r\n html {\r\n font-size: 112.5%;\r\n }\r\n }\r\n\r\n @media (min-width: 80rem) {\r\n html {\r\n font-size: 125%;\r\n }\r\n }\r\n\r\n h1, h2, h3, h4, h5, h6 {\r\n font-weight: 700;\r\n line-height: 120%;\r\n margin: 0;\r\n }\r\n\r\n h1 {\r\n font-size: 3rem;\r\n }\r\n\r\n h2 {\r\n font-size: 2.5rem;\r\n }\r\n\r\n h3 {\r\n font-size: 2rem;\r\n }\r\n\r\n h4 {\r\n font-size: 1.75rem;\r\n }\r\n\r\n h5 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n h6 {\r\n font-size: 1.25rem;\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n line-height: 150%;\r\n margin: 0 0 0.5rem;\r\n }\r\n\r\n p:last-of-type {\r\n margin-bottom: 0;\r\n }\r\n\r\n\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 34rem;\r\n }\r\n\r\n :lang(ja-jp) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(ko-kr) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(zh-CN) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n`;\r\n\r\nexport const QuoteTypography = css`\r\n font-size: 1.5rem;\r\n line-height: 150%;\r\n margin-bottom: 0.75rem;\r\n`;\r\n\r\nexport const NoteTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n margin-bottom: 0.375rem;\r\n`;\r\n\r\nexport const UpperCaseTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n font-weight: 700;\r\n text-transform: uppercase;\r\n`;\r\n\r\nexport const Note = styled.p`\r\n ${NoteTypography}\r\n`;\r\n\r\nexport const Quote = styled.p`\r\n ${QuoteTypography}\r\n`;\r\n\r\nexport const UpperCase = styled.p`\r\n ${UpperCaseTypography}\r\n`;\r\n\r\nexport {\r\n ComponentTextStyle,\r\n ComponentXL,\r\n ComponentL,\r\n ComponentM,\r\n ComponentS,\r\n ComponentXS,\r\n ComponentXXS,\r\n ComponentResponsive\r\n};\r\nexport {\r\n ComponentXLStyling,\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oreList":[]}
|
|
1
|
+
{"version":3,"file":"typography.cjs","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_","_types","_jsxRuntime","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TypographyBase","styled","_ref","$color","lineHeight","$fontSize","$fontWeight","$fontStyle","textTransform","textDecorationLine","fontSize","fontWeight","fontStyle","color","COLORS","black","exports","ComponentTextStyle","componentFontWeight","textStyle","Bold","UppercaseBold","componentFontStyle","Italic","componentTextTransformation","ComponentStyling","css","_taggedTemplateLiteral2","props","concat","getColor","theme","ComponentXLStyling","ComponentXL","_ref2","children","className","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref3","ComponentMStyling","ComponentM","_ref4","ComponentSStyling","ComponentS","_ref5","ComponentXSStyling","ComponentXS","_ref6","ComponentXXSStyling","ComponentXXS","_ref7","ComponentResponsive","_ref8","size","width","fontsize","Size","Medium","Small","Large","XXSmall","XSmall","Typography","QuoteTypography","NoteTypography","UpperCaseTypography","Note","p","Quote","UpperCase"],"sources":["../../src/styles/typography.tsx"],"sourcesContent":["import React from 'react';\r\nimport styled, {css} from 'styled-components';\r\nimport {COLORS} from '.';\r\nimport {Property} from 'csstype';\r\nimport {Size} from '../types';\r\n\r\ninterface ITypographyBase {\r\n $color?: string;\r\n lineHeight: number;\r\n $fontSize: number;\r\n $fontWeight: number;\r\n $fontStyle?: string;\r\n textTransform?: Property.TextTransform;\r\n textDecorationLine?: Property.TextDecorationLine;\r\n}\r\n\r\nexport const TypographyBase = styled('div')<ITypographyBase>(({\r\n $color,\r\n lineHeight,\r\n $fontSize,\r\n $fontWeight,\r\n $fontStyle,\r\n textTransform,\r\n textDecorationLine\r\n }) => ({\r\n fontSize: $fontSize,\r\n fontWeight: $fontWeight,\r\n lineHeight: lineHeight + 'px',\r\n textTransform: textTransform ? textTransform : 'none',\r\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\r\n fontStyle: $fontStyle ? $fontStyle : 'normal',\r\n color: $color ? $color : COLORS.black,\r\n}));\r\n\r\nenum ComponentTextStyle {\r\n Regular = 1,\r\n Bold,\r\n Italic,\r\n UppercaseBold,\r\n}\r\n\r\ntype ComponentProps = {\r\n color?: string;\r\n className?: string;\r\n textStyle?: ComponentTextStyle;\r\n children?: React.ReactNode;\r\n};\r\n\r\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\r\n let fontWeight = 400;\r\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\r\n fontWeight = 700;\r\n }\r\n return fontWeight;\r\n};\r\n\r\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\r\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\r\n return fontStyle;\r\n};\r\n\r\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\r\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\r\n return fontStyle;\r\n};\r\n\r\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\r\n return css`\r\n font-size: ${fontSize};\r\n font-weight: ${componentFontWeight(textStyle)};\r\n line-height: ${lineHeight};\r\n font-style: ${componentFontStyle(textStyle)};\r\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\r\n `;\r\n};\r\n\r\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\r\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\r\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\r\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\r\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\r\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\r\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\r\n color,\r\n textStyle,\r\n children,\r\n size,\r\n width\r\n }) => {\r\n let fontsize = size;\r\n if (!size) {\r\n if (width == -1) {\r\n fontsize = Size.Medium;\r\n } else if (width < 768) {\r\n fontsize = Size.Small;\r\n } else if (width < 992) {\r\n fontsize = Size.Medium;\r\n } else {\r\n fontsize = Size.Large;\r\n }\r\n }\r\n switch (fontsize) {\r\n case Size.XXSmall:\r\n return <ComponentXXS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.XSmall:\r\n return <ComponentXS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Small:\r\n return <ComponentS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Medium:\r\n return <ComponentM color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Large:\r\n default:\r\n return <ComponentL color={color} textStyle={textStyle} children={children}/>;\r\n }\r\n};\r\n\r\nexport const Typography = css`\r\n html {\r\n font-size: 100%;\r\n }\r\n\r\n @media (min-width: 48rem) {\r\n html {\r\n font-size: 112.5%;\r\n }\r\n }\r\n\r\n @media (min-width: 80rem) {\r\n html {\r\n font-size: 125%;\r\n }\r\n }\r\n\r\n h1, h2, h3, h4, h5, h6 {\r\n font-weight: 700;\r\n line-height: 120%;\r\n margin: 0;\r\n }\r\n\r\n h1 {\r\n font-size: 3rem;\r\n }\r\n\r\n h2 {\r\n font-size: 2.5rem;\r\n }\r\n\r\n h3 {\r\n font-size: 2rem;\r\n }\r\n\r\n h4 {\r\n font-size: 1.75rem;\r\n }\r\n\r\n h5 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n h6 {\r\n font-size: 1.25rem;\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n line-height: 150%;\r\n margin: 0 0 0.5rem;\r\n }\r\n\r\n p:last-of-type {\r\n margin-bottom: 0;\r\n }\r\n\r\n\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 34rem;\r\n }\r\n\r\n :lang(ja-jp) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(ko-kr) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(zh-CN) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n`;\r\n\r\nexport const QuoteTypography = css`\r\n font-size: 1.5rem;\r\n line-height: 150%;\r\n margin-bottom: 0.75rem;\r\n`;\r\n\r\nexport const NoteTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n margin-bottom: 0.375rem;\r\n`;\r\n\r\nexport const UpperCaseTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n font-weight: 700;\r\n text-transform: uppercase;\r\n`;\r\n\r\nexport const Note = styled.p`\r\n ${NoteTypography}\r\n`;\r\n\r\nexport const Quote = styled.p`\r\n ${QuoteTypography}\r\n`;\r\n\r\nexport const UpperCase = styled.p`\r\n ${UpperCaseTypography}\r\n`;\r\n\r\nexport {\r\n ComponentTextStyle,\r\n ComponentXL,\r\n ComponentL,\r\n ComponentM,\r\n ComponentS,\r\n ComponentXS,\r\n ComponentXXS,\r\n ComponentResponsive\r\n};\r\nexport {\r\n ComponentXLStyling,\r\n ComponentLStyling,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentXSStyling,\r\n ComponentXXSStyling\r\n};\r\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAA8B,IAAAK,WAAA,GAAAL,OAAA;AAAA,IAAAM,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAA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,uBAAA,+FAIhC;AAACX,OAAA,CAAAuD,cAAA,GAAAA,cAAA;AAEK,IAAMC,mBAAmB,OAAG9C,qBAAG,EAAAlD,gBAAA,KAAAA,gBAAA,OAAAmD,uBAAA,sHAKrC;AAACX,OAAA,CAAAwD,mBAAA,GAAAA,mBAAA;AAEK,IAAMC,IAAI,GAAGxE,4BAAM,CAACyE,CAAC,CAAAjG,gBAAA,KAAAA,gBAAA,OAAAkD,uBAAA,+BACxB4C,cAAc,CACjB;AAACvD,OAAA,CAAAyD,IAAA,GAAAA,IAAA;AAEK,IAAME,KAAK,GAAG1E,4BAAM,CAACyE,CAAC,CAAAhG,gBAAA,KAAAA,gBAAA,OAAAiD,uBAAA,+BACzB2C,eAAe,CAClB;AAACtD,OAAA,CAAA2D,KAAA,GAAAA,KAAA;AAEK,IAAMC,SAAS,GAAG3E,4BAAM,CAACyE,CAAC,CAAA/F,gBAAA,KAAAA,gBAAA,OAAAgD,uBAAA,+BAC7B6C,mBAAmB,CACtB;AAACxD,OAAA,CAAA4D,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -17,7 +17,7 @@ declare enum ComponentTextStyle {
|
|
|
17
17
|
Italic = 3,
|
|
18
18
|
UppercaseBold = 4
|
|
19
19
|
}
|
|
20
|
-
type ComponentProps =
|
|
20
|
+
type ComponentProps = {
|
|
21
21
|
color?: string;
|
|
22
22
|
className?: string;
|
|
23
23
|
textStyle?: ComponentTextStyle;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
2
|
import _pt from "prop-types";
|
|
5
|
-
var _excluded = ["color", "textStyle", "children", "className"],
|
|
6
|
-
_excluded2 = ["color", "textStyle", "children", "className"],
|
|
7
|
-
_excluded3 = ["color", "textStyle", "children", "className"],
|
|
8
|
-
_excluded4 = ["color", "textStyle", "children", "className"],
|
|
9
|
-
_excluded5 = ["color", "textStyle", "children", "className"],
|
|
10
|
-
_excluded6 = ["color", "textStyle", "children", "className"],
|
|
11
|
-
_excluded7 = ["color", "textStyle", "children", "size", "width"];
|
|
12
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
13
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
4
|
import React from 'react';
|
|
16
5
|
import styled, { css } from 'styled-components';
|
|
17
6
|
import { COLORS } from '.';
|
|
@@ -69,20 +58,18 @@ var ComponentXL = function ComponentXL(_ref2) {
|
|
|
69
58
|
var color = _ref2.color,
|
|
70
59
|
textStyle = _ref2.textStyle,
|
|
71
60
|
children = _ref2.children,
|
|
72
|
-
className = _ref2.className
|
|
73
|
-
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
61
|
+
className = _ref2.className;
|
|
74
62
|
var fontWeight = componentFontWeight(textStyle);
|
|
75
63
|
var fontStyle = componentFontStyle(textStyle);
|
|
76
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
64
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
77
65
|
className: className,
|
|
78
66
|
$color: color,
|
|
79
67
|
lineHeight: 28,
|
|
80
68
|
$fontSize: 24,
|
|
81
69
|
$fontWeight: fontWeight,
|
|
82
|
-
$fontStyle: fontStyle
|
|
83
|
-
}, rest), {}, {
|
|
70
|
+
$fontStyle: fontStyle,
|
|
84
71
|
children: children
|
|
85
|
-
})
|
|
72
|
+
});
|
|
86
73
|
};
|
|
87
74
|
ComponentXL.propTypes = {
|
|
88
75
|
color: _pt.string,
|
|
@@ -97,20 +84,18 @@ var ComponentL = function ComponentL(_ref3) {
|
|
|
97
84
|
var color = _ref3.color,
|
|
98
85
|
textStyle = _ref3.textStyle,
|
|
99
86
|
children = _ref3.children,
|
|
100
|
-
className = _ref3.className
|
|
101
|
-
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
87
|
+
className = _ref3.className;
|
|
102
88
|
var fontWeight = componentFontWeight(textStyle);
|
|
103
89
|
var fontStyle = componentFontStyle(textStyle);
|
|
104
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
90
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
105
91
|
className: className,
|
|
106
92
|
$color: color,
|
|
107
93
|
lineHeight: 24,
|
|
108
94
|
$fontSize: 20,
|
|
109
95
|
$fontWeight: fontWeight,
|
|
110
|
-
$fontStyle: fontStyle
|
|
111
|
-
}, rest), {}, {
|
|
96
|
+
$fontStyle: fontStyle,
|
|
112
97
|
children: children
|
|
113
|
-
})
|
|
98
|
+
});
|
|
114
99
|
};
|
|
115
100
|
ComponentL.propTypes = {
|
|
116
101
|
color: _pt.string,
|
|
@@ -125,20 +110,18 @@ var ComponentM = function ComponentM(_ref4) {
|
|
|
125
110
|
var color = _ref4.color,
|
|
126
111
|
textStyle = _ref4.textStyle,
|
|
127
112
|
children = _ref4.children,
|
|
128
|
-
className = _ref4.className
|
|
129
|
-
rest = _objectWithoutProperties(_ref4, _excluded3);
|
|
113
|
+
className = _ref4.className;
|
|
130
114
|
var fontWeight = componentFontWeight(textStyle);
|
|
131
115
|
var fontStyle = componentFontStyle(textStyle);
|
|
132
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
116
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
133
117
|
className: className,
|
|
134
118
|
$color: color,
|
|
135
119
|
lineHeight: 24,
|
|
136
120
|
$fontSize: 18,
|
|
137
121
|
$fontWeight: fontWeight,
|
|
138
|
-
$fontStyle: fontStyle
|
|
139
|
-
}, rest), {}, {
|
|
122
|
+
$fontStyle: fontStyle,
|
|
140
123
|
children: children
|
|
141
|
-
})
|
|
124
|
+
});
|
|
142
125
|
};
|
|
143
126
|
ComponentM.propTypes = {
|
|
144
127
|
color: _pt.string,
|
|
@@ -153,20 +136,18 @@ var ComponentS = function ComponentS(_ref5) {
|
|
|
153
136
|
var color = _ref5.color,
|
|
154
137
|
textStyle = _ref5.textStyle,
|
|
155
138
|
children = _ref5.children,
|
|
156
|
-
className = _ref5.className
|
|
157
|
-
rest = _objectWithoutProperties(_ref5, _excluded4);
|
|
139
|
+
className = _ref5.className;
|
|
158
140
|
var fontWeight = componentFontWeight(textStyle);
|
|
159
141
|
var fontStyle = componentFontStyle(textStyle);
|
|
160
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
142
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
161
143
|
className: className,
|
|
162
144
|
$color: color,
|
|
163
145
|
lineHeight: 20,
|
|
164
146
|
$fontSize: 16,
|
|
165
147
|
$fontWeight: fontWeight,
|
|
166
|
-
$fontStyle: fontStyle
|
|
167
|
-
}, rest), {}, {
|
|
148
|
+
$fontStyle: fontStyle,
|
|
168
149
|
children: children
|
|
169
|
-
})
|
|
150
|
+
});
|
|
170
151
|
};
|
|
171
152
|
ComponentS.propTypes = {
|
|
172
153
|
color: _pt.string,
|
|
@@ -181,22 +162,20 @@ var ComponentXS = function ComponentXS(_ref6) {
|
|
|
181
162
|
var color = _ref6.color,
|
|
182
163
|
textStyle = _ref6.textStyle,
|
|
183
164
|
children = _ref6.children,
|
|
184
|
-
className = _ref6.className
|
|
185
|
-
rest = _objectWithoutProperties(_ref6, _excluded5);
|
|
165
|
+
className = _ref6.className;
|
|
186
166
|
var fontWeight = componentFontWeight(textStyle);
|
|
187
167
|
var fontStyle = componentFontStyle(textStyle);
|
|
188
168
|
var textTransform = componentTextTransformation(textStyle);
|
|
189
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
169
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
190
170
|
className: className,
|
|
191
171
|
$color: color,
|
|
192
172
|
lineHeight: 16,
|
|
193
173
|
$fontSize: 14,
|
|
194
174
|
$fontWeight: fontWeight,
|
|
195
175
|
$fontStyle: fontStyle,
|
|
196
|
-
textTransform: textTransform
|
|
197
|
-
}, rest), {}, {
|
|
176
|
+
textTransform: textTransform,
|
|
198
177
|
children: children
|
|
199
|
-
})
|
|
178
|
+
});
|
|
200
179
|
};
|
|
201
180
|
ComponentXS.propTypes = {
|
|
202
181
|
color: _pt.string,
|
|
@@ -211,22 +190,20 @@ var ComponentXXS = function ComponentXXS(_ref7) {
|
|
|
211
190
|
var color = _ref7.color,
|
|
212
191
|
textStyle = _ref7.textStyle,
|
|
213
192
|
children = _ref7.children,
|
|
214
|
-
className = _ref7.className
|
|
215
|
-
rest = _objectWithoutProperties(_ref7, _excluded6);
|
|
193
|
+
className = _ref7.className;
|
|
216
194
|
var fontWeight = componentFontWeight(textStyle);
|
|
217
195
|
var fontStyle = componentFontStyle(textStyle);
|
|
218
196
|
var textTransform = componentTextTransformation(textStyle);
|
|
219
|
-
return /*#__PURE__*/_jsx(TypographyBase,
|
|
197
|
+
return /*#__PURE__*/_jsx(TypographyBase, {
|
|
220
198
|
className: className,
|
|
221
199
|
$color: color,
|
|
222
200
|
lineHeight: 16,
|
|
223
201
|
$fontSize: 12,
|
|
224
202
|
$fontWeight: fontWeight,
|
|
225
203
|
$fontStyle: fontStyle,
|
|
226
|
-
textTransform: textTransform
|
|
227
|
-
}, rest), {}, {
|
|
204
|
+
textTransform: textTransform,
|
|
228
205
|
children: children
|
|
229
|
-
})
|
|
206
|
+
});
|
|
230
207
|
};
|
|
231
208
|
ComponentXXS.propTypes = {
|
|
232
209
|
color: _pt.string,
|
|
@@ -239,8 +216,7 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
|
|
|
239
216
|
textStyle = _ref8.textStyle,
|
|
240
217
|
children = _ref8.children,
|
|
241
218
|
size = _ref8.size,
|
|
242
|
-
width = _ref8.width
|
|
243
|
-
rest = _objectWithoutProperties(_ref8, _excluded7);
|
|
219
|
+
width = _ref8.width;
|
|
244
220
|
var fontsize = size;
|
|
245
221
|
if (!size) {
|
|
246
222
|
if (width == -1) {
|
|
@@ -255,36 +231,36 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
|
|
|
255
231
|
}
|
|
256
232
|
switch (fontsize) {
|
|
257
233
|
case Size.XXSmall:
|
|
258
|
-
return /*#__PURE__*/_jsx(ComponentXXS,
|
|
234
|
+
return /*#__PURE__*/_jsx(ComponentXXS, {
|
|
259
235
|
color: color,
|
|
260
236
|
textStyle: textStyle,
|
|
261
237
|
children: children
|
|
262
|
-
}
|
|
238
|
+
});
|
|
263
239
|
case Size.XSmall:
|
|
264
|
-
return /*#__PURE__*/_jsx(ComponentXS,
|
|
240
|
+
return /*#__PURE__*/_jsx(ComponentXS, {
|
|
265
241
|
color: color,
|
|
266
242
|
textStyle: textStyle,
|
|
267
243
|
children: children
|
|
268
|
-
}
|
|
244
|
+
});
|
|
269
245
|
case Size.Small:
|
|
270
|
-
return /*#__PURE__*/_jsx(ComponentS,
|
|
246
|
+
return /*#__PURE__*/_jsx(ComponentS, {
|
|
271
247
|
color: color,
|
|
272
248
|
textStyle: textStyle,
|
|
273
249
|
children: children
|
|
274
|
-
}
|
|
250
|
+
});
|
|
275
251
|
case Size.Medium:
|
|
276
|
-
return /*#__PURE__*/_jsx(ComponentM,
|
|
252
|
+
return /*#__PURE__*/_jsx(ComponentM, {
|
|
277
253
|
color: color,
|
|
278
254
|
textStyle: textStyle,
|
|
279
255
|
children: children
|
|
280
|
-
}
|
|
256
|
+
});
|
|
281
257
|
case Size.Large:
|
|
282
258
|
default:
|
|
283
|
-
return /*#__PURE__*/_jsx(ComponentL,
|
|
259
|
+
return /*#__PURE__*/_jsx(ComponentL, {
|
|
284
260
|
color: color,
|
|
285
261
|
textStyle: textStyle,
|
|
286
262
|
children: children
|
|
287
|
-
}
|
|
263
|
+
});
|
|
288
264
|
}
|
|
289
265
|
};
|
|
290
266
|
ComponentResponsive.propTypes = {
|