@qualtrics/ui-react 2.22.1 → 2.23.1-alpha.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/CHANGELOG.md +24 -0
  2. package/dist/__shared/cjs/{index-75d9309a.js → index-7f78e01b.js} +115 -3
  3. package/dist/__shared/cjs/{index-a8c1a789.js → index-cf860ea0.js} +548 -348
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/Banner/Banner.css.js +21 -0
  6. package/dist/components/Banner/Banner.css.ts.vanilla.js +8 -0
  7. package/dist/components/Banner/Banner.js +105 -0
  8. package/dist/components/Banner/index.js +1 -0
  9. package/dist/components/Button/Button.js +3 -3
  10. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  11. package/dist/components/Checkbox/Check.js +1 -1
  12. package/dist/components/Checkbox/Checkbox2.js +3 -3
  13. package/dist/components/Checkbox/VisualCheckbox.js +2 -2
  14. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  15. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  16. package/dist/components/Combobox/Combobox2.js +3 -3
  17. package/dist/components/ConfigPane/ConfigPane.js +2 -0
  18. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  19. package/dist/components/Divider/Divider.js +2 -1
  20. package/dist/components/Divider/Divider2.js +3 -3
  21. package/dist/components/Dropdown/Dropdown.js +1 -0
  22. package/dist/components/Dropdown/Dropdown2.js +3 -3
  23. package/dist/components/Dropdown/DropdownList.js +4 -3
  24. package/dist/components/FilePicker/FilePicker2.js +3 -3
  25. package/dist/components/FormField/Caption.js +3 -3
  26. package/dist/components/FormField/FormField2.js +3 -3
  27. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +6 -1
  28. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  29. package/dist/components/Icon/IconTypes.js +28 -0
  30. package/dist/components/IconButton/IconButton.js +5 -4
  31. package/dist/components/IconButton/IconButton2.js +4 -4
  32. package/dist/components/InlineInput/InlineInput2.js +3 -3
  33. package/dist/components/Input/Input2.js +3 -3
  34. package/dist/components/InputGroup/InputGroup2.js +3 -3
  35. package/dist/components/Label/Label2.js +3 -3
  36. package/dist/components/Link/Link2.js +3 -3
  37. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  38. package/dist/components/LogicEditor/ConditionSet.js +10 -11
  39. package/dist/components/LogicEditor/Controls.js +28 -14
  40. package/dist/components/LogicEditor/LogicEditor.js +51 -40
  41. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  42. package/dist/components/Modal/Modal.js +3 -1
  43. package/dist/components/Modal/Modal2.js +3 -3
  44. package/dist/components/NewMenu/BaseMenu.js +1 -0
  45. package/dist/components/NewMenu/NewMenu.js +3 -3
  46. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  47. package/dist/components/PageLayout/PageLayout.js +3 -3
  48. package/dist/components/Pagination/Pagination2.js +3 -3
  49. package/dist/components/Popover/Popover.js +2 -1
  50. package/dist/components/Popover/Popover2.js +3 -3
  51. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  52. package/dist/components/Radio/Radio2.js +3 -3
  53. package/dist/components/SearchInput/SearchInput.js +1 -0
  54. package/dist/components/SearchInput/SearchInput2.js +3 -3
  55. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  56. package/dist/components/Slider/Slider2.js +3 -3
  57. package/dist/components/Switch/Switch2.js +3 -3
  58. package/dist/components/Table/Table2.js +3 -3
  59. package/dist/components/Tabs/Tabs2.js +3 -3
  60. package/dist/components/Tooltip/Tooltip.js +4 -2
  61. package/dist/components/Tooltip/Tooltip2.js +3 -3
  62. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  63. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  64. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  65. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  66. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +2 -0
  67. package/dist/components/index.js +1 -0
  68. package/dist/hooks/useIsTruncated/useIsTruncated.js +6 -0
  69. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  70. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  71. package/dist/icons/Icon.js +3 -3
  72. package/dist/icons/components/AgentLeftIcon.js +6 -0
  73. package/dist/icons/components/AgentRightIcon.js +6 -0
  74. package/dist/icons/components/ChevronSetIcon.js +6 -0
  75. package/dist/icons/components/ChevronSkipBackIcon.js +6 -0
  76. package/dist/icons/components/ChevronSkipForwardIcon.js +6 -0
  77. package/dist/icons/components/ColumnsIcon.js +6 -0
  78. package/dist/icons/components/CustomerLeftIcon.js +6 -0
  79. package/dist/icons/components/CustomerRightIcon.js +6 -0
  80. package/dist/icons/components/DetectedIcon.js +6 -0
  81. package/dist/icons/components/EffortEasyIcon.js +6 -0
  82. package/dist/icons/components/EffortHardIcon.js +6 -0
  83. package/dist/icons/components/EffortMixedIcon.js +6 -0
  84. package/dist/icons/components/EffortNeutralIcon.js +6 -0
  85. package/dist/icons/components/EffortVeryEasyIcon.js +6 -0
  86. package/dist/icons/components/EffortVeryHardIcon.js +6 -0
  87. package/dist/icons/components/IgnoredIcon.js +6 -0
  88. package/dist/icons/components/InsertLineIcon.js +6 -0
  89. package/dist/icons/components/IntensityHighIcon.js +6 -0
  90. package/dist/icons/components/IntensityLowIcon.js +6 -0
  91. package/dist/icons/components/IntensityMediumIcon.js +6 -0
  92. package/dist/icons/components/RaiseHandIcon.js +6 -0
  93. package/dist/icons/components/SentimentMixedIcon.js +6 -0
  94. package/dist/icons/components/SentimentNegativeIcon.js +6 -0
  95. package/dist/icons/components/SentimentNeutralIcon.js +6 -0
  96. package/dist/icons/components/SentimentPositiveIcon.js +6 -0
  97. package/dist/icons/components/SentimentVeryNegativeIcon.js +6 -0
  98. package/dist/icons/components/SentimentVeryPositiveIcon.js +6 -0
  99. package/dist/icons/components/UndetectedIcon.js +6 -0
  100. package/dist/icons/index.d.ts +56 -0
  101. package/dist/icons/index.es.js +28 -0
  102. package/dist/icons/index.js +29 -1
  103. package/dist/index.d.ts +77 -0
  104. package/dist/index.es.js +2 -1
  105. package/dist/index.js +7 -3
  106. package/dist/next/AdvancedTable/AdvancedTable.js +44 -50
  107. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  108. package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +21 -27
  109. package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -3
  110. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +10 -15
  111. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  112. package/dist/next/Combobox/Combobox2.js +3 -3
  113. package/dist/next/Combobox/ComboboxInput.js +1 -1
  114. package/dist/next/Drawer/Drawer.js +5 -1
  115. package/dist/next/Drawer/Drawer2.js +3 -3
  116. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  117. package/dist/next/Input/Input2.js +3 -3
  118. package/dist/next/Menu/Menu2.js +3 -3
  119. package/dist/next/Menu/MenuButton.js +16 -3
  120. package/dist/next/Menu/MenuPane.js +10 -2
  121. package/dist/next/Menu/SubMenu.js +10 -4
  122. package/dist/next/Menu/useCSSVariable.js +10 -0
  123. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  124. package/dist/next/SplitButton/SplitButton2.js +3 -3
  125. package/dist/next/TimePicker/TimePicker.js +8 -3
  126. package/dist/next/TimePicker/TimePicker2.js +3 -3
  127. package/dist/next/ToggleButton/styles.js +3 -3
  128. package/dist/next/index.d.ts +1 -0
  129. package/dist/next/index.js +156 -140
  130. package/dist/translations-en.js +3 -0
  131. package/dist/utils/Flyout/Flyout2.js +3 -3
  132. package/dist/utils/Flyout/FlyoutHeader.js +1 -1
  133. package/icons/package.json +1 -1
  134. package/next/package.json +2 -2
  135. package/package.json +11 -5
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._xfGJ4{position:relative}._xfGJ4[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._xfGJ4:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._W0iEY{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._Gx29b{margin-left:16px;font-size:14px;color:#32363a}._Gx29b ._rB3uq{margin-right:16px}";
4
- var filePickerStyles = {"container":"_xfGJ4","fileInput":"_W0iEY","fileDetails":"_Gx29b","fileName":"_rB3uq"};
5
- var stylesheet="._xfGJ4{position:relative}._xfGJ4[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._xfGJ4:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._W0iEY{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._Gx29b{margin-left:16px;font-size:14px;color:#32363a}._Gx29b ._rB3uq{margin-right:16px}";
3
+ var css_248z = "._xqwh9{position:relative}._xqwh9[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._xqwh9:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LdbYO{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._jHYie{margin-left:16px;font-size:14px;color:#32363a}._jHYie ._xHRnz{margin-right:16px}";
4
+ var filePickerStyles = {"container":"_xqwh9","fileInput":"_LdbYO","fileDetails":"_jHYie","fileName":"_xHRnz"};
5
+ var stylesheet="._xqwh9{position:relative}._xqwh9[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._xqwh9:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LdbYO{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._jHYie{margin-left:16px;font-size:14px;color:#32363a}._jHYie ._xHRnz{margin-right:16px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { filePickerStyles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._DWn8p{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._-L-ZS{color:#74777a;fill:#74777a}._EHEpy{color:#b00;fill:#b00}._2nEI3,._M7aMP{margin-left:-2px;margin-right:3px}";
4
- var styles = {"caption":"_DWn8p","helperText":"_-L-ZS","errorText":"_EHEpy","errorIcon":"_M7aMP","readOnlyIcon":"_2nEI3"};
5
- var stylesheet="._DWn8p{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._-L-ZS{color:#74777a;fill:#74777a}._EHEpy{color:#b00;fill:#b00}._2nEI3,._M7aMP{margin-left:-2px;margin-right:3px}";
3
+ var css_248z = "._4cqiW{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._4vMGv{color:#6a6d70;fill:#6a6d70}._u2Mst{color:#b00;fill:#b00}._hpn-z,._SpH8b{margin-left:-2px;margin-right:3px}";
4
+ var styles = {"caption":"_4cqiW","helperText":"_4vMGv","errorText":"_u2Mst","errorIcon":"_SpH8b","readOnlyIcon":"_hpn-z"};
5
+ var stylesheet="._4cqiW{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._4vMGv{color:#6a6d70;fill:#6a6d70}._u2Mst{color:#b00;fill:#b00}._hpn-z,._SpH8b{margin-left:-2px;margin-right:3px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._PyakO{display:flex;flex-direction:column;align-items:flex-start}._cIThr{margin-top:6px;max-width:100%}._cIThr *+*{margin-top:4px}";
4
- var styles = {"formField":"_PyakO","captionContainer":"_cIThr"};
5
- var stylesheet="._PyakO{display:flex;flex-direction:column;align-items:flex-start}._cIThr{margin-top:6px;max-width:100%}._cIThr *+*{margin-top:4px}";
3
+ var css_248z = "._ji-Z6{display:flex;flex-direction:column;align-items:flex-start}._HkC49{margin-top:6px;max-width:100%}._HkC49 *+*{margin-top:4px}";
4
+ var styles = {"formField":"_ji-Z6","captionContainer":"_HkC49"};
5
+ var stylesheet="._ji-Z6{display:flex;flex-direction:column;align-items:flex-start}._HkC49{margin-top:6px;max-width:100%}._HkC49 *+*{margin-top:4px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -28,7 +28,12 @@ const FullScreenTakeover = /*#__PURE__*/forwardRef((_ref, ref) => {
28
28
  [styles.transitionIn]: isOpen,
29
29
  [styles.transitionOut]: !isOpen
30
30
  });
31
- useEventListener(document, 'keydown', e => e.key === 'Escape' && onClose(e));
31
+ useEventListener(document, 'keydown', e => {
32
+ if (e.key === 'Escape') {
33
+ if (isOpen) e.preventDefault(); // Prevent Safari from exiting full-screen mode
34
+ onClose(e);
35
+ }
36
+ });
32
37
  useEffect(() => {
33
38
  if (isOpen) {
34
39
  setFocusedElementWhenDialogOpened(document.activeElement);
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._ox5vY{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _QBFda{0%{transform:scale3d(.7,.7,.7);opacity:0}}._irDJp{animation:_QBFda both;animation-duration:.2s}@keyframes _LAwbO{to{transform:scale3d(.7,.7,.7);opacity:0}}._bkCOe{animation:_LAwbO both;animation-duration:.2s}";
4
- var styles = {"dialog":"_ox5vY","transitionIn":"_irDJp","showAnimation":"_QBFda","transitionOut":"_bkCOe","hideAnimation":"_LAwbO"};
5
- var stylesheet="._ox5vY{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _QBFda{0%{transform:scale3d(.7,.7,.7);opacity:0}}._irDJp{animation:_QBFda both;animation-duration:.2s}@keyframes _LAwbO{to{transform:scale3d(.7,.7,.7);opacity:0}}._bkCOe{animation:_LAwbO both;animation-duration:.2s}";
3
+ var css_248z = "._fxvx7{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _74hdw{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GcEyB{animation:_74hdw both;animation-duration:.2s}@keyframes _GyNUZ{to{transform:scale3d(.7,.7,.7);opacity:0}}._Sxy9o{animation:_GyNUZ both;animation-duration:.2s}";
4
+ var styles = {"dialog":"_fxvx7","transitionIn":"_GcEyB","showAnimation":"_74hdw","transitionOut":"_Sxy9o","hideAnimation":"_GyNUZ"};
5
+ var stylesheet="._fxvx7{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _74hdw{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GcEyB{animation:_74hdw both;animation-duration:.2s}@keyframes _GyNUZ{to{transform:scale3d(.7,.7,.7);opacity:0}}._Sxy9o{animation:_GyNUZ both;animation-duration:.2s}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -11,7 +11,9 @@ var IconTypes = {
11
11
  AddItem: 'AddItem',
12
12
  Addons: 'Addons',
13
13
  AdminGears: 'AdminGears',
14
+ AgentLeft: 'AgentLeft',
14
15
  AgentPerformance: 'AgentPerformance',
16
+ AgentRight: 'AgentRight',
15
17
  AggregateFunction: 'AggregateFunction',
16
18
  AlignImageBottom: 'AlignImageBottom',
17
19
  AlignImageCenter: 'AlignImageCenter',
@@ -80,6 +82,9 @@ var IconTypes = {
80
82
  ChevronDown: 'ChevronDown',
81
83
  ChevronLeft: 'ChevronLeft',
82
84
  ChevronRight: 'ChevronRight',
85
+ ChevronSet: 'ChevronSet',
86
+ ChevronSkipBack: 'ChevronSkipBack',
87
+ ChevronSkipForward: 'ChevronSkipForward',
83
88
  ChevronUp: 'ChevronUp',
84
89
  Class: 'Class',
85
90
  ClearFormatting: 'ClearFormatting',
@@ -94,6 +99,7 @@ var IconTypes = {
94
99
  CodeBrackets: 'CodeBrackets',
95
100
  Coffee: 'Coffee',
96
101
  ColumnFilter: 'ColumnFilter',
102
+ Columns: 'Columns',
97
103
  Comments: 'Comments',
98
104
  Condition: 'Condition',
99
105
  ConstantSum: 'ConstantSum',
@@ -109,6 +115,8 @@ var IconTypes = {
109
115
  CreditCard: 'CreditCard',
110
116
  CrossAnalytics: 'CrossAnalytics',
111
117
  CustomMetric: 'CustomMetric',
118
+ CustomerLeft: 'CustomerLeft',
119
+ CustomerRight: 'CustomerRight',
112
120
  CxLogo: 'CxLogo',
113
121
  Dashboard: 'Dashboard',
114
122
  DataAnalysis: 'DataAnalysis',
@@ -121,6 +129,7 @@ var IconTypes = {
121
129
  Denied: 'Denied',
122
130
  DescriptiveText: 'DescriptiveText',
123
131
  Desktop: 'Desktop',
132
+ Detected: 'Detected',
124
133
  Diamond: 'Diamond',
125
134
  Directory: 'Directory',
126
135
  DisplayLogic: 'DisplayLogic',
@@ -140,8 +149,14 @@ var IconTypes = {
140
149
  EXCOVIDSolution: 'EXCOVIDSolution',
141
150
  EditorGeneric: 'EditorGeneric',
142
151
  Effort: 'Effort',
152
+ EffortEasy: 'EffortEasy',
153
+ EffortHard: 'EffortHard',
154
+ EffortMixed: 'EffortMixed',
143
155
  EffortNegative: 'EffortNegative',
156
+ EffortNeutral: 'EffortNeutral',
144
157
  EffortPositive: 'EffortPositive',
158
+ EffortVeryEasy: 'EffortVeryEasy',
159
+ EffortVeryHard: 'EffortVeryHard',
145
160
  EllipsisHorizontal: 'EllipsisHorizontal',
146
161
  EllipsisVertical: 'EllipsisVertical',
147
162
  EmojiColorAngry: 'EmojiColorAngry',
@@ -212,6 +227,7 @@ var IconTypes = {
212
227
  Hotspot: 'Hotspot',
213
228
  Hyperlink: 'Hyperlink',
214
229
  IceCream: 'IceCream',
230
+ Ignored: 'Ignored',
215
231
  Image: 'Image',
216
232
  ImportedData: 'ImportedData',
217
233
  Inactive: 'Inactive',
@@ -219,8 +235,12 @@ var IconTypes = {
219
235
  IndentMore: 'IndentMore',
220
236
  Information: 'Information',
221
237
  InlineQuestion: 'InlineQuestion',
238
+ InsertLine: 'InsertLine',
222
239
  Integer: 'Integer',
223
240
  Integration: 'Integration',
241
+ IntensityHigh: 'IntensityHigh',
242
+ IntensityLow: 'IntensityLow',
243
+ IntensityMedium: 'IntensityMedium',
224
244
  Intercept: 'Intercept',
225
245
  JoinInner: 'JoinInner',
226
246
  JoinLeftOuter: 'JoinLeftOuter',
@@ -323,6 +343,7 @@ var IconTypes = {
323
343
  RSS: 'RSS',
324
344
  RageClick: 'RageClick',
325
345
  Rainy: 'Rainy',
346
+ RaiseHand: 'RaiseHand',
326
347
  RecodedValues: 'RecodedValues',
327
348
  Record: 'Record',
328
349
  Redo: 'Redo',
@@ -355,6 +376,12 @@ var IconTypes = {
355
376
  SelectColumn: 'SelectColumn',
356
377
  Send: 'Send',
357
378
  SentenceCase: 'SentenceCase',
379
+ SentimentMixed: 'SentimentMixed',
380
+ SentimentNegative: 'SentimentNegative',
381
+ SentimentNeutral: 'SentimentNeutral',
382
+ SentimentPositive: 'SentimentPositive',
383
+ SentimentVeryNegative: 'SentimentVeryNegative',
384
+ SentimentVeryPositive: 'SentimentVeryPositive',
358
385
  Settings: 'Settings',
359
386
  Share: 'Share',
360
387
  SharedFolder: 'SharedFolder',
@@ -435,6 +462,7 @@ var IconTypes = {
435
462
  Transaction: 'Transaction',
436
463
  Translation: 'Translation',
437
464
  Trash: 'Trash',
465
+ Undetected: 'Undetected',
438
466
  Undo: 'Undo',
439
467
  Union: 'Union',
440
468
  UniqueLink: 'UniqueLink',
@@ -1,7 +1,7 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default from 'react';
3
3
  import classNames from 'classnames';
4
- import styles from './IconButton2.js';
4
+ import iconButtonStyles from './IconButton2.js';
5
5
  import '../Tooltip/index.js';
6
6
  import Tooltip from '../Tooltip/Tooltip.js';
7
7
 
@@ -20,8 +20,8 @@ const IconButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
20
20
  onKeyDown,
21
21
  ...rest
22
22
  } = _ref;
23
- const classes = classNames(className, styles.button, {
24
- [styles.disabled]: disabled
23
+ const classes = classNames(className, iconButtonStyles.button, {
24
+ [iconButtonStyles.disabled]: disabled
25
25
  });
26
26
  if (children.props.size) {
27
27
  // eslint-disable-next-line no-console
@@ -53,5 +53,6 @@ const IconButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
53
53
  }
54
54
  return iconButtonComponent;
55
55
  });
56
+ var IconButton$1 = IconButton;
56
57
 
57
- export { IconButton as default };
58
+ export { IconButton$1 as default };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._oL-6j{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._oL-6j:focus{outline:none}._oL-6j:hover:not(._jhdYU){background-color:rgba(50,54,58,.08)}._oL-6j:active:not(._jhdYU){background-color:rgba(50,54,58,.11);stroke-width:2}._oL-6j._jhdYU{cursor:not-allowed;fill:rgba(81,85,89,.6)}._oL-6j.focus-visible,._oL-6j:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"button":"_oL-6j","disabled":"_jhdYU"};
5
- var stylesheet="._oL-6j{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._oL-6j:focus{outline:none}._oL-6j:hover:not(._jhdYU){background-color:rgba(50,54,58,.08)}._oL-6j:active:not(._jhdYU){background-color:rgba(50,54,58,.11);stroke-width:2}._oL-6j._jhdYU{cursor:not-allowed;fill:rgba(81,85,89,.6)}._oL-6j.focus-visible,._oL-6j:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._X5ZnV{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._X5ZnV:focus{outline:none}._X5ZnV:hover:not(._quipx){background-color:rgba(50,54,58,.08)}._X5ZnV:active:not(._quipx){background-color:rgba(50,54,58,.11);stroke-width:2}._X5ZnV._quipx{cursor:not-allowed;fill:rgba(81,85,89,.6)}._X5ZnV.focus-visible,._X5ZnV:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var iconButtonStyles = {"button":"_X5ZnV","disabled":"_quipx"};
5
+ var stylesheet="._X5ZnV{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._X5ZnV:focus{outline:none}._X5ZnV:hover:not(._quipx){background-color:rgba(50,54,58,.08)}._X5ZnV:active:not(._quipx){background-color:rgba(50,54,58,.11);stroke-width:2}._X5ZnV._quipx{cursor:not-allowed;fill:rgba(81,85,89,.6)}._X5ZnV.focus-visible,._X5ZnV:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  styleInject(css_248z);
7
7
 
8
- export { styles as default, stylesheet };
8
+ export { iconButtonStyles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._vJ1Cu{display:inline-block}._pfxbp{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._pfxbp::-moz-selection{background-color:rgba(11,110,208,.11)}._pfxbp::selection{background-color:rgba(11,110,208,.11)}._pfxbp:focus,._pfxbp:hover{background-color:#f5f5f5}._pfxbp:focus{border:2px solid #0a3f88;padding:3px}._pfxbp:focus._uVKuJ{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
4
- var styles = {"container":"_vJ1Cu","inlineInput":"_pfxbp","isEditing":"_uVKuJ"};
5
- var stylesheet="._vJ1Cu{display:inline-block}._pfxbp{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._pfxbp::-moz-selection{background-color:rgba(11,110,208,.11)}._pfxbp::selection{background-color:rgba(11,110,208,.11)}._pfxbp:focus,._pfxbp:hover{background-color:#f5f5f5}._pfxbp:focus{border:2px solid #0a3f88;padding:3px}._pfxbp:focus._uVKuJ{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
3
+ var css_248z = "._1TFaI{display:inline-block}._zJIuj{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._zJIuj::-moz-selection{background-color:rgba(11,110,208,.11)}._zJIuj::selection{background-color:rgba(11,110,208,.11)}._zJIuj:focus,._zJIuj:hover{background-color:#f5f5f5}._zJIuj:focus{border:2px solid #0a3f88;padding:3px}._zJIuj:focus._bgmkn{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
4
+ var styles = {"container":"_1TFaI","inlineInput":"_zJIuj","isEditing":"_bgmkn"};
5
+ var stylesheet="._1TFaI{display:inline-block}._zJIuj{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._zJIuj::-moz-selection{background-color:rgba(11,110,208,.11)}._zJIuj::selection{background-color:rgba(11,110,208,.11)}._zJIuj:focus,._zJIuj:hover{background-color:#f5f5f5}._zJIuj:focus{border:2px solid #0a3f88;padding:3px}._zJIuj:focus._bgmkn{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._UI-Q6{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UI-Q6::-moz-placeholder{color:#515559;opacity:1}._UI-Q6::placeholder{color:#515559;opacity:1}._UI-Q6:hover{cursor:pointer;background-color:#f5f5f5}._UI-Q6:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._UI-Q6._jTMbC{border-color:#b00}._UI-Q6._jTMbC:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UI-Q6:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UI-Q6:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UI-Q6:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UI-Q6._quq1x{height:auto}._UI-Q6._quq1x::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._UI-Q6._8ew-r{display:block;width:100%}._UI-Q6._rkpMg{padding:4px 8px}input._UI-Q6._rkpMg{height:26px;min-height:26px}[type=number]._UI-Q6{-moz-appearance:textfield}[type=number]._UI-Q6::-webkit-inner-spin-button,[type=number]._UI-Q6::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._9qSWw{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._9qSWw:hover{cursor:pointer}._9qSWw._TbI3j{color:#0b6ed0}._INB7-{margin-top:4px}";
4
- var styles = {"input":"_UI-Q6","invalid":"_jTMbC","multiline":"_quq1x","full":"_8ew-r","small":"_rkpMg","label":"_9qSWw","focused":"_TbI3j","wrappedInput":"_INB7-"};
5
- var stylesheet="._UI-Q6{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UI-Q6::-moz-placeholder{color:#515559;opacity:1}._UI-Q6::placeholder{color:#515559;opacity:1}._UI-Q6:hover{cursor:pointer;background-color:#f5f5f5}._UI-Q6:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._UI-Q6._jTMbC{border-color:#b00}._UI-Q6._jTMbC:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UI-Q6:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UI-Q6:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UI-Q6:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UI-Q6._quq1x{height:auto}._UI-Q6._quq1x::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._UI-Q6._8ew-r{display:block;width:100%}._UI-Q6._rkpMg{padding:4px 8px}input._UI-Q6._rkpMg{height:26px;min-height:26px}[type=number]._UI-Q6{-moz-appearance:textfield}[type=number]._UI-Q6::-webkit-inner-spin-button,[type=number]._UI-Q6::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._9qSWw{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._9qSWw:hover{cursor:pointer}._9qSWw._TbI3j{color:#0b6ed0}._INB7-{margin-top:4px}";
3
+ var css_248z = "._dBcAQ{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._dBcAQ::-moz-placeholder{color:#515559;opacity:1}._dBcAQ::placeholder{color:#515559;opacity:1}._dBcAQ:hover{cursor:pointer;background-color:#f5f5f5}._dBcAQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._dBcAQ._sasde{border-color:#b00}._dBcAQ._sasde:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._dBcAQ:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._dBcAQ:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ._oAwJ4{height:auto}._dBcAQ._oAwJ4::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._dBcAQ._Ed5IZ{display:block;width:100%}._dBcAQ._4V75M{padding:4px 8px}input._dBcAQ._4V75M{height:26px;min-height:26px}[type=number]._dBcAQ{-moz-appearance:textfield}[type=number]._dBcAQ::-webkit-inner-spin-button,[type=number]._dBcAQ::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._rTC96{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._rTC96:hover{cursor:pointer}._rTC96._4lf4c{color:#0b6ed0}._oxOIL{margin-top:4px}";
4
+ var styles = {"input":"_dBcAQ","invalid":"_sasde","multiline":"_oAwJ4","full":"_Ed5IZ","small":"_4V75M","label":"_rTC96","focused":"_4lf4c","wrappedInput":"_oxOIL"};
5
+ var stylesheet="._dBcAQ{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._dBcAQ::-moz-placeholder{color:#515559;opacity:1}._dBcAQ::placeholder{color:#515559;opacity:1}._dBcAQ:hover{cursor:pointer;background-color:#f5f5f5}._dBcAQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._dBcAQ._sasde{border-color:#b00}._dBcAQ._sasde:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._dBcAQ:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._dBcAQ:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dBcAQ._oAwJ4{height:auto}._dBcAQ._oAwJ4::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._dBcAQ._Ed5IZ{display:block;width:100%}._dBcAQ._4V75M{padding:4px 8px}input._dBcAQ._4V75M{height:26px;min-height:26px}[type=number]._dBcAQ{-moz-appearance:textfield}[type=number]._dBcAQ::-webkit-inner-spin-button,[type=number]._dBcAQ::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._rTC96{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._rTC96:hover{cursor:pointer}._rTC96._4lf4c{color:#0b6ed0}._oxOIL{margin-top:4px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._1mtQX{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._1mtQX._dTgZc{height:26px;min-height:26px;padding:5px 8px}._qj0VK{display:flex;align-items:stretch}._qj0VK._NRjNC{width:100%}._qj0VK ._mhaVA{margin:0;position:relative;flex-shrink:0;z-index:10}._qj0VK ._mhaVA:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._qj0VK ._mhaVA:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qj0VK ._mhaVA:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qj0VK ._mhaVA:last-child,._qj0VK ._mhaVA:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qj0VK ._mhaVA:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qj0VK ._mhaVA._6L0m5{flex-shrink:1;min-width:40px;z-index:0}._qj0VK ._mhaVA._6L0m5._NRjNC{flex-grow:1}._qj0VK ._mhaVA:focus{z-index:20}";
4
- var styles = {"addon":"_1mtQX","small":"_dTgZc","inputGroup":"_qj0VK","full":"_NRjNC","inputGroupElement":"_mhaVA","input":"_6L0m5"};
5
- var stylesheet="._1mtQX{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._1mtQX._dTgZc{height:26px;min-height:26px;padding:5px 8px}._qj0VK{display:flex;align-items:stretch}._qj0VK._NRjNC{width:100%}._qj0VK ._mhaVA{margin:0;position:relative;flex-shrink:0;z-index:10}._qj0VK ._mhaVA:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._qj0VK ._mhaVA:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qj0VK ._mhaVA:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qj0VK ._mhaVA:last-child,._qj0VK ._mhaVA:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qj0VK ._mhaVA:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qj0VK ._mhaVA._6L0m5{flex-shrink:1;min-width:40px;z-index:0}._qj0VK ._mhaVA._6L0m5._NRjNC{flex-grow:1}._qj0VK ._mhaVA:focus{z-index:20}";
3
+ var css_248z = "._f1Ei9{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._f1Ei9._FAD-h{height:26px;min-height:26px;padding:5px 8px}._tWlwG{display:flex;align-items:stretch}._tWlwG._3YMdT{width:100%}._tWlwG ._l6dOW{margin:0;position:relative;flex-shrink:0;z-index:10}._tWlwG ._l6dOW:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._tWlwG ._l6dOW:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._tWlwG ._l6dOW:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._tWlwG ._l6dOW:last-child,._tWlwG ._l6dOW:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._tWlwG ._l6dOW:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._tWlwG ._l6dOW._jvJy4{flex-shrink:1;min-width:40px;z-index:0}._tWlwG ._l6dOW._jvJy4._3YMdT{flex-grow:1}._tWlwG ._l6dOW:focus{z-index:20}";
4
+ var styles = {"addon":"_f1Ei9","small":"_FAD-h","inputGroup":"_tWlwG","full":"_3YMdT","inputGroupElement":"_l6dOW","input":"_jvJy4"};
5
+ var stylesheet="._f1Ei9{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._f1Ei9._FAD-h{height:26px;min-height:26px;padding:5px 8px}._tWlwG{display:flex;align-items:stretch}._tWlwG._3YMdT{width:100%}._tWlwG ._l6dOW{margin:0;position:relative;flex-shrink:0;z-index:10}._tWlwG ._l6dOW:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._tWlwG ._l6dOW:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._tWlwG ._l6dOW:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._tWlwG ._l6dOW:last-child,._tWlwG ._l6dOW:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._tWlwG ._l6dOW:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._tWlwG ._l6dOW._jvJy4{flex-shrink:1;min-width:40px;z-index:0}._tWlwG ._l6dOW._jvJy4._3YMdT{flex-grow:1}._tWlwG ._l6dOW:focus{z-index:20}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._BN4wB{font-size:14px}._Sa4fS{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._mQOHy{color:#0b6ed0}";
4
- var styles = {"label":"_BN4wB","control":"_Sa4fS","focused":"_mQOHy"};
5
- var stylesheet="._BN4wB{font-size:14px}._Sa4fS{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._mQOHy{color:#0b6ed0}";
3
+ var css_248z = "._jfwgH{font-size:14px}._zw-Ib{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._aAMaL{color:#0b6ed0}";
4
+ var styles = {"label":"_jfwgH","control":"_zw-Ib","focused":"_aAMaL"};
5
+ var stylesheet="._jfwgH{font-size:14px}._zw-Ib{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._aAMaL{color:#0b6ed0}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._7y-QP{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._7y-QP:active:focus,._7y-QP:focus{outline:none}._7y-QP:visited{color:#0854a1}._7y-QP:hover{color:#085caf}._7y-QP:active{color:#0854a1}._7y-QP.focus-visible,._7y-QP:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"link":"_7y-QP"};
5
- var stylesheet="._7y-QP{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._7y-QP:active:focus,._7y-QP:focus{outline:none}._7y-QP:visited{color:#0854a1}._7y-QP:hover{color:#085caf}._7y-QP:active{color:#0854a1}._7y-QP.focus-visible,._7y-QP:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._Ponxb{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._Ponxb:active:focus,._Ponxb:focus{outline:none}._Ponxb:visited{color:#0854a1}._Ponxb:hover{color:#085caf}._Ponxb:active{color:#0854a1}._Ponxb.focus-visible,._Ponxb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"link":"_Ponxb"};
5
+ var stylesheet="._Ponxb{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._Ponxb:active:focus,._Ponxb:focus{outline:none}._Ponxb:visited{color:#0854a1}._Ponxb:hover{color:#085caf}._Ponxb:active{color:#0854a1}._Ponxb.focus-visible,._Ponxb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._ceLzc{position:relative;display:inline-block}._ceLzc._ET3A1{min-height:20px;min-width:20px}._ceLzc._blrUV{min-height:25px;min-width:25px}._ceLzc._6JLvV{min-height:40px;min-width:40px}._ceLzc._6YPlz{min-height:64px;min-width:64px}._ceLzc ._nlfOD{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._ceLzc ._nlfOD._W9yKe{visibility:hidden}._ceLzc ._nlfOD div{position:absolute;transform:rotate(20deg)}._ceLzc ._nlfOD div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_nlfOD .8s linear infinite}._ceLzc ._nlfOD div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._ceLzc ._nlfOD div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._ceLzc ._nlfOD div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._ceLzc ._nlfOD div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._ceLzc ._nlfOD div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._ceLzc ._nlfOD div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._ceLzc ._nlfOD div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._ceLzc ._nlfOD div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._ceLzc ._nlfOD div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._ceLzc ._nlfOD div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._ceLzc ._6YPlz div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._ceLzc ._ET3A1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._ceLzc ._blrUV div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._ceLzc ._412cV div div:nth-child(-n+9):after{background:#fff}._ceLzc ._-zYHC{width:100%;height:100%}._ceLzc ._-zYHC._zK519{pointer-events:none}._ceLzc ._-zYHC._W9yKe{opacity:0}._ceLzc ._-zYHC._lFu1R{opacity:.5}@keyframes _nlfOD{0%{opacity:1}to{opacity:0}}";
4
- var styles = {"spinnerContainer":"_ceLzc","xs":"_ET3A1","small":"_blrUV","medium":"_6JLvV","large":"_6YPlz","spinnerComponent":"_nlfOD","hide":"_W9yKe","inverted":"_412cV","spinnerContent":"_-zYHC","disablePointerEvents":"_zK519","fade":"_lFu1R"};
5
- var stylesheet="._ceLzc{position:relative;display:inline-block}._ceLzc._ET3A1{min-height:20px;min-width:20px}._ceLzc._blrUV{min-height:25px;min-width:25px}._ceLzc._6JLvV{min-height:40px;min-width:40px}._ceLzc._6YPlz{min-height:64px;min-width:64px}._ceLzc ._nlfOD{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._ceLzc ._nlfOD._W9yKe{visibility:hidden}._ceLzc ._nlfOD div{position:absolute;transform:rotate(20deg)}._ceLzc ._nlfOD div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_nlfOD .8s linear infinite}._ceLzc ._nlfOD div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._ceLzc ._nlfOD div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._ceLzc ._nlfOD div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._ceLzc ._nlfOD div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._ceLzc ._nlfOD div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._ceLzc ._nlfOD div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._ceLzc ._nlfOD div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._ceLzc ._nlfOD div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._ceLzc ._nlfOD div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._ceLzc ._nlfOD div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._ceLzc ._6YPlz div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._ceLzc ._ET3A1 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._ceLzc ._blrUV div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._ceLzc ._412cV div div:nth-child(-n+9):after{background:#fff}._ceLzc ._-zYHC{width:100%;height:100%}._ceLzc ._-zYHC._zK519{pointer-events:none}._ceLzc ._-zYHC._W9yKe{opacity:0}._ceLzc ._-zYHC._lFu1R{opacity:.5}@keyframes _nlfOD{0%{opacity:1}to{opacity:0}}";
3
+ var css_248z = "._VJaBL{position:relative;display:inline-block}._VJaBL._ZArMM{min-height:20px;min-width:20px}._VJaBL._lYElI{min-height:25px;min-width:25px}._VJaBL._mCqWR{min-height:40px;min-width:40px}._VJaBL._E6k-m{min-height:64px;min-width:64px}._VJaBL ._VEPxj{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._VJaBL ._VEPxj._4BTJY{visibility:hidden}._VJaBL ._VEPxj div{position:absolute;transform:rotate(20deg)}._VJaBL ._VEPxj div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_VEPxj .8s linear infinite}._VJaBL ._VEPxj div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._VJaBL ._VEPxj div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._VJaBL ._VEPxj div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._VJaBL ._VEPxj div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._VJaBL ._VEPxj div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._VJaBL ._VEPxj div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._VJaBL ._VEPxj div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._VJaBL ._VEPxj div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._VJaBL ._VEPxj div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._VJaBL ._VEPxj div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._VJaBL ._E6k-m div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._VJaBL ._ZArMM div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._VJaBL ._lYElI div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._VJaBL ._RVYaq div div:nth-child(-n+9):after{background:#fff}._VJaBL ._wM5dY{width:100%;height:100%}._VJaBL ._wM5dY._5BLtd{pointer-events:none}._VJaBL ._wM5dY._4BTJY{opacity:0}._VJaBL ._wM5dY._-3-iC{opacity:.5}@keyframes _VEPxj{0%{opacity:1}to{opacity:0}}";
4
+ var styles = {"spinnerContainer":"_VJaBL","xs":"_ZArMM","small":"_lYElI","medium":"_mCqWR","large":"_E6k-m","spinnerComponent":"_VEPxj","hide":"_4BTJY","inverted":"_RVYaq","spinnerContent":"_wM5dY","disablePointerEvents":"_5BLtd","fade":"_-3-iC"};
5
+ var stylesheet="._VJaBL{position:relative;display:inline-block}._VJaBL._ZArMM{min-height:20px;min-width:20px}._VJaBL._lYElI{min-height:25px;min-width:25px}._VJaBL._mCqWR{min-height:40px;min-width:40px}._VJaBL._E6k-m{min-height:64px;min-width:64px}._VJaBL ._VEPxj{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._VJaBL ._VEPxj._4BTJY{visibility:hidden}._VJaBL ._VEPxj div{position:absolute;transform:rotate(20deg)}._VJaBL ._VEPxj div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_VEPxj .8s linear infinite}._VJaBL ._VEPxj div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._VJaBL ._VEPxj div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._VJaBL ._VEPxj div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._VJaBL ._VEPxj div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._VJaBL ._VEPxj div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._VJaBL ._VEPxj div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._VJaBL ._VEPxj div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._VJaBL ._VEPxj div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._VJaBL ._VEPxj div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._VJaBL ._VEPxj div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._VJaBL ._E6k-m div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._VJaBL ._ZArMM div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._VJaBL ._lYElI div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._VJaBL ._RVYaq div div:nth-child(-n+9):after{background:#fff}._VJaBL ._wM5dY{width:100%;height:100%}._VJaBL ._wM5dY._5BLtd{pointer-events:none}._VJaBL ._wM5dY._4BTJY{opacity:0}._VJaBL ._wM5dY._-3-iC{opacity:.5}@keyframes _VEPxj{0%{opacity:1}to{opacity:0}}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,4 +1,4 @@
1
- import React__default, { useCallback } from 'react';
1
+ import React__default, { useMemo, useCallback } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import styles from './LogicEditor2.js';
4
4
  import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, SET_VALUE_ANY, SET_VALUE_ALL } from './utils.js';
@@ -31,10 +31,10 @@ const ConditionSet = function ConditionSet(_ref) {
31
31
  readOnly,
32
32
  rootDataTestId
33
33
  } = useLogicEditorContext();
34
- const position = {
34
+ const position = useMemo(() => ({
35
35
  parent,
36
36
  index
37
- };
37
+ }), [parent, index]);
38
38
  const conditionRef = React__default.useRef(null);
39
39
  const lastConnectionRef = React__default.useRef();
40
40
  const lastItemRef = React__default.useRef();
@@ -63,12 +63,12 @@ const ConditionSet = function ConditionSet(_ref) {
63
63
  }
64
64
  useEventListener(window, 'resize', setupLastLine);
65
65
  React__default.useLayoutEffect(setupLastLine);
66
- const handleNewLogicItem = (item, newItemIndex) => () => {
66
+ const handleNewLogicItem = useCallback((item, newItemIndex) => {
67
67
  onNewLogicItem(item, {
68
68
  parent: position,
69
69
  index: newItemIndex
70
70
  });
71
- };
71
+ }, [position, onNewLogicItem]);
72
72
 
73
73
  /**
74
74
  * Returns a data-testid unique to the current position in the tree.
@@ -89,13 +89,12 @@ const ConditionSet = function ConditionSet(_ref) {
89
89
  }
90
90
  return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
91
91
  }, [fixedSet, rootDataTestId]);
92
- function renderControls(itemType, itemPosition, itemIndex, itemLevel, numberOfSetItems, itemId) {
92
+ function renderControls(itemType, itemPosition, itemLevel, numberOfSetItems, itemId) {
93
93
  return /*#__PURE__*/React__default.createElement(Controls, {
94
94
  handleNewLogicItem: handleNewLogicItem,
95
- level: level,
96
95
  itemType: itemType,
97
- itemPosition: itemPosition,
98
- itemIndex: itemIndex,
96
+ parent: itemPosition.parent,
97
+ itemIndex: itemPosition.index,
99
98
  itemLevel: itemLevel,
100
99
  numberOfSetItems: numberOfSetItems,
101
100
  itemId: itemId,
@@ -131,7 +130,7 @@ const ConditionSet = function ConditionSet(_ref) {
131
130
  position: conditionPosition,
132
131
  condition: item,
133
132
  firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
134
- conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, i + 1, level + 1, value.conditions.length, item.id) : undefined
133
+ conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, value.conditions.length, item.id) : undefined
135
134
  }));
136
135
  }
137
136
  if (item.logicType === LOGIC_TYPE_SET) {
@@ -173,7 +172,7 @@ const ConditionSet = function ConditionSet(_ref) {
173
172
  }), /*#__PURE__*/React__default.createElement(DropdownOption, {
174
173
  value: SET_VALUE_ALL,
175
174
  label: String(translations.all)
176
- }))), !readOnly && renderControls(LOGIC_TYPE_SET, position, index, level, value.conditions.length, value.id)), /*#__PURE__*/React__default.createElement("div", {
175
+ }))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.conditions.length, value.id)), /*#__PURE__*/React__default.createElement("div", {
177
176
  role: "group",
178
177
  ref: conditionRef
179
178
  }, renderSetChildren()));
@@ -1,8 +1,8 @@
1
- import React__default from 'react';
1
+ import React__default, { useMemo } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import styles from './LogicEditor2.js';
4
4
  import '../../icons/index.es.js';
5
- import { LOGIC_TYPE_CONDITION, newCondition, LOGIC_TYPE_SET, newConditionSet } from './utils.js';
5
+ import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, newCondition, newConditionSet } from './utils.js';
6
6
  import '../NewMenu/index.js';
7
7
  import '../IconButton/index.js';
8
8
  import { useLogicEditorContext } from './LogicEditorContext.js';
@@ -17,9 +17,8 @@ import RemoveItemIcon from '../../icons/components/RemoveItemIcon.js';
17
17
  const Controls = function Controls(_ref) {
18
18
  let {
19
19
  handleNewLogicItem,
20
- level,
21
20
  itemType,
22
- itemPosition,
21
+ parent,
23
22
  itemIndex,
24
23
  itemLevel,
25
24
  itemId,
@@ -35,11 +34,14 @@ const Controls = function Controls(_ref) {
35
34
  maxConditions,
36
35
  controlsRef
37
36
  } = useLogicEditorContext();
38
- return /*#__PURE__*/React__default.createElement("div", {
39
- className: classNames({
40
- [styles.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
41
- })
42
- }, /*#__PURE__*/React__default.createElement(Menu, {
37
+ const canAddNewSet = useMemo(() => {
38
+ // If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
39
+ // If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
40
+ const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
41
+ return !fixedSet && levelOfNewSet <= maxNestedSets;
42
+ }, [fixedSet, itemLevel, maxNestedSets, itemType]);
43
+ const indexOfNewItem = useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
44
+ const menu = useMemo(() => /*#__PURE__*/React__default.createElement(Menu, {
43
45
  anchor: /*#__PURE__*/React__default.createElement(IconButton, {
44
46
  "aria-label": translations.conditionActions,
45
47
  className: styles.controls,
@@ -54,14 +56,14 @@ const Controls = function Controls(_ref) {
54
56
  }
55
57
  }, !(fixedSet && maxConditions && numberOfSetItems >= maxConditions) && /*#__PURE__*/React__default.createElement(MenuItem, {
56
58
  value: "add-condition",
57
- onSelect: handleNewLogicItem(newCondition(), itemType === LOGIC_TYPE_SET ? 0 : itemIndex)
59
+ onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
58
60
  }, /*#__PURE__*/React__default.createElement(AddItemIcon, {
59
61
  "aria-hidden": "true"
60
62
  }), /*#__PURE__*/React__default.createElement("span", {
61
63
  className: styles.controlMenuItem
62
- }, translations.insertConditionBelow)), !fixedSet && level < maxNestedSets && /*#__PURE__*/React__default.createElement(MenuItem, {
64
+ }, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default.createElement(MenuItem, {
63
65
  value: "add-set",
64
- onSelect: handleNewLogicItem(newConditionSet(defaultSetValue), itemType === LOGIC_TYPE_SET ? 0 : itemIndex)
66
+ onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
65
67
  }, /*#__PURE__*/React__default.createElement(FilterIcon, {
66
68
  "aria-hidden": "true"
67
69
  }), /*#__PURE__*/React__default.createElement("span", {
@@ -69,7 +71,10 @@ const Controls = function Controls(_ref) {
69
71
  }, translations.insertSetBelow)), (fixedSet && numberOfSetItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default.createElement(MenuItem, {
70
72
  value: "delete",
71
73
  onSelect: e => {
72
- onDelete(itemPosition);
74
+ onDelete({
75
+ parent,
76
+ index: itemIndex
77
+ });
73
78
  // We want to move focus to the previous control
74
79
  // item when this one is deleted, so we need to
75
80
  // prevent Menu's default focus behavior
@@ -79,7 +84,16 @@ const Controls = function Controls(_ref) {
79
84
  "aria-hidden": "true"
80
85
  }), /*#__PURE__*/React__default.createElement("span", {
81
86
  className: styles.controlMenuItem
82
- }, translations.delete))));
87
+ }, translations.delete))), [
88
+ // context
89
+ translations, fixedSet, onDelete, defaultSetValue, maxConditions, controlsRef,
90
+ // props
91
+ handleNewLogicItem, parent, itemIndex, itemLevel, itemId, numberOfSetItems, dataTestId, canAddNewSet, indexOfNewItem]);
92
+ return /*#__PURE__*/React__default.createElement("div", {
93
+ className: classNames({
94
+ [styles.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
95
+ })
96
+ }, menu);
83
97
  };
84
98
 
85
99
  export { Controls as default };