@qualtrics/ui-react 2.21.0 → 2.22.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 (204) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/__shared/cjs/{index-201e8786.js → index-025620bf.js} +666 -549
  3. package/dist/__shared/cjs/{index-0ae99de2.js → index-41a013d2.js} +4 -4
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/Accordion2.js +3 -3
  6. package/dist/components/Accordion/AccordionHeader.js +4 -4
  7. package/dist/components/Accordion/AccordionPanel.js +3 -3
  8. package/dist/components/Button/Button.js +3 -3
  9. package/dist/components/Button/Button2.js +2 -2
  10. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  11. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  12. package/dist/components/Checkbox/Checkbox.js +11 -11
  13. package/dist/components/Checkbox/Checkbox2.js +3 -3
  14. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  15. package/dist/components/ColorPicker/Alpha.js +12 -9
  16. package/dist/components/ColorPicker/ColorPicker.js +10 -8
  17. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  18. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
  19. package/dist/components/ColorPicker/Hue.js +3 -2
  20. package/dist/components/ColorPicker/Palette.js +7 -5
  21. package/dist/components/ColorPicker/Saturation.js +9 -8
  22. package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
  23. package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
  24. package/dist/components/ColorPicker/utils/validateHex.js +10 -9
  25. package/dist/components/Combobox/Combobox.js +47 -26
  26. package/dist/components/Combobox/Combobox2.js +3 -3
  27. package/dist/components/Combobox/ComboboxHeader.js +1 -1
  28. package/dist/components/Combobox/ComboboxIcon.js +3 -2
  29. package/dist/components/Combobox/ComboboxInput.js +4 -4
  30. package/dist/components/Combobox/ComboboxList.js +2 -2
  31. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  32. package/dist/components/Divider/Divider2.js +3 -3
  33. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
  34. package/dist/components/Dropdown/Dropdown.js +14 -9
  35. package/dist/components/Dropdown/Dropdown2.js +3 -3
  36. package/dist/components/Dropdown/DropdownButton.js +23 -19
  37. package/dist/components/Dropdown/DropdownList.js +4 -4
  38. package/dist/components/Dropdown/DropdownOption.js +4 -3
  39. package/dist/components/Dropdown/DropdownSearch.js +10 -4
  40. package/dist/components/FilePicker/FilePicker.js +13 -6
  41. package/dist/components/FilePicker/FilePicker2.js +3 -3
  42. package/dist/components/FormField/Caption.js +3 -3
  43. package/dist/components/FormField/FormField.js +2 -2
  44. package/dist/components/FormField/FormField2.js +3 -3
  45. package/dist/components/FormField/FormFieldContext.js +3 -3
  46. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
  47. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  48. package/dist/components/Icon/Icon.js +2 -2
  49. package/dist/components/IconButton/IconButton2.js +3 -3
  50. package/dist/components/InlineInput/InlineInput.js +12 -9
  51. package/dist/components/InlineInput/InlineInput2.js +3 -3
  52. package/dist/components/Input/Input.js +1 -1
  53. package/dist/components/Input/Input2.js +3 -3
  54. package/dist/components/Input/InputField.js +2 -2
  55. package/dist/components/InputGroup/InputGroup2.js +3 -3
  56. package/dist/components/Label/Label2.js +3 -3
  57. package/dist/components/Link/Link2.js +3 -3
  58. package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
  59. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  60. package/dist/components/LogicEditor/ConditionSet.js +5 -5
  61. package/dist/components/LogicEditor/LogicEditor.js +1 -1
  62. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  63. package/dist/components/LogicEditor/utils.js +2 -1
  64. package/dist/components/Modal/Modal.js +14 -13
  65. package/dist/components/Modal/Modal2.js +3 -3
  66. package/dist/components/NewMenu/BaseMenu.js +41 -30
  67. package/dist/components/NewMenu/NewMenu.js +3 -3
  68. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
  69. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -7
  70. package/dist/components/NewMenu/parts/MenuItem.js +1 -1
  71. package/dist/components/NumberStepper/NumberStepper.js +7 -6
  72. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  73. package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
  74. package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
  75. package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
  76. package/dist/components/PageLayout/PageLayout.js +3 -3
  77. package/dist/components/Pagination/Pagination.js +1 -1
  78. package/dist/components/Pagination/Pagination2.js +3 -3
  79. package/dist/components/Pagination/PaginationNextButton.js +5 -5
  80. package/dist/components/Pagination/PaginationPageInput.js +11 -9
  81. package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
  82. package/dist/components/Popover/Popover.js +9 -7
  83. package/dist/components/Popover/Popover2.js +3 -3
  84. package/dist/components/QuickSearch/QuickSearch.js +4 -3
  85. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  86. package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
  87. package/dist/components/Radio/Radio.js +12 -11
  88. package/dist/components/Radio/Radio2.js +3 -3
  89. package/dist/components/SearchInput/SearchInput.js +4 -3
  90. package/dist/components/SearchInput/SearchInput2.js +3 -3
  91. package/dist/components/SidebarNav/SidebarNav.js +2 -1
  92. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  93. package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
  94. package/dist/components/Slider/RangeSlider.js +2 -2
  95. package/dist/components/Slider/Slider.js +1 -1
  96. package/dist/components/Slider/Slider2.js +3 -3
  97. package/dist/components/Slider/SliderButton.js +1 -1
  98. package/dist/components/Switch/Switch.js +11 -11
  99. package/dist/components/Switch/Switch2.js +3 -3
  100. package/dist/components/Table/Table2.js +3 -3
  101. package/dist/components/Tabs/Tab.js +3 -3
  102. package/dist/components/Tabs/TabList.js +6 -5
  103. package/dist/components/Tabs/TabPanel.js +3 -3
  104. package/dist/components/Tabs/Tabs2.js +3 -3
  105. package/dist/components/Tooltip/Tooltip.js +10 -4
  106. package/dist/components/Tooltip/Tooltip2.js +3 -3
  107. package/dist/components/UIProvider/UIProvider.js +2 -2
  108. package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
  109. package/dist/components/deprecated_ColorPicker/Color.js +6 -6
  110. package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
  111. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  112. package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
  113. package/dist/components/deprecated_ColorPicker/Hue.js +3 -3
  114. package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
  115. package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
  116. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  117. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
  118. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
  119. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
  120. package/dist/components/deprecated_Tabs/Tabs.js +11 -7
  121. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  122. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  123. package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
  124. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -2
  125. package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
  126. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
  127. package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
  128. package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
  129. package/dist/hooks/useControllableState/useControllableState.js +2 -1
  130. package/dist/hooks/useEventListener/useEventListener.js +1 -1
  131. package/dist/hooks/useId/useId.js +1 -1
  132. package/dist/hooks/useOverlay/useOverlay.js +6 -4
  133. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  134. package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
  135. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
  136. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  137. package/dist/icons/Icon.js +3 -3
  138. package/dist/icons/createIconComponent.js +1 -1
  139. package/dist/icons/index.js +1 -1
  140. package/dist/index.d.ts +14 -7
  141. package/dist/index.es.js +1 -1
  142. package/dist/index.js +3 -3
  143. package/dist/next/AdvancedTable/AdvancedTable.js +60 -49
  144. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  145. package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
  146. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
  147. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
  148. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
  149. package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
  150. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
  151. package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
  152. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +5 -3
  153. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  154. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
  155. package/dist/next/Combobox/Combobox2.js +3 -3
  156. package/dist/next/Combobox/ComboboxFlyout.js +2 -2
  157. package/dist/next/Combobox/ComboboxGroup.js +1 -1
  158. package/dist/next/Combobox/ComboboxInput.js +2 -2
  159. package/dist/next/Combobox/ComboboxOption.js +1 -1
  160. package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
  161. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
  162. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
  163. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
  164. package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
  165. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
  166. package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
  167. package/dist/next/Drawer/Drawer.js +7 -4
  168. package/dist/next/Drawer/Drawer2.js +3 -3
  169. package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
  170. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  171. package/dist/next/Input/Input.js +2 -2
  172. package/dist/next/Input/Input2.js +3 -3
  173. package/dist/next/Menu/Menu.js +5 -3
  174. package/dist/next/Menu/Menu2.js +3 -3
  175. package/dist/next/Menu/MenuItem.js +10 -8
  176. package/dist/next/Menu/MenuPane.js +20 -8
  177. package/dist/next/Menu/SubMenu.js +12 -8
  178. package/dist/next/Menu/useMutationObserver.js +1 -1
  179. package/dist/next/Menu/usePaneSearch.js +27 -15
  180. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
  181. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  182. package/dist/next/SplitButton/SplitButton.js +8 -2
  183. package/dist/next/SplitButton/SplitButton2.js +3 -3
  184. package/dist/next/TimePicker/TimeDropdown.js +4 -4
  185. package/dist/next/TimePicker/TimeInput.js +2 -2
  186. package/dist/next/TimePicker/TimePicker.js +4 -4
  187. package/dist/next/TimePicker/TimePicker2.js +3 -3
  188. package/dist/next/TimePicker/TimePickerIcon.js +2 -1
  189. package/dist/next/TimePicker/utils.js +10 -9
  190. package/dist/next/ToggleButton/styles.js +3 -3
  191. package/dist/next/index.d.ts +1 -1
  192. package/dist/next/index.js +298 -219
  193. package/dist/utils/Flyout/Flyout.js +1 -1
  194. package/dist/utils/Flyout/Flyout2.js +3 -3
  195. package/dist/utils/Popper/Popper.js +9 -5
  196. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
  197. package/dist/utils/Translation/useTranslation.js +4 -5
  198. package/dist/utils/filterChildren/filterChildren.js +2 -1
  199. package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
  200. package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
  201. package/dist/utils/mergeRefs/mergeRefs.js +1 -1
  202. package/dist/utils/wrapEvent/wrapEvent.js +2 -2
  203. package/next/package.json +1 -1
  204. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._BSYkr{max-width:100%;position:relative;display:inline-block}._4emIY{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._4emIY:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._4emIY:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._4emIY:disabled,._4emIY[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._4emIY._ocVXW{border-color:#b00}._4emIY._ocVXW:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._4emIY._n4EPy{min-width:120px;padding:0 4px 0 12px}._4emIY._ys9sA{margin-top:4px}._4emIY._1aHUW:not([aria-disabled=true]):not(:disabled){color:#32363a}._4emIY ._fYR7A{display:inline-flex;align-items:center;min-height:10px}._4emIY ._fYR7A._MsQoT{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._4emIY ._fS5xr{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._4emIY ._fS5xr._4HoKQ{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._4emIY ._fS5xr._7J0aq{transform:rotate(-180deg)}._6TuyD[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._UVgDb{position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._MxwY2{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._DQ0Zm{fill:#515559}._f1uzS{margin:2px 12px 2px 0}._f1uzS._wCQED>svg{border-color:#0b6ed0}._WEsSL{width:100%}";
4
- var styles = {"container":"_BSYkr","button":"_4emIY","invalid":"_ocVXW","hasText":"_n4EPy","labelled":"_ys9sA","selected":"_1aHUW","buttonLabel":"_fYR7A","isString":"_MsQoT","icon":"_fS5xr","disabled":"_4HoKQ","open":"_7J0aq","option":"_6TuyD","search":"_UVgDb","emptyOption":"_MxwY2","searchIcon":"_DQ0Zm","checkbox":"_f1uzS","highlighted":"_wCQED","searchInput":"_WEsSL"};
5
- var stylesheet="._BSYkr{max-width:100%;position:relative;display:inline-block}._4emIY{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._4emIY:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._4emIY:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._4emIY:disabled,._4emIY[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._4emIY._ocVXW{border-color:#b00}._4emIY._ocVXW:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._4emIY._n4EPy{min-width:120px;padding:0 4px 0 12px}._4emIY._ys9sA{margin-top:4px}._4emIY._1aHUW:not([aria-disabled=true]):not(:disabled){color:#32363a}._4emIY ._fYR7A{display:inline-flex;align-items:center;min-height:10px}._4emIY ._fYR7A._MsQoT{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._4emIY ._fS5xr{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._4emIY ._fS5xr._4HoKQ{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._4emIY ._fS5xr._7J0aq{transform:rotate(-180deg)}._6TuyD[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._UVgDb{position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._MxwY2{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._DQ0Zm{fill:#515559}._f1uzS{margin:2px 12px 2px 0}._f1uzS._wCQED>svg{border-color:#0b6ed0}._WEsSL{width:100%}";
3
+ var css_248z = "._0puZb{max-width:100%;position:relative;display:inline-block}._9A1jZ{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._9A1jZ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._9A1jZ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._9A1jZ:disabled,._9A1jZ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._9A1jZ._WC4c2{border-color:#b00}._9A1jZ._WC4c2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._9A1jZ._mr7pg{min-width:120px;padding:0 4px 0 12px}._9A1jZ._OwbnT{margin-top:4px}._9A1jZ._PFuxm:not([aria-disabled=true]):not(:disabled){color:#32363a}._9A1jZ ._Boj6z{display:inline-flex;align-items:center;min-height:10px}._9A1jZ ._Boj6z._tnYB7{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._9A1jZ ._uoskl{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._9A1jZ ._uoskl._DxJuo{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._9A1jZ ._uoskl._i-Dpi{transform:rotate(-180deg)}._Qxr4c[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._JbR1-{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._HHLq3{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uvP6B{fill:#515559}._u9puj{margin:2px 12px 2px 0}._u9puj._nhaaK>svg{border-color:#0b6ed0}._NQscp{width:100%}";
4
+ var styles = {"container":"_0puZb","button":"_9A1jZ","invalid":"_WC4c2","hasText":"_mr7pg","labelled":"_OwbnT","selected":"_PFuxm","buttonLabel":"_Boj6z","isString":"_tnYB7","icon":"_uoskl","disabled":"_DxJuo","open":"_i-Dpi","option":"_Qxr4c","search":"_JbR1-","emptyOption":"_HHLq3","searchIcon":"_uvP6B","checkbox":"_u9puj","highlighted":"_nhaaK","searchInput":"_NQscp"};
5
+ var stylesheet="._0puZb{max-width:100%;position:relative;display:inline-block}._9A1jZ{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._9A1jZ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._9A1jZ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._9A1jZ:disabled,._9A1jZ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._9A1jZ._WC4c2{border-color:#b00}._9A1jZ._WC4c2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._9A1jZ._mr7pg{min-width:120px;padding:0 4px 0 12px}._9A1jZ._OwbnT{margin-top:4px}._9A1jZ._PFuxm:not([aria-disabled=true]):not(:disabled){color:#32363a}._9A1jZ ._Boj6z{display:inline-flex;align-items:center;min-height:10px}._9A1jZ ._Boj6z._tnYB7{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._9A1jZ ._uoskl{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._9A1jZ ._uoskl._DxJuo{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._9A1jZ ._uoskl._i-Dpi{transform:rotate(-180deg)}._Qxr4c[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._JbR1-{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._HHLq3{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._uvP6B{fill:#515559}._u9puj{margin:2px 12px 2px 0}._u9puj._nhaaK>svg{border-color:#0b6ed0}._NQscp{width:100%}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -15,6 +15,7 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
15
15
  import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
16
16
 
17
17
  const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
18
+ var _ref2, _children$props$aria, _children$props, _ref3, _children$props$aria2, _children$props2, _ref4, _children$props$aria3, _children$props3, _children$props$tabIn, _children$props4, _children$props7, _children$props8;
18
19
  let {
19
20
  children,
20
21
  className,
@@ -61,9 +62,9 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
61
62
  helperTextId: formFieldHelperTextId,
62
63
  errorTextId: formFieldErrorTextId
63
64
  } = useFormFieldControl();
64
- const ariaLabelledBy = children?.props?.['aria-labelledby'] ?? externalAriaLabelledBy ?? (dropdownAriaLabelledBy ? `${dropdownAriaLabelledBy} ${buttonId}` : undefined);
65
- const ariaLabel = children?.props?.['aria-label'] ?? externalAriaLabel ?? (dropdownAriaLabel && typeof label === 'string' ? `${dropdownAriaLabel} ${label}` : dropdownAriaLabel);
66
- const ariaDescribedby = concatIds(children?.props?.['aria-describedby'] ?? externalAriaDescribedBy ?? dropdownAriaDescribedby, formFieldHelperTextId, formFieldErrorTextId);
65
+ const ariaLabelledBy = (_ref2 = (_children$props$aria = children === null || children === void 0 ? void 0 : (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props['aria-labelledby']) !== null && _children$props$aria !== void 0 ? _children$props$aria : externalAriaLabelledBy) !== null && _ref2 !== void 0 ? _ref2 : dropdownAriaLabelledBy ? "".concat(dropdownAriaLabelledBy, " ").concat(buttonId) : undefined;
66
+ const ariaLabel = (_ref3 = (_children$props$aria2 = children === null || children === void 0 ? void 0 : (_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2['aria-label']) !== null && _children$props$aria2 !== void 0 ? _children$props$aria2 : externalAriaLabel) !== null && _ref3 !== void 0 ? _ref3 : dropdownAriaLabel && typeof label === 'string' ? "".concat(dropdownAriaLabel, " ").concat(label) : dropdownAriaLabel;
67
+ const ariaDescribedby = concatIds((_ref4 = (_children$props$aria3 = children === null || children === void 0 ? void 0 : (_children$props3 = children.props) === null || _children$props3 === void 0 ? void 0 : _children$props3['aria-describedby']) !== null && _children$props$aria3 !== void 0 ? _children$props$aria3 : externalAriaDescribedBy) !== null && _ref4 !== void 0 ? _ref4 : dropdownAriaDescribedby, formFieldHelperTextId, formFieldErrorTextId);
67
68
  useEffect(() => {
68
69
  const selectedLabels = [];
69
70
  options.forEach(option => {
@@ -75,12 +76,13 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
75
76
  setLabel(selectedLabels.length > 0 ? selectedLabels.join(', ') : defaultLabel);
76
77
  }, [setLabel, options, defaultLabel]);
77
78
  useEffect(() => {
78
- setMinWidth(buttonRef?.current?.offsetWidth);
79
+ var _buttonRef$current;
80
+ setMinWidth(buttonRef === null || buttonRef === void 0 ? void 0 : (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.offsetWidth);
79
81
  });
80
82
  const isInvalid = isInvalidProp !== undefined ? isInvalidProp : dropdownIsInvalid;
81
83
  const handleClick = e => {
82
- if (disabled ?? dropdownAriaDisabled) return;
83
- onClick?.(e);
84
+ if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
85
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
84
86
  // Needed because some browsers don't focus on click
85
87
  e.currentTarget.focus();
86
88
  setIsOpen(currentIsOpen => {
@@ -89,15 +91,15 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
89
91
  });
90
92
  };
91
93
  const handleKeyDown = e => {
92
- if (disabled ?? dropdownAriaDisabled) return;
93
- onKeyDown?.(e);
94
+ if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
95
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
94
96
  onKeyDownButton(e);
95
97
  };
96
98
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/React__default.cloneElement(children, {
97
- ref: mergeRefs(ref, children?.ref, buttonRef, dropdownButtonRef),
99
+ ref: mergeRefs(ref, children === null || children === void 0 ? void 0 : children.ref, buttonRef, dropdownButtonRef),
98
100
  disabled: disabled || dropdownAriaDisabled,
99
101
  'aria-disabled': dropdownAriaDisabled,
100
- tabIndex: children.props?.tabIndex ?? 0,
102
+ tabIndex: (_children$props$tabIn = (_children$props4 = children.props) === null || _children$props4 === void 0 ? void 0 : _children$props4.tabIndex) !== null && _children$props$tabIn !== void 0 ? _children$props$tabIn : 0,
101
103
  role: 'button',
102
104
  'aria-expanded': isOpen,
103
105
  'aria-haspopup': 'listbox',
@@ -107,15 +109,17 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
107
109
  'aria-describedby': ariaDescribedby,
108
110
  id: buttonId,
109
111
  onFocus: e => {
110
- children.props?.onFocus?.(e);
111
- onFocus?.(e);
112
+ var _children$props5, _children$props5$onFo;
113
+ (_children$props5 = children.props) === null || _children$props5 === void 0 ? void 0 : (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0 ? void 0 : _children$props5$onFo.call(_children$props5, e);
114
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
112
115
  },
113
116
  onBlur: e => {
114
- children.props?.onBlur?.(e);
115
- onBlur?.(e);
117
+ var _children$props6, _children$props6$onBl;
118
+ (_children$props6 = children.props) === null || _children$props6 === void 0 ? void 0 : (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0 ? void 0 : _children$props6$onBl.call(_children$props6, e);
119
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
116
120
  },
117
- onKeyDown: wrapEvent(children.props?.onKeyDown, handleKeyDown),
118
- onClick: wrapEvent(children.props?.onClick, handleClick)
121
+ onKeyDown: wrapEvent((_children$props7 = children.props) === null || _children$props7 === void 0 ? void 0 : _children$props7.onKeyDown, handleKeyDown),
122
+ onClick: wrapEvent((_children$props8 = children.props) === null || _children$props8 === void 0 ? void 0 : _children$props8.onClick, handleClick)
119
123
  }) : /*#__PURE__*/React__default.createElement("button", _extends({}, rest, {
120
124
  ref: mergeRefs(ref, buttonRef, dropdownButtonRef),
121
125
  type: "button",
@@ -132,14 +136,14 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
132
136
  [styles.hasText]: !!label,
133
137
  [styles.invalid]: isInvalid,
134
138
  [styles.labelled]: hasFormLabel,
135
- [styles.selected]: externalLabel ?? isOptionSelected // defaultLabel has lighter text color
139
+ [styles.selected]: externalLabel !== null && externalLabel !== void 0 ? externalLabel : isOptionSelected // defaultLabel has lighter text color
136
140
  }),
137
141
 
138
142
  onFocus: onFocus,
139
143
  onBlur: onBlur,
140
144
  onKeyDown: handleKeyDown,
141
145
  onClick: handleClick,
142
- "data-testid": dataTestId ?? getSubDataTestId(contextDataTestId, 'button')
146
+ "data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'button')
143
147
  }), /*#__PURE__*/React__default.createElement("span", {
144
148
  className: classNames(styles.buttonLabel, {
145
149
  [styles.isString]: typeof label === 'string'
@@ -148,7 +152,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
148
152
  size: "medium",
149
153
  className: classNames(styles.icon, {
150
154
  [styles.open]: isOpen,
151
- [styles.disabled]: disabled ?? dropdownAriaDisabled
155
+ [styles.disabled]: disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled
152
156
  }),
153
157
  "aria-hidden": "true"
154
158
  })));
@@ -47,8 +47,8 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
47
47
  translate
48
48
  } = useTranslation();
49
49
  const noMatchesText = useMemo(() => isSearchable && translate('noMatchesFound'), [isSearchable, translate]);
50
- const ariaLabelledby = externalAriaLabelledBy ?? ariaLabelledByFromContext;
51
- const ariaLabel = externalAriaLabel ?? ariaLabelFromContext;
50
+ const ariaLabelledby = externalAriaLabelledBy !== null && externalAriaLabelledBy !== void 0 ? externalAriaLabelledBy : ariaLabelledByFromContext;
51
+ const ariaLabel = externalAriaLabel !== null && externalAriaLabel !== void 0 ? externalAriaLabel : ariaLabelFromContext;
52
52
  const announceToScreenReader = useScreenReaderAnnouncement('assertive');
53
53
  const showNoResults = useMemo(() => options.filter(option => option.isVisible).length === 1,
54
54
  // 1 to include the search box entry
@@ -79,14 +79,14 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
79
79
  "aria-labelledby": ariaLabelledby,
80
80
  hidden: !isOpen,
81
81
  onKeyDown: e => {
82
- onKeyDown?.(e);
82
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
83
83
  onKeyDownList(e);
84
84
  },
85
85
  style: {
86
86
  minWidth,
87
87
  ...style
88
88
  },
89
- "data-testid": dataTestId ?? getSubDataTestId(contextDataTestId, 'flyout')
89
+ "data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'flyout')
90
90
  }), isSearchable && /*#__PURE__*/React__default.createElement(DropdownSearch, null), /*#__PURE__*/React__default.createElement("div", {
91
91
  id: listboxId,
92
92
  role: "listbox",
@@ -47,7 +47,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
47
47
  return isSearchFilteringDisabled || !label || !searchValue || typeof label === 'string' && _includesInstanceProperty(_context = label.toLowerCase()).call(_context, searchValue.toLowerCase());
48
48
  }, [isSearchFilteringDisabled, label, searchValue]);
49
49
  useEffect(() => {
50
- setVisibleChildIds?.(visibleChildIds => {
50
+ setVisibleChildIds === null || setVisibleChildIds === void 0 ? void 0 : setVisibleChildIds(visibleChildIds => {
51
51
  const duplicateSet = new Set(visibleChildIds);
52
52
  if (isVisible) {
53
53
  return duplicateSet.add(value);
@@ -74,7 +74,8 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
74
74
  const isHighlighted = highlightedIndex === myIndex && myIndex !== -1;
75
75
  useEffect(() => {
76
76
  if (isHighlighted) {
77
- if (isOpen && internalRef?.current && listRef?.current && listRef.current?.scrollHeight > listRef.current?.clientHeight) {
77
+ var _listRef$current, _listRef$current2, _internalRef$current;
78
+ if (isOpen && internalRef !== null && internalRef !== void 0 && internalRef.current && listRef !== null && listRef !== void 0 && listRef.current && ((_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollHeight) > ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.clientHeight)) {
78
79
  const scrollBottom = listRef.current.clientHeight + listRef.current.scrollTop;
79
80
  const elementBottom = internalRef.current.offsetTop + internalRef.current.offsetHeight;
80
81
  if (elementBottom > scrollBottom) {
@@ -83,7 +84,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
83
84
  listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
84
85
  }
85
86
  }
86
- internalRef.current?.focus({
87
+ (_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.focus({
87
88
  preventScroll: true
88
89
  });
89
90
  }
@@ -29,7 +29,10 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
29
29
  dataTestId,
30
30
  listboxId
31
31
  } = useDropdownContext();
32
- const handleSelect = () => inputRef.current?.focus();
32
+ const handleSelect = () => {
33
+ var _inputRef$current;
34
+ return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
35
+ };
33
36
  const myIndex = useChildIndex({
34
37
  element: internalRef.current,
35
38
  isVisible: true
@@ -38,20 +41,23 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
38
41
  useEffect(() => {
39
42
  // for keyboard navigation
40
43
  if (isHighlighted) {
41
- inputRef.current?.focus();
44
+ var _inputRef$current2;
45
+ (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
42
46
  }
43
47
  }, [isHighlighted]);
44
48
  useEffect(() => {
45
49
  // for initial open with mouse
46
50
  if (isHighlighted && isOpen) {
47
- inputRef.current?.focus();
51
+ var _inputRef$current3;
52
+ (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
48
53
  }
49
54
  // Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
50
55
  // eslint-disable-next-line react-hooks/exhaustive-deps
51
56
  }, [isOpen]);
52
57
  useEffect(() => {
53
58
  if (isOpen) {
54
- setSearchHeight(internalRef.current?.offsetHeight);
59
+ var _internalRef$current;
60
+ setSearchHeight((_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.offsetHeight);
55
61
  }
56
62
  }, [isOpen, setSearchHeight]);
57
63
  const handleKeyDown = e => {
@@ -49,8 +49,8 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
49
49
  const [filesChanged, setFilesChanged] = useState(false);
50
50
  const [files, setFiles] = useControllableState(undefined, undefined, externalFiles);
51
51
  const fileInputId = useId(externalId);
52
- const fileDetailsId = `${fileInputId}-fileDetails`;
53
- const buttonId = `${fileInputId}-button`;
52
+ const fileDetailsId = "".concat(fileInputId, "-fileDetails");
53
+ const buttonId = "".concat(fileInputId, "-button");
54
54
  const fileInputRef = useRef(null);
55
55
  const buttonRef = useRef(null);
56
56
 
@@ -62,12 +62,13 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
62
62
 
63
63
  // returns focus to input after closing system dialog
64
64
  useDidUpdate(() => {
65
- fileInputRef.current?.focus();
65
+ var _fileInputRef$current;
66
+ (_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 ? void 0 : _fileInputRef$current.focus();
66
67
  }, [filesChanged]);
67
68
  const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
68
69
  const handleChange = e => {
69
70
  setFiles(e.target.files, e);
70
- onChange?.(e);
71
+ onChange === null || onChange === void 0 ? void 0 : onChange(e);
71
72
  // This is needed due to CFE-508
72
73
  setFilesChanged(val => !val);
73
74
  };
@@ -85,10 +86,16 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
85
86
  }, /*#__PURE__*/React__default.createElement(Button, {
86
87
  disabled: disabled,
87
88
  kind: "secondary",
88
- onClick: () => fileInputRef.current?.click(),
89
+ onClick: () => {
90
+ var _fileInputRef$current2;
91
+ return (_fileInputRef$current2 = fileInputRef.current) === null || _fileInputRef$current2 === void 0 ? void 0 : _fileInputRef$current2.click();
92
+ },
89
93
  tabIndex: -1,
90
94
  ref: buttonRef,
91
- onFocus: () => fileInputRef.current?.focus(),
95
+ onFocus: () => {
96
+ var _fileInputRef$current3;
97
+ return (_fileInputRef$current3 = fileInputRef.current) === null || _fileInputRef$current3 === void 0 ? void 0 : _fileInputRef$current3.focus();
98
+ },
92
99
  id: buttonId,
93
100
  "aria-hidden": true
94
101
  }, buttonLabel), /*#__PURE__*/React__default.createElement("input", _extends({}, rest, {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._mWCUe{position:relative}._mWCUe[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mWCUe:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._rM0kL{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._u-LwL{margin-left:16px;font-size:14px;color:#32363a}._u-LwL ._ustr9{margin-right:16px}";
4
- var filePickerStyles = {"container":"_mWCUe","fileInput":"_rM0kL","fileDetails":"_u-LwL","fileName":"_ustr9"};
5
- var stylesheet="._mWCUe{position:relative}._mWCUe[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mWCUe:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._rM0kL{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._u-LwL{margin-left:16px;font-size:14px;color:#32363a}._u-LwL ._ustr9{margin-right:16px}";
3
+ var css_248z = "._zuuNz{position:relative}._zuuNz[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zuuNz:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mDaRv{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._GjFbw{margin-left:16px;font-size:14px;color:#32363a}._GjFbw ._VXejk{margin-right:16px}";
4
+ var filePickerStyles = {"container":"_zuuNz","fileInput":"_mDaRv","fileDetails":"_GjFbw","fileName":"_VXejk"};
5
+ var stylesheet="._zuuNz{position:relative}._zuuNz[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zuuNz:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._mDaRv{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._GjFbw{margin-left:16px;font-size:14px;color:#32363a}._GjFbw ._VXejk{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 = "._9oPUg{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._ZhB2U{color:#74777a;fill:#74777a}._cb7dD{color:#b00;fill:#b00}._1uK-s,._reONt{margin-left:-2px;margin-right:3px}";
4
- var styles = {"caption":"_9oPUg","helperText":"_ZhB2U","errorText":"_cb7dD","errorIcon":"_reONt","readOnlyIcon":"_1uK-s"};
5
- var stylesheet="._9oPUg{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._ZhB2U{color:#74777a;fill:#74777a}._cb7dD{color:#b00;fill:#b00}._1uK-s,._reONt{margin-left:-2px;margin-right:3px}";
3
+ var css_248z = "._-wver{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._IioSN{color:#74777a;fill:#74777a}._ewz3v{color:#b00;fill:#b00}._4vVvE,._AABoa{margin-left:-2px;margin-right:3px}";
4
+ var styles = {"caption":"_-wver","helperText":"_IioSN","errorText":"_ewz3v","errorIcon":"_AABoa","readOnlyIcon":"_4vVvE"};
5
+ var stylesheet="._-wver{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._IioSN{color:#74777a;fill:#74777a}._ewz3v{color:#b00;fill:#b00}._4vVvE,._AABoa{margin-left:-2px;margin-right:3px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -29,8 +29,8 @@ const FormField = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
29
29
  const [hasLabel, setHasLabel] = useState(false);
30
30
  const [formFieldType, setFormFieldType] = useState('');
31
31
  const containerId = useId(externalId);
32
- const helperTextId = helperText ? `${containerId}-helper-text` : undefined;
33
- const errorTextId = errorText ? `${containerId}-error-text` : undefined;
32
+ const helperTextId = helperText ? "".concat(containerId, "-helper-text") : undefined;
33
+ const errorTextId = errorText ? "".concat(containerId, "-error-text") : undefined;
34
34
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
35
35
  ref: mergeRefs(ref, focusRef),
36
36
  className: classNames(className, {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._JMovs{display:flex;flex-direction:column;align-items:flex-start}._Q6O5B{margin-top:6px;max-width:100%}._Q6O5B *+*{margin-top:4px}";
4
- var styles = {"formField":"_JMovs","captionContainer":"_Q6O5B"};
5
- var stylesheet="._JMovs{display:flex;flex-direction:column;align-items:flex-start}._Q6O5B{margin-top:6px;max-width:100%}._Q6O5B *+*{margin-top:4px}";
3
+ var css_248z = "._Yd7Hx{display:flex;flex-direction:column;align-items:flex-start}._F8xit{margin-top:6px;max-width:100%}._F8xit *+*{margin-top:4px}";
4
+ var styles = {"formField":"_Yd7Hx","captionContainer":"_F8xit"};
5
+ var stylesheet="._Yd7Hx{display:flex;flex-direction:column;align-items:flex-start}._F8xit{margin-top:6px;max-width:100%}._F8xit *+*{margin-top:4px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -12,7 +12,7 @@ const useFormFieldControl = () => {
12
12
  setHasControl
13
13
  } = context;
14
14
  useEffect(() => {
15
- setHasControl?.(true);
15
+ setHasControl === null || setHasControl === void 0 ? void 0 : setHasControl(true);
16
16
  }, [setHasControl]);
17
17
  return context;
18
18
  };
@@ -22,7 +22,7 @@ const useFormFieldLabel = () => {
22
22
  setHasLabel
23
23
  } = context;
24
24
  useEffect(() => {
25
- setHasLabel?.(true);
25
+ setHasLabel === null || setHasLabel === void 0 ? void 0 : setHasLabel(true);
26
26
  }, [setHasLabel]);
27
27
  return context;
28
28
  };
@@ -32,7 +32,7 @@ const useFormFieldType = type => {
32
32
  setFormFieldType
33
33
  } = context;
34
34
  useEffect(() => {
35
- setFormFieldType?.(type);
35
+ setFormFieldType === null || setFormFieldType === void 0 ? void 0 : setFormFieldType(type);
36
36
  }, [setFormFieldType, type]);
37
37
  return context;
38
38
  };
@@ -38,14 +38,16 @@ const FullScreenTakeover = /*#__PURE__*/forwardRef((_ref, ref) => {
38
38
  useEffect(() => {
39
39
  // If `focusedElementWhenDialogOpened` has been set, then we know that the element has been opened at least once. Without this check, the component will focus `elementRefToFocusOnClose` on page load.
40
40
  if (!isInDOM && focusedElementWhenDialogOpened) {
41
- const elementToFocus = elementRefToFocusOnClose?.current ?? focusedElementWhenDialogOpened;
42
- elementToFocus?.focus();
41
+ var _elementRefToFocusOnC;
42
+ const elementToFocus = (_elementRefToFocusOnC = elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 ? void 0 : elementRefToFocusOnClose.current) !== null && _elementRefToFocusOnC !== void 0 ? _elementRefToFocusOnC : focusedElementWhenDialogOpened;
43
+ elementToFocus === null || elementToFocus === void 0 ? void 0 : elementToFocus.focus();
43
44
  }
44
45
  // eslint-disable-next-line react-hooks/exhaustive-deps
45
46
  }, [isInDOM, focusedElementWhenDialogOpened]);
46
47
  const handleAnimationEnd = () => {
47
48
  if (isOpen) {
48
- (elementRefToFocusOnOpen?.current ?? dialogRef?.current)?.focus();
49
+ var _ref2, _elementRefToFocusOnO;
50
+ (_ref2 = (_elementRefToFocusOnO = elementRefToFocusOnOpen === null || elementRefToFocusOnOpen === void 0 ? void 0 : elementRefToFocusOnOpen.current) !== null && _elementRefToFocusOnO !== void 0 ? _elementRefToFocusOnO : dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.current) === null || _ref2 === void 0 ? void 0 : _ref2.focus();
49
51
  } else {
50
52
  setIsInDOM(false);
51
53
  }
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._SsxNM{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _NNj0j{0%{transform:scale3d(.7,.7,.7);opacity:0}}._RONaF{animation:_NNj0j both;animation-duration:.2s}@keyframes _NW1Td{to{transform:scale3d(.7,.7,.7);opacity:0}}._bREyj{animation:_NW1Td both;animation-duration:.2s}";
4
- var styles = {"dialog":"_SsxNM","transitionIn":"_RONaF","showAnimation":"_NNj0j","transitionOut":"_bREyj","hideAnimation":"_NW1Td"};
5
- var stylesheet="._SsxNM{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _NNj0j{0%{transform:scale3d(.7,.7,.7);opacity:0}}._RONaF{animation:_NNj0j both;animation-duration:.2s}@keyframes _NW1Td{to{transform:scale3d(.7,.7,.7);opacity:0}}._bREyj{animation:_NW1Td both;animation-duration:.2s}";
3
+ var css_248z = "._46s5L{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _jNA2r{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GnAV3{animation:_jNA2r both;animation-duration:.2s}@keyframes _FaBW-{to{transform:scale3d(.7,.7,.7);opacity:0}}._wEFcZ{animation:_FaBW- both;animation-duration:.2s}";
4
+ var styles = {"dialog":"_46s5L","transitionIn":"_GnAV3","showAnimation":"_jNA2r","transitionOut":"_wEFcZ","hideAnimation":"_FaBW-"};
5
+ var stylesheet="._46s5L{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _jNA2r{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GnAV3{animation:_jNA2r both;animation-duration:.2s}@keyframes _FaBW-{to{transform:scale3d(.7,.7,.7);opacity:0}}._wEFcZ{animation:_FaBW- both;animation-duration:.2s}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -21,7 +21,7 @@ const deprecated = {
21
21
  function deprecationWarning(type) {
22
22
  if (deprecated[type]) {
23
23
  // eslint-disable-next-line no-console
24
- console.warn(`"IconTypes.${type}" has been deprecated! Use "IconTypes.${deprecated[type]}" instead.`);
24
+ console.warn("\"IconTypes.".concat(type, "\" has been deprecated! Use \"IconTypes.").concat(deprecated[type], "\" instead."));
25
25
  }
26
26
  }
27
27
  const Icon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
@@ -31,7 +31,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
31
31
  ...rest
32
32
  } = _ref;
33
33
  // eslint-disable-next-line no-console
34
- console.warn(`<Icon> component is deprecated! Use individual icon components from the @qualtrics/ui-react/icons import path instead`, type);
34
+ console.warn("<Icon> component is deprecated! Use individual icon components from the @qualtrics/ui-react/icons import path instead", type);
35
35
  deprecationWarning(type);
36
36
  const svgContent = IconData[deprecated[type] || type];
37
37
  const pixels = IconSizes[size];
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._Fwx36{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}._Fwx36:focus{outline:none}._Fwx36:hover:not(._PkKRL){background-color:rgba(50,54,58,.08)}._Fwx36:active:not(._PkKRL){background-color:rgba(50,54,58,.11);stroke-width:2}._Fwx36._PkKRL{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Fwx36.focus-visible,._Fwx36:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"button":"_Fwx36","disabled":"_PkKRL"};
5
- var stylesheet="._Fwx36{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}._Fwx36:focus{outline:none}._Fwx36:hover:not(._PkKRL){background-color:rgba(50,54,58,.08)}._Fwx36:active:not(._PkKRL){background-color:rgba(50,54,58,.11);stroke-width:2}._Fwx36._PkKRL{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Fwx36.focus-visible,._Fwx36:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._bDW87{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}._bDW87:focus{outline:none}._bDW87:hover:not(._KhpH6){background-color:rgba(50,54,58,.08)}._bDW87:active:not(._KhpH6){background-color:rgba(50,54,58,.11);stroke-width:2}._bDW87._KhpH6{cursor:not-allowed;fill:rgba(81,85,89,.6)}._bDW87.focus-visible,._bDW87:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"button":"_bDW87","disabled":"_KhpH6"};
5
+ var stylesheet="._bDW87{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}._bDW87:focus{outline:none}._bDW87:hover:not(._KhpH6){background-color:rgba(50,54,58,.08)}._bDW87:active:not(._KhpH6){background-color:rgba(50,54,58,.11);stroke-width:2}._bDW87._KhpH6{cursor:not-allowed;fill:rgba(81,85,89,.6)}._bDW87.focus-visible,._bDW87:focus-visible{outline:none;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 };
@@ -32,19 +32,19 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
32
32
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
33
  // @ts-ignore: Property 'value' does not exist on type 'HTMLSpanElement'
34
34
  e.target.value = newVal;
35
- onChange?.(e);
35
+ onChange === null || onChange === void 0 ? void 0 : onChange(e);
36
36
  setLastVal(newVal);
37
37
  }
38
38
  });
39
39
  const handleBlur = e => {
40
40
  setIsEditing(false);
41
41
  e.target.value = e.target.innerText;
42
- onBlur?.(e);
42
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
43
43
  };
44
44
  const handleFocus = e => {
45
45
  setIsEditing(true);
46
46
  e.target.value = e.target.innerText;
47
- onFocus?.(e);
47
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
48
48
  };
49
49
  const handleKeyDown = e => {
50
50
  if (e.key === 'Enter') {
@@ -55,13 +55,13 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
55
55
  e.stopPropagation(); // prevent event from closing modals or popovers
56
56
  setIsEditing(false);
57
57
  }
58
- onKeyDown?.(e);
58
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
59
59
  };
60
60
  const handleMouseDown = e => {
61
61
  if (isFocused) {
62
62
  setIsEditing(true);
63
63
  }
64
- onMouseDown?.(e);
64
+ onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
65
65
  };
66
66
  const handlePaste = e => {
67
67
  // Strip formatting and newlines from pasted data
@@ -69,7 +69,7 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
69
69
  e.preventDefault(); // prevent paste and manually insert text after stripping formatting
70
70
  const text = e.clipboardData.getData('text').replace(/[\n\r]/g, ' ');
71
71
  const selection = window.getSelection();
72
- const range = selection?.getRangeAt(0);
72
+ const range = selection === null || selection === void 0 ? void 0 : selection.getRangeAt(0);
73
73
  if (range && selection) {
74
74
  range.deleteContents();
75
75
  const textNode = document.createTextNode(text);
@@ -84,13 +84,16 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
84
84
  };
85
85
  useDidUpdate(() => {
86
86
  if (typeof window !== 'undefined') {
87
+ var _window$getSelection2;
87
88
  if (isEditing && isFocused && internalRef.current) {
88
- window.getSelection()?.selectAllChildren(internalRef.current);
89
+ var _window$getSelection;
90
+ (_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.selectAllChildren(internalRef.current);
89
91
  }
90
92
  // Clear window selection only if it is on the InlineInput. Without this check, we would mistakenly clear the
91
93
  // selection after focus moves from this component to an Input or another component that sets the window selection.
92
- else if (internalRef.current && window.getSelection()?.containsNode(internalRef.current, true)) {
93
- window.getSelection()?.removeAllRanges();
94
+ else if (internalRef.current && (_window$getSelection2 = window.getSelection()) !== null && _window$getSelection2 !== void 0 && _window$getSelection2.containsNode(internalRef.current, true)) {
95
+ var _window$getSelection3;
96
+ (_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 ? void 0 : _window$getSelection3.removeAllRanges();
94
97
  }
95
98
  }
96
99
  }, [isEditing, isFocused]);
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._4IRGC{display:inline-block}._tWQ7L{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}._tWQ7L::-moz-selection{background-color:rgba(11,110,208,.11)}._tWQ7L::selection{background-color:rgba(11,110,208,.11)}._tWQ7L:focus,._tWQ7L:hover{background-color:#f5f5f5}._tWQ7L:focus{border:2px solid #0a3f88;padding:3px}._tWQ7L:focus._XwGyQ{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":"_4IRGC","inlineInput":"_tWQ7L","isEditing":"_XwGyQ"};
5
- var stylesheet="._4IRGC{display:inline-block}._tWQ7L{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}._tWQ7L::-moz-selection{background-color:rgba(11,110,208,.11)}._tWQ7L::selection{background-color:rgba(11,110,208,.11)}._tWQ7L:focus,._tWQ7L:hover{background-color:#f5f5f5}._tWQ7L:focus{border:2px solid #0a3f88;padding:3px}._tWQ7L:focus._XwGyQ{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 = "._Zad4U{display:inline-block}._h-Q9X{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}._h-Q9X::-moz-selection{background-color:rgba(11,110,208,.11)}._h-Q9X::selection{background-color:rgba(11,110,208,.11)}._h-Q9X:focus,._h-Q9X:hover{background-color:#f5f5f5}._h-Q9X:focus{border:2px solid #0a3f88;padding:3px}._h-Q9X:focus._oauQC{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":"_Zad4U","inlineInput":"_h-Q9X","isEditing":"_oauQC"};
5
+ var stylesheet="._Zad4U{display:inline-block}._h-Q9X{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}._h-Q9X::-moz-selection{background-color:rgba(11,110,208,.11)}._h-Q9X::selection{background-color:rgba(11,110,208,.11)}._h-Q9X:focus,._h-Q9X:hover{background-color:#f5f5f5}._h-Q9X:focus{border:2px solid #0a3f88;padding:3px}._h-Q9X:focus._oauQC{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 };
@@ -47,7 +47,7 @@ const Input = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
47
47
  onChange: disabled ? null : onChange,
48
48
  value,
49
49
  'aria-describedby': internalAriaDescribedby,
50
- readOnly: readOnly ?? formFieldIsReadOnly
50
+ readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : formFieldIsReadOnly
51
51
  };
52
52
  return multiline ? /*#__PURE__*/React__default.createElement("textarea", _extends({}, commonProps, {
53
53
  rows: rows
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._HG8me{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}._HG8me::-moz-placeholder{color:#515559;opacity:1}._HG8me::placeholder{color:#515559;opacity:1}._HG8me:hover{cursor:pointer;background-color:#f5f5f5}._HG8me:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._HG8me._oUFP0{border-color:#b00}._HG8me._oUFP0:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._HG8me:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._HG8me:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._HG8me:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._HG8me._fFjFg{height:auto}._HG8me._fFjFg::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._HG8me._UUJxm{display:block;width:100%}._HG8me._Rxplq{padding:4px 8px}input._HG8me._Rxplq{height:26px;min-height:26px}[type=number]._HG8me{-moz-appearance:textfield}[type=number]._HG8me::-webkit-inner-spin-button,[type=number]._HG8me::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._pZTao{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._pZTao:hover{cursor:pointer}._pZTao._db3mK{color:#0b6ed0}._2o60R{margin-top:4px}";
4
- var styles = {"input":"_HG8me","invalid":"_oUFP0","multiline":"_fFjFg","full":"_UUJxm","small":"_Rxplq","label":"_pZTao","focused":"_db3mK","wrappedInput":"_2o60R"};
5
- var stylesheet="._HG8me{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}._HG8me::-moz-placeholder{color:#515559;opacity:1}._HG8me::placeholder{color:#515559;opacity:1}._HG8me:hover{cursor:pointer;background-color:#f5f5f5}._HG8me:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._HG8me._oUFP0{border-color:#b00}._HG8me._oUFP0:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._HG8me:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._HG8me:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._HG8me:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._HG8me._fFjFg{height:auto}._HG8me._fFjFg::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._HG8me._UUJxm{display:block;width:100%}._HG8me._Rxplq{padding:4px 8px}input._HG8me._Rxplq{height:26px;min-height:26px}[type=number]._HG8me{-moz-appearance:textfield}[type=number]._HG8me::-webkit-inner-spin-button,[type=number]._HG8me::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._pZTao{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._pZTao:hover{cursor:pointer}._pZTao._db3mK{color:#0b6ed0}._2o60R{margin-top:4px}";
3
+ var css_248z = "._Km-3j{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}._Km-3j::-moz-placeholder{color:#515559;opacity:1}._Km-3j::placeholder{color:#515559;opacity:1}._Km-3j:hover{cursor:pointer;background-color:#f5f5f5}._Km-3j:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._Km-3j._VNKpR{border-color:#b00}._Km-3j._VNKpR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Km-3j:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Km-3j:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j._ohFfr{height:auto}._Km-3j._ohFfr::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._Km-3j._7YgGR{display:block;width:100%}._Km-3j._uRxtT{padding:4px 8px}input._Km-3j._uRxtT{height:26px;min-height:26px}[type=number]._Km-3j{-moz-appearance:textfield}[type=number]._Km-3j::-webkit-inner-spin-button,[type=number]._Km-3j::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._sOJjs{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._sOJjs:hover{cursor:pointer}._sOJjs._ty-4V{color:#0b6ed0}._OSjBP{margin-top:4px}";
4
+ var styles = {"input":"_Km-3j","invalid":"_VNKpR","multiline":"_ohFfr","full":"_7YgGR","small":"_uRxtT","label":"_sOJjs","focused":"_ty-4V","wrappedInput":"_OSjBP"};
5
+ var stylesheet="._Km-3j{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}._Km-3j::-moz-placeholder{color:#515559;opacity:1}._Km-3j::placeholder{color:#515559;opacity:1}._Km-3j:hover{cursor:pointer;background-color:#f5f5f5}._Km-3j:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._Km-3j._VNKpR{border-color:#b00}._Km-3j._VNKpR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Km-3j:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Km-3j:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j._ohFfr{height:auto}._Km-3j._ohFfr::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._Km-3j._7YgGR{display:block;width:100%}._Km-3j._uRxtT{padding:4px 8px}input._Km-3j._uRxtT{height:26px;min-height:26px}[type=number]._Km-3j{-moz-appearance:textfield}[type=number]._Km-3j::-webkit-inner-spin-button,[type=number]._Km-3j::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._sOJjs{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._sOJjs:hover{cursor:pointer}._sOJjs._ty-4V{color:#0b6ed0}._OSjBP{margin-top:4px}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -32,11 +32,11 @@ const InputField = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
32
32
  useFormFieldType('input');
33
33
  function handleFocus(e) {
34
34
  setFocused(true);
35
- onFocus?.(e);
35
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
36
36
  }
37
37
  function handleBlur(e) {
38
38
  setFocused(false);
39
- onBlur?.(e);
39
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
40
40
  }
41
41
  return /*#__PURE__*/React__default.createElement(Label, _extends({
42
42
  htmlFor: id,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._6MGtb{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}._6MGtb._4KVRy{height:26px;min-height:26px;padding:5px 8px}._samka{display:flex;align-items:stretch}._samka._V-5RE{width:100%}._samka ._Rd5uz{margin:0;position:relative;flex-shrink:0;z-index:10}._samka ._Rd5uz: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}._samka ._Rd5uz:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._samka ._Rd5uz:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._samka ._Rd5uz:last-child,._samka ._Rd5uz:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._samka ._Rd5uz:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._samka ._Rd5uz._tia3j{flex-shrink:1;min-width:40px;z-index:0}._samka ._Rd5uz._tia3j._V-5RE{flex-grow:1}._samka ._Rd5uz:focus{z-index:20}";
4
- var styles = {"addon":"_6MGtb","small":"_4KVRy","inputGroup":"_samka","full":"_V-5RE","inputGroupElement":"_Rd5uz","input":"_tia3j"};
5
- var stylesheet="._6MGtb{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}._6MGtb._4KVRy{height:26px;min-height:26px;padding:5px 8px}._samka{display:flex;align-items:stretch}._samka._V-5RE{width:100%}._samka ._Rd5uz{margin:0;position:relative;flex-shrink:0;z-index:10}._samka ._Rd5uz: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}._samka ._Rd5uz:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._samka ._Rd5uz:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._samka ._Rd5uz:last-child,._samka ._Rd5uz:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._samka ._Rd5uz:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._samka ._Rd5uz._tia3j{flex-shrink:1;min-width:40px;z-index:0}._samka ._Rd5uz._tia3j._V-5RE{flex-grow:1}._samka ._Rd5uz:focus{z-index:20}";
3
+ var css_248z = "._nqeU0{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}._nqeU0._PtJ4X{height:26px;min-height:26px;padding:5px 8px}._lxped{display:flex;align-items:stretch}._lxped._h6tUf{width:100%}._lxped ._D3saP{margin:0;position:relative;flex-shrink:0;z-index:10}._lxped ._D3saP: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}._lxped ._D3saP:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._lxped ._D3saP:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._lxped ._D3saP:last-child,._lxped ._D3saP:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._lxped ._D3saP:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._lxped ._D3saP._GPjFc{flex-shrink:1;min-width:40px;z-index:0}._lxped ._D3saP._GPjFc._h6tUf{flex-grow:1}._lxped ._D3saP:focus{z-index:20}";
4
+ var styles = {"addon":"_nqeU0","small":"_PtJ4X","inputGroup":"_lxped","full":"_h6tUf","inputGroupElement":"_D3saP","input":"_GPjFc"};
5
+ var stylesheet="._nqeU0{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}._nqeU0._PtJ4X{height:26px;min-height:26px;padding:5px 8px}._lxped{display:flex;align-items:stretch}._lxped._h6tUf{width:100%}._lxped ._D3saP{margin:0;position:relative;flex-shrink:0;z-index:10}._lxped ._D3saP: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}._lxped ._D3saP:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._lxped ._D3saP:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._lxped ._D3saP:last-child,._lxped ._D3saP:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._lxped ._D3saP:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._lxped ._D3saP._GPjFc{flex-shrink:1;min-width:40px;z-index:0}._lxped ._D3saP._GPjFc._h6tUf{flex-grow:1}._lxped ._D3saP:focus{z-index:20}";
6
6
  styleInject(css_248z);
7
7
 
8
8
  export { styles as default, stylesheet };