@qualtrics/ui-react 2.59.0 → 2.61.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.
- package/CHANGELOG.md +25 -0
- package/dist/__shared/cjs/{index-085db764.js → index-32504881.js} +150 -140
- package/dist/__shared/cjs/{index-1d9585d2.js → index-51b822e7.js} +19 -3
- 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/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +4 -0
- 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/BaseMenu.js +6 -6
- 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/Tooltip.js +8 -2
- 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/design-tokens/less/typography.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/BreakdownBarWidgetIcon.js +6 -0
- package/dist/icons/components/CompetitorIcon.js +6 -0
- package/dist/icons/components/IFrameWidgetIcon.js +6 -0
- package/dist/icons/components/TextAnalyticsIcon.js +6 -0
- package/dist/icons/index.d.ts +8 -0
- package/dist/icons/index.es.js +4 -0
- package/dist/icons/index.js +5 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- 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/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner.js +54 -0
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +8 -0
- package/dist/next/LoadingSpinner/index.js +1 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +2 -2
- 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/Tooltip/Tooltip.js +11 -6
- package/dist/next/Tooltip/index.js +2 -0
- package/dist/next/index.d.ts +39 -5
- package/dist/next/index.es.js +2 -0
- package/dist/next/index.js +209 -150
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +2 -2
|
@@ -2,11 +2,16 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import Tooltip$1 from '../../components/Tooltip/Tooltip.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
5
|
+
const Tooltip = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
6
|
+
let {
|
|
7
|
+
persistentInDom = true,
|
|
8
|
+
...props
|
|
9
|
+
} = _ref;
|
|
10
|
+
return /*#__PURE__*/React__default.createElement(Tooltip$1, _extends({}, props, {
|
|
11
|
+
ref: ref,
|
|
12
|
+
lightTheme: true,
|
|
13
|
+
persistentInDom: persistentInDom
|
|
14
|
+
}), props.children);
|
|
15
|
+
});
|
|
11
16
|
|
|
12
17
|
export { Tooltip as default };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -816,6 +816,35 @@ export declare interface LayoutGridProps extends LayoutGridItemProps {
|
|
|
816
816
|
area?: React_2.CSSProperties['gridArea'];
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
+
export declare const LoadingSpinner: React_2.ForwardRefExoticComponent<LoadingSpinnerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
820
|
+
|
|
821
|
+
export declare interface LoadingSpinnerProps extends Omit<React_2.AllHTMLAttributes<HTMLDivElement>, 'size'> {
|
|
822
|
+
/** Makes the LoadingSpinner visible.
|
|
823
|
+
* @defaultValue false */
|
|
824
|
+
show?: boolean;
|
|
825
|
+
/** The size of the `LoadingSpinner`. For `LoadingSpinner`s with no child component, a minimum width and height will be applied.
|
|
826
|
+
* @defaultValue 'medium' */
|
|
827
|
+
size?: 'xs' | 'small' | 'medium' | 'large';
|
|
828
|
+
/** Changes the opacity of the `LoadingSpinner`'s children.
|
|
829
|
+
* @defaultValue 'fade' */
|
|
830
|
+
background?: 'hide' | 'fade';
|
|
831
|
+
/** Changes the `LoadingSpinner` color from black to white.
|
|
832
|
+
* @defaultValue false */
|
|
833
|
+
inverted?: boolean;
|
|
834
|
+
/** When the spinner is showing, pointer events will be disabled on the children, but children can still be navigated by a keyboard user. Add the `disabled` prop to children components as appropriate. */
|
|
835
|
+
children?: React_2.ReactNode;
|
|
836
|
+
/** Appended to internal classes on the containing `div` element. */
|
|
837
|
+
className?: string;
|
|
838
|
+
/** Controls the message sent to the screen reader for loading events. */
|
|
839
|
+
'aria-label'?: string;
|
|
840
|
+
/** Directs the screen reader to other elements designated for messaging. */
|
|
841
|
+
'aria-labelledby'?: string;
|
|
842
|
+
/** Controls the timing of screen reader messages.
|
|
843
|
+
* @defaultValue 'polite' */
|
|
844
|
+
'aria-live'?: 'off' | 'assertive' | 'polite';
|
|
845
|
+
[prop: string]: any;
|
|
846
|
+
}
|
|
847
|
+
|
|
819
848
|
export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps) => JSX.Element;
|
|
820
849
|
|
|
821
850
|
export declare const MenuButton: React_2.ForwardRefExoticComponent<MenuButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1367,13 +1396,18 @@ export declare interface ToggleButtonProps {
|
|
|
1367
1396
|
dataTestId?: string;
|
|
1368
1397
|
}
|
|
1369
1398
|
|
|
1370
|
-
export declare const Tooltip: React_2.ForwardRefExoticComponent<
|
|
1371
|
-
children: TooltipProps_2["children"];
|
|
1372
|
-
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
1399
|
+
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1373
1400
|
|
|
1374
|
-
export declare
|
|
1401
|
+
export declare interface TooltipProps extends Omit<TooltipProps_2, 'lightTheme'> {
|
|
1375
1402
|
children: TooltipProps_2['children'];
|
|
1376
|
-
|
|
1403
|
+
/**
|
|
1404
|
+
* This prop was designed to control whether the tooltip stays in the DOM when hidden,
|
|
1405
|
+
* but setting it to `false` causes significant accessibility issues therefore we highly discourage from using it.
|
|
1406
|
+
* @defaultValue true
|
|
1407
|
+
* @deprecated This prop is deprecated and will be removed in a future major version.
|
|
1408
|
+
*/
|
|
1409
|
+
persistentInDom?: boolean;
|
|
1410
|
+
}
|
|
1377
1411
|
|
|
1378
1412
|
declare interface TooltipProps_2 extends Omit<React_2.AllHTMLAttributes<HTMLDivElement>, 'content'> {
|
|
1379
1413
|
/** Element or component to which the tooltip should be anchored, which must accept a ref. */
|
package/dist/next/index.es.js
CHANGED
|
@@ -7,6 +7,7 @@ import './FilterAnchor/index.js';
|
|
|
7
7
|
import './Form/index.js';
|
|
8
8
|
import './Input/index.js';
|
|
9
9
|
import './LayoutGrid/index.js';
|
|
10
|
+
import './LoadingSpinner/index.js';
|
|
10
11
|
import './Menu/index.js';
|
|
11
12
|
import './Pagination/index.js';
|
|
12
13
|
import './PhoneNumberInput/index.js';
|
|
@@ -34,6 +35,7 @@ export { default as useFormField } from './Form/useFormField.js';
|
|
|
34
35
|
export { default as Input } from './Input/Input.js';
|
|
35
36
|
export { LayoutGrid } from './LayoutGrid/LayoutGrid.js';
|
|
36
37
|
export { LayoutGridItem } from './LayoutGrid/LayoutGridItem.js';
|
|
38
|
+
export { default as LoadingSpinner } from './LoadingSpinner/LoadingSpinner.js';
|
|
37
39
|
export { default as Menu } from './Menu/Menu.js';
|
|
38
40
|
export { default as MenuButton } from './Menu/MenuButton.js';
|
|
39
41
|
export { default as MenuPane } from './Menu/MenuPane.js';
|