@easypost/easy-ui 1.0.0-alpha.75 → 1.0.0-alpha.77
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/Badge/Badge.d.ts +11 -0
- package/Badge/Badge.d.ts.map +1 -1
- package/Badge/index.js +19 -15
- package/Badge/index.mjs +19 -15
- package/Banner/index.js +1 -1
- package/Banner/index.mjs +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +23 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/Card.d.ts +2 -0
- package/Card/Card.d.ts.map +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +3 -3
- package/CheckableCard/index.mjs +3 -3
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +4 -4
- package/CodeBlock/index.mjs +7 -7
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +5 -5
- package/DataGrid/index.mjs +17 -17
- package/DatePicker/index.js +3 -3
- package/DatePicker/index.mjs +7 -7
- package/DateRangePicker/index.js +3 -3
- package/DateRangePicker/index.mjs +7 -7
- package/Drawer/index.js +4 -1686
- package/Drawer/index.mjs +6 -1688
- package/DropdownButton/index.mjs +1 -1
- package/EmptyStateCard/index.js +2 -2
- package/EmptyStateCard/index.mjs +2 -2
- package/FocusedProductLayout/index.js +2 -2
- package/FocusedProductLayout/index.mjs +4 -4
- package/ForgeLayout/index.js +4 -4
- package/ForgeLayout/index.mjs +11 -11
- package/FormLayout/index.js +1 -1
- package/FormLayout/index.mjs +1 -1
- package/IconButton/index.js +1 -1
- package/IconButton/index.mjs +2 -2
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +1 -1
- package/Modal/index.mjs +6 -6
- package/MultiSelect/index.js +3 -3
- package/MultiSelect/index.mjs +20 -20
- package/NexusLayout/index.js +2 -2
- package/NexusLayout/index.mjs +6 -6
- package/Notification/Notification.d.ts +12 -1
- package/Notification/Notification.d.ts.map +1 -1
- package/Notification/NotificationContainer.d.ts.map +1 -1
- package/Notification/NotificationRegion.d.ts +7 -2
- package/Notification/NotificationRegion.d.ts.map +1 -1
- package/Notification/NotificationTransition.d.ts +29 -0
- package/Notification/NotificationTransition.d.ts.map +1 -0
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +2 -2
- package/Pagination/index.mjs +3 -3
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/PlanCard.d.ts +89 -0
- package/PlanCard/PlanCard.d.ts.map +1 -0
- package/PlanCard/PlanCard.stories.d.ts +12 -0
- package/PlanCard/PlanCard.stories.d.ts.map +1 -0
- package/PlanCard/PlanCard.test.d.ts +2 -0
- package/PlanCard/PlanCard.test.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/Building01.d.ts +3 -0
- package/PlanCard/illustrations/Building01/Building01.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/index.d.ts +2 -0
- package/PlanCard/illustrations/Building01/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/index.js +540 -0
- package/PlanCard/illustrations/Building01/index.mjs +540 -0
- package/PlanCard/illustrations/Building02/Building02.d.ts +3 -0
- package/PlanCard/illustrations/Building02/Building02.d.ts.map +1 -0
- package/PlanCard/illustrations/Building02/index.d.ts +2 -0
- package/PlanCard/illustrations/Building02/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building02/index.js +214 -0
- package/PlanCard/illustrations/Building02/index.mjs +214 -0
- package/PlanCard/illustrations/Building03/Building03.d.ts +3 -0
- package/PlanCard/illustrations/Building03/Building03.d.ts.map +1 -0
- package/PlanCard/illustrations/Building03/index.d.ts +2 -0
- package/PlanCard/illustrations/Building03/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building03/index.js +781 -0
- package/PlanCard/illustrations/Building03/index.mjs +781 -0
- package/PlanCard/illustrations/Building04/Building04.d.ts +3 -0
- package/PlanCard/illustrations/Building04/Building04.d.ts.map +1 -0
- package/PlanCard/illustrations/Building04/index.d.ts +2 -0
- package/PlanCard/illustrations/Building04/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building04/index.js +1536 -0
- package/PlanCard/illustrations/Building04/index.mjs +1536 -0
- package/PlanCard/index.d.ts +2 -0
- package/PlanCard/index.d.ts.map +1 -0
- package/PlanCard/index.js +146 -0
- package/PlanCard/index.mjs +146 -0
- package/ProductLayout/index.js +3 -3
- package/ProductLayout/index.mjs +10 -10
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +3 -3
- package/RadioButtonGroup/index.js +1 -1
- package/RadioButtonGroup/index.mjs +5 -5
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +3 -3
- package/SearchNav/index.mjs +5 -5
- package/SectionCard/index.js +2 -2
- package/SectionCard/index.mjs +2 -2
- package/Select/index.js +3 -3
- package/Select/index.mjs +4 -4
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +2 -2
- package/SplitToggleCard/index.mjs +2 -2
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.mjs +5 -5
- package/Tabs/index.mjs +1 -1
- package/Text/Text.d.ts +4 -1
- package/Text/Text.d.ts.map +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +1 -1
- package/ToggleCard/index.mjs +1 -1
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +1 -1
- package/VerticalNav/index.mjs +3 -3
- package/__chunks__/{Button-cjD7z6sK.mjs → Button-D-ucl04v.mjs} +1 -1
- package/__chunks__/{Button-CSNMWizI.mjs → Button-UHHZB1DN.mjs} +3 -3
- package/__chunks__/CSSTransition-BXyX0mUc.js +1689 -0
- package/__chunks__/CSSTransition-C4FQrt4m.mjs +1690 -0
- package/__chunks__/{Calendar-BGIbWVyN.js → Calendar-2o01guc2.js} +1 -1
- package/__chunks__/{Calendar-B4BCW9t8.mjs → Calendar-DjW0E3mk.mjs} +1 -1
- package/__chunks__/{CalendarBase-C_AQ7bu5.mjs → CalendarBase-D8NmV5mS.mjs} +5 -5
- package/__chunks__/{CalendarBase-BgzOdHfS.js → CalendarBase-RcVbhUvM.js} +1 -1
- package/__chunks__/{Card-svNtJnxD.js → Card-BM2DKiVA.js} +2 -2
- package/__chunks__/{Card-DLf_ttOB.mjs → Card-CJug4GMX.mjs} +2 -2
- package/__chunks__/{Checkbox-BMBM6doF.mjs → Checkbox-C8XZu-1F.mjs} +7 -7
- package/__chunks__/{Checkbox-DEmP9BGE.js → Checkbox-sznEdCc0.js} +2 -2
- package/__chunks__/{CodeSnippet-BBZpDbHX.js → CodeSnippet-Bpf7eWjq.js} +2 -2
- package/__chunks__/{CodeSnippet-B6KCRlKQ.mjs → CodeSnippet-DOyQDfxp.mjs} +2 -2
- package/__chunks__/{DatePickerBase-VNenwOmb.mjs → DatePickerBase-BJH3bhGM.mjs} +10 -10
- package/__chunks__/{DatePickerBase-WNWiVJoF.js → DatePickerBase-BWFcyR_m.js} +2 -2
- package/__chunks__/{Dialog-E2U6mUFU.mjs → Dialog-BBt18JUl.mjs} +7 -7
- package/__chunks__/{FocusScope-CQhiv02m.mjs → FocusScope-jG-ZgYgr.mjs} +2 -2
- package/__chunks__/{HelpMenu-CTNmYcKm.js → HelpMenu-B3gwBqqY.js} +2 -2
- package/__chunks__/{HelpMenu-Bed-PzGS.mjs → HelpMenu-DQngktSJ.mjs} +3 -3
- package/__chunks__/{InputCaption-z01Eep0I.js → InputCaption-G9D1cPnP.js} +1 -1
- package/__chunks__/{InputCaption-CRtCXzV7.mjs → InputCaption-aU5qZQlo.mjs} +1 -1
- package/__chunks__/{InputField-Bb98b1MA.js → InputField-CPgMRigD.js} +2 -2
- package/__chunks__/{InputField-Dm5yHcWV.mjs → InputField-D4feGzmR.mjs} +5 -5
- package/__chunks__/{KebabButton-B9eYB6ZD.js → KebabButton-B97kYKaW.js} +1 -1
- package/__chunks__/{KebabButton-gf3gFlb0.mjs → KebabButton-tTikhARu.mjs} +2 -2
- package/__chunks__/{Menu-BVTFMAX-.js → Menu-BjKQfXId.js} +2 -2
- package/__chunks__/{Menu-DJS86zDM.mjs → Menu-L3un-ZpR.mjs} +13 -13
- package/__chunks__/{Notification-lg6ggtug.mjs → Notification-C22_98O5.mjs} +350 -36
- package/__chunks__/{Notification-BCS0ugaf.js → Notification-eckCE8Jj.js} +348 -34
- package/__chunks__/{Overlay-CG-kKp6T.mjs → Overlay-huXBYY4a.mjs} +2 -2
- package/__chunks__/{PillGroup-DZtHC3NK.mjs → PillGroup-8hng2YcX.mjs} +15 -15
- package/__chunks__/{PillGroup-D-VEy6sn.js → PillGroup-q2LMLV6q.js} +1 -1
- package/__chunks__/{RadioGroup-ppUojVMB.mjs → RadioGroup-CaCZDI4f.mjs} +9 -9
- package/__chunks__/{RadioGroup-CDmT0FW5.js → RadioGroup-Cbzsv5jw.js} +2 -2
- package/__chunks__/{RangeCalendar-rMPxj6HM.mjs → RangeCalendar-DhFnV8j-.mjs} +1 -1
- package/__chunks__/{RangeCalendar-B5UtHhmt.js → RangeCalendar-aUakXSjU.js} +1 -1
- package/__chunks__/{SelectOverlay-DgDBimW8.js → SelectOverlay-BFRRqmYL.js} +1 -1
- package/__chunks__/{SelectOverlay-CG2jyYZ_.mjs → SelectOverlay-CsxfifYV.mjs} +10 -10
- package/__chunks__/{SelectorErrorTooltip-Dkuaiq7N.mjs → SelectorErrorTooltip-C5XJ5swy.mjs} +2 -2
- package/__chunks__/{SelectorErrorTooltip-BfKzfYpQ.js → SelectorErrorTooltip-EwN0tf2g.js} +2 -2
- package/__chunks__/{Spinner-C4B8utkI.mjs → Spinner-BsFJZqxe.mjs} +1 -1
- package/__chunks__/{Spinner-BQg8KbBa.js → Spinner-BsvfYBAO.js} +1 -1
- package/__chunks__/{Stepper-Dbvg5Wn_.mjs → Stepper-F7Czxecp.mjs} +2 -2
- package/__chunks__/{TabNav-CNAVzfBp.mjs → TabNav-DbDaDR6R.mjs} +1 -1
- package/__chunks__/{Tabs-Chw75GHi.mjs → Tabs-DbH5NmIf.mjs} +2 -2
- package/__chunks__/Text-B1xglKFU.js +112 -0
- package/__chunks__/Text-CX5GoBTS.mjs +113 -0
- package/__chunks__/{TextField-HXNCIy4W.mjs → TextField-BwGqzpya.mjs} +1 -1
- package/__chunks__/{TextField-Co8OtDnO.js → TextField-D1YUSD6j.js} +1 -1
- package/__chunks__/{Theme-CctofSlt.mjs → Theme-Bzhg0otp.mjs} +1 -1
- package/__chunks__/{Theme-Ck5K42IR.js → Theme-Cos5kTlc.js} +1 -1
- package/__chunks__/{Toggle-C1cAD3ld.js → Toggle-13H0VeGP.js} +1 -1
- package/__chunks__/{Toggle-Dm0_ZvLs.mjs → Toggle-DqKzs3Y8.mjs} +4 -4
- package/__chunks__/{Tooltip-DzWQUbuB.mjs → Tooltip-By8WH1wI.mjs} +6 -6
- package/__chunks__/{Tooltip-C9bST6SD.js → Tooltip-DP2EYuM4.js} +1 -1
- package/__chunks__/{UnstyledButton-D0_XmlIu.mjs → UnstyledButton-0yreaZnh.mjs} +1 -1
- package/__chunks__/{VisuallyHidden-Buyb8r_B.mjs → VisuallyHidden-DLuOutNi.mjs} +1 -1
- package/__chunks__/{ariaHideOutside-b0UviP2F.mjs → ariaHideOutside-DRsDXtWO.mjs} +3 -3
- package/__chunks__/{focusSafely-psnzsNzD.mjs → focusSafely-BW4_g0fd.mjs} +1 -1
- package/__chunks__/{tokens-CyXKQDx6.mjs → tokens-D4KvbbyC.mjs} +1 -0
- package/__chunks__/{tokens-MDLCVf35.js → tokens-oBdmeeGv.js} +1 -0
- package/__chunks__/{useButton-Doz4-YMS.mjs → useButton-ovH6gI84.mjs} +2 -2
- package/__chunks__/{useDialog-B6qJASRh.mjs → useDialog-zKH03v_d.mjs} +2 -2
- package/__chunks__/{useFocus-BL_s_3zv.mjs → useFocus-BJE6cxrg.mjs} +1 -1
- package/__chunks__/{useFocusRing-4hM0Ggs3.mjs → useFocusRing-Dg_M1jfs.mjs} +3 -3
- package/__chunks__/{useFocusVisible-CQ1e0o7u.mjs → useFocusVisible-DgcLCVnV.mjs} +2 -2
- package/__chunks__/{useFocusWithin-BgSjulWP.mjs → useFocusWithin-BE5KE588.mjs} +1 -1
- package/__chunks__/{useFocusable-C-Ge2Ht4.mjs → useFocusable-B5QcOTFc.mjs} +2 -2
- package/__chunks__/{useFormValidation-Crn66hAu.mjs → useFormValidation-gt5I8m2g.mjs} +1 -1
- package/__chunks__/{useHasTabbableChild-DQC24yLO.mjs → useHasTabbableChild-BBua_oUS.mjs} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-BGq4guwQ.mjs → useHighlightSelectionDescription-Dl5YfxVo.mjs} +1 -1
- package/__chunks__/{useHover-BBXJy5NT.mjs → useHover-mdyQ6kou.mjs} +1 -1
- package/__chunks__/{useLink-Dmu5rS4r.mjs → useLink-Dr9Pjalq.mjs} +2 -2
- package/__chunks__/{useListBoxSection-CpQ4pADf.mjs → useListBoxSection-Bw5OEI4S.mjs} +6 -6
- package/__chunks__/{useMenuTrigger-BlLkvrnl.mjs → useMenuTrigger-C9nRdVJk.mjs} +3 -3
- package/__chunks__/{useMenuTriggerState-C-zvqrX2.mjs → useMenuTriggerState-BHenEvUl.mjs} +1 -1
- package/__chunks__/{useModalOverlay-BlCaGnUr.mjs → useModalOverlay-BLiaW3WH.mjs} +2 -2
- package/__chunks__/{useOverlayPosition-D8MX_oIt.mjs → useOverlayPosition-_GnIrSzW.mjs} +2 -2
- package/__chunks__/{useOverlayTrigger-Coc4zW72.mjs → useOverlayTrigger-BIc8jsUc.mjs} +1 -1
- package/__chunks__/{usePress-BH70cn5g.mjs → usePress-DQ3FxwWo.mjs} +2 -2
- package/__chunks__/{useSelectableItem-Xr4pjjqP.mjs → useSelectableItem-DcveeRN2.mjs} +4 -4
- package/__chunks__/{useSelectableList-D7mL6j6I.mjs → useSelectableList-C_zJw1dp.mjs} +1 -1
- package/__chunks__/{useTextField-Dn8JlzYF.mjs → useTextField-B6vr1ZoD.mjs} +3 -3
- package/__chunks__/{useToggle-BlKdU7Ta.mjs → useToggle-C7k9_K6R.mjs} +2 -2
- package/__chunks__/{utilities-BB2zmROs.mjs → utilities-U5Ql_Myz.mjs} +3 -3
- package/package.json +3 -3
- package/style.css +298 -207
- package/styles/_token-helpers.scss +4 -0
- package/__chunks__/Text-BYGcKHR7.mjs +0 -110
- package/__chunks__/Text-DZ601qf9.js +0 -109
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import React__default from "react";
|
|
18
|
-
import { classNames, variationName, getComponentThemeToken, backwardsCompatibleColorToken } from "../utilities/css.mjs";
|
|
19
|
-
const Text$1 = "_Text_plajv_4";
|
|
20
|
-
const heading1 = "_heading1_plajv_12";
|
|
21
|
-
const heading2 = "_heading2_plajv_29";
|
|
22
|
-
const heading3 = "_heading3_plajv_46";
|
|
23
|
-
const heading4 = "_heading4_plajv_63";
|
|
24
|
-
const heading5 = "_heading5_plajv_71";
|
|
25
|
-
const subtitle1 = "_subtitle1_plajv_79";
|
|
26
|
-
const subtitle2 = "_subtitle2_plajv_87";
|
|
27
|
-
const body1 = "_body1_plajv_95";
|
|
28
|
-
const body2 = "_body2_plajv_103";
|
|
29
|
-
const caption = "_caption_plajv_111";
|
|
30
|
-
const caption2 = "_caption2_plajv_119";
|
|
31
|
-
const caption3 = "_caption3_plajv_127";
|
|
32
|
-
const overline = "_overline_plajv_135";
|
|
33
|
-
const overline2 = "_overline2_plajv_143";
|
|
34
|
-
const button = "_button_plajv_151";
|
|
35
|
-
const normal = "_normal_plajv_167";
|
|
36
|
-
const medium = "_medium_plajv_171";
|
|
37
|
-
const semibold = "_semibold_plajv_175";
|
|
38
|
-
const bold = "_bold_plajv_179";
|
|
39
|
-
const truncate = "_truncate_plajv_183";
|
|
40
|
-
const block = "_block_plajv_189";
|
|
41
|
-
const visuallyHidden = "_visuallyHidden_plajv_193";
|
|
42
|
-
const start = "_start_plajv_206";
|
|
43
|
-
const center = "_center_plajv_210";
|
|
44
|
-
const end = "_end_plajv_214";
|
|
45
|
-
const justify = "_justify_plajv_218";
|
|
46
|
-
const numeric = "_numeric_plajv_226";
|
|
47
|
-
const transformNone = "_transformNone_plajv_230";
|
|
48
|
-
const transformCapitalize = "_transformCapitalize_plajv_234";
|
|
49
|
-
const transformUppercase = "_transformUppercase_plajv_238";
|
|
50
|
-
const transformLowercase = "_transformLowercase_plajv_242";
|
|
51
|
-
const whiteSpaceNormal = "_whiteSpaceNormal_plajv_246";
|
|
52
|
-
const whiteSpacePre = "_whiteSpacePre_plajv_250";
|
|
53
|
-
const whiteSpaceNowrap = "_whiteSpaceNowrap_plajv_254";
|
|
54
|
-
const styles = {
|
|
55
|
-
Text: Text$1,
|
|
56
|
-
heading1,
|
|
57
|
-
heading2,
|
|
58
|
-
heading3,
|
|
59
|
-
heading4,
|
|
60
|
-
heading5,
|
|
61
|
-
subtitle1,
|
|
62
|
-
subtitle2,
|
|
63
|
-
body1,
|
|
64
|
-
body2,
|
|
65
|
-
caption,
|
|
66
|
-
caption2,
|
|
67
|
-
caption3,
|
|
68
|
-
overline,
|
|
69
|
-
overline2,
|
|
70
|
-
button,
|
|
71
|
-
"small-button": "_small-button_plajv_159",
|
|
72
|
-
normal,
|
|
73
|
-
medium,
|
|
74
|
-
semibold,
|
|
75
|
-
bold,
|
|
76
|
-
truncate,
|
|
77
|
-
block,
|
|
78
|
-
visuallyHidden,
|
|
79
|
-
start,
|
|
80
|
-
center,
|
|
81
|
-
end,
|
|
82
|
-
justify,
|
|
83
|
-
"break": "_break_plajv_222",
|
|
84
|
-
numeric,
|
|
85
|
-
transformNone,
|
|
86
|
-
transformCapitalize,
|
|
87
|
-
transformUppercase,
|
|
88
|
-
transformLowercase,
|
|
89
|
-
whiteSpaceNormal,
|
|
90
|
-
whiteSpacePre,
|
|
91
|
-
whiteSpaceNowrap,
|
|
92
|
-
"whiteSpacePre-wrap": "_whiteSpacePre-wrap_plajv_258",
|
|
93
|
-
"whiteSpaceBreak-spaces": "_whiteSpaceBreak-spaces_plajv_262",
|
|
94
|
-
"whiteSpacePre-line": "_whiteSpacePre-line_plajv_266"
|
|
95
|
-
};
|
|
96
|
-
function Text({ alignment, as: Component = "span", breakWord = false, children, color, id, transform = "none", truncate: truncate2 = false, variant, visuallyHidden: visuallyHidden2 = false, weight, whiteSpace }) {
|
|
97
|
-
const className = classNames(styles.Text, variant && styles[cleanVariant(variant)], weight && styles[weight], (alignment || truncate2) && styles.block, alignment && styles[alignment], breakWord && styles.break, truncate2 && styles.truncate, visuallyHidden2 && styles.visuallyHidden, transform && styles[variationName("transform", transform)], whiteSpace && styles[variationName("whiteSpace", whiteSpace)]);
|
|
98
|
-
const style = __spreadValues({}, getComponentThemeToken("text", "color", "color", backwardsCompatibleColorToken(color)));
|
|
99
|
-
return React__default.createElement(Component, {
|
|
100
|
-
className,
|
|
101
|
-
style,
|
|
102
|
-
id: id ? id : void 0
|
|
103
|
-
}, children);
|
|
104
|
-
}
|
|
105
|
-
function cleanVariant(variant) {
|
|
106
|
-
return variant.replace(/_/, "-");
|
|
107
|
-
}
|
|
108
|
-
export {
|
|
109
|
-
Text as T
|
|
110
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
const React = require("react");
|
|
19
|
-
const utilities_css = require("../utilities/css.js");
|
|
20
|
-
const Text$1 = "_Text_plajv_4";
|
|
21
|
-
const heading1 = "_heading1_plajv_12";
|
|
22
|
-
const heading2 = "_heading2_plajv_29";
|
|
23
|
-
const heading3 = "_heading3_plajv_46";
|
|
24
|
-
const heading4 = "_heading4_plajv_63";
|
|
25
|
-
const heading5 = "_heading5_plajv_71";
|
|
26
|
-
const subtitle1 = "_subtitle1_plajv_79";
|
|
27
|
-
const subtitle2 = "_subtitle2_plajv_87";
|
|
28
|
-
const body1 = "_body1_plajv_95";
|
|
29
|
-
const body2 = "_body2_plajv_103";
|
|
30
|
-
const caption = "_caption_plajv_111";
|
|
31
|
-
const caption2 = "_caption2_plajv_119";
|
|
32
|
-
const caption3 = "_caption3_plajv_127";
|
|
33
|
-
const overline = "_overline_plajv_135";
|
|
34
|
-
const overline2 = "_overline2_plajv_143";
|
|
35
|
-
const button = "_button_plajv_151";
|
|
36
|
-
const normal = "_normal_plajv_167";
|
|
37
|
-
const medium = "_medium_plajv_171";
|
|
38
|
-
const semibold = "_semibold_plajv_175";
|
|
39
|
-
const bold = "_bold_plajv_179";
|
|
40
|
-
const truncate = "_truncate_plajv_183";
|
|
41
|
-
const block = "_block_plajv_189";
|
|
42
|
-
const visuallyHidden = "_visuallyHidden_plajv_193";
|
|
43
|
-
const start = "_start_plajv_206";
|
|
44
|
-
const center = "_center_plajv_210";
|
|
45
|
-
const end = "_end_plajv_214";
|
|
46
|
-
const justify = "_justify_plajv_218";
|
|
47
|
-
const numeric = "_numeric_plajv_226";
|
|
48
|
-
const transformNone = "_transformNone_plajv_230";
|
|
49
|
-
const transformCapitalize = "_transformCapitalize_plajv_234";
|
|
50
|
-
const transformUppercase = "_transformUppercase_plajv_238";
|
|
51
|
-
const transformLowercase = "_transformLowercase_plajv_242";
|
|
52
|
-
const whiteSpaceNormal = "_whiteSpaceNormal_plajv_246";
|
|
53
|
-
const whiteSpacePre = "_whiteSpacePre_plajv_250";
|
|
54
|
-
const whiteSpaceNowrap = "_whiteSpaceNowrap_plajv_254";
|
|
55
|
-
const styles = {
|
|
56
|
-
Text: Text$1,
|
|
57
|
-
heading1,
|
|
58
|
-
heading2,
|
|
59
|
-
heading3,
|
|
60
|
-
heading4,
|
|
61
|
-
heading5,
|
|
62
|
-
subtitle1,
|
|
63
|
-
subtitle2,
|
|
64
|
-
body1,
|
|
65
|
-
body2,
|
|
66
|
-
caption,
|
|
67
|
-
caption2,
|
|
68
|
-
caption3,
|
|
69
|
-
overline,
|
|
70
|
-
overline2,
|
|
71
|
-
button,
|
|
72
|
-
"small-button": "_small-button_plajv_159",
|
|
73
|
-
normal,
|
|
74
|
-
medium,
|
|
75
|
-
semibold,
|
|
76
|
-
bold,
|
|
77
|
-
truncate,
|
|
78
|
-
block,
|
|
79
|
-
visuallyHidden,
|
|
80
|
-
start,
|
|
81
|
-
center,
|
|
82
|
-
end,
|
|
83
|
-
justify,
|
|
84
|
-
"break": "_break_plajv_222",
|
|
85
|
-
numeric,
|
|
86
|
-
transformNone,
|
|
87
|
-
transformCapitalize,
|
|
88
|
-
transformUppercase,
|
|
89
|
-
transformLowercase,
|
|
90
|
-
whiteSpaceNormal,
|
|
91
|
-
whiteSpacePre,
|
|
92
|
-
whiteSpaceNowrap,
|
|
93
|
-
"whiteSpacePre-wrap": "_whiteSpacePre-wrap_plajv_258",
|
|
94
|
-
"whiteSpaceBreak-spaces": "_whiteSpaceBreak-spaces_plajv_262",
|
|
95
|
-
"whiteSpacePre-line": "_whiteSpacePre-line_plajv_266"
|
|
96
|
-
};
|
|
97
|
-
function Text({ alignment, as: Component = "span", breakWord = false, children, color, id, transform = "none", truncate: truncate2 = false, variant, visuallyHidden: visuallyHidden2 = false, weight, whiteSpace }) {
|
|
98
|
-
const className = utilities_css.classNames(styles.Text, variant && styles[cleanVariant(variant)], weight && styles[weight], (alignment || truncate2) && styles.block, alignment && styles[alignment], breakWord && styles.break, truncate2 && styles.truncate, visuallyHidden2 && styles.visuallyHidden, transform && styles[utilities_css.variationName("transform", transform)], whiteSpace && styles[utilities_css.variationName("whiteSpace", whiteSpace)]);
|
|
99
|
-
const style = __spreadValues({}, utilities_css.getComponentThemeToken("text", "color", "color", utilities_css.backwardsCompatibleColorToken(color)));
|
|
100
|
-
return React.createElement(Component, {
|
|
101
|
-
className,
|
|
102
|
-
style,
|
|
103
|
-
id: id ? id : void 0
|
|
104
|
-
}, children);
|
|
105
|
-
}
|
|
106
|
-
function cleanVariant(variant) {
|
|
107
|
-
return variant.replace(/_/, "-");
|
|
108
|
-
}
|
|
109
|
-
exports.Text = Text;
|