@wireapp/react-ui-kit 9.17.9 → 9.18.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.
Files changed (188) hide show
  1. package/lib/Form/Button.js +1 -15
  2. package/lib/Form/Button.styles.js +157 -110
  3. package/lib/Form/ButtonLink.d.ts.map +1 -1
  4. package/lib/Form/ButtonLink.js +5 -16
  5. package/lib/Form/Checkbox.js +75 -45
  6. package/lib/Form/CodeInput.js +17 -6
  7. package/lib/Form/DropFileInput.js +5 -14
  8. package/lib/Form/ErrorMessage.js +8 -19
  9. package/lib/Form/Form.d.ts.map +1 -1
  10. package/lib/Form/Form.js +2 -2
  11. package/lib/Form/IndicatorRangeInput.js +6 -19
  12. package/lib/Form/IndicatorRangeInput.styles.js +36 -6
  13. package/lib/Form/Input.js +21 -18
  14. package/lib/Form/InputBlock.d.ts +1 -1
  15. package/lib/Form/InputBlock.d.ts.map +1 -1
  16. package/lib/Form/InputBlock.js +1 -1
  17. package/lib/Form/InputLabel.js +6 -20
  18. package/lib/Form/InputSubmitCombo.js +22 -25
  19. package/lib/Form/RangeInput.d.ts +0 -1
  20. package/lib/Form/RangeInput.d.ts.map +1 -1
  21. package/lib/Form/RangeInput.js +2 -14
  22. package/lib/Form/RangeInput.styles.js +26 -14
  23. package/lib/Form/RoundIconButton.js +14 -16
  24. package/lib/Form/Select.d.ts.map +1 -1
  25. package/lib/Form/Select.js +9 -16
  26. package/lib/Form/SelectComponents.d.ts.map +1 -1
  27. package/lib/Form/SelectComponents.js +21 -35
  28. package/lib/Form/SelectStyles.js +164 -82
  29. package/lib/Form/TextArea.js +11 -4
  30. package/lib/Form/Tooltip.js +2 -14
  31. package/lib/GlobalStyle.d.ts +0 -1
  32. package/lib/GlobalStyle.d.ts.map +1 -1
  33. package/lib/GlobalStyle.js +17 -3
  34. package/lib/Icon/AddPeopleIcon.js +1 -15
  35. package/lib/Icon/ArchiveIcon.js +1 -1
  36. package/lib/Icon/ArrowDown.js +1 -15
  37. package/lib/Icon/ArrowIcon.js +1 -15
  38. package/lib/Icon/AttachmentIcon.js +1 -1
  39. package/lib/Icon/AudioVideoIcon.js +1 -1
  40. package/lib/Icon/BlockIcon.js +1 -1
  41. package/lib/Icon/Brand/AndroidIcon.js +1 -1
  42. package/lib/Icon/Brand/AppleIcon.js +1 -1
  43. package/lib/Icon/Brand/ChromeIcon.js +1 -1
  44. package/lib/Icon/Brand/FacebookIcon.js +1 -1
  45. package/lib/Icon/Brand/GitHubIcon.js +1 -1
  46. package/lib/Icon/Brand/LinkedInIcon.js +1 -1
  47. package/lib/Icon/Brand/LinuxIcon.js +1 -1
  48. package/lib/Icon/Brand/MicrosoftIcon.js +1 -1
  49. package/lib/Icon/Brand/TwitterIcon.js +1 -1
  50. package/lib/Icon/CallIcon.js +1 -1
  51. package/lib/Icon/CamIcon.js +1 -1
  52. package/lib/Icon/CameraIcon.js +1 -15
  53. package/lib/Icon/CertificateExpired.js +1 -1
  54. package/lib/Icon/CertificateRevoked.js +1 -1
  55. package/lib/Icon/CheckIcon.js +1 -1
  56. package/lib/Icon/CheckRoundIcon.js +1 -1
  57. package/lib/Icon/ChevronIcon.js +1 -15
  58. package/lib/Icon/CircleCloseIcon.js +1 -1
  59. package/lib/Icon/CloseIcon.js +1 -1
  60. package/lib/Icon/CopyIcon.js +1 -1
  61. package/lib/Icon/DeviceIcon.js +1 -1
  62. package/lib/Icon/DownloadIcon.js +1 -1
  63. package/lib/Icon/EditDocumentIcon.js +1 -15
  64. package/lib/Icon/EditIcon.js +1 -1
  65. package/lib/Icon/EnterIcon.js +1 -1
  66. package/lib/Icon/ErrorIcon.js +1 -1
  67. package/lib/Icon/ExpiresSoon.js +1 -1
  68. package/lib/Icon/FileIcon.js +1 -1
  69. package/lib/Icon/GifIcon.js +1 -1
  70. package/lib/Icon/GridIcon.js +1 -15
  71. package/lib/Icon/GroupIcon.js +1 -1
  72. package/lib/Icon/HangupIcon.js +1 -1
  73. package/lib/Icon/HideIcon.js +1 -1
  74. package/lib/Icon/ImageIcon.js +1 -1
  75. package/lib/Icon/InfoIcon.js +1 -1
  76. package/lib/Icon/InviteIcon.js +1 -1
  77. package/lib/Icon/LeaveIcon.js +1 -1
  78. package/lib/Icon/LinkIcon.js +1 -15
  79. package/lib/Icon/ListIcon.js +1 -1
  80. package/lib/Icon/LockIcon.js +1 -1
  81. package/lib/Icon/MLSVerified.js +1 -1
  82. package/lib/Icon/MessageIcon.js +1 -1
  83. package/lib/Icon/MinusIcon.js +1 -1
  84. package/lib/Icon/MoreIcon.js +1 -1
  85. package/lib/Icon/MuteIcon.js +1 -1
  86. package/lib/Icon/NotificationIcon.js +1 -1
  87. package/lib/Icon/NotificationOffIcon.js +1 -1
  88. package/lib/Icon/OptionsIcon.js +1 -1
  89. package/lib/Icon/OutlineCheck.d.ts +3 -0
  90. package/lib/Icon/OutlineCheck.d.ts.map +1 -0
  91. package/lib/Icon/OutlineCheck.js +25 -0
  92. package/lib/Icon/PeopleIcon.js +1 -15
  93. package/lib/Icon/PingIcon.js +1 -1
  94. package/lib/Icon/PlaneIcon.js +1 -1
  95. package/lib/Icon/PlusIcon.js +1 -1
  96. package/lib/Icon/ProfileIcon.js +1 -1
  97. package/lib/Icon/ProteusVerified.js +1 -1
  98. package/lib/Icon/RecordBoldIcon.js +4 -18
  99. package/lib/Icon/RecordIcon.js +1 -1
  100. package/lib/Icon/RecordPendingIcon.js +1 -1
  101. package/lib/Icon/ReloadIcon.js +1 -1
  102. package/lib/Icon/SVGIcon.js +2 -14
  103. package/lib/Icon/ScreenshareIcon.js +1 -1
  104. package/lib/Icon/SearchIcon.js +1 -1
  105. package/lib/Icon/ServicesIcon.js +1 -1
  106. package/lib/Icon/SettingsIcon.js +1 -1
  107. package/lib/Icon/ShowIcon.js +1 -1
  108. package/lib/Icon/SignIcon.js +1 -1
  109. package/lib/Icon/SpeakerIcon.js +1 -1
  110. package/lib/Icon/StarIcon.js +1 -1
  111. package/lib/Icon/SupportIcon.js +1 -1
  112. package/lib/Icon/TeamIcon.js +1 -1
  113. package/lib/Icon/TimedIcon.js +1 -1
  114. package/lib/Icon/TrashCrossIcon.js +1 -1
  115. package/lib/Icon/TrashIcon.js +1 -1
  116. package/lib/Icon/TriangleIcon.js +1 -15
  117. package/lib/Icon/UploadIcon.js +1 -1
  118. package/lib/Icon/VerificationShieldIcon.js +1 -4
  119. package/lib/Icon/WireIcon.js +1 -1
  120. package/lib/Icon/index.d.ts +1 -0
  121. package/lib/Icon/index.d.ts.map +1 -1
  122. package/lib/Icon/index.js +1 -0
  123. package/lib/Identity/Animation.js +62 -88
  124. package/lib/Identity/Avatar.js +2 -2
  125. package/lib/Identity/AvatarGrid.js +4 -16
  126. package/lib/Identity/Logo.js +1 -15
  127. package/lib/Identity/colors-v2.js +25 -3
  128. package/lib/Identity/colors.js +11 -2
  129. package/lib/Layout/Box.d.ts +1 -1
  130. package/lib/Layout/Box.d.ts.map +1 -1
  131. package/lib/Layout/Box.js +1 -1
  132. package/lib/Layout/Column.d.ts +1 -1
  133. package/lib/Layout/Column.d.ts.map +1 -1
  134. package/lib/Layout/Column.js +2 -2
  135. package/lib/Layout/Container.js +6 -20
  136. package/lib/Layout/Content.d.ts +1 -1
  137. package/lib/Layout/Content.d.ts.map +1 -1
  138. package/lib/Layout/Content.js +1 -1
  139. package/lib/Layout/FlexBox.js +1 -1
  140. package/lib/Layout/Footer.d.ts.map +1 -1
  141. package/lib/Layout/Footer.js +1 -1
  142. package/lib/Layout/Header.d.ts +1 -1
  143. package/lib/Layout/Header.d.ts.map +1 -1
  144. package/lib/Layout/Header.js +1 -1
  145. package/lib/Layout/MatchMedia.js +8 -8
  146. package/lib/Layout/Spacer.js +1 -2
  147. package/lib/Layout/StyledApp.js +2 -16
  148. package/lib/Layout/headerMenu/HeaderMenu.js +2 -14
  149. package/lib/Layout/headerMenu/HeaderSubMenu.d.ts +1 -1
  150. package/lib/Layout/headerMenu/HeaderSubMenu.d.ts.map +1 -1
  151. package/lib/Layout/headerMenu/HeaderSubMenu.js +4 -16
  152. package/lib/Layout/headerMenu/MenuContent.js +14 -2
  153. package/lib/Layout/headerMenu/MenuItems.js +1 -1
  154. package/lib/Layout/headerMenu/MenuLink.js +28 -35
  155. package/lib/Layout/headerMenu/MenuOpenButton.js +1 -1
  156. package/lib/Layout/headerMenu/MenuScrollableItems.js +1 -1
  157. package/lib/Layout/headerMenu/MenuSubLink.js +15 -5
  158. package/lib/Menu/MenuModal.d.ts.map +1 -1
  159. package/lib/Menu/MenuModal.js +28 -35
  160. package/lib/Menu/TabBar.d.ts +1 -1
  161. package/lib/Menu/TabBar.d.ts.map +1 -1
  162. package/lib/Menu/TabBar.js +13 -22
  163. package/lib/Misc/ButtonGroup.js +38 -35
  164. package/lib/Misc/IconButton.js +63 -50
  165. package/lib/Misc/IsInViewport.js +2 -14
  166. package/lib/Misc/Loading.js +3 -15
  167. package/lib/Misc/Pagination.js +2 -14
  168. package/lib/Misc/Pill.js +1 -1
  169. package/lib/Misc/childrenWithDefaultProps.d.ts.map +1 -1
  170. package/lib/Misc/childrenWithDefaultProps.js +1 -1
  171. package/lib/Modal/Modal.js +11 -22
  172. package/lib/Modal/Overlay.d.ts +2 -2
  173. package/lib/Modal/Overlay.d.ts.map +1 -1
  174. package/lib/Modal/Overlay.js +5 -19
  175. package/lib/Text/Heading.js +49 -45
  176. package/lib/Text/Label.d.ts.map +1 -1
  177. package/lib/Text/Label.js +13 -23
  178. package/lib/Text/Line.js +1 -1
  179. package/lib/Text/Link.js +26 -31
  180. package/lib/Text/Paragraph.js +15 -23
  181. package/lib/Text/Text.js +6 -6
  182. package/lib/Text/TextLink.d.ts.map +1 -1
  183. package/lib/Text/TextLink.js +4 -16
  184. package/lib/Text/Title.js +5 -16
  185. package/lib/Theme/Theme.js +1 -1
  186. package/lib/mediaQueries.js +1 -1
  187. package/lib/util.js +1 -1
  188. package/package.json +3 -3
@@ -2,11 +2,11 @@ import * as React from 'react';
2
2
  import { CSSObject } from '@emotion/react';
3
3
  export type OverlayWrapperProps<T = HTMLDivElement> = React.HTMLProps<T>;
4
4
  export declare const overlayWrapperStyle: <T>(props: OverlayWrapperProps<T>) => CSSObject;
5
- export declare const OverlayWrapper: (props: OverlayWrapperProps<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare const OverlayWrapper: (props: OverlayWrapperProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export declare const OverlayContent: (props: React.HTMLProps<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
7
  export type OverlayBackgroundProps<T = HTMLDivElement> = React.HTMLProps<T>;
8
8
  export declare const overlayBackgroundStyle: <T>(props: OverlayBackgroundProps<T>) => CSSObject;
9
- export declare const OverlayBackground: (props: OverlayBackgroundProps<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const OverlayBackground: (props: OverlayBackgroundProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  export interface OverlayProps<T = HTMLDivElement> extends React.HTMLProps<T> {
11
11
  onBackgroundClick?: () => void;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Modal/Overlay.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAOzC,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,SAUtE,CAAC;AAEH,eAAO,MAAM,cAAc,kGAA+E,CAAC;AAE3G,eAAO,MAAM,cAAc,UAAW,MAAM,SAAS,CAAC,cAAc,CAAC,qDAsBpE,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,SAS5E,CAAC;AAEH,eAAO,MAAM,iBAAiB,qGAAqF,CAAC;AAEpH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,OAAO,8CAA2D,YAAY,qDAK1F,CAAC"}
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/Modal/Overlay.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAOzC,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,SAUtE,CAAC;AAEH,eAAO,MAAM,cAAc,UAAW,mBAAmB,qDAAiD,CAAC;AAE3G,eAAO,MAAM,cAAc,UAAW,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,qDAsBpE,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,SAS5E,CAAC;AAEH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,qDAAoD,CAAC;AAEpH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,cAAc,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1E,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,OAAO,8CAA2D,YAAY,qDAK1F,CAAC"}
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.Overlay = exports.OverlayBackground = exports.overlayBackgroundStyle = exports.OverlayContent = exports.OverlayWrapper = exports.overlayWrapperStyle = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
@@ -29,9 +18,9 @@ const overlayWrapperStyle = () => ({
29
18
  zIndex: 9997,
30
19
  });
31
20
  exports.overlayWrapperStyle = overlayWrapperStyle;
32
- const OverlayWrapper = (props) => (0, jsx_runtime_1.jsx)("div", Object.assign({ css: exports.overlayWrapperStyle }, props));
21
+ const OverlayWrapper = (props) => (0, jsx_runtime_1.jsx)("div", { css: exports.overlayWrapperStyle, ...props });
33
22
  exports.OverlayWrapper = OverlayWrapper;
34
- const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: {
23
+ const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div", { css: {
35
24
  '*': {
36
25
  color: Identity_1.COLOR.WHITE,
37
26
  },
@@ -48,7 +37,7 @@ const OverlayContent = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({
48
37
  [mediaQueries_1.media[mediaQueries_1.QueryKeys.TABLET_DOWN]]: {
49
38
  width: '100%',
50
39
  },
51
- } }, props)));
40
+ }, ...props }));
52
41
  exports.OverlayContent = OverlayContent;
53
42
  const overlayBackgroundStyle = () => ({
54
43
  animation: `${motions_1.ANIMATION.fadeIn} ${motions_1.DURATION.PROACTIVE_SLOW}ms ${motions_1.EASE.QUART}`,
@@ -61,10 +50,7 @@ const overlayBackgroundStyle = () => ({
61
50
  zIndex: 9998,
62
51
  });
63
52
  exports.overlayBackgroundStyle = overlayBackgroundStyle;
64
- const OverlayBackground = (props) => (0, jsx_runtime_1.jsx)("div", Object.assign({ css: exports.overlayBackgroundStyle }, props));
53
+ const OverlayBackground = (props) => (0, jsx_runtime_1.jsx)("div", { css: exports.overlayBackgroundStyle, ...props });
65
54
  exports.OverlayBackground = OverlayBackground;
66
- const Overlay = (_a) => {
67
- var { onBackgroundClick = util_1.noop, children = null } = _a, props = __rest(_a, ["onBackgroundClick", "children"]);
68
- return ((0, jsx_runtime_1.jsxs)(exports.OverlayWrapper, Object.assign({}, props, { "data-uie-name": "modal", children: [(0, jsx_runtime_1.jsx)(exports.OverlayContent, { children: children }), (0, jsx_runtime_1.jsx)(exports.OverlayBackground, { onClick: onBackgroundClick, "data-uie-name": "overlay-background" })] })));
69
- };
55
+ const Overlay = ({ onBackgroundClick = util_1.noop, children = null, ...props }) => ((0, jsx_runtime_1.jsxs)(exports.OverlayWrapper, { ...props, "data-uie-name": "modal", children: [(0, jsx_runtime_1.jsx)(exports.OverlayContent, { children: children }), (0, jsx_runtime_1.jsx)(exports.OverlayBackground, { onClick: onBackgroundClick, "data-uie-name": "overlay-background" })] }));
70
56
  exports.Overlay = Overlay;
@@ -1,68 +1,72 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.H4 = exports.h4Style = exports.H3 = exports.h3Style = exports.H2 = exports.h2Style = exports.H1 = exports.h1Style = exports.Heading = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
5
  const Text_1 = require("./Text");
17
6
  const mediaQueries_1 = require("../mediaQueries");
18
- const Heading = (_a) => {
19
- var { level } = _a, props = __rest(_a, ["level"]);
7
+ const Heading = ({ level, ...props }) => {
20
8
  switch (level) {
21
9
  case '2':
22
- return (0, jsx_runtime_1.jsx)(exports.H2, Object.assign({}, props));
10
+ return (0, jsx_runtime_1.jsx)(exports.H2, { ...props });
23
11
  case '3':
24
- return (0, jsx_runtime_1.jsx)(exports.H3, Object.assign({}, props));
12
+ return (0, jsx_runtime_1.jsx)(exports.H3, { ...props });
25
13
  case '4':
26
- return (0, jsx_runtime_1.jsx)(exports.H4, Object.assign({}, props));
14
+ return (0, jsx_runtime_1.jsx)(exports.H4, { ...props });
27
15
  case '1':
28
16
  default:
29
- return (0, jsx_runtime_1.jsx)(exports.H1, Object.assign({}, props));
17
+ return (0, jsx_runtime_1.jsx)(exports.H1, { ...props });
30
18
  }
31
19
  };
32
20
  exports.Heading = Heading;
33
- const h1Style = (theme, _a) => {
34
- var { block = true, color = theme.general.color, level = '1', noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "level", "noWrap", "textTransform"]);
35
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '3rem', fontWeight: 400, lineHeight: '3.5rem', marginBottom: '64px', marginTop: 0, minHeight: '3rem', [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
36
- fontSize: '2.5rem',
37
- lineHeight: '3rem',
38
- } }));
39
- };
21
+ const h1Style = (theme, { block = true, color = theme.general.color, level = '1', noWrap = false, textTransform = 'none', ...props }) => ({
22
+ ...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
23
+ fontSize: '3rem',
24
+ fontWeight: 400,
25
+ lineHeight: '3.5rem',
26
+ marginBottom: '64px',
27
+ marginTop: 0,
28
+ minHeight: '3rem',
29
+ [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
30
+ fontSize: '2.5rem',
31
+ lineHeight: '3rem',
32
+ },
33
+ });
40
34
  exports.h1Style = h1Style;
41
- const H1 = (props) => ((0, jsx_runtime_1.jsx)("h1", Object.assign({ css: (theme) => (0, exports.h1Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
35
+ const H1 = (props) => ((0, jsx_runtime_1.jsx)("h1", { css: (theme) => (0, exports.h1Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
42
36
  exports.H1 = H1;
43
- const h2Style = (theme, _a) => {
44
- var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
45
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: '1.25rem', fontWeight: 700, lineHeight: '1.75rem', marginBottom: '24px', marginTop: '32px', [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
46
- fontSize: '1.125rem',
47
- lineHeight: '1.625rem',
48
- marginBottom: '20px',
49
- marginTop: '26px',
50
- } }));
51
- };
37
+ const h2Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
38
+ ...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
39
+ fontSize: '1.25rem',
40
+ fontWeight: 700,
41
+ lineHeight: '1.75rem',
42
+ marginBottom: '24px',
43
+ marginTop: '32px',
44
+ [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
45
+ fontSize: '1.125rem',
46
+ lineHeight: '1.625rem',
47
+ marginBottom: '20px',
48
+ marginTop: '26px',
49
+ },
50
+ });
52
51
  exports.h2Style = h2Style;
53
- const H2 = (props) => ((0, jsx_runtime_1.jsx)("h2", Object.assign({ css: (theme) => (0, exports.h2Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
52
+ const H2 = (props) => ((0, jsx_runtime_1.jsx)("h2", { css: (theme) => (0, exports.h2Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
54
53
  exports.H2 = H2;
55
- const h3Style = (theme, _a) => {
56
- var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
57
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: theme.fontSizes.base, fontWeight: 600, marginBottom: '16px' }));
58
- };
54
+ const h3Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
55
+ ...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
56
+ fontSize: theme.fontSizes.base,
57
+ fontWeight: 600,
58
+ marginBottom: '16px',
59
+ });
59
60
  exports.h3Style = h3Style;
60
- const H3 = (props) => ((0, jsx_runtime_1.jsx)("h3", Object.assign({ css: (theme) => (0, exports.h3Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
61
+ const H3 = (props) => ((0, jsx_runtime_1.jsx)("h3", { css: (theme) => (0, exports.h3Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
61
62
  exports.H3 = H3;
62
- const h4Style = (theme, _a) => {
63
- var { block = true, color = theme.general.color, noWrap = false, textTransform = 'none' } = _a, props = __rest(_a, ["block", "color", "noWrap", "textTransform"]);
64
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, color, noWrap, textTransform }, props))), { fontSize: theme.fontSizes.extraSmall, fontWeight: 400, marginBottom: '5px', marginTop: '20px' }));
65
- };
63
+ const h4Style = (theme, { block = true, color = theme.general.color, noWrap = false, textTransform = 'none', ...props }) => ({
64
+ ...(0, Text_1.textStyle)(theme, { block, color, noWrap, textTransform, ...props }),
65
+ fontSize: theme.fontSizes.extraSmall,
66
+ fontWeight: 400,
67
+ marginBottom: '5px',
68
+ marginTop: '20px',
69
+ });
66
70
  exports.h4Style = h4Style;
67
- const H4 = (props) => ((0, jsx_runtime_1.jsx)("h3", Object.assign({ css: (theme) => (0, exports.h4Style)(theme, props) }, (0, Text_1.filterTextProps)(props))));
71
+ const H4 = (props) => ((0, jsx_runtime_1.jsx)("h3", { css: (theme) => (0, exports.h4Style)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
68
72
  exports.H4 = H4;
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/Text/Label.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAY,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAK7D,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAcD,eAAO,MAAM,KAAK,UAAW,UAAU,qDAEtC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AASjE,eAAO,MAAM,SAAS,UAAW,WAAW,iBAAiB,CAAC,qDAE7D,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/Text/Label.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAY,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAK7D,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAcD,eAAO,MAAM,KAAK,UAAW,UAAU,qDAEtC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AASjE,eAAO,MAAM,SAAS,UAAW,UAAU,CAAC,iBAAiB,CAAC,qDAE7D,CAAC"}
package/lib/Text/Label.js CHANGED
@@ -1,32 +1,22 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.LabelLink = exports.Label = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
5
  const Link_1 = require("./Link");
17
6
  const Text_1 = require("./Text");
18
7
  const Identity_1 = require("../Identity");
19
- const labelStyle = (theme, _a) => {
20
- var { markInvalid, bold = false, color = theme.general.color, fontSize = theme.fontSizes.small } = _a, props = __rest(_a, ["markInvalid", "bold", "color", "fontSize"]);
21
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ bold, color, fontSize }, props))), { '&:focus-within': {
22
- color: Identity_1.COLOR.BLUE,
23
- }, color: markInvalid ? Identity_1.COLOR.RED : 'initial', width: '100%' }));
24
- };
25
- const Label = (props) => ((0, jsx_runtime_1.jsx)("label", Object.assign({ css: (theme) => labelStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
8
+ const labelStyle = (theme, { markInvalid, bold = false, color = theme.general.color, fontSize = theme.fontSizes.small, ...props }) => ({
9
+ ...(0, Text_1.textStyle)(theme, { bold, color, fontSize, ...props }),
10
+ '&:focus-within': {
11
+ color: Identity_1.COLOR.BLUE,
12
+ },
13
+ color: markInvalid ? Identity_1.COLOR.RED : 'initial',
14
+ width: '100%',
15
+ });
16
+ const Label = (props) => ((0, jsx_runtime_1.jsx)("label", { css: (theme) => labelStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
26
17
  exports.Label = Label;
27
- const labelLinkStyle = (theme, _a) => {
28
- var { fontSize = theme.fontSizes.small } = _a, props = __rest(_a, ["fontSize"]);
29
- return (Object.assign({}, (0, Link_1.linkStyle)(theme, Object.assign({ fontSize }, props))));
30
- };
31
- const LabelLink = (props) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => labelLinkStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
18
+ const labelLinkStyle = (theme, { fontSize = theme.fontSizes.small, ...props }) => ({
19
+ ...(0, Link_1.linkStyle)(theme, { fontSize, ...props }),
20
+ });
21
+ const LabelLink = (props) => ((0, jsx_runtime_1.jsx)("a", { css: (theme) => labelLinkStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
32
22
  exports.LabelLink = LabelLink;
package/lib/Text/Line.js CHANGED
@@ -11,5 +11,5 @@ const lineStyle = ({ color = Identity_1.COLOR.GRAY_LIGHTEN_72 }) => ({
11
11
  marginTop: `${sizes_1.GUTTER}px`,
12
12
  });
13
13
  exports.lineStyle = lineStyle;
14
- const Line = (props) => (0, jsx_runtime_1.jsx)("hr", Object.assign({ css: (0, exports.lineStyle)(props) }, props));
14
+ const Line = (props) => (0, jsx_runtime_1.jsx)("hr", { css: (0, exports.lineStyle)(props), ...props });
15
15
  exports.Line = Line;
package/lib/Text/Link.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.Link = exports.filterLinkProps = exports.linkStyle = exports.LinkVariant = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
@@ -21,31 +10,37 @@ var LinkVariant;
21
10
  LinkVariant["PRIMARY"] = "primary";
22
11
  LinkVariant["SECONDARY"] = "secondary";
23
12
  })(LinkVariant || (exports.LinkVariant = LinkVariant = {}));
24
- const linkStyle = (theme, _a) => {
25
- var { bold = true, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase', variant = LinkVariant.SECONDARY, color = theme.general.color } = _a, props = __rest(_a, ["bold", "fontSize", "textTransform", "variant", "color"]);
26
- return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ bold, color, fontSize, textTransform }, props))), { color: color, cursor: 'pointer', textDecoration: 'none', '&:visited, &:link, &:active': {
13
+ const linkStyle = (theme, { bold = true, fontSize = theme.fontSizes.extraSmall, textTransform = 'uppercase', variant = LinkVariant.SECONDARY, color = theme.general.color, ...props }) => {
14
+ return {
15
+ ...(0, Text_1.textStyle)(theme, { bold, color, fontSize, textTransform, ...props }),
16
+ color: color,
17
+ cursor: 'pointer',
18
+ textDecoration: 'none',
19
+ '&:visited, &:link, &:active': {
27
20
  color: color,
28
- } }), (variant === LinkVariant.PRIMARY && {
29
- '&:hover, &:visited:hover, &:focus-visible': {
30
- color: theme.general.primaryColor,
31
- },
32
- fontSize: theme.fontSizes.base,
33
- fontWeight: 400,
34
- textTransform: 'none',
35
- textDecoration: 'underline',
36
- textUnderlineOffset: '2px',
37
- })), (variant === LinkVariant.SECONDARY && {
38
- transition: motions_1.defaultTransition,
39
- '&:hover': {
40
- filter: 'brightness(70%)',
41
21
  },
42
- }));
22
+ ...(variant === LinkVariant.PRIMARY && {
23
+ '&:hover, &:visited:hover, &:focus-visible': {
24
+ color: theme.general.primaryColor,
25
+ },
26
+ fontSize: theme.fontSizes.base,
27
+ fontWeight: 400,
28
+ textTransform: 'none',
29
+ textDecoration: 'underline',
30
+ textUnderlineOffset: '2px',
31
+ }),
32
+ ...(variant === LinkVariant.SECONDARY && {
33
+ transition: motions_1.defaultTransition,
34
+ '&:hover': {
35
+ filter: 'brightness(70%)',
36
+ },
37
+ }),
38
+ };
43
39
  };
44
40
  exports.linkStyle = linkStyle;
45
41
  const filterLinkProps = (props) => (0, util_1.filterProps)((0, Text_1.filterTextProps)(props), []);
46
42
  exports.filterLinkProps = filterLinkProps;
47
- const Link = (_a) => {
48
- var { targetBlank } = _a, props = __rest(_a, ["targetBlank"]);
49
- return ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => (0, exports.linkStyle)(theme, props), target: targetBlank && '_blank', rel: "noopener noreferrer" }, (0, exports.filterLinkProps)(props), { children: props.children })));
43
+ const Link = ({ targetBlank, ...props }) => {
44
+ return ((0, jsx_runtime_1.jsx)("a", { css: (theme) => (0, exports.linkStyle)(theme, props), target: targetBlank && '_blank', rel: "noopener noreferrer", ...(0, exports.filterLinkProps)(props), children: props.children }));
50
45
  };
51
46
  exports.Link = Link;
@@ -1,33 +1,25 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.Lead = exports.leadStyle = exports.Paragraph = exports.paragraphStyle = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
5
  const Text_1 = require("./Text");
17
6
  const mediaQueries_1 = require("../mediaQueries");
18
- const paragraphStyle = (theme, _a) => {
19
- var { block = true } = _a, props = __rest(_a, ["block"]);
20
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block }, props))), { marginBottom: '16px', marginTop: 0 }));
21
- };
7
+ const paragraphStyle = (theme, { block = true, ...props }) => ({
8
+ ...(0, Text_1.textStyle)(theme, { block, ...props }),
9
+ marginBottom: '16px',
10
+ marginTop: 0,
11
+ });
22
12
  exports.paragraphStyle = paragraphStyle;
23
- const Paragraph = (props) => ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => (0, exports.paragraphStyle)(theme, props) }, (0, Text_1.filterTextProps)(props))));
13
+ const Paragraph = (props) => ((0, jsx_runtime_1.jsx)("p", { css: (theme) => (0, exports.paragraphStyle)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
24
14
  exports.Paragraph = Paragraph;
25
- const leadStyle = (theme, _a) => {
26
- var { block = true, center = true, fontSize = theme.fontSizes.extraLarge } = _a, props = __rest(_a, ["block", "center", "fontSize"]);
27
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, center, fontSize }, props))), { marginBottom: '56px', marginTop: 0, [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
28
- fontSize: '1.125rem',
29
- } }));
30
- };
15
+ const leadStyle = (theme, { block = true, center = true, fontSize = theme.fontSizes.extraLarge, ...props }) => ({
16
+ ...(0, Text_1.textStyle)(theme, { block, center, fontSize, ...props }),
17
+ marginBottom: '56px',
18
+ marginTop: 0,
19
+ [mediaQueries_1.media[mediaQueries_1.QueryKeys.MOBILE]]: {
20
+ fontSize: '1.125rem',
21
+ },
22
+ });
31
23
  exports.leadStyle = leadStyle;
32
- const Lead = (props) => ((0, jsx_runtime_1.jsx)("p", Object.assign({ css: (theme) => (0, exports.leadStyle)(theme, props) }, (0, Text_1.filterTextProps)(props))));
24
+ const Lead = (props) => ((0, jsx_runtime_1.jsx)("p", { css: (theme) => (0, exports.leadStyle)(theme, props), ...(0, Text_1.filterTextProps)(props) }));
33
25
  exports.Lead = Lead;
package/lib/Text/Text.js CHANGED
@@ -73,15 +73,15 @@ const textStyle = (theme, { block = false, bold = false, center = false, color =
73
73
  whiteSpace: noWrap ? 'nowrap' : undefined,
74
74
  });
75
75
  exports.textStyle = textStyle;
76
- exports.Text = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ ref: ref, css: (theme) => (0, exports.textStyle)(theme, props) }, (0, exports.filterTextProps)(props)))));
76
+ exports.Text = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("span", { ref: ref, css: (theme) => (0, exports.textStyle)(theme, props), ...(0, exports.filterTextProps)(props) })));
77
77
  exports.Text.displayName = 'Text';
78
- exports.Bold = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, bold: true }, props))));
78
+ exports.Bold = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, bold: true, ...props })));
79
79
  exports.Bold.displayName = 'Bold';
80
- exports.Small = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, fontSize: '12px' }, props))));
80
+ exports.Small = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, fontSize: '12px', ...props })));
81
81
  exports.Small.displayName = 'Small';
82
- exports.Muted = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, muted: true }, props))));
82
+ exports.Muted = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, muted: true, ...props })));
83
83
  exports.Muted.displayName = 'Muted';
84
- exports.Uppercase = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, textTransform: 'uppercase' }, props))));
84
+ exports.Uppercase = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, textTransform: 'uppercase', ...props })));
85
85
  exports.Uppercase.displayName = 'Uppercase';
86
- exports.Large = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, Object.assign({ ref: ref, fontSize: '48px', light: true }, props))));
86
+ exports.Large = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)(exports.Text, { ref: ref, fontSize: '48px', light: true, ...props })));
87
87
  exports.Large.displayName = 'Large';
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../src/Text/TextLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAKxE,CAAC;AAEH,eAAO,MAAM,QAAQ,UAAW,cAAc,iBAAiB,CAAC,qDAE/D,CAAC"}
1
+ {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../src/Text/TextLink.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAG7D,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAKxE,CAAC;AAEH,eAAO,MAAM,QAAQ,UAAW,aAAa,CAAC,iBAAiB,CAAC,qDAE/D,CAAC"}
@@ -1,24 +1,12 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.TextLink = exports.textLinkStyle = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
5
  const Link_1 = require("./Link");
17
6
  const colors_v2_1 = require("../Identity/colors-v2");
18
- const textLinkStyle = (theme, _a) => {
19
- var { color = colors_v2_1.COLOR_V2.BLUE, fontSize = theme.fontSizes.base, bold = false, textTransform = 'none' } = _a, props = __rest(_a, ["color", "fontSize", "bold", "textTransform"]);
20
- return (Object.assign({}, (0, Link_1.linkStyle)(theme, Object.assign({ bold, color, fontSize, textTransform }, props))));
21
- };
7
+ const textLinkStyle = (theme, { color = colors_v2_1.COLOR_V2.BLUE, fontSize = theme.fontSizes.base, bold = false, textTransform = 'none', ...props }) => ({
8
+ ...(0, Link_1.linkStyle)(theme, { bold, color, fontSize, textTransform, ...props }),
9
+ });
22
10
  exports.textLinkStyle = textLinkStyle;
23
- const TextLink = (props) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ css: (theme) => (0, exports.textLinkStyle)(theme, props), rel: "noopener noreferrer" }, (0, Link_1.filterLinkProps)(props))));
11
+ const TextLink = (props) => ((0, jsx_runtime_1.jsx)("a", { css: (theme) => (0, exports.textLinkStyle)(theme, props), rel: "noopener noreferrer", ...(0, Link_1.filterLinkProps)(props) }));
24
12
  exports.TextLink = TextLink;
package/lib/Text/Title.js CHANGED
@@ -1,23 +1,12 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.Title = void 0;
15
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
16
5
  const Text_1 = require("./Text");
17
6
  const Identity_1 = require("../Identity");
18
- const titleStyle = (theme, _a) => {
19
- var { block = true, center = true, fontSize = ' 2rem', color = Identity_1.COLOR.GRAY, bold = true } = _a, props = __rest(_a, ["block", "center", "fontSize", "color", "bold"]);
20
- return (Object.assign(Object.assign({}, (0, Text_1.textStyle)(theme, Object.assign({ block, bold, center, color, fontSize }, props))), { marginBottom: '8px' }));
21
- };
22
- const Title = (props) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: (theme) => titleStyle(theme, props) }, (0, Text_1.filterTextProps)(props))));
7
+ const titleStyle = (theme, { block = true, center = true, fontSize = ' 2rem', color = Identity_1.COLOR.GRAY, bold = true, ...props }) => ({
8
+ ...(0, Text_1.textStyle)(theme, { block, bold, center, color, fontSize, ...props }),
9
+ marginBottom: '8px',
10
+ });
11
+ const Title = (props) => ((0, jsx_runtime_1.jsx)("div", { css: (theme) => titleStyle(theme, props), ...(0, Text_1.filterTextProps)(props) }));
23
12
  exports.Title = Title;
@@ -239,5 +239,5 @@ exports.themes = {
239
239
  },
240
240
  },
241
241
  };
242
- const ThemeProvider = (props) => (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, Object.assign({}, props, { theme: props.theme }));
242
+ const ThemeProvider = (props) => (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { ...props, theme: props.theme });
243
243
  exports.ThemeProvider = ThemeProvider;
@@ -41,4 +41,4 @@ exports.QUERY = {
41
41
  [QueryKeys.TABLET_DOWN]: `max-width: ${sizes_1.WIDTH.TABLET_MAX}px`,
42
42
  [QueryKeys.TABLET_UP]: `min-width: ${sizes_1.WIDTH.TABLET_MIN}px`,
43
43
  };
44
- exports.media = Object.entries(exports.QUERY).reduce((accumulator, [key, value]) => (Object.assign(Object.assign({}, accumulator), { [key]: `@media (${value})` })), {});
44
+ exports.media = Object.entries(exports.QUERY).reduce((accumulator, [key, value]) => ({ ...accumulator, [key]: `@media (${value})` }), {});
package/lib/util.js CHANGED
@@ -24,7 +24,7 @@ exports.noop = noop;
24
24
  const inlineSVG = (svg) => `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;
25
25
  exports.inlineSVG = inlineSVG;
26
26
  const filterProps = (props, propsToFilter) => {
27
- return Object.entries(props).reduce((accumulator, [key, value]) => (!propsToFilter.includes(key) ? Object.assign(Object.assign({}, accumulator), { [key]: value }) : accumulator), {});
27
+ return Object.entries(props).reduce((accumulator, [key, value]) => (!propsToFilter.includes(key) ? { ...accumulator, [key]: value } : accumulator), {});
28
28
  };
29
29
  exports.filterProps = filterProps;
30
30
  const manySelectors = (selectors, css) => selectors.reduce((acc, selector) => {
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "react-dom": "18.3.1",
43
43
  "react-helmet": "6.1.0",
44
44
  "react-hot-loader": "4.13.1",
45
- "react-styleguidist": "13.1.2",
45
+ "react-styleguidist": "13.1.3",
46
46
  "react-test-renderer": "18.3.1",
47
47
  "rimraf": "5.0.7",
48
48
  "typescript": "^5.0.4",
@@ -70,6 +70,6 @@
70
70
  "test:watch": "jest --watch",
71
71
  "test:update": "jest --updateSnapshot"
72
72
  },
73
- "version": "9.17.9",
74
- "gitHead": "0337d8fc17a5a20352faaa2d3dccfa2fc9c8e627"
73
+ "version": "9.18.1",
74
+ "gitHead": "66832e5bcf50be7819022bfdd5e608204c6e7f06"
75
75
  }