@qualtrics/ui-react 2.33.1 → 2.34.1
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.
- package/CHANGELOG.md +22 -0
- package/dist/__shared/cjs/{index-eabb2673.js → index-58d2165f.js} +154 -144
- package/dist/__shared/cjs/{index-dda93aba.js → index-6ae70787.js} +5 -5
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +2 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +5 -5
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/UserIcon.js +2 -2
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/Chat/Chat.css.js +5 -0
- package/dist/next/Chat/Chat.css.ts.vanilla.js +8 -0
- package/dist/next/Chat/Chat.js +31 -0
- package/dist/next/Chat/ChatContext.js +9 -0
- package/dist/next/Chat/ChatInput.css.js +9 -0
- package/dist/next/Chat/ChatInput.css.ts.vanilla.js +8 -0
- package/dist/next/Chat/ChatInput.js +82 -0
- package/dist/next/Chat/ChatMessage.css.js +17 -0
- package/dist/next/Chat/ChatMessage.css.ts.vanilla.js +8 -0
- package/dist/next/Chat/ChatMessage.js +70 -0
- package/dist/next/Chat/ChatMessageList.css.js +7 -0
- package/dist/next/Chat/ChatMessageList.css.ts.vanilla.js +8 -0
- package/dist/next/Chat/ChatMessageList.js +90 -0
- package/dist/next/Chat/ChatMessageText.js +16 -0
- package/dist/next/Chat/Loader.css.js +9 -0
- package/dist/next/Chat/Loader.css.ts.vanilla.js +8 -0
- package/dist/next/Chat/Loader.js +66 -0
- package/dist/next/Chat/MessageContext.js +9 -0
- package/dist/next/Chat/index.js +4 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +7 -5
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +67 -0
- package/dist/next/index.es.js +5 -0
- package/dist/next/index.js +420 -54
- package/dist/translations-en.js +7 -0
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/next/package.json +1 -1
- 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 = ".
|
|
4
|
-
var styles = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._nxmrv{display:inline-block;position:relative}._nxmrv ._v-WF2{width:120px}._nxmrv ._v-WF2 ._yYbjS._qgOw7{transform:rotate(-180deg)}._nxmrv ._v-WF2 ._yYbjS._Ooc4t{fill:#9d9fa1;opacity:.4}._nxmrv ._dAilL>input:focus{box-shadow:none!important;border:1px solid #898989!important}._nxmrv ._yYbjS{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._nxmrv ._yYbjS._qgOw7{transform:rotate(-180deg)}._6-YG-{width:120px}._6-YG- ._Bjp4h._l-Q5b{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_nxmrv","input":"_v-WF2","icon":"_yYbjS","open":"_qgOw7","disabled":"_Ooc4t","ignoreFocusStyle":"_dAilL","timePickerFlyout":"_6-YG-","option":"_Bjp4h","exactMatch":"_l-Q5b"};
|
|
5
|
+
var stylesheet="._nxmrv{display:inline-block;position:relative}._nxmrv ._v-WF2{width:120px}._nxmrv ._v-WF2 ._yYbjS._qgOw7{transform:rotate(-180deg)}._nxmrv ._v-WF2 ._yYbjS._Ooc4t{fill:#9d9fa1;opacity:.4}._nxmrv ._dAilL>input:focus{box-shadow:none!important;border:1px solid #898989!important}._nxmrv ._yYbjS{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._nxmrv ._yYbjS._qgOw7{transform:rotate(-180deg)}._6-YG-{width:120px}._6-YG- ._Bjp4h._l-Q5b{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 = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._4KC-E{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._r3tuz{background-color:rgba(50,54,58,.08)}._kmv9S{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._26Sqe{color:rgba(81,85,89,.4);cursor:not-allowed}._sm6Hk{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._bzQDd{color:#085caf;border-color:#085caf}._-dl5M,._bzQDd{background:rgba(11,110,208,.11)}._-dl5M{color:#0854a1;border-color:#0854a1}._EmsYN{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ICFIH{position:relative;display:inline-grid}._ICFIH svg{fill:currentColor}._ICFIH ._XS8cS{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._ICFIH ._XS8cS+._7qiGT{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}._ICFIH ._XS8cS+._7qiGT._VNG37{padding:5px;max-width:36px;min-width:36px}._ICFIH ._XS8cS+._7qiGT._3Q5ME{padding:0 16px}._ICFIH ._XS8cS+._7qiGT._dsc2S{padding:0 16px 0 12px}._ICFIH ._XS8cS:hover+._7qiGT{background-color:rgba(50,54,58,.08)}._ICFIH ._XS8cS:disabled+._7qiGT{color:rgba(81,85,89,.4);cursor:not-allowed}._ICFIH ._XS8cS:active+._7qiGT,._ICFIH ._XS8cS:focus:active+._7qiGT{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._ICFIH ._XS8cS:checked+._7qiGT{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._ICFIH ._XS8cS:checked:hover+._7qiGT{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._ICFIH ._XS8cS:checked:disabled+._7qiGT{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ICFIH ._XS8cS:checked:active+._7qiGT,._ICFIH ._XS8cS:checked:focus:active+._7qiGT{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bqZbb{display:inline-flex;position:relative}._bqZbb:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bqZbb>*{flex-shrink:0;flex-grow:0}._TEV7a{border:none;margin:0;padding:0}._TEV7a legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._ICFIH ._XS8cS.focus-visible,._ICFIH ._XS8cS:focus-visible{outline:none}._ICFIH ._XS8cS.focus-visible+._7qiGT,._ICFIH ._XS8cS:focus-visible+._7qiGT{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_4KC-E","hovered":"_r3tuz","pressed":"_kmv9S","disabled":"_26Sqe","selectedDefault":"_sm6Hk","selectedHovered":"_bzQDd","selectedPressed":"_-dl5M","selectedDisabled":"_EmsYN","toggleContainer":"_ICFIH","toggleInput":"_XS8cS","toggleButton":"_7qiGT","iconOnly":"_VNG37","text":"_3Q5ME","iconText":"_dsc2S","toggleButtonGroup":"_bqZbb","toggleButtonGroupFieldset":"_TEV7a"};
|
|
5
|
+
var stylesheet="._4KC-E{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._r3tuz{background-color:rgba(50,54,58,.08)}._kmv9S{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._26Sqe{color:rgba(81,85,89,.4);cursor:not-allowed}._sm6Hk{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._bzQDd{color:#085caf;border-color:#085caf}._-dl5M,._bzQDd{background:rgba(11,110,208,.11)}._-dl5M{color:#0854a1;border-color:#0854a1}._EmsYN{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ICFIH{position:relative;display:inline-grid}._ICFIH svg{fill:currentColor}._ICFIH ._XS8cS{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._ICFIH ._XS8cS+._7qiGT{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}._ICFIH ._XS8cS+._7qiGT._VNG37{padding:5px;max-width:36px;min-width:36px}._ICFIH ._XS8cS+._7qiGT._3Q5ME{padding:0 16px}._ICFIH ._XS8cS+._7qiGT._dsc2S{padding:0 16px 0 12px}._ICFIH ._XS8cS:hover+._7qiGT{background-color:rgba(50,54,58,.08)}._ICFIH ._XS8cS:disabled+._7qiGT{color:rgba(81,85,89,.4);cursor:not-allowed}._ICFIH ._XS8cS:active+._7qiGT,._ICFIH ._XS8cS:focus:active+._7qiGT{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._ICFIH ._XS8cS:checked+._7qiGT{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._ICFIH ._XS8cS:checked:hover+._7qiGT{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._ICFIH ._XS8cS:checked:disabled+._7qiGT{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._ICFIH ._XS8cS:checked:active+._7qiGT,._ICFIH ._XS8cS:checked:focus:active+._7qiGT{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bqZbb{display:inline-flex;position:relative}._bqZbb:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bqZbb>*{flex-shrink:0;flex-grow:0}._TEV7a{border:none;margin:0;padding:0}._TEV7a legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._ICFIH ._XS8cS.focus-visible,._ICFIH ._XS8cS:focus-visible{outline:none}._ICFIH ._XS8cS.focus-visible+._7qiGT,._ICFIH ._XS8cS:focus-visible+._7qiGT{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 };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/next/index.es.js
CHANGED
|
@@ -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 */
|