@gooddata/sdk-ui-kit 11.57.0-alpha.3 → 11.57.0-alpha.5
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/esm/@ui/@utils/keyboardNavigation.d.ts +10 -0
- package/esm/@ui/@utils/keyboardNavigation.d.ts.map +1 -1
- package/esm/@ui/@utils/keyboardNavigation.js +9 -0
- package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialogCard.d.ts +4 -6
- package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialogCard.d.ts.map +1 -1
- package/esm/@ui/UiAddGranteeDialog/UiAddGranteeDialogCard.js +10 -8
- package/esm/@ui/UiAutocomplete/useAsyncListSource.js +1 -1
- package/esm/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.d.ts +8 -1
- package/esm/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.d.ts.map +1 -1
- package/esm/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.js +10 -6
- package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.d.ts.map +1 -1
- package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js +6 -2
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuContentItem.d.ts.map +1 -1
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuContentItem.js +7 -2
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuInteractiveItem.d.ts.map +1 -1
- package/esm/@ui/UiMenu/components/defaults/DefaultUiMenuInteractiveItem.js +7 -2
- package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiDialogHeader.js +6 -3
- package/esm/@ui/UiObjectShareDialog/UiObjectShareDialogCard.d.ts +16 -3
- package/esm/@ui/UiObjectShareDialog/UiObjectShareDialogCard.d.ts.map +1 -1
- package/esm/@ui/UiObjectShareDialog/UiObjectShareDialogCard.js +2 -3
- package/esm/@ui/UiPermissionMenu/UiPermissionMenu.d.ts +9 -4
- package/esm/@ui/UiPermissionMenu/UiPermissionMenu.d.ts.map +1 -1
- package/esm/@ui/UiPermissionMenu/UiPermissionMenu.js +20 -29
- package/esm/@ui/UiTags/hooks/useResponsiveTags.js +1 -1
- package/esm/@ui/UiToolbar/UiToolbar.d.ts +52 -0
- package/esm/@ui/UiToolbar/UiToolbar.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/UiToolbar.js +44 -0
- package/esm/@ui/UiToolbar/UiToolbarChevron.d.ts +8 -0
- package/esm/@ui/UiToolbar/UiToolbarChevron.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/UiToolbarChevron.js +12 -0
- package/esm/@ui/UiToolbar/UiToolbarItemTooltip.d.ts +14 -0
- package/esm/@ui/UiToolbar/UiToolbarItemTooltip.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/UiToolbarItemTooltip.js +11 -0
- package/esm/@ui/UiToolbar/constants.d.ts +5 -0
- package/esm/@ui/UiToolbar/constants.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/constants.js +6 -0
- package/esm/@ui/UiToolbar/context.d.ts +23 -0
- package/esm/@ui/UiToolbar/context.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/context.js +6 -0
- package/esm/@ui/UiToolbar/rovingFocusUtils.d.ts +55 -0
- package/esm/@ui/UiToolbar/rovingFocusUtils.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/rovingFocusUtils.js +220 -0
- package/esm/@ui/UiToolbar/toolbarItemProps.d.ts +35 -0
- package/esm/@ui/UiToolbar/toolbarItemProps.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/toolbarItemProps.js +2 -0
- package/esm/@ui/UiToolbar/useToolbarRovingFocus.d.ts +19 -0
- package/esm/@ui/UiToolbar/useToolbarRovingFocus.d.ts.map +1 -0
- package/esm/@ui/UiToolbar/useToolbarRovingFocus.js +172 -0
- package/esm/@ui/UiToolbarButton/UiToolbarButton.d.ts +19 -0
- package/esm/@ui/UiToolbarButton/UiToolbarButton.d.ts.map +1 -0
- package/esm/@ui/UiToolbarButton/UiToolbarButton.js +29 -0
- package/esm/@ui/UiToolbarButton/useToolbarItemRole.d.ts +38 -0
- package/esm/@ui/UiToolbarButton/useToolbarItemRole.d.ts.map +1 -0
- package/esm/@ui/UiToolbarButton/useToolbarItemRole.js +67 -0
- package/esm/@ui/UiToolbarColorSwatch/UiToolbarColorSwatch.d.ts +38 -0
- package/esm/@ui/UiToolbarColorSwatch/UiToolbarColorSwatch.d.ts.map +1 -0
- package/esm/@ui/UiToolbarColorSwatch/UiToolbarColorSwatch.js +13 -0
- package/esm/@ui/UiToolbarDivider/UiToolbarDivider.d.ts +7 -0
- package/esm/@ui/UiToolbarDivider/UiToolbarDivider.d.ts.map +1 -0
- package/esm/@ui/UiToolbarDivider/UiToolbarDivider.js +12 -0
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.d.ts +34 -0
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.d.ts.map +1 -0
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.js +34 -0
- package/esm/@ui/UiToolbarIconSelect/UiToolbarIconSelect.d.ts +54 -0
- package/esm/@ui/UiToolbarIconSelect/UiToolbarIconSelect.d.ts.map +1 -0
- package/esm/@ui/UiToolbarIconSelect/UiToolbarIconSelect.js +26 -0
- package/esm/@ui/UiToolbarMoreButton/UiToolbarMoreButton.d.ts +41 -0
- package/esm/@ui/UiToolbarMoreButton/UiToolbarMoreButton.d.ts.map +1 -0
- package/esm/@ui/UiToolbarMoreButton/UiToolbarMoreButton.js +12 -0
- package/esm/@ui/UiToolbarSegmentedControl/UiToolbarSegmentedControl.d.ts +37 -0
- package/esm/@ui/UiToolbarSegmentedControl/UiToolbarSegmentedControl.d.ts.map +1 -0
- package/esm/@ui/UiToolbarSegmentedControl/UiToolbarSegmentedControl.js +145 -0
- package/esm/@ui/UiToolbarSegmentedControl/context.d.ts +12 -0
- package/esm/@ui/UiToolbarSegmentedControl/context.d.ts.map +1 -0
- package/esm/@ui/UiToolbarSegmentedControl/context.js +3 -0
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.d.ts +51 -0
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.d.ts.map +1 -0
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.js +24 -0
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.d.ts +75 -0
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.d.ts.map +1 -0
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.js +85 -0
- package/esm/@ui/UiTooltip/UiTooltip.d.ts +1 -1
- package/esm/@ui/UiTooltip/UiTooltip.d.ts.map +1 -1
- package/esm/@ui/UiTooltip/UiTooltip.js +26 -8
- package/esm/@ui/UiTooltip/types.d.ts +12 -0
- package/esm/@ui/UiTooltip/types.d.ts.map +1 -1
- package/esm/@ui/hooks/useElementSize.d.ts.map +1 -1
- package/esm/@ui/hooks/useElementSize.js +2 -1
- package/esm/@ui/hooks/useIsTextTruncated.d.ts +12 -0
- package/esm/@ui/hooks/useIsTextTruncated.d.ts.map +1 -0
- package/esm/@ui/hooks/useIsTextTruncated.js +29 -0
- package/esm/Dropdown/Dropdown.js +1 -1
- package/esm/EditableLabel/EditableLabel.js +1 -1
- package/esm/List/LegacyList.js +1 -1
- package/esm/List/List.js +1 -1
- package/esm/Messages/toasts/NonContextToastsInterop.js +1 -1
- package/esm/Messages/toasts/ToastsCenterMessage.d.ts.map +1 -1
- package/esm/Messages/toasts/ToastsCenterMessage.js +1 -1
- package/esm/ResponsiveText/ResponsiveText.js +3 -3
- package/esm/ShortenedText/ShortenedText.js +1 -1
- package/esm/index.d.ts +15 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +12 -1
- package/esm/locales.d.ts +4 -16
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +2 -6
- package/esm/sdk-ui-kit.d.ts +513 -15
- package/esm/syntaxHighlightingInput/hooks/useCodemirror.js +1 -1
- package/esm/utils/domUtilities.d.ts +4 -0
- package/esm/utils/domUtilities.d.ts.map +1 -1
- package/esm/utils/domUtilities.js +4 -1
- package/esm/utils/events.d.ts +3 -0
- package/esm/utils/events.d.ts.map +1 -1
- package/esm/utils/events.js +4 -1
- package/package.json +13 -14
- package/src/@ui/UiAddGranteeDialog/UiAddGranteeDialog.scss +8 -0
- package/src/@ui/UiGranteeAsyncPicker/UiGranteeAsyncPicker.scss +0 -6
- package/src/@ui/UiGranteeRow/UiGranteeRow.scss +5 -0
- package/src/@ui/UiListbox/UiListbox.scss +4 -0
- package/src/@ui/UiMenu/UiMenu.scss +3 -0
- package/src/@ui/UiModalDialog/UiModalDialog.scss +16 -3
- package/src/@ui/UiObjectShareDialog/UiObjectShareDialog.scss +40 -1
- package/src/@ui/UiPermissionMenu/UiPermissionMenu.scss +7 -3
- package/src/@ui/UiToolbar/UiToolbar.scss +15 -0
- package/src/@ui/UiToolbar/UiToolbarChevron.scss +11 -0
- package/src/@ui/UiToolbar/toolbarItem.scss +133 -0
- package/src/@ui/UiToolbarButton/UiToolbarButton.scss +15 -0
- package/src/@ui/UiToolbarColorSwatch/UiToolbarColorSwatch.scss +66 -0
- package/src/@ui/UiToolbarDivider/UiToolbarDivider.scss +11 -0
- package/src/@ui/UiToolbarIconButton/UiToolbarIconButton.scss +30 -0
- package/src/@ui/UiToolbarIconSelect/UiToolbarIconSelect.scss +12 -0
- package/src/@ui/UiToolbarSegmentedControl/UiToolbarSegmentedControl.scss +10 -0
- package/src/@ui/UiToolbarSelect/UiToolbarSelect.scss +29 -0
- package/src/@ui/UiToolbarStepper/UiToolbarStepper.scss +53 -0
- package/src/@ui/defaultTheme.scss +1 -0
- package/src/@ui/index.scss +10 -0
- package/styles/css/main.css +563 -9
- package/styles/css/main.css.map +1 -1
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -5626,6 +5626,9 @@ export declare interface IRowsIconProps extends IIconProps {
|
|
|
5626
5626
|
/**
|
|
5627
5627
|
* Checks if the given keyboard event is an action key = Enter or Space.
|
|
5628
5628
|
*
|
|
5629
|
+
* Both the produced character and the physical key are accepted, so it agrees with the navigation
|
|
5630
|
+
* helpers in `@ui`, which match on `code`.
|
|
5631
|
+
*
|
|
5629
5632
|
* @param event - The keyboard event to check.
|
|
5630
5633
|
* @returns `true` if the event is an action key, `false` otherwise.
|
|
5631
5634
|
*
|
|
@@ -6644,8 +6647,6 @@ export declare interface ITypographyProps {
|
|
|
6644
6647
|
* @internal
|
|
6645
6648
|
*/
|
|
6646
6649
|
export declare interface IUiAddGranteeDialogCardProps {
|
|
6647
|
-
/** Object title shown in the header — wrapped into `Share "\{title\}"`. */
|
|
6648
|
-
objectTitle: string;
|
|
6649
6650
|
/** Loader passed straight through to the embedded `UiGranteeAsyncPicker`. */
|
|
6650
6651
|
loadOptions: (search: string) => Promise<IUiGranteeAsyncOptions>;
|
|
6651
6652
|
/**
|
|
@@ -8000,6 +8001,12 @@ export declare interface IUiGranteeAsyncPickerProps {
|
|
|
8000
8001
|
* stays hidden rather than offering an Apply that discards it.
|
|
8001
8002
|
*/
|
|
8002
8003
|
labels?: ReadonlyArray<IUiLabelsChecklistItem>;
|
|
8004
|
+
/**
|
|
8005
|
+
* Accessible name of the search input, which has no visible label of its own — the
|
|
8006
|
+
* surrounding dialog's title names it, so pass that title here. Defaults to the
|
|
8007
|
+
* add-grantee dialog title.
|
|
8008
|
+
*/
|
|
8009
|
+
accessibilityConfig?: Pick<IAccessibilityConfigBase, "ariaLabel">;
|
|
8003
8010
|
/** Fires with the applied label scope of a picked row. Enables `labels`. */
|
|
8004
8011
|
onLabelsChange?: (grantee: IUiPickedGrantee, selectedLabelIds: string[]) => void;
|
|
8005
8012
|
/** Test id forwarded to the root element. */
|
|
@@ -8686,12 +8693,25 @@ export declare interface IUiNavigationItem {
|
|
|
8686
8693
|
* @internal
|
|
8687
8694
|
*/
|
|
8688
8695
|
export declare interface IUiObjectShareDialogCardProps {
|
|
8689
|
-
/**
|
|
8690
|
-
|
|
8696
|
+
/**
|
|
8697
|
+
* Dialog heading, composed by the caller — it names the shared object's type
|
|
8698
|
+
* ("Share attribute"), which only the caller knows.
|
|
8699
|
+
*/
|
|
8700
|
+
title: string;
|
|
8691
8701
|
/** Fires when the user clicks the header X button OR the footer Close button. */
|
|
8692
8702
|
onClose: () => void;
|
|
8703
|
+
/**
|
|
8704
|
+
* Optional informational note rendered right below the header — e.g. a reminder
|
|
8705
|
+
* that administrators have full access regardless of the grants listed.
|
|
8706
|
+
*/
|
|
8707
|
+
note?: ReactNode;
|
|
8693
8708
|
/** Grantee rows shown inside the SHARED WITH section, in render order. */
|
|
8694
8709
|
grantees: IUiObjectShareDialogGrantee[];
|
|
8710
|
+
/**
|
|
8711
|
+
* Placeholder shown inside the SHARED WITH section when `grantees` is empty and the
|
|
8712
|
+
* list is not loading — tells the user nobody has been granted access yet.
|
|
8713
|
+
*/
|
|
8714
|
+
emptyMessage?: ReactNode;
|
|
8695
8715
|
/**
|
|
8696
8716
|
* When true, skeleton rows stand in for the grantee list and the
|
|
8697
8717
|
* general-access radio — set it while the access list is loading, so the
|
|
@@ -8906,7 +8926,7 @@ export declare interface IUiPermissionMenuProps {
|
|
|
8906
8926
|
* the signed-in user may not pick because they exceed their own.
|
|
8907
8927
|
*/
|
|
8908
8928
|
disabledLevels?: ReadonlyArray<PermissionMenuLevel>;
|
|
8909
|
-
/** Tooltip shown on disabled level rows
|
|
8929
|
+
/** Tooltip shown on disabled level rows, explaining why the level can't be picked. */
|
|
8910
8930
|
disabledTooltip?: string;
|
|
8911
8931
|
/**
|
|
8912
8932
|
* Per-level override of `disabledTooltip`, for menus whose disabled levels have
|
|
@@ -8932,6 +8952,11 @@ export declare interface IUiPermissionMenuProps {
|
|
|
8932
8952
|
isRemoveDisabled?: boolean;
|
|
8933
8953
|
/** Tooltip shown on Remove access while it is disabled. */
|
|
8934
8954
|
removeDisabledTooltip?: string;
|
|
8955
|
+
/**
|
|
8956
|
+
* Label of the remove row. Defaults to "Remove access"; a picker staging a grantee
|
|
8957
|
+
* that holds no access yet passes the shorter "Remove".
|
|
8958
|
+
*/
|
|
8959
|
+
removeAccessLabel?: string;
|
|
8935
8960
|
/** Test id forwarded to the menu body. */
|
|
8936
8961
|
dataTestId?: string;
|
|
8937
8962
|
}
|
|
@@ -9554,6 +9579,332 @@ export declare interface IUiToastsContainerProps {
|
|
|
9554
9579
|
dataTestId?: string;
|
|
9555
9580
|
}
|
|
9556
9581
|
|
|
9582
|
+
/**
|
|
9583
|
+
* @internal
|
|
9584
|
+
*/
|
|
9585
|
+
export declare interface IUiToolbarButtonProps extends IUiToolbarItemBaseProps {
|
|
9586
|
+
label: string;
|
|
9587
|
+
/**
|
|
9588
|
+
* Shown on hover and focus. Use it when the label is not self-explanatory.
|
|
9589
|
+
*/
|
|
9590
|
+
tooltip?: ReactNode;
|
|
9591
|
+
}
|
|
9592
|
+
|
|
9593
|
+
/**
|
|
9594
|
+
* @internal
|
|
9595
|
+
*/
|
|
9596
|
+
export declare interface IUiToolbarColorSwatchProps {
|
|
9597
|
+
/**
|
|
9598
|
+
* "fill" paints the whole chip. "text" shows a glyph with the colour as a bar beneath it.
|
|
9599
|
+
* @defaultValue "fill"
|
|
9600
|
+
*/
|
|
9601
|
+
variant?: "fill" | "text";
|
|
9602
|
+
/**
|
|
9603
|
+
* Any CSS colour.
|
|
9604
|
+
*/
|
|
9605
|
+
color?: string;
|
|
9606
|
+
/**
|
|
9607
|
+
* Outline for colours too pale to read against the toolbar.
|
|
9608
|
+
* @defaultValue false
|
|
9609
|
+
*/
|
|
9610
|
+
hasBorder?: boolean;
|
|
9611
|
+
/**
|
|
9612
|
+
* No colour is set. Applies to the "fill" variant only.
|
|
9613
|
+
* @defaultValue false
|
|
9614
|
+
*/
|
|
9615
|
+
isTransparent?: boolean;
|
|
9616
|
+
/**
|
|
9617
|
+
* Glyph of the "text" variant.
|
|
9618
|
+
* @defaultValue "A"
|
|
9619
|
+
*/
|
|
9620
|
+
glyph?: ReactNode;
|
|
9621
|
+
}
|
|
9622
|
+
|
|
9623
|
+
/**
|
|
9624
|
+
* @internal
|
|
9625
|
+
*/
|
|
9626
|
+
export declare interface IUiToolbarIconButtonProps extends IUiToolbarItemBaseProps {
|
|
9627
|
+
/**
|
|
9628
|
+
* Icon name, or a custom node such as {@link UiToolbarColorSwatch}.
|
|
9629
|
+
*/
|
|
9630
|
+
icon: IconType | ReactNode;
|
|
9631
|
+
/**
|
|
9632
|
+
* Accessible name. It is also the tooltip text.
|
|
9633
|
+
*/
|
|
9634
|
+
label: string;
|
|
9635
|
+
/**
|
|
9636
|
+
* "medium" is 28x28 with a 20px icon. "small" is 14x14 with a 14px icon and is meant for the
|
|
9637
|
+
* side controls of {@link UiToolbarStepper}.
|
|
9638
|
+
* @defaultValue "medium"
|
|
9639
|
+
*/
|
|
9640
|
+
size?: SizeSmall | SizeMedium;
|
|
9641
|
+
/**
|
|
9642
|
+
* @defaultValue false
|
|
9643
|
+
*/
|
|
9644
|
+
hideTooltip?: boolean;
|
|
9645
|
+
}
|
|
9646
|
+
|
|
9647
|
+
/**
|
|
9648
|
+
* @internal
|
|
9649
|
+
*/
|
|
9650
|
+
export declare interface IUiToolbarIconSelectProps {
|
|
9651
|
+
/**
|
|
9652
|
+
* Icon name, or a custom node such as {@link UiToolbarColorSwatch}.
|
|
9653
|
+
* @defaultValue a fill colour swatch
|
|
9654
|
+
*/
|
|
9655
|
+
icon?: IconType | ReactNode;
|
|
9656
|
+
/**
|
|
9657
|
+
* Accessible name. It is also the tooltip text.
|
|
9658
|
+
*/
|
|
9659
|
+
label: string;
|
|
9660
|
+
/**
|
|
9661
|
+
* Held while the popup is on screen. Flips the chevron and keeps the pressed look.
|
|
9662
|
+
* @defaultValue false
|
|
9663
|
+
*/
|
|
9664
|
+
isOpen?: boolean;
|
|
9665
|
+
/**
|
|
9666
|
+
* What the trigger opens. Ignored when `ariaAttributes` are given.
|
|
9667
|
+
* @defaultValue "listbox"
|
|
9668
|
+
*/
|
|
9669
|
+
popupType?: "listbox" | "menu" | "dialog";
|
|
9670
|
+
/**
|
|
9671
|
+
* Toggle state, exposed as `aria-pressed`.
|
|
9672
|
+
*/
|
|
9673
|
+
isSelected?: boolean;
|
|
9674
|
+
isDisabled?: boolean;
|
|
9675
|
+
/**
|
|
9676
|
+
* @defaultValue false
|
|
9677
|
+
*/
|
|
9678
|
+
hideTooltip?: boolean;
|
|
9679
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
9680
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLButtonElement>) => void;
|
|
9681
|
+
id?: string;
|
|
9682
|
+
dataId?: string;
|
|
9683
|
+
dataTestId?: string;
|
|
9684
|
+
accessibilityConfig?: IAccessibilityConfigBase;
|
|
9685
|
+
/**
|
|
9686
|
+
* Attributes from the `renderButton` callback of {@link UiDropdown}.
|
|
9687
|
+
*/
|
|
9688
|
+
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9689
|
+
}
|
|
9690
|
+
|
|
9691
|
+
/**
|
|
9692
|
+
* Props every interactive toolbar item shares.
|
|
9693
|
+
*
|
|
9694
|
+
* @internal
|
|
9695
|
+
*/
|
|
9696
|
+
export declare interface IUiToolbarItemBaseProps {
|
|
9697
|
+
/**
|
|
9698
|
+
* Identifies the item inside a {@link UiToolbarSegmentedControl}.
|
|
9699
|
+
*/
|
|
9700
|
+
value?: string;
|
|
9701
|
+
/**
|
|
9702
|
+
* Toggle state, exposed as `aria-pressed`. Inside a segmented control the group's value wins.
|
|
9703
|
+
*/
|
|
9704
|
+
isSelected?: boolean;
|
|
9705
|
+
isDestructive?: boolean;
|
|
9706
|
+
isDisabled?: boolean;
|
|
9707
|
+
/**
|
|
9708
|
+
* Pressed look held while a popup opened by the item is on screen.
|
|
9709
|
+
*/
|
|
9710
|
+
isActive?: boolean;
|
|
9711
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
9712
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLButtonElement>) => void;
|
|
9713
|
+
id?: string;
|
|
9714
|
+
dataId?: string;
|
|
9715
|
+
dataTestId?: string;
|
|
9716
|
+
accessibilityConfig?: IAccessibilityConfigBase;
|
|
9717
|
+
/**
|
|
9718
|
+
* Attributes from the `renderButton` callback of {@link UiDropdown}.
|
|
9719
|
+
*/
|
|
9720
|
+
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9721
|
+
}
|
|
9722
|
+
|
|
9723
|
+
/**
|
|
9724
|
+
* @internal
|
|
9725
|
+
*/
|
|
9726
|
+
export declare interface IUiToolbarMoreButtonProps {
|
|
9727
|
+
/**
|
|
9728
|
+
* Accessible name, for example "More actions". It is also the tooltip text.
|
|
9729
|
+
*/
|
|
9730
|
+
label: string;
|
|
9731
|
+
/**
|
|
9732
|
+
* @defaultValue "ellipsis"
|
|
9733
|
+
*/
|
|
9734
|
+
icon?: IconType | ReactNode;
|
|
9735
|
+
/**
|
|
9736
|
+
* Held while the menu is on screen.
|
|
9737
|
+
* @defaultValue false
|
|
9738
|
+
*/
|
|
9739
|
+
isOpen?: boolean;
|
|
9740
|
+
isDisabled?: boolean;
|
|
9741
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
9742
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLButtonElement>) => void;
|
|
9743
|
+
id?: string;
|
|
9744
|
+
dataId?: string;
|
|
9745
|
+
dataTestId?: string;
|
|
9746
|
+
accessibilityConfig?: IAccessibilityConfigBase;
|
|
9747
|
+
/**
|
|
9748
|
+
* Attributes from the `renderButton` callback of {@link UiDropdown}. Without them the trigger
|
|
9749
|
+
* announces a menu popup.
|
|
9750
|
+
*/
|
|
9751
|
+
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9752
|
+
}
|
|
9753
|
+
|
|
9754
|
+
/**
|
|
9755
|
+
* @internal
|
|
9756
|
+
*/
|
|
9757
|
+
export declare interface IUiToolbarProps {
|
|
9758
|
+
/**
|
|
9759
|
+
* The toolbar needs an accessible name.
|
|
9760
|
+
*/
|
|
9761
|
+
accessibilityConfig: UiToolbarNamingConfig;
|
|
9762
|
+
children: ReactNode;
|
|
9763
|
+
/**
|
|
9764
|
+
* Side of the toolbar on which item tooltips open. Use "above" for a toolbar docked at the bottom.
|
|
9765
|
+
* @defaultValue "below"
|
|
9766
|
+
*/
|
|
9767
|
+
tooltipPlacement?: "below" | "above";
|
|
9768
|
+
/**
|
|
9769
|
+
* Keep disabled items reachable with arrow keys.
|
|
9770
|
+
* @defaultValue true
|
|
9771
|
+
*/
|
|
9772
|
+
isDisabledFocusable?: boolean;
|
|
9773
|
+
/**
|
|
9774
|
+
* Wrap from the last item to the first one and back.
|
|
9775
|
+
* @defaultValue true
|
|
9776
|
+
*/
|
|
9777
|
+
loop?: boolean;
|
|
9778
|
+
dataTestId?: string;
|
|
9779
|
+
}
|
|
9780
|
+
|
|
9781
|
+
/**
|
|
9782
|
+
* @internal
|
|
9783
|
+
*/
|
|
9784
|
+
export declare interface IUiToolbarSegmentedControlProps {
|
|
9785
|
+
value: string | undefined;
|
|
9786
|
+
onChange: (value: string, event: UiToolbarSegmentedControlChangeEvent) => void;
|
|
9787
|
+
/**
|
|
9788
|
+
* The group needs an accessible name.
|
|
9789
|
+
*/
|
|
9790
|
+
accessibilityConfig: UiToolbarNamingConfig;
|
|
9791
|
+
isDisabled?: boolean;
|
|
9792
|
+
/**
|
|
9793
|
+
* Two to five {@link UiToolbarButton} or {@link UiToolbarIconButton} items, each with a `value`.
|
|
9794
|
+
*/
|
|
9795
|
+
children: ReactNode;
|
|
9796
|
+
dataTestId?: string;
|
|
9797
|
+
}
|
|
9798
|
+
|
|
9799
|
+
/**
|
|
9800
|
+
* @internal
|
|
9801
|
+
*/
|
|
9802
|
+
export declare interface IUiToolbarSelectProps {
|
|
9803
|
+
/**
|
|
9804
|
+
* The current selection, or the prompt when `isPlaceholder` is set.
|
|
9805
|
+
*/
|
|
9806
|
+
label: string;
|
|
9807
|
+
/**
|
|
9808
|
+
* "fixed" is 240px wide and truncates the label so the toolbar does not move as the selection
|
|
9809
|
+
* changes.
|
|
9810
|
+
* @defaultValue "hug"
|
|
9811
|
+
*/
|
|
9812
|
+
width?: "hug" | "fixed";
|
|
9813
|
+
/**
|
|
9814
|
+
* Nothing is chosen yet; the label reads as prompt text.
|
|
9815
|
+
* @defaultValue false
|
|
9816
|
+
*/
|
|
9817
|
+
isPlaceholder?: boolean;
|
|
9818
|
+
/**
|
|
9819
|
+
* Held while the popup is on screen. Flips the chevron and keeps the pressed look.
|
|
9820
|
+
* @defaultValue false
|
|
9821
|
+
*/
|
|
9822
|
+
isOpen?: boolean;
|
|
9823
|
+
isDisabled?: boolean;
|
|
9824
|
+
/**
|
|
9825
|
+
* Shown on hover and focus, for example the full name of a truncated label.
|
|
9826
|
+
*/
|
|
9827
|
+
tooltip?: ReactNode;
|
|
9828
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
9829
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLButtonElement>) => void;
|
|
9830
|
+
id?: string;
|
|
9831
|
+
dataId?: string;
|
|
9832
|
+
dataTestId?: string;
|
|
9833
|
+
accessibilityConfig?: IAccessibilityConfigBase;
|
|
9834
|
+
/**
|
|
9835
|
+
* Attributes from the `renderButton` callback of {@link UiDropdown}. Without them the trigger
|
|
9836
|
+
* announces a listbox popup.
|
|
9837
|
+
*/
|
|
9838
|
+
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9839
|
+
}
|
|
9840
|
+
|
|
9841
|
+
/**
|
|
9842
|
+
* @internal
|
|
9843
|
+
*/
|
|
9844
|
+
export declare interface IUiToolbarStepperAccessibilityConfig {
|
|
9845
|
+
/**
|
|
9846
|
+
* Name of the value, for example "Zoom" or "Page".
|
|
9847
|
+
*/
|
|
9848
|
+
ariaLabel: string;
|
|
9849
|
+
/**
|
|
9850
|
+
* Name of the increase control, for example "Zoom in" or "Next page".
|
|
9851
|
+
*/
|
|
9852
|
+
incrementLabel: string;
|
|
9853
|
+
/**
|
|
9854
|
+
* Name of the decrease control, for example "Zoom out" or "Previous page".
|
|
9855
|
+
*/
|
|
9856
|
+
decrementLabel: string;
|
|
9857
|
+
}
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* @internal
|
|
9861
|
+
*/
|
|
9862
|
+
export declare interface IUiToolbarStepperProps {
|
|
9863
|
+
/**
|
|
9864
|
+
* "value" adjusts a quantity with minus and plus. "pagination" moves through a sequence with
|
|
9865
|
+
* left and right arrows and shows the value as a readout.
|
|
9866
|
+
*/
|
|
9867
|
+
variant: "value" | "pagination";
|
|
9868
|
+
/**
|
|
9869
|
+
* The committed value as text, for example "100%" or "1 / 2".
|
|
9870
|
+
*/
|
|
9871
|
+
value: string;
|
|
9872
|
+
onStep: (direction: 1 | -1) => void;
|
|
9873
|
+
/**
|
|
9874
|
+
* @defaultValue true
|
|
9875
|
+
*/
|
|
9876
|
+
canStepUp?: boolean;
|
|
9877
|
+
/**
|
|
9878
|
+
* @defaultValue true
|
|
9879
|
+
*/
|
|
9880
|
+
canStepDown?: boolean;
|
|
9881
|
+
isDisabled?: boolean;
|
|
9882
|
+
accessibilityConfig: IUiToolbarStepperAccessibilityConfig;
|
|
9883
|
+
decreaseIcon?: IconType;
|
|
9884
|
+
increaseIcon?: IconType;
|
|
9885
|
+
/**
|
|
9886
|
+
* Makes the value of the "value" variant editable. Enter commits the typed text. Escape and blur
|
|
9887
|
+
* revert the typed text to the committed value.
|
|
9888
|
+
*/
|
|
9889
|
+
onCommit?: (value: string) => void;
|
|
9890
|
+
/**
|
|
9891
|
+
* Held while the preset list is on screen.
|
|
9892
|
+
* @defaultValue false
|
|
9893
|
+
*/
|
|
9894
|
+
isOpen?: boolean;
|
|
9895
|
+
/**
|
|
9896
|
+
* Attributes from the `renderButton` callback of a {@link UiDropdown} with `triggerRole: "combobox"`.
|
|
9897
|
+
*/
|
|
9898
|
+
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9899
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
9900
|
+
onClick?: (event: MouseEvent_2<HTMLInputElement>) => void;
|
|
9901
|
+
/**
|
|
9902
|
+
* Runs before the built-in key handling, which is skipped when the event is default-prevented.
|
|
9903
|
+
*/
|
|
9904
|
+
onInputKeyDown?: (event: KeyboardEvent_2<HTMLInputElement>) => void;
|
|
9905
|
+
dataTestId?: string;
|
|
9906
|
+
}
|
|
9907
|
+
|
|
9557
9908
|
/**
|
|
9558
9909
|
* @internal
|
|
9559
9910
|
*/
|
|
@@ -9642,6 +9993,18 @@ export declare interface IUiTooltipProps {
|
|
|
9642
9993
|
* Custom styles for the anchor wrapper element
|
|
9643
9994
|
*/
|
|
9644
9995
|
anchorWrapperStyles?: CSSProperties;
|
|
9996
|
+
/**
|
|
9997
|
+
* Close the tooltip when the anchor is clicked. Uncontrolled mode only.
|
|
9998
|
+
* @defaultValue false
|
|
9999
|
+
*/
|
|
10000
|
+
closeOnAnchorClick?: boolean;
|
|
10001
|
+
/**
|
|
10002
|
+
* Take the hover delays from an enclosing floating-ui `FloatingDelayGroup` instead of
|
|
10003
|
+
* `hoverOpenDelay` / `hoverCloseDelay`. Sibling tooltips in the group open instantly while one
|
|
10004
|
+
* of them was recently open.
|
|
10005
|
+
* @defaultValue false
|
|
10006
|
+
*/
|
|
10007
|
+
delayGroup?: boolean;
|
|
9645
10008
|
}
|
|
9646
10009
|
|
|
9647
10010
|
/**
|
|
@@ -10138,6 +10501,17 @@ export declare const makeMenuKeyboardNavigation: <T extends KeyboardEvent_2 = Ke
|
|
|
10138
10501
|
onUnhandledKeyDown?: ((event: T) => void) | undefined;
|
|
10139
10502
|
}, options?: IHandleActionOptions) => (event: T) => void;
|
|
10140
10503
|
|
|
10504
|
+
/**
|
|
10505
|
+
* Home and End are left out so they reach an enclosing toolbar.
|
|
10506
|
+
*
|
|
10507
|
+
* @internal
|
|
10508
|
+
*/
|
|
10509
|
+
export declare const makeRadioGroupKeyboardNavigation: <T extends KeyboardEvent_2 = KeyboardEvent_2<Element>>(handlers: {
|
|
10510
|
+
onFocusNext?: ((event: T) => void) | undefined;
|
|
10511
|
+
onFocusPrevious?: ((event: T) => void) | undefined;
|
|
10512
|
+
onUnhandledKeyDown?: ((event: T) => void) | undefined;
|
|
10513
|
+
}, options?: IHandleActionOptions) => (event: T) => void;
|
|
10514
|
+
|
|
10141
10515
|
/**
|
|
10142
10516
|
* @internal
|
|
10143
10517
|
*/
|
|
@@ -10967,6 +11341,14 @@ export declare function ToastsCenterContextProvider({ skipAutomaticMessageRender
|
|
|
10967
11341
|
children: ReactNode;
|
|
10968
11342
|
}): JSX.Element;
|
|
10969
11343
|
|
|
11344
|
+
/**
|
|
11345
|
+
* Marks a subtree the toolbar keyboard navigation must ignore. Set it as a data attribute on a
|
|
11346
|
+
* wrapper element inside a {@link UiToolbar}.
|
|
11347
|
+
*
|
|
11348
|
+
* @internal
|
|
11349
|
+
*/
|
|
11350
|
+
export declare const TOOLBAR_SKIP_ATTR = "data-gd-toolbar-skip";
|
|
11351
|
+
|
|
10970
11352
|
/**
|
|
10971
11353
|
* Standard tooltip width presets.
|
|
10972
11354
|
* Will be integrated into the theme system as CSS custom properties (e.g. --tooltipWidth-m).
|
|
@@ -11041,9 +11423,9 @@ export declare type TypographyTagName = "h1" | "h2" | "h3" | "p";
|
|
|
11041
11423
|
export declare function UiAddGranteeDialog({ isOpen, ...cardProps }: IUiAddGranteeDialogProps): JSX.Element;
|
|
11042
11424
|
|
|
11043
11425
|
/**
|
|
11044
|
-
* Add-grantee dialog card — header
|
|
11045
|
-
*
|
|
11046
|
-
* and
|
|
11426
|
+
* Add-grantee dialog card — header ("Add users or groups", which also names the
|
|
11427
|
+
* search input) + grantee picker (search input with sectioned Groups/Users
|
|
11428
|
+
* dropdown and picked-rows list) + footer with Cancel and Add. Renders inline as a plain card. For modal behavior (portal,
|
|
11047
11429
|
* backdrop, focus trap, dismiss), use `UiAddGranteeDialog` which wraps this
|
|
11048
11430
|
* in `UiModalDialog`.
|
|
11049
11431
|
*
|
|
@@ -11053,7 +11435,7 @@ export declare function UiAddGranteeDialog({ isOpen, ...cardProps }: IUiAddGrant
|
|
|
11053
11435
|
*
|
|
11054
11436
|
* @internal
|
|
11055
11437
|
*/
|
|
11056
|
-
export declare function UiAddGranteeDialogCard({
|
|
11438
|
+
export declare function UiAddGranteeDialogCard({ loadOptions, disabledLevels, disabledTooltip, selectedGrantees, onSelectedGranteesChange, initialPermissionLevel, labels, onBack, onClose, onCancel, onShare, dataTestId, }: IUiAddGranteeDialogCardProps): JSX.Element;
|
|
11057
11439
|
|
|
11058
11440
|
/**
|
|
11059
11441
|
* @internal
|
|
@@ -11478,7 +11860,7 @@ export declare function UiGeneralAccessRadio({ value, onChange, disabled, worksp
|
|
|
11478
11860
|
*
|
|
11479
11861
|
* @internal
|
|
11480
11862
|
*/
|
|
11481
|
-
export declare function UiGranteeAsyncPicker({ loadOptions, selectedGrantees, onSelect, onPermissionChange, disabledLevels, disabledTooltip, onRemove, labels, onLabelsChange, dataTestId, }: IUiGranteeAsyncPickerProps): JSX.Element;
|
|
11863
|
+
export declare function UiGranteeAsyncPicker({ loadOptions, selectedGrantees, onSelect, onPermissionChange, disabledLevels, disabledTooltip, onRemove, labels, onLabelsChange, accessibilityConfig, dataTestId, }: IUiGranteeAsyncPickerProps): JSX.Element;
|
|
11482
11864
|
|
|
11483
11865
|
/**
|
|
11484
11866
|
* 32×32 circle avatar used by the OLP share-dialog grantee list. Thin wrapper
|
|
@@ -11641,7 +12023,7 @@ export declare function UiObjectShareDialog({ isOpen, ...cardProps }: IUiObjectS
|
|
|
11641
12023
|
*
|
|
11642
12024
|
* @internal
|
|
11643
12025
|
*/
|
|
11644
|
-
export declare function UiObjectShareDialogCard({
|
|
12026
|
+
export declare function UiObjectShareDialogCard({ title, onClose, note, grantees, emptyMessage, isLoading, onAddClick, isAddDisabled, generalAccess, onGeneralAccessChange, isGeneralAccessDisabled, workspaceAccessInherited, workspaceControls, workspaceLevel, error, dataTestId, }: IUiObjectShareDialogCardProps): JSX.Element;
|
|
11645
12027
|
|
|
11646
12028
|
/**
|
|
11647
12029
|
* @internal
|
|
@@ -11677,12 +12059,12 @@ export declare type UiPaginationButtonSize = "small" | "large";
|
|
|
11677
12059
|
* Per-grantee permission popover. Renders a fixed set of rows — three
|
|
11678
12060
|
* permission levels (Can edit & share / Can view & share / Can view), an
|
|
11679
12061
|
* optional divider, an optional labels drill-in and an optional Remove access
|
|
11680
|
-
* action row.
|
|
11681
|
-
*
|
|
12062
|
+
* action row. Enabled rows carry no tooltip; a disabled row (`disabledLevels`,
|
|
12063
|
+
* `isRemoveDisabled`) shows its explanation as a tooltip over the whole row.
|
|
11682
12064
|
*
|
|
11683
12065
|
* @internal
|
|
11684
12066
|
*/
|
|
11685
|
-
export declare function UiPermissionMenu({ anchor, selectedLevel, onPermissionChange, disabledLevels, disabledTooltip, disabledLevelTooltips, labels, selectedLabelIds, onLabelsChange, onRemoveAccess, isRemoveDisabled, removeDisabledTooltip, dataTestId, }: IUiPermissionMenuProps): JSX.Element;
|
|
12067
|
+
export declare function UiPermissionMenu({ anchor, selectedLevel, onPermissionChange, disabledLevels, disabledTooltip, disabledLevelTooltips, labels, selectedLabelIds, onLabelsChange, onRemoveAccess, isRemoveDisabled, removeDisabledTooltip, removeAccessLabel, dataTestId, }: IUiPermissionMenuProps): JSX.Element;
|
|
11686
12068
|
|
|
11687
12069
|
/**
|
|
11688
12070
|
* @internal
|
|
@@ -11888,10 +12270,126 @@ export declare function UiToastProvider({ children }: {
|
|
|
11888
12270
|
*/
|
|
11889
12271
|
export declare function UiToastsContainer({ dataTestId }: IUiToastsContainerProps): ReactNode;
|
|
11890
12272
|
|
|
12273
|
+
/**
|
|
12274
|
+
* Horizontal toolbar with one tab stop. Arrow keys move between items, Home and End jump to the
|
|
12275
|
+
* ends, and the last focused item is remembered when focus leaves and comes back. Inside a
|
|
12276
|
+
* {@link UiToolbarSegmentedControl} the arrows change the selection first and continue to the
|
|
12277
|
+
* neighbouring item at the ends.
|
|
12278
|
+
*
|
|
12279
|
+
* Editable values inside a toolbar must be text-like inputs (`type="text"` with an `inputMode`, or
|
|
12280
|
+
* a textarea): the arrows move the caret and hand off to the neighbouring item at the text edges.
|
|
12281
|
+
* Inputs without a caret API, such as `type="number"`, cannot hand off; wrap such custom controls in
|
|
12282
|
+
* an element with {@link TOOLBAR_SKIP_ATTR} so they keep their own keyboard handling.
|
|
12283
|
+
*
|
|
12284
|
+
* @example
|
|
12285
|
+
* ```
|
|
12286
|
+
* <UiToolbar accessibilityConfig={{ ariaLabel: "Formatting" }}>
|
|
12287
|
+
* <UiToolbarIconButton icon="bold" label="Bold" isSelected onClick={toggleBold} />
|
|
12288
|
+
* <UiToolbarDivider />
|
|
12289
|
+
* <UiToolbarButton label="Reset" onClick={reset} />
|
|
12290
|
+
* </UiToolbar>
|
|
12291
|
+
* ```
|
|
12292
|
+
*
|
|
12293
|
+
* @internal
|
|
12294
|
+
*/
|
|
12295
|
+
export declare const UiToolbar: ForwardRefExoticComponent<IUiToolbarProps & RefAttributes<HTMLDivElement>>;
|
|
12296
|
+
|
|
12297
|
+
/**
|
|
12298
|
+
* Label-only toolbar item.
|
|
12299
|
+
*
|
|
12300
|
+
* @internal
|
|
12301
|
+
*/
|
|
12302
|
+
export declare const UiToolbarButton: ForwardRefExoticComponent<IUiToolbarButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
12303
|
+
|
|
12304
|
+
/**
|
|
12305
|
+
* 20x20 preview of the colour a toolbar control is set to. Decorative: the owning control carries
|
|
12306
|
+
* the accessible name.
|
|
12307
|
+
*
|
|
12308
|
+
* @internal
|
|
12309
|
+
*/
|
|
12310
|
+
export declare function UiToolbarColorSwatch({ variant, color, hasBorder, isTransparent, glyph, }: IUiToolbarColorSwatchProps): JSX.Element;
|
|
12311
|
+
|
|
12312
|
+
/**
|
|
12313
|
+
* Vertical rule that separates groups inside a {@link UiToolbar}.
|
|
12314
|
+
*
|
|
12315
|
+
* @internal
|
|
12316
|
+
*/
|
|
12317
|
+
export declare function UiToolbarDivider(): JSX.Element;
|
|
12318
|
+
|
|
12319
|
+
/**
|
|
12320
|
+
* Icon-only toolbar item. It shows its label as a tooltip on hover and on keyboard focus.
|
|
12321
|
+
*
|
|
12322
|
+
* @internal
|
|
12323
|
+
*/
|
|
12324
|
+
export declare const UiToolbarIconButton: ForwardRefExoticComponent<IUiToolbarIconButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
12325
|
+
|
|
12326
|
+
/**
|
|
12327
|
+
* Icon-driven dropdown trigger of a toolbar: a colour picker, a style menu, a list.
|
|
12328
|
+
*
|
|
12329
|
+
* @internal
|
|
12330
|
+
*/
|
|
12331
|
+
export declare const UiToolbarIconSelect: ForwardRefExoticComponent<IUiToolbarIconSelectProps & RefAttributes<HTMLButtonElement>>;
|
|
12332
|
+
|
|
12333
|
+
/**
|
|
12334
|
+
* Overflow trigger of a toolbar. Build the menu it opens from {@link UiMenu} in a {@link UiDropdown}.
|
|
12335
|
+
*
|
|
12336
|
+
* @internal
|
|
12337
|
+
*/
|
|
12338
|
+
export declare const UiToolbarMoreButton: ForwardRefExoticComponent<IUiToolbarMoreButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
12339
|
+
|
|
12340
|
+
/**
|
|
12341
|
+
* An accessible name for a toolbar or a group: a label, or a reference to a labelling element.
|
|
12342
|
+
*
|
|
12343
|
+
* @internal
|
|
12344
|
+
*/
|
|
12345
|
+
export declare type UiToolbarNamingConfig = {
|
|
12346
|
+
ariaLabel: NonNullable<IAccessibilityConfigBase["ariaLabel"]>;
|
|
12347
|
+
ariaLabelledBy?: IAccessibilityConfigBase["ariaLabelledBy"];
|
|
12348
|
+
} | {
|
|
12349
|
+
ariaLabel?: IAccessibilityConfigBase["ariaLabel"];
|
|
12350
|
+
ariaLabelledBy: NonNullable<IAccessibilityConfigBase["ariaLabelledBy"]>;
|
|
12351
|
+
};
|
|
12352
|
+
|
|
12353
|
+
/**
|
|
12354
|
+
* Mutually exclusive choices rendered as one borderless strip. Arrow keys move the selection and
|
|
12355
|
+
* the focus; the whole group is one tab stop. Standalone the arrows wrap; inside a {@link UiToolbar}
|
|
12356
|
+
* they continue to the neighbouring toolbar item at the ends.
|
|
12357
|
+
*
|
|
12358
|
+
* @example
|
|
12359
|
+
* ```
|
|
12360
|
+
* <UiToolbarSegmentedControl value={mode} onChange={setMode} accessibilityConfig={{ ariaLabel: "Scope" }}>
|
|
12361
|
+
* <UiToolbarButton value="cell" label="Cell" />
|
|
12362
|
+
* <UiToolbarButton value="row" label="Row" />
|
|
12363
|
+
* </UiToolbarSegmentedControl>
|
|
12364
|
+
* ```
|
|
12365
|
+
*
|
|
12366
|
+
* @internal
|
|
12367
|
+
*/
|
|
12368
|
+
export declare const UiToolbarSegmentedControl: ForwardRefExoticComponent<IUiToolbarSegmentedControlProps & RefAttributes<HTMLDivElement>>;
|
|
12369
|
+
|
|
12370
|
+
/**
|
|
12371
|
+
* @internal
|
|
12372
|
+
*/
|
|
12373
|
+
export declare type UiToolbarSegmentedControlChangeEvent = MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>;
|
|
12374
|
+
|
|
12375
|
+
/**
|
|
12376
|
+
* Label-driven dropdown trigger of a toolbar.
|
|
12377
|
+
*
|
|
12378
|
+
* @internal
|
|
12379
|
+
*/
|
|
12380
|
+
export declare const UiToolbarSelect: ForwardRefExoticComponent<IUiToolbarSelectProps & RefAttributes<HTMLButtonElement>>;
|
|
12381
|
+
|
|
12382
|
+
/**
|
|
12383
|
+
* Two side controls around a value. Each part is its own toolbar stop.
|
|
12384
|
+
*
|
|
12385
|
+
* @internal
|
|
12386
|
+
*/
|
|
12387
|
+
export declare const UiToolbarStepper: ForwardRefExoticComponent<IUiToolbarStepperProps & RefAttributes<HTMLDivElement>>;
|
|
12388
|
+
|
|
11891
12389
|
/**
|
|
11892
12390
|
* @internal
|
|
11893
12391
|
*/
|
|
11894
|
-
export declare function UiTooltip({ id, anchor, content, behaviour, arrowPlacement, triggerBy, hoverOpenDelay, hoverCloseDelay, showArrow, width, offset: offsetProp, optimalPlacement, accessibilityConfig, accessibilityHidden, variant, disabled, isOpen: isOpenProp, onOpen, onClose, onOpenChange, component, inlineAnchor, anchorWrapperStyles, }: IUiTooltipProps): JSX.Element;
|
|
12392
|
+
export declare function UiTooltip({ id, anchor, content, behaviour, arrowPlacement, triggerBy, hoverOpenDelay, hoverCloseDelay, showArrow, width, offset: offsetProp, optimalPlacement, accessibilityConfig, accessibilityHidden, variant, disabled, isOpen: isOpenProp, onOpen, onClose, onOpenChange, component, inlineAnchor, anchorWrapperStyles, closeOnAnchorClick, delayGroup, }: IUiTooltipProps): JSX.Element;
|
|
11895
12393
|
|
|
11896
12394
|
/**
|
|
11897
12395
|
* @internal
|
|
@@ -88,7 +88,7 @@ export function useCodemirror({ value = "", label, disabled, autocompletion, pla
|
|
|
88
88
|
onApi?.(null);
|
|
89
89
|
view.destroy();
|
|
90
90
|
};
|
|
91
|
-
}, []); //
|
|
91
|
+
}, []); // oxlint-disable-line react-hooks/exhaustive-deps
|
|
92
92
|
// Handle external value changes
|
|
93
93
|
useCodemirrorChange(viewRef, value, externalChangeSelection);
|
|
94
94
|
return {
|
|
@@ -30,6 +30,10 @@ export declare const isFixedPosition: (element: HTMLElement | string) => boolean
|
|
|
30
30
|
export declare const elementRegion: (elementOrSelector: HTMLElement | string, getRegionBasedOnPosition?: boolean) => IRegion;
|
|
31
31
|
export declare const isElementTextInput: (element: HTMLElement | EventTarget | null | undefined) => boolean;
|
|
32
32
|
export declare const isElementSubmitButton: (event: KeyboardEvent) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export declare const focusableElementsSelector: string;
|
|
33
37
|
/**
|
|
34
38
|
* @internal
|
|
35
39
|
* Returns the focusable elements of the given element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domUtilities.d.ts","sourceRoot":"","sources":["../../src/utils/domUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,aAAa,YAAa,WAAW,GAAG,IAAI,KAAG,IAI3D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,YACN,WAAW,wBACE,OAAO,gDAE9B,OAeF,CAAC;AAiBF;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,GAAG,MAAM,KAAG,OAe/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,sBACH,WAAW,GAAG,MAAM,6BACZ,OAAO,KACnC,OAuCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,WAAW,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,KAAG,OAmB1F,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,aAAa,YAIzD,CAAC;
|
|
1
|
+
{"version":3,"file":"domUtilities.d.ts","sourceRoot":"","sources":["../../src/utils/domUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,aAAa,YAAa,WAAW,GAAG,IAAI,KAAG,IAI3D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,YACN,WAAW,wBACE,OAAO,gDAE9B,OAeF,CAAC;AAiBF;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,GAAG,MAAM,KAAG,OAe/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,sBACH,WAAW,GAAG,MAAM,6BACZ,OAAO,KACnC,OAuCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,WAAW,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,KAAG,OAmB1F,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,aAAa,YAIzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAoB3B,CAAC;AA6BZ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,aAAc,WAAW,GAAG,IAAI,kBAAiB,OAAO;;;;CASxF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAAc,WAAW,GAAG,IAAI,kBAAiB,OAAO,wBAEtF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,YAC7B,OAAO,cACL,mBAAmB,KAC/B,WAAW,GAAG,IAahB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC,cAClC,WAAW,cACX,mBAAmB,KAC/B,WAAW,GAAG,IA2BhB,CAAC"}
|
|
@@ -121,7 +121,10 @@ export const isElementSubmitButton = (event) => {
|
|
|
121
121
|
const { id } = event.target;
|
|
122
122
|
return id === CONFIRM_DIALOG_BASE_ID;
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
export const focusableElementsSelector = [
|
|
125
128
|
// Interactive form elements
|
|
126
129
|
"button:not(:disabled)",
|
|
127
130
|
"input:not(:disabled)",
|