@nulogy/components 11.3.0 → 12.0.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 (73) hide show
  1. package/dist/main.js +465 -56
  2. package/dist/main.module.js +464 -56
  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/Divider/Divider.d.ts +2 -1
  24. package/dist/src/Divider/Divider.story.d.ts +1 -1
  25. package/dist/src/DropdownMenu/DropdownButton.d.ts +3 -4
  26. package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -1
  27. package/dist/src/DropdownMenu/DropdownLink.d.ts +1 -1
  28. package/dist/src/DropdownMenu/DropdownText.d.ts +6 -2
  29. package/dist/src/FieldLabel/HelpText.d.ts +5 -2
  30. package/dist/src/FieldLabel/Label.d.ts +1 -1
  31. package/dist/src/FieldLabel/LabelText.d.ts +2 -1
  32. package/dist/src/Flex/Flex.d.ts +1 -5
  33. package/dist/src/Form/Field.d.ts +2 -1
  34. package/dist/src/Form/Fieldset.d.ts +2 -1
  35. package/dist/src/Form/Form.d.ts +3 -1
  36. package/dist/src/Form/FormSection.d.ts +1 -1
  37. package/dist/src/Icon/Icon.d.ts +1 -1
  38. package/dist/src/Link/Link.d.ts +1 -9
  39. package/dist/src/List/List.d.ts +1 -1
  40. package/dist/src/List/ListItem.d.ts +2 -3
  41. package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
  42. package/dist/src/Modal/ModalFooter.d.ts +2 -1
  43. package/dist/src/Modal/ModalHeader.d.ts +3 -4
  44. package/dist/src/NDSProvider/GlobalStyles.d.ts +3 -5
  45. package/dist/src/NDSProvider/ModalStyleOverride.d.ts +4 -2
  46. package/dist/src/NDSProvider/Reset.d.ts +2 -1
  47. package/dist/src/NavBarSearch/NavBarSearch.d.ts +6 -2
  48. package/dist/src/Overlay/Overlay.d.ts +3 -2
  49. package/dist/src/Pagination/PageNumber.d.ts +5 -2
  50. package/dist/src/Pagination/PaginationButton.d.ts +3 -2
  51. package/dist/src/Select/SelectOption.d.ts +1 -1
  52. package/dist/src/Select/customReactSelectStyles.d.ts +2 -3
  53. package/dist/src/StatusIndicator/StatusIndicator.d.ts +2 -1
  54. package/dist/src/Table/StyledTh.d.ts +2 -1
  55. package/dist/src/Tabs/TabContainer.d.ts +2 -1
  56. package/dist/src/Textarea/StyledTextarea.d.ts +1 -11
  57. package/dist/src/TimePicker/TimePickerDropdown.d.ts +2 -1
  58. package/dist/src/TimePicker/TimePickerInput.d.ts +3 -2
  59. package/dist/src/TimePicker/TimePickerOption.d.ts +3 -2
  60. package/dist/src/Tooltip/TooltipContainer.d.ts +4 -2
  61. package/dist/src/TopBar/TopBar.d.ts +2 -0
  62. package/dist/src/TopBar/TopBar.styled.d.ts +276 -12
  63. package/dist/src/TopBar/components/MenuItem.d.ts +2 -11
  64. package/dist/src/TopBar/components/MenuItemLink.d.ts +10 -0
  65. package/dist/src/TopBar/index.d.ts +1 -0
  66. package/dist/src/TopBar/stories/fixtures.d.ts +44 -2
  67. package/dist/src/Type/Headings.d.ts +26 -16
  68. package/dist/src/Type/Text.d.ts +2 -7
  69. package/dist/src/index.d.ts +1 -0
  70. package/dist/src/utils/ClickInputLabel.d.ts +3 -2
  71. package/dist/src/utils/PopperArrow.d.ts +4 -5
  72. package/dist/src/utils/story/dashed.d.ts +3 -3
  73. 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,
@@ -27703,8 +27703,10 @@ var Footer = styled.div.withConfig({
27703
27703
  })(function (_ref3) {
27704
27704
  var theme = _ref3.theme;
27705
27705
  return {
27706
- position: "sticky",
27706
+ position: "fixed",
27707
27707
  bottom: 0,
27708
+ left: 0,
27709
+ right: 0,
27708
27710
  marginLeft: theme.space.x1,
27709
27711
  marginRight: theme.space.x1,
27710
27712
  padding: theme.space.x2,
@@ -27715,7 +27717,7 @@ var Footer = styled.div.withConfig({
27715
27717
  marginTop: "auto"
27716
27718
  };
27717
27719
  });
27718
- var Header$1 = styled.div.withConfig({
27720
+ var Header$2 = styled.div.withConfig({
27719
27721
  displayName: "BottomSheetstyled__Header",
27720
27722
  componentId: "sc-1v36wsf-4"
27721
27723
  })(function (_ref4) {
@@ -27797,7 +27799,7 @@ var transition = {
27797
27799
  ease: [0.32, 0.72, 0, 1]
27798
27800
  };
27799
27801
 
27800
- function Root(_a) {
27802
+ function Root$1(_a) {
27801
27803
  var isOpen = _a.isOpen,
27802
27804
  onClose = _a.onClose,
27803
27805
  children = _a.children,
@@ -27818,7 +27820,7 @@ function OverlayPart(_a) {
27818
27820
  onClose = _useBottomSheet.onClose,
27819
27821
  isOpen = _useBottomSheet.isOpen;
27820
27822
 
27821
- return /*#__PURE__*/React__default.createElement(Overlay$1, Object.assign({
27823
+ return /*#__PURE__*/React__default.createElement(Overlay$2, Object.assign({
27822
27824
  variants: overlayVariants,
27823
27825
  initial: "hidden",
27824
27826
  animate: "visible",
@@ -27849,11 +27851,11 @@ function SheetPart(_a) {
27849
27851
  }
27850
27852
 
27851
27853
  var BottomSheetParts = {
27852
- Root: Root,
27854
+ Root: Root$1,
27853
27855
  Overlay: OverlayPart,
27854
27856
  Sheet: SheetPart,
27855
27857
  ContentContainer: ContentContainer,
27856
- Header: Header$1,
27858
+ Header: Header$2,
27857
27859
  Title: Title,
27858
27860
  HelpText: HelpText,
27859
27861
  Footer: Footer
@@ -28293,8 +28295,8 @@ var DropdownButton = styled.button.withConfig({
28293
28295
  }), addStyledProps);
28294
28296
 
28295
28297
  var DropdownLink = styled.a.withConfig({
28296
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
28297
- return !["hoverColor", "bgHoverColor"].includes(prop) && defaultValidatorFn(prop);
28298
+ shouldForwardProp: function shouldForwardProp(prop) {
28299
+ return !["hoverColor", "bgHoverColor"].includes(prop);
28298
28300
  },
28299
28301
  displayName: "DropdownLink",
28300
28302
  componentId: "sc-73jvsg-0"
@@ -28896,8 +28898,8 @@ var DesktopMenu = styled(BaseDesktopMenu).withConfig({
28896
28898
  displayName: "DesktopMenu",
28897
28899
  componentId: "sc-8mrjkc-3"
28898
28900
  })({
28899
- "> div": {
28900
- ":not(:last-of-type)": {
28901
+ "& > div": {
28902
+ "&:not(:last-of-type)": {
28901
28903
  marginRight: "8px"
28902
28904
  }
28903
28905
  }
@@ -29177,7 +29179,7 @@ var Line = styled.div.withConfig({
29177
29179
  return {
29178
29180
  position: "relative",
29179
29181
  width: "100%",
29180
- ":before": {
29182
+ "&:before": {
29181
29183
  content: "''",
29182
29184
  position: "absolute",
29183
29185
  top: "50%",
@@ -29374,7 +29376,7 @@ var InputWrapper = styled(Box).withConfig({
29374
29376
  position: "relative",
29375
29377
  display: "flex",
29376
29378
  flexGrow: 1,
29377
- ":focus-within": {
29379
+ "&:focus-within": {
29378
29380
  svg: {
29379
29381
  color: theme.colors.darkBlue
29380
29382
  }
@@ -29544,7 +29546,7 @@ var NavBarSearch = styled(BaseNavBarSearch).withConfig({
29544
29546
  border: "solid 1px transparent",
29545
29547
  borderRadius: theme.radii.medium,
29546
29548
  minWidth: theme.space.x5,
29547
- ":focus": {
29549
+ "&:focus": {
29548
29550
  color: theme.colors.white,
29549
29551
  background: curriedDarken(0.1, theme.colors.blue),
29550
29552
  border: "solid 1px " + theme.colors.lightBlue,
@@ -29560,7 +29562,7 @@ var NavBarSearch = styled(BaseNavBarSearch).withConfig({
29560
29562
  background: "transparent",
29561
29563
  border: "solid 1px transparent",
29562
29564
  borderRadius: theme.radii.medium,
29563
- ":focus": {
29565
+ "&:focus": {
29564
29566
  background: theme.colors.white,
29565
29567
  border: "solid 1px transparent",
29566
29568
  boxShadow: "none"
@@ -29770,7 +29772,7 @@ var SubMenu = function SubMenu(_ref4) {
29770
29772
  }) : defaultRender(), /*#__PURE__*/React__default.createElement(SubMenuItemsList, null, renderMenuItems(menuItem.items, linkOnClick, themeColorObject, layer + 1)));
29771
29773
  };
29772
29774
 
29773
- var Menu = styled.ul.withConfig({
29775
+ var Menu$1 = styled.ul.withConfig({
29774
29776
  displayName: "MobileMenu__Menu",
29775
29777
  componentId: "sc-18t6zrc-4"
29776
29778
  })(function (_ref5) {
@@ -29812,7 +29814,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
29812
29814
  backgroundColor: themeColorObject && themeColorObject.background
29813
29815
  }, props), /*#__PURE__*/React__default.createElement(BrandingWrap, null, /*#__PURE__*/React__default.createElement(BrandingText, {
29814
29816
  logoColor: themeColorObject === null || themeColorObject === void 0 ? void 0 : themeColorObject.logoColor
29815
- })), /*#__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, {
29816
29818
  textAlign: "center",
29817
29819
  borderTop: borderStyle,
29818
29820
  height: "40px",
@@ -45015,7 +45017,7 @@ function useMediaQuery(q) {
45015
45017
  var _a;
45016
45018
 
45017
45019
  var isUnsupported = typeof window === "undefined" || typeof window.matchMedia === "undefined";
45018
- var theme = useTheme();
45020
+ var theme = React__default.useContext(ThemeContext$1);
45019
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;
45020
45022
  var getMatches = useCallback(function (query) {
45021
45023
  if (isUnsupported) {
@@ -45066,7 +45068,7 @@ var ApplicationFrame = function ApplicationFrame(_a) {
45066
45068
  }, children));
45067
45069
  };
45068
45070
 
45069
- var Header = function Header(_a) {
45071
+ var Header$1 = function Header(_a) {
45070
45072
  var _b, _c;
45071
45073
 
45072
45074
  var background = _a.background,
@@ -45161,7 +45163,7 @@ var Page = function Page(_a) {
45161
45163
  return /*#__PURE__*/React__default.createElement(Flex, Object.assign({
45162
45164
  flexDirection: "column",
45163
45165
  flexGrow: fullHeight ? 1 : 0
45164
- }, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /*#__PURE__*/React__default.createElement(Header, {
45166
+ }, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /*#__PURE__*/React__default.createElement(Header$1, {
45165
45167
  renderBreadcrumbs: function renderBreadcrumbs() {
45166
45168
  return breadcrumbs;
45167
45169
  },
@@ -47324,7 +47326,7 @@ var ModalFooter = styled.div.withConfig({
47324
47326
  backgroundColor: curriedTransparentize(0.1, theme.colors.white),
47325
47327
  zIndex: theme.zIndices.modalHeaderAndFooter,
47326
47328
  borderRadius: "0 0 " + theme.radii.medium + " " + theme.radii.medium,
47327
- ":after": {
47329
+ "&:after": {
47328
47330
  content: "''",
47329
47331
  position: "absolute",
47330
47332
  top: 0,
@@ -47353,7 +47355,7 @@ var ModalHeader = styled.div.withConfig({
47353
47355
  backgroundColor: curriedTransparentize(0.1, theme.colors.white),
47354
47356
  zIndex: theme.zIndices.modalHeaderAndFooter,
47355
47357
  borderRadius: theme.radii.medium + " " + theme.radii.medium + " 0 0",
47356
- ":after": {
47358
+ "&:after": {
47357
47359
  content: "''",
47358
47360
  position: "absolute",
47359
47361
  bottom: 0,
@@ -47406,7 +47408,7 @@ var StyledReactModal = styled(ReactModal).withConfig({
47406
47408
 
47407
47409
  var theme = _ref2.theme;
47408
47410
  return _ref3 = {
47409
- ":focus": {
47411
+ "&:focus": {
47410
47412
  outline: "none"
47411
47413
  },
47412
47414
  display: "flex",
@@ -50235,6 +50237,27 @@ i18next.init({
50235
50237
  }
50236
50238
  });
50237
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
+
50238
50261
  var FeatureFlagsContext = /*#__PURE__*/createContext(undefined);
50239
50262
  function FeatureFlagsProvider(_ref) {
50240
50263
  var featureFlags = _ref.featureFlags,
@@ -50941,9 +50964,20 @@ function NDSThemeProvider(_ref) {
50941
50964
  children = _ref.children;
50942
50965
  var variant = useComponentVariant();
50943
50966
  var theme = useNDSTheme(variant, customTheme);
50944
- 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, {
50945
50971
  theme: theme
50946
- }, children);
50972
+ }, children));
50973
+ }
50974
+
50975
+ function shouldForwardProp(propName, target) {
50976
+ if (typeof target === "string") {
50977
+ return isPropValid(propName);
50978
+ }
50979
+
50980
+ return true;
50947
50981
  }
50948
50982
 
50949
50983
  var Reset = createGlobalStyle(function () {
@@ -51072,7 +51106,7 @@ function NDSProvider(_ref) {
51072
51106
  }, children))))));
51073
51107
  }
51074
51108
 
51075
- var Overlay = styled(Flex).withConfig({
51109
+ var Overlay$1 = styled(Flex).withConfig({
51076
51110
  displayName: "Overlay",
51077
51111
  componentId: "sc-mcd6gm-0"
51078
51112
  })(function (_ref) {
@@ -54373,6 +54407,380 @@ var ToggleComponent = /*#__PURE__*/React__default.forwardRef(function (props, re
54373
54407
  }, props));
54374
54408
  });
54375
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
+
54376
54784
  var MaybeTooltip = function MaybeTooltip(_a) {
54377
54785
  var _a$children = _a.children,
54378
54786
  children = _a$children === void 0 ? "" : _a$children,
@@ -54479,4 +54887,4 @@ var TruncatedText = function TruncatedText(_a) {
54479
54887
  }, props), children);
54480
54888
  };
54481
54889
 
54482
- 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 };