@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.
Files changed (236) hide show
  1. package/Badge/Badge.d.ts +11 -0
  2. package/Badge/Badge.d.ts.map +1 -1
  3. package/Badge/index.js +19 -15
  4. package/Badge/index.mjs +19 -15
  5. package/Banner/index.js +1 -1
  6. package/Banner/index.mjs +1 -1
  7. package/Button/index.mjs +1 -1
  8. package/CHANGELOG.md +23 -0
  9. package/Calendar/index.js +1 -1
  10. package/Calendar/index.mjs +1 -1
  11. package/Card/Card.d.ts +2 -0
  12. package/Card/Card.d.ts.map +1 -1
  13. package/Card/index.js +1 -1
  14. package/Card/index.mjs +1 -1
  15. package/CheckableCard/index.js +3 -3
  16. package/CheckableCard/index.mjs +3 -3
  17. package/Checkbox/index.js +1 -1
  18. package/Checkbox/index.mjs +1 -1
  19. package/CodeBlock/index.js +4 -4
  20. package/CodeBlock/index.mjs +7 -7
  21. package/CodeSnippet/index.js +1 -1
  22. package/CodeSnippet/index.mjs +1 -1
  23. package/DataGrid/index.js +5 -5
  24. package/DataGrid/index.mjs +17 -17
  25. package/DatePicker/index.js +3 -3
  26. package/DatePicker/index.mjs +7 -7
  27. package/DateRangePicker/index.js +3 -3
  28. package/DateRangePicker/index.mjs +7 -7
  29. package/Drawer/index.js +4 -1686
  30. package/Drawer/index.mjs +6 -1688
  31. package/DropdownButton/index.mjs +1 -1
  32. package/EmptyStateCard/index.js +2 -2
  33. package/EmptyStateCard/index.mjs +2 -2
  34. package/FocusedProductLayout/index.js +2 -2
  35. package/FocusedProductLayout/index.mjs +4 -4
  36. package/ForgeLayout/index.js +4 -4
  37. package/ForgeLayout/index.mjs +11 -11
  38. package/FormLayout/index.js +1 -1
  39. package/FormLayout/index.mjs +1 -1
  40. package/IconButton/index.js +1 -1
  41. package/IconButton/index.mjs +2 -2
  42. package/InputField/index.js +1 -1
  43. package/InputField/index.mjs +1 -1
  44. package/KebabButton/index.js +1 -1
  45. package/KebabButton/index.mjs +1 -1
  46. package/Menu/index.js +1 -1
  47. package/Menu/index.mjs +1 -1
  48. package/Modal/index.js +1 -1
  49. package/Modal/index.mjs +6 -6
  50. package/MultiSelect/index.js +3 -3
  51. package/MultiSelect/index.mjs +20 -20
  52. package/NexusLayout/index.js +2 -2
  53. package/NexusLayout/index.mjs +6 -6
  54. package/Notification/Notification.d.ts +12 -1
  55. package/Notification/Notification.d.ts.map +1 -1
  56. package/Notification/NotificationContainer.d.ts.map +1 -1
  57. package/Notification/NotificationRegion.d.ts +7 -2
  58. package/Notification/NotificationRegion.d.ts.map +1 -1
  59. package/Notification/NotificationTransition.d.ts +29 -0
  60. package/Notification/NotificationTransition.d.ts.map +1 -0
  61. package/Notification/index.js +1 -1
  62. package/Notification/index.mjs +1 -1
  63. package/Pagination/index.js +2 -2
  64. package/Pagination/index.mjs +3 -3
  65. package/PillGroup/index.js +1 -1
  66. package/PillGroup/index.mjs +1 -1
  67. package/PlanCard/PlanCard.d.ts +89 -0
  68. package/PlanCard/PlanCard.d.ts.map +1 -0
  69. package/PlanCard/PlanCard.stories.d.ts +12 -0
  70. package/PlanCard/PlanCard.stories.d.ts.map +1 -0
  71. package/PlanCard/PlanCard.test.d.ts +2 -0
  72. package/PlanCard/PlanCard.test.d.ts.map +1 -0
  73. package/PlanCard/illustrations/Building01/Building01.d.ts +3 -0
  74. package/PlanCard/illustrations/Building01/Building01.d.ts.map +1 -0
  75. package/PlanCard/illustrations/Building01/index.d.ts +2 -0
  76. package/PlanCard/illustrations/Building01/index.d.ts.map +1 -0
  77. package/PlanCard/illustrations/Building01/index.js +540 -0
  78. package/PlanCard/illustrations/Building01/index.mjs +540 -0
  79. package/PlanCard/illustrations/Building02/Building02.d.ts +3 -0
  80. package/PlanCard/illustrations/Building02/Building02.d.ts.map +1 -0
  81. package/PlanCard/illustrations/Building02/index.d.ts +2 -0
  82. package/PlanCard/illustrations/Building02/index.d.ts.map +1 -0
  83. package/PlanCard/illustrations/Building02/index.js +214 -0
  84. package/PlanCard/illustrations/Building02/index.mjs +214 -0
  85. package/PlanCard/illustrations/Building03/Building03.d.ts +3 -0
  86. package/PlanCard/illustrations/Building03/Building03.d.ts.map +1 -0
  87. package/PlanCard/illustrations/Building03/index.d.ts +2 -0
  88. package/PlanCard/illustrations/Building03/index.d.ts.map +1 -0
  89. package/PlanCard/illustrations/Building03/index.js +781 -0
  90. package/PlanCard/illustrations/Building03/index.mjs +781 -0
  91. package/PlanCard/illustrations/Building04/Building04.d.ts +3 -0
  92. package/PlanCard/illustrations/Building04/Building04.d.ts.map +1 -0
  93. package/PlanCard/illustrations/Building04/index.d.ts +2 -0
  94. package/PlanCard/illustrations/Building04/index.d.ts.map +1 -0
  95. package/PlanCard/illustrations/Building04/index.js +1536 -0
  96. package/PlanCard/illustrations/Building04/index.mjs +1536 -0
  97. package/PlanCard/index.d.ts +2 -0
  98. package/PlanCard/index.d.ts.map +1 -0
  99. package/PlanCard/index.js +146 -0
  100. package/PlanCard/index.mjs +146 -0
  101. package/ProductLayout/index.js +3 -3
  102. package/ProductLayout/index.mjs +10 -10
  103. package/Provider/index.js +2 -2
  104. package/Provider/index.mjs +3 -3
  105. package/RadioButtonGroup/index.js +1 -1
  106. package/RadioButtonGroup/index.mjs +5 -5
  107. package/RadioGroup/index.js +1 -1
  108. package/RadioGroup/index.mjs +1 -1
  109. package/RangeCalendar/index.js +1 -1
  110. package/RangeCalendar/index.mjs +1 -1
  111. package/SearchNav/index.js +3 -3
  112. package/SearchNav/index.mjs +5 -5
  113. package/SectionCard/index.js +2 -2
  114. package/SectionCard/index.mjs +2 -2
  115. package/Select/index.js +3 -3
  116. package/Select/index.mjs +4 -4
  117. package/SelectorErrorTooltip/index.js +1 -1
  118. package/SelectorErrorTooltip/index.mjs +1 -1
  119. package/Spinner/index.js +1 -1
  120. package/Spinner/index.mjs +1 -1
  121. package/SplitToggleCard/index.js +2 -2
  122. package/SplitToggleCard/index.mjs +2 -2
  123. package/Stepper/index.mjs +1 -1
  124. package/TabNav/index.mjs +1 -1
  125. package/TabPanels/index.mjs +5 -5
  126. package/Tabs/index.mjs +1 -1
  127. package/Text/Text.d.ts +4 -1
  128. package/Text/Text.d.ts.map +1 -1
  129. package/Text/index.js +1 -1
  130. package/Text/index.mjs +1 -1
  131. package/TextField/index.js +1 -1
  132. package/TextField/index.mjs +1 -1
  133. package/Textarea/index.js +1 -1
  134. package/Textarea/index.mjs +1 -1
  135. package/Theme/index.js +1 -1
  136. package/Theme/index.mjs +1 -1
  137. package/Toggle/index.js +1 -1
  138. package/Toggle/index.mjs +1 -1
  139. package/ToggleCard/index.js +1 -1
  140. package/ToggleCard/index.mjs +1 -1
  141. package/Tooltip/index.js +1 -1
  142. package/Tooltip/index.mjs +1 -1
  143. package/UnstyledButton/index.mjs +1 -1
  144. package/VerticalNav/index.js +1 -1
  145. package/VerticalNav/index.mjs +3 -3
  146. package/__chunks__/{Button-cjD7z6sK.mjs → Button-D-ucl04v.mjs} +1 -1
  147. package/__chunks__/{Button-CSNMWizI.mjs → Button-UHHZB1DN.mjs} +3 -3
  148. package/__chunks__/CSSTransition-BXyX0mUc.js +1689 -0
  149. package/__chunks__/CSSTransition-C4FQrt4m.mjs +1690 -0
  150. package/__chunks__/{Calendar-BGIbWVyN.js → Calendar-2o01guc2.js} +1 -1
  151. package/__chunks__/{Calendar-B4BCW9t8.mjs → Calendar-DjW0E3mk.mjs} +1 -1
  152. package/__chunks__/{CalendarBase-C_AQ7bu5.mjs → CalendarBase-D8NmV5mS.mjs} +5 -5
  153. package/__chunks__/{CalendarBase-BgzOdHfS.js → CalendarBase-RcVbhUvM.js} +1 -1
  154. package/__chunks__/{Card-svNtJnxD.js → Card-BM2DKiVA.js} +2 -2
  155. package/__chunks__/{Card-DLf_ttOB.mjs → Card-CJug4GMX.mjs} +2 -2
  156. package/__chunks__/{Checkbox-BMBM6doF.mjs → Checkbox-C8XZu-1F.mjs} +7 -7
  157. package/__chunks__/{Checkbox-DEmP9BGE.js → Checkbox-sznEdCc0.js} +2 -2
  158. package/__chunks__/{CodeSnippet-BBZpDbHX.js → CodeSnippet-Bpf7eWjq.js} +2 -2
  159. package/__chunks__/{CodeSnippet-B6KCRlKQ.mjs → CodeSnippet-DOyQDfxp.mjs} +2 -2
  160. package/__chunks__/{DatePickerBase-VNenwOmb.mjs → DatePickerBase-BJH3bhGM.mjs} +10 -10
  161. package/__chunks__/{DatePickerBase-WNWiVJoF.js → DatePickerBase-BWFcyR_m.js} +2 -2
  162. package/__chunks__/{Dialog-E2U6mUFU.mjs → Dialog-BBt18JUl.mjs} +7 -7
  163. package/__chunks__/{FocusScope-CQhiv02m.mjs → FocusScope-jG-ZgYgr.mjs} +2 -2
  164. package/__chunks__/{HelpMenu-CTNmYcKm.js → HelpMenu-B3gwBqqY.js} +2 -2
  165. package/__chunks__/{HelpMenu-Bed-PzGS.mjs → HelpMenu-DQngktSJ.mjs} +3 -3
  166. package/__chunks__/{InputCaption-z01Eep0I.js → InputCaption-G9D1cPnP.js} +1 -1
  167. package/__chunks__/{InputCaption-CRtCXzV7.mjs → InputCaption-aU5qZQlo.mjs} +1 -1
  168. package/__chunks__/{InputField-Bb98b1MA.js → InputField-CPgMRigD.js} +2 -2
  169. package/__chunks__/{InputField-Dm5yHcWV.mjs → InputField-D4feGzmR.mjs} +5 -5
  170. package/__chunks__/{KebabButton-B9eYB6ZD.js → KebabButton-B97kYKaW.js} +1 -1
  171. package/__chunks__/{KebabButton-gf3gFlb0.mjs → KebabButton-tTikhARu.mjs} +2 -2
  172. package/__chunks__/{Menu-BVTFMAX-.js → Menu-BjKQfXId.js} +2 -2
  173. package/__chunks__/{Menu-DJS86zDM.mjs → Menu-L3un-ZpR.mjs} +13 -13
  174. package/__chunks__/{Notification-lg6ggtug.mjs → Notification-C22_98O5.mjs} +350 -36
  175. package/__chunks__/{Notification-BCS0ugaf.js → Notification-eckCE8Jj.js} +348 -34
  176. package/__chunks__/{Overlay-CG-kKp6T.mjs → Overlay-huXBYY4a.mjs} +2 -2
  177. package/__chunks__/{PillGroup-DZtHC3NK.mjs → PillGroup-8hng2YcX.mjs} +15 -15
  178. package/__chunks__/{PillGroup-D-VEy6sn.js → PillGroup-q2LMLV6q.js} +1 -1
  179. package/__chunks__/{RadioGroup-ppUojVMB.mjs → RadioGroup-CaCZDI4f.mjs} +9 -9
  180. package/__chunks__/{RadioGroup-CDmT0FW5.js → RadioGroup-Cbzsv5jw.js} +2 -2
  181. package/__chunks__/{RangeCalendar-rMPxj6HM.mjs → RangeCalendar-DhFnV8j-.mjs} +1 -1
  182. package/__chunks__/{RangeCalendar-B5UtHhmt.js → RangeCalendar-aUakXSjU.js} +1 -1
  183. package/__chunks__/{SelectOverlay-DgDBimW8.js → SelectOverlay-BFRRqmYL.js} +1 -1
  184. package/__chunks__/{SelectOverlay-CG2jyYZ_.mjs → SelectOverlay-CsxfifYV.mjs} +10 -10
  185. package/__chunks__/{SelectorErrorTooltip-Dkuaiq7N.mjs → SelectorErrorTooltip-C5XJ5swy.mjs} +2 -2
  186. package/__chunks__/{SelectorErrorTooltip-BfKzfYpQ.js → SelectorErrorTooltip-EwN0tf2g.js} +2 -2
  187. package/__chunks__/{Spinner-C4B8utkI.mjs → Spinner-BsFJZqxe.mjs} +1 -1
  188. package/__chunks__/{Spinner-BQg8KbBa.js → Spinner-BsvfYBAO.js} +1 -1
  189. package/__chunks__/{Stepper-Dbvg5Wn_.mjs → Stepper-F7Czxecp.mjs} +2 -2
  190. package/__chunks__/{TabNav-CNAVzfBp.mjs → TabNav-DbDaDR6R.mjs} +1 -1
  191. package/__chunks__/{Tabs-Chw75GHi.mjs → Tabs-DbH5NmIf.mjs} +2 -2
  192. package/__chunks__/Text-B1xglKFU.js +112 -0
  193. package/__chunks__/Text-CX5GoBTS.mjs +113 -0
  194. package/__chunks__/{TextField-HXNCIy4W.mjs → TextField-BwGqzpya.mjs} +1 -1
  195. package/__chunks__/{TextField-Co8OtDnO.js → TextField-D1YUSD6j.js} +1 -1
  196. package/__chunks__/{Theme-CctofSlt.mjs → Theme-Bzhg0otp.mjs} +1 -1
  197. package/__chunks__/{Theme-Ck5K42IR.js → Theme-Cos5kTlc.js} +1 -1
  198. package/__chunks__/{Toggle-C1cAD3ld.js → Toggle-13H0VeGP.js} +1 -1
  199. package/__chunks__/{Toggle-Dm0_ZvLs.mjs → Toggle-DqKzs3Y8.mjs} +4 -4
  200. package/__chunks__/{Tooltip-DzWQUbuB.mjs → Tooltip-By8WH1wI.mjs} +6 -6
  201. package/__chunks__/{Tooltip-C9bST6SD.js → Tooltip-DP2EYuM4.js} +1 -1
  202. package/__chunks__/{UnstyledButton-D0_XmlIu.mjs → UnstyledButton-0yreaZnh.mjs} +1 -1
  203. package/__chunks__/{VisuallyHidden-Buyb8r_B.mjs → VisuallyHidden-DLuOutNi.mjs} +1 -1
  204. package/__chunks__/{ariaHideOutside-b0UviP2F.mjs → ariaHideOutside-DRsDXtWO.mjs} +3 -3
  205. package/__chunks__/{focusSafely-psnzsNzD.mjs → focusSafely-BW4_g0fd.mjs} +1 -1
  206. package/__chunks__/{tokens-CyXKQDx6.mjs → tokens-D4KvbbyC.mjs} +1 -0
  207. package/__chunks__/{tokens-MDLCVf35.js → tokens-oBdmeeGv.js} +1 -0
  208. package/__chunks__/{useButton-Doz4-YMS.mjs → useButton-ovH6gI84.mjs} +2 -2
  209. package/__chunks__/{useDialog-B6qJASRh.mjs → useDialog-zKH03v_d.mjs} +2 -2
  210. package/__chunks__/{useFocus-BL_s_3zv.mjs → useFocus-BJE6cxrg.mjs} +1 -1
  211. package/__chunks__/{useFocusRing-4hM0Ggs3.mjs → useFocusRing-Dg_M1jfs.mjs} +3 -3
  212. package/__chunks__/{useFocusVisible-CQ1e0o7u.mjs → useFocusVisible-DgcLCVnV.mjs} +2 -2
  213. package/__chunks__/{useFocusWithin-BgSjulWP.mjs → useFocusWithin-BE5KE588.mjs} +1 -1
  214. package/__chunks__/{useFocusable-C-Ge2Ht4.mjs → useFocusable-B5QcOTFc.mjs} +2 -2
  215. package/__chunks__/{useFormValidation-Crn66hAu.mjs → useFormValidation-gt5I8m2g.mjs} +1 -1
  216. package/__chunks__/{useHasTabbableChild-DQC24yLO.mjs → useHasTabbableChild-BBua_oUS.mjs} +1 -1
  217. package/__chunks__/{useHighlightSelectionDescription-BGq4guwQ.mjs → useHighlightSelectionDescription-Dl5YfxVo.mjs} +1 -1
  218. package/__chunks__/{useHover-BBXJy5NT.mjs → useHover-mdyQ6kou.mjs} +1 -1
  219. package/__chunks__/{useLink-Dmu5rS4r.mjs → useLink-Dr9Pjalq.mjs} +2 -2
  220. package/__chunks__/{useListBoxSection-CpQ4pADf.mjs → useListBoxSection-Bw5OEI4S.mjs} +6 -6
  221. package/__chunks__/{useMenuTrigger-BlLkvrnl.mjs → useMenuTrigger-C9nRdVJk.mjs} +3 -3
  222. package/__chunks__/{useMenuTriggerState-C-zvqrX2.mjs → useMenuTriggerState-BHenEvUl.mjs} +1 -1
  223. package/__chunks__/{useModalOverlay-BlCaGnUr.mjs → useModalOverlay-BLiaW3WH.mjs} +2 -2
  224. package/__chunks__/{useOverlayPosition-D8MX_oIt.mjs → useOverlayPosition-_GnIrSzW.mjs} +2 -2
  225. package/__chunks__/{useOverlayTrigger-Coc4zW72.mjs → useOverlayTrigger-BIc8jsUc.mjs} +1 -1
  226. package/__chunks__/{usePress-BH70cn5g.mjs → usePress-DQ3FxwWo.mjs} +2 -2
  227. package/__chunks__/{useSelectableItem-Xr4pjjqP.mjs → useSelectableItem-DcveeRN2.mjs} +4 -4
  228. package/__chunks__/{useSelectableList-D7mL6j6I.mjs → useSelectableList-C_zJw1dp.mjs} +1 -1
  229. package/__chunks__/{useTextField-Dn8JlzYF.mjs → useTextField-B6vr1ZoD.mjs} +3 -3
  230. package/__chunks__/{useToggle-BlKdU7Ta.mjs → useToggle-C7k9_K6R.mjs} +2 -2
  231. package/__chunks__/{utilities-BB2zmROs.mjs → utilities-U5Ql_Myz.mjs} +3 -3
  232. package/package.json +3 -3
  233. package/style.css +298 -207
  234. package/styles/_token-helpers.scss +4 -0
  235. package/__chunks__/Text-BYGcKHR7.mjs +0 -110
  236. package/__chunks__/Text-DZ601qf9.js +0 -109
@@ -30,3 +30,7 @@
30
30
  $cleanedComponentProp: string.clean-name($componentProp);
31
31
  @return var(--ezui-c-#{$cleanedComponentName}-#{$cleanedComponentProp});
32
32
  }
33
+
34
+ @function negate($token) {
35
+ @return calc(#{$token} * -1);
36
+ }
@@ -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;