@canonical/react-components 3.8.3 → 3.9.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 (90) hide show
  1. package/README.md +2 -3
  2. package/dist/components/Accordion/Accordion.js +15 -11
  3. package/dist/components/ActionButton/ActionButton.js +13 -10
  4. package/dist/components/ApplicationLayout/AppAside/AppAside.js +12 -9
  5. package/dist/components/ApplicationLayout/AppMain/AppMain.js +7 -4
  6. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.js +9 -6
  7. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +7 -4
  8. package/dist/components/ApplicationLayout/AppStatus/AppStatus.js +7 -4
  9. package/dist/components/ApplicationLayout/Application/Application.js +7 -4
  10. package/dist/components/ApplicationLayout/ApplicationLayout.js +22 -19
  11. package/dist/components/ArticlePagination/ArticlePagination.js +10 -7
  12. package/dist/components/Badge/Badge.js +9 -6
  13. package/dist/components/Button/Button.js +15 -12
  14. package/dist/components/Card/Card.js +11 -8
  15. package/dist/components/Card/Card.stories.d.ts +5 -0
  16. package/dist/components/Card/Card.stories.js +13 -4
  17. package/dist/components/CheckboxInput/CheckableInput/CheckableInput.js +10 -7
  18. package/dist/components/CheckboxInput/CheckboxInput.js +7 -4
  19. package/dist/components/Chip/Chip.js +18 -15
  20. package/dist/components/Code/Code.js +10 -7
  21. package/dist/components/CodeSnippet/CodeSnippet.js +7 -4
  22. package/dist/components/CodeSnippet/CodeSnippetDropdown.js +12 -8
  23. package/dist/components/Col/Col.js +15 -12
  24. package/dist/components/ColumnSelector/columnSelectorHelper.js +7 -3
  25. package/dist/components/ConfirmationButton/ConfirmationButton.js +10 -7
  26. package/dist/components/ConfirmationModal/ConfirmationModal.js +15 -12
  27. package/dist/components/ContextualMenu/ContextualMenu.js +27 -24
  28. package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +47 -44
  29. package/dist/components/CustomSelect/CustomSelect.js +25 -22
  30. package/dist/components/CustomSelect/CustomSelect.stories.js +8 -5
  31. package/dist/components/EmptyState/EmptyState.js +9 -6
  32. package/dist/components/Field/Field.js +22 -19
  33. package/dist/components/Form/Form.js +9 -6
  34. package/dist/components/FormikField/FormikField.js +10 -7
  35. package/dist/components/Icon/Icon.js +8 -5
  36. package/dist/components/Input/Input.js +28 -21
  37. package/dist/components/Label/Label.js +9 -6
  38. package/dist/components/Link/Link.js +11 -8
  39. package/dist/components/List/List.js +28 -19
  40. package/dist/components/MainTable/MainTable.js +34 -28
  41. package/dist/components/Modal/Modal.js +13 -10
  42. package/dist/components/ModularTable/ModularTable.d.ts +5 -1
  43. package/dist/components/ModularTable/ModularTable.js +26 -21
  44. package/dist/components/ModularTable/ModularTable.stories.d.ts +1 -0
  45. package/dist/components/ModularTable/ModularTable.stories.js +96 -1
  46. package/dist/components/MultiSelect/MultiSelect.js +17 -14
  47. package/dist/components/MultiSelect/MultiSelect.stories.js +14 -14
  48. package/dist/components/Navigation/Navigation.js +31 -23
  49. package/dist/components/Navigation/NavigationLink/NavigationLink.js +26 -17
  50. package/dist/components/Navigation/NavigationMenu/NavigationMenu.js +16 -9
  51. package/dist/components/Notifications/Notification/Notification.js +19 -16
  52. package/dist/components/Notifications/ToastNotification/ToastNotificationProvider.js +15 -15
  53. package/dist/components/Pagination/Pagination.js +20 -17
  54. package/dist/components/Panel/Panel.js +29 -25
  55. package/dist/components/PasswordToggle/PasswordToggle.js +16 -13
  56. package/dist/components/RadioInput/RadioInput.js +6 -3
  57. package/dist/components/Row/Row.js +7 -4
  58. package/dist/components/ScrollableTable/ScrollableTable.stories.js +7 -3
  59. package/dist/components/SearchAndFilter/SearchAndFilter.js +10 -7
  60. package/dist/components/SearchBox/SearchBox.js +18 -15
  61. package/dist/components/Select/Select.js +25 -21
  62. package/dist/components/SideNavigation/SideNavigation.js +19 -13
  63. package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +11 -8
  64. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +12 -6
  65. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +7 -4
  66. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.js +7 -4
  67. package/dist/components/Slider/Slider.js +17 -14
  68. package/dist/components/Spinner/Spinner.js +11 -8
  69. package/dist/components/StatusLabel/StatusLabel.js +8 -5
  70. package/dist/components/Stepper/Step/Step.js +15 -12
  71. package/dist/components/Strip/Strip.js +18 -15
  72. package/dist/components/Strip/Strip.stories.js +6 -1
  73. package/dist/components/Switch/Switch.js +9 -6
  74. package/dist/components/Table/Table.js +9 -6
  75. package/dist/components/TableCell/TableCell.js +11 -8
  76. package/dist/components/TableHeader/TableHeader.js +7 -4
  77. package/dist/components/TablePagination/TablePagination.js +14 -11
  78. package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.js +22 -19
  79. package/dist/components/TableRow/TableRow.js +6 -3
  80. package/dist/components/Tabs/Tabs.js +10 -7
  81. package/dist/components/Textarea/Textarea.js +29 -22
  82. package/dist/esm/components/Card/Card.stories.d.ts +5 -0
  83. package/dist/esm/components/Card/Card.stories.js +6 -1
  84. package/dist/esm/components/ModularTable/ModularTable.d.ts +5 -1
  85. package/dist/esm/components/ModularTable/ModularTable.js +4 -3
  86. package/dist/esm/components/ModularTable/ModularTable.stories.d.ts +1 -0
  87. package/dist/esm/components/ModularTable/ModularTable.stories.js +111 -0
  88. package/dist/esm/components/Strip/Strip.stories.js +6 -1
  89. package/dist/external/useSSR.js +6 -4
  90. package/package.json +50 -47
@@ -11,6 +11,11 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
18
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
19
  const HIDE_NOTIFICATION_DELAY = 5000;
15
20
  const initialNotification = {
16
21
  id: "",
@@ -160,11 +165,10 @@ const ToastNotificationProvider = _ref => {
160
165
  };
161
166
  const addNotification = notification => {
162
167
  var _notification$id;
163
- const notificationToAdd = {
164
- ...notification,
168
+ const notificationToAdd = _objectSpread(_objectSpread({}, notification), {}, {
165
169
  timestamp: new Date().toLocaleString(),
166
170
  id: (_notification$id = notification.id) !== null && _notification$id !== void 0 ? _notification$id : Date.now().toString() + (Math.random() + 1).toString(36).substring(7)
167
- };
171
+ });
168
172
  setNotifications(prev => {
169
173
  return [...prev, notificationToAdd];
170
174
  });
@@ -209,22 +213,18 @@ const ToastNotificationProvider = _ref => {
209
213
  });
210
214
  const helper = {
211
215
  notifications,
212
- failure: (title, error, message, actions, id) => addNotification({
213
- ...(0, _NotificationProvider.failure)(title, error, message, actions),
216
+ failure: (title, error, message, actions, id) => addNotification(_objectSpread(_objectSpread({}, (0, _NotificationProvider.failure)(title, error, message, actions)), {}, {
214
217
  id
215
- }),
216
- info: (message, title, actions, id) => addNotification({
217
- ...(0, _NotificationProvider.info)(message, title, actions),
218
+ })),
219
+ info: (message, title, actions, id) => addNotification(_objectSpread(_objectSpread({}, (0, _NotificationProvider.info)(message, title, actions)), {}, {
218
220
  id
219
- }),
220
- success: (message, actions, title, id) => addNotification({
221
- ...(0, _NotificationProvider.success)(message, title, actions),
221
+ })),
222
+ success: (message, actions, title, id) => addNotification(_objectSpread(_objectSpread({}, (0, _NotificationProvider.success)(message, title, actions)), {}, {
222
223
  id
223
- }),
224
- caution: (message, actions, title, id) => addNotification({
225
- ...(0, _NotificationProvider.caution)(message, title, actions),
224
+ })),
225
+ caution: (message, actions, title, id) => addNotification(_objectSpread(_objectSpread({}, (0, _NotificationProvider.caution)(message, title, actions)), {}, {
226
226
  id
227
- }),
227
+ })),
228
228
  clear,
229
229
  toggleListView,
230
230
  isListView: showList,
@@ -8,8 +8,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _PaginationButton = _interopRequireDefault(require("./PaginationButton"));
10
10
  var _PaginationItem = _interopRequireDefault(require("./PaginationItem"));
11
+ const _excluded = ["itemsPerPage", "totalItems", "paginate", "currentPage", "scrollToTop", "truncateThreshold", "centered", "showLabels", "hideNumbers", "onForward", "onBack", "forwardDisabled", "backDisabled", "forwardLabel", "backLabel"];
11
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
16
  const scrollTop = () => window.scrollTo(0, 0);
14
17
  const generatePaginationItems = (pageNumbers, currentPage, truncateThreshold, changePage) => {
15
18
  const lastPage = pageNumbers.length;
@@ -104,23 +107,23 @@ The pagination component should be used to navigate between pages of content. Th
104
107
  */
105
108
  const Pagination = _ref => {
106
109
  let {
107
- itemsPerPage,
108
- totalItems,
109
- paginate,
110
- currentPage,
111
- scrollToTop,
112
- truncateThreshold = 10,
113
- centered,
114
- showLabels,
115
- hideNumbers,
116
- onForward,
117
- onBack,
118
- forwardDisabled,
119
- backDisabled,
120
- forwardLabel,
121
- backLabel,
122
- ...navProps
123
- } = _ref;
110
+ itemsPerPage,
111
+ totalItems,
112
+ paginate,
113
+ currentPage,
114
+ scrollToTop,
115
+ truncateThreshold = 10,
116
+ centered,
117
+ showLabels,
118
+ hideNumbers,
119
+ onForward,
120
+ onBack,
121
+ forwardDisabled,
122
+ backDisabled,
123
+ forwardLabel,
124
+ backLabel
125
+ } = _ref,
126
+ navProps = _objectWithoutProperties(_ref, _excluded);
124
127
  const isNumberedPagination = !!itemsPerPage && !!totalItems && !!currentPage && !!paginate;
125
128
  const pageNumbers = [];
126
129
  if (isNumberedPagination) {
@@ -7,20 +7,24 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _utils = require("../../utils");
10
+ const _excluded = ["icon", "iconAlt", "name", "nameAlt", "component"],
11
+ _excluded2 = ["forwardRef", "children", "className", "contentClassName", "controlsClassName", "controls", "dark", "header", "logo", "stickyHeader", "title", "titleClassName", "titleComponent", "titleId", "toggle", "wrapContent"];
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
16
  const generateLogo = logo => {
13
17
  if ((0, _utils.isReactNode)(logo)) {
14
18
  return logo;
15
19
  }
16
20
  const {
17
- icon,
18
- iconAlt,
19
- name,
20
- nameAlt,
21
- component: Component = "a",
22
- ...props
23
- } = logo;
21
+ icon,
22
+ iconAlt,
23
+ name,
24
+ nameAlt,
25
+ component: Component = "a"
26
+ } = logo,
27
+ props = _objectWithoutProperties(logo, _excluded);
24
28
  return /*#__PURE__*/_react.default.createElement(Component, _extends({
25
29
  className: "p-panel__logo"
26
30
  }, props), /*#__PURE__*/_react.default.createElement("img", {
@@ -47,24 +51,24 @@ const generateLogo = logo => {
47
51
  */
48
52
  const Panel = _ref => {
49
53
  let {
50
- forwardRef,
51
- children,
52
- className,
53
- contentClassName,
54
- controlsClassName,
55
- controls,
56
- dark,
57
- header,
58
- logo,
59
- stickyHeader,
60
- title,
61
- titleClassName,
62
- titleComponent: TitleComponent = "h4",
63
- titleId,
64
- toggle,
65
- wrapContent = true,
66
- ...props
67
- } = _ref;
54
+ forwardRef,
55
+ children,
56
+ className,
57
+ contentClassName,
58
+ controlsClassName,
59
+ controls,
60
+ dark,
61
+ header,
62
+ logo,
63
+ stickyHeader,
64
+ title,
65
+ titleClassName,
66
+ titleComponent: TitleComponent = "h4",
67
+ titleId,
68
+ toggle,
69
+ wrapContent = true
70
+ } = _ref,
71
+ props = _objectWithoutProperties(_ref, _excluded2);
68
72
  return /*#__PURE__*/_react.default.createElement("div", _extends({}, props, {
69
73
  className: (0, _classnames.default)("p-panel", className, {
70
74
  "is-dark": dark
@@ -10,10 +10,13 @@ var _Button = _interopRequireDefault(require("../Button"));
10
10
  var _Field = _interopRequireDefault(require("../Field"));
11
11
  var _Label = _interopRequireDefault(require("../Label"));
12
12
  require("./PasswordToggle.scss");
13
+ const _excluded = ["caution", "className", "error", "help", "id", "label", "readOnly", "required", "success", "type", "wrapperClassName"];
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
20
  let Label = exports.Label = /*#__PURE__*/function (Label) {
18
21
  Label["Hide"] = "Hide";
19
22
  Label["Show"] = "Show";
@@ -29,19 +32,19 @@ let Label = exports.Label = /*#__PURE__*/function (Label) {
29
32
  */
30
33
  const PasswordToggle = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
31
34
  let {
32
- caution,
33
- className,
34
- error,
35
- help,
36
- id,
37
- label,
38
- readOnly,
39
- required,
40
- success,
41
- type,
42
- wrapperClassName,
43
- ...inputProps
44
- } = _ref;
35
+ caution,
36
+ className,
37
+ error,
38
+ help,
39
+ id,
40
+ label,
41
+ readOnly,
42
+ required,
43
+ success,
44
+ type,
45
+ wrapperClassName
46
+ } = _ref,
47
+ inputProps = _objectWithoutProperties(_ref, _excluded);
45
48
  const [isPassword, setIsPassword] = (0, _react.useState)(true);
46
49
  const validationId = (0, _react.useId)();
47
50
  const helpId = (0, _react.useId)();
@@ -6,8 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _CheckableInput = _interopRequireDefault(require("../CheckboxInput/CheckableInput"));
9
+ const _excluded = ["label"];
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
14
  /**
12
15
  * This is a [React](https://reactjs.org/) component for the Vanilla [Radio input](https://docs.vanillaframework.io/base/forms#radio-button).
13
16
  *
@@ -15,9 +18,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
15
18
  */
16
19
  const RadioInput = _ref => {
17
20
  let {
18
- label,
19
- ...radioProps
20
- } = _ref;
21
+ label
22
+ } = _ref,
23
+ radioProps = _objectWithoutProperties(_ref, _excluded);
21
24
  return /*#__PURE__*/_react.default.createElement(_CheckableInput.default, _extends({
22
25
  inputType: "radio",
23
26
  label: label
@@ -6,8 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ const _excluded = ["children", "className"];
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
14
  /**
12
15
  * This is a [React](https://reactjs.org/) component for use within the Vanilla [Grid](https://docs.vanillaframework.io/patterns/grid/).
13
16
  *
@@ -15,10 +18,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
15
18
  */
16
19
  const Row = _ref => {
17
20
  let {
18
- children,
19
- className,
20
- ...props
21
- } = _ref;
21
+ children,
22
+ className
23
+ } = _ref,
24
+ props = _objectWithoutProperties(_ref, _excluded);
22
25
  return /*#__PURE__*/_react.default.createElement("div", _extends({
23
26
  className: (0, _classnames.default)(className, "row")
24
27
  }, props), children);
@@ -9,6 +9,11 @@ var _ScrollableTable = _interopRequireDefault(require("./ScrollableTable"));
9
9
  var _index = require("../../index");
10
10
  var _blocks = require("@storybook/blocks");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
17
  const meta = {
13
18
  component: _ScrollableTable.default,
14
19
  tags: ["autodocs"]
@@ -69,10 +74,9 @@ const Responsive = exports.Responsive = {
69
74
  args: {
70
75
  belowIds: ["footer"]
71
76
  },
72
- render: args => StoryExample({
73
- ...args,
77
+ render: args => StoryExample(_objectSpread(_objectSpread({}, args), {}, {
74
78
  responsive: true
75
- }),
79
+ })),
76
80
  parameters: {
77
81
  docs: {
78
82
  page: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_blocks.Title, null), /*#__PURE__*/_react.default.createElement(_blocks.Subtitle, null), /*#__PURE__*/_react.default.createElement(_blocks.Description, null))
@@ -10,10 +10,13 @@ var _FilterPanelSection = _interopRequireDefault(require("./FilterPanelSection")
10
10
  var _Chip = _interopRequireDefault(require("../Chip"));
11
11
  var _utils = require("./utils");
12
12
  var _hooks = require("../../hooks");
13
+ const _excluded = ["existingSearchData", "filterPanelData", "returnSearchData", "onPanelToggle", "onExpandChange"];
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
20
  let Label = exports.Label = /*#__PURE__*/function (Label) {
18
21
  Label["AddFilter"] = "Add filter";
19
22
  Label["Clear"] = "Clear input";
@@ -25,13 +28,13 @@ let Label = exports.Label = /*#__PURE__*/function (Label) {
25
28
  */
26
29
  const SearchAndFilter = _ref => {
27
30
  let {
28
- existingSearchData = [],
29
- filterPanelData,
30
- returnSearchData,
31
- onPanelToggle = () => {},
32
- onExpandChange = () => {},
33
- ...props
34
- } = _ref;
31
+ existingSearchData = [],
32
+ filterPanelData,
33
+ returnSearchData,
34
+ onPanelToggle = () => {},
35
+ onExpandChange = () => {}
36
+ } = _ref,
37
+ props = _objectWithoutProperties(_ref, _excluded);
35
38
  const [searchData, setSearchData] = (0, _react.useState)(existingSearchData);
36
39
  const [searchTerm, setSearchTerm] = (0, _react.useState)("");
37
40
  const [filterPanelHidden, setFilterPanelHidden] = (0, _react.useState)(true);
@@ -7,10 +7,13 @@ exports.default = exports.Label = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _Icon = _interopRequireDefault(require("../Icon"));
10
+ const _excluded = ["name", "id", "autocomplete", "className", "disabled", "externallyControlled", "onChange", "onSearch", "onClear", "placeholder", "shouldBlurOnSearch", "shouldRefocusAfterReset", "value"];
10
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14
17
  let Label = exports.Label = /*#__PURE__*/function (Label) {
15
18
  Label["Clear"] = "Clear search field";
16
19
  Label["Search"] = "Search";
@@ -23,21 +26,21 @@ let Label = exports.Label = /*#__PURE__*/function (Label) {
23
26
  */
24
27
  const SearchBox = /*#__PURE__*/_react.default.forwardRef((_ref, forwardedRef) => {
25
28
  let {
26
- name = "search",
27
- id = "search",
28
- autocomplete = "on",
29
- className,
30
- disabled,
31
- externallyControlled,
32
- onChange,
33
- onSearch,
34
- onClear,
35
- placeholder = "Search",
36
- shouldBlurOnSearch = true,
37
- shouldRefocusAfterReset,
38
- value,
39
- ...props
40
- } = _ref;
29
+ name = "search",
30
+ id = "search",
31
+ autocomplete = "on",
32
+ className,
33
+ disabled,
34
+ externallyControlled,
35
+ onChange,
36
+ onSearch,
37
+ onClear,
38
+ placeholder = "Search",
39
+ shouldBlurOnSearch = true,
40
+ shouldRefocusAfterReset,
41
+ value
42
+ } = _ref,
43
+ props = _objectWithoutProperties(_ref, _excluded);
41
44
  const internalRef = (0, _react.useRef)(null);
42
45
  const resetInput = () => {
43
46
  onChange === null || onChange === void 0 || onChange("");
@@ -7,20 +7,24 @@ exports.default = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _Field = _interopRequireDefault(require("../Field"));
10
+ const _excluded = ["label", "value"],
11
+ _excluded2 = ["caution", "className", "error", "help", "helpClassName", "id", "label", "labelClassName", "onChange", "options", "required", "stacked", "success", "takeFocus", "wrapperClassName"];
10
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14
18
  /**
15
19
  * The props for the Select component.
16
20
  */
17
21
 
18
22
  const generateOptions = options => options === null || options === void 0 ? void 0 : options.map(_ref => {
19
23
  let {
20
- label,
21
- value,
22
- ...props
23
- } = _ref;
24
+ label,
25
+ value
26
+ } = _ref,
27
+ props = _objectWithoutProperties(_ref, _excluded);
24
28
  return /*#__PURE__*/_react.default.createElement("option", _extends({
25
29
  value: value,
26
30
  key: "".concat(value) || label
@@ -34,23 +38,23 @@ const generateOptions = options => options === null || options === void 0 ? void
34
38
  */
35
39
  const Select = _ref2 => {
36
40
  let {
37
- caution,
38
- className,
39
- error,
40
- help,
41
- helpClassName,
42
- id,
43
- label,
44
- labelClassName,
45
- onChange,
46
- options,
47
- required,
48
- stacked,
49
- success,
50
- takeFocus,
51
- wrapperClassName,
52
- ...selectProps
53
- } = _ref2;
41
+ caution,
42
+ className,
43
+ error,
44
+ help,
45
+ helpClassName,
46
+ id,
47
+ label,
48
+ labelClassName,
49
+ onChange,
50
+ options,
51
+ required,
52
+ stacked,
53
+ success,
54
+ takeFocus,
55
+ wrapperClassName
56
+ } = _ref2,
57
+ selectProps = _objectWithoutProperties(_ref2, _excluded2);
54
58
  const selectRef = (0, _react.useRef)(null);
55
59
  const validationId = (0, _react.useId)();
56
60
  const defaultSelectId = (0, _react.useId)();
@@ -8,7 +8,11 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _SideNavigationItem = _interopRequireDefault(require("./SideNavigationItem"));
10
10
  var _utils = require("../../utils");
11
+ const _excluded = ["items"],
12
+ _excluded2 = ["children", "className", "dark", "hasIcons", "items", "linkComponent", "listClassName", "navClassName"];
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
16
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
17
  const generateItem = (item, index, linkComponent, dark) => {
14
18
  if ((0, _utils.isReactNode)(item)) {
@@ -44,10 +48,12 @@ const generateItems = (groups, listClassName, linkComponent, dark) => {
44
48
  let items;
45
49
  let props = {};
46
50
  if (typeof group === "object" && "items" in group) {
51
+ var _group = group;
47
52
  ({
48
- items,
49
- ...props
50
- } = group);
53
+ items
54
+ } = _group);
55
+ props = _objectWithoutProperties(_group, _excluded);
56
+ _group;
51
57
  } else {
52
58
  items = group;
53
59
  }
@@ -68,16 +74,16 @@ const getHasIcons = groups => groups === null || groups === void 0 ? void 0 : gr
68
74
  */
69
75
  const SideNavigation = _ref2 => {
70
76
  let {
71
- children,
72
- className,
73
- dark,
74
- hasIcons,
75
- items,
76
- linkComponent,
77
- listClassName,
78
- navClassName,
79
- ...props
80
- } = _ref2;
77
+ children,
78
+ className,
79
+ dark,
80
+ hasIcons,
81
+ items,
82
+ linkComponent,
83
+ listClassName,
84
+ navClassName
85
+ } = _ref2,
86
+ props = _objectWithoutProperties(_ref2, _excluded2);
81
87
  return /*#__PURE__*/_react.default.createElement("div", _extends({
82
88
  className: (0, _classnames.default)(className, {
83
89
  "p-side-navigation--icons": hasIcons || getHasIcons(items),
@@ -6,18 +6,21 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _Icon = _interopRequireDefault(require("../../Icon"));
9
+ const _excluded = ["component", "dark", "icon", "label", "status", "forwardRef"];
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
14
  const SideNavigationBase = _ref => {
12
15
  let {
13
- component: Component,
14
- dark,
15
- icon,
16
- label,
17
- status,
18
- forwardRef,
19
- ...props
20
- } = _ref;
16
+ component: Component,
17
+ dark,
18
+ icon,
19
+ label,
20
+ status,
21
+ forwardRef
22
+ } = _ref,
23
+ props = _objectWithoutProperties(_ref, _excluded);
21
24
  return /*#__PURE__*/_react.default.createElement(Component, _extends({
22
25
  ref: forwardRef
23
26
  }, props), icon ? /*#__PURE__*/_react.default.createElement(_Icon.default, {
@@ -7,24 +7,30 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _SideNavigationLink = _interopRequireDefault(require("../SideNavigationLink"));
9
9
  var _SideNavigationText = _interopRequireDefault(require("../SideNavigationText"));
10
+ const _excluded = ["nonInteractive"],
11
+ _excluded2 = ["children"];
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
16
  const SideNavigationItem = props => {
13
17
  let content;
14
18
  let liProps = {};
15
19
  if ("nonInteractive" in props) {
16
20
  const {
17
- nonInteractive: _,
18
- ...textProps
19
- } = props;
21
+ nonInteractive: _
22
+ } = props,
23
+ textProps = _objectWithoutProperties(props, _excluded);
20
24
  content = /*#__PURE__*/_react.default.createElement(_SideNavigationText.default, textProps);
21
25
  } else if (!("children" in props)) {
22
26
  content = /*#__PURE__*/_react.default.createElement(_SideNavigationLink.default, props);
23
27
  } else {
28
+ var _props = props;
24
29
  ({
25
- children: content,
26
- ...liProps
27
- } = props);
30
+ children: content
31
+ } = _props);
32
+ liProps = _objectWithoutProperties(_props, _excluded2);
33
+ _props;
28
34
  }
29
35
  return /*#__PURE__*/_react.default.createElement("li", _extends({
30
36
  className: "p-side-navigation__item"