@nulogy/components 7.1.0 → 7.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -16443,15 +16443,23 @@
16443
16443
  border: "none"
16444
16444
  };
16445
16445
 
16446
+ function getColorFromProps(props) {
16447
+ return themeGet("colors." + props.color, props.color)(props);
16448
+ }
16449
+
16450
+ function getColor(props) {
16451
+ return getColorFromProps(props) || props.theme.colors.blue;
16452
+ }
16453
+
16446
16454
  var getHoverColor = function getHoverColor(props) {
16447
- return props.hover ? props.color : curriedDarken("0.1", themeGet("colors." + props.color, props.color)(props));
16455
+ return props.hover ? getColor(props) : curriedDarken("0.1", getColor(props));
16448
16456
  };
16449
16457
 
16450
16458
  var Link = styled__default['default'].a.withConfig({
16451
16459
  shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
16452
16460
  return !["underline", "hover"].includes(prop) && defaultValidatorFn(prop);
16453
16461
  }
16454
- })(color, space, typography, function (_a) {
16462
+ })(function (_a) {
16455
16463
  var underline = _a.underline,
16456
16464
  as = _a.as,
16457
16465
  props = __rest(_a, ["underline", "as"]);
@@ -16459,17 +16467,16 @@
16459
16467
  return Object.assign(Object.assign({}, resetButtonStyles), {
16460
16468
  padding: as === "button" ? "0" : undefined,
16461
16469
  textDecoration: underline ? "underline" : "none",
16470
+ fontSize: props.theme.fontSizes.medium,
16471
+ color: getColor(props),
16462
16472
  "&:hover": {
16463
16473
  cursor: "pointer",
16464
16474
  color: getHoverColor(props)
16465
16475
  }
16466
16476
  });
16467
- });
16477
+ }, addStyledProps);
16468
16478
  Link.defaultProps = {
16469
- className: undefined,
16470
- underline: true,
16471
- fontSize: "medium",
16472
- color: "blue"
16479
+ underline: true
16473
16480
  };
16474
16481
 
16475
16482
  var ListItem = styled__default['default'].li.withConfig({
@@ -44352,6 +44359,10 @@
44352
44359
  setVisible(false);
44353
44360
  if (onHide) onHide();
44354
44361
  }
44362
+
44363
+ return function () {
44364
+ cancelHidingToast();
44365
+ };
44355
44366
  }, [triggered]);
44356
44367
 
44357
44368
  var onMouseIn = function onMouseIn() {
@@ -45112,9 +45123,7 @@
45112
45123
  fontSize: theme.fontSizes.large,
45113
45124
  fontWeight: theme.fontWeights.medium,
45114
45125
  lineHeight: theme.lineHeights.heading3,
45115
- marginBottom: theme.space.x1,
45116
- padding: theme.space.x1 + " " + theme.space.x3,
45117
- paddingLeft: getPaddingLeft(0)
45126
+ padding: theme.space.x1 + " " + theme.space.x3
45118
45127
  };
45119
45128
  };
45120
45129
 
@@ -45144,7 +45153,7 @@
45144
45153
  opacity: ".5"
45145
45154
  }
45146
45155
  });
45147
- });
45156
+ }, addStyledProps);
45148
45157
  var TopLevelText = styled__default['default'](Text).withConfig({
45149
45158
  displayName: "MobileMenu__TopLevelText",
45150
45159
  componentId: "sc-18t6zrc-2"
@@ -45153,27 +45162,10 @@
45153
45162
  return Object.assign(Object.assign({}, getSharedStyles(theme)), {
45154
45163
  color: theme.colors.blackBlue
45155
45164
  });
45156
- });
45157
- var ChildIndentingLi = styled__default['default'].li.withConfig({
45158
- displayName: "MobileMenu__ChildIndentingLi",
45159
- componentId: "sc-18t6zrc-3"
45160
- })(function (_ref4) {
45161
- var _ref5;
45162
-
45163
- var layer = _ref4.layer,
45164
- theme = _ref4.theme;
45165
- return _ref5 = {
45166
- marginBottom: theme.space.x1
45167
- }, _ref5["> " + DropdownButton + ", > " + DropdownLink] = {
45168
- // eslint-disable-next-line no-mixed-operators
45169
- paddingLeft: 24 * layer + 20 + "px"
45170
- }, _ref5["> " + DropdownText] = {
45171
- paddingLeft: getPaddingLeft(layer)
45172
- }, _ref5;
45173
- });
45165
+ }, addStyledProps);
45174
45166
  var SubMenuItemsList = styled__default['default'].ul.withConfig({
45175
45167
  displayName: "MobileMenu__SubMenuItemsList",
45176
- componentId: "sc-18t6zrc-4"
45168
+ componentId: "sc-18t6zrc-3"
45177
45169
  })({
45178
45170
  listStyle: "none",
45179
45171
  paddingLeft: "0",
@@ -45183,23 +45175,25 @@
45183
45175
  var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
45184
45176
  var _a;
45185
45177
 
45186
- var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
45187
- return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
45188
- layer: layer,
45189
- key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45190
- }, /*#__PURE__*/React__default['default'].createElement(MenuLink, {
45178
+ var sharedLinkProps = {
45191
45179
  onClick: linkOnClick,
45192
45180
  href: menuItem.href,
45193
45181
  as: menuItem.as,
45194
- to: menuItem.to
45195
- }, menuItem.name));
45182
+ to: menuItem.to,
45183
+ // eslint-disable-next-line no-mixed-operators
45184
+ pl: layer === 0 ? getPaddingLeft(layer) : 24 * layer + 20 + "px",
45185
+ mb: "x1"
45186
+ };
45187
+ var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
45188
+ return /*#__PURE__*/React__default['default'].createElement("li", {
45189
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45190
+ }, /*#__PURE__*/React__default['default'].createElement(MenuLink, Object.assign({}, sharedLinkProps), menuItem.name));
45196
45191
  };
45197
45192
 
45198
45193
  var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
45199
45194
  var _a;
45200
45195
 
45201
- return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
45202
- layer: layer,
45196
+ return /*#__PURE__*/React__default['default'].createElement("li", {
45203
45197
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45204
45198
  }, menuItem.render({
45205
45199
  size: "small",
@@ -45228,10 +45222,12 @@
45228
45222
  var _a;
45229
45223
 
45230
45224
  var MenuText = layer === 0 ? TopLevelText : DropdownText;
45231
- return /*#__PURE__*/React__default['default'].createElement(ChildIndentingLi, {
45232
- layer: layer,
45225
+ return /*#__PURE__*/React__default['default'].createElement("li", {
45233
45226
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45234
- }, /*#__PURE__*/React__default['default'].createElement(MenuText, null, menuItem.name));
45227
+ }, /*#__PURE__*/React__default['default'].createElement(MenuText, {
45228
+ pl: getPaddingLeft(layer),
45229
+ mb: "x1"
45230
+ }, menuItem.name));
45235
45231
  };
45236
45232
 
45237
45233
  var getRenderFunction = function getRenderFunction(menuItem) {
@@ -45259,20 +45255,19 @@
45259
45255
 
45260
45256
  var getSubMenuHeading = function getSubMenuHeading(layer, name) {
45261
45257
  return layer === 0 ? /*#__PURE__*/React__default['default'].createElement(TopLevelText, {
45262
- as: "h3"
45258
+ as: "h3",
45259
+ mb: "x1"
45263
45260
  }, name) : /*#__PURE__*/React__default['default'].createElement(DropdownText, {
45264
45261
  mb: "x1",
45265
- style: {
45266
- paddingLeft: getPaddingLeft(layer)
45267
- }
45262
+ pl: getPaddingLeft(layer)
45268
45263
  }, name);
45269
45264
  };
45270
45265
 
45271
- var SubMenu = function SubMenu(_ref6) {
45272
- var menuItem = _ref6.menuItem,
45273
- linkOnClick = _ref6.linkOnClick,
45274
- themeColorObject = _ref6.themeColorObject,
45275
- layer = _ref6.layer;
45266
+ var SubMenu = function SubMenu(_ref4) {
45267
+ var menuItem = _ref4.menuItem,
45268
+ linkOnClick = _ref4.linkOnClick,
45269
+ themeColorObject = _ref4.themeColorObject,
45270
+ layer = _ref4.layer;
45276
45271
 
45277
45272
  var defaultRender = function defaultRender() {
45278
45273
  return getSubMenuHeading(layer, menuItem.name);
@@ -45287,27 +45282,27 @@
45287
45282
 
45288
45283
  var Menu$1 = styled__default['default'].ul.withConfig({
45289
45284
  displayName: "MobileMenu__Menu",
45290
- componentId: "sc-18t6zrc-5"
45291
- })(function (_ref7) {
45292
- var _ref8;
45285
+ componentId: "sc-18t6zrc-4"
45286
+ })(function (_ref5) {
45287
+ var _ref6;
45293
45288
 
45294
- var theme = _ref7.theme;
45295
- return _ref8 = {
45289
+ var theme = _ref5.theme;
45290
+ return _ref6 = {
45296
45291
  listStyle: "none",
45297
45292
  margin: "0",
45298
45293
  padding: theme.space.x1 + " 0",
45299
45294
  zIndex: theme.zIndices.content,
45300
45295
  width: "100%",
45301
45296
  color: theme.colors.white
45302
- }, _ref8["" + Heading3] = {
45297
+ }, _ref6["" + Heading3] = {
45303
45298
  padding: theme.space.x1 + " 0 " + theme.space.x1 + " " + theme.space.x3
45304
- }, _ref8;
45299
+ }, _ref6;
45305
45300
  });
45306
45301
  var Nav = styled__default['default'].nav.withConfig({
45307
45302
  displayName: "MobileMenu__Nav",
45308
- componentId: "sc-18t6zrc-6"
45309
- })(function (_ref9) {
45310
- var backgroundColor = _ref9.backgroundColor;
45303
+ componentId: "sc-18t6zrc-5"
45304
+ })(function (_ref7) {
45305
+ var backgroundColor = _ref7.backgroundColor;
45311
45306
  return {
45312
45307
  backgroundColor: backgroundColor
45313
45308
  };
@@ -45345,7 +45340,7 @@
45345
45340
 
45346
45341
  var MobileMenu = styled__default['default'](BaseMobileMenu).withConfig({
45347
45342
  displayName: "MobileMenu",
45348
- componentId: "sc-18t6zrc-7"
45343
+ componentId: "sc-18t6zrc-6"
45349
45344
  })(display);
45350
45345
 
45351
45346
  var borderStyle = "1px solid #e4e7eb";
@@ -52642,6 +52637,7 @@
52642
52637
  }, title)), !hideCloseButton && /*#__PURE__*/React__default['default'].createElement(Box, {
52643
52638
  marginLeft: "x2"
52644
52639
  }, /*#__PURE__*/React__default['default'].createElement(IconicButton, {
52640
+ type: "button",
52645
52641
  ref: closeButton,
52646
52642
  icon: "close",
52647
52643
  onClick: onClose,
@@ -16417,15 +16417,23 @@ var resetButtonStyles = {
16417
16417
  border: "none"
16418
16418
  };
16419
16419
 
16420
+ function getColorFromProps(props) {
16421
+ return themeGet("colors." + props.color, props.color)(props);
16422
+ }
16423
+
16424
+ function getColor(props) {
16425
+ return getColorFromProps(props) || props.theme.colors.blue;
16426
+ }
16427
+
16420
16428
  var getHoverColor = function getHoverColor(props) {
16421
- return props.hover ? props.color : curriedDarken("0.1", themeGet("colors." + props.color, props.color)(props));
16429
+ return props.hover ? getColor(props) : curriedDarken("0.1", getColor(props));
16422
16430
  };
16423
16431
 
16424
16432
  var Link = styled.a.withConfig({
16425
16433
  shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
16426
16434
  return !["underline", "hover"].includes(prop) && defaultValidatorFn(prop);
16427
16435
  }
16428
- })(color, space, typography, function (_a) {
16436
+ })(function (_a) {
16429
16437
  var underline = _a.underline,
16430
16438
  as = _a.as,
16431
16439
  props = __rest(_a, ["underline", "as"]);
@@ -16433,17 +16441,16 @@ var Link = styled.a.withConfig({
16433
16441
  return Object.assign(Object.assign({}, resetButtonStyles), {
16434
16442
  padding: as === "button" ? "0" : undefined,
16435
16443
  textDecoration: underline ? "underline" : "none",
16444
+ fontSize: props.theme.fontSizes.medium,
16445
+ color: getColor(props),
16436
16446
  "&:hover": {
16437
16447
  cursor: "pointer",
16438
16448
  color: getHoverColor(props)
16439
16449
  }
16440
16450
  });
16441
- });
16451
+ }, addStyledProps);
16442
16452
  Link.defaultProps = {
16443
- className: undefined,
16444
- underline: true,
16445
- fontSize: "medium",
16446
- color: "blue"
16453
+ underline: true
16447
16454
  };
16448
16455
 
16449
16456
  var ListItem = styled.li.withConfig({
@@ -44326,6 +44333,10 @@ var Toast = function Toast(_a) {
44326
44333
  setVisible(false);
44327
44334
  if (onHide) onHide();
44328
44335
  }
44336
+
44337
+ return function () {
44338
+ cancelHidingToast();
44339
+ };
44329
44340
  }, [triggered]);
44330
44341
 
44331
44342
  var onMouseIn = function onMouseIn() {
@@ -45086,9 +45097,7 @@ var getSharedStyles = function getSharedStyles(theme) {
45086
45097
  fontSize: theme.fontSizes.large,
45087
45098
  fontWeight: theme.fontWeights.medium,
45088
45099
  lineHeight: theme.lineHeights.heading3,
45089
- marginBottom: theme.space.x1,
45090
- padding: theme.space.x1 + " " + theme.space.x3,
45091
- paddingLeft: getPaddingLeft(0)
45100
+ padding: theme.space.x1 + " " + theme.space.x3
45092
45101
  };
45093
45102
  };
45094
45103
 
@@ -45118,7 +45127,7 @@ var TopLevelLink = styled(Link).withConfig({
45118
45127
  opacity: ".5"
45119
45128
  }
45120
45129
  });
45121
- });
45130
+ }, addStyledProps);
45122
45131
  var TopLevelText = styled(Text).withConfig({
45123
45132
  displayName: "MobileMenu__TopLevelText",
45124
45133
  componentId: "sc-18t6zrc-2"
@@ -45127,27 +45136,10 @@ var TopLevelText = styled(Text).withConfig({
45127
45136
  return Object.assign(Object.assign({}, getSharedStyles(theme)), {
45128
45137
  color: theme.colors.blackBlue
45129
45138
  });
45130
- });
45131
- var ChildIndentingLi = styled.li.withConfig({
45132
- displayName: "MobileMenu__ChildIndentingLi",
45133
- componentId: "sc-18t6zrc-3"
45134
- })(function (_ref4) {
45135
- var _ref5;
45136
-
45137
- var layer = _ref4.layer,
45138
- theme = _ref4.theme;
45139
- return _ref5 = {
45140
- marginBottom: theme.space.x1
45141
- }, _ref5["> " + DropdownButton + ", > " + DropdownLink] = {
45142
- // eslint-disable-next-line no-mixed-operators
45143
- paddingLeft: 24 * layer + 20 + "px"
45144
- }, _ref5["> " + DropdownText] = {
45145
- paddingLeft: getPaddingLeft(layer)
45146
- }, _ref5;
45147
- });
45139
+ }, addStyledProps);
45148
45140
  var SubMenuItemsList = styled.ul.withConfig({
45149
45141
  displayName: "MobileMenu__SubMenuItemsList",
45150
- componentId: "sc-18t6zrc-4"
45142
+ componentId: "sc-18t6zrc-3"
45151
45143
  })({
45152
45144
  listStyle: "none",
45153
45145
  paddingLeft: "0",
@@ -45157,23 +45149,25 @@ var SubMenuItemsList = styled.ul.withConfig({
45157
45149
  var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
45158
45150
  var _a;
45159
45151
 
45160
- var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
45161
- return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45162
- layer: layer,
45163
- key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45164
- }, /*#__PURE__*/React__default.createElement(MenuLink, {
45152
+ var sharedLinkProps = {
45165
45153
  onClick: linkOnClick,
45166
45154
  href: menuItem.href,
45167
45155
  as: menuItem.as,
45168
- to: menuItem.to
45169
- }, menuItem.name));
45156
+ to: menuItem.to,
45157
+ // eslint-disable-next-line no-mixed-operators
45158
+ pl: layer === 0 ? getPaddingLeft(layer) : 24 * layer + 20 + "px",
45159
+ mb: "x1"
45160
+ };
45161
+ var MenuLink = layer === 0 ? TopLevelLink : DropdownLink;
45162
+ return /*#__PURE__*/React__default.createElement("li", {
45163
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45164
+ }, /*#__PURE__*/React__default.createElement(MenuLink, Object.assign({}, sharedLinkProps), menuItem.name));
45170
45165
  };
45171
45166
 
45172
45167
  var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
45173
45168
  var _a;
45174
45169
 
45175
- return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45176
- layer: layer,
45170
+ return /*#__PURE__*/React__default.createElement("li", {
45177
45171
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45178
45172
  }, menuItem.render({
45179
45173
  size: "small",
@@ -45202,10 +45196,12 @@ var renderText = function renderText(menuItem, linkOnClick, themeColorObject, la
45202
45196
  var _a;
45203
45197
 
45204
45198
  var MenuText = layer === 0 ? TopLevelText : DropdownText;
45205
- return /*#__PURE__*/React__default.createElement(ChildIndentingLi, {
45206
- layer: layer,
45199
+ return /*#__PURE__*/React__default.createElement("li", {
45207
45200
  key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45208
- }, /*#__PURE__*/React__default.createElement(MenuText, null, menuItem.name));
45201
+ }, /*#__PURE__*/React__default.createElement(MenuText, {
45202
+ pl: getPaddingLeft(layer),
45203
+ mb: "x1"
45204
+ }, menuItem.name));
45209
45205
  };
45210
45206
 
45211
45207
  var getRenderFunction = function getRenderFunction(menuItem) {
@@ -45233,20 +45229,19 @@ var renderTopLayerMenuItems = function renderTopLayerMenuItems(menuData, linkOnC
45233
45229
 
45234
45230
  var getSubMenuHeading = function getSubMenuHeading(layer, name) {
45235
45231
  return layer === 0 ? /*#__PURE__*/React__default.createElement(TopLevelText, {
45236
- as: "h3"
45232
+ as: "h3",
45233
+ mb: "x1"
45237
45234
  }, name) : /*#__PURE__*/React__default.createElement(DropdownText, {
45238
45235
  mb: "x1",
45239
- style: {
45240
- paddingLeft: getPaddingLeft(layer)
45241
- }
45236
+ pl: getPaddingLeft(layer)
45242
45237
  }, name);
45243
45238
  };
45244
45239
 
45245
- var SubMenu = function SubMenu(_ref6) {
45246
- var menuItem = _ref6.menuItem,
45247
- linkOnClick = _ref6.linkOnClick,
45248
- themeColorObject = _ref6.themeColorObject,
45249
- layer = _ref6.layer;
45240
+ var SubMenu = function SubMenu(_ref4) {
45241
+ var menuItem = _ref4.menuItem,
45242
+ linkOnClick = _ref4.linkOnClick,
45243
+ themeColorObject = _ref4.themeColorObject,
45244
+ layer = _ref4.layer;
45250
45245
 
45251
45246
  var defaultRender = function defaultRender() {
45252
45247
  return getSubMenuHeading(layer, menuItem.name);
@@ -45261,27 +45256,27 @@ var SubMenu = function SubMenu(_ref6) {
45261
45256
 
45262
45257
  var Menu$1 = styled.ul.withConfig({
45263
45258
  displayName: "MobileMenu__Menu",
45264
- componentId: "sc-18t6zrc-5"
45265
- })(function (_ref7) {
45266
- var _ref8;
45259
+ componentId: "sc-18t6zrc-4"
45260
+ })(function (_ref5) {
45261
+ var _ref6;
45267
45262
 
45268
- var theme = _ref7.theme;
45269
- return _ref8 = {
45263
+ var theme = _ref5.theme;
45264
+ return _ref6 = {
45270
45265
  listStyle: "none",
45271
45266
  margin: "0",
45272
45267
  padding: theme.space.x1 + " 0",
45273
45268
  zIndex: theme.zIndices.content,
45274
45269
  width: "100%",
45275
45270
  color: theme.colors.white
45276
- }, _ref8["" + Heading3] = {
45271
+ }, _ref6["" + Heading3] = {
45277
45272
  padding: theme.space.x1 + " 0 " + theme.space.x1 + " " + theme.space.x3
45278
- }, _ref8;
45273
+ }, _ref6;
45279
45274
  });
45280
45275
  var Nav = styled.nav.withConfig({
45281
45276
  displayName: "MobileMenu__Nav",
45282
- componentId: "sc-18t6zrc-6"
45283
- })(function (_ref9) {
45284
- var backgroundColor = _ref9.backgroundColor;
45277
+ componentId: "sc-18t6zrc-5"
45278
+ })(function (_ref7) {
45279
+ var backgroundColor = _ref7.backgroundColor;
45285
45280
  return {
45286
45281
  backgroundColor: backgroundColor
45287
45282
  };
@@ -45319,7 +45314,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
45319
45314
 
45320
45315
  var MobileMenu = styled(BaseMobileMenu).withConfig({
45321
45316
  displayName: "MobileMenu",
45322
- componentId: "sc-18t6zrc-7"
45317
+ componentId: "sc-18t6zrc-6"
45323
45318
  })(display);
45324
45319
 
45325
45320
  var borderStyle = "1px solid #e4e7eb";
@@ -52616,6 +52611,7 @@ var Sidebar = function Sidebar(_a) {
52616
52611
  }, title)), !hideCloseButton && /*#__PURE__*/React__default.createElement(Box, {
52617
52612
  marginLeft: "x2"
52618
52613
  }, /*#__PURE__*/React__default.createElement(IconicButton, {
52614
+ type: "button",
52619
52615
  ref: closeButton,
52620
52616
  icon: "close",
52621
52617
  onClick: onClose,
@@ -3,5 +3,5 @@ declare type CloseButtonProps = {
3
3
  onClick: any;
4
4
  "aria-label": string;
5
5
  };
6
- declare const CloseButton: ({ onClick, "aria-label": ariaLabel, }: CloseButtonProps) => JSX.Element;
6
+ declare const CloseButton: ({ onClick, "aria-label": ariaLabel }: CloseButtonProps) => JSX.Element;
7
7
  export default CloseButton;
@@ -3,5 +3,5 @@ declare type NulogyLogoContainerProps = {
3
3
  subText?: string;
4
4
  height?: string;
5
5
  };
6
- export declare const NulogyLogoContainer: ({ subText, height, }: NulogyLogoContainerProps) => JSX.Element;
6
+ export declare const NulogyLogoContainer: ({ subText, height }: NulogyLogoContainerProps) => JSX.Element;
7
7
  export {};
@@ -1,16 +1,13 @@
1
1
  import React from "react";
2
2
  import { SpaceProps } from "styled-system";
3
- declare const IconicButton: React.ForwardRefExoticComponent<SpaceProps<Required<import("styled-system").Theme<React.ReactText>>, string | number | symbol> & {
4
- className?: string;
3
+ declare type IconicButtonProps = React.HTMLProps<HTMLButtonElement> & SpaceProps & {
5
4
  color?: string;
6
5
  labelHidden?: boolean;
7
- disabled?: boolean;
8
- onClick?: (...args: any[]) => any;
9
6
  icon?: any;
10
7
  iconSize?: string;
11
8
  fontSize?: string;
12
9
  tooltip?: string;
13
- children?: any;
14
- } & React.RefAttributes<HTMLButtonElement>>;
10
+ };
11
+ declare const IconicButton: React.ForwardRefExoticComponent<Pick<IconicButtonProps, "sizes" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "tooltip" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "start" | "icon" | "size" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "step" | "labelHidden" | "iconSize" | "fontSize" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLButtonElement>>;
15
12
  export declare const iconNames: string[];
16
13
  export default IconicButton;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ColorProps, SpaceProps, LayoutProps, TypographyProps } from "styled-system";
3
2
  import { DefaultNDSThemeType } from "../theme.type";
4
- export declare type LinkProps = React.ComponentPropsWithRef<"a"> & ColorProps & SpaceProps & LayoutProps & TypographyProps & {
3
+ import { StyledProps } from "../StyledProps";
4
+ export declare type LinkProps = React.ComponentPropsWithRef<"a"> & StyledProps & {
5
5
  className?: string;
6
6
  underline?: boolean;
7
7
  hover?: string;
@@ -6,5 +6,5 @@ declare type NDSProviderProps = {
6
6
  disableGlobalStyles?: boolean;
7
7
  children?: any;
8
8
  };
9
- declare const NDSProvider: ({ theme, children, disableGlobalStyles, locale, }: NDSProviderProps) => JSX.Element;
9
+ declare const NDSProvider: ({ theme, children, disableGlobalStyles, locale }: NDSProviderProps) => JSX.Element;
10
10
  export default NDSProvider;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from "prop-types";
3
3
  declare const PreviousButton: {
4
- ({ disabled, onClick, label, "aria-label": ariaLabel, }: any): JSX.Element;
4
+ ({ disabled, onClick, label, "aria-label": ariaLabel }: any): JSX.Element;
5
5
  propTypes: {
6
6
  disabled: PropTypes.Requireable<boolean>;
7
7
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -1,9 +1,9 @@
1
- export declare const showIndicatorSeparator: ({ isMulti, hasValue, hasDefaultOptions, }: {
1
+ export declare const showIndicatorSeparator: ({ isMulti, hasValue, hasDefaultOptions }: {
2
2
  isMulti: any;
3
3
  hasValue: any;
4
4
  hasDefaultOptions: any;
5
5
  }) => any;
6
- declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOptions, }: {
6
+ declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOptions }: {
7
7
  theme: any;
8
8
  error: any;
9
9
  maxHeight: any;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from "prop-types";
3
3
  declare const SortingColumnHeader: {
4
- ({ onChange, label, ascending, active, ariaLabel, }: {
4
+ ({ onChange, label, ascending, active, ariaLabel }: {
5
5
  onChange: any;
6
6
  label: any;
7
7
  ascending: any;
@@ -8,7 +8,7 @@ export declare type TableCellInfoType = CellInfoType;
8
8
  declare const Table: {
9
9
  ({ hasSelectableRows, rowsPerPage, hasExpandableRows, selectedRows, onRowSelectionChange, onRowExpansionChange, onPageChange, selectAllAriaLabel, deselectAllAriaLabel, paginationCss, paginationProps, ...props }: TableProps): JSX.Element;
10
10
  SortingHeader: {
11
- ({ onChange, label, ascending, active, ariaLabel, }: {
11
+ ({ onChange, label, ascending, active, ariaLabel }: {
12
12
  onChange: any;
13
13
  label: any;
14
14
  ascending: any;
@@ -22,7 +22,7 @@ declare type TimePickerProps = SpaceProps & {
22
22
  onClick?: (...args: any[]) => any;
23
23
  };
24
24
  export declare const convertTo24HourTimeArray: (timeInput: any) => any;
25
- export declare const getBestMatchTime: ({ time, timeFormat, minTime, maxTime, locale, }: {
25
+ export declare const getBestMatchTime: ({ time, timeFormat, minTime, maxTime, locale }: {
26
26
  time: any;
27
27
  timeFormat: any;
28
28
  minTime: any;
@@ -5,13 +5,13 @@ export { Box, AnimatedBox } from "./Box";
5
5
  export { Flex } from "./Flex";
6
6
  export { Icon, InlineIcon } from "./Icon";
7
7
  export { Text, Heading1, Heading2, Heading3, Heading4 } from "./Type";
8
- export { Button, PrimaryButton, DangerButton, QuietButton, IconicButton, ControlIcon, } from "./Button";
8
+ export { Button, PrimaryButton, DangerButton, QuietButton, IconicButton, ControlIcon } from "./Button";
9
9
  export { ButtonGroup } from "./ButtonGroup";
10
10
  export { Link } from "./Link";
11
11
  export { InlineValidation } from "./Validation";
12
12
  export { Alert } from "./Alert";
13
13
  export { Branding } from "./Branding";
14
- export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText, } from "./DropdownMenu";
14
+ export { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText } from "./DropdownMenu";
15
15
  export { HelpText, RequirementText, FieldLabel } from "./FieldLabel";
16
16
  export { Input } from "./Input";
17
17
  export { NavBar } from "./NavBar";
@@ -28,7 +28,7 @@ export { Modal } from "./Modal";
28
28
  export { Tab, Tabs } from "./Tabs";
29
29
  export { Switch, Switcher } from "./Switcher";
30
30
  export { Table } from "./Table";
31
- export type { TableProps, TableColumnType, TableRowType, TableCellInfoType, } from "./Table";
31
+ export type { TableProps, TableColumnType, TableRowType, TableCellInfoType } from "./Table";
32
32
  export { StatusIndicator } from "./StatusIndicator";
33
33
  export { Pagination } from "./Pagination";
34
34
  export { DatePicker } from "./DatePicker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "7.1.0",
3
+ "version": "7.2.2",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {