@qualtrics/ui-react 2.49.1-alpha.0 → 2.50.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 +16 -0
- package/dist/__shared/cjs/{index-65fe6015.js → index-19ecf96e.js} +224 -215
- package/dist/__shared/cjs/{index-43c0270d.js → index-e9e9ae0e.js} +20 -4
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +13 -9
- 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/ColorPicker/Palette.js +39 -33
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +6 -5
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -4
- package/dist/components/Dropdown/DropdownSearch.js +2 -6
- 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 -5
- 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/TabContextProvider.js +2 -0
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +2 -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_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_Tabs/Tabs.js +2 -2
- 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/AsynchronousJobsIcon.js +6 -0
- package/dist/icons/components/CircleEmptyIcon.js +6 -0
- package/dist/icons/components/InformationIcon.js +1 -1
- package/dist/icons/components/MobileAppInterceptIcon.js +6 -0
- package/dist/icons/components/MobileAppSessionReplayIcon.js +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.es.js +4 -0
- package/dist/icons/index.js +5 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +6 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +1 -6
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +6 -15
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +11 -9
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -6
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +3 -12
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +138 -30
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer.js +1 -1
- 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/Menu/Hooks/usePaneSearch.js +7 -12
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +0 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +2 -1
- 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 +12 -14
- package/dist/next/index.js +162 -298
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +1 -1
- package/dist/utils/Translation/containsComponentOrElement.js +3 -6
- package/dist/utils/Translation/useTranslation.js +1 -5
- package/icons/package.json +10 -10
- package/next/package.json +11 -11
- package/package.json +41 -41
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +0 -32
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +0 -191
package/dist/next/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
1
3
|
import { AllHTMLAttributes } from 'react';
|
|
2
4
|
import type { ChangeEvent } from 'react';
|
|
3
5
|
import { ChangeEventHandler } from 'react';
|
|
4
6
|
import { ComputedPlacement } from '@popperjs/core';
|
|
5
7
|
import { CountryCode } from 'libphonenumber-js';
|
|
6
8
|
import { CSSProperties } from 'react';
|
|
9
|
+
import { DetailedHTMLProps } from 'react';
|
|
7
10
|
import { E164Number } from 'libphonenumber-js';
|
|
8
11
|
import { FocusEventHandler } from 'react';
|
|
9
12
|
import { FormEvent } from 'react';
|
|
13
|
+
import { FormHTMLAttributes } from 'react';
|
|
10
14
|
import { FunctionComponent } from 'react';
|
|
11
15
|
import type { InputHTMLAttributes } from 'react';
|
|
12
16
|
import { MouseEventHandler } from 'react';
|
|
@@ -326,10 +330,6 @@ declare interface CheckboxRegisterProps<V extends Values> {
|
|
|
326
330
|
ref: RefCallback<HTMLInputElement>;
|
|
327
331
|
}
|
|
328
332
|
|
|
329
|
-
declare type ChildrenType = React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
330
|
-
|
|
331
|
-
declare type ChildrenType_2 = React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
332
|
-
|
|
333
333
|
export declare const CollapsibleSearchInput: React_2.ForwardRefExoticComponent<CollapsibleSearchInputProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
334
334
|
|
|
335
335
|
export declare interface CollapsibleSearchInputProps {
|
|
@@ -378,7 +378,7 @@ export declare interface CollectionGridItemProps {
|
|
|
378
378
|
*/
|
|
379
379
|
asChild?: boolean;
|
|
380
380
|
/** Content to display inside of the grid item */
|
|
381
|
-
children?:
|
|
381
|
+
children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
382
382
|
/** Added to the containing `div` */
|
|
383
383
|
'data-testid'?: string;
|
|
384
384
|
}
|
|
@@ -695,8 +695,6 @@ export declare interface FilterAnchorProps extends Omit<AllHTMLAttributes<HTMLBu
|
|
|
695
695
|
className?: string;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
declare type FormProps = React.ComponentPropsWithoutRef<'form'>;
|
|
699
|
-
|
|
700
698
|
declare type HandleSubmit = (onSubmit: OnSubmit) => (event: FormEvent<HTMLFormElement>) => Promise<void>;
|
|
701
699
|
|
|
702
700
|
export declare const HStack: React_2.ForwardRefExoticComponent<HStackProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -775,7 +773,7 @@ export declare const LayoutGridItem: React_2.ForwardRefExoticComponent<LayoutGri
|
|
|
775
773
|
|
|
776
774
|
export declare interface LayoutGridItemProps {
|
|
777
775
|
/** Content to display inside of the grid item */
|
|
778
|
-
children?:
|
|
776
|
+
children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
779
777
|
/** Assigns a grid item to one of the areas defined in the parent `LayoutGrid`'s `areas` prop */
|
|
780
778
|
area?: React_2.CSSProperties['gridArea'];
|
|
781
779
|
/** Replaces the `LayoutGridItem`'s default element with its single child and merges `LayoutGridItem`'s props and behavior into the child's. This is especially useful if your grid item should be represented by a semantic HTML element. Use this prop with caution, as any future changes we make to the component may override the child's props.
|
|
@@ -1358,7 +1356,7 @@ export declare interface ToggleButtonProps {
|
|
|
1358
1356
|
}
|
|
1359
1357
|
|
|
1360
1358
|
export declare const Tooltip: React_2.ForwardRefExoticComponent<Omit<TooltipProps_2, "lightTheme"> & {
|
|
1361
|
-
children: TooltipProps_2[
|
|
1359
|
+
children: TooltipProps_2['children'];
|
|
1362
1360
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
1363
1361
|
|
|
1364
1362
|
export declare type TooltipProps = Omit<TooltipProps_2, 'lightTheme'> & {
|
|
@@ -1414,20 +1412,20 @@ declare interface TooltipProps_2 extends Omit<React_2.AllHTMLAttributes<HTMLDivE
|
|
|
1414
1412
|
}
|
|
1415
1413
|
|
|
1416
1414
|
export declare function useForm<V extends Values>({ initialValues, validateField, }: UseFormOptions<V>): {
|
|
1417
|
-
Form: (props:
|
|
1415
|
+
Form: (props: Omit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">) => JSX.Element;
|
|
1418
1416
|
register: {
|
|
1419
1417
|
(name: keyof V, options: {
|
|
1420
|
-
type:
|
|
1418
|
+
type: 'text' | 'email' | 'password';
|
|
1421
1419
|
}): TextRegisterProps<V>;
|
|
1422
1420
|
(name: keyof V, options: {
|
|
1423
|
-
type:
|
|
1421
|
+
type: 'checkbox';
|
|
1424
1422
|
}): CheckboxRegisterProps<V>;
|
|
1425
1423
|
(name: keyof V, options: {
|
|
1426
|
-
type:
|
|
1424
|
+
type: 'radio';
|
|
1427
1425
|
radioValue: string;
|
|
1428
1426
|
}): RadioRegisterProps<V>;
|
|
1429
1427
|
(name: keyof V, options: {
|
|
1430
|
-
type:
|
|
1428
|
+
type: 'custom';
|
|
1431
1429
|
}): CustomRegisterProps<V>;
|
|
1432
1430
|
};
|
|
1433
1431
|
formValues: V;
|