@nulogy/components 11.3.1 → 12.1.0

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 (79) hide show
  1. package/dist/main.js +462 -55
  2. package/dist/main.module.js +461 -55
  3. package/dist/src/Alert/Alert.d.ts +12 -1
  4. package/dist/src/BottomSheet/BottomSheet.parts.d.ts +15 -11
  5. package/dist/src/BottomSheet/BottomSheet.styled.d.ts +25 -15
  6. package/dist/src/Box/Box.d.ts +259 -2
  7. package/dist/src/BrandedNavBar/DesktopMenu.d.ts +1 -1
  8. package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
  9. package/dist/src/BrandedNavBar/NavBar.d.ts +1 -1
  10. package/dist/src/BrandedNavBar/NavBarBackground.d.ts +3 -2
  11. package/dist/src/Branding/BrandingText.d.ts +2 -1
  12. package/dist/src/Breadcrumbs/BreadcrumbsList.d.ts +2 -1
  13. package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +4 -3
  14. package/dist/src/Button/DangerButton.d.ts +1 -1
  15. package/dist/src/Button/PrimaryButton.d.ts +1 -1
  16. package/dist/src/Button/QuietButton.d.ts +1 -1
  17. package/dist/src/ButtonGroup/ButtonGroup.d.ts +9 -6
  18. package/dist/src/Card/CardSet.d.ts +3 -2
  19. package/dist/src/DatePicker/DatePickerStyles.d.ts +2 -4
  20. package/dist/src/DateRange/DateRangeStyles.d.ts +2 -1
  21. package/dist/src/DateRange/EndTime.d.ts +27 -2
  22. package/dist/src/DateRange/StartTime.d.ts +27 -2
  23. package/dist/src/DescriptionList/DescriptionDetails.d.ts +2 -0
  24. package/dist/src/DescriptionList/DescriptionList.d.ts +6 -0
  25. package/dist/src/DescriptionList/DescriptionList.story.d.ts +14 -0
  26. package/dist/src/DescriptionList/DescriptionListContext.d.ts +13 -0
  27. package/dist/src/DescriptionList/DescriptionTerm.d.ts +2 -0
  28. package/dist/src/DescriptionList/index.d.ts +4 -0
  29. package/dist/src/Divider/Divider.d.ts +2 -1
  30. package/dist/src/Divider/Divider.story.d.ts +1 -1
  31. package/dist/src/DropdownMenu/DropdownButton.d.ts +3 -4
  32. package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -1
  33. package/dist/src/DropdownMenu/DropdownLink.d.ts +1 -1
  34. package/dist/src/DropdownMenu/DropdownText.d.ts +6 -2
  35. package/dist/src/FieldLabel/HelpText.d.ts +5 -2
  36. package/dist/src/FieldLabel/Label.d.ts +1 -1
  37. package/dist/src/FieldLabel/LabelText.d.ts +2 -1
  38. package/dist/src/Flex/Flex.d.ts +1 -5
  39. package/dist/src/Form/Field.d.ts +2 -1
  40. package/dist/src/Form/Fieldset.d.ts +2 -1
  41. package/dist/src/Form/Form.d.ts +3 -1
  42. package/dist/src/Form/FormSection.d.ts +1 -1
  43. package/dist/src/Icon/Icon.d.ts +1 -1
  44. package/dist/src/Link/Link.d.ts +1 -9
  45. package/dist/src/List/List.d.ts +1 -1
  46. package/dist/src/List/ListItem.d.ts +2 -3
  47. package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
  48. package/dist/src/Modal/ModalFooter.d.ts +2 -1
  49. package/dist/src/Modal/ModalHeader.d.ts +3 -4
  50. package/dist/src/NDSProvider/GlobalStyles.d.ts +3 -5
  51. package/dist/src/NDSProvider/ModalStyleOverride.d.ts +4 -2
  52. package/dist/src/NDSProvider/Reset.d.ts +2 -1
  53. package/dist/src/NavBarSearch/NavBarSearch.d.ts +6 -2
  54. package/dist/src/Overlay/Overlay.d.ts +3 -2
  55. package/dist/src/Pagination/PageNumber.d.ts +5 -2
  56. package/dist/src/Pagination/PaginationButton.d.ts +3 -2
  57. package/dist/src/Select/SelectOption.d.ts +1 -1
  58. package/dist/src/Select/customReactSelectStyles.d.ts +2 -3
  59. package/dist/src/StatusIndicator/StatusIndicator.d.ts +2 -1
  60. package/dist/src/Table/StyledTh.d.ts +2 -1
  61. package/dist/src/Tabs/TabContainer.d.ts +2 -1
  62. package/dist/src/Textarea/StyledTextarea.d.ts +1 -11
  63. package/dist/src/TimePicker/TimePickerDropdown.d.ts +2 -1
  64. package/dist/src/TimePicker/TimePickerInput.d.ts +3 -2
  65. package/dist/src/TimePicker/TimePickerOption.d.ts +3 -2
  66. package/dist/src/Tooltip/TooltipContainer.d.ts +4 -2
  67. package/dist/src/TopBar/TopBar.d.ts +2 -0
  68. package/dist/src/TopBar/TopBar.styled.d.ts +276 -12
  69. package/dist/src/TopBar/components/MenuItem.d.ts +2 -11
  70. package/dist/src/TopBar/components/MenuItemLink.d.ts +10 -0
  71. package/dist/src/TopBar/index.d.ts +1 -0
  72. package/dist/src/TopBar/stories/fixtures.d.ts +44 -2
  73. package/dist/src/Type/Headings.d.ts +26 -16
  74. package/dist/src/Type/Text.d.ts +2 -7
  75. package/dist/src/index.d.ts +1 -0
  76. package/dist/src/utils/ClickInputLabel.d.ts +3 -2
  77. package/dist/src/utils/PopperArrow.d.ts +4 -5
  78. package/dist/src/utils/story/dashed.d.ts +3 -3
  79. package/package.json +7 -5
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { createContext, useContext, useRef, useEffect, createElement, useLayoutEffect, useCallback, useMemo, forwardRef, Fragment, Component as Component$1, useState, cloneElement, Children, isValidElement, PureComponent, useImperativeHandle } from 'react';
3
- import styled, { useTheme, createGlobalStyle, ThemeContext as ThemeContext$1, ThemeProvider } from 'styled-components';
3
+ import styled, { useTheme, createGlobalStyle, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from 'styled-components';
4
4
  import assign$1 from 'object-assign';
5
5
  import icons from '@nulogy/icons';
6
6
  import _extends$5 from '@babel/runtime/helpers/extends';
@@ -11034,7 +11034,14 @@ var WrapperButton$2 = styled.button.withConfig({
11034
11034
  },
11035
11035
  padding: subPx(theme.space.x1) + " " + theme.space.x2
11036
11036
  };
11037
- }, function (_ref3) {
11037
+ }, variant$1({
11038
+ variants: {
11039
+ touch: {
11040
+ fontSize: "md",
11041
+ lineHeight: "base"
11042
+ }
11043
+ }
11044
+ }), function (_ref3) {
11038
11045
  var theme = _ref3.theme;
11039
11046
  return variant$1({
11040
11047
  prop: "size",
@@ -11050,14 +11057,7 @@ var WrapperButton$2 = styled.button.withConfig({
11050
11057
  }
11051
11058
  }
11052
11059
  });
11053
- }, variant$1({
11054
- variants: {
11055
- touch: {
11056
- fontSize: "md",
11057
- lineHeight: "base"
11058
- }
11059
- }
11060
- }), space);
11060
+ }, space);
11061
11061
  var Button = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
11062
11062
  var children = _a.children,
11063
11063
  _a$iconSide = _a.iconSide,
@@ -13998,7 +13998,7 @@ var weakMemoize = function weakMemoize(func) {
13998
13998
  };
13999
13999
  };
14000
14000
 
14001
- function memoize(fn) {
14001
+ function memoize$1(fn) {
14002
14002
  var cache = Object.create(null);
14003
14003
  return function (arg) {
14004
14004
  if (cache[arg] === undefined) cache[arg] = fn(arg);
@@ -14453,7 +14453,7 @@ var prefixer = function prefixer(element, index, children, callback) {
14453
14453
 
14454
14454
  var isBrowser$5 = typeof document !== 'undefined';
14455
14455
  var getServerStylisCache = isBrowser$5 ? undefined : weakMemoize(function () {
14456
- return memoize(function () {
14456
+ return memoize$1(function () {
14457
14457
  var cache = {};
14458
14458
  return function (name) {
14459
14459
  return cache[name];
@@ -14817,7 +14817,7 @@ var isProcessableValue = function isProcessableValue(value) {
14817
14817
  return value != null && typeof value !== 'boolean';
14818
14818
  };
14819
14819
 
14820
- var processStyleName = /* #__PURE__ */memoize(function (styleName) {
14820
+ var processStyleName = /* #__PURE__ */memoize$1(function (styleName) {
14821
14821
  return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
14822
14822
  });
14823
14823
 
@@ -16791,7 +16791,7 @@ var MenuPlacer = function MenuPlacer(props) {
16791
16791
  })
16792
16792
  });
16793
16793
  };
16794
- var Menu$1 = function Menu(props) {
16794
+ var Menu$2 = function Menu(props) {
16795
16795
  var children = props.children,
16796
16796
  innerRef = props.innerRef,
16797
16797
  innerProps = props.innerProps;
@@ -16801,7 +16801,7 @@ var Menu$1 = function Menu(props) {
16801
16801
  ref: innerRef
16802
16802
  }, innerProps), children);
16803
16803
  };
16804
- var Menu$1$1 = Menu$1;
16804
+ var Menu$1$1 = Menu$2;
16805
16805
 
16806
16806
  // ==============================
16807
16807
  // Menu List
@@ -24464,21 +24464,21 @@ var StyledOption = styled.div.withConfig({
24464
24464
  }
24465
24465
  };
24466
24466
  }, function (_ref2) {
24467
- var theme = _ref2.theme,
24468
- variant = _ref2.variant;
24469
- return stylesForVariant({
24470
- touch: {
24471
- div: {
24472
- // padding: subPx(theme.space.x2),
24473
- padding: subPx(theme.space.x1)
24474
- }
24475
- },
24476
- desktop: {
24477
- div: {
24478
- padding: subPx(theme.space.x1)
24467
+ var theme = _ref2.theme;
24468
+ return variant({
24469
+ variants: {
24470
+ touch: {
24471
+ div: {
24472
+ padding: subPx(theme.space.x1)
24473
+ }
24474
+ },
24475
+ desktop: {
24476
+ div: {
24477
+ padding: subPx(theme.space.x1)
24478
+ }
24479
24479
  }
24480
24480
  }
24481
- }, variant);
24481
+ });
24482
24482
  });
24483
24483
  function SelectOption$1(props) {
24484
24484
  var variant = useComponentVariant(props.variant);
@@ -27634,7 +27634,7 @@ function ariaLabelType(props, propName, compName, location, propFullName) {
27634
27634
  return null;
27635
27635
  } ////////////////////////////////////////////////////////////////////////////////
27636
27636
 
27637
- var Overlay$1 = styled(motion(DialogOverlay)).withConfig({
27637
+ var Overlay$2 = styled(motion(DialogOverlay)).withConfig({
27638
27638
  displayName: "BottomSheetstyled__Overlay",
27639
27639
  componentId: "sc-1v36wsf-0"
27640
27640
  })(function (_ref) {
@@ -27656,7 +27656,7 @@ var Sheet = styled(motion(DialogContent)).withConfig({
27656
27656
  })(function (_ref2) {
27657
27657
  var theme = _ref2.theme;
27658
27658
  return {
27659
- ":focus": {
27659
+ "&:focus": {
27660
27660
  outline: "none"
27661
27661
  },
27662
27662
  inset: 0,
@@ -27717,7 +27717,7 @@ var Footer = styled.div.withConfig({
27717
27717
  marginTop: "auto"
27718
27718
  };
27719
27719
  });
27720
- var Header$1 = styled.div.withConfig({
27720
+ var Header$2 = styled.div.withConfig({
27721
27721
  displayName: "BottomSheetstyled__Header",
27722
27722
  componentId: "sc-1v36wsf-4"
27723
27723
  })(function (_ref4) {
@@ -27799,7 +27799,7 @@ var transition = {
27799
27799
  ease: [0.32, 0.72, 0, 1]
27800
27800
  };
27801
27801
 
27802
- function Root(_a) {
27802
+ function Root$1(_a) {
27803
27803
  var isOpen = _a.isOpen,
27804
27804
  onClose = _a.onClose,
27805
27805
  children = _a.children,
@@ -27820,7 +27820,7 @@ function OverlayPart(_a) {
27820
27820
  onClose = _useBottomSheet.onClose,
27821
27821
  isOpen = _useBottomSheet.isOpen;
27822
27822
 
27823
- return /*#__PURE__*/React__default.createElement(Overlay$1, Object.assign({
27823
+ return /*#__PURE__*/React__default.createElement(Overlay$2, Object.assign({
27824
27824
  variants: overlayVariants,
27825
27825
  initial: "hidden",
27826
27826
  animate: "visible",
@@ -27851,11 +27851,11 @@ function SheetPart(_a) {
27851
27851
  }
27852
27852
 
27853
27853
  var BottomSheetParts = {
27854
- Root: Root,
27854
+ Root: Root$1,
27855
27855
  Overlay: OverlayPart,
27856
27856
  Sheet: SheetPart,
27857
27857
  ContentContainer: ContentContainer,
27858
- Header: Header$1,
27858
+ Header: Header$2,
27859
27859
  Title: Title,
27860
27860
  HelpText: HelpText,
27861
27861
  Footer: Footer
@@ -28295,8 +28295,8 @@ var DropdownButton = styled.button.withConfig({
28295
28295
  }), addStyledProps);
28296
28296
 
28297
28297
  var DropdownLink = styled.a.withConfig({
28298
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
28299
- return !["hoverColor", "bgHoverColor"].includes(prop) && defaultValidatorFn(prop);
28298
+ shouldForwardProp: function shouldForwardProp(prop) {
28299
+ return !["hoverColor", "bgHoverColor"].includes(prop);
28300
28300
  },
28301
28301
  displayName: "DropdownLink",
28302
28302
  componentId: "sc-73jvsg-0"
@@ -28898,8 +28898,8 @@ var DesktopMenu = styled(BaseDesktopMenu).withConfig({
28898
28898
  displayName: "DesktopMenu",
28899
28899
  componentId: "sc-8mrjkc-3"
28900
28900
  })({
28901
- "> div": {
28902
- ":not(:last-of-type)": {
28901
+ "& > div": {
28902
+ "&:not(:last-of-type)": {
28903
28903
  marginRight: "8px"
28904
28904
  }
28905
28905
  }
@@ -29179,7 +29179,7 @@ var Line = styled.div.withConfig({
29179
29179
  return {
29180
29180
  position: "relative",
29181
29181
  width: "100%",
29182
- ":before": {
29182
+ "&:before": {
29183
29183
  content: "''",
29184
29184
  position: "absolute",
29185
29185
  top: "50%",
@@ -29376,7 +29376,7 @@ var InputWrapper = styled(Box).withConfig({
29376
29376
  position: "relative",
29377
29377
  display: "flex",
29378
29378
  flexGrow: 1,
29379
- ":focus-within": {
29379
+ "&:focus-within": {
29380
29380
  svg: {
29381
29381
  color: theme.colors.darkBlue
29382
29382
  }
@@ -29546,7 +29546,7 @@ var NavBarSearch = styled(BaseNavBarSearch).withConfig({
29546
29546
  border: "solid 1px transparent",
29547
29547
  borderRadius: theme.radii.medium,
29548
29548
  minWidth: theme.space.x5,
29549
- ":focus": {
29549
+ "&:focus": {
29550
29550
  color: theme.colors.white,
29551
29551
  background: curriedDarken(0.1, theme.colors.blue),
29552
29552
  border: "solid 1px " + theme.colors.lightBlue,
@@ -29562,7 +29562,7 @@ var NavBarSearch = styled(BaseNavBarSearch).withConfig({
29562
29562
  background: "transparent",
29563
29563
  border: "solid 1px transparent",
29564
29564
  borderRadius: theme.radii.medium,
29565
- ":focus": {
29565
+ "&:focus": {
29566
29566
  background: theme.colors.white,
29567
29567
  border: "solid 1px transparent",
29568
29568
  boxShadow: "none"
@@ -29772,7 +29772,7 @@ var SubMenu = function SubMenu(_ref4) {
29772
29772
  }) : defaultRender(), /*#__PURE__*/React__default.createElement(SubMenuItemsList, null, renderMenuItems(menuItem.items, linkOnClick, themeColorObject, layer + 1)));
29773
29773
  };
29774
29774
 
29775
- var Menu = styled.ul.withConfig({
29775
+ var Menu$1 = styled.ul.withConfig({
29776
29776
  displayName: "MobileMenu__Menu",
29777
29777
  componentId: "sc-18t6zrc-4"
29778
29778
  })(function (_ref5) {
@@ -29814,7 +29814,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
29814
29814
  backgroundColor: themeColorObject && themeColorObject.background
29815
29815
  }, props), /*#__PURE__*/React__default.createElement(BrandingWrap, null, /*#__PURE__*/React__default.createElement(BrandingText, {
29816
29816
  logoColor: themeColorObject === null || themeColorObject === void 0 ? void 0 : themeColorObject.logoColor
29817
- })), /*#__PURE__*/React__default.createElement(Menu, null, menuData.primaryMenu && renderTopLayerMenuItems(menuData.primaryMenu, closeMenu, themeColorObject), menuData.secondaryMenu && renderTopLayerMenuItems(menuData.secondaryMenu, closeMenu, themeColorObject)), showNulogyLogo && /*#__PURE__*/React__default.createElement(Flex, {
29817
+ })), /*#__PURE__*/React__default.createElement(Menu$1, null, menuData.primaryMenu && renderTopLayerMenuItems(menuData.primaryMenu, closeMenu, themeColorObject), menuData.secondaryMenu && renderTopLayerMenuItems(menuData.secondaryMenu, closeMenu, themeColorObject)), showNulogyLogo && /*#__PURE__*/React__default.createElement(Flex, {
29818
29818
  textAlign: "center",
29819
29819
  borderTop: borderStyle,
29820
29820
  height: "40px",
@@ -45017,7 +45017,7 @@ function useMediaQuery(q) {
45017
45017
  var _a;
45018
45018
 
45019
45019
  var isUnsupported = typeof window === "undefined" || typeof window.matchMedia === "undefined";
45020
- var theme = useTheme();
45020
+ var theme = React__default.useContext(ThemeContext$1);
45021
45021
  var query = ((_a = theme === null || theme === void 0 ? void 0 : theme.breakpoints) === null || _a === void 0 ? void 0 : _a[q]) ? "(min-width: " + theme.breakpoints[q] + ")" : q;
45022
45022
  var getMatches = useCallback(function (query) {
45023
45023
  if (isUnsupported) {
@@ -45068,7 +45068,7 @@ var ApplicationFrame = function ApplicationFrame(_a) {
45068
45068
  }, children));
45069
45069
  };
45070
45070
 
45071
- var Header = function Header(_a) {
45071
+ var Header$1 = function Header(_a) {
45072
45072
  var _b, _c;
45073
45073
 
45074
45074
  var background = _a.background,
@@ -45163,7 +45163,7 @@ var Page = function Page(_a) {
45163
45163
  return /*#__PURE__*/React__default.createElement(Flex, Object.assign({
45164
45164
  flexDirection: "column",
45165
45165
  flexGrow: fullHeight ? 1 : 0
45166
- }, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /*#__PURE__*/React__default.createElement(Header, {
45166
+ }, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /*#__PURE__*/React__default.createElement(Header$1, {
45167
45167
  renderBreadcrumbs: function renderBreadcrumbs() {
45168
45168
  return breadcrumbs;
45169
45169
  },
@@ -47326,7 +47326,7 @@ var ModalFooter = styled.div.withConfig({
47326
47326
  backgroundColor: curriedTransparentize(0.1, theme.colors.white),
47327
47327
  zIndex: theme.zIndices.modalHeaderAndFooter,
47328
47328
  borderRadius: "0 0 " + theme.radii.medium + " " + theme.radii.medium,
47329
- ":after": {
47329
+ "&:after": {
47330
47330
  content: "''",
47331
47331
  position: "absolute",
47332
47332
  top: 0,
@@ -47355,7 +47355,7 @@ var ModalHeader = styled.div.withConfig({
47355
47355
  backgroundColor: curriedTransparentize(0.1, theme.colors.white),
47356
47356
  zIndex: theme.zIndices.modalHeaderAndFooter,
47357
47357
  borderRadius: theme.radii.medium + " " + theme.radii.medium + " 0 0",
47358
- ":after": {
47358
+ "&:after": {
47359
47359
  content: "''",
47360
47360
  position: "absolute",
47361
47361
  bottom: 0,
@@ -47408,7 +47408,7 @@ var StyledReactModal = styled(ReactModal).withConfig({
47408
47408
 
47409
47409
  var theme = _ref2.theme;
47410
47410
  return _ref3 = {
47411
- ":focus": {
47411
+ "&:focus": {
47412
47412
  outline: "none"
47413
47413
  },
47414
47414
  display: "flex",
@@ -50237,6 +50237,27 @@ i18next.init({
50237
50237
  }
50238
50238
  });
50239
50239
 
50240
+ function memoize(fn) {
50241
+ var cache = Object.create(null);
50242
+ return function (arg) {
50243
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
50244
+ return cache[arg];
50245
+ };
50246
+ }
50247
+
50248
+ // eslint-disable-next-line no-undef
50249
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
50250
+
50251
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
50252
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
50253
+ /* o */
50254
+ && prop.charCodeAt(1) === 110
50255
+ /* n */
50256
+ && prop.charCodeAt(2) < 91;
50257
+ }
50258
+ /* Z+1 */
50259
+ );
50260
+
50240
50261
  var FeatureFlagsContext = /*#__PURE__*/createContext(undefined);
50241
50262
  function FeatureFlagsProvider(_ref) {
50242
50263
  var featureFlags = _ref.featureFlags,
@@ -50943,9 +50964,20 @@ function NDSThemeProvider(_ref) {
50943
50964
  children = _ref.children;
50944
50965
  var variant = useComponentVariant();
50945
50966
  var theme = useNDSTheme(variant, customTheme);
50946
- return /*#__PURE__*/React__default.createElement(ThemeProvider, {
50967
+ return /*#__PURE__*/React__default.createElement(StyleSheetManager, {
50968
+ enableVendorPrefixes: true,
50969
+ shouldForwardProp: shouldForwardProp
50970
+ }, /*#__PURE__*/React__default.createElement(ThemeProvider, {
50947
50971
  theme: theme
50948
- }, children);
50972
+ }, children));
50973
+ }
50974
+
50975
+ function shouldForwardProp(propName, target) {
50976
+ if (typeof target === "string") {
50977
+ return isPropValid(propName);
50978
+ }
50979
+
50980
+ return true;
50949
50981
  }
50950
50982
 
50951
50983
  var Reset = createGlobalStyle(function () {
@@ -51074,7 +51106,7 @@ function NDSProvider(_ref) {
51074
51106
  }, children))))));
51075
51107
  }
51076
51108
 
51077
- var Overlay = styled(Flex).withConfig({
51109
+ var Overlay$1 = styled(Flex).withConfig({
51078
51110
  displayName: "Overlay",
51079
51111
  componentId: "sc-mcd6gm-0"
51080
51112
  })(function (_ref) {
@@ -54375,6 +54407,380 @@ var ToggleComponent = /*#__PURE__*/React__default.forwardRef(function (props, re
54375
54407
  }, props));
54376
54408
  });
54377
54409
 
54410
+ var TOPBAR = {
54411
+ themedHeight: "x6"
54412
+ };
54413
+
54414
+ var MenuItemList = styled.ul.withConfig({
54415
+ displayName: "TopBarstyled__MenuItemList",
54416
+ componentId: "sc-1hreuoq-0"
54417
+ })(function (_ref) {
54418
+ var _ref2;
54419
+
54420
+ var theme = _ref.theme;
54421
+ return _ref2 = {
54422
+ display: "grid",
54423
+ width: "100%",
54424
+ gap: theme.space.x1,
54425
+ flexWrap: "wrap",
54426
+ listStyle: "none",
54427
+ padding: theme.space.x1_5,
54428
+ margin: 0,
54429
+ maxHeight: "calc(100dvh - " + theme.space[TOPBAR.themedHeight] + ")",
54430
+ overflow: "auto",
54431
+ gridTemplateColumns: "1fr"
54432
+ }, _ref2["@media (min-width: " + theme.breakpoints.medium + ")"] = {
54433
+ gridTemplateColumns: "repeat(2, 1fr)"
54434
+ }, _ref2["@media (min-width: " + theme.breakpoints.large + ")"] = {
54435
+ gridTemplateColumns: "repeat(3, 1fr)"
54436
+ }, _ref2;
54437
+ });
54438
+ var Header = styled.header.withConfig({
54439
+ displayName: "TopBarstyled__Header",
54440
+ componentId: "sc-1hreuoq-1"
54441
+ })(function (_ref3) {
54442
+ var theme = _ref3.theme;
54443
+ return {
54444
+ userSelect: "none",
54445
+ touchAction: "none",
54446
+ position: "sticky",
54447
+ top: "0",
54448
+ zIndex: theme.zIndices.navBar,
54449
+ borderBottomWidth: "1px",
54450
+ borderBottomStyle: "solid",
54451
+ borderBottomColor: theme.colors.lightGrey,
54452
+ background: curriedTransparentize(0.4, theme.colors.white),
54453
+ backdropFilter: "blur(8px)",
54454
+ width: "100dvw"
54455
+ };
54456
+ });
54457
+ var Navigation = styled.nav.withConfig({
54458
+ displayName: "TopBarstyled__Navigation",
54459
+ componentId: "sc-1hreuoq-2"
54460
+ })(function (_ref4) {
54461
+ var theme = _ref4.theme;
54462
+ return {
54463
+ height: theme.space[TOPBAR.themedHeight],
54464
+ display: "flex",
54465
+ alignItems: "center",
54466
+ paddingLeft: theme.space.x2,
54467
+ paddingRight: theme.space.x1
54468
+ };
54469
+ });
54470
+ var StylelessButton = styled.button.withConfig({
54471
+ displayName: "TopBarstyled__StylelessButton",
54472
+ componentId: "sc-1hreuoq-3"
54473
+ })({
54474
+ backgroundColor: "transparent",
54475
+ border: "none",
54476
+ margin: 0,
54477
+ padding: 0,
54478
+ textAlign: "inherit",
54479
+ font: "inherit",
54480
+ borderRadius: 0,
54481
+ appearance: "none"
54482
+ }, addStyledProps);
54483
+ var MenuButton = styled(StylelessButton).withConfig({
54484
+ displayName: "TopBarstyled__MenuButton",
54485
+ componentId: "sc-1hreuoq-4"
54486
+ })(function (_ref5) {
54487
+ var theme = _ref5.theme;
54488
+ return {
54489
+ display: "inline-flex",
54490
+ alignItems: "center",
54491
+ justifyContent: "center",
54492
+ padding: theme.space.x1,
54493
+ borderRadius: theme.radii.medium,
54494
+ transition: "background-color 0.2s",
54495
+ cursor: "pointer",
54496
+ "&:active, &:hover": {
54497
+ backgroundColor: theme.colors.lightGrey
54498
+ }
54499
+ };
54500
+ });
54501
+ var NavigationItemsList = styled.ul.withConfig({
54502
+ displayName: "TopBarstyled__NavigationItemsList",
54503
+ componentId: "sc-1hreuoq-5"
54504
+ })({
54505
+ padding: 0,
54506
+ margin: 0,
54507
+ width: "100%",
54508
+ display: "flex",
54509
+ alignItems: "center",
54510
+ justifyContent: "space-between",
54511
+ listStyle: "none",
54512
+ whiteSpace: "nowrap"
54513
+ });
54514
+ var StyledBackLink = styled.a.withConfig({
54515
+ displayName: "TopBarstyled__StyledBackLink",
54516
+ componentId: "sc-1hreuoq-6"
54517
+ })(function (_ref6) {
54518
+ var theme = _ref6.theme;
54519
+ return {
54520
+ display: "inline-flex",
54521
+ alignItems: "center",
54522
+ justifyContent: "flex-start",
54523
+ color: theme.colors.midGrey,
54524
+ textDecoration: "none",
54525
+ paddingTop: theme.space.x1,
54526
+ paddingBottom: theme.space.x1
54527
+ };
54528
+ });
54529
+ var StyledPageTitle = styled.li.withConfig({
54530
+ displayName: "TopBarstyled__StyledPageTitle",
54531
+ componentId: "sc-1hreuoq-7"
54532
+ })(function (_ref7) {
54533
+ var theme = _ref7.theme;
54534
+ return {
54535
+ paddingLeft: theme.space.x1,
54536
+ paddingRight: theme.space.x1,
54537
+ color: theme.colors.darkGrey,
54538
+ textDecoration: "none",
54539
+ fontSize: theme.fontSizes.small,
54540
+ fontWeight: theme.fontWeights.medium,
54541
+ lineHeight: theme.lineHeights.base,
54542
+ whiteSpace: "nowrap",
54543
+ flex: "auto",
54544
+ textAlign: "center",
54545
+ textOverflow: "ellipsis",
54546
+ overflow: "hidden"
54547
+ };
54548
+ });
54549
+ var Overlay = styled(motion(DialogOverlay)).withConfig({
54550
+ displayName: "TopBarstyled__Overlay",
54551
+ componentId: "sc-1hreuoq-8"
54552
+ })(function (_ref8) {
54553
+ var theme = _ref8.theme;
54554
+ return {
54555
+ position: "fixed",
54556
+ top: theme.space[TOPBAR.themedHeight],
54557
+ bottom: theme.space.none,
54558
+ left: theme.space.none,
54559
+ right: theme.space.none,
54560
+ display: "flex",
54561
+ alignItems: "flex-start",
54562
+ justifyContent: "flex-end",
54563
+ backgroundColor: curriedTransparentize(0.85, theme.colors.white)
54564
+ };
54565
+ });
54566
+ var TileLink = styled.a.withConfig({
54567
+ displayName: "TopBarstyled__TileLink",
54568
+ componentId: "sc-1hreuoq-9"
54569
+ })(function (_ref9) {
54570
+ var theme = _ref9.theme;
54571
+ return {
54572
+ backgroundColor: curriedTransparentize(0.15)(theme.colors.blackBlue),
54573
+ borderRadius: theme.radii.large,
54574
+ display: "flex",
54575
+ height: "100%",
54576
+ alignItems: "flex-start",
54577
+ padding: theme.space.x2,
54578
+ textDecoration: "none",
54579
+ color: theme.colors.white,
54580
+ gap: theme.space.x1_5,
54581
+ whiteSpace: "nowrap",
54582
+ outlineOffset: theme.space.x0_25,
54583
+ outlineColor: theme.colors.blue
54584
+ };
54585
+ });
54586
+ var StyledMenuItem = styled(motion.li).withConfig({
54587
+ displayName: "TopBarstyled__StyledMenuItem",
54588
+ componentId: "sc-1hreuoq-10"
54589
+ })(function (_ref10) {
54590
+ var _onlyChild, _ref11;
54591
+
54592
+ var theme = _ref10.theme;
54593
+ return _ref11 = {
54594
+ "&:only-child": (_onlyChild = {}, _onlyChild["@media (min-width: " + theme.breakpoints.medium + ")"] = {
54595
+ gridColumn: "span 2"
54596
+ }, _onlyChild["@media (min-width: " + theme.breakpoints.large + ")"] = {
54597
+ gridColumn: "span 3"
54598
+ }, _onlyChild)
54599
+ }, _ref11["@media (min-width: " + theme.breakpoints.large + ")"] = {
54600
+ "&:first-child:nth-last-child(2), &:last-child:nth-child(2)": {
54601
+ gridColumn: "span 3"
54602
+ }
54603
+ }, _ref11;
54604
+ });
54605
+
54606
+ var BACK_LINK_MAX_WIDTH = {
54607
+ phoneLandscape: "20ch",
54608
+ tabletPortrait: "18ch",
54609
+ tabletLandscape: "20ch",
54610
+ laptop: "24ch"
54611
+ };
54612
+ function BackLink(_a) {
54613
+ var children = _a.children,
54614
+ _a$maxWidth = _a.maxWidth,
54615
+ maxWidth = _a$maxWidth === void 0 ? BACK_LINK_MAX_WIDTH : _a$maxWidth,
54616
+ props = __rest$3(_a, ["children", "maxWidth"]);
54617
+
54618
+ var md = useMediaQuery("phoneLandscape");
54619
+ return /*#__PURE__*/React__default.createElement(Box, {
54620
+ as: "li",
54621
+ flex: "1 1"
54622
+ }, /*#__PURE__*/React__default.createElement(StyledBackLink, Object.assign({}, props, {
54623
+ "data-testid": "topbar-back-link"
54624
+ }), /*#__PURE__*/React__default.createElement(Icon, {
54625
+ icon: "arrowBack"
54626
+ }), md && /*#__PURE__*/React__default.createElement(Text, {
54627
+ maxWidth: maxWidth,
54628
+ textOverflow: "ellipsis",
54629
+ overflow: "hidden",
54630
+ fontSize: "small"
54631
+ }, children)));
54632
+ }
54633
+
54634
+ var blurVariants = {
54635
+ hidden: {
54636
+ backdropFilter: "blur(0px)",
54637
+ WebkitBackdropFilter: "blur(0px)"
54638
+ },
54639
+ visible: {
54640
+ backdropFilter: "blur(8px)",
54641
+ WebkitBackdropFilter: "blur(8px)",
54642
+ transition: {
54643
+ duration: 0.5,
54644
+ ease: "easeInOut"
54645
+ }
54646
+ },
54647
+ exit: {
54648
+ backdropFilter: "blur(0px)",
54649
+ WebkitBackdropFilter: "blur(0px)",
54650
+ transition: {
54651
+ duration: 0.5,
54652
+ ease: "easeOut"
54653
+ }
54654
+ }
54655
+ };
54656
+ function Menu(_a) {
54657
+ var _b;
54658
+
54659
+ var children = _a.children,
54660
+ _a$defaultOpened = _a.defaultOpened,
54661
+ defaultOpened = _a$defaultOpened === void 0 ? false : _a$defaultOpened,
54662
+ props = __rest$3(_a, ["children", "defaultOpened"]);
54663
+
54664
+ var _React$useState = React__default.useState(defaultOpened),
54665
+ showMenu = _React$useState[0],
54666
+ setShowMenu = _React$useState[1];
54667
+
54668
+ var _useTranslation = useTranslation(),
54669
+ t = _useTranslation.t;
54670
+
54671
+ function close() {
54672
+ setShowMenu(false);
54673
+ }
54674
+
54675
+ function toggle() {
54676
+ setShowMenu(function (s) {
54677
+ return !s;
54678
+ });
54679
+ }
54680
+
54681
+ return /*#__PURE__*/React__default.createElement(Flex, {
54682
+ justifyContent: "flex-end",
54683
+ as: "li",
54684
+ color: "black",
54685
+ flex: "1 1"
54686
+ }, /*#__PURE__*/React__default.createElement(MenuButton, {
54687
+ onClick: toggle,
54688
+ "data-testid": "topbar-menu-button"
54689
+ }, /*#__PURE__*/React__default.createElement(Icon, {
54690
+ size: "x3",
54691
+ color: "midGrey",
54692
+ icon: showMenu ? "close" : "apps"
54693
+ })), /*#__PURE__*/React__default.createElement(AnimatePresence, null, showMenu && /*#__PURE__*/React__default.createElement(Overlay, {
54694
+ "data-testid": "topbar-menu-overlay",
54695
+ initial: "hidden",
54696
+ animate: "visible",
54697
+ exit: "exit",
54698
+ variants: blurVariants,
54699
+ isOpen: showMenu,
54700
+ onDismiss: close
54701
+ }, /*#__PURE__*/React__default.createElement(DialogContent, {
54702
+ "data-testid": "topbar-menu",
54703
+ "aria-label": (_b = props["aria-label"]) !== null && _b !== void 0 ? _b : t("menu options")
54704
+ }, /*#__PURE__*/React__default.createElement(MenuItemList, null, children)))));
54705
+ }
54706
+
54707
+ var fadeInVariants = {
54708
+ hidden: {
54709
+ opacity: 0,
54710
+ filter: "blur(8px)",
54711
+ y: -16,
54712
+ scale: 0.95,
54713
+ transition: {
54714
+ ease: "easeOut",
54715
+ duration: 0.25
54716
+ }
54717
+ },
54718
+ visible: {
54719
+ opacity: 1,
54720
+ filter: "blur(0px)",
54721
+ y: 0,
54722
+ scale: 1,
54723
+ transition: {
54724
+ type: "spring",
54725
+ duration: 0.75
54726
+ }
54727
+ }
54728
+ };
54729
+ function MenuItem(_ref) {
54730
+ var children = _ref.children;
54731
+ return /*#__PURE__*/React__default.createElement(StyledMenuItem, {
54732
+ "data-testid": "topbar-menu-item",
54733
+ initial: "hidden",
54734
+ animate: "visible",
54735
+ exit: "hidden",
54736
+ variants: fadeInVariants
54737
+ }, children);
54738
+ }
54739
+
54740
+ var MotionText = motion(Text);
54741
+ function MenuItemLink(_a) {
54742
+ var description = _a.description,
54743
+ title = _a.title,
54744
+ icon = _a.icon,
54745
+ props = __rest$3(_a, ["description", "title", "icon"]);
54746
+
54747
+ return /*#__PURE__*/React__default.createElement(TileLink, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
54748
+ icon: icon,
54749
+ size: "x3"
54750
+ }), /*#__PURE__*/React__default.createElement(Flex, {
54751
+ flexDirection: "column",
54752
+ justifyContent: "center"
54753
+ }, /*#__PURE__*/React__default.createElement(MotionText, {
54754
+ fontWeight: "medium",
54755
+ fontSize: "md",
54756
+ lineHeight: "base"
54757
+ }, title), /*#__PURE__*/React__default.createElement(MotionText, {
54758
+ fontSize: "xs"
54759
+ }, description)));
54760
+ }
54761
+
54762
+ function PageTitle(_a) {
54763
+ var children = _a.children,
54764
+ props = __rest$3(_a, ["children"]);
54765
+
54766
+ return /*#__PURE__*/React__default.createElement(StyledPageTitle, Object.assign({
54767
+ "data-testid": "topbar-page-title"
54768
+ }, props), children);
54769
+ }
54770
+
54771
+ function Root(_ref) {
54772
+ var children = _ref.children;
54773
+ return /*#__PURE__*/React__default.createElement(Header, null, /*#__PURE__*/React__default.createElement(Navigation, null, /*#__PURE__*/React__default.createElement(NavigationItemsList, null, children)));
54774
+ }
54775
+ var TopBar = {
54776
+ Root: Root,
54777
+ PageTitle: PageTitle,
54778
+ BackLink: BackLink,
54779
+ Menu: Menu,
54780
+ MenuItem: MenuItem,
54781
+ MenuItemLink: MenuItemLink
54782
+ };
54783
+
54378
54784
  var MaybeTooltip = function MaybeTooltip(_a) {
54379
54785
  var _a$children = _a.children,
54380
54786
  children = _a$children === void 0 ? "" : _a$children,
@@ -54481,4 +54887,4 @@ var TruncatedText = function TruncatedText(_a) {
54481
54887
  }, props), children);
54482
54888
  };
54483
54889
 
54484
- export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, toast, useMediaQuery, useWindowDimensions };
54890
+ export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header$1 as Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay$1 as Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TopBar, TruncatedText, addStyledProps, toast, useMediaQuery, useWindowDimensions };