@nulogy/components 6.7.0 → 6.7.3

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 (55) hide show
  1. package/dist/main.js +43 -14
  2. package/dist/main.module.js +43 -14
  3. package/dist/src/Branding/BrandingText.d.ts +1 -1
  4. package/dist/src/Branding/LettermarkLogo.d.ts +1 -1
  5. package/dist/src/Branding/WordmarkLogo.d.ts +1 -1
  6. package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +1 -1
  7. package/dist/src/Button/Button.d.ts +1 -1
  8. package/dist/src/Button/DangerButton.d.ts +1 -1
  9. package/dist/src/Button/PrimaryButton.d.ts +1 -1
  10. package/dist/src/Button/QuietButton.d.ts +1 -1
  11. package/dist/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  12. package/dist/src/Card/Card.d.ts +1 -1
  13. package/dist/src/Card/CardSet.d.ts +1 -1
  14. package/dist/src/Checkbox/Checkbox.d.ts +1 -1
  15. package/dist/src/Checkbox/CheckboxGroup.d.ts +1 -1
  16. package/dist/src/DatePicker/DatePicker.d.ts +1 -1
  17. package/dist/src/DatePicker/DatePickerHeader.d.ts +1 -1
  18. package/dist/src/DatePicker/DatePickerInput.d.ts +1 -1
  19. package/dist/src/DateRange/DateRange.d.ts +1 -1
  20. package/dist/src/DateRange/EndTime.d.ts +1 -1
  21. package/dist/src/DateRange/StartTime.d.ts +1 -1
  22. package/dist/src/DropdownMenu/DropdownButton.d.ts +1 -1
  23. package/dist/src/DropdownMenu/DropdownItem.d.ts +1 -1
  24. package/dist/src/DropdownMenu/DropdownLink.d.ts +1 -1
  25. package/dist/src/DropdownMenu/DropdownMenu.d.ts +1 -1
  26. package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
  27. package/dist/src/Form/Fieldset.d.ts +1 -1
  28. package/dist/src/Form/FormSection.d.ts +1 -1
  29. package/dist/src/Icon/LoadingIcon.d.ts +1 -1
  30. package/dist/src/Input/Input.d.ts +1 -1
  31. package/dist/src/Input/InputField.d.ts +1 -1
  32. package/dist/src/List/List.d.ts +1 -1
  33. package/dist/src/List/ListItem.d.ts +1 -1
  34. package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  35. package/dist/src/Modal/ModalContent.d.ts +1 -1
  36. package/dist/src/Overlay/Overlay.d.ts +1 -1
  37. package/dist/src/Pagination/Pagination.d.ts +1 -1
  38. package/dist/src/Popper/Popper.d.ts +1 -1
  39. package/dist/src/RangeContainer/RangeContainer.d.ts +1 -1
  40. package/dist/src/StatusIndicator/StatusIndicator.d.ts +1 -1
  41. package/dist/src/Table/BaseTable.d.ts +1 -1
  42. package/dist/src/Table/TableCell.d.ts +1 -1
  43. package/dist/src/Table/TableHead.d.ts +1 -1
  44. package/dist/src/Tabs/Tab.d.ts +1 -1
  45. package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
  46. package/dist/src/Textarea/StyledTextarea.d.ts +1 -1
  47. package/dist/src/Textarea/Textarea.d.ts +1 -1
  48. package/dist/src/TimePicker/TimePicker.d.ts +1 -1
  49. package/dist/src/TimePicker/TimePickerInput.d.ts +1 -1
  50. package/dist/src/TimeRange/TimeRange.d.ts +1 -1
  51. package/dist/src/Tooltip/Tooltip.d.ts +1 -1
  52. package/dist/src/Validation/InlineValidation.d.ts +1 -1
  53. package/dist/src/utils/ClickInputLabel.d.ts +1 -1
  54. package/dist/src/utils/ts/FocusManager.d.ts +1 -0
  55. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -23374,7 +23374,7 @@
23374
23374
  displayName: "DesktopMenu",
23375
23375
  componentId: "e4dzdq-4"
23376
23376
  })({
23377
- div: {
23377
+ "> div": {
23378
23378
  ":not(:last-of-type)": {
23379
23379
  marginRight: Theme.space.x1
23380
23380
  }
@@ -24386,6 +24386,7 @@
24386
24386
  var spaceProps = getSubset(props, propTypes.space);
24387
24387
  var restProps = omitSubset(props, propTypes.space);
24388
24388
  return /*#__PURE__*/React__default['default'].createElement(Box, Object.assign({
24389
+ position: "relative",
24389
24390
  className: className,
24390
24391
  py: "half",
24391
24392
  px: "0"
@@ -24515,6 +24516,7 @@
24515
24516
  toggled = _ref.toggled,
24516
24517
  onClick = _ref.onClick;
24517
24518
  return /*#__PURE__*/React__default['default'].createElement(AnimatedBox, {
24519
+ position: "relative",
24518
24520
  display: "flex",
24519
24521
  alignItems: "center",
24520
24522
  justifyContent: toggled ? "flex-end" : "flex-start",
@@ -27514,9 +27516,10 @@
27514
27516
  var FocusManager = function FocusManager(_ref) {
27515
27517
  var children = _ref.children,
27516
27518
  _ref$refs = _ref.refs,
27517
- refs = _ref$refs === void 0 ? undefined : _ref$refs;
27519
+ refs = _ref$refs === void 0 ? undefined : _ref$refs,
27520
+ defaultFocusedIndex = _ref.defaultFocusedIndex;
27518
27521
 
27519
- var _useState = React.useState(0),
27522
+ var _useState = React.useState(defaultFocusedIndex !== null && defaultFocusedIndex !== void 0 ? defaultFocusedIndex : 0),
27520
27523
  focusedIndex = _useState[0],
27521
27524
  setFocusedIndex = _useState[1];
27522
27525
 
@@ -27987,7 +27990,8 @@
27987
27990
  return /*#__PURE__*/React__default['default'].createElement(Box, {
27988
27991
  position: "relative"
27989
27992
  }, /*#__PURE__*/React__default['default'].createElement(FocusManager, {
27990
- refs: this.tabRefs
27993
+ refs: this.tabRefs,
27994
+ defaultFocusedIndex: this.getSelectedIndex()
27991
27995
  }, function (_ref2) {
27992
27996
  var focusedIndex = _ref2.focusedIndex,
27993
27997
  setFocusedIndex = _ref2.setFocusedIndex,
@@ -28036,6 +28040,14 @@
28036
28040
  return value === selected;
28037
28041
  };
28038
28042
 
28043
+ var getSelectedIndex = function getSelectedIndex() {
28044
+ return React__default['default'].Children.toArray(rest.children).findIndex(function (child) {
28045
+ var _a, _b;
28046
+
28047
+ return ((_b = (_a = child) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.value) === selected;
28048
+ });
28049
+ };
28050
+
28039
28051
  var options = function options(focusedIndex, setFocusedIndex, handleArrowNavigation) {
28040
28052
  return React__default['default'].Children.map(rest.children, function (child, index) {
28041
28053
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
@@ -28063,7 +28075,8 @@
28063
28075
  bg: "whiteGrey",
28064
28076
  borderRadius: "20px"
28065
28077
  }, rest), /*#__PURE__*/React__default['default'].createElement(FocusManager, {
28066
- refs: optionRefs
28078
+ refs: optionRefs,
28079
+ defaultFocusedIndex: getSelectedIndex()
28067
28080
  }, function (_ref2) {
28068
28081
  var focusedIndex = _ref2.focusedIndex,
28069
28082
  setFocusedIndex = _ref2.setFocusedIndex,
@@ -44983,8 +44996,10 @@
44983
44996
  });
44984
44997
 
44985
44998
  var renderMenuTrigger = function renderMenuTrigger(menuItem, themeColorObject) {
44999
+ var _a;
45000
+
44986
45001
  return /*#__PURE__*/React__default['default'].createElement("div", {
44987
- key: menuItem.key || menuItem.name
45002
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44988
45003
  }, /*#__PURE__*/React__default['default'].createElement(MenuTrigger, Object.assign({
44989
45004
  name: menuItem.name,
44990
45005
  "aria-label": menuItem.ariaLabel,
@@ -44993,8 +45008,10 @@
44993
45008
  };
44994
45009
 
44995
45010
  var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
45011
+ var _a;
45012
+
44996
45013
  return /*#__PURE__*/React__default['default'].createElement("div", {
44997
- key: menuItem.name
45014
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44998
45015
  }, /*#__PURE__*/React__default['default'].createElement(MenuLink$1, Object.assign({
44999
45016
  href: menuItem.href,
45000
45017
  to: menuItem.to,
@@ -45003,14 +45020,18 @@
45003
45020
  };
45004
45021
 
45005
45022
  var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
45023
+ var _a;
45024
+
45006
45025
  return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles$1, Object.assign({}, themeColorObject, {
45007
- key: menuItem.name
45026
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45008
45027
  }), menuItem.render());
45009
45028
  };
45010
45029
 
45011
45030
  var renderText$1 = function renderText(menuItem, themeColorObject) {
45031
+ var _a;
45032
+
45012
45033
  return /*#__PURE__*/React__default['default'].createElement(MenuText$1, Object.assign({
45013
- key: menuItem.name
45034
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45014
45035
  }, themeColorObject), menuItem.name);
45015
45036
  };
45016
45037
 
@@ -45044,7 +45065,7 @@
45044
45065
  displayName: "DesktopMenu",
45045
45066
  componentId: "sc-8mrjkc-4"
45046
45067
  })({
45047
- div: {
45068
+ "> div": {
45048
45069
  ":not(:last-of-type)": {
45049
45070
  marginRight: "8px"
45050
45071
  }
@@ -45246,8 +45267,10 @@
45246
45267
  });
45247
45268
 
45248
45269
  var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
45270
+ var _a;
45271
+
45249
45272
  return /*#__PURE__*/React__default['default'].createElement(StyledLi, {
45250
- key: menuItem.name
45273
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45251
45274
  }, /*#__PURE__*/React__default['default'].createElement(MenuLink, Object.assign({
45252
45275
  layer: layer
45253
45276
  }, themeColorObject, {
@@ -45259,8 +45282,10 @@
45259
45282
  };
45260
45283
 
45261
45284
  var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
45285
+ var _a;
45286
+
45262
45287
  return /*#__PURE__*/React__default['default'].createElement(ApplyMenuLinkStyles, Object.assign({
45263
- key: menuItem.name
45288
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45264
45289
  }, themeColorObject, {
45265
45290
  layer: layer,
45266
45291
  onClick: linkOnClick
@@ -45268,8 +45293,10 @@
45268
45293
  };
45269
45294
 
45270
45295
  var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObject, layer) {
45296
+ var _a;
45297
+
45271
45298
  return /*#__PURE__*/React__default['default'].createElement("li", {
45272
- key: menuItem.name,
45299
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name,
45273
45300
  style: {
45274
45301
  display: "block"
45275
45302
  }
@@ -45282,8 +45309,10 @@
45282
45309
  };
45283
45310
 
45284
45311
  var renderText = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
45312
+ var _a;
45313
+
45285
45314
  return /*#__PURE__*/React__default['default'].createElement(MenuText, Object.assign({
45286
- key: menuItem.name,
45315
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name,
45287
45316
  layer: layer
45288
45317
  }, themeColorObject), menuItem.name);
45289
45318
  };
@@ -23348,7 +23348,7 @@ var DesktopMenu$1 = styled(BaseDesktopMenu$1).withConfig({
23348
23348
  displayName: "DesktopMenu",
23349
23349
  componentId: "e4dzdq-4"
23350
23350
  })({
23351
- div: {
23351
+ "> div": {
23352
23352
  ":not(:last-of-type)": {
23353
23353
  marginRight: Theme.space.x1
23354
23354
  }
@@ -24360,6 +24360,7 @@ var Radio = /*#__PURE__*/forwardRef(function (_a, ref) {
24360
24360
  var spaceProps = getSubset(props, propTypes.space);
24361
24361
  var restProps = omitSubset(props, propTypes.space);
24362
24362
  return /*#__PURE__*/React__default.createElement(Box, Object.assign({
24363
+ position: "relative",
24363
24364
  className: className,
24364
24365
  py: "half",
24365
24366
  px: "0"
@@ -24489,6 +24490,7 @@ var Switch$1 = function Switch(_ref) {
24489
24490
  toggled = _ref.toggled,
24490
24491
  onClick = _ref.onClick;
24491
24492
  return /*#__PURE__*/React__default.createElement(AnimatedBox, {
24493
+ position: "relative",
24492
24494
  display: "flex",
24493
24495
  alignItems: "center",
24494
24496
  justifyContent: toggled ? "flex-end" : "flex-start",
@@ -27488,9 +27490,10 @@ Tab.defaultProps = {
27488
27490
  var FocusManager = function FocusManager(_ref) {
27489
27491
  var children = _ref.children,
27490
27492
  _ref$refs = _ref.refs,
27491
- refs = _ref$refs === void 0 ? undefined : _ref$refs;
27493
+ refs = _ref$refs === void 0 ? undefined : _ref$refs,
27494
+ defaultFocusedIndex = _ref.defaultFocusedIndex;
27492
27495
 
27493
- var _useState = useState(0),
27496
+ var _useState = useState(defaultFocusedIndex !== null && defaultFocusedIndex !== void 0 ? defaultFocusedIndex : 0),
27494
27497
  focusedIndex = _useState[0],
27495
27498
  setFocusedIndex = _useState[1];
27496
27499
 
@@ -27961,7 +27964,8 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
27961
27964
  return /*#__PURE__*/React__default.createElement(Box, {
27962
27965
  position: "relative"
27963
27966
  }, /*#__PURE__*/React__default.createElement(FocusManager, {
27964
- refs: this.tabRefs
27967
+ refs: this.tabRefs,
27968
+ defaultFocusedIndex: this.getSelectedIndex()
27965
27969
  }, function (_ref2) {
27966
27970
  var focusedIndex = _ref2.focusedIndex,
27967
27971
  setFocusedIndex = _ref2.setFocusedIndex,
@@ -28010,6 +28014,14 @@ var Switcher = function Switcher(_a) {
28010
28014
  return value === selected;
28011
28015
  };
28012
28016
 
28017
+ var getSelectedIndex = function getSelectedIndex() {
28018
+ return React__default.Children.toArray(rest.children).findIndex(function (child) {
28019
+ var _a, _b;
28020
+
28021
+ return ((_b = (_a = child) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.value) === selected;
28022
+ });
28023
+ };
28024
+
28013
28025
  var options = function options(focusedIndex, setFocusedIndex, handleArrowNavigation) {
28014
28026
  return React__default.Children.map(rest.children, function (child, index) {
28015
28027
  return /*#__PURE__*/React__default.cloneElement(child, {
@@ -28037,7 +28049,8 @@ var Switcher = function Switcher(_a) {
28037
28049
  bg: "whiteGrey",
28038
28050
  borderRadius: "20px"
28039
28051
  }, rest), /*#__PURE__*/React__default.createElement(FocusManager, {
28040
- refs: optionRefs
28052
+ refs: optionRefs,
28053
+ defaultFocusedIndex: getSelectedIndex()
28041
28054
  }, function (_ref2) {
28042
28055
  var focusedIndex = _ref2.focusedIndex,
28043
28056
  setFocusedIndex = _ref2.setFocusedIndex,
@@ -44957,8 +44970,10 @@ var Nav$1 = styled.nav.withConfig({
44957
44970
  });
44958
44971
 
44959
44972
  var renderMenuTrigger = function renderMenuTrigger(menuItem, themeColorObject) {
44973
+ var _a;
44974
+
44960
44975
  return /*#__PURE__*/React__default.createElement("div", {
44961
- key: menuItem.key || menuItem.name
44976
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44962
44977
  }, /*#__PURE__*/React__default.createElement(MenuTrigger, Object.assign({
44963
44978
  name: menuItem.name,
44964
44979
  "aria-label": menuItem.ariaLabel,
@@ -44967,8 +44982,10 @@ var renderMenuTrigger = function renderMenuTrigger(menuItem, themeColorObject) {
44967
44982
  };
44968
44983
 
44969
44984
  var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
44985
+ var _a;
44986
+
44970
44987
  return /*#__PURE__*/React__default.createElement("div", {
44971
- key: menuItem.name
44988
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44972
44989
  }, /*#__PURE__*/React__default.createElement(MenuLink$1, Object.assign({
44973
44990
  href: menuItem.href,
44974
44991
  to: menuItem.to,
@@ -44977,14 +44994,18 @@ var renderMenuLink$1 = function renderMenuLink(menuItem, themeColorObject) {
44977
44994
  };
44978
44995
 
44979
44996
  var renderCustom$1 = function renderCustom(menuItem, themeColorObject) {
44997
+ var _a;
44998
+
44980
44999
  return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles$1, Object.assign({}, themeColorObject, {
44981
- key: menuItem.name
45000
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44982
45001
  }), menuItem.render());
44983
45002
  };
44984
45003
 
44985
45004
  var renderText$1 = function renderText(menuItem, themeColorObject) {
45005
+ var _a;
45006
+
44986
45007
  return /*#__PURE__*/React__default.createElement(MenuText$1, Object.assign({
44987
- key: menuItem.name
45008
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
44988
45009
  }, themeColorObject), menuItem.name);
44989
45010
  };
44990
45011
 
@@ -45018,7 +45039,7 @@ var DesktopMenu = styled(BaseDesktopMenu).withConfig({
45018
45039
  displayName: "DesktopMenu",
45019
45040
  componentId: "sc-8mrjkc-4"
45020
45041
  })({
45021
- div: {
45042
+ "> div": {
45022
45043
  ":not(:last-of-type)": {
45023
45044
  marginRight: "8px"
45024
45045
  }
@@ -45220,8 +45241,10 @@ var StyledLi = styled.li.withConfig({
45220
45241
  });
45221
45242
 
45222
45243
  var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorObject, layer) {
45244
+ var _a;
45245
+
45223
45246
  return /*#__PURE__*/React__default.createElement(StyledLi, {
45224
- key: menuItem.name
45247
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45225
45248
  }, /*#__PURE__*/React__default.createElement(MenuLink, Object.assign({
45226
45249
  layer: layer
45227
45250
  }, themeColorObject, {
@@ -45233,8 +45256,10 @@ var renderMenuLink = function renderMenuLink(menuItem, linkOnClick, themeColorOb
45233
45256
  };
45234
45257
 
45235
45258
  var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject, layer) {
45259
+ var _a;
45260
+
45236
45261
  return /*#__PURE__*/React__default.createElement(ApplyMenuLinkStyles, Object.assign({
45237
- key: menuItem.name
45262
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name
45238
45263
  }, themeColorObject, {
45239
45264
  layer: layer,
45240
45265
  onClick: linkOnClick
@@ -45242,8 +45267,10 @@ var renderCustom = function renderCustom(menuItem, linkOnClick, themeColorObject
45242
45267
  };
45243
45268
 
45244
45269
  var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObject, layer) {
45270
+ var _a;
45271
+
45245
45272
  return /*#__PURE__*/React__default.createElement("li", {
45246
- key: menuItem.name,
45273
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name,
45247
45274
  style: {
45248
45275
  display: "block"
45249
45276
  }
@@ -45256,8 +45283,10 @@ var renderSubMenu = function renderSubMenu(menuItem, linkOnClick, themeColorObje
45256
45283
  };
45257
45284
 
45258
45285
  var renderText = function renderText(menuItem, linkOnClick, themeColorObject, layer) {
45286
+ var _a;
45287
+
45259
45288
  return /*#__PURE__*/React__default.createElement(MenuText, Object.assign({
45260
- key: menuItem.name,
45289
+ key: (_a = menuItem.key) !== null && _a !== void 0 ? _a : menuItem.name,
45261
45290
  layer: layer
45262
45291
  }, themeColorObject), menuItem.name);
45263
45292
  };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const BrandingText: React.SFC<any>;
2
+ declare const BrandingText: React.FC<any>;
3
3
  export default BrandingText;
@@ -3,5 +3,5 @@ declare type LettermarkLogoProps = {
3
3
  letterFill?: string;
4
4
  size?: string;
5
5
  };
6
- declare const LettermarkLogo: React.SFC<LettermarkLogoProps>;
6
+ declare const LettermarkLogo: React.FC<LettermarkLogoProps>;
7
7
  export default LettermarkLogo;
@@ -4,5 +4,5 @@ declare type WordmarkLogoProps = {
4
4
  letterFill?: string;
5
5
  size?: string;
6
6
  };
7
- declare const WordmarkLogo: React.SFC<WordmarkLogoProps>;
7
+ declare const WordmarkLogo: React.FC<WordmarkLogoProps>;
8
8
  export default WordmarkLogo;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const BreadcrumbsListItem: React.SFC<any>;
2
+ declare const BreadcrumbsListItem: React.FC<any>;
3
3
  export default BreadcrumbsListItem;
@@ -13,5 +13,5 @@ export declare type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"butt
13
13
  theme?: DefaultNDSThemeType;
14
14
  href?: string;
15
15
  };
16
- declare const Button: React.SFC<ButtonProps>;
16
+ declare const Button: React.FC<ButtonProps>;
17
17
  export default Button;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from "./Button";
3
- declare const DangerButton: import("styled-components").StyledComponent<import("react").SFC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const DangerButton: import("styled-components").StyledComponent<import("react").FC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export default DangerButton;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const PrimaryButton: React.SFC<any>;
2
+ declare const PrimaryButton: React.FC<any>;
3
3
  export default PrimaryButton;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from "./Button";
3
- declare const QuietButton: import("styled-components").StyledComponent<import("react").SFC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const QuietButton: import("styled-components").StyledComponent<import("react").FC<ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export default QuietButton;
@@ -4,5 +4,5 @@ declare type ButtonGroupProps = FlexProps & {
4
4
  alignment?: "left" | "spaced" | "right";
5
5
  className?: string;
6
6
  };
7
- declare const ButtonGroup: React.SFC<ButtonGroupProps>;
7
+ declare const ButtonGroup: React.FC<ButtonGroupProps>;
8
8
  export default ButtonGroup;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box/Box";
3
- declare const Card: React.SFC<BoxProps>;
3
+ declare const Card: React.FC<BoxProps>;
4
4
  export default Card;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box/Box";
3
- declare const CardSet: import("styled-components").StyledComponent<React.SFC<BoxProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const CardSet: import("styled-components").StyledComponent<React.FC<BoxProps>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export default CardSet;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const Checkbox: React.SFC<any>;
2
+ declare const Checkbox: React.FC<any>;
3
3
  export default Checkbox;
@@ -14,5 +14,5 @@ interface CheckboxGroupProps {
14
14
  required?: boolean;
15
15
  disabled?: boolean;
16
16
  }
17
- declare const CheckboxGroup: React.SFC<CheckboxGroupProps>;
17
+ declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
18
18
  export default CheckboxGroup;
@@ -14,5 +14,5 @@ declare type DatePickerProps = FieldProps & {
14
14
  disableFlipping?: boolean;
15
15
  className?: string;
16
16
  };
17
- declare const DatePicker: React.SFC<DatePickerProps>;
17
+ declare const DatePicker: React.FC<DatePickerProps>;
18
18
  export default DatePicker;
@@ -7,5 +7,5 @@ declare type DatePickerHeaderProps = {
7
7
  nextMonthButtonDisabled: boolean;
8
8
  locale?: string;
9
9
  };
10
- declare const DatePickerHeader: React.SFC<DatePickerHeaderProps>;
10
+ declare const DatePickerHeader: React.FC<DatePickerHeaderProps>;
11
11
  export default DatePickerHeader;
@@ -12,5 +12,5 @@ declare type DatePickerInputProps = {
12
12
  inputProps?: any;
13
13
  "aria-label"?: string;
14
14
  };
15
- declare const DatePickerInput: React.SFC<DatePickerInputProps>;
15
+ declare const DatePickerInput: React.FC<DatePickerInputProps>;
16
16
  export default DatePickerInput;
@@ -30,5 +30,5 @@ declare type DateRangeProps = FieldProps & {
30
30
  endTimeProps?: any;
31
31
  startTimeProps?: any;
32
32
  };
33
- declare const DateRange: React.SFC<DateRangeProps>;
33
+ declare const DateRange: React.FC<DateRangeProps>;
34
34
  export default DateRange;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const EndTime: import("styled-components").StyledComponent<import("react").SFC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("react").ReactText>>, string | number | symbol> & {
2
+ declare const EndTime: import("styled-components").StyledComponent<import("react").FC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("react").ReactText>>, string | number | symbol> & {
3
3
  disabled?: boolean;
4
4
  value?: string;
5
5
  timeFormat?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const StartTime: import("styled-components").StyledComponent<import("react").SFC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("react").ReactText>>, string | number | symbol> & {
2
+ declare const StartTime: import("styled-components").StyledComponent<import("react").FC<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("react").ReactText>>, string | number | symbol> & {
3
3
  disabled?: boolean;
4
4
  value?: string;
5
5
  timeFormat?: string;
@@ -7,5 +7,5 @@ declare type DropdownButtonProps = React.ComponentPropsWithRef<"button"> & {
7
7
  hoverColor?: string;
8
8
  bgHoverColor?: string;
9
9
  };
10
- declare const DropdownButton: React.SFC<DropdownButtonProps>;
10
+ declare const DropdownButton: React.FC<DropdownButtonProps>;
11
11
  export default DropdownButton;
@@ -6,5 +6,5 @@ declare type DropdownItemProps = {
6
6
  hoverColor?: string;
7
7
  bgHoverColor?: string;
8
8
  };
9
- declare const DropdownItem: React.SFC<DropdownItemProps>;
9
+ declare const DropdownItem: React.FC<DropdownItemProps>;
10
10
  export default DropdownItem;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const DropdownLink: React.SFC<any>;
2
+ declare const DropdownLink: React.FC<any>;
3
3
  export default DropdownLink;
@@ -14,5 +14,5 @@ declare type DropdownMenuProps = {
14
14
  openAriaLabel?: string;
15
15
  closeAriaLabel?: string;
16
16
  };
17
- declare const DropdownMenu: React.SFC<DropdownMenuProps>;
17
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
18
18
  export default DropdownMenu;
@@ -7,5 +7,5 @@ declare type DropdownMenuContainerProps = {
7
7
  dataPlacement?: any;
8
8
  theme?: DefaultNDSThemeType;
9
9
  };
10
- declare const DropdownMenuContainer: React.SFC<DropdownMenuContainerProps>;
10
+ declare const DropdownMenuContainer: React.FC<DropdownMenuContainerProps>;
11
11
  export default DropdownMenuContainer;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Fieldset: React.SFC<any>;
2
+ declare const Fieldset: React.FC<any>;
3
3
  export default Fieldset;
@@ -2,5 +2,5 @@ import React from "react";
2
2
  declare type BaseFormSectionProps = React.ComponentPropsWithRef<"fieldset"> & {
3
3
  title?: string;
4
4
  };
5
- declare const FormSection: import("styled-components").StyledComponent<React.SFC<BaseFormSectionProps>, import("styled-components").DefaultTheme, {}, never>;
5
+ declare const FormSection: import("styled-components").StyledComponent<React.FC<BaseFormSectionProps>, import("styled-components").DefaultTheme, {}, never>;
6
6
  export default FormSection;
@@ -5,5 +5,5 @@ declare type LoadingIconProps = {
5
5
  title?: string;
6
6
  className?: string;
7
7
  };
8
- declare const LoadingIcon: React.SFC<LoadingIconProps>;
8
+ declare const LoadingIcon: React.FC<LoadingIconProps>;
9
9
  export default LoadingIcon;
@@ -7,5 +7,5 @@ declare type InputProps = InputFieldProps & SpaceProps & {
7
7
  errorList?: string[];
8
8
  className?: string;
9
9
  };
10
- declare const Input: React.SFC<InputProps>;
10
+ declare const Input: React.FC<InputProps>;
11
11
  export default Input;
@@ -17,4 +17,4 @@ export declare type InputFieldProps = React.ComponentPropsWithRef<"input"> & {
17
17
  iconSize?: string;
18
18
  inputWidth?: string;
19
19
  };
20
- export declare const InputField: React.SFC<InputFieldProps>;
20
+ export declare const InputField: React.FC<InputFieldProps>;
@@ -8,5 +8,5 @@ declare type ListProps = React.ComponentPropsWithRef<"ul"> & SpaceProps & Border
8
8
  leftAlign?: boolean;
9
9
  listStyle?: string;
10
10
  };
11
- declare const List: React.SFC<ListProps>;
11
+ declare const List: React.FC<ListProps>;
12
12
  export default List;
@@ -3,5 +3,5 @@ import { SpaceProps, ColorProps, TypographyProps } from "styled-system";
3
3
  declare type ListItemProps = React.ComponentPropsWithRef<"li"> & SpaceProps & ColorProps & TypographyProps & {
4
4
  className?: string;
5
5
  };
6
- declare const ListItem: React.SFC<ListItemProps>;
6
+ declare const ListItem: React.FC<ListItemProps>;
7
7
  export default ListItem;
@@ -2,5 +2,5 @@ import React from "react";
2
2
  declare type LoadingAnimationProps = React.ComponentPropsWithRef<"svg"> & {
3
3
  inactive?: boolean;
4
4
  };
5
- declare const LoadingAnimation: React.SFC<LoadingAnimationProps>;
5
+ declare const LoadingAnimation: React.FC<LoadingAnimationProps>;
6
6
  export default LoadingAnimation;
@@ -4,5 +4,5 @@ declare type ModalContentProps = React.ComponentPropsWithRef<"div"> & {
4
4
  hasFooter?: any;
5
5
  theme?: DefaultNDSThemeType;
6
6
  };
7
- declare const ModalContent: React.SFC<ModalContentProps>;
7
+ declare const ModalContent: React.FC<ModalContentProps>;
8
8
  export default ModalContent;
@@ -5,5 +5,5 @@ declare type OverlayProps = FlexProps & {
5
5
  dark?: boolean;
6
6
  theme?: DefaultNDSThemeType;
7
7
  };
8
- declare const Overlay: React.SFC<OverlayProps>;
8
+ declare const Overlay: React.FC<OverlayProps>;
9
9
  export default Overlay;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  export declare const getPageItemstoDisplay: (totalPages: any, currentPage: any) => any[];
3
- declare const Pagination: React.SFC<any>;
3
+ declare const Pagination: React.FC<any>;
4
4
  export default Pagination;
@@ -16,5 +16,5 @@ declare type PopperProps = {
16
16
  openAriaLabel?: string;
17
17
  closeAriaLabel?: string;
18
18
  };
19
- declare const Popper: React.SFC<PopperProps>;
19
+ declare const Popper: React.FC<PopperProps>;
20
20
  export default Popper;
@@ -5,5 +5,5 @@ declare type RangeContainerProps = {
5
5
  endComponent?: React.ReactNode;
6
6
  errorMessages?: (string | undefined)[];
7
7
  };
8
- declare const RangeContainer: React.SFC<RangeContainerProps>;
8
+ declare const RangeContainer: React.FC<RangeContainerProps>;
9
9
  export default RangeContainer;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const StatusIndicator: React.SFC<any>;
2
+ declare const StatusIndicator: React.FC<any>;
3
3
  export default StatusIndicator;
@@ -17,5 +17,5 @@ export declare type BaseTableProps = {
17
17
  onMouseEnter?: any;
18
18
  onMouseLeave?: any;
19
19
  };
20
- declare const BaseTable: React.SFC<BaseTableProps>;
20
+ declare const BaseTable: React.FC<BaseTableProps>;
21
21
  export default BaseTable;
@@ -6,5 +6,5 @@ declare type TableCellProps = {
6
6
  cellData?: object | React.ReactNode | boolean;
7
7
  compact?: boolean;
8
8
  };
9
- declare const TableCell: React.SFC<TableCellProps>;
9
+ declare const TableCell: React.FC<TableCellProps>;
10
10
  export default TableCell;
@@ -5,5 +5,5 @@ declare type TableHeadProps = {
5
5
  compact?: boolean;
6
6
  sticky?: boolean;
7
7
  };
8
- declare const TableHead: React.SFC<TableHeadProps>;
8
+ declare const TableHead: React.FC<TableHeadProps>;
9
9
  export default TableHead;
@@ -9,5 +9,5 @@ declare type TabButtonProps = React.ComponentPropsWithRef<"button"> & {
9
9
  declare type TabProps = TabButtonProps & {
10
10
  label?: React.ReactNode;
11
11
  };
12
- declare const Tab: React.SFC<TabProps>;
12
+ declare const Tab: React.FC<TabProps>;
13
13
  export default Tab;
@@ -6,5 +6,5 @@ declare type TabScrollIndicatorProps = {
6
6
  ariaLabelLeft?: string;
7
7
  ariaLabelRight?: string;
8
8
  };
9
- declare const TabScrollIndicator: React.SFC<TabScrollIndicatorProps>;
9
+ declare const TabScrollIndicator: React.FC<TabScrollIndicatorProps>;
10
10
  export default TabScrollIndicator;
@@ -9,5 +9,5 @@ export declare type StyledTextareaProps = React.ComponentPropsWithRef<"textarea"
9
9
  rows?: number;
10
10
  isResizeable?: boolean;
11
11
  };
12
- declare const StyledTextarea: React.SFC<StyledTextareaProps>;
12
+ declare const StyledTextarea: React.FC<StyledTextareaProps>;
13
13
  export default StyledTextarea;
@@ -14,5 +14,5 @@ declare type TextareaProps = StyledTextareaProps & {
14
14
  rows?: number;
15
15
  isResizeable?: boolean;
16
16
  };
17
- declare const Textarea: React.SFC<TextareaProps>;
17
+ declare const Textarea: React.FC<TextareaProps>;
18
18
  export default Textarea;
@@ -36,5 +36,5 @@ export declare const getTimeOptions: (interval: any, timeFormat: any, minTime: a
36
36
  value: string;
37
37
  label: string;
38
38
  }[];
39
- declare const TimePicker: React.SFC<TimePickerProps>;
39
+ declare const TimePicker: React.FC<TimePickerProps>;
40
40
  export default TimePicker;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const TimePickerInput: import("styled-components").StyledComponent<import("react").SFC<import("../Input/InputField").InputFieldProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ declare const TimePickerInput: import("styled-components").StyledComponent<import("react").FC<import("../Input/InputField").InputFieldProps>, import("styled-components").DefaultTheme, {}, never>;
3
3
  export default TimePickerInput;
@@ -19,5 +19,5 @@ declare type TimeRangeProps = SpaceProps & {
19
19
  endTimeProps?: any;
20
20
  startTimeProps?: any;
21
21
  };
22
- declare const TimeRange: React.SFC<TimeRangeProps>;
22
+ declare const TimeRange: React.FC<TimeRangeProps>;
23
23
  export default TimeRange;
@@ -9,5 +9,5 @@ export declare type TooltipProps = {
9
9
  maxWidth?: string;
10
10
  children?: React.ReactNode;
11
11
  };
12
- declare const Tooltip: React.SFC<TooltipProps>;
12
+ declare const Tooltip: React.FC<TooltipProps>;
13
13
  export default Tooltip;
@@ -6,5 +6,5 @@ declare type InlineValidationProps = SpaceProps & {
6
6
  errorList?: string[];
7
7
  children?: React.ReactNode;
8
8
  };
9
- declare const InlineValidation: React.SFC<InlineValidationProps>;
9
+ declare const InlineValidation: React.FC<InlineValidationProps>;
10
10
  export default InlineValidation;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const ClickInputLabel: React.SFC<any>;
2
+ declare const ClickInputLabel: React.FC<any>;
3
3
  export default ClickInputLabel;
@@ -10,6 +10,7 @@ declare type ChildrenHandlers = {
10
10
  };
11
11
  declare type FocusManagerProps = {
12
12
  refs?: Array<Reference>;
13
+ defaultFocusedIndex: number | null;
13
14
  children: (handlers: ChildrenHandlers) => ReactNode;
14
15
  };
15
16
  declare const FocusManager: React.FC<FocusManagerProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "6.7.0",
3
+ "version": "6.7.3",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {