@qualtrics/ui-react 2.33.0 → 2.34.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 (96) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/__shared/cjs/{index-64a2b540.js → index-3f588c2b.js} +156 -146
  3. package/dist/__shared/cjs/{index-0c3508de.js → index-d25f60b6.js} +5 -5
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/Banner/Banner.css.ts.vanilla.js +2 -2
  6. package/dist/components/Button/Button.js +3 -3
  7. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  8. package/dist/components/Checkbox/Checkbox2.js +3 -3
  9. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  10. package/dist/components/Combobox/Combobox2.js +3 -3
  11. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  12. package/dist/components/Divider/Divider2.js +3 -3
  13. package/dist/components/Dropdown/Dropdown.js +2 -1
  14. package/dist/components/Dropdown/Dropdown2.js +3 -3
  15. package/dist/components/FilePicker/FilePicker2.js +3 -3
  16. package/dist/components/FormField/Caption.js +3 -3
  17. package/dist/components/FormField/FormField.js +5 -5
  18. package/dist/components/FormField/FormField2.js +3 -3
  19. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  20. package/dist/components/IconButton/IconButton2.js +3 -3
  21. package/dist/components/InlineInput/InlineInput2.js +3 -3
  22. package/dist/components/Input/Input2.js +3 -3
  23. package/dist/components/InputGroup/InputGroup2.js +3 -3
  24. package/dist/components/Label/Label2.js +3 -3
  25. package/dist/components/Link/Link2.js +3 -3
  26. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  27. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  28. package/dist/components/Modal/Modal2.js +3 -3
  29. package/dist/components/NewMenu/NewMenu.js +3 -3
  30. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  31. package/dist/components/PageLayout/PageLayout.js +3 -3
  32. package/dist/components/Pagination/Pagination2.js +3 -3
  33. package/dist/components/Popover/Popover2.js +3 -3
  34. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  35. package/dist/components/Radio/Radio2.js +3 -3
  36. package/dist/components/SearchInput/SearchInput2.js +3 -3
  37. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  38. package/dist/components/Slider/Slider2.js +3 -3
  39. package/dist/components/Switch/Switch2.js +3 -3
  40. package/dist/components/Table/Table2.js +3 -3
  41. package/dist/components/Tabs/Tabs2.js +3 -3
  42. package/dist/components/Tooltip/Tooltip2.js +3 -3
  43. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  44. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  45. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  46. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  47. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  48. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  49. package/dist/icons/Icon.js +3 -3
  50. package/dist/icons/components/UserIcon.js +2 -2
  51. package/dist/icons/index.js +2 -2
  52. package/dist/index.d.ts +7 -0
  53. package/dist/index.es.js +1 -1
  54. package/dist/index.js +3 -3
  55. package/dist/next/AdvancedTable/AdvancedTable.js +1 -1
  56. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  57. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +1 -1
  58. package/dist/next/Chat/Chat.css.js +5 -0
  59. package/dist/next/Chat/Chat.css.ts.vanilla.js +8 -0
  60. package/dist/next/Chat/Chat.js +31 -0
  61. package/dist/next/Chat/ChatContext.js +9 -0
  62. package/dist/next/Chat/ChatInput.css.js +9 -0
  63. package/dist/next/Chat/ChatInput.css.ts.vanilla.js +8 -0
  64. package/dist/next/Chat/ChatInput.js +82 -0
  65. package/dist/next/Chat/ChatMessage.css.js +17 -0
  66. package/dist/next/Chat/ChatMessage.css.ts.vanilla.js +8 -0
  67. package/dist/next/Chat/ChatMessage.js +70 -0
  68. package/dist/next/Chat/ChatMessageList.css.js +7 -0
  69. package/dist/next/Chat/ChatMessageList.css.ts.vanilla.js +8 -0
  70. package/dist/next/Chat/ChatMessageList.js +90 -0
  71. package/dist/next/Chat/ChatMessageText.js +16 -0
  72. package/dist/next/Chat/Loader.css.js +9 -0
  73. package/dist/next/Chat/Loader.css.ts.vanilla.js +8 -0
  74. package/dist/next/Chat/Loader.js +66 -0
  75. package/dist/next/Chat/MessageContext.js +9 -0
  76. package/dist/next/Chat/index.js +4 -0
  77. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  78. package/dist/next/Combobox/Combobox2.js +3 -3
  79. package/dist/next/Drawer/Drawer2.js +3 -3
  80. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  81. package/dist/next/Form/FormFields/FormFieldWrapper.js +7 -5
  82. package/dist/next/Form/FormFields/InputField.js +3 -3
  83. package/dist/next/Input/Input2.js +3 -3
  84. package/dist/next/Menu/Menu2.js +3 -3
  85. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  86. package/dist/next/Select/Select2.js +3 -3
  87. package/dist/next/SplitButton/SplitButton2.js +3 -3
  88. package/dist/next/TimePicker/TimePicker2.js +3 -3
  89. package/dist/next/ToggleButton/styles.js +3 -3
  90. package/dist/next/index.d.ts +67 -0
  91. package/dist/next/index.es.js +5 -0
  92. package/dist/next/index.js +421 -55
  93. package/dist/translations-en.js +7 -0
  94. package/dist/utils/Flyout/Flyout2.js +3 -3
  95. package/next/package.json +1 -1
  96. 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 = "._T0RuQ{display:flex}._0hqKa{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._0hqKa._gZCaP{background-color:#fff}._0hqKa._gZCaP._30f1h.focus-visible:not(._uc50I),._0hqKa._gZCaP._30f1h:focus-visible:not(._uc50I),._0hqKa._gZCaP._ic-4D:not(._0hqKa._gZCaP._PiiYb),._0hqKa._pEVjj{background-color:#0b6ed0}._0hqKa._pEVjj._PiiYb._ic-4D,._0hqKa._pEVjj._uc50I._30f1h,._0hqKa._pEVjj._uc50I._PiiYb{opacity:.4}._zo289{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._zo289:focus{z-index:1}._K2xf6{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._K2xf6 svg{margin-left:1px}._K2xf6._gZCaP{background-color:#0b6ed0;border-color:transparent}._K2xf6._gZCaP svg{fill:#fff!important}._K2xf6._gZCaP:not(._tDyR1):hover{background-color:#085caf!important}._K2xf6._gZCaP:not(._tDyR1):active{background-color:#0854a1!important}._K2xf6._gZCaP._tDyR1{opacity:.4}._K2xf6._gZCaP._tDyR1 svg{background-color:transparent}._K2xf6._pEVjj{border-color:#0b6ed0;background-color:#fff}._K2xf6._pEVjj svg{fill:#0b6ed0!important}._K2xf6._pEVjj:not(._tDyR1):hover{background-color:#eef5fc!important}._K2xf6._pEVjj:not(._tDyR1):active{background-color:#e1edf9!important}._K2xf6._pEVjj._tDyR1{opacity:.4}._K2xf6._pEVjj._tDyR1 svg{background-color:transparent}._UuCeV{width:260px}";
4
- var styles = {"container":"_T0RuQ","divider":"_0hqKa","primary":"_gZCaP","mainButtonFocus":"_30f1h","mainButtonDisabled":"_uc50I","dropdownButtonFocus":"_ic-4D","dropdownButtonDisabled":"_PiiYb","secondary":"_pEVjj","mainButton":"_zo289","dropdownButton":"_K2xf6","disabled":"_tDyR1","dropdownOption":"_UuCeV"};
5
- var stylesheet="._T0RuQ{display:flex}._0hqKa{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._0hqKa._gZCaP{background-color:#fff}._0hqKa._gZCaP._30f1h.focus-visible:not(._uc50I),._0hqKa._gZCaP._30f1h:focus-visible:not(._uc50I),._0hqKa._gZCaP._ic-4D:not(._0hqKa._gZCaP._PiiYb),._0hqKa._pEVjj{background-color:#0b6ed0}._0hqKa._pEVjj._PiiYb._ic-4D,._0hqKa._pEVjj._uc50I._30f1h,._0hqKa._pEVjj._uc50I._PiiYb{opacity:.4}._zo289{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._zo289:focus{z-index:1}._K2xf6{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._K2xf6 svg{margin-left:1px}._K2xf6._gZCaP{background-color:#0b6ed0;border-color:transparent}._K2xf6._gZCaP svg{fill:#fff!important}._K2xf6._gZCaP:not(._tDyR1):hover{background-color:#085caf!important}._K2xf6._gZCaP:not(._tDyR1):active{background-color:#0854a1!important}._K2xf6._gZCaP._tDyR1{opacity:.4}._K2xf6._gZCaP._tDyR1 svg{background-color:transparent}._K2xf6._pEVjj{border-color:#0b6ed0;background-color:#fff}._K2xf6._pEVjj svg{fill:#0b6ed0!important}._K2xf6._pEVjj:not(._tDyR1):hover{background-color:#eef5fc!important}._K2xf6._pEVjj:not(._tDyR1):active{background-color:#e1edf9!important}._K2xf6._pEVjj._tDyR1{opacity:.4}._K2xf6._pEVjj._tDyR1 svg{background-color:transparent}._UuCeV{width:260px}";
3
+ var css_248z = "._mUi6x{display:flex}._1TI-T{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._1TI-T._fTIYn{background-color:#fff}._1TI-T._fTIYn._jqleV.focus-visible:not(._g9x5I),._1TI-T._fTIYn._jqleV:focus-visible:not(._g9x5I),._1TI-T._fTIYn._vY5-A:not(._1TI-T._fTIYn._Qor6J),._1TI-T._O6XB6{background-color:#0b6ed0}._1TI-T._O6XB6._g9x5I._jqleV,._1TI-T._O6XB6._g9x5I._Qor6J,._1TI-T._O6XB6._Qor6J._vY5-A{opacity:.4}._18D01{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._18D01:focus{z-index:1}._j94-e{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._j94-e svg{margin-left:1px}._j94-e._fTIYn{background-color:#0b6ed0;border-color:transparent}._j94-e._fTIYn svg{fill:#fff!important}._j94-e._fTIYn:not(._fHWg7):hover{background-color:#085caf!important}._j94-e._fTIYn:not(._fHWg7):active{background-color:#0854a1!important}._j94-e._fTIYn._fHWg7{opacity:.4}._j94-e._fTIYn._fHWg7 svg{background-color:transparent}._j94-e._O6XB6{border-color:#0b6ed0;background-color:#fff}._j94-e._O6XB6 svg{fill:#0b6ed0!important}._j94-e._O6XB6:not(._fHWg7):hover{background-color:#eef5fc!important}._j94-e._O6XB6:not(._fHWg7):active{background-color:#e1edf9!important}._j94-e._O6XB6._fHWg7{opacity:.4}._j94-e._O6XB6._fHWg7 svg{background-color:transparent}._nb2gZ{width:260px}";
4
+ var styles = {"container":"_mUi6x","divider":"_1TI-T","primary":"_fTIYn","mainButtonFocus":"_jqleV","mainButtonDisabled":"_g9x5I","dropdownButtonFocus":"_vY5-A","dropdownButtonDisabled":"_Qor6J","secondary":"_O6XB6","mainButton":"_18D01","dropdownButton":"_j94-e","disabled":"_fHWg7","dropdownOption":"_nb2gZ"};
5
+ var stylesheet="._mUi6x{display:flex}._1TI-T{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._1TI-T._fTIYn{background-color:#fff}._1TI-T._fTIYn._jqleV.focus-visible:not(._g9x5I),._1TI-T._fTIYn._jqleV:focus-visible:not(._g9x5I),._1TI-T._fTIYn._vY5-A:not(._1TI-T._fTIYn._Qor6J),._1TI-T._O6XB6{background-color:#0b6ed0}._1TI-T._O6XB6._g9x5I._jqleV,._1TI-T._O6XB6._g9x5I._Qor6J,._1TI-T._O6XB6._Qor6J._vY5-A{opacity:.4}._18D01{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._18D01:focus{z-index:1}._j94-e{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._j94-e svg{margin-left:1px}._j94-e._fTIYn{background-color:#0b6ed0;border-color:transparent}._j94-e._fTIYn svg{fill:#fff!important}._j94-e._fTIYn:not(._fHWg7):hover{background-color:#085caf!important}._j94-e._fTIYn:not(._fHWg7):active{background-color:#0854a1!important}._j94-e._fTIYn._fHWg7{opacity:.4}._j94-e._fTIYn._fHWg7 svg{background-color:transparent}._j94-e._O6XB6{border-color:#0b6ed0;background-color:#fff}._j94-e._O6XB6 svg{fill:#0b6ed0!important}._j94-e._O6XB6:not(._fHWg7):hover{background-color:#eef5fc!important}._j94-e._O6XB6:not(._fHWg7):active{background-color:#e1edf9!important}._j94-e._O6XB6._fHWg7{opacity:.4}._j94-e._O6XB6._fHWg7 svg{background-color:transparent}._nb2gZ{width:260px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._mo-do{display:inline-block;position:relative}._mo-do ._t4fc-{width:120px}._mo-do ._t4fc- ._wogsY._OampU{transform:rotate(-180deg)}._mo-do ._t4fc- ._wogsY._bcRdi{fill:#9d9fa1;opacity:.4}._mo-do ._6Fvhk>input:focus{box-shadow:none!important;border:1px solid #898989!important}._mo-do ._wogsY{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._mo-do ._wogsY._OampU{transform:rotate(-180deg)}._JQx-U{width:120px}._JQx-U ._EBN1d._mISpW{background-color:#efefef;border-radius:6px}";
4
- var styles = {"timePickerContainer":"_mo-do","input":"_t4fc-","icon":"_wogsY","open":"_OampU","disabled":"_bcRdi","ignoreFocusStyle":"_6Fvhk","timePickerFlyout":"_JQx-U","option":"_EBN1d","exactMatch":"_mISpW"};
5
- var stylesheet="._mo-do{display:inline-block;position:relative}._mo-do ._t4fc-{width:120px}._mo-do ._t4fc- ._wogsY._OampU{transform:rotate(-180deg)}._mo-do ._t4fc- ._wogsY._bcRdi{fill:#9d9fa1;opacity:.4}._mo-do ._6Fvhk>input:focus{box-shadow:none!important;border:1px solid #898989!important}._mo-do ._wogsY{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._mo-do ._wogsY._OampU{transform:rotate(-180deg)}._JQx-U{width:120px}._JQx-U ._EBN1d._mISpW{background-color:#efefef;border-radius:6px}";
3
+ var css_248z = "._euBRp{display:inline-block;position:relative}._euBRp ._Ra4Go{width:120px}._euBRp ._Ra4Go ._V5MkH._ogHJg{transform:rotate(-180deg)}._euBRp ._Ra4Go ._V5MkH._NOGHT{fill:#9d9fa1;opacity:.4}._euBRp ._2AiV1>input:focus{box-shadow:none!important;border:1px solid #898989!important}._euBRp ._V5MkH{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._euBRp ._V5MkH._ogHJg{transform:rotate(-180deg)}._rZiS8{width:120px}._rZiS8 ._ccFYE._PQg5x{background-color:#efefef;border-radius:6px}";
4
+ var styles = {"timePickerContainer":"_euBRp","input":"_Ra4Go","icon":"_V5MkH","open":"_ogHJg","disabled":"_NOGHT","ignoreFocusStyle":"_2AiV1","timePickerFlyout":"_rZiS8","option":"_ccFYE","exactMatch":"_PQg5x"};
5
+ var stylesheet="._euBRp{display:inline-block;position:relative}._euBRp ._Ra4Go{width:120px}._euBRp ._Ra4Go ._V5MkH._ogHJg{transform:rotate(-180deg)}._euBRp ._Ra4Go ._V5MkH._NOGHT{fill:#9d9fa1;opacity:.4}._euBRp ._2AiV1>input:focus{box-shadow:none!important;border:1px solid #898989!important}._euBRp ._V5MkH{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._euBRp ._V5MkH._ogHJg{transform:rotate(-180deg)}._rZiS8{width:120px}._rZiS8 ._ccFYE._PQg5x{background-color:#efefef;border-radius:6px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){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 = "._kOggc{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._25byZ{background-color:rgba(50,54,58,.08)}._-VUpy{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._tJcd4{color:rgba(81,85,89,.4);cursor:not-allowed}._-uH8A{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._KAFiy{color:#085caf;border-color:#085caf}._a-Ieh,._KAFiy{background:rgba(11,110,208,.11)}._a-Ieh{color:#0854a1;border-color:#0854a1}._tj2oh{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._RY9JG{position:relative;display:inline-grid}._RY9JG svg{fill:currentColor}._RY9JG ._DKkqT{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._RY9JG ._DKkqT+._uSjDv{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._RY9JG ._DKkqT+._uSjDv._AzJQb{padding:5px;max-width:36px;min-width:36px}._RY9JG ._DKkqT+._uSjDv._tMCjT{padding:0 16px}._RY9JG ._DKkqT+._uSjDv._olBC9{padding:0 16px 0 12px}._RY9JG ._DKkqT:hover+._uSjDv{background-color:rgba(50,54,58,.08)}._RY9JG ._DKkqT:disabled+._uSjDv{color:rgba(81,85,89,.4);cursor:not-allowed}._RY9JG ._DKkqT:active+._uSjDv,._RY9JG ._DKkqT:focus:active+._uSjDv{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._RY9JG ._DKkqT:checked+._uSjDv{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._RY9JG ._DKkqT:checked:hover+._uSjDv{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._RY9JG ._DKkqT:checked:disabled+._uSjDv{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._RY9JG ._DKkqT:checked:active+._uSjDv,._RY9JG ._DKkqT:checked:focus:active+._uSjDv{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._s-f7I{display:inline-flex;position:relative}._s-f7I:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._s-f7I>*{flex-shrink:0;flex-grow:0}._qTdES{border:none;margin:0;padding:0}._qTdES legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._RY9JG ._DKkqT.focus-visible,._RY9JG ._DKkqT:focus-visible{outline:none}._RY9JG ._DKkqT.focus-visible+._uSjDv,._RY9JG ._DKkqT:focus-visible+._uSjDv{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"default":"_kOggc","hovered":"_25byZ","pressed":"_-VUpy","disabled":"_tJcd4","selectedDefault":"_-uH8A","selectedHovered":"_KAFiy","selectedPressed":"_a-Ieh","selectedDisabled":"_tj2oh","toggleContainer":"_RY9JG","toggleInput":"_DKkqT","toggleButton":"_uSjDv","iconOnly":"_AzJQb","text":"_tMCjT","iconText":"_olBC9","toggleButtonGroup":"_s-f7I","toggleButtonGroupFieldset":"_qTdES"};
5
- var stylesheet="._kOggc{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._25byZ{background-color:rgba(50,54,58,.08)}._-VUpy{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._tJcd4{color:rgba(81,85,89,.4);cursor:not-allowed}._-uH8A{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._KAFiy{color:#085caf;border-color:#085caf}._a-Ieh,._KAFiy{background:rgba(11,110,208,.11)}._a-Ieh{color:#0854a1;border-color:#0854a1}._tj2oh{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._RY9JG{position:relative;display:inline-grid}._RY9JG svg{fill:currentColor}._RY9JG ._DKkqT{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._RY9JG ._DKkqT+._uSjDv{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._RY9JG ._DKkqT+._uSjDv._AzJQb{padding:5px;max-width:36px;min-width:36px}._RY9JG ._DKkqT+._uSjDv._tMCjT{padding:0 16px}._RY9JG ._DKkqT+._uSjDv._olBC9{padding:0 16px 0 12px}._RY9JG ._DKkqT:hover+._uSjDv{background-color:rgba(50,54,58,.08)}._RY9JG ._DKkqT:disabled+._uSjDv{color:rgba(81,85,89,.4);cursor:not-allowed}._RY9JG ._DKkqT:active+._uSjDv,._RY9JG ._DKkqT:focus:active+._uSjDv{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._RY9JG ._DKkqT:checked+._uSjDv{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._RY9JG ._DKkqT:checked:hover+._uSjDv{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._RY9JG ._DKkqT:checked:disabled+._uSjDv{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._RY9JG ._DKkqT:checked:active+._uSjDv,._RY9JG ._DKkqT:checked:focus:active+._uSjDv{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._s-f7I{display:inline-flex;position:relative}._s-f7I:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._s-f7I>*{flex-shrink:0;flex-grow:0}._qTdES{border:none;margin:0;padding:0}._qTdES legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._RY9JG ._DKkqT.focus-visible,._RY9JG ._DKkqT:focus-visible{outline:none}._RY9JG ._DKkqT.focus-visible+._uSjDv,._RY9JG ._DKkqT:focus-visible+._uSjDv{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._5MUHC{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._V7j19{background-color:rgba(50,54,58,.08)}._crj2o{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._HWapa{color:rgba(81,85,89,.4);cursor:not-allowed}._gcSq-{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._tkXPQ{color:#085caf;border-color:#085caf}._tkXPQ,._xspcp{background:rgba(11,110,208,.11)}._xspcp{color:#0854a1;border-color:#0854a1}._ZlvnZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._P1wHH{position:relative;display:inline-grid}._P1wHH svg{fill:currentColor}._P1wHH ._-Ik7J{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._P1wHH ._-Ik7J+._lHMng{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._P1wHH ._-Ik7J+._lHMng._sS1ZP{padding:5px;max-width:36px;min-width:36px}._P1wHH ._-Ik7J+._lHMng._hphpQ{padding:0 16px}._P1wHH ._-Ik7J+._lHMng._y6ogk{padding:0 16px 0 12px}._P1wHH ._-Ik7J:hover+._lHMng{background-color:rgba(50,54,58,.08)}._P1wHH ._-Ik7J:disabled+._lHMng{color:rgba(81,85,89,.4);cursor:not-allowed}._P1wHH ._-Ik7J:active+._lHMng,._P1wHH ._-Ik7J:focus:active+._lHMng{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._P1wHH ._-Ik7J:checked+._lHMng{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._P1wHH ._-Ik7J:checked:hover+._lHMng{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._P1wHH ._-Ik7J:checked:disabled+._lHMng{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._P1wHH ._-Ik7J:checked:active+._lHMng,._P1wHH ._-Ik7J:checked:focus:active+._lHMng{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._UE-j8{display:inline-flex;position:relative}._UE-j8:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._UE-j8>*{flex-shrink:0;flex-grow:0}._Bqab7{border:none;margin:0;padding:0}._Bqab7 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._P1wHH ._-Ik7J.focus-visible,._P1wHH ._-Ik7J:focus-visible{outline:none}._P1wHH ._-Ik7J.focus-visible+._lHMng,._P1wHH ._-Ik7J:focus-visible+._lHMng{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"default":"_5MUHC","hovered":"_V7j19","pressed":"_crj2o","disabled":"_HWapa","selectedDefault":"_gcSq-","selectedHovered":"_tkXPQ","selectedPressed":"_xspcp","selectedDisabled":"_ZlvnZ","toggleContainer":"_P1wHH","toggleInput":"_-Ik7J","toggleButton":"_lHMng","iconOnly":"_sS1ZP","text":"_hphpQ","iconText":"_y6ogk","toggleButtonGroup":"_UE-j8","toggleButtonGroupFieldset":"_Bqab7"};
5
+ var stylesheet="._5MUHC{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._V7j19{background-color:rgba(50,54,58,.08)}._crj2o{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._HWapa{color:rgba(81,85,89,.4);cursor:not-allowed}._gcSq-{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._tkXPQ{color:#085caf;border-color:#085caf}._tkXPQ,._xspcp{background:rgba(11,110,208,.11)}._xspcp{color:#0854a1;border-color:#0854a1}._ZlvnZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._P1wHH{position:relative;display:inline-grid}._P1wHH svg{fill:currentColor}._P1wHH ._-Ik7J{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._P1wHH ._-Ik7J+._lHMng{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._P1wHH ._-Ik7J+._lHMng._sS1ZP{padding:5px;max-width:36px;min-width:36px}._P1wHH ._-Ik7J+._lHMng._hphpQ{padding:0 16px}._P1wHH ._-Ik7J+._lHMng._y6ogk{padding:0 16px 0 12px}._P1wHH ._-Ik7J:hover+._lHMng{background-color:rgba(50,54,58,.08)}._P1wHH ._-Ik7J:disabled+._lHMng{color:rgba(81,85,89,.4);cursor:not-allowed}._P1wHH ._-Ik7J:active+._lHMng,._P1wHH ._-Ik7J:focus:active+._lHMng{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._P1wHH ._-Ik7J:checked+._lHMng{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._P1wHH ._-Ik7J:checked:hover+._lHMng{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._P1wHH ._-Ik7J:checked:disabled+._lHMng{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._P1wHH ._-Ik7J:checked:active+._lHMng,._P1wHH ._-Ik7J:checked:focus:active+._lHMng{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._UE-j8{display:inline-flex;position:relative}._UE-j8:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._UE-j8>*{flex-shrink:0;flex-grow:0}._Bqab7{border:none;margin:0;padding:0}._Bqab7 legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._P1wHH ._-Ik7J.focus-visible,._P1wHH ._-Ik7J:focus-visible{outline:none}._P1wHH ._-Ik7J.focus-visible+._lHMng,._P1wHH ._-Ik7J:focus-visible+._lHMng{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -198,6 +198,71 @@ export declare interface AdvancedTableSelectedSortOption {
198
198
 
199
199
  declare type Alignment = AdvancedTableColumnConfig['alignment'];
200
200
 
201
+ export declare const Chat: React_2.ForwardRefExoticComponent<ChatProps & React_2.RefAttributes<HTMLDivElement>>;
202
+
203
+ export declare const ChatInput: React_2.ForwardRefExoticComponent<ChatInputProps & React_2.RefAttributes<HTMLTextAreaElement>>;
204
+
205
+ export declare interface ChatInputProps {
206
+ /** Function to call when the send button is clicked
207
+ * or "enter" is pressed on the input or send button */
208
+ onMessageSend?: (message: string) => void;
209
+ /** Whether the input and button should be disabled */
210
+ isDisabled?: boolean;
211
+ /** The value of the underlying `textarea`
212
+ * @defaultValue false
213
+ */
214
+ value?: string;
215
+ /** Function to call whenever the value of theunderlying `textarea` changes */
216
+ onChange?: (newValue: string) => void;
217
+ /** Forwarded to sub-components with the following suffixes
218
+ * * `-input`
219
+ * * `-button`
220
+ */
221
+ 'data-testid'?: string;
222
+ }
223
+
224
+ export declare const ChatMessage: React_2.ForwardRefExoticComponent<ChatMessageProps & React_2.RefAttributes<HTMLLIElement>>;
225
+
226
+ export declare const ChatMessageList: React_2.ForwardRefExoticComponent<ChatMessageListProps & React_2.RefAttributes<HTMLDivElement>>;
227
+
228
+ export declare interface ChatMessageListProps {
229
+ /** The `Message`s to display */
230
+ children?: ReactNode;
231
+ /** Used to control which child in the message list should be part of the page's tab order.
232
+ * See the accessibility notes for details on if/how you should use this prop */
233
+ focusedMessageIndex?: number;
234
+ /** Used to control which child in the message list should be part of the page's tab order.
235
+ * See the accessibility notes for details on if/how you should use this prop */
236
+ onFocusedMessageIndexChange?: (newFocusedMessageIndex: number) => void;
237
+ /** Forwarded to the `div` element */
238
+ 'data-testid'?: string;
239
+ }
240
+
241
+ export declare interface ChatMessageProps {
242
+ /** The message's content */
243
+ children: ReactNode;
244
+ /** Who the message is from. Sets the message's style and labels */
245
+ variant: Variant;
246
+ /** Forwarded to the `li` element */
247
+ 'data-testid'?: string;
248
+ /** Sets the message text to be used in the message's accessible label.
249
+ * See the accessibility notes for details on if/how you should use this prop */
250
+ accessibleText?: string;
251
+ }
252
+
253
+ export declare interface ChatProps {
254
+ /** The `ChatMessageList` and `ChatInput` */
255
+ children: ReactNode;
256
+ /** Function to call whenever the cancel button (visible when `isLoading` is `true`) is clicked */
257
+ onMessageCancel?: () => void;
258
+ /** Displays a loading spinner and a button to cancel the last message
259
+ * @defaultValue false
260
+ */
261
+ isLoading?: boolean;
262
+ /** Forwarded to the `div` element */
263
+ 'data-testid'?: string;
264
+ }
265
+
201
266
  declare interface CheckboxRegisterProps<V extends Values> {
202
267
  name: keyof V;
203
268
  type: 'checkbox';
@@ -1210,6 +1275,8 @@ declare type Value = string | string[] | boolean;
1210
1275
 
1211
1276
  declare type Values = Partial<Record<string, Value>>;
1212
1277
 
1278
+ declare type Variant = 'user' | 'bot';
1279
+
1213
1280
  export declare const VStack: React_2.ForwardRefExoticComponent<VStackProps & React_2.RefAttributes<HTMLDivElement>>;
1214
1281
 
1215
1282
  declare type VStackAlignChildrenX = 'left' | 'center' | 'right' | 'stretch';
@@ -15,6 +15,7 @@ import './SplitButton/index.js';
15
15
  import './Stack/index.js';
16
16
  import './TimePicker/index.js';
17
17
  import './ToggleButton/index.js';
18
+ import './Chat/index.js';
18
19
  export { AdvancedTable } from './AdvancedTable/AdvancedTable.js';
19
20
  export { default as CollapsibleSearchInput } from './CollapsibleSearchInput/CollapsibleSearchInput.js';
20
21
  export { CollectionGrid } from './CollectionGrid/CollectionGrid.js';
@@ -52,5 +53,9 @@ export { StackItem } from './Stack/StackItem.js';
52
53
  export { TimePicker } from './TimePicker/TimePicker.js';
53
54
  export { default as ToggleButtonGroup } from './ToggleButton/ToggleButtonGroup.js';
54
55
  export { default as ToggleButton } from './ToggleButton/ToggleButton.js';
56
+ export { default as Chat } from './Chat/Chat.js';
57
+ export { default as ChatInput } from './Chat/ChatInput.js';
58
+ export { default as ChatMessage } from './Chat/ChatMessage.js';
59
+ export { default as ChatMessageList } from './Chat/ChatMessageList.js';
55
60
 
56
61
  /* eslint-disable camelcase */