@jobber/components 2.86.0 → 2.86.2
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/CHANGELOG.md +16 -0
- package/dist/Autocomplete/Autocomplete.d.ts +47 -47
- package/dist/Autocomplete/Menu.d.ts +9 -9
- package/dist/Autocomplete/Option.d.ts +15 -15
- package/dist/Autocomplete/index.d.ts +2 -2
- package/dist/Autocomplete/index.js +215 -211
- package/dist/Avatar/Avatar.d.ts +37 -37
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +7 -74
- package/dist/Avatar/utilities.d.ts +1 -1
- package/dist/Avatar-cfd04e86.js +82 -0
- package/dist/Banner/Banner.d.ts +19 -19
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +67 -65
- package/dist/Button/Button.d.ts +64 -64
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +9 -53
- package/dist/Button-5b2f1636.js +60 -0
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +7 -7
- package/dist/ButtonDismiss/index.d.ts +1 -1
- package/dist/ButtonDismiss/index.js +10 -15
- package/dist/ButtonDismiss-4cde8f7c.js +15 -0
- package/dist/Card/Card.d.ts +31 -31
- package/dist/Card/CardClickable.d.ts +12 -12
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +7 -61
- package/dist/Card-368e01a3.js +68 -0
- package/dist/Checkbox/Checkbox.d.ts +52 -52
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/index.js +34 -32
- package/dist/Chips/Chip.d.ts +8 -8
- package/dist/Chips/ChipDismissible.d.ts +7 -7
- package/dist/Chips/ChipTypes.d.ts +59 -59
- package/dist/Chips/Chips.d.ts +2 -2
- package/dist/Chips/ChipsTypes.d.ts +82 -82
- package/dist/Chips/InternalChip.d.ts +2 -2
- package/dist/Chips/InternalChipAffix.d.ts +10 -10
- package/dist/Chips/InternalChipButton.d.ts +10 -10
- package/dist/Chips/InternalChipDismissible/InternalChipDismissible.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleInput.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +13 -13
- package/dist/Chips/InternalChipDismissible/hooks/index.d.ts +5 -5
- package/dist/Chips/InternalChipDismissible/hooks/useInView.d.ts +5 -5
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +15 -15
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +28 -28
- package/dist/Chips/InternalChipDismissible/hooks/useRepositionMenu.d.ts +16 -16
- package/dist/Chips/InternalChipDismissible/hooks/useScrollToActive.d.ts +2 -2
- package/dist/Chips/InternalChipDismissible/index.d.ts +1 -1
- package/dist/Chips/InternalChipMultiSelect.d.ts +4 -4
- package/dist/Chips/InternalChipSingleSelect.d.ts +4 -4
- package/dist/Chips/index.d.ts +3 -3
- package/dist/Chips/index.js +493 -491
- package/dist/Chips/utils/mdxUtils.d.ts +9 -9
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +62 -62
- package/dist/ConfirmationModal/index.d.ts +1 -1
- package/dist/ConfirmationModal/index.js +20 -109
- package/dist/ConfirmationModal-b7ef110f.js +103 -0
- package/dist/Content/Content.d.ts +13 -13
- package/dist/Content/index.d.ts +1 -1
- package/dist/Content/index.js +5 -19
- package/dist/Content-18de5fbb.js +26 -0
- package/dist/Countdown/Countdown.d.ts +31 -31
- package/dist/Countdown/computeTimeUnit.d.ts +3 -3
- package/dist/Countdown/index.d.ts +1 -1
- package/dist/Countdown/index.js +63 -61
- package/dist/DataDump/DataDump.d.ts +20 -20
- package/dist/DataDump/index.d.ts +1 -1
- package/dist/DataDump/index.js +18 -17
- package/dist/DatePicker/DatePicker.d.ts +50 -50
- package/dist/DatePicker/DatePickerActivator.d.ts +12 -12
- package/dist/DatePicker/DatePickerCustomHeader.d.ts +2 -2
- package/dist/DatePicker/index.d.ts +1 -1
- package/dist/DatePicker/index.js +13 -97
- package/dist/DatePicker/useFocusOnSelectedDate.d.ts +5 -5
- package/dist/DatePicker-ad6f8630.js +103 -0
- package/dist/DescriptionList/DescriptionList.d.ts +10 -10
- package/dist/DescriptionList/index.d.ts +1 -1
- package/dist/DescriptionList/index.js +16 -15
- package/dist/Disclosure/Disclosure.d.ts +20 -20
- package/dist/Disclosure/index.d.ts +1 -1
- package/dist/Disclosure/index.js +32 -31
- package/dist/Divider/Divider.d.ts +16 -16
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +19 -17
- package/dist/Drawer/Drawer.d.ts +13 -13
- package/dist/Drawer/DrawerGrid.d.ts +6 -6
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/Drawer/index.js +39 -37
- package/dist/Emphasis/Emphasis.d.ts +11 -11
- package/dist/Emphasis/index.d.ts +1 -1
- package/dist/Emphasis/index.js +7 -17
- package/dist/Emphasis-fd845639.js +21 -0
- package/dist/FeatureSwitch/FeatureSwitch.d.ts +51 -51
- package/dist/FeatureSwitch/index.d.ts +1 -1
- package/dist/FeatureSwitch/index.js +57 -55
- package/dist/Form/Form.d.ts +18 -18
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js +58 -57
- package/dist/FormField/FormField.d.ts +2 -2
- package/dist/FormField/FormFieldAffix.d.ts +13 -13
- package/dist/FormField/FormFieldDescription.d.ts +6 -6
- package/dist/FormField/FormFieldPostFix.d.ts +5 -5
- package/dist/FormField/FormFieldTypes.d.ts +160 -160
- package/dist/FormField/FormFieldWrapper.d.ts +9 -9
- package/dist/FormField/index.d.ts +2 -2
- package/dist/FormField/index.js +15 -208
- package/dist/FormField-a92c7bac.js +213 -0
- package/dist/FormatDate/FormatDate.d.ts +12 -12
- package/dist/FormatDate/index.d.ts +1 -1
- package/dist/FormatDate/index.js +24 -23
- package/dist/FormatEmail/FormatEmail.d.ts +8 -8
- package/dist/FormatEmail/index.d.ts +1 -1
- package/dist/FormatEmail/index.js +12 -10
- package/dist/FormatFile/FormatFile.d.ts +30 -30
- package/dist/FormatFile/FormatFileDeleteButton.d.ts +6 -6
- package/dist/FormatFile/InternalThumbnail.d.ts +9 -9
- package/dist/FormatFile/index.d.ts +1 -1
- package/dist/FormatFile/index.js +21 -112
- package/dist/FormatFile-5391d4cf.js +112 -0
- package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +11 -11
- package/dist/FormatRelativeDateTime/index.d.ts +1 -1
- package/dist/FormatRelativeDateTime/index.js +64 -63
- package/dist/FormatTime/FormatTime.d.ts +15 -15
- package/dist/FormatTime/index.d.ts +1 -1
- package/dist/FormatTime/index.js +28 -27
- package/dist/Gallery/Gallery.d.ts +2 -2
- package/dist/Gallery/GalleryTypes.d.ts +31 -31
- package/dist/Gallery/index.d.ts +1 -1
- package/dist/Gallery/index.js +82 -80
- package/dist/Heading/Heading.d.ts +14 -14
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +7 -53
- package/dist/Heading-56750113.js +57 -0
- package/dist/Icon/Icon.d.ts +22 -22
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Icon/index.js +4 -35
- package/dist/Icon-d5ad1a6d.js +41 -0
- package/dist/InlineLabel/InlineLabel.d.ts +17 -17
- package/dist/InlineLabel/index.d.ts +1 -1
- package/dist/InlineLabel/index.js +20 -18
- package/dist/InputAvatar/InputAvatar.d.ts +22 -22
- package/dist/InputAvatar/index.d.ts +1 -1
- package/dist/InputAvatar/index.js +57 -56
- package/dist/InputDate/InputDate.d.ts +19 -19
- package/dist/InputDate/index.d.ts +1 -1
- package/dist/InputDate/index.js +34 -33
- package/dist/InputEmail/InputEmail.d.ts +5 -5
- package/dist/InputEmail/index.d.ts +1 -1
- package/dist/InputEmail/index.js +29 -28
- package/dist/InputFile/InputFile.d.ts +121 -121
- package/dist/InputFile/index.d.ts +1 -1
- package/dist/InputFile/index.js +15 -168
- package/dist/InputFile-b5cf90c3.js +174 -0
- package/dist/InputGroup/InputGroup.d.ts +11 -11
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +24 -22
- package/dist/InputNumber/InputNumber.d.ts +11 -11
- package/dist/InputNumber/index.d.ts +1 -1
- package/dist/InputNumber/index.js +52 -51
- package/dist/InputPassword/InputPassword.d.ts +12 -12
- package/dist/InputPassword/index.d.ts +1 -1
- package/dist/InputPassword/index.js +28 -27
- package/dist/InputText/InputText.d.ts +29 -29
- package/dist/InputText/index.d.ts +1 -1
- package/dist/InputText/index.js +15 -95
- package/dist/InputText-cb3be15c.js +91 -0
- package/dist/InputTime/InputTime.d.ts +2 -2
- package/dist/InputTime/InputTimeProps.d.ts +18 -18
- package/dist/InputTime/InputTimeSafari.d.ts +2 -2
- package/dist/InputTime/civilTimeConversions.d.ts +3 -3
- package/dist/InputTime/index.d.ts +1 -1
- package/dist/InputTime/index.js +402 -257
- package/dist/InputValidation/InputValidation.d.ts +8 -8
- package/dist/InputValidation/index.d.ts +1 -1
- package/dist/InputValidation/index.js +8 -24
- package/dist/InputValidation-24d3621a.js +28 -0
- package/dist/LightBox/LightBox.d.ts +37 -37
- package/dist/LightBox/index.d.ts +1 -1
- package/dist/LightBox/index.js +6 -34
- package/dist/LightBox-b893b656.js +42 -0
- package/dist/List/List.d.ts +11 -11
- package/dist/List/ListItem.d.ts +54 -54
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +76 -74
- package/dist/Markdown/Markdown.d.ts +17 -17
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +12 -64
- package/dist/Markdown-69986c49.js +68 -0
- package/dist/Menu/Menu.d.ts +46 -46
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Menu/index.js +13 -128
- package/dist/Menu-6a392af6.js +134 -0
- package/dist/Modal/Modal.d.ts +22 -22
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +14 -127
- package/dist/Modal/useFocusTrap.d.ts +10 -10
- package/dist/Modal-aaaaf2df.js +132 -0
- package/dist/Page/Page.d.ts +59 -59
- package/dist/Page/index.d.ts +1 -1
- package/dist/Page/index.js +63 -61
- package/dist/Popover/Popover.d.ts +26 -26
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +49 -48
- package/dist/ProgressBar/ProgressBar.d.ts +18 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +5 -22
- package/dist/ProgressBar-e9a49129.js +29 -0
- package/dist/RadioGroup/RadioGroup.d.ts +27 -27
- package/dist/RadioGroup/RadioOption.d.ts +34 -34
- package/dist/RadioGroup/index.d.ts +2 -2
- package/dist/RadioGroup/index.js +38 -37
- package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +8 -8
- package/dist/RecurringSelect/RecurringSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +8 -8
- package/dist/RecurringSelect/components/MonthlySelect.d.ts +8 -8
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +8 -8
- package/dist/RecurringSelect/components/index.d.ts +4 -4
- package/dist/RecurringSelect/index.d.ts +2 -2
- package/dist/RecurringSelect/types.d.ts +65 -65
- package/dist/Select/Option.d.ts +17 -17
- package/dist/Select/Select.d.ts +10 -10
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +20 -19
- package/dist/Spinner/Spinner.d.ts +15 -15
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/index.js +5 -19
- package/dist/Spinner-18d3dee6.js +26 -0
- package/dist/StatusLabel/StatusLabel.d.ts +25 -25
- package/dist/StatusLabel/index.d.ts +1 -1
- package/dist/StatusLabel/index.js +21 -19
- package/dist/Switch/Switch.d.ts +14 -14
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +7 -53
- package/dist/Switch-d2bec677.js +60 -0
- package/dist/Table/Body.d.ts +6 -6
- package/dist/Table/Cells/Cell.d.ts +7 -7
- package/dist/Table/Cells/CellCurrency.d.ts +8 -8
- package/dist/Table/Cells/CellNumeric.d.ts +4 -4
- package/dist/Table/Footer.d.ts +6 -6
- package/dist/Table/Header.d.ts +6 -6
- package/dist/Table/Row.d.ts +6 -6
- package/dist/Table/Table.d.ts +6 -6
- package/dist/Table/index.d.ts +8 -8
- package/dist/Table/index.js +41 -39
- package/dist/Tabs/Tabs.d.ts +19 -19
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +69 -67
- package/dist/Text/Text.d.ts +9 -9
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +7 -29
- package/dist/Text-9bc093e9.js +32 -0
- package/dist/Toast/Toast.d.ts +17 -17
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +93 -93
- package/dist/Toast/showToast.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts +10 -10
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +11 -110
- package/dist/Tooltip/useTooltipPositioning.d.ts +18 -18
- package/dist/Tooltip-4396164d.js +116 -0
- package/dist/Typography/Typography.d.ts +38 -38
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.js +6 -57
- package/dist/Typography-7e542a72.js +64 -0
- package/dist/{chunk-17e02351.js → style-inject.es-dcee06b6.js} +0 -0
- package/dist/{chunk-b67af3cb.js → tslib.es6-5b50eb8e.js} +0 -0
- package/package.json +6 -8
- package/rollup.config.js +28 -3
package/dist/Typography/index.js
CHANGED
|
@@ -2,63 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var Typography = require('../Typography-7e542a72.js');
|
|
6
|
+
require('../tslib.es6-5b50eb8e.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('../style-inject.es-dcee06b6.js');
|
|
6
10
|
|
|
7
|
-
var __chunk_1 = require('../chunk-b67af3cb.js');
|
|
8
|
-
var React = require('react');
|
|
9
|
-
var React__default = _interopDefault(React);
|
|
10
|
-
var __chunk_2 = require('../chunk-17e02351.js');
|
|
11
|
-
var classnames = _interopDefault(require('classnames'));
|
|
12
11
|
|
|
13
|
-
var css = ":root {\n --typography--fontFamily-normal: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n --typography--fontFamily-display: \"Poppins\", Helvetica, Arial, sans-serif;\n\n --typography--fontSize-extravagant: calc(var(--base-unit) * 3); /* 48 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 2.25); /* 36 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.5); /* 24 */\n --typography--fontSize-larger: calc(var(--base-unit) * 1.25); /* 20 */\n --typography--fontSize-large: calc(var(--base-unit) * 1.125); /* 18 */\n --typography--fontSize-base: calc(var(--base-unit) * 1); /* 16 */\n --typography--fontSize-small: calc(var(--base-unit) * 0.875); /* 14 */\n --typography--fontSize-smaller: calc(var(--base-unit) * 0.75); /* 12 */\n\n --typography--lineHeight-large: 1.34;\n --typography--lineHeight-base: 1.25;\n --typography--lineHeight-tight: 1.2;\n --typography--lineHeight-tighter: 1.143;\n --typography--lineHeight-tightest: 1.12;\n --typography--lineHeight-miniscule: 1.08;\n}\n\n@media (max-width: 639px) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n@media (max-width: 639px) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n@media (--handhelds) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n._3JZjimh4dusy34C2IGQzQR {\n margin: 0;\n padding: 0;\n font-family: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n font-family: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n font-family: var(--typography--fontFamily-normal);\n /* Wrap really long words or URL's */\n word-wrap: break-word;\n word-wrap: break-word;\n}\n";
|
|
14
|
-
var styles = {"base":"_3JZjimh4dusy34C2IGQzQR"};
|
|
15
|
-
__chunk_2.styleInject(css);
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
var fontSizes = {"extravagant":"zvmTM4St0_C8TPhD_O9ug","jumbo":"Ra_cuCnMc70RK2H_4ChBn","largest":"dOMvSoEm0D0x_f7zK_PBP","larger":"_2fQLkoSAbYzgqfs8bUALb2","large":"_2zgB2QyVZKtvAxXrvqGZGR","base":"_101f4LA9L04rx4wc82bzVJ","small":"Apy0Y618g1UWAkSvq0riG","smaller":"_1MhBMulQtq31Ys4q9xtSNg"};
|
|
19
|
-
__chunk_2.styleInject(css$1);
|
|
20
|
-
|
|
21
|
-
var css$2 = "._15KVrV8OEixNgFqxYBEwRF {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 400;\n}\n\n._9NJa1tKodJk5XW-pP-BDY {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 700;\n}\n\n._2NjTYoUg2rwawsmn41FWY8 {\n font-family: var(--typography--fontFamily-display);\n font-weight: 800;\n}\n\n.uys-zl4qz0plQt9LRshAd {\n font-family: var(--typography--fontFamily-display);\n font-weight: 900;\n}\n";
|
|
22
|
-
var fontWeights = {"regular":"_15KVrV8OEixNgFqxYBEwRF","bold":"_9NJa1tKodJk5XW-pP-BDY","extraBold":"_2NjTYoUg2rwawsmn41FWY8","black":"uys-zl4qz0plQt9LRshAd"};
|
|
23
|
-
__chunk_2.styleInject(css$2);
|
|
24
|
-
|
|
25
|
-
var css$3 = "._1QxZQjhSzY_Sq3KYUwHvCM {\n text-transform: uppercase;\n}\n\n._76SoHLzwZVKSPV8Jbxptp {\n text-transform: lowercase;\n}\n\n._1v1wGIm3g_nN5Y3jA2EyuK {\n text-transform: capitalize;\n}\n";
|
|
26
|
-
var textCases = {"uppercase":"_1QxZQjhSzY_Sq3KYUwHvCM","lowercase":"_76SoHLzwZVKSPV8Jbxptp","capitalize":"_1v1wGIm3g_nN5Y3jA2EyuK"};
|
|
27
|
-
__chunk_2.styleInject(css$3);
|
|
28
|
-
|
|
29
|
-
var css$4 = "._3ll_IHWYP5CXtvLbd7M3g4 {\n color: var(--color-blue);\n}\n\n._2aLfviMTslnYDFQydSPFyG {\n color: var(--color-grey);\n}\n\n._2yHCFsRY1Y6nrwHGA2BGXR {\n color: var(--color-greyBlue--dark);\n}\n\n.khfPfWiE9EnXFTUREGKev {\n color: var(--color-greyBlue);\n}\n\n._1IbTq3B5pV7-zQrdDXJhDB {\n color: var(--color-green);\n}\n\n.LH8KHdwfbdIWS8Ia4LNzJ {\n color: var(--color-red);\n}\n\n._2qLzIirDpz70j0ZkQstH4P {\n color: var(--color-yellow);\n}\n\n._2WeCxN6EUixXRd6wiNkurb {\n color: var(--color-yellow--dark);\n}\n\n._3KVpUUVNa7DxPCMTIqHmkr {\n color: var(--color-lightBlue);\n}\n\n.K60KIG2FVHz496YyImWfR {\n color: var(--color-white);\n}\n\n._39omMvRy0QF8yo96lzBKvU {\n color: var(--color-heading);\n}\n\n._1lCJhtn-QuZ-H-7N8CtLPg {\n color: var(--color-text);\n}\n\n.iZQf_6Bu4s-etKAEvUMSW {\n color: var(--color-text--secondary);\n}\n\n._22rt2p8mwIe87C2W5fAboT {\n color: var(--color-critical);\n}\n\n._1ZKA-7F_F3OjO2zAlnN0ey {\n color: var(--color-warning--onSurface);\n}\n\n.fjWW9OckqU4Ei4hdPBRqQ {\n color: var(--color-informative--onSurface);\n}\n\n._2oR_lya19rHAoUVAO3xgJ3 {\n color: var(--color-success--onSurface);\n}\n\n._2TOA8Z2cHlX5BRCA54HkZp {\n color: var(--color-disabled);\n}\n";
|
|
30
|
-
var textColors = {"blue":"_3ll_IHWYP5CXtvLbd7M3g4","grey":"_2aLfviMTslnYDFQydSPFyG","greyBlueDark":"_2yHCFsRY1Y6nrwHGA2BGXR","greyBlue":"khfPfWiE9EnXFTUREGKev","green":"_1IbTq3B5pV7-zQrdDXJhDB","red":"LH8KHdwfbdIWS8Ia4LNzJ","yellow":"_2qLzIirDpz70j0ZkQstH4P","yellowDark":"_2WeCxN6EUixXRd6wiNkurb","lightBlue":"_3KVpUUVNa7DxPCMTIqHmkr","white":"K60KIG2FVHz496YyImWfR","heading":"_39omMvRy0QF8yo96lzBKvU","text":"_1lCJhtn-QuZ-H-7N8CtLPg","textSecondary":"iZQf_6Bu4s-etKAEvUMSW","critical":"_22rt2p8mwIe87C2W5fAboT","warning":"_1ZKA-7F_F3OjO2zAlnN0ey","informative":"fjWW9OckqU4Ei4hdPBRqQ","success":"_2oR_lya19rHAoUVAO3xgJ3","disabled":"_2TOA8Z2cHlX5BRCA54HkZp"};
|
|
31
|
-
__chunk_2.styleInject(css$4);
|
|
32
|
-
|
|
33
|
-
var css$5 = "._2v32EeDVd2655RBXZ9dq3n {\n font-style: italic;\n}\n\n._1qwLpB6asp267SE_SsLR5r {\n margin-left: calc(-1 * var(--space-smaller));\n padding: 0 var(--space-smaller);\n font-family: var(--typography--fontFamily-display);\n font-weight: inherit;\n background-image: linear-gradient(\n to left,\n var(--color-brand--highlight),\n var(--color-brand--highlight)\n );\n background-position: left 75%;\n background-repeat: repeat-x;\n background-size: 100% 52%;\n}\n";
|
|
34
|
-
var emphasis = {"italic":"_2v32EeDVd2655RBXZ9dq3n","highlight":"_1qwLpB6asp267SE_SsLR5r"};
|
|
35
|
-
__chunk_2.styleInject(css$5);
|
|
36
|
-
|
|
37
|
-
var css$6 = "._3RPdE_X9LPA4hEoBHeEyKm {\n display: -webkit-box !important;\n overflow: hidden;\n}\n";
|
|
38
|
-
var truncate = {"textTruncate":"_3RPdE_X9LPA4hEoBHeEyKm"};
|
|
39
|
-
__chunk_2.styleInject(css$6);
|
|
40
|
-
|
|
41
|
-
var css$7 = "[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(rtl) {\n text-align: right;\n}\n\n[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(rtl) {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ {\n text-align: start;\n}\n\n._2RxG5sGeRD2E9YteNJJAgZ {\n text-align: center;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(ltr) {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(rtl) {\n text-align: left;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(ltr) {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(rtl) {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js- {\n text-align: end;\n}\n\n[dir=\"ltr\"] :export {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-left: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n:export:dir(ltr) {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-left: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n[dir=\"rtl\"] :export {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-right: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n:export:dir(rtl) {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-right: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n[dir=\"ltr\"] :export {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-right: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n:export:dir(ltr) {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-right: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n[dir=\"rtl\"] :export {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-left: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n:export:dir(rtl) {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-left: _1VVOr2EolJ64dLH84I4Js-;\n}\n";
|
|
42
|
-
var alignment = {"start":"Rcc5J7aWibqntjpsFOcCJ","center":"_2RxG5sGeRD2E9YteNJJAgZ","end":"_1VVOr2EolJ64dLH84I4Js-"};
|
|
43
|
-
__chunk_2.styleInject(css$7);
|
|
44
|
-
|
|
45
|
-
var css$8 = ".IO8ujZ7qHogIbFAEazAGH {\n font-family: var(--typography--fontFamily-normal);\n}\n\n._2VhNxoLIw82qbVgNH2yiv7 {\n font-family: var(--typography--fontFamily-display);\n}\n";
|
|
46
|
-
var fontFamilies = {"base":"IO8ujZ7qHogIbFAEazAGH","display":"_2VhNxoLIw82qbVgNH2yiv7"};
|
|
47
|
-
__chunk_2.styleInject(css$8);
|
|
48
|
-
|
|
49
|
-
function Typography(_a) {
|
|
50
|
-
var _b;
|
|
51
|
-
var id = _a.id, children = _a.children, _c = _a.element, Tag = _c === void 0 ? "p" : _c, size = _a.size, align = _a.align, _d = _a.fontWeight, fontWeight = _d === void 0 ? "regular" : _d, textCase = _a.textCase, textColor = _a.textColor, emphasisType = _a.emphasisType, numberOfLines = _a.numberOfLines, fontFamily = _a.fontFamily;
|
|
52
|
-
var shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
53
|
-
var className = classnames(styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, __chunk_1.__assign({}, (align && (_b = {}, _b[alignment[align]] = align !== "start", _b))));
|
|
54
|
-
var truncateLines;
|
|
55
|
-
if (shouldTruncateText) {
|
|
56
|
-
truncateLines = {
|
|
57
|
-
WebkitLineClamp: numberOfLines,
|
|
58
|
-
WebkitBoxOrient: "vertical",
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return (React__default.createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
exports.Typography = Typography;
|
|
13
|
+
exports.Typography = Typography.Typography;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
12
|
+
|
|
13
|
+
var css$8 = ":root {\n --typography--fontFamily-normal: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n --typography--fontFamily-display: \"Poppins\", Helvetica, Arial, sans-serif;\n\n --typography--fontSize-extravagant: calc(var(--base-unit) * 3); /* 48 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 2.25); /* 36 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.5); /* 24 */\n --typography--fontSize-larger: calc(var(--base-unit) * 1.25); /* 20 */\n --typography--fontSize-large: calc(var(--base-unit) * 1.125); /* 18 */\n --typography--fontSize-base: calc(var(--base-unit) * 1); /* 16 */\n --typography--fontSize-small: calc(var(--base-unit) * 0.875); /* 14 */\n --typography--fontSize-smaller: calc(var(--base-unit) * 0.75); /* 12 */\n\n --typography--lineHeight-large: 1.34;\n --typography--lineHeight-base: 1.25;\n --typography--lineHeight-tight: 1.2;\n --typography--lineHeight-tighter: 1.143;\n --typography--lineHeight-tightest: 1.12;\n --typography--lineHeight-miniscule: 1.08;\n}\n\n@media (max-width: 639px) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n@media (max-width: 639px) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n@media (--handhelds) {\n :root {\n --typography--fontSize-extravagant: calc(var(--base-unit) * 2.5); /* 40 */\n --typography--fontSize-jumbo: calc(var(--base-unit) * 1.75); /* 28 */\n --typography--fontSize-largest: calc(var(--base-unit) * 1.375); /* 22 */\n }\n}\n\n._3JZjimh4dusy34C2IGQzQR {\n margin: 0;\n padding: 0;\n font-family: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n font-family: \"Source Sans Pro\", Helvetica, Arial,\n sans-serif;\n font-family: var(--typography--fontFamily-normal);\n /* Wrap really long words or URL's */\n word-wrap: break-word;\n word-wrap: break-word;\n}\n";
|
|
14
|
+
var styles = {"base":"_3JZjimh4dusy34C2IGQzQR"};
|
|
15
|
+
styleInject_es.styleInject(css$8);
|
|
16
|
+
|
|
17
|
+
var css$7 = ".zvmTM4St0_C8TPhD_O9ug {\n font-size: var(--typography--fontSize-extravagant);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n.Ra_cuCnMc70RK2H_4ChBn {\n font-size: var(--typography--fontSize-jumbo);\n line-height: var(--typography--lineHeight-miniscule);\n}\n\n.dOMvSoEm0D0x_f7zK_PBP {\n font-size: var(--typography--fontSize-largest);\n line-height: var(--typography--lineHeight-tightest);\n}\n\n._2fQLkoSAbYzgqfs8bUALb2 {\n font-size: var(--typography--fontSize-larger);\n line-height: var(--typography--lineHeight-tight);\n}\n\n._2zgB2QyVZKtvAxXrvqGZGR {\n font-size: var(--typography--fontSize-large);\n line-height: var(--typography--lineHeight-large);\n}\n\n._101f4LA9L04rx4wc82bzVJ {\n font-size: var(--typography--fontSize-base);\n line-height: var(--typography--lineHeight-base);\n}\n\n.Apy0Y618g1UWAkSvq0riG {\n font-size: var(--typography--fontSize-small);\n line-height: var(--typography--lineHeight-tighter);\n}\n\n._1MhBMulQtq31Ys4q9xtSNg {\n font-size: var(--typography--fontSize-smaller);\n line-height: var(--typography--lineHeight-tight);\n}\n";
|
|
18
|
+
var fontSizes = {"extravagant":"zvmTM4St0_C8TPhD_O9ug","jumbo":"Ra_cuCnMc70RK2H_4ChBn","largest":"dOMvSoEm0D0x_f7zK_PBP","larger":"_2fQLkoSAbYzgqfs8bUALb2","large":"_2zgB2QyVZKtvAxXrvqGZGR","base":"_101f4LA9L04rx4wc82bzVJ","small":"Apy0Y618g1UWAkSvq0riG","smaller":"_1MhBMulQtq31Ys4q9xtSNg"};
|
|
19
|
+
styleInject_es.styleInject(css$7);
|
|
20
|
+
|
|
21
|
+
var css$6 = "._15KVrV8OEixNgFqxYBEwRF {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 400;\n}\n\n._9NJa1tKodJk5XW-pP-BDY {\n font-family: var(--typography--fontFamily-normal);\n font-weight: 700;\n}\n\n._2NjTYoUg2rwawsmn41FWY8 {\n font-family: var(--typography--fontFamily-display);\n font-weight: 800;\n}\n\n.uys-zl4qz0plQt9LRshAd {\n font-family: var(--typography--fontFamily-display);\n font-weight: 900;\n}\n";
|
|
22
|
+
var fontWeights = {"regular":"_15KVrV8OEixNgFqxYBEwRF","bold":"_9NJa1tKodJk5XW-pP-BDY","extraBold":"_2NjTYoUg2rwawsmn41FWY8","black":"uys-zl4qz0plQt9LRshAd"};
|
|
23
|
+
styleInject_es.styleInject(css$6);
|
|
24
|
+
|
|
25
|
+
var css$5 = "._1QxZQjhSzY_Sq3KYUwHvCM {\n text-transform: uppercase;\n}\n\n._76SoHLzwZVKSPV8Jbxptp {\n text-transform: lowercase;\n}\n\n._1v1wGIm3g_nN5Y3jA2EyuK {\n text-transform: capitalize;\n}\n";
|
|
26
|
+
var textCases = {"uppercase":"_1QxZQjhSzY_Sq3KYUwHvCM","lowercase":"_76SoHLzwZVKSPV8Jbxptp","capitalize":"_1v1wGIm3g_nN5Y3jA2EyuK"};
|
|
27
|
+
styleInject_es.styleInject(css$5);
|
|
28
|
+
|
|
29
|
+
var css$4 = "._3ll_IHWYP5CXtvLbd7M3g4 {\n color: var(--color-blue);\n}\n\n._2aLfviMTslnYDFQydSPFyG {\n color: var(--color-grey);\n}\n\n._2yHCFsRY1Y6nrwHGA2BGXR {\n color: var(--color-greyBlue--dark);\n}\n\n.khfPfWiE9EnXFTUREGKev {\n color: var(--color-greyBlue);\n}\n\n._1IbTq3B5pV7-zQrdDXJhDB {\n color: var(--color-green);\n}\n\n.LH8KHdwfbdIWS8Ia4LNzJ {\n color: var(--color-red);\n}\n\n._2qLzIirDpz70j0ZkQstH4P {\n color: var(--color-yellow);\n}\n\n._2WeCxN6EUixXRd6wiNkurb {\n color: var(--color-yellow--dark);\n}\n\n._3KVpUUVNa7DxPCMTIqHmkr {\n color: var(--color-lightBlue);\n}\n\n.K60KIG2FVHz496YyImWfR {\n color: var(--color-white);\n}\n\n._39omMvRy0QF8yo96lzBKvU {\n color: var(--color-heading);\n}\n\n._1lCJhtn-QuZ-H-7N8CtLPg {\n color: var(--color-text);\n}\n\n.iZQf_6Bu4s-etKAEvUMSW {\n color: var(--color-text--secondary);\n}\n\n._22rt2p8mwIe87C2W5fAboT {\n color: var(--color-critical);\n}\n\n._1ZKA-7F_F3OjO2zAlnN0ey {\n color: var(--color-warning--onSurface);\n}\n\n.fjWW9OckqU4Ei4hdPBRqQ {\n color: var(--color-informative--onSurface);\n}\n\n._2oR_lya19rHAoUVAO3xgJ3 {\n color: var(--color-success--onSurface);\n}\n\n._2TOA8Z2cHlX5BRCA54HkZp {\n color: var(--color-disabled);\n}\n";
|
|
30
|
+
var textColors = {"blue":"_3ll_IHWYP5CXtvLbd7M3g4","grey":"_2aLfviMTslnYDFQydSPFyG","greyBlueDark":"_2yHCFsRY1Y6nrwHGA2BGXR","greyBlue":"khfPfWiE9EnXFTUREGKev","green":"_1IbTq3B5pV7-zQrdDXJhDB","red":"LH8KHdwfbdIWS8Ia4LNzJ","yellow":"_2qLzIirDpz70j0ZkQstH4P","yellowDark":"_2WeCxN6EUixXRd6wiNkurb","lightBlue":"_3KVpUUVNa7DxPCMTIqHmkr","white":"K60KIG2FVHz496YyImWfR","heading":"_39omMvRy0QF8yo96lzBKvU","text":"_1lCJhtn-QuZ-H-7N8CtLPg","textSecondary":"iZQf_6Bu4s-etKAEvUMSW","critical":"_22rt2p8mwIe87C2W5fAboT","warning":"_1ZKA-7F_F3OjO2zAlnN0ey","informative":"fjWW9OckqU4Ei4hdPBRqQ","success":"_2oR_lya19rHAoUVAO3xgJ3","disabled":"_2TOA8Z2cHlX5BRCA54HkZp"};
|
|
31
|
+
styleInject_es.styleInject(css$4);
|
|
32
|
+
|
|
33
|
+
var css$3 = "._2v32EeDVd2655RBXZ9dq3n {\n font-style: italic;\n}\n\n._1qwLpB6asp267SE_SsLR5r {\n margin-left: calc(-1 * var(--space-smaller));\n padding: 0 var(--space-smaller);\n font-family: var(--typography--fontFamily-display);\n font-weight: inherit;\n background-image: linear-gradient(\n to left,\n var(--color-brand--highlight),\n var(--color-brand--highlight)\n );\n background-position: left 75%;\n background-repeat: repeat-x;\n background-size: 100% 52%;\n}\n";
|
|
34
|
+
var emphasis = {"italic":"_2v32EeDVd2655RBXZ9dq3n","highlight":"_1qwLpB6asp267SE_SsLR5r"};
|
|
35
|
+
styleInject_es.styleInject(css$3);
|
|
36
|
+
|
|
37
|
+
var css$2 = "._3RPdE_X9LPA4hEoBHeEyKm {\n display: -webkit-box !important;\n overflow: hidden;\n}\n";
|
|
38
|
+
var truncate = {"textTruncate":"_3RPdE_X9LPA4hEoBHeEyKm"};
|
|
39
|
+
styleInject_es.styleInject(css$2);
|
|
40
|
+
|
|
41
|
+
var css$1 = "[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(rtl) {\n text-align: right;\n}\n\n[dir=\"ltr\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: left;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] .Rcc5J7aWibqntjpsFOcCJ {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ:dir(rtl) {\n text-align: right;\n}\n\n.Rcc5J7aWibqntjpsFOcCJ {\n text-align: start;\n}\n\n._2RxG5sGeRD2E9YteNJJAgZ {\n text-align: center;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(ltr) {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(rtl) {\n text-align: left;\n}\n\n[dir=\"ltr\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: right;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(ltr) {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._1VVOr2EolJ64dLH84I4Js- {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js-:dir(rtl) {\n text-align: left;\n}\n\n._1VVOr2EolJ64dLH84I4Js- {\n text-align: end;\n}\n\n[dir=\"ltr\"] :export {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-left: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n:export:dir(ltr) {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-left: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n[dir=\"rtl\"] :export {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-right: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n:export:dir(rtl) {\n start-top: Rcc5J7aWibqntjpsFOcCJ;\n start-right: Rcc5J7aWibqntjpsFOcCJ;\n}\n\n[dir=\"ltr\"] :export {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-right: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n:export:dir(ltr) {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-right: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n[dir=\"rtl\"] :export {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-left: _1VVOr2EolJ64dLH84I4Js-;\n}\n\n:export:dir(rtl) {\n end-bottom: _1VVOr2EolJ64dLH84I4Js-;\n end-left: _1VVOr2EolJ64dLH84I4Js-;\n}\n";
|
|
42
|
+
var alignment = {"start":"Rcc5J7aWibqntjpsFOcCJ","center":"_2RxG5sGeRD2E9YteNJJAgZ","end":"_1VVOr2EolJ64dLH84I4Js-"};
|
|
43
|
+
styleInject_es.styleInject(css$1);
|
|
44
|
+
|
|
45
|
+
var css = ".IO8ujZ7qHogIbFAEazAGH {\n font-family: var(--typography--fontFamily-normal);\n}\n\n._2VhNxoLIw82qbVgNH2yiv7 {\n font-family: var(--typography--fontFamily-display);\n}\n";
|
|
46
|
+
var fontFamilies = {"base":"IO8ujZ7qHogIbFAEazAGH","display":"_2VhNxoLIw82qbVgNH2yiv7"};
|
|
47
|
+
styleInject_es.styleInject(css);
|
|
48
|
+
|
|
49
|
+
function Typography(_a) {
|
|
50
|
+
var _b;
|
|
51
|
+
var id = _a.id, children = _a.children, _c = _a.element, Tag = _c === void 0 ? "p" : _c, size = _a.size, align = _a.align, _d = _a.fontWeight, fontWeight = _d === void 0 ? "regular" : _d, textCase = _a.textCase, textColor = _a.textColor, emphasisType = _a.emphasisType, numberOfLines = _a.numberOfLines, fontFamily = _a.fontFamily;
|
|
52
|
+
var shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
53
|
+
var className = classnames__default["default"](styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, tslib_es6.__assign({}, (align && (_b = {}, _b[alignment[align]] = align !== "start", _b))));
|
|
54
|
+
var truncateLines;
|
|
55
|
+
if (shouldTruncateText) {
|
|
56
|
+
truncateLines = {
|
|
57
|
+
WebkitLineClamp: numberOfLines,
|
|
58
|
+
WebkitBoxOrient: "vertical",
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return (React__default["default"].createElement(Tag, { id: id, className: className, style: truncateLines }, children));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.Typography = Typography;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "2.86.
|
|
3
|
+
"version": "2.86.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@jobber/design": "^0.26.0",
|
|
21
21
|
"@jobber/formatters": "^0.2.0",
|
|
22
|
-
"@jobber/hooks": "^1.12.
|
|
22
|
+
"@jobber/hooks": "^1.12.1",
|
|
23
23
|
"@popperjs/core": "^2.0.6",
|
|
24
24
|
"@std-proposal/temporal": "0.0.1",
|
|
25
25
|
"@types/color": "^3.0.1",
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"uuid": "^8.3.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@rollup/plugin-commonjs": "^23.0.0",
|
|
51
|
+
"@rollup/plugin-typescript": "^9.0.1",
|
|
50
52
|
"@testing-library/jest-dom": "^5.10.1",
|
|
51
53
|
"@testing-library/react": "^10.3.0",
|
|
52
54
|
"@testing-library/react-hooks": "^7.0.2",
|
|
@@ -64,13 +66,9 @@
|
|
|
64
66
|
"postcss-import": "^12.0.1",
|
|
65
67
|
"postcss-preset-env": "^6.7.0",
|
|
66
68
|
"react-test-renderer": "^16.9.0",
|
|
67
|
-
"rollup": "^
|
|
68
|
-
"rollup-plugin-commonjs": "^9.3.4",
|
|
69
|
+
"rollup": "^2.79.1",
|
|
69
70
|
"rollup-plugin-multi-input": "^0.2.2",
|
|
70
|
-
"rollup-plugin-node-resolve": "^4.2.4",
|
|
71
71
|
"rollup-plugin-postcss": "^2.0.3",
|
|
72
|
-
"rollup-plugin-typescript": "^1.0.1",
|
|
73
|
-
"rollup-plugin-typescript2": "^0.21.0",
|
|
74
72
|
"ts-node": "^8.1.0",
|
|
75
73
|
"typed-css-modules": "^0.7.0",
|
|
76
74
|
"typescript": "^3.8.3",
|
|
@@ -85,5 +83,5 @@
|
|
|
85
83
|
"> 1%",
|
|
86
84
|
"IE 10"
|
|
87
85
|
],
|
|
88
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "eb444943eb3b4c83c68f696fc40d14f8a678658e"
|
|
89
87
|
}
|
package/rollup.config.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable import/no-default-export */
|
|
2
2
|
import multiInput from "rollup-plugin-multi-input";
|
|
3
|
-
import typescript from "rollup
|
|
3
|
+
import typescript from "@rollup/plugin-typescript";
|
|
4
4
|
import postcss from "rollup-plugin-postcss";
|
|
5
|
-
import commonjs from "rollup
|
|
5
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
input: `src/*/index.ts`,
|
|
@@ -40,5 +40,30 @@ export default {
|
|
|
40
40
|
format: "cjs",
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
|
-
external: [
|
|
43
|
+
external: [
|
|
44
|
+
"react",
|
|
45
|
+
"react-hook-form",
|
|
46
|
+
"react-router-dom",
|
|
47
|
+
"react-dom",
|
|
48
|
+
"react-markdown",
|
|
49
|
+
"react-countdown",
|
|
50
|
+
"react-popper",
|
|
51
|
+
"react-datepicker",
|
|
52
|
+
"react-image-lightbox",
|
|
53
|
+
"react-image-lightbox/style.css",
|
|
54
|
+
"react-dropzone",
|
|
55
|
+
"axios",
|
|
56
|
+
"filesize",
|
|
57
|
+
"color",
|
|
58
|
+
"framer-motion",
|
|
59
|
+
"classnames",
|
|
60
|
+
"lodash",
|
|
61
|
+
"uuid",
|
|
62
|
+
"lodash/debounce",
|
|
63
|
+
"@std-proposal/temporal",
|
|
64
|
+
"@use-it/event-listener",
|
|
65
|
+
"@jobber/design",
|
|
66
|
+
"@jobber/formatters",
|
|
67
|
+
"@jobber/hooks",
|
|
68
|
+
],
|
|
44
69
|
};
|