@bigbinary/neetoui 8.2.18 → 8.2.20

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 (109) hide show
  1. package/dist/ActionDropdown.js +2 -2
  2. package/dist/Alert.js +4 -4
  3. package/dist/Alert.js.map +1 -1
  4. package/dist/Checkbox.js +2 -2
  5. package/dist/ColorPicker.js +2 -2
  6. package/dist/DatePicker.js +6 -6
  7. package/dist/Dropdown.js +2 -2
  8. package/dist/Input.js +2 -2
  9. package/dist/Modal.js +19 -6
  10. package/dist/Modal.js.map +1 -1
  11. package/dist/MultiEmailInput.js +2 -2
  12. package/dist/Pagination.js +2 -2
  13. package/dist/Pane.js +3 -3
  14. package/dist/Radio.js +2 -2
  15. package/dist/Select.js +2 -2
  16. package/dist/Sidebar.js +2 -2
  17. package/dist/Slider.js +2 -2
  18. package/dist/Switch.js +2 -2
  19. package/dist/Table.js +3 -3
  20. package/dist/{Textarea-ffce70c4.js → Textarea-4adbfd84.js} +2 -2
  21. package/dist/{Textarea-ffce70c4.js.map → Textarea-4adbfd84.js.map} +1 -1
  22. package/dist/Textarea.js +3 -3
  23. package/dist/TimePicker.js +6 -6
  24. package/dist/Toastr.js +2 -2
  25. package/dist/TranslationProvider.js +1 -1
  26. package/dist/Tree.js +2 -2
  27. package/dist/TreeSelect.js +2 -2
  28. package/dist/cjs/ActionDropdown.js +2 -2
  29. package/dist/cjs/Alert.js +4 -4
  30. package/dist/cjs/Alert.js.map +1 -1
  31. package/dist/cjs/Checkbox.js +2 -2
  32. package/dist/cjs/ColorPicker.js +2 -2
  33. package/dist/cjs/DatePicker.js +6 -6
  34. package/dist/cjs/Dropdown.js +2 -2
  35. package/dist/cjs/Input.js +2 -2
  36. package/dist/cjs/Modal.js +19 -6
  37. package/dist/cjs/Modal.js.map +1 -1
  38. package/dist/cjs/MultiEmailInput.js +2 -2
  39. package/dist/cjs/Pagination.js +2 -2
  40. package/dist/cjs/Pane.js +3 -3
  41. package/dist/cjs/Radio.js +2 -2
  42. package/dist/cjs/Select.js +2 -2
  43. package/dist/cjs/Sidebar.js +2 -2
  44. package/dist/cjs/Slider.js +2 -2
  45. package/dist/cjs/Switch.js +2 -2
  46. package/dist/cjs/Table.js +3 -3
  47. package/dist/cjs/{Textarea-19fb996b.js → Textarea-d7c71937.js} +2 -2
  48. package/dist/cjs/{Textarea-19fb996b.js.map → Textarea-d7c71937.js.map} +1 -1
  49. package/dist/cjs/Textarea.js +3 -3
  50. package/dist/cjs/TimePicker.js +6 -6
  51. package/dist/cjs/Toastr.js +2 -2
  52. package/dist/cjs/TranslationProvider.js +1 -1
  53. package/dist/cjs/Tree.js +2 -2
  54. package/dist/cjs/TreeSelect.js +2 -2
  55. package/dist/cjs/{en-2db2c836.js → en-c69be2fb.js} +4 -4
  56. package/dist/cjs/en-c69be2fb.js.map +1 -0
  57. package/dist/cjs/formik/ActionBlock.js +2 -2
  58. package/dist/cjs/formik/BlockNavigation.js +9 -20
  59. package/dist/cjs/formik/BlockNavigation.js.map +1 -1
  60. package/dist/cjs/formik/Checkbox.js +2 -2
  61. package/dist/cjs/formik/Input.js +2 -2
  62. package/dist/cjs/formik/MultiEmailInput.js +2 -2
  63. package/dist/cjs/formik/Radio.js +2 -2
  64. package/dist/cjs/formik/Select.js +2 -2
  65. package/dist/cjs/formik/Slider.js +2 -2
  66. package/dist/cjs/formik/Switch.js +2 -2
  67. package/dist/cjs/formik/Textarea.js +3 -3
  68. package/dist/cjs/formik/TreeSelect.js +2 -2
  69. package/dist/cjs/formik/index.js +4 -4
  70. package/dist/cjs/{index-13162f47.js → index-580cecf0.js} +2 -2
  71. package/dist/cjs/{index-13162f47.js.map → index-580cecf0.js.map} +1 -1
  72. package/dist/cjs/{index-d87f7f4c.js → index-624122e2.js} +4 -4
  73. package/dist/cjs/{index-d87f7f4c.js.map → index-624122e2.js.map} +1 -1
  74. package/dist/cjs/index.js +6 -6
  75. package/dist/cjs/layouts.js +2 -2
  76. package/dist/cjs/{useOverlayManager-0e028745.js → useOverlayManager-d5a482ad.js} +2 -2
  77. package/dist/cjs/{useOverlayManager-0e028745.js.map → useOverlayManager-d5a482ad.js.map} +1 -1
  78. package/dist/cjs/{useRestoreScrollPosition-58d09d96.js → useRestoreScrollPosition-d094f2d4.js} +2 -2
  79. package/dist/cjs/{useRestoreScrollPosition-58d09d96.js.map → useRestoreScrollPosition-d094f2d4.js.map} +1 -1
  80. package/dist/{en-8006295a.js → en-2d3f9fc1.js} +4 -4
  81. package/dist/en-2d3f9fc1.js.map +1 -0
  82. package/dist/formik/ActionBlock.js +2 -2
  83. package/dist/formik/BlockNavigation.js +9 -20
  84. package/dist/formik/BlockNavigation.js.map +1 -1
  85. package/dist/formik/Checkbox.js +2 -2
  86. package/dist/formik/Input.js +2 -2
  87. package/dist/formik/MultiEmailInput.js +2 -2
  88. package/dist/formik/Radio.js +2 -2
  89. package/dist/formik/Select.js +2 -2
  90. package/dist/formik/Slider.js +2 -2
  91. package/dist/formik/Switch.js +2 -2
  92. package/dist/formik/Textarea.js +3 -3
  93. package/dist/formik/TreeSelect.js +2 -2
  94. package/dist/formik/index.js +4 -4
  95. package/dist/{index-4d4c3cde.js → index-951e004b.js} +2 -2
  96. package/dist/{index-4d4c3cde.js.map → index-951e004b.js.map} +1 -1
  97. package/dist/{index-17fac280.js → index-a5885f96.js} +4 -4
  98. package/dist/{index-17fac280.js.map → index-a5885f96.js.map} +1 -1
  99. package/dist/index.js +6 -6
  100. package/dist/layouts.js +2 -2
  101. package/dist/{useOverlayManager-b8edcf18.js → useOverlayManager-a6989e1a.js} +2 -2
  102. package/dist/{useOverlayManager-b8edcf18.js.map → useOverlayManager-a6989e1a.js.map} +1 -1
  103. package/dist/{useRestoreScrollPosition-79e0f238.js → useRestoreScrollPosition-4c850d1d.js} +2 -2
  104. package/dist/{useRestoreScrollPosition-79e0f238.js.map → useRestoreScrollPosition-4c850d1d.js.map} +1 -1
  105. package/package.json +1 -1
  106. package/src/translations/en.json +3 -3
  107. package/types/Modal.d.ts +1 -1
  108. package/dist/cjs/en-2db2c836.js.map +0 -1
  109. package/dist/en-8006295a.js.map +0 -1
@@ -3,7 +3,7 @@ import _extends from '@babel/runtime/helpers/extends';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import React__default from 'react';
5
5
  import classnames from 'classnames';
6
- import { n as noop } from './index-4d4c3cde.js';
6
+ import { n as noop } from './index-951e004b.js';
7
7
  import Button from './Button.js';
8
8
  import Dropdown from './Dropdown.js';
9
9
  import '@babel/runtime/helpers/slicedToArray';
@@ -17,7 +17,7 @@ import 'dayjs/plugin/weekOfYear';
17
17
  import '@bigbinary/neeto-cist';
18
18
  import 'qs';
19
19
  import 'ramda';
20
- import './en-8006295a.js';
20
+ import './en-2d3f9fc1.js';
21
21
  import 'react-router-dom';
22
22
  import './Spinner.js';
23
23
  import './Tooltip.js';
package/dist/Alert.js CHANGED
@@ -13,7 +13,7 @@ import '@babel/runtime/helpers/slicedToArray';
13
13
  import '@tippyjs/react';
14
14
  import 'tippy.js';
15
15
  import '@bigbinary/neeto-icons';
16
- import './useOverlayManager-b8edcf18.js';
16
+ import './useOverlayManager-a6989e1a.js';
17
17
  import '@babel/runtime/helpers/esm/extends';
18
18
  import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
19
19
  import '@babel/runtime/helpers/esm/inheritsLoose';
@@ -24,7 +24,7 @@ import '@bigbinary/neeto-hotkeys';
24
24
  import './overlayManager.js';
25
25
  import '@babel/runtime/helpers/classCallCheck';
26
26
  import '@babel/runtime/helpers/createClass';
27
- import './index-4d4c3cde.js';
27
+ import './index-951e004b.js';
28
28
  import 'dayjs';
29
29
  import 'dayjs/plugin/localeData';
30
30
  import 'dayjs/plugin/utc';
@@ -32,7 +32,7 @@ import 'dayjs/plugin/weekday';
32
32
  import 'dayjs/plugin/weekOfYear';
33
33
  import '@bigbinary/neeto-cist';
34
34
  import 'qs';
35
- import './en-8006295a.js';
35
+ import './en-2d3f9fc1.js';
36
36
 
37
37
  var SIZES = {
38
38
  small: "small",
@@ -109,7 +109,7 @@ var Alert = function Alert(_ref) {
109
109
  onClick: onClose
110
110
  }), /*#__PURE__*/React__default.createElement(Button, {
111
111
  "data-cy": "alert-submit-button",
112
- disabled: !isOpen,
112
+ disabled: isSubmitting,
113
113
  label: submitButtonLabel,
114
114
  loading: isSubmitting,
115
115
  ref: submitButtonRef,
package/dist/Alert.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../src/components/Alert.jsx"],"sourcesContent":["import React, { useRef } from \"react\";\n\nimport PropTypes from \"prop-types\";\n\nimport Button from \"./Button\";\nimport Modal from \"./Modal\";\nimport Typography from \"./Typography\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst FOCUSABLE_ELEMENTS = { submit: \"submit\", cancel: \"cancel\" };\n\nconst Alert = ({\n size = SIZES.medium,\n isOpen = false,\n isSubmitting = false,\n className = \"\",\n closeOnEsc = true,\n closeButton = true,\n backdropClassName = \"\",\n closeOnOutsideClick = true,\n onClose = () => {},\n onSubmit = () => {},\n title = \"\",\n message = \"\",\n submitButtonLabel = \"Continue\",\n cancelButtonLabel = \"Cancel\",\n initialFocusRef,\n initialFocusElement,\n hideCancelButton = false,\n}) => {\n const submitButtonRef = useRef(null);\n const cancelButtonRef = useRef(null);\n\n const hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;\n const initialFocusElementRef =\n initialFocusElement === FOCUSABLE_ELEMENTS.submit\n ? submitButtonRef\n : cancelButtonRef;\n\n return (\n <Modal\n {...{\n backdropClassName,\n className,\n closeButton,\n closeOnEsc,\n closeOnOutsideClick,\n isOpen,\n onClose,\n size,\n }}\n data-cy=\"alert-box\"\n {...(hasCustomFocusableElement && {\n initialFocusRef: initialFocusRef || initialFocusElementRef,\n })}\n >\n <Modal.Header>\n <Typography data-cy=\"alert-title\" style=\"h2\">\n {title}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <Typography data-cy=\"alert-message\" lineHeight=\"normal\" style=\"body2\">\n {message}\n </Typography>\n </Modal.Body>\n <Modal.Footer className=\"neeto-ui-gap-2 neeto-ui-flex neeto-ui-justify-end neeto-ui-items-center\">\n {!hideCancelButton && (\n <Button\n data-cy=\"alert-cancel-button\"\n label={cancelButtonLabel}\n ref={cancelButtonRef}\n style=\"tertiary\"\n onClick={onClose}\n />\n )}\n <Button\n data-cy=\"alert-submit-button\"\n disabled={!isOpen}\n label={submitButtonLabel}\n loading={isSubmitting}\n ref={submitButtonRef}\n style=\"danger\"\n onClick={onSubmit}\n />\n </Modal.Footer>\n </Modal>\n );\n};\n\nAlert.propTypes = {\n /**\n * To specify the size of the Alert.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify whether the Alert is open or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify the callback which will be invoked when the Alert is closed.\n */\n onClose: PropTypes.func,\n /**\n * To specify the callback which will be invoked when the Alert is submitted.\n */\n onSubmit: PropTypes.func,\n /**\n * To provide title to the Alert.\n */\n title: PropTypes.string,\n /**\n * To provide description to the Alert.\n */\n message: PropTypes.node,\n /**\n * To add loading state to submit button\n */\n isSubmitting: PropTypes.bool,\n /**\n * To provide external classNames to the Alert.\n */\n className: PropTypes.string,\n /**\n * To close the Alert on pressing the `Esc` key.\n */\n closeOnEsc: PropTypes.bool,\n /**\n * To specify whether the close button of the Alert should be displayed or not.\n */\n closeButton: PropTypes.bool,\n /**\n * To provide label to the submit button.\n */\n submitButtonLabel: PropTypes.string,\n /**\n * To provide label to the cancel button.\n */\n cancelButtonLabel: PropTypes.string,\n /**\n * To add custom classes to Backdrop component.\n */\n backdropClassName: PropTypes.string,\n /**\n * To close on clicking outside the Alert content.\n */\n closeOnOutsideClick: PropTypes.bool,\n /**\n * To specify the ref of the element which will receive focus when the Alert is opened.\n * If not specified, the focus will be set to the submit button inside the Alert.\n * */\n initialFocusRef: PropTypes.object,\n /**\n * To specify the element which will receive focus when the Alert is opened.\n */\n initialFocusElement: PropTypes.oneOf(Object.values(FOCUSABLE_ELEMENTS)),\n /**\n * To hide the cancel button\n */\n hideCancelButton: PropTypes.bool,\n};\n\nexport default Alert;\n"],"names":["SIZES","small","medium","large","FOCUSABLE_ELEMENTS","submit","cancel","Alert","_ref","_ref$size","size","_ref$isOpen","isOpen","_ref$isSubmitting","isSubmitting","_ref$className","className","_ref$closeOnEsc","closeOnEsc","_ref$closeButton","closeButton","_ref$backdropClassNam","backdropClassName","_ref$closeOnOutsideCl","closeOnOutsideClick","_ref$onClose","onClose","_ref$onSubmit","onSubmit","_ref$title","title","_ref$message","message","_ref$submitButtonLabe","submitButtonLabel","_ref$cancelButtonLabe","cancelButtonLabel","initialFocusRef","initialFocusElement","_ref$hideCancelButton","hideCancelButton","submitButtonRef","useRef","cancelButtonRef","hasCustomFocusableElement","initialFocusElementRef","React","createElement","Modal","_extends","Header","Typography","style","Body","lineHeight","Footer","Button","label","ref","onClick","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,KAAK,GAAG;AAAEC,EAAAA,KAAK,EAAE,OAAO;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,CAAC,CAAA;AAElE,IAAMC,kBAAkB,GAAG;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,MAAM,EAAE,QAAA;AAAS,CAAC,CAAA;AAEjE,IAAMC,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAkBL;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAjBJE,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,KAAA,CAAA,GAAGT,KAAK,CAACE,MAAM,GAAAO,SAAA;IAAAE,WAAA,GAAAH,IAAA,CACnBI,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GA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react\";\n\nimport PropTypes from \"prop-types\";\n\nimport Button from \"./Button\";\nimport Modal from \"./Modal\";\nimport Typography from \"./Typography\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst FOCUSABLE_ELEMENTS = { submit: \"submit\", cancel: \"cancel\" };\n\nconst Alert = ({\n size = SIZES.medium,\n isOpen = false,\n isSubmitting = false,\n className = \"\",\n closeOnEsc = true,\n closeButton = true,\n backdropClassName = \"\",\n closeOnOutsideClick = true,\n onClose = () => {},\n onSubmit = () => {},\n title = \"\",\n message = \"\",\n submitButtonLabel = \"Continue\",\n cancelButtonLabel = \"Cancel\",\n initialFocusRef,\n initialFocusElement,\n hideCancelButton = false,\n}) => {\n const submitButtonRef = useRef(null);\n const cancelButtonRef = useRef(null);\n\n const hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;\n const initialFocusElementRef =\n initialFocusElement === FOCUSABLE_ELEMENTS.submit\n ? submitButtonRef\n : cancelButtonRef;\n\n return (\n <Modal\n {...{\n backdropClassName,\n className,\n closeButton,\n closeOnEsc,\n closeOnOutsideClick,\n isOpen,\n onClose,\n size,\n }}\n data-cy=\"alert-box\"\n {...(hasCustomFocusableElement && {\n initialFocusRef: initialFocusRef || initialFocusElementRef,\n })}\n >\n <Modal.Header>\n <Typography data-cy=\"alert-title\" style=\"h2\">\n {title}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <Typography data-cy=\"alert-message\" lineHeight=\"normal\" style=\"body2\">\n {message}\n </Typography>\n </Modal.Body>\n <Modal.Footer className=\"neeto-ui-gap-2 neeto-ui-flex neeto-ui-justify-end neeto-ui-items-center\">\n {!hideCancelButton && (\n <Button\n data-cy=\"alert-cancel-button\"\n label={cancelButtonLabel}\n ref={cancelButtonRef}\n style=\"tertiary\"\n onClick={onClose}\n />\n )}\n <Button\n data-cy=\"alert-submit-button\"\n disabled={isSubmitting}\n label={submitButtonLabel}\n loading={isSubmitting}\n ref={submitButtonRef}\n style=\"danger\"\n onClick={onSubmit}\n />\n </Modal.Footer>\n </Modal>\n );\n};\n\nAlert.propTypes = {\n /**\n * To specify the size of the Alert.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify whether the Alert is open or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify the callback which will be invoked when the Alert is closed.\n */\n onClose: PropTypes.func,\n /**\n * To specify the callback which will be invoked when the Alert is submitted.\n */\n onSubmit: PropTypes.func,\n /**\n * To provide title to the Alert.\n */\n title: PropTypes.string,\n /**\n * To provide description to the Alert.\n */\n message: PropTypes.node,\n /**\n * To add loading state to submit button\n */\n isSubmitting: PropTypes.bool,\n /**\n * To provide external classNames to the Alert.\n */\n className: PropTypes.string,\n /**\n * To close the Alert on pressing the `Esc` key.\n */\n closeOnEsc: PropTypes.bool,\n /**\n * To specify whether the close button of the Alert should be displayed or not.\n */\n closeButton: PropTypes.bool,\n /**\n * To provide label to the submit button.\n */\n submitButtonLabel: PropTypes.string,\n /**\n * To provide label to the cancel button.\n */\n cancelButtonLabel: PropTypes.string,\n /**\n * To add custom classes to Backdrop component.\n */\n backdropClassName: PropTypes.string,\n /**\n * To close on clicking outside the Alert content.\n */\n closeOnOutsideClick: PropTypes.bool,\n /**\n * To specify the ref of the element which will receive focus when the Alert is opened.\n * If not specified, the focus will be set to the submit button inside the Alert.\n * */\n initialFocusRef: PropTypes.object,\n /**\n * To specify the element which will receive focus when the Alert is opened.\n */\n initialFocusElement: PropTypes.oneOf(Object.values(FOCUSABLE_ELEMENTS)),\n /**\n * To hide the cancel button\n */\n hideCancelButton: PropTypes.bool,\n};\n\nexport default Alert;\n"],"names":["SIZES","small","medium","large","FOCUSABLE_ELEMENTS","submit","cancel","Alert","_ref","_ref$size","size","_ref$isOpen","isOpen","_ref$isSubmitting","isSubmitting","_ref$className","className","_ref$closeOnEsc","closeOnEsc","_ref$closeButton","closeButton","_ref$backdropClassNam","backdropClassName","_ref$closeOnOutsideCl","closeOnOutsideClick","_ref$onClose","onClose","_ref$onSubmit","onSubmit","_ref$title","title","_ref$message","message","_ref$submitButtonLabe","submitButtonLabel","_ref$cancelButtonLabe","cancelButtonLabel","initialFocusRef","initialFocusElement","_ref$hideCancelButton","hideCancelButton","submitButtonRef","useRef","cancelButtonRef","hasCustomFocusableElement","initialFocusElementRef","React","createElement","Modal","_extends","Header","Typography","style","Body","lineHeight","Footer","Button","label","ref","onClick","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,KAAK,GAAG;AAAEC,EAAAA,KAAK,EAAE,OAAO;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,CAAC,CAAA;AAElE,IAAMC,kBAAkB,GAAG;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,MAAM,EAAE,QAAA;AAAS,CAAC,CAAA;AAEjE,IAAMC,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAkBL;AAAA,EAAA,IAAAC,SAAA,GAAAD,IAAA,CAjBJE,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,KAAA,CAAA,GAAGT,KAAK,CAACE,MAAM,GAAAO,SAAA;IAAAE,WAAA,GAAAH,IAAA,CACnBI,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,iBAAA,GAAAL,IAAA,CACdM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,iBAAA;IAAAE,cAAA,GAAAP,IAAA,CACpBQ,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAAE,eAAA,GAAAT,IAAA,CACdU,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,eAAA;IAAAE,g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A,UAAU,EAAC,QAAQ;AAACF,IAAAA,KAAK,EAAC,OAAA;GAC3DpB,EAAAA,OAAO,CACG,CACF,eACbc,cAAA,CAAAC,aAAA,CAACC,KAAK,CAACO,MAAM,EAAA;AAACvC,IAAAA,SAAS,EAAC,yEAAA;AAAyE,GAAA,EAC9F,CAACwB,gBAAgB,iBAChBM,cAAA,CAAAC,aAAA,CAACS,MAAM,EAAA;AACL,IAAA,SAAA,EAAQ,qBAAqB;AAC7BC,IAAAA,KAAK,EAAErB,iBAAkB;AACzBsB,IAAAA,GAAG,EAAEf,eAAgB;AACrBS,IAAAA,KAAK,EAAC,UAAU;AAChBO,IAAAA,OAAO,EAAEjC,OAAAA;AAAQ,GAAA,CAEpB,eACDoB,cAAA,CAAAC,aAAA,CAACS,MAAM,EAAA;AACL,IAAA,SAAA,EAAQ,qBAAqB;AAC7BI,IAAAA,QAAQ,EAAE9C,YAAa;AACvB2C,IAAAA,KAAK,EAAEvB,iBAAkB;AACzB2B,IAAAA,OAAO,EAAE/C,YAAa;AACtB4C,IAAAA,GAAG,EAAEjB,eAAgB;AACrBW,IAAAA,KAAK,EAAC,QAAQ;AACdO,IAAAA,OAAO,EAAE/B,QAAAA;AAAS,GAAA,CAClB,CACW,CACT,CAAA;AAEZ;;;;"}
package/dist/Checkbox.js CHANGED
@@ -7,7 +7,7 @@ import '@babel/runtime/helpers/slicedToArray';
7
7
  import 'react-router-dom';
8
8
  import '@bigbinary/neeto-hotkeys';
9
9
  import './overlayManager.js';
10
- import { h as hyphenize } from './index-4d4c3cde.js';
10
+ import { h as hyphenize } from './index-951e004b.js';
11
11
  import '@babel/runtime/helpers/defineProperty';
12
12
  import 'qs';
13
13
  import Label from './Label.js';
@@ -20,7 +20,7 @@ import 'dayjs/plugin/weekday';
20
20
  import 'dayjs/plugin/weekOfYear';
21
21
  import '@bigbinary/neeto-cist';
22
22
  import 'ramda';
23
- import './en-8006295a.js';
23
+ import './en-2d3f9fc1.js';
24
24
  import '@bigbinary/neeto-icons';
25
25
  import './Button.js';
26
26
  import './Spinner.js';
@@ -10,7 +10,7 @@ import { HexColorInput, HexAlphaColorPicker, HexColorPicker } from 'react-colorf
10
10
  import { t as tinycolor } from './tinycolor-282c618c.js';
11
11
  import Button from './Button.js';
12
12
  import Dropdown from './Dropdown.js';
13
- import { n as noop } from './index-4d4c3cde.js';
13
+ import { n as noop } from './index-951e004b.js';
14
14
  import '@babel/runtime/helpers/objectWithoutProperties';
15
15
  import 'react-router-dom';
16
16
  import './Spinner.js';
@@ -27,7 +27,7 @@ import 'dayjs/plugin/utc';
27
27
  import 'dayjs/plugin/weekday';
28
28
  import 'dayjs/plugin/weekOfYear';
29
29
  import 'qs';
30
- import './en-8006295a.js';
30
+ import './en-2d3f9fc1.js';
31
31
 
32
32
  const s=()=>"undefined"!=typeof window&&"EyeDropper"in window,i=()=>Promise.reject(new Error("Unsupported browser.")),c=()=>{const r=useRef(),[i,c]=useState(!1);useEffect(()=>(r.current=!0,c(s()),()=>{r.current=!1;}),[]);const u=useCallback(()=>i,[i]);return [r,u]},u=r=>{const o=(r=>s()&&new EyeDropper(r))(r);var n;return (n=o)?EyeDropper.prototype.open.bind(n):i},p=e=>{const s=useMemo(()=>u(e),[e]),[i,p]=c(),a=useRef(),f=useCallback(()=>{void 0!==a.current&&a.current.abort();},[a]),d=useCallback(function(r){void 0===r&&(r={});try{f();const{signal:o,...n}=r,t=new AbortController;a.current=t;const e=void 0!==o?(r=>{const o=new AbortController,n=()=>{o.abort();for(const o of r)o.removeEventListener("abort",n);};for(const o of r){if(o.aborted){n();break}o.addEventListener("abort",n);}return o.signal})([o,t.signal]):t.signal;return Promise.resolve(function(r,o){try{var t=Promise.resolve(s({...n,signal:e}));}catch(r){return o(r)}return t&&t.then?t.then(void 0,o):t}(0,function(r){throw i.current||(r.canceled=!0),r}))}catch(r){return Promise.reject(r)}},[a,i,f,s]);return useEffect(()=>f,[f]),{open:d,close:f,isSupported:p}};
33
33
 
@@ -24,8 +24,8 @@ import '@babel/runtime/regenerator';
24
24
  import 'react-colorful';
25
25
  import './tinycolor-282c618c.js';
26
26
  import './Dropdown.js';
27
- import './index-4d4c3cde.js';
28
- export { D as default } from './index-17fac280.js';
27
+ import './index-951e004b.js';
28
+ export { D as default } from './index-a5885f96.js';
29
29
  import './Input.js';
30
30
  import './Label.js';
31
31
  import './MultiEmailInput.js';
@@ -34,7 +34,7 @@ import './useId-c1d20bba.js';
34
34
  import '@bigbinary/neeto-hotkeys';
35
35
  import './overlayManager.js';
36
36
  import 'qs';
37
- import './Textarea-ffce70c4.js';
37
+ import './Textarea-4adbfd84.js';
38
38
  import '@babel/runtime/helpers/toConsumableArray';
39
39
  import './Pane.js';
40
40
  import './Popover.js';
@@ -69,7 +69,7 @@ import './Switch.js';
69
69
  import './Tab.js';
70
70
  import 'antd/lib/table';
71
71
  import 'react-drag-listview';
72
- import './useRestoreScrollPosition-79e0f238.js';
72
+ import './useRestoreScrollPosition-4c850d1d.js';
73
73
  import 'react-resizable';
74
74
  import './Tag.js';
75
75
  import './Toastr.js';
@@ -80,10 +80,10 @@ import 'dayjs/plugin/localeData';
80
80
  import 'dayjs/plugin/utc';
81
81
  import 'dayjs/plugin/weekday';
82
82
  import 'dayjs/plugin/weekOfYear';
83
- import './en-8006295a.js';
83
+ import './en-2d3f9fc1.js';
84
84
  import './Spinner.js';
85
85
  import './Tooltip.js';
86
- import './useOverlayManager-b8edcf18.js';
86
+ import './useOverlayManager-a6989e1a.js';
87
87
  import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
88
88
  import '@babel/runtime/helpers/esm/inheritsLoose';
89
89
  import '@babel/runtime/helpers/esm/assertThisInitialized';
package/dist/Dropdown.js CHANGED
@@ -8,7 +8,7 @@ import classnames from 'classnames';
8
8
  import { Down } from '@bigbinary/neeto-icons';
9
9
  import { isNil } from 'ramda';
10
10
  import Button from './Button.js';
11
- import { h as hyphenize, n as noop } from './index-4d4c3cde.js';
11
+ import { h as hyphenize, n as noop } from './index-951e004b.js';
12
12
  import { isPresent } from '@bigbinary/neeto-cist';
13
13
  import Tooltip from './Tooltip.js';
14
14
  import { Link } from 'react-router-dom';
@@ -22,7 +22,7 @@ import 'dayjs/plugin/utc';
22
22
  import 'dayjs/plugin/weekday';
23
23
  import 'dayjs/plugin/weekOfYear';
24
24
  import 'qs';
25
- import './en-8006295a.js';
25
+ import './en-2d3f9fc1.js';
26
26
 
27
27
  var Divider = function Divider(props) {
28
28
  return /*#__PURE__*/React__default.createElement("li", _extends({
package/dist/Input.js CHANGED
@@ -9,7 +9,7 @@ import { u as useId } from './useId-c1d20bba.js';
9
9
  import 'react-router-dom';
10
10
  import '@bigbinary/neeto-hotkeys';
11
11
  import './overlayManager.js';
12
- import { h as hyphenize } from './index-4d4c3cde.js';
12
+ import { h as hyphenize } from './index-951e004b.js';
13
13
  import 'qs';
14
14
  import Label from './Label.js';
15
15
  import '@babel/runtime/helpers/classCallCheck';
@@ -20,7 +20,7 @@ import 'dayjs/plugin/utc';
20
20
  import 'dayjs/plugin/weekday';
21
21
  import 'dayjs/plugin/weekOfYear';
22
22
  import '@bigbinary/neeto-cist';
23
- import './en-8006295a.js';
23
+ import './en-2d3f9fc1.js';
24
24
  import '@bigbinary/neeto-icons';
25
25
  import './Button.js';
26
26
  import './Spinner.js';
package/dist/Modal.js CHANGED
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import React__default, { useState, useRef } from 'react';
6
6
  import classnames from 'classnames';
7
7
  import { Close } from '@bigbinary/neeto-icons';
8
- import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-b8edcf18.js';
8
+ import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-a6989e1a.js';
9
9
  import Button from './Button.js';
10
10
  import 'react-router-dom';
11
11
  import 'qs';
@@ -20,14 +20,14 @@ import '@bigbinary/neeto-hotkeys';
20
20
  import './overlayManager.js';
21
21
  import '@babel/runtime/helpers/classCallCheck';
22
22
  import '@babel/runtime/helpers/createClass';
23
- import './index-4d4c3cde.js';
23
+ import './index-951e004b.js';
24
24
  import 'dayjs';
25
25
  import 'dayjs/plugin/localeData';
26
26
  import 'dayjs/plugin/utc';
27
27
  import 'dayjs/plugin/weekday';
28
28
  import 'dayjs/plugin/weekOfYear';
29
29
  import '@bigbinary/neeto-cist';
30
- import './en-8006295a.js';
30
+ import './en-2d3f9fc1.js';
31
31
  import './Spinner.js';
32
32
  import './Tooltip.js';
33
33
  import '@tippyjs/react';
@@ -71,7 +71,16 @@ var Header = function Header(_ref) {
71
71
  }, description)));
72
72
  };
73
73
 
74
- var _excluded = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
74
+ var MemoizedChildren = /*#__PURE__*/React__default.memo(function (_ref) {
75
+ var children = _ref.children;
76
+ return children;
77
+ }, function (_, _ref2) {
78
+ var shouldUpdate = _ref2.shouldUpdate;
79
+ return !shouldUpdate;
80
+ });
81
+ MemoizedChildren.displayName = "MemoizedChildren";
82
+
83
+ var _excluded = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick", "forceRender"];
75
84
  var SIZES = {
76
85
  small: "small",
77
86
  medium: "medium",
@@ -100,6 +109,8 @@ var Modal = function Modal(_ref) {
100
109
  blockScrollOnMount = _ref$blockScrollOnMou === void 0 ? true : _ref$blockScrollOnMou,
101
110
  _ref$closeOnOutsideCl = _ref.closeOnOutsideClick,
102
111
  closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
112
+ _ref$forceRender = _ref.forceRender,
113
+ forceRender = _ref$forceRender === void 0 ? false : _ref$forceRender,
103
114
  otherProps = _objectWithoutProperties(_ref, _excluded);
104
115
  var _useState = useState(false),
105
116
  _useState2 = _slicedToArray(_useState, 2),
@@ -164,9 +175,11 @@ var Modal = function Modal(_ref) {
164
175
  size: isFullScreenModal ? "large" : "small",
165
176
  style: isFullScreenModal ? "secondary" : "text",
166
177
  onClick: handleOverlayClose
167
- }), typeof children === "function" ? children({
178
+ }), /*#__PURE__*/React__default.createElement(MemoizedChildren, {
179
+ shouldUpdate: isOpen || forceRender
180
+ }, typeof children === "function" ? children({
168
181
  setFocusField: setFocusField
169
- }) : children))));
182
+ }) : children)))));
170
183
  };
171
184
  Modal.Header = Header;
172
185
  Modal.Body = Body;
package/dist/Modal.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sources":["../src/components/Modal/Body.jsx","../src/components/Modal/Footer.jsx","../src/components/Modal/Header.jsx","../src/components/Modal/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst Body = ({ children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__body\", className)}\n data-cy={dataCy ?? \"modal-body\"}\n >\n {children}\n </div>\n);\n\nBody.propTypes = {\n /**\n * To specify className to be applied to the Modal Body.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Body.\n */\n children: PropTypes.node,\n};\n\nexport default Body;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst Footer = ({ children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__footer\", className)}\n data-cy={dataCy ?? \"modal-footer\"}\n >\n {children}\n </div>\n);\n\nFooter.propTypes = {\n /**\n * To specify className to be applied to the Modal Footer.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Footer.\n */\n children: PropTypes.node,\n};\n\nexport default Footer;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Typography from \"../Typography\";\n\nconst Header = ({ description = \"\", children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__header\", className)}\n data-cy={dataCy ?? \"modal-header\"}\n >\n {children}\n {description && (\n <div className=\"neeto-ui-modal__header-desc\" data-cy=\"modal-header-desc\">\n <Typography lineHeight=\"normal\" style=\"body2\">\n {description}\n </Typography>\n </div>\n )}\n </div>\n);\n\nHeader.propTypes = {\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify the short description of the Modal.\n */\n description: PropTypes.string,\n /**\n * To specify className to be applied to the Modal Header container.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Header.\n */\n children: PropTypes.node,\n};\n\nexport default Header;\n","import React, { useRef, useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport { CSSTransition } from \"react-transition-group\";\n\nimport Backdrop from \"atoms/Backdrop\";\nimport Portal from \"atoms/Portal\";\nimport Button from \"components/Button\";\nimport { useOverlayManager, useOverlay } from \"hooks\";\n\nimport Body from \"./Body\";\nimport Footer from \"./Footer\";\nimport Header from \"./Header\";\n\nconst SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n fullScreen: \"fullScreen\",\n};\n\nconst Modal = ({\n size = SIZES.medium,\n isOpen = false,\n onClose = () => {},\n children,\n finalFocusRef,\n initialFocusRef,\n className = \"\",\n closeOnEsc = true,\n closeButton = true,\n backdropClassName = \"\",\n blockScrollOnMount = true,\n closeOnOutsideClick = true,\n ...otherProps\n}) => {\n const [hasTransitionCompleted, setHasTransitionCompleted] = useState(false);\n\n const modalWrapper = useRef(null);\n const backdropRef = useRef(null);\n\n useOverlayManager(modalWrapper, isOpen);\n\n const { handleOverlayClose, setFocusField } = useOverlay({\n isOpen,\n initialFocusRef,\n finalFocusRef,\n overlayWrapper: modalWrapper,\n onClose,\n backdropRef,\n closeOnOutsideClick,\n closeOnEsc,\n blockScrollOnMount,\n hasTransitionCompleted,\n });\n\n const isFullScreenModal = size === SIZES.fullScreen;\n\n return (\n <Portal rootId=\"neeto-ui-portal\">\n <CSSTransition\n unmountOnExit\n appear={isOpen}\n classNames=\"neeto-ui-modal\"\n in={isOpen}\n timeout={300}\n onEntered={() => setHasTransitionCompleted(true)}\n onExited={() => setHasTransitionCompleted(false)}\n >\n <Backdrop\n data-testid=\"backdrop\"\n key=\"modal-backdrop\"\n ref={backdropRef}\n className={classnames(\n \"neeto-ui-modal__backdrop\",\n {\n \"neeto-ui-modal__backdrop--fullscreen\": isFullScreenModal,\n },\n backdropClassName\n )}\n >\n <div\n aria-modal\n key=\"modal-wrapper\"\n ref={modalWrapper}\n role=\"dialog\"\n className={classnames(\"neeto-ui-modal__wrapper\", {\n \"neeto-ui-modal__wrapper--small\": size === SIZES.small,\n \"neeto-ui-modal__wrapper--medium\": size === SIZES.medium,\n \"neeto-ui-modal__wrapper--large\": size === SIZES.large,\n \"neeto-ui-modal__wrapper--fullscreen\": isFullScreenModal,\n [className]: className,\n })}\n {...otherProps}\n >\n {closeButton && (\n <Button\n aria-label=\"Close\"\n className=\"neeto-ui-modal__close\"\n data-cy=\"modal-close-button\"\n data-testid=\"close-button\"\n icon={Close}\n size={isFullScreenModal ? \"large\" : \"small\"}\n style={isFullScreenModal ? \"secondary\" : \"text\"}\n onClick={handleOverlayClose}\n />\n )}\n {typeof children === \"function\"\n ? children({ setFocusField })\n : children}\n </div>\n </Backdrop>\n </CSSTransition>\n </Portal>\n );\n};\n\nModal.propTypes = {\n /**\n * To specify the size of the Modal.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify whether the Modal is open or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify the callback which will be invoked when the Modal is closed.\n */\n onClose: PropTypes.func,\n /**\n * To specify the content to be rendered inside the Modal component.\n */\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * To provide external classNames to the Modal.\n */\n className: PropTypes.string,\n /**\n * To close the Modal on pressing the Esc key.\n */\n closeOnEsc: PropTypes.bool,\n /**\n * To specify whether the close button of the Modal should be displayed or not.\n */\n closeButton: PropTypes.bool,\n /**\n * To add custom classes to backdrop component.\n */\n backdropClassName: PropTypes.string,\n /**\n * To close on clicking outside the Modal content.\n */\n closeOnOutsideClick: PropTypes.bool,\n /*\n * To specify the ref of the element which will receive focus when the Modal is closed.\n * If not specified, the focus will be set to the element which was focused when the Modal was opened.\n * If the Modal was opened by clicking on a button, then the focus will be set to the button.\n * */\n finalFocusRef: PropTypes.object,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify the ref of the element which will receive focus when the Modal is opened.\n * If not specified, the focus will be set to the first focusable element inside the Modal.\n * */\n initialFocusRef: PropTypes.object,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify whether the scroll should be blocked when the Modal is opened.\n * */\n blockScrollOnMount: PropTypes.bool,\n};\n\nModal.Header = Header;\nModal.Body = Body;\nModal.Footer = Footer;\n\nexport default Modal;\n"],"names":["Body","_ref","children","className","dataCy","React","createElement","classnames","Footer","Header","_ref$description","description","Typography","lineHeight","style","SIZES","small","medium","large","fullScreen","Modal","_ref$size","size","_ref$isOpen","isOpen","_ref$onClose","onClose","finalFocusRef","initialFocusRef","_ref$className","_ref$closeOnEsc","closeOnEsc","_ref$closeButton","closeButton","_ref$backdropClassNam","backdropClassName","_ref$blockScrollOnMou","blockScrollOnMount","_ref$closeOnOutsideCl","closeOnOutsideClick","otherProps","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","hasTransitionCompleted","setHasTransitionCompleted","modalWrapper","useRef","backdropRef","useOverlayManager","_useOverlay","useOverlay","overlayWrapper","handleOverlayClose","setFocusField","isFullScreenModal","Portal","rootId","CSSTransition","unmountOnExit","appear","classNames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ErB,kBAAAA;AAAmB,GAAA,CAE/B,EACA,OAAOtD,QAAQ,KAAK,UAAU,GAC3BA,QAAQ,CAAC;AAAEuD,IAAAA,aAAa,EAAbA,aAAAA;AAAc,GAAC,CAAC,GAC3BvD,QAAQ,CACR,CACG,CACG,CACT,CAAA;AAEb,EAAC;AA8DDkB,KAAK,CAACX,MAAM,GAAGA,MAAM,CAAA;AACrBW,KAAK,CAACpB,IAAI,GAAGA,IAAI,CAAA;AACjBoB,KAAK,CAACZ,MAAM,GAAGA,MAAM;;;;"}
1
+ {"version":3,"file":"Modal.js","sources":["../src/components/Modal/Body.jsx","../src/components/Modal/Footer.jsx","../src/components/Modal/Header.jsx","../src/components/Modal/MemoizedChildren.js","../src/components/Modal/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst Body = ({ children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__body\", className)}\n data-cy={dataCy ?? \"modal-body\"}\n >\n {children}\n </div>\n);\n\nBody.propTypes = {\n /**\n * To specify className to be applied to the Modal Body.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Body.\n */\n children: PropTypes.node,\n};\n\nexport default Body;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst Footer = ({ children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__footer\", className)}\n data-cy={dataCy ?? \"modal-footer\"}\n >\n {children}\n </div>\n);\n\nFooter.propTypes = {\n /**\n * To specify className to be applied to the Modal Footer.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Footer.\n */\n children: PropTypes.node,\n};\n\nexport default Footer;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Typography from \"../Typography\";\n\nconst Header = ({ description = \"\", children, className, dataCy }) => (\n <div\n className={classnames(\"neeto-ui-modal__header\", className)}\n data-cy={dataCy ?? \"modal-header\"}\n >\n {children}\n {description && (\n <div className=\"neeto-ui-modal__header-desc\" data-cy=\"modal-header-desc\">\n <Typography lineHeight=\"normal\" style=\"body2\">\n {description}\n </Typography>\n </div>\n )}\n </div>\n);\n\nHeader.propTypes = {\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify the short description of the Modal.\n */\n description: PropTypes.string,\n /**\n * To specify className to be applied to the Modal Header container.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Modal Header.\n */\n children: PropTypes.node,\n};\n\nexport default Header;\n","import React from \"react\";\n\nconst MemoizedChildren = React.memo(\n ({ children }) => children,\n (_, { shouldUpdate }) => !shouldUpdate\n);\n\nMemoizedChildren.displayName = \"MemoizedChildren\";\n\nexport default MemoizedChildren;\n","import React, { useRef, useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport { CSSTransition } from \"react-transition-group\";\n\nimport Backdrop from \"atoms/Backdrop\";\nimport Portal from \"atoms/Portal\";\nimport Button from \"components/Button\";\nimport { useOverlayManager, useOverlay } from \"hooks\";\n\nimport Body from \"./Body\";\nimport Footer from \"./Footer\";\nimport Header from \"./Header\";\nimport MemoizedChildren from \"./MemoizedChildren\";\n\nconst SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n fullScreen: \"fullScreen\",\n};\n\nconst Modal = ({\n size = SIZES.medium,\n isOpen = false,\n onClose = () => {},\n children,\n finalFocusRef,\n initialFocusRef,\n className = \"\",\n closeOnEsc = true,\n closeButton = true,\n backdropClassName = \"\",\n blockScrollOnMount = true,\n closeOnOutsideClick = true,\n forceRender = false,\n ...otherProps\n}) => {\n const [hasTransitionCompleted, setHasTransitionCompleted] = useState(false);\n\n const modalWrapper = useRef(null);\n const backdropRef = useRef(null);\n\n useOverlayManager(modalWrapper, isOpen);\n\n const { handleOverlayClose, setFocusField } = useOverlay({\n isOpen,\n initialFocusRef,\n finalFocusRef,\n overlayWrapper: modalWrapper,\n onClose,\n backdropRef,\n closeOnOutsideClick,\n closeOnEsc,\n blockScrollOnMount,\n hasTransitionCompleted,\n });\n\n const isFullScreenModal = size === SIZES.fullScreen;\n\n return (\n <Portal rootId=\"neeto-ui-portal\">\n <CSSTransition\n unmountOnExit\n appear={isOpen}\n classNames=\"neeto-ui-modal\"\n in={isOpen}\n timeout={300}\n onEntered={() => setHasTransitionCompleted(true)}\n onExited={() => setHasTransitionCompleted(false)}\n >\n <Backdrop\n data-testid=\"backdrop\"\n key=\"modal-backdrop\"\n ref={backdropRef}\n className={classnames(\n \"neeto-ui-modal__backdrop\",\n {\n \"neeto-ui-modal__backdrop--fullscreen\": isFullScreenModal,\n },\n backdropClassName\n )}\n >\n <div\n aria-modal\n key=\"modal-wrapper\"\n ref={modalWrapper}\n role=\"dialog\"\n className={classnames(\"neeto-ui-modal__wrapper\", {\n \"neeto-ui-modal__wrapper--small\": size === SIZES.small,\n \"neeto-ui-modal__wrapper--medium\": size === SIZES.medium,\n \"neeto-ui-modal__wrapper--large\": size === SIZES.large,\n \"neeto-ui-modal__wrapper--fullscreen\": isFullScreenModal,\n [className]: className,\n })}\n {...otherProps}\n >\n {closeButton && (\n <Button\n aria-label=\"Close\"\n className=\"neeto-ui-modal__close\"\n data-cy=\"modal-close-button\"\n data-testid=\"close-button\"\n icon={Close}\n size={isFullScreenModal ? \"large\" : \"small\"}\n style={isFullScreenModal ? \"secondary\" : \"text\"}\n onClick={handleOverlayClose}\n />\n )}\n <MemoizedChildren shouldUpdate={isOpen || forceRender}>\n {typeof children === \"function\"\n ? children({ setFocusField })\n : children}\n </MemoizedChildren>\n </div>\n </Backdrop>\n </CSSTransition>\n </Portal>\n );\n};\n\nModal.propTypes = {\n /**\n * To specify the size of the Modal.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify whether the Modal is open or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify the callback which will be invoked when the Modal is closed.\n */\n onClose: PropTypes.func,\n /**\n * To specify the content to be rendered inside the Modal component.\n */\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * To provide external classNames to the Modal.\n */\n className: PropTypes.string,\n /**\n * To close the Modal on pressing the Esc key.\n */\n closeOnEsc: PropTypes.bool,\n /**\n * To specify whether the close button of the Modal should be displayed or not.\n */\n closeButton: PropTypes.bool,\n /**\n * To add custom classes to backdrop component.\n */\n backdropClassName: PropTypes.string,\n /**\n * To close on clicking outside the Modal content.\n */\n closeOnOutsideClick: PropTypes.bool,\n /*\n * To specify the ref of the element which will receive focus when the Modal is closed.\n * If not specified, the focus will be set to the element which was focused when the Modal was opened.\n * If the Modal was opened by clicking on a button, then the focus will be set to the button.\n * */\n finalFocusRef: PropTypes.object,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify the ref of the element which will receive focus when the Modal is opened.\n * If not specified, the focus will be set to the first focusable element inside the Modal.\n * */\n initialFocusRef: PropTypes.object,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To specify whether the scroll should be blocked when the Modal is opened.\n * */\n blockScrollOnMount: PropTypes.bool,\n /**\n * The modal children will be force re-rendered if the boolean is set to `true`. Ideally the modal won't update\n * if the `isOpen` is `false`. You can use this prop to override that nature.\n */\n forceRender: PropTypes.bool,\n};\n\nModal.Header = Header;\nModal.Body = Body;\nModal.Footer = Footer;\n\nexport default Modal;\n"],"names":["Body","_ref","children","className","dataCy","React","createElement","classnames","Footer","Header","_ref$description","description","Typography","lineHeight","style","MemoizedChildren","memo","_","_ref2","shouldUpdate","displayName","SIZES","small","medium","large","fullScreen","Modal","_ref$size","size","_ref$isOpen","isOpen","_ref$onClose","onClose","finalFocusRef","initialFocusRef","_ref$className","_ref$closeOnEsc","closeOnEsc","_ref$closeButton","closeButton","_ref$backdropClassNam","backdropClassName","_ref$blockScrollOnMou","blockScrollOnMount","_ref$closeOnOutsideCl","closeOnOutsideClick","_ref$forceRender","forceRender","otherProps","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","hasTransitionCompleted","setHasTransitionCompleted","modalWrapper","useRef","backdropRef","useOverlayManager","_useOverlay","useOverlay","overlayWrapper","handleOverlayClose","setFocusField","isFullScreenModal","Portal","rootId","CSSTransition","unmountOnExit","appear","classNames","timeout","onEntered","onExited","Backdrop","key","ref","_extends","role","_defineProperty","Button","icon","Close","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM,CAAA;EAAA,oBACzCC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,UAAU,CAAC,sBAAsB,EAAEJ,SAAS,CAAE;AACzD,IAAA,SAAA,EAASC,MAAM,KAAA,IAAA,IAANA,MAAM,KAAA,KAAA,CAAA,GAANA,MAAM,GAAI,YAAA;AAAa,GAAA,EAE/BF,QAAQ,CACL,CAAA;AAAA,CACP;;ACPD,IAAMM,MAAM,GAAG,SAATA,MAAMA,CAAAP,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM,CAAA;EAAA,oBAC3CC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,UAAU,CAAC,wBAAwB,EAAEJ,SAAS,CAA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I,GAAGA,IAAI,CAAA;AACjB0B,KAAK,CAAClB,MAAM,GAAGA,MAAM;;;;"}
@@ -7,7 +7,7 @@ import React__default, { useRef, useEffect, forwardRef, useState } from 'react';
7
7
  import classnames from 'classnames';
8
8
  import { assoc, pluck, mergeLeft, isEmpty } from 'ramda';
9
9
  import { c as components, C as CreatableSelect } from './react-select-creatable.esm-ad71b0c0.js';
10
- import { h as hyphenize, n as noop } from './index-4d4c3cde.js';
10
+ import { h as hyphenize, n as noop } from './index-951e004b.js';
11
11
  import _toArray from '@babel/runtime/helpers/toArray';
12
12
  import { Close } from '@bigbinary/neeto-icons';
13
13
  import '@babel/runtime/helpers/esm/objectSpread2';
@@ -39,7 +39,7 @@ import 'dayjs/plugin/weekday';
39
39
  import 'dayjs/plugin/weekOfYear';
40
40
  import '@bigbinary/neeto-cist';
41
41
  import 'qs';
42
- import './en-8006295a.js';
42
+ import './en-2d3f9fc1.js';
43
43
  import './Button.js';
44
44
  import 'react-router-dom';
45
45
  import './Spinner.js';
@@ -6,7 +6,7 @@ import { useHistory } from 'react-router-dom';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@bigbinary/neeto-hotkeys';
8
8
  import './overlayManager.js';
9
- import { b as buildUrl } from './index-4d4c3cde.js';
9
+ import { b as buildUrl } from './index-951e004b.js';
10
10
  import { u as useQueryParams } from './useQueryParams-dcb34865.js';
11
11
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
12
12
  import '@babel/runtime/helpers/classCallCheck';
@@ -19,7 +19,7 @@ import 'dayjs/plugin/weekday';
19
19
  import 'dayjs/plugin/weekOfYear';
20
20
  import '@bigbinary/neeto-cist';
21
21
  import 'qs';
22
- import './en-8006295a.js';
22
+ import './en-2d3f9fc1.js';
23
23
 
24
24
  var DOTS = "...";
25
25
 
package/dist/Pane.js CHANGED
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import React__default, { useState, useRef, useEffect } from 'react';
6
6
  import classnames from 'classnames';
7
7
  import { Close } from '@bigbinary/neeto-icons';
8
- import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-b8edcf18.js';
8
+ import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-a6989e1a.js';
9
9
  import Button from './Button.js';
10
10
  import 'react-router-dom';
11
11
  import 'qs';
@@ -19,14 +19,14 @@ import '@bigbinary/neeto-hotkeys';
19
19
  import './overlayManager.js';
20
20
  import '@babel/runtime/helpers/classCallCheck';
21
21
  import '@babel/runtime/helpers/createClass';
22
- import './index-4d4c3cde.js';
22
+ import './index-951e004b.js';
23
23
  import 'dayjs';
24
24
  import 'dayjs/plugin/localeData';
25
25
  import 'dayjs/plugin/utc';
26
26
  import 'dayjs/plugin/weekday';
27
27
  import 'dayjs/plugin/weekOfYear';
28
28
  import '@bigbinary/neeto-cist';
29
- import './en-8006295a.js';
29
+ import './en-2d3f9fc1.js';
30
30
  import './Spinner.js';
31
31
  import './Tooltip.js';
32
32
  import '@tippyjs/react';
package/dist/Radio.js CHANGED
@@ -9,7 +9,7 @@ import { u as useId } from './useId-c1d20bba.js';
9
9
  import 'react-router-dom';
10
10
  import '@bigbinary/neeto-hotkeys';
11
11
  import './overlayManager.js';
12
- import { h as hyphenize } from './index-4d4c3cde.js';
12
+ import { h as hyphenize } from './index-951e004b.js';
13
13
  import 'qs';
14
14
  import '@bigbinary/neeto-icons';
15
15
  import './Button.js';
@@ -28,7 +28,7 @@ import 'dayjs/plugin/weekday';
28
28
  import 'dayjs/plugin/weekOfYear';
29
29
  import '@bigbinary/neeto-cist';
30
30
  import 'ramda';
31
- import './en-8006295a.js';
31
+ import './en-2d3f9fc1.js';
32
32
 
33
33
  var _excluded$1 = ["name", "label", "className", "labelProps"];
34
34
  var Item = function Item(_ref) {
package/dist/Select.js CHANGED
@@ -27,7 +27,7 @@ import { u as useId } from './useId-c1d20bba.js';
27
27
  import 'react-router-dom';
28
28
  import '@bigbinary/neeto-hotkeys';
29
29
  import './overlayManager.js';
30
- import { h as hyphenize } from './index-4d4c3cde.js';
30
+ import { h as hyphenize } from './index-951e004b.js';
31
31
  import 'qs';
32
32
  import Label from './Label.js';
33
33
  import Spinner from './Spinner.js';
@@ -43,7 +43,7 @@ import 'dayjs/plugin/localeData';
43
43
  import 'dayjs/plugin/utc';
44
44
  import 'dayjs/plugin/weekday';
45
45
  import 'dayjs/plugin/weekOfYear';
46
- import './en-8006295a.js';
46
+ import './en-2d3f9fc1.js';
47
47
  import './Button.js';
48
48
  import './Tooltip.js';
49
49
  import '@tippyjs/react';
package/dist/Sidebar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React__default, { forwardRef, useState } from 'react';
2
2
  import classnames from 'classnames';
3
- import { n as noop } from './index-4d4c3cde.js';
3
+ import { n as noop } from './index-951e004b.js';
4
4
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
5
5
  import Tooltip from './Tooltip.js';
6
6
  import { AppSwitcher as AppSwitcher$1, Help, Book, Keyboard, ChatEmpty, Gift } from '@bigbinary/neeto-icons';
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
21
21
  import 'dayjs/plugin/weekOfYear';
22
22
  import '@bigbinary/neeto-cist';
23
23
  import 'qs';
24
- import './en-8006295a.js';
24
+ import './en-2d3f9fc1.js';
25
25
  import '@tippyjs/react';
26
26
  import 'tippy.js';
27
27
  import 'avvvatars-react';
package/dist/Slider.js CHANGED
@@ -12,7 +12,7 @@ import '@babel/runtime/helpers/slicedToArray';
12
12
  import 'react-router-dom';
13
13
  import '@bigbinary/neeto-hotkeys';
14
14
  import './overlayManager.js';
15
- import { h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-4d4c3cde.js';
15
+ import { h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-951e004b.js';
16
16
  import 'qs';
17
17
  import 'antd/locale/de_DE';
18
18
  import 'antd/locale/en_US';
@@ -39,7 +39,7 @@ import 'dayjs/plugin/weekday';
39
39
  import 'dayjs/plugin/weekOfYear';
40
40
  import '@bigbinary/neeto-cist';
41
41
  import 'ramda';
42
- import './en-8006295a.js';
42
+ import './en-2d3f9fc1.js';
43
43
 
44
44
  var _excluded = ["min", "max", "defaultValue", "onChange", "value", "label", "required", "labelProps", "error", "helpText"];
45
45
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
package/dist/Switch.js CHANGED
@@ -8,7 +8,7 @@ import '@babel/runtime/helpers/slicedToArray';
8
8
  import 'react-router-dom';
9
9
  import '@bigbinary/neeto-hotkeys';
10
10
  import './overlayManager.js';
11
- import { h as hyphenize, n as noop } from './index-4d4c3cde.js';
11
+ import { h as hyphenize, n as noop } from './index-951e004b.js';
12
12
  import '@babel/runtime/helpers/defineProperty';
13
13
  import 'qs';
14
14
  import Label from './Label.js';
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
21
21
  import 'dayjs/plugin/weekOfYear';
22
22
  import '@bigbinary/neeto-cist';
23
23
  import 'ramda';
24
- import './en-8006295a.js';
24
+ import './en-2d3f9fc1.js';
25
25
  import './Button.js';
26
26
  import './Spinner.js';
27
27
  import './Tooltip.js';
package/dist/Table.js CHANGED
@@ -15,12 +15,12 @@ import { useHistory } from 'react-router-dom';
15
15
  import { ANTD_LOCALE } from './constants.js';
16
16
  import '@bigbinary/neeto-hotkeys';
17
17
  import './overlayManager.js';
18
- import { r as removeFromLocalStorage, s as setToLocalStorage, b as buildUrl, n as noop$1, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-4d4c3cde.js';
18
+ import { r as removeFromLocalStorage, s as setToLocalStorage, b as buildUrl, n as noop$1, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-951e004b.js';
19
19
  import { u as useQueryParams } from './useQueryParams-dcb34865.js';
20
20
  import Button from './Button.js';
21
21
  import Callout from './Callout.js';
22
22
  import Typography from './Typography.js';
23
- import { T as TABLE_SORT_ORDERS, U as URL_SORT_ORDERS, H as HeaderCellMenu, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, a as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, u as useRestoreScrollPosition } from './useRestoreScrollPosition-79e0f238.js';
23
+ import { T as TABLE_SORT_ORDERS, U as URL_SORT_ORDERS, H as HeaderCellMenu, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, a as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, u as useRestoreScrollPosition } from './useRestoreScrollPosition-4c850d1d.js';
24
24
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
25
25
  import { Resizable } from 'react-resizable';
26
26
  import Spinner from './Spinner.js';
@@ -39,7 +39,7 @@ import 'dayjs/plugin/utc';
39
39
  import 'dayjs/plugin/weekday';
40
40
  import 'dayjs/plugin/weekOfYear';
41
41
  import 'qs';
42
- import './en-8006295a.js';
42
+ import './en-2d3f9fc1.js';
43
43
  import './Tooltip.js';
44
44
  import '@tippyjs/react';
45
45
  import 'tippy.js';
@@ -8,7 +8,7 @@ import { u as useId } from './useId-c1d20bba.js';
8
8
  import 'react-router-dom';
9
9
  import '@bigbinary/neeto-hotkeys';
10
10
  import './overlayManager.js';
11
- import { h as hyphenize } from './index-4d4c3cde.js';
11
+ import { h as hyphenize } from './index-951e004b.js';
12
12
  import 'qs';
13
13
  import Label from './Label.js';
14
14
 
@@ -160,4 +160,4 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
160
160
  Textarea.displayName = "Textarea";
161
161
 
162
162
  export { Textarea as T, useSyncedRef as u };
163
- //# sourceMappingURL=Textarea-ffce70c4.js.map
163
+ //# sourceMappingURL=Textarea-4adbfd84.js.map