@transferwise/components 45.19.6 → 45.21.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 (135) hide show
  1. package/build/i18n/cs.json +11 -3
  2. package/build/i18n/de.json +11 -3
  3. package/build/i18n/en.json +1 -0
  4. package/build/i18n/es.json +11 -3
  5. package/build/i18n/fr.json +11 -3
  6. package/build/i18n/hu.json +11 -3
  7. package/build/i18n/id.json +11 -3
  8. package/build/i18n/it.json +11 -3
  9. package/build/i18n/ja.json +11 -3
  10. package/build/i18n/pl.json +11 -3
  11. package/build/i18n/pt.json +11 -3
  12. package/build/i18n/ro.json +11 -3
  13. package/build/i18n/ru.json +11 -3
  14. package/build/i18n/th.json +11 -3
  15. package/build/i18n/tr.json +11 -3
  16. package/build/i18n/uk.json +11 -3
  17. package/build/i18n/zh-CN.json +11 -3
  18. package/build/i18n/{zh.json → zh-HK.json} +11 -3
  19. package/build/index.esm.js +557 -248
  20. package/build/index.esm.js.map +1 -1
  21. package/build/index.js +557 -248
  22. package/build/index.js.map +1 -1
  23. package/build/main.css +1 -1
  24. package/build/styles/actionButton/ActionButton.css +1 -1
  25. package/build/styles/chips/Chip.css +1 -1
  26. package/build/styles/circularButton/CircularButton.css +1 -1
  27. package/build/styles/common/Option/Option.css +1 -1
  28. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  29. package/build/styles/common/closeButton/CloseButton.css +1 -1
  30. package/build/styles/dateLookup/DateLookup.css +1 -1
  31. package/build/styles/drawer/Drawer.css +1 -1
  32. package/build/styles/flowNavigation/FlowNavigation.css +1 -1
  33. package/build/styles/inputs/SelectInput.css +1 -1
  34. package/build/styles/main.css +1 -1
  35. package/build/styles/overlayHeader/OverlayHeader.css +1 -1
  36. package/build/styles/statusIcon/StatusIcon.css +1 -1
  37. package/build/styles/summary/Summary.css +1 -1
  38. package/build/styles/typeahead/Typeahead.css +1 -1
  39. package/build/styles/uploadInput/UploadInput.css +1 -1
  40. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  41. package/build/types/common/locale/index.d.ts +10 -1
  42. package/build/types/common/locale/index.d.ts.map +1 -1
  43. package/build/types/common/propsValues/breakpoint.d.ts +1 -0
  44. package/build/types/common/propsValues/breakpoint.d.ts.map +1 -1
  45. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  46. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
  47. package/build/types/i18n/index.d.ts.map +1 -1
  48. package/build/types/inputs/SelectInput.d.ts +6 -3
  49. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  50. package/build/types/inputs/SelectInput.messages.d.ts +9 -0
  51. package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
  52. package/build/types/inputs/_Popover.d.ts +2 -2
  53. package/build/types/inputs/_Popover.d.ts.map +1 -1
  54. package/build/types/test-utils/story-config.d.ts +11 -1
  55. package/build/types/test-utils/story-config.d.ts.map +1 -1
  56. package/build/types/test-utils/window-mock.d.ts +2 -0
  57. package/build/types/test-utils/window-mock.d.ts.map +1 -0
  58. package/package.json +4 -4
  59. package/src/actionButton/ActionButton.css +1 -1
  60. package/src/actionButton/ActionButton.less +5 -1
  61. package/src/chips/Chip.css +1 -1
  62. package/src/chips/Chip.less +8 -0
  63. package/src/circularButton/CircularButton.css +1 -1
  64. package/src/circularButton/CircularButton.less +9 -3
  65. package/src/common/Option/Option.css +1 -1
  66. package/src/common/Option/Option.less +6 -0
  67. package/src/common/bottomSheet/BottomSheet.css +1 -1
  68. package/src/common/bottomSheet/BottomSheet.less +1 -1
  69. package/src/common/bottomSheet/BottomSheet.spec.tsx +4 -1
  70. package/src/common/bottomSheet/BottomSheet.story.tsx +4 -0
  71. package/src/common/bottomSheet/BottomSheet.tsx +10 -1
  72. package/src/common/closeButton/CloseButton.css +1 -1
  73. package/src/common/closeButton/CloseButton.less +12 -0
  74. package/src/common/hooks/useMedia.spec.ts +3 -17
  75. package/src/common/locale/index.js +10 -1
  76. package/src/common/locale/index.spec.js +1 -34
  77. package/src/common/propsValues/breakpoint.ts +1 -0
  78. package/src/dateLookup/DateLookup.css +1 -1
  79. package/src/dateLookup/DateLookup.js +7 -3
  80. package/src/dateLookup/DateLookup.keyboardEvents.spec.js +3 -0
  81. package/src/dateLookup/DateLookup.less +6 -0
  82. package/src/dateLookup/DateLookup.story.js +6 -1
  83. package/src/dateLookup/DateLookup.testingLibrary.spec.js +3 -1
  84. package/src/dateLookup/DateLookup.view.spec.js +4 -0
  85. package/src/dateLookup/dateHeader/DateHeader.js +4 -2
  86. package/src/drawer/Drawer.css +1 -1
  87. package/src/drawer/Drawer.less +6 -8
  88. package/src/drawer/Drawer.story.js +42 -2
  89. package/src/flowNavigation/FlowNavigation.css +1 -1
  90. package/src/i18n/cs.json +11 -3
  91. package/src/i18n/de.json +11 -3
  92. package/src/i18n/en.json +1 -0
  93. package/src/i18n/es.json +11 -3
  94. package/src/i18n/fr.json +11 -3
  95. package/src/i18n/hu.json +11 -3
  96. package/src/i18n/id.json +11 -3
  97. package/src/i18n/index.ts +6 -2
  98. package/src/i18n/it.json +11 -3
  99. package/src/i18n/ja.json +11 -3
  100. package/src/i18n/pl.json +11 -3
  101. package/src/i18n/pt.json +11 -3
  102. package/src/i18n/ro.json +11 -3
  103. package/src/i18n/ru.json +11 -3
  104. package/src/i18n/th.json +11 -3
  105. package/src/i18n/tr.json +11 -3
  106. package/src/i18n/uk.json +11 -3
  107. package/src/i18n/zh-CN.json +11 -3
  108. package/src/i18n/{zh.json → zh-HK.json} +11 -3
  109. package/src/inputs/SelectInput.css +1 -1
  110. package/src/inputs/SelectInput.less +29 -7
  111. package/src/inputs/SelectInput.messages.ts +9 -0
  112. package/src/inputs/SelectInput.story.tsx +8 -5
  113. package/src/inputs/SelectInput.tsx +91 -33
  114. package/src/inputs/_BottomSheet.tsx +19 -19
  115. package/src/inputs/_Popover.tsx +2 -2
  116. package/src/main.css +1 -1
  117. package/src/modal/Modal.tsx +2 -2
  118. package/src/overlayHeader/OverlayHeader.css +1 -1
  119. package/src/popover/Popover.spec.js +3 -1
  120. package/src/radioGroup/RadioGroup.js +1 -1
  121. package/src/radioGroup/RadioGroup.spec.js +18 -0
  122. package/src/select/Select.spec.js +6 -9
  123. package/src/statusIcon/StatusIcon.css +1 -1
  124. package/src/statusIcon/StatusIcon.less +10 -0
  125. package/src/summary/Summary.css +1 -1
  126. package/src/summary/Summary.less +1 -1
  127. package/src/test-utils/index.js +1 -0
  128. package/src/test-utils/story-config.ts +21 -7
  129. package/src/test-utils/window-mock.ts +19 -0
  130. package/src/typeahead/Typeahead.css +1 -1
  131. package/src/typeahead/Typeahead.less +5 -6
  132. package/src/uploadInput/UploadInput.css +1 -1
  133. package/src/uploadInput/UploadInput.less +5 -1
  134. package/build/i18n/zh_CN.json +0 -44
  135. package/src/i18n/zh_CN.json +0 -44
package/build/index.js CHANGED
@@ -14,11 +14,11 @@ var reactTransitionGroup = require('react-transition-group');
14
14
  var reactDom = require('react-dom');
15
15
  var focus = require('@react-aria/focus');
16
16
  var mergeRefs = require('react-merge-refs');
17
+ var shim = require('use-sync-external-store/shim');
17
18
  var neptuneValidation = require('@transferwise/neptune-validation');
18
19
  var reactPopper = require('react-popper');
19
20
  var react$1 = require('@headlessui/react');
20
21
  var mergeProps = require('merge-props');
21
- var shim = require('use-sync-external-store/shim');
22
22
  var react = require('@floating-ui/react');
23
23
  var overlays = require('@react-aria/overlays');
24
24
  var art = require('@wise/art');
@@ -192,6 +192,7 @@ exports.Priority = void 0;
192
192
 
193
193
  exports.Breakpoint = void 0;
194
194
  (function (Breakpoint) {
195
+ Breakpoint[Breakpoint["ZOOM_400"] = 320] = "ZOOM_400";
195
196
  Breakpoint[Breakpoint["EXTRA_SMALL"] = 480] = "EXTRA_SMALL";
196
197
  Breakpoint[Breakpoint["SMALL"] = 576] = "SMALL";
197
198
  Breakpoint[Breakpoint["MEDIUM"] = 768] = "MEDIUM";
@@ -395,6 +396,11 @@ const DEFAULT_LOCALE = 'en-GB';
395
396
  * @type {string[]}
396
397
  */
397
398
  const RTL_LANGUAGES = ['ar', 'he'];
399
+
400
+ /**
401
+ * @deprecated The source of truth for supported languages lives in Crab.
402
+ * @type {string[]}
403
+ */
398
404
  const SUPPORTED_LANGUAGES = [DEFAULT_LANG, 'de', 'es', 'fr', 'hu', 'id', 'it', 'ja', 'pl', 'pt', 'ro', 'ru', 'th', 'tr', 'uk', 'zh'];
399
405
 
400
406
  /**
@@ -424,8 +430,13 @@ function adjustLocale(locale) {
424
430
  * Provides corresponding lang (iso2) for provided locale
425
431
  * if locale is invalid or language is unsupported returns null
426
432
  *
433
+ * @deprecated The use of this function almost always breaks language variants
434
+ * e.g. Simplified and Traditional Chinese.
435
+ * There should be no use case for this function.
436
+ * To select the correct translations from a translations object, pass the
437
+ * locale directly into Crab's getLocalisedMessages.
427
438
  * @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
428
- * @returns {string|null}
439
+ * @returns {string|null} two-letter ISO639-1 language
429
440
  */
430
441
  function getLangFromLocale(locale) {
431
442
  const adjustedLocale = adjustLocale(locale);
@@ -1740,58 +1751,6 @@ const DimmerContentWrapper = ({
1740
1751
  };
1741
1752
  var Dimmer$1 = withNextPortalWrapper(Dimmer);
1742
1753
 
1743
- const EXIT_ANIMATION = 350;
1744
- const SlidingPanel = /*#__PURE__*/React.forwardRef(({
1745
- children,
1746
- className,
1747
- open,
1748
- position,
1749
- showSlidingPanelBorder,
1750
- slidingPanelPositionFixed,
1751
- ...rest
1752
- }, reference) => {
1753
- /** @type {RefObject<HTMLDivElement>} */
1754
- const localReference = React.useRef(null);
1755
- return /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
1756
- ...rest,
1757
- nodeRef: localReference,
1758
- in: open
1759
- // Wait for animation to finish before unmount.
1760
- ,
1761
- timeout: {
1762
- enter: 0,
1763
- exit: EXIT_ANIMATION
1764
- },
1765
- classNames: classNames__default.default(`sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, {
1766
- 'sliding-panel--fixed': slidingPanelPositionFixed
1767
- }, 'sliding-panel'),
1768
- appear: true,
1769
- unmountOnExit: true,
1770
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
1771
- ref: mergeRefs__default.default([reference, localReference]),
1772
- className: classNames__default.default('sliding-panel', `sliding-panel--open-${position}`, className),
1773
- children: children
1774
- })
1775
- });
1776
- });
1777
- SlidingPanel.propTypes = {
1778
- children: PropTypes__default.default.node,
1779
- className: PropTypes__default.default.string,
1780
- open: PropTypes__default.default.bool,
1781
- position: PropTypes__default.default.oneOf(['top', 'bottom', 'left', 'right']),
1782
- showSlidingPanelBorder: PropTypes__default.default.bool,
1783
- slidingPanelPositionFixed: PropTypes__default.default.bool
1784
- };
1785
- SlidingPanel.defaultProps = {
1786
- children: null,
1787
- className: undefined,
1788
- open: false,
1789
- position: 'left',
1790
- showSlidingPanelBorder: false,
1791
- slidingPanelPositionFixed: false
1792
- };
1793
- var SlidingPanel$1 = SlidingPanel;
1794
-
1795
1754
  const THROTTLE_MS = 100;
1796
1755
  const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
1797
1756
  const useClientWidth = ({
@@ -1962,6 +1921,137 @@ const useLayout = () => {
1962
1921
  };
1963
1922
  };
1964
1923
 
1924
+ const EXIT_ANIMATION = 350;
1925
+ const SlidingPanel = /*#__PURE__*/React.forwardRef(({
1926
+ children,
1927
+ className,
1928
+ open,
1929
+ position,
1930
+ showSlidingPanelBorder,
1931
+ slidingPanelPositionFixed,
1932
+ ...rest
1933
+ }, reference) => {
1934
+ /** @type {RefObject<HTMLDivElement>} */
1935
+ const localReference = React.useRef(null);
1936
+ return /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
1937
+ ...rest,
1938
+ nodeRef: localReference,
1939
+ in: open
1940
+ // Wait for animation to finish before unmount.
1941
+ ,
1942
+ timeout: {
1943
+ enter: 0,
1944
+ exit: EXIT_ANIMATION
1945
+ },
1946
+ classNames: classNames__default.default(`sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, {
1947
+ 'sliding-panel--fixed': slidingPanelPositionFixed
1948
+ }, 'sliding-panel'),
1949
+ appear: true,
1950
+ unmountOnExit: true,
1951
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1952
+ ref: mergeRefs__default.default([reference, localReference]),
1953
+ className: classNames__default.default('sliding-panel', `sliding-panel--open-${position}`, className),
1954
+ children: children
1955
+ })
1956
+ });
1957
+ });
1958
+ SlidingPanel.propTypes = {
1959
+ children: PropTypes__default.default.node,
1960
+ className: PropTypes__default.default.string,
1961
+ open: PropTypes__default.default.bool,
1962
+ position: PropTypes__default.default.oneOf(['top', 'bottom', 'left', 'right']),
1963
+ showSlidingPanelBorder: PropTypes__default.default.bool,
1964
+ slidingPanelPositionFixed: PropTypes__default.default.bool
1965
+ };
1966
+ SlidingPanel.defaultProps = {
1967
+ children: null,
1968
+ className: undefined,
1969
+ open: false,
1970
+ position: 'left',
1971
+ showSlidingPanelBorder: false,
1972
+ slidingPanelPositionFixed: false
1973
+ };
1974
+ var SlidingPanel$1 = SlidingPanel;
1975
+
1976
+ const Drawer = ({
1977
+ children,
1978
+ className,
1979
+ footerContent,
1980
+ headerTitle,
1981
+ onClose,
1982
+ open,
1983
+ position
1984
+ }) => {
1985
+ logActionRequiredIf('Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.', !onClose);
1986
+ const {
1987
+ isMobile
1988
+ } = useLayout();
1989
+ return /*#__PURE__*/jsxRuntime.jsx(Dimmer$1, {
1990
+ open: open,
1991
+ onClose: onClose,
1992
+ children: /*#__PURE__*/jsxRuntime.jsx(SlidingPanel$1, {
1993
+ open: open,
1994
+ position: isMobile ? exports.Position.BOTTOM : position,
1995
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
1996
+ className: classNames__default.default('np-drawer', className),
1997
+ role: "dialog",
1998
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
1999
+ className: classNames__default.default('np-drawer-header', {
2000
+ 'np-drawer-header--withborder': headerTitle
2001
+ }),
2002
+ children: [headerTitle && /*#__PURE__*/jsxRuntime.jsx(Title, {
2003
+ type: exports.Typography.TITLE_BODY,
2004
+ children: headerTitle
2005
+ }), /*#__PURE__*/jsxRuntime.jsx(CloseButton, {
2006
+ onClick: onClose
2007
+ })]
2008
+ }), children && /*#__PURE__*/jsxRuntime.jsx("div", {
2009
+ className: classNames__default.default('np-drawer-content'),
2010
+ children: children
2011
+ }), footerContent && /*#__PURE__*/jsxRuntime.jsx("div", {
2012
+ className: classNames__default.default('np-drawer-footer'),
2013
+ children: footerContent
2014
+ })]
2015
+ })
2016
+ })
2017
+ });
2018
+ };
2019
+ Drawer.propTypes = {
2020
+ /** The content to appear in the drawer body. */
2021
+ children: PropTypes__default.default.node,
2022
+ className: PropTypes__default.default.string,
2023
+ /** The content to appear in the drawer footer. */
2024
+ footerContent: PropTypes__default.default.node,
2025
+ /** The content to appear in the drawer header. */
2026
+ headerTitle: PropTypes__default.default.node,
2027
+ /** The action to perform on close click. */
2028
+ onClose: PropTypes__default.default.func,
2029
+ /** The status of Drawer either open or not. */
2030
+ open: PropTypes__default.default.bool,
2031
+ /** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */
2032
+ position: PropTypes__default.default.oneOf(['left', 'right', 'bottom'])
2033
+ };
2034
+ Drawer.defaultProps = {
2035
+ children: null,
2036
+ className: undefined,
2037
+ footerContent: null,
2038
+ headerTitle: null,
2039
+ onClose: null,
2040
+ open: false,
2041
+ position: exports.Position.RIGHT
2042
+ };
2043
+ var Drawer$1 = Drawer;
2044
+
2045
+ function useMedia(query) {
2046
+ return shim.useSyncExternalStore(onStoreChange => {
2047
+ const mediaQueryList = window.matchMedia(query);
2048
+ mediaQueryList.addEventListener('change', onStoreChange);
2049
+ return () => {
2050
+ mediaQueryList.removeEventListener('change', onStoreChange);
2051
+ };
2052
+ }, () => typeof window !== 'undefined' ? window.matchMedia(query).matches : undefined, () => undefined);
2053
+ }
2054
+
1965
2055
  const INITIAL_Y_POSITION = 0;
1966
2056
  const CONTENT_SCROLL_THRESHOLD = 1;
1967
2057
  const MOVE_OFFSET_THRESHOLD = 50;
@@ -2089,7 +2179,13 @@ const BottomSheet$1 = props => {
2089
2179
  maxHeight: `calc(${screenHeight} - ${safeZoneHeight} - ${topbarHeight})`
2090
2180
  };
2091
2181
  }
2092
- return /*#__PURE__*/jsxRuntime.jsx(Dimmer$1, {
2182
+ const is400Zoom = useMedia(`(max-width: ${exports.Breakpoint.ZOOM_400}px)`);
2183
+ return is400Zoom ? /*#__PURE__*/jsxRuntime.jsx(Drawer$1, {
2184
+ open: props.open,
2185
+ className: props.className,
2186
+ onClose: close,
2187
+ children: props.children
2188
+ }) : /*#__PURE__*/jsxRuntime.jsx(Dimmer$1, {
2093
2189
  open: props.open,
2094
2190
  fadeContentOnEnter: true,
2095
2191
  fadeContentOnExit: true,
@@ -3316,7 +3412,7 @@ const ResponsivePanel = /*#__PURE__*/React.forwardRef(({
3316
3412
  });
3317
3413
  var ResponsivePanel$1 = ResponsivePanel;
3318
3414
 
3319
- var messages$6 = reactIntl.defineMessages({
3415
+ var dateTriggerMessages = reactIntl.defineMessages({
3320
3416
  ariaLabel: {
3321
3417
  id: "neptune.ClearButton.ariaLabel"
3322
3418
  }
@@ -3379,7 +3475,7 @@ const DateTrigger = ({
3379
3475
  className: "input-group-addon",
3380
3476
  children: /*#__PURE__*/jsxRuntime.jsx(CloseButton, {
3381
3477
  className: `clear-btn clear-btn--${size}`,
3382
- "aria-label": formatMessage(messages$6.ariaLabel),
3478
+ "aria-label": formatMessage(dateTriggerMessages.ariaLabel),
3383
3479
  size: exports.Size.SMALL,
3384
3480
  onClick: event => {
3385
3481
  event.stopPropagation();
@@ -3409,7 +3505,7 @@ DateTrigger.defaultProps = {
3409
3505
  };
3410
3506
  var DateTrigger$1 = DateTrigger;
3411
3507
 
3412
- var messages$5 = reactIntl.defineMessages({
3508
+ var messages$6 = reactIntl.defineMessages({
3413
3509
  next: {
3414
3510
  id: "neptune.DateLookup.next"
3415
3511
  },
@@ -3445,14 +3541,17 @@ const DateHeader = ({
3445
3541
  dateMode
3446
3542
  }) => {
3447
3543
  const intl = reactIntl.useIntl();
3544
+ const {
3545
+ isMobile
3546
+ } = useLayout();
3448
3547
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
3449
- className: "text-xs-center p-t-1 p-b-2 clearfix",
3548
+ className: classNames__default.default('text-xs-center', !isMobile && ['clearfix', 'p-y-1']),
3450
3549
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
3451
3550
  className: "pull-left-single-direction",
3452
3551
  children: /*#__PURE__*/jsxRuntime.jsx("button", {
3453
3552
  type: "button",
3454
3553
  className: `d-inline-flex ${buttonClasses}`,
3455
- "aria-label": `${intl.formatMessage(messages$5.previous)} ${dateMode}`,
3554
+ "aria-label": `${intl.formatMessage(messages$6.previous)} ${dateMode}`,
3456
3555
  onClick: onPreviousClick,
3457
3556
  children: /*#__PURE__*/jsxRuntime.jsx(Chevron$1, {
3458
3557
  orientation: exports.Position.LEFT,
@@ -3466,7 +3565,7 @@ const DateHeader = ({
3466
3565
  children: /*#__PURE__*/jsxRuntime.jsx("button", {
3467
3566
  type: "button",
3468
3567
  className: `tw-date-lookup-header-current ${buttonClasses}`,
3469
- "aria-label": intl.formatMessage(messages$5.goTo20YearView),
3568
+ "aria-label": intl.formatMessage(messages$6.goTo20YearView),
3470
3569
  onClick: onLabelClick,
3471
3570
  children: label
3472
3571
  })
@@ -3475,7 +3574,7 @@ const DateHeader = ({
3475
3574
  children: /*#__PURE__*/jsxRuntime.jsx("button", {
3476
3575
  type: "button",
3477
3576
  className: `d-inline-flex ${buttonClasses}`,
3478
- "aria-label": `${reactIntl.useIntl().formatMessage(messages$5.next)} ${dateMode}`,
3577
+ "aria-label": `${reactIntl.useIntl().formatMessage(messages$6.next)} ${dateMode}`,
3479
3578
  onClick: onNextClick,
3480
3579
  children: /*#__PURE__*/jsxRuntime.jsx(Chevron$1, {
3481
3580
  orientation: exports.Position.RIGHT,
@@ -3519,7 +3618,7 @@ class TableLink extends React.PureComponent {
3519
3618
  };
3520
3619
  calculateAriaLabel = (longTitle, title, active, type, formatMessage) => {
3521
3620
  if (active) {
3522
- return `${longTitle || title}, ${formatMessage(messages$5.selected)} ${formatMessage(messages$5[type])}`;
3621
+ return `${longTitle || title}, ${formatMessage(messages$6.selected)} ${formatMessage(messages$6[type])}`;
3523
3622
  }
3524
3623
  return longTitle || title;
3525
3624
  };
@@ -3742,7 +3841,7 @@ class DayCalendar extends React.PureComponent {
3742
3841
  month: monthFormat,
3743
3842
  year: 'numeric'
3744
3843
  }),
3745
- dateMode: formatMessage(messages$5.month),
3844
+ dateMode: formatMessage(messages$6.month),
3746
3845
  onLabelClick: onLabelClick,
3747
3846
  onPreviousClick: this.selectPreviousMonth,
3748
3847
  onNextClick: this.selectNextMonth
@@ -3870,7 +3969,7 @@ class MonthCalendar extends React.PureComponent {
3870
3969
  } = this.props;
3871
3970
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
3872
3971
  children: [/*#__PURE__*/jsxRuntime.jsx(DateHeader$1, {
3873
- dateMode: formatMessage(messages$5.year),
3972
+ dateMode: formatMessage(messages$6.year),
3874
3973
  label: formatting.formatDate(new Date(viewYear, 0), locale, {
3875
3974
  year: 'numeric'
3876
3975
  }),
@@ -3995,7 +4094,7 @@ class YearCalendar extends React.PureComponent {
3995
4094
  } = this.props;
3996
4095
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
3997
4096
  children: [/*#__PURE__*/jsxRuntime.jsx(DateHeader$1, {
3998
- dateMode: formatMessage(messages$5.twentyYears),
4097
+ dateMode: formatMessage(messages$6.twentyYears),
3999
4098
  onPreviousClick: this.selectPreviousYears,
4000
4099
  onNextClick: this.selectNextYears
4001
4100
  }), /*#__PURE__*/jsxRuntime.jsx(YearCalendarTable$1, {
@@ -4042,7 +4141,8 @@ class DateLookup extends React.PureComponent {
4042
4141
  viewMonth: (props.value || new Date()).getMonth(),
4043
4142
  viewYear: (props.value || new Date()).getFullYear(),
4044
4143
  open: false,
4045
- mode: MODE.DAY
4144
+ mode: MODE.DAY,
4145
+ isMobile: false
4046
4146
  };
4047
4147
  }
4048
4148
  static getDerivedStateFromProps(props, state) {
@@ -4077,6 +4177,10 @@ class DateLookup extends React.PureComponent {
4077
4177
  if (+this.props.value !== +previousProps.value && this.state.open) {
4078
4178
  this.focusOn('.active');
4079
4179
  }
4180
+ this.mediaQuery = window.matchMedia(`(max-width: ${exports.Breakpoint.SMALL}px)`);
4181
+ this.setState({
4182
+ isMobile: this.mediaQuery.matches
4183
+ });
4080
4184
  }
4081
4185
  componentWillUnmount() {
4082
4186
  // Prevents memory leak by cleaning state.
@@ -4209,14 +4313,17 @@ class DateLookup extends React.PureComponent {
4209
4313
  max,
4210
4314
  viewMonth,
4211
4315
  viewYear,
4212
- mode
4316
+ mode,
4317
+ isMobile
4213
4318
  } = this.state;
4214
4319
  const {
4215
4320
  placeholder,
4216
4321
  monthFormat
4217
4322
  } = this.props;
4218
4323
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
4219
- className: "p-a-1",
4324
+ className: classNames__default.default({
4325
+ 'p-a-1': !isMobile
4326
+ }),
4220
4327
  children: [mode === MODE.DAY && /*#__PURE__*/jsxRuntime.jsx(DayCalendar$1, {
4221
4328
  selectedDate,
4222
4329
  min,
@@ -4724,75 +4831,6 @@ function Display({
4724
4831
  });
4725
4832
  }
4726
4833
 
4727
- const Drawer = ({
4728
- children,
4729
- className,
4730
- footerContent,
4731
- headerTitle,
4732
- onClose,
4733
- open,
4734
- position
4735
- }) => {
4736
- logActionRequiredIf('Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.', !onClose);
4737
- const {
4738
- isMobile
4739
- } = useLayout();
4740
- return /*#__PURE__*/jsxRuntime.jsx(Dimmer$1, {
4741
- open: open,
4742
- onClose: onClose,
4743
- children: /*#__PURE__*/jsxRuntime.jsx(SlidingPanel$1, {
4744
- open: open,
4745
- position: isMobile ? exports.Position.BOTTOM : position,
4746
- children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4747
- className: classNames__default.default('np-drawer', className),
4748
- role: "dialog",
4749
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
4750
- className: classNames__default.default('np-drawer-header', {
4751
- 'np-drawer-header--withborder': headerTitle
4752
- }),
4753
- children: [headerTitle && /*#__PURE__*/jsxRuntime.jsx(Title, {
4754
- type: exports.Typography.TITLE_BODY,
4755
- children: headerTitle
4756
- }), /*#__PURE__*/jsxRuntime.jsx(CloseButton, {
4757
- onClick: onClose
4758
- })]
4759
- }), children && /*#__PURE__*/jsxRuntime.jsx("div", {
4760
- className: classNames__default.default('np-drawer-content'),
4761
- children: children
4762
- }), footerContent && /*#__PURE__*/jsxRuntime.jsx("div", {
4763
- className: classNames__default.default('np-drawer-footer'),
4764
- children: footerContent
4765
- })]
4766
- })
4767
- })
4768
- });
4769
- };
4770
- Drawer.propTypes = {
4771
- /** The content to appear in the drawer body. */
4772
- children: PropTypes__default.default.node,
4773
- className: PropTypes__default.default.string,
4774
- /** The content to appear in the drawer footer. */
4775
- footerContent: PropTypes__default.default.node,
4776
- /** The content to appear in the drawer header. */
4777
- headerTitle: PropTypes__default.default.node,
4778
- /** The action to perform on close click. */
4779
- onClose: PropTypes__default.default.func,
4780
- /** The status of Drawer either open or not. */
4781
- open: PropTypes__default.default.bool,
4782
- /** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */
4783
- position: PropTypes__default.default.oneOf(['left', 'right', 'bottom'])
4784
- };
4785
- Drawer.defaultProps = {
4786
- children: null,
4787
- className: undefined,
4788
- footerContent: null,
4789
- headerTitle: null,
4790
- onClose: null,
4791
- open: false,
4792
- position: exports.Position.RIGHT
4793
- };
4794
- var Drawer$1 = Drawer;
4795
-
4796
4834
  const DropFade = ({
4797
4835
  children,
4798
4836
  show
@@ -5693,7 +5731,7 @@ const Stepper = ({
5693
5731
  });
5694
5732
  };
5695
5733
 
5696
- var messages$4 = reactIntl.defineMessages({
5734
+ var messages$5 = reactIntl.defineMessages({
5697
5735
  back: {
5698
5736
  id: "neptune.FlowNavigation.back"
5699
5737
  }
@@ -5773,7 +5811,7 @@ const FlowNavigation = ({
5773
5811
  className: "m-x-1",
5774
5812
  labels: steps.map(step => step.label),
5775
5813
  activeLabel: activeStep - 1,
5776
- "aria-label": intl.formatMessage(messages$4.back)
5814
+ "aria-label": intl.formatMessage(messages$5.back)
5777
5815
  }),
5778
5816
  onClick: onGoBack
5779
5817
  }) : logo
@@ -5925,13 +5963,14 @@ const Modal = ({
5925
5963
  }) => {
5926
5964
  const checkSpecialClasses = classToCheck => className?.split(' ').includes(classToCheck);
5927
5965
  const {
5928
- isMobile
5966
+ isMobile,
5967
+ isMedium: isTablet
5929
5968
  } = useLayout();
5930
5969
  // These should be replaced with props in breaking change.
5931
5970
  const isCompact = checkSpecialClasses('compact');
5932
5971
  const noDivider = checkSpecialClasses('no-divider');
5933
5972
  const contentReference = React.useRef(null);
5934
- return isMobile ? /*#__PURE__*/jsxRuntime.jsx(Drawer$1, {
5973
+ return isMobile || isTablet ? /*#__PURE__*/jsxRuntime.jsx(Drawer$1, {
5935
5974
  open: open,
5936
5975
  headerTitle: title,
5937
5976
  footerContent: footer,
@@ -6354,16 +6393,6 @@ const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
6354
6393
  });
6355
6394
  });
6356
6395
 
6357
- function useMedia(query) {
6358
- return shim.useSyncExternalStore(onStoreChange => {
6359
- const mediaQueryList = window.matchMedia(query);
6360
- mediaQueryList.addEventListener('change', onStoreChange);
6361
- return () => {
6362
- mediaQueryList.removeEventListener('change', onStoreChange);
6363
- };
6364
- }, () => typeof window !== 'undefined' ? window.matchMedia(query).matches : undefined, () => undefined);
6365
- }
6366
-
6367
6396
  function useScreenSize(size) {
6368
6397
  return useMedia(`(min-width: ${size}px)`);
6369
6398
  }
@@ -6388,6 +6417,12 @@ function wrapInFragment(value) {
6388
6417
  });
6389
6418
  }
6390
6419
 
6420
+ var messages$4 = reactIntl.defineMessages({
6421
+ noResultsFound: {
6422
+ id: "neptune.SelectInput.noResultsFound"
6423
+ }
6424
+ });
6425
+
6391
6426
  function PreventScroll() {
6392
6427
  overlays.usePreventScroll();
6393
6428
  return null;
@@ -6433,29 +6468,29 @@ function BottomSheet({
6433
6468
  theme: theme,
6434
6469
  screenMode: screenMode,
6435
6470
  isNotRootProvider: true,
6436
- children: /*#__PURE__*/jsxRuntime.jsxs(react$1.Transition, {
6471
+ children: /*#__PURE__*/jsxRuntime.jsx(react$1.Transition, {
6437
6472
  show: open,
6438
6473
  className: "np-bottom-sheet-v2-container",
6439
6474
  beforeEnter: () => {
6440
6475
  setFloatingKey(prev => prev + 1);
6441
6476
  },
6442
- children: [/*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
6443
- enter: "np-bottom-sheet-v2-backdrop-container--enter",
6444
- enterFrom: "np-bottom-sheet-v2-backdrop-container--enter-from",
6445
- leave: "np-bottom-sheet-v2-backdrop-container--leave",
6446
- leaveTo: "np-bottom-sheet-v2-backdrop-container--leave-to",
6447
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
6448
- className: "np-bottom-sheet-v2-backdrop"
6449
- })
6450
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
6451
- className: "np-bottom-sheet-v2",
6452
- children: /*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
6453
- className: "np-bottom-sheet-v2-content",
6454
- enter: "np-bottom-sheet-v2-content--enter",
6455
- enterFrom: "np-bottom-sheet-v2-content--enter-from",
6456
- leave: "np-bottom-sheet-v2-content--leave",
6457
- leaveTo: "np-bottom-sheet-v2-content--leave-to",
6458
- children: /*#__PURE__*/jsxRuntime.jsx(FocusBoundary, {
6477
+ children: /*#__PURE__*/jsxRuntime.jsxs(FocusBoundary, {
6478
+ children: [/*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
6479
+ enter: "np-bottom-sheet-v2-backdrop-container--enter",
6480
+ enterFrom: "np-bottom-sheet-v2-backdrop-container--enter-from",
6481
+ leave: "np-bottom-sheet-v2-backdrop-container--leave",
6482
+ leaveTo: "np-bottom-sheet-v2-backdrop-container--leave-to",
6483
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
6484
+ className: "np-bottom-sheet-v2-backdrop"
6485
+ })
6486
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
6487
+ className: "np-bottom-sheet-v2",
6488
+ children: /*#__PURE__*/jsxRuntime.jsx(react$1.Transition.Child, {
6489
+ className: "np-bottom-sheet-v2-content",
6490
+ enter: "np-bottom-sheet-v2-content--enter",
6491
+ enterFrom: "np-bottom-sheet-v2-content--enter-from",
6492
+ leave: "np-bottom-sheet-v2-content--leave",
6493
+ leaveTo: "np-bottom-sheet-v2-content--leave-to",
6459
6494
  children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
6460
6495
  context: context,
6461
6496
  initialFocus: initialFocusRef,
@@ -6489,8 +6524,8 @@ function BottomSheet({
6489
6524
  }, floatingKey)
6490
6525
  })
6491
6526
  })
6492
- })
6493
- })]
6527
+ })]
6528
+ })
6494
6529
  })
6495
6530
  })
6496
6531
  })]
@@ -6631,18 +6666,24 @@ function inferSearchableStrings(value) {
6631
6666
  }
6632
6667
  return [];
6633
6668
  }
6634
- const SelectInputHasValueContext = /*#__PURE__*/React.createContext(false);
6669
+ const SelectInputItemCheckPaddingContext = /*#__PURE__*/React.createContext(false);
6670
+ function useSelectInputItemCheckPadding() {
6671
+ const checkPadding = React.useContext(SelectInputItemCheckPaddingContext);
6672
+ // Avoid layout shifts during transitions via caching
6673
+ const [initialCheckPadding] = React.useState(checkPadding);
6674
+ return initialCheckPadding;
6675
+ }
6635
6676
  const SelectInputTriggerButtonPropsContext = /*#__PURE__*/React.createContext({});
6636
6677
  const SelectInputOptionContentWithinTriggerContext = /*#__PURE__*/React.createContext(false);
6637
6678
  function dedupeSelectInputOptionItem(item, existingValues) {
6638
- if (existingValues.has(item.value)) {
6639
- return {
6640
- ...item,
6641
- value: undefined
6642
- };
6679
+ if (!existingValues.has(item.value)) {
6680
+ existingValues.add(item.value);
6681
+ return item;
6643
6682
  }
6644
- existingValues.add(item.value);
6645
- return item;
6683
+ return {
6684
+ ...item,
6685
+ value: undefined
6686
+ };
6646
6687
  }
6647
6688
  function dedupeSelectInputItems(items) {
6648
6689
  const existingValues = new Set();
@@ -6663,6 +6704,24 @@ function dedupeSelectInputItems(items) {
6663
6704
  return item;
6664
6705
  });
6665
6706
  }
6707
+ function filterSelectInputOptionItem(item, needle) {
6708
+ return inferSearchableStrings(item.filterMatchers ?? item.value).some(haystack => haystack.includes(needle));
6709
+ }
6710
+ function filterSelectInputItems(items, needle) {
6711
+ return items.filter(item => {
6712
+ switch (item.type) {
6713
+ case 'option':
6714
+ {
6715
+ return filterSelectInputOptionItem(item, needle);
6716
+ }
6717
+ case 'group':
6718
+ {
6719
+ return item.options.some(option => filterSelectInputOptionItem(option, needle));
6720
+ }
6721
+ }
6722
+ return false;
6723
+ });
6724
+ }
6666
6725
  const defaultRenderTrigger = ({
6667
6726
  content,
6668
6727
  placeholderShown,
@@ -6710,7 +6769,7 @@ function SelectInputClearButton({
6710
6769
  const intl = reactIntl.useIntl();
6711
6770
  return /*#__PURE__*/jsxRuntime.jsx("button", {
6712
6771
  type: "button",
6713
- "aria-label": intl.formatMessage(messages$6.ariaLabel),
6772
+ "aria-label": intl.formatMessage(dateTriggerMessages.ariaLabel),
6714
6773
  className: classNames__default.default(className, 'np-select-input-addon np-select-input-addon--interactive'),
6715
6774
  onClick: onClick,
6716
6775
  children: /*#__PURE__*/jsxRuntime.jsx(icons.Cross, {
@@ -6758,9 +6817,10 @@ function SelectInput({
6758
6817
  children: ({
6759
6818
  disabled: uiDisabled,
6760
6819
  value
6761
- }) => /*#__PURE__*/jsxRuntime.jsx(SelectInputHasValueContext.Provider, {
6762
- value: value != null,
6820
+ }) => /*#__PURE__*/jsxRuntime.jsx(SelectInputItemCheckPaddingContext.Provider, {
6821
+ value: Boolean(filterable) || value != null,
6763
6822
  children: /*#__PURE__*/jsxRuntime.jsx(OptionsOverlay, {
6823
+ placement: "bottom-start",
6764
6824
  open: open,
6765
6825
  renderTrigger: ({
6766
6826
  ref,
@@ -6850,9 +6910,14 @@ const SelectInputOptionsContainer = /*#__PURE__*/React.forwardRef(function Selec
6850
6910
  ref: ref,
6851
6911
  onKeyDown: event => {
6852
6912
  // Prevent absorbing dismissal requests too early
6853
- if (event.key !== 'Escape') {
6854
- onKeyDown?.(event);
6913
+ if (event.key === 'Escape') {
6914
+ return;
6915
+ }
6916
+ // Prevent confirmation close without an active item
6917
+ if (event.key === 'Enter' && ariaActiveDescendant == null) {
6918
+ return;
6855
6919
  }
6920
+ onKeyDown?.(event);
6856
6921
  },
6857
6922
  ...restProps
6858
6923
  })
@@ -6861,11 +6926,13 @@ const SelectInputOptionsContainer = /*#__PURE__*/React.forwardRef(function Selec
6861
6926
  function SelectInputOptions({
6862
6927
  items,
6863
6928
  renderValue = wrapInFragment,
6864
- filterable,
6929
+ filterable = false,
6865
6930
  filterPlaceholder,
6866
6931
  searchInputRef,
6867
6932
  listboxRef
6868
6933
  }) {
6934
+ const intl = reactIntl.useIntl();
6935
+ const controllerRef = filterable ? searchInputRef : listboxRef;
6869
6936
  const [query, setQuery] = React.useState('');
6870
6937
  const needle = React.useMemo(() => {
6871
6938
  if (filterable) {
@@ -6873,14 +6940,16 @@ function SelectInputOptions({
6873
6940
  }
6874
6941
  return undefined;
6875
6942
  }, [filterable, query]);
6943
+ const empty = needle != null && filterSelectInputItems(items, needle).length === 0;
6876
6944
  const listboxContainerRef = React.useRef(null);
6877
6945
  React.useEffect(() => {
6878
6946
  if (listboxContainerRef.current != null) {
6879
6947
  listboxContainerRef.current.style.setProperty('--initial-height', `${listboxContainerRef.current.offsetHeight}px`);
6880
6948
  }
6881
6949
  }, []);
6950
+ const showStatus = empty;
6951
+ const statusId = reactId.useId();
6882
6952
  const listboxId = reactId.useId();
6883
- const controllerRef = filterable ? searchInputRef : listboxRef;
6884
6953
  return /*#__PURE__*/jsxRuntime.jsxs(react$1.Listbox.Options, {
6885
6954
  as: SelectInputOptionsContainer,
6886
6955
  static: true,
@@ -6902,6 +6971,7 @@ function SelectInputOptions({
6902
6971
  placeholder: filterPlaceholder,
6903
6972
  value: query,
6904
6973
  "aria-controls": listboxId,
6974
+ "aria-describedby": showStatus ? statusId : undefined,
6905
6975
  onKeyDown: event => {
6906
6976
  // Prevent interfering with the matcher of Headless UI
6907
6977
  // https://mathiasbynens.be/notes/javascript-unicode#regex
@@ -6913,24 +6983,31 @@ function SelectInputOptions({
6913
6983
  setQuery(event.currentTarget.value);
6914
6984
  }
6915
6985
  })
6916
- }) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
6986
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs("div", {
6917
6987
  ref: listboxContainerRef,
6918
6988
  className: classNames__default.default('np-select-input-listbox-container', items.some(item => item.type === 'group') && 'np-select-input-listbox-container--has-group'),
6919
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
6989
+ children: [empty ? /*#__PURE__*/jsxRuntime.jsxs("div", {
6990
+ id: statusId,
6991
+ className: "np-select-input-options-status",
6992
+ children: [/*#__PURE__*/jsxRuntime.jsx(icons.CrossCircle, {
6993
+ size: 16,
6994
+ className: "np-select-input-options-status-icon"
6995
+ }), intl.formatMessage(messages$4.noResultsFound)]
6996
+ }) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
6920
6997
  ref: listboxRef,
6921
6998
  id: listboxId,
6922
6999
  role: "listbox",
6923
7000
  "aria-orientation": "vertical",
6924
7001
  tabIndex: 0,
6925
7002
  className: "np-select-input-listbox",
6926
- children: (needle == null ? items : dedupeSelectInputItems(items)).map((item, index) => /*#__PURE__*/jsxRuntime.jsx(SelectInputItemView
7003
+ children: (needle != null ? dedupeSelectInputItems(items) : items).map((item, index) => /*#__PURE__*/jsxRuntime.jsx(SelectInputItemView
6927
7004
  // eslint-disable-next-line react/no-array-index-key
6928
7005
  , {
6929
7006
  item: item,
6930
7007
  renderValue: renderValue,
6931
7008
  needle: needle
6932
7009
  }, index))
6933
- })
7010
+ })]
6934
7011
  })]
6935
7012
  });
6936
7013
  }
@@ -6942,7 +7019,7 @@ function SelectInputItemView({
6942
7019
  switch (item.type) {
6943
7020
  case 'option':
6944
7021
  {
6945
- if (item.value != null && (!needle || inferSearchableStrings(item.filterMatchers ?? item.value).some(haystack => haystack.includes(needle)))) {
7022
+ if (item.value != null && (needle == null || filterSelectInputOptionItem(item, needle))) {
6946
7023
  return /*#__PURE__*/jsxRuntime.jsx(SelectInputOption, {
6947
7024
  value: item.value,
6948
7025
  disabled: item.disabled,
@@ -6977,6 +7054,7 @@ function SelectInputGroupItemView({
6977
7054
  needle
6978
7055
  }) {
6979
7056
  const headerId = reactId.useId();
7057
+ const checkPadding = useSelectInputItemCheckPadding();
6980
7058
  return (
6981
7059
  /*#__PURE__*/
6982
7060
  // An empty container may be rendered when no options match `needle`
@@ -6985,11 +7063,13 @@ function SelectInputGroupItemView({
6985
7063
  role: "group",
6986
7064
  "aria-labelledby": headerId,
6987
7065
  className: classNames__default.default(needle === null && 'np-select-input-group-item--without-needle'),
6988
- children: [needle == null ? /*#__PURE__*/jsxRuntime.jsx("header", {
7066
+ children: [needle == null ? /*#__PURE__*/jsxRuntime.jsxs("header", {
6989
7067
  id: headerId,
6990
7068
  role: "presentation",
6991
7069
  className: "np-select-input-group-item-header np-text-title-group",
6992
- children: item.label
7070
+ children: [checkPadding ? /*#__PURE__*/jsxRuntime.jsx("span", {
7071
+ className: "np-select-input-option-check-placeholder"
7072
+ }) : null, item.label]
6993
7073
  }) : null, item.options.map((option, index) => /*#__PURE__*/jsxRuntime.jsx(SelectInputItemView
6994
7074
  // eslint-disable-next-line react/no-array-index-key
6995
7075
  , {
@@ -7005,24 +7085,24 @@ function SelectInputOption({
7005
7085
  disabled,
7006
7086
  children
7007
7087
  }) {
7088
+ const checkPadding = useSelectInputItemCheckPadding();
7008
7089
  return /*#__PURE__*/jsxRuntime.jsx(react$1.Listbox.Option, {
7009
7090
  as: "div",
7010
7091
  value: value,
7011
7092
  disabled: disabled,
7012
7093
  className: ({
7013
7094
  active,
7014
- selected,
7015
7095
  disabled: uiDisabled
7016
- }) => classNames__default.default('np-select-input-option-container np-text-body-large', active && 'np-select-input-option-container--active', selected && 'np-select-input-option-container--selected', uiDisabled && 'np-select-input-option-container--disabled'),
7096
+ }) => classNames__default.default('np-select-input-option-container np-text-body-large', active && 'np-select-input-option-container--active', uiDisabled && 'np-select-input-option-container--disabled'),
7017
7097
  children: ({
7018
7098
  selected
7019
7099
  }) => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7020
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
7100
+ children: [checkPadding ? /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
7101
+ size: 16,
7102
+ className: classNames__default.default('np-select-input-option-check', !selected && 'np-select-input-option-check--not-selected')
7103
+ }) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
7021
7104
  className: "np-select-input-option",
7022
7105
  children: children
7023
- }), selected && /*#__PURE__*/jsxRuntime.jsx(icons.Check, {
7024
- size: 24,
7025
- className: classNames__default.default('np-select-input-option-check')
7026
7106
  })]
7027
7107
  })
7028
7108
  });
@@ -10714,6 +10794,7 @@ var en = {
10714
10794
  "neptune.Link.opensInNewTab": "(opens in new tab)",
10715
10795
  "neptune.MoneyInput.Select.placeholder": "Select an option...",
10716
10796
  "neptune.Select.searchPlaceholder": "Search...",
10797
+ "neptune.SelectInput.noResultsFound": "No results found",
10717
10798
  "neptune.Summary.statusDone": "Item done",
10718
10799
  "neptune.Summary.statusNotDone": "Item to do",
10719
10800
  "neptune.Summary.statusPending": "Item pending",
@@ -10941,7 +11022,7 @@ class RadioGroup extends React.Component {
10941
11022
  const {
10942
11023
  selectedValue
10943
11024
  } = this.state;
10944
- return radios && radios.length > 1 ? /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
11025
+ return radios && radios.length > 0 ? /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
10945
11026
  children: radios.map(({
10946
11027
  id,
10947
11028
  avatar,
@@ -14482,17 +14563,78 @@ function useSnackbar() {
14482
14563
  return createSnackbar;
14483
14564
  }
14484
14565
 
14566
+ var cs = {
14567
+ "neptune.Button.loadingAriaLabel": "načítání",
14568
+ "neptune.Chips.ariaLabel": "Vyčistit {choice}",
14569
+ "neptune.ClearButton.ariaLabel": "Vyčistit",
14570
+ "neptune.CloseButton.ariaLabel": "Zavřít",
14571
+ "neptune.DateInput.day.label": "Den",
14572
+ "neptune.DateInput.month.label": "Měsíc",
14573
+ "neptune.DateInput.year.label": "Rok",
14574
+ "neptune.DateLookup.day": "den",
14575
+ "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
14576
+ "neptune.DateLookup.month": "měsíc",
14577
+ "neptune.DateLookup.next": "další",
14578
+ "neptune.DateLookup.previous": "předchozí",
14579
+ "neptune.DateLookup.selected": "vybráno",
14580
+ "neptune.DateLookup.twentyYears": "20 let",
14581
+ "neptune.DateLookup.year": "rok",
14582
+ "neptune.FlowNavigation.back": "back to previous step",
14583
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
14584
+ "neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
14585
+ "neptune.Select.searchPlaceholder": "Hledat...",
14586
+ "neptune.Summary.statusDone": "Položka dokončena",
14587
+ "neptune.Summary.statusNotDone": "Položka k dokončení",
14588
+ "neptune.Summary.statusPending": "Čekající položka",
14589
+ "neptune.Upload.csButtonText": "Nahrát další soubor?",
14590
+ "neptune.Upload.csFailureText": "Nahrání se nezdařilo. Zkuste to prosím později",
14591
+ "neptune.Upload.csSuccessText": "Úspěšně nahráno!",
14592
+ "neptune.Upload.csTooLargeMessage": "Soubor musí být menší než 5MB",
14593
+ "neptune.Upload.csWrongTypeMessage": "Tento formát souboru není podporován. Zkuste to znovu s jiným souborem",
14594
+ "neptune.Upload.psButtonText": "Zrušit",
14595
+ "neptune.Upload.psProcessingText": "Načítání...",
14596
+ "neptune.Upload.usButtonText": "Nebo vyberte soubor",
14597
+ "neptune.Upload.usDropMessage": "Pusťte sem soubor pro jeho nahrání",
14598
+ "neptune.Upload.usPlaceholder": "Přetáhněte a pusťte sem soubor menší než 5MB",
14599
+ "neptune.UploadButton.allFileTypes": "Všechny typy souborů",
14600
+ "neptune.UploadButton.dropFiles": "Pusťte sem soubor pro jeho nahrání",
14601
+ "neptune.UploadButton.instructions": "{fileTypes}, menší než {size}MB",
14602
+ "neptune.UploadButton.uploadFile": "Nahrát soubor",
14603
+ "neptune.UploadButton.uploadFiles": "Nahrát soubory",
14604
+ "neptune.UploadInput.deleteModalBody": "Odstraněním tohoto souboru jej smažete z našeho systému.",
14605
+ "neptune.UploadInput.deleteModalCancelButtonText": "Zrušit",
14606
+ "neptune.UploadInput.deleteModalConfirmButtonText": "Odstranit",
14607
+ "neptune.UploadInput.deleteModalTitle": "Jistě chcete odstranit tento soubor?",
14608
+ "neptune.UploadInput.fileIsTooLarge": "Soubor je příliš velký",
14609
+ "neptune.UploadInput.fileTypeNotSupported": "Typ souboru není podporován",
14610
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "Je nám líto, ale toto nahrání se nezdařilo, protože můžeme přijmout pouze {maxFilesAllowed} souborů najednou.",
14611
+ "neptune.UploadItem.deleting": "Mažeme...",
14612
+ "neptune.UploadItem.removeFile": "Odstranit soubor {filename}",
14613
+ "neptune.UploadItem.uploaded": "Nahráno",
14614
+ "neptune.UploadItem.uploadedFile": "Nahraný soubor",
14615
+ "neptune.UploadItem.uploading": "Nahrávání...",
14616
+ "neptune.UploadItem.uploadingFailed": "Nahrání se nezdařilo"
14617
+ };
14618
+
14485
14619
  var de = {
14620
+ "neptune.Button.loadingAriaLabel": "wird geladen",
14486
14621
  "neptune.Chips.ariaLabel": "{choice} zurücksetzen",
14487
14622
  "neptune.ClearButton.ariaLabel": "Zurücksetzen",
14488
14623
  "neptune.CloseButton.ariaLabel": "Schließen",
14489
14624
  "neptune.DateInput.day.label": "Tag",
14490
14625
  "neptune.DateInput.month.label": "Monat",
14491
14626
  "neptune.DateInput.year.label": "Jahr",
14627
+ "neptune.DateLookup.day": "Tag",
14628
+ "neptune.DateLookup.goTo20YearView": "Zur 20-Jahres-Ansicht",
14629
+ "neptune.DateLookup.month": "Monat",
14630
+ "neptune.DateLookup.next": "weiter",
14631
+ "neptune.DateLookup.previous": "zurück",
14632
+ "neptune.DateLookup.selected": "ausgewählt",
14633
+ "neptune.DateLookup.twentyYears": "20 Jahre",
14634
+ "neptune.DateLookup.year": "Jahr",
14635
+ "neptune.FlowNavigation.back": "zurück zum vorherigen Schritt",
14636
+ "neptune.Link.opensInNewTab": "(wird in einem neuen Tab geöffnet)",
14492
14637
  "neptune.MoneyInput.Select.placeholder": "Wähle eine der Möglichkeiten aus...",
14493
- "neptune.Pagination.ariaLabel": "Seitennummer-Navigation",
14494
- "neptune.PaginationLink.ariaLabel.active": "Weiter zur Seite {pageNumber}",
14495
- "neptune.PaginationLink.ariaLabel.inactive": "Aktuelle Seite – Seite {pageNumber}",
14496
14638
  "neptune.Select.searchPlaceholder": "Wird gesucht...",
14497
14639
  "neptune.Summary.statusDone": "Schritt erledigt",
14498
14640
  "neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
@@ -14528,16 +14670,24 @@ var de = {
14528
14670
  };
14529
14671
 
14530
14672
  var es = {
14673
+ "neptune.Button.loadingAriaLabel": "cargando",
14531
14674
  "neptune.Chips.ariaLabel": "Descartar {choice}",
14532
14675
  "neptune.ClearButton.ariaLabel": "Borrar",
14533
14676
  "neptune.CloseButton.ariaLabel": "Cerrar",
14534
14677
  "neptune.DateInput.day.label": "Día",
14535
14678
  "neptune.DateInput.month.label": "Mes",
14536
14679
  "neptune.DateInput.year.label": "Año",
14680
+ "neptune.DateLookup.day": "día",
14681
+ "neptune.DateLookup.goTo20YearView": "Ir a vista de 20 años",
14682
+ "neptune.DateLookup.month": "mes",
14683
+ "neptune.DateLookup.next": "siguiente",
14684
+ "neptune.DateLookup.previous": "anterior",
14685
+ "neptune.DateLookup.selected": "seleccionado",
14686
+ "neptune.DateLookup.twentyYears": "20 años",
14687
+ "neptune.DateLookup.year": "año",
14688
+ "neptune.FlowNavigation.back": "volver al paso anterior",
14689
+ "neptune.Link.opensInNewTab": "(se abre en una pestaña nueva)",
14537
14690
  "neptune.MoneyInput.Select.placeholder": "Selecciona una opción...",
14538
- "neptune.Pagination.ariaLabel": "Navegación por las páginas",
14539
- "neptune.PaginationLink.ariaLabel.active": "Ve a la página {pageNumber}",
14540
- "neptune.PaginationLink.ariaLabel.inactive": "Página actual, página {pageNumber}",
14541
14691
  "neptune.Select.searchPlaceholder": "Buscar...",
14542
14692
  "neptune.Summary.statusDone": "Apartado listo",
14543
14693
  "neptune.Summary.statusNotDone": "Apartado a completar",
@@ -14573,16 +14723,24 @@ var es = {
14573
14723
  };
14574
14724
 
14575
14725
  var fr = {
14726
+ "neptune.Button.loadingAriaLabel": "chargement",
14576
14727
  "neptune.Chips.ariaLabel": "Effacer {choice}",
14577
14728
  "neptune.ClearButton.ariaLabel": "Effacer",
14578
14729
  "neptune.CloseButton.ariaLabel": "Fermer",
14579
14730
  "neptune.DateInput.day.label": "Jour",
14580
14731
  "neptune.DateInput.month.label": "Mois",
14581
14732
  "neptune.DateInput.year.label": "Année",
14733
+ "neptune.DateLookup.day": "jour",
14734
+ "neptune.DateLookup.goTo20YearView": "Accéder à la vue sur 20 ans",
14735
+ "neptune.DateLookup.month": "mois",
14736
+ "neptune.DateLookup.next": "suivant",
14737
+ "neptune.DateLookup.previous": "précédent",
14738
+ "neptune.DateLookup.selected": "sélectionnée",
14739
+ "neptune.DateLookup.twentyYears": "20 ans",
14740
+ "neptune.DateLookup.year": "année",
14741
+ "neptune.FlowNavigation.back": "revenir à l'étape précédente",
14742
+ "neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
14582
14743
  "neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
14583
- "neptune.Pagination.ariaLabel": "Navigation par pagination",
14584
- "neptune.PaginationLink.ariaLabel.active": "Aller à la page {pageNumber}",
14585
- "neptune.PaginationLink.ariaLabel.inactive": "Page actuelle, page {pageNumber}",
14586
14744
  "neptune.Select.searchPlaceholder": "Recherche...",
14587
14745
  "neptune.Summary.statusDone": "Validé",
14588
14746
  "neptune.Summary.statusNotDone": "À compléter",
@@ -14618,16 +14776,24 @@ var fr = {
14618
14776
  };
14619
14777
 
14620
14778
  var hu = {
14779
+ "neptune.Button.loadingAriaLabel": "betöltés",
14621
14780
  "neptune.Chips.ariaLabel": "{choice} törlése",
14622
14781
  "neptune.ClearButton.ariaLabel": "Törlés",
14623
14782
  "neptune.CloseButton.ariaLabel": "Bezárás",
14624
14783
  "neptune.DateInput.day.label": "Nap",
14625
14784
  "neptune.DateInput.month.label": "Hónap",
14626
14785
  "neptune.DateInput.year.label": "Év",
14786
+ "neptune.DateLookup.day": "nap",
14787
+ "neptune.DateLookup.goTo20YearView": "Ugrás a 20 éves nézetre",
14788
+ "neptune.DateLookup.month": "hónap",
14789
+ "neptune.DateLookup.next": "következő",
14790
+ "neptune.DateLookup.previous": "előző",
14791
+ "neptune.DateLookup.selected": "kiválasztva",
14792
+ "neptune.DateLookup.twentyYears": "20 év",
14793
+ "neptune.DateLookup.year": "év",
14794
+ "neptune.FlowNavigation.back": "vissza az előző lépéshez",
14795
+ "neptune.Link.opensInNewTab": "(új lapon nyílik meg)",
14627
14796
  "neptune.MoneyInput.Select.placeholder": "Válassz ki egy lehetőséget...",
14628
- "neptune.Pagination.ariaLabel": "Lapszámos navigáció",
14629
- "neptune.PaginationLink.ariaLabel.active": "Ugrás a(z) {pageNumber}. oldalra",
14630
- "neptune.PaginationLink.ariaLabel.inactive": "Jelenlegi oldal, {pageNumber}. oldal",
14631
14797
  "neptune.Select.searchPlaceholder": "Keresés...",
14632
14798
  "neptune.Summary.statusDone": "Kész",
14633
14799
  "neptune.Summary.statusNotDone": "Hátravan",
@@ -14663,16 +14829,24 @@ var hu = {
14663
14829
  };
14664
14830
 
14665
14831
  var id = {
14832
+ "neptune.Button.loadingAriaLabel": "memuat",
14666
14833
  "neptune.Chips.ariaLabel": "Hapus {choice}",
14667
14834
  "neptune.ClearButton.ariaLabel": "Hapus",
14668
14835
  "neptune.CloseButton.ariaLabel": "Tutup",
14669
14836
  "neptune.DateInput.day.label": "Hari",
14670
14837
  "neptune.DateInput.month.label": "Bulan",
14671
14838
  "neptune.DateInput.year.label": "Tahun",
14839
+ "neptune.DateLookup.day": "hari",
14840
+ "neptune.DateLookup.goTo20YearView": "Lihat tampilan 20 tahun",
14841
+ "neptune.DateLookup.month": "bulan",
14842
+ "neptune.DateLookup.next": "berikutnya",
14843
+ "neptune.DateLookup.previous": "sebelumnya",
14844
+ "neptune.DateLookup.selected": "terpilih",
14845
+ "neptune.DateLookup.twentyYears": "20 tahun",
14846
+ "neptune.DateLookup.year": "tahun",
14847
+ "neptune.FlowNavigation.back": "kembali ke langkah sebelumnya",
14848
+ "neptune.Link.opensInNewTab": "(terbuka di tab baru)",
14672
14849
  "neptune.MoneyInput.Select.placeholder": "Pilih opsi...",
14673
- "neptune.Pagination.ariaLabel": "Halaman navigasi",
14674
- "neptune.PaginationLink.ariaLabel.active": "Lanjut ke halaman {pageNumber}",
14675
- "neptune.PaginationLink.ariaLabel.inactive": "Halaman saat ini, halaman {pageNumber}",
14676
14850
  "neptune.Select.searchPlaceholder": "Cari...",
14677
14851
  "neptune.Summary.statusDone": "Item selesai",
14678
14852
  "neptune.Summary.statusNotDone": "Item yang harus dilakukan",
@@ -14708,16 +14882,24 @@ var id = {
14708
14882
  };
14709
14883
 
14710
14884
  var it = {
14885
+ "neptune.Button.loadingAriaLabel": "caricamento",
14711
14886
  "neptune.Chips.ariaLabel": "Rimuovi {choice}",
14712
14887
  "neptune.ClearButton.ariaLabel": "Elimina",
14713
14888
  "neptune.CloseButton.ariaLabel": "Chiudi",
14714
14889
  "neptune.DateInput.day.label": "Giorno",
14715
14890
  "neptune.DateInput.month.label": "Mese",
14716
14891
  "neptune.DateInput.year.label": "Anno",
14892
+ "neptune.DateLookup.day": "giorno",
14893
+ "neptune.DateLookup.goTo20YearView": "Vai alla vista su 20 anni",
14894
+ "neptune.DateLookup.month": "mese",
14895
+ "neptune.DateLookup.next": "continua",
14896
+ "neptune.DateLookup.previous": "indietro",
14897
+ "neptune.DateLookup.selected": "selezionata",
14898
+ "neptune.DateLookup.twentyYears": "20 anni",
14899
+ "neptune.DateLookup.year": "anno",
14900
+ "neptune.FlowNavigation.back": "torna al passaggio precedente",
14901
+ "neptune.Link.opensInNewTab": "(si apre in una nuova scheda)",
14717
14902
  "neptune.MoneyInput.Select.placeholder": "Seleziona un'opzione...",
14718
- "neptune.Pagination.ariaLabel": "Navigazione",
14719
- "neptune.PaginationLink.ariaLabel.active": "Via a pagina {pageNumber}",
14720
- "neptune.PaginationLink.ariaLabel.inactive": "Pagina corrente, pagina {pageNumber}",
14721
14903
  "neptune.Select.searchPlaceholder": "Cerca...",
14722
14904
  "neptune.Summary.statusDone": "Completato",
14723
14905
  "neptune.Summary.statusNotDone": "Da completare",
@@ -14753,16 +14935,24 @@ var it = {
14753
14935
  };
14754
14936
 
14755
14937
  var ja = {
14938
+ "neptune.Button.loadingAriaLabel": "読み込み中…",
14756
14939
  "neptune.Chips.ariaLabel": "{choice} をクリア",
14757
14940
  "neptune.ClearButton.ariaLabel": "消去",
14758
14941
  "neptune.CloseButton.ariaLabel": "閉じる",
14759
14942
  "neptune.DateInput.day.label": "日",
14760
14943
  "neptune.DateInput.month.label": "月",
14761
14944
  "neptune.DateInput.year.label": "年",
14945
+ "neptune.DateLookup.day": "日",
14946
+ "neptune.DateLookup.goTo20YearView": "20年表示に移動する",
14947
+ "neptune.DateLookup.month": "月",
14948
+ "neptune.DateLookup.next": "次",
14949
+ "neptune.DateLookup.previous": "前",
14950
+ "neptune.DateLookup.selected": "選択済み",
14951
+ "neptune.DateLookup.twentyYears": "20年",
14952
+ "neptune.DateLookup.year": "年",
14953
+ "neptune.FlowNavigation.back": "前のステップに戻る",
14954
+ "neptune.Link.opensInNewTab": "(新しいタブで開きます)",
14762
14955
  "neptune.MoneyInput.Select.placeholder": "選択してください...",
14763
- "neptune.Pagination.ariaLabel": "ページネーションナビゲーション",
14764
- "neptune.PaginationLink.ariaLabel.active": "{pageNumber}のページへ移動します",
14765
- "neptune.PaginationLink.ariaLabel.inactive": "現在のページ、{pageNumber}ページ",
14766
14956
  "neptune.Select.searchPlaceholder": "検索... ",
14767
14957
  "neptune.Summary.statusDone": "完了",
14768
14958
  "neptune.Summary.statusNotDone": "未対応",
@@ -14798,16 +14988,24 @@ var ja = {
14798
14988
  };
14799
14989
 
14800
14990
  var pl = {
14991
+ "neptune.Button.loadingAriaLabel": "ładowanie",
14801
14992
  "neptune.Chips.ariaLabel": "Wyczyść {choice}",
14802
14993
  "neptune.ClearButton.ariaLabel": "Wyczyść",
14803
14994
  "neptune.CloseButton.ariaLabel": "Zamknij",
14804
14995
  "neptune.DateInput.day.label": "Dzień",
14805
14996
  "neptune.DateInput.month.label": "Miesiąc",
14806
14997
  "neptune.DateInput.year.label": "Rok",
14998
+ "neptune.DateLookup.day": "dzień",
14999
+ "neptune.DateLookup.goTo20YearView": "Przejdź do widoku 20-letniego",
15000
+ "neptune.DateLookup.month": "miesiąc",
15001
+ "neptune.DateLookup.next": "następny",
15002
+ "neptune.DateLookup.previous": "poprzedni",
15003
+ "neptune.DateLookup.selected": "wybrano",
15004
+ "neptune.DateLookup.twentyYears": "20 lat",
15005
+ "neptune.DateLookup.year": "rok",
15006
+ "neptune.FlowNavigation.back": "wróć do poprzedniego kroku",
15007
+ "neptune.Link.opensInNewTab": "(otworzy się w nowej zakładce)",
14807
15008
  "neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
14808
- "neptune.Pagination.ariaLabel": "Nawigacja w paginacji",
14809
- "neptune.PaginationLink.ariaLabel.active": "Przejdź do strony {pageNumber}",
14810
- "neptune.PaginationLink.ariaLabel.inactive": "Obecna strona, strona {pageNumber}",
14811
15009
  "neptune.Select.searchPlaceholder": "Wyszukaj...",
14812
15010
  "neptune.Summary.statusDone": "Czynność wykonana",
14813
15011
  "neptune.Summary.statusNotDone": "Czynność do wykonania",
@@ -14843,16 +15041,24 @@ var pl = {
14843
15041
  };
14844
15042
 
14845
15043
  var pt = {
15044
+ "neptune.Button.loadingAriaLabel": "carregando",
14846
15045
  "neptune.Chips.ariaLabel": "Remover {choice}",
14847
15046
  "neptune.ClearButton.ariaLabel": "Remover",
14848
15047
  "neptune.CloseButton.ariaLabel": "Fechar",
14849
15048
  "neptune.DateInput.day.label": "Dia",
14850
15049
  "neptune.DateInput.month.label": "Mês",
14851
15050
  "neptune.DateInput.year.label": "Ano",
15051
+ "neptune.DateLookup.day": "dia",
15052
+ "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
15053
+ "neptune.DateLookup.month": "mês",
15054
+ "neptune.DateLookup.next": "próximo",
15055
+ "neptune.DateLookup.previous": "anterior",
15056
+ "neptune.DateLookup.selected": "selecionada",
15057
+ "neptune.DateLookup.twentyYears": "20 anos",
15058
+ "neptune.DateLookup.year": "ano",
15059
+ "neptune.FlowNavigation.back": "back to previous step",
15060
+ "neptune.Link.opensInNewTab": "(abrir a página em uma nova aba)",
14852
15061
  "neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
14853
- "neptune.Pagination.ariaLabel": "Navegação pelas páginas",
14854
- "neptune.PaginationLink.ariaLabel.active": "Ir para a página {pageNumber}",
14855
- "neptune.PaginationLink.ariaLabel.inactive": "Página atual, página {pageNumber}",
14856
15062
  "neptune.Select.searchPlaceholder": "Buscar...",
14857
15063
  "neptune.Summary.statusDone": "Pronto",
14858
15064
  "neptune.Summary.statusNotDone": "Não iniciado",
@@ -14888,16 +15094,24 @@ var pt = {
14888
15094
  };
14889
15095
 
14890
15096
  var ro = {
15097
+ "neptune.Button.loadingAriaLabel": "se încarcă",
14891
15098
  "neptune.Chips.ariaLabel": "Șterge {choice}",
14892
15099
  "neptune.ClearButton.ariaLabel": "Elimină",
14893
15100
  "neptune.CloseButton.ariaLabel": "Închide",
14894
15101
  "neptune.DateInput.day.label": "Zi",
14895
15102
  "neptune.DateInput.month.label": "Lună",
14896
15103
  "neptune.DateInput.year.label": "An",
15104
+ "neptune.DateLookup.day": "zi",
15105
+ "neptune.DateLookup.goTo20YearView": "Accesează vizualizarea pe 20 de ani",
15106
+ "neptune.DateLookup.month": "luna",
15107
+ "neptune.DateLookup.next": "înainte",
15108
+ "neptune.DateLookup.previous": "precedenta",
15109
+ "neptune.DateLookup.selected": "selectată",
15110
+ "neptune.DateLookup.twentyYears": "20 de ani",
15111
+ "neptune.DateLookup.year": "anul",
15112
+ "neptune.FlowNavigation.back": "înapoi la pasul anterior",
15113
+ "neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
14897
15114
  "neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
14898
- "neptune.Pagination.ariaLabel": "Navigare prin pagină",
14899
- "neptune.PaginationLink.ariaLabel.active": "Du-te la pagina {pageNumber}",
14900
- "neptune.PaginationLink.ariaLabel.inactive": "Pagina curentă, pagina {pageNumber}",
14901
15115
  "neptune.Select.searchPlaceholder": "Caută...",
14902
15116
  "neptune.Summary.statusDone": "Finalizat",
14903
15117
  "neptune.Summary.statusNotDone": "De făcut",
@@ -14933,16 +15147,24 @@ var ro = {
14933
15147
  };
14934
15148
 
14935
15149
  var ru = {
15150
+ "neptune.Button.loadingAriaLabel": "загрузка",
14936
15151
  "neptune.Chips.ariaLabel": "Очистить {choice}",
14937
15152
  "neptune.ClearButton.ariaLabel": "Очистить",
14938
15153
  "neptune.CloseButton.ariaLabel": "Закрыть",
14939
15154
  "neptune.DateInput.day.label": "День",
14940
15155
  "neptune.DateInput.month.label": "Месяц",
14941
15156
  "neptune.DateInput.year.label": "Год",
15157
+ "neptune.DateLookup.day": "день",
15158
+ "neptune.DateLookup.goTo20YearView": "Перейти к обзору 20 лет",
15159
+ "neptune.DateLookup.month": "месяц",
15160
+ "neptune.DateLookup.next": "далее",
15161
+ "neptune.DateLookup.previous": "предыдущий",
15162
+ "neptune.DateLookup.selected": "выбрано",
15163
+ "neptune.DateLookup.twentyYears": "20 лет",
15164
+ "neptune.DateLookup.year": "год",
15165
+ "neptune.FlowNavigation.back": "вернуться к предыдущему шагу",
15166
+ "neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
14942
15167
  "neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
14943
- "neptune.Pagination.ariaLabel": "Постраничная навигация",
14944
- "neptune.PaginationLink.ariaLabel.active": "Перейти на страницу {pageNumber}",
14945
- "neptune.PaginationLink.ariaLabel.inactive": "Текущая страница, страница {pageNumber}",
14946
15168
  "neptune.Select.searchPlaceholder": "Поиск...",
14947
15169
  "neptune.Summary.statusDone": "Этап завершен",
14948
15170
  "neptune.Summary.statusNotDone": "Этап к выполнению",
@@ -14978,16 +15200,24 @@ var ru = {
14978
15200
  };
14979
15201
 
14980
15202
  var th = {
15203
+ "neptune.Button.loadingAriaLabel": "กำลังโหลด",
14981
15204
  "neptune.Chips.ariaLabel": "เคลียร์ {choice}",
14982
15205
  "neptune.ClearButton.ariaLabel": "ชัดเจน",
14983
15206
  "neptune.CloseButton.ariaLabel": "ปิด",
14984
15207
  "neptune.DateInput.day.label": "วัน",
14985
15208
  "neptune.DateInput.month.label": "เดือน",
14986
15209
  "neptune.DateInput.year.label": "ปี",
15210
+ "neptune.DateLookup.day": "วัน",
15211
+ "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
15212
+ "neptune.DateLookup.month": "เดือน",
15213
+ "neptune.DateLookup.next": "ถัดไป",
15214
+ "neptune.DateLookup.previous": "ก่อนหน้า",
15215
+ "neptune.DateLookup.selected": "เลือกแล้ว",
15216
+ "neptune.DateLookup.twentyYears": "20 ปี",
15217
+ "neptune.DateLookup.year": "ปี",
15218
+ "neptune.FlowNavigation.back": "back to previous step",
15219
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
14987
15220
  "neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
14988
- "neptune.Pagination.ariaLabel": "การนำทางเลขหน้า",
14989
- "neptune.PaginationLink.ariaLabel.active": "ไปที่หน้า {pageNumber}",
14990
- "neptune.PaginationLink.ariaLabel.inactive": "หน้าปัจจุบัน หน้า {pageNumber}",
14991
15221
  "neptune.Select.searchPlaceholder": "ค้นหา...",
14992
15222
  "neptune.Summary.statusDone": "รายการที่ทำแล้ว",
14993
15223
  "neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
@@ -15023,16 +15253,24 @@ var th = {
15023
15253
  };
15024
15254
 
15025
15255
  var tr = {
15256
+ "neptune.Button.loadingAriaLabel": "yükleniyor",
15026
15257
  "neptune.Chips.ariaLabel": "{choice} temizle",
15027
15258
  "neptune.ClearButton.ariaLabel": "Sil",
15028
15259
  "neptune.CloseButton.ariaLabel": "Kapat",
15029
15260
  "neptune.DateInput.day.label": "Gün",
15030
15261
  "neptune.DateInput.month.label": "Ay",
15031
15262
  "neptune.DateInput.year.label": "Yıl",
15263
+ "neptune.DateLookup.day": "gün",
15264
+ "neptune.DateLookup.goTo20YearView": "20 yıl görünümüne git",
15265
+ "neptune.DateLookup.month": "ay",
15266
+ "neptune.DateLookup.next": "devam et",
15267
+ "neptune.DateLookup.previous": "önceki",
15268
+ "neptune.DateLookup.selected": "seçili",
15269
+ "neptune.DateLookup.twentyYears": "20 yıl",
15270
+ "neptune.DateLookup.year": "yıl",
15271
+ "neptune.FlowNavigation.back": "önceki adıma dön",
15272
+ "neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
15032
15273
  "neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
15033
- "neptune.Pagination.ariaLabel": "Sayfalandırma gezintisi",
15034
- "neptune.PaginationLink.ariaLabel.active": "{pageNumber} numaralı sayfaya git",
15035
- "neptune.PaginationLink.ariaLabel.inactive": "Mevcut sayfa, sayfa {pageNumber}",
15036
15274
  "neptune.Select.searchPlaceholder": "Ara...",
15037
15275
  "neptune.Summary.statusDone": "Tamamlanan aşama",
15038
15276
  "neptune.Summary.statusNotDone": "Yapılacak",
@@ -15068,16 +15306,24 @@ var tr = {
15068
15306
  };
15069
15307
 
15070
15308
  var uk = {
15309
+ "neptune.Button.loadingAriaLabel": "завантаження",
15071
15310
  "neptune.Chips.ariaLabel": "Очистити {choice}",
15072
15311
  "neptune.ClearButton.ariaLabel": "Очистити",
15073
15312
  "neptune.CloseButton.ariaLabel": "Закрити",
15074
15313
  "neptune.DateInput.day.label": "День",
15075
15314
  "neptune.DateInput.month.label": "Місяць",
15076
15315
  "neptune.DateInput.year.label": "Рік",
15316
+ "neptune.DateLookup.day": "дня",
15317
+ "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
15318
+ "neptune.DateLookup.month": "місяць",
15319
+ "neptune.DateLookup.next": "уперед",
15320
+ "neptune.DateLookup.previous": "назад",
15321
+ "neptune.DateLookup.selected": "вибрано",
15322
+ "neptune.DateLookup.twentyYears": "20 років",
15323
+ "neptune.DateLookup.year": "рік",
15324
+ "neptune.FlowNavigation.back": "back to previous step",
15325
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
15077
15326
  "neptune.MoneyInput.Select.placeholder": "Виберіть варіант…",
15078
- "neptune.Pagination.ariaLabel": "Перехід за сторінками",
15079
- "neptune.PaginationLink.ariaLabel.active": "Перейти на сторінку {pageNumber}",
15080
- "neptune.PaginationLink.ariaLabel.inactive": "Ця сторінка, сторінка {pageNumber}",
15081
15327
  "neptune.Select.searchPlaceholder": "Пошук…",
15082
15328
  "neptune.Summary.statusDone": "Виконано",
15083
15329
  "neptune.Summary.statusNotDone": "Не виконано",
@@ -15112,17 +15358,78 @@ var uk = {
15112
15358
  "neptune.UploadItem.uploadingFailed": "Не вдалося завантажити"
15113
15359
  };
15114
15360
 
15115
- var zh = {
15361
+ var zhCN = {
15362
+ "neptune.Button.loadingAriaLabel": "正在加载",
15363
+ "neptune.Chips.ariaLabel": "清除 {choice}",
15364
+ "neptune.ClearButton.ariaLabel": "清晰",
15365
+ "neptune.CloseButton.ariaLabel": "关闭",
15366
+ "neptune.DateInput.day.label": "日",
15367
+ "neptune.DateInput.month.label": "月",
15368
+ "neptune.DateInput.year.label": "年",
15369
+ "neptune.DateLookup.day": "日",
15370
+ "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
15371
+ "neptune.DateLookup.month": "月",
15372
+ "neptune.DateLookup.next": "下一页",
15373
+ "neptune.DateLookup.previous": "上一页",
15374
+ "neptune.DateLookup.selected": "已选",
15375
+ "neptune.DateLookup.twentyYears": "20年",
15376
+ "neptune.DateLookup.year": "年",
15377
+ "neptune.FlowNavigation.back": "back to previous step",
15378
+ "neptune.Link.opensInNewTab": "(opens in new tab)",
15379
+ "neptune.MoneyInput.Select.placeholder": "请选择...",
15380
+ "neptune.Select.searchPlaceholder": "搜索",
15381
+ "neptune.Summary.statusDone": "已完成",
15382
+ "neptune.Summary.statusNotDone": "未完成",
15383
+ "neptune.Summary.statusPending": "待处理",
15384
+ "neptune.Upload.csButtonText": "上传另一个文件?",
15385
+ "neptune.Upload.csFailureText": "上传失败。请重试",
15386
+ "neptune.Upload.csSuccessText": "上传完毕!",
15387
+ "neptune.Upload.csTooLargeMessage": "请提供小于 5MB 的文件",
15388
+ "neptune.Upload.csWrongTypeMessage": "不支持该文件类型,请试试其他文件",
15389
+ "neptune.Upload.psButtonText": "取消",
15390
+ "neptune.Upload.psProcessingText": "正在上传…",
15391
+ "neptune.Upload.usButtonText": "或选择文件",
15392
+ "neptune.Upload.usDropMessage": "拖放文件开始上传",
15393
+ "neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
15394
+ "neptune.UploadButton.allFileTypes": "所有文件类型",
15395
+ "neptune.UploadButton.dropFiles": "拖放文件开始上传",
15396
+ "neptune.UploadButton.instructions": "{fileTypes},小于 {size}MB",
15397
+ "neptune.UploadButton.uploadFile": "上传文件",
15398
+ "neptune.UploadButton.uploadFiles": "上传文件",
15399
+ "neptune.UploadInput.deleteModalBody": "删除此文件会将其从我们的系统中删除",
15400
+ "neptune.UploadInput.deleteModalCancelButtonText": "取消",
15401
+ "neptune.UploadInput.deleteModalConfirmButtonText": "删除",
15402
+ "neptune.UploadInput.deleteModalTitle": "确定要删除此文件吗?",
15403
+ "neptune.UploadInput.fileIsTooLarge": "文件太大",
15404
+ "neptune.UploadInput.fileTypeNotSupported": "文件类型不受支持",
15405
+ "neptune.UploadInput.maximumFilesAlreadyUploaded": "抱歉,此上传失败,因为我们一次只能接受 {maxFilesAllowed} 个文件。",
15406
+ "neptune.UploadItem.deleting": "正在删除…",
15407
+ "neptune.UploadItem.removeFile": "删除文件 {filename}",
15408
+ "neptune.UploadItem.uploaded": "已上传",
15409
+ "neptune.UploadItem.uploadedFile": "上传的文件",
15410
+ "neptune.UploadItem.uploading": "正在上传…",
15411
+ "neptune.UploadItem.uploadingFailed": "上传失败"
15412
+ };
15413
+
15414
+ var zhHK = {
15415
+ "neptune.Button.loadingAriaLabel": "載入中",
15116
15416
  "neptune.Chips.ariaLabel": "清除{choice}",
15117
15417
  "neptune.ClearButton.ariaLabel": "清除",
15118
15418
  "neptune.CloseButton.ariaLabel": "關閉",
15119
15419
  "neptune.DateInput.day.label": "日",
15120
15420
  "neptune.DateInput.month.label": "月",
15121
15421
  "neptune.DateInput.year.label": "年",
15422
+ "neptune.DateLookup.day": "日",
15423
+ "neptune.DateLookup.goTo20YearView": "切換至20年視圖",
15424
+ "neptune.DateLookup.month": "月",
15425
+ "neptune.DateLookup.next": "下一個",
15426
+ "neptune.DateLookup.previous": "上一個",
15427
+ "neptune.DateLookup.selected": "已選",
15428
+ "neptune.DateLookup.twentyYears": "20年",
15429
+ "neptune.DateLookup.year": "年",
15430
+ "neptune.FlowNavigation.back": "返回上一個步驟",
15431
+ "neptune.Link.opensInNewTab": "(在新分頁中開啟)",
15122
15432
  "neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
15123
- "neptune.Pagination.ariaLabel": "分頁導航",
15124
- "neptune.PaginationLink.ariaLabel.active": "前往第{pageNumber}頁",
15125
- "neptune.PaginationLink.ariaLabel.inactive": "目前在第{pageNumber}頁",
15126
15433
  "neptune.Select.searchPlaceholder": "搜尋…",
15127
15434
  "neptune.Summary.statusDone": "已完成事項",
15128
15435
  "neptune.Summary.statusNotDone": "未完成事項",
@@ -15158,6 +15465,7 @@ var zh = {
15158
15465
  };
15159
15466
 
15160
15467
  const translations = {
15468
+ cs,
15161
15469
  de,
15162
15470
  en,
15163
15471
  es,
@@ -15173,7 +15481,8 @@ const translations = {
15173
15481
  th,
15174
15482
  tr,
15175
15483
  uk,
15176
- zh
15484
+ 'zh-CN': zhCN,
15485
+ 'zh-HK': zhHK
15177
15486
  };
15178
15487
 
15179
15488
  exports.Accordion = Accordion;