@ndlib/component-library 1.0.45 → 1.0.46

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 (175) hide show
  1. package/dist/components/composites/Card/Card.stories.js +7 -7
  2. package/dist/components/composites/Card/Card.test.js +1 -1
  3. package/dist/components/composites/Card/index.js +10 -10
  4. package/dist/components/composites/CardV2/CardV2.stories.js +14 -14
  5. package/dist/components/composites/CardV2/CardV2.test.js +1 -1
  6. package/dist/components/composites/CardV2/index.js +11 -11
  7. package/dist/components/composites/DragDropList/DragDrop.test.js +1 -1
  8. package/dist/components/composites/DragDropList/DragDropList.stories.d.ts +2 -3
  9. package/dist/components/composites/DragDropList/DragDropList.stories.js +2 -2
  10. package/dist/components/composites/DragDropList/index.d.ts +1 -2
  11. package/dist/components/composites/DragDropList/index.js +5 -5
  12. package/dist/components/composites/DropdownLinks/DropdownLinks.stories.js +3 -3
  13. package/dist/components/composites/DropdownLinks/DropdownLinks.test.js +1 -1
  14. package/dist/components/composites/DropdownLinks/index.js +2 -2
  15. package/dist/components/composites/DropdownLinksV2/DropdownLinksV2.stories.js +3 -3
  16. package/dist/components/composites/DropdownLinksV2/index.js +2 -2
  17. package/dist/components/composites/EmptyState/EmptyState.stories.js +1 -1
  18. package/dist/components/composites/EmptyState/index.js +2 -2
  19. package/dist/components/composites/Modal/Modal.stories.js +2 -2
  20. package/dist/components/composites/Modal/Modal.test.js +4 -4
  21. package/dist/components/composites/Modal/index.js +5 -5
  22. package/dist/components/composites/ModalV2/ModalV2.stories.js +2 -2
  23. package/dist/components/composites/ModalV2/ModalV2.test.js +4 -4
  24. package/dist/components/composites/ModalV2/index.js +5 -5
  25. package/dist/components/composites/NavMenu/demo.js +1 -1
  26. package/dist/components/composites/NavMenu/index.js +6 -6
  27. package/dist/components/composites/NavMenuV2/demoV2.js +2 -2
  28. package/dist/components/composites/NavMenuV2/index.js +3 -3
  29. package/dist/components/composites/Seo/SeoDataDisplay/index.js +1 -1
  30. package/dist/components/composites/Seo/index.js +1 -1
  31. package/dist/components/composites/SnackBar/examples.js +7 -7
  32. package/dist/components/composites/SnackBar/index.js +4 -4
  33. package/dist/components/composites/StructuredData/index.d.ts +0 -1
  34. package/dist/components/composites/StructuredData/index.js +1 -1
  35. package/dist/components/elements/Alerts/Alerts.stories.js +2 -2
  36. package/dist/components/elements/Alerts/index.js +2 -2
  37. package/dist/components/elements/AlertsV2/AlertsV2.stories.js +2 -2
  38. package/dist/components/elements/AlertsV2/index.js +1 -1
  39. package/dist/components/elements/ArrowLink/ArrowLink.stories.js +1 -1
  40. package/dist/components/elements/ArrowLink/ArrowLink.test.js +5 -5
  41. package/dist/components/elements/ArrowLink/index.d.ts +0 -1
  42. package/dist/components/elements/ArrowLink/index.js +3 -3
  43. package/dist/components/elements/ArrowLinkV2/ArrowLinkV2.stories.js +1 -1
  44. package/dist/components/elements/ArrowLinkV2/index.d.ts +0 -1
  45. package/dist/components/elements/ArrowLinkV2/index.js +1 -1
  46. package/dist/components/elements/AutoComplete/AutoComplete.stories.js +1 -1
  47. package/dist/components/elements/BoxV2/BoxV2.stories.js +1 -1
  48. package/dist/components/elements/BoxV2/index.d.ts +2 -2
  49. package/dist/components/elements/BrandingBar/index.d.ts +0 -1
  50. package/dist/components/elements/BrandingBar/index.js +4 -4
  51. package/dist/components/elements/BrandingBarV2/index.js +1 -1
  52. package/dist/components/elements/Button/Button.stories.js +9 -9
  53. package/dist/components/elements/Button/Button.test.js +1 -1
  54. package/dist/components/elements/Button/index.d.ts +14 -14
  55. package/dist/components/elements/Button/index.js +4 -4
  56. package/dist/components/elements/ButtonV2/ButtonV2.stories.js +9 -9
  57. package/dist/components/elements/ButtonV2/ButtonV2.test.js +1 -1
  58. package/dist/components/elements/ButtonV2/index.d.ts +15 -15
  59. package/dist/components/elements/ButtonV2/index.js +2 -2
  60. package/dist/components/elements/CheckboxGroup/index.js +2 -2
  61. package/dist/components/elements/CheckboxGroupV2/index.js +2 -2
  62. package/dist/components/elements/ColumnV2/index.d.ts +2 -2
  63. package/dist/components/elements/ColumnV2/index.js +1 -1
  64. package/dist/components/elements/ConsentBanner/ConsentBanner.stories.js +1 -1
  65. package/dist/components/elements/ConsentBanner/index.js +4 -4
  66. package/dist/components/elements/DatePicker/DatePicker.stories.js +3 -3
  67. package/dist/components/elements/DatePicker/index.d.ts +3 -3
  68. package/dist/components/elements/DatePickerV2/DatePickerV2.stories.js +3 -3
  69. package/dist/components/elements/DatePickerV2/index.d.ts +3 -3
  70. package/dist/components/elements/Dropdown/Dropdown.stories.js +3 -3
  71. package/dist/components/elements/Dropdown/index.js +2 -2
  72. package/dist/components/elements/DropdownV2/DropdownV2.stories.js +3 -3
  73. package/dist/components/elements/DropdownV2/index.js +2 -2
  74. package/dist/components/elements/Group/index.js +1 -1
  75. package/dist/components/elements/GroupV2/index.js +1 -1
  76. package/dist/components/elements/Heading/Heading.stories.js +3 -3
  77. package/dist/components/elements/Heading/Heading.test.js +2 -2
  78. package/dist/components/elements/HeadingV2/HeadingV2.stories.js +3 -3
  79. package/dist/components/elements/HeadingV2/HeadingV2.test.js +2 -2
  80. package/dist/components/elements/Icon/Icon.stories.js +1 -1
  81. package/dist/components/elements/IconV2/IconV2.stories.js +1 -1
  82. package/dist/components/elements/Label/Label.stories.js +1 -1
  83. package/dist/components/elements/Label/Label.test.js +5 -5
  84. package/dist/components/elements/LabelV2/LabelV2.stories.js +1 -1
  85. package/dist/components/elements/LabelV2/LabelV2.test.js +5 -5
  86. package/dist/components/elements/Link/Link.stories.js +1 -1
  87. package/dist/components/elements/Link/Link.test.js +7 -7
  88. package/dist/components/elements/List/List.stories.js +5 -5
  89. package/dist/components/elements/List/List.test.js +2 -2
  90. package/dist/components/elements/List/index.js +5 -5
  91. package/dist/components/elements/ListBox/index.d.ts +2 -17
  92. package/dist/components/elements/ListBox/index.js +3 -3
  93. package/dist/components/elements/ListBoxV2/index.d.ts +2 -18
  94. package/dist/components/elements/ListBoxV2/index.js +2 -2
  95. package/dist/components/elements/ListV2/ListV2.stories.js +5 -5
  96. package/dist/components/elements/ListV2/index.js +5 -5
  97. package/dist/components/elements/Markdown/index.d.ts +0 -1
  98. package/dist/components/elements/Markdown/index.js +2 -2
  99. package/dist/components/elements/MarkdownV2/index.d.ts +0 -1
  100. package/dist/components/elements/MarkdownV2/index.js +2 -2
  101. package/dist/components/elements/MonthPicker/MonthPicker.stories.js +2 -2
  102. package/dist/components/elements/MonthPickerV2/MonthPickerV2.stories.js +2 -2
  103. package/dist/components/elements/Paragraph/Paragraph.stories.js +2 -2
  104. package/dist/components/elements/ParagraphV2/ParagraphV2.stories.js +2 -2
  105. package/dist/components/elements/Pill/Pill.stories.js +3 -3
  106. package/dist/components/elements/Pill/index.d.ts +6 -6
  107. package/dist/components/elements/Pill/index.js +2 -2
  108. package/dist/components/elements/PillV2/PillV2.stories.js +3 -3
  109. package/dist/components/elements/PillV2/index.d.ts +6 -6
  110. package/dist/components/elements/PillV2/index.js +1 -1
  111. package/dist/components/elements/RadioGroup/index.js +2 -2
  112. package/dist/components/elements/RadioGroupV2/index.js +2 -2
  113. package/dist/components/elements/RawHtml/index.d.ts +0 -1
  114. package/dist/components/elements/ReadMore/ReadMore.stories.js +4 -4
  115. package/dist/components/elements/ReadMore/index.js +3 -3
  116. package/dist/components/elements/ReadMoreV2/ReadMoreV2.stories.js +4 -4
  117. package/dist/components/elements/ReadMoreV2/index.js +3 -3
  118. package/dist/components/elements/RowV2/index.d.ts +4 -4
  119. package/dist/components/elements/RowV2/index.js +1 -1
  120. package/dist/components/elements/Select/Select.stories.js +3 -3
  121. package/dist/components/elements/Select/index.js +7 -7
  122. package/dist/components/elements/SelectV2/SelectV2.stories.js +3 -3
  123. package/dist/components/elements/SelectV2/index.js +4 -4
  124. package/dist/components/elements/Spinner/Spinner.stories.js +1 -1
  125. package/dist/components/elements/Spinner/index.d.ts +0 -1
  126. package/dist/components/elements/SpinnerV2/SpinnerV2.stories.js +1 -1
  127. package/dist/components/elements/SpinnerV2/index.d.ts +0 -1
  128. package/dist/components/elements/TabList/example.js +2 -2
  129. package/dist/components/elements/TabList/index.js +2 -2
  130. package/dist/components/elements/TabListV2/example.js +2 -2
  131. package/dist/components/elements/TabListV2/index.js +2 -2
  132. package/dist/components/elements/Table/Table.stories.js +18 -18
  133. package/dist/components/elements/Table/Table.test.js +1 -1
  134. package/dist/components/elements/Table/index.d.ts +0 -1
  135. package/dist/components/elements/Table/index.js +8 -8
  136. package/dist/components/elements/TextInput/TextInput.stories.js +4 -4
  137. package/dist/components/elements/TextInput/TextInput.test.js +2 -2
  138. package/dist/components/elements/TextInput/index.d.ts +10 -10
  139. package/dist/components/elements/TextInput/index.js +7 -7
  140. package/dist/components/elements/TextInputV2/TextInputV2.stories.js +4 -4
  141. package/dist/components/elements/TextInputV2/TextInputV2.test.js +1 -1
  142. package/dist/components/elements/TextInputV2/index.d.ts +11 -11
  143. package/dist/components/elements/TextInputV2/index.js +4 -4
  144. package/dist/components/elements/layout/Box.d.ts +2 -2
  145. package/dist/components/elements/layout/Box.stories.js +1 -1
  146. package/dist/components/elements/layout/Column.d.ts +2 -2
  147. package/dist/components/elements/layout/Column.js +1 -1
  148. package/dist/components/elements/layout/Flex.stories.js +4 -4
  149. package/dist/components/elements/layout/Flex.test.js +2 -2
  150. package/dist/components/elements/layout/Row.d.ts +3 -3
  151. package/dist/components/elements/layout/Row.js +1 -1
  152. package/dist/components/elements/option.d.ts +0 -1
  153. package/dist/components/providers/alerts.js +1 -1
  154. package/dist/components/providers/componentConfig.js +1 -1
  155. package/dist/components/providers/componentConfigV2.js +1 -1
  156. package/dist/components/providers/dialogs.js +2 -2
  157. package/dist/components/providers/env.js +2 -2
  158. package/dist/components/providers/media.js +2 -2
  159. package/dist/components/providers/mediaV2.js +2 -2
  160. package/dist/components/providers/menu.js +1 -1
  161. package/dist/components/providers/snackBar.d.ts +0 -1
  162. package/dist/components/providers/snackBar.js +2 -2
  163. package/dist/components/providers/ui.js +1 -1
  164. package/dist/components/providers/uiV2.js +1 -1
  165. package/dist/components/providers/uniqueIds.js +1 -1
  166. package/dist/theme/Color.stories.js +1 -1
  167. package/dist/theme/Typography.stories.js +1 -1
  168. package/dist/theme/colors.d.ts +2 -2
  169. package/dist/theme/colors.js +4 -2
  170. package/dist/theme/css-variables.css +2 -2
  171. package/dist/theme/index.d.ts +7 -90
  172. package/dist/theme/index.js +2 -2
  173. package/dist/theme/typography.d.ts +1 -1
  174. package/dist/utils/test.js +2 -2
  175. package/package.json +5 -5
@@ -27,21 +27,21 @@ export const ModalV2 = (_a) => {
27
27
  const { breakpoint } = useMediaQueryV2();
28
28
  const { modal } = useComponentConfig();
29
29
  const shouldShowFooter = footer !== undefined || (actions !== undefined && actions.length > 0);
30
- const modalBody = (_jsxs(GroupV2, Object.assign({ type: GROUPV2_TYPE.REGION, sx: { my: 0 } }, { children: [!hideHeading && (_jsxs(RowV2, Object.assign({ justify: "space-between", align: "center", sx: {
30
+ const modalBody = (_jsxs(GroupV2, { type: GROUPV2_TYPE.REGION, sx: { my: 0 }, children: [!hideHeading && (_jsxs(RowV2, { justify: "space-between", align: "center", sx: {
31
31
  p: 3,
32
32
  borderBottom: 'solid 1px',
33
33
  borderColor: COLOR.LIGHT_GRAY,
34
- } }, { children: [_jsx(HeadingV2, Object.assign({ size: HEADINGV2_SIZE.SM, typography: TYPOGRAPHY_TYPE.CONTROL_MEDIUM, sx: { mt: 0 } }, { children: heading })), _jsx(ButtonV2, Object.assign({ type: BUTTONV2_TYPE.TEXT, onClick: (e) => {
34
+ }, children: [_jsx(HeadingV2, { size: HEADINGV2_SIZE.SM, typography: TYPOGRAPHY_TYPE.CONTROL_MEDIUM, sx: { mt: 0 }, children: heading }), _jsx(ButtonV2, { type: BUTTONV2_TYPE.TEXT, onClick: (e) => {
35
35
  e.preventDefault();
36
36
  e.stopPropagation();
37
37
  close(e);
38
- } }, { children: "Close" }))] }))), _jsx(RowV2, Object.assign({ sx: Object.assign({ p: 3 }, bodyStyles) }, { children: children })), shouldShowFooter && (_jsxs(RowV2, Object.assign({ sx: { borderTop: 'solid 1px', borderColor: COLOR.LIGHT_GRAY, p: 3 } }, { children: [footer, actions !== undefined && (_jsx(RowV2, Object.assign({ sx: { width: '100%', justifyContent: 'flex-end' } }, { children: actions.map((action, index) => (_jsx(ButtonV2, Object.assign({ type: action.isPrimary
38
+ }, children: "Close" })] })), _jsx(RowV2, { sx: Object.assign({ p: 3 }, bodyStyles), children: children }), shouldShowFooter && (_jsxs(RowV2, { sx: { borderTop: 'solid 1px', borderColor: COLOR.LIGHT_GRAY, p: 3 }, children: [footer, actions !== undefined && (_jsx(RowV2, { sx: { width: '100%', justifyContent: 'flex-end' }, children: actions.map((action, index) => (_jsx(ButtonV2, Object.assign({ type: action.isPrimary
39
39
  ? BUTTONV2_TYPE.DEFAULT
40
40
  : BUTTONV2_TYPE.OUTLINE, onClick: (e) => {
41
41
  action.onClick(e);
42
42
  }, sx: {
43
43
  mr: index < actions.length - 1 ? 1 : 0,
44
- } }, action.buttonProps, { children: action.label }), index))) })))] })))] })));
44
+ } }, action.buttonProps, { children: action.label }), index))) }))] }))] }));
45
45
  return (_jsx(ReactModal, Object.assign({ isOpen: isOpen, shouldFocusAfterRender: true, appElement: modal.appElement, onRequestClose: (e) => {
46
46
  e.preventDefault();
47
47
  e.stopPropagation();
@@ -61,5 +61,5 @@ export const ModalV2 = (_a) => {
61
61
  marginRight: '-50%',
62
62
  transform: 'translate(-50%, -50%)',
63
63
  },
64
- } }, { children: modalBody })));
64
+ }, children: modalBody })));
65
65
  };
@@ -169,4 +169,4 @@ const demoMenu = {
169
169
  },
170
170
  ],
171
171
  };
172
- export const DemoMenuImplementation = () => (_jsx(MenuProvider, Object.assign({ menu: demoMenu }, { children: ({ menu, getMenuProps, getMenuItemProps }) => (_jsxs(_Fragment, { children: [_jsx(Row, Object.assign({}, getMenuProps(), { children: menu.items.map((menuItem) => (_createElement(Button, Object.assign({}, getMenuItemProps([menuItem.id]), { sx: { m: 1 }, key: menuItem.id }), menuItem.label))) })), _jsx(NavMenu, {})] })) })));
172
+ export const DemoMenuImplementation = () => (_jsx(MenuProvider, { menu: demoMenu, children: ({ menu, getMenuProps, getMenuItemProps }) => (_jsxs(_Fragment, { children: [_jsx(Row, Object.assign({}, getMenuProps(), { children: menu.items.map((menuItem) => (_createElement(Button, Object.assign({}, getMenuItemProps([menuItem.id]), { sx: { m: 1 }, key: menuItem.id }), menuItem.label))) })), _jsx(NavMenu, {})] })) }));
@@ -35,7 +35,7 @@ export const NavMenu = (props) => {
35
35
  return null;
36
36
  }
37
37
  const submenu = activeTopLevelMenu.action.submenu;
38
- return (_jsxs(Row, Object.assign({}, rest, { sx: Object.assign({ justifyContent: 'center', p: 3, border: 'solid 1px', borderColor: COLOR.EXTRA_LIGHT_GRAY, bg: COLOR.WHITE, borderRadius: '4px', margin: '0px 10px 0px 10px' }, sx) }, { children: [_jsx(Column, { sx: { flexGrow: 1 } }), submenu.items.map((submenuItem, i) => {
38
+ return (_jsxs(Row, Object.assign({}, rest, { sx: Object.assign({ justifyContent: 'center', p: 3, border: 'solid 1px', borderColor: COLOR.EXTRA_LIGHT_GRAY, bg: COLOR.WHITE, borderRadius: '4px', margin: '0px 10px 0px 10px' }, sx), children: [_jsx(Column, { sx: { flexGrow: 1 } }), submenu.items.map((submenuItem, i) => {
39
39
  if (!(submenuItem.action.type === MENU_ACTION_TYPE.SUBMENU)) {
40
40
  return null;
41
41
  }
@@ -43,18 +43,18 @@ export const NavMenu = (props) => {
43
43
  const submenuPath = [topLevelMenuId, submenuItem.id];
44
44
  const link = '//' + document.location.host + topLevelMenuId;
45
45
  const category = topLevelMenuId.charAt(1).toUpperCase() + topLevelMenuId.slice(2);
46
- return (_jsxs(Column, Object.assign({ sx: {
46
+ return (_jsxs(Column, { sx: {
47
47
  flexBasis: '300px',
48
48
  py: 2,
49
49
  px: 4,
50
50
  flexShrink: 0,
51
51
  flexGrow: 0,
52
- } }, { children: [_jsx(Heading, Object.assign({ standalone: true, size: HEADING_SIZE.SM, underline: true }, getMenuItemProps(submenuPath), { children: submenuItem.label })), _jsx(List, Object.assign({}, getMenuProps(submenuPath), { icon: ChevronRightIcon, iconSize: FONT_SIZE.MS }, { children: leafMenuItems.map((leafMenuItem, i) => {
52
+ }, children: [_jsx(Heading, Object.assign({ standalone: true, size: HEADING_SIZE.SM, underline: true }, getMenuItemProps(submenuPath), { children: submenuItem.label })), _jsx(List, Object.assign({}, getMenuProps(submenuPath), { icon: ChevronRightIcon, iconSize: FONT_SIZE.MS, children: leafMenuItems.map((leafMenuItem, i) => {
53
53
  var _a;
54
54
  const leafMenuPath = submenuPath.concat(leafMenuItem.id);
55
- return (_jsx(ListItem, Object.assign({ index: i, sx: { mt: 2 } }, getMenuItemProps(leafMenuPath), { children: _jsx(Link, Object.assign({ to: (_a = leafMenuItem === null || leafMenuItem === void 0 ? void 0 : leafMenuItem.action) === null || _a === void 0 ? void 0 : _a.to, sx: {
55
+ return (_jsx(ListItem, Object.assign({ index: i, sx: { mt: 2 } }, getMenuItemProps(leafMenuPath), { children: _jsx(Link, { to: (_a = leafMenuItem === null || leafMenuItem === void 0 ? void 0 : leafMenuItem.action) === null || _a === void 0 ? void 0 : _a.to, sx: {
56
56
  fontWeight: FONT_WEIGHT.BOLD,
57
- }, tabIndex: -1 }, { children: leafMenuItem.label })) }), leafMenuItem.id));
58
- }) })), i < 1 && (link.includes('esearch') || link.includes('ervices')) ? (_jsxs(ArrowLink, Object.assign({ to: link, sx: { margin: '20px 10px 10px 10px' } }, { children: ["View More ", category] }))) : null] }), submenuItem.id));
57
+ }, tabIndex: -1, children: leafMenuItem.label }) }), leafMenuItem.id));
58
+ }) })), i < 1 && (link.includes('esearch') || link.includes('ervices')) ? (_jsxs(ArrowLink, { to: link, sx: { margin: '20px 10px 10px 10px' }, children: ["View More ", category] })) : null] }, submenuItem.id));
59
59
  }), _jsx(Column, { sx: { flexGrow: 1 } })] })));
60
60
  };
@@ -180,10 +180,10 @@ const demoMenuV2 = {
180
180
  },
181
181
  ],
182
182
  };
183
- export const DemoMenuImplementationV2 = () => (_jsx(MenuProvider, Object.assign({ menu: demoMenuV2 }, { children: ({ menu, getMenuProps, getMenuItemProps }) => {
183
+ export const DemoMenuImplementationV2 = () => (_jsx(MenuProvider, { menu: demoMenuV2, children: ({ menu, getMenuProps, getMenuItemProps }) => {
184
184
  const getPropsWithoutStyle = (props) => {
185
185
  const { style: _style } = props, propsWithoutStyle = __rest(props, ["style"]);
186
186
  return propsWithoutStyle;
187
187
  };
188
188
  return (_jsxs(_Fragment, { children: [_jsx(RowV2, Object.assign({}, getMenuProps(), { children: menu.items.map((menuItem) => (_createElement(ButtonV2, Object.assign({}, getPropsWithoutStyle(getMenuItemProps([menuItem.id])), { sx: { margin: '4px' }, key: menuItem.id }), menuItem.label))) })), _jsx(NavMenuV2, {})] }));
189
- } })));
189
+ } }));
@@ -47,10 +47,10 @@ export const NavMenuV2 = (props) => {
47
47
  const submenuPath = [topLevelMenuId, submenuItem.id];
48
48
  const link = '//' + document.location.host + topLevelMenuId;
49
49
  const category = topLevelMenuId.charAt(0).toUpperCase() + topLevelMenuId.slice(1);
50
- return (_jsxs(ColumnV2, Object.assign({ className: typeSafeStyles.submenuCol }, { children: [_jsx("div", Object.assign({}, getPropsWithoutStyle(() => getMenuItemProps(submenuPath)), { children: _jsx(HeadingV2, Object.assign({ standalone: true, size: HEADINGV2_SIZE.SM, underline: true }, { children: submenuItem.label })) })), _jsx(ListV2, Object.assign({}, getPropsWithoutStyle(() => getMenuProps(submenuPath)), { icon: ChevronRightIcon, iconSize: FONT_SIZE.MS }, { children: leafMenuItems.map((leafMenuItem, i) => {
50
+ return (_jsxs(ColumnV2, { className: typeSafeStyles.submenuCol, children: [_jsx("div", Object.assign({}, getPropsWithoutStyle(() => getMenuItemProps(submenuPath)), { children: _jsx(HeadingV2, { standalone: true, size: HEADINGV2_SIZE.SM, underline: true, children: submenuItem.label }) })), _jsx(ListV2, Object.assign({}, getPropsWithoutStyle(() => getMenuProps(submenuPath)), { icon: ChevronRightIcon, iconSize: FONT_SIZE.MS, children: leafMenuItems.map((leafMenuItem, i) => {
51
51
  var _a;
52
52
  const leafMenuPath = submenuPath.concat(leafMenuItem.id);
53
- return (_jsx(ListItemV2, Object.assign({ index: i, sx: { mt: 2 } }, getPropsWithoutStyle(() => getMenuItemProps(leafMenuPath)), { children: _jsx("a", Object.assign({ href: (_a = leafMenuItem === null || leafMenuItem === void 0 ? void 0 : leafMenuItem.action) === null || _a === void 0 ? void 0 : _a.to, className: typeSafeStyles.leafMenuLink, tabIndex: -1 }, { children: leafMenuItem.label })) }), leafMenuItem.id));
54
- }) })), i < 1 && (link.includes('esearch') || link.includes('ervices')) ? (_jsxs(ArrowLinkV2, Object.assign({ to: link, sx: { m: '20px 10px 10px 10px' } }, { children: ["View More ", category] }))) : null] }), submenuItem.id));
53
+ return (_jsx(ListItemV2, Object.assign({ index: i, sx: { mt: 2 } }, getPropsWithoutStyle(() => getMenuItemProps(leafMenuPath)), { children: _jsx("a", { href: (_a = leafMenuItem === null || leafMenuItem === void 0 ? void 0 : leafMenuItem.action) === null || _a === void 0 ? void 0 : _a.to, className: typeSafeStyles.leafMenuLink, tabIndex: -1, children: leafMenuItem.label }) }), leafMenuItem.id));
54
+ }) })), i < 1 && (link.includes('esearch') || link.includes('ervices')) ? (_jsxs(ArrowLinkV2, { to: link, sx: { m: '20px 10px 10px 10px' }, children: ["View More ", category] })) : null] }, submenuItem.id));
55
55
  }), _jsx(ColumnV2, { sx: { flexGrow: 1 } })] })));
56
56
  };
@@ -3,7 +3,7 @@ import ReactDOMServer from 'react-dom/server';
3
3
  import pretty from 'pretty';
4
4
  import { Seo } from '../index';
5
5
  export const SeoDataDisplay = () => {
6
- const seoHtml = ReactDOMServer.renderToString(_jsx(Seo, { pathname: 'news/story_for_website' }));
6
+ const seoHtml = ReactDOMServer.renderToString((_jsx(Seo, { pathname: 'news/story_for_website' })));
7
7
  return (_jsx("code", { children: _jsx("pre", { children: pretty(seoHtml) }) }));
8
8
  };
9
9
  export default SeoDataDisplay;
@@ -11,6 +11,6 @@ export const Seo = ({ title, description, image, nofollow, noindex, pathname, })
11
11
  noindex: noindex || defaultNoindex,
12
12
  twitterUsername,
13
13
  };
14
- return (_jsxs(_Fragment, { children: [_jsx("link", { rel: "canonical", href: seo.url }), seo.title ? _jsx("title", Object.assign({ "data-testid": "seo-title" }, { children: seo.title })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-twitter-title", name: "twitter:title", content: seo.title })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-twitter-url", name: "twitter:url", content: seo.url })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-twitter-description", name: "twitter:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-twitter-image", property: "og:image", name: "twitter:image", content: seo.image })) : null, _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), seo.twitterUsername ? (_jsx("meta", { "data-testid": "seo-twitter-creator", name: "twitter:creator", content: seo.twitterUsername })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-og-url", property: "og:url", content: seo.url })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-og-title", property: "og:title", content: seo.title })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-og-description", property: "og:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-og-image", name: "og:image", content: seo.image })) : null, seo.nofollow ? (_jsx("meta", { "data-testid": "seo-nofollow", name: "robots", content: "nofollow" })) : null, seo.noindex ? (_jsx("meta", { "data-testid": "seo-noindex", name: "robots", content: "noindex" })) : null, _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }));
14
+ return (_jsxs(_Fragment, { children: [_jsx("link", { rel: "canonical", href: seo.url }), seo.title ? _jsx("title", { "data-testid": "seo-title", children: seo.title }) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-twitter-title", name: "twitter:title", content: seo.title })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-twitter-url", name: "twitter:url", content: seo.url })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-twitter-description", name: "twitter:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-twitter-image", property: "og:image", name: "twitter:image", content: seo.image })) : null, _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), seo.twitterUsername ? (_jsx("meta", { "data-testid": "seo-twitter-creator", name: "twitter:creator", content: seo.twitterUsername })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-og-url", property: "og:url", content: seo.url })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-og-title", property: "og:title", content: seo.title })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-og-description", property: "og:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-og-image", name: "og:image", content: seo.image })) : null, seo.nofollow ? (_jsx("meta", { "data-testid": "seo-nofollow", name: "robots", content: "nofollow" })) : null, seo.noindex ? (_jsx("meta", { "data-testid": "seo-noindex", name: "robots", content: "noindex" })) : null, _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }));
15
15
  };
16
16
  export default Seo;
@@ -7,29 +7,29 @@ import { SnackBar } from '.';
7
7
  export const BasicExample = () => {
8
8
  const { addMessage } = useSnackBar();
9
9
  const [messageCount, setMessageCount] = useState(1);
10
- return (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ onClick: () => {
10
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => {
11
11
  setMessageCount(messageCount + 1);
12
12
  addMessage({ message: `Message ${messageCount}` });
13
- } }, { children: "Add Message" })), _jsx(SnackBar, {})] }));
13
+ }, children: "Add Message" }), _jsx(SnackBar, {})] }));
14
14
  };
15
15
  export const ReplaceMessageExample = () => {
16
16
  const { addMessage } = useSnackBar();
17
17
  const [messageCount, setMessageCount] = useState(1);
18
- return (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ onClick: () => {
18
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => {
19
19
  setMessageCount(messageCount + 1);
20
20
  addMessage({ message: `Message ${messageCount}`, id: 'same-id' });
21
- } }, { children: "Add Message" })), _jsx(SnackBar, {})] }));
21
+ }, children: "Add Message" }), _jsx(SnackBar, {})] }));
22
22
  };
23
23
  export const WipeMessagesExample = () => {
24
24
  const { addMessage } = useSnackBar();
25
25
  const [messageCount, setMessageCount] = useState(1);
26
- return (_jsxs(Row, { children: [_jsx(Button, Object.assign({ onClick: () => {
26
+ return (_jsxs(Row, { children: [_jsx(Button, { onClick: () => {
27
27
  setMessageCount((count) => count + 1);
28
28
  addMessage({ message: `Message ${messageCount}` });
29
- }, sx: { mr: 1 } }, { children: "Add Message" })), _jsx(Button, Object.assign({ onClick: () => {
29
+ }, sx: { mr: 1 }, children: "Add Message" }), _jsx(Button, { onClick: () => {
30
30
  setMessageCount((count) => count + 1);
31
31
  addMessage({ message: `Message ${messageCount}` }, {
32
32
  wipePrevious: true,
33
33
  });
34
- } }, { children: "Wipe and Add" })), _jsx(SnackBar, {})] }));
34
+ }, children: "Wipe and Add" }), _jsx(SnackBar, {})] }));
35
35
  };
@@ -25,7 +25,7 @@ export const SnackBar = () => {
25
25
  const typographyStyles = getTypographyStyles(TYPOGRAPHY_TYPE.CONDENSED_TEXT_MEDIUM);
26
26
  const animation = getAnimation(messages.length, previousMessageCount);
27
27
  const animationStyle = `${animation} 100ms linear 1 forwards`;
28
- return (_jsx(Column, Object.assign({ sx: {
28
+ return (_jsx(Column, { sx: {
29
29
  position: 'fixed',
30
30
  left: 0,
31
31
  top: '100%',
@@ -35,11 +35,11 @@ export const SnackBar = () => {
35
35
  pb: 3,
36
36
  animation: animationStyle,
37
37
  zIndex: Z_INDEX.DIALOG,
38
- } }, { children: messages.map((message) => (_jsxs(Row, Object.assign({ sx: Object.assign({ width: ['90vw', '500px'], height: '56px', borderRadius: '4px', p: 4, mt: '0.5rem', border: '1px solid', bg: COLOR.PRIMARY, color: COLOR.WHITE, justifyContent: 'space-between', alignItems: 'center' }, typographyStyles) }, { children: [_jsx(Box, Object.assign({ sx: {
38
+ }, children: messages.map((message) => (_jsxs(Row, { sx: Object.assign({ width: ['90vw', '500px'], height: '56px', borderRadius: '4px', p: 4, mt: '0.5rem', border: '1px solid', bg: COLOR.PRIMARY, color: COLOR.WHITE, justifyContent: 'space-between', alignItems: 'center' }, typographyStyles), children: [_jsx(Box, { sx: {
39
39
  overflow: 'hidden',
40
40
  whiteSpace: 'nowrap',
41
41
  textOverflow: 'ellipsis',
42
- }, "aria-live": "polite" }, { children: message.message })), _jsx(Box, { children: _jsx(Button, { "aria-label": "Dismiss Notice", type: BUTTON_TYPE.TEXT, primaryIcon: CloseIcon, onClick: () => {
42
+ }, "aria-live": "polite", children: message.message }), _jsx(Box, { children: _jsx(Button, { "aria-label": "Dismiss Notice", type: BUTTON_TYPE.TEXT, primaryIcon: CloseIcon, onClick: () => {
43
43
  removeMessage(message.id);
44
- }, textColor: COLOR.WHITE }) })] }), message.id))) })));
44
+ }, textColor: COLOR.WHITE }) })] }, message.id))) }));
45
45
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type StructuredDataProps = {
3
2
  title?: string;
4
3
  pathname?: string;
@@ -55,6 +55,6 @@ export const getStructuredDataSchemas = ({ title, pathname, description, nofollo
55
55
  };
56
56
  export const StructuredData = (props) => {
57
57
  const schemas = getStructuredDataSchemas(props);
58
- return (_jsx(_Fragment, { children: schemas.map((schema, index) => (_jsx("script", Object.assign({ type: "application/ld+json" }, { children: schema }), index))) }));
58
+ return (_jsx(_Fragment, { children: schemas.map((schema, index) => (_jsx("script", { type: "application/ld+json", children: schema }, index))) }));
59
59
  };
60
60
  export default StructuredData;
@@ -10,8 +10,8 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const Default = {
13
- render: () => (_jsx(AlertsProvider, Object.assign({ startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql" }, { children: _jsx(Alerts, {}) }))),
13
+ render: () => (_jsx(AlertsProvider, { startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql", children: _jsx(Alerts, {}) })),
14
14
  };
15
15
  export const CustomizeAlertStyles = {
16
- render: () => (_jsx(AlertsProvider, Object.assign({ startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql" }, { children: _jsx(Alerts, { alertStyles: { borderRadius: '0px' } }) }))),
16
+ render: () => (_jsx(AlertsProvider, { startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql", children: _jsx(Alerts, { alertStyles: { borderRadius: '0px' } }) })),
17
17
  };
@@ -67,11 +67,11 @@ export const Alert = (_a) => {
67
67
  [ALERT_TYPE.SUCCESS]: SuccessIcon,
68
68
  }[type];
69
69
  const mergedStyles = Object.assign(Object.assign({}, style), sx);
70
- return (_jsx(Row, Object.assign({ sx: mergedStyles }, rest, { children: _jsxs(Row, Object.assign({ sx: {
70
+ return (_jsx(Row, Object.assign({ sx: mergedStyles }, rest, { children: _jsxs(Row, { sx: {
71
71
  boxSizing: 'border-box',
72
72
  margin: '0 auto',
73
73
  pl: '.5rem',
74
74
  pr: '.5rem',
75
75
  width: '100%',
76
- } }, { children: [icon && _jsx(Icon, { icon: icon, sx: { mr: 4 }, size: FONT_SIZE.LG }), _jsx(Row, Object.assign({ sx: { flexGrow: 1, justifyContent: 'center' } }, { children: _jsx(Markdown, { content: description }) })), _jsx(Button, Object.assign({ type: BUTTON_TYPE.TEXT, onClick: dismiss, sx: { ml: 4 } }, { children: "Dismiss" }))] })) })));
76
+ }, children: [icon && _jsx(Icon, { icon: icon, sx: { mr: 4 }, size: FONT_SIZE.LG }), _jsx(Row, { sx: { flexGrow: 1, justifyContent: 'center' }, children: _jsx(Markdown, { content: description }) }), _jsx(Button, { type: BUTTON_TYPE.TEXT, onClick: dismiss, sx: { ml: 4 }, children: "Dismiss" })] }) })));
77
77
  };
@@ -10,8 +10,8 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const Default = {
13
- render: () => (_jsx(AlertsProvider, Object.assign({ startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql" }, { children: _jsx(AlertsV2, {}) }))),
13
+ render: () => (_jsx(AlertsProvider, { startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql", children: _jsx(AlertsV2, {}) })),
14
14
  };
15
15
  export const CustomizeAlertStyles = {
16
- render: () => (_jsx(AlertsProvider, Object.assign({ startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql" }, { children: _jsx(AlertsV2, { alertStyles: { borderRadius: '0px' } }) }))),
16
+ render: () => (_jsx(AlertsProvider, { startTime: new Date('2022-01-01').toISOString(), endTime: new Date('2022-01-01').toISOString(), endpoint: "http://localhost:1337/graphql", children: _jsx(AlertsV2, { alertStyles: { borderRadius: '0px' } }) })),
17
17
  };
@@ -46,5 +46,5 @@ export const AlertV2 = (_a) => {
46
46
  [ALERT_TYPE.INFORMATIONAL]: InfoIcon,
47
47
  [ALERT_TYPE.SUCCESS]: SuccessIcon,
48
48
  }[type];
49
- return (_jsx(RowV2, Object.assign({ className: clsx(processedStyles, typeSafeStyles.alertWrapper), "data-alert-type": type }, rest, { children: _jsxs(RowV2, Object.assign({ className: typeSafeStyles.alertInnerWrapper }, { children: [icon && _jsx(IconV2, { icon: icon, className: typeSafeStyles.icon }), _jsx(RowV2, Object.assign({ className: typeSafeStyles.markdownWrapper }, { children: _jsx(MarkdownV2, { content: description }) })), _jsx(ButtonV2, Object.assign({ type: BUTTONV2_TYPE.TEXT, onClick: dismiss }, { children: "Dismiss" }))] })) })));
49
+ return (_jsx(RowV2, Object.assign({ className: clsx(processedStyles, typeSafeStyles.alertWrapper), "data-alert-type": type }, rest, { children: _jsxs(RowV2, { className: typeSafeStyles.alertInnerWrapper, children: [icon && _jsx(IconV2, { icon: icon, className: typeSafeStyles.icon }), _jsx(RowV2, { className: typeSafeStyles.markdownWrapper, children: _jsx(MarkdownV2, { content: description }) }), _jsx(ButtonV2, { type: BUTTONV2_TYPE.TEXT, onClick: dismiss, children: "Dismiss" })] }) })));
50
50
  };
@@ -10,5 +10,5 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const Default = {
13
- render: () => (_jsx(Column, { children: _jsx(Box, { children: _jsx(ArrowLink, Object.assign({ to: "/" }, { children: "Click Me" })) }) })),
13
+ render: () => (_jsx(Column, { children: _jsx(Box, { children: _jsx(ArrowLink, { to: "/", children: "Click Me" }) }) })),
14
14
  };
@@ -12,15 +12,15 @@ const CustomExternalLink = (props) => {
12
12
  };
13
13
  describe('ArrowLink', () => {
14
14
  it('renders default external link component without throwing', () => {
15
- const { getByRole } = render(_jsx(ArrowLink, Object.assign({ to: "https://google.com" }, { children: "Foo" })));
15
+ const { getByRole } = render(_jsx(ArrowLink, { to: "https://google.com", children: "Foo" }));
16
16
  expect(getByRole('link')).toBeInTheDocument();
17
17
  });
18
18
  it('renders default internal link component without throwing', () => {
19
- const { getByRole } = render(_jsx(ArrowLink, Object.assign({ to: "/test/path" }, { children: "Foo" })));
19
+ const { getByRole } = render(_jsx(ArrowLink, { to: "/test/path", children: "Foo" }));
20
20
  expect(getByRole('link')).toBeInTheDocument();
21
21
  });
22
22
  it('passes styles to custom component', () => {
23
- const { getByTestId } = render(_jsxs(_Fragment, { children: [_jsx(ArrowLink, Object.assign({ to: "https://google.com", sx: { mt: 1 } }, { children: "Foo" })), _jsx(ArrowLink, Object.assign({ to: "/test/route", sx: { mt: 1 } }, { children: "Foo" }))] }), {
23
+ const { getByTestId } = render(_jsxs(_Fragment, { children: [_jsx(ArrowLink, { to: "https://google.com", sx: { mt: 1 }, children: "Foo" }), _jsx(ArrowLink, { to: "/test/route", sx: { mt: 1 }, children: "Foo" })] }), {
24
24
  components: {
25
25
  link: {
26
26
  externalLinkComponent: CustomExternalLink,
@@ -28,7 +28,7 @@ describe('ArrowLink', () => {
28
28
  },
29
29
  },
30
30
  });
31
- expect(getByTestId(CUSTOM_EXTERNAL_TEST_ID)).toHaveStyle(`margin-top: 0.25rem`);
32
- expect(getByTestId(CUSTOM_INTERNAL_TEST_ID)).toHaveStyle(`margin-top: 0.25rem`);
31
+ expect(getByTestId(CUSTOM_EXTERNAL_TEST_ID)).toHaveStyle(`margin-top: 4px`);
32
+ expect(getByTestId(CUSTOM_INTERNAL_TEST_ID)).toHaveStyle(`margin-top: 4px`);
33
33
  });
34
34
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyledElementProps } from '../../../theme';
3
2
  type ArrowLinkProps = StyledElementProps<HTMLLinkElement, {
4
3
  to: string;
@@ -21,7 +21,7 @@ export const ArrowLink = (_a) => {
21
21
  fill: COLOR.EXTRA_EXTRA_LIGHT_GRAY,
22
22
  }, '>svg': {
23
23
  fill: COLOR.WHITE,
24
- } }, sx) }, { children: [_jsx("div", Object.assign({ sx: {
24
+ } }, sx), children: [_jsx("div", { sx: {
25
25
  position: 'relative',
26
26
  border: '1px solid #a7a7a7',
27
27
  borderWidth: '1px 0 2px 1px',
@@ -29,11 +29,11 @@ export const ArrowLink = (_a) => {
29
29
  padding: '0.125rem 1.5rem 0.125rem 0.5rem',
30
30
  height: '100%',
31
31
  flex: '1 1 auto',
32
- } }, { children: children })), _jsxs("svg", Object.assign({ viewBox: "0 0 16 1", preserveAspectRatio: "none", sx: {
32
+ }, children: children }), _jsxs("svg", { viewBox: "0 0 16 1", preserveAspectRatio: "none", sx: {
33
33
  width: '16px',
34
34
  right: '-16px',
35
35
  top: '0px',
36
36
  position: 'absolute',
37
37
  height: '100%',
38
- } }, { children: [_jsx("path", { d: "M0,0 0,0 16,0.5 0,1 0,1z" }), _jsx("line", { x1: "0", x2: "16", y1: "0", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.05", strokeLinecap: "butt" }), _jsx("line", { x1: "0", x2: "16", y1: "1", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.1", strokeLinecap: "butt" })] }))] })));
38
+ }, children: [_jsx("path", { d: "M0,0 0,0 16,0.5 0,1 0,1z" }), _jsx("line", { x1: "0", x2: "16", y1: "0", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.05", strokeLinecap: "butt" }), _jsx("line", { x1: "0", x2: "16", y1: "1", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.1", strokeLinecap: "butt" })] })] })));
39
39
  };
@@ -10,5 +10,5 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const Default = {
13
- render: () => (_jsx(ColumnV2, { children: _jsx(BoxV2, { children: _jsx(ArrowLinkV2, Object.assign({ to: "/" }, { children: "Click Me" })) }) })),
13
+ render: () => (_jsx(ColumnV2, { children: _jsx(BoxV2, { children: _jsx(ArrowLinkV2, { to: "/", children: "Click Me" }) }) })),
14
14
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StyledElementPropsV2 } from '../../../theme';
3
2
  type ArrowLinkV2Props = StyledElementPropsV2<HTMLAnchorElement, {
4
3
  to: string;
@@ -17,5 +17,5 @@ const typeSafeStyles = styles;
17
17
  export const ArrowLinkV2 = (_a) => {
18
18
  var { to, children, sx } = _a, rest = __rest(_a, ["to", "children", "sx"]);
19
19
  const processedSx = processSx(sx);
20
- return (_jsxs("a", Object.assign({ href: to, className: typeSafeStyles.arrowLinkWrapper, style: processedSx }, rest, { children: [_jsx(BoxV2, Object.assign({ className: typeSafeStyles.arrowLinkInnerWrapper }, { children: children })), _jsxs("svg", Object.assign({ viewBox: "0 0 16 1", preserveAspectRatio: "none", className: typeSafeStyles.arrow }, { children: [_jsx("path", { d: "M0,0 0,0 16,0.5 0,1 0,1z" }), _jsx("line", { x1: "0", x2: "16", y1: "0", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.05", strokeLinecap: "butt" }), _jsx("line", { x1: "0", x2: "16", y1: "1", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.1", strokeLinecap: "butt" })] }))] })));
20
+ return (_jsxs("a", Object.assign({ href: to, className: typeSafeStyles.arrowLinkWrapper, style: processedSx }, rest, { children: [_jsx(BoxV2, { className: typeSafeStyles.arrowLinkInnerWrapper, children: children }), _jsxs("svg", { viewBox: "0 0 16 1", preserveAspectRatio: "none", className: typeSafeStyles.arrow, children: [_jsx("path", { d: "M0,0 0,0 16,0.5 0,1 0,1z" }), _jsx("line", { x1: "0", x2: "16", y1: "0", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.05", strokeLinecap: "butt" }), _jsx("line", { x1: "0", x2: "16", y1: "1", y2: "0.5", stroke: "#a7a7a7", strokeWidth: "0.1", strokeLinecap: "butt" })] })] })));
21
21
  };
@@ -58,5 +58,5 @@ const meta = {
58
58
  };
59
59
  export default meta;
60
60
  export const Default = {
61
- render: () => (_jsx(_Fragment, { children: _jsx(Row, Object.assign({ justify: "space-between" }, { children: _jsxs(Column, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.LG }, { children: "Vegetables" })), _jsx("br", {}), _jsx(AutoComplete, { options: options, value: "cucumber", onSelect: onSelect }), _jsx("br", {}), _jsx(Paragraph, Object.assign({ size: PARAGRAPH_SIZE.LG }, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ultrices venenatis purus at porta. Etiam congue sapien leo, sed malesuada justo commodo in. Nunc consequat, massa non cursus posuere, magna eros lacinia lectus, eget lobortis mi erat ut justo. Maecenas nisi mi, mollis sed ornare vitae, pharetra sed augue. Curabitur mollis orci risus, sed imperdiet nisi aliquet et. Ut non elit nec magna rhoncus maximus sit amet ut dui. Mauris sit amet eleifend lectus. Aliquam consectetur posuere libero eu ultricies. Etiam rutrum non orci nec vulputate. Sed vel accumsan diam. Cras aliquet eros eros, sit amet pharetra eros tincidunt ut. Vestibulum est erat, eleifend dapibus eros vel, elementum vehicula risus. Etiam blandit condimentum sodales. Donec non libero in orci aliquam egestas fringilla eget purus. Suspendisse pellentesque at ligula ut accumsan." }))] }) })) })),
61
+ render: () => (_jsx(_Fragment, { children: _jsx(Row, { justify: "space-between", children: _jsxs(Column, { children: [_jsx(Heading, { size: HEADING_SIZE.LG, children: "Vegetables" }), _jsx("br", {}), _jsx(AutoComplete, { options: options, value: "cucumber", onSelect: onSelect }), _jsx("br", {}), _jsx(Paragraph, { size: PARAGRAPH_SIZE.LG, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ultrices venenatis purus at porta. Etiam congue sapien leo, sed malesuada justo commodo in. Nunc consequat, massa non cursus posuere, magna eros lacinia lectus, eget lobortis mi erat ut justo. Maecenas nisi mi, mollis sed ornare vitae, pharetra sed augue. Curabitur mollis orci risus, sed imperdiet nisi aliquet et. Ut non elit nec magna rhoncus maximus sit amet ut dui. Mauris sit amet eleifend lectus. Aliquam consectetur posuere libero eu ultricies. Etiam rutrum non orci nec vulputate. Sed vel accumsan diam. Cras aliquet eros eros, sit amet pharetra eros tincidunt ut. Vestibulum est erat, eleifend dapibus eros vel, elementum vehicula risus. Etiam blandit condimentum sodales. Donec non libero in orci aliquam egestas fringilla eget purus. Suspendisse pellentesque at ligula ut accumsan." })] }) }) })),
62
62
  };
@@ -10,5 +10,5 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const Box = {
13
- render: () => (_jsx(BoxV2Component, Object.assign({ sx: { p: 1, bg: COLOR.PRIMARY } }, { children: _jsx(BoxV2Component, { sx: { p: 1, bg: COLOR.SECONDARY } }) }))),
13
+ render: () => (_jsx(BoxV2Component, { sx: { p: 1, bg: COLOR.PRIMARY }, children: _jsx(BoxV2Component, { sx: { p: 1, bg: COLOR.SECONDARY } }) })),
14
14
  };
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { StyledElementPropsV2 } from '../../../theme';
3
3
  export type BoxV2Props = StyledElementPropsV2<HTMLDivElement>;
4
4
  export declare const BoxV2: React.ForwardRefExoticComponent<{
5
- sx?: import("../../../theme").StylesPropV2 | undefined;
5
+ sx?: import("../../../theme").StylesPropV2;
6
6
  children?: React.ReactNode;
7
7
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & object & {
8
- htmlFor?: string | undefined;
8
+ htmlFor?: string;
9
9
  } & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const BrandingBar: () => import("react").JSX.Element;
@@ -27,7 +27,7 @@ const provostLogo = Object.assign(Object.assign({}, sharedLinkStyle), { backgrou
27
27
  right: '0',
28
28
  } });
29
29
  export const BrandingBar = () => {
30
- return (_jsx("hgroup", Object.assign({ sx: {
30
+ return (_jsx("hgroup", { sx: {
31
31
  backgroundColor: COLOR.ND_PROVOST_BLUE,
32
32
  height: '50px',
33
33
  display: 'block',
@@ -35,18 +35,18 @@ export const BrandingBar = () => {
35
35
  color: COLOR.TEXT_ON_PRIMARY,
36
36
  textDecoration: 'none',
37
37
  },
38
- } }, { children: _jsx("div", Object.assign({ sx: {
38
+ }, children: _jsx("div", { sx: {
39
39
  display: 'block',
40
40
  margin: '0 auto',
41
41
  maxWidth: '1200px',
42
42
  padding: '0',
43
43
  position: 'relative',
44
- } }, { children: _jsxs("nav", Object.assign({ "aria-label": "University of Notre Dame", sx: {
44
+ }, children: _jsxs("nav", { "aria-label": "University of Notre Dame", sx: {
45
45
  boxSizing: 'border-box',
46
46
  display: 'block',
47
47
  height: '50px',
48
48
  position: 'relative',
49
49
  overflow: 'hidden',
50
50
  width: '100%',
51
- } }, { children: [_jsxs("a", Object.assign({ sx: universityLogo, href: "http://nd.edu" }, { children: ["University ", _jsx("i", { children: "of" }), " Notre Dame"] })), _jsxs("a", Object.assign({ sx: provostLogo, href: "http://provost.nd.edu" }, { children: ["Office ", _jsx("i", { children: "of the" }), " Provost"] }))] })) })) })));
51
+ }, children: [_jsxs("a", { sx: universityLogo, href: "http://nd.edu", children: ["University ", _jsx("i", { children: "of" }), " Notre Dame"] }), _jsxs("a", { sx: provostLogo, href: "http://provost.nd.edu", children: ["Office ", _jsx("i", { children: "of the" }), " Provost"] })] }) }) }));
52
52
  };
@@ -6,5 +6,5 @@ const typeSafeStyles = styles;
6
6
  const ProvostImage = 'data:image/png;base64,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';
7
7
  const UniversityLogo = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlcAAABkCAMAAACclOWcAAAABGdBTUEAALGPC/xhBQAAADNQTFRF////////////////////////////////////////////////////////////AAAA////FbWC9gAAABB0Uk5TcI+vUM8w358gYO8Qf0C/AK6MYRQAAAmFSURBVHja7ZzrlqyqDoVVFOVavv/TbgFFLlGxu/qMM/ae80+v0hJD+AghWqv7QND31cEFELiCwBUEriAIXEHgCgJXEASuIHAFgSsIAlcQuILAFQSBKwhcQeAKgsAVBK4gcAVB4AoCVxC4giBwBYErCFxBELiCwBUEriAIXEHgCgJXEASuIHAFgSsIAlcQuPq/09R1C7wArr5MlR36VQKsfyFXyhjzPLCi/Ar7BgyT3JzVr/rnDRgz/c+s/Zl71de4WuyuwX3U+4fzTuHzvH8cwsc+mcPp5cEtxyH2SZqMvhI2k0iM0Xrej2pB+VaMqxOfk2N9fjcvK/N7jGscz6OD1sRrh0afS+cVQ8Sr3WiV36G03XrbVyvKsbux9iP00b++m+r4mam/sf307KDFdPm1sW5jqRtn1cj1uSWTi1dsdt2VwezFd3825yWml+48OxIMHr8bTNkv789Lls67kO8OXLqtgZmp84rBnR6dAVtjKSMz9xdaj09f+l9tzQ7GiO1LJk15eBiuZLw3e/z4uOObtj9nd7TvDtfq+DCLNq6GMNwLlXV5E3bXBxcm/vC3dT1lxt+Qs/zyG2s/nT8s/dHVlvc2ffBXuJxf274MfG/Hytj7OsZIqo19gDNPlA5fRDTf3UCEdZCfTvGf5mKm+XYPSxZ/War88nhoTByXt6hcg8HverXVhduZZcwa2KnbsPKX89wCb1/qqGUdPTXrPkQiHanP4jw7REsaqdpau4lry3p26cqF4Ua+Z+LTbK3rtVt6lftbx8oxnA3X367BMTgYx6hkxHec86lYNieB5Ri+EkB2mP9Rg7PIcWWjcT4slxmE7/E5ylm0+FSXn0M9xQ9SlTM0NlKsF3Y/4wdKV2NndoN0ZV/exyk/PmSntTu+7P9sXARdG+zmrHdRHPbShSLpzCQLsBqs1ceol4tr6nt9y1Xqcz86gkaPWky9w+Z8cO2HgORIGEiudMmNWWXasF0/j1wpmVwwVKlu2seR5MrH2vxUd04a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';
8
8
  export const BrandingBarV2 = () => {
9
- return (_jsx("hgroup", Object.assign({ className: typeSafeStyles.hGroup }, { children: _jsx(BoxV2, Object.assign({ className: typeSafeStyles.navWrapper }, { children: _jsxs("nav", Object.assign({ "aria-label": "University of Notre Dame", className: typeSafeStyles.nav }, { children: [_jsxs("a", Object.assign({ className: clsx(typeSafeStyles.universityLogo, typeSafeStyles.sharedLink), style: { backgroundImage: `url(${UniversityLogo})` }, href: "http://nd.edu" }, { children: ["University ", _jsx("i", { children: "of" }), " Notre Dame"] })), _jsxs("a", Object.assign({ className: clsx(typeSafeStyles.provostLogo, typeSafeStyles.sharedLink), style: { backgroundImage: `url(${ProvostImage})` }, href: "http://provost.nd.edu" }, { children: ["Office ", _jsx("i", { children: "of the" }), " Provost"] }))] })) })) })));
9
+ return (_jsx("hgroup", { className: typeSafeStyles.hGroup, children: _jsx(BoxV2, { className: typeSafeStyles.navWrapper, children: _jsxs("nav", { "aria-label": "University of Notre Dame", className: typeSafeStyles.nav, children: [_jsxs("a", { className: clsx(typeSafeStyles.universityLogo, typeSafeStyles.sharedLink), style: { backgroundImage: `url(${UniversityLogo})` }, href: "http://nd.edu", children: ["University ", _jsx("i", { children: "of" }), " Notre Dame"] }), _jsxs("a", { className: clsx(typeSafeStyles.provostLogo, typeSafeStyles.sharedLink), style: { backgroundImage: `url(${ProvostImage})` }, href: "http://provost.nd.edu", children: ["Office ", _jsx("i", { children: "of the" }), " Provost"] })] }) }) }));
10
10
  };
@@ -23,7 +23,7 @@ const sizes = [
23
23
  { size: BUTTON_SIZE.SM, label: 'Small' },
24
24
  ];
25
25
  export const Default = {
26
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] })))) })),
26
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] }))) })),
27
27
  args: {
28
28
  type: BUTTON_TYPE.DEFAULT,
29
29
  children: 'Click Me',
@@ -38,14 +38,14 @@ export const CustomColor = {
38
38
  },
39
39
  };
40
40
  export const Link = {
41
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(LinkButton, Object.assign({}, args, { sx: { mt: 1 } }))] })))) })),
41
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(LinkButton, Object.assign({}, args, { sx: { mt: 1 } }))] }))) })),
42
42
  args: {
43
43
  type: BUTTON_TYPE.DEFAULT,
44
44
  children: 'Click Me',
45
45
  },
46
46
  };
47
47
  export const OutlineButton = {
48
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] })))) })),
48
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] }))) })),
49
49
  args: {
50
50
  type: BUTTON_TYPE.OUTLINE,
51
51
  children: 'Click Me',
@@ -53,7 +53,7 @@ export const OutlineButton = {
53
53
  },
54
54
  };
55
55
  export const TextButton = {
56
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] })))) })),
56
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 } }))] }))) })),
57
57
  args: {
58
58
  type: BUTTON_TYPE.TEXT,
59
59
  onClick: () => { },
@@ -61,7 +61,7 @@ export const TextButton = {
61
61
  },
62
62
  };
63
63
  export const IconButton = {
64
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, primaryIcon: SettingsIcon }))] })))) })),
64
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, primaryIcon: SettingsIcon }))] }))) })),
65
65
  args: {
66
66
  type: BUTTON_TYPE.TEXT,
67
67
  children: 'Click Me',
@@ -69,22 +69,22 @@ export const IconButton = {
69
69
  },
70
70
  };
71
71
  export const LeftIcon = {
72
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, leftIcon: SearchIcon }))] })))) })),
72
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, leftIcon: SearchIcon }))] }))) })),
73
73
  args: {
74
74
  onClick: () => { },
75
75
  children: 'Search',
76
76
  },
77
77
  };
78
78
  export const RightIcon = {
79
- render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, Object.assign({ type: GROUP_TYPE.REGION }, { children: [_jsx(Heading, Object.assign({ size: HEADING_SIZE.MD }, { children: size.label })), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, rightIcon: ArrowDropDownIcon }))] })))) })),
79
+ render: (args) => (_jsx(Column, { children: sizes.map((size) => (_jsxs(Group, { type: GROUP_TYPE.REGION, children: [_jsx(Heading, { size: HEADING_SIZE.MD, children: size.label }), _jsx(Button, Object.assign({}, args, { size: size.size, sx: { mt: 1 }, rightIcon: ArrowDropDownIcon }))] }))) })),
80
80
  args: {
81
81
  onClick: () => { },
82
82
  children: 'Select',
83
83
  },
84
84
  };
85
85
  export const Loading = {
86
- render: () => (_jsxs(Column, { children: [_jsx(Row, { children: _jsx(Button, Object.assign({ loading: true }, { children: "Click Me" })) }), _jsx(Row, Object.assign({ sx: { mt: 1 } }, { children: _jsx(Button, Object.assign({ type: BUTTON_TYPE.OUTLINE, loading: true }, { children: "Click Me" })) })), _jsx(Row, Object.assign({ sx: { mt: 1 } }, { children: _jsx(Button, Object.assign({ type: BUTTON_TYPE.TEXT, loading: true }, { children: "Click Me" })) }))] })),
86
+ render: () => (_jsxs(Column, { children: [_jsx(Row, { children: _jsx(Button, { loading: true, children: "Click Me" }) }), _jsx(Row, { sx: { mt: 1 }, children: _jsx(Button, { type: BUTTON_TYPE.OUTLINE, loading: true, children: "Click Me" }) }), _jsx(Row, { sx: { mt: 1 }, children: _jsx(Button, { type: BUTTON_TYPE.TEXT, loading: true, children: "Click Me" }) })] })),
87
87
  };
88
88
  export const Disabled = {
89
- render: () => (_jsxs(Column, { children: [_jsx(Row, { children: _jsx(Button, Object.assign({ disabled: true }, { children: "Click Me" })) }), _jsx(Row, Object.assign({ sx: { mt: 1 } }, { children: _jsx(Button, Object.assign({ type: BUTTON_TYPE.OUTLINE, disabled: true }, { children: "Click Me" })) })), _jsx(Row, Object.assign({ sx: { mt: 1 } }, { children: _jsx(Button, Object.assign({ type: BUTTON_TYPE.TEXT, disabled: true }, { children: "Click Me" })) }))] })),
89
+ render: () => (_jsxs(Column, { children: [_jsx(Row, { children: _jsx(Button, { disabled: true, children: "Click Me" }) }), _jsx(Row, { sx: { mt: 1 }, children: _jsx(Button, { type: BUTTON_TYPE.OUTLINE, disabled: true, children: "Click Me" }) }), _jsx(Row, { sx: { mt: 1 }, children: _jsx(Button, { type: BUTTON_TYPE.TEXT, disabled: true, children: "Click Me" }) })] })),
90
90
  };
@@ -16,7 +16,7 @@ describe('Button', () => {
16
16
  expect(getByText('Foo')).toBeInTheDocument();
17
17
  });
18
18
  it('renders icon component passed to it', () => {
19
- const { getByText } = render(_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ leftIcon: MockLeftIcon }, { children: "Click Me" })), _jsx(Button, Object.assign({ primaryIcon: MockPrimaryIcon }, { children: "Click Me" })), _jsx(Button, Object.assign({ rightIcon: MockRightIcon }, { children: "Click Me" }))] }));
19
+ const { getByText } = render(_jsxs(_Fragment, { children: [_jsx(Button, { leftIcon: MockLeftIcon, children: "Click Me" }), _jsx(Button, { primaryIcon: MockPrimaryIcon, children: "Click Me" }), _jsx(Button, { rightIcon: MockRightIcon, children: "Click Me" })] }));
20
20
  expect(getByText('Mock Primary Icon')).toBeDefined();
21
21
  expect(getByText('Mock Left Icon')).toBeDefined();
22
22
  expect(getByText('Mock Right Icon')).toBeDefined();
@@ -26,23 +26,23 @@ export type ButtonProps = StyledElementProps<HTMLButtonElement, {
26
26
  disableFocusStyles?: boolean;
27
27
  }>;
28
28
  export declare const Button: React.ForwardRefExoticComponent<{
29
- sx?: import("../../../theme").StylesProp | undefined;
29
+ sx?: import("../../../theme").StylesProp;
30
30
  children?: React.ReactNode;
31
31
  } & Omit<React.HTMLAttributes<HTMLButtonElement>, "children" | "onChange"> & {
32
- size?: BUTTON_SIZE | undefined;
33
- type?: BUTTON_TYPE | undefined;
34
- color?: COLOR | undefined;
35
- textColor?: COLOR | undefined;
36
- customColor?: string | undefined;
37
- primaryIcon?: React.FC<any> | undefined;
38
- leftIcon?: React.FC<any> | undefined;
39
- rightIcon?: React.FC<any> | undefined;
40
- accessibleLabel?: string | undefined;
41
- loading?: boolean | undefined;
42
- disabled?: boolean | undefined;
43
- disableFocusStyles?: boolean | undefined;
32
+ size?: BUTTON_SIZE;
33
+ type?: BUTTON_TYPE;
34
+ color?: COLOR;
35
+ textColor?: COLOR;
36
+ customColor?: string;
37
+ primaryIcon?: React.FC<any>;
38
+ leftIcon?: React.FC<any>;
39
+ rightIcon?: React.FC<any>;
40
+ accessibleLabel?: string;
41
+ loading?: boolean;
42
+ disabled?: boolean;
43
+ disableFocusStyles?: boolean;
44
44
  } & {
45
- htmlFor?: string | undefined;
45
+ htmlFor?: string;
46
46
  } & React.RefAttributes<HTMLButtonElement>>;
47
47
  type LinkButtonProps = Omit<ButtonProps, 'type' | 'color' | 'textColor'>;
48
48
  export declare const LinkButton: React.FC<LinkButtonProps>;